/* ==========================================================================
   Double Eagle Chiropractic — design system
   Tokens → primitives → components → templates. Plain CSS custom properties.
   No framework, no build step for the CSS itself.

   Contrast notes (measured, not assumed — see site/RULES.md):
     navy   #1C4164 on white  10.6:1  ✅ AA/AAA, any size
     sage   #6D824A on white   4.3:1  ⚠️ large text & UI only — use --sage-text for body
     gold   #A97926 on white   3.9:1  ⚠️ large text & UI only — use --gold-text for body
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */
:root {
  /* Brand — sampled from the logo */
  --navy:        #1C4164;
  --navy-deep:   #143550;
  --sage:        #6D824A;
  --ink:         #051329;
  --gold:        #A97926;

  /* Accessible text variants of the two low-contrast brand colours */
  --sage-text:   #5A6C3D;   /* 5.8:1 on white */
  --gold-text:   #8A6118;   /* 5.5:1 on white */

  /* Surfaces */
  --surface:        #FFFFFF;
  --surface-sunk:   #F6F5F1;  /* warm off-white — kills the flat-template feel */
  --surface-raised: #FFFFFF;
  --surface-navy:   #16354F;
  --border:         #E2DFD7;
  --border-strong:  #C9C4B8;

  /* Text */
  --text:        #1A1F26;
  --text-muted:  #5B6470;   /* 5.9:1 on white */
  --text-invert: #F7F6F2;

  /* Semantic */
  --ok:      #2F6B45;
  --warn:    #8A5A12;
  --stop:    #8C2F2A;

  /* Type — two families, minimal weights (SEO/perf constraint) */
  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans:  "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Modular scale, 1.200 minor third, fluid between 360px and 1200px */
  --step--1: clamp(0.83rem, 0.80rem + 0.14vw, 0.92rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.13rem + 0.32vw, 1.41rem);
  --step-2:  clamp(1.44rem, 1.32rem + 0.53vw, 1.77rem);
  --step-3:  clamp(1.73rem, 1.53rem + 0.85vw, 2.21rem);
  --step-4:  clamp(2.07rem, 1.76rem + 1.33vw, 2.76rem);
  --step-5:  clamp(2.49rem, 2.01rem + 2.05vw, 3.45rem);
  --step-6:  clamp(2.60rem, 1.90rem + 3.00vw, 4.20rem);   /* traditional hero only */

  --lh-tight: 1.15;
  --lh-snug:  1.3;
  --lh-body:  1.65;
  --measure:  66ch;   /* long-form article body */

  /* Space — 4px base */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 6rem;     --sp-10: 8rem;

  /* Radii — sparing */
  --r-sm: 4px;  --r-md: 8px;  --r-lg: 14px;  --r-pill: 999px;

  /* Elevation — restrained */
  --shadow-1: 0 1px 2px rgb(5 19 41 / 0.06), 0 1px 1px rgb(5 19 41 / 0.04);
  --shadow-2: 0 4px 16px rgb(5 19 41 / 0.08), 0 1px 3px rgb(5 19 41 / 0.05);
  --shadow-focus: 0 0 0 3px #FFF, 0 0 0 6px var(--navy);

  /* Motion tokens — durations, easings, distances, stagger */
  --dur-instant: 90ms;
  --dur-quick:   180ms;
  --dur-base:    320ms;
  --dur-settle:  520ms;
  --dur-max:     600ms;              /* nothing longer, per the brief */
  --ease-settle: cubic-bezier(.16,.84,.44,1);
  --ease-out:    cubic-bezier(.22,1,.36,1);
  --ease-inout:  cubic-bezier(.65,0,.35,1);
  --rise:        22px;               /* reveal distance — visible, not a slide */
  --dur-reveal:  600ms;              /* the scroll reveal — at the ceiling */
  --stagger:     70ms;

  --header-h: 68px;
  --wrap:     1140px;
  --wrap-narrow: 760px;
}
/* ------------------------------------------------------------ 2. Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: var(--lh-body);
  /* Texture: a whisper of warm mesh so it doesn't read as flat-white template. */
  background-image:
    radial-gradient(60rem 40rem at 88% -10%, rgb(109 130 74 / 0.055), transparent 60%),
    radial-gradient(50rem 34rem at -8% 4%,  rgb(28 65 100 / 0.05),  transparent 62%);
  background-attachment: fixed;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: var(--lh-tight); margin: 0 0 var(--sp-4); text-wrap: balance; }
h1 { font-size: var(--step-5); letter-spacing: -0.015em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p, li { text-wrap: pretty; }
p  { margin: 0 0 var(--sp-4); }
a  { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: var(--r-sm); }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-7) 0; }

/* ---------------------------------------------------------- 3. Layout bits */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--sp-8); }
/* On a phone two sections' padding stack into a 128px hole between the doctor
   card and the carousel, and again before the Schedule band. 48px each side
   keeps the rhythm without the gap reading as a missing block. */
