/* ==========================================================================
   Vertigo Covers — main stylesheet
   No build step. Native cascade layers, custom properties and nesting.

   reset → tokens → base → layout → components → sections → catalogue
   → store → utilities
   ========================================================================== */

@layer reset, tokens, base, layout, components, sections, catalogue, store, utilities;

/* --------------------------------------------------------------------------
   Fonts (self-hosted, latin subset)
   -------------------------------------------------------------------------- */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-italic.woff2") format("woff2");
}

@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
@layer reset {
	*,
	*::before,
	*::after {
		box-sizing: border-box;
	}

	* {
		margin: 0;
	}

	html {
		-webkit-text-size-adjust: none;
		text-size-adjust: none;
	}

	img,
	picture,
	video,
	svg,
	iframe {
		display: block;
		max-width: 100%;
	}

	img,
	video {
		height: auto;
	}

	input,
	button,
	textarea,
	select {
		font: inherit;
		color: inherit;
	}

	button {
		cursor: pointer;
	}

	ul[class],
	ol[class] {
		list-style: none;
		padding: 0;
	}

	table {
		border-collapse: collapse;
	}

	[hidden] {
		display: none !important;
	}
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
@layer tokens {
	:root {
		/*
		 * Palette. Fallbacks only: inc/palette.php prints the live values
		 * (the brand on neutral pages, the sector's own inside a sector),
		 * all derived from colours editors set in the admin.
		 */
		--brand-primary: #0e4596;
		--brand-secondary: #52616d;
		--sector-accent: var(--brand-primary);
		--sector-on: #fff;
		--sector-hover: #0c3a7e;
		--sector-text: #0e4596;
		--sector-bright: #6286bb;
		--sector-soft: #e9eef6;
		--logo-mark: var(--brand-secondary);
		--logo-word: var(--brand-primary);
		--logo-sub: var(--brand-secondary);

		/* Neutrals */
		--ink: #0b1526;
		--ink-2: #142238;
		--ink-3: #1f304a;
		--text: #0b1526;
		--muted: #5a6674;
		--subtle: #8a95a3;
		--line: #e3e6ea;
		--line-strong: #cfd5dc;
		--paper: #f4f3f0;
		--mist: #eef1f5;
		--white: #fff;

		/* Roles */
		--accent: var(--sector-accent);
		--on-accent: var(--sector-on);
		--accent-hover: var(--sector-hover);
		--accent-text: var(--sector-text);
		--accent-ring: color-mix(in srgb, var(--sector-accent) 16%, transparent);
		--rule: var(--sector-accent);
		--focus: #3b82f6;
		--success: #1f7a4d;
		--danger: #b42318;

		/* Type */
		--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
		--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
		--step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
		--step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
		--step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
		--step-2: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
		--step-3: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem);
		--step-4: clamp(2.1rem, 1.6rem + 2.4vw, 3.5rem);
		--step-5: clamp(2.6rem, 1.8rem + 3.8vw, 5.25rem);

		/* Space */
		--space-2xs: 0.25rem;
		--space-xs: 0.5rem;
		--space-s: 0.75rem;
		--space-m: 1rem;
		--space-l: 1.5rem;
		--space-xl: 2rem;
		--space-2xl: 3rem;
		--space-3xl: 4.5rem;
		--section: clamp(4rem, 3rem + 5vw, 8rem);
		--gutter: clamp(1.25rem, 0.8rem + 2.2vw, 2.5rem);
		--container: 1320px;

		/* Shape & depth */
		--radius-s: 8px;
		--radius: 14px;
		--radius-l: 22px;
		--pill: 999px;
		--shadow-s: 0 1px 2px rgb(11 21 38 / 0.06), 0 1px 1px rgb(11 21 38 / 0.04);
		--shadow: 0 10px 30px -12px rgb(11 21 38 / 0.18), 0 2px 6px rgb(11 21 38 / 0.06);
		--shadow-l: 0 30px 60px -20px rgb(11 21 38 / 0.35);

		/* Motion */
		--ease: cubic-bezier(0.22, 1, 0.36, 1);
		--fast: 160ms;
		--slow: 600ms;

		--header-h: 72px;
	}

	/* Section colour themes */
	.theme-light {
		--surface: var(--white);
		--surface-2: var(--paper);
		--fg: var(--text);
		--fg-muted: var(--muted);
		--border: var(--line);
	}

	.theme-paper {
		--surface: var(--paper);
		--surface-2: var(--white);
		--fg: var(--text);
		--fg-muted: var(--muted);
		--border: #e1dfd9;
	}

	.theme-ink {
		--surface: var(--ink);
		--surface-2: var(--ink-2);
		--fg: #f3f5f8;
		--fg-muted: #a9b4c2;
		--border: rgb(255 255 255 / 0.12);
		color-scheme: dark;
	}

	/*
	 * Role tokens per surface. The raw palette (--sector-*) never changes
	 * below :root; surfaces only remap roles. Dark surfaces get white
	 * primary buttons that hover to the sector colour; light panels inside
	 * them (finder, forms, menus) map straight back.
	 */
	.theme-ink,
	.hero--full,
	.cta__panel,
	.tile {
		--accent: #fff;
		--on-accent: var(--ink);
		--accent-hover: var(--sector-bright);
		--accent-text: var(--sector-bright);
		--rule: var(--sector-bright);
		--logo-mark: var(--sector-bright);
		--logo-word: #fff;
		--logo-sub: rgb(255 255 255 / 0.72);
	}

	.finder--card,
	.finder--wide,
	.enquiry__form,
	.mega,
	.search-dialog,
	.typeahead {
		--accent: var(--sector-accent);
		--on-accent: var(--sector-on);
		--accent-hover: var(--sector-hover);
		--accent-text: var(--sector-text);
		--rule: var(--sector-accent);
	}
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
@layer base {
	html {
		scroll-behavior: smooth;
		scroll-padding-top: calc(var(--header-h) + 3.5rem);
	}

	body {
		font-family: var(--font-sans);
		font-size: var(--step-0);
		line-height: 1.6;
		color: var(--text);
		background: var(--white);
		font-optical-sizing: auto;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		text-rendering: optimizeLegibility;
	}

	h1,
	h2,
	h3,
	h4 {
		font-weight: 600;
		line-height: 1.1;
		letter-spacing: -0.025em;
		text-wrap: balance;
	}

	h1 {
		font-size: var(--step-5);
		letter-spacing: -0.035em;
		line-height: 1.02;
	}

	h2 {
		font-size: var(--step-4);
		letter-spacing: -0.03em;
	}

	h3 {
		font-size: var(--step-2);
	}

	h4 {
		font-size: var(--step-1);
	}

	p {
		text-wrap: pretty;
	}

	a {
		color: inherit;
		text-decoration-thickness: 1px;
		text-underline-offset: 0.2em;
	}

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

	::selection {
		background: var(--accent);
		color: var(--on-accent);
	}

	address {
		font-style: normal;
	}

	.mono {
		font-family: var(--font-mono);
		font-size: 0.92em;
		letter-spacing: 0;
	}

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

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

	.section {
		padding-block: var(--section);
		background: var(--surface, var(--white));
		color: var(--fg, var(--text));
	}

	/* Adjacent sections with the same background share padding. */
	.section.theme-light + .section.theme-light,
	.section.theme-paper + .section.theme-paper {
		padding-top: 0;
	}

	.stack-xl > * + * {
		margin-top: var(--space-3xl);
	}

	.skip-link {
		position: absolute;
		left: var(--space-m);
		top: -100px;
		z-index: 100;
		padding: var(--space-s) var(--space-m);
		background: var(--ink);
		color: var(--white);
		border-radius: var(--radius-s);

		&:focus {
			top: var(--space-m);
		}
	}

	/* Header ------------------------------------------------------------ */
	.site-header {
		position: sticky;
		top: 0;
		z-index: 50;
		background: rgb(255 255 255 / 0.86);
		backdrop-filter: saturate(180%) blur(18px);
		-webkit-backdrop-filter: saturate(180%) blur(18px);
		border-bottom: 1px solid rgb(11 21 38 / 0.07);
		transition: box-shadow var(--fast) ease;

		&.is-scrolled {
			box-shadow: 0 6px 24px -16px rgb(11 21 38 / 0.35);
		}

		/* Inside a sector the header carries a stripe in its colour. */
		.in-sector & {
			border-top: 3px solid var(--sector-accent);
		}
	}

	.site-header__bar {
		display: flex;
		align-items: center;
		gap: var(--space-xl);
		min-height: var(--header-h);
	}

	.brand {
		display: flex;
		align-items: center;
		gap: var(--space-m);
		min-width: 0;
	}

	.brand__logo {
		display: flex;
		flex-shrink: 0;
		text-decoration: none;
	}

	.brand__sector {
		position: relative;
		padding-left: var(--space-m);
		font-size: var(--step--1);
		font-weight: 600;
		letter-spacing: -0.01em;
		color: var(--accent-text);
		text-decoration: none;
		white-space: nowrap;

		&::before {
			content: "";
			position: absolute;
			left: 0;
			top: 50%;
			width: 1px;
			height: 1.6em;
			background: var(--line-strong);
			transform: translateY(-50%);
		}
	}

	/*
	 * Logo. Three layers (mark, "Vertigo", "Covers") coloured by the
	 * --logo-* properties, so it recolours per sector and on dark surfaces.
	 * Drawn from CSS masks until a vector logo.svg is supplied, whose shapes
	 * take the same classes. See vertigo_logo().
	 */
	.logo {
		--logo-h: 38px;
		display: inline-grid;
		height: var(--logo-h);
		aspect-ratio: 287 / 62;
		vertical-align: middle;
	}

	.logo--large {
		--logo-h: 46px;
	}

	.logo--mask .logo__part {
		grid-area: 1 / 1;
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		-webkit-mask-size: contain;
		mask-size: contain;
		-webkit-mask-position: center;
		mask-position: center;
		transition: background-color var(--slow) var(--ease);
	}

	.logo--mask .logo__mark {
		background-color: var(--logo-mark);
		-webkit-mask-image: url("../img/logo/mark.png");
		mask-image: url("../img/logo/mark.png");
	}

	.logo--mask .logo__word {
		background-color: var(--logo-word);
		-webkit-mask-image: url("../img/logo/word.png");
		mask-image: url("../img/logo/word.png");
	}

	.logo--mask .logo__sub {
		background-color: var(--logo-sub);
		-webkit-mask-image: url("../img/logo/sub.png");
		mask-image: url("../img/logo/sub.png");
	}

	.logo--svg {
		aspect-ratio: auto;

		svg {
			height: 100%;
			width: auto;
		}

		.logo__mark {
			fill: var(--logo-mark);
		}

		.logo__word {
			fill: var(--logo-word);
		}

		.logo__sub {
			fill: var(--logo-sub);
		}
	}

	/* Primary nav */
	.primary-nav {
		margin-left: auto;
	}

	.primary-nav__list {
		display: flex;
		align-items: center;
		gap: var(--space-2xs);

		> li > a,
		.primary-nav__link {
			display: inline-flex;
			align-items: center;
			gap: 0.3em;
			padding: 0.55rem 0.85rem;
			border: 0;
			border-radius: var(--pill);
			background: none;
			font-size: 0.95rem;
			font-weight: 500;
			color: var(--text);
			text-decoration: none;
			transition: background var(--fast) ease;

			&:hover {
				background: var(--mist);
			}

			.icon {
				width: 16px;
				height: 16px;
				transition: transform var(--fast) ease;
			}

			&[aria-expanded="true"] .icon {
				transform: rotate(180deg);
			}
		}

		> .current-menu-item > a,
		> .current_page_item > a {
			color: var(--accent-text);
		}
	}

	.primary-nav__footer {
		display: none;
	}

	/* Sectors mega panel */
	.has-panel {
		position: static;
	}

	.mega {
		position: absolute;
		inset: 100% 0 auto;
		padding-block: var(--space-xl) var(--space-2xl);
		background: var(--white);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow-l);
		animation: drop var(--fast) var(--ease);
	}

	.mega__grid {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: var(--space-l);
		max-width: calc(var(--container) + 2 * var(--gutter));
		margin-inline: auto;
		padding-inline: var(--gutter);
	}

	.mega__card {
		display: grid;
		gap: var(--space-xs);
		text-decoration: none;

		&:hover .mega__media img {
			transform: scale(1.04);
		}
	}

	.mega__media {
		position: relative;
		display: block;
		aspect-ratio: 16 / 10;
		overflow: hidden;
		border-radius: var(--radius);
		background: var(--paper);
		margin-bottom: var(--space-xs);

		img,
		.placeholder {
			width: 100%;
			height: 100%;
			object-fit: cover;
			transition: transform var(--slow) var(--ease);
		}

		&::after {
			content: "";
			position: absolute;
			left: 0;
			right: 0;
			bottom: 0;
			height: 3px;
			background: var(--card-accent, var(--accent));
		}
	}

	.mega__title {
		font-weight: 600;
		letter-spacing: -0.015em;
	}

	.mega__text {
		font-size: var(--step--1);
		color: var(--muted);
	}

	/* Header actions */
	.header-actions {
		display: flex;
		align-items: center;
		gap: var(--space-2xs);
	}

	.icon-button {
		position: relative;
		display: inline-grid;
		place-items: center;
		width: 42px;
		height: 42px;
		border: 0;
		border-radius: var(--pill);
		background: none;
		color: var(--text);
		text-decoration: none;
		transition: background var(--fast) ease;

		&:hover {
			background: var(--mist);
		}

		.icon {
			width: 22px;
			height: 22px;
		}
	}

	.basket-link__count {
		position: absolute;
		top: 4px;
		right: 2px;
		display: grid;
		place-items: center;
		min-width: 18px;
		height: 18px;
		padding-inline: 4px;
		border-radius: var(--pill);
		background: var(--accent);
		color: var(--on-accent);
		font-size: 0.7rem;
		font-weight: 700;
		line-height: 1;
	}

	.header-cta {
		margin-left: var(--space-xs);
		padding: 0.6rem 1.1rem;
		font-size: 0.9rem;
	}

	.nav-toggle {
		display: none;

		.nav-toggle__close {
			display: none;
		}

		&[aria-expanded="true"] {
			.nav-toggle__open {
				display: none;
			}

			.nav-toggle__close {
				display: block;
			}
		}
	}

	/* Sector bar: the silo's own navigation */
	.sector-bar {
		border-top: 1px solid color-mix(in srgb, var(--sector-accent) 16%, transparent);
		background: color-mix(in srgb, var(--sector-soft) 88%, transparent);
		font-size: 0.9rem;
	}

	.sector-bar__inner {
		display: flex;
		align-items: center;
		gap: var(--space-l);
		min-height: 48px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.sector-bar__back {
		display: inline-flex;
		align-items: center;
		gap: 0.4em;
		color: var(--muted);
		text-decoration: none;
		white-space: nowrap;

		.icon {
			width: 16px;
			height: 16px;
		}

		&:hover {
			color: var(--text);
		}
	}

	.sector-bar__home {
		font-weight: 600;
		color: var(--accent-text);
		text-decoration: none;
		white-space: nowrap;
		padding-left: var(--space-l);
		border-left: 1px solid color-mix(in srgb, var(--sector-accent) 22%, transparent);
	}

	.sector-bar__menu {
		display: flex;
		gap: var(--space-l);

		a {
			position: relative;
			display: block;
			padding-block: 0.8rem;
			color: var(--muted);
			text-decoration: none;
			white-space: nowrap;

			&:hover {
				color: var(--text);
			}
		}

		.current-menu-item > a,
		.current_page_item > a {
			color: var(--text);

			&::after {
				content: "";
				position: absolute;
				left: 0;
				right: 0;
				bottom: -1px;
				height: 2px;
				background: var(--rule);
			}
		}
	}

	/* Footer ------------------------------------------------------------ */
	.site-footer {
		padding-block: var(--space-3xl) var(--space-xl);
		background: var(--surface);
		color: var(--fg-muted);
		font-size: 0.95rem;

		a {
			color: var(--fg);
			text-decoration: none;

			&:hover {
				text-decoration: underline;
			}
		}
	}

	.site-footer__top {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
		gap: var(--space-3xl);
		padding-bottom: var(--space-3xl);
		border-bottom: 1px solid var(--border);
	}

	.site-footer__brand {
		display: grid;
		align-content: start;
		gap: var(--space-l);

	}

	.site-footer__statement {
		max-width: 32ch;
	}

	.site-footer__cols {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
		gap: var(--space-xl);
	}

	.site-footer__heading {
		margin-bottom: var(--space-m);
		font-family: var(--font-mono);
		font-size: 0.72rem;
		font-weight: 500;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		color: var(--fg-muted);
	}

	.footer-links {
		display: grid;
		gap: var(--space-xs);
	}

	.site-footer__bottom {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		gap: var(--space-m);
		padding-top: var(--space-xl);
		font-size: var(--step--1);

		.footer-links {
			display: flex;
			flex-wrap: wrap;
			gap: var(--space-l);
		}
	}

	/* Responsive header -------------------------------------------------- */
	@media (max-width: 1100px) {
		.header-cta {
			display: none;
		}
	}

	@media (max-width: 960px) {
		.nav-toggle {
			display: inline-grid;
		}

		.header-actions {
			margin-left: auto;
		}

		.primary-nav {
			position: fixed;
			inset: var(--header-h) 0 0;
			z-index: 40;
			display: none;
			flex-direction: column;
			padding: var(--space-l) var(--gutter) var(--space-2xl);
			margin: 0;
			overflow-y: auto;
			background: var(--white);

			&.is-open {
				display: flex;
				animation: drop var(--fast) var(--ease);
			}
		}

		.primary-nav__list {
			flex-direction: column;
			align-items: stretch;
			gap: 0;

			> li {
				border-bottom: 1px solid var(--line);
			}

			> li > a,
			.primary-nav__link {
				justify-content: space-between;
				width: 100%;
				padding: 1rem 0;
				border-radius: 0;
				font-size: var(--step-1);

				&:hover {
					background: none;
				}
			}
		}

		.mega {
			position: static;
			padding: 0 0 var(--space-l);
			border: 0;
			box-shadow: none;
		}

		.mega__grid {
			grid-template-columns: 1fr 1fr;
			gap: var(--space-m);
			padding: 0;
		}

		.mega__text {
			display: none;
		}

		.primary-nav__footer {
			display: block;
			margin-top: auto;
			padding-top: var(--space-xl);

			.button {
				width: 100%;
				justify-content: center;
			}
		}

		.site-footer__top {
			grid-template-columns: 1fr;
		}
	}

	@media (max-width: 600px) {
		.hide-sm {
			display: none;
		}

		.brand__logo .logo {
			--logo-h: 30px;
		}

		.brand__sector {
			display: none;
		}
	}

	@keyframes drop {
		from {
			opacity: 0;
			transform: translateY(-6px);
		}
	}
}

/* --------------------------------------------------------------------------
   Components
   -------------------------------------------------------------------------- */
@layer components {
	.icon {
		width: 1.25em;
		height: 1.25em;
		flex-shrink: 0;
	}

	/* Buttons */
	.button,
	.wpcf7-submit,
	.woocommerce-button,
	.single_add_to_cart_button,
	.checkout-button,
	#place_order,
	.woocommerce .button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.55em;
		min-height: 48px;
		padding: 0.75rem 1.4rem;
		border: 1px solid transparent;
		border-radius: var(--pill);
		background: var(--accent);
		color: var(--on-accent);
		font-size: 0.975rem;
		font-weight: 600;
		letter-spacing: -0.005em;
		line-height: 1.2;
		text-decoration: none;
		white-space: nowrap;
		cursor: pointer;
		transition:
			background var(--fast) ease,
			border-color var(--fast) ease,
			color var(--fast) ease,
			transform var(--fast) ease;

		.icon {
			width: 18px;
			height: 18px;
			transition: transform var(--fast) var(--ease);
		}

		&:hover {
			background: var(--accent-hover);

			.icon {
				transform: translateX(3px);
			}
		}

		&:active {
			transform: translateY(1px);
		}

		&:disabled,
		&.disabled {
			opacity: 0.45;
			cursor: not-allowed;
		}
	}

	.button--secondary {
		background: transparent;
		border-color: var(--line-strong);
		color: var(--fg, var(--text));

		&:hover {
			background: var(--fg, var(--text));
			border-color: var(--fg, var(--text));
			color: var(--surface, var(--white));
		}
	}

	.button--ghost {
		min-height: 0;
		padding-inline: 0.2rem;
		background: none;
		color: var(--fg, var(--text));

		&:hover {
			background: none;
			text-decoration: underline;
		}
	}

	.theme-ink .button--secondary,
	.hero--full .button--secondary {
		border-color: rgb(255 255 255 / 0.45);
		color: var(--white);

		&:hover {
			background: var(--white);
			border-color: var(--white);
			color: var(--ink);
		}
	}

	.hero--full .button--ghost {
		color: var(--white);
	}

	.button-row {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--space-s);
		margin-top: var(--space-xl);
	}

	.text-link {
		display: inline-flex;
		align-items: center;
		gap: 0.4em;
		font-weight: 600;
		color: var(--accent-text);
		text-decoration: none;

		.icon {
			width: 16px;
			height: 16px;
			transition: transform var(--fast) var(--ease);
		}

		&:hover .icon {
			transform: translateX(3px);
		}
	}

	/* Eyebrow: mono label with a short sector-coloured rule */
	.eyebrow {
		display: inline-flex;
		align-items: center;
		gap: 0.75em;
		margin-bottom: var(--space-m);
		font-family: var(--font-mono);
		font-size: 0.74rem;
		font-weight: 500;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		color: var(--fg-muted, var(--muted));

		&::before {
			content: "";
			width: 1.5rem;
			height: 2px;
			background: var(--rule);
		}

		a {
			text-decoration: none;

			&:hover {
				text-decoration: underline;
			}
		}
	}

	/* Breadcrumbs */
	.breadcrumbs {
		margin-bottom: var(--space-xl);
		font-size: var(--step--1);
		color: var(--fg-muted, var(--muted));

		ol {
			display: flex;
			flex-wrap: wrap;
			align-items: center;
			gap: 0.35rem;
			padding: 0;
			list-style: none;
		}

		a {
			text-decoration: none;

			&:hover {
				color: var(--fg, var(--text));
				text-decoration: underline;
			}
		}

		.icon {
			width: 12px;
			height: 12px;
			opacity: 0.5;
		}

		/* WooCommerce prints separators between list items */
		ol > .icon {
			display: inline-block;
		}
	}

	/* Placeholder for missing imagery */
	.placeholder {
		position: relative;
		display: grid;
		place-items: center;
		width: 100%;
		height: 100%;
		min-height: 160px;
		background-color: var(--mist);
		background-image:
			linear-gradient(color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px),
			linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px);
		background-size: 24px 24px;
		color: var(--brand-secondary);
	}

	.placeholder__label {
		padding: 0.35rem 0.7rem;
		border: 1px dashed color-mix(in srgb, var(--brand-secondary) 40%, transparent);
		border-radius: var(--radius-s);
		background: rgb(255 255 255 / 0.7);
		font-family: var(--font-mono);
		font-size: 0.7rem;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		text-align: center;
	}

	/* Prose */
	.prose {
		max-width: 68ch;
		color: var(--fg, var(--text));

		> * + * {
			margin-top: 1.1em;
		}

		h2,
		h3,
		h4 {
			margin-top: 1.8em;
		}

		h2 {
			font-size: var(--step-3);
		}

		h3 {
			font-size: var(--step-2);
		}

		> :first-child {
			margin-top: 0;
		}

		p,
		li {
			color: var(--fg-muted, var(--muted));
		}

		strong {
			color: var(--fg, var(--text));
		}

		ul,
		ol {
			padding-left: 1.2em;
		}

		li + li {
			margin-top: 0.4em;
		}

		a {
			color: var(--accent-text);
		}

		img {
			border-radius: var(--radius);
		}

		table {
			width: 100%;
			font-size: 0.95em;
		}

		th,
		td {
			padding: 0.6em 0.8em;
			border-bottom: 1px solid var(--border, var(--line));
			text-align: left;
		}
	}

	.theme-ink .prose a {
		color: var(--sector-bright);
	}

	.prose--columns {
		max-width: none;
		columns: 2 22rem;
		column-gap: var(--space-3xl);

		> * {
			break-inside: avoid;
		}
	}

	/* Section headings */
	.section-heading {
		max-width: 52rem;
		margin-bottom: var(--space-2xl);
	}

	.section-heading__title {
		font-size: var(--step-4);
	}

	.section-heading__intro {
		margin-top: var(--space-m);
		font-size: var(--step-1);
		color: var(--fg-muted, var(--muted));
		max-width: 60ch;
	}

	.section-heading--center {
		margin-inline: auto;
		text-align: center;

		.eyebrow::after {
			content: "";
			width: 1.5rem;
			height: 2px;
			background: var(--rule);
		}

		.section-heading__intro {
			margin-inline: auto;
		}
	}

	.section-heading--split,
	.section-heading-row {
		display: flex;
		flex-wrap: wrap;
		align-items: end;
		justify-content: space-between;
		gap: var(--space-l);
		max-width: none;
		margin-bottom: var(--space-2xl);

		.section-heading {
			margin-bottom: 0;
		}
	}

	/* Page header */
	.page-header {
		padding-block: var(--space-3xl) var(--space-2xl);
		background: var(--white);
		border-bottom: 1px solid var(--line);
	}

	.page-header__title {
		max-width: 22ch;
		font-size: var(--step-5);
	}

	.page-header__intro {
		max-width: 56ch;
		margin-top: var(--space-l);
		font-size: var(--step-1);
		color: var(--muted);
	}

	.page-header--finder {
		background: var(--paper);
		border-bottom: 0;

		.finder {
			margin-top: var(--space-2xl);
		}
	}

	/* Cards */
	.card-grid {
		display: grid;
		gap: var(--space-xl) var(--space-l);
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	}

	@media (min-width: 900px) {
		.card-grid--2 {
			grid-template-columns: repeat(2, 1fr);
		}

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

		.card-grid--4 {
			grid-template-columns: repeat(4, 1fr);
		}
	}

	.card {
		height: 100%;
	}

	.card__link {
		display: flex;
		flex-direction: column;
		height: 100%;
		color: inherit;
		text-decoration: none;

		&:hover {
			.card__media img {
				transform: scale(1.04);
			}

			.card__cta .icon {
				transform: translateX(4px);
			}
		}
	}

	.card__media {
		aspect-ratio: 4 / 3;
		overflow: hidden;
		border-radius: var(--radius);
		background: var(--surface-2, var(--paper));

		img,
		.placeholder {
			width: 100%;
			height: 100%;
			object-fit: cover;
			transition: transform var(--slow) var(--ease);
		}
	}

	.card__body {
		display: flex;
		flex: 1;
		flex-direction: column;
		gap: var(--space-xs);
		padding-top: var(--space-l);
	}

	.card__meta {
		font-family: var(--font-mono);
		font-size: 0.72rem;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		color: var(--fg-muted, var(--muted));
	}

	.card__title {
		font-size: var(--step-2);
	}

	.card__text {
		color: var(--fg-muted, var(--muted));
	}

	.card__cta {
		display: inline-flex;
		align-items: center;
		gap: 0.4em;
		margin-top: auto;
		padding-top: var(--space-s);
		font-weight: 600;
		color: var(--accent-text);

		.icon {
			width: 16px;
			height: 16px;
			transition: transform var(--fast) var(--ease);
		}
	}

	.theme-ink .card__cta {
		color: var(--white);
	}

	/* Chips & lists */
	.chip-list {
		display: flex;
		flex-wrap: wrap;
		gap: var(--space-xs);
	}

	.chip {
		display: inline-flex;
		align-items: center;
		gap: 0.6em;
		padding: 0.55rem 0.9rem;
		border: 1px solid var(--line);
		border-radius: var(--pill);
		background: var(--white);
		font-weight: 500;
		text-decoration: none;
		transition: border-color var(--fast) ease;

		&:hover {
			border-color: var(--accent);
		}

		.icon {
			width: 14px;
			height: 14px;
			color: var(--accent-text);
		}
	}

	.chip__label {
		font-family: var(--font-mono);
		font-size: 0.68rem;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		color: var(--muted);
	}

	.link-list {
		display: grid;
		border-top: 1px solid var(--line);

		a {
			display: grid;
			gap: var(--space-2xs);
			padding-block: var(--space-l);
			border-bottom: 1px solid var(--line);
			text-decoration: none;

			&:hover .link-list__title {
				color: var(--accent-text);
			}
		}
	}

	.link-list__title {
		font-weight: 600;
		font-size: var(--step-1);
	}

	.link-list__text {
		color: var(--muted);
	}

	.results-group__title {
		margin-bottom: var(--space-l);
		font-size: var(--step-2);
	}

	.fact-list {
		display: flex;
		flex-wrap: wrap;
		gap: var(--space-xs) var(--space-l);
		margin-top: var(--space-xl);
		font-size: var(--step--1);
		color: var(--muted);

		li {
			display: inline-flex;
			align-items: center;
			gap: 0.4em;
		}

		.icon {
			width: 16px;
			height: 16px;
			color: var(--rule);
		}
	}

	.trust-list {
		display: grid;
		gap: var(--space-s);
		font-size: var(--step--1);
		color: var(--muted);

		li {
			display: flex;
			align-items: center;
			gap: var(--space-s);
		}

		.icon {
			width: 20px;
			height: 20px;
			color: var(--brand-secondary);
		}
	}

	.contact-list {
		display: grid;
		gap: var(--space-s);

		li {
			display: flex;
			align-items: start;
			gap: var(--space-s);
		}

		.icon {
			width: 18px;
			height: 18px;
			margin-top: 0.2em;
			color: var(--fg-muted, var(--muted));
		}
	}

	.contact-list--large {
		margin-top: var(--space-xl);
		font-size: var(--step-1);

		a {
			text-decoration: none;

			&:hover {
				text-decoration: underline;
			}
		}
	}

	.socials {
		display: flex;
		gap: var(--space-xs);

		a {
			display: grid;
			place-items: center;
			width: 40px;
			height: 40px;
			border: 1px solid var(--border, var(--line));
			border-radius: var(--pill);
			transition: background var(--fast) ease;

			&:hover {
				background: rgb(255 255 255 / 0.08);
				text-decoration: none;
			}
		}

		.icon {
			width: 18px;
			height: 18px;
		}
	}

	.empty-state {
		padding: var(--space-2xl);
		border: 1px dashed var(--line-strong);
		border-radius: var(--radius);
		text-align: center;
		color: var(--muted);

		h2 {
			margin-bottom: var(--space-s);
			font-size: var(--step-2);
			color: var(--text);
		}
	}

	.notice-panel {
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		gap: var(--space-xl);
		padding: var(--space-2xl);
		border-radius: var(--radius-l);
		background: var(--paper);

		> .icon {
			width: 40px;
			height: 40px;
			color: var(--rule);
		}

		p {
			margin-top: var(--space-xs);
			color: var(--muted);
			max-width: 60ch;
		}

		@media (max-width: 760px) {
			grid-template-columns: 1fr;
		}
	}

	.notice-panel__title {
		font-size: var(--step-2);
	}

	/* Search field */
	.search-field {
		position: relative;
		display: flex;
		align-items: center;
		gap: var(--space-s);
		padding: 0.4rem 0.4rem 0.4rem 1.1rem;
		border: 1px solid var(--line-strong);
		border-radius: var(--pill);
		background: var(--white);
		color: var(--text);
		transition:
			border-color var(--fast) ease,
			box-shadow var(--fast) ease;

		&:focus-within {
			border-color: var(--accent);
			box-shadow: 0 0 0 4px var(--accent-ring);
		}

		> .icon {
			width: 22px;
			height: 22px;
			color: var(--muted);
		}

		.button {
			min-height: 44px;
		}
	}

	.search-field__input {
		flex: 1;
		min-width: 0;
		height: 48px;
		border: 0;
		background: none;
		font-size: var(--step-1);
		outline: none;

		&::placeholder {
			color: var(--subtle);
		}

		&::-webkit-search-cancel-button {
			cursor: pointer;
		}
	}

	.search-field--compact {
		min-width: min(100%, 320px);

		.search-field__input {
			height: 40px;
			font-size: var(--step-0);
		}
	}

	.search-field--inline {
		max-width: 720px;
	}

	/* Type-ahead results */
	.typeahead {
		position: absolute;
		top: calc(100% + 8px);
		left: 0;
		right: 0;
		z-index: 30;
		max-height: min(60vh, 460px);
		overflow-y: auto;
		padding: var(--space-xs);
		border: 1px solid var(--line);
		border-radius: var(--radius);
		background: var(--white);
		box-shadow: var(--shadow-l);
		text-align: left;
	}

	.typeahead__group {
		padding: var(--space-s) var(--space-s) var(--space-2xs);
		font-family: var(--font-mono);
		font-size: 0.68rem;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		color: var(--subtle);
	}

	.typeahead__option {
		display: flex;
		align-items: center;
		gap: var(--space-s);
		padding: 0.6rem var(--space-s);
		border-radius: var(--radius-s);
		color: var(--text);
		text-decoration: none;

		&:hover,
		&[aria-selected="true"] {
			background: var(--mist);
		}

		img {
			width: 40px;
			height: 40px;
			border-radius: 6px;
			object-fit: cover;
			background: var(--paper);
		}

		mark {
			background: none;
			color: var(--accent-text);
			font-weight: 600;
		}
	}

	.typeahead__name {
		flex: 1;
		font-weight: 500;
	}

	.typeahead__meta {
		font-family: var(--font-mono);
		font-size: 0.7rem;
		color: var(--muted);
	}

	.typeahead__empty {
		padding: var(--space-m);
		color: var(--muted);
	}

	/* Search dialog */
	.search-dialog {
		width: min(760px, calc(100% - 2rem));
		max-width: none;
		margin: 12vh auto auto;
		padding: 0;
		border: 0;
		border-radius: var(--radius-l);
		background: var(--white);
		box-shadow: var(--shadow-l);
		overflow: visible;

		&::backdrop {
			background: rgb(11 21 38 / 0.45);
			backdrop-filter: blur(4px);
		}

		&[open] {
			animation: drop var(--fast) var(--ease);
		}
	}

	.search-dialog__panel {
		padding: var(--space-xl);
	}

	.search-dialog__head {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: var(--space-l);
	}

	.search-dialog__title {
		font-size: var(--step-2);
	}

	.search-dialog__hint {
		margin-top: var(--space-m);
		font-size: var(--step--1);
		color: var(--muted);
	}

	/* Forms (Contact Form 7 and WooCommerce share these) */
	.form,
	.wpcf7-form {
		display: grid;
		gap: var(--space-l);
	}

	.form-row {
		display: grid;
		gap: var(--space-l);
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	}

	.field {
		display: grid;
		gap: var(--space-xs);
	}

	.field__label,
	.form label,
	.woocommerce form .form-row label {
		font-size: 0.9rem;
		font-weight: 600;
		color: var(--fg, var(--text));

		.optional,
		abbr {
			font-weight: 400;
			color: var(--muted);
			text-decoration: none;
		}
	}

	input[type="text"],
	input[type="email"],
	input[type="tel"],
	input[type="number"],
	input[type="password"],
	input[type="url"],
	input[type="search"]:not(.search-field__input),
	select,
	textarea,
	.select2-container .select2-selection--single {
		width: 100%;
		min-height: 52px;
		padding: 0.75rem 1rem;
		border: 1px solid var(--line-strong);
		border-radius: 10px;
		background: var(--white);
		color: var(--text);
		font-size: 1rem;
		line-height: 1.4;
		transition:
			border-color var(--fast) ease,
			box-shadow var(--fast) ease;

		&:focus {
			border-color: var(--accent);
			box-shadow: 0 0 0 4px var(--accent-ring);
			outline: none;
		}

		&::placeholder {
			color: var(--subtle);
		}
	}

	textarea {
		min-height: 140px;
		resize: vertical;
	}

	select {
		appearance: none;
		padding-right: 2.75rem;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6674' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: right 1rem center;
		background-size: 18px;
		cursor: pointer;
	}

	input[type="checkbox"],
	input[type="radio"] {
		width: 1.15rem;
		height: 1.15rem;
		accent-color: var(--accent);
		vertical-align: -0.2em;
	}

	.form__consent,
	.wpcf7-acceptance {
		font-size: var(--step--1);
		color: var(--muted);

		label {
			display: flex;
			gap: var(--space-s);
			font-weight: 400;
		}
	}

	.wpcf7-not-valid-tip {
		display: block;
		margin-top: var(--space-xs);
		font-size: 0.85rem;
		color: var(--danger);
	}

	.wpcf7-not-valid {
		border-color: var(--danger) !important;
	}

	.wpcf7 form .wpcf7-response-output {
		margin: 0;
		padding: var(--space-m) var(--space-l);
		border: 1px solid var(--line-strong);
		border-radius: 10px;
		font-size: 0.95rem;
	}

	.wpcf7 form.sent .wpcf7-response-output {
		border-color: var(--success);
		background: #edf7f1;
		color: var(--success);
	}

	.wpcf7 form.invalid .wpcf7-response-output,
	.wpcf7 form.failed .wpcf7-response-output {
		border-color: var(--danger);
		background: #fdf0ef;
		color: var(--danger);
	}

	.wpcf7-spinner {
		margin-left: var(--space-s);
	}

	.wpcf7-form-control-wrap {
		display: block;
	}

	.form__submit {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: var(--space-m);
	}

	.form__note {
		font-size: 0.85rem;
		color: var(--muted);
	}

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

