/* ==========================================================================
   GROWTH GROUPS — Underground operations console
   Aesthetic: dark, kinetic, terminal HUD; acid-lime accent; tickers, scramble,
   counter-up, pulse, drift, underline-draw. NOT chaos — disciplined motion.
   ========================================================================== */

:root {
  --bg: #0a0907;
  --bg-deep: #060503;
  --panel: #15120e;
  --panel-elev: #1c1812;
  --ink: #f4ece0;
  --ink-soft: #d8cdb8;
  --muted: #7a7060;
  --rule: rgba(244, 236, 224, 0.10);
  --rule-strong: rgba(244, 236, 224, 0.28);
  --accent: #d6ff3d;
  --accent-deep: #b9e520;
  --alt: #ff5e3a;
  --ok: #d6ff3d;
  --err: #ff5e3a;

  --display: "Bricolage Grotesque", "Helvetica Neue", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --italic: "Fraunces", "Times New Roman", serif;

  --grid: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "ss02", "kern", "liga", "calt", "tnum";
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* CRT scanline + grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(244, 236, 224, 0.018) 0 1px,
      transparent 1px 3px
    ),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.93 0 0 0 0 0.88 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/></svg>");
  pointer-events: none; z-index: 1;
  opacity: 0.55;
}
body::after {
  content: ""; position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(214, 255, 61, 0.06), transparent 60%),
    radial-gradient(ellipse 100% 100% at 50% 100%, rgba(255, 94, 58, 0.04), transparent 60%);
  pointer-events: none; z-index: 1;
}
main, header, footer, nav, section { position: relative; z-index: 2; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--bg); }

img, svg { max-width: 100%; display: block; }

/* ===========================================================
   SHELL
   =========================================================== */
.shell { max-width: var(--grid); margin: 0 auto; padding: 0 32px; }
.shell-tight { max-width: 980px; margin: 0 auto; padding: 0 32px; }

/* ===========================================================
   TOP HUD BAR — Terminal status, system time, country ticker
   =========================================================== */
.hud {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 9, 7, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hud-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 9px 32px;
  max-width: var(--grid);
  margin: 0 auto;
}
.hud-mark {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wght" 800, "wdth" 80;
  font-size: 14px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hud-mark .accent { color: var(--accent); }

.hud-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(214, 255, 61, 0.6);
  animation: pulse 1.4s cubic-bezier(.4,0,.2,1) infinite;
}
.dot.alt { background: var(--alt); box-shadow: 0 0 0 0 rgba(255, 94, 58, 0.6); animation-name: pulse-alt; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(214, 255, 61, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(214, 255, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 255, 61, 0); }
}
@keyframes pulse-alt {
  0%   { box-shadow: 0 0 0 0 rgba(255, 94, 58, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 94, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 94, 58, 0); }
}

.hud-tickers {
  display: flex;
  gap: 22px;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
          mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  align-items: center;
}
.hud-tickers .lane {
  display: inline-flex;
  gap: 22px;
  animation: marquee 35s linear infinite;
}
.hud-tickers .lane span { display: inline-flex; align-items: center; gap: 6px; }
.hud-tickers .lane .em { color: var(--accent); }

.hud-clock { color: var(--ink); font-variant-numeric: tabular-nums; }
.hud-clock .blink { color: var(--accent); animation: blink 1.05s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0; } }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===========================================================
   GLOBAL NAV (below HUD)
   =========================================================== */
.nav {
  border-bottom: 1px solid var(--rule);
}
.nav-row {
  max-width: var(--grid); margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.nav-mark {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wght" 800, "wdth" 80;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 8px;
}
.nav-mark .slash { color: var(--accent); font-style: italic; transform: skew(-8deg); display: inline-block; }
.nav-links {
  display: flex; gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  padding: 6px 2px;
  color: var(--ink-soft);
  transition: color 200ms ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--accent); }

.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg);
  padding: 10px 16px;
  border: 1px solid var(--accent);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease;
}
.nav-cta:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--alt); }

/* ===========================================================
   BIG MARQUEE
   =========================================================== */
.bigmarquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-deep);
  overflow: hidden;
  position: relative;
}
.bigmarquee .lane {
  display: inline-flex;
  gap: 56px;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wght" 800, "wdth" 80;
  font-size: clamp(36px, 5.6vw, 84px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  padding: 14px 0;
  animation: marquee 32s linear infinite;
  color: var(--ink);
}
.bigmarquee .lane .accent { color: var(--accent); }
.bigmarquee .lane .alt { color: var(--alt); font-style: italic; }
.bigmarquee .lane .ghost {
  color: transparent;
  -webkit-text-stroke: 1px var(--rule-strong);
}

.bigmarquee.reverse .lane { animation-direction: reverse; animation-duration: 38s; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: end;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wght" 800, "wdth" 75;
  font-size: clamp(72px, 13.5vw, 220px);
  line-height: 0.82;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.hero h1 .line { display: block; }
.hero h1 .em { color: var(--accent); }
.hero h1 .it {
  font-family: var(--italic);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 500;
  color: var(--alt);
  font-size: 0.88em;
  letter-spacing: -0.025em;
}

.hero-deck {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 38ch;
  font-variation-settings: "wght" 450, "wdth" 90;
}
.hero-deck .em { color: var(--accent); font-weight: 600; }

.hero-meta {
  margin-top: 24px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta b { color: var(--ink); font-weight: 500; }

/* Big counters strip */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--rule);
}
.metric {
  padding: 28px 28px 32px;
  border-right: 1px solid var(--rule);
  position: relative;
}
.metric:last-child { border-right: 0; }
.metric .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 14px;
}
.metric .num {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wght" 800, "wdth" 70;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.metric .num.accent { color: var(--accent); }
.metric .num.alt { color: var(--alt); }
.metric .sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ===========================================================
   FLOATING STICKERS (sticker pack drifters)
   =========================================================== */
.stickers {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
}
.sticker {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--panel-elev);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  padding: 6px 10px;
  white-space: nowrap;
  animation: drift 9s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.sticker.accent { background: var(--accent); color: var(--bg); border-color: var(--accent); transform: rotate(-4deg); }
.sticker.alt { background: var(--alt); color: var(--ink); border-color: var(--alt); transform: rotate(3deg); }
.sticker.ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.sticker.large { font-size: 14px; padding: 10px 14px; font-weight: 700; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(var(--r, 0deg)); }
  50%      { transform: translate(0, -10px) rotate(calc(var(--r, 0deg) + 1.5deg)); }
}

/* ===========================================================
   SECTIONS / HEADINGS
   =========================================================== */
section.bay {
  padding: 84px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.bay-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
}
.bay-tag::before { content: ""; width: 32px; height: 1px; background: var(--accent); }
.bay-tag .num { color: var(--ink-soft); margin-left: auto; font-size: 11px; }

.bay-h {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wght" 700, "wdth" 80;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 22px;
  max-width: 16ch;
}
.bay-h .em { color: var(--accent); }
.bay-h .it { font-family: var(--italic); font-style: italic; color: var(--alt); font-weight: 500; }

.bay-deck {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 60ch;
  font-variation-settings: "wght" 450, "wdth" 90;
}

/* ===========================================================
   TERMINAL LOG (manifesto / receipts)
   =========================================================== */
.terminal {
  background: var(--panel);
  border: 1px solid var(--rule-strong);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.terminal-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--panel-elev);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.terminal-bar .lights { display: flex; gap: 6px; }
