/* ============================================================
   ZEROHOUR CODE — "Zero Hour" design system
   Warm near-black · brand gold · editorial serif · mono telemetry
   Zero JavaScript. Everything below is CSS.
   ============================================================ */

@font-face {
	font-family: "Instrument Serif";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/instrument-serif-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Instrument Serif";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
}

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

:root {
	--bg: #0d0c0a;
	--bg-raise: #14120e;
	--bg-panel: #171411;
	--ivory: #f2ede3;
	--ivory-dim: #c9c2b2;
	--muted: #8f8878;
	--gold: #f4c430;
	--gold-deep: #c99a06;
	--gold-glow: rgba(244, 196, 48, 0.14);
	--line: rgba(242, 237, 227, 0.13);
	--line-soft: rgba(242, 237, 227, 0.07);
	--paper: #f2ede3;
	--paper-ink: #14120e;
	--paper-muted: #5d574a;
	--paper-line: rgba(20, 18, 14, 0.16);
	--green: #79d297;
	--container: 1200px;
	--gutter: clamp(20px, 4vw, 48px);
	--serif: "Instrument Serif", Georgia, serif;
	--sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 86px;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ivory-dim);
	font-family: var(--sans);
	font-size: 16.5px;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: var(--gold);
	color: var(--bg);
}

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

a {
	color: inherit;
}

p,
h1,
h2,
h3,
dl,
dd,
blockquote,
figure {
	margin: 0;
}

.container {
	width: min(var(--container), 100% - var(--gutter) * 2);
	margin-inline: auto;
}

/* ---------- type ---------- */

h1,
h2 {
	font-family: var(--serif);
	font-weight: 400;
	color: var(--ivory);
	letter-spacing: -0.01em;
}

h1 {
	font-size: clamp(3rem, 7.2vw, 6.1rem);
	line-height: 0.99;
}

h2 {
	font-size: clamp(2.2rem, 4.6vw, 4rem);
	line-height: 1.04;
	max-width: 21ch;
}

h1 em,
h2 em {
	font-style: italic;
	color: var(--gold);
}

h3 {
	color: var(--ivory);
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.eyebrow {
	margin-bottom: 22px;
	color: var(--gold);
	font-family: var(--mono);
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.section-lede {
	max-width: 56ch;
	margin-top: 22px;
	font-size: 1.1rem;
}

/* ---------- skip link ---------- */

.skip-link {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 50;
	padding: 10px 16px;
	background: var(--gold);
	color: var(--bg);
	font-family: var(--mono);
	font-size: 0.85rem;
	text-decoration: none;
	transform: translateY(-250%);
	transition: transform 180ms ease;
}

.skip-link:focus {
	transform: translateY(0);
}

/* ---------- header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(13, 12, 10, 0.82);
	border-bottom: 1px solid var(--line-soft);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.header-layout {
	min-height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.brand {
	display: inline-flex;
	align-items: center;
	font-family: var(--sans);
	font-size: 1.32rem;
	font-weight: 700;
	letter-spacing: -0.035em;
	color: var(--ivory);
	text-decoration: none;
	white-space: nowrap;
}

.brand-mark {
	width: 36px;
	height: 24px;
	flex: none;
	margin-right: 10px;
}

.brand span {
	color: var(--gold);
}

.primary-nav {
	display: flex;
	align-items: center;
	gap: clamp(8px, 2vw, 26px);
}

.primary-nav a {
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
	min-height: 40px;
	align-items: center;
	color: var(--ivory-dim);
	font-family: var(--mono);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 160ms ease;
}

.primary-nav a span {
	color: var(--gold-deep);
	font-size: 0.66rem;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
	color: var(--gold);
	outline: none;
}

/* ---------- buttons ---------- */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 13px 26px;
	background: var(--gold);
	border: 1px solid var(--gold);
	color: var(--bg);
	font-family: var(--mono);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 180ms ease, box-shadow 180ms ease, transform 180ms var(--ease-out);
}

.button:hover,
.button:focus-visible {
	background: #ffd75e;
	border-color: #ffd75e;
	box-shadow: 0 8px 38px rgba(244, 196, 48, 0.32);
	transform: translateY(-1px);
	outline: none;
}

.button-arrow {
	transition: transform 180ms var(--ease-out);
}

.button:hover .button-arrow {
	transform: translateX(5px);
}

.button-small {
	min-height: 40px;
	padding: 8px 16px;
	font-size: 0.74rem;
}

.text-link {
	display: inline-flex;
	align-items: center;
	min-height: 50px;
	color: var(--ivory);
	font-family: var(--mono);
	font-size: 0.85rem;
	letter-spacing: 0.03em;
	text-decoration: underline;
	text-decoration-color: var(--gold-deep);
	text-decoration-thickness: 1px;
	text-underline-offset: 6px;
	transition: color 160ms ease;
}

.text-link:hover,
.text-link:focus-visible {
	color: var(--gold);
	outline: none;
}

a:focus-visible,
.button:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

/* ---------- hero ---------- */

.hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--line-soft);
	background:
		radial-gradient(900px 540px at 12% -10%, var(--gold-glow), transparent 62%),
		radial-gradient(720px 480px at 95% 110%, rgba(244, 196, 48, 0.07), transparent 60%),
		var(--bg);
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 88px,
		linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 88px 100%;
	mask-image: radial-gradient(ellipse 90% 80% at 60% 20%, #000 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 20%, #000 30%, transparent 75%);
	pointer-events: none;
}

