/* ==========================================================================
   Concept D · merged homepage (A structure + C glass S and story)
   Themes:  html[data-theme="light" | "dark"]  (no attribute = follows system; set
            before first paint by the inline head script). Components read tokens only.
   Modes:   html.js | html.no-js ; html[data-motion="full" | "paused" | "reduced"]
            .story.is-pinned  (JS, desktop >=1024x620, motion not reduced)
   The product is always navy: nav plate, composer, demo panels, plan chips, close, footer.
   ========================================================================== */

@font-face { font-family: "SM Display"; src: url("../fonts/archivo-wdth.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "SM Text"; src: url("../fonts/outfit-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "SM Mono"; src: url("../fonts/plex-mono.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }

/* ---------------------------------------------------------------- tokens: shared */
:root {
  /* brand (measured, BRAND-ANALYSIS.md) */
  --sm-navy: #020a19; --sm-navy-900: #061224; --sm-navy-850: #081729; --sm-navy-800: #0b1a30; --sm-navy-700: #12243f;
  --sm-ice: #eaf0ff; --sm-ice-soft: #aabacf; --sm-ice-faint: #8c9db8;
  --sm-green: #6ee25a; --sm-green-ink: #06200c; --sm-blue: #4a9eff; --sm-blue-300: #7db8ff; --sm-violet: #9b59ff; --sm-amber: #ffd98a;
  /* product surfaces: navy in BOTH themes */
  --p-bg: linear-gradient(160deg, #13284b 0%, #0a1830 46%, #061224 100%);
  --p-solid: #0b1a30;
  --p-ink: #eaf0ff; --p-soft: #aabacf; --p-faint: #8c9db8;
  --p-line: rgb(234 240 255 / .10); --p-line-strong: rgb(234 240 255 / .2);
  /* type */
  --f-display: "SM Display", "Archivo", "Outfit", sans-serif;
  --f-text: "SM Text", "Outfit", sans-serif;
  --f-mono: "SM Mono", "IBM Plex Mono", ui-monospace, monospace;
  /* motion: one curve, one timing scale */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  /* layout */
  --gutter: clamp(16px, 4.4vw, 64px);
  --maxw: 1240px;
  --nav-h: 64px; --nav-top: 12px; --nav-off: calc(var(--nav-h) + var(--nav-top));
  --glow: #8ab8ff;
}

/* ---------------------------------------------------------------- tokens: LIGHT (default) */
:root {
  color-scheme: light;
  --bg: #eaf0ff; --bg-hi: #f7f9ff; --band: #e0e8fb; --surface: #ffffff; --surface-2: #f4f7ff;
  --ink: #020a19; --ink-soft: #33415c; --ink-faint: #4c5873;
  --action: #6ee25a; --action-ink: #06200c; --action-hover: #7deb69;
  --action-text: #1a6b10;            /* derived darker green for text, checks, focus on light */
  --system-text: #1f5bc4;
  --focus: #1a6b10;
  --line: rgb(2 10 25 / .11); --line-strong: rgb(2 10 25 / .2);
  --status-bg: #fff1cc; --status-ink: #6b4500; --status-line: #e2b850;
  --free-bg: #e3f9de; --free-ink: #1a6b10; --free-line: #8fd982;
  --ind-bg: #e2edff; --ind-ink: #1f5bc4; --ind-line: #9cc3ff;
  --biz-bg: #ffffff; --biz-ink: #020a19; --biz-line: rgb(2 10 25 / .25);
  --card-shadow: 0 0 0 1px var(--line), 0 18px 36px -24px rgb(2 10 25 / .35), inset 0 1px 0 #fff;
  --panel-shadow: 0 0 0 1px rgb(2 10 25 / .06), 0 30px 60px -26px rgb(2 10 25 / .55), 0 10px 22px -12px rgb(2 10 25 / .3);
  --s-shadow: rgb(2 10 25 / .22); --s-rim: 0;
  --flag-ink: #5c3a91; --flag-line: #9f7fd6; --flag-bg: #f3edff;
}
/* ---------------------------------------------------------------- tokens: DARK (brand-native) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #020a19; --bg-hi: #061224; --band: #061224; --surface: #0b1a30; --surface-2: #081729;
  --ink: #eaf0ff; --ink-soft: #aabacf; --ink-faint: #8c9db8;
  --action: #6ee25a; --action-ink: #06200c; --action-hover: #7deb69;
  --action-text: #6ee25a; --system-text: #7db8ff; --focus: #6ee25a;
  --line: rgb(174 201 239 / .14); --line-strong: rgb(174 201 239 / .26);
  --status-bg: rgb(255 217 138 / .10); --status-ink: #ffd98a; --status-line: rgb(255 217 138 / .45);
  --free-bg: rgb(110 226 90 / .10); --free-ink: #6ee25a; --free-line: rgb(110 226 90 / .45);
  --ind-bg: rgb(74 158 255 / .12); --ind-ink: #7db8ff; --ind-line: rgb(74 158 255 / .45);
  --biz-bg: rgb(234 240 255 / .06); --biz-ink: #eaf0ff; --biz-line: rgb(234 240 255 / .3);
  --card-shadow: 0 0 0 1px var(--line), inset 0 1px 0 rgb(234 240 255 / .08), 0 18px 36px -20px rgb(1 5 14 / .8);
  --panel-shadow: 0 0 0 1px rgb(174 201 239 / .16), inset 0 1px 0 rgb(234 240 255 / .12), 0 30px 60px -24px rgb(0 0 0 / .7);
  --s-shadow: rgb(0 0 0 / .5); --s-rim: 1;
  --flag-ink: #cdb6ff; --flag-line: #8a68d1; --flag-bg: rgb(155 89 255 / .10);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {   /* no-JS visitors with a dark system setting: same values as above */
    color-scheme: dark;
    --bg: #020a19; --bg-hi: #061224; --band: #061224; --surface: #0b1a30; --surface-2: #081729;
    --ink: #eaf0ff; --ink-soft: #aabacf; --ink-faint: #8c9db8;
    --action-text: #6ee25a; --system-text: #7db8ff; --focus: #6ee25a;
    --line: rgb(174 201 239 / .14); --line-strong: rgb(174 201 239 / .26);
    --status-bg: rgb(255 217 138 / .10); --status-ink: #ffd98a; --status-line: rgb(255 217 138 / .45);
    --free-bg: rgb(110 226 90 / .10); --free-ink: #6ee25a; --free-line: rgb(110 226 90 / .45);
    --ind-bg: rgb(74 158 255 / .12); --ind-ink: #7db8ff; --ind-line: rgb(74 158 255 / .45);
    --biz-bg: rgb(234 240 255 / .06); --biz-ink: #eaf0ff; --biz-line: rgb(234 240 255 / .3);
    --card-shadow: 0 0 0 1px var(--line), inset 0 1px 0 rgb(234 240 255 / .08), 0 18px 36px -20px rgb(1 5 14 / .8);
    --panel-shadow: 0 0 0 1px rgb(174 201 239 / .16), inset 0 1px 0 rgb(234 240 255 / .12), 0 30px 60px -24px rgb(0 0 0 / .7);
      --s-shadow: rgb(0 0 0 / .5); --s-rim: 1;
    --flag-ink: #cdb6ff; --flag-line: #8a68d1; --flag-bg: rgb(155 89 255 / .10);
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-off) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 clamp(1rem, .97rem + .15vw, 1.0625rem)/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  text-rendering: optimizeLegibility;   /* sharpness pass: kerning + ligatures everywhere (text is real text, never rastered) */
}
img, svg, canvas { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
::selection { background: var(--sm-green); color: var(--sm-green-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.ico { width: 16px; height: 16px; flex: none; }
.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* navy islands use the light-green focus ring in both themes */
.nav, .composer, .obj, .close, .foot, .plan__chip { --focus: var(--sm-green); }

.skip { position: fixed; left: 16px; top: -80px; z-index: 300; padding: 12px 18px; border-radius: 12px; background: var(--sm-navy); color: var(--sm-ice); font-weight: 600; text-decoration: none; box-shadow: 0 0 0 2px var(--sm-green); transition: top .2s var(--ease); }
.skip:focus { top: 12px; outline: none; }

/* review flags (Marco's open items); hide with ?flags=0 */
.flag { display: inline-block; vertical-align: middle; margin: 2px 0; padding: 2px 7px; border: 1px dashed var(--flag-line); border-radius: 6px; background: var(--flag-bg); color: var(--flag-ink); font: 500 .7rem/1.35 var(--f-mono); letter-spacing: 0; text-transform: none; }
.flag--facts { border-style: solid; }
.no-flags .flag { display: none; }

/* ---------------------------------------------------------------- buttons, links, badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 13px; background: var(--action); color: var(--action-ink);
  font: 650 1rem/1 var(--f-text); text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .55), inset 0 -2px 0 rgb(6 32 12 / .18), 0 10px 22px -12px rgb(46 140 30 / .75);
  transition: transform .12s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.btn .ico { transition: transform .16s var(--ease); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--action-hover); } .btn:hover .ico { transform: translateX(3px); } }
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 1.06rem; border-radius: 15px; }
.btn--sm { min-height: 40px; padding: 0 15px; font-size: .92rem; border-radius: 11px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--ink-faint); } }
.link { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.link:hover { text-decoration-color: currentColor; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px;
  font: 500 .7rem/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid currentColor; color: var(--ink-soft);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: currentColor; transform: rotate(45deg); flex: none; }
.badge--xs { height: 20px; padding: 0 7px; font-size: .62rem; vertical-align: 1px; }
.badge--sample { border-style: dashed; color: var(--ink-faint); background: transparent; }
.badge--status { color: var(--status-ink); background: var(--status-bg); border-color: var(--status-line); }
.badge--open, .badge--free { color: var(--free-ink); background: var(--free-bg); border-color: var(--free-line); }
.badge--individual { color: var(--ind-ink); background: var(--ind-bg); border-color: var(--ind-line); }
.badge--business { color: var(--biz-ink); background: var(--biz-bg); border-color: var(--biz-line); }
/* badges on navy product surfaces (both themes) */
.composer .badge--sample, .obj .badge--sample { color: var(--p-faint); }
.obj .badge--status, .plan__chip .badge--status, .close .badge--status { color: var(--sm-amber); background: rgb(255 217 138 / .08); border-color: rgb(255 217 138 / .45); }
.plan__chip .badge--open { color: var(--sm-green); background: rgb(110 226 90 / .1); border-color: rgb(110 226 90 / .45); }

/* shared type */
.kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 500 .78rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); flex-wrap: wrap; }
.kicker .badge { letter-spacing: .05em; }
.tri { display: inline-grid; grid-template-columns: 12px 16px 12px; gap: 3px; flex: none; }
.tri i { height: 3px; border-radius: 2px; background: var(--sm-green); }
.tri i:nth-child(2) { background: var(--sm-blue); } .tri i:nth-child(3) { background: var(--sm-violet); }
.display { font: 760 clamp(2rem, 1.3rem + 2.9vw, 3.9rem)/1.02 var(--f-display); font-stretch: 114%; letter-spacing: -.035em; text-wrap: balance; }
.display span { color: var(--ink-faint); }
.display--md { font-size: clamp(1.8rem, 1.25rem + 2.2vw, 3.1rem); }
.display--sm { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.4rem); }
.body { max-width: 62ch; color: var(--ink-soft); font-size: clamp(1.02rem, .98rem + .22vw, 1.16rem); margin: 16px 0 0; }
.fine { font-size: .86rem; color: var(--ink-faint); margin: 0; }
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head--center { text-align: center; }
.sec-head--center .kicker { justify-content: center; }
.sec-head--center .body { margin-inline: auto; }

/* ================================================================ NAV (navy plate in both themes) */
.nav { position: fixed; z-index: 80; left: 0; right: 0; top: var(--nav-top); pointer-events: none; }
.nav__bar {
  pointer-events: auto; position: relative; margin: 0 auto; width: min(var(--maxw), 100% - 32px); height: var(--nav-h);
  display: flex; align-items: center; gap: 14px; padding: 0 10px 0 16px;
  background: rgb(2 10 25 / .97); color: var(--sm-ice); border-radius: 18px;   /* perf: no backdrop blur (it was nearly invisible at 93%) */
  box-shadow: inset 0 1px 0 rgb(234 240 255 / .1), 0 0 0 1px rgb(174 201 239 / .12), 0 18px 40px -18px rgb(2 10 25 / .6);
}
.nav__brand { flex: none; display: block; }
.nav__brand img { height: 56px; width: auto; margin: -6px 0 -6px -6px; }      /* sized by its ink, not the file box */
.nav__panel { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav__links { flex: 1; min-width: 0; }
.nav__links ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: clamp(10px, 1.8vw, 26px); }
.nav__links a { display: block; padding: 8px 2px; text-decoration: none; color: var(--sm-ice-soft); font-size: .94rem; white-space: nowrap; transition: color .16s; }
.nav__links a:hover { color: var(--sm-ice); }
.nav__tools { display: flex; gap: 6px; }
.tool {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-width: 40px; padding: 0 10px;
  border-radius: 11px; border: 1px solid rgb(234 240 255 / .18); background: transparent; color: var(--sm-ice-soft); cursor: pointer; font-size: .84rem;
}
.tool:hover { color: var(--sm-ice); border-color: rgb(234 240 255 / .36); }
.tool__ico { width: 16px; height: 16px; flex: none; background: currentColor; }
.tool__ico--theme { border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); box-shadow: inset 0 0 0 1.6px currentColor; }
.tool__ico--motion { -webkit-mask: linear-gradient(90deg, #000 0 32%, transparent 32% 68%, #000 68% 100%) center / 10px 12px no-repeat; mask: linear-gradient(90deg, #000 0 32%, transparent 32% 68%, #000 68% 100%) center / 10px 12px no-repeat; }
[data-motion="paused"] .tool__ico--motion { -webkit-mask: none; mask: none; clip-path: polygon(28% 18%, 84% 50%, 28% 82%); }
/* labels: visible on wide screens, as a tooltip on focus/hover otherwise */
.tool__t { position: absolute; top: calc(100% + 8px); right: 0; padding: 6px 9px; border-radius: 8px; background: var(--sm-navy); color: var(--sm-ice); white-space: nowrap; font-size: .8rem; box-shadow: 0 0 0 1px rgb(174 201 239 / .2); opacity: 0; pointer-events: none; transition: opacity .16s; }
.tool:hover .tool__t, .tool:focus-visible .tool__t { opacity: 1; }
.nav__cta { flex: none; }
.nav__menu { display: none; }
.no-js .nav__tools, [data-motion="reduced"] [data-motion-toggle] { display: none; }

@media (min-width: 1360px) {
  .tool__t { position: static; opacity: 1; padding: 0; background: none; box-shadow: none; color: inherit; font-size: .84rem; }
}
@media (max-width: 1023.98px) {
  .nav__bar { gap: 8px; padding: 0 8px 0 12px; }
  .nav__brand img { height: 50px; }
  .nav__menu {
    display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; margin-left: auto; border-radius: 11px;
    border: 1px solid rgb(234 240 255 / .2); background: transparent; color: var(--sm-ice); cursor: pointer; font-size: .9rem;
  }
  .nav__burger { display: grid; gap: 4px; width: 16px; }
  .nav__burger i { height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s var(--ease); }
  [aria-expanded="true"] .nav__burger i:first-child { transform: translateY(3px) rotate(45deg); }
  [aria-expanded="true"] .nav__burger i:last-child { transform: translateY(-3px) rotate(-45deg); }
  .nav__panel {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: none; flex-direction: column; align-items: stretch; gap: 6px; padding: 10px;
    background: #020a19; border-radius: 16px; box-shadow: inset 0 1px 0 rgb(234 240 255 / .1), 0 0 0 1px rgb(174 201 239 / .14), 0 24px 40px -20px rgb(2 10 25 / .7);
  }
  .nav__panel.is-open { display: flex; }
  .nav__links ul { flex-direction: column; gap: 0; }
  .nav__links a { padding: 12px 10px; font-size: 1rem; border-radius: 10px; min-height: 44px; }
  .nav__links a:hover { background: rgb(234 240 255 / .06); }
  .nav__tools { padding: 6px 4px 2px; border-top: 1px solid rgb(234 240 255 / .1); }
  .tool { height: 44px; min-width: 44px; padding: 0 12px; }
  .tool__t { position: static; opacity: 1; padding: 0; background: none; box-shadow: none; color: inherit; }
  .no-js .nav__menu { display: none; }
  .no-js .nav__bar { height: auto; min-height: var(--nav-h); flex-wrap: wrap; padding-block: 6px; }
  .no-js .nav__panel { position: static; display: flex; order: 3; flex-basis: 100%; padding: 0; background: none; box-shadow: none; }
  .no-js .nav__links ul { flex-direction: row; flex-wrap: wrap; gap: 0 12px; }
  .no-js .nav__links a { padding: 6px 0; min-height: 0; font-size: .9rem; }
  .no-js .nav__cta { margin-left: auto; }
}
@media (max-width: 479.98px) {
  .nav__menu-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav__menu { padding: 0; width: 44px; justify-content: center; }
  .nav__brand img { height: 46px; margin-left: -8px; }
  .nav__cta { padding: 0 12px; }
}

/* ================================================================ HERO */
/* the hero's light (key beam, floor pool, brand glows) is the Stage B plate: assets/stage-b/stage-b.css (.sb-hero) */
.hero { position: relative; overflow: clip; padding: calc(var(--nav-off) + clamp(16px, 4svh, 52px)) 0 clamp(48px, 7vw, 96px); }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; }
.hero__copy { container-type: inline-size; padding-top: clamp(0px, 2svh, 24px); }
/* P0-1: the headline is sized from BOTH the column width (cqi) and the window height (svh) */
.hero__h {
  margin: 0; color: var(--ink);
  font: 800 clamp(2.4rem, 8vw, 6.6rem)/.95 var(--f-display); font-stretch: 112%; letter-spacing: -.042em;
  font-size: clamp(2.4rem, min(11.4cqi, 11.5svh), 7rem);
}
.hero__h span { display: block; }
.hero__sub { margin: clamp(16px, 2.6svh, 26px) 0 0; max-width: 34ch; color: var(--ink-soft); font-size: clamp(1.05rem, .98rem + .4vw, 1.3rem); line-height: 1.5; }
.hero__acts { display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap; margin-top: clamp(18px, 3svh, 30px); }
.hero__note { margin: 16px 0 0; max-width: 52ch; color: var(--ink-faint); font-size: .86rem; line-height: 1.5; }
.hero__note a { color: var(--ink-soft); font-weight: 600; text-underline-offset: 3px; }

.hero__stage { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.hero__s { position: relative; width: clamp(180px, min(30vw, calc(100svh - 390px)), 450px); aspect-ratio: 1; flex: none; }

/* ---- the glass S (one intact body)
   Perf pass: the canvas carries NO filter. Its rim light and soft shadow are baked offline into derived
   per-theme frames (assets/s-glass/baked, tools/bake-s.py); the step colour lives on the halo, which is a
   plain gradient (no blur filter). Only the static poster <img> (no-JS, and the moment before the first
   frame is decoded) still uses the CSS drop-shadows, and it is painted once. */
.sobj { position: absolute; inset: 0; z-index: 3; transform-origin: 0 0; }
.spin { position: absolute; inset: 0; border-radius: 24px; touch-action: pan-y; }
.spin picture, .spin img { width: 100%; height: 100%; object-fit: contain; }
.spin img {
  filter: drop-shadow(0 0 1.5px color-mix(in oklab, var(--glow) 85%, transparent))
          drop-shadow(0 0 calc(var(--s-rim) * 16px) color-mix(in oklab, var(--glow) 38%, transparent))
          drop-shadow(0 18px 22px var(--s-shadow));
}
.spin:focus-visible { outline-offset: -4px; border-radius: 28px; }
/* the halo: the old 55% -> 0 gradient + blur(26px), reproduced by a wider gradient (computed, see tools/bake-s.py notes) */
.sobj__halo { position: absolute; inset: 10%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side,
    color-mix(in oklab, var(--glow) 47%, transparent) 0%, color-mix(in oklab, var(--glow) 44%, transparent) 10%,
    color-mix(in oklab, var(--glow) 37%, transparent) 20%, color-mix(in oklab, var(--glow) 29.5%, transparent) 30%,
    color-mix(in oklab, var(--glow) 21.5%, transparent) 40%, color-mix(in oklab, var(--glow) 13.5%, transparent) 50%,
    color-mix(in oklab, var(--glow) 6%, transparent) 60%, color-mix(in oklab, var(--glow) 1.5%, transparent) 70%, transparent 80%);
  opacity: .62; transition: opacity .6s var(--ease); }
:root[data-theme="dark"] .sobj__halo { opacity: .5; }
.sparks { position: absolute; inset: 0; pointer-events: none; }
/* sparks: a pre-drawn sprite (star + glow baked, 3 brand tones), animated by transform/opacity only */
.burst {
  position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px;
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAABACAYAAABMbHjfAAAGvUlEQVR42u2dy47cRBSGP7trboTMBpiABJG4DCBYkJAgCIglElt2iIfgFZDgWXgIIAuygSQShERCEAiJNCBxEbAAwVx62mYxx9KhVLb7Yrvt6nOkkls93TX+fledU6465U7e3XuHVbY7lz9caf63PllpfFLMzKwDmJlZBzAzsw5gZmYdwMxsRcx1/P+SKT+XR6q38feM3/UM3P98vmIX3vg75ndLBE+m6PVDbwjG33N+1yF4MuN38gE3BOMfCL/rAD6ZUYi8AjoZQCMw/gHxu47gk5LP1PXsPADd50Zg/APjdy3B+6+TCkF8IXzAPCBUHxuB8Q+Q37UIn3gCJAFBQj0+LwH03+9TIzD+gfK7FuE1aDqFCLkngl/62giMf8D8rmX4oqQl74d6vy7ZFOPCZTYC4x84v2sZPlXHNCCGBtDQGj4kRB8agfFHwO9agvfB/ZIE8pAK0KIUdZUJscxGYPyR8LuW4UcVR4DngPuB6/KdY4GcqGNR70S+u+xGYPwR8buW4DWoX1JgXU70TeAM8JXyDhN1LMALy7xj143A+CPjdx3AOykjdVyTk7wEPAxsKJCJeIK0Zsqs60Zg/BHyuwVzO/yi4V1JWZPPnJYQeAo4C/wiJz2W748rBMg7Hg4Yf6T8894DhO720xL4NVWc9PYEuABsS50vAx+pOeO0YrpM3xAlS8gjN/6I+N0CS9yUwI88+HXvuCnffV3V8ypwhf/vVKsLgToUluWKNOEFjT9i/iYjQBm8LhvKE7yk6jwnIfFAhdKkZpFEL5snNQlUXXhA4x8gv5ux95fd/IQ8wJoSYUMVBzwOPKZOcgd4BvhOboCmWSX0RajKJc8b8n7GHxn/IusAoTnfKg+wAWzJ3y54U1wj8QJ78p6fF5IFSko4V6SrRSDjj4A/XcATJCWrfSERNgV+S4Q4H/Aq55WXKD63rkKmnk4bldwo1eWd06AnNP4I+NMZNzckNSJoL+CP+YqTfgh4KlDnExIKfQE3VT2jkmX1adNtF93cYfyR8S86BPIXQNbVPG/xdwc8KiHuHPAscF9A5C3gPRkH3gBuAj+o+eBULaBkaqzol7zDIYDxD5zfNSCCPhZTUqckpF0CLgJPysnX2bZ8/qKMBe8CXwCfAV8Cf6rFj6RmrrirRmD8A+ZvIh26CEW7wBvAa8DzwIMlS9fT7AjKxaPsSnkb+AP4RsS4DHzt5YmUnWPbeTHGP2D+Jh+NuAU8IOV0C0/72pYx4o7U37XXM/4I+ReJALnq2RlwC7gtNyyPSBh7BXhR5nxHMyyyFPX/JGPBzyUU7gGHwJGMDfMlPmLP+CPgdwvC+3s1i4jyO/ApcE08wy7wgpSnVQ6Ib38B34uYN+X1P5ysEB6oJChK9ox2ZcYfCb+bEz4JbGE7lp6J6u3F+/eAn0WUHeADmQnQORv7wPvAr9LLD1R9xf+ayHsTqjdPt33xjT8S/nSG8OGvuOUlK3VFPvehlGMpEym/AXcCdd4V+Imq41gJcaR2CukS8kZ5g17O+CPmT+cQIySChtcnP1ZC7KvXNwIne0sgD4F/FfhYysQTMmP6pfC8wcZg/BHxpwsIEur5WoDixI88EQ5kTjdXU2iIKPtKqCNPgLEHn5WI0NUNoPFHwO+mHO9VhcXM27hc9+yXNQmBP3KyEwgJi9+KOGMFX5TjQCjNOmgIxh85v5vz5ifkCeoEyNXNy1imtc6q8Pe31HPkiVD0/hB8XjL2y1u++TP+SPjTOcd/oWe5hMZ/fgg8VGHumqrnqgp9B4Hx39jzAFmJCHXn29T41/gj4XcNzhBkFfs3tacoHntxXW52NkWAA+UdtIh14MuYCzf+SPjdHGPBUCjMArv0QwIUHsLJlNdtTnJG7qk5Y9+TTLxSNe5r2vsZf+T8rmER6mYMRmqRJJOef0ZCX6rmeic14F1efOOPmN91IEIoBBYAH3OS2FQIMA6MKbMeXHzjj5TftShCaLUw9R57dzXgJXyhMu/9ZV1844+Q37UoQlLhBZJA5l9oZTHv2cU3/sj4XYsi6B1CqecFkpIfSfNBs5pfC1nmL6sbfwT8rgMR8Hp9XvO7sHXPgOnDxTf+SPhdyyLkJSuDVR6AGui+XHzjj4DftSxCSAxq9oROc+zbr6Yb/0D5XYsizJJkVZVyS8eZjsa/QvyuRRHqxoX5AvknfTXjHxi/60iEeR7RMatofW4Ext9TftdyslRVLnkyp0dgII3A+AfA7zr2BvNADe3iG/+A+F3HqbPJClx04x8Qv1uiGKtoxt8zSzEzW2GzDmBmHcDMzDqAmZl1ADOz1bL/AMLhS/Oa4qV7AAAAAElFTkSuQmCC") 0 0 / 300% 100% no-repeat; opacity: 0; animation: burst .9s var(--ease) forwards;
}
.burst--b { background-position: 50% 0; } .burst--v { background-position: 100% 0; }
@keyframes burst { 0% { opacity: 1; transform: translate(0, 0) scale(.4); } 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(1.1) rotate(90deg); } }
.spin-hint {
  position: absolute; right: 0; bottom: 2%; z-index: 4; display: none; align-items: center; gap: 8px; margin: 0;
  padding: 7px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font: 500 .72rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft);
  box-shadow: 0 8px 20px -12px rgb(2 10 25 / .4); transition: opacity .4s var(--ease);
}
.spin-hint svg { width: 20px; height: 10px; }
.js .spin-hint { display: inline-flex; }
.spin-hint.is-gone, .story__s .spin-hint { opacity: 0; }

