/* ==========================================================================
   AMIR WAIZ — "SURVEY" DESIGN SYSTEM
   Implements Document 3 (Design System & Animation Spec) in full.

   Contents
     01  Tokens                     08  Cards & numbered blocks
     02  Reset & base               09  Feature rows / split blocks
     03  Layout & containers        10  Pull quote, lists, spec tables
     04  Typography & prose         11  Timeline
     05  Dimension rail (signature) 12  Projects, gallery, lightbox
     06  Header, nav, mobile bar    13  FAQ accordion
     07  Buttons & links            14  Posts, forms, footer
                                    15  Motion, cursor, reduced motion

   Two rules govern everything below:
     · Only transform and opacity animate.
     · No initial hidden state lives in CSS — the motion engine sets it in JS,
       so a JavaScript failure leaves every word on the page visible.
   ========================================================================== */

/* ==========================================================================
   01  TOKENS  (D3 §3.4)
   ========================================================================== */

:root {
	/* ---- colour ---- */
	--c-ink: #0c1a26;
	--c-ink-raised: #132738;
	--c-ink-line: #1e3648;
	--c-chalk: #edf1f4;
	--c-chalk-dim: #9aaab6;
	--c-sand: #c9a574;
	--c-sand-deep: #8f7148;
	--c-jade: #37a88c;
	--c-jade-lift: #4fc7a8;
	--c-paper: #f2efe9;
	--c-paper-line: #ddd7cc;
	--c-error: #d9534f;
	--c-ok: #2f9e68;

	/* ---- gradients (D3 §2.5 — these two only) ---- */
	--grad-glow: radial-gradient(60% 55% at 62% 40%, rgba(55, 168, 140, 0.16) 0%, rgba(55, 168, 140, 0) 70%);
	--grad-fade: linear-gradient(180deg, rgba(12, 26, 38, 0) 0%, rgba(12, 26, 38, 0.85) 70%, #0c1a26 100%);

	/* ---- type ---- */
	--f-display: 'Bricolage Grotesque', 'Arial Black', Impact, sans-serif;
	--f-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--f-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

	--t-display: clamp(2.75rem, 8vw, 6rem);
	--t-h1: clamp(2.25rem, 5.5vw, 4.25rem);
	--t-h2: clamp(1.875rem, 3.6vw, 3rem);
	--t-h3: clamp(1.5rem, 2.4vw, 2rem);
	--t-h4: clamp(1.25rem, 1.8vw, 1.5rem);
	--t-lead: clamp(1.125rem, 1.5vw, 1.375rem);
	--t-body: clamp(1rem, 1.1vw, 1.0625rem);
	--t-small: clamp(0.875rem, 1vw, 0.9375rem);
	--t-mono-lg: clamp(0.8125rem, 1vw, 0.875rem);
	--t-mono: 0.75rem;
	--t-figure: clamp(3.25rem, 6.5vw, 5.25rem);

	/* ---- space — 8px base ---- */
	--s-1: 4px;
	--s-2: 8px;
	--s-3: 16px;
	--s-4: 24px;
	--s-5: 32px;
	--s-6: 48px;
	--s-7: 64px;
	--s-8: 96px;
	--s-9: 128px;
	--s-10: 160px;

	/* ---- structure ---- */
	--radius: 2px;
	--radius-card: 4px;
	--rule: 1px;
	--container: 1320px;
	--gutter: clamp(20px, 4vw, 64px);
	--rail: 88px;
	--section-y: clamp(64px, 9vw, 128px);
	--hero-y-top: clamp(96px, 12vw, 160px);
	--hero-y-bottom: clamp(64px, 7vw, 96px);
	--card-pad: clamp(24px, 3vw, 40px);
	--grid-gap: clamp(20px, 2.4vw, 32px);

	/* ---- motion ---- */
	--e-out: cubic-bezier(0.16, 1, 0.3, 1);
	--e-inout: cubic-bezier(0.65, 0.05, 0.36, 1);
	--e-soft: cubic-bezier(0.33, 1, 0.68, 1);
	--d-fast: 180ms;
	--d-base: 400ms;
	--d-slow: 700ms;
	--d-reveal: 900ms;

	/* ---- z-index scale (D3 §7.4) ---- */
	--z-bg: 0;
	--z-grid: 10;
	--z-text: 20;
	--z-glow: 30;
	--z-figure: 40;
	--z-ticks: 50;
	--z-rail: 60;
	--z-header: 100;
	--z-overlay: 120;
	--z-cursor: 9999;
}

/* ==========================================================================
   02  RESET & BASE
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* The header is fixed, so anything jumped to by an in-page anchor would
	   otherwise land underneath it. Applies to native jumps, keyboard focus and
	   browser restore alike — the motion engine's Lenis offset only covers
	   clicks it intercepts. */
	scroll-padding-top: 120px;
}

/* Lenis owns scrolling on desktop; native smooth-scroll would fight it. */
html.lenis,
html.lenis body {
	height: auto;
}

.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}

body {
	margin: 0;
	background: var(--c-ink);
	color: var(--c-chalk);
	font: 400 var(--t-body) / 1.65 var(--f-body);
	font-synthesis-weight: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

/* NOTE: no global `svg { fill: currentColor }`.
   A CSS declaration beats an SVG presentation attribute, so a blanket fill rule
   overrode the `fill="none"` on every Lucide-style line icon in the theme and
   rendered them as solid blobs. Icons set their own fill and stroke inline. */

a {
	color: var(--c-jade-lift);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

a:hover {
	color: var(--c-sand);
}

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

button {
	cursor: pointer;
}

hr {
	border: 0;
	border-top: var(--rule) solid var(--c-ink-line);
	margin: var(--s-8) 0;
}

::selection {
	background: var(--c-sand);
	color: var(--c-ink);
}

/* Focus: never removed, always 3:1 against every surface (D3 §5.1). */
:focus-visible {
	outline: 2px solid var(--c-jade-lift);
	outline-offset: 3px;
	border-radius: var(--radius);
}

:focus:not(:focus-visible) {
	outline: none;
}

/* Skip link — first focusable element (WCAG 2.4.1). */
.aw-skip {
	position: absolute;
	left: var(--s-3);
	top: var(--s-3);
	z-index: 999;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 12px 20px;
	background: var(--c-jade);
	color: var(--c-ink);
	font: 500 0.9375rem/1 var(--f-body);
	border-radius: var(--radius);
	transform: translateY(-200%);
	transition: transform var(--d-fast) var(--e-out);
}

.aw-skip:focus {
	transform: translateY(0);
	color: var(--c-ink);
}

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

.screen-reader-text:focus {
	position: static !important;
	width: auto;
	height: auto;
	clip: auto;
	clip-path: none;
	margin: 0;
	padding: 12px 20px;
	background: var(--c-jade);
	color: var(--c-ink);
}

/* ==========================================================================
   03  LAYOUT & CONTAINERS
   ========================================================================== */

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

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

.aw-section--tight {
	padding-block: clamp(48px, 6vw, 96px);
}

.aw-section--flush-top {
	padding-top: 0;
}

/* Ink Raised band — cards, credential strip, CTA. */
.aw-section--raised {
	background: var(--c-ink-raised);
}

/* The single Paper section per site (D3 §2.2 — 1% of the palette). */
.aw-section--paper {
	background: var(--c-paper);
	color: var(--c-ink);
}

.aw-section--paper a {
	color: var(--c-sand-deep);
}

.aw-section--paper .aw-eyebrow {
	color: var(--c-sand-deep);
}

.aw-section--paper .aw-eyebrow::before {
	background: var(--c-sand-deep);
}

.aw-section--paper .aw-lead,
.aw-section--paper .aw-prose {
	color: rgba(12, 26, 38, 0.82);
}

/* Asymmetric measures — text never runs the full 12 columns (D3 §4.1). */
.aw-measure {
	max-width: 68ch;
}

.aw-measure--narrow {
	max-width: 52ch;
}

.aw-split {
	display: grid;
	gap: clamp(32px, 5vw, 64px);
	grid-template-columns: 1fr;
	align-items: start;
}

@media (min-width: 900px) {
	.aw-split {
		grid-template-columns: 42fr 58fr;
	}

	.aw-split--even {
		grid-template-columns: 1fr 1fr;
	}

	.aw-split--wide-left {
		grid-template-columns: 58fr 42fr;
	}
}

.aw-grid {
	display: grid;
	gap: var(--grid-gap);
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* A grid reduced to a single item should not stretch that item across the full
   1320px — the widgets cap their column count to the item count, and this caps
   the resulting width to a readable measure. */
.aw-grid--1 {
	max-width: 46rem;
}

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

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

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

.aw-stack {
	display: flex;
	flex-direction: column;
	gap: var(--s-4);
	align-items: flex-start;
}

.aw-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-3);
	align-items: center;
}

/* On the widest screens the content sits clear of the fixed rail. */
@media (min-width: 1200px) {
	body {
		--gutter: clamp(32px, 4vw, 64px);
	}

	.aw-container {
		padding-left: max(var(--gutter), var(--rail));
	}
}

/* ==========================================================================
   04  TYPOGRAPHY & PROSE  (D3 §3.2)
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-family: var(--f-display);
	font-weight: 600;
	color: var(--c-chalk);
	text-wrap: balance;
}

.aw-display,
h1.aw-display {
	font-size: var(--t-display);
	font-weight: 700;
	line-height: 0.92;
	letter-spacing: -0.035em;
}

h1,
.aw-h1 {
	font-size: var(--t-h1);
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.03em;
}

h2,
.aw-h2 {
	font-size: var(--t-h2);
	line-height: 1.04;
	letter-spacing: -0.025em;
}

h3,
.aw-h3 {
	font-size: var(--t-h3);
	line-height: 1.15;
	letter-spacing: -0.015em;
}

h4,
.aw-h4 {
	font-size: var(--t-h4);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 1.25em;
}

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

.aw-lead {
	font-size: var(--t-lead);
	line-height: 1.55;
	color: var(--c-chalk-dim);
	max-width: 60ch;
}

.aw-small {
	font-size: var(--t-small);
	color: var(--c-chalk-dim);
}

/* The third voice: mono, uppercase, always (D3 §3.1). */
.aw-mono {
	font: 400 var(--t-mono) / 1.5 var(--f-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-chalk-dim);
}

.aw-mono--lg {
	font-size: var(--t-mono-lg);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.1em;
}

/* Section eyebrow: 24px sandstone rule, then mono label (D3 §5.5). */
.aw-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 var(--s-4);
	font: 500 var(--t-mono-lg) / 1.4 var(--f-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-sand);
}

