/* =============================================================
   FOUNDRY — design system v2 "forge"
   Block-modular, industrial, Shift5-inspired.
   Charcoal / Warm White / Soft Stone / Burnt Orange
   Space Grotesk (display) + Inter (body) + JetBrains Mono (labels)
   ============================================================= */

/* ---------- Fonts (self-hosted, latin subset, variable) ---------- */
@font-face {
	font-family: 'Space Grotesk';
	src: url('../fonts/space-grotesk-var.woff2') format('woff2');
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'JetBrains Mono';
	src: url('../fonts/jetbrains-mono-var.woff2') format('woff2');
	font-weight: 100 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter-var.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
	/* colour */
	--paper: #FAF8F4;
	--stone: #E6E2D9;
	--stone-deep: #D8D3C6;
	--ink: #191715;
	--ink-soft: #23211E;
	--muted: #6E6960;
	--muted-dark: #A39D92;
	--line: rgba(25, 23, 21, 0.16);
	--line-dark: rgba(250, 248, 244, 0.16);
	--line-accent: rgba(25, 23, 21, 0.28);
	--accent: #E0521A;
	--accent-deep: #B8400F;

	/* type */
	--display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
	--sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
	--fs-display: clamp(3rem, 9vw, 7.75rem);
	--fs-h1: clamp(2.25rem, 5vw, 4rem);
	--fs-h2: clamp(1.7rem, 3.2vw, 2.6rem);
	--fs-h3: clamp(1.15rem, 1.8vw, 1.45rem);
	--fs-lead: clamp(1.05rem, 1.4vw, 1.25rem);

	/* rhythm */
	--measure: 52rem;
	--gutter: clamp(1.25rem, 3.5vw, 3rem);
	--sect: clamp(4rem, 8vw, 7.5rem);

	/* motion */
	--ease: cubic-bezier(0.22, 0.61, 0.21, 1);

	/* contextual (overridden per block) */
	--bg: var(--paper);
	--fg: var(--ink);
	--fg-muted: var(--muted);
	--rule: var(--line);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 1.0425rem;
	line-height: 1.65;
	font-weight: 400;
	color: var(--ink);
	background: var(--ink); /* block seams read as ink */
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--paper); }

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

.skip-link {
	position: absolute; left: -999rem; top: 0; z-index: 999;
	padding: 0.75rem 1.25rem; background: var(--ink); color: var(--paper);
}
.skip-link:focus { left: 0; }

/* ---------- Layout primitives ---------- */
/* Full-bleed, gutter-aligned. Every block — hero, header, footer, grids —
   shares one left edge. --container caps only long-form reading measures. */
.container {
	width: 100%;
	margin-inline: auto;
	padding-inline: var(--gutter);
}
/* Reading column starts at the gutter like everything else, rather than
   floating centre-stage away from the block edge. */
.container--narrow { max-width: calc(var(--measure) + var(--gutter) * 2); margin-inline: 0; }

.sect { padding-block: var(--sect); background: var(--bg); color: var(--fg); }
.sect--slim { padding-block: calc(var(--sect) * 0.45); }
.sect--flush-top { padding-top: 0; }

.sect--paper { --bg: var(--paper); }
.sect--stone { --bg: var(--stone); --rule: rgba(25, 23, 21, 0.18); }
.sect--ink {
	--bg: var(--ink);
	--fg: var(--paper);
	--fg-muted: var(--muted-dark);
	--rule: var(--line-dark);
}
.sect--accent {
	--bg: var(--accent);
	--fg: var(--ink);
	--fg-muted: rgba(25, 23, 21, 0.72);
	--rule: var(--line-accent);
}

/* blocks butt against each other with a hairline seam */
.site-main > .sect,
.site-main section.sect { border-bottom: 1px solid var(--ink); }

/* ---------- Typography ---------- */
.display, .h1, .h2, .h3 {
	font-family: var(--display);
	font-weight: 500;
	line-height: 0.98;
	letter-spacing: -0.03em;
	color: var(--fg);
	text-wrap: balance;
}
.display { font-size: var(--fs-display); max-width: 12ch; }
.h1 { font-size: var(--fs-h1); max-width: 20ch; }
.h2 { font-size: var(--fs-h2); line-height: 1.06; max-width: 26ch; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.015em; }

.display em, .h1 em, .h2 em,
.s-statement__claim em, .s-cta__heading em, .site-foot__statement em {
	font-style: normal;
	color: var(--accent);
}
.sect--accent .display em, .sect--accent .h1 em,
.sect--accent .s-statement__claim em, .s-cta__heading em { color: var(--paper); }

.lead {
	font-size: var(--fs-lead);
	line-height: 1.55;
	color: var(--fg-muted);
	max-width: 46ch;
}

/* mono uppercase label — replaces the old rule+number eyebrow */
.eyebrow {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fg-muted);
	margin-bottom: 1.75rem;
}
.eyebrow__num { color: var(--accent); }
.sect--accent .eyebrow__num { color: var(--ink); }

.tm { font-size: 0.4em; vertical-align: super; letter-spacing: 0; }

/* ---------- Buttons — mono pills, Shift5 style ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.9em 1.7em;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--mono);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1;
	text-decoration: none;
	border: 1px solid var(--ink);
	border-radius: 999px;
	transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.btn--ghost { background: transparent; color: var(--fg); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--fg); }

/* on the orange block, accent buttons flip to ink */
.sect--accent .btn--accent { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.sect--accent .btn--accent:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.sect--accent .btn--ghost { border-color: var(--line-accent); color: var(--ink); }
.sect--accent .btn--ghost:hover { border-color: var(--ink); }

.btn--lg { font-size: 0.84rem; padding: 1.05em 1.9em; }
.btn--sm { font-size: 0.72rem; padding: 0.75em 1.3em; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }

/* ---------- Header ---------- */
.site-head {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--paper) 94%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--ink);
}

.site-head__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	height: 4.75rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
}
.brand__mark {
	width: 0.75rem; height: 0.75rem;
	background: var(--accent);
	flex: none;
	transition: transform 0.35s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(45deg); }
.brand__word {
	font-family: var(--display);
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ink);
}

.site-nav { display: flex; align-items: center; gap: clamp(1.75rem, 3.5vw, 3.5rem); }
.site-nav__list {
	display: flex;
	gap: clamp(1.5rem, 3vw, 3.25rem);
	list-style: none;
	margin: 0;
}
.site-nav__list a {
	font-family: var(--mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	position: relative;
	padding-block: 0.35rem;
}
.site-nav__list a::after {
	content: '';
	position: absolute;
	left: 0; bottom: 0;
	width: 100%; height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--ease);
}
.site-nav__list a:hover::after,
.site-nav__list .current-menu-item a::after { transform: scaleX(1); }

