/* ============================================================
   Houston Dental Esthetics — The Art of Beauty
   Navy ground · warm ivory bands · sage accent
   Fraunces (display) · Instrument Sans (body)
   ============================================================ */

:root {
	--ink-900: #071120;
	--ink-800: #0B1A30;
	--ink-700: #12233D;
	--ivory: #F4EFE6;
	--ivory-2: #EDE6D8;
	--ivory-dim: rgba(244, 239, 230, 0.6);
	--ivory-faint: rgba(244, 239, 230, 0.34);
	--sage: #A3CDB6;
	--sage-dim: rgba(163, 205, 182, 0.55);
	--sage-deep: #3F6B58;
	--ink-on-ivory: #14243C;
	--ink-dim-on-ivory: rgba(20, 36, 60, 0.62);
	--hairline: rgba(244, 239, 230, 0.13);
	--hairline-dark: rgba(20, 36, 60, 0.14);
	--font-display: "Fraunces", "Georgia", serif;
	--font-body: "Instrument Sans", "Helvetica Neue", sans-serif;
	--pad-x: clamp(20px, 5vw, 84px);
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
	background: var(--ink-800);
	color: var(--ivory);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* film grain */
body::after {
	content: "";
	position: fixed;
	inset: -50%;
	z-index: 2000;
	pointer-events: none;
	opacity: 0.05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--sage); color: var(--ink-900); }

.sr-only {
	position: absolute; width: 1px; height: 1px;
	clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

/* ---------- Type system ---------- */
.eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--sage);
}

.eyebrow__rule {
	display: inline-block;
	width: 44px;
	height: 1px;
	background: var(--sage);
	transform-origin: left center;
}

.eyebrow--center { justify-content: center; }

.h2 {
	font-family: var(--font-display);
	font-size: clamp(34px, 4.6vw, 62px);
	font-weight: 300;
	line-height: 1.08;
	letter-spacing: -0.01em;
	margin: 22px 0 26px;
}

.h2 em, .closer__title em, .hero__em {
	font-style: italic;
	font-weight: 300;
	color: var(--sage);
}

.h2--center { text-align: center; }

.body-lg { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; }
.body { font-size: 16px; color: var(--ivory-dim); }

/* light sections flip the palette */
.trust, .paths, .visit,
.trust .body, .paths .body, .visit .body {
	color: var(--ink-on-ivory);
}

/* ---------- Buttons & links ---------- */
.btn {
	display: inline-block;
	position: relative;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 16px 32px;
	border-radius: 999px;
	overflow: hidden;
	transition: color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), transform 0.3s var(--ease-out);
	will-change: transform;
}

.btn--solid {
	background: var(--sage);
	color: var(--ink-900);
}

.btn--solid::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--ivory);
	border-radius: inherit;
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform 0.45s var(--ease-out);
	z-index: 0;
}

.btn--solid:hover::before { transform: scaleX(1); transform-origin: left center; }
.btn--solid > * { position: relative; z-index: 1; }
.btn--solid { z-index: 0; }
.btn--solid:hover { color: var(--ink-900); }

/* keep label above sweep */
.btn--solid { display: inline-flex; }
.btn--solid::after { content: none; }

.btn--ghost {
	border: 1px solid var(--hairline);
	color: var(--ivory);
	padding: 11px 22px;
	font-size: 13px;
}

.btn--ghost:hover { border-color: var(--sage); color: var(--sage); }

.btn--lg { padding: 20px 44px; font-size: 15px; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--sage);
	position: relative;
	padding-bottom: 4px;
}

.link-arrow::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform 0.4s var(--ease-out);
}

.link-arrow:hover::after { transform: scaleX(1); transform-origin: left center; }

.link-arrow__glyph { transition: transform 0.35s var(--ease-out); }
.link-arrow:hover .link-arrow__glyph { transform: translateX(6px); }

.paths .link-arrow { color: var(--sage-deep); }

/* ---------- Preloader ---------- */
.preloader {
	position: fixed;
	inset: 0;
	z-index: 3000;
	background: var(--ink-900);
	display: flex;
	align-items: center;
	justify-content: center;
}

.preloader__inner { text-align: center; color: var(--sage); }

.preloader__tooth { width: 54px; height: auto; margin: 0 auto 18px; }

.preloader__path {
	stroke-dasharray: 120;
	stroke-dashoffset: 120;
	animation: hde-draw 1.1s var(--ease-out) forwards 0.1s;
}

@keyframes hde-draw { to { stroke-dashoffset: 0; } }

.preloader__word {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 300;
	font-size: 17px;
	letter-spacing: 0.08em;
	color: var(--ivory-dim);
	opacity: 0;
	animation: hde-fade 0.7s ease forwards 0.5s;
}

