/* ============================================================
   DREAMTEAM — landing page styles
   Aesthetic: 1992 Olympic sports almanac × developer documentation
   ============================================================ */

:root {
  --paper:       #f1e8d1;
  --paper-deep:  #e6dabb;
  --paper-edge:  #d8c99e;
  --ink:         #0c1016;
  --ink-soft:    #2a2f38;
  --navy:        #0f2447;
  --navy-deep:   #081730;
  --red:         #c0322a;
  --red-deep:    #8b1f18;
  --gold:        #b88427;
  --rule:        rgba(12, 16, 22, 0.22);
  --rule-soft:   rgba(12, 16, 22, 0.12);
  --shadow:      0 1px 0 rgba(12,16,22,0.08), 0 14px 40px -24px rgba(12,16,22,0.35);

  --ff-display:  "Big Shoulders Display", "Impact", sans-serif;
  --ff-serif:    "Fraunces", Georgia, serif;
  --ff-mono:     "JetBrains Mono", ui-monospace, Menlo, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- body / paper ---------- */
html { background: var(--paper); }
body {
  font-family: var(--ff-serif);
  font-weight: 400;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(192,50,42,0.05), transparent 55%),
    radial-gradient(ellipse at 90% 20%, rgba(15,36,71,0.06), transparent 60%),
    var(--paper);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* halftone dots + grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(rgba(12,16,22,0.09) 1px, transparent 1px),
    radial-gradient(rgba(12,16,22,0.05) 1px, transparent 1px);
  background-size: 28px 28px, 9px 9px;
  background-position: 0 0, 14px 14px;
  mix-blend-mode: multiply;
  opacity: 0.55;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05  0 0 0 0 0.05  0 0 0 0 0.05  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.35;
}
main, header, footer { position: relative; z-index: 1; }

/* ---------- shell ---------- */
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- running head ---------- */
.running-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  border-bottom: 3px double var(--ink);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.running-head .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 16px 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.running-head .brand {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.running-head .brand sup {
  color: var(--red);
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  margin-left: 4px;
  vertical-align: top;
  top: 2px;
  position: relative;
}
.running-head nav {
  display: flex;
  gap: 28px;
  color: var(--ink-soft);
}
.running-head nav a {
  position: relative;
  padding-bottom: 2px;
}
.running-head nav a:hover { color: var(--red); }
.running-head .folio {
  color: var(--ink-soft);
}

/* ---------- GH star button ---------- */
.star-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 var(--red);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.star-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--red);
}
.star-btn svg { fill: currentColor; }
.star-btn .count {
  padding-left: 10px;
  border-left: 1px solid rgba(241,232,209,0.25);
  color: var(--paper);
  font-weight: 700;
}

/* ---------- hero ---------- */
.hero {
  padding: 80px 0 120px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  column-gap: 80px;
}
.hero-meta,
.hero h1,
.hero-lede,
.hero-cta {
  grid-column: 1;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 40px;
}
.hero-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
.hero-meta .rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
  min-width: 40px;
}

.hero h1 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(72px, 12vw, 200px);
  line-height: 0.82;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--ink);
  text-transform: uppercase;
}
.hero h1 .line {
  display: block;
}
.hero h1 .line-2 {
  color: var(--red);
  font-style: italic;
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 0.38em;
  letter-spacing: 0.02em;
  text-transform: none;
  padding-left: 0.5em;
  margin-top: 0.2em;
  position: relative;
}
.hero h1 .line-2::before {
  content: "";
  display: inline-block;
  width: 80px;
  height: 2px;
  background: var(--red);
  vertical-align: middle;
  margin-right: 20px;
  margin-bottom: 0.1em;
}

.hero-lede {
  max-width: 680px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  margin: 36px 0 0;
  color: var(--ink-soft);
}
.hero-lede p { margin: 0; }
.hero-lede p + p { margin-top: 18px; }
.hero-lede em {
  color: var(--red);
  font-style: italic;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
}

