/* Services body: the twelve specialties told as four chapters, then the outcome. Each chapter opens differently:
   intro (canvas: headline + counted stats beside the chapter index)
   → 01 Diagnostics (the page's one butter field: split head, then two cards of two different shapes: the lab as a
     white card with its photo on top, imaging as the photo itself with the copy on a scrim; each has a big counted
     figure and its disciplines as compact two-up tiles)
   → 02 Doctors (canvas: a centred head, the GP as a 50/50 photo card, then the data moment: a 22 that counts up over a
     report-style proportion bar (9 · 10 · 3, ticked heads, a scale; on a phone a three-column chart) that fills as
     you scroll, then a ruled index of the three groups: medical and surgical as two-column serif lists, paediatrics
     as a tinted cell)
   → 03 Everyday care (night: split head, one wide photo with a glass count, three ruled columns)
   → 04 Around the visit (canvas: the head and two ruled rows in the left half, one tall picture of the chemistry on
     the right: the page's only non-photographic frame, and never the hero's photo again)
   → Outcomes (an inset photo band inside the gutters, then the footer).
   One photo style: real rooms and real people, one warm grade and the same film grain on every big frame (the
   chemistry frame in 04 is the one render, and it carries the same grade and grain).
   Everything is on the 12-column container; the hero is styled only in services-hero.css. */

/* ---------- shared pieces ---------- */
/* chapter marker: a sentence-case numbered label with a hairline to the row end (not an eyebrow: those are capped) */
.sv-mark {
  display: flex; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-6);
  font-size: var(--fs-small); font-weight: var(--fw-ui); line-height: 1.3;
  color: var(--fg);
}
.sv-mark > span { color: var(--fg-link); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.sv-mark::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--rule-2); margin-left: var(--space-3); }
@media (min-width: 1280px) {
  .sv-mark, .sv-count, .sv-big span, .sv-stats .stat-label, .sv-routes span, .sv-guides, .sv-reading-label { font-size: var(--fs-card); }
}

/* split section head: heading on the left seven columns, lede on the right five, sharing the heading's last line */
.sv-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap);
  align-items: end; margin-bottom: var(--stack);
}
.sv-head > .sv-mark { grid-column: 1 / -1; }
.sv-head > h2 { grid-column: 1 / span 7; max-width: 15ch; }
.sv-head > .lede { grid-column: 8 / -1; max-width: 40ch; padding-bottom: 0.35em; }

/* the small meta row of a card: its tag on the left, a counted figure on the right */
.sv-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.sv-count { font-size: var(--fs-small); font-weight: var(--fw-ui); line-height: 1.3; color: var(--fg-3); white-space: nowrap; }
.sv-count b { font-weight: var(--fw-ui); color: var(--fg-link); font-variant-numeric: tabular-nums; }

/* a photo-led card: the photo runs flush to the card's top edge, the copy sits under it */
.sv-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.sv-card > .media { border-radius: 0; aspect-ratio: 16 / 10; flex: 0 0 auto; }
.sv-card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: var(--card-pad); padding-top: calc(var(--card-pad) * 1.1); }

/* one shoot: every body photo gets the same warm grade; the cooler clinic shot gets a little more */
.sv-grade > img { filter: sepia(0.1) saturate(1.02); }
.sv-grade-cool > img { filter: sepia(0.38) saturate(0.82) brightness(1.03) contrast(0.96); }
/* and the same film grain the hero and the photo band wear, so an enlarged frame stays crisp and photographic */
.sv-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--grain); opacity: 0.16; mix-blend-mode: overlay;
}

/* specialty chips: quiet pills that read as a set (not buttons: nothing here is tappable) */
.sv-chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sv-chips > li {
  display: inline-flex; align-items: center;
  min-height: 34px; padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--tint); color: var(--ink-2);
  font-size: var(--fs-small); font-weight: var(--fw-ui); line-height: 1.2;
}

