/* =========================================================================
   EmpoweredHouse — Cinematic v4
   "Shape. See. Run." A scroll-driven film. One accent: lime on a black void.
   Foundations lifted from the EmpoweredHouse design system; palette pinned
   to the cinematic brief (pure void, so bloom reads clean).
   ========================================================================= */

@font-face {
  font-family: "Albert Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/albert-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Albert Sans";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/albert-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-500.woff2") format("woff2");
}

:root {
  /* Brief palette — authoritative for this piece */
  --void:      #000000;
  --lime:      #D0FF6D;
  --white:     #FFFFFF;
  --panel:     #232323;
  --panel-2:   #3B3B3B;
  --muted:     #898989;
  --muted-2:   #AFAFAF;
  --on-lime:   #0B0B0C;

  /* Alert — used only in the Shugyo bottleneck beat */
  --amber:     #FFB55A;
  --alert:     #FF6A4D;

  /* Signal fills */
  --lime-soft:   rgba(208, 255, 109, 0.14);
  --lime-border: rgba(208, 255, 109, 0.22);
  --lime-glow:   rgba(208, 255, 109, 0.45);
  --hair:        rgba(255, 255, 255, 0.10);
  --hair-faint:  rgba(255, 255, 255, 0.055);

  /* Type stacks */
  --sans: "Albert Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Type scale — size carries the drama, weight stays 400/500 */
  --display: clamp(44px, 8.2vw, 132px);
  --h2:      clamp(32px, 5vw, 76px);
  --lede:    clamp(18px, 1.9vw, 24px);
  --body:    clamp(15px, 1.05vw, 17px);

  /* Motion — brief spec */
  --ease-cine: cubic-bezier(0.65, 0.05, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.30, 1);

  --gutter: clamp(20px, 4vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--void);
  color: var(--white);
  line-height: 1.5;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

::selection { background: var(--lime); color: var(--on-lime); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* =========================================================================
   The persistent WebGL film — fixed behind everything
   ========================================================================= */
#film {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
}

/* Ambient perspective grid — a second depth layer behind the 3D */
.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--hair-faint) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hair-faint) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, transparent 25%, black 90%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, transparent 25%, black 90%);
  opacity: 0.5;
  transform: perspective(600px) rotateX(0.001deg);
}

/* Vignette so copy always reads over the void */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 80% at 50% 50%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* Fine grain — fixed, pointer-events none (perf-safe) */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================================
   Content scaffold — sections sit above the film and provide scroll length
   ========================================================================= */
.scroll-root { position: relative; z-index: 2; }

.act {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: clamp(80px, 12vh, 160px) var(--gutter);
}
.act--tall { min-height: 180vh; }
.act--epic { min-height: 300vh; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; }

/* A frosted scrim behind copy so text never fights the particle field */
.copy-scrim {
  position: relative;
}
.copy-scrim::before {
  content: "";
  position: absolute;
  inset: -8% -6%;
  z-index: -1;
  background: radial-gradient(ellipse 70% 70% at 30% 50%, rgba(0,0,0,0.72), transparent 72%);
  pointer-events: none;
}

/* =========================================================================
   Typography primitives
   ========================================================================= */
.eyebrow {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--lime);
  opacity: 0.7;
}

