/* ==========================================================================
   Lakefront Health — "The Shoreline" design system
   Warm sand meeting deep lake water.
   ========================================================================== */

:root {
  /* Shore (warm neutrals) */
  --sand-50:  #FBF7F1;
  --sand-100: #F4EDE2;
  --sand-200: #E9DDCB;

  /* Water (depth) */
  --deep:  #0F3D43;
  --teal:  #17696F;
  --water: #7FB6BC;
  --mist:  #DCE9E6;

  /* Earth accents */
  --sage:       #B7C9B0;
  --sage-deep:  #5F7D5C;
  --clay:       #C4744E;
  --clay-dark:  #A85B3B;
  --clay-soft:  #EFD9CC;
  --gold:       #D9A441;
  --gold-deep:  #A97B2B;
  --gold-soft:  #F2E3C4;

  --ink:       #16323A;
  --ink-soft:  #4A6169;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --radius-lg: 32px;
  --shadow-soft: 0 6px 30px rgba(15, 61, 67, 0.08);
  --shadow-lift: 0 14px 44px rgba(15, 61, 67, 0.14);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* Beats any later display rule, so [hidden] reliably hides. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

h1 em, h2 em {
  font-style: italic;
  color: var(--teal);
}

p { margin: 0 0 1em; }
a { color: var(--teal); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--deep);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 0; }

.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}
.container.narrow { width: min(820px, 92vw); }
.center { text-align: center; }

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1rem;
}

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-sub { color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.9rem 1.9rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 6px 20px rgba(196, 116, 78, 0.35);
}
.btn-primary:hover {
  background: var(--clay-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(196, 116, 78, 0.42);
}
.btn-ghost {
  background: transparent;
  color: var(--deep);
  border: 2px solid rgba(15, 61, 67, 0.25);
}
.btn-ghost:hover { border-color: var(--deep); transform: translateY(-2px); }
.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.9rem; }
.btn-lg { padding: 1.05rem 2.3rem; font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.site-header.scrolled {
  background: rgba(251, 247, 241, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(15, 61, 67, 0.08);
}
.header-inner {
  width: min(1240px, 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 40px; height: 40px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-dot { color: var(--teal); }

.main-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--clay);
  transition: right 0.3s var(--ease-out);
}
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 0.8rem; }
/* Keep the header CTA on one line — it wraps once the nav gets wide. */
.header-actions .btn { white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #FDF9F3 0%, #F7EEDF 45%, #EAE0CE 100%);
  padding-top: 90px;
}

.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.sun {
  position: absolute;
  top: 12%;
  right: 12%;
  width: clamp(120px, 18vw, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.55), rgba(217, 164, 65, 0) 70%);
  animation: sunPulse 9s ease-in-out infinite;
}
@keyframes sunPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.12); opacity: 1; }
}
.mist {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.mist-1 {
  width: 55vw; height: 30vw;
  left: -10vw; top: 20%;
  background: rgba(220, 233, 230, 0.9);
  animation: drift 22s ease-in-out infinite alternate;
}
.mist-2 {
  width: 40vw; height: 24vw;
  right: -8vw; top: 45%;
  background: rgba(183, 201, 176, 0.5);
  animation: drift 28s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translateX(0) translateY(0); }
  to { transform: translateX(6vw) translateY(-3vh); }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 94vw);
  margin-inline: auto;
  padding-bottom: clamp(8rem, 18vh, 13rem);
}
.hero-copy {
  width: min(880px, 92vw);
  margin-inline: auto;
  text-align: center;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 620px;
  margin: 1.4rem auto 2.2rem;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 0;
  margin: 2.4rem 0 0;
}
.hero-chips li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 61, 67, 0.12);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ---------- Empathy typewriter ---------- */
.empathy {
  position: relative;
  width: min(880px, 92vw);
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
}
.empathy-inner {
  background: #fff;
  border: 1px solid rgba(15, 61, 67, 0.1);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.2vw, 40px);
  box-shadow: var(--shadow-lift);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  text-align: left;
}
.empathy-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 clamp(20px, 2.5vw, 30px);
}
.empathy-stage {
  flex: 1;
  display: flex;
  align-items: flex-start;
  position: relative;
  /* Reserves room for the longest phrase at the narrowest breakpoint so the
     card never resizes as shorter/longer lines cycle through. */
  min-height: 148px;
}
.empathy-quote {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.8;
  color: var(--gold);
  opacity: 0.35;
  user-select: none;
  flex: none;
  margin-right: 4px;
  margin-top: -4px;
}
.empathy-line {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  min-height: 1.3em;
  flex: 1 1 auto;
  min-width: 0;
}
/* The caret trails the last typed character as a ::after on the paragraph
   itself, so it rides inline at the end of the text instead of sitting as
   its own box beside it. */
