/* Permanent Archive page
   MetaProvide parent-brand palette: navy ground, green primary, light cyan + gold accents.
/* ---------------------------------------------------------- */

.archive-page {
    --ar-bg: var(--mp-hejbit-bg-dark);
    --ar-bg-deep: #0b111f;
    --ar-surface: #172238;
    --ar-line: rgba(206, 255, 251, 0.14);
    --ar-text: var(--mp-color-white);
    --ar-muted: rgba(242, 242, 242, 0.72);
    --ar-green: var(--mp-color-green);
    --ar-cyan: var(--mp-color-lightcyan);
    --ar-gold: var(--mp-color-gold);
    --ar-red: #f07a6e;
    --ar-gutter: clamp(16px, 5vw, 64px);

    background: var(--ar-bg);
    color: var(--ar-text);
    font-family: var(--font-avenir);
    overflow-x: clip;
}

body:has(.archive-page),
body:has(.archive-page) .gh-viewport {
    background: var(--mp-hejbit-bg-dark);
}

.archive-page h1,
.archive-page h2 {
    font-family: 'Bauhaus Std', var(--font-bauhaus);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ar-text);
}

.archive-page h1,
.archive-page h2,
.archive-page h3 {
    text-wrap: balance;
    overflow-wrap: break-word;
    min-width: 0;
}

.archive-page p {
    text-wrap: pretty;
}

.archive-page h3 {
    font-family: var(--font-avenir);
    font-weight: 700;
    color: var(--ar-text);
}

.archive-page p {
    margin: 0;
}

.ar-container {
    max-width: var(--content-max-narrow);
    margin: 0 auto;
    padding: 0 var(--ar-gutter);
}

.ar-eyebrow,
.ar-step {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
    font-family: var(--font-avenir);
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--ar-cyan);
}

.ar-eyebrow::before {
    content: "";
    width: 40px;
    height: 2px;
    background: var(--ar-green);
}

.ar-step span {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    font-variant-numeric: tabular-nums;
    border: 1px solid var(--ar-green);
    border-radius: 50%;
    color: var(--ar-green);
    letter-spacing: 0;
}

/* Hero
/* ---------------------------------------------------------- */

.ar-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(78svh, 760px);
    padding: 96px var(--ar-gutter) 112px;
    isolation: isolate;
}

.ar-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.ar-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    filter: saturate(0.85);
}

.ar-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(16, 24, 43, 0.96) 0%, rgba(16, 24, 43, 0.82) 45%, rgba(16, 24, 43, 0.45) 100%),
        linear-gradient(180deg, rgba(16, 24, 43, 0) 60%, var(--mp-hejbit-bg-dark) 100%);
}

.ar-hero-inner {
    width: 100%;
    max-width: var(--content-max-narrow);
    margin: 0 auto;
}

.ar-hero-title {
    max-width: 20ch;
    margin: 0 0 28px;
    font-size: clamp(4rem, 8vw, 8.4rem);
    line-height: 1.02;
}

.ar-hero-title span {
    display: block;
    color: var(--ar-cyan);
}

.ar-hero-lead {
    max-width: 56ch;
    font-size: clamp(1.7rem, 2vw, 2.1rem);
    line-height: 1.6;
    color: var(--ar-muted);
}

.ar-scroll {
    position: absolute;
    left: 50%;
    bottom: 36px;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border: 1.5px solid rgba(206, 255, 251, 0.5);
    border-radius: 14px;
}

.ar-scroll span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--ar-cyan);
    animation: ar-scroll 1.8s ease-in-out infinite;
}

.ar-scroll:hover span,
.ar-scroll:focus-visible span {
    animation-play-state: paused;
}

@keyframes ar-scroll {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(14px); }
}

/* Story sections (Nalanda, Tibet)
/* ---------------------------------------------------------- */

.ar-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 96px);
    max-width: var(--content-max-narrow);
    margin: 0 auto;
    padding: clamp(80px, 12vw, 140px) var(--ar-gutter);
}

.ar-story--flip .ar-story-media {
    order: 2;
}

.ar-story-media {
    margin: 0;
}

.ar-story-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    filter: saturate(0.9);
}

.ar-story-media figcaption {
    margin-top: 12px;
    font-size: 1.3rem;
    color: rgba(242, 242, 242, 0.55);
}

.ar-story-text h2 {
    margin: 0 0 24px;
    font-size: clamp(3.2rem, 5vw, 5.4rem);
    line-height: 1.08;
}

.ar-story-text h2 em,
.ar-today-head h2 em {
    display: block;
    font-style: normal;
    color: var(--ar-muted);
}

