/* ═══════════════════════════════════════════════════════════════════════════
   landing.css — the public landing page, "An Atlas of the Night".
   Byte-identical in both editions; layered on style.css + atlas.css.

   Four plates: I the instrument (hero), II the statement with engraved
   specimens, III the three lenses (pinned on wide screens), IV the moon rising.
   Motion comes from js/atlas.js (--p scene progress, data-step, --mx/--my,
   fills, tilt). Without JS every plate is static and complete; under
   prefers-reduced-motion nothing moves on its own.
   ═══════════════════════════════════════════════════════════════════════════ */

.lx main { padding-block: 0; }
.l-nav-login { margin-left: var(--s-1); }

/* the bar floats over the hero and settles once the page scrolls */
.lx .navbar.lx-nav {
    position: fixed;
    inset: 0 0 auto 0;
    background: transparent;
    border-bottom-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: background var(--dur-3) var(--ease), border-color var(--dur-3) var(--ease);
}
.lx .navbar.lx-nav.is-scrolled {
    background: color-mix(in srgb, var(--bg) 74%, transparent);
    border-bottom-color: var(--border);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    backdrop-filter: saturate(140%) blur(14px);
}

/* ═══ I · hero ══════════════════════════════════════════════════════════════ */
.lx-hero {
    --o: min(94vh, 68vw);
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--nav-h) + clamp(20px, 4vh, 56px)) var(--gutter) clamp(16px, 3vh, 28px);
    overflow: clip;
}

/* the instrument: four stacked layers so each spins on the compositor */
.lx-orrery {
    position: absolute;
    z-index: -1;
    left: calc(69% - var(--o) / 2);
    top: calc(50% - var(--o) / 2 + var(--nav-h) / 2);
    width: var(--o);
    aspect-ratio: 1;
    translate: calc(var(--mx, 0) * -16px) calc(var(--my, 0) * -10px + var(--p, 0) * 24vh);
    scale: calc(1 + var(--p, 0) * 0.16);
    opacity: calc(1 - var(--p, 0) * 0.7);
}
.o-layer { position: absolute; inset: 0; will-change: transform; }
.o-layer svg { width: 100%; height: 100%; overflow: visible; }
.o-rings   { animation: o-spin 300s linear infinite; }
.o-counter { animation: o-spin 210s linear infinite reverse; }
.o-orbit   { animation: o-spin 56s linear infinite; }

.lx-orrery .o-hair, .lx-rise .o-hair { fill: none; stroke: var(--text-dim); stroke-width: 1; opacity: 0.55; }
.lx-orrery .o-dash, .lx-rise .o-dash { stroke-dasharray: 2 7; opacity: 0.45; }
.lx-orrery .o-dash--fine { stroke-dasharray: 1 4; }
.o-tick { fill: none; stroke: var(--text-muted); stroke-width: 10; opacity: 0.5; }
.o-tick--major { stroke: var(--text-strong); stroke-width: 20; opacity: 0.75; stroke-dasharray: 0.025 0.975; }
.o-deg text { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; fill: var(--text-dim); text-anchor: middle; }
.o-axis line { stroke: var(--text-dim); stroke-width: 1; opacity: 0.45; }
.o-stars path { fill: var(--gold); opacity: 0.85; }
.o-orbit-path { fill: none; stroke: var(--text-dim); stroke-width: 1; stroke-dasharray: 1 6; opacity: 0.55; }
.o-ember { fill: var(--ember); }
.o-halo { position: absolute; left: 47.5%; top: 20.75%; width: 5%; height: 5%; animation: breathe 4s ease-in-out infinite; }
.o-stop { stop-color: var(--moon); }
.o-disc { fill: var(--accent-strong); }
.o-shadow { fill: var(--bg-card); }
.o-crater { fill: var(--accent-strong); opacity: 0.5; }
.o-rim { fill: none; stroke: var(--moon); stroke-width: 1; opacity: 0.55; }

.o-pos {
    position: absolute;
    translate: -50% -50%;
    padding: 2px 10px;
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 0.7rem + 0.4vw, 1.05rem);
    letter-spacing: 0.16em;
    white-space: nowrap;
    color: var(--text-muted);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    border-radius: var(--radius-pill);
}
.o-pos--n { left: 50%;     top: 13.75%; color: var(--text-strong); }
.o-pos--s { left: 50%;     top: 86.25%; }
.o-pos--w { left: 13.75%;  top: 50%; }
.o-pos--e { left: 86.25%;  top: 50%; }

