/*
 * Prism — main stylesheet.
 * Design tokens use space-separated "R G B" triples. Always consume them
 * with the modern `rgb(var(--x) / alpha)` slash syntax — the old comma-style
 * alpha function (with an "a" suffix) is invalid here and gets silently
 * dropped by the browser.
 *
 * Palette: a true near-black studio base (void/charcoal) — the hero's
 * light-dispersion effect (a real Cauchy-dispersion, Snell's-law prism
 * spectrum) needs genuine darkness to read, the same principle Argon's
 * neon glow relied on. The full spectral rainbow is available as an accent
 * system, but used with restraint: three "hero" accents pulled from the
 * spectrum — a violet/magenta, a cyan, and a warm amber — carry every CTA,
 * link, and highlight; nothing else in the UI reaches for a rainbow.
 *
 * LEGIBILITY: every content block that sits over the persistent GPU canvas
 * carries its own solid/semi-opaque scrim (rgba void + backdrop-filter
 * blur) so text stays legible regardless of what the shader is doing
 * behind it at that scroll position — this exact class of bug hit the
 * immediately-prior Argon build and had to be patched after the fact.
 *
 * Type scale: perfect-fourth 1.333 ratio, 7 sizes (the same ratio this
 * theme's own type-scale tool defaults to). Spacing: the same 4px-based
 * scale used across the catalogue (8/12/20/32/56/96). Headings use
 * Instrument Serif (idiosyncratic display serif, real typographic
 * character); body copy uses Manrope (clean geometric workhorse sans).
 */

:root {
	--pr-void: 6 7 10;
	--pr-char-deep: 11 12 16;
	--pr-char: 18 20 26;
	--pr-char-2: 27 30 38;
	--pr-char-3: 40 44 54;
	--pr-ink: 240 241 245;
	--pr-ink-dim: 158 163 175;
	--pr-line: 255 255 255;

	--pr-violet: 178 107 255;
	--pr-violet-bright: 200 140 255;
	--pr-violet-ink: 16 6 26;

	--pr-cyan: 34 211 238;
	--pr-cyan-bright: 103 232 249;
	--pr-cyan-ink: 3 20 22;

	--pr-amber: 255 176 32;
	--pr-amber-bright: 255 196 84;
	--pr-amber-ink: 26 16 2;

	--font-head: 'Instrument Serif', Georgia, serif;
	--font-sans: 'Manrope', system-ui, sans-serif;
	--font-mono: 'Manrope', ui-monospace, 'SFMono-Regular', Menlo, monospace;

	--radius: 6px;

	--sp-1: 8px;
	--sp-2: 12px;
	--sp-3: 20px;
	--sp-4: 32px;
	--sp-5: 56px;
	--sp-6: 96px;

	--fs-1: .75rem;
	--fs-2: 1rem;
	--fs-3: 1.333rem;
	--fs-4: 1.777rem;
	--fs-5: 2.369rem;
	--fs-6: 3.157rem;
	--fs-7: 4.209rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: rgb(var(--pr-void));
	color: rgb(var(--pr-ink));
	font-family: var(--font-sans);
	font-size: var(--fs-2);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	position: relative;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
ul, ol.process-list { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.12; margin: 0 0 var(--sp-2); color: rgb(var(--pr-ink)); }
p { margin: 0 0 var(--sp-2); color: rgb(var(--pr-ink) / .84); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1, "lnum" 1; letter-spacing: .01em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link {
	z-index: 1000;
	position: absolute;
	top: -100px;
	left: var(--sp-2);
	background: rgb(var(--pr-amber-bright));
	color: rgb(var(--pr-amber-ink));
	padding: var(--sp-1) var(--sp-2);
	border-radius: var(--radius);
}
.skip-link:focus { top: var(--sp-2); }

/* ---------- Persistent GPU background ---------- */
.pr-scene {
	position: fixed;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	display: block;
	/* CSS fallback (JS/WebGL unavailable): a true-dark, near-black studio
	   gradient with the faintest cool cast — no rainbow — so the page is
	   always legible even with no GPU rendering active. */
	background:
		radial-gradient(ellipse 55% 35% at 50% 0%, rgb(var(--pr-violet) / .05), transparent 60%),
		linear-gradient(180deg, rgb(var(--pr-char)) 0%, rgb(var(--pr-char-deep)) 45%, rgb(var(--pr-void)) 100%);
}

/* ---------- Header ---------- */
.site-header {
	position: relative;
	z-index: 5;
	background: rgb(var(--pr-void) / .84);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgb(var(--pr-ink) / .1);
}
.site-header__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: var(--sp-2) var(--sp-4);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-3);
}
.site-branding .site-title,
.site-branding .custom-logo-link {
	font-family: var(--font-head);
	font-weight: 400;
	font-size: var(--fs-4);
	letter-spacing: .01em;
	color: rgb(var(--pr-ink));
	text-shadow: 0 0 18px rgb(var(--pr-violet) / .3);
}
.main-navigation { display: flex; align-items: center; }
.nav__list { display: flex; gap: var(--sp-4); align-items: center; }
.nav__list a {
	font-size: var(--fs-1);
	text-transform: uppercase;
	letter-spacing: .08em;
	color: rgb(var(--pr-ink) / .78);
	transition: color .2s ease, text-shadow .2s ease;
}
.nav__list a:hover,
.nav__list a:focus-visible {
	color: rgb(var(--pr-cyan-bright));
	text-shadow: 0 0 10px rgb(var(--pr-cyan) / .6);
}
.menu-toggle {
	display: none;
	background: none;
	border: 0;
	padding: var(--sp-1);
	flex-direction: column;
	gap: 5px;
}
.menu-toggle__bar { width: 22px; height: 2px; background: rgb(var(--pr-ink)); display: block; }

