/* Dental Square concept, v2: "Shade", content-first.
   Dark obsidian ground, real photography, porcelain accents (--shade, written by site.js),
   one lamp-blue accent for actions. Normal type scale; the shade guide is an extra, not the menu. */

:root {
  --sc-canvas:     #0B0C10;
  --sc-surface:    #13151B;
  --sc-ink:        #EEE9E0;
  --sc-ink-soft:   #ADA79D;
  --sc-accent:     #7D92FF;
  --sc-accent-ink: #0B0C10;
  --sc-font-display: "Archivo", system-ui, sans-serif;
  --sc-font-text:    "Geist", system-ui, sans-serif;
  --sc-font-mono:    "Geist Mono", ui-monospace, monospace;
  --sc-shadow-color: 230 30% 3%;

  --shade: #C39860;          /* live, from site.js */
  --obsidian: #0B0C10;
  --lamp: #7D92FF;
  --lamp-deep: #2F49D8;
  --bar-h: 72px;
  --rail: 0px;               /* room kept clear for the shade guide */
  --r: 12px;
}
@media (min-width: 1100px) { :root { --rail: 112px; } }
@media (max-width: 699.98px) { :root { --bar-h: 60px; } }

html { background: var(--sc-canvas); scroll-padding-top: var(--bar-h); }
body {
  margin: 0; background: var(--sc-canvas); color: var(--sc-ink);
  font-family: var(--sc-font-text); font-size: var(--sc-t-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--shade); color: var(--obsidian); }
a { color: inherit; text-underline-offset: 0.2em; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: 6px;
  background: var(--shade); color: var(--obsidian); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform 160ms var(--sc-ease-out);
}
.skip:focus-visible { transform: none; }

