/* =========================================================================
   0. Design tokens , from the Atelier theme, plus drafting tones
   ====================================================================== */
:root {
	--ink: #111211;
	--ink-soft: #4a4d4a;
	--line: #e9e8e6;
	--line-strong: #d2d1cd;
	--paper: #ffffff;
	--paper-2: #f4f4f3;
	--surface: #ffffff;
	--white: #ffffff;
	--accent: #f4621d;         /* brighter orange */
	--on-accent: #17120e;      /* text on orange - white fails contrast here */
	--burnt: #ab4f24;          /* sunburnt, browner: the form panel */
	--ink-mute: #adaca6;
	--r-lg: 18px;
	--r-md: 12px;
	--r-pill: 100px;
	--sheet: #f1eee8;
	--draft-ink: #2a2a27;
	--bench: #b5aea2;
	--max: 1400px;
	--gutter: clamp(20px, 5vw, 64px);
	--fs-base: clamp(16px, 1.05vw, 18px);
	--font: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--font-display: 'Archivo Expanded', 'Archivo', Helvetica, Arial, sans-serif;
	--ease: cubic-bezier(.22,.61,.36,1);
	--horizon: 31.9%;
	--coast: url("../img/plans-on-site.jpg");
	--head-h: 76px;
}

/* This is a preview of a light-only WordPress theme, so it commits to one
   look and paints every surface explicitly rather than following the host. */

/* =========================================================================
   1. Reset / base
   ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
section[id] { scroll-margin-top: calc(var(--head-h) + 12px); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-base);
	font-weight: 300;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 { font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
p { margin: 0 0 1.2em; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 130px); }
.eyebrow {
	font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
	font-weight: 500; color: var(--ink-soft); margin: 0 0 1.4em;
	display: inline-flex; align-items: center; gap: .5em;
}
.eyebrow::before { content: "("; color: var(--accent); flex: none; }
.eyebrow::after { content: ")"; color: var(--accent); flex: none; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 1000; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: .6em;
	padding: .95em 1.7em; border: 1px solid var(--ink); border-radius: var(--r-pill);
	font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
	background: transparent; color: var(--ink); cursor: pointer;
	transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-invert { border-color: var(--white); color: var(--white); }
.btn-invert:hover { background: var(--white); color: var(--ink); }
.btn-accent { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: transparent; color: var(--accent); }

/* Quiet text link with a sweeping rule */
.link-arrow {
	display: inline-flex; align-items: center; gap: .55em; position: relative;
	font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
	background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink);
}
.link-arrow::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow span:last-child { transition: transform .4s var(--ease); }
.link-arrow:hover span:last-child { transform: translateX(6px); }

/* =========================================================================
   2. Header
   ====================================================================== */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	color: var(--ink);
	background: rgba(255,255,255,.66);
	-webkit-backdrop-filter: saturate(1.4) blur(16px);
	backdrop-filter: saturate(1.4) blur(16px);
	border-bottom: 1px solid rgba(17,18,17,.08);
	padding-top: env(safe-area-inset-top, 0px);
	transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.site-header.is-light {
	color: #fff;
	background: rgba(18,18,20,.3);
	-webkit-backdrop-filter: saturate(1.2) blur(16px);
	backdrop-filter: saturate(1.2) blur(16px);
	border-bottom-color: rgba(255,255,255,.18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--head-h); }
