/* Pebblestone Dental Care (sample site)
   Four light grounds and one dark ground.
   Each chapter names a theme; with motion allowed the whole page (ground, text, rules, header) moves
   to the theme of the chapter crossing the upper-middle of the screen, so text and ground change together. */
:root {
  --wall: #F1E7C9;
  --ink: #28231C;
  --gold: #B48C35;
  --board: #1D1A17;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gut: 16px;
  --path-x: 32px;
  --indent: 62px;
  --header-h: 60px;
  --bar-h: 44px;                 /* the fixed Speedrun sample bar (../_bar) above the site */
  --dock-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- themes ---------- */
html[data-theme="wall"],     html:not(.bands) .band[data-theme="wall"]     { --t-bg: #F1E7C9; }
html[data-theme="daylight"], html:not(.bands) .band[data-theme="daylight"] { --t-bg: #F5EDD6; }
html[data-theme="paper"],    html:not(.bands) .band[data-theme="paper"]    { --t-bg: #FAF6EA; }
html[data-theme="frost"],    html:not(.bands) .band[data-theme="frost"]    { --t-bg: #EFEBE2; }
html[data-theme="wall"], html[data-theme="daylight"], html[data-theme="paper"], html[data-theme="frost"],
html:not(.bands) .band[data-theme="wall"], html:not(.bands) .band[data-theme="daylight"],
html:not(.bands) .band[data-theme="paper"], html:not(.bands) .band[data-theme="frost"] {
  --t-fg: #28231C; --t-muted: #5A5144; --t-accent: #7A5C17; --t-gold: #B48C35; --t-line: rgba(40, 35, 28, .15);
}
html[data-theme="board"], html:not(.bands) .band[data-theme="board"], .find, .dentist, .foot {
  --t-bg: #1D1A17; --t-fg: #F3ECDA; --t-muted: #BDB4A4; --t-accent: #D7B466; --t-gold: #D7B466; --t-line: rgba(215, 180, 102, .3);
}
.band { position: relative; background: var(--t-bg); color: var(--t-fg); }
html.bands .band { background: transparent; }
html.bands .band.find, html.bands .band.dentist { background: var(--t-bg); }   /* the two dark chapters keep their own ground: real, hard seams */
html.bands body, html.bands body :where(p, h1, h2, h3, span, a, li, q, address, figcaption, summary, abbr, small, b) {
  transition: color .8s var(--ease), background-color .8s var(--ease), border-color .8s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + var(--header-h) + 12px); overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html:not(.bands) { scroll-behavior: smooth; } }
body {
  margin: 0;
  padding-top: var(--bar-h);
  background: var(--t-bg);
  color: var(--t-fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: oldstyle-nums proportional-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
abbr[title] { text-decoration: none; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 3px; border-radius: 2px; }
.reveal { overflow: hidden; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--wall); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: calc(var(--bar-h) + 8px); }

/* first paint for the entrance: set in <head> only when motion is allowed, removed by JS or a 3 s failsafe */
html.intro .hero .status, html.intro .hero__lede, html.intro .hero__doc, html.intro .hero__title { opacity: 0; }
html.intro .hero__photo { clip-path: inset(9% 7% 9% 7%); }

/* the drawn gold ring used around every logo mark */
.ring { position: absolute; inset: -11px; width: calc(100% + 22px); height: calc(100% + 22px); overflow: visible; pointer-events: none; }
.ring circle { fill: none; stroke: var(--t-gold); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1 1; }

/* ---------- type ---------- */
.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-optical-sizing: auto;
  font-size: clamp(2.15rem, 1.4rem + 3.6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
.station__kicker { font-size: .9375rem; letter-spacing: .01em; color: var(--t-accent); margin: 0 0 .8rem; font-weight: 500; }
.num { font-family: var(--serif); font-size: 1.15em; font-variant-numeric: lining-nums; }

/* ---------- buttons (one style) ---------- */
.btn {
  --btn-bg: var(--t-fg); --btn-fg: var(--t-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.25em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bg); border-radius: 6px;
  font: 500 .9375rem/1 var(--sans);
  text-decoration: none; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--ghost { background: transparent; color: var(--btn-bg); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--t-accent); border-color: var(--t-accent); color: var(--t-bg); } }
.link { color: var(--t-accent); text-underline-offset: .25em; text-decoration-thickness: 1px; font-weight: 500; display: inline-flex; align-items: center; min-height: 48px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: var(--bar-h); z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 var(--gut);
  background: var(--t-bg); color: var(--t-fg);
  border-bottom: 1px solid var(--t-line);
  transition: background-color .8s var(--ease), color .8s var(--ease), border-color .8s var(--ease);
}
.top .btn { min-height: 42px; }
.wordmark { display: flex; align-items: center; gap: 9px; text-decoration: none; min-height: 44px; }
.wordmark__mark { font: 400 1.85rem/1 var(--serif); letter-spacing: -.02em; color: #8E6A1B; }
html[data-theme="board"] .top .wordmark__mark { color: var(--t-gold); }
.wordmark__rest { font: 500 .9375rem/1.1 var(--sans); font-stretch: 88%; letter-spacing: 0; }
.top__nav { display: none; }
.top__actions { display: none; }
.top__status { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--t-gold); flex: none; }
.is-open .dot { background: #3F7A4A; box-shadow: 0 0 0 3px rgba(63, 122, 74, .2); }
html[data-theme="board"] .top .is-open .dot { background: #7FBF8A; box-shadow: 0 0 0 3px rgba(127, 191, 138, .2); }
.is-closed .dot { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

/* ---------- hero ---------- */
.hero { padding: 14px var(--gut) 40px; display: flex; flex-direction: column; }
.hero__photo { order: -1; position: relative; margin: 0 0 24px; }
.hero__photo picture { display: block; height: 100%; }
.hero__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background-color: #F1E7C9; background-size: cover; background-position: center; }
.status { display: flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 500; margin: 0 0 12px; }
.hero__title {
  font-family: var(--serif); font-weight: 300; font-optical-sizing: auto;
  font-size: clamp(2.6rem, 1.6rem + 4.6vw, 6rem);
  line-height: .98; letter-spacing: -.025em; margin: 0 0 18px;
}
.hero__lede { max-width: 34ch; color: var(--t-muted); }

/* ---------- the visit ---------- */
.visit { position: relative; --rooms-pb: 52px; }
.visit__path { position: absolute; z-index: 1; left: var(--path-x); top: 0; bottom: var(--rooms-pb); width: 1px; background: var(--t-gold); transform-origin: 50% 0; pointer-events: none; transition: background-color .8s; }
.station { padding: 64px var(--gut) 72px var(--indent); }
.station__mark {
  position: absolute; z-index: 2; left: calc(var(--path-x) - 15px); top: 58px;
  width: 31px; height: 31px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--t-bg); border: 1px solid var(--t-gold); color: var(--t-accent);
  font: 400 1rem/1 var(--serif); font-variant-numeric: lining-nums;
  transition: background-color .8s, color .8s, border-color .8s;
}
.station p { max-width: 40ch; }

/* 1 desk */
.desk { display: grid; grid-template-columns: 1fr; gap: 26px; }
.desk__emblem { width: 132px; height: 132px; border-radius: 50%; box-shadow: 0 0 0 1px var(--gold), 0 0 0 7px var(--t-bg), 0 0 0 8px rgba(180, 140, 53, .5); }
.desk__emblem img { border-radius: 50%; width: 132px; height: 132px; object-fit: cover; }

/* 2 window */
.station--window { padding-left: 0; padding-right: 0; padding-bottom: 28px; }
.window__head { padding: 0 var(--gut) 0 var(--indent); }
.window__photo { position: relative; z-index: 2; }
.window__photo img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: #e9e1cf; }
.station .window__caption { padding: 16px var(--gut) 0 var(--indent); font-size: .9375rem; color: var(--t-muted); max-width: 46ch; margin: 0; }

/* 3 talk */
.station--talk { padding-top: 40px; padding-bottom: 56px; }
.station--talk .station__mark { top: 42px; }
.talk { display: grid; }
.talk__lede { color: var(--t-muted); }
.talk__photo { position: relative; z-index: 2; margin: 18px calc(var(--gut) * -1) 0 calc(var(--indent) * -1); }
.talk__photo img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: #c5c6ca; }

/* the dentist: a chapter of its own, on the dark ground */
.dentist { padding: 64px var(--gut) 72px var(--indent); border-top: 1px solid var(--gold); }
.dentist__node { position: absolute; z-index: 3; left: calc(var(--path-x) - 14px); top: -14px; width: 28px; height: 28px; }
.dentist__node img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--board); }
.dentist__node .ring { inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); }
.dentist__label { font-size: .9375rem; font-weight: 500; color: var(--t-accent); margin: 0 0 .5rem; }
.dentist__name {
  font-family: var(--serif); font-weight: 300; font-optical-sizing: auto;
  font-size: clamp(2.2rem, 9.6vw, 7.25rem); line-height: .98; letter-spacing: -.03em;
  margin: 0 0 .35em; white-space: nowrap;
}
.dentist__quals {
  font-family: var(--sans); font-stretch: 70%; font-weight: 600;
  font-size: 1.25rem; letter-spacing: .14em; color: var(--t-accent);
  margin: 0 0 34px; display: flex; align-items: center; gap: 14px;
}
.dentist__quals::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.dentist__row { display: grid; gap: 26px; }
.dentist__proof { display: grid; gap: 12px; margin: 0; max-width: 470px; }
.dentist__proof img { width: 220px; border-radius: 3px; }
.dentist__proof figcaption { font-size: .9375rem; line-height: 1.45; color: var(--t-muted); }
.dentist__note { font: 300 1.35rem/1.35 var(--serif); color: var(--t-fg); border-top: 1px solid var(--t-line); padding-top: 18px; margin: 0; max-width: 28ch; }
.dentist__note q { quotes: "“" "”"; color: var(--t-accent); }

/* 4 rooms */
.station--rooms { padding-right: 0; padding-bottom: var(--rooms-pb); }
.rooms { display: grid; grid-template-columns: 1fr 1fr; }
.rooms__head { grid-column: 1 / -1; order: -1; padding-right: var(--gut); margin-bottom: 22px; }
.rooms__head p { margin: 0; }
.rooms__a { grid-column: 1 / -1; position: relative; z-index: 2; margin-left: calc(var(--indent) * -1); }
.rooms__a img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #d2ceb2; }
.rooms__b { grid-column: 1 / -1; width: 66%; justify-self: end; position: relative; z-index: 3; margin: -15% var(--gut) 0 0; box-shadow: 0 0 0 6px var(--t-bg); }
.rooms__b img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #9ea8a4; }

/* ---------- treatments ---------- */
.treat { padding: 8px var(--gut) 80px; display: grid; gap: 28px; }
.treat__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 42%; background: #d9d5c3; }
.treat__intro { max-width: 46ch; color: var(--t-muted); }
.treat__hint { color: var(--t-fg); }
.family { border-top: 1px solid var(--t-gold); padding: 18px 0 8px; }
.family__name { font: 400 1.6rem/1.15 var(--serif); margin: 0 0 6px; display: flex; align-items: baseline; gap: 12px; }
.family__n { font: 500 .9375rem/1 var(--sans); color: var(--t-accent); font-variant-numeric: lining-nums; }
.tx { list-style: none; margin: 0 0 8px; padding: 0; }
.tx li { padding: 10px 0; border-bottom: 1px solid var(--t-line); }
.tx li:last-child { border-bottom: 0; }
.tx__name { display: block; font: 400 1.1875rem/1.3 var(--serif); }
.tx__def { display: block; font-size: .9375rem; line-height: 1.5; color: var(--t-muted); margin-top: 3px; max-width: 52ch; }
.tx__btn { all: unset; box-sizing: border-box; cursor: pointer; display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: space-between; gap: 12px; }
.tx__btn::after, .faq summary::after {
  content: ""; width: 11px; height: 11px; flex: none; margin-right: 4px;
  background: linear-gradient(var(--t-accent), var(--t-accent)) center / 11px 1.5px no-repeat,
              linear-gradient(var(--t-accent), var(--t-accent)) center / 1.5px 11px no-repeat;
  transition: transform .25s var(--ease);
}
.tx__btn[aria-expanded="true"]::after, .faq details[open] summary::after { transform: rotate(45deg); }
.tx__btn:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 2px; }
.tx-collapsible .tx li { padding: 2px 0; }
.tx-collapsible .tx__def { display: none; padding: 0 0 12px; }
.tx-collapsible li.is-open .tx__def { display: block; }
html:not(.js) .treat__hint, .treat:not(.tx-collapsible) .treat__hint { display: none; }
.treat__close { font: 300 1.6rem/1.2 var(--serif); margin-top: 28px; max-width: 26ch; }
.treat__fine { display: block; font: 400 .9375rem/1.5 var(--sans); color: var(--t-muted); margin-top: 14px; max-width: 52ch; }

/* ---------- what patients mention ---------- */
.mentions { padding: 64px var(--gut) 80px; }
.divider { display: flex; align-items: center; gap: 18px; margin: 0 0 54px; }
.divider__rule { flex: 1; height: 1px; background: var(--t-gold); transform-origin: right center; }
.divider__rule:last-child { transform-origin: left center; }
.divider__mark { position: relative; width: 58px; height: 58px; flex: none; }
.divider__emblem { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.score { display: flex; align-items: flex-end; gap: 14px; margin: 6px 0 18px; }
.score__n { font: 300 6.5rem/.8 var(--serif); letter-spacing: -.04em; font-variant-numeric: lining-nums; }
.score__of { font-size: .9375rem; line-height: 1.35; max-width: 11ch; padding-bottom: 6px; }
.mentions__note { color: var(--t-muted); max-width: 40ch; font-size: .9375rem; }
.topics { list-style: none; margin: 30px 0 0; padding: 0; }
.topics li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; }
.topics__t { font: 400 1.25rem/1.25 var(--serif); }
.topics__lead { flex: 1; border-bottom: 1.5px dotted var(--t-gold); opacity: .8; transform: translateY(-5px); min-width: 20px; }
.topics__n { font: 400 1.5rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; min-width: 1.4em; text-align: right; color: var(--t-accent); }
.topics li:first-child .topics__t { font-size: 1.5rem; }
.topics li:first-child .topics__n { font-size: 2rem; }
.mentions__src { font-size: .9375rem; color: var(--t-muted); margin-top: 22px; }

/* ---------- hours object ---------- */
.hours { padding: 72px var(--gut) 96px; }
.hours__head { max-width: 1040px; margin: 0 auto 40px; }
.hours__live { font: 300 1.35rem/1.35 var(--serif); max-width: 36ch; min-height: 2.7em; margin: 0; }
.hours__live b { font-weight: 500; }
.week {
  --dayw: 6rem; --timew: 0px; --colgap: 12px; --timegap: 0px;
  position: relative; max-width: 1040px; margin: 0 auto;
  padding: 44px 0 0; border-top: 1px solid var(--t-gold);
}
.week__rows { list-style: none; margin: 0; padding: 0; }
.week__rows li { display: grid; grid-template-columns: var(--dayw) 1fr; column-gap: var(--colgap); align-items: center; min-height: 44px; }
.week__day { font: 400 1.0625rem/1.1 var(--serif); }
.week__time { display: none; font-size: .9375rem; color: var(--t-muted); font-variant-numeric: lining-nums tabular-nums; text-align: right; }
.week__track { position: relative; height: 10px; }
.week__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--t-line); }
.week__span { position: absolute; top: 0; bottom: 0; left: calc(9.5 / 24 * 100%); width: calc(10 / 24 * 100%); background: var(--t-gold); transform-origin: left center; }
.week__rows li.is-today .week__day { font-weight: 500; }
.week__rows li.is-today .week__day::after { content: "today"; display: block; font: 500 .9375rem/1.3 var(--sans); color: var(--t-accent); margin-top: 2px; }
.week__rows li.is-today .week__span { background: var(--t-accent); }
.week__axis { position: relative; height: 1.4em; margin: 12px calc(var(--timew) + var(--timegap)) 0 calc(var(--dayw) + var(--colgap)); font-size: .9375rem; color: var(--t-muted); font-variant-numeric: lining-nums; }
.week__axis span { position: absolute; top: 0; left: calc(var(--at) * 100%); transform: translateX(-50%); white-space: nowrap; }
.week__needle { position: absolute; top: 34px; bottom: 30px; left: calc(var(--dayw) + var(--colgap)); right: calc(var(--timew) + var(--timegap)); pointer-events: none; }
.week__now { position: absolute; top: 0; bottom: 0; left: calc(var(--now, .5) * 100%); width: 1px; background: var(--t-fg); }
.week__now::before { content: ""; position: absolute; top: -4px; left: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--t-fg); }
.week__now::after {
  content: attr(data-label); position: absolute; top: -30px; left: 0; transform: translateX(-50%);
  white-space: nowrap; font: 500 .9375rem/1 var(--sans); background: var(--t-fg); color: var(--t-bg); padding: 5px 8px; border-radius: 3px;
  font-variant-numeric: lining-nums;
}
.week__needle.is-edge-l .week__now::after { transform: none; left: -4px; }
.week__needle.is-edge-r .week__now::after { transform: translateX(-100%); left: 4px; }