.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.5rem 0;
}
.nav-toggle__bars {
	position: relative;
	width: 1.4rem; height: 1px;
	background: var(--ink);
	transition: background 0.2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after {
	content: '';
	position: absolute; left: 0;
	width: 100%; height: 1px;
	background: var(--ink);
	transition: transform 0.3s var(--ease);
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

body.nav-open .nav-toggle__bars { background: transparent; }
body.nav-open .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
body.nav-open .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

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

	/* A backdrop-filter ancestor becomes the containing block for fixed-position
	   descendants, which would size this panel against the header instead of the
	   viewport. Drop the filter while the menu is open so `fixed` means fixed. */
	body.nav-open .site-head {
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		background: var(--paper);
	}

	.site-nav {
		position: fixed;
		inset: 4.75rem 0 0 0;
		z-index: 99;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
		padding: 0;
		background: var(--ink);
		overflow-y: auto;
		overscroll-behavior: contain;
		transform: translateY(-100%);
		visibility: hidden;
		transition: transform 0.45s var(--ease), visibility 0s 0.45s;
	}
	body.nav-open .site-nav {
		transform: translateY(0);
		visibility: visible;
		transition: transform 0.45s var(--ease);
	}

	/* stacked rows with hairline seams, matching the block system */
	.site-nav__list {
		flex-direction: column;
		gap: 0;
		counter-reset: navitem;
	}
	.site-nav__list li { border-bottom: 1px solid var(--line-dark); }
	.site-nav__list a {
		display: flex;
		align-items: baseline;
		gap: 1rem;
		padding: 1.1rem var(--gutter);
		font-family: var(--display);
		font-size: clamp(1.9rem, 8vw, 2.6rem);
		font-weight: 500;
		letter-spacing: -0.025em;
		text-transform: none;
		color: var(--paper);
	}
	.site-nav__list a::before {
		counter-increment: navitem;
		content: counter(navitem, decimal-leading-zero);
		font-family: var(--mono);
		font-size: 0.7rem;
		font-weight: 500;
		letter-spacing: 0.08em;
		color: var(--accent);
	}
	.site-nav__list a::after { display: none; }

	.site-nav__cta {
		margin: 1.75rem var(--gutter) 2.5rem;
		justify-content: center;
	}

	body.nav-open { overflow: hidden; }
}

/* ---------- Page band — block header for inner pages ---------- */
.page-band { padding: 0; position: relative; overflow: hidden; }
.page-band__fx {
	position: absolute;
	inset: 0;
	pointer-events: none;
	/* character colours the renderer reads; override per theme if needed */
	--ascii-dim: rgba(250, 248, 244, 0.13);
	--ascii-bright: rgba(250, 248, 244, 0.30);
	--ascii-accent: rgba(224, 82, 26, 0.55);
}
.sect--stone .page-band__fx,
.sect--paper .page-band__fx {
	--ascii-dim: rgba(25, 23, 21, 0.10);
	--ascii-bright: rgba(25, 23, 21, 0.24);
	--ascii-accent: rgba(224, 82, 26, 0.6);
}
.ascii-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* heavy ink gradient over the ASCII field so band text stays properly readable —
   strongest bottom-left where the heading sits, falling away top-right */
.page-band__fx::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(78deg,
			rgba(25, 23, 21, 0.96) 0%,
			rgba(25, 23, 21, 0.78) 32%,
			rgba(25, 23, 21, 0.3) 62%,
			rgba(25, 23, 21, 0) 86%),
		linear-gradient(to top,
			rgba(25, 23, 21, 0.9) 0%,
			rgba(25, 23, 21, 0.35) 32%,
			rgba(25, 23, 21, 0) 55%);
}
.page-band__inner { position: relative; z-index: 1; }
.page-band__inner {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 2.5rem;
	min-height: min(26rem, 44vh);
	padding: calc(var(--gutter) * 1.2) var(--gutter) calc(var(--gutter) * 1.3);
}
.page-band__inner .eyebrow { margin-bottom: 0; }
.page-band__heading { font-size: clamp(2.5rem, 6.5vw, 5.5rem); max-width: 16ch; margin-left: -0.055em; }
.page-band__lead { margin-top: 1.5rem; }

/* legacy page-head (kept for any straggler templates) */
.page-head { padding-bottom: calc(var(--sect) * 0.55); }
.page-head__lead { margin-top: 1.75rem; }

/* ---------- Hairline cell grid ---------- */
.cellgrid {
	display: grid;
	gap: 1px;
	background: var(--rule);
	border: 1px solid var(--rule);
}
.cellgrid--2 { grid-template-columns: repeat(2, 1fr); }
.cellgrid--3 { grid-template-columns: repeat(3, 1fr); }
.cellgrid--4 { grid-template-columns: repeat(4, 1fr); }

.cell {
	background: var(--bg);
	padding: clamp(1.5rem, 2.6vw, 2.4rem);
	position: relative;
	min-height: 100%;
}

@media (max-width: 1020px) {
	.cellgrid--4, .cellgrid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.cellgrid--4, .cellgrid--3, .cellgrid--2 { grid-template-columns: 1fr; }
}

/* ---------- Section head ---------- */
.sect-head { margin-bottom: clamp(2.25rem, 4.5vw, 4rem); }
.sect-head__lead { margin-top: 1.4rem; }

/* mono support text — the system's voice for short intros */
.sect-head__lead, .page-band__lead, .s-statement__support,
.s-pillars__intro, .s-cta__text, .s-method__intro {
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	line-height: 1.8;
	color: var(--fg-muted);
	max-width: 52ch;
}
.sect-head--row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
}
.sect-head__more { flex: none; }

/* ---------- Hero — three-panel block split ---------- */
.s-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(18rem, 27%);
	padding: 0;
	background: var(--ink);
	gap: 1px;
}
.s-hero__main {
	background: var(--bg);
	color: var(--fg);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 1.5rem;
	min-height: min(82vh, 54rem);
	padding: calc(var(--gutter) * 1.4) var(--gutter) calc(var(--gutter) * 1.5);
}
.s-hero__main .eyebrow { margin-bottom: auto; }
/* optical alignment: big display glyphs carry side-bearing, so nudge them
   back to sit flush with the mono eyebrow above */
.s-hero__heading { max-width: 14ch; margin-left: -0.055em; }
.s-hero__lead { margin-top: 0.5rem; }
.s-hero__main .btn-row { margin-top: 1.25rem; }

.s-hero__rail {
	display: grid;
	grid-template-rows: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: 1px;
	min-width: 0;
}
.s-hero__note {
	background: var(--stone);
	color: var(--ink);
	padding: var(--gutter);
	display: flex;
	align-items: flex-end;
}
.s-hero__note p {
	font-family: var(--display);
	font-size: clamp(1.1rem, 1.5vw, 1.45rem);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.015em;
	max-width: 22ch;
}
.s-hero__panel {
	background: var(--ink);
	color: var(--paper);
	padding: var(--gutter);
	display: flex;
	flex-direction: column;
	gap: 1.4rem;
	overflow: hidden;
}
.s-hero__panel .eyebrow { color: var(--muted-dark); margin-bottom: 0; }
.s-hero__panel .motif { width: 80%; margin: auto; color: var(--paper); opacity: 0.8; }