.brand { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; color: inherit; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; display: block; }
.brand-tag { display: block; font-family: var(--font); font-weight: 400; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: currentColor; opacity: .65; }
.primary-nav ul { list-style: none; display: flex; gap: clamp(18px, 2.4vw, 40px); margin: 0; padding: 0; }
.primary-nav a { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; position: relative; padding: 4px 0; color: inherit; background: none; border: 0; cursor: pointer; }
.primary-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--accent); transition: width .3s var(--ease); }
.primary-nav a:hover::after, .primary-nav li.is-current button::after { width: 100%; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; align-items: center; justify-content: center; opacity: .8; flex: none; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 1.5px; background: currentColor; position: absolute; transition: transform .3s var(--ease); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================================
   3. Home hero , text first, full-bleed drawing band beneath
   ====================================================================== */
.home-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.hero-copy-col {
	display: flex; align-items: center;
	padding-block: calc(var(--head-h) + clamp(30px, 4vw, 60px)) clamp(30px, 4vw, 60px);
	padding-right: clamp(24px, 3.5vw, 64px);
	padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.hero-lead { width: 100%; }
.home-hero .eyebrow { margin-bottom: 1.1em; }
.home-hero h1 { font-size: clamp(2.3rem, 4.3vw, 3.9rem); max-width: 13ch; margin: 0; }
.home-hero .lede { font-size: clamp(1.02rem, 1.35vw, 1.22rem); color: var(--ink-soft); max-width: 46ch; font-weight: 300; margin: clamp(18px,2vw,26px) 0 0; }
.hero-panel { position: relative; overflow: hidden; min-height: 460px; border-radius: 0; }
.hero-slides, .hero-slide { border-radius: 0; }
.hero-slides { position: absolute; inset: 0; background: var(--paper-2); }
.hero-slide {
	position: absolute; inset: 0;
	background-size: cover; background-position: 50% 50%; background-repeat: no-repeat;
	opacity: 0; transition: opacity 1.1s var(--ease);
}
.hero-slide.is-on { opacity: 1; }
.hero-dots { position: absolute; right: clamp(16px,2vw,30px); bottom: clamp(18px,2.4vw,32px); z-index: 3; display: flex; gap: 8px; }
.hero-dots button { width: 26px; height: 3px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.45); cursor: pointer; transition: background .3s; }
.hero-dots button.is-on { background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }
.hero-panel .float-card { position: absolute; left: clamp(16px,2vw,30px); bottom: clamp(18px,2.4vw,32px); z-index: 2; }
.hero-actions { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); flex-wrap: wrap; margin-top: clamp(22px, 2.6vw, 32px); }