.display {
  font-weight: 500;
  font-size: var(--display);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--white);
}
.h2 {
  font-weight: 500;
  font-size: var(--h2);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--white);
}
.lede {
  font-weight: 400;
  font-size: var(--lede);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--muted-2);
  max-width: 62ch;
}
.body {
  font-size: var(--body);
  line-height: 1.6;
  color: var(--muted-2);
  max-width: 58ch;
}
.lime { color: var(--lime); }
.pullquote {
  font-weight: 500;
  font-size: clamp(28px, 4.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 20ch;
}
.pullquote .muted { color: var(--muted-2); }

/* Frosted panel behind oversized pull-quotes so they read over the 3D */
.quote-glass {
  display: inline-block;
  padding: clamp(26px, 3.4vw, 52px);
  border-radius: 22px;
  max-width: min(92vw, 1000px);
}

/* Technical caption — a clean annotation, not a boxed callout. Lime mono
   kicker over muted body; no border, no fill. The surrounding panel (or the
   scene) provides the backing. */
.caption-card {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 1.7;
  color: var(--muted-2);
  max-width: 44ch;
  padding: 0;
  border: none;
  background: none;
  backdrop-filter: none;
  box-shadow: none;
}
.caption-card .k {
  color: var(--lime);
  letter-spacing: 0.16em;
  display: inline-block;
  margin-bottom: 4px;
}

/* =========================================================================
   Glass surface language
   ========================================================================= */
.glass {
  background: rgba(20, 20, 22, 0.42);
  border: 1px solid var(--hair);
  border-radius: 14px;
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055), 0 24px 60px rgba(0,0,0,0.5);
}
.glass--lime { border-color: var(--lime-border); }

/* =========================================================================
   CTAs — lime pill (black text) + ghost
   ========================================================================= */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 14px 18px 14px 22px;
  border-radius: 999px;
  transition: transform var(--dur, 0.2s) var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s;
  will-change: transform;
}
.btn:active { transform: scale(0.975); }
.btn--primary {
  background: var(--lime);
  color: var(--on-lime);
  box-shadow: 0 0 0 rgba(208,255,109,0);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 40px rgba(208,255,109,0.28);
}
.btn--ghost {
  color: var(--white);
  border: 1px solid var(--hair);
  padding-right: 22px;
}
.btn--ghost:hover { border-color: var(--lime-border); background: var(--lime-soft); }
.btn__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 999px;
  background: rgba(0,0,0,0.14);
  transition: transform 0.25s var(--ease-out);
}
.btn--ghost .btn__ico { background: rgba(255,255,255,0.08); }
.btn:hover .btn__ico { transform: translate(2px, -1px); }
.btn__ico svg { width: 13px; height: 13px; }

/* =========================================================================
   OS-shell HUD — persistent floating UI
   ========================================================================= */
/* Top-left status chip */
.hud-status {
  position: fixed;
  top: 22px; left: 22px;
  z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
}
.hud-status__mark { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.hud-status__mark svg { width: 22px; height: 22px; display: block; }
.hud-status__sep { width: 1px; height: 16px; background: var(--hair); }
.hud-status__state {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  display: inline-flex; align-items: center; gap: 9px;
  min-width: 68px;
}
.hud-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 0 0 var(--lime-glow);
  animation: pulse 2.4s var(--ease-cine) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(208,255,109,0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(208,255,109,0); }
  100% { box-shadow: 0 0 0 0 rgba(208,255,109,0); }
}

/* Right-edge sticky chapter navigator (scroll-spy + accordion) */
.navr {
  position: fixed;
  top: 50%; right: 20px;
  transform: translateY(-50%);
  z-index: 40;
  width: 208px;
  padding: 10px;
  border-radius: 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.navr-chapter { position: relative; }
.navr-head {
  display: flex; align-items: center; gap: 11px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--muted);
  transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.navr-head:hover { color: var(--white); background: rgba(255,255,255,0.03); }
.navr-idx {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  color: var(--muted); flex: none; width: 16px;
}
.navr-title {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  white-space: nowrap; flex: 1; text-align: left;
}
.navr-bar {
  width: 16px; height: 2px; border-radius: 2px; flex: none;
  background: var(--muted); opacity: 0.5;
  transition: all 0.35s var(--ease-out);
}
.navr-chapter.active .navr-title { color: var(--white); }
.navr-chapter.active .navr-idx { color: var(--lime); }
.navr-chapter.active .navr-bar { background: var(--lime); opacity: 1; box-shadow: 0 0 10px var(--lime-glow); }

/* accordion: max-height + opacity (reliable across engines) */
.navr-scenes {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.42s var(--ease-cine), opacity 0.3s var(--ease-out);
}
.navr-chapter.active .navr-scenes { max-height: 260px; opacity: 1; }
.navr-scenes__inner { padding-top: 2px; }
.navr-scene {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 6px 10px 6px 37px;
  color: var(--muted);
  font-family: var(--sans); font-size: 12px; letter-spacing: -0.005em;
  transition: color 0.25s var(--ease-out);
}
.navr-scene:hover { color: var(--white); }
.navr-tick {
  width: 5px; height: 5px; border-radius: 999px; flex: none;
  border: 1px solid var(--muted);
  transition: all 0.3s var(--ease-out);
}
.navr-scene.active { color: var(--white); }
.navr-scene.active .navr-tick {
  background: var(--lime); border-color: var(--lime);
  box-shadow: 0 0 9px var(--lime-glow);
  transform: scale(1.3);
}

/* Bottom progress thread */
.hud-progress {
  position: fixed;
  left: 0; bottom: 0;
  height: 2px; width: 100%;
  z-index: 40;
  background: var(--hair-faint);
}
.hud-progress__fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, rgba(208,255,109,0.4), var(--lime));
  box-shadow: 0 0 12px var(--lime-glow);
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero { text-align: left; }
.hero .display { max-width: 15ch; margin: 22px 0 26px; }
.hero .lede { margin-bottom: 36px; }

