/* ==========================================================================
   Endigitals — site stylesheet
   --------------------------------------------------------------------------
   Built from the wordmark, whose one device is a colour shift mid-word:
   EN in violet, DIGITALS in deep indigo. That two-tone shift is the signature
   — it sets the headline treatment and the way controls change on hover — and
   both colours are sampled straight from the logo file.

   Ground is a cool violet-tinted grey so the colour logo reads as drawn. Two
   bands (the closing call to action and the footer) invert to deep indigo via
   .on-dark, which reassigns the text tokens rather than restyling every child.

   No framework, no build step. Plain CSS, custom properties, one file.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
	/* Sampled from media/endigitals-logo.svg */
	--violet: #542678; /* the EN, and the tagline */
	--indigo: #2d245a; /* the DIGITALS */
	--violet-light: #c3b0da; /* violet lifted to read on the dark bands */
	--indigo-deep: #1c1743; /* inverted bands */
	--indigo-mid: #392f6b; /* raised surface within a dark band */

	/* Errors get their own hue: brand violet would not read as a warning. */
	--warn: #9d2f4f;
	--warn-light: #f0a8bd;

	--paper: #f1eff6; /* page ground */
	--paper-2: #faf9fc; /* raised surface */
	--paper-3: #e7e3ef; /* recessed band */

	/* Reassigned wholesale by .on-dark */
	--text: #241d4a;
	--text-dim: #4c4674;
	--text-faint: #5d5585;
	--heading: var(--indigo);
	--surface: var(--paper-2);
	--accent: var(--violet);
	--warn-fg: var(--warn);
	--rule: rgba(45, 36, 90, 0.14);
	--rule-strong: rgba(45, 36, 90, 0.26);
	--field: rgba(255, 255, 255, 0.7);

	/* Type */
	--font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
	--font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

	--t-mono: 0.75rem;
	--t-sm: 0.875rem;
	--t-base: 1rem;
	--t-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
	--t-h4: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
	--t-h3: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
	--t-h2: clamp(2rem, 1.5rem + 2.2vw, 3.4rem);
	--t-h1: clamp(2.6rem, 1.6rem + 4.4vw, 5.6rem);

	--gap: 1.5rem;
	--section-y: clamp(4.5rem, 3rem + 6vw, 9rem);
	--container: 1240px;
	--container-pad: clamp(1.25rem, 0.75rem + 2vw, 2.5rem);

	--radius: 2px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* One class flips a whole band to the inverted palette. */
.on-dark {
	--text: #e2dcf0;
	--text-dim: #a99fc4;
	--text-faint: #9a90b8;
	--heading: #f2eff8;
	--surface: var(--indigo-mid);
	--accent: var(--violet-light);
	--warn-fg: var(--warn-light);
	--rule: rgba(226, 220, 240, 0.16);
	--rule-strong: rgba(226, 220, 240, 0.3);
	--field: rgba(226, 220, 240, 0.07);
	background: var(--indigo-deep);
	color: var(--text);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--t-base);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.is-locked {
	overflow: hidden;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: -0.025em;
	color: var(--heading);
	text-wrap: balance;
}

p {
	margin: 0 0 1.1em;
}

p:last-child {
	margin-bottom: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

::selection {
	background: var(--violet-light);
	color: var(--indigo);
}

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

.on-dark :focus-visible {
	outline-color: var(--violet-light);
}

.u-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -120%);
	z-index: 200;
	padding: 0.7rem 1.2rem;
	background: var(--indigo);
	color: var(--paper);
	font-family: var(--font-mono);
	font-size: var(--t-mono);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	transition: transform 0.25s var(--ease);
}

.skip-link:focus {
	transform: translate(-50%, 0);
}

.u-mt-sm {
	margin-top: 1.25rem;
}

.u-mt-md {
	margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--container-pad);
}

.container--narrow {
	max-width: 820px;
}

.section {
	position: relative;
	padding-block: var(--section-y);
}

.section--tight {
	padding-block: calc(var(--section-y) * 0.62);
}

.section--band {
	background: var(--paper-3);
}

.section--rule {
	border-top: 1px solid var(--rule);
}

/* Eyebrow: mono label opening with a rounded monoline rule, echoing the
   wordmark's rounded terminals. */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 1.4rem;
	font-family: var(--font-mono);
	font-size: var(--t-mono);
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent);
}

.eyebrow::before {
	content: "";
	width: 20px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	flex: none;
}

/* Alternate eyebrow: the wordmark's other tone, so sections alternate between
   the two brand colours the way EN | DIGITALS does. */
.eyebrow--alt {
	color: var(--indigo);
}

.on-dark .eyebrow--alt {
	color: var(--violet-light);
}

.section-head {
	max-width: 46rem;
	margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

.section-head h2 {
	font-size: var(--t-h2);
}

.section-head p {
	margin-top: 1.2rem;
	font-size: var(--t-lead);
	color: var(--text-dim);
	max-width: 40rem;
}

/* --------------------------------------------------------------------------
   The signature: the wordmark's colour shift, applied to a headline.
   --------------------------------------------------------------------------
   The logo changes colour partway through a single word — EN then DIGITALS. A
   headline marked up with .lede-tone does the same thing across a phrase: the
   opening words carry the violet, the rest resolve to indigo. Reserved for the
   two largest statements on the site so it stays a signature, not a habit.
   -------------------------------------------------------------------------- */

.two-tone {
	color: var(--indigo);
}

.two-tone .tone {
	color: var(--violet);
}

.on-dark .two-tone {
	color: var(--heading);
}

.on-dark .two-tone .tone {
	color: var(--violet-light);
}

.section-head--split {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	max-width: none;
	align-items: end;
}

@media (min-width: 62rem) {
	.section-head--split {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		gap: 3rem;
	}

	.section-head--split > :last-child {
		padding-bottom: 0.4rem;
	}
}

/* --------------------------------------------------------------------------
   4. Buttons
   --------------------------------------------------------------------------
   .btn is the outline form, .btn--solid the filled one. Both fill from the
   baseline up, and the filled one shifts indigo → violet: the wordmark's own
   colour change, performed on interaction.
   -------------------------------------------------------------------------- */

.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.7rem;
	padding: 0.95rem 1.6rem;
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius);
	background: transparent;
	color: var(--heading);
	font-family: var(--font-mono);
	font-size: var(--t-mono);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	overflow: hidden;
	isolation: isolate;
	transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--indigo);
	transform: translateY(101%);
	transition: transform 0.45s var(--ease);
}

