/* ==========================================================================
   The Games Project — "XEROX / BLOOD" design system
   Punk-zine / brutalist editorial. Monochrome xerox paper + one accent.
   Swap the entire site accent by changing --accent in :root.
   ========================================================================== */

/* ------------ FONTS (self-hosted; OFL via Google Fonts, latin subset) ------------ */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/big-shoulders-display-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/archivo-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/archivo-italic-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-500.woff2') format('woff2');
}

/* ------------ TOKENS ------------ */
:root {
  /* monochrome scale (names kept; values re-skinned dark-dominant) */
  --paper-0: #ECE8E1;   /* cream — light-zone base + on-accent text */
  --paper-1: #DEDAD1;   /* raised light panels */
  --paper-2: #CFC9BE;   /* pressed light areas */
  --ink-0: #0D0B0B;     /* near-black — page base */
  --ink-1: #161311;
  --ink-2: #403C36;
  --ink-3: #6E6A66;
  --ink-4: #9A938C;
  --ink-min: #080707;   /* darkest (closing) */

  /* THE accent — single global swap point (magenta) */
  --accent: #EB0964;
  --accent-down: #C00650;
  --accent-down: color-mix(in srgb, var(--accent) 80%, black);
  --accent-glow: rgba(235, 9, 100, 0.20);
  --accent-glow: color-mix(in srgb, var(--accent) 20%, transparent);

  /* role tokens — DARK base (site is dark-dominant) */
  --bg: var(--ink-0);
  --bg-raise: #14110F;
  --bg-press: #1C1916;
  --fg: var(--paper-0);
  --fg-soft: rgba(236, 232, 225, 0.82);
  --muted: rgba(236, 232, 225, 0.60);
  --faint: rgba(236, 232, 225, 0.42);
  --line: rgba(236, 232, 225, 0.16);
  --line-soft: rgba(236, 232, 225, 0.08);
  --line-hard: rgba(236, 232, 225, 0.30);

  /* legacy aliases (inline styles + generated markup still reference these) */
  --cream: var(--paper-0);
  --off-white: var(--bg-raise);
  --paper: var(--paper-0);
  --ink: var(--fg);
  --ink-soft: var(--fg-soft);
  --gray: var(--muted);
  --gray-soft: var(--faint);
  --rule: var(--line);
  --rule-soft: var(--line-soft);
  --accent-dim: var(--accent-down);

  /* texture (light grain on dark base) */
  --tex-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.62 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-opacity: 0.05;
  --halftone-size: 7px;

  /* fonts */
  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-serif: var(--font-body);   /* accent words now render as Archivo italic */
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-num: 'JetBrains Mono', ui-monospace, monospace;   /* small technical numerals (.num) */
  --font-marker: var(--font-body);  /* retired; repoint so stray refs never break */

  /* layout */
  --col-gap: 24px;
  --row-gap: clamp(76px, 9vw, 132px);
  --page-pad: 56px;
}

@media (max-width: 900px) {
  :root {
    --page-pad: 24px;
  }
}

/* LIGHT interlude zones (opt-in). The site is dark-dominant; add
   .section--light (or data-theme="light") to flip a section to paper. */
.section--light,
[data-theme="light"] {
  --bg: var(--paper-0);
  --bg-raise: #E4E0D6;
  --bg-press: var(--paper-2);
  --fg: #14110F;
  --fg-soft: #2A2723;
  --muted: #6E6A66;
  --faint: #9A938C;
  --line: rgba(20, 17, 15, 0.18);
  --line-soft: rgba(20, 17, 15, 0.10);
  --line-hard: rgba(20, 17, 15, 0.32);
  --tex-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.62 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* DARK zones — re-assert the dark base inside a light zone (e.g. a dark
   card on a paper section). Same values as :root so nesting always resolves. */
[data-theme="dark"],
.footer,
.final-cta,
.eco-card.dark,
.chart-card.dark,
.poster--dark {
  --bg: var(--ink-0);
  --bg-raise: #14110F;
  --bg-press: #1C1916;
  --fg: var(--paper-0);
  --fg-soft: rgba(236, 232, 225, 0.82);
  --muted: rgba(236, 232, 225, 0.60);
  --faint: rgba(236, 232, 225, 0.42);
  --line: rgba(236, 232, 225, 0.16);
  --line-soft: rgba(236, 232, 225, 0.08);
  --line-hard: rgba(236, 232, 225, 0.30);
  --tex-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.62 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-theme="dark"],
[data-theme="light"] { color: var(--fg); }

/* ------------ BASE ------------ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { display: block; max-width: 100%; }

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

/* ------------ TEXTURE UTILITIES ------------ */
.tex-grain { position: relative; }
.tex-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tex-grain);
  opacity: var(--grain-opacity);
  pointer-events: none;
  z-index: 4;
}
.tex-halftone {
  background-image: radial-gradient(circle, currentColor 1px, transparent 1.4px);
  background-size: var(--halftone-size) var(--halftone-size);
}
.tex-scanlines {
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(14, 13, 11, 0.05) 3px 4px);
}
.barcode {
  height: 24px;
  width: 110px;
  background: repeating-linear-gradient(90deg,
    currentColor 0 2px, transparent 2px 5px,
    currentColor 5px 6px, transparent 6px 11px,
    currentColor 11px 14px, transparent 14px 16px,
    currentColor 16px 17px, transparent 17px 22px);
}
.glyph {
  display: inline-block;
  width: 1em;
  height: 1em;
  color: var(--accent);
}

/* ------------ TYPE ------------ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.eyebrow-ink { color: var(--fg); }
.eyebrow-accent { color: var(--accent); }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.012em;
  line-height: 0.84;
  text-transform: uppercase;
  margin: 0;
}

.display-xl { font-size: clamp(64px, 11vw, 200px); }
.display-l  { font-size: clamp(48px, 7.4vw, 124px); }
.display-m  { font-size: clamp(38px, 5vw, 80px); }
.display-s  { font-size: clamp(28px, 3.2vw, 48px); }

/* heading accent words — SAME font as the headings (Big Shoulders), italic */
.serif {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: none;
  color: var(--accent);
}

.lede {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--fg-soft);
  font-weight: 400;
  max-width: 60ch;
}

.body-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-soft);
}

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hand-written annotation layer — RETIRED in the technical re-skin. */
.annotation,
.annotation--ink,
.annotation--tilt-r { display: none !important; }

/* ------------ LAYOUT ------------ */
.shell {
  padding: 0 var(--page-pad);
  max-width: 1640px;
  margin: 0 auto;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
}

.rule {
  height: 2px;
  background: var(--fg);
  width: 100%;
  position: relative;
}
.rule::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 56px;
  height: 8px;
  background: var(--accent);
}

.rule-thick { height: 2px; background: var(--fg); }

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

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 48px;
  border-bottom: 2px solid var(--line-hard);
  margin-bottom: 56px;
  position: relative;
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 200px 1fr;
    align-items: end;
  }
}

/* ------------ BUTTONS — brutalist hard-shadow blocks ------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--line-hard);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
  border-radius: 0;
  position: relative;
}

.btn:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn-primary:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--paper-0); color: #14110F; border-color: var(--paper-0); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-hard);
}
.btn-ghost:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* flipped hover for the hero accent CTA (pink → paper) */
.btn-accent.btn-accent-flip:hover {
  background: var(--paper-0);
  color: #14110F;
  border-color: var(--paper-0);
}

.btn .arrow {
  display: inline-block;
  width: 14px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 7px; height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.inline-link {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}
.inline-link:hover {
  color: var(--paper-0);
  background: var(--accent);
  border-color: var(--accent);
}

/* ------------ NAV ------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 0 var(--page-pad);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1640px;
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.03em;
  line-height: 0.86;
  text-transform: uppercase;
}
.nav-logo { height: 30px; width: auto; display: block; }
.nav-brand .dot {
  width: 10px; height: 10px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.nav-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--faint);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-soft);
  cursor: pointer;
  position: relative;
  padding: 4px 0;
}
.nav-link:hover { color: var(--fg); }
.nav-link.active { color: var(--fg); }
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--accent);
}
.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--line-hard);
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.nav-live-pill:hover { background: var(--fg); color: var(--bg); }
.nav-live-pill .pulse {
  width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
  position: relative;
}
.nav-live-pill .pulse::before {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%; background: var(--accent);
  opacity: 0.3;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ------------ FOOTER ------------ */
.footer {
  background: var(--bg);
  color: var(--fg);
  padding: 80px var(--page-pad) 32px;
  border-top: 6px solid var(--accent);
  position: relative;
}
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tex-grain);
  opacity: var(--grain-opacity);
  pointer-events: none;
}
.footer > * { position: relative; z-index: 1; }
.footer-inner { max-width: 1640px; margin: 0 auto; }
.footer-head { padding-top: 8px; }
.footer-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.footer .display { color: var(--fg); }
.footer a { color: var(--fg); }
.footer .label { color: var(--faint); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 6px 0; font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-owner {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--faint);
  max-width: 36ch;
}
.footer-owner a { color: var(--fg); border-bottom: 1px solid var(--line); }
.footer-owner a:hover { color: var(--accent); border-color: var(--accent); }
.footer-disclaimer {
  margin-top: 32px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.6;
  color: var(--faint);
  max-width: 80ch;
}