/* capabilities index — the "System Status" homage */
.hero-index { list-style: none; display: flex; flex-direction: column; }
.hero-index a {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	padding-block: 0.44rem;
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--paper);
	opacity: 0.85;
	transition: opacity 0.2s, color 0.2s;
}
.hero-index a:hover { opacity: 1; color: var(--accent); }
.hero-index__num { color: var(--muted-dark); flex: none; }
.hero-index a::after {
	content: '';
	width: 0.3rem; height: 0.3rem;
	border-radius: 50%;
	background: var(--accent);
	margin-left: auto;
	flex: none;
	animation: status-pulse 2.6s ease-in-out infinite;
	animation-delay: calc(var(--i, 0) * 0.32s);
}
@keyframes status-pulse {
	0%, 100% { opacity: 0.35; }
	50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.hero-index a::after { animation: none; opacity: 0.85; }
}

/* hero without a rail collapses to one block */
.s-hero--solo { grid-template-columns: 1fr; }

@media (max-width: 860px) {
	.s-hero { grid-template-columns: 1fr; }
	.s-hero__main { min-height: 68vh; }
	.s-hero__rail { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
	.s-hero__note p { font-size: 1rem; }
}
@media (max-width: 640px) {
	.s-hero__rail { grid-template-columns: 1fr; }
}

/* ---------- Statement — split-panel block ---------- */
.s-statement {
	padding: 0;
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 9fr);
	gap: 1px;
	background: var(--ink);
}
.s-statement__side {
	background: var(--stone);
	color: var(--ink);
	padding: calc(var(--gutter) * 1.2) var(--gutter);
}
.s-statement__side .eyebrow { margin-bottom: 0; color: var(--muted); }
.s-statement__main {
	background: var(--bg);
	color: var(--fg);
	padding: calc(var(--gutter) * 1.2) var(--gutter) calc(var(--gutter) * 1.4);
}
.s-statement__claim {
	font-family: var(--display);
	font-size: var(--fs-h1);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.025em;
	max-width: 24ch;
	text-wrap: balance;
}
.s-statement__claim p { margin: 0; }
.s-statement__claim p + p { margin-top: 1.25rem; }
.s-statement__support { margin-top: 2.25rem; }
@media (max-width: 860px) {
	.s-statement { grid-template-columns: 1fr; }
	.s-statement__side { padding-block: var(--gutter); }
}

/* ---------- Icons — schematic line marks ---------- */
.icon {
	display: block;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.25;
	stroke-linecap: square;
	stroke-linejoin: miter;
}

/* ---------- Story to System — dark block, icon row, orange pop cell ---------- */
.s-method { padding: 0; }
.s-method__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 38ch);
	gap: 2rem;
	align-items: end;
	padding: calc(var(--gutter) * 1.2) var(--gutter);
}
.s-method__row {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--rule);
	border-block: 1px solid var(--rule);
}
.method-step {
	position: relative;
	background: var(--bg);
	color: var(--fg);
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	padding: clamp(1.5rem, 2.4vw, 2.4rem);
	min-height: clamp(15rem, 24vw, 20rem);
}
/* fixed spacing, not margin-bottom:auto — otherwise cells with longer text
   push their number and title out of line with the rest of the row */
.method-step__icon { color: var(--accent); margin-bottom: clamp(2rem, 5vw, 4.5rem); }
.method-step__num {
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--accent);
}
.method-step__title {
	font-family: var(--display);
	font-size: var(--fs-h3);
	font-weight: 600;
	letter-spacing: -0.01em;
}
.method-step__text {
	font-family: var(--mono);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.8;
	color: var(--fg-muted);
}
.method-step__arrow {
	position: absolute;
	right: 1.4rem; top: 1.4rem;
	font-size: 1.2rem;
	color: var(--accent);
	opacity: 0.85;
}
/* the pop cell — Growth lands on burnt orange */
.method-step--pop {
	background: var(--accent);
	color: var(--ink);
}
.method-step--pop .method-step__icon,
.method-step--pop .method-step__num { color: var(--ink); }
.method-step--pop .method-step__text { color: rgba(25, 23, 21, 0.72); }
@media (max-width: 1020px) {
	.s-method__head { grid-template-columns: 1fr; align-items: start; }
	.s-method__row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.s-method__row { grid-template-columns: 1fr; }
	.method-step { min-height: 0; }
	.method-step__icon { margin-bottom: 1.5rem; }
}

/* Process rows flex to the number of steps (4–6 reads best) */
.s-process .s-method__row { grid-template-columns: repeat(var(--steps, 4), 1fr); }
@media (max-width: 1200px) {
	.s-process .s-method__row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1020px) {
	.s-process .s-method__row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.s-process .s-method__row { grid-template-columns: 1fr; }
}

/* ---------- Contact form ---------- */
.s-form__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}
.s-form__intro {
	margin-top: 1.4rem;
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	line-height: 1.8;
	color: var(--fg-muted);
	max-width: 40ch;
}
.contact-form {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem 1.5rem;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.field__label {
	font-family: var(--mono);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fg-muted);
}
.field__req { color: var(--accent); }
.field__input {
	font-family: var(--sans);
	font-size: 1rem;
	color: var(--fg);
	background: var(--bg);
	border: 1px solid var(--rule);
	border-radius: 0;
	padding: 0.85rem 1rem;
	transition: border-color 0.25s var(--ease);
	width: 100%;
}
.field__input:focus { outline: none; border-color: var(--accent); }
.field__input--area { resize: vertical; min-height: 9rem; }

.cf-hp { position: absolute; left: -999rem; top: auto; }

.contact-form__foot {
	flex-direction: row;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}
.contact-form__note {
	font-family: var(--mono);
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fg-muted);
	max-width: 34ch;
	line-height: 1.7;
}
.contact-form__status { display: none; grid-column: 1 / -1; font-weight: 500; }
.contact-form.is-error .contact-form__status { display: block; color: var(--accent-deep); }
.contact-form.is-sent { grid-template-columns: 1fr; }
.contact-form.is-sent .field,
.contact-form.is-sent .contact-form__foot { display: none; }
.contact-form.is-sent .contact-form__status {
	display: block;
	font-family: var(--display);
	font-size: var(--fs-h3);
	font-weight: 500;
	color: var(--fg);
	border-left: 2px solid var(--accent);
	padding-left: 1.25rem;
}
.contact-form__submit[disabled] { opacity: 0.5; cursor: wait; transform: none; }

@media (max-width: 860px) {
	.s-form__grid { grid-template-columns: 1fr; }
	.contact-form { grid-template-columns: 1fr; }
}