.empathy-line::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--clay);
  margin-left: 3px;
  vertical-align: -0.14em;
  animation: empathyBlink 0.8s step-end infinite;
}
@keyframes empathyBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}
.empathy-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(20px, 2.5vw, 30px);
  padding-top: clamp(16px, 2vw, 22px);
  border-top: 1px solid rgba(15, 61, 67, 0.1);
}
.empathy-dots { display: flex; gap: 8px; }
.empathy-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sand-200);
  transition: background 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.empathy-dots i.on {
  background: var(--clay);
  transform: scale(1.2);
}

/* Animated waves */
.lake {
  position: absolute;
  inset: auto 0 0;
  height: clamp(120px, 20vh, 220px);
  pointer-events: none;
}
/* The 200% is what gives the slide somewhere to travel: at translateX(-50%)
   the second half of the tile is covering the viewport. Two things have to
   hold for that, and both were silently breaking it —
     · `max-width: 100%` from the global img/svg reset clamps the wave back to
       one container width, so it must be lifted here;
     · pinning `right` as well as `left` over-constrains the box and lets the
       browser stretch it to the container instead of honouring the width.
   Without them the wave is viewport-wide, and the slide drags bare
   background into view on the right as a hard vertical edge. */
.wave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  max-width: none;
  height: 100%;
}
.wave path { fill: currentColor; }
.wave-back  { color: var(--water); opacity: 0.5; animation: waveSlide 18s linear infinite; }
.wave-mid   { color: var(--teal);  opacity: 0.55; animation: waveSlide 13s linear infinite reverse; }
.wave-front { color: var(--deep);  animation: waveSlide 22s linear infinite; }
@keyframes waveSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Headline beside the empathy card. Below this, .hero-content falls back to
   its default block flow and the card simply stacks under the chips. */
@media (min-width: 980px) {
  .hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.24fr) minmax(376px, 0.76fr);
    gap: clamp(40px, 4.5vw, 72px);
    align-items: center;
  }
  .hero-copy {
    width: auto;
    margin-inline: 0;
    text-align: left;
  }
  .hero-sub { margin-left: 0; margin-right: 0; }
  .hero-ctas { justify-content: flex-start; }
  .hero-chips { justify-content: flex-start; }
  .empathy { width: auto; margin: 0; }
}

/* ---------- Bridge (why us) ---------- */
.bridge {
  background: var(--deep);
  color: var(--sand-100);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}
.bridge .eyebrow { color: var(--gold); }
.bridge h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}
.bridge h2 em { color: var(--water); }
.bridge-lede {
  max-width: 560px;
  margin: 0 auto 1.1rem;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--mist);
}
.bridge-lede:last-of-type { margin-bottom: 0; }
.bridge-lede strong { color: var(--gold); font-weight: 600; }

/* ---------- Approach ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}
.pillar {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.pillar-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--mist);
  color: var(--teal);
  margin-bottom: 1.2rem;
}
.pillar-icon svg { width: 32px; height: 32px; }
.pillar p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

/* ---------- Breathing widget ---------- */
/* Sits between two sand-50 sections (FAQ → Contact), so the mist swells in
   the middle and resolves back — the page itself takes a breath. */
.breathe-section {
  background: linear-gradient(180deg, var(--sand-50), var(--mist) 50%, var(--sand-50));
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}
.breathe-sub { color: var(--ink-soft); }

.breathe-widget { margin-top: 2.5rem; }

