/* ==========================================================================
   Royaldente website
   The language comes from the hero: midnight navy and gold hairlines, with one plain typeface, Hanken Grotesk, everywhere
   (the clinic asked for a simple font). Ivory bands give the long reads room to breathe.
   No backdrop-filter anywhere: blurring what sits over a live canvas makes it flicker.
   ========================================================================== */
:root {
  --night: #070a14;
  --navy: #0c1326;
  --navy-2: #121b34;
  --ink: #f4efe4;
  --muted: #b3b7c4;
  --hair: rgba(233, 201, 135, .24);
  --gold: #e3bd78;
  --gold-deep: #8a6420;
  --ivory: #f4efe4;
  --ivory-2: #ebe4d4;
  --text: #141a2e;
  --text-2: #475069;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --hero: var(--body);
  --display: var(--body);
  --mono: var(--body);
  --gutter: clamp(20px, 4.4vw, 68px);
  --gl: max(var(--gutter), env(safe-area-inset-left, 0px));
  --gr: max(var(--gutter), env(safe-area-inset-right, 0px));
  --max: 1320px;
  --bar: 76px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 12px); }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.ivory :focus-visible { outline-color: var(--gold-deep); }

.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; z-index: 70; left: var(--gl); top: -60px; padding: 10px 16px; background: var(--gold); color: #1a1407; font-weight: 600; text-decoration: none; }
.skip:focus { top: 10px; }