/* ---------- find us: the dark ground, with the logo mark on the seam ---------- */
.find { padding: 0 var(--gut) 72px; border-top: 1px solid var(--gold); }
.seam { position: relative; width: 64px; height: 64px; margin: -32px auto 40px; z-index: 2; }
.seam img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px var(--board); }
.find__grid { display: grid; gap: 30px; }
.find__addr { font: 400 1.4rem/1.35 var(--serif); font-style: normal; margin: 0 0 14px; }
.find__look { color: var(--t-muted); max-width: 36ch; }
.find__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; }
.find__board { margin: 0 calc(var(--gut) * -1); }
.find__board img { width: 100%; background: #a4a5a0; }
.map { position: relative; border: 1px solid rgba(215, 180, 102, .45); overflow: hidden; background: #FAF6EA; color: var(--ink); }
.map.is-loaded { aspect-ratio: 4 / 3; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__btn {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%; min-height: 68px; padding: 12px 18px;
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; text-align: left; color: var(--ink);
  font: 400 1.25rem/1.2 var(--serif);
  background:
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(40, 35, 28, .06) 38px 39px),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(40, 35, 28, .06) 38px 39px),
    #FAF6EA;
}
.map__pin { grid-row: span 2; width: 16px; height: 16px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--gold); box-shadow: 0 0 0 6px rgba(180, 140, 53, .18); margin: 0 4px; }
.map__btn small { font: 400 .9375rem/1.3 var(--sans); color: #5A5144; }
.map__btn:focus-visible { outline: 2px solid #D7B466; outline-offset: 3px; }
.map__placeholder { cursor: default; }
.map--sample { aspect-ratio: 4 / 3; }   /* the same box the map would fill on the real site */
.map--sample .map__placeholder { position: absolute; inset: 0; grid-template-columns: 1fr; justify-items: center; align-content: center; row-gap: 10px; text-align: center; }
.map--sample .map__pin { grid-row: auto; }
@media (hover: hover) and (pointer: fine) { .map__btn:not(.map__placeholder):hover span:not(.map__pin) { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; } }
.faq__title { font: 400 1.6rem/1.2 var(--serif); margin: 0 0 10px; }
.faq details { border-top: 1px solid var(--t-line); }
.faq details:last-child { border-bottom: 1px solid var(--t-line); }
.faq summary { list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--t-muted); max-width: 46ch; }

/* ---------- footer + dock ---------- */
.foot { background: var(--t-bg); color: var(--t-fg); padding: 40px var(--gut) calc(var(--dock-h) + 36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--t-line); }
.foot__name { font: 300 1.75rem/1.1 var(--serif); margin-bottom: 10px; }
.foot__line { color: var(--t-muted); font-size: .9375rem; margin-bottom: 4px; }
.foot__call { margin: 0; }
.foot__call a { display: inline-flex; align-items: center; min-height: 44px; color: var(--t-accent); font-weight: 500; text-underline-offset: .25em; }
.foot__demo { font-size: .9375rem; color: var(--t-muted); border-top: 1px solid var(--t-line); padding-top: 16px; margin: 22px 0 0; }

.dock {
  --t-fg: #28231C; --t-bg: #F1E7C9; --t-accent: #7A5C17;
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(241, 231, 201, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(180, 140, 53, .55);
}
.dock .btn { min-height: 54px; font-size: 1rem; }
.dock__ic { display: inline-flex; }

/* ---------- small phones ---------- */
@media (max-width: 370px) {
  :root { --indent: 58px; --path-x: 31px; }
  .wordmark__rest { font-size: .875rem; }
  .top__status { font-size: .875rem; }
  .dentist__proof img { width: 200px; }
}

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  :root { --gut: 40px; --path-x: 64px; --indent: 140px; --header-h: 72px; }
  body { font-size: 18px; }
  .dock { display: none; }
  .top { padding: 0 var(--gut); gap: 28px; }
  .top__nav { display: flex; gap: 26px; margin-left: auto; }
  .top__nav a { font-size: .875rem; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; background: linear-gradient(currentColor, currentColor) 0 calc(50% + .8em) / 0 1px no-repeat; transition: background-size .4s var(--ease); }
  .top__nav a:hover { background-size: 100% 1px; }
  .top__status { font-size: .8125rem; }
  .top__actions { display: flex; gap: 10px; }
  .wordmark__mark { font-size: 2.1rem; }
  .wordmark__rest { font-size: .8125rem; font-stretch: 100%; }
  .station__kicker { font-size: .8125rem; }
  .foot { padding: 48px var(--gut) 48px var(--indent); }
  .foot__inner { display: grid; grid-template-columns: 1fr auto; gap: 4px 40px; align-items: end; }
  .foot__call { grid-column: 2; grid-row: 1; justify-self: end; }
  .foot__demo { grid-column: 1 / -1; }

  .hero { display: grid; grid-template-columns: 5fr 7fr; grid-template-rows: minmax(0, 1fr); padding: 0; height: calc(100svh - var(--bar-h) - var(--header-h)); min-height: 620px; max-height: 960px; }
  .hero__text { padding: 48px 48px 48px var(--gut); align-self: center; }
  .hero__photo { order: 0; margin: 0; height: 100%; overflow: hidden; }
  .hero__photo img { height: 100%; aspect-ratio: auto; object-position: 50% 30%; }
  .hero__lede { font-size: 1.0625rem; }

  .station { padding: 120px var(--gut) 120px var(--indent); }
  .station__mark { top: 116px; width: 37px; height: 37px; left: calc(var(--path-x) - 18px); font-size: 1.15rem; }

  .desk { grid-template-columns: 240px minmax(0, 560px); gap: 72px; align-items: center; }
  .desk__emblem, .desk__emblem img { width: 220px; height: 220px; }

  .station--window { padding: 110px 0 100px; }
  .window__head { padding: 0 var(--gut) 34px var(--indent); }
  .window__photo img { aspect-ratio: 1600 / 448; }
  .station .window__caption { padding: 18px var(--gut) 0 var(--indent); max-width: calc(var(--indent) + 560px); }

  .station--talk { padding-top: 110px; padding-bottom: 110px; }
  .talk { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: center; }
  .talk__photo { margin: 0 calc(var(--gut) * -1) 0 0; }
  .station--talk { padding-top: 110px; padding-bottom: 110px; }

  .dentist { padding: 110px var(--gut) 100px var(--indent); }
  .dentist__node { top: -30px; left: calc(var(--path-x) - 30px); width: 60px; height: 60px; }
  .dentist__node img { width: 60px; height: 60px; }
  .dentist__node .ring { inset: -11px; width: calc(100% + 22px); height: calc(100% + 22px); }
  .dentist__name { font-size: clamp(4rem, 8.2vw, 8rem); }
  .dentist__quals { font-size: 1.5rem; margin-bottom: 56px; }
  .dentist__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; max-width: 1040px; }
  .dentist__proof img { width: 320px; }
  .dentist__note { font-size: 1.6rem; }

  .visit { --rooms-pb: 72px; }
  .station--rooms { padding-top: 80px; }
  .station--rooms .station__mark { top: 76px; }
  .rooms { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .rooms { row-gap: 32px; }
  .rooms__a { grid-column: 1 / 8; grid-row: 1 / 3; margin-left: 0; align-self: stretch; }
  .rooms__a img { height: 100%; aspect-ratio: auto; min-height: 420px; }
  .rooms__head { grid-column: 8 / 13; grid-row: 1; order: 0; margin: 0; padding: 0 var(--gut) 0 0; align-self: end; }
  .rooms__head p { max-width: 34ch; }
  .rooms__b { grid-column: 8 / 12; grid-row: 2; width: auto; justify-self: stretch; margin: 0; box-shadow: none; align-self: start; }

  .treat { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 72px; padding: 40px var(--gut) 130px var(--indent); }
  .treat__aside { position: relative; }
  .treat__photo { position: sticky; top: calc(var(--bar-h) + var(--header-h) + 40px); }
  .treat__photo img { aspect-ratio: 4 / 5; }
  .tx li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: baseline; padding: 13px 0; }
  .tx__def { margin-top: 0; }
  .family__name { font-size: 1.85rem; }
  .treat__close { font-size: 2.1rem; }

  .mentions { padding: 110px var(--gut) 130px var(--indent); }
  .divider { margin: 0 0 90px calc(var(--indent) * -1 + var(--gut)); }
  .divider__mark, .divider__emblem { width: 74px; height: 74px; }
  .mentions__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 80px; }
  .score__n { font-size: 10rem; }
  .topics { margin: 8px 0 0; }
  .topics__t { font-size: 1.45rem; }
  .topics li:first-child .topics__t { font-size: 1.9rem; }
  .topics li:first-child .topics__n { font-size: 2.6rem; }
  .mentions__src { grid-column: 2; }

  .hours { padding: 130px var(--gut) 130px; }
  .hours__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; margin-bottom: 40px; }
  .hours__title { margin: 0; font-size: clamp(3rem, 4.6vw, 4.5rem); }
  .hours__live { font-size: 1.5rem; }
  .week { --dayw: 8.5rem; --timew: 10.5rem; --colgap: 24px; --timegap: 24px; padding-top: 56px; }
  .week__rows li { grid-template-columns: var(--dayw) 1fr var(--timew); min-height: 54px; }
  .week__time { display: block; }
  .week__day { font-size: 1.25rem; }
  .week__rows li.is-today .week__day::after { font-size: .75rem; }
  .week__axis { font-size: .8125rem; }
  .week__needle { top: 46px; }
  .week__now::after { font-size: .75rem; }

  .find { padding: 0 var(--gut) 120px var(--indent); }
  .seam { width: 84px; height: 84px; margin: -42px auto 80px; }
  .seam img { width: 84px; height: 84px; }
  .find__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 72px; row-gap: 64px; }
  .find__text { grid-column: 1; grid-row: 1; }
  .find__board { grid-column: 2; grid-row: 1; margin: 0 calc(var(--gut) * -1) 0 0; align-self: center; }
  .map { grid-column: 1; grid-row: 2; aspect-ratio: 4 / 3; }
  .map__btn { position: absolute; inset: 0; grid-template-columns: 1fr; justify-items: center; align-content: center; row-gap: 8px; text-align: center; font-size: 1.35rem;
    background:
      linear-gradient(90deg, transparent calc(50% - .5px), rgba(180, 140, 53, .4) 0 calc(50% + .5px), transparent 0),
      linear-gradient(0deg, transparent calc(50% - .5px), rgba(180, 140, 53, .4) 0 calc(50% + .5px), transparent 0),
      repeating-linear-gradient(90deg, transparent 0 46px, rgba(40, 35, 28, .06) 46px 47px),
      repeating-linear-gradient(0deg, transparent 0 46px, rgba(40, 35, 28, .06) 46px 47px),
      #FAF6EA; }
  .map__pin { grid-row: auto; margin-bottom: 6px; }
  .map__btn small { font-size: .8125rem; }
  .faq { grid-column: 2; grid-row: 2; }
  .find__addr { font-size: 1.75rem; }
}
@media (min-width: 1280px) {
  :root { --gut: 56px; --indent: 168px; }
  .top__nav { gap: 32px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* The Speedrun strip wraps to two lines (64px) on narrow screens */
@media (max-width: 599px) { :root { --bar-h: 64px; } }
