/* ==========================================================================
   Dr. Khalid Safi theme
   Design language: clinical-premium, "ink + tan". RTL-first with logical
   properties, so the same CSS also works for LTR.

   Shape system (one rule, used everywhere):
     buttons, chips, pills  -> full pill
     cards, tiles, panels   -> 18px (--r-md), large media and bands -> 28px (--r-lg)
     inputs                 -> 12px (--r-sm)
   Accent: brand tan only. No second accent colour.
   Layers (z-index): content 0-2, sticky filter 20, header 40, FAB 45, dialogs (top layer).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	color-scheme: light;
	--bg: #f3f4f2;
	--surface: #fbfbfa;
	--surface-2: #e9ebe7;
	--surface-3: #dfe2dd;
	--ink: #121715;
	--text: #2f3632;
	--muted: #59615c;
	--line: #d9dcd6;
	--line-strong: #c3c8c2;
	--field: #ffffff;
	--field-border: #8a928c;
	--tan: #bb8f71;
	--tan-deep: #8c6247;
	--tan-soft: rgb(187 143 113 / 0.14);
	--plate: #eceee9;
	--plate-line: #dfe2dc;
	--block-bg: #151b19;
	--block-fg: #eef0ed;
	--block-muted: #a9b2ac;
	--btn-bg: #121715;
	--btn-fg: #f6f7f5;
	--btn-hover: #2b3531;
	--focus: #8c6247;
	--scrim: rgb(10 13 12 / 0.88);
	--shadow-sm: 0 1px 2px rgb(18 23 21 / 0.06), 0 4px 14px -6px rgb(18 23 21 / 0.08);
	--shadow-md: 0 18px 40px -18px rgb(18 23 21 / 0.22);
	--shadow-lg: 0 40px 90px -40px rgb(18 23 21 / 0.42);

	--r-sm: 12px;
	--r-md: 18px;
	--r-lg: 28px;
	--r-pill: 999px;

	--font-display: "Alexandria", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
	--font-body: "IBM Plex Sans Arabic", "Alexandria", "Segoe UI", Tahoma, sans-serif;

	--container: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 76px;
	--section: clamp(64px, 7.5vw, 112px);
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;
		--bg: #0e1211;
		--surface: #141917;
		--surface-2: #1a201e;
		--surface-3: #222926;
		--ink: #eef0ed;
		--text: #c6ccc7;
		--muted: #98a09a;
		--line: #262d2a;
		--line-strong: #353e3a;
		--field: #0f1312;
		--field-border: #5f6964;
		--tan: #c9a084;
		--tan-deep: #d8b59b;
		--tan-soft: rgb(201 160 132 / 0.12);
		--plate: #e2e5df;
		--plate-line: #e2e5df;
		--block-bg: #2a221d;
		--block-fg: #f3ece6;
		--block-muted: #c9b9ad;
		--btn-bg: #c9a084;
		--btn-fg: #121715;
		--btn-hover: #dab69b;
		--focus: #d8b59b;
		--shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
		--shadow-md: 0 18px 40px -18px rgb(0 0 0 / 0.6);
		--shadow-lg: 0 40px 90px -40px rgb(0 0 0 / 0.75);
	}
}
:root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #0e1211;
	--surface: #141917;
	--surface-2: #1a201e;
	--surface-3: #222926;
	--ink: #eef0ed;
	--text: #c6ccc7;
	--muted: #98a09a;
	--line: #262d2a;
	--line-strong: #353e3a;
	--field: #0f1312;
	--field-border: #5f6964;
	--tan: #c9a084;
	--tan-deep: #d8b59b;
	--tan-soft: rgb(201 160 132 / 0.12);
	--plate: #e2e5df;
	--plate-line: #e2e5df;
	--block-bg: #2a221d;
	--block-fg: #f3ece6;
	--block-muted: #c9b9ad;
	--btn-bg: #c9a084;
	--btn-fg: #121715;
	--btn-hover: #dab69b;
	--focus: #d8b59b;
	--shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
	--shadow-md: 0 18px 40px -18px rgb(0 0 0 / 0.6);
	--shadow-lg: 0 40px 90px -40px rgb(0 0 0 / 0.75);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.85;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink);
	text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--tan); color: #121715; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
[dir="ltr"] .icon-arrow-left, [dir="ltr"] .icon-arrow-up-left { transform: scaleX(-1); }

.sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute;
	inset-inline-start: 16px;
	top: -100px;
	z-index: 100;
	padding: 10px 18px;
	border-radius: var(--r-pill);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--flush { padding-block: 0 var(--section); }
.section--flush-top { padding-top: 0; }
.section--alt { background: var(--surface-2); }

/* ---------- Type helpers ---------- */
.kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--tan-deep);
}
.kicker::before {
	content: "";
	width: 28px;
	height: 1.5px;
	background: currentColor;
	border-radius: 2px;
}
.kicker .icon { width: 1.2em; height: 1.2em; }
.kicker:has(.icon)::before { display: none; }

.h-section {
	font-size: clamp(1.85rem, 1.25rem + 2.1vw, 2.9rem);
	line-height: 1.25;
	font-weight: 600;
}
.section-head { margin-bottom: clamp(32px, 4vw, 52px); max-width: 720px; }
.section-head__text { margin-top: 14px; font-size: 1.125rem; color: var(--muted); max-width: 60ch; }
.section-head--row {
	max-width: none;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.section-head__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.section-foot { margin-top: clamp(28px, 4vw, 44px); display: flex; justify-content: center; }

/* ---------- Buttons & links ---------- */
.btn {
	--btn-pad: 14px 26px;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: var(--btn-pad);
	border: 1.5px solid transparent;
	border-radius: var(--r-pill);
	font-family: var(--font-display);
	font-size: 0.98rem;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.35s var(--ease);
	-webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn .icon { width: 1.2em; height: 1.2em; }
.btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(-4px); }
[dir="ltr"] .btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 10px 24px -14px rgb(18 23 21 / 0.55); }
.btn--primary:hover { background: var(--btn-hover); box-shadow: 0 16px 30px -16px rgb(18 23 21 / 0.6); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn--light { background: var(--block-fg); color: #121715; }
.btn--light:hover { background: #ffffff; }
.btn--outline-light { border-color: rgb(255 255 255 / 0.28); color: var(--block-fg); }
.btn--outline-light:hover { border-color: var(--block-fg); background: rgb(255 255 255 / 0.06); }
.btn--sm { min-height: 42px; --btn-pad: 9px 18px; font-size: 0.92rem; }
.btn--lg { min-height: 56px; --btn-pad: 16px 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-display);
	font-weight: 500;
	color: var(--ink);
	padding-block: 6px;
	background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1.5px;
	transition: background-size 0.4s var(--ease), color 0.2s;
}
[dir="ltr"] .link-arrow { background-position: 0 100%; }
.link-arrow:hover { background-size: 100% 1.5px; color: var(--tan-deep); }
.link-arrow .icon { transition: transform 0.35s var(--ease); }
.link-arrow:hover .icon-arrow-left { transform: translateX(-4px); }

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--r-pill);
	background: transparent;
	color: var(--ink);
	transition: background-color 0.2s, transform 0.2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn .icon { width: 22px; height: 22px; }
.icon-btn--line { border: 1.5px solid var(--line-strong); }
.icon-btn--line:hover { border-color: var(--ink); background: transparent; }

.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 7px 14px;
	border-radius: var(--r-pill);
	border: 1px solid var(--line-strong);
	background: var(--surface);
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--ink);
	transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(0.98); }
