/* ==========================================================================
   Natural Pediatrics — Cengiz Yucel, M.D. — Hackensack, NJ
   Design system + components. No dependencies.
   Palette is drawn from the practice's own materials: the teal hand-lettered
   wordmark, the yellow-green exam hallway, and the children's chalk drawings.
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */

:root {
  /* Surface */
  --paper:        #FCF8F0;
  --paper-2:      #F6EFE1;
  --paper-3:      #EFE6D4;
  --card:         #FFFDF8;

  /* Ink */
  --ink:          #12332F;
  --ink-soft:     #42605A;
  --ink-faint:    #6B837E;

  /* Brand */
  --pine:         #0F4B44;
  --pine-deep:    #07302B;
  --teal:         #14807A;
  --sun:          #E29A1F;
  --sun-light:    #FBE3AE;
  --sun-wash:     #FDF3DC;
  --clay:         #BE5637;
  --clay-wash:    #F8E7E0;
  --sage:         #7FA98A;
  --sage-wash:    #E8F0E7;

  /* Lines & shadow */
  --line:         rgba(18, 51, 47, .13);
  --line-strong:  rgba(18, 51, 47, .28);
  --shadow-sm:    0 1px 2px rgba(7, 48, 43, .05), 0 2px 8px rgba(7, 48, 43, .04);
  --shadow-md:    0 2px 4px rgba(7, 48, 43, .05), 0 12px 32px -8px rgba(7, 48, 43, .12);
  --shadow-lg:    0 4px 8px rgba(7, 48, 43, .05), 0 28px 60px -18px rgba(7, 48, 43, .20);

  /* Type */
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body:    "Karla", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --gutter:   clamp(1.25rem, 5vw, 3rem);
  --measure:  68ch;
  --max:      1200px;
  --max-wide: 1360px;
  --radius:   14px;
  --radius-lg: 26px;

  --section-y: clamp(4rem, 9vw, 8.5rem);

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --- 2. Reset ----------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;

  /* Both elements, not just body. overflow-x on body alone does not stop the
     page scrolling sideways, because html stays the scroll container: the
     marquee then produced about 11px of phantom horizontal scroll on a phone
     with nothing visibly overflowing.

     `clip` rather than `hidden` where it is supported. `hidden` creates a
     scroll container, which is what caused the problem and can also break
     position: sticky in descendants. `clip` just clips. The `hidden` line
     stays first as the fallback for Safari below 16. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.0125rem, .38vw + .95rem, 1.125rem);
  line-height: 1.68;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }

/* --- 3. Typography ------------------------------------------------------ */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.018em;
  color: var(--pine-deep);
  margin: 0 0 .55em;
  font-variation-settings: "SOFT" 22, "WONK" 1, "opsz" 40;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.4vw, 4.15rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.22; font-variation-settings: "SOFT" 18, "WONK" 0, "opsz" 20; }
h4 { font-size: 1.0625rem; font-family: var(--body); font-weight: 700; letter-spacing: .01em; line-height: 1.35; }

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--teal); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--clay); }

strong { font-weight: 700; color: var(--pine-deep); }

.lede {
  font-size: clamp(1.15rem, 1.15vw + .85rem, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
}

.eyebrow {
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: .65rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  flex: none;
}

.script {
  font-family: var(--display);
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 14;
  font-style: italic;
  font-weight: 500;
}

/* --- 4. Layout ---------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: var(--max-wide); }
.wrap--narrow { max-width: 780px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--paper2 { background: var(--paper-2); }
.section--sun { background: var(--sun-wash); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.section-head p { color: var(--ink-soft); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.stack > * + * { margin-top: 1.15rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--pine-deep); color: #fff;
  padding: .85rem 1.4rem; border-radius: 0 0 12px 0; font-weight: 700;
}
.skip:focus { left: 0; color: #fff; }

:where(a, button, input, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- 5. Buttons --------------------------------------------------------- */

.btn {
  --btn-bg: var(--pine);
  --btn-fg: #FFFDF8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--sun { --btn-bg: var(--sun); --btn-fg: #35240A; }
.btn--clay { --btn-bg: var(--clay); --btn-fg: #FFF7F3; }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--pine-deep);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--paper-3); }

.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

/* --- 6. Sun motif ------------------------------------------------------- */

.sunmark { display: block; color: var(--sun); }
.sunmark .rays { transform-origin: 50% 50%; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- 7. Header / navigation --------------------------------------------- */

.topbar {
  background: var(--pine-deep);
  color: #DCEBE6;
  font-size: .87rem;
  letter-spacing: .01em;
}
.topbar__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .4rem 1.5rem; padding-block: .6rem;
}
.topbar a { color: #FFF; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--sun-light); text-decoration: underline; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__item svg { width: 1em; height: 1em; color: var(--sun); flex: none; }

.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(252, 248, 240, .88);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.masthead.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px -14px rgba(7,48,43,.4); }

.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; padding-block: .85rem;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--pine-deep); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.08rem, 3.4vw, 1.24rem);
  letter-spacing: -.015em; font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 20;
}
@media (max-width: 400px) { .brand__mark { width: 32px; height: 32px; } .brand { gap: .55rem; } }
.brand__sub { font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-faint); margin-top: .3rem; font-weight: 600; }

.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: .55rem .8rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .97rem;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.nav a:hover { background: var(--paper-3); color: var(--pine-deep); }
.nav a[aria-current="page"] { color: var(--clay); background: var(--clay-wash); }

.masthead .btn { padding: .72rem 1.25rem; font-size: .95rem; }
.masthead__cta { display: none; }

.navtoggle {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--card); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: .6rem 1rem; font-weight: 700; font-size: .92rem;
  cursor: pointer; color: var(--pine-deep);
}
.navtoggle__bars { position: relative; width: 17px; height: 11px; flex: none; }
.navtoggle__bars i {
  position: absolute; left: 0; height: 2px; width: 100%; background: currentColor; border-radius: 2px;
  transition: transform .28s var(--ease), opacity .18s var(--ease);
}
.navtoggle__bars i:nth-child(1) { top: 0; }
.navtoggle__bars i:nth-child(2) { top: 4.5px; }
.navtoggle__bars i:nth-child(3) { top: 9px; }
[aria-expanded="true"] .navtoggle__bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
[aria-expanded="true"] .navtoggle__bars i:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .navtoggle__bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.mobilenav {
  display: block;
  border-top: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  max-height: 0;
  transition: max-height .38s var(--ease);
}
.mobilenav[hidden] { display: block; }
.mobilenav.is-open { max-height: 34rem; }
.mobilenav ul { list-style: none; margin: 0; padding: .6rem 0 1.4rem; }
.mobilenav ul a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .95rem .25rem; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.08rem;
}
.mobilenav ul a[aria-current="page"] { color: var(--clay); }
.mobilenav .btn-row { margin-top: 1.4rem; }
.mobilenav .btn { flex: 1 1 12rem; }