/* ---- composer (navy product surface in both themes) */
.composer {
  position: relative; z-index: 4; width: 100%; max-width: 600px; padding: 14px 14px 12px; border-radius: 20px;
  background: var(--p-bg); color: var(--p-ink); box-shadow: var(--panel-shadow);
}
.composer::before { content: ""; position: absolute; left: 20px; right: 20px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--sm-green), var(--sm-blue), var(--sm-violet), transparent); opacity: .7; }
.composer__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.composer__label { font: 500 .74rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--p-soft); }
.composer textarea {
  display: block; width: 100%; resize: none; min-height: calc(3 * 1.45em + 22px); padding: 10px 12px; border-radius: 12px;
  background: rgb(234 240 255 / .05); border: 1px solid var(--p-line); color: var(--p-ink);
  font: 450 1.02rem/1.45 var(--f-text); caret-color: var(--sm-green);
}
.composer textarea:focus { outline: none; border-color: rgb(110 226 90 / .7); box-shadow: 0 0 0 3px rgb(110 226 90 / .25); }
.composer__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.composer__hint { margin: 0; font-size: .82rem; line-height: 1.4; color: var(--p-faint); min-width: 0; }
.composer__go {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 15px; border: 0; border-radius: 11px; cursor: pointer;
  background: var(--sm-navy-700); color: var(--p-ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--p-line-strong); white-space: nowrap;
  transition: background .16s, transform .12s var(--ease);
}
.composer__go:hover { background: #1a3256; }
.composer__go:active { transform: scale(.97); }

/* ---- template chips, two groups */
.chips { width: 100%; max-width: 600px; display: grid; gap: 8px; }
.chips__group { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; }
.chips__label { font-size: .8rem; font-weight: 600; color: var(--ink-soft); line-height: 1.2; }
.chips__row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 3px 2px; min-width: 0; scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
.chips__row::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 13px; border-radius: 999px; cursor: pointer; font-size: .86rem; font-weight: 500; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); transition: background .16s, color .16s, transform .12s;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip:active { transform: scale(.97); }
.chip.is-hint { border-color: var(--system-text); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--sm-navy); color: var(--sm-ice); border-color: var(--sm-navy); }
:root[data-theme="dark"] .chip.is-hint { border-color: var(--system-text); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--sm-ice); color: var(--sm-navy); border-color: var(--sm-ice); }