/* ---------- intro: headline, counted stats, the chapter index ---------- */
/* the butter field below fades in from the canvas, so the intro gives up its own bottom padding: one gap, not two */
.sv-intro { padding-bottom: 0; }
.sv-intro-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: var(--stack);
  align-items: end;
}
.sv-intro-copy { grid-column: 1 / span 6; }
.sv-intro-copy h2 { max-width: 16ch; }
.sv-intro-copy .lede { margin-top: var(--space-6); max-width: 38ch; }
/* three equal stat columns: the divider sits in the middle of the gap, so every figure gets the same width */
.sv-stats { --sv-stat-gap: var(--space-8); column-gap: var(--sv-stat-gap); margin-top: var(--stack); padding-top: var(--space-6); border-top: 1px solid var(--rule-2); max-width: 36rem; }
.sv-stats > .stat + .stat { position: relative; border-left: 0; padding-left: 0; }
.sv-stats > .stat + .stat::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--sv-stat-gap) / -2); width: 1px; background: var(--rule-2); }
.sv-stats .stat-label { max-width: 16ch; }
.sv-index { grid-column: 7 / -1; }
.sv-index .thumb-text { padding-top: 0; }
.sv-index .thumb-text b { display: flex; align-items: baseline; gap: var(--space-3); }
.sv-index .thumb-text b i {
  font-family: var(--font-sans); font-style: normal; font-weight: var(--fw-ui);
  font-size: var(--fs-small); letter-spacing: 0.04em; color: var(--teal-700); font-variant-numeric: tabular-nums;
}
.sv-index .thumb-text b + span { padding-left: calc(2ch + var(--space-3)); }
.sv-index .thumb { filter: sepia(0.12); }
.sv-thumb-dx { --thumb-pos: 40% 35%; }
.sv-thumb-gp { --thumb-pos: 28% 42%; }
.sv-thumb-care { --thumb-pos: 52% 62%; }
.sv-thumb-net { --thumb-pos: 50% 50%; }
/* these rows jump down the page: the arrow points down and nudges down */
.sv-index .arrow-badge .icon-arrow { rotate: 90deg; }
@media (hover: hover) { .sv-index a:hover .arrow-badge { transform: translateY(3px); } }
.sv-index a:focus-visible .arrow-badge { transform: translateY(3px); }

/* ---------- 01 Diagnostics (the butter field) ---------- */
.sv-dx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); align-items: stretch; }
.sv-dx .sv-card > .media { aspect-ratio: 3 / 2; }
/* the card head: tag and title on the left, the counted figure standing on the right, a rule under both */
.sv-card-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5);
  padding-bottom: var(--space-5); margin-bottom: var(--space-5); border-bottom: 1px solid var(--rule-2);
}
.sv-title {
  margin-top: var(--space-3);
  font-size: var(--fs-h2); font-weight: var(--fw-title); line-height: 1.05; letter-spacing: -0.02em;
}
.sv-big { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.sv-big b {
  font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-stat);
  line-height: 0.8; letter-spacing: -0.04em; color: var(--fg); font-variant-numeric: lining-nums tabular-nums;
}
.sv-big span { margin-top: var(--space-3); font-size: var(--fs-small); font-weight: var(--fw-ui); line-height: 1.2; color: var(--fg-3); }
/* disciplines: compact tinted tiles, two up, a teal dot and the name in the serif */
.sv-tiles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.sv-tiles > li {
  display: flex; align-items: center; gap: var(--space-3);
  min-height: 56px; padding: var(--space-3) var(--space-4);
  border-radius: var(--r-sm); background: var(--tint);
  font-family: var(--font-display); font-weight: var(--fw-title); font-size: var(--fs-row);
  line-height: 1.2; letter-spacing: -0.01em; color: var(--fg);
}
.sv-tiles > li::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-500); }

/* imaging: the card IS the photo (Neko's photo cards). The scanner room fills the frame, the copy sits on a bottom
   scrim and the modalities on dark glass, so the two diagnostics cards never share a shape. The scrim only darkens
   the lower half: her face and the ring light stay clean */
