/* ==========================================================================
   Averon Analytics · home ("The Pass"). Needs tokens.css + base.css first.
   One fixed WebGL canvas behind; chapter text scrolls over it; HUD overlays are fixed.
   html.gl = 3D story · html.static = still images (no WebGL 2 or reduced motion).
   ========================================================================== */

.home { background: var(--navy-950); }
.home main { position: relative; z-index: 1; }

/* ---------- canvas, loader ---------- */
.scene {
  position: fixed; inset: 0 auto auto 0; z-index: 0;
  width: 100vw; height: 100vh; height: 100lvh;
  pointer-events: none;
  background: var(--navy-950);
  opacity: 0;
  transition: opacity .9s linear;
}
.gl.is-intro .scene, .gl.is-ready .scene { opacity: 1; }
.static .scene { display: none; }

.loader {
  position: fixed; inset: 0; z-index: 60;
  background: radial-gradient(120% 80% at 50% 110%, #001a2e 0%, var(--navy-950) 60%);
  pointer-events: none;
  transition: opacity .8s linear, background-color .8s linear;
}
.loader__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loader__arc { fill: none; stroke: var(--gold-a32); stroke-width: 1; vector-effect: non-scaling-stroke; }
.loader__trail { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .9; }
.loader__node {
  position: absolute; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 5px rgba(239, 187, 117, .10), 0 0 22px 4px rgba(239, 187, 117, .45);
  will-change: transform;
}
.is-intro .loader, .loader.is-done { background-color: transparent; background-image: none; }
.loader.is-done { opacity: 0; }
.static .loader, .no-js .loader { display: none; }

/* header sits over the loader only after the intro */
.gl.is-loading .site-header, .gl.is-intro .site-header { opacity: 0; pointer-events: none; }
.gl .site-header { transition: opacity .8s linear, transform var(--dur-slow) var(--ease-out); }

/* ---------- altitude gauge ---------- */
.gauge {
  position: fixed; z-index: var(--z-hud); right: max(10px, env(safe-area-inset-right)); top: 50%;
  display: grid; justify-items: end; gap: 8px;
  transform: translateY(-50%);
  font: 500 11px/1.2 var(--font-text); letter-spacing: .16em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--mist);
  pointer-events: none;
  opacity: 0; transition: opacity .4s linear;
}
/* a small dark plate behind the words, so they read over the bright globe edge */
.gauge__label, .gauge__value { padding: 4px 7px; background: rgba(0, 15, 28, .82); box-shadow: inset 0 0 0 1px var(--line); }
.gl.is-ready .gauge { opacity: 1; }
.gauge__track { position: relative; width: 1px; height: 26vh; background: var(--mist-a24); margin-right: 3px; }
.gauge__track::before, .gauge__track::after { content: ""; position: absolute; right: -3px; width: 7px; height: 1px; background: var(--mist-a40); }
.gauge__track::before { top: 0; } .gauge__track::after { bottom: 0; }
.gauge__mark { position: absolute; right: -4px; top: 0; width: 9px; height: 100%; }
.gauge__mark::before { content: ""; position: absolute; right: 0; top: -1px; width: 9px; height: 2px; background: var(--gold); box-shadow: 0 0 8px var(--gold-a48); }
.gauge__value { color: var(--paper); letter-spacing: .12em; }
.gauge__value b { font-weight: 500; color: var(--gold); }
/* hidden over the real photos, over the flow sections, at the footer, and while words pass under it */
body[data-chapter="flow"] .gauge, body.on-flow .gauge, body.img-any .gauge, body.footer-in .gauge, body.pin-open .gauge, .gauge.is-yield { opacity: 0 !important; }   /* pin-open: the card has the room */
@media (max-width: 379px), (max-height: 600px) { .gauge { display: none; } }
@media (max-width: 767px) {
  .gauge { top: auto; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 32px); transform: none; grid-auto-flow: column; align-items: center; gap: 6px; }
  .gauge__track { display: none; }
  /* step aside where the timeline panel, the image caption or the pin controls use the bottom of the screen */
  body:is([data-chapter="watch"], [data-chapter="final"], [data-chapter="layers"]) .gauge { opacity: 0 !important; }
}

/* credit for the NASA globe (every chapter where the globe is the picture) */
.globe-credit {
  position: fixed; z-index: var(--z-hud); right: max(16px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); margin: 0;
  max-width: calc(100vw - 2 * var(--gutter));
  padding: 4px 8px; background: rgba(0, 15, 28, .82); box-shadow: inset 0 0 0 1px var(--line);
  font: 500 12px/1.35 var(--font-text); letter-spacing: .03em; color: var(--mist);
  pointer-events: none; opacity: 0; transition: opacity .4s linear;
}
.globe-credit__short { display: none; }
.gl.is-ready body:is([data-chapter="hero"], [data-chapter="intro"], [data-chapter="ask"], [data-chapter="design"], [data-chapter="final"]) .globe-credit { opacity: 1; }
body.img-any .globe-credit, body.on-flow .globe-credit, body.footer-in .globe-credit, .globe-credit.is-yield { opacity: 0 !important; }
@media (max-width: 767px) {
  .globe-credit { right: auto; left: max(var(--gutter), env(safe-area-inset-left)); }
  .globe-credit__long { display: none; }
  .globe-credit__short { display: inline; }
}
/* the pin controls use the bottom right on desktop: the credit moves to the left there */
@media (min-width: 900px) { body[data-chapter="final"] .globe-credit { right: auto; left: max(var(--gutter), calc((100vw - var(--max)) / 2)); } }
.static .globe-credit { display: none; }

/* ---------- chapters (3D) ---------- */
.ch { position: relative; }
.gl .ch { height: var(--len, 200vh); display: flow-root; }   /* flow-root: the copy's top margin must not leak out */
.gl .ch--hero { --len: 150vh; }
.gl .ch--intro { --len: 150vh; }
.gl .ch--ask { --len: 230vh; }
.gl .ch--design { --len: 210vh; }
.gl .ch--pass { --len: 300vh; }
.gl .ch--lens { --len: 210vh; }
.gl .ch--watch { --len: 190vh; }
.gl .ch--layers { --len: 210vh; }
.gl .ch--final { --len: 200vh; }

