/* Gale Ridge theme
   Navy, brick red, warm sand. Cormorant Garamond carries the headings — the
   company should read as though it has been here for decades — with Inter
   doing the work underneath: bold for the small labels that have to be read
   at a glance, light and regular for running text. Corners are square on
   purpose: crisper, and less of its moment than a rounded card. */

:root {
	--navy: #1f2a33;
	--navy-deep: #151d25;
	--brick: #a33a3a;
	--brick-dark: #8a2f2f;
	/* Brick lightened for dark grounds: #a33a3a on navy is barely legible. */
	--brick-light: #d2686a;
	--sand: #e8e0d5;
	/* Mike: "there's still a lot of off-white on the site, let's get rid of
	   all of that." The tinted grounds are white now. Separation between
	   sections comes from the navy bands and from space, not from a half
	   shade of cream — which reads as age rather than as calm. --sand
	   survives as an accent on chips and frames. */
	--sand-light: #ffffff;
	--cream: #ffffff;
	/* The spotlight band's own ground, so it can be tuned without moving every
	   other sand section with it. */
	--spotlight-ground: #ffffff;
	--white: #ffffff;
	--ink: #232629;
	--muted: #5f6873;
	--line: rgba(31, 42, 51, 0.14);
	--line-light: rgba(255, 255, 255, 0.18);

	/* Display: the elegant serif, for headings that are meant to be looked at.
	   Sans: everything that is meant to be read or clicked. The old
	   --font-heading name is kept so nothing that still asks for it breaks. */
	--font-display: "Cormorant Garamond", "Hoefler Text", Georgia, serif;
	--font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
	--font-heading: var(--font-sans);
	--font-body: var(--font-sans);

	--container: 1200px;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--section: clamp(3.25rem, 6.5vw, 5.75rem);
	--radius: 0px;

	/* Letter-spacing, as a system rather than 26 separate opinions. Buttons at
	   0.07em as asked; the small uppercase labels get a little more because
	   uppercase needs it to stay legible, and at 10–12px that is still only
	   1.2px. Headings carry none. Nothing here exceeds 2px at any size it is
	   actually used at. */
	--ls-heading: 0;
	--ls-button: 0.07em;
	--ls-label: 0.12em;
	--shadow: 0 24px 60px -34px rgba(21, 29, 37, 0.5);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	/* The reveal: slow enough to notice, even enough not to bounce. */
	--ease-reveal: cubic-bezier(0.645, 0.045, 0.355, 1);
	--reveal-duration: 0.8s;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* The header is sticky, and fixed on the front page, so every in-page
	   anchor would otherwise land underneath it. */
	scroll-padding-top: 6rem;
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--brick);
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--brick-dark);
}

/* h1 and h2 are the voice of the place, and they are set in the serif.
   h3 and h4 are working headings — a card title, a "what's included" — and
   stay in the sans, where a small size still reads. */
h1,
h2 {
	font-family: var(--font-display);
	font-weight: 700;
	/* Cormorant has a small x-height and long ascenders, so the default gap
	   between two lines of it reads as a gap rather than as a heading. Set
	   from the cap height rather than the em box. */
	line-height: 1;
	letter-spacing: var(--ls-heading);
	margin: 0 0 0.35em;
	color: var(--navy);
	text-wrap: balance;
}

h3,
h4 {
	font-family: var(--font-sans);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.005em;
	margin: 0 0 0.5em;
	color: var(--navy);
	text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4.1rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }

p {
	margin: 0 0 1.25em;
}

.container {
	width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--brick);
	color: #fff;
	padding: 0.75rem 1rem;
	z-index: 100;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
}

/* Present to a screen reader, absent to the eye. */
.u-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* The focus ring has to be visible on whatever it lands on. Brick reads well
   on the cream and sand sections but only reaches 2.2:1 against navy, so the
   dark sections switch it to sand, which reaches 11:1. */
:focus-visible {
	outline: 3px solid var(--focus-ring, var(--brick));
	outline-offset: 3px;
}

.site-header,
.site-footer,
.hero,
.page-hero,
.cta,
.standout,
.contact-aside {
	--focus-ring: var(--sand);
}

/* ---------- Buttons ---------- */

.button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.8rem 1.5rem;
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 0.6875rem;
	letter-spacing: var(--ls-button);
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 0;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
	white-space: nowrap;
}

.button:hover {
	transform: translateY(-1px);
}

.button--primary {
	background: var(--brick);
	border-color: var(--brick);
	color: #fff;
}

.button--primary:hover {
	background: var(--brick-dark);
	border-color: var(--brick-dark);
	color: #fff;
}

/* The quieter half of a pair, on a photograph. */
.button--outline {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.55);
	color: #fff;
}

.button--outline:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
	color: #fff;
}

.button--dark {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

.button--dark:hover {
	background: var(--navy-deep);
	color: #fff;
}

.button--large {
	padding: 1.15rem 2.4rem;
	font-size: 0.75rem;
}

.text-link {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 0.8125rem;
	letter-spacing: var(--ls-button);
	text-transform: uppercase;
	color: var(--navy);
	text-decoration: none;
	border-bottom: 2px solid var(--brick);
	padding-bottom: 0.2em;
}

.text-link:hover {
	color: var(--brick);
}

.kicker {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 0.6875rem;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: var(--brick);
	margin: 0 0 1.1rem;
}

.kicker--light,
.kicker--light a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
}

.kicker--light a:hover {
	color: #fff;
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--navy);
	color: #fff;
	box-shadow: 0 1px 0 var(--line-light);
	transition: background 0.5s var(--ease-reveal), box-shadow 0.3s var(--ease-reveal);
}

.site-header.is-scrolled {
	box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.6);
}

/* On the front page the hero starts at the very top and the header sits on
   it. A scrim keeps the logo and links readable over whatever photograph is
   loaded; both it and the navy arrive as you leave the hero. */
