/* ============================================================
   Dr. Dianne Marasigan, ND — Vancouver, BC
   Design system: "Coastal Apothecary"
   Linen / Pacific blue / Sage — Fraunces + Karla
   ============================================================ */

:root {
  /* Palette */
  --linen: #F8F4EC;
  --linen-deep: #F1EADD;
  --sand: #E9DfCE;
  --mist: #DFE6E9;
  --pale-sage: #D3DCD0;
  --sage: #A9B8A5;
  --pacific: #71889F;
  --pacific-deep: #54697E;
  --harbour: #2E3D4B;
  --ink: #2A3540;
  --ink-soft: #55636F;
  --white: #FDFCF9;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Karla", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --text-xs: 0.72rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-md: 1.25rem;
  --text-lg: 1.5rem;
  --text-xl: clamp(1.75rem, 1.3rem + 2vw, 2.6rem);
  --text-2xl: clamp(2.4rem, 1.7rem + 3.2vw, 4rem);
  --text-hero: clamp(2.75rem, 1.8rem + 4.5vw, 5.2rem);

  /* Rhythm */
  --space-section: clamp(5rem, 4rem + 6vw, 9.5rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max-w: 76rem;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.15, 1);
  --dur: 0.9s;

  /* Arch */
  --arch: 62% 62% 0 0 / 42% 42% 0 0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Unified photographic grade — pulls all imagery toward the coastal palette */
.arch-frame img,
.frame-soft img,
.img-float img,
.service-media img,
.map-frame img,
.cta-band .cta-bg img {
  filter: saturate(0.78) sepia(0.08) contrast(0.97) brightness(1.02);
}
/* Dr. Marasigan's own portraits are shown untouched */
img[src*="dianne-"] { filter: none; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 480;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--harbour);
}

::selection { background: var(--pacific); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--pacific-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--pacific-deep);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out) 0.25s;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.9s var(--ease-out) 0.25s;
}
.is-in .eyebrow::before, .eyebrow.is-in::before,
.is-in .eyebrow--center::after, .eyebrow--center.is-in::after { transform: scaleX(1); }
.eyebrow--light { color: var(--mist); }

.section { padding-block: var(--space-section); }

.lede {
  font-size: var(--text-md);
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 38em;
}

.text-center { text-align: center; }

.italic-accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--pacific-deep);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.1rem;
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out),
              background-color 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.btn span {
  position: relative;
  z-index: 1;
  transition: letter-spacing 0.5s var(--ease-out);
}
.btn:hover span { letter-spacing: 0.19em; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--harbour);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--pacific-deep); color: var(--white); }
.btn--primary:hover { color: var(--white); }

.btn--outline {
  background: transparent;
  color: var(--harbour);
  border-color: color-mix(in srgb, var(--harbour) 35%, transparent);
}
.btn--outline:hover { color: var(--white); }

.btn--light { background: var(--linen); color: var(--harbour); }
.btn--light::before { background: var(--sage); }
.btn--light:hover { color: var(--harbour); }

