/* Firn Dental: site styles. Tokens live in tokens.css; the theme engine (js/theme.js) interpolates them. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); color-scheme: light; overflow-x: clip; }
main, .showcase, .panel, .approach, .intro-film-wrap { overflow-x: clip; }
html[data-theme="night"] { color-scheme: dark; }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 1.5; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100000; background: var(--btn-bg); color: var(--btn-ink); padding: 10px 16px; border-radius: 6px; text-decoration: none; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; transition: top .3s var(--ease-out); }
.skip:focus { top: 16px; }
.theme-transitioning * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* ---------- loader: firn grains radar ---------- */
#loader { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: var(--bg); will-change: opacity; }
#loader .ld-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
#loader svg { width: 96px; height: auto; color: var(--ink); overflow: visible; }
#loader circle { opacity: .1; transform-box: fill-box; transform-origin: center; transform: scale(.55); animation: ld-radar 2.4s cubic-bezier(.4, 0, .2, 1) infinite; animation-delay: calc(var(--r) * .26s); }
@keyframes ld-radar { 0% { opacity: .1; transform: scale(.55); } 30% { opacity: .9; transform: scale(1); } 55% { opacity: .55; transform: scale(1); } 100% { opacity: .1; transform: scale(.55); } }
#loader .ld-word { display: flex; gap: .55em; font-size: 11px; letter-spacing: .1em; color: var(--ink); font-weight: 500; }
#loader .ld-word span { opacity: 0; animation: ld-fade .7s var(--ease-out) forwards; animation-delay: calc(var(--i) * .07s + .2s); }
@keyframes ld-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- WebGL layers ---------- */
.sky-layer { position: fixed; inset: 0; z-index: 0; background: var(--whiteout); }
.sky-layer canvas { width: 100%; height: 100%; }
.sky-fallback { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--sky) 0%, color-mix(in srgb, var(--sky) 40%, var(--whiteout)) 55%, var(--whiteout) 100%); opacity: 0; transition: opacity .6s; }
.no-webgl .sky-fallback { opacity: 1; }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 10; min-height: 100svh; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.hero-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 20; }
.hero-brand { display: flex; flex-direction: column; align-items: center; pointer-events: auto; transform: translate(-22vw, -12vh); position: relative; }
.hero-lockup { display: flex; align-items: center; gap: 22px; }
.hero-mark { width: 58px; height: auto; color: var(--ink); margin-top: .2em; opacity: 0; transform: translateY(-10px); }
.hero h1 { margin: 0; font-weight: 300; font-size: 3.1rem; letter-spacing: .58em; margin-right: -.58em; text-transform: uppercase; color: var(--ink); white-space: nowrap; opacity: 0; transform: translateY(-10px); line-height: 1.2; }
.hero h1 .sub { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.world-switch { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 18px; display: flex; flex-direction: column; align-items: center; opacity: 0; white-space: nowrap; pointer-events: auto; }
.ws-label { font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); opacity: .55; line-height: 1; margin-bottom: 8px; }
.ws-tag { font-size: .92rem; font-weight: 300; letter-spacing: .06em; color: var(--ink); line-height: 1.4; margin-bottom: 12px; }
.ws-line { width: 48px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .5; margin-bottom: 14px; }
.ws-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; font-size: 1.12rem; font-weight: 400; letter-spacing: .05em; color: var(--accent); padding: 8px 2px; line-height: 1.3; }
.ws-btn .arr { display: inline-block; font-size: 1.15rem; line-height: 1; }
.ws-btn .serif { font-size: 1.2em; }

