/* Revalia theme styles.
   Part 1 is the R3-v2 prototype CSS ported onto theme.json tokens; part 2 adapts it to core block markup. */

/* Inside the designed sections, spacing comes from the prototype CSS below, not WordPress's block-gap margins.
   This reset is one class strong and comes first, so it cancels core's `:root :where(.is-layout-flow) > *` (global styles
   load before this file) while every prototype rule later in this file still wins. Keep it here, and keep it this weak. */
:where(.rv-canvas, .nav, .foot) .is-layout-flow > * { margin-block: 0; }
/* Likewise headings: theme.json gives them a tight line-height (1.06 / 1.25) for ordinary pages, but in the prototype they
   inherit the body's 1.5 unless a rule below sets one (the "Three questions" title, card and proof titles). */
.rv-canvas :where(h1, h2, h3, h4, h5, h6) { line-height: 1.5; }

/* Layout: the Figma homepage (1512 frame) rebuilt section by section. One fixed dot layer floats above the page;
   every graphic is a placeholder box the dots fly into as you scroll. */
:root {
  color-scheme: dark;
  --bg: var(--wp--preset--color--base);
  --bg-hero: var(--wp--preset--color--base-2);
  --fg: var(--wp--preset--color--contrast);
  --muted: var(--wp--preset--color--muted);       /* first half of two-tone headlines */
  --body: var(--wp--preset--color--body);
  --body-2: var(--wp--preset--color--body-2);
  --dim: var(--wp--preset--color--dim);
  --line: var(--wp--custom--line);
  --blue: var(--wp--preset--color--primary);      /* buttons + logo tile */
  --btn-dark: var(--wp--preset--color--surface-2);
  --capsule: var(--wp--preset--color--surface);
  --pill: var(--wp--preset--color--pill);
  --font-head: var(--wp--preset--font-family--display);   /* headers + big numbers */
  --font-display: var(--wp--preset--font-family--body);   /* body, buttons, nav */
  --font-mono: var(--wp--preset--font-family--mono);
  --max: var(--wp--custom--max);
  /* colour tokens (theme.json palette); transparency is written as color-mix(in srgb, var(--c-x) N%, transparent) */
  --c-base: var(--wp--preset--color--base); --c-base-2: var(--wp--preset--color--base-2); --c-surface: var(--wp--preset--color--surface); --c-surface-2: var(--wp--preset--color--surface-2); --c-pill: var(--wp--preset--color--pill);
  --c-contrast: var(--wp--preset--color--contrast); --c-white: var(--wp--preset--color--white); --c-body: var(--wp--preset--color--body); --c-muted: var(--wp--preset--color--muted); --c-body-2: var(--wp--preset--color--body-2);
  --c-dim: var(--wp--preset--color--dim); --c-primary: var(--wp--preset--color--primary); --c-primary-hover: var(--wp--preset--color--primary-hover); --c-primary-deep: var(--wp--preset--color--primary-deep); --c-primary-light: var(--wp--preset--color--primary-light);
  --c-ice: var(--wp--preset--color--ice); --c-light: var(--wp--preset--color--light); --c-line: var(--wp--preset--color--line); --c-sky: var(--wp--preset--color--sky); --c-frost: var(--wp--preset--color--frost);
  --c-azure: var(--wp--preset--color--azure); --c-periwinkle: var(--wp--preset--color--periwinkle); --c-haze: var(--wp--preset--color--haze); --c-indigo: var(--wp--preset--color--indigo); --c-cobalt: var(--wp--preset--color--cobalt); --c-navy: var(--wp--preset--color--navy);
  /* type tokens (theme.json fontSizes): fixed steps named by nominal px, plus fluid display sizes */
  --fs-11: var(--wp--preset--font-size--11); --fs-12: var(--wp--preset--font-size--12); --fs-13: var(--wp--preset--font-size--13); --fs-14: var(--wp--preset--font-size--14); --fs-15: var(--wp--preset--font-size--15); --fs-16: var(--wp--preset--font-size--16);
  --fs-17: var(--wp--preset--font-size--17); --fs-18: var(--wp--preset--font-size--18); --fs-20: var(--wp--preset--font-size--20); --fs-21: var(--wp--preset--font-size--21); --fs-22: var(--wp--preset--font-size--22); --fs-26: var(--wp--preset--font-size--26); --fs-x-large: var(--wp--preset--font-size--x-large);
  --fs-h4: var(--wp--preset--font-size--h-4); --fs-step: var(--wp--preset--font-size--step); --fs-numeral: var(--wp--preset--font-size--numeral); --fs-stat: var(--wp--preset--font-size--stat); --fs-statement: var(--wp--preset--font-size--statement); --fs-h3: var(--wp--preset--font-size--h-3); --fs-stat-xl: var(--wp--preset--font-size--stat-xl);
  /* spacing tokens (theme.json spacingSizes): a 4px-based fixed scale, two fluid column gaps, six fluid section steps */
  --sp-4: var(--wp--preset--spacing--4); --sp-8: var(--wp--preset--spacing--8); --sp-12: var(--wp--preset--spacing--12); --sp-16: var(--wp--preset--spacing--16); --sp-20: var(--wp--preset--spacing--20); --sp-24: var(--wp--preset--spacing--24); --sp-28: var(--wp--preset--spacing--28);
  --sp-32: var(--wp--preset--spacing--32); --sp-40: var(--wp--preset--spacing--40); --sp-48: var(--wp--preset--spacing--48); --sp-56: var(--wp--preset--spacing--56); --sp-64: var(--wp--preset--spacing--64); --sp-80: var(--wp--preset--spacing--80); --sp-96: var(--wp--preset--spacing--96);
  --sp-gap-m: var(--wp--preset--spacing--gap-m); --sp-gap-l: var(--wp--preset--spacing--gap-l);
  --sp-section-xs: var(--wp--preset--spacing--section-xs); --sp-section-s: var(--wp--preset--spacing--section-s); --sp-section-m: var(--wp--preset--spacing--section-m);
  --sp-section-l: var(--wp--preset--spacing--section-l); --sp-section-xl: var(--wp--preset--spacing--section-xl); --sp-section-xxl: var(--wp--preset--spacing--section-xxl);
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --h1: var(--wp--preset--font-size--h-1);
  --h2: var(--wp--preset--font-size--h-2);
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
/* no scroll anchoring: Chrome restores a reloaded page's scroll position by re-finding an element it noted on the way
   out, but the scripts rebuild some of the page as it starts (the hero headline is split into words, pinned sections are
   sized), so it re-found the wrong one and a reload at the top landed ~225px down. Without anchoring the browser restores
   the exact scroll position. Nothing on the site relies on anchoring. */
html, body { overflow-anchor: none; }
/* nothing may scroll the page sideways. html carries the guard (iOS doesn't always honour it on body alone); body only
   clips, so it never becomes a scroll container (that would break the sticky sections) */
html { overflow-x: hidden; }
body { margin: 0; -webkit-font-smoothing: antialiased; overflow-x: visible; overflow-x: clip; }
body { text-wrap: pretty; }   /* Nov 18: no orphans by default sitewide (inherited; rules that set balance/nowrap/initial still win) */
:where(.rv-canvas, .nav, .foot) :where(h1, h2, h3, h4, h5, h6, p, ul, ol, figure) { margin: 0; font-weight: 400; }
:where(.rv-canvas) :where(h1, h2, h3, h4), .title, .stat-n, .stat10 b { font-family: var(--font-head); }
:where(.rv-canvas, .nav, .foot) a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--c-primary-light); outline-offset: 3px; border-radius: 999px; }
/* Nov 18: no ring at all on mouse click / tap anywhere (browser defaults included); keyboard focus (:focus-visible) keeps its ring */
:focus:not(:focus-visible) { outline: none; }
html { -webkit-tap-highlight-color: transparent; }
[tabindex="-1"]:focus { outline: none; }   /* sections focused by in-page links (effects.js) */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) + var(--gut-r)); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.mu { color: var(--muted); }
.mono { font: 500 var(--fs-11)/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.anchor { position: relative; min-width: 0; }
.anchor > canvas.local { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }   /* dot target boxes: the flow layer draws into these */

/* fixed dot layer */
/* the dot layer scrolls with the page: flow.js re-places the canvas at the scroll offset every frame (see placeFlow) */
body { position: relative; }
.rv-flow-clip { position: absolute; inset: 0; overflow: clip; z-index: 30; pointer-events: none; }
#flow { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }

/* buttons */
.capsule, .is-style-capsule { display: inline-flex; flex-wrap: wrap; gap: var(--sp-8); padding: var(--sp-8); border-radius: 999px; position: relative;
  /* plain translucent fill with a smooth blur of whatever sits behind it */
  background: color-mix(in srgb, var(--c-surface) 60%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.btn, .wp-block-button__link.btn { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 var(--sp-40); border-radius: 999px; font: 500 var(--fs-17)/1 var(--font-display); letter-spacing: -.01em; white-space: nowrap; transition: transform .2s, filter .2s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-blue { background: var(--blue); color: var(--c-white); }
/* blue buttons (hero v2 page): on hover a fine dot grid surfaces inside the pill around the cursor */
.v2 .btn-blue { position: relative; isolation: isolate; transition: transform .2s, filter .2s, background-color .35s ease, box-shadow .35s ease; }
.v2 .btn-blue::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--c-white) 85%, transparent) 0 .85px, transparent 1.25px); background-size: 6px 6px; background-position: 0 1px;
  -webkit-mask-image: radial-gradient(64px 64px at var(--bx, 50%) var(--by, 50%), #000 0%, rgba(0, 0, 0, .45) 45%, transparent 100%);
  mask-image: radial-gradient(64px 64px at var(--bx, 50%) var(--by, 50%), #000 0%, rgba(0, 0, 0, .45) 45%, transparent 100%); }
.v2 .btn-blue:hover { filter: none; background-color: var(--c-primary-hover); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-sky) 35%, transparent), var(--wp--preset--shadow--glow); }
.v2 .btn-blue:hover::before { opacity: .5; }

.btn-dark { color: var(--fg); position: relative;
  /* very smooth glass: soft top-lit tint, gentle blur, hairline edge */
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-white) 6.5%, transparent), color-mix(in srgb, var(--c-white) 2%, transparent) 55%, color-mix(in srgb, var(--c-white) 3%, transparent)), color-mix(in srgb, var(--c-surface-2) 60%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-white) 4.5%, transparent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--c-white) 6%, transparent), inset 0 -8px 16px -10px color-mix(in srgb, var(--c-periwinkle) 14%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
/* hover: a white dot grows from where the cursor enters until it fills the pill; it shrinks back toward where the cursor leaves */
.btn-dark { isolation: isolate; overflow: hidden; transition: transform .2s, filter .2s, color .4s ease; }
.btn-dark::before { content: ""; position: absolute; z-index: -1; left: var(--mx, 50%); top: var(--my, 50%); width: var(--d, 320px); height: var(--d, 320px); border-radius: 50%; background: var(--c-white); transform: translate(-50%, -50%) scale(0); transition: transform .6s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.btn-dark:hover { color: var(--c-base-2); filter: none; }
.btn-dark:hover::before { transform: translate(-50%, -50%) scale(1); }
@media (prefers-reduced-motion: reduce) { .btn-dark::before { transition-duration: .01s; } }
.btn-light { background: var(--c-light); color: var(--c-base-2); }

/* nav (R5, Nov 17): fixed to the top; it slides away as you scroll down and comes back the moment you scroll up
   (assets/js/effects.js toggles .is-solid / .is-hidden). The header part keeps the bar's 148px (92px on phones) in the
   page flow, so every hero still tucks under it with its negative margin, as before. */
header.wp-block-template-part:has(> .nav) { height: 148px; }
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 45; will-change: transform; transition: transform .85s cubic-bezier(.22, 1, .36, 1); }
.admin-bar .nav { top: var(--wp-admin--admin-bar--height, 32px); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-20); height: 148px; }
/* progressive blur behind the bar: strongest at the top, easing to nothing below it, with a soft tint, no edge or line */
.nav-blur { position: absolute; left: 0; right: 0; top: 0; height: 160%; z-index: -1; pointer-events: none; }
.nav-blur i { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.nav.is-solid .nav-blur i { opacity: 1; }
.nav-blur i:nth-child(1) { backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); -webkit-mask-image: linear-gradient(#000 0%, #000 62%, transparent 100%); mask-image: linear-gradient(#000 0%, #000 62%, transparent 100%); }
.nav-blur i:nth-child(2) { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); -webkit-mask-image: linear-gradient(#000 0%, #000 50%, transparent 86%); mask-image: linear-gradient(#000 0%, #000 50%, transparent 86%); }
.nav-blur i:nth-child(3) { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); -webkit-mask-image: linear-gradient(#000 0%, #000 38%, transparent 72%); mask-image: linear-gradient(#000 0%, #000 38%, transparent 72%); }
.nav-blur i:nth-child(4) { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); -webkit-mask-image: linear-gradient(#000 0%, #000 26%, transparent 58%); mask-image: linear-gradient(#000 0%, #000 26%, transparent 58%); }
.nav-blur i:nth-child(5) { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); -webkit-mask-image: linear-gradient(#000 0%, #000 14%, transparent 44%); mask-image: linear-gradient(#000 0%, #000 14%, transparent 44%); }
.nav-blur i:nth-child(6) { background: linear-gradient(rgba(7, 6, 28, .7) 0%, rgba(7, 6, 28, .38) 40%, rgba(7, 6, 28, .1) 72%, transparent 100%); }
.nav .nav-in { transition: height .55s cubic-bezier(.22, 1, .36, 1), opacity .6s ease; }
.nav.is-solid .nav-in { height: 96px; }
/* going away: an eased glide up while the bar and its blur fade; coming back: a soft glide down with a long ease-out */
.nav.is-hidden { transform: translateY(-120%); transition: transform .8s cubic-bezier(.65, 0, .35, 1); }
.nav.is-hidden .nav-in { opacity: 0; transition-duration: .55s, .55s; }
/* (Lorik, Nov 18) the blur/tint band reaches below the bar, so it drops out at once when the bar starts to hide and never
   shades the sub-nav while the bar slides away; it fades back in with the bar */
.nav-blur { transition: visibility 0s; }
.nav.is-hidden .nav-blur { visibility: hidden; transition: visibility 0s .15s; }
.nav.is-hidden .nav-blur i { opacity: 0; transition-duration: .15s; }
/* the phone menu overlay is position: fixed inside the bar; a transform (or will-change) would pin it to the bar's box */
.nav:has(.is-menu-open) { will-change: auto; transform: none; transition: none; }
@media (max-width: 900px) { header.wp-block-template-part:has(> .nav) { height: 92px; } .nav.is-solid .nav-in { height: 72px; } }
@media (prefers-reduced-motion: reduce) { .nav, .nav .nav-in, .nav-blur i { transition: none; } }
.logo { display: inline-flex; align-items: center; gap: var(--sp-8); }
.logo .tile { width: 42px; height: 42px; border-radius: 9px; background: var(--blue); display: grid; place-items: center; }
.logo .tile svg { width: 30px; height: 30px; }
.logo .word { height: 30px; width: auto; }
.links { display: flex; align-items: center; gap: var(--sp-8); }
.links a { padding: var(--sp-12) var(--sp-24); border-radius: 999px; font-size: var(--fs-17); color: var(--fg); opacity: .92; }
.links a[aria-current="page"] { background: var(--pill); opacity: 1; }
.links a:hover { opacity: 1; }
.nav .btn { height: 48px; padding: 0 var(--sp-32); margin-left: var(--sp-32); }

/* hero */
.hero { position: relative; overflow-x: clip; background: transparent; margin-top: -148px; padding-top: calc(148px + var(--sp-40)); }   /* tucked under the 148px nav */
/* slow drifting background glows (pseudo boxes overhang the section so edges never show) */
.hero::before, .sticky::before, .results::before, .data::before, .data::after, .gift::before, .work::before { content: ""; position: absolute; top: -15%; bottom: -15%; left: -25%; right: -25%; pointer-events: none; z-index: 0; will-change: transform, opacity; animation: glowdrift 28s ease-in-out infinite alternate; }
.hero > .wrap, .results > .wrap, .data > .wrap, .stats > .wrap, .news > .wrap { position: relative; z-index: 1; }
@keyframes glowdrift { 0% { transform: translate3d(0, 0, 0) scale(1); opacity: .82; } 50% { transform: translate3d(1.6%, -2.4%, 0) scale(1.07); opacity: 1; } 100% { transform: translate3d(-1.2%, 1.8%, 0) scale(.95); opacity: .9; } }
.hero::after { display: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--sp-40); align-items: center; }
.hero-copy { display: grid; gap: var(--sp-48); min-width: 0; }
.hero h1 { font-size: var(--h1); line-height: 1.04; letter-spacing: -.025em; max-width: 9.5em; text-wrap: balance; }
.hero p { color: var(--body); opacity: .8; max-width: 31em; font-size: var(--fs-18); line-height: 1.45; letter-spacing: -.01em; }
.hero-copy .capsule { justify-self: start; margin-top: var(--sp-48); }
#a-hero { aspect-ratio: .92; width: min(100%, 560px); justify-self: end; }

/* pinned problem → solution */
.pin { position: relative; height: 320vh; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.pin-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--sp-gap-l); align-items: center; }
#a-ring { width: min(100%, 88vh, 700px); aspect-ratio: 1; justify-self: start; }
.ov { position: absolute; inset: 0; pointer-events: none; }
#a-ring2 { position: absolute; inset: -9%; pointer-events: none; }   /* the Revalia kidney + data ring draws ~18% larger than the Current ring */
.ov-cur { opacity: var(--cur, 0); }
.stat10 { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); text-align: center; display: grid; gap: var(--sp-12); }
.stat10 b { font: 400 var(--fs-stat-xl)/1 var(--font-head); letter-spacing: -.04em; color: var(--c-contrast); }
.stat10 span { font-size: var(--fs-11); letter-spacing: .02em; color: var(--body-2); }
.steps { position: relative; padding-left: var(--sp-32); display: grid; min-width: 0; }
.rail { position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.rail i { position: absolute; left: 0; top: 0; width: 1px; height: calc(var(--p, 0) * 100%); background: linear-gradient(var(--c-primary-light), var(--blue)); }
.state { position: relative; padding-block: var(--sp-24); }
.state + .state { border-top: 1px solid var(--line); }
.head { display: grid; gap: var(--sp-8); transition: opacity .45s; }
.state:not(.on) .head { opacity: .32; }
.title { font: 400 var(--fs-h3)/1.05 var(--font-head); letter-spacing: -.02em; }
.sub { font-size: var(--fs-18); color: var(--body); letter-spacing: -.01em; }
.body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .75s cubic-bezier(.2, .7, .2, 1), opacity .45s; }
.state.on .body { grid-template-rows: 1fr; opacity: 1; transition-delay: .08s, .2s; }
.body > div { overflow: hidden; min-height: 0; }
.body .in { display: grid; gap: var(--sp-28); padding-top: var(--sp-32); }
.body h2 { font-size: var(--fs-statement); line-height: 1.08; letter-spacing: -.02em; color: var(--muted); max-width: 13em; text-wrap: balance; }
.body h2 b { color: var(--fg); font-weight: 400; }
/* word-by-word reveal for the pinned statements: each word rises out of a line mask when its state opens */
.wr .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .04em .16em; margin-block: -.04em -.16em; }
.wr .wi { display: inline-block; transform: translateY(105%); opacity: 0; transition: transform .25s ease, opacity .2s ease; }
.wr.wr-on .wi { transform: none; opacity: 1; transition: transform .85s cubic-bezier(.2, .7, .2, 1), opacity .7s ease; transition-delay: calc(.18s + var(--i) * 55ms); }
@media (prefers-reduced-motion: reduce) { .wr .wi { transform: none; opacity: 1; transition: none; } }
/* section titles (hero v2 page): the same word-by-word rise, played as each title scrolls into view */
/* hero intro paragraph (hero v2 page): lines rise in one after another, starting as the headline settles */
.hero p.pr .wi { display: inline-block; opacity: 0; transform: translateY(.6em); transition: none; }
.hero p.pr.wr-on .wi { opacity: 1; transform: none; transition: transform 1.1s cubic-bezier(.16, 1, .3, 1), opacity .9s cubic-bezier(.33, 1, .68, 1); transition-delay: calc(.95s + var(--ln, 0) * 130ms); }
@media (prefers-reduced-motion: reduce) { .hero p.pr .wi { opacity: 1; transform: none; transition: none; } }
/* hero buttons (hero v2 page): the capsule rises in after the paragraph, then each button follows */
.hero .capsule.cr { opacity: 0; }
.hero .capsule.cr .btn { opacity: 0; }
.hero .capsule.cr.wr-on { animation: capIn 1.1s cubic-bezier(.16, 1, .3, 1) 1.45s both; }
.hero .capsule.cr.wr-on .btn { animation: btnIn .9s cubic-bezier(.16, 1, .3, 1) both; animation-delay: 1.62s; }
.hero .capsule.cr.wr-on .btn + .btn { animation-delay: 1.76s; }
@keyframes capIn { from { opacity: 0; translate: 0 18px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes btnIn { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .hero .capsule.cr, .hero .capsule.cr .btn { opacity: 1; animation: none !important; } }
.hr2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .04em .16em; margin-block: -.04em -.16em; }
.hr2 .wi { display: inline-block; transform: translateY(110%); opacity: 0; transition: transform .3s ease, opacity .25s ease; }
.hr2.wr-on .wi { transform: none; opacity: 1; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1), opacity 1s cubic-bezier(.33, 1, .68, 1); transition-delay: calc(.05s + var(--i) * 80ms); }
@media (prefers-reduced-motion: reduce) { .hr2 .wi { transform: none; opacity: 1; transition: none; } }
.body p { color: var(--body); font-size: var(--fs-16); line-height: 1.5; max-width: 31em; }

/* stats */
.cards5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-16); }
.card, .is-style-card { background: var(--wp--preset--gradient--card); border: 1px solid color-mix(in srgb, var(--c-line) 10%, transparent); border-radius: 18px; }
.stat { display: grid; grid-template-rows: 5.2rem 140px 1fr; gap: var(--sp-16); padding: var(--sp-28) var(--sp-24) var(--sp-28); min-height: 356px; }
.stat-n { font: 400 var(--fs-stat)/1 var(--font-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-n.w { font-size: var(--fs-h4); line-height: 1.08; }
.stat p { align-self: end; color: var(--body-2); font-size: var(--fs-15); line-height: 1.5; letter-spacing: .005em; }

/* what we do */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-gap-l); align-items: start; }
.split > * { min-width: 0; }
.h2 { font-size: var(--h2); line-height: 1.07; letter-spacing: -.025em; text-wrap: balance; }
.split .copy { color: var(--body); font-size: var(--fs-16); line-height: 1.5; max-width: 32em; padding-top: var(--sp-8); }
.frame { position: relative; margin-top: var(--sp-80); }
.frame::before, .frame::after { content: ""; position: absolute; width: 50px; height: 50px; pointer-events: none; border: 1.5px solid var(--blue); }
.frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
.frame::after { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }
.legend { position: absolute; top: 18px; right: 16px; display: flex; align-items: center; gap: var(--sp-12); font-size: var(--fs-17); }
.legend i { width: 22px; height: 5px; border-radius: 3px; background: var(--blue); animation: indicator 2.2s ease-in-out infinite; }
@keyframes indicator { 0%, 100% { opacity: 1; background: var(--c-azure); box-shadow: 0 0 10px 1px color-mix(in srgb, var(--c-primary) 80%, transparent), 0 0 22px 2px color-mix(in srgb, var(--c-primary) 30%, transparent); } 55% { opacity: .28; background: var(--blue); box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-primary) 0%, transparent), 0 0 0 0 color-mix(in srgb, var(--c-primary) 0%, transparent); } }
#a-liver { aspect-ratio: 1336 / 590; }
.q-title { font-size: var(--fs-h4); letter-spacing: -.02em; margin: var(--sp-32) 0 var(--sp-32); }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-16); }
/* question tiles sit above the travelling dots, so the liver → dashboard morph passes underneath them */
.wwd .cards3 { position: relative; z-index: 35; }
.q { display: grid; gap: var(--sp-16); padding: var(--sp-28) var(--sp-28) var(--sp-32); }
.q .num { font: 500 var(--fs-12)/1 var(--font-mono); color: var(--dim); letter-spacing: .06em; }
.q .anchor { aspect-ratio: 16 / 8.6; margin: 0 -8px var(--sp-8); }
.q h4 { font-size: var(--fs-22); letter-spacing: -.02em; }
.q p { color: var(--body-2); font-size: var(--fs-16); line-height: 1.55; max-width: 26em; }
/* question tiles (hero v2 page): each tile rises in one after another, left to right; then its number, title and text flow in */
.tile-r { opacity: 0; translate: 0 90px; scale: .92; transform-origin: 50% 100%; transition: opacity .3s ease, translate .3s ease, scale .3s ease; }
.tile-r.wr-on { opacity: 1; translate: 0 0; scale: 1; transition: opacity .9s cubic-bezier(.33, 1, .68, 1), translate 1.5s cubic-bezier(.16, 1, .3, 1), scale 1.5s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--td, 0s); animation: tileEdge 2.2s ease-out var(--td, 0s) both; }
/* as each tile lands, its edge lights up briefly and settles back */
@keyframes tileEdge { 0% { border-color: color-mix(in srgb, var(--c-line) 10%, transparent); box-shadow: 0 0 0 color-mix(in srgb, var(--c-primary) 0%, transparent); } 30% { border-color: color-mix(in srgb, var(--c-primary-light) 42%, transparent); box-shadow: var(--wp--preset--shadow--lift); } 100% { border-color: color-mix(in srgb, var(--c-line) 10%, transparent); box-shadow: 0 0 0 color-mix(in srgb, var(--c-primary) 0%, transparent); } }
.tile-r .num { opacity: 0; translate: -10px 0; transition: opacity .25s ease, translate .25s ease; }
.tile-r.wr-on .num { opacity: 1; translate: 0 0; transition: opacity .8s ease, translate 1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--td, 0s) + .4s); }
.tile-r h4 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .04em .18em; margin-block: -.04em -.18em; }
.tile-r .wi { display: inline-block; opacity: 0; transition: opacity .25s ease, translate .3s ease; }
.tile-r h4 .wi { translate: 0 110%; }
.tile-r p .wi { translate: 0 .7em; }
.tile-r.wr-on .wi { opacity: 1; translate: 0 0; transition: translate 1.1s cubic-bezier(.16, 1, .3, 1), opacity .9s cubic-bezier(.33, 1, .68, 1); }
.tile-r.wr-on h4 .wi { transition-delay: calc(var(--td, 0s) + .5s + var(--i) * 75ms); }
.tile-r.wr-on p .wi { transition-delay: calc(var(--td, 0s) + .75s + var(--i) * 32ms); }
@media (prefers-reduced-motion: reduce) { .tile-r, .tile-r .num, .tile-r .wi { opacity: 1 !important; translate: none !important; scale: none !important; transition: none !important; animation: none !important; } }
.wwd .capsule { margin-top: var(--sp-48); }
/* gift copy reveal (hero v2 page) */
.gift .copy.pr2 .wi { display: inline-block; opacity: 0; translate: 0 .6em; transition: opacity .25s ease, translate .3s ease; }
.gift .copy.pr2.wr-on .wi { opacity: 1; translate: 0 0; transition: translate 1.1s cubic-bezier(.16, 1, .3, 1), opacity .9s cubic-bezier(.33, 1, .68, 1); transition-delay: calc(.55s + var(--ln, 0) * 130ms); }
.gift .capsule.cr2 { opacity: 0; translate: 0 18px; scale: .97; transition: opacity .3s ease, translate .3s ease, scale .3s ease; }
.gift .capsule.cr2.wr-on { opacity: 1; translate: 0 0; scale: 1; transition: opacity 1s cubic-bezier(.33, 1, .68, 1) 1.05s, translate 1.1s cubic-bezier(.16, 1, .3, 1) 1.05s, scale 1.1s cubic-bezier(.16, 1, .3, 1) 1.05s; }
@media (prefers-reduced-motion: reduce) { .gift .copy.pr2 .wi, .gift .capsule.cr2 { opacity: 1 !important; translate: none !important; scale: none !important; transition: none !important; } }

