/* ============================================================
   Cogniron — Homepage
   System A "Steel": Zinc neutrals + Indigo accent.
   Light marketing canvas, one dark platform band.
   Research-paper register throughout.
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* ── Neutrals + accent (light) ── */
  --bg-canvas: #FFFFFF;
  --bg-subtle: #FAFAFA;
  --bg-surface: #F4F4F5;
  --bg-elevated: #FFFFFF;
  --bg-inverted: #09090B;
  --border-subtle: #E4E4E7;
  --border-default: #D4D4D8;
  --border-strong: #09090B;
  --text-primary: #09090B;
  --text-secondary: #71717A;
  --text-tertiary: #A1A1AA;
  --text-inverted: #FAFAFA;
  --accent: #6366F1;
  --accent-hover: #4F46E5;
  --accent-subtle: #EEF2FF;
  --accent-soft: #EEF2FF;
  --accent-glow: rgba(99,102,241,0.16);
  --success: #16A34A;
  --warning: #CA8A04;
  --danger: #DC2626;

  /* ── Status (product mocks only) ── */
  --status-pass: #22C55E;
  --status-fail: #EF4444;
  --status-running: #3B82F6;
  --status-skip: #94A3B8;
  --status-block: #F59E0B;

  /* ── Type ── */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  --maxw: 1200px;
  --pad: 64px;
}

/* Dark platform band — Slate tones. Scoped so figures inside
   resolve dark token values via getComputedStyle. */
.band-dark {
  --bg-canvas: #1E1F23;
  --bg-subtle: #26272C;
  --bg-surface: #2E2F35;
  --bg-elevated: #35363D;
  --bg-inverted: #FFFFFF;
  --border-subtle: #303138;
  --border-default: #43454E;
  --border-strong: rgba(255,255,255,0.24);
  --text-primary: #ECEEF2;
  --text-secondary: #A3A9B5;
  --text-tertiary: #6C7280;
  --text-inverted: #16181D;
  --accent: #818CF8;
  --accent-hover: #A5B4FC;
  --accent-subtle: rgba(129,140,248,0.14);
  --accent-soft: rgba(129,140,248,0.12);
  --accent-glow: rgba(129,140,248,0.26);
  background:
    radial-gradient(80% 96% at 86% -10%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 58%),
    radial-gradient(66% 82% at 2% 110%, color-mix(in srgb, #8B5CF6 32%, transparent), transparent 60%),
    radial-gradient(52% 66% at 56% 48%, color-mix(in srgb, #6366F1 18%, transparent), transparent 72%),
    var(--bg-canvas);
  color: var(--text-primary);
}

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
}
code, .mono { font-family: var(--font-mono); }
::selection { background: var(--accent); color: #fff; }

/* ── Site-wide film grain ─────────────────────────────────────────────
   One fixed, non-interactive overlay across every page. multiply makes it
   a gentle paper speckle on the light surfaces and renders to near-nothing
   on the dark hero / CTA bands (multiply on dark ≈ no change), so dark
   sections stay clean. Sits below the nav (z 50), panels, and modals. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 30; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  opacity: 0.28;
  mix-blend-mode: multiply;
}
@media print { body::after { display: none !important; } }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ── Shared atoms ───────────────────────────────────── */
.accent-bar {
  width: 52px; height: 7px; background: var(--accent);
  transform: skewX(-20deg); border-radius: 1px;
}
.accent-bar.sm { width: 34px; height: 5px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent);
}
.eyebrow .chapnum { color: var(--text-tertiary); }

.serif { font-family: var(--font-sans); font-style: normal; font-weight: 500; }

.lead { font-size: 22px; line-height: 1.5; color: var(--text-secondary); max-width: 60ch; text-wrap: pretty; }

/* Display type scale (1.250 modular) */
.h1 { font-size: clamp(44px, 6.2vw, 76px); line-height: 1.04; font-weight: 500; letter-spacing: -0.025em; text-wrap: balance; }
.h2 { font-size: clamp(34px, 4.4vw, 49px); line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
.h3 { font-size: clamp(26px, 3vw, 39px); line-height: 1.15; font-weight: 500; letter-spacing: -0.018em; }
.h4 { font-size: 25px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 160ms cubic-bezier(.4,0,.2,1), background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:hover { transform: scale(1.02); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--text-primary); border-color: var(--border-default); }
.btn-secondary:hover { border-color: var(--text-primary); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn .arr { transition: transform 160ms cubic-bezier(.4,0,.2,1); }
.btn:hover .arr { transform: translateX(3px); }

.link-accent {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none;
}
.link-accent .arr { transition: transform 160ms cubic-bezier(.4,0,.2,1); }
.link-accent:hover .arr { transform: translateX(4px); }

/* ── Nav ────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 280ms ease, border-color 280ms ease, backdrop-filter 280ms ease;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg-canvas) 86%, transparent);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
  border-bottom-color: var(--border-subtle);
}
.nav-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
/* Top state: nav floats over the dark hero — light marks. */
.nav .brand .mark { color: #F2F3F5; transition: color 220ms ease; }
/* Scrolled state: solid theme surface — dark marks. */
.nav.scrolled .brand .mark { color: var(--text-primary); }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text-primary); }
.brand .accent-bar { width: 30px; height: 6px; }
.brand .mark { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-item { position: static; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: rgba(242,243,245,0.72);
  text-decoration: none; cursor: default; transition: color 140ms ease, background 140ms ease;
}
.nav-trigger:hover, .nav-item:hover .nav-trigger, .nav-item:focus-within .nav-trigger { color: #fff; background: rgba(255,255,255,0.09); }
.nav.scrolled .nav-trigger { color: var(--text-secondary); }
.nav.scrolled .nav-trigger:hover, .nav.scrolled .nav-item:hover .nav-trigger, .nav.scrolled .nav-item:focus-within .nav-trigger { color: var(--text-primary); background: var(--bg-subtle); }
/* Light-theme hero (Tweaks → Theme: Light): nav floats over a light hero, so marks go dark. */
.nav.over-light .brand .mark { color: var(--text-primary); }
.nav.over-light .nav-trigger { color: var(--text-secondary); }
.nav.over-light .nav-trigger:hover, .nav.over-light .nav-item:hover .nav-trigger, .nav.over-light .nav-item:focus-within .nav-trigger { color: var(--text-primary); background: var(--bg-subtle); }
.nav-trigger .caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.5; transition: transform 200ms ease; }
.nav-item:hover .nav-trigger .caret { transform: rotate(225deg) translateY(-2px); opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 20px; }

/* Full-width mega menu — covers below the nav like the big sites */
.nav-panel {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  background: color-mix(in srgb, var(--bg-canvas) 97%, transparent);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 36px 72px -24px rgba(0,0,0,0.32), 0 10px 24px -12px rgba(0,0,0,0.12);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22,1,0.36,1), visibility 220ms;
  z-index: 45; padding: 36px 0 40px;
}
.nav-item:hover .nav-panel, .nav-item:focus-within .nav-panel,
.nav-panel:hover { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }

.np-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); display: grid; gap: 64px; align-items: start; }
.np-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.np-grid.simple { grid-template-columns: 1fr; max-width: 580px; }
.np-col { display: flex; flex-direction: column; }
.np-lbl { font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border-subtle); }
.np-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.np-grid.simple .np-list { grid-template-columns: 1fr; }
.np-link {
  display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start;
  padding: 12px 14px; margin: 0 -14px; border-radius: 10px; text-decoration: none;
  transition: background 160ms ease;
}
.np-link:hover { background: var(--bg-subtle); }
.np-name { font-size: 15px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.005em; }
.np-d { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--text-secondary); }

