/* ==========================================================================
   EsterRx Wellness — style.css
   Component layer. Every value comes from css/tokens.css.
   HARD: no hand-written font-size. Every text element uses a --fs-* token.
   ========================================================================== */

/* --------------------------------------------------------------- 1. RESET */

*, *::before, *::after { box-sizing: border-box; }

html {
  font-optical-sizing: auto;
  scroll-padding-top: calc(var(--header-h) + var(--space-lg));
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-weight: var(--wt-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, iframe, svg, video { display: block; max-width: 100%; }
img { height: auto; }

/* Floor guards — the computed-style audit catches these; tokens alone won't. */
small, sub, sup, figcaption, legend, cite, code, kbd, samp, address, summary, li {
  font-size: inherit;
}
code, kbd, samp, pre { font-family: var(--font-mono); font-size: var(--fs-mono); }
address { font-style: normal; }
em, i { font-style: normal; color: var(--muted); }
strong, b { font-weight: var(--wt-medium); }
sub, sup { vertical-align: baseline; }

button, input, select, textarea {
  font-family: inherit;
  font-size: var(--fs-ui);
  line-height: var(--lh-ui);
  color: inherit;
}
::placeholder { font-family: inherit; font-size: var(--fs-ui); color: var(--muted); }

button { background: none; border: 0; padding: 0; cursor: pointer; }

a { color: inherit; }

::selection { background: var(--accent-tint-strong); color: var(--ink); }

:focus-visible {
  outline: var(--focus-ring-w) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-off);
  border-radius: var(--radius-xs);
}

/* -------------------------------------------------------- 2. TYPE CLASSES */

.h2 {
  font-family: var(--font-display);
  font-weight: var(--wt-regular);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  color: var(--ink);
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-weight: var(--wt-regular);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);
  color: var(--ink);
  text-wrap: balance;
}

.h4 {
  font-family: var(--font-display);
  font-weight: var(--wt-regular);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  letter-spacing: var(--ls-h4);
  color: var(--ink);
}

.statement {
  font-family: var(--font-display);
  font-weight: var(--wt-regular);
  font-size: var(--fs-statement);
  line-height: var(--lh-statement);
  letter-spacing: var(--ls-statement);
  color: var(--ink);
  max-width: var(--measure-wide);
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-lead);
  color: var(--muted);
  max-width: var(--measure-narrow);
}

.body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--ink-2);
  max-width: var(--measure);
}

.caption {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-caption);
  color: var(--muted);
  max-width: var(--measure-narrow);
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: var(--wt-regular);
  font-size: var(--fs-mono);
  line-height: var(--lh-mono);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--accent);
}

.spec {
  font-family: var(--font-mono);
  font-weight: var(--wt-regular);
  font-size: var(--fs-mono);
  line-height: var(--lh-mono);
  letter-spacing: var(--ls-mono-tight);
  text-transform: uppercase;
  color: var(--muted);
  border-top: var(--hairline) solid var(--rule);
  padding-top: var(--space-sm);
}
.spec--pad { margin-top: var(--space-lg); }

/* Prose links — BRAND §5.12. The SEO anchors look like any other link. */
.body a, .caption a, .statement a, .qa__a a, .ftr__notes a, .booking__caption a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--dur-quick) var(--ease-standard);
}
.body a:hover, .caption a:hover, .statement a:hover,
.qa__a a:hover, .ftr__notes a:hover,
.booking__caption a:hover { text-decoration-color: var(--ink); }

/* ------------------------------------------------------------ 3. HELPERS */

.wrap {
  width: 100%;
  max-width: calc(var(--container) + var(--page-margin) * 2);
  margin-inline: auto;
  padding-inline: var(--page-margin);
}

.skip {
  position: absolute;
  left: var(--page-margin);
  top: 0;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--ground);
  font-size: var(--fs-ui);
  line-height: var(--lh-ui);
  padding: 0.75em 1.4em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-standard);
}
.skip:focus-visible { transform: translateY(24px); }

.sec-head { display: grid; gap: var(--stack-heading); justify-items: start; }
.sec-head .lead { max-width: var(--measure-narrow); }

/* ------------------------------------------------------------ 4. BUTTONS */

.btn {
  display: inline-block;
  font-family: var(--font-text);
  font-weight: var(--wt-medium);
  font-size: var(--fs-ui);
  line-height: var(--lh-ui);
  letter-spacing: var(--ls-ui);
  padding: 0.85em 1.7em;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-none);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  color: var(--ground);
  background: var(--ink);
  border: var(--hairline) solid var(--ink);
  transition: background var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
}

