/* BioVault homepage styles (index.html). Loaded after site.css, which supplies the tokens,
   the shared header and footer, and the placeholder chip. Nothing here changes any other page.
   Calm, large, one idea per section. Light and dark come from the site's CSS variables. */

body.v2 {
  --v2-radius: 28px;
  --v2-gap: 16px;
  --v2-pad: clamp(64px, 5.4vw, 76px);
  --v2-gutter: 24px;
  --v2-hdr: var(--header-h, 64px);
  background: var(--bg);
}

.v2-wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--v2-gutter); }

/* ---------- Type ---------- */
.v2 h1, .v2 h2, .v2 h3, .v2 h4 { text-wrap: balance; }
.v2-hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 17em;
  margin: 0 auto;
  text-align: center;
}
.v2-head h2, .v2-cta h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 auto;
  max-width: 24ch;
}
.v2-head h2.v2-h--long { font-size: clamp(28px, 3.6vw, 46px); max-width: 28ch; }
.v2-sub {
  font-size: clamp(19px, 1.6vw, 21px);
  line-height: 1.4;
  color: var(--text-muted);
  max-width: 40ch;
  margin: 14px auto 0;
  text-align: center;
  text-wrap: pretty;
}

/* the one small label where the headline does not name the section */
.v2-eyebrow { font-size: 17px; font-weight: 600; color: var(--text-muted); margin: 0 0 12px; letter-spacing: -0.005em; }

/* ---------- Buttons and text links ---------- */
.v2-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; justify-content: center; margin-top: 24px; }
.v2-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7em 1.6em;
  border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--on-accent);
  font-family: inherit; font-size: 17px; font-weight: 500; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: opacity 200ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease);
}
.v2-btn:hover { opacity: .88; text-decoration: none; }
.v2-btn--ghost { background: transparent; color: var(--accent); }
.v2-btn--ghost:hover { opacity: 1; background: var(--accent); color: var(--on-accent); }
.v2-btn.is-unset { opacity: .5; pointer-events: none; }

.v2-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 32px; margin: 8px 0 0; }
.v2-links:empty { display: none; }
.v2-links--after { margin-top: 12px; }
.v2-learn, .v2-link {
  appearance: none; background: none; border: 0; padding: 0 2px;
  min-height: 44px; display: inline-flex; align-items: center; gap: .35em;
  font-family: inherit; font-size: clamp(18px, 1.5vw, 21px); font-weight: 500; line-height: 1.2;
  color: var(--accent); cursor: pointer; text-decoration: none;
}
.v2-learn:hover, .v2-link:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.v2-learn__plus { font-size: 1.2em; font-weight: 400; line-height: 1; transform: translateY(-.02em); }
.v2-link.is-unset { display: none; }
/* a sentence that ends with its own "Learn more +" */
.v2-inline .v2-learn { min-height: 0; padding: 0 2px; font-size: inherit; vertical-align: baseline; display: inline; white-space: nowrap; }

/* ---------- Sections ---------- */
.v2-sec { padding-block: var(--v2-pad); background: var(--bg); --v2-tile: var(--surface); }
/* Flow: "alt" sections no longer switch to a band colour; the page reads as one continuous background. */
.v2-sec--alt { background: var(--bg); --v2-tile: var(--surface); }
.v2-head { text-align: center; margin: 0 auto clamp(24px, 2.8vw, 40px); max-width: 900px; }
.v2-sec--compact { padding-block: clamp(48px, 5vw, 64px); }
.v2-sec--compact .v2-head { margin-bottom: clamp(28px, 3vw, 40px); }

/* Hero */
.v2-hero { padding: clamp(28px, 4vw, 52px) 0 0; text-align: center; overflow: hidden; }
.v2-hero .v2-sub { margin-top: 18px; }
.v2-hero__art { width: min(520px, 100%); margin: clamp(16px, 2.4vw, 28px) auto 0; }
.v2-hero__art .visual__label,
.v2-story .visual__label,
.v2-panel .visual__label {
  position: static; display: block; margin: 8px auto 0; padding: 0; width: auto;
  background: none; border: 0; border-radius: 0;
  font-family: inherit; font-size: 12px; letter-spacing: .02em; text-transform: none; color: var(--text-muted); text-align: center;
}
.v2-story .visual__label, .v2-panel .visual__label { display: none; }

