/* ==========================================================================
   KOREXA, site styles (loaded after scrollcraft.css, which stays unmodified)
   Grammar: chaptered editorial. World: technical drawing.
   Colour semantics: grey = today · blue = where AI fits ·
   logo gradient = implemented AI and its results (used sparingly, never as text).
   Grounds hard-cut between dark and paper; each ground restates its ink.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #0c0c0e;
  --bg-alt: #111114;
  --surface: #1e1e22;
  --panel: #141417;
  --paper: #f4f4f5;
  --ink: #0c0c0e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-muted: #a1a1aa;
  --text-faint: #8a8a93;
  --accent: #3384fd;
  --accent-soft: rgba(51, 132, 253, 0.14);
  --grad: linear-gradient(120deg, #1ee6d6 0%, #3384fd 55%, #b44cf5 100%);

  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wide: 118%;
  --semi: 106%;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --header-h: 72px;

  /* ScrollCraft tokens (six colours, two faces) */
  --sc-canvas: var(--bg);
  --sc-surface: var(--surface);
  --sc-ink: var(--text);
  --sc-ink-soft: var(--text-muted);
  --sc-accent: var(--accent);
  --sc-accent-ink: #0c0c0e;
  --sc-font-display: var(--font);
  --sc-font-text: var(--font);
  --sc-font-mono: var(--mono);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.62;
  letter-spacing: 0.003em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* Without JavaScript the engine never adds .sc-in: keep every fade-in visible. */
html:not(.js) [data-sc-in],
html:not(.js) [data-sc-stagger] > * { opacity: 1 !important; transform: none !important; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; background: #fff; color: var(--ink); border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 16px; }

/* ---------- Type ---------- */

h1, h2 { font-stretch: var(--wide); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 5.2vw, 4.75rem); line-height: .98; letter-spacing: -0.04em; font-stretch: 112%; }
h2 { font-size: clamp(2.125rem, 4.4vw, 3.75rem); line-height: 1.04; letter-spacing: -0.032em; }
h3 { font-size: clamp(1.3rem, 1.9vw, 1.625rem); line-height: 1.18; font-weight: 650; font-stretch: var(--semi); letter-spacing: -0.018em; }
.lede { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); color: var(--text-muted); max-width: 48ch; margin-top: 24px; text-wrap: pretty; }
.body-lg { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); color: var(--text-muted); max-width: 58ch; text-wrap: pretty; }
.kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.kicker::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--grad); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.grad { background: var(--grad); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  background: #fff; color: var(--ink);
  font-weight: 600; font-size: 0.9375rem; font-stretch: var(--semi); white-space: nowrap;
  transition: transform 160ms var(--ease), box-shadow 180ms var(--ease), background-color 160ms var(--ease);
}
.btn::after { content: "→"; transition: transform 180ms var(--ease); }
.btn:active { transform: translateY(1px) scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 4px var(--accent-soft), 0 10px 30px -10px rgba(51,132,253,.6); }
  .btn:hover::after { transform: translateX(4px); }
}
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.875rem; }
.btn-small::after { content: none; }
.btn-large { min-height: 58px; padding: 0 32px; font-size: 1rem; }

.link-arrow { display: inline-flex; gap: 8px; align-items: center; min-height: 50px; color: var(--text-muted); font-weight: 500; font-size: .9375rem; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 6px; transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease); }
.link-arrow::after { content: "↓"; }
.link-arrow:hover { color: var(--text); text-decoration-color: var(--accent); }

/* ---------- Folio header ---------- */

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid transparent; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.site-header.is-scrolled { background: rgba(12,12,14,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; height: var(--header-h); gap: 28px; }
.brand { flex: none; }
.brand img { height: 24px; width: auto; }
.folio { display: flex; align-items: baseline; gap: 10px; margin-right: auto; padding-left: 24px; border-left: 1px solid var(--line-strong); font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; }
.folio-num { color: var(--accent); }
.site-nav ul { display: flex; gap: 32px; }
.site-nav a { font-size: .875rem; color: var(--text-muted); font-weight: 500; transition: color 160ms var(--ease); }
.site-nav a:hover { color: var(--text); }
@media (max-width: 1060px) { .site-nav { display: none; } }
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .folio { display: none; }
  .header-inner { justify-content: space-between; }
  .brand img { height: 20px; }
  .btn-small { min-height: 40px; padding: 0 14px; font-size: .8125rem; }
}