/* ---------- Team ---------- */
.person { display: flex; flex-direction: column; gap: 0.5rem; }
.person__media {
	aspect-ratio: 4 / 5;
	background: var(--stone);
	display: grid;
	place-items: center;
	overflow: hidden;
	margin-bottom: 1.4rem;
}
.sect--stone .person__media { background: var(--paper); }
.sect--ink .person__media { background: var(--ink-soft); }
.person__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.05);
	transition: filter 0.5s var(--ease);
}
.person:hover .person__media img { filter: grayscale(0) contrast(1); }
.person__monogram {
	font-family: var(--display);
	font-size: clamp(3rem, 6vw, 5rem);
	font-weight: 500;
	letter-spacing: -0.03em;
	color: var(--accent);
}
.person__num {
	font-family: var(--mono);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--accent);
}
.person__name {
	font-family: var(--display);
	font-size: var(--fs-h3);
	font-weight: 600;
	letter-spacing: -0.015em;
}
.person__role {
	font-family: var(--mono);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fg-muted);
}
.person__bio { font-size: 0.92rem; line-height: 1.6; color: var(--fg-muted); margin-top: 0.6rem; }
.person__link {
	margin-top: 0.9rem;
	font-family: var(--mono);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--accent);
}
.person__link:hover { color: var(--accent-deep); }

/* ---------- Checklist — dense scope list ---------- */
.check-grid {
	list-style: none;
	display: grid;
	gap: 1px;
	background: var(--rule);
	border: 1px solid var(--rule);
}
.check-grid--1 { grid-template-columns: 1fr; }
.check-grid--2 { grid-template-columns: repeat(2, 1fr); }
.check-grid--3 { grid-template-columns: repeat(3, 1fr); }
.check-item {
	background: var(--bg);
	display: flex;
	align-items: baseline;
	gap: 1.1rem;
	padding: clamp(1.1rem, 1.8vw, 1.6rem) clamp(1.25rem, 2vw, 1.8rem);
	transition: background 0.25s var(--ease);
}
.check-item:hover { background: color-mix(in srgb, var(--bg) 88%, var(--stone-deep)); }
.check-item__num {
	font-family: var(--mono);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--accent);
	flex: none;
}
.check-item__body { display: flex; flex-direction: column; gap: 0.3rem; }
.check-item__title {
	font-family: var(--display);
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
}
.check-item__text {
	font-family: var(--mono);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.75;
	color: var(--fg-muted);
}
@media (max-width: 860px) {
	.check-grid--2, .check-grid--3 { grid-template-columns: 1fr; }
}

/* ---------- Testimonials — coloured block slider ---------- */
.s-quotes { padding: 0; overflow: hidden; position: relative; }
.s-quotes__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
	/* room for the floating block arrows */
	padding: calc(var(--gutter) * 1.2) calc(var(--gutter) + 8rem) calc(var(--gutter) * 1.2) var(--gutter);
}
/* block arrows floating in the top-right corner, butted together */
.s-quotes__nav {
	position: absolute;
	top: calc(var(--gutter) * 1.2);
	right: var(--gutter);
	z-index: 2;
	display: flex;
	gap: 1px;
	flex: none;
}
.s-quotes__btn {
	width: 3.5rem; height: 3.5rem;
	display: grid;
	place-items: center;
	background: var(--ink);
	color: var(--paper);
	border: 0;
	border-radius: 0;
	transition: background 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s var(--ease);
}
.s-quotes__btn:hover:not(:disabled) { background: var(--accent); color: var(--ink); }
.s-quotes__btn:disabled { opacity: 0.25; cursor: default; }
.s-quotes__btn svg { width: 1.15rem; height: 1.15rem; }
/* on dark/orange backgrounds the blocks invert */
.sect--ink .s-quotes__btn, .sect--accent .s-quotes__btn { background: var(--paper); color: var(--ink); }
.sect--ink .s-quotes__btn:hover:not(:disabled),
.sect--accent .s-quotes__btn:hover:not(:disabled) { background: var(--accent); color: var(--paper); }

@media (max-width: 640px) {
	.s-quotes__head { padding-right: calc(var(--gutter) + 6.5rem); }
	.s-quotes__btn { width: 3rem; height: 3rem; }
}

.s-quotes__track {
	display: flex;
	gap: 1px;
	/* seams only — no fill behind, so a short track never shows a grey gap */
	background: transparent;
	border-block: 1px solid var(--rule);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-behavior: smooth;
}
.s-quotes__track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) {
	.s-quotes__track { scroll-behavior: auto; }
}

.quote {
	flex: 0 0 clamp(19rem, 30vw, 28rem);
	scroll-snap-align: start;
	position: relative;
	/* hairline seam without relying on a track background */
	box-shadow: 1px 0 0 var(--rule);
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding: clamp(1.75rem, 3vw, 2.75rem);
	min-height: clamp(20rem, 30vw, 26rem);
}
.quote__mark {
	font-family: var(--display);
	font-size: 3rem;
	font-weight: 600;
	line-height: 0.7;
	opacity: 0.5;
}
.quote__text {
	font-family: var(--display);
	font-size: clamp(1.15rem, 1.7vw, 1.5rem);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.015em;
	margin-bottom: auto;
}
.quote__attr { display: flex; flex-direction: column; gap: 0.3rem; }
.quote__name {
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.quote__role {
	font-family: var(--mono);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	opacity: 0.7;
}

/* coloured blocks */
.quote--accent { background: var(--accent); color: var(--ink); }
.quote--ink { background: var(--ink); color: var(--paper); }
.quote--stone { background: var(--stone); color: var(--ink); }
.quote--paper { background: var(--paper); color: var(--ink); }

@media (max-width: 640px) {
	.quote { flex-basis: 84vw; min-height: 0; }
}

/* ---------- Services — split block: dark feature left, grid right ---------- */
.s-services {
	padding: 0;
	display: grid;
	grid-template-columns: minmax(0, 10fr) minmax(0, 13fr);
	gap: 1px;
	background: var(--ink);
}
.s-services__feature {
	--bg: var(--ink);
	--fg: var(--paper);
	--fg-muted: var(--muted-dark);
	--rule: var(--line-dark);
	background: var(--bg);
	color: var(--fg);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 3rem;
	padding: calc(var(--gutter) * 1.2) var(--gutter);
	min-height: min(44rem, 78vh);
}
.s-services__feature .eyebrow { margin-bottom: 0; }
.s-services__feature-body { display: flex; flex-direction: column; gap: 1.75rem; }
.s-services__heading { max-width: 14ch; }
.s-services__intro {
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	line-height: 1.8;
	color: var(--fg-muted);
	max-width: 44ch;
}
.s-services__feature .btn-row { margin-top: 0.5rem; }
.s-services__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	background: var(--rule);
	min-width: 0;
}
.s-services__grid .service-cell {
	padding: clamp(1.5rem, 2.6vw, 2.4rem);
	padding-bottom: 3.4rem;
	display: flex;
}
@media (max-width: 1020px) {
	.s-services { grid-template-columns: 1fr; }
	.s-services__feature { min-height: 0; }
}
@media (max-width: 640px) {
	.s-services__grid { grid-template-columns: 1fr; }
}