@media (max-width: 719px) { .section { padding-block: var(--sp-7); } }
.section--sunk { background: var(--surface-sunk); border-block: 1px solid var(--border); }
.section--navy { background: var(--surface-navy); color: var(--text-invert); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a { color: #CFE0EF; }
.stack > * + * { margin-top: var(--sp-4); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--text-muted); max-width: 52ch; }
.eyebrow {
  font-family: var(--font-sans); font-size: var(--step--1); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text);
  margin: 0 0 var(--sp-3);
}
.section--navy .eyebrow { color: #D8B978; }
.grid { display: grid; gap: var(--sp-5); }
@media (min-width: 720px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: var(--sp-3) var(--sp-4); border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------- 4. Buttons */
.btn {
  --btn-bg: var(--navy); --btn-fg: #fff; --btn-bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: var(--sp-3) var(--sp-5);
  font-family: var(--font-sans); font-size: var(--step-0); font-weight: 600;
  line-height: 1.2; text-decoration: none; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-pill);
  transition: transform var(--dur-instant) var(--ease-out),
              box-shadow var(--dur-quick) var(--ease-out),
              background-color var(--dur-quick) var(--ease-out);
  will-change: transform;
}
.btn:hover  { --btn-bg: var(--navy-deep); --btn-bd: var(--navy-deep); color: #fff; box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(1px) scale(.985); box-shadow: var(--shadow-1); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; pointer-events: none; }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--border-strong); }
.btn--secondary:hover { --btn-bg: var(--surface-sunk); --btn-fg: var(--navy-deep); --btn-bd: var(--navy); }
.btn--text { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: transparent; padding-inline: var(--sp-2); min-height: 44px; }
.btn--text:hover { --btn-bg: transparent; text-decoration: underline; box-shadow: none; }
.btn--lg { min-height: 56px; padding: var(--sp-4) var(--sp-6); font-size: var(--step-1); }
.btn--on-navy { --btn-bg: #fff; --btn-fg: var(--navy); --btn-bd: #fff; }
.btn--on-navy:hover { --btn-bg: #EAF1F7; --btn-fg: var(--navy-deep); --btn-bd: #EAF1F7; }

/* ------------------------------------------------------------- 5. Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__bar { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--header-h); }
.header__logo { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.header__logo img { width: auto; height: 44px; }
.header__name { font-family: var(--font-serif); font-weight: 600; font-size: var(--step-0); line-height: 1.1; letter-spacing: .01em; }
.header__name span { display: block; font-family: var(--font-sans); font-size: 0.62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.header__nav { display: none; margin-left: auto; }
.header__nav ul { display: flex; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.header__nav a { color: var(--text); text-decoration: none; font-weight: 500; padding-block: var(--sp-2); }
.header__nav a:hover, .header__nav a[aria-current="page"] { color: var(--navy); text-decoration: underline; }
.header__cta { margin-left: auto; }
.header__toggle {
  margin-left: auto; display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 1.5px solid var(--border-strong); border-radius: var(--r-pill);
  color: var(--navy); cursor: pointer;
}
/* Hamburger (Ryan, 10-12 — the one people know); the X when the drawer is open.
   The word stays for screen readers (.visually-hidden) and the drawer script updates it. */
.header__toggle .ic { width: 22px; height: 22px; stroke-width: 2; }
.header__toggle[aria-expanded="true"] .header__toggle-open,
.header__toggle:not([aria-expanded="true"]) .header__toggle-close { display: none; }
/* 320px screens (iPhone SE, small Android): the brand line and the Menu button
   are 15px wider than the bar. Tighten the sub-line's tracking rather than
   letting Menu clip off the right edge. */
@media (max-width: 359px) {
  .header__name span { font-size: 0.58rem; letter-spacing: .12em; }
  .header__bar { gap: var(--sp-3); }
}
.header__drawer { display: none; padding-bottom: var(--sp-5); }
.header__drawer[data-open="true"] { display: block; }
.header__drawer ul { list-style: none; margin: 0 0 var(--sp-4); padding: 0; }
.header__drawer li + li { border-top: 1px solid var(--border); }
/* The menu links only. The Schedule button below the list is an <a> too, and
   as a bare `a` rule this repainted it in body text on navy (1.6:1). */
.header__drawer li a { display: block; padding: var(--sp-4) 0; text-decoration: none; color: var(--text); font-weight: 500; }
.header__drawer > .btn { display: flex; }      /* full width, as it was */
/* Under 900px the header carries logo + Menu only. The Schedule button lives in
   the sticky bookbar and in the drawer, so a third copy here just crowded the
   bar and clipped the Menu label on a 375px screen. */
@media (max-width: 899px) { .header__cta { display: none; } }
@media (min-width: 900px) {
  .header__nav { display: block; }
  .header__cta { margin-left: 0; }
  .header__toggle, .header__drawer { display: none !important; }
}

/* Sticky mobile book bar — the CTA is never more than a thumb away */
.bookbar {
  position: fixed; inset: auto 0 0 0; z-index: 45;
  padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + max(env(safe-area-inset-bottom), var(--host-badge-h, 0px)));
  background: rgb(255 255 255 / 0.95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border); display: flex; gap: var(--sp-3);
}
.bookbar .btn { flex: 1; }
/* On the homepage the hero already has the Call button, so the bar waits
   below the edge until the hero has scrolled away (Ryan, 10-12). Only once
   motion.js is driving — without it the bar is simply there. */
.has-motion [data-template="home"] .bookbar { transform: translateY(calc(100% + 2px)); }
.has-motion [data-template="home"] .bookbar.is-shown { transform: none; }
/* Animate only after the first observation, so it never slides away on load. */
.has-motion [data-template="home"] .bookbar.is-armed { transition: transform var(--dur-base) var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .has-motion [data-template="home"] .bookbar { transition: none; } }
@media (min-width: 900px) { .bookbar { display: none; } }
@media (max-width: 899px) { body { padding-bottom: calc(84px + var(--host-badge-h, 0px)); } }
/* The host's badge. The Netlify preview injects a "Powered by Netlify" iframe
   (#nl-badge-frame, fixed to the bottom-right corner, 202x64 on a phone) which
   sat on top of Call. The badge is theirs and stays exactly where they put it:
   the bar keeps its place and grows underneath, so both buttons stand clear
   above it. --host-badge-h is unset — 0 — on any page without the badge.
   64px is the height seen on the preview; motion.js replaces it with the
   measured one, and this line covers a late badge with no JS at all. */
:root:has(#nl-badge-frame) { --host-badge-h: 64px; }

/* --------------------------------------------------- 6. Symptom selector */
/* Named areas, because the phone order is not the desktop order: on a phone
   the artwork belongs directly under the headline, where it is the thing that
   makes someone stay, rather than below a list of chips that pushes it a full
   screen down. */
.symptomer { display: grid; gap: var(--sp-6); grid-template-areas: "intro" "figure" "pick"; }
.symptomer__intro  { grid-area: intro; }
.symptomer__figure { grid-area: figure; }
.symptomer__pick   { grid-area: pick; }
@media (min-width: 900px) {
  .symptomer {
    grid-template-columns: minmax(0,1fr) minmax(0,400px);
    grid-template-areas: "intro figure" "pick figure";
    align-content: start; align-items: start; gap: var(--sp-5) var(--sp-8);
  }
  .symptomer__figure { align-self: center; }
}
/* The spine is 109x657 — a very tall aspect. Size it by HEIGHT or it becomes
   1900px tall and shoves the actual content off the screen. */
.symptomer__figure { position: relative; justify-self: center; display: block; }

/* The stage. The hero spine is drawn in bone — warm off-whites — which on a
   white page is a pale drawing of a pale thing: technically present, visually
   absent. On navy the same artwork reads instantly, and the section stops
   looking like a document and starts looking like a place. */
.stage {
  position: relative; isolation: isolate;
  border-radius: var(--r-lg); overflow: hidden;
  padding: var(--sp-8) var(--sp-5) 0; align-items: flex-end;
  /* A standing figure is roughly 1:3.5. A panel anywhere near square leaves
     two columns of empty navy either side of it, which reads as a mistake
     rather than as space. Portrait panel, figure fills it. */
  width: min(100%, 310px); margin-inline: auto; min-height: 430px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 90% at 62% 8%, rgb(109 130 74 / .38), transparent 58%),
    linear-gradient(168deg, #24506F 0%, var(--navy) 46%, #16334E 100%);
  box-shadow: var(--shadow-2);
}
/* A faint diagonal sheen, so the panel has a light source rather than being a
   flat rectangle of colour. Decorative and cheap — one gradient, no image. */
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(101deg, transparent 38%, rgb(255 255 255 / .07) 50%, transparent 62%);
}
/* The hit areas are positioned as a % of the FIGURE, so this box has to be
   exactly the SVG's box — not the padded panel around it. */
.stage__art { position: relative; display: block; }
.stage svg.spine-hero { display: block; height: clamp(360px, 52vh, 470px); width: auto; max-width: 100%; }
/* The body sits behind the spine as one soft mass. Opacity goes on the GROUP,
   not the shapes: per-shape alpha makes head, neck and torso stack into visible
   bands where they overlap, and the seams are exactly what stops it reading as
   a body. */
.figure__body { opacity: .135; }
.figure__body > * { fill: #fff; stroke: none; }
.figure__spine { filter: drop-shadow(0 3px 10px rgb(0 0 0 / .45)); }

/* "Tap where it hurts" — the interactive spine is the whole idea of this hero
   and nothing on screen said so. Sits under the artwork, quiet, gold. */
/* Top of the panel, not the bottom: the doctor card overlaps the lower edge,
   and an instruction is worth reading before the thing it describes. */
.stage__hint {
  position: absolute; left: 50%; top: var(--sp-4); transform: translateX(-50%);
  font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); opacity: .92; white-space: nowrap; pointer-events: none;
}

/* Vertebrae arrive top-to-bottom, once, on load — a spine settling rather than
   a page loading. Delay comes from --at (its real position down the column),
   set by motion.js from the same data the rail uses. */
/* Two movements. First the column builds, top to bottom, each vertebra
   dropping the short distance into its place — a spine assembling rather than a
   page fading in. Then a signal runs down it, the way the thing it is a picture
   of actually works, three times and then it stops. */
.has-motion .stage[data-spine] .vert {
  animation: vert-settle .5s var(--ease-out) both, vert-signal 2.4s var(--ease-out) 3;
  animation-delay: calc(var(--at) * .9s + .15s), calc(var(--at) * .45s + 1.9s);
  transform-box: fill-box; transform-origin: center;
}
@keyframes vert-settle {
  from { opacity: 0; transform: translateY(-16px) scale(.86); }
  60%  { opacity: 1; }
  to   { opacity: 1; transform: none; }
}
@keyframes vert-signal {
  0%, 22%, 100% { filter: none; transform: none; }
  8%            { filter: brightness(1.5); transform: translateX(2px) scale(1.06); }
}
/* The body arrives first and stays put — it is the frame, not the event. */
.has-motion .stage[data-spine] .figure__body { animation: body-in .8s var(--ease-out) both; }
@keyframes body-in { from { opacity: 0; } to { opacity: .135; } }

/* The doctor card. Overlaps the stage so the face and the spine read as one
   object rather than two stacked blocks. */
.doccard {
  position: relative; z-index: 2; margin: -14px auto 0;
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-4); align-items: flex-start;
  width: min(100%, 310px);
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5); box-shadow: var(--shadow-2);
}

.docslot { display: flex; flex-direction: column; gap: 2px; flex: 1 1 0; min-width: 0; }
.docslot__media {
  width: 100%; aspect-ratio: 1 / 1; border-radius: var(--r-md); margin-bottom: var(--sp-2);
  overflow: hidden; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px; text-align: center;
}
.docslot__media img { width: 100%; height: 100%; object-fit: cover; }
/* Empty state: brand-coloured, labelled, obviously a slot — never a grey box. */
.docslot[data-empty="true"] .docslot__media {
  background: repeating-linear-gradient(135deg, rgb(109 130 74 / .10) 0 6px, rgb(109 130 74 / .04) 6px 12px);
  border: 1px dashed rgb(109 130 74 / .45); color: var(--sage-text);
}
.docslot[data-empty="true"] .docslot__media svg { width: 24px; height: 24px; flex: none; }
.docslot[data-empty="true"] .docslot__media span { font-size: .62rem; line-height: 1.25; padding: 0 6px; }
.docslot b { font-family: var(--font-serif); font-size: var(--step-0); color: var(--navy); line-height: 1.25; }
.docslot span { font-size: var(--step--1); color: var(--text-muted); }
/* One doctor: a small portrait beside the name, so the card stays a caption to the stage. */
.doccard--solo .docslot { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: var(--sp-4); align-content: center; }
.doccard--solo .docslot__media { grid-row: 1 / span 2; margin-bottom: 0; }
.doccard--solo .docslot b { align-self: end; }
.doccard--solo .docslot span { align-self: start; }
.doccard figcaption { flex: 1 0 100%; border-top: 1px solid var(--border); padding-top: var(--sp-3); }
.doccard figcaption a { font-size: var(--step--1); font-weight: 600; }

/* Hero actions: the primary CTA belongs here. Schedule is the only conversion
   goal on the site and the hero previously offered no way to reach it. */
.symptomer__act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
/* Hit areas over the spine, thumb-sized. Positioned as % of the stage box. */
.symptomer__hit {
  position: absolute; display: block; width: 22%; min-width: 48px; aspect-ratio: 1;
  border: 0; border-radius: var(--r-pill); background: transparent; cursor: pointer;
  transform: translate(-50%, -50%);
}
.symptomer__hit::after {
  content: ""; position: absolute; inset: 22%; border-radius: var(--r-pill);
  background: var(--gold); opacity: 0; transition: opacity var(--dur-quick) var(--ease-out), transform var(--dur-quick) var(--ease-out);
}
.symptomer__hit:hover::after, .symptomer__hit:focus-visible::after { opacity: .3; transform: scale(1.15); }
.symptomer__hit[aria-current="true"]::after { opacity: .55; }
/* A visible gold point at each spot. Without it "tap where it hurts" was an
   instruction to tap an invisible target. */
.symptomer__dot {
  position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
  transform: translate(-50%, -50%); border-radius: var(--r-pill);
  background: var(--gold); box-shadow: 0 0 0 3px rgb(169 121 38 / .28);
  transition: transform var(--dur-quick) var(--ease-out), box-shadow var(--dur-quick) var(--ease-out);
}
.symptomer__hit:hover .symptomer__dot, .symptomer__hit:focus-visible .symptomer__dot,
.symptomer__hit[data-lit] .symptomer__dot {
  transform: translate(-50%, -50%) scale(1.5); box-shadow: 0 0 0 7px rgb(169 121 38 / .3);
}
/* The point's name, so nobody has to guess which part of the spine they are on. */
.symptomer__label {
  position: absolute; left: 50%; bottom: calc(50% + 12px); transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 3px var(--sp-3); border-radius: var(--r-sm);
  font-size: var(--step--1); font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity var(--dur-quick) var(--ease-out);
}
.symptomer__hit:hover .symptomer__label, .symptomer__hit:focus-visible .symptomer__label,
.symptomer__hit[data-lit] .symptomer__label { opacity: 1; }
/* And the reverse: hovering a point lights its chip. */
.symptomer__list a[data-lit] { border-color: var(--navy); background: var(--surface-sunk); color: var(--navy); }
/* After the spine has settled, the points announce themselves once — three
   pulses, then still. Enough to say "these are buttons"; not a loop that
   pesters someone who is reading. */
.has-motion .symptomer__dot { animation: dot-ping 1.5s var(--ease-out) 3; animation-delay: 1.1s; }
@keyframes dot-ping {
  0%, 60%, 100% { box-shadow: 0 0 0 3px rgb(169 121 38 / .28); }
  25%           { box-shadow: 0 0 0 12px rgb(169 121 38 / 0); }
}
/* Labelled list — the real, accessible control. Never mouse-only. */
.symptomer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.symptomer__list a {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: var(--sp-3) var(--sp-5); border: 1.5px solid var(--border-strong);
  border-radius: var(--r-pill); background: var(--surface); color: var(--text);
  text-decoration: none; font-weight: 600;
  transition: border-color var(--dur-quick) var(--ease-out), background-color var(--dur-quick) var(--ease-out), transform var(--dur-instant) var(--ease-out);
}
.symptomer__list a:hover { border-color: var(--navy); background: var(--surface-sunk); color: var(--navy); transform: translateY(-1px); }

/* ------------------------------------------------------- 7. Spine rail */
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
:root { animation: de-scroll linear both; animation-timeline: scroll(root block); }
@keyframes de-scroll { to { --p: 1; } }

/* The page's scroll position, drawn as a spine (build.py rail()). It stands in
   the left gutter, centred on the gap between the window edge and the text
   column, and below 1280px — where that gap can't hold it — it isn't there.
   The rail is a size container, so every measurement inside is a share of its
   own height (cqh) and the column scales as one drawing; the px lines are the
   same numbers at a 540px rail, for browsers without container units.
   The drawing is 7.75% of the rail's height wide, so the height is also capped
   by the gutter (2.4x both gutters, so the spine fills ~37% of one): at 1280 that is a 26px
   spine with ~18px of air on each side, and it grows as the gutter does. The
   bones sit half a percent right of the centre line (the processes), hence the
   last term of `left`; % rather than vw, so a scrollbar doesn't push it inward. */
.rail {
  --rail-h: clamp(300px, min(60vh, (100vw - var(--wrap)) * 2.4), 520px);
  position: fixed; z-index: 30; display: none;
  left: calc((100% - var(--wrap)) / 4 - 22px - var(--rail-h) * .005); width: 44px; height: var(--rail-h);
  top: calc(var(--header-h) + (100vh - var(--header-h) - var(--rail-h)) / 2);
  container-type: size;
}
@media (min-width: 1280px) { .rail { display: block; } }

/* One vertebra: a zero-size anchor on the column's centre line. */
.rail__vert, .rail__sacrum {
  position: absolute; left: 50%; width: 0; height: 0;
  top: calc(var(--y) * 5.4px); top: calc(var(--y) * 1cqh);
  --done: clamp(0, (var(--p) - var(--at)) * 26 + 1, 1);          /* scrolled past it yet? */
  --gap: max(var(--p) - var(--at), var(--at) - var(--p));
  --here: clamp(0, 1 - var(--gap) * 30, 1);                      /* level with it now? */
}
/* The body, seen from the side: wider than tall, corners eased, leaning with
   the curve. Still ahead = a faint outline of where the spine goes; passed =
   solid sage. */
.rail__bone {
  position: absolute; left: 0; top: 0; display: block;
  width: calc(var(--w) * 5.4px); height: calc(var(--h) * 5.4px);
  width: calc(var(--w) * 1cqh); height: calc(var(--h) * 1cqh);
  border-radius: 34% / 42%;
  background: var(--sage);
  transform: translate(-50%, -50%) translateX(calc(var(--x) * 5.4px)) rotate(var(--lean, 0deg));
  transform: translate(-50%, -50%) translateX(calc(var(--x) * 1cqh)) rotate(var(--lean, 0deg));
  opacity: calc(.34 + .66 * var(--done));
  transition: opacity var(--dur-quick) var(--ease-out);
}
/* The spinous process, out the back: short in the neck, long and raked down
   through the mid-back, a blunt stub in the lower back. */
.rail__bone::before {
  content: ""; position: absolute; left: 86%; top: 50%;
  width: var(--proc, 60%); height: 34%; min-height: 2px;
  border-radius: 0 var(--r-pill) var(--r-pill) 0; background: inherit; opacity: .62;
  transform-origin: 0 50%; transform: translateY(-50%) rotate(var(--rake, 18deg));
}
.rail__vert--c { --proc: 46%; --rake: 14deg; }
.rail__vert--t { --proc: 74%; --rake: 38deg; }
.rail__vert--l { --proc: 50%; --rake: 6deg; }
/* "You are here": gold, the one place gold is allowed (RULES.md). */
.rail__bone::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--gold); opacity: var(--here);
  box-shadow: 0 0 0 3px rgb(169 121 38 / .16);
}
/* Sacrum and tailbone: one piece tapering to a point, tipped back the way the
   real one is, hung from the bottom of L5. */
