/*
 * Layout layer (002 T006; 006 T015): sections, containers, editorial grids,
 * site chrome and the mobile-first breakpoint strategy (research R3/R13,
 * FR-002/FR-004/FR-009/FR-012, SC-007).
 *
 * Rules:
 *  - Pages compose ONLY `.section` + `.container` + `.grid-*` (FR-009: no
 *    page-local widths or one-off type styles).
 *  - Mobile-first: everything starts at the smallest viewport; enhancements
 *    land in literal `@media (min-width: 640px|768px|1024px|1280px)` queries —
 *    the literals mirror `--bp-*` documentation tokens (design-tokens.md §4).
 *  - Grid children get `min-width: 0` + `overflow-wrap` guards so 320 px can
 *    never produce horizontal scrolling (SC-007).
 *  - Per-section surfaces are PAINTED STATICALLY from the `--surface-*` aliases
 *    (FR-002): the colour story is complete with JS off and reduced motion on.
 */

/* ---------------------------------------------------------------------
 * Containers & sections
 * ------------------------------------------------------------------- */

.container {
	width: 100%;
	max-width: var(--container-wide);
	margin-inline: auto;
	padding-inline: var(--space-5); /* 24px mobile side padding (FR-004) */
}

.container--reading {
	max-width: var(--container-reading);
}

.section {
	padding-block: var(--space-section-y);
	background-color: var(--surface-hero);
}

/*
 * Anchor jumps and :focus targets always clear the sticky bar (005 FR-010,
 * research R6 — deep-link preservation).
 */
html {
	scroll-padding-top: var(--header-height);
}

/* ---------------------------------------------------------------------
 * Per-section surfaces — the FIXED FR-002 sequence (visual-system §2).
 * Each block also re-maps the text tiers so every pairing is one of the
 * measured pairs in visual-system §5 (never a global muted grey, 005 R3).
 * ------------------------------------------------------------------- */

.section--hero {
	background-color: var(--surface-hero);
}

.section--problem {
	background-color: var(--surface-problem);
	color: var(--color-text-inverse);
	--color-text-muted: var(--text-muted-on-dark);
	--color-text: var(--color-text-inverse);
	--color-text-strong: var(--color-text-inverse);
	--color-focus: var(--color-text-inverse);
	--color-border-strong: rgb(255 255 255 / 0.5);
	--color-border: rgb(255 255 255 / 0.28);
	--color-action: var(--color-text-inverse);
	--color-action-text: var(--color-ink);
	--color-action-hover: var(--accent-blue);
	--color-action-hover-text: #ffffff;
	--color-surface-alt: rgb(255 255 255 / 0.08);
	--color-surface-muted: rgb(255 255 255 / 0.08);
}

.section--problem h1,
.section--problem h2,
.section--problem h3,
.section--problem h4 {
	color: var(--color-text-inverse);
}

.section--opportunity {
	background-color: var(--surface-opportunity);
	/* On yellow: ink 9.94:1, muted remapped to ink (3.88:1 would fail). */
	--color-text-muted: var(--color-text);
	--color-focus: var(--color-ink);
	--color-border: rgb(20 20 20 / 0.3);
	--color-border-strong: rgb(20 20 20 / 0.55);
}

.section--services {
	background-color: var(--surface-services);
	color: var(--color-text-inverse);
	--color-text: var(--color-text-inverse);
	--color-text-strong: var(--color-text-inverse);
	--color-text-muted: var(--text-muted-on-accent);
	--color-focus: var(--color-text-inverse);
	--color-border: rgb(255 255 255 / 0.35);
	--color-border-strong: rgb(255 255 255 / 0.6);
	--color-rule: rgb(255 255 255 / 0.35);
	--color-action: var(--color-text-inverse);
	--color-action-text: var(--accent-blue);
	--color-action-hover: var(--color-ink);
	--color-action-hover-text: var(--color-text-inverse);
	--color-surface-alt: rgb(255 255 255 / 0.1);
	--color-surface-muted: rgb(255 255 255 / 0.1);
}

.section--work {
	background-color: var(--surface-work);
	--color-text-muted: var(--text-muted-on-light);
}

.section--process {
	background-color: var(--surface-process);
	/* On coral: ink 5.63:1, muted remapped to ink. */
	--color-text-muted: var(--color-text);
	--color-focus: var(--color-ink);
	--color-border: rgb(20 20 20 / 0.3);
	--color-border-strong: rgb(20 20 20 / 0.55);
	--color-action: var(--color-ink);
	--color-action-text: var(--color-text-inverse);
	--color-action-hover: var(--accent-violet);
	--color-action-hover-text: #ffffff;
}