/* ---------- Service cells ---------- */
.service-cell {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	text-decoration: none;
	padding-bottom: 3.4rem;
	transition: background 0.3s var(--ease);
}
.service-cell:hover { background: color-mix(in srgb, var(--bg) 86%, var(--stone-deep)); }
.sect--stone .service-cell:hover { background: color-mix(in srgb, var(--bg) 78%, var(--paper)); }
.service-cell__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 0.25rem;
}
.service-cell__num {
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--accent);
}
.service-cell__icon { color: var(--accent); }
.service-cell__title {
	font-family: var(--display);
	font-size: var(--fs-h3);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
}
.service-cell__line {
	font-family: var(--mono);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.8;
	color: var(--fg-muted);
}
.service-cell__arrow {
	position: absolute;
	right: 1.4rem; bottom: 1.1rem;
	font-size: 1.2rem;
	color: var(--fg-muted);
	transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.service-cell:hover .service-cell__arrow { transform: translateX(4px); color: var(--accent); }

/* ---------- Case cards ---------- */
.case-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--rule);
	border: 1px solid var(--rule);
}
@media (max-width: 1020px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .case-grid { grid-template-columns: 1fr; } }

.case-card {
	position: relative;
	display: block;
	text-decoration: none;
	background: var(--bg);
	padding: clamp(1.25rem, 2vw, 1.75rem) clamp(1.25rem, 2vw, 1.75rem) 3rem;
	transition: background 0.3s var(--ease);
}
.case-card:hover { background: color-mix(in srgb, var(--bg) 86%, var(--stone-deep)); }
.sect--stone .case-card:hover { background: color-mix(in srgb, var(--bg) 78%, var(--paper)); }
.case-card__media {
	aspect-ratio: 4 / 3;
	background: var(--stone-deep);
	display: grid;
	place-items: center;
	overflow: hidden;
	margin-bottom: 1.4rem;
}
.sect--stone .case-card__media { background: var(--paper); }
.case-card__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.05); /* b/w photography treatment */
	transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.case-card:hover .case-card__media img { filter: grayscale(0) contrast(1); }
.case-card__media .motif { width: 52%; color: var(--ink); opacity: 0.75; transition: transform 0.6s var(--ease); }
.case-card:hover .case-card__media img,
.case-card:hover .case-card__media .motif { transform: scale(1.04); }
.case-card__meta {
	font-family: var(--mono);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fg-muted);
	margin-bottom: 0.6rem;
}
.case-card__title {
	font-family: var(--display);
	font-size: var(--fs-h3);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
	max-width: 24ch;
}
.case-card__arrow {
	position: absolute;
	right: 1.5rem; bottom: 1.1rem;
	font-size: 1.2rem;
	color: var(--fg-muted);
	transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.case-card:hover .case-card__arrow { transform: translateX(4px); color: var(--accent); }

.case-hero { max-height: 70vh; overflow: hidden; }
.case-hero img { width: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }

/* ---------- Pillars — mirrored split block ---------- */
.s-pillars {
	padding: 0;
	display: grid;
	grid-template-columns: minmax(0, 13fr) minmax(0, 10fr);
	gap: 1px;
	background: var(--ink);
}
.s-pillars__cells {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	background: var(--rule);
	min-width: 0;
}
.pillar {
	background: var(--bg);
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding: clamp(1.5rem, 2.6vw, 2.4rem);
}
.pillar__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 0.5rem;
}
.pillar__num {
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--accent);
}
.pillar__icon { color: var(--accent); }
.pillar__title {
	font-family: var(--display);
	font-size: var(--fs-h3);
	font-weight: 600;
	letter-spacing: -0.01em;
}
.pillar__text {
	font-family: var(--mono);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.8;
	color: var(--fg-muted);
}
.s-pillars__feature {
	background: var(--stone);
	color: var(--ink);
	--fg: var(--ink);
	--fg-muted: var(--muted);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 3rem;
	padding: calc(var(--gutter) * 1.2) var(--gutter);
	min-height: min(38rem, 70vh);
}
.s-pillars__feature .eyebrow { margin-bottom: 0; }
.s-pillars__feature-body { display: flex; flex-direction: column; gap: 1.75rem; }
.s-pillars__heading { max-width: 13ch; }
@media (max-width: 1020px) {
	.s-pillars { grid-template-columns: 1fr; }
	.s-pillars__feature { order: -1; min-height: 0; }
}
@media (max-width: 640px) {
	.s-pillars__cells { grid-template-columns: 1fr; }
}

/* ---------- Insights ---------- */
.insight-rows { border-top: 1px solid var(--rule); counter-reset: irow; }
.insight-row {
	display: grid;
	grid-template-columns: 2.6rem 8.5rem 1fr auto;
	align-items: baseline;
	gap: 1.5rem;
	padding: 1.5rem 0.5rem;
	border-bottom: 1px solid var(--rule);
	text-decoration: none;
	transition: background 0.25s var(--ease);
}
.insight-row::before {
	counter-increment: irow;
	content: counter(irow, decimal-leading-zero) ".";
	font-family: var(--mono);
	font-size: 0.7rem;
	font-weight: 500;
	color: var(--accent);
}
.insight-row:hover { background: color-mix(in srgb, var(--bg) 88%, var(--stone-deep)); }
.insight-row__date {
	font-family: var(--mono);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--fg-muted);
}
.insight-row__title {
	font-family: var(--display);
	font-size: clamp(1.1rem, 1.8vw, 1.5rem);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.015em;
}
.insight-row__arrow { color: var(--fg-muted); transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.insight-row:hover .insight-row__arrow { transform: translateX(4px); color: var(--accent); }
@media (max-width: 640px) {
	.insight-row { grid-template-columns: 2.6rem 1fr auto; }
	.insight-row__date { grid-column: 2 / -1; }
	.insight-row__title { grid-column: 2 / 3; }
}

/* ---------- Stats ---------- */
.stat { display: flex; flex-direction: column; gap: 0.5rem; }
.stat__value {
	font-family: var(--display);
	font-size: clamp(2.4rem, 4.5vw, 3.9rem);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.03em;
}
.stat__dot { color: var(--accent); }
.sect--ink .stat__dot { color: var(--accent); }
.stat__label {
	font-family: var(--mono);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fg-muted);
}

/* ---------- Logos ---------- */
.s-logos__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(2rem, 5vw, 4.5rem);
}
.s-logos__img {
	height: 2.1rem;
	width: auto;
	filter: grayscale(1);
	opacity: 0.65;
	transition: opacity 0.3s var(--ease), filter 0.3s var(--ease);
}
.s-logos__img:hover { filter: none; opacity: 1; }

