/*
Theme Name: Broadpeak Photography
Theme URI: https://broadpeakphotography.com
Author: Broadpeak Media
Author URI: https://broadpeakmedia.com
Description: Image-first theme for Broadpeak Photography. Fast by design: no jQuery, no page builder, self-hosted fonts, AVIF/WebP image pipeline, justified galleries with a keyboard-friendly lightbox. Pair with the Broadpeak Photography Core plugin for work, services, testimonials and the inquiry form.
Version: 1.0.8
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: broadpeak
*/

/* ---------- Fonts (self-hosted, latin subset, variable) ---------- */
@font-face {
	font-family: "Fraunces";
	src: url("assets/fonts/fraunces-latin-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Fraunces";
	src: url("assets/fonts/fraunces-latin-italic-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter-latin-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--ink: #12110f;
	--ink-2: #1b1a17;
	--ink-3: #2a2824;
	--bone: #ece6db;
	--paper: #f7f4ee;
	--white: #ffffff;
	--stone: #6f695f;
	--copper: #b5774a;
	--copper-dark: #94592f;
	--copper-button: #9a5d33;
	--copper-button-hover: #7d4a27;
	--text: #1d1c19;
	--muted: #5c574f;
	--on-dark: #ece6dc;
	--on-dark-muted: #a8a196;
	--line: rgba(18, 17, 15, 0.14);
	--line-dark: rgba(236, 230, 220, 0.16);
	--error: #b3261e;

	--serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wrap: 1360px;
	--prose: 720px;
	--gutter: clamp(20px, 4.5vw, 64px);
	--section: clamp(80px, 11vw, 168px);
	--header-h: 76px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);

	--step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
	--step-0: clamp(1rem, 0.97rem + 0.15vw, 1.1rem);
	--step-1: clamp(1.15rem, 1.07rem + 0.4vw, 1.4rem);
	--step-2: clamp(1.45rem, 1.25rem + 0.9vw, 2rem);
	--step-3: clamp(1.9rem, 1.5rem + 1.9vw, 3rem);
	--step-4: clamp(2.4rem, 1.7rem + 3.3vw, 4.6rem);
	--step-5: clamp(2.8rem, 1.8rem + 4.8vw, 6.4rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--sans);
	font-size: var(--step-0);
	line-height: 1.65;
	font-feature-settings: "ss01", "cv11";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
body.has-solid-header { padding-top: var(--header-h); }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--copper-dark); }
h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 380;
	line-height: 1.08;
	letter-spacing: -0.012em;
	margin: 0 0 0.5em;
	font-variation-settings: "SOFT" 30;
	text-wrap: balance;
}
p { margin: 0 0 1.1em; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
::selection { background: var(--copper); color: var(--white); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: fixed; top: 8px; left: 8px; z-index: 200; padding: 12px 18px;
	background: var(--white); color: var(--ink); transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.site-main:focus { outline: none; }

.eyebrow {
	font-family: var(--sans);
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--copper-dark);
	margin: 0 0 1.1rem;
}
.eyebrow a { text-decoration: none; }
.eyebrow--light, .section--dark .eyebrow { color: #e3b48c; }
.eyebrow--light { color: #f2d6bd; text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }
.display-1 { font-size: var(--step-5); font-weight: 340; }
.display-2 { font-size: var(--step-4); font-weight: 340; }
.media-placeholder { display: block; width: 100%; height: 100%; min-height: 200px; background: linear-gradient(135deg, var(--ink-3), var(--ink)); }
.empty { padding: 60px 0; color: var(--muted); }

/* ---------- Buttons ---------- */
.bpp-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	padding: 1.05em 1.75em;
	border: 1px solid transparent;
	border-radius: 0;
	font-family: var(--sans);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.bpp-button--solid, .wp-block-button__link { background: var(--copper-button); color: var(--white); border-color: var(--copper-button); }
.bpp-button--solid:hover, .wp-block-button__link:hover { background: var(--copper-button-hover); border-color: var(--copper-button-hover); color: var(--white); }
.bpp-button--ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.bpp-button--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.bpp-button--outline { color: inherit; border-color: currentColor; }
.bpp-button--outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.section--dark .bpp-button--outline:hover { background: var(--white); color: var(--ink); }
.bpp-button--link { padding: 0.4em 0; color: inherit; border-bottom: 1px solid currentColor; }
.bpp-button--link .icon { width: 1.3em; height: 1.3em; transition: transform 0.25s var(--ease); }
.bpp-button--link:hover { color: var(--copper-dark); }
.section--dark .bpp-button--link:hover, .site-footer .bpp-button--link:hover { color: #e3b48c; }
.bpp-button--link:hover .icon { transform: translateX(4px); }
.bpp-button--small { padding: 0.85em 1.25em; font-size: 0.72rem; }
.bpp-button[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	height: var(--header-h);
	color: var(--text);
	background: rgba(247, 244, 238, 0.92);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid var(--line);
	transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.has-overlay-header .site-header:not(.is-scrolled) {
	background: transparent;
	color: var(--white);
	border-color: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}
.has-overlay-header .site-header.is-scrolled { background: rgba(18, 17, 15, 0.9); color: var(--white); border-color: var(--line-dark); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1; margin-right: auto; }
.brand__text { display: inline-flex; flex-direction: column; }
.brand__mark { display: block; height: 40px; width: auto; flex: none; }
.brand--footer .brand__mark { height: 50px; }
@media (max-width: 420px) { .brand__mark { height: 30px; } .brand { gap: 10px; } }
.brand:hover { color: inherit; }
.brand__name { font-family: var(--serif); font-size: 1.55rem; font-weight: 420; letter-spacing: 0.01em; }
.brand__sub { font-family: var(--sans); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase; margin-top: 5px; opacity: 0.8; }
.brand__logo { max-height: 46px; width: auto; }

.site-nav .menu { display: flex; gap: clamp(18px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.site-nav .menu a {
	position: relative;
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 6px 0;
}
.site-nav .menu a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
	background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.site-nav .menu a:hover { color: inherit; }
.site-nav .menu a:hover::after, .site-nav .current-menu-item > a::after { transform: scaleX(1); }
.site-nav__extra { display: none; }
.nav-toggle { display: none; }

@media (max-width: 899px) {
	.site-header__cta { display: none; }
	.nav-toggle {
		display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
		background: none; border: 0; color: inherit; cursor: pointer;
	}
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
		display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.2s;
	}
	.nav-toggle__bars { position: relative; }
	.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__bars::before { top: -7px; }
	.nav-toggle__bars::after { top: 7px; }
	.nav-open .nav-toggle__bars { background: transparent; }
	.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

	.site-nav {
		position: fixed; inset: 0; z-index: -1;
		display: flex; flex-direction: column; justify-content: center;
		padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
		background: var(--ink); color: var(--white);
		opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
	}
	.nav-open .site-nav { opacity: 1; visibility: visible; }
	.nav-open .site-header { background: transparent !important; color: var(--white) !important; border-color: transparent !important; backdrop-filter: none; }
	.site-nav .menu { flex-direction: column; gap: 6px; }
	.site-nav .menu a { font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 3.4rem); font-weight: 340; letter-spacing: -0.01em; text-transform: none; }
	.site-nav .menu a::after { display: none; }
	.site-nav__extra { display: flex; flex-direction: column; gap: 8px; margin-top: 40px; color: var(--on-dark-muted); font-size: 0.95rem; }
	.site-nav__extra a { text-decoration: none; }
	body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	display: grid;
	align-items: end;
	min-height: max(640px, 100svh);
	color: var(--white);
	background: var(--ink);
	isolation: isolate;
	overflow: hidden;
}
.hero--plain { min-height: 78svh; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(10, 10, 9, 0.55) 0%, rgba(10, 10, 9, 0) 22%),
		linear-gradient(0deg, rgba(10, 10, 9, 0.82) 0%, rgba(10, 10, 9, 0.38) 42%, rgba(10, 10, 9, 0.08) 75%);
}
.hero__img { width: 100%; height: 100%; object-fit: cover; animation: hero-in 1.6s var(--ease) both; }
@keyframes hero-in { from { transform: scale(1.06); opacity: 0.6; } to { transform: none; opacity: 1; } }
.hero__content { padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(56px, 9vw, 128px); }
.hero__title { font-size: clamp(2.6rem, 1.6rem + 4.2vw, 5.6rem); font-weight: 330; max-width: 15ch; margin-bottom: 0.35em; }
.hero__text { font-size: var(--step-1); max-width: 44ch; color: rgba(255, 255, 255, 0.86); margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__caption {
	position: absolute; right: var(--gutter); bottom: 22px; margin: 0;
	font-size: 0.72rem; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.65);
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--bone { background: var(--bone); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark a:hover { color: #e3b48c; }
.section-head { display: grid; gap: 20px 60px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head .display-2 { margin: 0; }
.section-head__text { color: var(--muted); max-width: 42ch; margin: 0; align-self: end; }
.section-head--row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
@media (min-width: 900px) {
	.section-head { grid-template-columns: 1.3fr 1fr; }
}

/* Intro + stats */
.intro__grid { display: grid; gap: 56px; }
.intro__copy .display-2 { max-width: 16ch; }
.intro__text { font-size: var(--step-1); color: var(--muted); max-width: 52ch; }
.intro__text p:first-child { color: var(--text); }
.stats { display: grid; gap: 0; margin: 0; align-self: end; border-top: 1px solid var(--line); }
.stats__item { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(130px, auto) 1fr; gap: 20px; align-items: baseline; }
.stats__value { font-family: var(--serif); font-size: var(--step-4); font-weight: 300; line-height: 1; color: var(--copper-dark); }
.stats__label { margin: 0; color: var(--muted); }
@media (min-width: 1000px) {
	.intro__grid { grid-template-columns: 1.35fr 1fr; gap: 100px; }
}
.clients { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: baseline; }
.clients__label { margin: 0; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }
.clients__list { display: flex; flex-wrap: wrap; gap: 10px 36px; list-style: none; margin: 0; padding: 0; font-family: var(--serif); font-size: var(--step-1); }

/* Service cards */
.service-cards { display: grid; gap: clamp(32px, 4vw, 48px); }
@media (min-width: 760px) { .service-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .service-cards { grid-template-columns: repeat(3, 1fr); } }
.service-card__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-3); margin-bottom: 26px; }
.service-card__media img, .service-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service-card:hover .service-card__media img, .service-row:hover .service-row__media img { transform: scale(1.04); }
.service-card__title, .service-row__title { font-size: var(--step-2); margin-bottom: 0.4em; }
.service-card__title a, .service-row__title a { text-decoration: none; }
.service-card__excerpt { color: var(--muted); }
.price-tag { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper-dark); margin-bottom: 1.4em; }
.meta-line { color: var(--muted); font-size: 0.95rem; }
.meta-line span { font-weight: 600; color: var(--text); }

/* Service rows (Services page) */
.service-rows { display: grid; gap: clamp(64px, 9vw, 120px); padding-bottom: var(--section); }
.service-row { display: grid; gap: 28px; align-items: center; }
.service-row__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-3); }
.service-row__body { max-width: 560px; }
.service-row__excerpt { font-size: var(--step-1); color: var(--muted); }
.service-row__actions, .service-card__actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
@media (min-width: 900px) {
	.service-row { grid-template-columns: 1.15fr 1fr; gap: 72px; }
	.service-row:nth-child(even) .service-row__media { order: 2; }
}

/* Work grid */
.work-grid { display: grid; gap: clamp(28px, 3.5vw, 48px) clamp(20px, 2.5vw, 36px); }
@media (min-width: 700px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-grid--stagger { grid-template-columns: 1fr; }
@media (min-width: 800px) {
	.work-grid--stagger { grid-template-columns: repeat(12, 1fr); gap: 72px 40px; }
	.work-grid--stagger > :nth-child(4n + 1) { grid-column: 1 / span 7; }
	.work-grid--stagger > :nth-child(4n + 2) { grid-column: 9 / span 4; margin-top: 22%; }
	.work-grid--stagger > :nth-child(4n + 3) { grid-column: 2 / span 5; }
	.work-grid--stagger > :nth-child(4n + 4) { grid-column: 7 / span 6; margin-top: 16%; }
	.work-grid--stagger > :nth-child(4n + 1) .project-card__media { aspect-ratio: 4 / 3; }
	.work-grid--stagger > :nth-child(4n + 4) .project-card__media { aspect-ratio: 3 / 2; }
}
.project-card__link { display: block; text-decoration: none; }
.project-card__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-3); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s var(--ease); }
.project-card__link:hover img { transform: scale(1.035); }
.project-card__body { display: grid; gap: 4px; padding-top: 18px; }
.project-card__type { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-dark); }
.section--dark .project-card__type { color: #e3b48c; }
.project-card__title { font-family: var(--serif); font-size: var(--step-2); line-height: 1.15; }
.project-card__where { font-size: 0.9rem; color: var(--muted); }
.section--dark .project-card__where { color: var(--on-dark-muted); }
.project-card__link:hover .project-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 48px; }
.filters__item {
	padding: 0.7em 1.15em; border: 1px solid var(--line); border-radius: 99px;
	font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-decoration: none; text-transform: uppercase;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.filters__item:hover { border-color: var(--ink); color: var(--ink); }
.filters__item.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Testimonials */
.testimonials__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(100%, 860px); gap: 64px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.testimonial { margin: 0; scroll-snap-align: start; }
.testimonial__quote { margin: 0 0 28px; font-family: var(--serif); font-size: var(--step-3); font-weight: 320; line-height: 1.22; }
.testimonial__quote p::before { content: "“"; margin-left: -0.45em; color: var(--copper); }
.testimonial__quote p:last-child::after { content: "”"; color: var(--copper); }
.testimonial__who { display: grid; gap: 2px; font-size: 0.95rem; }
.testimonial__who span { color: var(--muted); }

/* About teaser */
.about-teaser__grid { display: grid; gap: 48px; align-items: center; }
.about-teaser__media { overflow: hidden; background: var(--ink-3); }
.about-teaser__img { width: 100%; height: auto; }
.about-teaser__text { font-size: var(--step-1); color: var(--muted); max-width: 50ch; margin-bottom: 1.8rem; }
@media (min-width: 900px) { .about-teaser__grid { grid-template-columns: 5fr 6fr; gap: 100px; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; counter-reset: none; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 56px; } }
.steps__item { border-top: 1px solid var(--line); padding-top: 28px; }
.steps__num { display: block; font-family: var(--serif); font-size: var(--step-3); font-weight: 300; color: var(--copper-dark); line-height: 1; margin-bottom: 22px; }
.steps__title { font-size: var(--step-2); }
.steps__item p { color: var(--muted); margin: 0; }

/* CTA band */
.cta { position: relative; isolation: isolate; background: var(--ink); color: var(--white); padding-block: clamp(96px, 13vw, 200px); overflow: hidden; }
.cta__media { position: absolute; inset: 0; z-index: -1; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__media::after { content: ""; position: absolute; inset: 0; background: rgba(12, 12, 11, 0.62); }
.cta__inner { text-align: center; display: grid; justify-items: center; }
.cta__title { font-size: var(--step-5); font-weight: 320; max-width: 16ch; }
.cta__text { font-size: var(--step-1); color: rgba(255, 255, 255, 0.78); max-width: 46ch; margin-bottom: 2.2rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: center; }
.cta__phone { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; text-decoration: none; color: rgba(255, 255, 255, 0.86); }
.cta__phone .icon { width: 20px; height: 20px; }

/* ---------- Page header ---------- */
.page-header { padding: clamp(64px, 10vw, 140px) 0 clamp(40px, 6vw, 72px); }
.page-header__title { font-size: var(--step-5); font-weight: 330; max-width: 18ch; margin-bottom: 0.3em; }
.page-header__lead { font-size: var(--step-1); color: var(--muted); max-width: 52ch; }

/* ---------- Cover (project / service) ---------- */
.cover { position: relative; display: grid; align-items: end; min-height: max(560px, 88svh); color: var(--white); background: var(--ink); isolation: isolate; overflow: hidden; }
.cover--short { min-height: max(520px, 72svh); }
.cover__media { position: absolute; inset: 0; z-index: -1; }
.cover__media img { width: 100%; height: 100%; object-fit: cover; }
.cover__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 9, 0.5) 0%, rgba(10, 10, 9, 0) 25%), linear-gradient(0deg, rgba(10, 10, 9, 0.8) 0%, rgba(10, 10, 9, 0.15) 55%); }
.cover__content { padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(48px, 7vw, 96px); }
.cover__title { font-size: var(--step-5); font-weight: 330; max-width: 16ch; margin-bottom: 0.3em; }
.cover__lead { font-size: var(--step-1); max-width: 50ch; color: rgba(255, 255, 255, 0.84); margin: 0; }