/* Text link with growing underline */
.link-line {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  white-space: nowrap;
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pacific-deep);
  text-decoration: none;
  padding-bottom: 0.25rem;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px;
  transition: background-size 0.5s var(--ease-out);
}
.link-line:hover { background-size: 30% 1px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft),
              padding 0.5s var(--ease-soft);
  padding-block: 1.4rem;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--linen) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--harbour) 8%, transparent);
  padding-block: 0.85rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 520;
  letter-spacing: 0.01em;
  color: var(--harbour);
  text-decoration: none;
  line-height: 1.15;
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--pacific-deep);
  margin-top: 0.15rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
}
.nav-links a:not(.btn) {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 0.3rem;
  background: linear-gradient(var(--pacific-deep), var(--pacific-deep)) no-repeat 50% 100% / 0 1px;
  transition: background-size 0.45s var(--ease-out), color 0.3s;
}
.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"]:not(.btn) {
  color: var(--harbour);
  background-size: 100% 1px;
}
.nav-links .btn { padding: 0.72rem 1.6rem; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 120;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin-inline: auto;
  background: var(--harbour);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  /* An opaque header on mobile: backdrop-filter would become the containing
     block for the fixed menu overlay and clip it to the header strip. */
  .site-header.is-scrolled {
    background: var(--linen);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-links {
    position: fixed;
    inset: 0;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding-block: 6rem 3rem;
    overflow-y: auto;
    background: var(--linen);
    transform: translateY(-102%);
    transition: transform 0.65s var(--ease-out);
    z-index: 110;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a:not(.btn) { font-size: 1.15rem; }
  .nav-links li {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  }
  .nav-links.is-open li { opacity: 1; transform: none; }
  .nav-links.is-open li:nth-child(1) { transition-delay: 0.12s; }
  .nav-links.is-open li:nth-child(2) { transition-delay: 0.18s; }
  .nav-links.is-open li:nth-child(3) { transition-delay: 0.24s; }
  .nav-links.is-open li:nth-child(4) { transition-delay: 0.30s; }
  .nav-links.is-open li:nth-child(5) { transition-delay: 0.36s; }
  body.nav-locked { overflow: hidden; }

  .nav { gap: 1rem; }
  .brand { font-size: 1.05rem; min-width: 0; flex: 1 1 auto; }
  .nav-toggle { flex: 0 0 auto; }
  .brand small {
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    line-height: 1.5;
    white-space: normal;   /* the two-city tagline must be allowed to wrap so the menu button stays on screen */
  }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  padding-top: clamp(8rem, 6rem + 8vw, 12rem);
  padding-bottom: 0;
  background: var(--linen);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 440;
  margin-bottom: 1.8rem;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--pacific-deep);
}

/* line-mask reveal */
.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line-mask > span {
  display: block;
  transform: translateY(112%);
  animation: line-rise 1.1s var(--ease-out) forwards;
}
.line-mask:nth-child(2) > span { animation-delay: 0.12s; }
.line-mask:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes line-rise { to { transform: translateY(0); } }

.hero .lede,
.hero-ctas,
.hero-note {
  opacity: 0;
  animation: soft-up 1.1s var(--ease-out) forwards;
}
.hero .lede { animation-delay: 0.45s; }
.hero-ctas { animation-delay: 0.6s; }
.hero-note { animation-delay: 0.75s; }
@keyframes soft-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
  margin-top: 2.4rem;
}

.hero-note {
  margin-top: 1.6rem;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

/* Arch portrait */
.arch-frame {
  position: relative;
  border-radius: var(--arch);
  overflow: hidden;
  aspect-ratio: 4 / 5.4;
  background: var(--sand);
}
.arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.4s var(--ease-out);
}

.hero-portrait {
  position: relative;
  opacity: 0;
  animation: portrait-in 1.4s var(--ease-out) 0.3s forwards;
}
@keyframes portrait-in {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: none; }
}
/* offset echo arch behind portrait */
.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--arch);
  border: 1px solid color-mix(in srgb, var(--pacific) 45%, transparent);
  transform: translate(1.4rem, 1.4rem);
  z-index: -1;
}

/* Cedar sprig signature */
.sprig {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  color: var(--sage);
}
.sprig path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}
.sprig.is-drawn path { animation: sprig-draw 2.6s var(--ease-soft) forwards; }
.sprig.is-drawn path:nth-of-type(2) { animation-delay: 0.25s; }
.sprig.is-drawn path:nth-of-type(3) { animation-delay: 0.5s; }
@keyframes sprig-draw { to { stroke-dashoffset: 0; } }

.hero .sprig--corner {
  top: clamp(5.5rem, 10vw, 8rem);
  right: -2.5rem;
  width: clamp(9rem, 18vw, 16rem);
  opacity: 0.55;
  transform: rotate(24deg);
}

/* ---------- Marquee ---------- */
.marquee {
  --marquee-speed: 36s;
  border-block: 1px solid color-mix(in srgb, var(--harbour) 12%, transparent);
  padding-block: 1.15rem;
  margin-top: clamp(3.5rem, 3rem + 3vw, 5.5rem);
  overflow: hidden;
  background: var(--linen-deep);
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee var(--marquee-speed) linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 3rem;
  padding-right: 3rem;
}
.marquee-track li {
  display: flex;
  align-items: center;
  gap: 3rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-md);
  color: var(--pacific-deep);
  white-space: nowrap;
}
.marquee-track li::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal system ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="left"].is-in,
[data-reveal="right"].is-in { transform: none; }

