/* ==========================================================================
   HIERON London — main stylesheet
   Colours and fonts are set once in :root below. Brand font: Proxima Nova,
   loaded from Adobe Fonts (Settings › HIERON › Fonts). Montserrat below is the
   self-hosted fallback if Adobe Fonts is switched off or unavailable.
   ========================================================================== */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/montserrat-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }

:root {
	--off-white: #F0F0EC;
	--ash: #2D3232;
	--ash-deep: #262A2A;
	--olive: #91968C;
	--grey-text: #4A504E;
	--grey-soft: #A9ADA6;
	--grey-light: #C9CCC5;
	--hairline: #C9CBC4;
	--tile-bg: #3A4040;
	--font: "proxima-nova", "Montserrat", "Helvetica Neue", Arial, sans-serif; /* Proxima Nova via Adobe Fonts; Montserrat (self-hosted) is the fallback. */
	--pad-x: clamp(16px, 4vw, 64px);
	--bar-h: 140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--ash);
	color: var(--off-white);
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.8;
	letter-spacing: .08em;
	text-transform: uppercase;
	-webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: #fff; }
.is-light a:hover { color: var(--ash); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: var(--off-white); color: var(--ash); padding: 12px 18px; text-decoration: none;
}
p, li, td, th, blockquote { text-transform: none; letter-spacing: .02em; }

/* ---------- Header (logo, bar, burger) ---------- */
.site-header { position: sticky; top: 0; height: 0; z-index: 50; }
.site-header__bar {
	position: absolute; top: 0; left: 0; right: 0; height: var(--bar-h);
	background: var(--olive); opacity: 0; visibility: hidden;
	transition: opacity .45s ease, visibility .45s;
}
.site-header__logo {
	position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
	transition: opacity .45s ease, visibility .45s;
}
.site-header__logo img { width: 170px; }
.site-header__logo .logo-bar { display: none; }
.burger {
	position: absolute; top: 32px; right: clamp(16px, 3vw, 44px); width: 44px; height: 44px;
	display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--off-white);
	cursor: pointer; transition: top .45s ease, background .45s ease;
}
html.has-bar .site-header__bar { opacity: 1; visibility: visible; }
html.has-bar .site-header__logo .logo-hero { display: none; }
html.has-bar .site-header__logo .logo-bar { display: block; }
html.past-hero .site-header__logo { opacity: 0; visibility: hidden; }
html.past-hero .burger { top: 20px; background: var(--ash); }
@media (max-width: 600px) {
	:root { --bar-h: 112px; }
	.site-header__logo img { width: 140px; }
	.burger { top: 26px; }
}

/* ---------- Full-screen menu ---------- */
.menu {
	position: fixed; inset: 0; z-index: 100; background: var(--ash-deep); color: var(--off-white);
	display: grid; place-items: center; padding: 0 16px; opacity: 0; visibility: hidden;
	transition: opacity .45s ease, visibility .45s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__close {
	position: absolute; top: 36px; right: clamp(16px, 3vw, 44px); width: 44px; height: 44px;
	display: grid; place-items: center; border: 0; background: none; color: var(--off-white); cursor: pointer;
}
.menu__inner { display: grid; gap: 30px; justify-items: center; text-align: center; }
.menu__primary, .menu__secondary { list-style: none; margin: 0; padding: 0; display: grid; justify-items: center; }
.menu__primary { gap: 6px; }
.menu__primary a { display: block; text-decoration: none; font-weight: 300; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: .32em; margin-right: -.32em; padding: 8px 0; text-transform: uppercase; }
.menu__rule { width: 40px; height: 1px; background: var(--olive); }
.menu__secondary { gap: 2px; }
.menu__secondary a { display: block; text-decoration: none; font-size: 11px; font-weight: 500; letter-spacing: .3em; margin-right: -.3em; padding: 9px 0; text-transform: uppercase; }
.menu .menu__primary li, .menu .menu__secondary li, .menu .menu__rule { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; letter-spacing: inherit; }
.menu.is-open .menu__primary li, .menu.is-open .menu__secondary li, .menu.is-open .menu__rule { opacity: 1; transform: none; }
.menu.is-open li:nth-child(1) { transition-delay: .10s; } .menu.is-open li:nth-child(2) { transition-delay: .17s; }
.menu.is-open li:nth-child(3) { transition-delay: .24s; } .menu.is-open li:nth-child(4) { transition-delay: .31s; }
.menu.is-open li:nth-child(5) { transition-delay: .36s; } .menu.is-open .menu__rule { transition-delay: .30s; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; max-height: max(62.5vw, 900px); min-height: 560px; overflow: hidden; background: var(--ash); }
.hero--medium { height: 70vh; max-height: 720px; min-height: 480px; }
.hero--short { height: 56vh; max-height: 560px; min-height: 420px; }
.hero--404 { height: 48vh; max-height: 480px; min-height: 380px; }
.hero__img, .hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: rgba(45,50,50,.55); }
.hero__mono { position: absolute; left: 50%; top: 50%; width: clamp(84px, 6.6vw, 170px); transform: translate(-50%, -50%); opacity: .3; pointer-events: none; }
.hero__text { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 16px; }
.hero__text > div { display: grid; gap: clamp(12px, .8vw, 20px); justify-items: center; }
.hero h1 { margin: 0 calc(-1 * clamp(6px, .47vw, 12px)) 0 0; font-weight: 400; font-size: clamp(30px, 2.5vw, 64px); letter-spacing: clamp(6px, .47vw, 12px); line-height: 1.15; }
.hero__sub { --sub-track: .3em; margin: 0 calc(-1 * var(--sub-track)) 0 0; font-weight: 400; font-size: clamp(13px, .95vw, 24px); letter-spacing: var(--sub-track); text-transform: uppercase; } /* was 11–18px: now always reaches past the H mark */