/* results */
.results { position: relative; overflow-x: clip; }
.results .split { align-items: start; }
#a-dash { aspect-ratio: 590 / 470; margin-top: var(--sp-56); width: min(100%, 600px); }
.proofs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-16); }
.proof { display: grid; grid-template-columns: minmax(150px, .72fr) minmax(0, 1.28fr); gap: var(--sp-20); padding: var(--sp-32) var(--sp-32) var(--sp-32); }
.proof h4 { font-size: var(--fs-22); letter-spacing: -.02em; }
.proof p { color: var(--body-2); line-height: 1.55; }
.results-side { display: grid; gap: var(--sp-32); align-content: start; padding-top: 0; }
.results-side .capsule { justify-self: start; }

/* data */
.data { position: relative; overflow-x: clip; }
.data .side { display: grid; gap: var(--sp-40); }
.data .side .capsule { justify-self: start; }
#a-lib { aspect-ratio: 1228.6 / 445.2; margin-top: var(--sp-64); }

/* gift */
.gift { position: relative; overflow-x: clip; }
#a-gift { position: absolute; left: 42%; right: 0; top: 50%; aspect-ratio: 840 / 380; transform: translateY(-38%); }
.gift .wrap { position: relative; z-index: 1; }
.gift-copy { display: grid; gap: var(--sp-32); max-width: 560px; }
.gift-copy .copy, .work-copy .copy { color: var(--body); font-size: var(--fs-16); line-height: 1.5; max-width: 26em; }
.gift-copy .capsule, .work-copy .capsule { justify-self: start; margin-top: var(--sp-8); }

/* work with revalia */
.work { position: relative; overflow-x: clip; }
#a-work { position: absolute; right: max(20px, calc(50% - 668px)); top: 50%; transform: translateY(-50%); width: min(60%, 800px); aspect-ratio: 1; }
.work .wrap { position: relative; z-index: 1; }
.work-copy { display: grid; gap: var(--sp-32); max-width: 560px; }

/* news */
.news-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-20); margin-bottom: var(--sp-48); }
.news-card { display: grid; gap: var(--sp-16); padding: var(--sp-16) var(--sp-16) var(--sp-32); align-content: start; }
.news-card .thumb { border: 1px solid color-mix(in srgb, var(--c-line) 12%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--c-base) 60%, transparent); overflow: hidden; }
.news-card .thumb .anchor { aspect-ratio: 376 / 188; }
.news-card .kicker { font-size: var(--fs-12); letter-spacing: .04em; color: var(--body-2); padding-inline: var(--sp-4); margin-top: var(--sp-4); }
.news-card h4 { font-size: var(--fs-18); line-height: 1.35; letter-spacing: -.01em; padding-inline: var(--sp-4); max-width: 18em; }

/* footer */
.foot { position: relative; overflow: hidden; padding-bottom: 0; }
.foot::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -18%; height: 70%; pointer-events: none; background: var(--wp--preset--gradient--glow-footer); animation: glowdrift 32s ease-in-out infinite alternate; }
.foot .wrap { position: relative; z-index: 1; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr); gap: var(--sp-48); }
.foot-brand { display: grid; gap: var(--sp-32); align-content: start; justify-items: start; }
.logo-sm .mk { width: 30px; height: 30px; } .logo-sm .word { height: 24px; }
.foot .logo { gap: var(--sp-8); } .foot .logo .tile { width: 33px; height: 33px; border-radius: 7px; } .foot .logo .tile svg { width: 23px; height: 23px; } .foot .logo .word { height: 23px; }
.foot-brand p { color: var(--body-2); max-width: 21em; line-height: 1.7; font-size: var(--fs-15); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-24); }
.foot-cols h5 { margin: 0 0 var(--sp-24); font: 500 var(--fs-12)/1 var(--font-display); letter-spacing: .04em; color: var(--dim); }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-20); }
.foot-cols a { color: var(--fg); opacity: .9; }
.foot-cols a:hover { opacity: 1; color: var(--c-primary-light); }
.social { display: flex; gap: var(--sp-12); margin-top: var(--sp-24); }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--c-body) 35%, transparent); opacity: 1; }
.social svg { width: 15px; height: 15px; fill: currentColor; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-12) var(--sp-24); margin-top: var(--sp-32); padding-block: var(--sp-32) var(--sp-32); border-top: 1px solid color-mix(in srgb, var(--c-line) 16%, transparent); font-size: var(--fs-15); color: var(--body-2); }

