/* ==========================================================================
   Anita — main stylesheet
   Architectural grid (2px rules, square corners, flush-start alignment)
   on a warm neutral palette. RTL-first: every horizontal value is a logical
   property, so the same rules serve LTR.

   1  Tokens              7  Home sections
   2  Base                8  Treatment explorer
   3  Layout              9  Treatment page
   4  Components         10  Doctors, profile, about, contact, results
   5  Header & menu      11  Journal & prose
   6  Footer & bars      12  Motion
   ========================================================================== */

/* 1 — Tokens
   ========================================================================== */
:root {
	--ground: #f4f0ea;
	--surface: #e9e3da;
	--surface-2: #ded6cb;
	--ink: #1f1d1b;
	--muted: #6b645c;
	--accent: #9a4b32;
	--accent-600: #83402a;
	--accent-700: #6e3523;
	--accent-100: #f1e2da;
	--dark: #151412;
	--on-dark: #f4f0ea;
	--on-dark-muted: #b3aaa0;
	--rule: color-mix(in srgb, var(--ink) 40%, transparent);
	--rule-soft: color-mix(in srgb, var(--ink) 16%, transparent);
	--rule-dark: color-mix(in srgb, var(--on-dark) 22%, transparent);

	--font: "Vazirmatn FD", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

	--fs-display: clamp(2.625rem, 1.5rem + 5vw, 6.25rem);
	--fs-h1: clamp(2.25rem, 1.5rem + 3.3vw, 4.5rem);
	--fs-h2: clamp(1.875rem, 1.35rem + 2.3vw, 3.5rem);
	--fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
	--fs-lead: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
	--fs-body: 1.0625rem;
	--fs-small: 0.875rem;
	--fs-kicker: 0.8125rem;

	--max: 1440px;
	--gutter: clamp(1rem, 0.4rem + 2.6vw, 3rem);
	--pad: max(var(--gutter), calc((100% - var(--max)) / 2));
	--gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);
	--section: clamp(4rem, 2.4rem + 6vw, 8.5rem);
	--header-h: 64px;
	--bar-h: 0px;

	--ease: cubic-bezier(0.2, 0.7, 0.1, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (min-width: 1024px) {
	:root { --header-h: 76px; }
}

@media (max-width: 1023.98px) {
	:root { --bar-h: 56px; }
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font-family: var(--font);
	font-size: var(--fs-body);
	font-weight: 400;
	line-height: 1.9;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	padding-bottom: var(--bar-h);
	overflow-x: clip; /* safety net; clip (unlike hidden) keeps position: sticky working */
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-weight: 300;
	line-height: 1.2;
	text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
a:hover { color: var(--accent); }

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

ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

figure { margin: 0; }
dl, dd { margin: 0; }
address { font-style: normal; }
blockquote { margin: 0; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }

[hidden] { display: none !important; }

[dir="ltr"] .icon-arrow { transform: scaleX(-1); }

.screen-reader-text {
	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:focus {
	position: fixed !important;
	inset-block-start: 0.75rem;
	inset-inline-start: 0.75rem;
	z-index: 100;
	width: auto;
	height: auto;
	padding: 0.75rem 1.25rem;
	clip: auto;
	background: var(--ink);
	color: var(--ground);
}

.site-main:focus { outline: none; }

/* 3 — Layout
   ========================================================================== */
.section {
	padding: var(--section) var(--pad);
}

.section + .section,
.page-head + .section:not(.section--flush) {
	border-top: 2px solid var(--rule);
}

.section--flush { padding-top: clamp(2rem, 1rem + 3vw, 4rem); }

.section__head {
	display: grid;
	gap: 1rem;
	margin-bottom: clamp(2rem, 1rem + 3vw, 4rem);
	max-width: 52rem;
}

.section__head--split {
	max-width: none;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 1rem 2rem;
}

.section__title {
	font-size: var(--fs-h2);
	font-weight: 300;
	line-height: 1.15;
}

.display {
	font-size: var(--fs-display);
	font-weight: 300;
	line-height: 1.08;
}

.grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gap);
}

.bleed .media { aspect-ratio: 21 / 9; }
.bleed--short .media { aspect-ratio: 24 / 9; }

@media (max-width: 767.98px) {
	.bleed .media,
	.bleed--short .media { aspect-ratio: 4 / 3; }
	.section__head--split { grid-template-columns: 1fr; }
}

/* 4 — Components
   ========================================================================== */

/* Kicker: "03 — Label" */
.kicker {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	margin: 0;
	font-size: var(--fs-kicker);
	font-weight: 500;
	line-height: 1.6;
	color: var(--accent);
}

.kicker__num {
	display: inline-flex;
	align-items: baseline;
	gap: 0.75rem;
}

.kicker__num::after {
	content: "";
	display: inline-block;
	width: 2rem;
	height: 1px;
	background: currentColor;
	transform: translateY(-0.3em);
}

/* Buttons — labels flush to the start edge */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.75rem;
	min-height: 48px;
	padding: 0.625rem 1.25rem;
	border: 1px solid transparent;
	border-radius: 0;
	background: transparent;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.3;
	text-align: start;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn .icon { flex: none; transition: transform 0.35s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(-4px); }
[dir="ltr"] .btn:hover .icon-arrow { transform: scaleX(-1) translateX(-4px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-600); color: #fff; }
.btn-primary:active { background: var(--accent-700); }

.btn-secondary { border-color: var(--rule); color: var(--ink); }
.btn-secondary:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }

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

.btn-outline-light { border-color: color-mix(in srgb, #fff 55%, transparent); color: #fff; }
.btn-outline-light:hover { background: color-mix(in srgb, #fff 12%, transparent); color: #fff; }

.btn-sm { min-height: 40px; padding: 0.375rem 1rem; font-size: 0.875rem; }
.btn-block { display: flex; width: 100%; justify-content: space-between; }

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 0.25rem;
}

.link-arrow .icon { transition: transform 0.35s var(--ease); }
.link-arrow:hover .icon-arrow { transform: translateX(-4px); }

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--rule);
	background: transparent;
	transition: background-color 0.25s var(--ease);
}

.icon-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
[data-hscroll-prev] .icon,
[data-quotes-prev] .icon { transform: scaleX(-1); }
[dir="ltr"] [data-hscroll-prev] .icon,
[dir="ltr"] [data-quotes-prev] .icon { transform: none; }

/* Chips */
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.chip {
	min-height: 40px;
	padding: 0.375rem 1rem;
	border: 1px solid var(--rule);
	background: transparent;
	font-size: var(--fs-small);
	font-weight: 500;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.chip:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }

/* Media and placeholders */
.media {
	position: relative;
	overflow: hidden;
	background: var(--surface);
	aspect-ratio: 4 / 3;
}

.media__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.media--ph {
	--ph-a: #ddd3c6;
	--ph-b: #e9e1d6;
	background: var(--ph-a);
}

.media--ph::before {
	/* An arch — the clinic's architectural motif — until photography arrives. */
	content: "";
	position: absolute;
	inset: 20% 24% -12%;
	border-radius: 999px 999px 0 0;
	background: var(--ph-b);
}

.media--ph::after {
	content: "";
	position: absolute;
	inset: 12px;
	border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
	pointer-events: none;
}

.ph-2 { --ph-a: #cfc2b2; --ph-b: #dcd1c3; }
.ph-3 { --ph-a: #e6ded3; --ph-b: #d6cabb; }
.ph-4 { --ph-a: #bfb1a0; --ph-b: #cdbfae; }
.ph-5 { --ph-a: #d9d1c8; --ph-b: #c9bdb0; }

.ph__label {
	position: absolute;
	inset-block-end: 1.25rem;
	inset-inline-start: 1.5rem;
	z-index: 1;
	font-size: var(--fs-small);
	font-weight: 500;
	color: color-mix(in srgb, var(--ink) 55%, transparent);
}

/* Lists */
.rule-list { list-style: none; }
.rule-list li {
	padding-block: 0.875rem;
	border-bottom: 1px solid var(--rule-soft);
}
.rule-list li:first-child { border-top: 1px solid var(--rule-soft); }

.rule-list--links li { padding: 0; }
.rule-list--links a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding-block: 0.875rem;
	text-decoration: none;
}
.rule-list--large a { padding-block: 1.25rem; font-size: var(--fs-h3); font-weight: 300; }

.numbered-list {
	list-style: none;
	counter-reset: item;
}

.numbered-list li {
	counter-increment: item;
	display: grid;
	grid-template-columns: 3rem 1fr;
	padding-block: 0.875rem;
	border-bottom: 1px solid var(--rule-soft);
}

.numbered-list li::before {
	content: counter(item, decimal-leading-zero);
	color: var(--accent);
	font-weight: 500;
	font-size: var(--fs-small);
	padding-top: 0.2em;
}

.numbered-list--large li { font-size: var(--fs-lead); padding-block: 1.25rem; }

.link-list { list-style: none; display: grid; }
.link-list a { display: block; padding-block: 0.625rem; border-bottom: 1px solid var(--rule-soft); text-decoration: none; }
.link-list .link-arrow { display: inline-flex; border-bottom: 1px solid currentColor; margin-top: 0.75rem; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags a {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background: var(--surface);
	font-size: var(--fs-small);
	text-decoration: none;
}
.tags a:hover { background: var(--accent-100); }

/* Facts and stats */
.facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	border-top: 2px solid var(--rule);
	margin-block: 1.5rem;
}

.facts > div {
	padding-block: 0.875rem;
	padding-inline-end: 1rem;
	border-bottom: 1px solid var(--rule-soft);
}

.facts dt { font-size: var(--fs-kicker); color: var(--muted); }
.facts dd { font-weight: 500; }

.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	margin-top: 2.5rem;
	border-top: 2px solid var(--rule);
}

.stats > div {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 0.25rem;
	padding: 1.25rem 0;
	padding-inline-end: 1rem;
}

.stats > div + div {
	padding-inline-start: 1.25rem;
	border-inline-start: 1px solid var(--rule-soft);
}

.stats dd { font-size: var(--fs-h3); font-weight: 300; line-height: 1.3; }
.stats dt { font-size: var(--fs-small); color: var(--muted); }

.stats--strip {
	margin: 0;
	padding-inline: var(--pad);
	border-bottom: 2px solid var(--rule);
}

.stats--strip dd { font-size: var(--fs-h1); line-height: 1; }

@media (max-width: 767.98px) {
	.stats { grid-template-columns: 1fr 1fr; }
	.stats > div + div { padding-inline-start: 0; border-inline-start: 0; }
	.stats > div:nth-child(even) { padding-inline-start: 1rem; border-inline-start: 1px solid var(--rule-soft); }
	.stats > div:nth-child(n + 3) { border-top: 1px solid var(--rule-soft); }
}

/* Hours */
.hours > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.5rem;
	border-bottom: 1px solid var(--rule-soft);
}

/* Accordion (native details) */
.accordion { border-bottom: 1px solid var(--rule); }
.accordion:first-child { border-top: 1px solid var(--rule); }

.accordion summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	min-height: 56px;
	padding-block: 1rem;
	cursor: pointer;
	list-style: none;
	font-weight: 500;
}

.accordion summary::-webkit-details-marker { display: none; }
.accordion__icon { flex: none; transition: transform 0.35s var(--ease); }
.accordion[open] > summary .accordion__icon { transform: rotate(45deg); }
.accordion[open] > summary { color: var(--accent); }
.accordion__panel { padding-bottom: 1.5rem; }

/* Breadcrumbs */
.breadcrumbs ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: var(--fs-small);
	color: var(--muted);
}

.breadcrumbs li + li::before { content: "/"; margin-inline-end: 0.5rem; opacity: 0.6; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* Page head */
.page-head {
	display: grid;
	gap: 1.25rem;
	align-content: end;
	padding: clamp(2rem, 1rem + 4vw, 5rem) var(--pad) clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
	border-bottom: 2px solid var(--rule);
}

.page-head .breadcrumbs { margin-bottom: clamp(1rem, 0.5rem + 2vw, 2.5rem); }
.page-head__title { max-width: 18ch; font-size: var(--fs-h1); }
.page-head--tall { min-height: min(62svh, 640px); }
.page-head--tall .page-head__title { font-size: var(--fs-display); max-width: 16ch; }
.page-head__lead { max-width: 40rem; font-size: var(--fs-lead); color: var(--muted); }
.page-head .search-form { max-width: 32rem; }

/* Search form */
.search-form { display: flex; gap: 0.5rem; }
.search-form label { flex: 1; }
.search-field,
.anita-form input[type="text"],
.anita-form input[type="tel"],
.anita-form textarea,
.explorer select {
	width: 100%;
	min-height: 48px;
	padding: 0.625rem 1rem;
	border: 1px solid var(--rule);
	border-radius: 0;
	background: var(--surface);
	font-size: 1rem;
	line-height: 1.5;
	transition: border-color 0.2s var(--ease);
}

.search-field:hover,
.anita-form input:hover,
.anita-form textarea:hover,
.explorer select:hover { border-color: color-mix(in srgb, var(--ink) 60%, transparent); }

.search-field:focus-visible,
.anita-form input:focus-visible,
.anita-form textarea:focus-visible,
.explorer select:focus-visible { border-color: var(--accent); outline-offset: 0; }

.search-submit {
	min-height: 48px;
	padding: 0 1.25rem;
	border: 0;
	background: var(--ink);
	color: var(--ground);
	font-weight: 500;
}

/* Consultation form (markup from Anita Core) */
.anita-form { display: grid; gap: 1.25rem; }
.anita-form__field { display: grid; gap: 0.375rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.anita-form__field > label,
.anita-form__field > legend { font-size: var(--fs-small); font-weight: 500; padding: 0; margin-bottom: 0.375rem; }
.anita-form textarea { min-height: 7rem; resize: vertical; }
.anita-form__field.is-invalid input { border-color: var(--accent-700); border-width: 2px; }

.anita-form__hp {
	position: absolute !important;
	inset-inline-start: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.anita-form__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.anita-chip { position: relative; cursor: pointer; }
.anita-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.anita-chip span {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0.375rem 1rem;
	border: 1px solid var(--rule);
	font-size: var(--fs-small);
	font-weight: 500;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.anita-chip:hover span { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.anita-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.anita-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.anita-form__actions { display: grid; gap: 0.75rem; justify-items: start; }
.anita-form__note { font-size: var(--fs-small); color: var(--muted); max-width: 32rem; }

.anita-form__notice {
	padding: 1rem 1.25rem;
	border-inline-start: 4px solid var(--accent);
	background: var(--surface);
}
.anita-form__notice ul { padding-inline-start: 1.25rem; margin-top: 0.5rem; }
.anita-form__notice.is-error { border-color: var(--accent-700); }
.anita-form__notice-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }

.anita-form--compact { gap: 1rem; }
.anita-form--compact .anita-form__note { font-size: 0.8125rem; }
.anita-form--compact .btn { width: 100%; justify-content: space-between; }

/* 5 — Header & menu
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--ground);
	border-bottom: 2px solid var(--rule);
}

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 2rem;
	height: var(--header-h);
	padding-inline: var(--pad);
}

.brand {
	display: inline-flex;
	align-items: baseline;
	gap: 0.625rem;
	text-decoration: none;
	color: var(--ink);
	white-space: nowrap;
}

.brand:hover { color: var(--ink); }
.brand__mark { font-size: 1.625rem; font-weight: 700; line-height: 1; }
.brand__sub { font-size: var(--fs-kicker); font-weight: 500; color: var(--muted); }
.custom-logo { width: auto; max-height: calc(var(--header-h) - 24px); }

.primary-nav { margin-inline-start: auto; }
.primary-nav__list { list-style: none; display: flex; gap: clamp(1rem, 0.2rem + 1.6vw, 2.25rem); }
.primary-nav__list a {
	position: relative;
	display: block;
	padding-block: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
}
.primary-nav__list a::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: var(--origin, right);
	transition: transform 0.35s var(--ease);
}
[dir="ltr"] .primary-nav__list a::after { --origin: left; }
.primary-nav__list a:hover::after,
.primary-nav__list .current-menu-item > a::after,
.primary-nav__list .current_page_item > a::after,
.primary-nav__list .current-menu-ancestor > a::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 1rem; }
.site-header__phone { font-size: var(--fs-small); font-weight: 500; text-decoration: none; }

.menu-toggle {
	display: none;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: inherit;
}

@media (max-width: 1023.98px) {
	.primary-nav,
	.site-header__phone { display: none; }
	.menu-toggle { display: inline-grid; }
	.site-header__actions { margin-inline-start: auto; gap: 0.5rem; }
}

@media (max-width: 599.98px) {
	.site-header__book { display: none; }
	.brand__sub { display: none; }
}

/* Full-screen menu (native <dialog>: focus trap and Esc for free) */
.menu-overlay {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--dark);
	color: var(--on-dark);
}

.menu-overlay::backdrop { background: var(--dark); }
.menu-overlay[open] { animation: menu-in 0.45s var(--ease) both; }

@keyframes menu-in {
	from { opacity: 0; transform: translateY(-12px); }
	to { opacity: 1; transform: none; }
}

.menu-overlay__inner {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	min-height: 100%;
	padding: 0 var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom));
}

.menu-overlay__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: var(--header-h);
	border-bottom: 1px solid var(--rule-dark);
}

.menu-overlay .brand,
.menu-overlay .brand:hover { color: var(--on-dark); }
.menu-overlay .brand__sub { color: var(--on-dark-muted); }
.menu-overlay .menu-toggle { display: inline-grid; }

.menu-overlay__list { list-style: none; }
.menu-overlay__list a {
	display: block;
	padding-block: 0.375rem;
	font-size: clamp(2.25rem, 1.5rem + 5vw, 3.75rem);
	font-weight: 300;
	line-height: 1.25;
	text-decoration: none;
}
.menu-overlay__list a:hover,
.menu-overlay__list .current-menu-item > a { color: var(--accent-100); }

.menu-overlay__areas { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.menu-overlay__areas a {
	display: inline-block;
	padding: 0.375rem 0.875rem;
	border: 1px solid var(--rule-dark);
	font-size: var(--fs-small);
	text-decoration: none;
}
.menu-overlay__areas a:hover { background: var(--on-dark); color: var(--dark); }

.menu-overlay__bottom { margin-top: auto; display: grid; gap: 1.25rem; }
.menu-overlay__contact {
	list-style: none;
	display: flex;
	gap: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--rule-dark);
	font-size: var(--fs-small);
}
.menu-overlay__contact a { text-decoration: none; color: var(--on-dark-muted); }
.menu-overlay__contact a:hover { color: var(--on-dark); }

/* 6 — Footer & bars
   ========================================================================== */
.site-footer {
	background: var(--dark);
	color: var(--on-dark);
	padding: var(--section) var(--pad) 1.5rem;
	overflow: hidden;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent-100); }