.chip .icon { color: var(--tan-deep); }

/* ---------- Header ---------- */
.header-sentinel { position: absolute; top: 0; inset-inline: 0; height: 24px; pointer-events: none; }
.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	height: var(--header-h);
	transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
	border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
	background: color-mix(in srgb, var(--bg) 80%, transparent);
	-webkit-backdrop-filter: blur(18px) saturate(1.5);
	backdrop-filter: blur(18px) saturate(1.5);
	border-bottom-color: var(--line);
	box-shadow: 0 10px 30px -24px rgb(18 23 21 / 0.4);
}
@media (prefers-reduced-transparency: reduce) {
	.site-header.is-scrolled { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.site-header__inner {
	height: 100%;
	display: flex;
	align-items: center;
	gap: 24px;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand__img { width: auto; height: 54px; }
.brand__img--dark { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .brand__img--light { display: none; }
	:root:not([data-theme="light"]) .brand__img--dark { display: block; }
}
:root[data-theme="dark"] .brand__img--light { display: none; }
:root[data-theme="dark"] .brand__img--dark { display: block; }

.nav { margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__list a {
	position: relative;
	display: block;
	padding: 10px 14px;
	border-radius: var(--r-pill);
	font-family: var(--font-display);
	font-size: 0.97rem;
	font-weight: 450;
	color: var(--text);
	transition: color 0.2s, background-color 0.2s;
}
.nav__list a:hover { color: var(--ink); background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a,
.nav__list .current-menu-ancestor > a { color: var(--ink); font-weight: 600; }
.nav__list .current-menu-item > a::after,
.nav__list .current_page_item > a::after {
	content: "";
	position: absolute;
	inset-inline: 14px;
	bottom: 3px;
	height: 2px;
	border-radius: 2px;
	background: var(--tan);
}
.site-header__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav + .site-header__actions { margin-inline-start: 0; }
.theme-icon--sun { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-icon--sun { display: block; }
	:root:not([data-theme="light"]) .theme-icon--moon { display: none; }
}
:root[data-theme="dark"] .theme-icon--sun { display: block; }
:root[data-theme="dark"] .theme-icon--moon { display: none; }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
	.nav { display: none; }
	.menu-toggle { display: inline-grid; }
	.site-header__actions { margin-inline-start: auto; }
}
@media (max-width: 600px) {
	:root { --header-h: 66px; }
	.brand__img { height: 46px; }
	.header-cta { display: none; }
}

/* Mobile sheet (native <dialog>) */
.sheet {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--bg);
	color: var(--text);
}
.sheet::backdrop { background: var(--scrim); }
.sheet__inner {
	min-height: 100%;
	display: flex;
	flex-direction: column;
	padding: 12px var(--gutter) max(24px, env(safe-area-inset-bottom));
}
.sheet__top { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.sheet__nav { flex: 1; display: flex; align-items: center; }
.sheet__list { list-style: none; width: 100%; }
.sheet__list li { border-bottom: 1px solid var(--line); }
.sheet__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 4px;
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 6vw, 2rem);
	font-weight: 500;
	color: var(--ink);
}
.sheet__list .current-menu-item > a, .sheet__list .current_page_item > a { color: var(--tan-deep); }
.sheet__foot { display: grid; gap: 10px; padding-top: 24px; }
.sheet[open] .sheet__list li { animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 80ms); }
.sheet[open] .sheet__foot { animation: rise 0.6s var(--ease) 0.35s both; }

.socials { display: flex; gap: 8px; list-style: none; }
.socials a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: var(--r-pill);
	border: 1px solid var(--line-strong);
	color: var(--ink);
	transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.socials a:hover { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); transform: translateY(-2px); }
.socials .icon { width: 20px; height: 20px; }
.socials--sheet { justify-content: center; margin-top: 8px; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	isolation: isolate;
	margin-top: calc(var(--header-h) * -1);
	padding-top: var(--header-h);
	overflow: clip;
}
.hero__wash {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(60% 70% at 18% 40%, var(--tan-soft), transparent 70%),
		radial-gradient(50% 60% at 100% 0%, color-mix(in srgb, var(--surface-2) 90%, transparent), transparent 70%);
}
.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: clamp(32px, 6vw, 88px);
	min-height: min(860px, calc(100dvh - var(--header-h)));
	padding-block: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 80px);
}
.hero__title {
	font-size: clamp(2.75rem, 1.6rem + 4.4vw, 5.25rem);
	line-height: 1.15;
	font-weight: 650;
	color: var(--ink);
}
.hero__lead {
	margin-top: 22px;
	max-width: 34ch;
	font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
	line-height: 1.9;
	color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__media { position: relative; margin: 0; justify-self: center; width: min(100%, 520px); }
.hero__frame {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--surface-2);
	box-shadow: var(--shadow-lg);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 8% 18%; }
.hero__frame::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(to bottom, rgb(18 23 21 / 0.14), transparent 26%), linear-gradient(to top, rgb(18 23 21 / 0.18), transparent 30%);
}
.hero__ring {
	position: absolute;
	z-index: -1;
	width: 78%;
	aspect-ratio: 1;
	inset-inline-end: -14%;
	top: -7%;
	border-radius: 50%;
	border: 1.5px solid var(--tan);
	opacity: 0.6;
}
.hero__ring::after {
	content: "";
	position: absolute;
	inset: 13%;
	border-radius: 50%;
	background: var(--tan-soft);
}