@keyframes hde-fade { to { opacity: 1; } }

/* ---------- Header ---------- */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 1000;
	transition: transform 0.5s var(--ease-out), background 0.4s ease, border-color 0.4s ease;
	border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
	background: rgba(7, 17, 32, 0.82);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom-color: var(--hairline);
}

.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: 18px var(--pad-x);
	max-width: 1680px;
	margin: 0 auto;
}

.brand { display: flex; align-items: center; }

/* client logo is dark blue — knocked out to ivory for the navy ground */
.brand__logo {
	height: 56px;
	width: auto;
	filter: brightness(0) invert(0.95);
	opacity: 0.96;
	transition: opacity 0.3s ease;
}

.brand:hover .brand__logo { opacity: 1; }

.brand__logo--footer { height: 50px; }

.site-nav { display: flex; gap: 26px; }

.site-nav__link {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--ivory-dim);
	position: relative;
	padding: 6px 0;
	transition: color 0.3s ease;
}

.site-nav__link::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 1px;
	background: var(--sage);
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform 0.35s var(--ease-out);
}

.site-nav__link:hover { color: var(--ivory); }
.site-nav__link:hover::after { transform: scaleX(1); transform-origin: left center; }

.site-header__right { display: flex; align-items: center; gap: 20px; }

.site-header__phone {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--ivory-dim);
	transition: color 0.3s ease;
}

.site-header__phone:hover { color: var(--sage); }

.menu-toggle {
	display: none;
	background: none;
	border: 0;
	width: 40px;
	height: 40px;
	cursor: pointer;
	position: relative;
	z-index: 1102;
}

.menu-toggle__line {
	display: block;
	width: 22px;
	height: 1.5px;
	background: var(--ivory);
	margin: 5px auto;
	transition: transform 0.35s var(--ease-out), opacity 0.3s;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) { transform: translateY(3.2px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) { transform: translateY(-3.3px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 1100;
	background: var(--ink-900);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 clamp(28px, 8vw, 60px);
	clip-path: inset(0 0 100% 0);
	transition: clip-path 0.6s var(--ease-out);
	visibility: hidden;
}

.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }

.mobile-menu__nav { display: flex; flex-direction: column; gap: 4px; }

.mobile-menu__nav a {
	font-family: var(--font-display);
	font-size: clamp(32px, 9vw, 44px);
	font-weight: 300;
	padding: 8px 0;
	border-bottom: 1px solid var(--hairline);
	transition: color 0.3s, padding-left 0.3s var(--ease-out);
}

.mobile-menu__nav a:hover { color: var(--sage); padding-left: 10px; }

.mobile-menu__foot {
	margin-top: 40px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	color: var(--ivory-dim);
}

.mobile-menu__foot a { color: var(--sage); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
	/* leaves room for the trust bar inside the first viewport */
	min-height: calc(100svh - 112px);
	display: flex;
	flex-direction: column;
	position: relative;
	background:
		radial-gradient(1100px 700px at 78% 30%, rgba(28, 52, 84, 0.55), transparent 60%),
		var(--ink-800);
	overflow: hidden;
}

.hero__inner {
	flex: 1;
	display: grid;
	grid-template-columns: 55fr 45fr;
	align-items: center;
	gap: clamp(24px, 4vw, 80px);
	padding: clamp(96px, 12vh, 150px) var(--pad-x) 36px;
	max-width: 1680px;
	width: 100%;
	margin: 0 auto;
}

.hero__eyebrow { margin-bottom: clamp(24px, 3.4vh, 40px); }

.hero__title {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: clamp(52px, 7.8vw, 118px);
	line-height: 1.02;
	letter-spacing: -0.015em;
}

.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line { display: block; }

.hero__title .line-mask:nth-child(2) .line { padding-left: clamp(30px, 6vw, 120px); }

.hero__sub {
	max-width: 500px;
	margin: clamp(26px, 3.6vh, 42px) 0 0;
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.65;
	color: var(--ivory-dim);
}

.hero__ctas {
	display: flex;
	align-items: center;
	gap: 34px;
	margin-top: clamp(30px, 4.4vh, 52px);
	flex-wrap: wrap;
}

/* hero visual */
.hero__visual { position: relative; align-self: stretch; display: flex; align-items: center; }

.hero__glow {
	position: absolute;
	inset: 10% 0;
	background: radial-gradient(closest-side, rgba(163, 205, 182, 0.12), transparent 70%);
	filter: blur(10px);
}

.ba--hero {
	position: relative;
	width: 100%;
	max-width: 440px;
	margin-left: auto;
}

.ba--hero .ba__frame {
	aspect-ratio: 4 / 5;
	box-shadow: 0 40px 90px rgba(4, 10, 20, 0.5);
}

.ba__frame--photo .ba__layer { padding: 0; }

.ba__frame--photo .ba__layer img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	user-select: none;
	-webkit-user-drag: none;
}