.site-footer .brand,
.site-footer .brand:hover { color: var(--on-dark); }
.site-footer .brand__sub { color: var(--on-dark-muted); }

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
	gap: 2.5rem var(--gap);
}

.site-footer__brand p { margin-top: 1rem; color: var(--on-dark-muted); max-width: 22rem; }
.site-footer__label { font-size: var(--fs-kicker); font-weight: 500; color: var(--on-dark-muted); margin-bottom: 1rem; }
.site-footer__list { list-style: none; display: grid; gap: 0.5rem; }
.site-footer .hours > div { border-color: var(--rule-dark); }
.site-footer__social { list-style: none; display: flex; gap: 0.75rem; margin-top: 1.25rem; }

.site-footer__word {
	margin: clamp(3rem, 2rem + 4vw, 6rem) 0 0;
	font-size: clamp(6rem, 2rem + 22vw, 22rem);
	font-weight: 300;
	line-height: 0.8;
	color: #26231f;
	user-select: none;
}

/* Decorative: drawn from a pseudo-element so it is not text content. */
.site-footer__word::before { content: attr(data-word); }

.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	padding-top: 1.5rem;
	margin-top: 1.5rem;
	border-top: 1px solid var(--rule-dark);
	font-size: var(--fs-small);
	color: var(--on-dark-muted);
}