@media (max-width: 1023.98px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .hero__h { font-size: clamp(2.5rem, 11.6cqi, 5.4rem); }
  .hero__sub { max-width: 40ch; }
  .hero__s { width: clamp(180px, min(56vw, 40svh), 340px); }
  .hero__stage { gap: 12px; }
}
@media (max-width: 599.98px) {
  .chips__group { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .composer__foot { flex-direction: column; align-items: stretch; }
  .composer__go { justify-content: center; }
}

/* ================================================================ STORY */
.story { position: relative; background: var(--band); padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); }
.story__head { margin-bottom: clamp(24px, 4vw, 48px); }
.story__intro { max-width: 60ch; margin: 18px 0 0; color: var(--ink-soft); font-size: clamp(1.02rem, .98rem + .22vw, 1.16rem); }
.story__optin { margin-top: 20px; }
.steps { list-style: none; margin: 0 auto; padding: 0; width: min(var(--maxw), 100% - 2 * var(--gutter)); }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(36px, 5vw, 64px) 0; }
.step + .step { border-top: 1px solid var(--line); }
.step__eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 .8rem/1 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.step__eyebrow i { width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); background: var(--tone); box-shadow: 0 0 10px var(--tone); }
.step__eyebrow .mono { color: var(--ink-faint); }
.step__silence { margin: 0 0 14px; font: 780 clamp(1.9rem, 1.3rem + 2.2vw, 3rem)/1 var(--f-display); font-stretch: 114%; letter-spacing: -.035em; color: var(--ink); }
.step__h { font: 760 clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem)/1.08 var(--f-display); font-stretch: 110%; letter-spacing: -.03em; text-wrap: balance; }
.step__p { margin: 14px 0 0; color: var(--ink-soft); max-width: 46ch; }
.step__fine { margin: 12px 0 0; font-size: .86rem; color: var(--ink-faint); max-width: 50ch; }
.step__obj { min-width: 0; }
.story__s, .story__silence, .scrub { display: none; }
@media (max-width: 767.98px) { .step { grid-template-columns: minmax(0, 1fr); } }