/* ---------- Grounds ---------- */

.chapter { position: relative; }
.ground-paper {
  --text: #0c0c0e; --text-muted: #52525b; --text-faint: #6b6b74;
  --line: rgba(12,12,14,.1); --line-strong: rgba(12,12,14,.2);
  --accent: #1f5bd6; --accent-soft: rgba(31,91,214,.12);
  background: var(--paper); color: var(--text);
}
.ground-paper .btn { background: var(--ink); color: #fff; }

/* ---------- 00 · Title page (layered hero) ---------- */

.hero { padding: clamp(32px, 4.5vw, 64px) 0 clamp(64px, 8vw, 112px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -10%; top: -10%; width: 70vw; max-width: 900px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(51,132,253,.10), transparent 72%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; min-height: min(78svh, 760px); }
.hero h1 { max-width: 11ch; }
.hero .lede { max-width: 44ch; }
.hero .lede strong { color: var(--text); font-weight: 600; }
.hero-outcomes { display: grid; gap: 2px; margin-top: 24px; max-width: 420px; border-top: 1px solid var(--line); }
.hero-outcomes li { border-bottom: 1px solid var(--line); }
.hero-outcomes a { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-weight: 600; font-stretch: var(--semi); color: var(--text); transition: color 160ms var(--ease); }
.hero-outcomes a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }
.hero-outcomes a::after { content: "↓"; margin-left: auto; color: var(--text-faint); font-weight: 400; transition: transform 180ms var(--ease); }
.hero-outcomes a:hover { color: #dbe7ff; }
.hero-outcomes a:hover::after { transform: translateY(2px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }
.founder-strip { display: flex; align-items: center; gap: 16px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 440px; }
.founder-strip p { font-size: .9375rem; line-height: 1.45; }
.founder-strip p > span { color: var(--text-muted); }

.hero-visual { position: relative; isolation: isolate; }
.plane { transition: translate 120ms linear; }
.plane--far {
  position: absolute; inset: -14% -10%; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  translate: calc(var(--mx, 0) * -6px) calc(var(--my, 0) * -4px);
}
.plane--mid { position: relative; translate: calc(var(--mx, 0) * 8px) calc(var(--my, 0) * 6px); }
.plane--near { position: absolute; inset: 0; pointer-events: none; translate: calc(var(--mx, 0) * 18px) calc(var(--my, 0) * 12px); }
.note {
  position: absolute; padding: 6px 10px; border-radius: 8px;
  font: 500 11px/1 var(--mono); letter-spacing: .04em; color: #e4e4e7; white-space: nowrap;
  background: rgba(20,20,23,.9); border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.8);
  animation: note-in .6s var(--ease) backwards;
}
.note::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.note--a { left: 30%; top: 12%; animation-delay: 1.9s; }
.note--b { left: 24%; top: 55%; animation-delay: 2.1s; }
.note--c { left: 30%; top: 84%; animation-delay: 2.3s; }
@keyframes note-in { from { opacity: 0; transform: translateY(6px); } }

/* outcome map (generated by scripts/hero-visual.py): final frame + one-time sequence */
.outcome-map { width: 100%; height: auto; overflow: visible; }
.outcome-map text { font-family: var(--font); }
.hv-base line { stroke: rgba(255,255,255,.2); stroke-width: 1; stroke-dasharray: 4 6; animation: fade-in .6s var(--ease) var(--s) backwards; }
.hv-ticks line { stroke: rgba(255,255,255,.26); stroke-width: 1; animation: fade-in .4s var(--ease) var(--s) backwards; }
.hv-lines path { fill: none; stroke: url(#g-line); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 1.1s var(--ease) var(--s) backwards; }
.hv-ai g { transform-box: fill-box; transform-origin: center; animation: light .5s var(--ease) var(--s) backwards; }
.hv-ai .core { fill: var(--accent); }
.hv-ai .halo { fill: var(--accent); opacity: .18; }
.hv-end .core, .hv-end .ring, .hv-end .ripple, .hv-src .core, .hv-src .ring { transform-box: fill-box; transform-origin: center; }
.hv-end .core { fill: #fff; animation: arrive .6s var(--ease) var(--s) backwards; }
.hv-end .ring { fill: none; stroke: rgba(255,255,255,.3); animation: arrive .8s var(--ease) calc(var(--s) + .1s) backwards; }
.hv-end .ripple { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: 0; animation: ripple 1.6s ease-out calc(var(--s) + .3s) 1; }
.hv-end text { fill: #f4f4f5; font-size: 20px; font-weight: 650; letter-spacing: -.01em; animation: fade-in .6s var(--ease) calc(var(--s) + .1s) backwards; }
.hv-src .core { animation: arrive .7s var(--ease) var(--s) backwards; }
.hv-src .ring { fill: none; stroke: rgba(255,255,255,.18); animation: arrive .9s var(--ease) calc(var(--s) + .15s) backwards; }
.hv-src .ring.outer { stroke: rgba(255,255,255,.08); }
.hv-src text { fill: #a1a1aa; font: 500 14px var(--mono); letter-spacing: .04em; }
.hv-today { fill: #8a8a93; font: 500 13px var(--mono); letter-spacing: .04em; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes light { from { opacity: 0; transform: scale(.3); } 60% { opacity: 1; transform: scale(1.25); } }
@keyframes arrive { from { opacity: 0; transform: scale(.2); } }
@keyframes ripple { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(4); } }

/* hero entrance: CSS only, content stays visible if animations never run */
.enter { animation: rise .9s var(--ease) both; animation-delay: calc(.08s + var(--e, 0) * .1s); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
}
@media (max-width: 700px) {
  h1 { font-size: clamp(2.5rem, 11vw, 3.25rem); }
  .plane--near { display: none; }  /* annotations would cover the outcome labels at phone size */
  .hv-end text { font-size: 26px; }
  .hv-src text, .hv-today { font-size: 19px; }
}

/* ---------- 01 · Outcomes (paper): the peak, static and uncropped ---------- */

.outcomes { padding: clamp(88px, 10vw, 136px) 0 clamp(72px, 9vw, 112px); }
.oc-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.oc-head h2 { max-width: 15ch; }
.oc-head .lede { max-width: 44ch; }
.oc-index { display: grid; border-top: 1px solid var(--line-strong); }
.oc-index a {
  display: flex; align-items: baseline; gap: 14px; padding: 12px 4px; min-height: 44px; border-bottom: 1px solid var(--line);
  font-weight: 600; font-stretch: var(--semi); font-size: .9375rem; color: var(--text-muted);
  transition: color 160ms var(--ease);
}
.oc-index a span { font: 500 11px/1 var(--mono); letter-spacing: .1em; color: var(--text-faint); }
.oc-index a:hover, .oc-index a[aria-current] { color: var(--text); }
.oc-index a[aria-current] span { color: var(--accent); }
.oc-index a[aria-current]::after { content: ""; width: 7px; height: 7px; margin-left: auto; align-self: center; border-radius: 50%; background: var(--accent); }

.oc-list { display: grid; gap: 20px; }
.oc-panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px clamp(32px, 5vw, 72px);
  padding: clamp(28px, 4vw, 52px); border-radius: 24px; background: #fff;
  box-shadow: 0 1px 0 rgba(12,12,14,.04), 0 30px 60px -40px rgba(12,12,14,.35);
  overflow: hidden;
}
.oc-panel { scroll-margin-top: 16px; }
.oc-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.oc-num { display: block; margin-bottom: 16px; font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--accent); }
.oc-title h3 { font-size: clamp(2.125rem, 3.8vw, 3.5rem); line-height: 1; font-weight: 750; font-stretch: var(--wide); letter-spacing: -0.04em; text-wrap: balance; }
.oc-title p { margin-top: 16px; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); color: var(--text-muted); max-width: 32ch; }
.oc-rows > div { padding: 14px 0; border-top: 1px solid var(--line); }
.oc-rows > div:first-child { border-top: 0; padding-top: 2px; }
.oc-rows dt { margin-bottom: 6px; font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.oc-rows dd { color: var(--text-muted); }
.oc-aim dt { color: var(--accent); }
.oc-aim dd { color: var(--text); font-size: clamp(1.125rem, 1.5vw, 1.375rem); font-weight: 650; font-stretch: var(--semi); letter-spacing: -0.01em; line-height: 1.3; }
.oc-note { margin-top: 20px; font-size: .875rem; color: var(--text-faint); }
@media (max-width: 860px) {
  .oc-head { grid-template-columns: 1fr; }
  .oc-panel { grid-template-columns: 1fr; border-radius: 18px; }
}

/* ---------- 02 · Services ---------- */

.services { padding: clamp(96px, 11vw, 152px) 0; }
.services-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px clamp(40px, 7vw, 112px); align-items: start; }
.services-head { position: sticky; top: calc(var(--header-h) + 40px); }
.services-head h2 { max-width: 11ch; }
.services-head .btn { margin-top: 0; }
.service-list { border-top: 1px solid var(--line-strong); }
.service { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; padding: 32px 0 34px; border-bottom: 1px solid var(--line); }
.service-num { font-size: clamp(2.25rem, 3.4vw, 3rem); line-height: .9; font-weight: 300; font-stretch: var(--wide); color: var(--text-faint); font-variant-numeric: tabular-nums; }
.service h3 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); font-weight: 700; font-stretch: var(--wide); letter-spacing: -0.032em; line-height: 1.04; }
.service-lead { margin-top: 10px; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--text); }
.service-rows { margin-top: 18px; display: grid; gap: 10px; }
.service-rows > div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.service-rows dt { font: 500 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.service-rows dd { color: var(--text-muted); }
/* services map: three independent entry points (Audit · Implement · Enable).
   Fully drawn by default (phones, reduced motion, no JS); on wide screens main.js sets
   data-active and the service being read comes forward. */
.svc-map { margin: 36px 0 32px; max-width: 380px; }
.svc-map svg { width: 100%; height: auto; overflow: visible; }
.svc-map text { font-family: var(--font); }
.svc-base { stroke: rgba(255,255,255,.24); stroke-dasharray: 3 4; }
.svc-base-label { fill: #8a8a93; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.svc-drop { stroke: rgba(255,255,255,.24); }
.svc-entry { fill: var(--bg); stroke: var(--accent); stroke-width: 1.5; transition: fill 300ms var(--ease); }
.svc-art { transition: opacity 400ms var(--ease); }
.svc-grid circle { fill: rgba(255,255,255,.38); }
.svc-ring { fill: none; stroke: #fff; stroke-opacity: .55; stroke-dasharray: 3 3; transform-box: fill-box; transform-origin: center; transition: transform 500ms var(--ease); }
.svc-hit { fill: var(--accent); }
.svc-sys { fill: #1a1a1f; stroke: rgba(255,255,255,.32); }
.svc-sys-line { stroke: rgba(255,255,255,.3); }
.svc-link { fill: none; stroke: url(#g-svc-link); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 600ms var(--ease); }
.svc-core { fill: url(#g-svc); }
.svc-grow { fill: none; stroke: rgba(255,255,255,.2); stroke-dasharray: 2 4; transform-box: fill-box; transform-origin: center; transition: transform 500ms var(--ease); }
.svc-spokes line { stroke: rgba(255,255,255,.24); }
.svc-team circle { fill: #1a1a1f; stroke: var(--accent); stroke-width: 1.4; }
.svc-guide { fill: #fff; }
.svc-label { fill: #fff; font-size: 15px; font-weight: 650; transition: fill 300ms var(--ease); }
.svc-sub { fill: #a1a1aa; font: 500 11px var(--mono); letter-spacing: .02em; }

.svc-map[data-active] .svc-v .svc-art { opacity: .32; }
.svc-map[data-active] .svc-v .svc-label { fill: #a1a1aa; }
.svc-map[data-active] .svc-ring, .svc-map[data-active] .svc-grow { transform: scale(.86); }
.svc-map[data-active] .svc-link { stroke-dashoffset: 1; }
.svc-map[data-active="0"] [data-v="0"] .svc-art,
.svc-map[data-active="1"] [data-v="1"] .svc-art,
.svc-map[data-active="2"] [data-v="2"] .svc-art { opacity: 1; }
.svc-map[data-active="0"] [data-v="0"] .svc-label,
.svc-map[data-active="1"] [data-v="1"] .svc-label,
.svc-map[data-active="2"] [data-v="2"] .svc-label { fill: #fff; }
.svc-map[data-active="0"] [data-v="0"] .svc-entry,
.svc-map[data-active="1"] [data-v="1"] .svc-entry,
.svc-map[data-active="2"] [data-v="2"] .svc-entry { fill: var(--accent); }
.svc-map[data-active="0"] [data-v="0"] .svc-ring,
.svc-map[data-active="2"] [data-v="2"] .svc-grow { transform: none; }
.svc-map[data-active="1"] [data-v="1"] .svc-link { stroke-dashoffset: 0; }
.service { transition: opacity 300ms var(--ease); }
@media (max-height: 820px) and (min-width: 861px) { .svc-map { max-width: 280px; margin: 24px 0 24px; } }

@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-head { position: static; }
  .service { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .service-rows > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- 03 · Approach: condensed method diagram ---------- */

.method { padding: clamp(96px, 11vw, 144px) 0 clamp(72px, 9vw, 120px); background: var(--bg-alt); border-top: 1px solid var(--line); }
.method-head { max-width: 820px; margin-bottom: clamp(40px, 5vw, 64px); }
.method-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.method-steps { grid-column: 1; grid-row: 1; }
.method-figure { grid-column: 2; grid-row: 1; position: sticky; top: max(calc(var(--header-h) + 24px), calc(50svh - 240px)); }

.mstep { min-height: 34svh; padding: 4svh 0 3svh; border-top: 1px solid var(--line); }
.mstep h3, .mstep p, .mstep-label { transition: color 320ms var(--ease); }
.mstep--peak { min-height: 56svh; }
.mstep:last-child { min-height: 40svh; }
.js .mstep:not(.is-current) h3, .js .mstep:not(.is-current) .peak-line { color: #a1a1aa !important; }
.js .mstep:not(.is-current) p, .js .mstep:not(.is-current) .mstep-label { color: #8a8a93; }
.mstep-label { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.mstep h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; font-stretch: var(--wide); letter-spacing: -0.03em; max-width: 20ch; margin-bottom: 14px; }
.mstep p { color: var(--text-muted); max-width: 46ch; }
.mstep p + p { margin-top: 14px; }
.peak-line { margin: 26px 0 20px !important; font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1; font-weight: 700; font-stretch: var(--wide); letter-spacing: -0.04em; color: var(--text) !important; max-width: 14ch !important; }

.node { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.node.grey { border: 1px solid rgba(255,255,255,.55); }
.node.blue { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.node.grad { background: var(--grad); box-shadow: 0 0 0 5px rgba(180,76,245,.14); }

.method-figure {
  padding: clamp(18px, 2.4vw, 32px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 40px 90px -50px rgba(0,0,0,.9);
}
.method-figure figcaption { margin-top: 14px; font: 500 11px/1.4 var(--mono); letter-spacing: .06em; color: var(--text-faint); }
.flow { width: 100%; height: auto; overflow: visible; }
.flow text { font-family: var(--font); }

.fl-step rect { fill: #1a1a1f; stroke: rgba(255,255,255,.2); stroke-width: 1; transition: stroke 360ms var(--ease), fill 360ms var(--ease); }
.fl-step text { fill: #e4e4e7; font-size: 15px; font-weight: 500; }
.fl-links path { fill: none; stroke: rgba(255,255,255,.32); stroke-width: 1.5; stroke-dasharray: 1; }
.fl-links path:nth-child(1) { stroke-dashoffset: calc(1 - clamp(0, var(--pu, 1) * 4, 1)); }
.fl-links path:nth-child(2) { stroke-dashoffset: calc(1 - clamp(0, var(--pu, 1) * 4 - 1, 1)); }
.fl-links path:nth-child(3) { stroke-dashoffset: calc(1 - clamp(0, var(--pu, 1) * 4 - 2, 1)); }
.fl-links path:nth-child(4) { stroke-dashoffset: calc(1 - clamp(0, var(--pu, 1) * 4 - 3, 1)); }
.fl-loop { fill: none; stroke: rgba(255,255,255,.4); stroke-width: 1.2; stroke-dasharray: .012 .014; opacity: 0; transition: opacity 360ms var(--ease); }

.fl-chips rect, .fl-peak rect { fill: transparent; stroke: rgba(255,255,255,.26); stroke-width: 1; }
.fl-chips text, .fl-peak text { fill: #a1a1aa; font-size: 12.5px; font-weight: 500; text-anchor: middle; }
.fl-u, .fl-e > g, .fl-i, .fl-peak .pk-q, .fl-peak .pk-a, .fl-measure { opacity: 0; transition: opacity 320ms var(--ease); }
.v-ai rect { fill: rgba(51,132,253,.16); stroke: #3384fd; }
.v-ai text { fill: #d6e4ff; }
.v-human rect { stroke: rgba(255,255,255,.62); }
.v-human text { fill: #fff; }
.v-keep rect { stroke: rgba(255,255,255,.12); }
.v-keep text { fill: #8a8a93; }
.pk-q text { fill: #fff; font-weight: 600; }
.pk-strike { stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pk-a rect { fill: #fff; stroke: #fff; }
.pk-a text { fill: #0c0c0e; font-weight: 700; }
.pk-a .pk-sub { fill: #d4d4d8; font-size: 11.5px; font-weight: 500; }
.fl-measure line { stroke: rgba(255,255,255,.16); stroke-dasharray: 3 4; }
.fl-measure text { fill: #a1a1aa; font: 500 11.5px/1 var(--mono); letter-spacing: .03em; }

/* understand: the workflow draws itself, friction is marked */
[data-state="understand"] .fl-u { opacity: clamp(0, (var(--pu, 1) - .45) * 3, 1); }
[data-state="understand"] .fl-loop,
[data-state="evaluate"] .fl-loop { opacity: clamp(0, (var(--pu, 1) - .7) * 4, .9); }

/* evaluate: verdicts arrive; the "AI?" strike is the moment */
[data-state="evaluate"] .fl-e .v-keep { opacity: clamp(0, (var(--pe, 1) - .02) * 6, 1); }
[data-state="evaluate"] .fl-e .v-ai:nth-of-type(2) { opacity: clamp(0, (var(--pe, 1) - .08) * 6, 1); }
[data-state="evaluate"] .fl-e .v-ai:nth-of-type(3) { opacity: clamp(0, (var(--pe, 1) - .2) * 6, 1); }
[data-state="evaluate"] .fl-e .v-human { opacity: clamp(0, (var(--pe, 1) - .32) * 6, 1); }
[data-state="evaluate"] .is-ai rect { stroke: rgba(51,132,253,.8); }
[data-state="evaluate"] .pk-q { opacity: calc(clamp(0, (var(--pe, 1) - .42) * 8, 1) * (1 - clamp(0, (var(--pe, 1) - .76) * 8, 1))); }
[data-state="evaluate"] .pk-strike { stroke-dashoffset: calc(1 - clamp(0, (var(--pe, 1) - .55) * 6, 1)); }
[data-state="evaluate"] .pk-a { opacity: clamp(0, (var(--pe, 1) - .78) * 8, 1); }
[data-state="evaluate"] .is-none rect { stroke: rgba(255,255,255, calc(.2 + clamp(0, (var(--pe, 1) - .78) * 8, 1) * .5)); }
[data-state="evaluate"] .flow { --focus: calc(clamp(0, (var(--pe, 1) - .4) * 6, 1) * (1 - clamp(0, (var(--pe, 1) - .92) * 10, 1))); }
[data-state="evaluate"] .fl-step:not(.is-none),
[data-state="evaluate"] .fl-links,
[data-state="evaluate"] .fl-loop,
[data-state="evaluate"] .fl-e { filter: opacity(calc(1 - var(--focus, 0) * .65)); }

/* implement and measure: only justified steps change, the loop is gone */
[data-state="implement"] .fl-e .v-keep, [data-state="measure"] .fl-e .v-keep,
[data-state="implement"] .fl-e .v-human, [data-state="measure"] .fl-e .v-human,
[data-state="implement"] .fl-i, [data-state="measure"] .fl-i,
[data-state="implement"] .pk-a, [data-state="measure"] .pk-a { opacity: 1; }
[data-state="implement"] .is-ai rect, [data-state="measure"] .is-ai rect { stroke: url(#g-flow); stroke-width: 1.8; fill: #1b2232; }
[data-state="implement"] .is-none rect, [data-state="measure"] .is-none rect { stroke: rgba(255,255,255,.6); }
/* measure (also the no-JS default): the result is checked against today's baseline */
[data-state="measure"] .fl-measure { opacity: 1; }
[data-state="measure"] .fl-measure line { stroke: url(#g-measure); stroke-width: 2; stroke-dasharray: none; }
[data-state="measure"] .fl-measure text { fill: #fff; }

@media (max-width: 900px) {
  .method-grid { grid-template-columns: 1fr; gap: 0; }
  .method-figure {
    grid-column: 1; grid-row: 1; z-index: 3;
    top: calc(var(--header-h) - 1px);
    margin-inline: calc(-1 * var(--gutter));
    padding: 10px var(--gutter) 12px;
    border-radius: 0; border-width: 0 0 1px;
    background: var(--bg-alt);
    box-shadow: 0 18px 24px -18px rgba(0,0,0,.9);
  }
  .method-figure .flow { max-width: 440px; max-height: 32svh; margin-inline: auto; }
  .method-figure figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .method-steps { grid-row: 2; }
  .mstep { min-height: 30svh; padding: 24px 0 20px; }
  .mstep--peak { min-height: 46svh; }
  .mstep:last-child { min-height: 34svh; }
}

/* ---------- 04 · About (paper) ---------- */

.founder { padding: clamp(96px, 11vw, 144px) 0; }
.founder-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.founder-title { font-size: clamp(2.25rem, 4.4vw, 3.75rem); max-width: 13ch; margin-bottom: 24px; }
.principles { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line-strong); }
.principles li { padding: 20px 0 22px; border-bottom: 1px solid var(--line); color: var(--text-muted); }
.principles strong { display: block; margin-bottom: 6px; color: var(--text); font-weight: 650; font-stretch: var(--semi); font-size: 1.0625rem; }
@media (max-width: 700px) { .principles { grid-template-columns: 1fr; } }

.monogram {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  font-weight: 700; font-stretch: var(--wide); font-size: .9375rem; letter-spacing: .02em;
  color: #fff; background: var(--surface); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.16);
}
.monogram::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px var(--bg); }
.monogram.large { width: 112px; height: 112px; font-size: 2rem; }
.monogram.large::after { width: 20px; height: 20px; right: 6px; bottom: 6px; box-shadow: 0 0 0 4px var(--panel); }
.founder-card {
  --text: #fff; --text-muted: #a1a1aa; --text-faint: #8a8a93; --line: rgba(255,255,255,.08);
  color: var(--text);
  padding: clamp(32px, 4vw, 48px); border-radius: 22px;
  background: radial-gradient(120% 90% at 0% 0%, rgba(51,132,253,.16), transparent 60%), var(--panel);
  box-shadow: 0 40px 80px -48px rgba(12,12,14,.7);
}
.founder-portrait { aspect-ratio: 4 / 5; border-radius: 16px; margin-bottom: 28px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 35%, rgba(51,132,253,.14), transparent 70%), #101013; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.founder-photo { width: 100%; height: 100%; object-fit: cover; }
.fc-link { display: inline-block; margin-top: 16px; color: #dbe7ff; text-decoration: underline; text-underline-offset: 4px; }
.fc-name { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; font-stretch: var(--wide); letter-spacing: -0.03em; line-height: 1.1; }
.fc-role { margin-top: 6px; color: var(--text-muted); }
.fc-meta { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
@media (max-width: 800px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-card { display: grid; grid-template-columns: 104px 1fr; column-gap: 20px; align-items: center; padding: 20px; }
  .founder-portrait { margin-bottom: 0; }
  .monogram.large { width: 72px; height: 72px; font-size: 1.25rem; }
  .monogram.large::after { width: 14px; height: 14px; right: 2px; bottom: 2px; }
  .fc-name { font-size: 1.375rem; }
  .fc-role { margin-top: 2px; }
  .fc-meta { grid-column: 1 / -1; margin-top: 20px; }
}

/* ---------- 05 · Questions (compressed) ---------- */

.faq { padding: clamp(72px, 9vw, 120px) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 112px); }
.faq-grid h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 20px 0; min-height: 44px; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); font-weight: 600; font-stretch: var(--semi); letter-spacing: -0.01em; transition: color 160ms var(--ease); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; color: var(--accent); font-size: 1.5rem; font-weight: 400; transition: transform 200ms var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: #dbe7ff; }
.faq-list details > p { padding: 0 48px 24px 0; color: var(--text-muted); max-width: 62ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-list details > p { padding-right: 0; } }

/* ---------- 06 · Close (resolves and holds) ---------- */

.closing { position: relative; overflow: hidden; padding: clamp(104px, 13vw, 176px) 0; border-top: 1px solid var(--line); text-align: center; isolation: isolate; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(50% 60% at 50% 50%, rgba(51,132,253,.12), transparent 70%); }
.closing-mark { position: absolute; z-index: -1; left: 50%; top: 50%; width: min(900px, 140vw); transform: translate(-50%, -50%); }
.closing-mark .ring { fill: none; stroke: rgba(255,255,255,.06); stroke-width: .6; }
.closing-inner { display: flex; flex-direction: column; align-items: center; }
.closing-node { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); margin-bottom: 40px; box-shadow: 0 0 0 10px rgba(51,132,253,.10), 0 0 0 22px rgba(51,132,253,.05), 0 12px 40px rgba(51,132,253,.45); }
.closing h2 { font-size: clamp(2.375rem, 5.6vw, 4.75rem); max-width: 16ch; }
.closing .lede { margin-top: 24px; }
.call-points { display: grid; gap: 10px; margin-top: 20px; text-align: left; }
.call-points li { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 1rem; }
.call-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex: none; }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; margin-top: 44px; }
.contact-alt { color: var(--text-muted); font-size: .9375rem; overflow-wrap: anywhere; }
.contact-alt a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.contact-alt a:hover { text-decoration-color: var(--accent); }



/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: .8125rem; color: var(--text-faint); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-inner img { height: 18px; width: auto; }
.site-footer a:hover { color: var(--text); }

/* ---------- Legal pages ---------- */

.legal { padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 9vw, 120px); }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
.legal-updated { margin-top: 12px; color: var(--text-faint); font-size: .9375rem; }
.legal h2 { margin-top: 44px; margin-bottom: 12px; font-size: clamp(1.25rem, 2vw, 1.5rem); font-stretch: var(--semi); letter-spacing: -0.015em; }
.legal p { color: var(--text-muted); max-width: 66ch; }
.legal p + p { margin-top: 12px; }
.legal a, .site-footer p a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.legal a:hover, .site-footer p a:hover { text-decoration-color: var(--accent); }
.legal-back { margin-left: auto; }
.legal-back::after { content: none; }

/* VSL (enable in index.html when the video is ready) */
.vsl { padding: 0 0 clamp(96px, 12vw, 160px); }
.vsl-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.vsl-frame video, .vsl-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }

/* ---------- Reduced motion: fewer and gentler, final states ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
  .plane { translate: none !important; }
}
