/* ============================================================
   MetaTechAI — FounderOS
   Instrument-panel design system. Two complete themes:
   dark = mission control, light = field-notes paper.
   Palette matched to the FounderOS app: signal green on charcoal,
   amber for live status. No frameworks, no images.
   ============================================================ */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Inter Tight";
  src: url("../assets/fonts/inter-tight-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../assets/fonts/inter-tight-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../assets/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../assets/fonts/plex-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --sans: "Inter Tight", -apple-system, "SF Pro Text", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
  --head-h: 64px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.45, .5, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0A09;
  --bg2: #0E0E0C;
  --surface: #141411;
  --surface2: #1A1A16;
  --text: #F2F0EA;
  --text-dim: rgba(242, 240, 234, .60);
  --text-faint: rgba(242, 240, 234, .38);
  --line: rgba(242, 240, 234, .09);
  --line-strong: rgba(242, 240, 234, .18);
  --accent: #19C2E3;           /* MetaTech teal: live / approved / go */
  --accent-btn: #14AFCF;       /* solid fills; carries dark text */
  --accent-text: #6FDFF5;      /* bright readout teal for text on dark */
  --accent-soft: rgba(25, 194, 227, .12);
  --on-accent: #041519;
  --agent: #D97757;            /* agent energy: working, routing, thinking */
  --agent-text: #F09B78;
  --agent-soft: rgba(217, 119, 87, .13);
  --on-agent: #1B0E08;
  --ok: #19C2E3;
  --warn: #E2A53E;
  --danger: #E2604B;
  --grain-op: .05;
  --shadow: 0 30px 90px -24px rgba(0, 0, 0, .6);
  --glow: 0 -20px 140px -20px rgba(25, 194, 227, .12);
  --head-bg: rgba(10, 10, 9, .74);
  --grid-line: rgba(242, 240, 234, .035);
  --page-shadow: 0 -34px 80px -36px rgba(0, 0, 0, .65);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F8F4EC;
  --bg2: #F2ECDF;
  --surface: #FFFFFF;
  --surface2: #FCFAF5;
  --text: #131512;
  --text-dim: rgba(19, 21, 18, .62);
  --text-faint: rgba(19, 21, 18, .4);
  --line: rgba(19, 21, 18, .12);
  --line-strong: rgba(19, 21, 18, .26);
  --accent: #0FA0BF;
  --accent-btn: #13B7D8;
  --accent-text: #0A7A95;
  --accent-soft: rgba(15, 160, 191, .10);
  --on-accent: #03161B;
  --agent: #C05A36;
  --agent-text: #A8431F;
  --agent-soft: rgba(192, 90, 54, .10);
  --on-agent: #FFF8F4;
  --ok: #0FA0BF;
  --warn: #A66E12;
  --danger: #BC4030;
  --grain-op: .03;
  --shadow: 0 24px 70px -28px rgba(34, 40, 30, .25);
  --glow: 0 -20px 140px -20px rgba(15, 160, 191, .09);
  --head-bg: rgba(247, 245, 240, .78);
  --grid-line: rgba(19, 21, 18, .04);
  --page-shadow: 0 -30px 70px -38px rgba(40, 34, 22, .35);
}

/* Theme switch crossfade — class is added by JS for the duration of the morph */
html.theme-anim,
html.theme-anim body,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease,
    fill .5s ease, stroke .5s ease, box-shadow .5s ease !important;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  letter-spacing: -0.011em;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: normal; color: var(--accent-text); }
em.ag { color: var(--agent-text); }
em.wn { color: var(--warn); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: fixed; top: -48px; left: 16px; z-index: 200;
  background: var(--accent-btn); color: var(--on-accent);
  padding: 10px 16px; border-radius: 8px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* Film grain — pure SVG turbulence, fixed overlay */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Shared atoms ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--agent-text);
  margin-bottom: 18px;
}

.sec-index {
  position: absolute;
  top: clamp(26px, 4vw, 42px);
  left: var(--gutter);
  font-family: var(--mono);
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  color: var(--text-faint);
}
.sec-index::before { content: "/ "; color: var(--agent-text); }
.sec-index::after { content: ""; display: inline-block; width: 34px; height: 1px; background: var(--line-strong); margin: 0 0 4px 12px; }

main > section { background-color: var(--bg); }
html.deck-on main > section { box-shadow: var(--page-shadow); will-change: transform; }
html.deck-on .site-foot { box-shadow: var(--page-shadow); }
.site-foot { background: var(--bg); }

main section {
  position: relative;
  scroll-margin-top: calc(var(--head-h) + 8px);
  border-top: 1px solid var(--line);
  padding: clamp(84px, 10.5vw, 144px) max(var(--gutter), calc((100% - var(--maxw)) / 2));
}
main .hero { border-top: 0; }

/* Blueprint grid backdrop for the bookend sections */
.hero, .demo, .dispatch, .close {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
}

h2 {
  font-size: clamp(2.1rem, 4.7vw, 3.85rem);
  font-weight: 620;
  letter-spacing: -0.042em;
  line-height: 1.03;
  text-wrap: balance;
}

.sec-head { max-width: 720px; margin-bottom: clamp(34px, 5vw, 56px); }
.sec-sub { color: var(--text-dim); margin-top: 16px; max-width: 54ch; }

.status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); margin-right: 10px; vertical-align: 1px;
  animation: dotpulse 2.8s ease-out infinite;
}
@keyframes dotpulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease-out), box-shadow .25s, background-color .25s, border-color .25s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--accent-btn); color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 30px -12px color-mix(in srgb, var(--accent) 55%, transparent);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 16px 36px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-dim); background: var(--accent-soft); }
.btn-danger:hover { border-color: var(--danger); color: var(--danger); background: transparent; }
.btn-small { padding: 9px 18px; font-size: 14px; }

.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-text); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

/* The one door every story ends at */
.sec-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-text);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding-bottom: 6px;
  transition: color .3s, border-color .3s, gap .3s var(--ease-out);
}
.sec-cta:hover { gap: 16px; border-bottom-color: var(--accent); }
.sec-cta i { font-style: normal; }
.demo-cta { text-align: center; margin-top: 10px; }
.demo-cta .sec-cta { margin-top: 0; }

