/* SEVN Vital — public site styles
   Art direction: deep ink night-sky for living data, airy warm paper for explanation.
   Display: Fraunces (soft optical serif) · Text: Manrope · Labels: IBM Plex Mono */

/* ---------- fonts: the self-hosted web fonts are declared in fonts.css (the home page loads it just after the first
   paint, other pages link it). These metric-matched local fallbacks (size-adjust / ascent / descent overrides) hold
   the same layout until then, so the swap doesn't move anything. */
@font-face { font-family: 'Fraunces Fallback'; font-style: normal; src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Liberation Serif'); size-adjust: 94.7%; ascent-override: 103.3%; descent-override: 26.9%; line-gap-override: 0%; }
@font-face { font-family: 'Fraunces Fallback'; font-style: italic; src: local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT'), local('Liberation Serif Italic'); size-adjust: 84.8%; ascent-override: 115.3%; descent-override: 30.1%; line-gap-override: 0%; }
@font-face { font-family: 'Manrope Fallback'; font-weight: 100 550; src: local('Arial'), local('ArialMT'), local('Liberation Sans'); size-adjust: 102.3%; ascent-override: 104.2%; descent-override: 29.3%; line-gap-override: 0%; }
@font-face { font-family: 'Manrope Fallback'; font-weight: 551 900; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'); size-adjust: 98.4%; ascent-override: 108.3%; descent-override: 30.5%; line-gap-override: 0%; }
@font-face { font-family: 'IBM Plex Mono Fallback'; src: local('Courier New'), local('CourierNewPSMT'), local('Liberation Mono'); size-adjust: 99.98%; ascent-override: 102.52%; descent-override: 27.5%; line-gap-override: 0%; }

:root {
  --night-950: #050812;
  --night-900: #080D1B;
  --night-850: #0B1122;
  --night-800: #10182E;
  --night-700: #18223D;
  --night-line: rgba(186, 208, 255, 0.12);
  --night-line-2: rgba(186, 208, 255, 0.2);
  --star: #E9EEF9;
  --star-2: #AFB8CF;
  --star-3: #7F8AA6;

  --mint: #3EE6B0;
  --mint-soft: #A8F5DA;
  --mint-ink: #0A7353;     /* mint for text on paper (≥4.5:1) */
  --apricot: #FFB48A;
  --honey: #F2C14E;
  --rose: #F48BC0;

  --paper: #FBF8F2;
  --paper-2: #F4EFE5;
  --paper-3: #EAE3D5;
  --ink: #131828;
  --ink-2: #464D62;
  --ink-3: #666B7F;     /* nudged from #6B7186 to clear 4.5:1 on --paper-2 */
  --line: #E2DACB;

  --font-display: 'Fraunces', 'Fraunces Fallback', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Manrope', 'Manrope Fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'IBM Plex Mono Fallback', ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --breath: 10s;
  /* motion tokens: calm, breathing (shared names with app/app.css) */
  --dur-1: 160ms;   /* hover, press */
  --dur-2: 260ms;   /* state change: toggles, pills, selection */
  --dur-3: 380ms;   /* entering content, accordions, drawers */
  --dur-4: 480ms;   /* number tweens, arcs and bars settling */
  --ease-out: cubic-bezier(.22, .8, .24, 1);
  --ease-in: cubic-bezier(.5, 0, .75, 0);
  --ease-breathe: cubic-bezier(.37, 0, .63, 1);
  --spring: linear(0, 0.046, 0.155, 0.295, 0.442, 0.581, 0.703, 0.804, 0.884, 0.944, 0.986, 1.013, 1.029, 1.037, 1.038, 1.036, 1.032, 1.026, 1.021, 1.015, 1.011, 1.007, 1.004, 1.002, 1);
  --press: .97;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--font-sans); font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--mint) 40%, transparent); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
.on-paper :focus-visible, .paper :focus-visible { outline-color: var(--mint-ink); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--mint); color: var(--night-900); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px); }

/* ---------- type ---------- */
.display, h1, h2, h3 { font-family: var(--font-display); font-weight: 380; letter-spacing: -0.025em; font-variation-settings: 'SOFT' 100, 'opsz' 144; margin: 0; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5.6rem); line-height: .98; }
h2 { font-size: clamp(2.05rem, 4.2vw, 3.6rem); line-height: 1.04; }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.15; letter-spacing: -0.015em; font-variation-settings: 'SOFT' 100, 'opsz' 48; }
h1 em, h2 em, h3 em, .display em { font-style: italic; font-weight: 320; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; }
.night h1 em, .night h2 em { color: var(--mint); }
.paper h2 em { color: var(--mint-ink); }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.08rem, 1.4vw, 1.28rem); line-height: 1.6; max-width: 60ch; }
.measure { max-width: 68ch; }
.eyebrow { font: 500 12px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.night .eyebrow { color: var(--mint); }
.paper .eyebrow { color: var(--mint-ink); }
.mono { font-family: var(--font-mono); font-size: .86em; letter-spacing: .01em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.night .muted { color: var(--star-3); }

/* ---------- surfaces ---------- */
.night { background: var(--night-900); color: var(--star); position: relative; isolation: isolate; }
.night .lede, .night p { color: var(--star-2); }
.paper { background: var(--paper); color: var(--ink); }
.paper .lede { color: var(--ink-2); }
.paper-2 { background: var(--paper-2); }
.section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.night .rule { background: var(--night-line); }

.stars-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 30%, rgba(62, 230, 176, .10), transparent 70%),
    radial-gradient(40% 40% at 15% 85%, rgba(255, 180, 138, .08), transparent 70%),
    linear-gradient(180deg, var(--night-950), var(--night-900) 60%, var(--night-850)); }
.stars-bg::after { content: ''; position: absolute; inset: 0; opacity: .7;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 33% 71%, #cfe 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 58% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 81% 63%, #fdd 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 18%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 46% 46%, #dff 50%, transparent 51%),
    radial-gradient(1px 1px at 7% 58%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 69% 88%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 24% 92%, #fec 50%, transparent 51%), radial-gradient(1.3px 1.3px at 74% 38%, #fff 50%, transparent 51%);
  background-size: 420px 420px; }

/* ---------- buttons ---------- */
.btn { --b: var(--mint); appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent; font: 600 15px/1 var(--font-sans); letter-spacing: .005em; text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), background-color .25s, border-color .25s, color .25s, box-shadow .35s var(--ease); white-space: nowrap; }
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--mint { background: var(--mint); color: #04231A; box-shadow: 0 0 0 0 rgba(62,230,176,.0); }
.btn--mint:hover { box-shadow: 0 10px 40px -10px rgba(62,230,176,.65); transform: translateY(-1px); }
.btn--ghost { border-color: var(--night-line-2); color: var(--star); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: rgba(62,230,176,.6); background: rgba(62,230,176,.06); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #222a40; transform: translateY(-1px); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.textlink { color: var(--mint-ink); font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease); padding-bottom: 2px; }
.textlink:hover { background-size: 100% 1.5px; }
.night .textlink { color: var(--mint); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; transition: background-color .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.site-header.is-solid { background: rgba(8, 13, 27, .94); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--night-line); }
.site-header__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--star); flex: none; }
.brand svg { width: 30px; height: 30px; }
.brand__word { font: 700 13px/1 var(--font-sans); letter-spacing: .2em; }
.brand__word em { font: italic 400 21px/1 var(--font-display); letter-spacing: -0.01em; margin-left: 0; /* the gap is a real space inside the em, so the link's name reads "SEVN Vital" */ color: var(--mint); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--night-line-2); color: var(--star-2);
  font: 500 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.pill:hover { border-color: var(--mint); color: var(--mint); }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--star-2); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 10px 12px; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--star); background: rgba(255,255,255,.05); }
.nav a[aria-current="page"] { color: var(--star); }
.nav a[aria-current="page"]::after { content: ''; display: block; height: 2px; width: 14px; margin: 3px auto -5px; border-radius: 2px; background: var(--mint); }
.nav a.btn { color: #04231A; }
.nav a.btn:hover { background: var(--mint); color: #04231A; }
.nav .btn { margin-left: 10px; min-height: 40px; padding: 0 16px; font-size: 14px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--night-line-2); background: transparent; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--star); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 17px; } .nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 28px; background: rgba(8,13,27,.97);
    backdrop-filter: blur(16px); border-bottom: 1px solid var(--night-line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .35s var(--ease), visibility .3s; margin: 0; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { font-size: 19px; padding: 15px 4px; border-bottom: 1px solid var(--night-line); border-radius: 0; font-family: var(--font-display); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--mint); }
  .nav .btn { margin: 20px 0 0; min-height: 52px; font-family: var(--font-sans); border-bottom: 0; border-radius: 999px; }
  .site-header .pill { display: none; }
  .site-header.menu-open { background: rgba(8,13,27,.97); }
}

