/* Mapleton & Reyes theme stylesheet. Mobile-first. Tokens from STYLE-GUIDE.md. */

:root {
	--evergreen: #0B2E2A;
	--moss: #1F4D44;
	--celadon: #A8CFC0;
	--ink: #121212;
	--chalk: #EEF0EC;
	--linen: #E2E6E1;
	--white: #FFFFFF;
	--graphite: #4B5350;
	--mist: #A6ADA9;
	--ochre: #B7791F;
	--danger: #9B2C2C;

	--font-display: "Newsreader", "Times New Roman", serif;
	--font-body: "Schibsted Grotesk", Arial, sans-serif;
	--font-mono: "DM Mono", "SFMono-Regular", Consolas, monospace;

	--bg: var(--chalk);
	--fg: var(--ink);
	--muted: var(--graphite);
	--rule: var(--moss);
	--accent: var(--moss);
	--logo-accent: var(--moss);

	--container: 1280px;
	--gutter: clamp(16px, 5vw, 48px);
	--section: clamp(56px, 9vw, 112px);
	--radius: 2px;

	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--dur-fast: 0.45s;
	--dur-base: 0.9s;
}

/* Dark sections flip the tokens. */
.section--dark,
.site-footer,
.hero,
.preloader,
.nav-open .nav {
	--bg: var(--evergreen);
	--fg: var(--white);
	--muted: rgba(255, 255, 255, 0.72);
	--rule: var(--celadon);
	--accent: var(--celadon);
	--logo-accent: var(--celadon);
	color: var(--fg);
	background: var(--bg);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--fg);
	background: var(--chalk);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, video, svg, iframe, picture { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ul, ol, dl, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
hr { border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 60; padding: 8px 12px; background: var(--ink); color: var(--white); }
.skip-link:focus { left: 8px; }
.mono { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.01em; }
.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; }

/* Layout primitives */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section--tight { padding-top: 0; }
.grid-2, .grid-3, .grid-4, .grid-5 { display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: 1fr; }
@media (min-width: 768px) {
	.grid-2 { grid-template-columns: repeat(2, 1fr); }
	.grid-3 { grid-template-columns: repeat(3, 1fr); }
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
	.grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
	.grid-4 { grid-template-columns: repeat(4, 1fr); }
	.grid-5 { grid-template-columns: repeat(5, 1fr); }
}

/* Type */
.h1, .h2, .h3, .h4 {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: -0.015em;
	line-height: 1.04;
	font-variation-settings: "opsz" 72;
	font-variant-numeric: lining-nums tabular-nums;
	text-wrap: balance;
}
.h1 { font-size: clamp(2.6rem, 7.2vw, 5.5rem); }
.h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 500; line-height: 1.06; }
.h2--xl { font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 400; }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; line-height: 1.15; }
.h4 { font-size: clamp(1.15rem, 1.6vw, 1.375rem); font-weight: 500; line-height: 1.25; }
.h1 em, .h2 em, .h3 em { font-style: italic; font-weight: 300; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 58ch; }
.prose { max-width: 68ch; }
.prose p + p, .prose ul + p, .prose p + ul, .prose h3, .prose h2 { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 1.5em; margin-top: 0.5em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.9em; height: 1px; background: var(--rule); }
.prose a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.prose .note { padding: 16px 20px; border-left: 2px solid var(--accent); background: var(--white); font-size: 0.95rem; }
.section--dark .prose .note { background: rgba(255,255,255,0.06); }

.eyebrow {
	display: flex; align-items: baseline; gap: 14px;
	font-family: var(--font-body); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--muted); margin-bottom: 20px;
}
.eyebrow__num { font-family: var(--font-mono); font-weight: 500; color: var(--accent); letter-spacing: 0.02em; }

/* Ledger line */
.ledger-line { height: 1px; width: 100%; background: var(--rule); opacity: 0.9; transform-origin: left center; margin: 0; }
.ledger-line--light { background: var(--celadon); opacity: 0.55; }
.ledger-line--gap { margin-block: clamp(24px, 4vw, 48px); }