/* Reveal-on-scroll (only when JS is alive; reduced-motion gets none) */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
    transition-delay: var(--rd, 0s);
  }
  html.js .reveal.in { opacity: 1; transform: none; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--head-h);
  padding-inline: clamp(20px, 4vw, 44px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .4s, border-color .4s, backdrop-filter .4s;
}
.site-head.scrolled {
  background: var(--head-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}

.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 680; letter-spacing: -0.015em; font-size: 15px; }
.mark-img { width: 24px; height: 24px; object-fit: contain; display: block; }
.eyebrow a { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent); text-underline-offset: 3px; }
.eyebrow a:hover { color: var(--accent-text); }
/* The mark: the vault, open. One agent in orbit. */
.mark {
  position: relative;
  width: 12px; height: 12px;
  background: transparent;
  border: 1.8px solid var(--accent);
  border-radius: 3px;
  transform: rotate(45deg);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 50%, transparent);
}
.mark::after {
  content: "";
  position: absolute; top: -4.5px; right: -4.5px;
  width: 5.5px; height: 5.5px; border-radius: 50%;
  background: var(--agent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--agent) 70%, transparent);
}

.site-nav { display: flex; gap: clamp(18px, 2.6vw, 34px); }
.site-nav a {
  font-size: 14.5px; font-weight: 480; color: var(--text-dim);
  transition: color .25s;
}
.site-nav a:hover { color: var(--text); }

.head-actions { display: flex; align-items: center; gap: 14px; }

/* Theme toggle — sun ⟷ moon morph */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); color: var(--text);
  transition: border-color .3s, background-color .3s, transform .3s var(--ease-spring);
}
.theme-toggle:hover { border-color: var(--text-dim); transform: rotate(14deg); }
.tt-mask, .tt-sun { transition: cx .55s var(--ease-spring), cy .55s var(--ease-spring), r .4s var(--ease-out); }
.tt-rays { transform-origin: center; transition: transform .5s var(--ease-spring), opacity .35s; }
:root[data-theme="dark"] .tt-mask { cx: 17; cy: 8; }
:root[data-theme="dark"] .tt-sun { r: 7.4; }
:root[data-theme="dark"] .tt-rays { opacity: 0; transform: scale(.5) rotate(-30deg); }
:root[data-theme="light"] .tt-mask { cx: 30; cy: 2; }
:root[data-theme="light"] .tt-rays { opacity: 1; transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: calc(var(--head-h) + clamp(48px, 9vh, 110px)) !important;
  padding-bottom: 0 !important;
  overflow: clip;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(1100px 520px at 70% -8%, var(--accent-soft), transparent 65%);
}

.hero-inner { position: relative; z-index: 2; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: clamp(26px, 4vh, 44px);
}

.hero-h1 {
  font-weight: 660;
  font-size: clamp(3rem, 7.2vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.052em;
  text-wrap: balance;
}
.hero-mission {
  margin-top: clamp(18px, 2.6vh, 28px);
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-dim);
  max-width: 34em;
}
.hq-line { display: block; }
.hero-quote em { color: var(--accent-text); }
.hero-quote em.ag { color: var(--agent-text); }

/* Hero quote lines rise in on load */
@media (prefers-reduced-motion: no-preference) {
  html.js .hq-line { opacity: 0; transform: translateY(34px); }
  html.js .hero.hero-in .hq-line {
    opacity: 1; transform: none;
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  }
  html.js .hero.hero-in .hq-line:nth-child(1) { transition-delay: .05s; }
  html.js .hero.hero-in .hq-line:nth-child(2) { transition-delay: .16s; }
  html.js .hero.hero-in .hq-line:nth-child(3) { transition-delay: .27s; }
  html.js .hero.hero-in .hq-line:nth-child(4) { transition-delay: .38s; }
}

.hero-sub {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  margin-top: clamp(30px, 4.5vh, 52px);
}
.hero-sub p { max-width: 46ch; color: var(--text-dim); font-size: 16.5px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-assure {
  display: flex; flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 16px;
}
.hero-assure span {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-faint);
}
.hero-assure span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* The living field: a generative particle network behind the whole hero */
.hero-field {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.3) 24%, #000 56%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.3) 24%, #000 56%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }

/* The film: the real product, floating on the field */
.hero-film { position: relative; z-index: 2; margin-top: clamp(36px, 6vh, 64px); }

/* Aurora panel: a soft-rounded gradient stage for product shots */
.aurora {
  padding: clamp(16px, 2.6vw, 36px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(110% 90% at 12% 8%, rgba(105, 216, 238, .8) 0%, transparent 52%),
    radial-gradient(95% 80% at 88% 12%, rgba(242, 196, 138, .65) 0%, transparent 55%),
    radial-gradient(130% 110% at 50% 105%, rgba(16, 148, 178, .75) 0%, transparent 62%),
    linear-gradient(180deg, #EAF2F2, #DDEAEB);
  box-shadow: var(--shadow);
}
:root[data-theme="dark"] .aurora {
  background:
    radial-gradient(110% 90% at 12% 8%, rgba(25, 194, 227, .2) 0%, transparent 52%),
    radial-gradient(95% 80% at 88% 12%, rgba(217, 119, 87, .16) 0%, transparent 55%),
    radial-gradient(130% 110% at 50% 105%, rgba(16, 148, 178, .28) 0%, transparent 62%),
    linear-gradient(180deg, #0D1214, #0A0F11);
}
.hf-video {
  display: block; width: 100%;
  border-radius: clamp(12px, 1.8vw, 22px);
  border: 1px solid rgba(0, 0, 0, .18);
  box-shadow: 0 30px 80px -24px rgba(30, 20, 10, .45);
  background: #000;
}
.aurora .hf-cap { color: rgba(40, 28, 16, .55); }
:root[data-theme="dark"] .aurora .hf-cap { color: var(--text-faint); }
.hf-cap {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-faint);
}

/* The frontier-model wall at the hero's foot */
.model-strip {
  position: relative; z-index: 2;
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: clamp(18px, 3.2vw, 44px);
  margin-top: clamp(28px, 4vh, 44px);
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
}
.mk-label {
  font-family: var(--mono);
  font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-faint);
  flex-basis: 100%;
}
.mk-name {
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 650; letter-spacing: -0.02em;
  color: var(--text-faint);
  transition: color .3s, text-shadow .3s;
}
.mk-name:hover {
  color: var(--mc, var(--text));
  text-shadow: 0 0 24px color-mix(in srgb, var(--mc, var(--text)) 50%, transparent);
}
.mk-next {
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint);
  align-self: center;
}

/* ============================================================
   INTERLUDE · VERSUS — advice vs shipped work
   ============================================================ */