.is-front .site-header {
	position: fixed;
	left: 0;
	right: 0;
	background: transparent;
	box-shadow: none;
}

.is-front .site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to bottom, rgba(21, 29, 37, 0.6), rgba(21, 29, 37, 0));
	transition: opacity 0.5s var(--ease-reveal);
}

.is-front .site-header.is-scrolled {
	background: var(--navy);
}

.is-front .site-header.is-scrolled::before {
	opacity: 0;
}

/* Bigger over the hero, settling to the usual size once the bar is solid. */
.is-front .site-logo img {
	height: 76px;
	transition: height 0.5s var(--ease-reveal);
}

.is-front .site-header.is-scrolled .site-logo img {
	height: 52px;
}

@media (max-width: 1180px) {
	.is-front .site-logo img {
		height: 58px;
	}
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: 84px;
	/* Space over the logo rather than under it as well: the row is taller and
	   everything in it stays on one centre line, so the nav comes down with
	   the mark instead of drifting away from it. */
	padding-block: 1.35rem 1rem;
}

.site-logo {
	display: block;
	flex: 0 0 auto;
}

.site-logo img {
	width: auto;
	height: 52px;
	transition: height 0.5s var(--ease-reveal);
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.site-nav .menu {
	display: flex;
	gap: 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav .menu a {
	white-space: nowrap;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.8125rem;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
	padding: 0.5rem 0;
	border-bottom: 2px solid transparent;
	transition: color 0.2s, border-color 0.2s;
}

.site-nav .menu a:hover,
.site-nav .menu .current-menu-item > a,
.site-nav .menu .current_page_parent > a,
.site-nav .menu .current-menu-ancestor > a {
	color: #fff;
	border-bottom-color: var(--brick);
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.6rem;
	background: none;
	border: 0;
	color: #fff;
	font: 700 0.75rem/1 var(--font-heading);
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	padding: 0.5rem;
	cursor: pointer;
}

.nav-toggle__bars {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 22px;
}

.nav-toggle__bars i {
	display: block;
	height: 2px;
	background: #fff;
	transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
	.nav-toggle {
		display: inline-flex;
	}

	.site-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--navy-deep);
		padding: 0.5rem var(--gutter) 1.5rem;
		box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.6);
	}

	.site-nav.is-open {
		display: flex;
	}

	.site-nav .menu {
		flex-direction: column;
		gap: 0;
	}

	.site-nav .menu a {
		display: block;
		padding: 1rem 0;
		border-bottom: 1px solid var(--line-light);
		font-size: 0.9375rem;
	}

	.site-nav__cta {
		margin-top: 1.25rem;
		justify-content: center;
	}
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	color: #fff;
	background: var(--navy-deep) var(--hero-image) center / cover no-repeat;
	isolation: isolate;
	overflow: hidden;
}

/* Four photographs cross-fading behind the headline, on keyframes alone.
   Each is on for a quarter of the cycle; the delays space them out, and a
   slide sits at opacity 0 until its delay elapses, so nothing stacks up on
   load. Written for four — a fifth would come up over the first. */
.hero__slides {
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	inset: 0;
	z-index: -2;
}

.hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.hero__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Eight seconds a photograph, however many there are. The delays are the same
   arithmetic in every case — eight seconds per slide ahead of this one — but
   the keyframes have to be written per count, because the hold is a
   percentage of the cycle and the cycle is a different length each time. Get
   this wrong and the hero simply goes empty for the remainder: with three
   photographs on the four-slide timing, the last one has faded by 25s and
   nothing appears until 32s. */
.hero--revolving .hero__slide {
	animation: hero-cycle-4 32s linear infinite;
}

.hero--revolving[data-slides="2"] .hero__slide {
	animation-name: hero-cycle-2;
	animation-duration: 16s;
}

.hero--revolving[data-slides="3"] .hero__slide {
	animation-name: hero-cycle-3;
	animation-duration: 24s;
}

.hero--revolving .hero__slide:nth-child(2) { animation-delay: 8s; }
.hero--revolving .hero__slide:nth-child(3) { animation-delay: 16s; }
.hero--revolving .hero__slide:nth-child(4) { animation-delay: 24s; }

@keyframes hero-cycle-2 {
	0%   { opacity: 0; }
	4%   { opacity: 1; }
	50%  { opacity: 1; }
	54%  { opacity: 0; }
	100% { opacity: 0; }
}

@keyframes hero-cycle-3 {
	0%    { opacity: 0; }
	2.7%  { opacity: 1; }
	33.3% { opacity: 1; }
	36%   { opacity: 0; }
	100%  { opacity: 0; }
}

@keyframes hero-cycle-4 {
	0%   { opacity: 0; }
	2%   { opacity: 1; }
	25%  { opacity: 1; }
	29%  { opacity: 0; }
	100% { opacity: 0; }
}

/* Nothing revolves for anyone who has asked for less movement: the first
   photograph stays, the rest never appear. */
@media (prefers-reduced-motion: reduce) {
	.hero--revolving .hero__slide {
		animation: none;
	}

	.hero--revolving .hero__slide:first-child {
		opacity: 1;
	}
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	/* Two gradients, because the headline sits bottom-left and the photographs
	   behind it are now bright interiors rather than a dark exterior: one up
	   from the foot, one in from the left, the way Mike's mock-up is lit. */
	background:
		linear-gradient(to right, rgba(21, 29, 37, 0.78) 0%, rgba(21, 29, 37, 0.35) 45%, rgba(21, 29, 37, 0.1) 100%),
		linear-gradient(to top, rgba(21, 29, 37, 0.85) 0%, rgba(21, 29, 37, 0.4) 45%, rgba(21, 29, 37, 0.25) 100%);
	z-index: -1;
}