/* Brand-mark — three stacked 6° accent bars (replaces generic AI-template icons) */
.brand-mark { display: flex; flex-direction: column; gap: 3px; padding-top: 6px; }
.brand-mark > i { display: block; height: 3px; background: var(--accent); transform: skewX(-20deg); border-radius: 1px; }
.brand-mark > i:nth-child(1) { width: 14px; opacity: 0.45; }
.brand-mark > i:nth-child(2) { width: 22px; opacity: 0.75; }
.brand-mark > i:nth-child(3) { width: 18px; opacity: 1; }
.np-link:hover .brand-mark > i { background: var(--accent-hover); }

.np-feature { background: var(--bg-subtle); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 22px; height: 100%; display: flex; flex-direction: column; }
.np-feature .np-h { margin-top: 10px; font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -0.012em; color: var(--text-primary); max-width: 22ch; }
.np-feature .np-body { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--text-secondary); flex: 1; }
.np-feature .np-cta { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.np-feature .np-cta:hover .arr { transform: translateX(3px); }
.np-feature .np-cta .arr { transition: transform 160ms cubic-bezier(.4,0,.2,1); }
.np-feature .accent-bar { width: 28px; height: 5px; }

/* ── Section rhythm ─────────────────────────────────── */
section { position: relative; }
.sec { padding: 128px 0; }
.sec-sm { padding: 104px 0; }
.sec-head { max-width: 64ch; }
.sec-head .h2 { margin-top: 20px; }
.sec-head .lead { margin-top: 22px; }
.sec-head .pod-tagline { margin-top: 20px; font-size: 22px; line-height: 1.4; font-weight: 500; letter-spacing: -0.012em; color: var(--text-primary); text-wrap: balance; }
.sec-head .pod-body { margin-top: 14px; font-size: 16.5px; line-height: 1.6; color: var(--text-secondary); max-width: 60ch; text-wrap: pretty; }

/* ── Hero ───────────────────────────────────────────── */
.hero { padding: 124px 0 92px; margin-top: -74px; min-height: 100vh; position: relative; overflow: hidden; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg canvas { display: block; width: 100%; height: 100%; }
/* WebGL Cognition Core layer — sits above the 2D canvas, below the fade. */
#heroCoreCanvas { position: absolute; inset: 0; z-index: 1; display: none; }
.hero-core-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  transition: opacity 400ms ease;
  background: linear-gradient(90deg, rgba(30,31,35,0.96) 0%, rgba(30,31,35,0.74) 33%, rgba(30,31,35,0.16) 60%, rgba(30,31,35,0) 80%);
}
.hero.core-on .hero-core-veil { opacity: 1; }
/* Light theme: the dark scrim would smear across a white hero — use a pale,
   canvas-toned scrim so the copy column stays legible over the core. */
.hero:not(.is-dark).core-on .hero-core-veil {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--bg-canvas) 94%, transparent) 0%,
    color-mix(in srgb, var(--bg-canvas) 80%, transparent) 30%,
    color-mix(in srgb, var(--bg-canvas) 30%, transparent) 56%,
    transparent 76%);
}
@media (max-width: 900px) {
  .hero.core-on .hero-core-veil { background: radial-gradient(62% 60% at 50% 46%, rgba(30,31,35,0.9) 0%, rgba(30,31,35,0.5) 50%, rgba(30,31,35,0) 78%); }
  .hero:not(.is-dark).core-on .hero-core-veil { background: radial-gradient(64% 62% at 50% 46%, color-mix(in srgb, var(--bg-canvas) 90%, transparent) 0%, color-mix(in srgb, var(--bg-canvas) 45%, transparent) 52%, transparent 78%); }
}
/* Static fallback glow if WebGL is unavailable and the core scene is chosen. */
.hero.core-fallback .hero-core-veil {
  opacity: 1;
  background:
    radial-gradient(46% 56% at 66% 50%, rgba(129,140,248,0.26), rgba(129,140,248,0.05) 42%, transparent 70%),
    radial-gradient(58% 62% at 50% 47%, rgba(30,31,35,0.55) 0%, rgba(30,31,35,0) 70%);
}
.hero:not(.is-dark).core-fallback .hero-core-veil {
  background:
    radial-gradient(46% 56% at 66% 50%, var(--accent-glow), transparent 64%),
    linear-gradient(90deg, color-mix(in srgb, var(--bg-canvas) 90%, transparent) 0%, color-mix(in srgb, var(--bg-canvas) 30%, transparent) 52%, transparent 74%);
}
/* Keep hero copy column clean; let the motion read more toward the right/top. */
.hero-bg-fade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 78% at 50% 40%, color-mix(in srgb, var(--bg-canvas) 52%, transparent) 0%, transparent 56%),
    linear-gradient(0deg, var(--bg-canvas) 0%, transparent 26%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 940px; }
