/* ==================================================================
   SPIRIT BOMB 2.0  —  Pitch Document  |  Strangeloop Studios, 2026
   ================================================================== */

/* ---------- tokens ---------- */
:root {
  --ink:        #0A0A0C;
  --ink-2:      #0C0C10;
  --ink-3:      #101014;
  --abyss:      #000000;
  --paper:      #F2EBDC;
  --paper-2:    #DED6C4;
  --paper-dim:  #8A8580;
  --paper-mute: #55524D;
  --rule:       #1A1A1E;
  --rule-2:     #24242A;
  --ember:      #FF5A1F;
  --ember-2:    #FF8A55;
  --ember-dim:  #B84819;

  --f-serif:  "Instrument Serif", "Apple Garamond", "Times New Roman", serif;
  --f-sans:   "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --f-mono:   "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --fs-tiny: 0.6875rem;
  --fs-s:    0.8125rem;
  --fs-m:    1.0625rem;
  --fs-l:    1.375rem;

  --w-max:   1360px;
  --gutter:  clamp(1.25rem, 3.5vw, 3rem);

  --ease: cubic-bezier(.2,.65,.2,1);

  --chrome-h: 3rem;
  --status-h: 2.25rem;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,h5,h6,p { margin: 0; }
button { font: inherit; }

/* ---------- body ---------- */
body {
  font-family: var(--f-sans);
  font-size: var(--fs-m);
  line-height: 1.55;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "ss01" 1, "cv01" 1;
  padding-bottom: var(--status-h);
}

::selection { background: var(--ember); color: var(--ink); }

/* utility type */
.mono { font-family: var(--f-mono); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.tiny { font-size: var(--fs-tiny); }
.muted { color: var(--paper-dim); }
.ember { color: var(--ember); }
.strike { text-decoration: line-through; text-decoration-color: var(--ember); text-decoration-thickness: 1px; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }

/* blinking cursor */
.caret {
  display: inline-block;
  font-weight: 400;
  color: var(--ember);
  animation: blink 1.1s steps(2) infinite;
  margin-left: 1px;
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* LED indicator */
.led {
  width: 7px; height: 7px;
  background: var(--ember);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--ember), 0 0 16px var(--ember);
  margin-right: .4rem;
  animation: led-pulse 2.5s ease-in-out infinite;
}
@keyframes led-pulse {
  0%,100% { opacity: .85; }
  50%     { opacity: 1;   }
}

/* ==================================================================
   GLOBAL OVERLAYS — grid, grain, vignette, scanline
   ================================================================== */

.grid-bg, .grain, .vignette, .scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.grid-bg  { z-index: -1; }
.grain    { z-index: 100; }
.vignette { z-index: 101; }
.scanline { z-index: 102; }

/* engineering dot grid — subtle, always there */
.grid-bg {
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(255,90,31,.04), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(255,90,31,.015), transparent 45%),
    radial-gradient(circle at center, rgba(242,235,220,.04) 1px, transparent 1.2px),
    linear-gradient(to right, rgba(242,235,220,.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242,235,220,.015) 1px, transparent 1px);
  background-size:
    auto,
    auto,
    32px 32px,
    128px 128px,
    128px 128px;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
}

.grain {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.92  0 0 0 0 0.86  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
  background-size: 220px 220px;
  mix-blend-mode: overlay;
  opacity: .09;
  animation: grain-shift 1.2s steps(6) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -4%); }
  60%  { transform: translate(-4%, -2%); }
  80%  { transform: translate(4%, 3%); }
  100% { transform: translate(0, 0); }
}

.vignette {
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.55) 100%);
  animation: vignette-breathe 10s ease-in-out infinite;
}
@keyframes vignette-breathe {
  0%,100% { opacity: .85; }
  50%     { opacity: 1; }
}

.scanline {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0,
    rgba(255,255,255,0) 2px,
    rgba(255,255,255,.015) 3px,
    rgba(255,255,255,0) 4px
  );
  mix-blend-mode: overlay;
  opacity: .5;
}

/* -------- GLITCH LAYER -------- */
/* fixed overlay; pseudo-elements flicker on randomized JS triggers */
.glitch-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 103;
  mix-blend-mode: screen;
}
.glitch-band,
.glitch-slice {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}

/* thin ember tear bands — horizontal scanline errors */
.glitch-band {
  height: 1px;
  background: var(--ember);
  box-shadow: 0 0 12px var(--ember), 0 0 30px var(--ember);
}
.glitch-band--a { top: 22%; }
.glitch-band--b { top: 67%; background: #6ED0FF; box-shadow: 0 0 10px rgba(110,208,255,.6); }

/* thicker slice — displaces a horizontal chunk of the screen, CRT-style */
.glitch-slice {
  height: 8%;
  background:
    linear-gradient(to bottom,
      transparent 0%,
      rgba(255,90,31,.04) 30%,
      rgba(255,90,31,.08) 50%,
      rgba(255,90,31,.04) 70%,
      transparent 100%);
  mix-blend-mode: screen;
}
.glitch-slice--a { top: 35%; }
.glitch-slice--b { top: 78%; }

/* the firing animation */
.glitch-layer.is-firing .glitch-band--a { animation: gl-band-a 220ms steps(6); }
.glitch-layer.is-firing .glitch-band--b { animation: gl-band-b 180ms steps(5); }
.glitch-layer.is-firing .glitch-slice--a { animation: gl-slice-a 160ms steps(4); }
.glitch-layer.is-firing .glitch-slice--b { animation: gl-slice-b 200ms steps(3); }

@keyframes gl-band-a {
  0%   { opacity: .8; transform: translate(0, 0) scaleY(1); }
  20%  { opacity: .5; transform: translate(6px, 40vh) scaleY(3); }
  45%  { opacity: .9; transform: translate(-4px, -30vh) scaleY(2); }
  70%  { opacity: .4; transform: translate(2px, 20vh) scaleY(1); }
  100% { opacity: 0; transform: translate(0, 0); }
}
@keyframes gl-band-b {
  0%   { opacity: .6; transform: translate(0, 0) scaleY(1); }
  30%  { opacity: .4; transform: translate(-8px, -20vh) scaleY(4); }
  60%  { opacity: .7; transform: translate(5px, 50vh) scaleY(1); }
  100% { opacity: 0; }
}
@keyframes gl-slice-a {
  0%   { opacity: .6; transform: translateX(0); }
  40%  { opacity: .4; transform: translateX(-10px); }
  75%  { opacity: .5; transform: translateX(6px); }
  100% { opacity: 0; }
}
@keyframes gl-slice-b {
  0%   { opacity: .4; transform: translateX(0); }
  50%  { opacity: .3; transform: translateX(8px); }
  100% { opacity: 0; }
}

/* major glitches shake the body briefly */
body.glitch-jitter {
  animation: body-jitter 90ms steps(3);
}
@keyframes body-jitter {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-2px, 1px); filter: hue-rotate(6deg); }
  66%  { transform: translate(3px, -1px); filter: hue-rotate(-4deg); }
  100% { transform: translate(0, 0); }
}