/* staggered children */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
[data-reveal-stagger].is-in > * { opacity: 1; transform: none; }
[data-reveal-stagger].is-in > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-stagger].is-in > *:nth-child(2) { transition-delay: 0.16s; }
[data-reveal-stagger].is-in > *:nth-child(3) { transition-delay: 0.27s; }
[data-reveal-stagger].is-in > *:nth-child(4) { transition-delay: 0.38s; }
[data-reveal-stagger].is-in > *:nth-child(5) { transition-delay: 0.49s; }
[data-reveal-stagger].is-in > *:nth-child(6) { transition-delay: 0.6s; }

/* image clip reveal */
.img-reveal { overflow: hidden; }
.img-reveal img {
  transform: scale(1.12);
  transition: transform 1.6s var(--ease-out);
}
.img-reveal.is-in img { transform: scale(1.02); }

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.split--narrow-img { grid-template-columns: 0.85fr 1.15fr; }

.split h2 { font-size: var(--text-2xl); margin-bottom: 1.6rem; }
.split p + p { margin-top: 1.1rem; }
.split .body-copy { color: var(--ink-soft); }

.frame-soft {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
}
.frame-soft img { width: 100%; height: 100%; object-fit: cover; }

/* Floating secondary image */
.img-stack { position: relative; }
.img-stack .img-float {
  position: absolute;
  right: -8%;
  bottom: -12%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px color-mix(in srgb, var(--harbour) 40%, transparent);
  border: 6px solid var(--linen);
}
.img-stack .img-float img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Quote band ---------- */
.quote-band {
  background: var(--harbour);
  color: var(--mist);
  position: relative;
  overflow: hidden;
}
.quote-band .sprig {
  color: color-mix(in srgb, var(--sage) 55%, transparent);
  width: clamp(10rem, 22vw, 18rem);
  left: -3rem;
  bottom: -2rem;
  transform: rotate(-18deg);
  opacity: 0.5;
}
.quote-band blockquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  max-width: 26em;
  margin-inline: auto;
  text-align: center;
  color: var(--linen);
}
.quote-band cite {
  display: block;
  margin-top: 2rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage);
}
.quote-band cite::before {
  content: "";
  display: block;
  width: 2.2rem;
  height: 1px;
  margin: 0 auto 1.2rem;
  background: var(--sage);
  transform: scaleX(0);
  transition: transform 0.9s var(--ease-out) 0.5s;
}
.quote-band .is-in cite::before { transform: scaleX(1); }

/* ---------- Pillars / cards ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 3.5rem;
}
.pillar {
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--harbour) 8%, transparent);
  border-radius: 12px;
  padding: 2.2rem 1.8rem;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px -22px color-mix(in srgb, var(--harbour) 26%, transparent);
  border-color: color-mix(in srgb, var(--sage) 60%, transparent);
}
.pillar .glyph {
  width: 44px;
  height: 44px;
  margin-bottom: 1.4rem;
  color: var(--pacific-deep);
}
/* icon strokes redraw themselves on hover (paths carry pathLength="1") */
.pillar .glyph :is(path, circle) { stroke-dasharray: 1; stroke-dashoffset: 0; }
.pillar:hover .glyph :is(path, circle) { animation: glyph-redraw 1.1s var(--ease-soft); }
@keyframes glyph-redraw { from { stroke-dashoffset: 1; } }
.pillar h3 { font-size: var(--text-md); margin-bottom: 0.7rem; }
.pillar p { font-size: var(--text-sm); color: var(--ink-soft); }

/* ---------- Care areas (home accordion) ---------- */
.care-band { background: var(--pacific); color: var(--white); }
.care-band h2 { color: var(--linen); font-size: var(--text-2xl); }
.care-band .eyebrow { color: var(--mist); }
.care-band .lede { color: var(--linen); }