.ba__caption {
	margin-top: 14px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--ivory-dim);
}

.ba__caption span { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ivory-faint); margin-top: 4px; }

.crown-draw { width: 100%; max-height: 74vh; position: relative; }

.crown-draw__grid line { stroke: rgba(244, 239, 230, 0.05); stroke-width: 1; }

.crown-draw .draw { stroke: var(--sage); fill: none; }

.crown-draw__circle { stroke: var(--sage-dim); stroke-width: 1; opacity: 0.6; }
.crown-draw__tooth { stroke-width: 1.6; }
.crown-draw__detail { stroke-width: 1.1; opacity: 0.85; }
.crown-draw__dim line { stroke: var(--ivory-faint); stroke-width: 1; }

.crown-draw__labels text {
	font-family: var(--font-body);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	fill: var(--ivory-faint);
}

.crown-draw__labels .crown-draw__stamp { fill: var(--sage-dim); }

/* hero bottom strip */
.hero__strip {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px var(--pad-x) 26px;
	border-top: 1px solid var(--hairline);
	max-width: 1680px;
	width: 100%;
	margin: 0 auto;
	position: relative;
}

.hero__stars { display: flex; gap: 3px; color: var(--sage); font-size: 14px; }

.hero__strip-text { font-size: 14px; color: var(--ivory-dim); letter-spacing: 0.02em; }
.hero__strip-text strong { color: var(--ivory); font-weight: 600; }

.hero__scroll-hint {
	margin-left: auto;
	width: 1px;
	height: 34px;
	background: var(--hairline);
	position: relative;
	overflow: hidden;
}

.hero__scroll-hint span {
	position: absolute;
	left: 0; top: -50%;
	width: 100%; height: 50%;
	background: var(--sage);
	animation: hde-scrollhint 2.2s var(--ease-out) infinite;
}

@keyframes hde-scrollhint {
	0% { top: -50%; }
	60%, 100% { top: 110%; }
}

/* ---------- Trust bar ---------- */
.trust { background: var(--ivory); }

.trust__inner {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	max-width: 1680px;
	margin: 0 auto;
	padding: clamp(26px, 3.4vh, 44px) var(--pad-x);
}

.trust__item { padding: 6px 26px; border-left: 1px solid var(--hairline-dark); }
.trust__item:first-child { border-left: 0; padding-left: 0; }

.trust__lead {
	font-family: var(--font-display);
	font-size: clamp(17px, 1.45vw, 21px);
	font-weight: 400;
	color: var(--ink-on-ivory);
	line-height: 1.25;
}

.trust__sub { font-size: 12.5px; color: var(--ink-dim-on-ivory); margin-top: 6px; letter-spacing: 0.01em; }

/* ---------- Lab (differentiator) ---------- */
.lab {
	position: relative;
	background: var(--ink-800);
	padding: clamp(110px, 15vh, 190px) 0;
	overflow: hidden;
}

.thread {
	position: absolute;
	left: calc(var(--pad-x) / 2);
	top: 0;
	bottom: 0;
	width: 60px;
	pointer-events: none;
}

.thread__svg { width: 100%; height: 100%; }

.thread__path { stroke: var(--sage-dim); stroke-width: 1; }

.lab__inner {
	display: grid;
	grid-template-columns: 44fr 48fr;
	gap: clamp(40px, 6vw, 110px);
	max-width: 1480px;
	margin: 0 auto;
	padding: 0 var(--pad-x);
	align-items: start;
}

.lab__media { position: relative; display: flex; flex-direction: column; gap: 0; }

.lab__img {
	overflow: hidden;
	border-radius: 2px;
	position: relative;
}

.lab__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.78) contrast(1.04) brightness(0.94);
	transition: transform 1.2s var(--ease-out), filter 0.8s ease;
}

.lab__img::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 26, 48, 0.18), rgba(11, 26, 48, 0.02));
	pointer-events: none;
}

.lab__img:hover img { transform: scale(1.035); filter: saturate(1) contrast(1.02) brightness(1); }

.lab__img--tall { aspect-ratio: 16 / 11; }

.lab__img--offset {
	width: 62%;
	aspect-ratio: 1;
	margin: -18% 0 0 auto;
	box-shadow: 0 30px 80px rgba(4, 10, 20, 0.55);
	border: 6px solid var(--ink-800);
}

.lab__proof { margin-top: clamp(36px, 5vh, 56px); }

.lab__proof-title {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--sage);
	margin-bottom: 10px;
}