/* --------------------------------------------------------------------------
   Sections (flexible content blocks)
   -------------------------------------------------------------------------- */
@layer sections {
	/* Hero */
	.hero {
		position: relative;
		overflow: hidden;
	}

	.hero__title {
		max-width: 18ch;
		font-size: var(--step-5);
	}

	.hero__text {
		max-width: 54ch;
		margin-top: var(--space-l);
		font-size: var(--step-1);
		color: var(--fg-muted, var(--muted));
	}

	.hero__finder {
		grid-column: 1 / -1;
		margin-top: var(--space-2xl);
	}

	.hero--full {
		display: flex;
		align-items: end;
		min-height: clamp(560px, 82vh, 880px);
		padding-block: var(--space-3xl);
		background: var(--ink);
		color: var(--white);

		.hero__media {
			position: absolute;
			inset: 0;

			img,
			video {
				width: 100%;
				height: 100%;
				object-fit: cover;
			}

			&::after {
				content: "";
				position: absolute;
				inset: 0;
				background:
					linear-gradient(to top, rgb(6 13 26 / 0.85) 0%, rgb(6 13 26 / 0.35) 45%, rgb(6 13 26 / 0.15) 100%),
					linear-gradient(to right, rgb(6 13 26 / 0.55), transparent 65%);
			}
		}

		.hero__inner {
			position: relative;
		}

		.hero__text {
			color: rgb(255 255 255 / 0.82);
		}

		.eyebrow {
			color: rgb(255 255 255 / 0.78);
		}

		.breadcrumbs {
			color: rgb(255 255 255 / 0.7);
		}
	}

	.hero--split {
		.hero__inner {
			display: grid;
			grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
			align-items: center;
			gap: var(--space-3xl);
		}

		.hero__figure {
			aspect-ratio: 5 / 4;
			overflow: hidden;
			border-radius: var(--radius-l);

			img,
			.placeholder {
				width: 100%;
				height: 100%;
				object-fit: cover;
			}
		}

		@media (max-width: 900px) {
			.hero__inner {
				grid-template-columns: 1fr;
			}
		}
	}

	.hero--plain .hero__content {
		max-width: 60rem;
	}

	/* Pathfinder */
	.pathfinder {
		padding-bottom: 0;

		.section-heading {
			margin-bottom: var(--space-2xl);
		}
	}

	.pathfinder__grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 2px;
		background: var(--ink);
	}

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

	.tile {
		position: relative;
		display: flex;
		align-items: end;
		min-height: clamp(360px, 46vw, 620px);
		overflow: hidden;
		color: var(--white);
		text-decoration: none;
		isolation: isolate;

		&::after {
			content: "";
			position: absolute;
			inset: 0;
			z-index: -1;
			background: linear-gradient(to top, rgb(6 13 26 / 0.88) 0%, rgb(6 13 26 / 0.25) 55%, rgb(6 13 26 / 0.1) 100%);
			transition: background var(--slow) var(--ease);
		}

		&:hover {
			.tile__media img {
				transform: scale(1.05);
			}

			.tile__cta .icon {
				transform: translateX(5px);
			}

			.tile__body::before {
				width: 6rem;
			}
		}
	}

	.tile__media {
		position: absolute;
		inset: 0;
		z-index: -2;
		background: var(--ink-2);

		img,
		.placeholder {
			width: 100%;
			height: 100%;
			object-fit: cover;
			transition: transform 1.2s var(--ease);
		}

		.placeholder {
			background-color: var(--ink-2);
		}
	}

	.tile__body {
		position: relative;
		display: grid;
		gap: var(--space-s);
		width: 100%;
		padding: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);

		&::before {
			content: "";
			width: 3rem;
			height: 3px;
			background: var(--card-accent-bright, var(--white));
			transition: width var(--slow) var(--ease);
		}
	}

	.tile__index {
		font-family: var(--font-mono);
		font-size: 0.75rem;
		letter-spacing: 0.14em;
		color: rgb(255 255 255 / 0.65);
	}

	.tile__title {
		max-width: 14ch;
		font-size: var(--step-4);
		font-weight: 600;
		letter-spacing: -0.03em;
		line-height: 1.02;
	}

	.tile__text {
		max-width: 44ch;
		color: rgb(255 255 255 / 0.8);
	}

	.tile__cta {
		display: inline-flex;
		align-items: center;
		gap: 0.5em;
		margin-top: var(--space-xs);
		font-weight: 600;

		.icon {
			transition: transform var(--fast) var(--ease);
		}
	}

	@media (max-width: 760px) {
		.pathfinder__grid,
		.pathfinder__grid--3 {
			grid-template-columns: 1fr;
		}

		.tile {
			min-height: 380px;
		}
	}

	/* Finder section */
	.finder-section .finder {
		max-width: 1040px;
		margin-inline: auto;
	}

	.finder-section__makers {
		max-width: 1040px;
		margin: var(--space-3xl) auto 0;
	}

	.finder-section__subtitle {
		margin-bottom: var(--space-l);
		font-family: var(--font-mono);
		font-size: 0.74rem;
		font-weight: 500;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		color: var(--fg-muted, var(--muted));
	}

	/* Text & media */
	.text-media__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
		align-items: center;
		gap: clamp(2rem, 1rem + 5vw, 6rem);
	}

	.text-media--image-left .text-media__figure {
		order: -1;
	}

	.text-media__title {
		margin-bottom: var(--space-l);
		font-size: var(--step-4);
	}

	.text-media__figure {
		aspect-ratio: 4 / 3;
		overflow: hidden;
		border-radius: var(--radius-l);

		img,
		.placeholder {
			width: 100%;
			height: 100%;
			object-fit: cover;
		}
	}

	@media (max-width: 860px) {
		.text-media__inner {
			grid-template-columns: 1fr;
		}

		.text-media--image-left .text-media__figure {
			order: 0;
		}
	}

	/* Features */
	.feature-grid {
		display: grid;
		gap: var(--space-2xl) var(--space-xl);
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	}

	@media (min-width: 1000px) {
		.feature-grid--3 {
			grid-template-columns: repeat(3, 1fr);
		}

		.feature-grid--4 {
			grid-template-columns: repeat(4, 1fr);
		}
	}

	.feature {
		display: grid;
		align-content: start;
		gap: var(--space-s);
		padding-top: var(--space-l);
		border-top: 1px solid var(--border, var(--line));
	}

	.feature__icon {
		display: grid;
		place-items: center;
		width: 48px;
		height: 48px;
		margin-bottom: var(--space-xs);
		border-radius: 12px;
		background: var(--surface-2, var(--paper));
		color: var(--rule);

		.icon {
			width: 24px;
			height: 24px;
		}
	}

	.theme-ink .feature__icon {
		color: var(--white);
	}

	.feature__title {
		font-size: var(--step-1);
		letter-spacing: -0.015em;
	}

	.feature__text {
		color: var(--fg-muted, var(--muted));
	}

	/* Stats */
	.stat-grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
		gap: var(--space-xl);
	}

	.stat {
		display: flex;
		flex-direction: column-reverse;
		gap: var(--space-xs);
		padding-top: var(--space-l);
		border-top: 1px solid var(--border, var(--line));
	}

	.stat__value {
		font-size: var(--step-5);
		font-weight: 600;
		letter-spacing: -0.04em;
		line-height: 1;
	}

	.stat__label {
		color: var(--fg-muted, var(--muted));
	}

	/* Gallery */
	.mosaic {
		columns: 3 260px;
		column-gap: var(--space-l);

		li {
			break-inside: avoid;
			margin-bottom: var(--space-l);
		}

		img {
			width: 100%;
			border-radius: var(--radius);
		}

		figcaption {
			margin-top: var(--space-xs);
			font-size: var(--step--1);
			color: var(--fg-muted, var(--muted));
		}
	}

	/* Steps */
	.step-list {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
		gap: var(--space-xl);
		counter-reset: step;
	}

	.step {
		position: relative;
		padding-top: var(--space-2xl);
		border-top: 1px solid var(--border, var(--line));
		counter-increment: step;

		&::before {
			content: counter(step, decimal-leading-zero);
			position: absolute;
			top: var(--space-m);
			left: 0;
			font-family: var(--font-mono);
			font-size: 0.8rem;
			color: var(--rule);
		}
	}

	.step__title {
		font-size: var(--step-1);
	}

	.step__text {
		margin-top: var(--space-xs);
		color: var(--fg-muted, var(--muted));
	}

	/* FAQ */
	.faq__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
		gap: var(--space-3xl);

		@media (max-width: 900px) {
			grid-template-columns: 1fr;
			gap: 0;
		}
	}

	.accordion {
		border-top: 1px solid var(--border, var(--line));
	}

	.accordion__item {
		border-bottom: 1px solid var(--border, var(--line));

		&[open] .accordion__question .icon {
			transform: rotate(45deg);
		}
	}

	.accordion__question {
		display: flex;
		justify-content: space-between;
		gap: var(--space-l);
		padding-block: var(--space-l);
		font-size: var(--step-1);
		font-weight: 600;
		letter-spacing: -0.015em;
		cursor: pointer;
		list-style: none;

		&::-webkit-details-marker {
			display: none;
		}

		.icon {
			width: 22px;
			height: 22px;
			transition: transform var(--fast) var(--ease);
		}
	}

	.accordion__answer {
		padding-bottom: var(--space-l);
	}

	/* Quote */
	.quote__inner {
		display: grid;
		gap: var(--space-3xl);
		align-items: center;
	}

	.quote--image .quote__inner {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);

		@media (max-width: 860px) {
			grid-template-columns: 1fr;
		}
	}

	.quote__text p {
		font-size: var(--step-3);
		font-weight: 500;
		letter-spacing: -0.025em;
		line-height: 1.25;
		text-wrap: balance;

		&::before {
			content: "“";
			color: var(--rule);
		}

		&::after {
			content: "”";
			color: var(--rule);
		}
	}

	.quote__cite {
		display: grid;
		gap: var(--space-2xs);
		margin-top: var(--space-xl);

		span {
			color: var(--fg-muted, var(--muted));
		}
	}

	.quote__media {
		aspect-ratio: 4 / 5;
		overflow: hidden;
		border-radius: var(--radius-l);

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

	/* Video */
	.video-grid {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
		gap: var(--space-xl);
	}

	.video-grid__frame {
		aspect-ratio: 16 / 9;
		overflow: hidden;
		border-radius: var(--radius);
		background: var(--ink);

		iframe {
			width: 100%;
			height: 100%;
		}
	}

	.video-grid__title {
		margin-top: var(--space-s);
		font-weight: 600;
	}

	/* CTA */
	.cta__panel {
		position: relative;
		overflow: hidden;
		padding: clamp(2.5rem, 1.5rem + 5vw, 6rem);
		border-radius: var(--radius-l);
		background: var(--ink);
		color: var(--white);
		isolation: isolate;

		.eyebrow {
			color: rgb(255 255 255 / 0.75);
		}

		.button--secondary {
			border-color: rgb(255 255 255 / 0.45);
			color: var(--white);
		}
	}

	.cta__media {
		position: absolute;
		inset: 0;
		z-index: -1;

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

		&::after {
			content: "";
			position: absolute;
			inset: 0;
			background: linear-gradient(to right, rgb(6 13 26 / 0.9), rgb(6 13 26 / 0.4));
		}
	}

	.cta__content {
		max-width: 40rem;
	}

	.cta__title {
		font-size: var(--step-4);
	}

	.cta__text {
		margin-top: var(--space-m);
		font-size: var(--step-1);
		color: rgb(255 255 255 / 0.8);
	}

	/* Enquiry */
	.enquiry {
		display: grid;
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		gap: clamp(2rem, 1rem + 5vw, 6rem);
		align-items: start;

		@media (max-width: 900px) {
			grid-template-columns: 1fr;
		}
	}

	.enquiry__title {
		font-size: var(--step-4);
	}

	.enquiry__text {
		margin-top: var(--space-m);
		font-size: var(--step-1);
		color: var(--fg-muted, var(--muted));
	}

	.enquiry__form {
		padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
		border-radius: var(--radius-l);
		background: var(--surface-2, var(--white));
		box-shadow: var(--shadow-s);
	}

	.theme-ink .enquiry__form {
		color: var(--text);
		background: var(--white);
		--fg: var(--text);
	}

	/* Posts / products rows */
	.section-heading-row .button {
		flex-shrink: 0;
	}
}