/* Homepage slideshow */
.hero--home .hero__slide { opacity: 0; transition: opacity 1.6s ease; }
.hero--home .hero__slide.is-active { opacity: 1; }
.hero--home .hero__mono--large { position: absolute; left: 50%; top: 50%; height: 118%; width: auto; transform: translate(-50%, -50%); opacity: .08; pointer-events: none; }
.hero--home h1 { font-weight: 300; font-size: clamp(28px, 4.2vw, 58px); letter-spacing: .24em; margin-right: -.24em; line-height: 1.25; }
.hero--home .hero__text > div { gap: 34px; }
.division-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; }
.division-nav a { text-decoration: none; font-size: 11px; font-weight: 500; letter-spacing: .3em; padding: 15px 22px; border: 1px solid rgba(240,240,236,.7); }
.division-nav a:hover { background: rgba(240,240,236,.08); }
.scroll-cue { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; }
.scroll-cue svg { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(6px); opacity: 1; } }

/* ---------- Light sections & page content ---------- */
.is-light, .section-light { background: var(--off-white); color: var(--ash); }
.page-content { background: var(--off-white); color: var(--ash); }
.page-content:empty { display: none; }

/* Intro: heading + centred paragraphs */
.s-intro { background: var(--off-white); color: var(--ash); padding: 72px clamp(16px, 6vw, 96px); text-align: center; }
.s-intro > *, .s-intro .wp-block-group__inner-container > * { max-width: 900px; margin-left: auto !important; margin-right: auto !important; }
.s-intro h2, .s-heading { margin: 0 auto 26px; font-weight: 400; font-size: 20px; letter-spacing: 4px; text-indent: 4px; }
.s-intro p { margin: 0 auto 18px; font-size: 16px; line-height: 1.9; text-wrap: pretty; }
.s-intro p:last-child { margin-bottom: 0; }
.s-intro p.is-small, .s-intro .has-small-font-size { font-size: 14px; line-height: 1.8; color: var(--grey-text); }
.s-intro a { color: var(--ash); }
.s-intro--home { padding: 112px clamp(16px, 6vw, 96px) 96px; }
.s-intro--home h2 { font-size: 20px; font-weight: 400; letter-spacing: 4px; text-indent: 4px; margin-bottom: 26px; } /* H1: was 11px, now matches other section titles */
.s-intro--home h2::after { content: ""; display: block; width: 36px; height: 1px; background: var(--olive); margin: 26px auto 0; }
.s-intro--home p { font-weight: 300; }

/* Services grid (Residential/Commercial) */
.s-services { background: var(--off-white); color: var(--ash); padding: 8px var(--pad-x) 104px; }
.s-services > .wp-block-group__inner-container, .s-services__inner { max-width: 1320px; margin: 0 auto; }
.s-services__rule, .s-services hr { height: 1px; border: 0; background: var(--hairline); margin: 0 0 64px; max-width: none; }
.s-services .wp-block-columns, .services-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); grid-auto-rows: auto auto; gap: 14px clamp(48px, 6vw, 96px); margin: 0; }
.s-services .wp-block-column, .services-grid > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; gap: 14px; text-align: center; margin: 0 !important; flex-basis: auto !important; }
.s-services h3 { margin: 0; align-self: start; font-weight: 400; font-size: 18px; letter-spacing: 4px; }
.s-services p { margin: 0 0 28px; font-size: 16px; line-height: 26px; color: var(--grey-text); }