.aw-eyebrow::before {
	content: "";
	flex: none;
	width: 24px;
	height: 1px;
	background: var(--c-sand);
}

.aw-eyebrow--bare::before {
	display: none;
}

/* Prose: long-form body copy (About story, project briefs, blog posts). */
.aw-prose {
	font-size: var(--t-body);
	line-height: 1.65;
	color: var(--c-chalk-dim);
	max-width: 68ch;
}

.aw-prose > * + * {
	margin-top: 1.25em;
}

.aw-prose strong,
.aw-prose b {
	color: var(--c-chalk);
	font-weight: 600;
}

.aw-prose h2,
.aw-prose h3,
.aw-prose h4 {
	margin-top: 1.6em;
	color: var(--c-chalk);
}

.aw-prose ul,
.aw-prose ol {
	padding-left: 1.25em;
	margin-block: 1.25em;
}

.aw-prose li + li {
	margin-top: 0.5em;
}

.aw-prose li::marker {
	color: var(--c-sand);
}

.aw-prose a {
	color: var(--c-jade-lift);
}

.aw-prose blockquote {
	margin: 1.75em 0;
	padding-left: var(--s-4);
	border-left: 2px solid var(--c-sand);
	color: var(--c-chalk);
	font-size: var(--t-lead);
}

.aw-prose img {
	border-radius: var(--radius);
	margin-block: 1.75em;
}

.aw-prose code {
	font: 400 0.9em var(--f-mono);
	color: var(--c-sand);
}

/* Section heading pair: eyebrow + H2 + optional standfirst. */
.aw-heading {
	display: flex;
	flex-direction: column;
	gap: var(--s-4);
	margin-bottom: clamp(32px, 4vw, 64px);
}

.aw-heading__title {
	max-width: 18ch;
}

.aw-heading--wide .aw-heading__title {
	max-width: 26ch;
}

.aw-heading--center {
	align-items: center;
	text-align: center;
}

.aw-heading--center .aw-heading__title {
	max-width: 22ch;
}

.aw-heading--center .aw-eyebrow {
	justify-content: center;
}

/* Divider (D3 §5.5) — never a decorative shape. */
.aw-divider {
	height: 1px;
	width: 100%;
	background: var(--c-ink-line);
	border: 0;
	margin-block: var(--s-8);
	transform-origin: left center;
}

/* Breadcrumbs (D2 §3.5). */
.aw-crumbs {
	margin-bottom: var(--s-5);
	font: 400 var(--t-mono) / 1.5 var(--f-mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-chalk-dim);
}

.aw-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.aw-crumbs li + li::before {
	content: "/";
	margin-right: 8px;
	color: var(--c-ink-line);
}

.aw-crumbs a {
	color: var(--c-chalk-dim);
	text-decoration: none;
}

.aw-crumbs a:hover {
	color: var(--c-sand);
}

.aw-crumbs [aria-current="page"] {
	color: var(--c-sand);
}

/* ==========================================================================
   05  DIMENSION RAIL — the signature element  (D3 §5.4)
   ========================================================================== */

.rail {
	position: fixed;
	left: 0;
	top: 0;
	bottom: 0;
	width: var(--rail);
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 22px;
	padding-left: 24px;
	z-index: var(--z-rail);
	pointer-events: none;
}

@media (min-width: 1200px) {
	.rail {
		display: flex;
	}
}

.rail::before {
	content: "";
	position: absolute;
	left: 24px;
	top: 12%;
	bottom: 12%;
	width: 1px;
	background: var(--c-ink-line);
}

.rail__mark {
	position: relative;
	padding-left: 18px;
	font: 400 var(--t-mono) / 1 var(--f-mono);
	letter-spacing: 0.14em;
	color: var(--c-chalk-dim);
	opacity: 0.35;
	transition: opacity var(--d-base) var(--e-soft), color var(--d-base) var(--e-soft);
}

.rail__mark::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 10px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--d-base) var(--e-out);
}

.rail__mark.is-active {
	opacity: 1;
	color: var(--c-sand);
}

.rail__mark.is-active::before {
	transform: scaleX(1);
}

.rail__pct {
	position: absolute;
	bottom: 32px;
	left: 24px;
	font: 400 var(--t-mono) / 1 var(--f-mono);
	letter-spacing: 0.14em;
	color: var(--c-chalk-dim);
}

/* Paper sections invert the rail so it stays legible over the light field. */
.rail.is-on-paper .rail__mark {
	color: var(--c-ink);
}

.rail.is-on-paper .rail__mark.is-active {
	color: var(--c-sand-deep);
}

.rail.is-on-paper::before {
	background: var(--c-paper-line);
}

/* ==========================================================================
   06  HEADER, NAV, MOBILE ACTION BAR
   ========================================================================== */

/* The header is one fixed stack containing the utility row and the nav row.
   They were previously siblings — the utility bar in normal flow at top:0 and
   the header fixed at top:0 — so the header sat directly on top of it and made
   the utility links unclickable. Nesting them guarantees they stack, scroll and
   compress as one object. */
.aw-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: var(--z-header);
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color var(--d-base) var(--e-soft), border-color var(--d-base) var(--e-soft);
}

.aw-header__bar {
	padding-block: clamp(16px, 2vw, 24px);
	transition: padding var(--d-base) var(--e-soft);
}

.aw-header.is-compressed {
	background: rgba(12, 26, 38, 0.88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom-color: var(--c-ink-line);
}

.aw-header.is-compressed .aw-header__bar {
	padding-block: 12px;
}

/* Compressing collapses the utility row away, so the stuck header is the
   single compact bar D2 §3.1 asks for. */
.aw-header.is-compressed .aw-utility {
	display: none;
}

/* No blur support (or a browser that repaints badly): fall back to solid ink. */
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
	.aw-header.is-compressed {
		background: var(--c-ink);
	}
}

.aw-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-5);
}

.aw-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	/* min-height, not height: the wordmark is 16px of text but the hit area
	   has to clear 44px on touch (WCAG 2.5.5). */
	min-height: 44px;
	font: 700 1rem/1 var(--f-mono);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--c-chalk);
	text-decoration: none;
	flex: none;
}

.aw-brand:hover {
	color: var(--c-sand);
}

.aw-brand__mark {
	width: 10px;
	height: 10px;
	border-top: 2px solid var(--c-sand);
	border-left: 2px solid var(--c-sand);
	flex: none;
}

.aw-brand img {
	height: 32px;
	width: auto;
}

/* --- desktop nav --- */
.aw-nav {
	display: none;
}

@media (min-width: 1024px) {
	.aw-nav {
		display: block;
	}
}

.aw-nav__menu,
.aw-nav__menu ul {
	display: flex;
	align-items: center;
	gap: clamp(18px, 2vw, 32px);
	list-style: none;
	margin: 0;
	padding: 0;
}

.aw-nav__menu li {
	position: relative;
}

.aw-nav__menu a {
	display: block;
	padding: 6px 0;
	font: 400 1rem/1.4 var(--f-body);
	color: var(--c-chalk);
	text-decoration: none;
	transition: color var(--d-fast) var(--e-soft);
}

.aw-nav__menu a:hover,
.aw-nav__menu a:focus-visible {
	color: var(--c-sand);
}

.aw-nav__menu .current-menu-item > a,
.aw-nav__menu .current_page_item > a,
.aw-nav__menu .is-active {
	color: var(--c-sand);
}

.aw-nav__menu .current-menu-item > a::after,
.aw-nav__menu .current_page_item > a::after,
.aw-nav__menu a.is-active::after {
	content: "";
	display: block;
	height: 1px;
	margin-top: 4px;
	background: var(--c-sand);
}