.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px 40px; margin: 0; padding: 36px 0; border-bottom: 1px solid var(--line); }
.details dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); margin-bottom: 6px; }
.details dd { margin: 0; font-family: var(--serif); font-size: var(--step-1); }

.next-project { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
.next-project a { display: grid; text-decoration: none; }
.next-project__title { display: inline-flex; align-items: center; gap: 0.3em; font-family: var(--serif); font-size: var(--step-4); font-weight: 320; line-height: 1.1; }
.next-project__title .icon { width: 0.8em; height: 0.8em; transition: transform 0.3s var(--ease); }
.next-project a:hover .icon { transform: translateX(8px); }

/* ---------- Service single ---------- */
.service__layout { display: grid; gap: 56px; padding-block: clamp(56px, 8vw, 110px); align-items: start; }
@media (min-width: 1000px) { .service__layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 96px; } }
.service__layout .entry-content { padding: 0; }
.service__layout .entry-content > * { margin-inline: 0; }
.price-box { position: sticky; top: calc(var(--header-h) + 24px); padding: 36px; background: var(--white); border: 1px solid var(--line); }
.price-box__label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); margin: 0 0 6px; }
.price-box__price { font-family: var(--serif); font-size: var(--step-4); font-weight: 320; line-height: 1; margin-bottom: 18px; }
.price-box__price span { display: block; margin-top: 10px; font-family: var(--sans); font-size: 0.95rem; color: var(--muted); }
.price-box__note { color: var(--muted); font-size: 0.95rem; }
.price-box__facts { margin: 24px 0 28px; display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; }
.price-box__facts dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }
.price-box__facts dd { margin: 2px 0 0; }
.price-box__call { margin: 16px 0 0; text-align: center; font-size: 0.92rem; color: var(--muted); }