.wrap { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: var(--sc-gutter); padding-right: calc(var(--sc-gutter) + var(--rail)); box-sizing: border-box; }
.sec { padding-block: clamp(4.5rem, 8vw, 7.5rem); }
.h2 {
  margin: 0; font-family: var(--sc-font-display); font-variation-settings: "wdth" 100; font-weight: 650;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.3rem); line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance;
}
.h2 em, .hero__h em { font-style: normal; color: var(--shade); }
.lede { margin: var(--sc-4) 0 0; font-size: var(--sc-t-lg); line-height: 1.5; color: var(--sc-ink-soft); max-width: 40rem; text-wrap: pretty; }
.small { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); text-wrap: pretty; }
.kicker { margin: 0 0 var(--sc-3); font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--shade); }
.tag { margin: var(--sc-3) 0 0; font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); letter-spacing: 0.04em; color: var(--shade); }
h3 { font-family: var(--sc-font-display); font-variation-settings: "wdth" 100; font-weight: 600; letter-spacing: -0.01em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent;
  background: var(--lamp); color: var(--obsidian);
  font-weight: 600; font-size: var(--sc-t-sm); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  box-shadow: var(--sc-e2);
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out);
}
.btn--sm { min-height: 40px; padding: 0 16px; }
.btn--ghost { background: transparent; color: var(--sc-ink); border-color: rgb(238 233 224 / 0.3); box-shadow: none; }
.btn--dark { background: var(--obsidian); color: #F7F4EC; }
.btn--line { background: transparent; color: var(--obsidian); border-color: rgb(11 12 16 / 0.4); box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #97A8FF; }
  .btn--ghost:hover { background: rgb(238 233 224 / 0.08); border-color: rgb(238 233 224 / 0.5); }
  .btn--dark:hover { background: #24262E; }
  .btn--line:hover { background: rgb(11 12 16 / 0.06); }
}
.btn:active { transform: translateY(1px) scale(0.98); }

/* ===================================================================== BAR */
.bar {
  position: fixed; z-index: 80; inset: 0 0 auto 0; height: var(--bar-h);
  display: flex; align-items: center; gap: var(--sc-6);
  padding: 0 var(--sc-gutter);
  transition: background-color 240ms var(--sc-ease-out), box-shadow 240ms var(--sc-ease-out);
}
.is-scrolled .bar, .menu-open .bar { background: rgb(11 12 16 / 0.96); box-shadow: 0 1px 0 rgb(255 255 255 / 0.07); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sc-ink); flex: none; }
.brand__mark { width: 30px; height: 30px; color: rgb(238 233 224 / 0.55); }
.brand__name { font-family: var(--sc-font-display); font-variation-settings: "wdth" 112; font-weight: 400; font-size: 1.15rem; letter-spacing: 0.005em; }
.brand__name b { font-weight: 750; }
.bar__nav { display: flex; gap: clamp(0.9rem, 1.6vw, 1.6rem); margin-left: auto; }
.bar__nav a { font-size: 0.92rem; color: var(--sc-ink-soft); text-decoration: none; padding: 6px 0; transition: color 150ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) { .bar__nav a:hover { color: var(--sc-ink); } }
.bar__nav a.is-here { color: var(--sc-ink); box-shadow: 0 2px 0 var(--shade); }
.bar__actions { display: flex; align-items: center; gap: var(--sc-4); }
.bar__phone { font-size: 0.92rem; font-weight: 500; text-decoration: none; color: var(--sc-ink); white-space: nowrap; }
.bar__menu {
  display: none; min-height: 40px; padding: 0 14px; border-radius: 8px;
  background: transparent; color: var(--sc-ink); border: 1px solid rgb(238 233 224 / 0.3);
  font: 600 0.88rem var(--sc-font-text); cursor: pointer;
}
@media (max-width: 1239.98px) { .bar__nav { display: none; } .bar__menu { display: inline-flex; align-items: center; } .bar__actions { margin-left: auto; } }
@media (max-width: 1399.98px) { .bar__phone { display: none; } }
@media (max-width: 479.98px) { .bar .btn--sm { display: none; } }

.drawer {
  position: fixed; z-index: 79; inset: var(--bar-h) 0 0 0; overflow-y: auto;
  background: var(--obsidian); padding: var(--sc-6) var(--sc-gutter) calc(var(--sc-8) + 70px);
}
.drawer[hidden] { display: none; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  padding: 14px 0; border-bottom: 1px solid rgb(255 255 255 / 0.08); text-decoration: none;
  font-family: var(--sc-font-display); font-weight: 550; font-size: var(--sc-t-xl); letter-spacing: -0.01em;
}
.drawer__call { margin: var(--sc-6) 0 0; }
.drawer__call a { color: var(--shade); font-weight: 600; font-size: var(--sc-t-lg); }

/* =================================================================== GUIDE */
.guide {
  position: fixed; z-index: 70; right: 0; top: calc(50% + var(--bar-h) / 2); transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end; pointer-events: none;
}
.guide > * { pointer-events: auto; }
.guide__title, .guide__hint {
  margin: 0; padding-right: 16px; font-family: var(--sc-font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sc-ink-soft); transition: color 240ms var(--sc-ease-out), opacity 300ms var(--sc-ease-out);
}
.guide__title { margin-bottom: 10px; }
.guide__hint { width: 112px; box-sizing: border-box; margin-top: 12px; text-align: right; text-transform: none; letter-spacing: 0; line-height: 1.35; font-size: 0.7rem; }
.is-past-hero .guide__hint { opacity: 0; }
.guide__tabs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.tab { position: relative; display: flex; align-items: center; width: 100px; height: 34px; text-decoration: none; transform: translateX(24px); transition: transform 260ms var(--sc-ease-out); }
.tab.is-active { transform: translateX(0); }
@media (hover: hover) and (pointer: fine) { .tab:hover { transform: translateX(-6px); } }
.tab:focus-visible { transform: translateX(-6px); outline-offset: 2px; }
.tab__tip {
  flex: none; width: 30px; height: 25px; margin-right: -4px; z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 38% 36%, rgb(255 255 255 / 0.55), transparent 70%),
    linear-gradient(90deg, color-mix(in oklab, var(--c) 78%, #8FA2C4) 0%, var(--c) 28%, var(--c) 72%, color-mix(in oklab, var(--c) 82%, #7A5A33) 100%);
  border-radius: 58% 22% 22% 58% / 50% 34% 34% 50%;
  box-shadow: 0 3px 6px rgb(0 0 0 / 0.45), inset 0 1px 0 rgb(255 255 255 / 0.45);
}
.tab.is-active .tab__tip { box-shadow: 0 0 0 2px var(--sc-ink), 0 3px 6px rgb(0 0 0 / 0.45); }
.tab__code {
  flex: 1; height: 18px; display: flex; align-items: center; padding-left: 11px;
  background: linear-gradient(180deg, #5A5E69 0%, #3A3D46 45%, #262830 100%); border-radius: 0 2px 2px 0;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 2px 4px rgb(0 0 0 / 0.4);
  font-family: var(--sc-font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.04em; color: #E2E4EA;
}
.tab__name {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%);
  white-space: nowrap; padding: 6px 10px; border-radius: 6px; background: var(--sc-surface); color: var(--sc-ink);
  font-size: 0.8rem; font-weight: 500; box-shadow: var(--sc-e2); opacity: 0; pointer-events: none;
  transition: opacity 160ms var(--sc-ease-out), transform 160ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) { .tab:hover .tab__name { opacity: 1; transform: translate(0, -50%); } }
.tab:focus-visible .tab__name { opacity: 1; transform: translate(0, -50%); }
.is-light .guide__title, .is-light .guide__hint { color: #3A352C; }
.is-light .tab.is-active .tab__tip { box-shadow: 0 0 0 2px var(--obsidian), 0 3px 6px rgb(0 0 0 / 0.3); }

@media (max-width: 1099.98px) {
  .guide {
    top: auto; bottom: 0; left: 0; right: 0; transform: none;
    flex-direction: row; align-items: center; justify-content: center;
    padding: 4px 12px calc(4px + env(safe-area-inset-bottom));
    background: rgb(11 12 16 / 0.97); border-top: 1px solid rgb(255 255 255 / 0.08);
  }
  .guide__title { display: block; margin: 0 10px 0 0; padding: 0; }
  .is-light .guide__title { color: var(--sc-ink-soft); }
  .guide__hint { display: none; }
  .guide__tabs { flex-direction: row; gap: 4px; }
  .tab { width: 34px; height: 44px; justify-content: center; transform: translateY(5px); }
  .tab.is-active { transform: translateY(-2px); }
  .is-light .tab.is-active .tab__tip { box-shadow: 0 0 0 2px var(--sc-ink), 0 3px 6px rgb(0 0 0 / 0.45); }
  .tab__tip { width: 22px; height: 26px; margin: 0; border-radius: 34% 34% 50% 50% / 26% 26% 74% 74%;
    background:
      radial-gradient(ellipse 50% 50% at 36% 36%, rgb(255 255 255 / 0.55), transparent 70%),
      linear-gradient(180deg, color-mix(in oklab, var(--c) 82%, #7A5A33) 0%, var(--c) 30%, var(--c) 72%, color-mix(in oklab, var(--c) 78%, #8FA2C4) 100%); }
  .tab__code, .tab__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }
  body { padding-bottom: 56px; }
}

/* ==================================================================== HERO */
.hero__h {
  margin: 0; font-family: var(--sc-font-display); font-variation-settings: "wdth" 100; font-weight: 680;
  font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance;
}
.hero__sub { margin: var(--sc-5) 0 0; font-size: var(--sc-t-lg); line-height: 1.5; color: #CFC9BF; max-width: 34rem; text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--sc-3); margin-top: var(--sc-6); }

.hx { --rv: 0.08; --mx: 0; --my: 0; --zoom: 0; background: var(--sc-canvas); }
.hx__scene {
  position: absolute; top: 0; bottom: 0; left: 16%; right: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
}
.hx__plate {
  position: absolute; left: 5%; width: 92%; top: 50%; margin-top: -18.4%; aspect-ratio: 2.5 / 1;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  transform: translate3d(calc(var(--mx) * -16px), calc(var(--my) * -12px), 0) scale(calc(1.08 - var(--zoom) * 0.06));
  will-change: transform;
}
.hx__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; display: block; }
.hx__img--before { filter: saturate(0.92) brightness(0.86); }
.hx__img--after { filter: brightness(0.96); clip-path: inset(0 calc((1 - var(--rv)) * 100%) 0 0); }
/* the light: a bright core with a soft bloom, riding the reveal edge */
.hx__line {
  position: absolute; top: 0; bottom: 0; left: calc(var(--rv) * 100%); width: 2px; margin-left: -1px;
  background: linear-gradient(to bottom, transparent, #F4F6FF 12%, #FFFFFF 50%, #F4F6FF 88%, transparent);
  opacity: var(--line-on, 1);
}
.hx__line::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -90px; width: 180px;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgb(205 216 255 / 0.32), rgb(125 146 255 / 0.1) 45%, transparent 72%);
}
.hx__chip {
  position: absolute; top: calc(var(--bar-h) + 22px); padding: 4px 10px; border-radius: 6px;
  background: rgb(11 12 16 / 0.74); color: #fff; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
}
.hx__chip--a { right: 14px; } .hx__chip--b { left: 14px; }
.hx__dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hx__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(11 12 16 / 0.95) 0%, rgb(11 12 16 / 0.86) 32%, rgb(11 12 16 / 0.3) 54%, transparent 68%),
    radial-gradient(ellipse 90% 80% at 62% 50%, transparent 55%, rgb(11 12 16 / 0.6) 100%),
    linear-gradient(to top, rgb(11 12 16 / 0.7), transparent 22%);
}
.hx__copy { position: absolute; z-index: 4; left: var(--sc-gutter); top: 50%; transform: translateY(-44%); width: min(44vw, 40rem); }
.hx__caption {
  position: absolute; z-index: 4; right: calc(var(--sc-gutter) + var(--rail)); bottom: 5vh; margin: 0; max-width: 30ch;
  font-size: var(--sc-t-sm); line-height: 1.45; color: #E6E1D8; text-align: right;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.6);
}

/* the entrance: photo eases in from a soft blur, headline lines rise, then the rest fades up */
.hx__ln { display: block; width: fit-content; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hx__ln > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .hx__plate { opacity: 0; filter: blur(14px); transform: scale(1.18); transition: opacity 1.2s var(--sc-ease-out), filter 1.6s var(--sc-ease-out), transform 2.2s var(--sc-ease-out); }
  .js .hx__line { transform: scaleY(0); transition: transform 1s var(--sc-ease-out) 0.7s; }
  .js .hx__ln > span { transform: translateY(105%); transition: transform 0.9s var(--sc-ease-out); }
  .js .hx__ln + .hx__ln > span { transition-delay: 0.1s; }
  .js .hx__ln + .hx__ln + .hx__ln > span { transition-delay: 0.2s; }
  .js .hx__fade { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--sc-ease-out) 0.45s, transform 0.7s var(--sc-ease-out) 0.45s; }
  .js .hx__fade + .hx__fade { transition-delay: 0.55s; }
  .js .hx__chip { opacity: 0; transition: opacity 0.6s var(--sc-ease-out) 1.4s; }
  .js.hx-ready .hx__plate { opacity: 1; filter: none; transform: translate3d(calc(var(--mx) * -16px), calc(var(--my) * -12px), 0) scale(calc(1.08 - var(--zoom) * 0.06)); }
  .js.hx-ready.hx-settled .hx__plate { transition: none; }
  .js.hx-ready .hx__line { transform: none; }
  .js.hx-ready .hx__ln > span, .js.hx-ready .hx__fade { transform: none; opacity: 1; }
  .js.hx-ready .hx__chip { opacity: 1; }
}

@media (max-width: 899.98px) {
  .hx__plate { left: -40%; width: 180%; margin-top: -36%; }
  .hx__scene { left: 0; top: 40svh; bottom: 56px; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%); mask-image: linear-gradient(to bottom, transparent 0%, #000 22%); }
  .hx__shade { background: linear-gradient(to bottom, rgb(11 12 16 / 0.96) 0%, rgb(11 12 16 / 0.85) 40%, transparent 58%), linear-gradient(to top, rgb(11 12 16 / 0.6), transparent 25%); }
  .hx__copy { top: calc(var(--bar-h) + 3svh); transform: none; width: auto; right: var(--sc-gutter); }
  .hero__h { font-size: clamp(2.1rem, 8.4vw, 3rem); }
  .hero__sub { font-size: var(--sc-t-base); margin-top: var(--sc-4); }
  .hero__ctas { margin-top: var(--sc-5); }
  .hx__chip { top: auto; bottom: 16px; }
  .hx__caption { left: var(--sc-gutter); right: var(--sc-gutter); bottom: calc(56px + 40px); text-align: left; max-width: none; font-size: var(--sc-t-xs); padding: 6px 10px; border-radius: 6px; background: rgb(11 12 16 / 0.82); text-shadow: none; }
}

/* ================================================================== GLANCE */
.glance { border-block: 1px solid rgb(255 255 255 / 0.08); background: #0E0F14; }
.glance__list {
  list-style: none; margin: 0 auto; max-width: 80rem; box-sizing: border-box;
  padding: var(--sc-6) calc(var(--sc-gutter) + var(--rail)) var(--sc-6) var(--sc-gutter);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sc-5);
}
.glance__list li { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); line-height: 1.45; }
.glance__list b { display: block; color: var(--sc-ink); font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-lg); margin-bottom: 2px; }
@media (max-width: 899.98px) { .glance__list { grid-template-columns: 1fr 1fr; } }

/* ============================================================= TREATMENTS */
.sec__head { margin-bottom: var(--sc-8); }
.ledger { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 5rem); }
.ledger__item { padding: var(--sc-6) 0; border-top: 1px solid rgb(255 255 255 / 0.1); }
.ledger__item h3 { margin: 0 0 var(--sc-2); font-size: var(--sc-t-xl); }
.ledger__item p { margin: 0; color: var(--sc-ink-soft); max-width: 38rem; }
.ledger__item .tag { margin-top: var(--sc-3); }
.also { margin: var(--sc-7) 0 0; padding-top: var(--sc-6); border-top: 1px solid rgb(255 255 255 / 0.1); color: var(--sc-ink-soft); max-width: 62rem; }
.also b { color: var(--sc-ink); }
@media (max-width: 799.98px) { .ledger { grid-template-columns: 1fr; } }

