/* ==========================================================================
   Renovatio Ingenieure – design option B: "technical drawing"
   Paper-white ground, ink type, steel-blue accent from the logo, hairline grid,
   dimension-line details and monospaced annotations.
   ========================================================================== */

:root {
	--paper: #f3f2ee;
	--paper-2: #eae8e2;
	--surface: #fbfaf7;
	--ink: #15171a;
	--ink-2: #3d4148;
	--muted: #6c7078;
	--line: rgba(21, 23, 26, .12);
	--line-strong: rgba(21, 23, 26, .28);
	--accent: #3552e3;
	--accent-ink: #2340c7;
	--dark: #121417;
	--dark-2: #1b1e22;
	--on-dark: #eceae4;
	--on-dark-muted: rgba(236, 234, 228, .62);

	--font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

	--wrap: 1320px;
	--gutter: clamp(20px, 4.5vw, 64px);
	--section: clamp(88px, 11vw, 168px);
	--radius: 2px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	font-variation-settings: "wdth" 100;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; font-variation-settings: "wdth" 88; text-wrap: balance; }
h2 { font-size: clamp(32px, 2.4vw + 20px, 60px); }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--accent); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }

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

/* ------------------------------------------------------------------ Labels & buttons */

.label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}
.label::before {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
	opacity: .6;
}
.label-num { color: var(--accent); }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 26px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .01em;
	text-decoration: none;
	cursor: pointer;
	transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--accent); }
