/* Apex Architects — main stylesheet (dark theme, from Figma V3).
   Breakpoints: mobile < 744px, tablet 744–1199px, desktop ≥ 1200px.
   Header, hero and slides scale with the viewport width (designed at 1512px). */

:root {
	--bg: #141414;
	--surface: #2e2e2e;
	--band: #3a3a3a;
	--cta: #363636;
	--line: #444;
	--text: #fff;
	--muted: #8c8c8c;
	--soft: #b3b1b1;
	--btn: #5a5a5a;
	--btn-hover: #777;
	--navy: #0e2b49;
	--font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
	--font-serif: "Playfair Display", Georgia, serif;
	--gutter: max(20px, min(80px, 5.3vw));
	--u: min(1px, calc(100vw / 1512)); /* 1 design pixel */
	--ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 744px) and (max-width: 1199px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-weight: 300;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; }
.skip:focus { left: 8px; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin-bottom: 16px; }
.eyebrow--white { color: #fff; }
.mark { width: 53px; height: 53px; color: #fff; }
.empty { color: var(--muted); padding-top: 24px; padding-bottom: 24px; }

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--btn); color: #fff; font-weight: 400; font-size: 15px;
	min-height: 40px; padding: 8px 20px; border: 0; cursor: pointer;
	transition: background .2s;
}
.btn:hover { background: var(--btn-hover); }
.link-arrow { font-size: 14px; font-weight: 400; text-decoration: underline; text-underline-offset: 4px; display: inline-flex; gap: 6px; transition: opacity .2s; }
.link-arrow:hover { opacity: .75; }
.link-arrow--lg { font-size: 16px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); }
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	padding: calc(28 * var(--u)) var(--gutter);
}
.site-header__logo img { width: calc(250 * var(--u)); height: auto; }
.nav { display: flex; align-items: center; gap: calc(40 * var(--u)); }
.nav__link { font-size: max(11px, calc(20 * var(--u))); font-weight: 300; color: var(--muted); letter-spacing: .01em; transition: color .2s; }
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__cta { width: calc(150 * var(--u)); min-height: 0; height: calc(45 * var(--u)); padding: 0; font-size: max(11px, calc(20 * var(--u))); font-weight: 300; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 12px 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: #fff; border-radius: 1px; }

@media (max-width: 743px) {
	.site-header__inner { padding: 14px 20px; }
	.site-header__logo img { width: 104px; }
	.nav { display: none; }
	.menu-btn { display: flex; }
}

.mobile-menu { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; padding: 14px 20px 32px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu__top img { width: 104px; }
.menu-close { background: none; border: 0; font-size: 36px; line-height: 1; width: 44px; height: 44px; cursor: pointer; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 8px; margin-top: 48px; }
.mobile-menu__nav a { font-size: 34px; font-weight: 400; }
.mobile-menu__nav a[aria-current] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.mobile-menu__contact { margin-top: auto; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 14px; }
body.menu-open { overflow: hidden; }

/* ---------- Hero carousel ---------- */
.hero { position: relative; height: calc(832 * 100vw / 1512); max-height: 832px; min-height: 420px; overflow: hidden; background: var(--bg); touch-action: pan-y; user-select: none; }
@media (min-width: 1513px) { .hero { height: 832px; } }
@media (min-width: 744px) and (max-width: 1199px) { .hero { height: calc(820 * 100vw / 834); max-height: 86vh; } }
@media (max-width: 743px) { .hero { height: min(calc(640 * 100vw / 393), 82vh); min-height: 560px; } }
.hero__track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .42s ease-out, visibility 0s .42s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .42s ease-out, visibility 0s; }
.slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,0) 55%, rgba(20,20,20,.55) 100%); }
.hero__dots { position: absolute; left: 50%; bottom: calc(46 * 100% / 832); transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.hero__dots button { width: 12px; height: 28px; padding: 12px 0; border: 0; background: none; cursor: pointer; transition: width .3s var(--ease); }
.hero__dots button::before { content: ""; display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.4); }
.hero__dots button.is-active { width: 32px; }
.hero__dots button.is-active::before { background: #fff; }

/* Slide 1 */
.slide1__row { position: absolute; left: 0; right: 0; bottom: calc(80 * 100% / 832); transform: translateY(50%); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.slide1__title { font-family: var(--font-display); font-weight: 600; font-size: calc(40 * var(--u)); line-height: 1.15; letter-spacing: 0; max-width: 60%; }
.slide1__tagline { display: flex; align-items: center; gap: calc(12 * var(--u)); font-family: var(--font-display); font-weight: 500; font-size: calc(32 * var(--u)); line-height: 1.1; letter-spacing: -.02em; }
.slide1__tagline span { max-width: 6.4em; }
.slide1__mark { width: calc(53 * var(--u)); height: calc(53 * var(--u)); flex: none; }
@media (max-width: 743px) {
	.slide1__row { bottom: 64px; transform: none; flex-direction: column; align-items: flex-start; gap: 14px; }
	.slide1__title { font-size: 26px; max-width: none; }
	.slide1__tagline { font-size: 17px; gap: 10px; }
	.slide1__tagline span { width: auto; }
	.slide1__mark { width: 26px; height: 26px; }
}

/* Slide 2: map */
.slide--2 { background: var(--band); }
.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin text { fill: #fff; font-family: var(--font); font-size: 22px; font-weight: 400; }
.slide2__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(58,58,58,.35), rgba(58,58,58,0) 45%); pointer-events: none; }
.slide2__content { position: absolute; left: calc(286 * 100% / 1512); top: calc(191 * 100% / 832); padding: 0; width: calc(440 * var(--u)); }
.slide2__eyebrow { font-size: max(10px, calc(13 * var(--u))); font-weight: 400; margin-bottom: calc(44 * var(--u)); }
.slide2__text { font-size: calc(21 * var(--u)); font-weight: 400; line-height: 1.25; margin-bottom: calc(40 * var(--u)); }
.slide2__stats { display: flex; flex-direction: column; gap: calc(22 * var(--u)); }
.slide2__stats li { display: flex; flex-direction: column; }
.slide2__stats strong { font-size: calc(52 * var(--u)); font-weight: 400; line-height: 1; }
.slide2__stats span { font-size: calc(24 * var(--u)); color: var(--soft); line-height: 1.3; }
@media (max-width: 743px) {
	.slide2__shade { background: linear-gradient(180deg, rgba(20,20,20,0) 35%, rgba(20,20,20,.92) 78%); }
	.slide2__content { left: 0; right: 0; top: auto; bottom: 64px; width: auto; padding: 0 20px; }
	.slide2__eyebrow { font-size: 13px; margin-bottom: 10px; color: var(--soft); }
	.slide2__text { font-size: 16px; margin-bottom: 18px; }
	.slide2__stats { flex-direction: row; gap: 28px; }
	.slide2__stats strong { font-size: 36px; }
	.slide2__stats span { font-size: 13px; }
}

/* Slide 3: maquettes — laid out on the 1512×832 design canvas */
.slide--3 { background: var(--bg); display: flex; align-items: center; }
.slide3__grid { position: relative; width: 100%; aspect-ratio: 1512 / 832; max-height: 100%; padding: 0; container-type: inline-size; }
.slide3__grid > * { position: absolute; }
.slide3__photo { left: 7.94%; top: 11.54%; width: 27.78%; height: 67.67%; overflow: hidden; }
.slide3__photo img { width: 100%; height: 100%; object-fit: cover; }
.slide3__statement { right: 7.94%; top: 13.46%; text-align: right; font-size: 1.587cqw; line-height: 1.3; font-weight: 300; }
.slide3__headline { left: 42.26%; top: 30.77%; font-size: 10.58cqw; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.slide3__text { left: 39.68%; top: 69.11%; width: 31.75%; font-size: max(12px, 1.19cqw); line-height: 1.6; color: var(--soft); }
.slide3__link { left: 39.68%; top: 84%; font-size: max(12px, 1.06cqw); }
.slide3__mark { left: 74.14%; top: 56.13%; width: 16.53%; height: auto; aspect-ratio: 1; color: #9a9a96; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.slide3__mark--img { filter: none; object-fit: contain; }
.slide3__logo { left: 7.94%; top: 83.05%; width: 8.27%; height: auto; }
@media (max-width: 743px) {
	.slide--3 { align-items: stretch; }
	.slide3__grid { aspect-ratio: auto; height: 100%; display: flex; flex-direction: column; padding: 28px 20px 72px; container-type: normal; }
	.slide3__grid > * { position: static; }
	.slide3__statement { order: 1; text-align: left; font-size: 15px; }
	.slide3__headline { order: 2; font-size: 58px; margin: 14px 0 16px; }
	.slide3__photo { order: 3; width: 100%; height: auto; flex: 1; min-height: 120px; }
	.slide3__text { order: 4; width: auto; font-size: 14px; margin-top: 16px; }
	.slide3__link { order: 5; margin-top: 10px; font-size: 14px; }
	.slide3__mark, .slide3__logo { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section__title { font-size: clamp(26px, 2.65vw, 40px); font-weight: 400; }

/* Grids + tiles */
.grid { display: grid; gap: 2px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1199px) { .grid--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 743px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }

.tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #2f2e2e; }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__img--empty { background: #2f2e2e; }
/* Default: dark gradient + name bottom-left. Hover: clean photo only (Figma "Project tile v3"). */
.tile__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.8) 100%); transition: opacity .3s ease; }
.tile__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 20px 20px; display: flex; flex-direction: column; gap: 6px; transition: opacity .3s ease; }
.tile__title { font-weight: 600; font-size: clamp(12px, 1.12vw, 17px); text-transform: uppercase; letter-spacing: .03em; line-height: 1.45; }
.tile__meta { font-size: clamp(10px, .93vw, 14px); color: var(--soft); font-weight: 500; line-height: 1.5; white-space: nowrap; }
@media (hover: hover) {
	.tile:hover .tile__shade, .tile:focus-visible .tile__shade,
	.tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 0; }
}
@media (max-width: 743px) {
	.tile__cap { padding: 0 10px 10px; gap: 2px; }
	.tile__title { font-size: 11px; }
	.tile__meta { font-size: 9.5px; white-space: normal; }
}

