/* Home body (everything between the hero and the footer):
   specialty marquee · the four rooms (one set of teal scan plates on the butter field) · who we are (Neko's bento of
   three tight crops) · the proof (a bold head and its three facts beside the checkup table) · the clinical workspace (skin
   lens + findings mock) · statement band (night) · the centre (Function's test grid as a bento: six title-led doors,
   the partner bodies as a ruled list) · the wellness doors (ruled rows beside one photo) · closing photo band.
   Art direction: the diagnostics (the four rooms, the workspace render, the statement glow) are one teal-on-mist voice;
   every people or room photo shares ONE warm grade (.graded / .graded-img). Shared primitives come from components.css;
   the hero is styled only from index-hero.css. */

/* ---- specialty marquee ---- */
.ticker-band { padding: clamp(1.75rem, 1rem + 2vw, 3rem) 0; border-bottom: 1px solid var(--line); }
.ticker-band .marquee-group { --marquee-gap: var(--space-8); }
.ticker-band li {
  display: inline-flex; align-items: center; gap: var(--space-8);
  font-family: var(--font-display); font-style: italic; font-weight: var(--fw-display);
  font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.01em;
  color: var(--ink-2);
}
.ticker-band li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-400); box-shadow: 0 0 0 4px var(--teal-50);
}

/* ---- 1. the four rooms: white cards on the one butter field, each holding a scan plate ---- */
.pillars-head { margin-inline: auto; }
.pillars-head .display-2 { max-width: 17ch; }
.pillars-head .lede { max-width: 46ch; }
.pillars { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); }
/* the row is a carousel only on phones (see the 640 query); above that it is a plain grid with no scroller, so a
   lifted card's shadow is never clipped */
@media (min-width: 641px) {
  .pillars.carousel-track { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
  .pillars-controls { display: none; }
}
.pillars > li { display: flex; min-width: 0; }
/* the card holds its plate 8px in from the edge (a frame inside the frame), copy below */
.pillar {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column;
  padding: var(--space-2);
  color: var(--ink);
}
/* ONE grade for all four plates: each photo or render becomes a duotone, deep teal shadows on the mist ground.
   The photo is greyscaled and multiplied onto the mist (white -> mist, black stays black); a deep-teal layer screened
   over it lifts the blacks to teal-900. The heart render is inverted first, so its black studio turns to mist too
   and the heart reads as glass, like the spine */
.pillar-media {
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--r-lg) - var(--space-2));
  background: var(--mist);
  isolation: isolate;
  --reticle-color: var(--teal-700); --reticle-inset: 10px; --reticle-len: 16px;
}
.pillar-media > img {
  filter: grayscale(1) contrast(1.08) brightness(1.04);
  mix-blend-mode: multiply;
  transition: scale 1.2s var(--ease-out);
}
.pillar-tone {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--teal-900);
  mix-blend-mode: screen;
}
.pillar-pain > img { object-position: 50% 40%; }
.pillar-imaging > img { object-position: 100% 50%; transform: scale(1.32); transform-origin: 84% 46%; }
.pillar-lab > img { object-position: 50% 50%; transform: scale(1.25); filter: grayscale(1) contrast(1.35) brightness(1.02); }
/* the heart: inverted (black studio -> mist), and cropped above the floor glow, which would invert to a dark smudge */
.pillar-heart > img {
  filter: grayscale(1) invert(1) contrast(1.12) brightness(1.03);
  object-position: 50% 30%;
  transform: scale(1.1); transform-origin: 50% 14%;
}
/* the reticle locks on only to the card you point at: never more than one on screen */
.pillar-media.reticle::after { opacity: 0; scale: 1.1; transition: opacity var(--dur-3) var(--ease-out), scale var(--dur-4) var(--ease-out); }
@media (hover: hover) {
  .pillar:hover .pillar-media.reticle::after { opacity: 1; scale: 1; }
  .pillar:hover .pillar-media > img { scale: 1.05; }
}
.pillar:focus-visible .pillar-media.reticle::after { opacity: 1; scale: 1; }
/* a white chip on the plate names the modality; a solid white arrow disc sits opposite it */
.pillar-chip {
  position: absolute; left: calc(var(--space-2) + 14px); top: calc(var(--space-2) + 16px); z-index: 5;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 30px; padding: 0 12px 0 10px;
  border-radius: var(--r-pill);
  background: var(--surface); color: var(--teal-800);
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-eyebrow); font-weight: var(--fw-ui); line-height: 1.2; white-space: nowrap;
}
.pillar-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-100); }
.pillar-go {
  position: absolute; right: calc(var(--space-2) + 12px); top: calc(var(--space-2) + 12px); z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface) var(--icon-arrow) center / 16px no-repeat;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-3) var(--ease-spring), background-color var(--dur-2) var(--ease-out);
}
@media (hover: hover) { .pillar:hover .pillar-go { transform: translateX(3px); } }
.pillar:focus-visible .pillar-go { transform: translateX(3px); }
.pillar-copy {
  flex: 1 1 auto;
  display: flex; flex-direction: column;
  padding: var(--space-5) calc(var(--card-pad) - var(--space-2)) calc(var(--card-pad) - var(--space-2));
}
.pillar-no {
  margin-bottom: var(--space-2);
  font-size: var(--fs-eyebrow); font-weight: var(--fw-ui); letter-spacing: 0.08em;
  color: var(--teal-700); font-variant-numeric: tabular-nums;
}
.pillar-title { font-size: var(--fs-h3); line-height: 1.08; letter-spacing: -0.018em; }
.pillar-text { margin-top: var(--space-3); font-size: var(--fs-card); line-height: 1.55; color: var(--ink-2); max-width: 34ch; }
.pillars-actions { display: flex; justify-content: center; margin-top: var(--stack); }