/* ---------- Split ---------- */
.s-split__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(2rem, 5vw, 5.5rem);
	align-items: center;
}
.s-split__grid--right .s-split__media { order: 2; }
.s-split__media { background: var(--stone); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.sect--stone .s-split__media { background: var(--paper); }
.sect--ink .s-split__media { background: var(--ink-soft); }
.s-split__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.s-split__media .motif { width: 52%; color: var(--fg); opacity: 0.75; }
.s-split__body .prose { margin-top: 1.5rem; }
@media (max-width: 860px) {
	.s-split__grid { grid-template-columns: 1fr; }
	.s-split__grid--right .s-split__media { order: 0; }
}

/* ---------- FAQ ---------- */
.s-faq__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}
.s-faq__items { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.35rem 0.25rem;
	font-family: var(--display);
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.01em;
	cursor: pointer;
	list-style: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__icon {
	position: relative;
	width: 0.9rem; height: 0.9rem;
	flex: none;
}
.faq-item__icon::before, .faq-item__icon::after {
	content: '';
	position: absolute;
	background: var(--accent);
	transition: transform 0.3s var(--ease);
}
.faq-item__icon::before { left: 0; top: calc(50% - 0.5px); width: 100%; height: 1px; }
.faq-item__icon::after { top: 0; left: calc(50% - 0.5px); width: 1px; height: 100%; }
.faq-item[open] .faq-item__icon::after { transform: scaleY(0); }
.faq-item__a { padding: 0 0.25rem 1.6rem; max-width: 56ch; }
@media (max-width: 860px) {
	.s-faq__grid { grid-template-columns: 1fr; }
}

/* ---------- CTA — the bright block ---------- */
.s-cta {
	--bg: var(--accent);
	--fg: var(--ink);
	--fg-muted: rgba(25, 23, 21, 0.72);
	--rule: var(--line-accent);
	background: var(--accent);
	color: var(--ink);
	position: relative;
	overflow: hidden;
}
.s-cta__grid {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 3fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}
.s-cta__heading { max-width: 15ch; font-size: clamp(2.5rem, 6vw, 5rem); }
.s-cta__text { margin-top: 1.75rem; }
.s-cta .btn--accent { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.s-cta .btn--accent:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.s-cta__motif { color: var(--ink); opacity: 0.85; }
.s-cta__motif .motif, .s-hero__panel .motif { will-change: transform; }
@media (max-width: 860px) {
	.s-cta__grid { grid-template-columns: 1fr; }
	.s-cta__motif { max-width: 11rem; justify-self: end; opacity: 0.5; }
}

/* ---------- Prose ---------- */
.prose { max-width: 68ch; }
.prose h2, .prose h3 {
	font-family: var(--display);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 2.25em 0 0.75em;
}
.prose h2 { font-size: var(--fs-h2); }
.prose h3 { font-size: var(--fs-h3); }
.prose p { margin: 0 0 1.35em; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-deep); }
.prose ul, .prose ol { margin: 0 0 1.35em; padding-left: 1.25em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
	margin: 2em 0;
	padding-left: 1.5em;
	border-left: 2px solid var(--accent);
	font-family: var(--display);
	font-size: 1.2em;
	font-weight: 500;
	line-height: 1.35;
}
.prose img { margin-block: 2em; }
.sect--ink .prose { color: var(--muted-dark); }

/* ---------- Insight single: article + sticky sidebar ---------- */
.insight-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem);
	gap: clamp(2.5rem, 5vw, 5.5rem);
	align-items: start;
}
.insight-article .prose { max-width: 62ch; font-size: 1.1rem; line-height: 1.75; }

.insight-side {
	position: sticky;
	top: 5.75rem; /* header + breathing room */
	display: flex;
	flex-direction: column;
	gap: 1px;
	background: var(--rule);
	border: 1px solid var(--rule);
}
.side-block { background: var(--bg); padding: 1.35rem 1.4rem; }
.side-block__label {
	font-family: var(--mono);
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fg-muted);
	margin-bottom: 0.9rem;
}

.side-search { display: flex; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.side-search__input {
	flex: 1;
	min-width: 0;
	font-family: var(--sans);
	font-size: 0.92rem;
	color: var(--fg);
	background: var(--bg);
	border: 0;
	padding: 0.7rem 0.9rem;
}
.side-search__input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--accent); }
.side-search__btn {
	background: var(--ink);
	color: var(--paper);
	padding: 0 1rem;
	font-size: 1rem;
	transition: background 0.25s var(--ease);
}
.side-search__btn:hover { background: var(--accent); }

.side-rel { list-style: none; display: flex; flex-direction: column; }
.side-rel li + li { border-top: 1px solid var(--rule); }
.side-rel a { display: block; padding: 0.8rem 0; text-decoration: none; }
.side-rel li:first-child a { padding-top: 0; }
.side-rel li:last-child a { padding-bottom: 0; }
.side-rel__title {
	display: block;
	font-family: var(--display);
	font-size: 0.98rem;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.01em;
	transition: color 0.2s;
}
.side-rel a:hover .side-rel__title { color: var(--accent); }
.side-rel__date {
	font-family: var(--mono);
	font-size: 0.64rem;
	font-weight: 500;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--fg-muted);
}

.side-cats { list-style: none; display: flex; flex-direction: column; }
.side-cats li + li { border-top: 1px solid var(--rule); }
.side-cats a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 0.55rem 0;
	text-decoration: none;
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--fg);
}
.side-cats a:hover { color: var(--accent); }
.side-cats__count { color: var(--fg-muted); }

.side-author__row { display: flex; gap: 1rem; align-items: flex-start; }
.side-author__monogram {
	flex: none;
	width: 2.9rem; height: 2.9rem;
	display: grid;
	place-items: center;
	background: var(--stone);
	font-family: var(--display);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--accent);
}
.side-author__name { font-family: var(--display); font-size: 1rem; font-weight: 600; }
.side-author__bio { font-size: 0.82rem; line-height: 1.55; color: var(--fg-muted); margin-top: 0.3rem; }

.side-cta { background: var(--accent); color: var(--ink); }
.side-cta__heading {
	font-family: var(--display);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.015em;
	margin-bottom: 1rem;
	max-width: 16ch;
}
.side-cta__btn { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.side-cta__btn:hover { background: var(--ink-soft); }

.post-nav--inline {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	margin-top: 3.5rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--rule);
	max-width: 62ch;
}

@media (max-width: 1020px) {
	.insight-layout { grid-template-columns: 1fr; }
	.insight-side { position: static; }
}

/* ---------- Post nav / pagination ---------- */
.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	padding-block: 0 var(--sect);
}
.post-nav a { text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 1.05rem; }
.post-nav a:hover { color: var(--accent); }