/* ---------- Content (block editor output) ---------- */
.entry-content { padding-bottom: clamp(64px, 9vw, 120px); }
.entry-content > * { max-width: var(--prose); margin-inline: auto; padding-inline: var(--gutter); box-sizing: content-box; }
.entry-content > .alignwide, .entry-content > .wp-block-gallery { max-width: calc(var(--wrap) - 2 * var(--gutter)); }
.entry-content > .alignfull { max-width: none; padding-inline: 0; }
.entry-content--project { padding-top: clamp(48px, 7vw, 96px); }
.entry-content--project > p:first-child { font-family: var(--serif); font-size: var(--step-2); line-height: 1.35; font-weight: 340; margin-bottom: clamp(48px, 7vw, 88px); }
.entry-content > p, .entry-content li { font-size: var(--step-1); line-height: 1.7; }
.entry-content p.is-style-lead { font-family: var(--serif); font-size: var(--step-2); line-height: 1.35; font-weight: 340; }
.entry-content h2 { font-size: var(--step-3); margin-top: 1.6em; }
.entry-content h3 { font-size: var(--step-2); margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: calc(var(--gutter) + 1.2em); }
.entry-content li { margin-bottom: 0.5em; }
.entry-content li::marker { color: var(--copper); }
.entry-content figure { margin-block: 2.4em; }
.entry-content figcaption, .wp-element-caption { font-size: 0.85rem; color: var(--muted); margin-top: 0.8em; }
.entry-content blockquote { border-left: 2px solid var(--copper); margin-block: 2em; padding-left: calc(var(--gutter) + 24px); font-family: var(--serif); font-size: var(--step-2); }
.entry-content .wp-block-details { border-top: 1px solid var(--line); padding-block: 18px; margin: 0 auto; }
.entry-content .wp-block-details:last-of-type { border-bottom: 1px solid var(--line); }
.entry-content .wp-block-details summary { cursor: pointer; font-family: var(--serif); font-size: var(--step-1); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.entry-content .wp-block-details summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.6rem; line-height: 1; color: var(--copper); transition: transform 0.3s var(--ease); }
.entry-content .wp-block-details[open] summary::after { transform: rotate(45deg); }
.entry-content .wp-block-details p { margin-top: 12px; color: var(--muted); font-size: var(--step-0); }
.service__layout .entry-content > * { padding-inline: 0; }
.service__layout .entry-content ul { padding-left: 1.2em; }
.wp-block-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.entry-hero { margin: 0 auto clamp(40px, 6vw, 72px); }