.btn-line { border-color: var(--line-strong); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* ------------------------------------------------------------------ Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(243, 242, 238, .86);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 80px; }
.brand img { width: auto; height: 38px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a {
	position: relative;
	display: block;
	padding: 10px 14px;
	font-size: 15px;
	text-decoration: none;
	color: var(--ink-2);
	transition: color .2s;
}
.nav a::after {
	content: "";
	position: absolute;
	left: 14px; right: 14px; bottom: 4px;
	height: 1px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav-contact { display: none; }

.header-tools { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: var(--radius); }
.lang button {
	padding: 6px 10px;
	border: 0;
	background: none;
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: .06em;
	color: var(--muted);
	cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-icon, .menu-icon::before, .menu-icon::after {
	position: absolute; left: 10px; width: 24px; height: 1.5px; background: var(--ink);
	transition: transform .3s var(--ease), opacity .2s;
}
.menu-icon { top: 21px; }
.menu-icon::before { content: ""; left: 0; top: -7px; }
.menu-icon::after { content: ""; left: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
	.header-inner { min-height: 68px; gap: 16px; }
	.brand img { height: 32px; }
	.menu-toggle { display: block; }
	.header-cta { display: none; }
	.nav {
		position: fixed;
		inset: 68px 0 auto 0;
		margin: 0;
		padding: 8px var(--gutter) 28px;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity .25s, transform .3s var(--ease), visibility .25s;
	}
	.nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.nav ul { flex-direction: column; gap: 0; }
	.nav li { border-bottom: 1px solid var(--line); }
	.nav a { padding: 16px 0; font-size: 20px; color: var(--ink); }
	.nav a::after { display: none; }
	.nav-contact { display: block; }
}

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

.hero {
	position: relative;
	padding: clamp(48px, 6vw, 96px) 0 0;
	background-image:
		linear-gradient(var(--line) 1px, transparent 1px),
		linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 48px 48px;
	background-position: -1px -1px;
}
.hero::after {
	/* fade the drawing grid out towards the bottom */
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(243, 242, 238, .35) 0%, rgba(243, 242, 238, .7) 55%, var(--paper) 100%);
	pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 88px);
	align-items: end;
}
.hero-title {
	font-size: clamp(42px, 4.4vw + 14px, 92px);
	line-height: .98;
	letter-spacing: -.035em;
	font-weight: 600;
	font-variation-settings: "wdth" 78;
	margin-bottom: 28px;
}
.hero-lead { max-width: 34rem; font-size: clamp(17px, .5vw + 14px, 20px); color: var(--ink-2); margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-copy { padding-bottom: clamp(8px, 2vw, 32px); }

.hero-figure { margin: 0; }
.hero-img-wrap { position: relative; padding: 0 0 0 28px; }
.hero-img-wrap img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 62% 50%; }
/* dimension lines around the photo */
.dim { position: absolute; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.dim-v { left: 6px; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.dim-v::before, .dim-v::after { content: ""; position: absolute; left: -5px; width: 11px; height: 1px; background: var(--ink); }
.dim-v::before { top: 0; } .dim-v::after { bottom: 0; }
.dim-v span { position: absolute; top: 50%; left: -4px; transform: translateY(-50%); background: var(--paper); padding: 4px 0; }
.dim-h { left: 28px; right: 0; bottom: -18px; height: 1px; background: var(--line-strong); }
.dim-h::before, .dim-h::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: var(--ink); }
.dim-h::before { left: 0; } .dim-h::after { right: 0; }
.dim-h span { position: absolute; left: 50%; top: -8px; transform: translateX(-50%); background: var(--paper); padding: 0 6px; }
.crosshair { position: absolute; width: 18px; height: 18px; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: #fff; }
.crosshair::before { left: 8px; top: 0; width: 1.5px; height: 18px; }
.crosshair::after { top: 8px; left: 0; height: 1.5px; width: 18px; }
.ch-1 { top: 18px; right: 18px; }
.ch-2 { bottom: 18px; left: 46px; }
.caption { display: flex; gap: 12px; margin-top: 30px; padding-left: 28px; font-size: 13px; color: var(--muted); }
.caption .mono { color: var(--ink); font-size: 11px; letter-spacing: .06em; padding-top: 2px; }

.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin: clamp(56px, 7vw, 104px) 0 0;
	border-top: 1px solid var(--ink);
}
.stats > div { padding: 22px 20px 26px 0; border-right: 1px solid var(--line); }
.stats > div + div { padding-left: 24px; }
.stats > div:last-child { border-right: 0; }
.stat-num { font-size: clamp(26px, 1.6vw + 16px, 40px); font-weight: 600; letter-spacing: -.02em; font-variation-settings: "wdth" 80; line-height: 1.1; }
.stats dd { margin: 6px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-img-wrap img { aspect-ratio: 4 / 3; }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.stats > div:nth-child(2) { border-right: 0; }
	.stats > div:nth-child(3) { padding-left: 0; }
	.stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ------------------------------------------------------------------ Sections */

.section { padding: var(--section) 0; }
.section-head { max-width: 58rem; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head h2 { margin-bottom: 24px; }
.section-lead { max-width: 40rem; font-size: 18px; color: var(--ink-2); }
.section-head-split { max-width: none; display: grid; grid-template-columns: 1fr minmax(0, 28rem); gap: 32px; align-items: end; }
.section-head-split .section-lead { margin: 0; }
@media (max-width: 900px) { .section-head-split { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Services */

.services { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.services-visual { position: sticky; top: 112px; }
.services-frame { position: relative; overflow: hidden; background: var(--paper-2); }
.services-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: opacity .35s ease, transform 1.2s var(--ease); }
.services-frame img.is-swapping { opacity: 0; transform: scale(1.03); }
.services-counter { position: absolute; left: 16px; bottom: 14px; padding: 6px 10px; background: var(--ink); color: #fff; font-size: 12px; letter-spacing: .06em; }

.service-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); counter-reset: svc; }
.service { border-bottom: 1px solid var(--line); counter-increment: svc; }
.service-btn {
	display: grid;
	grid-template-columns: 56px 1fr 32px;
	align-items: center;
	width: 100%;
	padding: 26px 0;
	border: 0;
	background: none;
	text-align: left;
	cursor: pointer;
}
.service-btn::before {
	content: counter(svc, decimal-leading-zero);
	font-family: var(--mono);
	font-size: 13px;
	color: var(--muted);
	transition: color .2s;
}
.service-name { font-size: clamp(22px, 1vw + 16px, 30px); font-weight: 500; letter-spacing: -.015em; font-variation-settings: "wdth" 90; transition: transform .35s var(--ease), color .2s; }
.service-plus { position: relative; width: 16px; height: 16px; justify-self: end; }
.service-plus::before, .service-plus::after { content: ""; position: absolute; background: var(--ink); transition: transform .35s var(--ease); }
.service-plus::before { left: 0; top: 7.5px; width: 16px; height: 1.5px; }
.service-plus::after { left: 7.5px; top: 0; width: 1.5px; height: 16px; }
.service-btn:hover .service-name, .service.is-active .service-name { transform: translateX(6px); }
.service.is-active .service-btn::before, .service-btn:hover::before { color: var(--accent); }
.service.is-open .service-plus::after { transform: scaleY(0); }
.service-panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .45s var(--ease);
}
.service.is-open .service-panel { grid-template-rows: 1fr; }
.service-panel > div { overflow: hidden; }
.service-content { padding: 0 0 30px 56px; }
.service-content p { color: var(--ink-2); max-width: 36rem; }
.service-includes { margin: 18px 0 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.service-items { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; padding: 0; list-style: none; }
.service-items li { position: relative; padding: 9px 0 9px 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.service-items li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 1.5px; background: var(--accent); }
.service-thumb { display: none; }

@media (max-width: 900px) {
	.services-grid { grid-template-columns: 1fr; }
	.services-visual { display: none; }
	.service-btn { grid-template-columns: 40px 1fr 24px; padding: 22px 0; }
	.service-content { padding-left: 0; }
	.service-thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 18px; }
	.service-items { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ Process (dark, drawing-sheet style) */

.process {
	background: var(--dark);
	color: var(--on-dark);
	background-image:
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 48px 48px;
}
.process .label { color: var(--on-dark-muted); }
.section-head-row { display: flex; flex-direction: column; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 0 28px 0 0; counter-increment: step; }
.step-mark { position: relative; display: flex; align-items: center; height: 40px; margin-bottom: 30px; }
.step-mark::before {
	content: counter(step, decimal-leading-zero);
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--on-dark);
	border-radius: 50%;
	background: var(--dark);
	font-family: var(--mono);
	font-size: 12px;
}
.step-mark::after { content: ""; position: absolute; left: 40px; right: 0; top: 50%; height: 1px; background: rgba(236, 234, 228, .25); }
.step:last-child .step-mark::after { right: auto; width: 32px; }
.step h3 { font-size: clamp(22px, .8vw + 17px, 28px); margin-bottom: 14px; }
.step p { color: var(--on-dark-muted); font-size: 15px; }
.step.is-in .step-mark::before { border-color: var(--accent); background: var(--accent); color: #fff; transition: background .4s, border-color .4s; }
@media (max-width: 900px) {
	.steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
}
@media (max-width: 560px) {
	.steps { grid-template-columns: 1fr; row-gap: 36px; }
	.step-mark::after { display: none; }
}

/* ------------------------------------------------------------------ Parametric band */

.param { position: relative; min-height: clamp(520px, 70vh, 760px); display: flex; align-items: center; overflow: hidden; background: var(--dark); }
.param-media { position: absolute; inset: 0; }
.param-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); }
.param-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 20, 23, .15), rgba(18, 20, 23, .55)); }
.param-inner { position: relative; display: flex; justify-content: flex-end; padding-top: 80px; padding-bottom: 80px; }
.param-card { max-width: 34rem; padding: clamp(28px, 4vw, 52px); background: var(--surface); }
.param-card h2 { font-size: clamp(26px, 1.4vw + 18px, 40px); margin-bottom: 20px; }
.param-card p { color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }

/* ------------------------------------------------------------------ Projects */

.project-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: clamp(20px, 2.4vw, 36px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.project { grid-column: span 4; }
.project:nth-child(1) { grid-column: span 7; }
.project:nth-child(2) { grid-column: span 5; }
.project-btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.project-media { position: relative; overflow: hidden; background: var(--paper-2); }
.project-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.project:nth-child(1) .project-media img { aspect-ratio: 16 / 10.2; }
.project:nth-child(2) .project-media img { aspect-ratio: 4 / 4.08; }
.project-view {
	position: absolute; right: 16px; bottom: 16px;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 14px; background: var(--surface); color: var(--ink);
	font-size: 13px; font-weight: 500;
	opacity: 0; transform: translateY(8px);
	transition: opacity .3s, transform .4s var(--ease);
}
.project-btn:hover .project-media img, .project-btn:focus-visible .project-media img { transform: scale(1.04); }
.project-btn:hover .project-view, .project-btn:focus-visible .project-view { opacity: 1; transform: none; }
.project-meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--ink); margin-top: 18px; }
.project-num { font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 5px; }
.project-text { flex: 1; }
.project-title { display: block; font-size: clamp(21px, .8vw + 16px, 28px); font-weight: 600; letter-spacing: -.015em; font-variation-settings: "wdth" 86; line-height: 1.15; }
.project-sub { display: block; margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.project-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; padding-top: 6px; }
@media (max-width: 1024px) {
	.project, .project:nth-child(1), .project:nth-child(2) { grid-column: span 6; }
	.project:nth-child(1) { grid-column: span 12; }
}
@media (max-width: 640px) {
	.project, .project:nth-child(1), .project:nth-child(2) { grid-column: span 12; }
	.project-media img, .project:nth-child(n) .project-media img { aspect-ratio: 4 / 3; }
	.project-view { opacity: 1; transform: none; }
	.project-meta { flex-wrap: wrap; }
	.project-tag { order: -1; width: 100%; padding: 0; }
}

