/* KenjiFlow site — all values come from the KenjiFlow design system tokens. */

@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* brand colours */
  --navy-950: #0B1220; --blue-900: #1E3A8A; --blue-700: #1D4ED8; --blue-600: #2563EB;
  --blue-500: #3B82F6; --blue-400: #60A5FA; --blue-100: #DBEAFE; --cyan-400: #22D3EE;

  /* light theme (default) */
  --surface-0: #FFFFFF; --surface-100: #F6F8FB; --surface-200: #EEF2F7;
  --ink: #0B1220; --ink-muted: #475569; --ink-subtle: #5F6E84;
  --border: #E2E8F0; --border-control: #7E8BA0;
  --primary: var(--blue-600); --primary-hover: var(--blue-700); --on-primary: #FFFFFF;
  --link: #1D4ED8; --focus-ring: #2563EB; --signal: var(--cyan-400); --on-signal: #0B1220;
  --brand-tint: #DBEAFE; --brand-tint-ink: #1D4ED8;
  --warning: #B45309; --warning-tint: #FEF3C7;

  --font-sans: Archivo, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-0: 0; --radius-sm: 4px; --radius-md: 6px; --radius-lg: 10px; --radius-xl: 16px;
  --shadow-sm: 0 1px 2px rgba(11,18,32,0.06); --shadow-md: 0 6px 20px rgba(11,18,32,0.08);

  --header-h: 68px;
  --gutter: 24px;
  --maxw: 1200px;
}

/* dark grounds: the same tokens, dark-theme values */
.on-dark {
  --surface-0: #0B1220; --surface-100: #121A2E; --surface-200: #1A2240;
  --ink: #F1F5F9; --ink-muted: #94A3B8; --ink-subtle: #7C8BA6;
  --border: #26304A; --border-control: #56657F;
  --link: #60A5FA; --focus-ring: #60A5FA; --brand-tint: #162650; --brand-tint-ink: #93C5FD;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4); --shadow-md: 0 6px 20px rgba(0,0,0,0.45);
  background: var(--surface-0); color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 24px; color: var(--ink); background: var(--surface-0); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 200; background: var(--primary); color: var(--on-primary); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: var(--space-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.overline { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); }
.display-xl { font-weight: 800; letter-spacing: -0.03em; line-height: 0.98; }
h2, .h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
h3, .h3 { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 62ch; }
.mono { font-family: var(--font-mono); }
.node-sq { display: inline-block; width: 8px; height: 8px; background: var(--signal); flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-6); font: 600 15px/20px var(--font-sans); border: 1px solid transparent; border-radius: var(--radius-md); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; touch-action: manipulation; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border-control); }
.btn-secondary:hover { background: var(--surface-200); }
.btn-sm { min-height: 44px; padding: 0 var(--space-4); font-size: 14px; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); background: var(--surface-0); border-bottom: 1px solid var(--border); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: var(--space-6); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); color: var(--ink-muted); font-size: 15px; font-weight: 500; text-decoration: none; border-radius: var(--radius-md); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { margin-left: var(--space-2); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--border-control); border-radius: var(--radius-md); color: var(--ink); cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; height: 180svh; background: var(--surface-0); }
.hero-stage { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; padding-top: var(--header-h); }
.hero-graph { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy { position: relative; z-index: 2; padding-top: clamp(24px, 6svh, 72px); will-change: opacity, transform; }
.hero-copy .overline { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink-muted); margin-bottom: var(--space-6); }
.hero h1 { font-size: clamp(2.5rem, min(8.2vw, 14svh), 7.75rem); max-width: 13ch; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--blue-400); }
.hero-sub { margin-top: var(--space-8); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-muted); max-width: 52ch; }
.hero-actions { margin-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-actions .btn-secondary { border-color: var(--border-control); }
.hero-end { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(24px, 7svh, 72px); opacity: 0; pointer-events: none; }
.hero-end-inner { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6); }
.hero-end p.statement { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; max-width: 16ch; }
.hero-end .mono { display: block; margin-top: var(--space-3); font-size: 13px; color: var(--ink-muted); }
.hero-cue { position: absolute; z-index: 2; left: 0; right: 0; bottom: var(--space-6); font: 500 12px/16px var(--font-mono); color: var(--ink-subtle); }
.hero-cue .container { display: flex; align-items: center; gap: var(--space-2); }

