/* ==========================================================================
   SAMTWEISS — design system
   Layers: reset → tokens → base → layout → components → pages → utilities
   ========================================================================== */

@layer reset, tokens, base, layout, components, pages, utilities;

/* --------------------------------------------------------------------------
   Fonts (self-hosted, latin subset)
   ----------------------------------------------------------------------- */
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-de-400-700.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("../fonts/source-serif-4-de-400-600.woff2") format("woff2");
	font-weight: 400 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("../fonts/source-serif-4-de-italic-400.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
/* Metric-matched fallbacks keep layout shift near zero while fonts load. */
@font-face {
	font-family: "Inter Fallback";
	src: local("Arial"), local("Liberation Sans");
	size-adjust: 107%;
	ascent-override: 90%;
	descent-override: 22%;
	line-gap-override: 0%;
}
@font-face {
	font-family: "Serif Fallback";
	src: local("Georgia"), local("DejaVu Serif");
	size-adjust: 97%;
	ascent-override: 92%;
	descent-override: 26%;
}

/* --------------------------------------------------------------------------
   Reset
   ----------------------------------------------------------------------- */
@layer reset {
	*, *::before, *::after { box-sizing: border-box; }
	* { margin: 0; }
	html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
	body { min-height: 100dvh; }
	img, svg, video, iframe { display: block; max-width: 100%; }
	img { height: auto; }
	input, button, textarea, select { font: inherit; color: inherit; }
	button { cursor: pointer; background: none; border: 0; padding: 0; }
	p, li, dd, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
	ul[class], ol[class] { list-style: none; padding: 0; }
	table { border-collapse: collapse; }
}

/* --------------------------------------------------------------------------
   Tokens
   ----------------------------------------------------------------------- */
@layer tokens {
	:root {
		/* Colour */
		--teal-50: #eaf7f8;
		--teal-100: #d3eef0;
		--teal-500: #00adbb; /* logo guide: Pantone 7466 C */
		--teal-700: #00757e;
		--teal-800: #0a5960;
		--teal-900: #005a64; /* hover / pressed tone of the brand turquoise */
		/* Deep brand surface: the elephant's turquoise, dark enough for white text (>= 4.9:1) */
		--brand-deep: #00707c;
		--brand-bright: #007f8b;
		--brand-black: #10181f; /* logo guide: Pantone Black 6 C */
		/* Dark surfaces: the elephant's turquoise deepened so white text stays readable (>= 4.6:1).
		   The logo-guide #00ADBB itself would only reach 2.7:1 with white. */
		--brand-surface: linear-gradient(135deg, #006d79 0%, var(--brand-bright) 100%);
		--on-brand: var(--white);
		--on-brand-soft: rgb(255 255 255 / 0.9);
		--on-brand-line: rgb(255 255 255 / 0.22);
		--mineral: #f1f6f6;
		--mineral-line: #eaf1f1;
		--gold-300: #d6c9a6;
		--gold-500: #9f8957;
		--gold-600: #8a7748; /* logo gold, one step deeper so large titles stay readable on tinted backgrounds */
		--gold-700: #7c6a40;
		--ink: var(--brand-black);
		--text: #4a5558;
		--muted: #5b6669;
		--line: #dfe7e8;
		--line-strong: #c9d6d8; /* form field borders */
		--text-faint: #768b8e; /* not-yet-read words, inactive story steps (>= 3.4:1 on white) */
		--error: #b42318;
		--white: #ffffff;

		--surface: var(--white);
		--focus: var(--teal-500);

		/* Type */
		--font-sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
		--font-serif: "Source Serif 4", "Serif Fallback", Georgia, serif;

		--step--1: clamp(0.8125rem, 0.788rem + 0.109vw, 0.875rem);
		--step-0: clamp(0.9375rem, 0.889rem + 0.217vw, 1.0625rem);
		--step-1: clamp(1.0625rem, 0.989rem + 0.326vw, 1.25rem);
		--step-2: clamp(1.1875rem, 1.016rem + 0.761vw, 1.625rem);
		--step-3: clamp(1.5rem, 1.109rem + 1.739vw, 2.5rem);
		--step-4: clamp(1.9375rem, 1.228rem + 3.152vw, 3.75rem);

		--leading-tight: 1.12;
		--leading-snug: 1.3;
		--leading-body: 1.65;
		--measure: 68ch;

		/* Space (8px grid) */
		--space-1: 0.25rem;
		--space-2: 0.5rem;
		--space-3: 0.75rem;
		--space-4: 1rem;
		--space-5: 1.5rem;
		--space-6: 2rem;
		--space-7: 3rem;
		--space-8: 4rem;
		--space-section: clamp(2.5rem, 1.3rem + 4.4vw, 5rem);
		--gutter: clamp(1rem, 0.7rem + 1.1vw, 1.5rem);
		--container: 70rem;
		--pad-inline: clamp(1.25rem, 0.8rem + 2.2vw, 2.5rem);

		/* Shape & depth */
		--radius-s: 12px;
		--radius-m: 20px;
		--radius-l: 28px;
		--radius-pill: 999px;
		--shadow-1: 0 1px 2px rgb(11 59 64 / 0.06), 0 2px 8px rgb(11 59 64 / 0.05);
		--shadow-2: 0 2px 4px rgb(11 59 64 / 0.05), 0 16px 40px -12px rgb(11 59 64 / 0.18);

		/* Motion */
		--ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
		--ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
		--dur-1: 160ms;
		--dur-2: 280ms;
		--dur-3: 420ms;

		/* Chrome */
		--header-h: 5rem;
		--header-h-compact: 4rem;
		--mobilebar-h: 3.375rem;
	}
	/* Phones: shorter header, tighter rhythm. */
	@media (max-width: 47.99rem) {
		:root {
			--header-h: 4.25rem;
			--header-h-compact: 3.75rem;
			--leading-body: 1.6;
			--space-7: 2.5rem;
		}
	}
}

/* --------------------------------------------------------------------------
   Base
   ----------------------------------------------------------------------- */
@layer base {
	html {
		scroll-behavior: smooth;
		scroll-padding-top: calc(var(--header-h) + var(--space-4));
		color-scheme: light;
	}
	body {
		background: var(--surface);
		color: var(--text);
		font-family: var(--font-sans);
		font-size: var(--step-0);
		line-height: var(--leading-body);
		font-feature-settings: "cv11", "ss01";
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		text-rendering: optimizeLegibility;
	}

	h1, h2, h3, h4, h5, h6 {
		color: var(--ink);
		font-family: var(--font-serif);
		font-weight: 500;
		line-height: var(--leading-tight);
		letter-spacing: -0.01em;
		font-optical-sizing: auto;
		text-wrap: balance;
	}
	h1 { font-size: var(--step-4); letter-spacing: -0.02em; }
	h2 { font-size: var(--step-3); letter-spacing: -0.015em; }
	h3 { font-size: var(--step-2); line-height: var(--leading-snug); }
	h4 { font-size: var(--step-1); line-height: var(--leading-snug); }
	h5, h6 { font-size: var(--step-0); font-family: var(--font-sans); font-weight: 600; }

	p { text-wrap: pretty; }
	strong, b { color: var(--ink); font-weight: 600; }

	a {
		color: var(--teal-700);
		text-decoration-line: underline;
		text-decoration-thickness: 1px;
		text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
		text-underline-offset: 0.2em;
		transition: color var(--dur-1) var(--ease-out), text-decoration-color var(--dur-1) var(--ease-out);
	}
	a:hover { color: var(--teal-900); text-decoration-color: currentColor; }

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

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

	hr { border: 0; border-top: 1px solid var(--line); }

	address { font-style: normal; }
}

/* --------------------------------------------------------------------------
   Layout
   ----------------------------------------------------------------------- */
@layer layout {
	.st-container {
		width: min(100% - 2 * var(--pad-inline), var(--container));
		margin-inline: auto;
	}

	.st-main { display: block; }

	.st-section { padding-block: calc(var(--space-section) / 2); }
	.st-main > .st-section:first-child,
	.st-entry > .st-section:first-child { padding-top: var(--space-7); }
	.st-entry > .st-section:last-child { padding-bottom: calc(var(--space-section) / 2); }

	.st-section--band {
		margin-block: calc(var(--space-section) / 3);
		padding-block: calc(var(--space-section) * 0.55);
	}
	/* Slogans (quote bands): the faint blurred practice photo fades in and out softly,
	   a gold ornament opens from the centre when the slogan comes into view. */
	:is(.st-section--band, .st-quote) { position: relative; isolation: isolate; background: none; }
	:is(.st-section--band, .st-quote)::before {
		content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
		background: linear-gradient(rgb(241 246 246 / 0.55), rgb(241 246 246 / 0.55)), var(--st-blur-photo, none) center 40% / cover no-repeat, var(--mineral);
		opacity: 0.85;
		-webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
		mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
	}
	/* Ornament: line – diamond – line; above the slogan on phones, on both sides from tablet width */
	:is(.st-section--band .st-flow, .st-quote .st-container)::before,
	:is(.st-section--band .st-flow, .st-quote .st-container)::after {
		content: "\25C6"; display: block; grid-column: 1 / -1; justify-self: center; align-self: center;
		width: 7rem; margin: 0 auto var(--space-4);
		font-size: 0.5625rem; line-height: 1; text-align: center; color: var(--gold-500);
		background:
			linear-gradient(var(--gold-500), var(--gold-500)) left center / calc(50% - 0.8rem) 1px no-repeat,
			linear-gradient(var(--gold-500), var(--gold-500)) right center / calc(50% - 0.8rem) 1px no-repeat;
		-webkit-mask: linear-gradient(#000, #000) center / var(--orn, 100%) 100% no-repeat;
		mask: linear-gradient(#000, #000) center / var(--orn, 100%) 100% no-repeat;
		transition: --orn 1200ms var(--ease-out);
	}
	:is(.st-section--band .st-flow, .st-quote .st-container)::after { display: none; }
	@media (min-width: 48rem) {
		:is(.st-section--band .st-flow, .st-quote .st-container) {
			display: grid; align-items: center; justify-content: center;
			grid-template-columns: minmax(2.5rem, 8rem) minmax(0, 36rem) minmax(2.5rem, 8rem);
			column-gap: clamp(1.25rem, 0.5rem + 2vw, 2.5rem);
		}
		:is(.st-section--band .st-flow, .st-quote .st-container) > * { grid-column: 2; }
		:is(.st-section--band .st-flow, .st-quote .st-container)::before,
		:is(.st-section--band .st-flow, .st-quote .st-container)::after {
			display: block; grid-row: 1; width: 100%; margin: 0;
			-webkit-mask-position: right center; mask-position: right center;
		}
		:is(.st-section--band .st-flow, .st-quote .st-container)::before { grid-column: 1; }
		:is(.st-section--band .st-flow, .st-quote .st-container)::after { grid-column: 3; -webkit-mask-position: left center; mask-position: left center; }
	}
	.st-motion :is(.st-section--band, .st-quote):not(.is-in) { --orn: 12%; }
	/* Bands carry short statements (quotes, mottos): centred serif */
	.st-section--band .st-flow > :is(.st-prose, .st-heading) { justify-self: center; text-align: center; max-width: 40ch; }
	.st-section--band .st-prose :is(h2, h3, h4, h5, p:only-child) {
		font-family: var(--font-serif);
		font-size: var(--step-3);
		font-weight: 400;
		font-style: italic;
		line-height: 1.2;
		color: var(--ink);
		text-wrap: balance;
	}
	.st-section--band .st-prose :is(h2, h3, h4, h5) + p { margin-top: var(--space-5); color: var(--gold-700); font-weight: 600; font-size: var(--step--1); }
	.st-section--photo { padding-block: calc(var(--space-section) / 2); }

	.st-section--dark { background: var(--brand-surface); color: var(--on-brand-soft); }
	.st-section--dark :is(h1, h2, h3, h4) { color: var(--on-brand); }

	/* 12-column flow used inside every builder section */
	.st-flow {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: var(--gutter);
		row-gap: var(--space-5);
		align-items: start;
	}
	.st-flow > * { grid-column: 1 / -1; min-width: 0; }
	.st-flow > .st-prose,
	.st-flow > .st-heading { max-width: var(--measure); }
	.st-flow > .st-heading--center { justify-self: center; text-align: center; }
	.st-flow > .st-rule { margin-block: var(--space-4); }
	.st-flow > .st-rule + .st-rule { display: none; }

	/* Columns: --span per breakpoint, --start pins "first" columns to a new row */
	.st-flow > .st-col { grid-column: var(--start, auto) / span var(--span, 12); }
	.st-col--first { --start: 1; }
	@media (min-width: 48rem) {
		.st-col--3, .st-col--4, .st-col--5, .st-col--6, .st-col--7 { --span: 6; }
	}
	@media (min-width: 64rem) {
		.st-col--3 { --span: 3; }
		.st-col--4 { --span: 4; }
		.st-col--5 { --span: 5; }
		.st-col--7 { --span: 7; }
		.st-col--8 { --span: 8; }
		.st-col--9 { --span: 9; }
		.st-col--10 { --span: 10; }
	}
	/* A row of only two third-width columns (e.g. the dentists on the team page) sits centred. */
	@media (min-width: 64rem) {
		.st-flow > .st-col--4.st-col--first:is(:has(+ .st-col--4 + .st-col--first), :has(+ .st-col--4:last-child)) { --start: 3; }
	}
	.st-col { display: grid; gap: var(--space-4); align-content: start; }
	.st-col--middle { align-self: center; }
	.st-col--panel {
		background: var(--mineral);
		border-radius: var(--radius-m);
		padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	}
}

/* --------------------------------------------------------------------------
   Components
   ----------------------------------------------------------------------- */
@layer components {

	/* Screen-reader text and skip link */
	.st-sr {
		position: absolute !important;
		width: 1px; height: 1px;
		overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
		white-space: nowrap;
	}
	.st-skip {
		position: fixed; top: var(--space-3); left: var(--space-3); z-index: 1000;
		padding: var(--space-3) var(--space-4);
		background: var(--ink); color: var(--white); border-radius: var(--radius-s);
		transform: translateY(-200%);
		transition: transform var(--dur-2) var(--ease-out);
	}
	.st-skip:focus { transform: none; color: var(--white); }

	.st-icon { width: 1.25em; height: 1.25em; flex: none; }
	.st-inline-icon { display: inline-block; vertical-align: -0.2em; margin-right: 0.45em; width: 1.05em; height: 1.05em; color: var(--teal-700); }

	/* Buttons */
	.st-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.6rem;
		min-height: 3rem;
		padding: 0.75rem 1.375rem;
		border-radius: var(--radius-s);
		border: 1px solid transparent;
		font-family: var(--font-sans);
		font-size: 1rem;
		font-weight: 600;
		line-height: 1.2;
		letter-spacing: -0.005em;
		text-decoration: none;
		white-space: nowrap;
		transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out),
			border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
	}
	.st-btn .st-icon { width: 1.15rem; height: 1.15rem; }
	.st-btn:active { transform: translateY(1px); }

	.st-btn--primary { background: var(--teal-700); color: var(--white); }
	/* Booking buttons: a soft light sweeps across, the calendar gives a small nod, the button lifts a little */
	.st-btn--book { position: relative; overflow: hidden; isolation: isolate; }
	.st-btn--book::after {
		content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
		background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 0.3) 48%, rgb(255 255 255 / 0.08) 56%, transparent 70%);
		transform: translateX(-110%);
	}
	.st-btn--light.st-btn--book::after { background: linear-gradient(105deg, transparent 30%, rgb(0 173 187 / 0.16) 48%, rgb(0 173 187 / 0.05) 56%, transparent 70%); }
	.st-motion .st-btn--book:hover::after { transform: translateX(110%); transition: transform 900ms var(--ease-out); }
	.st-motion .st-btn--book:hover { transform: translateY(-1px); }
	.st-btn--primary.st-btn--book:hover { box-shadow: 0 10px 24px -12px rgb(0 117 126 / 0.7); }
	.st-motion .st-btn--book:hover .st-icon { animation: st-nod 700ms var(--ease-out); }
	/* Phone links: the receiver rings briefly; in the header the number turns teal and a fine line draws beneath */
	.st-motion :is(.st-header__phone, .st-btn[href^="tel:"]):hover .st-icon { animation: st-ring 750ms ease-in-out; }
	.st-motion .st-btn--secondary[href^="tel:"]:hover { transform: translateY(-1px); }
	.st-header__phone { transition: color var(--dur-2) var(--ease-out); }
	.st-header__phone span {
		background: linear-gradient(currentColor, currentColor) left 100% / 0 1px no-repeat;
		transition: background-size 450ms var(--ease-out);
	}
	.st-header__phone:hover { color: var(--teal-700); }
	.st-header__phone:hover span { background-size: 100% 1px; }
	/* Contact lines (footer, home): the receiver rings, the envelope's flap opens */
	.st-motion .st-contact__lines li:has(a[href^="tel:"]:hover) .st-icon { animation: st-ring 750ms ease-in-out; }
	@keyframes st-ring {
		15% { transform: rotate(-14deg); }
		30% { transform: rotate(12deg); }
		45% { transform: rotate(-9deg); }
		60% { transform: rotate(6deg); }
		75% { transform: rotate(-3deg); }
	}
	@keyframes st-nod {
		30% { transform: rotate(-12deg) scale(1.12); }
		60% { transform: rotate(6deg) scale(1.05); }
		to { transform: none; }
	}
	.st-btn--primary:hover { background: var(--teal-900); color: var(--white); box-shadow: var(--shadow-1); }

	.st-btn--secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
	.st-btn--secondary:hover { color: var(--ink); border-color: var(--teal-500); box-shadow: var(--shadow-1); }
	.st-btn--secondary .st-icon { color: var(--teal-700); }

	.st-btn--ghost { color: var(--teal-700); padding-inline: 0.5rem; }
	.st-btn--ghost:hover { color: var(--teal-900); text-decoration: underline; text-underline-offset: 0.25em; }

	.st-btn--light { background: var(--white); color: var(--brand-deep); }
	.st-btn--light:hover { background: var(--teal-50); color: var(--brand-deep); box-shadow: 0 8px 24px -10px rgb(0 0 0 / 0.35); }
	.st-btn--outline-light { color: var(--on-brand); border-color: rgb(255 255 255 / 0.35); }
	.st-btn--outline-light:hover { color: var(--on-brand); border-color: var(--on-brand); background: rgb(255 255 255 / 0.06); }

	.st-button-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
	.st-button-row .st-btn, .st-prose .st-btn { white-space: normal; text-align: center; max-width: 100%; }
	.st-button-row--center { justify-content: center; }
	.st-button-row--right { justify-content: flex-end; }

	/* Headings from the builder */
	.st-heading > :is(h1, h2, h3, h4) + .st-heading__sub { margin-top: var(--space-3); }
	.st-heading__sub { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
	.st-heading--h1 h1 { font-size: var(--step-4); }

	/* Long-form text */
	.st-prose { color: var(--text); min-width: 0; hyphens: auto; -webkit-hyphens: auto; }
	.st-prose a { overflow-wrap: anywhere; }
	.st-prose :is(table, pre) { display: block; max-width: 100%; overflow-x: auto; }
	@media (max-width: 47.99rem) {
		h1, h2, h3, .st-heading, .st-pagehead h1 { hyphens: auto; -webkit-hyphens: auto; }
	}
	.st-prose > * + * { margin-top: 1em; }
	.st-prose :is(h2, h3, h4, h5) { margin-top: 1.6em; margin-bottom: -0.25em; }
	.st-prose > :first-child { margin-top: 0; }
	.st-prose :is(h3, h4) strong { font-weight: inherit; }
	.st-prose ul, .st-prose ol { padding-left: 1.25em; }
	.st-prose ul { list-style: none; padding-left: 0; }
	.st-prose ul > li { position: relative; padding-left: 1.5em; }
	.st-prose ul > li + li { margin-top: 0.4em; }
	.st-prose ul > li::before {
		content: "";
		position: absolute; left: 0.25em; top: 0.68em;
		width: 0.42em; height: 0.42em;
		background: var(--teal-500);
		clip-path: polygon(50% 0, 100% 100%, 0 100%);
	}
	.st-prose ol > li + li { margin-top: 0.4em; }
	.st-prose blockquote {
		margin-block: 1.5em;
		padding: var(--space-5) var(--space-6);
		border-left: 2px solid var(--gold-500);
		background: var(--mineral);
		border-radius: 0 var(--radius-m) var(--radius-m) 0;
		font-family: var(--font-serif);
		font-size: var(--step-1);
		line-height: 1.5;
		color: var(--ink);
	}
	.st-prose img { border-radius: var(--radius-m); }
	.st-prose img[src$=".png"], .st-prose img[alt*="Logo"], .st-prose img[src*="Logo"], .st-prose img[src*="logo"] { border-radius: 0; }
	.st-prose :is(.alignleft, .alignright, .aligncenter, .alignnone) { display: block; margin-block: var(--space-4); }
	.st-prose .aligncenter { margin-inline: auto; }
	@media (max-width: 47.99rem) {
		.st-prose img.size-medium, .st-prose img.size-large, .st-prose img.size-full { width: 100%; }
	}
	@media (min-width: 48rem) {
		.st-prose .alignleft { float: left; max-width: 45%; margin: 0.35em var(--space-6) var(--space-4) 0; }
		.st-prose .alignright { float: right; max-width: 45%; margin: 0.35em 0 var(--space-4) var(--space-6); }
		.st-prose::after { content: ""; display: table; clear: both; }
		/* In half-width or narrower columns text no longer wraps around a small photo: photo on top, full width. */
		.st-col:not(.st-col--12, .st-col--10, .st-col--9) .st-prose :is(img.alignleft, img.alignright) {
			float: none; max-width: 100%; margin: 0 0 var(--space-5);
		}
		/* Photos in columns: never cropped; landscape up to 22rem wide, upright/square 14rem high, logos 18rem */
		.st-col .st-prose img.is-landscape:not([src$=".png"], [src$=".svg"]) { width: min(100%, 22rem); height: auto; }
		.st-col .st-prose img.is-upright:not([src$=".png"], [src$=".svg"]) { width: auto; height: 14rem; max-width: 100%; object-fit: cover; }
		.st-col .st-prose img:is([src$=".png"], [src$=".svg"]) { max-width: min(100%, 18rem); height: auto; }
	}
	.st-prose table { width: 100%; font-size: var(--step--1); }
	.st-prose :is(td, th) { padding: 0.5em 0.75em 0.5em 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
	.st-prose iframe { width: 100%; border: 0; border-radius: var(--radius-m); }

	.st-rule {
		border: 0;
		height: 1px;
		background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
	}

	/* Images */
	.st-img { margin: 0; }
	.st-img__el { width: 100%; border-radius: var(--radius-l); }
	/* Enfold "circle" images: soft square (round masks would clip logos and text in graphics) */
	.st-img--round .st-img__el {
		aspect-ratio: 1;
		object-fit: cover;
		border-radius: var(--radius-l);
		max-width: 26rem;
		margin-inline: auto;
	}
	.st-img--badge .st-img__el {
		width: auto;
		max-width: min(100%, 18rem);
		max-height: 16rem;
		object-fit: contain;
		border-radius: 0;
		margin-inline: auto;
	}
	.st-img__link { display: block; border-radius: var(--radius-l); overflow: hidden; }
	.st-img__link .st-img__el { transition: transform 600ms var(--ease-out); }
	.st-img__link:hover .st-img__el { transform: scale(1.025); }
	.st-img--round .st-img__link { max-width: 26rem; margin-inline: auto; }
	.st-img--badge .st-img__link { overflow: visible; }
	.st-img figcaption { margin-top: var(--space-3); font-size: var(--step--1); color: var(--muted); }

	/* Feature list (from icon lists) */
	.st-features { display: grid; gap: var(--space-5) var(--space-7); }
	@media (min-width: 48rem) {
		.st-col--12 .st-features, .st-flow > .st-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	}
	.st-feature { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--space-4); align-items: start; }
	.st-feature__icon {
		display: grid; place-items: center;
		width: 2.5rem; height: 2.5rem;
		border-radius: 50%;
		background: var(--teal-50);
		color: var(--teal-700);
	}
	.st-feature__icon .st-icon { width: 1.15rem; height: 1.15rem; }
	.st-feature__title {
		font-family: var(--font-sans);
		font-size: var(--step-0);
		font-weight: 600;
		line-height: 1.4;
		letter-spacing: 0;
		margin-top: 0.45rem;
	}
	.st-feature__title + .st-prose { margin-top: var(--space-2); }

	/* Content pages (treatments etc.): denser reading – slightly smaller text, tighter rhythm and lists */
	.st-entry .st-flow { row-gap: var(--space-4); }
	.st-entry .st-prose { font-size: clamp(0.9375rem, 0.91rem + 0.1vw, 1rem); line-height: 1.6; }
	.st-entry .st-prose > * + * { margin-top: 0.8em; }
	.st-entry .st-features { gap: var(--space-3) var(--space-6); }
	.st-entry .st-feature { grid-template-columns: 2rem minmax(0, 1fr); gap: var(--space-3); }
	.st-entry .st-feature__icon { width: 2rem; height: 2rem; }
	.st-entry .st-feature__icon .st-icon { width: 1rem; height: 1rem; }
	.st-entry .st-feature__title { font-size: 0.9375rem; margin-top: 0.2rem; }
	.st-entry .st-feature__title + .st-prose { margin-top: 0.15rem; font-size: var(--step--1); }
	.st-entry .st-prose h2, .st-entry .st-heading h2 { font-size: var(--step-2); }
	.st-entry .st-prose h3, .st-entry .st-heading h3 { font-size: var(--step-1); }

	/* Cards (from content sliders) */
	.st-cards { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); }
	.st-cards__heading { margin-bottom: var(--space-5); }
	/* Larger sets (the 9 treatment areas) read best as 3 × 3 on desktop: wider text, no orphan card. */
	@media (min-width: 64rem) {
		.st-cards:has(> .st-card:nth-child(5)) { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
	}
	.st-card {
		position: relative;
		display: flex;
		flex-direction: column;
		gap: var(--space-3);
		padding: var(--space-6);
		background: var(--mineral);
		border-radius: var(--radius-m);
		transition: background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
	}
	.st-card__title { font-size: var(--step-1); }
	.st-card__link { color: inherit; text-decoration: none; }
	.st-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
	.st-card .st-prose { font-size: var(--step--1); line-height: 1.6; }
	/* Card foot: arrow in a circle; on hover it fills, moves on and a gold line draws across */
	.st-card__more {
		display: flex; align-items: center; gap: var(--space-3);
		margin-top: auto; /* pinned to the card's foot, aligned across a row */
		padding-top: var(--space-2);
	}
	.st-card__more::after {
		content: ""; flex: 1; height: 1px;
		background: linear-gradient(90deg, var(--gold-500), rgb(159 137 87 / 0));
		transform: scaleX(0); transform-origin: left;
		transition: transform 600ms var(--ease-out);
	}
	.st-card__arrow {
		display: grid; place-items: center; flex: none;
		width: 2.5rem; height: 2.5rem; border-radius: 50%;
		background: var(--white); color: var(--teal-700);
		box-shadow: inset 0 0 0 1px var(--line);
		transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), transform 400ms var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
	}
	.st-card__arrow .st-icon { width: 1.1rem; height: 1.1rem; transition: transform 400ms var(--ease-out); }
	.st-card .st-prose img { transition: transform 900ms var(--ease-out), box-shadow 600ms var(--ease-out); }
	.st-card .st-prose a { position: relative; z-index: 1; }
	.st-card--linked:hover { background: var(--white); box-shadow: var(--shadow-2); transform: translateY(-3px); }
	.st-card--linked:hover .st-card__title { color: var(--teal-700); }
	.st-card--linked:hover .st-card__arrow { background: var(--teal-700); color: var(--white); box-shadow: none; transform: translateX(4px); }
	.st-card--linked:hover .st-card__arrow .st-icon { transform: translateX(2px); }
	.st-card--linked:hover .st-card__more::after { transform: scaleX(1); }
	.st-card--linked:hover .st-prose img { transform: scale(1.025); box-shadow: var(--shadow-2); }
	.st-card--linked:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
	.st-card__link:focus-visible { outline: none; }

	/* Team members */
	.st-member { display: grid; gap: var(--space-4); }
	.st-member__media { border-radius: var(--radius-m); overflow: hidden; background: var(--mineral); aspect-ratio: 3 / 2; }
	.st-member__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
	.st-member__name { font-size: var(--step-1); }
	.st-member__job { color: var(--muted); font-size: var(--step--1); margin-top: var(--space-1); }
	.st-member__link {
		display: inline-flex; align-items: center; gap: var(--space-2);
		margin-top: var(--space-3);
		font-size: var(--step--1); font-weight: 600;
		text-decoration: none;
	}
	.st-member__link .st-icon { width: 1rem; height: 1rem; }

	/* Gallery + lightbox */
	.st-gallery { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
	.st-gallery__link { display: block; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 3 / 2; background: var(--mineral); }
	.st-gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
	.st-gallery__link:hover img { transform: scale(1.04); }

	/* Full-screen image viewer */
	.st-noscroll { overflow: hidden; }
	.st-lightbox {
		position: fixed; inset: 0;
		width: 100vw; height: 100dvh; max-width: none; max-height: none;
		margin: 0; padding: 0; border: 0;
		background: rgb(16 24 31 / 0.94);
		color: var(--white);
		overflow: hidden;
		touch-action: pan-y;
	}
	.st-lightbox::backdrop { background: transparent; }
	.st-lightbox__stage {
		--pad-y: clamp(3.5rem, 2rem + 4vw, 5rem);
		--pad-x: clamp(0.75rem, 0.5rem + 4vw, 6rem);
		display: grid; place-items: center;
		width: 100%; height: 100%; margin: 0;
		padding: var(--pad-y) var(--pad-x);
	}
	.st-lightbox__stage img {
		max-width: calc(100vw - 2 * var(--pad-x)); max-height: calc(100dvh - 2 * var(--pad-y));
		width: auto; height: auto;
		object-fit: contain;
		border-radius: var(--radius-s);
		box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.6);
		opacity: 0; transform: scale(0.985);
		transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
		user-select: none; -webkit-user-drag: none;
	}
	.st-lightbox__stage img.is-in { opacity: 1; transform: none; }
	.st-lightbox__btn {
		position: absolute;
		display: grid; place-items: center;
		width: 3rem; height: 3rem; border-radius: 50%;
		background: rgb(255 255 255 / 0.12); color: var(--white);
		border: 1px solid rgb(255 255 255 / 0.18);
		-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
		transition: background-color var(--dur-1) var(--ease-out);
	}
	.st-lightbox__btn:hover { background: rgb(255 255 255 / 0.24); }
	.st-lightbox__close { top: 1rem; right: 1rem; }
	.st-lightbox__prev, .st-lightbox__next { top: 50%; translate: 0 -50%; }
	.st-lightbox__prev { left: 1rem; }
	.st-lightbox__next { right: 1rem; }
	.st-lightbox__count {
		position: absolute; left: 50%; bottom: 1.1rem; translate: -50% 0;
		font-size: 0.875rem; font-variant-numeric: tabular-nums; color: rgb(255 255 255 / 0.8);
	}
	.st-lightbox.is-single :is(.st-lightbox__prev, .st-lightbox__next) { display: none; }
	/* Phones: arrows at the bottom next to the counter, the photo gets the full width */
	@media (max-width: 47.99rem) {
		.st-lightbox__prev, .st-lightbox__next { top: auto; bottom: 0.5rem; translate: none; }
		.st-lightbox__prev { left: 1rem; }
		.st-lightbox__next { right: 1rem; }
	}
	.st-lightbox[open] { animation: st-fade var(--dur-2) var(--ease-out); }

	/* Headings inside narrow columns */
	.st-col .st-heading :is(h1, h2, h3) { font-size: var(--step-2); }

	/* Forms (Ninja Forms markup) */
	/* The form is built by script after load: reserve its rendered height (~940px) to avoid layout shift. */
	.nf-form-cont { --nf-gap: var(--space-5); min-height: 59rem; }
	.nf-form-cont .nf-form-fields-required { font-size: var(--step--1); color: var(--muted); margin-bottom: var(--space-4); }
	/* Success message: the text in the backend carries pasted Arial/colour styles – use the site type instead */
	.nf-form-cont .nf-response-msg { padding: var(--space-5); border-radius: var(--radius-m); background: var(--teal-50); color: var(--teal-900); }
	.nf-form-cont .nf-response-msg :is(span, font, p) { font-family: inherit !important; color: inherit !important; white-space: normal !important; }
	.nf-form-cont .nf-field-container { margin-bottom: var(--nf-gap) !important; }
	.nf-form-cont .nf-field-label label,
	.nf-form-cont .nf-field-label .nf-label-span {
		font-size: var(--step--1) !important;
		font-weight: 600 !important;
		color: var(--ink) !important;
		margin-bottom: var(--space-2);
	}
	.nf-form-cont .ninja-forms-req-symbol { color: var(--gold-700) !important; }
	.nf-form-cont :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea, select) {
		width: 100% !important;
		min-height: 3rem;
		padding: 0.75rem 1rem !important;
		background: var(--white) !important;
		border: 1px solid var(--line-strong) !important;
		border-radius: var(--radius-s) !important;
		color: var(--ink) !important;
		font-size: 1rem !important;
		box-shadow: none !important;
		transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
	}
	.nf-form-cont textarea { min-height: 9rem; resize: vertical; }
	.nf-form-cont :is(input, textarea, select):focus {
		outline: none;
		border-color: var(--teal-700) !important;
		box-shadow: 0 0 0 4px rgb(0 173 187 / 0.18) !important;
	}
	.nf-form-cont input[type="checkbox"] { width: 1.25rem; height: 1.25rem; accent-color: var(--teal-700); }
	/* Ninja Forms stretches the invisible native checkbox across the label text, which swallowed clicks on the
	   text. Let clicks pass through to the label: it toggles the checkbox (also when the drawn box is clicked). */
	.nf-form-cont .checkbox-container .nf-field-element { pointer-events: none; }
	.nf-form-cont .nf-field-description, .nf-form-cont .nf-field-description p { font-size: 0.8125rem !important; line-height: 1.5; color: var(--muted); }
	.nf-form-cont .st-nf-note { font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
	.nf-form-cont .st-nf-note strong { font-weight: 600; }
	.st-captcha-consent {
		display: grid; gap: var(--space-3); justify-items: start;
		padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-s);
		background: var(--mineral);
	}
	.st-captcha-consent p { font-size: 0.875rem; line-height: 1.5; color: var(--text); }
	.nf-form-cont :is(input[type="button"], input[type="submit"], button[type="submit"]) {
		min-height: 3rem;
		padding: 0.75rem 1.75rem !important;
		background: var(--teal-700) !important;
		color: var(--white) !important;
		border: 0 !important;
		border-radius: var(--radius-s) !important;
		font-weight: 600 !important;
		font-size: 1rem !important;
		cursor: pointer;
		transition: background-color var(--dur-1) var(--ease-out);
	}
	.nf-form-cont :is(input[type="button"], input[type="submit"]):hover { background: var(--teal-900) !important; }
	.nf-form-cont .nf-error-msg, .nf-form-cont .nf-error .nf-error-msg { color: var(--error) !important; font-size: var(--step--1); }
	.nf-form-cont .nf-error :is(input, textarea) { border-color: var(--error) !important; }
	.nf-response-msg { padding: var(--space-5); border-radius: var(--radius-m); background: var(--teal-50); color: var(--ink); }

	/* Embeds + 2-click map */
	.st-embed { max-width: 100%; overflow-x: auto; }
	.st-map {
		position: relative;
		min-height: 22rem;
		border-radius: var(--radius-l);
		overflow: hidden;
		background:
			radial-gradient(circle at 30% 40%, var(--teal-50), transparent 60%),
			repeating-linear-gradient(45deg, var(--mineral) 0 18px, var(--mineral-line) 18px 19px);
	}
	.st-map__placeholder {
		display: grid; justify-items: center; align-content: center; gap: var(--space-3);
		min-height: 22rem; padding: var(--space-6);
		text-align: center;
	}
	.st-map__pin {
		display: grid; place-items: center;
		width: 3.5rem; height: 3.5rem; border-radius: 50%;
		background: var(--white); color: var(--teal-700); box-shadow: var(--shadow-1);
	}
	.st-map__address { font-weight: 600; color: var(--ink); }
	.st-map__note { max-width: 42ch; font-size: var(--step--1); color: var(--muted); }
	.st-map__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-2); }
	.st-map iframe { width: 100%; height: 26rem; border: 0; }

	/* YouTube click-to-load */
	.st-video { position: relative; aspect-ratio: 16 / 9; max-width: 48rem; border-radius: var(--radius-l); overflow: hidden; background: var(--brand-deep); }
	.st-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
	.st-video__placeholder {
		position: absolute; inset: 0;
		display: grid; justify-items: center; align-content: center; gap: var(--space-3);
		padding: var(--space-5);
		text-align: center; color: rgb(255 255 255 / 0.8);
		background: radial-gradient(120% 90% at 50% 0%, var(--brand-bright), var(--brand-deep));
	}
	.st-video__play {
		display: grid; place-items: center;
		width: 4.5rem; height: 4.5rem; border-radius: 50%;
		background: var(--white); color: var(--teal-900);
		box-shadow: var(--shadow-2);
		transition: transform var(--dur-2) var(--ease-out);
	}
	.st-video__play svg { margin-left: 3px; }
	.st-video__play:hover { transform: scale(1.06); }
	.st-video__title { color: var(--white); font-weight: 600; max-width: 40ch; }
	.st-video__note { max-width: 46ch; font-size: 0.8125rem; line-height: 1.5; }
	.st-video__note a { color: var(--white); }

	/* Consent banner */
	.st-consent {
		position: fixed; z-index: 200;
		left: var(--space-4); right: var(--space-4);
		bottom: calc(var(--mobilebar-h) + env(safe-area-inset-bottom) + var(--space-3));
		max-width: 34rem;
		padding: var(--space-5);
		background: var(--white);
		border: 1px solid var(--line);
		border-radius: var(--radius-m);
		box-shadow: var(--shadow-2), 0 30px 60px -30px rgb(11 59 64 / 0.35);
		opacity: 0; transform: translateY(12px);
		transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
	}
	.st-consent.is-open { opacity: 1; transform: none; }
	@media (min-width: 75rem) { .st-consent { left: auto; right: var(--space-6); bottom: var(--space-6); } }
	.st-consent__title { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
	.st-consent__text { margin-top: var(--space-2); font-size: 0.875rem; line-height: 1.55; }
	.st-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-top: var(--space-4); }
	.st-consent__actions .st-btn { min-height: 2.75rem; padding-inline: 0.75rem; font-size: 0.9375rem; white-space: normal; }
	/* Opens the consent banner: a button (it is an action, not a link), styled like the footer links */
	.st-footer__consent {
		padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer;
		text-decoration: underline; text-decoration-color: var(--on-brand-line); text-underline-offset: 0.15em;
	}
	.st-footer__consent:hover { text-decoration-color: currentColor; }

	/* Contact + hours */
	.st-contact p { line-height: 1.7; }
	.st-contact__lines { display: grid; gap: var(--space-2); margin-top: var(--space-4); }
	.st-contact__lines li { display: flex; align-items: center; gap: var(--space-3); }
	.st-contact__lines .st-icon { width: 1.1rem; height: 1.1rem; color: var(--teal-500); }
	.st-contact__lines a { text-decoration: none; }

	.st-hours { display: grid; gap: var(--space-2); }
	.st-hours__row {
		display: grid; grid-template-columns: 3rem 1fr; gap: var(--space-3);
		padding-bottom: var(--space-2);
		border-bottom: 1px solid var(--line);
		font-variant-numeric: tabular-nums;
	}
	.st-hours__row:last-child { border-bottom: 0; padding-bottom: 0; }
	.st-hours dt { font-weight: 600; color: var(--ink); }
	.st-nowrap { white-space: nowrap; }

	/* Brand lockup */
	.st-brand { display: inline-flex; align-items: center; gap: 0.85rem; flex: none; }
	.st-brand__mark { width: auto; height: clamp(2.625rem, 2.2rem + 1vw, 3rem); aspect-ratio: 192 / 155; }
	.st-brand__wordmark { height: 2.1rem; width: auto; aspect-ratio: 243 / 47; flex: none; }
	.st-brand--light .st-brand__wordmark .wm-name,
	.st-brand--light .st-brand__wordmark .wm-tag { fill: var(--white); }
	.st-brand--light .st-brand__wordmark .wm-tag { fill-opacity: 0.78; }

	/* ----------------------------------------------------------------------
	   Header + navigation
	   ------------------------------------------------------------------- */
	.st-header {
		position: sticky; top: 0; z-index: 100;
		/* Solid on small screens: a backdrop-filter would trap the fixed menu panel inside the header. */
		background: var(--white);
		border-bottom: 1px solid transparent;
		transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
	}
	.st-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgb(11 59 64 / 0.4); }
	.st-header__inner {
		width: min(100% - 2 * var(--pad-inline), 88rem);
		display: flex; align-items: center; gap: var(--space-4);
		height: var(--header-h);
		transition: height var(--dur-3) var(--ease-out);
	}
	.st-header.is-scrolled .st-header__inner { height: var(--header-h-compact); }
	.st-header__brand { display: flex; flex: none; text-decoration: none; margin-right: auto; }
	@media (max-width: 26rem) { .st-header__brand .st-brand__wordmark { height: 1.7rem; } .st-header__brand .st-brand__mark { height: 2.5rem; } }
	.st-header__brand .st-brand__mark { transition: height var(--dur-3) var(--ease-out); }
	.st-header.is-scrolled .st-brand__mark { height: 2.5rem; }
	.st-header__actions { display: flex; align-items: center; gap: var(--space-3); }
	.st-header__phone { display: none; }
	.st-header__book { display: none; }

	.st-menu-btn {
		display: inline-flex; align-items: center; gap: var(--space-2);
		min-height: 3rem; padding: 0 0.875rem;
		border-radius: var(--radius-s);
		color: var(--ink); font-weight: 600; font-size: 0.9375rem;
	}
	.st-menu-btn:hover { background: var(--mineral); }
	.st-menu-btn .st-icon { width: 1.5rem; height: 1.5rem; }
	.st-menu-btn__close { display: none; }
	.st-nav-open .st-menu-btn__open { display: none; }
	.st-nav-open .st-menu-btn__close { display: block; }

	/* Mobile + tablet: full-screen panel with accordion */
	.st-nav {
		position: fixed;
		inset: var(--header-h) 0 0 0;
		z-index: 90;
		overflow-y: auto;
		overscroll-behavior: contain;
		background: var(--white);
		padding: var(--space-4) var(--pad-inline) calc(var(--mobilebar-h) + var(--space-7));
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
	}
	.st-header.is-scrolled ~ .st-nav,
	.st-header.is-scrolled .st-nav { inset-block-start: var(--header-h-compact); }
	.st-nav-open .st-nav {
		visibility: visible; opacity: 1; transform: none;
		transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s;
	}
	.st-nav-open { overflow: hidden; }

	.st-nav__list { display: grid; }
	.st-nav__item { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; }
	.st-nav__item--d0 { border-bottom: 1px solid var(--line); }
	.st-nav__link {
		display: flex; align-items: center;
		min-height: 3.5rem;
		color: var(--ink);
		font-size: 1.1875rem;
		font-weight: 500;
		text-decoration: none;
	}
	.st-nav__link[aria-current="page"], .st-nav__item.is-branch > .st-nav__link { color: var(--teal-700); }
	.st-nav__toggle {
		display: grid; place-items: center;
		width: 3rem; height: 3rem;
		border-radius: var(--radius-s);
		color: var(--muted);
	}
	.st-nav__toggle .st-icon { transition: transform var(--dur-2) var(--ease-out); }
	.st-nav__toggle[aria-expanded="true"] .st-icon { transform: rotate(180deg); }
	.st-nav__sub {
		grid-column: 1 / -1;
		max-height: 0;
		overflow: hidden;
		visibility: hidden;
		transition: max-height var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-3);
	}
	@media (max-width: 74.99rem) {
		/* "inherit", not "visible": an expanded sub-menu (current section) must stay hidden while the panel is
		   closed – otherwise its invisible links catch taps on the page below (and get keyboard focus). */
		.st-nav__toggle[aria-expanded="true"] + .st-nav__sub {
			max-height: 60rem;
			padding-bottom: var(--space-3);
			visibility: inherit;
			transition: max-height var(--dur-3) var(--ease-out), visibility 0s;
		}
	}
	.st-nav__sub .st-nav__link { min-height: 3rem; font-size: 1rem; color: var(--text); padding-left: var(--space-4); }
	.st-nav__sub--d2 .st-nav__link { padding-left: var(--space-7); font-size: 0.9375rem; }
	.st-nav__sub .st-nav__link[aria-current="page"] { color: var(--teal-700); font-weight: 600; }
	.st-nav__extras { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
	.st-nav__extras .st-btn { width: 100%; }

	@media (min-width: 75rem) {
		.st-header {
			background: rgb(255 255 255 / 0.95);
			backdrop-filter: saturate(1.6) blur(14px);
			-webkit-backdrop-filter: saturate(1.6) blur(14px);
		}
		.st-menu-btn { display: none; }
		.st-header__phone, .st-header__book { display: inline-flex; }
		.st-header__phone {
			align-items: center; gap: var(--space-2);
			gap: 0.35rem;
			color: var(--ink); font-weight: 600; font-size: 0.875rem; letter-spacing: -0.01em; word-spacing: -0.08em; text-decoration: none;
		}
		.st-header__phone { white-space: nowrap; min-height: 2.75rem; }
		.st-header__phone .st-icon { width: 1rem; height: 1rem; color: var(--teal-700); }
		.st-nav__link { white-space: nowrap; }
		.st-header__book { min-height: 2.75rem; padding-block: 0.6rem; font-size: 0.9375rem; }

		.st-nav {
			position: static; inset: auto; overflow: visible;
			padding: 0; background: none;
			visibility: visible; opacity: 1; transform: none;
			transition: none;
		}
		.st-nav__extras { display: none; }
		.st-nav__list { display: flex; align-items: center; gap: 0.15rem; }
		.st-nav__item--d0 { border: 0; display: flex; align-items: center; }
		.st-nav__item--d0 > .st-nav__link {
			min-height: 2.75rem; padding: 0 0.55rem;
			font-size: 0.9375rem; font-weight: 500;
			border-radius: var(--radius-s);
			color: var(--ink);
		}
		.st-nav__item--d0 > .st-nav__link:hover { background: var(--mineral); }
		.st-nav__item--d0.has-children > .st-nav__link { padding-right: 0.25rem; }
		.st-nav__item--d0 > .st-nav__link[aria-current="page"],
		.st-nav__item--d0.is-branch > .st-nav__link { color: var(--teal-700); }
		.st-nav__item--d0 > .st-nav__toggle { width: 1.75rem; height: 2.75rem; margin-left: -0.15rem; }
		.st-nav__item--d0 > .st-nav__toggle .st-icon { width: 1rem; height: 1rem; }

		/* Dropdown panel */
		.st-nav__sub--d1 {
			position: absolute; top: calc(100% + 0.5rem); left: -0.5rem;
			min-width: 17rem; max-height: none;
			display: block;
			padding: var(--space-3);
			background: var(--white);
			border: 1px solid var(--line);
			border-radius: var(--radius-m);
			box-shadow: var(--shadow-2);
			opacity: 0; visibility: hidden;
			transform: translateY(6px);
			transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
		}
		.st-nav__sub--d1::before { content: ""; position: absolute; inset: -0.75rem 0 auto; height: 0.75rem; }
		.st-nav__item--d0:hover > .st-nav__sub--d1,
		.st-nav__item--d0:focus-within > .st-nav__sub--d1,
		.st-nav__toggle[aria-expanded="true"] + .st-nav__sub--d1 {
			opacity: 1; visibility: visible; transform: none; max-height: none; padding-bottom: var(--space-3);
			transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s;
		}
		.st-nav__sub--d1 .st-nav__item { display: block; }
		.st-nav__sub--d1 .st-nav__toggle { display: none; }
		.st-nav__sub--d1 .st-nav__link {
			min-height: 2.5rem; padding: 0.45rem 0.75rem;
			border-radius: 10px;
			font-size: 0.9375rem; color: var(--ink);
		}
		.st-nav__sub--d1 .st-nav__link:hover { background: var(--mineral); color: var(--teal-900); }
		/* "inherit": hidden while its dropdown is closed, shown with it */
		.st-nav__sub--d2 { display: block; visibility: inherit; max-height: none; position: static; padding: 0 0 0 0.75rem; transition: none; }
		.st-nav__sub--d2 .st-nav__link { padding-left: 0.75rem; font-size: 0.875rem; color: var(--text); min-height: 2.25rem; }
		.st-nav__sub--d2 .st-nav__link::before {
			content: ""; width: 0.375rem; height: 1px; margin-right: 0.6rem; background: var(--gold-500);
		}
	}

	/* Sticky mobile action bar */
	.st-mobilebar {
		position: fixed; inset: auto 0 0 0; z-index: 95;
		display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25rem;
		padding: 0.25rem 0.5rem calc(0.25rem + env(safe-area-inset-bottom));
		background: rgb(255 255 255 / 0.97);
		backdrop-filter: blur(14px);
		-webkit-backdrop-filter: blur(14px);
		border-top: 1px solid var(--line);
	}
	.st-mobilebar a {
		display: grid; justify-items: center; align-content: center; gap: 0.125rem;
		min-height: 2.75rem;
		border-radius: var(--radius-s);
		color: var(--ink); font-size: 0.6875rem; font-weight: 600; line-height: 1.2; letter-spacing: 0.01em; text-decoration: none;
	}
	.st-mobilebar a:hover, .st-mobilebar a[aria-current] { background: var(--mineral); color: var(--ink); }
	.st-mobilebar .st-icon { width: 1.125rem; height: 1.125rem; color: var(--teal-700); }
	/* Tonal, not filled: Termin leads without shouting. */
	.st-mobilebar__primary { background: rgb(0 173 187 / 0.14); color: var(--teal-900) !important; }
	.st-mobilebar__primary .st-icon { color: var(--teal-700); }
	.st-mobilebar__primary:hover { background: rgb(0 173 187 / 0.22) !important; }
	body { padding-bottom: calc(var(--mobilebar-h) + env(safe-area-inset-bottom)); }
	/* Desktop widths below 1536px: phone collapses to its icon; below 1408px the wordmark yields to the nav. */
	@media (min-width: 75rem) and (max-width: 95.99rem) {
		.st-header__phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
		.st-header__phone { justify-content: center; width: 2.75rem; border-radius: var(--radius-s); }
		.st-header__phone:hover { background: var(--mineral); }
	}
	@media (min-width: 75rem) and (max-width: 87.99rem) {
		.st-header__brand .st-brand__wordmark { display: none; }
	}
	@media (min-width: 75rem) {
		.st-mobilebar { display: none; }
		body { padding-bottom: 0; }
	}

	/* ----------------------------------------------------------------------
	   Page head (sub-pages)
	   ------------------------------------------------------------------- */
	.st-pagehead {
		position: relative;
		padding-block: clamp(2rem, 0.4rem + 6.5vw, 7rem) clamp(1.5rem, 0.9rem + 3vw, 4rem);
		overflow: hidden;
		isolation: isolate;
	}
	.st-pagehead::after {
		content: "";
		position: absolute; inset: auto 0 0 0; height: 1px;
		background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
	}
	.st-pagehead__context {
		display: inline-flex; align-items: center; gap: var(--space-2);
		margin-bottom: var(--space-4);
		color: var(--gold-700);
		font-size: var(--step--1); font-weight: 600;
		text-decoration: none;
	}
	.st-pagehead__context::before { content: ""; width: 1.5rem; height: 1px; background: var(--gold-500); }
	/* Long compound words (e.g. "Jugendzahnheilkunde") must not be broken mid-word on wide screens */
	.st-pagehead h1 { max-width: 24em; hyphens: manual; }
	/* Page titles in the gold of the SAMTWEISS wordmark; all other headings stay dark */
	:is(.st-pagehead, .st-tm-head, .st-hero__text) h1 { color: var(--gold-600); }
	.st-pagehead__sub { max-width: 56ch; margin-top: var(--space-5); font-size: var(--step-1); line-height: 1.55; color: var(--muted); }
	/* Two small facets from the wordmark drift gently on the right */
	.st-pagehead__facets {
		position: absolute; z-index: -1;
		right: max(1rem, calc((100vw - var(--container)) / 2 + 4rem));
		top: 22%;
		width: clamp(4.5rem, 3rem + 4vw, 8rem);
		opacity: 0.6;
		pointer-events: none;
	}
	.st-pagehead__facets--b {
		right: max(0.5rem, calc((100vw - var(--container)) / 2 - 1rem));
		top: auto; bottom: 16%;
		width: clamp(5rem, 3.5rem + 4.5vw, 9rem);
		opacity: 0.5;
	}
	@media (max-width: 47.99rem) {
		.st-pagehead__facets { width: 3.5rem; right: 1rem; top: 1rem; opacity: 0.4; }
		.st-pagehead__facets--b { display: none; }
	}
	.st-motion .st-pagehead__facets { animation: st-float 16s ease-in-out infinite alternate; }
	.st-motion .st-pagehead__facets--b { animation-duration: 19s; animation-delay: -7s; animation-direction: alternate-reverse; }

	/* Faint blurred practice photo behind page heads (header picture of the former site) */
	.st-backdrop { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
	.st-backdrop__img {
		width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
		opacity: 0.4; filter: saturate(0.8);
		-webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 38%, transparent);
		mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 38%, transparent);
	}
	@keyframes st-float {
		from { transform: translate(0, 0) rotate(0deg); }
		50% { transform: translate(10px, -14px) rotate(4deg); }
		to { transform: translate(-8px, 6px) rotate(-3deg); }
	}

	/* ----------------------------------------------------------------------
	   Footer
	   ------------------------------------------------------------------- */
	.st-footer {
		margin-top: calc(var(--space-section) * 0.5);
		background: var(--brand-surface);
		color: var(--on-brand-soft);
		font-size: var(--step--1);
	}
	.st-footer a:not(.st-btn) { color: var(--on-brand); text-decoration-color: var(--on-brand-line); }
	.st-footer a:not(.st-btn):hover { color: var(--on-brand); text-decoration-color: var(--on-brand); }
	.st-footer__grid {
		display: grid; gap: var(--space-5) var(--gutter);
		padding-block: clamp(2rem, 1.5rem + 2vw, 3.25rem) var(--space-5);
	}
	@media (min-width: 48rem) { .st-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--gutter); } }
	@media (min-width: 64rem) { .st-footer__grid { grid-template-columns: 1.05fr 1fr 1.3fr 0.95fr; } }
	/* Phones book via the action bar ("Termin"), so the footer column is left out there. */
	@media (max-width: 47.99rem) { .st-footer__book { display: none; } }
	.st-footer h2 {
		margin-bottom: var(--space-3);
		color: var(--on-brand);
		font-family: var(--font-sans);
		font-size: 0.9375rem;
		font-weight: 600;
		letter-spacing: 0;
	}
	/* Logo as in the header (side by side), seals beside it on phones and below it from tablet width */
	.st-footer__brand { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
	@media (min-width: 48rem) { .st-footer__brand { display: grid; justify-content: start; align-content: start; } }
	.st-footer__brand .st-brand { gap: 0.6rem; }
	.st-footer__brand .st-brand__mark { height: 2.75rem; }
	.st-footer__brand .st-brand__wordmark { height: 1.6rem; }
	.st-footer .st-contact p { line-height: 1.55; }
	.st-footer .st-contact__lines { gap: var(--space-1); margin-top: var(--space-3); }
	/* Phones: street and town on one line (the action bar below covers call, booking and directions) */
	@media (max-width: 47.99rem) {
		.st-footer .st-contact p br:has(+ .st-contact__city) { display: none; }
		.st-footer .st-contact__street::after { content: ", "; }
	}
	/* Opening hours: one line per day, no rules */
	.st-footer .st-hours { gap: 0.2rem; }
	.st-footer .st-hours__row { grid-template-columns: 2.25rem 1fr; padding-bottom: 0; border-bottom: 0; }
	.st-footer .st-contact__lines .st-icon { color: var(--on-brand); }
	.st-footer .st-contact__lines :is(li > .st-icon, .st-mailicon) { opacity: 0.85; }
	/* E-mail: on hover the closed envelope gives way to the open one (footer and home) */
	.st-mailicon { display: grid; flex: none; }
	.st-mailicon > .st-icon { grid-area: 1 / 1; transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out); }
	.st-mailicon > .st-mailicon__open { opacity: 0; transform: translateY(2px); }
	.st-contact__lines li:has(a[href^="mailto:"]:hover) .st-mailicon > .st-icon:not(.st-mailicon__open) { opacity: 0; }
	.st-contact__lines li:has(a[href^="mailto:"]:hover) .st-mailicon > .st-mailicon__open { opacity: 1; transform: translateY(-1px); }
	.st-footer .st-hours dt { color: var(--on-brand); }
	.st-footer__note { margin-top: var(--space-3); }
	.st-footer__links { display: grid; gap: var(--space-2); }
	.st-footer__links a { text-decoration: none; }
	.st-footer__links a:hover { text-decoration: underline; }
	.st-footer__seals { display: flex; align-items: center; gap: var(--space-3); }
	.st-footer__seals img { width: 2.5rem; height: auto; }
	/* Phones: logo left, both seals small on the right of the same row */
	@media (max-width: 47.99rem) {
		.st-footer__brand { flex-wrap: nowrap; }
		.st-footer__brand .st-brand__mark { height: 2.25rem; }
		.st-footer__brand .st-brand__wordmark { height: 1.3rem; }
		.st-footer__seals { gap: var(--space-2); }
		.st-footer__seals img { width: 1.9rem; }
		.st-footer .st-jameda { padding: 0.25rem 0.4rem 0.3rem; }
		.st-footer .st-jameda__label { font-size: 0.5rem; line-height: 1.15; max-width: 12ch; }
		.st-footer .st-jameda__grade { padding: 0.1rem 0.45rem 0.2rem; font-size: 0.5625rem; }
		.st-footer .st-jameda__grade strong { font-size: 0.9375rem; }
	}
	@media (max-width: 22.49rem) {
		.st-footer__brand { flex-wrap: wrap; }
		/* Very small phones: the menu button shows only its icon (label stays for screen readers) */
		.st-menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	}
	.st-jameda {
		display: grid; justify-items: center; gap: 0.25rem;
		padding: 0.4rem 0.6rem 0.5rem;
		border: 1px solid var(--on-brand-line);
		border-radius: var(--radius-s);
		text-decoration: none !important;
		line-height: 1.2;
		transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
	}
	.st-jameda:hover { border-color: rgb(255 255 255 / 0.5); background: rgb(255 255 255 / 0.04); }
	.st-jameda__label { font-size: 0.5625rem; color: var(--on-brand); text-align: center; max-width: 13ch; }
	.st-jameda__grade {
		display: grid; justify-items: center;
		padding: 0.2rem 0.6rem 0.3rem;
		border-radius: 8px;
		background: var(--white);
		color: var(--brand-deep);
		font-size: 0.6875rem; font-weight: 600;
	}
	.st-jameda__grade strong { font-size: 1rem; line-height: 1.1; color: var(--brand-deep); }
	.st-footer__bottom {
		display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4);
		padding-block: var(--space-4);
		border-top: 1px solid var(--on-brand-line);
		font-size: 0.8125rem;
	}
	/* Social: quiet outline circles; on hover they fill with the network's own colours */
	.st-social { display: flex; gap: var(--space-2); }
	.st-social__link {
		position: relative; isolation: isolate; overflow: hidden;
		display: grid; place-items: center;
		width: 2.5rem; height: 2.5rem; border-radius: 50%;
		border: 1px solid var(--on-brand-line);
		color: var(--white) !important; text-decoration: none !important;
		transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
	}
	.st-social__link::before {
		content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
		transform: scale(0); transition: transform 380ms var(--ease-out);
	}
	.st-social__link--facebook::before { background: #1877f2; }
	.st-social__link--instagram::before { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
	.st-social__link svg { transition: transform 380ms var(--ease-out); }
	.st-social__link:hover, .st-social__link:focus-visible { transform: translateY(-3px); border-color: transparent; box-shadow: 0 10px 22px -10px rgb(0 0 0 / 0.55); }
	.st-social__link:hover::before, .st-social__link:focus-visible::before { transform: scale(1); }
	.st-social__link--instagram:hover svg { transform: rotate(-8deg) scale(1.08); }
	.st-social__link--facebook:hover svg { transform: scale(1.08); }
	.st-footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
	.st-footer__legal a { text-decoration: none; color: var(--on-brand); }
	.st-footer__legal a:hover { color: var(--on-brand); text-decoration: underline; }
}

/* --------------------------------------------------------------------------
   Pages: front page
   ----------------------------------------------------------------------- */
@layer pages {
	.st-hero {
		position: relative;
		padding-block: clamp(2rem, 1rem + 4vw, 5rem) clamp(3rem, 2rem + 4vw, 6rem);
		overflow: hidden;
		isolation: isolate;
	}
	.st-hero__grid { display: grid; gap: var(--space-7); align-items: center; }
	@media (min-width: 64rem) {
		.st-hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(3rem, 2rem + 3vw, 6rem); }
	}
	.st-hero__context {
		display: inline-flex; align-items: center; gap: var(--space-3);
		color: var(--gold-700); font-size: var(--step--1); font-weight: 600;
	}
	.st-hero__context::before { content: ""; width: 2rem; height: 1px; background: var(--gold-500); }
	.st-hero h1 { margin-top: var(--space-4); font-size: clamp(2.0625rem, 1.109rem + 4.239vw, 4.5rem); line-height: 1.04; letter-spacing: -0.025em; }
	.st-hero__lead { margin-top: var(--space-5); max-width: 40ch; font-size: var(--step-1); line-height: 1.55; color: var(--text); }
	.st-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
	/* Home title: gold that catches the light from above, with a fine relief (matches the wordmark below) */
	.st-hero__text h1 {
		background: linear-gradient(170deg, #a8925c 10%, #8a7748 45%, #6f5e37 80%);
		-webkit-background-clip: text; background-clip: text;
		-webkit-text-fill-color: transparent;
		filter: drop-shadow(0 1px 0 #fff) drop-shadow(0 4px 6px rgb(124 106 64 / 0.3));
	}
	@media (forced-colors: active) { .st-hero__text h1 { -webkit-text-fill-color: currentColor; background: none; filter: none; } }
	/* SAMTWEISS in the lead: set like the raised letters on the reception wall – spaced serif capitals
	   in brushed gold with a soft relief shadow; a light glides over it once after the page has loaded. */
	.st-wordmark {
		font-family: var(--font-serif); font-weight: 500; font-size: 1.04em;
		letter-spacing: 0.16em; margin-right: -0.16em; white-space: nowrap;
		color: var(--gold-700);
		/* Even dark gold at both ends (start and rest), the bright gleam in the middle third only */
		background: linear-gradient(100deg, #7c6a40 0%, #86734a 16%, #7c6a40 33%, #a8925c 44%, #e4d6ab 50%, #a8925c 56%, #7c6a40 67%, #86734a 84%, #7c6a40 100%) 0 0 / 300% 100%;
		-webkit-background-clip: text; background-clip: text;
		-webkit-text-fill-color: transparent;
		filter: drop-shadow(0 1px 0 rgb(255 255 255 / 0.9)) drop-shadow(0 2px 2px rgb(124 106 64 / 0.28));
		background-position: 100% 0;
	}
	.st-motion .st-wordmark { animation: st-gleam 2200ms var(--ease-inout) 1300ms both; }
	@keyframes st-gleam { from { background-position: 100% 0; } to { background-position: 0 0; } }
	@media (forced-colors: active) { .st-wordmark { -webkit-text-fill-color: currentColor; background: none; filter: none; } }
	.st-hero__media { position: relative; }
	.st-hero__frame {
		position: relative;
		aspect-ratio: 4 / 3;
		overflow: hidden;
		border-radius: var(--radius-l);
		/* Faceted cut taken from the elephant's polygon geometry */
		clip-path: polygon(14% 0, 100% 0, 100% 82%, 86% 100%, 0 100%, 0 18%);
		background: var(--mineral);
	}
	.st-hero__pic { position: absolute; inset: 0; }
	.st-hero__pic img {
		position: absolute; inset: 0;
		width: 100%; height: 100%;
		object-fit: cover;
		opacity: 0;
		transition: opacity 1.2s var(--ease-inout);
	}
	/* The new photo fades in over the old one, which stays opaque underneath: no washed-out midpoint. */
	.st-hero__pic img.is-leaving { z-index: 1; opacity: 1; }
	.st-hero__pic img.is-active { z-index: 2; opacity: 1; }
	.st-hero__pic.is-playing img:is(.is-active, .is-leaving) { animation: st-kenburns 4.4s linear both; }
	.st-hero__pic.is-paused img { animation-play-state: paused; }
	@keyframes st-kenburns { from { transform: scale(1); } to { transform: scale(1.05); } }
	.st-hero__pause {
		position: absolute; z-index: 3;
		left: var(--space-4); bottom: var(--space-4);
		display: grid; place-items: center;
		width: 2.75rem; height: 2.75rem;
		border: 0; border-radius: var(--radius-pill);
		background: rgb(255 255 255 / 0.82);
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
		color: var(--ink);
		cursor: pointer;
		transition: background var(--dur-1) var(--ease-out);
	}
	.st-hero__pause:hover { background: var(--white); }
	.st-hero__pause[hidden] { display: none; }
	.st-hero__pause .st-icon { width: 1rem; height: 1rem; }
	.st-hero__pause .st-hero__pause-on,
	.st-hero__pause[aria-pressed="true"] .st-hero__pause-off { display: none; }
	.st-hero__pause[aria-pressed="true"] .st-hero__pause-on { display: block; }
	.st-hero__facets {
		position: absolute; z-index: 1;
		width: clamp(7rem, 5rem + 8vw, 12rem);
		pointer-events: none;
	}
	.st-hero__facets--a { top: -1.75rem; left: -1.5rem; }
	.st-hero__facets--b { right: -1.25rem; bottom: -2rem; width: clamp(5rem, 4rem + 5vw, 8rem); rotate: 160deg; }

	.st-glance { padding-block: 0 calc(var(--space-section) / 2); }
	.st-glance__grid { display: grid; gap: var(--gutter); }
	@media (min-width: 48rem) { .st-glance__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
	@media (min-width: 75rem) { .st-glance__grid { grid-template-columns: 1fr 1.15fr 1fr; } }
	.st-glance__card {
		display: grid; align-content: start; gap: var(--space-4);
		padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
		border-radius: var(--radius-m);
		background: var(--mineral);
	}
	.st-glance__card h2 { font-size: var(--step-2); }
	.st-glance__card--booking {
		position: relative;
		display: flex; flex-direction: column; align-items: flex-start;
		background: var(--brand-surface); color: var(--on-brand-soft);
		overflow: hidden; isolation: isolate;
	}
	.st-glance__facets { position: absolute; z-index: -1; right: -1.5rem; bottom: -1.5rem; width: 11rem; opacity: 0.35; }
	.st-glance__card--booking h2 { color: var(--on-brand); }
	.st-glance__card--booking .st-btn { justify-self: start; margin-top: auto; }
	.st-glance__note { color: var(--muted); font-size: var(--step--1); }
	@media (min-width: 48rem) and (max-width: 74.99rem) { .st-glance__card--booking { grid-column: 1 / -1; } }

	.st-welcome__grid { display: grid; gap: var(--space-7); align-items: center; }
	@media (min-width: 64rem) { .st-welcome__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
	.st-welcome__portrait { position: relative; max-width: 24rem; }
	.st-welcome__portrait img {
		width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
		border-radius: var(--radius-l);
	}
	/* Portraits stacked: the active one fades in over the other */
	.st-welcome__portrait img + img { position: absolute; inset: 0; height: 100%; }
	.st-welcome__portrait img:not(.is-active) { opacity: 0; }
	.st-welcome__portrait img { transition: opacity 1400ms var(--ease-inout); }
	.st-welcome__text > p:first-child { font-size: var(--step-1); line-height: 1.6; color: var(--ink); }
	.st-welcome__sign { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--line); }
	.st-welcome__sign strong { font-family: var(--font-serif); font-size: var(--step-1); font-weight: 500; }

	.st-quote {
		padding-block: calc(var(--space-section) * 0.55);
		text-align: center;
	}
	.st-quote blockquote p {
		max-width: 26ch; margin-inline: auto;
		font-family: var(--font-serif); font-style: italic; font-weight: 400;
		font-size: var(--step-3); line-height: 1.2; color: var(--ink);
		text-wrap: balance;
	}
	.st-quote cite { display: block; margin-top: var(--space-5); font-style: normal; color: var(--gold-700); font-weight: 600; font-size: var(--step--1); }


	/* ----------------------------------------------------------------------
	   Hero: cinematic mode (desktop, motion allowed; <html class="st-cine"> set in <head>).
	   The section becomes a scroll track; the stage sticks while the photo
	   grows from its faceted frame to the full stage.
	   ------------------------------------------------------------------- */
	.st-hero__slot { position: relative; }
	.st-cine .st-hero {
		height: calc(var(--stage-h) + 95svh);
		padding: 0;
		overflow: visible;
		--stage-h: calc(100svh - var(--header-h-compact));
	}
	.st-cine .st-hero .st-hero__stage {
		position: sticky;
		top: var(--header-h-compact);
		height: var(--stage-h);
		display: grid;
		align-items: center;
		overflow: hidden;
	}
	.st-cine .st-hero .st-hero__slot { aspect-ratio: 4 / 3; }
	.st-cine .st-hero .st-hero__frame {
		position: absolute;
		inset: 0;
		z-index: 2;
		aspect-ratio: auto;
		border-radius: 0;
		background: none;
		animation: none;
		will-change: clip-path;
	}
	.st-cine .st-hero .st-hero__pic {
		animation: none;
		transform-origin: 0 0;
		will-change: transform;
	}
	.st-cine .st-hero .st-hero__text { position: relative; z-index: 1; will-change: opacity, transform; }
	/* Above the photo, which sits on layer 2 of the stage in this mode */
	.st-cine .st-hero .st-hero__facets { z-index: 3; will-change: opacity; }
	.st-cine .st-hero .st-hero__frame { animation: st-fade 900ms var(--ease-out) 150ms both; }
	/* Walking in: after the zoom the camera moves on into the room, the floor fades
	   into the page and the cards below slide up over the photo as frosted glass. */
	.st-cine .st-hero { height: calc(var(--stage-h) + 95svh + var(--walk-len)); --walk-len: 42svh; }
	.st-cine .st-hero .st-hero__stage::after {
		content: ""; position: absolute; inset: auto 0 0 0; z-index: 3; height: 55%;
		background: linear-gradient(to bottom, rgb(255 255 255 / 0), rgb(255 255 255 / 0.55) 55%, var(--surface));
		opacity: var(--walk, 0); pointer-events: none;
	}
	.st-cine .st-hero .st-hero__pic img { filter: brightness(calc(1 + var(--walk, 0) * 0.06)); }
	/* At least as tall as the overlap, so the hero never reaches into the next section */
	.st-cine .st-glance { position: relative; z-index: 3; margin-top: -42svh; min-height: 42svh; }
	.st-cine .st-glance ~ * { position: relative; z-index: 3; }
	.st-cine .st-glance__card:not(.st-glance__card--booking) {
		background: rgb(255 255 255 / 0.8);
		-webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
		box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.7), var(--shadow-2);
	}
	.st-cine .st-glance__card--booking { box-shadow: var(--shadow-2); }

	/* ----------------------------------------------------------------------
	   Practice areas as a scroll story
	   ------------------------------------------------------------------- */
	.st-story { padding-block: calc(var(--space-section) / 2); }
	.st-story__media { display: none; }
	.st-story__steps { display: grid; gap: var(--gutter); }
	.st-story__step {
		display: grid; align-content: start; gap: var(--space-3);
		padding-bottom: var(--space-6);
		border-bottom: 1px solid var(--line);
	}
	.st-story__step:last-child { border-bottom: 0; }
	.st-story__img { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 16 / 10; background: var(--mineral); margin-bottom: var(--space-3); }
	.st-story__img img { width: 100%; height: 100%; object-fit: cover; }
	.st-story__step h3 { font-size: var(--step-3); }
	.st-story__step p { max-width: 48ch; }
	.st-story__more {
		display: inline-flex; align-items: center; gap: var(--space-2);
		justify-self: start; min-height: 2.75rem;
		font-weight: 600; text-decoration: none;
	}
	.st-story__more .st-icon { width: 1rem; height: 1rem; transition: transform var(--dur-2) var(--ease-out); }
	.st-story__more:hover .st-icon { transform: translateX(3px); }

	@media (min-width: 64rem) {
		.st-story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 2rem + 4vw, 7rem); align-items: start; }
		.st-story__media {
			display: block;
			position: sticky;
			top: calc(var(--header-h-compact) + (100svh - var(--header-h-compact) - min(54svh, 30rem)) / 2);
			height: min(54svh, 30rem);
			border-radius: var(--radius-l);
			overflow: hidden;
			background: var(--mineral);
			clip-path: polygon(10% 0, 100% 0, 100% 88%, 90% 100%, 0 100%, 0 12%);
		}
		.st-story__figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 700ms var(--ease-out); }
		.st-story__figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1400ms var(--ease-out); }
		.st-story__figure.is-active { opacity: 1; }
		.st-story__figure.is-active img { transform: scale(1); }
		.st-story__ticks { position: absolute; left: var(--space-6); bottom: var(--space-6); display: flex; gap: 0.4rem; }
		.st-story__ticks li { width: 1.5rem; height: 3px; border-radius: 3px; background: rgb(255 255 255 / 0.5); transition: width var(--dur-3) var(--ease-out), background-color var(--dur-3) var(--ease-out); }
		.st-story__ticks li.is-active { width: 3rem; background: var(--white); }
		.st-story__img { display: none; }
		.st-story__steps { gap: 0; }
		.st-story__step {
			min-height: min(50svh, 28rem);
			align-content: center;
			border: 0; padding: 0;
		}
		/* Inactive steps step back via colour, not opacity, so text keeps readable contrast. */
		.st-story__step :is(h3, p, .st-story__more) { transition: color 500ms var(--ease-out); }
		.st-story__step:not(.is-active) h3 { color: var(--text-faint); }
		.st-story__step:not(.is-active) :is(p, .st-story__more) { color: var(--muted); }
		.st-story__step:first-child { min-height: min(42svh, 24rem); align-content: start; padding-top: 6svh; }
		.st-story__step h3 { font-size: var(--step-2); }
	}

	/* Quotes light up word by word while scrolling (JS wraps words) */
	.st-fill-word { transition: color 260ms var(--ease-out); }
	.js [data-fill] .st-fill-word { color: var(--text-faint); }
	.js [data-fill] .st-fill-word.is-lit { color: var(--ink); }

	.st-news__head { text-align: center; margin-bottom: var(--space-4); }
	.st-news .st-section { padding-block: calc(var(--space-section) / 3); }
	/* News: original layout (text left, picture right), set smaller and tighter */
	.st-news .st-flow { row-gap: var(--space-4); }
	.st-news .st-prose { font-size: var(--step--1); line-height: 1.6; }
	.st-news .st-prose :is(h2, h3, h4) { font-size: var(--step-1); }
	.st-news .st-prose > * + * { margin-top: 0.7em; }
	.st-news .st-img img { width: auto; max-width: 100%; max-height: 10rem; }
	.st-news .st-flow > .st-rule { margin-block: var(--space-2); }
	@media (min-width: 64rem) {
		.st-news .st-col--6.st-col--first { --span: 8; padding-right: var(--space-6); }
		.st-news .st-col--6:not(.st-col--first) { --span: 4; align-self: center; justify-items: center; }
	}

	/* Home: the team photo opens the footer – it rises out of the white page and stands on the turquoise */
	.st-team-stage {
		position: relative;
		padding-top: var(--space-6);
		background: linear-gradient(var(--white) 0 52%, transparent 52%);
		text-align: center;
	}
	.st-team-stage__inner { max-width: 72rem; margin-inline: auto; padding-inline: var(--pad-inline); }
	.st-team-stage__img {
		display: block; width: 100%; height: auto;
		/* soft on all four sides: top into the white page, bottom into the footer, sides into both */
		-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 64%, transparent 98%), linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
		-webkit-mask-composite: source-in;
		mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 64%, transparent 98%), linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
		mask-composite: intersect;
		transform-origin: 50% 100%;
	}
	.st-motion .st-team-stage__img {
		transform: translate3d(0, var(--ty, 0px), 0) scale(var(--ts, 1));
		opacity: var(--to, 1);
		will-change: transform, opacity;
	}
	.st-team-stage__link {
		position: relative; z-index: 1;
		display: inline-flex; align-items: center; gap: 0.5rem;
		margin-top: calc(-1 * clamp(2rem, 1rem + 4vw, 5rem));
		padding: 0.7rem 1.4rem;
		border: 1px solid rgb(255 255 255 / 0.45); border-radius: var(--radius-pill);
		background: rgb(255 255 255 / 0.08);
		-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
		color: var(--white) !important; font-weight: 600; text-decoration: none !important;
		transition: background-color var(--dur-2) var(--ease-out);
	}
	.st-team-stage__link:hover { background: rgb(255 255 255 / 0.18); }
	.st-team-stage__link .st-icon { width: 1.1rem; height: 1.1rem; transition: transform var(--dur-2) var(--ease-out); }
	.st-team-stage__link:hover .st-icon { transform: translateX(3px); }
	.st-main--home + .st-footer { margin-top: 0; }
	.st-team-stage + .st-container .st-footer__grid { padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
	.st-photo { margin: 0; }
	.st-photo img { width: 100%; border-radius: var(--radius-l); }
}

