/* ===========================================================================
   Meridian Health Rooms — clinic.css
   Swiss-clinical journal world. Self-contained. Deliberately NOT Synilogix.
   NO serif · NO warm bone · NO orange · hairline rules ARE the texture.
   =========================================================================== */

/* --------------------------------------------------------------------------
   TOKENS
   -------------------------------------------------------------------------- */
:root {
  --ground: #F4F5F3;   /* cool near-white page paper */
  --field:  #FFFFFF;   /* pure white panels (the only "elevation") */
  --ink:    #1A1F1C;   /* near-black, green-graphite cast */
  --pine:   #1F4D3D;   /* single accent */
  --slate:  #5C6660;   /* secondary ink: labels, credentials, captions */
  --rule:   #D8DCD7;   /* 1px hairline */
  --alert:  #B23A2E;   /* reserved clinical red — at most ONCE */

  --font-display: 'Inter Tight', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Sans', system-ui, sans-serif; /* label alias — NOT mono (banned) */

  --spine-w: 62px;          /* desktop far-left ledger column width */
  --wrap-max: 1180px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   RESET / BASE
   -------------------------------------------------------------------------- */
*, *::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(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;           /* 17px floor honoured; 18px base for older eyes */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* leave room for the persistent spine on the left */
  padding-left: var(--spine-w);
}

h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

a { color: inherit; }

/* Shared mono label voice — floor 13px (0.8125rem) for older eyes (a11y) */
.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;        /* 13px floor — never below */
  color: var(--slate);
  font-weight: 500;
}
.slate { color: var(--slate); }

/* Pine link with underline (never colour-only) */
.link {
  color: var(--pine);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.link:hover { text-decoration-thickness: 2px; }

/* --------------------------------------------------------------------------
   FOCUS — visible 2px pine ring on every interactive element
   -------------------------------------------------------------------------- */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px; top: 0;
  background: var(--pine);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
  text-decoration: none;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}
.skip-link:focus { left: 0; top: 0; }

/* --------------------------------------------------------------------------
   LAYOUT WRAP
   -------------------------------------------------------------------------- */
.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

/* Hairline rule = the texture */
.rule {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 0;
}

/* Rule-draw motion: scales from left once on section enter.
   Default state already drawn (so no-JS / reduced-motion = final state). */
.rule--draw { transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  /* Only when JS marks the body as motion-capable do we hide-then-draw */
  .js .rule--draw { transform: scaleX(0); }
  .js .rule--draw.is-drawn {
    transform: scaleX(1);
    transition: transform 320ms var(--ease);
  }
}

/* --------------------------------------------------------------------------
   THE LEDGER SPINE  (signature lives here)
   A fixed far-left 1px rule with a mono caption riding it.
   -------------------------------------------------------------------------- */
.spine {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--spine-w);
  border-right: 1px solid var(--rule);
  background: var(--ground);
  z-index: 50;
  pointer-events: none;
}
/* Baseline-tick column: faint ledger ruling repeated down the margin */
.spine::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  right: 0;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    var(--rule) 0, var(--rule) 1px,
    transparent 1px, transparent 28px
  );
  opacity: 0.55;
}
/* The pine tick that lands on the rule when confirmed */
.spine__tick {
  position: absolute;
  top: 50%;
  right: -4px;
  width: 9px; height: 9px;
  background: var(--pine);
  transform: translateY(-50%) scale(0);
  transition: transform 200ms var(--ease);
}
.spine.is-confirmed .spine__tick { transform: translateY(-50%) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .spine__tick { transition: none; }
}
/* The living caption — vertical, riding the spine. ALWAYS visible from first
   paint; ≥13px mono, ink-weight for legibility (item 8 — the signature). */
.spine__label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8125rem;        /* 13px floor */
  font-weight: 500;
  color: var(--ink);           /* legible, not a faint tick */
  white-space: nowrap;
  /* if the live string ever runs taller than the viewport, cap it cleanly */
  max-height: 88vh;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 200ms var(--ease);
}
.spine.is-confirmed .spine__label { color: var(--pine); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .spine__label { transition: none; } }