.ch__body { position: relative; }
.ch__copy {
  position: relative; z-index: 2;
  width: min(100% - 2 * var(--gutter), 560px);
  margin-inline: var(--gutter) auto;
  display: grid; gap: var(--stack);
}
.gl .ch__copy { margin-top: var(--at, 40vh); }
/* soft navy scrim so words stay readable over the scene */
.gl .ch__copy::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -14vh calc(-1 * var(--gutter)) -14vh calc(-1 * var(--gutter));   /* never wider than the screen (no sideways pan on iOS) */
  background: radial-gradient(closest-side, rgba(0, 15, 28, .86) 0%, rgba(0, 15, 28, .66) 58%, rgba(0, 15, 28, 0) 100%);
}
.ch__copy h2 { font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3.1rem); line-height: 1.1; }   /* about 30 px on phones, about 50 px on desktop; balanced lines */
.ch__copy p { color: var(--text); max-width: 46ch; }
.ch__copy .lead { color: var(--mist); }
.ch--intro .ch__copy p { max-width: 52ch; }   /* six lines or fewer on wide screens, so the lines balance evenly (the last line is not a short one) */
.gl .ch--intro { --at: 70vh; }
.gl .ch--ask { --at: 45vh; }
.gl .ch--design { --at: 40vh; }
.gl .ch--pass { --at: 28vh; }
.gl .ch--lens { --at: 30vh; }
.gl .ch--watch { --at: 32vh; }
.gl .ch--layers { --at: 30vh; }
.gl .ch--lens { --at: 85vh; }   /* the develop finishes before these words arrive */
@media (max-width: 899px) {
  .gl .ch--lens { --len: 250vh; }
  .gl .ch--watch { --at: 60vh; }
}
/* chapters whose words should hold while the scene plays: the text block sticks below the header */
.gl :is(.ch--intro, .ch--ask, .ch--design, .ch--watch) .ch__body {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top) + 2vh);
  margin-top: var(--at); z-index: 2;
}
.gl :is(.ch--intro, .ch--ask, .ch--design, .ch--watch) .ch__copy { margin-top: 0; }
@media (min-width: 900px) {
  .gl .ch--layers .ch__body { position: sticky; top: calc(var(--header-h) + 8vh); margin-top: var(--at); z-index: 2; }
  .gl .ch--layers .ch__copy { margin-top: 0; }
  .gl :is(.ch--intro, .ch--ask, .ch--design, .ch--watch) .ch__body { top: calc(var(--header-h) + 10vh); }
}

@media (min-width: 900px) {
  .ch__copy { margin-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)) auto; width: min(46vw, 610px); }
  .gl .ch__copy::before { inset: -16vh -10vw -16vh -12vw; }
}
/* words over the real image: an even navy band across the screen (phones and portrait tablets),
   a chamfered navy glass panel on desktop. The radial scrim faded out exactly where the lines start and end. */
@media (max-width: 899px) {
  .gl .ch--ask .ch__copy::before {   /* the nine questions reach down over the bright globe */
    inset: -3vh calc(100% - 100vw + var(--gutter)) -6vh calc(-1 * var(--gutter));
    background: linear-gradient(180deg, rgba(0, 15, 28, .55) 0, rgba(0, 15, 28, .84) 6vh, rgba(0, 15, 28, .84) calc(100% - 6vh), rgba(0, 15, 28, 0) 100%);
  }
  .gl :is(.ch--pass, .ch--lens, .ch--watch, .ch--layers) .ch__copy::before {
    inset: -5vh calc(100% - 100vw + var(--gutter)) -5vh calc(-1 * var(--gutter));
    background: linear-gradient(180deg, rgba(0, 15, 28, 0) 0, rgba(0, 15, 28, .88) 5vh, rgba(0, 15, 28, .88) calc(100% - 5vh), rgba(0, 15, 28, 0) 100%);
  }
}
@media (min-width: 900px) {
  .gl :is(.ch--pass, .ch--lens, .ch--watch, .ch--layers) .ch__copy::before,
  .gl :is(.ch--pass, .ch--lens, .ch--watch, .ch--layers) .ch__copy::after {
    --cy: 14px; --cx: calc(var(--cy) * var(--cut-ratio)); --t: 1px;
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    inset: -34px -38px;
  }
  .gl :is(.ch--pass, .ch--lens, .ch--watch, .ch--layers) .ch__copy { width: fit-content; max-width: min(46vw, 610px); }
  .gl :is(.ch--pass, .ch--lens, .ch--watch, .ch--layers) .ch__copy::before {
    background: linear-gradient(155deg, rgba(4, 26, 44, .86), rgba(0, 15, 28, .84));   /* no backdrop blur: steady over the moving scene, cheap on the GPU */
    clip-path: polygon(var(--cx) 0, calc(100% - var(--cx)) 0, 100% var(--cy), 100% calc(100% - var(--cy)),
      calc(100% - var(--cx)) 100%, var(--cx) 100%, 0 calc(100% - var(--cy)), 0 var(--cy));
  }
  .gl :is(.ch--pass, .ch--lens, .ch--watch, .ch--layers) .ch__copy::after {   /* fine line along the cut shape */
    background: var(--mist-a24);
    clip-path: polygon(evenodd,
      var(--cx) 0, calc(100% - var(--cx)) 0, 100% var(--cy), 100% calc(100% - var(--cy)),
      calc(100% - var(--cx)) 100%, var(--cx) 100%, 0 calc(100% - var(--cy)), 0 var(--cy), var(--cx) 0,
      calc(var(--cx) + var(--t) * .2401) var(--t),
      var(--t) calc(var(--cy) + var(--t) * .6128),
      var(--t) calc(100% - var(--cy) - var(--t) * .6128),
      calc(var(--cx) + var(--t) * .2401) calc(100% - var(--t)),
      calc(100% - var(--cx) - var(--t) * .2401) calc(100% - var(--t)),
      calc(100% - var(--t)) calc(100% - var(--cy) - var(--t) * .6128),
      calc(100% - var(--t)) calc(var(--cy) + var(--t) * .6128),
      calc(100% - var(--cx) - var(--t) * .2401) var(--t),
      calc(var(--cx) + var(--t) * .2401) var(--t));
  }
}
/* phones held sideways: the words and their navy band keep the left half; the photo caption, the timeline,
   the time lens and its hint use the right half, so every photo keeps its caption and the lens keeps its room */
@media (max-width: 899px) and (orientation: landscape) {
  .gl :is(.ch--pass, .ch--lens, .ch--watch, .ch--layers) .ch__copy { width: calc(50vw - var(--gutter) - 8px); }
  .gl :is(.ch--pass, .ch--lens, .ch--watch, .ch--layers) .ch__copy h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); }
  .gl :is(.ch--pass, .ch--lens, .ch--watch, .ch--layers) .ch__copy::before {
    inset: -5vh -28px -5vh calc(-1 * var(--gutter));
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
}
@media (max-width: 899px) and (orientation: landscape), (max-height: 500px) and (orientation: landscape) {
  .gl .hudcap { left: auto; right: max(var(--gutter), env(safe-area-inset-right)); width: calc(50vw - var(--gutter) - 12px); padding: 5px 9px; text-transform: none; letter-spacing: .02em; }
  .gl .passes { left: auto; right: max(var(--gutter), env(safe-area-inset-right)); width: calc(50vw - var(--gutter) - 12px); }
  .gl .passes__cap { text-transform: none; letter-spacing: .02em; }
  .gl .lens-hint { left: auto; right: max(var(--gutter), env(safe-area-inset-right)); transform: none; max-width: calc(50vw - var(--gutter) - 12px);
    padding: 6px 10px; gap: 8px; font-size: 12px; letter-spacing: .04em; }
}