/* hero headline reveal: words rise in behind a line mask on load, then the headline simply fades as you scroll */
.hero h1.wr2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .04em .16em; margin-block: -.04em -.16em; }
.hero h1.wr2 .wi { display: inline-block; transform: translateY(110%); opacity: 0; transition: transform .3s ease, opacity .25s ease; }
.hero h1.wr2.wr-on .wi { transform: none; opacity: 1; transition: transform 1.5s cubic-bezier(.16, 1, .3, 1), opacity 1.2s cubic-bezier(.33, 1, .68, 1); transition-delay: calc(.1s + var(--i) * 110ms); }
.rv .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .04em .16em; margin-block: -.04em -.16em; }
.rv .wi { display: inline-block; will-change: transform, opacity; transform: translateY(calc((1 - var(--in, 1)) * 110%)); opacity: calc(var(--in, 1) * (1 - var(--out, 0))); }

/* page-wide blue light: three soft glows drift slowly across the whole page, dimming and returning */
/* glows stay along the left and right edges; a horizontal mask keeps the middle (text, graphs) dim */
.lights { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 8%, rgba(0,0,0,.3) 30%, rgba(0,0,0,.3) 70%, #000 92%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 8%, rgba(0,0,0,.3) 30%, rgba(0,0,0,.3) 70%, #000 92%, #000 100%); }
.lights i { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform, opacity; }
.lights i:nth-child(1) { width: 64vmax; height: 64vmax; margin: -32vmax 0 0 -32vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--c-primary-deep) 22%, transparent), color-mix(in srgb, var(--c-primary-deep) 7%, transparent) 50%, transparent); animation: flowA 58s ease-in-out infinite alternate, breathe 14s ease-in-out infinite; }
.lights i:nth-child(2) { width: 56vmax; height: 56vmax; margin: -28vmax 0 0 -28vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--c-indigo) 19%, transparent), color-mix(in srgb, var(--c-indigo) 6%, transparent) 50%, transparent); animation: flowB 71s ease-in-out infinite alternate, breathe 19s ease-in-out -6s infinite; }
.lights i:nth-child(3) { width: 44vmax; height: 44vmax; margin: -22vmax 0 0 -22vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--c-azure) 14%, transparent), color-mix(in srgb, var(--c-azure) 4.5%, transparent) 50%, transparent); animation: flowC 49s ease-in-out infinite alternate, breathe 11s ease-in-out -3s infinite; }
/* left edge */
@keyframes flowA { 0% { transform: translate(-12vw, 80vh); } 25% { transform: translate(-3vw, 34vh); } 50% { transform: translate(-14vw, 6vh); } 75% { transform: translate(-1vw, 58vh); } 100% { transform: translate(-9vw, 98vh); } }
/* right edge */
@keyframes flowB { 0% { transform: translate(111vw, 16vh); } 30% { transform: translate(102vw, 66vh); } 60% { transform: translate(113vw, 96vh); } 100% { transform: translate(101vw, 38vh); } }
/* right edge, opposite rhythm */
@keyframes flowC { 0% { transform: translate(104vw, 94vh); } 35% { transform: translate(99vw, 52vh); } 70% { transform: translate(109vw, 4vh); } 100% { transform: translate(100vw, 70vh); } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
/* the per-section glows are replaced by the page-wide light */
.hero::before, .sticky::before, .results::before, .data::before, .data::after, .gift::before, .work::before { display: none; }


@media (max-width: 900px) {
  .nav-in { height: 92px; }
  .hero { margin-top: -92px; padding-top: calc(92px + var(--sp-28)); }
  .hero-grid, .split, .pin-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy .capsule { margin-top: var(--sp-8); }
  #a-hero { justify-self: center; width: min(100%, 440px); }
  .sticky { align-items: start; padding-top: var(--sp-16); }
  .pin-grid { gap: var(--sp-8); }
  #a-ring { width: min(100%, 42svh); justify-self: center; }
  .title { font-size: var(--fs-26); } .sub { font-size: var(--fs-15); }
  .state { padding-block: var(--sp-16); } .body .in { gap: var(--sp-12); padding-top: var(--sp-16); }
  .body h2 { font-size: var(--fs-22); } .body p { font-size: var(--fs-14); line-height: 1.45; }
  .cards3 { grid-template-columns: minmax(0, 1fr); }
  #a-liver { aspect-ratio: 1 / .78; }
  .proof { grid-template-columns: minmax(0, 1fr); gap: var(--sp-8); }
  .legend { top: 10px; right: 10px; font-size: var(--fs-14); }
  .gift, .work { display: flex; flex-direction: column; }
  #a-gift, #a-work { order: 2; }
  #a-gift { position: relative; left: auto; right: auto; top: auto; bottom: auto; transform: none; aspect-ratio: 840 / 380; margin-top: var(--sp-32); }
  .gift-copy { padding-block: 0; }
  #a-work { position: relative; left: auto; right: auto; top: auto; bottom: auto; transform: none; width: min(100%, 460px); align-self: center; aspect-ratio: 1; margin-top: var(--sp-32); }
  .news-head { align-items: flex-start; flex-direction: column; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .logo .tile { width: 34px; height: 34px; } .logo .tile svg { width: 24px; height: 24px; } .logo .word { height: 24px; }
  .foot .logo .tile { width: 28px; height: 28px; border-radius: 6px; } .foot .logo .tile svg { width: 20px; height: 20px; } .foot .logo .word { height: 20px; }
  .nav .btn { height: 40px; padding: 0 var(--sp-16); margin-left: 0; font-size: var(--fs-14); }
  .btn { height: 48px; padding: 0 var(--sp-24); font-size: var(--fs-15); }
}
@media (prefers-reduced-motion: reduce) { .lights i { animation: none !important; } .lights i:nth-child(1) { transform: translate(-6vw, 60vh); } .lights i:nth-child(2) { transform: translate(106vw, 25vh); } .lights i:nth-child(3) { display: none; } .legend i { animation: none; } .body, .head { transition: none !important; } .hero::before, .sticky::before, .results::before, .data::before, .data::after, .gift::before, .work::before, .foot::before { animation: none; } }

/* text selection in Revalia blue */
::selection { background: var(--blue); color: var(--c-white); }
::-moz-selection { background: var(--blue); color: var(--c-white); }
/* hero v2: larger organ graphic */
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: var(--sp-16); }
#a-hero { width: min(100%, 690px); aspect-ratio: .97; margin-block: -36px -24px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-40); } #a-hero { width: min(100%, 440px); margin-block: 0; } }

/* results intro paragraph (v2): lines up with the text inside the cards below */
.results .results-intro { padding: 0 var(--sp-32); margin-bottom: var(--sp-20); max-width: 34em; }
/* the "Human data from functioning, donated human organs" title (Nov 10; was "living,"); its grey lead-in never splits */
#wwd .split > .h2 .mu { white-space: nowrap; }
#wwd .split > .h2 { font-size: calc(var(--h2) * .93); margin-right: -28px; }
/* data copy (v2): a white lead-in sentence */
.data .copy .lead { color: var(--fg); font-weight: 500; }
/* news (v2): photo cards — the photo, then the kicker and date, then the title */
.news-card { padding: 0; gap: 0; background: none; border: 0; }
.news-img { aspect-ratio: 400 / 460; border-radius: 16px; overflow: hidden; background: var(--c-base-2); }
.news-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.news-card:hover .news-img img { transform: scale(1.035); }
.news-meta { display: flex; align-items: baseline; gap: var(--sp-12); margin-top: var(--sp-24); }
.news-meta .kicker { font-size: var(--fs-12); letter-spacing: .02em; color: var(--blue); padding: 0; margin: 0; }
.news-meta .date { font-size: var(--fs-11); color: var(--dim); }
.news-card h4 { font-size: var(--fs-x-large); line-height: 1.25; letter-spacing: -.015em; padding: 0; margin-top: var(--sp-16); max-width: 18em; }
.news-card h4 .nw { white-space: nowrap; }
@media (max-width: 900px) { .results .results-intro { padding: 0; } #wwd .split > .h2 { margin-right: 0; } }
/* footer (v2): no dot wordmark; the bottom row keeps a comfortable gap below the links */
.foot-base { margin-top: var(--sp-96); }
@media (max-width: 900px) { .foot-base { margin-top: var(--sp-64); } }
/* ---- Revalia line-illustration style (v2): thin pale-blue outlines, navy fills, Revalia-blue tubes ---- */
.lineart { display: block; width: 100%; height: 100%; overflow: visible; }
.lineart .ln { stroke-dasharray: 1 1; stroke-dashoffset: 1; visibility: hidden; }
.lineart .fl { fill-opacity: 0; }
.lineart .flow, .lineart .pkg, .lineart .pk, .orph-svg .mon-wave, .orph-svg .mon-bar, .orph-svg .rotor, .orph-svg .port-glow, .orph-svg .bas-org, .orph-svg .bas-glow { opacity: 0; }
.lineart .flow { stroke-dasharray: 3 14; animation: lflow .75s linear infinite; }
/* (R5, Nov 17) Orpheus tubes follow the real circuit: reservoir → pump → oxygenator → up the left side → over the top into the organ; organ outflow and the middle line return to the reservoir */
.lineart .flow.rev { animation-direction: reverse; }
@keyframes lflow { to { stroke-dashoffset: -17; } }
.orph.on .lineart .ln, .tile-r.wr-on .lineart .ln { visibility: visible; stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s cubic-bezier(.65, 0, .35, 1); transition-delay: calc(var(--td, 0s) + var(--d0, 0s) + var(--i) * var(--st, 8ms)); }
.orph.on .lineart .fl, .tile-r.wr-on .lineart .fl { fill-opacity: var(--fo, 1); transition: fill-opacity 1s ease; transition-delay: calc(var(--td, 0s) + var(--d0, 0s) + .5s + var(--i) * var(--st, 8ms)); }
.orph.on .lineart .flow, .orph.on .lineart .mon-wave, .orph.on .lineart .mon-bar, .orph.on .lineart .rotor, .tile-r.wr-on .lineart .flow, .tile-r.wr-on .lineart .pkg, .tile-r.wr-on .lineart .pk { opacity: .9; transition: opacity .9s ease calc(var(--td, 0s) + var(--d0, 0s) + var(--late, 2s)); }
.orph.on .lineart .bas-org { opacity: 1; transition: opacity 1.4s ease 1.6s; }
.orph-svg .bd { opacity: var(--o, .8); animation: bdrift var(--du, 5s) ease-in-out infinite; animation-delay: var(--de, 0s); }
@keyframes bdrift { 0%, 100% { transform: translate(0, 0); opacity: var(--o, .8); } 33% { transform: translate(var(--dx), var(--dy)); opacity: calc(var(--o, .8) * .45); } 66% { transform: translate(calc(var(--dx) * -.6), calc(var(--dy) * .8)); opacity: var(--o, .8); } }
@media (prefers-reduced-motion: reduce) { .orph-svg .bd { animation: none; } }
.orph-svg .mon-wave { animation: monscroll 1.3s linear infinite; }
.orph-svg .mon-wave2 { animation-duration: 2.6s; }
@keyframes monscroll { to { transform: translateX(-37px); } }
.orph-svg .mon-bar2 { animation: monbar 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: left center; }
@keyframes monbar { 50% { transform: scaleX(1.8); } }
.orph-svg .rotor { transform-box: fill-box; transform-origin: center; animation: rotor 2.4s linear infinite; }
@keyframes rotor { to { transform: rotate(360deg); } }
/* perfusion rhythm, in step with the pulses travelling down the line into the big organ (one every 5s) */
.orph.on .orph-svg .port-glow { transform-box: fill-box; transform-origin: center; animation: pglow 5s ease-out infinite; animation-delay: var(--sync, 0s); }
@keyframes pglow { 0% { opacity: .75; transform: scale(.5); } 35% { opacity: 0; transform: scale(2); } 100% { opacity: 0; transform: scale(2); } }
.orph.on .orph-svg .bas-glow { animation: bglow 5s ease-in-out infinite; animation-delay: var(--sync, 0s); }
@keyframes bglow { 0% { opacity: .95; } 45% { opacity: .25; } 100% { opacity: .95; } }
@media (prefers-reduced-motion: reduce) { .lineart .flow, .orph-svg .mon-wave, .orph-svg .rotor, .orph-svg .mon-bar2, .orph.on .orph-svg .port-glow, .orph.on .orph-svg .bas-glow { animation: none !important; } .lineart .ln { transition: none !important; } }
/* Orpheus section (v2): the machine on the left, the chamber's organ magnified on the right */
.frame.orph { aspect-ratio: 1336 / 800; }
.frame.orph::before, .frame.orph::after { display: none; }
.orph-art { position: absolute; left: 50%; translate: -50% 0; top: 3%; height: 94%; aspect-ratio: 515 / 507; --st: 9ms; }
/* (Oct 30) the machine is the main image, centred, framed by the corner brackets; the organ sits small in its chamber */
/* the blue bloom behind the organ chamber (Platform prototype, Nov 18), in the machine's own box so it tracks it at every width */
.orph-art { isolation: isolate; }
.orph-art .orl-glow { position: absolute; left: 63.7%; top: 16%; width: 33.8%; height: 35.9%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(62, 130, 255, .28), rgba(62, 130, 255, .08) 60%, transparent); pointer-events: none; opacity: 0; transition: opacity 1.4s ease 1.2s; }
.orph.on .orl-glow { opacity: 1; }
.orph-box { position: absolute; inset: 0; pointer-events: none; }   /* the brackets run out to the page margins */
.orph-svg .bas-org, .orph-svg .port-glow { display: none; }
.orph-box::before, .orph-box::after { content: ""; position: absolute; width: 50px; height: 50px; border: 1.5px solid var(--blue); }
.orph-box::before { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
.orph-box::after { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }
.frame.orph #a-liver { position: absolute; inset: 0; aspect-ratio: auto; }
.orph-call { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.orph-call path { fill: none; stroke: var(--c-primary-light); stroke-width: .9; stroke-dasharray: 2 5; opacity: 0; animation: lflow 1.6s linear infinite reverse; }
.orph.on .orph-call path { opacity: .5; transition: opacity 1.2s ease 2.2s; }
/* slide-scanner window (v2): a line illustration on the same tilted plane as the dot tissue (perspective matches flow-ctrl scopeProj) */
#a-dash { position: relative; container-type: inline-size; }
.scope-ui { position: absolute; inset: 0; perspective: 210cqw; pointer-events: none; --st: 14ms; --late: 1.6s; }
.scope-svg { position: absolute; left: 1%; top: 5%; width: 98%; height: 90%; transform: rotateX(-.06rad) rotateY(-.22rad); }
.scope-svg .ln { stroke-opacity: .55; }   /* toned down: the dots carry the detail */
.scope-ui.on .lineart .ln { visibility: visible; stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s cubic-bezier(.65, 0, .35, 1); transition-delay: calc(var(--i) * var(--st)); }
.scope-ui.on .lineart .fl { fill-opacity: var(--fo, 1); transition: fill-opacity 1s ease; transition-delay: calc(.4s + var(--i) * var(--st)); }
.scope-svg .bars { opacity: 0; }
.scope-ui.on .scope-svg .bars { opacity: 1; transition: opacity .9s ease 1.4s; }
.scope-svg .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: sbar var(--bd, 3s) ease-in-out infinite alternate; }
@keyframes sbar { from { transform: scaleY(var(--b, 1)); } to { transform: scaleY(calc(2 - var(--b, 1))); } }
/* the slide being scanned: highlighted, stepping down the list one row at a time */
.scope-ui.on .scope-svg .row .ln { animation: srow 34s step-end infinite; animation-delay: calc(var(--k) * 3.4s - 34s); }
@keyframes srow { 0% { stroke: var(--c-primary); } 10% { stroke: var(--c-sky); } }
@media (prefers-reduced-motion: reduce) { .scope-svg .bar, .scope-ui.on .scope-svg .row .ln { animation: none; } }
/* question tiles: solid line work under the dot graphs, drawn in after each tile lands */
.qline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; --d0: .7s; --st: 45ms; --late: 2s; }
.qline .layer { animation: qlayer 4.5s ease-in-out infinite; animation-delay: calc(var(--k) * .45s); }
.qline .ln { stroke-opacity: .58; }   /* toned down so the dots lead */
#a-q3 .qline .ln { stroke-opacity: .42; }
.tile-r.wr-on .qline .flow { opacity: .5; }
@keyframes qlayer { 0%, 100% { stroke-opacity: .3; } 18% { stroke-opacity: .7; } }
.qline .clamp { animation: qclamp 3.6s ease-in-out infinite; }
@keyframes qclamp { 50% { stroke: var(--c-primary-light); } }
.qline .orbit { stroke-dasharray: .06 .94; }
.tile-r.wr-on .qline .orbit { animation: qorbit 7s linear infinite; stroke-dasharray: .06 .94; visibility: visible; }
@keyframes qorbit { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1; } }
@media (prefers-reduced-motion: reduce) { .qline .layer, .qline .clamp, .tile-r.wr-on .qline .orbit { animation: none; } }
/* question cards: line illustrations draw in after each tile lands */
.qa { --d0: .55s; --st: 22ms; --late: 2.2s; }
.qa .qart { overflow: hidden; }
@media (max-width: 900px) {
  .frame.orph { aspect-ratio: 1 / 1.02; }
  .orph-call { display: none; }
}
/* every organ is a gift (Nov 2): the big full-bleed field of the circle version, with the gift ribbon in place of the circle —
   the ribbon loops round the copy, which sits in the middle of the loop. */