/* --- dropdown (Projects ▾) --- */
.aw-nav__menu .menu-item-has-children > a::after,
.aw-nav__menu .aw-has-children > a::after {
	content: " ▾";
	color: var(--c-chalk-dim);
	font-size: 0.75em;
}

.aw-nav__menu .sub-menu,
.aw-nav__menu .aw-submenu {
	position: absolute;
	top: 100%;
	left: -20px;
	min-width: 240px;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: 12px 0;
	margin-top: 10px;
	background: var(--c-ink-raised);
	border: 1px solid var(--c-ink-line);
	border-radius: var(--radius);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity var(--d-fast) var(--e-soft), transform var(--d-fast) var(--e-soft), visibility var(--d-fast);
}

.aw-nav__menu li:hover > .sub-menu,
.aw-nav__menu li:focus-within > .sub-menu,
.aw-nav__menu li:hover > .aw-submenu,
.aw-nav__menu li:focus-within > .aw-submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.aw-nav__menu .sub-menu a,
.aw-nav__menu .aw-submenu a {
	padding: 10px 20px;
	font-size: 0.9375rem;
	white-space: nowrap;
}

/* --- utility bar (Milestones · Media · Speaking · social · phone) --- */
.aw-utility {
	display: none;
	border-bottom: 1px solid var(--c-ink-line);
	background: rgba(19, 39, 56, 0.72);
}

@media (min-width: 1024px) {
	.aw-utility {
		display: block;
	}
}

.aw-utility__inner {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--s-4);
	padding-block: 8px;
	font: 400 var(--t-mono) / 1.6 var(--f-mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* The utility links are a horizontal row. This used to be an inline style in
   the template, which the widget refactor dropped — and a bulleted vertical
   list appeared in the header. Styling belongs here, not in the markup. */
.aw-utility__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.aw-utility a {
	color: var(--c-chalk-dim);
	text-decoration: none;
}

.aw-utility a:hover {
	color: var(--c-sand);
}

.aw-utility__sep {
	width: 1px;
	height: 12px;
	background: var(--c-ink-line);
}

.aw-social {
	display: flex;
	align-items: center;
	gap: 14px;
}

.aw-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/* 24px icon, 44px hit area on touch — the icon size is the visual, the
	   padding is the target (WCAG 2.5.5). */
	width: 24px;
	height: 24px;
	color: var(--c-chalk-dim);
}

@media (pointer: coarse) {
	.aw-social {
		gap: 4px;
	}

	.aw-social a {
		width: 44px;
		height: 44px;
	}
}

.aw-social svg {
	width: 17px;
	height: 17px;
	/* Line icons: never let a cascade rule fill them in. */
	fill: none;
	stroke: currentColor;
}

/* --- hamburger --- */
.aw-burger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	/* flex: none — without it the burger is a shrinkable flex child and gets
	   squeezed below the 44px minimum when the actions row runs out of room. */
	flex: none;
	padding: 0;
	background: transparent;
	border: 1px solid var(--c-ink-line);
	border-radius: var(--radius);
	color: var(--c-chalk);
}

@media (min-width: 1024px) {
	.aw-burger {
		display: none;
	}
}

.aw-burger__box {
	position: relative;
	width: 18px;
	height: 12px;
}

.aw-burger__box span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 1.5px;
	background: currentColor;
	transition: transform var(--d-base) var(--e-out), opacity var(--d-fast) linear;
}

.aw-burger__box span:nth-child(1) {
	top: 0;
}

.aw-burger__box span:nth-child(2) {
	top: 50%;
	margin-top: -0.75px;
}

.aw-burger__box span:nth-child(3) {
	bottom: 0;
}

.aw-burger[aria-expanded="true"] .aw-burger__box span:nth-child(1) {
	transform: translateY(5.25px) rotate(45deg);
}

.aw-burger[aria-expanded="true"] .aw-burger__box span:nth-child(2) {
	opacity: 0;
}

.aw-burger[aria-expanded="true"] .aw-burger__box span:nth-child(3) {
	transform: translateY(-5.25px) rotate(-45deg);
}

.aw-header__actions {
	display: flex;
	align-items: center;
	gap: var(--s-3);
	flex: none;
}

/* Hidden below 768px.
   This MUST out-specify `.btn`, which is declared later in this stylesheet:
   at equal specificity the later rule wins, so a plain `.aw-header__cta`
   selector lost to `.btn { display: inline-flex }` and the consultation button
   stayed visible on phones — overflowing the header, shrinking the burger and
   pushing it off-screen on every page. */
.aw-header .aw-header__cta {
	display: none;
}

@media (min-width: 768px) {
	.aw-header .aw-header__cta {
		display: inline-flex;
		flex: none;
	}
}

/* --- mobile full-screen menu (A19) --- */
.aw-menu {
	position: fixed;
	inset: 0;
	z-index: var(--z-overlay);
	display: flex;
	flex-direction: column;
	padding: 96px var(--gutter) calc(var(--s-8) + env(safe-area-inset-bottom, 0px));
	background: var(--c-ink);
	overflow-y: auto;
	overscroll-behavior: contain;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--d-base) var(--e-out), visibility var(--d-base);
}

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

body.aw-menu-open {
	overflow: hidden;
}

.aw-menu__close {
	position: absolute;
	top: 20px;
	right: var(--gutter);
	width: 44px;
	height: 44px;
	background: transparent;
	border: 1px solid var(--c-ink-line);
	border-radius: var(--radius);
	color: var(--c-chalk);
	font-size: 1.25rem;
	line-height: 1;
}

.aw-menu__list {
	list-style: none;
	margin: 0 0 var(--s-6);
	padding: 0;
	display: flex;
	flex-direction: column;
}

.aw-menu__list > li {
	border-bottom: 1px solid var(--c-ink-line);
}

.aw-menu__list a {
	display: block;
	padding: 18px 0;
	min-height: 44px;
	font: 600 clamp(1.375rem, 6vw, 1.75rem) / 1.2 var(--f-display);
	letter-spacing: -0.02em;
	color: var(--c-chalk);
	text-decoration: none;
}

.aw-menu__list a:hover,
.aw-menu__list .is-active {
	color: var(--c-sand);
}

/* nested accordion inside the mobile menu */
.aw-menu__list .sub-menu,
.aw-menu__list .aw-submenu {
	list-style: none;
	margin: 0 0 12px;
	padding: 0 0 0 var(--s-4);
	border-left: 1px solid var(--c-ink-line);
}

.aw-menu__list .sub-menu a,
.aw-menu__list .aw-submenu a {
	padding: 12px 0;
	font: 400 1rem/1.4 var(--f-body);
	color: var(--c-chalk-dim);
}

.aw-menu__foot {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: var(--s-4);
	padding-top: var(--s-6);
}

.aw-menu__foot .aw-mono a {
	color: var(--c-chalk-dim);
	text-decoration: none;
}

/* --- persistent mobile action bar: Call + WhatsApp (D2 §3.4) --- */
.aw-actionbar {
	position: fixed;
	inset: auto 0 0 0;
	z-index: var(--z-header);
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--c-ink-raised);
	border-top: 1px solid var(--c-ink-line);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 768px) {
	.aw-actionbar {
		display: none;
	}
}

.aw-actionbar a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 56px;
	font: 500 0.9375rem/1 var(--f-body);
	color: var(--c-chalk);
	text-decoration: none;
}

.aw-actionbar a + a {
	border-left: 1px solid var(--c-ink-line);
	color: var(--c-jade-lift);
}

.aw-actionbar svg {
	width: 18px;
	height: 18px;
}

/* Keep the last section clear of the fixed bar. */
@media (max-width: 767px) {
	body.aw-has-actionbar {
		padding-bottom: 56px;
	}
}

/* ==========================================================================
   07  BUTTONS & LINKS  (D3 §5.1)
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 32px;
	min-height: 52px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font: 500 1rem/1 var(--f-body);
	letter-spacing: 0.01em;
	text-decoration: none;
	text-align: center;
	transition: background-color var(--d-fast) var(--e-soft), color var(--d-fast) var(--e-soft), border-color var(--d-fast) var(--e-soft);
}

@media (max-width: 767px) {
	.btn {
		min-height: 56px;
	}
}

.btn__arrow {
	display: inline-block;
	transition: transform var(--d-fast) var(--e-soft);
}

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

.btn--primary {
	background: var(--c-jade);
	color: var(--c-ink);
}

.btn--primary:hover,
.btn--primary:focus-visible {
	background: var(--c-jade-lift);
	color: var(--c-ink);
}

.btn--primary:active {
	background: var(--c-jade);
	transform: translateY(1px);
}

.btn--secondary {
	border-color: var(--c-ink-line);
	color: var(--c-chalk);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
	border-color: var(--c-sand);
	color: var(--c-sand);
}

.btn--ghost {
	padding-inline: 0;
	min-height: 0;
	color: var(--c-sand);
	background: none;
}

.btn--ghost:hover {
	color: var(--c-sand);
	text-decoration: underline;
}

.btn--block {
	width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
	opacity: 0.4;
	pointer-events: none;
}

.aw-section--paper .btn--secondary {
	border-color: var(--c-paper-line);
	color: var(--c-ink);
}

.aw-section--paper .btn--secondary:hover {
	border-color: var(--c-sand-deep);
	color: var(--c-sand-deep);
}

/* Inline text link with the sandstone underline motif. */
.aw-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--c-sand);
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid rgba(201, 165, 116, 0.35);
	padding-bottom: 2px;
	transition: border-color var(--d-fast) var(--e-soft), color var(--d-fast) var(--e-soft);
}

