/* Racine Dental Group concept. Anchor: VoltAgent starbucks DESIGN.md, re-tokened to Racine's logo greens on white. */
:root {
  --paper: #ffffff;
  --tint: #eef5f6;      /* logo tree-circle tint */
  --leaf: #f3f8e8;      /* pale wash of the logo's light tree */
  --line: #d6e6ea;      /* logo tree-circle line */
  --ink: #163746;       /* their text colour */
  --muted: #4a6068;
  --olive: #3a5206;     /* their button and footer green */
  --olive-deep: #2c3f04;
  --green: #668a1f;     /* logo middle tree */
  --lime: #b2d252;      /* logo light tree */
  --display: "Funnel Display", "Inter", sans-serif;
  --text: "Inter", sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1720px;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --header: 96px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
::selection { background: var(--lime); color: var(--ink); }
input, textarea { caret-color: var(--lime); }
.arr { display: inline-block; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.arr-l { transform: scaleX(-1); }
@media (max-width: 1199px) { :root { --header: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 17px; line-height: 1.65;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: clamp(36px, 4.1vw, 68px); line-height: 1.02; color: var(--ink); }
.book-block h2, .book-block h3 { color: #fff; }
p { margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--olive); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--text); font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.96); }
.btn-lg { min-height: 58px; padding: 0 32px; font-size: 17px; }
.btn-solid { background: var(--olive); color: #fff; }
.btn-solid:hover { background: var(--olive-deep); }
.btn-soft { background: var(--tint); color: var(--ink); border-color: var(--line); }
.btn-soft:hover { background: #fff; border-color: var(--ink); }
.btn-white { background: #fff; color: var(--olive); }
.btn-white:hover { background: var(--leaf); }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--olive); font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 100% 2px no-repeat;
  transition: background-size .35s var(--ease);
}
.text-link::after { content: ""; width: 16px; height: 16px; margin-left: 8px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform .3s var(--ease); }
.text-link:hover { background-size: 0 2px; background-position: 100% calc(100% - 8px); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-bar { height: var(--header); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.brand img { height: 64px; width: auto; }
.nav { justify-self: center; }
.nav-list { display: flex; align-items: center; gap: clamp(4px, 1vw, 18px); }
.nav-btn, .nav-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px;
  background: none; border: 0; cursor: pointer; text-decoration: none; font-size: 16.5px; font-weight: 500; color: var(--ink);
  position: relative;
}
.nav-btn::after, .nav-link::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px; background: var(--lime);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-btn:hover::after, .nav-link:hover::after, .nav-btn[aria-expanded="true"]::after { transform: scaleX(1); }
@media (max-width: 1380px) {
  .nav-btn, .nav-link { font-size: 15.5px; padding: 0 7px; }
  .nav-list { gap: 2px; }
  .brand img { height: 56px; }
  .header-cta { padding: 0 22px; }
}
.nav-btn, .nav-link { white-space: nowrap; }
.chev { width: 8px; height: 8px; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.nav-btn[aria-expanded="true"] .chev { transform: translateY(2px) rotate(-135deg); }
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 18px); left: 50%; translate: -50% 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 24px 48px -24px rgba(22, 55, 70, .25);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
}
.has-drop.is-open .drop { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
.drop a { display: block; padding: 7px 0; text-decoration: none; font-size: 15px; color: var(--ink); transition: color .2s; }
.drop a:hover { color: var(--olive); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.drop-narrow { padding: 18px 28px; min-width: 280px; }
.drop-pair { left: auto; right: 0; translate: 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; min-width: 520px; }
.drop-pair ul + ul { border-left: 1px solid var(--line); padding-left: 32px; }
.drop-wide { position: fixed; top: var(--header); left: 0; right: 0; translate: 0 0; border-radius: 0 0 var(--r-lg) var(--r-lg); border-top: 0; }
.drop-inner { display: grid; grid-template-columns: 3fr 9fr; gap: 48px; padding-block: 36px 40px; }
.drop-lead-link { font-family: var(--display); font-size: 28px !important; letter-spacing: -0.02em; }
.drop-lead p { color: var(--muted); font-size: 15px; }
.drop-cols-3 { columns: 3; column-gap: 40px; }
.drop-groups { grid-template-columns: 1fr 2fr 1fr; }
.drop-groups .two { columns: 2; column-gap: 40px; }
.drop-head { font-family: var(--display); font-size: 20px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--lime); }
.header-cta { justify-self: end; }
.menu-btn { display: none; }

@media (max-width: 1199px) {
  .nav, .header-cta { display: none; }
  .brand img { height: 46px; }
  .header-bar { grid-template-columns: auto 1fr; }
  .menu-btn {
    display: inline-flex; justify-self: end; align-items: center; gap: 12px; min-height: 48px; padding: 0 18px 0 22px;
    border-radius: 999px; border: 1px solid var(--line); background: var(--tint); cursor: pointer; font-weight: 600;
  }
  .burger { width: 20px; height: 12px; position: relative; }
  .burger i { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
  .burger i:first-child { top: 1px; } .burger i:last-child { top: 9px; }
  .menu-btn[aria-expanded="true"] .burger i:first-child { top: 5px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .burger i:last-child { top: 5px; transform: rotate(-45deg); }
  .mobile-menu { position: fixed; inset: var(--header) 0 0 0; background: #fff; overflow-y: auto; border-top: 1px solid var(--line); opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .35s var(--ease); }
  .mobile-menu.is-open { opacity: 1; transform: none; }
  .mobile-inner { padding: 12px var(--gutter) 40px; }
  .mobile-menu details { border-bottom: 1px solid var(--line); }
  .mobile-menu summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 64px; font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary::after { content: "+"; font-family: var(--text); font-size: 26px; color: var(--olive); transition: transform .3s; }
  .mobile-menu details[open] summary::after { transform: rotate(45deg); }
  .mobile-menu details ul { padding-bottom: 16px; }
  .mobile-menu details a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 16px; }
  .mobile-plain { display: flex; align-items: center; min-height: 64px; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; }
  .mobile-foot { display: grid; gap: 12px; margin-top: 28px; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(20px, 3vw, 44px) clamp(20px, 2.4vw, 36px); }
.hero-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: clamp(28px, 3.2vw, 48px);
  grid-template-rows: auto minmax(0, 1fr);
  min-height: calc(100svh - var(--header) - clamp(40px, 5.4vw, 80px));
}
.hero-title {
  grid-column: 1 / 8; align-self: end;
  font-size: clamp(42px, 5.95vw, 104px); line-height: .96; letter-spacing: -0.045em; font-weight: 500;
}
.hl { color: var(--green); }
.nowrap { white-space: nowrap; }
@media (max-width: 600px) { .br-d { display: none; } }
.hero-side { grid-column: 8 / 13; padding-left: clamp(0px, 2vw, 40px); align-self: end; padding-bottom: .4em; }
.hero-sub { font-size: clamp(17px, 1.25vw, 21px); color: var(--muted); max-width: 40ch; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tile {
  grid-column: 1 / 5; grid-row: 2; position: relative; overflow: hidden; border-radius: var(--r-md);
  background: var(--olive); color: #fff; min-height: 340px; isolation: isolate;
}
.tile-shader { position: absolute; inset: 0; z-index: -1; }
.tile-shader canvas { width: 100% !important; height: 100% !important; display: block; }
.tile-facts { height: 100%; display: flex; flex-direction: column; padding: clamp(22px, 2.2vw, 36px); }
.tile-facts li:first-child { margin-bottom: auto; display: flex; flex-direction: column-reverse; }
.tf-small { font-size: 15px; font-weight: 500; opacity: .92; }
.tf-big { font-family: var(--display); font-size: clamp(72px, 7.4vw, 136px); line-height: .9; letter-spacing: -0.05em; }
.tile-facts li:not(:first-child) { display: flex; align-items: baseline; gap: 14px; padding-block: 12px; border-top: 1px solid rgba(255,255,255,.32); font-size: 16px; }
.tf-num { font-family: var(--display); font-size: 28px; min-width: 2.2em; letter-spacing: -0.03em; color: var(--lime); }
.hero-media { grid-column: 5 / 13; grid-row: 2; margin: 0; position: relative; border-radius: var(--r-md); overflow: hidden; min-height: 340px; background: var(--tint); }
.hero-media video, .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-media video { z-index: 1; opacity: 0; transition: opacity .8s; }
.hero-media video.is-playing { opacity: 1; }
.vid-toggle {
  position: absolute; z-index: 2; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.92); cursor: pointer; display: grid; place-items: center; transition: transform .25s var(--ease);
}
.vid-toggle:hover { transform: scale(1.06); }
.vt-icon { width: 12px; height: 14px; border-left: 4px solid var(--ink); border-right: 4px solid var(--ink); }
.vid-toggle[aria-pressed="true"] .vt-icon { width: 0; height: 0; border: 0; border-left: 13px solid var(--ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }

@media (max-width: 1023px) {
  .hero-grid { grid-template-rows: none; min-height: 0; row-gap: 24px; }
  .hero-title { grid-column: 1 / -1; }
  .hero-side { grid-column: 1 / -1; padding: 0; }
  .hero-media { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; min-height: 0; }
  .hero-tile { grid-column: 1 / -1; grid-row: auto; min-height: 0; }
  .tile-facts { display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 20px; }
  .tile-facts li:first-child { grid-column: 1 / -1; margin-bottom: 18px; }
}
@media (max-width: 600px) {
  .hero-title { font-size: clamp(36px, 10.1vw, 56px); }
  .hero-actions .btn { width: 100%; }
  .tile-facts { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 4 / 3; }
}

/* ---------- shared sections ---------- */
main > section { padding-block: clamp(84px, 9vw, 150px); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.photo-frame, .welcome-photo, .services-photo, .kids-photo, .reviews-photo { border-radius: var(--r-md); overflow: hidden; background: var(--tint); }
.welcome-photo img, .services-photo img, .kids-photo img, .reviews-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.welcome-photo:hover img, .services-photo:hover img, .kids-photo:hover img, .reviews-photo:hover img { transform: scale(1.025); }
.lead { font-family: var(--display); font-size: clamp(22px, 1.8vw, 30px); line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); margin-top: 28px; }
.ruled { margin: 28px 0 20px; border-bottom: 1px solid var(--line); }
.ruled li { padding: 14px 0; border-top: 1px solid var(--line); font-weight: 500; }

/* welcome */
.welcome-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.welcome-photo { grid-column: 1 / 8; aspect-ratio: 4 / 3; max-height: 78vh; }
.welcome-photo img { object-position: 40% 50%; }
.welcome-copy { grid-column: 9 / 13; color: var(--muted); }

/* team */
.team { background: var(--tint); overflow: clip; }
main > section.team { padding-block: clamp(36px, 3vw, 72px); }
.team-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.team-head h2 { grid-column: 1 / 7; font-size: clamp(44px, 4.4vw, 80px); }
.team-intro { grid-column: 8 / 13; color: var(--muted); }
.team-intro p { margin-bottom: 4px; }
.team-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(16px, 1.6vw, 28px); }
.chips { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; z-index: 1; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-weight: 500; font-size: 15px; transition: color .3s, border-color .3s;
}
.chip span { color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; transition: color .3s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { color: #fff; border-color: var(--olive); background: var(--olive); }
.chip.is-on span { color: var(--lime); }
.js .chips.has-glider .chip.is-on { background: transparent; }
.chip-glider { position: absolute; z-index: 0; top: 0; left: 0; height: 44px; border-radius: 999px; background: var(--olive); width: 0; opacity: 0; pointer-events: none; }
.chips.has-glider .chip-glider { opacity: 1; }
.rail-arrows { display: none; gap: 8px; }
.arrow {
  width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  display: grid; place-items: center; transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.arrow:hover { background: var(--olive); color: #fff; border-color: var(--olive); }
.arrow:active { transform: scale(.94); }
.roof { margin-top: clamp(10px, 1.2vw, 24px); height: clamp(24px, 2.6vw, 48px); }
.roof svg { width: 100%; height: 100%; overflow: visible; }
.roof-line { fill: none; stroke: var(--green); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.team-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 12px 14px; margin-top: 10px; }
.doc a { display: block; text-decoration: none; }
.doc-img { display: block; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: #dfeaec; }
.doc-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .6s var(--ease); }
.doc a:hover .doc-img img { transform: scale(1.04); }
.doc-name { display: block; margin-top: 10px; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.doc a:hover .doc-name { color: var(--olive); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc-role { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.doc.is-out { display: none; }
@media (min-width: 1024px) {
  .doc a { position: relative; border-radius: var(--r-sm); overflow: hidden; }
  .doc-img { aspect-ratio: 4 / 5; border-radius: 0; }
  .doc-img img { object-position: 50% 12%; }
  .doc a::before { content: ""; position: absolute; inset: 45% 0 0; z-index: 1; background: linear-gradient(transparent, rgba(16, 38, 47, .86) 72%); pointer-events: none; }
  .doc-name, .doc-role { position: absolute; z-index: 2; left: 10px; right: 8px; color: #fff; }
  .doc-name { bottom: 30px; margin: 0; font-size: 13px; line-height: 1.22; }
  .doc-role { bottom: 10px; margin: 0; font-size: 11.5px; line-height: 1.25; color: #dfe9c4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .doc a:hover .doc-name { color: #fff; text-decoration-color: var(--lime); }
  .doc a:not(:has(.doc-role)) .doc-name { bottom: 12px; }
}
@media (max-width: 1279px) { .team-grid { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
@media (max-width: 1023px) {
  .team-head h2, .team-intro { grid-column: 1 / -1; }
  .team-intro { margin-top: 16px; }
  .team-tools { flex-direction: column; align-items: stretch; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .chip-glider { display: none; }
  .js .chips.has-glider .chip.is-on { background: var(--olive); }
  .rail-arrows { display: flex; justify-content: flex-end; }
  .team-grid {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .team-grid::-webkit-scrollbar { display: none; }
  .doc { flex: 0 0 clamp(150px, 30vw, 220px); scroll-snap-align: start; }
}
@media (max-width: 600px) { .doc { flex-basis: 44vw; } }

/* services */
.services-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.services-photo { grid-column: 1 / 6; aspect-ratio: 4 / 5; max-height: 80vh; }
.services-photo img { object-position: 30% 50%; }
.services-copy { grid-column: 7 / 13; }
.services-copy > p { color: var(--muted); max-width: 46ch; margin-top: 20px; }
.service-rows { margin-top: 28px; border-bottom: 1px solid var(--line); }
.service-rows a {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 76px; padding-block: 14px;
  border-top: 1px solid var(--line); text-decoration: none;
  font-family: var(--display); font-size: clamp(22px, 2vw, 32px); letter-spacing: -0.02em; line-height: 1.15;
  transition: color .3s;
}
.service-rows a::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.service-rows a span { transition: transform .4s var(--ease); }
.service-rows i { flex: none; width: 24px; height: 24px; color: var(--olive); transition: transform .4s var(--ease); }
.service-rows a:hover { color: var(--olive); }
.service-rows a:hover::after { transform: scaleX(1); }
.service-rows a:hover span { transform: translateX(8px); }
.service-rows a:hover i { transform: translateX(-4px); }

/* kids */
.kids { background: var(--leaf); }
.kids-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.kids-copy { grid-column: 1 / 6; }
.kids-copy > p { color: var(--muted); margin-top: 20px; }
.kids-photo { grid-column: 7 / 13; aspect-ratio: 4 / 3; max-height: 78vh; }
.kids-points { margin: 26px 0 30px; border-bottom: 1px solid #d9e6bd; }
.kids-points li { padding: 16px 0; border-top: 1px solid #d9e6bd; color: var(--muted); font-size: 16px; }
.kids-points strong { color: var(--ink); font-weight: 600; }
.kids-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.reviews-photo { grid-column: 1 / 6; aspect-ratio: 1; max-height: 78vh; }
.reviews-photo img { object-position: 52% 30%; }
.reviews-copy { grid-column: 7 / 13; }
.reviews-copy > .muted { margin-top: 16px; }
.quotes { display: grid; margin-top: 36px; }
.quote { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ease), visibility 0s .6s; }
.quote.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s .1s, transform .6s .1s var(--ease); }
.quote blockquote { margin: 0; font-family: var(--display); font-size: clamp(24px, 2.2vw, 36px); line-height: 1.22; letter-spacing: -0.02em; }
.quote figcaption { margin-top: 18px; font-weight: 600; color: var(--olive); }
.quote-nav { display: flex; align-items: center; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.q-progress { display: flex; gap: 6px; margin-right: 14px; }
.q-progress i { width: 28px; height: 3px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.q-progress i::after { content: ""; position: absolute; inset: 0; background: var(--olive); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.q-progress i.is-on::after, .q-progress i.is-past::after { transform: scaleX(1); }
.quote-nav .text-link { margin-left: auto; }

/* visit */
.visit { background: var(--tint); }
.visit-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: stretch; }
.visit-copy { grid-column: 1 / 6; color: var(--muted); }
.visit-address { font-family: var(--display); font-size: clamp(22px, 1.8vw, 30px); color: var(--ink); letter-spacing: -0.015em; margin-top: 24px; }
.hours { margin: 26px 0; border-bottom: 1px solid var(--line); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.hours dt { font-weight: 600; color: var(--ink); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours .is-today dt::after { content: "Today"; margin-left: 10px; padding: 2px 10px; border-radius: 999px; background: var(--olive); color: #fff; font-size: 12.5px; font-weight: 600; vertical-align: 2px; }
.visit-map { grid-column: 7 / 13; border-radius: var(--r-md); overflow: hidden; min-height: 520px; background: #dfeaec; }
.visit-map iframe { width: 100%; height: 100%; min-height: 520px; border: 0; display: block; }

/* memberships */
main > section.orgs { padding-block: 56px; border-block: 1px solid var(--line); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: drift 60s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track li { padding-inline: clamp(28px, 3.4vw, 56px); }
.marquee-track a { display: flex; align-items: center; height: 64px; opacity: .85; transition: opacity .3s, transform .3s var(--ease); }
.marquee-track a:hover { opacity: 1; transform: translateY(-2px); }
.marquee-track img { height: 56px; width: auto; max-width: 220px; object-fit: contain; filter: brightness(0); opacity: .62; transition: opacity .3s; }
.marquee-track a:hover img { opacity: .9; }
@keyframes drift { to { transform: translateX(-50%); } }

/* book */
main > section.book { padding-block: clamp(40px, 5vw, 80px) clamp(60px, 7vw, 110px); }
.book-block {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px;
  background: var(--olive); color: #fff; border-radius: var(--r-lg); padding: clamp(32px, 5.4vw, 88px);
}
.book-copy { grid-column: 1 / 6; }
.book-copy h2 { font-size: clamp(40px, 4.6vw, 80px); }
.book-addr { font-family: var(--display); font-size: clamp(22px, 1.8vw, 30px); letter-spacing: -0.015em; margin-top: 28px; }
.book-note { opacity: .9; font-size: 15.5px; max-width: 44ch; margin-block: 24px 32px; }
.on-dark { color: #fff; font-weight: 600; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.book-form { grid-column: 7 / 13; display: grid; gap: 16px; align-content: start; }
.book-form h3 { font-size: clamp(26px, 2.2vw, 36px); margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-size: 14.5px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; font-weight: 400; color: #fff; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.4); border-radius: var(--r-sm); padding: 14px 16px; min-height: 52px; transition: border-color .25s, background-color .25s;
}
.field textarea { resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgba(255,255,255,.75); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); background: rgba(255,255,255,.14); }
.field.has-error input, .field.has-error textarea { border-color: #ffd7c2; }
.field-error { color: #ffe3d4; font-size: 13.5px; }
.book-form .btn { justify-self: start; }
.form-status { margin: 0; font-size: 15.5px; min-height: 1.5em; }
.form-status.is-done { background: rgba(255,255,255,.12); padding: 14px 18px; border-radius: var(--r-sm); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 32px; color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 60px; width: auto; margin-bottom: 18px; }
.footer-brand a, .footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-brand a:hover, .footer-links a:hover { color: var(--olive); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer-base { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; }
.footer-base p { max-width: 90ch; margin: 0; }
.footer-base a { color: var(--ink); }
.credit { white-space: nowrap; }

/* ---------- responsive stacks ---------- */
@media (max-width: 1023px) {
  .welcome-photo, .welcome-copy, .services-photo, .services-copy, .kids-copy, .kids-photo, .reviews-photo, .reviews-copy, .visit-copy, .visit-map, .book-copy, .book-form { grid-column: 1 / -1; }
  .welcome-copy, .services-copy, .reviews-copy, .visit-map { margin-top: 36px; }
  .kids-photo { order: -1; margin-bottom: 36px; }
  .services-photo { aspect-ratio: 16 / 10; }
  .reviews-photo { aspect-ratio: 16 / 10; }
  .visit-map, .visit-map iframe { min-height: 400px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-base { flex-direction: column; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .book-copy .btn, .book-form .btn, .kids-actions .btn { width: 100%; }
  .quote-nav .text-link { margin-left: 0; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 8px; }
  .hours div { flex-direction: column; gap: 2px; }
}

/* ---------- motion helpers ---------- */
.split-line { overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; row-gap: 24px; }
  .marquee-track li[aria-hidden="true"] { display: none; }
}