/* Buttons */
.btn {
	position: relative; display: inline-flex; align-items: center; gap: 14px;
	padding: 16px 22px; border-radius: var(--radius);
	background: var(--ink); color: var(--white);
	font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; line-height: 1;
	transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
	will-change: transform;
}
.btn__arrow { font-family: var(--font-mono); transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:hover { background: var(--moss); }
.btn--light { background: var(--celadon); color: var(--ink); }
.btn--light:hover { background: var(--white); }
.btn--sm { padding: 12px 16px; font-size: 0.85rem; }
.btn--block { width: 100%; justify-content: space-between; }
.phone { font-family: var(--font-mono); font-size: 0.95rem; letter-spacing: 0.02em; position: relative; }
.phone::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-fast) var(--ease-out); }
.phone:hover::after { transform: scaleX(1); }
.phone--light { color: var(--white); }
.link { position: relative; font-weight: 600; }
.link::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-fast) var(--ease-out); }
.link:hover::after { transform: scaleX(1); }

/* Preloader and transition panel */
.preloader { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; }
.preloader__mark { width: 72px; color: var(--white); }
.preloader__mark .logo { width: 100%; height: auto; }
.preloader.is-done { display: none; }
.transition { position: fixed; inset: 0; z-index: 65; background: var(--evergreen); transform: translateY(100%); pointer-events: none; }
.no-js .preloader { display: none; }

/* Header */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50;
	height: 72px;
	transition: height var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
	color: var(--white);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
body:not(.is-home) .site-header { color: var(--ink); background: var(--chalk); border-bottom: 1px solid var(--linen); }
/* The blur lives on a pseudo-element: a filter on the header itself would turn the
   fixed-position nav overlay into a child of the header box. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: rgba(238, 240, 236, 0.92); backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px); transition: opacity var(--dur-fast) var(--ease-out); }
.is-scrolled .site-header { height: 64px; color: var(--ink); border-bottom: 1px solid var(--linen); }
.is-scrolled .site-header::before { opacity: 1; }
/* Logged-in admin bar */
.admin-bar .site-header { top: 32px; }
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } .admin-bar .nav { top: 46px; } }
/* Below 600px WordPress makes the admin bar position: absolute, so it scrolls away; the header must not keep the offset. */
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } .admin-bar .nav { top: 0; } }
.brand { display: inline-flex; align-items: center; color: inherit; --logo-accent: var(--celadon); }
body:not(.is-home) .brand, .is-scrolled .brand { --logo-accent: var(--moss); }
.brand__wordmark { display: none; }
.brand__monogram { display: block; width: 48px; }
.brand .logo { height: auto; width: 100%; }
@media (min-width: 640px) {
	.brand__wordmark { display: block; width: 190px; }
	.brand__monogram { display: none; }
}
@media (min-width: 1024px) {
	.site-header { height: 88px; }
	.is-scrolled .site-header { height: 64px; }
	.brand__wordmark { width: 210px; }
}