.hero h1 { margin-top: 22px; }
.hero .h1 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.07; letter-spacing: -0.024em; max-width: 15ch; }
.hero .h1 .h1-em {
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero .sub { margin-top: 26px; font-size: 20px; line-height: 1.5; color: var(--text-secondary); max-width: 52ch; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ── Hero grid: copy + live story panel ── */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); gap: 60px; align-items: center; }
.hero-grid .hero-copy { max-width: 620px; }

/* ── Centered hero: orbit ring fills the background, copy in the middle ── */
.hero-grid.hero-centered { display: block; max-width: 1080px; margin: 0 auto; text-align: center; }
.hero-grid.hero-centered .hero-copy { max-width: 1080px; margin: 0 auto; }
.hero-centered .eyebrow { justify-content: center; }
.hero-centered .h1 { font-size: clamp(25px, 2.7vw, 37px); line-height: 1.14; max-width: 64ch; margin: 14px auto 0; text-wrap: balance; }
.hero-centered .sub { font-size: 18px; line-height: 1.5; max-width: 60ch; margin: 22px auto 0; }
.hero-centered .hero-cta { justify-content: center; margin-top: 30px; }

/* ── Split hero: copy left, Cognition Core right (matches concept-3) ── */
.hero-grid.hero-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 60px; align-items: center; }
.hero-split .hero-copy { max-width: 600px; text-align: left; }
.hero-split .eyebrow { justify-content: flex-start; }
.hero-split .h1 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.1; letter-spacing: -0.024em; max-width: 19ch; margin: 18px 0 0; text-wrap: balance; }
.hero-split .sub { font-size: 18px; line-height: 1.5; max-width: 46ch; margin: 24px 0 0; }
.hero-split .hero-cta { justify-content: flex-start; margin-top: 32px; }
@media (max-width: 900px) {
  .hero-grid.hero-split { grid-template-columns: 1fr; }
  .hero-split .h1 { max-width: 22ch; }
}