/* nav */
.site-nav { position: absolute; top: 0; right: 0; z-index: 30; padding: 40px 48px; pointer-events: auto; }
.nav-pill { display: flex; align-items: center; gap: 2rem; padding: 10px 20px; border-radius: 6px; background: linear-gradient(180deg, rgba(var(--glass-rgb), .3), rgba(var(--glass-rgb), .4)); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(var(--glass-rgb), .3); opacity: 0; transition: background .4s ease; white-space: nowrap; }
.nav-pill:hover { background: linear-gradient(180deg, rgba(var(--glass-rgb), .55), rgba(var(--glass-rgb), .65)); }
.nav-link { position: relative; font-size: 13px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--ink-rgb), .75); text-decoration: none; text-shadow: 0 0 12px rgba(var(--glass-rgb), .6); transition: color .5s var(--ease-out), letter-spacing .5s var(--ease-out); opacity: 0; transform: translateX(20px); }
.nav-link::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 0; height: 1px; background: currentColor; opacity: .4; transition: width .5s var(--ease-out), left .5s var(--ease-out), opacity .5s var(--ease-out); }
.nav-link:hover, .nav-link[aria-current="page"] { color: rgba(var(--ink-rgb), 1); letter-spacing: .18em; }
.nav-link:hover::after { width: 60%; left: 20%; opacity: .6; }
.nav-book { align-self: stretch; display: flex; align-items: center; margin: -10px 0 -10px 1rem; padding: 10px 20px; border: 0; border-radius: 4px; cursor: pointer; background: var(--btn-bg); color: var(--btn-ink); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transform: translateX(20px); transition: letter-spacing .5s var(--ease-out), opacity .5s var(--ease-out); }
.nav-book.in:hover { letter-spacing: .18em; opacity: .88; }
.nav-world { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; padding: 4px 2px; cursor: pointer; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(var(--ink-rgb), .75); opacity: 0; transform: translateX(20px); transition: color .4s ease; }
.nav-world:hover { color: var(--ink); }
.nav-world svg { width: 14px; height: 14px; transition: transform .7s var(--ease-out); }
.nav-world:hover svg { transform: rotate(-35deg); }

/* phone header */
.m-head { display: none; align-items: center; gap: 10px; }
.m-msg { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 100px; background: rgba(var(--ink-rgb), .06); border: 1px solid rgba(var(--ink-rgb), .1); color: var(--ink); text-decoration: none; font-size: .65rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.m-msg svg { width: 15px; height: 15px; }
.burger { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; color: var(--ink); position: relative; z-index: 60; }

/* menu overlay */
.menu { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(var(--overlay-rgb), .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); opacity: 0; visibility: hidden; }
.menu-close { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(var(--ink-rgb), .15); background: none; color: var(--ink); cursor: pointer; transition: border-color .3s ease; }
.menu-close:hover { border-color: rgba(var(--ink-rgb), .45); }
.menu nav { width: 100%; padding: 0 10%; display: flex; flex-direction: column; align-items: flex-start; }
.menu-link { display: flex; align-items: baseline; gap: 16px; width: 100%; padding: 1.3rem 0; font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 200; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(var(--ink-rgb), .08); background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; text-align: left; }
.menu-link span { font-size: .65rem; font-weight: 400; letter-spacing: .2em; color: var(--accent); font-variant-numeric: tabular-nums; }
.menu-cta { display: inline-flex; align-items: center; gap: 12px; margin-top: 2.5rem; font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; }
.menu-cta .arr { transition: transform .3s ease; }
.menu-cta:hover .arr { transform: translateX(6px); }
.menu-meta { margin-top: 2.2rem; display: flex; gap: 18px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.menu-meta a { text-decoration: none; }

/* fixed hero chrome */
.scroll-cue { position: fixed; left: 32px; bottom: 32px; z-index: 100; height: 44px; display: flex; align-items: center; gap: 12px; color: var(--ink); opacity: 0; pointer-events: none; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue svg { width: 16px; height: 24px; }
.sound { position: fixed; right: 48px; bottom: 32px; z-index: 100; display: flex; align-items: center; gap: 16px; opacity: 0; visibility: hidden; }
.sound-note { opacity: 0; transform: translateX(10px); transition: opacity .5s ease, transform .5s ease; background: var(--footer-bg); color: var(--footer-ink); padding: 9px 14px; border-radius: 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; white-space: nowrap; border: 1px solid rgba(var(--footer-ink-rgb), .18); box-shadow: 0 12px 30px rgba(var(--ink-rgb), .12); }
.sound-note.show { opacity: 1; transform: none; }
.sound-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); transition: transform .3s var(--ease-out-quart); }
.sound-btn:hover { transform: scale(1.05); }
.sound-ring { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.sound-ring svg { width: 32px; height: 24px; pointer-events: none; overflow: visible; }
.cursor-hint { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; color: var(--ink); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .18s ease; text-shadow: 0 1px 8px rgba(var(--bg-rgb), .9); }
.to-top { position: fixed; right: 48px; bottom: 32px; z-index: 99; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(var(--ink-rgb), .25); background: rgba(var(--bg-rgb), .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .4s ease, transform .4s var(--ease-out), visibility .4s, border-color .3s ease; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ---------- showcase ---------- */
.showcase { position: relative; z-index: 20; margin-top: -29vh; min-height: 300vh; }
.showcase-fade { position: absolute; inset: 0; pointer-events: none; z-index: 0; background: linear-gradient(to bottom, transparent 0%, rgba(var(--bg-rgb), .15) 10vh, rgba(var(--bg-rgb), .4) 25vh, rgba(var(--bg-rgb), .7) 40vh, var(--bg) 55vh); }
.showcase-fill { position: absolute; left: 0; right: 0; top: 50vh; bottom: 0; background: var(--bg); z-index: 0; pointer-events: none; }
.dotsea-layer { position: sticky; top: 0; height: 100svh; width: 100%; margin-bottom: -100svh; z-index: 1; pointer-events: none; }
.dotsea-layer canvas { width: 100%; height: 100%; }
.dotsea-layer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 0%, transparent 75vh, rgba(var(--bg-rgb), .3) 80vh, rgba(var(--bg-rgb), .7) 85vh, var(--bg) 92vh); pointer-events: none; }

.intro-film-wrap { position: relative; z-index: 3; display: flex; justify-content: center; padding: 40vh 3rem 6vh; }
.intro-film { position: relative; width: 100%; max-width: 1000px; clip-path: inset(25% 25% 25% 25%); will-change: clip-path; }
.halo { position: absolute; inset: -30px; border-radius: 16px; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at center, rgba(var(--bg-rgb), .6) 0%, rgba(var(--bg-rgb), .3) 30%, transparent 70%); }
.halo-text { position: absolute; inset: -16px -24px; border-radius: 12px; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at center, rgba(var(--bg-rgb), .92) 0%, rgba(var(--bg-rgb), .75) 40%, rgba(var(--bg-rgb), .35) 70%, transparent 100%); }
.film { position: relative; overflow: hidden; border-radius: 3px; width: 100%; aspect-ratio: 16 / 9; contain: layout paint; background: linear-gradient(155deg, rgba(var(--line-rgb), .04), rgba(var(--accent-rgb), .06)); box-shadow: 0 2px 4px rgba(0, 0, 0, .02), 0 8px 24px rgba(0, 0, 0, .06), 0 24px 48px rgba(0, 0, 0, .04); }
.film.tall { aspect-ratio: 9 / 16; max-height: 580px; }
.film img, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.film video { opacity: 0; transition: opacity .6s ease; }
.film video.ready { opacity: 1; }

