/*
Theme Name: CMS Global
Theme URI: https://cmsmepfs.com
Author: CMS LTD
Description: Luxury presentation theme for CMS Global Ltd — "Comfort, perfectly concealed." Shares the same content model (Projects, People, Offices, Careers, Services, Sectors, Insights, News) as the other CMS LTD themes, so all existing content stays editable.
Version: 0.3.0
Requires PHP: 7.4
Text Domain: cms-global
*/

/* ---------- Tokens ---------- */
:root {
	--paper: #f4efe6;
	--paper-2: #ebe3d6;
	--plate: #f8f4ec;
	--ink: #17130f;
	--ink-2: #1f1a14;
	--text: #231d17;
	--muted: #75695d;
	--line: rgba(35, 29, 23, .14);
	--brass: #97743f;
	--brass-2: #c5a473;
	--on-dark: #efe7da;
	--on-dark-2: rgba(239, 231, 218, .66);
	--on-dark-3: rgba(239, 231, 218, .42);
	--on-dark-line: rgba(239, 231, 218, .15);
	--display: 'Inter', 'Archivo', 'Helvetica Neue', Arial, sans-serif; /* Inter supplies only the "&" glyph */
	--sans: 'Inter', 'Archivo', 'Helvetica Neue', Arial, sans-serif;
	--wrap: min(1320px, 100% - 96px);
	--ease: cubic-bezier(.22, .61, .36, 1);
	--header-h: 92px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--sans);
	font-weight: 300;
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--brass-2); color: var(--ink); }
:focus-visible { outline: 1px solid var(--brass); outline-offset: 4px; }
[id] { scroll-margin-top: 80px; }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

.wrap { width: var(--wrap); margin-inline: auto; }

/* Display: wide, light, straight-lined grotesk */
h1, h2, h3, .statement {
	font-family: var(--display);
	font-stretch: 125%;
	font-weight: 300;
	letter-spacing: -.015em;
}
h1 em, h2 em, .statement em { font-style: normal; color: var(--brass); }

/* Small uppercase labels share a slightly widened cut */
.kicker, .btn, .link-line, .header-cta, .menu-toggle, .wordmark, .primary-nav a,
.layer-label, .layer-service, .residence-location, .residence-link, .office-region,
.consult-role, .footer-col h5, .facts, .hero-caption-label, .hero-caption-location,
.plate figcaption span, .footer-wordmark, .footer-tagline, .back-to-top { font-stretch: 112%; }

.rule { display: block; width: 56px; height: 1px; background: var(--brass-2); }

.kicker {
	display: flex;
	align-items: center;
	gap: 16px;
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--brass);
}
.kicker::before { content: ''; width: 32px; height: 1px; background: currentColor; }
.kicker-light { color: var(--brass-2); }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0 34px;
	border: 1px solid var(--text);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .3em;
	text-transform: uppercase;
	transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: var(--text); color: var(--paper); }
.btn-light { border-color: var(--on-dark-2); color: var(--on-dark); }
.btn-light:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.btn-solid { background: var(--brass-2); border-color: var(--brass-2); color: var(--ink); }
.btn-solid:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }

.link-line {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .3em;
	text-transform: uppercase;
}
.link-line::after {
	content: '';
	width: 40px;
	height: 1px;
	background: var(--brass);
	transition: width .4s var(--ease);
}
.link-line:hover::after { width: 72px; }
.link-line-light { color: var(--on-dark); }
.link-line-light::after { background: var(--brass-2); }

/* Scroll reveal (only hidden when JS is running) */
.js .reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
	transition-delay: var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	height: var(--header-h);
	color: var(--on-dark);
	background: rgba(23, 19, 15, .95);
	border-bottom: 1px solid var(--on-dark-line);
	transition: background .45s var(--ease), border-color .45s var(--ease), height .45s var(--ease);
}
.site-header.is-over-hero { background: transparent; border-bottom-color: transparent; }
.site-header.is-scrolled {
	height: 74px;
	background: rgba(23, 19, 15, .95);
	border-bottom-color: var(--on-dark-line);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}
/* Footer facade photo at the right end of the solid bar, faded in from the left.
   Hidden while the header is transparent over the hero. */