/* Cognition Core legend — only while the core scene is live. */
.hero-legend { position: absolute; right: var(--pad); bottom: 30px; z-index: 1; display: none; gap: 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--text-tertiary); }
.hero.core-on .hero-legend { display: flex; }
.hero-legend span { display: inline-flex; align-items: center; gap: 7px; }
.hero-legend i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hero-legend .leg-v { background: var(--accent); }
.hero-legend .leg-b { background: #F5A14B; }
@media (max-width: 900px) { .hero.core-on .hero-legend { display: none; } }

/* ── In-motion film section (relocated hero video) ── */
.filmsec { text-align: center; }
.film-head { max-width: 70ch; margin-inline: auto; }
.film-head .eyebrow { justify-content: center; }
.film-head .lead { margin-inline: auto; }
.film {
  position: relative; max-width: 1040px; margin: 52px auto 0;
  aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border-default); background: #0B0D11; cursor: default;
  box-shadow: 0 44px 110px rgba(0,0,0,0.5);
  transition: border-color 200ms ease, box-shadow 320ms ease;
}
.film:hover { border-color: var(--accent); }
.film:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.film-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.film-veil {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(8,9,12,0.42), rgba(8,9,12,0.72));
  opacity: 0; transition: opacity 220ms ease; pointer-events: none;
}
.film:hover .film-veil, .film:focus-visible .film-veil { opacity: 1; }
.film-play {
  width: 56px; height: 56px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #0B0D11; font-size: 18px; padding-left: 3px;
}
.film-label { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.04em; color: #ECEEF2; }
.film-cap {
  position: absolute; left: 18px; bottom: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--text-tertiary);
  background: rgba(8,9,12,0.55); padding: 8px 13px; border-radius: 999px; backdrop-filter: blur(6px); text-align: left;
}
.film-cap strong { color: var(--text-secondary); font-weight: 600; }
.hero-figure { position: relative; z-index: 1; }
.hero-screen {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border-default); background: #0B0D11; cursor: pointer;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.02);
  transition: border-color 200ms ease, transform 320ms cubic-bezier(.4,0,.2,1), box-shadow 320ms ease;
}
.hero-screen:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 52px 120px rgba(0,0,0,0.55); }
.hero-screen:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hero-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.hero-screen-veil {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(8,9,12,0.55), rgba(8,9,12,0.78));
  opacity: 0; transition: opacity 220ms ease; pointer-events: none;
}
.hero-screen:hover .hero-screen-veil, .hero-screen:focus-visible .hero-screen-veil { opacity: 1; }
.hsv-play {
  width: 46px; height: 46px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #0B0D11; font-size: 15px; padding-left: 3px;
}
.hsv-label { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.04em; color: #ECEEF2; }
.hero-screen-cap { margin-top: 16px; display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; color: var(--text-tertiary); }
.hero-screen-cap strong { color: var(--text-secondary); font-weight: 600; }
.hsc-dot { width: 8px; height: 8px; border-radius: 999px; background: oklch(74% 0.16 150); box-shadow: 0 0 0 0 rgba(84,224,158,0.5); animation: hscPulse 2.4s ease-out infinite; flex: none; }
@keyframes hscPulse { 0% { box-shadow: 0 0 0 0 rgba(84,224,158,0.45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(84,224,158,0); } }
@media (prefers-reduced-motion: reduce) { .hsc-dot { animation: none; } }

/* ── Story lightbox ── */
.story-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 40px; }
.story-modal.open { display: flex; }
.sm-backdrop { position: absolute; inset: 0; background: rgba(5,6,8,0.84); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sm-dialog { position: relative; width: min(1280px, 94vw); aspect-ratio: 16 / 9; max-height: 88vh; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 140px rgba(0,0,0,0.7); animation: smIn 280ms cubic-bezier(.2,.7,.2,1); }
@keyframes smIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
#storyModalFrame { width: 100%; height: 100%; border: 0; display: block; background: #0B0D11; }
.sm-close {
  position: absolute; top: -46px; right: 0; z-index: 2; width: 34px; height: 34px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); color: #ECEEF2; font-size: 14px;
  transition: background 160ms ease;
}
.sm-close:hover { background: rgba(255,255,255,0.16); }
@media (max-width: 560px) { .sm-close { top: 0; right: 8px; } }

/* Scroll cue — a falling accent tick that points into The System. */
.hero-scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; }
.hero-scroll .hs-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-tertiary); transition: color 160ms ease; }
.hero-scroll:hover .hs-label { color: var(--text-secondary); }
.hero-scroll .hs-line { width: 1px; height: 48px; background: linear-gradient(var(--border-default), transparent); position: relative; overflow: hidden; }
.hero-scroll .hs-line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 45%; background: var(--accent); animation: hsdrop 2.2s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes hsdrop { 0% { transform: translateY(-110%); opacity: 0; } 18% { opacity: 1; } 100% { transform: translateY(260%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll .hs-line::after { animation: none; top: 0; height: 100%; opacity: 0.5; } }

/* ── The System — relocated hero animation as its own moment ── */
.cinematic { position: relative; overflow: hidden; padding: 100px 0 108px; background: var(--bg-subtle); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.cine-head { max-width: 62ch; }
.cine-head .h2 { margin-top: 18px; }
.cine-head .lead { margin-top: 18px; }
.cine-stage { position: relative; margin-top: 44px; display: flex; justify-content: center; }
.cine-stage::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 780px; height: 640px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 52% 54% at 50% 50%, var(--accent-glow) 0%, transparent 70%);
  filter: blur(30px); opacity: 0.85; pointer-events: none; z-index: 0;
}
.cine-stage .hero-fig { position: relative; z-index: 1; width: 100%; max-width: 1040px; }

/* Dark hero theme — opt-in via .is-dark (Tweaks → Hero theme). Overrides the
   token vars so copy, eyebrow, and buttons adapt automatically; lets the
   glowing canvas read like the references. */
.hero.is-dark {
  --bg-canvas: #1E1F23;
  --bg-subtle: #26272C;
  --text-primary: #F4F5F7;
  --text-secondary: #A6ACB8;
  --text-tertiary: #6E7682;
  --border-subtle: #303138;
  --border-default: #43454E;
  --accent: #818CF8;
  --accent-hover: #A5B4FC;
  --accent-glow: rgba(129,140,248,0.30);
  background: var(--bg-canvas);
  color: var(--text-primary);
}
.hero.is-dark .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.trust {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border-subtle);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary);
}
.trust .lead-tag { color: var(--text-primary); font-weight: 500; }
.trust .sep { color: var(--text-tertiary); }
.trust .ind { color: var(--text-secondary); }

/* Hero figure — sits on the right, no card chrome, extends toward the viewport edge. */
.hero-fig-wrap { position: relative; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); display: flex; align-items: center; margin-top: -48px; }
.hero-fig-wrap::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 130%; height: 130%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 55% 60% at 50% 50%, var(--accent-glow) 0%, transparent 72%);
  filter: blur(28px); opacity: 0.85;
  pointer-events: none; z-index: 0;
}
.hero-fig { position: relative; z-index: 1; width: 100%; }
.hero-fig svg { display: block; width: 100%; height: auto; min-height: 440px; }
/* Unified hero figure — coverage field + cognition core + agent mesh in one frame.
   Capped to the viewport so the whole system stays visible without scrolling. */
#figHero { max-height: 60vh; min-height: 0; margin-inline: auto; }
/* Bars become inspectable on hover */
.hero-fig svg .field-bar { cursor: pointer; transition: filter 140ms ease; }
.hero-fig svg .field-bar:hover { filter: brightness(1.25) saturate(1.1); }
.hero-fig-tooltip {
  position: absolute; z-index: 5; pointer-events: none;
  background: var(--bg-inverted); color: var(--text-inverted);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  padding: 7px 10px; border-radius: 7px;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.4);
  opacity: 0; transform: translate(-50%, -100%) translateY(-10px);
  transition: opacity 140ms ease;
  white-space: nowrap;
}
.hero-fig-tooltip.show { opacity: 1; }
.hero-fig-tooltip .tt-state { margin-left: 8px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,0.15); }
.hero-fig-tooltip .tt-state.pass { color: var(--status-pass); }
.hero-fig-tooltip .tt-state.flag { color: var(--status-block); }
.hero-fig-tooltip .tt-state.fail { color: var(--status-fail); }

/* Research-paper figure plate */
.plate {
  position: relative; border: 1px solid var(--border-subtle); border-radius: 18px;
  background: var(--bg-canvas); padding: 22px 22px 18px; overflow: hidden;
}
.plate::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px; pointer-events: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
}
.plate-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.plate-fig { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--accent); letter-spacing: 0.04em; }
.plate-title { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); }
.plate svg { display: block; width: 100%; height: auto; }
.plate-cap { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border-subtle); font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.plate-cap strong { color: var(--text-primary); font-weight: 600; }