.back-to-top { display: inline-flex; align-items: center; gap: 0.5rem; }

@media (max-width: 1023.98px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 599.98px) {
	.site-footer__grid { grid-template-columns: 1fr; }
}

/* Desktop "Book" tab — appears once the hero has scrolled away */
.book-tab {
	position: fixed;
	left: 0;
	top: 50%;
	z-index: 40;
	padding: 1.5rem 0.75rem;
	background: var(--accent);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	writing-mode: vertical-rl;
	transform: translate(var(--tab-out, calc(-100% - 4px)), -50%);
	transition: transform 0.5s var(--ease), background-color 0.25s var(--ease);
}
[dir="ltr"] .book-tab { --tab-out: calc(100% + 4px); left: auto; right: 0; }
.book-tab:hover { background: var(--accent-600); color: #fff; }
.book-tab.is-visible { transform: translate(0, -50%); }
.book-tab:focus-visible { transform: translate(0, -50%); outline-offset: -4px; outline-color: #fff; }
.page-template-contact .book-tab { display: none; }

/* Mobile contact bar — hides while scrolling down, returns on the way up */
.contact-bar { display: none; }

@media (max-width: 1023.98px) {
	.book-tab { display: none; }

	.contact-bar {
		position: fixed;
		inset-inline: 0;
		bottom: 0;
		z-index: 45;
		display: grid;
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
		min-height: var(--bar-h);
		padding-bottom: env(safe-area-inset-bottom);
		background: var(--ground);
		border-top: 2px solid var(--ink);
		transition: transform 0.4s var(--ease);
	}

	.contact-bar.is-hidden { transform: translateY(100%); }

	.contact-bar a {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		min-height: var(--bar-h);
		padding-inline: 0.75rem;
		font-size: 0.875rem;
		font-weight: 500;
		text-decoration: none;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.contact-bar a + a { border-inline-start: 1px solid var(--rule); }
	.contact-bar__book { justify-content: flex-start !important; background: var(--accent); color: #fff; padding-inline: 1rem !important; }
	.contact-bar__book:hover { color: #fff; }
}

/* 7 — Home sections
   ========================================================================== */

/* 01 Hero */
.hero {
	position: relative;
	display: grid;
	align-items: end;
	min-height: calc(100svh - var(--header-h) - var(--bar-h));
	max-height: 1000px;
	overflow: hidden;
	color: #fff;
	isolation: isolate;
}

.hero__media,
.treatment-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	aspect-ratio: auto;
}

.hero::after,
.treatment-hero::after {
	/* Scrim for legibility, not decoration. */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgb(21 20 18 / 0.78) 0%, rgb(21 20 18 / 0.45) 50%, rgb(21 20 18 / 0.12) 85%);
}

.hero__content {
	display: grid;
	gap: 1.5rem;
	justify-items: start;
	padding: 4rem var(--pad) clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

.hero .kicker,
.treatment-hero .kicker { color: rgb(255 255 255 / 0.9); }
.hero__title { max-width: 13ch; }
.hero__text { max-width: 34rem; font-size: var(--fs-lead); color: rgb(255 255 255 / 0.85); }

/* 02 Statement */
.statement__label { grid-column: 1 / span 3; }
.statement__body { grid-column: 4 / -1; display: grid; gap: 1.75rem; justify-items: start; }
.statement__title { font-size: var(--fs-h2); line-height: 1.35; max-width: 26em; font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.75rem); }
.statement__text { max-width: 38rem; color: var(--muted); font-size: var(--fs-lead); }
.year { margin-top: 1rem; font-size: clamp(3rem, 2rem + 5vw, 7rem); line-height: 1; }

@media (max-width: 767.98px) {
	.statement__label,
	.statement__body { grid-column: 1 / -1; }
}

/* 03 Index */
.index {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: clamp(2rem, 1rem + 4vw, 6rem);
	align-items: start;
}

.index__list { list-style: none; border-top: 2px solid var(--rule); }

.index__row {
	display: grid;
	grid-template-columns: 3.5rem 1fr auto auto;
	align-items: center;
	gap: 1.25rem;
	padding-block: clamp(1rem, 0.6rem + 1vw, 1.625rem);
	border-bottom: 1px solid var(--rule);
	text-decoration: none;
	transition: color 0.3s var(--ease), padding 0.4s var(--ease);
}

.index__num { font-size: var(--fs-small); color: var(--muted); }
.index__name { font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); font-weight: 300; line-height: 1.2; }
.index__count { font-size: var(--fs-small); color: var(--muted); }
.index__row .icon { opacity: 0; transform: translateX(8px); transition: opacity 0.3s var(--ease), transform 0.4s var(--ease); }
[dir="ltr"] .index__row .icon { transform: scaleX(-1) translateX(8px); }

.index__row:hover,
.index__row:focus-visible,
.index__row.is-active { color: var(--accent); padding-inline-start: 0.75rem; }
.index__row:hover .icon,
.index__row:focus-visible .icon,
.index__row.is-active .icon { opacity: 1; transform: none; }
[dir="ltr"] .index__row.is-active .icon,
[dir="ltr"] .index__row:hover .icon { transform: scaleX(-1); }

.index__media {
	position: sticky;
	top: calc(var(--header-h) + 2rem);
	display: grid;
}

.index__frame {
	grid-area: 1 / 1;
	opacity: 0;
	transition: opacity 0.6s var(--ease);
}

.index__frame.is-active { opacity: 1; }
.index__frame .media { aspect-ratio: 4 / 5; }
.index__desc { margin-top: 1rem; color: var(--muted); font-size: var(--fs-small); }

.index__accordion { display: none; }
.index__accordion .index__name { font-size: 1.625rem; font-weight: 300; }
.index__accordion .media { aspect-ratio: 16 / 9; margin-bottom: 1rem; }

@media (max-width: 1023.98px) {
	.index { display: block; }
	.index__list,
	.index__media { display: none; }
	.index__accordion { display: block; }
}

/* 04 Signature splits */
.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 1rem + 4vw, 6rem);
	align-items: center;
}