.gift { display: block; padding-block: 0; height: max(100vh, calc(100vw * 864 / 1512)); }   /* more space under the stats tiles (Nov 2) and above Work with Revalia (Nov 5) */
.gift::before { display: none; }
#a-gift { position: absolute; inset: 0; width: auto; height: auto; aspect-ratio: auto; transform: none; margin: 0; order: 0; }
.gift .wrap { position: absolute; inset: 0; max-width: none; padding: 0; }
/* Nov 17 (Marker RB-3, longer copy): the ribbon scales with the width, so the copy is placed from the loop (43% less 3vw,
   not a plain % of the height) and its gap and type scale with the width too; the loop narrows to a point below the copy,
   so this keeps every line clear of the ribbon from 1000px to 2560px wide at any height */
.gift-copy { position: absolute; left: 50%; top: calc(43% - 3vw); transform: translate(-50%, -50%); width: 34vw; max-width: none; padding: 0; gap: clamp(16px, 1.6vw, 28px); justify-items: center; text-align: center; }
.gift-copy .h2 { font-size: clamp(2rem, 3.7vw, 4rem); }
.gift-copy .copy { font-size: clamp(.82rem, 1.18vw, 1.2rem); max-width: 30em; text-wrap: pretty; }
.gift-copy .capsule { justify-self: center; margin-top: var(--sp-4); }
@media (max-width: 999px) {
  .gift { height: max(92vh, min(900px, calc(100vw * 900 / 560))); padding-block: 0; }
  #a-gift { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; }
  .gift-copy { top: 44%; left: 50%; width: min(270px, calc(100vw * 262 / 390)); gap: var(--sp-16); }
  .gift-copy .h2 { font-size: clamp(1.5rem, 5.6vw, 2.5rem); }
  .gift-copy .copy { font-size: clamp(.84rem, 2.7vw, 1rem); }
}

/* section rhythm: the space between sections, from the section-* spacing tokens (fluid, fitted to the prototype's
   per-section values). Below 900px each token sits at its minimum; a fixed step is used where that is closer to the design. */
@media (min-width: 901px) {
  .hero { padding-bottom: var(--sp-section-s); }
  .wwd { padding-block: var(--sp-section-xs) var(--sp-section-m); }
  .results { padding-block: var(--sp-section-l) var(--sp-section-xl); }
  .data { padding-block: var(--sp-section-l); }
  .stats { padding-block: var(--sp-section-xs) var(--sp-section-s); }
  .gift { margin-top: var(--sp-section-l); margin-bottom: var(--sp-section-m); }
  .work { padding-block: var(--sp-section-xxl); }
  .news { padding-block: var(--sp-section-xs) var(--sp-section-xl); }
  .foot { padding-top: var(--sp-section-m); }
}
@media (max-width: 900px) {
  .hero { padding-bottom: var(--sp-section-xs); }
  .wwd { padding-block: var(--sp-section-xs) var(--sp-section-m); }
  .results { padding-block: var(--sp-section-l) var(--sp-section-xl); }
  .data { padding-block: var(--sp-section-l); }
  .stats { padding-block: var(--sp-section-xs) var(--sp-section-s); }
  .gift { margin-top: var(--sp-96); margin-bottom: var(--sp-section-xs); }
  .work { padding-block: var(--sp-96) var(--sp-64); }
  .news { padding-block: var(--sp-64) var(--sp-section-xl); }
  .foot { padding-top: var(--sp-section-m); }
}

/* logo (Nov 5): one all-white SVG, mark and wordmark together */
.logo .logo-svg { display: block; height: 36px; width: auto; }
.foot .logo .logo-svg { height: 30px; }
@media (max-width: 520px) { .logo .logo-svg { height: 28px; } .foot .logo .logo-svg { height: 26px; } }
/* narrow phones (≤374px, e.g. 360 and 320 wide): logo, menu button and "Work With Us" must share the row without
   pushing past the gutter — smaller logo and button, tighter gaps */
@media (max-width: 374px) {
  .nav-in { gap: var(--sp-12); }
  .nav .logo .logo-svg { height: 20px; }
  .nav .nav-right { gap: var(--sp-8); }
  .nav .btn { height: 38px; padding: 0 var(--sp-12); font-size: var(--fs-12); }
}

.proof.pr-r { opacity: 0; translate: 0 56px; scale: .97; transform-origin: 50% 100%; transition: opacity .3s ease, translate .3s ease, scale .3s ease; }
.proof.pr-r.wr-on { opacity: 1; translate: 0 0; scale: 1; transition: opacity .9s cubic-bezier(.33, 1, .68, 1), translate 1.4s cubic-bezier(.16, 1, .3, 1), scale 1.4s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--td, 0s); animation: tileEdge 2.2s ease-out var(--td, 0s) both; }
.proof.pr-r h4, .proof.pr-r p { opacity: 0; translate: 0 12px; transition: opacity .25s ease, translate .25s ease; }
.proof.pr-r.wr-on h4, .proof.pr-r.wr-on p { opacity: 1; translate: 0 0; transition: opacity .9s cubic-bezier(.33, 1, .68, 1), translate 1.1s cubic-bezier(.16, 1, .3, 1); }
.proof.pr-r.wr-on h4 { transition-delay: calc(var(--td, 0s) + .3s); }
.proof.pr-r.wr-on p { transition-delay: calc(var(--td, 0s) + .45s); }
@media (prefers-reduced-motion: reduce) { .proof.pr-r, .proof.pr-r h4, .proof.pr-r p { opacity: 1 !important; translate: none !important; scale: none !important; transition: none !important; animation: none !important; } }

/* data title: always exactly three lines at every screen size; the type scales with its column so the longest line always fits */
.data .dh { container-type: inline-size; min-width: 0; }
.data .h3l { white-space: nowrap; text-wrap: nowrap; font-size: min(var(--h2), var(--h3k, 10cqi)); }

/* by the numbers (Nov 5): the five cards share one set of rows, so numbers, graphics and text line up even when a card has two numbers */
.cards5 { grid-template-rows: auto 140px auto; }
.cards5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* Nov 10: four stats */
.stat { grid-row: span 3; grid-template-rows: subgrid; row-gap: var(--sp-16); }
.stat-ns { display: grid; gap: var(--sp-12); align-content: start; min-height: 5.2rem; }
.stat-n small { font-size: .44em; letter-spacing: -.01em; margin-left: .22em; white-space: nowrap; }
.stat-n small.u0 { margin-left: .04em; }
.stat p .nw { white-space: nowrap; }
/* narrower screens (RB-44): the tiles go 2 × 2, then stack, instead of a sideways-scrolling row that cut tiles off at the
   edge; each row of tiles keeps one set of rows, so numbers, graphics and text still line up */
@media (max-width: 1100px) {
  .cards5 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, auto 140px auto); }
  .stat { min-height: 0; }
}
@media (max-width: 560px) {
  .cards5 { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(4, auto 140px auto); }
  .cards5 .stat p.stat-n { min-height: 0; }   /* one tile per row, so no number row to match */
}

.data .copy { color: var(--body-2); }
.trk { --trk-node: 22px; --trk-top: 40px; position: relative; list-style: none; margin: var(--sp-section-xs) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--sp-gap-m); }
.trk-i { position: relative; display: grid; grid-template-rows: auto var(--trk-node) auto; row-gap: var(--sp-20); align-content: start; min-width: 0; cursor: default; }
.trk-lab { font: 500 var(--fs-11)/1.2 var(--font-mono); letter-spacing: .14em; color: var(--dim); transition: color .6s ease; }
.trk-i p { margin: 0; max-width: 24em; color: var(--dim); font-size: var(--fs-17); line-height: 1.5; transition: color .7s ease, opacity .5s ease; }
.trk-node { position: relative; z-index: 2; width: var(--trk-node); height: var(--trk-node); border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-haze) 38%, transparent); transition: background-color .5s ease, box-shadow .6s ease, transform .6s cubic-bezier(.16, 1, .3, 1); }
.trk-node::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--c-primary-light) 0%, transparent); opacity: 0; pointer-events: none; }
.trk-rail { position: absolute; left: calc(var(--trk-node) / 2); right: 0; top: calc(var(--trk-top) + var(--trk-node) / 2 - 1px); height: 2px; pointer-events: none; }
.trk-rail i { position: absolute; display: block; }
.trk-dots { inset: -2px 0; background-image: radial-gradient(circle, color-mix(in srgb, var(--c-haze) 32%, transparent) 0 .9px, transparent 1.3px); background-size: 7px 6px; background-position: 0 50%; }
.trk-fill { left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--wp--preset--gradient--fill-x); box-shadow: 0 0 12px color-mix(in srgb, var(--c-primary) 55%, transparent); }
.trk-head { top: 50%; left: calc(var(--p, 0) * 100%); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--c-white); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 25%, transparent), 0 0 18px 4px color-mix(in srgb, var(--c-primary) 70%, transparent); opacity: var(--ho, 0); transition: opacity .4s ease; }
/* reached: the node fills white with a soft blue halo, a ring ripples out once, and the stage's text comes up */
.trk-i.on .trk-node { background: var(--c-white); box-shadow: inset 0 0 0 1.5px var(--c-white), 0 0 0 6px color-mix(in srgb, var(--c-primary) 16%, transparent), 0 0 26px color-mix(in srgb, var(--c-primary) 55%, transparent); }
.trk-i.on .trk-node::after { animation: trkRing 1.4s cubic-bezier(.16, 1, .3, 1) both; }
.trk-i.on .trk-lab { color: var(--fg); }
.trk-i.on p { color: var(--body); }
@keyframes trkRing { 0% { opacity: .9; transform: scale(.6); border-color: color-mix(in srgb, var(--c-primary-light) 80%, transparent); } 100% { opacity: 0; transform: scale(2.2); border-color: color-mix(in srgb, var(--c-primary-light) 0%, transparent); } }
/* once the bar is full, a soft light travels along it now and then, like data moving through */
.trk.done .trk-rail::after { content: ""; position: absolute; top: -3px; left: 0; width: 120px; height: 8px; border-radius: 8px; background: radial-gradient(closest-side, color-mix(in srgb, var(--c-ice) 90%, transparent), color-mix(in srgb, var(--c-primary) 35%, transparent) 55%, transparent); animation: trkPulse 5.5s cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes trkPulse { 0% { transform: translateX(-120px); opacity: 0; } 8% { opacity: 1; } 55% { opacity: 1; } 62%, 100% { transform: translateX(calc(var(--rw, 1000px))); opacity: 0; } }
/* pointing at a stage: it lifts forward and the others step back */
@media (hover: hover) {
  .trk.done:hover .trk-i:not(:hover) p, .trk.done:hover .trk-i:not(:hover) .trk-lab { opacity: .45; }
  .trk-i:hover .trk-node { transform: scale(1.25); }
  .trk-i:hover .trk-node::after { animation: trkRing 1.2s cubic-bezier(.16, 1, .3, 1) both; }
}
@media (max-width: 900px) {
  .trk { --trk-node: 18px; grid-template-columns: minmax(0, 1fr); row-gap: var(--sp-40); margin-top: var(--sp-48); }
  .trk-i { grid-template-rows: auto auto; grid-template-columns: var(--trk-node) minmax(0, 1fr); column-gap: var(--sp-20); row-gap: var(--sp-12); }
  .trk-lab { grid-column: 2; grid-row: 1; align-self: center; }
  .trk-node { grid-column: 1; grid-row: 1; align-self: center; }
  .trk-i p { grid-column: 2; grid-row: 2; font-size: var(--fs-16); }
  .trk-rail { left: calc(var(--trk-node) / 2 - 1px); top: var(--rt, 0px); bottom: var(--rb, 0px); right: auto; width: 2px; height: auto; }
  .trk-dots { inset: 0 -2px; background-size: 6px 7px; background-position: 50% 0; }
  .trk-fill { inset: 0 0 auto 0; width: 2px; height: 100%; transform-origin: 50% 0; transform: scaleY(var(--p, 0)); background: var(--wp--preset--gradient--fill-y); }
  .trk-head { left: 50%; top: calc(var(--p, 0) * 100%); }
  .trk.done .trk-rail::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .trk-node::after, .trk.done .trk-rail::after { animation: none !important; } }

.logo .mk { transform-box: fill-box; transform-origin: 50% 50%; }

/* pinned section (Nov 10): the Current state now has a lead-in paragraph; on short phones the ring and type tighten so both states still fit */
@media (max-width: 900px) { .body h2 { font-size: var(--fs-22); max-width: none; } }
@media (max-width: 900px) and (max-height: 760px) { #a-ring { width: min(100%, 34svh); } .body h2 { font-size: var(--fs-20); } .state { padding-block: var(--sp-12); } .body .in { gap: var(--sp-12); padding-top: var(--sp-12); } .body p { font-size: var(--fs-13); line-height: 1.4; } .stat10 span { white-space: nowrap; } }

/* footer base (Nov 10): a link never breaks across lines */
.foot-base a { white-space: nowrap; }

/* gift copy (Nov 10): longer text, no button; on phones it sits a little higher, in the widest part of the (now bigger) loop */
@media (max-width: 999px) { .gift-copy { top: 41%; } }
@media (max-width: 370px) { .gift-copy { width: 226px; } .gift-copy .copy { font-size: var(--fs-13); } }

/* hero headline (Nov 10): the white part always stays together on its own line */
.hero h1 .hl { white-space: nowrap; }
@media (max-width: 400px) { .hero h1 { font-size: min(var(--h1), 11.6vw); } }   /* the smallest phones: the type steps down so that line still fits */

/* ======================================================================
   Part 2 — WordPress adaptation layer
   ====================================================================== */

/* page shell: template parts and main sit flush; sections own their spacing */
.wp-site-blocks > * { margin-block: 0; }
.rv-canvas, .rv-canvas > .wp-block-post-content { margin: 0; padding: 0; }
/* (block-gap margin reset: moved to the top of this file so the prototype's own margins win) */
.rv-canvas section.alignfull, .rv-canvas > .wp-block-post-content > * { max-width: none; }

/* typography helpers usable from the editor */
.mu { color: var(--muted); }
.rv-canvas strong { font-weight: inherit; color: var(--fg); }
.data .copy strong, .data .copy b { color: var(--fg); font-weight: 500; }
.body h2 strong { color: var(--fg); font-weight: 400; }

/* buttons */
.wp-block-buttons.is-style-capsule { gap: var(--sp-8); }
.wp-block-buttons.is-style-capsule > .wp-block-button { margin: 0; }
.wp-block-button__link.btn { box-sizing: border-box; text-decoration: none; }
.wp-block-button.is-style-glass .wp-block-button__link:not(.btn) { background: color-mix(in srgb, var(--c-surface-2) 60%, transparent); color: var(--fg); }
/* editor: the white hover fill (.btn-dark::before) needs the front end's dark text too; this rule outranks the .btn-dark one */
.wp-block-button.is-style-glass .wp-block-button__link:not(.btn):hover { color: var(--c-base-2); }
.wp-block-button.is-style-light .wp-block-button__link:not(.btn) { background: var(--c-light); color: var(--c-base-2); }
.wp-block-button__link.btn-light:hover { color: var(--c-base-2); }

/* header (parts/header.html) */
.wp-block-template-part:has(> .nav) { position: relative; z-index: 45; }   /* the sticky sub-nav sits above this (46) except while the phone menu is open */
.nav-in > .wp-block-group { display: flex; align-items: center; }
.nav .links .wp-block-navigation__container { gap: var(--sp-8); }
.nav .links .wp-block-navigation-item__content { display: block; padding: var(--sp-12) var(--sp-24); border-radius: 999px; font-size: var(--fs-17); color: var(--fg); opacity: .92; text-decoration: none; }
.nav .links .wp-block-navigation-item__content:hover { opacity: 1; color: var(--fg); }
.nav .links .current-menu-item > .wp-block-navigation-item__content,
.nav .links [aria-current="page"] { background: var(--pill); opacity: 1; }
.nav .wp-block-buttons { margin-left: var(--sp-32); }
.nav .wp-block-button__link.btn { height: 48px; padding: 0 var(--sp-32); margin-left: 0; }   /* the Buttons wrapper carries the 30px; the prototype's .nav .btn margin would push the button past the gutter */
.nav .nav-right { gap: 0; }   /* no flex gap on top of that margin, as in the prototype */
.nav .wp-block-navigation__responsive-container-open, .nav .wp-block-navigation__responsive-container-close { color: var(--fg); }
.nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--bg); padding: var(--sp-28) var(--gut); }
.nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: var(--fs-26); font-family: var(--font-head); padding: var(--sp-8) var(--sp-16); }   /* side padding so the current-page pill clears the text */
/* below 1100px the prototype drops the inline links (they wrap and push the button off the edge); here they collapse into
   the navigation block's menu button instead of core's fixed 600px breakpoint */
