:root {
  --cream: #f8f1ec;
  --cream-soft: #fcf8f5;
  --paper: #fffdfb;
  --brown: #7b482d;
  --brown-deep: #4e2d20;
  --ink: #171512;
  --muted: #716a64;
  --sage: #cbd6c1;
  --sage-deep: #344137;
  --plum: #261920;
  --line: rgba(23, 21, 18, 0.16);
  --line-light: rgba(255, 255, 255, 0.22);
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: min(1320px, calc(100vw - 48px));
  --header-height: 92px;
  --radius: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
address { font-style: normal; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  text-decoration: none;
}
.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1320px) / 2));
  transition: background-color .3s ease, border-color .3s ease, height .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  height: 72px;
  background: rgba(248, 241, 236, 0.88);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}
.brand { width: 154px; text-decoration: none; }
.brand img { width: 100%; height: auto; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav > a:not(.button) {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .04em;
  position: relative;
}
.main-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transition: right .25s ease;
}
.main-nav > a:not(.button):hover::after { right: 0; }
.menu-button { display: none; }

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brown);
  border-radius: var(--radius);
  padding: 0 28px;
  color: white;
  background: var(--brown);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .045em;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--brown-deep); }
.button--small { min-height: 42px; padding-inline: 20px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
}
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translate(3px, 3px); }
.text-link--light { color: white; }

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  align-items: center;
  gap: 5vw;
  padding: calc(var(--header-height) + 80px) max(24px, calc((100vw - 1320px) / 2)) 72px;
  background:
    radial-gradient(circle at 76% 18%, rgba(203, 214, 193, .74), transparent 28%),
    radial-gradient(circle at 16% 78%, rgba(255, 255, 255, .78), transparent 30%),
    var(--cream);
}
.hero__content { position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  margin: 0 0 24px;
  color: var(--brown);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow--light { color: #d8c9bc; }
.hero h1,
.section h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
}
.hero h1 { margin: 0; font-size: clamp(64px, 8vw, 132px); max-width: 920px; }
.hero__lead { max-width: 630px; margin: 36px 0 0; color: var(--muted); font-size: clamp(18px, 1.55vw, 23px); line-height: 1.55; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 30px; margin-top: 42px; }
.hero__signature {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-bottom: 8vh;
  opacity: .94;
}
.hero__signature img { width: min(43vw, 640px); transform: rotate(-3deg); filter: drop-shadow(0 28px 45px rgba(78, 45, 32, .12)); }
.hero__index,
.section__index {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero__index { position: absolute; inset: auto max(24px, calc((100vw - 1320px) / 2)) 26px; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.hero__glow--one { width: 24vw; height: 24vw; min-width: 260px; min-height: 260px; right: 4vw; top: 16vh; border: 1px solid rgba(123,72,45,.18); }
.hero__glow--two { width: 11vw; height: 11vw; min-width: 120px; min-height: 120px; right: 22vw; bottom: 8vh; background: rgba(123,72,45,.08); }

.section { padding: 120px max(24px, calc((100vw - 1320px) / 2)); }
.section__index { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.section__index--light { border-color: var(--line-light); }
.section h2 { margin: 0; font-size: clamp(48px, 6vw, 96px); }

.statement {
  min-height: 90svh;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  grid-template-rows: auto 1fr;
  column-gap: 10vw;
}
.statement .section__index { grid-column: 1 / -1; }
.statement__content { align-self: center; max-width: 920px; padding: 80px 0; }
.statement__content p:last-child { max-width: 630px; margin: 36px 0 0 auto; color: var(--muted); font-size: 19px; }
.statement__orb {
  width: min(360px, 30vw);
  aspect-ratio: 1;
  align-self: center;
  justify-self: end;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  color: var(--brown);
  font-family: var(--serif);
  font-size: 24px;
}
.statement__orb::before,
.statement__orb::after { content: ""; position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.statement__orb::before { inset: 13%; }
.statement__orb::after { inset: 27%; }
.statement__orb span { position: absolute; }
.statement__orb span:nth-child(1) { top: 12%; }
.statement__orb span:nth-child(2) { bottom: 12%; left: 3%; transform: rotate(-62deg); }
.statement__orb span:nth-child(3) { bottom: 13%; right: -8%; transform: rotate(56deg); }

.section--dark { background: var(--plum); color: white; }
.experience__intro { display: grid; grid-template-columns: .6fr 1.4fr; gap: 8vw; align-items: end; padding: 90px 0; }
.experience__intro .eyebrow { align-self: start; }
.experience__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.feature-card { min-height: 350px; padding: 34px; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); display: flex; flex-direction: column; }
.feature-card__number { color: #c8b9af; font-size: 11px; letter-spacing: .18em; }
.feature-card h3 { margin: auto 0 16px; font-family: var(--serif); font-size: 38px; font-weight: 400; line-height: 1.05; }
.feature-card p { margin: 0; color: #c8c1c4; max-width: 340px; }

.specialties__heading { display: grid; grid-template-columns: .6fr 1.4fr; gap: 8vw; align-items: start; padding: 90px 0 70px; }
.specialty-list { border-top: 1px solid var(--line); }
.specialty {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 74px;
  align-items: center;
  gap: 24px;
  min-height: 180px;
  border-bottom: 1px solid var(--line);
  transition: padding .3s ease, background-color .3s ease;
}
.specialty:hover { padding-inline: 24px; background: rgba(255,255,255,.42); }
.specialty__number { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--brown); }
.specialty h3 { margin: 0; font-family: var(--serif); font-size: clamp(38px, 4vw, 64px); font-weight: 400; line-height: 1; }
.specialty p { max-width: 600px; margin: 16px 0 0; color: var(--muted); }
.specialty__icon { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--brown); font-size: 28px; }

.section--sage { background: var(--sage); }
.team__heading { max-width: 980px; padding: 90px 0 70px; }
.team__heading > p:last-child { max-width: 650px; margin-top: 32px; color: var(--sage-deep); }
.team__preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.doctor-card { min-width: 0; }
.doctor-card__portrait {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, #8c9c87, #d8e1d1);
  overflow: hidden;
  position: relative;
}
.doctor-card__portrait::before {
  content: "";
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  box-shadow: 0 160px 0 70px rgba(255,255,255,.27);
}
.doctor-card__portrait span { position: absolute; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: rgba(23,21,18,.55); }
.doctor-card__portrait--alt { background: linear-gradient(155deg, #a9b8bc, #e3e9e6); }
.doctor-card__portrait--warm { background: linear-gradient(155deg, #b99782, #ead7ca); }
.doctor-card__role { margin: 22px 0 7px; color: var(--brown); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.doctor-card h3 { margin: 0; font-family: var(--serif); font-size: 32px; font-weight: 400; }
.doctor-card > p:last-child { margin: 8px 0 0; color: var(--sage-deep); font-size: 14px; }

.location { display: grid; grid-template-columns: 1.2fr .8fr; gap: 9vw; }
.location .section__index { grid-column: 1 / -1; }
.location__content { padding-top: 90px; }
.location__content p:not(.eyebrow) { max-width: 580px; margin: 32px 0; color: var(--muted); font-size: 18px; }
.location__panel { align-self: end; border-top: 1px solid var(--line); margin-top: 90px; }
.location__panel > div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.location__panel p { margin: 0; }
.location__label { color: var(--brown); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }

.closing { min-height: 70svh; position: relative; overflow: hidden; display: grid; place-items: center; padding: 90px 24px; color: white; background: var(--brown-deep); text-align: center; }
.closing__mark { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -54%); font-family: var(--serif); font-style: italic; font-size: min(76vw, 900px); line-height: 1; color: rgba(255,255,255,.035); }
.closing__content { position: relative; z-index: 1; max-width: 1050px; }
.closing__content p { margin: 0 0 46px; font-family: var(--serif); font-size: clamp(50px, 7vw, 108px); line-height: .98; letter-spacing: -.045em; }

.site-footer { display: flex; justify-content: space-between; align-items: end; gap: 50px; padding: 56px max(24px, calc((100vw - 1320px) / 2)); background: var(--cream-soft); }
.site-footer__brand { width: 210px; }
.site-footer__meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px 30px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.configuration-notice { position: fixed; z-index: 200; right: 20px; bottom: 20px; max-width: 420px; padding: 16px 20px; color: white; background: var(--ink); box-shadow: 0 16px 50px rgba(0,0,0,.22); font-size: 13px; }
.configuration-notice code { color: #e4cdbd; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.65,.2,1), transform .8s cubic-bezier(.2,.65,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  :root { --header-height: 78px; }
  .site-header { padding-inline: 22px; }
  .brand { width: 132px; }
  .menu-button {
    display: grid;
    gap: 7px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 0;
    background: transparent;
  }
  .menu-button span:not(.sr-only) { display: block; width: 24px; height: 1px; background: var(--ink); transition: transform .2s ease; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 24px;
    background: var(--cream);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s;
  }
  .main-nav.is-open { transform: none; visibility: visible; }
  .main-nav > a:not(.button) { font-family: var(--serif); font-size: 38px; letter-spacing: -.02em; }
  .main-nav .button { margin-top: auto; width: 100%; }

  .hero { grid-template-columns: 1fr; padding-top: 140px; }
  .hero__content { align-self: end; }
  .hero__signature { align-self: start; justify-self: end; margin: 30px 0 70px; }
  .hero__signature img { width: min(80vw, 560px); }
  .statement { grid-template-columns: 1fr; }
  .statement__orb { justify-self: center; width: min(350px, 70vw); margin-bottom: 30px; }
  .experience__intro,
  .specialties__heading { grid-template-columns: 1fr; gap: 20px; }
  .experience__grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 280px; }
  .team__preview { grid-template-columns: 1fr 1fr; }
  .location { grid-template-columns: 1fr; }
  .location__panel { margin-top: 0; }
}

@media (max-width: 640px) {
  :root { --container: calc(100vw - 36px); }
  .section { padding: 88px 18px; }
  .hero { padding-inline: 18px; padding-bottom: 54px; }
  .hero h1 { font-size: clamp(58px, 18vw, 86px); }
  .hero__lead { font-size: 17px; }
  .hero__actions { align-items: stretch; flex-direction: column; gap: 22px; }
  .hero__actions .button { width: 100%; }
  .hero__actions .text-link { align-self: flex-start; }
  .hero__index { inset-inline: 18px; }
  .hero__glow--one { right: -120px; }
  .statement__content { padding: 60px 0; }
  .statement__content p:last-child { font-size: 17px; }
  .experience__intro,
  .specialties__heading,
  .team__heading,
  .location__content { padding-top: 60px; }
  .specialty { grid-template-columns: 38px 1fr; padding: 24px 0; }
  .specialty:hover { padding-inline: 0; }
  .specialty__icon { display: none; }
  .specialty h3 { font-size: 42px; }
  .team__preview { grid-template-columns: 1fr; }
  .location__panel > div { grid-template-columns: 1fr; gap: 8px; }
  .site-footer { align-items: flex-start; flex-direction: column; padding-inline: 18px; }
  .site-footer__meta { justify-content: flex-start; flex-direction: column; }
}

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