.lab__proof-item {
	padding: 22px 0;
	border-top: 1px solid var(--hairline);
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 18px;
}

.lab__proof-item h3 {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3;
}

.lab__proof-item p { font-size: 14.5px; color: var(--ivory-dim); line-height: 1.6; }

.lab__copy .body { margin-top: 18px; max-width: 60ch; }

/* ---------- Paths ---------- */
.paths { background: var(--ivory); padding: clamp(100px, 14vh, 170px) var(--pad-x); }

.paths__head { max-width: 1480px; margin: 0 auto clamp(44px, 6vh, 70px); }

.paths .eyebrow { color: var(--sage-deep); }
.paths .eyebrow__rule { background: var(--sage-deep); }
.paths .h2 em { color: var(--sage-deep); }

.paths__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(18px, 2vw, 30px);
	max-width: 1480px;
	margin: 0 auto;
}

.path-card {
	background: rgba(255, 255, 255, 0.5);
	border: 1px solid var(--hairline-dark);
	border-radius: 2px;
	padding: clamp(30px, 3vw, 46px);
	display: flex;
	flex-direction: column;
	gap: 18px;
	position: relative;
	transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s ease;
}

.path-card::before {
	content: "";
	position: absolute;
	top: 0; left: 0;
	width: 100%;
	height: 2px;
	background: var(--sage-deep);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.55s var(--ease-out);
}

.path-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 30px 60px rgba(20, 36, 60, 0.1);
	border-color: transparent;
}

.path-card:hover::before { transform: scaleX(1); }

.path-card__title {
	font-family: var(--font-display);
	font-size: clamp(26px, 2.4vw, 34px);
	font-weight: 300;
	font-style: italic;
	color: var(--ink-on-ivory);
}

.path-card__body { font-size: 15px; line-height: 1.65; color: var(--ink-dim-on-ivory); flex: 1; }

.path-card__services {
	font-size: 12.5px;
	letter-spacing: 0.02em;
	color: var(--ink-on-ivory);
	font-weight: 500;
	padding-top: 16px;
	border-top: 1px solid var(--hairline-dark);
}

.path-card__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Doctors ---------- */
.doctors { background: var(--ink-800); padding: clamp(110px, 15vh, 190px) var(--pad-x); }

.doctors__head { max-width: 1480px; margin: 0 auto clamp(44px, 6vh, 72px); }

.doctors__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(24px, 3vw, 48px);
	max-width: 1480px;
	margin: 0 auto;
}

.doctor__portrait {
	overflow: hidden;
	border-radius: 2px;
	aspect-ratio: 4 / 5;
	position: relative;
}

.doctor__portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 18%;
	transition: transform 1.2s var(--ease-out);
}

.doctor:hover .doctor__portrait img { transform: scale(1.03); }

.doctor__name {
	font-family: var(--font-display);
	font-size: clamp(24px, 2.2vw, 32px);
	font-weight: 400;
	margin-top: 26px;
}

.doctor__cred {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sage);
	margin: 8px 0 16px;
}

.doctor__bio { font-size: 15.5px; line-height: 1.7; color: var(--ivory-dim); max-width: 56ch; }
.doctor__bio em { color: var(--ivory); font-style: italic; font-family: var(--font-display); font-size: 1.06em; }

.doctors__closer {
	max-width: 780px;
	margin: clamp(60px, 8vh, 90px) auto 0;
	text-align: center;
	font-family: var(--font-display);
	font-weight: 300;
	font-size: clamp(20px, 2vw, 27px);
	line-height: 1.5;
}

.doctors__closer em { color: var(--sage); font-style: italic; }

/* ---------- Smile gallery ---------- */
.gallery {
	background: var(--ink-800);
	padding: clamp(110px, 15vh, 190px) 0;
	overflow: hidden;
}

.gallery__head { padding: 0 var(--pad-x); max-width: 1680px; margin: 0 auto; }

.gallery__intro {
	max-width: 62ch;
	font-size: clamp(15px, 1.3vw, 17px);
	line-height: 1.7;
	color: var(--ivory-dim);
	margin-bottom: 10px;
}

.gallery__scroller { margin-top: clamp(40px, 5vh, 60px); padding: 0 var(--pad-x); }

.gallery__track {
	display: flex;
	gap: clamp(18px, 2vw, 28px);
	overflow-x: auto;
	scrollbar-width: none;
	cursor: grab;
	padding-bottom: 8px;
}

.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-dragging { cursor: grabbing; }

.gallery__progress { margin-top: 30px; }

.gallery__cta { text-align: center; margin-top: clamp(40px, 6vh, 60px); }

.ba { flex: 0 0 clamp(320px, 40vw, 580px); margin: 0; }