/* ---------- hero ---------- */
.hero { --at: 0; }
.gl .ch--hero .ch__copy { margin-top: 0; padding-top: calc(var(--header-h) + env(safe-area-inset-top) + clamp(28px, 6vh, 64px)); }
.hero__title {
  font-size: clamp(2.05rem, 10.8vw, 4.4rem);   /* about 42 px at 390: INTELLIGENCE still fits */
  line-height: 1.04;
  letter-spacing: .07em;
  font-weight: 400;
  max-width: 15em;
  overflow-wrap: normal;
}
.hero__text { max-width: 40ch; color: var(--mist); }
.hero__buttons { margin-top: 6px; }
.hero__eyebrow { color: var(--gold); }
.gl [data-hero] { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.gl [data-hero].is-in { opacity: 1; transform: none; }
.scroll-cue {
  position: absolute; left: 50%; top: calc(100vh - 118px); top: calc(100svh - 118px); translate: -50% 0;   /* translate, not transform: the reveal animation sets transform */
  display: grid; justify-items: center; gap: 8px;
  font: 500 11px/1 var(--font-text); letter-spacing: .3em; text-transform: uppercase; color: var(--mist);
}
.gl body.scrolled .scroll-cue.is-in { opacity: 0; transition: opacity .4s linear; }
.scroll-cue span { padding: 3px 7px 3px calc(7px + .3em); background: rgba(0, 15, 28, .72); }   /* readable over the city lights */
.scroll-cue i { width: 1px; height: 30px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.static .scroll-cue { display: none; }
@media (min-width: 900px) {
  .gl .ch--hero .ch__copy { padding-top: calc(var(--header-h) + 13vh); width: min(56vw, 780px); }
  .hero__title { font-size: clamp(3.5rem, 6.4vw, 6rem); }   /* about 92 px at 1440 */
  .static .hero__title { font-size: clamp(2.6rem, 5.2vw, 5rem); }   /* still version: the title shares the row with its image */
}
@media (max-height: 700px) and (max-width: 899px) {
  .gl .ch--hero .ch__copy { padding-top: calc(var(--header-h) + 18px); gap: 14px; }
  .hero__title { font-size: clamp(1.9rem, 10.2vw, 2.6rem); }
}
/* phones turned sideways: the hero, its buttons and the cue fit in the short screen */
@media (max-height: 500px) and (orientation: landscape) {
  .gl .ch--hero .ch__copy { padding-top: calc(var(--header-h) + 10px); gap: 10px; width: min(88vw, 720px); }
  .hero__title { font-size: clamp(1.8rem, 4.6vw, 2.4rem); }
  .hero__text { font-size: 1rem; line-height: 1.5; max-width: 52ch; }
  .gl .scroll-cue { display: none; }
}

/* ---------- ask: the nine questions type themselves ---------- */
.ask { display: grid; gap: 10px; margin-top: 4px; }
.ask__typed {
  min-height: calc(2 * 1.3em + 4px);
  font-family: var(--font-display); font-size: var(--fs-h4); line-height: 1.3; letter-spacing: .04em; text-transform: uppercase;
  color: var(--gold);
  transition: opacity .3s linear, transform .3s var(--ease-out);
}
.ask__typed.is-out { opacity: 0; transform: translateY(-6px); }
.ask__caret { display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -.12em; background: var(--gold); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ask__label { margin-bottom: 2px; }
/* numbers in their own column that starts at the label's left edge, so label, numbers and questions line up */
.ask__list { display: grid; gap: 8px; padding: 0; list-style: none; counter-reset: q; color: var(--mist); font-size: var(--fs-base); }
.ask__list li { position: relative; padding-left: 2.1em; counter-increment: q; }
.ask__list li::before { content: counter(q, decimal-leading-zero); position: absolute; left: 0; top: .2em; font-size: .8em; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--gold); }
.gl .ask__typed { display: none; }
.gl .ask__list { gap: 6px; font-size: 15px; line-height: 1.38; color: var(--text-dim); }
.gl .ask__list li { transition: color .3s linear; }
.gl .ask__list li.is-done { color: var(--mist); }
.gl .ask__list li.is-now { color: var(--text-dim); }
.gl .ask__list li.is-now .ask__on { color: var(--paper); }
.gl .ask__list li.is-now .ask__off { color: #BAC5CD; }   /* the part not typed yet: dimmer than the typed part, still 4.5:1 over the bright globe */
.gl .ask__list li.is-now::before { color: var(--gold); font-weight: 600; }
.gl .ask__list li:not(.is-now)::before { color: var(--gold-a72); }
.ask__caret2 { display: inline-block; width: 2px; height: 1em; margin: 0 1px 0 2px; vertical-align: -.14em; background: var(--gold); animation: caret 1s steps(1) infinite; }
.static .ask__typed { display: none; }

.pin-tag {
  position: fixed; left: 0; top: 0; z-index: 3; pointer-events: none;
  display: grid; gap: 3px; padding: 6px 9px; margin: -20px 0 0 18px;
  background: rgba(0, 15, 28, .84); box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0; transition: opacity .4s linear;
}
.pin-tag::before { content: ""; position: absolute; left: -18px; top: 20px; width: 16px; height: 1px; background: var(--gold-a72); }
.pin-tag.is-on { opacity: 1; }
.pin-tag.is-left { translate: -100% 0; margin: -20px 0 0 -18px; text-align: right; }
.pin-tag.is-left::before { left: auto; right: -18px; }
.pin-tag.is-yield { opacity: 0 !important; }
.pin-tag.is-below { margin: 0; }
.pin-tag.is-below::before { display: none; }
.pin-tag__ll { font: 500 12px/1.3 var(--font-text); letter-spacing: .1em; color: var(--paper); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pin-tag .label { font-size: 11px; }
body:not([data-chapter="ask"]) .pin-tag { opacity: 0 !important; }

/* ---------- design: orbit labels + archive stack ---------- */
.design-note { padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.design-note .title { color: var(--gold); }
.olabels { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.olabel, .archive {
  position: absolute; left: 0; top: 0;
  font: 500 var(--fs-label)/1 var(--font-text); letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--paper);
  opacity: 0; transition: opacity .5s linear, color .4s linear;
  white-space: nowrap;
}
.olabel { padding: 6px 9px 6px 30px; margin: -14px 0 0 0; background: linear-gradient(90deg, transparent 22px, rgba(0, 15, 28, .84) 22px); }
.olabel::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.olabel.is-on { opacity: 1; }
.olabel.is-left { translate: -100% 0; padding: 6px 30px 6px 9px; background: linear-gradient(270deg, transparent 22px, rgba(0, 15, 28, .84) 22px); }
.olabel.is-left::before { left: auto; right: 0; }
.olabel.is-lit { color: var(--gold); }
.olabel.is-lit::after { content: ""; position: absolute; left: -4px; top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold-a72); }
.olabel.is-dim { color: var(--mist); }
.olabel.is-hid, .archive.is-hid { opacity: 0 !important; }
.archive { display: grid; justify-items: center; gap: 0; width: 88px; margin: -30px 0 0 -44px; }
.archive.is-on { opacity: 1; }
.archive i {
  display: block; width: 64px; height: 32px; margin-top: -24px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: linear-gradient(135deg, rgba(204, 213, 219, .20), rgba(204, 213, 219, .06));
  box-shadow: inset 0 0 0 1px var(--mist-a40);
  position: relative;
}
.archive i:first-child { margin-top: 0; }
.archive i::after { content: ""; position: absolute; inset: 1px; clip-path: inherit; background: rgba(0, 26, 46, .7); }
.archive b { margin-top: 10px; padding: 5px 8px; font-weight: 500; background: rgba(0, 15, 28, .84); box-shadow: inset 0 0 0 1px var(--line); }
.archive.is-dim { color: var(--mist); }
body:not([data-chapter="design"]) .olabels { opacity: 0; }
.olabels { transition: opacity .4s linear; }

/* ---------- capability chapters ---------- */
.cap-head { display: flex; align-items: center; gap: 14px; }
.icon-tile {
  position: relative; flex: none; display: grid; place-items: center; width: 52px; height: 52px;
  background: linear-gradient(150deg, var(--navy-600), var(--navy-900));
  box-shadow: inset 0 0 0 1px var(--gold-a32), 0 0 26px rgba(239, 187, 117, .18);
}
.icon-tile img { width: 34px; height: 34px; filter: drop-shadow(0 0 6px rgba(239, 187, 117, .5)); }

/* image captions (place, date, satellite, resolution, credit, label) */
.imgcap {
  margin: 0; gap: .35em 1em; color: var(--mist);
  font-size: 12px; letter-spacing: .08em; line-height: 1.5;
}
.imgcap span { display: inline-flex; align-items: center; gap: 1em; }
.imgcap span:last-child { color: var(--gold); }
/* 3D version: the chapter captions stay in the page for screen readers; the caption you see is the one HUD line below */
.gl .ch__body > .imgcap, .gl .layers-note {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.hudcap {
  position: fixed; z-index: var(--z-hud); margin: 0;
  left: max(var(--gutter), env(safe-area-inset-left)); right: max(var(--gutter), env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); top: auto;
  padding: 8px 11px; gap: .28em .9em;
  background: rgba(0, 15, 28, .9); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12px; letter-spacing: .07em; line-height: 1.45; color: var(--mist);
  opacity: 0; transition: opacity .3s linear; pointer-events: none;
}
.hudcap > * { gap: .9em; }
.hudcap > :last-child { color: var(--gold); }
.hudcap.is-on { opacity: 1; }
.hudcap.is-top { bottom: auto; top: calc(var(--header-h) + env(safe-area-inset-top) + 10px); }
@media (min-width: 900px) {
  .hudcap { left: auto; right: calc(var(--gutter) + 8px); width: min(40vw, 560px); bottom: 22px; }
}
@media (max-height: 700px) and (max-width: 899px) { .hudcap { padding: 5px 9px; row-gap: 1px; letter-spacing: .04em; line-height: 1.3; } }
/* phones: the credit lines in sentence case take about half the lines of the uppercase readout */
@media (max-width: 599px) { .hudcap, .passes__cap { text-transform: none; letter-spacing: .02em; } }
@media (max-height: 500px) and (orientation: landscape) {
  .hudcap { left: auto; right: max(var(--gutter), env(safe-area-inset-right)); width: min(46vw, 420px); padding: 6px 9px; }
}
.static .hudcap { display: none; }
/* calmer image chapters: no floating caption box; each chapter's caption is a quiet line in its own words, so it moves
   with them and never jumps between the top and the bottom of the screen */
.gl .hudcap { display: none !important; }
.gl .ch__copy .imgcap {
  display: flex; flex-wrap: wrap; gap: .15em .9em; margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 12px; letter-spacing: .02em; line-height: 1.45; text-transform: none; color: var(--mist);
}
.gl .ch__copy .imgcap span:last-child { color: var(--text-dim); }
/* phones: each caption keeps its key fact (place and date, the two lens dates, the illustration note), one per line;
   satellite, resolution and credit stay on desktop and in the footer credit */
@media (max-width: 899px) and (orientation: portrait) {
  .gl .ch__copy .imgcap { display: grid; justify-content: start; gap: 2px; }
  .gl .ch__copy .imgcap > .cap-x { display: none; }
  .gl .ch__copy .imgcap > *::before { display: none; }
}

/* time lens control (the lens itself is drawn in WebGL; this is the handle, focus ring and date) */
.lens-ui {
  --r: 110px;
  position: fixed; left: 0; top: 0; z-index: 4;
  width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1);
  border-radius: 50%;
  touch-action: none; cursor: grab;
  opacity: 0; pointer-events: none; transition: opacity .4s linear;   /* stays focusable: keyboard users can reach it from anywhere */
}
.lens-ui.is-on { opacity: 1; pointer-events: auto; }
.lens-ui:not(.is-on) { transition-duration: .12s; }   /* leaves quickly (never lingers on words), arrives softly */
.lens-ui.is-drag { cursor: grabbing; }
.lens-ui:focus-visible { outline: 3px solid var(--paper); outline-offset: 6px; box-shadow: 0 0 0 11px rgba(0, 15, 28, .72); }
.lens-ui__date {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  padding: 5px 9px; background: var(--gold); color: var(--navy);
  font: 600 12px/1 var(--font-text); letter-spacing: .14em; font-variant-numeric: tabular-nums;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0 50%);
}
body:not([data-chapter="lens"]) .lens-ui { opacity: 0 !important; pointer-events: none !important; }
.lens-hint {
  position: fixed; z-index: var(--z-hud); left: 50%; top: calc(var(--header-h) + env(safe-area-inset-top) + 14px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px;
  background: rgba(0, 15, 28, .86); border: 1px solid var(--line);
  font: 500 var(--fs-label)/1.3 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--paper);
  max-width: calc(100vw - 2 * var(--gutter)); width: max-content; text-align: center; pointer-events: none;
  opacity: 0; transition: opacity .4s linear;
}
.lens-hint__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold-a72); }
.lens-hint__keys { display: none; }
body.lens-on .lens-hint { opacity: 1; }
body.lens-on .lens-hint:is(.is-yield, .is-crowded) { opacity: 0; transition-duration: .12s; }   /* steps aside at once when words reach it */
@media (hover: hover) and (pointer: fine) { .lens-hint__touch { display: none; } .lens-hint__keys { display: inline; } }
.static .lens-ui, .static .lens-hint { display: none; }

/* repeat passes: real acquisition dates as ticks */
.passes {
  position: fixed; z-index: var(--z-hud); left: var(--gutter); right: var(--gutter); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 4px);
  display: grid; gap: 10px; padding: 14px 14px 12px;
  background: rgba(0, 15, 28, .72); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(10px); transition: opacity .5s linear, transform .5s var(--ease-out);
  pointer-events: none;
}
body[data-chapter="watch"] .passes { opacity: 1; transform: none; }
body[data-chapter="watch"] .passes.is-yield { opacity: 0; transform: translateY(10px); }
.passes__head { justify-content: space-between; font-size: 12px; }
.passes__head b { color: var(--gold); font-weight: 500; }
.passes__track { position: relative; height: 34px; border-bottom: 1px solid var(--mist-a24); overflow: hidden; }
.tick { position: absolute; bottom: 0; width: 1px; height: 18px; background: var(--mist-a40); transform-origin: bottom; transition: background-color .25s linear, height .25s var(--ease-out); }
.tick--cloud { height: 9px; background: var(--mist-a14); }
.tick.is-past { background: var(--gold); height: 26px; }
.tick--cloud.is-past { background: var(--gold-a32); height: 12px; }
.passes__head-line { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; pointer-events: none; }
.passes__head-line::before { content: ""; position: absolute; left: 0; top: 0; bottom: -1px; width: 1px; background: var(--paper); box-shadow: 0 0 8px rgba(239, 238, 235, .7); }
.passes__note { font-size: 13px; line-height: 1.45; color: var(--mist); max-width: 70ch; }
.passes__cap { gap: .2em .8em; font-size: 12px; letter-spacing: .06em; line-height: 1.45; color: var(--mist); }
.passes__cap > :last-child { color: var(--gold); }
.static .passes__cap { display: none; }
/* 3D: the timeline sits inside the chapter's words (it holds with them; nothing floats in the middle of the photo) */
.gl .ch__copy .passes {
  position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; z-index: auto;
  margin-top: 4px; opacity: 1; transform: none; pointer-events: auto;
  -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(0, 15, 28, .5);
}
.gl .ch__copy .passes.is-yield { opacity: 1; transform: none; }
.gl .passes__cap { display: none; }
.passes__view { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em .7em; margin: 0; font-size: 13px; line-height: 1.45; letter-spacing: .02em; text-transform: none; color: var(--mist); }
.passes__view:empty { display: none; }
.passes__view b { color: var(--paper); font-weight: 500; }
.passes__view-k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.static .passes__view { display: none; }
.static .ch__copy .passes { margin-inline: 0; }
@media (max-height: 700px) {
  .passes { gap: 6px; padding: 9px 11px 10px; bottom: max(10px, env(safe-area-inset-bottom)); }
  .passes__track { height: 22px; } .tick { height: 12px; } .tick.is-past { height: 18px; }
  .passes__note { font-size: 12px; line-height: 1.38; }
  .passes__cap { letter-spacing: .04em; line-height: 1.38; }
}
@media (max-height: 500px) and (orientation: landscape) { .gl .passes__note { display: none; } }   /* the panel's place: the right half (see the sideways block above) */
@media (min-width: 900px) { .passes { left: auto; right: calc(var(--gutter) + 40px); width: min(46vw, 620px); bottom: 24px; } }
/* phones held upright: one thing at a time. The words come and scroll away; the timeline (moved here by main.js) follows them in,
   holds at the bottom of the screen over the clear photo while the views change, then leaves with the chapter */
