/* ============================================================================
   THE KEIGHLEY — design system
   near-black · bone white · one warm film-amber accent
   ========================================================================== */

:root {
  --black:      #0a0a0a;
  --black-2:    #121212;
  --bone:       #f4f1ea;
  --bone-dim:   rgba(244, 241, 234, 0.62);
  --bone-faint: rgba(244, 241, 234, 0.34);
  --hair:       rgba(244, 241, 234, 0.14);
  --amber:      #e8a33d;
  --amber-dim:  rgba(232, 163, 61, 0.42);

  --display: "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed",
             "Liberation Sans Narrow", "Nimbus Sans Narrow", Haettenschweiler,
             Impact, "Helvetica Neue", sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --gut: clamp(20px, 4.2vw, 72px);
  --rail: 46px;             /* film-strip rail width */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ── reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

html, body {
  background: var(--black);
  color: var(--bone);
  font-family: var(--sans);
  overscroll-behavior-y: none;
}
body { min-height: 100%; }

::selection { background: var(--amber); color: var(--black); }

/* ── canvas ───────────────────────────────────────────────────────────────── */
#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  touch-action: pan-y;
}
body.is-finale #gl { cursor: grab; }
body.is-finale.is-dragging #gl { cursor: grabbing; }

/* ── screen-space overlay (leader lines + hotspots) ───────────────────────── */
#overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
#leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#leaders .lead-path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}
#leaders .lead-dot { fill: var(--amber); opacity: 0; }

#hotspots { position: absolute; inset: 0; }