/* ---------- disclaimer ---------- */
.disclaimer { display: inline-flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--star-2); max-width: 54ch; }
.disclaimer svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--mint); }
.paper .disclaimer { color: var(--ink-2); }
.paper .disclaimer svg { color: var(--mint-ink); }
.notice-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.notice-band .wrap { display: flex; gap: 14px; align-items: center; padding-top: 18px; padding-bottom: 18px; font-size: 14px; color: var(--ink-2); }
.notice-band svg { width: 18px; height: 18px; flex: none; color: var(--mint-ink); }
.notice-band strong { color: var(--ink); font-weight: 650; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(150px, 18vw, 220px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 15ch; }
.page-hero .lede { margin-top: 26px; }
.page-hero__art { position: absolute; right: max(-60px, calc(50% - 760px)); top: 50%; transform: translateY(-46%); width: min(560px, 46vw); opacity: .6; z-index: -1; pointer-events: none; }
.page-hero__art .breathe { transform-origin: 50% 50%; animation: breathe var(--breath) ease-in-out infinite; }
@media (max-width: 760px) { .page-hero__art { opacity: .35; width: 90vw; right: -30vw; } }

@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .85; } 45% { transform: scale(1.035); opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
/* The home hero copy rises in with CSS alone, so the headline paints with the first frame instead of waiting for scripts. */
.hero__copy .reveal { opacity: 1; transform: none; transition: none; animation: hero-rise .9s var(--ease) calc(var(--i, 0) * 80ms) both; }
@keyframes hero-rise { from { opacity: .01; transform: translateY(22px); } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__copy .reveal { animation: none; }
  .page-hero__art .breathe, .breathe { animation: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- HOME HERO ---------- */
.hero { min-height: max(760px, 100svh); padding: 120px 0 0; display: flex; flex-direction: column; overflow: hidden; }
.hero__stage { position: absolute; inset: 0; z-index: 0; }
.hero__stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__stage.is-live canvas { opacity: 1; }
.hero__poster { position: absolute; right: 8%; top: 47%; width: min(44vw, 600px); transform: translateY(-50%); transition: opacity 1.2s var(--ease); }
.hero__stage.is-live .hero__poster { opacity: 0; }
.hero__scrim { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, rgba(5,8,18,.92) 0%, rgba(5,8,18,.62) 30%, rgba(5,8,18,0) 56%), linear-gradient(0deg, rgba(5,8,18,.85), rgba(5,8,18,0) 30%); }
.hero__copy { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px; pointer-events: none; }
.hero__copy > .wrap > * { pointer-events: auto; }
.hero__copy h1 { max-width: 6.73em; font-size: clamp(2.7rem, 5vw, 4.6rem); } /* 11.5ch of Fraunces, in em so the fallback font wraps the same */
.hero__copy .lede { max-width: 25.6em !important; } /* 42ch of Manrope */
.hero__copy .lede { margin: 28px 0 34px; max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.hero__dock { position: relative; z-index: 3; padding-bottom: 26px; }
.dock { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px 22px; align-items: center; padding: 14px 16px 14px 14px; border-radius: 22px;
  background: rgba(12, 18, 36, .62); border: 1px solid var(--night-line); backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--night-line); }
.seg button { appearance: none; border: 0; background: transparent; color: var(--star-2); min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px;
  display: inline-flex; gap: 8px; align-items: center; transition: background-color .25s, color .25s; white-space: nowrap; }
.seg button small { font: 500 11px/1 var(--font-mono); opacity: .7; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--mint); color: #04231A; }
.seg button:not([aria-pressed="true"]):not([aria-selected="true"]):hover { color: var(--star); background: rgba(255,255,255,.06); }
.scrub { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; min-width: 0; }
.scrub__label { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; font: 500 12px/1.2 var(--font-mono); color: var(--star-3); letter-spacing: .04em; }
.scrub__label strong { color: var(--star); font-weight: 500; }
.iconbtn { appearance: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--night-line-2); background: rgba(255,255,255,.03); color: var(--star); cursor: pointer; display: grid; place-items: center; flex: none; transition: border-color .2s, background-color .2s; }
.iconbtn:hover { border-color: var(--mint); background: rgba(62,230,176,.08); }
.iconbtn svg { width: 16px; height: 16px; }
.dock__tools { display: flex; gap: 8px; }
.dock__kpis { display: flex; gap: 22px; padding: 0 22px; border-left: 1px solid var(--night-line); border-right: 1px solid var(--night-line); }
.dock__kpis .kpi__value { font-size: 38px; }
.dock__kpis .kpi__value--sm { font-size: 24px; padding-top: 4px; }
.dock__kpis .kpi__label { margin-bottom: 4px; }
.dock__kpis .covbar i { width: 12px; flex: none; }
.chipbtn { appearance: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--night-line-2); background: transparent; color: var(--star-2); font-size: 13.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.chipbtn:hover, .chipbtn[aria-pressed="true"] { color: var(--star); border-color: var(--mint); }
.chipbtn svg { width: 15px; height: 15px; }

input[type="range"].range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"].range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--mint) var(--p, 100%), rgba(186,208,255,.18) var(--p, 100%)); }
input[type="range"].range::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(186,208,255,.18); }
input[type="range"].range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--mint); }
input[type="range"].range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--star); border: 4px solid var(--mint); box-shadow: 0 0 0 6px rgba(62,230,176,.16); transition: box-shadow .25s; }
input[type="range"].range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--star); border: 4px solid var(--mint); }
input[type="range"].range:focus-visible { outline: none; }
input[type="range"].range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 7px rgba(62,230,176,.4); }
.paper input[type="range"].range::-webkit-slider-runnable-track, .light-range::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--mint-ink) var(--p, 100%), var(--paper-3) var(--p, 100%)) !important; }
.paper input[type="range"].range::-webkit-slider-thumb { background: #fff; border-color: var(--mint-ink); box-shadow: 0 0 0 6px rgba(10,115,83,.12); }

.readout { position: absolute; z-index: 3; right: var(--gutter); top: 116px; width: 272px; padding: 16px 18px; border-radius: 18px; background: rgba(12,18,36,.58);
  border: 1px solid var(--night-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--star); }
.readout__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kpi__label { font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--star-3); margin-bottom: 6px; }
.kpi__value { font: 340 46px/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; font-variation-settings: 'SOFT' 100, 'opsz' 144; }
.kpi__value small { font: 500 13px/1 var(--font-sans); color: var(--star-3); letter-spacing: 0; margin-left: 4px; }
.kpi__value.is-insufficient { font-size: 22px; line-height: 1.1; color: var(--apricot); }
.covbar { display: flex; gap: 3px; margin-top: 10px; }
.covbar i { flex: 1; height: 6px; border-radius: 3px; background: rgba(186,208,255,.14); }
.covbar i.on { background: var(--mint); }
.readout__sel { font-size: 13.5px; color: var(--star-2); }
.readout__sel h3 { font: 600 15px/1.3 var(--font-sans); letter-spacing: 0; color: var(--star); display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.readout__sel h3 i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.readout__sel p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--star-2); }
.readout__sel dl { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; margin: 10px 0 0; font-size: 12.5px; }
.readout__sel dt { color: var(--star-3); } .readout__sel dd { margin: 0; text-align: right; color: var(--star); font-variant-numeric: tabular-nums; }
.readout__note { margin-top: 12px; font: 500 10.5px/1.45 var(--font-mono); color: var(--star-3); letter-spacing: .02em; }

.c-label { pointer-events: auto; font: 600 12px/1.15 var(--font-sans); color: var(--star-2); text-align: center; padding: 6px 10px; border-radius: 12px; background: rgba(8,13,27,.35);
  border: 1px solid transparent; backdrop-filter: blur(6px); cursor: pointer; white-space: nowrap; transition: border-color .25s, background-color .25s, transform .3s var(--ease); user-select: none; }