/* ---------- Layout shells ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-4); position: relative; z-index: 1; }
.wrap--narrow { max-width: 860px; }
main#content { position: relative; z-index: 1; }
.section { padding: var(--sp-6) 0; position: relative; z-index: 1; }
.section--tight { padding: var(--sp-5) 0; }

/* Scrim: every plain-text section head sits directly over the persistent
   canvas with no card behind it, so it gets its own legibility backing —
   the fix-class this catalogue's prior (Argon) build had to add after the
   fact, applied proactively here instead. */
.section-head {
	max-width: 720px;
	margin: 0 0 var(--sp-5);
	background: rgb(var(--pr-void) / .74);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-radius: var(--radius);
	padding: var(--sp-3) var(--sp-4);
}
.section-eyebrow {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: var(--fs-1);
	text-transform: uppercase;
	letter-spacing: .14em;
	color: rgb(var(--pr-amber-bright));
	margin-bottom: var(--sp-2);
}
.section-head h2 { font-size: var(--fs-6); }
.section-head p { color: rgb(var(--pr-ink) / .7); margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-1);
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: var(--fs-2);
	letter-spacing: .01em;
	padding: var(--sp-2) var(--sp-4);
	border-radius: var(--radius);
	border: 1px solid transparent;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn--primary {
	background: rgb(var(--pr-amber));
	color: rgb(var(--pr-amber-ink));
	box-shadow: 0 0 24px rgb(var(--pr-amber) / .4);
}
.btn--primary:hover, .btn--primary:focus-visible { background: rgb(var(--pr-amber-bright)); transform: translateY(-1px); box-shadow: 0 0 34px rgb(var(--pr-amber) / .6); }
.btn--ghost {
	background: rgb(var(--pr-void) / .4);
	color: rgb(var(--pr-ink));
	border-color: rgb(var(--pr-ink) / .3);
}
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: rgb(var(--pr-cyan-bright)); color: rgb(var(--pr-cyan-bright)); box-shadow: 0 0 20px rgb(var(--pr-cyan) / .3); }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: 92vh;
	display: flex;
	align-items: flex-end;
	padding: var(--sp-6) 0 var(--sp-5);
	z-index: 1;
}
.hero__inner { max-width: 760px; }
.hero__eyebrow { font-family: var(--font-mono); font-size: var(--fs-1); text-transform: uppercase; letter-spacing: .18em; color: rgb(var(--pr-cyan-bright)); margin-bottom: var(--sp-3); text-shadow: 0 0 14px rgb(var(--pr-cyan) / .5); }
.hero__headline {
	font-size: clamp(2.4rem, 6vw, var(--fs-7));
	line-height: 1.04;
	margin-bottom: var(--sp-3);
	text-shadow: 0 0 30px rgb(0 0 0 / .6), 0 0 60px rgb(var(--pr-violet) / .25);
}
.hero__headline em {
	font-style: italic;
	color: rgb(var(--pr-violet-bright));
	text-shadow: 0 0 20px rgb(var(--pr-violet) / .7), 0 0 46px rgb(var(--pr-violet) / .35);
}
.hero__subhead { font-size: var(--fs-3); color: rgb(var(--pr-ink) / .82); max-width: 620px; margin-bottom: var(--sp-4); text-shadow: 0 0 20px rgb(0 0 0 / .5); }
.hero__actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.hero__scroll-cue {
	position: absolute;
	bottom: var(--sp-3);
	right: var(--sp-4);
	font-family: var(--font-mono);
	font-size: var(--fs-1);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgb(var(--pr-ink) / .45);
	writing-mode: vertical-rl;
}