.sv-card-img {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 560px;
  border-radius: var(--r-lg); background: var(--night-2);
}
.sv-img-media { position: absolute; inset: 0; z-index: -2; border-radius: 0; background: var(--night-2); }
.sv-img-media > img { object-position: 42% 40%; }
.sv-card-img::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--scrim-bottom-tall); }
.sv-img-body { position: relative; padding: var(--card-pad); padding-top: var(--space-11); }
.sv-card-img .tag {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px;
  border-radius: var(--r-pill); border: 1px solid var(--glass-line);
  background: var(--glass-dark); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.sv-card-img .sv-title { text-shadow: var(--fg-shadow); }
.sv-card-img .sv-big b { text-shadow: var(--fg-shadow); }
.sv-card-img .sv-tiles > li {
  background: var(--glass-dark); box-shadow: inset 0 0 0 1px var(--glass-line);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.sv-card-img .sv-tiles > li::before { background: var(--teal-300); }

/* ---------- 02 Doctors: centred head → GP card → the 22-specialty index ---------- */
/* the one centred head on the page: the chapter marker carries a hairline on both sides */
.sv-head-center { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0 auto var(--stack); max-width: 62rem; }
.sv-mark-center { align-self: stretch; justify-content: center; }
.sv-mark-center::before { content: ""; flex: 1 1 auto; height: 1px; background: var(--rule-2); margin-right: var(--space-3); }
.sv-head-center h2 { max-width: 17ch; }
.sv-head-center .lede { margin-top: var(--space-5); max-width: 44ch; }

/* the GP: a true 50/50 card. Copy on the left half, the consulting room running to the card's own edges on the right */
.sv-gp {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0; overflow: hidden;
}
.sv-gp-copy {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: clamp(var(--panel-pad), 3.4vw, var(--space-11));
}
.sv-gp-title { margin: var(--space-4) 0 var(--space-4); font-size: var(--fs-h2); font-weight: var(--fw-title); line-height: 1.04; letter-spacing: -0.02em; }
.sv-gp-copy > p { font-size: var(--fs-lede); line-height: 1.5; color: var(--fg-2); max-width: 34ch; }
.sv-gp-btn { margin-top: var(--space-8); }
.sv-gp-media { border-radius: 0; min-height: clamp(520px, 33vw, 640px); background: var(--canvas-2); }
.sv-gp-media > img { object-position: 6% 50%; }
@media (min-width: 1700px) { .sv-gp-media { min-height: 720px; } .sv-gp-media > img { object-position: 2% 50%; } }

/* three steps: GP → one file → specialist, as three tiles on the card. The first is the accent tile (you start here),
   the other two white; big serif numerals, and a small arrow in each gap that nudges the eye along */
.sv-steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3);
  align-self: stretch; margin-top: var(--space-8);
}
.sv-steps > li {
  position: relative;
  display: flex; flex-direction: column; gap: var(--space-1);
  padding: var(--space-5);
  border-radius: var(--r-sm); background: var(--surface);
}
.sv-steps > li:first-child { background: var(--accent); color: var(--on-accent); }
.sv-steps b {
  margin-bottom: var(--space-7);
  font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-stat-sm);
  line-height: 0.95; letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; color: var(--fg);
}
.sv-steps > li:first-child b { font-style: italic; }
.sv-steps strong { font-size: var(--fs-card); font-weight: var(--fw-ui); line-height: 1.3; color: var(--fg); }
.sv-steps span { font-size: var(--fs-small); line-height: 1.4; color: var(--fg-2); }
.sv-steps > li:first-child :is(b, strong, span) { color: var(--on-accent); }
/* the arrow between two tiles: a disc in the card's own tint, so it reads as a notch joining the tiles */
.sv-steps > li:not(:last-child)::after {
  content: ""; position: absolute; z-index: 1; top: var(--space-6); right: calc(var(--space-3) / -2 - 12px);
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--tint);
}
.sv-steps > li:not(:last-child)::before {
  content: ""; position: absolute; z-index: 2; top: calc(var(--space-6) + 6px); right: calc(var(--space-3) / -2 - 6px);
  width: 12px; height: 12px; background-color: var(--fg-link);
  -webkit-mask: var(--icon-arrow) no-repeat center / contain; mask: var(--icon-arrow) no-repeat center / contain;
}

/* ---------- the data moment: 22 specialties ----------
   A 22 that counts up, then one report-style proportion bar: three segments (9 medical · 10 surgical · 3 paediatric)
   with their counted figures standing on ticks above them and a quiet scale under. The segments fill in turn as the
   bar crosses the screen (data-scrub="once": latched, so a full-page capture shows it filled) */
.sv-spec { margin-top: var(--section-y-sm); }
.sv-ch-med, .sv-col-med { --seg: var(--teal-800); --sv-n: 9; --sv-at: 0; }
.sv-ch-surg, .sv-col-surg { --seg: var(--teal-600); --sv-n: 10; --sv-at: 0.22; }
.sv-ch-paed, .sv-col-paed { --seg: var(--teal-300); --sv-n: 3; --sv-at: 0.44; }

.sv-total {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: var(--space-5);
  align-items: end; margin-bottom: var(--space-10);
}
.sv-total-num {
  grid-column: 1 / span 8;
  font-family: var(--font-display); font-weight: var(--fw-title); font-size: var(--fs-h2);
  line-height: 1.05; letter-spacing: -0.02em; color: var(--fg);
}
/* inline-blocks (not flex items) so the counter can hold its final width while it counts */
.sv-total-num b {
  display: inline-block; vertical-align: baseline; margin-right: var(--space-5);
  font-weight: var(--fw-display); font-style: italic; font-size: calc(var(--fs-stat) * 2.5);
  line-height: 0.8; letter-spacing: -0.05em; color: var(--fg-em); font-variant-numeric: lining-nums tabular-nums;
}
.sv-total-num span { display: inline-block; vertical-align: baseline; max-width: 13ch; }
.sv-total-note { grid-column: 9 / -1; max-width: 34ch; padding-bottom: 0.45em; font-size: var(--fs-body); line-height: 1.5; color: var(--fg-2); }