.c-label b { display: block; font: 400 19px/1.05 var(--font-display); letter-spacing: -0.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.c-label .st { display: block; font: 500 9.5px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--apricot); margin-top: 3px; }
.c-label:hover, .c-label.is-active { border-color: var(--c, var(--mint)); background: rgba(8,13,27,.82); }
.c-label.is-missing b { color: var(--star-3); font-size: 15px; }
.c-label:focus-visible { outline: 2px solid var(--mint); }
.c-core { pointer-events: none; text-align: center; color: var(--star); font: 500 9.5px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.c-core b { display: block; font: 330 30px/1 var(--font-display); letter-spacing: -0.03em; text-transform: none; margin-bottom: 2px; }

@media (max-width: 600px) { .c-core { display: none; } .c-label { font-size: 11px; padding: 4px 7px; } .c-label b { font-size: 16px; } }
.hero-table { margin-top: 14px; display: none; }
.hero-table.is-open { display: block; }
.dtable { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.dtable th, .dtable td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dtable thead th { font: 500 11px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.dtable td.r, .dtable th.r { text-align: right; }
.night .dtable th, .night .dtable td { border-color: var(--night-line); }
.night .dtable thead th { color: var(--star-3); }
.night .dtable td { color: var(--star-2); } .night .dtable td:first-child, .night .dtable th[scope="row"] { color: var(--star); }
.dtable caption { text-align: left; font-size: 13px; color: var(--star-3); padding-bottom: 8px; }
.paper .dtable caption { color: var(--ink-3); }
.swatch { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.tablewrap { overflow-x: auto; border-radius: 14px; }
.night .hero-table .tablewrap { background: rgba(8,13,27,.95); border: 1px solid var(--night-line); padding: 6px 10px; backdrop-filter: blur(14px); }

@media (max-width: 1100px) { .readout { width: 260px; } }
@media (max-width: 1180px) { .dock { grid-template-columns: auto minmax(0, 1fr) auto; } .dock__tools { grid-column: 1 / -1; justify-content: flex-end; } }
@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 104px; }
  .hero__copy { padding-bottom: 0; order: 1; }
  .hero__stage { order: 2; } .readout { order: 3; } .hero__dock { order: 4; }
  .hero__stage { position: relative; inset: auto; height: 460px; margin-top: 8px; }
  .hero__poster { width: 100%; right: 0; }
  .hero__scrim { background: linear-gradient(0deg, rgba(5,8,18,.6), rgba(5,8,18,0) 20%); }
  .readout { position: relative; right: auto; top: auto; width: auto; margin: 0 var(--gutter) 14px; }
  .dock { grid-template-columns: 1fr; }
  .dock__kpis { border: 0; padding: 0; order: -1; justify-content: space-between; }
  .dock__tools { grid-column: auto; }
  .dock__tools { justify-content: space-between; }
  .seg { width: 100%; } .seg button { flex: 1; justify-content: center; padding: 0 8px; }
  .hero__copy h1 { font-size: clamp(2.5rem, 11vw, 3.6rem); }
}

/* ---------- home sections ---------- */
.statement { font: 330 clamp(1.75rem, 3.4vw, 3rem)/1.18 var(--font-display); letter-spacing: -0.02em; font-variation-settings: 'SOFT' 100, 'opsz' 144; max-width: 24ch; margin: 0; }
.statement em { font-style: italic; color: var(--mint-ink); }


.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 900px) { .split, .split--rev { grid-template-columns: 1fr; } }

/* missing-not-zero lab */
.lab { border-radius: 26px; padding: clamp(20px, 3vw, 34px); background: linear-gradient(180deg, rgba(24,34,61,.7), rgba(16,24,46,.6)); border: 1px solid var(--night-line); }
.lab__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.lab__head .mono { color: var(--star-3); font-size: 12px; }
.lab__chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.labchip { appearance: none; text-align: left; min-height: 66px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--night-line-2); background: rgba(255,255,255,.03); cursor: pointer; color: var(--star);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; transition: border-color .25s, background-color .25s, opacity .25s; }
.labchip span { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.labchip span i { width: 8px; height: 8px; border-radius: 50%; }
.labchip b { font: 380 24px/1 var(--font-display); grid-row: span 2; font-variant-numeric: tabular-nums; }
.labchip small { font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .06em; color: var(--star-3); text-transform: uppercase; }
.labchip[aria-pressed="false"] { border-style: dashed; background: transparent; }
.labchip[aria-pressed="false"] b { color: var(--star-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.labchip[aria-pressed="false"] small { color: var(--apricot); }
.labchip:hover { border-color: var(--mint); }
.lab__out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.lab__tile { border-radius: 16px; padding: 18px; background: rgba(5,8,18,.45); border: 1px solid var(--night-line); }
.lab__tile .kpi__value { font-size: 52px; }
.lab__wrong { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; border-radius: 14px; padding: 14px 16px; border: 1px dashed rgba(255,180,138,.4); color: var(--star-2); font-size: 14px; }
.lab__wrong b { font: 380 26px/1 var(--font-display); color: var(--apricot); text-decoration: line-through; text-decoration-thickness: 1.5px; min-width: 52px; }
@media (max-width: 560px) { .lab__chips { grid-template-columns: 1fr 1fr; } .lab__tile .kpi__value { font-size: 40px; } }

/* small multiples */
.multiples { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); margin-top: 56px; }
.multiple { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 16px; }
.multiple header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.multiple h3 { font-size: 1.45rem; }
.multiple .mono { color: var(--ink-3); font-size: 12px; }
.multiple p { font-size: 14px; color: var(--ink-2); margin: 10px 0 0; }
@media (max-width: 960px) { .multiples { grid-template-columns: 1fr; } }

/* explorer showcase */
.showcase { position: relative; border-radius: 26px; overflow: hidden; border: 1px solid var(--night-line); background: var(--night-850); box-shadow: 0 50px 120px -40px rgba(5,8,18,.6); }
.mock { display: grid; grid-template-columns: 190px 1fr; min-height: 470px; font-size: 12px; color: var(--star-2); }
.mock__side { border-right: 1px solid var(--night-line); padding: 16px 12px; display: flex; flex-direction: column; gap: 3px; background: rgba(5,8,18,.4); }
.mock__side b { color: var(--star); font: 600 12px var(--font-sans); padding: 6px 8px 14px; }
.mock__side span { padding: 7px 8px; border-radius: 7px; } .mock__side span.on { background: rgba(62,230,176,.12); color: var(--mint); }
.mock__main { padding: 20px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; align-content: start; }
.mock__card { border: 1px solid var(--night-line); border-radius: 12px; padding: 14px; background: rgba(255,255,255,.02); }
.mock__card .kpi__value { font-size: 40px; }
.mock__dims { display: grid; gap: 9px; margin-top: 10px; }
.mock__dims div { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 10px; }
.mock__dims span { display: flex; align-items: center; gap: 7px; color: var(--star-2); }
.mock__dims i { width: 7px; height: 7px; border-radius: 50%; }
.mock__dims em { height: 6px; border-radius: 3px; background: rgba(186,208,255,.08); display: block; font-style: normal; }
.mock__dims em.na { height: auto; background: none; font: 500 10px var(--font-mono); color: var(--apricot); letter-spacing: .04em; }
.mock__dims b { display: block; height: 100%; border-radius: 3px; }
.mock__dims strong { font: 400 15px var(--font-display); color: var(--star); text-align: right; }
.screens { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 0 28px; }
.screens li { padding: 13px 0; border-top: 1px solid var(--night-line); display: flex; gap: 12px; font-size: 15px; color: var(--star-2); }
.screens li b { color: var(--star); font-weight: 600; min-width: 0; }

@media (max-width: 700px) { .mock { grid-template-columns: 1fr; } .mock__side { display: none; } .mock__main { grid-template-columns: 1fr; } .screens { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } }


.cta-final { text-align: center; }
.cta-final h2 { max-width: 16ch; margin: 0 auto; font-size: clamp(2.4rem, 5.5vw, 4.6rem); }
.cta-final .lede { margin: 26px auto 34px; }
.cta-final .hero__ctas { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--night-950); color: var(--star-2); padding: 72px 0 34px; position: relative; overflow: hidden; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h2 { font: 330 clamp(1.6rem, 2.6vw, 2.2rem)/1.15 var(--font-display); color: var(--star); max-width: 18ch; letter-spacing: -0.02em; }
.site-footer h2 em { color: var(--mint); }
.site-footer h3 { font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--star-3); margin: 6px 0 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer a { text-decoration: none; color: var(--star-2); display: inline-block; padding: 6px 0; }
.site-footer a:hover { color: var(--mint); }
.site-footer__base { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--night-line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--star-3); }
.site-footer__base a { color: var(--star-2); text-decoration: underline; text-decoration-color: rgba(62,230,176,.5); text-underline-offset: 3px; padding: 0; }
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- content pages ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 0 0 20px; }
.prose h3 { margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: var(--ink); }
.toc { position: sticky; top: 100px; align-self: start; display: grid; gap: 2px; font-size: 14px; }
.toc a { text-decoration: none; color: var(--ink-3); padding: 8px 0 8px 14px; border-left: 1px solid var(--line); transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.is-active { color: var(--ink); border-color: var(--mint-ink); }
.toc .mono { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.with-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
@media (max-width: 900px) { .with-toc { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 32px); }
.card--paper2 { background: var(--paper-2); }
.formula { font: 400 clamp(1.15rem, 2.2vw, 1.7rem)/1.5 var(--font-display); letter-spacing: -0.01em; padding: clamp(22px, 3vw, 40px); border-radius: var(--radius); background: var(--night-850); color: var(--star); overflow-x: auto; }
.formula .frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 .3em; }
.formula .frac > span:first-child { border-bottom: 1px solid var(--star-3); padding: 0 .4em .15em; }
.formula .frac > span:last-child { padding: .15em .4em 0; }
.formula .m { color: var(--mint); font-style: italic; }
.formula .w { color: var(--apricot); font-style: italic; }
.formula small { display: block; font: 500 12px/1.6 var(--font-mono); color: var(--star-3); margin-top: 18px; letter-spacing: .02em; }

.callout { background: color-mix(in srgb, var(--mint-ink) 7%, transparent); border-radius: 10px; padding: 14px 18px; color: var(--ink-2); }
.callout strong { color: var(--ink); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 500 11px/1 var(--font-mono); letter-spacing: .04em; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.tag--ok { background: #E3F6EE; color: #0A5E44; }
.tag--warn { background: #FCEBDD; color: #8A3D12; }
.tag--off { background: #ECEAF2; color: #4A4766; }
.tag--scen { background: #EEE9FF; color: #4B3BAF; }
.tag svg { width: 12px; height: 12px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 26px 0; font: 380 clamp(1.2rem, 2vw, 1.55rem)/1.3 var(--font-display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .35s var(--ease), background-color .25s; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 11px; right: 11px; top: 17px; height: 1.5px; background: var(--ink); border-radius: 2px; }
.faq summary i::after { transform: rotate(90deg); transition: transform .35s var(--ease); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq details[open] summary i { background: var(--paper-2); }
.faq .faq__a { padding: 0 0 28px; max-width: 68ch; color: var(--ink-2); }
.faq .faq__a p:last-child { margin: 0; }

/* example page */
.persona-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.personas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.persona { appearance: none; text-align: left; border-radius: 18px; padding: 18px; border: 1px solid var(--night-line-2); background: rgba(255,255,255,.03); color: var(--star); cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; transition: border-color .25s, background-color .25s; }
.persona__av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 400 22px/1 var(--font-display); grid-row: span 2; background: radial-gradient(circle at 35% 30%, rgba(62,230,176,.35), rgba(62,230,176,.06)); border: 1px solid rgba(62,230,176,.3); }
.persona b { font-weight: 650; font-size: 16px; } .persona b small { font: 500 12px var(--font-mono); color: var(--star-3); margin-left: 6px; }
.persona span { font-size: 13px; color: var(--star-3); line-height: 1.35; }
.persona[aria-pressed="true"] { border-color: var(--mint); background: rgba(62,230,176,.08); }
.persona:hover { border-color: rgba(62,230,176,.6); }
@media (max-width: 760px) { .personas { grid-template-columns: 1fr; } }

.ex-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 1000px) { .ex-grid { grid-template-columns: 1fr; } }
.radial-card { background: var(--night-850); color: var(--star); border-radius: 24px; padding: 22px; position: relative; overflow: hidden; }
.radial-card svg { width: 100%; height: auto; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.tile .kpi__label { color: var(--ink-3); }
.tile .kpi__value { color: var(--ink); }
.tile .kpi__value small { color: var(--ink-3); }
.tile .covbar i { background: var(--paper-3); } .tile .covbar i.on { background: var(--mint-ink); }
.tile p { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; }
.dimrows { display: grid; gap: 8px; margin-top: 12px; }
.dimrow { appearance: none; width: 100%; text-align: left; display: grid; grid-template-columns: 14px minmax(0, 1.3fr) minmax(0, 1fr) 52px; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, box-shadow .3s; min-height: 60px; }
.dimrow:hover { border-color: var(--ink-3); }
.dimrow[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 8px 30px -14px rgba(19,24,40,.35); }
.dimrow i { width: 10px; height: 10px; border-radius: 50%; }
.dimrow b { font-weight: 650; font-size: 15px; display: block; }
.dimrow small { font-size: 12.5px; color: var(--ink-3); display: block; line-height: 1.35; }
.dimrow svg { width: 100%; height: 28px; }
.dimrow .score { font: 380 26px/1 var(--font-display); text-align: right; font-variant-numeric: tabular-nums; }
.dimrow .score.na { font: 500 11px/1.2 var(--font-mono); color: #8A3D12; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 560px) { .dimrow { grid-template-columns: 12px minmax(0, 1fr) 48px; } .dimrow svg { display: none; } }

.chartcard { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 12px; margin-top: 16px; }
.chartcard header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.chartcard h3 { font-size: 1.35rem; }
.chartcard .sub { font-size: 13px; color: var(--ink-3); margin: 4px 0 0; }

/* charts (shared) */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text, .chart text.axis { fill: var(--ink-3); font: 500 11px var(--font-mono); }
.chart .gapband { fill: url(#hatch); }
.chart-tip { position: absolute; pointer-events: none; z-index: 5; min-width: 140px; padding: 10px 12px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 12.5px; line-height: 1.4; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; white-space: nowrap; }
.chart-tip.is-on { opacity: 1; transform: none; }
.chart-tip b { font-weight: 650; } .chart-tip .mono { opacity: .7; font-size: 11px; }
.night .chart .grid line { stroke: rgba(186,208,255,.1); }
.night .chart .axis text, .night .chart text.axis { fill: var(--star-3); }
.night .chart-tip { background: var(--star); color: var(--night-900); }

.range-seg { background: var(--paper-2); border-color: var(--line); }
.range-seg button { color: var(--ink-2); min-height: 38px; }
.range-seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.range-seg button:not([aria-pressed="true"]):hover { color: var(--ink); background: rgba(19,24,40,.05); }

/* method page widgets */
.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } }
.wrow { display: grid; grid-template-columns: minmax(0, 1.3fr) 54px minmax(0, 1.4fr) 104px; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wrow label { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.wrow .s { font: 380 22px/1 var(--font-display); text-align: right; font-variant-numeric: tabular-nums; }
.wrow .s.na { font: 500 10.5px/1.2 var(--font-mono); color: #8A3D12; text-transform: uppercase; }
.wrow .c { font: 500 13px var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.wrow input[type="range"] { height: 36px; }
@media (max-width: 560px) { .wrow { grid-template-columns: minmax(0, 1fr) 46px 96px; } .wrow .c { font-size: 11.5px; } .wrow input[type="range"] { grid-column: 1 / -1; grid-row: 2; } }
.stackbar { display: flex; gap: 2px; height: 22px; border-radius: 6px; overflow: hidden; margin: 16px 0 10px; background: var(--paper-3); }
.stackbar span { height: 100%; transition: flex-grow .5s var(--ease); min-width: 0; }
.worked { font: 500 13.5px/1.9 var(--font-mono); color: var(--ink-2); background: var(--paper-2); border-radius: 12px; padding: 16px 18px; overflow-x: auto; white-space: nowrap; }
.worked b { color: var(--ink); font-weight: 600; }

.steps { counter-reset: s; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 32px 0; border-top: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font: 500 13px/1.6 var(--font-mono); color: var(--mint-ink); letter-spacing: .08em; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-2); max-width: 66ch; }

.entity { font: 500 13px/1.7 var(--font-mono); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; color: var(--ink); }

.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
@media (max-width: 820px) { .twocol { grid-template-columns: 1fr; } }

.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 80px; }

/* dimensions page */
.dim-section { padding: 0 0 clamp(64px, 8vw, 110px); scroll-margin-top: 100px; }
.dim-section + .dim-section { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); }
.dim-section__head { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; }
.dim-section__glyph { width: 72px; height: 72px; flex: none; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.dim-section__glyph svg { width: 44px; height: 44px; }
.dim-section h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.dim-section__head .mono.muted { margin: 0 0 4px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.dim-section .lede { color: var(--ink-2); }
.dim-kv { margin: 28px 0 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); gap: 12px 28px; }
.dim-section figure { margin: 28px 0 0; }
.dim-section figcaption { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }
.select { appearance: none; width: 100%; min-height: 46px; padding: 0 40px 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23464D62' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center / 12px; font: 500 15px var(--font-sans); color: var(--ink); }
@media (max-width: 720px) { .sc-grid { grid-template-columns: 1fr !important; } }
pre.formula { white-space: pre; }
@media (max-width: 820px) { [data-cols3], [data-cols2] { grid-template-columns: 1fr !important; } }

.site-footer a.brand { display: inline-flex; }
.dim-section h2 + .lede { margin-top: 18px; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin: 4px 0 8px 44px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 50%; }
.night .chart-legend { color: var(--star-2); }

@media (max-width: 600px) { .step { grid-template-columns: 1fr; gap: 6px; } .page-hero__art { display: none; } }
@media (min-width: 901px) {
  .hero__dock .wrap { position: relative; }
  .hero-table { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(100% + 10px); margin: 0; max-height: 52vh; overflow: auto; z-index: 4; }
}

/* =========================================================
   ROUND 2 — home scroll stories
   ========================================================= */

/* ---------- A day in the data (fly-through) ----------
   Default = calm static sequence (no JS, Motion unavailable, or reduced motion).
   .is-live (added by stories.js) = pinned cinematic overlay. */
.flight { --ss-bg: var(--night-950); --ss-accent: var(--mint); background: var(--night-950); color: var(--star); }
.flight .ss__stage { display: flex; flex-direction: column; background: var(--night-950); }
.flight .ss__frame { display: block; width: 100%; height: max(240px, 43vw); object-fit: cover; filter: saturate(.92); }
/* Image audit: keep the stretcher's hands and feet (kf-04) and the corrugated roofline (kf-06) in the letterbox crop. */
.flight .ss__frame:nth-of-type(4) { object-position: 50% 65%; }
.flight .ss__frame:nth-of-type(6) { object-position: 50% 90%; }
.flight__head { order: 0; padding-top: clamp(72px, 9vw, 120px); padding-bottom: 28px; }
.flight__head h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); color: var(--star); }
.flight__head h2 em { color: var(--mint); }
.flight__caps { display: contents; }
.flight__cap { padding: 22px var(--gutter) 52px; width: 100%; max-width: var(--maxw); margin: 0 auto; }
.flight__cap p { margin: 0; color: var(--star); font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.55; text-wrap: pretty; max-width: 52ch; }
.flight__cap .textlink { display: inline-block; margin-top: 16px; }
.flight__time { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px !important; font: 600 13px/1 var(--font-sans) !important; letter-spacing: .02em; color: var(--star-2) !important; }
.flight__time .num { font: 330 clamp(2.6rem, 4.6vw, 4.2rem)/.9 var(--font-display); letter-spacing: -0.03em; color: var(--star); font-variation-settings: 'SOFT' 100, 'opsz' 144; }
.flight__note { order: 20; margin: 0; padding: 0 var(--gutter) 40px; font: 500 10.5px/1.4 var(--font-mono); letter-spacing: .05em; color: var(--star-2); max-width: var(--maxw); width: 100%; margin: 0 auto; }
.flight__scrim, .flight__dims, .flight .ss__progress { display: none; }
  .flight .ss__frame:nth-of-type(1) { order: 1; } .flight__cap:nth-of-type(1) { order: 2; }
  .flight .ss__frame:nth-of-type(2) { order: 3; } .flight__cap:nth-of-type(2) { order: 4; }
  .flight .ss__frame:nth-of-type(3) { order: 5; } .flight__cap:nth-of-type(3) { order: 6; }
  .flight .ss__frame:nth-of-type(4) { order: 7; } .flight__cap:nth-of-type(4) { order: 8; }
  .flight .ss__frame:nth-of-type(5) { order: 9; } .flight__cap:nth-of-type(5) { order: 10; }
  .flight .ss__frame:nth-of-type(6) { order: 11; } .flight__cap:nth-of-type(6) { order: 12; }

.flight.is-live .ss__stage { display: block; }
.flight.is-live .ss__frame { height: 100%; }
.flight.is-live .flight__scrim { display: block; position: absolute; inset: 0; z-index: 20; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,8,18,.72) 0%, rgba(5,8,18,0) 26%),
    linear-gradient(0deg, rgba(5,8,18,.9) 0%, rgba(5,8,18,.55) 26%, rgba(5,8,18,0) 52%); }
.flight.is-live .ss__progress { display: block; z-index: 22; }
.flight.is-live .flight__head { position: absolute; z-index: 21; left: 0; right: 0; top: 96px; padding: 0 var(--gutter); }
.flight.is-live .flight__caps { display: block; position: absolute; z-index: 21; left: 0; right: 0; bottom: clamp(56px, 9vh, 96px); }
.flight.is-live .flight__cap { left: var(--gutter); bottom: 0; max-width: 44ch; padding: 0; margin: 0; width: auto; }
.flight.is-live .flight__note { position: absolute; z-index: 21; right: var(--gutter); bottom: 18px; padding: 0; width: auto; text-align: right; }
.flight.is-live .flight__dims { position: absolute; z-index: 21; right: var(--gutter); bottom: clamp(56px, 9vh, 96px); list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.flight__dims li { display: flex; align-items: center; justify-content: flex-end; gap: 10px; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--star-3); transition: color .5s var(--ease); }
.flight__dims li i { order: 2; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--star-3); transition: background-color .5s var(--ease), border-color .5s, box-shadow .5s; }
.flight__dims li.is-on { color: var(--star); }
.flight__dims li.is-on i { background: var(--c); border-color: var(--c); box-shadow: 0 0 14px var(--c); }
.flight__dims li.is-seen:not(.is-on) i { border-color: var(--c); }
@media (max-width: 760px) {
  .flight.is-live .flight__head { top: 86px; }
  .flight.is-live .flight__note { left: var(--gutter); text-align: left; bottom: 12px; }
  .flight.is-live .flight__dims { display: none; }
  .flight.is-live .flight__caps { bottom: 56px; }
  .flight.is-live .flight__cap { right: var(--gutter); }
}

/* ---------- One number, six layers (breakdown) ---------- */
.anatomy { color: var(--star); }
.anatomy__stage { padding: clamp(80px, 10vw, 140px) 0; }
.anatomy__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.anatomy__copy h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); max-width: 12ch; }
.anatomy__steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 26px; }
.anatomy__steps h3 { font: 600 15px/1.3 var(--font-sans); letter-spacing: 0; color: var(--star); margin-bottom: 6px; }
.anatomy__steps p { margin: 0; color: var(--star-2); max-width: 44ch; }
.anatomy__dots { display: none; }
.anatomy__fig { position: relative; }
.anatomy__index { margin: 0 0 18px; display: flex; align-items: baseline; gap: 16px; }
.anatomy__index b { font: 330 clamp(4rem, 7vw, 6rem)/.9 var(--font-display); letter-spacing: -0.04em; font-variation-settings: 'SOFT' 100, 'opsz' 144; color: var(--star); }
.anatomy__index small { font: 500 11px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--star-3); max-width: 16ch; }
.anatomy__stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; position: relative; }
.layer { --pw: clamp(150px, 19vw, 250px); display: grid; grid-template-columns: var(--pw) minmax(0, 1fr); align-items: center; gap: clamp(14px, 2vw, 28px); min-height: 76px; position: relative; }
.plate { width: var(--pw); height: auto; overflow: visible; }
.plate__body { fill: color-mix(in srgb, var(--c) 16%, rgba(8,13,27,.82)); stroke: color-mix(in srgb, var(--c) 55%, transparent); stroke-width: 1.2; }
.plate__arc { fill: none; stroke: var(--c); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 60%, transparent)); }
.layer--missing .plate__body { fill: transparent; stroke: var(--star-3); stroke-dasharray: 5 6; stroke-width: 1.4; }
.layer::before { content: ''; position: absolute; left: calc(var(--pw) * .96); width: clamp(10px, 1.4vw, 22px); top: 50%; height: 1px; background: color-mix(in srgb, var(--c) 50%, transparent); }
.layer--missing::before { background: none; border-top: 1px dashed var(--star-3); }
.layer__label p { margin: 0; }
.layer__name { display: flex; align-items: baseline; gap: 10px; font: 600 14.5px/1.25 var(--font-sans); color: var(--star) !important; }
.layer__name i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; transform: translateY(-1px); }
.layer--missing .layer__name i { background: none; border: 1px dashed var(--star-2); }
.layer__name b { margin-left: auto; font: 380 24px/1 var(--font-display); color: var(--star); padding-left: 12px; }
.layer--missing .layer__name b { color: var(--star-3); }
.layer__meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font: 500 11.5px/1.5 var(--font-mono); color: var(--star-2); margin-top: 4px !important; }
.layer__meta b { color: var(--apricot); font-weight: 500; }
.layer__src { font-size: 12.5px; color: var(--star-3) !important; line-height: 1.45; }
.layer__status { font: 500 11px/1.5 var(--font-mono); letter-spacing: .04em; color: color-mix(in srgb, var(--c) 75%, white) !important; }
.layer--missing .layer__status { color: var(--apricot) !important; }
.anatomy__formula { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--night-line); }
.anatomy__eq { margin: 0; font: 400 clamp(1.1rem, 1.9vw, 1.55rem)/1.4 var(--font-display); color: var(--star); letter-spacing: -0.01em; }
.anatomy__eq b { font-weight: 500; color: var(--mint); white-space: nowrap; }
.anatomy__fine { margin: 8px 0 0; font: 500 11px/1.5 var(--font-mono); color: var(--star-3) !important; letter-spacing: .03em; }

