/* ALDER DENTAL STUDIO: layout, components, motion. Consumes tokens.css only.
   Layers: reset > roles > chrome (header/menu/footer) > sections > forms > utilities. */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: var(--lh-heading); margin: 0 0 var(--s-4); font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--r-1); }
/* focus ring follows the site's own rounded geometry: pills ring as pills,
   16px cards ring at 16px, instead of one generic rectangle everywhere */
.btn:focus-visible, .chip:focus-visible, .menu-btn:focus-visible, .menu-close:focus-visible,
.skip-link:focus-visible, .calm-toggle:focus-visible, .map-cta:focus-visible { border-radius: var(--r-pill); }
.service-card a:focus-visible, .chart-ask:focus-visible, .visit-map:focus-visible { border-radius: var(--r-2); }
::selection { background: var(--accent); color: var(--white); }
html[data-calm="1"] ::selection { background: var(--teal-tint); color: var(--ink); }
/* sticky header clearance, tuned per anchor type */
section[id] { scroll-margin-top: 4.75rem; }
.care-sheet[id] { scroll-margin-top: 5.5rem; }

/* ---------- shared roles ---------- */
.wrap { width: min(100% - 2 * var(--edge), var(--max-w)); margin-inline: auto; }
.kicker {
  font-family: var(--font-display);
  font-size: var(--t-kicker);
  font-weight: 700;
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-4);
}
.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); }
.lead { font-size: var(--t-lead); color: var(--muted); max-width: var(--measure); }
.body-copy { max-width: var(--measure); color: var(--muted); }
.small { font-size: var(--t-small); }
.muted { color: var(--muted); }

.section { padding-block: var(--section-pad); position: relative; }
.section-head { margin-bottom: var(--s-7); max-width: var(--measure); }
.section-head .h2 { margin-bottom: var(--s-3); }
.section-head p { color: var(--muted); margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.85rem 1.6rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-small);
  text-decoration: none;
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out), background var(--dur-1);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--fg); box-shadow: none; }
.btn--light { background: var(--white); color: var(--teal-deep); }
[data-theme="ink"] .btn { background: var(--accent); color: var(--ink); }
/* on a deep teal ground the pale pill carries the label (5.10:1) and the
   outline button gets a solid mist edge (4.59:1) instead of a faint wash */
[data-theme="ink"] .btn--light { background: var(--white); color: var(--teal-deep); }
[data-theme="ink"] .btn--ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transform: none; transition: none; }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.35em 0.9em;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: var(--t-kicker);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.chip--line { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.chip--sample { background: var(--mist-2); color: var(--ink-3); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-6);
}

/* ---------- reveals ---------- */
html.js .reveal { opacity: 0; transform: translateY(24px); }
html.js .reveal.is-inview {
  opacity: 1; transform: none;
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
html.js .reveal[data-delay="1"].is-inview { transition-delay: 110ms; }
html.js .reveal[data-delay="2"].is-inview { transition-delay: 220ms; }
html.js .reveal[data-delay="3"].is-inview { transition-delay: 330ms; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}
/* calm mode is a motion switch too: everything rests in its finished state */
html[data-calm="1"] .reveal { opacity: 1; transform: none; transition: none; }
html[data-calm="1"] .btn:hover, html[data-calm="1"] .btn:active { transform: none; box-shadow: none; }
html[data-calm="1"] .service-card:hover { transform: none; box-shadow: none; }
html[data-calm="1"] .chart-mark { transition: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--white) 96%, transparent);
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 12px rgba(20, 32, 31, 0.05); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { width: 28px; height: 28px; color: var(--teal-deep); }
.header-right { display: flex; align-items: center; gap: var(--s-5); }
.site-nav { display: flex; gap: var(--s-5); }
.site-nav a {
  text-decoration: none;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--muted);
  transition: color var(--dur-1);
}
.site-nav a:hover, .site-nav a[aria-current="true"] { color: var(--ink); }
.header-tel {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-small);
  color: var(--ink);
  white-space: nowrap;
}
.header-tel svg { width: 16px; height: 16px; color: var(--teal-deep); }
.header-tel:hover { color: var(--teal-deep); }
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-small);
}
@media (max-width: 63.99em) {
  .site-nav, .header-tel span.tel-label { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 37.49em) {
  .header-cta { display: none; }
}

/* ---------- menu overlay ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--white);
  padding: var(--s-6) var(--edge);
  display: none;
  flex-direction: column;
  gap: var(--s-7);
}
.menu-overlay.is-open { display: flex; }
.menu-close {
  align-self: flex-end;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.5rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.menu-overlay nav { display: flex; flex-direction: column; gap: var(--s-4); }
.menu-overlay nav a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.menu-overlay nav a:hover { color: var(--teal-deep); }
.menu-foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--s-4); align-items: flex-start; }

.skip-link {
  position: fixed;
  top: var(--s-3);
  left: var(--s-3);
  z-index: var(--z-skip);
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1.1rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-small);
  transform: translateY(-300%);
}
.skip-link:focus-visible { transform: none; }

/* ---------- 01 / front desk (hero + inline intake card) ----------
   One centred column: the practice speaks, the ticker names what it treats,
   and the four-field intake card sits right there instead of a photo pane. */
#hero-01 { padding-block: clamp(3rem, 8vh, 5.5rem) var(--section-pad); overflow: clip; }
#hero-01 .front-desk {
  width: min(100%, 62rem);
  display: grid;
  gap: clamp(var(--s-6), 4vw, var(--s-7));
  justify-items: center;
}
#hero-01 .desk-lede { text-align: center; max-width: 44rem; }
#hero-01 h1 { font-size: var(--t-display); letter-spacing: -0.025em; margin-bottom: var(--s-4); }
#hero-01 .lead { margin-inline: auto; }
#hero-01 .desk-aside { font-size: var(--t-small); color: var(--muted); margin: var(--s-5) 0 0; }
#hero-01 .desk-aside a { color: var(--accent); font-weight: 600; }

