@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');
/* ============================================================
   Intelligent Alpha — site styles
   Engineered monochrome: storm navy + terra, Fragment Mono
   display, Albert Sans body, hairline borders, zero radius.
   ============================================================ */

:root {
  /* brand */
  --storm: #28374A;
  --storm-deep: #1d2a39;
  --storm-deepest: #16212d;
  --terra: #65211A;
  --terra-bright: #8a3322;
  --charcoal: #333333;
  --ink: var(--charcoal);
  --muted: rgba(51, 51, 51, 0.66);
  --faint: rgba(51, 51, 51, 0.42);
  --mist: #EDEDED;
  --veil: #F3F3F5;
  --panel: #ffffff;
  --page: var(--veil);
  --line: rgba(40, 55, 74, 0.15);
  --line-strong: rgba(40, 55, 74, 0.32);
  --gain: #2f7d4f;
  --loss: var(--terra);

  /* on-dark */
  --on-dark: var(--veil);
  --on-dark-muted: rgba(243, 243, 245, 0.66);
  --on-dark-faint: rgba(243, 243, 245, 0.42);
  --line-dark: rgba(243, 243, 245, 0.14);
  --line-dark-strong: rgba(243, 243, 245, 0.34);

  /* accent */
  --accent: var(--terra);
  --accent-bright: var(--terra-bright);
  --accent-on-dark: color-mix(in oklab, var(--accent) 58%, #f0ddd6);

  /* type */
  --font-sans: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Fragment Mono", "Courier New", monospace;

  /* layout */
  --maxw: 1320px;
  --gutter: 24px;
  --density: 1;
  --section-y: calc(clamp(72px, 9vw, 128px) * var(--density));

  /* motion */
  --dur-fast: 130ms;
  --dur: 240ms;
  --dur-slow: 640ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
  --page: var(--storm-deepest);
  --panel: #1f2c3b;
  --ink: var(--veil);
  --muted: rgba(243, 243, 245, 0.66);
  --faint: rgba(243, 243, 245, 0.42);
  --mist: rgba(243, 243, 245, 0.12);
  --line: rgba(243, 243, 245, 0.16);
  --line-strong: rgba(243, 243, 245, 0.34);
  --gain: #5fc088;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--page);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-mono);
  font-weight: 400;
  margin: 0;
}

a { color: inherit; }

.wrap {
  width: min(var(--maxw), calc(100vw - 2 * var(--gutter)));
  margin: 0 auto;
}
.wrap-narrow {
  width: min(900px, calc(100vw - 2 * var(--gutter)));
  margin: 0 auto;
}

.mono { font-family: var(--font-mono); }
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums lining-nums;
}

/* ---------- eyebrow / kicker ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  flex: 0 0 auto;
}
.on-dark .eyebrow { color: var(--on-dark-muted); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--storm);
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}
.nav.scrolled::after { transform: scaleX(1); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex: 0 0 auto;
}
.nav-brand .wm { width: clamp(150px, 16vw, 188px); display: block; }
.nav-brand .wm svg { display: block; width: 100%; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  position: relative;
  text-decoration: none;
  font-size: 14.5px;
  color: var(--on-dark-muted);
  padding: 8px 14px;
  transition: color var(--dur-fast) var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--on-dark); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--on-dark); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-dark-strong);
  color: var(--on-dark);
  width: 42px; height: 38px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn .arr { transition: transform var(--dur) var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn:active { transform: translateY(0.5px); }

.btn-sm { padding: 9px 14px; font-size: 13.5px; }

/* primary = accent fill */
.btn-primary {
  background: var(--accent);
  color: var(--veil);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }

/* solid ink */
.btn-ink {
  background: var(--storm);
  color: var(--veil);
  border-color: var(--storm);
}
.btn-ink:hover { background: var(--storm-deep); border-color: var(--storm-deep); }

/* ghost on light */
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(40, 55, 74, 0.04); }

/* ghost on dark */
.on-dark .btn-ghost,
.btn-ghost-dark {
  background: transparent;
  color: var(--on-dark);
  border-color: var(--line-dark-strong);
}
.on-dark .btn-ghost:hover,
.btn-ghost-dark:hover { border-color: var(--on-dark); background: rgba(243, 243, 245, 0.06); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: var(--section-y) 0; }
.section.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
[data-theme="dark"] .section.alt { background: #1a2632; }

.section-head { max-width: 760px; }
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 16px 0 0;
  text-wrap: balance;
}
.section-head .lede {
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.62;
  margin: 18px 0 0;
  max-width: 60ch;
}
.lede { text-wrap: pretty; }

/* dark full-bleed band with masked grid */
.band-dark {
  background: var(--storm-deep);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.band-dark .eyebrow { color: var(--on-dark-muted); }
.band-dark .lede { color: var(--on-dark-muted); }
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 120% at 85% 0%, #000 0%, transparent 62%);
  mask-image: radial-gradient(120% 120% at 85% 0%, #000 0%, transparent 62%);
  pointer-events: none;
}

/* ============================================================
   HAIRLINE GRID (1px gap technique)
   ============================================================ */
.hairgrid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.hairgrid > * { background: var(--panel); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* pillar cell */
.pillar { padding: clamp(24px, 3vw, 40px); position: relative; }
.pillar .top-accent {
  width: 56px; height: 2px; background: var(--accent); margin-bottom: 22px;
}
.pillar .idx {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-bottom: 10px;
}
.pillar h3 {
  font-size: clamp(18px, 1.6vw, 22px); line-height: 1.22; margin: 0 0 12px;
  color: var(--ink);
}
.pillar p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.58; }

/* ============================================================
   STEPS (numbered rows)
   ============================================================ */
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 92px 1.3fr 1fr;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.step .step-idx { font-family: var(--font-mono); font-size: clamp(26px, 3vw, 38px); color: var(--accent); line-height: 1; }
.step .step-title { display: flex; flex-direction: column; gap: 12px; }
.step .step-title h3 { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.25; color: var(--ink); }
.step .tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 4px 8px;
}
.step .step-body { color: var(--muted); font-size: 15.5px; line-height: 1.58; margin: 0; }