/* scrubbed mode (JS on, motion allowed) */
.anatomy.is-scrub { height: 440vh; }
.anatomy.is-scrub .anatomy__stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 72px 0 0; display: flex; align-items: center; overflow: hidden; }
.anatomy.is-scrub .anatomy__steps { position: relative; display: block; min-height: 190px; }
.anatomy.is-scrub .anatomy__steps li { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .6s var(--ease); }
.anatomy.is-scrub .anatomy__steps li.is-active { opacity: 1; transform: none; }
.anatomy.is-scrub .anatomy__dots { display: flex; gap: 8px; margin-top: 8px; }
.anatomy.is-scrub .anatomy__dots i { width: 22px; height: 3px; border-radius: 2px; background: var(--night-line-2); transition: background-color .4s; }
.anatomy.is-scrub .anatomy__dots i.is-on { background: var(--mint); }
.anatomy.is-scrub .anatomy__index { position: absolute; z-index: 10; left: 0; width: var(--pw-fig); top: var(--idx-top, 40%); margin: 0; flex-direction: column; align-items: center; gap: 6px; text-align: center; pointer-events: none; will-change: opacity, transform; }
.anatomy.is-scrub .anatomy__index small { max-width: none; white-space: nowrap; }
.anatomy.is-scrub .layer, .anatomy.is-scrub .layer__label { will-change: transform, opacity; }
.anatomy.is-scrub .anatomy__formula { position: absolute; left: 0; right: 0; top: var(--formula-top, 62%); margin: 0; border: 0; will-change: opacity, transform; }
.anatomy.is-scrub .layer.is-focus .layer__label { background: rgba(255,180,138,.06); box-shadow: 0 0 0 1px rgba(255,180,138,.35); border-radius: 10px; }
.anatomy.is-scrub .layer__label { padding: 6px 10px; margin: -6px -10px; transition: background-color .4s, box-shadow .4s; }