@media (max-width: 1100px) {
  .nav .links .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .nav .links .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
  .nav .wp-block-buttons { margin-left: var(--sp-16); }
}
@media (max-width: 520px) { .nav .wp-block-buttons { margin-left: var(--sp-8); } .nav .wp-block-button__link.btn { height: 40px; padding: 0 var(--sp-16); font-size: var(--fs-14); } }

/* hero sits under the header on designed pages; ordinary pages start below it */
.rv-canvas .hero { margin-top: -148px; }
@media (max-width: 900px) { .rv-canvas .hero { margin-top: -92px; } }

/* dot scene targets */
.rv-scene.anchor { width: 100%; }
.rv-scene--q1, .rv-scene--q2, .rv-scene--q3 { aspect-ratio: 16 / 8.6; margin: 0 -8px var(--sp-8); width: auto !important; }
.stat .rv-scene { height: 140px; }
.results #a-dash { margin-top: var(--sp-56); }

/* question tiles + stat tiles are groups with the Card style */
.card.q, .is-style-card.q { display: grid; }
.q .num { margin: 0; }
.stat .stat-n { color: var(--fg); }

/* results proofs (groups, not list items) */
.proofs { display: grid; gap: var(--sp-16); }

/* stage tracker: the Tracker block renders an <ol> */
ol.trk { padding: 0; }

/* gift + work: the dot targets fill their section */
.gift { position: relative; }
.gift > #a-gift { position: absolute; inset: 0; }
.gift-copy > * { margin: 0; }

/* news: Query Loop */
.news .wp-block-query { margin: 0; }
.news .wp-block-post-template { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-16); margin: 0; padding: 0; list-style: none; }
.news .wp-block-post-template > li { margin: 0; }
.news-card .news-img { margin: 0; aspect-ratio: 400 / 460; border-radius: 16px; overflow: hidden; background: var(--c-base-2); }
.news-card .news-img img, .news-card .news-img a { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-meta { flex-wrap: nowrap; }
.news-meta .wp-block-post-terms { font-size: var(--fs-12); letter-spacing: .02em; text-transform: uppercase; }
.news-meta .wp-block-post-terms a { color: var(--blue); text-decoration: none; }
.news-meta .wp-block-post-terms__separator { color: var(--dim); }
.news-meta .wp-block-post-date { font-size: var(--fs-11); color: var(--dim); }
.news-card .wp-block-post-title { font-family: var(--font-head); font-size: var(--fs-x-large); line-height: 1.25; letter-spacing: -.015em; margin-top: var(--sp-16); max-width: 18em; }
.news-card .wp-block-post-title a { color: var(--fg); text-decoration: none; }
@media (max-width: 900px) { .news .wp-block-post-template { grid-template-columns: minmax(0, 1fr); } }   /* the 16px gap carries over, as in the prototype */
/* Nov 17 (Figma "revalia-A-09-news"): 32px between columns; label, then the date (Sep 16, 2026; 11px, 60%) 18px under the
   photo; the title 18px below in the body font, 24px / 1.2 — the same card details as the Company page */
.news .wp-block-post-template { column-gap: var(--sp-32); }
.news-card .news-img { aspect-ratio: 16 / 9; }   /* 16:9 photos, like the Company cards (the Figma frame's tall photos were superseded) */
.news-meta { margin-top: 18px; align-items: center; }
.news-meta .wp-block-post-terms { font-weight: 500; letter-spacing: 0; line-height: normal; }
.news-meta .wp-block-post-date { line-height: normal; color: var(--body); opacity: .6; }
.news-card .wp-block-post-title { margin-top: 18px; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; }

/* footer (parts/footer.html) */
.foot .foot-cols .wp-block-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-20); }
.foot .foot-cols h5 { margin: 0 0 var(--sp-24); }.foot .wp-block-social-links.social { gap: var(--sp-12); margin-top: var(--sp-24); }
.foot .wp-block-social-links.social .wp-social-link { margin: 0; background: none; color: var(--fg); border: 1px solid color-mix(in srgb, var(--c-body) 35%, transparent); border-radius: 50%; }
.foot .wp-block-social-links.social .wp-social-link a { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; }
.foot .wp-block-social-links.social .wp-social-link svg { width: 15px; height: 15px; }
.foot .wp-block-social-links.social .wp-social-link:hover { transform: none; border-color: var(--c-primary-light); }
.foot-base p { color: var(--body-2); font-size: var(--fs-15); }

/* ordinary pages, posts and archives */
.rv-page { padding-block: var(--sp-section-xs) var(--sp-section-m); }
.rv-page > .wp-block-post-title { font-size: var(--h2); line-height: 1.07; letter-spacing: -.025em; }   /* the page's own title only, not titles inside query loops */
.rv-page .wp-block-post-content a { color: var(--wp--preset--color--primary-light); text-decoration: underline; text-underline-offset: .18em; }
.rv-page .wp-block-post-featured-image img { border-radius: 16px; }
/* news listings (home, index, archive and search templates) reuse the homepage News section; these cover what it never shows */
.news .wp-block-query-pagination { margin-top: var(--sp-48); gap: var(--sp-16); font-size: var(--fs-15); }
.news .wp-block-query-pagination .current { color: var(--c-primary-light); }
.news .wp-block-query-no-results p { color: var(--body-2); }
.news-head .wp-block-search { width: min(100%, 360px); margin: 0; }
.wp-block-query-pagination a { color: var(--fg); }

/* the dot layer and drifting lights never block the WP admin bar */
#wpadminbar { z-index: 99999; }

/* fixes found in browser QA */
/* the capsule hugs its buttons wherever it sits (WP's flex layout would stretch it) */
.wp-block-buttons.capsule, .wp-block-buttons.is-style-capsule { display: inline-flex; width: fit-content; max-width: 100%; }
/* in a constrained layout (the 404 page) an inline-flex capsule ignores WP's auto margins and sits at the gutter;
   make it a block-level flex box and start it at the content column's left edge, like the text above it */
.is-layout-constrained > .wp-block-buttons.is-style-capsule:not(.alignwide):not(.alignfull) { display: flex;
  margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important; margin-right: auto !important; }
/* stat numbers are paragraphs here (spans in the prototype), so beat `.stat p` */
.stat p.stat-n { align-self: start; font: 400 var(--fs-stat)/1 var(--font-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--fg); }
.stat p.stat-n.w { font-size: var(--fs-h4); line-height: 1.08; }
/* R4 (Nov 10): the number row keeps the prototype's .stat-ns height, so the four cards' graphics line up; the unit ("100s") is set small by inc/blocks.php */
.stat p.stat-n { min-height: 5.2rem; }
/* Nov 18: copy sits at the top under the graphic (not pushed to the card bottom), and the number never wraps while it counts up, so the cards don't jump */
.stat p:not(.stat-n) { align-self: start; }
.stat p.stat-n { white-space: nowrap; }
/* a column flexbox takes its baseline from the figure, not from the hidden copy below it (an inline-block took the
   hidden copy's, which lifted the figure and left the small unit hanging below it, RB-44) */
.stat-n .cn[data-n] { display: inline-flex; flex-direction: column; }
.stat-n .cn[data-n]::after { content: attr(data-n); display: block; height: 0; overflow: hidden; visibility: hidden; }   /* keeps the final figure's width while it counts up (effects.js) */
.stat p.stat-n small { font-size: .44em; }
/* social links: undo the footer list grid */
.foot .foot-cols ul.wp-block-social-links.social { display: flex; flex-wrap: nowrap; gap: var(--sp-12); }
.foot .wp-block-social-links.social .wp-social-link { width: 38px; height: 38px; flex: 0 0 38px; }
/* small screens: keep the prototype's compact buttons; menu toggle sits after the CTA */
@media (max-width: 520px) {
  .wp-block-button__link.btn { height: 48px; padding: 0 var(--sp-24); font-size: var(--fs-15); }
  .nav .wp-block-button__link.btn { height: 40px; padding: 0 var(--sp-16); font-size: var(--fs-14); }
}
@media (max-width: 599px) {
  .nav .nav-right { gap: var(--sp-12); }
  .nav .links { order: 2; }
  .nav .wp-block-buttons { margin-left: 0; }
}

/* ======================================================================
   How It Works (Nov 12): ported from the How It Works prototype (rounds 2–13, final). Sections are .sec2; the hero and
   the six steps share one full-bleed grid whose right column (--pc) holds the organ, centred under the hero kidney.
   ====================================================================== */
.hiw-hero, .st3 { --pc: calc(50% - 93px); --gl: max(var(--gut), calc((100vw - var(--max)) / 2)); }
.sec2 { position: relative; }
.sec2 .head { display: grid; gap: var(--sp-28); justify-items: start; transition: none; }
.sec2 .copy { color: var(--body); font-size: var(--fs-16); line-height: 1.55; max-width: 34em; }
.sec2 .h3 { font-size: var(--fs-h3); line-height: 1.08; letter-spacing: -.022em; }
.sec2 .frame { margin-top: 0; }
canvas.art { display: block; width: 100%; }
.lead2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.lead2 > * { min-width: 0; }
.lead2 .copy { padding-top: var(--sp-8); }
.offset { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); margin-top: clamp(28px, 3vw, 44px); }
.offset > * { grid-column: 2; min-width: 0; }

/* hero: copy on the left, the kidney centred in the right column; tucked under the nav like the homepage hero */
.hero.hiw-hero { padding-top: 0; padding-bottom: 0; }
.hiw-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--pc); align-items: center; min-height: 760px; padding-top: 148px; }
.hiw-hero .ihero-copy { display: grid; gap: var(--sp-32); justify-items: start; min-width: 0; container-type: inline-size; padding-left: var(--gl); padding-right: clamp(32px, 4vw, 64px); }
/* the headline keeps its line breaks; on wide screens the type scales with its column so the longest line always fits */
.hiw-hero h1 { --k: 9.4; max-width: none; white-space: nowrap; font-size: min(var(--h1), calc(var(--k) * 1cqi)); text-wrap: initial; }
@media (max-width: 600px) { .hiw-hero h1 { white-space: normal; font-size: var(--h1); text-wrap: balance; } }
.hiw-hero-art { position: relative; min-width: 0; }
.hiw-hero-art .anchor { width: 100%; height: clamp(420px, 40vw, 600px); }

/* the six steps: text on the left, the organ in the right column, a rule (ending in a blue dot) joining the two */
.st3 { position: relative; }
.st3-list { display: grid; gap: clamp(8px, 1.2vw, 20px); }
.st3-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--pc); padding-block: clamp(18px, 2vw, 30px); }
.st3-txt { display: grid; grid-template-rows: 1fr 1fr; padding-left: calc(var(--gl) + 115px); padding-right: clamp(32px, 4vw, 64px); min-width: 0; }
.st3-top { position: relative; align-self: end; padding-bottom: var(--sp-24); }
.st3-top .num { position: absolute; left: -115px; top: .95em; font: 500 var(--fs-12)/1 var(--font-mono); color: var(--dim); letter-spacing: .06em; }
.st3 h3 { font-size: var(--fs-step); line-height: 1.1; letter-spacing: -.022em; text-wrap: balance; }
.st3-txt > p { align-self: start; padding-top: var(--sp-24); color: var(--body-2); line-height: 1.6; max-width: 35em; }
/* the rule runs from the text to the graphic, through the middle of the row; one box carries the line and its end dot */
.st3-txt::after { content: ""; position: absolute; top: calc(50% - 15px); height: 30px; left: calc(var(--gl) + 115px); right: calc((var(--pc) + min(var(--pc) * .86, 540px)) / 2 - 15px); pointer-events: none;
  background:
    radial-gradient(circle at calc(100% - 15px) 50%, var(--c-primary) 0 3.5px, color-mix(in srgb, var(--c-primary) 22%, transparent) 4px 6.5px, color-mix(in srgb, var(--c-primary) 26%, transparent) 7px, transparent 14px),
    linear-gradient(90deg, color-mix(in srgb, var(--c-body) 34%, transparent), color-mix(in srgb, var(--c-body) 20%, transparent)) left center / calc(100% - 15px) 1px no-repeat; }
.st3-fig { display: grid; place-items: center; align-self: stretch; min-width: 0; padding-block: clamp(10px, 1.4vw, 20px); }
.st3-fig canvas { display: block; width: min(86%, 540px); aspect-ratio: 520 / 380; }

/* how Revalia compares: the three alternatives stacked on the left, the Revalia organ as one large card on the right */
.vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: var(--sp-16); margin-top: clamp(56px, 5vw, 84px); }
.vs-list { display: grid; gap: var(--sp-16); }
.vs-row { display: grid; grid-template-columns: minmax(130px, .62fr) minmax(0, 1fr); gap: var(--sp-24); align-items: center; padding: var(--sp-16) var(--sp-28) var(--sp-16) var(--sp-12); }
.vs-row canvas { aspect-ratio: 16 / 11; }
/* Dot-art exports carry the card's own dark fill: lighten drops it into the card, the mask softens the edge. */
.vs-row .vs-art { margin: 0; }
.vs-row canvas.shift { display: block; width: 100%; height: auto; aspect-ratio: 666 / 456; }   /* the shape-shifting tiles (shift.js) */
.vs-row img.art.still { display: block; width: 100%; height: auto; aspect-ratio: 666 / 456; object-fit: contain; }   /* the still pictures (Nov 19) */
.vs-row .vs-art img { display: block; width: 100%; height: auto; aspect-ratio: 222 / 152; object-fit: contain; mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }
.vs-row h4, .vs-hl h4 { font-size: var(--fs-21); letter-spacing: -.02em; }
.vs-row p { color: var(--body-2); line-height: 1.55; margin-top: var(--sp-8); font-size: var(--fs-15); }
.card.vs-hl { display: grid; grid-template-rows: 1fr auto; gap: var(--sp-20); padding: var(--sp-28) var(--sp-32) var(--sp-40);
  border-color: color-mix(in srgb, var(--c-periwinkle) 60%, transparent);
  background: radial-gradient(44% 46% at 14% 40%, color-mix(in srgb, var(--c-primary) 50%, transparent), color-mix(in srgb, var(--c-primary) 16%, transparent) 50%, transparent 78%), linear-gradient(180deg, var(--c-navy), var(--c-base-2));
  box-shadow: 0 40px 90px -50px color-mix(in srgb, var(--c-primary) 90%, transparent), inset 0 1px 0 color-mix(in srgb, var(--c-frost) 12%, transparent); }