.section--why {
	background-color: var(--surface-why);
	color: var(--color-text-inverse);
	--color-text: var(--color-text-inverse);
	--color-text-strong: var(--color-text-inverse);
	--color-text-muted: var(--text-muted-on-accent);
	--color-focus: var(--color-text-inverse);
	--color-border: rgb(255 255 255 / 0.35);
	--color-border-strong: rgb(255 255 255 / 0.6);
	--color-rule: rgb(255 255 255 / 0.35);
	--color-action: var(--color-text-inverse);
	--color-action-text: var(--accent-violet);
	--color-action-hover: var(--color-ink);
	--color-action-hover-text: var(--color-text-inverse);
	--color-surface-alt: rgb(255 255 255 / 0.1);
	--color-surface-muted: rgb(255 255 255 / 0.1);
}

/* Legacy aliases kept — the 005 class names still mark neutral/dark bands. */
.section--alt {
	background-color: var(--color-surface-alt);
	--color-text-muted: var(--color-text);
}

.section--muted {
	background-color: var(--color-surface-muted);
	--color-text-muted: var(--color-text);
}

.section--dark {
	background-color: var(--color-surface-inverse);
	color: var(--color-text-inverse);
	--color-text: var(--color-text-inverse);
	--color-text-strong: var(--color-text-inverse);
	--color-text-muted: var(--text-muted-on-dark);
	--color-focus: var(--color-text-inverse);
	--color-border-strong: rgb(255 255 255 / 0.5);
	--color-border: rgb(255 255 255 / 0.28);
	--color-action: var(--color-text-inverse);
	--color-action-text: var(--color-ink);
	--color-action-hover: var(--accent-blue);
	--color-action-hover-text: #ffffff;
	--color-surface-alt: rgb(255 255 255 / 0.08);
	--color-surface-muted: rgb(255 255 255 / 0.08);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
	color: var(--color-text-inverse);
}

.section--dark a:not(.button) {
	color: var(--color-text-inverse);
}

/* Final CTA (FR-019/FR-020): dark + accent. Declared AFTER `.section--dark`
 * so its coral primary action wins the cascade. Pairing: coral ground with
 * ink label = 5.63:1; hover flips to white/ink = 18.42:1. */
.section--cta {
	background-color: var(--surface-cta);
	color: var(--color-text-inverse);
	--color-text: var(--color-text-inverse);
	--color-text-strong: var(--color-text-inverse);
	--color-text-muted: var(--text-muted-on-dark);
	--color-focus: var(--color-text-inverse);
	--color-border-strong: rgb(255 255 255 / 0.5);
	--color-action: var(--accent-coral);
	--color-action-text: var(--color-ink);
	--color-action-hover: var(--color-text-inverse);
	--color-action-hover-text: var(--color-ink);
}

.section--cta h1,
.section--cta h2,
.section--cta h3,
.section--cta h4 {
	color: var(--color-text-inverse);
}

/*
 * Boundary blending (006 T015, visual-system §2): every section carries the
 * same generous rhythm, and a change of surface IS the boundary — adjacent
 * sections can never read as identical boxes because each paints its own
 * `--surface-*` alias. Where two light surfaces meet, the shared hairline
 * keeps the seam legible.
 */
.section + .section {
	border-top: var(--border-thin) solid transparent;
}

.section--work + .section,
.section--alt + .section:not(.section--dark):not(.section--problem),
.section:not(.section--dark):not(.section--problem) + .section--work {
	border-top-color: var(--color-border);
}

.section__header {
	max-width: var(--reading-max);
	margin-bottom: var(--space-7);
}

.section__header h2 {
	margin-bottom: var(--space-3);
	font-size: var(--text-6xl); /* major section headings 48 → 72px (FR-003) */
}

/* Prominent section numeral (FR-014 "large number/label") — decorative,
 * the accessible name stays on the section's h2. */
.section__index {
	margin: 0 0 var(--space-3);
	font-family: var(--font-display);
	font-size: var(--text-5xl);
	font-weight: var(--weight-bold);
	line-height: var(--leading-tight);
	letter-spacing: var(--tracking-tight);
	color: var(--color-text-muted); /* measured pairing, visual-system §5 */
}

