/* =========================================================
   HM Coastal v2 · "Sunrise over the Channel"
   Derived from the logo: a sun rising over waves inside a tooth.
   Light, airy grounds (dawn ivory to sea mist), royal blue for voice,
   turquoise for light and water. Yellow lives only in the logo.
   Type: Newsreader (readable editorial serif, echoes the serif wordmark) + Hanken Grotesk.
   Motifs: tooth mask, mission arch, wave lines, sun rays.
   ========================================================= */

:root {
	--ink: #101a3d;
	--ink-2: #36406a;
	--muted: #67708f;
	--royal: #2a3ea6;
	--royal-2: #1d2c84;
	--royal-deep: #141f5c;
	--tq: #46c9d3;            /* turquoise light */
	--tq-ink: #0d7480;        /* turquoise for text on light, AA */
	--tq-mist: #e3f5f6;
	--dawn: #fbf6ef;
	--mist: #f2f8f9;
	--shell: #fffdf9;
	--line: rgba(16, 26, 61, .14);
	--line-soft: rgba(16, 26, 61, .08);

	--display: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

	--fs-xs: .74rem;
	--fs-sm: .9rem;
	--fs-base: clamp(1rem, .97rem + .18vw, 1.09rem);
	--fs-lg: clamp(1.1rem, 1.02rem + .4vw, 1.3rem);
	--fs-h3: clamp(1.3rem, 1.1rem + .7vw, 1.75rem);
	--fs-h2: clamp(2.1rem, 1.4rem + 2.6vw, 3.9rem);
	--fs-display: clamp(2.8rem, 1.5rem + 5vw, 7rem);

	--wrap: 1300px;
	--gutter: clamp(18px, 4.2vw, 64px);
	--r: 20px;
	--ease: cubic-bezier(.19, 1, .22, 1);
	--ease-io: cubic-bezier(.65, 0, .35, 1);
	--util-h: 36px;
	--bar-h: 78px;
	--sky-top: #fbf6ef;
	--sky-bot: #f2f8f9;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body {
	margin: 0; color: var(--ink); background: var(--dawn);
	font-family: var(--sans); font-size: var(--fs-base); line-height: 1.68; font-weight: 400;
	-webkit-font-smoothing: antialiased; overflow-x: clip;
}
/* Day-cycle sky: a fixed gradient whose stops drift with scroll (main.js sets the vars). */
.sky { position: fixed; inset: 0; z-index: -2; background: linear-gradient(180deg, var(--sky-top), var(--sky-bot)); transition: background .2s linear; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .24em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.05; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; color: inherit; }
::selection { background: var(--tq); color: var(--royal-deep); }
:focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 800px); }
.muted { color: var(--muted); }

/* ---------- Type ---------- */
.display { font-family: var(--display); font-size: var(--fs-display); font-weight: 500; line-height: 1.02; letter-spacing: -.022em; font-optical-sizing: auto; }
.display--md { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 5rem); }
.h2 { font-family: var(--display); font-size: var(--fs-h2); font-weight: 500; line-height: 1.06; letter-spacing: -.018em; }
.h3 { font-family: var(--display); font-size: var(--fs-h3); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
.display em, .h2 em, .h3 em { font-style: normal; color: var(--royal); position: relative; white-space: nowrap; }
/* Wave underline under the accent phrase, drawn on reveal. */
.display em::after, .h2 em::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .22em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M0 6 C10 0 20 0 30 6 S50 12 60 6 S80 0 90 6 S110 12 120 6' fill='none' stroke='%2346c9d3' stroke-width='2.4'/%3E%3C/svg%3E") 0 50% / 100% 100% no-repeat;
	clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease) .5s;
}
.is-lit em::after, .no-js .display em::after, .no-js .h2 em::after, .reduced .display em::after, .reduced .h2 em::after { clip-path: inset(0 0 0 0); }
.on-dark .display em, .on-dark .h2 em { color: var(--tq); }

/* Small-caps label with a sun glyph (replaces the dash eyebrow). */
.label, .eyebrow {
	display: inline-flex; align-items: center; gap: .65em; margin: 0 0 1.4rem;
	font-family: var(--display); font-size: .95rem; font-weight: 500; letter-spacing: .14em; text-transform: lowercase; font-variant: small-caps;
	color: var(--tq-ink);
}
.label::before, .eyebrow::before {
	content: ""; width: 18px; height: 10px; flex: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 20'%3E%3Cpath d='M8 19a10 10 0 0 1 20 0' fill='none' stroke='%230d7480' stroke-width='2.2'/%3E%3Cpath d='M18 1v4M7 5l2.5 3M29 5l-2.5 3M1 13h4M31 13h4' stroke='%230d7480' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.on-dark .label { color: var(--tq); }
.on-dark .label::before { filter: brightness(2.2) saturate(.6); }
.lede { font-size: var(--fs-lg); line-height: 1.62; color: var(--ink-2); max-width: 38em; }
.prose { max-width: 44em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.1em; margin: 0 0 1.2em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--tq-ink); }
.prose a { color: var(--royal); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose h2 { font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); margin: 1.6em 0 .6em; letter-spacing: -.02em; }
.prose h3 { font-family: var(--display); font-size: var(--fs-h3); margin: 1.4em 0 .5em; }