/* Navigation: overlay on mobile, inline on desktop */
.nav-toggle { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; z-index: 61; }
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 5px; width: 22px; }
.nav-toggle__bars i { display: block; height: 1.5px; background: currentColor; transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast); }
.nav-open .nav-toggle { color: var(--white); }
.nav-open .nav-toggle__bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-open .nav-toggle__bars i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.nav {
	position: fixed; inset: 0; z-index: 60;
	display: flex; flex-direction: column; justify-content: center; gap: 32px;
	padding: 96px var(--gutter) 40px;
	background: var(--evergreen); color: var(--white);
	transform: translateY(-100%); visibility: hidden;
	transition: transform 0.7s var(--ease-out), visibility 0s 0.7s;
	overflow: auto;
}
.nav-open .nav { transform: translateY(0); visibility: visible; transition: transform 0.7s var(--ease-out), visibility 0s; }
.nav-open { overflow: hidden; }
.nav__list { display: flex; flex-direction: column; gap: 8px; }
.nav__link { display: block; font-family: var(--font-display); font-size: clamp(2rem, 8vw, 3rem); line-height: 1.1; letter-spacing: -0.01em; padding: 6px 0; text-align: left; }
.nav__sub { display: none; padding: 8px 0 16px 0; }
.nav__item--has-sub.is-open .nav__sub { display: block; }
.nav__sublink { display: block; padding: 10px 0; border-top: 1px solid rgba(168, 207, 192, 0.25); }
.nav__subname { display: block; font-weight: 600; }
.nav__subwhen { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.68); }
.nav__actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.nav__phone { color: var(--white); font-size: 1.1rem; }
.nav__foot { font-family: var(--font-mono); font-size: 0.78rem; color: rgba(255,255,255,0.6); }
@media (min-width: 1024px) {
	.nav-toggle { display: none; }
	.nav {
		position: static; inset: auto; transform: none; visibility: visible; transition: none;
		flex-direction: row; align-items: center; justify-content: flex-end; gap: 36px;
		padding: 0; background: transparent; color: inherit; overflow: visible;
	}
	.nav__list { flex-direction: row; gap: 28px; align-items: center; }
	.nav__item { position: relative; }
	.nav__link { font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em; padding: 8px 0; position: relative; }
	.nav__link::after { content: ""; position: absolute; left: 0; bottom: 2px; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--dur-fast) var(--ease-out); }
	.nav__item:hover > .nav__link::after, .nav__item.is-open > .nav__link::after { transform: scaleX(1); }
	.nav__sub {
		display: block; position: absolute; top: calc(100% + 10px); left: -20px; width: 360px;
		padding: 10px 20px 14px; background: var(--chalk); color: var(--ink); border: 1px solid var(--linen); border-radius: var(--radius);
		opacity: 0; visibility: hidden; transform: translateY(8px);
		transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility 0s 0.45s;
		box-shadow: none;
	}
	.nav__item--has-sub:hover .nav__sub, .nav__item--has-sub.is-open .nav__sub, .nav__item--has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
	.nav__sublink { border-top: 1px solid var(--linen); }
	.nav__sub li:first-child .nav__sublink { border-top: 0; }
	.nav__subwhen { color: var(--graphite); }
	.nav__actions { gap: 20px; }
	.nav__phone { color: inherit; font-size: 0.9rem; }
	.nav__foot { display: none; }
	.nav__cta.btn { background: var(--ink); color: var(--white); }
	.is-home:not(.is-scrolled) .nav__cta.btn { background: var(--celadon); color: var(--ink); }
}

/* Hero (home and about) */
.hero { position: relative; min-height: clamp(560px, 88svh, 960px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__media, .hero__media picture, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 60% 50%; will-change: transform; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,46,42,0.28) 0%, rgba(11,46,42,0.42) 45%, rgba(11,46,42,0.86) 100%); }
.hero__inner { position: relative; z-index: 2; width: 100%; padding-top: 140px; padding-bottom: clamp(40px, 6vw, 72px); display: grid; gap: 28px; }
.hero__title { max-width: 14ch; color: var(--white); }
.hero__sub { max-width: 50ch; color: rgba(255,255,255,0.82); font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; }
.hero__or { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.hero__ledger { height: 1px; background: var(--celadon); width: 100%; transform-origin: left; }
.hero__facts { display: none; }
@media (min-width: 1024px) {
	.hero__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); align-items: end; }
	.hero__facts { display: grid; gap: 14px; justify-self: end; max-width: 300px; font-family: var(--font-mono); font-size: 0.78rem; color: rgba(255,255,255,0.78); line-height: 1.5; border-left: 1px solid rgba(168,207,192,0.5); padding-left: 20px; }
	.hero__facts strong { display: block; color: var(--white); font-weight: 500; }
	.hero__content { grid-column: 1; }
	.hero__ledger { grid-column: 1 / -1; }
}
.hero--short { min-height: clamp(460px, 64svh, 720px); }

