/* Summit Pointe Dental. Format: appointment cards, calm and bright.
   Palette from their own building: shiplap white, slate walls, the green pylon sign (spruce),
   the red maple (maple). Type: Petrona (display) + Commissioner (text). */

:root {
  --shiplap: #F8F9F6;
  --card: #FFFFFF;
  --slate: #1F2D35;
  --wall: #4E5F68;
  --spruce: #1D5B52;
  --spruce-deep: #154640;
  --maple: #B3432D;
  --rule: #D6DDDC;
  --mist: #EEF2EF;
  --evergreen: #14302B;
  --frost: #E8EFEC;
  --lichen: #A9BDB7;

  --sa-accent: #1D5B52;
  --sa-accent-ink: #FFFFFF;

  --display: "Petrona", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(18px, 5vw, 72px);
  --r-card: 14px;
  --shadow-card: 0 1px 1px rgba(31, 45, 53, .05), 0 3px 8px rgba(31, 45, 53, .06), 0 22px 44px -22px rgba(31, 45, 53, .32);
  --shadow-lift: 0 1px 1px rgba(31, 45, 53, .05), 0 6px 14px rgba(31, 45, 53, .08), 0 32px 60px -26px rgba(31, 45, 53, .38);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--shiplap);
  color: var(--slate);
  font: 400 18px/1.62 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--spruce); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--maple); outline-offset: 3px; border-radius: 3px; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--slate);
  margin: 0;
  letter-spacing: -.004em;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5.4vw, 84px); line-height: 1.05; }
h2 { font-size: clamp(31px, 3.4vw, 52px); line-height: 1.1; }
h3 { font-size: clamp(23px, 1.8vw, 28px); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 66ch; }
ul, ol { padding-left: 1.2em; }
li { margin: .25em 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--slate); color: #fff; padding: 12px 18px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.lede { font-size: clamp(19px, 1.5vw, 21px); line-height: 1.55; color: var(--wall); }
.muted { color: var(--wall); }
.small { font-size: 15px; line-height: 1.5; }