/* ---------- Stat band ---------- */
.stat-band {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--sp-4);
	padding: var(--sp-4) var(--sp-4);
	background: rgb(var(--pr-void) / .74);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border: 1px solid rgb(var(--pr-ink) / .08);
	border-radius: var(--radius);
	margin: var(--sp-5) 0;
}
.stat { text-align: center; }
.stat__value { font-family: var(--font-head); font-size: var(--fs-6); color: rgb(var(--pr-ink)); text-shadow: 0 0 24px rgb(var(--pr-cyan) / .3); }
.stat__label { font-size: var(--fs-1); text-transform: uppercase; letter-spacing: .1em; color: rgb(var(--pr-ink) / .55); }

/* ---------- Service grid ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.service-card {
	background: rgb(var(--pr-char) / .78);
	border: 1px solid rgb(var(--pr-ink) / .08);
	border-left: 3px solid rgb(var(--pr-violet));
	border-radius: var(--radius);
	padding: var(--sp-4);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgb(0 0 0 / .45); border-left-color: rgb(var(--pr-cyan-bright)); }
.service-card h3 { font-size: var(--fs-3); margin-bottom: var(--sp-1); }
.service-card p { color: rgb(var(--pr-ink) / .68); font-size: var(--fs-2); margin: 0; }

/* ---------- Tool sections (signature interactive tools) ---------- */
.tool-section {
	background: rgb(var(--pr-char) / .74);
	border: 1px solid rgb(var(--pr-ink) / .1);
	border-radius: 8px;
	padding: var(--sp-5);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.tool-section + .tool-section { margin-top: var(--sp-5); }
.tool-section__head { max-width: 760px; margin-bottom: var(--sp-4); background: none; padding: 0; backdrop-filter: none; }
.tool-section__head h2 { font-size: var(--fs-5); }
.tool-section__source {
	margin-top: var(--sp-4);
	padding-top: var(--sp-3);
	border-top: 1px dashed rgb(var(--pr-ink) / .18);
	font-size: var(--fs-1);
	color: rgb(var(--pr-ink) / .5);
}

.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field label { font-size: var(--fs-1); text-transform: uppercase; letter-spacing: .08em; color: rgb(var(--pr-ink) / .6); }
.calc-field input, .calc-field select {
	background: rgb(var(--pr-char-2));
	border: 1px solid rgb(var(--pr-ink) / .18);
	color: rgb(var(--pr-ink));
	border-radius: var(--radius);
	padding: var(--sp-2);
	font-family: var(--font-mono);
}
.calc-field input:focus, .calc-field select:focus { outline: 2px solid rgb(var(--pr-cyan-bright)); outline-offset: 1px; }
.calc-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); align-items: end; margin-bottom: var(--sp-4); }
.calc-form--2col { grid-template-columns: repeat(2, 1fr); }