/* Facts row (Maintenance) */
.s-facts { background: var(--off-white); color: var(--ash); padding: 56px var(--pad-x) 72px; text-align: center; }
/* Main pages (Residential, Commercial, Maintenance): tighter run from the opening paragraph to the projects. */
.s-intro:has(+ .s-services), .s-intro:has(+ .s-facts) { padding-bottom: 48px; }
.s-intro + .s-services, .s-intro + .s-facts { padding-top: 0; }
.s-intro + .s-services { padding-bottom: 48px; }
.s-intro + .s-services hr, .s-intro + .s-services .s-services__rule { margin-bottom: 48px; }
.s-intro + .s-facts { padding-bottom: 48px; }
.s-facts .wp-block-columns, .facts-grid { max-width: 1100px; margin: 0 auto !important; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid rgba(145,150,140,.45); gap: 0; } /* top line only, like the Residential and Commercial rows */
.s-facts .wp-block-column { padding: 30px 16px; margin: 0 !important; display: grid; gap: 4px; }
.s-facts .wp-block-column > :first-child { margin: 0; font-weight: 300; font-size: 28.8px; letter-spacing: 4px; color: var(--olive); text-transform: uppercase; }
.s-facts .wp-block-column > :last-child { margin: 0; font-size: 12px; letter-spacing: 3px; color: var(--grey-text); text-transform: uppercase; }
@media (max-width: 600px) { .s-facts .wp-block-column > :first-child { font-size: 24px; } }

/* Dark two-column section (What we look after) */
.s-dark { background: var(--ash); color: var(--off-white); padding: 96px var(--pad-x); }
.s-dark > .wp-block-group__inner-container, .s-dark__inner { max-width: 1240px; margin: 0 auto; }
.s-dark h2 { margin: 0 auto 56px; text-align: center; font-weight: 400; font-size: 20px; letter-spacing: 4px; text-indent: 4px; color: var(--olive); }
.s-dark .wp-block-columns { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; margin: 0 auto 56px; align-items: start !important; } /* centred (was flush left inside the 1240px box); both headings on one line */
.s-dark .wp-block-column { text-align: center; margin: 0 !important; display: grid; gap: 12px; justify-items: center; align-content: start; }
.s-dark h3 { margin: 0; font-weight: 400; font-size: 18px; letter-spacing: 4px; }
.s-dark p { margin: 0; font-size: 16px; line-height: 26px; color: var(--grey-light); max-width: 46ch; }
.s-dark ul { list-style: none; margin: 0 auto 26px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 40px; font-size: 13px; letter-spacing: 2px; text-align: center; }
.s-dark ul li { padding: 15px 0; border-top: 1px solid rgba(240,240,236,.18); text-transform: uppercase; letter-spacing: 2px; }
.s-dark > .wp-block-group__inner-container > p:last-child, .s-dark .s-note { text-align: center; font-size: 14px; max-width: none; }