.btn:hover::before,
.btn:focus-visible::before {
	transform: translateY(0);
}

.btn:hover,
.btn:focus-visible {
	color: var(--paper);
	border-color: var(--indigo);
}

.btn--solid {
	background: var(--indigo);
	border-color: var(--indigo);
	color: var(--paper);
}

/* The two-tone shift: DIGITALS-indigo fills up into EN-violet. Both carry the
   pale label, so the text never has to change colour mid-transition. */
.btn--solid::before {
	background: var(--violet);
}

.btn--solid:hover,
.btn--solid:focus-visible {
	color: var(--paper);
	border-color: var(--violet);
}

/* Inverted bands */
.on-dark .btn:hover,
.on-dark .btn:focus-visible {
	color: var(--indigo);
	border-color: var(--violet-light);
}

.on-dark .btn::before {
	background: var(--violet-light);
}

.on-dark .btn--solid {
	background: var(--violet-light);
	border-color: var(--violet-light);
	color: var(--indigo);
}

.on-dark .btn--solid::before {
	background: var(--paper);
}

.on-dark .btn--solid:hover,
.on-dark .btn--solid:focus-visible {
	color: var(--indigo);
	border-color: var(--paper);
}

.btn__arrow {
	flex: none;
	width: 14px;
	transition: transform 0.35s var(--ease);
}

.btn:hover .btn__arrow {
	transform: translateX(3px);
}

/* Quiet text link with a rule that draws in */
.link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--font-mono);
	font-size: var(--t-mono);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
	padding-bottom: 0.35rem;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 1px;
	transition: background-size 0.4s var(--ease);
}

.link:hover,
.link:focus-visible {
	background-size: 100% 1px;
}

.link svg {
	width: 13px;
	flex: none;
	transition: transform 0.35s var(--ease);
}

.link:hover svg {
	transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */

.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 90;
	border-bottom: 1px solid transparent;
	transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.site-header.is-stuck {
	background: rgba(241, 239, 246, 0.82);
	backdrop-filter: blur(14px) saturate(1.3);
	-webkit-backdrop-filter: blur(14px) saturate(1.3);
	border-bottom-color: var(--rule);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 3vw, 3rem);
	height: 5.25rem;
}

.site-logo {
	flex: none;
	display: block;
	margin-right: auto;
}

.site-logo img {
	/* The mark is wordmark-over-tagline, so the lettering is ~2/3 of the box. */
	height: clamp(2.3rem, 1.9rem + 1.3vw, 3rem);
	width: auto;
}

.nav {
	display: none;
}

@media (min-width: 62rem) {
	.nav {
		display: flex;
		align-items: center;
		gap: clamp(1.2rem, 2.4vw, 2.4rem);
	}
}

.nav a {
	position: relative;
	font-size: var(--t-sm);
	font-weight: 500;
	color: var(--text-dim);
	padding-block: 0.4rem;
	transition: color 0.3s var(--ease);
}

.nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1.5px;
	background: var(--violet);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
	color: var(--heading);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
	transform: scaleX(1);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: none;
}

/* Only the enquiry button is held back on small screens — the menu toggle is
   also a .btn, so this must not be scoped to .btn alone. */
.header-actions .btn--cta {
	display: none;
}

@media (min-width: 48rem) {
	.header-actions .btn--cta {
		display: inline-flex;
	}
}

/* --------------------------------------------------------------------------
   Menu toggle
   --------------------------------------------------------------------------
   Built on .btn so it carries the same border, mono label and shutter-wipe as
   every other control. The bars are currentColor, so they invert to paper as
   the ink fills on hover, and the middle one is short and right-aligned — the
   same off-length tick the readouts use.
   -------------------------------------------------------------------------- */

.nav-toggle {
	padding: 0.8rem 1.1rem;
	gap: 0.65rem;
}

@media (min-width: 62rem) {
	.nav-toggle {
		display: none;
	}
}

.nav-toggle__bars {
	display: grid;
	gap: 4px;
	width: 17px;
	flex: none;
}

.nav-toggle__bars span {
	display: block;
	width: 100%;
	height: 1.5px;
	background: currentColor;
	transition: transform 0.4s var(--ease), opacity 0.2s linear,
		width 0.4s var(--ease);
}

.nav-toggle__bars span:nth-child(2) {
	width: 65%;
	margin-left: auto;
}

/* Bars sit at 0 / 5.5 / 11px, so the outer two meet in the middle. */
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
	transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
	opacity: 0;
	width: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
	transform: translateY(-5.5px) rotate(-45deg);
}