/* ── Manifesto (the thesis band) ────────────────────── */
.manifesto { position: relative; padding: 92px 0; overflow: hidden; }
.manifesto-inner { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: start; max-width: 1100px; }
.manifesto-num { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; color: var(--accent); text-transform: uppercase; padding-top: 12px; }
.manifesto-num .ml-label { display: block; margin-top: 8px; color: var(--text-tertiary); }
.manifesto p {
  font-family: var(--font-sans); font-style: normal; font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.18; letter-spacing: -0.022em;
  color: var(--text-primary); text-wrap: pretty; max-width: 28ch;
}
.manifesto p .ml-em { color: var(--accent); }
.manifesto-rule { margin-top: 48px; height: 1px; background: var(--border-subtle); }
.manifesto-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 18px 32px; font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); }
.manifesto-meta strong { color: var(--text-primary); font-weight: 500; }
.manifesto-meta .dot { color: var(--accent); }

/* ── Problem: editorial split, no rounded cards ────── */
.problem-intro { margin-top: 22px; font-size: 22px; line-height: 1.5; color: var(--text-secondary); max-width: 70ch; text-wrap: pretty; }
.problem-intro em { font-style: italic; color: var(--text-primary); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 96px; position: relative; }
.split::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--border-subtle); transform: translateX(-50%); }
.pcol { position: relative; padding-right: 8px; }
.pcol-num { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; color: var(--accent); }
.pcol-tag { margin-top: 6px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); }
.pcol-h { margin-top: 24px; font-size: clamp(24px, 2.8vw, 33px); line-height: 1.18; font-weight: 500; letter-spacing: -0.018em; color: var(--text-primary); max-width: 18ch; text-wrap: balance; }
.qlist { list-style: none; margin-top: 36px; display: flex; flex-direction: column; }
.qlist li {
  display: grid; grid-template-columns: 36px 1fr; gap: 18px; align-items: start;
  padding: 22px 0; border-top: 1px solid var(--border-subtle);
  font-size: 16.5px; line-height: 1.55; color: var(--text-secondary);
}
.qlist .qn { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--text-tertiary); padding-top: 4px; letter-spacing: 0.04em; }
.qlist em { font-style: italic; color: var(--text-primary); }
.qkicker { margin-top: 40px; }

/* Full-card CTA variant */
.qkicker-cta {
  display: block;
  padding: 26px 28px 22px;
  border: 1.5px solid var(--border-default);
  border-radius: 14px;
  background: var(--bg-canvas);
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms ease, background 200ms ease, transform 180ms cubic-bezier(.4,0,.2,1), box-shadow 200ms ease;
}
.qkicker-cta:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 4%, var(--bg-canvas));
  transform: translateY(-2px);
  box-shadow: 0 10px 32px -10px var(--accent-glow);
}
.qkicker-cta-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--accent); margin-top: 18px;
}
.qkicker-cta-label .arr { transition: transform 160ms cubic-bezier(.4,0,.2,1); }
.qkicker-cta:hover .qkicker-cta-label .arr { transform: translateX(4px); }

.qkicker p {
  font-size: clamp(20px, 2vw, 24px); line-height: 1.3; font-weight: 600;
  letter-spacing: -0.012em; color: var(--text-primary); text-wrap: pretty;
}
.qkicker .lead-in { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 12px; }

/* ── Platform (dark) product rows ───────────────────── */
.prow { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.prow + .prow { margin-top: 112px; }
.prow.flip .prow-visual { order: -1; }
.prow-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); border: 1px solid var(--border-default);
  padding: 5px 12px; border-radius: 999px;
}
.prow h3 { margin-top: 22px; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.08; font-weight: 500; letter-spacing: -0.02em; }
.prow .oneliner { margin-top: 18px; font-size: 19px; line-height: 1.5; color: var(--text-secondary); max-width: 44ch; text-wrap: pretty; }
.cap-list { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.cap-list li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; font-size: 16px; line-height: 1.5; color: var(--text-secondary); }
.cap-list li strong { color: var(--text-primary); font-weight: 600; }
.cap-list .tick { color: var(--accent); font-family: var(--font-mono); font-size: 14px; padding-top: 1px; }
.prow .btn { margin-top: 34px; }

/* Eval groups (Assure text side) */
.eval-groups { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.eval-groups .gl { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-tertiary); padding-bottom: 10px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 12px; }
.eval-groups ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.eval-groups li { display: flex; gap: 10px; font-size: 15px; color: var(--text-secondary); }
.eval-groups li::before { content: "·"; color: var(--accent); }

/* Mock panel shell (for figTest / figAssure) */
.mock {
  border: 1px solid var(--border-subtle); border-radius: 18px; overflow: hidden;
  background: var(--bg-subtle); box-shadow: 0 24px 60px -32px rgba(0,0,0,0.55);
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border-subtle); background: var(--bg-surface); }
.mock-bar i { width: 10px; height: 10px; border-radius: 999px; display: inline-block; background: var(--border-default); }
.mock-bar .ttl { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); }
.mock svg { display: block; width: 100%; height: auto; }

/* ── Services: Pod LEFT (spec-table), Service Lines RIGHT (panel) ── */
.services-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 72px; align-items: stretch; margin-top: 64px; }

/* LEFT — Anatomy of a Pod (research-paper spec table) */
.pod-spec { position: relative; }
.pod-spec-head { display: flex; align-items: baseline; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--text-primary); }
.pod-spec-head .ttl { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.pod-spec-head .meta { margin-left: auto; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); }
.pod-spec-list { list-style: none; }
.pod-spec-row {
  display: grid; grid-template-columns: 64px 28px 1fr; gap: 18px;
  padding: 24px 0; border-bottom: 1px solid var(--border-subtle);
  align-items: start; transition: background 160ms ease, padding 160ms ease;
  position: relative;
}
.pod-spec-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--accent); transition: width 200ms ease;
}
.pod-spec-row:hover { background: linear-gradient(to right, var(--accent-subtle), transparent 60%); padding-left: 16px; }
.pod-spec-row:hover::before { width: 3px; }
.pod-spec-row .pn { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--text-tertiary); padding-top: 5px; letter-spacing: 0.06em; }
.pod-spec-row .picon { width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.pod-spec-row .picon svg { width: 100%; height: 100%; display: block; }
.pod-spec-row .pt { font-size: 18.5px; font-weight: 600; letter-spacing: -0.012em; color: var(--text-primary); }
.pod-spec-row .pd { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); max-width: 38ch; }