/* the rotating condition ticker: rests as a full readable list without JS
   or under reduced motion; becomes a one-line rotator only when .is-live */
.ticker { font-family: var(--font-display); font-weight: 600; color: var(--fg); }
.ticker-lead { color: var(--muted); font-weight: 400; font-family: var(--font-body); }
.ticker-item::after { content: " · "; color: var(--line-strong); font-weight: 400; }
.ticker-item:last-child::after { content: ""; }
.ticker.is-live {
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
  transition: width var(--dur-2) var(--ease-out);
}
.ticker.is-live .ticker-item {
  grid-area: 1 / 1;
  justify-self: start;
  opacity: 0;
  transform: translateY(0.5em);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
  white-space: nowrap;
  color: var(--accent);
}
.ticker.is-live .ticker-item::after { content: ""; }
.ticker.is-live .ticker-item.is-current { opacity: 1; transform: none; }

/* the practice facts: a quiet hairline rail under the intake card */
#hero-01 .desk-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2) var(--s-5);
  font-size: var(--t-small);
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: var(--s-5);
  width: min(100%, 52rem);
}
#hero-01 .desk-facts li { display: inline-flex; align-items: center; gap: var(--s-2); }
#hero-01 .desk-facts svg { width: 16px; height: 16px; color: var(--teal-deep); flex: none; }

/* ---------- calm mode switch (signature) ----------
   A visible, plainly-labeled toggle. State lives on <html data-calm="1">,
   applied before first paint by the inline head script; the button itself
   only appears when JS is running (without JS there is nothing it could do). */
.calm-switch { margin-top: var(--s-5); display: grid; gap: var(--s-2); justify-items: start; }
html:not(.js) .calm-switch { display: none; }
.calm-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 0.55rem 1.1rem 0.55rem 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-small);
  color: var(--ink);
}
.calm-toggle:hover { border-color: var(--teal-deep); color: var(--teal-deep); }
.calm-track {
  flex: none;
  width: 38px;
  height: 22px;
  border-radius: var(--r-pill);
  background: var(--mist-3);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  padding: 2px;
  transition: background var(--dur-2) var(--ease-out);
}
.calm-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(20, 32, 31, 0.25);
  transition: transform var(--dur-2) var(--ease-out);
}
.calm-toggle[aria-pressed="true"] .calm-track { background: var(--teal-deep); }
.calm-toggle[aria-pressed="true"] .calm-dot { transform: translateX(16px); }
@media (prefers-reduced-motion: reduce) { .calm-track, .calm-dot { transition: none; } }
.calm-note {
  display: none;
  margin: 0;
  max-width: 34rem;
  font-size: var(--t-small);
  color: var(--muted);
  background: var(--teal-tint);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
}
html[data-calm="1"] .calm-note { display: block; }