@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; gap: 40px; }
	.hero__media { width: min(100%, 440px); }
	.hero__frame { aspect-ratio: 1 / 1.05; }
	.hero__lead { max-width: 42ch; }
}
@media (max-width: 480px) {
	.hero__actions .btn { flex: 1 1 100%; }
	.hero__ring { inset-inline-end: -22%; }
}

/* ---------- Credentials band ---------- */
.creds { padding-block: clamp(8px, 2vw, 16px) clamp(16px, 2vw, 24px); }
.creds__grid {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-block: 1px solid var(--line);
}
.cred {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 30px clamp(16px, 2.2vw, 30px);
}
.cred + .cred { border-inline-start: 1px solid var(--line); }
.cred__token {
	font-family: var(--font-display);
	font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--ink);
	text-align: start;
	transition: color 0.3s;
}
[dir="rtl"] .cred__token { text-align: right; }
.cred:hover .cred__token { color: var(--tan-deep); }
.cred__title { font-size: 0.98rem; line-height: 1.7; color: var(--text); }
.cred__place { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 0.88rem; color: var(--muted); }
.cred__place .icon { color: var(--tan-deep); }
@media (max-width: 960px) {
	.creds__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cred:nth-child(3) { border-inline-start: 0; }
	.cred:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
	.creds__grid { grid-template-columns: 1fr; }
	.cred + .cred { border-inline-start: 0; border-top: 1px solid var(--line); }
	.cred { padding-inline: 0; }
}

/* ---------- About teaser ---------- */
.about-teaser__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: clamp(40px, 7vw, 110px);
	align-items: start;
}
.statement {
	margin-top: 22px;
	margin-bottom: 30px;
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 1.05rem + 1.15vw, 2rem);
	font-weight: 350;
	line-height: 1.75;
	color: var(--ink);
}
.statement mark {
	background: linear-gradient(transparent 62%, var(--tan-soft) 62%);
	color: var(--tan-deep);
	font-weight: 500;
	padding-inline: 2px;
}
.timeline { list-style: none; position: relative; display: grid; gap: 30px; padding-inline-start: 28px; }
.timeline::before {
	content: "";
	position: absolute;
	top: 10px;
	bottom: 10px;
	inset-inline-start: 5px;
	width: 1.5px;
	background: linear-gradient(var(--tan), var(--line));
}
.timeline__item { position: relative; display: grid; gap: 4px; }
.timeline__item::before {
	content: "";
	position: absolute;
	inset-inline-start: -28px;
	top: 8px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--bg);
	border: 2px solid var(--line-strong);
}
.timeline__item:first-child::before { border-color: var(--tan); background: var(--tan); box-shadow: 0 0 0 5px var(--tan-soft); }
.timeline__period { font-size: 0.85rem; font-weight: 600; color: var(--tan-deep); }
.timeline__role { font-family: var(--font-display); font-size: 1.12rem; font-weight: 500; line-height: 1.6; color: var(--ink); }
.timeline__place { display: inline-flex; align-items: center; gap: 6px; font-size: 0.95rem; color: var(--muted); }
.timeline--lg .timeline__role { font-size: 1.25rem; }
@media (max-width: 900px) {
	.about-teaser__grid { grid-template-columns: 1fr; }
}

/* ---------- Illustration plates ---------- */
.plate {
	display: grid;
	place-items: center;
	background: var(--plate);
	border-radius: var(--r-md);
	overflow: hidden;
}
.plate img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s var(--ease); }

/* ---------- Treatments bento ---------- */
.bento {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: minmax(230px, auto);
	gap: 16px;
}
.tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 22px;
	border-radius: var(--r-lg);
	background: var(--surface);
	border: 1px solid var(--line);
	overflow: hidden;
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.tile:hover .plate img { transform: scale(1.07); }
.tile__cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tile__cover:focus-visible { outline-offset: -4px; }
.tile__plate { width: 112px; height: 112px; flex: none; border-radius: var(--r-md); }
.tile__body { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.tile__count { font-size: 0.86rem; font-weight: 500; color: var(--muted); }
.tile__title { font-size: 1.3rem; line-height: 1.45; }
.tile__text { color: var(--muted); max-width: 46ch; font-size: 0.95rem; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile--ink .tile__text { color: var(--block-muted); }
.tile__arrow {
	position: absolute;
	top: 20px;
	inset-inline-end: 20px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: var(--r-pill);
	border: 1px solid var(--line-strong);
	color: var(--ink);
	transition: transform 0.45s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.tile:hover .tile__arrow { transform: rotate(-45deg); background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
[dir="ltr"] .tile:hover .tile__arrow { transform: rotate(45deg); }

.tile--xl { grid-column: span 2; grid-row: span 2; padding: clamp(24px, 3vw, 36px); background: var(--surface-2); border-color: transparent; }
.tile--xl .tile__plate { width: min(100%, 280px); height: auto; aspect-ratio: 1; background: var(--plate); }
.tile--xl .tile__title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.tile--xl .tile__text { -webkit-line-clamp: 4; font-size: 1rem; }
.tile--xl .tile__body { gap: 10px; }
.tile__list { position: relative; z-index: 2; list-style: none; display: grid; margin-top: 14px; border-top: 1px solid var(--line-strong); }
.tile__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line-strong);
	font-weight: 500;
	color: var(--ink);
	line-height: 1.6;
	transition: color 0.2s, padding 0.35s var(--ease);
}
.tile__list a::after { content: "\2190"; color: var(--tan-deep); opacity: 0; transition: opacity 0.2s, transform 0.35s var(--ease); }
[dir="ltr"] .tile__list a::after { content: "\2192"; }
.tile__list a:hover { color: var(--tan-deep); padding-inline-start: 6px; }
.tile__list a:hover::after { opacity: 1; }
.tile--tint { background: var(--tan-soft); border-color: transparent; }
.tile--ink { background: var(--block-bg); border-color: transparent; }
.tile--ink .tile__title { color: var(--block-fg); }
.tile--ink .tile__count { color: var(--block-muted); }
.tile--ink .tile__arrow { border-color: rgb(255 255 255 / 0.22); color: var(--block-fg); }
.tile--ink:hover .tile__arrow { background: var(--block-fg); color: #121715; border-color: var(--block-fg); }
.tile--tan { background: var(--surface-2); }

/* Exact cell counts for 1-6 categories */
.bento--n1 .tile--xl { grid-column: 1 / -1; grid-row: span 1; }
.bento--n2 .tile { grid-column: span 2; grid-row: span 2; }
.bento--n3 .tile:not(.tile--xl) { grid-column: span 2; }
.bento--n4 .tile:last-child { grid-column: span 2; }
.bento--n6 .tile:last-child { grid-column: 1 / -1; grid-row: span 1; }

@media (max-width: 1024px) {
	.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); }
	.bento .tile { grid-column: auto; grid-row: auto; }
	.bento .tile--xl { grid-column: 1 / -1; }
	.bento--n3 .tile:last-child,
	.bento--n5 .tile:not(.tile--xl):last-child:nth-child(even),
	.bento--n2 .tile:last-child { grid-column: 1 / -1; }
	.tile--xl { display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: start; }
	.tile--xl .tile__plate { order: 2; width: 100%; }
}
@media (max-width: 640px) {
	.bento { grid-template-columns: 1fr; }
	.bento .tile { grid-column: 1 / -1; }
	.tile--xl { display: flex; }
	.tile--xl .tile__plate { order: 0; width: 160px; margin-inline-start: 0; }
}

/* ---------- Why laparoscopy ---------- */
.why__band {
	position: relative;
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--block-bg);
	min-height: clamp(380px, 46vw, 560px);
	display: grid;
	align-items: end;
}
.why__img { position: absolute; inset: 0; }
/* The surgeon sits on the right of the photograph; in RTL the copy sits on the left (inline-end).
   In LTR the copy moves right, so the photograph is mirrored to keep him clear of the text. */