.hero-assurance {
  margin: 28px 0 0;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper-deep);
  border: 1px solid var(--ink);
  border-left: 4px solid var(--red);
  max-width: 100%;
}
.hero-assurance .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(192,50,42,0.6);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.install {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ff-mono);
  font-size: 14px;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 14px 14px 20px;
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 var(--red);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.install:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--red);
}
.install .prompt-sigil {
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.install code {
  font-size: 13.5px;
  padding: 0;
  color: var(--paper);
}
.install .copy {
  padding: 7px 12px;
  margin-left: 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  border: 1px solid rgba(241,232,209,0.28);
  background: transparent;
  font-weight: 700;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.install .copy:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.install .copy.copied {
  color: var(--gold);
  border-color: var(--gold);
}

.hero-stats {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: start;
  margin-top: 8px;
  display: grid;
  gap: 22px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
  color: var(--ink-soft);
}
.hero-stats .stat {
  border-top: 1px solid var(--ink);
  padding-top: 8px;
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 46px;
  color: var(--ink);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 4px;
}
.hero-stats .stat span {
  color: var(--red);
}

/* established seal */
.seal {
  grid-column: 2;
  grid-row: 3 / 4;
  justify-self: end;
  align-self: start;
  width: 170px;
  height: 170px;
  transform: rotate(-8deg);
  opacity: 0.92;
  margin-top: 0;
}
.seal svg { width: 100%; height: 100%; }

/* ---------- section header ---------- */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--ink);
  position: relative;
}
.section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  transform: translateY(-4px);
}
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 32px;
  margin-bottom: 64px;
}
.section-number {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}
.section-title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
}
.section-kicker {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 260px;
  line-height: 1.4;
  text-align: right;
}

/* ---------- roster ---------- */
.roster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
}
.player {
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 32px 28px 28px;
  position: relative;
  background: var(--paper);
  transition: background 180ms ease;
  min-height: 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.player::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms cubic-bezier(.4,.0,.2,1);
}
.player:hover::before { transform: scaleX(1); }
.player:hover { background: var(--paper-deep); }

.player .jersey {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 120px;
  line-height: 0.85;
  color: var(--ink);
  opacity: 0.12;
  letter-spacing: -0.04em;
  pointer-events: none;
  transition: color 280ms ease, opacity 280ms ease;
}
.player:hover .jersey {
  color: var(--red);
  opacity: 0.28;
}

.player .position {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
  font-weight: 700;
}
.player .real-name {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.player .codename {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 52px;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  color: var(--ink);
  margin: 0 0 16px;
}
.player .role {
  font-family: var(--ff-serif);
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 80%;
}
.player .motto {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--red);
  margin: 0 0 24px;
  max-width: 80%;
}