/* the copy */
.lx-hero-copy {
    position: relative;
    align-self: center;
    max-width: 62rem;
    translate: calc(var(--mx, 0) * 6px) calc(var(--p, 0) * -14vh);
    opacity: calc(1 - var(--p, 0) * 1.6);
}
.lx-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(18px, 3.4vh, 34px); }
.lx-kicker-rule { width: 56px; height: 1px; background: var(--gold); opacity: 0.6; }
.lx-title {
    margin-bottom: clamp(18px, 3vh, 30px);
    font-size: clamp(2.9rem, 0.5rem + 6.1vw, 7.2rem);
    line-height: 1.14;
    letter-spacing: 0.035em;
    color: var(--text-strong);
    text-wrap: initial;
}
:lang(zh-Hant) .lx-title { line-height: 1.16; letter-spacing: 0.035em; }
.lx-line { display: block; }
.lx-em { color: var(--gold); }
:lang(en) .lx-title {
    font-size: clamp(2.7rem, 0.4rem + 5.5vw, 6.6rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
}
:lang(en) .lx-em { font-style: italic; }
.lx-lead {
    max-width: 34em;
    margin-bottom: clamp(26px, 4.6vh, 46px);
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
    line-height: 1.7;
    letter-spacing: var(--track-cjk);
    color: var(--text-muted);
}
:lang(zh-Hant) .lx-lead { word-break: keep-all; overflow-wrap: anywhere; }
:lang(en) .lx-lead { letter-spacing: 0; max-width: 30em; }
.lx-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.lx-cta .btn img, .lx-cta .btn svg { width: 22px; height: 22px; }
.lx-btn { min-width: 13.5rem; }
.lx-free {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.2em;
    color: var(--gold);
}
:lang(en) .lx-free { text-transform: uppercase; letter-spacing: 0.14em; }
.lx-free-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px var(--warm-glow); }

.lx-hero-foot {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: var(--s-4);
    padding-top: var(--s-4);
    border-top: 1px solid var(--border);
    opacity: calc(1 - var(--p, 0) * 3);
}
.lx-hero-foot > :last-child { justify-self: end; }
.lx-cue { position: relative; width: 1px; height: 46px; overflow: hidden; background: var(--border-strong); }
.lx-cue-line { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: lx-cue 2.4s var(--ease) infinite; will-change: transform; }
/* translateY(350%) = the old `top: -40% -> 100%` (140% of the cue / 40% line height): same path, but a
   transform runs on the compositor instead of re-laying out the hero every frame */
@keyframes lx-cue { to { transform: translateY(350%); } }

/* entrance: the instrument draws itself, the letter is written character by character.
   html.anim is set by theme.js before first paint, never under reduced motion. */
@keyframes o-spin { to { transform: rotate(360deg); } }
@keyframes o-draw { from { stroke-dashoffset: 1; } }
@keyframes o-moon-in { from { opacity: 0; transform: scale(0.82); } }
@keyframes o-fade { from { opacity: 0; } }
@keyframes ch-rise { from { opacity: 0; transform: translateY(0.42em); filter: blur(12px); } }
.o-draw { stroke-dasharray: 1; }
html.anim .o-draw { animation: o-draw 2.6s var(--ease-out) 0.15s backwards; }
html.anim .o-moon { animation: o-moon-in 1.8s var(--ease-out) 0.1s backwards; transform-origin: 50% 50%; }
html.anim .o-orbit svg, html.anim .o-tick, html.anim .o-deg, html.anim .o-stars, html.anim .o-pos { animation: o-fade 1.4s var(--ease) 1s backwards; }
html.anim .lx-title .ch { animation: ch-rise 1.3s var(--ease-out) backwards; animation-delay: calc(0.35s + var(--i) * 0.06s); }
html.anim .lx-kicker, html.anim .lx-lead, html.anim .lx-cta, html.anim .lx-hero-foot { animation: rise 1s var(--ease-out) backwards; }
html.anim .lx-kicker { animation-delay: 0.2s; }
html.anim .lx-lead { animation-delay: 1.15s; }
html.anim .lx-cta { animation-delay: 1.3s; }
html.anim .lx-hero-foot { animation-delay: 1.5s; }