/* ------------ POSTER SYSTEM (replaces placeholders) ------------ */
.poster {
  position: relative;
  border: 2px solid var(--line-hard);
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  margin: 0;
  display: block;
}
.poster--dark {
  background: var(--ink-0);
  box-shadow: 8px 8px 0 var(--accent);
}
.poster-media { position: absolute; inset: 0; z-index: 0; }
.poster-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.18) brightness(0.92);
}
.poster-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
/* when a real photo drops in later, the SVG art becomes an overlay treatment */
.poster:has(img) .poster-art { mix-blend-mode: multiply; opacity: 0.85; }
.poster-corner,
.poster-corner-tr {
  position: absolute;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 3;
}
.poster-corner { left: 14px; }
.poster-corner-tr { right: 14px; }
.poster-caption {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  padding: 32px;
  max-width: 24ch;
  margin: 0;
  width: max-content;
}
.poster-caption .serif {
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.15;
  color: var(--fg);
}
.poster .annotation {
  position: absolute;
  z-index: 3;
}
.poster--hero { aspect-ratio: 4 / 5; min-height: 480px; }
.poster--portrait { aspect-ratio: 4 / 5; min-height: 480px; }
.poster--landscape { aspect-ratio: 4 / 3; min-height: 280px; }

/* poster SVG art helpers (inline compositions share these) */
.art-paper { fill: var(--paper-0); }
.art-ink { fill: var(--ink-0); }
.art-accent { fill: var(--accent); }
.art-accent-stroke { stroke: var(--accent); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.art-paper-stroke { stroke: var(--paper-0); fill: none; stroke-linecap: round; }
.art-ink-stroke { stroke: var(--ink-0); fill: none; stroke-linecap: round; }
.art-hair { stroke: var(--paper-0); stroke-width: 0.8; opacity: 0.35; fill: none; }
.art-num {
  font-family: var(--font-display);
  font-size: 150px;
  fill: none;
  stroke: var(--paper-0);
  stroke-width: 1.6;
  opacity: 0.9;
}
.art-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.art-mono--paper { fill: var(--paper-0); opacity: 0.72; }
.art-mono--ink { fill: var(--ink-0); opacity: 0.66; }
.art-frame { stroke: var(--paper-0); fill: none; stroke-width: 1.5; opacity: 0.85; }
.art-crown { color: var(--accent); }

/* positioned decorations inside posters */
.poster-x {
  position: absolute;
  left: 5%;
  bottom: 17%;
  width: 48%;
  height: 20%;
  z-index: 3;
  pointer-events: none;
}
.poster-barcode {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 3;
  opacity: 0.8;
  color: var(--fg);
}
.poster-note-hero { left: 7%; top: 11%; }
.poster-note-lab { right: 5%; bottom: 6%; }
.poster-caption--high { top: 17%; transform: translate(-50%, 0); }

/* legacy placeholder compatibility (tracker.js fallback content) */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg, var(--line-soft) 0 1px, transparent 1px 8px),
    var(--bg-raise);
  border: 2px solid var(--line-hard);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.placeholder-dark {
  background:
    repeating-linear-gradient(135deg, rgba(242, 239, 231, 0.05) 0 1px, transparent 1px 8px),
    var(--ink-0);
  color: var(--ink-4);
  border-color: var(--ink-0);
}
.placeholder-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 8px 12px;
  background: var(--paper-0);
  border: 1px solid var(--line);
}
.placeholder-dark .placeholder-label {
  background: var(--ink-1);
  color: var(--ink-4);
  border-color: rgba(242, 239, 231, 0.1);
}
.placeholder-corner,
.placeholder-corner-tr {
  position: absolute;
  top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.placeholder-corner { left: 12px; }
.placeholder-corner-tr { right: 12px; }

/* ------------ MARKER / SKETCH LAYER ------------ */
.mk-host { position: relative; }
.mk-svg {
  position: absolute;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}
.mk-svg path {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mk-svg[data-stroke="fg"] path { stroke: var(--fg); }
/* CSS fallback draw-on when GSAP is unavailable */
.mk-svg path.is-drawn { transition: stroke-dashoffset 700ms cubic-bezier(0.3, 0.6, 0.3, 1); }

/* ------------ MOTION STATES (gated on html.motion — set by boot.js) ------------ */
html.motion [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
}
html.motion [data-reveal="mask"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
}
html.motion [data-reveal="stagger"] {
  opacity: 1;
  transform: none;
}
html.motion [data-reveal="stagger"] > * {
  opacity: 0;
  transform: translateY(26px);
}
html.motion [data-reveal="words"] { transform: none; }

/* IntersectionObserver fallback path (vendor JS missing) */
html.motion [data-reveal].is-visible,
html.motion [data-reveal="stagger"].is-visible > * {
  opacity: 1;
  transform: none;
  clip-path: none;
  transition:
    opacity 900ms cubic-bezier(0.2, 0.65, 0.2, 1),
    transform 900ms cubic-bezier(0.2, 0.65, 0.2, 1),
    clip-path 900ms cubic-bezier(0.2, 0.65, 0.2, 1);
}
html.motion [data-reveal="stagger"].is-visible > *:nth-child(2) { transition-delay: 90ms; }
html.motion [data-reveal="stagger"].is-visible > *:nth-child(3) { transition-delay: 180ms; }
html.motion [data-reveal="stagger"].is-visible > *:nth-child(4) { transition-delay: 270ms; }
html.motion [data-reveal="stagger"].is-visible > *:nth-child(5) { transition-delay: 360ms; }
html.motion [data-reveal="stagger"].is-visible > *:nth-child(6) { transition-delay: 450ms; }

/* word-split spans (created by motion.js) */
.w { display: inline-block; }

/* line clip-up reveal (headlines) — each line rises out of an overflow mask.
   padding/negative-margin give descenders + italic overhang room so the
   resting state never clips glyphs; transform:none cancels the generic shift. */
html.motion [data-reveal="lines"] { transform: none; }
.line { display: block; overflow: hidden; padding: 0.04em 0.06em 0.16em; margin: -0.04em -0.06em -0.16em; }
.line-inner { display: block; }

/* word clip-up + skew reveal (ledes / taglines) */
[data-reveal="words"] .w { overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; }
[data-reveal="words"] .w-i { display: inline-block; }

/* mono decode/scramble reveal (small labels) — text effect only, never hidden */
html.motion [data-reveal="scramble"] { opacity: 1; transform: none; }

/* legacy reveal classes (kept so intermediate states never hide content) */
html.motion .reveal-block {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 900ms cubic-bezier(0.2, 0.65, 0.2, 1),
    transform 900ms cubic-bezier(0.2, 0.65, 0.2, 1);
}
html.motion .reveal-block.is-visible { opacity: 1; transform: translateY(0); }
html.motion .reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1100ms cubic-bezier(0.2, 0.65, 0.2, 1) forwards;
}
@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ------------ HERO ------------ */
.hero {
  padding-block: 56px 96px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: stretch;
  }
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--line-hard);
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-title {
  font-size: clamp(44px, 8vw, 176px);
  position: relative;
}
.hero-title .serif-accent { white-space: nowrap; }
.hero-title .accent-word { color: var(--accent); }
.hero-title .serif-accent {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: none;
  letter-spacing: -0.015em;
  display: inline-block;
}
.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 320px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero-big .hero-visual {
  min-height: 480px;
  aspect-ratio: 4 / 5;
}
@media (min-width: 1000px) {
  .hero-big .hero-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
  }
  .hero-big .hero-visual { min-height: 600px; }
}
.hero-accent-mark {
  position: absolute;
  top: 42px;
  right: 16px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-glow);
  z-index: 3;
}

.num-mid { font-size: clamp(20px, 2.2vw, 28px) !important; }
.num-accent { color: var(--accent); }

/* ------------ SECTION 02 — PROJECT / MANIFESTO ------------ */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1000px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}
.project-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.32;
  color: var(--fg);
  max-width: 30ch;
  margin: 0 0 32px;
  padding-left: 22px;
  border-left: 4px solid var(--accent);
}
.project-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 60ch;
}
.project-visual-frame {
  aspect-ratio: 4 / 5;
  min-height: 480px;
  position: relative;
}
.project-visual-accent {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 36px;
  height: 4px;
  background: var(--accent);
  z-index: 3;
}

/* "What is" 4-cell grid */
.what-grid {
  border: 2px solid var(--line-hard);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  box-shadow: 6px 6px 0 var(--line-hard);
}
@media (min-width: 900px) {
  .what-grid { grid-template-columns: repeat(4, 1fr); }
}
.what-grid .what-cell {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 200ms ease;
  position: relative;
}
.what-grid .what-cell:nth-child(2n) { border-right: none; }
.what-grid .what-cell:nth-last-child(-n+2) { border-bottom: none; }
@media (min-width: 900px) {
  .what-grid .what-cell { border-bottom: none; }
  .what-grid .what-cell:nth-child(2n) { border-right: 1px solid var(--line); }
  .what-grid .what-cell:nth-child(4n),
  .what-grid .what-cell:last-child { border-right: none; }
}
.what-grid .what-cell h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 28px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 12px 0 8px;
  line-height: 1;
}
.what-grid .what-cell p {
  margin: 0;
  font-size: 14px;
  color: var(--fg-soft);
  line-height: 1.5;
}
.what-cell { transition: background 200ms ease; }
.what-cell:hover { background: var(--bg-raise); }
.what-cell:last-child { border-right: none !important; }