/* Page hero for inner pages (content left, form right on conversion pages) */
.page-hero { padding-top: calc(72px + clamp(40px, 7vw, 96px)); padding-bottom: clamp(32px, 5vw, 64px); }
@media (min-width: 1024px) { .page-hero { padding-top: calc(88px + clamp(40px, 7vw, 96px)); } }
.page-hero__grid { display: grid; gap: 40px; }
.page-hero__title { max-width: 18ch; font-size: clamp(2.3rem, 4.6vw, 4rem); }
.page-hero__grid .page-hero__title { max-width: 20ch; font-size: clamp(2.1rem, 3.8vw, 3.4rem); }
.page-hero .lede { margin-top: 24px; }
@media (min-width: 1024px) {
	.page-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
	.page-hero__aside { position: sticky; top: 104px; }
}
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-bottom: 28px; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span::before { content: "/"; margin-right: 8px; color: var(--mist); }

/* Hairline tables (commitments, scopes, timelines) */
.ledger-table { width: 100%; border-collapse: collapse; }
.ledger-table th, .ledger-table td { text-align: left; vertical-align: top; padding: 18px 0; border-top: 1px solid var(--linen); }
.section--dark .ledger-table th, .section--dark .ledger-table td { border-color: rgba(168,207,192,0.3); }
.ledger-table tr:last-child td, .ledger-table tr:last-child th { border-bottom: 1px solid var(--linen); }
.section--dark .ledger-table tr:last-child td, .section--dark .ledger-table tr:last-child th { border-color: rgba(168,207,192,0.3); }
.ledger-table th { font-weight: 500; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; width: 42%; padding-right: 20px; }
.ledger-table td { color: var(--muted); }
.ledger-table .num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); width: 48px; padding-right: 12px; white-space: nowrap; }
.ledger-table thead th { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 10px 0; width: auto; }
.ledger-table--3 th { width: 30%; }
.ledger-table--grid td { width: 22%; }
@media (max-width: 767px) {
	.ledger-table--stack, .ledger-table--stack tbody, .ledger-table--stack tr, .ledger-table--stack td, .ledger-table--stack th { display: block; width: 100%; }
	.ledger-table--stack tr { padding: 14px 0; border-top: 1px solid var(--linen); }
	.ledger-table--stack td, .ledger-table--stack th { border: 0; padding: 4px 0; }
	.ledger-table--stack thead { display: none; }
	.ledger-table--stack td[data-label]::before { content: attr(data-label) ": "; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mist); }
}

/* Section header pattern: eyebrow + h2 left, lede right on desktop */
.section-head { display: grid; gap: 20px; margin-bottom: clamp(32px, 5vw, 64px); }
@media (min-width: 1024px) {
	.section-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: end; }
	.section-head .lede { justify-self: end; }
}

/* Triggers (problem) */
.triggers { display: grid; gap: 0; }
.trigger { padding: 28px 0; border-top: 1px solid rgba(168,207,192,0.3); display: grid; gap: 10px; }
.trigger:last-child { border-bottom: 1px solid rgba(168,207,192,0.3); }
.trigger__num { font-family: var(--font-mono); color: var(--celadon); font-size: 0.8rem; }
.trigger__title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.15; font-weight: 400; }
.trigger__text { color: var(--muted); max-width: 48ch; }
@media (min-width: 1024px) {
	.triggers { grid-template-columns: repeat(3, 1fr); gap: 40px; }
	.trigger { border: 0; border-top: 1px solid rgba(168,207,192,0.3); padding-top: 24px; }
	.trigger:last-child { border-bottom: 0; }
}

/* Counters */
.counters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 20px; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 1024px) { .counters { grid-template-columns: repeat(4, 1fr); } }
.counter { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--linen); }
.section--dark .counter { border-color: rgba(168,207,192,0.3); }
.counter__value { font-family: var(--font-mono); font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 400; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.counter__value small { font-size: 0.45em; margin-left: 4px; color: var(--accent); }
.counter__label { color: var(--muted); font-size: 0.95rem; }

/* Services list */
.services { display: grid; }
.service-row {
	display: grid; grid-template-columns: 48px 1fr; gap: 16px 12px; align-items: start;
	padding: 28px 0; border-top: 1px solid var(--linen);
	transition: background var(--dur-fast);
}
.service-row:last-child { border-bottom: 1px solid var(--linen); }
.service-row__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); padding-top: 10px; }
.service-row__title { font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 400; line-height: 1.1; }
.service-row__when { color: var(--muted); grid-column: 2; max-width: 52ch; }
.service-row__link { grid-column: 2; }
@media (min-width: 1024px) {
	.service-row { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr) 180px; align-items: center; padding: 36px 0; }
	.service-row__when, .service-row__link { grid-column: auto; }
	.service-row__link { justify-self: end; }
	.service-row:hover .service-row__title { transform: translateX(10px); }
	.service-row__title { transition: transform var(--dur-base) var(--ease-out); }
}