.hero-band { position: relative; width: 100%; aspect-ratio: 16/7; min-height: 320px; max-height: 76vh; overflow: hidden; background: var(--bench); }
.hero-band svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.float-card {
	pointer-events: auto; display: flex; align-items: center; gap: 14px; cursor: pointer; text-align: left; font: inherit;
	max-width: min(370px, 82vw); padding: 10px 18px 10px 10px;
	background: rgba(255,255,255,.93); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border: 1px solid var(--line); border-radius: var(--r-lg);
	box-shadow: 0 20px 44px -22px rgba(40,28,18,.6);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.float-card:hover { transform: translateY(-3px); box-shadow: 0 26px 52px -22px rgba(40,28,18,.66); }
.float-thumb { width: 62px; height: 62px; flex: none; border-radius: var(--r-md); overflow: hidden; background: var(--paper-2); }
.float-thumb img { width: 100%; height: 100%; object-fit: cover; }
.float-meta { min-width: 0; }
.float-label { display: block; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.float-name { display: block; font-size: .92rem; font-weight: 500; color: #17150f; line-height: 1.25; margin-top: 4px; }
.float-arrow { margin-left: auto; color: #17150f; transition: transform .35s var(--ease); }
.float-card:hover .float-arrow { transform: translateX(5px); }
@media (max-width: 560px) { .float-card { display: none; } }

.hero-caption {
	display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
	padding-block: 14px 0; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}
.hero-caption .is-note { color: var(--accent); }

.hero-plain { padding: calc(var(--head-h) + clamp(48px, 8vw, 110px)) 0 clamp(30px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.hero-plain h1 { max-width: 18ch; }
.hero-plain .lede { font-size: clamp(1.1rem, 1.6vw, 1.4rem); color: var(--ink-soft); max-width: 52ch; font-weight: 300; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin: 0; max-width: 14ch; }

/* =========================================================================
   4. Project grid + cards
   ====================================================================== */
.project-filters { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0 0 20px; margin: 0 0 clamp(28px,4vw,48px); border-bottom: 1px solid var(--line); }
.project-filters button { background: none; border: none; padding: 4px 0; cursor: pointer; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); position: relative; }
.project-filters button.is-active, .project-filters button:hover { color: var(--ink); }
.project-filters button.is-active::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--accent); }

.marquee {
	overflow: hidden; position: relative;
	/* room inside the clip box for the hover lift and its shadow */
	padding-block: 10px 36px; margin-bottom: -20px;
}
.marquee::before, .marquee::after {
	content: ""; position: absolute; top: 0; bottom: 0; width: clamp(40px, 8vw, 120px); z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--paper-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--paper-2), transparent); }
.marquee-track { display: flex; gap: clamp(16px,2vw,28px); width: max-content; animation: mm-marquee 48s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee .project-card { width: clamp(320px, 38vw, 580px); flex: none; margin-bottom: 0; }
.marquee .project-card .blurb { display: none !important; }
.marquee .project-card .thumb { aspect-ratio: 4/3; }
@keyframes mm-marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@media (prefers-reduced-motion: reduce) {
	.marquee { overflow-x: auto; }
	.marquee-track { animation: none; }
}

.project-grid { columns: 2; column-gap: clamp(20px,3vw,40px); }
.project-grid.cols-3 { columns: 3; }
.project-card {
	display: block; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; padding: 0;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
	break-inside: avoid; -webkit-column-break-inside: avoid; margin-bottom: clamp(20px,3vw,44px);
	transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.project-card[hidden] { display: none !important; }
.project-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 16px 36px -20px rgba(74,42,26,.34); }
.project-card .thumb { display: block; position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: var(--ar, 3/2); max-width: 100%; }
.project-card .thumb img { position: absolute; inset: 0; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .thumb img { transform: scale(1.05); }
.project-card .thumb .idx { position: absolute; top: 14px; left: 14px; color: #fff; font-size: .7rem; letter-spacing: .18em; mix-blend-mode: difference; z-index: 2; font-variant-numeric: tabular-nums; }
.project-card .meta { display: block; padding: 20px clamp(16px,1.4vw,22px) clamp(20px,1.8vw,26px); }
.project-card .meta .tags { margin-bottom: 14px; }
.project-card .title { font-size: clamp(1.15rem,1.6vw,1.5rem); font-weight: 500; margin: 0 0 8px; }
.project-card .blurb { color: var(--ink-soft); font-size: .95rem; margin: 8px 0 0; }
.card-loc { display: flex; width: 100%; align-items: center; gap: .45em; margin-top: 7px; font-size: .71rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--accent); }
.card-loc .pin { width: 11px; height: 13px; flex: none; }
.card-cta {
	display: inline-flex; clear: both; align-items: center; gap: .55em; margin-top: 14px; position: relative;
	font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--ink);
}
.card-cta::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.project-card:hover .card-cta { color: var(--accent); }
.project-card:hover .card-cta::after { transform: scaleX(1); }
.card-cta-arrow { display: inline-block; transition: transform .4s var(--ease); }
.project-card:hover .card-cta-arrow { transform: translateX(6px); }

/* Hairline tags */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.tags li {
	font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
	border: 1px solid var(--line-strong); border-radius: 100px; padding: 4px 11px; line-height: 1;
}

/* =========================================================================
   5. What we do - service cards
   ====================================================================== */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(16px, 1.8vw, 24px); }
.service {
	display: flex; flex-direction: column;
	border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg);
	padding: clamp(24px, 2.4vw, 34px);
	transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.service { grid-column: span 2; }
.service:hover { border-color: var(--accent); box-shadow: 0 16px 36px -20px rgba(74,42,26,.3); }
.service-icon-wrap {
	width: 62px; height: 62px; flex: none; display: grid; place-items: center;
	border-radius: var(--r-md); background: rgba(244,98,29,.14);
	transition: background .35s var(--ease);
}
.service-icon { width: 32px; height: 32px; color: var(--accent); transition: color .35s var(--ease); }
.service:hover .service-icon-wrap { background: var(--accent); }
.service:hover .service-icon { color: #fff; }
.service h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.02rem,1.25vw,1.2rem); letter-spacing: .01em; margin: 22px 0 10px; }
.service p { color: var(--ink-soft); font-size: .94rem; margin: 0 0 20px; }
.service-cta {
	margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .5em;
	background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
	font-size: .73rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
	color: var(--ink); transition: color .35s var(--ease);
}
.service-cta-arrow { transition: transform .35s var(--ease); }
.service:hover .service-cta { color: var(--accent); }
.service:hover .service-cta-arrow { transform: translateX(5px); }

/* =========================================================================
   6. About block
   ====================================================================== */