.split + .split { margin-top: clamp(4rem, 2rem + 6vw, 8rem); }
.split--reverse .split__media { order: 2; }
.split__media { display: block; }
.split__media .media { aspect-ratio: 4 / 5; }
.split__body { display: grid; gap: 1rem; justify-items: start; max-width: 34rem; }
.split__index { font-size: var(--fs-small); color: var(--muted); }
.split__title { font-size: var(--fs-h2); }
.split__title a { text-decoration: none; }
.split__lead { font-size: var(--fs-lead); color: var(--accent); }
.split .facts { width: 100%; }

@media (max-width: 767.98px) {
	.split { grid-template-columns: 1fr; }
	.split--reverse .split__media { order: 0; }
}

/* 05 Before / after */
.cases { display: grid; gap: 1.5rem; }
.cases__stage { display: grid; gap: 3rem; }
.cases.is-enhanced .cases__stage { gap: 0; }
.cases.is-enhanced .case:not(.is-active) { display: none; }
.cases.is-enhanced .case.is-active { animation: fade-in 0.5s var(--ease); }

.ba {
	--pos: 50%;
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--surface);
	touch-action: pan-y;
	user-select: none;
}

.ba__layer { position: absolute; inset: 0; }
.ba__layer .media { aspect-ratio: auto; height: 100%; }
.ba__before { clip-path: inset(0 0 0 calc(100% - var(--pos))); }
[dir="ltr"] .ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.ba__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-start: var(--pos);
	width: 2px;
	margin-inline-start: -1px;
	background: var(--accent);
	pointer-events: none;
}