.passes-rail { display: none; }
@media (max-width: 899px) and (orientation: portrait) {
  .gl .ch--watch { --len: 380vh; display: flex; flex-direction: column; }
  .gl .ch--watch .ch__body { position: relative; top: auto; flex: none; }
  .gl .passes-rail { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: flex-end; min-height: 0; margin-top: 22vh; }
  .gl .passes-rail .passes {
    position: sticky; top: auto; left: auto; right: auto; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 3;
    margin: 0 var(--gutter); gap: 8px; padding: 12px 14px;
    opacity: 1; transform: none; transition: none; background: rgba(0, 15, 28, .9);
  }
  .gl .passes-rail .passes.is-yield { opacity: 1; transform: none; }
  .gl .passes-rail .passes__note { display: none; }
  .gl .passes-rail .passes__head { gap: 2px 1em; text-transform: none; letter-spacing: .02em; }
  .gl .passes-rail .passes__head > * { gap: .4em; }
  .gl .passes-rail .passes__head > * + *::before { display: none; }
  .gl .passes-rail .passes__track { height: 26px; }
  .gl .passes-rail .passes__view { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 2px .8em; }
  .gl .passes-rail .passes__view > *::before { display: none; }
  .gl .passes-rail .passes__view > :last-child { grid-column: 1 / -1; }
}