.why__img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
[dir="ltr"] .why__img img { transform: scaleX(-1); }
.why__band::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to left, rgb(10 13 12 / 0) 35%, rgb(10 13 12 / 0.82) 100%), linear-gradient(rgb(10 13 12 / 0.12), rgb(10 13 12 / 0.12));
}
[dir="ltr"] .why__band::after { background: linear-gradient(to right, rgb(10 13 12 / 0) 35%, rgb(10 13 12 / 0.82) 100%), linear-gradient(rgb(10 13 12 / 0.12), rgb(10 13 12 / 0.12)); }
.why__copy {
	position: relative;
	z-index: 1;
	width: min(100%, 520px);
	margin-inline-start: auto;
	padding: clamp(28px, 4vw, 56px);
	color: rgb(255 255 255 / 0.86);
}
.why__copy .h-section { color: #fff; }
.why__copy p { margin-top: 14px; font-size: 1.12rem; }
.why__list {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	margin-top: clamp(28px, 4vw, 48px);
}
.why__item { padding: 6px clamp(14px, 2vw, 28px) 0; }
.why__item + .why__item { border-inline-start: 1px solid var(--line); }
.why__item:first-child { padding-inline-start: 0; }
.why__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 18px;
	border-radius: var(--r-pill);
	background: var(--tan-soft);
	color: var(--tan-deep);
}
.why__icon .icon { width: 26px; height: 26px; }
.why__title { font-size: 1.15rem; margin-bottom: 6px; }
.why__text { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 960px) {
	.why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
	.why__item:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
}
@media (max-width: 640px) {
	.why__band { display: block; min-height: 0; background: transparent; border-radius: 0; overflow: visible; }
	.why__band::after { display: none; }
	.why__img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; }
	.why__copy { width: 100%; padding: 24px 0 0; color: var(--muted); }
	.why__copy .h-section { color: var(--ink); }
	.why__list { grid-template-columns: 1fr; row-gap: 24px; }
	.why__item, .why__item + .why__item { border: 0; padding-inline: 0; display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; }
	.why__icon { grid-row: span 2; margin: 0; }
}

/* ---------- Video cards ---------- */
.vcard__link { display: flex; flex-direction: column; gap: 14px; height: 100%; color: inherit; }
.vcard__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: var(--r-md);
	overflow: hidden;
	background: var(--surface-3);
}
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), filter 0.4s; }
.vcard__link:hover .vcard__media img { transform: scale(1.05); }
.vcard__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgb(10 13 12 / 0.45), transparent 50%);
	opacity: 0.7;
	transition: opacity 0.3s;
}
.vcard__play {
	position: absolute;
	z-index: 1;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	border-radius: var(--r-pill);
	background: rgb(251 251 250 / 0.94);
	color: #121715;
	box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.5);
	transition: transform 0.45s var(--ease), background-color 0.3s, color 0.3s;
}
.vcard__play .icon { width: 22px; height: 22px; transform: translateX(1px); }
.vcard__link:hover .vcard__play { transform: scale(1.1); background: var(--tan); }
.vcard__time {
	position: absolute;
	z-index: 1;
	bottom: 10px;
	inset-inline-start: 10px;
	padding: 2px 8px;
	border-radius: var(--r-pill);
	background: rgb(10 13 12 / 0.78);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}