/* ═══ II · the statement ════════════════════════════════════════════════════ */
.lx-manifesto {
    position: relative;
    padding: clamp(110px, 15vw, 230px) var(--gutter) clamp(120px, 15vw, 240px);
    overflow: clip;
}
.lx-manifesto-in {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(12px, 2vw, 32px);
    max-width: 1280px;
    margin-inline: auto;
}
.lx-plate-no { grid-column: 1 / -1; margin-bottom: clamp(20px, 3vw, 32px); }
.lx-statement {
    grid-column: 1 / -1;
    font-size: clamp(2.5rem, 0.5rem + 6.2vw, 7.1rem);
    line-height: 1.2;
    letter-spacing: 0.045em;
}
:lang(zh-Hant) .lx-statement { word-break: keep-all; overflow-wrap: anywhere; line-height: 1.24; }
:lang(en) .lx-statement { letter-spacing: -0.015em; line-height: 1.02; font-size: clamp(2.6rem, 0.4rem + 6vw, 7rem); }
:lang(en) .lx-statement em { color: var(--gold); }
.lx-statement-sub {
    grid-column: 7 / -1;
    margin-top: clamp(36px, 5vw, 72px);
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 0.95rem + 0.55vw, 1.4rem);
    line-height: 2.1;
    letter-spacing: var(--track-cjk);
    color: var(--text-muted);
}
:lang(en) .lx-statement-sub { letter-spacing: 0; line-height: 1.75; }

/* engraved specimens drifting at their own depth (the about page's copperplate emblems) */
.lx-specimens { position: absolute; inset: 0; pointer-events: none; }
.lx-spec {
    position: absolute;
    display: grid;
    /* the column stays the plate's width: a long caption must not widen it (and with it the engraving) */
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 12px;
    width: clamp(104px, 12vw, 190px);
    margin: 0;
    translate: 0 calc((var(--p, 0.5) - 0.5) * var(--d, 120) * -1px);
}
.lx-spec-ink {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    background: var(--text);
    opacity: 0.5;
    -webkit-mask: none center / contain no-repeat;
            mask: none center / contain no-repeat;
}
.lx-spec .cat { white-space: nowrap; }
.lx-specimens.is-near .lx-spec--sea .lx-spec-ink       { -webkit-mask-image: url('../images/about/frag-sea.webp?v=898ace116a');       mask-image: url('../images/about/frag-sea.webp?v=898ace116a'); }
.lx-specimens.is-near .lx-spec--stranger .lx-spec-ink  { -webkit-mask-image: url('../images/about/frag-stranger.webp?v=2f4d616d0b');  mask-image: url('../images/about/frag-stranger.webp?v=2f4d616d0b'); }
.lx-specimens.is-near .lx-spec--labyrinth .lx-spec-ink { -webkit-mask-image: url('../images/about/frag-labyrinth.webp?v=fb2e37482d'); mask-image: url('../images/about/frag-labyrinth.webp?v=fb2e37482d'); }
/* --d is the drift depth in px; a deeper one walks a plate under the copy while it is still on
   screen (Fig. 2 at 340 slid under the EN statement as the section left). tests/landing_layout_smoke.py */
.lx-spec--sea       { top: 5%;    right: 9%;  --d: 260; }
.lx-spec--stranger  { bottom: 9%; left: 13%;  --d: 180; width: clamp(110px, 13vw, 210px); }
.lx-spec--labyrinth { top: 41%;   right: 3%;  --d: 180; width: clamp(92px, 10vw, 160px); }
html:not(.atlas-js) .lx-specimens { display: none; }