@media (min-width: 1000px) {
  .nav { display: block; }
  .navtoggle { display: none; }
  .mobilenav { display: none !important; }
  .masthead__cta { display: inline-flex; }
}

/* --- 8. Hero ------------------------------------------------------------ */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 7rem) clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  background:
    radial-gradient(60rem 32rem at 88% -12%, var(--sun-wash) 0%, rgba(253,243,220,0) 62%),
    radial-gradient(46rem 30rem at -8% 108%, var(--sage-wash) 0%, rgba(232,240,231,0) 60%),
    var(--paper);
}
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }

.hero h1 { margin-bottom: .35em; }
.hero h1 em {
  font-style: normal;
  color: var(--clay);
  position: relative;
  white-space: nowrap;
}
.hero h1 em {
  background-image: linear-gradient(var(--sun-light), var(--sun-light));
  background-repeat: no-repeat;
  background-size: 100% .16em;
  background-position: 0 88%;
  padding-inline: .06em;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: .45rem 1rem .45rem .5rem;
  font-size: .86rem; font-weight: 600; color: var(--ink-soft);
  box-shadow: var(--shadow-sm); margin-bottom: 1.75rem;
}
.hero__badge b { color: var(--pine-deep); font-weight: 700; }
.hero__badge .dot {
  width: 1.55rem; height: 1.55rem; border-radius: 999px;
  background: var(--sage-wash); color: var(--pine);
  display: grid; place-items: center; flex: none;
}
.hero__badge .dot svg { width: .95rem; height: .95rem; }

/* Hero collage */
.collage { position: relative; }
.collage__main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 8px solid var(--card);
  transform: rotate(-1.1deg);
  background: var(--paper-3);
}
.collage__main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.collage__chip {
  position: absolute;
  background: var(--card);
  border-radius: 18px;
  padding: .9rem 1.1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  display: flex; align-items: center; gap: .8rem;
  max-width: 16.5rem;
}
.collage__chip img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; object-position: 50% 15%; flex: none; }
.collage__chip .txt { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.collage__chip .t { font-weight: 700; font-size: .92rem; color: var(--pine-deep); line-height: 1.2; }
.collage__chip .v { font-size: .765rem; color: var(--ink-faint); line-height: 1.35; }
.collage__chip .score { display: flex; align-items: baseline; gap: .5rem; }
.collage__chip .k { font-family: var(--display); font-size: 1.7rem; font-weight: 700; line-height: 1; color: var(--pine-deep); font-variation-settings: "SOFT" 30, "opsz" 24; }
.collage__chip--tl { top: -1.5rem; left: -1.4rem; transform: rotate(-2deg); }
.collage__chip--br { bottom: -1.7rem; right: -1.4rem; transform: rotate(1.6deg); }

@media (max-width: 1080px) {
  .collage__chip--tl { left: -.4rem; }
  .collage__chip--br { right: -.4rem; }
}
@media (max-width: 600px) {
  .collage__chip--tl { top: -1rem; left: -.25rem; }
  .collage__chip--br { bottom: -1.2rem; right: -.25rem; }
  .collage__chip { padding: .7rem .9rem; max-width: 14rem; gap: .6rem; }
  .collage__chip img { width: 40px; height: 40px; }
  .collage__chip .k { font-size: 1.45rem; }
}

.stars { display: inline-flex; gap: 1px; color: var(--sun); }
.stars svg { width: .92rem; height: .92rem; }

/* --- 9. Mantra marquee -------------------------------------------------- */

.mantra {
  background: var(--pine-deep);
  color: var(--sun-light);
  padding-block: 1.1rem;
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,.08);
}
.mantra__track {
  display: flex; width: max-content;
  animation: marquee 52s linear infinite;
}
.mantra:hover .mantra__track { animation-play-state: paused; }
.mantra__group {
  display: flex; align-items: center; gap: 2.4rem; padding-right: 2.4rem;
  font-family: var(--display);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 20;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
}
.mantra__group span { display: inline-flex; align-items: center; gap: 2.4rem; }
.mantra__group span::after {
  content: "";
  width: 7px; height: 7px; border-radius: 999px; background: var(--sun); opacity: .7;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- 10. Cards ---------------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  height: 100%;
}
a.card, .card--link { text-decoration: none; color: inherit; display: block; }
a.card:hover, .card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); color: inherit; }

.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 0; }