/* ---- one warm grade for every people and room photo in the body (the who bento, the two photo doors, the wellness
       photo): a touch of sepia, a little less saturation, a butter wash multiplied over it and film grain, so the set
       reads as one shoot, not as stock. The diagnostic plates above keep their own teal duotone ---- */
.graded > img, .graded-img { filter: sepia(0.26) saturate(0.84) contrast(1.05) brightness(1.02); }
.graded::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--grain); opacity: 0.16; mix-blend-mode: overlay;
}
.graded::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--butter); mix-blend-mode: multiply; opacity: 0.2;
}
/* a small dark-glass tag on a photo (Neko's SCIENCE / CARE labels, in sentence case) */
.photo-tag {
  position: absolute; left: var(--space-4); top: var(--space-4); z-index: 3;
  display: inline-flex; align-items: center;
  min-height: 28px; padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--glass-dark); color: var(--on-photo);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  font-size: var(--fs-eyebrow); font-weight: var(--fw-ui); line-height: 1;
}

/* ---- 2. who we are: Neko's bento. One tall crop and two small ones, copy beside them, bottom-aligned ---- */
.who {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(16rem, 9rem + 12vw, 24rem));
  gap: var(--grid-gap);
}
.who-care { grid-column: 1 / 6; grid-row: 1 / 3; }
.who-doctor { grid-column: 6 / 9; grid-row: 1; }
.who-imaging { grid-column: 6 / 9; grid-row: 2; }
/* the copy column runs the full height of the bento: the heading meets the photos' top edge, the lede and link their
   bottom edge, so no corner of the block is left blank */
.who-copy {
  grid-column: 9 / 13; grid-row: 1 / 3;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-7);
  padding-left: clamp(0px, 3vw - 1.5rem, 3rem);
}
.who-copy .display-2 { max-width: 11ch; margin-top: -0.12em; }
.who-foot .lede { max-width: 34ch; }
.who-foot .link-arrow { margin-top: var(--space-5); }
/* desktop: three tracks (tall crop · two small crops · copy) so the heading keeps three lines up to 1920 (on twelve
   equal tracks the copy column was 430px at 1920 and "then a next step." broke a fourth line) */
@media (min-width: 1280px) {
  .who { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4.5fr); }
  .who-care { grid-column: 1; }
  .who-doctor, .who-imaging { grid-column: 2; }
  .who-copy { grid-column: 3; padding-left: clamp(0px, 3vw - 1.5rem, 1rem); }
  .who-copy .display-2 { max-width: 12ch; }
}
.who-tile { margin: 0; min-width: 0; }
/* tight crops: each photo is zoomed onto one detail (transform, so the clip reveal's own scale still composes) */
.who-tile > img { transform: scale(var(--zoom, 1)); transform-origin: var(--fx, 50%) var(--fy, 50%); }
.who-care > img { object-position: 58% 50%; --zoom: 1.75; --fx: 50%; --fy: 100%; }
/* clinician-led: the doctor at work, her face and the patient she is examining in one tight frame */
.who-doctor > img { object-position: 58% 30%; --zoom: 1.5; --fx: 58%; --fy: 26%; }
/* imaging: close on the ultrasound console (screen, keys, probes), not the whole empty room */
.who-imaging > img { object-position: 36% 50%; --zoom: 2.1; --fx: 37%; --fy: 54%; }

/* ---- the proof: one visit against the usual route. The statement (inner-page hero size) and its three facts beside
       the checkup table. No numeral strip here: the hero's 110 / 1 / 4 is the page's one row of big numbers ---- */
.proof-section.flush { padding-top: calc(var(--section-y) * 0.5); }   /* a deliberate pause after the who bento */
.proof {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "copy table";
  gap: var(--section-y-sm) clamp(2rem, 0.5rem + 4.5vw, 7rem);
}
.proof-copy { grid-area: copy; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-8); }
.proof-display { max-width: 11ch; }
.proof-text { font-size: var(--fs-lede); line-height: 1.5; color: var(--fg-2); max-width: 40ch; }
.proof-facts { margin-top: var(--space-4); }
.proof-facts b { font-weight: var(--fw-ui); color: var(--fg); }
.proof-aside .link-arrow { margin-top: var(--space-6); }
/* the lane's rounded foot hangs below the last hairline (an ::after on the last lane cell), so every row, the last
   one included, keeps the same height */
.proof-table { grid-area: table; align-self: end; padding-top: 0; padding-bottom: var(--space-4); }
.proof-table .compare tbody tr:last-child .is-us { height: auto; border-radius: 0; position: relative; }
.proof-table .compare tbody tr:last-child .is-us::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: var(--space-4);
  background: var(--lane-bg, var(--accent));
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: 16px 0 28px -20px rgba(var(--photo-ink), 0.55), -16px 0 28px -20px rgba(var(--photo-ink), 0.55);
}