/* intro CTA */
.intro-cta-wrap { position: relative; z-index: 3; isolation: isolate; display: flex; justify-content: center; padding-bottom: 4vh; opacity: 0; }
.intro-cta { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 56px; border-radius: 6px; cursor: pointer; background: linear-gradient(135deg, rgba(var(--accent-end-rgb), .34), rgba(var(--accent-rgb), .2)); border: 1px solid rgba(var(--accent-rgb), .32); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 4px 24px rgba(var(--accent-rgb), .22), inset 0 1px 0 rgba(255, 255, 255, .45); animation: cta-breathe 3.5s var(--ease-in-out) infinite; transition: background .4s ease, border-color .4s ease, box-shadow .4s ease; }
.intro-cta-wrap::before { content: ""; position: absolute; left: 50%; top: 0; width: calc(100% - 0px); max-width: 520px; height: calc(100% - 4vh + 56px); transform: translate(-50%, -28px); z-index: -1; border-radius: 20px; pointer-events: none; background: radial-gradient(ellipse at center, rgba(var(--bg-rgb), 1) 0%, rgba(var(--bg-rgb), .92) 35%, rgba(var(--bg-rgb), .6) 65%, transparent 100%); }
.intro-cta .eyebrow { font-size: .65rem; letter-spacing: .35em; text-transform: uppercase; color: var(--muted); opacity: .8; }
.intro-cta .label { font-size: 1.3rem; font-weight: 300; letter-spacing: .22em; text-transform: uppercase; color: var(--heading); transition: letter-spacing .7s var(--ease-out); }
.intro-cta .line { display: block; width: 80px; height: 1px; margin-top: 4px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: line-breathe 3.5s var(--ease-in-out) infinite; }
.intro-cta:hover { animation: none; transform: scale(1); background: linear-gradient(135deg, rgba(var(--accent-end-rgb), .48), rgba(var(--accent-rgb), .3)); border-color: rgba(var(--accent-rgb), .5); box-shadow: 0 8px 32px rgba(var(--accent-rgb), .3), inset 0 1px 0 rgba(255, 255, 255, .5); }
.intro-cta:hover .line { animation: none; transform: scaleX(1); width: 100%; transition: width .5s var(--ease-out); }
.intro-cta:hover .label { letter-spacing: .28em; }
[data-theme="night"] .intro-cta { background: rgba(227, 234, 238, .88); border-color: rgba(244, 247, 248, .65); box-shadow: 0 4px 24px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .2); }
[data-theme="night"] .intro-cta .label { color: #08161F; }
[data-theme="night"] .intro-cta .eyebrow { color: rgba(8, 22, 31, .7); }
[data-theme="night"] .intro-cta .line { background: linear-gradient(90deg, transparent, #1A6E91, transparent); }
[data-theme="night"] .intro-cta:hover { background: rgba(244, 247, 248, .95); }
@keyframes cta-breathe { 0%, 100% { transform: scale(.97); } 50% { transform: scale(1.03); } }
@keyframes line-breathe { 0%, 100% { transform: scaleX(.55); } 50% { transform: scaleX(1); } }

/* approach */
.approach { position: relative; z-index: 3; min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 0 3rem; }
.approach-inner { position: relative; max-width: 900px; text-align: center; }
.eyebrow-label { margin: 0 0 2rem; font-size: .85rem; letter-spacing: .3em; text-transform: uppercase; color: var(--label); }
.approach h2 { margin: 0; font-size: 2.75rem; font-weight: 300; line-height: 1.15; letter-spacing: -0.03em; color: var(--heading); }

/* treatment panels */
.panel { position: relative; z-index: 3; isolation: isolate; padding: 2.5vh 8vw; }
.panel-row { display: flex; align-items: center; gap: 5vw; }
.panel-row.rev { flex-direction: row-reverse; }
.panel-media { position: relative; width: 34%; flex-shrink: 0; }
.panel-text { position: relative; flex: 1; padding-top: .5rem; }
.p-num { margin: 0 0 1rem; font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--label); }
.p-title { margin: .75rem 0 0; font-size: 3.2rem; font-weight: 200; line-height: 1.15; letter-spacing: -0.03em; color: var(--heading); }
.p-body { margin: 1.5rem 0 0; font-size: .95rem; line-height: 1.7; letter-spacing: .01em; color: var(--muted); max-width: 520px; }
.p-mobile-head { display: none; }
.panel.wide { padding: 2.5vh 8vw 2.5vh 12vw; }
.panel.wide .wide-head { position: relative; max-width: 50%; margin-bottom: 2.5rem; }
.panel.wide .panel-media { width: 70%; }
.panel.wide .wide-foot { position: relative; max-width: 35%; margin-top: 2.5rem; }

.cta-link { position: relative; display: inline-flex; align-items: center; gap: 14px; margin-top: 2.8rem; color: var(--accent); text-decoration: none; cursor: pointer; background: none; border: 0; padding: 0; }
.cta-link::before { content: ""; position: absolute; inset: -36px -44px -30px; z-index: -1; border-radius: 16px; pointer-events: none; background: radial-gradient(ellipse at center, rgba(var(--bg-rgb), .97) 0%, rgba(var(--bg-rgb), .88) 35%, rgba(var(--bg-rgb), .5) 65%, transparent 100%); }
.cta-link .t { font-size: .88rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; transition: letter-spacing .5s var(--ease-out), color .4s ease; }
.cta-link .l { width: 100px; height: 2px; border-radius: 1px; background: linear-gradient(90deg, var(--accent), var(--accent-end)); transform-origin: left center; transition: width .5s var(--ease-out); }
.cta-link .a { display: inline-block; font-size: 1rem; line-height: 1; transition: transform .5s var(--ease-out); }
.cta-link:hover .t { letter-spacing: .22em; }
.cta-link:hover .l { width: 140px; }
.cta-link:hover .a { transform: translateX(6px); }
.chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 1.5rem; padding: 10px 24px; border-radius: 4px; cursor: pointer; background: rgba(var(--accent-rgb), .08); border: 1px solid rgba(var(--accent-rgb), .3); color: var(--accent); font-size: .8rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; transition: background .35s ease, border-color .35s ease, letter-spacing .4s var(--ease-out); }
.chip:hover { background: rgba(var(--accent-rgb), .15); border-color: rgba(var(--accent-rgb), .5); letter-spacing: .16em; }
.chip .a { font-size: .9em; transition: transform .3s ease; }
.chip:hover .a { transform: translateX(3px); }
.spacer-morph { height: 30vh; position: relative; z-index: 1; pointer-events: none; }
.spacer-cross { height: 20vh; position: relative; z-index: 1; pointer-events: none; }
.spacer-tail { height: 25vh; position: relative; z-index: 1; pointer-events: none; }

/* video sound pill */
.vpill { position: absolute; right: clamp(8px, 1.8vw, 14px); bottom: clamp(8px, 1.8vw, 14px); z-index: 10; display: inline-flex; align-items: center; gap: 7px; width: 58px; height: 38px; padding: 0 9px 0 6px; overflow: hidden; border-radius: 999px; cursor: pointer; color: rgb(var(--vp-ink)); border: 1px solid rgba(var(--vp-ink), .12); background: linear-gradient(135deg, rgba(var(--vp-surface), .94), rgba(var(--vp-surface), .72)), linear-gradient(120deg, rgba(var(--accent-rgb), .08), rgba(var(--accent-end-rgb), .02)); box-shadow: 0 18px 40px rgba(var(--vp-shadow), .18), inset 0 1px 0 rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); transition: width .5s var(--ease-out-quart), padding .5s var(--ease-out-quart), transform .4s var(--ease-out-quart), border-color .35s var(--ease-out-quart), box-shadow .35s var(--ease-out-quart), background .35s var(--ease-out-quart); --vp-ink: var(--ink-rgb); --vp-surface: 255, 255, 255; --vp-shadow: var(--heading-rgb); }
[data-theme="night"] .vpill { --vp-surface: var(--paper-rgb); --vp-shadow: var(--bg-rgb); }
.vpill.expanded { width: 170px; padding: 0 14px 0 6px; }
.vpill:hover { border-color: rgba(var(--accent-rgb), .3); transform: translateY(-2px) scale(1.01); box-shadow: 0 22px 45px rgba(var(--vp-shadow), .2), 0 0 0 1px rgba(var(--accent-rgb), .08), inset 0 1px 0 rgba(255, 255, 255, .34); }
.vpill:focus-visible { outline: none; border-color: rgba(var(--accent-rgb), .44); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .14), 0 22px 45px rgba(var(--vp-shadow), .22); }
.vpill.on { background: linear-gradient(135deg, rgba(var(--vp-surface), .9), rgba(var(--vp-surface), .68)), linear-gradient(120deg, rgba(var(--accent-rgb), .18), rgba(var(--accent-end-rgb), .08)); }
.vp-halo { position: absolute; left: -22%; bottom: -98%; width: 84%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(var(--accent-rgb), .42) 0%, rgba(var(--accent-end-rgb), .16) 38%, transparent 72%); filter: blur(26px); opacity: .18; transition: opacity .45s var(--ease-out-quart), transform .55s var(--ease-out-quart); }
.vpill.on .vp-halo { opacity: .42; }
.vpill:hover .vp-halo { transform: scale(1.08); }
.vp-sheen { position: absolute; top: 0; left: -55%; width: 52%; height: 100%; pointer-events: none; background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, .46) 50%, transparent 100%); opacity: .5; transform: skew(-22deg) translateX(0); transition: transform .7s var(--ease-out-quart), opacity .35s var(--ease-out-quart); }
.vpill:hover .vp-sheen { opacity: .7; transform: skew(-22deg) translateX(250%); }
.vp-icon { position: relative; z-index: 1; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(var(--vp-ink), .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28); background: radial-gradient(circle at 32% 28%, rgba(var(--vp-ink), .12), rgba(var(--vp-ink), .04) 68%, rgba(var(--vp-ink), .02)); }
.vpill.on .vp-icon { background: radial-gradient(circle at 32% 28%, rgba(var(--accent-end-rgb), .28), rgba(var(--accent-rgb), .1) 46%, rgba(var(--vp-ink), .06)); }
.vp-icon svg { width: 13px; height: 13px; opacity: .92; }
.vp-label { position: relative; z-index: 1; display: inline-block; max-width: 0; margin-left: -7px; overflow: hidden; white-space: nowrap; opacity: 0; font-size: 11px; font-weight: 600; letter-spacing: .03em; transition: max-width .5s var(--ease-out-quart), opacity .35s var(--ease-out-quart), margin .5s var(--ease-out-quart); }
.vpill.expanded .vp-label { max-width: 120px; margin-left: 0; opacity: .85; }
.vp-meter { position: relative; z-index: 1; display: inline-flex; align-items: flex-end; gap: 2px; width: 10px; height: 12px; }
.vp-meter i { width: 2px; border-radius: 999px; background: rgba(var(--vp-ink), .26); transform-origin: bottom; transform: scaleY(.5); opacity: .55; transition: background .35s, opacity .35s, transform .35s; }
.vp-meter i:nth-child(1) { height: 5px; } .vp-meter i:nth-child(2) { height: 10px; } .vp-meter i:nth-child(3) { height: 7px; }
.vpill.on .vp-meter i { background: var(--accent); opacity: .95; transform: scaleY(1); animation: vp-meter 1.15s ease-in-out infinite; }
.vpill.on .vp-meter i:nth-child(2) { animation-delay: .15s; } .vpill.on .vp-meter i:nth-child(3) { animation-delay: .3s; }
.vp-dot { position: relative; z-index: 1; width: 5px; height: 5px; border-radius: 50%; background: rgba(var(--vp-ink), .25); transition: background .35s, box-shadow .35s; }
.vpill.on .vp-dot { background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), .45); animation: vp-pulse 1.6s ease-in-out infinite; }
@keyframes vp-meter { 0%, 100% { opacity: .45; transform: scaleY(.4); } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes vp-pulse { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.25); } }