/* ---------- buttons and actions ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  background: var(--spruce); color: #fff;
  border: 0; border-radius: 7px;
  font: 500 17px/1.2 var(--text); letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), inset 0 -2px 0 rgba(0, 0, 0, .14);
  transition: background-color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--spruce-deep); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline-color: var(--maple); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn--paper { background: var(--card); color: var(--spruce); box-shadow: inset 0 0 0 1.5px var(--spruce); }
.btn--paper:hover { background: var(--mist); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.tel-link { color: var(--slate); font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.tel-link:hover { color: var(--spruce); }

/* ---------- letterhead ---------- */
.letterhead {
  position: relative; z-index: 5;
  display: grid; grid-template-columns: auto auto 1fr; align-items: center;
  gap: 10px 26px;
  max-width: 1400px; margin: 0 auto;
  padding: 18px var(--gutter) 10px;
}
.brand { display: block; line-height: 0; border-radius: 6px; }
.brand img { width: 92px; height: auto; }
.imprint { margin: 0; font-size: 15px; line-height: 1.45; color: var(--wall); max-width: none; }
.imprint span { display: block; }
.imprint a { color: var(--slate); font-weight: 500; text-decoration: none; font-variant-numeric: lining-nums tabular-nums; }
.imprint a:hover { text-decoration: underline; }
.nav { justify-self: end; }
.nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px clamp(14px, 1.7vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a {
  display: inline-block; padding: 10px 0;
  font: 500 16px/1.2 var(--text); color: var(--slate); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--spruce); border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { color: var(--spruce); border-bottom-color: var(--spruce); }
.menu-btn {
  display: none; justify-self: end;
  min-height: 44px; padding: 0 18px;
  background: var(--mist); color: var(--slate);
  border: 0; border-radius: 7px; font-weight: 500; cursor: pointer;
}
.menu-btn:hover { background: #E2E9E5; }

.menu {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(31, 45, 53, .32);
  display: flex; justify-content: flex-end;
}
.menu[hidden] { display: none; }
.menu__card {
  width: min(460px, 100%); height: 100%; overflow-y: auto;
  background: var(--card); padding: 22px 26px 40px;
  box-shadow: -20px 0 60px rgba(31, 45, 53, .25);
}
.menu__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.menu__top img { width: 70px; }
.menu__close { min-height: 44px; padding: 0 18px; background: var(--mist); border: 0; border-radius: 7px; color: var(--slate); font-weight: 500; cursor: pointer; }
.menu ul { list-style: none; margin: 0 0 22px; padding: 0; }
.menu li { margin: 0; border-bottom: 1px solid var(--rule); }
.menu li a { display: block; padding: 13px 0; font: 400 27px/1.2 var(--display); color: var(--slate); text-decoration: none; }
.menu li a:hover, .menu li a[aria-current="page"] { color: var(--spruce); }
.menu__contact { font-size: 16px; color: var(--wall); }
.menu__contact .btn { margin: 6px 0 14px; width: 100%; }

/* ---------- the appointment card ---------- */
.appt {
  position: relative;
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: clamp(22px, 2.6vw, 36px);
}
.appt__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.appt__mark { width: 58px; height: auto; }
.appt__kicker { margin: 0; font-size: 15px; font-weight: 500; color: var(--wall); }
.appt__num {
  flex: none; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--maple); color: var(--maple);
  font: 400 24px/1 var(--display);
  transform: rotate(-9deg);
}
.appt__title { font-family: var(--display); font-weight: 400; letter-spacing: -.004em; font-size: clamp(25px, 2.2vw, 33px); line-height: 1.15; margin: 0 0 12px; text-wrap: balance; }
.appt__lede { color: var(--wall); margin: 0 0 14px; }
.appt__fields { margin: 0; display: grid; }
.appt__fields > div {
  display: grid; grid-template-columns: 6.3em 1fr; gap: 12px; align-items: baseline;
  padding: 9px 0 8px; border-bottom: 1px solid var(--rule);
}
.appt__fields > div:first-child { border-top: 1px solid var(--rule); }
.appt__fields dt { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--spruce); }
.appt__fields dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: 18px; line-height: 1.45; font-variant-numeric: lining-nums tabular-nums; }
.appt__fields dd a { color: var(--slate); }
.appt__fine { margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: var(--wall); }
.appt__actions { margin-top: 20px; }

/* the hero card keeps a real card's proportions and scales its type with its own width */
.appt--hero {
  container-type: inline-size;
  aspect-ratio: 3 / 2;
  width: min(540px, 92vw);
  margin: 0 auto;
  padding: clamp(16px, 4.6vw, 28px) clamp(18px, 5vw, 32px);
  display: flex; flex-direction: column;
  text-align: left;
}
.is-3d .appt--hero { min-height: 0; overflow: hidden; }
.appt--hero .appt__head { margin-bottom: 2.4cqw; }
.appt--hero .appt__mark { width: 10.5cqw; }
.appt--hero .appt__kicker { font-size: max(14px, 3.4cqw); }
.appt--hero .appt__title { font-size: 6.8cqw; margin-bottom: 2.6cqw; white-space: nowrap; }
.appt--hero .appt__fields > div { grid-template-columns: 19cqw 1fr; gap: 2.6cqw; padding: 1.25cqw 0 1.05cqw; }
.appt--hero .appt__fields dt { font-size: max(14px, 3.6cqw); white-space: nowrap; }
.appt--hero .appt__fields dd { font-size: max(14.5px, 3.9cqw); white-space: nowrap; }
.appt--hero .appt__fine { margin-top: auto; padding-top: 1.6cqw; font-size: max(14px, 3.3cqw); white-space: nowrap; }

/* ---------- home: hero ---------- */
.hero {
  position: relative; z-index: 2;
  text-align: center;
  padding: clamp(10px, 3vh, 40px) var(--gutter) clamp(40px, 7vh, 80px);
}
.hero h1 { font-size: clamp(40px, 4.5vw, 70px); max-width: 24ch; margin: 0 auto; }
.hero .lede { max-width: 58ch; margin: 14px auto 0; font-size: clamp(18px, 1.35vw, 20px); }
.hero__slot { margin: clamp(20px, 3.4vh, 40px) auto clamp(18px, 3vh, 32px); }
.hero .actions { justify-content: center; }
.hero__rating { margin: 18px auto 0; font-size: 16px; color: var(--wall); }
.hero__rating a { color: var(--wall); }