/* ---------- Buttons: the sun rises inside them on hover ---------- */
.btn {
	--bg: var(--royal); --fg: #fff; --sun: var(--royal-deep);
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .65em;
	padding: 1em 1.6em; border: 0; border-radius: 999px; background: var(--bg); color: var(--fg);
	font-family: var(--sans); font-size: .95rem; font-weight: 650; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
	overflow: hidden; isolation: isolate; transition: color .5s var(--ease);
}
.btn::before {
	content: ""; position: absolute; left: 50%; bottom: 0; z-index: -1; width: 140%; aspect-ratio: 1; border-radius: 50%;
	background: var(--sun); transform: translate(-50%, 100%) scale(.4); transition: transform .8s var(--ease);
}
.btn:hover::before { transform: translate(-50%, 35%) scale(1); }
.btn svg { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }
.btn--light { --bg: #fff; --fg: var(--royal-deep); --sun: var(--tq-mist); }
.btn--line { --bg: transparent; --fg: var(--royal-deep); --sun: var(--royal); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--line:hover { color: #fff; }
.on-dark .btn--line { --fg: #fff; --sun: #fff; }
.on-dark .btn--line:hover { color: var(--royal-deep); }
.btn--sm { padding: .72em 1.25em; font-size: .88rem; }
.btn--block { width: 100%; }
.drawer__foot .btn--line { margin-top: 10px; }
@media (min-width: 1181px) and (max-width: 1380px) { .btn--dir { display: none; } } /* the blue bar carries Directions at these widths */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .55em; font-weight: 650; text-decoration: none; color: var(--royal); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform .5s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Intro: the sun rises over the waves ---------- */
.dawn-intro { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--dawn); overflow: hidden; }
.dawn-intro__sun { position: absolute; left: 50%; top: 58%; width: 120px; height: 120px; margin: -60px; border-radius: 50%; background: radial-gradient(circle, #fff 0 30%, rgba(70, 201, 211, .55) 31% 46%, rgba(70, 201, 211, 0) 70%); transform: translateY(60px); opacity: 0; }
.dawn-intro__waves { position: absolute; left: 0; right: 0; top: 58%; height: 42%; }
.dawn-intro__waves svg { width: 100%; height: 100%; }
.dawn-intro__word { position: relative; z-index: 2; text-align: center; color: var(--royal-deep); margin-top: -12vh; }
.dawn-intro__word strong { display: block; font-family: var(--display); font-size: clamp(1.8rem, 1rem + 3vw, 3.6rem); font-weight: 500; letter-spacing: .08em; font-variant: small-caps; text-transform: lowercase; overflow: hidden; }
.dawn-intro__word strong span { display: inline-block; transform: translateY(110%); }
.dawn-intro__word small { display: block; margin-top: 10px; font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--tq-ink); opacity: 0; }
.no-js .dawn-intro, .reduced .dawn-intro { display: none; }

/* ---------- Header ---------- */
.util { position: relative; z-index: 101; height: var(--util-h); background: var(--royal-deep); color: rgba(255, 255, 255, .86); font-size: .8rem; }
.util .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.util a { text-decoration: none; }
.util a:hover { color: #fff; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #9aa3c3; }
.status.is-open i { background: var(--tq); box-shadow: 0 0 0 0 rgba(70, 201, 211, .7); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(70, 201, 211, 0); } 100% { box-shadow: 0 0 0 0 rgba(70, 201, 211, 0); } }
.util__links { display: flex; gap: 22px; }
.site-header { position: sticky; top: 0; z-index: 100; transition: transform .7s var(--ease), background .5s, box-shadow .5s; }
.site-header__bar { width: min(100% - 2 * var(--gutter), 1440px); margin: 0 auto; height: var(--bar-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.site-header.is-scrolled { background: rgba(255, 253, 249, .86); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line-soft); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 40px; height: auto; transition: transform 1.2s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__word { display: grid; line-height: 1; }
.brand__word strong { font-family: var(--display); font-size: 1.32rem; font-weight: 600; letter-spacing: .05em; font-variant: small-caps; text-transform: lowercase; color: var(--royal-2); }
.brand__word strong::first-letter { text-transform: uppercase; }
.brand__word em { margin-top: 4px; font-style: normal; font-size: .62rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.nav { justify-self: center; }
.nav__list { display: flex; gap: 6px; list-style: none; }
.nav__link { position: relative; display: block; padding: .5em .95em; font-size: .94rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.nav__link::after { content: ""; position: absolute; left: .95em; right: .95em; bottom: .2em; height: 1.5px; background: var(--tq); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.nav__link:hover::after, .nav__item.is-open > .nav__link::after { transform: none; }
.site-header__cta { display: flex; align-items: center; gap: 14px; }
.phone-link { display: inline-flex; align-items: center; gap: .55em; font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--royal-deep); }
.phone-link svg { width: 17px; height: 17px; fill: var(--tq-ink); }

.mega { position: absolute; left: 0; right: 0; top: 100%; visibility: hidden; opacity: 0; transition: opacity .45s var(--ease), visibility 0s .45s; }
.nav__item.is-open .mega { visibility: visible; opacity: 1; transition-delay: 0s; }
.mega__inner {
	width: min(100% - 2 * var(--gutter), 1300px); margin: 10px auto 0; display: grid; grid-template-columns: 1fr 2.4fr 1fr; gap: 44px; padding: 40px;
	background: var(--shell); border-radius: 0 0 28px 28px; box-shadow: 0 40px 80px -40px rgba(16, 26, 61, .4), 0 0 0 1px var(--line-soft);
	clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
}
.nav__item.is-open .mega__inner { clip-path: inset(0 0 0 0); }
.mega__lede { font-family: var(--display); font-size: 1.45rem; line-height: 1.25; margin-bottom: 1.2em; letter-spacing: -.01em; }
.mega__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 30px; }
.mega__head { display: block; margin-bottom: .9em; font-family: var(--display); font-size: 1rem; font-variant: small-caps; text-transform: lowercase; letter-spacing: .12em; color: var(--tq-ink); text-decoration: none; }
.mega__col ul { list-style: none; display: grid; gap: .1em; }
.mega__col a:not(.mega__head) { display: inline-block; padding: .22em 0; font-size: .95rem; text-decoration: none; transition: color .3s, transform .5s var(--ease); }
.mega__col a:not(.mega__head):hover { color: var(--royal); transform: translateX(4px); }
.mega__feature { display: grid; gap: 8px; text-decoration: none; }
.mega__img { display: block; aspect-ratio: 3 / 3.6; border-radius: 999px 999px 18px 18px; overflow: hidden; }
.mega__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.mega__feature:hover img { transform: scale(1.06); }
.mega__feature strong { font-family: var(--display); font-size: 1.2rem; font-weight: 500; }
.mega__feature span:last-child { font-size: .88rem; color: var(--muted); }

.burger { display: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--tq-mist); position: relative; }
.burger span { position: absolute; left: 15px; right: 15px; height: 1.5px; background: var(--royal-deep); transition: transform .6s var(--ease); }
.burger span:first-child { top: 20px; } .burger span:last-child { top: 27px; }
.is-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.is-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.drawer { position: fixed; inset: 0; z-index: 99; background: var(--shell); padding: calc(var(--bar-h) + var(--util-h) + 20px) var(--gutter) 30px; overflow-y: auto; clip-path: circle(0 at calc(100% - 40px) 60px); transition: clip-path .9s var(--ease); visibility: hidden; }
.drawer.is-open { clip-path: circle(150% at calc(100% - 40px) 60px); visibility: visible; }
.drawer__group { border-bottom: 1px solid var(--line); }
.drawer__group summary { list-style: none; padding: 18px 0; font-family: var(--display); font-size: 2rem; cursor: pointer; display: flex; justify-content: space-between; letter-spacing: -.02em; }
.drawer__group summary::after { content: "+"; font-family: var(--sans); font-weight: 300; color: var(--tq-ink); transition: transform .4s; }
.drawer__group[open] summary::after { transform: rotate(45deg); }
.drawer__head { margin: .5em 0 .3em; font-family: var(--display); font-variant: small-caps; text-transform: lowercase; letter-spacing: .12em; color: var(--tq-ink); }
.drawer__head a { text-decoration: none; }
.drawer__group ul { list-style: none; padding-bottom: 14px; display: grid; gap: 7px; }
.drawer__group li a { text-decoration: none; font-size: 1.05rem; }
.drawer__single { display: block; padding: 18px 0; font-family: var(--display); font-size: 2rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer__foot { margin-top: 30px; display: grid; gap: 10px; color: var(--muted); }
.call-fab { position: fixed; left: 50%; bottom: 14px; z-index: 80; transform: translateX(-50%); display: none; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: var(--royal); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 20px 40px -16px rgba(20, 31, 92, .6); }
.call-fab svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Wave lines (logo motif) ---------- */
.waves { position: absolute; left: 0; right: 0; height: clamp(70px, 9vw, 140px); pointer-events: none; overflow: hidden; }
.waves svg { position: absolute; left: 0; width: 200%; height: 100%; }
.waves path { fill: none; stroke-linecap: round; }
.waves--bottom { bottom: -1px; }
.waves--top { top: -1px; transform: scaleY(-1); }

/* ---------- Home hero: video inside the tooth ---------- */
.thero { position: relative; height: 230vh; }
.thero__stage { position: sticky; top: 0; height: calc(100vh - var(--util-h)); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(18px, 3vh, 34px); padding: clamp(24px, 7vh, 90px) 0 calc(var(--bar-h) + clamp(14px, 3vh, 34px)); }
.thero__media {
	position: absolute; inset: 0; background: var(--royal-deep);
	-webkit-mask: url("../img/tooth-mask.svg") no-repeat; mask: url("../img/tooth-mask.svg") no-repeat;
	-webkit-mask-size: var(--ms, 34vw) auto; mask-size: var(--ms, 34vw) auto;
	/* Position by the tooth centre (--cx, --cy) so the mask grows in place. Tooth height is 1.06x its width. */
	-webkit-mask-position: calc(var(--cx, 73.5vw) - var(--ms, 34vw) / 2) calc(var(--cy, 50vh) - var(--ms, 34vw) * .53);
	mask-position: calc(var(--cx, 73.5vw) - var(--ms, 34vw) / 2) calc(var(--cy, 50vh) - var(--ms, 34vw) * .53);
}
.thero__media video, .thero__media img { width: 100%; height: 100%; object-fit: cover; }
.thero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 31, 92, 0) 40%, rgba(20, 31, 92, .75)); opacity: var(--shade, 0); }
.thero__copy { position: relative; z-index: 2; }
.thero__copy .display { --h1-room: calc(55vw - max(var(--gutter), (100vw - var(--wrap)) / 2)); max-width: 10.6em; color: var(--royal-deep); font-size: min(var(--fs-display), 9.4vh, calc(var(--h1-room) / 10.6)); }
.thero__copy .lede { max-width: 26em; margin: 1.6em 0 2em; }
.thero__meta { position: relative; z-index: 2; }
/* Short laptop screens: tighten the hero so the copy and the reviews row never collide. */
@media (min-width: 901px) and (max-height: 860px) {
	.thero__copy .lede { margin: 1.1em 0 1.4em; font-size: 1rem; }
}
.thero__meta .wrap { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; font-size: .9rem; color: var(--ink-2); }
.thero__meta strong { font-family: var(--display); font-size: 1.5rem; font-weight: 500; color: var(--royal-deep); margin-right: 6px; }
.thero__after { position: absolute; z-index: 3; inset: 0; display: grid; align-content: end; padding-bottom: clamp(50px, 10vh, 110px); color: #fff; opacity: 0; pointer-events: none; }
.thero__after p { font-family: var(--display); font-size: clamp(2rem, 1.2rem + 3.4vw, 5rem); line-height: 1.02; letter-spacing: -.03em; max-width: 13em; margin: 0; }
.thero__ring { position: absolute; z-index: 1; width: 46vw; aspect-ratio: 1; right: -4vw; top: 8vh; border-radius: 50%; border: 1px solid rgba(70, 201, 211, .35); pointer-events: none; }
.thero__ring::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 1px dashed rgba(42, 62, 166, .18); }
.stars { display: inline-flex; gap: 2px; vertical-align: -2px; }
.stars svg { width: 15px; height: 15px; fill: #e7b93b; }

/* ---------- Inner page hero: arch ---------- */
.phero { position: relative; padding: clamp(40px, 7vw, 100px) 0 clamp(90px, 11vw, 170px); }
.phero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 100px); align-items: end; }
.phero--simple .wrap { position: relative; }
.phero--simple h1 { max-width: 13em; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4em; list-style: none; margin: 0 0 30px; font-size: .82rem; color: var(--muted); }
.crumbs li + li::before { content: "\00B7"; margin-right: .4em; color: var(--tq-ink); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--royal); }
.phero h1 { margin-bottom: .5em; color: var(--royal-deep); }
.phero .lede { margin-bottom: 1.8em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0 0 32px; }
.chips li { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.chips a { color: inherit; text-decoration: underline; text-decoration-color: var(--tq); text-underline-offset: 4px; }
.chips a:hover { color: var(--royal); }
.btn-row--quick { margin-bottom: 14px; }
.jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 22px; font-size: .9rem; }
.jump span { font-weight: 700; color: var(--ink-2); margin-right: 4px; }
.jump a { padding: .45em 1em; border-radius: 999px; background: var(--tq-mist); color: var(--royal-deep); font-weight: 600; text-decoration: none; }
.jump a:hover { background: var(--tq); }
.section[id] { scroll-margin-top: 110px; }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; justify-items: center; align-items: start; }
.ig-grid .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: 420px !important; }
.ig-grid blockquote.instagram-media:not(.instagram-media-rendered) { display: grid; place-items: center; min-height: 220px; padding: 32px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.ig-grid blockquote.instagram-media:not(.instagram-media-rendered) a { display: inline-flex; padding: .8em 1.5em; border-radius: 999px; background: var(--royal); color: #fff; font-weight: 700; text-decoration: none; }
.ig-grid iframe[height="0"], .ig-grid iframe:not(.instagram-media-rendered) { display: none; }
.chips li::before { content: ""; width: 14px; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'%3E%3Cpath d='M1 6 C5 1 9 1 14 6 S23 11 27 6' fill='none' stroke='%2346c9d3' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.arch { position: relative; }
.arch__frame { position: relative; aspect-ratio: 4 / 5.2; border-radius: 999px 999px 24px 24px; overflow: hidden; background: var(--tq-mist); }
.arch__frame img { width: 100%; height: 118%; object-fit: cover; }
.arch::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border-radius: 999px 999px 26px 26px; border: 1px solid var(--tq); z-index: -1; }
.arch__sun { position: absolute; z-index: 2; left: -26px; bottom: 40px; width: 112px; height: 112px; border-radius: 50%; background: var(--shell); box-shadow: 0 20px 50px -20px rgba(16, 26, 61, .35); display: grid; place-items: center; text-align: center; }
.arch__sun strong { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 500; line-height: 1; color: var(--royal-deep); }
.arch__sun span { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.arch__sun svg.rays { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.phero .waves { color: var(--tq); }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 160px) 0; }
.section--tight { padding: clamp(60px, 7vw, 100px) 0; }
.section--glass { background: rgba(255, 255, 255, .55); }
.section--tide { background: linear-gradient(180deg, rgba(227, 245, 246, 0), rgba(227, 245, 246, .9) 30%, rgba(227, 245, 246, .9) 70%, rgba(227, 245, 246, 0)); }
.section--royal { background: var(--royal-deep); color: #fff; }
.section--royal .lede, .section--royal .prose p, .section--royal .muted { color: rgba(255, 255, 255, .78); }
.head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; margin-bottom: clamp(44px, 6vw, 84px); }
.head--center { grid-template-columns: 1fr; justify-items: center; text-align: center; max-width: 48em; margin-inline: auto; }
.head--center .lede { margin-inline: auto; }
.head .lede { margin: 0; }

.intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 7vw, 120px); align-items: start; }
.intro__h { position: sticky; top: calc(var(--bar-h) + 40px); }
.intro__h .h2 { color: var(--royal-deep); }

