/* BioVault site.css
   Tokens, base, layout utilities, header, footer, hero, every template, page components, motion.
   No shadows, no gradients. Mobile first. */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --text: #10213d;
  --text-muted: #3f4f6b;
  --accent: #0b3d7a;
  --accent-warm: #b8692e;
  --safe-band: #eef3fb;
  --border: #dde4ee;
  --gray-1: #8a96a3;
  --gray-2: #b4bdc7;
  --gray-3: #d3d9df;
  --font-display: "Google Sans", system-ui, sans-serif;
  --font-body: "Google Sans", system-ui, sans-serif;
  --font-mono: "Google Sans Code", ui-monospace, monospace;
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* extra tokens used by this file */
  --on-accent: #ffffff;
  --on-warm: #ffffff;
  --header-bg: rgba(255, 255, 255, .86);
  --tint: #e6edf8;
  --green: #17734f;
  --header-h: 64px;
  --gutter: 20px;
  --max: 1160px;
  color-scheme: light;
}

/* ---------- Palette: Glacier (light mode only, cool-toned) ----------
   Token names match the BioVault design system:
     bg page background · surface soft tinted regions · raised white surfaces · ink text · ink-muted secondary text
     accent buttons, links, focus · accent-hover · on-accent text on accent · accent-soft pale accent fill
     secondary second blue for diagram strokes and small accents · line hairlines
     deep the one dark block (closing call to action) · on-deep / on-deep-muted text on deep
   The site's older variable names are aliased to these below, so every existing rule follows the palette.
   Contrast (WCAG): ink, ink-muted and accent are 4.5:1 or better on bg, surface, accent-soft and raised;
   on-accent on accent and on-deep / on-deep-muted on deep are 6:1 or better. No gradients. */