.section__lede,
.section__header p {
	color: var(--color-text-muted);
	font-size: var(--text-lg);
	margin-bottom: 0;
}

.section--dark .section__lede,
.section--dark .section__header p {
	color: var(--color-text-inverse-muted);
}

.section__more {
	margin-top: var(--space-7);
	margin-bottom: 0;
}

/* ---------------------------------------------------------------------
 * Section reveal (005 FR-023 / interaction-motion.md §2 — type 4).
 * Default state = fully visible; only `html.js-reveal` (added by reveal.js
 * AFTER it confirms IntersectionObserver support and that the visitor did
 * NOT ask for reduced motion) puts pending sections below the fold into the
 * hidden state. JS off, script 404, observer unsupported or reduced-motion
 * ⇒ the class never lands ⇒ every section is simply visible (FR-024, SC-002).
 * Zero scroll listeners; one fade/translate per section, fires once.
 * ------------------------------------------------------------------- */

.js-reveal [data-reveal] {
	opacity: 0;
	transform: translateY(16px);
}

.js-reveal [data-reveal].is-revealed {
	opacity: 1;
	transform: none;
	transition:
		opacity var(--duration-normal) var(--ease-standard),
		transform var(--duration-normal) var(--ease-standard);
}

/* ---------------------------------------------------------------------
 * Grids (mobile-first, one column; widen at documented breakpoints)
 * ------------------------------------------------------------------- */

.grid-cards,
.grid-steps,
.grid-paths,
.grid-fields,
.grid-cta {
	display: grid;
	gap: var(--space-5);
	grid-template-columns: 1fr;
}