@media (max-width: 900px) {
  .anatomy__grid { grid-template-columns: 1fr; }
  .layer { --pw: 118px; min-height: 64px; gap: 14px; }
  .layer__name { font-size: 13px; }
  .layer__name b { font-size: 19px; }
  .layer__meta { font-size: 10.5px; gap: 0 10px; }
  .layer__src { display: none; }
  .anatomy.is-scrub { height: 380vh; }
  .anatomy.is-scrub .anatomy__stage { align-items: flex-start; padding-top: 84px; }
  .anatomy.is-scrub .anatomy__grid { gap: 14px; height: calc(100svh - 96px); grid-template-rows: auto 1fr; }
  .anatomy.is-scrub .anatomy__copy h2 { font-size: 1.75rem; max-width: none; }
  .anatomy.is-scrub .anatomy__steps { margin-top: 10px; min-height: 128px; }
  .anatomy.is-scrub .anatomy__steps h3 { font-size: 14px; }
  .anatomy.is-scrub .anatomy__steps p { font-size: 14px; line-height: 1.5; }
  .anatomy.is-scrub .anatomy__copy { order: 2; }
  .anatomy.is-scrub .anatomy__fig { order: 1; }
  .anatomy.is-scrub .anatomy__index b { font-size: 3.4rem; }
  .anatomy.is-scrub .anatomy__index { left: calc(var(--pw-fig) + 20px); width: auto; top: var(--idx-mid, 30%); align-items: flex-start; text-align: left; }
  .anatomy.is-scrub .anatomy__index small { white-space: normal; max-width: 22ch; }
  .anatomy.is-scrub .anatomy__eq { font-size: 1rem; }
}
@media (max-width: 900px) and (max-height: 760px) {
  .anatomy.is-scrub .layer { min-height: 54px; }
  .anatomy.is-scrub .layer__meta span + span { display: none; }
}