.sv-chart { display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 10fr) minmax(0, 3fr); column-gap: 3px; }
.sv-ch { display: flex; flex-direction: column; min-width: 0; }
/* the head stands on a tick: a hairline from the top of the figure down to the bar */
.sv-ch-head { flex: 1 1 auto; padding: var(--space-1) 0 var(--space-5) var(--space-4); border-left: 1px solid var(--rule-2); }
.sv-ch-head b {
  display: inline-block;
  font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-stat);
  line-height: 0.86; letter-spacing: -0.04em; color: var(--fg); font-variant-numeric: lining-nums tabular-nums;
}
.sv-ch-head span { display: block; margin-top: var(--space-3); font-size: var(--fs-card); font-weight: var(--fw-ui); line-height: 1.2; color: var(--fg-2); white-space: nowrap; }
.sv-ch-bar { position: relative; display: block; height: 16px; overflow: hidden; background: var(--viz-track); }
.sv-ch-med .sv-ch-bar { border-radius: var(--r-pill) 0 0 var(--r-pill); }
.sv-ch-paed .sv-ch-bar { border-radius: 0 var(--r-pill) var(--r-pill) 0; }
.sv-ch-bar::before { content: ""; position: absolute; inset: 0; background: var(--seg); transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  html.js .sv-chart.is-scrub .sv-ch-bar::before {
    scale: clamp(0, calc((var(--p, 1) - var(--sv-at)) / 0.5), 1) 1;
    transition: scale 320ms var(--ease-out);
  }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 640px) {
  html.js .sv-chart.is-scrub .sv-ch-bar::before { scale: 1 clamp(0, calc((var(--p, 1) - var(--sv-at)) / 0.5), 1); }
}
.sv-ticks { display: none; }
/* the scale: where each group starts and ends, in specialties */
.sv-scale {
  position: relative; height: 1.5rem; margin-top: var(--space-3);
  font-size: var(--fs-eyebrow); font-weight: var(--fw-ui); line-height: 1; color: var(--fg-3); font-variant-numeric: tabular-nums;
}
.sv-scale > span { position: absolute; top: 0; translate: -50% 0; }
.sv-scale > .sv-s0 { left: 0; translate: none; }
.sv-scale > .sv-s9 { left: calc(9 / 22 * 100%); }
.sv-scale > .sv-s19 { left: calc(19 / 22 * 100%); }
.sv-scale > .sv-s22 { left: auto; right: 0; translate: none; }

/* the index: medical and surgical as two-column ruled serif lists, paediatrics as a tinted cell, reading links under */
.sv-groups {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr;
  column-gap: var(--grid-gap); row-gap: var(--space-8);
  margin-top: var(--space-10); align-items: start;
}
.sv-group { min-width: 0; }
.sv-col-med { grid-column: 1 / span 4; grid-row: 1; padding-top: var(--card-pad); }
.sv-col-surg { grid-column: 5 / span 4; grid-row: 1; padding-top: var(--card-pad); }
.sv-col-paed { grid-column: 9 / -1; grid-row: 1 / span 2; }
.sv-reading { grid-column: 1 / span 8; grid-row: 2; align-self: end; }
.sv-group-title {
  display: flex; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--fs-title); font-weight: var(--fw-title); line-height: 1.15; letter-spacing: -0.01em;
}
/* the key: a short length of the group's own bar colour */
.sv-key { flex: 0 0 auto; width: 20px; height: 6px; border-radius: var(--r-pill); background: var(--seg); }
.sv-names {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--grid-gap);
  border-top: 1px solid var(--rule-2);
}
.sv-names > li {
  display: flex; align-items: center; min-height: 52px; padding: var(--space-3) 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display); font-weight: var(--fw-title); font-size: var(--fs-row);
  line-height: 1.2; letter-spacing: -0.01em; color: var(--fg);
}
/* paediatrics: Function's tinted end cell. The three routes ruled, the child-wellness link pinned to its foot */
.sv-col-paed { display: flex; flex-direction: column; gap: var(--space-6); padding: var(--card-pad); border-radius: var(--r-lg); background: var(--tint); }
.sv-routes { list-style: none; border-top: 1px solid var(--rule-2); }
.sv-routes > li { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) 0; border-bottom: 1px solid var(--rule); }
.sv-routes b { font-family: var(--font-display); font-weight: var(--fw-title); font-size: var(--fs-row); line-height: 1.25; letter-spacing: -0.01em; color: var(--fg); }
.sv-routes span { font-size: var(--fs-small); line-height: 1.45; color: var(--fg-2); }
.sv-spec-more {
  --card-r: var(--r-sm);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-4); align-items: start;
  margin-top: auto; padding: var(--space-5) var(--space-6) var(--space-6);
  color: var(--fg); text-decoration: none;
}
.sv-spec-more > .arrow-badge { --badge-bg: var(--tint); }
.sv-spec-more-text { display: flex; flex-direction: column; gap: var(--space-2); }
.sv-spec-more-text b { font-family: var(--font-display); font-weight: var(--fw-title); font-size: var(--fs-title); line-height: 1.15; letter-spacing: -0.01em; }
.sv-spec-more-text b em { color: var(--fg-em-sm); }
.sv-guides { margin-top: var(--space-2); font-size: var(--fs-small); line-height: 1.5; color: var(--fg-2); }