/* --------------------------------------------------------------------------
   Motion
   ----------------------------------------------------------------------- */
@layer utilities {
	@keyframes st-pop { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }
	@keyframes st-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
	@keyframes st-unveil { from { clip-path: polygon(14% 0, 14% 0, 14% 100%, 14% 100%, 0 100%, 0 18%); } }
	@keyframes st-fade { from { opacity: 0; } to { opacity: 1; } }
	@keyframes st-drift { from { opacity: 0; transform: translate(-12px, 10px) rotate(-6deg); } to { opacity: 1; transform: none; } }

	/* Scroll reveal: only when JS runs, never hides content otherwise */
	.js [data-reveal] {
		opacity: 0;
		transform: translateY(12px);
		transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
		transition-delay: calc(var(--reveal-i, 0) * 60ms);
	}
	.js [data-reveal].is-visible { opacity: 1; transform: none; }

	/* Front-page entrance: one orchestrated sequence */
	.js .st-hero__context, .js .st-hero h1, .js .st-hero__lead, .js .st-hero__actions {
		animation: st-rise 640ms var(--ease-out) both;
	}
	.js .st-hero h1 { animation-delay: 80ms; }
	.js .st-hero__lead { animation-delay: 160ms; }
	.js .st-hero__actions { animation-delay: 240ms; }
	html.js:not(.st-cine) .st-hero .st-hero__frame { animation: st-unveil 1100ms var(--ease-inout) 120ms both; }
	/* Fill "backwards" only: once in, the scroll script controls their opacity (fade-out while zooming) */
	.js .st-hero__facets { animation: st-drift 900ms var(--ease-out) 700ms backwards; }

	/* Gentle parallax where scroll-driven animations exist */
	@supports (animation-timeline: view()) {
		html:not(.st-cine) .st-hero .st-hero__pic {
			animation: st-parallax linear both;
			animation-timeline: view();
			animation-range: cover 0% cover 100%;
		}
		@keyframes st-parallax {
			from { transform: scale(1.1) translateY(-3%); }
			to { transform: scale(1.1) translateY(3%); }
		}
	}

	/* App-like page transitions (the @view-transition rule itself sits at the end of the file) */
	.st-header { view-transition-name: st-header; }
	.st-mobilebar { view-transition-name: st-mobilebar; }
	::view-transition-old(root) { animation: st-vt-out 180ms var(--ease-inout) both; }
	::view-transition-new(root) { animation: st-vt-in 360ms var(--ease-out) both; }
	@keyframes st-vt-out { to { opacity: 0; transform: translateY(-8px); } }
	@keyframes st-vt-in { from { opacity: 0; transform: translateY(14px); } }

	@media (prefers-reduced-motion: reduce) {
		html { scroll-behavior: auto; }
		*, *::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;
		}
		.st-hero__frame img, .st-hero__pic { animation: none !important; transform: none !important; }
		.js [data-reveal] { opacity: 1; transform: none; }
	}
}