/* ---------- globe + form ---------- */
.globe-section { position: relative; height: 200vh; margin-top: -25vh; background: var(--bg); }
.globe-layer { position: fixed; inset: 0; z-index: 22; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; overflow: hidden; background: var(--bg); will-change: opacity; }
.globe-stage { position: relative; display: flex; align-items: center; justify-content: center; }
.globe-canvas { position: relative; }
.globe-canvas canvas { width: 100%; height: 100%; }
.arc-ribbon { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; z-index: 5; }
.arc-ribbon svg { position: absolute; left: 0; top: 0; overflow: visible; opacity: 0; }
.arc-ribbon path { fill: none; stroke: rgba(var(--line-rgb), .1); stroke-width: 1; }
.arc-country { position: absolute; display: flex; align-items: center; gap: 12px; padding-right: 16px; white-space: nowrap; opacity: 0; }
.arc-country .ft { min-width: 34px; text-align: right; font-size: 12px; letter-spacing: .02em; }
.arc-country .dt { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.arc-country .nm { font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.globe-head { position: absolute; left: 5%; top: 45%; transform: translateY(-50%); max-width: 27%; opacity: 0; z-index: 25; display: flex; flex-direction: column; align-items: flex-start; pointer-events: none; }
.globe-head .country-shape { width: 150px; height: auto; margin-bottom: 18px; opacity: 0; }
.globe-head .country-shape path { fill: var(--ink); }
.globe-head h2 { margin: 0; font-size: 2.3rem; font-weight: 300; line-height: 1.15; letter-spacing: -0.02em; color: var(--heading); }
.globe-head h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; background: linear-gradient(90deg, var(--accent), var(--accent-end)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .06em; }
.globe-badge { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 3px; background: var(--btn-bg); color: var(--btn-ink); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.form-dock { position: absolute; left: 5%; top: 50%; transform: translateY(-50%); width: min(400px, 34vw); opacity: 0; z-index: 30; pointer-events: none; }
.m-country-list { display: none; }

/* registration form (shared by the dock and the modal) */
.reg { position: relative; padding: 34px 32px 26px; border-radius: 14px; background: rgba(var(--card-rgb), .82); border: 1px solid rgba(var(--line-rgb), .08); box-shadow: 0 30px 70px rgba(var(--heading-rgb), .12), 0 2px 6px rgba(var(--heading-rgb), .04); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); overflow: hidden; }
.reg::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-end)); }
.reg h3 { margin: 0; font-size: 1.75rem; font-weight: 300; line-height: 1.15; letter-spacing: -0.02em; color: var(--heading); }
.reg h3 em { font-family: var(--font-serif); font-style: italic; color: var(--accent); }
.reg .sub { margin: 10px 0 18px; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--label); }
.reg .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; margin-top: 14px; }
.field label { display: block; font-size: .8rem; font-weight: 300; letter-spacing: .02em; color: rgba(var(--ink-rgb), .62); }
.field input { width: 100%; padding: 8px 0 9px; border: 0; border-bottom: 1px solid rgba(var(--line-rgb), .2); background: transparent; color: var(--ink); font: inherit; font-size: .95rem; outline: none; border-radius: 0; transition: border-color .3s ease; }
.field::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.field:focus-within::after { transform: scaleX(1); }
.field.err input { border-bottom-color: var(--error); }
.field .msg { display: block; min-height: 0; font-size: .72rem; color: var(--error); margin-top: 4px; }
.reg-submit { position: relative; margin-top: 24px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; border: 0; border-radius: 6px; cursor: pointer; background: linear-gradient(135deg, var(--btn-bg), color-mix(in srgb, var(--btn-bg) 78%, var(--accent))); color: var(--btn-ink); font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; box-shadow: 0 10px 26px rgba(var(--heading-rgb), .18); transition: box-shadow .4s ease, transform .4s var(--ease-out); overflow: hidden; }
.reg-submit .ln { flex: 1; max-width: 60px; height: 1px; background: currentColor; opacity: .7; transform-origin: right; transition: max-width .5s var(--ease-out); }
.reg-submit:hover { box-shadow: 0 16px 34px rgba(var(--heading-rgb), .24); transform: translateY(-1px); }
.reg-submit:hover .ln { max-width: 90px; }
.reg-alt { margin-top: 14px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 6px; border: 1px solid rgba(var(--line-rgb), .12); background: transparent; color: rgba(var(--ink-rgb), .75); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: border-color .3s ease, color .3s ease; }
.reg-alt:hover { border-color: rgba(var(--line-rgb), .35); color: var(--ink); }
.reg-alt svg { width: 14px; height: 14px; }
.reg-ok { display: none; padding: 26px 0 8px; font-size: .95rem; line-height: 1.6; color: var(--muted); }
.reg.sent form { display: none; }
.reg.sent .reg-ok { display: block; }
.reg-note { margin: 12px 0 0; font-size: .68rem; line-height: 1.5; color: var(--label); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(28, 34, 38, .46); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.modal.open { opacity: 1; visibility: visible; }
.modal .reg { width: min(420px, 100%); transform: translateY(16px) scale(.98); transition: transform .5s var(--ease-out); }
.modal.open .reg { transform: none; }
.modal-close { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(var(--bg-rgb), .5); border: 1px solid rgba(var(--ink-rgb), .2); color: var(--ink); cursor: pointer; transition: border-color .3s, transform .5s var(--ease-out); }
.modal-close:hover { border-color: var(--ink); transform: rotate(90deg); }

/* footer */
.footer { position: relative; z-index: 30; padding: 34px 48px 30px; background: linear-gradient(180deg, var(--footer-bg), var(--footer-bg-end)); color: var(--footer-ink); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; font-weight: 300; letter-spacing: .34em; text-transform: uppercase; }
.footer-brand svg { width: 26px; height: auto; color: var(--footer-ink); }
.footer-links { display: flex; gap: 28px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.footer-links a { text-decoration: none; opacity: .75; transition: opacity .3s; }
.footer-links a:hover { opacity: 1; }
.footer-bottom { margin-top: 22px; display: flex; justify-content: space-between; gap: 24px; font-size: .72rem; letter-spacing: .06em; opacity: .7; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- phone / tablet ---------- */
@media (max-width: 1024px) {
  .hero-brand { transform: translateY(-20vh); }
  .hero-lockup { flex-direction: column; gap: 12px; }
  .hero-mark { width: 46px; margin-top: 0; }
  .hero h1 { font-size: 2rem; }
  .world-switch { margin-top: 20px; }
  .ws-tag { font-size: .72rem; }
  .ws-btn { display: inline-block; font-size: .9rem; letter-spacing: .03em; white-space: normal; max-width: min(88vw, 360px); text-align: center; line-height: 1.5; }
  .ws-btn .arr { margin-left: 6px; }
  .world-switch { white-space: normal; width: 90vw; }
  .site-nav { padding: 24px; }
  .nav-pill { display: none; }
  .m-head { display: flex; }
  .scroll-cue { left: 16px; bottom: 16px; font-size: 9px; gap: 8px; }
  .scroll-cue svg { width: 12px; height: 18px; }
  .sound { right: 20px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
  .sound-note { font-size: 9px; padding: 6px 9px; border-radius: 8px; }
  .scroll-cue span { max-width: 52vw; }
  .sound-ring { width: 34px; height: 34px; }
  .sound-ring svg { width: 22px; height: 18px; }
  .to-top { right: 20px; bottom: 24px; }
  .showcase { margin-top: -25vh; }
  .panel, .panel.wide { padding: 2.5vh 3rem; }
}
@media (max-width: 767px) {
  .showcase { margin-top: -20vh; min-height: 250vh; }
  .intro-film-wrap { padding: 30vh .75rem 4vh; }
  .intro-film { max-width: 92%; clip-path: none; opacity: 0; }
  .intro-cta { padding: 10px 22px; gap: 4px; }
  .intro-cta .eyebrow { font-size: .6rem; }
  .intro-cta .label { font-size: 1rem; }
  .intro-cta .line { width: 56px; }
  .approach { min-height: 40vh; padding: 0 1.5rem; }
  .eyebrow-label { font-size: .8rem; margin-bottom: 1.5rem; }
  .approach h2 { font-size: 1.6rem; line-height: 1.35; }
  .panel, .panel.wide { padding: 2vh 0; }
  .panel-row, .panel-row.rev { flex-direction: column; gap: 2.5rem; align-items: stretch; }
  .panel-media { width: 65%; margin: 0 auto; }
  .panel-text { padding: 0 1.25rem; }
  .panel-text .p-num, .panel-text .p-title { display: none; }
  .p-mobile-head { display: block; position: relative; padding: 0 1.25rem; }
  .p-num { font-size: .8rem; font-weight: 500; margin-bottom: .75rem; }
  .p-title { font-size: 1.8rem; margin-top: .5rem; }
  .p-body { font-size: .85rem; margin-top: 1.2rem; }
  .panel.wide .wide-head, .panel.wide .wide-foot { max-width: 100%; padding: 0 1.25rem; margin: 0 0 1.5rem; }
  .panel.wide .wide-foot { margin-top: 1.5rem; }
  .panel.wide .panel-media { width: 100%; padding: 0 1.25rem; }
  .film.tall { max-height: 420px; }
  .cta-link { margin-top: 2rem; gap: 10px; }
  .cta-link .t { font-size: .8rem; }
  .cta-link .l { width: 48px; }
  .cta-link:hover .l { width: 64px; }
  .chip { padding: 8px 18px; font-size: .75rem; }
  .spacer-cross { height: 15vh; } .spacer-tail { height: 15vh; }
  .globe-section { height: 170vh; margin-top: -15vh; }
  .globe-layer { flex-direction: column; justify-content: flex-start; z-index: 51; }
  .globe-stage { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .arc-ribbon { display: none; }
  .globe-head { position: absolute; left: 1.25rem; right: 1.25rem; top: auto; bottom: calc(16vh + 120px); transform: none; max-width: none; flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; }
  .globe-head .country-shape { width: 64px; margin: 0; }
  .globe-head h2 { font-size: 1.35rem; flex: 1; }
  .globe-badge { font-size: .62rem; padding: 6px 10px; margin-top: 4px; }
  .m-country-list { display: grid; position: absolute; left: 1.25rem; right: 1.25rem; bottom: 4vh; grid-template-columns: 1fr 1fr; gap: 6px 18px; opacity: 1; }
  .m-country-list div { display: flex; align-items: center; gap: 8px; opacity: 0; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
  .m-country-list b { font-weight: 400; font-size: 9px; color: var(--label); margin-left: auto; }
  .m-country-list i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
  .form-dock { left: 1.25rem; right: 1.25rem; width: auto; top: auto; bottom: 4vh; transform: none; }
  .reg { padding: 26px 22px 20px; }
  .reg h3 { font-size: 1.45rem; }
  .footer { padding: 26px 20px 22px; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-links { flex-wrap: wrap; gap: 14px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .intro-film { clip-path: none !important; }
}
