/* ==========================================================================
   Seward — main stylesheet (v1.1)
   Photography leads; type stays quiet. Colours come from
   Appearance > Customise > Brand colours (CSS variables).
   ========================================================================== */

:root {
	--gutter: clamp(20px, 3.2vw, 48px);
	--gap: clamp(16px, 2vw, 32px);
	--max: 1600px;
	--section: clamp(88px, 11vw, 176px);
	--rule: color-mix(in srgb, currentColor 18%, transparent);
	--muted: color-mix(in srgb, currentColor 56%, transparent);
	--ease: cubic-bezier(.2, .7, .1, 1);

	--fs-small: .9375rem;
	--fs-body: 1.0625rem;
	--fs-lead: clamp(1.125rem, 1.4vw, 1.3125rem);
	--fs-h3: clamp(1.1875rem, 1.4vw, 1.375rem);
	--fs-statement: clamp(1.625rem, 2.8vw, 2.625rem);
	--fs-title: clamp(2.5rem, 5.4vw, 5rem);
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--s-paper);
	color: var(--s-ink);
	font-family: var(--font-text, "Instrument Sans", system-ui, sans-serif);
	font-size: var(--fs-body);
	line-height: 1.6;
	font-weight: 400;
	font-kerning: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	transition: background-color .5s ease, color .5s ease;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: var(--gutter); top: -100px; z-index: 100;
	background: var(--s-ink); color: var(--s-paper); padding: .75em 1.25em;
}
.skip-link:focus { top: 12px; }