.grid-cards,
.grid-steps,
.grid-paths {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* 320 px / long-content guards: children may shrink, copy may break. */
.grid-cards > *,
.grid-steps > *,
.grid-paths > *,
.grid-fields > *,
.grid-cta > * {
	min-width: 0;
}

.grid-cards :where(h1, h2, h3, h4, p, a),
.grid-steps :where(h1, h2, h3, h4, p, a),
.grid-paths :where(h1, h2, h3, h4, p, a),
.grid-fields :where(h1, h2, h3, h4, p, a),
.grid-cta :where(h1, h2, h3, h4, p, a) {
	overflow-wrap: break-word;
}

.grid-fields {
	gap: var(--space-5) var(--space-6);
}

@media (min-width: 640px) {
	.grid-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.grid-paths {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.grid-cta {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
	}

	.grid-fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.grid-fields .field--full {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1024px) {
	.grid-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.grid-steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.container {
		padding-inline: var(--space-6);
	}
}

/* ---------------------------------------------------------------------
 * Editorial asymmetric grid utilities (006 T015, FR-004, visual-system §4).
 * Built on the same 1216px grid + 640/768/1024/1280 breakpoints — the
 * composition varies, the underlying system does not.
 * ------------------------------------------------------------------- */

.grid-editorial {
	display: grid;
	gap: var(--space-6);
	grid-template-columns: minmax(0, 1fr);
}

.grid-editorial > * {
	min-width: 0;
	overflow-wrap: break-word;
}

/* Side label column: an eyebrow/numeral parked beside the content. */
.grid-editorial--side-label {
	grid-template-columns: minmax(0, 1fr);
}

.grid-editorial--narrow {
	max-width: var(--reading-max);
}

.grid-editorial--full {
	max-width: none;
}

@media (min-width: 1024px) {
	.grid-editorial {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: var(--space-6);
		row-gap: var(--space-7);
	}

	/* Split: content on the left, media/detail on the right. */
	.grid-editorial--split > .grid-editorial__lead {
		grid-column: 1 / span 6;
	}

	.grid-editorial--split > .grid-editorial__aside {
		grid-column: 8 / span 5;
	}

	/* Offset: content pushed off the left edge for an editorial hang. */
	.grid-editorial--offset > .grid-editorial__lead {
		grid-column: 2 / span 7;
	}

	.grid-editorial--offset > .grid-editorial__aside {
		grid-column: 10 / span 3;
	}

	/* Side label: the eyebrow owns a narrow left rail. */
	.grid-editorial--side-label {
		grid-template-columns: 9rem minmax(0, 1fr);
		column-gap: var(--space-6);
	}

	.grid-editorial--side-label > .grid-editorial__label {
		grid-column: 1;
	}

	.grid-editorial--side-label > .grid-editorial__lead {
		grid-column: 2;
	}

	.grid-editorial--narrow {
		grid-template-columns: minmax(0, var(--reading-max));
		justify-content: center;
	}

	.grid-editorial--full {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------------------------------------------------------------------
 * Process section scaffolding (006 T015/US2: desktop sticky column ≥1024,
 * progress track, mobile stacked rows — FR-017, visual-system §4).
 * No scrolljacking: the stickiness is plain `position: sticky`.
 * ------------------------------------------------------------------- */

.process {
	display: grid;
	gap: var(--space-6);
	grid-template-columns: minmax(0, 1fr);
}

.process__aside {
	min-width: 0;
}

.process__body {
	min-width: 0;
}

.process__progress {
	position: relative;
	width: 100%;
	height: calc(var(--border-thin) * 2);
	margin-block: var(--space-5);
	background: var(--color-border);
	overflow: hidden;
}

.process__progress-fill {
	display: block;
	height: 100%;
	width: var(--process-progress, 0%);
	background: var(--color-action);
	transition: width var(--duration-normal) var(--ease-standard);
}

@media (min-width: 1024px) {
	.process {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		column-gap: var(--space-9);
		align-items: start;
	}

	.process__aside {
		position: sticky;
		top: calc(var(--header-height) + var(--space-6));
	}
}

/* ---------------------------------------------------------------------
 * Hero — the typographic/compositional first viewport (005 FR-012/FR-013,
 * research R8). Largest type on the site, generous rhythm, ONE dominant
 * primary CTA plus the quiet contact link. NEVER animated: no `data-reveal`,
 * no transition, nothing that waits on JS or on motion (SC-010, FR-024).
 * ------------------------------------------------------------------- */

.hero {
	/* Generous but CTA-visible: the first viewport must show the headline,
	 * the lede AND Book a Consultation (SC-001). */
	padding-block: calc(var(--space-section-y) * 0.7) var(--space-section-y);
}

.hero__inner {
	max-width: var(--container-wide);
}

.hero__eyebrow {
	margin-bottom: var(--space-4);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--color-text-muted); /* measured pairing, visual-system §5 */
}

.hero__title {
	margin-bottom: var(--space-6);
	font-size: var(--text-hero); /* 44 → 100px (FR-003) */
	line-height: var(--leading-tight);
	letter-spacing: var(--tracking-tight);
	color: var(--color-text-strong);
}

.hero__lede {
	max-width: var(--reading-max);
	margin-bottom: var(--space-7);
	font-size: var(--text-lg);
	line-height: var(--leading-normal);
	color: var(--color-text); /* lede carries meaning — ink, not muted */
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-4) var(--space-6);
	margin-bottom: 0;
}

/* ---------------------------------------------------------------------
 * Site header + primary navigation
 * ------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: var(--z-header);
	/* Slightly translucent at rest, fully opaque once scrolled (FR-006) —
	 * the 005 sentinel drives this state, presentation only. */
	background: color-mix(in srgb, var(--color-surface) 88%, transparent);
	border-bottom: var(--border-default); /* hairline present at rest (FR-010) */
	transition:
		border-color var(--duration-fast) var(--ease-standard),
		background-color var(--duration-fast) var(--ease-standard);
}

/*
 * Scroll refinement (005 FR-010, research R6) — presentation only: the
 * sentinel `div` above the header is observed by reveal.js (no scroll
 * listener), and the rest → scrolled change tightens padding ~4px and
 * strengthens the hairline. No height animation, no shadow, no float.
 */
.header-sentinel {
	height: 1px;
	background: transparent;
}

.site-header.is-scrolled {
	background: var(--color-surface); /* higher opacity once the sentinel flips */
	border-bottom-color: var(--color-border-strong);
}

.site-header__inner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-3);
	min-height: var(--header-height);
	padding-block: var(--space-2);
	transition: padding var(--duration-fast) var(--ease-standard);
}

.site-header.is-scrolled .site-header__inner {
	padding-block: calc(var(--space-2) - var(--space-1)); /* tighten ~4px */
}

.site-header__branding {
	margin-right: auto;
}

.site-title {
	font-family: var(--font-display);
	font-size: var(--text-xl);
	font-weight: var(--weight-bold);
	color: var(--color-text-strong);
	text-decoration: none;
	letter-spacing: var(--tracking-tight);
}

.custom-logo {
	display: block;
	max-height: var(--space-8);
	width: auto;
}