.hero__inner {
	min-height: min(82vh, 820px);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-block: clamp(5rem, 12vw, 8rem) clamp(3rem, 6vw, 4.5rem);
	max-width: 900px;
	margin-left: max(var(--gutter), (100% - var(--container)) / 2);
}

.hero__title {
	color: #fff;
	font-weight: 700;
	font-size: clamp(2.7rem, 6vw, 4.5rem);
	margin-bottom: 1.1rem;
	letter-spacing: var(--ls-heading);
}

.hero__line {
	display: block;
}

/* Both lines are the headline; the second used to be sand and italic, which
   made it read as a second thought rather than the other half of a sentence. */
.hero__line--alt {
	color: inherit;
}

.hero__text {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 0.8125rem;
	letter-spacing: var(--ls-label);
	max-width: 46ch;
	color: rgba(255, 255, 255, 0.82);
	margin-bottom: 2rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 2rem;
}

.hero__facts {
	list-style: none;
	margin: 0 auto;
	padding: 1.4rem 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1.6rem;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	font-family: var(--font-sans);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
}

.hero__facts li {
	display: flex;
	align-items: center;
	gap: 1.6rem;
}

.hero__facts li + li::before {
	content: "";
	width: 1px;
	height: 11px;
	background: rgba(255, 255, 255, 0.3);
}

/* ---------- Sections ---------- */

.section {
	padding-block: var(--section);
}

.section--sand {
	background: var(--sand-light);
}

.section--navy {
	background: var(--navy);
	color: rgba(255, 255, 255, 0.82);
}

.section-heading {
	margin-bottom: 2.5rem;
}

/* The same size as the featured project's title, so the two read as peers
   rather than as a heading and a louder heading. */
.section-heading__title {
	margin-bottom: 0;
	max-width: 22ch;
	font-size: clamp(2rem, 3.4vw, 2.9rem);
}

.section-heading--row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--line);
}

.section-heading--light.section-heading--row {
	border-bottom-color: var(--line-light);
}

.prose p {
	max-width: 62ch;
}

.prose--narrow {
	max-width: 760px;
}

.prose a {
	color: var(--brick);
}

/* ---------- Project cards ---------- */

.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: clamp(1.25rem, 3vw, 2rem);
}

.project-grid--archive {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

.project-card {
	background: transparent;
}

.project-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.project-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--sand);
}

.project-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease-reveal);
}

.project-card:hover .project-card__media img {
	transform: scale(1.03);
}

.project-card__body {
	padding: 1.1rem 0 0;
	margin-top: 1.1rem;
	border-top: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	flex: 1;
}

.project-card__title {
	margin: 0;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
	line-height: 1.25;
	letter-spacing: var(--ls-button);
	text-transform: none;
	transition: color 0.3s var(--ease-reveal);
}

.project-card:hover .project-card__title {
	color: var(--brick);
}

.project-card--compact .project-card__location {
	margin: 0;
}

.project-card__location {
	margin: 0 0 0.35rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: var(--muted);
}

.project-card__excerpt {
	margin: 0.5rem 0 0;
	font-size: 0.9375rem;
	color: var(--muted);
}

.project-card__more {
	margin-top: auto;
	padding-top: 1.1rem;
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 0.6875rem;
	letter-spacing: var(--ls-button);
	text-transform: uppercase;
	color: var(--brick);
}

/* ---------- Split sections ---------- */

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2.5rem, 6vw, 5rem);
	align-items: center;
}

.split--reverse .split__media {
	order: 2;
}

.split__media {
	position: relative;
}

/* The offset frame is drawn outside the figure, so the figure must not clip.
   .reveal-image sets overflow: hidden and was erasing it — which removed the
   one detail Mike named as the reason he likes this block. */
.split__media::before {
	content: "";
	position: absolute;
	inset: 1.25rem -1.25rem -1.25rem 1.25rem;
	border: 2px solid var(--brick);
	border-radius: var(--radius);
	z-index: 0;
}

.split--reverse .split__media::before {
	inset: 1.25rem 1.25rem -1.25rem -1.25rem;
}

.split__media img {
	position: relative;
	z-index: 1;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.split__media--portrait img {
	aspect-ratio: 4 / 5;
	object-position: center 30%;
}

.split__body .button {
	margin-top: 0.5rem;
}

@media (max-width: 860px) {
	.split {
		grid-template-columns: 1fr;
	}

	.split--reverse .split__media {
		order: 0;
	}

	.split__media {
		max-width: 560px;
	}
}

/* ---------- CTA band ---------- */

.cta {
	position: relative;
	color: #fff;
	background: var(--navy-deep) var(--cta-image) center / cover no-repeat;
	isolation: isolate;
	padding-block: clamp(2.75rem, 5vw, 4rem);
}

.cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(21, 29, 37, 0.78);
	z-index: -1;
}

/* .cta__inner is also the .container, so a max-width here narrows the whole
   band rather than the heading — which turned the call to action into a 22ch
   column with one word per line. Constrain the title instead. */
.cta__inner .kicker {
	margin-bottom: 1rem;
}

.cta__title {
	color: #fff;
	font-weight: 700;
	font-size: clamp(2rem, 3.4vw, 2.9rem);
	max-width: 30ch;
}

.cta__text {
	color: rgba(255, 255, 255, 0.8);
	font-weight: 300;
	font-size: 1.15rem;
	margin-bottom: 2rem;
	text-wrap: balance;
}

.cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-top: 2rem;
}

/* ---------- Inner page hero ---------- */

.page-hero {
	position: relative;
	color: #fff;
	background: var(--navy-deep) var(--hero-image) center / cover no-repeat;
	isolation: isolate;
}

.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(21, 29, 37, 0.94) 0%,
		rgba(21, 29, 37, 0.72) 32%,
		rgba(21, 29, 37, 0.34) 68%,
		rgba(21, 29, 37, 0.5) 100%
	);
	z-index: -1;
}

