/* ==========================================================================
   Dr. Divya Agrawal's Fertility & Gynae Clinic
   Design system — modern, calm, clinical-trust
   Brand: primary #0D51D5 (logo blue) · accent #08BA40 (logo green) · ink #151E28
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
	/* Brand palette (from original theme + logo) */
	--brand: #0d51d5;
	--brand-600: #0b45b6;
	--brand-700: #093a99;
	--brand-050: #eef3ff;
	--brand-100: #dde7ff;
	--brand-200: #bdcdfb;
	--accent: #08ba40;
	--accent-050: #e9fbee;
	--accent-700: #068a30;

	--ink: #151e28;
	--ink-800: #1f2a37;
	--ink-600: #46525f;
	--ink-500: #667382;
	--ink-400: #6b7787; /* darkened for AA on small uppercase labels */

	--grey-050: #f3f4f7;
	--line: #e5eaf1;
	--line-soft: #eef1f6;
	--surface: #ffffff;
	--surface-2: #f7f9fc;
	--surface-3: #f1f5fb;

	/* Type */
	--font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* Space & shape */
	--container: 1200px;
	--gutter: clamp(1.15rem, 4vw, 2rem);
	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 24px;
	--radius-xl: 32px;

	/* Elevation — soft, never heavy */
	--shadow-xs: 0 1px 2px rgba(21, 30, 40, 0.06);
	--shadow-sm: 0 2px 8px rgba(21, 30, 40, 0.06);
	--shadow-md: 0 12px 28px -12px rgba(21, 30, 40, 0.16);
	--shadow-lg: 0 30px 60px -28px rgba(13, 81, 213, 0.32);

	--ease: cubic-bezier(0.22, 0.75, 0.3, 1);
	--speed: 0.45s;
}

/* ---------- 2. Base ------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--ink-600);
	background: var(--surface);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.6em;
	color: var(--ink);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.022em;
	text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 1.35rem + 3.3vw, 3.75rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.1vw, 2.75rem); letter-spacing: -0.028em; }
h3 { font-size: clamp(1.15rem, 1.02rem + 0.5vw, 1.375rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

figure, blockquote, dl, dd { margin: 0; }

a { color: var(--brand); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--brand-700); }

img, svg, picture { max-width: 100%; display: block; }
img { height: auto; }

/* <picture> is a wrapper only — let the <img> inherit the real layout box
   so object-fit resolves against the framed container. */
picture { display: contents; }

/* Inline icons inherit their colour from the text around them. */
svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

ul, ol { margin: 0 0 1.1rem; padding-left: 1.15rem; }
li { margin-bottom: 0.4rem; }

strong { color: var(--ink-800); font-weight: 650; }

:focus-visible {
	outline: 3px solid var(--brand);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection { background: var(--brand-100); color: var(--ink); }

.skip-link {
	position: absolute;
	left: 50%;
	top: 0;
	transform: translate(-50%, -140%);
	z-index: 200;
	background: var(--brand);
	color: #fff;
	padding: 0.7rem 1.25rem;
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	font-weight: 600;
	transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- 3. Layout ---------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--tint { background: var(--surface-2); }
.section--line { border-top: 1px solid var(--line-soft); }

.section-head {
	max-width: 780px;
	margin: 0 auto clamp(2.25rem, 1.5rem + 2vw, 3.5rem);
	text-align: center;
}
.section-head p:not(.eyebrow) { color: var(--ink-500); font-size: 1.075rem; margin-bottom: 0; }
.section-head--left { margin-inline: 0; text-align: left; }

/* Eyebrow tag — gradient-bordered pill with a filled icon chip. */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 1.15rem;
	padding: 0.4rem 1.05rem 0.4rem 0.4rem;
	border: 1.5px solid transparent;
	border-radius: 999px;
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(115deg, var(--brand), #4d8ef0 45%, var(--accent)) border-box;
	color: var(--brand-700);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1;
	box-shadow: 0 2px 10px -6px rgba(13, 81, 213, 0.55);
}
.eyebrow svg {
	width: 26px;
	height: 26px;
	padding: 6px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--brand), #4d8ef0);
	color: #fff;
	flex: none;
	box-shadow: 0 3px 8px -3px rgba(13, 81, 213, 0.6);
}
/* Live variant: a pulsing dot instead of an icon. */
.eyebrow--live { padding-left: 0.95rem; gap: 0.7rem; }
.pulse {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
	flex: none;
}
.pulse::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--accent);
	animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
	0% { transform: scale(1); opacity: 0.65; }
	80%, 100% { transform: scale(3.2); opacity: 0; }
}