.card__icon {
  width: 2.9rem; height: 2.9rem; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 1.15rem;
  background: var(--sage-wash); color: var(--pine);
}
.card__icon svg { width: 1.45rem; height: 1.45rem; }
.card__icon--sun { background: var(--sun-wash); color: #A96F09; }
.card__icon--clay { background: var(--clay-wash); color: var(--clay); }

.card__more {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.25rem; font-weight: 700; font-size: .92rem; color: var(--teal);
}
.card__more svg { width: .85rem; height: .85rem; transition: transform .22s var(--ease); }
a.card:hover .card__more svg, .card--link:hover .card__more svg { transform: translateX(4px); }

/* --- 11. Numbered service list ------------------------------------------ */

.rlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rlist > li { border-bottom: 1px solid var(--line); }
.rlist__row {
  display: grid; gap: .5rem 1.75rem;
  grid-template-columns: auto 1fr;
  padding: clamp(1.4rem, 2.4vw, 2rem) 0;
  align-items: start;
}
@media (min-width: 800px) { .rlist__row { grid-template-columns: 3.5rem 20rem 1fr; } }

.rlist__num {
  font-family: var(--display); font-variation-settings: "SOFT" 20, "opsz" 20;
  font-size: 1rem; font-weight: 700; color: var(--sun);
  padding-top: .35rem; letter-spacing: .04em;
}
.rlist__title { margin: 0; font-size: clamp(1.2rem, 1.7vw, 1.5rem); grid-column: 2 / -1; }
@media (min-width: 800px) { .rlist__title { grid-column: 2; } }
.rlist__body { grid-column: 2 / -1; color: var(--ink-soft); }
@media (min-width: 800px) { .rlist__body { grid-column: 3; } }
.rlist__body p { font-size: 1rem; }

/* --- 12. Bullets -------------------------------------------------------- */

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--ink-soft); }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: .48em;
  width: 1.15rem; height: 1.15rem; border-radius: 999px;
  background: var(--sage-wash);
  box-shadow: inset 0 0 0 1.5px rgba(15,75,68,.22);
}
.ticks li::after {
  content: "";
  position: absolute; left: .34rem; top: .78em;
  width: .48rem; height: .26rem;
  border-left: 2px solid var(--pine); border-bottom: 2px solid var(--pine);
  transform: rotate(-45deg);
}
.ticks--2 { }
@media (min-width: 760px) { .ticks--2 { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }

/* Free-zone chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: .5rem 1rem .5rem .8rem;
  font-size: .92rem; font-weight: 600; color: var(--ink-soft);
}
.chips li::before {
  content: "";
  width: .95rem; height: .95rem; border-radius: 999px; flex: none;
  background: var(--clay-wash);
  box-shadow: inset 0 0 0 1.5px rgba(190,86,55,.35);
  position: relative;
}
.chips li span { position: relative; }
.chips li span::after {
  content: ""; position: absolute; left: -.1em; right: -.1em; top: 52%; height: 1.5px;
  background: rgba(190,86,55,.42);
}

/* --- 13. Quotes / reviews ----------------------------------------------- */

.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 2.6vw, 2.25rem);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1.1rem;
  height: 100%;
  position: relative;
}
.quote::before {
  content: "\201C";
  position: absolute; top: .35rem; right: 1.25rem;
  font-family: var(--display); font-size: 5rem; line-height: 1;
  color: var(--sun-light); pointer-events: none;
}
.quote blockquote {
  margin: 0; font-size: clamp(1.02rem, 1.1vw, 1.12rem); line-height: 1.6; color: var(--ink);
  position: relative;
}
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: .7rem; padding-top: .35rem; border-top: 1px solid var(--line); }
.quote__avatar {
  width: 2.35rem; height: 2.35rem; border-radius: 999px; flex: none;
  background: var(--pine); color: var(--sun-light);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: .95rem;
}
.quote figcaption > span:last-child { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.quote__who { display: block; font-weight: 700; font-size: .95rem; color: var(--pine-deep); line-height: 1.2; }
.quote__meta { display: block; font-size: .8rem; color: var(--ink-faint); line-height: 1.3; }

.rating-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.4rem 1.7rem;
  box-shadow: var(--shadow-sm);
}
.rating-strip__score { font-family: var(--display); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--pine-deep); font-variation-settings: "SOFT" 25, "opsz" 30; }
.rating-strip__label { font-size: .9rem; color: var(--ink-faint); }
.rating-strip .stars svg { width: 1.15rem; height: 1.15rem; }

.themes { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.themes li {
  background: var(--sage-wash); color: var(--pine);
  border-radius: 999px; padding: .4rem .9rem; font-size: .85rem; font-weight: 600;
}
.themes li b { font-weight: 700; opacity: .6; margin-left: .15rem; }

/* --- 14. Doctor panel --------------------------------------------------- */

.doctor { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .doctor { grid-template-columns: minmax(0, 300px) 1fr; } }
.doctor--top { align-items: start; }
@media (min-width: 900px) {
  .doctor--top > :first-child { position: sticky; top: 6.5rem; }
}

.portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 8px solid var(--card);
  box-shadow: var(--shadow-lg);
  background: var(--paper-3);
  max-width: 296px;
}
.portrait img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 899px) { .portrait { margin-inline: auto; } }
.portrait--tall img { aspect-ratio: 4 / 5; }

.credlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.credlist li { display: grid; gap: .2rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 620px) { .credlist li { grid-template-columns: 11rem 1fr; } }
.credlist dt, .credlist .k {
  font-size: .76rem; letter-spacing: .13em; text-transform: uppercase;
  font-weight: 700; color: var(--clay); padding-top: .25rem;
}
.credlist .v { color: var(--ink); }

/* --- 15. Press ---------------------------------------------------------- */

.press { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .press { grid-template-columns: repeat(2, 1fr); } }

.press__item {
  display: flex; flex-direction: column; gap: .7rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem 1.7rem; text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.press__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }
.press__source {
  font-family: var(--display); font-size: 1.2rem; font-weight: 700; color: var(--pine-deep);
  font-variation-settings: "SOFT" 25, "opsz" 20;
}
.press__desc { font-size: .96rem; color: var(--ink-soft); margin: 0; }
.press__link { font-size: .82rem; color: var(--teal); font-weight: 700; word-break: break-word; }

/* --- 16. Contact -------------------------------------------------------- */

.contact-grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 800px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }

.info { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.info h3 { font-size: 1.15rem; margin-bottom: .75rem; }
.info a { font-weight: 600; text-decoration: none; }
.info a:hover { text-decoration: underline; }
.info .card__icon { margin-bottom: 1rem; }

.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: .6rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.hours li:last-child { border-bottom: 0; }
.hours .d { color: var(--ink-soft); }
.hours .t { font-weight: 700; color: var(--pine-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours li.is-today { color: var(--clay); }
.hours li.is-today .d, .hours li.is-today .t { color: var(--clay); }

.map-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  background: var(--paper-3);
  /* An aspect-ratio combined with a min-height drives the WIDTH up on a
     narrow screen: 320px tall at 16:9 is 569px wide, which overflowed a
     phone and made the whole contact page scroll sideways. An explicit
     height keeps the width at 100% at every size. */
  width: 100%;
  height: clamp(260px, 42vw, 440px);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- 17. CTA band ------------------------------------------------------- */

.cta {
  position: relative;
  background: var(--pine-deep);
  color: #E9F3EF;
  border-radius: 0;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(38rem 22rem at 82% 118%, rgba(226,154,31,.24), transparent 65%),
              radial-gradient(30rem 20rem at 4% -20%, rgba(127,169,138,.22), transparent 62%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; padding-block: clamp(3.5rem, 7vw, 6rem); }
.cta h2 { color: #FFFDF8; }
.cta p { color: rgba(233,243,239,.82); }
.cta .btn--ghost { --btn-fg: #FFFDF8; border-color: rgba(255,255,255,.32); }
.cta .btn--ghost:hover { background: rgba(255,255,255,.1); }

.cta__phones { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; font-size: .95rem; color: rgba(233,243,239,.75); }
.cta__phones a { color: #FFFDF8; text-decoration: none; font-weight: 600; }
.cta__phones a:hover { color: var(--sun-light); }

/* --- 18. Footer --------------------------------------------------------- */

.footer { background: var(--pine-deep); color: rgba(233,243,239,.76); font-size: .95rem; }
.footer a { color: rgba(233,243,239,.86); text-decoration: none; }
.footer a:hover { color: var(--sun-light); text-decoration: underline; }
.footer__grid { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 5vw, 4.5rem) 2.5rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1040px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

.footer h2, .footer h3 { color: #FFFDF8; }
.footer h3 { font-family: var(--body); font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--sun); margin-bottom: 1.1rem; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer .brand { color: #FFFDF8; }
.footer .brand__sub { color: rgba(233,243,239,.6); }
.footer p { color: rgba(233,243,239,.72); font-size: .95rem; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .85rem; color: rgba(233,243,239,.55);
}

address { font-style: normal; }

/* --- 19. Page hero (interior) ------------------------------------------- */

.pagehead {
  background:
    radial-gradient(46rem 26rem at 84% -30%, var(--sun-wash), transparent 62%),
    var(--paper-2);
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.pagehead h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }

.crumbs { font-size: .85rem; color: var(--ink-faint); margin-bottom: 1.4rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: .45rem; color: var(--line-strong); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--clay); text-decoration: underline; }

/* --- 20. Prose / notes -------------------------------------------------- */

.prose h2 { margin-top: 2.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2em; }

.note {
  border-left: 3px solid var(--sun);
  background: var(--sun-wash);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  color: var(--ink-soft);
}
.note strong { color: var(--pine-deep); }

.pullquote {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.32;
  color: var(--pine-deep);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 30;
  border-left: 3px solid var(--sun);
  padding-left: clamp(1.25rem, 2.5vw, 2rem);
  margin: clamp(2rem, 4vw, 3rem) 0;
  max-width: 30ch;
}
.pullquote cite { display: block; font-family: var(--body); font-size: .9rem; font-style: normal; color: var(--ink-faint); margin-top: .9rem; letter-spacing: .04em; }

/* Related links */
.related { display: grid; gap: 1rem; }
@media (min-width: 700px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a {
  display: flex; flex-direction: column; gap: .35rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.3rem; text-decoration: none; color: inherit;
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}
.related a:hover { border-color: var(--line-strong); transform: translateY(-2px); color: inherit; }
.related .t { font-weight: 700; color: var(--pine-deep); }
.related .d { font-size: .88rem; color: var(--ink-faint); }

/* Figure */
figure { margin: 0; }
.figure {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--paper-3);
}
.figure img { width: 100%; object-fit: cover; }
.figure figcaption { padding: .85rem 1.15rem; font-size: .85rem; color: var(--ink-faint); background: var(--card); }

.photo-row { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .photo-row { grid-template-columns: repeat(3, 1fr); } }
.photo-row .figure img { aspect-ratio: 4 / 3; }

/* --- 21. Motion --------------------------------------------------------- */

/* The old .reveal class is gone. Entrance animation is opt-in through
   data-anim (section 24) and nothing else may set opacity: 0 on content,
   so a stylesheet change can never leave a page blank again. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .mantra__track { animation: none; }
  .sunmark .rays { animation: none; }
}

/* --- 22. Print ---------------------------------------------------------- */

@media print {
  .masthead, .mobilenav, .topbar, .cta, .mantra, .btn-row { display: none !important; }
  body { background: #fff; color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* ==========================================================================
   PART TWO — elevated surfaces, motion vocabulary, tabs, in-page navigation
   Added in the second pass. Everything above stays as it was.
   ========================================================================== */

/* --- 23. Atmosphere: grain, aurora, grid ------------------------------- */

:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  --dots: radial-gradient(circle at 1px 1px, rgba(18,51,47,.14) 1px, transparent 0);
}

/* A soft, slow-moving light behind a section. Sits under the content. */
.atmos { position: relative; isolation: isolate; overflow: clip; }
.atmos > * { position: relative; z-index: 1; }

.atmos::before {
  content: "";
  position: absolute; inset: -20% -10%;
  z-index: 0;
  background:
    radial-gradient(32rem 22rem at 12% 18%, rgba(226,154,31,.20), transparent 62%),
    radial-gradient(30rem 24rem at 86% 22%, rgba(127,169,138,.24), transparent 64%),
    radial-gradient(26rem 20rem at 62% 92%, rgba(190,86,55,.13), transparent 66%);
  filter: blur(6px);
  animation: drift 34s ease-in-out infinite alternate;
  pointer-events: none;
}
.atmos::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--grain);
  opacity: .5;
  mix-blend-mode: multiply;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-2.5%, 2%, 0) scale(1.07); }
}

.atmos--cool::before {
  background:
    radial-gradient(34rem 22rem at 88% 8%, rgba(20,128,122,.20), transparent 62%),
    radial-gradient(28rem 22rem at 6% 76%, rgba(226,154,31,.16), transparent 64%);
}
.atmos--quiet::before { opacity: .55; }

/* Faint dotted field, for pages that would otherwise be a flat slab */
.dotfield { position: relative; isolation: isolate; }
.dotfield::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--dots);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 78%);
          mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 78%);
  opacity: .8; pointer-events: none;
}
.dotfield > * { position: relative; z-index: 1; }

/* Hand-drawn horizon rule between major bands */
.horizon {
  height: 26px; width: 100%;
  color: var(--sun);
  opacity: .55;
  background-repeat: repeat-x;
  background-position: center;
  background-size: 260px 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='26' fill='none' stroke='%23E29A1F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M0 15c22-9 44 9 66 0s44-9 66 0 44 9 66 0 44-9 62 0'/%3E%3C/svg%3E");
}

/* --- 24. Motion vocabulary --------------------------------------------- */
/* Each block declares how it wants to arrive. Nothing just fades upward. */

.js [data-anim] { --d: 0ms; will-change: transform, opacity, clip-path; }

/* wipe: headings unveil from the baseline up, like ink being laid down */
.js [data-anim="wipe"] {
  clip-path: inset(0 0 105% 0);
  opacity: .001;
}
.js [data-anim="wipe"].is-in {
  clip-path: inset(-30% -10% -12% -10%);
  opacity: 1;
  transition: clip-path .95s cubic-bezier(.19,1,.22,1) var(--d),
              opacity .5s ease var(--d);
}

/* rise: cards lift and settle, with the blur clearing as they land */
.js [data-anim="rise"] {
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(.985);
  filter: blur(6px);
}
.js [data-anim="rise"].is-in {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity .6s ease var(--d),
              transform .85s cubic-bezier(.19,1,.22,1) var(--d),
              filter .6s ease var(--d);
}

/* draw: list rows slide in behind their own rule being drawn across */
.js [data-anim="draw"] { opacity: 0; transform: translate3d(-14px, 0, 0); }
.js [data-anim="draw"].is-in {
  opacity: 1; transform: none;
  transition: opacity .55s ease var(--d), transform .75s cubic-bezier(.19,1,.22,1) var(--d);
}
.js [data-anim="draw"] > .rlist__row::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--sun); opacity: .7;
}
.js [data-anim="draw"].is-in > .rlist__row::after {
  width: 100%;
  transition: width 1.05s cubic-bezier(.19,1,.22,1) calc(var(--d) + 120ms);
}
.rlist__row { position: relative; }

