:root {
  --porcelain: #F3F6F9;
  --blue: #2C67AE;
  --blue-deep: #1F4F8A;
  --sky: #D6E6F3;
  --ink: #2A2421;
  --ink-soft: #5B5450;
  --backdrop: #57524F;
  --display: "Marcellus", "Optima", "Candara", serif;
  --text: "Figtree", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-weight: 400; margin: 0; }
h1, h2 { font-family: var(--display); letter-spacing: -.01em; line-height: 1.05; }
h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); }
h3 { font: 600 1.0625rem/1.35 var(--text); }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff; text-decoration: none;
  font: 600 1rem/1 var(--text); padding: .8em 1.3em; border-radius: 999px;
}
.btn:hover { background: var(--blue-deep); color: #fff; }
.btn-lg { font-size: 1.125rem; padding: 1em 1.6em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 32px 0 0; }
.tel-lg { font-weight: 600; font-size: 1.125rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.tel-lg:hover { color: var(--blue); }
.more { font-weight: 600; }

/* header */
.top {
  position: relative; background: #fff;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--gutter);
}
.brand img { width: 214px; height: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a, .tel { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover, .tel:hover { color: var(--blue); }
.top-actions { display: flex; align-items: center; gap: 18px; }
.tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.tel svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* hero: the photo's white wall melts into the page */
.hero {
  position: relative; min-height: min(calc(100vh - 92px), 860px);
  display: grid; align-items: center;
  overflow: hidden; background: #fff;
}
.hero-photo {
  position: absolute; top: 0; right: 0; height: 100%; width: 64%;
  object-fit: cover; object-position: 30% 30%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #fff 36%, rgba(255,255,255,.8) 44%, rgba(255,255,255,0) 56%);
}
.hero-text { position: relative; z-index: 2; padding: 56px var(--gutter) 72px; max-width: 820px; }
.hero h1 { font-size: clamp(3.4rem, 1.5rem + 6vw, 7.2rem); line-height: .95; letter-spacing: -.02em; color: var(--ink); }
.lede { font-size: 1.25rem; line-height: 1.5; max-width: 30em; margin-top: 28px; color: var(--ink); }
.hero-facts { margin-top: 36px; font-size: .98rem; color: var(--ink-soft); line-height: 1.7; }
.hero-facts a { color: var(--ink); text-decoration: none; border-bottom: 1px solid #c9c2bd; }
.hero-facts strong { font-weight: 600; }

/* results */
.results { padding: clamp(72px, 9vw, 140px) var(--gutter); }
.results-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.results-head p { max-width: 34em; margin: 0; color: var(--ink-soft); }
.shot { position: relative; overflow: hidden; background: #ddd; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot span {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(255,255,255,.92); color: var(--ink);
  font-size: .85rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.case { margin: 0; }
.case-big { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pair .shot { aspect-ratio: 4 / 5; }
.pair .shot img { object-position: 50% 62%; }
.case-big figcaption { padding-bottom: 8px; max-width: 30em; }
.case-big h3 { font: 400 clamp(1.6rem, 1.1rem + 1.2vw, 2.2rem)/1.15 var(--display); margin-bottom: 16px; }
.cases-small { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; }
.stack { display: grid; gap: 6px; }
.stack .shot { aspect-ratio: 5 / 3; }
.cases-small figcaption { padding-top: 16px; }
.cases-small h3 { margin-bottom: 6px; }
.cases-small p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* the team wall: twelve portraits on one gray, edge to edge */
.team { background: var(--backdrop); color: #fff; }
.team-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px 64px;
  padding: clamp(64px, 8vw, 120px) var(--gutter) 56px; align-items: start;
}
.team-intro blockquote { margin: 0; }
.team-intro blockquote p { font: 400 clamp(1.25rem, 1rem + .7vw, 1.6rem)/1.45 var(--display); margin: 0 0 14px; max-width: 34em; }
.team-intro footer { font-size: .98rem; color: #E4DEDA; }
.wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.wall li { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.wall img { width: 100%; height: 100%; object-fit: cover; }
.wall p {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 40px 16px 14px; font-size: .92rem; line-height: 1.3; color: #D9D4D0;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.wall b { display: block; color: #fff; font-weight: 600; font-size: 1rem; }
.team-note { padding: 40px var(--gutter) clamp(56px, 7vw, 96px); max-width: 64em; margin: 0; font-size: 1.0625rem; color: #EEE9E6; }
.team-note a { color: #fff; font-weight: 600; }

/* photo stories */
.story { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.story-photo { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.story-text { padding: clamp(56px, 7vw, 112px) var(--gutter); align-self: center; max-width: 680px; }
.story-text h2 { margin-bottom: 28px; }
.kids .story-photo { object-position: 60% 40%; }
.nervous { background: var(--sky); }
.nervous .story-photo { object-position: 50% 50%; }
.pull { margin: 32px 0; padding-left: 20px; border-left: 3px solid var(--blue); }
.pull p { font-size: 1.125rem; font-style: italic; margin-bottom: 6px; }
.pull footer { font-size: .95rem; color: var(--ink-soft); }

/* services */
.services { padding: clamp(72px, 9vw, 140px) var(--gutter); }
.services h2 { margin-bottom: 48px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.svc-grid h3 { color: var(--ink-soft); font-weight: 500; margin-bottom: 18px; }
.svc-grid ul { list-style: none; margin: 0; padding: 0; }
.svc-grid li { margin-bottom: 18px; line-height: 1.5; color: var(--ink-soft); max-width: 30em; }
.svc-grid li span { display: block; }
.svc-grid li a { display: block; font: 400 1.45rem/1.2 var(--display); color: var(--ink); text-decoration: none; margin-bottom: 2px; }
.svc-grid li a:hover { color: var(--blue); }

/* patients' words */
.words { background: #fff; padding: clamp(72px, 9vw, 140px) var(--gutter); }
.big-quote { margin: 0 0 64px; max-width: 1080px; }
.big-quote p { font: 400 clamp(1.7rem, 1.1rem + 1.9vw, 2.9rem)/1.2 var(--display); letter-spacing: -.01em; margin-bottom: 20px; }
.words footer { color: var(--ink-soft); font-size: 1rem; }
.quote-row { display: grid; grid-template-columns: minmax(0, 46em) auto; justify-content: space-between; gap: 48px; align-items: start; }
.quote-row blockquote { margin: 0; }
.quote-row blockquote p { font-size: 1.125rem; margin-bottom: 10px; }
.google { display: grid; text-decoration: none; color: var(--ink); max-width: 13em; }
.google strong { font: 400 4.5rem/1 var(--display); color: var(--blue); }
.google span { font-size: 1rem; }
.google:hover span { text-decoration: underline; }

/* paying */
.paying {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px 80px;
  padding: clamp(72px, 9vw, 120px) var(--gutter);
}
.paying h2 { margin-bottom: 28px; }
.paying p { max-width: 36em; }
.pay-list { list-style: none; margin: 0; padding: 0; align-self: end; }
.pay-list li { padding: 18px 0; border-top: 1px solid #CBD6E0; }
.pay-list b { display: block; font-weight: 600; }

/* book */
.book { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--blue-deep); color: #fff; }
.book-photo { width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: 30% 50%; }
.book-text { padding: clamp(56px, 7vw, 104px) var(--gutter); }
.book-text h2 { margin-bottom: 20px; }
.book .btn { background: #fff; color: var(--blue-deep); }
.book .btn:hover { background: var(--sky); }
.book .tel-lg { color: #fff; }
.book a { color: #fff; }
.book :focus-visible { outline-color: #fff; }
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 52px; }
.visit h3 { color: #BCD3EC; font-weight: 500; margin-bottom: 8px; }
.hours { border-collapse: collapse; }
.hours th { text-align: left; font-weight: 400; padding: 0 20px 4px 0; }
.hours td { padding: 0 0 4px; }
.areas { margin-top: 28px; color: #BCD3EC; }

/* reading */
.reading { padding: 64px var(--gutter); display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: baseline; }
.reading h2 { font-size: 2rem; }
.reading ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.reading a { font: 400 1.3rem/1.3 var(--display); color: var(--ink); text-decoration: none; }
.reading a:hover { color: var(--blue); text-decoration: underline; }

/* footer */
.foot {
  background: var(--ink); color: #D9D2CD;
  padding: 48px var(--gutter) 56px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px 56px; align-items: start; font-size: .98rem;
}
.foot img { width: 240px; height: auto; }
.foot p { margin: 0 0 4px; }
.foot a { color: #fff; }
.foot nav { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 32px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }

.mobile-bar { display: none; }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .top-actions { margin-left: auto; }
  .wall { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
  body { padding-bottom: 72px; }
  .top { padding: 14px 20px; }
  .brand img { width: 150px; }
  .top .tel span { display: none; }
  .top .tel { width: 44px; height: 44px; justify-content: center; border-radius: 50%; border: 1.5px solid #D5DEE6; }

  .hero { min-height: 0; display: block; background: var(--porcelain); }
  .hero::before { display: none; }
  .hero-photo { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3.2; object-position: 62% 30%; }
  .hero-text { padding: 32px 20px 56px; }
  .hero h1 { font-size: clamp(3rem, 13vw, 4.4rem); }
  .lede { font-size: 1.125rem; margin-top: 20px; }
  .actions { margin-top: 26px; }

  .results-head, .case-big, .team-intro, .paying, .reading { grid-template-columns: 1fr; }
  .case-big { gap: 24px; }
  .cases-small { grid-template-columns: 1fr; gap: 48px; margin-top: 56px; }
  .wall { grid-template-columns: repeat(3, 1fr); }
  .wall p { padding: 28px 10px 10px; font-size: .8rem; }
  .wall b { font-size: .88rem; }

  .story, .book { grid-template-columns: 1fr; }
  .story-photo, .book-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .nervous .story-photo { order: -1; }
  .story-text { padding: 48px 20px 64px; }

  .svc-grid, .quote-row, .reading ul { grid-template-columns: 1fr; gap: 32px; }
  .visit { grid-template-columns: 1fr; gap: 24px; }
  .foot { grid-template-columns: 1fr; }

  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
    gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(243,246,249,.96); border-top: 1px solid #D5DEE6;
  }
  .mobile-bar a { flex: 1; }
  .tel-m {
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--blue); border-radius: 999px; color: var(--blue);
    font-weight: 600; text-decoration: none; padding: .7em 1em;
  }
  .mobile-bar .btn { flex: .7; }
}

/* phone: the call/book bar arrives once the hero's own buttons have scrolled away */
@supports (animation-timeline: scroll()) {
  @media (max-width: 860px) {
    .mobile-bar {
      animation: bar-in linear both;
      animation-timeline: scroll(root);
      animation-range: 560px 640px;
    }
    @keyframes bar-in { from { transform: translateY(110%); } to { transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) { .mobile-bar { animation: none !important; } }
