/* SolveXI company site · 2026-10 direction (spec: site/REDESIGN.md, tokens recorded in ../DESIGN.md)
   Near black ground with a faint 64px hairline grid, lime accent, Inter Tight headlines,
   IBM Plex Mono uppercase labels, rounded dark panels with 1px hairlines, no shadows.
   Motion: every initial (hidden) state lives inside `prefers-reduced-motion: no-preference`
   and behind `html.js`, so reduced motion and no JS both show the end state.
   v3 (2026-10-17, spec: site/SITE_V3.md): shared by index.html, sample.html and technology.html
   (replay.html may reuse the chrome). New components sit in the "v3" block below the footer rules. */

:root {
  --bg: #0A0B09;
  --panel: #111310;
  --panel-2: #161915;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.26);
  --pitch-line: rgba(255, 255, 255, 0.22);
  --text: #F2F2EE;
  --text-2: #D3D5CC;
  --muted: #9A9C94;            /* 7.0:1 on --bg, 6.5:1 on --panel-2 */
  --lime: #D4F36B;
  --lime-2: #E3FA94;
  --lime-dim: rgba(212, 243, 107, 0.14);
  --lime-line: rgba(212, 243, 107, 0.42);
  --blue: #8EC5F5;
  --red: #FF5A4E;
  --pitch: #0E1610;

  --f-head: "Inter Tight", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --text-hero: clamp(2.1rem, 0.2rem + 4.7vw, 4.5rem);
  --text-display: clamp(2rem, 1.15rem + 2.7vw, 3.5rem);
  --text-title: clamp(1.15rem, 1.05rem + 0.4vw, 1.375rem);
  --text-body: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --r: 10px;
  --r-sm: 6px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  background: transparent; /* the ground lives on html, so the fixed grid layers (z-index < 0) show through */
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Page grid: fixed 64px hairlines at about 4%. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, rgba(0,0,0,.55) 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 70%, rgba(0,0,0,.55) 100%);
}
/* Cursor spotlight: main.js adds .spot on fine pointers only, never under reduced motion. */
.spot {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity 0.6s var(--ease);
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(212, 243, 107, 0.07), transparent 70%),
    linear-gradient(rgba(212, 243, 107, 0.22) 1px, transparent 1px) center top / 64px 64px,
    linear-gradient(90deg, rgba(212, 243, 107, 0.22) 1px, transparent 1px) center top / 64px 64px;
  -webkit-mask-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), #000, transparent 75%);
          mask-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), #000, transparent 75%);
}
.spot.on { opacity: 1; }

::selection { background: var(--lime); color: var(--bg); }
a { color: inherit; text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 12px; text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; letter-spacing: -0.02em; margin: 0; color: var(--text); }
h1 { font-size: var(--text-hero); line-height: 0.98; letter-spacing: -0.035em; font-weight: 600; }
h2 { font-size: var(--text-display); line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; margin-bottom: 18px; max-width: 18ch; }
h3 { font-size: var(--text-title); line-height: 1.2; margin-bottom: 8px; }
h4 { font-size: 1.0625rem; line-height: 1.3; margin-bottom: 6px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Focus: one lime ring everywhere. */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
main:focus-visible { outline: none; } /* skip link target: focus moves, no ring around the whole page */

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 80;
  background: var(--lime); color: var(--bg); padding: 10px 14px; border-radius: var(--r-sm);
  font-family: var(--f-mono); font-size: 13px; text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- Labels ---------- */
.idx {
  display: flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime);
}
.idx b { font-weight: 500; color: var(--muted); }
.idx b::after { content: "·"; margin-left: 10px; color: var(--muted); }
.lede { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--muted); line-height: 1.6; max-width: 56ch; }
.lede p { margin-bottom: 14px; }
.micro { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--muted); margin: 12px 0 0; line-height: 1.55; }
.textlink { color: var(--lime); text-decoration: underline; text-decoration-color: var(--lime-line); }
.textlink:hover { text-decoration-color: var(--lime); }
ul.plain { list-style: none; margin: 0; padding: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: var(--r-sm);
  background: var(--lime); color: var(--bg); border: 1px solid var(--lime);
  font-family: var(--f-body); font-weight: 500; font-size: 15px; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--lime-2); border-color: var(--lime-2); }
.btn:active { transform: translateY(1px); }
.btn .arrow { display: inline-block; transition: transform 0.25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost { background: rgba(10, 11, 9, 0.4); color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--line-3); background: rgba(255, 255, 255, 0.04); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; }