/* Split rows (Services page) */
.s-split { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); background: var(--ash); color: var(--off-white); margin: 0 !important; gap: 0 !important; }
.s-split.is-alt { background: var(--ash-deep); }
.s-split .wp-block-column { margin: 0 !important; }
.s-split figure { margin: 0; height: 100%; }
.s-split figure img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.s-split .split-text { padding: clamp(40px, 6vw, 96px); display: grid; gap: 24px; align-content: center; }
.s-split h2 { margin: 0; font-weight: 400; font-size: 20px; letter-spacing: 4px; }
.s-split p { margin: 0; font-size: 16px; line-height: 1.9; color: #E4E5E0; max-width: 48ch; }
.s-split ul { list-style: none; margin: 0; padding: 0; font-size: 12px; letter-spacing: 3px; max-width: 420px; }
.s-split li { padding: 12px 0; border-top: 1px solid rgba(145,150,140,.35); text-transform: uppercase; letter-spacing: 3px; }
@media (max-width: 1080px) { .s-split figure img { min-height: 360px; } .s-split.is-image-right .wp-block-column:last-child { order: -1; } }

/* Buttons */
.btn, .wp-block-button__link, .button-outline a {
	display: inline-block; text-decoration: none; text-transform: uppercase; font-family: inherit;
	font-size: 12px; font-weight: 500; letter-spacing: 3px; padding: 14px 22px;
	border: 1px solid var(--olive); background: none; color: inherit; border-radius: 0; cursor: pointer;
}
.btn--solid { background: var(--ash); color: var(--off-white); border-color: var(--ash); padding: 15px 34px; }
.btn--solid:hover { background: #1f2323; color: #fff; }
.btn--small { font-size: 10px; font-weight: 600; letter-spacing: .24em; padding: 10px 14px; }
.wp-block-buttons { margin: 0; }

/* Get in touch (H monogram CTA) */
.s-cta { background: var(--off-white); color: var(--ash); padding: 96px var(--pad-x); text-align: center; display: grid; gap: 24px; justify-items: center; }
.s-cta h2 { margin: 0; font-weight: 400; font-size: clamp(22px, 1.7vw, 24px); /* R4: was up to 28.8px */ letter-spacing: 4px; text-indent: 4px; }
.cta-h { position: relative; display: inline-grid; place-items: center; min-width: 110px; height: 110px; padding: 0 8px; text-decoration: none; color: var(--ash); }
.cta-h img { position: absolute; left: 50%; top: 50%; height: 110px; width: auto; opacity: .45; transform: translate(-50%, -50%); transition: opacity .4s ease, transform .4s ease; }
.cta-h span { position: relative; font-size: 16px; font-weight: 500; letter-spacing: 4px; padding-left: 4px; white-space: nowrap; }
.cta-h:hover { color: var(--ash); }
.cta-h:hover img { opacity: .8; transform: translate(-50%, -50%) scale(1.04); }

/* Featured in */
.s-featured { background: var(--off-white); color: var(--ash); padding: 80px var(--pad-x) 0; text-align: center; }
.s-featured__inner { max-width: 1100px; margin: 0 auto; display: grid; gap: 28px; }
.s-featured__title { font-size: 20px; font-weight: 400; letter-spacing: 4px; text-indent: 4px; } /* R3: was 12px */
.s-featured__inner { max-width: 1320px; }
/* R2: desktop shows all 8 logos still, in one line; narrower screens slide (two identical rows loop seamlessly). */
.s-featured__marquee { display: flex; overflow: hidden; }
.s-featured__list { list-style: none; margin: 0; padding: 0; display: flex; flex: 1 0 100%; justify-content: space-between; align-items: center; gap: 24px; }
.s-featured__list[aria-hidden] { display: none; }
.s-featured__list li { flex: 0 1 auto; display: flex; justify-content: center; align-items: center; min-height: 64px; text-transform: uppercase; letter-spacing: 3px; font-size: 14px; }
.s-featured__list a { display: inline-flex; color: inherit; text-decoration: none; transition: opacity .2s; }
.s-featured__list a:hover, .s-featured__list a:focus-visible { opacity: .6; }
.s-featured__logo { display: block; width: auto; height: 26px; max-width: 132px; }
.s-featured__logo--gq, .s-featured__logo--the-luxury-editor { height: 48px; }
.s-featured__logo--sleeper { height: 18px; } .s-featured__logo--hotel-designs { height: 22px; } .s-featured__logo--lux-expose { height: 32px; }
.s-featured__logo--tatler { height: 32px; } .s-featured__logo--ad { height: 44px; } .s-featured__logo--house-garden { height: 46px; }
.s-featured__logo--design-milk { height: 64px; max-width: 150px; } .s-featured__logo--archello { height: 24px; } .s-featured__logo--yuzu { height: 30px; } .s-featured__logo--yinjispace { height: 18px; }
.s-featured__logo--vogue { height: 36px; max-width: 170px; } /* R5: Vogue slightly larger to draw the eye */
@media (max-width: 1100px) {
	.s-featured__marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
	.s-featured__list, .s-featured__list[aria-hidden] { display: flex; flex: none; gap: 0; justify-content: flex-start; animation: hieron-marquee 32s linear infinite; }
	.s-featured__list li { flex: none; width: 190px; }
	.s-featured__marquee:hover .s-featured__list, .s-featured__marquee:focus-within .s-featured__list { animation-play-state: paused; }
}
/* More than 8 articles: slide on every screen size (each logo keeps its own article link). */
.s-featured__marquee.is-sliding { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.s-featured__marquee.is-sliding .s-featured__list, .s-featured__marquee.is-sliding .s-featured__list[aria-hidden] { display: flex; flex: none; gap: 0; justify-content: flex-start; animation: hieron-marquee 60s linear infinite; }
.s-featured__marquee.is-sliding .s-featured__list li { flex: none; width: 220px; }
.s-featured__marquee.is-sliding:hover .s-featured__list, .s-featured__marquee.is-sliding:focus-within .s-featured__list { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .s-featured__marquee.is-sliding { mask-image: none; -webkit-mask-image: none; } .s-featured__marquee.is-sliding .s-featured__list { animation: none; flex-wrap: wrap; justify-content: center; flex: 1 0 100%; } .s-featured__marquee.is-sliding .s-featured__list[aria-hidden] { display: none; } }
.s-featured__text { font-size: 15px; letter-spacing: .2em; font-weight: 500; white-space: nowrap; } /* until a logo file is added */
@keyframes hieron-marquee { to { transform: translateX(-100%); } }
@media (max-width: 1100px) and (prefers-reduced-motion: reduce) {
	.s-featured__marquee { mask-image: none; -webkit-mask-image: none; }
	.s-featured__list { animation: none; flex-wrap: wrap; justify-content: center; flex: 1 0 100%; }
	.s-featured__list[aria-hidden] { display: none; }
	.s-featured__list li { width: 45%; }
}
.s-featured__rule { height: 1px; background: var(--hairline); margin: 40px 0 0; }
.s-featured + .s-cta { padding-top: 28px; }

/* ---------- Project tiles ---------- */
.s-projects { background: var(--ash); }
.s-projects__title { margin: 0; padding: 56px 16px 36px 20px; text-align: center; font-weight: 400; font-size: 20px; letter-spacing: 4px; }
.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tile-grid + .tile-grid { margin-top: 6px; }
.tile-grid[hidden] { display: none; }
@media (max-width: 760px) { .tile-grid { grid-template-columns: 1fr; } }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; text-decoration: none; background: var(--tile-bg); color: var(--off-white); }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.tile:hover > img { transform: scale(1.03); }
.tile__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(45,50,50,0) 55%, rgba(45,50,50,.75) 100%); }
.tile__txt { position: absolute; left: 32px; bottom: 30px; right: 72px; display: grid; gap: 4px; }
.tile__name { font-size: 20px; font-weight: 400; letter-spacing: 4px; }
.tile__loc { font-size: 12px; letter-spacing: 3px; color: #D6D8D2; }
.tile__desc { text-transform: none; font-size: 15px; color: #E4E5E0; max-width: 40ch; letter-spacing: .02em; }
.tile__h { position: absolute; right: 28px; bottom: 28px; opacity: .85; transition: opacity .3s ease; }
.tile__h img { width: 26px; }
.tile:hover .tile__h { opacity: 1; }
.tile__tag { position: absolute; top: 26px; left: 32px; font-size: 11px; font-weight: 500; letter-spacing: 3px; padding: 7px 12px; border: 1px solid rgba(240,240,236,.75); background: rgba(45,50,50,.35); }
@media (max-width: 600px) {
	.tile { aspect-ratio: auto; min-height: 300px; }
	.tile__txt { left: 20px; right: 60px; bottom: 24px; }
	.tile__h { right: 20px; bottom: 24px; }
	.tile__tag { top: 20px; left: 20px; }
	.tile--tall { min-height: 400px; }
	.tile--tall .tile__shade { background: linear-gradient(180deg, rgba(45,50,50,0) 25%, rgba(45,50,50,.85) 100%); }
}
.s-projects__more { padding: 56px 16px 96px; display: grid; justify-items: center; }
.s-projects__more button { color: var(--off-white); }

/* ---------- Homepage project carousel ---------- */
.home-projects { background: linear-gradient(180deg, var(--off-white) 0%, var(--off-white) 50%, var(--ash) 50%, var(--ash) 100%); padding: 0 clamp(16px, 3vw, 48px); }
.carousel { position: relative; height: 560px; overflow: hidden; background: var(--ash); }
.carousel__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.carousel__slide.is-active { opacity: 1; visibility: visible; }
.carousel__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carousel__shade { position: absolute; inset: 0; background: rgba(45,50,50,.5); }
.carousel__text { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 96px; }
.carousel__text > div { display: grid; gap: 12px; justify-items: center; }
.carousel__name { font-weight: 400; font-size: clamp(26px, 3vw, 40px); letter-spacing: .14em; margin-right: -.14em; line-height: 1.2; }
.carousel__meta { font-size: 11px; letter-spacing: .32em; margin-right: -.32em; color: #E4E5E0; }
.carousel__link { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); white-space: nowrap; }
.carousel__label { position: absolute; top: 36px; left: 0; right: 0; display: grid; justify-items: center; gap: 12px; pointer-events: none; z-index: 2; font-size: 12px; font-weight: 500; letter-spacing: .24em; }
.carousel__label::after { content: ""; width: 24px; height: 1px; background: var(--olive); }
.carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; z-index: 3; color: var(--grey-light); }
.carousel__btn--prev { left: 20px; } .carousel__btn--next { right: 20px; }
@media (max-width: 600px) { .carousel { height: 480px; } .carousel__text { padding: 0 56px; } .carousel__btn--prev { left: 4px; } .carousel__btn--next { right: 4px; } }

/* ---------- Project page ---------- */
.project-details { background: var(--off-white); color: var(--ash); padding: 64px clamp(16px, 6vw, 96px) 56px; text-align: center; }
.project-details__inner { max-width: 900px; margin: 0 auto; display: grid; gap: 26px; justify-items: center; }
.project-details__head { display: grid; gap: 12px; justify-items: center; }
.project-details__head img { width: 26px; }
.project-details h2 { margin: 0; font-weight: 400; font-size: 16px; letter-spacing: .3em; text-indent: .3em; }
.project-details__loc { font-size: 12px; letter-spacing: .3em; text-indent: .3em; color: var(--grey-text); }
.project-details__text p { margin: 0 0 18px; font-size: 16px; line-height: 1.9; text-wrap: pretty; }
.project-details__text p:last-child { margin-bottom: 0; }
.project-facts { margin: 8px 0 0; display: grid; gap: 10px; font-size: 11px; letter-spacing: .26em; }
.project-facts div { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.project-facts dt { color: #6A706C; }
.project-facts dd { margin: 0; }
.project-awards { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 28px; }
.project-awards img { display: block; width: auto; height: 120px; max-width: 160px; object-fit: contain; }
@media (max-width: 600px) { .project-awards img { height: 92px; } }
/* Featured in: label on its own line, publications centred underneath (two lines on desktop). */
.project-facts div.project-facts__press { flex-direction: column; align-items: center; gap: 6px; margin-top: 4px; }
.project-facts__press dd { max-width: 760px; line-height: 2; text-wrap: balance; }
.project-facts__press dd a { white-space: nowrap; }
.project-facts__press a { color: inherit; text-decoration: underline; text-decoration-color: var(--olive); text-underline-offset: 4px; }
.project-facts__press a:hover, .project-facts__press a:focus-visible { color: var(--olive); }
.project-gallery { background: var(--ash); padding: 0 clamp(16px, 2vw, 32px) 96px; }
.pgal { position: relative; isolation: isolate; container-type: inline-size; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pgal-band { position: absolute; z-index: -1; top: -1px; left: calc(-1 * clamp(16px, 2vw, 32px)); right: calc(-1 * clamp(16px, 2vw, 32px)); height: calc((100cqw - 12px) / 6 + 1px); background: var(--off-white); }
.pgal-item { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.pgal-item.in, .no-js .pgal-item { opacity: 1; transform: none; }
.pgal-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: filter .4s ease; }
.pgal-item:hover img { filter: brightness(1.06); }
@media (max-width: 800px) { .pgal { grid-template-columns: 1fr; } .pgal-band { height: calc(100cqw / 3 + 1px); } }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(31,35,35,.97); display: grid; grid-template-rows: auto 1fr auto; }
.lightbox[hidden] { display: none; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 20px clamp(16px, 3vw, 44px); font-size: 12px; letter-spacing: 3px; color: var(--grey-light); }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 clamp(56px, 7vw, 120px); min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox button { width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--off-white); }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: clamp(4px, 2vw, 32px); } .lightbox__next { right: clamp(4px, 2vw, 32px); }
.lightbox__foot { height: 64px; }

/* ---------- Team ---------- */
.s-team { padding: 56px var(--pad-x) 104px; }
.s-team h2 { margin: 0 0 40px; text-align: center; font-weight: 400; font-size: 20px; letter-spacing: 4px; text-indent: 4px; }
.team-grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, clamp(140px, 40vw, 220px)), 1fr)); align-items: start; gap: 40px 20px; list-style: none; padding: 0; }
.team-card { display: grid; gap: 14px; align-content: start; text-align: center; }
.team-card__photo { width: 100%; aspect-ratio: 4 / 5; background: var(--tile-bg); display: grid; place-items: center; overflow: hidden; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__photo .placeholder { width: 34px; opacity: .25; }
.team-card__name { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; }
.team-card__role { font-size: 11px; letter-spacing: 2.5px; color: var(--grey-soft); text-transform: uppercase; }

/* ---------- Vacancies ---------- */
.s-vacancies { padding: 56px var(--pad-x) 96px; }
.s-vacancies h2 { margin: 0 0 40px; text-align: center; font-weight: 400; font-size: 20px; letter-spacing: 4px; text-indent: 4px; }
.vacancies { max-width: 1000px; margin: 0 auto; border-top: 1px solid rgba(240,240,236,.18); list-style: none; padding: 0; }
.vacancies a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 26px 4px; border-bottom: 1px solid rgba(240,240,236,.18); text-decoration: none; }
.vacancies__title { display: block; font-size: 16px; letter-spacing: 3px; }
.vacancies__meta { display: block; font-size: 11px; letter-spacing: 2.5px; color: var(--grey-soft); }
.vacancies__apply { font-size: 11px; font-weight: 500; letter-spacing: 3px; color: var(--olive); }
.vacancies-empty { max-width: 1000px; margin: 0 auto; text-align: center; font-size: 16px; line-height: 1.9; color: var(--grey-light); }