/* --------------------------------------------------------------------------
   MASTHEAD
   -------------------------------------------------------------------------- */
.masthead { padding: clamp(2.5rem, 7vw, 5rem) 0 0; }
.masthead__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: clamp(2rem, 6vw, 4rem);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  letter-spacing: -0.025em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.62em;
}
/* mono sublabel sits on the wordmark baseline; ≥13px (a11y floor) */
.wordmark__sub {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8125rem;
  color: var(--slate);
  font-weight: 500;
  align-self: baseline;
}
.masthead__loc { margin: 0; }

/* THE NAMEPLATE — display scale, left-set, occupies left ~two-thirds.
   One key phrase carries the weight (ink + heavier), no colour gradient. */
.masthead__promise {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  line-height: 1.02;
  max-width: 16ch;          /* left-set, ~two-thirds on wide screens */
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
  text-wrap: balance;
}
.promise__key {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);          /* anchor phrase: weight, not colour */
}
/* the seat hairline that beds the nameplate like a newspaper masthead */
.masthead__seat { margin-top: clamp(1.5rem, 4vw, 2.5rem); }

.masthead__glance {
  display: grid;
  gap: 0;
  max-width: 640px;
  border-top: 1px solid var(--rule);
}
.glance__row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.glance__row dd { font-size: 1rem; }

/* --------------------------------------------------------------------------
   SECTIONS (shared scaffold)
   -------------------------------------------------------------------------- */
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section__num {
  display: block;
  margin-bottom: 1rem;
}
.section__head {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.02;
  margin-bottom: 0.9rem;
  /* Daylight-line graft: the head's last word runs a rule into the margin */
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.head__tail {
  flex: 1;
  height: 1px;
  background: var(--rule);
  min-width: 2rem;
}
.section__lede {
  max-width: 52ch;
  color: var(--slate);
  font-size: 1.05rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);   /* tighter head→content gap */
}

/* --------------------------------------------------------------------------
   01 · DOCTORS  (editorial ruled rows)
   -------------------------------------------------------------------------- */
.doctors { display: block; }
.doctor + .doctor { margin-top: 0; }
.doctor__body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
}
.doctor__name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.05;
  margin-bottom: 0.4rem;
}
.doctor__role { margin: 0; }
.doctor__quals p { font-size: 1rem; }
.doctor__quals p + p { margin-top: 0.5rem; }

/* Portrait = committed pine monogram, hairline-framed. A deliberate device,
   not a missing photo (item 11). Swap-in point for a real photo later. */
.portrait {
  width: 132px;
  aspect-ratio: 4 / 5;
  background: var(--field);
  border: 1px solid var(--ink);   /* ink frame — reads as intentional, not faint */
  display: grid;
  place-items: center;
  position: relative;
}
.portrait::before {
  /* faint pine-tinted tonal block behind the initials, hairline-ruled */
  content: "";
  position: absolute;
  inset: 10px;
  background: var(--ground);
  border: 1px solid var(--rule);
}
/* mono caps "GP" baseline label seats the monogram on a consistent line */
.portrait::after {
  content: "GP";
  position: absolute;
  bottom: 9px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--slate);
}
.portrait__mono {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 2.9rem;
  line-height: 1;
  color: var(--pine);
  margin-bottom: 0.5rem;          /* lift initials off the baseline label */
}

/* --------------------------------------------------------------------------
   02 · SERVICES  (ruled two-column list, NOT cards)
   -------------------------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
}
.service {
  padding: clamp(1.1rem, 2.5vw, 1.6rem) 0;
  border-bottom: 1px solid var(--rule);
  padding-right: clamp(1rem, 3vw, 2.5rem);
}
/* vertical hairline between the two columns */
.services .service:nth-child(odd) {
  border-right: 1px solid var(--rule);
  padding-right: clamp(1.5rem, 4vw, 3rem);
}
.services .service:nth-child(even) {
  padding-left: clamp(1.5rem, 4vw, 3rem);
}
.service__name {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin-bottom: 0.35rem;
}
.service__note { font-size: 0.98rem; margin: 0; }