/* ==================================================================
   REVEAL
   ================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .grain, .vignette, .led, .caret { animation: none; }
}

/* ==================================================================
   TOP CHROME (terminal bar)
   ================================================================== */

.chrome {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--chrome-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 2.25rem);
  background: rgba(10,10,12,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  z-index: 90;
  font-size: var(--fs-tiny);
}
.chrome__left, .chrome__right {
  display: flex; gap: .5rem; align-items: center;
  color: var(--paper);
}
.chrome__sep { opacity: .3; color: var(--paper-dim); }

/* ==================================================================
   CROSSHAIRS (hero corner decorations) — bigger, L-shaped
   ================================================================== */

.cross {
  position: absolute;
  width: 28px; height: 28px;
  pointer-events: none;
  opacity: .4;
}
.cross::before, .cross::after {
  content: "";
  position: absolute;
  background: var(--paper-dim);
}
.cross::before { width: 100%; height: 1px; }
.cross::after  { height: 100%; width: 1px; }

.cross--tl { top: 5rem;    left: var(--gutter); }
.cross--tl::before { top: 0; left: 0; }
.cross--tl::after  { top: 0; left: 0; }

.cross--tr { top: 5rem;    right: var(--gutter); }
.cross--tr::before { top: 0; right: 0; }
.cross--tr::after  { top: 0; right: 0; }

.cross--bl { bottom: 3rem; left: var(--gutter); }
.cross--bl::before { bottom: 0; left: 0; }
.cross--bl::after  { bottom: 0; left: 0; }

.cross--br { bottom: 3rem; right: var(--gutter); }
.cross--br::before { bottom: 0; right: 0; }
.cross--br::after  { bottom: 0; right: 0; }

/* tiny corner marks (cards/frames) — L-shape, small */
.corner {
  position: absolute;
  width: 10px; height: 10px;
  pointer-events: none;
  z-index: 2;
}
.corner::before, .corner::after {
  content: "";
  position: absolute;
  background: var(--ember-dim);
}
.corner::before { width: 100%; height: 1px; }
.corner::after  { height: 100%; width: 1px; }

.corner--tl { top: 6px; left: 6px; }
.corner--tl::before { top: 0; left: 0; }
.corner--tl::after  { top: 0; left: 0; }

.corner--tr { top: 6px; right: 6px; }
.corner--tr::before { top: 0; right: 0; }
.corner--tr::after  { top: 0; right: 0; }

.corner--bl { bottom: 6px; left: 6px; }
.corner--bl::before { bottom: 0; left: 0; }
.corner--bl::after  { bottom: 0; left: 0; }

.corner--br { bottom: 6px; right: 6px; }
.corner--br::before { bottom: 0; right: 0; }
.corner--br::after  { bottom: 0; right: 0; }

/* ==================================================================
   HERO
   ================================================================== */

.hero {
  min-height: calc(100vh - var(--status-h));
  min-height: calc(100dvh - var(--status-h));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem var(--gutter) 4rem;
}

.hud {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  line-height: 1.3;
}
.hud--tl { top: 5.25rem; left: calc(var(--gutter) + 2rem); }
.hud--tr { top: 5.25rem; right: calc(var(--gutter) + 2rem); text-align: right; }

.hero__stage {
  max-width: var(--w-max);
  width: 100%;
  margin: 0 auto;
  padding-top: 2rem;
}

.hero__kicker {
  font-size: var(--fs-tiny);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  padding: .5rem .75rem;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  background: rgba(10,10,12,.5);
}
.dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--ember);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--ember);
  animation: dot-pulse 2.5s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,100% { opacity: .7; transform: scale(1); }
  50%     { opacity: 1; transform: scale(1.15); }
}

.hero__title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(4rem, 13.5vw, 14rem);
  line-height: 0.88;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.hero__line { display: block; }
.hero__line:nth-child(2) { padding-left: clamp(1rem, 6vw, 6rem); }
.hero__mark {
  display: inline-block;
  vertical-align: baseline;
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 0.18em;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ember);
  transform: translateY(-1em);
  padding: .25em .6em;
  border: 1px solid var(--ember);
  border-radius: 2px;
  margin-left: .4em;
  background: rgba(255,90,31,.05);
}