/* ================================================================ VENEERS */
.veneers { background: #101117; }
.veneers__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.compare-list { margin: var(--sc-6) 0 var(--sc-5); display: grid; gap: var(--sc-4); }
.compare-list div { padding: var(--sc-4) 0 0; border-top: 1px solid rgb(255 255 255 / 0.1); display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--sc-4); }
.compare-list dt { font-family: var(--sc-font-display); font-weight: 650; color: var(--shade); }
.compare-list dd { margin: 0; color: var(--sc-ink-soft); }
.ba { margin: 0; }
.ba__frame { position: relative; aspect-ratio: 2 / 1; overflow: hidden; border-radius: var(--r); box-shadow: var(--sc-e3); background: #222; }
.ba__img { position: absolute; left: 0; width: 100%; height: 200%; max-width: none; object-fit: cover; display: block; }
.ba__img--before { top: 0; }
.ba__img--after { top: -100%; clip-path: inset(0 0 0 var(--split)); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.2); pointer-events: none; }
.ba__line::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0C10' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.35);
}
.ba__label { position: absolute; top: 12px; padding: 4px 9px; border-radius: 6px; background: rgb(11 12 16 / 0.78); color: #fff; font-size: 0.75rem; font-weight: 600; pointer-events: none; }
.ba__label--l { left: 12px; } .ba__label--r { right: 12px; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__frame:has(.ba__range:focus-visible) { outline: 2px solid var(--lamp); outline-offset: 3px; }
.ba__cases { display: flex; flex-wrap: wrap; gap: var(--sc-2); margin: var(--sc-4) 0 var(--sc-3); }
.ba__cases button {
  min-height: 40px; padding: 0 14px; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--sc-ink-soft); border: 1px solid rgb(255 255 255 / 0.16);
  font: 500 0.85rem var(--sc-font-text); transition: background-color 150ms var(--sc-ease-out), color 150ms var(--sc-ease-out);
}
.ba__cases button[aria-pressed="true"] { background: var(--shade); color: var(--obsidian); border-color: transparent; }
@media (hover: hover) and (pointer: fine) { .ba__cases button:hover { color: var(--sc-ink); } }
.ba__cases button[aria-pressed="true"]:hover { color: var(--obsidian); }
@media (max-width: 899.98px) { .veneers__grid { grid-template-columns: 1fr; } }

/* ================================================================ RESULTS */
.results__stage { background: #101117; display: flex; align-items: center; }
.rail { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); padding-left: var(--sc-gutter); padding-right: calc(var(--sc-gutter) + var(--rail)); padding-top: calc(var(--bar-h) / 2); }
.rail__lead { flex: none; width: min(26rem, 80vw); }
.shot { flex: none; margin: 0; width: min(30vw, 56vh); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); box-shadow: var(--sc-e3); }
.shot figcaption { margin-top: var(--sc-3); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.rail__end { flex: none; width: min(20rem, 76vw); }
.rail__end p { margin: 0 0 var(--sc-5); font-size: var(--sc-t-lg); line-height: 1.45; }
@media (max-width: 899.98px) { .shot { width: min(72vw, 52svh); } }

/* =================================================================== HOUR */
.hour__stage {
  --sweep: 0; --type-in: 0; --lamp-on: 0; --clip: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgb(47 73 216 / calc(0.08 + var(--sweep) * 0.22)) 0%, transparent 70%), #08091A;
  display: flex; align-items: center;
}
.hour__grid {
  position: relative; z-index: 4; width: 100%; max-width: 80rem; margin: 0 auto; box-sizing: border-box;
  padding: var(--bar-h) calc(var(--sc-gutter) + var(--rail)) 0 var(--sc-gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hour__timer { margin: 0 0 var(--sc-4); display: flex; align-items: baseline; gap: var(--sc-3); }
.hour__clock { font-family: var(--sc-font-mono); font-weight: 500; font-size: var(--sc-t-2xl); letter-spacing: -0.02em; color: var(--sc-ink); font-variant-numeric: tabular-nums; }
.hour__label { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.hour__type { position: relative; }
.hour__word {
  font-family: var(--sc-font-display); font-variation-settings: "wdth" 84; font-weight: 900;
  font-size: clamp(4.5rem, 10vw, 10rem); line-height: 0.86; letter-spacing: -0.04em; text-transform: uppercase;
  opacity: var(--type-in); padding-bottom: 0.04em;
}
.hour__word span { display: block; }
.hour__word--before { color: #C9A46C; }
.hour__word--after { position: absolute; inset: 0; color: #FBF8F1; clip-path: inset(0 0 calc((1 - var(--clip)) * 100%) 0); }
.hour__lamp {
  position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 2px; background: #DCE2FF;
  opacity: var(--lamp-on); transform: translate3d(0, calc(var(--sweep) * 100svh), 0); pointer-events: none;
}
.hour__lamp::before {
  content: ""; position: absolute; left: 0; right: 0; top: -20vh; height: 40vh;
  background: linear-gradient(to bottom, transparent 0%, rgb(125 146 255 / 0.1) 30%, rgb(125 146 255 / 0.3) 50%, rgb(125 146 255 / 0.1) 70%, transparent 100%);
}
.hour__info .lede { margin: 0; color: var(--sc-ink); font-family: var(--sc-font-display); font-weight: 550; font-size: var(--sc-t-xl); line-height: 1.25; }
.hour__opts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sc-5); margin: var(--sc-6) 0 var(--sc-5); }
.hour__opts > div { padding-top: var(--sc-4); border-top: 1px solid rgb(255 255 255 / 0.14); }
.hour__opts h3 { margin: 0 0 var(--sc-2); font-size: var(--sc-t-lg); }
.hour__opts p { margin: 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.hour__opts .tag { margin-top: var(--sc-3); }
@media (max-width: 899.98px) {
  .hour__grid { grid-template-columns: 1fr; gap: var(--sc-5); padding-top: calc(var(--bar-h) + 2svh); }
  .hour__word { font-size: clamp(3.4rem, 17vw, 5.5rem); }
  .hour__clock { font-size: var(--sc-t-xl); }
  .hour__opts { grid-template-columns: 1fr; gap: var(--sc-3); margin: var(--sc-4) 0 var(--sc-3); }
  .hour__info .lede { font-size: var(--sc-t-lg); }
}

/* ================================================================= DOCTOR */
.doctor__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.doctor__photo { margin: 0; }
.doctor__frame { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); box-shadow: var(--sc-e3); background: #2A2C31; }
.doctor__frame img { display: block; width: 100%; height: 114%; max-width: none; margin-top: -7%; object-fit: cover; object-position: 50% 20%; }
.doctor__creds { margin: var(--sc-3) 0 var(--sc-5); font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); line-height: 1.7; color: var(--sc-ink-soft); }
.doctor__text p { max-width: 40rem; }
.doctor__text > div > p { margin: 0 0 var(--sc-4); }
.ticks { list-style: none; margin: 0 0 var(--sc-5); padding: 0; display: grid; gap: var(--sc-3); }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--sc-ink-soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 12px; border-radius: 30% 30% 50% 50% / 26% 26% 74% 74%; background: var(--shade); }
.ticks b { color: var(--sc-ink); font-weight: 600; }
.team { color: var(--sc-ink-soft); }
.team b { color: var(--sc-ink); }
@media (max-width: 899.98px) { .doctor__grid { grid-template-columns: 1fr; } .doctor__photo { max-width: 26rem; } }

/* ================================================================== VISIT */
.visit { background: #101117; }
.visit__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.steps { list-style: none; counter-reset: s; margin: var(--sc-7) 0 0; padding: 0; display: grid; gap: var(--sc-4); }
.steps li { counter-increment: s; position: relative; padding: var(--sc-4) 0 0 3.2rem; border-top: 1px solid rgb(255 255 255 / 0.1); color: var(--sc-ink-soft); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: var(--sc-4); font-family: var(--sc-font-display); font-weight: 750; font-size: var(--sc-t-xl); line-height: 1.1; color: var(--shade); }
.steps b { display: block; color: var(--sc-ink); font-weight: 600; }
.tech h3 { margin: var(--sc-5) 0 var(--sc-4); font-size: var(--sc-t-xl); }
.tech__photo { margin: 0; overflow: hidden; border-radius: var(--r); box-shadow: var(--sc-e3); }
.tech__photo img { display: block; width: 100%; height: auto; }
@media (max-width: 899.98px) { .visit__grid { grid-template-columns: 1fr; } }

/* =================================================================== FEES */
.fees__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sc-6); margin: var(--sc-7) 0; }
.fig { padding-top: var(--sc-5); border-top: 1px solid rgb(255 255 255 / 0.1); }
.fig__num { margin: 0; font-family: var(--sc-font-display); font-variation-settings: "wdth" 86; font-weight: 800; font-size: clamp(3.2rem, 2rem + 4vw, 6rem); line-height: 0.95; letter-spacing: -0.04em; color: var(--shade); font-variant-numeric: tabular-nums; }
.fig__label { margin: var(--sc-3) 0 0; color: var(--sc-ink-soft); max-width: 22rem; }
.fees__notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sc-4) var(--sc-7); }
.fees__notes li { color: var(--sc-ink-soft); }
.fees__notes b { color: var(--sc-ink); }
@media (max-width: 799.98px) { .fees__grid, .fees__notes { grid-template-columns: 1fr; } }