/* --------------------------------------------------------------------------
   03 · PROCESS  (oversized mono numerals + hairline)
   -------------------------------------------------------------------------- */
.steps { border-top: 1px solid var(--rule); }
.step__body {
  display: grid;
  grid-template-columns: clamp(3.5rem, 9vw, 7rem) 1fr;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: baseline;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}
.step__num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1;
}
.step__label {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  margin-bottom: 0.4rem;
}
.step__text p { font-size: 1rem; max-width: 48ch; }

/* --------------------------------------------------------------------------
   04 · BOOK  — the destination ledger panel
   -------------------------------------------------------------------------- */
.section--book { padding-bottom: clamp(4rem, 9vw, 7rem); }

.ledger {
  background: var(--field);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  /* full-bleed-ish: break out of the wrap a touch for the torn-page feel */
  margin-top: clamp(1.5rem, 4vw, 2.75rem);
}

/* The living ledger headline — resolves live as you pick (item 9).
   Display scale, leads the widget, the ledger performing where people act. */
.ledger__line {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.75rem) var(--pad-x) clamp(1.25rem, 3vw, 1.75rem);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ledger__line-lead { color: var(--slate); }
.ledger__line-body {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  line-height: 1.08;
  color: var(--slate);          /* unresolved = quiet */
  transition: color 120ms var(--ease);
}
.ledger__line.is-resolved .ledger__line-body {
  color: var(--pine);           /* resolved selection = pine, never grey */
  font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
  .ledger__line-body { transition: none; }
}

.ledger__grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(0, 1.5fr) minmax(280px, 1.05fr);
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
/* hairline dividers between the three columns */
.ledger__rail,
.ledger__cal { border-right: 1px solid var(--rule); }
.ledger__rail, .ledger__cal, .ledger__slots {
  padding: clamp(1.75rem, 4vw, 3rem);
}

/* LEFT rail */
.rail__clinic { margin-bottom: 1.25rem; color: var(--ink); }
.rail__list { display: grid; gap: 0; }
.rail__row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
}
.rail__row:last-child { border-bottom: 1px solid var(--rule); }
.rail__row dd { font-size: 0.98rem; }
.rail__row dd[data-sum-date],
.rail__row dd[data-sum-time] { color: var(--slate); }
.rail__row dd.is-set { color: var(--pine); font-weight: 500; }

/* CENTRE calendar */
.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.cal__month { color: var(--ink); margin: 0; }
.cal__nav {
  font-family: var(--font-body);
  font-size: 1rem;
  width: 40px; height: 40px;
  background: var(--field);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  cursor: pointer;
}
.cal__nav[disabled] { color: var(--rule); cursor: default; }

.cal__dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}
.cal__dow span {
  text-align: center;
  font-size: 0.8125rem;        /* 13px floor (item 6) */
  padding: 0.35rem 0;
}
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
/* day cell — generous, ≥44px tap target (bigger, not smaller — item 9) */
.cal__day {
  position: relative;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1.05rem;
  background: var(--field);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  cursor: pointer;
  transition: background 80ms var(--ease), border-color 80ms var(--ease), color 80ms var(--ease);
}
.cal__day:hover:not([disabled]):not(.is-selected) { border-color: var(--ink); }
.cal__day[disabled] {
  cursor: default;
  color: var(--slate);
  border-color: transparent;
  background: transparent;
}
/* unavailable = slate + single strikethrough hairline (paired with aria text) */
.cal__day.is-unavailable {
  cursor: default;
  color: var(--slate);
}
.cal__day.is-unavailable::after {
  content: "";
  position: absolute;
  left: 18%; right: 18%;
  top: 50%;
  height: 1px;
  background: var(--slate);
}
.cal__day.is-empty { border-color: transparent; background: transparent; cursor: default; }
.cal__day.is-selected {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
  font-weight: 500;
}
@media (prefers-reduced-motion: reduce) { .cal__day { transition: none; } }