.site-header { isolation: isolate; }
.site-header::before {
	content: '';
	position: absolute;
	inset: 0 0 0 auto;
	width: min(50%, 760px);
	z-index: -1;
	pointer-events: none;
	background: url('assets/images/footer-facade.jpg') right 40% / cover no-repeat;
	filter: sepia(.2) brightness(.85);
	opacity: .4;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 35%, #000 80%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 35%, #000 80%);
	transition: opacity .45s var(--ease);
}
.site-header.is-over-hero:not(.is-scrolled)::before { opacity: 0; }
.header-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.wordmark {
	font-size: 13px;
	font-weight: 400;
	letter-spacing: .34em;
	text-transform: uppercase;
	white-space: nowrap;
}
.wordmark { display: inline-flex; align-items: center; gap: 14px; }
.logo-mark { width: auto; height: 30px; flex: none; }
.primary-nav ul { display: flex; align-items: center; gap: 38px; }
.primary-nav > ul > li { display: flex; align-items: center; }
.primary-nav a {
	position: relative;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--on-dark-2);
	padding-block: 8px;
	white-space: nowrap;
	transition: color .3s var(--ease);
}
.primary-nav a::after {
	content: '';
	position: absolute;
	left: 50%;
	right: 50%;
	bottom: 0;
	height: 1px;
	background: var(--brass-2);
	transition: left .35s var(--ease), right .35s var(--ease);
}
.primary-nav a:hover { color: var(--on-dark); }
.primary-nav a:hover::after { left: 0; right: 0; }
/* Explore dropdown */
.primary-nav .has-dropdown { position: relative; }
.nav-parent {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding-block: 8px;
	font-size: 11px;
	font-weight: 400;
	font-stretch: 112%;
	letter-spacing: .24em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--on-dark-2);
	transition: color .3s var(--ease);
}
.nav-chevron { transition: transform .3s var(--ease); }
.has-dropdown:hover .nav-parent, .has-dropdown.is-open .nav-parent, .nav-parent:focus-visible { color: var(--on-dark); }
.has-dropdown:hover .nav-chevron, .has-dropdown.is-open .nav-chevron { transform: rotate(180deg); }
.primary-nav .sub-menu {
	position: absolute;
	top: calc(100% + 16px);
	left: -26px;
	display: block;
	min-width: 230px;
	padding: 14px 0;
	background: rgba(23, 19, 15, .96);
	border: 1px solid var(--on-dark-line);
	border-top: 1px solid var(--brass-2);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 18px 40px rgba(0,0,0,.35);
	text-shadow: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
/* Invisible bridge so the menu stays open while the pointer moves down to it. */
.primary-nav .sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -17px; height: 17px; }
.has-dropdown:hover .sub-menu, .has-dropdown.is-open .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: 11px 26px; color: var(--on-dark-2); }
.primary-nav .sub-menu a::after { display: none; }
.primary-nav .sub-menu a:hover, .primary-nav .sub-menu a:focus-visible { color: var(--brass-2); }
.header-actions { display: flex; align-items: center; gap: 28px; }
.header-cta {
	padding: 11px 22px;
	border: 1px solid var(--brass-2);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--on-dark);
	transition: background .3s var(--ease), color .3s var(--ease);
}
.header-cta:hover { background: var(--brass-2); color: var(--ink); }
.menu-toggle {
	display: none;
	align-items: center;
	gap: 14px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .28em;
	text-transform: uppercase;
}
.menu-toggle-lines { display: grid; gap: 6px; width: 26px; }
.menu-toggle-lines span { height: 1px; background: currentColor; transition: transform .3s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 40;
	background: var(--ink);
	color: var(--on-dark);
	padding: calc(var(--header-h) + 40px) 0 60px;
	overflow-y: auto;
	opacity: 0;
	visibility: hidden;
	transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-nav::before {
	content: '';
	position: fixed;
	inset: auto 0 0 0;
	height: 55%;
	z-index: -1;
	pointer-events: none;
	background: url('assets/images/footer-facade.jpg') 70% center / cover no-repeat;
	opacity: .45;
	-webkit-mask-image: linear-gradient(0deg, #000 0%, transparent 100%);
	mask-image: linear-gradient(0deg, #000 0%, transparent 100%);
}
.mobile-nav { isolation: isolate; }
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav li { border-bottom: 1px solid var(--on-dark-line); }
.mobile-nav a {
	display: block;
	padding: 18px 0;
	font-family: var(--display); font-stretch: 125%;
	font-size: clamp(1.4rem, 5.4vw, 2rem);
	font-weight: 400;
}
.mobile-nav a:hover { color: var(--brass-2); }
/* Phone menu: Explore becomes a small heading with its links listed underneath. */
.mobile-nav .nav-parent { padding: 26px 0 6px; color: var(--brass-2); cursor: default; }
.mobile-nav .nav-chevron { display: none; }
.mobile-nav .sub-menu li:last-child { border-bottom: 0; }
.mobile-nav .sub-menu a { padding: 14px 0 14px 18px; font-size: clamp(1.2rem, 4.6vw, 1.7rem); }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: max(100svh, 720px);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
	isolation: isolate;
	background: var(--ink);
	color: var(--on-dark);
}
.hero-slides, .hero-slide, .hero-shade { position: absolute; inset: 0; }
.hero-slides { z-index: -2; }
.hero-slide {
	background-size: cover;
	background-position: center;
	opacity: 0;
	transform: scale(1.08);
	transition: opacity 1.8s var(--ease), transform 10s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-shade {
	z-index: -1;
	background:
		/* Brown only on the left, behind the headline; the photo stays natural on the right. */
		/* Top band keeps the navigation readable over light photos. */
		linear-gradient(180deg, rgba(23,19,15,.75) 0%, rgba(23,19,15,.4) 110px, rgba(23,19,15,0) 220px),
		linear-gradient(90deg, rgba(23,19,15,.9) 0%, rgba(23,19,15,.8) 35%, rgba(23,19,15,.5) 55%, rgba(23,19,15,.15) 70%, rgba(23,19,15,0) 80%);
}
/* Drafting grid over the brown left side of the hero, fading out toward the photo. */
.hero-shade::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23efe7da'%3E%3Cpath stroke-opacity='.035' d='M12.5 0v120M36.5 0v120M84.5 0v120M108.5 0v120M0 12.5h120M0 36.5h120M0 84.5h120M0 108.5h120'/%3E%3Cpath stroke-opacity='.08' d='M60.5 0v120M0 60.5h120'/%3E%3C/g%3E%3Cpath fill='none' stroke='%23c5a473' stroke-opacity='.55' d='M60.5 53v15M53 60.5h15'/%3E%3C/svg%3E");
	background-size: 120px 120px;
	background-position: left top;
	-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 30%, rgba(0,0,0,.15) 48%, transparent 60%);
	mask-image: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 30%, rgba(0,0,0,.15) 48%, transparent 60%);
	pointer-events: none;
	/* Soft and faint: a hint of drawing sheet, not crisp lines. */
	opacity: .35;
	filter: blur(.6px);
}
@media (max-width: 980px) {
	.hero-shade::after { opacity: .25; -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.4) 100%); mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.4) 100%); }
}
.hero-inner { padding-top: calc(var(--header-h) + 80px); padding-bottom: 72px; }
.hero-title {
	margin-top: 30px;
	font-size: clamp(2.3rem, 5.6vw, 5.6rem);
	line-height: 1.04;
	color: var(--on-dark);
}
.hero-title em { color: var(--brass-2); }
/* Layered shadows: a tight one to crisp the letter edges, a wide soft one to lift them off any photo. */
.hero-title {
	text-shadow:
		0 1px 2px rgba(10,8,6,.55),
		0 4px 14px rgba(10,8,6,.45),
		0 12px 44px rgba(10,8,6,.5);
}
.hero-title em { color: #d2b184; }
.hero-lede, .hero .kicker { text-shadow: 0 1px 2px rgba(10,8,6,.6), 0 4px 18px rgba(10,8,6,.55); }
.hero-lede { margin-top: 34px; max-width: 540px; font-size: 18px; color: var(--on-dark-2); }
.hero-actions { margin-top: 44px; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 26px 0 34px;
	border-top: 1px solid var(--on-dark-line);
}
.hero-caption { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; }
.hero-caption-label, .hero-caption-location {
	font-size: 11px;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--on-dark-3);
}
.hero-caption-title { font-family: var(--display); font-stretch: 125%; font-size: 1.15rem; }
.hero-caption-title:hover { color: var(--brass-2); }
.hero-nav { display: flex; align-items: center; gap: 18px; }
.hero-nav { display: none; } /* Slide counter and arrows hidden for now; remove this line to show them again. */
.hero-count { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .12em; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.hero-count-sep { width: 32px; height: 1px; background: var(--on-dark-3); }
.hero-arrow {
	width: 46px;
	height: 46px;
	border: 1px solid var(--on-dark-line);
	border-radius: 50%;
	transition: border-color .3s var(--ease), color .3s var(--ease);
}
.hero-arrow:hover { border-color: var(--brass-2); color: var(--brass-2); }
/* iOS-style glass for the slide controls: frosted blur, light tint, bright rim and a top highlight. */
.hero-count, .hero-arrow {
	position: relative;
	background: linear-gradient(180deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.07) 100%);
	border: 1px solid rgba(255,255,255,.3);
	-webkit-backdrop-filter: blur(6px) saturate(150%);
	backdrop-filter: blur(6px) saturate(150%);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -1px 0 rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.25);
	color: #fff;
	text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.hero-count { height: 46px; padding: 0 20px; border-radius: 999px; }
