/* PRESSURE FEVER // PRESSURE NOIR
 * Palette law (style bible §4): saturated red belongs only to infection, blood and threat;
 * amber means "ours" and interactive; everything else stays under 25% saturation.
 * Every hex below is a palette value (tests/test_copy_rules.py enforces it).
 * Contrast on ink: bone 15.7, amber 10.5, bone-dim 7.9 = any text. Red 3.7 = large text and
 * marks only. Amber-dim and grey-mid = decoration only.
 */

@font-face { font-family: "Saira Stencil One"; src: url("../fonts/SairaStencilOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Share Tech Mono"; src: url("../fonts/ShareTechMono-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --ink: #0E0F11;
  --ink-env: #121314;
  --mask-ink: #141517;
  --bone: #EDE8DC;
  --bone-dim: #A9A69E;
  --amber: #FFB000;
  --amber-dim: #7A5400;
  --red: #D7141E;
  --crack-web: #C8102E;
  --evac-line: #A8121E;
  --oxidized: #4A0A0E;
  --grey-mid: #4A4C4E;
  --grey-dark: #24262A;
  --cloth-dark: #2E2F31;
  --haze: #A9A59D;
  --fog: #9C9890;
  --road: #8F8B82;
  --road-shadow: #6A675F;
  --paint-bone: #DCD6C6;
  --suit: #E9E6DE;
  --skin-ash: #9AA0A3;

  --font-display: "Saira Stencil One", Impact, "Arial Narrow", sans-serif;
  --font-body: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-mono: "Share Tech Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --line-x: 14px;
  --inset: 42px;
  --gutter: 16px;
  --max: 1240px;
  --section-pad: clamp(44px, 6.5vw, 92px);
  color-scheme: dark;
}

@media (min-width: 900px) {
  :root { --line-x: 34px; --inset: 96px; --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.45;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--amber); text-underline-offset: 0.18em; }
a:hover { color: var(--bone); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--amber); color: var(--ink); padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  color: var(--bone-dim);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 7vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 0.45em;
}

.lead { font-size: clamp(1.2rem, 2.4vw, 1.45rem); max-width: 60ch; }
.note { color: var(--bone-dim); font-size: 1rem; margin-top: 1.5em; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.4em;
  font-family: var(--font-body); font-weight: 700; font-size: 1.2rem;
  text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none;
  border: 2px solid transparent; border-radius: 2px; cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.button:active { transform: translateY(1px); }
.button--amber { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.button--amber:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.button--ghost { background: transparent; color: var(--bone); border-color: var(--bone-dim); }
.button--ghost:hover { color: var(--amber); border-color: var(--amber); }
.button--danger { background: var(--oxidized); color: var(--bone); border-color: var(--red); }
.button--danger:hover { background: var(--red); color: var(--bone); }
.button--small { min-height: 44px; padding: 0.4em 1em; font-size: 1.05rem; }
.button--wide { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter);
  background: rgb(14 15 17 / 0.92);
  border-bottom: 1px solid var(--grey-dark);
  backdrop-filter: blur(6px);
}
.site-header__brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--bone); text-decoration: none;
  font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.02em;
}
.site-header__nav { display: none; gap: 28px; margin-left: auto; }
.site-header__nav a {
  color: var(--bone-dim); text-decoration: none; font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.95rem;
  display: inline-flex; align-items: center; min-height: 44px;
}
.site-header__nav a:hover { color: var(--amber); }
@media (min-width: 720px) { .site-header__nav { display: flex; } }