/* ---- product objects (navy panels in both themes) */
.obj {
  --tone: var(--sm-blue);
  position: relative; margin: 0; padding: 18px 20px; border-radius: 22px; color: var(--p-ink);
  background: var(--p-bg); box-shadow: var(--panel-shadow), 0 0 0 1px color-mix(in oklab, var(--tone) 34%, transparent);
}
.step .obj { --tone: inherit; }
.obj::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--tone), transparent); box-shadow: 0 0 14px var(--tone); }
.obj__bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.obj__title { font: 500 .74rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--p-soft); }
.obj__meta { margin-left: auto; font-size: .72rem; color: var(--p-faint); }
.obj__foot, .obj__cap { margin: 12px 0 0; font-size: .78rem; line-height: 1.45; color: var(--p-faint); }
.agent__req { margin: 0 0 12px; padding: 11px 13px; border-radius: 12px; background: rgb(234 240 255 / .06); border: 1px solid var(--p-line); font-size: .95rem; }
.agent__rows { margin: 0; display: grid; }
.agent__rows > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid rgb(234 240 255 / .08); }
.agent__rows dt { font: 500 .7rem/1.9 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--p-faint); }
.agent__rows dd { margin: 0; font-size: .92rem; }
.agent__rows .badge { margin-left: 4px; }
.runtab { width: 100%; border-collapse: collapse; font-size: .9rem; }
.runtab th { text-align: left; font: 500 .7rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--p-faint); padding: 0 0 8px; }
.runtab td { padding: 8px 0; border-top: 1px solid rgb(234 240 255 / .08); }
.runtab td:first-child { width: 28px; color: var(--p-faint); }
.runtab td:last-child { width: 30px; text-align: right; }
.tick { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgb(110 226 90 / .16); box-shadow: inset 0 0 0 1px rgb(110 226 90 / .5); }
.tick::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--sm-green); border-bottom: 2px solid var(--sm-green); transform: rotate(-45deg) translate(1px, -1px); }
.runres { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 11px 12px; border-radius: 14px; background: rgb(110 226 90 / .08); border: 1px solid rgb(110 226 90 / .3); }
.check { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--sm-green); color: var(--sm-green-ink); }
.check svg { width: 18px; height: 18px; }
.runres__1 { margin: 0; font-weight: 600; }
.runres__2 { margin: 2px 0 0; font-size: .78rem; color: var(--p-soft); }