.proof-table .compare { font-size: var(--fs-body); }
.proof-table .compare tbody th { height: clamp(56px, 2rem + 2.4vw, 76px); font-weight: 400; color: var(--fg); }
.proof-table .compare th:last-child, .proof-table .compare td:last-child { width: 22%; }
.proof-table .compare .is-us {
  width: 24%;
  box-shadow: 16px 0 28px -20px rgba(var(--photo-ink), 0.55), -16px 0 28px -20px rgba(var(--photo-ink), 0.55);
}
.proof-table .compare thead th:last-child { color: var(--fg-3); font-weight: var(--fw-ui); vertical-align: middle; height: 84px; }
.proof-table .compare thead th.is-us { height: 84px; }
/* every row closes on a rule, the usual-route column included */
.proof-table .compare tbody tr:last-child td:not(.is-us) { border-bottom: 1px solid var(--rule); }
.proof-mark { display: block; width: 68px; height: auto; margin-inline: auto; color: var(--on-accent); --mark-dot: var(--teal-200); }
/* a white disc with a teal tick in the lane; a hollow ring with a small cross in the usual column */
.proof-table .compare :is(.yes, .no) {
  position: relative; width: 28px; height: 28px; border-radius: 50%;
  -webkit-mask: none; mask: none;
}
.proof-table .compare .is-us .yes { background-color: var(--surface); box-shadow: var(--shadow-sm); }
.proof-table .compare .yes::before, .proof-table .compare .no::before { content: ""; position: absolute; inset: 0; }
.proof-table .compare .yes::before {
  background: var(--teal-700);
  -webkit-mask: var(--icon-check) center / 14px no-repeat; mask: var(--icon-check) center / 14px no-repeat;
}
.proof-table .compare .no { background-color: transparent; box-shadow: inset 0 0 0 1.5px var(--rule-2); }
.proof-table .compare .no::before {
  background: var(--fg-3);
  -webkit-mask: var(--icon-clear) center / 11px no-repeat; mask: var(--icon-clear) center / 11px no-repeat;
}
/* the lane rises into place as the table arrives; the rows follow it in turn */
@media (prefers-reduced-motion: no-preference) {
  html.js .proof-table[data-reveal]:not(.is-in) .is-us { translate: 0 24px; opacity: 0; }
  html.js .proof-table[data-reveal] .is-us { transition: translate 0.9s var(--ease-out) 0.15s, opacity 0.6s var(--ease-out) 0.15s; }
  html.js .proof-table[data-reveal]:not(.is-in) tbody tr > :not(.is-us) { opacity: 0; }
  html.js .proof-table[data-reveal] tbody tr > :not(.is-us) { transition: opacity 0.6s var(--ease-out) calc(0.3s + var(--r, 0) * 70ms); }
  .proof-table tbody tr:nth-child(2) { --r: 1; } .proof-table tbody tr:nth-child(3) { --r: 2; }
  .proof-table tbody tr:nth-child(4) { --r: 3; } .proof-table tbody tr:nth-child(5) { --r: 4; }
}
/* ---- 3. clinical workspace: the skin lens (photo left) and the findings mock (render right) zig-zag ---- */
.workspace-head .display-2 { max-width: 15ch; }
.workspace-head .lede { max-width: 50ch; }
.lens, .workspace {
  display: grid;
  overflow: hidden;
  background: var(--card-bg, var(--tint));
  border-radius: var(--r-lg);
  color: var(--ink);
}
.lens { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: clamp(460px, 22rem + 14vw, 680px); }
/* the skin photo keeps its own 4:3 shape and covers the frame from the centre (container units), so a marking
   placed as a % of the photo stays on the same mole at every size */
.lens-visual { border-radius: 0; container-type: size; --reticle-color: var(--surface); --reticle-inset: 24px; }
.lens-stage {
  position: absolute; left: 50%; top: 50%;
  width: max(100cqw, 133.334cqh);
  aspect-ratio: 1152 / 864;
  translate: -50% -50%;
}
.lens-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lens-mark {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1.5px solid var(--surface);
  box-shadow: 0 0 0 1px rgba(var(--photo-ink), 0.08), var(--shadow-sm);
}
.lm-1 { --x: 53%; --y: 27.8%; }
.lm-2 { --x: 52.4%; --y: 40.3%; }
.lm-3 { --x: 23.1%; --y: 53.8%; }
.lm-4 { --x: 38.4%; --y: 63.3%; }
/* the two to review wear the teal ring and a slow ping */
.lm-1, .lm-4 { border: 2px solid var(--teal-400); box-shadow: var(--halo), var(--shadow-sm); }
.lens-chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center;
  min-height: 30px; padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--glass-light);
  border: 1px solid var(--glass-line-strong);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-sm);
  color: var(--ink); font-size: var(--fs-eyebrow); font-weight: var(--fw-ui); white-space: nowrap;
}
.lc-1 { left: calc(53% + 26px); top: 27.8%; translate: 0 -50%; }
.lc-2 { left: calc(38.4% + 26px); top: 63.3%; translate: 0 -50%; }
@media (prefers-reduced-motion: no-preference) {
  .lm-1::after, .lm-4::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--teal-400); animation: ws-ping 2.8s var(--ease-out) infinite; }
  .lm-4::after { animation-delay: 1.2s; }
  /* the markings land after the scan line has passed */
  html.js .lens-visual:not(.is-in) :is(.lens-mark, .lens-chip) { opacity: 0; scale: 0.6; }
  html.js .lens-visual :is(.lens-mark, .lens-chip) { transition: opacity 0.5s var(--ease-out) 1.1s, scale 0.7s var(--ease-spring) 1.1s; }
  html.js .lens-visual :is(.lm-2, .lc-1) { transition-delay: 1.25s; }
  html.js .lens-visual :is(.lm-3) { transition-delay: 1.4s; }
  html.js .lens-visual :is(.lm-4, .lc-2) { transition-delay: 1.55s; }
}
.lens-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--panel-pad) clamp(1.5rem, 0.5rem + 3vw, 4rem);
}
.lens-copy .tag { margin-bottom: var(--space-4); }
.lens-copy .h2 { max-width: 14ch; }
.lens-text { margin-top: var(--space-5); max-width: 38ch; font-size: var(--fs-card); line-height: 1.55; color: var(--ink-2); }
.lens-stat { margin-top: var(--space-9); padding-top: var(--space-6); border-top: 1px solid var(--rule-2); }
.lens-num { color: var(--fg-em); font-size: var(--fs-stat); line-height: 0.95; }
.lens-meter { margin-top: var(--space-4); max-width: 360px; }