/* ---------- the intake card (the hero's conversion moment) ---------- */
#hero-01 .intake-card {
  width: 100%;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: clamp(var(--s-5), 3.5vw, var(--s-7));
  box-shadow: var(--shadow-1);
  display: grid;
  gap: var(--s-5);
  scroll-margin-top: 5.5rem;
}
#hero-01 .intake-head { max-width: 34rem; }
#hero-01 .intake-head .h3 { margin-bottom: var(--s-3); }
#hero-01 .intake-head p { margin: 0; }
#hero-01 .intake-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  border-top: 1px solid var(--line);
  padding-top: var(--s-5);
  font-size: var(--t-small);
  color: var(--muted);
}
#hero-01 .intake-steps li { display: flex; gap: var(--s-3); align-items: baseline; }
#hero-01 .intake-steps .step-n {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal-deep);
}
@media (max-width: 47.99em) {
  #hero-01 .intake-steps { grid-template-columns: 1fr; gap: var(--s-3); }
}

/* ---------- 02 / services ---------- */
#services-02 { background: var(--mist); border-radius: var(--r-3); margin-inline: clamp(0rem, 1.5vw, 1.25rem); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
  list-style: none;
}
.service-card {
  background: var(--white);
  border-radius: var(--r-2);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  border: 1px solid transparent;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); }
@media (prefers-reduced-motion: reduce) { .service-card:hover { transform: none; } }
.service-card .icon-plate {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
}
.service-card .icon-plate svg { width: 24px; height: 24px; }
.service-card h3 { margin: 0; font-size: var(--t-h3); }
.service-card p { margin: 0; color: var(--muted); font-size: var(--t-small); flex: 1; }
.service-card .service-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-small);
  color: var(--teal-deep);
  text-decoration: none;
}
.service-card .service-link:hover { text-decoration: underline; }
@media (max-width: 63.99em) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 37.49em) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- 03 / team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); list-style: none; }
.team-card { border: 1px solid var(--line); border-radius: var(--r-2); overflow: clip; background: var(--white); }
.team-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.team-card .team-meta { padding: var(--s-5); }
.team-card h3 { margin-bottom: var(--s-1); font-size: var(--t-h3); }
.team-card .team-role { color: var(--teal-deep); font-family: var(--font-display); font-weight: 600; font-size: var(--t-small); margin-bottom: var(--s-2); }
.team-card p { margin: 0; color: var(--muted); font-size: var(--t-small); }
@media (max-width: 63.99em) { .team-grid { grid-template-columns: 1fr; max-width: 26rem; margin-inline: auto; } }

/* ---------- 04 / insurance ---------- */
#insurance-04 { background: var(--mist); border-radius: var(--r-3); margin-inline: clamp(0rem, 1.5vw, 1.25rem); }
#insurance-04 .insurance-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(var(--s-6), 4vw, var(--s-8));
  align-items: start;
}
.plan-chips { display: flex; flex-wrap: wrap; gap: var(--s-3); list-style: none; }
.plan-chips .chip { background: var(--white); color: var(--ink-3); border: 1px solid var(--line); font-size: var(--t-small); padding: 0.55em 1.1em; }
.insurance-points { list-style: none; display: grid; gap: var(--s-4); }
.insurance-points li { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--muted); }
.insurance-points svg { width: 20px; height: 20px; color: var(--teal-deep); flex: none; margin-top: 0.2em; }
@media (max-width: 56.24em) { #insurance-04 .insurance-grid { grid-template-columns: 1fr; } }

/* cost transparency table: the fee, the plan's usual share, and worked
   example math in one row. Deliberately runs wider than the wrap on large
   screens (the page's one structural asymmetry). */
.cost-table-wrap { margin-top: var(--s-8); }
.cost-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-bottom: var(--s-2); }
.cost-head .h3 { margin: 0; }
.cost-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--white); }
.cost-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--r-2); }
.cost-table { width: 100%; min-width: 46rem; border-collapse: collapse; font-size: var(--t-small); }
.cost-table th, .cost-table td { text-align: left; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); vertical-align: top; }
.cost-table thead th {
  font-family: var(--font-display);
  font-size: var(--t-kicker);
  text-transform: uppercase;
  letter-spacing: var(--track-kicker);
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
}
.cost-table tbody tr:last-child th, .cost-table tbody tr:last-child td { border-bottom: 0; }
.cost-table tbody th { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.cost-table td { color: var(--muted); }
.cost-table .cost-math { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost-table .cost-math strong { color: var(--teal-deep); font-family: var(--font-display); }
.cost-note { margin: var(--s-3) 0 0; max-width: var(--measure); }
@media (min-width: 64em) { .cost-table-wrap { margin-inline: calc(-1 * (var(--edge) - var(--s-4))); } }

/* ---------- forms (shared kit) ---------- */
.form { display: grid; gap: var(--s-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 37.49em) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--s-2); }
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-small);
}
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  padding: 0.7rem 0.9rem;
  width: 100%;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}