.aw-link:hover {
	color: var(--c-sand);
	border-bottom-color: var(--c-sand);
}

.aw-link .btn__arrow {
	transition: transform var(--d-fast) var(--e-soft);
}

.aw-link:hover .btn__arrow {
	transform: translateX(4px);
}

.aw-section--paper .aw-link {
	color: var(--c-sand-deep);
	border-bottom-color: rgba(143, 113, 72, 0.35);
}

/* ==========================================================================
   08  CARDS & NUMBERED BLOCKS  (D3 §5.2)
   ========================================================================== */

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--s-3);
	background: var(--c-ink-raised);
	border: 1px solid var(--c-ink-line);
	border-radius: var(--radius-card);
	padding: var(--card-pad);
	transform-style: preserve-3d;
	transition: border-color var(--d-base) var(--e-soft), transform var(--d-base) var(--e-out);
}

.card:hover {
	border-color: var(--c-sand);
	transform: translateY(-4px);
}

/* corner tick — the survey motif, top-left only */
.card::before {
	content: "";
	position: absolute;
	top: -1px;
	left: -1px;
	width: 14px;
	height: 14px;
	border-top: 2px solid var(--c-sand);
	border-left: 2px solid var(--c-sand);
	opacity: 0;
	transition: opacity var(--d-base) var(--e-soft);
}

.card:hover::before {
	opacity: 1;
}

.card__index {
	position: absolute;
	top: var(--card-pad);
	right: var(--card-pad);
	font: 400 var(--t-mono) / 1 var(--f-mono);
	letter-spacing: 0.14em;
	color: var(--c-chalk-dim);
}

.card__icon {
	width: 24px;
	height: 24px;
	color: var(--c-sand);
	margin-bottom: var(--s-2);
}

.card__icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.card__title {
	font-size: var(--t-h3);
	padding-right: 44px;
}

.card__body {
	color: var(--c-chalk-dim);
	margin: 0;
}

.card__foot {
	margin-top: auto;
	padding-top: var(--s-3);
}

.card--flat:hover {
	transform: none;
}

/* Numbered block: the five filters, the five principles (no card chrome). */
.aw-numbered {
	display: grid;
	gap: clamp(28px, 3.5vw, 48px);
}

.aw-numbered__item {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-3);
	padding-top: var(--s-4);
	border-top: 1px solid var(--c-ink-line);
}

@media (min-width: 768px) {
	.aw-numbered__item {
		grid-template-columns: 120px minmax(0, 1fr);
		gap: var(--s-5);
	}
}

.aw-numbered__n {
	font: 500 clamp(1.75rem, 3vw, 2.5rem) / 1 var(--f-mono);
	letter-spacing: -0.02em;
	color: var(--c-sand);
}

.aw-numbered__title {
	font-size: var(--t-h4);
	margin-bottom: var(--s-2);
}

/* A step with no body — the decision sequence and the career arc are titles
   only — must not keep the gap that was there to separate it from one. */
.aw-numbered__title:last-child {
	margin-bottom: 0;
}

.aw-numbered__body {
	color: var(--c-chalk-dim);
	max-width: 62ch;
}

/* ---------------------------------------------------------------------------
   Image placeholder — the drawn slot standing in for a photograph.

   Deliberately reads as a drawing, not as a broken image: hairline sandstone,
   corner ticks and a crossed void, the same marks the hero figure uses. It has
   to be obvious that the slot is intentional and empty, not that something
   failed to load. See inc/placeholders.php.
   --------------------------------------------------------------------------- */
.aw-imgph {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: var(--imgph-ratio, 3 / 2);
	width: 100%;
	border-radius: var(--radius);
	background: color-mix(in srgb, var(--c-sand) 4%, transparent);
	overflow: hidden;
}

.aw-imgph__marks {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: var(--c-sand);
	stroke-width: 1;
}

/* The crossed void sits far back; the corner ticks read as the frame. */
.aw-imgph__marks path:first-child {
	opacity: 0.14;
}

.aw-imgph__marks path + path {
	opacity: 0.5;
}

.aw-imgph__body {
	position: relative;
	display: grid;
	gap: 6px;
	justify-items: center;
	text-align: center;
	padding: var(--s-3);
	background: var(--c-ink);
	border-radius: var(--radius);
}

.aw-imgph__label {
	font: 400 var(--t-mono) / 1.4 var(--f-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-sand);
}

.aw-imgph__size {
	font: 400 0.75rem / 1.4 var(--f-mono);
	color: var(--c-chalk-dim);
}

/* In the hero the figure already carries its own drawn corner ticks and a glow
   behind it, so the placeholder there keeps only the crossed void and has to
   sit above the glow. */
.aw-imgph--hero {
	position: relative;
	z-index: var(--z-figure);
	background: color-mix(in srgb, var(--c-ink) 70%, transparent);
}

.aw-imgph--hero .aw-imgph__marks path + path {
	display: none;
}

/* On a Paper section the ink-coloured label plate would punch a dark hole. */
.section--paper .aw-imgph__body,
.aw-section--paper .aw-imgph__body {
	background: var(--c-paper);
}

/* Credential strip (D2 §4.1 s2). */
.aw-credentials {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--s-5);
}

.aw-credential {
	flex: 1 1 200px;
	font: 400 var(--t-mono) / 1.6 var(--f-mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-chalk-dim);
}

/* Stats (D3 §3.3) — mono figure, sandstone rule, mono label. */
.aw-stats {
	display: grid;
	gap: var(--grid-gap) clamp(24px, 3vw, 48px);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.aw-stat__num {
	font: 500 var(--t-figure) / 1 var(--f-mono);
	letter-spacing: -0.03em;
	color: var(--c-chalk);
	font-variant-numeric: tabular-nums;
}

.aw-stat__rule {
	height: 1px;
	width: 100%;
	background: var(--c-sand);
	margin: var(--s-3) 0;
	transform-origin: left center;
}

.aw-stat__label {
	font: 400 var(--t-mono) / 1.5 var(--f-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-chalk-dim);
}

.aw-stats__caption {
	margin-top: var(--s-5);
	font-size: var(--t-small);
	color: var(--c-chalk-dim);
}

/* ==========================================================================
   09  HERO  (D3 §7)
   ========================================================================== */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100svh;
	padding-block: var(--hero-y-top) var(--hero-y-bottom);
	background: var(--c-ink);
	overflow: hidden;
	isolation: isolate;
}

/* z-10 — faint blueprint grid, 64px pitch, 3% opacity */
.hero__grid {
	position: absolute;
	inset: -10% 0 0;
	z-index: var(--z-grid);
	background-image:
		linear-gradient(to right, var(--c-chalk) 1px, transparent 1px),
		linear-gradient(to bottom, var(--c-chalk) 1px, transparent 1px);
	background-size: 64px 64px;
	opacity: 0.03;
	pointer-events: none;
}

.hero__inner {
	position: relative;
	z-index: var(--z-text);
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
	width: 100%;
}

@media (min-width: 768px) {
	.hero__inner {
		grid-template-columns: 60fr 40fr;
	}
}

@media (min-width: 1024px) {
	.hero__inner {
		grid-template-columns: 52fr 44fr;
		gap: clamp(48px, 4vw, 80px);
	}
}

/* No portrait uploaded yet: collapse to one column instead of reserving 44%
   of the viewport for an empty box. The hero then reads as a deliberate
   typographic opening rather than a broken two-column layout. */
.hero--no-figure .hero__inner {
	grid-template-columns: minmax(0, 1fr);
}

.hero--no-figure .hero__text {
	max-width: 46rem;
}

.hero__text {
	display: flex;
	flex-direction: column;
	gap: var(--s-4);
	align-items: flex-start;
}

.hero__title {
	font-family: var(--f-display);
	font-size: var(--t-display);
	font-weight: 700;
	line-height: 0.92;
	letter-spacing: -0.035em;
	margin: 0;
}

.hero__role {
	font-size: var(--t-h4);
	font-weight: 500;
	color: var(--c-sand);
	max-width: 22ch;
}

.hero__sub {
	max-width: 540px;
	color: var(--c-chalk-dim);
	font-size: var(--t-lead);
	line-height: 1.55;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-3);
	margin-top: var(--s-2);
}

@media (max-width: 479px) {
	.hero__actions {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
	}
}

/* --- portrait side --- */
.hero__figure {
	position: relative;
	display: none;
	align-self: end;
	justify-self: center;
	width: 100%;
	max-width: 520px;
}