/* Tool 1 — WCAG contrast checker */
.contrast-tool__controls { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: var(--sp-3); align-items: end; margin-bottom: var(--sp-4); }
.color-input { display: flex; gap: var(--sp-1); align-items: center; }
.color-input input[type="color"] { width: 44px; height: 40px; padding: 2px; border-radius: var(--radius); border: 1px solid rgb(var(--pr-ink) / .18); background: rgb(var(--pr-char-2)); cursor: pointer; }
.color-input input[type="text"] { flex: 1; min-width: 0; }
.contrast-tool__result {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: var(--sp-4);
	align-items: center;
	background: rgb(var(--pr-char-2) / .8);
	border-radius: var(--radius);
	padding: var(--sp-4);
}
.contrast-tool__swatch {
	height: 140px;
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-head);
	font-size: 3rem;
	border: 1px solid rgb(var(--pr-ink) / .12);
}
.contrast-tool__ratio { display: block; font-family: var(--font-head); font-size: var(--fs-6); color: rgb(var(--pr-cyan-bright)); text-shadow: 0 0 18px rgb(var(--pr-cyan) / .5); margin-bottom: var(--sp-2); }
.contrast-tool__badges { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-bottom: var(--sp-2); }
.badge {
	font-size: var(--fs-1); text-transform: uppercase; letter-spacing: .04em;
	padding: 6px var(--sp-2); border-radius: 999px; border: 1px solid rgb(var(--pr-ink) / .2);
	color: rgb(var(--pr-ink) / .6);
	position: relative;
	padding-left: 26px;
}
.badge::before {
	content: '';
	position: absolute;
	left: 10px; top: 50%; transform: translateY(-50%);
	width: 8px; height: 8px; border-radius: 50%;
	background: rgb(var(--pr-ink) / .3);
}
.badge[data-pass="1"] { border-color: rgb(var(--pr-cyan-bright) / .5); color: rgb(var(--pr-cyan-bright)); }
.badge[data-pass="1"]::before { background: rgb(var(--pr-cyan-bright)); box-shadow: 0 0 8px rgb(var(--pr-cyan) / .8); }
.badge[data-pass="0"] { border-color: rgb(var(--pr-amber) / .35); color: rgb(var(--pr-ink) / .45); }
.badge[data-pass="0"]::before { background: rgb(var(--pr-amber) / .5); }
.contrast-tool__lum { color: rgb(var(--pr-ink) / .5); margin: 0; }