/* Justified gallery (works on core Gallery blocks; --ar is set per photo in PHP) */
.wp-block-gallery.has-nested-images.has-nested-images {
	--row-h: clamp(170px, 19vw, 320px);
	display: flex;
	flex-wrap: wrap;
	gap: clamp(8px, 1vw, 14px);
}
.wp-block-gallery.has-nested-images.has-nested-images::after { content: ""; flex-grow: 999999; }
.wp-block-gallery.has-nested-images.has-nested-images figure.wp-block-image:not(#individual-image) {
	width: auto;
	margin: 0;
	flex: var(--ar, 1.5) 1 calc(var(--ar, 1.5) * var(--row-h));
	max-width: 100%;
	overflow: hidden;
	background: var(--ink-3);
}
.wp-block-gallery.has-nested-images.has-nested-images figure.wp-block-image img {
	width: 100%;
	height: auto;
	aspect-ratio: var(--ar, auto);
	object-fit: cover;
	cursor: zoom-in;
	transition: opacity 0.4s var(--ease), transform 1.2s var(--ease);
}
.wp-block-gallery.has-nested-images.has-nested-images figure.wp-block-image:hover img { transform: scale(1.02); }
@media (max-width: 599px) {
	.wp-block-gallery.has-nested-images.has-nested-images { --row-h: 180px; }
}