/* Backed-by strip */
.v2-strip { padding: clamp(12px, 2vw, 24px) 0 clamp(12px, 2vw, 24px); text-align: center; }
.v2-strip__label {
  font-size: 14px; font-weight: 500; letter-spacing: .01em; line-height: 1.3;
  color: var(--text-muted); margin: 0 0 10px; text-transform: none;
}
.v2-strip__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 32px; }
.v2-strip .partner { padding: 6px 14px; border-radius: 12px; }
.v2-strip .partner--horizontal img { height: 34px; }

/* ---------- Tiles ---------- */
.v2-tile {
  background: var(--v2-tile);
  border-radius: var(--v2-radius);
  padding: var(--card-pad, 32px);
  position: relative; overflow: hidden;
  min-width: 0;
}
.v2-tile h3 { margin: 0; font-size: clamp(22px, 2vw, 26px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.v2-tile p { margin: 0; }
.v2-tile__line { color: var(--text-muted); font-size: 17px; line-height: 1.45; max-width: 40ch; text-wrap: pretty; }
.v2-tile__src { color: var(--text-muted); font-size: 13px; line-height: 1.4; margin-top: 12px !important; opacity: .9; }
.v2-ico { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; display: block; color: var(--text-muted); }

/* The problem */
.v2-bento--problem { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--v2-gap); }
.v2-stat { display: flex; flex-direction: column; justify-content: flex-end; }
.v2-stat--big { grid-column: span 7; grid-row: span 2; min-height: 300px; }
.v2-stat--small { grid-column: span 5; min-height: 0; }
.v2-stat__value {
  display: block; font-weight: 600; letter-spacing: -0.045em; line-height: 1;
  font-size: clamp(40px, 3.8vw, 48px); margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.v2-stat--big .v2-stat__value { font-size: clamp(56px, 7vw, 96px); margin-bottom: 16px; }
.v2-stat--big .v2-tile__line { font-size: clamp(18px, 1.6vw, 21px); max-width: 30ch; }

/* Ice and fridges fall short */
.v2-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--v2-gap); }
.v2-opt { min-height: 0; display: flex; flex-direction: column; gap: 8px; justify-content: flex-start; padding: clamp(22px, 2.2vw, 28px); }
.v2-opt h3 { font-size: clamp(21px, 1.9vw, 24px); }
.v2-opt .v2-tile__line { font-size: 16px; }
.v2-opt--us { background: var(--band, var(--text)); color: var(--on-band, var(--bg)); }
.v2-opt--us .v2-tile__line { color: color-mix(in srgb, var(--bg) 78%, var(--text)); }

/* How it works: the scroll story */
.v2-story { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.v2-story__stage { align-self: stretch; }
.v2-story__sticky {
  position: sticky; top: calc(var(--v2-hdr) + 24px);
  height: calc(100vh - var(--v2-hdr) - 48px); max-height: 520px; min-height: 340px;
  display: flex; align-items: center; justify-content: center;
}
.v2-story__art { width: 100%; max-height: 100%; }
.v2-story__art .visual__art { display: flex; justify-content: center; max-height: 100%; }
.v2-story__art svg { width: 100%; height: auto; max-height: 100%; }
.v2-steps { list-style: none; margin: 0; padding: 0; counter-reset: v2step; }
.v2-step { min-height: min(20vh, 170px); display: flex; flex-direction: column; justify-content: center; padding: 12px 0; }
.v2-step:first-child { min-height: min(18vh, 150px); justify-content: flex-start; padding-top: 0; }
.v2-step:last-child { min-height: min(18vh, 150px); justify-content: flex-start; padding-top: 0; }
.v2-step__n { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); margin: 0 0 8px; letter-spacing: .02em; }
.v2-step h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 10px; }
.v2-step p.v2-step__text { color: var(--text-muted); font-size: 18px; line-height: 1.45; margin: 0; max-width: 34ch; }

/* The case state per step. Cartridge fades in for the steps where it works, glows, then slides out to recharge. */
.v2-story .il-slide { transition: transform 900ms var(--ease), opacity 600ms var(--ease), filter 600ms var(--ease); }
.v2-story[data-step="1"] .il-slide { opacity: .5; }
.v2-story[data-step="2"] .il-slide,
.v2-story[data-step="3"] .il-slide,
.v2-story[data-step="4"] .il-slide { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--accent) 60%, transparent)); }
.v2-story[data-step="5"] .il-slide,
.v2-story[data-step="6"] .il-slide { transform: translate(var(--il-dx, 0px), var(--il-dy, 0px)); }
.v2-story[data-step="5"] .il-slide { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent-warm) 70%, transparent)); }