.hero-count .hero-count-sep { background: rgba(255,255,255,.55); }
.hero-arrow { transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.hero-arrow:hover { color: #fff; border-color: rgba(255,255,255,.5); background: linear-gradient(180deg, rgba(255,255,255,.32) 0%, rgba(255,255,255,.14) 100%); transform: scale(1.05); }
.site-header.is-over-hero:not(.is-scrolled) { text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.site-header.is-over-hero:not(.is-scrolled) .primary-nav a, .site-header.is-over-hero:not(.is-scrolled) .nav-parent { color: var(--on-dark); }
.site-header.is-over-hero:not(.is-scrolled) .primary-nav .sub-menu a { color: var(--on-dark-2); }
.site-header.is-over-hero:not(.is-scrolled) .primary-nav .sub-menu a:hover { color: var(--brass-2); }
.site-header.is-over-hero:not(.is-scrolled) .header-cta { background: rgba(23,19,15,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (max-width: 980px) {
	.hero-shade { background: linear-gradient(180deg, rgba(23,19,15,.6) 0%, rgba(23,19,15,0) 160px), linear-gradient(90deg, rgba(23,19,15,.85) 0%, rgba(23,19,15,.7) 60%, rgba(23,19,15,.5) 100%); }
}

/* ---------- Drafting sheet background ----------
   A 120px engineering grid (fine 24px ruling, heavier centre line) with a
   registration cross at every major intersection. It only shows in the empty
   top and bottom margins of a section (--band tall), never behind text, and
   fades across the width from the --sheet-dir side. */
.method, .offices, .page-head, .layers, .capabilities { position: relative; isolation: isolate; }
.method::before, .page-head::before, .layers::before, .capabilities::before {
	--band: calc(clamp(96px, 12vw, 170px) - 24px);
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-position: center top;
	background-size: 120px 120px;
	-webkit-mask-image:
		linear-gradient(180deg, #000 0, transparent var(--band), transparent calc(100% - var(--band)), #000 100%),
		linear-gradient(var(--sheet-dir, 270deg), #000 0%, rgba(0,0,0,.2) 100%);
	-webkit-mask-composite: source-in;
	mask-image:
		linear-gradient(180deg, #000 0, transparent var(--band), transparent calc(100% - var(--band)), #000 100%),
		linear-gradient(var(--sheet-dir, 270deg), #000 0%, rgba(0,0,0,.2) 100%);
	mask-composite: intersect;
}
.page-head::before { --band: calc(var(--header-h) + clamp(50px, 7vw, 96px)); }
.method::before, .page-head::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23efe7da'%3E%3Cpath stroke-opacity='.035' d='M12.5 0v120M36.5 0v120M84.5 0v120M108.5 0v120M0 12.5h120M0 36.5h120M0 84.5h120M0 108.5h120'/%3E%3Cpath stroke-opacity='.08' d='M60.5 0v120M0 60.5h120'/%3E%3C/g%3E%3Cpath fill='none' stroke='%23c5a473' stroke-opacity='.55' d='M60.5 53v15M53 60.5h15'/%3E%3C/svg%3E");
}
.layers::before, .capabilities::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%2397743f'%3E%3Cpath stroke-opacity='.06' d='M12.5 0v120M36.5 0v120M84.5 0v120M108.5 0v120M0 12.5h120M0 36.5h120M0 84.5h120M0 108.5h120'/%3E%3Cpath stroke-opacity='.13' d='M60.5 0v120M0 60.5h120'/%3E%3C/g%3E%3Cpath fill='none' stroke='%2397743f' stroke-opacity='.5' d='M60.5 53v15M53 60.5h15'/%3E%3C/svg%3E");
}
.layers { --sheet-dir: 90deg; }
.method, .capabilities { --sheet-dir: 270deg; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(96px, 12vw, 170px); }
.section-head { max-width: 820px; margin-bottom: clamp(56px, 7vw, 96px); }
.section-head h2,
.method-intro h2,
.capabilities-intro h2,
.consult h2 {
	margin-top: 28px;
	font-size: clamp(1.8rem, 3.2vw, 3.1rem);
	line-height: 1.12;
}
.section-head > p:not(.kicker) { margin-top: 26px; max-width: 560px; color: var(--muted); }
.section-head-split {
	max-width: none;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
}

/* Philosophy */
.philosophy { padding-bottom: clamp(80px, 9vw, 130px); }
.philosophy-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 48px; }
.philosophy-grid .kicker { padding-top: 16px; align-self: start; }
.statement { font-size: clamp(1.35rem, 2.2vw, 2.05rem); line-height: 1.45; color: var(--text); }
.statement em { color: var(--brass); }
.facts {
	margin-top: 44px;
	display: flex;
	flex-wrap: wrap;
	gap: 14px 0;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--muted);
}
.facts span + span::before { content: ''; display: inline-block; width: 1px; height: 12px; margin: 0 22px; background: var(--line); vertical-align: -1px; }
.values {
	margin-top: clamp(80px, 9vw, 130px);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid var(--line);
}
.value { padding: 36px 32px 0 0; }
.value + .value { padding-left: 32px; border-left: 1px solid var(--line); }
.value-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.value-icon { display: block; color: var(--brass); }
.value-num { font-size: 12px; letter-spacing: .2em; color: var(--brass); }
.value h3 { margin-top: 28px; font-size: 1.25rem; line-height: 1.15; }
.value p { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* Layers */
.layers { background: var(--paper-2); }
.layer {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: clamp(40px, 6vw, 96px);
	align-items: center;
	padding-block: clamp(48px, 6vw, 80px);
	border-top: 1px solid var(--line);
}
.layer.is-flipped { grid-template-columns: 5fr 7fr; }
.layer.is-flipped .plate { order: 2; }
.plate-frame {
	aspect-ratio: 4 / 3;
	padding: clamp(18px, 2.4vw, 34px);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%2397743f'%3E%3Cpath stroke-opacity='.06' d='M12.5 0v120M36.5 0v120M84.5 0v120M108.5 0v120M0 12.5h120M0 36.5h120M0 84.5h120M0 108.5h120'/%3E%3Cpath stroke-opacity='.13' d='M60.5 0v120M0 60.5h120'/%3E%3C/g%3E%3Cpath fill='none' stroke='%2397743f' stroke-opacity='.5' d='M60.5 53v15M53 60.5h15'/%3E%3C/svg%3E") center / 96px 96px, var(--plate);
	border: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.plate-frame img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
	filter: saturate(.8) contrast(1.02);
	transition: transform 1.2s var(--ease);
}
.plate:hover .plate-frame img { transform: scale(1.04); }
.plate figcaption {
	display: flex;
	gap: 16px;
	margin-top: 16px;
	font-size: 12px;
	letter-spacing: .08em;
	color: var(--muted);
}
.plate figcaption span { color: var(--brass); letter-spacing: .24em; text-transform: uppercase; font-size: 11px; font-weight: 500; }
.layer-title { display: flex; align-items: baseline; gap: clamp(16px, 1.8vw, 26px); }
.layer-num { font-family: var(--display); font-stretch: 125%; font-size: clamp(1.8rem, 2.7vw, 2.5rem); font-weight: 200; line-height: 1.05; color: var(--brass); }
.layer h3 { font-size: clamp(1.8rem, 2.7vw, 2.5rem); line-height: 1.05; }
.layer-service { margin-top: 12px; font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.layer-label { display: block; font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--brass); }
.layer-feel { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.layer-feel p { margin-top: 12px; font-family: var(--display); font-stretch: 125%; font-size: 1.15rem; font-weight: 300; line-height: 1.5; }
.layer-engineer { margin-top: 30px; }
.layer-engineer ul { margin-top: 14px; }
.layer-engineer li {
	position: relative;
	padding: 10px 0 10px 30px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--muted);
	border-bottom: 1px solid var(--line);
}
.layer-engineer li::before { content: ''; position: absolute; left: 0; top: 21px; width: 14px; height: 1px; background: var(--brass); }

/* Method */
.method { background: var(--ink); color: var(--on-dark); }
.method-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.method-intro { position: sticky; top: 130px; }
.method-intro h2 { color: var(--on-dark); }
.method-intro h2 em { color: var(--brass-2); }
.method-intro > p:not(.kicker) { margin-top: 26px; max-width: 440px; color: var(--on-dark-2); }
.method-figure { margin-top: 48px; }
.method-figure-crop { overflow: hidden; aspect-ratio: 16 / 10; }
.method-figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); filter: saturate(.7) sepia(.15) brightness(.92); }
.method-figure figcaption { margin-top: 14px; font-size: 12px; letter-spacing: .08em; color: var(--on-dark-3); }
.step {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 24px;
	padding: 44px 0;
	border-top: 1px solid var(--on-dark-line);
}
.step:last-child { border-bottom: 1px solid var(--on-dark-line); }
.step-num { font-family: var(--display); font-stretch: 125%; font-size: 2.2rem; font-weight: 200; line-height: 1; color: var(--brass-2); }
.step h3 { font-size: clamp(1.25rem, 1.7vw, 1.55rem); line-height: 1.15; }
.step p { margin-top: 12px; color: var(--on-dark-2); font-size: 16px; }

/* Standards */
.standards { background: var(--ink-2); color: var(--on-dark); border-top: 1px solid var(--on-dark-line); }
.standards-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 48px; padding-block: 64px; }
.standards .kicker { color: var(--brass-2); }
.standards-list { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px clamp(20px, 2.2vw, 34px); }
.standards-list li { font-family: var(--display); font-stretch: 125%; font-size: clamp(1.05rem, 1.45vw, 1.3rem); font-weight: 300; white-space: nowrap; }

/* Residences */
.residence-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	grid-template-rows: auto auto;
	gap: clamp(28px, 3vw, 48px) clamp(28px, 4vw, 64px);
}
.residence { display: flex; flex-direction: column; }
.residence.is-feature { grid-row: span 2; }
.residence-media { overflow: hidden; }
.residence-img {
	aspect-ratio: 16 / 11;
	background: var(--paper-2) center / cover no-repeat;
	transition: transform 1.4s var(--ease);
}
.residence.is-feature .residence-img { aspect-ratio: 4 / 5; }
.residence:hover .residence-img { transform: scale(1.05); }
.residence-body { padding-top: 26px; }
.residence-location { font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--brass); }
.residence h3 { margin-top: 12px; font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.1; }
.residence.is-feature h3 { font-size: clamp(1.8rem, 2.8vw, 2.6rem); }
.residence-size { margin-top: 10px; font-size: 14px; color: var(--muted); }
.residence-excerpt { margin-top: 18px; max-width: 520px; color: var(--muted); }
.residence-link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: 22px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .3em;
	text-transform: uppercase;
}
.residence-link::after { content: ''; width: 32px; height: 1px; background: var(--brass); transition: width .4s var(--ease); }
.residence:hover .residence-link::after { width: 60px; }