/* ---------- home: first visit ---------- */
.visit { position: relative; z-index: 2; padding: clamp(60px, 10vh, 120px) 0; }
.visit__pin { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.visit__intro { max-width: 520px; }
.visit__intro h2 { margin-bottom: 14px; }
.visit__progress { display: none; }
.visit__still { display: none; }
.visit__cards {
  list-style: none; margin: 44px auto 0; padding: 0 var(--gutter);
  max-width: var(--maxw);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 30px;
  counter-reset: none;
}
.visit__cards > li { margin: 0; }
@media (min-width: 1100px) {
  .visit__cards { grid-template-columns: repeat(6, 1fr); }
  .visit__cards > li { grid-column: span 2; }
  .visit__cards > li:nth-child(4) { grid-column: 2 / span 2; }
}
.visit__cards .appt { height: 100%; }

/* cards slide into place as they enter (JS adds .is-in); static without JS or with reduced motion */
.js .slide-in { opacity: 0; transform: translate3d(0, 34px, 0) rotate(1.6deg); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.js .slide-in:nth-child(even) { transform: translate3d(0, 34px, 0) rotate(-1.4deg); }
.js .slide-in.is-in { opacity: 1; transform: none; }

/* ---------- home: team ---------- */
.team { position: relative; z-index: 2; padding: clamp(40px, 8vh, 100px) 0; }
.team__pin { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.team__intro { max-width: 560px; }
.team__intro h2 { margin-bottom: 12px; }

/* portrait prints (the warm portrait grid) */
.prints {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 34px 24px;
}
.print { margin: 0; }
.print__paper {
  background: var(--card); padding: 12px 12px 0; border-radius: 4px;
  box-shadow: var(--shadow-card);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.print:hover .print__paper { transform: rotate(0deg) translateY(-4px); box-shadow: var(--shadow-lift); }
.print__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist); border-radius: 2px; }
.print__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.print__photo--type { display: grid; place-items: center; }
.print__photo--type img { width: 46%; height: auto; object-fit: contain; opacity: .9; }
.print__cap { padding: 12px 4px 14px; }
.print__name { margin: 0; font: 400 23px/1.2 var(--display); }
.print__role { margin: 2px 0 0; font-size: 15px; font-weight: 500; color: var(--wall); }
.print__bio { margin: 14px 2px 0; font-size: 16px; line-height: 1.58; color: var(--slate); }
.print__motto { margin: 8px 2px 0; font-size: 15px; color: var(--wall); }
.prints--about { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 44px 30px; }

/* ---------- proof ---------- */
.band { position: relative; z-index: 3; background: var(--shiplap); }
.band--mist { background: var(--mist); }
.section { padding-top: clamp(64px, 10vw, 128px); padding-bottom: clamp(64px, 10vw, 128px); }
.section__head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head h2 { margin-bottom: 12px; }

.proof { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
.stamp { text-align: left; }
.stamp__score { margin: 0; font: 400 clamp(88px, 10vw, 136px)/.9 var(--display); color: var(--slate); letter-spacing: -.02em; }
.stars { display: inline-flex; gap: 3px; color: var(--maple); font-size: 20px; letter-spacing: 0; line-height: 1; }
.stamp h2 { font-size: clamp(26px, 2.4vw, 34px); margin: 14px 0 12px; }
.stamp p { font-size: 16px; }
.stamp .stamp__score { font: 400 clamp(88px, 10vw, 136px)/.9 var(--display); margin: 4px 0 8px; }
.proof .stamp { position: sticky; top: 24px; }
.stamp .actions { margin-top: 18px; gap: 10px 18px; }
.notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
.note { margin: 0; }
.note blockquote { margin: 0; }
.note blockquote p { font-size: 17px; line-height: 1.6; margin: 0 0 .7em; }
.note figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--wall); }
.note figcaption strong { color: var(--slate); font-weight: 500; }

.creds { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 38px; margin-top: clamp(40px, 6vw, 70px); padding-top: 28px; border-top: 1px solid var(--rule); }
.creds p { margin: 0; font-size: 15px; color: var(--wall); max-width: 36ch; }
.creds img { height: 38px; width: auto; opacity: .78; }
.creds img.creds__wide { height: 22px; }

/* ---------- services (ruled rows) ---------- */
.rows { border-top: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: minmax(220px, 3fr) 5fr; gap: 16px 40px;
  padding: 26px 0 24px; border-bottom: 1px solid var(--rule);
}
.row h3 { font-size: clamp(24px, 2vw, 30px); }
.row p { margin: 6px 0 0; font-size: 16px; color: var(--wall); }
.row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 12px; align-content: start; }
.row li { margin: 0; }
.row li a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--card); border-radius: 8px; box-shadow: 0 0 0 1px var(--rule);
  color: var(--slate); text-decoration: none; font-weight: 500; font-size: 16px;
  transition: box-shadow .2s ease, color .2s ease;
}
.row li a:hover { color: var(--spruce); box-shadow: 0 0 0 1.5px var(--spruce), 0 8px 18px -10px rgba(31, 45, 53, .4); }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan .appt__title { font-size: clamp(24px, 2vw, 29px); }
.plan__price { margin: 6px 0 2px; font: 400 clamp(46px, 4vw, 60px)/1 var(--display); color: var(--slate); }
.plan__price span { font: 500 16px/1.3 var(--text); color: var(--wall); margin-left: 6px; }
.plan__year { margin: 0 0 16px; font-size: 16px; color: var(--wall); }
.plan ul { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--rule); }
.plan li { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.45; }
.plan .appt__fine { margin-top: auto; padding-top: 6px; }
.plan .btn { margin-top: 16px; align-self: flex-start; }
.insurers { margin: 0 0 30px; }