/* "+N more" (phones only): a tinted end cell that opens the rest of the column; the full list is always in the markup */
.sv-more { display: none; }
.sv-more > summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  min-height: 52px; padding: 0 var(--space-4);
  border-radius: var(--r-sm); background: var(--tint); cursor: pointer; list-style: none;
  font-size: var(--fs-small); font-weight: var(--fw-ui); color: var(--fg-2);
}
.sv-more > summary::-webkit-details-marker { display: none; }
.sv-more-open em {
  font-family: var(--font-display); font-weight: var(--fw-title); font-size: var(--fs-title);
  color: var(--fg-em-sm); margin-right: 2px;
}
.sv-more-close { display: none; }
.sv-more[open] .sv-more-open { display: none; }
.sv-more[open] .sv-more-close { display: inline; }
.sv-more-icon {
  flex: 0 0 auto; width: 14px; height: 14px; background-color: var(--fg-link);
  -webkit-mask: var(--icon-chevron) no-repeat center / contain; mask: var(--icon-chevron) no-repeat center / contain;
  transition: rotate var(--dur-2) var(--ease-out);
}
.sv-more[open] .sv-more-icon { rotate: 180deg; }

/* the reading links: one row under the two lists */
.sv-reading { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-6); row-gap: 0; }
.sv-reading-label { font-size: var(--fs-small); font-weight: var(--fw-ui); line-height: 1.3; color: var(--fg-3); }
.sv-reading .links { margin-top: 0; column-gap: var(--space-6); }
.sv-reading .links:last-child { margin-bottom: 0; }
/* desktop: the label over the links, under a hairline, closing the two lists beside the paediatric cell */
@media (min-width: 981px) {
  .sv-reading { flex-direction: column; align-items: flex-start; row-gap: var(--space-2); padding-top: var(--space-5); border-top: 1px solid var(--rule-2); }
}

/* ---------- 03 Everyday care (night): one wide photo, three ruled columns ---------- */
/* the caption sits over the frame but outside its clip, so it (and its counter) shows while the photo wipes in */
.sv-care-fig { position: relative; margin-bottom: var(--stack); }
.sv-care-media { aspect-ratio: 21 / 9; background: var(--night-2); }
.sv-care-media > img { object-position: 50% 46%; }
.sv-care-cap {
  position: absolute; left: var(--card-pad); bottom: var(--card-pad); z-index: 2;
  display: inline-flex; align-items: baseline; gap: var(--space-2);
  min-height: 44px; padding: 8px 18px 8px 16px;
  border-radius: var(--r-pill); background: var(--glass-dark);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  color: var(--on-photo); font-size: var(--fs-small); font-weight: var(--fw-ui); line-height: 1.2;
}
.sv-care-cap b {
  font-family: var(--font-display); font-weight: var(--fw-title); font-size: var(--fs-h3); line-height: 1;
  font-variant-numeric: lining-nums tabular-nums; color: var(--teal-300);
}
.sv-care-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: var(--space-8); }
.sv-care-item { display: flex; flex-direction: column; padding-top: var(--space-5); border-top: 1px solid var(--rule-2); }
.sv-care-meter { --meter-h: 3px; margin-top: var(--space-3); }
.sv-care-title { margin: var(--space-4) 0 var(--space-3); font-size: var(--fs-h3); font-weight: var(--fw-title); line-height: 1.1; letter-spacing: -0.015em; }
.sv-care-copy { display: flex; flex-direction: column; flex: 1 1 auto; }
.sv-care-copy > p:not(.links) { font-size: var(--fs-card); line-height: 1.55; color: var(--fg-2); max-width: 46ch; }
.sv-care-copy > .links { margin-top: auto; padding-top: var(--space-3); }