.cal__legend { margin-top: 1rem; font-size: 0.8125rem; }   /* 13px floor */

/* RIGHT slots */
.slots__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.slots__title { margin: 0; color: var(--ink); }
.toggle {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
}
.toggle__btn {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8125rem;        /* 13px floor (item 6) */
  padding: 0.5rem 0.8rem;
  background: var(--field);
  border: 0;
  color: var(--slate);
  cursor: pointer;
}
.toggle__btn + .toggle__btn { border-left: 1px solid var(--rule); }
.toggle__btn.is-on { background: var(--pine); color: #fff; }
.toggle__btn[disabled] { cursor: default; opacity: 0.5; }

.slots__scroll { display: grid; gap: 1.6rem; }
.slots__empty { font-size: 1rem; margin: 0; }
.slot-group__label {
  display: block;
  margin-bottom: 0.75rem;
}
.slot-list { display: grid; gap: 0.7rem; }

/* timeslot pill: generous, ≥52px tap target, full text label */
.slot {
  min-height: 56px;
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.55rem 0.9rem;
  background: var(--field);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  cursor: pointer;
  transition: background 80ms var(--ease), border-color 80ms var(--ease), color 80ms var(--ease);
}
.slot:hover:not(.is-selected) { border-color: var(--ink); }
.slot .slot__time { font-weight: 500; margin-right: 0.55rem; }
.slot .slot__doc { color: var(--slate); font-size: 0.92rem; }
.slot.is-selected {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}
.slot.is-selected .slot__doc { color: rgba(255,255,255,0.82); }
@media (prefers-reduced-motion: reduce) { .slot { transition: none; } }

/* FOOT: confirm + honesty */
.ledger__foot {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: clamp(1.5rem, 3.5vw, 2.25rem) var(--pad-x) clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--rule);
}
/* Confirm = a confident pine primary action that earns its weight (item 9).
   Default (no selection) = pine-OUTLINE on white; enabling FILLS it pine. */