.btn--ghost {
  color: var(--ink);
  background: transparent;
  border: var(--hairline) solid var(--rule-strong);
  transition: border-color var(--dur-quick) var(--ease-standard),
              background var(--dur-quick) var(--ease-standard);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  border-color: var(--ink);
  background: var(--accent-tint);
}

/* --------------------------------------------------------------- 5. PILL */

.pill {
  font-family: var(--font-mono);
  font-weight: var(--wt-regular);
  font-size: var(--fs-mono);
  line-height: var(--lh-mono);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border: var(--hairline) solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  white-space: nowrap;
}

/* ------------------------------------------------------------- 6. HEADER */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: blur(var(--blur-header)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--blur-header)) saturate(1.1);
  border-bottom: var(--hairline) solid transparent;
  transition: border-color var(--dur-base) var(--ease-standard),
              background var(--dur-base) var(--ease-standard);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hdr { background: var(--ground); }
}
.hdr.is-scrolled { border-bottom-color: var(--rule); }

.hdr__inner {
  max-width: calc(var(--container) + var(--page-margin) * 2);
  margin-inline: auto;
  padding-inline: var(--page-margin);
  min-height: var(--header-h);
  display: grid;
  align-items: center;
  column-gap: var(--space-xl);
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "mark nav pill cta";
}

.lockup {
  grid-area: mark;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  padding-right: calc(var(--wordmark-clear) * 0.5);
}
.lockup__mark {
  font-family: var(--font-display);
  font-weight: var(--wt-regular);
  font-size: var(--wordmark-size);
  line-height: 1.1;
  letter-spacing: var(--wordmark-ls);
  color: var(--ink);
  white-space: nowrap;
}
.lockup__rule {
  width: 1px;
  height: 1.1em;
  font-size: var(--wordmark-size);
  background: var(--rule-strong);
  flex: none;
}
.lockup__desc {
  font-family: var(--font-mono);
  font-weight: var(--wt-regular);
  font-size: var(--fs-mono);
  line-height: var(--lh-mono);
  letter-spacing: var(--wordmark-desc-ls);
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav { grid-area: nav; justify-self: end; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2vw, 40px);
}
.nav__list a {
  font-size: var(--fs-ui);
  line-height: var(--lh-ui);
  letter-spacing: var(--ls-ui);
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur-quick) var(--ease-standard);
}
.nav__list a:hover, .nav__list a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.nav__cta { display: none; }

.pill { grid-area: pill; justify-self: end; }
.menu { grid-area: menu; display: none; }
.hdr__cta { grid-area: cta; justify-self: end; }

/* --------------------------------------------------------------- 7. HERO */

.hero {
  position: relative;
  min-height: 100svh;
  margin-top: calc((var(--header-h) + var(--hairline)) * -1);
  display: flex;
  align-items: center;
  overflow: hidden;
  overflow-x: clip;
  isolation: isolate;
  background: var(--ground);
}

/* The still life holds the right third of the frame; the type sits on the
   bone ground beside it. Measured: ink over the photograph's own left third
   falls to 1.5:1 behind the vial, so the headline does not go there. */
.hero__media {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: 33%;
  overflow: hidden;
  /* The 1.04 hero scale otherwise leaks the img's bounding rect past the
     viewport edge; clip-path bounds the rect itself, not just the paint. */
  clip-path: inset(0);
  contain: paint;
}
.hero__media picture { display: block; height: 100%; }
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
  /* Origin at the right edge: the panel is flush to the viewport there, so the
     1.04 settle grows inward and the img's rect never leaves the viewport. */
  transform-origin: 100% 50%;
  transform: scale(var(--hero-scale-from));
  transition: transform var(--dur-hero) var(--ease-out-soft);
}
.hero__img.is-settled { transform: scale(1); }

/* --scrim-hero is deliberately unused: the headline no longer sits over the
   photograph, so ink-on-photo contrast is not in play and a wash would only
   grey a warm still life (BRAND §5.8). */

.hero__body {
  width: 100%;
  max-width: calc(var(--container) + var(--page-margin) * 2);
  margin-inline: auto;
  padding-inline: var(--page-margin);
  padding-top: calc(var(--header-h) + var(--space-2xl));
  padding-bottom: var(--space-3xl);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: var(--wt-regular);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  color: var(--ink);
  max-width: min(57vw, 960px);
  margin-bottom: var(--space-xl);
}

.hero__sub {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-lead);
  color: var(--ink-2);
  max-width: 34ch;
  margin-bottom: var(--space-md);
}

.hero__disclosure {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-caption);
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: var(--space-xl);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* -------------------------------------------------------------- 8. INTRO */

