:root {
  --bone: #F2F3EF;
  --paper: #FBFBF8;
  --ink: #0D1317;
  --muted: #55616A;
  --line: rgba(13, 19, 23, .16);
  --petrol: #0A5A6B;
  --xray: #070D11;
  --xray-2: #0F1B22;
  --ice: #9BE3F2;
  --ice-soft: rgba(155, 227, 242, .16);
  --on-dark: #E9F0F2;
  --on-dark-muted: #93A5AE;
  --line-dark: rgba(233, 240, 242, .15);
  --gutter: clamp(16px, 4vw, 56px);
  --display: "Geologica", "Segoe UI", sans-serif;
  --body: "Onest", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; padding: 0; }
ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; border-radius: 2px; }
.services :focus-visible, .visit :focus-visible { outline-color: var(--ice); }
section[id] { scroll-margin-top: 16px; }

.wrap { padding-inline: var(--gutter); max-width: 1560px; margin-inline: auto; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip:focus { top: 12px; }

.eyebrow {
  font: 500 12.5px/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--petrol);
}
h2 {
  font: 300 clamp(36px, 5.2vw, 76px)/1.04 var(--display);
  letter-spacing: -.03em;
}

/* ---------- Header ---------- */
.top {
  display: flex; align-items: center; gap: 32px;
  height: 76px;
  position: relative; z-index: 3;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 17px/1 var(--display); letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap;
}
.brand svg { width: 30px; height: 30px; fill: var(--ink); }
.nav { display: flex; gap: 28px; margin-left: 28px; }
.nav a {
  text-decoration: none; font-size: 15px; color: var(--muted);
  transition: color .2s;
}
.nav a:hover { color: var(--ink); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.top-phone {
  font: 500 15px/1 var(--mono); text-decoration: none; white-space: nowrap;
  background: var(--paper); padding: 11px 14px; border-radius: 6px;
}
.top-phone:hover { background: #fff; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--paper); }
.lang button {
  font: 500 13px/1 var(--mono);
  padding: 10px 11px; min-height: 38px;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .72fr);
  min-height: calc(100svh - 76px);
  max-width: 1560px;
  margin-inline: auto;
}
.wrap-left { padding-left: var(--gutter); }
.hero-copy {
  display: flex; flex-direction: column;
  padding-top: clamp(24px, 5vh, 64px);
  padding-right: 32px;
  padding-bottom: 32px;
  min-width: 0;
}
.hero-name {
  font: 200 clamp(60px, 10.6vw, 176px)/.92 var(--display);
  letter-spacing: -.055em;
  margin-top: 18px;
  margin-left: -.05em;
}
.hero-name span { display: block; }
.hero-name .nm-first { font-weight: 400; }
.hero-lead {
  max-width: 34em;
  margin-top: clamp(20px, 3.5vh, 36px);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.45;
  color: #2A343B;
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: clamp(22px, 3.5vh, 36px); }
.btn {
  display: inline-flex; flex-direction: column; gap: 3px;
  padding: 14px 24px; border-radius: 8px;
  text-decoration: none;
  transition: transform .2s, background .2s;
}
.btn-ink { background: var(--ink); color: #fff; font-weight: 500; }
.btn-ink:hover { background: var(--petrol); transform: translateY(-1px); }
.btn-sub { font: 400 13px/1 var(--mono); color: var(--ice); }
.btn-link {
  font-weight: 500; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 5px;
  padding: 10px 0;
}
.btn-link:hover { color: var(--petrol); }
.hero-facts {
  display: grid; grid-template-columns: repeat(3, auto); gap: 16px clamp(20px, 3vw, 48px);
  justify-content: start;
  margin-top: auto; padding-top: 32px;
}
.hero-facts dt { font: 400 12.5px/1.3 var(--mono); color: var(--muted); }
.hero-facts dd { font: 400 clamp(16px, 1.45vw, 21px)/1.25 var(--display); margin-top: 5px; letter-spacing: -.01em; }

.hero-photo { position: relative; min-height: 0; overflow: hidden; background: #DDE1DF; }
.hero-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 12%;
}

/* ---------- Services ---------- */
.services {
  background: radial-gradient(120% 70% at 25% 0%, var(--xray-2), var(--xray) 70%);
  color: var(--on-dark);
  padding-block: clamp(64px, 9vw, 128px);
}
.services .eyebrow { color: var(--ice); }
.services-head {
  display: grid; grid-template-columns: 1fr minmax(0, 1fr);
  align-items: end; gap: 12px 40px;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.services-head .eyebrow { grid-column: 1 / -1; }
.services-intro { color: var(--on-dark-muted); max-width: 30em; justify-self: end; padding-bottom: .6em; }

.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.stage { position: sticky; top: 20px; }
.stage-frame {
  position: relative;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: radial-gradient(70% 90% at 50% 45%, rgba(155, 227, 242, .09), transparent 75%), #05090C;
  padding: 34px 10px 10px;
  overflow: hidden;
}
.stage-hud {
  position: absolute; left: 14px; right: 14px; top: 11px;
  display: flex; justify-content: space-between;
  font: 400 11.5px/1 var(--mono); letter-spacing: .06em;
  color: var(--on-dark-muted);
}
.caption { padding: 22px 2px 0; min-height: 168px; }
.caption-name { font: 300 clamp(22px, 2.3vw, 32px)/1.15 var(--display); letter-spacing: -.02em; }
.caption-note { color: var(--on-dark-muted); margin-top: 8px; max-width: 38em; }
.caption-price { font: 500 16px/1.4 var(--mono); color: var(--ice); margin-top: 10px; }

.rows { border-top: 1px solid var(--line-dark); }
.rows li { border-bottom: 1px solid var(--line-dark); }
.row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 6px;
  width: 100%;
  padding: 16px 8px;
  position: relative;
  transition: background .25s;
}
.row::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 2px;
  background: var(--ice); transform: scaleY(0); transform-origin: top;
  transition: transform .3s;
}
.row:hover { background: rgba(233, 240, 242, .04); }
.row[aria-pressed="true"] { background: var(--ice-soft); }
.row[aria-pressed="true"]::before { transform: scaleY(1); }
.row-n { font: 400 12.5px/1.9 var(--mono); color: var(--on-dark-muted); grid-row: span 2; padding-left: 4px; }
.row-name { font: 400 clamp(17px, 1.4vw, 19px)/1.3 var(--display); letter-spacing: -.01em; }
.row-price { font: 400 14.5px/1.4 var(--mono); color: var(--ice); }
.row-note { display: none; grid-column: 2; color: var(--on-dark-muted); font-size: 15px; line-height: 1.45; margin-top: 4px; }

/* X-ray illustration */
.pano { width: 100%; height: auto; overflow: visible; }
.t-body { fill: url(#gDentin); stroke: rgba(190, 230, 240, .34); stroke-width: 1; }
.t-crown { fill: url(#gEnamel); transition: fill .4s, opacity .4s; }
.t-pulp { fill: #081116; opacity: .78; }
.tooth { transition: opacity .45s; }
.t-inner { transition: transform .9s cubic-bezier(.55, 0, .3, 1), opacity .7s; }
.fdi { font: 400 11px var(--mono); fill: var(--on-dark-muted); text-anchor: middle; opacity: .7; transition: fill .3s, opacity .3s; }
.haze { fill: url(#gHaze); }

.o { opacity: 0; transition: opacity .45s; pointer-events: none; }
.o.on { opacity: 1; }
.pano.has-target .tooth:not(.is-target) { opacity: .42; }
.pano .fdi.is-target { fill: var(--ice); opacity: 1; }

.is-extracted .t-inner { transform: translateY(86px); opacity: 0; }
.is-implanted .t-inner { opacity: 0; }

.o-fill-mark { fill: var(--ice); filter: url(#glow); }
.o-veneer { fill: var(--ice); fill-opacity: .82; stroke: #fff; stroke-width: 1.2; }
.o-mc-shell { fill: #F5FBFC; }
.o-mc-core { fill: #38515C; }
.o-zr { fill: #FFFFFF; filter: url(#glow); }
.o-socket { fill: none; stroke: var(--ice); stroke-width: 1.5; stroke-dasharray: 5 5; }
.o-screw { fill: #C8D6DB; }
.o-thread { stroke: #4D636D; stroke-width: 2; stroke-linecap: round; }
.o-abut { fill: var(--ice); }
.o-icrown { fill: #FFFFFF; filter: url(#glow); }
.o-implant .screw-g { transition: transform .9s cubic-bezier(.2, .7, .2, 1); transform: translateY(-34px); }
.o-implant.on .screw-g { transform: none; }
.o-implant .icrown-g { transition: transform .7s .45s cubic-bezier(.2, .7, .2, 1), opacity .5s .45s; transform: translateY(36px); opacity: 0; }
.o-implant.on .icrown-g { transform: none; opacity: 1; }

.o-bracket { fill: #DCE9ED; stroke: #05090C; stroke-width: 1; }
.o-wire { fill: none; stroke: var(--ice); stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s .1s ease-in-out, opacity .3s; opacity: 0; }
.o-wire.on { stroke-dashoffset: 0; opacity: 1; }

.pano[data-mode="clean"] .t-crown { fill: #FFFFFF; }
.pano[data-mode="clean"] .tooth { transition-delay: var(--d); }
.spark { fill: #1FA9C6; transform-box: fill-box; transform-origin: center; }
.o.on .spark { animation: spark 1.8s var(--d, 0s) infinite ease-in-out; }
@keyframes spark {
  0%, 100% { transform: scale(.25); opacity: .15; }
  50% { transform: scale(1); opacity: 1; }
}
.scan-g { opacity: 0; }
.scan-g.on { opacity: 1; animation: scan 3.6s infinite cubic-bezier(.45, 0, .55, 1) alternate; }
@keyframes scan {
  from { transform: translateX(-470px); }
  to { transform: translateX(470px); }
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 80px) clamp(28px, 4vw, 64px);
  padding-block: clamp(64px, 9vw, 136px);
}
.about-eight {
  display: block;
  font: 200 clamp(140px, 19vw, 320px)/.8 var(--display);
  letter-spacing: -.06em;
  margin-left: -.05em;
}
.about-eight-label { display: block; margin-top: 18px; font: 400 13px/1.4 var(--mono); color: var(--muted); max-width: 16em; }
.about-main h2 { font-size: clamp(30px, 3.5vw, 52px); line-height: 1.1; margin: 14px 0 26px; }
.about-main p:not(.eyebrow) { max-width: 36em; margin-top: 14px; color: #2A343B; }
.about-photo { border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 5; background: #DDE1DF; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 100%; transform: scale(1.55); transform-origin: 75% 88%; }
.principles { grid-column: 2 / -1; }
.principles h3 { font: 500 12.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--petrol); margin-bottom: 12px; }
.principles ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 64px); }
.principles li {
  display: grid; grid-template-columns: 32px 1fr;
  border-top: 1px solid var(--line);
  padding-block: 18px 26px;
  font: 400 clamp(17px, 1.5vw, 21px)/1.3 var(--display);
  letter-spacing: -.01em;
}
.pr-n { font: 400 13px/1.9 var(--mono); color: var(--petrol); }

/* ---------- Visit ---------- */
.visit { background: var(--ink); color: var(--on-dark); padding-top: clamp(64px, 9vw, 120px); }
.visit .eyebrow { color: var(--ice); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.visit h2 { margin-top: 14px; font-size: clamp(32px, 4vw, 60px); }
.visit-phone {
  display: inline-block;
  margin-top: clamp(24px, 3vw, 40px);
  font: 300 clamp(30px, 4.4vw, 68px)/1.05 var(--display);
  letter-spacing: -.03em;
  color: var(--ice);
  text-decoration: none;
  border-bottom: 1px solid rgba(155, 227, 242, .4);
  padding-bottom: 6px;
  transition: border-color .2s;
}
.visit-phone:hover { border-bottom-color: var(--ice); }
.visit-list { margin-top: clamp(28px, 3.5vw, 48px); }
.visit-list > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding-block: 14px; border-top: 1px solid var(--line-dark); }
.visit-list dt { font: 400 12.5px/1.9 var(--mono); color: var(--on-dark-muted); }
.visit-list a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.visit-list a:hover { color: var(--ice); }
.visit-map { display: flex; flex-direction: column; min-height: 420px; }
.visit-map iframe { flex: 1; width: 100%; min-height: 360px; border: 0; border-radius: 10px; background: var(--xray-2); }
.map-links { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 14px; font-size: 15px; }
.map-links a { padding-block: 6px; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.map-links a:hover { color: var(--ice); }
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  margin-top: clamp(48px, 6vw, 88px);
  padding-block: 22px;
  font: 400 12.5px/1.5 var(--mono);
  color: var(--on-dark-muted);
  border-top: 1px solid var(--line-dark);
}

/* ---------- Mobile call bar ---------- */
.callbar {
  display: none;
  position: fixed; z-index: 10;
  left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
  align-items: center; justify-content: center; gap: 10px;
  height: 54px; border-radius: 10px;
  background: var(--ice); color: var(--ink);
  font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}
.callbar svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .about-photo { display: none; }
  .principles { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .top { height: 64px; gap: 12px; }
  .top-phone { display: none; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { padding-inline: var(--gutter); padding-top: 18px; padding-bottom: 28px; }
  .hero-name { font-size: clamp(60px, 19.5vw, 150px); }
  .hero-facts { margin-top: 28px; padding-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts div:last-child { grid-column: 1 / -1; }
  .hero-photo { aspect-ratio: 4 / 5; }
  .hero-photo img { object-position: 50% 0; }

  .services { padding-top: 56px; }
  .services-head { grid-template-columns: 1fr; }
  .services-intro { justify-self: start; padding-bottom: 0; }
  .services-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stage {
    top: 0; z-index: 4;
    margin-inline: calc(var(--gutter) * -1);
    padding: 8px var(--gutter);
    background: var(--xray);
    border-bottom: 1px solid var(--line-dark);
  }
  .stage-frame { padding: 22px 4px 4px; }
  .stage-hud { top: 8px; left: 10px; right: 10px; font-size: 10px; }
  .caption { display: none; }
  .fdi { display: none; }
  .rows { border-top: 0; }
  .row { padding-block: 15px; }
  .row[aria-pressed="true"] .row-note { display: block; }

  .about { grid-template-columns: minmax(0, 1fr); }
  .about-years { display: flex; align-items: flex-end; gap: 14px; }
  .about-eight { font-size: 128px; }
  .about-eight-label { margin: 0 0 6px; }
  .about-photo { display: block; aspect-ratio: 5 / 4; }
  .principles ol { grid-template-columns: minmax(0, 1fr); }

  .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .visit-list > div { grid-template-columns: 88px 1fr; }
  .visit-map { min-height: 0; }
  .visit-map iframe { min-height: 320px; flex: none; height: 320px; }
  .callbar { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .scan-g.on { opacity: .6; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- SEO pages ---------- */
.hero-kicker {
  font: 500 12.5px/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--petrol);
  margin: 0 0 18px;
}
.lang a {
  display: flex; align-items: center;
  font: 500 13px/1 var(--mono);
  padding: 10px 11px; min-height: 38px;
  color: var(--muted); text-decoration: none;
  transition: background .2s, color .2s;
}
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }

.rows li { position: relative; }
.row { padding-right: 52px; }
.row-more {
  position: absolute; right: 6px; top: 10px;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 6px;
  color: var(--ice); text-decoration: none; font-size: 18px;
  transition: background .2s;
}
.row-more:hover { background: rgba(155, 227, 242, .16); }

.foot-services { padding-top: clamp(40px, 5vw, 72px); }
.foot-services h2 { font: 500 12.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ice); margin-bottom: 14px; }
.foot-services ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); }
.foot-services a { display: block; padding-block: 11px; border-top: 1px solid var(--line-dark); text-decoration: none; font-size: 16px; }
.foot-services a:hover { color: var(--ice); }
.visit .foot { margin-top: clamp(32px, 4vw, 56px); }
.svc-foot { padding-top: 0; }

.svc { padding-top: clamp(12px, 2vw, 24px); padding-bottom: clamp(40px, 6vw, 88px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font: 400 13px/1.5 var(--mono); color: var(--muted); }
.crumbs a { text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }
.svc-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: clamp(24px, 4vw, 48px); }
.svc h1 { margin: 0; font: 300 clamp(38px, 5vw, 76px)/1.04 var(--display); letter-spacing: -.035em; }
.svc-lead { margin-top: 22px; max-width: 34em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: #2A343B; }
.svc-price { margin-top: 28px; padding-block: 16px; border-block: 1px solid var(--line); }
.svc-price-k { display: block; font: 400 12.5px/1.4 var(--mono); color: var(--muted); }
.svc-price strong { display: block; margin-top: 4px; font: 400 clamp(22px, 2.4vw, 32px)/1.2 var(--display); letter-spacing: -.02em; }
.svc-price p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.svc .hero-cta { margin-top: 24px; }
.svc-stage { background: radial-gradient(70% 90% at 50% 45%, rgba(155, 227, 242, .09), transparent 75%), #05090C; border-color: transparent; }
.svc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 4vw, 64px); padding-bottom: clamp(56px, 7vw, 104px); }
.svc-body h2 { font: 300 clamp(26px, 2.8vw, 38px)/1.1 var(--display); letter-spacing: -.02em; }
.svc-when { list-style: none; margin: 18px 0 0; padding: 0; }
.svc-when li { padding-block: 13px; border-top: 1px solid var(--line); }
.svc-side p { margin-top: 12px; color: #2A343B; }
.svc-side h2 + p { margin-top: 16px; }
.svc-side p + h2 { margin-top: 36px; }
.svc-side a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.svc-side a:hover { color: var(--petrol); }

@media (max-width: 900px) {
  .svc-head, .svc-body { grid-template-columns: minmax(0, 1fr); }
  .foot-services ul { grid-template-columns: minmax(0, 1fr); }
  .svc-stage { padding: 22px 4px 4px; }
}
.hero-name { margin-left: 0; }
.hero-name span:not(.hero-kicker) { margin-left: -.05em; }


.hero-facts { display: flex; flex-wrap: wrap; justify-content: flex-start; }
@media (max-width: 900px) {
  .hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts div:last-child { grid-column: auto; }
}