.page-hero__inner {
	min-height: min(52vh, 520px);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-block: clamp(3rem, 8vw, 5rem) clamp(2.5rem, 5vw, 3.5rem);
}

.page-hero__title {
	color: #fff;
	font-weight: 700;
	margin-bottom: 0.5rem;
	max-width: 18ch;
}

.page-hero .kicker--light a {
	color: inherit;
	text-decoration: none;
}

.page-hero .kicker--light a:hover {
	color: #fff;
}

.page-hero__text {
	max-width: 56ch;
	font-weight: 300;
	font-size: 1.15rem;
	color: rgba(255, 255, 255, 0.85);
	margin: 0;
}

@media (max-width: 700px) {
	
}

/* A short record of the house before the story of it: the kind of line a
   practice puts under a photograph. */
.project-facts {
	background: var(--cream);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.project-facts__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 0;
	/* margin-block only: this element is also a .container, and a blanket
	   margin: 0 kills the margin-inline: auto that centres it. */
	margin-block: 0;
	padding: 0;
}

.project-facts__item {
	padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 2.5vw, 2rem) clamp(1.5rem, 3vw, 2.25rem) 0;
	border-right: 1px solid var(--line);
}

.project-facts__item:last-child {
	border-right: 0;
}

.project-facts__item + .project-facts__item {
	padding-left: clamp(1.25rem, 2.5vw, 2rem);
}

.project-facts dt {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 0.625rem;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 0.5rem;
}

.project-facts dd {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.15rem, 1.7vw, 1.45rem);
	line-height: 1.2;
	color: var(--navy);
}

@media (max-width: 640px) {
	.project-facts__item {
		border-right: 0;
		border-bottom: 1px solid var(--line);
		padding-left: 0 !important;
	}
}

.project-single .entry-content > p {
	max-width: 68ch;
	font-size: 1.125rem;
}

.project-single .entry-content > p:first-child {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.3rem, 1.9vw, 1.7rem);
	line-height: 1.38;
	letter-spacing: var(--ls-heading);
	color: var(--navy);
	max-width: 52ch;
	margin-bottom: 2rem;
}

.entry-content .wp-block-gallery {
	margin-top: clamp(3rem, 6vw, 5rem);
	/* Core sizes each figure with calc() against this variable. Overriding the
	   gap property alone leaves the widths computed from the old value, and
	   three columns stop fitting — set the variable instead. */
	--wp--style--unstable-gallery-gap: clamp(0.85rem, 1.6vw, 1.4rem);
}

.entry-content .wp-block-gallery .wp-block-image {
	overflow: hidden;
}

.entry-content .wp-block-gallery img {
	transition: transform 1.2s var(--ease-reveal);
}

.entry-content .wp-block-gallery .wp-block-image:hover img {
	transform: scale(1.03);
}

/* Core stretches the last row to fill; keep every photo the same width.
   Core's own selector carries an id-level :not(), so this one must too. */
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	flex-grow: 0;
}

.project-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(1.5rem, 4vw, 3rem);
	padding-block: 0 var(--section);
}

.project-nav__link {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	text-decoration: none;
	color: var(--navy);
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}

.project-nav__thumb {
	flex: 0 0 auto;
	width: clamp(84px, 11vw, 132px);
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--sand);
}

.project-nav__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease-reveal);
}

.project-nav__link:hover .project-nav__thumb img {
	transform: scale(1.04);
}

.project-nav__text {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.project-nav__label {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 0.625rem;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: var(--muted);
}

.project-nav__link strong {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.4rem, 2.2vw, 1.85rem);
	line-height: 1.1;
	transition: color 0.3s var(--ease-reveal);
}

.project-nav__link--next {
	flex-direction: row-reverse;
	text-align: right;
}

.project-nav__link--next .project-nav__text {
	align-items: flex-end;
}

.project-nav__link:hover strong {
	color: var(--brick);
}

@media (max-width: 700px) {
	.project-nav {
		grid-template-columns: 1fr;
	}
}

/* ---------- Contact ---------- */

.contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: clamp(2.5rem, 6vw, 5rem);
	align-items: start;
}

.contact-aside {
	background: var(--navy);
	color: #fff;
	padding: clamp(1.75rem, 4vw, 2.75rem);
	border-radius: var(--radius);
	position: sticky;
	top: 110px;
}

.contact-aside .kicker {
	color: var(--sand);
}

.contact-aside__title {
	color: #fff;
	font-size: clamp(1.9rem, 2.6vw, 2.5rem);
}

.contact-list {
	list-style: none;
	margin: 2rem 0;
	padding: 0;
	display: grid;
	gap: 0;
}

.contact-list li {
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--line-light);
}

.contact-list li:first-child {
	border-top: 1px solid var(--line-light);
}

.contact-list__label {
	display: block;
	font-size: 0.625rem;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 0.3rem;
}

.contact-list a {
	color: #fff;
	font-weight: 500;
	font-size: 1.125rem;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.contact-list a:hover {
	color: var(--sand);
}

.social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0.5rem;
}

.social a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	transition: background 0.2s, border-color 0.2s;
}

.social a:hover {
	background: var(--brick);
	border-color: var(--brick);
	color: #fff;
}

.contact-form {
	display: grid;
	gap: 0.25rem;
}

.contact-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 2.5rem;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin: 0 0 1.9rem;
}

.field label {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 0.625rem;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: var(--muted);
}

.field .req {
	color: var(--brick);
}

.field .optional {
	color: var(--muted);
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
	width: 100%;
	font: inherit;
	font-size: 1.05rem;
	padding: 0.7rem 0;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	background: transparent;
	color: var(--ink);
	transition: border-color 0.4s var(--ease-reveal);
}

.field input::placeholder,
.field textarea::placeholder {
	color: var(--muted);
	opacity: 0.75;
}

.field input:focus,
.field textarea:focus {
	outline: none;
	border-bottom-color: var(--navy);
	box-shadow: none;
}