/* ---------- Announce + header ---------- */
.announce {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 9px var(--gutter); border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted);
  background: rgba(10, 11, 9, 0.9);
}
.announce b { color: var(--lime); font-weight: 500; }
.announce a { color: var(--text); }
.announce a:hover { color: var(--lime); }
.pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); margin-right: 10px; vertical-align: 1px; position: relative; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--lime); opacity: 0; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px var(--gutter); min-height: 64px;
  background: rgba(10, 11, 9, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 2px; text-decoration: none;
  font-family: var(--f-head); font-weight: 700; font-size: 15px; letter-spacing: 0.2em; color: var(--text);
}
.wordmark .xi { color: var(--lime); }
.logo-box {
  width: 24px; height: 24px; margin-right: 10px; border-radius: 5px; flex: none;
  border: 1px solid var(--lime-line); position: relative; background: rgba(212, 243, 107, 0.06);
}
.logo-box::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--lime); }
.site-nav { display: flex; align-items: center; gap: 28px; min-width: 0; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.2s var(--ease);
}
.site-nav ul a:hover { color: var(--text); }
.menu-toggle {
  display: none; min-height: 40px; padding: 0 14px; border-radius: var(--r-sm);
  background: transparent; border: 1px solid var(--line-2); cursor: pointer;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 7vw, 104px) 0; position: relative; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.panel-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(20px, 2.4vw, 28px);
}

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 80px); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: clamp(28px, 4vw, 64px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px;
  padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(17, 19, 16, 0.8);
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2);
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.pill b { color: var(--lime); font-weight: 500; }
.hero h1 .l1, .hero h1 .l2 { display: block; }
.hero h1 .l2 { color: var(--lime); }
.hero-side .lede { margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-alt { margin: 18px 0 0; font-size: 15px; color: var(--muted); }

/* Live panel. hero.js appends <svg viewBox="0 0 1600 760"> into #hero-pitch. */
.live {
  position: relative; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden;
}
.live-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.live-dot { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.chips { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.chip {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px; min-height: 28px; border-radius: var(--r-sm); cursor: pointer;
  background: transparent; color: var(--muted); border: 1px solid var(--line-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-3); }
.chip[aria-pressed="true"] { background: var(--lime-dim); color: var(--lime); border-color: var(--lime-line); }
.live-stage { position: relative; aspect-ratio: 1600 / 760; background: var(--pitch); }
.live-stage > svg, .board > svg, #pilot-screen > svg { display: block; width: 100%; height: 100%; }
/* Placeholder while a scene mount is still empty: a faint drawn pitch. */
.live-stage:empty, .board:empty, #pilot-screen:empty {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 46px, var(--line-2) 46px 47px, transparent 48px),
    linear-gradient(90deg, transparent calc(50% - 0.5px), var(--line-2) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    repeating-linear-gradient(90deg, rgba(212, 243, 107, 0.022) 0 9.0909%, transparent 9.0909% 18.1818%),
    linear-gradient(180deg, #0F1811, #0C130E);
  box-shadow: inset 0 0 0 14px var(--pitch), inset 0 0 0 15px var(--line-2);
}
.live-card {
  position: absolute; bottom: 16px; z-index: 2; max-width: 340px;
  display: grid; gap: 4px; padding: 14px 16px;
  background: rgba(10, 11, 9, 0.86); border: 1px solid var(--line-2); border-radius: var(--r);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 14px; color: var(--muted);
}
.live-card.left { left: 16px; }
.live-card.right { right: 16px; width: 340px; }
.live-card .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.live-card b { font-family: var(--f-mono); font-weight: 500; font-size: 14px; color: var(--text); }
.live-card.left b { color: var(--lime); }

.card-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.card-head span { min-width: 0; }
.k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; }
.count { font-family: var(--f-mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.count b { color: var(--lime); font-weight: 500; font-size: 15px; }

/* ---------- Values (sample.html #method) ---------- */
.rungs { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
/* The line runs from the first node to the last one (4 columns, 24px gaps, node centre 20px in). */
.rungs::before, .rungs::after { content: ""; position: absolute; top: 20px; left: 20px; right: calc(25% - 38px); height: 1px; background: var(--line-2); }
.rungs::after { background: var(--lime); transform-origin: left; }
.rung { position: relative; }
.rung .node {
  position: relative; z-index: 1; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--lime-line); color: var(--lime);
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
}
.rung .box { margin-top: 18px; padding-right: 12px; }
.rung p { color: var(--muted); margin: 0; }

/* Section 03 v3: intro split, then the pattern value board (spec: site/METHOD_V3.md).
   scenes/value.js drives the chips, the count ups, the row re-sort and the mini pitch.
   Without JS the table shows the High press values and the mini pitch is hidden. */
.vx-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.vx-intro h2 { max-width: 20ch; margin-bottom: 0; }
.vx-intro .lede { margin: 0; }
.vx-intro .lede p:last-child { margin-bottom: 0; }
.vx-intro .lede strong { color: var(--text); font-weight: 500; }

.vx-board { margin-top: clamp(44px, 5.5vw, 72px); background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.vx-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.vx-title { display: inline-flex; align-items: center; gap: 10px; }
.vx-title b { font-weight: 500; color: var(--text); }
.vx-title i { width: 8px; height: 8px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 10px rgba(212, 243, 107, 0.6); }
.vx-tools { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.012); }
.vx-lbl { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.vx-chips { display: flex; gap: 6px; }
.vx-chip { min-height: 38px; min-width: 64px; padding: 0 16px; font-size: 12px; letter-spacing: 0.12em; }
.vx-chip[aria-pressed="true"] { background: var(--lime); color: var(--bg); border-color: var(--lime); font-weight: 500; }
.vx-chip[aria-pressed="true"]:hover { color: var(--bg); }
html:not(.js) .vx-chip[aria-pressed="false"] { display: none; }

.vx-body { display: grid; grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr); }
html:not(.js) .vx-body { grid-template-columns: minmax(0, 1fr); }
html:not(.js) .vx-viz { display: none; }

/* Mini pitch: the long ball row, drawn per press context. */
.vx-viz { margin: 0; padding: 20px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--line); min-width: 0; }
.vx-viz-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.vx-viz-title b { font-weight: 500; color: var(--lime); }
.vx-legend { display: flex; gap: 14px; }
.vx-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.vx-legend .you { background: var(--lime); }
.vx-legend .opp { background: var(--blue); }
.vx-pitch { position: relative; aspect-ratio: 1090 / 720; border-radius: 8px; border: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 0%, rgba(212, 243, 107, 0.035), transparent 60%), var(--pitch); overflow: hidden; }
.vx-pitch > svg { display: block; width: 100%; height: 100%; }
.vx-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.vx-strip li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-right: 1px solid var(--line); transition: background 0.35s var(--ease); }
.vx-strip li:last-child { border-right: 0; }
.vx-strip li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out); }
.vx-strip li.is-on { background: var(--lime-dim); }
.vx-strip li.is-on::before { transform: scaleX(1); }
.vx-strip li.is-on .vx-k { color: var(--lime); }
.vx-k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: color 0.3s var(--ease); }
.vx-sv { display: flex; align-items: center; gap: 10px; }
.vx-sv b { font-family: var(--f-head); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); }
.vx-strip .vx-low { margin: 0; align-self: flex-start; }

/* Table (img3 styling: mono heads, hairline rows, inline bars). */
.vx-table-wrap { padding: 6px 20px 10px; min-width: 0; }
.vx-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.vx-table thead th { padding: 14px 10px 12px; text-align: left; font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.vx-table tbody th, .vx-table tbody td { padding: 15px 10px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.vx-table thead th:first-child, .vx-table tbody th { padding-left: 12px; }
.vx-table tbody tr:last-child th, .vx-table tbody tr:last-child td { border-bottom: 0; }
.vx-table tbody th { font-family: var(--f-head); font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; line-height: 1.3; color: var(--text); text-wrap: balance; }
.vx-row { position: relative; transition: background 0.25s var(--ease); }
.vx-row:hover { background: rgba(255, 255, 255, 0.025); }
.vx-row.vx-focus { background: rgba(212, 243, 107, 0.045); }
.vx-row.vx-focus th { box-shadow: inset 2px 0 0 var(--lime); }
.vx-tag { display: inline-block; padding: 4px 8px; border-radius: 4px; font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1; border: 1px solid; }
.vx-tag.threat { color: var(--lime); background: var(--lime-dim); border-color: var(--lime-line); }
.vx-tag.leak { color: var(--red); background: rgba(255, 90, 78, 0.1); border-color: rgba(255, 90, 78, 0.42); }
.vx-c-n { font-family: var(--f-mono); font-size: 14px; color: var(--text-2); }
.vx-table thead .vx-c-v { width: 27%; }
.vx-table thead th:first-child { width: 30%; }
.vx-c-v { white-space: nowrap; }
.vx-dbar { position: relative; display: inline-block; vertical-align: middle; width: calc(100% - 52px); min-width: 96px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); }
.vx-dbar::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; margin-left: -0.5px; background: var(--line-3); z-index: 1; }
.vx-dbar i { position: absolute; top: 0; bottom: 0; width: 50%; transform: scaleX(var(--s, 0)); transition: transform 0.75s var(--ease-out); }
.vx-dbar .pos { left: 50%; transform-origin: left; background: var(--lime); border-radius: 0 4px 4px 0; }
.vx-dbar .neg { right: 50%; transform-origin: right; background: var(--red); border-radius: 4px 0 0 4px; }
.vx-v { display: inline-block; vertical-align: middle; width: 44px; text-align: right; font-family: var(--f-head); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; color: var(--text); }
.vx-c-g { white-space: nowrap; }
.vx-g { display: inline-grid; place-items: center; width: 28px; height: 26px; border-radius: 6px; border: 1px solid; font-family: var(--f-mono); font-size: 13px; font-weight: 500; line-height: 1; vertical-align: middle; transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); }
.vx-g.g-a { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.vx-g.g-b { background: var(--lime-dim); color: var(--lime); border-color: var(--lime-line); }
.vx-g.g-c { background: rgba(255, 255, 255, 0.04); color: var(--text-2); border-color: var(--line-3); }
.vx-g.g-d { background: rgba(255, 90, 78, 0.1); color: var(--red); border-color: rgba(255, 90, 78, 0.42); }
.vx-low { display: inline-block; margin-left: 10px; vertical-align: middle; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px dashed rgba(154, 156, 148, 0.6); line-height: 1.3; }
.vx-g.flash { animation: vx-flash 0.6s var(--ease-out); }
@keyframes vx-flash { 0% { transform: scale(1.25); box-shadow: 0 0 0 4px rgba(212, 243, 107, 0.25); } 100% { transform: none; box-shadow: 0 0 0 0 rgba(212, 243, 107, 0); } }
.vx-foot { margin: 0; padding: 14px 20px 16px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; line-height: 1.6; letter-spacing: 0.02em; color: var(--muted); }

/* Potential opportunity callout, built from the High press column. */
.vx-opp { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(20px, 2.4vw, 28px); }
.vx-opp .change { font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.55; }
.vx-vs li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
.vx-vs li:first-child { padding-top: 0; }
.vx-vs b { font-family: var(--f-head); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--text); font-variant-numeric: tabular-nums; }
.vx-opp .proj { margin-top: 12px; border-top: 0; padding-top: 0; }