.hero-layout {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
	gap: clamp(40px, 6vw, 90px);
	align-items: center;
	padding-block: clamp(76px, 11vw, 140px);
}

.hero-text {
	max-width: 56ch;
	margin-top: 28px;
	font-size: clamp(1.06rem, 1.6vw, 1.22rem);
	line-height: 1.6;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 22px;
	margin-top: 40px;
}

/* hero load choreography */

.reveal {
	animation: rise 900ms var(--ease-out) both;
}

.r1 { animation-delay: 80ms; }
.r2 { animation-delay: 200ms; }
.r3 { animation-delay: 380ms; }
.r4 { animation-delay: 540ms; }

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(26px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ---------- console ---------- */

.console {
	border: 1px solid var(--line);
	background:
		repeating-linear-gradient(0deg, rgba(242, 237, 227, 0.018) 0 1px, transparent 1px 3px),
		var(--bg-panel);
	box-shadow:
		0 40px 90px rgba(0, 0, 0, 0.55),
		0 0 0 1px rgba(0, 0, 0, 0.4),
		0 0 120px rgba(244, 196, 48, 0.06);
}

.console-bar {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 13px 18px;
	border-bottom: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 0.72rem;
}

.dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(242, 237, 227, 0.16);
}

.dot:first-child {
	background: var(--gold-deep);
}

.console-title {
	margin-left: 10px;
	color: var(--muted);
	letter-spacing: 0.05em;
}

.console-clock {
	margin-left: auto;
	color: var(--gold);
	font-weight: 600;
	letter-spacing: 0.08em;
	animation: clock-pulse 2.4s ease-in-out infinite;
}

@keyframes clock-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.45; }
}

.console-body {
	padding: 22px 20px 18px;
	font-family: var(--mono);
	font-size: 0.8rem;
	line-height: 2.05;
}

.cl {
	display: flex;
	align-items: baseline;
	gap: 10px;
	color: var(--ivory-dim);
	white-space: nowrap;
	overflow: hidden;
	animation: line-in 360ms var(--ease-out) both;
}

.c1 { animation-delay: 600ms; }
.c2 { animation-delay: 2700ms; }
.c3 { animation-delay: 3300ms; }
.c4 { animation-delay: 4100ms; }
.c5 { animation-delay: 5200ms; }
.c6 { animation-delay: 6000ms; }
.c7 { animation-delay: 6900ms; }
.c8 { animation-delay: 7500ms; }

@keyframes line-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* typewriter: the command is clipped to 0ch and revealed one character
   step at a time; the gold border is the travelling caret, switched off
   once typing completes. Resting state is the full line, so browsers
   without animation (and reduced-motion users) see finished output. */

.typed {
	display: inline-block;
	box-sizing: content-box; /* keep the caret border out of the 45ch budget */
	width: 45ch;
	overflow: hidden;
	white-space: nowrap;
	border-right: 8px solid transparent;
	animation:
		typing 1700ms steps(45, end) 800ms both,
		caret-on 1ms linear 750ms both,
		caret-off 1ms linear 2600ms forwards;
}