/* ============================================================
   CARDS / PANELS
   ============================================================ */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: clamp(20px, 2.4vw, 30px);
}
.panel-head {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}
.panel h3.panel-title { font-size: 20px; line-height: 1.2; color: var(--ink); margin: 0; }

/* product cards */
.prod-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(26px, 3vw, 40px); min-height: 220px; }
.prod-card .top-accent { width: 56px; height: 2px; background: var(--accent); }
.prod-card h3 { font-size: clamp(19px, 1.7vw, 24px); color: var(--ink); }
.prod-card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.58; }
.prod-card .card-link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.prod-card .card-link .arr { transition: transform var(--dur) var(--ease); }
.prod-card:hover .card-link .arr { transform: translateX(3px); }

/* ============================================================
   STAT STRIP
   ============================================================ */
.stat { padding: clamp(20px, 2.4vw, 28px); border-top: 4px solid var(--storm); }
.stat.accent-top { border-top-color: var(--accent); }
.stat .stat-label {
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--muted);
}
.stat .stat-value {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums lining-nums;
  font-size: clamp(26px, 3vw, 38px); line-height: 1; color: var(--storm); margin-top: 12px;
}
[data-theme="dark"] .stat .stat-value { color: var(--veil); }
.stat .stat-value.terra { color: var(--accent); }
.stat .stat-note { color: var(--muted); font-size: 12.5px; margin-top: 10px; }

/* ============================================================
   TABLE
   ============================================================ */
.ia-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ia-table th, .ia-table td {
  padding: 12px 10px; border-bottom: 1px solid var(--mist); text-align: right; vertical-align: middle;
}
.ia-table th:first-child, .ia-table td:first-child { text-align: left; }
.ia-table th {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--muted); font-weight: 400;
  border-bottom: 1px solid var(--line-strong);
}
.ia-table .ticker, .ia-table .num {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums lining-nums; color: var(--storm);
}
[data-theme="dark"] .ia-table .ticker, [data-theme="dark"] .ia-table .num { color: var(--veil); }
.ia-table .model-org { color: var(--faint); font-size: 12px; }
.ia-table tr.rank-row:hover td { background: var(--veil); }
[data-theme="dark"] .ia-table tr.rank-row:hover td { background: rgba(243,243,245,0.05); }
.ia-table .pos { color: var(--gain); }
.ia-table .neg { color: var(--loss); }
.ia-table .rank { color: var(--accent); font-family: var(--font-mono); }
.row-link { color: var(--accent); font-family: var(--font-mono); font-size: 12px; text-decoration: none; }
.row-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* segmented control */
.segmented { display: inline-flex; border: 1px solid var(--line); background: var(--panel); }
.segmented button {
  border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted);
  font-family: var(--font-mono); font-size: 12.5px; padding: 9px 16px; cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.segmented button:last-child { border-right: 0; }
.segmented button.active { background: var(--storm); color: var(--veil); }

/* quarter dropdown (leaderboard) */
.q-select-wrap { display: inline-flex; align-items: stretch; border: 1px solid var(--line); background: var(--panel); transition: border-color var(--dur-fast) var(--ease); }
.q-select-wrap:hover { border-color: var(--ink); }
.q-select-label { display: inline-flex; align-items: center; padding: 0 14px; border-right: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.q-select-box { position: relative; display: inline-flex; align-items: center; }
.q-select-box svg { position: absolute; right: 12px; pointer-events: none; color: var(--muted); }
.q-select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); padding: 9px 34px; text-align: center; text-align-last: center; cursor: pointer; }
.q-select:focus { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(64px, 8vw, 120px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 5.8vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  text-wrap: balance;
  margin: 22px 0 0;
}
.hero h1 .lift { color: var(--accent-on-dark); }
.hero .lede { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; margin: 24px 0 0; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust {
  display: grid; grid-template-columns: repeat(3, auto); gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(36px, 5vw, 56px); padding-top: 26px; border-top: 1px solid var(--line-dark);
  width: fit-content;
}
.hero-trust .t-val { font-family: var(--font-mono); font-variant-numeric: tabular-nums lining-nums; font-size: clamp(24px, 2.6vw, 32px); color: var(--on-dark); line-height: 1; }
.hero-trust .t-lab { color: var(--on-dark-muted); font-size: 13px; margin-top: 10px; max-width: 18ch; line-height: 1.4; }

/* hero side card */
.hero-card { border: 1px solid var(--line-dark-strong); background: rgba(243,243,245,0.03); }
.hero-card .hc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono); font-size: 13px; color: var(--on-dark);
}
.hc-live { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.08em; color: var(--on-dark-muted); }
.hc-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ea36b; box-shadow: 0 0 0 0 rgba(78,163,107,0.6); }
@media (prefers-reduced-motion: no-preference) { .hc-dot { animation: pulse 2.2s var(--ease) infinite; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(78,163,107,0.55); } 70% { box-shadow: 0 0 0 8px rgba(78,163,107,0); } 100% { box-shadow: 0 0 0 0 rgba(78,163,107,0); } }
.hc-body { padding: 18px; }
.hc-prompt {
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.55; color: var(--on-dark);
  border-left: 2px solid var(--accent); padding-left: 14px; margin-bottom: 20px; min-height: 3em;
}
.hc-caret { display: inline-block; width: 8px; height: 1.05em; background: var(--accent); transform: translateY(2px); }
@media (prefers-reduced-motion: no-preference) { .hc-caret { animation: blink 1s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0; } }
.hc-row { display: grid; grid-template-columns: 62px 1fr 56px; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-dark); }
.hc-row .tk { font-family: var(--font-mono); font-size: 13px; color: var(--on-dark); }
.hc-row .wt { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--on-dark-muted); text-align: right; }
.hc-track { height: 6px; background: rgba(243,243,245,0.10); overflow: hidden; }
.hc-bar { display: block; height: 100%; width: 0; background: var(--accent); transition: width var(--dur-slow) var(--ease); }