.workspace { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--grid-gap); min-height: 600px; }
.ws-side { display: flex; flex-direction: column; padding: var(--panel-pad); }
.ws-bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding-bottom: var(--space-4); margin-bottom: var(--space-7);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
}
.ws-brand { display: flex; align-items: center; gap: 10px; font-weight: var(--fw-ui); color: var(--teal-700); }
.ws-brand::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 4px var(--teal-50); }
.ws-live { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-3); }
.ws-title { font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.015em; margin-bottom: var(--space-5); }
/* findings: a name, a state chip and the value on its reference range. Teal only: "in range" is the filled teal chip,
   "follow up" the outlined one with a hollow dot (no amber) */
.ws-rows { list-style: none; display: grid; border-top: 1px solid var(--line); }
.ws-row { display: grid; gap: var(--space-3); padding: var(--space-5) 0; border-bottom: 1px solid var(--line); }
.ws-row-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.ws-name { display: grid; gap: 2px; min-width: 0; }
.ws-name b { font-family: var(--font-display); font-weight: var(--fw-title); font-size: var(--fs-row); line-height: 1.2; letter-spacing: -0.01em; }
.ws-name span { font-size: var(--fs-small); line-height: 1.4; color: var(--ink-3); }
.ws-state { flex: 0 0 auto; }
.ws-state.is-watch { --st: var(--teal-700); --st-ink: var(--teal-800); --st-bg: var(--surface); box-shadow: inset 0 0 0 1px var(--teal-200); }
.ws-state.is-watch::before { background: transparent; box-shadow: inset 0 0 0 2px var(--st); }
.ws-track {
  --lo: 0.3; --hi: 0.7; --v: 0.5;
  position: relative; height: 6px; margin-block: 6px 2px;
  border-radius: var(--r-pill); background: var(--viz-track, var(--canvas-2));
  container-type: inline-size;
}
.ws-band {
  position: absolute; top: 0; bottom: 0; left: calc(var(--lo) * 100%); width: calc((var(--hi) - var(--lo)) * 100%);
  border-radius: inherit; background: var(--viz-band, var(--teal-100));
}
.ws-dot {
  position: absolute; top: 50%; left: calc(var(--v) * 100%);
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--ws-dot, var(--teal-500)); box-shadow: 0 0 0 3px var(--card-bg, var(--tint));
}
.ws-row:has(.is-watch) { --ws-dot: var(--teal-800); }
.ws-t1 { --lo: 0.16; --hi: 0.56; --v: 0.78; }
.ws-t2 { --lo: 0.24; --hi: 0.7; --v: 0.42; }
.ws-t3 { --lo: 0.1; --hi: 0.5; --v: 0.62; }
.ws-note { margin-top: auto; padding-top: var(--space-6); font-size: var(--fs-small); color: var(--ink-3); }
/* the ranges draw when the workspace reveals: each band opens from its centre, then its dot travels in from the band */
@media (prefers-reduced-motion: no-preference) {
  html.js .workspace[data-reveal]:not(.is-in) .ws-band { scale: 0 1; }
  html.js .workspace[data-reveal]:not(.is-in) .ws-dot { translate: calc(((var(--lo) + var(--hi)) / 2 - var(--v)) * 100cqi) 0; scale: 0.4; opacity: 0; }
  html.js .workspace[data-reveal] .ws-band { transition: scale 0.9s var(--ease-out) 0.3s; }
  html.js .workspace[data-reveal] .ws-dot { transition: translate 1.2s var(--ease-out) 0.6s, scale 0.6s var(--ease-spring) 0.6s, opacity 0.3s linear 0.6s; }
  html.js .workspace[data-reveal] .ws-row:nth-child(2) .ws-band { transition-delay: 0.45s; }
  html.js .workspace[data-reveal] .ws-row:nth-child(2) .ws-dot { transition-delay: 0.75s; }
  html.js .workspace[data-reveal] .ws-row:nth-child(3) .ws-band { transition-delay: 0.6s; }
  html.js .workspace[data-reveal] .ws-row:nth-child(3) .ws-dot { transition-delay: 0.9s; }
}
/* the render keeps its own 4:3 shape and covers the canvas from the centre (container units), so a finding
   placed as a % of the render sits on the same organ at every size */