/* ---------- six dimensions, photographic ---------- */
.dimlist { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 36px); row-gap: clamp(40px, 5vw, 72px); }
.dimitem { display: flex; flex-direction: column; gap: 18px; text-decoration: none; color: var(--ink); }
.dimitem__media { display: block; overflow: hidden; border-radius: 6px; background: var(--paper-3); aspect-ratio: 3 / 2; }
.dimitem__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.dimitem:hover .dimitem__media img { transform: scale(1.035); }
.dimitem__txt { display: grid; gap: 6px; max-width: 46ch; }
.dimitem__name { display: flex; align-items: center; gap: 10px; font: 380 clamp(1.4rem, 2vw, 1.75rem)/1.15 var(--font-display); letter-spacing: -0.015em; font-variation-settings: 'SOFT' 100, 'opsz' 48; }
.dimitem__name i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.dimitem__name::after { content: '→'; font-family: var(--font-sans); font-size: .7em; color: var(--ink-3); transition: transform .35s var(--ease), color .25s; }
.dimitem:hover .dimitem__name::after { transform: translateX(4px); color: var(--ink); }
.dimitem__desc { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.dimitem__units { font: 500 11.5px/1.4 var(--font-mono); color: var(--ink-3); letter-spacing: .02em; }
.dimitem--1 { grid-column: 1 / span 7; }
.dimitem--2 { grid-column: 9 / span 4; margin-top: clamp(40px, 10vw, 160px); }
.dimitem--2 .dimitem__media, .dimitem--3 .dimitem__media, .dimitem--6 .dimitem__media { aspect-ratio: 4 / 5; }
.dimitem--2 img, .dimitem--3 img, .dimitem--6 img { object-position: 72% 50%; }
.dimitem--3 { grid-column: 2 / span 4; }
.dimitem--4 { grid-column: 7 / span 6; margin-top: clamp(30px, 8vw, 120px); }
.dimitem--5 { grid-column: 1 / span 6; }
.dimitem--6 { grid-column: 8 / span 4; margin-top: clamp(-80px, -6vw, -20px); }
.dims__credit { margin: clamp(40px, 5vw, 64px) 0 0; font: 500 11.5px/1.5 var(--font-mono); color: var(--ink-3); }
@media (max-width: 760px) {
  .dimlist { grid-template-columns: 1fr; row-gap: 44px; }
  .dimitem[class*="dimitem--"] { grid-column: 1 / -1; margin-top: 0; }
  .dimitem[class*="dimitem--"] .dimitem__media { aspect-ratio: 3 / 2; }
}

/* ---------- boundaries ---------- */
.nevers-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.nevers-wrap .lede { margin-top: 22px; }
.nevers { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.never { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.never h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.never s { text-decoration-color: #D2552E; text-decoration-thickness: 2px; }
.never p { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) { .nevers-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .never { grid-template-columns: 1fr; } }

kbd { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--night-line-2); border-bottom-width: 2px; font: 500 12px/1 var(--font-mono); color: var(--mint); background: rgba(255,255,255,.03); }
.screens li { align-items: center; }
.anatomy.is-scrub .layer::before { opacity: var(--lo, 1); }
.dim-photo { margin: 0 0 32px; position: relative; border-radius: 6px; overflow: hidden; background: var(--paper-3); aspect-ratio: 21 / 9; }
.dim-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
/* Image audit: lift the wearable/charger and the BP monitor clear of the bottom edge and the caption tag. */
.dim-photo img[src*="/sleep"] { object-position: 70% 80%; }
.dim-photo img[src*="/cardio"] { object-position: 70% 75%; }
.dim-photo figcaption { position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; border-radius: 4px; background: rgba(8,13,27,.6); color: #E9EEF9; font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .03em; }
@media (max-width: 600px) { .dim-photo { aspect-ratio: 3 / 2; } }

/* ---------- v2: integrations + trust ---------- */
/* Owned by the integrations/ and trust/ pages, the home-page band and the six-item primary nav. */

/* nav: six links plus the button; tighten between the mobile breakpoint and wide desktop */
@media (min-width: 1021px) and (max-width: 1260px) {
  .site-header__in { gap: 18px; }
  .nav a { padding: 10px 9px; font-size: 14px; }
  .nav .btn { margin-left: 6px; padding: 0 14px; }
}
@media (min-width: 1021px) and (max-width: 1140px) { .site-header .pill { display: none; } }

/* status markers */
.st-tag { height: auto; min-height: 24px; padding: 3px 10px; white-space: normal; line-height: 1.25; }
.st-tag svg { flex: none; }
.st-tag--planned { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--ink-3); }
.status-key { margin: 30px 0 8px; display: grid; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.status-key div { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 6px 20px; align-items: baseline; }
.status-key dt { margin: 0; } .status-key dd { margin: 0; color: var(--ink-2); font-size: 15px; }

/* the data-path figure */
.flow-sec { background: var(--night-850); border-top: 1px solid var(--night-line); }
.flow-sec__intro { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 16px clamp(32px, 6vw, 96px); align-items: end; }
.flow-sec__intro h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); max-width: 16ch; }
.flow-sec__intro p { margin: 0; max-width: 52ch; }
.flow-fig { margin: clamp(36px, 5vw, 64px) 0 0; }
.flow-svg { width: 100%; height: auto; overflow: visible; }
.flow-svg--tall { display: none; max-width: 420px; margin: 0 auto; }
.flow-svg .fl-link { animation: fl-dash 2.4s linear infinite; }
@keyframes fl-dash { to { stroke-dashoffset: -22; } }
@media (prefers-reduced-motion: reduce) { .flow-svg .fl-link { animation: none; } }
.flow-words { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 22px 0 0; border-top: 1px solid var(--night-line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; counter-reset: fw; }
.flow-words li { display: grid; gap: 6px; font-size: 14px; line-height: 1.55; color: var(--star-2); }
.flow-words b { font: 500 11px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mint); }
@media (max-width: 900px) {
  .flow-sec__intro { grid-template-columns: 1fr; }
  .flow-svg--wide { display: none; }
  .flow-svg--tall { display: block; }
  .flow-words { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .flow-words { grid-template-columns: 1fr; gap: 16px; } }

/* standards ledger rows */
.std-group { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-style: italic; font-weight: 340; color: var(--ink-2); margin: clamp(40px, 5vw, 60px) 0 14px; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 48; }
.stds { border-top: 1px solid var(--ink); }
.std { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px 40px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; scroll-margin-top: 100px; }
.std h4, .std .std__h { display: flex; align-items: flex-start; gap: 12px; margin: 0; font-family: var(--font-display); font-weight: 380; font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.18; letter-spacing: -0.015em; font-variation-settings: 'SOFT' 100, 'opsz' 48; }
.std__icon { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; margin-top: 1px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--mint-ink); }
.std__icon svg { width: 16px; height: 16px; }
.std__status, .cat__status { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0 42px; }
.std__body p { color: var(--ink-2); margin: 0 0 12px; max-width: 62ch; }
.std__body p.std__what { color: var(--ink); }
.std__vital strong { color: var(--ink); font-weight: 650; }
.std__detail { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 12.5px/1.5 var(--font-mono); color: var(--ink-3); }
.std__detail li { position: relative; padding-left: 12px; }
.std__detail li::before { content: ''; position: absolute; left: 0; top: .62em; width: 5px; height: 1px; background: var(--mint-ink); }
.fw__where { margin: 10px 0 0; font: 500 11.5px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.fw__apps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.fw__apps li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; color: var(--ink-2); font-size: 15.5px; padding-top: 8px; border-top: 1px dashed var(--line); }
.fw__apps b { font: 500 12px/1.9 var(--font-mono); color: var(--mint-ink); letter-spacing: .04em; }
@media (max-width: 760px) {
  .std { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .std__status, .cat__status { margin-left: 0; }
  .status-key div { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .fw__apps li { grid-template-columns: 1fr; gap: 2px; } }

/* device categories: two-column ruled list, not boxes */
.cats { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 4vw, 56px); border-top: 1px solid var(--ink); }
.cat { padding: 24px 0; border-bottom: 1px solid var(--line); }
.cat h3 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.2rem, 1.7vw, 1.4rem); }
.cat p { margin: 12px 0 0; color: var(--ink-2); font-size: 15.5px; }
.cat .cat__status { margin: 14px 0 0; }
@media (max-width: 820px) { .cats { grid-template-columns: 1fr; } }

/* measure mapping table */
.map-provenance { margin: 18px 0 0; font-size: 14.5px; color: var(--ink-2); max-width: 70ch; }
.map-provenance code, .map__panel code, .lede code { font-family: var(--font-mono); font-size: .88em; }
.map-sub { margin: 14px 0 0; font-size: 14.5px; color: var(--ink-3); max-width: 70ch; }
.maptable-wrap { margin-top: 26px; border-top: 1px solid var(--ink); border-radius: 0; }
.maptable { font-size: 14px; }
.maptable caption { padding: 12px 0; }
.maptable th, .maptable td { padding: 14px 12px; }
.maptable th:first-child, .maptable td:first-child { padding-left: 0; }
.maptable tbody th { font-weight: 600; min-width: 128px; }
.maptable td:nth-child(2) { min-width: 210px; }
.map__measure { display: block; color: var(--ink); }
.map__unit { display: block; margin-top: 2px; font: 400 12px/1.4 var(--font-mono); color: var(--ink-3); }
.maptable code[data-loinc], .map__local { display: inline-block; font: 500 13.5px/1.3 var(--font-mono); color: var(--mint-ink); background: #E9F6F0; padding: 3px 7px; border-radius: 6px; }
.map__local { color: #4A4766; background: #ECEAF2; margin-left: 8px; font-size: 12.5px; }
.map__none { color: var(--ink-2); font-weight: 600; }
.map__name { display: block; margin-top: 6px; color: var(--ink); }
.map__panel { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.map__note { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.map__ucum { font: 500 13px/1.3 var(--font-mono); color: var(--ink); white-space: nowrap; }
.maptable td:last-child { color: var(--ink-2); max-width: 26ch; }
@media (max-width: 640px) {
  .maptable-wrap { overflow: visible; }
  .maptable, .maptable tbody, .maptable tr, .maptable th, .maptable td { display: block; width: 100%; }
  .maptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .maptable caption { display: block; }
  .maptable tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .maptable th, .maptable td { border: 0; padding: 5px 0 !important; min-width: 0 !important; max-width: none !important; }
  .maptable tbody th { padding-bottom: 8px !important; font-size: 16px; }
  .maptable td { position: relative; padding-left: 96px !important; }
  .maptable td::before { content: attr(data-label); position: absolute; left: 0; top: 7px; font: 500 10.5px/1.6 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
  .map__local { margin: 6px 0 0; display: table; }
}

/* try-it links */
.trylinks { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.trylinks a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) 24px; gap: 6px 32px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background-color .3s; min-height: 44px; }
.trylinks__t { font: 380 clamp(1.3rem, 2vw, 1.65rem)/1.2 var(--font-display); letter-spacing: -0.015em; font-variation-settings: 'SOFT' 100, 'opsz' 48; }
.trylinks__d { color: var(--ink-2); font-size: 15.5px; }
.trylinks svg { width: 18px; height: 18px; color: var(--mint-ink); align-self: center; transition: transform .35s var(--ease); }
.trylinks a:hover .trylinks__t { color: var(--mint-ink); }
.trylinks a:hover svg { transform: translateX(4px); }
@media (max-width: 640px) { .trylinks a { grid-template-columns: minmax(0, 1fr) 20px; } .trylinks__d { grid-column: 1; } .trylinks svg { grid-row: 1; grid-column: 2; } }

/* boundaries */
.bounds { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.bounds li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6px 32px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.bounds s { font: 380 clamp(1.4rem, 2.2vw, 1.85rem)/1.15 var(--font-display); letter-spacing: -0.015em; text-decoration-color: #D2552E; text-decoration-thickness: 2px; color: var(--ink); font-variation-settings: 'SOFT' 100, 'opsz' 48; }
.bounds span { color: var(--ink-2); }
.bounds__after { margin: 24px 0 0; color: var(--ink-2); max-width: 66ch; }
@media (max-width: 560px) { .bounds li { grid-template-columns: 1fr; } }

/* consent grid illustration */
.consent-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 56px); margin-top: 30px; align-items: start; }
.cg-fig { margin: 0; padding: clamp(16px, 2.4vw, 26px); border-radius: var(--radius); background: var(--night-850); color: var(--star); }
.cg-fig .tablewrap { border-radius: 0; }
.cg { width: 100%; border-collapse: collapse; font-size: 14px; }
.cg th, .cg td { padding: 11px 8px; border-bottom: 1px solid var(--night-line); text-align: left; vertical-align: middle; }
.cg thead th { font: 500 10.5px/1.35 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--star-3); vertical-align: bottom; max-width: 13ch; }
.cg td { text-align: center; width: 22%; }
.cg thead th:not(:first-child) { text-align: center; }
.cg tbody tr:last-child th, .cg tbody tr:last-child td { border-bottom: 0; }
.cg__src { display: block; color: var(--star); font-weight: 600; }
.cg__kind { display: block; font: 400 11.5px/1.4 var(--font-mono); color: var(--star-3); }
.sw { display: inline-block; position: relative; width: 34px; height: 20px; border-radius: 999px; background: rgba(186,208,255,.08); box-shadow: inset 0 0 0 1px var(--night-line-2); vertical-align: middle; }
.sw i { position: absolute; top: 4px; left: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--star-3); }
.sw.is-on { background: rgba(62,230,176,.2); box-shadow: inset 0 0 0 1px var(--mint); }
.sw.is-on i { left: 18px; background: var(--mint); }
.cg-fig figcaption { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--star-2); }
.principles { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.principles div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.principles dt { font: 380 1.3rem/1.2 var(--font-display); letter-spacing: -0.01em; font-variation-settings: 'SOFT' 100, 'opsz' 48; }
.principles dd { margin: 4px 0 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 1180px) { .consent-layout { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .cg thead th { font-size: 9.5px; letter-spacing: .04em; }
  .cg th, .cg td { padding: 10px 4px; }
  .cg__kind { display: none; }
  .cg__src { font-size: 13px; }
}

/* ledger */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); font-size: 14.5px; }
.ledger li { display: grid; grid-template-columns: 170px minmax(0, 190px) 90px minmax(0, 1fr); gap: 4px 18px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger time { font: 400 12.5px/1.5 var(--font-mono); color: var(--ink-3); }
.ledger__who { color: var(--ink); font-weight: 600; }
.ledger__act { font: 500 11.5px/1.5 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mint-ink); }
.ledger__what { color: var(--ink-2); }
@media (max-width: 820px) { .ledger li { grid-template-columns: auto minmax(0, 1fr); } .ledger time { grid-column: 1 / -1; } .ledger__what { grid-column: 1 / -1; } }

/* clinician scopes */
.clin { margin-top: 0; align-items: start; }
.scopes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.scopes li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15.5px; }
.scopes__st { flex: none; font: 500 11.5px/1.9 var(--font-mono); letter-spacing: .04em; color: var(--ink-3); }

/* data handling principles */
.handling { margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 4vw, 56px); border-top: 1px solid var(--ink); }
.handling div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.handling dt { font: 380 clamp(1.2rem, 1.7vw, 1.4rem)/1.2 var(--font-display); letter-spacing: -0.012em; font-variation-settings: 'SOFT' 100, 'opsz' 48; }
.handling dd { margin: 8px 0 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 820px) { .handling { grid-template-columns: 1fr; } }