/* ---------- universe scan card ---------- */
.us-grid {
  display: grid;
  grid-template-columns: repeat(26, 1fr);
  gap: 5px;
  margin-bottom: 20px;
}
.us-dot {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(243, 243, 245, 0.09);
  transition: background 360ms var(--ease), transform 360ms var(--ease), box-shadow 360ms var(--ease);
}
.us-dot.lit { background: rgba(243, 243, 245, 0.30); }
.us-dot.scan {
  background: var(--accent-on-dark);
  transform: scale(1.35);
  box-shadow: 0 0 8px color-mix(in oklab, var(--accent-on-dark) 70%, transparent);
}
.us-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.us-stat { background: var(--storm-deep); padding: 14px 14px 16px; }
.us-val {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1;
  color: var(--on-dark);
}
.us-lab {
  display: block;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  line-height: 1.3;
}
.us-caption {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--on-dark-muted);
}
.us-caption .ux { color: var(--accent-on-dark); }

/* ---------- reasoning stream card ---------- */
.rs-stream {
  display: flex;
  flex-direction: column;
  min-height: 296px;
  font-family: var(--font-mono);
}
.rs-line {
  display: grid;
  grid-template-columns: 96px 1fr 16px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-dark);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 380ms var(--ease), transform 380ms var(--ease);
}
.rs-line:first-child { border-top: 1px solid var(--line-dark); }
.rs-line.show { opacity: 1; transform: none; }
.rs-tag { font-size: 10.5px; letter-spacing: 0.08em; color: var(--accent-on-dark); }
.rs-txt { font-size: 13.5px; color: var(--on-dark); line-height: 1.4; }
.rs-stat { position: relative; width: 14px; height: 14px; }
.rs-stat::before {
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--on-dark-faint);
  transition: all 300ms var(--ease);
}
.rs-line.working .rs-stat::before { background: var(--accent-on-dark); }
@media (prefers-reduced-motion: no-preference) {
  .rs-line.working .rs-stat::before { animation: rsPulse 0.9s var(--ease) infinite; }
}
@keyframes rsPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.rs-line.done .rs-stat::before {
  width: 13px; height: 13px;
  background: transparent;
  border: 1.5px solid #4ea36b;
  border-top-color: transparent;
  border-right-color: transparent;
  border-radius: 0;
  transform: rotate(-45deg) translate(1px, -2px) scale(0.78);
  animation: none;
}
.rs-foot {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--on-dark);
}
.rs-foot .ux { color: var(--accent-on-dark); }

/* ============================================================
   CTA BAND (email signup)
   ============================================================ */