/* analysis layers labels */
.llabels { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.llabel {
  position: absolute; left: 0; top: 0; margin: -9px 0 0 0; padding-right: 30px; transform-origin: left;
  font: 500 var(--fs-label)/1 var(--font-text); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--paper);
  white-space: nowrap; opacity: 0; transition: opacity .5s linear;
}
.llabel::after { content: ""; position: absolute; right: 4px; top: 50%; width: 20px; height: 1px; background: var(--gold-a72); }
.llabel { translate: -100% 0; }
.llabel.is-in { padding: 5px 8px; background: rgba(0, 15, 28, .84); border: 1px solid var(--line); font-size: 11px; letter-spacing: .16em; }
.llabel.is-yield { opacity: 0 !important; transition-duration: .12s; }
.llabel.is-in::after { display: none; }
.llabel.is-on { opacity: 1; }
body:not([data-chapter="layers"]) .llabels { opacity: 0; }
.layers-note { margin: 0; }
.static .llabels, .static .olabels, .static .pin-tag { display: none; }

/* ---------- flow sections (sectors ... answers): solid navy over the scene ---------- */
.flow { position: relative; z-index: 2; }
.gl .flow {
  background: linear-gradient(180deg, rgba(0, 36, 63, 0) 0, var(--navy-950) 34vh, var(--navy) 70vh, var(--navy) calc(100% - 60vh), var(--navy-950) calc(100% - 30vh), rgba(0, 15, 28, 0) 100%);
  padding-top: 30vh; padding-bottom: 40vh;
}
.static .flow { background: var(--navy); }