.rail__sacrum .rail__bone {
  --w: 4.9; --h: 8.8;
  border-radius: 24% 24% 50% 50% / 8% 8% 92% 92%;
  transform-origin: 50% 0;
  transform: translate(-50%, 0) translateX(calc(var(--x) * 5.4px)) rotate(-16deg);
  transform: translate(-50%, 0) translateX(calc(var(--x) * 1cqh)) rotate(-16deg);
}
.rail__sacrum .rail__bone::before { content: none; }

/* Section landmarks: navy, and a real link with a name. */
.rail__vert--linked { display: block; }
.rail__vert--linked::before {              /* the hit area — the bone is small */
  content: ""; position: absolute; left: -22px; top: -13px; width: 44px; height: 26px;
}
.rail__vert--linked .rail__bone { background: var(--navy); opacity: calc(.5 + .5 * var(--done)); }
.rail__vert--linked:hover .rail__bone,
.rail__vert--linked:focus-visible .rail__bone { opacity: 1; box-shadow: 0 0 0 3px rgb(28 65 100 / .18); }

/* The name, revealed on hover/focus. Pure CSS — no scroll-coupled JS. */
.rail__name {
  position: absolute; left: 30px; top: 0;
  transform: translateY(-50%) translateX(-4px);
  background: var(--ink); color: #fff; padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm); font-size: var(--step--1); line-height: 1.25;
  white-space: nowrap; pointer-events: none; opacity: 0;
  transition: opacity var(--dur-quick) var(--ease-out), transform var(--dur-quick) var(--ease-out);
}
.rail__name b { display: block; font-size: .78em; letter-spacing: .06em; color: #E6CF9C; }
.rail__vert--linked:hover .rail__name,
.rail__vert--linked:focus-visible .rail__name { opacity: 1; transform: translateY(-50%) translateX(0); }
.rail__vert--linked:focus-visible { outline: none; }

/* ---------------------------------------------------------- 8. Cards */
.card {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--shadow-1);
  transition: transform var(--dur-quick) var(--ease-out), box-shadow var(--dur-quick) var(--ease-out), border-color var(--dur-quick) var(--ease-out);
}
a.card, .card--link { text-decoration: none; color: inherit; display: block; }
a.card:hover, .card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--border-strong); }
.card h3 { margin-bottom: var(--sp-2); }
.card p:last-child { margin-bottom: 0; }
.card__meta { font-size: var(--step--1); color: var(--text-muted); }
/* One doctor on the doctors page: photo and bio side by side, not a half-empty grid. */
@media (min-width: 768px) {
  .solo-doctor .card--doctor { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: var(--sp-6); align-items: start; }
  .solo-doctor .card--doctor > .docslot { grid-row: 1 / span 20; margin-bottom: 0; }
}
.card--doctor img { border-radius: var(--r-md); aspect-ratio: 4/5; object-fit: cover; margin-bottom: var(--sp-4); background: var(--surface-sunk); }