/* ================================================================ CONTACT */
.contact { background: #F5F1E8; color: var(--obsidian); padding-top: clamp(4.5rem, 8vw, 7.5rem); }
.contact .h2 em { color: var(--lamp-deep); }
.contact .lede { color: #3A352C; }
.contact__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact h3 { margin: var(--sc-2) 0 var(--sc-4); font-size: var(--sc-t-lg); }
.contact__addr { margin: var(--sc-6) 0 0; line-height: 1.8; }
.contact__addr a { color: var(--obsidian); }
.hours { width: 100%; border-collapse: collapse; font-size: var(--sc-t-sm); }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid rgb(11 12 16 / 0.12); font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; }
.hours tr.is-today th::after { content: " · today"; font-weight: 500; color: var(--lamp-deep); }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sc-3); font-size: var(--sc-t-sm); color: #2E2A23; }
.award { display: block; width: 84px; height: auto; margin-top: var(--sc-6); border-radius: 6px; box-shadow: 0 6px 14px rgb(40 30 15 / 0.2); }
.contact :focus-visible { outline-color: var(--lamp-deep); }
.foot { padding-block: var(--sc-8) var(--sc-6); }
.foot p { margin: 0; padding-top: var(--sc-5); border-top: 1px solid rgb(11 12 16 / 0.14); font-size: var(--sc-t-xs); line-height: 1.55; color: #3A352C; max-width: 72rem; }
@media (max-width: 899.98px) { .contact__grid { grid-template-columns: 1fr; } }

/* ========================================================== REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .hx__plate { transform: scale(1.04); }
  .hx__line, .hx__dust { display: none; }
  .hx__img--after { clip-path: none; opacity: calc((var(--rv) - 0.08) / 0.92); }
  .hour__lamp { display: none; }
  .hour__word--after { clip-path: none; opacity: calc(var(--type-in) * var(--clip)); }
  .tab, .tab:hover, .tab.is-active { transition: none; }
}