.ba__handle .icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 48px;
	height: 48px;
	padding: 14px;
	background: var(--accent);
	color: #fff;
	max-width: none;
	transform: translate(-50%, -50%);
}

.ba__tag {
	position: absolute;
	top: 1rem;
	z-index: 1;
	padding: 0.125rem 0.625rem;
	background: var(--ground);
	font-size: var(--fs-kicker);
	font-weight: 500;
	pointer-events: none;
}

.ba__tag--before { inset-inline-start: 1rem; }
.ba__tag--after { inset-inline-end: 1rem; }

.ba__range {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
	-webkit-appearance: none;
	appearance: none;
}

.ba:has(.ba__range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

.case__caption {
	display: grid;
	grid-template-columns: 1.2fr 1fr auto;
	gap: 1rem 2rem;
	align-items: center;
	padding-top: 1.25rem;
	border-bottom: 1px solid var(--rule-soft);
	padding-bottom: 1.25rem;
}

.case__title { font-weight: 500; }
.case__meta,
.case__consent { font-size: var(--fs-small); color: var(--muted); }

.cases__thumbs {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(64px, 96px));
	gap: 0.5rem;
	padding: 4px; /* room for the focus/selected outline */
}
.cases__thumb {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	opacity: 0.6;
	transition: opacity 0.25s var(--ease);
}
.cases__thumb .media { aspect-ratio: 1; }
.cases__thumb .media--ph::before { inset: 22% 20% -12%; }
.cases__thumb .ph__label { inset-block-end: 0.5rem; inset-inline-start: 0.625rem; }
.cases__thumb:hover { opacity: 1; }
.cases__thumb[aria-pressed="true"] { opacity: 1; outline: 2px solid var(--accent); outline-offset: 2px; }

.treatment-body .case__caption { grid-template-columns: 1fr; justify-items: start; }

@media (max-width: 767.98px) {
	.ba { aspect-ratio: 4 / 5; }
	.case__caption { grid-template-columns: 1fr; }
}

/* 06 Sticky story */
.story {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: clamp(2rem, 1rem + 4vw, 6rem);
}

.story__sticky {
	position: sticky;
	top: calc(var(--header-h) + 2rem);
	display: grid;
}

.story__frame { grid-area: 1 / 1; opacity: 0; transition: opacity 0.7s var(--ease); }
.story__frame.is-active { opacity: 1; }
.story__frame .media { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--header-h) - 4rem); width: 100%; }
.story__list { list-style: none; }

.story__item {
	display: grid;
	gap: 0.75rem;
	align-content: center;
	min-height: 52svh;
	padding-block: 2rem;
	border-top: 1px solid var(--rule);
	opacity: 0.42;
	transition: opacity 0.5s var(--ease);
}

html:not(.js) .story__item,
.story__item.is-active { opacity: 1; }
.story__num { font-size: var(--fs-small); color: var(--accent); font-weight: 500; }
.story__title { font-size: var(--fs-h2); }
.story__item p { max-width: 30rem; color: var(--muted); font-size: var(--fs-lead); }

@media (max-width: 1023.98px) {
	.story { grid-template-columns: 1fr; }
	.story__media { order: 2; }
	.story__sticky { position: static; }
	.story__frame .media { aspect-ratio: 4 / 3; }
	.story__item { min-height: 0; opacity: 1; }
}

/* 07 Portraits */
.portraits {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gap);
	align-items: start;
}

.portraits:not(.portraits--flat) .portrait:nth-child(3n + 2) { margin-top: clamp(2rem, 1rem + 5vw, 6rem); }
.portraits--four { grid-template-columns: repeat(4, 1fr); }
.portrait { display: grid; gap: 0.25rem; }
.portrait a { display: grid; gap: 1rem; text-decoration: none; }
.portrait .media { aspect-ratio: 3 / 4; }
.portrait .media__img { transition: transform 1.2s var(--ease); }
.portrait a:hover .media__img { transform: scale(1.04); }
.portrait__name { font-size: 1.25rem; font-weight: 500; }
.portrait__role { color: var(--accent); font-size: var(--fs-small); font-weight: 500; }
.portrait__meta { color: var(--muted); font-size: var(--fs-small); }

@media (max-width: 1023.98px) {
	.portraits,
	.portraits--four {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: min(72%, 320px);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		margin-inline: calc(var(--pad) * -1);
		padding-inline: var(--pad);
		scroll-padding-inline: var(--pad);
		padding-bottom: 0.5rem;
	}
	.portrait { scroll-snap-align: start; margin-top: 0 !important; }
}

/* 08 Journey */
.steps {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	border-top: 2px solid var(--rule);
}

.step {
	display: grid;
	align-content: start;
	gap: 0.75rem;
	padding-block: 1.5rem;
	padding-inline: 0 1.5rem;
}

.step + .step { border-inline-start: 1px solid var(--rule-soft); padding-inline-start: 1.5rem; }
.step__num { font-size: var(--fs-h2); font-weight: 300; line-height: 1; }
.step__title { font-size: 1.125rem; font-weight: 500; }
.step p { font-size: var(--fs-small); color: var(--muted); }

@media (max-width: 1023.98px) {
	.steps { grid-template-columns: repeat(3, 1fr); }
	.step:nth-child(3n + 1) { border-inline-start: 0; padding-inline-start: 0; }
	.step:nth-child(n + 4) { border-top: 1px solid var(--rule-soft); }
}

@media (max-width: 599.98px) {
	.steps { grid-template-columns: 1fr; }
	.step {
		grid-template-columns: 3.5rem 1fr;
		column-gap: 1rem;
		padding-inline: 0 !important;
		border-inline-start: 0 !important;
		border-top: 1px solid var(--rule-soft);
	}
	.step:first-child { border-top: 0; }
	.step__num { grid-row: span 2; font-size: 1.75rem; }
}