.ws-canvas { position: relative; min-width: 0; overflow: hidden; container-type: size; background: var(--mist); }
.ws-stage {
  position: absolute; left: 50%; top: 50%;
  width: max(100cqw, 133.334cqh);
  aspect-ratio: 1152 / 864;
  translate: -50% -50%;
}
.ws-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ws-chip {
  position: absolute; left: var(--x); top: var(--y);
  display: inline-flex; align-items: center;
  height: 34px; padding: 0 14px 0 34px;
  translate: -11px -50%;
  border-radius: var(--r-pill);
  background: var(--glass-light);
  border: 1px solid var(--glass-line-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: var(--fs-eyebrow); font-weight: var(--fw-ui);
}
.ws-chip > span { white-space: nowrap; }
/* the target dot sits exactly on the organ the chip names */
.ws-chip i {
  position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle, var(--teal-600) 0 4px, var(--surface) 4.5px);
  box-shadow: var(--halo), var(--shadow-sm);
}
.ws-chip.flip { padding: 0 34px 0 14px; translate: calc(-100% + 11px) -50%; }
.ws-chip.flip i { left: auto; right: 0; }
.ws-heart { --x: 57.5%; --y: 30%; }
.ws-liver { --x: 51%; --y: 46%; }
.ws-spine { --x: 48.6%; --y: 13%; }
@media (prefers-reduced-motion: no-preference) {
  .ws-chip i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--teal-400); animation: ws-ping 2.6s var(--ease-out) infinite; }
  .ws-liver i::after { animation-delay: 0.9s; }
  .ws-spine i::after { animation-delay: 1.7s; }
}
@keyframes ws-ping { from { opacity: 0.8; scale: 1; } to { opacity: 0; scale: 2.4; } }

/* ---- 4. statement band (night): the scanned body glows behind the words ---- */
.statement-band { overflow: hidden; isolation: isolate; padding-block: calc(var(--section-y) * 1.15); }
.statement { position: relative; }
.statement .quote { max-width: 19ch; text-wrap: pretty; }
.statement-by { margin-top: var(--space-8); font-size: var(--fs-small); font-weight: var(--fw-ui); letter-spacing: 0.02em; color: var(--on-night-2); }
/* the white render is turned to a glow: inverted (white ground -> black, teal dots stay teal) and screened onto the
   night, so only the dots light up */
.statement-glow {
  position: absolute; z-index: -1; top: 0; bottom: 0; right: max(0px, calc(50% - 800px));
  width: min(50%, 760px);
  overflow: hidden;
  opacity: 0.72;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(closest-side, var(--ink) 45%, transparent 100%);
  mask-image: radial-gradient(closest-side, var(--ink) 45%, transparent 100%);
}
.statement-glow > img {
  position: absolute; left: 0; top: -10%; width: 100%; height: 120%;
  object-fit: cover; object-position: 50% 35%;
  filter: invert(1) hue-rotate(180deg) saturate(1.3) contrast(1.5) brightness(0.92);
}


/* ---- 5. the centre: Function's test grid as a bento. Every door is title-led: the h3 at the top beside the arrow
       disc, a small teal count under it, the copy at the foot (no giant numerals: the page's one numeric moment is the
       hero strip, plus the lens' 96.4%). One photo door (the lab: its photo runs to the card's own edges), one accent
       door (patients), the partner bodies as a ruled list.
       Rows: 8 + 4 · 4 + 4 + 4 · 4 + 8. Tablet and phone: two tracks, the lab, patients and network across ---- */
.centre-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-5) clamp(2rem, 0.5rem + 4.5vw, 7rem);
  align-items: end;
  margin-bottom: var(--stack);
}
.centre-head .display-2 { max-width: 13ch; }
.centre-head .lede { margin: 0; max-width: 38ch; }
.doors {
  --door-pad: clamp(1.25rem, 0.25rem + 3.75vw, 2.5rem);  /* 20 · 33 · 40 · 40 */
  --door-h: clamp(15rem, 9rem + 9vw, 22rem);              /* 240 · 259 · 317 */
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.door-lab, .door-network { grid-column: span 8; }
.door-nursing, .door-spec, .door-rehab, .door-products, .door-patients { grid-column: span 4; }
.door { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: var(--door-h); padding: var(--door-pad); }
.card.door { color: var(--fg); }
.door-text { flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.door-title { margin-right: 56px; font-size: var(--fs-h3); line-height: 1.08; letter-spacing: -0.016em; }
/* the count, demoted to a small teal tag under the title (Function's "16 biomarkers") */
.door-tag {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: var(--space-3);
  font-size: var(--fs-small); font-weight: var(--fw-ui); line-height: 1.3;
  color: var(--fg-link);
}
.door-tag::before {
  content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%;
  background: var(--door-dot, var(--teal-500)); box-shadow: 0 0 0 3px var(--door-ring, var(--teal-100));
}
.door-copy { margin-top: auto; padding-top: var(--space-7); font-size: var(--fs-card); line-height: 1.5; color: var(--fg-2); max-width: 40ch; }
/* the arrow disc's centre sits on the title's first line */
.door > .arrow-badge { position: absolute; z-index: 2; right: var(--door-pad); top: calc(var(--door-pad) - 3px); }

/* the lab: the same tint card, split. Copy on the inner half; the photo fills the outer half to the card's own edges
   (Neko's scan cards), cropped tight onto the bench so it reads as one moment, not a staged room */
.door-split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  padding: 0; overflow: hidden; isolation: isolate;
}
.door-split > .door-text { grid-column: 1; grid-row: 1; padding: var(--door-pad); }
.door-split .door-title { margin-right: 0; }
.door-shot { grid-column: 2; grid-row: 1; position: relative; overflow: hidden; min-height: 100%; }
.door-shot > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transform: scale(var(--zoom, 1)); transform-origin: var(--fx, 50%) var(--fy, 50%);
  transition: transform 1.2s var(--ease-out);
}
.door-lab .door-shot > img { --pos: 0% 50%; --zoom: 1.85; --fx: 4.4%; --fy: 67.5%; }
.door-split > .arrow-badge { --badge-bg: var(--surface); box-shadow: var(--shadow-sm); }
@media (hover: hover) { .door-split:hover .door-shot > img { transform: scale(calc(var(--zoom, 1) * 1.04)); } }
.door-split:focus-visible .door-shot > img { transform: scale(calc(var(--zoom, 1) * 1.04)); }
/* the photo settles from a slight zoom as the bento arrives */
@media (prefers-reduced-motion: no-preference) {
  html.js .doors:not(.is-in) .door-shot > img { scale: 1.1; }
  html.js .doors .door-shot > img { transition: transform 1.2s var(--ease-out), scale 1.4s var(--ease-out) calc(var(--reveal-delay, 0ms) + 120ms); }
}