@keyframes typing {
	from { width: 0; }
}

@keyframes caret-on {
	to { border-color: var(--gold); }
}

@keyframes caret-off {
	to { border-color: transparent; }
}

/* odometer digits: each column is a strip of 0–9 that rolls from 0 to
   its target. The resting transform IS the target, so without animation
   the final number simply shows. */

.roll {
	display: inline-flex;
	height: 1em;
	overflow: hidden;
	line-height: 1;
	vertical-align: 0.07em;
}

.digit {
	width: 1ch;
}

/* Digit targets are classes, not style attributes, because the strict
   CSP (style-src 'self') strips inline styles. */
.d0 { --d: 0; }
.d1 { --d: 1; }
.d2 { --d: 2; }
.d3 { --d: 3; }
.d4 { --d: 4; }
.d5 { --d: 5; }
.d6 { --d: 6; }
.d7 { --d: 7; }
.d8 { --d: 8; }
.d9 { --d: 9; }

.digit::before {
	content: "0\a 1\a 2\a 3\a 4\a 5\a 6\a 7\a 8\a 9";
	display: block;
	white-space: pre;
	line-height: 1;
	transform: translateY(calc(var(--d, 0) * -1em));
	animation: roll 800ms cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

.dsep {
	line-height: 1;
}

@keyframes roll {
	from { transform: translateY(0); }
}

.c3 .digit::before { animation-delay: 3400ms; }
.c3 .digit:nth-child(2)::before { animation-delay: 3500ms; }

.c4 .digit::before { animation-delay: 4200ms; animation-duration: 1000ms; }
.c4 .digit:nth-child(3)::before { animation-delay: 4300ms; }
.c4 .digit:nth-child(4)::before { animation-delay: 4400ms; }
.c4 .digit:nth-child(5)::before { animation-delay: 4500ms; }

.prompt {
	color: var(--gold);
}

.ok {
	color: var(--green);
}

.cl.gold,
.cl.gold .ok {
	color: var(--gold);
}

.cl .t {
	margin-left: auto;
	padding-left: 16px;
	color: var(--muted);
	font-size: 0.72rem;
}

.cl.gold .t {
	color: var(--gold);
}

.cursor {
	display: inline-block;
	width: 9px;
	height: 1.05em;
	background: var(--gold);
	transform: translateY(0.18em);
	animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
	0%, 60% { opacity: 1; }
	61%, 100% { opacity: 0; }
}

/* ---------- marquee ---------- */

.marquee {
	overflow: hidden;
	border-bottom: 1px solid var(--line-soft);
	background: var(--bg-raise);
	padding-block: 15px;
}

.marquee-track {
	display: flex;
	align-items: center;
	gap: 34px;
	width: max-content;
	font-family: var(--mono);
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
	white-space: nowrap;
	animation: scroll-x 36s linear infinite;
}

.m-sep {
	color: var(--gold-deep);
	font-size: 0.55rem;
}

@keyframes scroll-x {
	to {
		transform: translateX(-50%);
	}
}

/* ---------- stats ---------- */

.stats {
	border-bottom: 1px solid var(--line-soft);
	background: var(--bg);
}

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

.stat {
	padding: clamp(34px, 4vw, 52px) clamp(18px, 2.4vw, 34px);
	border-left: 1px solid var(--line-soft);
}

.stat:last-child {
	border-right: 1px solid var(--line-soft);
}

.stat strong {
	display: block;
	font-family: var(--serif);
	font-size: clamp(2.6rem, 4.4vw, 4rem);
	font-weight: 400;
	line-height: 1;
	color: var(--gold);
	font-variant-numeric: tabular-nums;
}

.stat span {
	display: block;
	margin-top: 14px;
	max-width: 24ch;
	color: var(--muted);
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.05em;
	line-height: 1.7;
	text-transform: uppercase;
}

/* ---------- sections ---------- */

.section {
	padding-block: clamp(84px, 11vw, 150px);
}

.section-heading {
	margin-bottom: clamp(44px, 6vw, 76px);
}

/* ---------- the shift (paper interlude) ---------- */

.shift {
	background: var(--paper);
	color: var(--paper-muted);
}

.shift h2,
.shift h3 {
	color: var(--paper-ink);
}

.shift h2 em {
	color: var(--gold-deep);
}

.shift .eyebrow {
	color: var(--gold-deep);
}

.shift-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(28px, 4vw, 56px);
}