.site-header__contact {
	display: none;
	font-weight: var(--weight-medium);
	text-decoration: none;
}

/* Nav-level booking CTA: sits inside the nav panel so it is reachable at
 * every viewport (mobile open state, JS-off state and desktop row). */
.nav-booking {
	display: block;
	padding: var(--space-3) var(--space-3) 0;
}

/* Navigation: visible by default (JS-off = rendered open and usable, T010),
 * collapsed only when JS is available to open it again (T013). */
.primary-nav {
	flex-basis: 100%;
	order: 3;
}

.nav-menu {
	list-style: none;
	margin: 0;
	padding: 0 0 var(--space-4);
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.nav-menu a {
	display: flex;
	align-items: center;
	padding: var(--space-2) var(--space-3);
	min-height: var(--tap-target);
	color: var(--color-text-strong);
	text-decoration: none;
	border-radius: var(--radius-button);
	transition: var(--transition-hover);
}

.nav-menu a:hover {
	background: var(--color-surface-alt);
	text-decoration: none; /* the surface change is the cue here (type 5/2) */
}

.nav-menu a[aria-current="page"] {
	background: var(--color-surface-alt);
	font-weight: var(--weight-medium);
	box-shadow: inset var(--border-thin) 0 0 0 var(--color-action);
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: var(--space-2);
	min-height: var(--tap-target);
	padding: var(--space-2) var(--space-3);
	font-weight: var(--weight-medium);
	color: var(--color-text-strong);
	background: transparent;
	border: var(--border-thin) solid var(--color-border-strong);
	border-radius: var(--radius-button);
	cursor: pointer;
	transition: var(--transition-hover);
}

.nav-toggle__label {
	/* LOGO / MENU bar (005 FR-011): the label reads as an editorial tag. */
	font-size: var(--text-sm);
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
}

.nav-toggle__bars {
	position: relative;
	display: block;
	width: 1.125rem;
	height: 2px;
	background: currentColor;
	flex: none;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	content: "";
	transition: transform var(--duration-fast) var(--ease-standard);
}

.nav-toggle__bars::before {
	top: calc(var(--space-2) * -0.75); /* derived: 8px × -0.75 = -6px */
}

.nav-toggle__bars::after {
	top: calc(var(--space-2) * 0.75);
}

.nav-toggle[aria-expanded="true"] {
	background: var(--color-surface-alt);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	top: 0;
	transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	top: 0;
	transform: rotate(-45deg);
}

/* JS available + small viewport: collapse into a full-width panel that opens
 * and closes with the `--transition-surface` vocabulary (interaction type 5,
 * FR-011). Without JS these rules never apply: the toggle stays hidden and
 * the navigation renders OPEN and usable (site-pages.md §2.4). */
@media (max-width: 1023px) {
	html.js .nav-toggle {
		display: inline-flex;
	}

	html.js .primary-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: block;
		padding: var(--space-3) var(--space-5) var(--space-5); /* full-width panel, container rhythm */
		background: var(--color-surface);
		border-bottom: var(--border-default);
		opacity: 0;
		visibility: hidden;
		transform: translateY(calc(var(--space-2) * -1));
		transition:
			opacity var(--duration-normal) var(--ease-standard),
			transform var(--duration-normal) var(--ease-standard),
			visibility 0s linear var(--duration-normal);
	}

	html.js .primary-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition:
			opacity var(--duration-normal) var(--ease-standard),
			transform var(--duration-normal) var(--ease-standard),
			visibility 0s linear 0s;
	}
}

@media (min-width: 640px) {
	.site-header__contact {
		display: inline-block;
	}
}

@media (min-width: 1024px) {
	.site-header__inner {
		flex-wrap: nowrap;
		gap: var(--space-5);
		min-height: var(--header-height); /* compact: 64px, never 96px */
	}

	/* The nav already lists Contact at this width — keep the bar compact
	 * (FR-010: logo + 7 destinations + CTA, nothing duplicated). */
	.site-header__contact {
		display: none;
	}

	.primary-nav {
		flex-basis: auto;
		order: 0;
		display: flex;
		align-items: center;
		gap: var(--space-4);
	}

	html.js .primary-nav {
		position: static;
		display: flex;
		padding: 0;
		opacity: 1;
		visibility: visible;
		transform: none;
		border-bottom: 0;
		transition: none;
	}

	.nav-menu {
		flex-direction: row;
		align-items: center;
		gap: var(--space-1);
		padding: 0;
	}

	.nav-menu a {
		padding: var(--space-2);
	}

	.nav-toggle {
		display: none !important;
	}

	.nav-booking {
		padding: 0;
	}
}