.player .stats {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.player .stats dt { color: var(--ink-soft); font-weight: 400; }
.player .stats dd { margin: 0; color: var(--ink); font-weight: 700; }
.player .stats dd.cmd { color: var(--red); }

/* coach K gets a special card span */
.player.coach {
  grid-column: span 3;
  background: var(--ink);
  color: var(--paper);
  padding: 40px 48px;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  min-height: auto;
}
.player.coach::before { background: var(--gold); }
.player.coach .jersey {
  position: relative;
  top: 0; right: 0;
  font-size: 180px;
  opacity: 1;
  color: var(--gold);
  flex-shrink: 0;
}
.player.coach:hover .jersey { color: var(--gold); opacity: 1; }
.player.coach:hover { background: var(--navy-deep); }
.player.coach .content { flex: 1; }
.player.coach .position { color: var(--gold); }
.player.coach .real-name { color: rgba(241,232,209,0.7); }
.player.coach .codename { color: var(--paper); font-size: 72px; }
.player.coach .role { color: rgba(241,232,209,0.85); max-width: 100%; font-size: 19px; }
.player.coach .role em { color: var(--gold); font-style: italic; font-weight: 600; }
.player.coach .motto { color: var(--gold); font-size: 17px; max-width: 100%; }
.player.coach .stats {
  border-top-color: rgba(241,232,209,0.2);
  grid-template-columns: repeat(4, 1fr);
}
.player.coach .stats dt { color: rgba(241,232,209,0.55); }
.player.coach .stats dd { color: var(--paper); }
.player.coach .stats dd.cmd { color: var(--gold); }

/* ============================================================
   PLAYBOOK
   ============================================================ */
.playbook {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
}
.mode-card {
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 36px 32px 40px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.mode-card:hover { background: var(--paper-deep); }

.mode-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.mode-num {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 72px;
  line-height: 0.78;
  color: var(--red);
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.mode-header h3 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 40px;
  line-height: 0.95;
  margin: 4px 0 8px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.mode-sub {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}
.mode-lead {
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  color: var(--ink-soft);
}
.mode-lead em {
  font-style: italic;
  color: var(--red);
}
.mode-lead code {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  background: var(--paper-deep);
  padding: 1px 6px;
  border: 1px solid var(--rule-soft);
}

/* flow diagrams */
.flow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  justify-content: center;
}
.flow .step {
  border: 1px solid var(--ink);
  padding: 7px 11px;
  background: var(--paper);
  font-weight: 700;
  color: var(--ink);
}
.flow .step.you {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
  text-transform: uppercase;
}
.flow .arrow {
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
}

.flow.flow-parallel {
  flex-direction: column;
  gap: 14px;
}
.flow.flow-parallel .step.center {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.flow.flow-parallel .fanout {
  display: flex;
  gap: 10px;
  position: relative;
  padding-top: 14px;
}
.flow.flow-parallel .fanout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background: var(--rule);
}
.flow.flow-parallel .fanout .step::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 1px;
  height: 14px;
  background: var(--rule);
}
.flow.flow-parallel .fanout .step {
  position: relative;
}

.flow.flow-phases {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}
.flow.flow-phases .phase {
  border: 1px solid var(--ink);
  padding: 7px 11px 7px 7px;
  background: var(--paper);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.flow.flow-phases .phase-num {
  background: var(--red);
  color: var(--paper);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.flow.flow-phases .phase.you-phase {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
  text-transform: uppercase;
}
.flow.flow-phases .phase.you-phase .phase-num {
  background: var(--paper);
  color: var(--red);
}

/* shell snippet */
.shell-snippet {
  background: var(--ink);
  color: var(--paper);
  padding: 18px 22px;
  font-family: var(--ff-mono);
  font-size: 12.5px;
  line-height: 1.65;
  margin: 0;
  border-left: 4px solid var(--red);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
  min-width: 0;
}
.shell-snippet.big {
  padding: 22px 26px;
  font-size: 13.5px;
}
.shell-snippet .prompt { color: var(--gold); }
.shell-snippet .coach { color: #ff8880; }

/* ============================================================
   FILM ROOM (admin UI showcase)
   ============================================================ */
.filmroom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.browser-mock {
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--red), 10px 10px 0 1px var(--ink);
  font-family: var(--ff-mono);
  min-width: 0;
  overflow: hidden;
}
.browser-chrome {
  background: #181d26;
  border-bottom: 1px solid rgba(241,232,209,0.1);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.browser-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #444;
}
.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1;
  background: #0c1016;
  border: 1px solid rgba(241,232,209,0.12);
  padding: 7px 12px;
  font-size: 11px;
  color: rgba(241,232,209,0.75);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.browser-url .lock { color: var(--gold); flex-shrink: 0; }
.browser-url .path { color: var(--gold); }
.browser-actions {
  color: rgba(241,232,209,0.45);
  font-size: 14px;
  flex-shrink: 0;
}

.browser-body {
  padding: 24px 28px 28px;
  color: var(--paper);
}
.browser-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(241,232,209,0.15);
  margin-bottom: 16px;
}
.browser-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.browser-head-title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--paper);
  text-transform: uppercase;
}
.browser-head-meta {
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: rgba(241,232,209,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.browser-head-meta .divider { color: rgba(241,232,209,0.25); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  background: rgba(192,50,42,0.18);
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.pill .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(192,50,42,0.8);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(192,50,42,0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(192,50,42,0); }
  100% { box-shadow: 0 0 0 0 rgba(192,50,42,0); }
}

.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 20px;
}
.mock-table th {
  text-align: left;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(241,232,209,0.5);
  padding: 6px 8px;
  border-bottom: 1px solid rgba(241,232,209,0.15);
}
.mock-table th.num { text-align: right; }
.mock-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(241,232,209,0.06);
  color: rgba(241,232,209,0.9);
}
.mock-table td:first-child {
  width: 32px;
  color: rgba(241,232,209,0.4);
  font-weight: 700;
}
.mock-table td.num { text-align: right; font-weight: 700; color: var(--gold); }
.mock-table td.num.muted { color: rgba(241,232,209,0.3); font-weight: 400; }
.mock-table td.state {
  width: 24px;
  text-align: center;
  font-size: 13px;
}
.mock-table td.state.ok { color: #5bd48f; }
.mock-table td.state.run { color: var(--gold); animation: spin 2s linear infinite; display: inline-block; }
.mock-table td.state.pending { color: rgba(241,232,209,0.25); }
.mock-table tr.running td { color: var(--paper); }
.mock-table tr.pending td { color: rgba(241,232,209,0.35); }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.browser-foot {
  border-top: 1px dashed rgba(241,232,209,0.15);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.progress {
  width: 100%;
  height: 4px;
  background: rgba(241,232,209,0.1);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--red);
  transition: width 600ms ease;
}
.browser-foot-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(241,232,209,0.55);
}
.browser-foot-meta strong { color: var(--paper); font-weight: 700; }
.browser-foot-meta .num-red { color: var(--red); }