.tint { background: var(--paper-2); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: rgba(255,255,255,.6); }
.section-dark .h-soft { color: rgba(255,255,255,.34); }
.section-dark .why-list { border-top-color: rgba(255,255,255,.24); }
.section-dark .why-item { border-bottom-color: rgba(255,255,255,.12); }
.section-dark .why-item p { color: rgba(255,255,255,.64); }
.section-dark .why-icon { color: rgba(255,255,255,.28); }
.section-dark .why-item:hover .why-icon { color: var(--accent); }

/* Locations */
.locations { background: var(--ink); color: #fff; padding-top: 0; }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px,2vw,26px); }
.loc-tile {
	display: flex; flex-direction: column;
	background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
	border-radius: var(--r-lg); padding: clamp(22px,2.4vw,32px);
	transition: border-color .35s var(--ease), background .35s var(--ease);
}
.loc-tile:hover { border-color: rgba(244,98,29,.55); background: rgba(244,98,29,.06); }
.loc-label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.48); }
.loc-map { margin: clamp(16px,2.2vw,26px) 0 clamp(18px,2.4vw,30px); }
.loc-map svg { display: block; width: 100%; height: auto; }
.loc-tile h3 { margin: 0 0 8px; font-size: clamp(1.1rem,1.5vw,1.4rem); font-weight: 500; }
.loc-tile p { margin: 0; color: rgba(255,255,255,.62); font-size: .94rem; max-width: 42ch; }
@media (max-width: 720px) { .loc-grid { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,64px); align-items: start; }
.two-col .content-area { line-height: 1.75; }
.two-col .content-area p { color: var(--ink-soft); }
.two-col .content-area p:last-child { margin-bottom: 0; }
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; border-top: 1px solid var(--line-strong); padding-top: 32px; margin-top: clamp(36px,5vw,56px); }
.stat-row .num { font-family: var(--font-display); font-size: clamp(2rem,4vw,3.2rem); font-weight: 600; display: block; font-variant-numeric: tabular-nums; }
.stat-row .lbl { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* =========================================================================
   7. Single project
   ====================================================================== */
.project-hero { position: relative; width: 100%; aspect-ratio: 16/9; min-height: 52vh; overflow: hidden; background: var(--bench); margin-top: var(--head-h); }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.project-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.42)); }
.project-header { padding: calc(var(--head-h) + clamp(44px,6vw,86px)) 0 clamp(24px,3vw,40px); }
.project-header .tags { margin-bottom: 22px; }
.project-header h1 { max-width: 20ch; }
.project-blurb { font-size: clamp(1.15rem,1.7vw,1.5rem); font-weight: 300; color: var(--ink); max-width: 60ch; line-height: 1.5; }

/* Build details , a builder's spec schedule */
.spec { border-top: 1px solid var(--ink); margin-top: clamp(30px,4vw,48px); }
.spec dl { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 clamp(24px,4vw,64px); margin: 0; }
.spec .row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-block: 15px; border-bottom: 1px solid var(--line); }
.spec dt { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.spec dd { margin: 0; text-align: right; font-size: .95rem; font-variant-numeric: tabular-nums; }

/* Build stages , genuinely a sequence, so it gets numbers */
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: clamp(40px,5vw,64px); }
.stage { background: var(--surface); padding: 20px clamp(14px,1.4vw,22px) 22px; }
.stage .n { font-size: .68rem; letter-spacing: .18em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stage .s { display: block; font-weight: 500; margin-top: 10px; font-size: .98rem; }
.stage .d { display: block; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; font-variant-numeric: tabular-nums; }
.stage.is-done .n { color: var(--ink-soft); }

/* Gallery , mixed portrait + landscape */
.project-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px,1.6vw,22px); margin-block: clamp(40px,6vw,80px); }
.project-gallery figure { margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--paper-2); max-width: 100%; }
.project-gallery button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.project-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-gallery figure:hover img { transform: scale(1.03); }
.project-gallery .g-wide { grid-column: span 12; aspect-ratio: 16/8; }
.project-gallery .g-half { grid-column: span 6; aspect-ratio: 4/3; }
.project-gallery .g-third { grid-column: span 4; aspect-ratio: 3/4; }