.vcard__body { display: flex; flex-direction: column; gap: 4px; }
.vcard__title {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 1.02rem;
	line-height: 1.6;
	color: var(--ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s;
}
.vcard__link:hover .vcard__title { color: var(--tan-deep); }
.vcard__meta { font-size: 0.86rem; color: var(--muted); }

.vcard--feature .vcard__media { border-radius: var(--r-lg); }
.vcard--feature .vcard__play { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.vcard--feature .vcard__play .icon { width: 30px; height: 30px; }
.vcard--feature .vcard__title { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); }

.vcard--row .vcard__link { display: grid; grid-template-columns: 168px minmax(0, 1fr); align-items: center; gap: 16px; }
.vcard--row .vcard__media { border-radius: var(--r-sm); }
.vcard--row .vcard__play { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
.vcard--row .vcard__play .icon { width: 15px; height: 15px; }
.vcard--row .vcard__title { font-size: 0.98rem; }

.vcard--short .vcard__media { aspect-ratio: 9 / 16; border-radius: var(--r-md); }
.vcard--short .vcard__play { width: 46px; height: 46px; margin: -23px 0 0 -23px; opacity: 0; transform: scale(0.85); }
.vcard--short .vcard__link:hover .vcard__play, .vcard--short .vcard__link:focus-visible .vcard__play { opacity: 1; transform: scale(1); }
.vcard--short .vcard__title { font-size: 0.95rem; }

.vplayer {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
	gap: clamp(20px, 3vw, 40px);
	align-items: start;
}
.vplayer__list { display: grid; gap: 18px; }
.vplayer__list .vcard + .vcard { padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 960px) {
	.vplayer { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.vcard--row .vcard__link { grid-template-columns: 128px minmax(0, 1fr); gap: 12px; }
}

/* Horizontal rail (Shorts) */
.rail { margin-top: clamp(48px, 6vw, 80px); }
.rail__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.rail__title { font-size: 1.35rem; }
.rail__nav { display: flex; gap: 8px; }
.rail__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: clamp(156px, 17vw, 208px);
	gap: 16px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 2px;
	padding-bottom: 12px;
	scrollbar-width: thin;
	scrollbar-color: var(--line-strong) transparent;
}
.rail__track > * { scroll-snap-align: start; }
.rail__track:focus-visible { outline-offset: 6px; }

/* ---------- Empty states ---------- */
.empty {
	display: grid;
	justify-items: center;
	gap: 10px;
	padding: clamp(40px, 6vw, 72px) 24px;
	text-align: center;
	border: 1.5px dashed var(--line-strong);
	border-radius: var(--r-lg);
}
.empty__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: var(--r-pill); background: var(--tan-soft); color: var(--tan-deep); }
.empty__icon .icon { width: 28px; height: 28px; }
.empty__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.empty__text { color: var(--muted); max-width: 48ch; }
.empty .btn, .empty .searchform { margin-top: 10px; }

/* ---------- Testimonials ---------- */
.testi__wall { columns: 3 300px; column-gap: 20px; }
.quote {
	break-inside: avoid;
	margin: 0 0 20px;
	padding: clamp(24px, 2.5vw, 32px);
	border-radius: var(--r-md);
	background: var(--surface);
	border: 1px solid var(--line);
	display: grid;
	gap: 18px;
}
.quote__mark { width: 30px; height: 30px; color: var(--tan); }
[dir="rtl"] .quote__mark { transform: scaleX(-1); }
.quote__text { margin: 0; }
.quote__text p { font-size: 1.06rem; line-height: 1.9; color: var(--ink); }
.quote__by { display: flex; align-items: center; gap: 12px; }
.quote__avatar {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: none;
	border-radius: var(--r-pill);
	background: var(--tan-soft);
	color: var(--tan-deep);
	font-family: var(--font-display);
	font-weight: 600;
}
.quote__who { display: grid; line-height: 1.5; }
.quote__name { font-weight: 600; color: var(--ink); }
.quote__detail { font-size: 0.86rem; color: var(--muted); }
.quote__detail a { display: inline-flex; align-items: center; gap: 4px; }
.quote__detail a:hover { color: var(--tan-deep); }
.quote__detail .icon { width: 0.95em; height: 0.95em; }
.quote--lead { background: var(--block-bg); border-color: transparent; }
.quote--lead .quote__text p { color: var(--block-fg); font-family: var(--font-display); font-weight: 400; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem); line-height: 1.8; }
.quote--lead .quote__name { color: var(--block-fg); }
.quote--lead .quote__detail { color: var(--block-muted); }
.quote--lead .quote__avatar { background: rgb(255 255 255 / 0.1); color: var(--block-fg); }

/* ---------- Visit: clinics, hours, booking ---------- */
.visit__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: start;
}
.visit__text { margin-top: 14px; color: var(--muted); font-size: 1.1rem; max-width: 46ch; }
.clinics { list-style: none; display: grid; gap: 14px; margin-block: 32px; }
.clinic {
	padding: 22px;
	border-radius: var(--r-md);
	background: var(--surface);
	border: 1px solid var(--line);
}
.clinic__head { display: flex; align-items: flex-start; gap: 14px; }
.clinic__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--r-pill); background: var(--tan-soft); color: var(--tan-deep); }
.clinic__icon .icon { width: 22px; height: 22px; }
.clinic__city { font-size: 1.25rem; }
.clinic__where { color: var(--muted); }
.clinic__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.hours {
	padding: 22px;
	border-radius: var(--r-md);
	border: 1px solid var(--line);
	background: var(--surface);
}
.hours__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hours__title { display: inline-flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.hours__title .icon { color: var(--tan-deep); }
.status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px;
	border-radius: var(--r-pill);
	font-size: 0.84rem;
	font-weight: 600;
	background: var(--surface-2);
	color: var(--muted);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.is-open { background: var(--tan-soft); color: var(--tan-deep); }
.status.is-open::before { box-shadow: 0 0 0 0 currentColor; animation: pulse 2.4s var(--ease) infinite; }
.hours__list { list-style: none; display: grid; }
.hours__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 12px;
	margin-inline: -12px;
	border-radius: var(--r-sm);
	font-size: 0.98rem;
}
.hours__day { color: var(--text); }
.hours__time { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.hours__row.is-closed .hours__time { color: var(--muted); font-weight: 400; }
.hours__row.is-today { background: var(--surface-2); }
.hours__row.is-today .hours__day { font-weight: 600; color: var(--ink); }
.hours__note { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }

.booking {
	padding: clamp(24px, 3.5vw, 44px);
	border-radius: var(--r-lg);
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-md);
}
.booking__head { margin-bottom: 26px; }
.booking__title { font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.9rem); }
.booking__sub { margin-top: 6px; color: var(--muted); }
.booking__alt {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	color: var(--muted);
}
.booking__alt .link-arrow .icon { color: var(--tan-deep); }
.booking__done { display: grid; justify-items: center; gap: 8px; padding: 32px 8px; text-align: center; }
.booking__done:focus { outline: none; }
.booking__done-icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: var(--r-pill); background: var(--tan-soft); color: var(--tan-deep); animation: pop 0.6s var(--ease) both; }
.booking__done-icon .icon { width: 34px; height: 34px; }
.booking__done-title { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--ink); }
.booking__done-text { color: var(--muted); max-width: 40ch; }