html:root {          /* Glacier */
  --bg: #f4f9fc;
  --surface: #e7f1f8;
  --raised: #ffffff;
  --ink: #0b2233;
  --ink-muted: #46637a;
  --accent: #0668a0;
  --accent-hover: #05557f;
  --on-accent: #ffffff;
  --accent-soft: #d6eaf6;
  --secondary: #3d6f99;
  --line: #d2e2ee;
  --deep: #0b2a40;
  --on-deep: #e8f3fa;
  --on-deep-muted: #a9c5d8;
  --gray-1: #7f98ab;
  --gray-2: #b0c6d6;
  --gray-3: #d2e2ee;
  --header-bg: rgba(244, 249, 252, .88);
}
/* older names, aliased to the design-system tokens */
html:root {
  --text: var(--ink);
  --text-muted: var(--ink-muted);
  --accent-warm: var(--secondary);
  --on-warm: #ffffff;
  --tint: var(--accent-soft);
  --safe-band: var(--accent-soft);
  --border: var(--line);
  --band: var(--deep);
  --on-band: var(--on-deep);
  --brand-mark: var(--accent);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.015em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

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

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

.section { padding-block: clamp(32px, 5.6vw, 80px); }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
.section--tight { padding-block: clamp(22px, 3.2vw, 40px); }

.section__head { max-width: 760px; margin: 0 auto clamp(18px, 2.7vw, 32px); text-align: center; }
.section__head .lead { margin: .6rem auto 0; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section__head h2 { margin-bottom: 0; }
.section__head h2, .section--figure h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stack > * + * { margin-top: 1.25rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .6rem;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 62ch;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: .6em 1em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus { top: 12px; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(16px, 2.2vw, 24px);
  transition: transform 200ms var(--ease), border-color 200ms var(--ease);
}
.section--alt .card { background: var(--bg); }
.card:hover { transform: translateY(-2px); border-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--small { font-size: .9rem; padding: .5em 1.15em; }

.btn[aria-disabled="true"], .btn:disabled, .btn.is-unset {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

a.is-unset { cursor: not-allowed; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 500;
  text-decoration: none;
}
.link-arrow [aria-hidden="true"] { display: inline-block; transition: transform 200ms var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover [aria-hidden="true"] { transform: translateX(4px); }

/* resolved number from data/numbers.json */
.num { font-variant-numeric: tabular-nums; cursor: help; }

/* ---------- Placeholder chip and status chips ---------- */
.ph {
  font-family: var(--font-mono);
  font-size: .8em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--gray-2);
  border-radius: 6px;
  padding: 0 .4em;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.section--alt .ph, .cta-band .ph { background: var(--bg); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1;
  padding: .4em .8em;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  white-space: nowrap;
  vertical-align: middle;
}
.chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.chip--simulated { color: var(--accent); border-color: var(--accent); }
.chip--estimated { color: var(--accent-warm); border-color: var(--accent-warm); }
.chip--measured { color: var(--text); border-color: var(--text); }
.chip--cited { color: var(--text-muted); border-color: var(--gray-2); }
.chip--fixture {
  background: var(--accent-warm);
  border-color: var(--accent-warm);
  color: var(--on-warm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.chip--fixture::before { display: none; }

/* ---------- Header and nav ---------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 250ms var(--ease), border-color 250ms var(--ease);
}
#site-header.is-scrolled,
#site-header.is-menu-open {
  background: var(--header-bg);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}
#site-header.is-menu-open { background: var(--bg); }

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.wordmark span { color: var(--brand-mark, var(--green)); }
.wordmark:hover { text-decoration: none; color: var(--text); }

/* wordmark sits on the left */
.site-header__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.nav-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 44px; height: 44px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  color: var(--text);
  transition: border-color 200ms var(--ease);
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 250ms var(--ease), opacity 200ms var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* mobile menu: slides down */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 8px var(--gutter) 24px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: transform 300ms var(--ease), opacity 250ms var(--ease), visibility 0s linear 300ms;
}
.is-menu-open .site-nav {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: transform 300ms var(--ease), opacity 250ms var(--ease), visibility 0s;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a:not(.btn) {
  display: block;
  padding: 14px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.site-nav li a:not(.btn):hover { color: var(--accent); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--accent); }
.site-nav .nav-cta { margin-top: 20px; }
.nav-cta[aria-current="page"] { background: var(--band, var(--text)); border-color: var(--band, var(--text)); color: var(--on-band, var(--bg)); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    background: transparent;
    border: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 22px;
    transition: none;
  }
  .site-nav ul { display: flex; gap: 22px; }
  .site-nav li a:not(.btn) {
    position: relative;
    padding: 8px 0;
    border: 0;
    font-size: .95rem;
  }
  .site-nav li a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 2px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 250ms var(--ease);
  }
  .site-nav li a:not(.btn):hover::after,
  .site-nav li a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav .nav-cta { margin-top: 0; }
}

/* ---------- Footer ---------- */
#site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 28px;
  color: var(--text-muted);
  font-size: .9rem;
}
.footer__inner { display: grid; gap: 10px; }
.footer__line { font-weight: 700; color: var(--text); margin: 0 0 .25rem; }
.footer__line span { color: var(--brand-mark, var(--green)); }
.footer__tagline { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.3; color: var(--text); max-width: 32ch; margin: 0; letter-spacing: -0.01em; }
.footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer__nav a { color: var(--text-muted); text-decoration: none; }
.footer__nav a:hover { color: var(--accent); }
.footer__disclaimer { max-width: 80ch; margin: 0; font-size: .78rem; line-height: 1.45; }
@media (min-width: 860px) {
  .footer__inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer__disclaimer { grid-column: 1 / -1; }
}

/* ---------- Load error ---------- */
.load-error {
  margin: 32px auto;
  max-width: 640px;
  padding: 20px 24px;
  border: 1px solid var(--accent-warm);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(16px, 2.4vw, 28px) clamp(20px, 2.8vw, 32px);
  border-bottom: 1px solid var(--border);
}
.hero__inner {
  display: grid;
  gap: 14px;
  align-items: center;
}
.hero__copy { max-width: 640px; }
.hero h1 { margin-bottom: .45em; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.1; }
.hero h1 .ph { font-size: .45em; }
.hero__sub {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 1.25rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__art { width: 100%; max-width: 640px; justify-self: center; color: var(--text); }
@media (max-width: 899px) { .hero__art { max-width: 270px; } }
.hero-art { width: 100%; height: auto; overflow: visible; }

@media (min-width: 900px) {
  /* The headline spans both columns so each of its two lines stays on one line. */
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas: "eyebrow eyebrow" "head head" "sub art" "actions art" "rest art";
    grid-template-rows: auto auto auto auto 1fr;
    column-gap: 48px; row-gap: 0;
    align-items: start;
  }
  .hero__copy { display: contents; }
  .hero__eyebrow { grid-area: eyebrow; }
  .hero h1 { grid-area: head; font-size: clamp(2rem, 3.6vw, 3.2rem); margin-bottom: .4em; }
  .hero h1 .line { white-space: nowrap; }
  .hero__sub { grid-area: sub; }
  .hero__actions { grid-area: actions; align-self: start; }
  .hero__art { grid-area: art; align-self: center; }
  .hero { min-height: min(52vh, 440px); display: flex; align-items: center; }
  .hero__art { max-width: 400px; justify-self: end; }
  .hero > .container { width: 100%; }
}

/* headline line mask */
.line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.line__in { display: block; }

/* hero SVG */
.hero-art * { vector-effect: non-scaling-stroke; }
.ha-ring { fill: none; stroke: var(--gray-3); stroke-width: 1; stroke-dasharray: 2 7; transform-box: fill-box; transform-origin: center; }
.ha-ring--a { animation: ha-spin 140s linear infinite; }
.ha-ring--b { animation: ha-spin 200s linear infinite reverse; }
.ha-chamber { fill: none; stroke: var(--gray-1); stroke-width: 1; }
.ha-gap { fill: none; stroke: var(--bg); stroke-width: 3; }
.ha-channel { fill: none; stroke: var(--accent); stroke-width: 1; }
.ha-flow { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 9; opacity: .55; animation: ha-flow 3.2s linear infinite; }
.ha-wave { fill: none; stroke: var(--accent); stroke-width: 1; }
.ha-lat { fill: var(--gray-2); }
.ha-lattice-box { fill: url(#ha-lattice); stroke: var(--gray-3); stroke-width: 1; }
.ha-tether { fill: none; stroke: var(--gray-2); stroke-width: 1; }
.ha-payload { fill: none; stroke: var(--gray-1); stroke-width: 1; stroke-dasharray: 3 4; }
.ha-idle { fill: var(--accent); opacity: .85; animation: ha-bob 5s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -1s); }
.ha-drop { fill: var(--accent); animation: ha-drift 10s linear infinite; animation-delay: calc(var(--d, 0) * -1s); }
.ha-uptake { fill: none; stroke: var(--accent); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: ha-ping 5s ease-out infinite; animation-delay: calc(var(--d, 0) * -1s); }

@keyframes ha-spin { to { transform: rotate(360deg); } }
@keyframes ha-flow { to { stroke-dashoffset: -24; } }
@keyframes ha-bob {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(var(--bx, 4px), var(--by, -6px)); }
}
@keyframes ha-drift {
  0% { transform: translate(0, var(--y0, 0)); opacity: 0; }
  10% { opacity: 1; }
  34% { transform: translate(76px, 0); opacity: 1; }
  62% { transform: translate(284px, 0); opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(420px, var(--y1, 0)); opacity: 0; }
}
@keyframes ha-ping {
  0% { transform: scale(.4); opacity: 0; }
  20% { opacity: .9; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ---------- Motion on text: retired ----------
   Text is fully visible on load. No hero line rise, no fade-up, no scroll reveal. (.reveal and the hero
   classes stay in the markup and scripts; these rules keep them static.) */
.hero .line__in, .hero.is-ready .line__in { transform: none; animation: none; }
.hero [data-hero-in], .hero.is-ready [data-hero-in], .hero .hero__art, .hero.is-ready .hero__art { opacity: 1; animation: none; }
.reveal, .reveal.is-visible { opacity: 1; transform: none; animation: none; }

/* ---------- Supporters strip ---------- */
.partners { text-align: center; }
.partners__label { font-size: 1.05rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 14px; }
@media (min-width: 768px) { .partners__label { font-size: 1.1rem; } }
.partners__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 40px; }
.partner { display: inline-flex; align-items: center; color: var(--text-muted); text-decoration: none; background: #fff; border-radius: 16px; padding: 6px 14px; }
.partner { transition: transform 200ms var(--ease); }
.partner:hover { transform: translateY(-2px); }
.partner img { height: 56px; width: auto; max-width: 100%; }
.partner--stacked img { height: 72px; }
.partner--horizontal img { height: 44px; }
@media (max-width: 640px) { .partner--horizontal img { height: 34px; } .partner img { height: 44px; } .partner--stacked img { height: 56px; } .partner { padding: 6px 10px; } }
.partner__name { font-weight: 500; }

/* ---------- Problem and stats ---------- */
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 28em;
  margin: 0 0 clamp(20px, 3vw, 32px);
  text-wrap: pretty;
}
.statement .ph { font-size: .5em; }

.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--accent);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.stat__value .ph { font-size: .3em; letter-spacing: 0; }
.stat__range { margin: -4px 0 0; font-size: .85rem; color: var(--text-muted); }
.stat__label { font-size: 1.05rem; line-height: 1.4; margin: 0; color: var(--text); }
.stat__label .ph { font-size: .8em; }
.stat__foot {
  margin: auto 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  line-height: 1.45;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.stat--feature { max-width: 560px; }

/* ---------- Process strip: numbered circles, arrows centered between them ---------- */
.steps { --circle: 56px; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.step { position: relative; display: grid; grid-template-columns: var(--circle) minmax(0, 1fr); column-gap: 20px; align-items: start; padding-bottom: 30px; }
.step:last-child { padding-bottom: 0; }
.step__badge {
  display: grid; place-items: center;
  width: var(--circle); height: var(--circle);
  border: 1.5px solid var(--accent); border-radius: 50%;
  background: var(--bg); color: var(--accent);
  font-family: var(--font-mono); font-size: 1rem; font-weight: 500;
  transition: background-color 250ms var(--ease), color 250ms var(--ease);
}
.step:hover .step__badge { background: var(--accent); color: var(--on-accent); }
.step__text { margin: 0; padding-top: calc((var(--circle) - 1.5em) / 2); font-size: 1.05rem; line-height: 1.5; color: var(--text); }
.step__text .ph { font-size: .8em; }

/* arrow: a line that draws, then its head. Vertical on phones, horizontal from 900px. */
.step__arrow { position: absolute; pointer-events: none; }
.step:last-child .step__arrow { display: none; }
.step__line { position: absolute; background: var(--accent); }
.step__head { position: absolute; overflow: visible; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.step__arrow { left: calc(var(--circle) / 2); top: calc(var(--circle) + 8px); bottom: 8px; width: 0; }
.step__line { left: -.625px; top: 0; bottom: 5px; width: 1.25px; transform-origin: top; }
.step__head { left: -6px; bottom: -1px; width: 12px; height: 12px; }


@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 28px; }
  .step { display: block; text-align: center; padding-bottom: 0; }
  .step__badge { margin: 0 auto 16px; }
  .step__text { padding-top: 0; font-size: .98rem; }
  .step__arrow { top: calc(var(--circle) / 2); bottom: auto; height: 0; left: calc(50% + var(--circle) / 2 + 10px); width: calc(100% + 28px - var(--circle) - 20px); }
  .step__line { left: 0; right: 6px; top: -.625px; bottom: auto; width: auto; height: 1.25px; transform-origin: left; }
  .step__head { left: auto; right: -1px; bottom: auto; top: -6px; transform: rotate(-90deg); }
}

.section__foot { margin-top: clamp(18px, 2.7vw, 32px); text-align: center; }

/* ---------- Product teaser ---------- */
.product-teaser { position: relative; display: flex; flex-direction: column; gap: 4px; padding: clamp(18px, 2.6vw, 28px); }
.product-teaser .eyebrow { margin-bottom: .4rem; }
.product-teaser h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .4em; }
.product-teaser p { color: var(--text-muted); }
.product-teaser .link-arrow { margin-top: 12px; align-self: flex-start; }
.product-teaser .link-arrow::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.product-teaser .link-arrow:focus-visible { outline: none; }
.product-teaser:focus-within { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Spec card and spec table ---------- */
.spec-card h3 { margin-bottom: .5em; }
.spec-card p { color: var(--text-muted); }
.spec-card__links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); font-size: .875rem; }
.spec-card__links span { color: var(--text-muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .75rem; }
.spec-card__links a { font-weight: 500; }

.spec-table { margin: 0; border-top: 1px solid var(--border); }
.spec-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.spec-row dt { color: var(--text-muted); font-size: .9rem; }
.spec-row dd { margin: 0; font-weight: 500; }
@media (min-width: 480px) {
  .spec-row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px; }
}

/* ---------- Team ---------- */
.team-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.team-card__photo {
  position: relative;
  width: min(140px, 50%);
  aspect-ratio: 1;
  margin: 0 0 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}
.team-card__photo::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.88);
  transition: transform 350ms var(--ease), opacity 250ms var(--ease);
  pointer-events: none;
}
.team-card:hover .team-card__photo::after,
.team-card:focus-within .team-card__photo::after { opacity: 1; transform: scale(1); }
.team-card h3 { margin-bottom: .2em; }
.team-card__role { color: var(--green); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.team-card__line { margin: 0; color: var(--text-muted); font-size: .95rem; line-height: 1.5; }

/* ---------- Compare table ---------- */
.table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare-table caption {
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  padding: 0 0 16px;
  caption-side: top;
}
.compare-table th, .compare-table td {
  padding: 10px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table thead th { font-weight: 600; font-size: .9rem; }
.compare-table tbody th { font-weight: 500; color: var(--text-muted); }
.compare-table .is-bv { background: var(--safe-band); }
.compare-table thead .is-bv { border-bottom: 2px solid var(--accent); }
.compare-table .chip { margin-top: 6px; display: flex; width: fit-content; }
.compare-table .ph { font-size: .72em; }
.compare-source { margin-top: 14px; font-size: .85rem; color: var(--text-muted); }
/* Phones: keep each row to a line or two and let the table scroll sideways inside its own box, with the row labels pinned. */
@media (max-width: 639px) {
  .compare-table { min-width: 42rem; }
  .compare-table tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--bg); border-right: 1px solid var(--border); }
}
@media (min-width: 640px) {
  .compare-table th, .compare-table td { padding: 11px 16px; }
}

/* ---------- Closing contact section (gray band, no dark sections) ---------- */
.cta-band { background: var(--surface); border-block: 1px solid var(--border); padding-block: clamp(28px, 5vw, 64px); text-align: center; }
.cta-band__inner { display: grid; gap: 12px; justify-items: center; max-width: 760px; }
.cta-band h2 { margin: 0; }
.cta-band p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.4; margin: 0; max-width: 40ch; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px; margin-top: 8px; }
.btn-row > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }

/* ---------- Icon badge and option cards ---------- */
.icon { width: 1.75rem; height: 1.75rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-badge { display: inline-flex; width: 3rem; height: 3rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--tint); color: var(--accent); margin-bottom: 10px; }
.option { text-align: left; }
.option h3 { margin-bottom: 4px; }
.option p { color: var(--text-muted); margin: 0; font-size: .98rem; line-height: 1.5; }
.option--us { background: var(--tint); border-color: var(--accent); }
.option--us .icon-badge { background: var(--accent); color: var(--on-accent); }
.option--us p { color: var(--text); }
.options-foot { margin-top: 20px; text-align: center; }


/* ---------- Values and progress (team page) ---------- */
.progress-col h3 { color: var(--green); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.progress-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.progress-col li { position: relative; padding-left: 18px; color: var(--text-muted); font-size: .98rem; line-height: 1.45; }
.progress-col li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Page head (inner pages) ---------- */
.page-head { padding-block: clamp(28px, 4.4vw, 52px) clamp(14px, 2vw, 24px); text-align: center; }
.page-head h1 { max-width: 16em; margin: 0 auto .3em; font-size: clamp(2rem, 5vw, 3.4rem); }
.page-head h1 .ph { font-size: .45em; }
.page-head .lead { margin: 0 auto; }

/* ---------- How it works ---------- */
.how-layout { display: grid; gap: 20px; }
.toc { display: none; }
.how-section { padding-block: clamp(22px, 3.6vw, 48px); border-top: 1px solid var(--border); scroll-margin-top: calc(var(--header-h) + 8px); }
.how-section:first-child { border-top: 0; }
.points { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 0 0 clamp(16px, 2.7vw, 28px); }
@media (min-width: 640px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.point { border: 1px solid var(--border); border-radius: 16px; padding: 14px 18px; background: var(--surface); }
.point h3 { font-size: 1.05rem; margin-bottom: 4px; }
.point p { margin: 0; color: var(--text-muted); font-size: .98rem; line-height: 1.5; }
.how-section__body { max-width: 62ch; font-size: 1.1rem; color: var(--text-muted); margin-bottom: 14px; }
.how-figure, .diagram-figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(12px, 2.2vw, 22px);
  background: var(--bg);
}
.how-figure figcaption, .diagram-figure figcaption {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: .9rem;
  color: var(--text-muted);
}
.how-figure svg, .diagram-figure svg { width: 100%; height: auto; color: var(--text); }
.how-section h2, .pg-section h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }

@media (min-width: 1000px) {
  .how-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
  .toc { display: block; position: sticky; top: calc(var(--header-h) + 32px); }
  .toc__title { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 12px; font-weight: 500; }
  .toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
  .toc a {
    display: block;
    padding: 8px 0 8px 16px;
    margin-left: -1px;
    border-left: 1px solid transparent;
    color: var(--text-muted);
    text-decoration: none;
    font-size: .95rem;
    transition: color 200ms var(--ease), border-color 200ms var(--ease);
  }
  .toc a:hover { color: var(--text); }
  .toc a.is-active, .toc a[aria-current="location"] { color: var(--accent); border-left-color: var(--accent); }
}

/* diagram helpers for hand-authored SVGs (use on any page) */
.dg-line { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.dg-accent { stroke: var(--accent); }
.dg-warm { stroke: var(--accent-warm); }
.dg-gray { stroke: var(--gray-1); }
.dg-gray-light { stroke: var(--gray-2); }
.dg-dash { stroke-dasharray: 4 5; }
.dg-fill-accent { fill: var(--accent); stroke: none; }
.dg-fill-warm { fill: var(--accent-warm); stroke: none; }
.dg-fill-gray { fill: var(--gray-2); stroke: none; }
.dg-fill-band { fill: var(--safe-band); stroke: none; }
.dg-fill-surface { fill: var(--surface); }
.dg-text { font-family: var(--font-body); font-size: 13px; font-weight: 500; fill: var(--text-muted); }
.dg-text--strong { fill: var(--text); }
.dg-text--accent { fill: var(--accent); }
.dg-flow { stroke-dasharray: 3 9; animation: dg-flow 3.2s linear infinite; }
.dg-pulse { transform-box: fill-box; transform-origin: center; animation: dg-pulse 3.6s var(--ease) infinite; }
@keyframes dg-flow { to { stroke-dashoffset: -24; } }
@keyframes dg-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.18); opacity: .6; } }