.care-card {
  background: var(--linen);
  color: var(--ink);
  border-radius: 16px;
  padding: clamp(1.8rem, 4vw, 3rem);
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.care-card h3 {
  font-size: var(--text-lg);
  margin-bottom: 0.9rem;
}
.care-card > div:first-child p { color: var(--ink-soft); font-size: var(--text-sm); }
.care-card .btn { margin-top: 1.8rem; }

.accordion { border-top: 1px solid color-mix(in srgb, var(--harbour) 14%, transparent); }
.accordion-item { border-bottom: 1px solid color-mix(in srgb, var(--harbour) 14%, transparent); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0.2rem;
  background: linear-gradient(var(--sage), var(--sage)) no-repeat 0 50% / 3px 0%;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 480;
  color: var(--harbour);
  text-align: left;
  transition: color 0.3s, padding-left 0.5s var(--ease-out), background-size 0.5s var(--ease-out);
}
.accordion-trigger:hover { color: var(--pacific-deep); }
.accordion-item.is-open .accordion-trigger {
  color: var(--pacific-deep);
  padding-left: 0.95rem;
  background-size: 3px 62%;
}
.accordion-trigger .plus {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}
.accordion-trigger .plus::before,
.accordion-trigger .plus::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out);
}
.accordion-trigger .plus::after { transform: rotate(90deg); }
.accordion-item.is-open .plus::after { transform: rotate(0deg); }
.accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.55s var(--ease-out);
}
.accordion-panel p {
  padding: 0 0.2rem 1.3rem;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  max-width: 46em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.accordion-item.is-open .accordion-panel p {
  opacity: 1;
  transform: none;
  transition-delay: 0.12s;
}

/* ---------- Patient notes (themes, not testimonials) ---------- */
.notes-band { background: var(--linen-deep); }
.notes-head { max-width: 44rem; }
.notes-head h2 { font-size: var(--text-2xl); margin-bottom: 1.2rem; }
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(2rem, 4vw, 4rem);
  margin-top: 3.5rem;
}
.note {
  position: relative;
  padding-block: 2rem 2.4rem;
  border-top: 1px solid color-mix(in srgb, var(--harbour) 14%, transparent);
}
/* short rule that draws in on reveal — same language as the eyebrows */
.note::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.6rem;
  height: 2px;
  background: var(--pacific-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out);
}
.is-in .note::before { transform: scaleX(1); }
.is-in .note:nth-child(1)::before { transition-delay: 0.25s; }
.is-in .note:nth-child(2)::before { transition-delay: 0.36s; }
.is-in .note:nth-child(3)::before { transition-delay: 0.47s; }
.is-in .note:nth-child(4)::before { transition-delay: 0.58s; }
.is-in .note:nth-child(5)::before { transition-delay: 0.69s; }
.is-in .note:nth-child(6)::before { transition-delay: 0.8s; }
.note h3 {
  font-size: var(--text-md);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 0.7rem;
}
.note p { font-size: var(--text-sm); color: var(--ink-soft); }
.notes-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.4rem;
  margin-top: 2.6rem;
}
.notes-foot {
  margin-top: 2rem;
  font-size: var(--text-xs);
  color: var(--ink-soft);
  max-width: 46em;
  letter-spacing: 0.02em;
}
@media (max-width: 960px) { .notes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .notes-grid { grid-template-columns: 1fr; } }