/* --------------------------------------------------------------------------
   Catalogue: finder, manufacturers, models, product cards, product page
   -------------------------------------------------------------------------- */
@layer catalogue {
	/* Finder */
	.finder {
		position: relative;
		color: var(--text);
	}

	.finder--card,
	.finder--wide {
		padding: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
		border-radius: var(--radius-l);
		background: var(--white);
		box-shadow: var(--shadow-l);
	}

	.hero__finder .finder--card {
		max-width: 1040px;
	}

	.finder--wide {
		box-shadow: var(--shadow);
		border: 1px solid var(--line);
	}

	.finder__search {
		width: 100%;
	}

	.finder__or {
		display: flex;
		align-items: center;
		gap: var(--space-m);
		margin-block: var(--space-m);
		font-family: var(--font-mono);
		font-size: 0.7rem;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		color: var(--subtle);

		&::before,
		&::after {
			content: "";
			flex: 1;
			height: 1px;
			background: var(--line);
		}
	}

	.finder__selects {
		display: grid;
		grid-template-columns: 1fr 1fr auto;
		align-items: end;
		gap: var(--space-m);

		.field__label {
			font-size: 0.8rem;
			color: var(--muted);
		}

		@media (max-width: 760px) {
			grid-template-columns: 1fr;

			.button {
				width: 100%;
			}
		}
	}

	.finder__submit {
		min-height: 52px;
	}

	/* Manufacturer directory & lists */
	.maker-list {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
		gap: 0 var(--space-l);

		a {
			display: flex;
			justify-content: space-between;
			align-items: center;
			gap: var(--space-s);
			padding-block: 0.85rem;
			border-bottom: 1px solid var(--border, var(--line));
			font-weight: 500;
			text-decoration: none;

			.icon {
				width: 16px;
				height: 16px;
				color: var(--subtle);
				transition:
					transform var(--fast) var(--ease),
					color var(--fast) ease;
			}

			&:hover {
				color: var(--accent-text);

				.icon {
					color: var(--card-accent, var(--accent));
					transform: translateX(3px);
				}
			}
		}
	}

	.directory__head {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		gap: var(--space-m);
		margin-bottom: var(--space-m);
		padding-bottom: var(--space-m);
		border-bottom: 2px solid var(--card-accent, var(--ink));
	}

	.directory__title {
		font-size: var(--step-3);
	}

	.maker-grid {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
		gap: var(--space-m);
	}

	.maker-card {
		position: relative;
		display: grid;
		gap: var(--space-2xs);
		height: 100%;
		padding: var(--space-l);
		border: 1px solid var(--border, var(--line));
		border-radius: var(--radius);
		background: var(--surface, var(--white));
		text-decoration: none;
		transition:
			border-color var(--fast) ease,
			transform var(--fast) var(--ease),
			box-shadow var(--fast) ease;

		&:hover {
			border-color: var(--rule);
			box-shadow: var(--shadow);
			transform: translateY(-2px);
		}
	}

	.maker-card__logo {
		display: flex;
		align-items: center;
		height: 48px;
		margin-bottom: var(--space-s);

		img {
			max-height: 40px;
			width: auto;
		}
	}

	.maker-card__initial {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		border-radius: 10px;
		background: var(--surface-2, var(--paper));
		font-weight: 700;
		color: var(--rule);
	}

	.maker-card__name {
		font-size: var(--step-1);
		font-weight: 600;
		letter-spacing: -0.015em;
	}

	.maker-card__meta {
		font-size: var(--step--1);
		color: var(--muted);
	}

	.maker-card__arrow {
		position: absolute;
		top: var(--space-l);
		right: var(--space-l);
		width: 18px;
		height: 18px;
		color: var(--subtle);
	}

	/* Catalogue hero (manufacturer & model) */
	.catalogue-hero {
		padding-block: var(--space-2xl) var(--space-3xl);
		background: linear-gradient(to bottom, var(--white), var(--paper));
		border-bottom: 1px solid var(--line);
	}

	.catalogue-hero__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: center;
		gap: clamp(2rem, 1rem + 5vw, 5rem);

		@media (max-width: 900px) {
			grid-template-columns: 1fr;
		}
	}

	.catalogue-hero__title {
		font-size: var(--step-5);
	}

	.catalogue-hero__text {
		max-width: 56ch;
		margin-top: var(--space-l);
		font-size: var(--step-1);
		color: var(--muted);

		p + p {
			margin-top: 0.8em;
		}
	}

	.catalogue-hero__media {
		position: relative;
		aspect-ratio: 4 / 3;
		overflow: hidden;
		border-radius: var(--radius-l);
		background: var(--mist);

		> img,
		> .placeholder {
			width: 100%;
			height: 100%;
			object-fit: cover;
		}
	}

	.catalogue-hero__logo {
		position: absolute;
		left: var(--space-m);
		bottom: var(--space-m);
		padding: var(--space-s) var(--space-m);
		border-radius: var(--radius-s);
		background: rgb(255 255 255 / 0.92);

		img {
			max-height: 32px;
			width: auto;
		}
	}

	/* Model grid */
	.model-grid {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
		gap: var(--space-m);
	}

	.model-card {
		position: relative;
		display: grid;
		grid-template-columns: 96px 1fr;
		align-items: center;
		gap: var(--space-m);
		height: 100%;
		padding: var(--space-s);
		border: 1px solid var(--line);
		border-radius: var(--radius);
		background: var(--white);
		text-decoration: none;
		transition:
			border-color var(--fast) ease,
			box-shadow var(--fast) ease;

		&:hover {
			border-color: var(--rule);
			box-shadow: var(--shadow);

			.model-card__arrow {
				color: var(--rule);
				transform: translateX(3px);
			}
		}
	}

	.model-card__media {
		aspect-ratio: 1;
		overflow: hidden;
		border-radius: 10px;

		img,
		.placeholder {
			width: 100%;
			height: 100%;
			min-height: 0;
			object-fit: cover;
		}

		.placeholder__label {
			display: none;
		}
	}

	.model-card__body {
		display: grid;
		gap: 2px;
		padding-right: var(--space-xl);
	}

	.model-card__maker {
		font-family: var(--font-mono);
		font-size: 0.68rem;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		color: var(--subtle);
	}

	.model-card__name {
		font-size: var(--step-1);
		font-weight: 600;
		letter-spacing: -0.015em;
		line-height: 1.2;
	}

	.model-card__meta {
		font-size: var(--step--1);
		color: var(--muted);
	}

	.model-card__arrow {
		position: absolute;
		right: var(--space-m);
		top: 50%;
		width: 18px;
		height: 18px;
		margin-top: -9px;
		color: var(--subtle);
		transition:
			transform var(--fast) var(--ease),
			color var(--fast) ease;
	}

	/* Product groups on model pages */
	.product-group__head {
		display: grid;
		gap: var(--space-xs);
		max-width: 60rem;
		margin-bottom: var(--space-xl);
	}

	.product-group__title {
		font-size: var(--step-3);
	}

	.product-group__text {
		color: var(--muted);
	}

	.compare-grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
		gap: var(--space-l);
	}

	.compare-card {
		display: grid;
		align-content: start;
		gap: var(--space-s);
		padding: var(--space-xl);
		border-radius: var(--radius);
		background: var(--white);
		border-top: 3px solid var(--rule);

		.text-link {
			margin-top: var(--space-xs);
		}
	}

	.compare-card__title {
		font-size: var(--step-2);
	}

	.compare-card__text {
		color: var(--muted);
	}

	/* Product cards */
	.product-grid {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
		gap: var(--space-l);
	}

	.product-card {
		height: 100%;
	}

	.product-card__link {
		display: flex;
		flex-direction: column;
		height: 100%;
		overflow: hidden;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		background: var(--white);
		color: var(--text);
		text-decoration: none;
		transition:
			border-color var(--fast) ease,
			box-shadow var(--fast) ease,
			transform var(--fast) var(--ease);

		&:hover {
			border-color: var(--line-strong);
			box-shadow: var(--shadow);
			transform: translateY(-2px);

			.product-card__media img {
				transform: scale(1.04);
			}

			.product-card__cta .icon {
				transform: translateX(3px);
			}
		}
	}

	.product-card__media {
		position: relative;
		aspect-ratio: 4 / 3;
		overflow: hidden;
		background: var(--paper);

		img,
		.placeholder {
			width: 100%;
			height: 100%;
			object-fit: cover;
			transition: transform var(--slow) var(--ease);
		}
	}

	.product-card__badge {
		position: absolute;
		top: var(--space-s);
		left: var(--space-s);
		padding: 0.3rem 0.6rem;
		border-radius: var(--pill);
		background: rgb(255 255 255 / 0.92);
		font-family: var(--font-mono);
		font-size: 0.66rem;
		font-weight: 500;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		color: var(--text);
		backdrop-filter: blur(6px);
	}

	.product-card__body {
		display: flex;
		flex: 1;
		flex-direction: column;
		gap: var(--space-xs);
		padding: var(--space-l);
	}

	.product-card__aircraft {
		font-family: var(--font-mono);
		font-size: 0.68rem;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		color: var(--muted);
	}

	.product-card__title {
		font-size: var(--step-1);
		letter-spacing: -0.015em;
		line-height: 1.25;
	}

	.product-card__text {
		font-size: var(--step--1);
		color: var(--muted);
	}

	.product-card__foot {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: var(--space-s);
		margin-top: auto;
		padding-top: var(--space-m);
	}

	.product-card__price {
		font-weight: 600;
	}

	.product-card__cta {
		display: inline-flex;
		align-items: center;
		gap: 0.3em;
		font-size: var(--step--1);
		font-weight: 600;
		color: var(--accent-text);

		.icon {
			width: 15px;
			height: 15px;
			transition: transform var(--fast) var(--ease);
		}
	}

	.product-card__lead {
		display: flex;
		align-items: center;
		gap: 0.4em;
		padding-top: var(--space-s);
		border-top: 1px solid var(--line);
		font-size: 0.8rem;
		color: var(--muted);

		.icon {
			width: 14px;
			height: 14px;
		}
	}

	.price-on-request {
		font-weight: 600;
		color: var(--muted);
	}

	.price {
		del {
			color: var(--subtle);
			font-weight: 400;
		}

		ins {
			text-decoration: none;
		}
	}

	/* Product page */
	.product-detail {
		padding-block: var(--space-xl) var(--space-3xl);
	}

	.product-detail__grid {
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		gap: clamp(2rem, 1rem + 4vw, 5rem);
		align-items: start;

		@media (max-width: 960px) {
			grid-template-columns: 1fr;
		}
	}

	.product-detail__gallery {
		position: sticky;
		top: calc(var(--header-h) + 4rem);

		@media (max-width: 960px) {
			position: static;
		}
	}

	.product-detail__placeholder {
		aspect-ratio: 4 / 3;
		border-radius: var(--radius-l);
	}

	.woocommerce-product-gallery {
		opacity: 1 !important;
	}

	.woocommerce-product-gallery__wrapper {
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		gap: var(--space-s);
		margin: 0;
	}

	.woocommerce-product-gallery__image {
		overflow: hidden;
		border-radius: 10px;
		background: var(--paper);
		aspect-ratio: 1;
		cursor: zoom-in;

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

		&:first-child {
			grid-column: 1 / -1;
			aspect-ratio: 4 / 3;
			border-radius: var(--radius-l);
		}
	}

	.woocommerce-product-gallery__trigger {
		display: none;
	}

	.product-detail__summary {
		display: grid;
		gap: var(--space-l);
	}

	.product-detail__title {
		font-size: var(--step-4);
	}

	.product-detail__price {
		font-size: var(--step-2);
		font-weight: 600;
		letter-spacing: -0.02em;

		.price-from {
			font-size: inherit;
		}
	}

	.product-detail__intro {
		color: var(--muted);
		font-size: var(--step-1);
	}

	.type-switch {
		display: grid;
		gap: var(--space-xs);

		ul {
			display: flex;
			flex-wrap: wrap;
			gap: var(--space-xs);
			padding: 4px;
			border-radius: var(--pill);
			background: var(--mist);
			justify-self: start;
		}

		a {
			display: block;
			padding: 0.5rem 1rem;
			border-radius: var(--pill);
			font-size: 0.9rem;
			font-weight: 500;
			color: var(--muted);
			text-decoration: none;

			&:hover {
				color: var(--text);
			}

			&[aria-current="page"] {
				background: var(--white);
				box-shadow: var(--shadow-s);
				color: var(--text);
			}
		}
	}

	.type-switch__label {
		font-size: 0.85rem;
		font-weight: 600;
	}

	.quote-panel,
	.buy-panel {
		padding: var(--space-xl);
		border: 1px solid var(--line);
		border-radius: var(--radius-l);
		background: var(--white);
	}

	.quote-panel {
		display: grid;
		gap: var(--space-l);
		background: var(--paper);
		border: 0;

		p {
			color: var(--muted);
		}

		.button {
			justify-self: start;
		}
	}

	.lead-time {
		display: flex;
		align-items: center;
		gap: var(--space-s);
		font-weight: 500;

		.icon {
			width: 20px;
			height: 20px;
			color: var(--rule);
		}
	}

	.product-meta {
		display: grid;
		gap: var(--space-xs);
		padding-top: var(--space-l);
		border-top: 1px solid var(--line);
		font-size: var(--step--1);

		div {
			display: flex;
			gap: var(--space-m);
		}

		dt {
			min-width: 8rem;
			color: var(--muted);
		}

		dd {
			margin: 0;
		}
	}

	.product-info__grid {
		display: grid;
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		gap: var(--space-3xl);

		@media (max-width: 900px) {
			grid-template-columns: 1fr;
		}
	}

	.product-info__title {
		margin-bottom: var(--space-l);
		font-size: var(--step-2);
	}

	.woocommerce-product-attributes,
	.shop_attributes {
		width: 100%;
		font-size: 0.95rem;

		th,
		td {
			padding: 0.85rem 0;
			border-bottom: 1px solid var(--border, var(--line));
			text-align: left;
			vertical-align: top;
		}

		th {
			width: 40%;
			font-weight: 500;
			color: var(--muted);
		}

		p {
			margin: 0;
		}
	}
}

