/* Santa Monica Orthodontics — site styles.
   Every colour comes from tokens.css. No hex values in this file. */

@import url("tokens.css");

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  font-size: clamp(var(--text-body-min), 1vw + 12px, var(--text-body-max));
  line-height: var(--leading-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 0.45em;
  letter-spacing: var(--track-display);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: var(--track-display-tight); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.on-paper  { background: var(--paper); }
.on-butter { background: var(--butter); }
.on-wash   { background: var(--wash); }

.utility {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-utility);
  letter-spacing: var(--track-utility);
  text-transform: uppercase;
  color: var(--ash);
}
.section-intro { max-width: 720px; margin-bottom: 40px; }
.section-intro .utility { display: block; margin-bottom: 10px; }
.caption { color: var(--ash); font-size: 0.85rem; }

.placeholder-note {
  background: var(--meringue);
  border: 1.5px dashed var(--placeholder-border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--ink);
}

/* ---------- Buttons — marigold only; ghost is the phone ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
}
.btn-book { background: var(--marigold); color: var(--ink); }
.btn-phone { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }

/* ---------- Brackets as a system ---------- */
.bk {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 3.4px;
  flex: none;
}
.bk--marigold { background: var(--marigold); }
.bk--coral    { background: var(--coral); }
.bk--magenta  { background: var(--magenta); }
.bk--teal     { background: var(--teal); }
.bk--sky      { background: var(--sky); }
.bk--empty    { background: var(--bracket-empty); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-cool);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 58px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; line-height: 1.1; letter-spacing: var(--track-display); }
.brand-name .utility { display: block; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav-drop > button {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
}
.nav > a:hover, .nav-drop > button:hover, .nav > a[aria-current="page"] { background: var(--meringue); }
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--paper);
  border: 1px solid var(--rule-cool);
  border-radius: 12px;
  padding: 8px;
  display: none;
}
.nav-drop.open .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
}
.nav-drop-menu a:hover { background: var(--meringue); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 7px 11px;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 0; }
.hero-cols { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero .utility { display: block; margin-bottom: 14px; }
.hero-sub { font-size: 1.12rem; max-width: 56ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-meta { color: var(--ash); font-size: 0.92rem; }
.hero-meta a { color: inherit; }
.hero-smile { padding: 44px 0 56px; }

/* photo placeholder blocks — no stock photography */
.photo-slot {
  background: var(--wash);
  border: 1.5px dashed var(--rule-cool);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ash);
  font-size: 0.9rem;
  padding: 18px;
}
.photo-slot.warm { background: var(--meringue); border-color: var(--placeholder-border); }

/* ---------- Cards / doors ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--paper);
  border: 1px solid var(--rule-cool);
  border-radius: 14px;
  padding: 26px;
}
.on-butter .card, .on-wash .card { border-color: var(--rule); }
.card .bk { margin-bottom: 16px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card .more { font-weight: 600; font-size: 0.95rem; }
.card ul { margin: 0; padding-left: 20px; }
.card li { margin-bottom: 6px; }

/* ---------- Before / after ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ba-grid.wide { grid-template-columns: repeat(2, 1fr); }
.ba-case { background: var(--paper); border: 1px solid var(--rule-cool); border-radius: 14px; overflow: hidden; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--rule-cool); }
.ba-pair figure { margin: 0; position: relative; }
.ba-pair img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.ba-pair figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.progress-wire { padding: 10px 18px; }
.ba-meta { padding: 4px 18px 14px; font-size: 0.88rem; color: var(--ash); }

/* Interactive before/after reveal slider */
.ba-slider { position: relative; aspect-ratio: 4 / 3; overflow: hidden; --pos: 88%; }
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-slider .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: var(--paper);
  pointer-events: none;
}
.ba-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--rule-cool);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.ba-tag {
  position: absolute;
  bottom: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  pointer-events: none;
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}
.ba-slider:has(.ba-range:focus-visible) { outline: 2.5px solid var(--teal); outline-offset: 2px; }

/* Illustration stand-ins */
.illo { margin: 0; }
.illo img { width: 100%; height: auto; border-radius: 14px; }
.illo figcaption { margin-top: 8px; }

/* Payment calculator */
.calc { max-width: 620px; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; }
.calc-row:first-child { margin-top: 0; }
.calc-row output { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.calc input[type="range"] { width: 100%; accent-color: var(--marigold); margin: 8px 0 4px; }
.calc-result {
  font-size: 1.05rem;
  margin: 22px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-cool);
}
.calc-result b { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; }

