/* Phosigil website — styles.
   Tokens come from docs/brand/phosigil (PHOSIGIL-UI-BRIEF.md section 4, reference-ui/phosigil-tokens.css).
   Light is the default; dark follows the OS or <html data-theme="dark">. */

/* ---------- fonts (self-hosted, OFL) ---------- */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Sora-Regular.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Sora-Medium.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Sora-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Sora-Bold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/IBMPlexMono-Medium.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
  --font-ui: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px;
  --dur-fast: 120ms; --dur-base: 200ms; --dur-slow: 320ms;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-emph: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --sol-duration: 7s;

  --ink: #0B1020;
  --bone: #F4F1EA;
  --gold: #F2B53A;

  /* semantic: light */
  --bg: #F4F1EA;
  --bg-2: #EFEBE2;
  --surface: #FFFFFF;
  --surface-2: #FBFAF7;
  --border: #E2DDD2;
  --border-strong: #CFC8B8;
  --text: #0B1020;
  --text-muted: #545C72;
  --text-subtle: #626A7F;
  --primary: #0B1020;
  --primary-hover: #232B45;
  --primary-pressed: #384057;
  --on-primary: #F4F1EA;
  --accent: #B27409;
  --accent-text: #8C5A07;
  --accent-soft: rgba(178, 116, 9, .10);
  --ring: rgba(178, 116, 9, .25);
  --logo-ink: #0B1020;
  --logo-spark: #B27409;
  --good: #0E7351; --good-soft: rgba(14, 115, 81, .10);
  --warn: #A64A0C; --warn-soft: rgba(166, 74, 12, .10);
  --bad: #C42B33; --bad-soft: rgba(196, 43, 51, .09);
  --info: #1B62BD; --info-soft: rgba(27, 98, 189, .09);
  --shadow: 0 1px 2px rgba(11, 16, 32, .06), 0 12px 32px rgba(11, 16, 32, .08);
  --shadow-lg: 0 2px 4px rgba(11, 16, 32, .08), 0 24px 56px rgba(11, 16, 32, .14);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1020; --bg-2: #0E1428; --surface: #111729; --surface-2: #172036;
    --border: #232B45; --border-strong: #33405F;
    --text: #F4F1EA; --text-muted: #9AA3B8; --text-subtle: #7C859D;
    --primary: #F2B53A; --primary-hover: #F6C65C; --primary-pressed: #DE9A1C; --on-primary: #0B1020;
    --accent: #F2B53A; --accent-text: #F6C65C; --accent-soft: rgba(242, 181, 58, .12); --ring: rgba(242, 181, 58, .3);
    --logo-ink: #F4F1EA; --logo-spark: #F2B53A;
    --good: #3DD68C; --good-soft: rgba(61, 214, 140, .12);
    --warn: #FF8A4C; --warn-soft: rgba(255, 138, 76, .12);
    --bad: #FF6B6B; --bad-soft: rgba(255, 107, 107, .13);
    --info: #6CB4FF; --info-soft: rgba(108, 180, 255, .12);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .5), 0 24px 56px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1020; --bg-2: #0E1428; --surface: #111729; --surface-2: #172036;
  --border: #232B45; --border-strong: #33405F;
  --text: #F4F1EA; --text-muted: #9AA3B8; --text-subtle: #7C859D;
  --primary: #F2B53A; --primary-hover: #F6C65C; --primary-pressed: #DE9A1C; --on-primary: #0B1020;
  --accent: #F2B53A; --accent-text: #F6C65C; --accent-soft: rgba(242, 181, 58, .12); --ring: rgba(242, 181, 58, .3);
  --logo-ink: #F4F1EA; --logo-spark: #F2B53A;
  --good: #3DD68C; --good-soft: rgba(61, 214, 140, .12);
  --warn: #FF8A4C; --warn-soft: rgba(255, 138, 76, .12);
  --bad: #FF6B6B; --bad-soft: rgba(255, 107, 107, .13);
  --info: #6CB4FF; --info-soft: rgba(108, 180, 255, .12);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .5), 0 24px 56px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: 48px; line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: 32px; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
h4 { font-size: 16px; font-weight: 600; letter-spacing: 0; }
p, ul, ol { margin: 0 0 16px; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
code, kbd, .mono { font-family: var(--font-mono); font-size: .92em; }
code { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1px 6px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: var(--r-sm); }
::selection { background: var(--accent-soft); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md); color: var(--text); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block; }
  :root:not([data-theme="light"]) .only-light { display: none; }
}

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 820px; }
.wrap--mid { max-width: 980px; }