.ar-story-text p:not(.ar-step) {
    max-width: 46ch;
    font-size: clamp(1.7rem, 1.8vw, 2rem);
    line-height: 1.65;
    color: var(--ar-muted);
}

.ar-story-media img.ar-img-bw {
    filter: grayscale(1) contrast(1.05);
}

/* Today · Dharamsala trip
/* ---------------------------------------------------------- */

.ar-today {
    padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 12vw, 140px);
}

.ar-today-head {
    max-width: 720px;
    margin: 0 0 clamp(36px, 5vw, 56px);
}

.ar-today-head h2 {
    margin: 0 0 20px;
    font-size: clamp(3.2rem, 5vw, 5.4rem);
    line-height: 1.08;
}

.ar-today-head p:not(.ar-eyebrow) {
    max-width: 52ch;
    font-size: clamp(1.7rem, 1.8vw, 2rem);
    line-height: 1.65;
    color: var(--ar-muted);
}

.ar-today-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 1.1fr);
    gap: clamp(12px, 1.6vw, 20px);
}

.ar-today-grid figure {
    margin: 0;
}

.ar-today-grid img {
    display: block;
    width: 100%;
    height: clamp(280px, 32vw, 460px);
    object-fit: cover;
    border-radius: 4px;
    filter: saturate(0.9);
}

/* Joyma recordings
/* ---------------------------------------------------------- */

.ar-video {
    margin-top: calc(-1 * clamp(30px, 6vw, 80px));
    padding: 0 0 clamp(90px, 12vw, 140px);
}

.ar-videos {
    display: grid;
    gap: clamp(40px, 6vw, 72px);
}

.ar-video-item {
    margin: 0;
}

.ar-video-frame {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(206, 255, 251, 0.14);
    border-radius: 6px;
    background: var(--ar-bg-deep);
}

.ar-video-item figcaption {
    display: flex;
    gap: 14px;
    align-items: baseline;
    max-width: 62ch;
    margin-top: 18px;
    text-align: left;
    font-size: 1.6rem;
    line-height: 1.55;
    color: var(--ar-muted);
}

.ar-video-item figcaption strong {
    font-weight: 600;
    color: var(--ar-text);
}

.ar-video-num {
    flex: none;
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-variant-numeric: tabular-nums;
    color: var(--ar-green);
}

/* Alteration
/* ---------------------------------------------------------- */

.ar-altered {
    padding: clamp(90px, 14vw, 160px) var(--ar-gutter);
    background: var(--ar-bg-deep);
    border-block: 1px solid var(--ar-line);
    text-align: center;
}

.ar-altered-stage {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 720px);
    justify-content: center;
    align-items: center;
    column-gap: clamp(40px, 6vw, 96px);
}

.ar-altered-inner {
    max-width: 820px;
    margin: 0 auto;
}

.ar-altered-figure {
    margin: 0;
}

.ar-altered-figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70svh;
    object-fit: contain;
    border-radius: 4px;
    filter: sepia(0.25) contrast(1.05);
}

.ar-altered-figure figcaption {
    margin-top: 12px;
    font-size: 1.3rem;
    color: var(--ar-muted);
}

.ar-altered-inner .ar-step {
    justify-content: center;
}

.ar-altered h2 {
    margin: 0 0 24px;
    font-size: clamp(3.2rem, 5vw, 5.4rem);
    line-height: 1.08;
}

.ar-altered-lead,
.ar-altered-question {
    font-size: clamp(1.7rem, 1.9vw, 2.1rem);
    line-height: 1.6;
    color: var(--ar-muted);
}

.ar-altered-question strong {
    color: var(--ar-text);
    font-weight: 700;
}

.ar-word-swap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.2em 0.6em;
    margin: 36px 0 !important;
    font-family: var(--font-serif);
    font-size: clamp(3.6rem, 8vw, 7.2rem);
    line-height: 1.1;
}

.ar-word-swap del {
    color: rgba(242, 242, 242, 0.38);
    text-decoration: line-through;
    text-decoration-color: var(--ar-red);
    text-decoration-thickness: 0.06em;
}

.ar-word-swap ins {
    color: var(--ar-gold);
    text-decoration: none;
}

/* Solution
/* ---------------------------------------------------------- */

.ar-solution {
    padding: clamp(90px, 14vw, 160px) 0 clamp(40px, 6vw, 80px);
}

.ar-solution-head {
    max-width: 720px;
    margin: 0 auto clamp(48px, 7vw, 80px);
    text-align: center;
}

