@font-face {
	font-family: "Inter";
	src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--ink: #0b1220;
	--ink-2: #141d30;
	--paper: #f5f4f0;
	--paper-2: #ecebe5;
	--on-ink: #eef0f3;
	--muted-ink: #9aa3b2;
	--rule-ink: rgba(238, 240, 243, 0.14);
	--rule-ink-strong: rgba(238, 240, 243, 0.34);
	--copper: #dd7a45;
	--copper-hover: #e8906a;
	--copper-deep: #90381c;

	--text: var(--ink);
	--muted: #4b5364;
	--rule: rgba(11, 18, 32, 0.12);
	--rule-strong: rgba(11, 18, 32, 0.3);
	--accent-text: var(--copper-deep);
	--grid-line: rgba(11, 18, 32, 0.055);

	--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--content-max: 1200px;
	--gutter: clamp(1.25rem, 5vw, 3rem);
	--header-h: 68px;
	--space-section: clamp(4.5rem, 2.5rem + 7vw, 9rem);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 900px) {
	:root {
		--header-h: 76px;
	}
}

/* Dark bands re-map the semantic tokens so components adapt without extra rules */
.theme-ink {
	--text: var(--on-ink);
	--muted: var(--muted-ink);
	--rule: var(--rule-ink);
	--rule-strong: var(--rule-ink-strong);
	--accent-text: var(--copper);
	background: var(--ink);
	color: var(--text);
}

/* ---------- Base ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-feature-settings: "cv11", "ss03";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

img {
	height: auto;
}

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

h1,
h2,
h3 {
	font-weight: 650;
	color: var(--text);
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

a {
	color: inherit;
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}

address {
	font-style: normal;
}

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

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

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: var(--gutter);
	top: 0.75rem;
	z-index: 100;
	padding: 0.6rem 1rem;
	background: var(--ink);
	color: var(--paper);
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

main:focus {
	outline: none;
}

/* ---------- Layout ---------- */

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

.section {
	padding-block: var(--space-section);
}

.section--alt {
	background: var(--paper-2);
}

/* ---------- Type ---------- */

.display {
	font-size: clamp(2.625rem, 1.35rem + 4.2vw, 4.5rem);
	line-height: 1.02;
	letter-spacing: -0.035em;
}

.title {
	font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);
	line-height: 1.06;
	letter-spacing: -0.03em;
}

.lead {
	font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
	line-height: 1.55;
	color: var(--muted);
	max-width: 38rem;
}

.label {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	font: 500 0.75rem/1.2 var(--font-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent-text);
}

.label::before {
	content: "";
	width: 1.75rem;
	height: 1px;
	background: currentColor;
}

/* ---------- Buttons ---------- */