.breathe-circle {
  position: relative;
  width: clamp(180px, 30vw, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 35% 30%, var(--water), var(--teal) 75%);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 18px 50px rgba(23, 105, 111, 0.35);
  transition: transform 4s ease-in-out;
}
.breathe-circle.inhale { transform: scale(1.22); }
.breathe-circle.hold { transform: scale(1.22); }
.breathe-circle.exhale { transform: scale(1); transition-duration: 6s; }

.breathe-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(127, 182, 188, 0.5);
  opacity: 0;
}
.breathe-circle.active .breathe-ring { animation: ringGrow 4.5s ease-out infinite; }
.breathe-circle.active .r2 { animation-delay: 2.2s; }
@keyframes ringGrow {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

.breathe-core { display: grid; place-items: center; }
.breathe-label {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: 0.02em;
}
.breathe-hint {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Specialties ---------- */
/* Follows Approach, which is also sand-50 — the darker top edge keeps the two
   from reading as one endless block. */
.specialties {
  background: linear-gradient(180deg, var(--sand-100), var(--sand-50) 38%);
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.spec-card {
  position: relative;
  display: block;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.9rem 1.8rem 1.6rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.spec-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--tint, var(--water));
}
.spec-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.spec-emoji { font-size: 1.9rem; display: block; margin-bottom: 0.8rem; }
.spec-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.1rem; }
.spec-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--clay);
}

/* ---------- For parents ---------- */
/* Cooler tone than the sections either side — this block speaks to a
   different reader, and the shift signals that before a word is read. */
.parents {
  background: linear-gradient(180deg, var(--mist), var(--sand-50));
}
.parent-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 1.1rem;
}
.parent-card {
  background: #fff;
  border: 1.5px solid var(--sand-200);
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.parent-card:hover {
  transform: translateY(-4px);
  border-color: var(--water);
  box-shadow: var(--shadow-soft);
}
.parent-icon { font-size: 1.5rem; display: block; margin-bottom: 0.7rem; }
.parent-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}
.parent-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.parent-note {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  flex-wrap: wrap;
  margin-top: 2.2rem;
  padding: clamp(1.6rem, 3vw, 2.2rem) clamp(1.6rem, 3vw, 2.6rem);
  background: var(--deep);
  color: var(--sand-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.parent-note p {
  margin: 0;
  flex: 1 1 300px;
  font-size: 1rem;
  line-height: 1.65;
}
.parent-note strong { color: var(--gold); font-weight: 600; }
.parent-note .btn { flex-shrink: 0; }

/* ---------- Journey ---------- */
.journey { background: var(--sand-100); }
.journey-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  counter-reset: step;
}
.journey-step {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.7rem 1.7rem;
  box-shadow: var(--shadow-soft);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--water);
  display: block;
  margin-bottom: 0.4rem;
}
.journey-step p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ---------- Team ---------- */
/* Flex (not grid) so an odd trailing row centres instead of hanging left. */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
}
.team-card {
  flex: 1 1 280px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  padding: 0 1.5rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.avatar {
  position: relative;
  overflow: hidden;
  width: 84px;
  aspect-ratio: 1;
  margin: 0 auto 1.1rem;
  border-radius: 42% 58% 55% 45% / 48% 45% 55% 52%;
  background: var(--av, var(--teal));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}
/* Headshot sits over the initials, so a missing or private photo simply
   reveals the coloured initials underneath. */
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Let the clinicians' photography lead the cards. The base avatar stays
   compact everywhere else (quiz results and the profile dialog). */
.team-card > .avatar {
  width: calc(100% + 3rem);
  aspect-ratio: 4 / 3;
  margin: 0 -1.5rem 1.5rem;
  border-radius: 0;
  font-size: clamp(2.2rem, 5vw, 3.3rem);
}
.team-card > .avatar img {
  object-position: center 24%;
  border-radius: 0;
  transition: transform 0.6s var(--ease-out);
}
.team-card:hover > .avatar img { transform: scale(1.035); }

/* Fixed slot heights keep every card's name / role / bio / tags on the same
   baseline, whatever the length of the copy inside them. */
.team-card h3 {
  font-size: 1.18rem;
  line-height: 1.3;
  min-height: calc(2 * 1.3em);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.team-role {
  color: var(--clay);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: calc(2 * 1.35em);
  margin-bottom: 0.5rem;
}
/* Two lines are reserved and the content is centred in them, so a clinician
   with three languages keeps their divider level with everyone else's. */
.team-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  line-height: 1.4;
  /* Two lines of text + the padding below them — box-sizing is border-box,
     so the padding has to be part of the reserved height. */
  min-height: calc(2 * 1.4em + 0.7rem);
  padding-bottom: 0.7rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--sand-200);
}
.team-bio {
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.6;
  min-height: calc(4 * 1.6em);
}
.team-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 0.4rem;
  padding: 0;
  margin: auto 0 0;   /* pin the tag row to the bottom of every card */
  padding-top: 1rem;
}
.team-tags li {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--deep);
  background: var(--mist);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