/* ---------- where (visit card + map) ---------- */
.where { display: grid; grid-template-columns: minmax(300px, 520px) 1fr; gap: clamp(24px, 3vw, 44px); align-items: stretch; }
.map { min-height: 420px; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-card); background: var(--mist); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }
.areas { margin-top: 18px; font-size: 16px; color: var(--wall); }

/* ---------- inner pages ---------- */
.crumbs { max-width: 1400px; margin: 0 auto; padding: 6px var(--gutter) 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 15px; color: var(--wall); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.crumbs a { color: var(--wall); }

.page-head { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.page-head__photo { height: clamp(240px, 44vh, 500px); border-radius: 18px; overflow: hidden; background: var(--mist); }
.page-head__photo img { width: 100%; height: 100%; object-fit: cover; }
.page-head .appt {
  position: relative; z-index: 2;
  width: min(680px, 100%);
  margin: calc(clamp(240px, 44vh, 500px) * -.36) 0 0 clamp(0px, 5vw, 88px);
}
.page-head h1 { font-size: clamp(36px, 4vw, 58px); margin: 0 0 12px; }
.page-head--plain .appt { margin-top: 0; margin-left: 0; }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(30px, 5vw, 80px); align-items: start; }
.prose h2 { font-size: clamp(28px, 2.6vw, 38px); margin: 1.6em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose ul { margin: 0 0 1em; }
.prose li { max-width: 62ch; }
.prose .figure { margin: 34px 0; }
.figure { margin: 0; }
.figure img { border-radius: 12px; box-shadow: var(--shadow-card); }
.figure figcaption { margin-top: 10px; font-size: 15px; color: var(--wall); }
.aside { position: sticky; top: 24px; display: grid; gap: 22px; }
.aside .appt { padding: 24px; }
.aside .appt__title { font-size: 25px; }
.aside .btn { width: 100%; }

.faq { border-top: 1px solid var(--rule); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 20px 44px 20px 0; font: 400 clamp(20px, 1.6vw, 23px)/1.35 var(--display); color: var(--slate);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--spruce); border-bottom: 2px solid var(--spruce); transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 20px; }
.faq details > div p { color: var(--slate); }

.related { display: flex; flex-wrap: wrap; gap: 10px 12px; list-style: none; padding: 0; margin: 0; }
.related li { margin: 0; }
.related a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 8px; background: var(--card); box-shadow: 0 0 0 1px var(--rule); color: var(--slate); text-decoration: none; font-weight: 500; font-size: 16px; }
.related a:hover { color: var(--spruce); box-shadow: 0 0 0 1.5px var(--spruce); }