/* ---------- Inquiry ---------- */
.inquiry { padding-block: clamp(56px, 8vw, 120px) var(--section); }
.inquiry__grid { display: grid; gap: 56px; align-items: start; }
/* Phones: heading, then the form, then the details. Desktop: heading and details left, form right. */
.inquiry__grid { grid-template-areas: "intro" "form" "aside"; }
.inquiry__intro { grid-area: intro; }
.inquiry__form { grid-area: form; }
.inquiry__aside { grid-area: aside; }
.inquiry__aside .inquiry__subhead { margin-top: 0; }
@media (min-width: 1000px) {
	.inquiry__grid { grid-template-columns: 5fr 7fr; grid-template-rows: auto 1fr; grid-template-areas: "intro form" "aside form"; gap: 40px 96px; }
}
.inquiry__intro .display-1 { font-size: var(--step-4); }
.inquiry__subhead { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin: 40px 0 16px; color: var(--stone); }
.inquiry__steps { margin: 0 0 36px; padding-left: 1.3em; color: var(--muted); }
.inquiry__steps li { margin-bottom: 0.5em; }
.inquiry__steps li::marker { color: var(--copper); font-weight: 600; }
.inquiry__contact { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.inquiry__contact li { display: flex; gap: 12px; align-items: center; }
.inquiry__contact .icon { width: 20px; height: 20px; color: var(--copper-dark); flex: none; }
.inquiry__contact a { text-decoration: none; font-size: 1.05rem; }
.availability, .site-footer__availability { display: inline-flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--muted); }
.site-footer__availability { color: var(--on-dark-muted); }
.availability .dot, .site-footer__availability .dot { flex: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5c9a63; box-shadow: 0 0 0 4px rgba(92, 154, 99, 0.18); }