/* ---------- Technology ---------- */
.iteration { display: grid; gap: 16px; }
.compare { margin-top: clamp(24px, 4vw, 40px); }
.methods { max-width: 760px; }
.methods h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.methods__body { color: var(--text-muted); }

/* ---------- Results ---------- */
.figure-list { display: grid; gap: clamp(36px, 6vw, 64px); }
.section--figure h2 { margin-bottom: clamp(14px, 2vw, 22px); text-align: center; }
.section--figure .btn-row { margin-top: clamp(16px, 2.6vw, 26px); }

/* ---------- Products page ---------- */
.products-cols { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .products-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
.product { scroll-margin-top: calc(var(--header-h) + 16px); }
.product:hover { transform: none; }
.product h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .4em; }
.product__use { color: var(--text-muted); margin-bottom: 1rem; }
.product__status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 1rem 0 8px; }
.product__status h3 { margin: 0; font-size: 1rem; }
.business { margin-top: clamp(40px, 6vw, 72px); max-width: 760px; }
.business__body { color: var(--text-muted); }

/* ---------- Contact (email only) ---------- */
.contact-mail { text-align: center; }
.contact-mail__link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  color: var(--accent);
}

/* ---------- In summary and collapsible deeper analysis ---------- */
.in-summary { font-size: 1rem; line-height: 1.6; color: var(--text); max-width: 70ch; margin: 0 0 1rem; }
.in-summary strong { color: var(--text-muted); font-weight: 600; }

.deeper { max-width: 70ch; border-top: 1px solid var(--border); margin-top: 1.25rem; interpolate-size: allow-keywords; }
.deeper > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; cursor: pointer; list-style: none;
  font-weight: 500; color: var(--text); border-radius: 6px;
  transition: color 200ms var(--ease);
}
.deeper > summary::-webkit-details-marker { display: none; }
.deeper > summary::marker { content: ""; }
.deeper > summary:hover { color: var(--accent); }
.deeper > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.deeper > summary::after {
  content: ""; flex: none; width: 8px; height: 8px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 250ms var(--ease);
}
.deeper[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.deeper__body { padding: 4px 0 20px; color: var(--text-muted); font-size: .95rem; }
.deeper__body p { margin: 0 0 1em; }
.deeper__body p:last-child { margin-bottom: 0; }
.sources ol { margin: 0; padding-left: 1.4em; font-size: .88rem; }
.sources li { margin-bottom: .5em; overflow-wrap: anywhere; }

/* page-level sources block, just above the footer */
.section--sources { padding-block: 0 clamp(16px, 2.6vw, 26px); }
.section:has(+ .section--sources) { padding-bottom: clamp(22px, 3.4vw, 38px); }
.section--sources .deeper { margin: 0; max-width: none; border-top: 1px solid var(--border); }
.section--sources .deeper > summary { min-height: 48px; padding: 8px 0; font-size: .875rem; color: var(--text-muted); }
.section--sources .deeper > summary:hover { color: var(--accent); }
.section--sources .deeper__body { padding: 4px 0 8px; font-size: .8125rem; color: var(--text-muted); }
.section--sources ol { max-width: 80ch; font-size: .8125rem; }
.section--sources li { line-height: 1.5; }

/* smooth open and close where ::details-content is supported; elsewhere it opens at once */
@supports selector(::details-content) {
  .deeper::details-content {
    block-size: 0; opacity: 0; overflow: clip;
    transition: block-size 300ms var(--ease), opacity 250ms var(--ease), content-visibility 300ms allow-discrete;
  }
  .deeper[open]::details-content { block-size: auto; opacity: 1; }
}

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero .line__in, .hero.is-ready .line__in { transform: none !important; animation: none !important; }
  .hero [data-hero-in], .hero .hero__art { opacity: 1 !important; transform: none !important; animation: none !important; }
  .arrow-path { stroke-dashoffset: 0 !important; stroke-dasharray: none !important; }
  .ha-drop, .ha-idle, .ha-uptake, .ha-ring, .ha-flow, .dg-flow, .dg-pulse { animation: none !important; }
  .ha-drop, .ha-uptake { display: none; }
  .card:hover, .btn:hover, .btn--ghost:hover { transform: none !important; }
  .deeper::details-content { transition: none !important; }
  .deeper > summary::after { transition: none !important; }
  .team-card:hover .team-card__photo::after { transform: none !important; }
}