/* Steps stay fully visible; the active step is marked by the picture, not by dimming the text. */

/* Who it is for */
.v2-bento--who { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; grid-auto-rows: minmax(0, auto); }
.v2-who { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; align-items: center; column-gap: 14px; row-gap: 10px; grid-column: span 4; padding: clamp(22px, 2.2vw, 28px); }
.v2-who .v2-ico { grid-column: 1; grid-row: 1; }
.v2-who h3 { grid-column: 2; grid-row: 1; margin: 0; }
.v2-who .v2-tile__line { grid-column: 1 / -1; grid-row: 2; max-width: none; }
.v2-who--travel { grid-column: span 5; }
.v2-who--travel h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.03em; line-height: 1.08; }
.v2-who--travel .v2-tile__line { font-size: 18px; }
.v2-who--parents { grid-column: span 4; }
.v2-who--camp { grid-column: span 3; }
.v2-who--outage { grid-column: span 3; }
.v2-who--humanitarian { grid-column: span 4; }
.v2-who--clinic { grid-column: span 5; }
.v2-who--clinic h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.03em; line-height: 1.08; }

/* Products */
.v2-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.v2-panel { --v2-radius: 32px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(28px, 3vw, 40px) clamp(24px, 3vw, 40px) clamp(16px, 2vw, 24px); }
.v2-panel__kind { color: var(--text-muted); font-size: 14px; font-weight: 500; margin: 0 0 6px; }
.v2-panel h3 { font-size: clamp(30px, 3.2vw, 40px); letter-spacing: -0.03em; }
.v2-panel .v2-tile__line { margin: 10px auto 0; max-width: 34ch; font-size: 17px; min-height: 5.8em; }
.v2-panel .v2-links { margin-top: 10px; }
.v2-panel__art { width: 100%; height: 170px; margin-top: 4px; display: flex; align-items: center; justify-content: center; }
.v2-panel__art .visual__art { height: 100%; }
.v2-panel__art svg { height: 100%; width: auto; max-width: 100%; margin-inline: auto; }

/* Impact */
.v2-impact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.v2-pillar { min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.v2-pillar .v2-ico { width: 36px; height: 36px; margin-bottom: auto; }
.v2-pillar h3 { font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -0.03em; line-height: 1.08; margin-top: 20px; }
.v2-pillar .v2-tile__line { margin-top: 10px; font-size: 17px; }
.v2-pillar__metric { margin-top: 18px !important; font-size: 15px; color: var(--text); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.v2-pillar__metric span:first-child { color: var(--text-muted); }
.v2-note-line { text-align: center; font-size: 14px; color: var(--text-muted); margin: 16px 0 0; }
.v2 .chip { font-size: 11px; padding: .1em .55em; }

/* Team */
.v2-team { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: center; gap: clamp(24px, 5vw, 64px); flex-wrap: nowrap; }
.v2-member { text-align: center; flex: 0 1 200px; min-width: 0; }
.v2-member__photo { display: block; width: clamp(88px, 8vw, 104px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 0 auto 12px; background: var(--surface); }
.v2-member__photo img { width: 100%; height: 100%; object-fit: cover; }
.v2-member strong { display: block; font-size: clamp(15px, 1.6vw, 20px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.v2-member span.v2-member__role { display: block; font-size: clamp(14px, 1.4vw, 17px); color: var(--text-muted); margin-top: 2px; }

/* Email us */
/* the closing call to action: a soft rounded panel on the page, not a full-width band */
.v2-cta { background: var(--bg); padding-block: clamp(24px, 3vw, 48px) clamp(48px, 5vw, 72px); text-align: center; }
.v2-cta > .v2-wrap { width: calc(100% - 2 * var(--v2-gutter)); max-width: 1112px; background: var(--surface); border-radius: 32px; padding-block: clamp(40px, 4.4vw, 64px); }
.v2-cta .v2-sub { margin-top: 12px; }
.v2-cta .v2-actions { margin-top: 20px; }

/* ---------- Overlay sheet ---------- */
html.v2-lock { overflow: hidden; }
.v2-sheet { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.v2-sheet[hidden] { display: none !important; }
.v2-sheet__backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .42);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 300ms var(--ease);
}
.v2-sheet.is-open .v2-sheet__backdrop { opacity: 1; }
.v2-sheet__panel {
  position: relative; width: min(780px, 100%); max-height: min(86vh, 900px);
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
  opacity: 0; transform: translateY(24px) scale(.98);
  transition: opacity 300ms var(--ease), transform 400ms var(--ease);
  outline: none;
}
.v2-sheet.is-open .v2-sheet__panel { opacity: 1; transform: none; }
.v2-sheet__close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface); color: var(--text-muted);
  display: grid; place-items: center;
  transition: color 200ms var(--ease), background-color 200ms var(--ease);
}
.v2-sheet__close:hover { color: var(--text); background: var(--border); }
.v2-sheet__close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.v2-sheet__scroll { overflow-y: auto; overscroll-behavior: contain; padding: clamp(32px, 5vw, 56px); padding-top: clamp(40px, 5vw, 60px); -webkit-overflow-scrolling: touch; }
.v2-sheet__eyebrow { font-size: 14px; color: var(--text-muted); margin: 0 0 8px; padding-right: 48px; }
.v2-sheet__title { font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 24px; padding-right: 40px; max-width: 22ch; }
.v2-sheet__lead { font-size: 19px; line-height: 1.5; color: var(--text); max-width: 60ch; margin: 0 0 8px; }
.v2-sheet h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 10px; }
.v2-sheet h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 8px; }
.v2-sheet p { max-width: 60ch; }
.v2-sheet__section { margin-top: 36px; }
.v2-sheet__section-h { font-size: 14px; font-weight: 500; color: var(--text-muted); margin: 0 0 4px; }
.v2-item { padding: 28px 0; border-top: 1px solid var(--border); }
.v2-item:first-of-type { margin-top: 20px; }
.v2-item > p { margin: 0 0 12px; font-size: 17px; line-height: 1.55; }
.v2-item > p.v2-item__body { color: var(--text); }
.v2-item__stat { font-size: 34px !important; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05 !important; margin: 0 0 8px !important; }
.v2-item__stat + p { color: var(--text-muted); }
.v2-item__src { font-size: 13px !important; color: var(--text-muted); margin-bottom: 14px !important; }
.v2-item ul { margin: 0; padding-left: 1.2em; max-width: 60ch; }
/* deeper analysis (js/v2.js bodyAndPoints), kept quiet: the evidence as plain numbers in a row, each with its line
   and source, then two ordinary paragraphs (what the evidence says, what BioVault changes); no boxes, no headings */