/* Capabilities */
.capabilities { background: var(--paper-2); }
.capabilities-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.capabilities-intro { position: sticky; top: 130px; }
.capabilities-intro > p:not(.kicker) { margin-top: 24px; color: var(--muted); max-width: 360px; }
.capability-list { border-top: 1px solid var(--line); }
.capability {
	display: grid;
	grid-template-columns: 64px 1fr 40px;
	align-items: baseline;
	gap: 20px;
	padding: 34px 0;
	border-bottom: 1px solid var(--line);
}
.capability-num { font-family: var(--display); font-stretch: 125%; font-size: 1.1rem; font-weight: 300; color: var(--brass); }
.capability-title { display: block; font-family: var(--display); font-stretch: 125%; font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 300; line-height: 1.2; transition: color .3s var(--ease); }
.capability-desc { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 560px; }
.capability-arrow { justify-self: end; color: var(--brass); transition: transform .35s var(--ease); }
.capability:hover .capability-title { color: var(--brass); }
.capability:hover .capability-arrow { transform: translateX(8px); }

/* Offices */
.offices { background: var(--ink); color: var(--on-dark); }
/* Building photo on the right half, full height, tinted bronze and faded toward the centre. */
.offices::before {
	content: '';
	position: absolute;
	inset: 0 0 0 auto;
	width: 72%;
	z-index: -1;
	pointer-events: none;
	background:
		linear-gradient(0deg, rgba(23,19,15,.6) 0%, rgba(23,19,15,0) 45%),
		linear-gradient(rgba(58,40,22,.55), rgba(58,40,22,.55)),
		url('assets/images/offices-building.jpg') right center / cover no-repeat;
	filter: sepia(.45) saturate(.8) brightness(.8);
	opacity: .7;
	-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.000) 0%, rgba(0,0,0,0.028) 10%, rgba(0,0,0,0.104) 20%, rgba(0,0,0,0.216) 30%, rgba(0,0,0,0.352) 40%, rgba(0,0,0,0.500) 50%, rgba(0,0,0,0.648) 60%, rgba(0,0,0,0.784) 70%, rgba(0,0,0,0.896) 80%, rgba(0,0,0,0.972) 90%, rgba(0,0,0,1.000) 100%);
	mask-image: linear-gradient(90deg, rgba(0,0,0,0.000) 0%, rgba(0,0,0,0.028) 10%, rgba(0,0,0,0.104) 20%, rgba(0,0,0,0.216) 30%, rgba(0,0,0,0.352) 40%, rgba(0,0,0,0.500) 50%, rgba(0,0,0,0.648) 60%, rgba(0,0,0,0.784) 70%, rgba(0,0,0,0.896) 80%, rgba(0,0,0,0.972) 90%, rgba(0,0,0,1.000) 100%);
}
@media (max-width: 980px) { .offices::before { width: 100%; opacity: .35; } }
.offices .section-head h2 { color: var(--on-dark); }
.offices .section-head h2 em { color: var(--brass-2); }
.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--on-dark-line); }
.office { padding: 44px 40px 8px 0; }
.office + .office { padding-left: 40px; border-left: 1px solid var(--on-dark-line); }
.office-coords { font-size: 12px; letter-spacing: .14em; color: var(--on-dark-3); font-variant-numeric: tabular-nums; }
.office h3 { margin-top: 30px; font-size: clamp(1.9rem, 2.8vw, 2.6rem); line-height: 1; }
.office-region { margin-top: 14px; font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--brass-2); }
.office-blurb { margin-top: 12px; font-size: 15px; color: var(--on-dark-2); }