.mentions { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }

/* doctors */
.doctor { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(26px, 4vw, 60px); align-items: start; }
.doctor + .doctor { margin-top: clamp(40px, 6vw, 80px); }
.doctor__photo { background: var(--card); padding: 12px 12px 0; border-radius: 4px; box-shadow: var(--shadow-card); transform: rotate(-.8deg); }
.doctor__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 2px; }
.doctor__photo figcaption { padding: 12px 4px 14px; font-size: 15px; color: var(--wall); }
.doctor__type { aspect-ratio: 4 / 5; display: grid; place-items: center; background: var(--mist); border-radius: 2px; }
.doctor__type img { width: 46%; aspect-ratio: auto; object-fit: contain; }
.doctor h3 { font-size: clamp(30px, 2.8vw, 42px); margin-bottom: 4px; }
.doctor__role { font-weight: 500; color: var(--wall); margin-bottom: 18px; }

.wide-photo { margin: 0; }
.wide-photo img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-card); }
.wide-photo figcaption { margin-top: 10px; font-size: 15px; color: var(--wall); }

/* office tour: a walk through their photographs, in order */
.tour { display: grid; gap: clamp(50px, 8vw, 110px); }
.stop { display: grid; grid-template-columns: minmax(240px, 4fr) 8fr; gap: clamp(20px, 4vw, 60px); align-items: start; }
.stop__text h2 { font-size: clamp(28px, 2.6vw, 40px); margin-bottom: 10px; }
.stop__photos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.stop__photos figure { margin: 0; grid-column: span 3; }
.stop__photos figure.span-6 { grid-column: span 6; }
.stop__photos figure.span-2 { grid-column: span 2; }
.stop__photos figure.span-4 { grid-column: span 4; }
.stop__photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow-card); }
.stop__photos figcaption { margin-top: 8px; font-size: 15px; color: var(--wall); }