/* ---------- type ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.eyebrow::after { content: ""; width: 56px; height: 1px; background: currentColor; }
.ivory .eyebrow { color: var(--gold-deep); }
.h-xl, .h-lg, .h-md { font-family: var(--display); font-weight: 500; letter-spacing: -.028em; line-height: 1.06; text-wrap: balance; }
.h-xl { font-size: clamp(46px, 7.2vw, 108px); }
.h-lg { font-size: clamp(38px, 5vw, 74px); }
.h-md { font-size: clamp(27px, 2.7vw, 38px); line-height: 1.14; }
.it { color: var(--gold); }
.ivory .it { color: var(--gold-deep); }
.lede { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; max-width: 54ch; }
.body { max-width: 62ch; color: var(--muted); }
.ivory .body { color: var(--text-2); }

/* ---------- layout ---------- */
.section { padding: clamp(72px, 10vw, 150px) var(--gr) clamp(72px, 10vw, 150px) var(--gl); }
.wrap { max-width: var(--max); margin-inline: auto; }
.ivory { background: var(--ivory); color: var(--text); color-scheme: light; }
.ivory-2 { background: var(--ivory-2); }
.navy { background: var(--navy); }
.head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 70px); }
.head--split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: clamp(24px, 5vw, 80px); }
.head--split .eyebrow { grid-column: 1 / -1; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 2px; border: 1px solid var(--gold); text-decoration: none; font-weight: 600; font-size: 15.5px; cursor: pointer; background: transparent; transition: background-color .22s, color .22s, border-color .22s; }
.btn--solid { background: var(--gold); color: #1a1407; }
.btn--solid:hover { background: #f1d29a; border-color: #f1d29a; }
.btn:not(.btn--solid):hover { background: rgba(227, 189, 120, .14); }
.ivory .btn { border-color: var(--text); color: var(--text); }
.ivory .btn:hover { background: var(--text); color: var(--ivory); }
.ivory .btn--solid { background: var(--text); color: var(--ivory); }
.ivory .btn--solid:hover { background: #26304f; border-color: #26304f; color: var(--ivory); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); transition: color .2s; cursor: pointer; }
.link:hover { color: var(--gold); }
.ivory .link { border-color: var(--gold-deep); }
.ivory .link:hover { color: var(--gold-deep); }

/* ---------- header ---------- */
.site { position: fixed; z-index: 50; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--bar); padding: env(safe-area-inset-top, 0px) var(--gr) 0 var(--gl); transition: background-color .3s, box-shadow .3s; }
.site.is-solid { background: rgba(7, 10, 20, .96); box-shadow: 0 1px 0 var(--hair); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
/* the clinic's logo (tools/trace_wordmark.py): crest and the name line in gold, ROYALDENTE in the text colour */
.logo { display: block; width: auto; height: 54px; aspect-ratio: 1599 / 385.5; overflow: visible; color: var(--ink); --lg-mark: var(--gold); --lg-sub: var(--gold); }
.foot .logo { height: clamp(64px, 6vw, 84px); }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); margin-left: auto; }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: none; color: var(--ink); background: linear-gradient(var(--gold), var(--gold)) 0 calc(100% - 9px) / 0 1px no-repeat; transition: background-size .25s; }
.nav a:not(.btn):hover, .nav a[aria-current] { background-size: 100% 1px; }
.nav .btn { min-height: 44px; padding: 9px 18px; font-size: 14.5px; }
.menu { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--hair); border-radius: 2px; background: transparent; cursor: pointer; }
.menu i { display: block; width: 20px; height: 1px; margin: 5px auto; background: var(--ink); transition: transform .22s; }
.menu[aria-expanded="true"] i:first-child { transform: translateY(3px) rotate(45deg); }
.menu[aria-expanded="true"] i:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; height: 1100vh; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: var(--night) url("../poster.jpg") center / cover no-repeat; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; opacity: 0; transition: opacity .7s ease; }
#scene:active { cursor: grabbing; }
.hero.is-ready #scene { opacity: 1; }
.capture .hero.is-ready #scene { transition: none; opacity: 1; }
.hero__load { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; }
.hero__load::after { content: ""; position: absolute; inset: 0; width: 34%; background: var(--gold); animation: load 1.5s ease-in-out infinite; }
.hero.is-ready .hero__load, .hero.is-fallback .hero__load { display: none; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

.stage { position: absolute; z-index: 4; left: var(--gl); top: 50%; width: min(460px, 38vw); transform: translateY(calc(-50% - (1 - var(--o, 1)) * 26px)); opacity: var(--o, 1); visibility: hidden; pointer-events: none; }
.stage.is-live { visibility: visible; pointer-events: auto; }
.stage__k { display: flex; align-items: center; gap: 12px; font-family: var(--body); font-weight: 500; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; opacity: clamp(0, calc(var(--t, 1) * 2.4 - .2), 1); }
.stage__k::after { content: ""; flex: none; width: calc(56px * var(--t, 1)); height: 1px; background: var(--gold); }
.stage h1, .stage h2 { font-family: var(--hero); font-weight: 500; margin: 0 0 18px; letter-spacing: -.028em; line-height: 1.06; text-wrap: balance; }
.stage h1 { font-size: clamp(46px, 5.6vw, 84px); }
.stage h2 { font-size: clamp(64px, 8vw, 120px); }
.stage .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .1em; margin-block: -.1em; padding-inline: .04em; margin-inline: -.04em; }
.stage .c { display: inline-block; --s: clamp(0, calc(var(--t, 1) * (var(--n, 8) * .5 + 6) - var(--i) * .5), 6); transform: translateY(calc((1 - var(--s) / 6) * 112%)) rotate(calc((1 - var(--s) / 6) * 5deg)); }
.stage p:not(.stage__k) { max-width: 40ch; color: #d7d8de; font-size: clamp(16px, 1.25vw, 19px); opacity: clamp(0, calc(var(--t, 1) * 2.2 - 1.1), 1); transform: translateY(calc((1 - var(--t, 1)) * 18px)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; opacity: clamp(0, calc(var(--t, 1) * 2.2 - 1.2), 1); }
.chips li { font-family: var(--body); font-weight: 500; font-size: 12.5px; letter-spacing: .02em; padding: 6px 11px; border: 1px solid var(--hair); border-radius: 2px; background: rgba(10, 13, 26, .78); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; opacity: clamp(0, calc(var(--t, 1) * 2.2 - 1.2), 1); }
.play-i { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.is-playing .play-i { width: 9px; height: 12px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.stage--end h2 { font-size: clamp(46px, 5.4vw, 80px); }

/* the four steps run along the foot of the frame, clear of the model */
.rail { position: absolute; z-index: 4; left: var(--gl); bottom: calc(100lvh - 100svh + 26px + env(safe-area-inset-bottom, 0px)); width: min(460px, 38vw); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; font-family: var(--body); font-weight: 500; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rail li { position: relative; padding-top: 9px; transition: color .25s; }
.rail li::before, .rail li::after { content: ""; position: absolute; left: 0; top: 0; height: 1px; }
.rail li::before { width: 100%; background: rgba(255, 255, 255, .16); }
.rail li::after { width: 100%; background: var(--gold); transform-origin: 0 0; transform: scaleX(var(--f, 0)); }
.rail li.is-on { color: var(--ink); }
.rail li.is-done { color: var(--gold); }

/* keeps captions readable when the model or the ring passes behind them */
.hero__sticky::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 46%; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(7, 10, 20, .78), rgba(7, 10, 20, .5) 56%, rgba(7, 10, 20, 0)); }
.tags { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.tag { position: absolute; left: 0; top: 0; opacity: 0; visibility: hidden; will-change: transform; }
.tag i { position: absolute; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(227, 189, 120, .24); }
.tag::before { content: ""; position: absolute; left: 0; top: 0; width: var(--len, 92px); height: 1px; background: var(--gold); transform-origin: 0 0; transform: rotate(var(--rot, -24deg)); }
.tag span { position: absolute; left: var(--tx, 84px); top: var(--ty, -54px); white-space: nowrap; font-family: var(--body); font-weight: 500; font-size: 13px; letter-spacing: .01em; line-height: 1.45; padding: 6px 10px; background: rgba(7, 10, 20, .8); border-left: 1px solid var(--gold); }
.tag span em { display: block; font-style: normal; color: var(--gold); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }

.cue { position: absolute; z-index: 4; left: 50%; bottom: calc(100lvh - 100svh + 26px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); font-family: var(--body); font-weight: 500; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.cue::after { content: ""; display: block; width: 1px; height: 22px; background: var(--gold); margin: 10px auto 0; animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.hero.is-fallback { height: 100vh; height: 100svh; }
.hero.is-fallback .tags, .hero.is-fallback .rail, .hero.is-fallback .cue, .hero.is-fallback #play { display: none; }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--hair); background: var(--navy); }
.ticker__row { display: flex; width: max-content; animation: tick 46s linear infinite; }
.ticker ul { display: flex; flex: none; }
.ticker li { display: flex; align-items: center; gap: 34px; padding: 18px 0 18px 34px; font-family: var(--display); font-size: clamp(20px, 2vw, 27px); white-space: nowrap; }
.ticker li::after { content: ""; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
.ticker:hover .ticker__row { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(36px, 7vw, 120px); align-items: center; }
.founder__copy { display: grid; gap: 26px; }
.arch { position: relative; aspect-ratio: 13 / 16; }
.arch img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 0 0; }
/* the portrait he supplied is already round, so it keeps its circle, with the arch's offset hairline around it */
.arch--round { aspect-ratio: 1; }
.arch--round img { border-radius: 50%; }
.arch figcaption { position: absolute; left: -18px; bottom: 26px; padding: 10px 16px; background: var(--night); color: var(--ink); font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; line-height: 1.5; }
.arch figcaption b { display: block; font-family: var(--display); font-size: 19px; font-weight: 500; letter-spacing: 0; }
.facts { display: grid; gap: 0; border-top: 1px solid rgba(20, 26, 46, .16); }
.facts li { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(20, 26, 46, .16); font-size: 16px; }
.facts li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 2px; background: var(--gold-deep); transform: rotate(45deg) translateY(-2px); }

/* ---------- numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--hair); }
.numbers div { padding: clamp(26px, 3.4vw, 46px) clamp(16px, 2.2vw, 34px); border-left: 1px solid var(--hair); }
.numbers div:first-child { border-left: 0; }
.numbers b { display: block; font-family: var(--display); font-weight: 500; letter-spacing: -.02em; font-size: clamp(36px, 4.6vw, 68px); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.numbers span { display: block; margin-top: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- treatment index ---------- */
.index { border-top: 1px solid var(--hair); }
.index a { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.25fr) 26px; gap: 20px; align-items: baseline; padding: clamp(18px, 2vw, 26px) 0; border-bottom: 1px solid var(--hair); text-decoration: none; background: linear-gradient(90deg, rgba(227, 189, 120, .1), transparent 70%) 0 0 / 0 100% no-repeat; transition: background-size .35s; cursor: pointer; }
.index a:hover { background-size: 100% 100%; }
.index small { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--gold); }
.index h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.12; }
.index p { color: var(--muted); font-size: 16.5px; }
.index svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 1.4; align-self: center; transition: transform .25s; }
.index a:hover svg { transform: translateX(5px); }