/* LEFT (new) — Anatomy as a single segmented hexagon (the Pod) */
.pod-hex { position: relative; display: flex; flex-direction: column; }
.pod-hex-head { display: flex; align-items: baseline; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--text-primary); }
.pod-hex-head .ttl { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-primary); }
.pod-hex-head .meta { margin-left: auto; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); }

.pod-hex-stage { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 0 28px; }
.pod-hex-stage::before {
  content: ""; position: absolute; left: 50%; top: 53%; width: 62%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 66%);
  filter: blur(22px); opacity: 0.75; pointer-events: none; z-index: 0;
}
.pod-hex-svg { position: relative; z-index: 1; width: 100%; max-width: 432px; height: auto; display: block; margin: 0 auto; overflow: visible; }

.hx-fills { filter: drop-shadow(0 18px 30px rgba(17, 19, 46, 0.12)); }
.hx-wedge { fill: var(--bg-subtle); stroke: none; cursor: pointer; transition: fill 240ms cubic-bezier(.4,0,.2,1); }
.hx-wedge:hover { fill: color-mix(in srgb, var(--accent) 12%, var(--bg-subtle)); }
.hx-wedge.is-active { fill: var(--accent); }
.hx-wedge:focus-visible { outline: none; }
.hx-div { stroke: var(--bg-canvas); stroke-width: 7; stroke-linecap: round; pointer-events: none; }
.hx-outline { fill: none; stroke: color-mix(in srgb, var(--accent) 32%, var(--border-default)); stroke-width: 1.5; stroke-linejoin: round; pointer-events: none; }
.hx-hub { fill: var(--bg-inverted); stroke: var(--bg-canvas); stroke-width: 7; stroke-linejoin: round; pointer-events: none; }
.hx-hub-t1 { fill: var(--text-inverted); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-anchor: middle; }
.hx-hub-t2 { fill: var(--accent-hover); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-anchor: middle; }

.hx-label { pointer-events: none; }
.hx-label .hx-num { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; fill: var(--text-tertiary); text-anchor: middle; transition: fill 200ms ease; }
.hx-label .hx-name { font-size: 14px; font-weight: 600; letter-spacing: -0.008em; fill: var(--text-primary); text-anchor: middle; transition: fill 200ms ease; }
.hx-label.is-active .hx-num { fill: rgba(255,255,255,0.72); }
.hx-label.is-active .hx-name { fill: #fff; }

/* detail overlay — fades in over the hexagon on hover (no card below) */
.hex-overlay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.94);
  width: min(70%, 262px); text-align: center; z-index: 3;
  background: color-mix(in srgb, var(--bg-canvas) 92%, transparent);
  -webkit-backdrop-filter: blur(8px) saturate(140%); backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid var(--border-subtle); border-radius: 16px; padding: 20px 22px;
  box-shadow: 0 16px 40px -18px rgba(17, 19, 46, 0.3);
  opacity: 0; pointer-events: none; transition: opacity 200ms ease, transform 220ms cubic-bezier(.4,0,.2,1);
}
.pod-hex.show-detail .hex-overlay { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hex-overlay .ho-num { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); }
.hex-overlay .ho-t { margin-top: 7px; font-size: 17px; font-weight: 600; letter-spacing: -0.014em; color: var(--text-primary); }
.hex-overlay .ho-d { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--text-secondary); text-wrap: pretty; }

/* hexagon recedes into a soft backdrop while a segment is being inspected */
.hx-fills, .hx-label, .hx-outline, .hx-hub, .hx-hub-t1, .hx-hub-t2 { transition: opacity 220ms ease, fill 240ms cubic-bezier(.4,0,.2,1); }
.pod-hex.show-detail .hx-fills { opacity: 0.4; }
.pod-hex.show-detail .hx-label { opacity: 0.22; }
.pod-hex.show-detail .hx-outline { opacity: 0.5; }
.pod-hex.show-detail .hx-hub, .pod-hex.show-detail .hx-hub-t1, .pod-hex.show-detail .hx-hub-t2 { opacity: 0.18; }

/* RIGHT — Service Lines, editorial index (no badges / no icons) */
.svc-lines { list-style: none; }
.svc-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: baseline;
  padding: 24px 2px; border-top: 1px solid var(--border-subtle); position: relative;
  transition: padding 220ms cubic-bezier(.4,0,.2,1);
}
.svc-row:first-child { border-top: none; }
.svc-row::after {
  content: ""; position: absolute; left: -2px; bottom: -1px; width: 0; height: 2px;
  background: var(--accent); transition: width 260ms cubic-bezier(.4,0,.2,1);
}
.svc-row:hover::after { width: 64px; }
.svc-idx { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; color: var(--text-tertiary); padding-top: 7px; transition: color 200ms ease; }
.svc-row:hover .svc-idx { color: var(--accent); }
.svc-main .st { font-size: 19px; font-weight: 600; letter-spacing: -0.014em; color: var(--text-primary); transition: color 200ms ease; }
.svc-row:hover .svc-main .st { color: var(--accent); }
.svc-main .sd { margin-top: 7px; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); max-width: 44ch; text-wrap: pretty; }
.svc-row .sarr { font-family: var(--font-mono); font-size: 16px; color: var(--accent); align-self: center; opacity: 0; transform: translateX(-6px); transition: opacity 200ms ease, transform 200ms ease; }
.svc-row:hover .sarr { opacity: 1; transform: translateX(0); }