/* ---------- Five steps ---------- */
.steps-wire { margin: 30px 0 10px; }
.steps-labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; text-align: center; }
.steps-labels b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.steps-labels span { font-size: 0.88rem; color: var(--ash); }

/* ---------- Doctor ---------- */
.doctor-cols { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: center; }
.pullquote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 0 0 18px;
}

/* ---------- Reviews ---------- */
.review-card { display: flex; flex-direction: column; gap: 12px; }
.review-card blockquote { margin: 0; font-size: 0.98rem; flex: 1; }
.review-who { font-weight: 600; font-size: 0.92rem; }
.review-placeholder {
  background: var(--meringue);
  border: 1.5px dashed var(--placeholder-border);
}
.review-empty {
  border: 1.5px dashed var(--rule-cool);
  background: var(--wash);
  color: var(--ash);
}
.review-branch-head { display: flex; align-items: center; gap: 10px; margin: 34px 0 14px; }
.review-branch-head h3 { margin: 0; }
.review-top { display: flex; gap: 12px; align-items: center; }
.avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; }
.review-treat { font-size: 0.82rem; color: var(--ash); }

/* CTA ladder — strong (marigold button), medium (arrow link), soft (quiet line) */
.cta-medium { margin: 30px 0 0; }
.cta-medium a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2.5px solid var(--marigold);
  padding-bottom: 2px;
}
.cta-medium a:hover { border-bottom-width: 4px; }
.cta-soft { margin: 26px 0 0; color: var(--ash); font-size: 0.95rem; }
.cta-soft a { color: var(--ink); }

/* ---------- FAQ / Ask cards ---------- */
.ask-card { display: flex; gap: 14px; align-items: flex-start; }
.ask-card .bk { margin-top: 4px; }
.ask-q { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin: 0 0 6px; }
.ask-a { font-size: 0.95rem; color: var(--ash); margin: 0; }

/* ---------- Cost ---------- */
.cost-note { display: flex; align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.cost-note .caption { max-width: 46ch; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; }
.form-grid .full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule-cool);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
}
input:focus-visible, select:focus-visible, textarea:focus-visible,
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2.5px solid var(--teal);
  outline-offset: 2px;
}
.form-note { font-size: 0.85rem; color: var(--ash); }

/* ---------- Locations / contact ---------- */
.loc-card address { font-style: normal; margin-bottom: 10px; }
.loc-card .loc-phone { font-weight: 600; text-decoration: none; display: inline-block; margin-bottom: 10px; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.hours-table td { padding: 6px 0; border-bottom: 1px dashed var(--rule-cool); }
.hours-table td:last-child { text-align: right; font-weight: 500; }
.map-embed { border: 0; width: 100%; height: 280px; border-radius: 12px; margin-top: 16px; }

/* ---------- Close + footer ---------- */
.close-section { text-align: center; }
.close-section .hero-actions { justify-content: center; }
.close-smile { max-width: 860px; margin: 40px auto 0; }

.site-footer { background: var(--paper); border-top: 1px solid var(--rule-cool); padding: 56px 0 28px; font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; margin-bottom: 34px; }
.site-footer h3 { font-size: 0.95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--rule-cool); padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.8rem; color: var(--ash); }

/* ---------- Mobile booking bar — always one tap away ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--paper);
  border-top: 1px solid var(--rule-cool);
  padding: 10px 14px;
  gap: 10px;
}
.mobile-cta .btn { flex: 1; padding: 12px 10px; font-size: 0.95rem; }

/* ---------- Content pages ---------- */
.page-hero { padding: 64px 0 52px; }
.page-hero .utility { display: block; margin-bottom: 12px; }
.page-hero p { max-width: 62ch; font-size: 1.08rem; }
.content-cols { display: grid; grid-template-columns: 1fr 330px; gap: 48px; align-items: start; }
.content-main h2 { margin-top: 1.5em; }
.content-main h2:first-child { margin-top: 0; }
.sidebar-card { position: sticky; top: 92px; }
.sidebar-card .card { background: var(--butter); border-color: var(--rule); }
.sidebar-card .btn { width: 100%; margin-top: 8px; }