.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.6rem; height: 2.6rem;
	padding-inline: 0.5rem;
	border: 1px solid var(--rule);
	text-decoration: none;
	font-family: var(--mono);
	font-size: 0.8rem;
	font-weight: 500;
}
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-foot {
	background: var(--ink);
	color: var(--paper);
	--fg: var(--paper);
	--fg-muted: var(--muted-dark);
	--rule: var(--line-dark);
	padding-block: var(--sect) 2.5rem;
}
.site-foot__statement {
	font-family: var(--display);
	font-size: clamp(2.4rem, 6vw, 5.25rem);
	font-weight: 500;
	line-height: 0.98;
	letter-spacing: -0.03em;
	max-width: 16ch;
	text-wrap: balance;
}
.site-foot__statement em { font-style: normal; color: var(--accent); }
.site-foot__statement p { margin: 0; }
.site-foot__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5rem;
	margin-top: clamp(3rem, 6vw, 5rem);
	padding-top: 2.5rem;
	border-top: 1px solid var(--line-dark);
}
.site-foot__label {
	font-family: var(--mono);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted-dark);
	margin-bottom: 1.1rem;
}
.site-foot__list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.site-foot__list a {
	text-decoration: none;
	font-size: 0.92rem;
	color: var(--paper);
	opacity: 0.85;
	transition: opacity 0.2s, color 0.2s;
}
.site-foot__list a:hover { opacity: 1; color: var(--accent); }
.site-foot__method {
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted-dark);
}
.site-foot__bottom {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
	margin-top: 3.5rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--line-dark);
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	color: var(--muted-dark);
}
.site-foot__up { color: inherit; text-decoration: none; }
.site-foot__up:hover { color: var(--accent); }
@media (max-width: 860px) {
	.site-foot__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- System diagram — animated hub-and-spoke ---------- */
.s-sysdiag { padding: 0; }
.s-sysdiag__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 38ch);
	gap: 2rem;
	align-items: end;
	padding: calc(var(--gutter) * 1.2) var(--gutter) var(--gutter);
}
.s-sysdiag__intro {
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	line-height: 1.8;
	color: var(--fg-muted);
	max-width: 52ch;
}
.s-sysdiag__stage { padding: 0 var(--gutter) calc(var(--gutter) * 1.2); }
.sysdiag { display: block; width: 100%; height: auto; max-height: 88vh; margin-inline: auto; }

.sysdiag__link {
	stroke: var(--rule);
	stroke-width: 1;
	stroke-dasharray: var(--len);
	stroke-dashoffset: var(--len);
}
.sysdiag__pulse {
	stroke: var(--accent);
	stroke-width: 1.5;
	stroke-dasharray: 14 calc(var(--len) - 14);
	stroke-dashoffset: var(--len);
	opacity: 0;
}
.sysdiag__marker {
	fill: var(--bg);
	stroke: var(--accent);
	stroke-width: 1.25;
}
.sysdiag__label {
	fill: var(--fg-muted);
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.sysdiag__node { opacity: 0; }
.sysdiag__ring { fill: none; stroke: var(--fg); stroke-width: 1; }
.sysdiag__ring--outer { stroke: var(--accent); stroke-width: 1.5; }
.sysdiag__core { fill: var(--accent); }
.sysdiag__hub-label {
	fill: var(--fg);
	font-family: var(--mono);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.sysdiag__hub { opacity: 0; }

/* choreography: hub materialises, links draw outward, nodes land, data pulses */
.is-in .sysdiag__hub { animation: sysdiag-fade 0.8s var(--ease) 0.1s forwards; }
.is-in .sysdiag__link { animation: sysdiag-draw 0.9s var(--ease) var(--d, 0s) forwards; }
.is-in .sysdiag__node { animation: sysdiag-fade 0.6s var(--ease) var(--d, 0s) forwards; }
.is-in .sysdiag__pulse { animation: sysdiag-pulse 3.2s linear calc(var(--d, 0s) + 1.4s) infinite; }
.is-in .sysdiag__ring--outer {
	transform-origin: center;
	transform-box: fill-box;
	animation: sysdiag-fade 0.8s var(--ease) 0.1s forwards, sysdiag-breathe 6s ease-in-out 1.5s infinite;
}

@keyframes sysdiag-draw { to { stroke-dashoffset: 0; } }
@keyframes sysdiag-fade { to { opacity: 1; } }
@keyframes sysdiag-pulse {
	0%       { stroke-dashoffset: var(--len); opacity: 0; }
	8%       { opacity: 0.9; }
	42%      { opacity: 0.9; }
	50%,100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes sysdiag-breathe {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.035); }
}

/* mobile: radial layout becomes unreadable — switch to a hairline list */
.s-sysdiag__list { display: none; }
@media (max-width: 860px) {
	.s-sysdiag__head { grid-template-columns: 1fr; align-items: start; }
	.sysdiag { display: none; }
	.s-sysdiag__list { display: block; }
	.s-sysdiag__hub-mobile {
		display: inline-block;
		font-family: var(--mono);
		font-size: 0.78rem;
		font-weight: 600;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		color: var(--ink);
		background: var(--accent);
		padding: 0.8rem 1.1rem;
		margin-bottom: 1px;
	}
	.s-sysdiag__list ul { list-style: none; border-top: 1px solid var(--rule); }
	.s-sysdiag__list li {
		display: flex;
		align-items: baseline;
		gap: 0.9rem;
		padding: 0.9rem 0.25rem;
		border-bottom: 1px solid var(--rule);
		font-family: var(--mono);
		font-size: 0.72rem;
		font-weight: 500;
		letter-spacing: 0.07em;
		text-transform: uppercase;
		color: var(--fg);
	}
	.s-sysdiag__num { color: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
	.sysdiag__hub, .sysdiag__node { opacity: 1; animation: none !important; }
	.sysdiag__link { stroke-dashoffset: 0; animation: none !important; }
	.sysdiag__pulse { display: none; }
}

/* ---------- Embers — small ASCII wave fields, fire palette ---------- */
.ember {
	position: relative;
	width: clamp(9rem, 15vw, 14rem);
	aspect-ratio: 4 / 3;
	overflow: hidden;
	pointer-events: none;
}
.ember .ascii-canvas { position: absolute; inset: 0; }

/* hero dark panel: the ember fills the whole panel behind the index,
   with an ink shadow dragging down from the top so the list stays legible
   and the fire emerges out of the dark toward the bottom */
.s-hero__panel { position: relative; }
.s-hero__panel .eyebrow,
.s-hero__panel .hero-index { position: relative; z-index: 1; }
.s-hero__panel .ember {
	position: absolute;
	inset: 0;
	width: auto;
	aspect-ratio: auto;
}
.s-hero__panel .ember::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom,
		rgba(25, 23, 21, 1) 0%,
		rgba(25, 23, 21, 0.92) 38%,
		rgba(25, 23, 21, 0.55) 62%,
		rgba(25, 23, 21, 0.12) 85%,
		rgba(25, 23, 21, 0) 100%);
}
@media (max-width: 860px) {
	.s-hero__panel .ember { display: none; }
}