/* One label in the markup per state, so both stay translatable. */
.nav-toggle__label[data-when="open"],
.nav-toggle[aria-expanded="true"] .nav-toggle__label[data-when="closed"] {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__label[data-when="open"] {
	display: inline;
}

/* Above the sheet, and legible against it while open */
.nav-toggle[aria-expanded="true"] {
	position: relative;
	z-index: 1;
}

/* Mobile sheet */
.nav-sheet {
	position: fixed;
	inset: 0;
	z-index: 85;
	display: grid;
	align-content: center;
	padding: 6rem var(--container-pad) 3rem;
	background: var(--paper);
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.nav-sheet.is-open {
	visibility: visible;
	opacity: 1;
}

.nav-sheet ul {
	display: grid;
	border-top: 1px solid var(--rule);
}

.nav-sheet li {
	border-bottom: 1px solid var(--rule);
}

/* Scoped to the list: an unscoped `.nav-sheet a` also caught the button below
   and outranked .btn--solid, painting its label navy on navy. */
.nav-sheet ul a {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	padding: 1.1rem 0;
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 1.2rem + 3vw, 2.75rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--heading);
}

/* backwards, not forwards: the resting state is visible, and the hidden state
   exists only while the animation is pending. If the animation never runs, the
   menu is still usable. */
.nav-sheet.is-open ul a {
	animation: sheet-in 0.5s var(--ease) backwards;
	animation-delay: calc(var(--i, 0) * 55ms + 100ms);
}

.nav-sheet ul a span {
	font-family: var(--font-mono);
	font-size: var(--t-mono);
	color: var(--text-faint);
	letter-spacing: 0.1em;
}

/* The button keeps its own chrome and arrives after the last list item. */
.nav-sheet .btn {
	margin-top: 2.5rem;
}

.nav-sheet.is-open .btn {
	animation: sheet-in 0.5s var(--ease) backwards;
	animation-delay: calc(var(--i, 5) * 55ms + 100ms);
}

@keyframes sheet-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (min-width: 62rem) {
	.nav-sheet {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(92svh, 60rem);
	padding-top: 9rem;
	padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem);
	overflow: hidden;
}

/* The two brand tones washed across the hero: violet left, indigo right —
   the same left-to-right shift the wordmark makes. */
.hero__wash {
	position: absolute;
	inset: -20% -10% auto -10%;
	height: 130%;
	pointer-events: none;
	background: radial-gradient(
			40rem 32rem at 20% 40%,
			rgba(84, 38, 120, 0.20),
			transparent 66%
		),
		radial-gradient(
			36rem 30rem at 76% 32%,
			rgba(45, 36, 90, 0.17),
			transparent 66%
		),
		radial-gradient(
			58rem 38rem at 52% 106%,
			rgba(84, 38, 120, 0.09),
			transparent 70%
		);
	animation: wash-drift 34s ease-in-out infinite alternate;
}

@keyframes wash-drift {
	to {
		transform: translate3d(2.5%, -1.5%, 0) scale(1.06);
	}
}

.hero .container {
	position: relative;
	z-index: 1;
	width: 100%;
}

.hero__title {
	font-size: var(--t-h1);
	max-width: 22em;
	margin-bottom: 1.75rem;
}

/* The words rise in sequence. The hidden state lives in the keyframes and the
   fill is backwards, so a headline that never animates is simply present. */
.hero__title .word {
	display: inline-block;
	animation: word-in 0.8s var(--ease) backwards;
	animation-delay: calc(var(--i, 0) * 70ms + 150ms);
}

@keyframes word-in {
	from {
		opacity: 0;
		transform: translateY(0.3em);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.hero__lede {
	max-width: 36rem;
	font-size: var(--t-lead);
	color: var(--text-dim);
	margin-bottom: 2.5rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
}

/* The readout strip along the base of the frame. auto-fit, so three figures
   make three columns rather than leaving a dangling empty cell. */
.hero__readout {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
	border-top: 1px solid var(--rule-strong);
}

.hero__readout > div {
	padding: 1.1rem 1.2rem 1.2rem 0;
	border-bottom: 1px solid var(--rule);
}

@media (min-width: 48rem) {
	.hero__readout > div + div {
		padding-left: 1.4rem;
		border-left: 1px solid var(--rule);
	}
}

/* Two columns below 48rem, so an odd number of figures leaves a half-width
   rule on the last row. Let that one span instead. */
@media (max-width: 47.999rem) {
	.hero__readout > div:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

.hero__readout .label {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-faint);
}

.hero__readout .value {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--heading);
	line-height: 1;
	margin-bottom: 0.4rem;
	font-variant-numeric: tabular-nums;
}

.hero [data-stage] {
	animation: stage-in 0.8s var(--ease) backwards;
	animation-delay: calc(var(--d, 0) * 1ms);
}

@keyframes stage-in {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* --------------------------------------------------------------------------
   7. Page banner (inner pages)
   -------------------------------------------------------------------------- */

.banner {
	position: relative;
	padding-top: 11rem;
	padding-bottom: clamp(2.75rem, 2rem + 3vw, 4.5rem);
	overflow: hidden;
	border-bottom: 1px solid var(--rule);
}

.banner__wash {
	position: absolute;
	inset: -60% -10% auto -10%;
	height: 160%;
	pointer-events: none;
	background: radial-gradient(
			32rem 22rem at 16% 60%,
			rgba(84, 38, 120, 0.17),
			transparent 68%
		),
		radial-gradient(
			28rem 20rem at 80% 46%,
			rgba(45, 36, 90, 0.15),
			transparent 68%
		);
}

.banner .container {
	position: relative;
	z-index: 1;
}

.banner__title {
	font-size: clamp(2.2rem, 1.5rem + 3.2vw, 4rem);
	max-width: 30em;
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.5rem;
	font-family: var(--font-mono);
	font-size: var(--t-mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-faint);
}

.crumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 0.5rem;
	color: var(--rule-strong);
}

.crumbs a:hover {
	color: var(--violet);
}

.crumbs [aria-current] {
	color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */

.cards {
	display: grid;
	border-top: 1px solid var(--rule);
	border-left: 1px solid var(--rule);
}

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

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

/* Four-up, for sets that are exactly four (the process steps) */
@media (min-width: 68rem) {
	.cards--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
	border-right: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	overflow: hidden;
	transition: background 0.45s var(--ease);
}

/* A violet bloom rises behind the card, echoing the hero wash */
.card::after {
	content: "";
	position: absolute;
	inset: auto -30% -60% -30%;
	height: 100%;
	background: radial-gradient(
		50% 60% at 50% 100%,
		rgba(84, 38, 120, 0.13),
		transparent 70%
	);
	opacity: 0;
	transition: opacity 0.5s var(--ease);
	pointer-events: none;
}

.card:hover::after,
.card:focus-within::after {
	opacity: 1;
}

.card:hover,
.card:focus-within {
	background: var(--paper-2);
}

.card > * {
	position: relative;
	z-index: 1;
}

.card__index {
	font-family: var(--font-mono);
	font-size: var(--t-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-faint);
	transition: color 0.4s var(--ease);
	margin: 0;
}

.card:hover .card__index {
	color: var(--violet);
}

.card__title {
	font-size: var(--t-h4);
}

.card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.card p {
	color: var(--text-dim);
	font-size: var(--t-sm);
	line-height: 1.7;
	margin: 0;
}

.card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: auto;
	padding-top: 0.75rem;
}

.tag {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.04em;
	color: var(--text-faint);
	border: 1px solid var(--rule);
	border-radius: 999px;
	padding: 0.25rem 0.7rem;
	transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}

.card:hover .tag {
	border-color: var(--rule-strong);
	color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   9. Service rows (services page)
   -------------------------------------------------------------------------- */

.srow {
	display: grid;
	gap: clamp(2rem, 1rem + 4vw, 4.5rem);
	align-items: center;
	padding-block: clamp(3rem, 2rem + 4vw, 6rem);
	border-top: 1px solid var(--rule);
	scroll-margin-top: 7rem;
}

/* The first row sits directly under the banner, so it needs no divider. */
.srow-list .srow:first-child {
	border-top: 0;
}

.srow-list .empty {
	margin-block: var(--section-y);
}

@media (min-width: 56rem) {
	.srow {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.srow--flip .srow__media {
		order: -1;
	}
}

.srow__body .eyebrow {
	margin-bottom: 1.1rem;
}

.srow__title {
	font-size: var(--t-h2);
	margin-bottom: 1.25rem;
}

.srow__items {
	display: grid;
	margin-top: 2rem;
	border-top: 1px solid var(--rule);
}

@media (min-width: 30rem) {
	.srow__items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.srow__items li {
	display: flex;
	align-items: baseline;
	gap: 0.7rem;
	padding: 0.85rem 1rem 0.85rem 0;
	border-bottom: 1px solid var(--rule);
	font-size: var(--t-sm);
}

.srow__items li::before {
	content: "";
	flex: none;
	width: 12px;
	height: 2px;
	border-radius: 999px;
	background: var(--violet);
	translate: 0 -0.35em;
}

.srow__media .shot {
	aspect-ratio: 4 / 3;
}

/* --------------------------------------------------------------------------
   10. Shots — imagery
   --------------------------------------------------------------------------
   Deliberately quiet: the image sits slightly desaturated and lifts to full
   colour, and an indigo edge draws in. The two-tone headline is the signature,
   so imagery stays restrained and lets it carry the page.
   -------------------------------------------------------------------------- */

.shot {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--paper-2);
	border: 1px solid var(--rule);
	transition: border-color 0.45s var(--ease);
}

.shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.72);
	transform: scale(1.02);
	transition: filter 0.6s var(--ease), transform 0.7s var(--ease);
}

.shot--static img,
.shot:hover img,
a:hover .shot img,
a:focus-visible .shot img {
	filter: none;
	transform: scale(1);
}

a:hover .shot,
a:focus-visible .shot {
	border-color: var(--indigo);
}

.shot--contain img {
	object-fit: contain;
	padding: 12%;
}

/* --------------------------------------------------------------------------
   10b. Artwork — transparent illustrations
   --------------------------------------------------------------------------
   The service and page illustrations are PNGs with real alpha. Framing them
   like photographs put a white plate on a grey band, so they get no box and no
   border at all: the art sits straight on the page, lit from behind by the
   same two-tone wash as the hero.
   -------------------------------------------------------------------------- */

.art {
	position: relative;
	display: grid;
	place-items: center;
	padding: clamp(1rem, 2.5vw, 2.5rem);
	isolation: isolate;
}

.art::before {
	content: "";
	position: absolute;
	inset: 8%;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(
			44% 44% at 34% 36%,
			rgba(84, 38, 120, 0.13),
			transparent 70%
		),
		radial-gradient(
			40% 40% at 68% 64%,
			rgba(45, 36, 90, 0.10),
			transparent 70%
		);
}

.art img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

/* Service rows keep a fixed ratio so the alternating layout stays even
   regardless of how each illustration is proportioned. */
.srow__media .art {
	aspect-ratio: 5 / 4;
}

.srow__media .art img {
	min-height: 0;
	max-width: 100%;
	max-height: 100%;
	width: auto;
}

/* --------------------------------------------------------------------------
   11. Work grid
   -------------------------------------------------------------------------- */

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2.5rem;
}

.filter {
	padding: 0.55rem 1.05rem;
	border: 1px solid var(--rule);
	border-radius: 999px;
	background: transparent;
	font-family: var(--font-mono);
	font-size: var(--t-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-dim);
	cursor: pointer;
	transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
		background 0.3s var(--ease);
}

.filter:hover {
	color: var(--heading);
	border-color: var(--rule-strong);
}

.filter[aria-pressed="true"] {
	background: var(--indigo);
	border-color: var(--indigo);
	color: var(--paper);
}

.work {
	display: grid;
	gap: clamp(1.25rem, 1rem + 1vw, 2rem);
}

@media (min-width: 40rem) {
	.work {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 68rem) {
	.work--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.work__item[hidden] {
	display: none;
}

.work__link {
	display: block;
}

.work__link .shot {
	aspect-ratio: 4 / 3;
}

/* Stacked, not justified: sector names run long and would crowd the title. */
.work__meta {
	display: block;
	margin-top: 1.1rem;
}

.work__cat {
	display: block;
	font-family: var(--font-mono);
	font-size: var(--t-mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-faint);
}

.work__title {
	display: block;
	margin-top: 0.4rem;
	font-family: var(--font-display);
	font-size: var(--t-h4);
	font-weight: 500;
	letter-spacing: -0.015em;
	line-height: 1.15;
	color: var(--heading);
	transition: color 0.3s var(--ease);
}

.work__link:hover .work__title {
	color: var(--violet);
}

/* Empty state — an invitation, not a dead end */
.empty {
	padding: clamp(2.5rem, 2rem + 2vw, 4rem);
	text-align: center;
	border: 1px dashed var(--rule-strong);
}

.empty p {
	color: var(--text-dim);
	max-width: 32rem;
	margin-inline: auto;
}

.empty .btn {
	margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   12. Detail layouts
   -------------------------------------------------------------------------- */

.detail {
	display: grid;
	gap: clamp(2rem, 1.5rem + 3vw, 4rem);
}

@media (min-width: 62rem) {
	.detail {
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
		align-items: start;
	}

	/* For text-beside-image, centre the short column against the tall one. */
	.detail--center {
		align-items: center;
	}
}

.spec {
	border-top: 1px solid var(--rule-strong);
}

@media (min-width: 62rem) {
	.spec {
		position: sticky;
		top: 7rem;
	}
}

.spec__row {
	padding: 1rem 0;
	border-bottom: 1px solid var(--rule);
}

.spec__key {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-faint);
	margin-bottom: 0.3rem;
}

.spec__val {
	font-size: var(--t-sm);
}

.gallery {
	display: grid;
	gap: clamp(1rem, 0.75rem + 1vw, 1.5rem);
	margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

/* Bound the frame, or a small logo gets upscaled to the full column width. */
.gallery .shot {
	aspect-ratio: 16 / 10;
}

@media (min-width: 48rem) {
	.gallery--multi {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gallery--multi > :first-child {
		grid-column: 1 / -1;
	}
}

/* --------------------------------------------------------------------------
   13. Stats
   -------------------------------------------------------------------------- */

/* auto-fit, so three figures make three columns instead of leaving a dangling
   empty cell. Separation is whitespace and one top rule — no per-cell borders
   to go wrong as the count changes. */
.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: clamp(1.5rem, 1rem + 2vw, 3rem);
	padding-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
	border-top: 1px solid var(--rule-strong);
}

.stat__value {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--heading);
	font-variant-numeric: tabular-nums;
}

/* No automatic "+": the figures in the admin are exact, and appending one
   would claim more than the number states. */

.stat__label {
	display: block;
	margin-top: 0.75rem;
	font-family: var(--font-mono);
	font-size: var(--t-mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   14. Testimonials
   -------------------------------------------------------------------------- */

.quotes__track {
	display: grid;
}

.quote {
	grid-area: 1 / 1;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.6s var(--ease), transform 0.6s var(--ease),
		visibility 0.6s;
}

.quote.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.quote blockquote {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 1.05rem + 1.5vw, 2.15rem);
	font-weight: 400;
	line-height: 1.28;
	letter-spacing: -0.02em;
	color: var(--heading);
	text-wrap: pretty;
}

.quote blockquote p {
	margin: 0 0 0.6em;
}

.quote__by {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 2rem;
}

.quote__by img {
	width: 3.5rem;
	height: 3.5rem;
	object-fit: contain;
	background: var(--paper-2);
	border: 1px solid var(--rule);
	padding: 0.35rem;
}

.quote__name {
	display: block;
	font-size: var(--t-sm);
	font-weight: 600;
	color: var(--heading);
}

.quote__role {
	display: block;
	font-family: var(--font-mono);
	font-size: var(--t-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-faint);
}

.quotes__nav {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 2.5rem;
}

.qdot {
	width: 2.5rem;
	height: 2px;
	padding: 0;
	border: 0;
	background: var(--rule-strong);
	cursor: pointer;
	transition: background 0.35s var(--ease);
}

.qdot[aria-selected="true"] {
	background: var(--indigo);
}

.qdot:hover {
	background: var(--violet);
}

/* --------------------------------------------------------------------------
   15. Team
   -------------------------------------------------------------------------- */

.team {
	display: grid;
	gap: clamp(1.25rem, 1rem + 1vw, 2rem);
}

@media (min-width: 34rem) {
	.team {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 48rem) {
	.team {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 68rem) {
	.team {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Portraits are transparent PNGs, so they get no plate and no border. The
   source images are square, so the box is square and the fit is contain —
   cover in a 3/4 box was cropping the heads. The card is not a link, so the
   colour lift is triggered from the card itself. */
.member .shot {
	aspect-ratio: 1;
	background: none;
	border: 0;
}

.member .shot img {
	object-fit: contain;
	padding: 4%;
}

.member:hover .shot img,
.member:focus-within .shot img {
	filter: none;
	transform: scale(1);
}

/* On hover a border draws itself around the portrait in the two brand tones:
   violet travels from the top-left, indigo from the bottom-right, and they meet
   at the opposite corners. Each half extends its width first, then its height,
   so the line reads as being drawn rather than fading in.

   border-width is 0 at rest and only switches on with the hover: a zero-sized
   box with a live border still paints a 2px corner dot, which showed up on
   every idle portrait. Its transition is delayed on the way out so the stroke
   disappears only once both edges have retracted. */
.member .shot::before,
.member .shot::after {
	content: "";
	position: absolute;
	width: 0;
	height: 0;
	z-index: 2;
	pointer-events: none;
	border-style: solid;
	border-width: 0;
	transition: height 0.3s var(--ease), width 0.3s var(--ease) 0.3s,
		border-width 0s linear 0.6s;
}

.member .shot::before {
	top: 0;
	left: 0;
	border-color: var(--violet) transparent transparent var(--violet);
}

.member .shot::after {
	right: 0;
	bottom: 0;
	border-color: transparent var(--indigo) var(--indigo) transparent;
}

.member:hover .shot::before,
.member:focus-within .shot::before,
.member:hover .shot::after,
.member:focus-within .shot::after {
	width: 100%;
	height: 100%;
	border-width: 2px;
	transition: width 0.3s var(--ease), height 0.3s var(--ease) 0.3s,
		border-width 0s;
}

.member__name {
	margin-top: 1rem;
	font-size: var(--t-h4);
	font-weight: 500;
}

.member__role {
	font-family: var(--font-mono);
	font-size: var(--t-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-faint);
	margin: 0.35rem 0 0;
}

.socials {
	display: flex;
	gap: 0.4rem;
	margin-top: 0.9rem;
}

.socials a {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--rule);
	color: var(--text-dim);
	transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
		background 0.3s var(--ease);
}

.socials a:hover {
	color: var(--paper);
	background: var(--indigo);
	border-color: var(--indigo);
}

.on-dark .socials a:hover {
	color: var(--indigo);
	background: var(--violet-light);
	border-color: var(--violet-light);
}

.socials svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

/* --------------------------------------------------------------------------
   16. Journal
   -------------------------------------------------------------------------- */

.posts {
	display: grid;
	gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

@media (min-width: 40rem) {
	.posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 68rem) {
	.posts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.post .shot {
	aspect-ratio: 16 / 10;
}

.post__date {
	display: block;
	margin-top: 1rem;
	font-family: var(--font-mono);
	font-size: var(--t-mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-faint);
}

.post__title {
	display: block;
	margin-top: 0.5rem;
	font-family: var(--font-display);
	font-size: var(--t-h4);
	font-weight: 500;
	letter-spacing: -0.015em;
	line-height: 1.15;
	color: var(--heading);
	transition: color 0.3s var(--ease);
}

.post a:hover .post__title {
	color: var(--violet);
}

.pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin-top: 3rem;
	font-family: var(--font-mono);
	font-size: var(--t-mono);
}

.pager a,
.pager span {
	display: grid;
	place-items: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding-inline: 0.6rem;
	border: 1px solid var(--rule);
	color: var(--text-dim);
	transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
		background 0.3s var(--ease);
}

.pager a:hover {
	color: var(--heading);
	border-color: var(--rule-strong);
}

.pager .is-current {
	background: var(--indigo);
	border-color: var(--indigo);
	color: var(--paper);
}

.article {
	display: grid;
	gap: clamp(2rem, 1.5rem + 3vw, 4rem);
}

@media (min-width: 62rem) {
	.article {
		grid-template-columns: minmax(0, 1fr) 18rem;
		align-items: start;
	}
}

.article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
	padding-bottom: 1.25rem;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--rule);
	font-family: var(--font-mono);
	font-size: var(--t-mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-faint);
}

.article__meta--tags {
	border-bottom: 0;
	padding-bottom: 0;
	margin-bottom: 0;
}

.aside__title {
	font-family: var(--font-mono);
	font-size: var(--t-mono);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
	padding-bottom: 0.9rem;
	border-bottom: 1px solid var(--rule-strong);
	margin: 0 0 0.5rem;
}

.aside__list li {
	border-bottom: 1px solid var(--rule);
}

.aside__list a {
	display: grid;
	grid-template-columns: 4rem minmax(0, 1fr);
	gap: 0.9rem;
	align-items: center;
	padding: 0.9rem 0;
}

.aside__list .shot {
	aspect-ratio: 1;
}

.aside__list h4 {
	font-family: var(--font-body);
	font-size: var(--t-sm);
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.4;
	color: var(--text);
}

.aside__list a:hover h4 {
	color: var(--violet);
}

.aside__list time {
	display: block;
	margin-top: 0.2rem;
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.1em;
	color: var(--text-faint);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
}

/* --------------------------------------------------------------------------
   17. Prose — CKEditor output from the admin
   -------------------------------------------------------------------------- */

.prose {
	line-height: 1.75;
	color: var(--text-dim);
	max-width: 68ch;
}

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

.prose > :last-child {
	margin-bottom: 0;
}

.prose h2 {
	font-size: var(--t-h3);
	margin: 2.25em 0 0.7em;
}

.prose h3 {
	font-size: var(--t-h4);
	margin: 2em 0 0.6em;
}

.prose h4 {
	font-size: 1.05rem;
	margin: 1.8em 0 0.5em;
}

.prose p,
.prose ul,
.prose ol {
	margin: 0 0 1.2em;
}

.prose ul,
.prose ol {
	padding-left: 1.1rem;
}

.prose li {
	margin-bottom: 0.5em;
}

.prose ul li {
	list-style: none;
	position: relative;
	padding-left: 1.35rem;
}

.prose ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.78em;
	width: 12px;
	height: 2px;
	border-radius: 999px;
	background: var(--violet);
}

.prose ol {
	list-style: decimal;
}

.prose ol li::marker {
	font-family: var(--font-mono);
	font-size: 0.85em;
	color: var(--violet);
}

.prose a {
	color: var(--heading);
	text-decoration: underline;
	text-decoration-color: var(--violet);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.prose a:hover {
	color: var(--violet);
}

.prose strong {
	color: var(--heading);
	font-weight: 600;
}

.prose blockquote {
	margin: 1.8em 0;
	padding: 0.2em 0 0.2em 1.4rem;
	border-left: 2px solid var(--violet);
	font-family: var(--font-display);
	font-size: var(--t-h4);
	line-height: 1.4;
	color: var(--heading);
}

.prose img {
	margin: 1.8em 0;
	border: 1px solid var(--rule);
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.8em 0;
	font-size: var(--t-sm);
}

.prose th,
.prose td {
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--rule);
	text-align: left;
}

.prose th {
	font-family: var(--font-mono);
	font-size: var(--t-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-faint);
	font-weight: 500;
}

.prose code {
	font-family: var(--font-mono);
	font-size: 0.875em;
	background: var(--paper-3);
	border: 1px solid var(--rule);
	padding: 0.1em 0.4em;
}

.prose pre {
	overflow-x: auto;
	padding: 1.2rem;
	background: var(--paper-3);
	border: 1px solid var(--rule);
	margin: 1.8em 0;
}

.prose pre code {
	background: none;
	border: 0;
	padding: 0;
}

.prose-wrap {
	overflow-x: auto;
}

/* --------------------------------------------------------------------------
   18. Forms
   -------------------------------------------------------------------------- */

.form {
	display: grid;
	gap: 1.1rem;
}

.form__row {
	display: grid;
	gap: 1.1rem;
}

@media (min-width: 34rem) {
	.form__row--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.field label {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-faint);
	margin-bottom: 0.5rem;
}

.field input,
.field textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	background: var(--field);
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius);
	color: var(--text);
	font-size: var(--t-sm);
	transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
	appearance: none;
}

.field textarea {
	resize: vertical;
	min-height: 8rem;
	line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
	color: var(--text-faint);
}

.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--violet);
	background: var(--paper-2);
}

.on-dark .field input:focus,
.on-dark .field textarea:focus {
	border-color: var(--violet-light);
	background: rgba(195, 176, 218, 0.08);
}

.field [aria-invalid="true"] {
	border-color: var(--warn-fg);
}

.field__error {
	display: block;
	margin-top: 0.4rem;
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	color: var(--warn-fg);
}



.field__error:empty {
	display: none;
}

.form__note {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.04em;
	color: var(--text-faint);
	margin: 0;
}

.form__status {
	font-family: var(--font-mono);
	font-size: var(--t-mono);
	padding: 0.85rem 1rem;
	border: 1px solid var(--rule-strong);
	margin: 0;
}

.form__status:empty {
	display: none;
}

.form__status[data-state="ok"] {
	border-color: var(--violet);
	color: var(--violet);
}

.on-dark .form__status[data-state="ok"] {
	border-color: var(--violet-light);
	color: var(--violet-light);
}

.form__status[data-state="error"] {
	border-color: var(--warn-fg);
	color: var(--warn-fg);
}



.form button[type="submit"] {
	justify-self: start;
}

.form button[aria-busy="true"] {
	pointer-events: none;
	opacity: 0.6;
}

/* Contact layout */
.contact {
	display: grid;
	gap: clamp(2rem, 1.5rem + 3vw, 4.5rem);
	align-items: start;
}

@media (min-width: 56rem) {
	.contact {
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	}
}

.contact__details {
	border-top: 1px solid var(--rule-strong);
}

.contact__block {
	padding: 1.4rem 0;
	border-bottom: 1px solid var(--rule);
}

.contact__block h3 {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-faint);
	margin-bottom: 0.6rem;
}