/* ------------------------------------------------------- 9. Price table */
.prices { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.prices table { width: 100%; border-collapse: collapse; }
.prices caption { text-align: left; padding: var(--sp-5) var(--sp-5) 0; font-weight: 600; font-family: var(--font-serif); font-size: var(--step-2); }
.prices th, .prices td { text-align: left; padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--border); vertical-align: top; }
.prices thead th { border-top: 0; font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.prices td:last-child, .prices th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.prices__note { padding: var(--sp-4) var(--sp-5); background: var(--surface-sunk); font-size: var(--step--1); color: var(--text-muted); border-top: 1px solid var(--border); }
/* Three columns do not fit a 375px screen — the description column collapses to
   two words a line and the price stops being scannable, which is the one thing
   this table exists for. Below 640px each row becomes a block: name and price on
   one line, the description underneath. */
@media (max-width: 639px) {
  .prices--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prices--stack tr { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-1) var(--sp-4); padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--border); }
  .prices--stack th, .prices--stack td { border: 0; padding: 0; }
  .prices--stack th[scope="row"] { grid-column: 1; grid-row: 1; font-size: var(--step-0); }
  .prices--stack td:last-child { grid-column: 2; grid-row: 1; }
  .prices--stack td:first-of-type { grid-column: 1 / -1; grid-row: 2; text-align: left; font-size: var(--step--1); color: var(--text-muted); font-weight: 400; }
}

/* -------------------------------------------- 10. Timeline + refer-out */
.timeline { border-left: 3px solid var(--sage); padding-left: var(--sp-5); }
.timeline li { list-style: none; margin-bottom: var(--sp-4); position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: calc(-1 * var(--sp-5) - 3px); top: .55em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--sage); transform: translateX(-3px);
}
.timeline strong { display: block; font-family: var(--font-serif); font-size: var(--step-1); }
.refer {
  background: var(--surface-sunk); border: 1px solid var(--border);
  border-left: 4px solid var(--navy); border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-6);
}
.refer ul { margin: 0 0 var(--sp-4); padding-left: var(--sp-5); }
.refer li { margin-bottom: var(--sp-2); }

/* ------------------------------------------------ 11. Availability chip */
.chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill);
  background: rgb(47 107 69 / 0.10); color: var(--ok);
  font-size: var(--step--1); font-weight: 600; border: 1px solid rgb(47 107 69 / 0.25);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip[data-state="unknown"] { background: var(--surface-sunk); color: var(--text-muted); border-color: var(--border); }
.section--navy .chip[data-state="unknown"] { background: rgb(255 255 255 / .1); color: #DCE6EF; border-color: rgb(255 255 255 / .2); }

/* ------------------------------------------------------ 12. Video block */
.video { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); background: var(--ink); }
.video video, .video img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.video__caption { padding: var(--sp-4) var(--sp-5); background: var(--surface); font-size: var(--step--1); color: var(--text-muted); }
.video__fallback { padding: var(--sp-6); color: var(--text-invert); }

/* ---------------------------------------------- 13. CTA band + footer */
.cta-band { background: var(--surface-navy); color: var(--text-invert); border-radius: var(--r-lg); padding: var(--sp-7) var(--sp-6); text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: var(--sp-3); }
.cta-band p { color: #D5E0EA; max-width: 46ch; margin-inline: auto; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; margin-top: var(--sp-5); }
.footer { background: var(--ink); color: #C9D2DC; padding-block: var(--sp-8) var(--sp-6); margin-top: var(--sp-9); }
.footer a { color: #E7EDF3; }
.footer h3 { color: #fff; font-size: var(--step-0); font-family: var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
.footer__grid { display: grid; gap: var(--sp-6); }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: var(--sp-2); }
/* Footer links are 22px of text. On a touch screen pad the hit area to 44px
   without moving the text: the padding is taken back with margins. */
@media (max-width: 899px) {
  .footer li a, .footer__line a { display: inline-block; padding-block: 11px; margin-block: -11px; }
}
.footer__legal { border-top: 1px solid rgb(255 255 255 / .12); margin-top: var(--sp-7); padding-top: var(--sp-5); font-size: var(--step--1); color: #93A0AE; }

/* ------------------------------------------------- 14. Article layout */
.article { max-width: var(--measure); margin-inline: auto; }
.article h2 { margin-top: var(--sp-7); }
.article h3 { margin-top: var(--sp-6); }
.article ul, .article ol { padding-left: var(--sp-5); margin-bottom: var(--sp-4); }
.article li { margin-bottom: var(--sp-2); }
.article blockquote {
  margin: var(--sp-6) 0; padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
  border-left: 3px solid var(--gold); font-family: var(--font-serif);
  font-size: var(--step-1); color: var(--text);
}
.article figure { margin: var(--sp-6) 0; }
.article figcaption { font-size: var(--step--1); color: var(--text-muted); margin-top: var(--sp-2); }
.breadcrumb { font-size: var(--step--1); color: var(--text-muted); margin-bottom: var(--sp-4); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--sp-2); color: var(--border-strong); }

/* ------------------------------------------------------- 15. Trust strip */
.trust { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); align-items: center; justify-content: center; padding: var(--sp-5) 0; }
.trust li { list-style: none; display: flex; align-items: center; gap: var(--sp-2); font-size: var(--step--1); font-weight: 600; color: var(--text-muted); }
.trust li { gap: var(--sp-3); }
.trust__badge {
  flex: none; width: 38px; height: 38px; border-radius: var(--r-pill);
  display: grid; place-items: center; background: #fff; color: var(--sage-text);
  border: 1px solid var(--border); box-shadow: var(--shadow-1);
}
.trust__badge svg { width: 20px; height: 20px; }

/* ------------------------------------------- 16. Forms (contact only) */
.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-weight: 600; margin-bottom: var(--sp-2); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: var(--sp-3) var(--sp-4);
  font: inherit; color: var(--text); background: var(--surface);
  border: 1.5px solid var(--border-strong); border-radius: var(--r-md);
}
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgb(28 65 100 / .18); }
.field__hint { font-size: var(--step--1); color: var(--text-muted); margin-top: var(--sp-2); }