/* ---------- 04 Around the visit: head and two ruled rows on the left, one tall picture on the right ---------- */
.sv-net-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap);
  align-items: stretch;
}
.sv-net-main { grid-column: 1 / span 6; display: flex; flex-direction: column; }
.sv-net-head h2 { max-width: 13ch; }
.sv-net-head .lede { margin-top: var(--space-5); max-width: 38ch; }
.sv-net-list { margin-top: var(--stack); border-top: 1px solid var(--rule-2); }
.sv-net-item { display: flex; flex-direction: column; align-items: stretch; padding-block: var(--space-7); border-bottom: 1px solid var(--rule-2); }
.sv-net-item:last-child { border-bottom: 0; padding-bottom: 0; }
.sv-net-title { margin: var(--space-3) 0 var(--space-3); font-size: var(--fs-h2); font-weight: var(--fw-title); line-height: 1.04; letter-spacing: -0.02em; }
.sv-net-item > p:not(.links, .sv-meta) { font-size: var(--fs-card); line-height: 1.55; color: var(--fg-2); max-width: 44ch; }
.sv-net-item .sv-chips { margin-top: var(--space-5); }
.sv-net-item .links { margin-top: var(--space-3); }
.sv-net-media { grid-column: 7 / -1; min-height: 560px; background: var(--canvas-2); }
.sv-net-media > img { object-position: 50% 45%; }

/* ---------- Outcomes: the closing photo band, inside the gutters ----------
   .bleed-inset keeps it on the same left and right edges as every block above; it ends one section gap above the
   footer so the band reads as a framed picture, never a seam */
.sv-outcomes {
  --photo-pos: 50% 30%;
  min-height: clamp(520px, 80svh, 820px);
  margin-inline: max(var(--gutter), (100% - var(--max)) / 2);
  margin-bottom: var(--section-y);
}
/* the scrims stay behind the copy: they fade out across the photo so the figure on the right keeps its light */
.sv-outcomes .bleed-media::after {
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 42%, transparent 74%);
  mask-image: linear-gradient(90deg, black 0%, black 42%, transparent 74%);
}
.sv-outcomes .display-2 { max-width: 12ch; }
.sv-outcomes .lede { max-width: 36ch; }
.sv-out-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