/* contain: size — the canvas's own pixel size (set from its displayed size on each redraw) must never feed back into
   the layout, or it grows on every resize; it just fills what the card's first row leaves.
   aspect-ratio: auto too — contain: size alone isn't enough: the width/height attributes still give the canvas a fallback
   ratio (auto W / H), so each redraw's taller pixel size made the card, and the whole comparison row, taller (RB-17).
   Sized by stretching to its grid row, not height: 100%: Safari resolves that percentage against the whole card, not the
   1fr row, so the canvas ran under the heading and the time line was drawn across "Revalia's Ex Vivo Organ Platform" (RB-39) */
.vs-hl canvas { width: 100%; height: auto; align-self: stretch; min-height: 240px; contain: size; aspect-ratio: auto; }
.vs-hl h4 { font-size: var(--fs-h4); }
.vs-hl p { color: var(--body); line-height: 1.55; margin-top: var(--sp-12); max-width: 26.5em; }
/* closing note (RB-74, "dot matrix" option, Nov 24): moved from under the comparison into the left column, under the three
   tiles, sitting on the bottom of the row; a blue rule on its left, and first sentence bright
   (the compare page's dotted line into the Ex Vivo Organ tile was dropped) */
.vs-list { grid-template-rows: auto auto auto 1fr; }
.vs-list > .vs-note { position: relative; align-self: end; max-width: none; margin: 0; padding: 4px 0 6px 26px;
  color: var(--body); font: 400 1.06rem/1.6 var(--font-display); text-wrap: pretty; }
.vs-note .vs-s1 { color: var(--fg); }
.vs-list > .vs-note::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 6px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), rgba(62, 130, 255, .15)); }

/* Orpheus: copy left, the 3D machine right; the section holds still (about 1.6 screens of scroll) while it comes to light */
.why6-grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 72px; align-items: center; }
.why6 .head { gap: var(--sp-32); }
.why6 .copy { max-width: 30em; }
/* "for medicine testing" is ~575px at full size: let the heading run into the 72px gap (Figma's text box overhangs its column too). */
.why6 .head > .h2 { margin-right: -48px; }
.orx { position: relative; display: grid; place-items: center; padding: var(--sp-28) var(--sp-12); overflow-x: clip; container-type: inline-size; }
@supports not (overflow: clip) { .orx { overflow: hidden; } }   /* Safari < 16: the backdrop light and the wide canvas must not widen the page */
/* the height also stays within what the column's width allows (100cqi = .orx content width), or the stage runs past the clip on the right */
.orx-stage { position: relative; height: min(68vh, 53vw, 100cqi * 1776 / 1716); aspect-ratio: 1716 / 1776; max-width: 100%;
  --fwd: .95; --sun: 0; --sx: 14%; --sy: 30%; transform: scale(var(--fwd)); transform-origin: 50% 62%; }
.orx-stage > * { position: absolute; }
.orx-day { inset: 0; width: 100%; height: 100%; display: none; }
.orx-lit.no-gl .orx-day { display: block; }   /* fallback only: no WebGL */
.orx-sun-gl { left: -22%; top: -8%; width: 144%; height: 116%; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
.orx-lit.gl-on .orx-sun-gl { opacity: 1; }
/* a dim, blue backdrop light that fades out toward every edge of its box, and a soft glow on the floor */
.orx-sunbed { inset: -26% -40% -14%; pointer-events: none; opacity: calc(.3 + .5 * var(--sun));
  background: radial-gradient(30% 34% at var(--sx) var(--sy), color-mix(in srgb, var(--c-primary) 15%, transparent), color-mix(in srgb, var(--c-primary) 5%, transparent) 45%, transparent 72%),
              radial-gradient(46% 42% at 50% 56%, color-mix(in srgb, var(--c-primary) 10%, transparent), color-mix(in srgb, var(--c-primary) 3%, transparent) 55%, transparent 76%);
  -webkit-mask-image: linear-gradient(90deg, transparent 21%, #000 36%, #000 64%, transparent 79%), linear-gradient(180deg, transparent 0%, #000 24%, #000 80%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 21%, #000 36%, #000 64%, transparent 79%), linear-gradient(180deg, transparent 0%, #000 24%, #000 80%, transparent 100%); mask-composite: intersect; }
.orx-floor { left: 2%; right: 2%; bottom: -4%; height: 10%; pointer-events: none; opacity: calc(.3 + .5 * var(--sun)); background: radial-gradient(closest-side, color-mix(in srgb, var(--c-azure) 12%, transparent), transparent); }
.orx-pin { height: 260vh; }
.orx-pin > .wrap { position: sticky; top: 0; height: 100vh; align-items: center; align-content: center; }
@media (prefers-reduced-motion: reduce) { .orx-stage { transform: none; } .orx-day { display: block; } .orx-sun-gl { display: none; } }
/* Nov 17 (Marker RB-7): How It Works shows the homepage's Orpheus blueprint (Orpheus Blueprint block) instead of the 3D model.
   The frame is sized to the machine, not the homepage's wide stage, and stays within the screen's height */
.frame.orph-solo { aspect-ratio: 1; width: min(100%, 78vh); justify-self: center; }

/* kidney & liver studies: live organs on top (the travelling dots land in them), one blue line beside each list */
.kl2-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-16); margin-top: clamp(56px, 5vw, 84px); }
.card.kl2 { overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.kl2-img { position: relative; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); background: radial-gradient(55% 65% at 50% 52%, color-mix(in srgb, var(--c-primary) 16%, transparent), transparent 72%); }
.kl2-img .anchor { position: absolute; inset: 0; width: auto; }
.kl2-img #a-lc { left: 9%; right: 9%; }   /* the liver runs a little wide: keep it inside its card */
.kl2-txt { display: grid; grid-template-rows: auto 1fr; gap: var(--sp-28); padding: var(--sp-32) 36px var(--sp-40); }
.kl2 h3 { font-size: var(--fs-step); line-height: 1.1; letter-spacing: -.022em; }
.kl2 ul { position: relative; list-style: none; margin: 0; padding: 0 0 0 22px; display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-20); }
.kl2 ul::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 1px;
  background: linear-gradient(180deg, var(--c-primary-light), var(--c-primary) 30%, color-mix(in srgb, var(--c-primary) 30%, transparent)); box-shadow: 0 0 8px color-mix(in srgb, var(--c-primary) 70%, transparent); }
.kl2 li { color: var(--body); line-height: 1.5; }
.recv2 { margin-top: clamp(64px, 6vw, 100px); padding-top: clamp(40px, 4vw, 60px); border-top: 1px solid var(--line); }
.recv2 .side { display: grid; gap: var(--sp-28); justify-items: start; padding-top: var(--sp-4); }

/* emerging models: the lungs and heart in a bracketed frame on the left */
.em2 .lead2 { align-items: center; }
/* the lungs and heart reading the same size: equal-height canvases, the lungs inset a little (dots/engine.js emLung, emHeart) */
.em2-art { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(12px, 2vw, 32px); align-items: end; padding: 8% 7%; }
.em2-art #a-lung { aspect-ratio: 1 / 1; }
.em2-art #a-heart { aspect-ratio: .9 / 1; }

/* data & ai: a band of light with no hard edges, the pipeline as its picture, the two offers below */
.band { isolation: isolate; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 46% at 12% 30%, color-mix(in srgb, var(--c-primary-deep) 20%, transparent), transparent 70%), radial-gradient(35% 40% at 90% 62%, color-mix(in srgb, var(--c-indigo) 13%, transparent), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  animation: glowdrift 30s ease-in-out infinite alternate; }
.cols2b { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); margin-top: clamp(30px, 3vw, 44px); }
.cols2b .copy { margin: 0; max-width: none; color: var(--body-2); }
.cols2b .copy:first-child { color: var(--body); }
.lib2 { margin-block: clamp(48px, 5vw, 84px); }
.lib2 canvas { display: block; width: 100%; aspect-ratio: 1336 / 560; }
.dai2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); border-top: 1px solid var(--line); padding-top: clamp(36px, 3.4vw, 52px); }
.dai2 > * { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-8) var(--sp-24); align-content: start; }
.dai2 .big { grid-row: span 4; font: 300 var(--fs-numeral)/.9 var(--font-head); letter-spacing: -.04em; color: var(--muted); font-variant-numeric: tabular-nums; }
.dai2 h3 { font-size: clamp(1.5rem, 1.1rem + .9vw, 2rem); line-height: 1.5; letter-spacing: -.02em; }   /* Nov 19 Platform design */
.dai2 p:not(.big) { color: var(--body-2); line-height: 1.58; max-width: 30em; margin-top: var(--sp-8); }
.dai2 p.arrow-link { margin: 20px 0 0 -6px; }
.dai2 .arrow-link a { color: var(--fg); }
.dai2 .arrow-link a:hover { color: var(--c-primary-light); }
/* Nov 17 (Marker RB-8): three offers, one shared Work With Us centred below them */
.wp-block-buttons.dai2-cta { display: flex; margin: clamp(48px, 5vw, 72px) auto 0; }
@media (max-width: 1100px) {   /* Nov 19: one offer per row, the numeral still beside the title */
  .dai2 { grid-template-columns: minmax(0, 1fr); }
  .dai2 p:not(.big) { max-width: 36em; }
}

/* section rhythm */
@media (min-width: 901px) {
  .sec2 { padding-block: var(--sp-section-m); }
  .st3 { padding-block: var(--sp-12) var(--sp-section-m); }
  .orx-pin { padding-block: 0; }
}

@media (max-width: 900px) {
  .sec2 { padding-block: var(--sp-96); }
  .hero.hiw-hero { margin-top: -92px; }
  .hiw-hero-grid, .st3-row { grid-template-columns: minmax(0, 1fr); }
  .hiw-hero-grid { padding-top: 92px; min-height: 0; }
  .hiw-hero .ihero-copy { padding-right: var(--gut-r); }
  .hiw-hero-art { margin-top: 36px; }
  .hiw-hero-art .anchor { height: min(92vw, 420px); }
  .st3 { padding-block: var(--sp-64) var(--sp-96); }
  .st3-row { padding-block: var(--sp-28) var(--sp-8); }
  .st3-txt { grid-template-rows: auto auto; padding-left: var(--gl); padding-right: var(--gut-r); }
  .st3-top { padding-bottom: var(--sp-16); }
  .st3-top .num { position: static; display: block; margin-bottom: var(--sp-12); }
  .st3-txt > p { padding-top: var(--sp-16); border-top: 1px solid color-mix(in srgb, var(--c-body) 22%, transparent); }
  .st3-txt::after { display: none; }
  .st3-fig { margin-top: var(--sp-24); padding-block: var(--sp-4); }
  .lead2, .offset, .vs, .kl2-cards, .cols2b, .dai2, .why6-grid { grid-template-columns: minmax(0, 1fr); }
  .offset > * { grid-column: auto; }
  .vs-hl canvas { min-height: 200px; aspect-ratio: 599 / 374; align-self: start; }   /* stacked: no list beside it to set the height, so a fixed (Figma) proportion */
  .vs-list { grid-template-rows: none; }
  .vs-list > .vs-note { margin-top: var(--sp-8); }
  .em2-art { order: 2; }
  .why6-grid { gap: 36px; }
  .why6 .head > .h2 { margin-right: 0; }
  .orx-pin { height: auto; }
  .orx-pin > .wrap { position: static; height: auto; }
  .orx-stage { height: auto; width: 86%; }
  /* phones: the pipeline keeps a readable size in its own sideways-scrolling strip (the page itself never scrolls sideways) */
  .lib2 { overflow-x: auto; margin-inline: calc(-1 * var(--gut)) calc(-1 * var(--gut-r)); padding-inline: var(--gut) var(--gut-r); }
  .lib2 canvas { width: 760px; max-width: none; }
}
@media (max-width: 640px) {
  .vs-row { grid-template-columns: minmax(0, 1fr); padding: 18px 22px 24px; gap: var(--sp-12); }
  .vs-row canvas { aspect-ratio: 16 / 7; }
  .vs-row .vs-art img { max-width: 300px; }
  .vs-row canvas.shift { max-width: 300px; aspect-ratio: 666 / 456; }
  .vs-row img.art.still { max-width: 300px; }
}

/* How It Works motion (the homepage's): copy rises line by line after its title; each step plays number → title → text,
   then its rule draws across and the graphic settles in; cards rise one after another with their edge lit; frames draw
   their corners in. Everything replays when it comes back into view from below. */
.pr3 .wi { display: inline-block; opacity: 0; translate: 0 .6em; transition: opacity .25s ease, translate .3s ease; }
.pr3.wr-on .wi { opacity: 1; translate: 0 0; transition: translate 1.1s cubic-bezier(.16, 1, .3, 1), opacity .9s cubic-bezier(.33, 1, .68, 1); transition-delay: calc(var(--d0, .45s) + var(--ln, 0) * 120ms); }
.st3-row .hr2.wr-on .wi { transition-delay: calc(.15s + var(--i) * 80ms); }
.st3-row .num.nr { opacity: 0; translate: -10px 0; transition: opacity .25s ease, translate .25s ease; }
.st3-row.wr-on .num.nr { opacity: 1; translate: 0 0; transition: opacity .8s ease, translate 1s cubic-bezier(.16, 1, .3, 1); }
.st3-row.rv-motion .st3-txt::after { clip-path: inset(0 100% 0 0); transition: clip-path .3s ease; }
.st3-row.rv-motion.wr-on .st3-txt::after { clip-path: inset(0 0 0 0); transition: clip-path 1.6s cubic-bezier(.65, 0, .35, 1) .2s; }
.st3-row.rv-motion .st3-fig, .lib2.rv-motion { opacity: 0; transition: opacity .4s ease; }
.st3-row.rv-motion.wr-on .st3-fig, .lib2.rv-motion.wr-on { opacity: 1; transition: opacity 1.4s ease .35s; }
/* step and pipeline line work dims once the dots have moved on (flow.js sets --on on each anchor) */
.st3-fig canvas[data-flow], .lib2 canvas[data-flow] { opacity: calc(.28 + .72 * var(--on, 1)); }
.tile-r h3 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .04em .18em; margin-block: -.04em -.18em; }
.tile-r h3 .wi { translate: 0 110%; }
.tile-r li .wi { translate: 0 .7em; }
.tile-r.wr-on h3 .wi { transition-delay: calc(var(--td, 0s) + .5s + var(--i) * 75ms); }
.tile-r.wr-on li .wi { transition-delay: calc(var(--td, 0s) + .75s + var(--i) * 22ms); }
.tile-r .big { opacity: 0; translate: -10px 0; transition: opacity .25s ease, translate .25s ease; }
.tile-r.wr-on .big { opacity: 1; translate: 0 0; transition: opacity .8s ease, translate 1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--td, 0s) + .4s); }
.tile-r .capsule { opacity: 0; translate: 0 14px; transition: opacity .3s ease, translate .3s ease; }
.tile-r.wr-on .capsule { opacity: 1; translate: 0 0; transition: opacity .9s ease calc(var(--td, 0s) + 1.1s), translate 1.1s cubic-bezier(.16, 1, .3, 1) calc(var(--td, 0s) + 1.1s); }
/* the Ex Vivo Organ tile and the study cards hold live dots, so they stay in place: only their text plays */
.card.vs-hl.tile-r, .card.vs-hl.tile-r.wr-on, .card.kl2.tile-r, .card.kl2.tile-r.wr-on { opacity: 1; translate: none; scale: none; transition: none; }
.card.vs-hl.tile-r { animation: none; }
.frame.fr-r::before, .frame.fr-r::after { opacity: 0; scale: .6; transition: opacity .3s ease, scale .3s ease; }
.frame.fr-r::before { transform-origin: 0 0; } .frame.fr-r::after { transform-origin: 100% 100%; }
.frame.fr-r.wr-on::before, .frame.fr-r.wr-on::after { opacity: 1; scale: 1; transition: opacity .9s ease .2s, scale 1.2s cubic-bezier(.16, 1, .3, 1) .2s; }
@media (prefers-reduced-motion: reduce) {
  .pr3 .wi, .tile-r .big, .tile-r .capsule, .st3-row .num.nr, .frame.fr-r::before, .frame.fr-r::after { opacity: 1 !important; translate: none !important; scale: none !important; transition: none !important; }
  .st3-row .st3-txt::after { clip-path: none !important; }
  .st3-row .st3-fig, .lib2 { opacity: 1 !important; }
  .band::before { animation: none; }
}