/* ---------- Smile animation — draws once on load, then still ---------- */
.smile-anim path {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: wire-draw 480ms ease-out forwards;
}
.smile-anim rect {
  opacity: 0;
  animation: bracket-pop 90ms ease-out forwards;
  animation-delay: calc(430ms + var(--i, 0) * 34ms);
}
@keyframes wire-draw { to { stroke-dashoffset: 0; } }
@keyframes bracket-pop { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .smile-anim path { animation: none; stroke-dashoffset: 0; }
  .smile-anim rect { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ---------- Editorial variant — same tokens, more air, finer lines ----------
   Applied when build.py runs with --editorial (body.variant-editorial).
   Silhouette stand-ins, thinner arch, gallery-like spacing. */
.variant-editorial .section { padding: 100px 0; }
.variant-editorial .page-hero { padding: 88px 0 72px; }
.variant-editorial .hero { padding-top: 96px; }
.variant-editorial h1 { font-weight: 700; font-size: clamp(2.3rem, 5.8vw, 4.1rem); }
.variant-editorial h2 { font-weight: 700; }
.variant-editorial .utility { letter-spacing: 0.24em; }
.variant-editorial .section-intro { margin-bottom: 52px; }
.variant-editorial .grid { gap: 30px; }
.variant-editorial .card {
  border: none;
  border-top: 1px solid var(--rule-cool);
  border-radius: 0;
  padding: 26px 4px 8px;
  background: transparent;
}
.variant-editorial .on-butter .card, .variant-editorial .on-wash .card { border-top-color: var(--rule); }
.variant-editorial .card.review-placeholder,
.variant-editorial .card.review-empty,
.variant-editorial .card.calc,
.variant-editorial .card.loc-card,
.variant-editorial .sidebar-card .card {
  border: 1.5px dashed var(--placeholder-border);
  border-radius: 10px;
  padding: 26px;
  background: var(--meringue);
}
.variant-editorial .card.review-empty { border-color: var(--rule-cool); background: var(--wash); }
.variant-editorial .card.calc, .variant-editorial .card.loc-card {
  border: 1px solid var(--rule-cool);
  background: var(--paper);
}
.variant-editorial .sidebar-card .card { border: 1px solid var(--rule); background: var(--butter); }
.variant-editorial .bk { width: 13px; height: 13px; border-radius: 2.5px; }
.variant-editorial .btn { padding: 13px 28px; letter-spacing: 0.01em; }
.variant-editorial .avatar circle { fill: var(--ink); }
.variant-editorial .illo img { border-radius: 4px; }
.variant-editorial .ba-case { border-radius: 4px; }
.variant-editorial .photo-slot { border-radius: 4px; }
.variant-editorial .brand-name { font-weight: 700; }
.variant-editorial .hero-sub { font-size: 1.16rem; }

/* Editorial colour-blocking v2 — blocks and frames in concert with the
   content. Rules: colour lives in the page gutters and behind images,
   never under words; every plane has a painted edge; marigold runners
   lead the eye to each next step. No gradients, no rainbow. */
.variant-editorial .hero,
.variant-editorial .page-hero,
.variant-editorial .section,
.variant-editorial .close-section { position: relative; overflow: hidden; }
.variant-editorial .hero > *,
.variant-editorial .page-hero > *,
.variant-editorial .section > *,
.variant-editorial .close-section > * { position: relative; z-index: 1; }

/* Gutter rails: planes occupy the margins beside the 1120px content
   column, kissing it but never crossing under text. */
.variant-editorial section.on-paper::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc((100% - 1180px) / 2);
  background: var(--teal-tint);
  border-right: 8px solid var(--teal);
}
.variant-editorial section.on-paper:nth-of-type(even)::before {
  left: auto;
  right: 0;
  background: var(--coral-tint);
  border-right: none;
  border-left: 8px solid var(--coral);
}
.variant-editorial section.on-wash::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: calc((100% - 1180px) / 2);
  background-image: radial-gradient(var(--magenta) 2px, transparent 2.2px);
  background-size: 16px 16px;
  opacity: 0.4;
  border-left: 8px solid var(--magenta-tint);
}
.variant-editorial .page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: calc((100% - 1180px) / 2);
  background: var(--sky-tint);
  border-left: 8px solid var(--marigold);
}
@media (max-width: 1260px) {
  .variant-editorial section.on-paper::before,
  .variant-editorial section.on-wash::before,
  .variant-editorial section.on-wash::after,
  .variant-editorial .page-hero::before { display: none; }
}