/* ------------ SECTION 03 — PILLARS ------------ */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 2px solid var(--line-hard);
  border-bottom: 2px solid var(--line-hard);
}
@media (min-width: 900px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}
.pillar {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 480px;
  position: relative;
  transition: background 200ms ease;
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: var(--bg-raise); }
@media (max-width: 900px) {
  .pillar { border-right: none; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: none; }
}
.pillar-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.pillar-num .slash { color: var(--accent); padding: 0 4px; }
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 2.8vw, 44px);
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0;
}
.pillar p { color: var(--fg-soft); font-size: 15px; line-height: 1.55; margin: 0; }
.pillar-foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* brutalist card variant used on the homepage */
.pillars.is-columns {
  border-top: none;
  border-bottom: none;
  gap: 28px;
  background: transparent;
}
.pillars.is-columns .pillar {
  border: 2px solid var(--line-hard);
  background: var(--bg-raise);
  padding: 96px 28px 48px;
  min-height: 560px;
  position: relative;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--line-hard);
  transition: background 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.pillars.is-columns .pillar::before {
  /* giant ghost index number */
  content: attr(data-num);
  position: absolute;
  top: -28px;
  right: 8px;
  font-family: var(--font-display);
  font-size: 160px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  pointer-events: none;
}
.pillars.is-columns .pillar::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 64px;
  height: 8px;
  background: var(--accent);
}
.pillars.is-columns .pillar:hover {
  background: var(--paper-0);
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 var(--line-hard);
}
.pillars.is-columns .pillar > * { position: relative; z-index: 1; }
.pillar-shaft { display: none; }
@media (max-width: 900px) {
  .pillars.is-columns .pillar {
    min-height: 440px;
    padding: 72px 24px 40px;
  }
}


/* ------------ SECTION 04 — POWERED BY (WOD-Science) ------------ */
.powered {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 1000px) {
  .powered { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
}
.powered-visual {
  aspect-ratio: 4 / 3;
  position: relative;
}
.powered-text h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 0.95;
  text-transform: uppercase;
  font-size: clamp(40px, 5vw, 84px);
  margin: 0 0 32px;
}
.powered-text .serif {
  font-style: italic;
  text-transform: none;
  color: var(--accent);
  font-weight: 400;
}
.powered-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  counter-reset: powered;
}
.powered-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  padding: 18px 0;
  border-top: 2px solid var(--line-hard);
  font-size: 15px;
  gap: 16px;
  align-items: baseline;
  position: relative;
  transition: background 160ms ease, padding-left 160ms ease;
}
.powered-list li:hover { background: var(--bg-raise); padding-left: 8px; }
.powered-list li:last-child { border-bottom: 2px solid var(--line-hard); }
.powered-list .idx {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--accent);
}

/* ------------ SECTION 05 — CHANNELS / ECOSYSTEM ------------ */
.channels-zone {
  background: var(--ink-0);
}
.channels-zone .eco-card { box-shadow: 8px 8px 0 var(--accent); }
.channels-zone .eco-card.dark { background: var(--bg-raise); }
.ecosystem {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .ecosystem { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.eco-card {
  background: var(--bg-raise);
  padding: 40px 36px;
  border: 2px solid var(--line-hard);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  box-shadow: 6px 6px 0 var(--line-hard);
}
.eco-card.dark {
  background: var(--bg);
  color: var(--fg);
  box-shadow: 6px 6px 0 var(--accent);
}
.eco-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  font-size: clamp(30px, 3.2vw, 46px);
  margin: 0;
  line-height: 1;
}
.eco-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 23px;
  line-height: 1.2;
}
.eco-accent-tagline { color: var(--accent); }
.eco-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.eco-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.eco-list li:last-child { border-bottom: 1px solid var(--line); }
.eco-list .tag,
.eco-link .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eco-frequency {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
}
.eco-frequency .big {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  letter-spacing: 0.01em;
  line-height: 1;
}
.eco-frequency .unit {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eco-links {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}
.eco-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  transition: color 140ms ease, padding-left 140ms ease;
}
.eco-link:last-child { border-bottom: 1px solid var(--line); }
.eco-link:hover { color: var(--accent); padding-left: 8px; }

/* ------------ SECTION 06 — PARTNERS ------------ */
.partners {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) {
  .partners { grid-template-columns: 1fr 1.4fr; gap: 80px; }
}
.partners-simple {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .partners-simple {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}
.partner-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line-hard);
  border: 2px solid var(--line-hard);
}
.partner-cat {
  background: var(--bg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 140px;
  position: relative;
  transition: background 200ms;
}
.partner-cat:hover { background: var(--bg-raise); }
.partner-cat .idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.partner-cat .name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.partner-cat .ex {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  margin-top: auto;
}
.partner-stat-row {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.partner-stats { margin-top: 28px; border-bottom: 1px solid var(--line); }
.partner-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line-hard);
  border: 2px solid var(--line-hard);
}
@media (max-width: 720px) {
  .partner-slots { grid-template-columns: 1fr; }
}
.partner-slot {
  background: var(--bg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 180px;
  position: relative;
  transition: background 200ms ease;
}
.partner-slot:hover { background: var(--bg-raise); }
.partner-slot.open {
  background:
    repeating-linear-gradient(135deg, var(--line-soft) 0 1px, transparent 1px 10px),
    var(--bg);
}
.partner-slot.open:hover {
  background:
    repeating-linear-gradient(135deg, var(--line-soft) 0 1px, transparent 1px 10px),
    var(--bg-raise);
}
.partner-slot .slot-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.partner-slot .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.partner-slot .slot-state {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.partner-slot .slot-state.filled { color: var(--accent); }
.partner-slot .slot-state.open { color: var(--muted); }
.partner-slot .slot-role {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
}
.partner-slot.open .slot-role { color: var(--muted); }
.partner-slot .slot-note {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------ SECTION 07 — FINAL CTA (torn poster wall) ------------ */
.final-cta {
  background: var(--bg);
  color: var(--fg);
  padding: 140px var(--page-pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* torn paper strips */
.final-cta::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -10%;
  width: 120%;
  height: 110px;
  background: var(--ink-1);
  transform: rotate(-1.6deg);
  pointer-events: none;
}
.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tex-grain);
  opacity: calc(var(--grain-opacity) * 1.8);
  pointer-events: none;
}
.cta-strip {
  position: absolute;
  pointer-events: none;
}
.cta-strip--a {
  bottom: -50px;
  right: -8%;
  width: 70%;
  height: 120px;
  background: var(--ink-1);
  transform: rotate(2deg);
}
.cta-strip--b {
  top: 30%;
  left: -60px;
  width: 220px;
  height: 44px;
  background: var(--accent);
  transform: rotate(-6deg);
  opacity: 0.92;
}
.final-cta .eyebrow { position: relative; z-index: 1; color: var(--faint); }
.final-cta .display {
  color: var(--fg);
  position: relative;
  z-index: 1;
  margin-top: 24px;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.final-cta .accent { color: var(--accent); }
.final-cta .serif { color: var(--accent); }
.final-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}
.cta-arrows {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: clamp(80px, 24vw, 360px);
  margin-top: 18px;
  height: 64px;
}
.cta-arrow { display: inline-block; width: 56px; height: 64px; }
.cta-crown {
  width: 60px;
  height: 46px;
  margin: 18px auto 4px;
  display: block;
  position: relative;
  z-index: 1;
  color: var(--accent);
}

/* ==========================================================================
   /LIVE TRACKER
   ========================================================================== */

.live-hero {
  padding: 32px 0 56px;
  border-bottom: 2px solid var(--line-hard);
}
.live-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.live-status-bar .group { display: flex; gap: 24px; flex-wrap: wrap; }
.live-status-bar .live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}
.live-status-bar .live-dot .pulse-dot {
  width: 7px; height: 7px; background: var(--accent);
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.live-header-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .live-header-grid { grid-template-columns: 2fr 1fr; gap: 48px; align-items: end; }
}
.live-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7.8vw, 130px);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.9;
  margin: 0;
}
.live-headline .accent { color: var(--accent); }
.live-headline .serif {
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
  font-weight: 400;
}

.live-phase {
  padding: 24px;
  border: 2px solid var(--line-hard);
  box-shadow: 6px 6px 0 var(--line-hard);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.live-phase .phase-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.live-phase .phase-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
}
.live-phase .phase-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 8px;
}
.live-phase .phase-bar div {
  height: 6px;
  background: var(--line);
}
.live-phase .phase-bar div.done { background: var(--fg); }
.live-phase .phase-bar div.now { background: var(--accent); }
.phase-dates {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

.transparency-note {
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--fg-soft);
}

/* Metric grid */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line-hard);
  border: 2px solid var(--line-hard);
  box-shadow: 6px 6px 0 var(--line-hard);
}
@media (max-width: 900px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}
.metric {
  background: var(--bg);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
  position: relative;
  transition: background 200ms ease;
}
.metric:hover { background: var(--bg-raise); }
.metric-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.metric-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 60px);
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--fg);
  text-transform: uppercase;
}
.metric-value [data-animate] { display: inline-block; min-width: 1ch; }
.metric-value .unit {
  font-size: 0.4em;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 4px;
}
.metric-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.metric-foot .delta-up { color: var(--accent); }