.shift-item {
	padding-top: 26px;
	border-top: 1px solid var(--paper-line);
}

.shift-item h3 {
	font-size: 1.22rem;
}

.shift-item p {
	margin-top: 14px;
	font-size: 0.99rem;
}

.pull-quote {
	margin-top: clamp(60px, 8vw, 100px);
	padding-top: clamp(40px, 5vw, 60px);
	border-top: 1px solid var(--paper-line);
}

.pull-quote p {
	max-width: 26ch;
	margin-inline: auto;
	font-family: var(--serif);
	font-style: italic;
	font-size: clamp(1.7rem, 3.4vw, 2.9rem);
	line-height: 1.18;
	color: var(--paper-ink);
	text-align: center;
	text-wrap: balance;
}

/* ---------- services ---------- */

.services {
	background: var(--bg);
}

.service-list {
	border-top: 1px solid var(--line);
}

.service-row {
	position: relative;
	display: grid;
	grid-template-columns: 92px minmax(0, 1.45fr) minmax(0, 0.55fr);
	gap: clamp(18px, 3vw, 44px);
	align-items: start;
	padding: clamp(28px, 3.6vw, 44px) clamp(10px, 1.6vw, 22px);
	border-bottom: 1px solid var(--line);
	transition: background 240ms ease;
}