.appr__lbl { margin: 4px 0 6px; font: 500 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--p-faint); }
.appr__act { margin: 0; font-size: clamp(1.05rem, 1rem + .4vw, 1.28rem); line-height: 1.38; }
.appr__act strong { color: var(--sm-blue-300); font-weight: 650; }
.appr__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 12px; }
.appr__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 16px; border-radius: 16px; border: 0; cursor: pointer;
  font-weight: 650; font-size: 1.02rem; transition: transform .14s var(--ease), box-shadow .2s var(--ease), background .2s, opacity .2s;
}
.appr__btn svg { width: 22px; height: 22px; flex: none; }
.appr__no { background: rgb(234 240 255 / .07); color: var(--p-ink); box-shadow: inset 0 0 0 1.5px rgb(234 240 255 / .26); }
.appr__no:hover { background: rgb(234 240 255 / .13); }
.appr__yes { position: relative; isolation: isolate; background: var(--sm-green); color: var(--sm-green-ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), 0 0 0 5px rgb(110 226 90 / .16), 0 14px 30px -12px rgb(110 226 90 / .8); }
/* the beckon pulse: a ring that scales and fades (transform/opacity, compositor only); it runs only while the
   card is near the screen (.is-near, set by JS) and, in the pinned story, only on the active step */