/* ---------- Hero scene ---------- */
.hero-scene { position: relative; height: clamp(230px, 40vw, 460px); overflow: hidden; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene__figure--d2 { fill: var(--road-shadow); }
.scene__figure--d1 { fill: var(--grey-dark); }
.scene__figure--d0 { fill: var(--ink-env); }
.scene__barrier { fill: var(--road-shadow); }
.scene__dash { fill: var(--paint-bone); opacity: 0.55; }
.scene__evac { fill: var(--evac-line); }

/* ---------- Gantry signs (amber dot-matrix) ---------- */
.gantry { position: relative; display: inline-flex; flex-direction: column; align-items: stretch; margin: 0 0 22px; }
.gantry__panel {
  position: relative; z-index: 1;
  display: grid; gap: 2px;
  padding: 12px 18px;
  background: var(--ink-env);
  border: 2px solid var(--grey-dark);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.gantry__line {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  line-height: 1.25;
  color: var(--amber);
  text-shadow: 0 0 10px rgb(255 176 0 / 0.35);
  -webkit-mask-image: radial-gradient(circle, #0E0F11 62%, transparent 68%);
  mask-image: radial-gradient(circle, #0E0F11 62%, transparent 68%);
  -webkit-mask-size: 3px 3px;
  mask-size: 3px 3px;
}
.gantry__leg { position: absolute; bottom: -18px; width: 6px; height: 20px; background: var(--grey-mid); }
.gantry__leg--l { left: 18%; }
.gantry__leg--r { right: 18%; }
.gantry--hero { position: absolute; left: 50%; top: clamp(14px, 4vw, 40px); transform: translateX(-50%); margin: 0; white-space: nowrap; }

/* ---------- Route (the red line down the page) ---------- */
.route {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 0 var(--inset);
}
.route__line {
  position: absolute; top: 0; bottom: 0; left: var(--line-x);
  width: 4px; background: var(--evac-line);
}
.marker { position: relative; margin: 0 0 18px; display: flex; align-items: baseline; gap: 10px; }
.marker::before {
  content: ""; position: absolute; top: 50%;
  left: calc(var(--line-x) - var(--inset) - 9px);
  width: 22px; height: 3px; margin-top: -1px; background: var(--bone);
}
.marker__km { color: var(--bone); font-size: 1.05rem; }

.section { padding-block: var(--section-pad); position: relative; }

/* ---------- Hero body ---------- */
.hero { padding-block: clamp(24px, 5vw, 56px) var(--section-pad); }
.hero__body { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero__body { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); } }
.chip {
  display: inline-block; margin-bottom: 14px; padding: 4px 10px;
  border: 1px solid var(--bone-dim); color: var(--bone-dim);
}
.wordmark { margin: 0 0 0.12em; line-height: 1; font-weight: 400; }
.wordmark__lockup {
  display: inline-flex; align-items: center; gap: 0.22em; max-width: 100%;
  font-family: var(--font-display); font-size: clamp(1.9rem, 7.4vw, 5.6rem);
  letter-spacing: 0.005em; color: var(--bone);
}
/* PRESSURE FEVER on one line, stacking to PRESSURE / FEVER when the column is too narrow. */
.wordmark__text { display: inline-flex; flex-wrap: wrap; column-gap: 0.26em; min-width: 0; }
.wordmark__text > span { white-space: nowrap; }
/* Two-column hero: the wordmark shares the row with the phone. */
@media (min-width: 900px) { .wordmark__lockup { font-size: clamp(2.2rem, 4.2vw, 4.4rem); } }
.wordmark::after {
  content: ""; display: block; width: min(260px, 45%); height: 5px; margin-top: 0.18em; background: var(--red);
}
.hero__tagline {
  margin: 0.35em 0 0.2em;
  font-weight: 700; font-size: clamp(1.7rem, 5vw, 2.8rem); letter-spacing: 0.05em;
  color: var(--amber); text-transform: uppercase; line-height: 1.05;
}
.hero__sub { font-size: clamp(0.95rem, 2vw, 1.1rem); color: var(--bone-dim); }
.hero__fantasy { font-size: clamp(1.2rem, 2.4vw, 1.45rem); max-width: 34em; margin-top: 1.2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1.2em; }
.hero__status { font-size: 0.85rem; }
.hero__phone { display: flex; justify-content: center; }
.phone {
  width: min(300px, 78vw);
  border: 10px solid var(--grey-dark); border-radius: 30px;
  background: var(--ink-env); overflow: hidden;
  box-shadow: 0 30px 70px rgb(0 0 0 / 0.55), 0 0 0 1px var(--grey-mid);
}
.phone .capture { margin: 0; }
.phone .capture figcaption { padding: 10px 12px 12px; }

/* ---------- Gauge (the mark in front of the wordmark, sized to cap height) ---------- */
.gauge { width: 0.8em; height: 0.8em; overflow: visible; flex: none; }
.gauge__ring { stroke: var(--bone); stroke-dasharray: 93.3 4 120; }
.gauge__redline { stroke: var(--red); }
.gauge__ticks line { stroke: var(--bone-dim); }
.gauge__needle { fill: var(--bone); transform-origin: 50px 50px; transform: rotate(104deg); animation: needle-peg 2.2s cubic-bezier(0.2, 0.75, 0.25, 1) 0.2s both; }
@keyframes needle-peg {
  0% { transform: rotate(-130deg); }
  62% { transform: rotate(112deg); }
  72% { transform: rotate(99deg); }
  81% { transform: rotate(108deg); }
  90% { transform: rotate(101deg); }
  100% { transform: rotate(104deg); }
}

/* ---------- Pitch ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 2em 0 0; max-width: 760px; }
.stat { border-top: 4px solid var(--bone); padding-top: 10px; display: flex; flex-direction: column-reverse; }
.stat__value { margin: 0; font-family: var(--font-display); font-size: clamp(1.9rem, 6vw, 3.4rem); line-height: 1; }
.stat__label { margin-top: 6px; font-size: 0.8rem; }

/* ---------- How it plays ---------- */
.steps { list-style: none; margin: 1.5em 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step {
  position: relative; padding: 26px 20px 18px;
  background: var(--ink-env); border: 1px solid var(--grey-dark);
}
.step::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 8px, var(--ink) 8px 16px);
}
.step__number { display: block; color: var(--amber); font-size: 1.1rem; margin-bottom: 6px; }
.step__title { font-size: 1.45rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.step p { margin: 0; color: var(--bone); }

/* ---------- Pressure Fever (the crack-web) ---------- */
.stages { list-style: none; margin: 1.6em 0 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 560px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .stages { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stage { border-top: 3px solid var(--grey-mid); padding-top: 14px; }
.stage__skin { aspect-ratio: 1; background: var(--skin-ash); margin-bottom: 14px; overflow: hidden; }
.crack-web { width: 100%; height: 100%; }
.crack-web path { fill: none; stroke: var(--crack-web); stroke-linecap: round; stroke-linejoin: round; }
.stage__index { margin: 0 0 2px; font-size: 0.8rem; }
.stage__name { font-family: var(--font-display); font-weight: 400; font-size: 2.1rem; line-height: 1; }
.stage__unit { margin: 4px 0 8px; color: var(--bone); }
.stage--unconfirmed .stage__skin { outline: 2px dashed var(--red); outline-offset: -2px; }
.stage--unconfirmed .stage__unit { display: inline-block; padding: 2px 8px; border: 2px solid var(--red); }

/* ---------- Squad ---------- */
.operators { list-style: none; margin: 1.6em 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 560px) { .operators { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .operators { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.operator {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 16px; background: var(--ink-env); border: 1px solid var(--grey-dark);
}
.visor { width: 72px; height: 72px; }
.visor__hood { fill: var(--suit); }
.visor__glass { fill: var(--amber); }
.visor__shine { stroke: var(--bone); opacity: 0.7; }
.visor__mask { fill: var(--mask-ink); }
.visor__filter { fill: var(--grey-mid); }
.visor__stencil { fill: var(--ink); font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; }
.operator__code { margin: 0 0 2px; font-size: 0.8rem; }
.operator__callsign { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.05; margin-bottom: 4px; overflow-wrap: anywhere; }
.operator p { margin-bottom: 6px; }
.operator__tag { display: inline-block; margin: 4px 0 0 !important; padding: 1px 8px; border: 1px solid var(--grey-mid); font-size: 0.75rem; }
.operator--starter .operator__tag { border-color: var(--amber); color: var(--amber); }

/* ---------- Corridor map ---------- */
.chapters { list-style: none; margin: 1.6em 0 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
@media (min-width: 560px) { .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .chapters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chapter {
  position: relative; padding: 22px 18px 18px; min-height: 172px;
  background: var(--ink-env); border: 1px solid var(--grey-dark); overflow: hidden;
}
.chapter::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; }
.chapter--free { border-color: var(--amber); }
.chapter--free::before { background: var(--amber); }
.chapter--sealed::before { background: repeating-linear-gradient(-45deg, var(--red) 0 8px, var(--ink) 8px 16px); }
.chapter__node { position: absolute; right: 16px; top: 22px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--red); }
.chapter--free .chapter__node { border-color: var(--amber); background: var(--amber); }
.chapter__number { margin: 0 0 4px; }
.chapter__route { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.05; margin-bottom: 6px; }
.chapter__boss { margin: 0 0 14px; font-size: 0.8rem; }
.chapter__status { display: inline-block; margin: 0; padding: 3px 10px; font-size: 0.85rem; }
.chapter__status--free { color: var(--ink); background: var(--amber); }
.chapter__status--sealed { color: var(--bone); border: 2px solid var(--red); transform: rotate(-4deg); }
.chapter--sealed .chapter__route { color: var(--bone-dim); }

/* ---------- Fair play notice ---------- */
.notice {
  position: relative; max-width: 820px;
  background: var(--paint-bone); color: var(--ink);
  padding: 34px clamp(20px, 4vw, 44px) 28px;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.45);
}
.notice::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 12px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 12px, var(--ink) 12px 24px);
}
.notice__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.notice .cc-mark { width: 40px; height: 40px; flex: none; fill: var(--ink); stroke: var(--ink); }
.notice__kicker { margin: 0; color: var(--ink); font-size: 0.9rem; }
.notice__title { color: var(--ink); }
.notice__items { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.notice__items li { position: relative; padding-left: 30px; font-size: 1.2rem; }
.notice__items li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 16px; height: 16px; background: var(--ink);
}
.notice__items strong { display: block; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.2; }
.notice__items span { display: block; font-size: 1.05rem; }
.notice__note { margin: 0; font-size: 1rem; color: var(--grey-dark); }

/* ---------- Field feed ---------- */
.feed__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 1.2em 0 1.4em; }
.feed__controls[hidden] { display: none; }
.feed__state { margin: 0; }
.toggle { display: inline-flex; border: 2px solid var(--grey-mid); }
.toggle__option {
  min-height: 48px; padding: 0.4em 1.1em;
  background: transparent; color: var(--bone); border: 0;
  font-family: var(--font-body); font-weight: 700; font-size: 1.2rem;
  text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer;
}
.toggle__option + .toggle__option { border-left: 2px solid var(--grey-mid); }
.toggle__option[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.toggle__option--danger[aria-pressed="true"] { background: var(--red); color: var(--bone); }
.feed__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .feed__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.feed__slot--wide { grid-column: span 2; }
.capture { margin: 0; background: var(--ink-env); border: 1px solid var(--grey-dark); }
.capture img { width: 100%; }
.capture figcaption { display: grid; gap: 2px; padding: 10px 12px 12px; }
.capture__tag { font-size: 0.72rem; }
.capture__caption { font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.15; }
.redacted {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px; background: var(--ink-env); border: 1px solid var(--grey-dark); overflow: hidden;
}
.feed__slot--tall .redacted { aspect-ratio: 659 / 1172; }
.feed__slot--wide .redacted { aspect-ratio: 1326 / 1172; }
.redacted__crack-web { position: absolute; inset: 0; }
.redacted__crack-web path { stroke: var(--grey-dark); }
.redacted > p { position: relative; margin: 0 0 4px; }
.redacted__title { font-family: var(--font-display); font-size: clamp(1.15rem, 3vw, 1.7rem); line-height: 1.05; }
.redacted__caption { color: var(--bone-dim); text-transform: uppercase; font-size: 0.95rem; }
.feed--unfiltered .redacted { display: none; }

.dialog {
  max-width: min(480px, calc(100vw - 32px)); padding: 0;
  background: var(--ink-env); color: var(--bone);
  border: 2px solid var(--red);
}
.dialog::backdrop { background: rgb(14 15 17 / 0.88); }
.dialog__body { padding: 26px 24px 22px; }
.dialog__kicker { margin-bottom: 6px; }
.dialog__title { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1.05; margin-bottom: 12px; }
.dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- Enlist ---------- */
.enlist__panel {
  position: relative; display: grid; gap: 28px;
  padding: 34px clamp(18px, 4vw, 40px) 30px;
  background: var(--ink-env); border: 1px solid var(--grey-dark);
}
.enlist__panel::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 10px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 10px, var(--ink) 10px 20px);
}
@media (min-width: 900px) { .enlist .enlist__panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.enlist-form { display: grid; gap: 16px; position: relative; }
.field { display: grid; gap: 6px; }
.field__label { color: var(--bone); }
.field__input {
  width: 100%; min-height: 52px; padding: 0.6em 0.8em;
  font: inherit; font-size: 1.2rem; color: var(--bone);
  background: var(--ink); border: 2px solid var(--bone-dim); border-radius: 2px;
}
.field__input:focus { border-color: var(--amber); outline: 3px solid var(--amber); outline-offset: 2px; }
.field__input[aria-invalid="true"] { border-color: var(--red); }
.field--check { grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 12px; font-size: 1.02rem; }
.field__check { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--amber); }
.field__check[aria-invalid="true"] { outline: 3px solid var(--red); outline-offset: 2px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enlist-form__status { margin: 0; min-height: 1.45em; }
.enlist-form__status--error { padding-left: 12px; border-left: 4px solid var(--red); }
.enlist-form__status--ok {
  justify-self: start; padding: 6px 14px; border: 3px solid var(--amber); color: var(--amber);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; transform: rotate(-2deg);
}
.enlist-form--done .field, .enlist-form--done .button { display: none; }

/* ---------- /play, legal, errors ---------- */
.page-play .section, .page-error .section, .page-legal .section {
  max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter);
}
.play .enlist__panel { max-width: 560px; margin-top: 1.5em; }
.play__controls { margin: 1.2em 0 0; }
.play__launch { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 0.4em; }
.play__launch [hidden] { display: none; }
.legal { max-width: 72ch !important; }
.legal h2 { margin: 1.8em 0 0.5em; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.35rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.6em; }
.legal__meta { margin-bottom: 1.2em; }
.error-page__code { margin-bottom: 0.4em; }

/* ---------- Footer ---------- */
.site-footer {
  display: grid; gap: 14px;
  padding: 40px var(--gutter) 48px;
  border-top: 1px solid var(--grey-dark);
  max-width: var(--max); margin: 0 auto;
}
.site-footer__mark { display: flex; align-items: center; gap: 12px; }
.site-footer__mark p { margin: 0; }
.site-footer__fiction { margin: 0; color: var(--bone-dim); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__legal { margin: 0; font-size: 0.8rem; }
.site-footer__fonts { margin: 0; font-size: 0.75rem; text-transform: none; letter-spacing: 0.02em; }
.site-footer__fonts a { color: var(--bone-dim); }

/* ---------- Motion and forced colours ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .gauge__needle { transform: rotate(104deg); }
}
@media (forced-colors: active) {
  .gantry__line { -webkit-mask-image: none; mask-image: none; }
  .route__line, .marker::before { background: CanvasText; }
}

/* ---------- Live field experience ---------- */
[hidden] { display: none !important; }
:root { --max: 1360px; --section-pad: clamp(56px, 7vw, 104px); }
body { background-image: linear-gradient(rgb(237 232 220 / 0.015) 1px, transparent 1px); background-size: 100% 6px; }
button { font: inherit; }
.eyebrow { color: var(--amber); font-size: 0.8rem; letter-spacing: 0.16em; margin-bottom: 20px; }
.site-header { padding-inline: clamp(16px, 3.5vw, 64px); min-height: 76px; background: var(--ink); }
.site-header__brand { font-size: 1.2rem; }
.site-header__nav a { font-size: 0.8rem; }
.button { border-radius: 0; padding-inline: 1.25em; gap: 24px; }
.button--amber { box-shadow: inset 0 -3px 0 rgb(14 15 17 / 0.2); }
.button--amber:hover { transform: translateY(-2px); }
.live-hero { isolation: isolate; position: relative; min-height: 740px; height: min(880px, calc(100svh - 76px)); overflow: hidden; background: var(--ink-env); border-bottom: 1px solid var(--grey-mid); }
.live-hero__world, .live-hero__shade { position: absolute; inset: 0; z-index: -2; }
.live-hero__poster, .live-hero__engine { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; border: 0; }
.live-hero__engine { opacity: 0; transition: opacity 600ms ease; }
.live-hero[data-state="watching"] .live-hero__engine,
.live-hero[data-state="watch-paused"] .live-hero__engine,
.live-hero[data-state="playing"] .live-hero__engine,
.live-hero[data-state="paused"] .live-hero__engine,
.live-hero[data-state="ended"] .live-hero__engine { opacity: 1; }
/* Demo loading bar on the hero's bottom edge. Only transform animates, so the sweep keeps moving on
   the compositor even while an engine that shares this page's thread is busy. */
.live-hero__progress { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 4px; overflow: hidden; background: var(--grey-mid); pointer-events: none; }
.live-hero__progress > span { display: block; width: 100%; height: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left center; transition: transform 250ms linear; }
.live-hero__progress[data-mode="sweep"] > span { width: 30%; transition: none; animation: demo-sweep 1.4s linear infinite; }
@keyframes demo-sweep { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
@media (prefers-reduced-motion: reduce) {
  .live-hero__progress[data-mode="sweep"] > span { width: 100%; transform: none; opacity: 0.5; }
}
.live-hero__shade { z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgb(14 15 17 / 0.97), rgb(14 15 17 / 0.8) 30%, rgb(14 15 17 / 0.12) 72%), linear-gradient(0deg, var(--ink), transparent 30%, transparent 80%, rgb(14 15 17 / 0.65)); transition: opacity 300ms ease; }
.live-hero__top { position: absolute; inset: 22px clamp(20px, 4vw, 64px) auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 0.7rem; }
.live-hero__signal { border: 1px solid var(--bone-dim); padding: 4px 8px; color: var(--bone); }
.live-hero__copy { position: relative; width: min(800px, 65%); padding: 98px 0 96px clamp(24px, 5vw, 80px); }
.live-hero .wordmark__lockup { font-size: clamp(1.6rem, 2.7vw, 2.6rem); }
.live-hero .wordmark::after { display: none; }
.live-hero__headline { font-family: var(--font-display); font-size: clamp(5rem, 10.5vw, 10rem); font-weight: 400; line-height: 0.9; letter-spacing: -0.045em; margin: 28px 0; }
.live-hero__headline span { color: var(--amber); }
.live-hero__intro { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.4; max-width: 35ch; color: var(--bone); }
.live-hero .hero__actions { margin: 26px 0 16px; gap: 12px; }
.live-hero__invitation { max-width: 55ch; font-size: 0.72rem; letter-spacing: 0.06em; }
.live-hero__bottom { position: absolute; inset: auto clamp(20px, 4vw, 64px) 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; justify-content: space-between; }
.live-hero__bottom p, .live-hero__bottom a { font-size: 0.7rem; margin: 0; text-decoration: none; }
.live-hero__bottom a { color: var(--bone); }
.live-hero__bottom a span { margin-left: 18px; color: var(--amber); }
.signal-dot { display: inline-block; width: 6px; height: 6px; background: var(--amber); margin-right: 8px; }
.feed-pause { background: transparent; border: 1px solid var(--bone-dim); color: var(--bone); min-height: 44px; padding: 6px 12px; cursor: pointer; font-size: 0.7rem; }
.live-hero[data-state="playing"] .live-hero__shade { opacity: 0; }
.live-hero[data-state="playing"] .live-hero__top,
.live-hero[data-state="playing"] .live-hero__bottom,
.live-hero[data-state="paused"] .live-hero__bottom,
.live-hero[data-state="ended"] .live-hero__bottom { display: none; }
.live-hero[data-state="playing"] .live-hero__world { z-index: 0; }
.demo-hud { position: absolute; z-index: 1; inset: 20px 24px auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; pointer-events: none; }
.demo-hud__readout { background: rgb(14 15 17 / 0.94); padding: 10px 20px; border-left: 3px solid var(--amber); }
.demo-hud__readout span { display: block; font-size: 0.65rem; }
.demo-hud__readout strong { font: 2.2rem var(--font-mono); color: var(--amber); }
.demo-hud > p { background: var(--ink); padding: 10px 14px; font-size: 0.75rem; margin: 0; }
.demo-hud__actions { display: flex; gap: 8px; pointer-events: auto; }
.demo-hud .button { background: var(--ink); }
.demo-panel { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto; padding: clamp(20px, 3vw, 40px); background: rgb(14 15 17 / 0.97); border: 1px solid var(--grey-mid); border-top: 4px solid var(--amber); box-shadow: 0 24px 80px rgb(0 0 0 / 0.5); }
.demo-panel .display { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.demo-panel > .button { margin: 4px 4px 4px 0; }
.demo-panel__stats { padding-block: 14px; border-block: 1px solid var(--grey-dark); color: var(--bone); font-size: 0.8rem; }
.demo-panel__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.demo-panel .field--check { font-size: 0.9rem; }
.demo-panel .enlist-form { gap: 10px; }
.demo-panel .eyebrow { font-size: 0.65rem; }
.mission-strip { display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr; background: var(--ink-env); border-bottom: 1px solid var(--grey-dark); padding: 26px max(24px, calc((100vw - 1200px)/2)); }
.mission-strip p { margin: 0; padding: 0 24px; border-right: 1px solid var(--grey-mid); }
.mission-strip strong { display: block; font-size: 2.1rem; line-height: 1.1; }
.mission-strip span { display: block; margin-top: 7px; font: 0.65rem var(--font-mono); letter-spacing: 0.1em; color: var(--bone-dim); }
.mission-strip p:last-child { border: 0; align-self: center; font-size: 0.75rem; line-height: 1.8; }
.section { border-bottom: 1px solid var(--grey-dark); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 32px; }
.section-heading .lead { max-width: 36ch; color: var(--bone-dim); }
.marker { margin-bottom: 34px; font-size: 0.72rem; }
.marker__km { font-size: 0.82rem; }
.display { font-size: clamp(2.8rem, 5vw, 4.5rem); letter-spacing: -0.035em; }
.steps { gap: 0; margin-top: 32px; border-top: 1px solid var(--grey-mid); }
.step { border: 0; border-right: 1px solid var(--grey-mid); padding: 26px 22px; background: none; }
.step:first-child { padding-left: 0; }
.step:last-child { border-right: 0; }
.step::before { display: none; }
.step__number { font-size: 3.5rem; line-height: 1; color: var(--amber); margin-bottom: 30px; }
.step__title { font-size: 1.75rem; }
.step p { color: var(--bone-dim); }
.feed__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feed__slot--wide { grid-column: auto; }
.feed__slot:first-child { grid-column: 1/-1; }
.feed__slot:first-child img { max-height: 560px; object-fit: cover; }
.feed__slot--wide .redacted { aspect-ratio: 16/9; min-height: 240px; padding: 30px; }
.capture { border: 0; }
.capture figcaption { border-top: 2px solid var(--amber-dim); padding: 16px 20px; gap: 8px; }
.capture__caption { font-size: 1.4rem; }
.dossiers { border: 1px solid var(--grey-mid); display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.dossiers:not(:has([data-dossier-selectors]:not([hidden]))) { display: block; }
.dossiers__selectors { display: flex; flex-direction: column; background: var(--ink-env); }
.dossier-selector { cursor: pointer; display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 16px 20px; border: 0; border-bottom: 1px solid var(--grey-dark); background: transparent; color: var(--bone-dim); text-align: left; }
.dossier-selector > span:first-child { font-size: 0.7rem; }
.dossier-selector > span:last-child { margin-left: auto; }
.dossier-selector[aria-pressed="true"] { color: var(--ink); background: var(--amber); }
.dossier-selector[aria-pressed="true"] .mono { color: var(--ink); }
.dossier-selector:hover { box-shadow: inset 3px 0 var(--bone); }
.dossier { min-height: 476px; display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 24px; padding: 32px; }
.dossier__portrait { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 0.8; border: 1px solid var(--grey-mid); background: repeating-linear-gradient(0deg, transparent, transparent 39px, var(--grey-dark) 40px), repeating-linear-gradient(90deg, transparent, transparent 39px, var(--grey-dark) 40px); }
.dossier__portrait::before, .dossier__portrait::after { content: '+'; position: absolute; color: var(--bone-dim); font: 1rem var(--font-mono); }
.dossier__portrait::before { top: 8px; left: 10px; }
.dossier__portrait::after { right: 10px; bottom: 8px; }
.dossier__portrait .visor { width: 80%; height: auto; max-width: 240px; }
.dossier__portrait > span { font-size: 0.6rem; margin-top: 20px; }
.dossier h3 { font-family: var(--font-display); font-size: clamp(2rem, 3.8vw, 3.4rem); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.dossier .lead { color: var(--bone-dim); margin-top: 18px; }
.dossier__footnote { font-size: 0.65rem; border-top: 1px solid var(--grey-mid); padding-top: 20px; margin-top: 28px; }
.stages { gap: 2px; margin-top: 32px; }
.stage { position: relative; background: var(--ink-env); padding: 20px; border-top: 2px solid var(--red); }
.stage__skin { aspect-ratio: 1.4; margin: -20px -20px 20px; opacity: 0.8; }
.stage__index { color: var(--bone-dim); margin-bottom: 8px; }
.stage__name { font-size: 2.5rem; }
.stage__unit { color: var(--bone); margin-top: 12px; }
.stage > p:last-child { color: var(--bone-dim); font-size: 1rem; }
.route-map { border: 1px solid var(--grey-mid); background: var(--ink-env); }
.route-map__heading { display: flex; justify-content: space-between; gap: 20px; padding: 20px 24px; font-size: 0.65rem; border-bottom: 1px solid var(--grey-mid); }
.route-stop { position: relative; }
.route-stop + .route-stop { border-top: 1px solid var(--grey-dark); }
.route-stop summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 20px; align-items: center; gap: 18px; padding: 22px 24px; min-height: 84px; }
.route-stop summary::-webkit-details-marker { display: none; }
.route-stop[open] { background: var(--grey-dark); }
.route-stop__number { color: var(--amber); border: 1px solid var(--amber-dim); width: 38px; height: 38px; display: grid; place-items: center; }
.route-stop__name { font-size: 1.6rem; }
.route-stop__tag { font-size: 0.7rem; }
.route-stop--free .route-stop__tag { color: var(--amber); }
.route-stop__plus { font: 1.4rem var(--font-mono); color: var(--amber); transition: transform 160ms ease; }
.route-stop[open] .route-stop__plus { transform: rotate(45deg); }
.route-stop__brief { margin: 0 30px 0 90px; padding: 0 0 24px; max-width: 60ch; }
.route-stop__brief .mono { color: var(--bone); font-size: 0.8rem; }
.route-stop__brief > p:last-child { margin-bottom: 0; color: var(--bone-dim); }
.notice { max-width: none; padding: 36px; box-shadow: none; }
.notice__items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-block: 28px; }
.enlist__panel { border: 0; background: none; padding: 32px 0; gap: 64px; }
.enlist__panel::before { background: var(--amber); height: 3px; }
.enlist__copy .display { font-size: clamp(3rem, 6.5vw, 6rem); }
.site-footer { padding: 48px max(24px, 4vw); }
.page-play .section, .page-error .section { min-height: 70svh; }
.page-play .display, .page-error .display { margin-top: 30px; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .live-hero__copy { animation: field-arrival 650ms ease-out both; }
  @keyframes field-arrival { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 1023px) {
  .live-hero__copy { width: 80%; }
  .live-hero__top > span:nth-child(2) { display: none; }
  .mission-strip { padding: 24px 12px; }
  .mission-strip p { padding-inline: 16px; }
  .dossiers { grid-template-columns: 190px minmax(0, 1fr); }
  .dossier { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .dossier__portrait { aspect-ratio: 2; }
  .dossier__portrait .visor { max-width: 120px; }
  .dossier__portrait > span { margin-top: 8px; }
  .demo-hud { flex-wrap: wrap; }
  .demo-hud > p { order: 3; }
}
@media (max-width: 719px) {
  .site-header { min-height: 66px; gap: 12px; }
  .site-header__brand { font-size: 0.95rem; gap: 6px; white-space: nowrap; }
  .site-header__brand img { width: 22px; }
  .live-hero { height: auto; min-height: 740px; }
  .live-hero__copy { width: 100%; padding: 100px 24px 132px; }
  .live-hero__headline { font-size: clamp(5rem, 17vw, 7.4rem); margin-block: 26px; }
  .live-hero__shade { background: linear-gradient(90deg, rgb(14 15 17 / 0.88), rgb(14 15 17 / 0.35)), linear-gradient(0deg, var(--ink), transparent 60%); }
  .live-hero .wordmark__lockup { font-size: clamp(1.5rem, 5.2vw, 2.2rem); }
  .live-hero .hero__actions { flex-direction: column; align-items: start; }
  .live-hero .hero__actions .button { min-width: 240px; justify-content: space-between; }
  .live-hero__bottom { gap: 12px; }
  .live-hero__bottom > a { flex-basis: 100%; }
  .live-hero__bottom p { font-size: 0.6rem; }
  .live-hero[data-state="playing"], .live-hero[data-state="paused"], .live-hero[data-state="ended"] { height: calc(100svh - 66px); min-height: 650px; }
  .demo-hud { inset: 12px 12px auto; gap: 8px; }
  .demo-hud__readout { padding: 6px 10px; }
  .demo-hud__readout strong { font-size: 1.65rem; }
  .demo-hud__actions { gap: 4px; }
  .demo-hud .button { font-size: 0.8rem; padding: 6px 9px; }
  .demo-hud > p { font-size: 0.65rem; }
  .mission-strip { grid-template-columns: repeat(3, 1fr); padding: 20px 12px; }
  .mission-strip strong { font-size: 1.6rem; }
  .mission-strip span { font-size: 0.55rem; }
  .mission-strip p:nth-child(3) { border-right: 0; }
  .mission-strip p:last-child { grid-column: 1/-1; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--grey-dark); }
  .section-heading { display: block; }
  .section-heading .lead { margin-bottom: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { padding: 22px 14px; border-bottom: 1px solid var(--grey-dark); }
  .step:nth-child(odd) { padding-left: 0; }
  .step:nth-child(even) { border-right: 0; }
  .step__number { font-size: 2.75rem; margin-bottom: 18px; }
  .step__title { font-size: 1.45rem; }
  .step p { font-size: 1rem; }
  .feed__grid { grid-template-columns: 1fr; }
  .feed__slot { grid-column: 1 !important; }
  .feed__slot--wide .redacted { min-height: 220px; padding: 20px; }
  .dossiers { display: flex; flex-direction: column; }
  .dossiers__selectors { flex-direction: row; flex-wrap: wrap; padding: 8px; gap: 4px; }
  .dossier-selector { flex: 1 0 40%; padding: 10px; gap: 8px; min-height: 48px; font-size: 0.9rem; }
  .dossier-selector > span:last-child { display: none; }
  .dossier { min-height: 0; padding: 20px; }
  .dossier__portrait { aspect-ratio: 1.6; }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage { padding: 14px; }
  .stage__skin { margin: -14px -14px 16px; }
  .stage__name { font-size: 1.7rem; }
  .stage__unit { font-size: 0.68rem; }
  .stage--unconfirmed .stage__unit { padding-inline: 2px; }
  .route-map__heading { padding: 16px; flex-direction: column; gap: 6px; }
  .route-stop summary { grid-template-columns: 30px minmax(0, 1fr) 16px; gap: 12px; padding: 18px 12px; }
  .route-stop__number { width: 28px; height: 28px; font-size: 0.65rem; }
  .route-stop__name { font-size: 1.2rem; }
  .route-stop__tag { grid-column: 2; grid-row: 2; font-size: 0.6rem; }
  .route-stop__plus { grid-column: 3; grid-row: 1; }
  .route-stop__brief { margin: 0 16px 0 54px; }
  .notice { padding: 28px 20px; }
  .notice__items { grid-template-columns: 1fr; gap: 18px; }
  .notice__head { align-items: start; }
  .notice__kicker { font-size: 0.75rem; }
  .enlist__panel { gap: 24px; }
}
/* Intrinsic image ratios must never set the minimum width of a grid track. */
.feed__slot, .capture, .redacted, .dossiers__files, .dossier__body { min-width: 0; }
.redacted { width: 100%; }
@media (max-width: 719px) { .feed__grid { grid-template-columns: minmax(0, 1fr); } }