.intro { padding-block: var(--section-pad-y); }
.intro .eyebrow { margin-bottom: var(--stack-heading); }

/* ----------------------------------------------------------- 9. SERVICES */

/* The last pillar's own padding plus the booking-adjacent band's top padding
   already give the transition its air; a third stack reads as a hole. */
.services { padding-bottom: 0; }
.services > .wrap > .sec-head { margin-bottom: var(--stack-block); }

.pillar { padding-block: var(--section-pad-y-tight); }

.pillar__grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  gap: var(--gutter);
  align-items: stretch;
}

.pillar__media { grid-column: 1 / span 6; }
.pillar__text  { grid-column: 8 / span 5; }
.pillar--flip .pillar__media { grid-column: 7 / span 6; grid-row: 1; }
.pillar--flip .pillar__text  { grid-column: 1 / span 5; grid-row: 1; }

/* BRAND §5.8: pillars run at --ratio-portrait. The three renders arrive at
   3:4, 4:3 and 4:3, so each is panned to keep its subject inside the 4/5 box.
   At this column width 4/5 also lands within a few pixels of the text height,
   which is what closes the gap beside the two landscape frames. */
.pillar__media {
  aspect-ratio: var(--ratio-portrait);
  align-self: center;
}
.pillar__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--img-ring);
}
#iv .pillar__media img       { object-position: 50% 38%; }
#peptides .pillar__media img { object-position: 55% 50%; }
#weight .pillar__media img   { object-position: 58% 50%; }

.pillar__text .h3 { margin-top: var(--space-md); }
.pillar__text .body { margin-top: var(--space-md); }
.pillar__text > .reveal:last-child { margin-top: var(--space-xl); }

.expect { margin-top: var(--space-xl); }
.expect__title {
  font-family: var(--font-mono);
  font-weight: var(--wt-regular);
  font-size: var(--fs-mono);
  line-height: var(--lh-mono);
  letter-spacing: var(--ls-mono-tight);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}
.expect__list { display: grid; }
.expect__list li {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-2);
  border-top: var(--hairline) solid var(--rule);
  padding-block: var(--space-xs);
  max-width: var(--measure);
}
.expect__list li:last-child { border-bottom: var(--hairline) solid var(--rule); }

/* -------------------------------------------------------------- 10. VISIT */

.visit { padding-block: var(--section-pad-y); background: var(--ground-2); }
.visit .sec-head { margin-bottom: var(--stack-block); }

.steps { display: grid; }
.step {
  display: grid;
  grid-template-columns: 2fr 3fr 7fr;
  gap: var(--gutter);
  align-items: start;
  padding-block: var(--space-xl);
  border-top: var(--hairline) solid var(--rule-strong);
}
.steps .step:last-child { border-bottom: var(--hairline) solid var(--rule-strong); }
.step .spec { border-top: 0; padding-top: 0; }
.step .body { color: var(--ink-2); }

/* ------------------------------------------------------------ 11. BOOKING */

.booking {
  background: var(--ground-booking);
  padding-block: var(--section-pad-y);
  border-block: var(--hairline) solid var(--rule);
}

.booking__head {
  display: grid;
  gap: var(--stack-heading);
  justify-items: center;
  text-align: center;
  margin-bottom: var(--stack-block);
}
.booking__line { max-width: 56ch; color: var(--muted); }

/* No card chrome around the embed: the widget draws its own white card on a
   ground that matches this band, so the frame edge should be invisible. */
.booking__frame {
  max-width: var(--container-book);
  margin-inline: auto;
  background: var(--surface-booking);
  overflow: hidden;
}
.booking__frame iframe { display: block; width: 100%; height: 900px; border: 0; }
/* Once the widget reports its height the frame follows it; the transition
   keeps step changes from snapping. */
.booking__frame iframe.is-sized { transition: height 220ms var(--ease-out-soft); }

.booking__noscript, .booking__caption {
  color: var(--muted);
  max-width: var(--measure-narrow);
  margin-inline: auto;
  margin-top: var(--space-md);
  text-align: center;
}
.booking__noscript {
  font-family: var(--font-mono);
  font-weight: var(--wt-regular);
  font-size: var(--fs-mono);
  line-height: 1.6;
  letter-spacing: var(--ls-mono-tight);
}
/* A full sentence, so Geist — mono is reserved for eyebrows, spec lines and
   the address block (BRAND §3.1). */
.booking__caption {
  font-family: var(--font-text);
  font-weight: var(--wt-regular);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-caption);
  max-width: var(--measure);
}

/* ------------------------------------------------------------- 12. CLINIC */