.triptych {
  display: flex; gap: clamp(20px, 5vw, 64px);
  margin: 40px 0 40px;
  font-family: var(--mono);
  font-size: clamp(13px, 1.3vw, 16px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.triptych span { color: var(--muted); transition: color 0.5s var(--ease-out); position: relative; }
.triptych span.on { color: var(--lime); }
.triptych span::after {
  content: ""; position: absolute; left: 0; bottom: -10px; height: 1px; width: 0;
  background: var(--lime); transition: width 0.6s var(--ease-cine);
}
.triptych span.on::after { width: 100%; }

/* Word-stagger reveal helper */
.stagger .w { display: inline-block; overflow: hidden; vertical-align: top; }
.stagger .w > span { display: inline-block; }

/* =========================================================================
   Pull-quote acts (the correction)
   ========================================================================= */
.quote-block { max-width: 26ch; }
.quote-block + .quote-block { margin-top: 60vh; }

/* Layout helpers */
.stack-lg > * + * { margin-top: 28px; }
.stack-md > * + * { margin-top: 18px; }
.right { margin-left: auto; }
.center { text-align: center; margin: 0 auto; }
.narrow { max-width: 760px; }
.pin-anchor { position: relative; }

/* Beat = a full-viewport copy moment inside a tall act */
.beat {
  position: absolute;
  top: 0; left: 0;
  width: 100%; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
  padding: 0 var(--gutter);
}
/* Multi-beat acts (the correction): stack beats down the scroll so each
   pull-quote gets its own viewport instead of overlapping at top:0. */
.beat[data-beat="1"] { top: 100vh; top: 100dvh; }
.beat[data-beat="2"] { top: 200vh; top: 200dvh; }

/* =========================================================================
   Loop nodes (Act I-C) — text glosses that light with scroll
   ========================================================================= */
.loop-panel { padding: clamp(24px, 3vw, 38px); border-radius: 18px; }
.loop-panel .loop-list { margin-top: 12px; }
.loop-list { display: flex; flex-direction: column; gap: 4px; }
.loop-list .loop-item:first-child { border-top: none; }

/* Frosted copy panel for scene captions that sit over the busy 3D. */
.info-panel { padding: clamp(24px, 3vw, 38px); border-radius: 18px; }

/* Copy panels over the 3D: no drawn border. The fill + backdrop-blur are
   feathered on every edge so the panel dissolves into the void instead of
   sitting on it as a hard card. Solid in the centre (where text lives),
   diluted at the edges. Compound selectors beat plain .glass. */
.glass.loop-panel, .glass.quote-glass, .glass.info-panel {
  /* A faint diagonal sheen over the dark fill gives a consistent frosted-pane
     look even over the black void (where backdrop-blur has nothing to frost),
     so panels don't read as flat boxes off the artefact. Soft wash, not a line. */
  background:
    linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.018) 42%, rgba(255,255,255,0) 72%),
    rgba(14, 14, 16, 0.56);
  border-color: transparent;
  box-shadow: none;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 34px, #000 calc(100% - 34px), transparent),
    linear-gradient(to bottom, transparent, #000 26px, #000 calc(100% - 26px), transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 34px, #000 calc(100% - 34px), transparent),
    linear-gradient(to bottom, transparent, #000 26px, #000 calc(100% - 26px), transparent);
  mask-composite: intersect;
}
.loop-item {
  padding: 18px 0;
  border-top: 1px solid var(--hair-faint);
  opacity: 0.62;
  transition: opacity 0.5s var(--ease-out);
}
.loop-item.on { opacity: 1; }
.loop-item__k {
  display: flex; align-items: baseline; gap: 14px;
}
.loop-item__n {
  font-family: var(--mono); font-size: 12px; color: var(--lime);
  letter-spacing: 0.1em;
}
.loop-item__t { font-size: clamp(18px, 2vw, 26px); font-weight: 500; letter-spacing: -0.02em; }
.loop-item__d { color: var(--muted-2); font-size: 15px; margin-top: 6px; padding-left: 32px; max-width: 54ch; }

/* =========================================================================
   Guarantee badges (Act I-D)
   ========================================================================= */
/* "The foundation" — six governed modules, not empty feature cards.
   Each carries a concrete spec + a mono index (the panel metaphor) and a
   cursor-tracked spotlight on hover. */
.mods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 48px;
}
.mod {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 26px 26px 28px;
  border-radius: 14px;
  background: rgba(18, 18, 20, 0.5);
  border: 1px solid var(--hair);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 0.5s var(--ease-out), border-color 0.4s var(--ease-out), background 0.4s var(--ease-out);
}
/* top hairline, brightens on hover */
.mod::before {
  content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime-border), transparent);
  opacity: 0.45; transition: opacity 0.4s var(--ease-out);
}
/* cursor-tracked spotlight */
.mod::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, -10%), rgba(208,255,109,0.11), transparent 62%);
  opacity: 0; transition: opacity 0.45s var(--ease-out);
}
.mod:hover {
  transform: translateY(-4px);
  border-color: var(--lime-border);
  background: rgba(21, 23, 17, 0.55);
}
.mod:hover::before { opacity: 1; }
.mod:hover::after { opacity: 1; }