.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 7vw, 120px); align-items: center; }
.split--rev > .arch, .split--rev > .split__media { order: 2; }
.split__body .h2 { margin-bottom: .55em; color: var(--royal-deep); }
.split__media { position: relative; aspect-ratio: 16 / 11; border-radius: var(--r); overflow: hidden; }
.split__media img { width: 100%; height: 118%; object-fit: cover; }
.ticks { list-style: none; display: grid; gap: 12px; margin: 1.6em 0 0; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 18px; height: 9px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'%3E%3Cpath d='M1 6 C5 1 9 1 14 6 S23 11 27 6' fill='none' stroke='%230d7480' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Offerings: an editorial list, not a card grid */
.offer { border-top: 1px solid var(--line); list-style: none; }
.offer__item { border-bottom: 1px solid var(--line); }
.offer__row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 48px; gap: 30px; align-items: center; padding: 30px 0; text-decoration: none; isolation: isolate; }
.offer__row::before { content: ""; position: absolute; inset: 0 -24px; z-index: -1; border-radius: 16px; background: var(--shell); transform: scaleY(.4); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
a.offer__row:hover::before { transform: none; opacity: 1; box-shadow: 0 20px 50px -30px rgba(16, 26, 61, .35); }
.offer__row h3 { font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 400; letter-spacing: -.02em; color: var(--royal-deep); }
.offer__row p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.go { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: background .4s, color .4s, transform .6s var(--ease); }
.go svg { width: 18px; height: 18px; }
a:hover > .go, a:hover .go { background: var(--royal); color: #fff; box-shadow: none; transform: rotate(-45deg); }

/* Steps: a wave path drawn by scroll, the sun travels along it */
.tide-steps { position: relative; display: grid; gap: clamp(40px, 6vw, 80px); padding-left: clamp(70px, 9vw, 130px); list-style: none; }
.tide-steps__line { position: absolute; left: 0; top: 0; bottom: 0; width: clamp(50px, 6vw, 80px); }
.tide-steps__line svg { width: 100%; height: 100%; overflow: visible; }
.tide-steps__line .track { stroke: var(--line); }
.tide-steps__line .draw { stroke: var(--tq); }
.tide-steps__sun { position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: radial-gradient(circle, #fff 0 34%, var(--tq) 36% 60%, rgba(70, 201, 211, .0) 62%); box-shadow: 0 0 0 8px rgba(70, 201, 211, .18); }
.tide-step { position: relative; max-width: 46em; }
.tide-step small { display: block; margin-bottom: .5em; font-family: var(--display); font-variant: small-caps; text-transform: lowercase; letter-spacing: .14em; color: var(--tq-ink); }
.tide-step h3 { font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); font-weight: 400; letter-spacing: -.02em; color: var(--royal-deep); margin-bottom: .4em; }
.tide-step p { color: var(--ink-2); margin: 0; }

/* Compare */
.compare { width: 100%; border-collapse: collapse; font-size: .98rem; }
.compare th, .compare td { padding: 20px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--display); font-weight: 500; font-size: 1.3rem; color: var(--royal-deep); border-bottom: 2px solid var(--royal); }
.compare tbody th { font-weight: 650; width: 24%; }
.compare tbody td:nth-child(2) { background: rgba(227, 245, 246, .6); }
.table-scroll { overflow-x: auto; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 40px; }
.fact { padding: 26px 0; border-top: 1px solid var(--line); }
.fact dt { font-family: var(--display); font-variant: small-caps; text-transform: lowercase; letter-spacing: .12em; color: var(--tq-ink); margin-bottom: .5em; }
.fact dd { margin: 0; font-family: var(--display); font-size: 1.5rem; line-height: 1.2; color: var(--royal-deep); }

/* Quote */
.sunquote { position: relative; text-align: center; padding: clamp(90px, 12vw, 180px) 0; overflow: hidden; }
.sunquote__sun { position: absolute; left: 50%; top: 50%; width: min(70vw, 760px); aspect-ratio: 1; margin: calc(min(70vw, 760px) / -2) 0 0 calc(min(70vw, 760px) / -2); border-radius: 50%; background: radial-gradient(circle, rgba(70, 201, 211, .26), rgba(70, 201, 211, 0) 62%); pointer-events: none; }
/* Welcome video card: a real office photo as the cover, Vimeo loads on click. */
.vcard { position: relative; max-width: 900px; margin: clamp(44px, 6vw, 72px) auto 0; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(20, 32, 96, .45); background: var(--royal-deep); }
.vcard__btn { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.vcard__btn .vcard__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.vcard__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 32, 96, .12) 20%, rgba(20, 32, 96, .72)); }
.vcard__copy { position: absolute; left: clamp(20px, 4vw, 44px); right: clamp(20px, 4vw, 44px); bottom: clamp(20px, 4vw, 40px); display: flex; align-items: center; gap: clamp(14px, 2.4vw, 26px); color: #fff; text-align: left; }
.vcard__face { flex: none; width: clamp(56px, 7vw, 86px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 3px solid #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.vcard__play { position: absolute; left: 50%; top: 44%; translate: -50% -50%; width: clamp(66px, 9vw, 104px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 10px rgba(255, 255, 255, .22); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.vcard__play svg { width: 42%; fill: var(--royal-deep); margin-left: 6%; }
.vcard__text { display: grid; gap: 4px; }
.vcard__text .label { color: rgba(255, 255, 255, .82); }
.vcard__text strong { font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, .9rem + 1.4vw, 2rem); line-height: 1.1; letter-spacing: -.02em; }
.vcard__text small { font-size: .85rem; opacity: .82; }
.vcard__btn:hover .vcard__bg, .vcard__btn:focus-visible .vcard__bg { transform: scale(1.04); }
.vcard__btn:hover .vcard__play, .vcard__btn:focus-visible .vcard__play { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(255, 255, 255, .18); }
.vcard__btn:focus-visible { outline: 3px solid var(--tq); outline-offset: -6px; border-radius: 28px; }
.vcard iframe, .vcard video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vcard video { background: #000; object-fit: contain; }
.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.vcard--sm { margin: 0; max-width: none; border-radius: 22px; }
.vcard--sm .vcard__play { width: clamp(54px, 5vw, 70px); top: 42%; }
.vcard--sm .vcard__copy { left: 20px; right: 20px; bottom: 18px; }
.vcard--sm .vcard__text strong { font-size: clamp(1.1rem, .9rem + .6vw, 1.4rem); }
.vcard--sm .vcard__text .label { display: block; font-size: .72rem; }
.split .vcard { margin-top: 0; }
@media (max-width: 600px) { .vcard { border-radius: 20px; } .vcard__text .label { display: none; } }
.sunquote blockquote { position: relative; margin: 0; }
.quote { max-width: 16em; margin: 0 auto; font-family: var(--display); font-size: clamp(2.2rem, 1.3rem + 3.6vw, 5rem); line-height: 1.05; letter-spacing: -.03em; color: var(--royal-deep); }
.quote-cite { display: block; margin-top: 1.8rem; font-family: var(--display); font-style: normal; font-variant: small-caps; text-transform: lowercase; letter-spacing: .16em; color: var(--tq-ink); font-size: 1.05rem; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 110px); }
.faq__head { position: sticky; top: calc(var(--bar-h) + 40px); align-self: start; }
.faq__head .h2 { color: var(--royal-deep); }
.faq__list { list-style: none; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 28px 0; background: none; border: 0; text-align: left; font-family: var(--display); font-size: clamp(1.15rem, 1rem + .55vw, 1.5rem); letter-spacing: -.01em; color: var(--royal-deep); }
.faq__q i { position: relative; flex: none; width: 34px; height: 34px; }
.faq__q i::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Ccircle cx='17' cy='17' r='6' fill='none' stroke='%232a3ea6' stroke-width='1.5'/%3E%3Cg stroke='%2346c9d3' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M17 2v5M17 27v5M2 17h5M27 17h5M6.4 6.4l3.5 3.5M24.1 24.1l3.5 3.5M6.4 27.6l3.5-3.5M24.1 9.9l3.5-3.5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; transition: transform .9s var(--ease); }
.faq__item.is-open .faq__q i::before { transform: rotate(135deg) scale(1.1); }
.faq__a { height: 0; overflow: hidden; }
.faq__a > div { padding: 0 64px 30px 0; color: var(--ink-2); }
.faq__a p:last-child { margin: 0; }
.no-js .faq__a { height: auto; }

/* Related: arches in a row */
.arches { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 26px); }
.arch-link { position: relative; display: grid; align-content: end; gap: 12px; min-height: 300px; padding: 36px 30px 30px; border-radius: 999px 999px 22px 22px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--line-soft); text-decoration: none; overflow: hidden; isolation: isolate; transition: color .5s; }
.arch-link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--royal), var(--royal-deep)); transform: translateY(101%); transition: transform .8s var(--ease); }
.arch-link:hover { color: #fff; }
.arch-link:hover::before { transform: none; }
.arch-link small { font-family: var(--display); font-variant: small-caps; text-transform: lowercase; letter-spacing: .12em; color: var(--tq-ink); }
.arch-link:hover small { color: var(--tq); }
.arch-link strong { font-family: var(--display); font-size: 1.7rem; font-weight: 400; line-height: 1.1; letter-spacing: -.02em; }
.arch-link:hover .go { background: var(--tq); color: var(--royal-deep); }

/* Sunrise CTA */
.sunrise { position: relative; overflow: hidden; padding: clamp(100px, 13vw, 190px) 0 clamp(150px, 16vw, 240px); background: linear-gradient(180deg, rgba(251, 246, 239, 0), #fdeee0 55%, #f9e2d2); text-align: center; }
.sunrise__sun { position: absolute; left: 50%; bottom: 10%; width: min(64vw, 620px); aspect-ratio: 1; margin-left: calc(min(64vw, 620px) / -2); border-radius: 50%; background: radial-gradient(circle, #fffaf3 0 22%, #ffe9cf 38%, rgba(255, 233, 207, 0) 68%); transform: translateY(var(--rise, 40%)); pointer-events: none; }
.sunrise .wrap { position: relative; z-index: 2; }
.sunrise .h2 { color: var(--royal-deep); max-width: 13em; margin: 0 auto .5em; }
.sunrise .lede { margin: 0 auto 2em; }
.sunrise .btn-row { justify-content: center; }
.sunrise__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin-top: 2.4em; font-size: .92rem; color: var(--ink-2); }
.sunrise__phone { display: block; margin: .4em 0 .6em; font-family: var(--display); font-size: clamp(2.6rem, 1.6rem + 4vw, 5.6rem); line-height: 1; letter-spacing: -.03em; text-decoration: none; color: var(--royal); }
.sunrise .waves { color: var(--royal); }

/* ---------- Home: apart panels ---------- */
.apart { display: flex; gap: 12px; height: clamp(460px, 62vh, 640px); }
.apart__panel { position: relative; flex: 1; min-width: 0; border-radius: 999px 999px 24px 24px; overflow: hidden; color: #fff; transition: flex 1s var(--ease); isolation: isolate; outline: none; }
.apart__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.apart__panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 31, 92, .05) 30%, rgba(20, 31, 92, .88)); }
.apart__panel.is-on { flex: 2.6; }
.apart__panel.is-on img { transform: scale(1.04); }
.apart__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(22px, 3vw, 40px); }
.apart__body h3 { font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 1vw, 2.1rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
.apart__body p { margin: .8em 0 0; max-width: 26em; font-size: .97rem; color: rgba(255, 255, 255, .86); opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.apart__panel.is-on .apart__body p { opacity: 1; transform: none; transition-delay: .25s; }

/* Treatment index with floating image */
.index { list-style: none; border-top: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 30px; align-items: baseline; padding: clamp(20px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .6s var(--ease), color .3s; }
.index strong { font-family: var(--display); font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3.6rem); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; color: var(--royal-deep); transition: color .3s; }
.index span { color: var(--ink-2); font-size: .97rem; }
.index small { font-family: var(--display); font-variant: small-caps; text-transform: lowercase; letter-spacing: .12em; color: var(--tq-ink); }
.index a:hover { padding-left: 18px; }
.index a:hover strong { color: var(--royal); }
.index-float { position: fixed; left: 0; top: 0; z-index: 60; width: 300px; aspect-ratio: 3 / 4; border-radius: 999px 999px 18px 18px; overflow: hidden; pointer-events: none; opacity: 0; transform: scale(.8); }
.index-float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.index-float img.is-on { opacity: 1; }

/* Lens: see what your dentist sees */
.lens { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 26px 26px; overflow: hidden; cursor: none; touch-action: none; background: var(--royal-deep); }
.lens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lens__scan { -webkit-mask: radial-gradient(circle var(--lr, 120px) at var(--lx, 50%) var(--ly, 55%), #000 98%, transparent 100%); mask: radial-gradient(circle var(--lr, 120px) at var(--lx, 50%) var(--ly, 55%), #000 98%, transparent 100%); }
.lens__ring { position: absolute; left: var(--lx, 50%); top: var(--ly, 55%); width: calc(var(--lr, 120px) * 2); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 6px rgba(70, 201, 211, .25), inset 0 0 30px rgba(70, 201, 211, .35); pointer-events: none; }
.lens__ring::after { content: "iTero view"; position: absolute; left: 50%; top: 100%; transform: translate(-50%, 12px); padding: 5px 12px; border-radius: 999px; background: rgba(20, 31, 92, .8); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.lens-list { list-style: none; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.lens-list a { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); text-decoration: none; }
.lens-list strong { display: block; font-family: var(--display); font-size: clamp(1.3rem, 1.05rem + .8vw, 1.85rem); font-weight: 400; letter-spacing: -.02em; }
.lens-list span { font-size: .92rem; color: rgba(255, 255, 255, .7); }
.lens-list .go { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.lens-list a:hover .go { background: var(--tq); color: var(--royal-deep); }

/* Doctor */
.doc { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 8vw, 130px); align-items: center; }
.doc .h2 { color: var(--royal-deep); }
.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 2.2em 0; padding: 0; list-style: none; }
.creds li { padding-top: 16px; border-top: 1.5px solid var(--tq); }
.creds strong { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 500; line-height: 1.15; color: var(--royal-deep); }
.creds span { font-size: .86rem; color: var(--muted); }
.signature { font-family: var(--display); font-size: 1.15rem; font-variant: small-caps; text-transform: lowercase; letter-spacing: .1em; color: var(--royal-2); }

/* Coastline map */
.coast { position: relative; }
.coast svg { width: 100%; height: auto; overflow: visible; }
.coast .land { fill: url(#landfade); stroke: none; }
.coast .shore { fill: none; stroke: var(--tq); stroke-width: 2; }
.coast .mtn { fill: none; stroke: rgba(42, 62, 166, .25); stroke-width: 1; }
.coast a, .coast .town { cursor: pointer; }
.coast .dot { fill: var(--shell); stroke: var(--royal); stroke-width: 2; transition: r .4s var(--ease), fill .3s; }
.coast .town:hover .dot, .coast .town.is-home .dot { fill: var(--tq); }
.coast .town.is-home .dot { stroke: var(--royal-deep); }
.coast text { font-family: var(--display); font-size: 17px; fill: var(--royal-deep); letter-spacing: -.01em; }
.coast text.sub { font-family: var(--sans); font-size: 11px; fill: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.coast .pulse { fill: none; stroke: var(--tq); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ping 2.8s var(--ease) infinite; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(4); opacity: 0; } }
.coast-list { display: none; }

/* Rating sun */
.rating { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(28px, 5vw, 70px); align-items: center; }
.rating__sun { position: relative; width: clamp(150px, 16vw, 210px); aspect-ratio: 1; display: grid; place-items: center; }
.rating__sun svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 60s linear infinite; }
.rating__sun strong { font-family: var(--display); font-size: clamp(3rem, 2.2rem + 2.4vw, 4.6rem); font-weight: 400; line-height: 1; color: var(--royal-deep); }
.rating .h3 { color: var(--royal-deep); margin-bottom: .4em; }
.rating .stars svg { width: 20px; height: 20px; }

/* Before / after */
.ba { position: relative; aspect-ratio: 437 / 257; border-radius: var(--r); overflow: hidden; user-select: none; touch-action: pan-y; background: #ddd; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #fff; }
.ba__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5' fill='none' stroke='%232a3ea6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: 0 10px 30px -10px rgba(16, 26, 61, .5); }
.ba__tag { position: absolute; top: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 253, 249, .9); color: var(--royal-deep); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ba__tag--l { left: 14px; } .ba__tag--r { right: 14px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.xray-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)) !important; align-items: start; }
.xray-grid .ba { aspect-ratio: auto; background: #111; }
.xray-grid .ba > img { position: relative; height: auto; }
.ba--still { touch-action: auto; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 30px 24px; }
.gallery-case { margin: 0; display: grid; gap: 12px; }
.gallery-case figcaption { font-family: var(--display); font-size: 1.05rem; color: var(--royal-deep); }
.gallery-quad { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: var(--r); overflow: hidden; }
.gallery-quad img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Collage */
.collage { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.collage figure { margin: 0; overflow: hidden; position: relative; border-radius: var(--r); }
.collage figure:nth-child(2) { border-radius: 999px 999px 22px 22px; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage figcaption { position: absolute; left: 14px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 253, 249, .92); font-size: .78rem; font-weight: 600; }

/* Forms */
.hm-form { display: grid; gap: 18px; }
.hm-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.field { display: grid; gap: 6px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 2px; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.02rem; font-weight: 500; transition: border-color .3s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--royal); }
.hm-form__hp { position: absolute; left: -9999px; }
.hm-form__note { margin: 0; font-size: .82rem; color: var(--muted); }
.hm-form__ok { margin: 0; padding: 16px 18px; border-radius: 14px; background: var(--tq-mist); font-weight: 600; }
.form-card { padding: clamp(28px, 4vw, 52px); border-radius: 28px; background: var(--shell); box-shadow: 0 40px 90px -50px rgba(16, 26, 61, .45), 0 0 0 1px var(--line-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 7vw, 110px); }
.info-list { display: grid; gap: 30px; }
.info-list h3 { font-family: var(--display); font-variant: small-caps; text-transform: lowercase; letter-spacing: .14em; font-size: 1rem; color: var(--tq-ink); margin-bottom: .5em; }
.info-list .big { font-family: var(--display); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.7rem); line-height: 1.05; letter-spacing: -.02em; text-decoration: none; color: var(--royal-deep); }
.hours { display: grid; gap: 6px; margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
.hours dt { font-weight: 600; } .hours dd { margin: 0; text-align: right; }
.hours .is-today { color: var(--royal); }
.hours .is-today dt::after { content: "  today"; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tq-ink); }
.map { border-radius: 999px 999px 28px 28px; overflow: hidden; aspect-ratio: 16 / 8; background: var(--tq-mist); }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.75) contrast(1.05); }
.link-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: padding .5s var(--ease), color .3s; }
.link-list a:hover { padding-left: 14px; color: var(--royal); }
.link-list svg { width: 20px; height: 20px; color: var(--royal); flex: none; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--royal-deep); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 34px; }
.post-card { display: grid; gap: 10px; text-decoration: none; }
.post-card__img { aspect-ratio: 4 / 3; border-radius: 999px 999px 18px 18px; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover img { transform: scale(1.05); }
.post-card__meta { font-size: .8rem; color: var(--muted); }
.post-card__title { font-family: var(--display); font-size: 1.55rem; font-weight: 400; line-height: 1.15; color: var(--royal-deep); }
.empty { max-width: 40em; }
.post__hero { margin: 0 0 60px; aspect-ratio: 16 / 8; border-radius: 28px; overflow: hidden; }
.post__hero img { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding-bottom: 100px; font-size: 1.08rem; }

/* Footer */
.site-footer { position: relative; margin-top: 0; padding: clamp(90px, 11vw, 150px) 0 0; background: var(--royal-deep); color: #fff; }
.site-footer .waves--top { top: calc(-1 * clamp(70px, 9vw, 140px) + 1px); transform: none; color: var(--royal-deep); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--tq); }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 44px; }
.site-footer__brand img { width: 54px; margin-bottom: 18px; }
.site-footer__word { font-family: var(--display); font-size: 1.8rem; font-variant: small-caps; text-transform: lowercase; letter-spacing: .04em; margin-bottom: .3em; }
.site-footer__word::first-letter { text-transform: uppercase; }
.site-footer__tag { color: rgba(255, 255, 255, .72); max-width: 22em; }
.site-footer .label { color: var(--tq); }
.site-footer .label::before { filter: brightness(2.4) saturate(.5); }
.site-footer .muted { color: rgba(255, 255, 255, .58); font-size: .88rem; }
.site-footer .hours div { border-color: rgba(255, 255, 255, .12); font-size: .9rem; }
.site-footer .hours dd { color: rgba(255, 255, 255, .78); }
.footer-phone { font-family: var(--display); font-size: 1.9rem; letter-spacing: -.02em; }
.footer-links { list-style: none; display: grid; gap: 8px; font-size: .95rem; }
.areas { font-size: .9rem; color: rgba(255, 255, 255, .66); }
.social { display: flex; gap: 10px; margin-top: 24px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); transition: background .4s, color .4s; }
.social a:hover { background: var(--tq); color: var(--royal-deep); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social a:nth-child(2) svg { fill: none; }
.social a:nth-child(2) svg circle:last-child { fill: currentColor; }
.site-footer__sea { position: relative; height: clamp(120px, 16vw, 230px); margin-top: clamp(50px, 7vw, 90px); overflow: hidden; }
.site-footer__sea img { position: absolute; left: 50%; bottom: -30px; width: clamp(160px, 18vw, 260px); margin-left: calc(clamp(160px, 18vw, 260px) / -2); opacity: .95; }
.site-footer__sea .waves { height: 100%; color: var(--tq); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 24px 0 34px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: rgba(255, 255, 255, .58); }
.site-footer__bottom a { margin-left: 18px; }

/* ---------- Motion initial states (only when JS runs) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); }
.js [data-stagger] > * { opacity: 0; transform: translateY(30px); }
.js [data-rise] { clip-path: inset(var(--rise, 100%) 0 0 0 round 999px 999px 24px 24px); }
.split-line { overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.reduced [data-reveal], .reduced [data-stagger] > * { opacity: 1 !important; transform: none !important; }
.reduced [data-rise] { --rise: 0% !important; clip-path: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.nav, .util__links { display: none; }
	.burger { display: inline-block; }
	.site-header__bar { grid-template-columns: 1fr auto; }
	.site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	:root { --bar-h: 70px; }
	.phero__grid, .split, .intro, .faq, .doc, .contact-grid, .head, .rating { grid-template-columns: 1fr; }
	.split--rev > .arch, .split--rev > .split__media { order: 0; }
	.intro__h, .faq__head { position: static; }
	.arch { max-width: 440px; }
	.arch__sun { left: auto; right: -6px; bottom: 20px; width: 96px; height: 96px; }
	.arches { grid-template-columns: 1fr; }
	.arch-link { min-height: 200px; border-radius: 24px; }
	.offer__row { grid-template-columns: 1fr auto; }
	.offer__row p { grid-column: 1 / -1; grid-row: 2; }
	.apart { flex-direction: column; height: auto; }
	.apart__panel { min-height: 300px; border-radius: 24px; }
	.apart__panel.is-on { flex: 1; }
	.apart__body p { opacity: 1; transform: none; }
	.index a { grid-template-columns: 1fr auto; }
	.index span { grid-column: 1 / -1; grid-row: 2; }
	.index-float { display: none; }
	.creds { grid-template-columns: 1fr; }
	.coast svg { display: none; }
	.coast-list { display: grid; gap: 0; list-style: none; border-top: 1px solid var(--line); }
	.coast-list a, .coast-list li > span { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 1.4rem; text-decoration: none; }
	.thero { height: auto; }
	.thero__stage { position: relative; height: auto; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: 0; gap: 0; }
	.thero__copy, .thero__meta { position: relative; top: auto; bottom: auto; }
	.thero__copy { padding-top: 34px; }
	.thero__copy .display { font-size: var(--fs-display); max-width: 9em; }
	.thero__media { position: relative; inset: auto; height: 62vw; min-height: 300px; margin: 10px var(--gutter) 0; border-radius: 999px 999px 24px 24px; -webkit-mask: none; mask: none; }
	.thero__ring, .thero__after, .thero__shade { display: none; }
	.thero__meta { padding: 22px 0 90px; }
	.tide-steps { padding-left: 58px; }
	.call-fab { display: inline-flex; }
	.btn--sm { display: none; }
}
@media (max-width: 600px) {
	.util { display: none; }
	.brand__word em { display: none; }
	.brand__word strong { font-size: 1.1rem; }
	.hm-form__grid, .site-footer__top { grid-template-columns: 1fr; }
	.faq__a > div { padding-right: 0; }
	.compare th, .compare td { padding: 14px 12px; }
	.site-footer__bottom a { margin: 0 14px 0 0; }
	.phone-link span { display: none; }
	.phone-link { width: 48px; height: 48px; border-radius: 50%; justify-content: center; background: var(--tq-mist); }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Phone numbers and scores in the sans for instant legibility. */
.sunrise__phone, .footer-phone, .info-list a.big[href^="tel"], .arch__sun strong, .rating__sun strong, .thero__meta strong { font-family: var(--sans); font-weight: 300; letter-spacing: -.04em; }
.index strong, .offer__row h3, .tide-step h3, .faq__q, .arch-link strong, .apart__body h3, .lens-list strong, .mega__lede, .quote { font-weight: 500; }

/* Mobile refinements */
.call-fab { white-space: nowrap; }
.reduced .tide-steps, .no-js .tide-steps { border-left: 1.5px solid var(--tq); padding-left: 32px; }
@media (max-width: 900px) {
	.thero__media { height: 96vw; max-height: 520px; margin: 6px auto 0; width: calc(100% - 2 * var(--gutter)); border-radius: 0;
		-webkit-mask: url("../img/tooth-mask.svg") center / contain no-repeat; mask: url("../img/tooth-mask.svg") center / contain no-repeat; }
	.thero__stage { grid-template-rows: auto auto auto; }
	.thero__copy { order: 2; }
	.thero__media { order: 1; }
	.thero__meta { order: 3; }
}
@media (max-width: 600px) {
	.brand__word strong { font-size: .98rem; white-space: nowrap; }
	.brand__mark { width: 34px; }
	.label { letter-spacing: .1em; }
}

.apart__body p { max-height: 0; overflow: hidden; margin-top: 0; }
.apart__panel.is-on .apart__body p { max-height: 12em; margin-top: .8em; }
.apart__panel:not(.is-on) .apart__body h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.5rem); }
@media (max-width: 900px) { .apart__body p { max-height: none; margin-top: .8em; } }
.drawer { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
@media (max-width: 600px) { .drawer { padding-top: calc(var(--bar-h) + 16px); } }
.site-header.is-open { background: var(--shell); box-shadow: 0 1px 0 var(--line-soft); transform: none; }

/* ---------- Signature care: pinned arch, images rise as treatments scroll past ---------- */
.sig { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.sig__media { position: sticky; top: calc(var(--bar-h) + 30px); height: calc(100vh - var(--bar-h) - 60px); display: flex; align-items: center; gap: 26px; }
.sig__stage { position: relative; flex: 1; aspect-ratio: 4 / 5; max-height: 100%; border-radius: 999px 999px 26px 26px; overflow: hidden; background: var(--tq-mist); }
.sig__img { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1.25s var(--ease); }
.sig__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 1.8s var(--ease); }
.sig__img.is-on { clip-path: inset(0 0 0 0); }
.sig__img.is-on img { transform: scale(1); }
.sig__sun { position: absolute; z-index: 3; left: 22px; bottom: 22px; width: 96px; height: 96px; border-radius: 50%; background: rgba(255, 253, 249, .94); backdrop-filter: blur(8px); display: grid; place-items: center; text-align: center; box-shadow: 0 16px 40px -18px rgba(16, 26, 61, .45); }
.sig__sun svg.rays { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); animation: spin 40s linear infinite; }
.sig__sun strong { display: block; font-family: var(--sans); font-size: 1.9rem; font-weight: 300; line-height: 1; color: var(--royal-deep); }
.sig__sun span { font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sig__bar { position: relative; width: 2px; align-self: stretch; margin: 12% 0; background: var(--line); border-radius: 2px; overflow: hidden; }
.sig__bar i { position: absolute; inset: 0; background: var(--tq); transform: scaleY(0); transform-origin: top; }
.sig__list { list-style: none; padding: 18vh 0 22vh; }
.sig__item { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .22; transform: translateX(0); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.sig__item.is-on { opacity: 1; transform: translateX(10px); }
.sig__item small { font-family: var(--display); font-variant: small-caps; text-transform: lowercase; letter-spacing: .14em; color: var(--tq-ink); font-size: 1rem; margin-bottom: .6em; }
.sig__item h3 { font-family: var(--display); font-size: clamp(2.2rem, 1.4rem + 2.8vw, 4.2rem); font-weight: 500; line-height: 1.02; letter-spacing: -.02em; color: var(--royal-deep); margin-bottom: .35em; }
.sig__item h3 a { text-decoration: none; }
.sig__item p { max-width: 26em; font-size: var(--fs-lg); color: var(--ink-2); margin-bottom: 1.2em; }
.sig__item .link-arrow { align-self: flex-start; }
.sig__thumb { display: none; }
.reduced .sig__item, .no-js .sig__item { opacity: 1; }
@media (max-width: 900px) {
	.sig { grid-template-columns: 1fr; }
	.sig__media { display: none; }
	.sig__list { padding: 0; display: grid; gap: 54px; }
	.sig__item { min-height: 0; opacity: 1; transform: none; }
	.sig__thumb { display: block; aspect-ratio: 4 / 3.4; border-radius: 999px 999px 20px 20px; overflow: hidden; margin-bottom: 20px; }
	.sig__thumb img { width: 100%; height: 100%; object-fit: cover; }
}

/* Failsafe: the intro always clears itself, even if scripts are slow, paused or blocked. */
.dawn-intro { animation: introOut .7s ease 4.6s forwards; }
@keyframes introOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ---------- Wave strips: each layer is 200% wide and slides exactly 50%, so it never runs out ---------- */
.waves .wave-layer { position: absolute; left: 0; top: 0; width: 200%; height: 100%; overflow: visible; animation: waveLoop 30s linear infinite; will-change: transform; }
.waves .wave-layer--1 { animation-duration: 42s; animation-direction: reverse; }
.waves .wave-layer--2 { animation-duration: 56s; }
@keyframes waveLoop { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.reduced .waves .wave-layer { animation: none; }

/* ---------- Footer: the tooth rises fully above the waves, never cropped ---------- */
.site-footer__sea { position: relative; height: auto; overflow: visible; margin-top: clamp(56px, 7vw, 96px); padding-top: 10px; display: grid; justify-items: center; }
.site-footer__sea img { position: relative; left: auto; bottom: auto; margin: 0; width: clamp(140px, 14vw, 210px); height: auto; z-index: 1; }
.site-footer__sea .waves { position: absolute; left: 0; right: 0; bottom: -6px; top: auto; height: clamp(70px, 7vw, 110px); z-index: 2; overflow: hidden; pointer-events: none; }
.waves svg, .waves .wave-layer { max-width: none; }
.site-footer .hours .is-today, .site-footer .hours .is-today dd { color: var(--tq); }