.field textarea {
	resize: vertical;
	min-height: 130px;
}

/* The field the error is about, marked so it is findable without reading. */
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
	border-bottom-color: var(--brick);
	border-bottom-width: 2px;
}

.field--consent input[aria-invalid="true"] {
	outline: 2px solid var(--brick);
	outline-offset: 3px;
}

.notice:focus {
	outline: 2px solid var(--focus-ring, var(--brick));
	outline-offset: 3px;
}

.field--submit {
	align-items: flex-start;
	margin-top: 0.5rem;
}

.field--consent label {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.75rem;
	align-items: start;
	font: inherit;
	font-size: 0.875rem;
	color: var(--muted);
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

.field--consent input {
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.15rem;
	accent-color: var(--brick);
}

.notice {
	padding: 1rem 1.25rem;
	border-radius: 0;
	margin-bottom: 1.5rem;
	border-left: 2px solid;
}

.notice--success {
	background: #eaf3ea;
	border-color: #3c8d47;
	color: #1f4d26;
}

.notice--error {
	background: #fbecec;
	border-color: var(--brick);
	color: #6b2323;
}

@media (max-width: 860px) {
	.contact-layout {
		grid-template-columns: 1fr;
	}

	.contact-aside {
		position: static;
	}
}

@media (max-width: 560px) {
	.field-row {
		grid-template-columns: 1fr;
	}
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--navy-deep);
	color: rgba(255, 255, 255, 0.75);
	padding-top: clamp(3.5rem, 7vw, 5.5rem);
	font-size: 0.9375rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.8fr 1fr 0.8fr 1.5fr;
	gap: clamp(2rem, 4vw, 3.5rem);
	padding-bottom: 3rem;
	border-bottom: 1px solid var(--line-light);
}

.footer-brand p {
	max-width: 44ch;
	margin: 1.25rem 0 1.5rem;
}

.site-logo--footer img {
	height: 64px;
}

.footer-heading {
	font-family: var(--font-sans);
	font-weight: 700;
	color: #fff;
	font-size: 0.8125rem;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	margin-bottom: 1.25rem;
}

.footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
	line-height: 1.3;
}

.footer-list a {
	color: inherit;
	text-decoration: none;
}

.footer-list a:hover {
	color: #fff;
}

.footer-list--contact a {
	color: #fff;
	font-weight: 500;
	overflow-wrap: anywhere;
}

.footer-bottom {
	padding-block: 1.5rem;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
	margin: 0;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	justify-content: space-between;
}

.footer-legal {
	display: flex;
	gap: 0.5rem;
}

.footer-legal a {
	color: inherit;
	text-decoration: none;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.legal__updated {
	color: var(--muted, #6b7280);
}

.field--sms span {
	font-size: 0.875rem;
}

@media (max-width: 900px) {
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 520px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Page body: block content on interior pages ---------- */

.prose--page {
	max-width: 1040px;
}

.prose--page > p,
.prose--page > ul,
.prose--page > ol {
	max-width: 68ch;
}

/* Headings inside page content carry more weight than the section headings
   that sit on their own — they are read as part of a column of text, and at
   600 this serif goes soft against the body around it. */
.entry-content .wp-block-heading {
	font-weight: 700;
}

.prose--page h2 {
	margin-top: 3rem;
	max-width: 22ch;
}

.prose--page h2:first-child {
	margin-top: 0;
}

.prose--page h3 {
	margin-top: 1.5rem;
}

.gr-lede {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.9rem, 3.2vw, 2.9rem);
	line-height: 1.12;
	letter-spacing: var(--ls-heading);
	color: var(--navy);
	max-width: 22ch !important;
	margin-bottom: 1.75rem;
	text-wrap: balance;
}

/* Checklist: a List block with the class gr-checklist */
.entry-content ul.gr-checklist {
	list-style: none;
	padding: 0;
	margin: 0.75rem 0 1.5rem;
	display: grid;
	gap: 0.5rem;
}

.entry-content ul.gr-checklist li {
	position: relative;
	padding-left: 1.75rem;
	margin: 0;
}

.entry-content ul.gr-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 0.9rem;
	height: 0.5rem;
	border-left: 2.5px solid var(--brick);
	border-bottom: 2.5px solid var(--brick);
	transform: rotate(-45deg);
}

/* ---------- Print ---------- */

@media print {
	.site-header,
	.site-footer,
	.cta,
	.skip-link,
	.accordion__mark {
		display: none !important;
	}

	/* A belt to the JavaScript's braces: if the script never ran, this at
	   least gives the panel a chance of printing. */
	details > *:not(summary) {
		display: block !important;
	}

	body {
		background: #fff;
		color: #000;
	}
}

/* ---------- The accordion ---------- */

.accordion .container {
	display: flex;
	flex-direction: column;
}

.accordion__item {
	border-top: 1px solid var(--line);
	scroll-margin-top: 6rem;
}

.accordion__item:last-child {
	border-bottom: 1px solid var(--line);
}

/* The flex goes on an inner wrapper, never on the summary itself: Safari
   stops treating a flexed summary as clickable. */
.accordion__summary {
	list-style: none;
	cursor: pointer;
	position: relative;
}

.accordion__summary::-webkit-details-marker {
	display: none;
}

.accordion__summary:focus-visible {
	outline: 3px solid var(--focus-ring, var(--brick));
	outline-offset: -3px;
}

.accordion__row {
	display: flex;
	align-items: baseline;
	gap: clamp(1rem, 3vw, 2.5rem);
	padding: clamp(1.4rem, 2.6vw, 2.1rem) 0;
}

.accordion__num {
	flex: 0 0 auto;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--brick);
}

/* The process steps sit under a section heading, so their titles have to give
   it room — the services list has no heading above it and can run larger. */