/* Cross-document view transitions (Chrome, Edge, Safari 18.2+); others navigate normally. */
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
}

/* --------------------------------------------------------------------------
   Pages: Praxis (page-praxis.php) – the practice in pictures
   Without motion (reduced motion or no JS) every scene is a calm, static layout;
   html.st-motion (set in <head>) turns on the scroll-driven scenes.
   ----------------------------------------------------------------------- */
@layer pages {
	.st-main--praxis { overflow-x: clip; }

	/* 1 · Hero: the word "Praxis" is a window onto the photo; scrolling flies through the P */
	.st-px-hero__stage {
		position: relative; isolation: isolate; overflow: hidden;
		height: min(80svh, 48rem);
		background: var(--white);
	}
	.st-px-hero__img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
	.st-px-hero__mask { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
	.st-px-hero__title {
		font-size: clamp(3.5rem, 2rem + 8vw, 8rem); font-weight: 500; line-height: 0.9; letter-spacing: -0.035em;
	}
	.st-px-hero__lead {
		position: relative; z-index: 1;
		padding-block: var(--space-6) 0;
	}
	.st-px-hero__lead p { max-width: 44rem; font-size: var(--step-1); line-height: 1.55; color: var(--ink); text-wrap: pretty; }
	.st-px-hero__cue { display: none; }
	/* static layout: photo, title on a soft scrim, lead below */
	html:not(.st-motion) .st-px-hero__mask { padding: 0 var(--pad-inline) var(--space-6); max-width: calc(var(--container) + 2 * var(--pad-inline)); margin-inline: auto; }
	html:not(.st-motion) .st-px-hero__stage::after { content: ""; position: absolute; inset: 40% 0 0; z-index: 1; background: linear-gradient(transparent, rgb(16 24 31 / 0.55)); }
	html:not(.st-motion) .st-px-hero__title { color: var(--white); }
	html:not(.st-motion) .st-px-hero__lead { position: static; }
	html:not(.st-motion) .st-px-hero { margin-bottom: var(--space-6); }
	html:not(.st-motion) .st-px-hero__stage { overflow: visible; height: auto; display: grid; }
	html:not(.st-motion) .st-px-hero__stage > .st-px-hero__img { position: relative; height: min(70svh, 40rem); grid-area: 1 / 1; z-index: 0; }
	html:not(.st-motion) .st-px-hero__mask { grid-area: 1 / 1; align-self: end; position: relative; }
	html:not(.st-motion) .st-px-hero__stage::after { grid-area: 1 / 1; position: relative; inset: auto; height: 100%; }
	html:not(.st-motion) .st-px-hero__lead { grid-area: 2 / 1; }

	.st-motion .st-px-hero { height: 300svh; }
	.st-motion .st-px-hero__stage { position: sticky; top: 0; height: 100svh; }
	.st-motion .st-px-hero__img { transform: scale(1.12); will-change: transform, filter; filter: saturate(var(--px-sat, 1)) brightness(var(--px-bri, 1)) contrast(var(--px-con, 1)); }
	.st-motion .st-px-hero__mask {
		inset: 0; display: grid; place-items: center;
		padding-top: var(--header-h);
		background: var(--white);
		mix-blend-mode: screen; /* black letters let the photo through, white stays white */
		will-change: transform, opacity;
	}
	.st-motion .st-px-hero__title {
		color: #000;
		font-size: clamp(6rem, 27vw, 30rem); font-weight: 600; line-height: 0.8; letter-spacing: -0.05em;
	}
	.st-motion .st-px-hero__lead {
		position: absolute; inset: auto 0 0 0; z-index: 3;
		padding-block: var(--space-8) clamp(2rem, 1rem + 4vw, 4.5rem);
		background: linear-gradient(transparent, rgb(16 24 31 / 0.7));
		opacity: 0;
	}
	.st-motion .st-px-hero__lead p { color: var(--white); font-size: var(--step-2); line-height: 1.4; }
	@media (max-width: 74.99rem) { .st-motion .st-px-hero__lead { padding-bottom: calc(var(--mobilebar-h) + env(safe-area-inset-bottom) + var(--space-5)); } }
	@media (max-width: 47.99rem) { .st-motion .st-px-hero__lead p { font-size: var(--step-1); } }
	.st-motion .st-px-hero__cue {
		display: block; position: absolute; left: 50%; bottom: 1.75rem; z-index: 4;
		width: 1px; height: 3rem; translate: -50% 0;
		background: linear-gradient(var(--ink), transparent);
		animation: st-cue 1.8s var(--ease-inout) infinite;
	}
	@keyframes st-cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

	/* 2 · Intro: statement + photo wiping in */
	.st-px-intro { padding-block: var(--space-section); }
	.st-px-intro__grid { display: grid; gap: var(--space-7); align-items: center; }
	@media (min-width: 64rem) { .st-px-intro__grid { grid-template-columns: 5fr 7fr; gap: var(--space-8); } }
	.st-px-intro__text { font-family: var(--font-serif); font-size: var(--step-3); line-height: 1.2; color: var(--ink); text-wrap: balance; }
	.st-px-intro__media { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-l); overflow: hidden; }
	.st-px-intro__media img { width: 100%; height: 100%; object-fit: cover; }
	.st-motion [data-px-wipe] { clip-path: inset(0 0 0 100% round var(--radius-l)); transition: clip-path 1.3s var(--ease-inout); }
	.st-motion [data-px-wipe] img { transform: scale(1.18); transition: transform 1.8s var(--ease-out); }
	.st-motion [data-px-wipe].is-in { clip-path: inset(0 round var(--radius-l)); }
	.st-motion [data-px-wipe].is-in img { transform: none; }

	/* 3 · Rundgang: swipe on phones, pinned horizontal scroll on desktop */
	.st-px-tour { margin-top: var(--space-section); }
	.st-px-tour__head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-5); }
	.st-px-tour__head h2 { font-size: var(--step-3); }
	.st-px-tour__progress { flex: none; width: min(14rem, 40%); height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
	.st-px-tour__progress span { display: block; height: 100%; background: var(--teal-500); transform: scaleX(0); transform-origin: left; }
	.st-px-tour__track {
		display: flex; gap: var(--space-4);
		padding: 0 var(--pad-inline) var(--space-3);
		overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.st-px-tour__track::-webkit-scrollbar { display: none; }
	.st-px-tour__slide { flex: 0 0 auto; scroll-snap-align: center; }
	.st-px-tour__link { position: relative; display: block; height: min(58svh, 26rem); aspect-ratio: 4 / 3; border-radius: var(--radius-l); overflow: hidden; }
	.st-px-tour__slide--portrait .st-px-tour__link { aspect-ratio: 2 / 3; }
	.st-px-tour__link img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 900ms var(--ease-out); }
	@media (max-width: 47.99rem) { .st-px-tour__link { height: auto; width: 82vw; } .st-px-tour__slide--portrait .st-px-tour__link { width: 56vw; } }
	.st-px-tour.is-pinned .st-px-tour__stage {
		position: sticky; top: var(--header-h-compact);
		height: calc(100svh - var(--header-h-compact));
		display: flex; flex-direction: column; justify-content: center;
		overflow: hidden;
	}
	.st-px-tour.is-pinned .st-px-tour__track {
		width: max-content; overflow: visible; scroll-snap-type: none;
		padding-inline: max(var(--pad-inline), (100vw - var(--container)) / 2);
		gap: var(--space-5);
		will-change: transform;
	}
	.st-px-tour.is-pinned .st-px-tour__link { height: min(60svh, 34rem); }

	/* 4 · Impressionen: mosaic that uncovers itself, tiles tilt towards the pointer */
	.st-px-gallery { padding-block: var(--space-section); scroll-margin-top: var(--header-h-compact); }
	.st-px-gallery__head { max-width: 46rem; margin-bottom: var(--space-6); }
	.st-px-gallery__head h2 { font-size: var(--step-3); }
	.st-px-gallery__head p { margin-top: var(--space-3); }
	/* Phones/tablets: 2 columns, the first photo large, all others equal (no gaps).
	   Desktop: 6 columns with wide, tall and big tiles (order chosen in page-praxis.php to close every row). */
	.st-bento { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, 1fr); grid-auto-rows: 9.5rem; grid-auto-flow: dense; }
	.st-bento__tile--big { grid-column: span 2; grid-row: span 2; }
	@media (min-width: 48rem) { .st-bento { grid-auto-rows: 15rem; } }
	@media (min-width: 64rem) {
		.st-bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 10.5rem; gap: var(--space-4); }
		.st-bento__tile { grid-column: span 2; }
		.st-bento__tile--wide, .st-bento__tile--big { grid-column: span 4; }
		.st-bento__tile--tall, .st-bento__tile--big { grid-row: span 2; }
	}
	.st-bento__link {
		position: relative; display: block; height: 100%;
		border-radius: var(--radius-m); overflow: hidden;
		transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
		transition: transform 500ms var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
	}
	.st-bento__link::after {
		content: ""; position: absolute; inset: 0; pointer-events: none;
		background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / 0.28), transparent 45%);
		opacity: 0; transition: opacity var(--dur-3) var(--ease-out);
	}
	.st-bento__link:hover { box-shadow: var(--shadow-2); }
	.st-bento__link:hover::after { opacity: 1; }
	.st-bento__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
	.st-bento__link:hover img { transform: scale(1.05); }
	.st-motion .st-bento__tile { clip-path: inset(100% 0 0 0 round var(--radius-m)); transition: clip-path 1s var(--ease-inout) calc(var(--d, 0) * 90ms); }
	.st-motion .st-bento__tile img { transform: scale(1.25); transition: transform 1.6s var(--ease-out) calc(var(--d, 0) * 90ms); }
	.st-motion .st-bento__tile.is-in { clip-path: inset(0 round var(--radius-m)); }
	.st-motion .st-bento__tile.is-in img { transform: none; }
	.st-motion .st-bento__tile.is-in .st-bento__link:hover img { transform: scale(1.05); transition-delay: 0s; }

	/* 5 · Statement over a full-bleed photo; words light up while scrolling */
	.st-px-statement {
		position: relative; isolation: isolate; overflow: hidden;
		display: grid; align-items: center;
		min-height: min(85svh, 46rem);
		padding-block: var(--space-section);
	}
	.st-px-statement__img { position: absolute; inset: -10% 0; z-index: -2; width: 100%; height: 120%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); }
	.st-px-statement::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgb(16 24 31 / 0.3), rgb(16 24 31 / 0.62)); }
	.st-px-statement__quote p {
		max-width: 16ch; margin-inline: auto; text-align: center;
		font-family: var(--font-serif); font-style: italic; font-weight: 400;
		font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4.75rem); line-height: 1.08;
		color: var(--white); text-wrap: balance;
	}
	.js .st-px-statement [data-fill] .st-fill-word { color: rgb(255 255 255 / 0.35); }
	.js .st-px-statement [data-fill] .st-fill-word.is-lit { color: var(--white); }

	/* 6 · Next: team and jobs */
	.st-px-next { padding-block: var(--space-section) 0; }
	.st-px-next__grid { display: grid; gap: var(--space-4); }
	@media (min-width: 48rem) { .st-px-next__grid { grid-template-columns: 1fr 1fr; } }
	@media (min-width: 64rem) { .st-px-next__card { aspect-ratio: 2 / 1; } }
	.st-px-next__card {
		position: relative; isolation: isolate; display: block; overflow: hidden;
		aspect-ratio: 16 / 10; border-radius: var(--radius-l);
		color: var(--white); text-decoration: none;
	}
	.st-px-next__card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
	.st-px-next__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 45%, rgb(16 24 31 / 0.65)); }
	.st-px-next__card:hover img { transform: scale(1.05); }
	.st-px-next__title {
		position: absolute; left: var(--space-6); bottom: var(--space-5);
		display: flex; align-items: center; gap: 0.6rem;
		font-family: var(--font-serif); font-size: var(--step-3); line-height: 1.1; color: var(--white);
	}
	.st-px-next__title .st-icon { width: 1.5rem; height: 1.5rem; transition: transform var(--dur-2) var(--ease-out); }
	.st-px-next__card:hover .st-px-next__title .st-icon { transform: translateX(4px); }
	.st-px-next__card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
}