/* patients: the one accent door. Its copy follows the tag; the MDC mark, whole and quiet, stands at its foot */
.door-patients {
  --card-bg: var(--accent); --card-fg: var(--on-accent);
  --fg: var(--on-accent); --fg-2: var(--on-accent); --fg-link: var(--on-accent);
  --door-dot: var(--on-accent); --door-ring: var(--line-night-2);
  overflow: hidden; isolation: isolate;
}
.door-patients > .door-text { position: relative; z-index: 1; }
.door-patients .door-copy { margin-top: var(--space-5); padding-top: 0; max-width: 30ch; }
.door-mark {
  position: absolute; z-index: 0; left: var(--door-pad); bottom: var(--door-pad);
  width: min(56%, 220px); height: auto;
  color: var(--teal-700); --mark-dot: var(--teal-300);
  pointer-events: none;
  transition: color var(--dur-3) var(--ease-out);
}
@media (hover: hover) { a.door-patients.card-link:hover { background-color: var(--accent-hover); } }
a.door-patients.card-link:focus-visible { background-color: var(--accent-hover); }
@media (hover: hover) { a.door-patients:hover .door-mark { color: var(--teal-800); } }

/* the original network: the title, count and copy, then the eight bodies as a ruled list of 56px rows in two columns */
.door-network { min-height: 0; gap: var(--space-7); }
.door-network .door-title { margin-right: 0; }
.door-network .door-copy { margin-top: var(--space-3); padding-top: 0; }
.net-list {
  list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start;
  column-gap: var(--space-7);
}
.net-list > li { position: relative; display: flex; min-width: 0; border-bottom: 1px solid var(--rule-2); }
.net-list > li:nth-child(-n+2) { border-top: 1px solid var(--rule-2); }
.net-link {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 56px; padding-block: var(--space-2);
  font-size: var(--fs-card); font-weight: var(--fw-ui); line-height: 1.3;
  color: var(--fg);
  transition: color var(--dur-2) var(--ease-out);
}
/* the drawn ↗ at the size of the row's text */
.net-link::after {
  content: ""; flex: 0 0 auto; width: 18px; height: 18px;
  background: var(--fg-link);
  -webkit-mask: var(--icon-external) center / 18px no-repeat; mask: var(--icon-external) center / 18px no-repeat;
  transition: transform var(--dur-3) var(--ease-spring);
}
.net-link-in { color: var(--fg-link); }
.net-link-in::after { -webkit-mask-image: var(--icon-arrow); mask-image: var(--icon-arrow); }
/* a teal rule draws under the row you point at (the wellness rows do the same) */
.net-list > li::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--fg-mark); scale: 0 1; transform-origin: left center;
  transition: scale var(--dur-4) var(--ease-out); pointer-events: none;
}
@media (hover: hover) {
  .net-link:hover { color: var(--teal-800); }
  .net-link:hover::after { transform: translate(2px, -2px); }
  .net-link-in:hover::after { transform: translateX(3px); }
  .net-list > li:hover::after { scale: 1 1; }
}
.net-list > li:focus-within::after { scale: 1 1; }