/* pop: small chips and pills spring in */
.js [data-anim="pop"] { opacity: 0; transform: scale(.86); }
.js .collage__chip[data-anim="pop"] { transform: scale(.9); }
.js .collage__chip--tl.is-in { transform: rotate(-2deg); }
.js .collage__chip--br.is-in { transform: rotate(1.6deg); }
.js [data-anim="pop"].is-in {
  opacity: 1; transform: none;
  transition: opacity .35s ease var(--d), transform .5s cubic-bezier(.34,1.56,.64,1) var(--d);
}

/* unfurl: images arrive by uncovering, not by sliding */
.js [data-anim="unfurl"] { clip-path: inset(0 0 0 100%); }
.js [data-anim="unfurl"].is-in {
  clip-path: inset(-2px -2px -2px -2px);
  transition: clip-path 1.05s cubic-bezier(.19,1,.22,1) var(--d);
}

/* count: the big rating number scales up from its baseline */
.js [data-anim="count"] { opacity: 0; transform: translate3d(0,.25em,0) scale(.9); }
.js [data-anim="count"].is-in {
  opacity: 1; transform: none;
  transition: opacity .4s ease var(--d), transform .7s cubic-bezier(.34,1.4,.64,1) var(--d);
}

@media (prefers-reduced-motion: reduce) {
  .js [data-anim], .js [data-anim].is-in {
    opacity: 1 !important; transform: none !important; filter: none !important;
    clip-path: none !important; transition: none !important;
  }
  .js [data-anim="draw"] > .rlist__row::after { display: none; }
  .atmos::before { animation: none; }
}

/* --- 25. In-page section navigation ------------------------------------ */

.sectionnav {
  position: sticky; top: 4.6rem; z-index: 40;
  background: rgba(252,248,240,.9);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.sectionnav__inner {
  display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none;
  padding-block: .6rem; -webkit-overflow-scrolling: touch;
}
.sectionnav__inner::-webkit-scrollbar { display: none; }
.sectionnav a {
  flex: none;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .95rem;
  border-radius: 999px;
  font-size: .92rem; font-weight: 600; text-decoration: none;
  color: var(--ink-soft);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.sectionnav a:hover { background: var(--paper-3); color: var(--pine-deep); }
.sectionnav a.is-active {
  background: var(--pine-deep); color: #FFFDF8; border-color: var(--pine-deep);
}
.sectionnav a .n {
  font-family: var(--display); font-size: .78rem; opacity: .55;
  font-variation-settings: "opsz" 12;
}
@media (min-width: 1000px) { .sectionnav { top: 4.9rem; } }

/* Anchor targets clear both sticky bars */
[id] { scroll-margin-top: 9rem; }

/* --- 26. Tabs (services) ------------------------------------------------ */

.tabs__list {
  display: flex; gap: .4rem; flex-wrap: nowrap;
  overflow-x: auto; scrollbar-width: none;
  padding: .35rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--paper-3);
  border-radius: 999px;
  -webkit-overflow-scrolling: touch;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab {
  flex: 1 0 auto;
  appearance: none; background: transparent; border: 0; cursor: pointer;
  padding: .7rem 1.25rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; color: var(--ink-soft);
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.tabs__tab:hover { color: var(--pine-deep); }
.tabs__tab[aria-selected="true"] {
  background: var(--card); color: var(--pine-deep);
  box-shadow: var(--shadow-sm);
}
.tabs__panel[hidden] { display: none; }
.tabs__panel {
  animation: panelin .5s cubic-bezier(.19,1,.22,1) both;
}
@keyframes panelin {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .tabs__panel { animation: none; } }

.tabs__grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
@media (min-width: 900px) { .tabs__grid { grid-template-columns: 1.05fr .95fr; } }

/* --- 27. Review wall ---------------------------------------------------- */

.wall { columns: 1; column-gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 700px) { .wall { columns: 2; } }
@media (min-width: 1060px) { .wall { columns: 3; } }
.wall > * { break-inside: avoid; margin-bottom: clamp(1rem, 2vw, 1.5rem); }

.rv {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .85rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.rv:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.rv__top { display: flex; align-items: center; gap: .7rem; }
.rv__av {
  width: 2.6rem; height: 2.6rem; border-radius: 999px; flex: none;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  color: #FFFDF8; background: var(--pine);
  font-variation-settings: "opsz" 14;
}
.rv__av--a { background: var(--clay); }
.rv__av--b { background: var(--teal); }
.rv__av--c { background: #8A6A16; }
.rv__av--d { background: #4C6E57; }
.rv__id { min-width: 0; }
.rv__name { display: block; font-weight: 700; font-size: .95rem; color: var(--pine-deep); line-height: 1.2; }
.rv__meta { display: block; font-size: .78rem; color: var(--ink-faint); }
.rv blockquote { margin: 0; font-size: .97rem; line-height: 1.62; color: var(--ink); }
.rv__src {
  align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--paper-2); border-radius: 999px; padding: .25rem .7rem;
}
.rv .stars svg { width: .88rem; height: .88rem; }

/* --- 28. Article cards -------------------------------------------------- */

.arts { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); }
@media (min-width: 760px) { .arts { grid-template-columns: repeat(2, 1fr); } }

.art {
  display: flex; flex-direction: column; gap: .85rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 2.4vw, 2rem);
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.art::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(var(--sun), var(--clay));
  opacity: .8;
}
.art__date {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--clay);
}
.art h3 { margin: 0; }
.art p { font-size: .98rem; color: var(--ink-soft); margin: 0; }
.art__note {
  font-size: .82rem; color: var(--ink-faint);
  border-top: 1px dashed var(--line); padding-top: .8rem; margin-top: auto;
}

/* --- 29. Press logos / listings ---------------------------------------- */

.listing {
  display: flex; align-items: center; gap: 1rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.2rem;
  text-decoration: none; color: inherit;
  transition: border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
.listing:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); color: inherit; }
.listing__mark {
  width: 2.6rem; height: 2.6rem; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--paper-3); color: var(--pine-deep);
  font-family: var(--display); font-weight: 700; font-size: .9rem;
  font-variation-settings: "opsz" 12;
}
.listing__body { min-width: 0; flex: 1; }
.listing__name { display: block; font-weight: 700; color: var(--pine-deep); font-size: .98rem; }
.listing__what { display: block; font-size: .84rem; color: var(--ink-faint); }
.listing__go { color: var(--teal); flex: none; }
.listing__go svg { width: 1rem; height: 1rem; transition: transform .22s var(--ease); }
.listing:hover .listing__go svg { transform: translateX(3px); }