/* --------------------------------------------------------------------------
   Pages: profile of Dr. Marie-Isabelle Merensky
   ----------------------------------------------------------------------- */
@layer pages {
	.st-main--dr { overflow-x: clip; }
	.st-gold { color: var(--gold-700); font-weight: 600; }
	.st-dr-h2 { font-size: var(--step-3); margin-bottom: var(--space-6); }
	.st-dr-h2__note { font-family: var(--font-sans); font-size: var(--step--1); font-weight: 400; color: var(--muted); letter-spacing: 0; }

	/* Hero: name in large serif, portrait in the faceted frame; layers move at different speeds */
	.st-dr-hero { position: relative; isolation: isolate; padding-block: clamp(1.5rem, 1rem + 2.5vw, 3.5rem) clamp(2rem, 1.5rem + 2.5vw, 4rem); }
	.st-dr-hero::before {
		content: ""; position: absolute; z-index: -1; inset: 0 0 18% 58%;
		background: var(--mineral); border-bottom-left-radius: var(--radius-l);
	}
	@media (max-width: 63.99rem) {
		.st-dr-hero::before { inset: 0 0 auto 0; height: 14rem; border-radius: 0; }
		.st-dr-hero__media { order: -1; width: min(80%, 20rem); }
		.st-dr-hero__grid { gap: var(--space-6); }
	}
	.st-dr-hero__grid { display: grid; gap: var(--space-7); align-items: center; }
	@media (min-width: 64rem) { .st-dr-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 2rem + 3vw, 6rem); } }
	.st-dr-hero__context {
		display: inline-flex; align-items: center; gap: var(--space-3);
		color: var(--gold-700); font-size: var(--step--1); font-weight: 600;
	}
	.st-dr-hero__context::before { content: ""; width: 2.5rem; height: 1px; background: var(--gold-500); }
	.st-dr-hero__name {
		margin-top: var(--space-4);
		font-size: clamp(2.125rem, 1.2rem + 3.6vw, 4.25rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.025em;
		text-wrap: balance;
	}
	.st-dr-hero__role { margin-top: var(--space-5); font-size: var(--step-1); font-weight: 600; color: var(--gold-700); }
	.st-dr-hero__media { position: relative; max-width: 23rem; justify-self: center; width: 100%; }
	.st-dr-hero__frame {
		aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-l);
		clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%);
		background: var(--mineral);
	}
	.st-dr-hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
	.st-dr-hero__facets { position: absolute; z-index: 1; width: clamp(6rem, 4rem + 7vw, 11rem); }
	.st-dr-hero__facets--a { left: -2.5rem; top: -1.5rem; }
	.st-dr-hero__facets--b { right: -2rem; bottom: -2rem; }
	.js .st-dr-hero__name { animation: st-rise 800ms var(--ease-out) both; }
	.js .st-dr-hero__role { animation: st-rise 800ms var(--ease-out) 180ms both; }
	.js .st-dr-hero__frame { animation: st-unveil 1200ms var(--ease-inout) 100ms both; }
	.js .st-dr-hero__facets { animation: st-drift 900ms var(--ease-out) 800ms backwards; }
	.st-motion [data-dr-depth] { transform: translate3d(0, var(--dy, 0px), 0); will-change: transform; }

	/* Motto: the guiding sentence on the brand surface, an outline elephant turning slowly behind it */
	.st-dr-motto {
		position: relative; isolation: isolate; overflow: hidden;
		padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem);
		background: var(--brand-surface); text-align: center;
	}
	.st-dr-motto__mark {
		position: absolute; z-index: -1; left: 50%; top: 50%;
		width: min(60vw, 26rem); height: auto;
		opacity: 0.09;
		translate: -50% -50%;
		transform: rotate(var(--rot, 0deg)) scale(var(--sc, 1));
	}
	.st-dr-motto__quote p {
		max-width: 26ch; margin-inline: auto;
		font-family: var(--font-serif); font-style: italic; font-weight: 400;
		font-size: clamp(1.625rem, 1rem + 2.4vw, 3rem); line-height: 1.15;
		color: var(--white); text-wrap: balance;
	}
	.js .st-dr-motto [data-fill] .st-fill-word { color: rgb(255 255 255 / 0.32); }
	.js .st-dr-motto [data-fill] .st-fill-word.is-lit { color: var(--white); }

	/* Philosophy: paragraphs scroll past a sticky photo that changes with the text */
	.st-dr-story { padding-block: var(--space-section); }
	.st-dr-story__grid { display: grid; gap: var(--space-6); }
	.st-dr-story__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-l); overflow: hidden; background: var(--mineral); }
	.st-dr-story__figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 800ms var(--ease-out); }
	.st-dr-story__figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
	.st-dr-story__figure.is-active { opacity: 1; }
	.st-dr-story__figure.is-active img { transform: none; }
	.st-dr-story__text { display: grid; gap: var(--space-5); }
	.st-dr-story__para { max-width: 54ch; color: var(--text); transition: color 500ms var(--ease-out); }
	.st-dr-story__para--lead { font-family: var(--font-serif); font-size: var(--step-2); line-height: 1.4; color: var(--ink); }
	@media (min-width: 64rem) {
		.st-dr-story__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 2rem + 4vw, 6rem); align-items: start; }
		.st-dr-story__media { position: sticky; top: calc(var(--header-h-compact) + 5svh); aspect-ratio: auto; height: min(58svh, 30rem); }
		.st-dr-story__text { gap: var(--space-5); padding-block: 0 8svh; }
		.st-motion .st-dr-story__para:not(.is-active) { color: var(--muted); }
		.st-motion .st-dr-story__para--lead:not(.is-active) { color: var(--text); }
	}

	/* Career: compact list – year left, station right; a gold line fills while scrolling */
	.st-dr-career { padding-block: calc(var(--space-section) * 0.75); background: var(--mineral); }
	.st-dr-career .st-dr-h2 { margin-bottom: var(--space-5); }
	.st-dr-timeline { position: relative; display: grid; gap: var(--space-3); max-width: 52rem; padding-left: 1.75rem; --progress: 0; }
	.st-dr-timeline::before, .st-dr-timeline::after {
		content: ""; position: absolute; left: 0.35rem; top: 0.55rem; bottom: 0.55rem; width: 2px; border-radius: 2px;
	}
	.st-dr-timeline::before { background: var(--line); }
	.st-dr-timeline::after { background: var(--gold-500); transform-origin: top; transform: scaleY(var(--progress)); }
	html:not(.st-motion) .st-dr-timeline::after { transform: none; }
	.st-dr-timeline__item { position: relative; display: grid; gap: 0.1rem; }
	@media (min-width: 48rem) { .st-dr-timeline__item { grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--space-4); align-items: baseline; } }
	.st-dr-timeline__item::before {
		content: ""; position: absolute; left: -1.75rem; top: 0.45rem;
		width: 0.7rem; height: 0.7rem; border-radius: 50%;
		border: 2px solid var(--gold-500); background: var(--white);
		transition: background-color var(--dur-3) var(--ease-out);
	}
	.st-dr-timeline__item.is-lit::before, html:not(.st-motion) .st-dr-timeline__item::before { background: var(--gold-500); }
	.st-dr-timeline__year { font-family: var(--font-serif); font-size: var(--step-1); line-height: 1.3; color: var(--gold-700); white-space: nowrap; }
	.st-dr-timeline__text { color: var(--ink); line-height: 1.5; }
	.st-dr-timeline__item--peak .st-dr-timeline__text { font-weight: 600; }
	.st-dr-timeline__item--peak::before { box-shadow: 0 0 0 5px rgb(159 137 87 / 0.2); }
	.st-motion .st-dr-timeline__item :is(.st-dr-timeline__year, .st-dr-timeline__text) { transition: color 500ms var(--ease-out); }
	.st-motion .st-dr-timeline__item:not(.is-lit) .st-dr-timeline__text { color: var(--muted); }

	/* Qualifications */
	.st-dr-quals { padding-block: var(--space-section); }
	.st-dr-courses { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
	.st-dr-course {
		display: grid; gap: var(--space-2); align-content: start;
		padding: var(--space-4);
		border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white);
		transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
	}
	.st-dr-course:hover { border-color: var(--teal-100); box-shadow: var(--shadow-2); transform: translateY(-2px); }
	.st-dr-course__year { font-family: var(--font-serif); font-size: var(--step-1); line-height: 1; color: var(--teal-700); }
	.st-dr-course__title { font-size: var(--step--1); line-height: 1.5; color: var(--ink); }
	@media (max-width: 47.99rem) {
		.st-dr-courses { gap: var(--space-2); }
		.st-dr-course { grid-template-columns: 3.25rem 1fr; align-items: baseline; padding: var(--space-3) var(--space-4); }
		.st-dr-course__year { font-size: var(--step-1); }
	}
	.st-motion .st-dr-course { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out) calc(var(--d, 0) * 60ms), transform 600ms var(--ease-out) calc(var(--d, 0) * 60ms), border-color var(--dur-2), box-shadow var(--dur-2); }
	.st-motion .st-dr-course.is-in { opacity: 1; transform: none; }
	.st-motion .st-dr-course.is-in:hover { transform: translateY(-2px); transition-delay: 0s; }
	.st-dr-quals__split { display: grid; gap: var(--space-7); margin-top: var(--space-7); }
	@media (min-width: 64rem) { .st-dr-quals__split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 2rem + 3vw, 5rem); } }
	.st-dr-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
	.st-dr-tags li {
		display: inline-flex; align-items: center; gap: 0.45rem;
		padding: 0.55rem 0.95rem; border-radius: var(--radius-pill);
		background: var(--teal-50); color: var(--teal-900);
		font-size: var(--step--1); font-weight: 600; line-height: 1.3;
	}
	.st-dr-tags .st-icon { flex: none; width: 1rem; height: 1rem; color: var(--teal-700); }
	.st-dr-members { display: grid; gap: var(--space-3); }
	.st-dr-members li {
		display: grid; gap: 0.2rem;
		padding: var(--space-4) var(--space-5); border-radius: var(--radius-m);
		background: var(--brand-surface); color: var(--on-brand-soft);
	}
	.st-dr-members strong { font-family: var(--font-serif); font-size: var(--step-2); font-weight: 500; line-height: 1.05; color: var(--white); letter-spacing: 0.01em; }
	.st-dr-members span { font-size: var(--step--1); }
}