@media (max-width: 980px) {
  .centre-head { grid-template-columns: 1fr; }
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doors > .door { grid-column: span 1; }
  .doors > :is(.door-lab, .door-patients, .door-network) { grid-column: 1 / -1; }
  .door-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  /* patients runs across as a short accent band: the mark sits at its right end, clear of the copy */
  .door-patients { min-height: 0; }
  .door-mark { left: auto; right: var(--door-pad); width: min(34%, 200px); }
}
@media (max-width: 640px) {
  /* phone: compact two-up tiles. The count and the arrow share the top row, then the title, then the copy */
  .doors { gap: var(--space-3); }
  .door { --door-pad: var(--space-4); min-height: 0; }
  .door-tag { order: -1; margin: 0 0 var(--space-4); min-height: 32px; padding-right: 40px; }
  .door-title { margin-right: 0; font-size: var(--fs-title); line-height: 1.15; }
  .door-copy { padding-top: var(--space-3); font-size: var(--fs-small); line-height: 1.45; }
  .door > .arrow-badge { width: 32px; height: 32px; top: var(--door-pad); }
  .door > .arrow-badge .icon-arrow { width: 14px; height: 14px; }
  /* the lab stacks: the photo across the top of the card, then its tag, title and copy */
  .door-split { grid-template-columns: minmax(0, 1fr); }
  .door-split > .door-shot { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 9; min-height: 0; }
  .door-split > .door-text { grid-row: 2; }
  .door-split > .door-text .door-tag { padding-right: 0; }
  .door-split > .arrow-badge { top: var(--space-3); right: var(--space-3); }
  .door-lab .door-shot > img { --pos: 50% 50%; --zoom: 1.75; --fx: 4.7%; --fy: 70%; }
  .door-tag-x { display: none; }   /* "6 nursing fields" → "6 fields": the tag stays on one line beside the arrow */
  .door-patients .door-tag, .door-network .door-tag { padding-right: 0; }
  .door-patients .door-tag { padding-right: 40px; }
  .door-mark { width: 84px; }
  .door-patients .door-copy { margin-top: var(--space-3); max-width: calc(100% - 100px); }
  .door-network { gap: var(--space-5); }
  .net-list { column-gap: var(--space-4); }
  .net-link { min-height: 52px; gap: var(--space-2); font-size: var(--fs-small); }
  .net-link::after { width: 16px; height: 16px; -webkit-mask-size: 16px; mask-size: 16px; }
}