/* ═══ III · the three lenses ════════════════════════════════════════════════ */
.lx-lenses { position: relative; border-top: 1px solid var(--border); }
.lx-lenses-pin {
    display: grid;
    gap: clamp(88px, 12vw, 160px);
    max-width: 1360px;
    margin-inline: auto;
    padding: clamp(88px, 12vw, 160px) var(--gutter);
}
.lx-lens {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(40px, 6vw, 112px);
}
.lx-lens-num { display: block; margin-bottom: var(--s-5); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.24em; color: var(--gold); }
.lx-lens h3 {
    margin-bottom: clamp(16px, 2.6vw, 30px);
    font-size: clamp(3rem, 0.8rem + 6vw, 7.4rem);
    line-height: 1;
    letter-spacing: 0.08em;
}
:lang(en) .lx-lens h3 { letter-spacing: -0.02em; font-size: clamp(2.6rem, 0.6rem + 4.6vw, 5.6rem); line-height: 1.02; }
.lx-lens p {
    max-width: 26em;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem);
    line-height: 2;
    letter-spacing: var(--track-cjk);
    color: var(--text-muted);
}
:lang(en) .lx-lens p { letter-spacing: 0; line-height: 1.7; }
.lx-lens-visual { position: relative; isolation: isolate; display: flex; justify-content: center; align-items: center; min-height: min(56vh, 460px); }
/* a hollow plate number behind each visual */
.lx-lens-visual::before {
    content: attr(data-n);
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    translate: -50% -54%;
    font-family: var(--font-display);
    font-size: clamp(12rem, 4rem + 22vw, 26rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1px color-mix(in srgb, var(--text-strong) 13%, transparent);
    pointer-events: none;
}
.lx-lens-copy > * { transition: transform 0.9s var(--ease-out), opacity 0.9s var(--ease-out); }
.lx-lenses-index { display: none; }

/* 01 — the cards: a deck that fans open */
.lx-cards {
    position: relative;
    width: min(100%, 470px);
    aspect-ratio: 470 / 430;
    margin: 0;
    perspective: 1400px;
}
.lx-cards img {
    --a: 0deg; --sx: 0%;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 41%;
    aspect-ratio: 250 / 417;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--text-strong) 14%, transparent);
    box-shadow: 0 44px 70px -30px rgba(0, 0, 0, 0.8), 0 2px 0 rgba(255, 255, 255, 0.05) inset;
    transform-origin: 50% 115%;
    transform: translate(-50%, -50%) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(var(--a)) translateX(var(--sx));
    transition: transform 1.2s var(--ease-out);
}
.lx-cards img:nth-child(1) { --a: -17deg; --sx: -44%; }
.lx-cards img:nth-child(2) { z-index: 2; top: 47%; }
.lx-cards img:nth-child(3) { --a: 17deg; --sx: 44%; }
.lx-cards.is-tilting img { transition-duration: 0.35s; }
.lx-glare {
    position: absolute;
    inset: 4% 26% 8%;
    z-index: 3;
    border-radius: 10px;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, 0.2), transparent 50%);
    mix-blend-mode: soft-light;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-3) var(--ease);
}
.lx-cards.is-tilting .lx-glare { opacity: 1; }
.lx-cards figcaption { position: absolute; left: 0; right: 0; bottom: -2.4em; text-align: center; }
/* folded until the row is on stage */
html.atlas-js .lx-lens:not(.is-visible) .lx-cards img { --a: 0deg; --sx: 0%; }

/* 02 — the radar */
.lx-radar { position: relative; width: min(100%, 400px); aspect-ratio: 1; }
.lx-radar svg { width: 100%; height: 100%; overflow: visible; }
.lx-radar .ring { fill: none; stroke: var(--border-strong); stroke-width: 0.5; }
.lx-radar .ring--dash { stroke-dasharray: 1 3; }
.lx-radar .grid { fill: none; stroke: var(--border-strong); stroke-width: 0.6; }
.lx-radar .axis { stroke: var(--border-strong); stroke-width: 0.6; }
.lx-radar .poly { fill: var(--accent-glow); stroke: var(--accent); stroke-width: 1.4; stroke-linejoin: round; transform-box: fill-box; transform-origin: 50% 46%; transition: transform 1.1s var(--ease-out) 0.15s, opacity 1.1s var(--ease-out) 0.15s; }
.lx-radar .pt { fill: var(--accent); transform-box: fill-box; transform-origin: center; transition: transform 0.6s var(--ease-out) 0.7s; }
.lx-radar .pt--dom { fill: var(--ember); filter: drop-shadow(0 0 6px var(--ember)); }
.lx-radar .lab { font-family: var(--font-body); font-size: 7px; fill: var(--text-muted); text-anchor: middle; }
.lx-radar .lab--dom { fill: var(--text-strong); }
html.atlas-js .lx-lens:not(.is-visible) .lx-radar .poly { transform: scale(0.4); opacity: 0; }
html.atlas-js .lx-lens:not(.is-visible) .lx-radar .pt { transform: scale(0); }