@media (max-width: 720px) {
  .pod-hex-svg { max-width: 360px; }
}

/* RIGHT — Service Lines panel */
.svc-panel { border: 1px solid var(--border-subtle); border-radius: 14px; background: var(--bg-elevated); overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 28px 64px -42px rgba(0,0,0,0.22); }
.svc-panel-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-subtle); background: var(--bg-subtle); }
.svc-panel-head .dash { width: 12px; height: 1px; background: var(--text-tertiary); }
.svc-panel-head .ttl { font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-primary); }
.svc-panel-head .ttl em { color: var(--text-tertiary); font-style: normal; margin-left: 8px; }
.svc-panel-head .count { font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary); }
.svc-list { list-style: none; }
.svc-item {
  display: grid; grid-template-columns: 42px 1fr auto; gap: 16px; align-items: center;
  padding: 20px 22px; border-top: 1px solid var(--border-subtle);
  cursor: default; position: relative;
  transition: background 160ms ease;
}
.svc-item:first-child { border-top: none; }
.svc-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--accent); transition: width 200ms ease;
}
.svc-item:hover { background: var(--bg-subtle); }
.svc-item:hover::before { width: 3px; }
.svc-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; background: var(--accent-subtle); color: var(--accent); transition: background 160ms ease; }
.svc-icon svg { width: 20px; height: 20px; display: block; }
.svc-item:hover .svc-icon { background: color-mix(in srgb, var(--accent-subtle) 60%, var(--accent) 8%); }
.svc-name-block { min-width: 0; }
.svc-name { font-size: 15.5px; font-weight: 600; letter-spacing: -0.008em; color: var(--text-primary); }
.svc-desc { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.svc-arr { font-family: var(--font-mono); font-size: 14px; color: var(--text-tertiary); transition: color 160ms ease, transform 160ms ease; }
.svc-item:hover .svc-arr { color: var(--accent); transform: translateX(3px); }

.services-foot {
  margin-top: 64px; padding: 30px 36px; border-radius: 20px;
  background: var(--bg-subtle); border: 1px solid var(--border-subtle);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
}
.services-foot .sf-kicker { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.services-foot .sf-h { margin-top: 13px; font-size: 22px; font-weight: 600; letter-spacing: -0.016em; color: var(--text-primary); }
.services-foot .sf-d { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--text-secondary); max-width: 52ch; text-wrap: pretty; }
.services-foot .btn { flex-shrink: 0; }

/* ── Services: QE Pod · Operating Model (text left, framework card right) ── */
.opmodel { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-top: 8px; }
.opmodel-copy { max-width: 40ch; }
.opmodel-eyebrow { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); }
.opmodel-h { margin-top: 26px; font-size: clamp(30px, 3.1vw, 44px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; color: var(--text-primary); text-wrap: balance; }
.opmodel-h em { font-style: italic; font-weight: 600; }
.opmodel-d { margin-top: 24px; font-size: 17px; line-height: 1.62; color: var(--text-secondary); max-width: 48ch; text-wrap: pretty; }
.opmodel-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* RIGHT — four-layer framework card */
.opmodel-card { padding: 14px; border-radius: 24px; border: 1px solid var(--border-subtle); background: linear-gradient(180deg, var(--bg-subtle), #fff); box-shadow: 0 34px 64px -38px rgba(17, 19, 46, 0.24); }
.opm-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px 18px; }
.opm-dot { width: 9px; height: 9px; border-radius: 50%; background: #1f8a5b; box-shadow: 0 0 0 4px rgba(31, 138, 91, 0.14); flex-shrink: 0; }
.opm-title { font-family: var(--font-mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-primary); }
.opm-count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); }
.opm-stack { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.opm-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--border-subtle); background: #fff; transition: transform 220ms cubic-bezier(.4,0,.2,1), box-shadow 220ms ease, border-color 220ms ease; }
.opm-row:hover { transform: translateY(-2px); border-color: color-mix(in oklch, var(--accent) 42%, var(--border-subtle)); box-shadow: 0 18px 36px -26px rgba(17, 19, 46, 0.3); }
.opm-l { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--text-tertiary); transition: color 200ms ease; }
.opm-row:hover .opm-l { color: var(--accent); }
.opm-t { font-size: 18px; font-weight: 600; letter-spacing: -0.014em; color: var(--text-primary); }
.opm-d { margin-top: 5px; font-size: 14px; line-height: 1.5; color: var(--text-secondary); text-wrap: pretty; }
.opm-icon { display: inline-flex; flex-direction: column; gap: 3.5px; align-items: flex-end; }
.opm-icon i { display: block; height: 2.5px; border-radius: 2px; background: var(--accent); }
.opm-icon i:nth-child(1) { width: 18px; }
.opm-icon i:nth-child(2) { width: 12px; opacity: 0.7; }
.opm-icon i:nth-child(3) { width: 22px; opacity: 0.5; }

/* ── Scroll progress + section indicator ─────────── */
.scroll-progress-bar { position: absolute; top: 0; left: 0; height: 2px; width: 0%; background: var(--accent); z-index: 60; transition: width 60ms linear; }
.section-indicator {
  position: absolute; top: 50%; right: var(--pad); transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--text-tertiary); text-transform: uppercase; pointer-events: none;
  opacity: 0; transition: opacity 200ms ease;
}
.nav.scrolled .section-indicator { opacity: 1; }
.section-indicator .si-num { color: var(--accent); margin-right: 8px; }