/* reviews page */
.review blockquote { margin: 0; }
.two--sticky > :first-child { position: sticky; top: 24px; }
@media (min-width: 900px) {
  .visit__cards.visit__cards--stack { grid-template-columns: 1fr; max-width: 860px; gap: 34px; }
  .visit__cards--stack > li, .visit__cards--stack > li:nth-child(4) { grid-column: auto; width: min(640px, 100%); }
  .visit__cards--stack > li:nth-child(even) { margin-left: auto; }
  .visit__cards--stack .appt { transform: rotate(-.5deg); }
  .visit__cards--stack > li:nth-child(even) .appt { transform: rotate(.5deg); }
}
.review-list { columns: 3 320px; column-gap: 26px; }
.review-list .appt { break-inside: avoid; margin: 0 0 26px; display: block; }
.review-list.is-masonry { columns: auto; position: relative; }
.review-list.is-masonry > .appt { position: absolute; top: 0; left: 0; margin: 0; }
.hub-fields > div { grid-template-columns: 9.6em 1fr; }
.map--wide, .map--wide iframe { min-height: 460px; }
.review__text { font-size: 17px; line-height: 1.6; margin: 0; white-space: pre-line; }
.review__text.is-clamped { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review__more { margin-top: 8px; padding: 0; min-height: 44px; background: none; border: 0; color: var(--spruce); font-weight: 500; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.review__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--wall); }
.review__meta strong { color: var(--slate); font-weight: 500; }
.monogram { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mist); color: var(--spruce); font: 500 14px/1 var(--text); margin-right: 10px; }
.review__who { display: inline-flex; align-items: center; }
.reply { margin: 14px 0 0; padding: 12px 14px; background: var(--mist); border-radius: 10px; font-size: 15px; line-height: 1.55; }
.reply strong { display: block; font-weight: 500; color: var(--spruce); margin-bottom: 2px; }
.wall { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.wall li { margin: 0; background: var(--card); border-radius: 10px; box-shadow: 0 0 0 1px var(--rule); padding: 12px 14px; font-size: 15px; }
.wall li strong { display: block; font-weight: 500; }
.wall li .wall__date { color: var(--wall); }
.wall li .stars { display: flex; font-size: 14px; color: var(--maple); margin: 3px 0 2px; }

/* forms */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 16px; }
.form input, .form textarea, .form select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--card); color: var(--slate);
  border: 1.5px solid #B9C4C4; border-radius: 8px;
  font: 400 18px/1.4 var(--text);
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--maple); outline-offset: 1px; border-color: var(--spruce); }
.form__status { min-height: 1.5em; margin: 0; font-weight: 500; }
.form__status.is-ok { color: var(--spruce); }
.form__status.is-err { color: var(--maple); }
.form .btn { justify-self: start; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 60px); align-items: start; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.note-card { padding: 22px 24px; }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 3; background: var(--evergreen); color: var(--frost); padding: clamp(56px, 7vw, 90px) 0 30px; }
.footer a { color: var(--frost); text-decoration-color: rgba(232, 239, 236, .45); }
.footer a:hover { color: #fff; text-decoration-color: #fff; }
.footer :focus-visible { outline-color: #F2B9A9; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 34px; padding-bottom: 36px; border-bottom: 1px solid rgba(232, 239, 236, .16); }
.footer__top img { width: 120px; }
.footer__top p { margin: 0; font: 400 clamp(22px, 2vw, 28px)/1.3 var(--display); color: var(--frost); max-width: 30ch; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 36px 0; }
.footer h2 { font: 500 15px/1.3 var(--text); color: var(--lichen); letter-spacing: .01em; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 8px; font-size: 16px; }
.footer address { font-style: normal; font-size: 16px; line-height: 1.6; }
.footer dl { margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; font-size: 15px; }
.footer dt { color: var(--lichen); }
.footer dd { margin: 0; font-variant-numeric: lining-nums tabular-nums; }
.footer__line { margin: 0 0 10px; font-size: 16px; color: var(--frost); max-width: none; }
.footer__legal { margin: 22px 0 0; font-size: 13px; color: var(--lichen); max-width: none; }

/* ---------- the ask card (fixed) ---------- */
.ask {
  position: fixed; left: 22px; bottom: 22px; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px 12px 12px;
  background: var(--card); border-radius: 12px; box-shadow: var(--shadow-lift);
  transform: translateY(140%); opacity: 0; visibility: hidden;
  transition: transform .45s var(--ease), opacity .3s ease, visibility 0s linear .45s;
}
.ask.is-on { transform: none; opacity: 1; visibility: visible; transition: transform .45s var(--ease), opacity .3s ease; }
.ask .btn { min-height: 48px; }
.ask__tel { font-size: 15px; color: var(--slate); font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.ask__tel span { display: block; font-weight: 400; color: var(--wall); }

/* ---------- 3D mode (home) ---------- */
#cards3d { display: none; }
.has-3d #cards3d {
  display: block; position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh;
  z-index: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease;
}
.is-3d #cards3d { opacity: 1; }
.is-3d #cards3d.is-hidden { opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.is-3d .page-home > .letterhead { position: relative; z-index: 5; }
.is-3d .appt--hero { box-shadow: none; background: transparent; }
.is-3d .appt--hero > * { opacity: 0; }
.appt--hero > * { transition: opacity .45s ease; }

.is-3d .visit { height: 560vh; padding: 0; }
.is-3d .visit__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: clamp(28px, 7vh, 80px); padding-bottom: clamp(24px, 6vh, 64px);
  pointer-events: none;
}
.is-3d .visit__pin a, .is-3d .visit__pin button { pointer-events: auto; }
.is-3d .visit__progress { display: flex; gap: 8px; align-items: baseline; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--wall); }
.is-3d .visit__progress b { font: 400 30px/1 var(--display); color: var(--maple); min-width: 1ch; }
.is-3d .visit__cards { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }

