/* ==========================================================================
   Medicare Eye Hospital — main stylesheet
   ========================================================================== */

:root {
	--navy-900: #14213E;
	--navy-800: #1E3358;
	--navy-700: #33507F;
	--gold-500: #C9A15C;
	--gold-600: #A17F42;
	--gold-100: #FBF3E3;
	--text: #434242;
	--text-2: #56637C; /* 6:1 on white, 5.6:1 on tint (WCAG AA) */
	--gold-700: #86662B; /* gold for small text on light backgrounds (≥4.8:1) */
	--on-dark: #BAC5CC;
	--white: #FFFFFF;
	--tint: #F4F6F5;
	--border: #E2E7E4;
	--green: #12B76A;

	--font-head: "Plus Jakarta Sans", system-ui, sans-serif;
	--font-body: "Inter", system-ui, sans-serif;

	--container: 1312px;
	--gutter: clamp(16px, 4.4vw, 64px);
	--section-y: clamp(64px, 8vw, 104px);
	--radius: 16px;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--ease-spring: cubic-bezier(.34, 1.56, .64, 1);
	--shadow-sm: 0 2px 8px rgba(20, 33, 62, .06);
	--shadow-md: 0 12px 32px -8px rgba(20, 33, 62, .16);
	--shadow-lg: 0 28px 60px -16px rgba(20, 33, 62, .28);
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font: 400 16px/1.7 var(--font-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden; /* fallback: propagates to the viewport, so sticky sections still work */
}
@supports (overflow: clip) { body { overflow-x: clip; } } /* clip never creates a scroll container */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-900); margin: 0; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }
.icon { flex-shrink: 0; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.tint { background: var(--tint); }

.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 999; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px; }

/* Typography helpers --------------------------------------------------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	font: 700 13.5px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
	color: var(--gold-700); margin-bottom: 16px;
}
.hero .eyebrow, .why .eyebrow, .anatomy .eyebrow, .site-footer .eyebrow { color: var(--gold-500); } /* bright gold only on navy */
.eyebrow--dash::before, .dash {
	content: ""; display: inline-block; width: 32px; height: 2px; background: var(--gold-500); border-radius: 2px;
	transform-origin: left; transition: transform .9s var(--ease) .2s;
}
.eyebrow--navy { color: var(--navy-900); }
.eyebrow--navy .dash { background: var(--navy-900); }
[data-reveal]:not(.is-visible) .eyebrow--dash::before,
.eyebrow--dash[data-reveal]:not(.is-visible)::before { transform: scaleX(0); }