/* ---------- Contact ---------- */
.s-contact { background: var(--off-white); color: var(--ash); padding: 80px clamp(16px, 5vw, 80px) 104px; scroll-margin-top: 120px; }
.s-contact__grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 64px clamp(40px, 7vw, 120px); align-items: start; }
.s-contact__info { display: grid; gap: 34px; align-content: start; }
.s-contact__info h2 { margin: 0; font-weight: 400; font-size: 20px; letter-spacing: 4px; }
.s-contact__info p { margin: 0; font-size: 16px; line-height: 1.9; max-width: 44ch; }
.contact-lines { display: grid; gap: 22px; font-size: 13px; letter-spacing: 3px; }
.contact-lines div { display: grid; gap: 6px; }
.contact-lines span { font-size: 11px; color: var(--grey-text); }
.contact-lines a { text-decoration: none; }
.socials { display: flex; gap: 18px; }
.socials a { display: inline-flex; }
.contact-form { display: grid; gap: 30px; }
.contact-form .field { display: grid; gap: 4px; }
.contact-form label { font-size: 11px; letter-spacing: 3px; color: var(--grey-text); }
.contact-form input, .contact-form select, .contact-form textarea {
	width: 100%; font-family: inherit; font-size: 15px; color: var(--ash); background: transparent; border: 0; border-bottom: 1px solid var(--grey-soft);
	padding: 10px 0 12px; text-transform: none; letter-spacing: .02em; border-radius: 0;
}
.contact-form select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ash) 50%), linear-gradient(135deg, var(--ash) 50%, transparent 50%); background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--ash); }
.contact-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__note { margin: -10px 0 0; font-size: 12px; color: var(--grey-text); }
.contact-form__note a { color: var(--ash); }
.contact-form__errors { border-left: 2px solid #9b4b3f; padding: 4px 0 4px 16px; color: #7a3328; }
.contact-form__errors p, .contact-form__errors li { font-size: 14px; }
.contact-form__errors ul { margin: 6px 0 0; padding-left: 18px; }
.contact-form__sent h3 { margin: 0 0 12px; font-weight: 400; font-size: 20px; letter-spacing: 4px; }
.contact-form__sent p { margin: 0; font-size: 16px; line-height: 1.9; }
.cf-turnstile { min-height: 0; }

/* ---------- Legal pages (Privacy, Recruitment) ---------- */
.s-legal { background: var(--off-white); color: var(--ash); padding: 72px clamp(16px, 5vw, 80px) 104px; }
.s-legal__grid { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 48px clamp(32px, 6vw, 96px); align-items: flex-start; }
.legal-toc { flex: 1 1 220px; display: grid; gap: 14px; align-content: start; font-size: 11px; letter-spacing: 2.5px; position: sticky; top: 24px; }
.legal-toc > span { color: var(--grey-text); }
.legal-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.legal-toc li { text-transform: uppercase; letter-spacing: 2.5px; }
.legal-toc a { color: var(--ash); text-decoration: none; }
@media (max-width: 860px) { .legal-toc { position: static; } }
.legal-body { flex: 999 1 560px; min-width: 0; max-width: 760px; }
.legal-body h2 { margin: 40px 0 16px; padding-top: 12px; font-weight: 400; font-size: 18px; letter-spacing: 4px; scroll-margin-top: 24px; }
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.85; letter-spacing: .01em; }
.legal-body p { margin: 0 0 16px; }
.legal-body ul { margin: 0 0 16px; padding-left: 20px; }
.legal-body a { color: var(--ash); }
.legal-body .wp-block-table, .legal-body figure.wp-block-table { margin: 0 0 16px; overflow-x: auto; }
.legal-body table { width: 100%; border-collapse: collapse; border: 1px solid var(--hairline); }
.legal-body th { padding: 12px 14px; text-align: left; font-weight: 500; font-size: 11px; letter-spacing: 2.5px; color: var(--off-white); background: var(--olive); text-transform: uppercase; }
.legal-body td { padding: 12px 14px; font-size: 15px; line-height: 1.6; vertical-align: top; border-top: 1px solid var(--hairline); }
.legal-ref { margin-top: 40px !important; font-size: 12px !important; color: var(--grey-text); }