/* footer: the ember fills the whole footer behind the content, buried
   under a heavy ink gradient anchored bottom-left — the fire breaks
   through toward the top-right corner */
.site-foot { position: relative; overflow: hidden; }
.site-foot > .container { position: relative; z-index: 1; }
.site-foot__ember {
	position: absolute;
	inset: 0;
	width: auto;
	aspect-ratio: auto;
}
.site-foot__ember::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(48deg,
		rgba(25, 23, 21, 1) 0%,
		rgba(25, 23, 21, 0.96) 32%,
		rgba(25, 23, 21, 0.72) 54%,
		rgba(25, 23, 21, 0.26) 76%,
		rgba(25, 23, 21, 0) 92%);
}

/* ---------- Marquee ticker ---------- */
.s-marquee {
	padding: 0;
	overflow: hidden;
	border-block: 1px solid var(--rule);
}
/* Animate the whole track by exactly one half — seamless because both
   halves are identical. Animating the halves individually leaves a gap
   whenever the phrase set is narrower than the viewport. */
.s-marquee__track {
	display: flex;
	width: max-content;
	animation: marquee-run var(--marquee-speed, 60s) linear infinite;
	will-change: transform;
}
.s-marquee__run {
	display: flex;
	align-items: center;
	gap: 2.5rem;
	padding: 1.1rem 1.25rem;
	white-space: nowrap;
}
.s-marquee--slow  { --marquee-speed: 95s; }
.s-marquee--fast  { --marquee-speed: 38s; }
.s-marquee__item {
	font-family: var(--mono);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fg);
}
.s-marquee__sep { color: var(--accent); font-size: 0.7rem; }
@keyframes marquee-run { to { transform: translateX(-50%); } }
.s-marquee:hover .s-marquee__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
	.s-marquee__track { animation: none; width: 100%; overflow-x: auto; }
}

/* screen-reader-only text (WP convention) */
.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Scroll progress hairline ---------- */
.scroll-progress {
	position: fixed;
	top: 0; left: 0;
	z-index: 200;
	height: 2px;
	width: 100%;
	background: var(--accent);
	transform: scaleX(var(--p, 0));
	transform-origin: left;
	pointer-events: none;
	will-change: transform;
}

/* ---------- Blueprint grid overlay (press G) ---------- */
.grid-overlay {
	position: fixed;
	inset: 0;
	z-index: 190;
	pointer-events: none;
	display: none;
	padding-inline: var(--gutter);
}
body.grid-on .grid-overlay { display: block; }
.grid-overlay__inner {
	height: 100%;
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 1px;
}
.grid-overlay__inner span { background: rgba(224, 82, 26, 0.09); }
.grid-overlay__hint {
	position: fixed;
	right: var(--gutter);
	bottom: 1rem;
	font-family: var(--mono);
	font-size: 0.62rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
}
@media (max-width: 860px) {
	.grid-overlay__inner { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Motifs ---------- */
.motif { width: 100%; height: auto; }
.motif line, .motif circle, .motif ellipse { stroke: currentColor; fill: none; stroke-width: 0.75; }
.motif .dot { fill: currentColor; stroke: none; }

/* ---------- Reveal & load animation ---------- */
@media (prefers-reduced-motion: no-preference) {
	[data-reveal] {
		opacity: 0;
		transform: translateY(26px);
		transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
	}
	[data-reveal].is-in { opacity: 1; transform: none; }

	/* The clip box gets extra room below (cancelled by the negative margin,
	   so layout is unchanged) — otherwise tight display line-height shears
	   the descenders off y/g/p while the words rise. */
	.js-split.is-split .w {
		display: inline-block;
		overflow: hidden;
		vertical-align: bottom;
		padding-bottom: 0.18em;
		margin-bottom: -0.18em;
	}
	.js-split.is-split .wi {
		display: inline-block;
		transform: translateY(140%);
		color: var(--accent); /* words land in orange… */
		transition: transform 0.9s var(--ease), color 1.1s var(--ease);
		transition-delay: var(--d, 0s), calc(var(--d, 0s) + 0.55s);
	}
	.js-split.is-split.is-ready .wi {
		transform: none;
		color: inherit; /* …then settle to their final colour */
	}
	/* on orange blocks the flash is warm white instead */
	.sect--accent .js-split.is-split .wi,
	.s-cta .js-split.is-split .wi { color: var(--paper); }
	.sect--accent .js-split.is-split.is-ready .wi,
	.s-cta .js-split.is-split.is-ready .wi { color: inherit; }
}

/* ---------- "For sale" bar — Revolv branding ---------- */
/* Sits above the sticky header in flow, so it scrolls away on long pages.
   Deliberately uses Revolv's own near-black rather than --ink: this bar
   belongs to Revolv, not to the Foundry palette underneath it. */
.forsale {
	--rv-ground: #0A0A0A;
	--rv-a: #ECFF41;   /* lime — drives the logo's "REV" + mark */
	--rv-b: #FFFFFF;   /* white — drives the logo's "OLV" */
	background: var(--rv-ground);
	color: var(--rv-b);
}
.forsale__link { display: block; text-decoration: none; color: inherit; }
.forsale__link:focus-visible { outline: 2px solid var(--rv-a); outline-offset: -3px; }

.forsale__inner {
	display: flex;
	align-items: center;
	gap: clamp(0.8rem, 2.2vw, 1.5rem);
	min-height: 2.6rem;
	padding-block: 0.55rem;
}

.forsale__brand { display: flex; align-items: center; flex: none; }
.rv-logo { display: block; height: 0.95rem; width: auto; }

.forsale__msg {
	font-family: var(--mono);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	line-height: 1.2;
	color: rgba(255, 255, 255, 0.7);
	padding-left: clamp(0.8rem, 2.2vw, 1.5rem);
	border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.forsale__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
	flex: none;
	font-family: var(--mono);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--rv-a);
}
.forsale__arrow {
	width: 0.95rem; height: 0.95rem;
	transition: transform 0.3s var(--ease);
}
.forsale__link:hover .forsale__arrow,
.forsale__link:focus-visible .forsale__arrow { transform: translateX(4px); }
.forsale__link:hover .forsale__msg { color: rgba(255, 255, 255, 0.9); }

/* Narrow: the wordmark and the call to action carry it; the message is the
   first thing to go, since the bar must not wrap to two lines. */
@media (max-width: 700px) {
	.forsale__msg { display: none; }
	.forsale__inner { gap: 1rem; }
}
@media (max-width: 380px) {
	.forsale__cta-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.forsale__arrow { transition: none; }
}