.terminal-bar .lights span {
  width: 10px; height: 10px; border-radius: 50%; background: var(--muted);
}
.terminal-bar .lights span:nth-child(1) { background: var(--alt); }
.terminal-bar .lights span:nth-child(2) { background: #d6c93d; }
.terminal-bar .lights span:nth-child(3) { background: var(--accent); }

.terminal-body {
  padding: 32px 36px 40px;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.terminal-body p { margin-bottom: 1em; position: relative; padding-left: 88px; }
.terminal-body p::before {
  content: "[" attr(data-time) "]";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.terminal-body p strong { color: var(--ink); font-weight: 600; }
.terminal-body p em { color: var(--accent); font-style: normal; }
.terminal-body p .alt { color: var(--alt); }
.terminal-body p a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.terminal-cursor {
  display: inline-block; width: 9px; height: 17px;
  background: var(--accent); vertical-align: text-bottom;
  animation: blink 1s steps(2, jump-none) infinite;
  margin-left: 4px;
}

/* ===========================================================
   THREE-COLUMN BROADSHEET (with pullquote)
   =========================================================== */
.broadsheet {
  display: grid;
  grid-template-columns: 2fr 2fr 1.4fr;
  gap: 48px;
  margin-top: 24px;
}
.broadsheet .col {
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-soft);
  font-variation-settings: "wght" 420;
}
.broadsheet .col p { margin-bottom: 1em; }
.broadsheet .col p strong { color: var(--ink); font-weight: 600; }
.broadsheet .col.pull {
  font-family: var(--italic);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding-left: 22px;
  align-self: start;
}
.broadsheet .col.pull .by {
  display: block;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===========================================================
   PETITION / ENROLL FORM
   =========================================================== */
.enroll {
  background:
    linear-gradient(180deg, rgba(214, 255, 61, 0.04), transparent 70%),
    var(--panel);
  border: 1px solid var(--rule-strong);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.enroll::before, .enroll::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--accent);
}
.enroll::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.enroll::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.enroll-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 28px;
  border-bottom: 1px solid var(--rule);
  background: var(--panel-elev);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.enroll-head .right { color: var(--ink-soft); }

.enroll-body { padding: 56px clamp(24px, 4vw, 64px) 56px; }

.enroll h2 {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wght" 800, "wdth" 80;
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-bottom: 22px;
  max-width: 16ch;
}
.enroll h2 .em { color: var(--accent); }
.enroll h2 .it { font-family: var(--italic); font-style: italic; color: var(--alt); font-weight: 500; }

.enroll .deck {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 64ch;
  margin-bottom: 36px;
  font-variation-settings: "wght" 450";
}

form.petition {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-name { grid-column: span 4; }
.field-email { grid-column: span 5; }
.field-submit { grid-column: span 3; align-items: stretch; }
.field-message { grid-column: 1 / -1; }

.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; gap: 6px; align-items: center;
}
.field label .req { color: var(--accent); }

.field input, .field textarea {
  font-family: var(--display);
  font-size: 18px;
  background: rgba(244, 236, 224, 0.04);
  border: 1px solid var(--rule);
  padding: 12px 14px;
  color: var(--ink);
  outline: none;
  border-radius: 0;
  transition: border-color 200ms ease, background 200ms ease;
}
.field textarea {
  font-size: 16px;
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  background: rgba(214, 255, 61, 0.04);
}
.field input::placeholder, .field textarea::placeholder {
  color: var(--muted);
}

button.send {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 700;
  align-self: end;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
button.send:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--alt); }
button.send:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--alt); }
button.send:disabled { opacity: 0.55; cursor: progress; }

.enroll-foot {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.status {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: none;
}
.status.show { display: block; }
.status.ok  { color: var(--accent); border-color: var(--accent); background: rgba(214, 255, 61, 0.06); }
.status.err { color: var(--alt); border-color: var(--alt); background: rgba(255, 94, 58, 0.06); }

/* ===========================================================
   ALSO IN THIS ISSUE — index cards
   =========================================================== */
.contents {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.contents a {
  display: block;
  padding: 28px 28px 56px;
  border-right: 1px solid var(--rule);
  position: relative;
  transition: background 200ms ease, color 200ms ease;
}
.contents a:last-child { border-right: 0; }
.contents a:hover { background: var(--panel); }
.contents .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}
.contents h3 {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wght" 700, "wdth" 78;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.contents h3 .em { color: var(--accent); }
.contents h3 .it { font-family: var(--italic); font-style: italic; color: var(--alt); font-weight: 500; }
.contents .deck {
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-variation-settings: "wght" 420;
}
.contents .read {
  position: absolute;
  bottom: 18px; right: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 200ms ease, transform 220ms ease;
}
.contents a:hover .read { color: var(--accent); transform: translateX(4px); }

/* ===========================================================
   STAGES TABLE
   =========================================================== */
.stages {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-family: var(--display);
  font-size: 17px;
}
.stages th, .stages td {
  text-align: left;
  padding: 18px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.stages th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule-strong);
  background: var(--panel);
}
.stages td:first-child {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wght" 800, "wdth" 70;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--accent);
  white-space: nowrap;
  width: 80px;
}
.pill {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.pill.open { color: var(--accent); }
.pill.next { color: var(--alt); }
.pill.queued { color: var(--muted); }

/* ===========================================================
   ROSTER (members)
   =========================================================== */
.roster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-strong);
}
.roster-card {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 26px 22px 30px;
  position: relative;
  background: var(--panel);
  transition: background 220ms ease;
}
.roster-card:nth-child(4n) { border-right: 0; }
.roster-card:hover { background: var(--panel-elev); }

.roster-card .ix {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}

.roster-card .mono {
  width: 76px; height: 76px;
  margin: 14px 0 16px;
  background: var(--bg-deep);
  border: 1px solid var(--rule-strong);
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wght" 800, "wdth" 80;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.roster-card .mono::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(214, 255, 61, 0.08), transparent 50%);
}
.roster-card.veiled .mono { color: var(--muted); }
.roster-card.veiled .mono::after {
  content: "?";
  position: absolute;
  font-size: 32px;
}
.roster-card.veiled .mono { color: transparent; }
.roster-card.veiled .mono::after { color: var(--muted); }