@media (min-width: 768px) {
	.hero__figure {
		display: block;
	}
}

/* z-30 — the single permitted jade glow, animated independently */
.hero__glow {
	position: absolute;
	inset: -18% -22%;
	z-index: var(--z-glow);
	background: var(--grad-glow);
	pointer-events: none;
}

/* z-40 — the portrait; extends past the hero's bottom edge on purpose */
.hero__portrait {
	position: relative;
	z-index: var(--z-figure);
	width: 100%;
	height: auto;
	margin-bottom: -40px;
	object-fit: contain;
	object-position: 50% 15%;
	-webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
}

/* z-50 — four L-shaped sandstone corner ticks + dimension callouts */
.hero__ticks {
	position: absolute;
	inset: 24px;
	z-index: var(--z-ticks);
	pointer-events: none;
}

.hero__ticks svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: var(--c-sand);
	stroke-width: 1;
}

.hero__callout {
	position: absolute;
	z-index: var(--z-ticks);
	font: 400 var(--t-mono) / 1 var(--f-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-sand);
	white-space: nowrap;
}

.hero__callout--v {
	top: 50%;
	right: -8px;
	transform: translateY(-50%) rotate(90deg);
	transform-origin: right center;
}

.hero__callout--h {
	bottom: 4px;
	left: 24px;
}

/* --- scroll cue --- */
.scroll-cue {
	position: absolute;
	left: var(--gutter);
	bottom: clamp(24px, 4vw, 48px);
	z-index: var(--z-text);
	display: flex;
	align-items: center;
	gap: 12px;
	font: 400 var(--t-mono) / 1 var(--f-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-chalk-dim);
	text-decoration: none;
}

@media (min-width: 1200px) {
	.scroll-cue {
		left: max(var(--gutter), var(--rail));
	}
}

.scroll-cue:hover {
	color: var(--c-sand);
}

.scroll-cue__track {
	position: relative;
	width: 1px;
	height: 40px;
	background: var(--c-ink-line);
	overflow: hidden;
}

.scroll-cue__line {
	position: absolute;
	inset: 0;
	background: var(--c-sand);
	animation: cue 2.4s var(--e-inout) infinite;
}

@keyframes cue {
	0% {
		transform: scaleY(0);
		transform-origin: top;
	}

	45% {
		transform: scaleY(1);
		transform-origin: top;
	}

	55% {
		transform: scaleY(1);
		transform-origin: bottom;
	}

	100% {
		transform: scaleY(0);
		transform-origin: bottom;
	}
}

/* --- mobile hero: portrait becomes a faded full-bleed background (D3 §7.6) --- */
@media (max-width: 767px) {
	.hero {
		align-items: flex-end;
		min-height: 92svh;
	}

	.hero__bg {
		position: absolute;
		inset: 0;
		z-index: var(--z-bg);
	}

	.hero__bg img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: 50% 15%;
		opacity: 0.55;
	}

	.hero__bg::after {
		content: "";
		position: absolute;
		inset: 0;
		background: var(--grad-fade);
	}

	.hero__text {
		justify-content: flex-end;
	}

	.scroll-cue {
		display: none;
	}
}

@media (min-width: 768px) {
	.hero__bg {
		display: none;
	}
}

/* --- inner page hero --- */
.aw-pagehero {
	position: relative;
	padding-block: calc(var(--hero-y-top) + 24px) var(--section-y);
	background: var(--c-ink);
	overflow: hidden;
}

.aw-pagehero__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, var(--c-chalk) 1px, transparent 1px),
		linear-gradient(to bottom, var(--c-chalk) 1px, transparent 1px);
	background-size: 64px 64px;
	opacity: 0.025;
	pointer-events: none;
}

.aw-pagehero__inner {
	position: relative;
	display: grid;
	gap: clamp(32px, 5vw, 64px);
	align-items: end;
}

@media (min-width: 900px) {
	.aw-pagehero--split .aw-pagehero__inner {
		grid-template-columns: 58fr 42fr;
	}
}

.aw-pagehero__title {
	max-width: 16ch;
	margin-bottom: var(--s-4);
}

.aw-pagehero__count {
	margin-top: var(--s-5);
	font: 400 var(--t-mono) / 1 var(--f-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-sand);
}

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

/* ==========================================================================
   10  FEATURE ROWS, PULL QUOTE, LISTS, SPEC TABLES
   ========================================================================== */

.aw-featurerow {
	display: grid;
	gap: clamp(28px, 4vw, 56px);
	align-items: center;
}

.aw-featurerow + .aw-featurerow {
	margin-top: clamp(56px, 8vw, 112px);
}

@media (min-width: 900px) {
	.aw-featurerow {
		grid-template-columns: 55fr 45fr;
	}

	.aw-featurerow--reverse .aw-featurerow__media {
		order: 2;
	}

	/* Same reasoning as the hero: a row with no image should not leave 45% of
	   the page blank. It becomes a measured text block instead. */
	.aw-featurerow--no-media {
		grid-template-columns: minmax(0, 1fr);
		max-width: 46rem;
	}
}

.aw-featurerow__media {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--c-ink-raised);
}

.aw-featurerow__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.aw-featurerow__label {
	margin-bottom: var(--s-3);
}

.aw-featurerow__title {
	margin-bottom: var(--s-4);
	max-width: 18ch;
}

.aw-featurerow__meta {
	margin-bottom: var(--s-3);
	font: 400 var(--t-mono) / 1.5 var(--f-mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-sand);
}

.aw-featurerow__foot {
	margin-top: var(--s-5);
}

/* Pull quote (D3 §5.5). */
.aw-quote {
	margin: 0;
	padding-left: var(--s-4);
	border-left: 2px solid var(--c-sand);
	font-family: var(--f-display);
	font-weight: 600;
	font-size: var(--t-h2);
	line-height: 1.12;
	letter-spacing: -0.025em;
	color: var(--c-chalk);
	max-width: 20ch;
}

.aw-section--paper .aw-quote {
	border-left-color: var(--c-sand-deep);
	color: var(--c-ink);
}

.aw-quote__cite {
	display: block;
	margin-top: var(--s-4);
	font: 400 var(--t-mono) / 1.5 var(--f-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-sand);
	font-style: normal;
}

/* Testimonials. */
.aw-testimonial {
	display: flex;
	flex-direction: column;
	gap: var(--s-4);
	padding-top: var(--s-4);
	border-top: 1px solid var(--c-ink-line);
}

.aw-testimonial__quote {
	font-size: 1.25rem;
	line-height: 1.5;
	color: var(--c-chalk);
	margin: 0;
}

.aw-testimonial__by {
	font: 400 var(--t-mono) / 1.5 var(--f-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-sand);
	font-style: normal;
}

/* Marker list — achievements, detail lists, formats. */
.aw-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.aw-list li {
	position: relative;
	padding: var(--s-4) 0 var(--s-4) var(--s-5);
	border-bottom: 1px solid var(--c-ink-line);
	color: var(--c-chalk-dim);
}

.aw-list li:first-child {
	border-top: 1px solid var(--c-ink-line);
}

.aw-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: calc(var(--s-4) + 0.7em);
	width: 16px;
	height: 1px;
	background: var(--c-sand);
}

.aw-list strong {
	color: var(--c-chalk);
	font-weight: 600;
}

/* Inline chip row — formats, tags. */
.aw-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.aw-chip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 18px;
	background: transparent;
	border: 1px solid var(--c-ink-line);
	border-radius: var(--radius);
	font: 400 var(--t-mono) / 1 var(--f-mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-chalk-dim);
	text-decoration: none;
	transition: border-color var(--d-fast) var(--e-soft), color var(--d-fast) var(--e-soft);
}

.aw-chip:hover,
.aw-chip:focus-visible {
	border-color: var(--c-sand);
	color: var(--c-sand);
}

.aw-chip.is-active,
.aw-chip[aria-pressed="true"] {
	border-color: var(--c-sand);
	background: rgba(201, 165, 116, 0.1);
	color: var(--c-sand);
}

/* Spec table (D3 §5.5) — mono values, no zebra, no vertical rules. */
.aw-spec {
	width: 100%;
	border-collapse: collapse;
}

.aw-spec caption {
	text-align: left;
	margin-bottom: var(--s-4);
	font: 400 var(--t-mono) / 1.5 var(--f-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-sand);
}

.aw-spec th,
.aw-spec td {
	padding: 16px 0;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--c-ink-line);
}

.aw-spec th {
	width: 40%;
	font: 400 var(--t-small) / 1.5 var(--f-body);
	font-weight: 400;
	color: var(--c-chalk-dim);
	padding-right: var(--s-4);
}

.aw-spec td {
	font: 400 0.9375rem/1.5 var(--f-mono);
	color: var(--c-chalk);
}

/* Logo wall — recognition, clients. */
.aw-logowall {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	background: var(--c-ink-line);
	border: 1px solid var(--c-ink-line);
}

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

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

.aw-logowall__cell {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--s-5);
	background: var(--c-ink);
	min-height: 120px;
}

