/* Components (PRD §5.4). IDs in comments map to the PRD component table. */

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--ink-900);
  border-radius: var(--radius-pill);
  background: var(--ink-900);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}
.button:hover { background: var(--ink-700); border-color: var(--ink-700); }
.button:active { transform: translateY(1px); }
.button .arrow { transition: transform 180ms var(--ease); }
.button:hover .arrow { transform: translateX(3px); }

.button-secondary { background: transparent; color: var(--ink-900); border-color: var(--line-strong); }
.button-secondary:hover { background: var(--surface); border-color: var(--ink-900); }

.button-detect { background: var(--detect-700); border-color: var(--detect-700); }
.button-detect:hover { background: var(--detect-600); border-color: var(--detect-600); }
.button-restore { background: var(--restore-700); border-color: var(--restore-700); }
.button-restore:hover { background: var(--restore-600); border-color: var(--restore-600); }

.section-dark .button,
.spotlight .button,
.band .button { background: #fff; color: var(--ink-900); border-color: #fff; }
.section-dark .button:hover,
.spotlight .button:hover,
.band .button:hover { background: var(--detect-100); border-color: var(--detect-100); }
.section-dark .button-secondary,
.spotlight .button-secondary,
.band .button-secondary { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.35); }
.section-dark .button-secondary:hover,
.spotlight .button-secondary:hover,
.band .button-secondary:hover { border-color: #fff; background: rgb(255 255 255 / 0.06); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-900);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.link-arrow::after { content: "→"; transition: transform 180ms var(--ease); }
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow:hover::after { transform: translateX(3px); }
.section-dark .link-arrow { color: #fff; text-decoration-color: rgb(255 255 255 / 0.35); }

/* ---------- C-01 StatusChip ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  --dot: var(--status-dev);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem 0.3rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-700);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--dot);
}
.chip-in-development, .chip-prototype, .chip-today { --dot: var(--status-dev); }
.chip-not-clinically-validated, .chip-not-a-therapy { --dot: var(--restore-600); }
.chip-active-research { --dot: var(--restore-600); }
.chip-concept { --dot: var(--status-unvalidated); }
.chip-future { --dot: var(--ink-300); }
.chip-developing { --dot: var(--status-proposed); }
.section-dark .chip { background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.18); color: #e6ecf1; }

/* ---------- C-02 EvidenceLabel ---------- */
.evidence {
  --ev: var(--status-established);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.evidence-proposed { --ev: var(--status-proposed); }
.evidence-unvalidated { --ev: var(--status-unvalidated); }
.evidence > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem 0.25rem 0.35rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--ev) 12%, white);
  color: color-mix(in srgb, var(--ev) 70%, black);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}
.evidence > a::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--ev);
  -webkit-mask: var(--ev-icon) center / 70% no-repeat;
  mask: var(--ev-icon) center / 70% no-repeat;
  background-color: var(--ev);
}
.evidence-established > a { --ev-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E"); }
.evidence-proposed > a { --ev-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16V0z'/%3E%3Ccircle cx='8' cy='8' r='7' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E"); }
.evidence-unvalidated > a { --ev-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.5' fill='none' stroke='%23000' stroke-width='3' stroke-dasharray='3 2.2'/%3E%3C/svg%3E"); }
.evidence-tip {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  z-index: 20;
  width: max-content;
  max-width: min(16rem, calc(100vw - 2.5rem));
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-s);
  background: var(--ink-900);
  color: #e6ecf1;
  font-size: var(--step--1);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: var(--shadow-float);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 160ms;
  pointer-events: none;
}
.evidence:hover .evidence-tip,
.evidence:focus-within .evidence-tip { opacity: 1; visibility: visible; transform: none; }
/* Cards at the right edge of a row open their tooltip leftwards so it stays on screen. */
.scroller > li:nth-last-child(-n + 2) .evidence-tip { left: auto; right: 0; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}
.card > * { margin: 0; }
.card h3 { font-size: var(--step-2); }
.card .link-arrow { margin-top: auto; padding-top: 0.5rem; }
.card-warm { background: var(--surface-warm); }
.card-flat { background: transparent; }
.section.surface .card { background: var(--paper); border-color: transparent; }
.section-dark .card { background: var(--ink-800); border-color: rgb(255 255 255 / 0.08); }

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--detect-100);
  color: var(--detect-700);
}
.icon-badge svg { width: 1.35rem; height: 1.35rem; }
.icon-badge.restore { background: var(--restore-100); color: var(--restore-700); }
.section-dark .icon-badge { background: rgb(111 208 201 / 0.12); color: var(--detect-300); }

.check-list { display: grid; gap: 0.6rem; list-style: none; }
.check-list li { position: relative; padding-left: 1.6rem; }
.check-list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0.15rem;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2px solid var(--accent, var(--detect-600));
  border-bottom: 2px solid var(--accent, var(--detect-600));
  transform: rotate(-45deg);
}