/* ---------------------------------------------------------------------
 * Site footer
 * ------------------------------------------------------------------- */

/*
 * Site footer — section 8 of the homepage composition: white ground, thin
 * divider, the seven navigation links and the legal line (005 FR-021,
 * data-model.md §4). The large closing statement + CTA above it are rendered
 * by `parts/cta-block.php` (section 7) from inside `parts/footer.php`.
 */
.site-footer {
	background: var(--color-surface);
	color: var(--color-text);
	padding-block: var(--space-9) var(--space-6);
	border-top: var(--border-thin) solid var(--color-border); /* thin divider */
}

.site-footer a:not(.button) {
	color: var(--color-text);
}

.site-footer__inner {
	display: grid;
	gap: var(--space-7);
	grid-template-columns: 1fr;
}

.site-footer__inner > * {
	min-width: 0;
	overflow-wrap: break-word;
}

.site-footer__title {
	font-family: var(--font-display);
	font-size: var(--text-xl);
	color: var(--color-text-strong);
	margin-bottom: var(--space-3);
}

.site-footer__info {
	margin-bottom: var(--space-2);
	color: var(--color-text-muted);
}

.site-footer__info a {
	color: var(--color-text);
}

.site-footer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-6);
}

.site-footer__nav li {
	margin-bottom: 0;
}

.site-footer__nav a {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap-target); /* ≥44px target on every viewport (FR-052/US4) */
	font-weight: var(--weight-medium);
	text-decoration: none;
}

.site-footer__social a {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap-target);
}

.site-footer__info a,
.site-footer__privacy {
	display: inline-flex;
	align-items: center;
	min-height: 24px; /* WCAG 2.5.8 minimum, comfortable on touch */
}

.site-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
}

.site-footer__copyright {
	margin-top: var(--space-8);
	padding-top: var(--space-5);
	border-top: var(--border-thin) solid var(--color-border);
	color: var(--color-text-muted);
	font-size: var(--text-sm);
}

.site-footer__privacy {
	margin-inline-start: var(--space-3);
}

@media (min-width: 768px) {
	.site-footer__inner {
		grid-template-columns: 2fr 1fr 1fr;
	}
}

/* ---------------------------------------------------------------------
 * Article / archive structure
 * ------------------------------------------------------------------- */

.article__media,
.archive-header {
	margin-bottom: var(--space-6);
}

.article__back {
	display: inline-block;
	margin-bottom: var(--space-4);
}

.article__back--bottom {
	margin-top: var(--space-9);
	margin-bottom: 0;
}

.article__meta,
.article-card__meta {
	color: var(--color-text-muted);
	font-size: var(--text-sm);
	margin-bottom: var(--space-3);
}

/* ---------------------------------------------------------------------
 * 006 US4 (T050) — mobile composition: intentionally composed for small
 * screens, never a squeezed desktop (FR-050, interaction-motion §6).
 * Colour transitions and the scroll story are preserved; overlap and
 * animation complexity are reduced; type and tap targets stay comfortable.
 * ------------------------------------------------------------------- */

@media (max-width: 767px) {
	.section {
		padding-block: clamp(4.5rem, 12vw, 7rem);
	}

	.statement {
		max-width: none;
		font-size: clamp(2rem, 1.2rem + 4vw, 3rem); /* comfortable, no wrap traps */
	}

	.statement--display {
		max-width: none;
	}

	.highlight-word {
		font-size: clamp(2.5rem, 1.5rem + 8vw, 4rem);
	}

	.grid-editorial--side-label {
		gap: var(--space-3);
	}

	.hero {
		padding-block: calc(var(--space-section-y) * 0.6) var(--space-section-y);
	}

	.hero__title {
		font-size: clamp(2.4rem, 1.4rem + 6vw, 4rem);
	}

	.process__aside {
		position: static; /* no sticky choreography on small screens (FR-050) */
	}

	.process__summary {
		touch-action: manipulation;
	}
}

/* Small/landscape guards: never let a numeral or headline break the viewport. */
@media (max-width: 420px) {
	.container {
		padding-inline: var(--space-4);
	}

	.section__header h2,
	.cta-composition__title {
		overflow-wrap: break-word;
		hanging-punctuation: none;
	}
}