.appr__yes::before { content: ""; position: absolute; inset: -5px; border-radius: 21px; pointer-events: none; z-index: -1;
  background: rgb(110 226 90 / .16); opacity: 0; }
[data-motion="full"] .is-near[data-state="waiting"] .appr__yes, [data-motion="full"] .is-near[data-state="passed"] .appr__yes { box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), 0 14px 30px -12px rgb(110 226 90 / .8); }
[data-motion="full"] .is-near[data-state="waiting"] .appr__yes::before, [data-motion="full"] .is-near[data-state="passed"] .appr__yes::before { animation: beckon 2.4s ease-in-out infinite; }
.story.is-pinned .step:not(.is-on) .appr__yes::before { animation: none !important; }
@keyframes beckon { 0%, 100% { opacity: 1; transform: none; } 50% { opacity: .44; transform: scale(1.06, 1.21); } }
.appr__btn:active { transform: scale(.96); }
.appr__btn:focus-visible { outline: 3px solid var(--sm-ice); outline-offset: 3px; border-radius: 18px; }
.appr__btn:disabled { cursor: default; }
[data-state="approved"] .appr__no, [data-state="declined"] .appr__yes { opacity: .32; }
[data-state="approved"] .appr__yes { box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), 0 0 0 6px rgb(110 226 90 / .3), 0 0 40px rgb(110 226 90 / .55); }
.appr__status { margin: 0; text-align: center; font-size: .9rem; line-height: 1.45; color: var(--p-soft); min-height: 2.9em; }
[data-state="approved"] .appr__status { color: var(--sm-green); }
[data-state="passed"] .appr__status, [data-state="declined"] .appr__status { color: var(--sm-amber); }
.appr__again[hidden] { display: none; }
.appr__again { display: block; margin: 6px auto 0; color: var(--p-ink); font-size: .86rem; text-decoration-color: rgb(234 240 255 / .4); }
.obj--approve[data-state="approved"] { --tone: var(--sm-green); }

.run__state { margin-left: auto; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sm-amber); }
[data-run="approved"] .run__state { color: var(--sm-green); }
.week { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.week li { display: grid; gap: 7px; justify-items: center; padding: 9px 0 10px; border-radius: 12px; background: rgb(234 240 255 / .05); border: 1px solid rgb(234 240 255 / .07); }
.week b { font: 500 .68rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--p-faint); }
.week i { width: 22px; height: 22px; border-radius: 8px; background: rgb(234 240 255 / .07); box-shadow: inset 0 0 0 1px rgb(234 240 255 / .12); transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.week li.is-sched i { box-shadow: inset 0 0 0 1.5px rgb(74 158 255 / .7); }
.week li.is-lit i { background: var(--sm-green); box-shadow: 0 0 0 4px rgb(110 226 90 / .18), 0 0 20px rgb(110 226 90 / .8); }
.week li.is-lit b { color: var(--sm-green); }
.run__when { margin: 10px 0 0; font-size: .76rem; color: var(--p-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.run__rows { margin: 10px 0 0; display: grid; }
.run__rows > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid rgb(234 240 255 / .08); font-size: .88rem; }
.run__rows dt { color: var(--p-faint); }
.run__rows dd { margin: 0; }
.run__back { margin: 8px 0 0; font-size: .86rem; }
.run__back .link { color: var(--p-ink); text-decoration-color: rgb(234 240 255 / .4); }
[data-run="approved"] .run__back { display: none; }
[data-run="approved"] [data-run-waits] { color: var(--sm-green); }
[data-run="waiting"] [data-run-waits] { color: var(--sm-amber); }

/* ---- PINNED story (desktop, motion on or paused): one sticky stage, the S travels in */
.story.is-pinned { padding-bottom: 0; }
.story.is-pinned .story__track { height: 520svh; position: relative; }
.story.is-pinned .story__stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.16fr) minmax(0, 1fr); column-gap: clamp(20px, 3vw, 48px); align-items: center;
  width: min(1320px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: calc(var(--nav-off) + 12px) 0 92px;
}
.story.is-pinned .story__s { display: block; grid-column: 1; grid-row: 1; position: relative; width: min(100%, 46svh); aspect-ratio: 1; justify-self: center; transition: opacity .5s var(--ease); }
.story.is-pinned .steps { grid-column: 2 / span 2; grid-row: 1; position: relative; width: auto; height: 100%; margin: 0; }
.story.is-pinned .step {
  position: absolute; inset: 0; padding: 0; border: 0; visibility: hidden;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); column-gap: clamp(20px, 3vw, 48px);
}
.story.is-pinned .step__silence { display: none; }
.story.is-pinned .step.is-on, .story.is-pinned .step.is-leaving { visibility: visible; }
.story.is-pinned .step__obj { grid-column: 1; grid-row: 1; opacity: 0; transform: translateX(-28px) scale(.94); transition: opacity .5s var(--ease), transform .8s var(--ease); }   /* perf: no blur in the transition */
.story.is-pinned .step__copy { grid-column: 2; grid-row: 1; opacity: 0; transform: translateY(22px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.story.is-pinned .step.is-on .step__obj { opacity: 1; transform: none; }
.story.is-pinned .step.is-on .step__copy { opacity: 1; transform: none; transition-delay: .1s; }
.story.is-pinned .step.is-leaving .step__obj { opacity: 0; transform: translateX(40px) scale(.96); transition-duration: .35s; }
.story.is-pinned .step.is-leaving .step__copy { opacity: 0; transform: translateY(-14px); transition-duration: .3s; }
.story.is-pinned .step__p, .story.is-pinned .step__fine { max-width: 40ch; }
/* "Then it stops." authored silence before the peak */
.story.is-pinned .story__silence {
  display: block; position: absolute; left: 0; right: 0; top: 50%; z-index: 5; margin: 0; text-align: center; pointer-events: none;
  font: 800 clamp(2.4rem, 1.4rem + 4vw, 5.2rem)/1 var(--f-display); font-stretch: 114%; letter-spacing: -.04em; color: var(--ink);
  opacity: 0; transform: translateY(-40%); transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.story.is-pinned.is-silence .story__silence { opacity: 1; transform: translateY(-50%); }
.story.is-pinned.is-silence .story__s { opacity: .18; }
/* scrubber */
.story.is-pinned .scrub {
  position: absolute; left: 50%; bottom: 18px; z-index: 6; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; padding: 7px 8px 7px 16px; border-radius: 16px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 16px 34px -18px rgb(2 10 25 / .5);
}
.scrub__count { font-size: .78rem; color: var(--ink-faint); }
.scrub__count b { color: var(--ink); font-weight: 500; }
.scrub__steps { position: relative; display: flex; gap: 2px; }
.scrub__steps button { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-size: .88rem; font-weight: 550; color: var(--ink-soft); }
.scrub__steps button i { width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--line-strong); transition: background .3s, box-shadow .3s; }
.scrub__steps button[aria-current="step"] { color: var(--ink); background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); }
.scrub__steps button[aria-current="step"] i, .scrub__steps button.is-past i { background: var(--tone); box-shadow: 0 0 8px var(--tone); }
.scrub__bar { position: absolute; left: 12px; right: 12px; bottom: -4px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.scrub__bar i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--sm-green), var(--sm-blue), var(--sm-violet)); }
.scrub__skip { font-size: .86rem; font-weight: 600; color: var(--ink-soft); text-underline-offset: 3px; padding: 6px; }