.section-head { margin-bottom: clamp(40px, 5vw, 56px); }
.section-head h2 { font-size: clamp(28px, 3.2vw, 34px); font-weight: 800; }
.section-head p:not(.eyebrow) { color: var(--text-2); margin-top: 16px; font-size: 17px; }
.section-head--center { text-align: center; max-width: 620px; margin-inline: auto; }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Buttons --------------------------------------------------------------- */
.btn {
	--bg: var(--navy-900); --fg: #fff;
	position: relative; isolation: isolate; overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
	background: var(--bg); color: var(--fg);
	font: 700 15px/1.2 var(--font-body); white-space: nowrap;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn::after { /* shine sweep */
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
	transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .icon-arrow-right { transition: transform .35s var(--ease); }
.btn:hover .icon-arrow-right { transform: translateX(4px); }

.btn--gold { --bg: var(--gold-500); --fg: var(--navy-900); }
.btn--gold:hover { --bg: #D4AE6C; box-shadow: 0 14px 30px -10px rgba(201,161,92,.7); }
.btn--navy { --bg: var(--navy-900); }
.btn--navy:hover { --bg: var(--navy-800); }
.btn--outline-light { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline-light:hover { --bg: rgba(255,255,255,.08); border-color: #fff; }
.btn--outline-dark { --bg: transparent; --fg: var(--navy-900); border-color: var(--border); }
.btn--outline-dark:hover { border-color: var(--navy-900); }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--lg { padding: 16px 24px; }
.hero .btn-row { gap: 12px; flex-wrap: nowrap; }
.btn--xl { padding: 10px 28px 10px 10px; font-size: 16px; gap: 12px; }
.btn__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: var(--gold-500); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--navy-900); }
.link-arrow .icon-youtube { color: #E31E24; }
.link-arrow .icon-arrow-right { transition: transform .3s var(--ease); }
.link-arrow:hover .icon-arrow-right { transform: translateX(4px); }

/* Scroll progress + back to top ----------------------------------------- */
.scroll-progress {
	position: fixed; inset: 0 0 auto; height: 3px; z-index: 200;
	background: linear-gradient(90deg, var(--gold-500), #E8C98E);
	transform-origin: left; transform: scaleX(var(--progress, 0));
}
.back-to-top {
	position: fixed; right: 24px; bottom: 24px; z-index: 90;
	width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
	background: var(--navy-900); color: var(--gold-500); box-shadow: var(--shadow-md);
	opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none;
	transition: opacity .4s var(--ease), transform .4s var(--ease-spring), background-color .3s;
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--gold-500); color: var(--navy-900); }

/* Top bar --------------------------------------------------------------- */
.top-bar { background: var(--navy-900); color: var(--on-dark); font-size: 13.5px; }
.top-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 40px; }
.top-bar__left, .top-bar__right { display: flex; align-items: center; gap: 24px; }
.top-bar__item { display: inline-flex; align-items: center; gap: 6px; transition: color .25s; }
.top-bar__item .icon { color: var(--gold-500); }
a.top-bar__item:hover { color: #fff; }
.legal-links { display: flex; gap: 20px; }
.legal-links a { transition: color .25s; }
.legal-links a:hover { color: #fff; }

/* Header ---------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.96);
	transition: transform .45s var(--ease), box-shadow .35s, background-color .35s;
}
.site-header.is-scrolled { background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 6px 24px -12px rgba(20,33,62,.25); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; transition: min-height .35s var(--ease); }
.is-scrolled .site-header__inner { min-height: 64px; }
.site-logo { width: 68px; height: auto; transition: width .35s var(--ease); }
.is-scrolled .site-logo { width: 56px; }

.primary-nav .menu { display: flex; gap: 36px; }
.primary-nav .menu a {
	position: relative; display: block; padding: 8px 0;
	font-size: 15px; font-weight: 500; color: var(--text-2); transition: color .25s;
}
.primary-nav .menu a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
	background: var(--gold-500); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.primary-nav .menu a:hover, .primary-nav .current-menu-item > a { color: var(--navy-900); }
.primary-nav .current-menu-item > a { font-weight: 600; }
.primary-nav .menu a:hover::after, .primary-nav .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }
.primary-nav .sub-menu { display: none; }
.primary-nav__mobile-cta { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: #fff; place-items: center; }
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars span { height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.nav-open .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------ */
.hero {
	display: grid; grid-template-columns: 600fr 840fr; min-height: 640px; overflow: hidden; position: relative;
	background:
		radial-gradient(48% 70% at 70% 50%, rgba(51,80,127,.55), transparent 70%),
		radial-gradient(30% 40% at 92% 88%, rgba(201,161,92,.12), transparent 70%),
		linear-gradient(115deg, var(--navy-900) 0%, var(--navy-900) 35%, #17284A 70%, #0D1731 100%);
}
.hero__panel { position: relative; display: flex; align-items: center; padding: 64px clamp(24px, 4.4vw, 64px); }
.hero__panel::before { /* subtle animated glow */
	content: ""; position: absolute; width: 520px; height: 520px; left: -160px; bottom: -220px; border-radius: 50%;
	background: radial-gradient(circle, rgba(201,161,92,.22), transparent 65%);
	animation: float-glow 12s ease-in-out infinite alternate;
}
.hero__content { position: relative; max-width: 540px; margin-left: auto; }
.hero__title { color: #fff; font-size: clamp(34px, 3.4vw, 48px); font-weight: 800; line-height: 1.12; margin-bottom: 22px; }
.hero__lead { color: var(--on-dark); font-size: 17px; line-height: 1.7; margin-bottom: 32px; }
.hero__badges { display: flex; gap: 28px; margin-top: 32px; color: var(--on-dark); font-size: 14px; }
.hero__badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges .icon-star { color: var(--gold-500); fill: var(--gold-500); }
.hero__media { position: relative; overflow: hidden; }
.hero__image-wrap { position: absolute; inset: -6% 0; will-change: transform; }
.hero__image {
	width: 100%; height: 100%; object-fit: cover;
	clip-path: inset(0 0 0 100%);
	animation: hero-reveal 1.4s var(--ease) .15s forwards, ken-burns 22s ease-in-out 1.5s infinite alternate;
}
.hero__media::after { /* blend panel edge into image */
	content: ""; position: absolute; inset: 0 auto 0 0; width: 120px;
	background: linear-gradient(90deg, rgba(20,33,62,.55), transparent); pointer-events: none;
}

/* 3D iris lens (WebGL, see assets/js/iris3d.js) */
.hero__lens-wrap {
	position: absolute; z-index: 2; left: clamp(24px, 5vw, 72px); bottom: clamp(24px, 6%, 56px);
	display: flex; align-items: center; gap: 16px;
	animation: lens-in 1.3s var(--ease) .9s both;
}
.hero__lens {
	--size: clamp(170px, 16vw, 236px);
	position: relative; width: var(--size); height: var(--size); border-radius: 50%; flex-shrink: 0;
	background: radial-gradient(circle at 50% 50%, #070E1E 0 14%, #0F1C37 38%, #14213E 62%, #0B1530 100%);
	border: 7px solid var(--navy-900); /* navy frame around the eye */
	box-shadow: 0 34px 70px -24px rgba(3, 8, 20, .85), 0 0 0 1px rgba(255,255,255,.18), inset 0 0 48px rgba(0,0,0,.65);
	isolation: isolate;
}
.hero__lens::before { /* rotating gold bezel */
	content: ""; position: absolute; inset: -14px; border-radius: 50%; z-index: -1;
	background: conic-gradient(from var(--angle, 0deg), rgba(201,161,92,0) 0deg, rgba(232,201,142,.95) 70deg, rgba(201,161,92,0) 140deg, rgba(201,161,92,0) 200deg, rgba(232,201,142,.6) 270deg, rgba(201,161,92,0) 330deg);
	-webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
	mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
	animation: spin-ring 6s linear infinite;
}
.hero__lens::after { /* painted iris shown until WebGL is live (or if it is unavailable) */
	content: ""; position: absolute; inset: 14%; border-radius: 50%;
	background:
		radial-gradient(circle, #070E1E 0 26%, transparent 27%),
		repeating-conic-gradient(from 0deg, rgba(232,201,142,.55) 0 1.2deg, rgba(111,143,200,.35) 1.2deg 3deg),
		radial-gradient(circle, #C9A15C 30%, #2D4A7C 72%);
	-webkit-mask: radial-gradient(circle, #000 60%, transparent 71%);
	mask: radial-gradient(circle, #000 60%, transparent 71%);
	opacity: .85; transition: opacity .8s var(--ease);
}
.hero__lens.is-live::after { opacity: 0; }
.hero__lens canvas, .hero__lens-video { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hero__lens-video { transform: scale(1.04); transition: transform 1.2s var(--ease); }
.hero__lens:hover .hero__lens-video { transform: scale(1.12); }
.hero__lens:has(.hero__lens-video)::after { display: none; }
.hero__lens-glint { /* glass lens: inner shadow at the rim and a soft sheen across the top */
	position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 2;
	box-shadow: inset 0 0 0 2px rgba(255,255,255,.18), inset 0 0 28px rgba(8,14,30,.55);
	background: linear-gradient(160deg, rgba(255,255,255,.16), transparent 38%);
}
.hero__lens-chip {
	display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
	color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold-500); animation: pulse-ring 1.8s var(--ease) infinite; }

/* split headline words */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word > span { display: inline-block; transform: translateY(105%); animation: word-up .9s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * .06s); }

/* Stats bar ------------------------------------------------------------- */
.stats-bar { background: var(--navy-900); border-top: 1px solid rgba(255,255,255,.08); }
.stats-bar__inner { display: grid; grid-template-columns: repeat(4, 1fr); min-height: 140px; align-items: center; }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 24px 12px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 50%; height: 48px; width: 1px; background: rgba(255,255,255,.15); transform: translateY(-50%); }
.stat__value { font: 800 clamp(28px, 3vw, 36px)/1 var(--font-head); color: #fff; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 15px; color: var(--on-dark); }

/* Specialities bento --------------------------------------------------- */
.bento { display: grid; grid-template-columns: 400fr 896fr; gap: 16px; }
.bento__featured {
	position: relative; min-height: 500px; border-radius: 20px; overflow: hidden; background: var(--navy-900);
	display: flex; flex-direction: column; justify-content: space-between; padding: 24px; color: #fff;
}
.bento__featured-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bento__featured::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,33,62,.15) 0%, rgba(20,33,62,.1) 40%, rgba(20,33,62,.85) 100%); }
.bento__featured:hover .bento__featured-img { transform: scale(1.07); }
.bento__featured-icon { position: relative; z-index: 2; width: 56px; height: 56px; border-radius: 14px; background: #fff; display: grid; place-items: center; padding: 10px; transition: transform .5s var(--ease-spring); }
.bento__featured:hover .bento__featured-icon { transform: rotate(-8deg) scale(1.08); }
.bento__featured-text { position: relative; z-index: 2; display: grid; gap: 10px; padding: 20px; border-radius: 14px; }
.bento__featured-text strong { font: 700 22px/1.25 var(--font-head); }
.bento__featured-text span { font-size: 15px; color: rgba(255,255,255,.82); }
.bento__featured-text em { font-style: normal; font-weight: 700; font-size: 15px; color: var(--gold-500); display: inline-flex; align-items: center; gap: 6px; }
.bento__featured:hover em .icon { transform: translateX(4px); }
.bento__featured em .icon { transition: transform .3s var(--ease); }
.glass-dark { background: rgba(11,31,58,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.08); }

.bento__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.spec-card {
	--fg: var(--navy-900);
	position: relative; display: flex; flex-direction: column; gap: 6px;
	padding: 20px; border-radius: 16px; background: var(--tint); min-height: 242px;
	transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .4s;
	transform-style: preserve-3d;
}
.spec-card__icon {
	width: 56px; height: 56px; border-radius: 14px; background: #fff; display: grid; place-items: center; padding: 8px;
	color: var(--gold-600); margin-bottom: auto; box-shadow: var(--shadow-sm);
	transition: transform .5s var(--ease-spring);
}
.spec-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.spec-card h3 { font: 700 16px/1.35 var(--font-head); letter-spacing: -.01em; color: var(--fg); margin-top: 24px; }
.spec-card p { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.spec-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.spec-card:hover .spec-card__icon { transform: translateY(-2px) rotate(-6deg) scale(1.08); }
.spec-card::after { /* gold underline grows on hover */
	content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
	background: var(--gold-500); transform: scaleX(0); transition: transform .5s var(--ease);
}
.spec-card:hover::after { transform: scaleX(1); }
/* Navy style appears on hover / keyboard focus only */
.spec-card:hover, .spec-card:focus-within { background: var(--navy-900); }
.spec-card:hover h3, .spec-card:focus-within h3 { color: #fff; }
.spec-card:hover p, .spec-card:focus-within p { color: var(--on-dark); }
.spec-card:hover .spec-card__icon, .spec-card:focus-within .spec-card__icon { background: rgba(255,255,255,.12); box-shadow: none; }
.spec-card h3, .spec-card p { transition: color .4s var(--ease); }
.spec-card__icon { transition: transform .5s var(--ease-spring), background-color .4s, box-shadow .4s; }
/* every speciality card takes the navy "active" look on hover / keyboard focus */
.spec-card:hover, .spec-card:focus-within { background: var(--navy-900); }
.spec-card:hover h3, .spec-card:focus-within h3 { color: #fff; }
.spec-card:hover p, .spec-card:focus-within p { color: var(--on-dark); }
.spec-card:hover .spec-card__icon, .spec-card:focus-within .spec-card__icon { background: rgba(255,255,255,.12); box-shadow: none; }
.spec-card { transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .35s var(--ease); }
.spec-card h3, .spec-card p { transition: color .3s var(--ease); }

/* Inside the Eye: scroll-driven 3D anatomy ----------------------------- */
.anatomy { position: relative; height: 420vh; background: var(--navy-900); color: var(--on-dark); }
.anatomy__sticky {
	position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center;
	background:
		radial-gradient(900px 700px at 32% 50%, rgba(51,80,127,.55), transparent 65%),
		radial-gradient(600px 500px at 82% 88%, rgba(201,161,92,.14), transparent 70%),
		linear-gradient(180deg, var(--navy-900), #101B33);
}
.anatomy__sticky::before { /* faint star dust like a medical render backdrop */
	content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
	background-image: radial-gradient(1px 1px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 72% 12%, #fff, transparent),
		radial-gradient(1px 1px at 88% 64%, #fff, transparent), radial-gradient(1px 1px at 42% 86%, #fff, transparent),
		radial-gradient(1.5px 1.5px at 56% 38%, rgba(255,255,255,.7), transparent), radial-gradient(1px 1px at 22% 70%, #fff, transparent);
}
.anatomy__inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; width: min(1400px, 100% - var(--gutter) * 2); }
.anatomy__stage { position: relative; height: min(84vh, 780px); min-height: 360px; }
.anatomy__stage canvas, .anatomy__lines, .anatomy__poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.anatomy__poster { object-fit: contain; transition: opacity .8s var(--ease); }
.anatomy__stage canvas, .anatomy__poster { /* feather the edges so close-ups never show a hard crop */
	-webkit-mask-image: radial-gradient(closest-side, #000 86%, transparent 100%);
	mask-image: radial-gradient(closest-side, #000 86%, transparent 100%);
}
.anatomy.is-live .anatomy__poster { opacity: 0; pointer-events: none; }
.anatomy__lines { pointer-events: none; overflow: visible; }
.anatomy__lines polyline { fill: none; stroke: rgba(255,255,255,.9); stroke-width: 1.5; }
.anatomy__lines circle { fill: #fff; }
.anatomy__lines circle.ring { fill: none; stroke: rgba(255,255,255,.85); stroke-width: 1.5; animation: anatomy-ping 2s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
.anatomy__label {
	position: absolute; left: 0; top: 0; padding: 7px 14px 8px; border-radius: 3px;
	background: rgba(255,255,255,.96); color: #1A1F2B; font: 600 15px/1.2 var(--font-head); letter-spacing: -.01em; white-space: nowrap;
	box-shadow: 0 10px 30px -10px rgba(0,0,0,.6);
	opacity: 0; transition: opacity .35s var(--ease); pointer-events: none;
}
.anatomy__label.is-on { opacity: 1; }
.anatomy__copy { position: relative; max-width: 480px; }
.anatomy__copy h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin-bottom: 28px; }
.anatomy__steps { display: grid; }
.anatomy__step {
	grid-area: 1 / 1; display: grid; gap: 12px; align-content: start;
	opacity: 0; transform: translateY(24px); pointer-events: none; /* stays in the accessibility tree; focus brings it forward */
	transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.anatomy__step.is-active { opacity: 1; transform: none; pointer-events: auto; transition-delay: .1s; }
.anatomy__num { font: 800 44px/1 var(--font-head); color: rgba(201,161,92,.35); }
.anatomy__step h3 { color: #fff; font-size: 22px; font-weight: 700; }
.anatomy__step p { font-size: 17px; line-height: 1.7; }
.anatomy__step .link-arrow { color: var(--gold-500); margin-top: 6px; }
.anatomy__progress { margin-top: 36px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; max-width: 260px; }
.anatomy__progress span { display: block; height: 100%; background: var(--gold-500); transform-origin: left; transform: scaleX(var(--anatomy-progress, 0)); }
.anatomy__hint { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.anatomy__hint::after { content: ""; display: block; width: 1px; height: 28px; margin: 8px auto 0; background: linear-gradient(rgba(255,255,255,.6), transparent); animation: hint-drop 1.8s var(--ease) infinite; }
@keyframes anatomy-ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes hint-drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Doctors highlight ---------------------------------------------------- */
.highlight__inner { display: grid; grid-template-columns: 480fr 768fr; gap: 64px; align-items: center; }
.highlight__text h2 { font-size: clamp(28px, 3.2vw, 36px); font-weight: 800; margin-bottom: 18px; }
.highlight__text p:not(.eyebrow) { color: var(--text-2); margin-bottom: 32px; }
.highlight__card { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; padding: 24px 24px 24px 36px; border-radius: 24px; background: var(--tint); align-items: center; }
.highlight__info { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.highlight__name { font: 800 15px/1.2 var(--font-head); color: var(--navy-900); text-transform: uppercase; letter-spacing: .02em; }
.highlight__info p { font-size: 16px; color: var(--text-2); }
.threebest { display: flex; align-items: center; gap: 10px; }
.threebest__icon { color: var(--green); }
.threebest > span:last-child { display: grid; gap: 2px; }
.threebest strong { font: 800 15px/1.2 var(--font-head); color: var(--navy-900); }
.stars { display: inline-flex; gap: 2px; color: var(--gold-500); }
.stars .icon { fill: currentColor; }
.highlight__logo { width: 140px; margin-top: 8px; }
.highlight__photo { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3.6; }
.highlight__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.highlight__card:hover .highlight__photo img { transform: scale(1.05); }

/* About ---------------------------------------------------------------- */
.about__inner { display: grid; grid-template-columns: 520fr 720fr; gap: 72px; align-items: center; }
.about__media { position: relative; }
.about__image { border-radius: 20px; overflow: hidden; aspect-ratio: 520 / 460; }
.about__image img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.nabh-float {
	position: absolute; left: -24px; bottom: 32px; display: flex; align-items: center; gap: 12px;
	padding: 14px 20px 14px 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg);
	animation: bob 5s ease-in-out infinite;
}
.nabh-float img { width: 40px; height: 40px; }
.nabh-float span { display: grid; }
.nabh-float strong { font-size: 15px; color: var(--navy-900); }
.nabh-float small { font-size: 13px; color: var(--text-2); }
.about__text h2 { font-size: clamp(28px, 3vw, 32px); font-weight: 800; margin-bottom: 20px; }
.about__text > p:not(.eyebrow) { font-size: 17px; color: var(--text-2); }
.check-list { display: grid; gap: 14px; margin: 28px 0 32px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--navy-900); }
.check-list .icon { color: var(--gold-500); }

/* Why choose us -------------------------------------------------------- */
.why { background: var(--navy-900); color: var(--on-dark); overflow: hidden; }
.why__glow { position: absolute; width: 640px; height: 640px; right: -200px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(201,161,92,.14), transparent 65%); animation: float-glow 14s ease-in-out infinite alternate; }
.why__inner { position: relative; display: grid; grid-template-columns: 420fr 828fr; gap: 64px; align-items: center; }
.why__text h2 { color: #fff; font-size: clamp(28px, 3.2vw, 34px); font-weight: 800; margin-bottom: 18px; }
.why__text > p:not(.eyebrow) { font-size: 17px; margin-bottom: 32px; }
.why__stats { display: flex; gap: 28px; margin-top: 40px; }
.why__stats > div { display: grid; gap: 2px; }
.why__stats > div + div { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.15); }
.why__stats strong { font: 800 24px/1.1 var(--font-head); color: #fff; }
.why__stats > div > span { font-size: 14px; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-card {
	position: relative; overflow: hidden; padding: 28px; border-radius: 18px; background: var(--navy-800);
	border: 1px solid rgba(255,255,255,.06);
	transition: transform .5s var(--ease), border-color .4s;
}
.why-card::before { /* cursor spotlight */
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
	background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(201,161,92,.18), transparent 60%);
}
.why-card:hover { transform: translateY(-4px); border-color: rgba(201,161,92,.35); }
.why-card:hover::before { opacity: 1; }
.why-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 36px; }
.why-card__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(249,177,1,.15); color: var(--gold-500); transition: transform .5s var(--ease-spring); }
.why-card:hover .why-card__icon { transform: scale(1.12) rotate(-8deg); }
.why-card__index { font: 800 30px/1 var(--font-head); color: rgba(255,255,255,.12); transition: color .4s; }
.why-card:hover .why-card__index { color: rgba(201,161,92,.5); }
.why-card h3 { color: #fff; font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 15.5px; }

/* Doctor spotlight ----------------------------------------------------- */
.spotlight { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; padding: 36px 48px; border-radius: 24px; background: var(--tint); }
.spotlight__photo {
	position: relative; aspect-ratio: 1; border-radius: 50%; padding: 6px;
	background: conic-gradient(from var(--angle, 0deg), var(--gold-500), #F0D9AE, var(--gold-600), var(--gold-500));
	animation: spin-ring 8s linear infinite;
}
.spotlight__photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 6px solid var(--tint); }
.spotlight__info h3 { font-size: 26px; font-weight: 800; }
.spotlight__role { color: var(--gold-700); font-weight: 600; font-size: 16px; margin: 6px 0 16px; }
.spotlight__info > p:not(.spotlight__role) { font-size: 16.5px; color: var(--text-2); }
.credentials { display: flex; gap: 40px; margin: 24px 0 20px; }
.credentials div { display: grid; gap: 2px; }
.credentials dt { font: 800 20px/1.1 var(--font-head); color: var(--navy-900); }
.credentials dd { margin: 0; font-size: 13.5px; color: var(--text-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; max-width: 460px; }
.tags li { padding: 6px 14px; border-radius: 14px; background: rgba(20,33,62,.08); font-size: 13.5px; font-weight: 600; color: var(--navy-900); transition: background-color .3s, color .3s; }
.tags li:hover { background: var(--navy-900); color: #fff; }

/* Awards --------------------------------------------------------------- */
.awards__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.award {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
	padding: 32px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--border);
	transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.award:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.award__mark, .award__circle { width: 60px; height: 60px; margin-bottom: 14px; transition: transform .6s var(--ease-spring); }
.award:hover .award__mark, .award:hover .award__circle { transform: scale(1.1) rotate(6deg); }
.award__circle { border-radius: 50%; display: grid; place-items: center; }
.award__circle--green { background: rgba(18,183,106,.1); color: var(--green); }
.award__circle--navy { background: rgba(20,33,62,.08); color: var(--navy-900); }
.award__circle--gold { background: rgba(201,161,92,.12); color: var(--gold-600); }
.award h3 { font-size: 17px; font-weight: 800; }
.award p { font-size: 14.5px; color: var(--text-2); }

/* Testimonials --------------------------------------------------------- */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
	position: relative; margin: 0; padding: 28px; border-radius: 16px; background: #fff; border: 1px solid var(--border);
	display: flex; flex-direction: column; gap: 16px;
	transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.testimonial::before { content: "\201C"; position: absolute; right: 24px; top: 8px; font: 800 80px/1 var(--font-head); color: rgba(201,161,92,.18); transition: transform .5s var(--ease); }
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testimonial:hover::before { transform: translateY(-4px) rotate(-6deg); }
.testimonial blockquote { margin: 0; font-size: 16px; line-height: 1.7; flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial figcaption > span:last-child { display: grid; }
.testimonial strong { font-size: 15px; color: var(--navy-900); }
.testimonial small { font-size: 13.5px; color: var(--text-2); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-800); color: #fff; font-weight: 700; font-size: 14px; }

/* Videos --------------------------------------------------------------- */
.videos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-card { display: grid; gap: 6px; }
.video-card__thumb { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; margin-bottom: 10px; }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.video-card__thumb::after { content: ""; position: absolute; inset: 0; background: rgba(20,33,62,.15); transition: background-color .4s; }
.video-card:hover .video-card__thumb img { transform: scale(1.06); }
.video-card:hover .video-card__thumb::after { background: rgba(20,33,62,.35); }
.video-card__play {
	position: absolute; z-index: 1; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
	display: grid; place-items: center; background: rgba(255,255,255,.9); color: var(--navy-900); padding-left: 3px;
	transition: transform .4s var(--ease-spring), background-color .3s, color .3s;
}
.video-card__play::before { /* pulse ring */
	content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.8);
	animation: pulse-ring 2.2s var(--ease) infinite;
}
.video-card:hover .video-card__play { transform: scale(1.15); background: var(--gold-500); color: #fff; }
.video-card strong { font: 700 16.5px/1.35 var(--font-head); color: var(--navy-900); }
.video-card small { font-size: 14px; color: var(--text-2); }

/* FAQ ------------------------------------------------------------------ */
.faq { background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9)), #fff var(--faq-bg) center / cover no-repeat; }
.faq__inner { display: grid; grid-template-columns: 400fr 840fr; gap: 72px; align-items: start; }
.faq__intro h2 { font-size: clamp(28px, 3vw, 32px); font-weight: 800; margin-bottom: 16px; }
.faq__intro > p:not(.eyebrow) { font-size: 16.5px; color: var(--text-2); margin-bottom: 28px; }
.faq__list { display: grid; gap: 14px; }
.faq-item { border-radius: 14px; background: var(--tint); transition: background-color .45s var(--ease), box-shadow .45s; }
.faq-item h3 { font-size: inherit; }
.faq-item__q {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left;
	padding: 22px 24px; border: 0; background: none; color: var(--navy-900);
	font: 700 16.5px/1.4 var(--font-head); transition: color .3s;
}
.faq-item__toggle { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy-900); transition: transform .45s var(--ease), background-color .3s; }
.faq-item__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq-item__a > div { overflow: hidden; }
.faq-item__a p { padding: 0 24px 22px; font-size: 16px; line-height: 1.7; color: var(--on-dark); }
.faq-item:hover:not(.is-open) { box-shadow: var(--shadow-sm); background: #fff; }
.faq-item.is-open { background: var(--navy-900); box-shadow: var(--shadow-md); }
.faq-item.is-open .faq-item__q { color: #fff; }
.faq-item.is-open .faq-item__toggle { background: var(--gold-500); transform: rotate(135deg); }
.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }

/* CTA banner ----------------------------------------------------------- */
.cta-banner { position: relative; overflow: hidden; background: var(--gold-500); min-height: 480px; display: flex; align-items: flex-end; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 15% 30%, rgba(255,255,255,.18), transparent 60%); }
.cta-banner__eye { position: absolute; right: 8%; top: 50%; width: min(560px, 46vw); translate: 0 -50%; opacity: .9; }
.cta-banner__inner { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cta-banner__content { padding-block: 56px 64px; max-width: 600px; }
.cta-banner .eyebrow .dash { margin-left: 4px; }
.cta-banner h2 { color: var(--navy-900); font-size: clamp(38px, 4.6vw, 56px); font-weight: 800; line-height: 1.08; margin-bottom: 20px; }
.cta-banner__content > p:not(.eyebrow) { color: var(--navy-900); font-size: 17px; margin-bottom: 32px; max-width: 520px; }
.call-pill { display: inline-flex; align-items: center; gap: 12px; padding: 8px 24px 8px 8px; border-radius: 999px; background: var(--gold-100); transition: transform .35s var(--ease), box-shadow .35s; }
.call-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.call-pill__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-500); color: #fff; animation: ring 3s ease-in-out infinite; }
.call-pill > span:last-child { display: grid; }
.call-pill small { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--gold-700); text-transform: uppercase; }
.call-pill strong { font: 800 17px/1.2 var(--font-head); color: var(--navy-900); }
.cta-banner__doctor { width: clamp(220px, 25vw, 340px); align-self: flex-end; margin-right: 12%; }

/* Footer --------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: var(--on-dark); font-size: 15px; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; padding-block: 72px 56px; }
.footer-brand p { margin: 20px 0 24px; font-size: 15px; max-width: 340px; }
.footer-brand__logo { display: inline-block; background: #fff; border-radius: 12px; padding: 8px 12px; }
.footer-logo { width: 72px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); color: #fff; transition: background-color .3s, border-color .3s, color .3s, transform .4s var(--ease-spring); }
.footer-social a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); transform: translateY(-3px); }
.site-footer h3 { color: #fff; font: 700 16px/1.2 var(--font-body); letter-spacing: .02em; margin-bottom: 20px; }
.footer-links { display: grid; gap: 12px; }
.footer-links a { position: relative; transition: color .25s, padding-left .35s var(--ease); }
.footer-links a::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 1.5px; background: var(--gold-500); transition: width .35s var(--ease); }
.footer-links a:hover { color: #fff; padding-left: 16px; }
.footer-links a:hover::before { width: 10px; }
.footer-contact ul { display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--gold-500); margin-top: 3px; }
.footer-contact a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.site-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-block: 12px; }
.site-footer__meta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-nabh { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.footer-nabh img { width: 22px; height: 22px; }

/* Generic pages -------------------------------------------------------- */
.page-hero { background: var(--navy-900); padding-block: 72px; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.entry { max-width: 760px; margin-inline: auto; }
.entry__thumb { border-radius: 20px; overflow: hidden; margin-bottom: 32px; }
.entry__content > * + * { margin-top: 1.1em; }
.entry__content a { color: var(--gold-600); text-decoration: underline; }
.entry__content h2, .entry__content h3 { margin-top: 1.6em; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post-card { display: grid; gap: 12px; align-content: start; }
.post-card__thumb { border-radius: 16px; overflow: hidden; }
.post-card__thumb img { transition: transform .8s var(--ease); }
.post-card:hover .post-card__thumb img { transform: scale(1.05); }
.post-card h2 { font-size: 20px; }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 10px; background: var(--tint); }
.pagination .current { background: var(--navy-900); color: #fff; }

/* ==========================================================================
   Scroll reveal system (activated by JS adding .js to <html>)
   ========================================================================== */
.js [data-reveal] {
	opacity: 0;
	transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
	transition-delay: var(--d, 0s);
	will-change: opacity, transform;
}
.js [data-reveal="up"] { transform: translateY(40px); }
.js [data-reveal="left"] { transform: translateX(-48px); }
.js [data-reveal="right"] { transform: translateX(48px); }
.js [data-reveal="zoom"] { transform: scale(.9); filter: blur(6px); }
.js [data-reveal="fade"] { transform: none; }
/* 3D entrances */
.js [data-reveal="flip"] { transform: perspective(1200px) translateY(56px) rotateX(-38deg); transform-origin: 50% 100%; }
.js [data-reveal="tilt-left"] { transform: perspective(1400px) translateX(-70px) rotateY(24deg); transform-origin: 0 50%; }
.js [data-reveal="tilt-right"] { transform: perspective(1400px) translateX(70px) rotateY(-24deg); transform-origin: 100% 50%; }
.js [data-reveal="coin"] { transform: perspective(900px) rotateY(-110deg) scale(.88); }
.js [data-reveal="depth"] { transform: perspective(1200px) translate3d(0, 50px, -220px) rotateX(14deg); }
.js [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }
.js [data-reveal="flip"], .js [data-reveal="tilt-left"], .js [data-reveal="tilt-right"], .js [data-reveal="coin"], .js [data-reveal="depth"] {
	transition-duration: 1.1s, 1.1s, 1.1s;
}

/* 3D word flip for headings */
.w3d { display: inline-block; perspective: 700px; perspective-origin: 50% 100%; }
.w3d > span {
	display: inline-block; transform-origin: 50% 100% -0.4em;
	transform: rotateX(-88deg); opacity: 0;
	transition: transform 1s var(--ease), opacity .7s var(--ease);
	transition-delay: calc(.15s + var(--d, 0s) + var(--i, 0) * .045s);
}
.is-visible .w3d > span, .w3d.is-on > span { transform: none; opacity: 1; }

/* Tilt glare */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
.tilt-glare {
	position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
	background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.28), transparent 45%);
	opacity: 0; transition: opacity .45s var(--ease); mix-blend-mode: soft-light;
}
.is-tilting { transition-duration: .18s !important; }
.is-tilting .tilt-glare { opacity: 1; }
.award, .testimonial, .video-card { position: relative; }
.video-card .tilt-glare { bottom: auto; aspect-ratio: 16 / 10; border-radius: 16px; }

/* Scroll-linked depth panels */
[data-depth] { transform-origin: 50% 50%; will-change: transform; transition: transform .25s linear; }
[data-hero-content] { will-change: transform, opacity; }

/* Keyframes ------------------------------------------------------------ */
@keyframes word-up { to { transform: translateY(0); } }
@keyframes hero-reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes ken-burns { from { transform: scale(1); } to { transform: scale(1.08) translateX(-1.5%); } }
@keyframes float-glow { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, -40px) scale(1.15); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes ring { 0%, 86%, 100% { transform: rotate(0); } 88% { transform: rotate(-14deg); } 92% { transform: rotate(14deg); } 96% { transform: rotate(-8deg); } }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin-ring { to { --angle: 360deg; } }
@keyframes lens-in { from { opacity: 0; transform: perspective(900px) translateY(30px) rotateY(-50deg) scale(.7); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
	.primary-nav .menu { gap: 24px; }
	.header-call { display: none; }
	.bento { grid-template-columns: 1fr; }
	.bento__featured { min-height: 380px; }
	.highlight__inner, .why__inner, .about__inner, .faq__inner { gap: 48px; }
	.spotlight { grid-template-columns: 300px 1fr; gap: 40px; padding: 32px; }
}

@media (max-width: 1024px) {
	.top-bar__right { display: none; }
	.nav-toggle { display: grid; }
	/* Mobile menu: white header bar stays on top, a navy panel fills the screen below it */
	.primary-nav {
		position: fixed; left: 0; right: 0; top: var(--nav-top, 76px); bottom: 0; z-index: 1;
		display: flex; flex-direction: column; gap: 28px; overflow-y: auto; overscroll-behavior: contain;
		padding: 12px var(--gutter) calc(28px + env(safe-area-inset-bottom));
		background:
			radial-gradient(420px 320px at 100% 0%, rgba(201,161,92,.16), transparent 70%),
			linear-gradient(180deg, var(--navy-900), #0E1830);
		border-top: 1px solid rgba(255,255,255,.08);
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .35s var(--ease), transform .45s var(--ease), visibility .35s;
	}
	.nav-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
	.site-header__logo, .site-header__actions { position: relative; z-index: 2; }
	.nav-open .site-header { background: #fff !important; box-shadow: none; }
	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav .menu li { border-bottom: 1px solid rgba(255,255,255,.1); opacity: 0; transform: translateX(-16px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
	.nav-open .primary-nav .menu li { opacity: 1; transform: none; transition-delay: calc(.06s + var(--i, 0) * .04s); }
	.primary-nav .menu a {
		display: flex; align-items: center; justify-content: space-between;
		font: 600 19px/1.3 var(--font-head); color: #fff; padding: 17px 2px;
	}
	.primary-nav .menu a::after { /* chevron */
		content: ""; position: static; display: block; width: 8px; height: 8px; background: none; border-radius: 0;
		border-right: 2px solid rgba(255,255,255,.4); border-top: 2px solid rgba(255,255,255,.4);
		transform: rotate(45deg); transition: border-color .25s, transform .3s var(--ease);
	}
	.primary-nav .menu a:hover, .primary-nav .menu a:focus-visible { color: var(--gold-500); }
	.primary-nav .menu a:hover::after { border-color: var(--gold-500); transform: translateX(3px) rotate(45deg); }
	.primary-nav .current-menu-item > a { color: var(--gold-500); font-weight: 700; }
	.primary-nav .current-menu-item > a::after { border-color: var(--gold-500); transform: rotate(45deg); }
	.primary-nav__mobile-cta { display: grid; gap: 12px; margin-top: auto; }
	.primary-nav__mobile-cta .btn { width: 100%; padding: 15px 20px; }
	.primary-nav__mobile-cta .btn--outline-dark { --fg: #fff; border-color: rgba(255,255,255,.3); }
	.primary-nav__mobile-cta .btn--outline-dark .icon { color: var(--gold-500); }
	.primary-nav__info { display: grid; gap: 10px; margin-top: 8px; font-size: 14px; color: var(--on-dark); }
	.primary-nav__info li { display: flex; align-items: center; gap: 10px; }
	.primary-nav__info .icon { color: var(--gold-500); }
	.site-header { backdrop-filter: none !important; }
	.nav-open { overflow: hidden; }

	.hero { grid-template-columns: 1fr; }
	.hero__media { min-height: 380px; order: -1; }
	.hero__content { margin: 0; max-width: 680px; }
	.hero__media::after { inset: auto 0 0 0; width: auto; height: 100px; background: linear-gradient(0deg, rgba(20,33,62,.6), transparent); }
	.hero__lens-wrap { left: auto; right: 24px; bottom: 24px; flex-direction: row-reverse; }
	.hero__lens { --size: 150px; }

	.stats-bar__inner { grid-template-columns: repeat(2, 1fr); padding-block: 12px; }
	.stat:nth-child(3)::before { display: none; }

	.bento__grid { grid-template-columns: repeat(2, 1fr); }
	.spec-card { min-height: 200px; }

	.highlight__inner, .about__inner, .why__inner, .faq__inner { grid-template-columns: 1fr; }
	.about__media { max-width: 640px; }
	.nabh-float { left: 16px; }
	.awards__grid { grid-template-columns: repeat(2, 1fr); }
	.testimonials__grid, .videos__grid { grid-template-columns: 1fr 1fr; }
	.testimonials__grid > :last-child, .videos__grid > :last-child { grid-column: 1 / -1; }
	.site-footer__top { grid-template-columns: 1fr 1fr; }
	.cta-banner__doctor { margin-right: 0; }
	/* keep the eye mark centred behind the doctor so the pupil sits behind her, not beside her face */
	.cta-banner__eye { width: 400px; top: auto; bottom: 40px; right: calc(var(--gutter) + clamp(220px, 25vw, 340px) / 2 - 200px); translate: 0 0; opacity: .85; }
}

@media (max-width: 900px) {
	.anatomy { height: 380vh; }
	.anatomy__inner { grid-template-columns: 1fr; gap: 8px; align-content: center; height: 100%; padding-block: 20px 56px; }
	.anatomy__stage { height: 52svh; min-height: 300px; }
	.anatomy__copy { max-width: none; }
	.anatomy__copy .eyebrow, .anatomy__copy h2 { display: none; }
	.anatomy__num { font-size: 28px; }
	.anatomy__step { gap: 6px; }
	.anatomy__step h3 { font-size: 19px; }
	.anatomy__step p { font-size: 15.5px; line-height: 1.6; }
	.anatomy__progress { margin-top: 18px; }
	.anatomy__label { font-size: 13.5px; padding: 5px 10px 6px; }
	.anatomy__hint { display: none; }
}

@media (max-width: 720px) {
	body { font-size: 16px; }
	.top-bar__left > :nth-child(2) { display: none; }
	.top-bar__left { gap: 16px; }
	.header-book { display: none; }
	.hero__media { min-height: 300px; }
	.hero__lens-wrap { right: 16px; bottom: 16px; }
	.hero__lens { --size: 112px; border-width: 5px; }
	.hero__lens::before { inset: -11px; }
	.hero__lens-chip { display: none; }
	.hero__panel { padding-block: 48px 56px; }
	.hero__badges { gap: 18px; flex-wrap: wrap; }
	.btn-row .btn { flex: 1 1 auto; }
	.hero .btn-row { flex-wrap: wrap; }

	.stats-bar__inner { grid-template-columns: 1fr 1fr; }
	.stat { padding: 20px 8px; }
	.highlight__card { grid-template-columns: 1fr; padding: 24px; }
	.highlight__photo { order: -1; }
	.why__grid { grid-template-columns: 1fr; }
	.why__stats { gap: 18px; }
	.why__stats > div + div { padding-left: 18px; }
	.spotlight { grid-template-columns: 1fr; padding: 28px 22px; text-align: center; }
	.spotlight__photo { width: min(260px, 80%); margin-inline: auto; }
	.credentials { justify-content: center; gap: 24px; }
	.tags { justify-content: center; margin-inline: auto; }
	.testimonials__grid, .videos__grid { grid-template-columns: 1fr; }
	.cta-banner { min-height: 0; }
	.cta-banner__inner { flex-direction: column; align-items: stretch; }
	.cta-banner__content { padding-block: 56px 0; }
	.cta-banner__eye { width: 128vw; right: auto; left: 50%; top: auto; bottom: 70px; translate: -50% 0; opacity: .55; }
	.cta-banner__doctor { align-self: center; width: 220px; }
	.call-pill { flex: 1 1 auto; }
	.site-footer__top { grid-template-columns: 1fr; gap: 36px; }
	.back-to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 480px) {
	.bento__grid { grid-template-columns: 1fr; }
	.spec-card { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 16px; }
	.spec-card__icon { margin-bottom: 0; }
	.spec-card h3 { margin-top: 0; flex: 1; }
	.spec-card p { flex-basis: 100%; }
	.awards__grid { grid-template-columns: 1fr; }
}

/* Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.js [data-reveal] { opacity: 1; transform: none; filter: none; }
	.hero__image { clip-path: none; }
	.split-word > span { transform: none; }
}

/* ==========================================================================
   Hero 3D stage (replaces the photo): particle iris + floating speciality tags
   ========================================================================== */
.hero__stage {
	position: relative; overflow: hidden; min-height: 560px;
	background: transparent; /* the hero's single gradient runs under both columns, so there is no seam */
}
.hero__stage::before { /* faint grid that gives the scene depth */
	content: ""; position: absolute; inset: -20%; pointer-events: none; opacity: .35;
	background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
	background-size: 56px 56px;
	transform: perspective(700px) rotateX(58deg) translateY(28%);
	mask-image: radial-gradient(closest-side, #000 30%, transparent 85%);
	-webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 85%);
}
.hero__iris {
	/* let the particles fade into the text side instead of stopping at a hard edge */
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%);
	mask-image: linear-gradient(90deg, transparent 0, #000 18%);
}
.hero__stage.hero__media::after { display: none; }
.hero__iris { position: absolute; inset: 0 0 0 -12%; }
.hero__iris canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__orbit { position: absolute; inset: 0; pointer-events: none; }
.hero__orbit { margin: 0; padding: 0; list-style: none; }
.hero__tag {
	position: absolute; pointer-events: auto; z-index: 2;
	animation: tag-in .9s var(--ease) both, tag-float 4s ease-in-out infinite alternate;
	animation-delay: calc(.6s + var(--a) * .15s), calc(var(--a) * -1s);
}
.hero__tag:hover, .hero__tag:focus-within { z-index: 5; animation-play-state: running, paused; }
.hero__tag > a {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #fff; white-space: nowrap;
	background: rgba(20,33,62,.55); border: 1px solid rgba(255,255,255,.14);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	box-shadow: 0 14px 30px -14px rgba(0,0,0,.6);
	transition: border-color .3s, background-color .3s, transform .3s var(--ease);
}
.hero__tag > a:hover, .hero__tag > a:focus-visible { border-color: rgba(201,161,92,.7); background: rgba(20,33,62,.85); transform: translateY(-2px); }
.hero__tag .icon { color: var(--gold-500); }
.hero__tip {
	position: absolute; left: 50%; top: calc(100% + 12px); width: max-content; max-width: 240px;
	padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--navy-900);
	font-size: 13.5px; line-height: 1.5; font-weight: 500; white-space: normal; text-align: left;
	box-shadow: 0 18px 40px -12px rgba(0,0,0,.55);
	opacity: 0; visibility: hidden; transform: translate(-50%, 6px); pointer-events: none;
	transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.hero__tip::before { content: ""; position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.hero__tag:nth-child(2) .hero__tip, .hero__tag:nth-child(4) .hero__tip { left: auto; right: 0; transform: translate(0, 6px); }
.hero__tag:nth-child(2) .hero__tip::before, .hero__tag:nth-child(4) .hero__tip::before { left: auto; right: 22px; transform: rotate(45deg); }
.hero__tag:nth-child(3) .hero__tip, .hero__tag:nth-child(4) .hero__tip { top: auto; bottom: calc(100% + 12px); }
.hero__tag:nth-child(3) .hero__tip::before, .hero__tag:nth-child(4) .hero__tip::before { top: auto; bottom: -6px; }
.hero__tag:hover .hero__tip, .hero__tag:focus-within .hero__tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.hero__tag:nth-child(2):hover .hero__tip, .hero__tag:nth-child(4):hover .hero__tip,
.hero__tag:nth-child(2):focus-within .hero__tip, .hero__tag:nth-child(4):focus-within .hero__tip { transform: none; }
.hero__tag:nth-child(1) { left: 9%;  top: 16%; }
.hero__tag:nth-child(2) { right: 8%; top: 24%; }
.hero__tag:nth-child(3) { left: 7%;  bottom: 22%; }
.hero__tag:nth-child(4) { right: 10%; bottom: 30%; }
.hero__stage .hero__lens-chip { position: absolute; left: 50%; bottom: 7%; translate: -50% 0; animation: lens-in 1.2s var(--ease) 1s both; }
@keyframes tag-in { from { opacity: 0; transform: translateY(16px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes tag-float { from { translate: 0 -9px; } to { translate: 0 9px; } }

@media (max-width: 1024px) {
	.hero__stage { min-height: 420px; }
	.hero__iris { inset: 0; -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 22%); mask-image: linear-gradient(0deg, transparent 0, #000 22%); }
}
@media (max-width: 720px) {
	.hero__stage { min-height: 340px; }
	.hero__tag > a { font-size: 12px; padding: 7px 11px; }
	.hero__tip { max-width: 200px; font-size: 12.5px; }
	.hero__tag:nth-child(3), .hero__tag:nth-child(4) { display: none; }
	.hero__tag:nth-child(1) { left: 5%; top: 8%; }
	.hero__tag:nth-child(2) { right: 5%; top: auto; bottom: 8%; }
	.hero__stage .hero__lens-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.hero__tag { animation: none; }
}