.accordion--compact .accordion__title {
	font-size: clamp(1.2rem, 2.1vw, 1.65rem);
}

.accordion__title {
	flex: 1 1 auto;
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	line-height: 1.1;
	color: var(--navy);
	transition: color 0.3s var(--ease-reveal);
}

.accordion__summary:hover .accordion__title {
	color: var(--brick);
}

/* A plus that becomes a minus, drawn rather than typed so it stays aligned. */
.accordion__mark {
	flex: 0 0 auto;
	position: relative;
	width: 18px;
	height: 18px;
	align-self: center;
}

.accordion__mark::before,
.accordion__mark::after {
	content: "";
	position: absolute;
	inset: 50% 0 auto 0;
	height: 1.5px;
	background: var(--navy);
	transition: transform 0.35s var(--ease-reveal);
}

.accordion__mark::after {
	transform: rotate(90deg);
}

[open] > .accordion__summary .accordion__mark::after {
	transform: rotate(0deg);
}

.accordion__alias {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
}

.accordion__panel {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: start;
	padding-bottom: clamp(2rem, 4vw, 3rem);
}

.accordion__panel--text {
	grid-template-columns: minmax(0, 8fr);
}

.accordion__media {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--sand);
}

.accordion__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.accordion__lede {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.2rem, 1.8vw, 1.5rem);
	line-height: 1.35;
	color: var(--navy);
	max-width: 40ch;
}

.accordion__body h3 {
	font-size: 0.8125rem;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: var(--brick);
	margin: 1.5rem 0 0.5rem;
}

/* Height cannot be animated on <details> without either a feature that is not
   broadly supported yet or JS measurement that breaks find-in-page. The panel
   opens instantly and its contents settle in, which reads the same and cannot
   jank. */
@media (prefers-reduced-motion: no-preference) {
	[open] > .accordion__panel {
		animation: accordion-in 0.32s var(--ease-reveal) both;
	}
}

@keyframes accordion-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
	.accordion__panel {
		grid-template-columns: 1fr;
	}
}

/* ---------- What sets us apart ---------- */

.standout {
	background: var(--white);
	color: var(--muted);
}

/* The dark ground, used on About. Everything the white version lightened goes
   back: the cells, the titles, and the hairline between them, which needs the
   light line colour to be visible on navy at all. */
.standout--dark,
.standout--dark .standout__item {
	background: var(--navy);
}

.standout--dark {
	color: rgba(255, 255, 255, 0.82);
}

.standout--dark .standout__title {
	color: #fff;
}

/* The red Mike asked for on this band: the numerals and the label, in a brick
   light enough to read on navy. */
.standout--dark .standout__num {
	color: var(--brick-light);
}

.standout--dark .kicker {
	color: var(--brick-light);
}

.standout--dark .standout__grid {
	background: var(--line-light);
	border-color: var(--line-light);
}

.section-heading--light .section-heading__title {
	color: #fff;
}

.kicker--sand {
	color: var(--sand);
}

/* Was two columns for four points; it carries three now, and a fixed two
   leaves the fourth cell standing empty. */
.standout__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

.standout__item {
	background: var(--white);
	padding: clamp(1.5rem, 3vw, 2.5rem);
}

.standout__num {
	display: block;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.5rem;
	color: var(--brick);
	margin-bottom: 0.75rem;
}

.standout__title {
	color: var(--navy);
	font-size: 1.35rem;
	margin-bottom: 0.5rem;
}

.standout__item p {
	margin: 0;
	max-width: 44ch;
}

@media (max-width: 700px) {
	.standout__grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Project gallery ---------- */

.project-gallery__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

.project-gallery__item {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--sand);
}

.project-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The project story, beside a photograph rather than alone in a column. */
.project-story .split__body > :first-child {
	margin-top: 0;
}

.project-story .prose p {
	max-width: 48ch;
}

/* The kind of work, on the photograph. It is the first thing to read on a
   projects grid: a visitor knows what "kitchen remodel" means and does not
   know what "Dutchman" means. */
.project-card__type {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 1;
	padding: 0.5rem 0.9rem;
	background: var(--navy);
	color: #fff;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 0.5625rem;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
}

/* Headings that are meant to hold one line on a desktop and wrap on a phone.
   max-width in ch was breaking them early on wide screens. */
.standout .section-heading__title,
.service-line .section-heading__title,
.process .section-heading__title {
	max-width: none;
}

@media (max-width: 700px) {
	.standout .section-heading__title,
	.service-line .section-heading__title,
	.process .section-heading__title {
		max-width: 22ch;
	}
}

/* A row whose text runs to several paragraphs: the photograph sits at the top
   beside the first of them rather than centred against all four. */
.stagger__row--long {
	align-items: start;
}

/* ---------- The process ---------- */

/* Four short steps in the order they happen. A spine down the left is the
   whole point: it is what says these are consecutive rather than four things
   that happen to be listed. The numeral sits on it. */

.process__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 760px;
}

.process__step {
	position: relative;
	display: grid;
	grid-template-columns: 4.5rem 1fr;
	gap: 0 1.5rem;
	padding-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

/* The spine, drawn between one numeral and the next rather than through them,
   so it reads as a run and stops cleanly at the last step. */
.process__step::before {
	content: "";
	position: absolute;
	left: calc(2.25rem - 0.5px);
	top: 2.6rem;
	bottom: 0.5rem;
	width: 1px;
	background: var(--line);
}

.process__step:last-child {
	padding-bottom: 0;
}

.process__step:last-child::before {
	display: none;
}

.process__num {
	grid-column: 1;
	display: grid;
	place-items: center;
	width: 4.5rem;
	height: 4.5rem;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--white);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--brick);
}

.process__body {
	grid-column: 2;
	padding-top: 0.9rem;
}

.process__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.35rem, 2.2vw, 1.75rem);
	line-height: 1.15;
	color: var(--navy);
	margin: 0 0 0.5rem;
}