/* ================================================================ TEMPLATES */
.tpls { padding: clamp(64px, 9vw, 128px) 0 clamp(56px, 8vw, 100px); }
.tpls__group + .tpls__group { margin-top: clamp(28px, 4vw, 44px); }
.tpls__gh { margin: 0 0 14px; font: 600 .8rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: 18px; background: var(--surface); box-shadow: var(--card-shadow);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(-3px); } }
/* P1-11: every illustration sits on an ice tile, in both themes (no halos on navy) */
.card__art { margin: 10px 10px 0; height: 118px; border-radius: 12px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(90% 90% at 50% 40%, #ffffff, #e4ecfd); box-shadow: inset 0 0 0 1px rgb(2 10 25 / .06); }
.card__art img { width: auto; height: 100px; max-width: 88%; object-fit: contain; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 12px; flex: 1; }
.card__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.card__badges .badge { height: auto; min-height: 22px; padding: 3px 8px; white-space: normal; line-height: 1.2; }
.card__h { font: 700 1.1rem/1.15 var(--f-display); font-stretch: 106%; letter-spacing: -.02em; }
.card__p { margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.5; flex: 1; }
.card__try { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; margin-top: 2px; padding: 10px 0; border: 0; background: none; cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--system-text); }
.card__try:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1279.98px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* phones: A's swipe deck */
@media (max-width: 767.98px) {
  .cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 min(78vw, 300px); scroll-snap-align: start; }
}

/* ================================================================ BRIDGE */
.bridge { padding: 0 0 clamp(56px, 8vw, 100px); }
.bridge__in {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 3.4vw, 44px); border-radius: 24px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line);
  position: relative; overflow: hidden;
}
.bridge__in::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--sm-green), var(--sm-blue), var(--sm-violet)); }
.bridge__h { font: 760 clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem)/1.08 var(--f-display); font-stretch: 110%; letter-spacing: -.03em; }
.bridge__copy p { margin: 12px 0 0; color: var(--ink-soft); max-width: 58ch; }
.bridge__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 20px; }
.ind { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ind a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink-soft); text-decoration: none; font-size: .9rem; font-weight: 500; }
.ind a:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
.bridge__ind p { margin: 10px 0 0; }
@media (max-width: 899.98px) { .bridge__in { grid-template-columns: minmax(0, 1fr); } }

