/* ==========================================================================
   Premier Plastic Surgery Group of Utah, LLC
   Design system: engraved-serif identity carried over from the existing
   PREMIER wordmark, set on a neutral paper ground with a single pine accent.

   Radius system: 0 everywhere. The only circles are the surgeon portraits,
   because the source photography is already a circular crop.
   Accent lock: --accent (pine) is the only accent colour on the site.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-italic.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper:        #f4f4f2;
  --surface:      #ffffff;
  --surface-2:    #ececeA;
  --ink:          #17191a;
  --ink-soft:     #3d4442;
  --muted:        #5c6360;
  --accent:       #1d5546;
  --accent-deep:  #143c31;
  --accent-tint:  #e6ecea;
  --on-accent:    #ffffff;
  --line:         rgba(23, 25, 26, 0.13);
  --line-strong:  rgba(23, 25, 26, 0.28);
  --shadow:       0 18px 48px rgba(23, 40, 35, 0.10);
  --logo-filter:  none;

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body:    "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap:         1240px;
  --gutter:       clamp(1.25rem, 5vw, 4rem);
  --header-h:     76px;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:       #131513;
    --surface:     #1a1d1b;
    --surface-2:   #212523;
    --ink:         #ecedea;
    --ink-soft:    #c8ccc9;
    --muted:       #9aa19d;
    --accent:      #7cc4ac;
    --accent-deep: #a3d8c5;
    --accent-tint: #1d2b26;
    --on-accent:   #0d1512;
    --line:        rgba(236, 237, 234, 0.14);
    --line-strong: rgba(236, 237, 234, 0.30);
    --shadow:      0 18px 48px rgba(0, 0, 0, 0.45);
    --logo-filter: invert(1);
  }
}

/* ---------- Reset ---------- */
*, *::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(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
/* Grid and flex children default to min-width:auto, so a long word can blow
   out a track. Reset it on every layout container that holds free text. */
.split > *, .band__grid > *, .facts > *, .panels > *, .footer__grid > *,
.form > *, .form__row > *, .field, .contact-list, .contact-list > li > div { min-width: 0; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: 0; top: 0;
  transform: translateY(-120%);
  background: var(--accent); color: var(--on-accent);
  padding: 0.75rem 1.25rem; z-index: 100;
  font-size: 0.875rem; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(2.6rem, 5.4vw, 4.35rem);
  line-height: 1.06;
}
.h-section {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.12;
}
.h-sub {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.22;
}

p { margin: 0 0 1.1em; max-width: 65ch; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.075rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
}
.muted { color: var(--muted); }

/* Eyebrow: rationed. Two per page, maximum. */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--line { border-top: 1px solid var(--line); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 42px; width: auto; filter: var(--logo-filter); }

.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 450;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  white-space: nowrap;
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav a:not(.btn):hover { color: var(--ink); border-bottom-color: var(--accent); }
.nav a:not(.btn)[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.header__actions { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }
.header__tel {
  display: inline-flex; align-items: center; gap: 0.45rem;
  text-decoration: none; font-size: 0.875rem; font-weight: 500;
  white-space: nowrap; color: var(--ink);
  transition: color 0.25s var(--ease);
}
.header__tel:hover { color: var(--accent); }
.header__tel svg { width: 16px; height: 16px; fill: var(--accent); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-strong);
  width: 44px; height: 44px; cursor: pointer;
  align-items: center; justify-content: center;
  padding: 0;
}
.nav-toggle svg { width: 22px; height: 22px; fill: var(--ink); }
.nav-toggle .nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

.btn.btn--primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.btn.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn--sm { padding: 0.65rem 1.1rem; font-size: 0.8125rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; font-size: 0.875rem; font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.link-arrow svg { width: 14px; height: 14px; fill: currentColor; }
.link-arrow:hover { border-bottom-color: var(--accent); gap: 0.75rem; }

/* ---------- Hero (split) ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
}
.hero__copy {
  padding-block: clamp(3rem, 6vw, 5.5rem);
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 44rem;
  margin-inline: auto;
  width: 100%;
}
.hero__copy .lede { max-width: 34ch; margin-top: 1.5rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.hero__media { position: relative; min-height: 58vw; background: var(--surface-2); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 1080px) {
  .hero__grid { grid-template-columns: 1.02fr 1fr; align-items: stretch; }
  .hero__copy {
    padding-inline: var(--gutter) clamp(2rem, 4vw, 4rem);
    padding-block: clamp(3rem, 5vw, 4.5rem);
    margin-inline: 0;
    margin-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
    max-width: none;
  }
  .hero__media { min-height: min(72vh, 620px); }
}

/* ---------- Page head (interior pages) ---------- */
.pagehead { border-bottom: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem); }
.pagehead .lede { margin-top: 1.25rem; max-width: 52ch; }
.crumb {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.1rem;
}
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--accent); }

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split--reverse .split__media { order: -1; }
}
.split__media img { width: 100%; }
.split__body h2 { margin-bottom: 1.5rem; }