.cta-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.cta-grid h2 { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; }
.cta-grid h2 .lift { color: var(--accent-on-dark); }
.signup { display: flex; border: 1px solid var(--line-dark-strong); background: rgba(243,243,245,0.04); }
.signup input {
  flex: 1; min-width: 0; background: transparent; border: 0; color: var(--on-dark);
  font-family: var(--font-sans); font-size: 15px; padding: 15px 16px;
}
.signup input::placeholder { color: var(--on-dark-faint); }
.signup input:focus { outline: none; }
.signup button { border: 0; }
.signup-hint { color: var(--on-dark-faint); font-size: 13px; margin-top: 12px; }
.signup-hint.ok { color: #8fdba8; }
.signup-hint.err { color: var(--loss); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--storm-deepest); color: var(--on-dark); padding: clamp(56px, 7vw, 88px) 0 40px; }
.footer a { color: var(--on-dark-muted); text-decoration: none; }
.footer a:hover { color: var(--on-dark); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer-brand .wm { width: 200px; display: block; margin-bottom: 18px; }
.footer-brand .wm svg { width: 100%; height: auto; display: block; }
.footer-brand p { color: var(--on-dark-muted); font-size: 14px; line-height: 1.6; max-width: 36ch; margin: 0; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-faint); margin: 0 0 16px; font-weight: 400; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14.5px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 26px; color: var(--on-dark-faint); font-size: 13px; }
.footer-bottom .mono { font-family: var(--font-mono); }
.usa-mark { display: inline-flex; align-items: center; gap: 16px; color: var(--on-dark-muted); }
.usa-mark .mono { letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; }
.usa-mark svg { flex: none; }
.disclosure { color: var(--on-dark-faint); font-size: 12px; line-height: 1.6; margin: 26px 0 0; max-width: 100%; }
.disclosure a { color: var(--on-dark-muted); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   COMPLIANCE MODAL
   ============================================================ */
.scrim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(22, 33, 45, 0.62);
  backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.scrim.open { display: flex; }
.modal {
  background: var(--panel); border: 1px solid var(--line-strong); max-width: 620px; width: 100%;
  max-height: 86vh; overflow: auto; box-shadow: 0 18px 50px rgba(22,33,45,0.28);
}
[data-theme="dark"] .modal { background: #1f2c3b; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; border-bottom: 1px solid var(--line); background: var(--storm); color: var(--veil);
}
.modal-head h3 { font-family: var(--font-mono); font-size: 16px; color: var(--veil); }
.modal-head .eyebrow { color: rgba(243,243,245,0.66); }
.modal-close { background: transparent; border: 0; color: var(--veil); cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: 24px; }
.modal-body p { color: var(--muted); font-size: 13.5px; line-height: 1.62; margin: 0 0 14px; }
.modal-body p.legal { font-family: var(--font-mono); font-size: 12px; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 14px; }
.modal-actions { display: flex; gap: 12px; padding: 0 24px 24px; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 70ms; }
.reveal.d2 { transition-delay: 140ms; }
.reveal.d3 { transition-delay: 210ms; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid, .cta-grid { grid-template-columns: 1fr; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-card { order: 2; }
}
@media (max-width: 1024px) {
  .nav-links, .nav-cta .nav-desktop-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .step { grid-template-columns: 56px 1fr; }
  .step .step-body { grid-column: 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cols-3, .cols-2, .cols-4 { grid-template-columns: 1fr; }
  .hero-trust { grid-template-columns: 1fr 1fr; gap: 22px; }
  .modal-actions { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTENT BLOCKS
   ============================================================ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.two-col p { color: var(--muted); font-size: 16.5px; line-height: 1.64; margin: 0 0 16px; }
.two-col p:last-child { margin-bottom: 0; }
.lede-lg { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.4; color: var(--ink); letter-spacing: -0.01em; max-width: 22ch; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

/* page hero (lighter than home hero) */
.page-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.016em; text-wrap: balance; margin: 20px 0 0; }
.page-hero h1 .lift { color: var(--accent-on-dark); }
.page-hero.band-dark h1 .lift { color: var(--accent-on-dark); }
.page-hero .lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; margin: 22px 0 0; max-width: 60ch; }
.page-hero.on-light h1 .lift { color: var(--accent); }

/* feature list (investor X capabilities) */
.feature-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.feature-list li { padding: 16px 0; border-bottom: 1px solid var(--line-dark); display: flex; gap: 14px; align-items: baseline; color: var(--on-dark-muted); font-size: 15.5px; line-height: 1.5; }
.feature-list li .fi { font-family: var(--font-mono); color: var(--accent-on-dark); font-size: 13px; flex: 0 0 auto; }

/* ============================================================
   TEAM
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.team-card { background: var(--panel); padding: 0; }
.portrait {
  aspect-ratio: 4 / 5; width: 100%;
  position: relative;
  overflow: hidden;
  background-color: var(--mist);
  border-bottom: 1px solid var(--line);
}
.portrait img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
  filter: grayscale(0.9) contrast(1.02) brightness(1.02);
  transition: transform 600ms var(--ease);
}
.portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  mix-blend-mode: color;
  opacity: 0.28;
  pointer-events: none;
}
.team-card:hover .portrait img { transform: scale(1.03); }
.portrait .ini { font-family: var(--font-mono); font-size: 13px; color: var(--faint); }
.team-meta { padding: 18px 20px 24px; }
.team-meta .nm { font-family: var(--font-mono); font-size: 17px; color: var(--ink); }
.team-meta .rl { font-size: 13px; color: var(--muted); margin-top: 6px; letter-spacing: 0.02em; }
@media (max-width: 880px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-grid > * { background: var(--panel); padding: clamp(28px, 3.5vw, 44px); }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-sans); font-size: 15px; color: var(--ink);
  background: var(--page); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px;
}
[data-theme="dark"] .form-field input, [data-theme="dark"] .form-field select, [data-theme="dark"] .form-field textarea { background: #16212d; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--storm); box-shadow: 0 0 0 3px rgba(40,55,74,0.12); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-msg { font-size: 14px; margin-top: 14px; min-height: 1.2em; }
.form-msg.ok { color: var(--gain); }
.form-msg.err { color: var(--loss); }
.contact-routes { display: flex; flex-direction: column; gap: 0; }
.route { padding: 20px 0; border-bottom: 1px solid var(--line); }
.route:first-of-type { padding-top: 0; }
.route:last-of-type { border-bottom: 0; }
.route h4 { font-family: var(--font-mono); font-size: 15px; color: var(--ink); margin: 0 0 8px; }
.route p { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.route a { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); text-decoration: none; display: inline-flex; gap: 7px; align-items: center; }
.route a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } .form-two { grid-template-columns: 1fr; } }

/* ============================================================
   INSIGHTS
   ============================================================ */
.feat-insight { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 1px; }
.feat-insight > * { background: var(--panel); }
.feat-thumb { background-color: var(--storm); background-image: linear-gradient(rgba(243,243,245,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(243,243,245,0.07) 1px, transparent 1px); background-size: 32px 32px; min-height: 280px; }
.feat-body { padding: clamp(28px, 3.5vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.feat-body h3 { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.16; color: var(--ink); margin: 14px 0 0; letter-spacing: -0.01em; }
.feat-body p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 16px 0 0; }
.post-meta { display: flex; gap: 14px; align-items: center; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.post-meta .cat { color: var(--accent); }
.insight-list { border-top: 1px solid var(--line); }
.insight-row { display: grid; grid-template-columns: 130px 1fr auto; gap: clamp(16px, 3vw, 40px); align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding-left var(--dur) var(--ease); }
.insight-row:hover { padding-left: 8px; }
.insight-row .ir-date { font-family: var(--font-mono); font-size: 13px; color: var(--faint); }
.insight-row .ir-title { font-family: var(--font-mono); font-size: clamp(17px, 1.6vw, 21px); color: var(--ink); line-height: 1.25; }
.insight-row .ir-cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
@media (max-width: 760px) { .feat-insight { grid-template-columns: 1fr; } .insight-row { grid-template-columns: 1fr; gap: 8px; } .insight-row .ir-cat { display: none; } }

/* benchmark quarter view toggling */
.qview { display: none; }
.qview.active { display: block; }
.legal-block { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--panel); padding: clamp(20px, 2.4vw, 28px); }
.legal-block p { color: var(--muted); font-size: 12.5px; line-height: 1.6; margin: 0 0 12px; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block .lh { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }

/* ============================================================
   IDEAS v2 — datasheet treatment (scoped to .spec-sheet)
   #4 oversized mono section numerals · #5 spec-sheet framing
   (corner ticks + mono field labels + ruler) · #6 rationed accent
   ============================================================ */
/* --- #4 + #5: numbered datasheet section header --- */
.spec-sheet .ds-head { display: grid; grid-template-columns: minmax(0, max-content) 1fr; gap: clamp(24px, 4vw, 72px); align-items: start; }
.spec-sheet .ds-fig { position: relative; padding: 8px 16px 14px; border-left: 1px solid var(--line-strong); }
.spec-sheet .ds-fig::before, .spec-sheet .ds-fig::after { content: ""; position: absolute; width: 9px; height: 9px; border-color: var(--line-strong); border-style: solid; }
.spec-sheet .ds-fig::before { top: 0; left: -1px; border-width: 1px 0 0 1px; }
.spec-sheet .ds-fig::after { bottom: 0; left: -1px; border-width: 0 0 1px 1px; }
.spec-sheet .sec-num { display: block; font-family: var(--font-mono); font-variant-numeric: tabular-nums lining-nums; font-size: clamp(60px, 8.5vw, 120px); line-height: 0.84; letter-spacing: -0.04em; color: var(--accent); }
.spec-sheet .sec-cap { display: block; margin-top: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.spec-sheet .ds-text { padding-top: 6px; }
.spec-sheet .ds-text .eyebrow { margin-bottom: 14px; }
.spec-sheet .ds-text h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
.spec-sheet .ds-text .lede { color: var(--muted); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.62; margin: 18px 0 0; max-width: 60ch; }
@media (max-width: 760px) {
  .spec-sheet .ds-head { grid-template-columns: 1fr; gap: 22px; }
  .spec-sheet .ds-fig { border-left: 0; padding: 0; }
  .spec-sheet .ds-fig::before, .spec-sheet .ds-fig::after { display: none; }
  .spec-sheet .sec-cap { white-space: normal; }
}

/* --- #5: ruler rule + mono field codes on cards --- */
.spec-sheet .ruler { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.spec-sheet .ruler::before { content: ""; height: 1px; width: 38px; background: var(--line-strong); flex: 0 0 auto; }
.spec-sheet .ruler::after { content: ""; height: 1px; flex: 1 1 auto; background: var(--line); }
.spec-sheet .pillar, .spec-sheet .prod-card { position: relative; }
.spec-sheet .pillar .fc, .spec-sheet .prod-card .fc { position: absolute; top: clamp(20px, 2.6vw, 32px); right: clamp(20px, 2.6vw, 32px); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--faint); }

/* --- #6: ration the accent — neutralize decorative accent in body --- */
.spec-sheet .pillar .top-accent { display: none; }
.spec-sheet .prod-card .top-accent { background: var(--line-strong); }
.spec-sheet .pillar .idx { color: var(--faint); }
.spec-sheet .prod-card .card-link { color: var(--muted); }
.spec-sheet .prod-card .card-link .arr { color: var(--accent); }   /* lone accent cue */
.spec-sheet .pillar h3 { margin-top: 2px; }

/* hero card gets the corner-tick frame too */
.spec-sheet .hero-card { position: relative; }
.spec-sheet .hero-card::before, .spec-sheet .hero-card::after { content: ""; position: absolute; width: 11px; height: 11px; border-color: var(--line-dark-strong); border-style: solid; pointer-events: none; }
.spec-sheet .hero-card::before { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.spec-sheet .hero-card::after { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
[data-theme="paper"] .spec-sheet .hero-card::before, [data-theme="paper"] .spec-sheet .hero-card::after { border-color: var(--line-strong); }

/* ============================================================
   IDEAS v2 — live-thesis ledger · data-texture · accountability strip
   ============================================================ */
/* live-thesis ledger holding */
.hc-holding { padding: 13px 0; border-top: 1px solid var(--line-dark); }
.hc-holding:first-of-type { border-top: 0; }
.hc-h-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hc-h-top .tk { font-family: var(--font-mono); font-size: 13px; color: var(--on-dark); }
.hc-h-top .wt { font-family: var(--font-mono); font-variant-numeric: tabular-nums lining-nums; font-size: 13px; color: var(--on-dark-muted); }
.hc-holding .hc-track { margin: 9px 0 9px; }
.hc-thesis { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.45; color: var(--on-dark-faint); }

/* data-as-texture backdrop (faint real return line) */
.data-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: radial-gradient(130% 120% at 82% 8%, #000 0%, transparent 72%);
  mask-image: radial-gradient(130% 120% at 82% 8%, #000 0%, transparent 72%); }
.data-bg svg { width: 100%; height: 100%; display: block; }
.data-bg .series { fill: none; stroke: var(--on-dark-faint); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.data-bg .bench { fill: none; stroke: rgba(243,243,245,0.16); stroke-width: 1; vector-effect: non-scaling-stroke; }
.data-bg .axis { stroke: var(--line-dark); stroke-width: 1; }

/* accountability strip — numbers held against a benchmark */
.acct-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.acct-row { display: flex; flex-wrap: wrap; align-items: stretch; }
.acct-item { display: flex; flex-direction: column; gap: 7px; padding: 16px clamp(16px, 2.2vw, 26px); border-right: 1px solid var(--line); flex: 1 1 auto; min-width: 0; }
.acct-item:last-child { border-right: 0; }
.acct-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.acct-val { font-family: var(--font-mono); font-variant-numeric: tabular-nums lining-nums; font-size: 15px; color: var(--ink); white-space: nowrap; }
.acct-val .ac { color: var(--accent); }
.acct-val .dim { color: var(--muted); }
@media (max-width: 720px) { .acct-item { flex-basis: 50%; border-bottom: 1px solid var(--line); } }

/* paper-theme adaptations for the v2 elements */
[data-theme="paper"] .hc-holding { border-top-color: var(--line); }
[data-theme="paper"] .hc-h-top .tk { color: var(--ink); }
[data-theme="paper"] .hc-h-top .wt { color: var(--muted); }
[data-theme="paper"] .hc-thesis { color: var(--muted); }
[data-theme="paper"] .data-bg .series { stroke: rgba(21,22,26,0.30); }
[data-theme="paper"] .data-bg .bench { stroke: rgba(21,22,26,0.14); }
[data-theme="paper"] .data-bg .axis { stroke: var(--line); }

/* suppress transition stalls when switching theme/accent (preview env
   freezes mid-transition values; snapping avoids frozen colors) */
.ia-no-trans *, .ia-no-trans *::before, .ia-no-trans *::after { transition: none !important; }

/* ============================================================
   BRAND MARK — watermark + favicon (injected via site.js)
   ============================================================ */
.mark-wm {
  position: absolute;
  pointer-events: none;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-position: center; mask-position: center;
  background: var(--on-dark);
  opacity: 0.05;
  z-index: 0;
}
.band-dark .wrap { position: relative; z-index: 1; }
.footer { position: relative; overflow: hidden; }
.footer .wrap { position: relative; z-index: 1; }

/* mobile menu drawer */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; position: fixed; inset: 72px 0 0; z-index: 59; background: var(--storm); padding: 24px var(--gutter); overflow-y: auto; }
.mobile-menu a { display: block; color: var(--on-dark); text-decoration: none; font-family: var(--font-mono); font-size: 18px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.mobile-menu .mm-cta { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.crumb { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-dark-muted); text-decoration: none; margin-bottom: 8px; }
.crumb:hover { color: var(--on-dark); }
.crumb .bk { color: var(--accent-on-dark); }
.on-light .crumb { color: var(--muted); }
.on-light .crumb:hover { color: var(--ink); }
.on-light .crumb .bk { color: var(--accent); }

/* ============================================================
   CLICKABLE MODEL NAMES (earnings leaderboard)
   ============================================================ */
.ia-table a.model-link { text-decoration: none; color: var(--storm); border-bottom: 1px solid transparent; transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.ia-table a.model-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
[data-theme="dark"] .ia-table a.model-link { color: var(--veil); }
[data-theme="dark"] .ia-table a.model-link:hover { color: var(--accent-on-dark); border-bottom-color: var(--accent-on-dark); }
.ia-table td:first-child .row-hint { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.lead-note { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.03em; color: var(--faint); margin: 26px 2px 0; display: inline-flex; align-items: center; gap: 8px; }
.lead-note::before { content: ""; width: 14px; height: 1px; background: var(--line-strong); }

/* ============================================================
   BENCHMARK HUB CARDS
   ============================================================ */
.bench-hub { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.bench-hub > * { background: var(--panel); }
.bench-card { display: flex; flex-direction: column; padding: clamp(30px, 4vw, 52px); min-height: 440px; position: relative; text-decoration: none; color: inherit; transition: background var(--dur) var(--ease); }
.bench-card:hover { background: var(--veil); }
[data-theme="dark"] .bench-card:hover { background: rgba(243,243,245,0.04); }
.bench-card .bc-top { display: flex; align-items: center; justify-content: space-between; }
.bench-card .bc-kind { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.bench-card .bc-ext { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; }
.bench-card .bc-glyph { margin: clamp(28px, 4vw, 44px) 0; height: 132px; border: 1px solid var(--line); background: var(--storm); position: relative; overflow: hidden; }
.bench-card .bc-glyph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bench-card h2 { font-family: var(--font-mono); font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
.bench-card p { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 14px 0 0; }
.bench-card .bc-meta { display: flex; gap: 28px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.bench-card .bc-meta .m-val { font-family: var(--font-mono); font-variant-numeric: tabular-nums lining-nums; font-size: 22px; color: var(--storm); line-height: 1; }
[data-theme="dark"] .bench-card .bc-meta .m-val { color: var(--veil); }
.bench-card .bc-meta .m-lab { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.bench-card .bc-cta { margin-top: auto; padding-top: 26px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 9px; }
.bench-card .bc-cta .arr { transition: transform var(--dur) var(--ease); }
.bench-card:hover .bc-cta .arr { transform: translateX(4px); }
@media (max-width: 820px) { .bench-hub { grid-template-columns: 1fr; } .bench-card { min-height: 0; } }

/* ============================================================
   MODEL DETAIL
   ============================================================ */
.model-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 40px; }
.model-head .mh-org { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-muted); }
.model-head h1 { font-size: clamp(34px, 5vw, 60px); margin: 14px 0 0; letter-spacing: -0.016em; }
.model-rankpill { font-family: var(--font-mono); font-size: 13px; color: var(--on-dark); border: 1px solid var(--line-dark-strong); padding: 8px 14px; display: inline-flex; gap: 10px; align-items: center; }
.model-rankpill .rk { color: var(--accent-on-dark); }
.qbars { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.qbar { display: grid; grid-template-columns: 120px 1fr 72px; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.qbar .qb-q { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.qbar .qb-track { height: 12px; background: var(--mist); position: relative; }
.qbar .qb-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); transition: width 900ms var(--ease); }
.qbar .qb-base { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--line-strong); }
.qbar .qb-val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 14px; color: var(--storm); text-align: right; }
[data-theme="dark"] .qbar .qb-val { color: var(--veil); }
.pred-dir { font-family: var(--font-mono); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.pred-dir.up { color: var(--gain); }
.pred-dir.down { color: var(--loss); }
.pred-dir.flat { color: var(--muted); }
.hit-badge { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line-strong); }
.hit-badge.hit { color: var(--gain); border-color: color-mix(in oklab, var(--gain) 50%, transparent); }
.hit-badge.miss { color: var(--loss); border-color: color-mix(in oklab, var(--loss) 45%, transparent); }

/* ============================================================
   BLOG POST (article)
   ============================================================ */
.article { max-width: 760px; margin: 0 auto; }
.article .art-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.article .art-meta .cat { color: var(--accent); }
.article h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.016em; text-wrap: balance; margin: 0; }
.article .art-dek { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--muted); margin: 22px 0 0; text-wrap: pretty; }
.article .art-byline { display: flex; align-items: center; gap: 12px; margin: 28px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.article .art-byline .av { width: 36px; height: 36px; background: var(--mist); background-size: cover; background-position: center top; border-radius: 50%; flex: 0 0 auto; }
.article .art-byline strong { color: var(--ink); font-weight: 600; }
.art-body { margin-top: 34px; }
.art-body > * { margin: 0 0 22px; }
.art-body p { font-size: 18px; line-height: 1.68; color: var(--ink); }
.art-body h2 { font-family: var(--font-mono); font-weight: 400; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); margin-top: 40px; }
.art-body h3 { font-family: var(--font-mono); font-weight: 400; font-size: 17px; color: var(--ink); margin-top: 30px; }
.art-body ul { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.art-body li { position: relative; padding-left: 28px; font-size: 17px; line-height: 1.6; color: var(--ink); }
.art-body li::before { content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 1px; background: var(--accent); }
.art-body blockquote { margin: 0 0 22px; padding: 4px 0 4px 24px; border-left: 2px solid var(--accent); font-family: var(--font-mono); font-size: 19px; line-height: 1.4; color: var(--ink); }
.art-body .pull { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.28; letter-spacing: -0.01em; color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; font-family: var(--font-mono); font-weight: 400; }
.art-hero-fig { height: clamp(220px, 32vw, 380px); border: 1px solid var(--line); margin-top: 36px; background-color: var(--storm); background-image: linear-gradient(rgba(243,243,245,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(243,243,245,0.07) 1px, transparent 1px); background-size: 34px 34px; }
.art-hero-fig.has-img { height: auto; background: var(--panel); background-image: none; padding: 0; overflow: hidden; }
.art-hero-fig.has-img img { display: block; width: 100%; height: auto; }
.art-figure { margin: 30px 0; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.art-figure img { display: block; width: 100%; height: auto; }
.art-foot { max-width: 760px; margin: 40px auto 0; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.art-foot a { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.related { border-top: 1px solid var(--line); }
.art-body .art-end { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--faint); text-align: center; margin: 40px 0 26px; }
.art-disclosure { border-top: 1px solid var(--line); padding-top: 24px; }
.art-disclosure p { font-family: var(--font-sans); font-size: 12.5px; line-height: 1.62; color: var(--faint); margin: 0 0 14px; }
.art-disclosure p:last-child { margin-bottom: 0; }
.art-disclosure a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   THESIS (home) — theme-aware emphasis + numbered points
   ============================================================ */
.band-dark .hl { color: var(--on-dark); }
[data-theme="paper"] .band-dark .hl { color: var(--ink); }

.thesis-points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.thesis-points li { display: grid; grid-template-columns: 44px 1fr; gap: clamp(14px, 1.6vw, 22px); padding: clamp(16px, 2vw, 22px) 0; border-bottom: 1px solid var(--line-dark); align-items: baseline; }
.thesis-points .fi { font-family: var(--font-mono); font-size: 13px; color: var(--accent-on-dark); line-height: 1.5; }
.thesis-points .tp { color: var(--on-dark-muted); font-size: 15.5px; line-height: 1.55; text-align: left; }
.thesis-points .tp strong { color: var(--on-dark); font-weight: 600; }
[data-theme="paper"] .thesis-points { border-top-color: var(--line); }
[data-theme="paper"] .thesis-points li { border-bottom-color: var(--line); }
[data-theme="paper"] .thesis-points .fi { color: var(--accent); }
[data-theme="paper"] .thesis-points .tp { color: var(--muted); }
[data-theme="paper"] .thesis-points .tp strong { color: var(--ink); }
@media (max-width: 880px) { .thesis-points li { grid-template-columns: 32px 1fr; gap: 12px; } }

/* ============================================================
   THESIS (home) — problem | answer, balanced editorial
   ============================================================ */
.thesis-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.thesis-grid .thesis-h { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.012em; margin: 16px 0 0; text-wrap: balance; }
.thesis-grid .thesis-problem { color: var(--muted); font-size: clamp(17px, 1.55vw, 21px); line-height: 1.55; margin: 24px 0 0; max-width: 32ch; text-wrap: pretty; }
.thesis-grid .thesis-problem .em { color: var(--ink); }
@media (max-width: 880px) { .thesis-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ============================================================
   THESIS SYNTHESIS (home — right column, no boxes)
   ============================================================ */
.synth { display: flex; flex-direction: column; }
.synth .synth-lead { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 4px; }
.synth-row { display: grid; grid-template-columns: 132px 1fr; gap: clamp(16px, 2.4vw, 32px); padding: clamp(18px, 2.2vw, 26px) 0; border-top: 1px solid var(--line); align-items: baseline; }
.synth-row:last-child { border-bottom: 1px solid var(--line); }
.synth-row .sk { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.synth-row .sv { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; color: var(--muted); margin: 0; text-wrap: pretty; }
.synth-row.is-accent { position: relative; }
.synth-row.is-accent .sk { color: var(--accent); }
.synth-row.is-accent .sv { color: var(--ink); }
.synth-row.is-accent::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--accent); }
@media (max-width: 880px) { .synth-row { grid-template-columns: 1fr; gap: 8px; } .synth-row.is-accent::before { display: none; } .synth-row.is-accent { padding-left: 14px; border-left: 2px solid var(--accent); } }

/* ============================================================
   PROVIDER LOGO WALL
   ============================================================ */
.logo-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.logo-cell { background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: clamp(26px, 3.2vw, 40px) 16px; text-align: center; transition: background var(--dur) var(--ease); }
.logo-cell:hover { background: var(--veil); }
[data-theme="dark"] .logo-cell:hover { background: rgba(243,243,245,0.04); }
.logo-cell .glyph { display: none; }
.logo-cell .pname { font-family: var(--font-mono); font-size: clamp(16px, 1.7vw, 21px); letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; line-height: 1; }
.logo-cell .psub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.logo-cell .psub::before { content: ""; display: inline-block; width: 12px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: 7px; }
@media (max-width: 620px) { .logo-wall { grid-template-columns: repeat(2, 1fr); } .logo-cell { flex-direction: column; gap: 8px; } }

/* ============================================================
   PAPER THEME  — warm cream + near-black ink + one accent,
   bold-grotesque display, mono demoted to labels, ink data bars.
   Works with both green and terra accents.
   ============================================================ */
[data-theme="paper"] {
  --page: #f4f3ef;
  --panel: #fbfaf5;
  --charcoal: #15161a;
  --ink: #15161a;
  --muted: rgba(21, 22, 26, 0.62);
  --faint: rgba(21, 22, 26, 0.40);
  --mist: #e4e1d7;
  --veil: #f4f3ef;
  --line: rgba(21, 22, 26, 0.12);
  --line-strong: rgba(21, 22, 26, 0.26);
  --storm: #15161a;
  --storm-deep: #f4f3ef;
  --gain: #1f6f54;
  --accent: #1f6f54;
  --accent-bright: #2f7d4f;
  --accent-on-dark: #4e9a75;
}

/* display headlines → bold grotesque */
[data-theme="paper"] h1,
[data-theme="paper"] h2 { font-family: "Space Grotesk", "Albert Sans", sans-serif; font-weight: 700; letter-spacing: -0.03em; }
[data-theme="paper"] .hero h1 { letter-spacing: -0.035em; }

/* dark bands become cream */
[data-theme="paper"] .band-dark,
[data-theme="paper"] .page-hero.band-dark { background: var(--page); color: var(--ink); }
[data-theme="paper"] .on-dark { color: var(--ink); }
[data-theme="paper"] .band-dark .lede,
[data-theme="paper"] .page-hero.band-dark .lede { color: var(--muted); }
[data-theme="paper"] .band-dark .eyebrow,
[data-theme="paper"] .on-dark .eyebrow { color: var(--muted); }
/* model detail head → legible on cream band */
[data-theme="paper"] .model-head .mh-org { color: var(--muted); }
[data-theme="paper"] .crumb { color: var(--muted); }
[data-theme="paper"] .crumb:hover { color: var(--ink); }
[data-theme="paper"] .crumb .bk { color: var(--accent); }
[data-theme="paper"] .model-rankpill { color: var(--ink); border-color: var(--line-strong); }
[data-theme="paper"] .model-rankpill .rk { color: var(--accent); }
[data-theme="paper"] .grid-bg::before {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
}

/* accent keyword stays solid accent (no lifted tint on light) */
[data-theme="paper"] .lift,
[data-theme="paper"] .hero h1 .lift,
[data-theme="paper"] .cta-grid h2 .lift,
[data-theme="paper"] .page-hero h1 .lift { color: var(--accent); }

/* hero card → light */
[data-theme="paper"] .hero-card { background: var(--panel); border-color: var(--line); }
[data-theme="paper"] .hc-head { color: var(--ink); border-bottom-color: var(--line); }
[data-theme="paper"] .hc-live { color: var(--muted); }
[data-theme="paper"] .hc-prompt { color: var(--ink); }
[data-theme="paper"] .hc-row { border-top-color: var(--line); }
[data-theme="paper"] .hc-row .tk { color: var(--ink); }
[data-theme="paper"] .hc-row .wt { color: var(--muted); }
[data-theme="paper"] .hc-track { background: var(--mist); }
[data-theme="paper"] .hc-bar { background: var(--ink); }   /* ink data bars */

/* reasoning stream → light card */
[data-theme="paper"] .rs-line { border-color: var(--line); }
[data-theme="paper"] .rs-line:first-child { border-top-color: var(--line); }
[data-theme="paper"] .rs-tag { color: var(--accent); }
[data-theme="paper"] .rs-txt { color: var(--ink); }
[data-theme="paper"] .rs-stat::before { background: var(--faint); }
[data-theme="paper"] .rs-line.working .rs-stat::before { background: var(--accent); }
[data-theme="paper"] .rs-line.done .rs-stat::before { border-color: var(--gain); border-top-color: transparent; border-right-color: transparent; background: transparent; }
[data-theme="paper"] .rs-foot { color: var(--muted); }
[data-theme="paper"] .rs-foot .ux { color: var(--accent); }

/* ghost-dark buttons on the now-light bands → ink ghost */
[data-theme="paper"] .band-dark .btn-ghost-dark,
[data-theme="paper"] .nav .btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--line-strong); }
[data-theme="paper"] .band-dark .btn-ghost-dark:hover,
[data-theme="paper"] .nav .btn-ghost-dark:hover { border-color: var(--ink); background: rgba(21,22,26,0.05); }

/* signup field → light */
[data-theme="paper"] .signup { background: var(--panel); border-color: var(--line-strong); }
[data-theme="paper"] .signup input { color: var(--ink); }
[data-theme="paper"] .signup input::placeholder { color: var(--faint); }
[data-theme="paper"] .signup-hint { color: var(--muted); }

/* feature list (Investor X) */
[data-theme="paper"] .feature-list { border-top-color: var(--line); }
[data-theme="paper"] .feature-list li { border-bottom-color: var(--line); color: var(--muted); }
[data-theme="paper"] .feature-list li .fi { color: var(--accent); }

/* nav → cream with ink wordmark + mono links */
[data-theme="paper"] .nav { background: var(--page); color: var(--ink); border-bottom-color: var(--line); }
[data-theme="paper"] .nav-brand .wm img { filter: brightness(0); }
[data-theme="paper"] .nav-links a { color: var(--muted); }
[data-theme="paper"] .nav-links a:hover,
[data-theme="paper"] .nav-links a.active { color: var(--ink); }
/* hamburger toggle + mobile drawer adapt to the cream nav */
[data-theme="paper"] .nav-toggle { color: var(--ink); border-color: var(--line-strong); }
[data-theme="paper"] .nav-toggle:hover { background: rgba(21,22,26,0.05); }

/* data + components recolored off navy */
[data-theme="paper"] .stat { border-top-color: var(--ink); }
[data-theme="paper"] .stat .stat-value { color: var(--ink); }
[data-theme="paper"] .stat .stat-value.terra { color: var(--accent); }
[data-theme="paper"] .ia-table .ticker,
[data-theme="paper"] .ia-table .num { color: var(--ink); }
[data-theme="paper"] .ia-table .rank { color: var(--accent); }
[data-theme="paper"] .bar { background: var(--ink); }
[data-theme="paper"] .segmented button.active { background: var(--ink); color: var(--page); }
[data-theme="paper"] .feat-thumb { background-color: #15161a; }
[data-theme="paper"] .modal-head { background: var(--ink); }

/* footer grounds the airy page in ink (keeps light wordmark legible) */
[data-theme="paper"] .footer { background: #15161a; }

/* eyebrow tick keeps its dot-and-dash energy via accent (already accent) */