.aw-logowall__cell img {
	max-height: 48px;
	width: auto;
	filter: grayscale(1) brightness(1.6);
	opacity: 0.7;
	transition: opacity var(--d-base) var(--e-soft), filter var(--d-base) var(--e-soft);
}

.aw-logowall__cell:hover img {
	opacity: 1;
	filter: none;
}

/* Marquee (A16). */
.marquee {
	overflow: hidden;
	white-space: nowrap;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
	display: inline-flex;
	gap: 64px;
	animation: mq 40s linear infinite;
	will-change: transform;
}

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

@keyframes mq {
	from {
		transform: translate3d(0, 0, 0);
	}

	to {
		transform: translate3d(-50%, 0, 0);
	}
}

/* ==========================================================================
   11  TIMELINE  (A17)
   ========================================================================== */

.aw-timeline {
	position: relative;
	padding-left: var(--s-5);
}

@media (min-width: 768px) {
	.aw-timeline {
		padding-left: 0;
	}
}

.aw-timeline__rail {
	position: absolute;
	left: 0;
	top: 6px;
	bottom: 6px;
	width: 1px;
	background: var(--c-ink-line);
	transform-origin: top center;
}

@media (min-width: 768px) {
	.aw-timeline__rail {
		left: 132px;
	}
}

.aw-timeline__item {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s-2);
	padding-block: var(--s-4);
}

@media (min-width: 768px) {
	.aw-timeline__item {
		grid-template-columns: 132px minmax(0, 1fr);
		gap: var(--s-6);
		padding-block: var(--s-5);
	}
}

.aw-timeline__item::before {
	content: "";
	position: absolute;
	left: calc(var(--s-5) * -1);
	top: calc(var(--s-4) + 0.6em);
	width: 12px;
	height: 1px;
	background: var(--c-sand);
}

@media (min-width: 768px) {
	.aw-timeline__item::before {
		left: 132px;
		top: calc(var(--s-5) + 0.6em);
	}
}

.aw-timeline__year {
	font: 500 var(--t-mono-lg) / 1.4 var(--f-mono);
	letter-spacing: 0.14em;
	color: var(--c-sand);
	font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
	.aw-timeline__year {
		text-align: right;
	}
}

.aw-timeline__body {
	color: var(--c-chalk-dim);
}

@media (min-width: 768px) {
	.aw-timeline__body {
		padding-left: var(--s-4);
	}
}

.aw-timeline__title {
	display: block;
	color: var(--c-chalk);
	font-weight: 600;
	margin-bottom: 4px;
}

/* ==========================================================================
   12  PROJECTS, GALLERY, LIGHTBOX
   ========================================================================== */

.aw-projects__filters {
	margin-bottom: clamp(32px, 4vw, 48px);
}

.aw-projectcard {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--c-ink-raised);
	border: 1px solid var(--c-ink-line);
	border-radius: var(--radius-card);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: border-color var(--d-base) var(--e-soft), transform var(--d-base) var(--e-out);
}

.aw-projectcard:hover {
	border-color: var(--c-sand);
	transform: translateY(-4px);
	color: inherit;
}

.aw-projectcard__media {
	position: relative;
	overflow: hidden;
	background: var(--c-ink);
}

.aw-projectcard__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform var(--d-slow) var(--e-out);
}

.aw-projectcard:hover .aw-projectcard__media img {
	transform: scale(1.04);
}

.aw-projectcard__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 6px 10px;
	background: rgba(12, 26, 38, 0.85);
	border: 1px solid var(--c-ink-line);
	border-radius: var(--radius);
	font: 400 var(--t-mono) / 1 var(--f-mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-sand);
}

.aw-projectcard__body {
	display: flex;
	flex-direction: column;
	gap: var(--s-2);
	padding: var(--card-pad);
	flex: 1;
}

.aw-projectcard__title {
	font-size: var(--t-h4);
	font-family: var(--f-display);
	font-weight: 600;
}

.aw-projectcard__meta {
	font: 400 var(--t-mono) / 1.6 var(--f-mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-chalk-dim);
}

.aw-projectcard__foot {
	margin-top: auto;
	padding-top: var(--s-4);
	color: var(--c-sand);
	font: 500 0.9375rem/1 var(--f-body);
}

.aw-projects__empty {
	padding: var(--s-7) 0;
	color: var(--c-chalk-dim);
	text-align: center;
}

.aw-projectcard.is-hidden,
.is-filtered-out {
	display: none;
}

/* Gallery + lightbox. */
.aw-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--s-2);
}

@media (min-width: 768px) {
	.aw-gallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--s-3);
	}
}

.aw-gallery__item {
	position: relative;
	display: block;
	padding: 0;
	border: 0;
	background: var(--c-ink-raised);
	border-radius: var(--radius);
	overflow: hidden;
	cursor: zoom-in;
}

.aw-gallery__item img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform var(--d-slow) var(--e-out), opacity var(--d-base) var(--e-soft);
}

.aw-gallery__item:hover img {
	transform: scale(1.04);
	opacity: 0.85;
}

.aw-lightbox {
	position: fixed;
	inset: 0;
	z-index: var(--z-cursor);
	display: none;
	align-items: center;
	justify-content: center;
	padding: clamp(16px, 4vw, 64px);
	background: rgba(12, 26, 38, 0.96);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.aw-lightbox.is-open {
	display: flex;
}

.aw-lightbox__img {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
	border-radius: var(--radius);
}

.aw-lightbox__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: clamp(16px, 3vw, 32px);
	text-align: center;
	font: 400 var(--t-mono) / 1.5 var(--f-mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-chalk-dim);
}

.aw-lightbox__btn {
	position: absolute;
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid var(--c-ink-line);
	border-radius: var(--radius);
	color: var(--c-chalk);
	font-size: 1.25rem;
	line-height: 1;
}

.aw-lightbox__btn:hover {
	border-color: var(--c-sand);
	color: var(--c-sand);
}

.aw-lightbox__close {
	top: clamp(16px, 3vw, 32px);
	right: clamp(16px, 3vw, 32px);
}

.aw-lightbox__prev {
	left: clamp(8px, 2vw, 32px);
	top: 50%;
	transform: translateY(-50%);
}

.aw-lightbox__next {
	right: clamp(8px, 2vw, 32px);
	top: 50%;
	transform: translateY(-50%);
}

/* Next-project card. */
.aw-nextproject {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-4);
	padding: var(--card-pad);
	border: 1px solid var(--c-ink-line);
	border-radius: var(--radius-card);
	text-decoration: none;
	color: inherit;
	transition: border-color var(--d-base) var(--e-soft);
}

.aw-nextproject:hover {
	border-color: var(--c-sand);
	color: inherit;
}

/* Map embed — reserve space so it cannot shift layout. */
.aw-map {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--c-ink-line);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--c-ink-raised);
}

.aw-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	filter: grayscale(1) invert(0.92) contrast(0.85);
}

.aw-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--c-ink-line);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--c-ink-raised);
}

.aw-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ==========================================================================
   13  FAQ ACCORDION  (A18 / D3 §11.4)
   ========================================================================== */

.acc {
	border-bottom: 1px solid var(--c-ink-line);
}

.acc:first-child {
	border-top: 1px solid var(--c-ink-line);
}

.acc__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-4);
	width: 100%;
	min-height: 72px;
	padding: var(--s-4) 0;
	background: none;
	border: 0;
	text-align: left;
	font: 500 var(--t-h4) / 1.3 var(--f-display);
	letter-spacing: -0.01em;
	color: var(--c-chalk);
	transition: color var(--d-fast) var(--e-soft);
}

.acc__trigger:hover {
	color: var(--c-sand);
}

.acc__icon {
	flex: none;
	font: 400 1.25rem/1 var(--f-mono);
	color: var(--c-sand);
	transition: transform var(--d-base) var(--e-inout);
}

.acc.is-open .acc__icon {
	transform: rotate(90deg);
}

.acc__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 350ms var(--e-inout);
}

.acc.is-open .acc__panel {
	grid-template-rows: 1fr;
}

.acc__panel > div {
	overflow: hidden;
}

.acc__body {
	padding-bottom: var(--s-5);
	color: var(--c-chalk-dim);
	max-width: 68ch;
}

/* ==========================================================================
   14  POSTS, FORMS, CTA, FOOTER
   ========================================================================== */

.aw-postcard {
	display: flex;
	flex-direction: column;
	gap: var(--s-3);
	text-decoration: none;
	color: inherit;
}

.aw-postcard__media {
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--c-ink-raised);
	border: 1px solid var(--c-ink-line);
}

.aw-postcard__media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform var(--d-slow) var(--e-out);
}

.aw-postcard:hover .aw-postcard__media img {
	transform: scale(1.04);
}

.aw-postcard__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font: 400 var(--t-mono) / 1.5 var(--f-mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-chalk-dim);
}

.aw-postcard__meta .aw-postcard__cat {
	color: var(--c-sand);
}

.aw-postcard__title {
	font-size: var(--t-h4);
	font-family: var(--f-display);
	font-weight: 600;
	color: var(--c-chalk);
	transition: color var(--d-fast) var(--e-soft);
}