/* ------------------------------------------------------------------ About + partners */

.about { background: var(--surface); border-top: 1px solid var(--line); padding-bottom: 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 104px); }
.about-body p { color: var(--ink-2); font-size: 18px; }
.cred-title { margin: 40px 0 8px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.creds { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.creds li { display: grid; grid-template-columns: 40px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); }
.creds li::before { content: attr(data-n); font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 4px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.partners { margin-top: var(--section); padding: 40px 0 48px; border-top: 1px solid var(--line); }
.partners .label { margin-bottom: 28px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track img { width: auto; height: 44px; margin-right: clamp(56px, 7vw, 112px); }
.marquee-track img { width: auto; max-width: none; filter: grayscale(1); opacity: .65; transition: opacity .3s, filter .3s; }
.marquee-track img:hover { filter: none; opacity: 1; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

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

.contact { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 104px); }
.contact-intro h2 { margin-bottom: 24px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
	width: 100%;
	padding: 12px 0;
	border: 0;
	border-bottom: 1px solid var(--line-strong);
	border-radius: 0;
	background: transparent;
	font: inherit;
	color: var(--ink);
	transition: border-color .2s;
	resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #9a9ea5; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field.has-error input, .field.has-error textarea { border-bottom-color: #c0392b; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.consent.has-error span { color: #c0392b; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.form-status { margin: 0; font-size: 14px; color: var(--accent-ink); }
@media (max-width: 900px) {
	.contact-grid { grid-template-columns: 1fr; }
	.form { grid-template-columns: 1fr; }
}

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

.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: 64px 0 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-logo { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 18px; }
.footer-note { max-width: 22rem; }
.footer-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-links a, .footer-meta a { text-decoration: none; color: var(--on-dark); }
.footer-links a:hover, .footer-meta a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-meta { text-align: right; }
.footer-meta .mono { color: var(--on-dark); font-size: 12px; letter-spacing: .04em; }
@media (max-width: 720px) {
	.footer-grid { grid-template-columns: 1fr; }
	.footer-meta { text-align: left; }
}

/* ------------------------------------------------------------------ Project dialog */

.project-dialog {
	width: min(1180px, calc(100vw - 32px));
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 0;
	background: var(--surface);
	color: var(--ink);
	overflow: auto;
	overscroll-behavior: contain;
}
.project-dialog::backdrop { background: rgba(18, 20, 23, .72); backdrop-filter: blur(4px); }
.project-dialog[open] { animation: pd-in .45s var(--ease); }
@keyframes pd-in { from { opacity: 0; transform: translateY(16px); } }
.pd-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.pd-close {
	position: sticky; top: 0; z-index: 2;
	grid-column: 1 / -1; justify-self: end;
	width: 52px; height: 52px; margin-bottom: -52px;
	border: 0; background: var(--ink); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.pd-close:hover { background: var(--accent); }
.pd-gallery { display: grid; gap: 4px; align-content: start; background: var(--ink); }
.pd-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pd-body { padding: clamp(28px, 4vw, 56px); }
.pd-body h2 { font-size: clamp(30px, 1.8vw + 18px, 48px); margin-bottom: 6px; }
.pd-sub { font-size: 18px; color: var(--ink-2); }
.pd-partners { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 24px 0 32px; padding: 16px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); font-size: 15px; }
.pd-partners dt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.pd-partners dd { margin: 0; font-weight: 500; }
.pd-sections h3 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 26px 0 8px; }
.pd-sections p { color: var(--ink-2); }
@media (max-width: 860px) {
	.pd-inner { grid-template-columns: 1fr; }
	.pd-gallery { grid-auto-flow: column; grid-auto-columns: 88%; overflow-x: auto; scroll-snap-type: x mandatory; }
	.pd-gallery img { scroll-snap-align: start; }
}

/* ------------------------------------------------------------------ Reveal on scroll */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