/* ---------- C-03 InsightCard ---------- */
.insight {
  --tone: var(--detect-600);
  display: grid;
  gap: 0.35rem;
  width: min(100%, 17.5rem);
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: var(--shadow-float);
  color: var(--ink-700);
  font-size: var(--step--1);
  line-height: 1.45;
}
.insight.warn { --tone: var(--restore-600); }
.insight.review { --tone: var(--status-established); }
.insight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.insight-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-500);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.insight-eyebrow::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--tone); }
.insight-title { margin: 0; color: var(--ink-900); font-weight: 600; font-size: 0.95rem; }
.insight-value {
  margin: 0;
  color: var(--tone);
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.insight-value small { color: var(--ink-500); font-size: 0.8rem; letter-spacing: 0; }
.insight-meta {
  margin: 0.25rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-500);
  font-size: var(--step--2);
}
.insight svg { width: 100%; height: auto; }

/* ---------- C-13 PhoneFrame ---------- */
/* The EDDS renders already include a device bezel; the frame adds shadow and safe sizing. */
.phone {
  margin: 0;
  width: min(100%, 17rem);
  filter: drop-shadow(0 24px 40px rgb(6 19 34 / 0.18));
}
.phone img { width: 100%; height: auto; }
/* Fade the render's baked-in shadow at the image edges so no rectangle shows behind the device. */
.phone picture {
  display: block;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 2%, #000 96%, transparent);
  mask-composite: intersect;
}
.phone figcaption { margin-top: 1rem; text-align: center; }

/* ---------- C-08 TrustStrip ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
  list-style: none;
  color: var(--ink-500);
  font-size: var(--step--1);
  font-weight: 500;
}
.trust-strip li { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust-strip svg { width: 1.1rem; height: 1.1rem; color: var(--detect-600); }
.section-dark .trust-strip, .band .trust-strip { color: #c9d3dc; }
.section-dark .trust-strip svg, .band .trust-strip svg { color: var(--detect-300); }

/* ---------- C-11 CTABand ---------- */
.band {
  --accent: var(--detect-300);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(5rem, 4rem + 6vw, 9rem);
  background: var(--ink-900);
  color: #c9d3dc;
  text-align: center;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 15% 110%, rgb(194 85 45 / 0.35), transparent 70%),
    radial-gradient(55% 80% at 90% -10%, rgb(14 124 123 / 0.45), transparent 70%);
}
.band h2 { color: #fff; font-size: var(--step-5); }
.band h2 em:last-of-type:not(:first-of-type) { color: var(--restore-300); }
.band .lede { margin-inline: auto; color: #c9d3dc; }
.band .trust-strip { justify-content: center; }

/* ---------- C-04 TabShowcase ---------- */
.tabs {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 960px) { .tabs { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; } }
.tab-list { display: grid; gap: 0.5rem; }
.tab {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 1rem;
  width: 100%;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}
.tab:hover { background: var(--surface); }
.tab-num { grid-row: span 2; color: var(--ink-500); font-family: var(--font-mono); font-size: var(--step--1); padding-top: 0.3rem; }
.tab-label { color: var(--ink-900); font-family: var(--font-display); font-size: var(--step-2); line-height: 1.3; }
.tab-desc { color: var(--ink-500); font-size: var(--step--1); }
.tab[aria-selected="true"] { background: var(--surface); border-color: var(--detect-600); box-shadow: inset 3px 0 0 var(--detect-600); }
.tab[aria-selected="true"] .tab-num { color: var(--detect-700); }
.tab-panels { position: relative; display: grid; }
.tab-panel {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  min-height: 24rem;
  padding: clamp(1.5rem, 1rem + 3vw, 3rem);
  border-radius: var(--radius-l);
  background:
    radial-gradient(80% 60% at 80% 10%, var(--detect-100), transparent 70%),
    var(--paper-deep);
}
.tab-panel .insight { width: min(100%, 22rem); }
.tab-panel-caption { margin-top: 1rem; color: var(--ink-500); font-size: var(--step--1); text-align: center; }
.js .tab-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .tab-panel:not([hidden]) .insight { animation: fade-up var(--dur) var(--ease); }
}
/* Without JS every panel shows, stacked under its question. */
html:not(.js) .tab-list { display: none; }
html:not(.js) .tab-panels { gap: 1rem; }
html:not(.js) .tab-panel { grid-area: auto; }

/* ---------- C-05 StepWalkthrough ---------- */
.walkthrough { display: grid; gap: 2rem; }
.walk-steps { display: grid; gap: 1.5rem; list-style: none; counter-reset: step; }
.walk-step {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}
.walk-step-num { color: var(--detect-700); font-family: var(--font-mono); font-size: var(--step--1); }
.walk-step h3 { margin: 0.25rem 0 0.5rem; }
.walk-step .walk-card { margin-top: 1.25rem; }
.walk-visual { display: none; }

@media (min-width: 960px) {
  .js .walkthrough.is-enhanced { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .js .walkthrough.is-enhanced .walk-steps { gap: 0; }
  .js .walkthrough.is-enhanced .walk-step {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: min(70vh, 40rem);
    padding: 0 0 0 1.75rem;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    background: none;
    opacity: 0.4;
    transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
  }
  .js .walkthrough.is-enhanced .walk-step.is-active { opacity: 1; border-left-color: var(--detect-600); }
  .js .walkthrough.is-enhanced .walk-step .walk-card { display: none; }
  .js .walkthrough.is-enhanced .walk-visual {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    display: grid;
    place-items: center;
    min-height: min(calc(100vh - var(--header-h) - 4rem), 44rem);
    border-radius: var(--radius-l);
    background:
      radial-gradient(70% 50% at 70% 20%, var(--detect-100), transparent 70%),
      var(--paper-deep);
  }
  .walk-visual > .walk-card { grid-area: 1 / 1; }
  .walk-visual > .walk-card:not(.is-active) { opacity: 0; visibility: hidden; }
}
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .walk-visual > .walk-card { transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur); }
  .walk-visual > .walk-card:not(.is-active) { transform: translateY(12px); }
}