.bpp-form { display: grid; gap: 22px; padding: clamp(24px, 4vw, 48px); background: var(--white); border: 1px solid var(--line); }
.bpp-form__row { display: grid; gap: 22px; }
@media (min-width: 640px) { .bpp-form__row { grid-template-columns: 1fr 1fr; } }
.bpp-field { margin: 0; display: grid; gap: 8px; }
.bpp-field label, .bpp-field legend { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.bpp-field input, .bpp-field select, .bpp-field textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--text);
	padding: 0.85em 0.95em; background: var(--paper); border: 1px solid var(--line); border-radius: 0;
	transition: border-color 0.2s, background-color 0.2s;
	appearance: none; -webkit-appearance: none;
}
.bpp-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235c574f' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1em center; padding-right: 2.6em; }
.bpp-field input:focus, .bpp-field select:focus, .bpp-field textarea:focus { outline: none; border-color: var(--copper); background: var(--white); }
.bpp-form.is-validated :invalid { border-color: var(--error); }
.bpp-field textarea { resize: vertical; min-height: 140px; }
.bpp-field--checks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bpp-field--checks legend { margin-bottom: 10px; width: 100%; }
.bpp-check { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0.6em 1em; border: 1px solid var(--line); border-radius: 99px; font-size: 0.92rem; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.bpp-check input { position: absolute; opacity: 0; pointer-events: none; }
.bpp-field .bpp-check { font-size: 0.92rem; font-weight: 450; letter-spacing: 0; text-transform: none; color: var(--text); }
.bpp-check:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--white); }
.bpp-check:has(input:focus-visible) { outline: 2px solid var(--copper); outline-offset: 2px; }
.bpp-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bpp-form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 6px 0 0; }
.bpp-form__fine { font-size: 0.9rem; color: var(--muted); }
.bpp-form__notice { padding: 18px 22px; margin-bottom: 20px; border-left: 3px solid; background: var(--white); }
.bpp-form__notice--ok { border-color: #5c9a63; }
.bpp-form__notice--error { border-color: var(--error); }
.bpp-form__notice ul { margin: 8px 0 0; padding-left: 1.2em; }

.thanks, .not-found { padding-block: clamp(96px, 14vw, 200px); }
.thanks__inner .display-1, .not-found .display-1 { max-width: 16ch; }

/* ---------- Journal cards ---------- */
.post-grid { display: grid; gap: 48px 36px; padding-bottom: var(--section); }
@media (min-width: 760px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card__link { display: grid; gap: 8px; text-decoration: none; }
.post-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 10px; background: var(--ink-3); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__date { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }
.post-card__title { font-family: var(--serif); font-size: var(--step-2); line-height: 1.15; }
.post-card__excerpt { color: var(--muted); }
.navigation.pagination { padding-bottom: var(--section); }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { padding: 0.6em 1em; border: 1px solid var(--line); text-decoration: none; }
.page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: var(--on-dark-muted); padding-top: clamp(72px, 9vw, 120px); font-size: 0.95rem; }
.site-footer a { text-decoration: none; color: var(--on-dark); }
.site-footer a:hover { color: #e3b48c; }
.site-footer__grid { display: grid; gap: 48px; padding-bottom: 64px; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 56px; } }
.brand--footer { color: var(--on-dark); margin-bottom: 20px; }
.site-footer__brand p { max-width: 34ch; }
.site-footer__heading { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer .socials { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; }
.site-footer .socials a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer .socials .icon { width: 20px; height: 20px; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px; border-top: 1px solid var(--line-dark); font-size: 0.82rem; }
.site-footer__base p { margin: 0; }

/* Work page: link to the full archive */
.archive-note { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 40px; margin: 0 0 var(--section); padding-top: 40px; border-top: 1px solid var(--line); }
.archive-note p { margin: 0; font-family: var(--serif); font-size: var(--step-2); max-width: 30ch; line-height: 1.25; }
.work-grid + .navigation.pagination { padding-bottom: 48px; }
.work-grid { margin-bottom: clamp(56px, 7vw, 96px); }

/* Smooth cross-page fades in browsers that support them (no JavaScript). */
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
	::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
}

/* Logged-in admin bar: keep the fixed header and lightbox below it. */
.admin-bar .site-header { top: 32px; }
.admin-bar .lb { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header, .admin-bar .lb { top: 46px; } }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: auto 1fr auto; background: rgba(9, 9, 8, 0.97); color: var(--white); opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s; }
.lb.is-open { opacity: 1; visibility: visible; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); font-size: 0.82rem; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.7); }
.lb__stage { position: relative; min-height: 0; overflow: hidden; touch-action: pan-y; }
/* Absolutely positioned so max-height resolves against the stage: tall photos fit the screen instead of overflowing. */
.lb__img { position: absolute; inset: 0 clamp(8px, 6vw, 96px); margin: auto; max-width: calc(100% - 2 * clamp(8px, 6vw, 96px)); max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; transition: opacity 0.25s var(--ease); }
.lb__img.is-loading { opacity: 0.25; }
.lb__caption { padding: 14px var(--gutter) 22px; text-align: center; font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); min-height: 1.5em; }
.lb button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; }
.lb__close { width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; margin-right: -10px; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.06) !important; transition: background-color 0.2s; }
.lb__nav:hover { background: rgba(255, 255, 255, 0.16) !important; }
.lb__nav svg { width: 26px; height: 26px; }
.lb__prev { left: clamp(4px, 1.5vw, 24px); }
.lb__prev svg { transform: rotate(180deg); }
.lb__next { right: clamp(4px, 1.5vw, 24px); }
@media (max-width: 599px) { .lb__nav { display: none; } }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
	.site-header, .site-footer, .cta, .lb { display: none !important; }
	body.has-solid-header { padding-top: 0; }
}