.process__lede {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--navy);
	margin: 0 0 0.6rem;
}

.process__text {
	font-weight: 300;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--ink);
	max-width: 56ch;
	margin: 0 0 0.8rem;
}

.process__text:last-of-type {
	margin-bottom: 1rem;
}

/* The bullet-separated line at the foot of a step: what actually happens in
   it, set quiet so it reads as a summary of the paragraph above rather than
   as more of it. */
.process__meta {
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 0.8125rem;
	letter-spacing: var(--ls-button);
	line-height: 1.5;
	color: var(--muted);
	padding-top: 0.8rem;
	border-top: 1px solid var(--line);
	max-width: 56ch;
	margin: 0;
}

@media (max-width: 560px) {
	.process__step {
		grid-template-columns: 3.25rem 1fr;
		gap: 0 1rem;
	}

	.process__num {
		width: 3.25rem;
		height: 3.25rem;
		font-size: 1rem;
	}

	.process__step::before {
		left: calc(1.625rem - 0.5px);
		top: 3.6rem;
	}

	.process__body {
		padding-top: 0.4rem;
	}
}

/* ---------- The service line ---------- */

/* One row of photographs with a name under each — the Services page, folded
   down to the part a visitor actually reads. */

.service-line__row {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
	gap: clamp(1rem, 2vw, 1.75rem);
}

.service-line__item {
	position: relative;
	min-width: 0;
}

.service-line__figure {
	margin: 0 0 0.9rem;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--sand);
}

.service-line__figure img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease-reveal);
}

.service-line__item:hover img {
	transform: scale(1.04);
}

.service-line__name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.05rem, 1.5vw, 1.25rem);
	line-height: 1.15;
	color: var(--navy);
	margin: 0;
}

/* ---------- Staggered rows ---------- */

/* Built on .split, which is the leadership block Mike picked out. The rows
   want real air between them or the alternation reads as a zigzag rather than
   as a rhythm. */

.stagger__rows {
	display: grid;
	gap: clamp(4rem, 9vw, 7.5rem);
}

/* A row with no photograph — there is no basement picture yet — runs the full
   width rather than leaving half the row empty, so it reads as a deliberate
   break in the rhythm instead of an image that failed to load. */
.stagger__row--text {
	grid-template-columns: 1fr;
	justify-items: center;
	text-align: center;
	padding-block: clamp(1rem, 3vw, 2.5rem);
	border-block: 1px solid var(--line);
}

.stagger__row--text .stagger__text {
	max-width: 54ch;
}

/* A scroll target only — it must not open a gap in the text above the title. */
.stagger__alias {
	display: block;
	height: 0;
	scroll-margin-top: 6rem;
}

.stagger__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.12;
	color: var(--navy);
	margin: 0 0 0.9rem;
}

.stagger__text {
	font-weight: 300;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--ink);
	max-width: 46ch;
	margin: 0 0 1.4rem;
}

.section--navy .stagger__title {
	color: #fff;
}

.section--navy .stagger__text {
	color: rgba(255, 255, 255, 0.78);
}

/* The frame is drawn in brick on light ground; on navy it would shout. */
.section--navy .split__media::before {
	border-color: rgba(255, 255, 255, 0.35);
}

/* ---------- Before and after ---------- */

/* Side by side, not a draggable wipe. Only two of the houses were photographed
   before the work, and those photographs are pairs by subject rather than by
   frame — a portrait phone shot of a stripped room against a landscape
   photograph of the finished one, taken from somewhere else in the room. A
   wipe needs a shared vantage point; without one it slices two unrelated
   pictures together. A common 4:3 frame gives them the shared shape they were
   never shot with, and the eye does the comparing. */

.ba-list {
	display: grid;
	gap: clamp(3.5rem, 7vw, 6rem);
}

.ba__room {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.35rem, 2.2vw, 1.75rem);
	line-height: 1.2;
	color: var(--navy);
	margin: 0 0 1.1rem;
	padding-bottom: 0.8rem;
	border-bottom: 1px solid var(--line);
}

.ba__frames {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

.ba__frame {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 3;
	background: var(--sand);
	/* .reveal-image clips too, but only under .js — the frame has to hold its
	   photograph to the same shape with scripts off. */
	overflow: hidden;
}

.ba__frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ba__label {
	position: absolute;
	left: 0;
	bottom: 0;
	padding: 0.55rem 0.95rem;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 0.5625rem;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
}

.ba__frame--before .ba__label {
	background: rgba(21, 29, 37, 0.66);
	color: rgba(255, 255, 255, 0.86);
	backdrop-filter: blur(3px);
}

/* Warm ground on the finished half: the pair is legible at a glance even
   before the words are read. */
.ba__frame--after .ba__label {
	background: var(--sand);
	color: var(--navy);
}

@media (max-width: 700px) {
	.ba__frames {
		grid-template-columns: 1fr;
	}
}

/* The hero label sits above the headline; on a photograph it needs the light
   treatment the footer and the dark bands already use. */
.hero__kicker {
	color: rgba(255, 255, 255, 0.82);
}

/* ---------- The showcase ---------- */

/* Three equal tiles: kitchens, bathrooms, whole-home. Structure over collage,
   and the label says what kind of work it is rather than which house it was,
   which is the only one of the two a visitor can use. */

.showcase {
	background: var(--navy-deep);
}

.showcase__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2px;
}

.showcase__cell {
	min-width: 0;
	aspect-ratio: 4 / 3;
}

.showcase__link {
	display: block;
	height: 100%;
	text-decoration: none;
}

.showcase__figure {
	position: relative;
	margin: 0;
	height: 100%;
	overflow: hidden;
	background: var(--navy);
}

.showcase__figure img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease-reveal);
}

.showcase__link:hover img {
	transform: scale(1.03);
}