/* ---------- Fog band CTA ---------- */
.cta-band {
  position: relative;
  color: var(--linen);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(7rem, 6rem + 8vw, 12rem);
}
.cta-band .cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.cta-band .cta-bg img {
  width: 100%;
  height: 118%;
  object-fit: cover;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    color-mix(in srgb, var(--harbour) 62%, transparent),
    color-mix(in srgb, var(--harbour) 78%, transparent)
  );
}
.cta-band h2 {
  color: var(--linen);
  font-size: var(--text-2xl);
  max-width: 18em;
  margin-inline: auto;
  margin-bottom: 1.4rem;
}
.cta-band p {
  max-width: 36em;
  margin-inline: auto;
  color: color-mix(in srgb, var(--linen) 88%, transparent);
}
.cta-band .btn { margin-top: 2.6rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding-top: clamp(8.5rem, 7rem + 7vw, 12rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  font-size: var(--text-2xl);
  max-width: 15em;
}
.page-hero .lede { margin-top: 1.6rem; }
.page-hero .sprig--corner {
  top: 6.5rem;
  right: -2rem;
  width: clamp(8rem, 15vw, 13rem);
  opacity: 0.45;
  transform: rotate(24deg);
}

/* ---------- Credentials / list blocks ---------- */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.cred-card {
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--harbour) 8%, transparent);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.5s var(--ease-out), border-color 0.5s;
}
.cred-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--sage) 60%, transparent);
}
.cred-card h3 {
  font-size: var(--text-base);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--pale-sage);
}
.cred-card ul { list-style: none; }
.cred-card li {
  position: relative;
  padding-left: 1.4rem;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  margin-bottom: 0.55rem;
}
.cred-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

/* ---------- Timeline (about journey) ---------- */
.journey {
  position: relative;
  max-width: 44rem;
}
.journey::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: color-mix(in srgb, var(--pacific) 40%, transparent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.8s var(--ease-soft) 0.2s;
}
.is-in .journey::before { transform: scaleY(1); }
.journey-step {
  position: relative;
  padding-left: 2.6rem;
  padding-bottom: 2.6rem;
}
.journey-step:last-child { padding-bottom: 0; }
.journey-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--linen);
  border: 2px solid var(--pacific-deep);
  transition: background-color 0.6s var(--ease-soft);
}
.is-in .journey-step:nth-child(1)::before { transition-delay: 0.5s; background: var(--pacific-deep); }
.is-in .journey-step:nth-child(2)::before { transition-delay: 0.9s; background: var(--pacific-deep); }
.is-in .journey-step:nth-child(3)::before { transition-delay: 1.3s; background: var(--pacific-deep); }
.is-in .journey-step:nth-child(4)::before { transition-delay: 1.7s; background: var(--pacific-deep); }
.journey-step h3 {
  font-size: var(--text-md);
  margin-bottom: 0.5rem;
}
.journey-step p { color: var(--ink-soft); font-size: var(--text-sm); max-width: 40em; }

/* ---------- Services page ---------- */
.service-row {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid color-mix(in srgb, var(--harbour) 12%, transparent);
}
.service-row:last-of-type { border-bottom: 1px solid color-mix(in srgb, var(--harbour) 12%, transparent); }
.service-row .service-media {
  border-radius: var(--arch);
  overflow: hidden;
  aspect-ratio: 4 / 4.4;
  align-self: start;
  position: sticky;
  top: 7rem;
}
.service-row .service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-row h2 { font-size: var(--text-xl); margin-bottom: 1.1rem; }
.service-row .service-kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--pacific-deep);
  margin-bottom: 1rem;
  display: block;
}
.service-row p { color: var(--ink-soft); max-width: 52em; }
.service-row p + p { margin-top: 1rem; }
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
  list-style: none;
}
.service-tags li {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pacific-deep);
  background: color-mix(in srgb, var(--pacific) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--pacific) 25%, transparent);
  padding: 0.45rem 0.95rem;
  border-radius: 99px;
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.service-tags li:hover {
  background: var(--pacific-deep);
  border-color: var(--pacific-deep);
  color: var(--linen);
}
.service-row:hover .img-reveal.is-in img { transform: scale(1.06); }