/* Portrait panels: the colour plane is anchored to the image itself —
   a sky backdrop with a marigold edge and a dot field tucked behind. */
.variant-editorial .hero-cols .illo,
.variant-editorial .doctor-cols .illo {
  position: relative;
  background: var(--sky-tint);
  border-left: 12px solid var(--marigold);
  padding: 30px;
}
.variant-editorial .hero-cols .illo::before,
.variant-editorial .doctor-cols .illo::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36%;
  height: 30%;
  background-image: radial-gradient(var(--sky) 2.2px, transparent 2.4px);
  background-size: 17px 17px;
}
.variant-editorial .hero-cols .illo img,
.variant-editorial .doctor-cols .illo img { position: relative; }
.variant-editorial .hero-cols .illo figcaption,
.variant-editorial .doctor-cols .illo figcaption { position: relative; margin-top: 12px; }

/* Close: a marigold-edged band that carries the closing smile only —
   the headline and buttons sit on clean butter above it. */
.variant-editorial .close-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: var(--marigold-tint);
  border-top: 8px solid var(--marigold);
}

/* Frames: ink borders with offset flat colour shadows */
.variant-editorial .illo img {
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: 12px 12px 0 var(--marigold);
}
.variant-editorial .illo { padding-right: 12px; padding-bottom: 6px; }
.variant-editorial .ba-case {
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: 12px 12px 0 var(--sky);
  margin-right: 12px;
}
.variant-editorial .photo-slot { border: 3px dashed var(--rule-cool); border-radius: 0; }
.variant-editorial .card.calc,
.variant-editorial .card.loc-card {
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: 12px 12px 0 var(--teal-tint);
}
.variant-editorial .avatar circle { fill: var(--ink); }

/* Marigold runners: the action colour physically leads to each next step */
.variant-editorial .cta-medium a::before {
  content: "";
  display: inline-block;
  width: 42px;
  height: 9px;
  background: var(--marigold);
  margin-right: 12px;
  vertical-align: 2px;
}
.variant-editorial .cta-soft::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--marigold);
  margin-right: 9px;
}

/* Buttons: comic outline + flat ink shadow */
.variant-editorial .btn-book {
  border: 2.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}
.variant-editorial .btn-book:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.variant-editorial .btn-phone { box-shadow: 5px 5px 0 var(--bracket-empty); }

/* ---------- Spa variant (Option 3) — wellness, warm, upscale ----------
   Applied by build.py --spa. Works mostly by remapping the token layer:
   grounds go cream/sage, the five spectrum roles become clay/umber/
   forest/moss/mist, display type becomes a serif, images sit in
   arch-top frames. All values come from tokens.css. */