/* ------------------------------------ 17. Placeholder-copy dev marker */
/* Every un-approved sentence carries data-draft. Visible in dev, and
   `build.py --launch` refuses to emit a page that still contains one. */
[data-draft] { position: relative; background: rgb(169 121 38 / .10); box-shadow: inset 0 0 0 1px rgb(169 121 38 / .35); border-radius: var(--r-sm); }
body[data-draft-markers="off"] [data-draft] { background: none; box-shadow: none; }
.draft-banner {
  background: var(--gold); color: #241703; text-align: center;
  padding: var(--sp-3) var(--sp-4); font-weight: 600; font-size: var(--step--1);
}

/* ------------------------------------------------------- 18. Motion */
/* Content ships visible. Motion only enhances arrival — never gates it. */
/* `.has-motion` is added by motion.js only AFTER it has already marked every
   element currently in the viewport as .is-in. So: JS off, JS slow, JS broken,
   observer unsupported — the page is fully readable either way, and nothing
   above the fold ever animates in. Motion enhances arrival; it never gates it. */
/* Reveals are keyframe ANIMATIONS on the `translate` property, not transitions
   on `transform`: a transition shorthand here used to overwrite each card's
   own hover transitions, and `transform: none` beat the hover lift. With
   `translate` + `animation-fill-mode: backwards`, the reveal owns nothing once
   it has finished. `.is-static` = shown at load, never animated. */
.has-motion [data-reveal]:not([data-reveal="stagger"]):not(.is-in),
.has-motion [data-reveal="stagger"]:not(.is-in) > * { opacity: 0; }
/* The hero spine's own build animation waits for its block to be revealed. */
.has-motion [data-reveal]:not(.is-in) :is(.vert, .figure__body, .symptomer__dot) { animation-play-state: paused; }
@media (prefers-reduced-motion: no-preference) {
  .has-motion [data-reveal]:not([data-reveal="stagger"]).is-in:not(.is-static) {
    animation: reveal var(--dur-reveal) var(--ease-settle) calc(var(--d, 0) * var(--stagger)) backwards;
  }
  .has-motion [data-reveal="stagger"].is-in:not(.is-static) > * {
    animation: reveal var(--dur-reveal) var(--ease-settle) calc(var(--i, 0) * var(--stagger)) backwards;
  }
  @keyframes reveal { from { opacity: 0; translate: 0 var(--rise); } }
}
@media (prefers-reduced-motion: reduce) {
  /* Substitute, don't strip: cross-fade where there was translation. A large
     share of this audience is post-concussion, migraine-prone or vestibular. */
  .has-motion [data-reveal]:not([data-reveal="stagger"]).is-in:not(.is-static),
  .has-motion [data-reveal="stagger"].is-in:not(.is-static) > * {
    animation: reveal-fade var(--dur-base) linear backwards;
  }
  @keyframes reveal-fade { from { opacity: 0; } }
  .btn, .card, a.card, .symptomer__list a { transition: none !important; }
  .btn:active { transform: none; }
  /* --p drives the rail, and killing the scroll animation would leave it
     permanently at 0 (invisible). Show it outright instead, and let the JS
     fallback snap --p to the nearest tenth rather than tracking the scroll. */
  :root { animation: none; }
  .rail__bone { transition: none; }
  /* The spine settle is a translation on 25 elements — cross-fade it instead. */
  .has-motion .stage[data-spine] .vert { animation-name: fade-in; }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
}
/* Cross-document view transitions — symptom card morphs into its page hero. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur-base); }

/* -------------------------------------------------------------- 19. 404 */
.notfound { text-align: center; padding-block: var(--sp-10); }
.notfound__art { width: 96px; height: 96px; margin: 0 auto var(--sp-5); color: var(--sage); opacity: .6; }