.eyebrow {
  display: block; margin: 0 0 12px; color: var(--accent-text);
  font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
}
.lead { font-size: 18px; line-height: 1.55; color: var(--text-muted); max-width: 60ch; }
.muted { color: var(--text-muted); }
.small { font-size: 14px; line-height: 1.5; }
.caption { font-size: 12px; line-height: 1.45; color: var(--text-muted); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--text); --b-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: var(--r-md);
  border: 1px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg);
  font: 600 14px/1 var(--font-ui); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.btn:hover { --b-bg: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { --b-bg: var(--primary); --b-fg: var(--on-primary); --b-bd: transparent; }
.btn--primary:hover { --b-bg: var(--primary-hover); }
.btn--primary:active { --b-bg: var(--primary-pressed); }
.btn--ghost { --b-bg: transparent; --b-bd: transparent; }
.btn--ghost:hover { --b-bg: var(--accent-soft); }
.btn--lg { min-height: 48px; padding: 0 20px; font-size: 15px; }
.btn--sm { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* On the Ink band, buttons use the dark pair whatever the theme. */
.band--ink .btn { color: var(--b-fg); }
.band--ink .btn--primary { --b-bg: var(--gold); --b-fg: var(--ink); }
.band--ink .btn--primary:hover { --b-bg: #F6C65C; }
.band--ink .btn--primary:active { --b-bg: #DE9A1C; }
.band--ink .btn:not(.btn--primary) { --b-bg: transparent; --b-fg: var(--bone); --b-bd: #33405F; }
.band--ink .btn:not(.btn--primary):hover { --b-bg: rgba(242, 181, 58, .12); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; flex: none; padding: 8px 0; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: 14px; text-decoration: none; transition: background-color var(--dur-fast) var(--ease); }
.nav a:hover { background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--accent-text); font-weight: 600; }
.nav .btn { margin-left: 8px; }
.nav a.btn { color: var(--b-fg); }
.nav a.btn:hover { background: var(--b-bg); }
.nav-toggle { display: none; margin-left: auto; width: 40px; height: 40px; padding: 0; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; margin: auto; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.nav-toggle[aria-expanded="true"] .i-menu { display: none; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; }
.theme-toggle:hover { background: var(--accent-soft); color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 24px 20px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 12px; font-size: 16px; }
  .nav .btn { margin: 8px 0 0; }
  .nav .theme-toggle { align-self: flex-start; }
}

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 12px; }
.section-head .lead { margin: 0; }
.band--ink { background: var(--ink); color: var(--bone); }
.band--ink .muted { color: #9AA3B8; }
.band--ink a { color: #F6C65C; }
.band--ink .eyebrow { color: #F6C65C; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 28px; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.hero-visual { position: relative; }
.hero-visual .shot { margin: 0; }
.page-hero { padding: 72px 0 40px; }
.page-hero h1 { font-size: 44px; margin-bottom: 16px; }
.page-hero .lead { margin: 0; }
.page-hero--center { text-align: center; }
.page-hero--center .lead { margin: 0 auto; }

/* ---------- screenshots ---------- */
.shot { margin: 0; }
.shot img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.shot figcaption { margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.shot--plain img { box-shadow: none; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.card h3, .card .h3 { margin-bottom: 10px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.card p { color: var(--text-muted); font-size: 15px; }
.card ul { padding-left: 18px; color: var(--text-muted); font-size: 15px; }
.card li + li { margin-top: 6px; }
.card--flat { background: transparent; }
.card .icon-badge { margin-bottom: 16px; }
.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-text); }
.icon-badge svg { width: 20px; height: 20px; }
.band--ink .card { background: #111729; border-color: #232B45; }
.band--ink .card p, .band--ink .card ul { color: #9AA3B8; }
.band--ink .icon-badge { background: rgba(242, 181, 58, .12); color: #F6C65C; }

/* pillars */
.pillar { position: relative; padding-top: 28px; }
.pillar .step-n { position: absolute; top: 24px; right: 24px; font: 500 12px/1 var(--font-mono); letter-spacing: .14em; color: var(--text-subtle); }
.pillar h3 { font-size: 22px; }

/* feature list (icon + text) */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.feature-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.feature-list h3 { margin-bottom: 4px; font-size: 16px; letter-spacing: 0; }
.feature-list p { color: var(--text-muted); font-size: 15px; margin: 0; }

/* split layout */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.split--reverse > :first-child { order: 2; }
.split h2 { margin-bottom: 16px; }
.split .lead { margin-bottom: 20px; }
.split ul { padding-left: 20px; }
.split li + li { margin-top: 8px; }

/* steps */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px; color: var(--accent-text); font: 500 12px/1 var(--font-mono); letter-spacing: .14em; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--text-muted); font-size: 15px; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 20px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.stat b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--text-muted); }

/* comparison table */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; font-size: 15px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.compare thead th { border-top: 0; background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--text-muted); }
.compare tbody th { font-weight: 600; width: 26%; }
.compare td { color: var(--text-muted); }
.compare td.you { color: var(--text); }
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
.table-wrap .compare { min-width: 640px; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); white-space: nowrap; }
.badge--good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.badge--info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge--accent { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* framework strip */
.frameworks { display: flex; flex-wrap: wrap; gap: 10px; }
.frameworks li { list-style: none; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); font-size: 14px; font-weight: 500; }
.frameworks { padding: 0; margin: 0; }

/* note / callout */
.note { padding: 16px 20px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-md); background: var(--surface); font-size: 15px; }
.note p { margin: 0; }
.note--muted { border-left-color: var(--border-strong); color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band { padding: 80px 0; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.cta-band h2 { margin-bottom: 14px; font-size: 36px; }
.cta-band .lead { color: #9AA3B8; margin-bottom: 24px; }
.cta-band .sol-wrap { max-width: 460px; margin-left: auto; }
.cta-band .sol-wrap svg { width: 100%; height: auto; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: 22px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); max-width: 32ch; }
.site-footer h3 { margin-bottom: 12px; font-size: 13px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer li a { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.site-footer li a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
.footer-bottom .mono { font-size: 12px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-md);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: 400 16px/1.4 var(--font-ui);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23545C72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--bad); }
.field .error { font-size: 12px; color: var(--bad); }
.form-status { padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); font-size: 14px; }
.form-status--ok { border-color: var(--good); background: var(--good-soft); color: var(--text); }
.form-status--bad { border-color: var(--bad); background: var(--bad-soft); color: var(--text); }
.turnstile-slot { min-height: 65px; }

/* contact layout */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: start; }
.contact-aside .card + .card { margin-top: 16px; }
.contact-aside dl { margin: 0; display: grid; gap: 10px; }
.contact-aside dt { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: none; }
.contact-aside dd { margin: 0; }

/* ---------- prose (legal, security) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 24px; margin: 48px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0 24px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--border); }
.prose thead th { border-top: 0; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.prose .meta { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.prose .meta b { color: var(--text); font-weight: 600; }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.doc-toc { position: sticky; top: 88px; }
.doc-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); display: grid; gap: 2px; }
.doc-toc a { display: block; padding: 6px 14px; color: var(--text-muted); font-size: 14px; text-decoration: none; border-left: 2px solid transparent; margin-left: -1px; }
.doc-toc a:hover { color: var(--text); border-left-color: var(--border-strong); }
.doc-toc .eyebrow { margin-bottom: 10px; }

/* vendor table on /security */
.vendors { display: grid; gap: 12px; }
.vendor { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 1.3fr); gap: 16px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); font-size: 14px; }
.vendor .v-name { font-weight: 600; }
.vendor .v-when { display: block; margin-top: 4px; font-size: 12px; color: var(--text-muted); }
.vendor .v-purpose { color: var(--text-muted); }
.vendor .v-certs { color: var(--text-muted); font-size: 13px; }
.vendor .v-certs .eyebrow { margin-bottom: 6px; font-size: 11px; }
.vendor .v-certs a { font-size: 12px; }
.vendor-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 1.3fr); gap: 16px; padding: 0 20px 6px; font-size: 12px; font-weight: 600; color: var(--text-muted); }