/* ======================================================================
   Company (Nov 12): from the Figma Round 4 "Company" frame. Sections are .co-sec; the hero is the homepage hero, text only.
   Shared pieces built here and reusable on other pages: the sticky sub-nav (.subnav), the team card (.team-card),
   rule rows (.rule-rows), the dash list (.dash-list), the link row with an up-right arrow (.link-row) and logo tiles.
   ====================================================================== */
.co-sec { position: relative; padding-block: var(--sp-section-l) var(--sp-40); }
.co-sec.is-tight { padding-top: var(--sp-section-s); }   /* sections that follow the sub-nav, mission and team (120 in Figma) */
.co-sec .lede { color: var(--body-2); font-size: var(--fs-18); line-height: 1.45; letter-spacing: -.01em; max-width: 900px; }
:is(.co-sec, .co-mission) .statement { font: 400 var(--fs-statement)/1.1 var(--font-head); letter-spacing: -.022em; color: var(--fg); }
.co-head { display: grid; gap: var(--sp-24); justify-items: start; margin-bottom: var(--sp-48); }

/* hero: the homepage hero, copy only */
.hero.co-hero { padding-top: calc(148px + 92px); }
@media (min-width: 901px) { .hero.co-hero { min-height: calc(148px + 760px); } }   /* the Figma hero keeps room on the right for the organ-to-data dots (to come) */
.co-hero .co-hero-copy { display: grid; gap: var(--sp-32); justify-items: start; }
.co-hero h1 { font-size: min(var(--h1), 4.25rem); max-width: 10.3em; text-wrap: initial; }
.co-hero p { max-width: 600px; }
.co-hero p + p { margin-top: calc(var(--sp-16) - var(--sp-32)); }   /* Nov 18: the two founding-story paragraphs sit closer together than the h1 gap */

/* sub-nav: section name left, tabs in a glass capsule right; it sticks to the top of the screen and the tab for the
   section in view is marked (blue bar + white label, no fill, so it reads differently from the main nav pills) */
/* (R5, Nov 17) it sticks just under the fixed main nav and moves up with it when the nav slides away */
.subnav { position: sticky; top: 96px; z-index: 46; pointer-events: none; transition: transform .8s cubic-bezier(.65, 0, .35, 1); }
/* it sits above the header (45): the nav's blur band reaches ~60px below the bar and would otherwise blur the tabs.
   While the phone menu is open it drops back under the header so the menu overlay covers it. */
body:has(.nav .is-menu-open) .subnav { z-index: 41; }
.admin-bar .subnav { top: calc(96px + var(--wp-admin--admin-bar--height, 32px)); }
body:has(.nav.is-hidden) .subnav.is-stuck { transform: translateY(-96px); }
@media (max-width: 900px) { .subnav { top: 72px; } .admin-bar .subnav { top: calc(72px + var(--wp-admin--admin-bar--height, 46px)); } body:has(.nav.is-hidden) .subnav.is-stuck { transform: translateY(-72px); } }
@media (prefers-reduced-motion: reduce) { .subnav { transition: none; } }
/* once stuck, only the glass capsule floats over the page (the section name steps aside) */
.subnav-title { transition: opacity .3s ease, translate .3s ease; }
.subnav.is-stuck .subnav-title { opacity: 0; translate: 0 -6px; pointer-events: none; }
.subnav-in { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-20); height: 72px; }
.subnav-in > * { pointer-events: auto; }
.subnav-title { font-size: var(--fs-17); line-height: 1; color: var(--fg); white-space: nowrap; }
.subnav-tabs { display: flex; gap: 2px; list-style: none; margin: 0; padding: 6px var(--sp-8); border-radius: 100px; border: 1px solid var(--wp--custom--card-border);
  background: color-mix(in srgb, var(--c-surface) 60%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow-x: auto; scrollbar-width: none; }
.subnav-tabs::-webkit-scrollbar { display: none; }
.subnav-tabs li { flex: none; }
.subnav-tabs a { display: flex; align-items: center; gap: 10px; padding: 10px var(--sp-16); border-radius: 100px; font: 500 var(--fs-14)/1 var(--font-display); letter-spacing: -.005em; color: var(--body-2); white-space: nowrap; transition: color .3s ease; }
.subnav-tabs a::before { content: ""; width: 0; height: 4px; border-radius: 2px; background: var(--c-primary); box-shadow: 0 0 10px color-mix(in srgb, var(--c-primary) 85%, transparent); margin-right: -10px; transition: width .35s cubic-bezier(.16, 1, .3, 1), margin .35s cubic-bezier(.16, 1, .3, 1); }
.subnav-tabs a:hover { color: var(--fg); }
.subnav-tabs a[aria-current] { color: var(--fg); }
.subnav-tabs a[aria-current]::before { width: 18px; margin-right: 0; }
/* sections land below the sticky bar when a tab is clicked */
.rv-canvas:has(.subnav) [id] { scroll-margin-top: 176px; }   /* main nav (96) + sub-nav (72) when the nav is showing */
@media (max-width: 900px) { .rv-canvas:has(.subnav) [id] { scroll-margin-top: 144px; } }

/* our mission: a deep navy panel lit from its corners; the dot matrix on the left is a still for now (dots to come) */
.co-mission { padding-block: var(--sp-section-s) var(--sp-40); }
.mission-panel { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: var(--sp-56);
  min-height: 620px; padding: 84px var(--sp-56) 88px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(66.8% 43% at 100% 100%, color-mix(in srgb, var(--c-indigo) 16%, transparent), transparent), radial-gradient(92.8% 55.4% at 0% 0%, color-mix(in srgb, var(--c-primary-deep) 26%, transparent), transparent), linear-gradient(180deg, var(--c-navy), var(--c-base)); }
.mission-panel .mission-art { position: absolute; inset: -1px auto auto -1px; width: calc(100% + 2px); height: calc(100% + 2px); margin: 0; z-index: -1; pointer-events: none; }
.mission-panel .mission-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.mission-copy { grid-column: 2; display: grid; gap: var(--sp-28); align-content: start; }
.mission-copy h2 { font-size: var(--fs-h4); line-height: 1.15; letter-spacing: -.02em; padding-top: 6px; }

/* team: photo, role, name, short bio; board members appear under "See More" */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 64px var(--sp-16); }
.team-card { display: grid; align-content: start; }
.team-card .team-photo { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: var(--c-base-2); }
.team-card .team-photo img { display: block; width: 100%; height: auto; aspect-ratio: 322 / 370; object-fit: cover; }
/* black-and-white photos sit back a little and take the page's blue */
.team-card .team-photo.is-tinted img { opacity: .7; }
.team-card .team-photo.is-tinted::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--c-primary) 10%, transparent); pointer-events: none; }
.team-card .team-txt { display: grid; gap: var(--sp-12); padding-top: 22px; }
.team-card .kicker { font: 500 var(--fs-12)/1.2 var(--font-display); letter-spacing: .02em; color: var(--blue); }
.team-card .team-txt > :is(h2, h3, h4, h5, h6) + .kicker { margin-top: -6px; }   /* Nov 18: name above title, title tucked under the name */
.team-card h3 { font-size: var(--fs-26); line-height: 1.15; letter-spacing: -.02em; }
.team-card p:not(.kicker) { font-size: var(--fs-15); line-height: 1.55; color: var(--body-2); }
.team-more { display: flex; justify-content: center; padding-top: var(--sp-16); margin-top: var(--sp-48); }
.board { margin-top: var(--sp-48); padding-top: 72px; border-top: 1px solid var(--wp--custom--card-border); display: grid; gap: var(--sp-48); }
.board[hidden] { display: none; }

/* rule rows: heading left, content right, a hairline above each row (and below the last) */
.rule-rows > * { display: grid; grid-template-columns: minmax(0, 520fr) minmax(0, 740fr); gap: var(--sp-56); align-items: start; padding-block: 72px; border-top: 1px solid var(--line); }
.rule-rows > *:last-child { border-bottom: 1px solid var(--line); }
.rule-rows .lede { color: var(--body); }

/* honoring the gift: the dot ribbon on the left, the four principle cards stacked on the right */
.co-gift .co-head { margin-bottom: var(--sp-56); }
.gift-body { display: flex; align-items: center; gap: var(--sp-56); }
/* the ribbon art spills past its 600 square on every side, as in Figma */
.wp-block-image.gift-art { position: relative; flex: none; width: min(600px, 45%); aspect-ratio: 1; margin: 0; pointer-events: none; }
.wp-block-image.gift-art img { position: absolute; top: -14.67%; left: -14.67%; width: 130.55%; max-width: none; height: 130.84%; }
.principles { flex: 1 1 0; min-width: 0; display: grid; gap: var(--sp-16); }
.principle { display: flex; flex-direction: column; gap: 22px; padding: var(--sp-28) var(--sp-32) var(--sp-32); }
.principle .num { font-size: var(--fs-17); line-height: 1; color: var(--dim); }
.principle-txt { display: grid; gap: var(--sp-16); }
.principle-txt h3 { font-size: var(--fs-26); line-height: 1.15; letter-spacing: -.02em; }
.principle-txt p { font-size: var(--fs-16); line-height: 1.55; color: var(--body-2); }

/* Letter to Donor Families (Marker RB-57): a card under the principle cards, in place on the page. assets/js/letter.js
   veils it (is-veiled) and unveils it as it scrolls into view: dots draw the card's outline, the card fades up and its
   lines follow one after another, then the crest's dots flow. Without the script, or with reduced motion, it just shows. */
.letter-stage { position: relative; max-width: 760px; margin: var(--sp-80) auto 0; }
.letter-dots { position: absolute; z-index: 2; pointer-events: none; }
.donor-letter { position: relative; display: grid; gap: var(--sp-32); max-width: 760px; margin: var(--sp-80) auto 0; padding: 124px 80px 80px; overflow: hidden;
  border: 1px solid var(--wp--custom--card-border); border-radius: 24px; color: var(--fg);
  background: linear-gradient(180deg, rgba(21, 20, 58, .97), rgba(11, 10, 34, .97)); box-shadow: 0 0 160px rgba(61, 128, 255, .14), 0 40px 120px rgba(0, 0, 10, .6); }
.letter-stage > .donor-letter { margin: 0; }
.donor-letter { transition: opacity .9s ease, translate 1.1s cubic-bezier(.16, 1, .3, 1); }
.donor-letter.is-veiled { opacity: 0; translate: 0 32px; }
.donor-letter :is(.letter-title, .letter-body > p, .letter-sign, .letter-note) { transition: opacity .8s ease calc(.25s + var(--lt-i, 0) * .11s), translate 1s cubic-bezier(.16, 1, .3, 1) calc(.25s + var(--lt-i, 0) * .11s); }
.donor-letter.is-veiled :is(.letter-title, .letter-body > p, .letter-sign, .letter-note) { opacity: 0; translate: 0 16px; }
.letter-crest { position: absolute; z-index: 1; top: -8px; left: 0; width: 100%; margin: 0; pointer-events: none; }
.letter-crest img { display: block; width: 100%; height: auto; }
.letter-title { font: 300 44px/52px var(--font-head); color: var(--fg); }
.letter-body p { font-size: var(--fs-17); line-height: 29px; color: var(--body); }
.letter-body p + p { margin-top: 18px; }
.letter-sign { display: grid; gap: 6px; padding-top: 4px; }
.letter-name { font: 400 var(--fs-22)/28px var(--font-head); color: var(--fg); }
.letter-role { font-size: var(--fs-15); line-height: 22px; color: var(--muted); }
.letter-sign .letter-signature { margin: 14px 0 0; }
.letter-sign .letter-signature img { display: block; width: 233px; height: 61px; }
.letter-note { padding-top: var(--sp-24); border-top: 1px solid var(--line); font-size: var(--fs-13); line-height: 22px; color: var(--dim); }
@media (max-width: 700px) {
  .letter-stage, .donor-letter { margin-top: var(--sp-56); }
  .donor-letter { gap: var(--sp-24); padding: 96px var(--sp-24) var(--sp-40); border-radius: 20px; }
  .letter-title { font-size: 34px; line-height: 40px; }
  .letter-body p { font-size: var(--fs-16); line-height: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .donor-letter, .donor-letter :is(.letter-title, .letter-body > p, .letter-sign, .letter-note) { transition: none; }
}

/* a whole-row link with an up-right arrow (Letter to Donor Families; reusable for publications and press) */
.link-row { margin-top: var(--sp-56); border-block: 1px solid var(--line); }
.link-row a { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-24); padding-block: 34px; font: 400 var(--fs-h4)/1.15 var(--font-head); letter-spacing: -.02em; color: var(--fg); }
.link-row a::after { content: ""; flex: none; width: 28px; height: 28px; background: currentColor; -webkit-mask: url(../img/icons/arrow-up-right.svg) center / contain no-repeat; mask: url(../img/icons/arrow-up-right.svg) center / contain no-repeat; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.link-row a:hover { color: var(--c-primary-light); }
.link-row a:hover::after { transform: translate(3px, -3px); }

/* where Revalia is today: facts with a blue dash, a hairline between them */
.co-today .rule-rows > * { padding: 0; border: 0; }
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list li { display: flex; align-items: center; gap: var(--sp-20); padding-block: var(--sp-24); border-top: 1px solid var(--line); font-size: var(--fs-18); line-height: 1.45; letter-spacing: -.01em; color: var(--fg); }
.dash-list li:last-child { border-bottom: 1px solid var(--line); }
.dash-list li::before { content: ""; flex: none; width: 22px; height: 5px; border-radius: 3px; background: var(--blue); }

/* repository: the Stage Tracker in the page style — title-case labels above, a solid rail, reached stages in blue */
:is(.co-repo, .co-ai) .lede { margin-top: var(--sp-32); }
.trk-repo .trk-i { row-gap: var(--sp-20); }
.trk.trk-repo { --trk-top: 37px; margin-top: 64px; }
.trk-repo .trk-dots { background: none; background-color: var(--line); border-radius: 1px; }
.trk-repo .trk-fill { box-shadow: none; }
@media (min-width: 901px) {
  .trk.trk-repo { gap: 0; }
  .trk-repo .trk-dots { inset: 0; height: 2px; }
  .trk-repo .trk-fill { background: linear-gradient(90deg, var(--c-azure), color-mix(in srgb, var(--c-primary) 25%, transparent)); }
}
@media (max-width: 900px) {
  .trk-repo .trk-i { row-gap: var(--sp-8); }
  .trk-repo .trk-dots { inset: 0; width: 2px; }
  .trk-repo .trk-fill { background: linear-gradient(180deg, var(--c-azure), color-mix(in srgb, var(--c-primary) 25%, transparent)); }
}
.trk-repo .trk-lab { font: 500 var(--fs-17)/1 var(--font-display); letter-spacing: -.01em; color: var(--fg); }
.trk-repo .trk-i p { max-width: 300px; font-size: var(--fs-16); line-height: 1.55; color: var(--body-2); }
.trk-repo .trk-i.on p { color: var(--body); }
.trk-repo .trk-node { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-haze) 45%, transparent); }
.trk-repo .trk-i.on .trk-node { background: var(--c-azure); box-shadow: inset 0 0 0 1.5px var(--c-azure), 0 0 0 6px color-mix(in srgb, var(--c-primary) 18%, transparent), 0 0 18px color-mix(in srgb, var(--c-primary) 70%, transparent); }

/* investors: logo tiles four across, then the two buttons */
.logo-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-16); }
.logo-tile { display: grid; place-items: center; height: 180px; padding: var(--sp-24); }
.logo-tile figure { margin: 0; }
.logo-tile img { display: block; width: 207px; max-width: 100%; height: auto; }
.co-investors .capsule { margin-top: var(--sp-48); }