/* 03 — the timeline */
.lx-timeline { width: min(100%, 560px); }
.lx-timeline svg { width: 100%; height: auto; overflow: visible; }
.lx-timeline .line { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 1; transition: stroke-dashoffset 1.6s var(--ease-out); }
.lx-timeline .arc { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0.65; stroke-dasharray: 1; transition: stroke-dashoffset 1.8s var(--ease-out) 0.6s; }
.lx-timeline .stem { stroke: var(--border-strong); stroke-width: 0.8; stroke-dasharray: 2 3; }
.lx-timeline .dot { fill: var(--bg-card); stroke: var(--text-muted); stroke-width: 1.2; }
.lx-timeline .dot--hot { fill: var(--ember); stroke: var(--ember); filter: drop-shadow(0 0 5px var(--ember)); }
.lx-timeline .card { fill: var(--bg-card); stroke: var(--border-strong); stroke-width: 0.8; }
.lx-timeline .card--major { fill: var(--gold); stroke: none; }
.lx-timeline .card--major + .sigil, .lx-timeline .sigil { fill: none; stroke: var(--bg); stroke-width: 1.2; opacity: 0.8; }
.lx-timeline .date { font-family: var(--font-mono); font-size: 7px; fill: var(--text-dim); text-anchor: middle; letter-spacing: 0.08em; }
.lx-timeline .bar { fill: var(--text-dim); opacity: 0.4; }
.lx-timeline g { transition: opacity 0.7s var(--ease-out), translate 0.7s var(--ease-out); transition-delay: calc(0.3s + var(--k, 0) * 0.12s); }
html.atlas-js .lx-lens:not(.is-visible) .lx-timeline .line,
html.atlas-js .lx-lens:not(.is-visible) .lx-timeline .arc { stroke-dashoffset: 1; }
html.atlas-js .lx-lens:not(.is-visible) .lx-timeline g { opacity: 0; translate: 0 10px; }