.v2-ev { margin: 14px 0 0; }
.v2-ev__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px 28px; }
.v2-ev__stat p { margin: 0; }
.v2-ev__value { color: var(--accent); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.v2-ev__line { margin-top: 4px !important; color: var(--ink); font-size: 14px; line-height: 1.4; }
.v2-ev__src { margin-top: 4px !important; color: var(--ink-muted); font-size: 12px; line-height: 1.35; }
.v2-ev__src a { color: inherit; }
.v2-ev__part { margin: 14px 0 0 !important; max-width: 60ch; color: var(--ink); }
.v2-ev__part + .v2-item__body, .v2-ev + .v2-item__body { margin-top: 14px; }
.v2-ev ~ ul { margin-top: 12px; }
.v2-sources__note { margin: 6px 0 0; color: var(--ink-muted); font-size: 14px; line-height: 1.5; max-width: 62ch; }
.v2-item li { margin: 0 0 10px; line-height: 1.55; font-size: 16px; color: var(--text-muted); }
.v2-item li::marker { color: var(--gray-2); }
.v2-item__n { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); margin: 0 0 6px !important; }
.v2-item__more { display: inline-block; margin-top: 4px; font-size: 16px; }
.v2-uses { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0 !important; padding: 0 !important; }
.v2-uses li { margin: 0; padding: .3em .85em; border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; line-height: 1.4; }
.v2-uses li small { color: var(--text-muted); font-size: 12px; margin-left: .4em; }
.v2-metrics { margin: 14px 0 0; padding: 0; }
.v2-metrics div { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.v2-metrics dt { color: var(--text-muted); font-size: 15px; }
.v2-metrics dd { margin: 0; font-weight: 600; }
.v2-sheet__foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.v2-sheet__foot a { font-size: 18px; font-weight: 500; text-decoration: none; }
.v2-sheet__foot a:hover { text-decoration: underline; }
.v2-sheet__note { color: var(--text-muted); font-size: 14px; margin-top: 20px; }

/* ---------- Scroll reveal ---------- */
/* Retired: .v2-rv content is fully visible on load, with no fade or rise. */
.v2-rv, html.v2-js .v2-rv { opacity: 1; transform: none; transition: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .v2-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-opt { min-height: 168px; }
}
@media (max-width: 900px) {
  .v2-stat--big { grid-column: span 12; grid-row: auto; min-height: 300px; }
  .v2-stat--small { grid-column: span 6; min-height: 0; }
  .v2-who, .v2-who--travel, .v2-who--parents, .v2-who--camp, .v2-who--outage, .v2-who--humanitarian, .v2-who--clinic { grid-column: span 6; }
  .v2-impact { grid-template-columns: minmax(0, 1fr); }
  .v2-pillar { min-height: 0; flex-direction: column; }
  .v2-pillar h3 { margin-top: 20px; }
  .v2-pillar .v2-ico { margin-bottom: 0; }
  .v2-panels { grid-template-columns: minmax(0, 1fr); }
  .v2-panel .v2-tile__line { min-height: 0; }

  /* the story: picture pinned on top, steps scroll beneath it */
  .v2-story { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .v2-story__stage { position: sticky; top: var(--v2-hdr); z-index: 3; background: var(--bg); margin-inline: calc(var(--v2-gutter) * -1); padding-inline: var(--v2-gutter); }
  .v2-story__sticky { position: static; height: auto; min-height: 0; max-height: none; padding: 8px 0 12px; }
  .v2-story__art { max-width: min(480px, 100%); margin-inline: auto; }
  .v2-story__art svg { max-height: 30vh; }
  .v2-step, .v2-step:first-child, .v2-step:last-child { min-height: 0; justify-content: center; padding: 22px 0; text-align: left; }
  .v2-step h3 { font-size: 24px; margin-bottom: 8px; }
  .v2-step p.v2-step__text { font-size: 16px; }
  .v2-panel__art { height: 150px; }
  .v2-panel .v2-tile__line { min-height: 0; }
}
@media (max-width: 640px) {
  body.v2 { --v2-pad: 48px; --v2-gutter: 20px; --v2-radius: 24px; }
  .v2-head h2 { font-size: 31px; }
  .v2-head h2.v2-h--long { font-size: 27px; }
  .v2-sub { font-size: 18px; margin-top: 10px; }
  .v2-tile { padding: var(--card-pad, 24px); }
  .v2-stat__value { font-size: 36px; margin-bottom: 6px; }
  .v2-stat--big .v2-stat__value { font-size: 52px; }
  .v2-pillar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 8px; }
  .v2-pillar .v2-ico { grid-column: 1; grid-row: 1; margin: 0; }
  .v2-pillar h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: 24px; }
  .v2-pillar .v2-tile__line, .v2-pillar__metric { grid-column: 1 / -1; margin-top: 0 !important; }
  .v2-panel { padding: 24px 20px 12px; }
  .v2-hero { padding-top: 24px; }
  .v2-stat--small, .v2-who, .v2-who--travel, .v2-who--parents, .v2-who--camp, .v2-who--outage, .v2-who--humanitarian, .v2-who--clinic { grid-column: span 12; }
  .v2-stat--big { min-height: 0; }
  .v2-stat--small { min-height: 0; }
  .v2-who { min-height: 0; }
  .v2-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .v2-opt { min-height: 0; padding: 18px; }
  .v2-opt h3 { font-size: 19px; }
  .v2-opt .v2-tile__line { font-size: 15px; }
  .v2-team { gap: 12px; }
  .v2-member { flex: 1 1 0; }
  .v2-member__photo { width: min(100%, 96px); margin-bottom: 10px; }
  .v2-head { margin-bottom: 24px; }
  .v2-links { gap: 0 24px; margin-top: 2px; }

  /* A row of tiles becomes a swipe strip: one card and a peek of the next. js/v2.js (V2.snap) gives the strip
     a keyboard stop and a name while it really scrolls. --snap-w sets the card width. */
  .v2-snap {
    display: flex !important; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--v2-gutter) * -1); padding-inline: var(--v2-gutter); scroll-padding-inline: var(--v2-gutter);
  }
  .v2-snap::-webkit-scrollbar { display: none; }
  .v2-snap:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; }
  .v2-snap > * { flex: 0 0 min(var(--snap-w, 82%), 340px); scroll-snap-align: start; min-width: 0; }

  /* overlay as a bottom sheet */
  .v2-sheet { padding: 0; align-items: flex-end; }
  .v2-sheet__panel { width: 100%; max-height: 90vh; max-height: 90dvh; border-radius: 24px 24px 0 0; transform: translateY(100%); opacity: 1; transition: transform 400ms var(--ease); }
  .v2-sheet.is-open .v2-sheet__panel { transform: none; }
  .v2-sheet__panel::before { content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--gray-3); z-index: 1; }
  .v2-sheet__scroll { padding: 40px 20px 36px; }
  .v2-sheet__close { top: 12px; right: 12px; }
}