/* ---- 6. wellness doors: the head and four big ruled rows on the left, one tall photo in the warm grade beside them ---- */
.aud {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "head photo" "list photo";
  gap: 0 clamp(2rem, 0.5rem + 4vw, 6rem);
}
.aud-head { grid-area: head; margin-bottom: var(--stack); }
.aud-head .display-2 { max-width: 11ch; }
.aud-head .lede { margin-top: var(--space-5); max-width: 40ch; }
.aud-photo { grid-area: photo; min-height: 100%; }
.aud-photo > img { object-position: 30% 50%; }
.aud-main { grid-area: list; display: flex; flex-direction: column; min-width: 0; }
.aud-list { list-style: none; display: grid; border-top: 1px solid var(--line-2); }
.aud-list > li { display: flex; min-width: 0; }
.aud-row {
  position: relative; flex: 1 1 auto;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: var(--space-3) clamp(1rem, 0.5rem + 1.5vw, 2rem);
  padding: clamp(1.25rem, 0.8rem + 1.2vw, 2rem) 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  --badge-bg: var(--tint);
}
/* a teal rule draws under the row you point at */
.aud-row::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--fg-mark);
  scale: 0 1; transform-origin: left center;
  transition: scale var(--dur-4) var(--ease-out);
}
@media (hover: hover) {
  .aud-row:hover::after { scale: 1 1; }
  .aud-row:hover .aud-text b { color: var(--teal-800); }
}
.aud-row:focus-visible::after { scale: 1 1; }
.aud-no { align-self: start; padding-top: 0.55em; font-size: var(--fs-small); font-weight: var(--fw-ui); color: var(--fg-link); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.aud-text { display: grid; gap: var(--space-2); min-width: 0; }
.aud-text b {
  font-family: var(--font-display); font-weight: var(--fw-display);
  font-size: var(--fs-h2); line-height: 1; letter-spacing: -0.022em;
  transition: color var(--dur-2) var(--ease-out);
}
.aud-text span { max-width: 44ch; font-size: var(--fs-card); line-height: 1.5; color: var(--fg-2); }
.aud-all { margin-top: var(--space-5); align-self: flex-start; }

/* ---- 7. closing photo band ---- */
.cta-band {
  min-height: clamp(460px, 26rem + 14vw, 680px);
  padding: var(--panel-pad);
  border-radius: var(--r-lg);
}
.cta-media > img { object-position: 50% 30%; }
.cta-content .display-2 { max-width: 12ch; font-size: var(--fs-display-page); letter-spacing: var(--tracking-display); }
.cta-content .lede { max-width: 40ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
/* the copy rises in, line by line, as the band's curtain opens. It is driven by the band's own reveal, not by a
   second observer: an observer nested inside a clip reveal can miss its moment on a fast scroll (the clip hides it
   while it crosses the screen) and leave the band without its words */
@media (prefers-reduced-motion: no-preference) {
  html.js .cta-band:not(.is-in) .cta-content > * { opacity: 0; translate: 0 var(--reveal-rise); }
  html.js .cta-band .cta-content > * {
    transition: opacity var(--dur-4) var(--ease-out) var(--cta-d, 0.45s), translate var(--dur-4) var(--ease-out) var(--cta-d, 0.45s);
  }
  .cta-content > :nth-child(2) { --cta-d: 0.54s; }
  .cta-content > :nth-child(3) { --cta-d: 0.63s; }
}
@media print { .cta-content > * { opacity: 1 !important; translate: none !important; } }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .lens-copy { padding-inline: var(--panel-pad); }
}
@media (max-width: 980px) {
  .statement { text-align: center; }
  .statement .quote { margin-inline: auto; text-wrap: balance; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar-media { aspect-ratio: 4 / 3; }
  /* who: the copy leads, the bento follows (one tall crop beside two small ones) */
  .who { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto repeat(2, clamp(11rem, 4rem + 24vw, 17rem)); }
  .who-copy { grid-column: 1 / -1; grid-row: 1; justify-content: flex-start; gap: var(--space-6); padding-left: 0; margin-bottom: var(--space-6); }
  .who-copy .display-2 { max-width: 16ch; margin-top: 0; }
  .who-care { grid-column: 1; grid-row: 2 / 4; }
  .who-doctor { grid-column: 2; grid-row: 2; }
  .who-imaging { grid-column: 2; grid-row: 3; }
  .who-doctor > img { object-position: 60% 30%; --zoom: 1.3; --fx: 58%; --fy: 28%; }
  .who-imaging > img { --zoom: 1.7; }
  /* proof: the statement, then the table across */
  .proof { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "table"; }
  .proof-copy { justify-content: flex-start; gap: var(--space-6); }
  .proof-display { max-width: 13ch; }
  /* the lens stacks: the whole skin photo across the card, then the copy */
  .lens { grid-template-columns: 1fr; min-height: 0; }
  .lens-visual { aspect-ratio: 16 / 10; }
  .lens-stat { margin-top: var(--space-7); }
  .workspace { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 0; }
  .statement-glow { width: 80%; right: 50%; translate: 50% 0; opacity: 0.3; }
  /* wellness: head, photo, rows */
  .aud { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "head" "photo" "list"; }
  .aud-head .display-2 { max-width: 16ch; }
  .aud-photo { min-height: 0; aspect-ratio: 5 / 4; margin-bottom: var(--space-6); }
  .aud-photo > img { object-position: 0% 50%; }
}
@media (min-width: 641px) and (max-width: 980px) {
  /* the wider 4:3 plate would show the patient who reappears in the wellness photo: crop onto the x-ray screen */
  .pillar-imaging > img { transform: scale(1.75); transform-origin: 94% 46%; }
  /* a tall, narrow canvas: the heart's chip opens to the left like the others, so it never passes the right edge */
  .ws-heart { padding: 0 34px 0 14px; translate: calc(-100% + 11px) -50%; }
  .ws-heart i { left: auto; right: 0; }
  /* the lens copy uses the card's width: the headline runs across in two lines, the note and the 96.4% sit side by side */
  .lens-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-8); align-items: start; }
  .lens-copy > :is(.tag, .h2) { grid-column: 1 / -1; }
  .lens-copy .h2 { max-width: 22ch; }
  .lens-text { grid-column: 1; margin-top: var(--space-7); padding-top: var(--space-6); border-top: 1px solid var(--rule-2); }
  .lens-stat { grid-column: 2; margin-top: var(--space-7); }
  .lens-num { font-size: clamp(5rem, 2rem + 6vw, 6.5rem); }
}
@media (max-width: 640px) {
  .ticker-band li { font-size: var(--fs-title); }
  /* one alignment on a phone: every head, the statement included, reads from the left edge */
  :is(.pillars-head, .workspace-head).center { text-align: left; }
  .pillars-head .eyebrow { justify-content: flex-start; }
  :is(.pillars-head, .workspace-head) :is(.display-2, .lede) { margin-inline: 0; }
  .statement { text-align: left; }
  .statement .quote { margin-inline: 0; }
  /* phones: the four rooms are one swipeable row of plates (the next one peeks in), not a tall stack */
  .pillars {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(80%, 300px);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: var(--space-1) var(--gutter) var(--space-3);
    scroll-padding-inline: var(--gutter);
  }
  .pillars::-webkit-scrollbar { display: none; }
  .pillars > li { scroll-snap-align: start; }
  .pillars-controls { margin-top: var(--space-3); }
  .pillar-media { aspect-ratio: 4 / 5; }
  .pillar-text { font-size: var(--fs-small); }
  /* who: the tall crop across the screen, the two small ones side by side under it */
  .who { grid-template-rows: auto; gap: var(--space-3); }
  .who-care { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .who-doctor, .who-imaging { grid-column: auto; grid-row: auto; aspect-ratio: 1; }
  .who-care > img { object-position: 54% 50%; --zoom: 1.9; --fx: 50%; --fy: 98%; }
  .photo-tag { left: var(--space-3); top: var(--space-3); }
  .proof-table .compare { font-size: var(--fs-small); }
  .proof-table .compare tbody th { height: 64px; }   /* two-line labels on a phone: every row on one 64px line */
  .proof-table .compare .is-us { width: 24%; }
  .proof-table .compare th:last-child, .proof-table .compare td:last-child { width: 22%; }
  .proof-table .compare thead th:last-child { font-size: var(--fs-eyebrow); }
  .proof-table .compare :is(.yes, .no) { width: 24px; height: 24px; }
  .proof-mark { width: 52px; }
  /* phones: both panels stack; the skin photo keeps its 4:3 frame, the render a square */
  .lens, .workspace { grid-template-columns: 1fr; }
  .lens-visual { aspect-ratio: 4 / 3; }
  .lens-copy { padding: var(--panel-pad); }
  .lens-copy .h2 { max-width: none; }
  .lens-mark { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
  .lc-1 { left: calc(53% + 20px); }
  .lc-2 { left: calc(38.4% + 20px); }
  .ws-canvas { aspect-ratio: 1 / 1; }
  .ws-bar { margin-bottom: var(--space-6); }
  .aud-text b { font-size: var(--fs-h3); }
  .aud-text span { font-size: var(--fs-small); }
  .statement-glow { width: 110%; opacity: 0.26; }
  .cta-band { min-height: 520px; }
}