/* 09 Gallery */
.gallery {
	list-style: none;
	display: flex;
	gap: var(--gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	margin-inline: calc(var(--pad) * -1);
	padding-inline: var(--pad);
	scroll-padding-inline: var(--pad);
	padding-bottom: 1rem;
	scrollbar-width: thin;
	scrollbar-color: var(--rule) transparent;
	cursor: grab;
}

.gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery.is-dragging * { pointer-events: none; }
.gallery__item { flex: none; scroll-snap-align: start; width: clamp(260px, 42vw, 720px); }
.gallery__item--2,
.gallery__item--4 { width: clamp(200px, 28vw, 460px); }
.gallery__item .media { aspect-ratio: auto; height: clamp(320px, 42vw, 620px); }
.gallery__item--2 .media { height: clamp(260px, 32vw, 460px); }
.gallery figcaption { margin-top: 0.75rem; font-size: var(--fs-small); color: var(--muted); }
.hscroll-nav { display: flex; gap: 0.5rem; }

/* 10 Quotes */
.quotes { display: grid; gap: 2rem; }
.quote blockquote p {
	max-width: 22em;
	font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem);
	font-weight: 300;
	line-height: 1.4;
}
.quote figcaption { margin-top: 1.5rem; color: var(--muted); }
.quote.is-active { animation: fade-in 0.6s var(--ease); }
.quotes__nav { display: flex; align-items: center; gap: 0.5rem; }
.quotes__count { margin-inline-end: 1rem; font-size: var(--fs-small); color: var(--muted); }

/* 11 Poster */
.poster {
	background: var(--accent);
	color: #fff;
	padding: var(--section) var(--pad);
}

.poster__inner { display: grid; gap: 1.75rem; justify-items: start; }
.poster .kicker { color: var(--accent-100); }
.poster__title { max-width: 20ch; margin: 0; font-size: clamp(2.5rem, 1.4rem + 4.8vw, 5.75rem); }
.poster__text { max-width: 34rem; font-size: var(--fs-lead); color: rgb(255 255 255 / 0.85); }

/* 8 — Treatment explorer
   ========================================================================== */
.explorer {
	display: grid;
	grid-template-columns: minmax(14rem, 3fr) 9fr;
	gap: clamp(2rem, 1rem + 3vw, 5rem);
	padding: clamp(2rem, 1rem + 3vw, 4rem) var(--pad) var(--section);
	align-items: start;
}

/* Grid children may hold horizontal scrollers (chip rows); without this
   their min-content width would stretch the column past the viewport. */
.explorer > *,
.treatment-layout > *,
.team > *,
.contact > *,
.index > *,
.story > *,
.cases > *,
.explorer__filters > *,
.explorer__form > * { min-width: 0; }

.explorer__filters {
	position: sticky;
	top: calc(var(--header-h) + 1.5rem);
	display: grid;
	gap: 2rem;
}

.explorer__label { display: block; margin-bottom: 0.75rem; font-size: var(--fs-kicker); font-weight: 500; color: var(--accent); }
.explorer__areas ul { list-style: none; border-top: 2px solid var(--rule); }
.explorer__areas a {
	display: block;
	padding-block: 0.625rem;
	border-bottom: 1px solid var(--rule-soft);
	text-decoration: none;
	font-weight: 500;
}
.explorer__areas a[aria-current="page"] { color: var(--accent); }
.explorer__areas a[aria-current="page"]::before { content: "— "; }
.explorer__form { display: grid; gap: 1.5rem; }
.js .explorer__form [data-explorer-submit] { display: none; }

.explorer select {
	-webkit-appearance: none;
	appearance: none;
	padding-inline-end: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%231f1d1b' stroke-width='1.5'/%3E%3C/svg%3E");
	background-size: 12px 8px;
	background-repeat: no-repeat;
	background-position: left 1rem center;
	cursor: pointer;
}
[dir="ltr"] .explorer select { background-position: right 1rem center; }

.explorer__count { font-size: var(--fs-small); color: var(--muted); margin-bottom: 1rem; }
.treatment-list { list-style: none; border-top: 2px solid var(--rule); }
.treatment-row { border-bottom: 1px solid var(--rule); }

.treatment-row__link {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 1.5rem;
	padding-block: 1.25rem;
	text-decoration: none;
}

.treatment-row__title { font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem); font-weight: 300; line-height: 1.3; }
.treatment-row__meta { font-size: var(--fs-small); color: var(--muted); }
.treatment-row__link .icon { transition: transform 0.4s var(--ease); }
.treatment-row:hover .treatment-row__link,
.treatment-row:focus-within .treatment-row__link { color: var(--accent); }
.treatment-row:hover .icon-arrow { transform: translateX(-6px); }

.treatment-row__reveal {
	display: grid;
	grid-template-columns: 14rem 1fr;
	gap: 1.5rem;
	align-items: start;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.6s var(--ease), opacity 0.4s var(--ease), padding 0.6s var(--ease);
}

.treatment-row__reveal .media { aspect-ratio: 4 / 3; }
.treatment-row__reveal p { color: var(--muted); font-size: var(--fs-small); margin-bottom: 0.75rem; }
.treatment-row__reveal .treatment-row__lead { color: var(--ink); font-size: 1rem; font-weight: 500; }

@media (hover: hover) and (min-width: 1024px) {
	.treatment-row:hover .treatment-row__reveal,
	.treatment-row:focus-within .treatment-row__reveal { max-height: 20rem; opacity: 1; padding-bottom: 1.5rem; }
}

.explorer__empty { padding-block: 2rem; color: var(--muted); }

@media (max-width: 1023.98px) {
	.explorer { grid-template-columns: 1fr; padding-top: 0; }
	.explorer__filters {
		position: sticky;
		top: var(--header-h);
		z-index: 5;
		gap: 0.75rem;
		margin-inline: calc(var(--pad) * -1);
		padding: 0.75rem var(--pad);
		background: var(--ground);
		border-bottom: 1px solid var(--rule-soft);
	}
	.explorer__areas .explorer__label { display: none; }
	.explorer__areas ul { display: flex; gap: 0.5rem; overflow-x: auto; border: 0; scrollbar-width: none; }
	.explorer__areas li { flex: none; }
	.explorer__areas a { padding: 0.375rem 0.875rem; border: 1px solid var(--rule); font-size: var(--fs-small); }
	.explorer__areas a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }
	.explorer__areas a[aria-current="page"]::before { content: none; }
	.explorer__form { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
	.explorer__select .explorer__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.explorer select { min-height: 40px; font-size: var(--fs-small); }
	.treatment-row__link { grid-template-columns: 1fr auto; row-gap: 0.25rem; }
	.treatment-row__meta { grid-row: 2; }
	.treatment-row__link .icon { grid-row: 1 / span 2; grid-column: 2; }
	.treatment-row__reveal { display: none; }
}

/* 9 — Treatment page
   ========================================================================== */
.treatment-hero {
	position: relative;
	display: grid;
	align-items: end;
	min-height: min(78svh, 820px);
	overflow: hidden;
	color: #fff;
	isolation: isolate;
}