.ar-solution-head h2 {
    margin: 0 0 20px;
    font-size: clamp(3.6rem, 6vw, 6.4rem);
    line-height: 1.05;
    color: var(--ar-cyan);
}

.ar-solution-head p:not(.ar-eyebrow) {
    font-size: clamp(1.8rem, 2vw, 2.2rem);
    line-height: 1.55;
    color: var(--ar-muted);
}

.ar-pillars {
    max-width: 820px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ar-line);
}

.ar-pillars li {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 28px;
    padding: 32px 0;
    border-bottom: 1px solid var(--ar-line);
}

.ar-pillars svg {
    grid-row: 1 / span 2;
    width: 48px;
    height: 48px;
    fill: none;
    stroke: var(--ar-green);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ar-pillars h3 {
    margin: 0 0 8px;
    font-size: 2.4rem;
}

.ar-pillars p {
    max-width: 56ch;
    font-size: 1.7rem;
    line-height: 1.6;
    color: var(--ar-muted);
}

/* Preservation diagram
/* ---------------------------------------------------------- */

.ar-flow {
    padding: clamp(60px, 10vw, 120px) 0 clamp(90px, 14vw, 160px);
}

.ar-flow-title {
    margin: 0 0 clamp(40px, 6vw, 64px);
    font-size: clamp(2.6rem, 3.6vw, 3.8rem);
    text-align: center;
}

.ar-flow-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

/* connecting line behind the icons */
.ar-flow-steps::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 48px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--ar-green) 0 8px, transparent 8px 16px);
    opacity: 0.6;
}

.ar-flow-steps li {
    position: relative;
    z-index: 1;
    text-align: center;
}

.ar-flow-icon {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    background: var(--ar-bg);
    border: 1.5px solid var(--ar-green);
    border-radius: 50%;
    position: relative;
}

.ar-flow-icon svg {
    width: 52px;
    height: 52px;
    fill: none;
    stroke: var(--ar-cyan);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ar-flow-icon--network {
    width: 152px;
    border-radius: 48px;
}

.ar-flow-icon--network svg {
    width: 112px;
}

.ar-net-lines path {
    stroke: var(--ar-green);
    stroke-width: 1.2;
    opacity: 0.7;
}

.ar-net-nodes circle {
    fill: var(--ar-cyan);
    stroke: none;
    transform-box: fill-box;
    transform-origin: center;
    animation: ar-node 3.2s ease-in-out infinite;
}

.ar-net-nodes circle:nth-child(2n) { animation-delay: 0.6s; }
.ar-net-nodes circle:nth-child(3n) { animation-delay: 1.3s; }
.ar-net-nodes circle:first-child { fill: var(--ar-gold); animation: none; }

@keyframes ar-node {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.ar-flow-num {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-variant-numeric: tabular-nums;
    color: var(--ar-green);
}

.ar-flow-steps h3 {
    margin: 0 0 8px;
    font-size: 2rem;
}

.ar-flow-steps p {
    max-width: 28ch;
    margin: 0 auto;
    font-size: 1.55rem;
    line-height: 1.55;
    color: var(--ar-muted);
}

/* Altered vs original check */
.ar-check {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 880px;
    margin: clamp(56px, 8vw, 88px) auto 0;
}

.ar-check-card {
    padding: 26px 28px;
    background: var(--ar-bg-deep);
    border: 1px solid var(--ar-green);
    border-radius: 4px;
}

.ar-check-card--bad {
    border-color: var(--ar-red);
}

.ar-check-label {
    margin-bottom: 12px !important;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ar-muted);
}

.ar-check-text {
    margin-bottom: 16px !important;
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1.4;
}

.ar-check-text mark {
    padding: 0 4px;
    border-radius: 2px;
    background: rgba(250, 180, 41, 0.18);
    color: var(--ar-gold);
}

.ar-check-card--bad .ar-check-text mark {
    background: rgba(240, 122, 110, 0.16);
    color: var(--ar-red);
}

.ar-check-print {
    margin-bottom: 14px !important;
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-variant-numeric: tabular-nums;
    color: var(--ar-cyan);
}

.ar-check-print span {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-avenir);
    font-size: 1.4rem;
    color: var(--ar-muted);
}

.ar-check-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ar-green);
    font-variant-numeric: tabular-nums;
}

.ar-check-status::before {
    content: "✓";
}

.ar-check-card--bad .ar-check-status {
    color: var(--ar-red);
}

.ar-check-card--bad .ar-check-status::before {
    content: "✕";
}

/* Closing
/* ---------------------------------------------------------- */