/* Timeline */
.timeline-wrap {
  position: relative;
  padding: 32px 0;
  overflow-x: auto;
}
.timeline {
  display: flex;
  min-width: 900px;
  position: relative;
  padding: 32px 0 56px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 56px; left: 0; right: 0;
  height: 2px; background: var(--fg);
}
.tl-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 8px;
}
.tl-item .date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.tl-item .dot {
  width: 14px; height: 14px;
  border: 2px solid var(--fg);
  background: var(--bg);
  transform: rotate(45deg);
  position: relative;
  z-index: 2;
}
.tl-item.done .dot { background: var(--fg); }
.tl-item.now .dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-glow);
}
.tl-item.upcoming .dot { background: var(--bg); }
.tl-item .title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.1;
  max-width: 140px;
}
.tl-item .sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.tl-item.now .title { color: var(--accent); }

/* Charts */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .charts-grid { grid-template-columns: 1.6fr 1fr; }
}
.chart-card {
  border: 2px solid var(--line-hard);
  background: var(--bg-raise);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 6px 6px 0 var(--line-hard);
}
.chart-card.dark {
  background: var(--bg);
  color: var(--fg);
  box-shadow: 6px 6px 0 var(--accent);
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.chart-head .title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.chart-svg { width: 100%; height: 240px; }
.chart-note { margin-top: 8px; }

/* Discipline split */
.disc-split {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.disc-row {
  display: grid;
  grid-template-columns: 100px 1fr 56px;
  gap: 16px;
  align-items: center;
}
.disc-row .name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
}
.disc-row .bar {
  height: 10px;
  background: var(--line-soft);
  position: relative;
  overflow: hidden;
}
.disc-row .fill {
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform-origin: left;
  animation: fillIn 1.2s ease-out forwards;
}
.disc-row .fill.accent { background: var(--accent); }
@keyframes fillIn {
  from { transform: scaleX(0); }
}
.disc-row .pct {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  color: var(--fg);
  text-align: right;
  letter-spacing: 0.01em;
}

/* Testing cards */
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .test-grid { grid-template-columns: 1fr; }
}
.test-card {
  border: 2px solid var(--line-hard);
  background: var(--bg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 160px;
  transition: background 200ms ease;
}
.test-card:hover { background: var(--bg-raise); }
.test-card .name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.test-card .value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}
.test-card .value .unit { font-size: 0.45em; color: var(--muted); margin-left: 4px; }
.test-card .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.test-card .trend {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.test-card .trend.up { color: var(--accent); }

/* Media row */
.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) { .media-grid { grid-template-columns: 1fr; } }
.media-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}
.media-card .thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  border: 2px solid var(--line-hard);
}
.media-card .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-card .play .triangle {
  width: 48px; height: 48px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.media-card .play .triangle::after {
  content: "";
  width: 0; height: 0;
  border-left: 14px solid var(--paper-0);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 3px;
}
.media-card:hover .triangle { background: var(--accent-down); }
.media-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.media-card .ttl {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

/* Next livestream callout */
.livestream-box {
  padding: 24px;
  border: 2px solid var(--line-hard);
  box-shadow: 6px 6px 0 var(--line-hard);
  max-width: 520px;
}
.livestream-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 8px 0;
}
.livestream-when { color: var(--muted); }

/* Data boundary block */
.boundary {
  border: 2px solid var(--line-hard);
  padding: 40px;
  background: var(--bg-raise);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  box-shadow: 8px 8px 0 var(--line-hard);
}
@media (min-width: 900px) {
  .boundary { grid-template-columns: 1fr 2fr; gap: 64px; }
}
.boundary h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 32px;
  margin: 0;
  line-height: 1;
}
.boundary .body-text { font-size: 14px; }
.boundary-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.boundary-head { display: block; padding: 8px 0; }
.boundary-list .row {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.boundary-list .icon {
  width: 14px; height: 14px;
  border: 2px solid var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
}
.boundary-list .icon.no {
  background: var(--accent);
  color: var(--paper-0);
  border-color: var(--accent);
}

/* ------------ UTILITY ------------ */
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-12 { gap: 12px; }
.gap-24 { gap: 24px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-56 { margin-top: 56px; }
.text-gray { color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }
.max-60 { max-width: 60ch; }
.max-64 { max-width: 64ch; }
.max-head { max-width: 18ch; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }

body.density-compact { --row-gap: 88px; }
body.density-airy { --row-gap: 200px; }

/* ------------ PRODUCTION ------------ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--ink-0);
  color: var(--paper-0);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--ink-0);
  transition: top 160ms ease;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--accent); outline-offset: 2px; }

a:focus-visible, button:focus-visible, .btn:focus-visible, .nav-link:focus-visible,
.nav-live-pill:focus-visible, .yt-play:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.nav-hamburger {
  display: none;
  background: transparent;
  border: 2px solid var(--line);
  padding: 8px 10px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
}
.nav-hamburger:hover { border-color: var(--line-hard); }
.nav-mobile-panel {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 2px solid var(--line-hard);
  padding: 24px var(--page-pad);
}
.nav-mobile-panel.open { display: block; }
.nav-mobile-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.nav-mobile-panel li {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .nav-hamburger { display: inline-flex; }
  .nav-live-pill { display: inline-flex !important; padding: 6px 10px; font-size: 9px; }
  .nav-brand span:not(.dot) { font-size: 10px; }
}
@media (min-width: 721px) {
  .nav-mobile-panel { display: none !important; }
}

/* ------------ LEGAL PAGES ------------ */
.legal-page {
  padding: 56px var(--page-pad) 96px;
}
.legal-page .legal-inner { max-width: 72ch; margin: 0 auto; }
.legal-page .page-header {
  padding-bottom: 32px;
  border-bottom: 2px solid var(--line-hard);
  margin-bottom: 40px;
}
.legal-page h1.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 16px 0 16px;
}
.legal-page .updated {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-page h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 48px 0 16px;
  line-height: 1.05;
}
.legal-page h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  margin: 28px 0 12px;
  text-transform: none;
  letter-spacing: 0;
}
.legal-page p { color: var(--fg-soft); margin: 0 0 16px; line-height: 1.6; }
.legal-page ul { padding-left: 20px; margin: 0 0 16px; }
.legal-page li { color: var(--fg-soft); padding: 4px 0; line-height: 1.55; }
.legal-page a {
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  transition: border-color 140ms ease, color 140ms ease;
}
.legal-page a:hover { color: var(--accent); border-color: var(--accent); }
.legal-page hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
.legal-page strong { color: var(--fg); font-weight: 600; }
.legal-page table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0 24px;
  font-size: 14px;
}
.legal-page th, .legal-page td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  color: var(--fg-soft);
  vertical-align: top;
}
.legal-page th {
  background: var(--bg-raise);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  font-weight: 500;
}
.legal-page .contact-block {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  padding: 16px 20px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  margin: 0 0 16px;
}

/* ------------ PARTNERSHIPS PAGE ------------ */
.phil-list {
  max-width: 60ch;
  padding-left: 0;
  list-style: none;
  border-top: 2px solid var(--line-hard);
  margin: 0;
}
.phil-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: baseline;
  transition: background 160ms ease, padding-left 160ms ease;
}
.phil-list li:hover { background: var(--bg-raise); padding-left: 8px; }
.phil-list .idx {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  color: var(--accent);
}
.scope-list {
  max-width: 60ch;
  padding-left: 20px;
  margin-top: 16px;
}
.scope-list li { padding: 6px 0; color: var(--fg-soft); }
.level-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.level-card {
  background: var(--bg-raise);
  padding: 40px 36px;
  border: 2px solid var(--line-hard);
  box-shadow: 6px 6px 0 var(--line-hard);
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.level-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 var(--line-hard);
}
.level-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 64px;
  height: 8px;
  background: var(--accent);
}
.level-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 12px 0 16px;
  line-height: 0.95;
}
.level-card ul { max-width: 60ch; padding-left: 20px; margin: 0 0 8px; }
.level-card li { padding: 4px 0; color: var(--fg-soft); }
.level-card .body-text { max-width: 60ch; }