.aw-postcard:hover .aw-postcard__title {
	color: var(--c-sand);
}

.aw-postcard__excerpt {
	color: var(--c-chalk-dim);
	font-size: var(--t-small);
}

.aw-postcard--featured {
	gap: var(--s-5);
}

@media (min-width: 900px) {
	.aw-postcard--featured {
		display: grid;
		grid-template-columns: 58fr 42fr;
		align-items: center;
	}

	.aw-postcard--featured .aw-postcard__title {
		font-size: var(--t-h2);
	}
}

/* Single post furniture. */
.aw-post__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-3);
	margin-bottom: var(--s-5);
	font: 400 var(--t-mono) / 1.5 var(--f-mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-chalk-dim);
}

.aw-post__layout {
	display: grid;
	gap: clamp(32px, 5vw, 64px);
}

@media (min-width: 1024px) {
	.aw-post__layout {
		grid-template-columns: 260px minmax(0, 1fr);
	}
}

.aw-toc {
	position: sticky;
	top: 120px;
	align-self: start;
	display: none;
}

@media (min-width: 1024px) {
	.aw-toc {
		display: block;
	}
}

.aw-toc__title {
	margin-bottom: var(--s-3);
	font: 400 var(--t-mono) / 1.5 var(--f-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-sand);
}

.aw-toc ol {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 1px solid var(--c-ink-line);
}

.aw-toc a {
	display: block;
	padding: 8px 0 8px var(--s-3);
	margin-left: -1px;
	border-left: 1px solid transparent;
	font-size: var(--t-small);
	color: var(--c-chalk-dim);
	text-decoration: none;
}

.aw-toc a:hover,
.aw-toc a.is-active {
	color: var(--c-sand);
	border-left-color: var(--c-sand);
}

.aw-author {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-4);
	align-items: center;
	margin-top: var(--s-8);
	padding: var(--card-pad);
	background: var(--c-ink-raised);
	border: 1px solid var(--c-ink-line);
	border-radius: var(--radius-card);
}

.aw-author img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
}

.aw-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: var(--s-8);
}

.aw-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--c-ink-line);
	border-radius: var(--radius);
	font: 400 0.9375rem/1 var(--f-mono);
	color: var(--c-chalk-dim);
	text-decoration: none;
}

.aw-pagination .page-numbers:hover,
.aw-pagination .page-numbers.current {
	border-color: var(--c-sand);
	color: var(--c-sand);
}

/* --- forms (D3 §5.3) --- */
.aw-form {
	display: grid;
	gap: var(--s-4);
}

.aw-form__row {
	display: grid;
	gap: var(--s-4);
}

@media (min-width: 640px) {
	.aw-form__row--2 {
		grid-template-columns: 1fr 1fr;
	}
}

.field label,
.field .field__label {
	display: block;
	margin-bottom: 8px;
	font: 400 var(--t-mono) / 1.5 var(--f-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-chalk-dim);
}

.field .field__req {
	color: var(--c-sand);
}

.field input,
.field select,
.field textarea {
	width: 100%;
	padding: 15px 16px;
	background: transparent;
	color: var(--c-chalk);
	border: 1px solid var(--c-ink-line);
	border-radius: var(--radius);
	font: 400 1rem/1.5 var(--f-body);
	transition: border-color var(--d-fast) var(--e-soft);
	min-height: 52px;
}

.field select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--c-sand) 50%), linear-gradient(135deg, var(--c-sand) 50%, transparent 50%);
	background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 44px;
}

.field select option {
	background: var(--c-ink-raised);
	color: var(--c-chalk);
}

.field input::placeholder,
.field textarea::placeholder {
	color: rgba(154, 170, 182, 0.55);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	border-color: var(--c-jade);
	outline: 2px solid var(--c-jade-lift);
	outline-offset: 2px;
}

.field textarea {
	min-height: 150px;
	resize: vertical;
}

.field.is-error input,
.field.is-error select,
.field.is-error textarea {
	border-color: var(--c-error);
}

.field .msg {
	display: block;
	margin-top: 6px;
	font: 400 0.8125rem/1.5 var(--f-body);
	color: var(--c-error);
}

.field--check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.field--check input[type="checkbox"] {
	width: 20px;
	height: 20px;
	min-height: 0;
	margin-top: 2px;
	flex: none;
	accent-color: var(--c-jade);
}

.field--check label {
	margin: 0;
	font: 400 var(--t-small) / 1.5 var(--f-body);
	letter-spacing: 0;
	text-transform: none;
	color: var(--c-chalk-dim);
}

/* Honeypot — hidden from people, present for bots. */
.aw-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.aw-form__status {
	padding: 14px 16px;
	border: 1px solid var(--c-ink-line);
	border-radius: var(--radius);
	font-size: var(--t-small);
}

.aw-form__status:empty {
	display: none;
}

.aw-form__status.is-ok {
	border-color: var(--c-ok);
	color: var(--c-ok);
}

.aw-form__status.is-error {
	border-color: var(--c-error);
	color: var(--c-error);
}

.aw-form__note {
	font-size: 0.8125rem;
	color: var(--c-chalk-dim);
}

.aw-form.is-sending {
	opacity: 0.7;
	pointer-events: none;
}

/* Newsletter — email + button on one line, consent and microcopy beneath.
   The previous flex-wrap arrangement floated the consent checkbox alongside the
   input and dropped the button underneath it, which read as three unrelated
   fragments rather than one form. */
.aw-newsletter {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--s-3);
	align-items: start;
}

@media (min-width: 480px) {
	.aw-newsletter {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	/* The status line, consent box and microcopy each span both columns. */
	.aw-newsletter > .aw-form__status,
	.aw-newsletter > .field--check,
	.aw-newsletter > .aw-form__note,
	.aw-newsletter > noscript {
		grid-column: 1 / -1;
	}

	/* Both halves of the top row are placed explicitly. Auto-placement cannot
	   do it: the consent box between them spans the full width, and an item
	   after a full-width span always restarts at column 1 — so the button
	   dropped below the input and the second track collapsed to 0px, which is
	   exactly the "input full width, button orphaned underneath" the grid was
	   introduced to fix. */
	.aw-newsletter > .field:not(.field--check) {
		grid-column: 1;
		grid-row: 1;
	}

	.aw-newsletter > .aw-form__actions {
		grid-column: 2;
		grid-row: 1;
		/* Sits on the input's baseline, not the label's. */
		align-self: end;
	}
}

.aw-newsletter .field {
	margin: 0;
}

.aw-newsletter .aw-form__note {
	margin: 0;
}

/* Contact details block. */
.aw-details {
	display: grid;
	gap: var(--s-5);
}

.aw-details__item .aw-mono {
	margin-bottom: 6px;
}

.aw-details__item a {
	color: var(--c-chalk);
	text-decoration: none;
}

.aw-details__item a:hover {
	color: var(--c-sand);
}

.aw-details__value {
	font-size: 1.0625rem;
	line-height: 1.55;
	color: var(--c-chalk);
}

/* CTA band — the one centred component per page (D3 §4.1). */
.aw-cta {
	background: var(--c-ink-raised);
	text-align: center;
}

.aw-cta__inner {
	max-width: 720px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--s-4);
}

.aw-cta__title {
	max-width: 20ch;
}

.aw-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--s-3);
	margin-top: var(--s-2);
}

@media (max-width: 479px) {
	.aw-cta__actions {
		width: 100%;
		flex-direction: column;
	}
}

/* --- footer --- */
.aw-footer {
	background: var(--c-ink-raised);
	border-top: 1px solid var(--c-ink-line);
	padding-block: clamp(64px, 8vw, 96px) 40px;
}

.aw-footer__cols {
	display: grid;
	gap: clamp(32px, 4vw, 32px);
	grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
	.aw-footer__cols {
		grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	}
}

.aw-footer__title {
	margin-bottom: var(--s-4);
	font: 400 var(--t-mono) / 1.5 var(--f-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-sand);
}

.aw-footer__brand {
	font-family: var(--f-display);
	font-size: var(--t-h4);
	font-weight: 700;
	color: var(--c-chalk);
	margin-bottom: var(--s-3);
	display: block;
	text-decoration: none;
}

.aw-footer__blurb {
	color: var(--c-chalk-dim);
	font-size: var(--t-small);
	max-width: 34ch;
}

.aw-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.aw-footer__menu a {
	color: var(--c-chalk-dim);
	text-decoration: none;
	font-size: var(--t-small);
}

.aw-footer__menu a:hover {
	color: var(--c-sand);
}

.aw-footer__office {
	color: var(--c-chalk-dim);
	font-size: var(--t-small);
	font-style: normal;
	line-height: 1.8;
}

.aw-footer__office a {
	color: var(--c-chalk-dim);
	text-decoration: none;
}

.aw-footer__office a:hover {
	color: var(--c-sand);
}

.aw-footer__newsletter {
	margin-top: clamp(40px, 5vw, 64px);
	padding-top: var(--s-6);
	border-top: 1px solid var(--c-ink-line);
	display: grid;
	gap: var(--s-4);
}