.hero__tag {
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  color: var(--paper-2);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding-left: clamp(1rem, 6vw, 6rem);
  letter-spacing: .005em;
}
.hero__tag em { color: var(--paper); }

.hero__rule {
  width: clamp(10rem, 30vw, 20rem);
  height: 1px;
  background: var(--ember);
  margin-left: clamp(1rem, 6vw, 6rem);
  margin-bottom: 1.5rem;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.hero__rule.is-in { transform: scaleX(1); }

.hero__readout {
  padding-left: clamp(1rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  gap: .4rem;
  max-width: 36rem;
}
.readout__row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: .3rem 0;
  border-bottom: 1px dashed var(--rule-2);
}
.readout__row:last-child { border-bottom: none; }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--paper-dim), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%,100% { transform: scaleY(.5); opacity: .4; }
  50%     { transform: scaleY(1);  opacity: 1;  }
}

/* ==================================================================
   SECTIONS (shared)
   ================================================================== */

.section {
  position: relative;
  padding: clamp(6rem, 11vw, 11rem) var(--gutter);
  max-width: var(--w-max);
  margin: 0 auto;
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.section__head-l {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.section__head-r {
  color: var(--paper-dim);
}
.section__num   { color: var(--ember); }
.section__label { color: var(--paper-dim); }

.display {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.5vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 18ch;
}
.display em { color: var(--paper-2); font-style: italic; }

.lede {
  font-family: var(--f-serif);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.4;
  color: var(--paper-2);
  max-width: 44ch;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

/* ==================================================================
   § 01  PROBLEM
   ================================================================== */

.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.column__tag {
  margin-bottom: 1rem;
  color: var(--ember);
}
.column p {
  max-width: 32ch;
  color: var(--paper-2);
  line-height: 1.55;
}
.column strong { color: var(--paper); font-weight: 600; }

.thesis {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 2rem;
  align-items: start;
}
.thesis__label, .proof__label, .killlist__label {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.thesis__text {
  font-family: var(--f-serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.35;
  max-width: 46ch;
  color: var(--paper);
}

/* ==================================================================
   § 02  DIRECTIONS
   ================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 1.8vw, 1.5rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.card {
  grid-column: span 3;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color .5s var(--ease), transform .5s var(--ease);
}
.card:hover {
  border-color: var(--rule-2);
  transform: translateY(-2px);
}

.card--lead {
  grid-column: span 6;
  border-color: var(--ember-dim);
  background:
    linear-gradient(135deg, rgba(255,90,31,.06), transparent 45%),
    var(--ink-2);
}
.card--lead .corner::before,
.card--lead .corner::after { background: var(--ember); height: 1px; }
.card--lead .corner::after { width: 1px; }

.card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.card__rank { color: var(--paper-dim); }
.card--lead .card__rank { color: var(--ember); }
.card__dot {
  width: 8px; height: 8px;
  background: var(--ember);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--ember);
}

.card__name {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin-bottom: .5rem;
  color: var(--paper);
}
.card__name-alt { color: var(--paper-dim); font-size: 0.65em; }
.card__slash { color: var(--ember); margin: 0 .3em; font-style: normal; }
.card__def {
  color: var(--paper-dim);
  max-width: 48ch;
  margin-bottom: 1.25rem;
  font-size: var(--fs-s);
}

/* spec panel — technical data block */
.card__spec {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .75rem 1rem;
  margin-bottom: 1.75rem;
  background: rgba(0,0,0,.3);
  border-left: 1px solid var(--ember-dim);
  font-size: var(--fs-tiny);
  color: var(--paper-2);
}
.card__spec .muted { display: inline-block; width: 3.5rem; margin-right: .5rem; }

.card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.card__grid .mono { margin-bottom: .75rem; }
.card__grid ul { display: flex; flex-direction: column; gap: .5rem; }
.card__grid li {
  font-size: var(--fs-s);
  color: var(--paper-2);
  padding-left: 1rem;
  position: relative;
  line-height: 1.45;
}
.card__grid li::before {
  content: "";
  position: absolute;
  left: 0; top: .6em;
  width: 6px; height: 1px;
  background: var(--paper-dim);
}

.card__verdict {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.card__verdict p {
  font-family: var(--f-serif);
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--paper);
  max-width: 48ch;
  margin-top: .5rem;
}

.card--sleeper .card__name { font-size: clamp(1.5rem, 2.4vw, 2rem); }

/* kill list */
.killlist {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}
.killlist__items { display: flex; flex-direction: column; gap: 1rem; }
.killlist__item {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.killlist__item em {
  font-size: 1.5rem;
  color: var(--paper-dim);
}

/* ==================================================================
   § 03  CHARACTERS
   ================================================================== */

.cast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(3rem, 5vw, 4rem);
}

.cast__fig { display: flex; flex-direction: column; gap: 1.5rem; }

.cast__frame {
  position: relative;
  background: var(--abyss);
  border: 1px solid var(--rule);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.cast__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.4s var(--ease);
}
.cast__fig:hover .cast__frame img { transform: scale(1.02); }
.cast__frame::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3rem; height: 2px;
  background: var(--ember);
  z-index: 3;
}

.cast__tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  color: var(--ember);
  background: rgba(10,10,12,.75);
  padding: .3rem .5rem;
  border: 1px solid var(--ember-dim);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 3;
}

.cast__meta {
  display: flex;
  align-items: baseline;
  color: var(--paper-dim);
  margin-bottom: .5rem;
}

.cast__name {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin-bottom: .25rem;
}
.cast__role {
  color: var(--ember);
  font-family: var(--f-serif);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.cast__readout {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .75rem 1rem;
  margin-bottom: 1.25rem;
  background: rgba(0,0,0,.35);
  border-left: 1px solid var(--ember-dim);
  font-size: var(--fs-tiny);
}
.r-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: .5rem;
  align-items: baseline;
}

.cast__fig figcaption p {
  color: var(--paper-2);
  max-width: 42ch;
  line-height: 1.55;
}
.cast__fig figcaption strong { color: var(--paper); font-weight: 600; }

.cast__coda {
  font-family: var(--f-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.4;
  color: var(--paper-dim);
  max-width: 56ch;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.cast__fig:nth-child(2) .cast__frame { aspect-ratio: 16 / 9; }
.cast__fig:nth-child(2) .cast__frame img { object-fit: cover; }

/* ==================================================================
   § 04  SIGNAL TEST  (video player)
   ================================================================== */

.signal {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

/* device — minimal vertical phone frame */
.signal__device {
  position: relative;
  background: var(--abyss);
  border: 1px solid var(--rule-2);
  border-radius: 14px;
  padding: 2.25rem 10px 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,90,31,.06),
    0 40px 80px -20px rgba(0,0,0,.75),
    0 10px 30px -10px rgba(255,90,31,.08);
}
.signal__device .corner::before,
.signal__device .corner::after { background: var(--ember); }
.signal__device .corner { opacity: .9; }

.signal__notch {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 .9rem;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(to bottom, rgba(255,90,31,.04), transparent);
}
.signal__notch::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--ember);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--ember);
  animation: led-pulse 2.5s ease-in-out infinite;
}

.signal__screen {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #000;
  overflow: hidden;
  border-radius: 4px;
}
.signal__screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* HUD overlay on video — top strip */
.signal__hud {
  position: absolute;
  top: .6rem; left: .6rem; right: .6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}
.signal__rec {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--ember);
  background: rgba(0,0,0,.55);
  padding: .25rem .5rem;
  border: 1px solid var(--ember-dim);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.signal__rec-dot {
  width: 6px; height: 6px;
  background: var(--ember);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--ember);
  animation: rec-blink 1.2s ease-in-out infinite;
}
@keyframes rec-blink {
  0%,100% { opacity: 1; }
  50%     { opacity: .3; }
}
.signal__hud .muted {
  background: rgba(0,0,0,.55);
  padding: .25rem .5rem;
  border: 1px solid var(--rule-2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--paper-dim);
}

/* bottom caption */
.signal__caption {
  position: absolute;
  left: .6rem; bottom: .6rem;
  color: var(--paper);
  background: rgba(0,0,0,.55);
  padding: .3rem .55rem;
  border: 1px solid var(--rule-2);
  border-left: 1px solid var(--ember);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}

/* sound toggle button */
.signal__sound {
  position: absolute;
  right: .6rem; bottom: .6rem;
  z-index: 3;
  color: var(--paper);
  background: rgba(0,0,0,.65);
  padding: .35rem .65rem;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.signal__sound:hover {
  border-color: var(--ember);
  color: var(--ember);
}
.signal__sound[data-on="true"] {
  border-color: var(--ember);
  color: var(--ember);
}

/* meta panel */
.signal__meta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.signal__meta-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--rule);
}
.signal__data {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem 1.25rem;
  background: rgba(0,0,0,.35);
  border-left: 1px solid var(--ember-dim);
}
.signal__data dt, .signal__data dd { margin: 0; }
.signal__data .r-row { grid-template-columns: 8rem 1fr; }