/* Extra services under the homepage cards */
.services__more { margin: 40px 0 0; font-size: 1.05rem; color: var(--muted, #5c574f); }
.services__more a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.services__more a:hover { color: var(--copper-dark, #7d4a27); }

/* Journal posts ---------------------------------------------------------- */
.entry-content--post > p, .entry-content--post li { font-size: clamp(1.1rem, 1.03rem + 0.3vw, 1.28rem); line-height: 1.75; }
.entry-content--post > .wp-block-image { max-width: 1040px; margin-block: clamp(36px, 5vw, 64px); }
.entry-content--post > .wp-block-image img { width: 100%; }
.entry-content--post > .wp-block-image figcaption { max-width: var(--prose); margin-inline: auto; }
.entry-content--post h2 { font-size: var(--step-3); line-height: 1.12; margin-top: 1.9em; margin-bottom: 0.5em; }
.entry-content--post a { color: var(--copper-dark); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.entry-content--post a:hover { color: var(--text); }
.entry-content--post li strong { font-weight: 600; }

.author-note { padding-bottom: clamp(56px, 8vw, 104px); }
.author-note__inner { max-width: var(--prose); margin-inline: auto; padding: 32px var(--gutter) 0; border-top: 1px solid var(--line); display: flex; gap: 22px; align-items: flex-start; box-sizing: content-box; }
.author-note__media { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: var(--bone); }
.author-note__media img { width: 100%; height: 100%; object-fit: cover; }
.author-note__name { margin: 0 0 6px; font-family: var(--serif); font-size: var(--step-2); line-height: 1.2; }
.author-note__bio { margin: 0 0 12px; color: var(--muted); }
.author-note__links { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.author-note__links a { color: var(--copper-dark); text-decoration: none; }
.author-note__links a:hover { color: var(--text); }

.related-posts { background: var(--bone); padding-top: var(--section); }
.related-posts__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: clamp(28px, 4vw, 48px); }
.related-posts__title { font-size: var(--step-3); margin: 0; }
.related-posts__all { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper-dark); text-decoration: none; white-space: nowrap; }
.related-posts .post-card__title, .post-grid .post-card__title { margin: 0; font-weight: 400; }