/* wide screens with the motion layer: the three rows share one pinned stage */
@media (min-width: 900px), (min-width: 700px) and (min-height: 900px) {
    /* tablets held upright (700-899px wide, 900px and more tall: every iPad) share the stage;
       their rows stack, the words above the visual (see max-width: 899px below). Below 900px
       of height the stacked row runs into the index line (measured 2026-11-05: 12-44px at
       800px, 6-8px at 850px), so shorter windows keep the rows in sequence */
    html.atlas-js .lx-lenses { height: 320vh; }
    html.atlas-js .lx-lenses-pin {
        position: sticky;
        top: 0;
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 0;
        height: 100vh;
        height: 100svh;
        max-width: none;
        padding: calc(var(--nav-h) + 16px) var(--gutter) clamp(20px, 3.4vh, 34px);
    }
    html.atlas-js .lx-lens {
        grid-area: 1 / 1;
        max-width: 1360px;
        width: 100%;
        margin-inline: auto;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.6s var(--ease), visibility 0s 0.6s;
    }
    html.atlas-js .lx-lens .lx-lens-copy > * { transform: translateY(28px); opacity: 0; }
    html.atlas-js .lx-lenses:not([data-step]) .lx-lens[data-i="0"],
    html.atlas-js .lx-lenses[data-step="0"] .lx-lens[data-i="0"],
    html.atlas-js .lx-lenses[data-step="1"] .lx-lens[data-i="1"],
    html.atlas-js .lx-lenses[data-step="2"] .lx-lens[data-i="2"] {
        visibility: visible;
        opacity: 1;
        transition: opacity 0.6s var(--ease-out), visibility 0s;
    }
    html.atlas-js .lx-lenses:not([data-step]) .lx-lens[data-i="0"] .lx-lens-copy > *,
    html.atlas-js .lx-lenses[data-step="0"] .lx-lens[data-i="0"] .lx-lens-copy > *,
    html.atlas-js .lx-lenses[data-step="1"] .lx-lens[data-i="1"] .lx-lens-copy > *,
    html.atlas-js .lx-lenses[data-step="2"] .lx-lens[data-i="2"] .lx-lens-copy > * { transform: none; opacity: 1; }
    html.atlas-js .lx-lens .lx-lens-copy > :nth-child(2) { transition-delay: 0.06s; }
    html.atlas-js .lx-lens .lx-lens-copy > :nth-child(3) { transition-delay: 0.12s; }
    /* on the pinned stage a visual plays when its step is on, not when it scrolls in */
    html.atlas-js .lx-lenses:not([data-step="0"]) .lx-lens--cards .lx-cards img { --a: 0deg; --sx: 0%; }
    html.atlas-js .lx-lenses:not([data-step="1"]) .lx-radar .poly { transform: scale(0.4); opacity: 0; }
    html.atlas-js .lx-lenses:not([data-step="1"]) .lx-radar .pt { transform: scale(0); }
    html.atlas-js .lx-lenses:not([data-step="2"]) .lx-timeline .line,
    html.atlas-js .lx-lenses:not([data-step="2"]) .lx-timeline .arc { stroke-dashoffset: 1; }
    html.atlas-js .lx-lenses:not([data-step="2"]) .lx-timeline g { opacity: 0; translate: 0 10px; }

    html.atlas-js .lx-lenses-index {
        display: flex;
        grid-area: 2 / 1;
        gap: clamp(16px, 3vw, 48px);
        width: 100%;
        max-width: 1360px;
        margin-inline: auto;
        padding-top: var(--s-4);
        border-top: 1px solid var(--border);
    }
}
.lx-idx {
    position: relative;
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    letter-spacing: 0.1em;
    color: var(--text-dim);
    transition: color var(--dur-3) var(--ease);
}
:lang(en) .lx-idx { letter-spacing: 0; font-style: italic; }
.lx-idx-num { font-family: var(--font-mono); font-size: var(--fs-xs); font-style: normal; letter-spacing: 0.2em; color: var(--gold); }
.lx-idx-bar {
    position: absolute;
    top: calc(-1 * var(--s-4) - 1px);
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(clamp(0, calc(var(--p, 0) * 3 - var(--i, 0)), 1));
    transform-origin: left;
}
.lx-lenses[data-step="0"] .lx-idx[data-i="0"],
.lx-lenses[data-step="1"] .lx-idx[data-i="1"],
.lx-lenses[data-step="2"] .lx-idx[data-i="2"] { color: var(--text-strong); }

/* ═══ colophon ══════════════════════════════════════════════════════════════ */
.lx-colophon { padding: clamp(72px, 10vw, 140px) var(--gutter) 0; }
.lx-colophon-in { max-width: 780px; margin: 0 auto; padding: clamp(28px, 4vw, 48px) clamp(22px, 4vw, 56px); text-align: center; }
.lx-colophon p:first-child { font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); line-height: 1.8; letter-spacing: var(--track-cjk); color: var(--text); }
.lx-colophon p + p { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--text-dim); }
.lx-colophon a { display: inline-block; padding: 4px 2px; margin: -4px 0; }

/* ═══ IV · closing: the moon rises over the horizon ═════════════════════════ */
/* --close-foot is both the section's bottom padding and (less a gap) the horizon band's
   height: the centred copy cannot enter the padding, so the horizon line always runs
   below it. With the band at 30% and the padding set apart, the line crossed the copy
   at every desktop size (tests/landing_layout_smoke.py). The padding keeps its old value
   so the copy stays where it sat against the moon; only the line moved down. */
.lx-close {
    --close-foot: clamp(72px, 9vw, 120px);
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(110px, 14vw, 200px) var(--gutter) var(--close-foot);
    overflow: clip;
    text-align: center;
}
.lx-rise {
    position: absolute;
    z-index: -2;
    left: 50%;
    top: 46%;
    width: min(118vh, 100vw);
    aspect-ratio: 1;
    translate: -50% calc(-50% + (1 - min(1, var(--p, 0.5) * 2.2)) * 38vh);
}
.lx-rise svg { width: 100%; height: 100%; overflow: visible; }
.lx-horizon {
    position: absolute;
    z-index: -1;
    inset: auto 0 0 0;
    height: calc(var(--close-foot) - 24px);
    border-top: 1px solid var(--border-strong);
    background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 88%, transparent), var(--bg) 40%);
}
.lx-close-in { display: grid; justify-items: center; }
.lx-close-title {
    margin-bottom: clamp(30px, 5vh, 52px);
    padding-left: 0.14em;
    font-size: clamp(3rem, 0.6rem + 7.4vw, 8.6rem);
    line-height: 1.08;
    letter-spacing: 0.14em;
    text-shadow: 0 0 40px var(--bg);
}
:lang(en) .lx-close-title { padding-left: 0; letter-spacing: -0.02em; font-style: italic; max-width: 12em; }
.lx-cta--center { justify-content: center; }
.lx-about { margin-top: var(--s-7); }