.variant-spa {
  --paper: var(--spa-bone);
  --butter: var(--spa-linen);
  --meringue: var(--spa-clay-tint);
  --wash: var(--spa-sage);
  --ink: var(--spa-ink);
  --ash: var(--spa-stone);
  --rule: var(--spa-rule);
  --rule-cool: var(--spa-rule-2);
  --wire: var(--spa-wire);
  --marigold: var(--spa-clay);
  --coral: var(--spa-umber);
  --magenta: var(--spa-forest);
  --teal: var(--spa-moss);
  --sky: var(--spa-mist);
  --marigold-tint: var(--spa-clay-tint);
  --coral-tint: var(--spa-clay-tint);
  --magenta-tint: var(--spa-green-tint);
  --teal-tint: var(--spa-green-tint);
  --sky-tint: var(--spa-green-tint);
  --placeholder-border: var(--spa-rule);
  --font-display: var(--font-display-spa);
  background: var(--spa-bone);
}
.variant-spa h1, .variant-spa h2, .variant-spa h3,
.variant-spa .pullquote, .variant-spa .brand-name,
.variant-spa .ask-q, .variant-spa .calc-row output, .variant-spa .calc-result b {
  font-family: var(--font-display-spa);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.variant-spa h1 { font-size: clamp(2.4rem, 5.8vw, 4.3rem); line-height: 1.04; }
.variant-spa h2 { font-weight: 500; }
.variant-spa h3 { font-weight: 600; font-size: 1.2rem; }
.variant-spa .hero-sub { font-size: 1.14rem; }
.variant-spa .section { padding: 104px 0; }
.variant-spa .page-hero { padding: 92px 0 76px; }
.variant-spa .hero { padding-top: 100px; }
.variant-spa .section-intro { margin-bottom: 54px; }
.variant-spa .utility { letter-spacing: 0.22em; font-weight: 500; }

/* buttons: clay pill, bone text */
.variant-spa .btn-book { background: var(--spa-clay); color: var(--spa-bone); }
.variant-spa .btn-phone { border-color: var(--spa-forest); color: var(--spa-forest); }

/* cards: quiet hairlines, no boxes */
.variant-spa .card {
  border: none;
  border-top: 1px solid var(--spa-rule);
  border-radius: 0;
  padding: 28px 4px 10px;
  background: transparent;
}
.variant-spa .card.review-placeholder,
.variant-spa .sidebar-card .card {
  border: 1px solid var(--spa-rule);
  border-radius: 18px;
  padding: 26px;
  background: var(--spa-linen);
}
.variant-spa .card.review-empty {
  border: 1px dashed var(--spa-rule-2);
  border-radius: 18px;
  padding: 26px;
  background: var(--spa-sage);
}
.variant-spa .card.calc, .variant-spa .card.loc-card {
  border: 1px solid var(--spa-rule);
  border-radius: 18px;
  padding: 28px;
  background: var(--spa-bone);
}
.variant-spa .bk { width: 12px; height: 12px; border-radius: 50%; }

/* arch-top frames: images sit in doorway arches — the quiet orthodontic pun */
.variant-spa .illo img,
.variant-spa .photo-slot {
  border: none;
  border-radius: 999px 999px 18px 18px;
  box-shadow: none;
}
.variant-spa .illo { padding: 0; }
.variant-spa .ba-case {
  border: none;
  border-radius: 999px 999px 18px 18px;
  box-shadow: none;
  margin: 0;
  background: var(--spa-linen);
  padding-bottom: 4px;
}
.variant-spa .ba-slider { border-radius: 999px 999px 0 0; }
.variant-spa .avatar circle { fill: var(--spa-forest); }

/* the close: a deep forest room */
.variant-spa .close-section { background: var(--spa-forest); }
.variant-spa .close-section h2 { color: var(--spa-bone); }
.variant-spa .close-section .btn-phone { border-color: var(--spa-bone); color: var(--spa-bone); }
.variant-spa .close-section .caption { color: var(--spa-sage); }

/* header + footer on bone */
.variant-spa .site-header { background: var(--spa-bone); border-bottom-color: var(--spa-rule); }
.variant-spa .nav > a:hover, .variant-spa .nav-drop > button:hover,
.variant-spa .nav > a[aria-current="page"] { background: var(--spa-linen); }
.variant-spa .site-footer { background: var(--spa-linen); border-top-color: var(--spa-rule); }

/* medium CTA: serif italic with clay underline; soft CTA: clay dot */
.variant-spa .cta-medium a {
  font-family: var(--font-display-spa);
  font-style: italic;
  font-weight: 500;
  font-size: 1.08rem;
  border-bottom-width: 1.5px;
}
.variant-spa .cta-soft::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--spa-clay);
  margin-right: 9px;
}

/* ---------- Coast variant (Option 4) — Santa Monica sun, modernist spa ---
   Applied by build.py --coast. Yellows lead on warm shell grounds; palm
   green and ocean anchor it as adult. Serif display, annotated face map,
   wave hairlines. All values from tokens.css. */