/* ---------- technology: a pinned track on wide screens, a swipe on small ones ---------- */
.tech { position: relative; background: var(--navy); }
.tech__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px); padding-top: var(--bar); }
.tech__head { padding-inline: var(--gl) var(--gr); display: grid; gap: 14px; }
.tech__track { display: flex; gap: 18px; width: max-content; padding-inline: var(--gl) var(--gr); will-change: transform; }
.card { flex: none; width: clamp(280px, 27vw, 380px); min-height: clamp(280px, 40vh, 360px); display: flex; flex-direction: column; gap: 14px; padding: 26px 26px 28px; border: 1px solid var(--hair); background: var(--navy-2); }
.card small { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--gold); }
.card h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; font-size: clamp(24px, 2.2vw, 31px); line-height: 1.14; margin-top: auto; }
.card p { color: var(--muted); font-size: 16px; }
/* photo cards: a clinic photo on top once there is one, the drawn instrument until then */
.card--photo { padding: 0; gap: 0; min-height: 0; }
.card__ph { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: radial-gradient(120% 90% at 50% 20%, #1d2a4d, #0b1122 70%); }
.card__ph img { width: 100%; height: 100%; object-fit: cover; }
.card__ph--art { display: grid; place-items: center; color: var(--gold); }
.card__ph--art::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(227, 189, 120, .06) 0 1px, transparent 1px 34px), repeating-linear-gradient(0deg, rgba(227, 189, 120, .06) 0 1px, transparent 1px 34px); }
.card__ph--art svg { position: relative; width: 38%; height: auto; filter: drop-shadow(0 0 18px rgba(227, 189, 120, .25)); }
.card__txt { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 26px; flex: 1; }
.card__txt h3 { margin-top: 0; }