/* -------------------------------------------------------- 20. Print */
@media print {
  .header, .bookbar, .rail, .cta-band, .footer { display: none !important; }
  .has-motion [data-reveal], .has-motion [data-reveal] > * { opacity: 1 !important; }
  body { background: #fff; }
}

/* ------------------------------------------------- video + wide doctor slot */
/* One rule for every video on the site: full width of its column, real aspect
   ratio reserved up front so nothing on the page jumps when it loads. */
.videoblock { margin: 0; }
.videoblock video {
  display: block; width: 100%; aspect-ratio: 16 / 9; height: auto;
  border-radius: var(--r-lg); background: var(--ink); box-shadow: var(--shadow-2);
}
.videoblock figcaption {
  margin-top: var(--sp-3); font-size: var(--step--1); color: var(--text-muted);
}
/* The doctors page uses the same slot, sized for a real portrait. */
.docslot--wide { margin-bottom: var(--sp-4); }
.docslot--wide .docslot__media { aspect-ratio: 3 / 2; }
.docslot--wide[data-empty="true"] .docslot__media span { font-size: var(--step--1); }

/* ------------------------------------------- 21. Icons and illustration */
/* One family, from site/icons.py: 24-unit grid, 1.75 stroke, currentColor.
   `img, svg { display:block }` above would stack every icon on its own line,
   so the base class puts them back inline. Gold is only ever the "here"
   point on the body-region icons — see RULES.md. */
.ic { display: inline-block; flex: none; width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
.ic-hl, .ic-halo { fill: var(--gold); }
.btn .ic { width: 1.2em; height: 1.2em; margin-left: -2px; }
.header__cta .btn .ic { width: 1.05em; height: 1.05em; }
.with-ic { display: inline-flex; align-items: center; gap: var(--sp-2); }
.with-ic .ic { color: var(--sage-text); width: 1.25em; height: 1.25em; }

/* Chips carry the body-region icon, so the list teaches the map too. */
.symptomer__list a { gap: var(--sp-2); padding-left: var(--sp-4); }
.symptomer__list a .ic { width: 24px; height: 24px; color: var(--navy); }

/* The spot tile: the site's small-illustration unit. Same gradient as the
   homepage stage, plus the olive arc from the logo, so a card and the hero
   read as one family. Purely decorative — the card title says the thing. */
.spot {
  --spot: 56px;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; flex: none;
  width: var(--spot); height: var(--spot); border-radius: var(--r-md);
  color: var(--text-invert);
  background:
    radial-gradient(120% 90% at 72% 0%, rgb(109 130 74 / .5), transparent 60%),
    linear-gradient(160deg, #24506F 0%, var(--navy) 50%, #16334E 100%);
  box-shadow: var(--shadow-1);
}
.spot::before {
  content: ""; position: absolute; z-index: -1; width: 130%; aspect-ratio: 1;
  right: -62%; bottom: -62%; border-radius: 50%;
  border: 1.5px solid rgb(157 175 126 / .45);
}
.spot .ic { width: 56%; height: 56%; }
.card .spot { margin-bottom: var(--sp-4); }
a.card .spot { transition: transform var(--dur-quick) var(--ease-out); }
a.card:hover .spot { transform: translateY(-1px) scale(1.03); }
.spot--xl { --spot: 148px; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.spot--xl .ic { width: 50%; height: 50%; stroke-width: 1.5; }

/* Page hero with art: text left, picture right. On a phone the service tile
   goes above the headline (small), and the symptom figure goes under the
   Schedule button so it never pushes the button down. */
.pagehero { display: grid; gap: var(--sp-5) var(--sp-7); align-items: center; }
@media (min-width: 720px) { .pagehero { grid-template-columns: minmax(0, 1fr) auto; } }
@media (max-width: 719px) {
  .pagehero--spot .spot { order: -1; --spot: 76px; }
}

/* Headings with an icon badge — symptom, contact and can't-help pages. */
.h-icon { display: flex; align-items: center; gap: var(--sp-3); }
.h-icon__badge {
  flex: none; width: 2.5rem; height: 2.5rem; border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: rgb(28 65 100 / .08); color: var(--navy);
}
.h-icon__badge .ic { width: 1.3rem; height: 1.3rem; }
.section--sunk .h-icon__badge, .refer .h-icon__badge { background: #fff; box-shadow: var(--shadow-1); }
h3.h-icon .h-icon__badge { width: 2.2rem; height: 2.2rem; }

/* "This is probably for you if" — ticks instead of bullets. */
.ticks { list-style: none; margin: 0 0 var(--sp-5); padding: 0; }
.ticks li { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-3); }
.ticks .ic { color: var(--sage-text); width: 1.3em; height: 1.3em; margin-top: .15em; stroke-width: 2.25; }

/* Contact details with badges. */
.infolist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.infolist li { display: flex; gap: var(--sp-4); align-items: center; }
.infolist b {
  display: block; font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
}
.infolist a { font-size: var(--step-1); }
.prices caption .with-ic .ic { color: var(--navy); }

/* Footer contact lines. */
.footer__line { display: flex; gap: var(--sp-2); align-items: flex-start; }
.footer__line .ic { color: #93A0AE; margin-top: .3em; }

/* Article cards: the body-region icon of the symptom the post belongs to. */
.card__tag {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin-bottom: var(--sp-3) !important; padding: 3px var(--sp-3) 3px var(--sp-2);
  border-radius: var(--r-pill); background: var(--surface-sunk); border: 1px solid var(--border);
  font-size: var(--step--1); font-weight: 600; color: var(--navy);
}
.card__tag .ic { width: 20px; height: 20px; }

/* Video captions carry a play mark. */
.videoblock figcaption { display: flex; gap: var(--sp-2); align-items: center; }
.videoblock figcaption .ic { color: var(--sage-text); }

/* Homepage feature: the adjustment film on a navy panel, beside Schedule.
   A panel inside the wrap rather than a full-bleed band, so the spine rail
   never has to sit on navy. */
.feature {
  display: grid; gap: var(--sp-6); align-items: center;
  padding: var(--sp-5); border-radius: var(--r-lg); color: var(--text-invert);
  background:
    radial-gradient(90% 120% at 100% 0%, rgb(109 130 74 / .32), transparent 60%),
    linear-gradient(160deg, #24506F 0%, var(--navy) 50%, #16334E 100%);
  box-shadow: var(--shadow-2);
}
@media (min-width: 900px) { .feature { grid-template-columns: 1.15fr 1fr; padding: var(--sp-6) var(--sp-7) var(--sp-6) var(--sp-6); } }
.feature h2 { color: #fff; }
.feature .eyebrow { color: #D8B978; }
.feature p { color: #D5E0EA; }
.feature a:not(.btn) { color: #fff; font-weight: 600; }
.feature .videoblock video { box-shadow: 0 10px 30px rgb(0 0 0 / .35); }
.feature .videoblock figcaption { color: #C9D6E2; }
.feature .videoblock figcaption .ic { color: #D8B978; }
.feature__act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin-top: var(--sp-5) !important; }

/* About: the logo beside "why the name". The file has an opaque white ground,
   so it sits on a white card on purpose rather than a box that looks wrong. */
.namecard { display: grid; gap: var(--sp-5); align-items: center; }
@media (min-width: 640px) { .namecard { grid-template-columns: 160px minmax(0, 1fr); } }
.namecard img {
  width: 160px; height: 160px; background: #fff; padding: var(--sp-2);
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
.namecard + h2 { margin-top: var(--sp-7); }

/* -------------------------------------------- 22. Traditional hero */
/* The "traditional" version's opening: copy left, both doctors right. */
.hero-trad { padding-block: var(--sp-7) var(--sp-8); overflow-x: clip; }
.hero-trad__grid { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 960px) {
  .hero-trad__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-8); }
}
.hero-trad h1 { font-size: var(--step-6); line-height: 1.04; letter-spacing: -.02em; max-width: 17ch; margin-bottom: var(--sp-5); }
.hero-trad__actions .btn--secondary { align-self: center; }
.hero-trad .lede { max-width: 44ch; }
.hero-trad__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-6) 0 0; }
.trust--hero {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: start;
  gap: var(--sp-3) var(--sp-5); margin: var(--sp-6) 0 0; padding: var(--sp-5) 0 0;
  border-top: 1px solid var(--border);
}
@media (max-width: 479px) { .trust--hero { grid-template-columns: 1fr; } }

/* Two doctors, overlapping. Lead is first in the DOM (reading order) and sits
   in front on the right; the second sits behind, a little smaller and higher. */
.duo { display: flex; justify-content: center; align-items: flex-end; max-width: 620px; margin-inline: auto; }
.cutout { position: relative; margin: 0; }
.cutout--0 { order: 2; z-index: 2; flex: 0 0 56%; }
.cutout--1 { order: 1; z-index: 1; flex: 0 0 50%; margin-right: -12%; margin-bottom: 7%; }
.cutout__svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 28px rgb(5 19 41 / .16)); }
.cutout__arc { fill: none; stroke: var(--sage); stroke-width: 3; opacity: .55; stroke-dasharray: 520 650; stroke-linecap: round; transform-origin: 200px 330px; }
/* Each arc sits on the OUTSIDE edge of its pair, so the two never cross. */
.cutout--0 .cutout__arc { transform: rotate(-80deg); }
.cutout--1 .cutout__arc { transform: rotate(100deg); }
/* The stand-in bust. Light sage so it reads on the navy disc and on the page. */
.cutout__ph > * { fill: #C3CEB6; }
.cutout__ph .cutout__shirt { fill: #F1F3EC; }
.cutout__ph .cutout__lapel { fill: none; stroke: #A5B38E; stroke-width: 2.5; stroke-linejoin: round; }
.cutout__cap {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 35%);
  display: grid; justify-items: center; gap: 1px;
  padding: var(--sp-2) var(--sp-5); white-space: nowrap; text-align: center; line-height: 1.2;
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--r-pill); box-shadow: var(--shadow-2);
}
.cutout__cap b { font-family: var(--font-serif); font-size: var(--step-0); color: var(--navy); }
.cutout__cap span { font-size: var(--step--1); color: var(--text-muted); }
.cutout--1 .cutout__cap { left: 42%; }
/* One doctor: a single, larger circle, centred. */
.duo--solo { max-width: 460px; }
.duo--solo .cutout--0 { flex: 0 0 100%; }
.hero-trad__art { padding-bottom: var(--sp-6); }

/* The entrance. The one sanctioned exception to "nothing above the fold
   animates in" (Ryan, 2026-09-10): pure CSS, so it never waits on JS; every
   piece done by 900ms; and the Schedule button only SLIDES — it is readable
   and clickable from the first frame. Order: words, then the circles open,
   the doctors rise out of them, the name tags land last.
   Each element carries its own --anim/--delay/--dur; one rule applies them. */
.hero-trad__copy > .eyebrow { --delay: 0ms;   --dur: 480ms; }
.hero-trad__copy > h1       { --delay: 60ms;  --dur: 600ms; --from: 26px; }
.hero-trad__copy > .lede    { --delay: 180ms; --dur: 520ms; }
.hero-trad__actions         { --delay: 240ms; --dur: 520ms; --anim: enter-slide; }
.trust--hero > li:nth-child(1) { --delay: 360ms; --dur: 420ms; --from: 12px; }
.trust--hero > li:nth-child(2) { --delay: 410ms; --dur: 420ms; --from: 12px; }
.trust--hero > li:nth-child(3) { --delay: 460ms; --dur: 420ms; --from: 12px; }
.trust--hero > li:nth-child(4) { --delay: 480ms; --dur: 420ms; --from: 12px; }
.cutout__disc   { --anim: enter-disc;   --dur: 560ms; transform-box: fill-box; transform-origin: center; }
.cutout__arc    { --anim: enter-arc;    --dur: 560ms; }
.cutout__person { --anim: enter-person; --dur: 520ms; }
.cutout__cap    { --dur: 300ms; --from: 12px; }
.cutout--1 .cutout__disc { --delay: 100ms; }  .cutout--0 .cutout__disc { --delay: 180ms; }
.cutout--1 .cutout__arc  { --delay: 260ms; }  .cutout--0 .cutout__arc  { --delay: 320ms; }
.cutout--1 .cutout__person { --delay: 300ms; } .cutout--0 .cutout__person { --delay: 380ms; }
.cutout--1 .cutout__cap  { --delay: 540ms; }  .cutout--0 .cutout__cap  { --delay: 600ms; }

@keyframes enter-rise   { from { opacity: 0; translate: 0 var(--from, 18px); } }
@keyframes enter-slide  { from { translate: 0 14px; } }             /* no fade, ever */
@keyframes enter-disc   { from { opacity: 0; transform: scale(.8); } }
@keyframes enter-arc    { from { stroke-dashoffset: 520; } }
@keyframes enter-person { from { opacity: 0; translate: 0 56px; } }
@keyframes enter-fade   { from { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-trad__copy > :is(.eyebrow, h1, .lede), .hero-trad__actions, .trust--hero > li {
    animation: var(--anim, enter-rise) var(--dur) var(--ease-settle) var(--delay) backwards;
  }
  /* Wide screens: the doctors are in the first view, so they enter on load. */
  @media (min-width: 960px) {
    .hero-trad__art :is(.cutout__disc, .cutout__arc, .cutout__person, .cutout__cap) {
      animation: var(--anim, enter-rise) var(--dur) var(--ease-settle) var(--delay) backwards;
    }
  }
  /* Phones: they're below the fold, so the same entrance waits until they
     scroll in (motion.js adds .is-seen). No JS, no wait — they're just there. */
  @media (max-width: 959px) {
    .has-motion .hero-trad__art:not(.is-seen) :is(.cutout__disc, .cutout__arc, .cutout__person, .cutout__cap) { opacity: 0; }
    .hero-trad__art.is-seen :is(.cutout__disc, .cutout__arc, .cutout__person, .cutout__cap) {
      animation: var(--anim, enter-rise) var(--dur) var(--ease-settle) var(--delay) backwards;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  /* A plain cross-fade in the same order. The buttons don't move at all. */
  .hero-trad__copy > :is(.eyebrow, h1, .lede), .trust--hero > li,
  .hero-trad__art :is(.cutout__disc, .cutout__person, .cutout__cap) {
    animation: enter-fade 360ms linear var(--delay) backwards;
  }
}

/* -------------------------------------------- 22b. Logo hero */
/* Kyle, 09-18: the logo big beside Dr. Jenkins' photo, most words gone. Reuses
   the .hero-trad grid, entrance and motion.js hooks; only the copy column changes. */
.hero-logo .hero-trad__grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .hero-logo .hero-trad__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hero-logo .hero-trad__copy { display: grid; justify-items: center; text-align: center; min-width: 0; }
.hero-logo__mark { margin: 0 0 var(--sp-5); --delay: 0ms; --dur: 520ms; }
.hero-logo__img {
  display: block; width: min(100%, 440px); height: auto; margin-inline: auto;
}
.hero-logo h1:not(.hero-logo__mark) { font-size: var(--step-5); max-width: 20ch; margin: 0 auto var(--sp-2); }
.hero-logo .hero-trad__actions { justify-content: center; margin-top: var(--sp-5); width: 100%; }
.hero-logo__mark, .hero-logo h1 { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-logo__mark { animation: enter-rise var(--dur) var(--ease-settle) var(--delay) backwards; }
}

/* -------------------------------------------- 22c. Grand-opening banner */
/* The one element that moves continuously, by client request (Kyle, 09-18).
   transform only; pauses on hover/focus so it can be read; reduced motion gets
   a still, centred line instead (substitute, don't strip). */
.opening { overflow: hidden; background: var(--navy); color: #fff; font-size: var(--step--1); }
.opening__track { display: flex; width: max-content; }
.opening__run { display: flex; flex: none; }
.opening__item { display: inline-flex; align-items: center; gap: var(--sp-4); padding: 10px var(--sp-4); white-space: nowrap; }
.opening__item { letter-spacing: .04em; }
.opening__item b { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #E6CF9C; }
.opening__dot { width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--sage); }
@keyframes opening-roll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .opening__track { animation: opening-roll 44s linear infinite; }
  .opening:hover .opening__track, .opening:focus-within .opening__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .opening__track { width: auto; justify-content: center; }
  .opening__run + .opening__run, .opening__item + .opening__item { display: none; }
}

/* -------------------------------------------- 22d. Launch note */
.launchnote { max-width: 60ch; }
.launchnote__ins { display: flex; gap: var(--sp-2); align-items: flex-start; font-weight: 600; color: var(--navy); }
.launchnote__ins svg { flex: none; margin-top: .2em; }
@media (min-width: 720px) {
  .launchgrid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-7); align-items: center; }
}

/* -------------------------------------------- 22e. Poster artwork */
/* Kyle's illustrations (build.py ART). They are on white paper; multiply drops
   the white out, so the same file sits on white and on --surface-sunk with no
   box around it. Height is the constraint — the six crops range from very tall
   (spine) to nearly square (runner) and should read as one set. */
.art { margin: 0; justify-self: center; }
.art img {
  display: block; width: auto; height: auto; max-width: 100%;
  max-height: clamp(280px, 46vh, 400px); mix-blend-mode: multiply;
}
.art--spine img { max-height: clamp(320px, 56vh, 460px); }
.art--sm img { max-height: 240px; }
@media (max-width: 719px) {
  .art img { max-height: 260px; }
  .launchgrid .art { margin-top: var(--sp-6); }
}

/* The whole posters, framed like the prints on the office wall: their own
   paper, a soft shadow, no blend. Beside them, copy in a showcase row. */
.poster { margin: 0; justify-self: center; width: min(100%, 400px); }
.poster img {
  display: block; width: 100%; height: auto;
  border-radius: var(--r-md); border: 1px solid var(--border);
  box-shadow: var(--shadow-2); background: #fff;
}
.showcase { display: grid; gap: var(--sp-6) var(--sp-8); align-items: center; }
@media (min-width: 820px) {
  .showcase { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }
  .showcase--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
  .showcase--flip .poster { order: 2; }
}
.showcase__text { max-width: 60ch; }

/* The spine poster's four regions, each a link into the site. */
.regions { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: grid; gap: var(--sp-2); }
@media (min-width: 560px) { .regions { grid-template-columns: 1fr 1fr; } }
.regions a, .regions div {
  display: block; height: 100%; padding: var(--sp-3) var(--sp-4); text-decoration: none; color: inherit;
  background: var(--surface-raised); border: 1px solid var(--border); border-left: 3px solid var(--sage);
  border-radius: var(--r-md);
  transition: border-color var(--dur-quick) var(--ease-out), transform var(--dur-quick) var(--ease-out);
}
.regions a:hover { border-color: var(--navy); border-left-color: var(--navy); transform: translateY(-2px); }
.regions b { display: block; font-family: var(--font-serif); color: var(--navy); }
.regions span { font-size: var(--step--1); color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .regions a { transition: none; } .regions a:hover { transform: none; } }

/* The practice's own poster lines (content.TAGLINES) — the posters' green, so
   they read as the brand speaking, and gold stays scarce. */
.eyebrow--tag { color: var(--sage-text); }
.footer__tag {
  margin: calc(-1 * var(--sp-2)) 0 var(--sp-4); font-size: var(--step--1);
  letter-spacing: .12em; text-transform: uppercase; color: #A9BC86;
}

/* -------------------------------------------- 22f. Offerings carousel */
/* Under the hero (Kyle, 10-02): one slide per offering, each ending in
   Schedule. The track is a native scroll-snap row — it swipes, and with JS off
   it is still a row you can scroll. motion.js adds the timer, arrows and tabs.
   Every slide is the hero's navy; its right half is a photograph or a short
   clip from the office once there is one (content.OFFERINGS), and until then
   the drawn panel: the logo's olive arcs around the service's own icon. */
.offers__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-5); margin-bottom: var(--sp-5); }
.offers__head h2 { margin: 0; }
.offers__ctl { display: none; gap: var(--sp-2); flex: none; }
@media (max-width: 559px) { .offers__ctl [data-carousel-prev], .offers__ctl [data-carousel-next] { display: none; } }   /* a phone swipes */
.has-carousel .offers__ctl { display: flex; }
.offers__btn {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; cursor: pointer;
  color: var(--navy); background: var(--surface-raised);
  border: 1.5px solid var(--border-strong); border-radius: var(--r-pill);
  transition: background-color var(--dur-quick) var(--ease-out), border-color var(--dur-quick) var(--ease-out), transform var(--dur-instant) var(--ease-out);
}
.offers__btn:hover { background: var(--surface-sunk); border-color: var(--navy); }
.offers__btn:active { transform: scale(.96); }
.offers__btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.offers__btn .ic { width: 20px; height: 20px; }
.offers__btn .ic--play-solid, .offers__btn[aria-pressed="true"] .ic--pause { display: none; }
.offers__btn[aria-pressed="true"] .ic--play-solid { display: block; }

.offers { position: relative; }
.offers__track {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  transition: opacity var(--dur-quick) var(--ease-out);
}
.offers__track::-webkit-scrollbar { display: none; }
.offers.is-swapping .offers__track { opacity: 0; }

.offer {
  flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: stretch; color: var(--text-invert);
  background:
    radial-gradient(90% 120% at 100% 0%, rgb(109 130 74 / .42), transparent 62%),
    linear-gradient(150deg, #24506F 0%, var(--navy) 46%, #132E47 100%);
}
@media (min-width: 820px) { .offer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 420px; } }
.offer__text { display: flex; flex-direction: column; justify-content: center; padding: var(--sp-6) var(--sp-5) var(--sp-7); }
@media (min-width: 820px) { .offer__text { padding: var(--sp-8) var(--sp-7) var(--sp-8) var(--sp-8); } }
.offer__count { margin: 0 0 var(--sp-4); font-size: var(--step--1); font-weight: 600; letter-spacing: .16em; color: #9FB3C6; }
.offer__count b { color: #E6CF9C; font-weight: 600; }
.offer h3 { color: #fff; font-size: var(--step-4); line-height: var(--lh-tight); margin: 0 0 var(--sp-3); }
.offer__line { margin: 0; max-width: 32ch; font-size: var(--step-1); line-height: 1.5; color: #D5E0EA; }
.offer__act { margin: var(--sp-6) 0 0; }

.offer__media { position: relative; display: grid; place-items: center; min-height: 220px; order: -1; }
@media (min-width: 820px) { .offer__media { order: 0; min-height: 0; } }
.offer__art { width: min(100%, 440px); height: auto; padding: var(--sp-4); overflow: visible; }
.offer__ring { fill: none; stroke: #9DAF7E; stroke-width: 2.5; stroke-linecap: round; opacity: .7; stroke-dasharray: 560 282; transform-origin: 200px 170px; transform: rotate(-64deg); }
.offer__ring--far { stroke-width: 1.5; opacity: .32; stroke-dasharray: 700 318; transform: rotate(118deg); }
.offer__disc { fill: rgb(255 255 255 / .07); stroke: rgb(255 255 255 / .16); stroke-width: 1.5; }
.offer__icon { stroke-width: 1.05; color: #F7F6F2; overflow: visible; }
.offer__icon .ic-hl, .offer__icon .ic-halo { fill: #D8B978; }
/* A real picture fills the half and melts into the navy on the text side. */
.offer__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.offer--shot .offer__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, #1A3D5E 0%, rgb(26 61 94 / 0) 38%);
}
@media (min-width: 820px) {
  .offer--shot .offer__media::after { background: linear-gradient(90deg, #1D4467 0%, rgb(29 68 103 / 0) 34%); }
}

/* The slide arriving: the arcs draw round and the icon settles, the same
   entrance as the doctor's circle in the hero. Only once JS is driving. */
@media (prefers-reduced-motion: no-preference) {
  .has-carousel .offer.is-active .offer__ring { animation: offer-ring 560ms var(--ease-settle) backwards; }
  .has-carousel .offer.is-active .offer__ring--far { animation-delay: 80ms; }
  .has-carousel .offer.is-active :is(.offer__disc, .offer__icon) { animation: offer-pop 520ms var(--ease-settle) 60ms backwards; transform-box: fill-box; transform-origin: center; }
  .has-carousel .offer.is-active .offer__text > * { animation: enter-rise 480ms var(--ease-settle) backwards; --from: 14px; }
  .has-carousel .offer.is-active .offer__text > :nth-child(2) { animation-delay: 50ms; }
  .has-carousel .offer.is-active .offer__text > :nth-child(3) { animation-delay: 100ms; }
  .has-carousel .offer.is-active .offer__act { animation-name: enter-slide; animation-delay: 140ms; }
  @keyframes offer-ring { from { stroke-dashoffset: 560; opacity: 0; } }
  @keyframes offer-pop { from { opacity: 0; transform: scale(.9); } }
}

/* The tabs: every offering by name, so the whole list is readable at a glance,
   with the timer drawn along the top of the one that is showing. */
.offers__tabs { display: none; gap: var(--sp-2); margin-top: var(--sp-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.has-carousel .offers__tabs { display: grid; }
@media (min-width: 820px) { .offers__tabs { grid-template-columns: repeat(min(var(--n), 4), minmax(0, 1fr)); } }
.offers__tab {
  position: relative; overflow: hidden; display: flex; align-items: baseline; gap: var(--sp-3);
  min-height: 56px; padding: var(--sp-4) var(--sp-4) var(--sp-3); text-align: left; cursor: pointer;
  font: 600 var(--step-0)/1.25 var(--font-sans); color: var(--text-muted);
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--r-md);
  transition: color var(--dur-quick) var(--ease-out), border-color var(--dur-quick) var(--ease-out), background-color var(--dur-quick) var(--ease-out);
}
.offers__tab:hover { color: var(--navy); border-color: var(--border-strong); }
.offers__tab:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.offers__tab[aria-current="true"] { color: var(--navy); border-color: var(--navy); background: var(--surface-sunk); }
.offers__num { font-size: var(--step--1); letter-spacing: .12em; color: var(--gold-text); }
.offers__fill { position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--sage); transform: scaleX(0); transform-origin: 0 50%; }
.offers__tab[aria-current="true"] .offers__fill { transform: scaleX(1); }
.offers.is-playing .offers__tab[aria-current="true"] .offers__fill { animation: offer-fill var(--interval, 6s) linear both; }
@keyframes offer-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .offers__btn, .offers__tab { transition: none; }
}
@media print { .offers__ctl, .offers__tabs { display: none !important; } .offers__track { display: block; } }

/* Doctor page: the bio's own Schedule button, and room in the footer for one. */
.card__act { margin-top: var(--sp-5); }
@media (min-width: 768px) {
  /* A long bio beside one photograph: the photograph keeps you company down the page. */
  .solo-doctor .card--doctor > .docslot { position: sticky; top: calc(var(--header-h) + var(--sp-5)); align-self: start; }
}
.card--doctor h2 { font-size: var(--step-3); margin-bottom: var(--sp-1); }
.footer__book { margin-top: var(--sp-5); }
.footer__book .btn { color: var(--navy); }

/* -------------------------------------------- 23. Preview versions */
/* Review furniture: the bar on every page of a preview version, and the picker
   at "/". Neither exists in a launch build. */
.versionbar {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--sp-2) var(--sp-4);
  padding: 6px var(--sp-4); background: var(--ink); color: #C9D2DC; font-size: var(--step--1);
}
.versionbar b { color: #fff; }
.versionbar a { color: #D8B978; font-weight: 600; }

.picker { padding-block: var(--sp-8) var(--sp-9); }
.picker__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5) var(--sp-6); margin-bottom: var(--sp-7); }
.picker__head img {
  width: 88px; height: 88px; padding: 4px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
.picker__head h1 { margin-bottom: var(--sp-2); }
.picker__head .lede { margin: 0; }
.picker__grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-6);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
}
.picker__card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  text-decoration: none; color: inherit; background: var(--surface-raised);
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  transition: transform var(--dur-quick) var(--ease-out), box-shadow var(--dur-quick) var(--ease-out), border-color var(--dur-quick) var(--ease-out);
}
.picker__card:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--border-strong); }
.picker__thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-sunk); border-bottom: 1px solid var(--border); }
.picker__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.picker__nothumb { display: grid; place-items: center; height: 100%; }
.picker__body { display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; padding: var(--sp-5) var(--sp-6) var(--sp-6); }
.picker__body .eyebrow { margin: 0; }
.picker__name { font-family: var(--font-serif); font-weight: 600; font-size: var(--step-3); line-height: var(--lh-tight); color: var(--ink); }
.picker__sum { color: var(--text-muted); }
.picker__go { margin-top: auto; padding-top: var(--sp-3); font-weight: 600; color: var(--navy); }
.picker__note { margin-top: var(--sp-7); text-align: center; font-size: var(--step--1); color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) {
  .picker__card { transition: none; }
  .picker__card:hover { transform: none; }
}