.variant-coast {
  --paper: var(--coast-sand);
  --butter: var(--coast-butter);
  --meringue: var(--coast-dune);
  --wash: var(--coast-green-tint);
  --ash: var(--coast-stone);
  --rule: var(--coast-rule);
  --rule-cool: var(--coast-rule);
  --magenta: var(--coast-palm);     /* jaw/deep accent becomes palm green */
  --teal: var(--coast-ocean);
  --magenta-tint: var(--coast-green-tint);
  --teal-tint: var(--coast-ocean-tint);
  --sky-tint: var(--coast-ocean-tint);
  --coral-tint: var(--coast-dune);
  --marigold-tint: var(--coast-butter);
  --placeholder-border: var(--coast-rule);
  --font-display: var(--font-display-spa);
  background: var(--coast-sand);
}
.variant-coast h1, .variant-coast h2, .variant-coast h3,
.variant-coast .pullquote, .variant-coast .brand-name,
.variant-coast .ask-q, .variant-coast .calc-row output, .variant-coast .calc-result b {
  font-family: var(--font-display-spa);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.variant-coast h1 { font-size: clamp(2.4rem, 5.9vw, 4.4rem); line-height: 1.03; }
.variant-coast .section { padding: 100px 0; }
.variant-coast .page-hero { padding: 90px 0 74px; }
.variant-coast .hero { padding-top: 96px; }
.variant-coast .utility { letter-spacing: 0.22em; font-weight: 500; }
.variant-coast .section-intro { margin-bottom: 50px; }

/* sunshine moments: hero + close carry a full marigold edge */
.variant-coast .hero { border-bottom: 12px solid var(--marigold); }
.variant-coast .close-section { border-top: 12px solid var(--marigold); }

/* the face map */
.face-map { width: 100%; height: auto; display: block; }
.face-map-label {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  fill: var(--ink);
}

/* wave hairline */
.wave-rule { width: 190px; height: auto; margin-top: 16px; display: block; }

/* cards: dune fills, soft organic radius */
.variant-coast .card {
  border: none;
  border-radius: 22px;
  background: var(--coast-dune);
  padding: 28px;
}
.variant-coast .card.review-empty { background: var(--coast-green-tint); border: 1px dashed var(--coast-rule); }
.variant-coast .illo img, .variant-coast .photo-slot { border-radius: 22px; border: none; box-shadow: none; }
.variant-coast .illo { padding: 0; }
.variant-coast .ba-case {
  border: none;
  border-radius: 22px;
  box-shadow: none;
  margin: 0;
  background: var(--coast-dune);
  overflow: hidden;
}
.variant-coast .ba-slider { border-radius: 22px 22px 0 0; }
.variant-coast .bk { border-radius: 50%; width: 13px; height: 13px; }
.variant-coast .avatar circle { fill: var(--coast-palm); }

/* buttons: marigold pill stays the action; phone outlines in palm */
.variant-coast .btn-phone { border-color: var(--coast-palm); color: var(--coast-palm); }

/* header/footer on shell */
.variant-coast .site-header { background: var(--coast-sand); border-bottom-color: var(--coast-rule); }
.variant-coast .nav > a:hover, .variant-coast .nav-drop > button:hover,
.variant-coast .nav > a[aria-current="page"] { background: var(--coast-butter); }
.variant-coast .site-footer { background: var(--coast-dune); border-top-color: var(--coast-rule); }

/* CTA voices */
.variant-coast .cta-medium a {
  font-family: var(--font-display-spa);
  font-style: italic;
  font-size: 1.08rem;
  border-bottom-width: 1.5px;
}
.variant-coast .cta-soft::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--marigold);
  margin-right: 9px;
}

/* ---------- Real photography ---------- */
.photo-frame {
  width: 100%;
  height: auto;
  border-radius: 22px;
  object-fit: cover;
  display: block;
}
.office-grid .photo-frame { aspect-ratio: 1; }
.glass-media .photo-frame { border-radius: 16px; }
.doctor-cols .photo-frame { aspect-ratio: 4 / 5; }

/* ---------- Coastal motion scenes (coast variant) ----------
   Animated palms and waves behind frosted-glass text panels. A real
   video dropped at assets/video/coast-*.mp4 automatically takes over
   the scene (JS removes the element if the file is missing). */
.scene-host { position: relative; overflow: hidden; }
.scene-host > .wrap, .scene-host > .hero-smile, .scene-host > .close-smile { position: relative; z-index: 2; }
.scene { position: absolute; inset: 0; z-index: 0; }
.scene-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.42;
  filter: saturate(1.1);
}
.scene-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene.video-live .scene-svg { display: none; }
.drift { will-change: transform; }
.drift-far { animation: scene-drift 70s linear infinite; }
.drift-near { animation: scene-drift 30s linear infinite; filter: blur(2.5px); opacity: 0.9; }
.scene-waves .drift-far { animation-duration: 26s; }
.scene-waves .drift-near { animation-duration: 14s; filter: blur(1.5px); }
.wave-slow { animation: scene-bob 7s ease-in-out infinite alternate; }
@keyframes scene-drift { to { transform: translateX(-1440px); } }
@keyframes scene-bob { to { transform: translateY(6px); } }

.glass {
  background: color-mix(in srgb, var(--paper) 74%, transparent);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid color-mix(in srgb, var(--paper) 55%, transparent);
  border-radius: 24px;
  padding: 40px 42px;
}
.glass-media { padding: 18px; }
.glass-center { display: inline-block; text-align: center; padding: 40px 56px; }