.roster-card.seated .mono { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.roster-card.seated .mono::before { background: none; }

.roster-card h5 {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wght" 700, "wdth" 80;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}
.roster-card.veiled h5 { letter-spacing: 0.4em; color: var(--muted); }

.roster-card .role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 6px;
  margin-bottom: 14px;
}
.roster-card .quote {
  font-family: var(--display);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  font-variation-settings: "wght" 420;
}
.roster-card .stamp {
  position: absolute;
  bottom: 14px; right: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 6px;
}

/* ===========================================================
   FAQ (apply page)
   =========================================================== */
.faq {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 36px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.faq:last-of-type { border-bottom: 0; }
.faq h4 {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wght" 700, "wdth" 80;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.faq h4 .em { color: var(--accent); font-style: italic; }
.faq p {
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  font-variation-settings: "wght" 420;
}

/* ===========================================================
   FOOTER
   =========================================================== */
footer.footer {
  border-top: 1px solid var(--rule);
  margin-top: 80px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 64px 0 36px;
}
.footer-mark {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wght" 800, "wdth" 75;
  font-size: 56px;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.footer-mark .em { color: var(--accent); }
.footer-tag {
  font-family: var(--display);
  color: var(--ink-soft);
  margin-top: 10px;
  font-size: 14px;
  font-variation-settings: "wght" 420;
}
.footer-col h6 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--ink-soft);
  font-family: var(--display);
  font-variation-settings: "wght" 420;
  transition: color 200ms ease, transform 200ms ease;
}
.footer-col a:hover { color: var(--accent); transform: translateX(3px); }

.footer-bot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  border-top: 1px solid var(--rule);
  padding: 18px 0 28px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===========================================================
   THANKS PAGE
   =========================================================== */
.thanks {
  display: grid; place-items: center;
  min-height: 70vh;
  padding: 80px 0;
  text-align: center;
  position: relative;
}
.thanks h1 {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wght" 800, "wdth" 75;
  font-size: clamp(60px, 11vw, 180px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.thanks h1 .em { color: var(--accent); }
.thanks h1 .it { font-family: var(--italic); font-style: italic; color: var(--alt); font-weight: 500; }
.thanks p {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 auto 28px;
}
.thanks .receipts {
  display: inline-flex; flex-wrap: wrap; gap: 8px;
  margin-top: 18px;
  justify-content: center;
}
.thanks .stk {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--rule-strong);
  padding: 6px 10px;
  color: var(--ink);
  background: var(--panel);
}
.thanks .stk.accent { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.thanks .stk.alt { background: var(--alt); color: var(--ink); border-color: var(--alt); }
.thanks .back-cta {
  display: inline-block;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  padding: 14px 22px;
  color: var(--accent);
  transition: background 200ms ease, color 200ms ease;
}
.thanks .back-cta:hover { background: var(--accent); color: var(--bg); }

/* ===========================================================
   SCRAMBLE TEXT helpers (initial obscured state)
   =========================================================== */
[data-scramble] { display: inline-block; }

/* Reveal (fade + Y) */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .broadsheet { grid-template-columns: 1fr; gap: 24px; }
  .contents { grid-template-columns: 1fr; }
  .contents a { border-right: 0; border-bottom: 1px solid var(--rule); }
  .roster { grid-template-columns: repeat(2, 1fr); }
  .roster-card:nth-child(4n) { border-right: 1px solid var(--rule); }
  .roster-card:nth-child(2n) { border-right: 0; }
  form.petition { grid-template-columns: 1fr; }
  .field-name, .field-email, .field-submit { grid-column: 1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-mark { grid-column: 1 / -1; }
  .faq { grid-template-columns: 1fr; gap: 12px; }
  .nav-cta { display: none; }
  .nav-row { padding: 14px 24px; }
  .hud-row { grid-template-columns: auto 1fr; padding: 8px 24px; }
  .hud-tickers { display: none; }
  .terminal-body p { padding-left: 0; }
  .terminal-body p::before { display: block; position: relative; margin-bottom: 4px; }
}

@media (max-width: 560px) {
  .roster { grid-template-columns: 1fr; }
  .roster-card { border-right: 0 !important; }
  .footer-top { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; }
  .nav-mark { font-size: 18px; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--rule); }
  .metric:last-child { border-bottom: 0; }
  .bigmarquee .lane { font-size: clamp(32px, 11vw, 72px); }
}

/* ===========================================================
   REDUCED MOTION
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