.signal__note {
  font-family: var(--f-serif);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.4;
  color: var(--paper-2);
  max-width: 42ch;
  padding: .75rem 0;
}
.signal__note em { color: var(--ember); }

.signal__stamp {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.signal__stamp-rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* mobile — stack */
@media (max-width: 860px) {
  .signal { grid-template-columns: 1fr; }
  .signal__device { margin: 0 auto; max-width: 360px; }
  .signal__data .r-row { grid-template-columns: 6.5rem 1fr; }
}

/* ==================================================================
   § 05  MIGRATION
   ================================================================== */

.roadmap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.roadmap::before {
  content: "";
  position: absolute;
  top: 2.75rem;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    var(--rule-2) 6%,
    var(--rule-2) 94%,
    transparent);
}

.roadmap__step {
  padding: 1.5rem 1.25rem 0;
  border-left: 1px dashed var(--rule-2);
  position: relative;
}
.roadmap__step:first-child { border-left: none; padding-left: 0; }
.roadmap__step:last-child  { padding-right: 0; }

.roadmap__step::before {
  content: "";
  position: absolute;
  top: 2.5rem;
  left: 1.25rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 16px var(--ember);
}
.roadmap__step:first-child::before { left: 0; }

.roadmap__step--principle::before {
  background: var(--paper);
  box-shadow: 0 0 16px var(--paper);
}

.roadmap__when {
  color: var(--ember);
  margin-bottom: .15rem;
}
.roadmap__step--principle .roadmap__when { color: var(--paper); }
.roadmap__when-sub {
  margin-bottom: 3rem;
  color: var(--paper-dim);
}
.roadmap__title {
  font-family: var(--f-serif);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.15;
  font-weight: 400;
  color: var(--paper);
  margin-bottom: .75rem;
}
.roadmap__step p {
  font-size: var(--fs-s);
  line-height: 1.55;
  color: var(--paper-2);
  max-width: 26ch;
}

/* ==================================================================
   § 05  PRODUCTION
   ================================================================== */

.pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  gap: .85rem;
  align-items: stretch;
  margin-bottom: clamp(3rem, 5vw, 4rem);
}
.pipeline__step {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  position: relative;
}
.pipeline__num { color: var(--ember); }
.pipeline__step h4 {
  font-family: var(--f-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--paper);
  line-height: 1.1;
}
.pipeline__step p {
  font-size: var(--fs-s);
  color: var(--paper-2);
  line-height: 1.5;
}
.pipeline__arrow {
  color: var(--ember);
  font-size: .85rem;
  align-self: center;
  opacity: .8;
  letter-spacing: .05em;
}

.proof {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.proof p {
  font-family: var(--f-serif);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.45;
  color: var(--paper);
  max-width: 56ch;
}
.proof strong { color: var(--ember); font-weight: 400; }

/* ==================================================================
   § 06  NEXT
   ================================================================== */

.moves {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.moves__item {
  display: grid;
  grid-template-columns: clamp(8rem, 12vw, 11rem) 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.moves__item:last-child { border-bottom: 1px solid var(--rule); }

.moves__num {
  color: var(--ember);
  font-size: var(--fs-s);
  align-self: start;
  padding-top: .4rem;
}
.moves__item h4 {
  font-family: var(--f-serif);
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--paper);
  margin-bottom: .5rem;
}
.moves__item p {
  font-size: var(--fs-m);
  color: var(--paper-2);
  max-width: 52ch;
  line-height: 1.5;
}

.signoff {
  padding-top: 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}
.signoff__rule {
  width: 4rem;
  height: 1px;
  background: var(--ember);
}
.signoff__line {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--paper);
  letter-spacing: -0.01em;
}

/* ==================================================================
   FOOTER
   ================================================================== */

.footer {
  padding: 2.5rem var(--gutter) 4rem;
  border-top: 1px solid var(--rule);
  max-width: var(--w-max);
  margin: 0 auto;
}
.footer__row {
  display: flex;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
  color: var(--paper-dim);
}

/* ==================================================================
   BOTTOM STATUS BAR (fixed)
   ================================================================== */

.statusbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--status-h);
  padding: 0 clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,12,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule);
  z-index: 95;
  pointer-events: none;
}
.statusbar__left, .statusbar__right {
  display: flex; align-items: center; gap: .6rem;
}
.sb__sep { color: var(--paper-mute); margin: 0 .25rem; }
.statusbar .led { margin-right: .25rem; }

/* ==================================================================
   PASSWORD GATE
   ================================================================== */

body.locked { overflow: hidden; }
body.locked .chrome,
body.locked .statusbar,
body.locked .hero,
body.locked .section,
body.locked .footer { visibility: hidden; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  background: var(--ink);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.gate--unlock { opacity: 0; transform: scale(0.98); pointer-events: none; }

.gate__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.92  0 0 0 0 0.86  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
  background-size: 220px 220px;
  mix-blend-mode: overlay;
  opacity: .08;
  pointer-events: none;
}

.gate__box {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--ink-2);
  border: 1px solid var(--rule-2);
  box-shadow:
    0 0 0 1px rgba(255,90,31,.08),
    0 40px 100px -20px rgba(0,0,0,.85),
    0 10px 30px -10px rgba(255,90,31,.15);
}

.gate__chrome {
  height: 2.5rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  border-bottom: 1px solid var(--rule);
  background: rgba(0,0,0,.3);
}
.gate__chrome-r { margin-left: auto; }
.gate__sep { color: var(--paper-mute); opacity: .5; }

.gate__body {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.gate__body .corner::before,
.gate__body .corner::after { background: var(--ember); }

.gate__kicker {
  display: inline-flex;
  align-items: center;
  padding: .4rem .65rem;
  border: 1px solid var(--rule-2);
  color: var(--paper);
  margin-bottom: 1.5rem;
}

.gate__title {
  font-family: var(--f-serif);
  font-size: clamp(2.25rem, 5.5vw, 3rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin-bottom: .5rem;
}

.gate__note {
  color: var(--paper-dim);
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--rule-2);
}

.gate__form {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.gate__input-wrap {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: rgba(0,0,0,.45);
  border: 1px solid var(--rule-2);
  padding: .85rem 1rem;
  transition: border-color .25s var(--ease);
}
.gate__input-wrap:focus-within { border-color: var(--ember); }

.gate__prompt {
  color: var(--ember);
  font-weight: 600;
  user-select: none;
}

.gate__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--paper);
  font-size: 1.05rem;
  letter-spacing: .06em;
  min-width: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}
.gate__input::placeholder { color: var(--paper-mute); }

.gate__submit {
  margin-top: .25rem;
  padding: .85rem 1.1rem;
  background: var(--ember);
  color: var(--ink);
  border: 1px solid var(--ember);
  font-size: var(--fs-tiny);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  transition: background .25s var(--ease), color .25s var(--ease), transform .15s var(--ease);
}
.gate__submit:hover { background: var(--ember-2); }
.gate__submit:active { transform: translateY(1px); }

.gate__msg { min-height: 1.2em; color: var(--paper-dim); margin-top: .25rem; }
.gate__msg--err { color: var(--ember); }

.gate__footer {
  padding: .85rem 1rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(0,0,0,.3);
}

/* ==================================================================
   AEX MARK (co-lead card)
   ================================================================== */

.aex-mark {
  display: inline-block;
  color: var(--ember);
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
}
.card__name-sub {
  font-size: 0.45em;
  color: var(--paper-dim);
  font-family: var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
  vertical-align: middle;
  margin-left: .4em;
}
.card--lead-alt {
  background:
    linear-gradient(225deg, rgba(255,90,31,.08), transparent 45%),
    var(--ink-2);
}

/* ==================================================================
   § 04  AUTONOMOUS AGENTS
   ================================================================== */