.listings { display: grid; gap: .75rem; }
@media (min-width: 760px) { .listings { grid-template-columns: repeat(2, 1fr); } }

/* --- 30. Legal pages ---------------------------------------------------- */

.meta-line { font-size: .85rem; color: var(--ink-faint); letter-spacing: .01em; }

.note--review {
  border-left-color: var(--clay);
  background: var(--clay-wash);
}
.note--review strong { color: var(--clay); }

.prose .ticks { margin-block: 1.25rem; }

/* --- 31. Footer legal row ---------------------------------------------- */

.footer__legal {
  display: flex; flex-wrap: wrap; gap: .4rem 1.25rem;
  font-size: .84rem;
}
.footer__legal a { color: rgba(233,243,239,.62); }
.footer__legal a:hover { color: var(--sun-light); }

/* --- 32. Sticky mobile call bar ---------------------------------------- */

.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom));
  background: rgba(252,248,240,.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.callbar.is-up { transform: none; }
.callbar .btn { padding: .8rem 1rem; font-size: .95rem; }
@media (min-width: 760px) { .callbar { display: none; } }
@media (max-width: 759px) { body { padding-bottom: 0; } }

/* --- 33. Rating wall ---------------------------------------------------- */

.ratewall {
  display: grid; gap: .85rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 800px) { .ratewall { grid-template-columns: repeat(4, 1fr); } }

.ratepill {
  display: flex; align-items: center; gap: .9rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 1rem 1.15rem;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.ratepill:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--line-strong); color: inherit;
}
.ratepill__n {
  font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1;
  color: var(--pine-deep); font-variation-settings: "SOFT" 25, "opsz" 24;
}
.ratepill__t { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.ratepill__p { font-weight: 700; font-size: .92rem; color: var(--pine-deep); line-height: 1.2; }
.ratepill__c { font-size: .78rem; color: var(--ink-faint); }

.rv__stars { display: block; color: var(--sun); margin-top: -.25rem; }
.rv__stars .stars { display: inline-flex; }

/* --- 34. Legal prose spacing ------------------------------------------- */

.prose > h2:first-of-type { margin-top: 0; }
.prose .note + h2 { margin-top: 2.6em; }

/* --- 35. Never upscale a photograph ------------------------------------
   The practice's archive photos are small. Rather than stretch them and let
   them go soft, each <picture> carries its native width in --nw and is capped
   there, then centred inside a mat. The mat is what makes it read as a framed
   print instead of a broken image.
   ------------------------------------------------------------------------ */

.figure { background: var(--paper-2); }
.figure picture {
  display: block;
  width: 100%;
  max-width: var(--nw, 100%);
  margin-inline: auto;
}
.figure > picture { border-radius: 0; overflow: hidden; }
.figure figcaption { border-top: 1px solid var(--line); }

/* When the slot is wider than the photo, mat it */
.figure--mat { padding: clamp(.9rem, 2vw, 1.6rem); }
.figure--mat picture {
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(7,48,43,.10), 0 10px 26px -14px rgba(7,48,43,.35);
}
.figure--mat figcaption {
  background: transparent; border-top: 0;
  padding: .9rem .25rem 0; text-align: center;
}

.collage__main picture { max-width: 100%; }
.collage__chip picture { max-width: 100%; }
.portrait picture { max-width: 100%; }
.photo-row .figure picture img,
.figure picture img { width: 100%; }

/* Placeholder that holds the photo's space until its tab is opened */
.lazyslot {
  width: 100%; max-width: var(--nw, 100%); margin-inline: auto;
  aspect-ratio: var(--ar, 4 / 3);
  border-radius: 10px;
  background:
    linear-gradient(135deg, var(--paper-3) 0%, var(--paper-2) 55%, var(--paper-3) 100%);
}

/* ==========================================================================
   PART THREE — hero rebuild, mesh backgrounds, live status
   ========================================================================== */

/* --- 36. Mesh gradient grounds ------------------------------------------
   Rendered by tools/backgrounds.py. Each is about 1 KB and scales because a
   mesh gradient has no edges to go soft.
   ------------------------------------------------------------------------ */

.mesh { position: relative; isolation: isolate; }
.mesh::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image: var(--mesh);
  background-size: cover;
  background-position: center;
  opacity: .92;
}

/* Mesh grounds, declared here so the url() resolves against this stylesheet.
   They used to be inline --mesh custom properties, which browsers resolved
   against assets/css/ and 404d at every deploy path. */
.mesh--bg-home::before{background-image:url(../img/bg/home.webp)}
.mesh--bg-about::before{background-image:url(../img/bg/about.webp)}
.mesh--bg-contact::before{background-image:url(../img/bg/contact.webp)}
.mesh--bg-legal::before{background-image:url(../img/bg/legal.webp)}
.mesh--bg-resources::before{background-image:url(../img/bg/resources.webp)}
.mesh--bg-reviews::before{background-image:url(../img/bg/reviews.webp)}
.mesh--bg-services::before{background-image:url(../img/bg/services.webp)}
.mesh--bg-vaccinations::before{background-image:url(../img/bg/vaccinations.webp)}
.mesh::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain);
  opacity: .38; mix-blend-mode: multiply;
  pointer-events: none;
}
.mesh > * { position: relative; z-index: 0; }

/* Fade the mesh out at the bottom so it meets the next section cleanly */
.mesh--fade::before {
  -webkit-mask-image: linear-gradient(#000 55%, transparent 100%);
          mask-image: linear-gradient(#000 55%, transparent 100%);
}

/* --- 37. Hero ------------------------------------------------------------ */

.hero {
  padding-block: clamp(2.75rem, 6vw, 5.5rem) clamp(3rem, 6vw, 5.5rem);
  background: none;
}
.hero__grid { align-items: center; }
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.08fr .92fr; gap: clamp(2.5rem, 5vw, 4.5rem); }
}

.hero h1 { margin-bottom: .42em; }
.hero__lead .lede { max-width: 46ch; }