/* ---------- C-07 Accordion ---------- */
.accordion { border-top: 1px solid var(--line-strong); }
.accordion details { border-bottom: 1px solid var(--line-strong); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 200ms var(--ease);
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .answer { max-width: 46rem; padding-bottom: 1.5rem; color: var(--ink-500); }

/* ---------- C-06 ExpandablePersonCard (team) ---------- */
.people { display: grid; gap: 1rem; list-style: none; }
@media (min-width: 760px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1180px) { .people.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.person {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius-l);
  background: var(--surface-warm);
  border: 1px solid var(--line);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.person:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.person-photo {
  width: clamp(5.5rem, 4.5rem + 3vw, 7rem);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--paper-deep);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-body { min-width: 0; }
.person h3 { margin: 0 0 0.3rem; font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); }
.person-role { margin: 0 0 0.6rem; color: var(--ink-500); font-size: 0.95rem; line-height: 1.45; }
.bio-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid var(--restore-300);
  background: none;
  color: var(--restore-700);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.bio-trigger::before { content: ""; position: absolute; inset: -8px -6px; } /* 44px hit area */
.bio-trigger::after { content: "↗"; font-size: 0.85em; transition: transform 160ms var(--ease); }
.bio-trigger:hover { border-bottom-color: var(--restore-700); }
.bio-trigger:hover::after { transform: translate(2px, -2px); }
.person.is-lead { background: var(--surface); }

/* Bio dialog */
.bio-dialog {
  width: min(100% - 2rem, 40rem);
  max-height: min(90vh, 52rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-l);
  background: var(--surface);
  color: var(--ink-700);
  box-shadow: 0 30px 80px rgb(6 19 34 / 0.35);
}
.bio-dialog::backdrop { background: rgb(6 19 34 / 0.55); backdrop-filter: blur(4px); }
.bio-dialog-inner { position: relative; padding: clamp(1.5rem, 1rem + 3vw, 2.75rem); }
.bio-dialog header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-right: 2.5rem;
}
.bio-dialog .person-photo { width: 6rem; }
.bio-dialog h2 { margin: 0 0 0.25rem; font-size: var(--step-3); }
.bio-dialog .person-role { margin: 0; }
.bio-dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.bio-dialog-close:hover { background: var(--paper); }
.bio-focus { padding: 1rem 1.25rem; border-radius: var(--radius-m); background: var(--paper); }
.bio-focus dt { color: var(--ink-500); font-size: var(--step--2); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.bio-focus dd { margin: 0.25rem 0 0; color: var(--ink-900); }
@media (prefers-reduced-motion: no-preference) {
  .bio-dialog[open] { animation: fade-up var(--dur) var(--ease); }
}

/* Home team strip */
.avatar-row { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; }
.avatar-row a { position: relative; display: block; width: 4.5rem; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--line-strong); }
.avatar-row img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Steps, flows, timelines ---------- */
.flow {
  display: grid;
  gap: 1rem;
  list-style: none;
  counter-reset: flow;
}
@media (min-width: 720px) { .flow { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .flow.six { grid-template-columns: repeat(6, 1fr); } }
.flow li {
  position: relative;
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: 1.25rem;
  border-radius: var(--radius-m);
  background: var(--surface);
  border: 1px solid var(--line);
  counter-increment: flow;
}
.flow li::before {
  content: counter(flow, decimal-leading-zero);
  color: var(--detect-700);
  font-family: var(--font-mono);
  font-size: var(--step--1);
}
.flow strong { font-family: var(--font-display); font-size: var(--step-1); font-weight: 400; }
.flow span { color: var(--ink-500); font-size: var(--step--1); line-height: 1.5; }

/* Product rail: four phones joined by a connector that draws in, carries a travelling signal,
   and phones that drift gently and lift on hover. */
.rail { position: relative; display: grid; gap: 3rem; list-style: none; counter-reset: step; }
@media (min-width: 900px) {
  .rail { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
  .rail::before,
  .rail::after { content: ""; position: absolute; top: 30%; left: 8%; right: 8%; z-index: 0; pointer-events: none; }
  .rail::before { height: 1px; background: linear-gradient(90deg, var(--detect-600), var(--restore-600)); transform-origin: left; }
  .rail::after {
    height: 3px; margin-top: -1px; border-radius: 3px; opacity: 0;
    background: linear-gradient(90deg, transparent, var(--detect-300) 40%, var(--detect-600) 50%, transparent) no-repeat;
    background-size: 18% 100%; background-position: -30% 0;
  }
}
.rail li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 0.25rem; text-align: center; counter-increment: step; }
.rail .phone { position: relative; isolation: isolate; width: min(100%, 12rem); transition: filter 400ms var(--ease); }
.rail .phone::before {
  content: ""; position: absolute; inset: 12% -10% 4%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(14 124 123 / 0.16), transparent);
  opacity: 0.6; transition: opacity 400ms var(--ease), scale 400ms var(--ease);
}
.rail .phone picture { display: block; transition: transform 400ms var(--ease); }
.rail strong { margin-top: 0.75rem; font-family: var(--font-display); font-size: var(--step-2); font-weight: 400; transition: color 240ms var(--ease); }
.rail strong::before {
  content: "Step " counter(step, decimal-leading-zero); display: block; margin-bottom: 0.35rem;
  font-family: var(--font-body); font-size: var(--step--2); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--detect-700); font-variant-numeric: tabular-nums;
}
.rail span { color: var(--ink-500); font-size: var(--step--1); }
.rail li:hover .phone { filter: drop-shadow(0 32px 48px rgb(6 19 34 / 0.24)); }
.rail li:hover .phone::before { opacity: 1; scale: 1.08; }
.rail li:hover .phone picture { transform: translateY(-8px) scale(1.02); }
.rail li:hover strong { color: var(--detect-700); }