.four { margin-top: clamp(56px, 7vw, 96px); }
.four-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.four-head h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 0; letter-spacing: -0.025em; }
.tag { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); padding: 6px 10px; border: 1px solid var(--lime-line); border-radius: var(--r-sm); background: var(--lime-dim); }
.cards4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); overflow: hidden; }
.cards4 li { display: flex; flex-direction: column; padding: 24px 24px 20px; border-right: 1px solid var(--line-2); transition: background 0.3s var(--ease); min-height: 280px; }
.cards4 li:last-child { border-right: 0; }
.cards4 li:hover { background: rgba(255, 255, 255, 0.025); }
.c-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: var(--lime-dim); border: 1px solid var(--lime-line); transition: box-shadow 0.3s var(--ease); }
.cards4 li:hover .ico { box-shadow: 0 0 0 4px rgba(212, 243, 107, 0.08); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--lime); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico svg * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.cards4 .n { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.cards4 strong { font-family: var(--f-head); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 10px; }
.cards4 p { color: var(--muted); font-size: 15.5px; margin: 0 0 20px; }
.c-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }

/* ---------- 04 Sample sheet ---------- */
.tabs { margin-top: clamp(28px, 4vw, 44px); }
.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tablist [role="tab"] {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-sm); cursor: pointer;
  background: rgba(17, 19, 16, 0.8); color: var(--text-2); border: 1px solid var(--line-2);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tablist [role="tab"]:hover { border-color: var(--line-3); color: var(--text); }
.tablist [role="tab"][aria-selected="true"] { background: var(--lime); color: var(--bg); border-color: var(--lime); font-weight: 500; }
.tablist .n { opacity: 0.7; }
.js [data-tabs]:not(.ready) .panel ~ .panel { display: none; }
html:not(.js) .tablist { display: none; }
html:not(.js) .panel + .panel { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.panel:focus-visible { outline-offset: 6px; border-radius: var(--r); }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 16px; align-items: start; }
.panel-left, .panel-right { display: grid; gap: 16px; min-width: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; transition: border-color 0.25s var(--ease); }
.card:hover { border-color: var(--line-2); }
.card-k { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.card.detect .card-head { margin: 0 -22px 4px; padding: 0 22px 12px; border-bottom: 1px solid var(--line); }
.card.detect > h3 { font-size: 1.25rem; }
.card.reco { background: linear-gradient(180deg, rgba(212, 243, 107, 0.06), rgba(212, 243, 107, 0.025)); border-color: var(--lime-line); }
.card.reco:hover { border-color: var(--lime); }
.card.reco .card-k { color: var(--lime); }
.card.reco .card-k i {
  width: 12px; height: 12px; background: var(--lime); flex: none;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.card.reco h3 { font-size: 1.125rem; }
.card.reco .k { color: var(--lime); margin-bottom: 6px; }
.card.reco .change { font-size: 1.0625rem; color: var(--text); margin: 0; }
.card.reco .panel-note { margin-top: 12px; }
.proj { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--lime-line); font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--lime); }
.panel-tag { margin: 0 0 12px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); }
.proj + .proj { margin-top: 10px; }
.panel-note { font-size: 14.5px; color: var(--muted); margin: 14px 0 0; }
.sheet-row { padding: 14px 0; border-top: 1px solid var(--line); }
.card-head + .sheet-row { border-top: 0; }
.sheet-row:last-child { padding-bottom: 0; }
.sheet-row .k { margin-bottom: 4px; }
.sheet-row.hot .k { color: var(--red); }
.sheet-row h3 { font-size: 1.0625rem; }
.sheet-row p { color: var(--text-2); margin: 0; font-size: 15px; }
.lines { list-style: none; margin: 0; padding: 0; counter-reset: b; }
.lines li { counter-increment: b; display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--text-2); }
.lines li:first-child { border-top: 0; padding-top: 4px; }
.lines li::before { content: counter(b, decimal-leading-zero); font-family: var(--f-mono); font-size: 12px; color: var(--lime); padding-top: 3px; }
.lines b { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.callout { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.callout .k { color: var(--lime); margin-bottom: 6px; }
.callout p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* Board mounts. boards.js appends an <svg> into each .board. */
.board { position: relative; aspect-ratio: 105 / 68; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.board[data-scene="board"] { aspect-ratio: 4 / 3; }

table.spec { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.spec caption { text-align: left; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 10px 0 8px; }
table.spec th, table.spec td { padding: 11px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.spec th:first-child, table.spec td:first-child { padding-left: 0; }
table.spec thead th { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
table.spec tbody th { font-weight: 500; color: var(--text); }
table.spec td { color: var(--text-2); }
table.spec td.mono { font-size: 12.5px; color: var(--text); white-space: nowrap; }
table.spec tbody tr { transition: background 0.2s var(--ease); }
table.spec tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
table.spec tbody tr:last-child th, table.spec tbody tr:last-child td { border-bottom: 0; }
.cbar { display: block; width: calc(var(--w) * 0.7); max-width: 72px; height: 3px; border-radius: 2px; background: var(--lime); margin: 2px 0 7px; transform-origin: left; }

.grid18-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.g-note { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; }
.grid18 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-width: 360px; }
.grid18 span {
  display: grid; place-items: center; min-height: 32px; border-radius: 4px; border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); background: var(--panel-2);
}
.grid18 span.hot { background: var(--lime-dim); border-color: var(--lime); color: var(--lime); }
.grid18-key { display: flex; justify-content: space-between; max-width: 360px; margin: 8px 0 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.num-chip { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; margin-right: 6px; border-radius: 4px; background: var(--lime); color: var(--bg); font-family: var(--f-mono); font-size: 12px; font-weight: 500; }

/* ---------- Step grids: sample.html #process (.pilot-grid) and index.html #how (.how-grid, same grid) ---------- */
.pilot-grid, .how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "head visual" "steps visual"; column-gap: clamp(32px, 5vw, 72px); align-items: start; }
.pilot-head, .how-head { grid-area: head; }
.pilot-grid .steps, .how-grid .steps { grid-area: steps; }
.pilot-visual, .how-visual { grid-area: visual; align-self: stretch; min-width: 0; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 22px 0 22px; border-top: 1px solid var(--line); position: relative; }
.steps li::before { content: ""; position: absolute; left: -16px; top: 22px; bottom: 22px; width: 2px; border-radius: 2px; background: var(--lime); transform: scaleY(0); transform-origin: top; transition: transform 0.4s var(--ease-out); }
.steps li.is-active::before { transform: scaleY(1); }
.steps .n { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); padding-top: 4px; transition: color 0.3s var(--ease); }
.steps li.is-active .n { color: var(--lime); }
.steps h3 { margin: 0 0 6px; font-size: 1.25rem; }
.step-btn { all: unset; cursor: pointer; color: var(--muted); transition: color 0.3s var(--ease); }
.step-btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 4px; }
.steps li.is-active .step-btn, .step-btn:hover { color: var(--text); }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }
.pilot-sticky { position: sticky; top: 96px; padding-bottom: 48px; }
.screen { background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
#pilot-screen { position: relative; aspect-ratio: 16 / 11; }
.close-line {
  position: relative; z-index: 2; max-width: 380px; margin: -64px 0 0 auto; margin-right: 24px;
  padding: 20px 22px; border-radius: var(--r); background: rgba(17, 19, 16, 0.94); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--f-body); font-size: 16.5px; line-height: 1.5; color: var(--text);
}
.close-line::before { content: ""; display: block; width: 28px; height: 2px; background: var(--lime); margin-bottom: 12px; }

/* ---------- 07 House rules ---------- */
.rules { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.rules li {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px 24px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease);
}
.rules li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--lime); transform-origin: left; }
.rules li:hover { transform: translateY(-4px); border-color: var(--line-3); }
.rules .k { color: var(--lime); margin-bottom: 18px; }
.rules strong { font-family: var(--f-head); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.015em; line-height: 1.25; }
.rules p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- 08 Team ---------- */
.bibs { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.bib {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 20px;
  display: flex; flex-direction: column; min-height: 240px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease-out);
}
.bib:hover { border-color: var(--lime-line); transform: translateY(-4px); }
.bib-top { display: flex; justify-content: space-between; align-items: center; }
.bib-top .k { color: var(--muted); }
.bib-top i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--lime); }
.bib .num {
  font-family: var(--f-head); font-weight: 700; font-size: 112px; line-height: 1; letter-spacing: -0.04em; margin: auto 0 8px;
  color: transparent; -webkit-text-stroke: 1.5px rgba(242, 242, 238, 0.42);
  transition: color 0.35s var(--ease), -webkit-text-stroke-color 0.35s var(--ease);
}
.bib:hover .num { color: var(--lime); -webkit-text-stroke-color: var(--lime); }
.bib-meta { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.bib-meta strong { font-family: var(--f-head); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.bib-meta span { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- 09 FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; display: grid; grid-template-columns: 44px 1fr 28px; gap: 8px; align-items: center;
  padding: 20px 0; cursor: pointer; font-family: var(--f-head); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--lime); }
.faq summary::after {
  content: "+"; justify-self: end; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-2); font-family: var(--f-mono); font-weight: 400; font-size: 16px; color: var(--lime);
  transition: transform 0.35s var(--ease-out), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); border-color: var(--lime-line); background: var(--lime-dim); }