/* ---------- Fact row ---------- */
.facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.facts__item { padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.facts__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}
.facts__item span { font-size: 0.9375rem; color: var(--muted); }
@media (min-width: 780px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts__item { padding: 2rem clamp(1rem, 3vw, 2.5rem) 2rem 0; border-bottom: 0; }
  .facts__item + .facts__item { border-left: 1px solid var(--line); padding-left: clamp(1.5rem, 3vw, 3rem); }
}

/* ---------- Bento (procedure categories) ---------- */
.bento { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 860px) {
  .bento { grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .bento__cell--lead { grid-row: span 2; }
}
.bento__cell {
  position: relative;
  display: flex;
  min-height: 260px;
  background: var(--surface);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
}
.bento__cell--lead { min-height: 420px; }
.bento__cell img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.bento__cell::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 22, 18, 0.18) 0%, rgba(10, 22, 18, 0.72) 78%);
}
.bento__cell:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .bento__cell img { transition: none; }
  .bento__cell:hover img { transform: none; }
}
.bento__inner {
  align-self: flex-end;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  color: #fff;
  width: 100%;
}
.bento__inner h3 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin-bottom: 0.5rem; }
.bento__inner p { color: rgba(255, 255, 255, 0.86); font-size: 0.9375rem; max-width: 34ch; margin-bottom: 1rem; }
.bento__inner .link-arrow { color: #fff; }
.bento__inner .link-arrow:hover { border-bottom-color: #fff; }

/* ---------- Surgeon rail ---------- */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.25rem;
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .rail { overflow-x: visible; } }

.surgeon { text-align: left; text-decoration: none; display: block; }
.surgeon__photo {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: 1.1rem;
}
.surgeon__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 0.7s var(--ease);
}
.surgeon:hover .surgeon__photo img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .surgeon__photo img, .surgeon:hover .surgeon__photo img { transition: none; transform: none; } }
.surgeon h3 { font-size: 1.35rem; line-height: 1.2; }
.surgeon__cred {
  font-size: 0.75rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--muted); margin: 0.4rem 0 0.75rem;
}

/* ---------- Two-panel (practical matters) ---------- */
.panels { display: grid; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .panels { grid-template-columns: 1fr 1fr; } }
.panel { padding: clamp(2rem, 4vw, 3.25rem) 0; }
.panel + .panel { border-top: 1px solid var(--line); }
@media (min-width: 820px) {
  .panel { padding-right: clamp(2rem, 4vw, 4rem); }
  .panel + .panel { border-top: 0; border-left: 1px solid var(--line); padding-left: clamp(2rem, 4vw, 4rem); padding-right: 0; }
}
.panel h3 { margin-bottom: 0.85rem; }
.panel p { font-size: 0.9688rem; color: var(--muted); margin-bottom: 1.35rem; }

/* ---------- Location band ---------- */
.band { position: relative; isolation: isolate; }
.band__bg { position: absolute; inset: 0; z-index: -2; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(9, 20, 17, 0.90) 0%, rgba(9, 20, 17, 0.72) 45%, rgba(9, 20, 17, 0.40) 100%);
}
.band .wrap { padding-block: clamp(4rem, 8vw, 7rem); }
.band, .band h2 { color: #fff; }
.band a:not(.btn) { color: #fff; }
.band .btn.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.42); }
.band .btn.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.10); }
.band .eyebrow { color: #a9d8c6; }
.band .lede { color: rgba(255, 255, 255, 0.82); }
.band__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .band__grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; margin-top: 3px; opacity: 0.75; }
.contact-list dt, .contact-list .label {
  font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.62; margin-bottom: 0.3rem;
}
.contact-list a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.contact-list a:hover { border-bottom-color: currentColor; }
.contact-list address { font-style: normal; }