/* ---------- Technology page ---------- */
.subnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 0; }
.subnav__link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-size: .9rem; font-weight: 500; text-decoration: none; transition: border-color 200ms var(--ease), color 200ms var(--ease); }
.subnav__link:hover { border-color: var(--accent); color: var(--accent); }
.points + .how-figure, .points + .grid-2, .grid-2 + .how-figure { margin-top: clamp(24px, 4vw, 40px); }
.points--3 { }
@media (min-width: 900px) { .points--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pg-h3 { margin: clamp(32px, 5vw, 56px) 0 16px; font-size: 1.3rem; }
.pg-lead { margin: -4px 0 20px; }
.chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .chain { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chain__item { position: relative; border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px 20px; background: var(--bg); }
.chain__item h3 { font-size: 1.05rem; margin: 0 0 6px; }
.chain__item p { margin: 0; color: var(--text-muted); font-size: .95rem; line-height: 1.5; }
.chain__num { display: inline-block; margin-bottom: 8px; font-family: var(--font-mono); font-size: .8rem; color: var(--accent); }
.eq h3 { font-size: 1rem; margin-bottom: 12px; }
.eq__expr { margin: 0 0 12px; padding: 14px 16px; background: var(--surface); border-radius: 12px; font-family: var(--font-display); font-style: italic; font-size: clamp(1rem, 2.4vw, 1.25rem); line-height: 1.5; overflow-wrap: anywhere; }
.eq__expr sub, .eq__where sub { font-size: .7em; }
.eq__words { margin: 0 0 8px; }
.eq__where { margin: 0; color: var(--text-muted); font-size: .85rem; line-height: 1.5; }
.uptake-stats { margin-top: clamp(24px, 4vw, 40px); }
.section .compare + .compare { margin-top: clamp(32px, 5vw, 56px); }
.compare--numbers .compare-table caption { font-size: 1.2rem; }
.method-note { margin-top: clamp(18px, 3vw, 28px); padding: 14px 20px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; }
.method-note h3 { font-size: 1rem; margin-bottom: 6px; }
.method-note p { margin: 0; color: var(--text-muted); }

/* ---------- Flip cards (any card item with a "back") ---------- */
.flip { position: relative; display: grid; perspective: 1400px; cursor: pointer; border-radius: var(--radius); transition: transform 200ms var(--ease); -webkit-tap-highlight-color: transparent; }
.flip:hover { transform: translateY(-2px); }
.flip:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.flip__inner { display: grid; min-width: 0; transform-style: preserve-3d; transition: transform 600ms var(--ease); }
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face { grid-area: 1 / 1; position: relative; min-width: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flip .flip__front:hover { transform: none; }
.flip .flip__back { transform: rotateY(180deg); background: var(--tint); border-color: var(--accent); }
.flip .flip__back:hover { transform: rotateY(180deg); }
.flip__hint { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; color: var(--text-muted); opacity: .7; transition: transform 500ms var(--ease), opacity 200ms var(--ease), color 200ms var(--ease); pointer-events: none; }
.flip:hover .flip__hint { opacity: 1; color: var(--accent); transform: rotate(-90deg); }
.flip__title { margin: 0 26px 8px 0; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.flip .flip__back .flip__body { margin: 0 0 .6em; font-size: .95rem; line-height: 1.5; color: var(--text); }
.flip .flip__back .flip__body:last-child { margin-bottom: 0; }
.flip__points { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: .92rem; line-height: 1.45; color: var(--text); }
.flip .flip__back .link-arrow { margin-top: 12px; }
.flip__back.stat, .flip__back.option { justify-content: flex-start; }
@media (prefers-reduced-motion: reduce) {
  .flip__inner, .flip.is-flipped .flip__inner { transform: none !important; transition: none !important; }
  .flip__face { -webkit-backface-visibility: visible; backface-visibility: visible; transition: opacity 200ms linear !important; }
  .flip .flip__back, .flip .flip__back:hover { transform: none !important; opacity: 0; pointer-events: none; }
  .flip.is-flipped .flip__back { opacity: 1; pointer-events: auto; }
  .flip.is-flipped .flip__front { opacity: 0; pointer-events: none; }
  .flip:hover, .flip:hover .flip__hint { transform: none !important; }
}

.page-head .team-tagline { font-weight: 500; color: var(--text); margin: 0 auto 14px; }
.page-head .team-tagline + .lead { margin-top: 0; }

/* ---------- Expandable steps: the dot grows into a panel ---------- */
button.step__badge { appearance: none; -webkit-appearance: none; padding: 0; cursor: pointer; line-height: 1; }
.step__badge:hover, .step__badge.is-active { background: var(--accent); color: var(--on-accent); }
.step__badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.step-panel { position: relative; z-index: 1; margin-top: 32px; padding: 28px clamp(20px, 4vw, 40px); background: var(--tint); border: 1.5px solid var(--accent); border-radius: 20px; will-change: transform; }
.step-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.step-panel__body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px clamp(16px, 3vw, 32px); align-items: start; opacity: 0; transition: opacity 200ms linear; padding-right: 36px; }
.step-panel.is-in .step-panel__body { opacity: 1; transition: opacity 300ms linear 240ms; }
.step-panel__num { margin: 0; font-family: var(--font-mono); font-size: clamp(1.6rem, 5vw, 2.6rem); line-height: 1; color: var(--accent); }
.step-panel__title { margin: 0 0 8px; font-size: 1.3rem; }
.step-panel__text { margin: 0 0 12px; max-width: 68ch; font-size: 1.02rem; line-height: 1.55; color: var(--text); }
.step-panel__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--text-muted); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.step-panel__close:hover { background: var(--bg); color: var(--accent); }
.step-panel__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.step .step-panel { grid-column: 1 / -1; margin: 20px 0 0; }
@media (prefers-reduced-motion: reduce) {
  .step-panel { transform: none !important; transition: none !important; }
  .step-panel__body, .step-panel.is-in .step-panel__body { transition: opacity 200ms linear !important; transition-delay: 0s !important; }
}

/* ---------- Logo carousel (homepage) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); display: block; }
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee__group { display: flex; flex: none; align-items: center; gap: 64px; padding-right: 64px; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none !important; } }

/* ---------- Research advisors (team page) ---------- */
.advisors-chip:empty { display: none; }
.advisors-chip { margin: 12px 0 0; }
.advisor-logos { list-style: none; margin: 0 0 clamp(24px, 4vw, 40px); padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px; }
.advisor-logo img { height: 64px; width: auto; background: #fff; border-radius: 12px; padding: 6px 10px; }
.advisor-logo__ph, .advisor__ph { display: block; width: 64px; height: 64px; border-radius: 50%; background: var(--surface); border: 1px dashed var(--gray-2); }
.advisor-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.advisor-grid > * { flex: 1 1 280px; max-width: 360px; }
.advisor { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.advisor__logo { margin-bottom: 12px; }
.advisor__logo img { height: 72px; width: auto; max-width: 100%; background: #fff; border-radius: 12px; padding: 6px 10px; }
.advisor h3 { margin-bottom: 2px; }
.advisor__inst { color: var(--accent); font-weight: 600; text-decoration: none; }
a.advisor__inst:hover { text-decoration: underline; }
.advisor__spec { margin: 4px 0 0; color: var(--text-muted); font-size: .95rem; }
.advisor-quote { margin: clamp(24px, 4vw, 40px) auto 0; max-width: 720px; padding: clamp(20px, 4vw, 36px); border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 16px 16px 0; }
.advisor-quote blockquote { margin: 0 0 12px; }
.advisor-quote p { margin: 0; font-family: var(--font-display); font-size: clamp(1.1rem, 2.4vw, 1.4rem); line-height: 1.4; }
.advisor-quote figcaption { color: var(--text-muted); font-size: .9rem; }

.team-card__line strong { color: var(--text); font-weight: 600; }

.flip__back.team-card, .flip__back.advisor { justify-content: center; }

/* Technology tables sit under their own h2, so the caption is for screen readers only. */
.compare .compare-table caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Keep row labels whole on narrow screens ("Reusable", not "Reusabl e"). */
.compare th[scope="row"] { min-width: 6.5em; overflow-wrap: normal; word-break: normal; hyphens: manual; }

/* Public mode (no ?draft=1): placeholder chips and pending figures never show to visitors.
   site.js hides the blocks around them; these rules are the safety net. */
.is-public .ph:not(.sim-wrap .ph) { display: none !important; }
.is-public .bv-figure:has(.is-empty) { display: none !important; }
.is-public a.is-unset { display: none !important; }

/* ---------- "More": long prose shows its first sentence, the rest opens in place ---------- */
.more__btn {
  position: relative; z-index: 2;
  display: inline; appearance: none; -webkit-appearance: none;
  margin: 0 0 0 .35em; padding: 0; border: 0; background: none;
  font: inherit; font-size: .92em; font-weight: 500; line-height: inherit; text-align: inherit;
  color: var(--accent); cursor: pointer; white-space: nowrap;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
  transition: text-decoration-color 200ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
/* a taller hit area than the line itself, without changing the line height */
.more__btn::before { content: ""; position: absolute; inset: -.5em -.4em; }
.more__btn:hover { text-decoration-color: currentColor; }
.more__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.more__chev { display: inline-block; width: .42em; height: .42em; margin-left: .45em; vertical-align: .12em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.12em) rotate(45deg); transition: transform 250ms var(--ease); }
.is-more-open > .more__btn .more__chev { transform: translateY(.1em) rotate(-135deg); }
.more__bar { margin: .5rem 0 0; font-size: 1rem; }
.more__bar .more__btn { margin-left: 0; font-size: .95em; }
.more__block { margin-top: .5rem; }
.more__rest { transition: opacity 250ms var(--ease); }
.has-more { interpolate-size: allow-keywords; }
@media (prefers-reduced-motion: reduce) { .more__chev, .more__rest, .more__btn { transition: none !important; } }

/* Flip cards: the back never sets the card's height while the card is closed, so a card is as tall as its
   (now short) front. Opening it lets the back count again; site.js animates the height change. */
.flip:not(.is-flipped) .flip__back { contain: size; overflow: hidden; }

/* The Demo page keeps its original rhythm. */
body[data-page="simulate"] .section { padding-block: clamp(64px, 9vw, 120px); }
body[data-page="simulate"] .page-head { padding-block: clamp(56px, 9vw, 104px) clamp(24px, 4vw, 48px); }
body[data-page="simulate"] .page-head .lead { margin: 0 auto; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; }
body[data-page="simulate"] .page-head h1 { margin: 0 auto .4em; font-size: clamp(2.4rem, 6.4vw, 4.6rem); }
body[data-page="simulate"] .eyebrow { margin-bottom: 1rem; }

/* ---------- Compact card heads: the icon sits beside the title instead of above it ---------- */
.option.flip__front, .option:not(.flip__face) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; align-content: start; }
.option.flip__front .icon-badge, .option:not(.flip__face) .icon-badge { width: 2.5rem; height: 2.5rem; margin: 0; }
.option.flip__front .icon, .option:not(.flip__face) .icon { width: 1.4rem; height: 1.4rem; }
.option.flip__front h3, .option:not(.flip__face) h3 { margin: 0; }
.option.flip__front p, .option:not(.flip__face) p { grid-column: 1 / -1; margin-top: 8px; }
.cta-band { padding-block: clamp(24px, 3.6vw, 44px); }
.more-clamp.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.more__bar { grid-column: 1 / -1; }
.more__bar--clamp { margin-top: 2px; font-size: .95rem; line-height: 1.4; }
.more-clamp:has(+ .more__bar:not([hidden])) { margin-bottom: 0 !important; }
.more__bar--clamp .more__btn { font-size: .95em; }

/* Phones: body text one pixel smaller (17px to 16px), a tighter hero and card gap. */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__sub { font-size: 1.02rem; margin-bottom: 1rem; }
  .grid-2, .grid-3, .grid-4 { gap: 12px; }
}
body[data-page="simulate"] { font-size: 17px; }

/* The More bar is positioned, so browsers paint it on its own layer and it ignores the face's
   backface-visibility. Hide it on the turned-away front, switching at mid-flip. */
.flip .flip__front .more__bar { transition: visibility 0s linear .3s; }
.flip .flip__front .more__btn { transition: text-decoration-color 200ms var(--ease), visibility 0s linear .3s; }
.flip.is-flipped .flip__front .more__bar, .flip.is-flipped .flip__front .more__btn { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .flip .flip__front .more__bar, .flip .flip__front .more__btn { transition: none; } }

/* Flip cue: a small labelled pill in the corner ("Flip" / "Back") so the turn-over is discoverable. */
.flip__cue { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 7px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--text-muted); font-size: .72rem; font-weight: 600; letter-spacing: .04em; line-height: 1; pointer-events: none; transition: color 200ms var(--ease), border-color 200ms var(--ease); }
.flip__cue .flip__hint { position: static; width: 13px; height: 13px; opacity: 1; color: currentColor; }
.flip:hover .flip__cue, .flip:focus-visible .flip__cue { color: var(--accent); border-color: var(--accent); }
.flip:hover .flip__cue .flip__hint { color: currentColor; transform: rotate(-90deg); }
.flip__back .flip__cue { background: transparent; }
/* keep the first line of a card clear of the cue */
.flip__face > h3:first-of-type, .flip__face > .flip__title, .flip__face > .eyebrow:first-child { padding-right: 4.5rem; }

/* ---------- Story flow: "why this matters" line and the onward link at the end of a page ---------- */
.why { margin: 0 0 14px; max-width: 62ch; font-size: .98rem; line-height: 1.5; color: var(--text); }
.why__label { font-weight: 600; color: var(--accent); }
.next-page, body[data-page] .section.next-page { padding-block: 0 clamp(14px, 2.2vw, 24px); }
.next-page__card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 12px; align-items: baseline;
  padding: 12px clamp(14px, 2vw, 20px);
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  color: var(--text); text-decoration: none;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease);
}
.next-page__card:hover { transform: translateY(-2px); border-color: var(--accent); text-decoration: none; }
.next-page__kicker { grid-column: 1; font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.next-page__title { grid-column: 2; font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 600; letter-spacing: -.01em; }
.next-page__line { grid-column: 1 / -1; color: var(--text-muted); font-size: .95rem; line-height: 1.45; }
.next-page__arrow { grid-column: 3; grid-row: 1; font-size: 1.4rem; color: var(--accent); transition: transform 200ms var(--ease); }
.next-page__card:hover .next-page__arrow { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .next-page__card, .next-page__arrow { transition: none; } .next-page__card:hover { transform: none; } .next-page__card:hover .next-page__arrow { transform: none; } }

/* ---------- Visuals: product illustrations now, CAD renders later ---------- */
.visual { position: relative; margin: 0; color: var(--text); }
.visual__art { width: 100%; }
.visual__art svg, .visual__art img { display: block; width: 100%; height: auto; }
.visual__label {
  position: absolute; right: 10px; bottom: 8px;
  padding: .4em .75em; border: 1px solid var(--border); border-radius: 999px; background: var(--bg);
  font-size: .68rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1; color: var(--text-muted);
  pointer-events: none;
}
.visual--hero .visual__label { right: 0; bottom: -4px; }
.visual--teaser { display: flex; align-items: flex-end; gap: 8px; margin: 0 0 8px -6px; }
.visual--teaser .visual__art { width: min(62%, 230px); flex: none; }
.visual--teaser .visual__label { position: static; padding: .35em .6em; font-size: .6rem; margin-bottom: 6px; }
/* The case in the hero: the cartridge slides out and back, slowly. The drawing is static under reduced motion. */
@keyframes il-slide {
  0%, 20% { transform: none; }
  45%, 68% { transform: translate(var(--il-dx, 0px), var(--il-dy, 0px)); }
  93%, 100% { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .visual--hero .il-slide { animation: il-slide 11s var(--ease) infinite; }
}

/* Flip-card backs: a link inside must not stretch over the whole card, or clicking the back
   to flip it would follow the link instead. Only the link text is clickable. */
.flip .flip__back a::after { content: none !important; }

/* Trademark mark after the BioVault wordmark (header) */
.wordmark::after { content: "\2122"; margin-left: 1px; font-size: .5em; font-weight: 500; vertical-align: super; color: var(--text-muted); }

/* ---------- Flow (Nov 2026): one continuous background, no hard colour-band edges ----------
   Sections are separated by whitespace and type, not by alternating bands. The header stays blended into the page
   (transparent; a hairline and the page colour only after scrolling, see #site-header.is-scrolled). */
.section--alt { background: var(--bg); border-block: 0; }
.section--alt .card { background: var(--surface); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* filled buttons darken to accent-hover instead of fading */
.v2-btn:not(.v2-btn--ghost):not(.hm-btn--on-band):hover { opacity: 1; background: var(--accent-hover, var(--accent)); border-color: var(--accent-hover, var(--accent)); }
.v2-btn--ghost:hover { background: var(--accent); color: var(--on-accent); }