/* Clients */
.clients { padding: 88px 0 96px; text-align: center; }
.clients__title { font-size: clamp(22px, 2.1vw, 32px); font-weight: 300; letter-spacing: .3em; margin-bottom: 36px; }
.clients__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 40px; max-width: 1000px; margin: 0 auto; }
.clients__list img { height: 44px; width: auto; max-width: 130px; object-fit: contain; filter: grayscale(1) brightness(0) invert(.6); opacity: .9; transition: filter .3s; }
.clients__list img:hover { filter: grayscale(1) brightness(0) invert(.9); }
@media (max-width: 743px) { .clients__list { gap: 18px 26px; } .clients__list img { height: 32px; max-width: 96px; } }

/* CTA band */
.cta { background: var(--cta); padding: 64px 0; margin-top: 0; }
.selected + .cta, .grid + .cta { margin-top: 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta__title { font-size: clamp(24px, 2.1vw, 32px); font-weight: 400; margin-bottom: 8px; }
.cta__text { font-size: 14px; color: var(--muted); }
.cta__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta__or { font-size: 13px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--surface); padding: 56px 0 28px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1.2fr 1.4fr auto; gap: 32px; }
.site-footer__brand img { width: 120px; margin-bottom: 16px; }
.site-footer__brand p, .site-footer__text, .site-footer__list { font-size: 13px; color: var(--muted); line-height: 1.8; }
.site-footer .eyebrow { color: #fff; font-weight: 600; margin-bottom: 14px; }
.site-footer__list a:hover, .site-footer__text a:hover { color: #fff; }
.site-footer .link-arrow { font-size: 13px; color: #ddd; text-decoration: none; margin-top: 8px; }
.social { display: flex; gap: 10px; }
.social a { width: 26px; height: 26px; border-radius: 50%; background: var(--muted); display: grid; place-items: center; transition: background .2s; }
.social a:hover { background: #fff; }
.social svg { width: 16px; height: 16px; fill: var(--surface); }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 12px; color: #ccc; }
.site-footer__domain { display: flex; align-items: center; gap: 20px; }
.to-top { width: 32px; height: 32px; background: var(--navy); display: grid; place-items: center; }
.to-top svg { width: 16px; fill: #fff; }
@media (max-width: 1199px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 743px) { .site-footer__bottom { flex-direction: column; align-items: flex-start; } }

/* ---------- Projects page ---------- */
.page-head { padding-top: 48px; padding-bottom: 28px; }
.page-head__title { font-size: clamp(32px, 2.9vw, 44px); font-weight: 400; margin-bottom: 8px; }
.page-head__text { font-size: 14px; color: var(--muted); }
.filters { display: flex; flex-direction: column; gap: 12px; padding-bottom: 28px; }
.filter-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--gutter) 2px 0; white-space: nowrap; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-row__label { flex: none; width: calc(76px + var(--gutter)); position: sticky; left: 0; z-index: 1; padding-left: var(--gutter); align-self: stretch; display: flex; align-items: center; background: var(--bg); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.chip { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 13px; font-size: 14px; font-weight: 400; color: #ddd; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: #888; color: #fff; }
.chip.is-active { background: #fff; border-color: #fff; color: var(--bg); }
@media (max-width: 743px) { .filter-row__label { width: calc(64px + var(--gutter)); font-size: 11px; } .chip { font-size: 13px; height: 32px; } }
.empty-state { padding-top: 48px; padding-bottom: 96px; color: var(--soft); }
.empty-state p + p { margin-top: 16px; display: flex; gap: 24px; flex-wrap: wrap; }
.projects-grid { margin-bottom: 0; }

/* ---------- Project page ---------- */
.project-hero { position: relative; height: min(740px, 49vw); min-height: 420px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.project-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 50%, rgba(0,0,0,.6) 100%); }
.crumbs { position: relative; display: flex; gap: 8px; padding-top: 16px; font-size: 13px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.crumbs span { opacity: .6; }
.project-hero__text { position: relative; padding-bottom: 72px; }
.project-hero__title { font-size: clamp(32px, 4.2vw, 64px); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; margin-bottom: 14px; }
.project-hero__sub { font-size: 14px; color: #ddd; white-space: pre; }
@media (max-width: 743px) { .project-hero { height: 70vh; } .project-hero__text { padding-bottom: 36px; } }
.facts { padding: 40px 0; }
.facts__list { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.facts dt { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.facts dd { font-size: 14px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.gallery__item { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #222; }
.gallery__item--wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.02); }
@media (max-width: 743px) { .gallery { grid-template-columns: 1fr; } .gallery__item--wide { aspect-ratio: 3 / 2; } }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.pager__item { position: relative; height: 240px; overflow: hidden; display: flex; align-items: flex-end; }
.pager__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pager__item:hover img { transform: scale(1.04); }
.pager__shade { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.pager__text { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 4px; width: 100%; }
.pager__item--next .pager__text { align-items: flex-end; text-align: right; }
.pager__text small { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.pager__text strong { font-size: clamp(16px, 1.6vw, 24px); font-weight: 600; text-transform: uppercase; }
@media (max-width: 743px) { .pager__item { height: 160px; } .pager__text { padding: 16px; } }
.related { padding-bottom: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(10,10,10,.96); display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 34px; width: 56px; height: 56px; cursor: pointer; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- About ---------- */
.about-intro { padding-top: 64px; padding-bottom: 96px; max-width: 1180px; }
.about-intro .eyebrow { color: #fff; }
.about-intro__title { font-size: clamp(30px, 3.2vw, 50px); font-weight: 400; line-height: 1.2; max-width: 980px; margin-bottom: 22px; }
.about-intro__title span { color: var(--soft); }
.about-intro__text { font-size: 14px; line-height: 1.8; color: var(--soft); max-width: 740px; }
.numbers { background: var(--band); padding: 56px 0; }
.numbers__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.numbers strong { display: block; font-size: clamp(36px, 3.4vw, 52px); font-weight: 400; line-height: 1.1; margin-bottom: 10px; }
.numbers span { font-size: 13px; color: var(--soft); }
@media (max-width: 743px) { .numbers__list { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
.team { padding-top: 80px; text-align: center; }
.team + .cta { margin-top: 96px; }
.team__title { font-size: clamp(18px, 1.6vw, 24px); font-weight: 300; letter-spacing: .4em; margin-bottom: 36px; }
.team__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 72px; max-width: 1060px; margin: 0 auto; }
.team--team .team__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; }
.person { display: flex; flex-direction: column; align-items: center; }
.person__photo { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; filter: grayscale(1); margin-bottom: 18px; }
.person__photo--empty { background: #2a2a2a; display: block; }
.team--team .person__photo { width: 120px; height: 120px; margin-bottom: 14px; }
.person__name { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 20px; line-height: 1.3; }
.person__role { font-family: "Inter", var(--font); font-weight: 500; font-size: 13px; margin-top: 2px; }
@media (max-width: 743px) {
	.team--team .team__list { grid-template-columns: 1fr 1fr; }
	.person__photo { width: 140px; height: 140px; }
	.person__name { font-size: 17px; }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 72px; padding-bottom: 120px; align-items: start; }
.contact__info .eyebrow { color: #fff; }
.contact__title { font-size: clamp(40px, 4vw, 60px); font-weight: 400; line-height: 1.1; margin-bottom: 20px; }
.contact__lead { color: var(--soft); font-size: 17px; margin-bottom: 40px; }
.contact__offices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
.contact__offices p { color: var(--soft); font-size: 15px; margin-bottom: 8px; }
.contact__offices a { color: #fff; }
.contact__email { text-decoration: underline; text-underline-offset: 4px; display: inline-block; margin-bottom: 36px; }
.form { background: var(--surface); padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.form__title { font-size: 24px; font-weight: 400; margin-bottom: 4px; }
.form__field { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 500; }
.form__field input, .form__field textarea { width: 100%; background: #1e1e1e; border: 1px solid #484848; border-radius: 6px; color: #fff; padding: 12px 14px; font: 300 15px/1.4 var(--font); }
.form__field textarea { min-height: 120px; resize: vertical; }
.form__field input::placeholder, .form__field textarea::placeholder { color: #777; }
.form__hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.btn--form { align-self: flex-start; min-width: 150px; min-height: 44px; font-size: 16px; }
.form__error { background: #4a2020; color: #fcc; padding: 10px 14px; font-size: 14px; }
@media (max-width: 1199px) { .contact { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 743px) { .form { padding: 24px 20px; } .contact__offices { grid-template-columns: 1fr; } .contact { padding-top: 40px; padding-bottom: 72px; } }

/* ---------- Thanks / 404 / plain pages ---------- */
.thanks { padding-top: 120px; padding-bottom: 140px; max-width: 760px; }
.thanks__mark { width: 44px; height: 44px; margin-bottom: 28px; }
.thanks__title { font-size: clamp(32px, 3.4vw, 52px); font-weight: 400; line-height: 1.15; margin-bottom: 18px; }
.thanks__text { color: var(--soft); margin-bottom: 32px; }
.thanks__text a { color: #fff; text-decoration: underline; }
.thanks__links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.prose { padding-top: 64px; padding-bottom: 96px; max-width: 860px; }
.prose__body { color: var(--soft); line-height: 1.8; }
.prose__body > * + * { margin-top: 1em; }
.prose__body a { color: #fff; text-decoration: underline; }

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