/* ---------- 404 ---------- */
.s-404 { background: var(--off-white); color: var(--ash); padding: 80px var(--pad-x) 104px; text-align: center; display: grid; gap: 26px; justify-items: center; }
.s-404 img { width: 26px; }
.s-404 h2 { margin: 0; font-weight: 400; font-size: 20px; letter-spacing: 4px; }
.s-404 p { margin: 0; font-size: 16px; line-height: 1.9; max-width: 52ch; }
.s-404 nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.s-404 nav a { color: var(--ash); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ash); color: var(--off-white); padding: 88px var(--pad-x) 36px; font-weight: 300; }
.site-footer__inner { max-width: 1320px; margin: 0 auto; display: grid; gap: 40px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 48px 40px; }
.site-footer__logo img { width: 132px; }
.site-footer__col { display: grid; gap: 14px; align-content: start; font-size: 10px; letter-spacing: .26em; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.site-footer__col li { letter-spacing: .26em; text-transform: uppercase; }
.site-footer__col a { text-decoration: none; }
.site-footer__label { color: var(--olive); letter-spacing: .3em; margin-bottom: 8px; }
.site-footer__address { display: grid; gap: 4px; }
.site-footer__address span:first-child { color: var(--olive); }
.site-footer__address address { font-style: normal; line-height: 1.7; }
.site-footer .socials { gap: 18px; padding-top: 6px; }
.accreditations { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; padding: 16px 0 8px; list-style: none; margin: 0; }
.accreditations img { height: 50px; width: auto; }
.accreditations .acc-iso img { height: 58px; } .accreditations .acc-constructionline img { height: 42px; }
.accreditations .acc-acclaim img { height: 30px; } .accreditations .acc-chas img { height: 50px; }
.accreditations .acc-citb img { height: 32px; } .accreditations .acc-ccs img { height: 56px; }
.accreditations .acc-livingwage img { height: 48px; } .accreditations .acc-cyber img { height: 36px; }
.accreditations .acc-planet img { height: 34px; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 10px; letter-spacing: .18em; color: var(--grey-soft); }
.site-footer__legal a { text-decoration: none; color: var(--grey-soft); }

/* ---------- Photo tiles built in the editor (Maintenance) ---------- */
.s-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: var(--ash); margin: 0; }
@media (max-width: 760px) { .s-tiles { grid-template-columns: 1fr; } }
.s-tiles .tile { margin: 0; }
.s-tiles .tile > .wp-block-image { position: absolute; inset: 0; margin: 0; }
.s-tiles .tile > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.s-tiles .tile:hover > .wp-block-image img { transform: scale(1.03); }
.s-tiles .tile__txt p { margin: 0; }
.s-tiles .tile__name { order: 2; } .s-tiles .tile__loc { order: 1; } .s-tiles .tile__desc { order: 3; }