/* The whole card is clickable; this is the visible, focusable affordance and
   the thing a keyboard lands on. Its click bubbles to the card either way. */
.team-card.is-clickable { cursor: pointer; }
.team-more {
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  cursor: pointer;
  transition: color 0.25s var(--ease-out);
}
.team-more span {
  display: inline-block;
  transition: transform 0.25s var(--ease-out);
}
.team-card:hover .team-more { color: var(--deep); }
.team-card:hover .team-more span { transform: translateX(4px); }

/* ---------- Clinician profile dialog ---------- */
body.no-scroll { overflow: hidden; }

.profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;              /* over the fixed header (100) and skip link (200) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem) 1rem;
  background: rgba(15, 61, 67, 0.55);
  backdrop-filter: blur(6px);
  animation: profile-fade 0.25s var(--ease-out);
}
.profile-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: 100%;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-lift);
  animation: profile-rise 0.35s var(--ease-out);
}
/* The close button is sticky, so content has to keep out of its lane —
   otherwise a wide chip slides under it as the panel scrolls. */
#profileBody { padding-right: 2.6rem; }

/* Sticky, not absolute: the panel scrolls, and close stays reachable. */
.profile-close {
  position: sticky;
  top: 0;
  z-index: 2;
  display: block;
  margin: -0.4rem -0.4rem 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--sand-100);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s var(--ease-out);
}
.profile-close:hover { background: var(--sand-200); transform: rotate(90deg); }

.profile-head {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin-top: -0.8rem;   /* pull level with the close button */
}
.profile-avatar .avatar {
  width: 104px;
  margin: 0;
  font-size: 2rem;
}
.profile-id { min-width: 0; }
.profile-id h2 {
  font-size: clamp(1.55rem, 3.6vw, 2.05rem);
  margin: 0 0 0.3rem;
}
.profile-pronouns {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}
.profile-role {
  margin: 0;
  color: var(--clay);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.profile-meta {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.profile-status {
  display: inline-block;
  margin: 0.65rem 0 0;
  padding: 0.24rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.profile-status.is-open { background: var(--mist); color: var(--deep); }
.profile-status.is-wait { background: var(--gold-soft); color: var(--gold-deep); }
.profile-status.is-full { background: var(--sand-100); color: var(--ink-soft); }
.profile-status.is-info { background: var(--mist); color: var(--teal); }

.profile-lead {
  margin: 1.7rem 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.55;
}
/* The long bio. Body copy, not a labelled block — the lead above it already
   says whose it is, so a heading would only get in the way of reading it. */
.profile-bio {
  margin-top: 1.2rem;
  color: var(--ink-soft);
}
.profile-bio p { margin-bottom: 0.9rem; }
.profile-bio p:last-child { margin-bottom: 0; }

.profile-quote {
  margin: 1.4rem 0 0;
  padding-left: 1.1rem;
  border-left: 3px solid var(--water);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--teal);
}
.profile-block .profile-quote { margin-top: 0.7rem; }
.profile-quote p:last-child { margin-bottom: 0; }

.profile-block { margin-top: 1.7rem; }
.profile-block h3 {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 0.5rem;
}
.profile-block p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 0.6rem;
}
.profile-block p:last-child { margin-bottom: 0; }

.profile-details {
  display: grid;
  gap: 1.05rem;
  margin: 1.8rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sand-200);
}
.profile-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.35rem 1.2rem;
  align-items: baseline;
}
.profile-row dt {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.profile-row dd { margin: 0; }
.profile-row dd p {
  margin: 0 0 0.4rem;
  font-size: 0.97rem;
  line-height: 1.6;
}
.profile-row dd p:last-child { margin-bottom: 0; }
.profile-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.profile-chips li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--deep);
  background: var(--mist);
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sand-200);
}