/* ── Where-to-start: interactive picker ────────────── */
.start-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 64px; }
.start-card {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 32px; align-items: start;
  padding: 32px 0; border-top: 1px solid var(--border-subtle);
  transition: background 160ms ease; cursor: pointer; position: relative;
}
.start-card:last-child { border-bottom: 1px solid var(--border-subtle); }
.start-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); transition: width 240ms ease; }
.start-card.active { background: linear-gradient(to right, var(--accent-subtle), transparent 55%); }
.start-card.active::before { width: 3px; }
.start-card .num { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; color: var(--accent); padding-top: 10px; }
.start-card blockquote { font-size: clamp(20px, 2.2vw, 27px); line-height: 1.32; font-weight: 500; letter-spacing: -0.012em; color: var(--text-primary); max-width: 50ch; text-wrap: pretty; }
.start-card blockquote::before { content: "\201C"; color: var(--text-tertiary); margin-right: 4px; }
.start-card blockquote::after  { content: "\201D"; color: var(--text-tertiary); margin-left: 2px; }
.start-card .route { padding-top: 14px; font-family: var(--font-sans); font-size: 14.5px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; opacity: 0.45; transition: opacity 220ms ease; }
.start-card.active .route { opacity: 1; }
.start-card .route .arr { transition: transform 160ms cubic-bezier(.4,0,.2,1); }
.start-card.active:hover .route .arr { transform: translateX(4px); }

/* ── Why Cogniron ───────────────────────────────────── */
/* ── Why \u2014 Industries strip (aligned, no awkward wraps) ── */
.industries {
  margin-top: 28px; padding: 22px 0;
  display: grid; grid-template-columns: auto 1fr; gap: 12px 36px;
  align-items: baseline;
  border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
}
.industries .lab { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); white-space: nowrap; }
.industries-items { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.industries .ind { font-size: 15px; font-weight: 500; color: var(--text-primary); letter-spacing: -0.005em; }
.industries .sep { color: var(--accent); font-family: var(--font-mono); font-size: 13px; }

/* ── Anchors \u2014 designed spec entries (no rounded cards) ── */
.anchors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 64px; margin-top: 84px; }
.anchor {
  position: relative; padding-top: 32px;
  border-top: 1px solid var(--border-default);
  transition: padding 200ms ease; cursor: default;
}
.anchor::before {
  content: ""; position: absolute; top: -1px; left: 0;
  height: 2px; width: 40px; background: var(--accent);
  transition: width 320ms cubic-bezier(0.22,1,0.36,1);
}
.anchor:hover::before { width: 120px; }
/* Evidence proof line — hover to reveal. "Evidence, not vibes" applied to claims. */
.an-proof {
  display: flex; align-items: center; gap: 8px; margin-top: 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.07em;
  color: var(--text-tertiary); text-transform: uppercase;
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity 220ms ease, max-height 280ms cubic-bezier(0.22,1,0.36,1);
}
.anchor:hover .an-proof { opacity: 1; max-height: 50px; }
.an-proof .check { color: var(--accent); }
.anchor .anchor-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.anchor .an { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--accent); letter-spacing: 0.08em; }
.anchor .an-tag { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); }
.anchor h4 { margin-top: 18px; font-size: 22px; line-height: 1.22; font-weight: 600; letter-spacing: -0.014em; text-wrap: balance; color: var(--text-primary); max-width: 18ch; }
.anchor p { margin-top: 12px; font-size: 15.5px; line-height: 1.6; color: var(--text-secondary); max-width: 36ch; }

/* ── Final CTA (dark) ───────────────────────────────── */
.finalcta { padding: 132px 0; text-align: center; }
.finalcta .h2 { max-width: 18ch; margin: 0 auto; }
.finalcta .conviction-line {
  margin: 36px auto 0; max-width: 56ch;
  font-family: var(--font-sans); font-style: normal; font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; color: var(--text-secondary); text-wrap: pretty;
}
.finalcta .hero-cta { justify-content: center; margin-top: 44px; }
.finalcta-glow { position: absolute; left: 50%; top: 40%; width: 760px; height: 420px; transform: translate(-50%,-50%); background: radial-gradient(ellipse, var(--accent-glow), transparent 70%); pointer-events: none; }

/* ── Footer ─────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border-subtle); padding: 56px 0 64px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px; }
.footer .brand .mark { font-size: 19px; }
.footer-nav { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .ch { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); margin-bottom: 4px; }
.footer-col a { font-size: 14.5px; color: var(--text-secondary); text-decoration: none; }
.footer-col a:hover { color: var(--text-primary); }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-subtle); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-tertiary); }

/* ── Reveal motion (gated by html.js-reveal so content is never
      permanently hidden if JS fails to run) ── */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity 480ms cubic-bezier(0.22,1,0.36,1), transform 480ms cubic-bezier(0.22,1,0.36,1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
/* ── Keyword highlights inside headings ─────────────────── */
.h2 em, .h3 em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.reveal.d1 { transition-delay: 80ms; }
.reveal.d2 { transition-delay: 160ms; }
.reveal.d3 { transition-delay: 240ms; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1040px) {
  :root { --pad: 40px; }
  .hero-grid, .prow, .services-grid, .opmodel { grid-template-columns: 1fr; gap: 48px; }
  .prow.flip .prow-visual { order: 0; }
  .anchors { grid-template-columns: 1fr 1fr; gap: 40px 48px; }
  .split { grid-template-columns: 1fr; gap: 64px; }
  .split::before { display: none; }
  .manifesto-inner { grid-template-columns: 1fr; gap: 16px; }
  .np-grid { grid-template-columns: 1fr !important; }
  .np-list { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
}
@media (max-width: 680px) {
  :root { --pad: 22px; }
  .sec, .sec-sm { padding: 88px 0; }
  .anchors, .eval-groups { grid-template-columns: 1fr; }
  .anchor { padding-top: 22px; }
  .start-card { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .hero .sub, .lead, .problem-intro { font-size: 19px; }
  .industries { flex-direction: column; align-items: flex-start; }
  .industries .ind { border-left: none; padding: 4px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .start-card { transition: none; }
}