.grid { display: grid; gap: clamp(1.1rem, 0.6rem + 1.4vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 4. Buttons --------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: 0.9rem 1.5rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-weight: 650;
	font-size: 0.975rem;
	line-height: 1.2;
	letter-spacing: -0.01em;
	cursor: pointer;
	text-align: center;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
		background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-lg); }

.btn-ghost {
	background: #fff;
	color: var(--ink);
	border-color: var(--line);
	box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { border-color: var(--brand-200); color: var(--brand-700); box-shadow: var(--shadow-sm); }

.btn-light { background: #fff; color: var(--brand-700); }
.btn-light:hover { background: var(--brand-050); color: var(--brand-700); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }

.btn-sm { padding: 0.65rem 1.15rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* A light sweep across primary calls to action on hover. */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	width: 45%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
	transform: skewX(-18deg);
	transition: left 0.75s var(--ease);
}
.btn-shine:hover::after { left: 125%; }

/* ---------- 5. Header ---------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-stuck {
	background: rgba(255, 255, 255, 0.96);
	border-bottom-color: var(--line-soft);
	box-shadow: 0 6px 24px -18px rgba(21, 30, 40, 0.5);
}

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 78px;
	transition: min-height 0.3s var(--ease);
}
.site-header.is-stuck .nav { min-height: 68px; }

.nav__brand { display: inline-flex; align-items: center; flex: none; }
.nav__brand img { width: 216px; height: 34px; transition: width 0.3s var(--ease); }
.site-header.is-stuck .nav__brand img { width: 196px; }

.nav__menu {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
	margin-inline-start: auto;
}
.nav__menu li { margin: 0; }
.nav__link {
	position: relative;
	display: block;
	padding: 0.55rem 0.85rem;
	color: var(--ink-800);
	font-size: 0.94rem;
	font-weight: 600;
	border-radius: 8px;
}
.nav__link::after {
	content: "";
	position: absolute;
	left: 0.85rem;
	right: 0.85rem;
	bottom: 0.3rem;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--brand), var(--accent));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--brand); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--brand); }

.nav__cta { flex: none; margin-inline-start: 0.6rem; }
.nav__menu-cta { display: none; }

.nav__toggle {
	display: none;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
}
.nav__toggle span {
	display: block;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: var(--ink);
	transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Hero ------------------------------------------------------ */
.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp(2.75rem, 1.5rem + 5vw, 5rem) clamp(4rem, 2rem + 6vw, 7rem);
	background: linear-gradient(180deg, #fbfcff 0%, #f5f8ff 45%, #ffffff 100%);
}

/* Slow-drifting colour mesh behind the hero. */
.hero__mesh { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.blob--1 {
	width: 460px; height: 460px;
	top: -140px; right: -110px;
	background: radial-gradient(circle, rgba(13, 81, 213, 0.34), transparent 68%);
	animation: drift 20s ease-in-out infinite alternate;
}
.blob--2 {
	width: 360px; height: 360px;
	bottom: -130px; left: -90px;
	background: radial-gradient(circle, rgba(8, 186, 64, 0.26), transparent 68%);
	animation: drift 26s ease-in-out infinite alternate-reverse;
}
.blob--3 {
	width: 300px; height: 300px;
	top: 38%; left: 42%;
	background: radial-gradient(circle, rgba(109, 160, 255, 0.3), transparent 70%);
	animation: drift2 24s ease-in-out infinite alternate;
}
.hero__grain {
	position: absolute;
	inset: 0;
	opacity: 0.5;
	background-image: radial-gradient(rgba(13, 81, 213, 0.11) 1px, transparent 1px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000, transparent 75%);
	mask-image: radial-gradient(70% 60% at 50% 35%, #000, transparent 75%);
}

.hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
	gap: clamp(2rem, 1rem + 4vw, 4.5rem);
	align-items: center;
}

.hero__title { margin-bottom: 1.15rem; }
.hero__title span { display: block; }

/* Gradient headline accent with a stroke that draws itself in. */
.hero__accent {
	position: relative;
	width: fit-content;
	background: linear-gradient(100deg, var(--brand) 5%, #2f7bf0 45%, var(--accent) 115%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hero__underline {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -0.16em;
	width: 100%;
	height: 0.3em;
	color: var(--accent);
	opacity: 0.85;
}
.hero__underline path {
	stroke-dasharray: 330;
	stroke-dashoffset: 330;
	animation: draw 1.1s var(--ease) 0.75s forwards;
}

.hero__lead {
	max-width: 44ch;
	font-size: clamp(1.05rem, 1rem + 0.3vw, 1.185rem);
	color: var(--ink-600);
	margin-bottom: 1.15rem;
}

/* Rotating speciality line. */
/* The rotating items are absolutely positioned, so the .rotator box has no
   in-flow baseline — align on the centre line instead and give the label and
   the rotator the same box height so their text lines up exactly. */
.hero__rotator {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	margin-bottom: 2.1rem;
	padding: 0.75rem 1.4rem 0.75rem 1.2rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background:
		linear-gradient(120deg, var(--brand-050), #eefaf1) padding-box,
		linear-gradient(115deg, var(--brand-200), rgba(8, 186, 64, 0.4)) border-box;
	box-shadow: 0 10px 26px -20px rgba(13, 81, 213, 0.9);
	font-size: 1.06rem;
	line-height: 1.55;
}
.hero__rotator-label {
	color: var(--ink-600);
	font-weight: 600;
	flex: none;
	line-height: 1.55;
}
.rotator {
	position: relative;
	display: block;
	flex: none;
	min-width: 21ch;
	height: 1.55em;
	line-height: 1.55;
	overflow: hidden;
}
/* One-shot animations rather than transitions: when a class is removed the
   item snaps back to hidden instead of animating backwards through the box. */
.rotator__item {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	background: linear-gradient(100deg, var(--brand), #2f7bf0 55%, var(--accent-700));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-weight: 800;
	white-space: nowrap;
	opacity: 0;
}
.rotator__item.is-current { animation: rotIn 0.5s var(--ease) forwards; }
.rotator__item.is-leaving { animation: rotOut 0.5s var(--ease) forwards; }

@keyframes rotIn {
	from { opacity: 0; transform: translateY(100%); }
	to { opacity: 1; transform: none; }
}
@keyframes rotOut {
	from { opacity: 1; transform: none; }
	to { opacity: 0; transform: translateY(-100%); }
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.25rem; }

/* Hero visual */
.hero__visual { position: relative; }
[data-parallax-layer] { translate: var(--px, 0) var(--py, 0); transition: translate 0.45s var(--ease); }
.hero__frame {
	position: relative;
	border-radius: var(--radius-xl);
	overflow: hidden;
	box-shadow: var(--shadow-lg), 0 0 0 1px rgba(21, 30, 40, 0.04);
	aspect-ratio: 5 / 6;
	background: var(--surface-3);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.hero__frame::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(190deg, rgba(13, 81, 213, 0.05), rgba(21, 30, 40, 0.24));
}
.hero__ring {
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	padding: 2px;
	background: conic-gradient(from 0deg, transparent 0deg, rgba(13, 81, 213, 0.7) 60deg, rgba(8, 186, 64, 0.6) 130deg, transparent 200deg);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	animation: spin 9s linear infinite;
	pointer-events: none;
}

.hero__card {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.85rem 1.1rem;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
}
.hero__card--doctor { left: -18px; bottom: 104px; max-width: 288px; animation: float 7s ease-in-out infinite; }
.hero__card--years { right: -14px; top: 34px; animation: float 6s ease-in-out infinite 0.6s; }
.hero__card--hospitals { right: -6px; bottom: 18px; max-width: 250px; animation: float 8s ease-in-out infinite 1.1s; }

.hero__avatar { position: relative; flex: none; }
.hero__avatar img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: linear-gradient(150deg, var(--brand-050), #e6f7ec); }
.hero__avatar-dot {
	position: absolute;
	right: 0;
	bottom: 1px;
	width: 13px;
	height: 13px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--accent);
}
.hero__card strong { display: block; font-size: 0.93rem; color: var(--ink); line-height: 1.3; font-weight: 700; }
.hero__card span { font-size: 0.775rem; color: var(--ink-500); line-height: 1.35; display: block; }
.hero__card .num { font-size: 1.65rem; font-weight: 800; color: var(--brand); letter-spacing: -0.04em; line-height: 1; }
.hero__badge-icon {
	width: 42px; height: 42px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: var(--accent-050);
	color: var(--accent-700);
	flex: none;
}
.hero__badge-icon svg { width: 20px; height: 20px; }
.hero__badge-icon--blue { background: var(--brand-050); color: var(--brand); }

/* Scroll cue */
.hero__cue {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	width: 26px;
	height: 42px;
	border: 2px solid var(--brand-200);
	border-radius: 14px;
	display: grid;
	place-items: start center;
	padding-top: 7px;
	z-index: 2;
}
.hero__cue span {
	width: 4px;
	height: 8px;
	border-radius: 2px;
	background: var(--brand);
	animation: cue 1.8s var(--ease) infinite;
}
.hero__cue:hover { border-color: var(--brand); }

/* ---------- 7. Specialities --------------------------------------------- */
.specialities {
	position: relative;
	padding-block: clamp(2rem, 1rem + 2.5vw, 3rem);
	background: var(--surface);
	border-bottom: 1px solid var(--line-soft);
}
.spec-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(0.75rem, 0.3rem + 1.2vw, 1.25rem);
	margin: 0;
	padding: 0;
	list-style: none;
}
.spec-card {
	position: relative;
	margin: 0;
	padding: 1.35rem 1.25rem;
	background: linear-gradient(170deg, #fbfcff, #fff);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.spec-card::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 3px;
	background: linear-gradient(90deg, var(--brand), var(--accent));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.45s var(--ease);
}
.spec-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.spec-card:hover::after { transform: scaleX(1); }
.spec-card__icon {
	width: 40px; height: 40px;
	display: grid;
	place-items: center;
	margin-bottom: 0.85rem;
	border-radius: 12px;
	background: linear-gradient(140deg, var(--brand), #4d8ef0);
	color: #fff;
	box-shadow: 0 6px 14px -8px rgba(13, 81, 213, 0.9);
	transition: transform 0.4s var(--ease);
}
.spec-card__icon svg { width: 19px; height: 19px; }
.spec-card:nth-child(2) .spec-card__icon { background: linear-gradient(140deg, #0b8f6c, var(--accent)); box-shadow: 0 6px 14px -8px rgba(8, 186, 64, 0.9); }
.spec-card:nth-child(3) .spec-card__icon { background: linear-gradient(140deg, #2b49b8, #5d76ef); }
.spec-card:nth-child(4) .spec-card__icon { background: linear-gradient(140deg, #0f6fb5, #35a6d8); }
.spec-card:hover .spec-card__icon { transform: scale(1.08) rotate(-5deg); }
.spec-card h3 {
	margin: 0 0 0.25rem;
	font-size: clamp(0.95rem, 0.82rem + 0.34vw, 1.09rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	white-space: nowrap;
}
.spec-card p { margin: 0; font-size: 0.79rem; color: var(--ink-500); line-height: 1.45; }

/* ---------- 8. About ----------------------------------------------------- */
.about {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem);
	background: var(--surface-2);
	color: var(--ink-600);
}
.about__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(760px 480px at 10% -5%, rgba(13, 81, 213, 0.11), transparent 62%),
		radial-gradient(620px 420px at 94% 100%, rgba(8, 186, 64, 0.1), transparent 62%);
}
.about__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(13, 81, 213, 0.1) 1px, transparent 1px);
	background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent 78%);
	mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent 78%);
	opacity: 0.55;
}
.about__role {
	background: linear-gradient(100deg, var(--brand), #2f7bf0 55%, var(--accent-700));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.about__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(2rem, 1rem + 4vw, 4rem);
	/* stretch so the portrait card runs the full height of the text column */
	align-items: stretch;
}

.about__media { position: relative; display: flex; }

/* The portrait is a cut-out with a transparent background, so it stands in a
   plain tinted card rather than being cropped into a photo frame. The name
   plate gives the column weight the half-height figure would otherwise lack. */
.about__portrait {
	position: relative;
	flex: 1;
	min-height: 460px;
	border: 1px solid var(--line);
	border-radius: var(--radius-xl);
	background: linear-gradient(178deg, #eaf0ff 0%, #f5f8ff 46%, #fdfeff 100%);
	box-shadow: 0 30px 55px -40px rgba(21, 30, 40, 0.5);
	overflow: hidden;
}
/* Absolutely positioned so it fills the card exactly: a percentage height on
   a grid item does not resolve reliably against an auto-sized row. */
.about__portrait img {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 12%;
}
.about__nameplate {
	position: absolute;
	z-index: 2;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	padding: 0.85rem 1.15rem;
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.9);
	box-shadow: var(--shadow-sm);
}
.about__nameplate strong { display: block; color: var(--ink); font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.about__nameplate span { display: block; font-size: 0.8rem; color: var(--ink-500); line-height: 1.4; }

/* Compact, and anchored to the empty top-left of the card so it clears her
   face. z-index lifts it above the portrait, which has its own stacking context. */
.about__float {
	position: absolute;
	z-index: 3;
	left: -12px;
	top: 1.25rem;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.7rem 1rem;
	border-radius: var(--radius);
	background: linear-gradient(135deg, var(--brand), #2f7bf0);
	color: #fff;
	box-shadow: 0 24px 40px -22px rgba(13, 81, 213, 0.95);
	animation: float 7s ease-in-out infinite;
}
.about__float .num { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.about__float span:last-child { font-size: 0.75rem; line-height: 1.3; color: rgba(255, 255, 255, 0.9); }

.about__lead {
	font-size: clamp(1.08rem, 1rem + 0.4vw, 1.28rem);
	line-height: 1.65;
	color: var(--ink-800);
	margin-bottom: 0.9rem;
}
.about__sub { color: var(--ink-500); margin-bottom: 1.85rem; }

.creds {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.7rem;
	margin: 0 0 1.85rem;
	padding: 0;
	list-style: none;
}
.creds li {
	margin: 0;
	padding: 0.9rem 1.05rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: var(--shadow-xs);
	transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.creds li:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.creds__key { display: block; color: var(--ink); font-weight: 700; font-size: 0.92rem; line-height: 1.35; }
.creds__val { display: block; font-size: 0.8rem; color: var(--ink-500); line-height: 1.4; margin-top: 0.15rem; }

.chips__label {
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-500);
	margin-bottom: 0.75rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.chips li {
	margin: 0;
	padding: 0.45rem 0.85rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 0.815rem;
	font-weight: 500;
	color: var(--ink-600);
	transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.chips li:hover { background: var(--brand-050); color: var(--brand-700); border-color: var(--brand-200); }

.about__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	margin: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0 0;
	padding: 0;
	list-style: none;
}
.stats li {
	margin: 0;
	padding: 1.4rem 1rem;
	text-align: center;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-xs);
	transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.stats li:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--brand-100); }
.stats .num {
	display: block;
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.1;
	background: linear-gradient(120deg, var(--brand), var(--accent-700));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.stats span:last-child { font-size: 0.83rem; color: var(--ink-500); line-height: 1.35; display: block; margin-top: 0.25rem; }

/* ---------- 9. Expertise ------------------------------------------------- */
.expertise-card {
	position: relative;
	height: 100%;
	padding: 1.85rem 1.6rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-xs);
	overflow: hidden;
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.expertise-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, var(--brand), var(--accent));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.45s var(--ease);
}
.expertise-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.expertise-card:hover::before { transform: scaleX(1); }
.expertise-card__icon {
	width: 54px; height: 54px;
	display: grid;
	place-items: center;
	margin-bottom: 1.2rem;
	border-radius: 16px;
	background: linear-gradient(140deg, var(--brand), #4d8ef0);
	color: #fff;
	box-shadow: 0 10px 20px -12px rgba(13, 81, 213, 0.95);
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.expertise-card__icon svg { width: 25px; height: 25px; }
.expertise-card:nth-child(2) .expertise-card__icon { background: linear-gradient(140deg, #0b8f6c, var(--accent)); box-shadow: 0 10px 20px -12px rgba(8, 186, 64, 0.95); }
.expertise-card:nth-child(3) .expertise-card__icon { background: linear-gradient(140deg, #2b49b8, #5d76ef); }
.expertise-card:nth-child(4) .expertise-card__icon { background: linear-gradient(140deg, #0f6fb5, #35a6d8); }
.expertise-card:nth-child(5) .expertise-card__icon { background: linear-gradient(140deg, #1a7f9c, #2fb8ac); }
.expertise-card:nth-child(6) .expertise-card__icon { background: linear-gradient(140deg, #5340c4, #8a7bf0); }
.expertise-card:hover .expertise-card__icon { transform: scale(1.07) rotate(-5deg); }
.expertise-card h3 { margin-bottom: 0.45rem; }
.expertise-card p { font-size: 0.95rem; color: var(--ink-500); margin: 0; }

/* ---------- 10. Facilities ---------------------------------------------- */
.facility-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-xs);
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.facility-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.facility-card__media { position: relative; overflow: hidden; aspect-ratio: 800 / 560; background: var(--surface-3); }
.facility-card__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--ease);
}
.facility-card:hover .facility-card__media img { transform: scale(1.06); }
.facility-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(21, 30, 40, 0.28), transparent 55%);
	opacity: 0;
	transition: opacity 0.45s var(--ease);
}
.facility-card:hover .facility-card__media::after { opacity: 1; }
.facility-card__body { padding: 1.5rem 1.45rem 1.6rem; flex: 1; }
.facility-card h3 { margin-bottom: 0.45rem; font-size: 1.12rem; }
.facility-card p { font-size: 0.93rem; color: var(--ink-500); margin: 0; }

/* ---------- 11. Affiliations -------------------------------------------- */
.affiliations { padding-block: clamp(2.25rem, 1.5rem + 2vw, 3.25rem); background: var(--surface); border-block: 1px solid var(--line-soft); }
.affiliations__label {
	text-align: center;
	font-size: 0.78rem;
	font-weight: 650;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-400);
	margin-bottom: 1.5rem;
}
.marquee { position: relative; overflow: hidden; }
/* Static fallback (no JS, or reduced motion): a centred, wrapping row. */
.marquee__track {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(1.25rem, 0.5rem + 3vw, 4rem);
}
/* JS adds .is-animated once the row has been duplicated for a seamless loop. */
.marquee.is-animated {
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee.is-animated .marquee__track {
	flex-wrap: nowrap;
	justify-content: flex-start;
	width: max-content;
	animation: marquee 34s linear infinite;
}
.marquee.is-animated:hover .marquee__track { animation-play-state: paused; }
.marquee img {
	width: 168px;
	height: 84px;
	object-fit: contain;
	flex: none;
	opacity: 1;
	transition: transform 0.35s var(--ease);
}
.marquee img:hover { transform: scale(1.06); }

/* ---------- 12. Image band ---------------------------------------------- */
.band {
	position: relative;
	isolation: isolate;
	padding-block: clamp(4rem, 2rem + 8vw, 7.5rem);
	color: #fff;
	overflow: hidden;
}
.band__bg { position: absolute; inset: 0; z-index: -2; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(100deg, rgba(7, 42, 118, 0.94) 6%, rgba(13, 81, 213, 0.86) 48%, rgba(24, 108, 226, 0.72) 100%),
		linear-gradient(0deg, rgba(9, 58, 153, 0.35), rgba(9, 58, 153, 0.35));
}
.band h2 { color: #fff; }
.band p:not(.eyebrow) { color: rgba(255, 255, 255, 0.82); font-size: 1.075rem; }
.band__inner { max-width: 660px; }
.band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }

/* ---------- 13. Testimonials -------------------------------------------- */
.testimonials { background: var(--surface-2); color: var(--ink-600); }

.t-rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(318px, 1fr);
	gap: 1.25rem;
	/* overflow-x alone would compute overflow-y to auto and add a stray
	   vertical scrollbar, so pin the vertical axis explicitly. The padding
	   leaves room for the card hover lift and its shadow. */
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0.5rem 0.25rem 1.5rem;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.t-rail::-webkit-scrollbar { display: none; }

.t-card {
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	/* No height:100% — the grid row is content-sized, so a percentage height
	   resolves circularly and overshoots the track. Grid stretch already
	   equalises the cards. */
	padding: 1.85rem 1.7rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-xs);
	transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.t-card:hover { box-shadow: var(--shadow-md); border-color: var(--brand-100); transform: translateY(-5px); }
.t-card__quote { width: 32px; height: 32px; color: var(--brand-200); margin-bottom: 0.9rem; }
.t-card blockquote {
	margin: 0 0 1.35rem;
	font-size: 0.975rem;
	line-height: 1.7;
	color: var(--ink-600);
	flex: 1;
}
.t-card__author { padding-top: 1.1rem; border-top: 1px solid var(--line-soft); }
.t-card__author strong { display: block; color: var(--ink); font-size: 0.97rem; line-height: 1.35; font-weight: 700; }
.t-card__author span { font-size: 0.82rem; color: var(--ink-500); }

.rail-nav { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-top: 2.25rem; }
.rail-btn {
	width: 46px; height: 46px;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--surface);
	color: var(--ink);
	cursor: pointer;
	box-shadow: var(--shadow-xs);
	transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.rail-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.rail-btn svg { width: 19px; height: 19px; }

/* ---------- 14. FAQ ------------------------------------------------------ */
.faq { max-width: 860px; margin-inline: auto; }
.faq__item {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	margin-bottom: 0.85rem;
	overflow: hidden;
	transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.faq__item[open] { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem 1.35rem;
	cursor: pointer;
	list-style: none;
	font-size: 1.02rem;
	font-weight: 650;
	color: var(--ink);
	line-height: 1.45;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--brand); }
.faq__icon {
	width: 30px; height: 30px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--brand-050);
	color: var(--brand);
	flex: none;
	transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.faq__icon svg { width: 15px; height: 15px; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq__a { padding: 0 1.35rem 1.3rem; font-size: 0.97rem; color: var(--ink-500); }
.faq__item[open] .faq__a { animation: fadeDown 0.4s var(--ease) both; }

/* ---------- 15. Contact -------------------------------------------------- */
.contact-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 2rem 1.75rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-xs);
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.contact-card__icon {
	width: 54px; height: 54px;
	display: grid;
	place-items: center;
	margin-bottom: 1.25rem;
	border-radius: 16px;
	background: linear-gradient(140deg, var(--brand), #4d8ef0);
	color: #fff;
	box-shadow: 0 10px 20px -12px rgba(13, 81, 213, 0.95);
	transition: transform 0.4s var(--ease);
}
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card:nth-child(2) .contact-card__icon { background: linear-gradient(140deg, #0b8f6c, var(--accent)); box-shadow: 0 10px 20px -12px rgba(8, 186, 64, 0.95); }
.contact-card:nth-child(3) .contact-card__icon { background: linear-gradient(140deg, #0f6fb5, #35a6d8); }
.contact-card:hover .contact-card__icon { transform: scale(1.06) rotate(-4deg); }
.contact-card h3 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-400); font-weight: 650; margin-bottom: 0.75rem; }
.contact-card__body { flex: 1; margin-bottom: 1.35rem; }
.contact-card__body p { margin-bottom: 0.5rem; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--line); }
.hours div:last-child { border-bottom: 0; }
.hours dt { color: var(--ink-500); font-size: 0.92rem; }
.hours dd { margin: 0; color: var(--ink); font-weight: 600; font-size: 0.92rem; text-align: right; }
.contact-card .big { font-size: 1.35rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; display: block; }
.contact-card address { font-style: normal; color: var(--ink-600); line-height: 1.6; }

/* ---------- 16. CTA ------------------------------------------------------ */
.cta {
	position: relative;
	overflow: hidden;
	padding-block: clamp(3.25rem, 2rem + 5vw, 5.5rem);
	background: linear-gradient(120deg, var(--brand-700), var(--brand) 55%, #1668e6);
	color: #fff;
	text-align: center;
}
.cta::before,
.cta::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.09);
	pointer-events: none;
}
.cta::before { width: 320px; height: 320px; top: -140px; left: -60px; animation: drift 20s ease-in-out infinite alternate; }
.cta::after { width: 260px; height: 260px; bottom: -130px; right: -40px; animation: drift 24s ease-in-out infinite alternate-reverse; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p:not(.eyebrow) { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; max-width: 620px; margin-inline: auto; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 2rem; }

/* ---------- 17. Footer --------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.62); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 0; font-size: 0.93rem; }
.site-footer h2, .site-footer h3 { color: #fff; }
.footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
	gap: clamp(2rem, 1rem + 3vw, 3.5rem);
	padding-bottom: 2.75rem;
}
.footer__logo { width: 230px; height: 36px; margin-bottom: 1.25rem; }
.footer__about { max-width: 46ch; line-height: 1.75; }
.footer__title { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; font-weight: 650; margin-bottom: 1.1rem; }
.footer__list { margin: 0; padding: 0; list-style: none; }
.footer__list li { margin-bottom: 0.6rem; }
.footer__list a, .footer__list span { color: rgba(255, 255, 255, 0.62); }
.footer__list a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer__contact svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 4px; }
.footer__contact address { font-style: normal; }

.footer__note {
	padding: 1.75rem 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.85rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.48);
}
.footer__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1.5rem 0 1.75rem;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.58);
}
.footer__bar a { color: rgba(255, 255, 255, 0.72); }
.footer__bar a:hover { color: #fff; }

/* ---------- 18. Mobile call bar ----------------------------------------- */
.callbar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 95;
	display: none;
	gap: 0.6rem;
	padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(12px);
	border-top: 1px solid var(--line);
	box-shadow: 0 -8px 24px -18px rgba(21, 30, 40, 0.6);
}
.callbar .btn { flex: 1; }

/* ---------- 19. Animation ------------------------------------------------ */
/* Hero entrance — runs on load rather than on scroll. */
.anim {
	opacity: 0;
	animation: rise 0.85s var(--ease) var(--anim-delay, 0ms) forwards;
}
.anim--right { animation-name: riseRight; }

@keyframes rise {
	from { opacity: 0; transform: translateY(26px); }
	to { opacity: 1; transform: none; }
}
@keyframes riseRight {
	from { opacity: 0; transform: translate3d(34px, 18px, 0) scale(0.97); }
	to { opacity: 1; transform: none; }
}
@keyframes draw {
	to { stroke-dashoffset: 0; }
}
@keyframes spin {
	to { transform: rotate(360deg); }
}
@keyframes drift2 {
	from { transform: translate3d(0, 0, 0) scale(1); }
	to { transform: translate3d(38px, -30px, 0) scale(0.9); }
}
@keyframes cue {
	0% { transform: translateY(0); opacity: 0; }
	35% { opacity: 1; }
	100% { transform: translateY(13px); opacity: 0; }
}

[data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
	transition-delay: var(--delay, 0ms);
	will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes drift {
	from { transform: translate3d(0, 0, 0) scale(1); }
	to { transform: translate3d(-24px, 26px, 0) scale(1.08); }
}
@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-9px); }
}
@keyframes marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
@keyframes fadeDown {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
	[data-reveal] { opacity: 1; transform: none; }
	.anim { opacity: 1; animation: none; }
	.hero__underline path { stroke-dashoffset: 0; }
	.hero__ring, .hero__cue span, .pulse::after { animation: none; }
	.marquee.is-animated .marquee__track { animation: none; }
}

/* ---------- 20. Responsive ---------------------------------------------- */
@media (max-width: 1150px) {
	.spec-card h3 { white-space: normal; }
}

@media (max-width: 1080px) {
	.spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero__card--doctor { left: 0; }
	.hero__card--hospitals { display: none; }
}

@media (max-width: 991px) {
	html { scroll-padding-top: 84px; }
	.nav__toggle { display: flex; }
	.nav__cta { display: none; }
	.nav { min-height: 70px; }
	.nav__menu {
		position: absolute;
		left: var(--gutter);
		right: var(--gutter);
		top: calc(100% + 8px);
		flex-direction: column;
		align-items: stretch;
		gap: 0.15rem;
		padding: 0.75rem;
		background: #fff;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		box-shadow: var(--shadow-md);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
	}
	.nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }
	.nav__link { padding: 0.8rem 0.9rem; font-size: 1rem; }
	.nav__link::after { display: none; }
	.nav__menu-cta { display: block; margin-top: 0.5rem; }

	.hero__grid { grid-template-columns: minmax(0, 1fr); }
	.hero__lead { max-width: 56ch; }
	.hero__visual { max-width: 560px; margin-inline: auto; width: 100%; margin-top: 0.5rem; }
	.hero__frame { aspect-ratio: 4 / 3; }
	.hero__card--doctor { left: 8px; bottom: 14px; }
	.hero__card--years { right: 8px; top: 14px; }
	.hero__cue { display: none; }

	.about__grid { grid-template-columns: minmax(0, 1fr); }
	.about__media { max-width: 420px; margin-inline: auto; width: 100%; }
	.about__portrait { aspect-ratio: 1 / 1.08; min-height: 0; }
	.about__float { left: 0; }
	.creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }

	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer__about { max-width: none; }
}

@media (max-width: 660px) {
	html { scroll-padding-top: 76px; }
	body { padding-bottom: 74px; }
	.callbar { display: flex; }
	.grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
	.spec-grid { grid-template-columns: minmax(0, 1fr); }
	.spec-card { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.1rem; }
	.spec-card__icon { margin-bottom: 0; }
	.footer__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
	.stats li { padding: 1rem 0.5rem; }
	.creds { grid-template-columns: minmax(0, 1fr); }
	.hero__rotator { flex-wrap: wrap; }
	.hero__actions .btn, .about__actions .btn { width: 100%; }
	.t-rail { grid-auto-columns: minmax(270px, 84%); }
	.nav__brand img { width: 178px; height: 28px; }
	.site-header.is-stuck .nav__brand img { width: 170px; }
	.hero__card { padding: 0.6rem 0.8rem; gap: 0.6rem; }
	.hero__card--doctor { max-width: 215px; }
	.hero__avatar img { width: 40px; height: 40px; }
	.hero__card strong { font-size: 0.83rem; }
	.hero__card span { font-size: 0.7rem; }
	.about__float { padding: 0.6rem 0.8rem; left: -6px; }
	.about__float .num { font-size: 1.45rem; }
}