/* Pinned steps */
.pin-steps { position: relative; }
.pin-steps__frame { display: grid; gap: 40px; padding-block: clamp(40px, 6vw, 80px); }
.pin-steps__progress { display: none; }
.steps { display: grid; gap: 28px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 10px 12px; padding-top: 18px; border-top: 1px solid rgba(168,207,192,0.3); transition: opacity 0.6s var(--ease-out); }
.step__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--celadon); padding-top: 8px; }
.step__title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.4rem); font-weight: 400; line-height: 1.1; }
.step__text { grid-column: 2; color: var(--muted); max-width: 46ch; }
.pin-steps__figures { position: relative; aspect-ratio: 4 / 5; max-height: 420px; }
.pin-steps__figure { position: absolute; inset: 0; opacity: 0; }
.pin-steps__figure:first-child { opacity: 1; }
.pin-steps__figure img, .pin-steps__figure picture { width: 100%; height: 100%; object-fit: cover; }
.pin-steps__figure picture img { position: absolute; inset: 0; }
.pin-steps__caption { position: absolute; left: 16px; bottom: 16px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--white); background: rgba(11,46,42,0.85); padding: 6px 10px; }
@media (min-width: 1024px) {
	.pin-steps__frame { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 0.9fr); gap: 0 clamp(32px, 5vw, 80px); height: 100svh; min-height: 640px; align-content: center; padding-block: 0; }
	.pin-steps__progress { display: block; position: relative; width: 1px; height: 56vh; align-self: center; background: rgba(168,207,192,0.25); }
	.pin-steps__progress i { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--celadon); transform: scaleY(0); transform-origin: top; }
	.steps { align-self: center; gap: 0; grid-template-rows: auto auto 1fr; }
	.steps .h2 { margin-bottom: 28px; }
	/* Only the active step is in place; the four crossfade so the column always fits the viewport. */
	.step-stack { position: relative; min-height: 300px; }
	.step { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out); pointer-events: none; border-top: 1px solid rgba(168,207,192,0.3); }
	.step.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
	.step-index { display: flex; gap: 18px; margin-top: 24px; font-family: var(--font-mono); font-size: 0.78rem; color: rgba(255,255,255,0.45); }
	.step-index span { position: relative; padding-bottom: 8px; }
	.step-index span::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--celadon); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-fast) var(--ease-out); }
	.step-index span.is-active { color: var(--celadon); }
	.step-index span.is-active::after { transform: scaleX(1); }
	.pin-steps__figures { align-self: center; aspect-ratio: 4 / 5; max-height: 72vh; width: 100%; }
}
.step-index { display: none; }
@media (min-width: 1024px) { .step-index { display: flex; } }

/* Industries rail */
.rail { overflow: hidden; }
.rail__head { padding-bottom: clamp(24px, 4vw, 40px); }
.rail__viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rail__viewport::-webkit-scrollbar { display: none; }
.rail__track { display: flex; gap: 16px; padding-inline: var(--gutter); width: max-content; }
.rail__panel {
	flex: 0 0 auto; width: min(82vw, 440px); scroll-snap-align: start;
	display: grid; grid-template-rows: auto 1fr auto; gap: 20px;
	min-height: 360px; padding: 24px; border: 1px solid var(--linen); background: var(--white); border-radius: var(--radius);
}
.rail__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); }
.rail__title { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 400; line-height: 1.1; }
.rail__text { color: var(--muted); font-size: 0.98rem; }
.rail__meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--graphite); }
@media (min-width: 1024px) {
	.rail__viewport { overflow: hidden; width: 100%; }
	.rail__track { gap: 24px; padding-inline: 0; padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); padding-right: var(--gutter); will-change: transform; }
	.rail__panel { width: 32vw; min-width: 400px; min-height: 440px; padding: 32px; }
	.rail--pinned { height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; }
	.rail--pinned .rail__head { width: 100%; }
}