/* ================================================================ BILLS + PRICING */
.pricing { padding: clamp(64px, 9vw, 120px) 0; background: var(--band); }
.bills { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(16px, 2.6vw, 32px); align-items: stretch; max-width: 980px; margin: 0 auto; }
.bill { padding: 24px 26px; border-radius: 20px; background: var(--surface); box-shadow: var(--card-shadow); }
.bill__who { margin: 0 0 6px; font: 500 .74rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.bill__what { font: 720 1.4rem/1.15 var(--f-display); font-stretch: 108%; letter-spacing: -.02em; }
.bill p:last-child { margin: 10px 0 0; color: var(--ink-soft); }
.bills__rule { display: grid; grid-template-rows: 1fr 1.3fr 1fr; gap: 6px; width: 4px; align-self: center; height: 120px; }
.bills__rule i { border-radius: 3px; background: var(--sm-green); } .bills__rule i:nth-child(2) { background: var(--sm-blue); } .bills__rule i:nth-child(3) { background: var(--sm-violet); }
.bills__under { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin: 22px 0 0; color: var(--ink-soft); font-weight: 600; }
.bills__under span { display: inline-flex; align-items: center; gap: 8px; }
.bills__under span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--action-text); }
@media (max-width: 767.98px) {
  .bills { grid-template-columns: minmax(0, 1fr); }
  .bills__rule { grid-template-rows: none; grid-template-columns: 1fr 1.3fr 1fr; width: 120px; height: 4px; justify-self: center; }
}
.plans-head { margin-top: clamp(56px, 8vw, 96px); }
.plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; border-radius: 22px; background: var(--surface); box-shadow: var(--card-shadow); overflow: hidden; }
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
/* the plan "chip" (name + price) is a navy product surface in both themes */
.plan__chip { padding: 18px 20px 16px; background: var(--p-bg); color: var(--p-ink); }
.plan__n { font: 720 1.25rem/1.1 var(--f-display); font-stretch: 108%; letter-spacing: -.02em; }
.plan__price { margin: 14px 0 0; display: flex; align-items: baseline; gap: 4px; }
.plan__price b { font: 780 2.6rem/1 var(--f-display); font-stretch: 108%; letter-spacing: -.03em; }
.plan__price span { color: var(--p-soft); }
.plan__yearly { margin: 4px 0 0; font-size: .86rem; color: var(--p-soft); min-height: 1.4em; }
.plan__body { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; flex: 1; }
.plan__tag { margin: 0; color: var(--ink-soft); font-weight: 600; }
.plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; }
.plan__list li { position: relative; padding-left: 24px; color: var(--ink-soft); font-size: .94rem; line-height: 1.45; }
.plan__list li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 10px; height: 6px; border-left: 2px solid var(--action-text); border-bottom: 2px solid var(--action-text); transform: rotate(-45deg); }
.plan__cta { width: 100%; margin-top: 6px; }
.managed { margin-top: 16px; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; padding: 18px 20px; border-radius: 20px; background: var(--surface); box-shadow: var(--card-shadow); }
.managed__l { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.managed__price { margin: 0; } .managed__price b { font: 760 1.5rem/1 var(--f-display); font-stretch: 108%; }
.managed__p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.plans__note { margin: 18px auto 0; text-align: center; max-width: 80ch; }
@media (max-width: 1023.98px) { .managed { grid-template-columns: minmax(0, 1fr) auto; } .managed__p { grid-column: 1 / -1; } .managed .btn { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 899.98px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } .managed { max-width: 520px; margin-inline: auto; } }

/* ================================================================ HONEST STATUS */
.status { padding: clamp(56px, 8vw, 104px) 0; }
.status__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px clamp(24px, 5vw, 72px); align-items: start; }
.status__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-radius: 18px; background: var(--surface); box-shadow: var(--card-shadow); overflow: hidden; }
.st { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 15px 20px; }
.st + .st { border-top: 1px solid var(--line); }
.st__k { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; }
.st__k::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); background: var(--status-ink); }
.st--now .st__k::before { background: var(--action-text); }
.st--closed .st__k::before { background: var(--ink-faint); }
.st__t { color: var(--ink-soft); }
.status__line { grid-column: 2; margin: 0; color: var(--ink-faint); font-size: .92rem; }
@media (max-width: 899.98px) { .status__in { grid-template-columns: minmax(0, 1fr); } .status__line { grid-column: 1; } }
@media (max-width: 479.98px) { .st { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* ================================================================ FAQ */
.faq { padding: clamp(56px, 8vw, 104px) 0; background: var(--band); }
.faq__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px clamp(24px, 5vw, 72px); align-items: start; }
.faq__list { display: grid; gap: 10px; }
.faq__item { border-radius: 16px; background: var(--surface); box-shadow: var(--card-shadow); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none; border-radius: 16px; min-height: 44px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { font: 650 1.05rem/1.35 var(--f-text); }
.faq__icon { flex: none; position: relative; width: 14px; height: 14px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: var(--ink-soft); transition: transform .24s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__a { padding: 0 20px 18px; color: var(--ink-soft); }
.faq__a p { margin: 0; max-width: 64ch; }
.faq__a p + p { margin-top: 8px; }
.faq__a a { color: var(--system-text); font-weight: 600; }
@media (max-width: 899.98px) { .faq__in { grid-template-columns: minmax(0, 1fr); } }

/* ================================================================ CLOSE + FOOTER (navy in both themes) */
.close { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 136px) 0; background: var(--sm-navy); color: var(--sm-ice); text-align: center; }
.close::before { content: ""; position: absolute; inset: -30% auto auto 50%; width: 70vmax; height: 50vmax; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgb(74 158 255 / .16), rgb(155 89 255 / .08) 60%, transparent); }
.close__in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.close__s { width: clamp(120px, 14vw, 170px); height: auto; filter: drop-shadow(0 0 16px rgb(138 184 255 / .35)) drop-shadow(0 16px 20px rgb(0 0 0 / .5)); }
.close .display { color: var(--sm-ice); max-width: 18ch; }
.close .display span { color: var(--sm-ice-soft); }
.close__line { margin: 0; color: var(--sm-ice-soft); }
.foot { background: var(--sm-navy-900); color: var(--sm-ice-soft); padding: 48px 0 28px; }
.foot__in { display: grid; grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot__brand img { width: 260px; height: auto; margin: -16px 0 -10px -12px; }   /* >= 230px so the tagline stays legible */
.foot__brand p { margin: 8px 0 0; font-size: .9rem; }
.foot__h { margin: 4px 0 12px; font: 500 .74rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sm-ice-faint); }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot__col a { display: inline-block; padding: 4px 0; color: var(--sm-ice-soft); text-decoration: none; font-size: .94rem; }
.foot__col a:hover { color: var(--sm-ice); text-decoration: underline; text-underline-offset: 3px; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgb(174 201 239 / .14); font-size: .86rem; color: var(--sm-ice-faint); }
.foot__legal p { margin: 0; }
.foot__legal a { color: var(--sm-ice-soft); }
.foot .flag { --flag-ink: #cdb6ff; --flag-line: #8a68d1; --flag-bg: rgb(155 89 255 / .1); }
@media (max-width: 899.98px) { .foot__in { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 479.98px) { .foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================================================================ MOTION MODES */
/* paused: no ambient motion; state changes are instant */
[data-motion="paused"] *, [data-motion="paused"] *::before, [data-motion="paused"] *::after { animation: none !important; }
[data-motion="paused"] .step__obj, [data-motion="paused"] .step__copy, [data-motion="paused"] .story__silence,
[data-motion="paused"] .runtab tr, [data-motion="paused"] .tick, [data-motion="paused"] .runres, [data-motion="paused"] .week i { transition-duration: 0s !important; transition-delay: 0s !important; }
/* test rows tick in sequence (JS adds .is-ticking) */
.is-ticking .runtab tbody tr { opacity: .35; transition: opacity .3s; }
.is-ticking .runtab tbody tr .tick { transform: scale(0); transition: transform .35s var(--ease); }
.is-ticking .runtab tbody tr.is-done { opacity: 1; }
.is-ticking .runtab tbody tr.is-done .tick { transform: scale(1); }
.is-ticking .runres { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease); }
.is-ticking .runres.is-done { opacity: 1; transform: none; }

/* LITE tier (JS adds html.lite on weak devices, once, never back): no tilt/sway (JS), canvas at 1x with
   480 px frames (JS), fewer sparks (JS), and no large blur filters anywhere */
.lite .spin img { filter: none; }   /* premium pass: the floor shadow replaces the drop shadow */
.lite .close__s { filter: none; }

/* below the fold: skip rendering work until near the viewport. The size hints are the measured heights
   (desktop / tablet / phone); `auto` then remembers each section's real size once it has rendered. */
.js .tpls, .js .bridge, .js .pricing, .js .status, .js .faq, .js .foot { content-visibility: auto; }
.js .cv-done { content-visibility: visible; }      /* laid out during idle time after the first view (JS) */
.js .tpls { contain-intrinsic-size: auto 1467px; }
.js .bridge { contain-intrinsic-size: auto 391px; }
.js .pricing { contain-intrinsic-size: auto 1436px; }
.js .status { contain-intrinsic-size: auto 538px; }
.js .faq { contain-intrinsic-size: auto 780px; }
.js .foot { contain-intrinsic-size: auto 362px; }
@media (max-width: 1279.98px) { .js .tpls { contain-intrinsic-size: auto 2017px; } .js .bridge { contain-intrinsic-size: auto 418px; } }
@media (max-width: 899.98px) { .js .tpls { contain-intrinsic-size: auto 2137px; } .js .bridge { contain-intrinsic-size: auto 475px; } .js .pricing { contain-intrinsic-size: auto 2174px; } .js .foot { contain-intrinsic-size: auto 499px; } }
@media (max-width: 599.98px) { .js .tpls { contain-intrinsic-size: auto 1339px; } .js .bridge { contain-intrinsic-size: auto 630px; } .js .pricing { contain-intrinsic-size: auto 2552px; } .js .status { contain-intrinsic-size: auto 645px; } .js .faq { contain-intrinsic-size: auto 808px; } .js .foot { contain-intrinsic-size: auto 722px; } }

@media (prefers-reduced-motion: reduce) {
  :root:not(.optin) *, :root:not(.optin) *::before, :root:not(.optin) *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.scrub__skip { white-space: nowrap; }
@media (max-width: 1199.98px) { .story.is-pinned .scrub__count { display: none; } .story.is-pinned .scrub { gap: 8px; padding-left: 8px; } }