/* Fees */
.fee-table {
  margin-top: 3rem;
  border-top: 1px solid color-mix(in srgb, var(--harbour) 14%, transparent);
}
.fee-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5rem;
  align-items: baseline;
  padding-block: 1.4rem;
  padding-inline: 0.4rem;
  border-bottom: 1px solid color-mix(in srgb, var(--harbour) 14%, transparent);
  transition: background-color 0.45s var(--ease-soft);
}
.fee-row:hover { background: color-mix(in srgb, var(--white) 65%, transparent); }
.fee-row h3 {
  font-size: var(--text-md);
  font-weight: 480;
  display: flex;
  align-items: baseline;
}
/* dotted leader between item and price, print-menu style */
.fee-row h3::after {
  content: "";
  flex: 1;
  margin-left: 0.9em;
  border-bottom: 1px dotted color-mix(in srgb, var(--harbour) 32%, transparent);
  transform: translateY(-0.28em);
}
.fee-row .fee-dur { font-size: var(--text-sm); color: var(--ink-soft); }
.fee-row .fee-price {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--pacific-deep);
  transition: color 0.35s;
}
.fee-row:hover .fee-price { color: var(--harbour); }
.fee-note { margin-top: 1.4rem; font-size: var(--text-sm); color: var(--ink-soft); max-width: 52em; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact-info { scroll-margin-top: 6.5rem; }
.contact-info dl { display: grid; gap: 1.6rem; }
.contact-info dt {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--pacific-deep);
  margin-bottom: 0.35rem;
}
.contact-info dd { color: var(--ink-soft); }
.contact-info dd a:not(.btn) {
  color: var(--harbour);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px;
  transition: background-size 0.4s var(--ease-out);
}
.contact-info dd a:not(.btn):hover { background-size: 30% 1px; }
.contact-info dd strong { color: var(--harbour); font-size: var(--text-base); }

.contact-form {
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--harbour) 8%, transparent);
  border-radius: 16px;
  padding: clamp(1.8rem, 4vw, 3rem);
}
.form-field { margin-bottom: 1.4rem; }
.form-field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}
.form-field:focus-within label { color: var(--pacific-deep); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--linen);
  border: 1px solid color-mix(in srgb, var(--harbour) 14%, transparent);
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--pacific);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pacific) 20%, transparent);
}
.form-field textarea { min-height: 8.5rem; resize: vertical; }
.form-success {
  display: none;
  padding: 1rem 1.2rem;
  margin-top: 1.2rem;
  background: color-mix(in srgb, var(--sage) 25%, transparent);
  border: 1px solid var(--sage);
  border-radius: 8px;
  font-size: var(--text-sm);
  color: var(--harbour);
}
.form-success.is-visible { display: block; }

.map-frame {
  margin-top: var(--space-section);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  position: relative;
}
.map-frame img { width: 100%; height: 108%; object-fit: cover; }
.map-frame figcaption {
  position: absolute;
  left: 1.4rem;
  bottom: 1.4rem;
  background: color-mix(in srgb, var(--linen) 92%, transparent);
  backdrop-filter: blur(8px);
  padding: 0.9rem 1.4rem;
  border-radius: 10px;
  font-size: var(--text-sm);
  color: var(--harbour);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s var(--ease-out) 0.45s, transform 0.7s var(--ease-out) 0.45s;
}
.map-frame.is-in figcaption { opacity: 1; transform: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--harbour);
  color: var(--mist);
  padding-block: 4.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid color-mix(in srgb, var(--linen) 15%, transparent);
}
.site-footer .brand { color: var(--linen); }
.site-footer .brand small { color: var(--sage); }
.footer-tagline {
  margin-top: 1.2rem;
  font-size: var(--text-sm);
  color: color-mix(in srgb, var(--mist) 75%, transparent);
  max-width: 26em;
}
.footer-col h4 {
  color: var(--sage);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a {
  font-size: var(--text-sm);
  color: color-mix(in srgb, var(--mist) 85%, transparent);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--linen); }
.footer-col p { font-size: var(--text-sm); color: color-mix(in srgb, var(--mist) 75%, transparent); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: var(--text-xs);
  color: color-mix(in srgb, var(--mist) 55%, transparent);
}
.site-footer .sprig {
  right: -3rem;
  bottom: -2.5rem;
  width: 15rem;
  color: color-mix(in srgb, var(--sage) 30%, transparent);
  transform: rotate(-15deg);
}