.field-hint { font-size: var(--t-small); color: var(--muted); margin: 0; }
.field-error { font-size: var(--t-small); color: #b3261e; margin: 0; font-weight: 600; }
.field.is-invalid input, .field.is-invalid select { border-color: #b3261e; }
.form-errors {
  border: 1px solid #b3261e;
  border-radius: var(--r-2);
  padding: var(--s-4);
  background: #fdf1f0;
  color: #7f1d16;
}
.form-errors p { margin: 0 0 var(--s-2); font-weight: 700; font-family: var(--font-display); font-size: var(--t-small); }
.form-errors ul { list-style: none; display: grid; gap: var(--s-1); }
.form-errors a { color: inherit; }
.form-status { min-height: 1.5em; margin: 0; font-size: var(--t-small); font-weight: 600; }
.form-fallback { border: 1px dashed var(--line-strong); border-radius: var(--r-2); padding: var(--s-4); display: grid; gap: var(--s-3); }
.form-fallback textarea { font-size: var(--t-small); }
.form-fallback-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* the no-script path is a real path, not an apology: the form posts to the
   practice mailbox on its own, and the phone number sits right in the notice */
.no-js-note {
  display: none;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  padding: var(--s-4);
  background: var(--white);
  font-size: var(--t-small);
  color: var(--ink-3);
}
html:not(.js) .no-js-note { display: block; }
.no-js-note a { color: var(--teal-deep); font-weight: 600; }
/* the draft sentence is only true while the script that writes it is running */
html:not(.js) .draft-note { display: none; }

/* ---------- 05 / the new-patient chart ----------
   Not a stack of separate cards: one clinical sheet, numbered rows divided by
   hairlines, answers indented into the text column, and a standing aside that
   keeps the phone in view while you read. */
.chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(var(--s-5), 4vw, var(--s-8));
  align-items: start;
}
.chart-sheet {
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: clip;
}
.chart-line + .chart-line { border-top: 1px solid var(--line); }
.chart-line h3 { margin: 0; }
.chart-ask {
  width: 100%;
  display: grid;
  grid-template-columns: 2.6rem 1fr 1.75rem;
  align-items: baseline;
  gap: var(--s-2);
  text-align: left;
  background: none;
  border: 0;
  padding: var(--s-5);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}
.chart-ask:hover { color: var(--teal-deep); }
.chart-ask[aria-expanded="true"] { color: var(--teal-deep); }
.chart-index {
  font-size: var(--t-kicker);
  font-weight: 700;
  letter-spacing: var(--track-kicker);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.chart-ask[aria-expanded="true"] .chart-index { color: var(--teal-deep); }
.chart-mark {
  align-self: center;
  justify-self: end;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  color: var(--teal-deep);
  transition: transform var(--dur-2) var(--ease-out);
}
.chart-mark svg { width: 20px; height: 20px; }
.chart-ask[aria-expanded="true"] .chart-mark { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .chart-mark { transition: none; } }
html[data-calm="1"] .chart-mark { transition: none; }
.chart-answer { overflow: hidden; }
.chart-answer-body { padding: 0 var(--s-5) var(--s-5) calc(var(--s-5) + 2.6rem); color: var(--muted); }
.chart-answer-body p { margin: 0; max-width: var(--measure); }
.chart-aside {
  position: sticky;
  top: 6rem;
  background: var(--mist);
  border-radius: var(--r-3);
  padding: var(--s-6);
  display: grid;
  gap: var(--s-3);
  justify-items: start;
}
.chart-aside .h3 { margin: 0; }
.chart-aside p { margin: 0; }
.chart-aside-tel a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-h3);
  color: var(--teal-deep);
  text-decoration: none;
}
.chart-aside-tel a:hover { text-decoration: underline; }
@media (max-width: 56.24em) {
  .chart-layout { grid-template-columns: 1fr; }
  .chart-aside { position: static; }
}
@media (max-width: 37.49em) {
  .chart-ask { grid-template-columns: 2rem 1fr 1.5rem; padding: var(--s-4); }
  .chart-answer-body { padding: 0 var(--s-4) var(--s-4) calc(var(--s-4) + 2rem); }
}