/* ---------- Procedure index ---------- */
.proc-group + .proc-group { margin-top: clamp(3.5rem, 7vw, 6rem); }
.proc-group__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--line-strong);
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.proc-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
@media (min-width: 640px) { .proc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .proc-grid { grid-template-columns: repeat(3, 1fr); } }

.proc { display: flex; flex-direction: column; }
.proc__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); margin-bottom: 1.1rem; }
.proc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.proc:hover .proc__media img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .proc__media img, .proc:hover .proc__media img { transition: none; transform: none; } }
.proc h3 { font-size: 1.45rem; margin-bottom: 0.5rem; }
.proc p { font-size: 0.9375rem; color: var(--muted); margin-bottom: 0; }
.proc--plain { border-top: 1px solid var(--line); padding-top: 1.25rem; }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.35rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em; }
.field .hint { font-size: 0.8125rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0.8rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  appearance: none;
}
.field textarea { min-height: 128px; resize: vertical; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field .error { font-size: 0.8125rem; color: #a3231f; font-weight: 500; }
@media (prefers-color-scheme: dark) { .field .error { color: #ff9d97; } }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #a3231f; }
@media (prefers-color-scheme: dark) { .field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #ff9d97; } }

.form__row { display: grid; gap: 1.35rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

.form__status { font-size: 0.9375rem; padding: 0.9rem 1rem; border: 1px solid var(--line-strong); background: var(--surface); }
.form__status[data-state="ok"] { border-color: var(--accent); background: var(--accent-tint); color: var(--ink); }
.form__status[data-state="err"] { border-color: #a3231f; }
.btn[data-busy="true"] { opacity: 0.65; pointer-events: none; }

.form-note { font-size: 0.8125rem; color: var(--muted); max-width: 52ch; }

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer__grid {
  display: grid; gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand img { height: 58px; width: auto; filter: var(--logo-filter); margin-bottom: 1.25rem; }
.footer h4 {
  font-family: var(--font-body); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.17em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 1.1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.footer ul a, .footer address a { text-decoration: none; font-size: 0.9375rem; color: var(--ink-soft); }
.footer ul a:hover, .footer address a:hover { color: var(--accent); }
.footer address { font-style: normal; font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.75; }
.footer__legal {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8125rem; color: var(--muted);
}
.footer__legal p { margin: 0; max-width: none; }

/* ---------- Motion (MOTION_INTENSITY 4) ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .header__actions .btn { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    margin-left: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav[data-open="true"] { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) {
    padding-block: 0.95rem;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav a:not(.btn):hover,
  .nav a:not(.btn)[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent); }
  .nav .btn { margin-top: 1.25rem; width: 100%; }
}
@media (max-width: 560px) {
  .header__tel span { display: none; }
}

/* ---------- "Also in this area" list ----------
   A hairline definition list rather than a card grid, so any number of
   entries lays out without leaving an empty cell at the end of a row. */
.also { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.also__row {
  display: grid;
  gap: 0.35rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}
.also__row:last-child { border-bottom: 1px solid var(--line); }
.also dt { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; }
.also dd { margin: 0; font-size: 0.9375rem; color: var(--muted); max-width: 60ch; }
@media (min-width: 760px) {
  .also__row { grid-template-columns: minmax(14rem, 1fr) 2fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: baseline; }
  .also dt { padding-right: 1rem; }
}

/* ---------- People grid ----------
   Flex wrap rather than grid so a partial last row centres instead of
   leaving a hole. Five surgeons sit in one row on wide screens. */
.people {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  --cols: 2;
}
.people > * { flex: 0 1 calc((100% / var(--cols)) - clamp(1.75rem, 3vw, 2.5rem)); min-width: 0; }
@media (min-width: 700px)  { .people { --cols: 3; } }
@media (min-width: 1040px) { .people { --cols: 5; } }