/* two modes */
.modes { display: grid; grid-template-columns: 1fr 1fr; margin-top: 30px; border-top: 1px solid var(--ink); }
.mode { padding: 28px clamp(20px, 3vw, 40px) 8px 0; }
.mode + .mode { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--line); }
.mode p { color: var(--ink-2); margin: 12px 0 18px; }
.mode__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.mode__link svg { width: 15px; height: 15px; }
@media (max-width: 760px) { .modes { grid-template-columns: 1fr; } .mode + .mode { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* today vs production */
.compare { font-size: 15px; margin-top: 26px; border-top: 1px solid var(--ink); }
.compare thead th { padding-top: 14px; }
.compare tbody th { font: 380 1.15rem/1.25 var(--font-display); letter-spacing: -0.01em; padding-left: 0; width: 16%; font-variation-settings: 'SOFT' 100, 'opsz' 48; }
.compare td { color: var(--ink-2); width: 42%; }
.compare td:last-child { color: var(--ink); }
.compare caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 640px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100% !important; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .compare th, .compare td { border: 0; padding: 4px 0; }
  .compare td::before { content: attr(data-label); display: block; font: 500 10.5px/1.8 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
}

/* FHIR snippet */
.fhir-snippet { margin-top: 26px; font-size: 12.5px; line-height: 1.7; overflow: auto; }

/* home: integrations + trust band */
.home-band { border-top: 1px solid var(--line); }
.home-band__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 6vw, 96px); align-items: start; }
.home-band h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); max-width: 18ch; }
.home-band ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.home-band a { display: grid; grid-template-columns: minmax(0, 1fr) 22px; gap: 4px 20px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.home-band a b { font: 380 clamp(1.35rem, 2vw, 1.7rem)/1.15 var(--font-display); letter-spacing: -0.015em; font-variation-settings: 'SOFT' 100, 'opsz' 48; transition: color .25s; }
.home-band a span { grid-column: 1; color: var(--ink-2); font-size: 15.5px; }
.home-band a svg { grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 18px; height: 18px; color: var(--mint-ink); transition: transform .35s var(--ease); }
.home-band a:hover b { color: var(--mint-ink); }
.home-band a:hover svg { transform: translateX(4px); }
@media (max-width: 900px) { .home-band__in { grid-template-columns: 1fr; } }
.v2doc .dim-section + .dim-section { border-top: 0; padding-top: clamp(24px, 3vw, 40px); }
.compare-wrap { border-radius: 0; }
@media (max-width: 1100px) { .maptable td:nth-child(2) { min-width: 0; } .maptable tbody th { min-width: 0; } }

/* =========================================================
   Motion & micro-interactions: calm, breathing.
   Tokens live in :root (--dur-1…4, --ease-out, --ease-in, --ease-breathe, --spring, --press).
   JS pieces are in assets/js/micro.js (initSite).
   ========================================================= */

/* focus rings ease in rather than snapping on */
:focus-visible { animation: mx-ring var(--dur-2) var(--ease-out); }
@keyframes mx-ring { from { outline-offset: 0px; outline-color: transparent; } }

/* buttons: a soft lift, a 0.97 press and a gentle spring back; the arrow nudges on hover and on focus */
.btn { transition: transform var(--dur-3) var(--spring), translate var(--dur-3) var(--spring), background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), box-shadow var(--dur-3) var(--ease-out); }
.btn svg { transition: transform var(--dur-2) var(--ease-out); }
.btn:focus-visible svg { transform: translateX(3px); }
.btn--mint:focus-visible { box-shadow: 0 10px 40px -10px rgba(62,230,176,.65); }
.btn--ghost:focus-visible { border-color: rgba(62,230,176,.6); background: rgba(62,230,176,.06); }
.btn--line:focus-visible { background: var(--ink); color: var(--paper); }
.chipbtn, .iconbtn, .persona, .labchip, .dimrow {
  transition: transform var(--dur-3) var(--spring), border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease-out); }