.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field__label { font-weight: 500; font-size: 0.95rem; color: var(--ink); }
.field__req { color: var(--tan-deep); }
.field__input {
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 1px solid var(--field-border);
	border-radius: var(--r-sm);
	background: var(--field);
	color: var(--ink);
	font-size: 1rem;
	line-height: 1.5;
	transition: border-color 0.2s, box-shadow 0.2s;
}
textarea.field__input { min-height: 104px; resize: vertical; }
/* Chevron: Phosphor "caret-down", masked so it follows the text colour in both themes. */
.field--select { position: relative; }
.field--select::after {
	content: "";
	position: absolute;
	inset-inline-end: 16px;
	bottom: 17px;
	width: 18px;
	height: 18px;
	background: var(--muted);
	pointer-events: none;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
select.field__input { appearance: none; -webkit-appearance: none; padding-inline-end: 46px; }
.field__input::placeholder { color: var(--muted); opacity: 0.75; }
.field__input:hover { border-color: var(--ink); }
.field__input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--tan-soft), 0 0 0 1px var(--ink); }
.field__input[type="date"] { direction: inherit; }
.field__help { font-size: 0.86rem; color: var(--muted); }
.field__error { font-size: 0.88rem; font-weight: 500; color: #a23b22; min-height: 0; }
.field__error:empty { display: none; }
.field.has-error .field__input { border-color: #a23b22; box-shadow: 0 0 0 3px rgb(162 59 34 / 0.12); }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .field__error { color: #f0a58f; }
	:root:not([data-theme="light"]) .field.has-error .field__input { border-color: #f0a58f; }
}
:root[data-theme="dark"] .field__error { color: #f0a58f; }
:root[data-theme="dark"] .field.has-error .field__input { border-color: #f0a58f; }

.form__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form__alert {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	padding: 12px 16px;
	border-radius: var(--r-sm);
	background: rgb(162 59 34 / 0.08);
	color: #8a2f19;
	font-weight: 500;
}
:root[data-theme="dark"] .form__alert { color: #f0a58f; background: rgb(240 165 143 / 0.1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form__alert { color: #f0a58f; background: rgb(240 165 143 / 0.1); } }
.form__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 26px; }
.form__note { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--muted); flex: 1 1 220px; }
.form__note .icon { color: var(--tan-deep); }

@media (max-width: 960px) {
	.visit__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.form__grid { grid-template-columns: 1fr; }
	.form__foot .btn { width: 100%; }
}

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: clamp(24px, 4vw, 48px) clamp(48px, 6vw, 88px); }
.page-hero__grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero--media .page-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.page-hero__title {
	font-size: clamp(2.35rem, 1.5rem + 3.2vw, 4rem);
	line-height: 1.2;
	font-weight: 650;
	animation: rise 0.9s var(--ease) both;
	animation-delay: calc(var(--i, 0) * 90ms + 60ms);
}
.page-hero__copy > .kicker, .page-hero__lead, .page-hero__actions { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
.page-hero__lead { margin-top: 18px; max-width: 56ch; font-size: clamp(1.06rem, 1rem + 0.35vw, 1.22rem); color: var(--muted); }
.page-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.page-hero__media { animation: unveil 1.1s var(--ease) 0.1s both; }
.page-hero--treatment .page-hero__title { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); }
.plate--hero { width: min(100%, 360px); aspect-ratio: 1; margin-inline-start: auto; border-radius: var(--r-lg); }
.portrait { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: var(--shadow-lg); max-width: 460px; margin-inline-start: auto; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin-bottom: 26px; font-size: 0.9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line-strong); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }
@media (max-width: 860px) {
	.page-hero--media .page-hero__grid { grid-template-columns: 1fr; }
	.portrait { margin-inline: 0; max-width: 380px; aspect-ratio: 1; }
	.plate--hero { margin-inline: 0; width: 200px; }
}

/* ---------- About page ---------- */
.bio__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.bio__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.aside-card { padding: 24px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.aside-card__title { font-size: 1.1rem; margin-bottom: 14px; }
.aside-card--ink { background: var(--block-bg); border-color: transparent; color: var(--block-muted); display: grid; gap: 12px; }
.aside-card--ink .aside-card__title { color: var(--block-fg); margin-bottom: 0; font-size: 1.25rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 0.92rem; font-weight: 500; color: var(--ink); }
.aside-list { list-style: none; display: grid; gap: 12px; }
.aside-list li { display: flex; gap: 10px; align-items: flex-start; }
.aside-list .icon { color: var(--tan-deep); margin-top: 6px; }
.aside-list strong { color: var(--ink); }

.quals__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.qual {
	position: relative;
	display: grid;
	gap: 10px;
	align-content: start;
	padding: clamp(24px, 3vw, 36px);
	border-radius: var(--r-md);
	background: var(--surface);
	border: 1px solid var(--line);
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.qual:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.qual__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-pill); background: var(--tan-soft); color: var(--tan-deep); }
.qual__icon .icon { width: 24px; height: 24px; }
.qual__token { font-family: var(--font-display); font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.6rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); margin-top: 8px; }
[dir="rtl"] .qual__token { text-align: right; }
.qual__title { font-family: var(--font-body); font-size: 1.05rem; font-weight: 500; line-height: 1.7; }
.qual__place { color: var(--muted); }

.career__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.career__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3.4; }
.career__media img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 30%; }
.career__copy .timeline { margin-top: 32px; }
@media (max-width: 900px) {
	.bio__grid, .career__grid { grid-template-columns: 1fr; }
	.bio__aside { position: static; }
	.quals__grid { grid-template-columns: 1fr; }
}

/* ---------- Prose (editor content) ---------- */
.prose { max-width: 72ch; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose h4 { font-size: 1.12rem; margin-top: 1.4em; }
.prose a:not(.wp-element-button):not(.btn) { color: var(--tan-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose a:not(.wp-element-button):not(.btn):hover { color: var(--ink); }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose ul li::marker { color: var(--tan); }
.prose ol li::marker { color: var(--tan-deep); font-weight: 600; }
.prose blockquote, .prose .wp-block-quote {
	margin-inline: 0;
	padding: 6px 22px;
	border-inline-start: 3px solid var(--tan);
	font-family: var(--font-display);
	font-size: 1.2rem;
	color: var(--ink);
}
.prose img, .prose .wp-block-image img { border-radius: var(--r-md); }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: 8px; font-size: 0.88rem; color: var(--muted); text-align: center; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }
.prose .wp-block-button__link, .prose .wp-element-button {
	display: inline-flex;
	padding: 12px 24px;
	border-radius: var(--r-pill);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--font-display);
	font-weight: 500;
	text-decoration: none;
}
.prose .alignwide { max-width: min(100vw - var(--gutter) * 2, 1040px); }
.prose--lead > p:first-child { font-family: var(--font-display); font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); font-weight: 400; line-height: 1.8; color: var(--ink); }
.prose--page { margin-inline: auto; }
.page-cover { margin: 0 0 clamp(32px, 4vw, 56px); border-radius: var(--r-lg); overflow: hidden; }
.page-cover img { width: 100%; }

/* ---------- Single treatment ---------- */
.article__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.article { font-size: 1.1rem; }
.article__note {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-top: 2.2em !important;
	padding: 14px 18px;
	border-radius: var(--r-sm);
	background: var(--surface-2);
	font-size: 0.92rem;
	color: var(--muted);
}
.article__note .icon { margin-top: 5px; color: var(--tan-deep); }
.article__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.related { list-style: none; display: grid; gap: 4px; }
.related a { display: flex; align-items: center; gap: 12px; padding: 8px; margin-inline: -8px; border-radius: var(--r-sm); font-weight: 500; line-height: 1.55; color: var(--ink); transition: background-color 0.2s; }
.related a:hover { background: var(--surface-2); }
.related__plate { width: 52px; height: 52px; flex: none; border-radius: var(--r-sm); }
@media (max-width: 960px) {
	.article__grid { grid-template-columns: 1fr; }
	.article__aside { position: static; }
}