/* Team */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 768px) { .team { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
@media (min-width: 1024px) { .team { grid-template-columns: repeat(5, 1fr); gap: 24px; } }
.person { display: grid; gap: 12px; transition: filter 0.6s var(--ease-out), opacity 0.6s var(--ease-out); }
.person__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--linen); }
.person__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.person:hover .person__media img { transform: scale(1.04); }
.person__name { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.15; font-weight: 500; position: relative; padding-bottom: 8px; }
.person__name::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-fast) var(--ease-out); }
.person:hover .person__name::after { transform: scaleX(1); }
.person__role { font-size: 0.85rem; color: var(--muted); }
.team:hover .person:not(:hover) { filter: saturate(0.6); opacity: 0.72; }
.team--wide { grid-template-columns: 1fr; }
@media (min-width: 768px) { .team--wide { grid-template-columns: repeat(2, 1fr); gap: 48px; } }
.team--wide .person { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.team--wide .person__text { display: grid; gap: 10px; }
.team--wide .person__bio { color: var(--muted); font-size: 0.95rem; }
.team--wide .person__name { font-size: 1.5rem; }

/* Story (illustrative) */
.story { display: grid; gap: 32px; }
.story__label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--moss); }
.story__label::before { content: ""; width: 8px; height: 8px; border: 1px solid currentColor; }
.story__quote { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.25; font-weight: 300; max-width: 30ch; }
.story__quote em { font-style: italic; font-weight: 300; color: var(--accent); }
.story__facts { display: grid; gap: 0; }
.story__fact { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--linen); font-size: 0.95rem; }
.story__fact:last-child { border-bottom: 1px solid var(--linen); }
.story__fact dt { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); padding-top: 3px; }
.story__media { aspect-ratio: 16 / 10; overflow: hidden; }
.story__media img, .story__media picture { width: 100%; height: 100%; object-fit: cover; }
.story__media picture img { position: static; }
@media (min-width: 1024px) {
	.story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
}