@media (min-width: 900px) {
	.aw-footer__newsletter {
		grid-template-columns: 1fr 1fr;
		/* Top-aligned, not centred. The form is three or four times the height
		   of the heading beside it, so centring left the heading floating in
		   the middle of a tall empty column with ~80px of dead space above and
		   below it — the single most visible misalignment in the footer. */
		align-items: start;
		gap: var(--s-7);
	}
}

.aw-footer__bar {
	margin-top: var(--s-6);
	padding-top: var(--s-5);
	border-top: 1px solid var(--c-ink-line);
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-4);
	align-items: center;
	justify-content: space-between;
	font-size: 0.8125rem;
	color: var(--c-chalk-dim);
}

.aw-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.aw-footer__legal a {
	color: var(--c-chalk-dim);
	text-decoration: none;
}

.aw-footer__legal a:hover {
	color: var(--c-sand);
}

.aw-disclaimer {
	margin-top: var(--s-4);
	font-size: 0.75rem;
	line-height: 1.6;
	/* Full Chalk Dim, not a faded alpha of it: at 75% opacity this dropped to
	   about 4.3:1 on Ink Raised, under the 4.5:1 floor. A legal disclaimer is
	   the last thing that should be hard to read. */
	color: var(--c-chalk-dim);
	max-width: 80ch;
}

/* 404. */
.aw-404 {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--s-4);
	min-height: 60svh;
	justify-content: center;
}

/* ==========================================================================
   15  MOTION SUPPORT, CURSOR, REDUCED MOTION
   ========================================================================== */

/* line-mask reveals (A05) */
.ln-mask {
	display: block;
	overflow: hidden;
}

.ln {
	display: block;
	will-change: transform;
}

/* custom cursor (A13) */
.cur-dot,
.cur-ring {
	position: fixed;
	top: 0;
	left: 0;
	pointer-events: none;
	z-index: var(--z-cursor);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	mix-blend-mode: difference;
}

.cur-dot {
	width: 6px;
	height: 6px;
	background: var(--c-chalk);
	margin: -3px 0 0 -3px;
}

.cur-ring {
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	border: 1px solid var(--c-sand);
	transition: width 0.25s var(--e-soft), height 0.25s var(--e-soft), margin 0.25s var(--e-soft), opacity 0.25s var(--e-soft);
}

.cur-ring.is-wide {
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	opacity: 0.65;
}

@media (max-width: 1023px), (pointer: coarse) {
	.cur-dot,
	.cur-ring {
		display: none;
	}
}

body.aw-cursor-on {
	cursor: none;
}

body.aw-cursor-on a,
body.aw-cursor-on button {
	cursor: none;
}

/* Page-transition fade target (A20). */
.aw-main {
	will-change: auto;
}

/* Preloader (A01). */
.aw-preload {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--c-ink);
	font: 400 var(--t-mono) / 1 var(--f-mono);
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--c-chalk-dim);
	transition: opacity var(--d-slow) var(--e-out), visibility var(--d-slow);
}

.aw-preload.is-done {
	opacity: 0;
	visibility: hidden;
}

/* No-JS / GSAP-failed safety net — content must always be visible.
   Initial hidden states are set in JavaScript, never here (D3 §11.3). */
html:not(.js-motion) [data-anim],
html:not(.js-motion) [data-anim-lines],
html:not(.js-motion) [data-anim-words],
html:not(.js-motion) [data-rule],
html.no-motion [data-anim],
html.no-motion [data-anim-lines],
html.no-motion [data-anim-words],
html.no-motion [data-rule] {
	opacity: 1;
	transform: none;
}

html:not(.js-motion) .aw-preload,
html.no-motion .aw-preload {
	display: none;
}

/* Elements that only make sense with JS stay hidden until JS confirms itself. */
html:not(.js-motion) .aw-lightbox {
	display: none;
}

/* ---- REDUCED MOTION — the safety net (D3 §11.3) ---- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	[data-anim],
	[data-anim-lines],
	[data-anim-words],
	.ln,
	[data-rule],
	[data-parallax] {
		opacity: 1 !important;
		transform: none !important;
	}

	.cur-dot,
	.cur-ring {
		display: none !important;
	}

	body {
		cursor: auto !important;
	}

	.marquee__track,
	.scroll-cue__line {
		animation: none !important;
	}

	.aw-preload {
		display: none !important;
	}
}

/* ==========================================================================
   16  ELEMENTOR WRAPPER NEUTRALISATION
   The importer nests each section inside Elementor container chrome, which
   ships its own max-width, padding and gaps. Zero it so the theme's own
   .aw-container (1320px) and .aw-section rhythm are exact.
   ========================================================================== */

.elementor-page .elementor-section,
.elementor-page .elementor-container,
.elementor-page .elementor-column,
.elementor-page .elementor-widget-wrap,
.elementor-page .elementor-widget,
.elementor-page .elementor-widget-container,
.elementor-page .e-con,
.elementor-page .e-con-inner,
.elementor-page .e-con-boxed,
.elementor-page .e-con-full {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	--container-max-width: 100%;
	--content-width: 100%;
	--e-con-width: 100%;
	--width: 100%;
	--gap: 0px;
	--grid-gap: 0px;
	--column-gap: 0px;
	--row-gap: 0px;
}

.elementor-page .elementor-section,
.elementor-page .elementor-container,
.elementor-page .elementor-column,
.elementor-page .elementor-widget-wrap.elementor-element-populated,
.elementor-page .elementor-widget-container,
.elementor-page .e-con,
.elementor-page .e-con-inner {
	padding: 0;
	gap: 0;
}

.elementor-page .elementor-widget:not(:last-child) {
	margin-bottom: 0;
}

.elementor-page .elementor-section.elementor-section-boxed > .elementor-container,
.elementor-page .elementor-section.elementor-section-height-full > .elementor-container {
	max-width: none;
	width: 100%;
}

.elementor-page .elementor-container,
.elementor-page .e-con.e-flex,
.elementor-page .e-con {
	min-height: 0;
}

/* The header and footer are rendered from Elementor templates, which arrive
   wrapped in their own section/column chrome. That chrome is outside any
   `.elementor-page` body class, so the page-scoped resets above miss it —
   hence the same treatment scoped to the chrome wrapper. */
.aw-chrome-wrap,
.aw-chrome-wrap .elementor,
.aw-chrome-wrap .elementor-section,
.aw-chrome-wrap .elementor-container,
.aw-chrome-wrap .elementor-column,
.aw-chrome-wrap .elementor-widget-wrap,
.aw-chrome-wrap .elementor-widget,
.aw-chrome-wrap .elementor-widget-container,
.aw-chrome-wrap .e-con,
.aw-chrome-wrap .e-con-inner {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	gap: 0;
	min-height: 0;
	--container-max-width: 100%;
	--content-width: 100%;
	--e-con-width: 100%;
	--gap: 0px;
}

.aw-chrome-wrap .elementor-widget:not(:last-child) {
	margin-bottom: 0;
}

/* The width cap has to be beaten on specificity, not just on the variable.
 *
 * The rules above neutralise Elementor by redefining `--container-max-width`,
 * which works wherever the Elementor Kit stylesheet is loaded — every page
 * built with Elementor. On templates the builder is not driving (page.php,
 * archives, search, 404) the kit is absent, so what applies instead is the
 * literal rule in frontend.css:
 *
 *   .elementor-section.elementor-section-boxed > .elementor-container
 *       { max-width: 1140px }                                      (0,3,0)
 *
 * which out-ranks `.aw-chrome-wrap .elementor-container` (0,2,0) no matter
 * how late the theme stylesheet loads. The footer band then stopped dead at
 * 1140px with the rest of the viewport showing page background through it.
 * Restated here at (0,4,0) so the chrome is full-bleed on every template. */
.aw-chrome-wrap .elementor-section.elementor-section-boxed > .elementor-container,
.aw-chrome-wrap .elementor-section > .elementor-container,
.aw-chrome-wrap .e-con.e-con-boxed > .e-con-inner {
	width: 100%;
	max-width: none;
}

/* Elementor frontend.css ships `.elementor img{height:auto}` at (0,1,1), which
   out-ranks the single-class sizing rules below. Restate them at equal-or-higher
   specificity so sized images keep their intended dimensions. */
.elementor .aw-brand img {
	height: 32px;
	width: auto;
}

.elementor .aw-social svg {
	width: 17px;
	height: 17px;
}

.elementor .aw-author img {
	width: 72px;
	height: 72px;
}

.elementor .aw-logowall__cell img {
	max-height: 48px;
	width: auto;
}

/* ==========================================================================
   17  PRINT
   ========================================================================== */

@media print {
	.rail,
	.aw-header,
	.aw-utility,
	.aw-actionbar,
	.aw-menu,
	.cur-dot,
	.cur-ring,
	.scroll-cue,
	.aw-preload,
	.aw-cta {
		display: none !important;
	}

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

	.aw-container {
		max-width: none;
		padding: 0;
	}

	a[href]::after {
		content: " (" attr(href) ")";
		font-size: 0.8em;
	}
}