/* ---------- ≤ 980: tablet ---------- */
@media (max-width: 980px) {
  .sv-head > :is(h2, .lede) { grid-column: 1 / -1; }
  .sv-head > .lede { margin-top: var(--space-5); padding-bottom: 0; }
  .sv-intro-copy, .sv-index { grid-column: 1 / -1; }
  .sv-index { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--grid-gap); }
  .sv-stats { max-width: none; }
  /* the two diagnostics cards stay side by side: the figure drops under the title, the tiles go one column */
  .sv-dx .sv-card > .media { aspect-ratio: 4 / 3; }
  .sv-dx .sv-title { font-size: var(--fs-h3); }
  .sv-tiles > li { min-height: 52px; padding: var(--space-3); gap: var(--space-2); font-size: var(--fs-card); }
  /* the GP card stacks: the consulting room on top, the copy and the three steps across under it */
  .sv-gp { grid-template-columns: 1fr; }
  .sv-gp-media { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
  .sv-gp-media > img { object-position: 30% 50%; }
  .sv-gp-copy { padding: var(--panel-pad); }
  .sv-gp-copy > p { max-width: 46ch; }
  /* the data moment: the 22 across, its note under it */
  .sv-total { grid-template-columns: 1fr; margin-bottom: var(--space-9); }
  .sv-total-num, .sv-total-note { grid-column: 1 / -1; }
  .sv-ch-head span { font-size: var(--fs-small); }
  .sv-ch-paed .sv-ch-head { padding-left: var(--space-3); }
  /* the index: medical and surgical side by side as one-column ruled lists; paediatrics across, routes beside the link */
  .sv-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; margin-top: var(--space-9); }
  .sv-col-med { grid-column: 1; padding-top: 0; }
  .sv-col-surg { grid-column: 2; padding-top: 0; }
  .sv-names { grid-template-columns: 1fr; }
  .sv-names > li { min-height: 48px; }
  .sv-col-paed {
    grid-column: 1 / -1; grid-row: 2;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--grid-gap); align-items: stretch;
  }
  .sv-col-paed > .sv-spec-more { margin-top: 0; align-content: space-between; }
  .sv-reading { grid-column: 1 / -1; grid-row: 3; }
  /* care: the photo across, then each discipline as a ruled row: its head on the left, the copy and link on the right */
  .sv-care-media { aspect-ratio: 16 / 9; }
  .sv-care-grid { grid-template-columns: 1fr; row-gap: 0; }
  .sv-care-item {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap);
    padding-block: var(--space-6); align-items: start;
  }
  .sv-care-item:last-child { padding-bottom: 0; }
  .sv-care-head { grid-column: 1 / span 5; }
  .sv-care-head > .sv-meta { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
  .sv-care-head > .sv-care-meter { max-width: 80%; }
  .sv-care-head > .sv-care-title { margin-bottom: 0; }
  .sv-care-copy { grid-column: 6 / -1; }
  .sv-care-copy > .links { margin-top: 0; padding-top: var(--space-3); }
  .sv-net-main { grid-column: 1 / span 7; }
  .sv-net-media { grid-column: 8 / -1; min-height: 0; }
  .sv-net-title { font-size: var(--fs-h3); }
  /* a taller band: the photo scales up, so her head stays above the copy and the copy sits on her shoulders */
  .sv-outcomes { --photo-pos: 30% 30%; min-height: clamp(560px, 82svh, 860px); }
  .sv-outcomes .bleed-media::after { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- ≤ 640: phone ---------- */
@media (max-width: 640px) {
  .sv-index { grid-template-columns: 1fr; }
  /* three stats stay in one row on a phone: short labels, hairline dividers in the middle of the gap */
  .sv-stats { --stat-cols: 3; --sv-stat-gap: var(--space-6); }
  .sv-stats > .stat + .stat { border-top: 0; padding-top: 0; }
  /* diagnostics: one card under the other; two photo shapes (a deeper lab, a wide scanner strip), tiles two up */
  .sv-dx-grid { grid-template-columns: 1fr; }
  .sv-dx .sv-card-lab > .media { aspect-ratio: 3 / 2; }
  .sv-card-img { min-height: 600px; }
  .sv-img-media > img { object-position: 40% 40%; }
  .sv-img-body { padding-top: var(--space-12); }
  .sv-dx .sv-title { font-size: var(--fs-h2); }
  .sv-card-head { padding-bottom: var(--space-4); margin-bottom: var(--space-4); }
  .sv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-tiles > li { min-height: 48px; padding: 10px var(--space-3); }
  .sv-head-center { align-items: flex-start; text-align: left; }
  .sv-mark-center { justify-content: flex-start; }
  .sv-mark-center::before { content: none; }
  .sv-gp-media { aspect-ratio: 4 / 3; }
  .sv-gp-media > img { object-position: 24% 50%; }
  .sv-gp-copy { padding: var(--card-pad); }
  .sv-gp-btn { align-self: stretch; }
  /* the tiles become rows: numeral on the left, the arrow on the gap below each row points down */
  .sv-steps { grid-template-columns: 1fr; gap: var(--space-2); margin-top: var(--space-7); }
  .sv-steps > li {
    display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); column-gap: var(--space-3); align-items: baseline;
    min-height: 0; padding: var(--space-4);
  }
  .sv-steps b { grid-row: 1 / span 2; margin: 0; padding: 0; font-size: var(--fs-h2); }
  .sv-steps span { grid-column: 2; }
  .sv-steps > li:not(:last-child)::after { top: auto; bottom: calc(var(--space-2) / -2 - 12px); right: var(--space-5); }
  .sv-steps > li:not(:last-child)::before { top: auto; bottom: calc(var(--space-2) / -2 - 6px); right: calc(var(--space-5) + 6px); rotate: 90deg; }
  /* the data moment on a phone: the 22 big, then a column chart (Function's bars). Three columns on one baseline,
     each as tall as its group (10 = the full height) over hairline gridlines at 5 and 10, its counted figure on top
     and its name under the baseline. The columns grow in turn as the chart crosses the screen */
  .sv-total { margin-bottom: var(--space-8); }
  .sv-total-num b { margin-right: var(--space-4); }
  .sv-total-num span { max-width: 11ch; font-size: var(--fs-h3); }
  .sv-total-note { font-size: var(--fs-card); }
  .sv-chart {
    --sv-col-h: 196px; --sv-lab-h: 44px;
    position: relative;
    grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-3); align-items: end;
  }
  /* gridlines at 5 and 10, the baseline (0) a little stronger */
  .sv-chart::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: calc(var(--sv-lab-h) + 1px); height: var(--sv-col-h);
    background: repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px calc(var(--sv-col-h) / 2));
    pointer-events: none;
  }
  .sv-chart::after { content: ""; position: absolute; left: 0; right: 0; bottom: var(--sv-lab-h); height: 1px; background: var(--rule-2); }
  .sv-ch { position: relative; justify-content: flex-end; }
  .sv-ch-head { display: contents; }
  /* each figure knocks its gridline out (a canvas face behind it), the way a printed chart sets a label on a rule */
  .sv-ch-head b {
    order: 0; align-self: flex-start; margin-bottom: var(--space-2); padding-right: var(--space-2);
    background: var(--canvas); font-size: var(--fs-stat); line-height: 0.9;
  }
  .sv-ch .sv-ch-bar {
    order: 1; height: calc(var(--sv-n) / 10 * var(--sv-col-h));
    border-radius: var(--r-sm) var(--r-sm) 0 0; background: none;
  }
  .sv-ch-bar::before { transform-origin: center bottom; }
  .sv-ch-head span {
    order: 2; height: var(--sv-lab-h); margin: 0; padding-top: var(--space-3);
    font-size: var(--fs-card); color: var(--fg-2);
  }
  .sv-scale { display: none; }
  /* the gridlines' values, as small tick pills on the right end of each line */
  .sv-ticks {
    display: block; position: absolute; right: 0; bottom: calc(var(--sv-lab-h) + 1px); height: var(--sv-col-h); width: 3rem;
    pointer-events: none;
  }
  .sv-ticks > span {
    position: absolute; right: 0; translate: 0 -50%;
    padding: 2px 7px; border-radius: var(--r-pill); border: 1px solid var(--rule-2); background: var(--canvas);
    font-size: var(--fs-eyebrow); font-weight: var(--fw-ui); line-height: 1.2; color: var(--fg-3); font-variant-numeric: tabular-nums;
  }
  .sv-ticks > span:first-child { top: 0; }
  .sv-ticks > span:last-child { top: 50%; }
  /* medical | surgical: two columns of five, a "+N more" cell under each; paediatrics across below */
  .sv-groups { column-gap: var(--space-4); row-gap: var(--space-8); margin-top: var(--space-9); }
  .sv-group-title { align-items: flex-start; margin-bottom: var(--space-3); font-size: var(--fs-row); }
  .sv-group-title .sv-key { margin-top: 0.55em; width: 14px; }
  .sv-names > li { min-height: 44px; padding: var(--space-2) 0; font-size: var(--fs-card); }
  .sv-more { display: block; margin-top: var(--space-3); }
  .sv-group:has(> .sv-more):not(:has(> .sv-more[open])) .sv-names > li:nth-child(n + 6) { display: none; }
  .sv-col-paed { display: flex; }
  .sv-col-paed .sv-group-title { min-height: 0; }
  .sv-col-paed > .sv-spec-more { margin-top: 0; }
  .sv-spec-more { padding: var(--space-5); }
  .sv-spec-more-text b { font-size: var(--fs-title); }
  .sv-reading { flex-direction: column; align-items: flex-start; }
  /* care: the photo cropped in on the held hands and the smile, the disciplines one under another */
  .sv-care-media { aspect-ratio: 4 / 3; }
  .sv-care-media > img { object-position: 58% 50%; }
  .sv-care-cap { left: var(--space-3); bottom: var(--space-3); padding: 6px 14px 6px 12px; }
  .sv-care-cap b { font-size: var(--fs-title); }
  .sv-care-item { display: flex; align-items: stretch; padding-block: var(--space-6); }
  .sv-care-head > .sv-meta { flex-direction: row; align-items: center; }
  .sv-care-head > .sv-care-meter { max-width: none; }
  .sv-care-head > .sv-care-title { margin-bottom: var(--space-3); }
  .sv-care-copy > .links { margin-top: var(--space-2); padding-top: 0; }
  /* head, then the picture, then the rows */
  .sv-net-main { display: contents; }
  .sv-net-head, .sv-net-media, .sv-net-list { grid-column: 1 / -1; }
  .sv-net-media { order: 1; aspect-ratio: 4 / 5; margin-top: var(--stack); }
  .sv-net-list { order: 2; }
  .sv-net-item { padding-block: var(--space-7); }
  .sv-outcomes { --photo-pos: 60% 20%; min-height: clamp(520px, 74svh, 640px); }
  .sv-outcomes .display-2 { max-width: none; }
}