/* sectors strip */
.sectors .section-head { margin-bottom: var(--space-l); }
.strip-wrap { position: relative; }
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 360px); gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 4px max(var(--gutter), calc((100vw - var(--max)) / 2)) 18px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
/* each sector is one photo card: a small credit chip at the top, the name and one short line over a navy fade at the bottom */
.sector { scroll-snap-align: start; position: relative; display: block; overflow: hidden; background: var(--navy-900); outline: 1px solid var(--line); outline-offset: -1px; }
.sector__img { position: relative; margin: 0; }
.sector__img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--navy-900); transition: transform 1.2s var(--ease-out); }
.sector__img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 15, 28, 0) 42%, rgba(0, 15, 28, .62) 66%, rgba(0, 15, 28, .95) 100%); }
.sector__cap {
  position: absolute; z-index: 1; top: 10px; left: 10px; max-width: calc(100% - 20px);
  padding: 5px 8px; background: rgba(0, 15, 28, .8);
  font: 500 11px/1.4 var(--font-text); letter-spacing: .02em; color: var(--mist);
}
.sector__cap b { font-weight: 500; color: var(--gold); }
.sector__txt { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 6px; }
.sector__name { font-size: var(--fs-h4); letter-spacing: .08em; color: var(--paper); }
.sector p { color: var(--mist); font-size: var(--fs-base); line-height: 1.4; }
@media (hover: hover) and (pointer: fine) { .sector:hover .sector__img img { transform: scale(1.03); } }
/* short screens (phones held sideways): wider, lower cards so a whole card fits on the screen */
@media (max-height: 520px) and (orientation: landscape) { .strip { grid-auto-columns: min(46vw, 380px); } .sector__img img { aspect-ratio: 16 / 10; } }
.strip { cursor: auto; }
.strip:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.strip.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.strip.is-drag img { pointer-events: none; }
.strip-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 6px; }
.strip-foot .link { min-height: 44px; display: inline-flex; align-items: center; }
.strip-nav { display: none; gap: 10px; }
.strip-btn { position: relative; width: 56px; min-width: 56px; padding: 0; }
.strip-btn i { position: absolute; top: 50%; width: 11px; height: 1.5px; margin-top: -.75px; background: currentColor; }
.strip-btn--next i { right: calc(50% - 4px); transform-origin: right center; }
.strip-btn--prev i { left: calc(50% - 4px); transform-origin: left center; }
.strip-btn i:first-child { transform: rotate(27deg); }
.strip-btn i:last-child { transform: rotate(-27deg); }
.strip-btn.is-off { opacity: .38; }
/* mouse and trackpad: buttons, drag and arrow keys (the swipe hint is for touch) */
@media (hover: hover) and (pointer: fine) {
  .strip-nav { display: flex; }
  .strip-hint { display: none; }
  .strip { cursor: grab; }
}

/* how it works: a compact numbered track */
.steps { display: grid; gap: 0; counter-reset: s; }
.step {
  position: relative; display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; row-gap: 6px; align-content: start;
  padding: 18px 0 22px; border-top: 1px solid var(--line);
}
.step__num { grid-row: span 2; font: 300 1.6rem/1 var(--font-text); letter-spacing: .04em; color: var(--gold); font-variant-numeric: tabular-nums; }
.step__title { font-size: var(--fs-h4); letter-spacing: .08em; line-height: 1.3; }
.step p { color: var(--mist); }
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }
  .step { grid-template-columns: 1fr; padding: 22px 0 36px; }
  .step__num { grid-row: auto; font-size: 2.2rem; margin-bottom: 10px; }
  .step::before { content: ""; position: absolute; left: 0; top: -1px; width: 40px; height: 1px; background: var(--gold); }
}