/* ---------- Reduced motion, and no scripting ---------- */
@media (prefers-reduced-motion: reduce) {
  html.v2-js .v2-rv { opacity: 1; transform: none; transition: none; }
  html.v2-js .v2-step { opacity: 1; transition: none; }
  .v2-story .il-slide { transition: none; }
  .v2-story[data-step] .il-slide { opacity: 1; filter: none; transform: none; }
  .v2-sheet__backdrop, .v2-sheet__panel { transition: none; }
  .v2-story__sticky { position: static; height: auto; max-height: none; min-height: 0; }
  .v2-step, .v2-step:first-child, .v2-step:last-child { min-height: 0; padding: 20px 0; }
  .v2-story__stage { position: static; }
  .v2-story__art { max-width: 560px; }
}

/* =====================================================================
   Home, built from the BioVault design system (css/ds.css holds the tokens and components: bv-btn, bv-link,
   bv-logo-spot, bv-strip, bv-stats, bv-intro, bv-steps, bv-panel, bv-deep). Classes here start with hm- and
   only place those components on the page. One continuous background, sections separated by whitespace
   (space-6, space-5 on phones), no tiles, no bands except the closing deep band. Text is static; the only
   motion is the researchers strip and the cartridge drawing, and both stop under reduced motion.
   ===================================================================== */