.mod__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.mod__ico {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--lime-soft);
  border: 1px solid var(--lime-border);
  transition: box-shadow 0.45s var(--ease-out);
}
.mod:hover .mod__ico { box-shadow: 0 0 22px rgba(208,255,109,0.28); }
.mod__ico svg { width: 18px; height: 18px; stroke: var(--lime); fill: none; stroke-width: 1.6; }
.mod__idx {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--muted); transition: color 0.4s var(--ease-out);
}
.mod:hover .mod__idx { color: var(--lime); }
.mod__t { font-weight: 500; font-size: 18px; letter-spacing: -0.015em; margin-bottom: 9px; }
.mod__d { font-size: 13.5px; line-height: 1.58; color: var(--muted-2); max-width: 30ch; }

/* Source chips (Shugyo twin) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-2);
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--hair);
  background: rgba(255,255,255,0.02);
}
.chip.pipe { border-color: var(--lime-border); color: var(--lime); }

/* =========================================================================
   KPI cards (Act II-C)
   ========================================================================= */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.kpi { padding: 26px; border-radius: 14px; }
.kpi__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.kpi__num {
  font-weight: 500; font-size: clamp(38px, 5vw, 64px); letter-spacing: -0.04em;
  color: var(--white); margin: 12px 0 4px; line-height: 1;
}
.kpi__num .unit { font-size: 0.42em; color: var(--muted-2); letter-spacing: 0; margin-left: 4px; }
.kpi__sub { font-size: 14px; color: var(--muted-2); }
.kpi--alert .kpi__num { color: var(--amber); }
.kpi--alert { border-color: rgba(255, 122, 77, 0.28); }