/* six packages: tactile keys */
.pk { display: grid; gap: var(--space-l); }
.keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.key {
  position: relative; min-height: 76px; padding: 0 0 6px;
  text-align: left; color: var(--paper);
  -webkit-tap-highlight-color: transparent;
}
.key::before { /* key wall (the depth under the cap) */
  content: ""; position: absolute; inset: 6px 0 0 0;
  background: linear-gradient(180deg, #021a2d, #000c17);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 5px), 0 5px);
}
.key__cap {
  position: relative; display: grid; align-content: center; gap: 4px; height: 100%; min-height: 70px; padding: 12px 18px;
  background: linear-gradient(160deg, var(--navy-600) 0%, var(--navy-700) 60%, var(--navy-850) 100%);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 5px), 0 5px);
  box-shadow: inset 0 1px 0 rgba(239, 238, 235, .12);
  transform: translateY(0);
  transition: transform .16s var(--ease-out-soft), background .3s linear;
}
.key__brand { font: 500 11px/1 var(--font-text); letter-spacing: .22em; text-transform: uppercase; color: var(--text-dim); }
.key__name { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.15; letter-spacing: .08em; text-transform: uppercase; }
.key:hover .key__cap { background: linear-gradient(160deg, #1b3b52 0%, var(--navy-600) 60%, var(--navy-850) 100%); }
.key:active .key__cap, .key.is-press .key__cap { transform: translateY(4px); }
.key[aria-selected="true"] .key__cap { transform: translateY(5px); background: linear-gradient(160deg, #f3c88f 0%, var(--gold) 55%, #e2a95f 100%); }
.key[aria-selected="true"] .key__brand { color: rgba(0, 36, 63, .7); }
.key[aria-selected="true"] .key__name { color: var(--navy); }
.key[aria-selected="true"]::after { content: ""; position: absolute; right: 14px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--navy); }
.key:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.pk__panels { padding: clamp(16px, 3vw, 36px); min-height: 260px; }
.pk__panel .list-diamond > li { padding-left: 1.15em; }
.pk__panel { display: grid; gap: 12px; }
.pk__panel:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.pk__panel .title { color: var(--gold); }
.pk__for { color: var(--mist); }
.pk__panel .list-diamond { margin-top: 6px; grid-template-columns: minmax(0, 1fr); }
.pk__panel .list-diamond li { text-wrap: balance; }
.no-js .pk__panel, html:not(.pk-ready) .pk__panel { display: grid !important; padding-bottom: 24px; }
@media (min-width: 720px) { .keys { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) {
  .pk { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
  .key { min-height: 92px; }
  .key__cap { min-height: 86px; }
}

/* why Averon */
.reasons { display: grid; gap: 0; }
.reason { display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; row-gap: 6px; align-content: start; padding: 18px 0 22px; border-top: 1px solid var(--line); }
.reason .diamond { width: 18px; height: 9px; margin-top: .45em; grid-row: span 2; }
.reason p { color: var(--mist); }
@media (min-width: 800px) {
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }   /* 800-1023: two columns, so the two-word titles stay on one line */
  .reason { grid-template-columns: 1fr; padding: 24px 0 36px; }
  .reason .diamond { grid-row: auto; margin: 0 0 12px; }
}
@media (min-width: 1024px) { .reasons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* what every report states (Paper) */
.report__grid { display: grid; gap: var(--space-l); }
.checks { display: grid; gap: 0; }
.checks li {
  display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 0;
  border-bottom: 1px solid var(--line); font-size: var(--fs-lead); font-weight: 400; color: var(--navy);
}
.checks__box { position: relative; flex: none; width: 22px; height: 22px; border: 1px solid rgba(0, 36, 63, .5); }
.checks__box::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 12px;
  border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
@media (min-width: 900px) {
  .report__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 7rem); align-items: start; }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}

/* straight answers */
.qa-grid { display: grid; gap: 12px; }
.qa { display: grid; align-content: start; gap: 10px; padding: clamp(18px, 4vw, 24px); background: linear-gradient(160deg, rgba(20, 50, 72, .55), rgba(0, 26, 46, .45)); border: 1px solid var(--line); }
.qa__q { font-size: var(--fs-h4); letter-spacing: .06em; line-height: 1.3; color: var(--gold); }
.qa p, .qa li { color: var(--mist); }
.qa--more { background: none; border-style: dashed; justify-items: start; align-content: center; }
@media (min-width: 720px) { .qa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .qa-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- final chapter: logo, call to action, pin drop ---------- */
.ch--final .ch__pin { position: relative; }
.gl .ch--final .ch__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.final {
  position: relative; z-index: 2; height: 100%;
  display: grid; align-content: start; gap: clamp(14px, 2.4vh, 22px);
  width: min(100% - 2 * var(--gutter), 560px); margin-inline: var(--gutter) auto;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top) + clamp(10px, 3vh, 36px));
  pointer-events: none;
}
.final > * { pointer-events: auto; }
.final__logo { width: clamp(120px, 34vw, 210px); }
.final__logo svg { width: 100%; height: auto; overflow: visible; }
.gl .final__logo .logo__a, .gl .final__logo .logo__word { opacity: var(--rest, 0); transition: opacity .2s linear; }
.gl .final__logo .logo__orbit { clip-path: inset(0 calc((1 - var(--orbit, 0)) * 100%) 0 0); }
.gl .final__logo .logo__node { opacity: 0; }
.gl .final__logo.is-node .logo__node { opacity: 1; }
.final__copy { display: grid; gap: 12px; }
.final__copy h2 { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.2rem); max-width: 18em; }
.final__copy p { color: var(--mist); max-width: 44ch; }
.final__copy .btn-row { margin-top: 4px; }
.gl .ch--final .final__copy { position: relative; }
.gl .ch--final .final__copy::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -8vh calc(-1 * var(--gutter)) -8vh calc(-1 * var(--gutter));
  background: radial-gradient(closest-side, rgba(0, 15, 28, .78), rgba(0, 15, 28, 0));
}
.pin-ui {
  position: absolute; left: 0; right: 0; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 34px);
  display: grid; justify-items: center; gap: 8px; text-align: center;
  width: 100%;
  pointer-events: none !important;           /* the box must not swallow taps on the globe: only its button takes them */
}
.pin-ui > * { pointer-events: none; }
.pin-ui .pin-ui__key { pointer-events: auto; }
.pin-ui__title, .pin-ui__hint { justify-self: center; padding: 4px 9px; background: rgba(0, 15, 28, .84); box-shadow: inset 0 0 0 1px var(--line); }
.pin-ui__title { color: var(--gold); }
.pin-ui__hint { font-size: var(--fs-small); color: var(--paper); }
.pin-ui__key { background: rgba(0, 15, 28, .55); }
/* the pin controls wait for the logo to land, and leave once the footer covers half the screen */
.gl .pin-ui { visibility: hidden; opacity: 0; transition: opacity .5s linear, visibility 0s linear .5s; }
.gl body.logo-landed .pin-ui { visibility: visible; opacity: 1; transition-delay: 0s; }
body.footer-up .pin-ui, body.footer-up .pin-card, body.footer-up .cross { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; transition: opacity .3s linear, visibility 0s linear .3s; }
.pin-ui__mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .pin-ui__mouse { display: inline; } .pin-ui__touch { display: none; } }

.static .pin-ui, .static .cross { display: none; }
body.cursor-cross .ch--final .ch__pin { cursor: crosshair; }
/* phones held upright: the end card is centred, in line with the globe and the pin controls under it */
@media (max-width: 899px) and (orientation: portrait) {
  .final { margin-inline: auto; justify-items: center; text-align: center; }
  .final__copy { justify-items: center; }
  .final__copy h2, .final__copy p { margin-inline: auto; }
  .final__copy .btn-row { justify-content: center; }
}
@media (min-width: 900px) {
  .final { position: static; margin-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)) auto; width: min(42vw, 560px); padding-top: calc(var(--header-h) + 10vh); }
  .final__logo { width: clamp(170px, 14vw, 230px); }
  .gl .ch--final .final__copy::before { inset: -8vh -14vw -8vh -14vw; }
  .pin-ui { position: absolute; left: auto; right: max(var(--gutter), calc((100vw - var(--max)) / 2)); bottom: 32px; width: auto; justify-items: end; text-align: right; }
  .pin-ui__title, .pin-ui__hint { justify-self: end; }
}
/* phones turned sideways: words on the left half, the pin controls bottom right (never over the words) */
@media (max-width: 899px) and (orientation: landscape) {
  .final { position: static; width: min(46vw, 420px); }
  .pin-ui { left: auto; right: max(var(--gutter), env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); width: auto; justify-items: end; text-align: right; }
  .pin-ui__title, .pin-ui__hint { justify-self: end; }
}
@media (max-height: 500px) and (orientation: landscape) {
  /* the card sits over the words (left half), the globe and the pin stay clear on the right */
  body .pin-card { left: max(var(--gutter), env(safe-area-inset-left)); top: calc(var(--header-h) + 6px); width: min(46vw, 400px); transform: none !important; gap: 8px; padding: 12px 14px 14px; }
  .final { gap: 10px; padding-top: calc(var(--header-h) + 8px); }
  .final__logo { width: 92px; }
  .final__copy h2 { font-size: 1.35rem; }
  .final__copy p { font-size: 15px; line-height: 1.45; }
}
@media (max-height: 700px) and (max-width: 899px) {
  .final__logo { width: 104px; }
  .final__copy h2 { font-size: 1.5rem; }
  .final__copy p { font-size: 15.5px; line-height: 1.5; }
}