.treatment-hero__content {
	display: grid;
	gap: 1.25rem;
	justify-items: start;
	padding: 3rem var(--pad) clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.treatment-hero .breadcrumbs ol { color: rgb(255 255 255 / 0.75); }
.treatment-hero__title { max-width: 14ch; }
.treatment-hero__lead { font-size: var(--fs-lead); color: rgb(255 255 255 / 0.85); }

.treatment-layout {
	display: grid;
	grid-template-columns: minmax(11rem, 2.2fr) 6.3fr minmax(18rem, 3.5fr);
	gap: clamp(2rem, 1rem + 2.5vw, 4rem);
	padding: clamp(2rem, 1rem + 3vw, 4rem) var(--pad) clamp(2rem, 1rem + 3vw, 4rem);
	align-items: start;
}

.chapters {
	position: sticky;
	top: calc(var(--header-h) + 2rem);
}

.chapters__label { font-size: var(--fs-kicker); font-weight: 500; color: var(--muted); margin-bottom: 0.75rem; }
.chapters ol { list-style: none; border-top: 2px solid var(--rule); }
.chapters a {
	display: block;
	padding-block: 0.5rem;
	border-bottom: 1px solid var(--rule-soft);
	font-size: var(--fs-small);
	font-weight: 500;
	text-decoration: none;
	color: var(--muted);
	transition: color 0.25s var(--ease), padding 0.35s var(--ease);
}
.chapters a:hover { color: var(--ink); }
.chapters a[aria-current="true"] { color: var(--accent); padding-inline-start: 0.5rem; }

.treatment-body { min-width: 0; }
.chapter { padding-block: clamp(2rem, 1.2rem + 2.5vw, 3.5rem); border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 4rem); }
.chapter:first-child { border-top: 0; padding-top: 0; }
.chapter .kicker { margin-bottom: 1.25rem; }
.chapter__title { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.25rem); line-height: 1.45; margin-bottom: 1.5rem; }
.chapter__lead { font-size: var(--fs-lead); line-height: 1.8; margin-bottom: 1.5rem; }
.chapter__subtitle { font-size: 1.0625rem; font-weight: 500; margin-bottom: 0.75rem; }
.chapter .stats { margin-top: 2rem; }

.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.process { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--rule); counter-reset: step; }
.process li { counter-increment: step; padding: 1.25rem 0; padding-inline-end: 1.25rem; }
.process li + li { padding-inline-start: 1.25rem; border-inline-start: 1px solid var(--rule-soft); }
.process__title { font-size: 1.125rem; font-weight: 500; margin-bottom: 0.5rem; }
.process__title::before { content: counter(step, decimal-leading-zero) " "; color: var(--accent); font-size: var(--fs-small); }
.process p { font-size: var(--fs-small); color: var(--muted); }

.tech-list { list-style: none; display: grid; gap: 1.5rem; }
.tech { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule-soft); }
.tech .media { aspect-ratio: 1; }
.tech__title { font-size: 1.25rem; font-weight: 500; }
.tech__use { color: var(--accent); font-size: var(--fs-small); margin: 0.25rem 0 0.5rem; }
.tech p:last-child { color: var(--muted); font-size: var(--fs-small); }

.booking { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: 1.5rem; }
.booking__panel { display: grid; gap: 1rem; padding: 1.5rem; border: 2px solid var(--ink); background: var(--ground); }
.booking__title { font-size: 1.25rem; font-weight: 500; line-height: 1.5; }
.booking__direct { font-size: var(--fs-small); color: var(--muted); }
.booking__direct a { color: var(--ink); font-weight: 500; }
.booking__label { font-size: var(--fs-kicker); font-weight: 500; color: var(--muted); margin-bottom: 0.5rem; }

.mini-doctor { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: center; text-decoration: none; }
.mini-doctor .media { aspect-ratio: 1; }
.mini-doctor__name { display: block; font-weight: 500; }
.mini-doctor__role { display: block; font-size: var(--fs-small); color: var(--accent); }

.related { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.related__item { display: grid; gap: 0.5rem; text-decoration: none; }
.related__item .media { aspect-ratio: 4 / 3; margin-bottom: 0.5rem; }
.related__meta { font-size: var(--fs-small); color: var(--muted); }
.related__title { font-size: var(--fs-h3); font-weight: 300; }

@media (max-width: 1199.98px) {
	.treatment-layout { grid-template-columns: 1fr minmax(17rem, 22rem); }
	.chapters {
		grid-column: 1 / -1;
		top: var(--header-h);
		z-index: 5;
		margin-inline: calc(var(--pad) * -1);
		padding: 0.625rem var(--pad);
		background: var(--ground);
		border-bottom: 1px solid var(--rule-soft);
	}
	.chapters__label { display: none; }
	.chapters ol { display: flex; gap: 0.5rem; overflow-x: auto; border: 0; scrollbar-width: none; }
	.chapters li { flex: none; }
	.chapters a { padding: 0.25rem 0.875rem; border: 1px solid var(--rule); }
	.chapters a[aria-current="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); padding-inline-start: 0.875rem; }
}

@media (max-width: 767.98px) {
	.treatment-layout { grid-template-columns: 1fr; }
	.booking { position: static; }
	.columns,
	.process { grid-template-columns: 1fr; }
	.process li + li { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--rule-soft); }
	.tech { grid-template-columns: 6rem 1fr; }
	.related { grid-template-columns: 1fr; }
}

/* 10 — Doctors, profile, about, contact, results
   ========================================================================== */
.team {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: clamp(2rem, 1rem + 4vw, 6rem);
	padding: clamp(2rem, 1rem + 3vw, 4rem) var(--pad) var(--section);
	align-items: start;
}

.team__list { list-style: none; border-top: 2px solid var(--rule); }
.team__row { border-bottom: 1px solid var(--rule); }

.team__row summary {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 1.5rem;
	min-height: 64px;
	padding-block: 1.25rem;
	cursor: pointer;
	list-style: none;
}

.team__row summary::-webkit-details-marker { display: none; }
.team__name { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.25rem); font-weight: 300; line-height: 1.25; }
.team__role { font-size: var(--fs-small); color: var(--muted); }
.team__row[open] summary { color: var(--accent); }
.team__row[open] .accordion__icon { transform: rotate(45deg); }
.team__row:not([open]) summary:hover { color: var(--accent); }

.team__panel { display: grid; gap: 1.25rem; padding-bottom: 2rem; justify-items: start; }
.team__quote { font-size: var(--fs-lead); font-weight: 300; max-width: 32rem; }
.team__cred { font-size: var(--fs-small); color: var(--muted); }
.team__portrait-inline { display: none; width: 100%; }
.team__portrait-inline .media { aspect-ratio: 4 / 5; }

.team__sticky { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; }
.team__frame { grid-area: 1 / 1; opacity: 0; transition: opacity 0.6s var(--ease); }
.team__frame.is-active { opacity: 1; }
.team__frame .media { aspect-ratio: 3 / 4; }