/* Editor-built sections: neutralise WordPress layout spacing inside our sections */
.page-content > * { margin-top: 0; margin-bottom: 0; }
.page-content .wp-block-group, .page-content .wp-block-columns { margin-block-start: 0; }
.s-dark .s-note { margin: 0 auto; color: var(--grey-light); }
.split-text .wp-block-buttons { margin-top: 8px; }
.s-split .wp-block-button__link { color: var(--off-white); }
.s-split .wp-block-button__link:hover { background: rgba(240,240,236,.08); }
.carousel__label span { display: block; }
.carousel__link { color: var(--off-white); border-color: rgba(240,240,236,.7); }

.s-dark > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.s-tiles .tile__txt p.tile__loc, .s-tiles .tile__txt p.tile__name { text-transform: uppercase; }
.s-tiles .tile__txt p.tile__loc { letter-spacing: 3px; }
.s-tiles .tile__txt p.tile__name { letter-spacing: 4px; }

/* Contact info column: text comes from the page editor */
.s-contact__info > h2, .s-contact__info > .wp-block-heading { margin: 0; font-weight: 400; font-size: 20px; letter-spacing: 4px; }

/* 404 */
.s-404 { padding-top: 88px; gap: 28px; }
.s-404 img { width: 34px; }
.s-404 nav { gap: 14px; padding-top: 8px; }
.s-404 nav a { border-color: var(--ash); }