@media (prefers-reduced-motion: no-preference) {
  .js .rail::before { scale: 0 1; transition: scale 1.6s var(--ease) 0.2s; }
  .js .rail.is-visible::before { scale: 1 1; }
  .js .rail.is-visible::after { animation: rail-signal 5.5s cubic-bezier(0.45, 0, 0.55, 1) 1.8s infinite; }
  .js .rail li[data-reveal] .phone { scale: 0.95; transition: scale 900ms var(--ease), filter 400ms var(--ease); }
  .js .rail li[data-reveal].is-visible .phone { scale: 1; }
  .rail .phone { animation: phone-drift 7s ease-in-out infinite; }
  .rail li:nth-child(2) .phone { animation-delay: -1.75s; }
  .rail li:nth-child(3) .phone { animation-delay: -3.5s; }
  .rail li:nth-child(4) .phone { animation-delay: -5.25s; }
  .rail li:nth-child(5) .phone { animation-delay: -2.6s; }
  .rail li:hover .phone { animation-play-state: paused; }
}
@keyframes rail-signal {
  0% { background-position: -30% 0; opacity: 0; }
  10%, 85% { opacity: 1; }
  100% { background-position: 130% 0; opacity: 0; }
}
@keyframes phone-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

.timeline { display: grid; gap: 1rem; list-style: none; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
.timeline li { position: relative; padding: 1.75rem; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.timeline li::before {
  content: "";
  display: block;
  height: 4px;
  margin-bottom: 1.25rem;
  border-radius: 4px;
  background: var(--bar, var(--detect-600));
  width: var(--fill, 100%);
}
.timeline h3 { margin: 0.75rem 0 0.5rem; }

.ladder { display: grid; gap: 0.75rem; list-style: none; counter-reset: rung; }
.ladder li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-m);
  background: var(--surface);
  border: 1px solid var(--line);
  counter-increment: rung;
}
.section-dark .ladder li { background: var(--ink-800); border-color: rgb(255 255 255 / 0.08); color: #fff; }
@media (min-width: 960px) {
  .ladder-row { grid-template-columns: repeat(5, 1fr); }
  .ladder-row li { grid-template-columns: auto 1fr; align-content: start; }
  .ladder-row li .chip { grid-column: 1 / -1; justify-self: start; }
}
.ladder li::before { content: counter(rung); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--restore-100); color: var(--restore-700); font-family: var(--font-mono); font-size: var(--step--1); }
@media (max-width: 560px) { .ladder li { grid-template-columns: auto 1fr; } .ladder li .chip { grid-column: 2; justify-self: start; } }

/* ---------- Programme cards ---------- */
.programme {
  --tone: var(--detect-600);
  --tone-soft: var(--detect-100);
  overflow: hidden;
  padding: 0;
  gap: 0;
}
.programme.restore { --tone: var(--restore-600); --tone-soft: var(--restore-100); --accent: var(--restore-600); }
.programme-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 8;
  background: radial-gradient(80% 90% at 70% 20%, #fff 0%, var(--tone-soft) 70%);
  color: var(--tone);
}
.programme-visual svg { width: 72%; height: auto; }
.programme-body { display: flex; flex-direction: column; gap: 0.85rem; padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); flex: 1; }
.programme-body > * { margin: 0; }
.programme-body h3 { font-size: var(--step-3); }
.programme-body .check-list { --accent: var(--tone); color: var(--ink-500); font-size: 0.95rem; }

/* ---------- Organism scroller ---------- */
.scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82%, 19rem);
  gap: 1rem;
  padding: 0.25rem var(--gutter) 1.5rem;
  margin-inline: calc(-1 * var(--gutter));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  list-style: none;
  scrollbar-width: thin;
}
@media (min-width: 1240px) { .scroller { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); margin: 0; padding-inline: 0; overflow: visible; } }
.scroller > li { scroll-snap-align: start; }
.organism { height: 100%; }
.organism-art {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin: -0.25rem -0.25rem 0.5rem;
  border-radius: var(--radius-m);
  background: var(--restore-100);
  color: var(--restore-700);
}
.organism-art svg { width: 70%; height: auto; }
.organism.gap .organism-art { background: var(--paper-deep); color: var(--ink-500); }