.confirm {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 1.25rem 1.5rem;
  background: var(--field);
  color: var(--pine);
  border: 2px solid var(--pine);
  border-radius: 2px;
  cursor: default;
  transition: background 120ms var(--ease), color 120ms var(--ease);
}
/* unselected = a clear pine outline waiting to fill — never weak grey */
.confirm[disabled]:not(.is-confirmed) {
  background: var(--field);
  color: var(--pine);
  border-color: var(--pine);
  opacity: 0.62;               /* legibly muted, still pine + readable */
}
/* ready = filled solid pine, white text */
.confirm.is-ready {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
  cursor: pointer;
  opacity: 1;
}
.confirm.is-ready:hover { background: #1a4234; border-color: #1a4234; }
/* confirmed = locked solid pine restating the booking */
.confirm.is-confirmed {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
  cursor: default;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) { .confirm { transition: none; } }
.ledger__honesty {
  margin-top: 1rem;
  color: var(--slate);
  font-size: 0.98rem;
}

/* Post-confirm lock: the booking is final, the widget goes inert (item 5). */
.ledger.is-locked .cal__day,
.ledger.is-locked .slot,
.ledger.is-locked .toggle__btn { cursor: default; }
.ledger.is-locked .cal__day:not(.is-selected):not(.is-unavailable),
.ledger.is-locked .slot:not(.is-selected) { opacity: 0.55; }

/* --------------------------------------------------------------------------
   BREATH — sparse clinic principle between dense sections (item 10)
   One large line alone on near-empty ground. Breaks the metronome.
   -------------------------------------------------------------------------- */
.breath { padding: clamp(3.5rem, 10vw, 8rem) 0; }
.breath__line {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  max-width: 24ch;
  margin: 0;
  text-wrap: balance;
}
.breath__line-soft { color: var(--slate); }

/* --------------------------------------------------------------------------
   05 · WHERE  (ruled CONTACT / FIND US / HOURS)
   -------------------------------------------------------------------------- */
.where__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.where__key { margin-bottom: 0.85rem; }
.where__col .rule { margin-bottom: 1.1rem; }
.where__list { display: grid; gap: 0.9rem; }
.where__list li { display: grid; gap: 0.15rem; font-size: 1rem; }
.where__place { font-weight: 500; }
.hours { display: grid; }
.hours__row {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}
.hours__row:first-child { border-top: 1px solid var(--rule); }

/* The single rationed alert */
.alert {
  margin-top: 1.25rem;
  color: var(--alert);
  font-size: 0.98rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--alert);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer { padding-bottom: clamp(3rem, 7vw, 5rem); }
.footer__wrap { padding-top: clamp(2rem, 5vw, 3rem); display: grid; gap: 0.5rem; }
.wordmark--foot { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
.footer__line { font-size: 0.98rem; }
.footer__fine { margin-top: 0.5rem; }

/* --------------------------------------------------------------------------
   STICKY BAR  (the ONE permitted shadow)
   -------------------------------------------------------------------------- */
.sticky {
  position: fixed;
  left: var(--spine-w); right: 0; bottom: 0;
  background: var(--field);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -1px 6px rgba(26, 31, 28, 0.04);
  z-index: 60;
  transform: translateY(110%);
  transition: transform 260ms var(--ease), opacity 260ms var(--ease);
  opacity: 0;
}
.sticky.is-visible { transform: translateY(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .sticky { transition: none; }
}
.sticky__inner {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0.85rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sticky__text { margin: 0; font-size: 0.98rem; font-weight: 500; }
.sticky__text.is-confirmed { color: var(--pine); }
.sticky__actions { display: flex; align-items: center; gap: 1.25rem; }
.sticky__call { font-size: 0.95rem; white-space: nowrap; }
.sticky__book {
  background: var(--pine);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.7rem 1.25rem;
  border-radius: 2px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   PHOTOGRAPHY — toned into the cool world.
   A restrained duotone: grayscale knocks out stock colour, a faint pine
   multiply overlay tints it to the clinical ground. Framed by a 1px ink
   keyline (matching the portrait frames) so a photo reads as a deliberate
   plate in the chart, never a glossy hero image. No shadow, hard 0px corners.
   -------------------------------------------------------------------------- */
.photo-frame {
  position: relative;
  background: var(--field);
  border: 1px solid var(--ink);
  overflow: hidden;
}
.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* duotone: drop most colour, lift toward the cool ground */
  filter: grayscale(0.78) contrast(1.02) brightness(1.03) saturate(0.85);
}
/* faint pine wash so the photo belongs to the pine-ink world (not colour-only;
   purely decorative tint over imagery, never a signal) */
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pine);
  mix-blend-mode: multiply;
  opacity: 0.10;
  pointer-events: none;
}
/* a hairline inner keyline seats the image like the portrait device */
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) { .photo-frame img { transition: none; } }

/* --- Masthead daylight band: architectural anchor seating the masthead --- */
.daylight { margin: clamp(1.75rem, 5vw, 3.25rem) 0 0; }
.daylight__inner,
.daylight__cap {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
/* the banded plate — wide, calm, seated under the headline */
.daylight__band {
  aspect-ratio: 1600 / 1067;
  max-height: clamp(230px, 40vw, 480px);
}
.daylight__cap { margin-top: 0.7rem; color: var(--slate); }

/* --- 05 · Where: location plate beside the ruled columns ----------------- */
.where__layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.6fr);
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: start;
}
.locshot { margin: 0; }
.locshot__frame {
  aspect-ratio: 1067 / 1600;
  max-height: 480px;
}
.locshot__cap { margin-top: 0.7rem; color: var(--slate); }