.clinic { padding-block: var(--section-pad-y); }
.clinic__grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  gap: var(--gutter);
  align-items: stretch;
}
.clinic__text { grid-column: 1 / span 6; }
.clinic__media { grid-column: 8 / span 5; }
.clinic__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  box-shadow: var(--img-ring);
}

.clinic__text .h2 { margin-top: var(--stack-heading); }

/* One column: the mono address, telephone and hours want a full line each. */
.details {
  margin-top: var(--stack-block);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
}
.detail__body {
  margin-top: var(--space-sm);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-2);
}
.detail__body--mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  line-height: 1.7;
  letter-spacing: var(--ls-mono-tight);
}
.clinic__tele { margin-top: var(--space-2xl); }
.clinic__placeholder { margin-top: var(--space-md); max-width: var(--measure); }

/* ---------------------------------------------------------------- 13. FAQ */

.faq { padding-block: var(--section-pad-y); }
.faq .sec-head { margin-bottom: var(--stack-block); }
.faq__list { max-width: var(--container-text); }

.qa { border-top: var(--hairline) solid var(--rule); }
.qa:last-child { border-bottom: var(--hairline) solid var(--rule); }

.qa > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-block: var(--space-lg);
  cursor: pointer;
  list-style: none;
  font-size: var(--fs-h4);
}
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary::marker { content: ""; }

.qa__q {
  font-family: var(--font-display);
  font-weight: var(--wt-regular);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  letter-spacing: var(--ls-h4);
  color: var(--ink);
}

.qa__mark {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  align-self: center;
}
.qa__mark::before, .qa__mark::after {
  content: "";
  position: absolute;
  background: var(--muted);
}
.qa__mark::before { left: 0; right: 0; top: 50%; height: 1px; }
.qa__mark::after {
  top: 0; bottom: 0; left: 50%; width: 1px;
  transform-origin: center;
  transition: transform var(--dur-base) var(--ease-standard);
}
.qa[open] .qa__mark::after { transform: rotate(90deg); }

.qa__a {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--muted);
  max-width: var(--measure);
  padding-bottom: var(--space-lg);
}

/* ------------------------------------------------------------- 14. FOOTER */

.ftr {
  background: var(--ground-deep);
  color: var(--on-deep);
  padding-block: var(--section-pad-y-tight);
}

.ftr__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
  border-bottom: var(--hairline) solid var(--rule-deep);
}
.ftr__mark {
  font-family: var(--font-display);
  font-weight: var(--wt-regular);
  font-size: var(--wordmark-size-footer);
  line-height: 1.05;
  letter-spacing: var(--wordmark-ls-lg);
  color: var(--on-deep);
}
.ftr__desc {
  font-family: var(--font-mono);
  font-weight: var(--wt-regular);
  font-size: var(--fs-mono);
  line-height: var(--lh-mono);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--on-deep-muted);
  margin-top: var(--space-sm);
  margin-left: -0.02em;
}
.ftr__powered a {
  font-size: var(--fs-ui);
  line-height: var(--lh-ui);
  color: var(--on-deep);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--dur-quick) var(--ease-standard);
}
.ftr__powered a:hover { text-decoration-color: var(--on-deep); }

.ftr__notes {
  display: grid;
  gap: var(--space-md);
  padding-block: var(--space-2xl);
  max-width: var(--container-text);
}
.ftr__notes .caption { color: var(--on-deep-muted); max-width: 72ch; }
.ftr__notes a { color: var(--on-deep); text-decoration-color: var(--accent-soft); }
.ftr__notes a:hover { text-decoration-color: var(--on-deep); }

.ftr__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-xl);
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: var(--hairline) solid var(--rule-deep);
}
.ftr__meta {
  font-family: var(--font-mono);
  font-weight: var(--wt-regular);
  font-size: var(--fs-mono);
  line-height: var(--lh-mono);
  letter-spacing: var(--ls-mono-tight);
  color: var(--on-deep-muted);
}
.ftr__meta a {
  color: var(--on-deep);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--dur-quick) var(--ease-standard);
}
.ftr__meta a:hover { text-decoration-color: var(--on-deep); }

/* -------------------------------------------------------------- 15. MOTION */

/* Opt-in: the hidden state exists only when JS is running. */
html.js .reveal {
  opacity: 0;
  transform: translateY(var(--reveal-shift));
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .booking__frame iframe.is-sized { transition: none; }
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-reveal) var(--ease-out-quart),
              transform var(--dur-reveal) var(--ease-out-quart);
  transition-delay: var(--reveal-delay, 0ms);
}

/* --------------------------------------------------------- 16. BREAKPOINTS */