.agents {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.agent {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.agent:hover { border-color: var(--rule-2); transform: translateY(-2px); }

.agent__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}

.agent__name {
  font-family: var(--f-serif);
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.agent__role {
  color: var(--ember);
  font-family: var(--f-serif);
  font-size: 1.1rem;
}
.agent p {
  color: var(--paper-2);
  font-size: var(--fs-s);
  line-height: 1.5;
  max-width: 40ch;
}

/* live agent state readout */
.agent-state {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  background: var(--abyss);
  border: 1px solid var(--rule-2);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,90,31,.04), 0 30px 60px -20px rgba(0,0,0,.7);
}
.agent-state__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1rem;
  background: rgba(255,90,31,.04);
  border-bottom: 1px solid var(--rule-2);
  gap: 1rem;
  flex-wrap: wrap;
}
.agent-state__left, .agent-state__right {
  display: flex; align-items: center; gap: .5rem;
}
.agent-state__sep { color: var(--paper-mute); opacity: .5; }

.agent-state__log {
  padding: 1.25rem 1.25rem 1.5rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--paper-2);
  font-size: .75rem;
  margin: 0;
  overflow-x: auto;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,90,31,.05), transparent 60%),
    transparent;
}
.agent-state__log .paper { color: var(--paper); }
.agent-state__log .muted { color: var(--paper-dim); }
.agent-state__log .ember { color: var(--ember); }

.agent-state__foot {
  padding: .75rem 1rem;
  border-top: 1px solid var(--rule-2);
  color: var(--paper-dim);
  background: rgba(0,0,0,.3);
}

.agents__coda {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  max-width: 56ch;
}
.agents__coda-rule {
  width: 4rem; height: 1px;
  background: var(--ember);
}
.agents__coda p {
  font-family: var(--f-serif);
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  line-height: 1.4;
  color: var(--paper);
}

/* -------- DIRECTOR INTERFACE (inside agents section) -------- */
.interface {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.interface__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.interface__title {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin-bottom: 1rem;
  max-width: 18ch;
}
.interface__lede {
  font-family: var(--f-serif);
  color: var(--paper-2);
  font-size: clamp(1.15rem, 1.75vw, 1.45rem);
  line-height: 1.45;
  max-width: 52ch;
  margin-bottom: 2rem;
}
.interface__lede em { color: var(--paper); }

.interface__modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.mode-card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  transition: border-color .4s var(--ease);
}
.mode-card:hover { border-color: var(--rule-2); }

.mode__head {
  display: flex;
  justify-content: space-between;
  padding-bottom: .75rem;
  border-bottom: 1px dashed var(--rule-2);
  margin-bottom: .25rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.mode__name {
  font-family: var(--f-serif);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.mode__flow {
  color: var(--ember);
  padding: .6rem .85rem;
  background: rgba(0,0,0,.35);
  border-left: 1px solid var(--ember-dim);
  letter-spacing: .04em;
  text-transform: none;
  font-size: 10.5px;
}
.mode-card p {
  font-size: var(--fs-s);
  color: var(--paper-2);
  line-height: 1.5;
  max-width: 38ch;
}
.interface__coda {
  font-family: var(--f-serif);
  font-size: clamp(1.1rem, 1.65vw, 1.35rem);
  line-height: 1.45;
  color: var(--paper-2);
  max-width: 56ch;
}
.interface__coda em { color: var(--paper); }

/* ==================================================================
   § 07  SYSTEM — team + aesthetic range + sub-head
   ================================================================== */

.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 2vw, 1.75rem);
  margin-bottom: 2rem;
}
.team__card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.team__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: .75rem;
  border-bottom: 1px dashed var(--rule-2);
  margin-bottom: .5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.team__name {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.team__role {
  color: var(--ember);
  font-family: var(--f-serif);
  font-size: 1.2rem;
  margin-bottom: .75rem;
}
.team__list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem 1.25rem;
  background: rgba(0,0,0,.35);
  border-left: 1px solid var(--ember-dim);
  list-style: none;
  margin-bottom: .5rem;
}
.team__list li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: .75rem;
  align-items: baseline;
  color: var(--paper-2);
  font-size: var(--fs-tiny);
}
.team__note {
  color: var(--paper-2);
  font-size: var(--fs-s);
  line-height: 1.5;
  max-width: 42ch;
  padding-top: .5rem;
}
.team__coda {
  font-family: var(--f-serif);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.45;
  color: var(--paper-2);
  max-width: 56ch;
  padding: 1.5rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.team__coda em { color: var(--paper); }

/* aesthetic range */
.aesthetic {
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.aesthetic__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.aesthetic__axis {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  padding: 1.25rem 0;
}
.aesthetic__pole {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  max-width: 28ch;
}
.aesthetic__pole--r { text-align: right; justify-self: end; }
.aesthetic__pole h4 {
  font-family: var(--f-serif);
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.aesthetic__pole p {
  color: var(--paper-2);
  font-size: var(--fs-s);
  line-height: 1.45;
}

.aesthetic__bar {
  position: relative;
  min-width: clamp(9rem, 25vw, 18rem);
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  border-top: 1px dashed var(--rule-2);
  border-bottom: 1px dashed var(--rule-2);
}
.aesthetic__bar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: var(--ember);
  opacity: .35;
  transform: translateY(-50%);
}
.aesthetic__tick {
  position: relative;
  width: 1px;
  height: 10px;
  background: var(--paper-dim);
  flex-shrink: 0;
}
.aesthetic__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ember);
  font-size: 1rem;
  background: var(--ink);
  padding: 0 .25rem;
}
.aesthetic__arrow--l { left: -.5rem; }
.aesthetic__arrow--r { right: -.5rem; }
.aesthetic__label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: .5rem;
  white-space: nowrap;
  color: var(--paper-dim);
}