.versus { background: var(--bg2); }
.vs-table { max-width: 1000px; }
.vs-head, .vs-row {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(180px, 1fr) minmax(240px, 1.35fr);
  gap: 14px 28px;
  align-items: baseline;
}
.vs-head {
  font-family: var(--mono);
  font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: 12px;
}
.vs-head .vs-us { color: var(--accent-text); }
.vs-row {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.vs-job {
  font-family: var(--mono);
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--agent-text);
}
.vs-them { color: var(--text-faint); font-size: 15.5px; }
.vs-ours { color: var(--text); font-size: 15.5px; font-weight: 520; }
.vs-ours b {
  display: block; margin-top: 8px;
  font-family: var(--mono);
  font-size: 9.5px; font-weight: 600; letter-spacing: .16em;
  color: var(--accent-text);
}
.vs-line {
  margin-top: clamp(32px, 4.5vw, 52px);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 630; letter-spacing: -0.035em;
}
@media (max-width: 760px) {
  .vs-head { display: none; }
  .vs-row { grid-template-columns: 1fr; gap: 8px; }
  .vs-them::before { content: "A CHATBOT · "; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--text-faint); }
  .vs-ours::before { content: "FOUNDEROS · "; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--accent-text); }
}

/* ============================================================
   INTERLUDE · PROOF — outcomes, stats, names
   ============================================================ */
.pf-stats {
  display: flex; flex-wrap: wrap;
  gap: clamp(36px, 7vw, 110px);
  margin-bottom: clamp(44px, 6vw, 72px);
}
.pf-stat b {
  display: block;
  font-size: clamp(3rem, 6.5vw, 5.2rem);
  font-weight: 650; letter-spacing: -0.05em; line-height: 1;
}
.pf-stat small {
  display: block; margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--text-faint);
}
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pf-card {
  padding: 24px 24px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .35s, transform .35s var(--ease-out);
}
.pf-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-4px); }
.pf-tag {
  font-family: var(--mono);
  font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--agent-text);
  margin-bottom: 12px;
}
.pf-claim { font-size: 16.5px; font-weight: 540; line-height: 1.5; letter-spacing: -0.015em; }
.pf-who {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10px; font-weight: 600; letter-spacing: .08em;
  color: var(--text-faint);
}
.pf-names {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 15px; font-weight: 560; letter-spacing: -0.01em;
  color: var(--text-dim);
  line-height: 2;
}
.pf-names-label {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
@media (max-width: 980px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pf-grid { grid-template-columns: 1fr; } }

/* Team — real humans, given a real moment */
.team { margin-top: clamp(56px, 8vw, 96px); }
.team-kicker {
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--agent-text);
  margin-bottom: 12px;
}
.team-title {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 630; letter-spacing: -0.035em;
  margin-bottom: 30px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 18px;
}
.tm { margin: 0; position: relative; }
.tm img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  filter: grayscale(1) contrast(1.06);
  transition: filter .5s var(--ease-out), transform .5s var(--ease-out), border-color .5s, box-shadow .5s;
}
.tm:hover img {
  filter: grayscale(0);
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: var(--shadow);
}
.tm figcaption {
  margin-top: 10px; line-height: 1.4;
  padding-left: 12px;
  border-left: 2px solid var(--line-strong);
  transition: border-color .4s;
}
.tm:hover figcaption { border-left-color: var(--accent); }
.tm b { display: block; font-size: 14.5px; font-weight: 630; letter-spacing: -0.015em; }
.tm span {
  font-family: var(--mono);
  font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-faint);
}
@media (max-width: 760px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   INTERLUDE · MANIFESTO — one statement, one page
   ============================================================ */
.manifesto {
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(110px, 16vh, 180px) !important;
  padding-bottom: clamp(110px, 16vh, 180px) !important;
  background:
    radial-gradient(700px 420px at 82% 18%, var(--agent-soft), transparent 70%),
    radial-gradient(900px 520px at 12% 88%, var(--accent-soft), transparent 70%),
    var(--bg) !important;
}
.mf-tag {
  font-family: var(--mono);
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 28px;
}
.mf-line {
  font-size: clamp(2.4rem, 6.6vw, 5.6rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1.0;
  max-width: 11em;
  text-wrap: balance;
}
.mf-line em { color: var(--accent-text); }
.mf-foot {
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   01 · PROBLEM
   ============================================================ */
.problem { background: var(--bg2); }
.problem-lines { max-width: 980px; }
.p-line {
  font-size: clamp(1.9rem, 5.2vw, 4.2rem);
  font-weight: 620; letter-spacing: -0.045em; line-height: 1.08;
}
.p-dim { color: var(--text-faint); font-size: clamp(1.3rem, 3vw, 2.1rem); font-weight: 520; margin-bottom: 14px; }
.problem-note {
  margin-top: clamp(40px, 6vw, 64px);
  margin-left: auto;
  max-width: 460px;
  color: var(--text-dim);
  border-left: 1px solid var(--line-strong);
  padding-left: 24px;
}

/* ============================================================
   03 · BRAINS — the instrument
   ============================================================ */
.brains { background: var(--bg2); }
.brains-grid {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) minmax(320px, 6fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.brains-copy h2 { margin-bottom: 22px; }
.brains-copy > p { color: var(--text-dim); max-width: 46ch; }
.brains-points { list-style: none; margin-top: 28px; }
.brains-points li {
  padding: 13px 0 13px 26px;
  border-top: 1px solid var(--line);
  position: relative;
  color: var(--text-dim);
}
.brains-points li::before {
  content: ""; position: absolute; left: 2px; top: 22px;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent); transform: rotate(45deg);
}

.brains-visual { position: relative; }

/* Instrument frame — shared by the brain map and the org chart.
   When a real recording lands in assets/media/, JS swaps the mock for it. */
.instrument {
  position: relative;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  /* glass edge: cursor glow + surface inside, a lit gradient on the 1px border */
  background:
    radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px),
      rgba(255, 255, 255, .05), transparent 65%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(165deg,
      color-mix(in srgb, var(--accent) 45%, var(--line-strong)) 0%,
      var(--line-strong) 38%,
      var(--line-strong) 70%,
      color-mix(in srgb, var(--agent) 30%, var(--line-strong)) 100%) border-box;
  box-shadow: var(--shadow), var(--glow), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}
.instrument::before, .instrument::after {
  content: "+";
  position: absolute; z-index: 5;
  font-family: var(--mono); font-size: 13px;
  color: var(--text-faint);
  pointer-events: none;
}
.instrument::before { top: 6px; left: 10px; }
.instrument::after { bottom: 6px; right: 10px; }

.ins-chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px 11px 34px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
}
.ins-title { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }
.ins-chip {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 600; letter-spacing: .08em;
  color: var(--accent-text);
}
.ins-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.ins-stats {
  display: flex; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
}
.ins-stat { flex: 1 1 auto; padding: 9px 14px; border-right: 1px solid var(--line); }
.ins-stat:last-child { border-right: 0; }
.ins-stat small {
  display: block;
  font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-faint);
}
.ins-stat b { font-size: 14px; font-weight: 600; }
.ins-stat .rev { color: var(--warn); }