/* Flow chips for the bottleneck beat */
.flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.flow__stage {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  padding: 9px 15px; border-radius: 8px;
  border: 1px solid var(--hair); color: var(--muted-2);
}
.flow__stage.hot {
  color: var(--alert); border-color: var(--alert);
  box-shadow: 0 0 24px rgba(255,106,77,0.3);
  background: rgba(255,106,77,0.06);
}
.flow__arr { color: var(--muted); }

/* Rhythm stations */
.stations { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.station {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--hair); color: var(--muted);
  transition: all 0.4s var(--ease-out);
}
.station.on { color: var(--lime); border-color: var(--lime-border); background: var(--lime-soft); box-shadow: 0 0 20px rgba(208,255,109,0.12); }

/* Closing disqualification */
/* Disqualification: an honest editorial aside inside the closing panel.
   No box, no stroke. The canonical claim leads in lime; the rest is muted. */
.disq { margin-top: 32px; max-width: 60ch; }
.disq__lead {
  font-weight: 500; font-size: clamp(19px, 2.1vw, 27px); letter-spacing: -0.02em;
  line-height: 1.1; color: var(--lime); margin-bottom: 11px;
}
.disq__body { color: var(--muted-2); font-size: clamp(15px, 1.5vw, 17px); line-height: 1.6; }

.finale { text-align: center; }
.finale .display { margin: 0 auto 40px; max-width: 18ch; }

/* Reveal states (JS-driven; static-safe default is visible for reduced motion) */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .mods { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: 1fr; }
  .navr { display: none; }
  .triptych { gap: 26px; }
}
@media (max-width: 560px) {
  .mods { grid-template-columns: 1fr; }
  .hud-status__state span.txt { display: none; }
  .quote-block + .quote-block { margin-top: 48vh; }
}

/* Copy visibility safety net — scroll-reveal (.reveal opacity:0 above, plus
   the inline filter:blur GSAP sets at boot) is a desktop nicety. On phones
   and other touch/coarse-pointer devices it must never gate readability: a
   mis-measured ScrollTrigger would leave copy permanently invisible. Force
   it visible unconditionally on small/touch viewports. */
@media (max-width: 640px), (hover: none) and (pointer: coarse) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

@media (max-width: 640px) {
  /* Beat offsets above use dvh (.beat[data-beat] top: 100dvh/200dvh); the
     container heights below were still static vh, so on mobile — where vh
     and dvh diverge as the URL bar shows/hides — beats could overlap or
     land off-screen. Match the unit. Falls back to the base vh rule above
     on browsers without dvh support. */
  .act--tall { min-height: 180dvh; }
  .act--epic { min-height: 300dvh; }

  /* The frosted-panel edge-mask (34px feather) exceeds the mobile panel
     padding (24px), eating into the first/last characters of each line.
     Drop the mask on narrow screens; the dark gradient fill still gives a
     readable backing. */
  .glass.loop-panel, .glass.quote-glass, .glass.info-panel {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* =========================================================================
   Reduced motion — the film still reads top to bottom as clean fades
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hud-dot { animation: none; }
  .grain { display: none; }
  * { scroll-behavior: auto !important; }
}

/* =========================================================================
   Links back into the site (2026-09-21): the tour is a page of the site, not
   a dead end. Top-right chip mirrors the HUD status chip on the left.
   ========================================================================= */
.hud-site {
  position: fixed;
  top: 22px; right: 22px;
  z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.hud-site:hover, .hud-site:focus-visible { border-color: var(--lime-border); background: var(--lime-soft); }
.hud-site__arrow { color: var(--lime); }
@media (max-width: 560px) {
  .hud-site { padding: 9px 12px; }
  .hud-site__label { display: none; }
}

.explore-continue {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 10px 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.explore-continue__label { color: var(--muted); }
.explore-continue a {
  color: var(--muted-2);
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.explore-continue a:hover, .explore-continue a:focus-visible { color: var(--white); border-color: var(--lime-border); }