.button {
	--btn-bg: var(--ink);
	--btn-fg: var(--paper);
	--btn-border: var(--ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 48px;
	padding: 0.8rem 1.35rem;
	border: 1px solid var(--btn-border);
	border-radius: 2px;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font: 600 0.9375rem/1.2 var(--font-sans);
	letter-spacing: 0.005em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
	--btn-bg: var(--ink-2);
	--btn-border: var(--ink-2);
}

.button--accent {
	--btn-bg: var(--copper);
	--btn-fg: var(--ink);
	--btn-border: var(--copper);
}

.button--accent:hover {
	--btn-bg: var(--copper-hover);
	--btn-border: var(--copper-hover);
}

.button--ghost {
	--btn-bg: transparent;
	--btn-fg: var(--text);
	--btn-border: var(--rule-strong);
}

.button--ghost:hover {
	--btn-bg: transparent;
	--btn-border: var(--text);
}

.button--small {
	min-height: 40px;
	padding: 0.55rem 1rem;
	font-size: 0.875rem;
}

.button .arrow {
	transition: transform 0.2s var(--ease);
}

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

/* ---------- Header & navigation ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.site-header.is-scrolled,
.nav-open .site-header {
	border-bottom-color: var(--rule);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	flex-shrink: 0;
}

.brand img {
	width: auto;
	height: 30px;
}

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a:not(.button) {
	display: inline-block;
	padding-block: 0.5rem;
	color: var(--text);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.35rem) / 0 1px no-repeat;
	transition: background-size 0.25s var(--ease);
}

.site-nav a:not(.button):hover,
.site-nav a[aria-current]:not(.button) {
	background-size: 100% 1px;
}

.nav-toggle {
	display: none;
}

@media (min-width: 900px) {
	.brand img {
		height: 34px;
	}

	.site-nav {
		display: flex;
		align-items: center;
		gap: 2.25rem;
	}
}

@media (max-width: 899.98px) {
	.no-js .header-inner {
		flex-wrap: wrap;
		padding-block: 0.9rem;
	}

	.no-js .site-nav {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 0.75rem 1.5rem;
		width: 100%;
	}

	.js .nav-toggle {
		display: inline-flex;
		align-items: center;
		gap: 0.65rem;
		min-height: 44px;
		padding: 0.55rem 0.85rem;
		border: 1px solid var(--rule-strong);
		border-radius: 2px;
		background: none;
		color: var(--text);
		font: 500 0.75rem/1 var(--font-mono);
		letter-spacing: 0.12em;
		text-transform: uppercase;
		cursor: pointer;
	}

	.js .site-nav {
		position: fixed;
		inset: var(--header-h) 0 0 0;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		gap: 2rem;
		padding: 1rem var(--gutter) 2.5rem;
		overflow-y: auto;
		background: var(--paper);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
	}

	.js.nav-open .site-nav {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 0.2s ease, transform 0.2s ease;
	}

	.js .site-nav ul {
		flex-direction: column;
		gap: 0;
	}

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

	.js .site-nav a:not(.button) {
		display: block;
		padding-block: 1.1rem;
		font-size: 1.75rem;
		font-weight: 600;
		letter-spacing: -0.02em;
		background: none;
	}

	.js .site-nav a[aria-current]:not(.button) {
		color: var(--accent-text);
	}

	.js .site-nav .button {
		width: 100%;
	}

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

.nav-toggle-icon {
	position: relative;
	width: 16px;
	height: 10px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 1.5px;
	background: currentColor;
	transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}

.nav-toggle-icon::before {
	top: 1px;
}

.nav-toggle-icon::after {
	top: 7.5px;
}

.nav-open .nav-toggle-icon::before {
	top: 4.25px;
	transform: rotate(45deg);
}

.nav-open .nav-toggle-icon::after {
	top: 4.25px;
	transform: rotate(-45deg);
}

/* ---------- Hero ---------- */

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

.hero::before {
	content: "";
	position: absolute;
	top: 50%;
	left: max(-22rem, -30vw);
	width: min(1000px, 120vw);
	aspect-ratio: 1;
	transform: translateY(-50%);
	background: url("/assets/img/hero-motif.svg") center / contain no-repeat;
	opacity: 0.07;
	pointer-events: none;
}

.hero-grid,
.hero > .container {
	position: relative;
}

.hero-grid {
	display: grid;
	grid-template-columns: [full-start] var(--gutter) [content-start] minmax(0, 1fr) [content-end] var(--gutter) [full-end];
}

.hero-copy {
	grid-column: content;
	padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(2.5rem, 1.5rem + 4vw, 4rem);
}

.hero-copy .display {
	margin-bottom: 1.5rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2.5rem;
}

.hero-media {
	position: relative;
	grid-column: full;
	aspect-ratio: 5 / 4;
	background: var(--ink-2);
}

.hero-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 64% 50%;
}

.hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, var(--ink) 0%, rgba(11, 18, 32, 0) 28%);
	pointer-events: none;
}

.hero-facts {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--rule);
}

.hero-facts li {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding-block: 1.1rem;
	border-bottom: 1px solid var(--rule);
	font-size: 0.9375rem;
}

.hero-facts li:last-child {
	border-bottom: 0;
}