.ins-body { position: relative; background: var(--bg); }
.ins-media { display: block; width: 100%; height: auto; }

.ins-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-faint);
}
.rec { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); animation: dotpulse 2.2s ease-out infinite; margin: 0; }

/* Phosphor map inside the brain instrument */
.brain-graph { width: 100%; height: auto; display: block; }
.bg-edges line { stroke: color-mix(in srgb, var(--accent) 26%, transparent); stroke-width: 1; }
.bgn circle { fill: var(--surface2); stroke: color-mix(in srgb, var(--accent) 45%, var(--text-faint)); stroke-width: 1.2; }
.bgn text {
  fill: var(--text-dim); font-family: var(--mono);
  font-size: 10px; font-weight: 600; text-anchor: middle; letter-spacing: .04em;
}
.bgn-sm text { fill: var(--text-faint); font-size: 8.5px; }
.bgn-core circle { fill: var(--accent); stroke: none; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 70%, transparent)); }
.bgn-core text { fill: var(--text); font-weight: 600; font-size: 10.5px; }
@media (prefers-reduced-motion: no-preference) {
  .bgn { animation: nodefloat 7s ease-in-out var(--d, 0s) infinite alternate; }
  @keyframes nodefloat {
    from { transform: translate(0, 0); }
    to { transform: translate(0, -7px); }
  }
}

.brain-note {
  position: absolute; right: -8px; bottom: -34px; z-index: 6;
  width: min(300px, 86%);
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0; line-height: 1.5;
}
.bn-path { font-weight: 600; font-size: 11.5px; }
.bn-path b { color: var(--accent-text); }
.bn-meta { display: flex; gap: 16px; color: var(--text-faint); font-size: 9.5px; margin: 6px 0 10px; text-transform: uppercase; letter-spacing: .08em; }
.bn-line { padding: 5px 0; border-top: 1px solid var(--line); color: var(--text-dim); }
.bn-add { color: var(--accent-text); }
.bn-hold { color: var(--warn); }

/* ============================================================
   04 · TEAMS — org chart + the ledger
   ============================================================ */
.orgchart {
  margin-bottom: clamp(40px, 5.5vw, 64px);
}
.org-tier { display: flex; justify-content: center; }
.org-cell {
  position: relative;
  min-width: 200px;
  padding: 14px 22px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
}
.org-cell small {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 3px;
}
.org-cell b { font-weight: 640; letter-spacing: -0.02em; }
.org-chief {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 14px 40px -16px color-mix(in srgb, var(--accent) 40%, transparent);
}
.org-chief small { color: var(--accent-text); }
.org-stem { display: flex; justify-content: center; }
.org-stem i { width: 1px; height: 30px; background: var(--line-strong); position: relative; }
.org-stem i::after, .org-spread i::after {
  content: ""; position: absolute; left: -1.5px; top: 0;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--agent);
  box-shadow: 0 0 8px var(--agent);
  opacity: 0;
  animation: routedown 3s ease-in-out var(--rd, 0s) infinite;
}
@keyframes routedown {
  0% { top: -4px; opacity: 0; }
  12% { opacity: 1; }
  82% { opacity: 1; }
  100% { top: calc(100% + 2px); opacity: 0; }
}
.org-spread { position: relative; height: 30px; }
.org-spread::before {
  content: ""; position: absolute; top: 0; left: 12.5%; right: 12.5%;
  border-top: 1px solid var(--line-strong);
}
.org-spread i { position: absolute; top: 0; width: 1px; height: 30px; background: var(--line-strong); }
.org-spread i:nth-child(1)::after { --rd: .9s; }
.org-spread i:nth-child(2)::after { --rd: 1.5s; }
.org-spread i:nth-child(3)::after { --rd: 2.1s; }
.org-spread i:nth-child(4)::after { --rd: 2.7s; }
.org-spread i:nth-child(1) { left: 12.5%; }
.org-spread i:nth-child(2) { left: 37.5%; }
.org-spread i:nth-child(3) { left: 62.51%; }
.org-spread i:nth-child(4) { left: 87.5%; }

.org-depts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.org-dept {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .3s, transform .3s var(--ease-out);
}
.org-dept:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-3px); }
.org-dept h3 {
  font-size: 13.5px; font-weight: 640; letter-spacing: -0.01em;
  margin-bottom: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.org-dept h3 span {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  color: var(--text-faint);
}
.org-agent {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0;
  font-family: var(--mono); font-size: 11px;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
}
.org-agent::before { content: ""; flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.org-agent.busy::before {
  background: transparent;
  border: 1.5px solid var(--agent-soft);
  border-top-color: var(--agent);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ledger { border-top: 1px solid var(--line-strong); }
.ledger-row {
  display: grid;
  grid-template-columns: minmax(170px, 240px) 1fr auto;
  align-items: baseline;
  gap: 10px 28px;
  padding: 26px 10px;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: background-color .3s, padding .3s;
}
.ledger-row:hover, .ledger-row:focus-visible { background: var(--accent-soft); outline: none; }
.lr-name {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 620; letter-spacing: -0.025em;
  transition: color .3s;
}
.ledger-row:hover .lr-name, .ledger-row:focus-visible .lr-name { color: var(--accent-text); }
.lr-outcome { color: var(--text-dim); }
.lr-lock {
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: var(--text-dim);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 5px 12px; white-space: nowrap;
}
.lr-playbook {
  grid-column: 2 / -1;
  font-family: var(--mono);
  font-size: 11.5px; color: var(--text-faint);
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .45s var(--ease-out), opacity .45s, margin .45s;
}
.lr-playbook b { color: var(--accent-text); font-weight: 600; }
.ledger-row:hover .lr-playbook, .ledger-row:focus-visible .lr-playbook {
  max-height: 40px; opacity: 1; margin-top: 4px;
}

/* ============================================================
   05 · SKILLS — marketplace strip
   ============================================================ */
.skills { background: var(--bg2); }
.skill-strip {
  display: flex; gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 6px 22px;
  margin-inline: -6px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.skill-card {
  flex: 0 0 285px;
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px 24px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform .35s var(--ease-out), border-color .35s, box-shadow .35s;
}
.skill-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--shadow); }
.skill-card h3 { font-size: 1.25rem; font-weight: 630; letter-spacing: -0.02em; }
.skill-card p { color: var(--text-dim); font-size: 15px; flex: 1; }
.skill-card footer { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; align-items: flex-start; }
.safe { font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); }

/* ============================================================
   06 · SIGNATURE DEMO — scroll-scrubbed pipeline
   ============================================================ */
.demo { padding: 0 !important; height: 380vh; }
.demo-pin {
  position: sticky; top: 0;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--head-h) + 20px) max(var(--gutter), calc((100% - var(--maxw)) / 2)) 30px;
  overflow: clip;
}
.demo .sec-head { margin-bottom: clamp(16px, 2.4vh, 30px); }