:where(.hm) :is(h1, h2, h3, p) { margin: 0; }   /* zero-weight reset, so the hm- spacing below wins */
.hm-sec { padding-top: var(--section-gap); }
.hm .bv-intro + * { margin-top: var(--space-intro, var(--space-4)); }

/* ---------- Hero: statement left, logo spot right ---------- */
.hm-hero { padding-top: var(--hero-top, var(--space-4)); }
.hm-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 13fr) minmax(0, 11fr);
  gap: var(--space-4);
  align-items: center;
}
.hm-hero h1 { max-width: 18ch; color: var(--ink); }
.hm-hero__sub { margin-top: var(--space-3); max-width: 46ch; color: var(--ink-muted); }
.hm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: var(--space-4); }
.hm-actions__link { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
/* the logo spot: the full lockup (mark, "Bio" ink, "Vault" accent, half-size TM) centered in an accent-soft frame at
   radius-md, wider than tall so the horizontal lockup sits comfortably, with at least half the mark height clear on every side */
.hm-hero .hm-spot { width: 100%; aspect-ratio: 4 / 3; padding: calc(var(--bv-logo-size) * .7); --bv-logo-size: clamp(36px, 3vw + 20px, 58px); }
.hm-spot__logo { white-space: nowrap; }

/* ---------- Researchers strip: school marks, widely spaced, slow ----------
   home.researchers.style in data/site.json picks logos or crests, in full color or one muted grey (js/v2.js). */
.hm-research { padding-top: var(--hero-bottom, var(--space-5)); }
.hm-research__label { text-align: center; }
.hm-strip { margin-top: var(--space-3); padding-block: 8px; }
/* the strip sits inside a bv-wrap (index.html), so it runs between the same edges as the rest of the page */
.hm-research .hm-mark--wide { max-width: 200px; object-fit: contain; }   /* a very wide wordmark (Dartmouth) shrinks to fit */
.hm-research .hm-strip__group { gap: 80px; padding-right: 80px; }
.hm-strip__group {
  display: flex; align-items: center; flex: none;
  gap: 112px; margin: 0; padding: 0 112px 0 0; list-style: none;
}
.hm-strip__item { display: flex; align-items: center; justify-content: center; height: 76px; }
.hm-mark { display: block; width: auto; max-width: none; height: 60px; }
.hm-mark--crest { height: 68px; }
.hm-mark--wide { height: 40px; }

/* "-mono" styles: every mark in one calm ink-muted grey. Grayscale, then a per-mark brightness and contrast so all
   read equally dark (paired so white stays white: b x c - c/2 + 1/2 = 1), multiplied onto the page so white grounds
   disappear. Naturally dark files are lifted with opacity instead. Hovering a mark shows its own colors. */
.hm-strip--mono .hm-mark {
  filter: grayscale(1) brightness(var(--mk-b, 1)) contrast(var(--mk-c, 1));
  opacity: var(--mk-o, .62);
  mix-blend-mode: multiply;
  transition: filter .2s, opacity .2s;
}
.hm-strip--mono .hm-strip__item:hover .hm-mark { filter: none; opacity: 1; mix-blend-mode: normal; }
.hm-strip--mono .hm-mark--crest[data-mark="mit"], .hm-strip--mono .hm-mark--crest[data-mark="ucsf"] { --mk-b: .75; --mk-c: 2; --mk-o: .7; }
.hm-strip--mono .hm-mark--crest[data-mark="loyola"] { --mk-b: .875; --mk-c: 1.334; --mk-o: .66; }
.hm-strip--mono .hm-mark--crest[data-mark="uic"] { --mk-o: .5; }
.hm-strip--mono .hm-mark--crest[data-mark="rochester"] { --mk-o: .42; }
.hm-strip--mono .hm-mark--crest[data-mark="dartmouth"] { --mk-o: .55; }
.hm-strip--mono .hm-mark--crest[data-mark="oxford"] { --mk-o: .36; }   /* a solid shield, so it needs more lift */
.hm-strip--mono .hm-mark--logo { --mk-o: .5; }

@media (max-width: 640px) {
  .hm-strip__group { gap: 64px; padding-right: 64px; }
  .hm-strip__item { height: 60px; }
  .hm-mark { height: 46px; }
  .hm-mark--crest { height: 52px; }
  .hm-mark--wide { height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-strip__group { flex-wrap: wrap; justify-content: center; gap: 32px 64px; padding: 0 var(--gutter-ds); }
  .hm-strip--mono .hm-mark { transition: none; }
}

/* ---------- Stats ---------- */
.hm .bv-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* numbers that wrap to two lines keep every description and source on one baseline across the row */
@supports (grid-template-rows: subgrid) {
  .hm .bv-stat { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: var(--space-1); align-content: start; }
  .hm .bv-stat .stat { align-self: end; }
}

.hm-stat__pre { display: block; margin-bottom: 4px; font-size: var(--type-lead-size, 21px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink-muted); }
.hm .bv-stat .stat { white-space: nowrap; }

/* ---------- Problem and mission: label, then the statement ---------- */
.hm-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-5); }
.hm-statement--wide { grid-column: 1 / -1; }
.hm-statement--wide .hm-statement__text { max-width: 28ch; font-size: clamp(28px, 2vw + 16px, 44px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
.hm-statement__detail { margin-top: var(--space-3); max-width: 56ch; color: var(--ink-muted); font-size: var(--type-lead-size, 21px); line-height: 1.5; }
/* How we pay for it: the paragraph beside three stacked numbers */
.hm-model { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-5); align-items: start; }
.hm-model__stats { display: grid; gap: var(--space-4); }
.hm-model__stat { padding-top: var(--space-3); border-top: 1px solid var(--line); }
.hm .hm-model__stat .stat { font-size: clamp(40px, 3.6vw, 56px); }
.hm-statement__label { margin-bottom: var(--space-2); }
.hm-statement__text {
  max-width: 38ch; color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(20px, 0.6vw + 15px, 24px); line-height: 1.45; letter-spacing: -0.01em; font-weight: 400;
  text-wrap: pretty;
}

/* ---------- How it works: steps beside the drawing ---------- */
.hm-how {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-4);
  align-items: center;
}
.hm-steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.hm-step { position: relative; }
.hm-step__btn {
  all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-1);
  width: 100%; cursor: pointer; border-radius: 4px;
}
.hm-step__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.hm-step .h3, .hm-step .body { display: block; transition: color 300ms var(--ease); }
.hm-step:not(.is-active) .h3, .hm-step:not(.is-active) .body { color: var(--ink-muted); }
.hm-step:not(.is-active) .hm-step__btn:hover .h3 { color: var(--ink); }
.hm-step.is-active .step { color: var(--accent); }
/* the active step's hairline fills with the accent while the steps play */
.hm-step::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--accent);
}
.hm-step.is-active::before { width: 100%; }
.hm-how.is-playing .hm-step.is-active::before { width: 0; animation: hm-fill var(--hm-dwell, 5200ms) linear forwards; }
@keyframes hm-fill { to { width: 100%; } }
.hm-more { margin-top: var(--space-3); }
.hm-more .bv-link { display: inline-flex; align-items: center; min-height: 44px; }
.hm-how__art .visual { width: 100%; }
.hm-how__art .visual__label { display: none; }
/* the drawing's lines in the palette's second blue */
.hm-how__art svg.il { --il-k: color-mix(in srgb, var(--secondary) 55%, var(--ink)); --il-b: var(--raised); }
/* the drawing follows the active step: 1 the cartridge slides out to charge, 2 it sits in the case, 3 it slides out to swap.
   Transform only, one long ease, no glows. */