/* ==========================================================================
   Team page: the line-up – group photo, the dentists, the team on a smile line
   ========================================================================== */
@layer pages {
	.st-main--team { overflow-x: clip; }
	.st-tm-head { padding-block: clamp(1.75rem, 0.8rem + 4vw, 4.5rem) clamp(1.25rem, 0.8rem + 2vw, 2.5rem); text-align: center; }
	.st-tm-head .st-pagehead__context { justify-content: center; margin-bottom: var(--space-3); }

	/* Portrait frame: the photo is placed so the face sits in the upper third */
	.st-tm-arch {
		position: relative; overflow: hidden; isolation: isolate;
		aspect-ratio: 3 / 4;
		border-radius: var(--radius-m);
		background: var(--mineral);
		--k: 1.2;
	}
	.st-tm-doc .st-tm-arch { --k: 1.45; }
	.st-tm-arch img {
		position: absolute; max-width: none;
		height: calc(var(--k) * 100%); width: auto;
		left: calc(50% - var(--fx) * var(--k) * var(--r) * 133.333%);
		top: calc(30% - var(--fy) * var(--k) * 100%);
		transform-origin: calc(var(--fx) * 100%) calc(var(--fy) * 100%);
		transition: transform 900ms var(--ease-out);
	}

	/* The dentists: two portrait cards, the whole card leads to the profile */
	.st-tm-doctors { padding-block: 0 calc(var(--space-section) * 0.6); }
	.st-tm-doctors__list { display: grid; gap: var(--space-5); }
	@media (min-width: 48rem) { .st-tm-doctors__list { grid-template-columns: 1fr 1fr; gap: var(--gutter); } }
	.st-tm-doc {
		position: relative; display: grid; grid-template-columns: minmax(7rem, 38%) minmax(0, 1fr); gap: var(--space-5); align-items: end;
		padding: var(--space-4); border-radius: var(--radius-l); background: var(--mineral);
		transition: background-color var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
	}
	.st-tm-doc .st-tm-arch { background: var(--white); }
	.st-tm-doc__body { display: grid; gap: var(--space-2); padding-block-end: var(--space-2); }
	.st-tm-doc__job { font-size: var(--step--1); font-weight: 600; color: var(--gold-700); }
	.st-tm-doc__name { font-size: var(--step-3); line-height: 1.08; text-wrap: balance; }
	.st-tm-doc__link {
		justify-self: start; display: inline-flex; align-items: center; gap: var(--space-2);
		margin-top: var(--space-3); min-height: 2.75rem; padding: 0 1.1rem;
		border-radius: var(--radius-pill); background: var(--white);
		font-size: var(--step--1); font-weight: 600; color: var(--teal-700); text-decoration: none;
		box-shadow: inset 0 0 0 1px var(--line);
		transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
	}
	.st-tm-doc__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-l); }
	.st-tm-doc__link .st-icon { width: 1rem; height: 1rem; transition: transform var(--dur-2) var(--ease-out); }
	.st-tm-doc.has-link:hover { box-shadow: var(--shadow-2); background: var(--white); }
	.st-tm-doc.has-link:hover .st-tm-arch { background: var(--mineral); }
	.st-tm-doc.has-link:hover .st-tm-doc__link { background: var(--teal-700); color: var(--white); box-shadow: none; }
	.st-tm-doc.has-link:hover .st-tm-doc__link .st-icon { transform: translateX(3px); }
	.st-tm-doc.has-link:hover .st-tm-arch img { transform: scale(1.05); }
	.st-tm-doc__link:focus-visible { outline: none; }
	.st-tm-doc__link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
	@media (max-width: 47.99rem) {
		.st-tm-doc { grid-template-columns: 6.75rem minmax(0, 1fr); gap: var(--space-4); padding: var(--space-3); align-items: center; }
		.st-tm-doc__link { padding: 0 0.9rem; white-space: nowrap; margin-top: var(--space-2); }
		.st-tm-doc__name { font-size: var(--step-2); }
	}

	/* Intro: head and dentists over the blurred practice photo of the former site, very faint */
	.st-tm-intro { position: relative; isolation: isolate; }
	.st-tm-backdrop { position: absolute; inset: 0 0 18% 0; z-index: -1; overflow: hidden; pointer-events: none; }
	.st-tm-backdrop__facets { position: absolute; opacity: 0.55; }
	.st-tm-backdrop__facets--a { width: clamp(4rem, 3rem + 4vw, 7.5rem); left: max(1rem, calc(50% - 30rem)); top: clamp(1.5rem, 1rem + 2vw, 3rem); }
	.st-tm-backdrop__facets--b { width: clamp(5rem, 3.5rem + 5vw, 9.5rem); right: max(1rem, calc(50% - 32rem)); top: clamp(3rem, 2rem + 3vw, 5.5rem); }
	.st-motion .st-tm-backdrop__facets--a { animation: st-float 14s ease-in-out infinite alternate; }
	.st-motion .st-tm-backdrop__facets--b { animation: st-float 17s ease-in-out -6s infinite alternate-reverse; }
	.st-tm-intro .st-tm-doc {
		background: rgb(255 255 255 / 0.72);
		-webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
		box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.8), 0 1px 2px rgb(11 59 64 / 0.04);
	}
	.st-tm-intro .st-tm-doc .st-tm-arch { background: var(--mineral); }
	.st-tm-intro .st-tm-doc.has-link:hover { background: var(--white); box-shadow: var(--shadow-2); }

	/* The practice motto, quietly at the end */
	.st-tm-motto { padding-block: 0; text-align: center; }
	.st-tm-motto blockquote { display: grid; justify-items: center; gap: var(--space-4); }
	.st-tm-motto blockquote::before { content: ""; width: 2.5rem; height: 1px; background: var(--gold-500); }
	.st-tm-motto p {
		max-width: 34ch;
		font-family: var(--font-serif); font-style: italic; font-weight: 400;
		font-size: var(--step-1); line-height: 1.4; color: var(--muted); text-wrap: balance;
	}

	/* The team: arch portraits standing along a gold smile line */
	.st-tm-crew { padding-block: var(--space-4) var(--space-7); }
	.st-tm-crew__list {
		position: relative;
		display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-6) var(--space-4);
		max-width: 64rem; margin-inline: auto; padding-bottom: 2rem;
	}
	.st-tm-mate { position: relative; z-index: 1; display: grid; gap: var(--space-1); align-content: start; text-align: center; }
	.st-tm-mate .st-tm-arch { margin-bottom: var(--space-3); }
	.st-tm-mate:nth-of-type(even) { translate: 0 2rem; }
	.st-tm-mate__name { font-family: var(--font-sans); font-size: var(--step-0); font-weight: 600; line-height: 1.3; letter-spacing: 0; }
	.st-tm-mate__job { font-size: var(--step--1); line-height: 1.45; color: var(--muted); hyphens: auto; text-wrap: balance; }
	.st-tm-mate:hover .st-tm-arch img { transform: scale(1.05); }
	@media (min-width: 40rem) and (max-width: 63.99rem) {
		.st-tm-crew__list { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 0; }
		.st-tm-mate:nth-of-type(even) { translate: none; }
		.st-tm-mate:nth-of-type(3n + 2) { translate: 0 1.75rem; }
	}
	@media (min-width: 64rem) {
		.st-tm-crew__list {
			grid-template-columns: repeat(var(--n), minmax(0, 1fr));
			gap: var(--space-4) clamp(1rem, 0.4rem + 1vw, 1.75rem);
			padding-bottom: 0;
			--depth: clamp(3rem, 1rem + 3vw, 5rem);
		}
		.st-tm-mate:nth-child(n) { translate: 0 calc(var(--arc) * var(--depth)); }
		.st-tm-crew { padding-bottom: calc(clamp(3rem, 1rem + 3vw, 5rem) + 4rem); }
		.st-tm-mate .st-tm-arch { margin-bottom: 2.25rem; }
	}
	.st-tm-smile { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
	.st-tm-smile path { fill: none; stroke: var(--gold-500); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
	.st-tm-smile circle { fill: var(--white); stroke: var(--gold-500); stroke-width: 2; vector-effect: non-scaling-stroke; }
	.st-motion .st-tm-smile path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1600ms var(--ease-inout) 200ms; }
	.st-motion .st-tm-smile circle { opacity: 0; transition: opacity 400ms var(--ease-out); }
	.st-motion .is-drawn .st-tm-smile path { stroke-dashoffset: 0; }
	.st-motion .is-drawn .st-tm-smile circle { opacity: 1; }
	/* Entrance without moving the boxes (the line is measured from them): portraits rise out of their frames */
	.st-motion [data-tm-smile] .st-tm-arch { clip-path: inset(100% 0 0 0 round var(--radius-m)); transition: clip-path 1000ms var(--ease-inout) calc(var(--i) * 120ms + 150ms); }
	.st-motion [data-tm-smile] .st-tm-arch img { scale: 1.15; transition: scale 1600ms var(--ease-out) calc(var(--i) * 120ms + 150ms), transform 900ms var(--ease-out); }
	.st-motion [data-tm-smile] :is(.st-tm-mate__name, .st-tm-mate__job) { opacity: 0; transition: opacity 700ms var(--ease-out) calc(var(--i) * 120ms + 600ms); }
	.st-motion [data-tm-smile].is-drawn .st-tm-arch { clip-path: inset(0 0 0 0 round var(--radius-m)); }
	.st-motion [data-tm-smile].is-drawn .st-tm-arch img { scale: 1; }
	.st-motion [data-tm-smile].is-drawn :is(.st-tm-mate__name, .st-tm-mate__job) { opacity: 1; }
}