/* ------------ YOUTUBE EMBED (click-to-load) ------------ */
.yt-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink-0);
  overflow: hidden;
}
.yt-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.yt-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: block;
}
.yt-consent-button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  background:
    repeating-linear-gradient(135deg, rgba(242, 239, 231, 0.05) 0 1px, transparent 1px 8px),
    var(--ink-0);
}
.yt-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yt-play-icon {
  width: 64px;
  height: 64px;
  background: var(--accent);
  color: var(--paper-0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: background 140ms ease, transform 140ms ease;
}
.yt-play:hover .yt-play-icon { background: var(--accent-down); transform: scale(1.05); }

/* ------------ 404 ------------ */
.error-page {
  padding-block: 120px;
  text-align: center;
  position: relative;
}
.error-page h1 { margin: 24px auto; max-width: 18ch; }
.error-page .lede { margin: 0 auto 32px; max-width: 50ch; }
.error-glyph {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  color: var(--accent);
}
.error-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ------------ NARROW-VIEWPORT OVERRIDES (must win source order) ------------ */
/* aspect-ratio + min-height transfers to min-width and overflows narrow
   viewports — let the ratio alone size posters on small screens */
@media (max-width: 720px) {
  .poster--hero,
  .poster--portrait,
  .poster--landscape,
  .hero-visual,
  .hero-big .hero-visual,
  .project-visual-frame,
  .powered-visual { min-height: 0; }
}

/* ------------ REDUCED MOTION ------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-block, .reveal { opacity: 1; transform: none; }
  .nav-live-pill .pulse::before,
  .live-status-bar .live-dot .pulse-dot { animation: none !important; }
  .disc-row .fill { animation: none !important; transform: scaleX(1); }
}

/* ------------ PRINT ------------ */
@media print {
  .nav, .footer, .skip-link, .mk-svg, .annotation { display: none; }
  body { background: white; color: black; }
}

/* ==========================================================================
   NEW TECHNICAL SKIN — magenta / Big Shoulders / Archivo / mono-numerals.
   Layered last so it overrides the original brutalist component styles.
   ========================================================================== */

/* --- keyframes --- */
@keyframes tgpBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes tgpPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.25; transform: scale(0.7); } }
@keyframes tgpScan { 0% { transform: translateY(-12%); opacity: 0; } 10% { opacity: 0.9; } 90% { opacity: 0.9; } 100% { transform: translateY(112%); opacity: 0; } }
@keyframes tgpSpin { to { transform: rotate(360deg); } }
@keyframes tgpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* --- light interlude sections must PAINT the cream bg (full-bleed) --- */
.section--light {
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 0 0 100vw var(--bg);
  clip-path: inset(0 -100vw);
}

/* --- NUMERALS --- */
/* Big display stats render in Big Shoulders; small technical numerals
   (dates, FIG, n=, section indices, nav) stay JetBrains Mono via --font-num.
   Both are full-height faces, so .num sits at 1em (no Qahiri-era 2.05x bump). */
.num {
  font-family: var(--font-num);
  font-weight: 500;
  font-style: normal;
  font-size: 1em;
  letter-spacing: 0;
  line-height: 1;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
/* big block stat numbers sit on their own line — keep them on the baseline
   so they align with adjacent units/labels rather than floating mid-line */
.metric-value,
.test-card .value { vertical-align: baseline; }
.num-accent { color: var(--accent); }

/* non-numeric stat value (phase name, goal) — display caps */
.stat-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 30px);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.01em;
}

/* big display stat numbers → Big Shoulders (striking, full-height caps) */
.metric-value,
.test-card .value,
.disc-row .pct,
.eco-frequency .big {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}
/* technical index numerals stay mono (JetBrains Mono via --font-num) */
.powered-list .idx,
.phil-list .idx,
.partner-cat .idx,
.partner-slot .idx {
  font-family: var(--font-num);
  font-weight: 500;
  letter-spacing: 0;
}
.metric-value,
.test-card .value { text-transform: none; }
.metric-value .unit,
.test-card .value .unit,
.eco-frequency .unit { font-family: var(--font-mono); }

/* numeral sizing — Big Shoulders stats read full-height (no Qahiri bump);
   mono numerals tuned to sit calmly inline. */
.metric-value { font-size: clamp(40px, 5vw, 72px); }
.test-card .value { font-size: clamp(30px, 3.4vw, 44px); }
.disc-row .pct { font-size: 24px; }
.section-index .idx { font-size: 15px; }
.cell-top .num { font-size: 14px; }
.powered-list .idx { font-size: 26px; }
.phil-list .idx { font-size: 24px; }
.partner-cat .idx { font-size: 14px; }
.partner-slot .idx { font-size: 14px; }
.pillar-num .num { font-size: 0.95em; }
.scan-frame__caption .num { font-size: 11px; }
.nav-tag .num,
.nav-live-pill .num { font-size: 12px; }
.footer-bottom .num { font-size: 0.95em; }
.eyebrow .num { font-size: 13px; }

/* --- eyebrow → Archivo bold, wide tracking (mock grammar); .label stays mono --- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.22em;
}

/* --- heading weight bump (Big Shoulders reads heavy in the mock) --- */
.what-grid .what-cell h3,
.pillar h3,
.powered-text h2,
.eco-card h3,
.partner-cat .name,
.partner-slot .slot-role,
.chart-head .title,
.tl-item .title,
.media-card .ttl,
.livestream-title,
.boundary h3,
.level-card h3,
.live-headline,
.live-phase .phase-name,
.legal-page h1.display,
.legal-page h2 { font-weight: 800; }

/* --- accent words → pink Big Shoulders italic (matches the heading) --- */
.hero-title .serif-accent { color: var(--accent); font-weight: 800; }

/* --- Section 3 pillar hover: flip to cream + invert text tokens so it stays
   readable; the ghost index number shows through on the cream. --- */
.pillars.is-columns .pillar:hover {
  background: var(--paper-0);
  color: var(--ink-0);
  --fg: var(--ink-0);
  --fg-soft: var(--ink-2);
  --muted: var(--ink-3);
  --faint: var(--ink-4);
  --line: rgba(20, 17, 15, 0.18);
  --line-soft: rgba(20, 17, 15, 0.10);
}
.pillars.is-columns .pillar:hover::before { -webkit-text-stroke-color: rgba(20, 17, 15, 0.12); }

/* --- Section 5 channel cards: pink-accent ring on hover (the cards are mixed
   light/dark, so a full colour flip would be jarring). Uses an inset box-shadow
   so the thicker edge doesn't shift layout. --- */
.eco-card { transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease; }
.eco-card:hover { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--accent); background: var(--bg-raise); }
.eco-card.dark:hover { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--accent); background: var(--bg-press); }

/* --- flatten brutalist offset-shadows + soften heavy borders --- */
.what-grid,
.pillars.is-columns .pillar,
.eco-card,
.eco-card.dark,
.channels-zone .eco-card,
.channels-zone .eco-card.dark,
.metric-grid,
.chart-card,
.chart-card.dark,
.livestream-box,
.boundary,
.level-card,
.poster--dark { box-shadow: none; }
.pillars.is-columns .pillar:hover,
.level-card:hover { transform: none; box-shadow: none; }
.btn-ghost:hover { box-shadow: none; }
.what-grid,
.metric-grid,
.level-card,
.eco-card,
.chart-card,
.boundary,
.livestream-box,
.live-phase,
.test-card,
.section-head { border-width: 1px; }

/* --- section index row (numbered eyebrow + cross + leader) --- */
.section-index {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.section-index .idx {
  font-family: var(--font-num);
  font-size: 17px;
  color: var(--accent);
  line-height: 1;
}
/* numbered cell header (what-grid) */
.cell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cell-top .num { font-size: 16px; }

/* --- registration cross (CSS-drawn; no glyph dependency) --- */
.reg-cross {
  position: relative;
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  color: var(--accent);
  vertical-align: middle;
  flex: none;
}
.reg-cross::before,
.reg-cross::after { content: ""; position: absolute; background: currentColor; }
.reg-cross::before { left: 50%; top: 0; width: 1.6px; height: 100%; transform: translateX(-50%); }
.reg-cross::after { top: 50%; left: 0; height: 1.6px; width: 100%; transform: translateY(-50%); }
.reg-cross--spin { animation: tgpSpin 14s linear infinite; }
.reg-cross--lg { width: 1.4em; height: 1.4em; }

/* --- static dashed leader line (marching animation retired) --- */
.leader-line {
  flex: 1;
  min-width: 32px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-hard) 0 2px, transparent 2px 9px);
  background-size: 9px 1px;
}

/* --- blinking live dot + NE arrow --- */
.blink-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); display: inline-block;
  animation: tgpBlink 2.4s ease-in-out infinite;
}
.arrow-ne {
  display: inline-block; position: relative;
  width: 12px; height: 12px; vertical-align: middle;
}
.arrow-ne::before {
  content: ""; position: absolute; left: 1px; bottom: 1px;
  width: 14px; height: 2px; background: currentColor;
  transform-origin: left bottom; transform: rotate(-45deg);
}
.arrow-ne::after {
  content: ""; position: absolute; right: 0; top: 0;
  width: 7px; height: 7px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
}
/* east arrow (latin font subsets lack U+2192) */
.arrow-e {
  display: inline-block; position: relative;
  width: 1.05em; height: 0.62em; vertical-align: middle;
}
.arrow-e::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 100%; height: 2px; background: currentColor; transform: translateY(-50%);
}
.arrow-e::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 6px; height: 6px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* --- FIG.01 scan-frame (hero athlete panel) --- */
.scan-frame {
  position: relative;
  background: var(--paper-0);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  padding: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  color: #14110F;
}
.scan-frame__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #14110F;
}
.scan-frame__caption--top { border-bottom: 1px solid rgba(20, 17, 15, 0.2); padding: 2px 4px 9px; margin-bottom: 9px; }
.scan-frame__caption--bottom { border-top: 1px solid rgba(20, 17, 15, 0.2); padding: 9px 4px 2px; margin-top: 9px; }
.scan-frame__caption .accent { color: var(--accent); }
.scan-frame__media {
  position: relative;
  overflow: hidden;
  background: var(--paper-0);
  height: clamp(380px, 52vh, 600px);
}
.scan-frame__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 16%;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.12);
}
.scan-line {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: tgpScan 5.5s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
.corner-brackets b {
  position: absolute; width: 18px; height: 18px; display: block;
}
.corner-brackets b.tl { left: 6px; top: 6px; border-left: 2px solid var(--accent); border-top: 2px solid var(--accent); }
.corner-brackets b.tr { right: 6px; top: 6px; border-right: 2px solid var(--accent); border-top: 2px solid var(--accent); }
.corner-brackets b.bl { left: 6px; bottom: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); }
.corner-brackets b.br { right: 6px; bottom: 6px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); }
.scan-frame__regmark {
  position: absolute; left: -12px; top: -12px;
  width: 26px; height: 26px; font-size: 22px;
}