/* ---------- 07 / reviews ---------- */
#reviews-06 { background: var(--mist); border-radius: var(--r-3); margin-inline: clamp(0rem, 1.5vw, 1.25rem); }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); list-style: none; }
.review-card { background: var(--white); border-radius: var(--r-2); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); }
.review-stars { color: var(--teal-deep); display: flex; gap: 2px; }
.review-stars svg { width: 18px; height: 18px; }
.review-card blockquote { margin: 0; flex: 1; color: var(--ink-3); }
.review-card cite { font-style: normal; }
.review-card cite strong { font-family: var(--font-display); display: block; font-size: var(--t-small); }
.review-card cite span { color: var(--muted); font-size: var(--t-small); }
@media (max-width: 63.99em) { .review-grid { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }

/* ---------- 08 / visit ---------- */
#visit-07 .visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(var(--s-6), 4vw, var(--s-8));
  align-items: start;
}
.visit-map {
  border-radius: var(--r-2);
  background:
    radial-gradient(circle at 62% 40%, var(--teal-tint) 0 8%, transparent 9%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(160deg, var(--mist) 0%, var(--white) 70%);
  background-size: 100% 100%, 44px 44px, 44px 44px, 100% 100%;
  border: 1px solid var(--line);
  min-height: 340px;
  position: relative;
  display: block;
  text-decoration: none;
}
.visit-map .map-pin {
  position: absolute;
  left: 62%;
  top: 40%;
  transform: translate(-50%, -100%);
  color: var(--teal-deep);
  width: 40px;
  height: 40px;
}
.visit-map .map-cta {
  position: absolute;
  left: var(--s-4);
  bottom: var(--s-4);
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-pill);
  padding: 0.55rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-small);
}
/* the room photo lives with the directions now, not over the headline */
.room-view { margin: 0 0 var(--s-7); }
.room-view img {
  width: 100%;
  border-radius: var(--r-3);
  aspect-ratio: 12 / 5;
  object-fit: cover;
}
.room-view figcaption { margin-top: var(--s-3); font-size: var(--t-small); color: var(--muted); }
.hours-table { width: 100%; border-collapse: collapse; font-size: var(--t-body); }
.hours-table th, .hours-table td { text-align: left; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.hours-table th { font-family: var(--font-display); font-weight: 600; }
.hours-table td { color: var(--muted); text-align: right; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--teal-deep); }
.visit-notes { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.visit-notes li { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--muted); font-size: var(--t-small); }
.visit-notes svg { width: 18px; height: 18px; color: var(--teal-deep); flex: none; margin-top: 0.15em; }
@media (max-width: 56.24em) { #visit-07 .visit-grid { grid-template-columns: 1fr; } }

/* ---------- 09 / cta band ---------- */
#cta-08 .cta-band {
  background: var(--grad-booking);
  color: var(--fg);
  border-radius: var(--r-3);
  padding: clamp(var(--s-7), 6vw, var(--s-9));
  text-align: center;
}
#cta-08 .cta-band .h2 { max-width: 34rem; margin-inline: auto; }
#cta-08 .cta-band p { max-width: 30rem; margin-inline: auto; color: var(--fg); }
#cta-08 .cta-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-6); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--mist); padding: var(--s-8) 0 var(--s-6); margin-top: var(--s-7); }
.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid rgba(237, 244, 246, 0.16);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-small);
  color: var(--teal-bright);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-block: var(--s-6);
}
.footer-grid h3 { font-size: var(--t-kicker); text-transform: uppercase; letter-spacing: var(--track-kicker); color: #9fb3b0; margin-bottom: var(--s-3); }
.footer-grid ul { list-style: none; display: grid; gap: var(--s-2); }
.footer-grid a { color: var(--mist); text-decoration: none; font-size: var(--t-small); }
.footer-grid a:hover { color: var(--teal-bright); }
.footer-grid p { color: #9fb3b0; font-size: var(--t-small); max-width: 24rem; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  justify-content: space-between;
  border-top: 1px solid rgba(237, 244, 246, 0.16);
  padding-top: var(--s-5);
  color: #9fb3b0;
  font-size: var(--t-small);
}
.footer-legal a { color: inherit; }
@media (max-width: 63.99em) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 37.49em) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- interior banner ---------- */
.banner {
  background: var(--mist);
  border-radius: var(--r-3);
  margin-inline: clamp(0rem, 1.5vw, 1.25rem);
  padding-block: clamp(3rem, 7vh, 5rem);
}
.banner .crumbs { list-style: none; display: flex; gap: var(--s-2); font-size: var(--t-small); color: var(--muted); margin-bottom: var(--s-4); }
.banner .crumbs a { color: inherit; }
.banner .crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--line-strong); }
.banner h1 { margin-bottom: var(--s-3); font-size: var(--t-h1); }
.banner p { color: var(--muted); max-width: var(--measure); margin: 0; }