.ba__frame {
	position: relative;
	aspect-ratio: 16 / 10;
	background: linear-gradient(160deg, var(--ink-700), var(--ink-800) 75%);
	border: 1px solid var(--hairline);
	border-radius: 2px;
	overflow: hidden;
	user-select: none;
	touch-action: pan-y;
}

.ba__layer {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 7% 10%;
}

.ba__layer svg { width: 100%; height: 100%; }

.ba__layer--after {
	background: linear-gradient(160deg, #152A47, #0E1E37 75%);
	clip-path: inset(0 0 0 50%);
}

.ba-tooth, .ba-line { fill: none; }
.ba-line { stroke-width: 1.2; }
.ba-dim { stroke: rgba(244, 239, 230, 0.38); fill: rgba(244, 239, 230, 0.04); }
.ba-line.ba-dim { fill: none; }
.ba-gone { stroke: rgba(244, 239, 230, 0.25); stroke-dasharray: 4 5; fill: none; }
.ba-worn { stroke: rgba(244, 239, 230, 0.3); stroke-dasharray: 3 4; fill: rgba(244, 239, 230, 0.03); }
.ba-shade { stroke: rgba(244, 239, 230, 0.32); fill: rgba(200, 180, 140, 0.1); }
.ba-sage { stroke: var(--sage-dim); fill: none; }
.ba-bright { stroke: var(--sage); stroke-width: 1.6; fill: rgba(163, 205, 182, 0.12); }

.ba__tag {
	position: absolute;
	top: 12px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ivory-faint);
	pointer-events: none;
}

.ba__tag--before { left: 14px; }
.ba__tag--after { right: 14px; color: var(--sage-dim); }

.ba__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 44px;
	margin-left: -22px;
	background: none;
	border: 0;
	cursor: ew-resize;
	padding: 0;
	z-index: 2;
	/* without this, a horizontally-scrollable ancestor claims the touch gesture before the handle */
	touch-action: none;
}

.ba__handle::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 1px;
	background: var(--sage);
	opacity: 0.9;
}

.ba__grip {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--sage);
	background: rgba(7, 17, 32, 0.75);
	backdrop-filter: blur(4px);
	transition: transform 0.3s var(--ease-out), background 0.3s;
}

.ba__handle:hover .ba__grip { transform: translate(-50%, -50%) scale(1.12); background: rgba(7, 17, 32, 0.9); }

.ba__grip::before, .ba__grip::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 0;
	height: 0;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	transform: translateY(-50%);
}

.ba__grip::before { left: 8px; border-right: 5px solid var(--sage); }
.ba__grip::after { right: 8px; border-left: 5px solid var(--sage); }

.ba figcaption {
	margin-top: 16px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--ivory-dim);
	max-width: 52ch;
}

/* ---------- Smile design ---------- */
.design { background: var(--ivory); padding: clamp(110px, 15vh, 180px) var(--pad-x); color: var(--ink-on-ivory); }

.design__inner { max-width: 1180px; margin: 0 auto; }

.design .eyebrow { color: var(--sage-deep); }
.design .eyebrow__rule { background: var(--sage-deep); }
.design .h2 { text-align: center; }
.design .h2 em { color: var(--sage-deep); }

.design__intro {
	max-width: 620px;
	margin: 0 auto;
	text-align: center;
}

.design__intro p {
	font-size: clamp(15.5px, 1.35vw, 17.5px);
	line-height: 1.7;
	color: var(--ink-dim-on-ivory);
}

.design__intro p + p {
	margin-top: 18px;
	color: var(--ink-on-ivory);
	font-weight: 500;
}

.design__steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-top: clamp(50px, 7vh, 78px);
	border-top: 1px solid var(--hairline-dark);
	border-bottom: 1px solid var(--hairline-dark);
}

.design-step {
	padding: clamp(26px, 3vw, 40px) clamp(18px, 2vw, 30px);
	border-left: 1px solid rgba(63, 107, 88, 0.25);
}

.design-step:first-child { border-left: 0; }

.design-step__num {
	display: block;
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 300;
	font-style: italic;
	color: var(--sage-deep);
	margin-bottom: 14px;
}

.design-step h3 {
	font-family: var(--font-display);
	font-size: clamp(18px, 1.6vw, 22px);
	font-weight: 400;
	margin-bottom: 10px;
	color: var(--ink-on-ivory);
}

.design-step p { font-size: 14px; line-height: 1.65; color: var(--ink-dim-on-ivory); }

.design__cta { text-align: center; margin-top: clamp(36px, 5vh, 54px); }
.design__cta .link-arrow { color: var(--sage-deep); }

.veneer-strip {
	margin-top: clamp(70px, 10vh, 110px);
	padding-top: clamp(44px, 6vh, 64px);
	border-top: 1px solid var(--hairline-dark);
}