@keyframes profile-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes profile-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Quiz ---------- */
.match {
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(127, 182, 188, 0.18), transparent),
    var(--sand-50);
}
.quiz {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.quiz-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--sand-200);
  overflow: hidden;
  margin-bottom: 2rem;
}
.quiz-progress span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--water));
  transition: width 0.5s var(--ease-out);
}
.quiz-q {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 500;
  margin-bottom: 1.4rem;
}
.quiz-options {
  display: grid;
  gap: 0.8rem;
}
.quiz-option {
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--sand-50);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 1rem 1.3rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out);
}
.quiz-option:hover {
  border-color: var(--water);
  background: #fff;
  transform: translateX(4px);
}
.quiz-back {
  margin-top: 1.4rem;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0;
}
.quiz-back:hover { color: var(--deep); }

.quiz-result h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}
.quiz-result-sub { color: var(--ink-soft); margin-bottom: 1.6rem; }
.match-cards { display: grid; gap: 1rem; }
.match-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--sand-50);
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
  border: 1.5px solid var(--sand-200);
}
.match-card .avatar {
  width: 56px;
  font-size: 1.05rem;
  margin: 0;
  flex-shrink: 0;
}
.match-card h4 { margin: 0 0 0.15rem; font-size: 1.05rem; }
.match-card .match-role {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.match-card p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.quiz-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.8rem;
}

/* ---------- Testimonials (quote wall) ---------- */
.testimonial {
  background: var(--deep);
  color: var(--sand-100);
}
.testimonial .section-head h2 { color: var(--sand-100); }
.testimonial .section-sub { color: var(--water); font-size: 0.98rem; }
.quote-mark {
  display: block;
  width: 52px;
  margin: 0 auto 1.2rem;
  color: var(--gold);
}

/* Masonry columns: quotes are uneven by nature, so let them pack vertically
   instead of forcing equal-height rows. */
.quote-wall {
  columns: 3;
  column-gap: 1.3rem;
}
.quote-card {
  break-inside: avoid;
  margin: 0 0 1.3rem;
  padding: 1.6rem 1.7rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(220, 233, 230, 0.16);
  border-radius: var(--radius);
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.quote-card:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(127, 182, 188, 0.45);
}
.quote-card blockquote { margin: 0; }
.quote-card blockquote p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.08rem;
  line-height: 1.6;
}
.quote-card figcaption {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--water);
}
.quote-card figcaption::before { content: "— "; }

/* The one verified quote leads the wall. */
.quote-card.lead {
  background: rgba(127, 182, 188, 0.14);
  border-color: rgba(217, 164, 65, 0.4);
}
.quote-card.lead blockquote p { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
.quote-card.lead figcaption { color: var(--gold); }

/* ---------- FAQ ---------- */
.accordion details {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.3rem 3.4rem 1.3rem 1.6rem;
  position: relative;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--clay);
  transition: transform 0.3s var(--ease-out);
}
.accordion details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.accordion details p {
  padding: 0 1.6rem 1.4rem;
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */
.contact-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: clamp(2rem, 5vw, 3.8rem);
  align-items: center;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 2.2rem;
  display: grid;
  gap: 1.1rem;
}
.contact-list li { display: flex; gap: 1.2rem; align-items: baseline; }
.ci-label {
  flex-shrink: 0;
  width: 56px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clay);
}
.contact-list a { color: var(--deep); font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* Two offices, one "Visit" row */
.ci-locations { display: grid; gap: 0.9rem; }
.ci-office strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--deep);
}