.fact-label {
	font: 500 0.6875rem/1.2 var(--font-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.hero-facts a {
	text-decoration: none;
}

.hero-facts a:hover {
	color: var(--copper);
}

@media (min-width: 960px) {
	.hero-grid {
		grid-template-columns:
			[full-start] max(var(--gutter), (100% - var(--content-max)) / 2)
			[content-start] minmax(0, 7fr)
			[mid] minmax(0, 5fr)
			[content-end] max(var(--gutter), (100% - var(--content-max)) / 2)
			[full-end];
		min-height: min(80vh, 720px);
	}

	.hero-copy {
		grid-column: content-start / mid;
		align-self: center;
		padding-inline-end: clamp(2rem, 4vw, 4.5rem);
	}

	.hero-media {
		grid-column: mid / full-end;
		aspect-ratio: auto;
	}

	.hero-media img {
		object-position: 42% 50%;
	}

	.hero-media::after {
		background: linear-gradient(to right, var(--ink) 0%, rgba(11, 18, 32, 0) 32%);
	}

	.hero-facts {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
	}

	.hero-facts li {
		padding: 1.35rem 1.5rem;
		border-bottom: 0;
		border-left: 1px solid var(--rule);
	}

	.hero-facts li:first-child {
		padding-left: 0;
		border-left: 0;
	}
}

/* ---------- About ---------- */

.split {
	display: grid;
	gap: 3.5rem;
	align-items: center;
}

.split-copy .title {
	margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
	.split {
		grid-template-columns: 6fr 5fr;
		gap: 5rem;
	}
}

.drawing-figure {
	color: var(--text);
}

.drawing {
	width: 100%;
	max-width: 520px;
	height: auto;
	margin-inline: auto;
}

.drawing .d-line,
.drawing .d-thin,
.drawing .d-slot rect {
	fill: none;
	stroke: currentColor;
	vector-effect: non-scaling-stroke;
}

.drawing .d-line {
	stroke-width: 1.25;
}

.drawing .d-thin {
	stroke-width: 1;
	stroke-opacity: 0.35;
}

.drawing .d-slot rect {
	stroke-width: 1;
}

.drawing .d-slot .d-slot-cu {
	fill: var(--copper-deep);
	stroke: var(--copper-deep);
}

.drawing .d-cl {
	stroke: var(--copper-deep);
	stroke-opacity: 0.55;
	stroke-width: 1;
	stroke-dasharray: 18 5 3 5;
	vector-effect: non-scaling-stroke;
}

.drawing-figure figcaption {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	max-width: 520px;
	margin: 1.75rem auto 0;
	padding-top: 0.9rem;
	border-top: 1px solid var(--rule);
	font: 500 0.6875rem/1.4 var(--font-mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ---------- Capabilities ---------- */

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

.stages {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--rule-strong);
}

.stage {
	position: relative;
	display: grid;
	grid-template-columns: 3.5rem minmax(0, 1fr);
	column-gap: 1rem;
	padding-block: 2rem;
	border-bottom: 1px solid var(--rule);
}

.stage-index {
	grid-row: span 2;
	padding-top: 0.4rem;
	font: 500 0.8125rem/1 var(--font-mono);
	letter-spacing: 0.08em;
	color: var(--accent-text);
}

.stage h3 {
	margin-bottom: 0.6rem;
	font-size: 1.3125rem;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.stage p {
	max-width: 34ch;
	color: var(--muted);
}

@media (min-width: 900px) {
	.stages {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 2.5rem;
	}

	.stage {
		display: block;
		padding: 2rem 0 0;
		border-bottom: 0;
	}

	.stage::before {
		content: "";
		position: absolute;
		top: -4px;
		left: 0;
		width: 7px;
		height: 7px;
		background: var(--copper-deep);
	}

	.stage-index {
		display: block;
		margin-bottom: 2.5rem;
		padding-top: 0;
	}
}

/* ---------- Approach ---------- */

.approach {
	display: grid;
	gap: 1rem;
	align-items: start;
}

.statement {
	font-size: clamp(1.625rem, 1rem + 2.3vw, 2.75rem);
	font-weight: 500;
	line-height: 1.24;
	letter-spacing: -0.022em;
	color: var(--text);
	text-wrap: balance;
}

.statement em {
	font-style: normal;
	color: var(--accent-text);
}

@media (min-width: 900px) {
	.approach {
		grid-template-columns: 3fr 9fr;
		gap: 4rem;
	}

	.approach .label {
		margin-top: 0.8rem;
	}
}

/* ---------- Contact ---------- */

.contact {
	display: grid;
	gap: 3rem;
}

.contact-intro .title {
	margin-bottom: 1.25rem;
}

.contact-email {
	display: inline-block;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid var(--rule-strong);
	color: var(--text);
	font-size: clamp(1.375rem, 0.9rem + 2.6vw, 2.75rem);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.15;
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-email:hover {
	color: var(--copper);
	border-color: var(--copper);
}

.contact-email-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
}

.copy-email {
	min-width: 5.5rem;
	min-height: 40px;
	padding: 0.5rem 0.85rem;
	border: 1px solid var(--rule-strong);
	border-radius: 2px;
	background: none;
	color: var(--text);
	font: 500 0.75rem/1 var(--font-mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.copy-email:hover {
	border-color: var(--text);
}

.copy-email[hidden] {
	display: none;
}

.contact-address {
	margin-top: 2.25rem;
}

.contact-address address {
	margin-top: 0.5rem;
	color: var(--text);
	line-height: 1.55;
}

.contact-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2.5rem;
}

@media (min-width: 900px) {
	.contact {
		grid-template-columns: 5fr 7fr;
		gap: 5rem;
		align-items: end;
	}
}

/* ---------- Footer ---------- */

.site-footer {
	padding-block: 4rem 2rem;
	border-top: 1px solid var(--rule);
	font-size: 0.9375rem;
}

.footer-grid {
	display: grid;
	gap: 2.5rem;
}

.footer-brand img {
	width: auto;
	height: 34px;
	margin-bottom: 1.1rem;
}

.footer-brand p {
	max-width: 22rem;
	color: var(--muted);
}

.footer-heading {
	margin: 0 0 1rem;
	font: 500 0.6875rem/1.2 var(--font-mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.footer-links {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-links a,
.footer-contact a {
	text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
	color: var(--accent-text);
	text-decoration: underline;
}

.footer-contact address {
	margin-bottom: 0.75rem;
	line-height: 1.55;
}

.footer-base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin-top: 3.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--rule);
	color: var(--muted);
	font-size: 0.8125rem;
}

@media (min-width: 900px) {
	.footer-grid {
		grid-template-columns: 5fr 3fr 4fr;
		gap: 3rem;
	}
}

/* ---------- 404 ---------- */

.notfound {
	min-height: calc(70vh - var(--header-h));
	display: flex;
	align-items: center;
}

.notfound .display {
	margin-bottom: 1.25rem;
}

.notfound .lead {
	margin-bottom: 2.5rem;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}

	.can-reveal [data-reveal] {
		opacity: 0;
		transform: translateY(14px);
		transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
	}

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

	.can-reveal .stage:nth-child(2) {
		transition-delay: 0.08s;
	}

	.can-reveal .stage:nth-child(3) {
		transition-delay: 0.16s;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