/* ---------- Evidence trio ---------- */
.evidence-trio .card { gap: 1rem; }
.evidence-dot { display: inline-grid; place-items: center; width: 3rem; height: 3rem; }

/* ---------- Filters (C-10 / §7.5) ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 1.5rem; }
.filter-bar .label { margin-right: 0.25rem; color: var(--ink-500); font-size: var(--step--1); font-weight: 500; }
.filter-btn {
  min-height: 40px;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-700);
  font-size: var(--step--1);
  font-weight: 500;
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--ink-900); }
.filter-btn[aria-pressed="true"] { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.filter-status { margin: 0 0 1rem; color: var(--ink-500); font-size: var(--step--1); }
[data-filter-item][hidden] { display: none !important; }

/* C-10 ArchiveItem */
.archive { display: grid; gap: 1rem; list-style: none; }
.archive-item {
  display: grid;
  gap: 0.75rem 2rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--surface);
}
@media (min-width: 860px) { .archive-item { grid-template-columns: 11rem 1fr auto; align-items: start; } }
.archive-item h3 { margin: 0 0 0.35rem; }
.archive-item p { margin: 0; color: var(--ink-500); }
.archive-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; align-content: start; }
.type-badge { display: inline-block; padding: 0.25rem 0.65rem; border-radius: var(--radius-s); background: var(--ink-900); color: #fff; font-size: var(--step--2); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.area-tag { color: var(--ink-500); font-size: var(--step--1); white-space: nowrap; }

/* ---------- C-09 DragExplainer ---------- */
.explainer {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--line);
}
.explainer-head { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; }
.explainer-head h3 { margin: 0; }
.explainer svg { width: 100%; height: auto; overflow: visible; }
.container > .explainer { max-width: 860px; margin-inline: auto; }
.explainer-control { display: grid; gap: 0.5rem; }
.explainer-control label { color: var(--ink-900); font-weight: 500; }
.explainer input[type="range"] { width: 100%; accent-color: var(--detect-600); height: 2rem; cursor: pointer; }
.explainer-readout { display: grid; gap: 0.75rem; }
@media (min-width: 600px) { .explainer-readout { grid-template-columns: 1fr 1fr; } }
.readout {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-m);
  background: var(--paper);
  font-size: var(--step--1);
}
.readout dt { color: var(--ink-500); font-size: var(--step--2); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.readout dd { margin: 0.2rem 0 0; color: var(--ink-900); font-weight: 600; }
.readout[data-state="ok"] dd { color: var(--status-established); }
.readout[data-state="warn"] dd { color: var(--restore-700); }
.readout[data-state="info"] dd { color: var(--status-proposed); }
.explainer-caption { margin: 0; color: var(--ink-500); font-size: var(--step--2); }
.svg-label { font-family: var(--font-body); font-size: 11px; fill: var(--ink-500); }

.confidence-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }
.confidence-meter span { height: 0.5rem; border-radius: 4px; background: var(--line); transition: background-color 200ms var(--ease); }
.confidence-meter[data-level="1"] span:nth-child(-n+1),
.confidence-meter[data-level="2"] span:nth-child(-n+2),
.confidence-meter[data-level="3"] span:nth-child(-n+3) { background: var(--detect-600); }