.is-3d .team { height: 420vh; padding: 0; }
.is-3d .team__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  padding-top: clamp(28px, 7vh, 80px); pointer-events: none;
}
.is-3d .team__pin a { pointer-events: auto; }
.is-3d .team .prints { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }

/* in 3D mode the section intros are small paper cards pinned over the scene */
.is-3d .visit__intro, .is-3d .team__intro {
  background: rgba(255, 255, 255, .94); border-radius: var(--r-card); box-shadow: var(--shadow-card);
  padding: clamp(18px, 2.2vw, 28px); max-width: 430px;
}
.is-3d .visit__intro h2, .is-3d .team__intro h2 { font-size: clamp(28px, 2.6vw, 40px); }
.is-3d .visit__intro .lede, .is-3d .team__intro .lede { font-size: 17px; margin-bottom: .6em; }
.is-3d .visit__intro p:last-child, .is-3d .team__intro p:last-child { margin-bottom: 0; }
.is-3d .visit__intro p:nth-last-child(2) { margin-bottom: 0; }

/* Lenis smooth scrolling (desktop) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.skip-inline { position: absolute; left: var(--gutter); top: 8px; z-index: 6; background: var(--card); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow-card); }
.skip-inline:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* reduced motion and no WebGL: one still of the settled cards, then the HTML cards */
.no-3d .visit__still { display: block; }
@media (prefers-reduced-motion: reduce) {
  .visit__still { display: block; }
  .js .slide-in { opacity: 1; transform: none; transition: none; }
  .print__paper, .btn, .ask { transition: none; }
}
.visit__still { width: min(1100px, 100%); margin: 34px auto 0; border-radius: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .letterhead { grid-template-columns: auto 1fr auto; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .proof { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .article { grid-template-columns: 1fr; }
  .aside { position: static; }
  .where { grid-template-columns: minmax(0, 1fr); }
  .doctor { grid-template-columns: 1fr; }
  .doctor__photo { max-width: 380px; }
  .stop { grid-template-columns: 1fr; }
  .two, .cards-3, .cards-2 { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .letterhead { padding-top: 12px; gap: 8px 14px; }
  .brand img { width: 64px; }
  .imprint { font-size: 14px; }
  .imprint span { display: none; }
  .hero { padding-top: 6px; }
  .notes { grid-template-columns: 1fr; }
  .note:nth-child(n) { margin-top: 0; transform: none; }
  .print__paper { transform: none; }
  .js .slide-in, .js .slide-in:nth-child(even) { transform: translate3d(0, 26px, 0); }
  .doctor__photo { transform: none; }
  .plans { grid-template-columns: 1fr; }
  .page-head .appt { margin: -54px 0 0; }
  .page-head__photo { height: 230px; border-radius: 14px; }
  .footer__cols { grid-template-columns: 1fr; }
  .stop__photos figure, .stop__photos figure.span-2, .stop__photos figure.span-4 { grid-column: span 6; }
  .review-list { columns: 1; }
  /* On a phone the widget owns the bottom-right corner: the ask card stays a desktop thing. */
  .ask { display: none; }
  .is-3d .visit { height: 480vh; }
  .is-3d .visit__intro .lede, .is-3d .team__intro .lede { display: none; }
  .is-3d .team { height: 380vh; }
}
@media (max-width: 420px) {
  .appt__fields > div { grid-template-columns: 5.4em minmax(0, 1fr); gap: 10px; }
  .appt__fields dt { font-size: 14px; }
  .appt__fields dd { font-size: 17px; }
  .hub-fields > div { grid-template-columns: 7.4em 1fr; }
  .appt--hero .appt__fields > div { grid-template-columns: 19cqw 1fr; gap: 2.4cqw; }
  .appt--hero .appt__fields dt { font-size: max(14px, 3.6cqw); }
  .appt--hero .appt__fields dd { font-size: max(14.5px, 3.9cqw); }
}