/* egress table */
.egress { width: 100%; border-collapse: collapse; font-size: 14px; }
.egress th, .egress td { text-align: left; vertical-align: top; padding: 12px 12px; border-top: 1px solid var(--border); }
.egress thead th { border-top: 0; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.egress td:first-child { font-weight: 600; white-space: nowrap; }
.egress .mono { font-size: 12.5px; color: var(--text-muted); }

/* pricing */
.price-card { padding: 32px; }
.price-card .h3 { font-size: 24px; margin-bottom: 8px; }
.price-card .price { font-size: 32px; font-weight: 700; letter-spacing: -.01em; margin: 16px 0 4px; }
.price-card .price small { display: block; margin-top: 8px; font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 15px; }
.check-list svg { width: 20px; height: 20px; color: var(--good); margin-top: 2px; }
.card .check-list li { color: var(--text); }

/* 404 */
.err-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.err-page .ill { width: 160px; margin: 0 auto 24px; color: var(--text-muted); }
.err-page .ill .ill-accent { fill: var(--accent); }
.ill .ill-accent { fill: var(--accent); }

/* ---------- Seal of Light (kit motion, plays once) ---------- */
.sol { overflow: visible; }
.sol .sol-ink { fill: var(--logo-ink); }
.sol .sol-spark, .sol .sol-particles { fill: var(--logo-spark); }
.sol .sol-dash { fill: none; stroke: var(--logo-ink); }
.sol .sol-shock { fill: none; stroke: var(--logo-spark); stroke-width: 12; opacity: 0; }
.sol .sol-glow { opacity: 0; }
.sol .sol-dashg, .sol .sol-particles { display: none; }
.sol .sol-spark, .sol .sol-L, .sol .sol-glow, .sol .sol-shock, .sol .sol-particles circle { transform-box: fill-box; transform-origin: center; }
.band--ink .sol { --logo-ink: #F4F1EA; --logo-spark: #F2B53A; }
.sol.is-animated .cam { animation: sol-camera var(--sol-duration) 1; }
.sol.is-animated .sol-dashg, .sol.is-animated .sol-particles { display: inline; }
.sol.is-animated .sol-dash { animation: sol-dash var(--sol-duration) 1; }
.sol.is-animated .sol-ring { animation: sol-ring var(--sol-duration) 1; }
.sol.is-animated .sol-particles circle { opacity: 0; animation: sol-particle var(--sol-duration) 1; animation-delay: var(--dl); }
.sol.is-animated .sol-spark-o { animation: sol-spark-o var(--sol-duration) 1; }
.sol.is-animated .sol-glow-o { animation: sol-glow-o var(--sol-duration) 1; }
.sol.is-animated .sol-shock { animation: sol-shock var(--sol-duration) 1; }
.sol.is-animated .q1 { animation: sol-q1 var(--sol-duration) 1; }
.sol.is-animated .q2 { animation: sol-q2 var(--sol-duration) 1; }
.sol.is-animated .q3 { animation: sol-q3 var(--sol-duration) 1; }
.sol.is-animated .q4 { animation: sol-q4 var(--sol-duration) 1; }
.sol.is-animated .q5 { animation: sol-q5 var(--sol-duration) 1; }
.sol.is-animated .lt { --dx: 28%; }
.sol.is-animated .rt { --dx: -28%; }
.sol.is-animated .sol-spark-i { animation: sol-spark-i var(--sol-duration) 1; }
.sol.is-animated .sol-glow-i { animation: sol-glow-i var(--sol-duration) 1; }
@keyframes sol-camera { 0%, 50% { transform: translateX(9.7%); animation-timing-function: cubic-bezier(.65, 0, .35, 1); } 66%, 100% { transform: translateX(0); } }
@keyframes sol-dash {
  0% { opacity: 0; stroke-width: 36; stroke-dasharray: 5 7.5; }
  6% { opacity: 1; stroke-width: 36; stroke-dasharray: 5 7.5; }
  34% { opacity: 1; stroke-width: 36; stroke-dasharray: 5 7.5; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  46% { opacity: 1; stroke-width: 110; stroke-dasharray: 12.5 0; }
  48% { opacity: 1; stroke-width: 110; stroke-dasharray: 12.5 0; }
  51%, 100% { opacity: 0; stroke-width: 110; stroke-dasharray: 12.5 0; }
}
@keyframes sol-ring { 0%, 46% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes sol-particle {
  0% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1); animation-timing-function: cubic-bezier(.5, 0, .75, 0); }
  5% { opacity: 1; }
  32% { opacity: 1; transform: translate(0px, 0px) scale(.3); }
  34%, 100% { opacity: 0; transform: translate(0px, 0px) scale(.1); }
}
@keyframes sol-spark-o {
  0%, 8% { opacity: 0; transform: scale(0) rotate(-180deg); }
  10% { opacity: 1; transform: scale(.04) rotate(-170deg); }
  44% { opacity: 1; transform: scale(.32) rotate(-60deg); animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
  54%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes sol-glow-o { 0%, 44% { opacity: 0; transform: scale(.5); } 52% { opacity: .55; transform: scale(1.1); } 72%, 100% { opacity: 0; transform: scale(1); } }
@keyframes sol-shock { 0%, 45% { opacity: 0; transform: scale(1); } 46% { opacity: .85; animation-timing-function: cubic-bezier(.2, .8, .2, 1); } 66%, 100% { opacity: 0; transform: scale(1.8); } }
@keyframes sol-q1 { 0%, 52% { opacity: 0; transform: translateX(var(--dx)); animation-timing-function: cubic-bezier(.2, .8, .2, 1); } 60%, 100% { opacity: 1; transform: translateX(0); } }
@keyframes sol-q2 { 0%, 55% { opacity: 0; transform: translateX(var(--dx)); animation-timing-function: cubic-bezier(.2, .8, .2, 1); } 63%, 100% { opacity: 1; transform: translateX(0); } }
@keyframes sol-q3 { 0%, 58% { opacity: 0; transform: translateX(var(--dx)); animation-timing-function: cubic-bezier(.2, .8, .2, 1); } 66%, 100% { opacity: 1; transform: translateX(0); } }
@keyframes sol-q4 { 0%, 61% { opacity: 0; transform: translateX(var(--dx)); animation-timing-function: cubic-bezier(.2, .8, .2, 1); } 69%, 100% { opacity: 1; transform: translateX(0); } }
@keyframes sol-q5 { 0%, 64% { opacity: 0; transform: translateX(var(--dx)); animation-timing-function: cubic-bezier(.2, .8, .2, 1); } 72%, 100% { opacity: 1; transform: translateX(0); } }
@keyframes sol-spark-i {
  0%, 69% { opacity: 0; transform: scale(0) rotate(-120deg); }
  70% { opacity: 1; animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
  78%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes sol-glow-i { 0%, 69% { opacity: 0; transform: scale(.5); } 75% { opacity: .5; transform: scale(1.05); } 88%, 100% { opacity: 0; transform: scale(1); } }

/* ---------- reveal on scroll (subtle, 8 px) ---------- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .sol.is-animated .cam, .sol.is-animated .sol-L, .sol.is-animated .sol-spark, .sol.is-animated .sol-dash, .sol.is-animated .sol-ring { animation: none !important; opacity: 1; transform: none; }
  .sol.is-animated .sol-dashg, .sol.is-animated .sol-particles, .sol.is-animated .sol-shock, .sol.is-animated .sol-glow { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  h1 { font-size: 40px; }
  .page-hero h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .split, .split--reverse { grid-template-columns: 1fr; gap: 28px; }
  .split--reverse > :first-child { order: 0; }
  .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cta-band .wrap { grid-template-columns: 1fr; }
  .cta-band .sol-wrap { margin: 0; max-width: 360px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .prose table { display: block; overflow-x: auto; }
  .doc-toc { position: static; }
  .doc-toc ul { display: flex; flex-wrap: wrap; border-left: 0; gap: 4px; }
  .doc-toc a { border: 1px solid var(--border); border-radius: var(--r-pill); margin: 0; padding: 6px 12px; font-size: 13px; }
  .vendor, .vendor-head { grid-template-columns: 1fr; gap: 8px; }
  .vendor-head { display: none; }
  .vendor .v-certs { padding-top: 8px; border-top: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 34px; }
  .page-hero h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  .lead { font-size: 16px; }
  .section { padding: 48px 0; }
  .grid--2, .grid--4, .stats { grid-template-columns: 1fr; }
  .form-2col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-band h2 { font-size: 28px; }
  .btn-row .btn { flex: 1 1 auto; }
  .nav { padding: 12px 16px 20px; }
}

/* =====================================================================
   Depth and scroll layer (home + product)
   Everything below is driven by two numbers: --scroll (page progress) and
   --vp (an element's own view progress, 0 to 1). Both come from CSS
   scroll-driven animations where the browser has them, and from site.js
   (IntersectionObserver + rAF) where it does not. Reduced motion pins every
   value to its final state and removes the sticky stage.
   ===================================================================== */
@property --vp { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --scroll { syntax: "<number>"; inherits: false; initial-value: 0; }
@keyframes vp-run { from { --vp: 0; } to { --vp: 1; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* scroll progress indicator */
.scroll-progress { position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--scroll, 0)); pointer-events: none; }

@supports (animation-timeline: view()) {
  .scroll-progress { animation: grow-x linear both; animation-timeline: scroll(root); }
  [data-vp] { view-timeline: --vp-src block; --vp-range: cover 0% cover 50%; }
  [data-vp="contain"] { --vp-range: contain 0% contain 100%; }
  [data-vp="full"] { --vp-range: cover 0% cover 100%; }
  [data-vp="entry"] { --vp-range: entry 0% entry 100%; }
  .uses-vp { animation: vp-run linear both; animation-timeline: --vp-src; animation-range: var(--vp-range, cover 0% cover 50%); }
}
@supports not (animation-timeline: view()) {
  .no-js .uses-vp { --vp: 1; }
}

/* =====================================================================
   Product scenes: the product drawn in HTML with the brand tokens (no
   screenshots). Each scene sits in a .scene-box container and scales its
   type with the box width, so the same markup works in the hero, in the
   pinned stage, beside copy on /product and stacked on a phone.
   ===================================================================== */
.scene-box { container-type: inline-size; width: 100%; }
.scene { --fs: clamp(10px, 2.15cqw, 14px); position: relative; font-size: var(--fs); line-height: 1.45; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; color: var(--text); text-align: left; }
.scene b, .scene strong { font-weight: 600; }
.scene p { margin: 0; }
.scene ul, .scene ol { margin: 0; padding: 0; list-style: none; }
.sc-eyebrow { display: inline-flex; align-items: center; gap: .5em; margin: 0 0 .35em; color: var(--accent-text); font: 500 .8em/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.sc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1em; padding: 1.3em 1.5em 1em; border-bottom: 1px solid var(--border); }
.sc-head b { display: block; font-size: 1.15em; letter-spacing: -.01em; }
.sc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; padding: 1em 1.5em 1.3em; border-top: 1px solid var(--border); background: var(--surface-2); }
.sc-body { padding: 1.2em 1.5em 1.3em; }
.tag { display: inline-flex; align-items: center; gap: .4em; height: 1.75em; padding: 0 .7em; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: .86em; font-weight: 600; white-space: nowrap; }
.tag--warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tag--good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.tag--accent { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.tag--ink { background: rgba(242, 181, 58, .14); color: #F6C65C; border-color: transparent; }
.tag.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; }
.live-dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 var(--good-soft); animation: live 1.4s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 45%, transparent); } 70% { box-shadow: 0 0 0 .5em transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* funnel */
.funnel { display: grid; gap: .7em; padding: 1.3em 1.5em; }
.funnel li { display: grid; grid-template-columns: 6.5em 1fr 4em; align-items: center; gap: .9em; font-size: 1em; }
.funnel li span { color: var(--text-muted); font-weight: 500; }
.funnel li i { display: block; height: 1.3em; border-radius: 4px; background: var(--c); transform-origin: 0 50%; transform: scaleX(calc(var(--w) * var(--grow, 1))); transition: transform 600ms var(--ease); min-width: 4px; }
.funnel li b { text-align: right; }

/* lesson */
.sc-ink { display: flex; align-items: center; gap: .9em; padding: 1.1em 1.5em; background: var(--ink); color: var(--bone); }
.sc-ink img { width: 1.9em; height: 1.9em; flex: none; }
.sc-ink div { flex: 1; min-width: 0; }
.sc-ink b { display: block; font-size: 1.05em; }
.sc-ink span { display: block; font-size: .86em; color: #9AA3B8; }
.sc-q { font-size: 1.05em; font-weight: 600; margin-bottom: .9em !important; max-width: 46ch; }
.sc-options { display: grid; gap: .5em; }
.sc-options li { padding: .65em .9em; border: 1px solid var(--border); border-radius: var(--r-md); color: var(--text-muted); }
.sc-options li.is-picked { border-color: var(--good); background: var(--good-soft); color: var(--text); font-weight: 600; }
.sc-options li.is-picked::after { content: "Correct"; float: right; color: var(--good); font-size: .86em; }
.sc-progress { height: .4em; margin: 1.1em 0; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.sc-progress i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--accent); border-radius: 999px; }
.sc-rule { display: flex; flex-wrap: wrap; align-items: center; gap: .45em; font-size: .92em; color: var(--text-muted); }
.sc-arrow { color: var(--text-subtle); }

/* evidence + posture tables */
.sc-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .95em; }
.sc-table th, .sc-table td { text-align: left; padding: .7em 1em .7em 1.5em; border-top: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
.sc-table th:first-child, .sc-table td:first-child { width: 31%; }
.sc-table th:nth-child(2), .sc-table td:nth-child(2) { width: 24%; }
.sc-table thead th { border-top: 0; background: var(--surface-2); font-size: .82em; font-weight: 600; color: var(--text-muted); padding-top: .6em; padding-bottom: .6em; }
.sc-table td:first-child { font-weight: 600; }
.sc-table td.mono { color: var(--text-muted); font-size: .9em; }
.sc-table td:last-child { color: var(--text-muted); }
.sc-foot--status { justify-content: flex-start; }
.sc-status { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; }
.sc-status svg { width: 1.2em; height: 1.2em; }
.sc-status.is-good { color: var(--good); }
.sc-posture li { display: grid; grid-template-columns: 11em 1fr auto; gap: 1em; align-items: center; padding: .75em 1.5em; border-top: 1px solid var(--border); }
.sc-posture li:first-child { border-top: 0; }
.sc-posture span { color: var(--text-muted); font-weight: 500; }
.sc-posture em { font-style: normal; font-weight: 600; color: var(--text-muted); }
.sc-posture em.is-good { color: var(--good); }
.sc-posture em.is-warn { color: var(--warn); }

/* updates */
.sc-checks { display: grid; gap: .6em; padding: 1.2em 1.5em; }
.sc-checks li { display: flex; align-items: center; gap: .7em; color: var(--text-muted); }
.sc-checks svg { width: 1.3em; height: 1.3em; flex: none; color: var(--text-subtle); }
.sc-checks li.is-good { color: var(--text); }
.sc-checks li.is-good svg { color: var(--good); }
.sc-btn { display: inline-flex; align-items: center; height: 2.6em; padding: 0 1.1em; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; font-size: .95em; }
.sc-btn--primary { background: var(--primary); color: var(--on-primary); border-color: transparent; }

/* certificate */
.scene--cert { background: var(--bone); color: var(--ink); border-color: #CFC8B8; }
.cert { position: relative; padding: 1.6em 1.8em 1.3em; border: 1px solid #CFC8B8; margin: .7em; border-radius: 10px; display: grid; gap: .5em; }
.cert-org { display: flex; align-items: center; gap: .6em; font-weight: 600; font-size: .95em; margin-bottom: .6em; }
.cert-mono, .cert-seal { display: inline-grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: #0B1020; color: #F4F1EA; font: 700 .8em/1 var(--font-ui); letter-spacing: .04em; }
.cert .sc-eyebrow { color: #8C5A07; }
.cert-name { font-size: 2em; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.cert p { color: #2A3146; max-width: 44ch; }
.cert-sign { display: flex; justify-content: space-between; align-items: flex-end; gap: 1em; margin-top: 1.2em; padding-top: .9em; border-top: 1px solid #CFC8B8; font-size: .82em; color: #545C72; }
.cert-sign > div { display: grid; gap: .3em; }
.cert-sign > div:last-child { text-align: right; justify-items: end; }
.cert-sig { font: italic 600 1.6em/1 Georgia, "Times New Roman", serif; color: #0B1020; }
.cert small { font-size: .74em; color: #626A7F; }

/* ---------- hero scene (mail → click → teachable moment) ---------- */
.hero-scene { position: relative; max-width: 560px; margin: 0 auto; }
.hs { position: relative; aspect-ratio: 560 / 470; font-size: clamp(10px, 2.3cqw, 14px); }
.hs-mail, .hs-teach, .hs-kpi { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.hs-mail { left: 0; top: 0; width: 82%; padding: 1.4em 1.6em 1.3em; }
.hs-mail-top { display: grid; grid-template-columns: auto 1fr auto; gap: .8em; align-items: center; margin-bottom: 1em; }
.hs-avatar { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: #1B62BD; color: #fff; font-weight: 700; font-size: .95em; }
.hs-from { display: grid; min-width: 0; }
.hs-from b { font-size: 1em; }
.hs-from .mono { font-size: .82em; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-mail time { font-size: .82em; color: var(--text-muted); }
.hs-subject { font-size: 1.15em; font-weight: 600; letter-spacing: -.01em; margin-bottom: .6em; }
.hs-mail p { font-size: .95em; color: var(--text-muted); margin: 0 0 .9em; }
.hs-link { display: inline-flex; flex-direction: column; gap: .15em; padding: .55em 1em; border-radius: 8px; background: #1B62BD; color: #fff; font-weight: 600; font-size: .95em; }
.hs-link .mono { font-size: .72em; font-weight: 400; opacity: .85; }
.hs-sig { font-size: .78em !important; margin: 1em 0 0 !important; color: var(--text-subtle) !important; }
.hs-cursor { position: absolute; width: 1.6em; height: 1.6em; left: 62%; top: 78%; opacity: 0; filter: drop-shadow(0 2px 2px rgba(11, 16, 32, .3)); }
.hs-ripple { position: absolute; left: 22%; top: 72%; width: 2.4em; height: 2.4em; margin: -1.2em 0 0 -1.2em; border-radius: 50%; border: 2px solid var(--warn); opacity: 0; transform: scale(.3); }
.hs-teach { right: 0; top: 20%; width: 78%; opacity: 0; transform: translateY(2.5em); }
.hs-teach-top { display: flex; align-items: center; gap: .9em; padding: 1.1em 1.4em; background: var(--ink); color: var(--bone); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.hs-teach-top img { width: 2em; height: 2em; flex: none; }
.hs-teach-top b { display: block; font-size: 1.05em; }
.hs-teach-top span { display: block; font-size: .82em; color: #9AA3B8; }
.hs-teach-body { padding: 1.1em 1.4em 1.2em; }
.hs-flags { display: grid; gap: .55em; margin-bottom: 1em !important; }
.hs-flags li { display: grid; grid-template-columns: 1.7em 1fr; gap: .6em; align-items: start; font-size: .95em; opacity: 0; transform: translateX(.6em); }
.hs-flags i { display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--warn-soft); color: var(--warn); font: 600 .8em/1 var(--font-mono); font-style: normal; }
.hs-flags .mono { color: var(--text-muted); font-size: .9em; }
.hs-teach-foot { display: flex; flex-wrap: wrap; gap: .5em; }
.hs-kpi { left: 4%; bottom: 0; width: 46%; padding: 1em 1.2em; opacity: 0; transform: translateY(1.5em); }
.hs-kpi ul { display: grid; grid-template-columns: 1fr 1fr; gap: .5em 1em; margin-top: .3em; }
.hs-kpi li { display: grid; }
.hs-kpi li span { font-size: .78em; color: var(--text-muted); font-weight: 500; }
.hs-kpi li b { font-size: 1.35em; font-weight: 700; letter-spacing: -.01em; }
.hs-kpi li.is-warn b { color: var(--warn); }
.hs-kpi li.is-good b { color: var(--good); }

/* timeline: 0 mail in · 1.2 cursor · 2.4 click · 2.9 teachable · 3.4 flags · 4.0 kpi */
.hero-scene.is-playing .hs-mail { animation: hs-mail 600ms var(--ease) both; }
.hero-scene.is-playing .hs-cursor { animation: hs-cursor 1.7s var(--ease) .9s both; }
.hero-scene.is-playing .hs-ripple { animation: hs-ripple 700ms var(--ease) 2.4s both; }
.hero-scene.is-playing .hs-mail { animation: hs-mail 600ms var(--ease) both, hs-dim 700ms var(--ease) 2.9s both; }
.hero-scene.is-playing .hs-teach { animation: hs-rise 700ms var(--ease) 2.9s both; }
.hero-scene.is-playing .hs-flags li:nth-child(1) { animation: hs-flag 400ms var(--ease) 3.4s both; }
.hero-scene.is-playing .hs-flags li:nth-child(2) { animation: hs-flag 400ms var(--ease) 3.6s both; }
.hero-scene.is-playing .hs-flags li:nth-child(3) { animation: hs-flag 400ms var(--ease) 3.8s both; }
.hero-scene.is-playing .hs-kpi { animation: hs-rise 600ms var(--ease) 4.1s both; }
.hero-scene.is-done .hs-mail { opacity: .55; transform: scale(.97); }
.hero-scene.is-done .hs-teach, .hero-scene.is-done .hs-kpi, .hero-scene.is-done .hs-flags li { opacity: 1; transform: none; }
.no-js .hero-scene .hs-teach, .no-js .hero-scene .hs-kpi, .no-js .hero-scene .hs-flags li { opacity: 1; transform: none; }
@keyframes hs-mail { from { opacity: 0; transform: translateY(1em); } to { opacity: 1; transform: none; } }
@keyframes hs-dim { to { opacity: .55; transform: scale(.97); } }
@keyframes hs-cursor { 0% { opacity: 0; left: 62%; top: 78%; } 15% { opacity: 1; } 75% { left: 24%; top: 73%; transform: none; } 85% { transform: scale(.85); } 100% { opacity: 1; left: 24%; top: 73%; transform: none; } }
@keyframes hs-ripple { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(2.2); } }
@keyframes hs-rise { from { opacity: 0; transform: translateY(2em); } to { opacity: 1; transform: none; } }
@keyframes hs-flag { from { opacity: 0; transform: translateX(.6em); } to { opacity: 1; transform: none; } }

/* ---------- sticky stage: Simulate, Train, Prove ---------- */
.stage { position: relative; height: 320vh; }
.stage-pin { position: sticky; top: 0; height: 100vh; min-height: 640px; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: center; overflow: hidden; }
.stage-copy h2 { margin-bottom: 28px; }
.stage-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.stage-step { --o: clamp(-1, calc((var(--vp) - var(--c)) * 3), 1); --on: calc(1 - var(--o) * var(--o)); position: relative; padding-left: 16px; }
.stage-step::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--accent); opacity: var(--on); }
.stage-step h3 { color: color-mix(in srgb, var(--text) calc(var(--on) * 100%), var(--text-muted)); }
.stage-step p { color: var(--text-muted); }
.stage-step .eyebrow { margin-bottom: 6px; }
.stage-step h3 { font-size: 22px; margin-bottom: 6px; transition: none; }
.stage-step p { color: var(--text-muted); font-size: 15px; max-width: 42ch; }
.stage-deck { position: relative; aspect-ratio: 1400 / 821; perspective: 1400px; transform-style: preserve-3d; }
.stage-card { position: absolute; inset: 0; margin: 0; container-type: inline-size; transform-style: preserve-3d; --o: clamp(-1, calc((var(--vp) - var(--c)) * 3), 1); --grow: clamp(0, calc((1 - var(--o) * var(--o)) * 1.6), 1);
  transform: translate3d(calc(var(--o) * -46%), calc(var(--o) * -4%), calc(var(--o) * var(--o) * -420px)) rotateY(calc(var(--o) * 22deg)) rotateX(calc(var(--o) * var(--o) * 4deg));
  opacity: calc(1 - min(1, var(--o) * var(--o) * 1.5)); will-change: transform, opacity; pointer-events: none; }
.stage-card .scene { box-shadow: var(--shadow-lg); }
.stage-card figcaption { position: absolute; left: 0; right: 0; bottom: -34px; font-size: 13px; color: var(--text-muted); opacity: calc(1 - var(--o) * var(--o) * 4); }
.stage-hint { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-subtle); opacity: calc(1 - var(--vp) * 4); }

/* ---------- data residency: what stays, the one arrow out ---------- */
.egress-scene { position: relative; }
.eg { display: grid; grid-template-columns: minmax(0, 1.6fr) 72px minmax(182px, 1fr); align-items: center; gap: 0 6px; }
.eg-server, .eg-gw { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.eg-server { padding: 18px 20px 16px; }
.eg-server small { display: block; margin-top: 12px; font-size: 12px; color: var(--text-muted); }
.eg-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.eg-chips li { --a: clamp(0, calc((var(--vp) - var(--k) * .07) * 3), 1); display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; font-weight: 600; white-space: nowrap;
  opacity: var(--a); transform: translateY(calc((1 - var(--a)) * 12px)); }
.eg-chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); flex: none; }
.eg-link { display: grid; gap: 6px; text-align: center; }
.eg-link svg { width: 100%; height: 56px; overflow: visible; }
.eg-wire { fill: none; stroke: var(--border-strong); stroke-width: 2; stroke-dasharray: 4 6; }
.eg-flow { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: calc(400px * (1 - clamp(0, calc((var(--vp) - .4) * 2.2), 1))); }
.eg-pkt { fill: var(--accent); offset-path: path("M0 36 C 60 36, 100 36, 160 36"); offset-rotate: 0deg; animation: pkt 2.2s linear infinite; opacity: clamp(0, calc((var(--vp) - .85) * 8), 1); }
@keyframes pkt { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.eg-cap { font: 500 10.5px/1.35 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.eg-gw { --a: clamp(0, calc((var(--vp) - .5) * 3), 1); display: grid; justify-items: center; gap: 6px; padding: 16px 14px; text-align: center; opacity: var(--a); transform: translateY(calc((1 - var(--a)) * 12px)); }
.eg-gw img { width: 28px; height: 28px; }
.eg-gw b { font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.eg-gw > span { font-size: 12px; color: var(--text-muted); }
.eg-carries { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.eg-carries li { font: 500 10.5px/1 var(--font-mono); padding: 4px 7px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); }

/* ---------- how it works: numbered steps joined by a line ---------- */
.steps--line { position: relative; }
.steps--line::before { content: ""; position: absolute; left: 24px; right: 24px; top: 36px; height: 1px; background: var(--border-strong); }
.steps--line li { position: relative; }
.steps--line li::before { position: relative; z-index: 1; display: inline-block; padding-right: 10px; background: var(--surface); }

/* ---------- 3D tilt cards (pointer only; JS sets the transform) ---------- */
.tilt { transform-style: preserve-3d; transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); will-change: transform; }
.tilt.is-tilting { transition: box-shadow var(--dur-base) var(--ease); box-shadow: var(--shadow); }

/* ---------- clip reveals and scroll-tilted figures ---------- */
.reveal--clip { clip-path: inset(0 0 100% 0); transition: clip-path 640ms var(--ease-emph), opacity 640ms var(--ease); }
.reveal--clip.is-in { clip-path: inset(0 0 0 0); }
.no-js .reveal--clip { clip-path: none; }
.vp-tilt { transform: perspective(1200px) rotateX(calc((1 - min(1, var(--vp) * 2)) * 10deg)) translateY(calc((1 - min(1, var(--vp) * 2)) * 24px)); transform-origin: 50% 100%; will-change: transform; }
.vp-rise { transform: translateY(calc((1 - min(1, var(--vp) * 2)) * 28px)); opacity: calc(.2 + .8 * min(1, var(--vp) * 2)); }

/* ---------- count-up numbers ---------- */
.count { font-variant-numeric: tabular-nums; }

/* ---------- reduced motion, small screens, no JS ---------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  [data-vp], .uses-vp { animation: none !important; --vp: 1; }
  .stage-step::before { opacity: 1; }
  .eg-pkt { animation: none; opacity: 1; offset-distance: 50%; }
  .live-dot { animation: none; }
  .reveal--clip { clip-path: none; transition: none; }
  .tilt { transform: none !important; }
  .funnel li i { --grow: 1; }
}
@media (prefers-reduced-motion: reduce), (max-width: 900px) {
  .stage { height: auto; }
  .stage-pin { position: static; height: auto; min-height: 0; display: grid; grid-template-columns: 1fr; gap: 28px; overflow: visible; padding: 0; }
  .stage-step::before { opacity: 1; }
  .stage-deck { aspect-ratio: auto; perspective: none; display: grid; gap: 40px; }
  .stage-card { position: static; transform: none !important; opacity: 1 !important; }
  .stage-card figcaption { position: static; margin-top: 10px; opacity: 1; }
  .stage-hint { display: none; }
}
@media (max-width: 900px) {
  .stage-card { position: relative; container-type: inline-size; }
  .stage-card .scene { --grow: 1; }
  .steps--line::before { display: none; }
  .eg { grid-template-columns: 1fr; justify-items: stretch; gap: 8px; }
  .eg-link svg { width: 56px; height: 72px; margin: 0 auto; transform: rotate(90deg); }
  .eg-gw { justify-items: start; text-align: left; }
  .eg-carries { justify-content: flex-start; }
  .hero-scene { max-width: 520px; }
}
@media (max-width: 560px) {
  .hs { aspect-ratio: 560 / 520; }
  .hs-mail { width: 90%; }
  .hs-teach { width: 88%; top: 26%; }
  .hs-kpi { width: 58%; }
}

/* =====================================================================
   Home layout (v4) — measured from the reference (1440 container, 48 px
   gutters, rails at 24 px, 72/1.05 display, 48 px buttons with a 42 px
   square, 112 px marquee strip, 100/40 dark band, 4 × 344 anatomy row,
   4 × 332 footer). Brand tokens only; motion in motion.js + keyframes here.
   ===================================================================== */
.wrap { max-width: 1440px; padding: 0 48px; }
.rails { position: relative; }
.rails::before, .rails::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); pointer-events: none; z-index: 1; }
.rails::before { left: max(24px, calc(50% - 696px)); }
.rails::after { right: max(24px, calc(50% - 696px)); }
.lined { background-image: repeating-linear-gradient(to bottom, transparent 0 13px, var(--border) 13px 14px); }
.pill-eyebrow { display: inline-block; margin: 0; padding: 3px 8px; border-radius: 0; background: var(--bg-2); color: var(--text-muted); font: 500 11px/13.2px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.pill-eyebrow + h2, .pill-eyebrow + h3 { margin-top: 16px; }
.section-head .pill-eyebrow, #data .pill-eyebrow { margin-bottom: 16px; }
.band--ink .pill-eyebrow { background: rgba(255, 255, 255, .06); color: #9AA3B8; }
.h-display { font-size: clamp(32px, 3.4vw, 48px); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; max-width: 24ch; text-wrap: balance; }
.h-display--xl { font-size: clamp(36px, 4.45vw, 64px); line-height: 1.05; letter-spacing: -.01em; max-width: 16ch; }
.h-display .muted-line { display: block; font-weight: 400; color: var(--text-muted); margin-top: 6px; letter-spacing: -.01em; }

/* ---------- top bar (28 px) ---------- */
.topbar { background: var(--ink); color: var(--bone); height: 28px; font-size: 12.5px; position: relative; z-index: 51; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 28px; }
.topbar-note { display: inline-flex; align-items: center; gap: 10px; color: var(--bone); text-decoration: none; min-width: 0; }
.topbar-note span:not(.topbar-tag) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-note svg { width: 14px; height: 14px; flex: none; transition: transform 300ms cubic-bezier(0, 0, .2, 1); }
.topbar-note:hover svg { transform: translateX(3px); }
.topbar-tag { padding: 2px 6px; border-radius: 3px; background: rgba(242, 181, 58, .16); color: #F6C65C; font-size: 10.5px; letter-spacing: .1em; }
.topbar-links { display: flex; gap: 20px; flex: none; }
.topbar-links a { color: #D5D9E3; text-decoration: none; font-weight: 500; }
.topbar-links a:hover { color: var(--bone); }

/* ---------- header: glow at the top, white bar once scrolled ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: transparent; border-bottom: 1px solid transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transition: background-color 300ms cubic-bezier(.22, 1, .36, 1), border-color 300ms cubic-bezier(.22, 1, .36, 1); }
.site-header.is-scrolled { background: color-mix(in srgb, var(--surface) 92%, transparent); border-bottom-color: var(--border); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-header .wrap { min-height: 64px; padding: 8px 48px; display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 16px; }
.site-header .nav { margin-left: 0; justify-content: center; grid-column: 2; }
.site-header .nav { display: flex; align-items: center; justify-content: center; gap: 2px; }
.site-header .nav > a, .site-header .nav-item > a { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 14px; line-height: 20px; font-weight: 500; padding: 8px 12px; border-radius: 4px; color: var(--text); }
.site-header .nav { gap: 8px; }
.site-header .nav > a.nav-mobile-only { display: none; }
.nav-right { grid-column: 3; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.nav-right .nav-mail { min-height: 36px; padding: 0 12px; font-size: 14px; letter-spacing: .02em; border-radius: 4px; gap: 6px; }
.btn-dark { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 4px; background: var(--ink); color: var(--bone); font: 600 14px/1 var(--font-ui); letter-spacing: .02em; text-decoration: none; white-space: nowrap; transition: background-color 300ms cubic-bezier(0, 0, .2, 1); }
.btn-dark:hover { background: var(--primary-hover); text-decoration: none; }
.btn-dark svg { width: 14px; height: 14px; }
:root[data-theme="dark"] .btn-dark { background: var(--bone); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-dark { background: var(--bone); color: var(--ink); } }
.nav-right .nav-mail svg { width: 16px; height: 16px; }
.nav-right .theme-toggle { margin-right: 4px; }
.nav-glow { position: absolute; left: 50%; top: -120px; width: min(1100px, 100vw); height: 240px; transform: translateX(-50%); pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse 50% 100% at 50% 0%, color-mix(in srgb, var(--gold) 55%, transparent) 0%, color-mix(in srgb, var(--gold) 28%, transparent) 38%, color-mix(in srgb, var(--gold) 10%, transparent) 62%, transparent 100%); }
.nav-item { position: relative; }
.nav-caret { display: inline-block; width: 14px; height: 14px; margin-left: 2px; flex: none; transition: transform 300ms cubic-bezier(0, 0, .2, 1); color: var(--text-muted); }
.nav-item:hover .nav-caret, .nav-item:focus-within .nav-caret { transform: rotate(180deg); }
.nav-menu { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%) translateY(6px); min-width: 560px; padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 0s linear 160ms; }
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); transition-delay: 0s; }
.nav-menu a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: 14px; }
.nav-menu a:hover { background: var(--accent-soft); }
.nav-menu b { font-weight: 600; }
.nav-menu span { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }

/* ---------- Adaptive-style buttons ---------- */
.band--ink .btn-ad, .band--ink a.btn-ad, :root[data-theme="dark"] .btn-ad { --ad-bg: var(--bone); --ad-fg: var(--ink); color: var(--ink); }
.band--ink .btn-ad .btn-ad-label { color: inherit; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-ad { --ad-bg: var(--bone); --ad-fg: var(--ink); } }
.btn-ad { --sq: 42px; --ad-bg: var(--ink); --ad-fg: var(--bone); position: relative; display: inline-flex; align-items: center; height: 48px; padding: 0 72px 0 24px; border-radius: 8px; background: var(--ad-bg); color: var(--ad-fg); text-decoration: none; font: 600 16px/1.05 var(--font-ui); letter-spacing: .02em; white-space: nowrap; overflow: hidden; isolation: isolate; }
.btn-ad--sm { --sq: 30px; height: 36px; padding: 0 50px 0 16px; font-size: 14px; border-radius: 6px; flex: none; }
.btn-ad-sq { position: absolute; right: 3px; top: 3px; width: var(--sq); height: var(--sq); border-radius: 5px; background: var(--gold); color: var(--ink); display: grid; place-items: center; z-index: 0; transition: all 300ms cubic-bezier(.8, 0, .2, 1); }
.btn-ad-sq svg { width: 18px; height: 18px; position: relative; z-index: 2; }
.btn-ad:hover .btn-ad-sq { right: -2px; top: -2px; width: calc(100% + 4px); height: calc(100% + 4px); border-radius: 0; transition: all 600ms cubic-bezier(.8, 0, .2, 1); }
.btn-ad-sq svg { transform: translateX(0); }
.btn-ad:hover .btn-ad-sq svg { position: absolute; right: calc((var(--sq) - 18px) / 2 + 5px); top: 50%; translate: 0 -50%; }
.btn-ad-label { position: relative; z-index: 1; display: inline-flex; transition: color 1ms linear 0ms; }
.btn-ad:hover .btn-ad-label { color: var(--ink); transition: color 1ms linear 240ms; }
.btn-ad-label .ch { display: inline-block; white-space: pre; }
.btn-ad:hover .btn-ad-label .ch { animation: ch-shimmer .45s cubic-bezier(.42, 0, .2, .99) var(--d, 0ms) both; }
@keyframes ch-shimmer { 0% { opacity: 1; } 45% { opacity: .25; } 100% { opacity: 1; } }
.btn-card { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; height: 48px; padding: 3px 3px 3px 16px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); text-decoration: none; transition: background-color 300ms cubic-bezier(0, 0, .2, 1), border-color 300ms cubic-bezier(0, 0, .2, 1); }
.btn-card:hover { background: var(--surface-2); border-color: var(--text-subtle); text-decoration: none; }
.btn-card > span { display: grid; gap: 3px; line-height: 1.1; }
.btn-card b { font-size: 15px; font-weight: 600; }
.btn-card small { font: 500 9.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.btn-card-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 4px; background: var(--bg-2); flex: none; }
.band--ink .btn-card-ico { background: rgba(255, 255, 255, .06); }
.btn-card svg { width: 20px; height: 20px; color: var(--accent-text); }
.band--ink .btn-card { background: transparent; border-color: #33405F; color: var(--bone); }
.band--ink .btn-card:hover { background: rgba(242, 181, 58, .08); border-color: #556080; }
.band--ink .btn-card small { color: #9AA3B8; }
.band--ink .btn-card svg { color: #F6C65C; }

/* ---------- hero (measured: pt 128, h1 72/75.6 −.72, p 18/27 mt16, cta mt24 gap8, frame mt80) ---------- */
.hero2 { padding: 0; text-align: center; overflow: visible; }
.hero2-copy { padding-top: 112px; padding-bottom: 0; }
.hero2-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; margin: 0 0 32px; font: 500 11.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.hero2-strip span { display: inline-flex; align-items: center; gap: 8px; }
.hero2 h1 { font-size: clamp(38px, 4.45vw, 64px); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; margin: 0 auto; max-width: 900px; }
.hero2-sub { font-size: 18px; line-height: 1.5; letter-spacing: -.01em; color: color-mix(in srgb, var(--text) 75%, transparent); max-width: 590px; margin: 24px auto 0; }
.hero2-cta { display: flex; justify-content: center; align-items: stretch; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.hero2-frame { position: relative; margin-top: 80px; }
.hero2-lines { position: absolute; left: 50%; transform: translateX(-50%); top: 0; bottom: 0; width: min(1392px, 100%); background-image: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--text) 16%, transparent) 0 1px, transparent 1px 14px); pointer-events: none; }
.hero2-stage { position: relative; padding: 24px 0 48px; transform: translateY(-49px); margin-bottom: -49px; }
.hero2-stage .hero-scene { max-width: 880px; }
.hero2-stage .hs { aspect-ratio: 880 / 560; font-size: clamp(10px, 2.1cqw, 15px); }
/* load timeline (reference: hero-rise-in 14 px, pop-in scale .85) */
.hero-in { animation: hero-rise-in 700ms cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
.hero-pop { animation: hero-pop-in 900ms cubic-bezier(.22, 1, .36, 1) 420ms both; transform-origin: 50% 0; }
@keyframes hero-rise-in { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes hero-pop-in { 0% { opacity: 0; transform: translateY(-49px) translateY(8px) scale(.94); } 100% { opacity: 1; transform: translateY(-49px) scale(1); } }
.no-js .hero-in, .no-js .hero-pop { animation: none; }

/* ---------- marquee strip (112 px, hairlines top and bottom, 48 s linear) ---------- */
.marquee-strip { position: relative; padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.marquee { max-width: 1392px; margin: 0 auto; overflow: hidden; cursor: grab; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.fact { display: flex; align-items: baseline; gap: 10px; height: 64px; padding: 0 40px; border-left: 1px solid var(--border); white-space: nowrap; }
.fact b { font-size: 26px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fact span { font-size: 13.5px; font-weight: 500; color: var(--text-muted); }

/* ---------- bento (reference: white band, cards 512 h, radius 15/8, 6 px inset frame) ---------- */
.bento-section { padding: 96px 0; background: var(--surface); }
.bento-section .h-display { font-size: 40px; line-height: 48px; letter-spacing: 0; max-width: 820px; margin-bottom: 48px; }
.bento-section .h-display .muted-line { margin-top: 0; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bento-card { grid-column: span 1; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; min-height: 600px; }
.bento-card--wide { grid-column: span 2; }
.bento-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 32px 20px; }
.bento-head h3 { font-size: 24px; font-weight: 500; letter-spacing: 0; line-height: 1.4; max-width: 680px; }
.plus { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 4px; border: 1px solid var(--border); color: var(--text-muted); background: var(--surface); transition: background-color 300ms cubic-bezier(0, 0, .2, 1), color 300ms cubic-bezier(0, 0, .2, 1), transform 300ms cubic-bezier(0, 0, .2, 1); }
.plus svg { width: 18px; height: 18px; transition: transform 300ms cubic-bezier(0, 0, .2, 1); }
.plus:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.plus:hover svg { transform: rotate(90deg); }
.bento-visual { position: relative; flex: 1; padding: 24px 24px 0; display: flex; align-items: flex-end; }
.bento-scene { width: 100%; max-width: 640px; margin: 0 auto; }
.bento-scene .scene { border-radius: 14px 14px 0 0; border-bottom: 0; box-shadow: var(--shadow-lg); }
.bento-card--wide .bento-scene { margin: 0; max-width: 60%; }
.bento-float { position: absolute; width: 30%; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 13px; line-height: 1.45; color: var(--text-muted); }
.bento-float p { margin: 0; }
.bento-float b { color: var(--text); }
.bento-float .sc-eyebrow { font-size: 10px; }
.bento-float--sms { right: 32px; top: 20px; }
.bento-float--voice { right: 64px; bottom: 48px; }
.bento-visual--split { align-items: stretch; gap: 24px; padding-bottom: 32px; }
.bento-visual--split .bento-scene { max-width: 60%; align-self: flex-end; }
.fw-cloud { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-wrap: wrap; align-content: center; gap: 8px; }
.fw-cloud li { padding: 8px 12px; border-radius: 6px; background: var(--ink); color: var(--bone); font-size: 13px; font-weight: 600; }
.fw-cloud li:nth-child(3n) { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }

/* ---------- dark stats band (reference: pad 100/48/40, h2 64, 3 × 459 cells pad 32, 10 px mono pills) ---------- */
.stats-band { position: relative; overflow: hidden; padding: 100px 0 40px; }
.dash-rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .15) 0 6px, transparent 6px 12px); }
.stats-band .h-display { color: var(--bone); margin: 0 0 100px; max-width: 1100px; font-size: clamp(34px, 3.9vw, 56px); line-height: 1.05; }
.stats3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #33405F; }
.stats3 li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px; border-left: 1px solid #33405F; }
.stats3 li:first-child { border-left: 0; }
.stat-bar { position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--bone); transform: scaleX(0); transform-origin: 0 50%; }
.stat-row { display: flex; align-items: center; gap: 16px; }
.stats3 b { position: relative; display: inline-flex; align-items: flex-start; gap: 4px; font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; flex: none; }
.num-hatch { --line: var(--bone); background-image: repeating-linear-gradient(to bottom, var(--line) 0 4px, transparent 4px 7px); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num-hatch small { font-size: .45em; font-weight: 600; margin-top: .22em; }
.num-hatch small.pre { margin-right: 2px; }
.num-hatch .tri { position: absolute; left: 0; bottom: -14px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 9px solid var(--gold); }
.stats3 p { margin: 0; font-size: 16px; line-height: 1.5; color: #D5D9E3; max-width: none; }
.stats3 .src { display: inline-flex; align-items: center; height: 20px; padding: 0 14px; line-height: 1; border-radius: 999px; background: rgba(255, 255, 255, .06); font: 500 10px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.bars { margin-top: 1px; height: 360px; display: flex; flex-direction: column-reverse; justify-content: space-between; border-bottom: 1px solid #33405F; }
.bars i { display: block; align-self: flex-end; width: calc(var(--w) * 100%); height: 1px; background: rgba(255, 255, 255, .55); transform-origin: 100% 50%; }
.bars i:nth-child(5n) { background: var(--gold); height: 2px; }
.bars-cap { margin: 14px 0 0; font: 500 10px/1.4 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .4); }

/* ---------- anatomy (reference: pad 96/48, h2 64, 4 × 344 cols, 432 px figure, text pad 16/40) ---------- */
.anatomy { padding: 96px 0; }
.anatomy-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.anatomy .h-display { max-width: none; font-size: clamp(32px, 3.9vw, 56px); }
.more { position: relative; display: inline-flex; align-items: center; gap: 0; padding-left: 20px; font: 600 16px/1.05 var(--font-ui); letter-spacing: .02em; text-decoration: none; white-space: nowrap; color: var(--text); }
.more::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 0; margin-top: -5px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid var(--accent); transition: transform 400ms cubic-bezier(.42, 0, .2, .99); }
.more:hover::before { transform: translateX(4px); }
.more svg { display: none; }
.anatomy-row { list-style: none; margin: 0 auto; padding: 0; max-width: 1392px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.anatomy-row li { display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.anatomy-row li:first-child { border-left: 0; }
.anat-fig { height: 432px; margin-bottom: 16px; display: grid; place-items: center; }
.hatch { --hy: 0px; --scan: -20%; width: 260px; height: 260px; position: relative;
  -webkit-mask: var(--shape) center / contain no-repeat; mask: var(--shape) center / contain no-repeat;
  background-image: linear-gradient(to bottom, transparent calc(var(--scan) - 6%), var(--accent) calc(var(--scan) - 2%), var(--accent) calc(var(--scan) + 2%), transparent calc(var(--scan) + 6%)), repeating-linear-gradient(to bottom, var(--text) 0 3px, transparent 3px 8px);
  background-position: 0 0, 0 var(--hy); }
.hatch--mail { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M8 24h84v54H8z'/%3E%3Cpath d='M8 24l42 32 42-32v10L50 66 8 34z' fill='%23000' /%3E%3C/svg%3E"); }
.hatch--click { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M22 12l56 34-24 6-10 30z'/%3E%3Ccircle cx='70' cy='70' r='18' fill='none' stroke='%23000' stroke-width='7'/%3E%3C/svg%3E"); }
.hatch--lesson { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M12 14h76v54H40L22 86V68H12z'/%3E%3C/svg%3E"); }
.hatch--proof { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M22 8h40l20 20v64H22z'/%3E%3Cpath d='M34 60l12 12 24-26' fill='none' stroke='%23000' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.anat-text { padding: 16px 40px; }
.anat-text h3 { font-size: 24px; line-height: 1.4; font-weight: 500; letter-spacing: 0; margin: 0; }
.anat-text p { margin: 12px 0 0; font-size: 16px; line-height: 1.5; color: var(--text-muted); }

/* ---------- compare ---------- */
.compare-section { padding: 96px 0; }
.compare-section .section-head { max-width: 980px; margin-bottom: 40px; }

/* ---------- footer (reference: Ink, CTA block, 4 × 332 cols pad 48/24, 10 px mono bottom bar) ---------- */
.site-footer.band--ink { padding: 0; border-top: 0; background: var(--ink); color: var(--bone); }
.footer-cta { position: relative; overflow: hidden; padding: 96px 0 0; border-bottom: 1px solid #232B45; }
.footer-cta h2 { color: var(--bone); font-size: clamp(34px, 3.9vw, 56px); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; margin-bottom: 40px; max-width: 760px; }
.footer-cta .btn-row { margin-bottom: 56px; gap: 8px; }
.footer-wave { display: block; width: 100%; height: 180px; }
.footer-wave path { fill: none; stroke: #33405F; stroke-width: 1.25; }
.site-footer .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; }
.site-footer .footer-grid > * { padding: 48px 24px; border-left: 1px solid #232B45; }
.site-footer .footer-grid > :first-child { border-left: 0; padding-left: 0; }
.site-footer h3.f-eyebrow { color: #F6C65C; font: 500 11.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }
.f-sub { display: block; margin: 22px 0 10px; font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #7C859D; }
.f-sub:first-of-type { margin-top: 0; }
.site-footer ul { gap: 10px; }
.site-footer li a { color: #D5D9E3; font-size: 14px; line-height: 1.5; transition: color 150ms cubic-bezier(.4, 0, .2, 1); }
.site-footer li a:hover { color: var(--bone); text-decoration: none; }
.site-footer .footer-brand img { height: 26px; margin-bottom: 16px; }
.site-footer .footer-brand p { color: #9AA3B8; max-width: 30ch; margin-bottom: 14px; }
.site-footer .footer-brand a { color: var(--bone); text-decoration: underline; font-size: 14px; }
.site-footer .footer-bottom { border-top: 1px solid #232B45; margin-top: 0; padding: 48px 0 32px; color: rgba(255, 255, 255, .4); font: 500 10px/11px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.site-footer .footer-bottom .mono { font-size: 10px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-in, .hero-pop, .marquee-track, .btn-ad-label .ch { animation: none !important; }
  .hero-pop { transform: translateY(-49px); }
  .bars i { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .site-header .wrap { grid-template-columns: 160px 1fr auto; padding: 8px 24px; }
  .wrap { padding: 0 24px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-card--wide { grid-column: span 2; }
  .anatomy-row { grid-template-columns: 1fr 1fr; }
  .anatomy-row li:nth-child(3) { border-left: 0; }
  .anatomy-row li:nth-child(n+3) { border-top: 1px solid var(--border); }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-grid > :nth-child(3) { border-left: 0; padding-left: 0; }
  .site-footer .footer-grid > :nth-child(n+3) { border-top: 1px solid #232B45; }
  .stats3 li { padding: 24px; }
}
@media (max-width: 900px) {
  .topbar-links { display: none; }
  .site-header .wrap { display: flex; justify-content: space-between; }
  .site-header .nav { margin-left: 0; }
  .site-header .nav > a.nav-mobile-only { display: block; }
  .nav-right { gap: 6px; }
  .nav-right .nav-mail, .nav-right .theme-toggle { display: none; }
  .nav-toggle { margin-left: 0; order: 3; }
  .nav-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; min-width: 0; grid-template-columns: 1fr; padding: 0 0 8px 12px; }
  .nav-caret { display: none; }
  .hero2-copy { padding-top: 56px; }
  .hero2-frame { margin-top: 48px; }
  .hero2-stage { transform: none; margin-bottom: 0; padding: 24px 0 32px; }
  .hero-pop { animation-name: hero-rise-in; }
  .bento { grid-template-columns: 1fr; }
  .bento-card, .bento-card--wide { grid-column: span 1; min-height: 0; }
  .bento-card--wide .bento-scene, .bento-visual--split .bento-scene { max-width: 100%; }
  .bento-float { position: static; width: auto; margin: 16px 0 0; }
  .bento-visual { flex-direction: column; align-items: stretch; }
  .bento-visual--split { flex-direction: column; }
  .fw-cloud { padding: 20px 0 0; }
  .stats-band { padding: 64px 0 32px; }
  .stats-band .h-display { margin-bottom: 48px; }
  .stats3 { grid-template-columns: 1fr; }
  .stats3 li { border-left: 0; padding: 28px 0; border-top: 1px solid #33405F; }
  .stat-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .stats3 li:first-child { border-top: 0; }
  .bars { height: 200px; }
  .anatomy { padding: 64px 0; }
  .anatomy-head { flex-direction: column; align-items: flex-start; }
  .anat-fig { height: 280px; margin-bottom: 8px; }
  .anat-text { padding: 0 24px 24px; }
  .hatch { width: 160px; height: 160px; }
  .anat-text { padding: 8px 24px 32px; }
  .compare-section { padding: 64px 0; }
  .footer-cta { padding-top: 64px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero2-cta { flex-direction: column; align-items: stretch; }
  .btn-ad, .btn-card { justify-content: center; }
  .btn-card { justify-content: space-between; }
  .fact { padding: 0 24px; gap: 8px; }
  .fact b { font-size: 22px; }
  .anatomy-row { grid-template-columns: 1fr; }
  .anatomy-row li { border-left: 0; border-top: 1px solid var(--border); }
  .anatomy-row li:first-child { border-top: 0; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .site-footer .footer-grid > * { border-left: 0; padding: 32px 0; border-top: 1px solid #232B45; }
  .site-footer .footer-grid > :first-child { border-top: 0; }
  .stats3 b { font-size: 48px; }
}