.project-video { margin-block: clamp(34px,5vw,60px); border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); }
.project-video video { display: block; width: 100%; height: auto; }
.seq { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: clamp(14px,1.8vw,26px); margin-block: clamp(34px,5vw,60px); }
.seq figure { margin: 0; }
.seq-group {
	grid-column: 1 / -1; margin: clamp(16px,2vw,28px) 0 0; padding-top: 16px;
	border-top: 1px solid var(--line-strong);
	font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--ink);
}
.seq-group:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.seq .shot {
	display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
	background: var(--paper-2); border-radius: var(--r-lg); overflow: hidden;
	aspect-ratio: var(--sar, 4/3);
}
.seq .shot img { width: 100%; height: 100%; object-fit: cover; scale: 1.1; transition: scale .8s var(--ease); }
.seq figure:hover .shot img { scale: 1.14; }
.seq figcaption { margin-top: 10px; font-size: .71rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-soft); }
.seq .stage-n { color: var(--accent); margin-right: .55em; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .seq { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .seq { grid-template-columns: 1fr; } }

.project-nav { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-block: 28px; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.project-nav a { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-soft); font: inherit; letter-spacing: inherit; text-transform: inherit; }
.project-nav a:hover { color: var(--ink); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(17,18,17,.94); display: none; align-items: center; justify-content: center; z-index: 999; padding: 4vw; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; object-fit: contain; border-radius: var(--r-md); }
.lightbox button { position: absolute; background: none; border: none; color: #fff; cursor: pointer; line-height: 1; }
.lb-close { top: 20px; right: 24px; font-size: 2rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 2.4rem; padding: 20px; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }

/* =========================================================================
   8. CTA banner
   ====================================================================== */
.cta-banner { background: var(--accent); color: var(--on-accent); transition: background .5s var(--ease); cursor: pointer; display: block; width: 100%; border: 0; text-align: left; font: inherit; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(48px,7vw,96px) var(--gutter); flex-wrap: wrap; max-width: var(--max); margin: 0 auto; }
.cta-copy { display: block; }
.cta-heading { color: var(--on-accent); font-size: clamp(1.8rem,3.2vw,2.8rem); margin: 0; }
.cta-text { color: rgba(23,18,14,.78); margin: 10px 0 0; max-width: 46ch; transition: color .5s var(--ease); }
.cta-banner .btn-invert { border-color: var(--on-accent); color: var(--on-accent); }
.cta-banner:hover { background: var(--on-accent); }
.cta-banner:hover .cta-heading { color: #fff; }
.cta-banner:hover .cta-text { color: rgba(255,255,255,.8); }
.cta-banner:hover .btn-invert { background: transparent; color: #fff; border-color: #fff; }

.why { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.06fr); gap: clamp(26px,4vw,80px); align-items: start; }
.why-head h2 { margin: 0; max-width: 15ch; }
@media (min-width: 901px) {
	.why-head { position: sticky; top: calc(var(--head-h) + clamp(28px,4vw,56px)); align-self: start; }
}
.h-soft { color: var(--ink-mute); }
.why-list { border-top: 1px solid var(--line-strong); }
.why-item {
	display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 clamp(18px,2.4vw,32px);
	padding-block: clamp(22px,2.6vw,32px); border-bottom: 1px solid var(--line);
}
.why-item h3 { grid-column: 1; margin: 0 0 9px; font-size: clamp(1.05rem,1.3vw,1.24rem); font-weight: 500; }
.why-item p { grid-column: 1; margin: 0; color: var(--ink-soft); font-size: .94rem; max-width: 48ch; }
.why-icon { grid-column: 2; grid-row: 1 / span 2; width: 42px; height: 42px; flex: none; color: var(--line-strong); transition: color .35s var(--ease); }
.why-item:hover .why-icon { color: var(--accent); }

/* =========================================================================
   9. Split enquiry , 50% image, 50% form
   ====================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split-media { position: relative; overflow: hidden; background: var(--bench); min-height: 100%; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-media { container-type: inline-size; }
.sm-layer, .split-media::after { border-radius: 0; }
.sm-layer { position: absolute; inset: 0; background-image: var(--coast); background-size: cover; background-position: center; }
.sm-bg { z-index: 0; }
.split-form { background: var(--burnt); color: #fff; display: flex; align-items: center; padding: clamp(40px,4.6vw,68px) var(--gutter); }
.split-form-inner { width: 100%; max-width: 580px; margin: 0 auto; }
.split-form h2 { max-width: 24ch; color: #fff; }
.split-form .lede { color: rgba(255,255,255,.82); max-width: 46ch; margin: 0 0 clamp(18px,2.2vw,26px); }
.split-form .eyebrow { color: rgba(255,255,255,.76); margin-bottom: 1em; }
/* accent brackets would vanish on an accent ground */
.split-form .eyebrow::before, .split-form .eyebrow::after { color: #fff; }

/* =========================================================================
   10. Forms
   ====================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px,2.4vw,32px); }
.field { margin-bottom: clamp(15px, 1.7vw, 21px); }
.field.is-wide { grid-column: 1 / -1; }
.form label { display: block; font-size: .86rem; color: var(--ink-soft); margin: 0 0 2px; }
.form input, .form textarea, .form select {
	width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line-strong);
	background-color: transparent; border-radius: 0;
	font-family: inherit; font-size: 1rem; font-weight: 300; color: var(--ink);
	transition: border-color .3s var(--ease);
}
.form select {
	appearance: none; -webkit-appearance: none; padding-right: 22px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23111211' stroke-width='1.4'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 1px center; background-size: 11px;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-bottom-color: var(--accent); }
.form textarea { min-height: 64px; resize: vertical; }
.split-form .form label { color: rgba(255,255,255,.72); }
.split-form .form input, .split-form .form textarea, .split-form .form select { color: #fff; border-bottom-color: rgba(255,255,255,.38); }
.split-form .form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23ffffff' stroke-width='1.4'/%3E%3C/svg%3E"); }
.split-form .form select option { color: #17120e; background: #fff; }
.split-form .form input:focus, .split-form .form textarea:focus, .split-form .form select:focus { border-bottom-color: var(--accent); }
.split-form .form-note { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); color: #fff; }
/* the bright orange is saved for the one action on the panel */
.split-form .btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.split-form .btn-accent:hover { background: transparent; color: #fff; border-color: #fff; }
.split-form .form-foot small { color: rgba(255,255,255,.7); }
.form-note { padding: 14px 16px; margin-bottom: 22px; font-size: .9rem; border-radius: var(--r-md); background: #eaf3ec; border: 1px solid #bcd9c2; color: #234a2c; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-foot small { color: var(--ink-soft); font-size: .78rem; }

/* =========================================================================
   11. Contact page
   ====================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,6vw,80px); align-items: start; }
.contact-details p { color: var(--ink-soft); }
.contact-details a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.contact-block { margin-bottom: 26px; }
.contact-block .footer-title { margin-bottom: 8px; }
.contact-block p { margin: 0; }

/* =========================================================================
   12. Footer
   ====================================================================== */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(48px,6vw,80px) 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: #fff; }
.footer-menu ul { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 8px; }
.footer-menu a, .footer-menu button { color: rgba(255,255,255,.62); font-size: .92rem; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; text-align: left; }
.footer-menu a:hover, .footer-menu button:hover { color: #fff; }
.footer-title { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.16); margin-top: 48px; padding-top: 24px; font-size: .82rem; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 12px; }

/* =========================================================================
   13. Responsive
   ====================================================================== */
@media (min-width: 901px) {
	.home-hero { height: 100svh; min-height: 580px; max-height: 1040px; }
	.hero-copy-col { align-items: center; }
}

@media (max-width: 1040px) {
	.service { grid-column: span 3; }
	.stages { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
	.two-col, .contact-grid, .split, .spec dl, .home-hero, .why { grid-template-columns: 1fr; }
	.home-hero { min-height: 0; }
	.hero-copy-col { padding-inline: var(--gutter); }
	/* explicit height: some phone browsers ignore aspect-ratio and collapsed the photo to nothing */
	.hero-panel { height: 62.5vw; max-height: 70vh; min-height: 240px; aspect-ratio: auto; }
	.home-hero h1 { max-width: 18ch; }
	.split-media { aspect-ratio: 4/3; min-height: 0; }
	.footer-top { grid-template-columns: 1fr 1fr; }
	.project-gallery .g-third { grid-column: span 6; }
	.project-grid.cols-3 { columns: 2; }
}
@media (max-width: 720px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		position: fixed; inset: calc(var(--head-h) + env(safe-area-inset-top, 0px)) 0 auto 0; background: var(--paper);
		border-bottom: 1px solid var(--line);
		max-height: calc(100vh - var(--head-h)); overflow: auto;
		/* closed: fully hidden. The header's blur makes it the menu's frame, so sliding it
		   "off screen" left it covering the logo. */
		visibility: hidden; opacity: 0; transform: translateY(-10px); pointer-events: none;
		transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
	}
	body.nav-open .primary-nav {
		visibility: visible; opacity: 1; transform: none; pointer-events: auto;
		transition: opacity .3s var(--ease), transform .3s var(--ease);
	}
	.primary-nav ul { flex-direction: column; gap: 0; padding: 12px var(--gutter) 28px; }
	.primary-nav li { border-bottom: 1px solid var(--line); }
	.primary-nav a { display: block; width: 100%; padding: 16px 0; font-size: 1rem; color: var(--ink); }
	.project-grid, .project-grid.cols-3 { columns: 1; }
	.services { grid-template-columns: 1fr; }
	.services > .service { grid-column: 1 / -1; }
	.stat-row, .stages, .form-grid { grid-template-columns: 1fr; }
	.stages { gap: 0; }
	.footer-top { grid-template-columns: 1fr; }
	.project-gallery .g-half, .project-gallery .g-third { grid-column: span 12; aspect-ratio: 4/3; }
	.cta-inner { flex-direction: column; align-items: flex-start; }
	.hero-band { aspect-ratio: 16/9; min-height: 0; }
	.spec dd { text-align: right; }
}

@media (prefers-reduced-motion: no-preference) {
	.rv { opacity: 0; translate: 0 22px; transition: opacity .75s var(--ease), translate .75s var(--ease); }
	.rv.in { opacity: 1; translate: 0 0; }
}

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

/* click-to-call, phones only */
.call-fab { display: none; }
@media (max-width: 720px) {
	.call-fab {
		position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90;
		display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 18px;
		border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent);
		font: 600 1rem/1 var(--font); text-decoration: none;
		box-shadow: 0 10px 28px -10px rgba(17,18,17,.55);
	}
	.call-fab svg { width: 20px; height: 20px; flex: none; }
	.call-fab:active { transform: scale(.97); }
	/* keep the label dark on tap/hover (the global link hover colour made it vanish) */
	.call-fab:hover, .call-fab:focus, .call-fab:active, .call-fab:visited { color: var(--on-accent); }
	.call-fab[hidden] { display: none !important; }
	.site-footer { padding-bottom: calc(32px + 76px); }
}

/* phones: the project strip becomes a swipeable, snapping carousel */
@media (max-width: 720px) {
	.marquee { overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.marquee::-webkit-scrollbar { display: none; }
	.marquee::before, .marquee::after { display: none; }
	.marquee-track { animation: none; padding-inline: var(--gutter); }
	.marquee .project-card { width: 80vw; scroll-snap-align: center; }
}

/* =========================================================================
   WordPress additions
   ====================================================================== */
.primary-nav a { display: inline-block; }
.brand { display: inline-block; }
.brand:hover { color: inherit; }
.brand-logo { display: block; max-height: 44px; width: auto; }
.btn:hover, .btn-accent:hover, .link-arrow:hover, .service-cta:hover { text-decoration: none; }
.float-card:hover, .project-card:hover { color: inherit; }
.hero-slide { background-size: cover; }
.footer-blurb { color: rgba(255,255,255,.62); max-width: 34ch; margin-top: 12px; }
.footer-address { color: rgba(255,255,255,.62); }
.form-note-error { background: #fbeaea; border-color: #e5b8b8; color: #6d1f1f; }
.split-form .form-note-error { background: rgba(0,0,0,.18); border-color: rgba(255,255,255,.4); color: #fff; }
.mm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button[disabled] { opacity: .6; cursor: progress; }
.project-nav span:empty { flex: 1; }
.page-content { max-width: 72ch; line-height: 1.75; }
.page-content h2, .page-content h3 { margin-top: 1.6em; }
.page-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-row { padding-block: 22px; border-bottom: 1px solid var(--line); }
.post-row h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