/* --- plain framed figure (keeps full-colour artwork; no grayscale) --- */
.poster-figure {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-raise);
}
.poster-figure img { display: block; width: 100%; height: auto; }
.poster-figure__cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 9px 12px;
  border-top: 1px solid var(--line);
}
.poster-figure__cap .accent { color: var(--accent); }

/* --- ghost watermark word --- */
.ghost-word {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-soft);
  pointer-events: none;
  user-select: none;
  line-height: 0.7;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  z-index: 0;
}
.ghost-word--mirror { transform: scaleX(-1); }
.has-ghost { overflow: hidden; }
/* keep readable content above ghost watermarks (ghost = z-index:0 in .section) */
.section-head,
.project-grid,
.pillars,
.powered,
.ecosystem,
.partners-simple,
.what-grid,
.hero-grid,
.hero-meta,
.hero-strip,
.live-header-grid,
.metric-grid,
.final-cta > *:not(.closing-logo) { position: relative; z-index: 1; }

/* --- top scroll progress bar --- */
.progress-bar {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--accent);
  z-index: 95;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* --- closing floating logo watermark --- */
.closing-logo {
  position: absolute;
  right: clamp(-30px, -1vw, 10px);
  bottom: -6%;
  width: clamp(200px, 28vw, 420px);
  opacity: 0.14;
  pointer-events: none;
  animation: tgpFloat 6s ease-in-out infinite;
  z-index: 0;
}
.footer-logo { height: 40px; width: auto; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.03em;
  line-height: 0.86;
  text-transform: uppercase;
  color: var(--fg);
}
.final-cta-lede {
  margin: 26px auto 0;
  max-width: 46ch;
  text-align: center;
  color: var(--fg-soft);
}

/* --- retire torn-paper / scribble closing decorations --- */
.final-cta::before,
.cta-strip,
.cta-arrows,
.cta-crown { display: none !important; }
.final-cta { color: var(--fg); }

/* --- refinement: responsive + reduced-motion --- */
@media (max-width: 720px) {
  .scan-frame__media { height: clamp(300px, 62vw, 460px); }
}
@media (max-width: 760px) {
  .nav-tag { display: none; }
}
@media (max-width: 600px) {
  .ghost-word { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scan-line, .leader-line, .reg-cross--spin, .progress-bar,
  .blink-dot, .closing-logo { animation: none !important; }
  .scan-line { opacity: 0; }
}

/* ==========================================================================
   HOME REBRAND — bold editorial main page (scoped to .rebrand / .rb).
   Big Shoulders (display + numbers) · JetBrains Mono (labels) · Archivo (body).
   Built from the rebrand handoff: duotone magenta hero, rgbsplit glitch,
   animated grain, telemetry, horizon footer. Other pages are untouched.
   ========================================================================== */
.rebrand {
  --rb-ink: #0b0a0a;          /* near-black base */
  --rb-paper: #efeae0;        /* warm paper */
  --rb-line: #1c1a1a;         /* solid 2px grid borders */
  --rb-muted: #b9b3a6;        /* body text on dark */
  --rb-faint: #6f6a61;        /* labels on dark */
  --rb-ink-soft: #2a2724;     /* body text on paper */
  --rb-cyan: #16d0ff;         /* glitch companion to magenta */
  background: var(--rb-ink);
}
.rebrand .rb { background: var(--rb-ink); }

/* ---- rebrand keyframes ---- */
@keyframes rbGrain {
  0%,100% { transform: translate(0,0); }
  10% { transform: translate(-4%,-4%); }   20% { transform: translate(-8%,4%); }
  30% { transform: translate(4%,-8%); }    40% { transform: translate(-4%,10%); }
  50% { transform: translate(-8%,4%); }    60% { transform: translate(10%,0); }
  70% { transform: translate(0,6%); }      80% { transform: translate(-10%,0); }
  90% { transform: translate(6%,3%); }
}
@keyframes rbSplit {
  0%,92%,100% { text-shadow: none; transform: translate(0,0); }
  93% { text-shadow: -3px 0 var(--accent), 3px 0 var(--rb-cyan); transform: translate(2px,0); }
  95% { text-shadow: 3px 0 var(--accent), -3px 0 var(--rb-cyan); transform: translate(-2px,0); }
  97% { text-shadow: -2px 0 var(--accent), 2px 0 var(--rb-cyan); transform: translate(1px,0); }
}
@keyframes rbScanY { from { top: -6%; } to { top: 106%; } }
@keyframes rbBlink { 0%,49% { opacity: 1; } 50%,100% { opacity: .15; } }

/* ---- animated film grain (full screen, home only) ---- */
.grain { display: none; }
.rebrand .grain {
  display: block;
  position: fixed; inset: 0; z-index: 4;
  width: 200%; height: 200%;
  pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}
html.motion .rebrand .grain { animation: rbGrain .5s steps(2) infinite; }

/* ---- shared helpers ---- */
.rb .rb-mono {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.5;
}
.rb .rb-faint { color: var(--rb-faint); }
.rb .rb-accent, .rb .accent { color: var(--accent); }
.rb .rb-kicker {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1vw, 13px); letter-spacing: 0.22em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 14px;
}
.rb .rb-kicker--accent { color: var(--accent); }
.rb .rb-kicker__tick { width: 30px; height: 2px; background: var(--accent); display: inline-block; }

/* ============ HERO ============ */
.rb-hero {
  position: relative;
  display: grid; grid-template-columns: 1.35fr 0.9fr;
  min-height: clamp(580px, calc(100vh - 64px), 1000px);
  overflow: hidden;
  border-bottom: 2px solid var(--rb-line);
}
.rb-hero__ghost {
  position: absolute; top: 6%; left: -4%; z-index: 0;
  font-family: var(--font-display); font-weight: 900; font-size: 34vw; line-height: 0.8;
  letter-spacing: -0.03em; color: transparent;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--accent) 18%, transparent);
  text-stroke: 2px color-mix(in srgb, var(--accent) 18%, transparent);
  pointer-events: none; user-select: none;
}
.rb-hero__body {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 64px) 48px;
}
.rb-hero__body .rb-kicker { margin-bottom: 30px; }
.rb-hero__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(46px, 8.4vw, 138px); line-height: 0.86; letter-spacing: -0.012em;
  text-transform: uppercase; color: var(--fg); margin: 0;
}
/* signature glitch — periodic chromatic-aberration (magenta/cyan) on the headline.
   The .line padding (~8px at this font size) contains the ±3px shadow, so the
   clip-up reveal mask (overflow:hidden) and the glitch coexist without clipping. */
html.motion .rb-hero__title[data-glitch] { animation: rbSplit 7s infinite; }
.rb-hero__lede {
  max-width: 46ch; margin-top: clamp(26px, 3vw, 36px);
  font-family: var(--font-body); font-size: clamp(15px, 1.5vw, 19px); line-height: 1.55;
  color: var(--rb-muted);
}
.rb-hero__lede strong { color: var(--fg); font-weight: 600; }
.rb-hero__cue {
  margin-top: clamp(30px, 4vw, 46px);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rb-faint); display: inline-flex; align-items: center; gap: 12px;
}
.rb-hero__arrow { display: inline-block; }
html.motion .rb-hero__cue .rb-hero__arrow { animation: tgpFloat 1.8s ease-in-out infinite; }

/* duotone magenta athlete panel */
.rb-hero__panel {
  position: relative; z-index: 1; overflow: hidden;
  background: var(--accent); border-left: 2px solid var(--rb-line);
  min-height: 360px;
}
.rb-hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 16%;
  mix-blend-mode: multiply; filter: grayscale(1) contrast(1.12);
}
.rb-hero__grad {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,10,10,.35) 0%, transparent 28%, transparent 70%, rgba(11,10,10,.5) 100%);
}
.rb-hero__scan {
  position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: rgba(255,255,255,.55); box-shadow: 0 0 14px rgba(255,255,255,.5);
  pointer-events: none;
}
html.motion .rb-hero__scan { animation: rbScanY 12s linear infinite; }
.rb-hero__chip {
  position: absolute; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  font-weight: 700; color: var(--rb-ink);
}
.rb-hero__chip--tl { top: 18px; left: 18px; }
.rb-hero__chip-row {
  position: absolute; bottom: 20px; left: 18px; right: 18px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; font-weight: 700;
  text-transform: uppercase; color: var(--rb-ink);
  border-top: 1px solid rgba(11,10,10,.4); padding-top: 10px;
}
.rb-hero__vlabel {
  position: absolute; top: 44%; right: 16px; writing-mode: vertical-rl;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em;
  color: rgba(11,10,10,.6);
}