.faq summary .n { font-family: var(--f-mono); font-weight: 400; font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.faq .a { padding: 0 36px 20px 52px; color: var(--muted); overflow: hidden; }
.faq .a p { margin: 0 0 10px; }
.faq .a p:last-child { margin: 0; }

/* ---------- Send your data (index.html #send) ---------- */
.send-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.form-panel { background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.form-panel form, .form-panel .thanks { padding: 22px 22px 26px; }
form.send { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.field label, legend { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
input[type="text"], input[type="email"], input[type="date"], textarea {
  width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px; border-radius: var(--r-sm);
  background: var(--bg); border: 1px solid var(--line-2); color: var(--text); font-size: 16px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
input[type="date"] { -webkit-appearance: none; appearance: none; display: block; line-height: 1.4; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.7; }
.hint { margin: 0; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--muted); }
textarea { min-height: 110px; resize: vertical; }
select {
  width: 100%; min-height: 46px; padding: 0 40px 0 13px; border-radius: var(--r-sm); cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23D4F36B' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--line-2); color: var(--text); font-size: 16px; -webkit-appearance: none; appearance: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
select:hover { border-color: var(--line-3); }
select:focus-visible { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(212, 243, 107, 0.22); border-radius: var(--r-sm); }
select option { background: var(--panel); color: var(--text); }
input::placeholder, textarea::placeholder { color: #84867E; }
input[type="text"]:hover, input[type="email"]:hover, input[type="date"]:hover, textarea:hover { border-color: var(--line-3); }
input[type="text"]:focus-visible, input[type="email"]:focus-visible, input[type="date"]:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(212, 243, 107, 0.22); border-radius: var(--r-sm);
}
[aria-invalid="true"] { border-color: var(--red) !important; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 9px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--lime); }
.error { color: #FF8A80; font-size: 14.5px; font-weight: 500; margin: 0; }
.thanks h3 { margin-top: 4px; }
.thanks p { color: var(--text-2); }
.preview-note { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted) !important; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(10, 11, 9, 0.7); padding: 56px 0 40px; color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-line { margin-top: 16px; max-width: 32ch; }
.foot-k { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { text-decoration: none; color: var(--text-2); }
.site-footer ul a:hover { color: var(--lime); }
.foot-base { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 20px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.06em; }

.foot-base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.faq-head { position: sticky; top: 100px; }

/* ======================================================================
   v3 components (spec: site/SITE_V3.md). Same tokens, radii and type as above.
   ====================================================================== */

/* Nav: 5 links since v3. A little tighter from 960 to 1199px so the row never wraps. */
.site-nav ul a[aria-current="page"] { color: var(--text); }
@media (min-width: 960px) and (max-width: 1199px) {
  .site-nav, .site-nav ul { gap: 18px; }
  .site-nav ul a { letter-spacing: 0.08em; }
}

/* Section head block: idx, h2, lede. */
.sec-head h2 { max-width: 20ch; }
.sec-head .lede { margin-bottom: 0; }

/* Illustration tag (SITE_V3 §0): every animated board, every model drawing and the Freeze Frame demo carry one. */
.ill-tag {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 3px 8px; border-radius: 4px; border: 1px dashed var(--line-3); background: rgba(10, 11, 9, 0.84);
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; line-height: 1.5; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2); white-space: nowrap; pointer-events: none;
}
.ill-tag::before { content: ""; width: 5px; height: 5px; border: 1px solid var(--lime); transform: rotate(45deg); flex: none; }
.panel-tag { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* Audit 2026-10-17: Illustration tag on the value boards and the analyst screen. */
.vx-sample { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.screen-tag { display: flex; justify-content: flex-end; margin: 10px 0 0; }

/* Empty scene mounts (the scene file not loaded yet, or no JS): the same faint drawn pitch as the v2 mounts. */
.mx-art:empty, .ff-stage:empty {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 38px, var(--line-2) 38px 39px, transparent 40px),
    linear-gradient(90deg, transparent calc(50% - 0.5px), var(--line-2) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    repeating-linear-gradient(90deg, rgba(212, 243, 107, 0.022) 0 9.0909%, transparent 9.0909% 18.1818%),
    linear-gradient(180deg, #0F1811, #0C130E);
  box-shadow: inset 0 0 0 12px var(--pitch), inset 0 0 0 13px var(--line-2);
}

/* ---------- Hero chips: small mono labels, not buttons ---------- */
.hero h1 .l1, .hero h1 .l2 { text-wrap: balance; }
.hero-chips { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hero-chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: rgba(17, 19, 16, 0.7);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2);
}
.hero-chips li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); flex: none; }

/* ---------- 02 The models (index.html #models) ---------- */
/* index.html cards are text only (MODELS_TEXT_SPEC); the .mx-art, .mx-vid, .mx-credit and .mx-meta rules stay for technology.html. */
.mx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.mx-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 12px 12px 22px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); transition: border-color 0.25s var(--ease);
}
.mx-card:hover { border-color: var(--line-2); }
/* Index row under the drawing: "01 · Defence reaction" left, the Illustration tag right (the drawing's corners hold models.js pills). */
.mx-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 18px 10px 6px; }
.mx-meta .mx-k { margin: 0; }
/* Drawing mount (scenes/models.js draws an SVG here, decorative, aria-hidden). */
.mx-art {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 7px; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 0%, rgba(212, 243, 107, 0.035), transparent 60%), var(--pitch);
}
.mx-art > svg, .mx-art > canvas { display: block; width: 100%; height: 100%; }
.mx-k { margin: 20px 10px 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.mx-k b { color: var(--lime); font-weight: 500; }
.mx-card h3 { margin: 0 10px 8px; font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.75rem); letter-spacing: -0.025em; }
.mx-line { margin: 0 10px 18px; max-width: 46ch; color: var(--text-2); font-size: 1.0625rem; line-height: 1.5; }
.mx-proof {
  margin: auto 10px 16px; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text-2); font-size: 15px; line-height: 1.5;
}
.mx-proof .k { color: var(--lime); margin-bottom: 4px; }
.mx-link { margin: 0 10px; align-self: flex-start; font-size: 15px; }
/* Text panel: the old drawing box, now holding the chip, name, what it does and the analyst and coach uses. */
.mx-panel {
  flex: 1 1 auto; display: flex; flex-direction: column; margin-bottom: 16px; padding: clamp(18px, 2.2vw, 28px);
  border-radius: 7px; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 0%, rgba(212, 243, 107, 0.035), transparent 60%), var(--pitch);
}
.mx-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: clamp(18px, 2vw, 26px); }
.mx-top .mx-k { margin: 0; }
.mx-prop {
  display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 3px 8px; border-radius: 4px;
  border: 1px solid var(--lime-line); background: var(--lime-dim); color: var(--lime);
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; line-height: 1.5; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
}
.mx-prop::before { content: ""; width: 5px; height: 5px; background: var(--lime); transform: rotate(45deg); flex: none; }
.mx-panel h3 { margin: 0 0 10px; }
.mx-panel .mx-line { margin: 0 0 22px; max-width: 46ch; }
.mx-who { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 24px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.mx-who .k { color: var(--lime); margin-bottom: 6px; }
.mx-who p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
/* Panel, proof box and link share row lines across a grid row, so panel bottoms and proof tops sit level. */
@supports (grid-template-rows: subgrid) {
  .mx-grid > .mx-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  .mx-grid > .mx-card > .mx-proof { margin-top: 0; }
  .mx-grid > .mx-card > .mx-link { justify-self: start; }
}

/* Boundary strip: lime left rule, mono label. */
.mx-bound {
  margin: 16px 0 0; padding: 16px 20px; border-left: 2px solid var(--lime); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: linear-gradient(90deg, var(--lime-dim), rgba(212, 243, 107, 0.02) 70%); color: var(--text); font-size: 1.0625rem; line-height: 1.5;
}
.mx-bound .k { color: var(--lime); margin-bottom: 4px; }

/* Recorded 3D loops in the model cards (index.html and technology.html; scenes/mxvideo.js plays them in view).
   The video fills the 16:10 box; the poster shows until it plays and under reduced motion. */
.mx-vid { background: #0A0B09; }
.mx-vid > video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Credit line under the cards, in the small mono style of .micro. */
.mx-credit { margin: 14px 0 0; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.02em; line-height: 1.55; color: var(--muted); }
.tech-models .mx-credit { margin: calc(-1 * clamp(24px, 3.5vw, 56px)) 0 0; padding: 0 0 clamp(28px, 4vw, 48px); }

/* Comparison table. The XI Engine column is lime. Yes = lime dot, No = muted bar drawn in CSS (no text dash). */
.cmp-wrap { margin-top: clamp(44px, 5.5vw, 72px); }
table.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
table.cmp th, table.cmp td { padding: 16px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
table.cmp thead th, table.cmp thead td { border-bottom-color: var(--line-2); }
table.cmp thead th { padding-top: 14px; padding-bottom: 14px; vertical-align: bottom; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
table.cmp tbody th { width: 34%; padding-left: 0; font-family: var(--f-head); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.3; color: var(--text); }
table.cmp td { width: 22%; color: var(--text-2); }
table.cmp .x { background: var(--lime-dim); border-left: 1px solid var(--lime-line); border-right: 1px solid var(--lime-line); }
table.cmp thead .x { color: var(--lime); border-top: 1px solid var(--lime-line); border-radius: 8px 8px 0 0; box-shadow: inset 0 2px 0 var(--lime); }
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp tbody tr:last-child .x { border-bottom: 1px solid var(--lime-line); border-radius: 0 0 8px 8px; }
.cmp-y, .cmp-n { display: inline-flex; align-items: center; gap: 10px; }
.cmp-y { color: var(--text); font-weight: 500; }
.cmp-y::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px rgba(212, 243, 107, 0.5); flex: none; }
.cmp-n { color: var(--muted); }
.cmp-n::before { content: ""; width: 12px; height: 2px; border-radius: 1px; background: var(--line-3); flex: none; }
.cmp-link { margin: 18px 0 0; }

/* ---------- 03 How it works (index.html #how): steps left, 3 views right ----------
   ≥960px with JS: one sticky container, one view at a time, crossfade (main.js sets .how-sticky[data-view]).
   Below 960px, or without JS: no sticky, the 3 views stack in order. */
.how-sticky { display: grid; gap: 16px; }
.how-view { min-width: 0; }
.how-view .vx-board, .how-view .vx-opp { margin-top: 0; }
.vx-compact .vx-body { grid-template-columns: minmax(0, 1fr); }
/* The compact board sits in a half width column, so its rows use the stacked phone layout at every width. */
.vx-compact .vx-table-wrap { padding: 0 16px 4px; }
.vx-compact .vx-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vx-compact .vx-table, .vx-compact .vx-table tbody { display: block; }
.vx-compact .vx-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name g" "v v" "type n"; gap: 8px 12px; align-items: center; padding: 14px 0 14px 12px; border-bottom: 1px solid var(--line); }
.vx-compact .vx-table tbody tr:last-child { border-bottom: 0; }
.vx-compact .vx-table tbody th, .vx-compact .vx-table tbody td { display: block; padding: 0; border: 0; }
.vx-compact .vx-table tbody th { grid-area: name; padding-left: 0; }
.vx-compact .vx-row.vx-focus th { box-shadow: none; }
.vx-compact .vx-row.vx-focus { box-shadow: inset 2px 0 0 var(--lime); }
.vx-compact .vx-table tbody td:nth-child(2) { grid-area: type; }
.vx-compact .vx-table tbody .vx-c-n { grid-area: n; justify-self: end; font-size: 12.5px; }
.vx-compact .vx-table tbody .vx-c-n::before { content: attr(data-label) " "; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.vx-compact .vx-table tbody .vx-c-v { grid-area: v; display: flex; align-items: center; gap: 12px; margin: -2px 0; }
.vx-compact .vx-table tbody .vx-v { width: auto; min-width: 36px; font-size: 1.0625rem; }
.vx-compact .vx-table tbody .vx-dbar { flex: 1; width: auto; min-width: 0; }
.vx-compact .vx-table tbody .vx-c-g { grid-area: g; justify-self: end; display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; }
.vx-compact .vx-table tbody .vx-c-g .vx-low { margin: 0; font-size: 9.5px; letter-spacing: 0.06em; }
@media (min-width: 960px) {
  .how-steps li { padding: 32px 0; }
  /* Run out under step 5, so it reaches the middle of the screen while the visual is still pinned. */
  .js .how-steps { margin-bottom: clamp(240px, 40vh, 360px); }
  .js .how-sticky { position: sticky; top: 80px; gap: 0; grid-template-areas: "view"; }
  .js .how-view {
    grid-area: view; align-self: center; opacity: 0; visibility: hidden; transform: translateY(14px);
    transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-out), visibility 0s linear 0.45s;
  }
  .js .how-sticky[data-view="freeze"] > .how-view[data-view="freeze"],
  .js .how-sticky[data-view="board"] > .how-view[data-view="board"],
  .js .how-sticky[data-view="reco"] > .how-view[data-view="reco"] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}

/* Freeze Frame figure chrome (markup SITE_V3 §2.3). scenes/freeze.js (builder B) owns the stage internals (ff- prefix). */
.ff { margin: 0; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.ff-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.ff-title { display: inline-flex; align-items: center; gap: 10px; }
.ff-title b { font-weight: 500; color: var(--text); }
.ff-title i { width: 8px; height: 8px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 10px rgba(212, 243, 107, 0.6); }
.ff-tools { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.012); }
.ff-lbl { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ff-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ff-chip { min-height: 36px; padding: 0 14px; font-size: 11.5px; letter-spacing: 0.1em; }
.ff-chip[aria-pressed="true"] { background: var(--lime); color: var(--bg); border-color: var(--lime); font-weight: 500; }
.ff-chip[aria-pressed="true"]:hover { color: var(--bg); }
.ff-stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(90% 70% at 65% 35%, rgba(212, 243, 107, 0.04), transparent 70%), #0E110D; }
.ff-stage > canvas, .ff-stage > svg { display: block; width: 100%; height: 100%; }
html:not(.js) .ff-tools { display: none; }
html:not(.js) .ff-stage::after {
  content: "The frame needs JavaScript to move. The result of the first move is below.";
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 18px; background: rgba(10, 11, 9, 0.82); border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--text-2);
}
.ff-readout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 22px; align-items: center; padding: 16px 18px; border-top: 1px solid var(--line); }
.ff-phases { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ff-phases li {
  padding-top: 8px; border-top: 2px solid var(--line-2); white-space: nowrap;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.ff-phases li.is-on { color: var(--lime); border-top-color: var(--lime); }
.ff-phases li.is-now { box-shadow: 0 -6px 12px -6px rgba(212, 243, 107, 0.6); }   /* freeze.js: the phase playing now */
.ff-meter {
  margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px;
  background: var(--panel-2); border: 1px solid var(--line-2); font-variant-numeric: tabular-nums;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.ff-meter .k { display: inline; margin-right: 4px; }
.ff-before { font-family: var(--f-head); font-weight: 600; font-size: 1.25rem; line-height: 1; color: var(--muted); }
.ff-arrow { color: var(--muted); font-size: 15px; }
.ff-after { min-width: 2.2ch; font-family: var(--f-head); font-weight: 600; font-size: 1.75rem; line-height: 1; letter-spacing: -0.02em; color: var(--lime); transition: color 0.3s var(--ease); }
/* Red meter for a move that loses value (grade D, e.g. "8 beyond"). freeze.js may also set .is-neg. Kept as 2 rules,
   so a browser without :has() still reads the first one. */
.ff-meter.is-neg { border-color: rgba(255, 90, 78, 0.42); background: rgba(255, 90, 78, 0.06); }
.ff-meter.is-neg .ff-after { color: var(--red); }
.ff-meter:has(.ff-grade.g-d) { border-color: rgba(255, 90, 78, 0.42); background: rgba(255, 90, 78, 0.06); }
.ff-meter:has(.ff-grade.g-d) .ff-after { color: var(--red); }
.ff-line { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.ff-cap { margin: 0; padding: 12px 18px 14px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 11.5px; line-height: 1.55; letter-spacing: 0.02em; color: var(--muted); }

/* ---------- 04 What it finds (index.html #finds) ---------- */
.finds-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.find { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: clamp(16px, 2vw, 22px); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.find-head .k { color: var(--lime); margin: 0 0 8px; }
.find-head h3 { margin: 0; font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.875rem); letter-spacing: -0.025em; text-wrap: balance; }
.find-board { position: relative; }
/* The tag sits on the board's top edge, top left, so it never covers the board's own title bar (boards.js .bx-head). */
.find-board > .ill-tag { position: absolute; top: -11px; left: 14px; z-index: 2; background: var(--panel); border-color: var(--line-3); }
/* Finding card: the v2 hero opponent row card (panel 2, bordered, bold h4, lime change box). */
.find-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; }
.find-card .k { color: var(--muted); }
.find[data-kind="leak"] .find-card .k { color: var(--red); }
.find-card h4 { margin: 2px 0 0; font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.find-card .count { align-self: flex-start; padding: 8px 10px; font-size: 13px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: var(--r-sm); }
.find-card .count b { font-size: 17px; }
.find-card .change { margin: 0; padding: 12px 14px; font-size: 15px; line-height: 1.5; color: var(--text); background: var(--lime-dim); border: 1px solid var(--lime-line); border-radius: var(--r-sm); }
.find-card .change-k { display: block; margin-bottom: 4px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); }
.find-act { margin: auto 0 0; }
.find-act .btn { white-space: normal; text-align: left; min-height: 46px; padding-top: 10px; padding-bottom: 10px; }
.finds-foot { margin: 24px 0 0; color: var(--muted); font-size: 1.0625rem; }
@media (min-width: 1100px) { .finds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 05 Send your data: next steps, fine print, trust chips, FAQ below ---------- */
.next { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: nx; border-bottom: 1px solid var(--line); }
.next li { counter-increment: nx; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 1.0625rem; line-height: 1.5; }
.next li::before { content: counter(nx, decimal-leading-zero); padding-top: 4px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--lime); }
.fine { margin: 18px 0 0; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.02em; line-height: 1.55; color: var(--muted); }
.trust-chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.trust-chips li {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 11px 6px 10px; border-radius: var(--r-sm);
  border: 1px solid var(--lime-line); background: var(--lime-dim);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime);
}
.trust-chips li::before { content: ""; width: 9px; height: 5px; margin-top: -3px; border-left: 1.5px solid var(--lime); border-bottom: 1.5px solid var(--lime); transform: rotate(-45deg); flex: none; }
.send-faq { margin-top: clamp(64px, 8vw, 112px); }
.send-faq .faq-head h3 { margin: 0; max-width: 14ch; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }

/* ---------- Page intros (sample.html, technology.html) ---------- */
.page-intro { padding: clamp(56px, 8vw, 112px) 0 clamp(8px, 2vw, 24px); }
.page-intro h1 { max-width: 16ch; margin-bottom: 22px; font-size: clamp(2.4rem, 1rem + 4.4vw, 4.5rem); text-wrap: balance; }
.page-intro .lede { margin: 0; }
.section-tight { padding-top: clamp(40px, 5vw, 64px); }

/* ---------- CTA band (sample.html, technology.html) ---------- */
.cta-section { padding-top: clamp(16px, 2vw, 32px); }
.cta-band {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 48px;
  padding: clamp(28px, 4.5vw, 56px); border-radius: 14px; border: 1px solid var(--lime-line);
  background: radial-gradient(70% 140% at 100% 0%, rgba(212, 243, 107, 0.13), transparent 62%), var(--panel);
}
.cta-band h2 { margin: 0; max-width: 18ch; }
.cta-act { display: grid; justify-items: start; }
.cta-act .micro { max-width: 38ch; }

/* ---------- technology.html: the 4 model blocks ---------- */
.tech-models { border-bottom: 1px solid var(--line); margin-top: clamp(32px, 4vw, 48px); }
.tech-model { padding: clamp(56px, 7vw, 104px) 0; border-top: 1px solid var(--line); }
.tm-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.tm-text h2 { margin-bottom: 4px; }
.tm-h { margin: 26px 0 8px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); }
.tm-text p:not(.idx) { margin: 0; max-width: 54ch; color: var(--text-2); font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem); line-height: 1.6; }
.tm-art { position: relative; min-width: 0; }
.tm-cap { display: flex; justify-content: flex-end; margin: 12px 0 0; }
.mx-art[data-size="lg"] { border-radius: 12px; border-color: var(--line-2); }

/* The limit: lime bordered. */
.limit {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 14px clamp(32px, 5vw, 80px);
  padding: clamp(24px, 4vw, 52px); border: 1px solid var(--lime-line); border-radius: 14px;
  background: linear-gradient(180deg, rgba(212, 243, 107, 0.07), rgba(212, 243, 107, 0.02));
}
.limit h2 { grid-column: 1; grid-row: 1 / span 3; margin: 0; max-width: 12ch; }
.limit p { grid-column: 2; margin: 0; color: var(--text); font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.55; }
.limit p + p { padding-top: 14px; border-top: 1px solid var(--lime-line); }

/* 3D replay block: text left, poster right (img/replay-poster.jpg). main.js hides a missing poster. */
.replay-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.replay-text .lede { margin-bottom: 26px; }
.replay-shot {
  position: relative; aspect-ratio: 1200 / 750; overflow: hidden; border-radius: 12px; border: 1px solid var(--line-2);
  background: radial-gradient(100% 80% at 50% 0%, rgba(212, 243, 107, 0.05), transparent 60%), var(--pitch);
}
.replay-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.replay-shot.is-missing img { visibility: hidden; }

/* Data and credits. */
dl.credits { margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
dl.credits > div { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 6px clamp(24px, 4vw, 64px); padding: 18px 0; border-bottom: 1px solid var(--line); }
dl.credits dt { padding-top: 4px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
dl.credits dd { margin: 0; color: var(--text); font-size: 1.0625rem; }

/* v3 responsive */
@media (max-width: 959px) {
  .faq-head { position: static; }   /* one column: a sticky head would slide over the questions */
  .tm-grid, .replay-grid, .limit { grid-template-columns: minmax(0, 1fr); }
  .limit h2, .limit p { grid-column: auto; grid-row: auto; }
  .limit h2 { margin-bottom: 6px; }
}
@media (max-width: 719px) {
  .mx-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  table.cmp { font-size: 14px; }
  table.cmp th, table.cmp td { padding: 12px 8px; }
  table.cmp thead th { font-size: 10px; letter-spacing: 0.06em; }
  table.cmp tbody th { width: 36%; font-size: 0.9375rem; }
  .cmp-y, .cmp-n { gap: 7px; }
  .ff-head, .ff-tools, .ff-readout { padding-left: 14px; padding-right: 14px; }
  .ff-cap { padding-left: 14px; padding-right: 14px; }
  .ff-readout { grid-template-columns: minmax(0, 1fr); }
  .ff-meter { justify-self: start; }
  .ff-phases li { font-size: 9.5px; letter-spacing: 0.06em; }
  dl.credits > div { grid-template-columns: minmax(0, 1fr); }
  .cta-band { padding: 24px 18px; }
  .mx-card { padding: 10px 10px 18px; }
}

/* ======================================================================
   Motion. Initial states only exist with JS on and motion allowed.
   ====================================================================== */
@keyframes pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(3); opacity: 0; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes heat { 0%, 100% { box-shadow: 0 0 0 0 rgba(212, 243, 107, 0); } 50% { box-shadow: 0 0 18px 0 rgba(212, 243, 107, 0.28); } }

@media (prefers-reduced-motion: no-preference) {
  .pulse::after { animation: pulse 1.8s var(--ease-out) infinite; }
  .live-dot::before { animation: blink 1.6s steps(2, jump-none) infinite; }
  @keyframes blink { 50% { opacity: 0.25; } }
  .grid18 span.hot { animation: heat 2.6s var(--ease) infinite; }

  /* Fade up reveals with stagger: --d set inline, --i set by main.js on [data-stagger] children. */
  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms + var(--i, 0) * 80ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .rules li.reveal, .js .bib.reveal { transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), border-color 0.3s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .rules li.reveal.is-in, .js .bib.reveal.is-in { transition-delay: 0s; transition-duration: 0.5s, 0.3s, 0.3s; }
  .js .rules li.reveal.is-in:hover, .js .bib.reveal.is-in:hover { transform: translateY(-4px); }

  /* Method track: the lime line draws between the 4 steps. */
  .js .rungs::after { transform: scaleX(0); transition: transform 1.6s var(--ease) 0.3s; }
  .js .rungs.is-in::after { transform: scaleX(1); }
  .js .rungs .rung { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: calc(var(--i, 0) * 0.38s + 0.1s); }
  .js .rungs.is-in .rung { opacity: 1; transform: none; }
  .js .rungs.reveal { opacity: 1; transform: none; }

  /* Line icons draw in. */
  .js .cards4 li .ico svg * { stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease) calc(0.3s + var(--i, 0) * 0.12s); }
  .js .cards4 li.is-in .ico svg * { stroke-dashoffset: 0; }

  /* Sample sheet: count bars grow each time a panel is shown. */
  .js .panel:not([hidden]) .cbar { animation: grow-x 0.9s var(--ease-out) 0.15s both; }
  .js .panel:not([hidden]) .card, .js .panel:not([hidden]) .board, .js .panel:not([hidden]) .callout, .js .panel:not([hidden]) .grid18-wrap { animation: fade-up 0.6s var(--ease-out) both; }
  .js .panel:not([hidden]) .panel-left > :nth-child(2) { animation-delay: 0.08s; }
  .js .panel:not([hidden]) .panel-right > :nth-child(2) { animation-delay: 0.12s; }
  .js .panel:not([hidden]) .panel-right > :nth-child(3) { animation-delay: 0.18s; }
  @keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

  /* House rules: lime top rule draws in. */
  .js .rules li::before { transform: scaleX(0); transition: transform 0.9s var(--ease-out) calc(0.25s + var(--i, 0) * 0.1s); }
  .js .rules li.is-in::before { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .spot { display: none; }
}

/* ======================================================================
   Responsive
   ====================================================================== */
@media (max-width: 1100px) {
  .vx-body { grid-template-columns: minmax(0, 1fr); }
  .vx-viz { border-right: 0; border-bottom: 1px solid var(--line); }
  .vx-viz .vx-pitch { max-height: 520px; }
  .rules { grid-template-columns: repeat(3, 1fr); }
  .bibs { grid-template-columns: repeat(3, 1fr); }
  .cards4 { grid-template-columns: repeat(2, 1fr); }
  .cards4 li:nth-child(2) { border-right: 0; }
  .cards4 li:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 959px) {
  .vx-intro, .vx-opp { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .split, .hero-top, .panel-grid, .pilot-grid, .how-grid, .faq-grid, .send-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-top { align-items: start; }
  h1 { font-size: clamp(2.1rem, 1rem + 5.6vw, 4rem); }
  .hero-top { grid-template-columns: minmax(0, 1fr); }
  .pilot-grid { grid-template-areas: "head" "visual" "steps"; }
  .pilot-visual { margin-top: 24px; }
  /* How it works below 960px: no sticky, the 3 views stack after the steps (SITE_V3 §2.3). */
  .how-grid { grid-template-areas: "head" "steps" "visual"; }
  .how-visual { margin-top: 32px; }
  .pilot-sticky { position: static; padding-bottom: 0; }
  .close-line { margin: -40px 12px 0 auto; }
  .steps { margin-top: 24px; }
  .steps li { padding-left: 14px; grid-template-columns: 40px 1fr; }
  .steps li::before { left: 0; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav ul {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: rgba(10, 11, 9, 0.97); border-bottom: 1px solid var(--line);
  }
  .site-nav ul.open { display: flex; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .site-nav { gap: 10px; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .site-header { flex-wrap: wrap; }
  html:not(.js) .site-nav { flex-wrap: wrap; }
  html:not(.js) .site-nav ul { display: flex; position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 16px; padding: 0; border: 0; background: none; }
  html:not(.js) .site-nav ul a { border: 0; padding: 4px 0; }
}
@media (max-width: 760px) {
  .live-card, .live-card.right { position: static; max-width: none; width: auto; margin: 0; border-radius: 0; border-width: 1px 0 0; background: var(--panel); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .live-head .chips { margin-left: 0; width: 100%; }
}
@media (max-width: 959px) {
  .rungs { grid-template-columns: 1fr; gap: 28px; padding-left: 0; }
  .rungs::before, .rungs::after { top: 20px; bottom: 20px; left: 20px; right: auto; width: 1px; height: auto; }
  .rungs::after { transform-origin: top; }
  .rung { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
  .rung .box { margin-top: 6px; }
}
@media (max-width: 959px) and (prefers-reduced-motion: no-preference) {
  .js .rungs::after { transform: scaleY(0); }
  .js .rungs.is-in::after { transform: scaleY(1); }
}
@media (max-width: 640px) {
  .vx-head, .vx-tools, .vx-foot { padding-left: 14px; padding-right: 14px; }
  .vx-viz { padding: 14px; }
  .vx-strip li { padding: 10px; }
  .vx-sv b { font-size: 1.25rem; }
  .vx-strip .vx-low { font-size: 9.5px; letter-spacing: 0.06em; }
  .vx-table-wrap { padding: 0 14px 4px; }
  .vx-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vx-table, .vx-table tbody { display: block; }
  .vx-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name g" "v v" "type n"; gap: 8px 12px; align-items: center; padding: 12px 0 12px 12px; border-bottom: 1px solid var(--line); }
  .vx-table tbody tr:last-child { border-bottom: 0; }
  .vx-table tbody th, .vx-table tbody td { display: block; padding: 0; border: 0; }
  .vx-table tbody th { grid-area: name; padding-left: 0; }
  .vx-row.vx-focus th { box-shadow: none; }
  .vx-row.vx-focus { box-shadow: inset 2px 0 0 var(--lime); }
  .vx-table tbody td:nth-child(2) { grid-area: type; }
  .vx-table tbody .vx-c-n { grid-area: n; justify-self: end; font-size: 12.5px; }
  .vx-table tbody .vx-c-n::before { content: attr(data-label) " "; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
  .vx-table tbody .vx-c-v { grid-area: v; display: flex; align-items: center; gap: 12px; margin: -2px 0; }
  .vx-table tbody .vx-v { width: auto; min-width: 36px; font-size: 1.0625rem; }
  .vx-table tbody .vx-dbar { flex: 1; width: auto; min-width: 0; }
  .vx-table tbody .vx-c-g { grid-area: g; justify-self: end; display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; }
  .vx-table tbody .vx-c-g .vx-low { margin: 0; font-size: 9.5px; letter-spacing: 0.06em; }
  .announce { font-size: 11px; }
  .announce .hide-sm { display: none; }
  .site-header { padding-top: 10px; padding-bottom: 10px; gap: 12px; }
  .wordmark { font-size: 14px; letter-spacing: 0.16em; }
  .logo-box { margin-right: 8px; }
  .site-nav .btn.small { padding: 0 12px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .cards4 { grid-template-columns: 1fr; }
  .cards4 li { border-right: 0; border-bottom: 1px solid var(--line-2); min-height: 0; }
  .cards4 li:last-child { border-bottom: 0; }
  .c-top { margin-bottom: 18px; }
  .rules { grid-template-columns: 1fr; }
  .rules .k { margin-bottom: 8px; }
  .bibs { grid-template-columns: 1fr 1fr; }
  table.spec.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.spec.stack tr { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.spec.stack tbody tr:last-child { border-bottom: 0; }
  table.spec.stack th, table.spec.stack td { display: block; border: 0; padding: 0; }
  table.spec.stack td:last-child::before { content: "→ "; color: var(--lime); }
  .bib { min-height: 190px; }
  .bib .num { font-size: 84px; }
  .bib:last-child { grid-column: 1 / -1; }
  .field-row { grid-template-columns: 1fr; }
  .faq summary { grid-template-columns: 34px 1fr 28px; font-size: 1.0625rem; }
  .faq .a { padding: 0 8px 18px 42px; }
  .card { padding: 18px 16px; }
  .card.detect .card-head { margin: 0 -16px 4px; padding: 0 16px 12px; }
  .close-line { font-size: 15.5px; margin-right: 8px; }
  .foot-grid { grid-template-columns: 1fr; }
  table.spec td.mono { white-space: normal; }
}
@media (max-width: 380px) {
  .bibs { grid-template-columns: 1fr; }
}

@media print {
  body::before, .spot, .announce, .site-header, .menu-toggle, form.send { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .panel[hidden], .js [data-tabs]:not(.ready) .panel ~ .panel { display: block !important; }
}
@media (max-width: 360px) {
  .site-nav { gap: 8px; }
  .wordmark { letter-spacing: 0.12em; }
  .menu-toggle { padding: 0 10px; }
  .site-nav .btn.small { padding: 0 10px; font-size: 13px; }
}