/* ---------- before/after reel: tall cards drifting sideways ---------- */
.reel { position: relative; overflow: hidden; padding-block: 6px; cursor: grab; touch-action: pan-y; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.reel.is-drag { cursor: grabbing; }
.reel:focus-visible { outline-offset: -3px; }
.reel__track { display: flex; gap: 16px; width: max-content; will-change: transform; }
.reel__card { position: relative; flex: none; height: clamp(300px, 30vw, 420px); aspect-ratio: var(--ar, 9 / 16); border-radius: 14px; overflow: hidden; background: var(--night); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .7); }
.reel__card img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.reel__card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(227, 189, 120, .22); pointer-events: none; }
.reel__lbl { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 99px; background: rgba(7, 10, 20, .78); color: #f4efe4; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.reel__lbl--a { background: rgba(227, 189, 120, .94); color: #1a1407; }
.reel__card--v .reel__lbl--a { top: calc(var(--s) + 10px); }
.reel__card--h .reel__lbl--a { left: calc(var(--s) + 10px); }
.section--reel .reel { margin-top: 10px; }

/* ---------- results ---------- */
.note { margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.ivory .note { color: var(--text-2); }

/* ---------- recognition ---------- */
.awards { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.years li { display: grid; grid-template-columns: clamp(100px, 13vw, 190px) minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 22px 0; border-top: 1px solid rgba(20, 26, 46, .16); }
.years li:last-child { border-bottom: 1px solid rgba(20, 26, 46, .16); }
.years b { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; font-size: clamp(40px, 5vw, 72px); line-height: 1; color: var(--gold-deep); font-variant-numeric: lining-nums; }
.years h3 { font-family: var(--display); font-weight: 500; font-size: clamp(21px, 1.9vw, 27px); line-height: 1.2; }
.years p { font-size: 15.5px; color: var(--text-2); margin-top: 4px; }
.stack { position: relative; padding: 0 8% 8% 0; }
.stack img:first-child { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.stack img:last-child { position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 2 / 3; object-fit: cover; border: 6px solid var(--ivory); }

/* ---------- words ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.quotes blockquote { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--hair); background: var(--navy-2); }
.quotes p { font-family: var(--display); font-size: clamp(21px, 1.9vw, 27px); line-height: 1.3; }
.quotes cite { margin-top: auto; font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--gold); text-transform: uppercase; }
.logos { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 18px; align-items: center; }
.logos img { width: 100%; max-width: 150px; margin-inline: auto; }

/* ---------- visit ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); }
.info { display: grid; margin-top: 30px; border-top: 1px solid var(--hair); }
.info div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--hair); }
.info dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding-top: 4px; }
.info dd { margin: 0; }
.info a { text-underline-offset: 3px; text-decoration-color: var(--gold); }
.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 38px); border: 1px solid var(--hair); background: var(--navy-2); align-self: start; }
.field { display: grid; gap: 7px; }
.field label { font-size: 15px; font-weight: 500; }
.field input, .field select { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink); background: var(--night); border: 1px solid rgba(233, 201, 135, .4); border-radius: 2px; }
.field input:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #ff9d8a; }
.err { min-height: 1.2em; font-size: 14px; color: #ffb4a6; }
.hint { font-size: 14.5px; color: var(--muted); }
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.offers li { padding: 22px 24px; border: 1px solid var(--hair); }
.offers b { display: block; font-family: var(--display); font-weight: 500; letter-spacing: -.02em; font-size: clamp(25px, 2.4vw, 34px); line-height: 1.12; margin-bottom: 6px; }
.offers span { color: var(--muted); font-size: 15.5px; }

/* ---------- inner pages ---------- */
.intro { padding: calc(var(--bar) + clamp(50px, 8vw, 110px)) var(--gr) clamp(50px, 7vw, 100px) var(--gl); background: radial-gradient(90% 120% at 80% 0, #142246 0, var(--night) 62%); }
.intro .wrap { display: grid; gap: 24px; }
.profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(36px, 6vw, 90px); align-items: end; }
.profile .arch { margin: 14px 14px 0 0; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 44px); border-top: 1px solid rgba(20, 26, 46, .16); }
.ticks li { padding: 13px 0; border-bottom: 1px solid rgba(20, 26, 46, .16); font-family: var(--display); font-size: clamp(19px, 1.7vw, 24px); }
.pubs li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-top: 1px solid var(--hair); }
.pubs li:last-child { border-bottom: 1px solid var(--hair); }
.pubs small { font-family: var(--mono); font-size: 12px; color: var(--gold); padding-top: 6px; }
.pubs p { font-family: var(--display); font-size: clamp(21px, 2vw, 29px); line-height: 1.25; }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.team img { width: 100%; aspect-ratio: 13 / 16; object-fit: cover; }
.team h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; font-size: clamp(23px, 2vw, 29px); margin-top: 14px; }
.team p { color: var(--text-2); font-size: 15.5px; }
.awards--text { grid-template-columns: minmax(0, 1fr); }
.awards--text > div { max-width: 900px; }
.team.team--solo { grid-template-columns: minmax(0, 560px); }
.team__name { display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; padding: 24px; border: 1px solid rgba(20, 26, 46, .16); border-top: 2px solid var(--gold-deep); }
.team__name h3 { margin-top: 0; }
.team__more { display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; border: 1px solid rgba(20, 26, 46, .16); }
.team__more b { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; font-size: clamp(64px, 8vw, 120px); line-height: 1; color: var(--gold-deep); font-variant-numeric: lining-nums; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pair img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.closing { text-align: center; display: grid; justify-items: center; gap: 22px; }
.closing img { width: 74px; height: auto; }
.tgroup { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(20px, 4vw, 60px); padding-block: clamp(34px, 4vw, 56px); border-top: 1px solid var(--hair); }
.tgroup > h2 { position: sticky; top: calc(var(--bar) + 20px); align-self: start; font-family: var(--display); font-weight: 500; letter-spacing: -.02em; font-size: clamp(29px, 3vw, 44px); line-height: 1.1; }
.tlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tlist article { padding: 22px 24px 24px; border: 1px solid var(--hair); background: var(--navy-2); scroll-margin-top: calc(var(--bar) + 16px); }
.tlist article:target { border-color: var(--gold); }
.tlist h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; font-size: clamp(23px, 2vw, 28px); line-height: 1.15; margin-bottom: 8px; }
.tlist p { color: var(--muted); font-size: 16px; }
.shorts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shorts a { position: relative; display: block; aspect-ratio: 9 / 13; overflow: hidden; background: var(--navy-2); border: 1px solid var(--hair); cursor: pointer; }
.shorts img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.shorts a:hover img { opacity: .72; }
.shorts span { position: absolute; left: 12px; bottom: 12px; padding: 5px 9px; background: rgba(7, 10, 20, .86); color: #f4efe4; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; }

/* ---------- footer ---------- */
.foot { padding: clamp(50px, 6vw, 84px) var(--gr) calc(30px + env(safe-area-inset-bottom, 0px)) var(--gl); background: var(--night); border-top: 1px solid var(--hair); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 30px; }
.foot h2 { font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.foot li a, .foot address a { display: inline-flex; align-items: center; min-height: 34px; text-decoration: none; }
.foot li a:hover, .foot address a:hover { color: var(--gold); }
.foot address { font-style: normal; color: var(--muted); font-size: 16px; }
.foot__tag { font-family: var(--display); font-size: 22px; line-height: 1.25; margin-top: 18px; max-width: 26ch; }
.foot__base { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--hair); font-size: 14px; color: var(--muted); }

/* a phone gets its two fastest routes to the clinic */
.dock { display: none; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; grid-template-columns: 1fr 1fr; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--night); border-top: 1px solid var(--hair); }
.dock a { display: flex; align-items: center; justify-content: center; min-height: 54px; font-weight: 600; font-size: 15.5px; text-decoration: none; }
.dock a + a { background: var(--gold); color: #1a1407; }

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

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .menu { display: block; }
  .nav { position: fixed; inset: var(--bar) 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gr) 22px var(--gl); background: var(--night); border-bottom: 1px solid var(--hair); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { min-height: 52px; font-size: 18px; border-bottom: 1px solid var(--hair); background: none; }
  .nav .btn { margin-top: 16px; min-height: 50px; }
  .site.is-open { background: var(--night); }
  .head--split, .founder, .awards, .visit, .profile, .tgroup { grid-template-columns: minmax(0, 1fr); }
  .tgroup > h2 { position: static; }
  .founder__fig, .profile figure { max-width: 420px; }
  .logos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .site .logo { height: 46px; }
  body { padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px)); }
  .dock { display: grid; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers div:nth-child(odd) { border-left: 0; }
  .numbers div:nth-child(n + 3) { border-top: 1px solid var(--hair); }
  .index a { grid-template-columns: 34px minmax(0, 1fr) 22px; gap: 4px 12px; }
  .index p { grid-column: 2 / 4; grid-row: 2; }
  .index svg { grid-column: 3; grid-row: 1; }
  .quotes, .team, .tlist, .ticks, .cols, .cols--3, .offers, .pair { grid-template-columns: minmax(0, 1fr); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .arch figcaption { left: 0; }
  .info div { grid-template-columns: 84px minmax(0, 1fr); }
}
/* wide screens pin the technology track; touch and narrow screens swipe it natively */
@media (max-width: 900px), (hover: none) {
  .tech { height: auto !important; }
  .tech__pin { position: static; height: auto; padding-block: clamp(64px, 10vw, 110px); }
  .tech__scroll { overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tech__scroll::-webkit-scrollbar { display: none; }
  .tech__track { transform: none !important; }
  .card { scroll-snap-align: start; scroll-margin-left: var(--gl); min-height: 270px; }
}
@media (max-aspect-ratio: 95/100) {
  .stage { top: auto; bottom: calc(100lvh - 100svh + 76px + env(safe-area-inset-bottom, 0px)); width: auto; right: var(--gr); transform: translateY(calc((var(--o, 1) - 1) * 26px)); }
  .stage h1 { font-size: clamp(38px, 10.5vw, 62px); }
  .stage h2 { font-size: clamp(50px, 15vw, 88px); margin-bottom: 10px; }
  .stage--end h2 { font-size: clamp(38px, 11vw, 62px); }
  .stage p:not(.stage__k) { font-size: 15.5px; }
  .chips { margin-top: 14px; }
  .chips li { font-size: 11.5px; padding: 5px 8px; }
  .rail { right: var(--gr); width: auto; font-size: 10.5px; letter-spacing: .12em; }
  .cue { display: none; }
  .tag span { font-size: 11.5px; left: auto; right: 34px; top: -62px; }
  .tag::before { width: 66px; transform: rotate(-118deg); }
  .tag--opt { display: none; }
  .hero__sticky { background-image: url("../poster-tall.jpg"); }
  .hero__sticky::after { inset: auto 0 0 0; width: auto; height: 64%; background: linear-gradient(0deg, rgba(7, 10, 20, .94) 53%, rgba(7, 10, 20, .7) 78%, rgba(7, 10, 20, 0)); }
}
@media (max-width: 760px) and (max-aspect-ratio: 95/100) {
  .stage { bottom: calc(100lvh - 100svh + 130px + env(safe-area-inset-bottom, 0px)); }
  .rail { bottom: calc(100lvh - 100svh + 80px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__row, .cue::after, .hero__load::after { animation: none; }
  #scene { transition: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- section reel: full bleed ---------- */
.section > .reel { margin-inline: calc(-1 * var(--gl)) calc(-1 * var(--gr)); }

/* ---------- theme switch ---------- */
.theme { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--hair); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s; }
.theme:hover { background: rgba(227, 189, 120, .14); }
.theme svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.theme .sun { display: none; }
[data-theme="light"] .theme .sun { display: block; }
[data-theme="light"] .theme .moon { display: none; }
.site__end { display: flex; align-items: center; gap: 10px; }

/* ==========================================================================
   Light mode: off-white, switched from the header; dark blue stays the default.
   The hero still goes dark for the digital steps (scan, plan, place), like a lightbox; hero.js writes how dark
   its backdrop is as --dk on the hero and the header, and text over it switches colour once it passes half way.
   ========================================================================== */
:root[data-theme="light"] {
  --night: #f6f2ea;
  --navy: #eee7da;
  --navy-2: #fffdf8;
  --ink: #161c30;
  --muted: #535b71;
  --hair: rgba(22, 28, 48, .15);
  --gold: #87621f;
  --gold-deep: #7a5718;
  --ivory: #ebe3d3;
  --ivory-2: #e3d9c6;
  color-scheme: light;
}
[data-theme="light"] .btn--solid, [data-theme="light"] .dock a + a, [data-theme="light"] .skip { background: var(--ink); border-color: var(--ink); color: #f6f2ea; }
[data-theme="light"] .btn--solid:hover { background: #2a3354; border-color: #2a3354; }
[data-theme="light"] .btn:not(.btn--solid):hover, [data-theme="light"] .theme:hover { background: rgba(135, 98, 31, .1); }
[data-theme="light"] .site.is-solid, [data-theme="light"] .site.is-open { background: rgba(246, 242, 234, .97); }
[data-theme="light"] .intro { background: radial-gradient(90% 120% at 80% 0, #e9dfcb 0, var(--night) 62%); }
[data-theme="light"] .card__ph { background: radial-gradient(120% 90% at 50% 20%, #fffaf0, #e8dfcc 75%); }
[data-theme="light"] .card__ph--art svg { filter: none; }
[data-theme="light"] .reel__card { box-shadow: 0 18px 36px -24px rgba(22, 28, 48, .55); }
[data-theme="light"] .field input, [data-theme="light"] .field select { background: #fffdf8; border-color: rgba(22, 28, 48, .22); }
[data-theme="light"] .field [aria-invalid="true"] { border-color: #b3402a; }
[data-theme="light"] .err { color: #a3361f; }
[data-theme="light"] .hero__sticky { background-image: none; }

/* the hero and the header over it follow the backdrop: --sw flips from 0 (light) to 1 (dark) around half way */
[data-theme="light"] .hero__sticky, [data-theme="light"] .site:not(.is-solid):not(.is-open) {
  --sw: clamp(0, (var(--dk, 0) - .45) * 20, 1);
  --h-ink: color-mix(in srgb, #f4efe4 calc(var(--sw) * 100%), #161c30);
  --h-muted: color-mix(in srgb, #d7d8de calc(var(--sw) * 100%), #3f475c);
  --h-gold: color-mix(in srgb, #e3bd78 calc(var(--sw) * 100%), #87621f);
  --h-scrim: color-mix(in srgb, #070a14 calc(var(--dk, 0) * 100%), #f6f2ea);
  --h-hair: color-mix(in srgb, rgba(233, 201, 135, .3) calc(var(--sw) * 100%), rgba(22, 28, 48, .18));
  color: var(--h-ink);
}
[data-theme="light"] .site:not(.is-solid):not(.is-open) .logo, [data-theme="light"] .site:not(.is-solid):not(.is-open) .nav a:not(.btn), [data-theme="light"] .site:not(.is-solid):not(.is-open) .theme { color: var(--h-ink); border-color: var(--h-hair); }
[data-theme="light"] .site:not(.is-solid):not(.is-open) .logo { --lg-mark: var(--h-gold); --lg-sub: var(--h-gold); }
[data-theme="light"] .site:not(.is-solid):not(.is-open) .menu { border-color: var(--h-hair); }
[data-theme="light"] .site:not(.is-solid):not(.is-open) .menu i { background: var(--h-ink); }
[data-theme="light"] .hero__sticky .btn--solid, [data-theme="light"] .site:not(.is-solid):not(.is-open) .btn--solid {
  background: color-mix(in srgb, #e3bd78 calc(var(--sw) * 100%), #161c30); border-color: transparent;
  color: color-mix(in srgb, #1a1407 calc(var(--sw) * 100%), #f6f2ea);
}
[data-theme="light"] .hero__sticky .btn:not(.btn--solid) { border-color: var(--h-gold); color: var(--h-ink); }
[data-theme="light"] .stage__k { color: var(--h-gold); }
[data-theme="light"] .stage__k::after { background: var(--h-gold); }
[data-theme="light"] .stage p:not(.stage__k) { color: var(--h-muted); }
[data-theme="light"] .chips li { background: color-mix(in srgb, var(--h-scrim) 80%, transparent); border-color: var(--h-hair); }
[data-theme="light"] .rail { color: var(--h-muted); }
[data-theme="light"] .rail li::before { background: var(--h-hair); }
[data-theme="light"] .rail li.is-on { color: var(--h-ink); }
[data-theme="light"] .rail li.is-done, [data-theme="light"] .cue { color: var(--h-gold); }
[data-theme="light"] .hero__sticky::after { background: linear-gradient(90deg, color-mix(in srgb, var(--h-scrim) 78%, transparent), color-mix(in srgb, var(--h-scrim) 50%, transparent) 56%, transparent); }
@media (max-aspect-ratio: 95/100) {
  [data-theme="light"] .hero__sticky::after { background: linear-gradient(0deg, color-mix(in srgb, var(--h-scrim) 94%, transparent) 53%, color-mix(in srgb, var(--h-scrim) 70%, transparent) 78%, transparent); }
}

/* Instagram: the profile beside Instagram's own embed; the embed goes under it on narrow screens */
.ig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: clamp(32px, 6vw, 100px); align-items: center; }
.ig__intro { display: grid; gap: 20px; justify-items: start; }
.ig__intro .btns { margin-top: 6px; }
.ig__who { display: flex; align-items: center; gap: 14px; }
.ig__who svg { width: 44px; height: 44px; }
.ig__who b { display: block; font-size: 18px; }
.ig svg { fill: none; stroke: currentColor; stroke-width: 1.5; }
.ig__feed blockquote { margin: 0; }
.ig__feed .instagram-media, .ig__feed iframe { width: 100% !important; min-width: 0 !important; max-width: 100% !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; }
.ig__fallback { display: grid; place-items: center; align-content: center; gap: 14px; min-height: 420px; padding: 32px; text-align: center; background: rgba(120, 112, 96, .12); }
.ig__fallback svg { width: 44px; height: 44px; }
@media (max-width: 900px) { .ig { grid-template-columns: minmax(0, 1fr); } }

/* clinic photos */
.tour { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1.2vw, 16px); }
.tour__f { margin: 0; overflow: hidden; border-radius: 6px; background: var(--ivory-2); aspect-ratio: 3 / 2; }
.tour__f img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tour__f--lead { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 900px) {
  .tour { grid-template-columns: repeat(2, 1fr); }
  .tour__f--lead { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; }
}

/* direct call button */
.callfab { position: fixed; z-index: 41; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #1a1407; box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .55); transition: transform .2s; }
.callfab:hover { transform: scale(1.07); }
.callfab:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
@media (max-width: 900px) { .callfab { bottom: calc(54px + 14px + env(safe-area-inset-bottom, 0px)); } }