.contact__block a {
	display: block;
	font-size: var(--t-lead);
	color: var(--heading);
	letter-spacing: -0.01em;
	transition: color 0.3s var(--ease);
}

.contact__block a:hover {
	color: var(--violet);
}

.on-dark .contact__block a:hover {
	color: var(--violet-light);
}

.contact__block address {
	font-style: normal;
	color: var(--text-dim);
	font-size: var(--t-sm);
	line-height: 1.7;
}

/* --------------------------------------------------------------------------
   19. Modal
   -------------------------------------------------------------------------- */

.modal {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: grid;
	place-items: center;
	padding: 1.25rem;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.modal.is-open {
	visibility: visible;
	opacity: 1;
}

.modal__scrim {
	position: absolute;
	inset: 0;
	background: rgba(28, 23, 67, 0.55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border: 0;
	padding: 0;
	cursor: pointer;
}

.modal__panel {
	position: relative;
	width: 100%;
	max-width: 40rem;
	max-height: calc(100svh - 2.5rem);
	overflow-y: auto;
	padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
	background: var(--paper);
	border: 1px solid var(--rule-strong);
	transform: scale(0.97) translateY(10px);
	filter: blur(4px);
	transition: transform 0.4s var(--ease), filter 0.4s var(--ease);
}

.modal.is-open .modal__panel {
	transform: none;
	filter: none;
}

.modal__close {
	position: absolute;
	top: 0.9rem;
	right: 0.9rem;
	width: 2.25rem;
	height: 2.25rem;
	display: grid;
	place-items: center;
	border: 1px solid var(--rule);
	background: transparent;
	color: var(--text-dim);
	cursor: pointer;
	transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.modal__close:hover {
	color: var(--indigo);
	border-color: var(--indigo);
}

.modal__close svg {
	width: 12px;
	height: 12px;
}

.modal__title {
	font-size: var(--t-h3);
	margin-bottom: 0.6rem;
	padding-right: 2.5rem;
}

.modal__lede {
	color: var(--text-dim);
	font-size: var(--t-sm);
	margin-bottom: 1.75rem;
}

/* --------------------------------------------------------------------------
   20. Closing call to action — inverted band
   -------------------------------------------------------------------------- */

.cta {
	position: relative;
	overflow: hidden;
}

.cta__wash {
	position: absolute;
	inset: auto -10% -70% -10%;
	height: 150%;
	pointer-events: none;
	background: radial-gradient(
			30rem 22rem at 22% 100%,
			rgba(195, 176, 218, 0.16),
			transparent 68%
		),
		radial-gradient(
			28rem 20rem at 78% 100%,
			rgba(195, 176, 218, 0.12),
			transparent 68%
		);
}

.cta .container {
	position: relative;
	z-index: 1;
}

.cta__grid {
	display: grid;
	gap: clamp(2rem, 1.5rem + 3vw, 4.5rem);
	align-items: start;
}

@media (min-width: 56rem) {
	.cta__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.cta__title {
	font-size: var(--t-h2);
}

.cta__lede {
	margin-top: 1.25rem;
	font-size: var(--t-lead);
	color: var(--text-dim);
	max-width: 34rem;
}

/* --------------------------------------------------------------------------
   21. Clients marquee
   -------------------------------------------------------------------------- */

.clients {
	padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
	border-top: 1px solid var(--rule);
	background: var(--paper-3);
	overflow: hidden;
}

/* Scoped with the parent so it outranks the reset's `p:last-child` rule — the
   label is the only child of its container, so a bare .clients__label margin
   was being zeroed and the logos sat flush against it. */
.clients .clients__label {
	font-family: var(--font-mono);
	font-size: var(--t-mono);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text-faint);
	margin: 0 0 clamp(1.75rem, 1.25rem + 1.2vw, 2.5rem);
}

.marquee {
	display: flex;
	overflow: hidden;
	mask-image: linear-gradient(
		to right,
		transparent,
		#000 8%,
		#000 92%,
		transparent
	);
	-webkit-mask-image: linear-gradient(
		to right,
		transparent,
		#000 8%,
		#000 92%,
		transparent
	);
}

.marquee__track {
	display: flex;
	align-items: center;
	gap: clamp(2.5rem, 2rem + 3vw, 5rem);
	flex: none;
	padding-right: clamp(2.5rem, 2rem + 3vw, 5rem);
	animation: marquee 46s linear infinite;
}

.marquee:hover .marquee__track {
	animation-play-state: paused;
}

@keyframes marquee {
	to {
		transform: translateX(-100%);
	}
}

/* Left in colour: several client marks are light, and greyscale on a pale
   band made them disappear. */
.marquee img {
	height: 2.5rem;
	width: auto;
	max-width: 9rem;
	object-fit: contain;
	opacity: 0.85;
	transition: opacity 0.4s var(--ease);
}

.marquee img:hover {
	opacity: 1;
}

/* --------------------------------------------------------------------------
   22. Footer — inverted band
   -------------------------------------------------------------------------- */

.site-footer__top {
	display: grid;
	gap: clamp(2.5rem, 2rem + 2vw, 3.5rem);
	padding-block: clamp(3rem, 2.5rem + 3vw, 5rem);
}

@media (min-width: 40rem) {
	.site-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 68rem) {
	.site-footer__top {
		grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
	}
}

.site-footer__brand img {
	height: 3rem;
	width: auto;
	margin-bottom: 1.5rem;
}

.site-footer__brand p {
	color: var(--text-dim);
	font-size: var(--t-sm);
	max-width: 24rem;
	margin-bottom: 1.5rem;
}

.fcol h3 {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-faint);
	margin-bottom: 1.1rem;
}

.fcol ul {
	display: grid;
	gap: 0.65rem;
}

.fcol a {
	font-size: var(--t-sm);
	color: var(--text-dim);
	transition: color 0.3s var(--ease);
}

.fcol a:hover {
	color: var(--violet-light);
}

.fcol address {
	font-style: normal;
	font-size: var(--t-sm);
	line-height: 1.7;
	color: var(--text-dim);
}

.fcontact {
	display: grid;
	gap: 0.4rem;
	margin-bottom: 1.5rem;
}

.fcontact a {
	font-size: var(--t-sm);
	transition: color 0.3s var(--ease);
}

.fcontact a:hover {
	color: var(--violet-light);
}

.site-footer__cert {
	margin-top: 1.25rem;
}

.site-footer__cert img {
	max-width: 9rem;
	opacity: 0.8;
	transition: opacity 0.4s var(--ease);
}

.site-footer__cert img:hover {
	opacity: 1;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.5rem;
	border-top: 1px solid var(--rule);
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-faint);
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__bottom a:hover {
	color: var(--violet-light);
}

/* --------------------------------------------------------------------------
   23. Scroll reveal
   -------------------------------------------------------------------------- */

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

[data-reveal].is-in {
	opacity: 1;
	transform: none;
}

/* Nothing stays invisible if the script never runs */
.no-js [data-reveal],
.no-js .hero__title .word,
.no-js .hero [data-stage] {
	opacity: 1;
	transform: none;
	filter: none;
	animation: none;
}

/* --------------------------------------------------------------------------
   24. Reduced motion — keep the design, drop the movement
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	/* animation-name: none, so the staggered delays cannot hold content in a
	   pending (invisible) state. */
	[data-reveal],
	.hero__title .word,
	.hero [data-stage],
	.nav-sheet.is-open ul a,
	.nav-sheet.is-open .btn {
		animation: none;
		opacity: 1;
		transform: none;
		filter: none;
	}

	.shot img {
		filter: saturate(0.7) contrast(1.02);
		transform: none;
	}

	.hero__wash,
	.marquee__track {
		animation: none;
	}
}

/* --------------------------------------------------------------------------
   25. Print
   -------------------------------------------------------------------------- */

@media print {
	.site-header,
	.nav-sheet,
	.modal,
	.clients,
	.cta {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}
}