/* ---------- services detail (interior) ---------- */
.detail-list { display: grid; gap: var(--s-6); }
.detail-card {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: clamp(var(--s-5), 3vw, var(--s-7));
  scroll-margin-top: 6rem;
}
.detail-card .detail-side h2 { font-size: var(--t-h3); margin-bottom: var(--s-2); }
.detail-card .detail-side p { color: var(--muted); font-size: var(--t-small); margin: 0 0 var(--s-4); }
.detail-facts { list-style: none; display: grid; gap: var(--s-2); font-size: var(--t-small); color: var(--muted); }
.detail-facts strong { font-family: var(--font-display); color: var(--ink); font-weight: 600; }
.detail-body h3 { font-size: 1.02rem; margin-bottom: var(--s-2); }
.detail-body p, .detail-body ul { color: var(--muted); max-width: var(--measure); }
.detail-body ul { list-style: none; display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.detail-body ul li { display: flex; gap: var(--s-3); align-items: flex-start; }
.detail-body ul svg { width: 18px; height: 18px; color: var(--teal-deep); flex: none; margin-top: 0.2em; }
@media (max-width: 56.24em) { .detail-card { grid-template-columns: 1fr; } }

/* ---------- before / after slider (services interior) ----------
   The range input IS the slider: native drag and arrow keys for free.
   Without JS the divider rests at the CSS default 50% and the control hides,
   so both labeled halves stay readable. */
#svc-ba-03 .ba-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(var(--s-6), 4vw, var(--s-8));
  align-items: start;
}
#svc-ba-03 .section-head { margin-bottom: 0; }
#svc-ba-03 .ba-col { margin-top: var(--s-7); } /* the interior page's one deliberate offset */
.ba-slider {
  --ba-pos: 50%;
  position: relative;
  border-radius: var(--r-2);
  overflow: clip;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  background: var(--mist);
}
.ba-pane { display: block; }
.ba-pane svg { display: block; width: 100%; height: auto; }
.ba-pane--after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--ba-pos)); }
.ba-tag {
  position: absolute;
  top: var(--s-3);
  background: var(--white);
  color: var(--ink-3);
  border-radius: var(--r-pill);
  padding: 0.3em 0.9em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-kicker);
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-1);
}
.ba-pane--before .ba-tag { left: var(--s-3); }
.ba-pane--after .ba-tag { right: var(--s-3); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos);
  width: 2px;
  margin-left: -1px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(20, 32, 31, 0.18);
  pointer-events: none;
}
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-1), 0 0 0 1px rgba(20, 32, 31, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230e7c6b' d='M8.5 7 4 12l4.5 5v-3.4h7V17L20 12l-4.5-5v3.4h-7Z'/%3E%3C/svg%3E");
  background-size: 20px 20px;
  background-position: center;
  background-repeat: no-repeat;
}
.ba-slider input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y; /* horizontal drags move the divider, vertical swipes still scroll */
}
.ba-slider:has(input[type="range"]:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
html:not(.js) .ba-slider input[type="range"], html:not(.js) .ba-handle::after { display: none; }
.ba-caption { margin: var(--s-3) 0 0; font-size: var(--t-small); color: var(--muted); }
@media (max-width: 56.24em) {
  #svc-ba-03 .ba-grid { grid-template-columns: 1fr; }
  #svc-ba-03 .ba-col { margin-top: 0; }
}

/* ---------- care sheets (print-first interior) ---------- */
.care-toolbar { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-bottom: var(--s-6); }
html:not(.js) .care-toolbar, html:not(.js) .sheet-print { display: none; }
.care-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
.care-sheet {
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--white);
  padding: clamp(var(--s-5), 3vw, var(--s-7));
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.care-grid .care-sheet:nth-child(even) { margin-top: var(--s-7); } /* the care page's one deliberate offset */
.care-sheet h2 { font-size: var(--t-h3); margin: 0; }
.care-sheet .care-intro { color: var(--muted); font-size: var(--t-small); margin: 0; }
.care-sheet h3 {
  font-size: var(--t-kicker);
  text-transform: uppercase;
  letter-spacing: var(--track-kicker);
  color: var(--teal-deep);
  margin: var(--s-2) 0 0;
}
/* custom markers in the site's motif: teal tooth for do-list, ringed dot for call-us list */
.sheet-list { list-style: none; display: grid; gap: var(--s-2); color: var(--muted); font-size: var(--t-small); }
.sheet-list li {
  padding-left: 1.7em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230e7c6b' d='M12 3c-2.5 0-3.4 1.4-5 1.4C5 4.4 3.5 6 3.5 8.5c0 2 1 3.4 1.8 5.2.8 1.9 1 6.3 2.6 6.3 1.7 0 1-4.5 4.1-4.5s2.4 4.5 4.1 4.5c1.6 0 1.8-4.4 2.6-6.3.8-1.8 1.8-3.2 1.8-5.2C20.5 6 19 4.4 17 4.4c-1.6 0-2.5-1.4-5-1.4Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 1.05em 1.05em;
  background-position: 0 0.25em;
}
.sheet-list--warn li {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8' fill='none' stroke='%23b3261e' stroke-width='2.5'/%3E%3Ccircle cx='12' cy='12' r='3' fill='%23b3261e'/%3E%3C/svg%3E");
}
.care-sheet .sheet-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; padding-top: var(--s-3); }
.sheet-fineprint { font-size: var(--t-small); color: var(--muted); margin: 0; max-width: var(--measure); }
@media (max-width: 56.24em) {
  .care-grid { grid-template-columns: 1fr; }
  .care-grid .care-sheet:nth-child(even) { margin-top: 0; }
}