/* film room features column */
.filmroom-features {
  border-top: 3px double var(--ink);
  padding-top: 24px;
  min-width: 0;
}
.filmroom-features .feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.filmroom-features .feature:last-child { border-bottom: none; }
.filmroom-features .feature-num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--red);
  font-weight: 700;
  padding-top: 3px;
}
.filmroom-features h5 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
  color: var(--ink);
}
.filmroom-features p {
  font-family: var(--ff-serif);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
.filmroom-features code {
  font-family: var(--ff-mono);
  font-size: 12px;
  background: var(--paper-deep);
  padding: 1px 5px;
  border: 1px solid var(--rule-soft);
}

/* ============================================================
   DEVX
   ============================================================ */
.devx-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
}
.devx-install {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.devx-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  align-items: start;
}
.step-num {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 56px;
  line-height: 0.85;
  color: var(--ink);
  border-top: 3px solid var(--red);
  padding-top: 10px;
}
.devx-step h4 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.devx-step p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 14px 0 0;
  line-height: 1.55;
}
.devx-step code {
  font-family: var(--ff-mono);
  font-size: 12px;
  background: var(--paper-deep);
  padding: 1px 5px;
  border: 1px solid var(--rule-soft);
}

.devx-features {
  border-top: 3px double var(--ink);
  padding-top: 24px;
}
.devx-title {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 28px;
  font-weight: 700;
}
.boxscore {
  margin: 0;
}
.boxscore dt {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
  padding: 16px 0 4px;
  border-top: 1px solid var(--rule);
}
.boxscore dt:first-of-type { border-top: none; padding-top: 0; }
.boxscore dd {
  margin: 0 0 16px;
  font-family: var(--ff-serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.boxscore code {
  font-family: var(--ff-mono);
  font-size: 12px;
  background: var(--paper-deep);
  padding: 1px 5px;
  border: 1px solid var(--rule-soft);
  color: var(--ink);
}
.boxscore dd em {
  font-style: italic;
  font-weight: 600;
  color: var(--red);
}
.mode-lead em {
  font-style: italic;
  color: var(--red);
  font-weight: 500;
}

/* ============================================================
   TENSION STRIP
   ============================================================ */
.tension-strip {
  background: var(--ink);
  color: var(--paper);
  padding: 100px 0;
  border-top: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}
.tension-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(192,50,42,0.22) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.45;
  pointer-events: none;
}
.tension-strip > .shell { position: relative; z-index: 1; }

/* §05 reuses the shared .section-head / .section-number / .section-title
   so its heading is identical to §01–§04 (was a bespoke, larger treatment). */

.matchups {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 3px double rgba(241,232,209,0.7);
  border-bottom: 3px double rgba(241,232,209,0.7);
}
.matchup {
  grid-column: span 2;
  padding: 52px 24px;
  border-right: 1px solid rgba(241,232,209,0.22);
  text-align: center;
  min-width: 0;
}
/* 5 matchups: row 1 = three thirds, row 2 = two full-width halves (no empty cell) */
.matchup:nth-child(4),
.matchup:nth-child(5) { grid-column: span 3; }
/* full-width horizontal divider between the two rows */
.matchup:nth-child(-n + 3) { border-bottom: 1px solid rgba(241,232,209,0.22); }
.matchup:nth-child(3) { border-right: none; }
.matchup:last-child { border-right: none; }

.matchup-names {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 20px;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 52px;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.matchup-names strong {
  color: var(--paper);
  font-weight: 900;
}
.matchup-names span {
  color: var(--red);
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  text-transform: lowercase;
  letter-spacing: 0;
}
.matchup-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.tension-note {
  margin: 56px auto 0;
  max-width: 640px;
  text-align: center;
}
.tension-note p {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 19px;
  color: rgba(241,232,209,0.78);
  line-height: 1.55;
  margin: 0 0 14px;
}
.tension-note p:last-child { margin-bottom: 0; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  padding: 140px 0 100px;
  text-align: center;
  border-top: 3px double var(--ink);
  background: var(--paper);
  position: relative;
}
.final-meta {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 36px;
  font-weight: 700;
}
.final-headline {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.82;
  margin: 0 0 40px;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}
.final-lede {
  max-width: 560px;
  margin: 0 auto 56px;
}
.final-lede p {
  font-size: 20px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 10px;
}
.final-lede p:last-child { margin-bottom: 0; }
.final-actions {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.star-btn.big {
  font-size: 12px;
  padding: 16px 22px;
  box-shadow: 5px 5px 0 var(--red);
}
.star-btn.big:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--red);
}
.ghost-btn {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 16px 4px;
  border-bottom: 2px solid var(--ink);
  transition: color 120ms, border-color 120ms;
}
.ghost-btn:hover {
  color: var(--red);
  border-color: var(--red);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--ink);
  padding: 72px 0 40px;
  position: relative;
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-cols .brand {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  color: var(--ink);
}
.footer-cols .brand sup {
  color: var(--red);
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  margin-left: 4px;
  vertical-align: top;
  top: 2px;
  position: relative;
}
.footer-cols p {
  font-family: var(--ff-serif);
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 320px;
  line-height: 1.55;
}
.footer-cols h5 {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 18px;
  font-weight: 700;
}
.footer-cols a {
  display: block;
  font-family: var(--ff-serif);
  font-size: 15px;
  color: var(--ink);
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  width: fit-content;
}
.footer-cols a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}
.footer-colophon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.colophon-right {
  flex-shrink: 0;
}
.commit-sha {
  color: var(--red);
  font-weight: 700;
  border-bottom: 1px dashed transparent;
  transition: border-color 120ms;
}
.commit-sha:hover {
  border-bottom-color: var(--red);
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .shell { padding: 0 24px; }
  .running-head .inner { padding: 12px 24px; gap: 16px; }
  .running-head nav { display: none; }
  .hero {
    padding: 48px 0 80px;
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  .hero-meta, .hero h1, .hero-lede, .hero-cta, .hero-stats, .seal {
    grid-column: 1;
  }
  .hero-stats {
    grid-row: auto;
    text-align: left;
    margin-top: 48px;
  }
  .seal { justify-self: start; margin-top: 32px; width: 140px; height: 140px; }
  .hero h1 { font-size: clamp(56px, 16vw, 110px); }
  .hero-lede { font-size: 18px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-kicker { text-align: left; }
  .roster { grid-template-columns: 1fr; }
  .player.coach { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .player.coach .stats { grid-template-columns: 1fr 1fr; }
  .install { flex-wrap: wrap; }
  .install code { font-size: 12px; }

  .playbook { grid-template-columns: 1fr; }
  .filmroom-grid { grid-template-columns: 1fr; gap: 56px; }
  .browser-body { padding: 20px 18px 22px; }
  .browser-head-title { font-size: 18px; }
  .mock-table { font-size: 11px; }
  .devx-grid { grid-template-columns: 1fr; gap: 56px; }
  .devx-step { grid-template-columns: 56px 1fr; gap: 16px; }
  .step-num { font-size: 44px; }
  .devx-step h4 { font-size: 26px; }

  .matchups { grid-template-columns: 1fr; }
  .matchup,
  .matchup:nth-child(4),
  .matchup:nth-child(5) {
    grid-column: auto;
    border-right: none;
    border-bottom: 1px solid rgba(241,232,209,0.22);
    padding: 40px 16px;
  }
  .matchup:last-child { border-bottom: none; }
  .matchup-names { font-size: 40px; gap: 14px; }

  .final-cta { padding: 80px 0 64px; }
  .final-headline { font-size: clamp(64px, 18vw, 120px); }
  .final-lede p { font-size: 17px; }

  .footer-cols { grid-template-columns: 1fr; gap: 40px; }
  .footer-colophon { flex-direction: column; gap: 12px; }
}