.seg button, .sv-switch button { transition: transform var(--dur-3) var(--spring), color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out); }
.chipbtn:focus-visible, .iconbtn:focus-visible { border-color: var(--mint); color: var(--star); }
.persona:focus-visible { border-color: rgba(62,230,176,.6); }
.dimrow:focus-visible { border-color: var(--ink-3); }
:is(.btn, .chipbtn, .iconbtn, .seg button, .sv-switch button, .persona, .labchip, .dimrow):active:not(:disabled) {
  transform: scale(var(--press)); transition-duration: var(--dur-1); transition-timing-function: var(--ease-out); }

/* sliding selection pill (segmented controls, score-view switcher) */
.mx-pilled { position: relative; isolation: isolate; }
.mx-pill { position: absolute; inset: 0; z-index: -1; border-radius: 999px; background: var(--mx-pill, var(--mint)); pointer-events: none; opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out); }
.mx-pilled > button[aria-pressed="true"], .mx-pilled > button[aria-checked="true"] { background-color: transparent !important; }
.seg { --mx-pill: var(--mint); }
.range-seg { --mx-pill: var(--ink); }
.sv-switch { --mx-pill: #E9EEF9; }

/* links: underline draws left to right; plain inline links firm up their underline */
.textlink:focus-visible { background-size: 100% 1.5px; }
main a:not([class]) { text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; transition: text-decoration-color var(--dur-1) var(--ease-out), text-underline-offset var(--dur-2) var(--ease-out), color var(--dur-1) var(--ease-out); }
main a:not([class]):is(:hover, :focus-visible) { text-decoration-color: currentColor; text-underline-offset: 4px; }
.site-footer__grid a:not(.brand) { background: linear-gradient(currentColor, currentColor) 0 calc(100% - 4px) / 0 1px no-repeat; transition: color var(--dur-1) var(--ease-out), background-size var(--dur-3) var(--ease-out); }
.site-footer__grid a:not(.brand):is(:hover, :focus-visible) { color: var(--mint); background-size: 100% 1px; }
.site-footer__base a { transition: text-decoration-color var(--dur-1) var(--ease-out); }
.site-footer__base a:is(:hover, :focus-visible) { text-decoration-color: var(--mint); }
.pill { transition: border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out); }
.pill:focus-visible { border-color: var(--mint); color: var(--mint); }

/* nav: an ink mark under the current page glides toward the hovered link (desktop) */
.nav a { transition: color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out); }
.nav a:focus-visible { color: var(--star); }
@media (min-width: 1021px) {
  .nav.has-ink { position: relative; }
  .nav.has-ink a[aria-current="page"]::after { opacity: 0; }
  .nav__ink { position: absolute; left: 0; top: 0; width: 14px; height: 2px; border-radius: 2px; background: var(--mint); pointer-events: none; opacity: 0;
    transition: transform var(--dur-3) var(--spring), opacity var(--dur-2) var(--ease-out); }
}
@media (max-width: 1020px) {
  .nav__ink { display: none; }
  .nav.is-open a { animation: mx-rise var(--dur-3) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 30ms + 60ms); }
}
@keyframes mx-rise { from { opacity: 0; transform: translateY(6px); } }

/* header: steps aside while reading down, back on the first scroll up */
.site-header { transition: background-color .35s, border-color .35s, backdrop-filter .35s, transform var(--dur-3) var(--ease-out); }
.site-header.is-hidden { transform: translateY(-100%); transition-timing-function: ease, ease, ease, var(--ease-in); transition-duration: .35s, .35s, .35s, var(--dur-2); }

/* cards and images: zoom stays inside its frame, arrows shift; focus mirrors hover */
.dimitem__media img { transition: transform var(--dur-4) var(--ease-out), filter var(--dur-3) var(--ease-out); }
.dimitem:focus-visible .dimitem__media img { transform: scale(1.035); }
.dimitem:focus-visible .dimitem__name::after { transform: translateX(4px); color: var(--ink); }
.dimitem__name::after, .trylinks svg, .home-band a svg { transition: transform var(--dur-2) var(--ease-out), color var(--dur-1) var(--ease-out); }
.trylinks__t, .home-band a b { transition: color var(--dur-1) var(--ease-out); }
.trylinks a:focus-visible .trylinks__t, .home-band a:focus-visible b { color: var(--mint-ink); }
.trylinks a:focus-visible svg, .home-band a:focus-visible svg { transform: translateX(4px); }

/* range thumbs swell slightly while held */
input[type="range"].range::-webkit-slider-thumb { transition: box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--spring); }
input[type="range"].range:active::-webkit-slider-thumb { transform: scale(1.12); }

/* value bubble (positioned by micro.js; placement is instant, only the pop is animated) */
.mx-bubble { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; translate: calc(var(--x, 0px) - 50%) calc(var(--y, 0px) - 100%); scale: .9; transform-origin: 50% 100%;
  padding: 4px 8px; border-radius: 8px; background: var(--star); color: var(--night-900); font: 600 11.5px/1.2 var(--font-mono); white-space: nowrap; font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 18px rgba(5,8,18,.25); opacity: 0; transition: opacity var(--dur-1) var(--ease-out), scale var(--dur-2) var(--spring); }
.mx-bubble.is-paper { background: var(--ink); color: var(--paper); }
.mx-bubble.is-on { opacity: 1; scale: 1; }

/* accordions: 0fr → 1fr grid row, icon rotates (existing) */
.mx-acc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-3) var(--ease-out); }
.mx-acc.is-open { grid-template-rows: 1fr; }
.mx-acc__clip { min-height: 0; overflow: hidden; }
.mx-acc__clip > * { opacity: 0; transition: opacity var(--dur-2) var(--ease-out); }
.mx-acc.is-open .mx-acc__clip > * { opacity: 1; transition-delay: 60ms; }
.faq summary { transition: color var(--dur-1) var(--ease-out); }
.faq summary:is(:hover, :focus-visible) i { background: var(--paper-2); }

/* figures that changed breathe in mint for a moment */
.mx-changed { animation: mx-breath var(--dur-4) var(--ease-breathe); }
text.mx-changed { animation-name: mx-breath-fill; }
@keyframes mx-breath { 35% { color: var(--mx-hl, var(--mint)); } }
@keyframes mx-breath-fill { 35% { fill: var(--mx-hl, var(--mint)); } }
.paper .mx-changed, .tile .mx-changed, .card .mx-changed { --mx-hl: var(--mint-ink); }

/* toggled chips and selected rows settle in */
.labchip.mx-flip, .dimrow.mx-flip { animation: mx-settle var(--dur-3) var(--ease-out); }
@keyframes mx-settle { from { transform: scale(var(--press)); } }

/* drawn check */
.mx-check { width: 15px; height: 15px; flex: none; }
.mx-check path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.mx-check.is-draw path { animation: mx-draw var(--dur-3) var(--ease-out) both; }
@keyframes mx-draw { from { stroke-dashoffset: 1; } }

/* on-page contents: a gliding active marker */
.toc.has-ink { position: sticky; }
.toc__ink { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--mint-ink); pointer-events: none; opacity: 0;
  transition: clip-path var(--dur-3) var(--spring), opacity var(--dur-2) var(--ease-out); }
.toc.has-ink a.is-active { border-color: var(--line); }
.toc a { transition: color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out); }
.toc a:focus-visible { color: var(--ink); }

/* anchor targets get a short highlight */
.mx-target { animation: mx-target var(--dur-4) var(--ease-breathe); }
@keyframes mx-target { 0%, 40% { background-color: color-mix(in srgb, var(--mint-ink) 9%, transparent); } }

/* rows in the mapping and comparison tables */
.maptable tbody tr, .compare tbody tr, .dtable tbody tr { transition: background-color var(--dur-1) var(--ease-out); }
@media (hover: hover) { .maptable tbody tr:hover, .compare tbody tr:hover, .paper .dtable tbody tr:hover { background: color-mix(in srgb, var(--paper-2) 70%, transparent); } }

/* score-view switches: a short crossfade where View Transitions exist */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur-2); }
html[data-vt="sv"] [data-x="radial"] { view-transition-name: sv-stage; }
::view-transition-group(sv-stage) { animation-duration: var(--dur-3); animation-timing-function: var(--ease-out); }
::view-transition-old(sv-stage) { animation: mx-vt-out var(--dur-1) var(--ease-in) both; }
::view-transition-new(sv-stage) { animation: mx-vt-in var(--dur-3) var(--ease-out) both; }
@keyframes mx-vt-out { to { opacity: 0; filter: blur(2px); } }
@keyframes mx-vt-in { from { opacity: 0; transform: scale(.985); filter: blur(4px); } }

@media (prefers-reduced-motion: reduce) {
  :focus-visible { animation: none; }
  :is(.btn, .chipbtn, .iconbtn, .seg button, .sv-switch button, .persona, .labchip, .dimrow):active:not(:disabled) { transform: none; }
  .btn:hover, .btn:focus-visible { transform: none; translate: none; }
  .btn svg, .dimitem__name::after, .trylinks svg, .home-band a svg { transform: none !important; }
  .dimitem:is(:hover, :focus-visible) .dimitem__media img { transform: none; }
  .site-header.is-hidden { transform: none; }
  .nav__ink, .toc__ink { transition: opacity var(--dur-2) var(--ease-out); }
  .mx-bubble { scale: 1; transition: opacity var(--dur-1) var(--ease-out); }
  .mx-acc { transition: none; }
  .labchip.mx-flip, .dimrow.mx-flip { animation: none; }
  input[type="range"].range:active::-webkit-slider-thumb { transform: none; }
  /* colour feedback stays: the breath highlight and target highlight keep running at full length */
  .mx-changed { animation-duration: var(--dur-4) !important; }
  .mx-target { animation-duration: var(--dur-4) !important; }
}