/* ============ PREMISE ============ */
.rb-premise {
  background: var(--rb-paper); color: var(--rb-ink);
  padding: clamp(72px, 14vh, 160px) clamp(20px, 6vw, 120px);
}
.rb-premise .rb-kicker { color: var(--accent); margin-bottom: 34px; }
.rb-premise__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px, 6vw, 92px); line-height: 0.94; letter-spacing: -0.01em;
  text-transform: uppercase; max-width: 20ch;
}
.rb-premise__cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 72px); margin-top: 56px; max-width: 1200px;
}
.rb-premise__cols p {
  font-family: var(--font-body); font-size: clamp(15px, 1.5vw, 20px); line-height: 1.6;
  color: var(--rb-ink-soft);
}
.rb-premise__cols strong { font-weight: 700; }

/* ============ PILLARS ============ */
.rb-pillars {
  background: var(--rb-ink);
  padding: clamp(64px, 10vh, 124px) clamp(20px, 6vw, 120px);
}
.rb-pillars__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 20px; margin-bottom: 30px; padding-bottom: 24px; border-bottom: 2px solid var(--rb-line);
}
.rb-pillars__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(30px, 5vw, 74px); line-height: 0.9; text-transform: uppercase;
}
.rb-pillar {
  display: grid; grid-template-columns: 140px 1.2fr 1.6fr; gap: clamp(16px, 3vw, 50px);
  align-items: start; padding: clamp(28px, 4vw, 52px) clamp(8px, 1.5vw, 22px);
  border-bottom: 2px solid var(--rb-line);
  transition: background .35s ease;
}
html.motion .rb-pillar:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.rb-pillar__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(44px, 6vw, 90px); line-height: 0.8; color: var(--accent);
}
.rb-pillar__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 3.4vw, 52px); line-height: 0.92; text-transform: uppercase;
}
.rb-pillar__tag { margin-bottom: 14px; }
.rb-pillar__txt p:last-child {
  font-family: var(--font-body); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.6;
  color: var(--rb-muted); max-width: 52ch;
}
.rb-pillar__txt em { color: var(--fg); font-style: normal; font-weight: 600; }

/* ============ TELEMETRY ============ */
.rb-telemetry {
  background: var(--rb-ink);
  padding: clamp(64px, 10vh, 124px) clamp(20px, 6vw, 120px);
  border-top: 2px solid var(--rb-line);
}
.rb-tel {
  position: relative; border: 2px solid var(--rb-line);
  background: linear-gradient(180deg, #0e0d0d, var(--rb-ink)); overflow: hidden;
}
.rb-tel__scan {
  position: absolute; left: 0; top: 0; width: 100%; height: 1px;
  background: color-mix(in srgb, var(--accent) 42%, transparent); pointer-events: none;
}
html.motion .rb-tel__scan { animation: rbScanY 7s linear infinite; }
.rb-tel__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px;
  padding: 18px clamp(18px, 3vw, 40px); border-bottom: 2px solid var(--rb-line);
}
.rb-tel__live {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg);
}
.rb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }
html.motion .rb-dot { animation: rbBlink 1.2s infinite; }
.rb-tel__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.rb-tel__stat {
  padding: clamp(26px, 3vw, 46px) clamp(18px, 3vw, 40px);
  border-right: 2px solid var(--rb-line); border-bottom: 2px solid var(--rb-line);
}
.rb-tel__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(44px, 6vw, 80px); line-height: 0.85; color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.rb-tel__num--accent { color: var(--accent); }
.rb-tel__stat p { margin-top: 10px; color: var(--rb-faint); }
.rb-tel__bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rb-tel__bar {
  padding: 22px clamp(18px, 3vw, 40px); border-right: 2px solid var(--rb-line);
  display: flex; flex-direction: column; gap: 10px;
}
.rb-tel__bar-top {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 12px; color: var(--rb-muted);
}
.rb-tel__bar-top span span.num { color: var(--fg); }
.rb-tel__track { height: 6px; background: var(--rb-line); }
.rb-tel__fill { display: block; height: 100%; background: var(--accent); }
.rb-tel__note { margin-top: 18px; color: var(--rb-faint); letter-spacing: 0.12em; }
.rb-tel__note a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }

/* ============ STANDS FOR ============ */
.rb-stands {
  background: var(--rb-ink);
  padding: clamp(64px, 10vh, 124px) clamp(20px, 6vw, 120px);
  border-top: 2px solid var(--rb-line);
}
.rb-stands__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(30px, 5vw, 74px); line-height: 0.9; text-transform: uppercase;
  margin-bottom: 48px;
}
.rb-stands__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px; background: var(--rb-line); border: 2px solid var(--rb-line);
}
.rb-stands__cell { background: var(--rb-ink); padding: clamp(26px, 3vw, 42px); }
.rb-stands__idx {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  display: block; margin-bottom: 20px;
}
.rb-stands__cell h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(24px, 2.6vw, 38px); text-transform: uppercase; margin-bottom: 14px;
}
.rb-stands__cell p {
  font-family: var(--font-body); font-size: 14px; line-height: 1.55; color: var(--rb-muted);
}

/* ============ HORIZON FOOTER ============ */
.rb-horizon {
  background: var(--accent); color: var(--rb-ink); overflow: hidden;
}
.rb-horizon .rb-mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.rb-horizon__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px; align-items: end;
  padding: clamp(48px, 8vh, 88px) clamp(20px, 6vw, 120px) 30px;
}
.rb-horizon__year { display: flex; flex-direction: column; gap: 8px; }
.rb-horizon__big {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(70px, 11vw, 150px); line-height: 0.8; color: var(--rb-ink);
}
.rb-horizon__brand { display: flex; justify-content: flex-end; }
.rb-horizon__logo { width: min(200px, 40vw); height: auto; mix-blend-mode: multiply; }
.rb-horizon__nav {
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  padding: 4px clamp(20px, 6vw, 120px) 0;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
}
.rb-horizon__nav a { color: var(--rb-ink); text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.rb-horizon__nav a:hover { border-bottom-color: var(--rb-ink); }
.rb-horizon__legal {
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between;
  padding: 24px clamp(20px, 6vw, 120px) 40px; margin-top: 28px;
  border-top: 2px solid var(--rb-ink);
  font-size: 10px; letter-spacing: 0.1em; line-height: 1.7;
}
.rb-horizon__legal p:first-child { max-width: 62ch; }
.rb-horizon__legal p:last-child { text-align: right; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .rb-hero { grid-template-columns: 1fr; }
  .rb-hero__panel { order: -1; min-height: clamp(320px, 56vh, 520px); border-left: none; border-bottom: 2px solid var(--rb-line); }
  .rb-hero__body { padding-top: clamp(40px, 7vh, 70px); }
  .rb-pillar { grid-template-columns: 90px 1fr; }
  .rb-pillar__txt { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .rb-hero__ghost { font-size: 46vw; }
  .rb-pillar { grid-template-columns: 1fr; gap: 14px; }
  .rb-horizon__legal p:last-child { text-align: left; }
}

/* ---- reduced-motion safety net (html.motion already gates most) ---- */
@media (prefers-reduced-motion: reduce) {
  .rebrand .grain, .rb-hero__title, .rb-hero__scan, .rb-tel__scan, .rb-dot,
  .rb-hero__cue .rb-hero__arrow { animation: none !important; }
  .rb-hero__scan, .rb-tel__scan { opacity: 0; }
}

/* ==========================================================================
   HOME — full [00]–[08] structure (extends the rebrand system above)
   ========================================================================== */
:root { --rb-paper-line: rgba(11,10,10,0.16); }

/* shared section primitives */
.rb-kicker { margin-bottom: clamp(28px, 4vw, 44px); }
.rb-section-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(32px, 5.4vw, 82px); line-height: 0.9; letter-spacing: -0.012em;
  text-transform: uppercase;
}
.rb-section--paper { background: var(--rb-paper); color: var(--rb-ink); }
.rb-science, .rb-content, .rb-athlete { background: var(--rb-paper); color: var(--rb-ink); }
.rb-tease, .rb-pw, .rb-closing { background: var(--rb-ink); color: var(--fg); }
.rb-science, .rb-content, .rb-athlete,
.rb-tease, .rb-pw, .rb-closing {
  padding: clamp(64px, 10vh, 124px) clamp(20px, 6vw, 120px);
  border-top: 2px solid var(--rb-line);
}
.rb-science .rb-kicker, .rb-content .rb-kicker, .rb-athlete .rb-kicker { color: var(--accent); }

/* hero — integrated tracker pill */
.rb-hero__actions { margin-top: clamp(30px, 4vw, 46px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.rb-hero__cue { margin-top: 0; }
.rb-tracker-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg); text-decoration: none;
  border: 1px solid var(--line-hard); padding: 9px 16px;
  transition: border-color .25s, background .25s;
}
.rb-tracker-pill:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.rb-tracker-pill .rb-dot { width: 8px; height: 8px; }
html.motion .rb-tracker-pill .rb-dot { animation: rbBlink 1.4s infinite; }

/* [01] premise — value cells on paper */
.rb-values {
  margin-top: clamp(44px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 2px solid var(--rb-ink); border-left: 1px solid var(--rb-paper-line);
}
.rb-value { padding: clamp(22px, 2.4vw, 32px); border-right: 1px solid var(--rb-paper-line); border-bottom: 1px solid var(--rb-paper-line); }
.rb-value__idx { font-family: var(--font-mono); font-size: 12px; color: var(--accent); display: block; margin-bottom: 16px; }
.rb-value h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 2.2vw, 30px); text-transform: uppercase; margin-bottom: 10px; }
.rb-value p { font-family: var(--font-body); font-size: 13.5px; line-height: 1.55; color: var(--rb-ink-soft); }