.veneer-strip__title {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: clamp(24px, 2.6vw, 34px);
	text-align: center;
	margin-bottom: clamp(36px, 5vh, 54px);
	color: var(--ink-on-ivory);
}

.veneer-strip__title em { font-style: italic; color: var(--sage-deep); }

.veneer-strip__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(24px, 3vw, 48px);
	max-width: 1080px;
	margin: 0 auto;
}

.veneer-strip__item h4 {
	font-family: var(--font-display);
	font-size: 19px;
	font-weight: 400;
	color: var(--ink-on-ivory);
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(63, 107, 88, 0.3);
}

.veneer-strip__item p { font-size: 14.5px; line-height: 1.65; color: var(--ink-dim-on-ivory); }

/* ---------- Proof ---------- */
.proof {
	background: var(--ink-900);
	padding: clamp(110px, 15vh, 190px) 0;
	overflow: hidden;
}

.proof__head { padding: 0 var(--pad-x); max-width: 1680px; margin: 0 auto; }

.proof__hint {
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ivory-faint);
	margin-top: 4px;
}

.cases {
	margin-top: clamp(40px, 5vh, 60px);
	padding: 0 var(--pad-x);
}

.cases__track {
	display: flex;
	gap: clamp(18px, 2vw, 28px);
	overflow-x: auto;
	scrollbar-width: none;
	cursor: grab;
	/* top padding + negative margin so the hover lift isn't clipped by the scroll container */
	padding: 14px 0 8px;
	margin-top: -14px;
}

.cases__track::-webkit-scrollbar { display: none; }
.cases__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }

/* when every card fits, the track doesn't scroll — center it and drop the drag affordances */
[data-drag-track].is-static { justify-content: center; cursor: default; }
[data-drag-track].is-static + .cases__progress { display: none; }
.proof.has-static-track .proof__hint { display: none; }

.case {
	flex: 0 0 clamp(300px, 30vw, 420px);
	border: 1px solid var(--hairline);
	border-radius: 2px;
	padding: clamp(26px, 2.4vw, 40px);
	background: linear-gradient(160deg, var(--ink-700), var(--ink-800) 70%);
	display: flex;
	flex-direction: column;
	gap: 22px;
	user-select: none;
	transition: border-color 0.4s ease, transform 0.5s var(--ease-out);
}

.case:hover { border-color: var(--sage-dim); transform: translateY(-6px); }

.case__num {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--sage);
}

.case__diagram { width: 100%; max-width: 190px; margin: 6px auto; }
.case__diagram .draw { stroke: var(--sage); stroke-width: 1.4; opacity: 0.9; }

.case__desc {
	font-family: var(--font-display);
	font-size: clamp(19px, 1.7vw, 24px);
	font-weight: 300;
	line-height: 1.35;
	flex: 1;
}

.case__meta {
	font-size: 12.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ivory-faint);
	padding-top: 16px;
	border-top: 1px solid var(--hairline);
}

.cases__progress {
	height: 1px;
	background: var(--hairline);
	margin-top: 30px;
	position: relative;
}

.cases__progress span {
	position: absolute;
	left: 0; top: -0.5px;
	height: 2px;
	width: 20%;
	background: var(--sage);
	transition: width 0.2s linear;
}

/* reviews */
.reviews {
	max-width: 980px;
	margin: clamp(100px, 13vh, 160px) auto 0;
	padding: 0 var(--pad-x);
	text-align: center;
}

.reviews__title {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: clamp(24px, 2.6vw, 36px);
	margin-bottom: clamp(40px, 6vh, 64px);
}

.reviews__stage { position: relative; min-height: clamp(200px, 26vh, 260px); }

.review {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px);
	transition: opacity 0.7s ease, transform 0.7s var(--ease-out), visibility 0.7s;
}

.review.is-active { opacity: 1; visibility: visible; transform: translateY(0); }

.review p {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(21px, 2.5vw, 33px);
	line-height: 1.45;
	color: var(--ivory);
}

.review cite {
	display: block;
	margin-top: 22px;
	font-family: var(--font-body);
	font-style: normal;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--sage);
}

.reviews__dots { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }

.reviews__dots button {
	width: 26px;
	height: 3px;
	border: 0;
	border-radius: 2px;
	background: var(--hairline);
	cursor: pointer;
	transition: background 0.3s;
	padding: 0;
}

.reviews__dots button.is-active { background: var(--sage); }

.reviews__link { margin-top: 38px; }

/* ---------- Visit ---------- */
.visit { background: var(--ivory); padding: clamp(110px, 15vh, 180px) var(--pad-x); }

.visit__inner { max-width: 640px; margin: 0 auto; }