/* ---------- Treatments index ---------- */
.filterbar {
	position: sticky;
	top: var(--header-h);
	z-index: 20;
	padding-block: 14px;
	margin-bottom: clamp(24px, 3vw, 40px);
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-block: 1px solid var(--line);
}
.filterbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.pills::-webkit-scrollbar { display: none; }
.pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	min-height: 42px;
	padding: 8px 16px;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-pill);
	background: var(--surface);
	font-family: var(--font-display);
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--text);
	transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--ease);
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill:active { transform: scale(0.97); }
.pill.is-active { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.pill__n { min-width: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--muted); font-size: 0.78rem; text-align: center; line-height: 20px; }
.pill.is-active .pill__n { background: rgb(255 255 255 / 0.16); color: inherit; }

.search { position: relative; display: flex; align-items: center; flex: 0 1 300px; }
.search .icon { position: absolute; inset-inline-start: 16px; color: var(--muted); pointer-events: none; }
.search input {
	width: 100%;
	min-height: 44px;
	padding: 10px 16px;
	padding-inline-start: 44px;
	border: 1px solid var(--field-border);
	border-radius: var(--r-pill);
	background: var(--field);
	color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--tan-soft); }
.search input::placeholder { color: var(--muted); opacity: 0.8; }
.search--hero { flex: 1 1 280px; max-width: 360px; }
.searchform { display: flex; gap: 10px; width: min(100%, 520px); }
.searchform .search { flex: 1; }
@media (max-width: 820px) {
	.filterbar__inner { flex-direction: column; align-items: stretch; }
	.search { flex-basis: auto; }
}

.tgroup { padding-block: clamp(20px, 3vw, 36px); scroll-margin-top: calc(var(--header-h) + 90px); }
.tgroup + .tgroup { border-top: 1px solid var(--line); }
.tgroup__head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; max-width: 760px; }
.tgroup__plate { width: 84px; height: 84px; flex: none; }
.tgroup__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.tgroup__text { margin-top: 4px; color: var(--muted); }
.tgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tcard {
	position: relative;
	display: grid;
	grid-template-columns: 128px minmax(0, 1fr);
	gap: 20px;
	align-items: center;
	padding: 16px;
	border-radius: var(--r-md);
	background: var(--surface);
	border: 1px solid var(--line);
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
}
.tcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.tcard:hover .plate img { transform: scale(1.07); }
.tcard:focus-within { border-color: var(--ink); }
.tcard__plate { aspect-ratio: 1; border-radius: var(--r-sm); }
.tcard__title { font-size: 1.12rem; line-height: 1.55; }
.tcard__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tcard__title a:focus-visible { outline: none; }
.tcard__text { margin-top: 6px; color: var(--muted); font-size: 0.96rem; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tcard__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-family: var(--font-display); font-size: 0.9rem; font-weight: 500; color: var(--tan-deep); }
.tcard__more .icon { transition: transform 0.35s var(--ease); }
.tcard:hover .tcard__more .icon-arrow-left { transform: translateX(-4px); }
.tcard.is-hidden, .tgroup.is-hidden { display: none; }
@media (max-width: 860px) {
	.tgrid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
	.tcard { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 12px; }
	.tgroup__plate { width: 64px; height: 64px; }
}