.contact-visual { text-align: center; }
.ripple-scene {
  position: relative;
  width: min(260px, 60vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, var(--mist), var(--water) 90%);
  overflow: hidden;
}
.stone {
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 14px;
  transform: translate(-50%, -50%);
  background: var(--deep);
  border-radius: 50%;
}
.ripple {
  position: absolute;
  left: 50%; top: 50%;
  width: 30px; height: 30px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(15, 61, 67, 0.35);
  border-radius: 50%;
  animation: rippleOut 4s ease-out infinite;
}
.rp2 { animation-delay: 1.3s; }
.rp3 { animation-delay: 2.6s; }
@keyframes rippleOut {
  0% { width: 26px; height: 26px; opacity: 0.8; }
  100% { width: 240px; height: 240px; opacity: 0; }
}
.ripple-caption {
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
}

/* ==========================================================================
   Booking page (book.html)
   Same shoreline, shorter horizon: the hero is a band rather than a full
   screen, and the waves resolve into the page so the form is never far away.
   ========================================================================== */
.book-hero {
  position: relative;
  overflow: hidden;
  /* Resolves to the page colour, so the hero hands off to the section below
     without a seam — and the shoreline can stay translucent. */
  background: linear-gradient(180deg, #FDF9F3 0%, #F7EEDF 48%, #EFE4D2 78%, var(--sand-50) 100%);
  /* Deliberately short: this is a booking page, so the hero's job is to
     orient and reassure in one glance, not hold the visitor — the form
     should never be more than a scroll away. */
  padding: clamp(5.5rem, 9vh, 7rem) 0 clamp(3.5rem, 6vh, 4.5rem);
}
.book-hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 92vw);
  margin-inline: auto;
  text-align: center;
}
.book-hero h1 { font-size: clamp(2rem, 5.4vw, 3.8rem); }
/* The break is a typographic choice for wide screens. Narrow ones can't fit
   the line it forces, and the overflow drags every centred row off-centre. */
@media (max-width: 680px) {
  .book-hero h1 br { display: none; }
}
.book-hero-sub {
  font-size: clamp(1.02rem, 1.9vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 520px;
  margin: 1.1rem auto 0;
}
.book-hero .hero-chips { margin-top: 1.5rem; }

/* A shallower shoreline than the home page, and every layer stays translucent
   — an opaque wave in the page colour would slice visibly across the ones
   behind it, which only reads as water against the home page's dark lake. */
.book-lake { height: clamp(90px, 13vh, 150px); }
.book-lake .wave-back { color: var(--water); opacity: 0.3; }
.book-lake .wave-mid  { color: var(--teal);  opacity: 0.28; }

/* ---------- How it works ---------- */
.book-steps {
  background: var(--sand-50);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}
.book-step-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.book-step {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
}
.book-step .step-num { font-size: 1.9rem; margin-bottom: 0.2rem; }
.book-step h2 {
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  letter-spacing: 0;
}
.book-step p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- Form + rail ---------- */
.book-main {
  background:
    radial-gradient(55% 45% at 88% 4%, rgba(127, 182, 188, 0.16), transparent),
    var(--sand-50);
  /* Fixed header is ~69px tall — clear it, then add the usual breathing room. */
  padding-top: calc(69px + clamp(1.5rem, 3vw, 2.5rem));
}
.book-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.85fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: start;
}

.book-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: clamp(1.5rem, 3.4vw, 2.6rem);
  /* The embed sets its own width; this stops a wide form from pushing the
     grid column past its track on narrow screens. */
  min-width: 0;
}
.book-form-head {
  padding-bottom: 1.4rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--sand-200);
}
.book-form-head .eyebrow { margin-bottom: 0.7rem; }
.book-form-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.6rem;
}
.book-form-sub {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0;
}

/* iframe.js drives the height, so only the horizontal box is styled here. */
.form-frame iframe {
  display: block;
  width: 100%;
  border: 0;
}
.form-note {
  margin: 1.3rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--sand-200);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.book-rail {
  display: grid;
  gap: 1.1rem;
  /* Rides alongside the tall form, then stops where the column ends. */
  position: sticky;
  top: 92px;
}
.rail-card {
  background: #fff;
  border: 1.5px solid var(--sand-200);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
}
.rail-card h2 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: 0;
}
.rail-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 0.9rem;
}
.rail-card p:last-child { margin-bottom: 0; }