.service-row::before {
	content: "";
	position: absolute;
	inset: -1px 0 auto 0;
	height: 1px;
	background: var(--gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 420ms var(--ease-out);
}

.service-row:hover {
	background: var(--bg-raise);
}

.service-row:hover::before {
	transform: scaleX(1);
}

.service-num {
	font-family: var(--mono);
	font-size: 0.8rem;
	color: var(--gold-deep);
	letter-spacing: 0.1em;
	padding-top: 8px;
	transition: color 200ms ease;
}

.service-row:hover .service-num {
	color: var(--gold);
}

.service-main h3 {
	font-family: var(--serif);
	font-size: clamp(1.5rem, 2.4vw, 2.05rem);
	font-weight: 400;
	letter-spacing: 0;
}

.service-main p {
	max-width: 58ch;
	margin-top: 12px;
	color: var(--muted);
}

.service-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.service-tags li {
	padding: 5px 11px;
	border: 1px solid var(--line);
	color: var(--muted);
	font-family: var(--mono);
	font-size: 0.68rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: border-color 200ms ease, color 200ms ease;
}

.service-row:hover .service-tags li {
	border-color: rgba(244, 196, 48, 0.4);
	color: var(--ivory-dim);
}

/* ---------- method / countdown ---------- */

.method {
	border-top: 1px solid var(--line-soft);
	background:
		radial-gradient(800px 500px at 88% 8%, rgba(244, 196, 48, 0.06), transparent 60%),
		var(--bg-raise);
}

.timeline {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.timeline::before {
	content: "";
	position: absolute;
	top: 10px;
	bottom: 10px;
	left: 47px;
	width: 1px;
	background: linear-gradient(var(--line) 0%, var(--gold-deep) 85%, var(--gold) 100%);
}

.phase {
	position: relative;
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: clamp(22px, 4vw, 60px);
	padding-block: clamp(30px, 4vw, 46px);
}

.phase + .phase {
	border-top: 1px solid var(--line-soft);
}

.phase-mark {
	position: relative;
	z-index: 1;
	justify-self: start;
	align-self: start;
	padding: 9px 13px;
	background: var(--bg-raise);
	border: 1px solid var(--line);
	color: var(--ivory);
	font-family: var(--mono);
	font-size: 0.86rem;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.phase-zero .phase-mark {
	background: var(--gold);
	border-color: var(--gold);
	color: var(--bg);
	box-shadow: 0 0 44px rgba(244, 196, 48, 0.35);
}

.phase-body h3 {
	font-family: var(--serif);
	font-size: clamp(1.6rem, 2.6vw, 2.2rem);
	font-weight: 400;
}

.phase-len {
	color: var(--muted);
	font-family: var(--mono);
	font-size: 0.78rem;
	font-style: normal;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.phase-body p {
	max-width: 64ch;
	margin-top: 12px;
	color: var(--muted);
}

.phase-deliverable {
	color: var(--ivory-dim);
	font-family: var(--mono);
	font-size: 0.76rem;
	letter-spacing: 0.04em;
}

.phase-deliverable::before {
	content: "→ ";
	color: var(--gold);
}

/* ---------- standards ---------- */

.standards {
	border-top: 1px solid var(--line-soft);
}

.standards-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: start;
}

.standards-intro {
	position: sticky;
	top: 110px;
}

.standards-list {
	border-top: 1px solid var(--line);
}

.standard {
	padding: clamp(24px, 3vw, 34px) 0;
	border-bottom: 1px solid var(--line);
}

.standard dt {
	position: relative;
	padding-left: 34px;
	color: var(--ivory);
	font-family: var(--serif);
	font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.standard dt::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0.12em;
	color: var(--gold);
	font-family: var(--mono);
	font-size: 0.95rem;
}

.standard dd {
	margin-top: 10px;
	padding-left: 34px;
	max-width: 58ch;
	color: var(--muted);
	font-size: 0.99rem;
}

/* ---------- cta ---------- */

.cta {
	position: relative;
	overflow: hidden;
	border-top: 1px solid var(--line-soft);
	background:
		radial-gradient(1000px 600px at 50% 130%, rgba(244, 196, 48, 0.16), transparent 65%),
		var(--bg);
	text-align: center;
}

.cta-layout {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.cta h2 {
	max-width: 16ch;
	font-size: clamp(2.8rem, 6.4vw, 5.6rem);
}

.cta-text {
	max-width: 52ch;
	margin-top: 28px;
	font-size: 1.12rem;
}

.cta-actions {
	flex-direction: column;
	gap: 18px;
	margin-top: 42px;
}

.cta-note {
	color: var(--muted);
	font-family: var(--mono);
	font-size: 0.74rem;
	letter-spacing: 0.05em;
}

/* ---------- footer ---------- */

.site-footer {
	border-top: 1px solid var(--line);
	background: var(--bg-raise);
}

.footer-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr);
	gap: clamp(28px, 5vw, 70px);
	align-items: start;
	padding-block: clamp(44px, 6vw, 64px);
}

.footer-tagline {
	margin-top: 12px;
	max-width: 30ch;
	color: var(--muted);
	font-size: 0.92rem;
}

.footer-nav {
	display: grid;
	gap: 10px;
}

.footer-nav a {
	color: var(--ivory-dim);
	font-family: var(--mono);
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 160ms ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
	color: var(--gold);
	outline: none;
}

.footer-meta {
	justify-self: end;
	text-align: right;
}

.footer-meta p {
	color: var(--muted);
	font-size: 0.88rem;
}

.footer-fine {
	margin-top: 12px;
	max-width: 34ch;
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.03em;
	line-height: 1.8;
}

/* ---------- contact ---------- */

.contact {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(900px 540px at 10% -12%, var(--gold-glow), transparent 62%),
		var(--bg);
	min-height: calc(100vh - 72px);
}

.contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: start;
}

.contact-title {
	font-size: clamp(2.8rem, 5.6vw, 4.8rem);
}

.protocol {
	margin-top: clamp(36px, 5vw, 56px);
	border-top: 1px solid var(--line);
}

.protocol-step {
	display: grid;
	grid-template-columns: 86px minmax(0, 1fr);
	gap: 18px;
	align-items: baseline;
	padding-block: 20px;
	border-bottom: 1px solid var(--line);
}

.protocol-step dt {
	color: var(--gold);
	font-family: var(--mono);
	font-size: 0.84rem;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.protocol-step dd {
	color: var(--muted);
	font-size: 0.96rem;
}

.contact-form {
	display: grid;
	gap: 22px;
	padding: clamp(26px, 3.4vw, 42px);
	border: 1px solid var(--line);
	background:
		repeating-linear-gradient(0deg, rgba(242, 237, 227, 0.014) 0 1px, transparent 1px 3px),
		var(--bg-panel);
	box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}

.form-field {
	display: grid;
	gap: 9px;
}

.form-field label {
	color: var(--ivory-dim);
	font-family: var(--mono);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.label-optional {
	color: var(--muted);
	letter-spacing: 0.1em;
}

.form-field input,
.form-field textarea {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid var(--line);
	border-radius: 0;
	background: var(--bg);
	color: var(--ivory);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.5;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

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

.form-field input:focus,
.form-field textarea:focus {
	border-color: var(--gold);
	box-shadow: 0 0 0 1px var(--gold);
	outline: none;
}

.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-submit {
	justify-self: start;
}

.form-fine {
	color: var(--muted);
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	line-height: 1.8;
}

.form-error {
	display: none;
	padding: 14px 16px;
	border: 1px solid var(--gold);
	background: rgba(244, 196, 48, 0.08);
}

.form-error:target {
	display: block;
}

.form-error p {
	color: var(--ivory-dim);
	font-size: 0.92rem;
}

.form-error strong {
	color: var(--gold);
}

/* ---------- thanks ---------- */

.thanks {
	min-height: calc(100vh - 72px);
	display: grid;
	align-items: center;
	background:
		radial-gradient(1000px 600px at 50% 130%, rgba(244, 196, 48, 0.16), transparent 65%),
		var(--bg);
	text-align: center;
}

.thanks-title {
	max-width: 18ch;
	font-size: clamp(2.6rem, 6vw, 5rem);
}

/* ---------- scroll reveals (progressive enhancement) ---------- */

@supports (animation-timeline: view()) {
	.section-reveal {
		animation: rise 1ms var(--ease-out) both;
		animation-timeline: view();
		animation-range: entry 0% entry 32%;
	}
}

/* ---------- responsive ---------- */

@media (max-width: 1060px) {
	.hero-layout {
		grid-template-columns: 1fr;
		padding-block: clamp(60px, 9vw, 96px);
	}

	.hero-visual {
		max-width: 620px;
	}

	.standards-layout,
	.contact-layout {
		grid-template-columns: 1fr;
	}

	.standards-intro {
		position: static;
	}

	.service-row {
		grid-template-columns: 60px minmax(0, 1fr);
	}

	.service-tags {
		grid-column: 2;
		justify-content: flex-start;
	}
}

@media (max-width: 880px) {
	html {
		scroll-padding-top: 130px;
	}

	.header-layout {
		flex-wrap: wrap;
		justify-content: space-between;
		gap: 4px 16px;
		padding-block: 12px;
	}

	.primary-nav {
		order: 3;
		width: 100%;
		flex-wrap: wrap;
		gap: 4px 18px;
	}

	.stats-layout {
		grid-template-columns: repeat(2, 1fr);
	}

	.stat {
		border-top: 1px solid var(--line-soft);
	}

	.stat:nth-child(even) {
		border-right: 1px solid var(--line-soft);
	}

	.shift-grid {
		grid-template-columns: 1fr;
	}

	.footer-layout {
		grid-template-columns: 1fr;
	}

	.footer-meta {
		justify-self: start;
		text-align: left;
	}
}

@media (max-width: 600px) {
	body {
		font-size: 15.5px;
	}

	h1 {
		font-size: clamp(2.5rem, 11vw, 3.2rem);
	}

	.hero-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.button {
		width: 100%;
	}

	.button-small {
		width: auto;
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.form-submit {
		justify-self: stretch;
	}

	.console-body {
		font-size: 0.68rem;
		padding: 16px 14px 12px;
	}

	.cl .t {
		display: none;
	}

	.stats-layout {
		grid-template-columns: 1fr;
	}

	.stat {
		border-right: 1px solid var(--line-soft);
	}

	.timeline::before {
		left: 0;
		display: none;
	}

	.phase {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.service-row {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.service-num {
		padding-top: 0;
	}
}

/* ---------- reduced motion ---------- */

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

	.reveal,
	.cl,
	.section-reveal {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}

	.marquee-track,
	.console-clock,
	.cursor,
	.typed,
	.digit::before {
		animation: none !important;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
	}
}

/* ---------- print ---------- */

@media print {
	.site-header,
	.skip-link,
	.hero-actions,
	.marquee,
	.hero-visual {
		display: none;
	}

	.reveal,
	.section-reveal,
	.cl {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}

	body,
	.hero,
	.stats,
	.services,
	.method,
	.standards,
	.cta,
	.site-footer {
		background: #fff;
		color: #000;
	}

	h1,
	h2,
	h3,
	.standard dt,
	.phase-mark {
		color: #000;
	}

	.section,
	.hero-layout {
		padding-block: 24px;
	}
}