/* FAQ */
.faq { display: grid; margin-top: 40px; }
.faq__q > span:nth-child(2) { max-width: 60ch; }
.faq__item { border-top: 1px solid var(--linen); }
.faq__item:last-child { border-bottom: 1px solid var(--linen); }
.faq__q { display: grid; grid-template-columns: 40px 1fr 24px; gap: 12px; align-items: baseline; padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 500; line-height: 1.25; }
.faq__q::-webkit-details-marker { display: none; }
.faq__num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); }
.faq__icon { position: relative; width: 16px; height: 16px; justify-self: end; align-self: center; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; inset: 50% auto auto 0; width: 16px; height: 1px; background: var(--fg); transition: transform var(--dur-fast) var(--ease-out); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__a { padding: 0 0 24px 52px; color: var(--muted); max-width: 64ch; }
.faq__a p + p { margin-top: 0.8em; }

/* Closing CTA */
.close { display: grid; gap: 36px; }
.close__actions { display: grid; gap: 18px; justify-items: start; }
.close__or { color: var(--muted); }
@media (min-width: 1024px) {
	.close { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: end; gap: 80px; }
	.close__actions { justify-items: end; text-align: right; }
}

/* Form */
.form-card { background: var(--white); border: 1px solid var(--linen); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.section--dark .form-card { border-color: transparent; color: var(--ink); --fg: var(--ink); --muted: var(--graphite); --accent: var(--moss); --rule: var(--moss); }
.form { display: grid; gap: 16px; }
.form__title { color: var(--moss); margin-bottom: 4px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field__label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: var(--graphite); }
.field__input { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--linen); border-radius: var(--radius); background: var(--chalk); color: var(--ink); transition: border-color var(--dur-fast), background var(--dur-fast); }
.field__input:focus { outline: none; border-color: var(--moss); background: var(--white); }
.field__input:invalid:not(:placeholder-shown) { border-color: var(--ochre); }
.field__select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--graphite) 50%), linear-gradient(135deg, var(--graphite) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.form__note { font-size: 0.82rem; color: var(--graphite); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card__done { display: grid; gap: 14px; }

/* Service page body */
.service-body { padding-block: var(--section); }
.service-body .container { display: grid; gap: clamp(40px, 6vw, 80px); }
.service-section { display: grid; gap: 24px; }
.service-section__head { display: grid; gap: 8px; }
.service-figure { aspect-ratio: 16 / 9; overflow: hidden; }
.service-figure img, .service-figure picture { width: 100%; height: 100%; object-fit: cover; }
.service-figure picture img { position: static; }
.service-figure--portrait { aspect-ratio: 4 / 5; max-width: 520px; }
.leads { display: grid; gap: 24px; }
@media (min-width: 768px) { .leads { grid-template-columns: repeat(2, 1fr); } }
.lead { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; }
.lead__media { aspect-ratio: 4 / 5; overflow: hidden; }
.lead__media img { width: 100%; height: 100%; object-fit: cover; }
.lead__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; line-height: 1.2; }
.lead__role { font-size: 0.85rem; color: var(--muted); }
.lead__text { font-size: 0.95rem; color: var(--muted); margin-top: 8px; }
.timeline { display: grid; }
.timeline__row { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--linen); }
.timeline__row:last-child { border-bottom: 1px solid var(--linen); }
.timeline__when { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); padding-top: 4px; }
.timeline__what strong { display: block; font-weight: 600; }
.timeline__what span { color: var(--muted); font-size: 0.95rem; }
.compare { display: grid; gap: 20px; }
@media (min-width: 768px) { .compare { grid-template-columns: repeat(3, 1fr); } }
.compare__col { padding: 24px; border: 1px solid var(--linen); background: var(--white); display: grid; gap: 14px; align-content: start; }
.compare__col--lead { border-color: var(--moss); }
.compare__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.compare__level { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.compare__list li { padding: 8px 0; border-top: 1px solid var(--linen); font-size: 0.93rem; color: var(--graphite); }

/* Industries page */
.industry { display: grid; gap: 24px; padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--linen); scroll-margin-top: 110px; }
.industry:first-of-type { border-top: 0; }
@media (min-width: 1024px) { .industry { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.industry__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); padding-top: 10px; }
.industry__title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 400; line-height: 1.1; }
.industry__issues { display: grid; gap: 0; }
.industry__issue { padding: 12px 0; border-top: 1px solid var(--linen); color: var(--graphite); font-size: 0.97rem; }
.industry__issue:first-child { border-top: 0; padding-top: 0; }
.industry__services { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.industry__services a { font-family: var(--font-mono); font-size: 0.75rem; padding: 6px 10px; border: 1px solid var(--linen); border-radius: var(--radius); transition: border-color var(--dur-fast), color var(--dur-fast); }
.industry__services a:hover { border-color: var(--moss); color: var(--moss); }

/* Article (guide) */
.article { padding-block: var(--section); }
.article__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .article__grid { grid-template-columns: 240px minmax(0, 680px); gap: 80px; justify-content: start; } }
.article__meta { display: grid; gap: 20px; align-content: start; font-size: 0.9rem; color: var(--muted); }
.article__author { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.article__author img { aspect-ratio: 1; object-fit: cover; border-radius: 50%; width: 56px; height: 56px; }
.article__toc { display: grid; gap: 6px; font-family: var(--font-mono); font-size: 0.78rem; }
.article__toc a:hover { color: var(--accent); }
.summary { padding: 24px; border-left: 2px solid var(--moss); background: var(--white); margin-bottom: 40px; }
.summary p { font-size: 1.05rem; }
@media (min-width: 1024px) { .article__meta { position: sticky; top: 110px; } }

/* About: numbers and office */
.office { display: grid; gap: 32px; }
@media (min-width: 1024px) { .office { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 80px; } }
.office__media { aspect-ratio: 16 / 10; overflow: hidden; }
.office__media img, .office__media picture { width: 100%; height: 100%; object-fit: cover; }
.office__media picture img { position: static; }

/* Contact */
.contact { display: grid; gap: 40px; }
@media (min-width: 1024px) { .contact { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; } }
.contact__details { display: grid; gap: 24px; }
.contact__block { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--linen); }
.contact__block dt { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mist); }
.contact__block dd { margin: 0; }
.contact__media { aspect-ratio: 16 / 10; overflow: hidden; }
.contact__media img, .contact__media picture { width: 100%; height: 100%; object-fit: cover; }
.contact__media picture img { position: static; }
.map { aspect-ratio: 16 / 7; border: 1px solid var(--linen); filter: saturate(0.4) contrast(1.05); }
.map iframe { width: 100%; height: 100%; border: 0; }
.next-steps { display: grid; gap: 20px; }
@media (min-width: 768px) { .next-steps { grid-template-columns: repeat(3, 1fr); } }
.next-step { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--linen); }
.next-step__num { font-family: var(--font-mono); color: var(--accent); font-size: 0.8rem; }
.next-step strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.next-step span { color: var(--muted); font-size: 0.95rem; }