/* graph (svg) */
.g-dotgrid { fill: var(--border-control); opacity: .4; }
.g-edge { fill: none; stroke: #3A4A68; stroke-width: 1.5; stroke-linejoin: round; }
.g-flow { fill: none; stroke: var(--blue-400); stroke-width: 1.5; stroke-dasharray: 2 12; }
.g-junction { fill: var(--blue-500); }
.g-tile { fill: #E8EEF6; stroke: #FFFFFF; stroke-opacity: .5; stroke-width: 1; }
.g-hubtile { fill: var(--navy-950); stroke: var(--blue-500); stroke-width: 3; }
.g-hubin { fill: none; stroke: var(--blue-900); stroke-width: 1.5; }
.g-ring { fill: none; stroke: var(--blue-500); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.g-pulse { fill: none; stroke: var(--blue-400); stroke-width: 2; vector-effect: non-scaling-stroke; }
.g-zone { fill: rgba(18, 26, 46, .45); stroke: var(--border-control); stroke-width: 1; stroke-dasharray: 4 6; }
.g-zlabel { font: 500 10px var(--font-mono); letter-spacing: .12em; fill: var(--ink-subtle); }
.g-tag-box { fill: var(--surface-0); stroke: var(--border-control); stroke-width: 1; }
.g-tag-text { font: 500 10px var(--font-mono); fill: var(--ink-muted); text-anchor: middle; dominant-baseline: central; }
.g-trail { fill: var(--blue-400); }
.g-packet { fill: var(--signal); }

/* ---------- sections ---------- */
.section { padding-block: var(--space-24); }
.section-tight { padding-block: var(--space-16); }
.section.alt { background: var(--surface-100); border-block: 1px solid var(--border); }
.section-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-12); max-width: 760px; }
.section-head .lead { margin-top: var(--space-2); }

/* proof */
.proof { padding-block: var(--space-16); border-bottom: 1px solid var(--border); }
.proof-row { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: var(--space-6); padding-block: var(--space-4); }
.proof-row + .proof-row { border-top: 1px solid var(--border); }
.proof-label { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-subtle); }
.logo-list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-12); }
.logo-list li { display: flex; align-items: center; min-height: 40px; }
.logo-list img { height: var(--h, 28px); width: auto; max-width: 100%; opacity: .78; transition: opacity .15s; }
.logo-list img:hover { opacity: 1; }

/* brands marquee: two identical groups, each wider than the screen; the track slides by exactly one group so the loop has no seam or gap */
.proof-label { margin: 0 0 var(--space-6); font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0; color: var(--ink-subtle); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 75s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex: none; gap: var(--space-24); padding-right: var(--space-24); }
.marquee-group li { flex: none; display: flex; align-items: center; }
.marquee-group img { height: var(--h, 28px); width: auto; max-width: none; opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }
.featured-logos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-8); }
.featured-logos img { height: var(--h, 22px); width: auto; }
.logo-list img.logo-color { opacity: 1; }
.logo-word { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.03em; color: var(--ink-muted); }
.logo-word small { font-weight: 600; font-size: 12px; letter-spacing: 0; margin-left: 6px; color: var(--ink-subtle); }

/* services */
.grid { display: grid; gap: var(--space-6); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; gap: var(--space-3); background: var(--surface-0); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); }
.section.alt .card { background: var(--surface-0); }
.card .icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface-100); color: var(--blue-600); border-radius: var(--radius-md); margin-bottom: var(--space-2); }
.card .icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter; }
.card p { color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.flow-line { margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--border); font: 400 13px/18px var(--font-mono); color: var(--ink-subtle); }
.flow-line b { color: var(--link); font-weight: 500; }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); counter-reset: step; }
.step { position: relative; display: flex; flex-direction: column; }
.step-visual { order: -1; width: 100%; height: auto; max-width: 300px; overflow: visible; margin-bottom: var(--space-4); }
.step-line { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: miter; }
.step::before { counter-increment: step; content: "0" counter(step); order: 0; display: block; font: 500 13px/18px var(--font-mono); color: var(--link); margin-bottom: var(--space-2); }
.step p { margin-top: var(--space-2); color: var(--ink-muted); font-size: 15px; line-height: 22px; }