.visit .eyebrow { color: var(--sage-deep); }
.visit .eyebrow__rule { background: var(--sage-deep); }
.visit .h2 { text-align: center; }
.visit .h2 em { color: var(--sage-deep); }

.visit__steps { position: relative; margin-top: clamp(48px, 7vh, 76px); }

.visit__line {
	position: absolute;
	left: 27px;
	top: 10px;
	bottom: 10px;
	width: 1px;
	background: var(--hairline-dark);
}

.visit__line span {
	position: absolute;
	top: 0; left: -0.5px;
	width: 2px;
	height: 0%;
	background: var(--sage-deep);
}

.step {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 26px;
	padding: clamp(26px, 4vh, 40px) 0;
	position: relative;
}

.step__num {
	width: 56px;
	height: 56px;
	border: 1px solid var(--hairline-dark);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 300;
	color: var(--ink-on-ivory);
	background: var(--ivory);
	position: relative;
	z-index: 1;
	transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

.step.is-passed .step__num {
	background: var(--sage-deep);
	border-color: var(--sage-deep);
	color: var(--ivory);
}

.step__body h3 {
	font-family: var(--font-display);
	font-size: clamp(21px, 2vw, 26px);
	font-weight: 400;
	color: var(--ink-on-ivory);
	margin-bottom: 8px;
}

.step__body p { font-size: 15px; line-height: 1.65; color: var(--ink-dim-on-ivory); max-width: 52ch; }

/* step 4 emphasis — the trust unlock */
.step:last-child .step__body h3 { font-size: clamp(24px, 2.3vw, 30px); font-style: italic; }

/* ---------- Location ---------- */
.location { background: var(--ink-800); padding: clamp(100px, 13vh, 160px) var(--pad-x); }

.location__inner {
	display: grid;
	grid-template-columns: 55fr 45fr;
	gap: clamp(36px, 5vw, 90px);
	max-width: 1480px;
	margin: 0 auto;
	align-items: center;
}

.location__map {
	aspect-ratio: 5 / 4;
	border-radius: 2px;
	overflow: hidden;
	border: 1px solid var(--hairline);
}

.location__map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	filter: grayscale(1) invert(0.92) contrast(0.9) brightness(0.9) sepia(0.14);
}

.location__address {
	font-family: var(--font-display);
	font-style: normal;
	font-size: clamp(20px, 1.9vw, 26px);
	font-weight: 300;
	line-height: 1.4;
	margin-bottom: 14px;
}

.location__note { font-size: 14.5px; color: var(--ivory-dim); margin-bottom: 26px; }

.location__phone {
	display: inline-block;
	font-family: var(--font-display);
	font-size: clamp(24px, 2.4vw, 34px);
	font-weight: 300;
	color: var(--sage);
	margin-bottom: 30px;
	transition: color 0.3s;
}

.location__phone:hover { color: var(--ivory); }

.location__hours { border-top: 1px solid var(--hairline); max-width: 380px; }

.location__hours div {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid var(--hairline);
	font-size: 13.5px;
}

.location__hours dt { color: var(--ivory-dim); letter-spacing: 0.04em; }
.location__hours dd { color: var(--ivory); font-weight: 500; }

/* ---------- Closer ---------- */
.closer {
	background:
		radial-gradient(900px 500px at 50% 110%, rgba(28, 52, 84, 0.5), transparent 65%),
		var(--ink-900);
	padding: clamp(140px, 22vh, 240px) var(--pad-x);
	text-align: center;
}

.closer__title {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: clamp(46px, 6.6vw, 96px);
	line-height: 1.05;
	letter-spacing: -0.015em;
}

.closer__sub {
	margin: 28px auto 0;
	font-size: clamp(16px, 1.4vw, 19px);
	color: var(--ivory-dim);
	max-width: 44ch;
}

.closer__ctas { margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 20px; }

.closer__alt { font-size: 14px; color: var(--ivory-dim); }
.closer__alt a { color: var(--sage); font-weight: 600; }
.closer__alt a:hover { color: var(--ivory); }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--ink-900);
	border-top: 1px solid var(--hairline);
	padding: clamp(50px, 7vh, 80px) var(--pad-x) 30px;
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 40px;
	max-width: 1480px;
	margin: 0 auto;
}

.site-footer__brand { display: flex; gap: 14px; align-items: flex-start; }
.site-footer__brand .brand__mark { width: 26px; }

.site-footer__brand p {
	font-family: var(--font-display);
	font-size: 17px;
	line-height: 1.4;
}

.site-footer__brand span {
	font-family: var(--font-body);
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--sage-dim);
}

.site-footer__nav { display: flex; flex-direction: column; gap: 10px; }