/* desktop crosshair with live latitude / longitude */
.cross { position: fixed; left: 0; top: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .2s linear; }
.cross.is-on { opacity: 1; }
.cross i { position: absolute; background: var(--gold); }
.cross__h { left: -14px; top: 0; width: 28px; height: 1px; }
.cross__v { left: 0; top: -14px; width: 1px; height: 28px; }
.cross__ll {
  position: absolute; left: 16px; top: 12px; padding: 5px 8px; white-space: nowrap;
  background: rgba(0, 15, 28, .78); border: 1px solid var(--line);
  font: 500 11px/1 var(--font-text); letter-spacing: .12em; color: var(--paper); font-variant-numeric: tabular-nums;
}

/* the pin card */
.pin-card {
  position: fixed; z-index: 6; left: 0; top: 0; width: min(330px, calc(100vw - 2 * var(--gutter)));
  display: grid; gap: 10px; padding: 18px 18px 18px;
}
.pin-card.is-in { animation: card-in .5s var(--ease-out) both; }
@keyframes card-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
.pin-card__ll { display: grid; gap: 2px; font: 500 1.15rem/1.3 var(--font-text); letter-spacing: .08em; color: var(--paper); font-variant-numeric: tabular-nums; }
.pin-card__note { font-size: var(--fs-small); color: var(--mist); line-height: 1.5; }
.pin-card__close { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; -webkit-tap-highlight-color: transparent; }
.pin-card__close i { position: absolute; left: 14px; top: 21px; width: 16px; height: 1.5px; background: var(--mist); transform: rotate(27deg); }
.pin-card__close i + i { transform: rotate(-27deg); }
.pin-card__close:hover i { background: var(--gold); }
/* phones: the card docks at the top, above the globe, so the pin and its pass stay in view; the words under it step back */
.final__logo, .final__copy { transition: opacity .3s linear; }
@media (max-width: 699px), (max-height: 500px) and (orientation: landscape) {
  body.pin-open .final__logo, body.pin-open .final__copy { opacity: .1; pointer-events: none; }
}
@media (max-width: 699px) {
  .pin-card { left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) + env(safe-area-inset-top) + 8px); bottom: auto; width: auto; transform: none !important; gap: 8px; padding: 14px 16px 16px; }
  .pin-card__ll { grid-auto-flow: column; justify-content: start; gap: 14px; font-size: 1.05rem; }
}
body:not([data-chapter="final"]) .pin-card, body:not([data-chapter="final"]) .cross { display: none; }

/* only one logo at the end of the 3D home: the gold one that lands; the footer starts with the line */
.gl .home .site-footer__logo { display: none; }

/* ---------- still figures (only in the still version) ---------- */
.still { display: none; }
.static .still { display: block; margin: var(--space-l) var(--gutter) 0; }
.still img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--navy-900); box-shadow: inset 0 0 0 1px var(--line); }
.static .still figcaption { position: static; margin-top: 10px; }
.static .ch { padding-block: var(--section-y) 0; }
.static .ch--hero { padding-top: calc(var(--header-h) + 32px); }
.static .ch__copy { margin-inline: var(--gutter); width: auto; max-width: 640px; }
.static .ch__body > :not(.ch__copy):not(.passes) { display: none; }
.static .passes { position: static; opacity: 1; transform: none; margin: var(--space-m) var(--gutter) 0; }
.static .passes__head-line { display: none; }
.static .tick { background: var(--gold-a72); }
.static .tick--cloud { background: var(--gold-a20); }
.static .ch--final .ch__pin { height: auto; }
.static .final { padding-top: 0; }
.static .final__logo { width: 160px; }
.static .flow { padding-block: 0; }
@media (min-width: 900px) {
  .static .ch { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
    max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
  .static .ch__body, .static .ch__pin { grid-column: 1; }
  .static .ch__copy, .static .final { margin-inline: 0; width: auto; }
  .static .still { grid-column: 2; grid-row: 1; margin: 0; }
  .static .passes { margin-inline: 0; }
}

/* the still version of the time lens: two real images and a round clip */
.lens-static { position: relative; aspect-ratio: 1; overflow: hidden; touch-action: pan-y pinch-zoom; cursor: crosshair; --lx: 50%; --ly: 50%; }
.lens-static img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; box-shadow: none; }
.lens-static__old { clip-path: circle(22% at var(--lx) var(--ly)); }
.lens-static__ring {
  position: absolute; left: var(--lx); top: var(--ly); width: 44%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; box-shadow: 0 0 0 2px var(--gold), 0 0 22px rgba(239, 187, 117, .45); pointer-events: none;
}
.lens-static:focus-visible { outline: 3px solid var(--paper); outline-offset: 4px; box-shadow: 0 0 0 9px rgba(0, 15, 28, .72); }

/* Windows high contrast: the package keys keep their edges and the chosen one stays visible */
@media (forced-colors: active) {
  .key { border: 1px solid ButtonText; }
  .key[aria-selected="true"] .key__cap { outline: 3px solid Highlight; outline-offset: -3px; }
}

/* ---------- reduced motion in the 3D version never happens (it switches to stills), but keep the caret calm ---------- */
@media (prefers-reduced-motion: reduce) {
  .ask__caret, .scroll-cue i { animation: none; }
}

/* QA only (?still): clean frames of the scene for the still-image version */
.still-mode .site-header, .still-mode .site-menu, .still-mode .site-footer, .still-mode .gauge, .still-mode .skip-link,
.still-mode .ch__copy, .still-mode .flow, .still-mode .final, .still-mode .imgcap, .still-mode .passes, .still-mode .lens-hint,
.still-mode .layers-note, .still-mode .scroll-cue, .still-mode .lens-ui, .still-mode .pin-tag, .still-mode .hudcap, .still-mode .globe-credit { visibility: hidden !important; }

/* Touch devices: no backdrop blur over the moving canvas (costly on mid-range Android); flat navy glass instead */
@media (pointer: coarse) {
  .gl .site-header::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(180deg, rgba(0, 15, 28, .95), rgba(0, 20, 36, .88)); }
  .gl .passes, .gl .lens-hint { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(0, 15, 28, .88); }
  .gl .pin-card.glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(155deg, rgba(14, 46, 70, .96), rgba(0, 28, 50, .96)); }
}