.ar-close {
    padding: clamp(90px, 14vw, 150px) var(--ar-gutter);
    background:
        radial-gradient(60% 80% at 50% 100%, rgba(0, 173, 144, 0.18), transparent 70%),
        var(--ar-bg-deep);
    border-top: 1px solid var(--ar-line);
    text-align: center;
}

.ar-close-inner {
    max-width: 760px;
    margin: 0 auto;
}

.ar-close h2 {
    margin: 0 0 24px;
    font-size: clamp(3.2rem, 5.4vw, 5.6rem);
    line-height: 1.08;
}

.ar-close h2 span {
    color: var(--ar-cyan);
}

.ar-close p {
    font-size: clamp(1.7rem, 1.9vw, 2.1rem);
    line-height: 1.6;
    color: var(--ar-muted);
}

.ar-cta {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    margin-top: 40px;
    padding: 0 40px;
    border: 1px solid var(--ar-green);
    border-radius: 50px;
    background: rgba(0, 173, 144, 0.15);
    color: var(--ar-text);
    font-size: 1.7rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.ar-cta:active {
    transform: scale(0.97);
}

.ar-cta:hover,
.ar-cta:focus-visible {
    background: var(--ar-green);
    color: var(--ar-bg);
}

.ar-cta:focus-visible,
.ar-scroll:focus-visible {
    outline: 2px solid var(--ar-cyan);
    outline-offset: 4px;
}


/* Footer on this page */
body:has(.archive-page) .mp-footer {
    background: var(--mp-hejbit-bg-dark);
    color: var(--mp-color-white);
}

body:has(.archive-page) .mp-footer hr {
    border-color: var(--mp-color-green);
    border-width: 2px;
    max-width: 80%;
    margin-top: 40px;
    margin-bottom: 48px;
}

body:has(.archive-page) .mp-footer-title,
body:has(.archive-page) .mp-footer-nav a,
body:has(.archive-page) .mp-footer-text {
    color: var(--mp-color-white);
}

body:has(.archive-page) .mp-footer-nav a:hover {
    color: var(--mp-color-green);
}

body:has(.archive-page) .mp-footer-social-icon {
    filter: none;
    color: var(--mp-color-white);
    fill: var(--mp-color-white);
}

/* Scroll reveal (only when JS + motion allowed)
/* ---------------------------------------------------------- */

.ar-js .ar-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.ar-js .ar-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .ar-scroll span,
    .ar-net-nodes circle {
        animation: none;
    }
}

/* Responsive
/* ---------------------------------------------------------- */

@media (max-width: 900px) {
    .ar-story {
        grid-template-columns: minmax(0, 1fr);
    }

    .ar-story--flip .ar-story-media {
        order: 0;
    }

    .ar-flow-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 48px;
    }

    .ar-flow-steps::before {
        display: none;
    }
}

@media (max-width: 600px) {
    .ar-hero {
        min-height: 80svh;
        padding-top: 88px;
    }

    .ar-hero-bg::after {
        background:
            linear-gradient(180deg, rgba(16, 24, 43, 0.75) 0%, rgba(16, 24, 43, 0.9) 60%, var(--mp-hejbit-bg-dark) 100%);
    }

    .ar-flow-steps {
        grid-template-columns: 1fr;
        row-gap: 28px;
    }

    .ar-flow-steps li {
        display: grid;
        grid-template-columns: 96px 1fr;
        column-gap: 18px;
        align-items: center;
        text-align: left;
    }

    .ar-flow-icon,
    .ar-flow-icon--network {
        grid-row: 1 / span 3;
        width: 80px;
        height: 80px;
        margin: 0;
        border-radius: 50%;
    }

    .ar-flow-icon svg {
        width: 42px;
        height: 42px;
    }

    .ar-flow-icon--network svg {
        width: 64px;
    }

    .ar-flow-steps p {
        margin: 0;
    }

    .ar-check {
        grid-template-columns: 1fr;
    }

    .ar-today-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ar-today-grid figure:last-child {
        grid-column: 1 / -1;
    }

    .ar-today-grid img {
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .ar-today-grid figure:last-child img {
        aspect-ratio: 16 / 10;
    }
}

/* Scroll scenes (scroll-craft approach)
   Without JS or with reduced motion, every scene shows its finished state.
/* ---------------------------------------------------------- */

/* 1. The rewrite: the section pins while "congregation" is struck through
      and "church" wipes in. --p runs 0 to 1 across the pinned travel. */
.ar-altered {
    --p: 1;
}

.ar-word-swap del {
    position: relative;
    text-decoration: none;
    opacity: calc(1 - 0.6 * clamp(0, (var(--p) - 0.2) / 0.2, 1));
}

.ar-word-swap del::after {
    content: "";
    position: absolute;
    left: -2%;
    right: -2%;
    top: 54%;
    height: 0.06em;
    background: var(--ar-red);
    transform: scaleX(clamp(0, (var(--p) - 0.2) / 0.2, 1));
    transform-origin: left center;
}

.ar-word-swap ins {
    clip-path: inset(-0.2em calc((1 - clamp(0, (var(--p) - 0.42) / 0.2, 1)) * 100%) -0.3em 0);
}

.ar-altered-question {
    opacity: clamp(0, (var(--p) - 0.66) / 0.14, 1);
    transform: translateY(calc((1 - clamp(0, (var(--p) - 0.66) / 0.14, 1)) * 16px));
}

.ar-sc .ar-altered {
    height: 260svh;
    padding: 0;
}

.ar-sc .ar-altered-stage {
    position: sticky;
    top: 0;
    align-content: center;
    min-height: 100svh;
    padding: 0 var(--ar-gutter);
}

/* 2. The diagram: the dashed line fills and each step lights in turn. */
.ar-flow-steps::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 48px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--ar-green);
    transform: scaleX(var(--f, 1));
    transform-origin: left center;
}