/* ═══ responsive ════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .o-deg { display: none; }
    /* tablets, either way up: the copy is too wide for plates beside it, and on a tall screen
       the section stays in view for most of its scroll, so a deep drift walks the plates into
       the copy or out of the section. The plates hang above and below the copy instead, with a
       shallow drift: Fig. 1 top right, Fig. 2 bottom left, Fig. 3 bottom right. */
    .lx-manifesto { padding-top: 200px; padding-bottom: 220px; }
    .lx-spec { width: 104px; --d: 40; }
    .lx-spec--sea { top: 28px; right: 7%; justify-items: end; }
    .lx-spec--stranger { top: auto; bottom: 40px; left: 7%; justify-items: start; }
    .lx-spec--labyrinth { top: auto; bottom: 40px; right: 7%; justify-items: end; }
}
@media (max-width: 899px) {
    .lx-lens { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
    .lx-lens-visual { order: 0; }
    .lx-cards { width: min(100%, 380px); }
    .lx-statement-sub { grid-column: 3 / -1; }
}
@media (max-width: 760px) {
    .lx-hero { --o: 136vw; padding-top: calc(var(--nav-h) + 12px); }
    .lx-orrery { left: calc(60% - var(--o) / 2); top: calc(var(--nav-h) - var(--o) * 0.22); }
    .o-pos { display: none; }
    .lx-hero-copy { align-self: end; padding-bottom: var(--s-2); }
    .lx-title { font-size: clamp(2.6rem, 13.2vw, 4.2rem); line-height: 1.18; }
    :lang(en) .lx-title { font-size: clamp(2.5rem, 11.6vw, 4rem); line-height: 1; }
    .lx-hero-foot { grid-template-columns: 1fr auto; }
    .lx-hero-foot > :first-child { display: none; }
    .lx-cta .lx-btn { flex: 1 1 100%; }
    .lx-statement-sub { grid-column: 1 / -1; }
    /* the text runs full width here, so the plates sit above and below it, never behind */
    .lx-manifesto { padding-top: 170px; padding-bottom: 190px; }
    /* the tablet arrangement, smaller. Each caption aligns to its plate's outer edge and
       overflows inwards, never towards the screen edge. */
    .lx-spec { width: 92px; }
    .lx-spec--sea { top: 22px; right: 6%; width: 84px; }
    .lx-spec--stranger { bottom: 34px; left: 6%; width: 84px; }
    .lx-spec--labyrinth { bottom: 34px; right: 8%; width: 96px; }
    .lx-cards { width: min(72%, 300px); }
    .lx-rise { width: 150vw; top: 42%; }
    .lx-close { min-height: 88svh; }
    .lx-about-more { display: none; }
}
@media (max-width: 479px) {
    /* phones: the two long captions (Peregrinus, Labyrinthus) do not fit side by side,
       so Fig. 2 moves up beside Fig. 1, whose caption is short */
    .lx-spec--stranger { top: 22px; bottom: auto; }
}
@media (max-width: 359px) {
    /* and at 320px even that pair needs a tighter track */
    .lx-spec .cat { letter-spacing: 0.12em; }
}

@media (prefers-reduced-motion: reduce) {
    .o-rings, .o-counter, .o-orbit, .o-halo, .lx-cue-line { animation: none; }
    .o-halo { opacity: 0.22; }
    .lx-orrery, .lx-hero-copy { translate: none; scale: none; opacity: 1; }
    .lx-spec { translate: none; }
    .lx-rise { translate: -50% -50%; }
    /* the pinned lenses still change at their steps, by a fade alone */
    html.atlas-js .lx-lens .lx-lens-copy > * { transform: none; }
}