/* The six moves, as a mission rail above the stage */
.loop-rail {
  display: flex; align-items: center; flex-wrap: wrap; row-gap: 8px;
  margin-bottom: clamp(14px, 2.4vh, 28px);
  font-family: var(--mono);
}
.lr-step {
  font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  transition: color .35s, text-shadow .35s;
}
.lr-step.now { color: var(--agent-text); text-shadow: 0 0 14px color-mix(in srgb, var(--agent) 55%, transparent); }
.lr-step.done { color: var(--accent-text); text-shadow: none; }
.lr-sep {
  flex: 1 1 16px; min-width: 12px; height: 1px;
  margin: 0 10px;
  background: var(--line-strong);
  position: relative; overflow: hidden;
}
.lr-sep.done { background: color-mix(in srgb, var(--accent) 45%, var(--line-strong)); }
.lr-sep.flow::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--agent), transparent);
  animation: energyflow 1.1s linear infinite;
}
@keyframes energyflow { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.demo-stage {
  position: relative;
  width: 100%;
  height: clamp(360px, 52vh, 480px);
}
.demo-track {
  position: absolute; left: 2%; right: 2%; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 8%, var(--line-strong) 92%, transparent);
}

.demo-node {
  position: absolute; top: 50%;
  width: 74px; height: 74px; margin: -37px 0 0 -37px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  transition: border-color .4s, box-shadow .4s;
}
.dn-brain { left: 30%; }
.dn-team { left: 56%; }
.dn-ring {
  position: absolute; inset: 14px; border-radius: 50%;
  border: 1px dashed var(--text-faint);
  transition: border-color .4s;
}
.demo-node.lit { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft), 0 0 44px -4px color-mix(in srgb, var(--accent) 50%, transparent); }
.demo-node.lit .dn-ring { border-color: var(--accent-text); animation: ringspin 9s linear infinite; }
@keyframes ringspin { to { transform: rotate(360deg); } }
.dn-label {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim); white-space: nowrap;
}

.demo-gate { position: absolute; left: 81%; top: 50%; width: 0; height: 0; }
.dg-bar {
  position: absolute; left: -1.5px; width: 3px; height: 40px;
  background: var(--text-dim); border-radius: 2px;
  transition: transform .6s var(--ease-spring), background-color .4s;
}
.dg-top { bottom: 6px; transform-origin: bottom center; }
.dg-bot { top: 6px; transform-origin: top center; }
.demo-gate .dn-label { top: 56px; }
.demo-gate.lit .dg-bar { background: var(--accent); box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 60%, transparent); }
.demo-gate.open .dg-top { transform: rotate(64deg); }
.demo-gate.open .dg-bot { transform: rotate(-64deg); }

.demo-chip {
  position: absolute; top: 50%;
  left: calc(var(--cx, 5) * 1%);
  transform: translate(-50%, -50%);
  max-width: 320px;
  padding: 12px 18px;
  background: var(--surface2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-family: var(--mono);
  font-size: 12px; font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  z-index: 3;
  transition: opacity .4s;
}
.demo-chip.show { opacity: 1; }
.demo-chip .chip-draft { display: none; color: var(--accent-text); }
.demo-chip.as-draft { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: var(--accent-soft); }
.demo-chip.as-draft .chip-req { display: none; }
.demo-chip.as-draft .chip-draft { display: inline; }

.demo-anno {
  position: absolute;
  font-family: var(--mono);
  font-size: 11.5px; color: var(--text-dim);
  max-width: 250px; line-height: 1.55;
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.demo-anno b { color: var(--text); font-weight: 600; }
.demo-anno.on { opacity: 1; transform: none; }
.da-1 { left: 30%; top: 6%; transform: translateY(8px); margin-left: -110px; text-align: center; }
.da-1.on { transform: none; }
.da-2 { left: 56%; top: 6%; margin-left: -110px; text-align: center; }
.da-3 { left: 81%; top: 1%; margin-left: -110px; text-align: center; }

.demo-draft {
  position: absolute; left: 56%; top: 68%;
  width: 270px; margin-left: -135px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  font-size: 13px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.demo-draft.on { opacity: 1; transform: none; }
.dd-line { padding: 4px 0; color: var(--text-dim); border-top: 1px dashed var(--line); opacity: 0; transition: opacity .4s; transition-delay: calc(var(--n, 0) * .15s); }
.dd-line:first-child { border-top: 0; }
.demo-draft.on .dd-line { opacity: 1; }
.dd-line:nth-child(1) { --n: 0; } .dd-line:nth-child(2) { --n: 1; } .dd-line:nth-child(3) { --n: 2; }

.demo-approve {
  position: absolute; left: 81%; top: 72%;
  transform: translateX(-50%);
  padding: 12px 24px; border-radius: 999px;
  background: var(--accent-btn); color: var(--on-accent);
  font-weight: 640; font-size: 14.5px;
  opacity: .25; pointer-events: none;
  transition: opacity .4s, transform .3s var(--ease-spring), box-shadow .4s;
}
.demo-approve.ready {
  opacity: 1; pointer-events: auto;
  animation: approvepulse 2s ease-in-out infinite;
}
.demo-approve.ready:hover { transform: translateX(-50%) scale(1.04); }
@keyframes approvepulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); }
  50% { box-shadow: 0 0 0 12px transparent; }
}
.demo-approve.gone { opacity: 0; pointer-events: none; }

.demo-stamp {
  position: absolute; left: auto; right: 1%; top: 26%;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border: 1.5px solid var(--accent);
  border-radius: var(--r-sm);
  color: var(--accent-text);
  font-family: var(--mono); font-weight: 600; font-size: 11px;
  background: var(--surface);
  white-space: nowrap;
  transform: rotate(-5deg) scale(.7); opacity: 0;
  transition: opacity .45s var(--ease-spring), transform .45s var(--ease-spring);
}
.demo-stamp .ds-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-btn); color: var(--on-accent); font-size: 12px;
}
.demo-stamp.on { opacity: 1; transform: rotate(-5deg) scale(1); }

.demo-hint { text-align: center; margin-top: 18px; font-family: var(--mono); font-size: 11px; color: var(--text-faint); }

/* ============================================================
   07 · PHONE REMOTE
   ============================================================ */