/* ---------- 404 ---------- */
.err-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: var(--s-8); }
.err-page .err-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 20vw, 11rem);
  line-height: 1;
  color: var(--teal-tint);
  letter-spacing: -0.03em;
}
.err-page .err-code span { color: var(--teal-deep); }
.err-page h1 { font-size: var(--t-h2); }
.err-page .err-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-5); }

/* ---------- styleguide ---------- */
.sg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: var(--s-4); list-style: none; }
.sg-swatch { border: 1px solid var(--line); border-radius: var(--r-2); overflow: clip; }
.sg-swatch .sw { height: 4.5rem; }
.sg-swatch figcaption { padding: var(--s-3); font-size: var(--t-small); }
.sg-swatch code { font-size: 0.8rem; color: var(--muted); }
.sg-block { border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-6); margin-bottom: var(--s-6); }
.sg-block > h3 { font-size: var(--t-kicker); text-transform: uppercase; letter-spacing: var(--track-kicker); color: var(--muted); margin-bottom: var(--s-5); }

/* ---------- print ---------- */
@media print {
  .site-header, .menu-overlay, .skip-link, .intake-card, #cta-08, .site-footer,
  .care-toolbar, .sheet-print, .calm-switch, .ba-slider input[type="range"] { display: none; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
  /* care sheets are the print-first artifact: one sheet per page, no chrome */
  .care-sheet { border: 1px solid #999; break-inside: avoid; page-break-inside: avoid; }
  .care-grid { display: block; }
  .care-grid .care-sheet { margin: 0 0 1.5rem; }
  .care-grid .care-sheet + .care-sheet { page-break-before: always; }
  .sheet-list li { background: none; padding-left: 1.2em; text-indent: -1.2em; }
  .sheet-list li::before { content: "+ "; font-weight: 700; }
  .sheet-list--warn li::before { content: "! "; }
  /* printing a single sheet: main.js stamps body[data-print-sheet] first */
  body[data-print-sheet] .care-sheet { display: none; }
  body[data-print-sheet="filling"] #sheet-filling,
  body[data-print-sheet="extraction"] #sheet-extraction,
  body[data-print-sheet="crown"] #sheet-crown,
  body[data-print-sheet="whitening"] #sheet-whitening { display: flex; page-break-before: auto; }
}