.rail-card.accent {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--sand-100);
}
.rail-card.accent h2 { color: #fff; }
.rail-card.accent p { color: var(--mist); }
.rail-card.accent .rail-link { color: var(--gold); }

.rail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.rail-list li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  font-size: 0.93rem;
  line-height: 1.5;
}
.rail-list a { color: var(--deep); font-weight: 600; text-decoration: none; }
.rail-list a:hover { text-decoration: underline; }

.rail-link {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--clay);
  text-decoration: none;
}
.rail-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .book-layout { grid-template-columns: 1fr; }
  /* Stacked, a sticky rail would pin over the content below it. */
  .book-rail { position: static; }
}

@media (max-width: 560px) {
  /* Edge-to-edge card: the embedded form needs every pixel of width it can get. */
  .book-form-card {
    border-radius: var(--radius);
    padding: 1.4rem 1.1rem 1.6rem;
  }
}

/* ---------- Crisis bar ---------- */
.crisis {
  background: var(--gold-soft);
  border-top: 1px solid rgba(169, 123, 43, 0.25);
  padding: 1.2rem 0;
}
.crisis-inner p { margin: 0; font-size: 0.95rem; text-align: center; }
.crisis a { color: var(--clay-dark); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep);
  color: rgba(244, 237, 226, 0.85);
  padding: 3.5rem 0 2.5rem;
}
.footer-inner {
  display: grid;
  gap: 1.8rem;
  text-align: center;
}
.footer-brand .brand-name { color: #fff; font-size: 1.4rem; }
.footer-brand p { margin: 0.4rem 0 0; font-family: var(--font-display); font-style: italic; opacity: 0.8; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.footer-nav a {
  color: rgba(244, 237, 226, 0.85);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.footer-nav a:hover { color: #fff; }
.footer-legal { font-size: 0.82rem; opacity: 0.6; margin: 0; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* Seven nav items now. Tighten them through the narrow band above the mobile
   breakpoint, and never let a label wrap — two-line nav items look broken. */
@media (max-width: 1180px) {
  .main-nav { gap: 0.95rem; }
  .main-nav a { font-size: 0.88rem; white-space: nowrap; }
}

/* Raised from 900px: seven links plus the brand and CTA stop fitting first. */
@media (max-width: 1000px) {
  /* .site-header.scrolled has a backdrop-filter, which makes the header the
     containing block for this fixed child — so `inset: 0` would size the menu
     to the 69px header and spill the links out from behind it. Pin to the
     header's top-left and take the viewport's size explicitly instead. */
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    background: var(--sand-50);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 5rem 1.5rem 3rem;
    font-size: 1.3rem;
    transform: translateY(-100%);
    transition: transform 0.4s var(--ease-out);
    z-index: -1;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { font-size: 1.25rem; }
  .nav-toggle { display: flex; }

  .contact-card { grid-template-columns: 1fr; }
  .contact-visual { order: -1; }

  .quote-wall { columns: 2; }
  .parent-note { text-align: center; justify-content: center; }
}

@media (max-width: 560px) {
  .hero-ctas .btn { width: 100%; text-align: center; }
  .header-actions .btn-sm { display: none; }

  .quote-wall { columns: 1; }
  .parent-note .btn { width: 100%; text-align: center; }

  /* One card per row: let it fill the width and drop the fixed slot heights
     so short bios don't leave a gap. */
  .team-card { max-width: none; }
  .team-card h3,
  .team-role { min-height: 0; }
  .team-bio { min-height: 0; }

  /* Stack the profile head, and give the labels their own line — 160px of
     label column leaves nothing for a row of chips at this width. */
  .profile-head {
    flex-direction: column;
    text-align: center;
    gap: 0.9rem;
  }
  .profile-avatar .avatar { width: 88px; }
  .profile-row { grid-template-columns: 1fr; }
  .profile-actions .btn { width: 100%; text-align: center; }

  /* These two are the only full-width, edge-anchored blocks in the panel, so
     the close button's reserved lane reads as an off-centre layout here.
     They sit above and below it — they can take the lane back. */
  .profile-head,
  .profile-actions { margin-right: -2.6rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