/* --- Breath: quiet branch accent on near-empty ground -------------------- */
.breath__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(150px, 0.55fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
}
.branch { margin: 0; justify-self: end; max-width: 280px; width: 100%; }
.branch__frame { aspect-ratio: 1176 / 1600; }
/* the branch is the calmest of the three — let it sit a half-step quieter */
.branch__frame img { filter: grayscale(0.55) contrast(1.0) brightness(1.05) saturate(0.9); }

/* --------------------------------------------------------------------------
   FOOTER STUDIO CREDIT — hairline-separated, mono/slate, in the clinic world
   -------------------------------------------------------------------------- */
.footer__credit-rule { margin: clamp(1.25rem, 3vw, 1.75rem) 0 0; max-width: 640px; }
.footer__credit {
  margin-top: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--slate);
  letter-spacing: 0.14em;
}
.footer__credit-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.footer__credit-link:hover { color: var(--pine); text-decoration-thickness: 2px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet: slimmer spine, doctors stack portrait beside */
@media (max-width: 900px) {
  :root { --spine-w: 40px; }
  .ledger__grid { grid-template-columns: 1fr; }
  .ledger__rail,
  .ledger__cal {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  /* widget stacks: summary -> calendar -> slots (source order already correct) */

  /* location plate sits above the columns when space tightens */
  .where__layout { grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 2.5rem); }
  .locshot__frame { aspect-ratio: 16 / 10; max-height: 380px; }
}

/* Mobile: single-column ledger everywhere, no horizontal overflow */
@media (max-width: 680px) {
  :root { --spine-w: 34px; }
  body { font-size: 17px; }

  /* spine label keeps the 13px floor on mobile too (item 6) */
  .spine__label { letter-spacing: 0.12em; font-size: 0.8125rem; }

  /* headline scales down gracefully but still commands the first screen */
  .masthead__promise { font-size: clamp(2.2rem, 9vw, 3.2rem); max-width: 18ch; }

  .masthead__top { margin-bottom: 2rem; }

  .doctor__body { grid-template-columns: 1fr; }
  .portrait { width: 108px; order: -1; margin-bottom: 0.5rem; }

  .services { grid-template-columns: 1fr; }
  .services .service:nth-child(odd) {
    border-right: 0;
    padding-right: 0;
  }
  .services .service:nth-child(even) { padding-left: 0; }

  .step__body { grid-template-columns: 1fr; gap: 0.5rem; }
  .step__num { font-size: 2.4rem; }

  .where__cols { grid-template-columns: 1fr; }

  /* photo layouts collapse to a single column — image first, then text.
     On mobile every plate takes a comfortable 4/3 (never a thin letterbox);
     object-fit:cover on .photo-frame img keeps them undistorted, just cropped. */
  .where__layout { grid-template-columns: 1fr; gap: 1.75rem; }
  .locshot__frame { aspect-ratio: 4 / 3; max-height: none; }
  .breath__wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .branch { justify-self: stretch; max-width: 260px; order: -1; }
  .branch__frame { aspect-ratio: 4 / 5; }
  .daylight__band { aspect-ratio: 4 / 3; max-height: none; }

  /* keep tap targets; let calendar breathe */
  .cal__day { font-size: 1rem; }

  /* ledger: avoid double horizontal padding (grid + column) on narrow screens
     so columns never overflow. Column padding alone gives the air. */
  .ledger__line { padding-inline: 1.25rem; }
  .ledger__grid { padding-inline: 0; }
  .ledger__rail, .ledger__cal, .ledger__slots { padding: 1.5rem 1.25rem; }
  .ledger__foot { padding-inline: 1.25rem; }

  .sticky__inner { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .sticky__text { text-align: center; }
  .sticky__actions { justify-content: space-between; }
}

/* very narrow phones (360px) — guarantee zero overflow */
@media (max-width: 380px) {
  .slots__head { flex-wrap: wrap; }
  .glance__row { grid-template-columns: 5rem 1fr; }
}