/* --- 1280: header descriptor + rule drop, wordmark steps to 28px --------- */
@media (max-width: 1279.98px) {
  .lockup__rule, .lockup__desc { display: none; }
  .lockup__mark { font-size: var(--wordmark-size-md); }
  .hdr__inner { column-gap: var(--space-lg); }
}

/* --- 1080: pillar text gets a little more room -------------------------- */
@media (max-width: 1080px) {
  .pillar__media { grid-column: 1 / span 5; }
  .pillar__text  { grid-column: 7 / span 6; }
  .pillar--flip .pillar__media { grid-column: 8 / span 5; }
  .pillar--flip .pillar__text  { grid-column: 1 / span 6; }
  .clinic__text { grid-column: 1 / span 7; }
  .clinic__media { grid-column: 9 / span 4; }
}

/* --- 900: nav becomes a panel, hero stacks, pillars stack --------------- */
@media (max-width: 899.98px) {

  .hdr__inner {
    grid-template-columns: auto 1fr auto auto auto;
    grid-template-areas: "mark . pill cta menu";
    column-gap: var(--space-md);
  }
  .menu {
    display: inline-block;
    grid-area: menu;
    justify-self: end;
    font-size: var(--fs-ui);
    line-height: var(--lh-ui);
    letter-spacing: var(--ls-ui);
    color: var(--ink);
  }
  /* Absolute, not fixed: the header carries a backdrop-filter, which makes it
     the containing block for fixed descendants. */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    justify-self: stretch;
    height: calc(100svh - var(--header-h));
    z-index: 40;
    background: var(--ground);
    border-top: var(--hairline) solid var(--rule);
    padding: var(--space-2xl) var(--page-margin) var(--space-3xl);
    display: none;
    overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav__list { display: grid; gap: var(--space-lg); align-items: start; }
  .nav__list a {
    font-family: var(--font-display);
    font-size: var(--fs-h4);
    line-height: var(--lh-h4);
    letter-spacing: var(--ls-h4);
    color: var(--ink);
  }
  .nav__cta { display: block; text-align: center; margin-top: var(--space-2xl); }

  /* Hero stacks: type on ground, image as a band beneath. */
  /* Type first: the headline must land above the fold, the still life follows. */
  .hero { display: flex; flex-direction: column; min-height: 100svh; margin-top: 0; }
  .hero__body { order: 1; }
  .hero__media { order: 2; position: relative; inset: auto; right: auto; width: auto;
                 flex: 1 0 auto; min-height: 42svh; }
  .hero__media picture { height: 100%; }
  .hero__img { object-position: 62% center; }
  .hero__body {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-3xl);
  }
  .hero__title { max-width: min(100%, 11em); }
  .hero__sub, .hero__disclosure { max-width: 46ch; }

  .pillar__grid, .clinic__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
  .pillar__media, .pillar__text,
  .pillar--flip .pillar__media, .pillar--flip .pillar__text,
  .clinic__text, .clinic__media { grid-column: 1; grid-row: auto; }
  .pillar__text { margin-top: var(--space-xl); }
  .clinic__media { margin-top: var(--space-2xl); }
  .pillar__media { aspect-ratio: auto; }
  .pillar__media img, .clinic__media img { height: auto; max-height: 70svh; object-fit: cover; }

  .step { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
  .step .h4 { margin-top: var(--space-2xs); }
}

/* --- 720: pill leaves the bar and becomes a strip ------------------------ */
@media (max-width: 719.98px) {
  :root { --header-h: 64px; }

  .hdr__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "pill pill"
      "mark menu";
    /* BRAND §5.10: below 720 the Book button leaves the bar for the panel. */
    row-gap: 0;
    padding-inline: 0;
  }
  .lockup { padding-left: var(--page-margin); }
  .menu { padding-right: var(--page-margin); }

  .pill {
    justify-self: stretch;
    text-align: left;
    border: 0;
    border-bottom: var(--hairline) solid var(--rule);
    border-radius: 0;
    padding: 8px var(--page-margin);
    letter-spacing: var(--wordmark-desc-ls);
  }
  .hdr__cta { display: none; }
  .lockup__mark { font-size: var(--wordmark-size-sm); }
  .hdr__inner { min-height: 0; }
  .lockup, .menu { min-height: var(--header-h); display: flex; align-items: center; }

  .nav { height: calc(100svh - var(--header-h) - 36px); }

  html { scroll-padding-top: calc(var(--header-h) + 36px + var(--space-md)); }
}

/* --- 600: single column, tighter grids ---------------------------------- */
@media (max-width: 600px) {
  .details { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .ftr__top { align-items: flex-start; }
  .hero__actions .btn { flex: 1 1 100%; text-align: center; }
}