.hm-how__art .il-slide { transition: transform 1100ms var(--ease); }
.hm-how[data-step="1"] .il-slide, .hm-how[data-step="3"] .il-slide { transform: translate(var(--il-dx, 0px), var(--il-dy, 0px)); }
.hm-how[data-step="2"] .il-slide { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hm-how__art .il-slide, .hm-step .h3, .hm-step .body { transition: none; }
  .hm-how.is-playing .hm-step.is-active::before { animation: none; width: 100%; }
}

/* ---------- Who it's for: four soft white cards, 2 over 2 with mixed widths ----------
   Krish's choice over the design system's open items: raised (white) cards at radius-lg on bg, no border, no shadow. */
.hm-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap, 24px); }
.hm-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: var(--card-pad, 32px);
  border-radius: var(--radius-lg);
  background: var(--raised);
  min-width: 0;
}
/* sized by mission priority (home.who.items order), a step down per row:
   row 1, large: 1 clinics, 2 relief teams; row 2, medium: 3 outages, 4 parents (travelers and campers are on the Devices page).
   Heights come from the content, and content starts at the top, so no card holds empty space. */
.hm-bento { grid-template-areas:
  "c1 c1 c1 c1 c1 c1 c1 c2 c2 c2 c2 c2"
  "c3 c3 c3 c3 c3 c3 c4 c4 c4 c4 c4 c4"; align-items: stretch; }