.ar-sc .ar-flow-steps li .ar-flow-icon,
.ar-sc .ar-flow-steps li h3,
.ar-sc .ar-flow-steps li p,
.ar-sc .ar-flow-steps li .ar-flow-num {
    transition: opacity 0.5s ease, border-color 0.5s ease, transform 0.5s ease;
}

.ar-sc .ar-flow-steps li:not(.is-lit) .ar-flow-icon {
    border-color: var(--ar-line);
    opacity: 0.4;
    transform: scale(0.94);
}

.ar-sc .ar-flow-steps li:not(.is-lit) h3,
.ar-sc .ar-flow-steps li:not(.is-lit) p,
.ar-sc .ar-flow-steps li:not(.is-lit) .ar-flow-num {
    opacity: 0.35;
}

/* 3. Dharamsala photos: each picture drifts at its own rate inside its frame. */
.ar-today-grid figure {
    overflow: hidden;
    border-radius: 4px;
}

.ar-sc .ar-today-grid picture {
    display: block;
    transform: translateY(calc(var(--t, 0) * 1px)) scale(1.12);
}

@media (max-width: 900px) {
    .ar-flow-steps::after {
        display: none;
    }
}

@media (max-width: 600px) {
    .ar-sc .ar-altered {
        height: 220svh;
    }
}

@media (max-width: 900px) {
    .ar-altered-stage {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 28px;
        justify-items: center;
    }

    .ar-altered-figure {
        width: min(160px, 40vw);
    }

    .ar-altered-figure img {
        max-height: 26svh;
    }

    .ar-altered-figure figcaption {
        display: none;
    }
}

/* Joyma: the concept in practice
/* ---------------------------------------------------------- */

.ar-joyma {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
    margin-bottom: clamp(40px, 6vw, 64px);
}

.ar-joyma-text h2 {
    margin: 0 0 24px;
    font-size: clamp(3.2rem, 5vw, 5.4rem);
    line-height: 1.08;
}

.ar-joyma-text h2 span {
    display: block;
    color: var(--ar-muted);
}

.ar-joyma-text p {
    max-width: 52ch;
    margin-bottom: 16px !important;
    font-size: clamp(1.7rem, 1.8vw, 2rem);
    line-height: 1.65;
    color: var(--ar-muted);
}

.archive-page .ar-joyma-link {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    margin-top: 12px;
    color: var(--ar-cyan);
    font-size: 1.7rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.archive-page .ar-joyma-link:hover {
    color: var(--ar-text);
}

.ar-joyma-link:focus-visible {
    outline: 2px solid var(--ar-cyan);
    outline-offset: 4px;
}

.ar-joyma-features {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ar-line);
}

.ar-joyma-features li {
    padding: 20px 0;
    border-bottom: 1px solid var(--ar-line);
}

.ar-joyma-features h3 {
    margin: 0 0 4px;
    font-size: 2rem;
}

.ar-joyma-features p {
    font-size: 1.6rem;
    line-height: 1.55;
    color: var(--ar-muted);
}

.ar-joyma-features-archive h3 {
    color: var(--ar-green);
}

@media (max-width: 900px) {
    .ar-joyma {
        grid-template-columns: minmax(0, 1fr);
    }
}