@media (max-width: 1023.98px) {
	.team { grid-template-columns: 1fr; }
	.team__portrait { display: none; }
	.team__portrait-inline { display: block; }
}

.profile__grid {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: clamp(2rem, 1rem + 4vw, 6rem);
	padding-inline-end: var(--pad);
	align-items: start;
}

[dir="ltr"] .profile__grid { padding-inline: 0 var(--pad); }
.profile__portrait { position: sticky; top: var(--header-h); }
.profile__portrait .media { aspect-ratio: auto; height: calc(100svh - var(--header-h)); min-height: 520px; }
.profile__body { display: grid; gap: 1.25rem; padding-block: clamp(2rem, 1rem + 3vw, 5rem) var(--section); justify-items: start; }
.profile__body > * { width: 100%; }
.profile__body .kicker,
.profile__body .actions,
.profile__body .breadcrumbs { width: auto; }
.profile__name { font-size: var(--fs-h1); }
.profile__specialty { font-size: var(--fs-lead); color: var(--accent); }
.profile__quote p { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); font-weight: 300; line-height: 1.5; border-inline-start: 2px solid var(--accent); padding-inline-start: 1.25rem; }

@media (max-width: 767.98px) {
	.profile__grid { grid-template-columns: 1fr; padding-inline: 0; }
	.profile__portrait { position: static; }
	.profile__portrait .media { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
	.profile__body { padding-inline: var(--pad); }
}

.timeline { list-style: none; border-top: 2px solid var(--rule); }
.timeline li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--rule-soft); font-size: var(--fs-lead); }
.timeline__year { color: var(--accent); font-weight: 500; }

.contact {
	display: grid;
	grid-template-columns: 7fr 5fr;
	border-bottom: 2px solid var(--rule);
}

.contact__form {
	display: grid;
	gap: 1.5rem;
	align-content: start;
	padding-block: clamp(2rem, 1rem + 3vw, 4.5rem) var(--section);
	padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)) clamp(2rem, 1rem + 4vw, 6rem);
	scroll-margin-top: var(--header-h);
}

.contact__form:focus { outline: none; }
.contact__title { font-size: var(--fs-h1); max-width: 16ch; }
.contact__direct { display: none; gap: 0.5rem; }
.contact__direct .btn { flex: 1; }
.contact__details { border-inline-start: 2px solid var(--rule); display: grid; align-content: start; }
.contact__map { position: relative; border-bottom: 2px solid var(--rule); }
.contact__map .media { aspect-ratio: 4 / 3; }
.contact__map-link { position: absolute; inset-block-end: 1.25rem; inset-inline-start: 1.25rem; }
.contact__block { padding: 1.5rem var(--gutter); padding-inline-end: max(var(--gutter), calc((100vw - var(--max)) / 2)); border-bottom: 1px solid var(--rule-soft); }
.contact__label { font-size: var(--fs-kicker); font-weight: 500; color: var(--accent); margin-bottom: 0.75rem; }

@media (max-width: 1023.98px) {
	.contact { grid-template-columns: 1fr; }
	.contact__form { padding: 2rem var(--pad) 3rem; }
	.contact__direct { display: flex; }
	.contact__details { border-inline-start: 0; border-top: 2px solid var(--rule); }
	.contact__block { padding-inline: var(--pad); }
}

/* 11 — Journal & prose
   ========================================================================== */
.journal { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem var(--gap); }
.journal__item { display: grid; gap: 0.75rem; }
.journal__media .media { aspect-ratio: 4 / 3; }
.journal__date { font-size: var(--fs-small); color: var(--muted); }
.journal__title { font-size: var(--fs-h3); }
.journal__title a { text-decoration: none; }

@media (max-width: 1023.98px) { .journal { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599.98px) { .journal { grid-template-columns: 1fr; } }

.prose { max-width: 46rem; margin-inline: auto; padding: clamp(2rem, 1rem + 3vw, 4rem) var(--gutter); }
.post-footer { padding-top: 0; }

.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); margin-top: 2em; }
.entry-content h3 { font-size: 1.375rem; font-weight: 500; margin-top: 1.75em; }
.entry-content ul,
.entry-content ol { padding-inline-start: 1.5rem; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content a { color: var(--accent); }
.entry-content blockquote { padding-inline-start: 1.25rem; border-inline-start: 2px solid var(--accent); font-size: var(--fs-lead); }
.entry-content img { height: auto; }
.entry-content--lead { font-size: var(--fs-lead); line-height: 1.85; max-width: 40rem; }
.entry-content--full > * + * { margin-top: 0; }

.nav-links { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.post-nav__label { display: block; font-size: var(--fs-small); color: var(--muted); }
.pagination .nav-links { justify-content: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; text-decoration: none; }
.page-numbers.current { background: var(--ink); color: var(--ground); }
.empty { color: var(--muted); }

/* Elementor pages: the theme steps aside */
.is-elementor-page .site-main > .elementor { width: 100%; }

/* 12 — Motion
   Progressive: without JS (no .js class) or with reduced motion, everything
   is simply visible.
   ========================================================================== */
@keyframes fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
	.js [data-reveal] {
		opacity: 0;
		transform: translateY(28px);
		transition: opacity 0.9s var(--ease), transform 1s var(--ease);
	}

	.js [data-reveal="image"] {
		transform: none;
		opacity: 1;
		clip-path: inset(14% 0 0 0);
		transition: clip-path 1.2s var(--ease);
	}

	.js [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0); }

	.js [data-split] .word {
		display: inline-block;
		opacity: 0;
		transform: translateY(0.45em);
		animation: word-in 0.9s var(--ease) forwards;
		animation-delay: calc(0.12s + var(--i, 0) * 0.07s);
	}

	@keyframes word-in {
		to { opacity: 1; transform: none; }
	}

	.hero__media .media__img,
	.treatment-hero__media .media__img { animation: settle 2s var(--ease) both; }

	@keyframes settle {
		from { transform: scale(1.08); }
		to { transform: scale(1); }
	}

	.hero__content > :not(h1),
	.treatment-hero__content > * { animation: rise 1s var(--ease) 0.5s both; }

	@keyframes rise {
		from { opacity: 0; transform: translateY(16px); }
		to { opacity: 1; transform: none; }
	}

	@supports (animation-timeline: view()) {
		.split__media .media__img,
		.bleed .media__img {
			animation: drift linear both;
			animation-timeline: view();
			animation-range: entry 0% exit 100%;
		}

		@keyframes drift {
			from { transform: scale(1.12) translateY(-3%); }
			to { transform: scale(1.12) translateY(3%); }
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Print: content only */
@media print {
	.site-header,
	.site-footer,
	.book-tab,
	.contact-bar,
	.poster,
	.booking,
	.chapters { display: none !important; }
	body { background: #fff; padding: 0; }
}