/* Consultation */
.consult {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp(120px, 14vw, 200px);
	background: var(--ink);
	color: var(--on-dark);
}
/* Facade photo on the left, full height, tinted bronze and faded toward the centre. */
.consult-bg {
	position: absolute;
	inset: 0 auto 0 0;
	width: 72%;
	z-index: -2;
	background: 62% center / cover no-repeat;
	filter: sepia(.4) saturate(.85) brightness(1.05);
	opacity: .9;
	-webkit-mask-image: linear-gradient(270deg, transparent 0%, rgba(0,0,0,0.000) 25%, rgba(0,0,0,0.028) 32.5%, rgba(0,0,0,0.104) 40%, rgba(0,0,0,0.216) 47.5%, rgba(0,0,0,0.352) 55%, rgba(0,0,0,0.500) 62.5%, rgba(0,0,0,0.648) 70%, rgba(0,0,0,0.784) 77.5%, rgba(0,0,0,0.896) 85%, rgba(0,0,0,0.972) 92.5%, rgba(0,0,0,1.000) 100%);
	mask-image: linear-gradient(270deg, transparent 0%, rgba(0,0,0,0.000) 25%, rgba(0,0,0,0.028) 32.5%, rgba(0,0,0,0.104) 40%, rgba(0,0,0,0.216) 47.5%, rgba(0,0,0,0.352) 55%, rgba(0,0,0,0.500) 62.5%, rgba(0,0,0,0.648) 70%, rgba(0,0,0,0.784) 77.5%, rgba(0,0,0,0.896) 85%, rgba(0,0,0,0.972) 92.5%, rgba(0,0,0,1.000) 100%);
}
.consult-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(58,40,22,.3), rgba(58,40,22,.3)), linear-gradient(0deg, rgba(23,19,15,.6) 0%, rgba(23,19,15,0) 45%); }
@media (max-width: 980px) { .consult-bg { width: 100%; opacity: .5; } }
.consult h2 { color: var(--on-dark); font-size: clamp(2rem, 4.2vw, 4.1rem); }
.consult h2 em { color: var(--brass-2); }
.consult-lede { margin-top: 28px; max-width: 520px; color: var(--on-dark-2); font-size: 18px; }
.consult .btn { margin-top: 44px; }
.consult-people { margin-top: clamp(72px, 8vw, 110px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--on-dark-line); }
.consult-person { display: flex; flex-direction: column; gap: 4px; padding: 30px 32px 0 0; font-size: 15px; }
.consult-person + .consult-person { padding-left: 32px; border-left: 1px solid var(--on-dark-line); }
.consult-name { font-family: var(--display); font-stretch: 125%; font-size: 1.1rem; font-weight: 400; }
.consult-role { margin-bottom: 12px; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-2); }
.consult-person a { color: var(--on-dark-2); transition: color .3s var(--ease); }
.consult-person a:hover { color: var(--on-dark); }
.consult-person .consult-phone {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	padding: 11px 20px;
	background: var(--on-dark);
	color: var(--ink);
	font-size: 14px;
	letter-spacing: .04em;
	font-variant-numeric: tabular-nums;
	transition: background-color .3s var(--ease), color .3s var(--ease);
}
.consult-person .consult-phone svg { color: var(--brass); transition: color .3s var(--ease); }
.consult-person .consult-phone:hover { background: var(--brass-2); color: var(--ink); }
.consult-person .consult-phone:hover svg { color: var(--ink); }