/* Layout ------------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--flush { padding-top: 0; }
.section--content { padding-block: clamp(24px, 3vw, 48px) var(--section); }
.page-hero__figure + .section--content { padding-top: clamp(48px, 6vw, 96px); }

/* The rail: hairline, small label on the left, content on the right. */
.rail { border-top: 1px solid var(--rule); padding-top: 20px; display: grid; gap: 28px; }
.rail__label { font-size: var(--fs-small); font-weight: 500; letter-spacing: 0; line-height: 1.4; margin: 0; }
.rail__body { min-width: 0; }
.rail__body > * + * { margin-top: clamp(28px, 3vw, 44px); }
.rail__intro { color: var(--muted); max-width: 34em; }
.rail__close { font-size: var(--fs-lead); line-height: 1.45; max-width: 30em; margin-bottom: 0; }
.rail__close + .text-link, .rail__intro + .text-link { margin-top: 14px; }
.rail__text { max-width: 36em; }
.rail__text p:last-of-type { margin-bottom: 1.4em; }
@media (min-width: 960px) {
	.rail { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
	.rail__label { grid-column: 1 / span 4; }
	.rail__body { grid-column: 5 / -1; }
}

/* Type helpers ------------------------------------------------------------ */
.two-tone {
	font-size: var(--fs-statement); line-height: 1.18; letter-spacing: -.02em; font-weight: 500;
	max-width: 24em; margin: 0;
}
.two-tone__rest { color: var(--muted); }

/* Links and buttons ------------------------------------------------------- */
.text-link {
	display: inline-block;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .35em;
	text-decoration-color: currentColor;
	transition: opacity .2s ease;
}
.text-link:hover { opacity: .65; }

/* Buttons: quiet, crisp rectangles. On a photograph they become a fine outline. */
.button,
.wp-block-button__link {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .8em 1.25em;
	border: 1px solid var(--s-ink); border-radius: 3px;
	background: var(--s-ink); color: var(--s-paper);
	font-size: var(--fs-small); font-weight: 500; line-height: 1.1; letter-spacing: .005em;
	text-decoration: none; cursor: pointer;
	transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
.button:hover, .wp-block-button__link:hover { background: transparent; color: var(--s-ink); }

/* Header ------------------------------------------------------------------ */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 40;
	color: var(--s-ink);
	background: color-mix(in srgb, var(--s-paper) 90%, transparent);
	-webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
	transition: transform .5s var(--ease), background-color .4s ease, color .4s ease;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-hidden { transform: translateY(-110%); }
.site-main { padding-top: var(--header-h, 72px); }
.has-overlay-header .site-main { padding-top: 0; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; }
.site-header__brand { display: block; color: inherit; }
.site-header__brand .seward-logo { height: 22px; width: auto; }
@media (min-width: 960px) { .site-header__brand .seward-logo { height: 24px; } }

/* Over a full-screen photograph the header is transparent and light. */
.site-header--overlay:not(.is-solid) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; }

.site-header__brand { margin-right: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); order: 2; }
.site-nav__list { display: flex; gap: clamp(20px, 2.4vw, 36px); list-style: none; }
.site-nav__list a { text-decoration: none; font-size: var(--fs-small); font-weight: 500; padding-block: .4em; }
.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a,
.site-nav__list .current-menu-ancestor > a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .4em; }
.site-nav__cta { padding: .62em 1.05em; }
.site-header--overlay:not(.is-solid) .site-nav__cta { background: transparent; color: #fff; border-color: rgb(255 255 255 / .7); }
.site-header--overlay:not(.is-solid) .site-nav__cta:hover { background: #fff; color: #1d1c1a; border-color: #fff; }

.menu-toggle { display: none; }

@media (max-width: 959px) {
	.menu-toggle {
		display: inline-flex; position: relative; z-index: 31;
		background: none; border: 0; padding: .5em 0; cursor: pointer;
		font-size: var(--fs-small); font-weight: 500;
	}
	.menu-toggle__close { display: none; }
	.menu-open .menu-toggle, .menu-open .theme-toggle { color: var(--s-on-dark); }
	.menu-open .menu-toggle__open { display: none; }
	.menu-open .menu-toggle__close { display: inline; }
	.menu-open .site-header__brand { color: var(--s-on-dark); position: relative; z-index: 31; }
	.menu-open .theme-toggle { position: relative; z-index: 31; }

	.site-nav {
		position: fixed; inset: 0; z-index: 30;
		flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 40px;
		padding: 96px var(--gutter) 48px;
		background: var(--s-yew); color: var(--s-on-dark);
		visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility 0s linear .25s;
	}
	.menu-open .site-nav { visibility: visible; opacity: 1; transition: opacity .25s ease; }
	.menu-open { overflow: hidden; }
	.menu-open .site-header { transform: none; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.site-nav__list { flex-direction: column; gap: 4px; }
	.site-nav__list a { font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -.025em; line-height: 1.15; display: block; }
	.site-nav .button, .site-header--overlay:not(.is-solid) .site-nav__cta { background: transparent; color: var(--s-on-dark); border-color: color-mix(in srgb, var(--s-on-dark) 60%, transparent); font-size: 1.0625rem; padding: .8em 1.3em; }
}

/* Breadcrumb -------------------------------------------------------------- */
.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: clamp(24px, 3vw, 40px); }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; gap: .4em; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .4em; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Full-screen opening (homepage and projects) ----------------------------- */
.full-hero {
	position: relative; overflow: hidden;
	min-height: max(560px, 100svh);
	display: flex; align-items: flex-end;
	color: #fff; background: var(--s-ink);
}
.full-media { position: absolute; inset: 0; }
.full-media > img,
.full-media > video,
.full-media > .placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.full-media > video { opacity: 0; transition: opacity 1.2s ease; }
.full-media > video.is-playing { opacity: 1; }
/* A soft shade at top and bottom keeps the header and headline readable on any photograph. */
.full-media::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(to bottom, rgb(0 0 0 / .32), transparent 22%),
		linear-gradient(to top, rgb(0 0 0 / .5), rgb(0 0 0 / .12) 40%, transparent 65%);
}
.full-media > .placeholder { background: color-mix(in srgb, var(--s-yew) 70%, #111); color: #fff; }
.full-media > .placeholder .placeholder__mark { opacity: .18; }

.full-hero__content {
	position: relative; z-index: 1;
	display: grid; gap: 24px;
	padding-bottom: clamp(32px, 5vw, 64px);
}
.full-hero__title { font-size: var(--fs-title); line-height: 1.02; letter-spacing: -.035em; font-weight: 500; }
.full-hero__title--project { font-size: clamp(3rem, 9vw, 9rem); line-height: .95; letter-spacing: -.045em; }
.full-hero__aside { max-width: 28em; font-size: var(--fs-small); line-height: 1.55; color: #fff; margin: 0; }
.full-hero__line { margin: clamp(14px, 1.6vw, 22px) 0 0; font-size: clamp(1.125rem, 1.6vw, 1.5rem); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; color: #fff; max-width: 26em; }
.full-hero__action { margin: 0; font-size: var(--fs-body); }
.full-hero__title, .full-hero__line, .full-hero__action { text-shadow: 0 1px 24px rgb(0 0 0 / .18); }
.full-hero__aside p { margin-bottom: 1.1em; }
.full-hero .text-link { color: #fff; }
@media (min-width: 960px) {
	.full-hero__content { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
	.full-hero__title { grid-column: 1 / span 8; }
	.full-hero__main { grid-column: 1 / span 9; }
	.full-hero__aside { grid-column: 9 / span 4; justify-self: start; }
	.full-hero__title--project { grid-column: 1 / span 9; }
	.full-hero--project .full-hero__aside { grid-column: 10 / span 3; }
}
/* One moment of motion: the opening photograph settles as the page loads. */
@media (prefers-reduced-motion: no-preference) {
	.js .full-media > img { animation: settle 2.2s var(--ease) both; }
}
@keyframes settle { from { transform: scale(1.04); } to { transform: scale(1); } }

/* Full-width photograph between sections */
.band-image { aspect-ratio: 16 / 9; overflow: hidden; background: var(--s-stone); margin-bottom: var(--section); }
.band-image img, .band-image .placeholder { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1200px) { .band-image { aspect-ratio: 21 / 9; } }

/* Placeholder for photographs not yet supplied ---------------------------- */
.placeholder {
	position: relative; display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%; min-height: 100%;
	background: var(--s-stone);
	color: var(--s-ink);
}
.placeholder__mark { width: clamp(48px, 6%, 80px); opacity: .12; }
.placeholder__brief {
	position: absolute; left: 12px; bottom: 12px; right: 12px; max-width: 30em;
	padding: 10px 12px; background: #fff; color: var(--s-ink);
	font-size: .8125rem; line-height: 1.4;
}
.full-media .placeholder__brief { top: 96px; bottom: auto; }
.placeholder__brief strong { font-weight: 600; margin-right: .3em; }

/* Three points (the threshold) -------------------------------------------- */
.trio { list-style: none; display: grid; gap: 32px; }
@media (min-width: 720px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); } }
.trio__item { border-top: 1px solid var(--rule); padding-top: 16px; }
.trio__name { font-size: var(--fs-body); font-weight: 500; margin-bottom: .5em; }
.trio__item p { color: var(--muted); margin: 0; font-size: var(--fs-small); max-width: 28em; }

/* Service rows ------------------------------------------------------------ */
.service-list { list-style: none; }
.service-list__item { border-top: 1px solid var(--rule); }
.service-list__item:last-child { border-bottom: 1px solid var(--rule); }
.service-list__link { display: grid; gap: 6px; padding-block: clamp(18px, 2vw, 28px); text-decoration: none; }
.service-list__name { font-size: clamp(1.375rem, 2.2vw, 2rem); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.service-list__summary { color: var(--muted); font-size: var(--fs-small); max-width: 34em; }
.service-list__link:hover .service-list__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
@media (min-width: 960px) {
	.service-list__link { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: var(--gap); align-items: baseline; }
}

/* Project cards ----------------------------------------------------------- */
.project-card { min-width: 0; }
.project-card__link { display: block; text-decoration: none; }
.project-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--s-stone); margin-bottom: 16px; }
.project-card__media img, .project-card__media .placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project-card__link:hover .project-card__media img { transform: scale(1.015); }
.project-card__title { font-size: var(--fs-h3); letter-spacing: -.01em; margin-bottom: .2em; }
.project-card__link:hover .project-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.project-card__summary { margin: 0; font-size: var(--fs-small); }
.project-card__meta { font-size: var(--fs-small); color: var(--muted); margin: 0; }
@media (min-width: 720px) {
	.project-card__link { display: grid; }
}

/* Homepage feature: one project full width, then two side by side (Rosa-like rhythm). */
.project-feature { display: grid; gap: 56px var(--gap); margin-top: clamp(40px, 5vw, 72px); }
@media (min-width: 720px) {
	.project-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.project-feature > :first-child { grid-column: 1 / -1; }
	.project-feature > :first-child .project-card__media { aspect-ratio: 16 / 9; }
}
@media (min-width: 1200px) { .project-feature > :first-child .project-card__media { aspect-ratio: 21 / 9; } }

.project-grid { display: grid; gap: 56px var(--gap); margin-top: clamp(32px, 4vw, 56px); }
@media (min-width: 720px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(56px, 6vw, 96px); } }

/* Work filter */
.filter { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.filter__button {
	background: none; border: 0; padding: .35em 0; cursor: pointer;
	font-size: var(--fs-small); font-weight: 500; color: var(--muted);
	text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .45em;
}
.filter__button:hover { color: var(--s-ink); }
.filter__button[aria-pressed="true"] { color: var(--s-ink); text-decoration-color: currentColor; }
.filter__empty { color: var(--muted); margin-top: 32px; }

/* Steps: big numerals in Yew ---------------------------------------------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 48px var(--gap); margin-top: clamp(56px, 7vw, 112px); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps__item { counter-increment: step; border-top: 1px solid var(--rule); padding-top: 16px; }
.steps__item::before {
	content: counter(step, decimal-leading-zero);
	display: block; margin-bottom: clamp(16px, 2vw, 28px);
	font-size: clamp(3.5rem, 6vw, 5.5rem); font-weight: 500; line-height: 1; letter-spacing: -.05em;
	font-variant-numeric: tabular-nums; color: var(--s-accent);
}
.steps__name { font-size: var(--fs-body); font-weight: 500; margin-bottom: .5em; }
.steps__item p { margin: 0; color: var(--muted); font-size: var(--fs-small); max-width: 26em; }

/* Heritage ---------------------------------------------------------------- */
.heritage { display: grid; gap: 40px; border-top: 1px solid var(--rule); padding-top: 20px; }
.heritage__figure { aspect-ratio: 4 / 5; overflow: hidden; background: var(--s-stone); }
.heritage__figure img, .heritage__figure .placeholder { width: 100%; height: 100%; object-fit: cover; }
.heritage__title { font-size: var(--fs-statement); line-height: 1.18; letter-spacing: -.02em; margin-bottom: .7em; }
.heritage__body p { max-width: 32em; color: var(--muted); }
.heritage__body p:last-of-type { margin-bottom: 1.6em; }
@media (min-width: 960px) {
	.heritage { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
	.heritage__figure { grid-column: 1 / span 4; }
	.heritage__body { grid-column: 5 / -1; align-self: end; }
}

/* Contact panel and footer (Yew) ----------------------------------------- */
.band--yew { background: var(--s-yew); color: var(--s-on-dark); }
.site-footer a { color: var(--s-on-dark); }
.contact-panel { padding-block: var(--section) clamp(64px, 8vw, 120px); display: grid; gap: 32px; }
.contact-panel__title { font-size: var(--fs-title); line-height: 1.02; letter-spacing: -.035em; }
.contact-panel__text { color: color-mix(in srgb, var(--s-on-dark) 75%, transparent); max-width: 30em; margin-bottom: 1.6em; }
.contact-lines { list-style: none; display: grid; gap: 6px; margin-bottom: 1.2em; }
.contact-lines__link {
	font-size: clamp(1.25rem, 1.8vw, 1.625rem); font-weight: 500; letter-spacing: -.015em; line-height: 1.25;
	text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em;
	text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
	overflow-wrap: anywhere;
}
.contact-lines__link:hover { text-decoration-color: currentColor; }
.contact-panel__who { font-size: var(--fs-small); color: var(--muted); margin: 0; }
.band--yew .contact-panel__who { color: var(--s-lichen); }
@media (min-width: 960px) {
	.contact-panel { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
	.contact-panel__title { grid-column: 1 / span 7; }
	.contact-panel__body { grid-column: 9 / -1; align-self: end; }
}

.site-footer__base {
	display: grid; gap: 32px;
	padding-block: 40px;
	border-top: 1px solid color-mix(in srgb, var(--s-on-dark) 16%, transparent);
	font-size: var(--fs-small);
}
.site-footer__base ul { list-style: none; display: grid; gap: 4px; }
.site-footer__base a { text-decoration: none; }
.site-footer__base a:hover { text-decoration: underline; }
.site-footer__mark { width: 52px; color: var(--s-lichen); }
.site-footer__heading { color: var(--s-lichen); font-weight: 500; margin-bottom: .6em; }
.site-footer__col p { margin-bottom: .4em; max-width: 22em; }
.site-footer__quiet { color: color-mix(in srgb, var(--s-on-dark) 60%, transparent); }
.site-footer__menu { list-style: none; display: grid; gap: 4px; }
.site-footer__legal { grid-column: 1 / -1; margin: 24px 0 0; font-size: .8125rem; color: color-mix(in srgb, var(--s-on-dark) 58%, transparent); }
.site-footer__legal a { color: inherit; text-decoration: underline; }
@media (min-width: 720px) { .site-footer__base { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__mark { grid-column: 1 / -1; } }
@media (min-width: 1100px) {
	.site-footer__base { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
	.site-footer__mark { grid-column: 1 / span 4; }
	.site-footer__col:nth-of-type(1) { grid-column: 5 / span 2; }
	.site-footer__base > :nth-child(3) { grid-column: 7 / span 2; }
	.site-footer__base > :nth-child(4) { grid-column: 9 / span 2; }
	.site-footer__base > :nth-child(5) { grid-column: 11 / span 2; }
}

/* Inner page opening ------------------------------------------------------ */
.page-hero { padding-block: clamp(48px, 7vw, 120px) clamp(32px, 4vw, 56px); }
.page-hero__title { font-size: var(--fs-title); line-height: 1.02; letter-spacing: -.035em; max-width: 14em; }
.page-hero__body { margin-top: clamp(32px, 4vw, 56px); }
.page-hero__lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--muted); max-width: 30em; margin: 0; }
@media (min-width: 960px) {
	.page-hero__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
	.page-hero__body > * { grid-column: 5 / -1; }
}
.page-hero__figure { aspect-ratio: 16 / 9; overflow: hidden; }
.page-hero__figure img, .page-hero__figure .placeholder { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1200px) { .page-hero__figure { aspect-ratio: 21 / 9; } }
.contact-lines--hero { margin-top: 32px; }
.contact-lines--hero .contact-lines__link { font-size: clamp(1.5rem, 2.6vw, 2.25rem); letter-spacing: -.025em; }

/* Project facts */
.facts { display: grid; gap: 0 var(--gap); margin: 0; }
@media (min-width: 600px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts__row { border-top: 1px solid var(--rule); padding-block: 12px 18px; }
.facts dt { font-size: .875rem; color: var(--muted); margin-bottom: 2px; }
.facts dd { margin: 0; font-weight: 500; }

/* Materials and gallery */
.materials__list { list-style: none; max-width: 36em; }
.materials__list li { border-bottom: 1px solid var(--rule); padding-block: 12px; }
.materials__list li:first-child { border-top: 1px solid var(--rule); }

.gallery { display: grid; gap: 12px; padding-inline: 12px; margin-bottom: var(--section); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery__item { overflow: hidden; background: var(--s-stone); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.gallery__item--wide { grid-column: 1 / -1; }
.gallery__item--wide img { aspect-ratio: 16 / 9; }
.gallery figcaption { font-size: .875rem; color: var(--muted); padding: 10px 0 0; background: var(--s-paper); }

/* Next project */
.next-project { border-top: 1px solid var(--rule); }
.next-project__link { display: grid; gap: 4px; padding-block: clamp(48px, 6vw, 96px); text-decoration: none; }
.next-project__label { font-size: var(--fs-small); color: var(--muted); }
.next-project__title { font-size: var(--fs-title); line-height: 1.02; letter-spacing: -.035em; font-weight: 500; }
.next-project__link:hover .next-project__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }

/* Search results */
.result-list { list-style: none; border-top: 1px solid var(--rule); max-width: 48rem; }
.result-list li { border-bottom: 1px solid var(--rule); padding-block: 24px; }
.result-list__title { font-size: var(--fs-h3); font-weight: 500; text-decoration: none; }
.result-list p { margin: .4em 0 0; color: var(--muted); }

/* ==========================================================================
   Written content (block editor)
   Text sits in the right-hand column, lined up with the section rails.
   ========================================================================== */
.prose { max-width: 40rem; }
@media (min-width: 960px) {
	.section--content > .wrap > .prose { margin-left: calc((100% - 11 * var(--gap)) / 12 * 4 + 4 * var(--gap)); }
}
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.15em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--muted); }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.02em; line-height: 1.15; margin: 2.2em 0 .6em; }
.prose h3 { font-size: var(--fs-h3); margin: 1.8em 0 .5em; }
.prose h2 + h3 { margin-top: .6em; }
.prose a:not(.wp-block-button__link) { text-decoration-color: var(--rule); }
.prose a:not(.wp-block-button__link):hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 600; }
.prose figure { margin: 2.4em 0; }
.prose img { width: 100%; }
.prose figcaption, .prose .wp-element-caption { font-size: .875rem; color: var(--muted); margin-top: 10px; }
.prose blockquote, .prose .wp-block-quote {
	margin: 2.2em 0; padding: 0 0 0 1.25em; border-left: 2px solid var(--s-accent);
	font-size: var(--fs-lead); line-height: 1.45;
}
.prose blockquote cite { display: block; margin-top: .6em; font-size: var(--fs-small); font-style: normal; color: var(--muted); }
.prose .wp-block-pullquote { margin: 2.6em 0; padding: 0; border: 0; text-align: left; }
.prose .wp-block-pullquote blockquote { border: 0; padding: 0; font-size: var(--fs-statement); line-height: 1.2; letter-spacing: -.015em; }
.prose hr, .prose .wp-block-separator { border: 0; border-top: 1px solid var(--rule); margin: 3em 0; }
.prose .is-statement, .prose .has-x-large-font-size { font-size: var(--fs-statement); line-height: 1.18; letter-spacing: -.02em; font-weight: 500; margin: 1.4em 0; }
.prose .has-large-font-size { font-size: var(--fs-lead); line-height: 1.45; }
.prose .has-small-font-size { font-size: var(--fs-small); }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 2em 0; }

.prose .alignwide, .prose .alignfull { max-width: none; }
.prose .alignleft { float: left; margin: .4em 1.6em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .4em 0 1em 1.6em; max-width: 50%; }

.prose .wp-block-columns { display: flex; flex-wrap: wrap; gap: clamp(24px, 3vw, 48px); margin: 2.4em 0; }
.prose .wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 781px) { .prose .wp-block-columns { flex-direction: column; } .prose .wp-block-column { flex-basis: 100% !important; } }
.prose .is-split h2 { margin-top: 0; }

.prose .wp-block-media-text { display: grid; gap: clamp(24px, 3vw, 48px); align-items: center; margin: 3em 0; }
@media (min-width: 782px) { .prose .wp-block-media-text { grid-template-columns: 1fr 1fr; } .prose .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { order: 2; } }
.prose .wp-block-media-text__media img { width: 100%; height: auto; }
.prose .is-threshold { background: var(--s-stone); padding: clamp(20px, 3vw, 40px); }
.prose .is-threshold h3 { margin-top: 0; }

.prose .wp-block-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prose .wp-block-gallery figure { margin: 0; }
.prose .wp-block-gallery img { height: 100%; object-fit: cover; }

.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-top: 1px solid var(--rule); }
.prose .is-facts th { width: 32%; font-weight: 500; color: var(--muted); }
.prose .is-facts td { font-size: var(--fs-body); }

.prose .is-steps { list-style: none; padding: 0; counter-reset: step; }
.prose .is-steps li { counter-increment: step; position: relative; padding: 18px 0 18px 3.4em; border-top: 1px solid var(--rule); margin: 0; }
.prose .is-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-size: 1.5rem; font-weight: 500; letter-spacing: -.03em; color: var(--s-accent); font-variant-numeric: tabular-nums; }