.showcase__figure::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 55%;
	background: linear-gradient(to top, rgba(21, 29, 37, 0.82), rgba(21, 29, 37, 0));
	pointer-events: none;
}

.showcase__label {
	position: absolute;
	left: clamp(1.1rem, 2vw, 1.85rem);
	bottom: clamp(1rem, 2vw, 1.6rem);
	z-index: 1;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	line-height: 1;
	color: #fff;
	text-shadow: 0 1px 20px rgba(21, 29, 37, 0.5);
}

@media (max-width: 860px) {
	.showcase__grid {
		grid-template-columns: 1fr;
	}

	.showcase__cell {
		aspect-ratio: 3 / 2;
	}
}

/* ---------- Featured project ---------- */

/* The panel steps over the photograph rather than sitting beside it. One
   overlap, done deliberately, is what stops a page of rectangles reading like
   a template. */
.spotlight {
	background: var(--spotlight-ground);
	overflow: hidden;
}

.spotlight__inner {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 5fr);
	align-items: center;
	gap: 0;
}

.spotlight__media {
	margin: 0;
	aspect-ratio: 3 / 2;
	background: var(--sand);
}

.spotlight__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.spotlight__body {
	position: relative;
	z-index: 1;
	background: var(--cream);
	padding: clamp(2rem, 3.8vw, 3.25rem);
	margin-left: clamp(-6rem, -5vw, -2.5rem);
	box-shadow: 0 40px 70px -32px rgba(21, 29, 37, 0.45), 0 2px 10px -4px rgba(21, 29, 37, 0.14);
}

.spotlight__title {
	margin-bottom: 0.3rem;
	font-size: clamp(2rem, 3.4vw, 2.9rem);
}

.spotlight__location {
	font-family: var(--font-sans);
	font-weight: 800;
	font-size: 0.5625rem;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 1.2rem;
}

.spotlight__text {
	font-weight: 300;
	font-size: 1.0625rem;
	color: var(--ink);
	max-width: 42ch;
	margin-bottom: 1.75rem;
}

@media (max-width: 900px) {
	.spotlight__inner {
		grid-template-columns: 1fr;
	}

	.spotlight__body {
		margin-left: 0;
		margin-top: -2.5rem;
		margin-right: clamp(0rem, 4vw, 2rem);
	}
}

/* ---------- What we can do ---------- */

.capabilities {
	background: var(--navy);
	color: rgba(255, 255, 255, 0.82);
}

.text-link--light {
	color: #fff;
	border-bottom-color: var(--sand);
}

.text-link--light:hover {
	color: var(--sand);
}

/* Six tracks, two per tile: the same three across, but a short final row can
   widen to fill the line. */
.capability-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem);
}

.capability {
	grid-column: span 2;
}

/* Five services into three columns leaves a short final row and a hole where
   the sixth would be. The last two widen to close it, so the block ends on a
   straight edge rather than looking like something failed to load. */
.capability:nth-child(3n + 1):nth-last-child(2),
.capability:nth-child(3n + 1):nth-last-child(2) ~ .capability {
	grid-column: span 3;
}

@media (max-width: 900px) {
	.capability-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.capability,
	.capability:nth-child(3n + 1):nth-last-child(2),
	.capability:nth-child(3n + 1):nth-last-child(2) ~ .capability {
		grid-column: auto;
	}
}

@media (max-width: 560px) {
	.capability-grid {
		grid-template-columns: 1fr;
	}
}

/* A last tile left alone on its row reads as a mistake. When the count leaves
   one stranded — seven services in three columns does — it runs the full width
   instead and closes the section deliberately. */
.capability:last-child:nth-child(3n + 1) {
	grid-column: 1 / -1;
}

.capability:last-child:nth-child(3n + 1) .capability__media {
	aspect-ratio: 21 / 6;
}

@media (max-width: 900px) {
	.capability:last-child:nth-child(3n + 1) {
		grid-column: auto;
	}

	.capability:last-child:nth-child(3n + 1) .capability__media {
		aspect-ratio: 4 / 3;
	}
}

.capability__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.capability__media {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--navy-deep);
}

.capability__media img {
	transition: transform 1.2s var(--ease-reveal);
}

.capability__link:hover .capability__media img {
	transform: scale(1.03);
}

.capability__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.capability__name {
	display: block;
	margin-top: 1rem;
	padding-top: 0.9rem;
	border-top: 1px solid var(--line-light);
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 0.6875rem;
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	color: #fff;
	transition: color 0.3s var(--ease-reveal);
}

.capability__link:hover .capability__name {
	color: var(--sand);
}

/* ---------- Misc ---------- */

.listing-item {
	padding-block: 1.5rem;
	border-bottom: 1px solid var(--line);
}

.listing-item h2 {
	font-size: 1.5rem;
}

.listing-item a {
	color: var(--navy);
	text-decoration: none;
}

/* Reveal on scroll: only when JS is present, and never when motion is reduced.
   Slow and even rather than quick and springy — the point is that content
   arrives, not that it performs. Items in a row come in one after another;
   JS sets the delay so the markup does not have to know its own position. */
.js .reveal {
	opacity: 0;
	transform: translateY(28px);
	transition:
		opacity var(--reveal-duration) var(--ease-reveal),
		transform var(--reveal-duration) var(--ease-reveal);
	transition-delay: var(--reveal-delay, 0ms);
	will-change: opacity, transform;
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
	will-change: auto;
}

/* A photograph settles rather than slides: it is already there, and comes to
   rest from very slightly too large. */
.js .reveal-image {
	overflow: hidden;
}

.js .reveal-image img {
	transform: scale(1.06);
	transition: transform 2.2s cubic-bezier(0.14, 0.4, 0.09, 0.99);
}

.js .reveal-image.is-visible img {
	transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.js .reveal,
	.js .reveal-image img {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.button,
	.project-card,
	.project-card__media img {
		transition: none;
	}
}