/* --------------------------------------------------------------------------
   Store: add to cart, variations, swatches, basket, checkout, account
   -------------------------------------------------------------------------- */
@layer store {
	/* Variations form */
	.variations_form,
	form.cart {
		display: grid;
		gap: var(--space-l);
	}

	table.variations {
		width: 100%;

		tbody {
			display: grid;
			gap: var(--space-l);
		}

		tr {
			display: grid;
			gap: var(--space-xs);
		}

		th,
		td {
			padding: 0;
			text-align: left;
		}

		th.label label {
			font-size: 0.9rem;
			font-weight: 600;
		}

		.reset_variations {
			display: inline-block;
			margin-top: var(--space-xs);
			font-size: 0.85rem;
			color: var(--muted);
		}
	}

	.variation-control {
		display: grid;
		gap: var(--space-s);

		&.has-swatches select {
			position: absolute;
			width: 1px;
			height: 1px;
			opacity: 0;
			pointer-events: none;
		}
	}

	.swatches {
		display: flex;
		flex-wrap: wrap;
		gap: var(--space-xs);
	}

	.swatch {
		border: 1px solid var(--line-strong);
		background: var(--white);
		color: var(--text);
		transition:
			border-color var(--fast) ease,
			box-shadow var(--fast) ease,
			opacity var(--fast) ease;

		&:hover {
			border-color: var(--text);
		}

		&[aria-pressed="true"] {
			border-color: var(--accent);
			box-shadow: 0 0 0 1px var(--accent);
		}

		&:disabled {
			opacity: 0.3;
			cursor: not-allowed;
			text-decoration: line-through;
		}
	}

	.swatch--text {
		min-height: 44px;
		padding: 0.55rem 1rem;
		border-radius: 10px;
		font-size: 0.92rem;
		font-weight: 500;
	}

	.swatch--colour {
		position: relative;
		width: 40px;
		height: 40px;
		padding: 0;
		border-radius: var(--pill);
		background: var(--swatch);
		box-shadow: inset 0 0 0 2px var(--white);

		&[aria-pressed="true"] {
			box-shadow:
				inset 0 0 0 3px var(--white),
				0 0 0 2px var(--accent);
		}
	}

	.swatch-value {
		font-weight: 400;
		color: var(--muted);
	}

	.single_variation_wrap {
		display: grid;
		gap: var(--space-l);
	}

	.woocommerce-variation-price {
		font-size: var(--step-2);
		font-weight: 600;
	}

	.woocommerce-variation-availability:empty,
	.woocommerce-variation-description:empty {
		display: none;
	}

	.woocommerce-variation-add-to-cart,
	form.cart:not(.variations_form) {
		display: flex;
		flex-wrap: wrap;
		gap: var(--space-s);
		align-items: stretch;
	}

	form.cart .personalisation {
		flex-basis: 100%;
	}

	.single_add_to_cart_button {
		flex: 1;
		min-height: 52px;
	}

	/* Quantity */
	.quantity {
		.qty {
			width: 5rem;
			min-height: 52px;
			text-align: center;
			-moz-appearance: textfield;
		}
	}

	/* Personalisation */
	.personalisation {
		display: grid;
		gap: var(--space-xs);
	}

	.personalisation__label {
		display: flex;
		justify-content: space-between;
		gap: var(--space-s);
		font-size: 0.9rem;
		font-weight: 600;
	}

	.personalisation__meta {
		font-weight: 400;
		color: var(--muted);
	}

	.personalisation__input {
		font-family: var(--font-mono);
		text-transform: uppercase;
		letter-spacing: 0.08em;
	}

	.personalisation__help {
		font-size: 0.82rem;
		color: var(--muted);
	}

	/* Notices */
	.woocommerce-notices-wrapper:empty {
		display: none;
	}

	.woocommerce-message,
	.woocommerce-info,
	.woocommerce-error,
	.wc-block-components-notice-banner {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-m);
		margin: 0 0 var(--space-l);
		padding: var(--space-m) var(--space-l);
		border-radius: var(--radius);
		background: var(--mist);
		list-style: none;

		.button {
			order: 2;
			min-height: 40px;
			padding: 0.5rem 1rem;
		}
	}

	.woocommerce-message {
		background: #edf7f1;
		color: #13512f;
	}

	.woocommerce-error {
		background: #fdf0ef;
		color: var(--danger);
	}

	.product-detail .woocommerce-notices-wrapper {
		margin-bottom: var(--space-l);
	}

	/* Basket */
	.woocommerce-cart-form {
		margin-bottom: var(--space-2xl);
	}

	table.shop_table {
		width: 100%;
		font-size: 0.95rem;

		th,
		td {
			padding: var(--space-m) var(--space-s);
			border-bottom: 1px solid var(--line);
			text-align: left;
			vertical-align: middle;
		}

		thead th {
			font-family: var(--font-mono);
			font-size: 0.7rem;
			font-weight: 500;
			letter-spacing: 0.12em;
			text-transform: uppercase;
			color: var(--muted);
		}

		.product-thumbnail img {
			width: 80px;
			border-radius: 10px;
		}

		.product-name a {
			font-weight: 600;
			text-decoration: none;
		}

		.product-remove a {
			display: grid;
			place-items: center;
			width: 32px;
			height: 32px;
			border-radius: var(--pill);
			color: var(--muted);
			font-size: 1.3rem;
			text-decoration: none;

			&:hover {
				background: var(--mist);
				color: var(--danger);
			}
		}

		.variation {
			display: grid;
			grid-template-columns: auto 1fr;
			gap: 0 var(--space-s);
			margin-top: var(--space-xs);
			font-size: 0.85rem;
			color: var(--muted);

			dt {
				font-weight: 500;
			}

			dd,
			dd p {
				margin: 0;
			}
		}

		.actions {
			padding-top: var(--space-l);
			border: 0;

			.coupon {
				display: flex;
				gap: var(--space-s);
				float: left;

				input {
					width: 200px;
				}
			}

			> .button {
				float: right;
			}
		}

		tfoot th,
		.cart_totals & th {
			font-weight: 500;
			color: var(--muted);
		}

		.order-total {
			font-size: var(--step-1);
			font-weight: 600;
		}
	}

	.cart-collaterals {
		display: flex;
		justify-content: flex-end;
	}

	.cart_totals {
		width: min(100%, 460px);
		padding: var(--space-xl);
		border-radius: var(--radius-l);
		background: var(--paper);

		h2 {
			margin-bottom: var(--space-m);
			font-size: var(--step-2);
		}

		.checkout-button {
			width: 100%;
			margin-top: var(--space-l);
		}
	}

	.woocommerce-shipping-methods {
		padding: 0;
		list-style: none;

		li + li {
			margin-top: var(--space-xs);
		}
	}

	@media (max-width: 760px) {
		table.shop_table_responsive {
			thead {
				display: none;
			}

			tr {
				display: grid;
				grid-template-columns: 1fr 1fr;
				padding-block: var(--space-m);
				border-bottom: 1px solid var(--line);
			}

			td {
				display: flex;
				justify-content: space-between;
				border: 0;
				padding: var(--space-2xs) 0;
				grid-column: 1 / -1;

				&::before {
					content: attr(data-title);
					font-weight: 500;
					color: var(--muted);
				}
			}

			.product-thumbnail,
			.product-remove {
				grid-column: auto;

				&::before {
					display: none;
				}
			}

			.actions .coupon {
				float: none;
				flex-wrap: wrap;
			}
		}
	}

	/* Checkout */
	form.checkout {
		display: grid;
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
		gap: var(--space-3xl);
		align-items: start;

		@media (max-width: 960px) {
			grid-template-columns: 1fr;
		}

		> .woocommerce-NoticeGroup {
			grid-column: 1 / -1;
		}
	}

	#customer_details {
		display: grid;
		gap: var(--space-2xl);

		h3 {
			margin-bottom: var(--space-l);
			font-size: var(--step-2);
		}
	}

	.woocommerce-billing-fields__field-wrapper,
	.woocommerce-shipping-fields__field-wrapper,
	.woocommerce-address-fields__field-wrapper {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--space-m);

		.form-row-wide,
		#billing_address_1_field,
		#shipping_address_1_field {
			grid-column: 1 / -1;
		}

		@media (max-width: 600px) {
			grid-template-columns: 1fr;
		}
	}

	.woocommerce form .form-row {
		display: grid;
		gap: var(--space-xs);
		margin: 0;
		padding: 0;

		&.woocommerce-invalid input {
			border-color: var(--danger);
		}
	}

	#order_review_heading {
		display: none;
	}

	#order_review {
		position: sticky;
		top: calc(var(--header-h) + 1rem);
		padding: var(--space-xl);
		border-radius: var(--radius-l);
		background: var(--paper);

		&::before {
			content: "Your order";
			display: block;
			margin-bottom: var(--space-m);
			font-size: var(--step-2);
			font-weight: 600;
			letter-spacing: -0.025em;
		}
	}

	.woocommerce-checkout-payment {
		margin-top: var(--space-l);

		.wc_payment_methods {
			display: grid;
			gap: var(--space-s);
			padding: 0;
			list-style: none;
		}

		.wc_payment_method {
			padding: var(--space-m);
			border: 1px solid var(--line);
			border-radius: var(--radius);
			background: var(--white);

			> label {
				font-weight: 600;
			}
		}

		.payment_box {
			margin-top: var(--space-s);
			font-size: 0.9rem;
			color: var(--muted);
		}

		.place-order {
			display: grid;
			gap: var(--space-m);
			margin-top: var(--space-l);
		}

		#place_order {
			width: 100%;
			min-height: 56px;
			font-size: 1.05rem;
		}
	}

	.woocommerce-terms-and-conditions-wrapper {
		font-size: 0.85rem;
		color: var(--muted);
	}

	/* Account */
	.woocommerce-account .woocommerce {
		display: grid;
		grid-template-columns: 240px minmax(0, 1fr);
		gap: var(--space-3xl);
		align-items: start;

		@media (max-width: 860px) {
			grid-template-columns: 1fr;
		}

		> .woocommerce-notices-wrapper,
		> h2,
		> .u-columns,
		> form.login,
		> form.register {
			grid-column: 1 / -1;
		}
	}

	.woocommerce-MyAccount-navigation ul {
		display: grid;
		gap: 2px;
		padding: 0;
		list-style: none;

		a {
			display: block;
			padding: 0.7rem 1rem;
			border-radius: 10px;
			color: var(--muted);
			text-decoration: none;

			&:hover {
				background: var(--mist);
				color: var(--text);
			}
		}

		.is-active a {
			background: var(--ink);
			color: var(--white);
		}
	}

	.u-columns {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--space-2xl);

		@media (max-width: 760px) {
			grid-template-columns: 1fr;
		}
	}

	form.login,
	form.register,
	.woocommerce-ResetPassword {
		display: grid;
		gap: var(--space-m);
		padding: var(--space-xl);
		border: 1px solid var(--line);
		border-radius: var(--radius-l);
	}

	.woocommerce-pagination ul {
		display: flex;
		gap: var(--space-xs);
		margin-top: var(--space-2xl);
		padding: 0;
		list-style: none;

		a,
		span {
			display: grid;
			place-items: center;
			min-width: 44px;
			height: 44px;
			border: 1px solid var(--line);
			border-radius: var(--pill);
			text-decoration: none;
		}

		.current {
			background: var(--ink);
			color: var(--white);
		}
	}

	.nav-links {
		display: flex;
		gap: var(--space-xs);
		margin-top: var(--space-2xl);

		.page-numbers {
			display: grid;
			place-items: center;
			min-width: 44px;
			height: 44px;
			border: 1px solid var(--line);
			border-radius: var(--pill);
			text-decoration: none;

			&.current {
				background: var(--ink);
				color: var(--white);
			}
		}
	}

	/* Basket/checkout pages use page.php: give the content room. */
	.woocommerce-cart .prose,
	.woocommerce-checkout .prose,
	.woocommerce-account .prose {
		max-width: none;

		p,
		li {
			color: inherit;
		}
	}
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
@layer utilities {
	/* Set by main.js */
	.nav-open {
		overflow: hidden;
	}

	[data-reveal] {
		opacity: 0;
		transform: translateY(18px);
		transition:
			opacity 0.7s var(--ease) var(--reveal-delay, 0ms),
			transform 0.7s var(--ease) var(--reveal-delay, 0ms);

		&.is-revealed {
			opacity: 1;
			transform: none;
		}
	}

	.search-field.is-loading > .icon {
		animation: pulse 1s ease-in-out infinite;
	}

	select:disabled {
		opacity: 0.55;
		cursor: not-allowed;
	}

	@keyframes pulse {
		50% {
			opacity: 0.35;
		}
	}

	.article__hero {
		margin-top: var(--space-2xl);

		img {
			width: 100%;
			border-radius: var(--radius-l);
		}
	}
}