/* Fade-in on scroll (sections opt in with .reveal) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.pgal-item, .reveal { opacity: 1; transform: none; }
}

/* Print */
@media print {
	.site-header, .menu, .burger, .scroll-cue, .carousel__btn, .lightbox { display: none !important; }
	body { background: #fff; color: #000; }
}

/* ---------- Condensed spacing (Sophie, Nov 2026): about a third less vertical space between sections, site-wide ---------- */
.s-intro { padding-top: 56px; padding-bottom: 56px; }
.s-intro--home { padding-top: 80px; padding-bottom: 64px; }
.s-services { padding-bottom: 64px; }
.s-services__rule, .s-services hr { margin-bottom: 48px; }
.s-facts { padding-top: 40px; padding-bottom: 48px; }
.s-dark { padding-top: 64px; padding-bottom: 64px; }
.s-dark h2 { margin-bottom: 40px; }
.s-dark .wp-block-columns { gap: 40px; margin-bottom: 40px; }
.s-split .split-text { padding: clamp(32px, 4.5vw, 72px); }
.s-cta { padding-top: 64px; padding-bottom: 64px; }
.s-featured { padding-top: 56px; }
.s-featured__rule { margin-top: 32px; }
.s-projects__title { padding-top: 40px; padding-bottom: 28px; }
.s-projects__more { padding-top: 40px; padding-bottom: 64px; }
.project-details { padding-top: 48px; padding-bottom: 40px; }
.project-gallery { padding-bottom: 64px; }
.s-team { padding-top: 40px; padding-bottom: 72px; }
.s-vacancies { padding-top: 40px; padding-bottom: 64px; }
.s-contact { padding-top: 56px; padding-bottom: 72px; }
.s-legal { padding-top: 56px; padding-bottom: 72px; }
.s-404 { padding-top: 64px; padding-bottom: 72px; }
.site-footer { padding-top: 64px; }

/* Team: rows wrap and an unfinished last row is centred (Sophie, Nov 2026). 5 across on desktop, 4 / 3 / 2 on smaller screens. */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 20px; }
.team-grid > .team-card { flex: 0 0 calc((100% - 4 * 20px) / 5); min-width: 0; }
@media (max-width: 1100px) { .team-grid > .team-card { flex-basis: calc((100% - 3 * 20px) / 4); } }
@media (max-width: 860px) { .team-grid > .team-card { flex-basis: calc((100% - 2 * 20px) / 3); } }
@media (max-width: 560px) { .team-grid > .team-card { flex-basis: calc((100% - 20px) / 2); } }