/* Footer */
.site-footer { padding-block: clamp(48px, 7vw, 96px) 32px; }
.footer__grid { display: grid; gap: 40px; padding-top: 40px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; } }
.footer__logo { width: 220px; color: var(--white); margin-bottom: 24px; }
.footer__address { color: rgba(255,255,255,0.82); }
.footer__district { font-family: var(--font-mono); font-size: 0.78rem; color: var(--celadon); }
.footer__contact { margin-top: 16px; display: grid; gap: 6px; }
.footer__contact a:hover { color: var(--celadon); }
.footer__hours { margin-top: 16px; color: rgba(255,255,255,0.6); }
.footer__heading { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--celadon); font-weight: 500; margin-bottom: 14px; }
.footer__heading--gap { margin-top: 28px; }
.footer__list { display: grid; gap: 8px; }
.footer__list a { color: rgba(255,255,255,0.86); position: relative; }
.footer__list a:hover { color: var(--white); }
.footer__bottom { margin-top: clamp(40px, 6vw, 72px); padding-top: 24px; border-top: 1px solid rgba(168,207,192,0.3); display: grid; gap: 12px; }
.footer__disclosure { font-size: 0.82rem; color: rgba(255,255,255,0.62); max-width: 72ch; }
.footer__copy { color: rgba(255,255,255,0.5); }
@media (min-width: 1024px) { .footer__bottom { grid-template-columns: 1fr auto; align-items: end; } }

/* Sticky mobile call bar */
.sticky-call { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: var(--white); transform: translateY(100%); transition: transform var(--dur-fast) var(--ease-out); }
.is-scrolled .sticky-call { transform: translateY(0); }
.sticky-call__link { display: block; text-align: center; padding: 14px 10px; font-weight: 600; font-size: 0.85rem; }
.sticky-call__link--alt { background: var(--moss); }
@media (min-width: 1024px) { .sticky-call { display: none; } }
@media (max-width: 1023px) { .is-scrolled .site-footer { padding-bottom: 88px; } }

/* Legal and 404 */
.legal { padding-top: calc(72px + 56px); padding-bottom: var(--section); }
@media (min-width: 1024px) { .legal { padding-top: calc(88px + 80px); } }
.notfound { min-height: 70svh; display: grid; align-content: center; padding-top: 120px; }

/* Motion start states are applied by JS, not CSS, so no-JS renders complete pages. */
.js [data-motion="line"] { transform-origin: left center; }
.split-line { display: block; overflow: hidden; }
.split-line > div { will-change: transform; }

/* Reduced motion: no transforms, no smooth scroll. */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.hero__media img { will-change: auto; }
	.step { opacity: 1 !important; }
}

/* Print */
@media print {
	.site-header, .sticky-call, .preloader, .transition, .nav-toggle, .btn { display: none !important; }
	body { background: #fff; color: #000; }
}