/* ---------- Videos page ---------- */
.vlib__feature {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
	margin-bottom: clamp(48px, 6vw, 80px);
}
.vlib__feature .vcard__body { display: none; }
.vlib__feature-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.45; }
.vlib__feature-desc { margin-top: 12px; color: var(--muted); }
.vlib__feature-meta { margin-block: 14px 24px; font-size: 0.92rem; color: var(--muted); }
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px) 20px; }
.sgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 16px; }
.vlib__more { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 48px); }
.vcard.is-hidden { display: none; }
.vcard--skeleton .vcard__media, .vcard--skeleton .vcard__title { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.vcard--skeleton .vcard__title { height: 1.2em; width: 80%; border-radius: 6px; }
@media (max-width: 1024px) {
	.sgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.vlib__feature { grid-template-columns: 1fr; }
	.vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
	.vgrid { grid-template-columns: 1fr; }
	.sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Contact page ---------- */
.quick { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.quick__item {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 14px;
	align-items: center;
	height: 100%;
	padding: 18px;
	border-radius: var(--r-md);
	background: var(--surface);
	border: 1px solid var(--line);
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.quick__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.quick__icon { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-pill); background: var(--tan-soft); color: var(--tan-deep); transition: background-color 0.3s, color 0.3s; }
.quick__item:hover .quick__icon { background: var(--btn-bg); color: var(--btn-fg); }
.quick__icon .icon { width: 22px; height: 22px; }
.quick__item > span:not(.quick__icon) { min-width: 0; }
.quick__label { font-size: 0.88rem; color: var(--muted); }
.quick__value { font-family: var(--font-display); font-weight: 500; font-size: 0.98rem; color: var(--ink); text-align: start; overflow-wrap: anywhere; }
[dir="rtl"] .quick__value { text-align: right; }

.contact-main__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-top: clamp(40px, 5vw, 64px); }
.contact-main__side { position: sticky; top: calc(var(--header-h) + 24px); }
.maps__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.map-card { display: grid; gap: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.map-card .clinic { border: 0; border-radius: 0; }
.map-card__map {
	position: relative;
	aspect-ratio: 16 / 9;
	background:
		radial-gradient(circle at 30% 40%, var(--tan-soft), transparent 40%),
		repeating-linear-gradient(0deg, transparent 0 38px, var(--line) 38px 39px),
		repeating-linear-gradient(90deg, transparent 0 38px, var(--line) 38px 39px),
		var(--surface-2);
	display: grid;
	place-items: center;
}
.map-card__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card__load { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-strong); font-weight: 500; color: var(--ink); }
@media (max-width: 900px) {
	.contact-main__grid { grid-template-columns: 1fr; }
	.contact-main__side { position: static; }
}

/* ---------- CTA band ---------- */
.cta-band {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
	padding: clamp(32px, 5vw, 64px);
	border-radius: var(--r-lg);
	background: var(--block-bg);
	color: var(--block-muted);
	overflow: hidden;
	isolation: isolate;
}
.cta-band::before {
	content: "";
	position: absolute;
	z-index: -1;
	width: 520px;
	aspect-ratio: 1;
	inset-inline-end: -160px;
	top: -260px;
	border-radius: 50%;
	border: 1.5px solid rgb(201 160 132 / 0.35);
	box-shadow: inset 0 0 0 70px rgb(201 160 132 / 0.06);
}
.cta-band__title { color: var(--block-fg); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.cta-band__text { margin-top: 10px; max-width: 52ch; font-size: 1.08rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Posts ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { display: grid; gap: 16px; align-content: start; }
.post-card__media { display: block; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__meta { font-size: 0.86rem; color: var(--muted); }
.post-card__title { font-size: 1.25rem; line-height: 1.5; margin-block: 4px 8px; }
.post-card__title a:hover { color: var(--tan-deep); }
.post-card__text { color: var(--muted); }
.navigation.pagination { margin-top: 48px; }
.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-weight: 500; color: var(--ink); }
.page-numbers.current { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.page-numbers .icon { width: 18px; height: 18px; }
.post-navigation .nav-links { justify-content: space-between; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 72ch; margin-inline: auto; }
.post-navigation a { display: grid; gap: 2px; }
.post-nav__label { font-size: 0.86rem; color: var(--muted); }
.post-nav__title { font-family: var(--font-display); font-weight: 500; color: var(--ink); }

/* ---------- 404 ---------- */
.notfound__inner { display: grid; justify-items: center; text-align: center; gap: 14px; max-width: 640px; }
.notfound__code { font-family: var(--font-display); font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 200; line-height: 1; color: var(--tan); letter-spacing: -0.04em; }
.notfound__title { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); }
.notfound__text { color: var(--muted); }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(24px, 4vw, 48px); padding-block: clamp(56px, 7vw, 88px) 28px; background: var(--surface-2); color: var(--text); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.footer__brand { display: grid; gap: 18px; align-content: start; }
.footer__brand p { color: var(--muted); max-width: 36ch; }
.footer__brand .brand__img { height: 60px; }
.footer__title { font-size: 1rem; margin-bottom: 16px; }
.footer__list { list-style: none; display: grid; gap: 10px; }
.footer__list a { color: var(--text); transition: color 0.2s; }
.footer__list a:hover { color: var(--tan-deep); }
.footer__clinics li { display: grid; gap: 0; line-height: 1.6; }
.footer__clinics strong { color: var(--ink); font-weight: 600; }
.footer__clinics span { color: var(--muted); font-size: 0.94rem; }
.footer__clinics a { font-size: 0.94rem; justify-self: start; }
.footer__hours li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; }
.footer__hours li span:last-child { color: var(--ink); font-weight: 500; }
.footer__mail { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.95rem; }
.footer__mail:hover { color: var(--tan-deep); }
.footer__mail .icon { color: var(--tan-deep); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line-strong); font-size: 0.88rem; color: var(--muted); }
@media (max-width: 960px) {
	.footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.footer__grid { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp button ---------- */
.wa-fab {
	position: fixed;
	z-index: 45;
	bottom: max(20px, env(safe-area-inset-bottom));
	inset-inline-end: 20px;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: var(--r-pill);
	background: var(--btn-bg);
	color: var(--btn-fg);
	box-shadow: 0 16px 36px -14px rgb(18 23 21 / 0.6);
	transition: transform 0.4s var(--ease), background-color 0.25s;
}
.wa-fab:hover { transform: translateY(-3px) scale(1.04); background: var(--btn-hover); }
.wa-fab:active { transform: scale(0.96); }
.wa-fab .icon { width: 28px; height: 28px; }

/* ---------- Video modal (native <dialog>) ---------- */
.vmodal {
	width: min(100% - 32px, 1100px);
	max-width: none;
	max-height: none;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}
.vmodal::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vmodal[open] { animation: pop 0.45s var(--ease) both; }
.vmodal__inner { position: relative; }
.vmodal__frame { aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.vmodal__frame iframe { width: 100%; height: 100%; border: 0; }
.vmodal__title { margin-top: 14px; font-family: var(--font-display); font-weight: 500; color: #f3f4f2; text-align: center; }
.vmodal__close { position: absolute; top: -56px; inset-inline-end: 0; background: rgb(255 255 255 / 0.12); color: #fff; }
.vmodal__close:hover { background: rgb(255 255 255 / 0.22); }
.vmodal.is-short { width: min(100% - 32px, 400px); }
.vmodal.is-short .vmodal__frame { aspect-ratio: 9 / 16; max-height: 78dvh; margin-inline: auto; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { opacity: 0; clip-path: inset(18% 0 0 0 round var(--r-lg)); transform: translateY(24px); } to { opacity: 1; clip-path: inset(0 0 0 0 round var(--r-lg)); transform: none; } }
@keyframes zoomout { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes ring { from { opacity: 0; transform: scale(0.82) rotate(-12deg); } to { opacity: 0.6; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes reveal-safety { to { opacity: 1; transform: none; } }

.hero__copy > * { animation: rise 0.95s var(--ease) both; animation-delay: calc(var(--i, 0) * 100ms + 120ms); }
.hero__frame { animation: unveil 1.3s var(--ease) 0.15s both; }
.hero__frame img { animation: zoomout 1.8s var(--ease) 0.15s both; }
.hero__ring { animation: ring 1.6s var(--ease) 0.5s both; }

/* Scroll reveal (IntersectionObserver adds .is-in). A delayed animation guarantees visibility if scripts fail. */
html.js [data-reveal]:not(.is-in) {
	opacity: 0;
	transform: translateY(26px);
	animation: reveal-safety 0.01s linear 4s forwards;
}
html.js [data-reveal] {
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
	transition-delay: calc(var(--i, 0) * 90ms);
}

/* Gentle parallax on the theatre photograph, where supported (no scroll listeners). */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) and (min-width: 641px) {
		.why__img img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
		[dir="ltr"] .why__img img { animation-name: drift-mirrored; }
	}
}
@keyframes drift { from { transform: scale(1.12) translateY(-4%); } to { transform: scale(1.12) translateY(4%); } }
@keyframes drift-mirrored { from { transform: scaleX(-1) scale(1.12) translateY(-4%); } to { transform: scaleX(-1) scale(1.12) translateY(4%); } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		animation-delay: 0ms !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0ms !important;
		scroll-behavior: auto !important;
	}
	html.js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
	.status.is-open::before { animation: none; }
}

/* ---------- Builder pages (legacy Elementor content) ---------- */
.is-builder-page .site-main > .elementor { width: 100%; }

/* ---------- Print ---------- */
@media print {
	.site-header, .sheet, .wa-fab, .vmodal, .filterbar, .cta-band, .site-footer .socials { display: none !important; }
	body { background: #fff; color: #000; }
	html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