/* [03] science — lead + numbered list (paper) */
.rb-science .rb-section-title { margin-bottom: clamp(36px, 5vw, 60px); }
.rb-science__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(32px, 5vw, 80px); align-items: start; }
.rb-science__lead p { font-family: var(--font-body); font-size: clamp(15px, 1.5vw, 19px); line-height: 1.6; color: var(--rb-ink-soft); margin-bottom: 20px; max-width: 56ch; }
.rb-science__lead a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }
.rb-science__list { list-style: none; border-top: 2px solid var(--rb-ink); }
.rb-science__list li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--rb-paper-line); font-family: var(--font-body); font-size: 14px; line-height: 1.55; color: var(--rb-ink-soft); }
.rb-science__list strong { color: var(--rb-ink); font-weight: 700; }
.rb-science__idx { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--accent); line-height: 1; }

/* [04] tracker tease (dark) */
.rb-tease__grid { display: grid; grid-template-columns: 0.78fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.rb-tease__media { position: relative; margin: 0; overflow: hidden; border: 2px solid var(--rb-line); background: var(--accent); aspect-ratio: 1/1; }
.rb-tease__media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.1); display: block; }
.rb-tease__media figcaption { position: absolute; left: 14px; bottom: 12px; color: var(--rb-ink); font-size: 10px; letter-spacing: 0.16em; }
.rb-tease__scan { position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: rgba(255,255,255,.5); box-shadow: 0 0 14px rgba(255,255,255,.45); }
html.motion .rb-tease__scan { animation: rbScanY 9s linear infinite; }
.rb-tease__body .rb-section-title { margin-bottom: 18px; }
.rb-tease__body > p { font-family: var(--font-body); font-size: clamp(15px, 1.5vw, 19px); line-height: 1.6; color: var(--rb-muted); max-width: 50ch; }
.rb-tease__stats { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(20px, 4vw, 52px); margin: 30px 0; }
.rb-tease__stat .rb-tel__num { font-size: clamp(34px, 4.4vw, 60px); }
.rb-tease__stat p { margin-top: 6px; }

/* [05] content ecosystem (paper) */
.rb-content .rb-section-title { margin-bottom: clamp(36px, 5vw, 56px); }
.rb-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.rb-channel { border: 1px solid var(--rb-paper-line); border-top: 3px solid var(--accent); padding: clamp(26px, 3vw, 40px); }
.rb-channel--dark { background: var(--rb-ink); color: var(--fg); }
.rb-channel__head { display: block; margin-bottom: 18px; }
.rb-channel__name { font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 3.4vw, 46px); text-transform: uppercase; line-height: 0.9; }
.rb-channel__tag { font-family: var(--font-body); font-style: italic; margin: 10px 0 16px; color: var(--rb-faint); }
.rb-channel:not(.rb-channel--dark) .rb-channel__tag { color: #6f6a61; }
.rb-channel__copy { font-family: var(--font-body); font-size: 14px; line-height: 1.6; color: var(--rb-ink-soft); }
.rb-channel--dark .rb-channel__copy { color: var(--rb-muted); }
.rb-channel__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rb-paper-line); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.rb-channel--dark .rb-channel__links { border-top-color: var(--rb-line); }
.rb-channel__links a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.rb-channel__links a:hover { color: var(--accent); }

/* [06] partners word (dark) */
.rb-pw__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.rb-pw__body p { font-family: var(--font-body); font-size: clamp(15px, 1.5vw, 19px); line-height: 1.6; color: var(--rb-muted); margin-bottom: 18px; max-width: 52ch; }
.rb-pw__body .btn { margin-top: 12px; }

/* [07] about the athlete (paper) */
.rb-athlete__grid { display: grid; grid-template-columns: 0.7fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.rb-athlete__media { margin: 0; overflow: hidden; border: 2px solid var(--rb-ink); background: var(--accent); aspect-ratio: 4/5; }
.rb-athlete__media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.1); display: block; }
.rb-athlete__body .rb-section-title { font-size: clamp(48px, 7vw, 110px); margin-bottom: 18px; }
.rb-athlete__body > p { font-family: var(--font-body); font-size: clamp(15px, 1.5vw, 19px); line-height: 1.6; color: var(--rb-ink-soft); max-width: 48ch; }
.rb-athlete__specs { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 2px solid var(--rb-ink); }
.rb-athlete__specs > div { padding: 16px 0; border-bottom: 1px solid var(--rb-paper-line); }
.rb-athlete__specs dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #6f6a61; margin-bottom: 6px; }
.rb-athlete__specs dd { font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 2vw, 26px); text-transform: uppercase; }

/* [08] closing (dark) */
.rb-closing { text-align: left; }
.rb-closing__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(34px, 6vw, 100px); line-height: 0.9; letter-spacing: -0.012em; text-transform: uppercase; margin-bottom: clamp(40px, 6vw, 72px); }
.rb-closing__years { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; align-items: end; padding-bottom: 40px; border-bottom: 2px solid var(--rb-line); }
.rb-closing__year { display: flex; flex-direction: column; gap: 8px; }
.rb-closing__big { font-family: var(--font-display); font-weight: 900; font-size: clamp(70px, 11vw, 150px); line-height: 0.8; color: var(--fg); }
.rb-closing__year:first-child .rb-closing__big { color: var(--accent); }
.rb-closing__lede { font-family: var(--font-body); font-size: clamp(15px, 1.6vw, 20px); line-height: 1.6; color: var(--rb-muted); max-width: 52ch; margin: -24px 0 30px; }
.rb-closing__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* home responsive */
@media (max-width: 860px) {
  .rb-tease__grid, .rb-pw__grid, .rb-athlete__grid { grid-template-columns: 1fr; }
  .rb-tease__media { aspect-ratio: 16/10; }
  .rb-athlete__media { aspect-ratio: 16/11; max-height: 60vh; }
}
@media (max-width: 560px) {
  .rb-tease__stats { grid-template-columns: 1fr 1fr; gap: 22px; }
  .rb-science__list li { grid-template-columns: 40px 1fr; gap: 12px; }
}

/* ==========================================================================
   LIVE TRACKER (/live) — rebrand data-readout (reuses existing tracker comps)
   ========================================================================== */
.rb-live-head {
  background: var(--rb-ink); color: var(--fg);
  padding: clamp(64px, 11vh, 130px) clamp(20px, 6vw, 120px) clamp(28px, 4vw, 44px);
}
.rb-live-head__top {
  display: grid; grid-template-columns: 1.4fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: end;
}
.rb-live-head__intro .rb-kicker { align-items: center; }
.rb-live-head__intro .rb-dot { width: 8px; height: 8px; }
html.motion .rb-live-head__intro .rb-dot { animation: rbBlink 1.2s infinite; }
.rb-live-head__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(40px, 7vw, 112px); line-height: 0.86; letter-spacing: -0.012em;
  text-transform: uppercase; margin: 0;
}
.rb-live-phase { border: 2px solid var(--line-hard); padding: clamp(18px, 2vw, 26px); }
.rb-live-phase > .rb-mono { display: block; color: var(--rb-faint); }
.rb-live-phase__name {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 2.4vw, 34px); text-transform: uppercase; color: var(--accent);
  margin: 6px 0 14px;
}
.rb-live-phase__dates { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.rb-live-note {
  margin-top: clamp(28px, 4vw, 44px); padding-top: 16px; border-top: 1px solid var(--rb-line);
  color: var(--rb-faint); letter-spacing: 0.1em; line-height: 1.7;
}

.rb-data {
  background: var(--rb-ink); color: var(--fg);
  padding: clamp(56px, 9vh, 110px) clamp(20px, 6vw, 120px);
  border-top: 2px solid var(--rb-line);
}
.rb-data--sub { padding-top: clamp(40px, 6vh, 70px); border-top-style: dashed; }
.rb-data .rb-section-title { margin-bottom: clamp(32px, 4vw, 52px); }

/* [04] research placeholder */
.rb-research {
  border: 2px solid var(--rb-line); background: linear-gradient(180deg, #0e0d0d, var(--rb-ink));
  padding: clamp(36px, 6vw, 80px) clamp(24px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
}
.rb-research p {
  font-family: var(--font-body); font-size: clamp(16px, 1.8vw, 22px); line-height: 1.5;
  color: var(--rb-muted); max-width: 56ch;
}

@media (max-width: 820px) {
  .rb-live-head__top { grid-template-columns: 1fr; align-items: start; }
}

/* legal pages — subdued & readable, with a rebrand mono kicker */
.rebrand .legal-page .page-header .eyebrow {
  font-family: var(--font-mono); color: var(--accent);
  letter-spacing: 0.2em; font-weight: 500;
}
.rebrand .legal-inner h2 { letter-spacing: -0.005em; }