.prose .wp-block-details { border-top: 1px solid var(--rule); padding: 0; margin: 0; }
.prose .wp-block-details:last-of-type { border-bottom: 1px solid var(--rule); }
.prose .wp-block-details summary { cursor: pointer; list-style: none; padding: 18px 2em 18px 0; font-weight: 500; position: relative; }
.prose .wp-block-details summary::-webkit-details-marker { display: none; }
.prose .wp-block-details summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; font-weight: 400; line-height: 1; }
.prose .wp-block-details[open] summary::after { content: "–"; }
.prose .wp-block-details > :not(summary) { margin-top: 0; padding-bottom: 8px; color: var(--muted); }

/* Palette classes from the editor */
.has-ink-color { color: var(--s-ink); } .has-paper-color { color: var(--s-paper); } .has-stone-color { color: var(--s-stone); } .has-yew-color { color: var(--s-yew); } .has-lichen-color { color: var(--s-lichen); }
.has-ink-background-color { background-color: var(--s-ink); } .has-paper-background-color { background-color: var(--s-paper); } .has-stone-background-color { background-color: var(--s-stone); } .has-yew-background-color { background-color: var(--s-yew); } .has-lichen-background-color { background-color: var(--s-lichen); }
.prose .has-background { padding: clamp(20px, 3vw, 40px); }
.page-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin: 32px 0 0; }