@media (prefers-reduced-motion: reduce) {
  .drift, .wave-slow { animation: none; }
  .scene-video { display: none; }
}
@media (max-width: 720px) {
  .glass { padding: 26px 22px; }
}

/* ---------- Coast feedback round: badge, annotations, centerstage ---------- */
.badge-name {
  font-family: var(--font-display-spa);
  font-style: italic;
  font-weight: 500;
  font-size: 31px;
  fill: var(--ink);
}
.badge-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 4.5px;
  fill: var(--ash);
}
.variant-coast .brand-badge { width: 132px; }
.variant-coast .site-header .wrap { padding-top: 8px; padding-bottom: 8px; }

/* annotated real photo */
.anno-cols { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.anno-photo { position: relative; }
.anno-photo .photo-frame { width: 100%; }
.anno-chip {
  position: absolute;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.14);
}
.anno-chip i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--marigold);
  border: 2px solid var(--ink);
  flex: none;
}
.anno-chip.anno-flip { transform: translate(-100%, -50%); }
.photo-band { margin-top: 26px; gap: 14px; }
.photo-band .photo-frame { aspect-ratio: 4 / 3; }

/* office: centerstage — wide, big tiles, exterior leading */
.variant-coast .office-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.variant-coast .office-grid .photo-frame { aspect-ratio: 16 / 10; height: 100%; }
.variant-coast .office-grid > :first-child { grid-column: 1 / -1; }
.variant-coast .office-grid > :first-child.photo-frame,
.variant-coast .office-grid > img:first-child { aspect-ratio: 21 / 9; }

/* money block: unmistakably the money section */
.variant-coast .money-section {
  background: var(--marigold-tint);
  border-top: 12px solid var(--marigold);
  border-bottom: 12px solid var(--marigold);
}
.money-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.money-options { gap: 14px; }
.variant-coast .money-mini { background: var(--paper); border-radius: 16px; padding: 20px; }
.variant-coast .money-mini h3 { font-size: 1.05rem; margin-bottom: 4px; }
.variant-coast .money-mini p { margin: 0; font-size: 0.92rem; }
.variant-coast .money-section .calc { max-width: none; background: var(--paper); border-radius: 16px; }

/* tighter rhythm — less white space across coast */
.variant-coast .section { padding: 64px 0; }
.variant-coast .page-hero { padding: 72px 0 60px; }
.variant-coast .hero { padding-top: 72px; }
.variant-coast .section-intro { margin-bottom: 34px; }
.variant-coast .hero-smile { padding: 30px 0 40px; }

@media (max-width: 980px) {
  .anno-cols, .money-cols { grid-template-columns: 1fr; }
  .anno-chip { font-size: 0.78rem; }
}

/* ---------- Popping CTAs after photo sections ---------- */
.cta-pop { text-align: center; margin-top: 44px; }
.cta-pop-line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  margin: 0 0 16px;
}
.btn-big { padding: 18px 46px; font-size: 1.12rem; }
.cta-pop-sub { margin-top: 10px; }
.variant-coast .cta-pop .btn-book {
  box-shadow: 0 10px 28px color-mix(in srgb, var(--marigold) 55%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: cta-nudge 7s ease-in-out infinite;
}
.variant-coast .cta-pop .btn-book:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--marigold) 70%, transparent);
}
@keyframes cta-nudge {
  0%, 90%, 100% { transform: none; }
  93% { transform: scale(1.045); }
  96% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .variant-coast .cta-pop .btn-book { animation: none; }
}
.calc-tag {
  font-weight: 600;
  font-size: 1.02rem;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-cool);
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav > a, .nav-drop > button { padding: 10px 9px; font-size: 0.9rem; }
}
@media (max-width: 980px) {
  .grid-3, .grid-4, .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cols, .doctor-cols, .content-cols { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-labels { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .steps-wire { display: none; }
}
@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--rule-cool);
    padding: 10px 16px 18px;
  }
  .nav.open { display: flex; }
  .nav-drop-menu { position: static; border: 0; padding-left: 14px; }
  .menu-toggle { display: block; }
  .header-cta .btn-book { display: none; }
  .grid-2, .grid-3, .grid-4, .ba-grid, .ba-grid.wide, .form-grid { grid-template-columns: 1fr; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 66px; }
  .section { padding: 48px 0; }
  .hero { padding-top: 48px; }
}