/* Animatable width of the slogan ornament (opens from the centre) */
@property --orn { syntax: "<percentage>"; inherits: true; initial-value: 100%; }

/* ==========================================================================
   Treatment pages: the service cards at the end are compact cross-links
   (photo + title). Overview pages (body.st-hub) keep the full cards.
   ========================================================================== */
@layer pages {
	body:not(.st-hub) .st-entry .st-cards { gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
	body:not(.st-hub) .st-entry .st-card {
		display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; align-items: center;
		gap: var(--space-3); padding: var(--space-3);
	}
	body:not(.st-hub) .st-entry .st-card__title { grid-area: 1 / 2; font-size: var(--step-0); line-height: 1.25; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: normal; }
	body:not(.st-hub) .st-entry .st-card .st-prose { grid-area: 1 / 1; font-size: 0; line-height: 0; }
	body:not(.st-hub) .st-entry .st-card .st-prose > :not(:has(img)) { display: none; }
	body:not(.st-hub) .st-entry .st-card .st-prose > * { margin: 0; }
	body:not(.st-hub) .st-entry .st-card .st-prose img {
		width: 4rem !important; height: 4rem !important; max-width: none; object-fit: cover; margin: 0;
		border-radius: var(--radius-s);
	}
	body:not(.st-hub) .st-entry .st-card__more { grid-area: 1 / 3; margin: 0; padding: 0; }
	body:not(.st-hub) .st-entry .st-card__more::after { display: none; }
	body:not(.st-hub) .st-entry .st-card__arrow { width: 2.25rem; height: 2.25rem; }
	body:not(.st-hub) .st-entry .st-card--linked:hover .st-prose img { transform: none; box-shadow: none; }
	/* The page being read */
	.st-card--current { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--teal-500); }
	.st-card--current .st-card__title { color: var(--teal-700); }
	.st-card--current .st-card__more { visibility: hidden; }
	.st-card--current:hover { transform: none; }

	/* mykie quick test: questions as calm rows, answers as large Ja/Nein pills */
	.mykie-test { max-width: 46rem !important; }
	.mykie-test > p:first-child { font-size: var(--step-1); line-height: 1.55; color: var(--ink); margin-bottom: var(--space-5); }
	#mykieQuickTest { display: grid; gap: var(--space-3); }
	#mykieQuickTest > div:not(.q) { display: none; }
	#mykieQuickTest .q {
		padding: var(--space-4) var(--space-5); border-radius: var(--radius-m);
		background: var(--mineral); color: var(--ink); line-height: 1.5;
		transition: background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
	}
	#mykieQuickTest .q:has(input:checked) { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
	#mykieQuickTest .q > strong { font-family: var(--font-serif); font-weight: 600; color: var(--gold-700); margin-right: 0.15em; }
	#mykieQuickTest .q br + label + br { display: none; }
	#mykieQuickTest .q label {
		position: relative; display: inline-flex; align-items: center; justify-content: center;
		min-width: 5.5rem; min-height: 2.75rem; margin: var(--space-3) var(--space-2) 0 0; padding: 0 1.25rem;
		border-radius: var(--radius-pill); background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
		font-weight: 600; cursor: pointer; user-select: none;
		transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
	}
	#mykieQuickTest .q label:hover { box-shadow: inset 0 0 0 1px var(--teal-500); }
	#mykieQuickTest .q label input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
	#mykieQuickTest .q label:has(input:checked) { background: var(--teal-700); color: var(--white); box-shadow: none; }
	#mykieQuickTest .q label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
	#evaluateBtn {
		justify-self: start; margin-top: var(--space-3);
		min-height: 3rem; padding: 0.75rem 1.5rem; border: 0; border-radius: var(--radius-s);
		background: var(--teal-700); color: var(--white); font: 600 1rem/1.2 var(--font-sans); cursor: pointer;
		transition: background-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
	}
	#evaluateBtn:hover { background: var(--teal-900); }
	#evaluateBtn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
	/* Result: brand colours instead of the script's red/green */
	#resultBox { border-radius: var(--radius-m) !important; padding: var(--space-5) var(--space-6) !important; }
	/* The script sets #fdf3f3 / #f3f8f3; browsers store them as rgb() in the style attribute */
	#resultBox:is([style*="fdf3f3"], [style*="253, 243, 243"]) { background: #fbf7ee !important; border: 1px solid rgb(159 137 87 / 0.45) !important; }
	#resultBox:is([style*="f3f8f3"], [style*="243, 248, 243"]) { background: var(--teal-50) !important; border: 1px solid rgb(0 117 126 / 0.25) !important; }
	#resultBox h2 { font-size: var(--step-2); margin-bottom: var(--space-3); }
	#resultBox p { color: var(--text); }
	#resultCTA a {
		display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: var(--space-3); padding: 0 1.25rem;
		border-radius: var(--radius-s); background: var(--teal-700); color: var(--white); font-weight: 600; text-decoration: none;
	}
	#resultCTA a:hover { background: var(--teal-900); }
}