.aesthetic__note {
  font-family: var(--f-serif);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.45;
  color: var(--paper-2);
  max-width: 56ch;
  padding-top: 1.75rem;
}
.aesthetic__note em { color: var(--paper); }

.sub-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: .75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==================================================================
   § 08  SURFACES
   ================================================================== */

.surfaces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}
.surface {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.surface:hover { border-color: var(--rule-2); transform: translateY(-2px); }

.surface__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: .75rem;
  border-bottom: 1px dashed var(--rule-2);
  margin-bottom: .25rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.surface__name {
  font-family: var(--f-serif);
  font-size: clamp(1.85rem, 2.8vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.surface__role {
  color: var(--ember);
  font-family: var(--f-serif);
  font-size: 1.15rem;
}
.surface__list {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: .85rem 1.1rem;
  background: rgba(0,0,0,.35);
  border-left: 1px solid var(--ember-dim);
  list-style: none;
  margin-bottom: .25rem;
}
.surface__list li {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: .5rem;
  align-items: baseline;
  color: var(--paper-2);
  font-size: var(--fs-tiny);
}
.surface p {
  font-size: var(--fs-s);
  color: var(--paper-2);
  line-height: 1.5;
  max-width: 40ch;
}

.surfaces__coda {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 0 .5rem;
  border-top: 1px solid var(--rule);
}
.surfaces__coda-rule {
  width: 4rem; height: 1px;
  background: var(--ember);
}
.surfaces__coda p {
  font-family: var(--f-serif);
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  line-height: 1.4;
  color: var(--paper);
}

/* ==================================================================
   RESPONSIVE
   ================================================================== */

@media (max-width: 1200px) {
  .pipeline { grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
  .pipeline__arrow { display: none; }
}
@media (max-width: 1100px) {
  .agents { grid-template-columns: 1fr 1fr; }
  .surfaces { grid-template-columns: 1fr 1fr; }
  .surfaces > .surface:last-child { grid-column: span 2; }
  .agents > .agent:last-child { grid-column: span 2; }
}

@media (max-width: 960px) {
  :root {
    --gutter: clamp(1rem, 4vw, 1.5rem);
  }

  .columns { grid-template-columns: 1fr; gap: 2rem; }
  .thesis  { grid-template-columns: 1fr; gap: 1rem; }
  .proof   { grid-template-columns: 1fr; gap: 1rem; }
  .killlist{ grid-template-columns: 1fr; gap: 1rem; }

  .cards   { grid-template-columns: 1fr; }
  .card, .card--lead, .card--sleeper { grid-column: span 1; }
  .card__grid { grid-template-columns: 1fr; gap: 1.25rem; }

  .cast    { grid-template-columns: 1fr; }
  .cast__fig:nth-child(2) .cast__frame { aspect-ratio: 16 / 9; }

  .roadmap { grid-template-columns: 1fr; gap: 0; }
  .roadmap::before { display: none; }
  .roadmap__step {
    border-left: 1px dashed var(--rule-2);
    border-top: none;
    padding: 1.5rem 0 1.5rem 2rem;
  }
  .roadmap__step:first-child { border-left: 1px dashed var(--rule-2); padding-left: 2rem; }
  .roadmap__step::before { top: 1.8rem; left: -5px; }
  .roadmap__step:first-child::before { left: -5px; }
  .roadmap__when { margin-bottom: .15rem; }
  .roadmap__when-sub { margin-bottom: .75rem; }

  .pipeline { grid-template-columns: 1fr; }

  .team { grid-template-columns: 1fr; }
  .agents { grid-template-columns: 1fr; }
  .agents > .agent:last-child { grid-column: span 1; }
  .surfaces { grid-template-columns: 1fr; }
  .surfaces > .surface:last-child { grid-column: span 1; }
  .interface__modes { grid-template-columns: 1fr; }

  /* aesthetic range stacks vertically */
  .aesthetic__axis {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: .5rem 0;
  }
  .aesthetic__pole { max-width: none; }
  .aesthetic__pole--r { text-align: left; justify-self: start; }
  .aesthetic__bar {
    width: 100%;
    height: 2.5rem;
    min-width: 0;
    order: 2;
  }
  .aesthetic__label { top: calc(100% + .1rem); }

  .hud { position: static; text-align: left; margin-bottom: 1rem; flex-direction: row; gap: 1rem; }
  .hud--tl, .hud--tr { top: auto; left: auto; right: auto; }
  .hero__stage { padding-top: 3.5rem; }
  .hero__title { font-size: clamp(3rem, 15vw, 6rem); line-height: .92; }
  .hero__line:nth-child(2) { padding-left: 1rem; }
  .hero__tag, .hero__rule, .hero__readout { padding-left: 1rem; }

  .cross { display: none; }
}

@media (max-width: 720px) {
  .section { padding: clamp(3.5rem, 10vw, 5rem) var(--gutter); }
  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }
  .section__head-r { font-size: 10px; }

  .hero { padding: 5.5rem var(--gutter) 4rem; }
  .hero__kicker { padding: .4rem .6rem; margin-bottom: 1.75rem; }
  .hero__title { font-size: clamp(2.75rem, 18vw, 5rem); letter-spacing: -.02em; }
  .hero__line:nth-child(2) { padding-left: .5rem; }
  .hero__mark {
    display: block;
    margin-left: 0;
    margin-top: .4em;
    transform: none;
    font-size: .22em;
  }
  .hero__tag { font-size: clamp(1.25rem, 5vw, 1.75rem); padding-left: .5rem; }
  .hero__rule { margin-left: .5rem; }
  .hero__readout { padding-left: .5rem; gap: .25rem; }
  .readout__row { grid-template-columns: 6.5rem 1fr; padding: .25rem 0; }

  .display { font-size: clamp(2.2rem, 8.5vw, 3.5rem); max-width: 16ch; }
  .lede    { font-size: clamp(1.1rem, 4vw, 1.4rem); }

  .card__name { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .card--lead { padding: clamp(1.25rem, 4vw, 1.75rem); }
  .card__spec { padding: .6rem .85rem; }
  .card__spec div { font-size: 10px; }

  .cast__frame { aspect-ratio: 4 / 5; }
  .cast__fig:nth-child(2) .cast__frame { aspect-ratio: 4 / 5; }
  .cast__readout { padding: .6rem .85rem; }
  .r-row { grid-template-columns: 5.5rem 1fr; }

  /* signal — phone frame adapts */
  .signal__device { max-width: 320px; margin: 0 auto; padding: 2rem 8px 10px; }
  .signal__notch { height: 1.75rem; padding: 0 .6rem; }
  .signal__hud { top: .4rem; left: .4rem; right: .4rem; }
  .signal__rec, .signal__hud .muted { padding: .15rem .35rem; font-size: 9px; }
  .signal__sound { right: .4rem; bottom: .4rem; padding: .25rem .45rem; font-size: 9px; }
  .signal__caption { left: .4rem; bottom: .4rem; padding: .2rem .4rem; font-size: 9px; }
  .signal__data { padding: .85rem 1rem; }
  .signal__data .r-row { grid-template-columns: 5.5rem 1fr; }

  /* agents section */
  .agent { padding: 1.25rem; }
  .agent__name { font-size: clamp(1.5rem, 6vw, 2rem); }
  .agent-state__log { padding: .85rem .85rem 1rem; font-size: .7rem; line-height: 1.7; }
  .agent-state__head { padding: .6rem .85rem; font-size: 10px; }
  .agent-state__foot { padding: .6rem .85rem; }

  /* team section */
  .team__card { padding: 1.25rem; }
  .team__name { font-size: clamp(1.6rem, 6vw, 2.25rem); }
  .team__list { padding: .85rem 1rem; }
  .team__list li { grid-template-columns: 9rem 1fr; gap: .4rem; }

  /* aesthetic */
  .aesthetic__pole h4 { font-size: clamp(1.4rem, 5vw, 2rem); }

  /* surfaces */
  .surface { padding: 1.25rem; }
  .surface__name { font-size: clamp(1.5rem, 6vw, 2.1rem); }
  .surface__list { padding: .7rem .85rem; }
  .surface__list li { grid-template-columns: 5rem 1fr; }

  /* pipeline */
  .pipeline__step { padding: 1rem; }
  .pipeline__step h4 { font-size: 1.15rem; }

  /* migration phases */
  .roadmap__title { font-size: clamp(1.1rem, 4vw, 1.35rem); }
  .roadmap__step p { max-width: none; }

  /* next moves */
  .moves__item { grid-template-columns: 1fr; gap: .5rem; padding: 1.25rem 0; }
  .moves__item h4 { font-size: clamp(1.4rem, 6vw, 1.9rem); }

  .signoff__line { font-size: clamp(1.5rem, 6vw, 2.25rem); }

  /* killlist items stack */
  .killlist__item { flex-direction: column; align-items: flex-start; gap: .2rem; }

  /* gate */
  .gate { padding: 1rem; }
  .gate__chrome { font-size: 9px; height: 2.1rem; padding: 0 .65rem; }
  .gate__body { padding: 1.5rem 1.25rem; }
  .gate__title { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .gate__input { font-size: 1rem; }
  .gate__footer { padding: .65rem .85rem; font-size: 9px; }

  /* thesis */
  .thesis__text { font-size: clamp(1.2rem, 4.5vw, 1.6rem); }
  .proof p { font-size: clamp(1.05rem, 4vw, 1.25rem); }

  /* chrome */
  .chrome { padding: 0 .75rem; }
  .chrome__left, .chrome__right { gap: .35rem; font-size: 9.5px; }
  .chrome__sep { display: none; }
  /* trim chrome items */
  .chrome__right .mono.tiny:nth-of-type(2) { display: none; } /* v.2.0 */

  /* statusbar */
  .statusbar { font-size: 9.5px; padding: 0 .75rem; height: 2rem; }
  .statusbar__left .mono.tiny:nth-of-type(3) { display: none; } /* section indicator */
  .statusbar .sb__sep { margin: 0 .15rem; }

  /* footer */
  .footer__row { gap: .35rem; font-size: 9.5px; justify-content: flex-start; }
  .footer { padding: 2rem var(--gutter) 3rem; }
}

@media (max-width: 420px) {
  :root { --status-h: 1.85rem; --chrome-h: 2.4rem; }
  .chrome__left .mono.tiny:nth-of-type(3) { display: none; } /* [ACTIVE] */
  .chrome__right .mono.tiny:nth-of-type(1) { display: none; } /* PID */
  .hero__kicker { font-size: 9px; }
  .display { font-size: clamp(2rem, 9vw, 3rem); }
  .readout__row { grid-template-columns: 5.5rem 1fr; font-size: 9.5px; }
  .r-row { grid-template-columns: 4.5rem 1fr; font-size: 10px; }
  .team__list li { grid-template-columns: 7.5rem 1fr; }
  .killlist__label { flex-direction: row; justify-content: space-between; }
  .card__name, .cast__name, .agent__name, .team__name, .surface__name { letter-spacing: -.015em; }
  .card__grid li { font-size: 12.5px; }
  .gate__submit { padding: .75rem 1rem; font-size: 10px; }
  .agent-state__log { font-size: 10px; }
}