.phone-grid {
  display: grid;
  grid-template-columns: minmax(300px, 6fr) minmax(260px, 4fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.phone-copy h2 { margin-bottom: 22px; }
.phone-copy > p { color: var(--text-dim); max-width: 44ch; }

.qr-pair { display: flex; align-items: center; gap: 22px; margin-top: 38px; }
.qr {
  width: 108px; height: 108px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}
.qr rect { fill: var(--text); opacity: 0; transition: opacity .35s; transition-delay: calc(var(--i) * 5ms); }
.qr.on rect { opacity: 1; }
.qr-beam { flex: 0 1 90px; height: 1px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); }
.qr-cap { font-family: var(--mono); font-size: 11px; color: var(--text-faint); max-width: 130px; line-height: 1.5; }

.phone-mock {
  position: relative;
  width: min(290px, 86%);
  aspect-ratio: 9 / 18.6;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 44px;
  box-shadow: var(--shadow), var(--glow);
  padding: 12px;
}
.pm-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 22px; border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.pm-screen {
  height: 100%; border-radius: 34px;
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 44px 16px 16px;
  display: flex; flex-direction: column; gap: 9px;
  font-size: 12.5px; letter-spacing: 0;
  overflow: hidden;
}
.pm-time { position: absolute; top: 16px; left: 30px; font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--text-dim); }
.pm-title { font-size: 21px; font-weight: 680; letter-spacing: -0.03em; margin-bottom: 2px; }
.pm-item {
  display: flex; flex-direction: column; gap: 1px;
  padding: 10px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pm-item b { font-weight: 620; }
.pm-item span { color: var(--text-faint); font-size: 11.5px; }
.pm-approval {
  margin-top: auto;
  padding: 13px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 12px 34px -14px color-mix(in srgb, var(--accent) 35%, transparent);
}
.pm-approval p { font-weight: 620; margin-bottom: 9px; }
.pm-actions { display: flex; gap: 7px; }
.pm-actions span {
  flex: 1; text-align: center;
  padding: 7px 0; border-radius: 999px; font-size: 11.5px; font-weight: 620;
  border: 1px solid var(--line-strong); color: var(--text-dim);
}
.pm-actions .pm-go { background: var(--accent-btn); border-color: var(--accent-btn); color: var(--on-accent); }

/* ============================================================
   08 · APPROVAL & AUDIT
   ============================================================ */
.approval { background: var(--bg2); }
.approval-grid {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) minmax(320px, 6fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.approval-copy h2 { margin-bottom: 22px; }
.approval-copy > p { color: var(--text-dim); max-width: 44ch; }
.approval-quiet { margin-top: 26px; font-family: var(--mono); color: var(--text-faint); font-size: 12px; }

.modal {
  padding: 30px 30px 26px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow), var(--glow);
}
.modal-kicker { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
.modal h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 640; letter-spacing: -0.03em; }
.modal-sub { color: var(--text-faint); font-size: 13.5px; margin: 6px 0 18px; }
.modal-preview {
  padding: 16px 18px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--text-dim);
  margin-bottom: 20px;
}
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal.decided .modal-actions .btn { opacity: .35; pointer-events: none; }

.audit-log {
  margin-top: 16px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface2);
  font-family: var(--mono); font-size: 11.5px;
}
.al-head { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.al-row { padding: 8px 0; border-top: 1px solid var(--line); color: var(--text-dim); }
.al-row.new { animation: rowin .8s var(--ease-out); color: var(--text); }
@keyframes rowin {
  0% { opacity: 0; transform: translateY(-6px); background: var(--accent-soft); }
  100% { opacity: 1; transform: none; background: transparent; }
}
.al-reset {
  margin-top: 10px; font-size: 11px; color: var(--text-faint);
  font-family: var(--mono);
  text-decoration: underline; text-underline-offset: 3px;
}
.al-reset:hover { color: var(--text-dim); }

/* ============================================================
   09 · WHO IT'S FOR
   ============================================================ */
.who-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.who-cell { padding: 8px 34px 8px 0; }
.who-cell + .who-cell { border-left: 1px solid var(--line-strong); padding-left: 34px; }
.who-cell h3 { font-size: 1.15rem; font-weight: 630; letter-spacing: -0.02em; margin-bottom: 10px; }
.who-cell p { color: var(--text-dim); font-size: 15.5px; }

/* ============================================================
   10 · STUDIO
   ============================================================ */
.studio { background: var(--bg2); }
.studio-inner { max-width: 880px; }
.studio-scale {
  color: var(--text-dim);
  max-width: 58ch;
  margin-bottom: clamp(28px, 4vw, 44px);
  font-size: 17.5px;
}
.studio-scale b { color: var(--text); font-weight: 600; }
.studio-note { position: relative; margin: 10px 0 clamp(48px, 7vw, 80px); }
.studio-note p {
  font-size: clamp(1.5rem, 3.3vw, 2.45rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.25;
  text-wrap: balance;
}
.studio-note cite {
  display: block; margin-top: 22px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim);
}

.family { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.family-item { padding: 26px 30px 26px 0; border-bottom: 1px solid var(--line); }
.family-item + .family-item { border-left: 1px solid var(--line); padding-left: 30px; }
.family-item h3 { font-size: 1.1rem; font-weight: 640; letter-spacing: -0.02em; margin-bottom: 8px; }
.family-item p { color: var(--text-dim); font-size: 14.5px; }
a.family-item { display: block; transition: background-color .3s; }
a.family-item:hover { background: var(--accent-soft); }
a.family-item:hover h3 { color: var(--accent-text); }
.family-item h3 i { font-style: normal; font-size: .8em; opacity: .6; }
.family-item.is-flagship h3 { color: var(--accent-text); }
.family-item.is-flagship h3::after {
  content: "Flagship"; margin-left: 10px;
  font-family: var(--mono);
  font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px; padding: 2.5px 8px; vertical-align: 2px;
}

.philosophy {
  margin-top: clamp(48px, 7vw, 80px);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600; letter-spacing: -0.03em;
}

/* ============================================================
   11 · ACCESS
   ============================================================ */
.access { display: grid; place-items: center; }
.access-card {
  width: min(620px, 100%);
  padding: clamp(36px, 6vw, 60px);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow), 0 0 160px -30px color-mix(in srgb, var(--accent) 22%, transparent);
}
.access-sub { color: var(--text-dim); margin: 16px auto 30px; max-width: 42ch; }
.access-form { display: flex; gap: 10px; max-width: 440px; margin-inline: auto; }
.access-form input {
  flex: 1; min-width: 0;
  padding: 13px 18px;
  font: inherit; font-size: 15px;
  color: var(--text);
  background: var(--bg2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color .3s, box-shadow .3s;
}
.access-form input::placeholder { color: var(--text-faint); }
.access-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.access-done { margin-top: 22px; color: var(--accent-text); font-weight: 560; }
.access-fine { margin-top: 26px; font-family: var(--mono); font-size: 11px; color: var(--text-faint); }

/* ============================================================
   05 · MODELS — every model, one window
   ============================================================ */
.models { background: var(--bg2); }
:root[data-theme="light"] .models {
  background:
    radial-gradient(800px 460px at 85% 0%, rgba(105, 216, 238, .25), transparent 65%),
    var(--bg2);
}
.model-switch { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.ms-chip {
  padding: 11px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 600; font-size: 14.5px;
  transition: border-color .3s, color .3s, background-color .3s, box-shadow .3s, transform .25s var(--ease-out);
}
.ms-chip:hover { transform: translateY(-1px); }
.ms-chip.is-on {
  border-color: var(--model);
  color: var(--model);
  background: color-mix(in srgb, var(--model) 10%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--model) 10%, transparent),
    0 10px 30px -14px color-mix(in srgb, var(--model) 60%, transparent);
}

.model-stage { max-width: 720px; }
.model-stage .ins-chip { color: var(--model); }
.model-stage .ins-chip::before { background: var(--model); box-shadow: 0 0 10px var(--model); }
.ms-bay {
  display: flex; align-items: center; gap: 22px;
  padding: 28px 26px;
  background: var(--bg);
}
.ms-ring {
  position: relative;
  flex: 0 0 68px; height: 68px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  color: var(--model);
  transition: color .4s;
}
.ms-ring::before {
  content: ""; position: absolute; inset: -5px;
  border-radius: 50%;
  background: conic-gradient(var(--model) 0 70deg, transparent 110deg 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: spin 1.5s linear infinite;
}
.ms-ring::after {
  content: ""; position: absolute; inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--model) 26%, transparent), transparent 70%);
  z-index: -1;
  transition: background .4s;
}
.ms-readout { flex: 1; min-width: 0; }
.ms-line {
  font-family: var(--mono);
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  color: var(--model);
  margin-bottom: 12px;
  transition: color .4s;
}
.ms-constants { display: flex; gap: 8px; flex-wrap: wrap; }
.ms-constants span {
  font-family: var(--mono);
  font-size: 9.5px; font-weight: 600; letter-spacing: .1em;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
}
.models-foot {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-faint);
}
.models-foot b { color: var(--agent-text); font-weight: 600; }