/* Tool 2 — modular type-scale generator */
.type-scale-tool__preview {
	background: rgb(var(--pr-char-2) / .8);
	border-radius: var(--radius);
	padding: var(--sp-4);
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
}
.type-scale-row { display: flex; align-items: baseline; gap: var(--sp-3); border-bottom: 1px solid rgb(var(--pr-ink) / .08); padding-bottom: var(--sp-2); }
.type-scale-row:last-child { border-bottom: 0; padding-bottom: 0; }
.type-scale-row__label { flex: none; width: 220px; color: rgb(var(--pr-ink) / .5); font-size: var(--fs-1); }
.type-scale-row__sample { font-family: var(--font-head); color: rgb(var(--pr-ink)); line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Tool 3 — HSL color-harmony wheel */
.harmony-tool__body { display: grid; grid-template-columns: 240px 1fr; gap: var(--sp-4); margin-top: var(--sp-3); align-items: start; }
.harmony-wheel { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.harmony-wheel__ring {
	position: absolute; inset: 0; border-radius: 50%;
	background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
	opacity: .28;
	filter: blur(1px);
}
.harmony-wheel__base {
	position: absolute;
	width: 56px; height: 56px;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	border: 3px solid rgb(var(--pr-ink) / .85);
	box-shadow: 0 0 20px rgb(0 0 0 / .5);
}
.harmony-wheel__dot {
	position: absolute;
	width: 30px; height: 30px;
	border-radius: 50%;
	border: 2px solid rgb(var(--pr-ink) / .7);
	box-shadow: 0 0 10px rgb(0 0 0 / .4);
	transform: translate(-50%, -50%);
}
.harmony-tool__groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.harmony-group { background: rgb(var(--pr-char-2) / .8); border-radius: var(--radius); padding: var(--sp-3); }
.harmony-group h4 { font-size: var(--fs-2); font-family: var(--font-sans); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: rgb(var(--pr-ink) / .6); margin-bottom: var(--sp-2); }
.harmony-group__swatches { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.harmony-swatch { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.harmony-swatch__color { width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid rgb(var(--pr-ink) / .15); }
.harmony-swatch__hex { font-size: .68rem; color: rgb(var(--pr-ink) / .55); }

/* ---------- Process list ---------- */
.process-list {
	display: flex;
	flex-direction: column;
	gap: var(--sp-4);
	background: rgb(var(--pr-void) / .76);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border: 1px solid rgb(var(--pr-ink) / .08);
	border-radius: var(--radius);
	padding: var(--sp-4);
}
.process-step { display: grid; grid-template-columns: 64px 1fr; gap: var(--sp-3); align-items: start; padding-bottom: var(--sp-4); border-bottom: 1px solid rgb(var(--pr-ink) / .08); }
.process-step:last-child { border-bottom: 0; padding-bottom: 0; }
.process-step__num { font-family: var(--font-head); font-size: var(--fs-5); color: rgb(var(--pr-amber-bright)); text-shadow: 0 0 16px rgb(var(--pr-amber) / .5); }
.process-step h3 { font-size: var(--fs-3); margin-bottom: var(--sp-1); }
.process-step p { color: rgb(var(--pr-ink) / .72); margin: 0; }

/* ---------- Case cards / gallery grid ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.case-card {
	background: rgb(var(--pr-char) / .78);
	border: 1px solid rgb(var(--pr-ink) / .08);
	border-radius: var(--radius);
	overflow: hidden;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: transform .2s ease, box-shadow .2s ease;
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgb(0 0 0 / .5); }
.case-card__media { aspect-ratio: 3/2; background: rgb(var(--pr-char-3)); overflow: hidden; }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; }
.case-card__mark {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, hsl(var(--mark-hue) 70% 22%), hsl(calc(var(--mark-hue) + 40) 70% 12%));
}
.case-card__mark-glyph { font-family: var(--font-head); font-size: 4rem; color: rgb(var(--pr-ink) / .9); text-shadow: 0 0 30px rgb(0 0 0 / .5); }
.case-card__body { padding: var(--sp-3); }
.case-card__type { display: block; font-size: var(--fs-1); text-transform: uppercase; letter-spacing: .08em; color: rgb(var(--pr-cyan-bright)); margin-bottom: 6px; }
.case-card__title { font-size: var(--fs-3); margin-bottom: 6px; }
.case-card__meta { color: rgb(var(--pr-ink) / .5); font-size: var(--fs-1); margin: 0; }

.case-badges { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-bottom: var(--sp-3); }
.case-badge {
	font-size: var(--fs-1); text-transform: uppercase; letter-spacing: .06em;
	padding: 4px var(--sp-2); border-radius: 999px; border: 1px solid rgb(var(--pr-cyan-bright) / .4);
	color: rgb(var(--pr-cyan-bright));
}

.case-spec { display: grid; grid-template-columns: repeat(1, 1fr); gap: var(--sp-2) var(--sp-4); background: rgb(var(--pr-char) / .7); border-radius: var(--radius); padding: var(--sp-4); }
.case-spec__row dt { font-size: var(--fs-1); text-transform: uppercase; letter-spacing: .08em; color: rgb(var(--pr-ink) / .5); margin: 0; }
.case-spec__row dd { margin: 0 0 var(--sp-2); font-size: var(--fs-3); }

/* ---------- Single case-study article ---------- */
.case-article__header {
	background: rgb(var(--pr-void) / .74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-4);
}
.case-article__hero { aspect-ratio: 16/8; background: rgb(var(--pr-char-3)); border-radius: var(--radius); overflow: hidden; margin-bottom: var(--sp-4); }
.case-article__hero img { width: 100%; height: 100%; object-fit: cover; }
.case-article__hero--mark { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, hsl(var(--mark-hue) 70% 20%), hsl(calc(var(--mark-hue) + 40) 70% 10%)); }
.case-article__hero--mark .case-card__mark-glyph { font-size: 6rem; }
.case-article__layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--sp-5); }
.case-article__excerpt { font-size: var(--fs-3); color: rgb(var(--pr-ink) / .8); }
.case-article__narrative { color: rgb(var(--pr-ink) / .8); }

/* ---------- Generic content layout (inner pages) ---------- */
.content-layout { padding-top: var(--sp-5); }
.content-column { max-width: 860px; margin: 0 auto; }
.page-article__header,
.page-article__content {
	background: rgb(var(--pr-void) / .74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	border-radius: var(--radius); padding: var(--sp-3) var(--sp-4);
}
.page-article__header { margin-bottom: var(--sp-4); }
.page-article__title { font-size: var(--fs-6); margin-bottom: 0; }
.page-article__thumb { aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius); margin-bottom: var(--sp-4); }
.page-article__thumb img { width: 100%; height: 100%; object-fit: cover; }
.page-contact-form { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid rgb(var(--pr-ink) / .1); }
.archive-header { margin-bottom: var(--sp-4); background: rgb(var(--pr-void) / .74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); }
.archive-header__title { font-size: var(--fs-6); }
.archive-header__desc { color: rgb(var(--pr-ink) / .68); font-size: var(--fs-3); max-width: 680px; margin-bottom: 0; }
.case-filters { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-bottom: var(--sp-4); }
.case-filters__link {
	font-size: var(--fs-1); text-transform: uppercase; letter-spacing: .06em;
	padding: 6px var(--sp-2); border-radius: 999px; border: 1px solid rgb(var(--pr-ink) / .2);
	color: rgb(var(--pr-ink) / .7);
	background: rgb(var(--pr-void) / .5);
}
.case-filters__link.is-active,
.case-filters__link:hover { border-color: rgb(var(--pr-amber-bright)); color: rgb(var(--pr-amber-bright)); box-shadow: 0 0 12px rgb(var(--pr-amber) / .3); }
.search-results { display: flex; flex-direction: column; gap: var(--sp-4); }
.search-result__title { font-size: var(--fs-4); }
.search-result__excerpt { color: rgb(var(--pr-ink) / .68); }
.case-article__back { display: block; margin-top: var(--sp-5); }
.case-article__back a { color: rgb(var(--pr-cyan-bright)); }
.case-article__gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); margin-top: var(--sp-4); }
.case-article__gallery-item img { border-radius: var(--radius); }