/* case study cards */
.case-card { --surface-0: #0B1220; --ink: #F1F5F9; --ink-muted: #94A3B8; --ink-subtle: #7C8BA6; --link: #60A5FA; --border: #26304A; --border-control: #56657F;
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: var(--space-3); overflow: hidden; background: #0B1220; border: 1px solid #26304A; border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6) var(--space-6); text-decoration: none; color: var(--ink);
  box-shadow: 0 12px 32px rgba(11, 18, 32, .22), 0 2px 6px rgba(11, 18, 32, .14); transition: transform .2s, border-color .2s, box-shadow .2s; min-height: 340px; }
.case-card:hover { transform: translateY(-4px); border-color: var(--blue-500); box-shadow: 0 18px 44px rgba(37, 99, 235, .28), 0 2px 6px rgba(11, 18, 32, .14); }
.case-card:focus-visible { outline-color: var(--blue-500); }
.case-thumb { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: right center; opacity: .32; transition: opacity .2s; }
.case-card:hover .case-thumb { opacity: .5; }
.case-card .metric { font-size: clamp(40px, 4.6vw, 56px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.case-card .metric-label { font: 500 13px/18px var(--font-mono); color: var(--ink-subtle); }
.case-card h3 { margin-top: var(--space-3); }
.case-card p { color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.case-card .more { margin-top: auto; display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; color: var(--link); padding-top: var(--space-4); }
.case-card:hover .more .arrow { transform: translateX(3px); }
.case-card .more .arrow { transition: transform .15s; }

/* tools */
.chip-list { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.chip { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 var(--space-4); border: 1px solid var(--border); background: var(--surface-0); border-radius: var(--radius-sm); font: 500 14px/20px var(--font-mono); color: var(--ink); }

/* founder */
.founder { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-16); align-items: start; }
.founder-panel { background: var(--navy-950); color: #F1F5F9; border-radius: var(--radius-lg); overflow: hidden; display: grid; }
.founder-photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.founder-meta { padding: var(--space-6) var(--space-8) var(--space-8); }
.founder-panel .name { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.015em; }
.founder-panel .role { font: 400 13px/18px var(--font-mono); color: #94A3B8; margin-top: var(--space-1); }
.founder-panel .since { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid #26304A; font-size: 13px; line-height: 18px; color: #94A3B8; }
.facts { display: grid; gap: 0; }
.facts li { display: grid; grid-template-columns: 150px 1fr; gap: var(--space-4); padding-block: var(--space-4); border-top: 1px solid var(--border); }
.facts li:last-child { border-bottom: 1px solid var(--border); }
.facts .k { font: 700 20px/26px var(--font-sans); letter-spacing: -0.01em; color: var(--ink); }
.facts .v { color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.founder-copy p { color: var(--ink-muted); font-size: 17px; line-height: 27px; margin-top: var(--space-4); max-width: 60ch; }

/* faq */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 64px; padding-block: var(--space-4); font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .answer { padding-bottom: var(--space-6); color: var(--ink-muted); max-width: 64ch; }

/* cta band + footer */
.cta-band { position: relative; isolation: isolate; padding-block: var(--space-24); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/cta-background.jpg") right center / cover no-repeat; }
.cta-band .inner { display: flex; flex-wrap: wrap; gap: var(--space-8); align-items: end; justify-content: space-between; }
.cta-band h2 { font-size: clamp(34px, 5.4vw, 64px); max-width: 16ch; }
.cta-band p { color: var(--ink-muted); margin-top: var(--space-4); max-width: 46ch; }
.site-footer { padding-block: var(--space-12); border-top: 1px solid var(--border); }
.footer-grid { display: flex; flex-wrap: wrap; gap: var(--space-8); justify-content: space-between; align-items: start; }
.footer-grid img { height: 28px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-muted); text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: var(--ink); }
.footer-fine { margin-top: var(--space-8); font-size: 13px; line-height: 18px; color: var(--ink-subtle); }

/* ---------- inner pages (case studies) ---------- */
.page-hero { padding-top: calc(var(--header-h) + var(--space-16)); padding-bottom: var(--space-16); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(36px, 6vw, 72px); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; max-width: 18ch; margin-top: var(--space-4); text-wrap: balance; }
.page-hero .lead { margin-top: var(--space-6); }
.crumbs { font: 500 13px/18px var(--font-mono); color: var(--ink-subtle); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.crumbs a { color: var(--ink-muted); }
.meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--border); }
.meta dt { font: 700 12px/16px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-subtle); margin-bottom: var(--space-1); }
.meta dd { font-size: 15px; line-height: 22px; color: var(--ink); }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: var(--space-4); }
.prose p { color: var(--ink-muted); font-size: 17px; line-height: 27px; margin-top: var(--space-4); }
.prose ul { margin-top: var(--space-4); display: grid; gap: var(--space-3); }
.prose li { position: relative; padding-left: var(--space-6); color: var(--ink-muted); font-size: 17px; line-height: 27px; }
.prose li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; background: var(--blue-600); }
.cs-section { padding-block: var(--space-16); border-bottom: 1px solid var(--border); }
.prose li strong { color: var(--ink); font-weight: 700; }
.legal-date { margin-top: var(--space-6); font-size: 13px; line-height: 18px; color: var(--ink-subtle); }
.legal .prose { max-width: 760px; }
.legal .prose h2 { margin-top: var(--space-12); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -0.015em; }
.legal .prose h3 { margin-top: var(--space-6); font-size: 18px; line-height: 24px; letter-spacing: -0.005em; }
.legal .prose p, .legal .prose li { font-size: 16px; line-height: 26px; }
.legal .prose p a, .legal .prose li a { word-break: break-word; }
.toc { max-width: 760px; margin-bottom: var(--space-8); padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-100); }
.toc ol { margin-top: var(--space-3); columns: 2; column-gap: var(--space-8); counter-reset: toc; }
.toc li { break-inside: avoid; counter-increment: toc; padding-block: 2px; }
.toc li a { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; color: var(--link); }
.toc li a::before { content: counter(toc) ". "; margin-right: 4px; color: var(--ink-subtle); font-family: var(--font-mono); font-size: 12px; }
@media (max-width: 767px) { .toc ol { columns: 1; } }
.brands-panel { margin-top: var(--space-8); padding: var(--space-8); border-radius: var(--radius-lg); }
.cs-banner-wrap { padding-block: var(--space-12) 0; }
.cs-banner { width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.cs-banner { aspect-ratio: 21 / 9; object-fit: cover; object-position: right center; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.result { background: var(--surface-100); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); }
.result .metric { font-size: clamp(34px, 4vw, 52px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.result p { margin-top: var(--space-3); color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.fill { display: inline; padding: 1px 6px; border: 1px dashed var(--warning); background: var(--warning-tint); color: var(--warning); font: 500 0.85em/1.4 var(--font-mono); border-radius: var(--radius-sm); }
.next-case { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; justify-content: space-between; text-decoration: none; color: var(--ink); }
.next-case .h2 { transition: color .15s; }
.next-case:hover .h2 { color: var(--link); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease-out, transform .5s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .grid-3, .results { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-12); }
  .step-line { display: none; }
  .founder { grid-template-columns: 1fr; gap: var(--space-12); }
  .meta { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; --header-h: 60px; }
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-2) var(--gutter) var(--space-6); background: var(--surface-0); border-bottom: 1px solid var(--border); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding-inline: 0; border-bottom: 1px solid var(--border); border-radius: 0; min-height: 52px; font-size: 17px; }
  .nav .btn { margin: var(--space-4) 0 0; }
  .hero { height: 170svh; }
  .section { padding-block: var(--space-16); }
  .grid-3, .results, .steps { grid-template-columns: 1fr; }
  .proof-row { grid-template-columns: 1fr; gap: var(--space-2); }
  .facts li { grid-template-columns: 1fr; gap: var(--space-1); }
  .meta { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-end-inner { align-items: start; }
  .case-card { min-height: 0; }
  .cta-band::before { opacity: .35; }
}

/* reduced motion: static, fully-formed graph and plain flow */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero-stage { position: relative; height: auto; min-height: 100svh; padding-bottom: var(--space-24); }
  .hero-graph { opacity: .55; }
  .hero-end, .hero-cue { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; }
  .marquee-group { flex-wrap: wrap; row-gap: var(--space-6); padding-inline: var(--gutter); max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .btn, .btn .arrow, .case-card, .case-card .more .arrow { transition: none; }
  .case-card:hover { transform: none; }
}