/* ---------- Fallback pages ---------- */
.page-head { background: var(--ink); color: var(--on-dark); padding: calc(var(--header-h) + clamp(70px, 9vw, 120px)) 0 clamp(60px, 7vw, 90px); }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 4.2rem); line-height: 1.02; }
.page-head .rule { margin-top: 30px; }
.page-body { padding-top: clamp(56px, 7vw, 90px); }
.prose { max-width: 760px; color: var(--muted); }
.prose > * + * { margin-top: 1.2em; }
.prose h2, .prose h3 { color: var(--text); }
.prose a { color: var(--brass); text-decoration: underline; text-underline-offset: 3px; }
.list { border-top: 1px solid var(--line); }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.list-title { font-family: var(--display); font-stretch: 125%; font-size: clamp(1.1rem, 1.7vw, 1.55rem); font-weight: 300; transition: color .3s var(--ease); }
.list-item:hover .list-title { color: var(--brass); }
.list-arrow { color: var(--brass); }
.empty-note { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: #0d0b09; color: var(--on-dark); padding-top: clamp(80px, 9vw, 120px); }
/* Lit facade photo on the right of the footer, fading into the dark toward the text. */
.site-footer::before {
	content: '';
	position: absolute;
	inset: 0 0 0 auto;
	width: min(46%, 760px);
	z-index: -1;
	pointer-events: none;
	background:
		linear-gradient(0deg, rgba(13,11,9,.8) 0%, rgba(13,11,9,0) 40%),
		linear-gradient(90deg, rgba(13,11,9,.55) 0%, rgba(13,11,9,.25) 60%, rgba(13,11,9,.1) 100%),
		url('assets/images/footer-facade.jpg') right center / cover no-repeat;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
@media (max-width: 980px) {
	.site-footer::before { width: 70%; opacity: .4; }
}
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; padding-bottom: clamp(64px, 7vw, 96px); }
.footer-wordmark { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 300; letter-spacing: .22em; text-transform: uppercase; line-height: 1.2; }
.footer-tagline { margin-top: 16px; font-size: 11px; font-weight: 400; letter-spacing: .5em; text-transform: uppercase; color: var(--on-dark-2); }
/* Brand lockup: logo on the left, wordmark and tagline beside it; rule and note sit under the text column. */
.footer-brand { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(18px, 2vw, 28px); align-items: center; }
.footer-logo { display: block; }
.footer-logo .logo-mark { height: clamp(72px, 7vw, 104px); }
.footer-lockup { min-width: 0; }
.footer-brand-body { grid-column: 2; }
@media (max-width: 680px) {
	.footer-brand { column-gap: 14px; }
	.footer-logo .logo-mark { height: 58px; }
	.footer-brand .footer-wordmark { font-size: 1.05rem; letter-spacing: .18em; white-space: nowrap; }
	.footer-brand .footer-tagline { margin-top: 8px; font-size: 8.5px; letter-spacing: .32em; white-space: nowrap; }
	.footer-brand-body { grid-column: 1 / -1; }
}
.footer-brand .rule { margin-top: 14px; }
.footer-note { margin-top: 24px; max-width: 380px; font-size: 15px; color: var(--on-dark-3); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h5 { margin-bottom: 20px; font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--brass-2); }
.footer-col li + li { margin-top: 12px; }
.footer-col a { color: var(--on-dark-2); transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--on-dark); }
.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	padding: 28px 0 36px;
	border-top: 1px solid var(--on-dark-line);
	font-size: 12px;
	color: var(--on-dark-3);
}
.footer-legal { display: flex; gap: 28px; }
.footer-legal a:hover, .back-to-top:hover { color: var(--on-dark); }
.back-to-top { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }

/* ---------- Responsive ---------- */
/* The menu collapses to the burger when its links no longer fit (measured in main.js).
   Without JavaScript, a fixed breakpoint does the same job. */
.site-header.nav-compact .primary-nav { display: none; }
.site-header.nav-compact .menu-toggle { display: inline-flex; }
@media (max-width: 1070px) {
	html:not(.js) .primary-nav { display: none; }
	html:not(.js) .menu-toggle { display: inline-flex; }
}
@media (max-width: 980px) {
	.philosophy-grid { grid-template-columns: 1fr; gap: 28px; }
	.philosophy-grid .kicker { padding-top: 0; }
	.values { grid-template-columns: repeat(2, 1fr); }
	.value:nth-child(3) { padding-left: 0; border-left: 0; }
	.value:nth-child(n+3) { margin-top: 36px; border-top: 1px solid var(--line); }
	.layer, .layer.is-flipped { grid-template-columns: 1fr; }
	.layer.is-flipped .plate { order: 0; }
	.method-grid, .capabilities-grid { grid-template-columns: 1fr; }
	.method-intro, .capabilities-intro { position: static; }
	.residence-grid { grid-template-columns: 1fr 1fr; }
	.residence.is-feature { grid-column: 1 / -1; grid-row: auto; }
	.residence.is-feature .residence-img { aspect-ratio: 16 / 10; }
	.footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
	:root { --wrap: calc(100% - 40px); --header-h: 72px; }
	body { font-size: 16px; }
	.header-cta { display: none; }
	.hero-inner { padding-top: calc(var(--header-h) + 56px); padding-bottom: 48px; }
	.hero-lede { font-size: 16px; }
	.hero-meta { flex-direction: column; align-items: flex-start; gap: 18px; }
	.section-head-split { flex-direction: column; align-items: flex-start; }
	.values, .residence-grid, .office-grid, .consult-people { grid-template-columns: 1fr; }
	.value, .value + .value { padding: 28px 0 0; border-left: 0; margin-top: 28px; border-top: 1px solid var(--line); }
	.value:first-child { margin-top: 0; border-top: 0; }
	.office, .office + .office { padding: 36px 0; border-left: 0; border-bottom: 1px solid var(--on-dark-line); }
	.consult-person, .consult-person + .consult-person { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--on-dark-line); }
	.step { grid-template-columns: 64px 1fr; gap: 16px; padding: 34px 0; }
	.step-num { font-size: 1.8rem; }
	.capability { grid-template-columns: 44px 1fr 24px; gap: 14px; }
	.footer-cols { grid-template-columns: repeat(2, 1fr); }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; }
}