.shield { margin-top: clamp(44px, 6vw, 72px); max-width: 760px; }
.shield h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 630; letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.shield-rows { border-top: 1px solid var(--line-strong); }
.shield-rows p {
  display: flex; gap: 20px; align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.shield-rows span {
  flex: 0 0 150px;
  font-family: var(--mono);
  font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--agent-text);
}
.shield-rows b { font-weight: 520; color: var(--text-dim); }
.shield-line {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 560;
  max-width: 40ch;
}
@media (max-width: 600px) {
  .shield-rows p { flex-direction: column; gap: 4px; }
}
@media (max-width: 600px) {
  .ms-bay { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   06 · CONNECT — the constellation
   ============================================================ */
.connect-grid {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) minmax(320px, 7fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.connect-copy h2 { margin-bottom: 22px; }
.connect-copy > p { color: var(--text-dim); max-width: 44ch; }
.constellation { width: 100%; height: auto; display: block; }
.logo-wrap { display: none; }
@media (max-width: 760px) {
  .constellation { display: none; }
  .logo-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
  .logo-chip {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
    color: var(--text-dim);
  }
  .logo-chip img { width: 16px; height: 16px; object-fit: contain; }
}
.cn-line {
  stroke: var(--line-strong); stroke-width: 1;
  stroke-dasharray: 3 9;
}
.in .cn-line { animation: dashflow 3.2s linear var(--d, 0s) infinite; }
@keyframes dashflow { to { stroke-dashoffset: -120; } }
.cn-core { fill: var(--accent); filter: drop-shadow(0 0 16px color-mix(in srgb, var(--accent) 70%, transparent)); }
.cn-pill rect {
  fill: var(--surface);
  stroke: var(--line-strong); stroke-width: 1;
  transition: stroke .3s;
}
.cn-pill text {
  fill: var(--text-dim);
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em;
  text-anchor: middle;
}
.cn-pill circle { fill: var(--ok); }
html.js .cn-pill { opacity: 0; transition: opacity .5s var(--ease-out); transition-delay: calc(var(--i) * 90ms); }
html.js .in .cn-pill { opacity: 1; }
@media (max-width: 1020px) { .connect-grid { grid-template-columns: 1fr; } }

/* ============================================================
   13 · THE CLOSE
   ============================================================ */
.close { text-align: left; }
:root[data-theme="light"] .close {
  background-image:
    radial-gradient(900px 520px at 80% 20%, rgba(242, 196, 138, .28), transparent 65%),
    radial-gradient(700px 460px at 10% 90%, rgba(105, 216, 238, .3), transparent 65%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
}
.close-line {
  font-size: clamp(1.8rem, 4.2vw, 3.5rem);
  font-weight: 620; letter-spacing: -0.04em; line-height: 1.1;
  max-width: 21em;
  text-wrap: balance;
}
.close-early {
  margin-top: 22px;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 640; letter-spacing: -0.03em;
  color: var(--accent-text);
}
.close-motto {
  display: inline-block;
  margin: clamp(36px, 5vw, 56px) 0 clamp(40px, 6vw, 64px);
  padding: 14px 22px;
  border: 1px solid color-mix(in srgb, var(--agent) 40%, transparent);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 12px; font-weight: 600; letter-spacing: .2em;
  color: var(--agent-text);
  background: var(--agent-soft);
}
.close .access-card { margin-inline: 0; text-align: left; }
.close .access-form { margin-inline: 0; }
.close .access-sub { margin-inline: 0; }

/* ============================================================
   12 · DISPATCH CONSOLE
   ============================================================ */
.console { max-width: 720px; margin-inline: auto; }

.ds-body {
  display: flex; flex-direction: column;
  min-height: 340px;
  padding: 22px 22px 18px;
  background: var(--bg);
}
.ds-feed { display: flex; flex-direction: column; gap: 12px; }

.ds-msg {
  max-width: 84%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px; line-height: 1.55;
}
.ds-bot {
  align-self: flex-start;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.ds-user {
  align-self: flex-end;
  background: var(--accent-btn); color: var(--on-accent);
  border-bottom-right-radius: 4px;
  font-weight: 560;
}
@media (prefers-reduced-motion: no-preference) {
  .ds-msg, .ds-log, .ds-brief, .ds-stamp { animation: dsin .45s var(--ease-out); }
  @keyframes dsin {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
}

.ds-typing i {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-dim); margin-right: 4px;
  animation: dsdot 1s ease-in-out infinite;
}
.ds-typing i:nth-child(2) { animation-delay: .15s; }
.ds-typing i:nth-child(3) { animation-delay: .3s; margin-right: 0; }
@keyframes dsdot { 50% { transform: translateY(-3px); opacity: .5; } }

.ds-log {
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-faint);
  padding: 2px 0 2px 12px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.ds-log b { color: var(--accent-text); }

.ds-input { margin-top: 16px; }
.ds-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-chip {
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px; font-weight: 560;
  transition: border-color .25s, background-color .25s, color .25s, transform .25s var(--ease-out);
}
.ds-chip:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-text);
  transform: translateY(-1px);
}

.ds-text { display: flex; gap: 10px; }
.ds-text input {
  flex: 1; min-width: 0;
  padding: 12px 18px;
  font: inherit; font-size: 14.5px;
  color: var(--text);
  background: var(--bg2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color .3s, box-shadow .3s;
}
.ds-text input::placeholder { color: var(--text-faint); }
.ds-text input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.ds-brief {
  margin-top: 4px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: var(--r-md);
  box-shadow: 0 18px 50px -18px color-mix(in srgb, var(--accent) 30%, transparent);
  font-family: var(--mono); font-size: 12px; line-height: 1.55;
}
.db-head {
  font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 8px;
}
.db-row { display: flex; gap: 14px; padding: 7px 0; border-top: 1px solid var(--line); }
.db-k {
  flex: 0 0 118px;
  font-size: 9.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 2px;
}
.db-v { flex: 1; color: var(--text-dim); }
.db-v.hot { color: var(--warn); }

.ds-stamp {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 4px;
  padding: 10px 16px;
  border: 1.5px solid var(--accent);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--accent-text);
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em;
}
.ds-again {
  align-self: flex-start;
  margin-top: 10px;
  font-family: var(--mono); font-size: 11px;
  color: var(--text-faint);
  text-decoration: underline; text-underline-offset: 3px;
}
.ds-again:hover { color: var(--text-dim); }

@media (max-width: 760px) {
  .ds-msg { max-width: 95%; }
  .db-k { flex-basis: 92px; }
  .ds-text { flex-direction: column; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot {
  border-top: 1px solid var(--line);
  padding: clamp(44px, 6vw, 72px) max(var(--gutter), calc((100% - var(--maxw)) / 2)) 36px;
}
.site-foot {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) auto auto auto;
  column-gap: clamp(32px, 5vw, 90px);
  row-gap: 44px;
}
.foot-brand { max-width: 380px; }
.foot-mission { margin: 18px 0 22px; color: var(--text-dim); font-size: 14.5px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-head {
  font-family: var(--mono);
  font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.foot-col a { font-size: 14px; color: var(--text-dim); transition: color .25s; }
.foot-col a:hover { color: var(--text); }
@media (max-width: 760px) {
  .site-foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
.foot-bottom {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  font-size: 13px; color: var(--text-faint);
}
.foot-status { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--text-faint); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .brains-grid, .approval-grid, .phone-grid { grid-template-columns: 1fr; }
  .brain-note { position: relative; right: auto; bottom: auto; margin: 18px 0 0 auto; }
  .phone-mock { margin-top: 10px; }
  .org-depts { grid-template-columns: repeat(2, 1fr); }
  .org-spread::before { left: 25%; right: 25%; }
  .org-spread i:nth-child(1) { left: 25%; }
  .org-spread i:nth-child(2) { left: 75%; }
  .org-spread i:nth-child(3), .org-spread i:nth-child(4) { display: none; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .who-row, .family { grid-template-columns: 1fr; }
  .who-cell + .who-cell { border-left: 0; border-top: 1px solid var(--line-strong); padding: 26px 0 8px; margin-top: 18px; }
  .who-cell { padding-right: 0; }
  .family-item + .family-item { border-left: 0; padding-left: 0; }
  .aw-body { grid-template-columns: 148px 1fr; }
  .aw-msg { max-width: 95%; }
  .aw-stat { padding: 8px 12px; }
  .aw-stat b { font-size: 13px; }
}

@media (max-width: 760px) {
  .demo { height: 330vh; }
  .demo-stage { height: clamp(380px, 50vh, 460px); font-size: 12px; }
  .demo-anno { font-size: 10.5px; max-width: 150px; }
  .da-1 { margin-left: -75px; top: 4%; }
  .da-2 { margin-left: -75px; top: 4%; }
  .da-3 { margin-left: -110px; top: 4%; max-width: 220px; }
  .demo-draft { width: 200px; left: 50%; margin-left: -100px; top: 67%; font-size: 11px; }
  .demo-chip { max-width: 230px; font-size: 10.5px; padding: 9px 13px; }
  .demo-chip .chip-req { white-space: normal; display: block; width: 200px; }
  .demo-node { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  /* keep the button + stamp out of the draft card's lane on small screens */
  .demo-approve { left: 50%; top: auto; bottom: 0; padding: 11px 20px; font-size: 13px; }
  .demo-approve:not(.ready) { opacity: 0; pointer-events: none; }
  .demo-stamp { left: 50%; top: auto; bottom: 1%; transform: rotate(-3deg) translateX(-50%) scale(.7); }
  .demo-stamp.on { transform: rotate(-3deg) translateX(-50%) scale(1); }
  .flow-link { min-width: 10px; }
  .flow-node { padding: 10px 14px; font-size: 13px; }
  .aw-side { display: none; }
  .aw-body { grid-template-columns: 1fr; min-height: 320px; }
  .hero-sub { flex-direction: column; align-items: flex-start; }
  .ledger-row { grid-template-columns: 1fr auto; }
  .lr-name { grid-column: 1 / -1; }
  .lr-playbook { grid-column: 1 / -1; }
  .org-depts { grid-template-columns: 1fr; gap: 10px; }
  .org-spread { display: none; }
  .org-stem i { height: 22px; }
  .orgchart .org-tier + .org-depts { margin-top: 14px; }
  .ins-stats { font-size: 11px; }
  .ins-stat { padding: 7px 10px; }
}

/* ============================================================
   REDUCED MOTION — everything lands in its final state
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .demo { height: auto; }
  .demo-pin { position: static; min-height: 0; }
  .demo-chip, .demo-anno, .demo-draft, .demo-stamp { opacity: 1; transform: none; }
  .demo-chip { --cx: 56; }
  .demo-approve { opacity: 1; pointer-events: auto; }
  .qr rect { opacity: 1; }
}