.hm-card--1 { grid-area: c1; }
.hm-card--2 { grid-area: c2; }
.hm-card--3 { grid-area: c3; }
.hm-card--4 { grid-area: c4; }
.hm-card--5 { grid-area: c5; }
.hm-card--6 { grid-area: c6; }
.hm-card--1, .hm-card--2 { padding: var(--card-pad-lg, 40px); gap: 16px; }
.hm-card--5, .hm-card--6 { padding: var(--card-pad, 32px); gap: 8px; }
.hm-card__head { display: flex; align-items: center; gap: 12px; }
.hm-card__ico { flex: none; width: 28px; height: 28px; color: var(--accent); stroke-width: 1.5; }
.hm-card__title { color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: var(--type-h3-lh); letter-spacing: var(--type-h3-ls); }
.hm-card--1 .hm-card__title, .hm-card--2 .hm-card__title { font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -0.03em; line-height: 1.1; }
.hm-card--1 .hm-card__line, .hm-card--2 .hm-card__line { font-size: var(--type-lead-size, 21px); }
.hm-card--1 .hm-card__ico, .hm-card--2 .hm-card__ico { width: 36px; height: 36px; }
.hm-card--3 .hm-card__title, .hm-card--4 .hm-card__title { font-size: var(--type-h3-size); }
.hm-card--5 .hm-card__title, .hm-card--6 .hm-card__title { font-size: 18px; }
.hm-card--5 .hm-card__line, .hm-card--6 .hm-card__line { font-size: 15px; }
.hm-card--5 .hm-card__ico, .hm-card--6 .hm-card__ico { width: 22px; height: 22px; }
.hm-card__line { color: var(--ink-muted); font-size: var(--type-body-size); line-height: var(--type-body-lh, 1.6); max-width: 40ch; text-wrap: pretty; }

/* ---------- Closing: the one deep band ---------- */
.hm-cta { margin-top: var(--section-gap); }

/* placeholder text in brackets keeps the placeholder look */
.hm .ph-slot { color: var(--ink-muted); }

/* ---------- Tablet and phone ---------- */
@media (max-width: 900px) {
  .hm-hero__grid, .hm-how { grid-template-columns: minmax(0, 1fr); }
  .hm-hero .hm-spot { aspect-ratio: 16 / 9; --bv-logo-size: clamp(36px, 4vw + 20px, 44px); }
  .hm .bv-stats { grid-template-columns: minmax(0, 1fr); }
  .hm-bento { grid-template-areas: "c1 c1" "c2 c2" "c3 c4"; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm .bv-stat { grid-row: auto; display: flex; }
  .hm .bv-stat .stat { align-self: auto; }
  .hm-pair, .hm-model { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hm-actions { margin-top: var(--space-3); }
  .hm-bento { grid-template-areas: "c1" "c2" "c3" "c4"; grid-template-columns: minmax(0, 1fr); }
}