/* Display face for large type (Helvetica Now Display when uploaded) */
.full-hero__title, .page-hero__title, .contact-panel__title, .next-project__title,
.two-tone, .heritage__title, .service-list__name, .steps__item::before, .prose h2,
.prose .is-statement, .prose .has-x-large-font-size, .prose .wp-block-pullquote blockquote {
	font-family: var(--font-display, var(--font-text));
}
@media (max-width: 959px) { .site-nav__list a { font-family: var(--font-display, var(--font-text)); } }

/* Helvetica Now is drawn tighter than Instrument Sans: ease the negative tracking. */
.type-helvetica .full-hero__title,
.type-helvetica .page-hero__title,
.type-helvetica .contact-panel__title,
.type-helvetica .next-project__title { letter-spacing: -.025em; }
.type-helvetica .full-hero__title--project { letter-spacing: -.035em; }
.type-helvetica .two-tone, .type-helvetica .heritage__title { letter-spacing: -.012em; }
.type-helvetica .service-list__name { letter-spacing: -.012em; }
.type-helvetica .steps__item::before { letter-spacing: -.04em; }
.type-helvetica h1, .type-helvetica h2, .type-helvetica h3 { font-weight: 500; }

/* ==========================================================================
   Light / dark toggle
   ========================================================================== */