/* ---------- Parallax helper ---------- */
[data-parallax] { will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  /* Horizontal reveals can widen the page on narrow screens before they fire — keep mobile reveals vertical */
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(34px); }
  [data-reveal="left"].is-in, [data-reveal="right"].is-in { transform: none; }
  .hero-grid,
  .split,
  .split--narrow-img,
  .care-card,
  .contact-grid,
  .service-row {
    grid-template-columns: 1fr;
  }
  .hero-portrait { max-width: 26rem; margin-inline: auto; }
  .arch-frame { aspect-ratio: 4 / 5.7; }   /* taller arch on phones */
  .hero { text-align: left; }
  .service-row .service-media {
    position: static;
    max-width: 24rem;
    aspect-ratio: 4 / 3.4;
  }
  .img-stack .img-float { right: 0; }
  .split > .img-stack { margin-bottom: 2.5rem; max-width: 30rem; }
  .fee-row { grid-template-columns: 1fr auto; }
  .fee-row .fee-dur { grid-column: 1; }
}

@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }
  .line-mask > span { transform: none; animation: none; }
  .hero .lede, .hero-ctas, .hero-note, .hero-portrait { opacity: 1; animation: none; }
  [data-reveal], [data-reveal-stagger] > * { opacity: 1; transform: none; }
  .sprig path { stroke-dashoffset: 0; }
  .marquee-track { animation: none; flex-wrap: wrap; }
}

/* ---------- Patient notes: sliding rows (banner marquee) ---------- */
.notes-marquee {
  margin-top: 3.5rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.notes-track { display: flex; width: max-content; animation: notes-slide 75s linear infinite; }
.notes-marquee:hover .notes-track { animation-play-state: paused; }
.notes-track ul { display: flex; gap: 2.4rem; list-style: none; padding-right: 2.4rem; }
.notes-track .note { flex: 0 0 21rem; padding: 1.7rem 0 0.4rem; border-top: 1px solid color-mix(in srgb, var(--harbour) 14%, transparent); }
.notes-track .note::before { transform: scaleX(1); }
@keyframes notes-slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .notes-track { animation: none; flex-wrap: wrap; } .notes-marquee { mask-image: none; -webkit-mask-image: none; } }

/* second row runs the opposite direction; compact cards */
.notes-rows { display: grid; gap: 1.4rem; margin-top: 3.5rem; }
.notes-rows .notes-marquee { margin-top: 0; }
.notes-rows .notes-track { animation-duration: 90s; }
.notes-marquee--rev .notes-track { animation-direction: reverse; }
.notes-rows .note { flex-basis: 24rem; padding: 1.4rem 1.6rem; border: 1px solid color-mix(in srgb, var(--harbour) 12%, transparent); border-radius: 12px; background: var(--white); }
.notes-rows .note::before { display: none; }
.notes-rows .note h3 { font-size: var(--text-base); margin-bottom: 0.45rem; }
.notes-rows .note p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .notes-track ul[aria-hidden] { display: none; } }

/* ---------- Contact: clinic cards side by side, form below ---------- */
.clinic-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; scroll-margin-top: 6.5rem; }
.clinic-card { background: var(--white); border: 1px solid color-mix(in srgb, var(--harbour) 8%, transparent); border-radius: 16px; padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; }
.clinic-card .eyebrow { margin-bottom: 0.8rem; }
.clinic-card h3 { font-size: var(--text-lg); margin-bottom: 1.4rem; }
.clinic-rows { display: grid; gap: 0.9rem; margin-bottom: 1.8rem; }
.clinic-rows > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding-top: 0.9rem; border-top: 1px solid color-mix(in srgb, var(--harbour) 10%, transparent); }
.clinic-rows dt { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pacific-deep); padding-top: 0.25rem; }
.clinic-rows dd { color: var(--ink); line-height: 1.6; }
.clinic-rows dd a { color: var(--harbour); text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px; }
.clinic-rows dd a.clinic-map { display: inline-block; margin-top: 0.35rem; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pacific-deep); }
.clinic-card .btn { margin-top: auto; align-self: flex-start; }
.contact-form-wrap { margin-top: 2.5rem; max-width: 46rem; }
.contact-form-wrap .contact-form { width: 100%; }
@media (max-width: 820px) { .clinic-cards { grid-template-columns: 1fr; } .clinic-rows > div { grid-template-columns: 1fr; gap: 0.2rem; } }