.btn--lg { padding: 1.05rem 1.75rem; font-size: 1.03rem; }

/* Proof strip */
.proof {
  list-style: none; margin: clamp(2.25rem, 4vw, 3rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  max-width: 40rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 620px) { .proof { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.proof li {
  background: rgba(255, 253, 248, .88);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 1.25rem 1.15rem 1.15rem;
  display: flex; flex-direction: column; gap: .3rem;
  min-width: 0;
}
.proof b {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.9rem, 2.4vw, 2.35rem); line-height: 1;
  color: var(--pine-deep); font-variation-settings: "SOFT" 25, "opsz" 32;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  white-space: nowrap;
}
.proof b sup { font-size: .5em; top: -.6em; position: relative; color: var(--sun); }
/* Scoped to the label only. An unscoped `.proof span` also caught the
   counter span inside <b> and shrank the number to label size. */
.proof li > span {
  font-size: .845rem; line-height: 1.35; color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.proof b span { font-size: inherit; }

/* --- 38. Profile card ---------------------------------------------------- */

.hero__art { display: flex; justify-content: center; }

.profilecard {
  width: 100%; max-width: 25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.profilecard::after {
  content: ""; position: absolute; inset: 0; border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
  pointer-events: none;
}

.profilecard__band {
  position: relative;
  background: var(--paper-3);
  height: 8.5rem;
  overflow: hidden;
}
.profilecard__band picture,
.profilecard__band img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 62%; display: block; }
.profilecard__band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,48,43,.05) 0%, rgba(7,48,43,.22) 100%);
}

.profilecard__head {
  display: flex; align-items: flex-end; gap: .9rem;
  padding: 0 1.35rem; margin-top: -1.9rem; position: relative; z-index: 1;
}
.profilecard__avatar {
  width: 5.2rem; height: 5.2rem; flex: none;
  border-radius: 50%; overflow: hidden;
  border: 4px solid var(--card);
  background: var(--paper-3);
  box-shadow: 0 6px 18px -8px rgba(7,48,43,.5);
}
.profilecard__avatar picture,
.profilecard__avatar img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 18%; }
.profilecard__id { padding-bottom: .2rem; min-width: 0; }
.profilecard__name {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: 1.18rem; line-height: 1.15; color: var(--pine-deep);
  font-variation-settings: "SOFT" 28, "opsz" 20;
}
.profilecard__role { display: block; font-size: .78rem; color: var(--ink-faint); line-height: 1.35; margin-top: .18rem; }

.statuspill {
  display: inline-flex; align-items: center; gap: .45rem;
  margin: 1rem 1.35rem 0;
  padding: .32rem .75rem .32rem .6rem;
  border-radius: 999px;
  font-size: .8rem; font-weight: 600;
  background: var(--sage-wash); color: var(--pine);
  border: 1px solid rgba(15,75,68,.16);
}
.statuspill__dot {
  width: .5rem; height: .5rem; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 3px rgba(15,75,68,.13);
}
.statuspill.is-shut { background: var(--paper-3); color: var(--ink-faint); border-color: var(--line); }
.statuspill.is-shut .statuspill__dot { box-shadow: 0 0 0 3px rgba(18,51,47,.07); }

.profilecard__rating {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  padding: 1.05rem 1.35rem .95rem;
}
.profilecard__score {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1;
  color: var(--pine-deep); font-variation-settings: "SOFT" 25, "opsz" 20;
}
.profilecard__rating .stars svg { width: 1rem; height: 1rem; }
.profilecard__count { font-size: .78rem; color: var(--ink-faint); }

.profilecard__quote {
  margin: 0; padding: 1.15rem 1.35rem 1.35rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
  display: grid;
  min-height: 8.5rem;
}
.profilecard__quote .rq {
  grid-area: 1 / 1; margin: 0;
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s;
}
.profilecard__quote .rq.is-on { opacity: 1; visibility: visible; transform: none; }
.profilecard__quote p {
  margin: 0 0 .6rem; font-size: .95rem; line-height: 1.55; color: var(--ink);
  font-family: var(--display); font-weight: 400;
  font-variation-settings: "SOFT" 40, "opsz" 16;
}
.profilecard__quote cite {
  font-style: normal; font-size: .76rem; font-weight: 600;
  color: var(--clay); letter-spacing: .02em;
}

@media (max-width: 979px) {
  .profilecard { max-width: 26rem; }
  .hero__art { margin-top: 1rem; }
}

/* --- 39. Review excerpt marker ------------------------------------------ */

.rv__excerpt {
  align-self: flex-start;
  font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-faint);
  border: 1px solid var(--line); border-radius: 3px;
  padding: .12rem .4rem; cursor: help;
}

/* --- 40. Contact answers block ------------------------------------------ */

.answers { display: grid; gap: 1rem; }
@media (min-width: 760px) { .answers { grid-template-columns: repeat(2, 1fr); } }
.answers details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 0; overflow: hidden;
}
.answers summary {
  cursor: pointer; list-style: none;
  padding: 1rem 1.25rem; font-weight: 700; color: var(--pine-deep);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.answers summary::-webkit-details-marker { display: none; }
.answers summary::after {
  content: ""; flex: none; width: .55rem; height: .55rem;
  border-right: 2px solid var(--ink-faint); border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.answers details[open] summary::after { transform: rotate(-135deg); }
.answers .body { padding: 0 1.25rem 1.15rem; color: var(--ink-soft); font-size: .96rem; }

@media (prefers-reduced-motion: reduce) {
  .profilecard__quote .rq { transition: none; }
}

/* --- 41. Motion additions ----------------------------------------------- */

/* Mesh grounds drift against the scroll. --mesh-y is set by site.js. */
.mesh::before {
  transform: translate3d(0, var(--mesh-y, 0), 0) scale(1.06);
  will-change: transform;
}

/* Text links draw their underline rather than switching it on */
.prose a:not(.btn),
.info a,
.decision a,
p a:not(.btn):not(.card__more) {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size .35s var(--ease), color .2s var(--ease);
  padding-bottom: 1px;
}
.prose a:not(.btn):hover,
.info a:hover,
.decision a:hover,
p a:not(.btn):not(.card__more):hover { background-size: 100% 1px; }

/* Chips lift very slightly on hover, so the list feels like objects */
.chips li {
  transition: transform .22s var(--ease), border-color .22s var(--ease), background-color .22s var(--ease);
}
.chips li:hover { transform: translateY(-2px); border-color: var(--line-strong); }

/* The sun in the header nudges on hover */
.brand .sunmark { transition: transform .5s var(--ease); }
.brand:hover .sunmark { transform: rotate(24deg) scale(1.06); }

/* Numbered service rows tint their rule on hover */
.rlist > li { transition: background-color .3s var(--ease); }
.rlist > li:hover { background: rgba(226, 154, 31, .05); }

/* Primary buttons get a soft travelling sheen on hover */
.btn:not(.btn--ghost) { position: relative; overflow: hidden; }
.btn:not(.btn--ghost)::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.28) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform .75s var(--ease);
  pointer-events: none;
}
.btn:not(.btn--ghost):hover::after { transform: translateX(120%); }