/* ---------- Page meta strip ---------- */
.page-meta-strip {
	display: flex; justify-content: space-between; align-items: baseline;
	border-bottom: 1px solid rgb(var(--pr-ink) / .1); padding-bottom: var(--sp-2); margin-bottom: var(--sp-4);
	font-size: var(--fs-1); text-transform: uppercase; letter-spacing: .1em; color: rgb(var(--pr-ink) / .5);
}
.page-meta-strip__title { font-size: var(--fs-5); font-family: var(--font-head); letter-spacing: .01em; color: rgb(var(--pr-ink)); text-transform: none; }

/* ---------- Content typography (pages, single posts) ---------- */
.entry-content h2 { font-size: var(--fs-5); margin-top: var(--sp-5); }
.entry-content h3 { font-size: var(--fs-4); margin-top: var(--sp-4); }
.entry-content p, .entry-content li { color: rgb(var(--pr-ink) / .8); }
.entry-content a { color: rgb(var(--pr-cyan-bright)); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 var(--sp-2); }
.entry-content ul { list-style: disc; }
.entry-content ol:not(.process-list) { list-style: decimal; }
.entry-content img { border-radius: var(--radius); }

/* ---------- CTA band ---------- */
.cta-band {
	text-align: center;
	padding: var(--sp-6) var(--sp-4);
	background: radial-gradient(ellipse 70% 100% at 50% 100%, rgb(var(--pr-violet) / .12), transparent 70%), rgb(var(--pr-char) / .78);
	border-radius: 8px;
	border: 1px solid rgb(var(--pr-ink) / .08);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.cta-band h2 { font-size: var(--fs-6); max-width: 720px; margin: 0 auto var(--sp-2); }
.cta-band p { max-width: 560px; margin: 0 auto var(--sp-4); color: rgb(var(--pr-ink) / .7); }
.cta-band .contact-form { margin: 0 auto; text-align: left; }
blockquote.service-card { border-left: 3px solid rgb(var(--pr-cyan-bright)); }
blockquote.service-card p { font-style: italic; color: rgb(var(--pr-ink) / .8); }
blockquote.service-card footer { font-size: var(--fs-1); color: rgb(var(--pr-ink) / .5); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Contact form ---------- */
.contact-form { max-width: 640px; display: flex; flex-direction: column; gap: var(--sp-3); }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.contact-form label { display: block; font-size: var(--fs-1); text-transform: uppercase; letter-spacing: .08em; color: rgb(var(--pr-ink) / .6); margin-bottom: 6px; }
.contact-form input, .contact-form select, .contact-form textarea {
	width: 100%;
	background: rgb(var(--pr-char-2));
	border: 1px solid rgb(var(--pr-ink) / .18);
	color: rgb(var(--pr-ink));
	border-radius: var(--radius);
	padding: var(--sp-2);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid rgb(var(--pr-cyan-bright)); outline-offset: 1px; }
.contact-form__hp { position: absolute; left: -9999px; }
.contact-form__status { font-size: var(--fs-2); min-height: 1.5em; }
.contact-form__status[data-state="success"] { color: rgb(var(--pr-cyan-bright)); }
.contact-form__status[data-state="error"] { color: rgb(var(--pr-amber-bright)); }

/* ---------- Footer ---------- */
.site-footer {
	position: relative;
	z-index: 1;
	border-top: 1px solid rgb(var(--pr-ink) / .1);
	padding: var(--sp-5) 0;
	background: rgb(var(--pr-void) / .8);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-4); }
.site-footer__brand { font-family: var(--font-head); font-size: var(--fs-4); margin-bottom: var(--sp-2); }
.site-footer__tagline { color: rgb(var(--pr-ink) / .55); max-width: 380px; }
.site-footer__contact { display: flex; flex-direction: column; gap: 4px; color: rgb(var(--pr-ink) / .7); }
.site-footer h4 { font-family: var(--font-sans); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: var(--fs-1); color: rgb(var(--pr-ink) / .5); margin-bottom: var(--sp-2); }
.site-footer__legal { margin-top: var(--sp-5); padding-top: var(--sp-3); border-top: 1px solid rgb(var(--pr-ink) / .08); font-size: var(--fs-1); color: rgb(var(--pr-ink) / .4); display: flex; justify-content: space-between; }

/* ---------- Comments ---------- */
.comments-area { margin-top: var(--sp-5); }
.comment-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.comment-body { background: rgb(var(--pr-char) / .5); border-radius: var(--radius); padding: var(--sp-3); }
.comment-respond input, .comment-respond textarea {
	width: 100%; background: rgb(var(--pr-char-2)); border: 1px solid rgb(var(--pr-ink) / .18); color: rgb(var(--pr-ink)); border-radius: var(--radius); padding: var(--sp-2);
}

/* ---------- Pagination ---------- */
.pagination, .nav-links { display: flex; gap: var(--sp-2); justify-content: center; margin-top: var(--sp-5); }
.pagination .page-numbers { padding: var(--sp-1) var(--sp-2); border: 1px solid rgb(var(--pr-ink) / .15); border-radius: var(--radius); font-family: var(--font-mono); }
.pagination .page-numbers.current { background: rgb(var(--pr-amber)); color: rgb(var(--pr-amber-ink)); border-color: transparent; }

/* ---------- 404 / search ---------- */
.error-404 h1 { font-size: var(--fs-7); }
.search-form { display: flex; gap: var(--sp-2); max-width: 480px; }
.search-form input[type="search"] { flex: 1; background: rgb(var(--pr-char-2)); border: 1px solid rgb(var(--pr-ink) / .2); border-radius: var(--radius); padding: var(--sp-2); color: rgb(var(--pr-ink)); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.service-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
	.case-article__layout, .harmony-tool__body { grid-template-columns: 1fr; }
	.contrast-tool__controls, .calc-form { grid-template-columns: repeat(2, 1fr); }
	.contrast-tool__result { grid-template-columns: 1fr; }
	.stat-band { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
	.site-footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
	.menu-toggle { display: flex; }
	.main-navigation .nav__list { display: none; flex-direction: column; align-items: flex-start; gap: var(--sp-2); position: absolute; top: 100%; left: 0; right: 0; background: rgb(var(--pr-void) / .97); padding: var(--sp-3) var(--sp-4); }
	.main-navigation.is-open .nav__list,
	.main-navigation .nav__list.is-open { display: flex; }
	.service-grid, .case-grid, .calc-form, .contrast-tool__controls, .harmony-tool__groups, .contact-form__row, .case-spec, .stat-band { grid-template-columns: 1fr; }
	.hero { min-height: 70vh; }
	.type-scale-row { flex-direction: column; align-items: flex-start; gap: 4px; }
	.type-scale-row__label { width: auto; }
}