/* floating part label */
.plabel {
  position: absolute;
  top: 0; left: 0;
  width: min(268px, 30vw);
  max-width: 268px;
  transform: translate3d(0, 0, 0);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.plabel-rule { width: 100%; height: 1px; background: var(--amber); opacity: 0.55; margin-bottom: 8px; }
.plabel h3 {
  margin: 0 0 4px;
  font: 600 clamp(12px, 1.1vw, 14px)/1.15 var(--sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--bone);
}
.plabel p {
  margin: 0;
  font: 400 clamp(11px, 0.92vw, 12.5px)/1.45 var(--mono);
  letter-spacing: 0.01em;
  color: var(--bone-dim);
  font-variant-numeric: tabular-nums;
}
.plabel--right { text-align: right; }

/* ── boot gate ────────────────────────────────────────────────────────────── */
#boot {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  background: var(--black);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
#boot.is-done { opacity: 0; visibility: hidden; }
.boot-inner { width: min(320px, 70vw); text-align: center; }
.boot-mark {
  font: 700 13px/1 var(--mono);
  letter-spacing: 0.42em;
  color: var(--bone-dim);
  margin-bottom: 18px;
}
.boot-mark span { color: var(--amber); }
.boot-bar { height: 1px; background: var(--hair); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0%; background: var(--amber); transition: width 0.4s var(--ease); }
.boot-msg {
  margin: 14px 0 0;
  font: 400 11px/1.5 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
#boot.is-error .boot-bar i { background: #b4472e; width: 100% !important; }
#boot.is-error .boot-msg { color: var(--bone-dim); text-transform: none; letter-spacing: 0.02em; font-size: 13px; max-width: 46ch; }

/* ── film-strip scroll indicator ──────────────────────────────────────────── */
#filmstrip {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--rail);
  z-index: 3;
  pointer-events: none;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
#filmstrip.is-on { opacity: 1; }
.fs-rail {
  position: relative;
  flex: 1;
  width: 26px;
  margin: 18px 0 10px;
  border-left: 1px solid var(--hair);
  border-right: 1px solid var(--hair);
  background: rgba(244, 241, 234, 0.022);
  overflow: hidden;
}
/* 15/70 perforations: two columns of sprocket holes, scrolling with progress */
.fs-perfs {
  position: absolute;
  left: 0; right: 0; top: -200%;
  height: 500%;
  background-image:
    linear-gradient(to bottom, rgba(244,241,234,0.30) 0 5px, transparent 5px 13px),
    linear-gradient(to bottom, rgba(244,241,234,0.30) 0 5px, transparent 5px 13px);
  background-size: 4px 13px, 4px 13px;
  background-position: 3px 0, calc(100% - 3px) 0;
  background-repeat: repeat-y, repeat-y;
  will-change: transform;
}
.fs-head {
  position: absolute;
  left: -3px; right: -3px;
  height: 2px;
  background: var(--amber);
  box-shadow: 0 0 10px 1px rgba(232, 163, 61, 0.55);
  will-change: transform;
}
.fs-counter {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.1em;
  color: var(--bone-faint);
  text-align: center;
  padding-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.fs-counter em { display: block; font-style: normal; font-size: 8px; margin-top: 3px; opacity: 0.7; }

/* ── skip link ────────────────────────────────────────────────────────────── */
.skip {
  position: fixed; top: 10px; left: 50%;
  transform: translate(-50%, -160%);
  z-index: 99;
  background: var(--amber); color: var(--black);
  font: 600 12px/1 var(--sans); letter-spacing: 0.06em;
  padding: 10px 16px; border-radius: 2px; text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.skip:focus-visible { transform: translate(-50%, 0); }

/* ── scroll structure ─────────────────────────────────────────────────────── */
#scroller { position: relative; z-index: 1; }

.sec { position: relative; height: 130vh; }
.sec--tall   { height: 200vh; }
.sec--xtall  { height: 360vh; }
.sec--finale { height: 260vh; }
.sec--end    { height: 120vh; }

.pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  pointer-events: none;
}

.wrap {
  position: absolute;
  bottom: clamp(48px, 9vh, 110px);
  left: calc(var(--gut) + var(--rail));
  right: var(--gut);
  max-width: 1560px;
  pointer-events: none;
}
.col-left  { right: auto; width: min(48ch, 42vw); }
.col-right { left: auto; right: var(--gut); width: min(48ch, 42vw); text-align: left; }
.wrap--center {
  left: 50%; right: auto;
  transform: translateX(-50%);
  width: min(920px, 84vw);
  text-align: center;
  /* Full height + flex centring rather than top:50% + translate: the stack is
     taller than it looks in a condensed face, and a translated block that
     outgrows the pin gets clipped at both ends instead of shrinking. */
  top: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(48px, 7vh, 96px);
}

/* ── type ─────────────────────────────────────────────────────────────────── */
/* Sizes are set so the longest string in each role fits its column at every
   viewport — Arial Narrow ignores font-stretch, so the nominal ratio is wider
   than a variable condensed face and has to be budgeted for. Headlines wrap
   rather than overflow. */
.display {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 75%;
  line-height: 0.86;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--bone);
  text-transform: uppercase;
  font-size: clamp(40px, 7.6vw, 132px);
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: balance;
}
.display--xl { font-size: clamp(46px, 13.4vw, 208px); letter-spacing: -0.022em; }
.display--lg { font-size: clamp(46px, 12vw, 186px); }
.display--sm { font-size: clamp(26px, 4.2vw, 64px); }

.eyebrow, .kicker {
  font: 500 clamp(10px, 0.85vw, 12px)/1 var(--mono);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 clamp(14px, 2vh, 26px);
}
.kicker { color: var(--bone-faint); letter-spacing: 0.26em; }

.lede {
  margin: clamp(18px, 2.6vh, 34px) 0 0;
  font: 300 clamp(15px, 1.55vw, 25px)/1.42 var(--sans);
  letter-spacing: -0.005em;
  color: var(--bone-dim);
  max-width: 30ch;
}
.body {
  margin: clamp(14px, 2vh, 24px) 0 0;
  font: 300 clamp(14px, 1.12vw, 18.5px)/1.62 var(--sans);
  color: var(--bone-dim);
}
.body--sm { font-size: clamp(13px, 0.95vw, 15.5px); }
.body--lead {
  font-size: clamp(16px, 1.6vw, 25px);
  line-height: 1.45;
  color: var(--bone);
  font-weight: 300;
  max-width: 26ch;
  margin-inline: auto;
}

/* spec grid (section 2) */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(22px, 3.4vh, 40px) 0 0;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.spec-grid > div { background: var(--black); padding: 13px 15px; }
.spec-grid dt {
  font: 500 9.5px/1 var(--mono);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bone-faint); margin-bottom: 7px;
}
.spec-grid dd {
  margin: 0;
  font: 400 clamp(12px, 1vw, 14.5px)/1.3 var(--mono);
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}

/* ── exploded-view part list ──────────────────────────────────────────────── */
.exploded-head { bottom: auto; top: clamp(72px, 12vh, 132px); }
.part-list {
  position: absolute;
  right: var(--gut);
  bottom: clamp(48px, 9vh, 110px);
  width: min(300px, 34vw);
  margin: 0; padding: 0;
  list-style: none;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.part-list.is-on { opacity: 1; }
.part-list li {
  border-top: 1px solid var(--hair);
  padding: 9px 0 9px 0;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: baseline;
  cursor: pointer;
  transition: opacity 0.28s var(--ease);
}
.part-list li:last-child { border-bottom: 1px solid var(--hair); }
.part-list li i {
  font-style: normal;
  font: 500 9.5px/1.6 var(--mono);
  color: var(--bone-faint);
  letter-spacing: 0.06em;
}
.part-list li b {
  font: 500 clamp(11px, 0.92vw, 13px)/1.5 var(--sans);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bone-dim);
  transition: color 0.2s var(--ease);
}
.part-list li.is-hot b { color: var(--amber); }
.part-list.has-hot li:not(.is-hot) { opacity: 0.38; }

/* ── blimp weight readout ─────────────────────────────────────────────────── */
.weigh { margin-top: clamp(24px, 3.6vh, 44px); }
.weigh-bar { height: 3px; background: var(--hair); position: relative; overflow: hidden; }
.weigh-bar i {
  position: absolute; inset: 0 auto 0 0;
  width: 0%;
  background: var(--amber);
}
.weigh-scale {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.16em;
  color: var(--bone-faint);
  font-variant-numeric: tabular-nums;
}
.weigh-scale span:last-child { color: var(--amber); }

/* ── making of ───────────────────────────────────────────────────────────── */
.making-wrap { width: min(1000px, 88vw); }
.pull {
  margin: clamp(20px, 3.4vh, 44px) auto 0;
  max-width: min(720px, 78vw);
  border: 0; padding: 0;
}
.pull p {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 80%;
  font-size: clamp(21px, 2.9vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.006em;
  color: var(--bone);
  text-transform: uppercase;
}
.pull cite {
  display: block;
  margin-top: 16px;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--amber);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(22px, 3.6vh, 48px) auto 0;
  background: var(--hair);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  max-width: 900px;
}
.stat { background: var(--black); padding: clamp(16px, 2.6vh, 26px) 12px; }
.stat b {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 78%;
  font-size: clamp(26px, 3.7vw, 60px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block;
  margin-top: 9px;
  font: 400 10.5px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* ── scroll cue ──────────────────────────────────────────────────────────── */
.scroll-cue {
  position: absolute;
  right: var(--gut); bottom: clamp(48px, 9vh, 110px);
  display: flex; align-items: center; gap: 12px;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--bone-faint);
}
.scroll-cue i {
  display: block; width: 1px; height: 42px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  animation: cue 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue { 0%, 100% { transform: scaleY(0.35); opacity: 0.4; } 45% { transform: scaleY(1); opacity: 1; } }

/* ── finale HUD ──────────────────────────────────────────────────────────── */
.finale-head {
  position: absolute;
  top: clamp(24px, 4.4vh, 54px);
  left: calc(var(--gut) + var(--rail));
  right: var(--gut);
}
.finale-head .kicker { margin-bottom: 8px; }

.hud {
  position: absolute;
  inset: auto var(--gut) clamp(22px, 4vh, 48px) calc(var(--gut) + var(--rail));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.hud.is-on { opacity: 1; pointer-events: auto; }

/* The finale plays over a moonlit sea, which is far brighter than the studio
   black the rest of the page sits on. Without a scrim the readouts disappear
   into the water. */
.hud::before {
  content: "";
  position: absolute;
  inset: -46px calc(-1 * var(--gut)) calc(-1 * clamp(22px, 4vh, 48px)) calc(-1 * (var(--gut) + var(--rail)));
  background: linear-gradient(to top,
    rgba(6, 6, 6, 0.95) 0%,
    rgba(6, 6, 6, 0.82) 42%,
    rgba(6, 6, 6, 0.42) 74%,
    rgba(6, 6, 6, 0) 100%);
  pointer-events: none;
  z-index: -1;
}
.finale-head::before {
  content: "";
  position: absolute;
  inset: calc(-1 * clamp(24px, 4.4vh, 54px)) calc(-1 * var(--gut)) -34px calc(-1 * (var(--gut) + var(--rail)));
  background: linear-gradient(to bottom, rgba(6, 6, 6, 0.86), rgba(6, 6, 6, 0));
  pointer-events: none;
  z-index: -1;
}

/* and lift the label contrast, which was tuned against near-black */
body.is-finale .ctl label,
body.is-finale .ctl-label,
body.is-finale .ctl-ends,
body.is-finale .ctl-hint { color: rgba(244, 241, 234, 0.72); }
body.is-finale .hud-tally { color: rgba(244, 241, 234, 0.78); }
body.is-finale .seg { border-color: rgba(244, 241, 234, 0.34); background: rgba(6, 6, 6, 0.5); }
body.is-finale .seg-btn { color: rgba(244, 241, 234, 0.72); }
body.is-finale .seg-btn.is-on { color: var(--black); }
body.is-finale .roll-btn { border-color: rgba(244, 241, 234, 0.34); background: rgba(6, 6, 6, 0.5); color: var(--bone); }
body.is-finale input[type="range"]::-webkit-slider-runnable-track { background: rgba(244, 241, 234, 0.3); }
body.is-finale input[type="range"]::-moz-range-track { background: rgba(244, 241, 234, 0.3); }

.hud-tally {
  display: flex; align-items: center; gap: 9px;
  font: 600 11px/1 var(--mono); letter-spacing: 0.3em;
  color: var(--bone-faint);
  padding-bottom: 4px;
}
.hud-tally i {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(180, 71, 46, 0.28);
  box-shadow: none;
  transition: background 0.15s linear, box-shadow 0.15s linear;
}
.hud-tally.is-rec i { background: #ff3b21; box-shadow: 0 0 12px 2px rgba(255, 59, 33, 0.7); }
.hud-tally.is-rec { color: var(--bone); }

.hud-controls {
  display: flex;
  align-items: flex-end;
  gap: clamp(16px, 2.6vw, 40px);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ctl { display: flex; flex-direction: column; gap: 9px; }
.ctl label, .ctl-label {
  font: 500 9.5px/1 var(--mono);
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--bone-faint);
}
.ctl--focus { width: clamp(160px, 22vw, 280px); }
.ctl-ends {
  display: flex; justify-content: space-between;
  font: 400 9px/1 var(--mono); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--bone-faint); opacity: 0.7;
}
.ctl-hint {
  margin: 0;
  font: 400 9.5px/1 var(--mono); letter-spacing: 0.1em;
  color: var(--bone-faint);
}

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 18px; background: transparent; cursor: ew-resize; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 1px; background: var(--hair);
}
input[type="range"]::-moz-range-track { height: 1px; background: var(--hair); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 3px; height: 17px; margin-top: -8px;
  background: var(--amber); border: 0; border-radius: 0;
  box-shadow: 0 0 8px rgba(232, 163, 61, 0.5);
}
input[type="range"]::-moz-range-thumb {
  width: 3px; height: 17px;
  background: var(--amber); border: 0; border-radius: 0;
}
input[type="range"]:focus-visible { outline: 1px solid var(--amber); outline-offset: 6px; }

.seg { display: flex; border: 1px solid var(--hair); }
.seg-btn {
  appearance: none; background: transparent; border: 0;
  border-right: 1px solid var(--hair);
  color: var(--bone-faint);
  font: 500 10.5px/1.1 var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 9px 13px; cursor: pointer; text-align: left;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.seg-btn:last-child { border-right: 0; }
.seg-btn em { display: block; font-style: normal; font-size: 8.5px; opacity: 0.6; margin-top: 4px; letter-spacing: 0.06em; }
.seg-btn:hover { color: var(--bone-dim); }
.seg-btn.is-on { color: var(--black); background: var(--amber); }
.seg-btn.is-on em { opacity: 0.75; }

.roll-btn {
  appearance: none;
  display: flex; align-items: center; gap: 9px;
  background: transparent;
  border: 1px solid var(--hair);
  color: var(--bone-dim);
  font: 500 11px/1 var(--mono); letter-spacing: 0.24em; text-transform: uppercase;
  padding: 11px 18px; cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.roll-btn i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.roll-btn:hover { border-color: var(--amber-dim); color: var(--bone); }
.roll-btn.is-on { border-color: #ff3b21; color: #ff6a55; }

/* viewfinder graticule (SVG injected) */
/* Positioned and sized inline from the tap rect — no `inset`, which would
   over-constrain the box and fight the computed width/height. */
#vf-gfx { position: absolute; pointer-events: none; opacity: 0; }
#vf-gfx.is-on { opacity: 1; }

/* ── end card ────────────────────────────────────────────────────────────── */
.memorial {
  margin: clamp(24px, 4vh, 46px) auto 0;
  max-width: 44ch;
  font: 300 clamp(13px, 1.05vw, 17px)/1.65 var(--sans);
  color: var(--bone-dim);
}
.colophon {
  position: absolute;
  left: calc(var(--gut) + var(--rail)); right: var(--gut);
  bottom: clamp(18px, 3vh, 34px);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font: 400 9.5px/1.5 var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(244, 241, 234, 0.22);
}

/* ── entrance animation for copy ─────────────────────────────────────────── */
[data-anim] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 1.05s var(--ease);
}
[data-anim].is-in { opacity: 1; transform: none; }
[data-anim]:nth-child(2) { transition-delay: 0.07s; }
[data-anim]:nth-child(3) { transition-delay: 0.14s; }
[data-anim]:nth-child(4) { transition-delay: 0.21s; }
[data-anim]:nth-child(5) { transition-delay: 0.28s; }

/* ── noscript ────────────────────────────────────────────────────────────── */
.fallback { position: fixed; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; }
.fallback h1 { font-family: var(--display); font-size: 14vw; margin: 0 0 12px; text-transform: uppercase; }
.fallback p { color: var(--bone-dim); font-size: 15px; }

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --rail: 30px; }
  .col-left, .col-right { width: auto; right: var(--gut); left: calc(var(--gut) + var(--rail)); }
  .col-right { text-align: left; }
  .wrap { bottom: clamp(34px, 6vh, 64px); }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .part-list {
    right: var(--gut); left: calc(var(--gut) + var(--rail));
    width: auto; bottom: clamp(20px, 4vh, 40px);
  }
  .part-list li { padding: 7px 0; }
  .exploded-head { top: clamp(56px, 9vh, 96px); }
  .exploded-head .body { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 13px 12px; }
  .hud {
    flex-direction: column; align-items: stretch;
    inset: auto var(--gut) clamp(16px, 3vh, 30px) calc(var(--gut) + var(--rail));
    gap: 14px;
  }
  .hud-controls { justify-content: space-between; align-items: flex-end; gap: 14px; }
  .ctl--focus { width: 100%; order: -1; }
  .ctl-hint { display: none; }
  .scroll-cue { right: auto; left: calc(var(--gut) + var(--rail)); bottom: 16px; }
  .sec--xtall { height: 320vh; }
}

@media (max-width: 560px) {
  .display { font-size: clamp(44px, 15vw, 92px); }
  .display--xl { font-size: clamp(50px, 19vw, 110px); }
  .display--sm { font-size: clamp(22px, 7vw, 40px); }
  .colophon span:last-child { display: none; }
  .roll-btn { padding: 10px 14px; letter-spacing: 0.16em; }
  .seg-btn { padding: 8px 10px; font-size: 9.5px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .wrap { bottom: 20px; }
  .lede, .body { display: none; }
  .hud { inset: auto var(--gut) 14px calc(var(--gut) + var(--rail)); }
}

/* ── reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-anim] { opacity: 1; transform: none; }
  .scroll-cue i { animation: none; opacity: 0.6; }
}