@media (prefers-reduced-motion: reduce) {
  .mesh::before { transform: none; }
  .btn::after { display: none; }
  .prose a, .info a, p a { transition: none; background-size: 100% 1px; }
}

/* --- 42. Small-screen fixes --------------------------------------------- */

.ratewall { grid-template-columns: 1fr; }
@media (min-width: 460px) { .ratewall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 800px) { .ratewall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ratepill { min-width: 0; }
.ratepill__t { min-width: 0; overflow-wrap: anywhere; }
.ratepill__n { flex: none; }

.proof li { min-width: 0; }
.proof b, .proof span { overflow-wrap: anywhere; }

/* --- 43. Credential list inside the narrow About sidebar ----------------
   The two-column form needs about 30rem to breathe. In the sticky sidebar it
   only has 284px, so it stacks there instead of wrapping one word per line.
   ------------------------------------------------------------------------ */

.doctor--top > :first-child .credlist li {
  grid-template-columns: 1fr;
  gap: .25rem;
  padding: .85rem 0;
}
.doctor--top > :first-child .credlist .k { padding-top: 0; }
.doctor--top > :first-child .credlist .v { font-size: .95rem; line-height: 1.5; }

/* --- 44. Hero scale ------------------------------------------------------
   The hero carries the whole first impression, so it is set noticeably
   larger than the interior pages. Every size is a clamp with a mobile-safe
   floor, so nothing overflows a 320px screen.
   ------------------------------------------------------------------------ */

.hero { padding-block: clamp(2.5rem, 4.5vw, 4.25rem) clamp(3.25rem, 7vw, 6rem); }

@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.12fr .88fr; gap: clamp(2.75rem, 5vw, 5rem); }
}

.hero h1 {
  /* Capped so the headline holds three lines rather than four at laptop
     width. Four lines pushed the call button below a 900px fold, which is
     the one thing on this page that has to be reachable without scrolling. */
  font-size: clamp(2.6rem, 5.2vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -.025em;
  margin-bottom: .38em;
}

.hero__lead .lede {
  font-size: clamp(1.14rem, .85vw + .92rem, 1.55rem);
  line-height: 1.5;
  max-width: 43ch;
}

.hero__badge {
  font-size: clamp(.82rem, .25vw + .76rem, .95rem);
  padding: .55rem 1.15rem .55rem .6rem;
  gap: .7rem;
  margin-bottom: clamp(1.35rem, 2vw, 1.85rem);
}
.hero__badge .dot { width: 1.8rem; height: 1.8rem; }
.hero__badge .dot svg { width: 1.05rem; height: 1.05rem; }
/* The label and the hospital name must be one flex item, or they become two
   anonymous items and sit side by side as narrow columns on a phone. */
.hero__badge > span { min-width: 0; }
@media (max-width: 560px) { .hero__badge { align-items: flex-start; } .hero__badge .dot { margin-top: .1rem; } }

.btn--lg {
  padding: clamp(1rem, 1.1vw + .72rem, 1.25rem) clamp(1.5rem, 1.6vw + 1.05rem, 2.1rem);
  font-size: clamp(1rem, .25vw + .94rem, 1.12rem);
}

.hero .btn-row { gap: 1rem; margin-top: clamp(1.6rem, 2.4vw, 2.1rem); }

/* Proof strip, scaled with the rest of the hero */
.proof { max-width: 44rem; margin-top: clamp(1.75rem, 2.8vw, 2.25rem); }
.proof li { padding: clamp(1.1rem, 1.4vw, 1.5rem) clamp(1rem, 1.2vw, 1.35rem); gap: .35rem; }
.proof b { font-size: clamp(2rem, 2.9vw, 2.75rem); }
.proof li > span { font-size: clamp(.8rem, .22vw + .76rem, .9rem); }

/* The card grows with it so the two columns stay in balance */
.profilecard { max-width: 27rem; }
.profilecard__band { height: clamp(8.5rem, 11vw, 10.5rem); }
.profilecard__avatar { width: clamp(5.2rem, 6.5vw, 6rem); height: clamp(5.2rem, 6.5vw, 6rem); }
.profilecard__name { font-size: clamp(1.18rem, 1.1vw, 1.34rem); }
.profilecard__quote p { font-size: clamp(.95rem, .9vw, 1.04rem); }

/* Below the two-column breakpoint the card should not tower over the text */
@media (max-width: 979px) {
  .profilecard { max-width: 26rem; }
  .hero__art { margin-top: 1.5rem; }
}

/* --- 45. Touch targets ---------------------------------------------------
   WCAG 2.2 AA (2.5.8) asks for 24x24 CSS pixels minimum, and Apple's own
   guidance says 44. Footer and contact link lists were rendering 18px tall,
   which is a genuinely awkward tap on a phone. These rules add vertical
   padding on touch-sized screens only, so desktop spacing is unchanged.
   ------------------------------------------------------------------------ */

@media (max-width: 900px) {
  .footer ul a,
  .footer address a,
  .footer__bottom a,
  .info ul a,
  .related a,
  .ratepill {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .footer ul { gap: .1rem; }
  .footer__bottom { gap: .25rem 1.25rem; }
  .footer__bottom nav ul { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }

  .info ul { gap: .1rem !important; }

  /* The wordmark is the route home from every page */
  .brand { min-height: 44px; }
}

/* Links that sit inside a sentence cannot be made physically taller without
   breaking the line, so they get a transparent hit area instead. Vertical
   padding only: widening them horizontally would make neighbouring links in
   the same line overlap, and tapping would hit the wrong one. */
@media (pointer: coarse) {
  .crumbs a,
  .press__link,
  .card__more,
  .footer p a,
  .info p a,
  .prose p a,
  .answers .body a {
    position: relative;
  }
  .crumbs a::after,
  .press__link::after,
  .card__more::after,
  .footer p a::after,
  .info p a::after,
  .prose p a::after,
  .answers .body a::after {
    content: "";
    position: absolute;
    inset: -13px -2px;
    z-index: 1;
  }
}