/* RegeneratorSelector */
.selector { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .selector { grid-template-columns: 0.8fr 1.2fr; align-items: start; } }
.selector fieldset { display: grid; gap: 0.5rem; margin: 0; padding: 0; border: 0; }
.selector legend { margin-bottom: 0.75rem; color: var(--ink-500); font-size: var(--step--1); font-weight: 500; }
.selector-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  cursor: pointer;
}
.selector-option input { width: 1.1rem; height: 1.1rem; accent-color: var(--restore-600); }
.selector-option:has(input:checked) { border-color: var(--restore-600); box-shadow: inset 3px 0 0 var(--restore-600); }
.selector-option:has(input:focus-visible) { outline: 3px solid var(--detect-600); outline-offset: 2px; }
.selector-option strong { font-family: var(--font-display); font-size: var(--step-1); font-weight: 400; }
.selector-option small { display: block; color: var(--ink-500); }
.selector-panels { display: grid; }
.selector-panel { display: grid; gap: 1rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.selector-panel + .selector-panel { margin-top: 1rem; }
.js .selector-panels .selector-panel { grid-area: 1 / 1; margin: 0; }
.js .selector-panel[hidden] { display: none; }
.selector-panel h3 { margin: 0; }
.selector-art { display: grid; place-items: center; aspect-ratio: 16 / 7; border-radius: var(--radius-m); background: var(--restore-100); color: var(--restore-700); }
.selector-art svg { width: min(70%, 22rem); height: auto; }

/* ---------- C-12 ReportViewer ---------- */
.report { display: grid; gap: 1rem; }
.report-pages { display: grid; }
.report-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.25rem;
  min-height: 24rem;
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.js .report-page { grid-area: 1 / 1; }
.js .report-page[hidden] { display: none; }
html:not(.js) .report-page + .report-page { margin-top: 1rem; }
.report-page header { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); font-size: var(--step--2); color: var(--ink-500); }
.report-page footer { padding-top: 0.75rem; border-top: 1px solid var(--line); color: var(--ink-500); font-size: var(--step--2); }
.report-page h3 { font-size: var(--step-3); }
.report-controls { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; }
.report-nav { display: flex; gap: 0.5rem; align-items: center; }
.report-nav button { min-width: 44px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); cursor: pointer; padding: 0 1rem; }
.report-nav button:disabled { opacity: 0.4; cursor: not-allowed; }
.report-count { color: var(--ink-500); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
html:not(.js) .report-controls .report-nav { display: none; }

/* Mock app (How it works W-4): the live app screen is laid onto the tablet in the photo.
   .mock-screen is drawn at 340×548 and mapped onto the screen corners of the 810×1080 photo
   with matrix3d; --tablet-scale (set by tablet.js) shrinks that photo space to the rendered width. */
.mock-app { --tablet-scale: 0.6321; position: relative; width: 100%; max-width: 32rem; margin-inline: auto; }
.mock-app > picture img { display: block; width: 100%; height: auto; border-radius: var(--radius-l); box-shadow: var(--shadow-float); }
.mock-screen {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  gap: 0.6rem;
  align-content: start;
  width: 340px;
  height: 548px;
  overflow: hidden;
  padding: 0.7rem 0.9rem 1rem;
  border-radius: 1.1rem;
  background: var(--paper);
  transform-origin: 0 0;
  transform: scale(var(--tablet-scale)) matrix3d(1.40133, -0.208568, 0, 0.0000806726, 0.351795, 1.32017, 0, -0.0000106234, 0, 0, 1, 0, 117.4, 224, 0, 1);
}
/* Text column sits level with the top of the tablet; the view switcher drives the tablet's tabs. */
@media (min-width: 960px) { .demo-split { align-items: start; } .demo-intro { padding-top: clamp(1rem, 4vw, 3.5rem); } }
.view-switch { display: grid; gap: 0.6rem; margin-top: 1.75rem; }
html:not(.js) .view-switch { display: none; }
.view-switch button {
  position: relative;
  display: grid;
  gap: 0.2rem;
  width: 100%;
  padding: 0.9rem 1.1rem 0.9rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  color: var(--ink-700);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}
.view-switch button::before { content: ""; position: absolute; top: 0.9rem; bottom: 0.9rem; left: 0.6rem; width: 3px; border-radius: 3px; background: var(--line-strong); transition: background 180ms var(--ease); }
.view-switch button:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.view-switch button[aria-pressed="true"] { border-color: var(--detect-600); box-shadow: var(--shadow-card); }
.view-switch button[aria-pressed="true"]::before { background: var(--detect-600); }
.view-switch-name { color: var(--ink-900); font-weight: 600; }
.view-switch-name::after { content: " →"; color: var(--detect-600); opacity: 0; transition: opacity 180ms var(--ease); }
.view-switch button:hover .view-switch-name::after, .view-switch button[aria-pressed="true"] .view-switch-name::after { opacity: 1; }
.view-switch-desc { color: var(--ink-500); font-size: var(--step--1); line-height: 1.5; }
.mock-status { display: flex; justify-content: space-between; align-items: center; padding-inline: 0.35rem; color: var(--ink-900); font-size: 0.75rem; font-weight: 600; }
.mock-battery { width: 1.3rem; height: 0.6rem; border: 1.5px solid currentcolor; border-radius: 3px; background: linear-gradient(90deg, currentcolor 70%, transparent 70%) content-box; padding: 1px; }
.mock-app [role="tablist"] { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25rem; padding: 0.25rem; border-radius: var(--radius-pill); background: var(--paper-deep); }
.mock-app [role="tab"] { min-height: 40px; border: 0; border-radius: var(--radius-pill); background: transparent; font-size: var(--step--1); font-weight: 500; cursor: pointer; }
.mock-app [role="tab"][aria-selected="true"] { background: var(--surface); box-shadow: var(--shadow-card); }
.mock-app .insight { width: 100%; box-shadow: none; }
.mock-app [role="tabpanel"] { display: grid; gap: 0.75rem; align-content: start; }
.js .mock-app [role="tabpanel"][hidden] { display: none; }
html:not(.js) .mock-app [role="tablist"] { display: none; }

/* ---------- Layer diagram (E-4) ---------- */
.layers { display: grid; gap: 0.75rem; }
.layer { display: grid; gap: 0.35rem; padding: 1.25rem 1.5rem; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--surface); }
.layer.cap { background: var(--ink-900); border-color: var(--ink-900); color: #c9d3dc; }
.layer.cap strong { color: #fff; }
.layer.ai { background: var(--detect-100); border-color: transparent; }
.layer.stats { background: var(--paper-deep); border-color: transparent; }
.layer strong { font-family: var(--font-display); font-size: var(--step-2); font-weight: 400; }
.layer small { color: inherit; opacity: 0.8; font-size: var(--step--1); }
.layer-tag { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }

/* ---------- Measures grid (E-5) ---------- */
.measure-group { display: grid; gap: 0.75rem; align-content: start; }
.measure-group h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; }
.measure-list { display: grid; gap: 0.5rem; list-style: none; }
.measure-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; align-items: center; padding: 0.7rem 0.9rem; border-radius: var(--radius-s); background: var(--paper); font-size: 0.95rem; }
.measure-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; align-items: center; }
.measure-abbr { color: var(--ink-500); font-family: var(--font-mono); font-size: var(--step--1); text-decoration: none; }
.biomarker-breadth { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); }
.biomarker-breadth h3 { margin-bottom: 0.35rem; }
.biomarker-cats { display: grid; gap: 0.75rem; margin-top: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.biomarker-cats > div { padding: 0.85rem 1rem; border-radius: var(--radius-s); background: var(--paper); }
.biomarker-cats dt { color: var(--ink-900); font-weight: 600; }
.biomarker-cats dd { margin: 0.25rem 0 0; color: var(--ink-500); font-size: var(--step--1); }
.biomarker-count { display: inline-grid; place-items: center; min-width: 1.75rem; height: 1.75rem; margin-right: 0.35rem; border-radius: 50%; background: var(--detect-100); color: var(--detect-700); font-family: var(--font-mono); font-size: var(--step--1); }

/* ---------- C-14 Forms ---------- */
.form { display: grid; gap: 1.25rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label, .field legend { color: var(--ink-900); font-size: 0.95rem; font-weight: 500; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink-900);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--detect-100); outline-offset: 0; border-color: var(--detect-600); }
.field [aria-invalid="true"], fieldset[aria-invalid="true"] { border-color: var(--restore-700) !important; }
.field-error { color: var(--restore-700); font-size: var(--step--1); font-weight: 500; }
.checkbox-group { margin: 0; padding: 0; border: 0; }
.checkbox-group legend { margin-bottom: 0.6rem; }
.checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.check-pill { position: relative; }
.check-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check-pill span { display: inline-flex; align-items: center; min-height: 40px; padding: 0.45rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); font-size: var(--step--1); font-weight: 500; }
.check-pill input:checked + span { background: var(--detect-100); border-color: var(--detect-600); color: var(--detect-700); }
.check-pill input:checked + span::before { content: "✓"; margin-right: 0.4rem; }
.check-pill input:focus-visible + span { outline: 3px solid var(--detect-600); outline-offset: 2px; }
.consent-field label { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--ink-900); font-weight: 500; cursor: pointer; }
.consent-field input { flex: none; width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--detect-600); }
.consent-field p { margin: 0.4rem 0 0 1.95rem; color: var(--ink-500); font-size: var(--step--1); }
.form-error { margin: 0; padding: 0.85rem 1rem; border-radius: var(--radius-s); background: var(--restore-100); color: var(--restore-700); font-weight: 500; }
.form-success { padding: 1rem 1.25rem; border-radius: var(--radius-s); background: var(--detect-100); color: var(--detect-700); font-weight: 500; }
.form .button { justify-self: start; }