.theme-toggle {
	order: 3; display: inline-grid; place-items: center;
	width: 40px; height: 40px; margin-right: -8px;
	background: none; border: 0; border-radius: 50%; color: inherit; cursor: pointer;
}
.theme-toggle svg { width: 18px; height: 18px; transition: transform .6s var(--ease); }
.theme-toggle.is-dark svg { transform: rotate(180deg); }
.theme-toggle:hover svg { transform: rotate(-20deg); }
.theme-toggle.is-dark:hover svg { transform: rotate(160deg); }
@media (max-width: 959px) {
	.theme-toggle { order: 2; margin-right: 4px; }
	.menu-toggle { order: 3; }
}
.site-header__inner { gap: clamp(8px, 1.6vw, 24px); }

/* Dark mode details */
:root[data-theme=dark] img { filter: brightness(.94); }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) img { filter: brightness(.94); } }
.placeholder__brief { color: #1d1c1a; }

/* ==========================================================================
   Motion. Everything here is off for visitors who prefer reduced motion.
   ========================================================================== */

/* Links: the underline sweeps out and draws back in on hover. */
.text-link {
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
	padding-bottom: .2em;
	transition: none;
}
.text-link:hover { opacity: 1; }
.site-nav__list a { text-decoration: none !important; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a,
.site-nav__list .current-menu-ancestor > a { background-size: 100% 1px; }
@media (max-width: 959px) { .site-nav__list a { background: none; } }

@media (prefers-reduced-motion: no-preference) {
	.text-link:hover { animation: underline-sweep .9s var(--ease); }
	@keyframes underline-sweep {
		0% { background-size: 100% 1px; background-position: 100% 100%; }
		45% { background-size: 0 1px; background-position: 100% 100%; }
		46% { background-size: 0 1px; background-position: 0 100%; }
		100% { background-size: 100% 1px; background-position: 0 100%; }
	}

	/* Headlines rise into place, line by line. */
	.js .rise { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
	.js .rise > span { display: block; transform: translateY(108%); transition: transform 1.3s var(--ease); transition-delay: calc(.15s + var(--i, 0) * .11s); }
	.js .is-ready .rise > span { transform: none; }
	.js .full-hero__aside, .js .full-hero__line, .js .full-hero__action, .js .page-hero__body, .js .full-hero--project .full-hero__aside { opacity: 0; transform: translateY(12px); transition: opacity 1s ease .65s, transform 1.2s var(--ease) .65s; }
	.js .is-ready .full-hero__aside, .js .is-ready .full-hero__line, .js .is-ready .full-hero__action, .js .is-ready .page-hero__body { opacity: 1; transform: none; }

	/* The opening photograph drifts slower than the page as you scroll. */
	@supports (animation-timeline: scroll()) {
		.full-media { animation: hero-drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
		.full-hero__content { animation: hero-lift linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
		@keyframes hero-drift { to { transform: translateY(16%); } }
		@keyframes hero-lift { to { transform: translateY(-6%); } }
	}

	/* Sections ease in as they arrive; groups follow one another. */
	.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
	.js [data-reveal].is-in { opacity: 1; transform: none; }

	/* Photographs unveil upwards and settle. */
	/* The frame stays put (so it can be seen arriving); the photograph inside it is unveiled. */
	.js [data-reveal="image"] { opacity: 1; transform: none; }
	.js [data-reveal="image"] > img,
	.js [data-reveal="image"] > .placeholder { clip-path: inset(100% 0 0 0); transform: scale(1.08); transition: clip-path 1.5s var(--ease), transform 2s var(--ease); transition-delay: var(--d, 0ms); }
	.js [data-reveal="image"].is-in > img,
	.js [data-reveal="image"].is-in > .placeholder { clip-path: inset(0 0 0 0); transform: scale(1); }
	.project-card__link:hover .project-card__media img { transform: scale(1.03); transition-delay: 0ms; transition-duration: 1.2s; }

	/* Soft fade between pages (browsers that support it). */
	@view-transition { navigation: auto; }
	::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: ease; }
	.site-header { view-transition-name: site-header; }
}

/* ==========================================================================
   Buttons (v1.4): quiet, square-ish, outlined in the header.
   ========================================================================== */
.button,
.wp-block-button__link {
	border-radius: 3px;
	padding: .78em 1.25em;
	border: 1px solid var(--s-ink);
	letter-spacing: .005em;
	transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
.button:hover, .wp-block-button__link:hover { background: transparent; color: var(--s-ink); border-color: var(--s-ink); }

.site-nav__cta { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 45%, transparent); padding: .62em 1.05em; }
.site-nav__cta:hover { background: var(--s-ink); color: var(--s-paper); border-color: var(--s-ink); }
.site-header--overlay:not(.is-solid) .site-nav__cta { background: transparent; color: #fff; border-color: rgb(255 255 255 / .55); }
.site-header--overlay:not(.is-solid) .site-nav__cta:hover { background: #fff; color: #1d1c1a; border-color: #fff; }
@media (max-width: 959px) {
	.site-nav .button, .site-header--overlay .site-nav__cta, .site-header--overlay:not(.is-solid) .site-nav__cta { background: transparent; color: var(--s-on-dark); border-color: color-mix(in srgb, var(--s-on-dark) 55%, transparent); font-size: 1.0625rem; padding: .8em 1.3em; }
}
.band--yew .button { border-color: var(--s-on-dark); background: var(--s-on-dark); color: var(--s-yew); }
.band--yew .button:hover { background: transparent; color: var(--s-on-dark); }

/* ==========================================================================
   Service panel: overlaps the foot of the homepage's opening photograph.
   ========================================================================== */
:root { --strip-overlap: clamp(96px, 11vw, 168px); }
.strip { position: relative; z-index: 2; background: var(--s-paper); }
.strip__list {
	list-style: none; display: grid; gap: 0;
	max-width: var(--max); margin-inline: auto; padding: clamp(28px, 4vw, 64px) var(--gutter);
}
.strip__item { border-top: 1px solid var(--rule); }
.strip__link { display: grid; gap: 4px; padding-block: 18px 20px; text-decoration: none; }
.strip__label { font-size: .875rem; color: var(--muted); margin-bottom: 4px; }
.strip__name { font-size: clamp(1.25rem, 1.7vw, 1.625rem); font-weight: 500; letter-spacing: -.018em; line-height: 1.15; font-family: var(--font-display, var(--font-text)); }
.strip__line { color: var(--muted); font-size: var(--fs-small); }
.strip__name { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; justify-self: start; padding-bottom: 2px; transition: background-size .55s var(--ease); }
.strip__link:hover .strip__name, .strip__link:focus-visible .strip__name { background-size: 100% 1px; }

@media (min-width: 720px) {
	.strip__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
}
@media (min-width: 1100px) {
	/* The panel sits over the photograph, stopping short of the right edge so the image runs on beside it. */
	.full-hero--with-strip .full-hero__content { padding-bottom: calc(var(--strip-overlap) + clamp(32px, 4vw, 56px)); }
	/* Size the photograph so the whole panel fits in the first screen, with space below it. */
	.full-hero--with-strip { min-height: max(560px, calc(100svh - (var(--strip-h, 280px) - var(--strip-overlap)) - var(--strip-gap))); }
	:root { --strip-gap: clamp(28px, 4vh, 56px); }
	.strip { margin-top: calc(-1 * var(--strip-overlap)); margin-right: clamp(64px, 12vw, 240px); }
	.strip__list { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-left: 0; max-width: none; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding-block: clamp(40px, 4vw, 64px) clamp(48px, 5vw, 80px); }
	.strip__item { border-top: 0; }
	.strip__link { padding: 0; gap: 6px; }
	.strip__label { margin-bottom: clamp(16px, 2vw, 28px); }
}
@media (prefers-reduced-motion: no-preference) {
	.js .strip { transform: translateY(28px); opacity: 0; transition: transform 1.3s var(--ease) .55s, opacity .9s ease .55s; }
	.js .is-ready .strip { transform: none; opacity: 1; }
}

/* ==========================================================================
   Homepage banner slider, driven by the service panel below it.
   ========================================================================== */
:root { --slide-time: 6.5s; }
.full-media--slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.full-media--slider .slide.is-active { opacity: 1; z-index: 1; }
.full-media--slider .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.full-media::after { z-index: 2; }

.slider-toggle {
	display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0;
	border: 1px solid rgb(255 255 255 / .55); border-radius: 50%;
	background: transparent; color: #fff; cursor: pointer; justify-self: start;
	transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.slider-toggle:hover { background: #fff; border-color: #fff; color: #1d1c1a; }
.slider-toggle svg { width: 14px; height: 14px; }
.slider-toggle__play { display: none; }
.slider-toggle[aria-pressed="true"] .slider-toggle__pause { display: none; }
.slider-toggle[aria-pressed="true"] .slider-toggle__play { display: inline; }
@media (min-width: 960px) {
	.slider-toggle { grid-column: 12; justify-self: end; align-self: end; margin-bottom: .3em; }
}

/* Progress bars on the service links */
.strip__item { position: relative; }
.strip__bar { display: block; height: 2px; background: var(--rule); margin-bottom: 18px; overflow: hidden; }
.strip__bar > span { display: block; height: 100%; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: left center; }
.strip__item.is-active .strip__bar > span { transform: scaleX(1); }
.strip--slider .strip__item { border-top: 0; padding-top: 0; }
.strip--slider .strip__link { padding-top: 0; }
.strip--slider .strip__item + .strip__item { margin-top: 12px; }
.strip--slider .strip__name, .strip--slider .strip__line, .strip--slider .strip__label { transition: opacity .5s ease; }
.js .strip--slider .strip__item:not(.is-active) .strip__name { opacity: .55; }
.js .strip--slider .strip__item:not(.is-active) .strip__line,
.js .strip--slider .strip__item:not(.is-active) .strip__label { opacity: .7; }
@media (min-width: 1100px) {
	.strip--slider .strip__item + .strip__item { margin-top: 0; }
	.strip--slider .strip__bar { margin-bottom: clamp(16px, 2vw, 24px); }
}

@media (prefers-reduced-motion: no-preference) {
	/* The photograph eases back slowly while it is showing. */
	.full-media--slider .slide img { transform: scale(1.06); transition: transform 9s cubic-bezier(.25, .1, .25, 1); }
	.full-media--slider .slide.is-active img { transform: scale(1); }
	/* The active link's bar fills over the time its photograph shows. */
	.js .strip--slider .strip__item.is-active .strip__bar > span { transform: scaleX(0); animation: strip-fill var(--slide-time) linear forwards; }
	.js .strip--slider.is-paused .strip__item.is-active .strip__bar > span { animation-play-state: paused; }
	.js .strip--slider.is-held .strip__item.is-active .strip__bar > span { animation: none; transform: scaleX(1); }
}
@keyframes strip-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Progress bars sit flush on the top edge of the panel. */
.strip--slider .strip__list { padding-top: 0; }
@media (min-width: 1100px) {
	.strip--slider .strip__list { padding-top: 0; }
	.strip--slider .strip__bar { margin-bottom: clamp(20px, 2.2vw, 30px); }
}

/* The bars join into one continuous line; text keeps its spacing with padding. */
@media (min-width: 720px) {
	.strip--slider .strip__list { column-gap: 0; }
	.strip--slider .strip__link { padding-right: var(--gap); }
}

/* ==========================================================================
   v1.7 Contemporary pass: small capital labels on hairlines, lighter display
   weight, a charcoal contact band, an offset project mosaic, and project
   pages laid out as a details table beside the story.
   ========================================================================== */
:root { --s-night: #262523; }
:root[data-theme=dark] { --s-night: var(--s-stone); }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) { --s-night: var(--s-stone); } }

/* Labels: small capitals, the quiet voice of the grid. */
.rail__label, .strip__label, .facts--table dt, .project-nav__label, .site-footer__heading,
.contact-panel__label, .filter--tabs .filter__button {
	font-size: .71875rem; font-weight: 500; line-height: 1.4;
	letter-spacing: .075em; text-transform: uppercase;
}
.rail__label { padding-top: 2px; }

/* Display type at a regular weight: larger and lighter reads as calmer. */
.seward :is(.full-hero__title, .page-hero__title, .two-tone, .heritage__title, .contact-panel__title,
	.service-list__name, .strip__name, .section-head__title, .project-nav__title, .stats__value, .next-project__title) {
	font-weight: 400;
}
.seward .steps__item::before { font-weight: 400; }

/* Buttons: square, small capitals. */
.button, .wp-block-button__link {
	border-radius: 0; text-transform: uppercase; font-size: .71875rem; letter-spacing: .09em;
	padding: 1.15em 1.8em;
}
.site-nav__cta { padding: .95em 1.35em; }

/* Section heading with filter tabs on the same hairline */
.section-head {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
	gap: 18px 40px; border-bottom: 1px solid var(--rule); padding-bottom: 14px;
}
.section-head__title { font-size: var(--fs-statement); line-height: 1.12; letter-spacing: -.02em; font-family: var(--font-display, var(--font-text)); }
.type-helvetica .section-head__title { letter-spacing: -.012em; }
.filter--tabs { gap: 6px clamp(18px, 2vw, 32px); }
.filter--tabs .filter__button {
	padding: .4em 0 14px; margin-bottom: -15px; color: var(--muted);
	text-decoration: none; border-bottom: 1px solid transparent;
	transition: color .3s ease, border-color .3s ease;
}
.filter--tabs .filter__button:hover { color: var(--s-ink); }
.filter--tabs .filter__button[aria-pressed="true"] { color: var(--s-ink); border-bottom-color: currentColor; }
.rail__body > .section-head + .rail__intro { margin-top: 18px; }
.section-foot { margin: clamp(32px, 4vw, 56px) 0 0; display: flex; justify-content: flex-end; }

/* Project cards: title and arrow on a hairline */
.project-card__head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 12px;
}
.project-card__title { margin: 0; font-weight: 400; }
.project-card__link:hover .project-card__title { text-decoration: none; }
.project-card__arrow { width: 13px; height: 13px; flex: none; transition: transform .5s var(--ease); }
.project-card__link:hover .project-card__arrow, .project-card__link:focus-visible .project-card__arrow { transform: translate(3px, 3px); }
.project-card__summary { color: var(--s-ink); }

/* Homepage mosaic: wide and narrow, then narrow and wide. */
.project-mosaic { display: grid; gap: 56px var(--gap); margin-top: clamp(40px, 5vw, 72px); }
.project-mosaic .project-card__media { aspect-ratio: 4 / 3; }
@media (min-width: 960px) {
	.project-mosaic { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: clamp(56px, 6vw, 96px); }
	.project-mosaic .project-card__media { aspect-ratio: auto; height: clamp(320px, 31vw, 580px); }
	.project-mosaic [data-pos="1"], .project-mosaic [data-pos="5"] { grid-column: 1 / span 7; }
	.project-mosaic [data-pos="2"], .project-mosaic [data-pos="6"] { grid-column: 8 / span 5; }
	.project-mosaic [data-pos="3"], .project-mosaic [data-pos="7"] { grid-column: 1 / span 5; }
	.project-mosaic [data-pos="4"], .project-mosaic [data-pos="8"] { grid-column: 6 / span 7; }
}

/* Work page uses the same caption; keep its two-up grid. */
.project-grid .project-card__media { aspect-ratio: 4 / 3; }

/* Approach: numbered list on hairlines, in the right-hand columns. */
.steps { row-gap: 0; column-gap: clamp(32px, 4vw, 64px); }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .steps { margin-left: calc((100% - 11 * var(--gap)) / 12 * 4 + 4 * var(--gap)); } }
.steps__item {
	display: grid; grid-template-columns: 2.6em minmax(0, 1fr); column-gap: 14px;
	border-top: 0; border-bottom: 1px solid var(--rule); padding: 22px 0 24px;
}
.steps__item::before {
	grid-row: 1 / span 2; margin: 0; color: var(--s-ink);
	font-size: clamp(1.625rem, 2.2vw, 2rem); line-height: 1; letter-spacing: -.03em;
}
.steps__name { margin: .15em 0 .4em; }

/* Figures */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px var(--gap); margin: 36px 0 40px; max-width: 46em; }
.stats__item { display: flex; flex-direction: column; }
.stats__value {
	order: -1; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--rule);
	font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -.035em;
	font-family: var(--font-display, var(--font-text)); font-variant-numeric: tabular-nums;
}
.stats__label { font-size: var(--fs-small); color: var(--muted); line-height: 1.4; max-width: 16em; }

/* Contact band and footer: charcoal rather than green. */
.band--yew { background: var(--s-night); }
.band--yew .contact-panel__who, .site-footer__mark, .site-footer__heading { color: color-mix(in srgb, var(--s-on-dark) 55%, transparent); }
.contact-panel { padding-block: clamp(80px, 9vw, 144px); align-items: start; }
.contact-panel__label { margin: 0; color: color-mix(in srgb, var(--s-on-dark) 70%, transparent); }
.contact-panel__title { font-size: var(--fs-statement); line-height: 1.14; letter-spacing: -.02em; max-width: 13em; }
.type-helvetica .contact-panel__title { letter-spacing: -.012em; }
@media (min-width: 960px) {
	.contact-panel__label { grid-column: 1 / span 4; padding-top: .5em; }
	.contact-panel__title { grid-column: 5 / span 4; }
	.contact-panel__body { grid-column: 9 / -1; align-self: start; padding-top: .35em; }
}
@media (max-width: 959px) { .site-nav { background: var(--s-night); } }

/* Project page: details table beside the story */
.project-intro { display: grid; gap: 48px; }
.facts--table { display: block; }
.facts--table .facts__row {
	display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
	border-top: 0; border-bottom: 1px solid var(--rule); padding: 14px 0;
}
.facts--table .facts__row:first-child { border-top: 1px solid var(--rule); }
.facts--table dt { margin: 0; color: var(--muted); flex: none; }
.facts--table dd { text-align: right; font-weight: 400; font-size: var(--fs-small); }
@media (min-width: 960px) {
	.project-intro { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
	.facts--table { grid-column: 1 / span 5; }
	.project-intro__story { grid-column: 7 / -1; }
}

/* Previous and next */
.project-nav { border-top: 1px solid var(--rule); }
.project-nav__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding-block: clamp(40px, 5vw, 80px); }
.project-nav__link { display: grid; gap: 12px; align-content: start; text-decoration: none; }
.project-nav__link--next { text-align: right; justify-items: end; }
.project-nav__label { color: var(--muted); }
.project-nav__title {
	font-size: var(--fs-statement); line-height: 1.12; letter-spacing: -.02em; font-family: var(--font-display, var(--font-text));
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 3px; transition: background-size .55s var(--ease);
}
.project-nav__link--next .project-nav__title { background-position: 100% 100%; }
.project-nav__link:hover .project-nav__title, .project-nav__link:focus-visible .project-nav__title { background-size: 100% 1px; }
/* Project openings carry a title and summary over busy interiors: a little more shade at the foot. */
.full-hero--project .full-media::after {
	background:
		linear-gradient(to bottom, rgb(0 0 0 / .32), transparent 22%),
		linear-gradient(to top, rgb(0 0 0 / .62), rgb(0 0 0 / .2) 42%, transparent 68%);
}

/* ==========================================================================
   v1.8 Graphic details: section markers, the scroll cue, paper grain.
   ========================================================================== */

/* Section markers: running number on the left, the section's name on the right. */
.marker {
	display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
	margin-bottom: clamp(20px, 2.4vw, 36px);
	font-size: .8125rem; line-height: 1.3; font-weight: 400; letter-spacing: .02em;
}
.marker__index { font-variant-numeric: tabular-nums; }
.marker__label { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; text-transform: uppercase; letter-spacing: .04em; text-align: right; }
.rail--marked { padding-top: clamp(28px, 3vw, 44px); }
.heritage { margin-top: 0; }

/* Scroll cue: the word set vertically, a fine line falling beneath it. */
.scroll-cue {
	position: absolute; z-index: 3; right: max(14px, calc(var(--gutter) / 2 - 8px)); bottom: clamp(28px, 4vw, 52px);
	display: none; flex-direction: column; align-items: center; gap: 12px;
	color: #fff; text-decoration: none; font-size: .75rem; letter-spacing: .04em;
}
@media (min-width: 720px) { .scroll-cue { display: flex; } }
.scroll-cue__text { writing-mode: vertical-rl; transform: rotate(180deg); }
.scroll-cue__line { position: relative; display: block; width: 1px; height: 52px; overflow: hidden; background: rgb(255 255 255 / .32); }
.scroll-cue__line::after { content: ""; position: absolute; inset: 0; background: #fff; }
.scroll-cue:hover .scroll-cue__text { opacity: .7; }
@media (prefers-reduced-motion: no-preference) {
	.scroll-cue__line::after { transform: translateY(-100%); animation: cue-fall 2.6s cubic-bezier(.65, 0, .35, 1) 1.6s infinite; }
	@keyframes cue-fall { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }
}
.anchor { scroll-margin-top: 0; }
#project-details:focus, .anchor:focus { outline: 0; }

/* Paper grain: a fine, barely-there tooth on the light background. */
:root {
	--grain: url("../img/grain.png");
}
body, .strip { background-image: var(--grain); background-size: 200px 200px; }
:root[data-theme=dark] body, :root[data-theme=dark] .strip { background-image: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) body, :root:not([data-theme=light]) .strip { background-image: none; } }

/* ==========================================================================
   Homepage intro (v1.15)
   1. Each half of the mark is drawn along its own shape, like a broad pen
      stroke: up the short stem, round the corner and along the bar. The two
      halves start at opposite ends, so both travel clockwise together.
      Each half shows its own crop of the opening photograph: only the
      house in the top half, only the lawn in the bottom half
      (seward_intro_crops() in inc/template-tags.php).
   2. The stroke carries on the same way and is taken away from where it
      began, chasing the drawn end off the shape.
   3. The page splits along the threshold, the line through the middle of
      the S: top half up, bottom half down. The photograph settles into
      place as it opens and the header, headline and links load around it.
   ========================================================================== */
.intro { display: none; }
html.is-intro { overflow: hidden; }
html.is-intro .intro { display: block; position: fixed; inset: 0; z-index: 100; }

.intro__panel {
	position: absolute; left: 0; right: 0; height: 50.2%;
	background-color: var(--s-paper); background-image: var(--grain); background-size: 200px 200px;
	animation: 1.1s cubic-bezier(.7, 0, .2, 1) 2.35s forwards;
}
:root[data-theme=dark] .intro__panel { background-image: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .intro__panel { background-image: none; } }
.intro__panel--top { top: 0; animation-name: intro-open-up; }
.intro__panel--bottom { bottom: 0; animation-name: intro-open-down; }
@keyframes intro-open-up { to { transform: translateY(-100%); } }
@keyframes intro-open-down { to { transform: translateY(100%); } }

.intro__mark {
	position: absolute; left: 50%; top: 50%; z-index: 1;
	width: clamp(150px, 14vw, 240px); aspect-ratio: 79 / 40.3;
	transform: translate(-50%, -50%);
	color: var(--s-ink);
}
@media (max-aspect-ratio: 1/1) { .intro__mark { width: clamp(130px, 38vw, 220px); } }
.intro__mark svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* Draw along the shape, then take it away the same way. */
.intro__trace {
	stroke-dasharray: 100 100; stroke-dashoffset: 100; stroke-linecap: butt;
	animation: intro-trace-draw .95s cubic-bezier(.5, 0, .2, 1) .15s forwards, intro-trace-erase .85s cubic-bezier(.6, 0, .3, 1) 1.5s forwards;
}
@keyframes intro-trace-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes intro-trace-erase { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }

/* The photograph settles into place as the page opens. */
html.is-intro .full-hero .full-media { scale: 1.14; animation: none; }
html.is-intro.intro-go .full-hero .full-media { animation: intro-settle 1.6s cubic-bezier(.3, 0, .1, 1) 2.35s forwards; }
@keyframes intro-settle { from { scale: 1.14; } to { scale: 1; } }

/* Page elements wait for the split, then load around the photograph. */
html.is-intro body:not(.is-ready) .full-hero__content,
html.is-intro body:not(.is-ready) .strip,
html.is-intro body:not(.is-ready) .site-header,
html.is-intro body:not(.is-ready) .scroll-cue,
html.is-intro body:not(.is-ready) .slider-toggle { opacity: 0; transition: none; }
html.is-intro body.is-ready .site-header,
html.is-intro body.is-ready .scroll-cue,
html.is-intro body.is-ready .slider-toggle { transition: opacity .9s ease .25s; }

/* Wait for the photograph before starting. */
html.is-intro:not(.intro-go) .intro * { animation-play-state: paused; }
/* Hold the banner's first progress bar until the page has opened. */
html.is-intro .strip__bar > span { animation-play-state: paused !important; }
/* Links panel: no deep foot under the descriptions; the same small space as above the labels. */
@media (min-width: 1100px) { .strip--slider .strip__list, .strip__list { padding-bottom: clamp(20px, 2.2vw, 30px); } }
/* The section straight after the links panel follows on closely rather than with a full section's opening space. */
#content-start + .section { padding-top: clamp(48px, 5vw, 80px); }

/* Counting numbers: steps hand their numeral to the script (data-num) so it can count up. */
.steps__item[data-num]::before, .prose .is-steps li[data-num]::before { content: attr(data-num); }
.stats__value, .marker__index { font-variant-numeric: tabular-nums; }
/* Links panel in two columns (tablets): every bar on one line per row, and a clear gap between rows. */
@media (min-width: 720px) and (max-width: 1099px) {
	.strip--slider .strip__item + .strip__item { margin-top: 0; }
	.strip--slider .strip__list { row-gap: clamp(28px, 4vw, 40px); padding-bottom: clamp(28px, 4vw, 40px); }
}