/* news (Company): wide photo cards, kicker and title */
.news-wide .wp-block-post-template { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-16); list-style: none; margin: 0; padding: 0; }
.news-wide .news-card .news-img { aspect-ratio: auto; height: auto; border-radius: 16px; background: color-mix(in srgb, var(--c-primary) 10%, transparent); }
.news-wide .news-card .news-img img { aspect-ratio: 16 / 9; height: auto; }
.news-wide .news-meta { margin-top: 18px; gap: var(--sp-12); align-items: center; }
.news-wide .news-meta .kicker { text-transform: uppercase; font-size: var(--fs-12); font-weight: 500; letter-spacing: 0; line-height: normal; }
.news-wide .news-meta .date { font-size: var(--fs-12); line-height: normal; color: var(--body); opacity: .6; }
.news-wide .news-card h3 { margin-top: 18px; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; }   /* 24px in Figma, on the site's rem scale */
/* Nov 17 (Marker RB-10): six at a time, rows spaced like the cards' own rhythm, and the Load More button below (inc/news.php) */
.news-wide .wp-block-post-template { column-gap: var(--sp-32); row-gap: var(--sp-48); }
/* the button sits in a capsule (8px, frosted navy), centred 48px below the cards (Figma "News", More) */
.wp-block-query-pagination.load-more-row { display: flex; width: fit-content; margin: var(--sp-48) auto 0; }
.load-more-row .load-more.is-loading { opacity: .6; pointer-events: none; }
/* Case Grid: Load More is a <button> (no link), hidden until assets/js/load-more.js runs (Marker RB-41) */
.wp-block-query-pagination.load-more-row[hidden] { display: none; }
button.btn.load-more { cursor: pointer; margin: 0; }
/* cards added by Load More rise and fade in, staggered (assets/js/load-more.js) */
.lm-in { animation: lmIn .8s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--lm-i, 0) * 80ms); }
@keyframes lmIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lm-in { animation: none; } }
/* "Show whole image" (inc/news.php): logos fit inside the card on white instead of being cropped to fill */
.news-card .news-img.is-whole, .news-card .news-img.is-whole img { background: var(--c-white); }
.news-card .news-img.is-whole img { object-fit: contain; box-sizing: border-box; padding: 6%; }
.news-card:hover .news-img.is-whole img { transform: none; }

/* careers */
.co-careers { padding-bottom: 170px; }
.co-careers .h2 { white-space: nowrap; }
.co-careers .co-head { gap: 26px; margin: 0; }
.co-careers .lede { color: var(--body); max-width: 760px; }
.co-careers .small { font-size: var(--fs-16); line-height: 1.55; color: var(--body-2); }

@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-careers .h2 { white-space: normal; }
}
@media (max-width: 900px) {
  .co-sec { padding-block: var(--sp-96) var(--sp-24); }
  .co-sec.is-tight, .co-mission { padding-top: var(--sp-64); }
  .hero.co-hero { padding-top: calc(92px + 48px); }
  .subnav-title { display: none; }
  .subnav-in { justify-content: flex-start; height: 64px; }
  .subnav-tabs { max-width: 100%; }
  .mission-panel { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 260px var(--sp-24) var(--sp-40); border-radius: 22px; }
  .mission-copy { grid-column: 1; }
  .mission-panel .mission-art img { height: 300px; object-position: left top; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-48) var(--sp-16); }
  .rule-rows > * { grid-template-columns: minmax(0, 1fr); gap: var(--sp-20); padding-block: var(--sp-48); }
  .co-today .rule-rows > * { gap: var(--sp-32); }
  .gift-body { flex-direction: column; align-items: stretch; gap: var(--sp-32); }
  .wp-block-image.gift-art { width: min(420px, 78%); align-self: center; }
  .principle { padding: var(--sp-24) var(--sp-24) var(--sp-28); }
  .trk.trk-repo { margin-top: var(--sp-40); }
  .news-wide .wp-block-post-template { grid-template-columns: minmax(0, 1fr); gap: var(--sp-40); }
  .co-careers { padding-bottom: var(--sp-96); }
  .link-row a { padding-block: var(--sp-24); }
}
@media (max-width: 560px) {
  .team-grid { gap: var(--sp-40) var(--sp-12); }
  .team-card .team-txt { gap: var(--sp-8); padding-top: var(--sp-16); }
  .team-card :is(h3, h4) { font-size: var(--fs-20); }
  .team-card p:not(.kicker) { font-size: var(--fs-14); line-height: 1.5; }
  .team-card .kicker { font-size: var(--fs-11); }
  .logo-tile { height: 130px; }
}

.team-more[hidden] { display: none; }
.team-card :is(h3, h4) { font-size: var(--fs-26); line-height: 1.15; letter-spacing: -.02em; }

/* ======================================================================
   Results (Nov 12): from the Figma Round 4 "Results" frame — a text hero, the four case cards and the publications list.
   ====================================================================== */
/* a text-only page hero (the homepage hero's reveal and scroll fade, no artwork) */
.hero.page-hero { padding-top: calc(148px + 92px); }
.page-hero h1 { font-size: min(var(--h1), 4.25rem); max-width: none; text-wrap: balance; }
@media (min-width: 901px) { .page-hero h1 { white-space: nowrap; } }
@media (max-width: 900px) { .hero.page-hero { padding-top: calc(92px + 48px); } }

/* arrow link: a quiet text link with an arrow (Read More →, PubMed ↗); add is-external for the up-right arrow */
.arrow-link a { display: inline-flex; align-items: center; gap: var(--sp-8); height: 36px; padding: 0 var(--sp-4) 0 6px; border-radius: 999px;
  font: 500 var(--fs-14)/1 var(--font-display); letter-spacing: -.005em; color: var(--body); white-space: nowrap; transition: color .25s ease; }
.arrow-link a::after { content: ""; flex: none; width: 16px; height: 16px; background: currentColor; transition: transform .35s cubic-bezier(.16, 1, .3, 1);
  -webkit-mask: url(../img/icons/arrow-right.svg) center / contain no-repeat; mask: url(../img/icons/arrow-right.svg) center / contain no-repeat; }
.arrow-link.is-external a::after { -webkit-mask-image: url(../img/icons/arrow-up-right.svg); mask-image: url(../img/icons/arrow-up-right.svg); }
.arrow-link a:hover { color: var(--fg); }
.arrow-link a:hover::after { transform: translateX(3px); }
.arrow-link.is-external a:hover::after { transform: translate(2px, -2px); }

/* case cards: abstract dot artwork full-bleed at the top, fading into the card; title (name white, the rest muted);
   Read More. The whole card is the link. */
.rs-cases { padding-bottom: var(--sp-section-m); }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-16); }
.case-card { position: relative; overflow: hidden; container-type: inline-size; display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-32);
  min-height: 500px; padding: var(--sp-28) var(--sp-32) 30px; transition: border-color .4s ease, box-shadow .4s ease; }
.case-card .case-art { position: absolute; top: -1px; left: -1px; right: -1px; margin: 0; pointer-events: none; }
.case-card .case-art img { display: block; width: 100%; height: auto; aspect-ratio: 660 / 290; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); }
/* the title starts 10px above the artwork's faded bottom edge (280 of 290 in Figma). cqi measures the card's content box, so the
   artwork's height is (content width + side padding + borders) × 290/660 */
.case-card h3 { position: relative; margin-top: calc((100cqi + 66px) * .4394 - 38px); max-width: 560px; font-size: var(--fs-26); line-height: 1.15; letter-spacing: -.02em; }
.case-card .arrow-link { position: relative; }
.case-card .arrow-link a::before { content: ""; position: absolute; inset: -100vh -100vw; }   /* stretched link: the card is clickable */
.case-card:has(a:hover) { border-color: color-mix(in srgb, var(--c-line) 22%, transparent); box-shadow: var(--wp--preset--shadow--lift); }
.case-card:has(a:hover) .case-art img { transform: scale(1.03); }
.case-card:has(a:focus-visible) { outline: 2px solid var(--c-primary-light); outline-offset: 3px; }

/* publications: number, title (keeps its line break), one-line description, PubMed; hairlines between rows */
.rs-pubs { padding-bottom: var(--sp-section-l); }
.rs-pubs .co-head { gap: 22px; margin-bottom: var(--sp-56); }
.rs-pubs .lede { color: var(--body-2); font-size: var(--fs-18); line-height: 1.45; letter-spacing: -.01em; max-width: 640px; }
.pub-row { display: grid; grid-template-columns: 64px 200px minmax(0, 1fr) auto; gap: var(--sp-24); align-items: start; padding: 34px 0 38px; border-top: 1px solid var(--line); }
.pub-row:last-child { border-bottom: 1px solid var(--line); }
/* the whole row is the PDF link (stretched link); hover in the shared list-row rules below */
.pub-row { position: relative; }
.pub-row .arrow-link a::before { content: ""; position: absolute; inset: 0; }
.pub-row .num { padding-top: var(--sp-4); font-size: var(--fs-17); line-height: 1; color: var(--dim); }
/* thumbnail: the publication's featured image, 200×125 rounded tile; the card gradient when there's no image */
.pub-thumb { width: 200px; aspect-ratio: 8 / 5; border: 1px solid var(--wp--custom--card-border); border-radius: 14px; overflow: hidden; background: var(--wp--preset--gradient--card); }
.pub-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pub-txt { display: grid; gap: var(--sp-12); }
.pub-txt h3 { max-width: 820px; font-size: var(--fs-26); line-height: 1.15; letter-spacing: -.02em; }
.pub-txt p { font-size: var(--fs-16); line-height: 1.55; color: var(--body-2); }

/* case studies as a list (Case Grid layout "list", Marker RB-58): the publications' rows without the thumbnail —
   number, two-tone title, Read More on the right; hairlines between rows; the whole row is the link */
.case-grid.is-list { display: block; }
.case-row { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--sp-24); align-items: start; padding: 34px 0 38px; border-top: 1px solid var(--line); }
.case-row:last-child { border-bottom: 1px solid var(--line); }
.case-row .num { padding-top: var(--sp-4); font-size: var(--fs-17); line-height: 1; color: var(--dim); }
.case-row h3 { max-width: 820px; font-size: var(--fs-26); line-height: 1.15; letter-spacing: -.02em; }
.case-row .arrow-link { margin-top: -6px; }
.case-row .arrow-link a::before { content: ""; position: absolute; inset: 0; }

/* list-row hover, the Careers job rows' (careers.css, Nov 19 design) shared by case study and publication rows: a soft
   glow fades in from the left, the title slides over, the link lights up with its arrow nudging out; publication
   thumbnails zoom a touch */
.case-row::before, .pub-row::before { content: ""; position: absolute; inset: 0 -18px; border-radius: 14px; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(60% 140% at 0% 50%, color-mix(in srgb, var(--c-primary) 12%, transparent), transparent 70%); }
.case-row h3, .pub-txt h3 { transition: translate .5s cubic-bezier(.16, 1, .3, 1); }
.pub-thumb img { transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); }
:is(.case-row, .pub-row):is(:hover, :focus-within)::before { opacity: 1; }
.case-row:hover h3, .pub-row:hover .pub-txt h3 { translate: 6px 0; }
.pub-row:hover .pub-thumb img { transform: scale(1.04); }
:is(.case-row, .pub-row):hover .arrow-link a, :is(.case-row, .pub-row) .arrow-link a:focus-visible { color: var(--c-primary-light); }
:is(.case-row, .pub-row):hover .arrow-link a::after { transform: translateX(3px); }
:is(.case-row, .pub-row):hover .arrow-link.is-external a::after { transform: translate(2px, -2px); }
:is(.case-row, .pub-row):has(a:focus-visible) { outline: 2px solid var(--c-primary-light); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .case-row::before, .pub-row::before, .case-row h3, .pub-txt h3, .pub-thumb img { transition: none; }
  .case-row:hover h3, .pub-row:hover .pub-txt h3 { translate: none; }
  .pub-row:hover .pub-thumb img { transform: none; }
}

@media (max-width: 900px) {
  .case-grid { grid-template-columns: minmax(0, 1fr); }
  .case-card { min-height: 0; padding: var(--sp-24) var(--sp-24) var(--sp-20); }
  .case-card h3 { margin-top: calc((100cqi + 50px) * .4394 - 34px); font-size: var(--fs-22); }
  .rs-cases { padding-bottom: var(--sp-96); }
  .rs-pubs { padding-bottom: var(--sp-96); }
  .rs-pubs .co-head { margin-bottom: var(--sp-32); }
  .pub-row { grid-template-columns: minmax(0, 1fr); gap: var(--sp-12); padding: var(--sp-24) 0 var(--sp-28); }
  .pub-row .num { padding-top: 0; }
  .pub-thumb { width: 160px; }
  .pub-txt h3 { font-size: var(--fs-21); }
  .pub-txt h3 br { display: none; }
  .pub-row .arrow-link { margin-left: -6px; }
  .case-row { grid-template-columns: minmax(0, 1fr); gap: var(--sp-12); padding: var(--sp-24) 0 var(--sp-28); }
  .case-row .num { padding-top: 0; }
  .case-row h3 { font-size: var(--fs-21); }
  .case-row .arrow-link { margin: 0 0 0 -6px; }
}

/* ======================================================================
   Legal pages (Nov 13): Terms of Service and Privacy Policy, from the Figma Round 4 legal frames (inc/legal.php).
   Hero (title, one-line intro), then a sticky 300px sidebar (note + contents) beside a 760px column of numbered
   sections, 96px apart. Numbers come from a counter; the contents list is built on render from the section H2s.
   ====================================================================== */
.hero.legal-hero { padding-bottom: var(--sp-80); }
.legal-intro { display: grid; gap: var(--sp-32); justify-items: start; }
.legal-hero p { max-width: 640px; opacity: 1; }
.legal-layout { padding-bottom: var(--sp-section-m); }
.legal-grid { display: grid; grid-template-columns: 300px minmax(0, 760px); gap: 0 var(--sp-96); align-items: start; }
.legal-side { position: sticky; top: calc(96px + var(--sp-16));   /* clear of the fixed nav (96px once scrolled) */ display: grid; gap: var(--sp-28); padding-top: var(--sp-40); }
.legal-note { display: grid; gap: var(--sp-8); }
.legal-note p { font-size: var(--fs-15); line-height: 1.55; color: var(--c-body-2); }
.legal-note .legal-note-title { font-size: var(--fs-17); line-height: 1.58; color: var(--c-contrast); }
.legal-toc ol { margin: 0; padding: 0; list-style: none; }
.legal-toc a { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: var(--fs-15); line-height: 1.55; color: var(--c-body-2); text-decoration: none; transition: color .25s ease; }
.legal-toc a::before { content: ""; flex: none; width: 18px; height: 4px; border-radius: 2px; background: transparent; transition: background-color .25s ease, box-shadow .25s ease; }
.legal-toc a:hover { color: var(--c-contrast); }
.legal-toc a[aria-current="true"] { color: var(--c-contrast); }
.legal-toc a[aria-current="true"]::before { background: var(--c-primary); box-shadow: 0 0 10px color-mix(in srgb, var(--c-primary) 85%, transparent); }
.legal-body { counter-reset: legal; }
.legal-section { counter-increment: legal; display: grid; gap: 18px; padding: var(--sp-40) 0 var(--sp-48); border-top: 1px solid color-mix(in srgb, var(--c-line) 10%, transparent); }
.legal-section h2 { display: flex; align-items: baseline; gap: var(--sp-20); scroll-margin-top: var(--sp-40);
  font-size: var(--fs-26); line-height: 1.15; letter-spacing: -.02em; color: var(--c-contrast); }
.legal-section h2::before { content: counter(legal, decimal-leading-zero); flex: none; font: 400 1.05rem/1 var(--font-display); letter-spacing: 0; color: var(--c-dim); }
.legal-section :is(p, li) { font-size: var(--fs-16); line-height: 1.55; color: var(--c-body-2); }
.legal-section :is(ul, ol) { display: grid; gap: var(--sp-8); padding-left: 1.2em; }
.legal-section a { color: var(--c-contrast); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c-contrast) 35%, transparent); text-underline-offset: 3px; }
.legal-section h3 { font-size: var(--fs-18); line-height: 1.3; color: var(--c-contrast); }
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-40); }
  .legal-side { position: static; padding-top: 0; }
  .hero.legal-hero { padding-bottom: var(--sp-48); }
}