/* ---------- Anchor chips (S-1) ---------- */
.anchor-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; list-style: none; }
.anchor-chips a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-900); font-size: var(--step--1); font-weight: 500; text-decoration: none; }
.anchor-chips a::after { content: "↓"; color: var(--ink-500); }
.anchor-chips a:hover { border-color: var(--ink-900); }

/* ---------- Consent banner (consent.js) ---------- */
.consent-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 200;
  max-width: 34rem;
  margin-left: auto;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-float);
  font-size: var(--step--1);
}
.consent-banner[hidden] { display: none; }
.consent-banner h2 { margin-bottom: 0.4rem; font-size: var(--step-2); }
.consent-prefs { display: grid; gap: 0.5rem; margin: 1rem 0; }
.consent-option { display: flex; gap: 0.6rem; align-items: flex-start; }
.consent-option input { margin-top: 0.3rem; accent-color: var(--detect-600); }
.consent-option strong { display: block; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 1rem; }
.consent-actions .button { min-height: 42px; padding: 0.55rem 1.1rem; font-size: var(--step--1); }
.consent-actions .footer-text-button { color: var(--ink-700); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Motion ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; translate: 0 16px; transition: opacity 700ms var(--ease), translate 700ms var(--ease), transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease); }
  .js [data-reveal].is-visible { opacity: 1; translate: 0 0; }
}

/* ---------- Small additions ---------- */
ul.grid, ul.chips, ol.timeline { list-style: none; padding: 0; margin: 0; }
.h3 { font-size: var(--step-2); line-height: 1.25; }
.timeline li.tl-developing { --bar: var(--status-proposed); --fill: 66%; }
.timeline li.tl-future { --bar: var(--ink-300); --fill: 33%; }
.section.surface .person { background: var(--paper); }
.section.surface .person.is-lead { background: var(--surface-warm); }
.table-wrap { overflow-x: auto; }
.faq-group + .faq-group { margin-top: 3.5rem; }
.faq-group h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.grid > li > .card { height: 100%; }
.report, .report-pages { grid-template-columns: minmax(0, 1fr); }

/* ---------- Monitor trace across every closing CTA band ---------- */
.band::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 14%;
  left: 0;
  z-index: -1;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 400 60%27%3E%3Cpath d=%27M0 34h120l10-2 8-20 14 40 12-30 10 12h90l10-2 6-12 12 26 10-18 8 6h90%27 fill=%27none%27 stroke=%27%236fd0c9%27 stroke-opacity=%27.45%27 stroke-width=%271.5%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") repeat-x 0 0 / 400px 60px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .band::after { animation: monitor-scroll 6s linear infinite; }
  .card, .person, .meet-card { transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease); }
  .card:hover, .meet-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
  .person:hover { transform: translateY(-2px); }
  .eyebrow::before { transform-origin: left; animation: rule-grow 700ms var(--ease) both; }
}
@keyframes monitor-scroll { from { background-position-x: 0; } to { background-position-x: -400px; } }
@keyframes rule-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Visitor-controlled pause for all looping motion (WCAG 2.2.2). */
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }

/* Form spam protection: honeypot is off-screen; Turnstile widget slot collapses when unused. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:empty { display: none; }

/* ---------- Charts: dark "monitor" style shared by every data chart (.viz) ---------- */
svg.viz {
  display: block; width: 100%; height: auto; overflow: hidden; border-radius: var(--radius-m);
  background: radial-gradient(120% 140% at 0% 0%, #10293a 0%, var(--ink-900) 60%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07), 0 14px 32px rgb(6 19 34 / 0.18);
  font-family: var(--font-body);
}
svg.viz-compact { border-radius: var(--radius-s); }
.viz .v-grid { stroke: rgb(255 255 255 / 0.07); stroke-dasharray: 2 4; }
.viz .v-axis { stroke: rgb(255 255 255 / 0.16); }
.viz .v-label { fill: #8d9cab; font-weight: 500; font-variant-numeric: tabular-nums; }
.viz .v-tag { fill: var(--detect-300); font-weight: 600; letter-spacing: 0.14em; }
.viz .v-tag-muted { fill: #8d9cab; }
.viz .v-tag-alert { fill: var(--restore-300); }
.viz .v-pop { fill: rgb(255 255 255 / 0.035); stroke: rgb(255 255 255 / 0.12); stroke-dasharray: 2 4; }
.viz .v-band { fill: rgb(111 208 201 / 0.14); }
.viz .v-band-edge { stroke: rgb(111 208 201 / 0.45); stroke-dasharray: 3 3; }
.viz .v-base { stroke: rgb(111 208 201 / 0.5); stroke-dasharray: 6 5; }
.viz .v-marker { stroke: var(--restore-300); stroke-dasharray: 4 4; opacity: 0.85; }
.viz .v-marker-dot { fill: var(--restore-300); }
.viz .v-marker-new { stroke: rgb(255 255 255 / 0.22); }
.viz .v-line { fill: none; stroke: var(--detect-300); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.viz .v-line-alert { stroke: var(--restore-300); }
.viz .v-halo { fill: none; stroke: var(--restore-300); stroke-opacity: 0.14; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.viz .v-dot { fill: var(--detect-300); stroke: var(--ink-900); stroke-width: 2; }
.viz .v-dot-alert { fill: var(--restore-300); }
.viz .v-pulse { fill: none; stroke: var(--restore-300); stroke-width: 1.5; opacity: 0; }
.viz .v-fit { stroke: var(--restore-300); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 7 6; }
.viz .v-value { fill: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.viz .v-new { fill: var(--detect-300); stroke: var(--ink-900); stroke-width: 2.5; transition: fill 200ms var(--ease); }
.viz .v-new-halo { fill: var(--detect-300); opacity: 0.18; transition: fill 200ms var(--ease); }
[data-deviation="yes"] .viz .v-new,
[data-deviation="yes"] .viz .v-new-halo { fill: var(--restore-300); }

@media (prefers-reduced-motion: no-preference) {
  .js .viz .v-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) 0.2s; }
  .js .viz .v-line-alert { transition-delay: 1.2s; transition-duration: 1s; }
  .js .viz .v-area, .js .viz .v-halo, .js .viz .v-dots, .js .viz .v-marker, .js .viz .v-marker-dot, .js .viz .v-tag-alert { opacity: 0; transition: opacity 700ms var(--ease) 0.9s; }
  .js .viz .v-halo, .js .viz .v-marker, .js .viz .v-marker-dot, .js .viz .v-tag-alert { transition-delay: 1.6s; }
  .js .viz.is-visible .v-line { stroke-dashoffset: 0; }
  .js .viz.is-visible .v-area, .js .viz.is-visible .v-halo, .js .viz.is-visible .v-dots, .js .viz.is-visible .v-tag-alert, .js .viz.is-visible .v-marker-dot { opacity: 1; }
  .js .viz.is-visible .v-marker { opacity: 0.85; }
  .viz .v-pulse { transform-box: fill-box; transform-origin: center; animation: v-pulse 2.4s ease-out 2.4s infinite; }
}
@keyframes v-pulse {
  0% { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(3.2); }
}

/* Multi-biomarker charts: one colour per marker; coral rings mark points outside the personal band. */
.viz .v-s-plt { --series: var(--detect-300); }
.viz .v-s-mpv { --series: #b3a6ee; }
.viz .v-s-rbc { --series: #e9b960; }
.viz-multi .v-line { stroke: var(--series); }
.viz-multi .v-dot { fill: var(--series); }
.viz-multi .v-dot-out { stroke: var(--restore-300); stroke-width: 1.8; }
.viz .v-swatch { stroke: var(--series); stroke-width: 2.5; stroke-linecap: round; }
.viz .v-legend-text { fill: #c9d3dc; }
.programme-visual svg.viz { width: 84%; }