.site-footer__nav a {
	font-size: 13.5px;
	color: var(--ivory-dim);
	transition: color 0.3s;
	width: fit-content;
}

.site-footer__nav a:hover { color: var(--sage); }

.site-footer__nap { font-size: 13.5px; color: var(--ivory-dim); line-height: 1.7; }
.site-footer__nap a { display: inline-block; margin-top: 10px; color: var(--sage); font-weight: 600; }

.site-footer__legal {
	max-width: 1480px;
	margin: 46px auto 0;
	padding-top: 22px;
	border-top: 1px solid var(--hairline);
	font-size: 12px;
	color: var(--ivory-faint);
	letter-spacing: 0.03em;
}

/* ---------- Sticky mobile bar ---------- */
.sticky-bar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 900;
	display: none;
	grid-template-columns: 1fr 2.2fr;
	background: rgba(7, 17, 32, 0.92);
	backdrop-filter: blur(12px);
	border-top: 1px solid var(--hairline);
	transform: translateY(100%);
	transition: transform 0.5s var(--ease-out);
}

.sticky-bar.is-visible { transform: translateY(0); }

.sticky-bar a {
	padding: 16px 10px calc(16px + env(safe-area-inset-bottom, 0px));
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.sticky-bar__call { color: var(--ivory); border-right: 1px solid var(--hairline); }
.sticky-bar__request { color: var(--ink-900); background: var(--sage); }

/* ---------- Reveal defaults (JS enhances) ----------
   :where() keeps specificity at zero so component :hover transforms still win */
.js :where([data-reveal]) { opacity: 0; transform: translateY(28px); }
.js :where([data-reveal].is-revealed) { opacity: 1; transform: none; }
.js .line { transform: translateY(110%); }
.js .eyebrow__rule { transform: scaleX(0); }

/* QA/no-motion mode: everything in final state */
.no-anim [data-reveal], .no-anim .line, .no-anim .eyebrow__rule,
.no-anim .hero__eyebrow, .no-anim .hero__sub, .no-anim .hero__ctas, .no-anim .hero__strip {
	opacity: 1 !important;
	transform: none !important;
}
.no-anim .preloader { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	.site-nav { display: none; }
	.site-header__cta { display: none; }
	.menu-toggle { display: block; }
}

@media (max-width: 1024px) {
	.hero__inner { grid-template-columns: 1fr; padding-top: 140px; }
	.hero__visual { margin-top: 44px; justify-content: center; }
	.ba--hero { margin: 0 auto; max-width: 440px; }
	.hero__sub { max-width: 560px; }
	.trust__inner { grid-template-columns: repeat(2, 1fr); gap: 8px 0; }
	.trust__item { border-left: 0; padding: 14px 0; border-top: 1px solid var(--hairline-dark); }
	.trust__item:nth-child(-n+2) { border-top: 0; }
	.lab__inner { grid-template-columns: 1fr; }
	.lab__media { max-width: 560px; }
	.paths__grid { grid-template-columns: 1fr; max-width: 640px; }
	.doctors__grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
	.design__steps { grid-template-columns: 1fr 1fr; border-bottom: 0; }
	.design-step { border-bottom: 1px solid var(--hairline-dark); }
	.design-step:nth-child(odd) { border-left: 0; }
	.veneer-strip__grid { grid-template-columns: 1fr; max-width: 560px; }
	.location__inner { grid-template-columns: 1fr; }
	.location__map { order: 2; }
	.site-footer__inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 760px) {
	.sticky-bar { display: grid; }
	.site-header__phone { display: none; }
	.brand__logo { height: 42px; }
	.hero__title .line-mask:nth-child(2) .line { padding-left: 8vw; }
	.lab__proof-item { grid-template-columns: 1fr; gap: 6px; }
	/* stack the smile gallery on mobile — no horizontal scroll competing with the slider handles */
	.gallery__track {
		flex-direction: column;
		gap: 44px;
		overflow-x: visible;
		cursor: default;
		padding-bottom: 0;
	}
	.ba { flex-basis: auto; }
	.ba figcaption { max-width: none; }
	.gallery__progress { display: none; }
	.design__steps { grid-template-columns: 1fr; }
	.design-step { border-left: 0; padding-left: 0; padding-right: 0; }
	.step { grid-template-columns: 44px 1fr; gap: 18px; }
	.step__num { width: 44px; height: 44px; font-size: 18px; }
	.visit__line { left: 21px; }
	.hero__strip { flex-wrap: wrap; }
	.site-footer { padding-bottom: 110px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.js [data-reveal], .js .line, .js .eyebrow__rule {
		opacity: 1 !important;
		transform: none !important;
	}
	.preloader { display: none; }
	.hero__scroll-hint { display: none; }
}
