/*
Theme Name: Pocatko Builders
Theme URI: https://pocatkobuilders.com
Author: Pocatko Builders
Description: Custom design-build theme for Pocatko Builders — editorial layout, full-bleed photography, brand navy and brass.
Version: 1.2.7
Requires at least: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: pocatko
*/

:root {
	--pb-navy: #1B3A6B;
	--pb-deep: #14294B;
	--pb-night: #0E1520;
	--pb-bronze: #8F6230;
	--pb-brass: #C9A063;
	--pb-warm: #F7F4EE;
	--pb-stone: #ECEAE5;
	--pb-slate: #3D4A5E;
	--pb-muted: #6B7380;
	--pb-ink: #111418;
	--pb-line: rgba(17, 20, 24, 0.12);
	--pb-gutter: clamp(20px, 3.2vw, 44px);
	--pb-section: clamp(72px, 12vh, 150px);
	--pb-header: 72px;
	--pb-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--pb-serif: Cinzel, "Times New Roman", serif;
	--pb-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ------------------------------------------------------------------ Base */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--pb-header) + 16px); }
body { margin: 0; background: #fff; color: var(--pb-ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--pb-brass); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.wp-site-blocks > * { margin-block-start: 0; }
.pb-main *, .pb-main *::before, .pb-main *::after, .pb-header *, .pb-footer *, .pb-cta * { box-sizing: border-box; }
.wp-site-blocks > .wp-block-template-part:first-child { position: relative; z-index: 100; }
.pb-main { padding-top: var(--pb-header); }
.pb-has-hero .pb-main { padding-top: 0; }
.pb-main > .wp-block-post-content > * { margin-block: 0; }
.pb-main section .wp-block-columns { margin-bottom: 0; }
.pb-main h1, .pb-main h2, .pb-main h3 { font-weight: 300; }

.pb-label {
	font-size: 0.6875rem !important;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--pb-muted);
	margin: 0 0 1.4rem;
}

/* --------------------------------------------------------------- Buttons */
.wp-block-button.is-style-arrow .wp-block-button__link,
.wp-block-button.is-style-arrow-light .wp-block-button__link {
	background: none;
	padding: 0;
	color: inherit;
	font-size: clamp(1.4rem, 2.2vw, 2rem);
	font-weight: 300;
	letter-spacing: -0.01em;
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s var(--pb-ease), gap 0.3s var(--pb-ease);
}
.wp-block-button.is-style-arrow-light .wp-block-button__link { color: #fff; }
.wp-block-button.is-style-arrow .wp-block-button__link::after,
.wp-block-button.is-style-arrow-light .wp-block-button__link::after {
	content: "\2192";
	display: inline-block;
	margin-left: 0.4em;
	transition: transform 0.3s var(--pb-ease);
}
.wp-block-button.is-style-arrow .wp-block-button__link:hover::after,
.wp-block-button.is-style-arrow-light .wp-block-button__link:hover::after { transform: translateX(6px); }
.wp-block-button.is-style-light .wp-block-button__link { background: #fff; color: var(--pb-ink); }
.wp-block-button:not([class*="is-style-arrow"]) .wp-block-button__link { transition: background 0.25s; }
.wp-block-button:not([class*="is-style-"]) .wp-block-button__link:hover { background: var(--pb-deep); }
.pb-main .wp-block-buttons { margin-top: 2.2rem; }

/* ---------------------------------------------------------------- Header */
.pb-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	color: var(--pb-ink);
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--pb-line);
	transition: background 0.35s var(--pb-ease), color 0.35s var(--pb-ease), border-color 0.35s;
}
.admin-bar .pb-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .pb-header { top: 46px; } }
.pb-header__inner {
	height: var(--pb-header);
	display: flex;
	align-items: center;
	gap: clamp(24px, 4vw, 64px);
	padding: 0 var(--pb-gutter);
}
.pb-has-hero .pb-header:not(.is-scrolled):not(.is-open) {
	background: linear-gradient(to bottom, rgba(8, 12, 20, 0.45), rgba(8, 12, 20, 0));
	backdrop-filter: none;
	border-color: transparent;
	color: #fff;
}

.pb-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
.pb-logo__mark { width: 28px; height: 31px; color: var(--pb-navy); transition: color 0.35s; }
.pb-has-hero .pb-header:not(.is-scrolled):not(.is-open) .pb-logo__mark { color: #fff; }
.pb-logo__type { display: flex; flex-direction: column; line-height: 1; }
.pb-logo__name { font-family: var(--pb-serif); font-weight: 500; font-size: 1.28rem; letter-spacing: 0.09em; text-transform: uppercase; }
.pb-logo__sub { font-family: var(--pb-sans); font-weight: 500; font-size: 0.56rem; letter-spacing: 0.52em; text-transform: uppercase; margin-top: 5px; opacity: 0.85; }

.pb-nav ul { display: flex; gap: clamp(18px, 2.2vw, 34px); list-style: none; margin: 0; padding: 0; }
.pb-nav a, .pb-header__phone { font-size: 0.8125rem; text-decoration: none; letter-spacing: 0.01em; }
.pb-nav a { position: relative; padding: 6px 0; }
.pb-nav 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(--pb-ease); }
.pb-nav a:hover::after, .pb-nav a[aria-current="page"]::after { transform: scaleX(1); }

.pb-header__meta { margin-left: auto; display: flex; align-items: center; gap: 28px; font-size: 0.75rem; }
.pb-header__loc { display: inline-flex; align-items: center; gap: 8px; opacity: 0.9; }
.pb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pb-brass); display: inline-block; }
.pb-clock { font-variant-numeric: tabular-nums; margin-left: 6px; }
.pb-header__phone { font-weight: 500; }

.pb-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; position: relative; }
.pb-burger__line { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--pb-ease), top 0.3s; }
.pb-burger__line:nth-of-type(1) { top: 18px; }
.pb-burger__line:nth-of-type(2) { top: 25px; }
.pb-header.is-open { backdrop-filter: none; background: #fff; }
.pb-header.is-open .pb-burger__line:nth-of-type(1) { top: 21px; transform: rotate(45deg); }
.pb-header.is-open .pb-burger__line:nth-of-type(2) { top: 21px; transform: rotate(-45deg); }

.pb-menu { position: fixed; inset: var(--pb-header) 0 0 0; background: var(--pb-deep); color: #fff; padding: 40px var(--pb-gutter); display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.admin-bar .pb-menu { top: calc(var(--pb-header) + 46px); }
.pb-menu[hidden] { display: none; }
.pb-menu__links { list-style: none; margin: 0; padding: 0; }
.pb-menu__links a { display: block; font-size: clamp(2rem, 8vw, 3rem); font-weight: 300; text-decoration: none; padding: 6px 0; letter-spacing: -0.02em; }
.pb-menu__contact { display: flex; flex-direction: column; gap: 10px; font-size: 1rem; padding-bottom: 72px; }
.pb-menu__contact a { text-decoration: none; }
.pb-menu__contact span { opacity: 0.6; }

@media (max-width: 1000px) {
	.pb-nav, .pb-header__meta { display: none; }
	.pb-burger { display: block; }
}
@media (min-width: 1001px) { .pb-menu { display: none !important; } }

/* ------------------------------------------------------------------ Hero */
.pb-hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: calc(var(--pb-header) + 40px) var(--pb-gutter) 28px;
	color: #fff;
	background: var(--pb-night);
	overflow: hidden;
	isolation: isolate;
}
.pb-hero > .pb-hero__media { position: absolute; inset: 0; margin: 0 !important; z-index: -2; }
.pb-hero > .pb-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; transform: scale(1.04); animation: pb-hero-zoom 14s var(--pb-ease) forwards; }
.pb-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 12, 20, 0.25) 0%, rgba(8, 12, 20, 0.1) 40%, rgba(8, 12, 20, 0.62) 100%); }
@keyframes pb-hero-zoom { to { transform: scale(1); } }
.pb-hero__content { max-width: 1280px; margin: 0 0 9vh !important; }
.pb-hero__title { font-size: clamp(2.6rem, 6.4vw, 6.6rem) !important; line-height: 0.98 !important; letter-spacing: -0.035em !important; margin: 0 0 1.6rem; max-width: 15ch; }
.pb-hero__lead { font-size: clamp(1rem, 1.35vw, 1.25rem); max-width: 46ch; margin: 0; opacity: 0.92; line-height: 1.5; }
.pb-hero__foot { text-align: center; font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; margin: 0 !important; line-height: 1.9; }

/* --------------------------------------------------------- Split sections */
.pb-split { gap: 0 !important; align-items: stretch !important; }
.pb-split > .wp-block-column { flex-basis: 50% !important; min-width: 0; }
.pb-split > .wp-block-column:first-child { padding: var(--pb-section) var(--pb-gutter); display: flex; flex-direction: column; justify-content: center; }
.pb-split > .wp-block-column > * { max-width: 620px; }
.pb-split > .wp-block-column:has(> .wp-block-image:only-child) { position: relative; }
.pb-split > .wp-block-column > .wp-block-image:only-child { position: sticky; top: var(--pb-header); height: calc(100vh - var(--pb-header)); max-width: none; margin: 0; }
.pb-split > .wp-block-column > .wp-block-image:only-child img { width: 100%; height: 100%; object-fit: cover; }
.pb-has-hero .pb-split > .wp-block-column > .wp-block-image:only-child { top: 0; height: 100vh; }
.pb-split__title { font-size: clamp(2rem, 3.3vw, 3.25rem) !important; margin: 0 0 1.8rem; }
.pb-split p:not(.pb-label) { font-size: 1.0625rem; color: #2a3038; max-width: 58ch; }
/* Image on the left variant: give the text column the padding instead */
.pb-split > .wp-block-column:first-child:has(> .wp-block-image:only-child) { padding: 0; display: block; }
.pb-split > .wp-block-column:first-child:has(> .wp-block-image:only-child) + .wp-block-column { padding: var(--pb-section) var(--pb-gutter); display: flex; flex-direction: column; justify-content: center; }

.pb-intro .pb-split > .wp-block-column:first-child { justify-content: flex-end; padding-bottom: clamp(48px, 9vh, 110px); min-height: calc(100vh - var(--pb-header)); }
.pb-intro__title { font-size: clamp(2.6rem, 5vw, 5rem) !important; letter-spacing: -0.035em !important; line-height: 1 !important; margin: 0 0 1.6rem; }
.pb-intro__lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem) !important; color: #3a414b !important; max-width: 48ch; }
.pb-split--text > .wp-block-column:first-child { justify-content: flex-start; }
.pb-split--text > .wp-block-column:last-child { padding: var(--pb-section) var(--pb-gutter); }
.pb-about-story { border-top: 1px solid var(--pb-line); }
.pb-about-story .pb-split > .wp-block-column:first-child > * { position: sticky; top: calc(var(--pb-header) + 40px); }

/* ------------------------------------------------------- Selected works */
.pb-works { border-top: 1px solid var(--pb-line); }
.pb-works__cols { gap: 0 !important; align-items: stretch !important; }
.pb-works__cols > .wp-block-column { flex-basis: 50% !important; min-width: 0; }
.pb-works__cols > .wp-block-column:first-child { padding: var(--pb-section) var(--pb-gutter); display: flex; flex-direction: column; justify-content: center; }
.pb-works__cols > .wp-block-column:first-child > * { margin-block: 0; }
.pb-works__cols > .wp-block-column:last-child { position: relative; min-height: 100vh; background: var(--pb-stone); overflow: hidden; }
.pb-works__img { position: absolute !important; inset: 0; margin: 0 !important; opacity: 0; transition: opacity 0.7s var(--pb-ease); }
.pb-works__img:first-child, .pb-works__img.is-active { opacity: 1; }
.pb-works.is-ready .pb-works__img:first-child:not(.is-active) { opacity: 0; }
.pb-works__img img { width: 100%; height: 100%; object-fit: cover; }
.pb-works__item {
	font-size: clamp(1.9rem, 3.5vw, 3.6rem) !important;
	font-weight: 300;
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: #c4c7cc;
	transition: color 0.35s var(--pb-ease);
}
.pb-works__item a { text-decoration: none; }
.pb-works__item em { white-space: nowrap; display: inline-block; font-style: normal; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; vertical-align: 0.2em; margin-left: 0.5em; font-weight: 500; }
.pb-works__item.is-active, .pb-works__item:hover, .pb-works__more:hover { color: var(--pb-ink); }
.pb-works:not(.is-ready) .pb-works__item:nth-child(2) { color: var(--pb-ink); }

/* -------------------------------------------------------------- Sections */
.pb-services, .pb-values, .pb-process-steps, .pb-gallery-sec { padding: var(--pb-section) var(--pb-gutter); }
.pb-section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--pb-gutter); margin-bottom: clamp(40px, 6vh, 72px); align-items: end; }
.pb-section__head > * { margin: 0 !important; }
.pb-section__head > .pb-label { grid-column: 1 / -1; margin-bottom: 1.2rem !important; }
.pb-section__title { font-size: clamp(2rem, 3.5vw, 3.5rem) !important; letter-spacing: -0.03em !important; }
.pb-section__lead { color: var(--pb-slate); max-width: 48ch; justify-self: end; }

.pb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 44px) clamp(16px, 1.6vw, 24px); }
.pb-grid > * { margin: 0 !important; }
.pb-grid--4 { grid-template-columns: repeat(4, 1fr); }
.pb-card { display: flex; flex-direction: column; }
.pb-card > * { margin: 0; }
.pb-card__img { margin: 0 0 1.2rem !important; overflow: hidden; aspect-ratio: 4 / 5; background: var(--pb-stone); }
.pb-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--pb-ease); }
.pb-card:hover .pb-card__img img { transform: scale(1.04); }
.pb-card__title { font-size: 1.45rem !important; font-weight: 400 !important; letter-spacing: -0.015em !important; margin: 0 0 0.5rem !important; }
.pb-card__text { color: var(--pb-slate); font-size: 0.9875rem; margin: 0 0 0.9rem !important; }
.pb-card__link { margin-top: auto !important; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.pb-card__link a { text-decoration: none; }

/* --------------------------------------------------------------- Process */
.pb-process__cols { gap: 0 !important; align-items: stretch !important; }
.pb-process__cols > .wp-block-column { flex-basis: 50% !important; min-width: 0; }
.pb-process__cols > .wp-block-column:first-child { position: relative; min-height: 100vh; overflow: hidden; }
.pb-process__cols > .wp-block-column:first-child > * { margin: 0; }
.pb-process__img { position: absolute !important; inset: 0; margin: 0 !important; }
.pb-process__img img { width: 100%; height: 100%; object-fit: cover; }
.pb-process__cols > .wp-block-column:first-child::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 12, 20, 0.55), rgba(8, 12, 20, 0) 45%); }
.pb-process__overlay { position: relative; z-index: 2; color: #fff; padding: calc(var(--pb-gutter) + 24px) var(--pb-gutter); font-size: clamp(2.2rem, 4vw, 4rem) !important; letter-spacing: -0.035em !important; line-height: 1 !important; max-width: 11ch; }
.pb-process__cols > .wp-block-column:last-child { background: var(--pb-night); color: #fff; padding: var(--pb-section) var(--pb-gutter); display: flex; flex-direction: column; justify-content: center; }
.pb-process__title { font-size: clamp(2rem, 3.2vw, 3.2rem) !important; letter-spacing: -0.03em !important; margin: 0 0 clamp(32px, 6vh, 64px); }
.pb-phase { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); margin: 0 !important; }
.pb-phase > * { margin: 0 !important; }
.pb-phase__num { font-size: 0.75rem; color: var(--pb-brass); letter-spacing: 0.1em; padding-top: 0.5em; font-weight: 500; }
.pb-phase__title { font-size: clamp(1.35rem, 1.9vw, 1.75rem) !important; font-weight: 300; }
.pb-phase__list { list-style: none; padding: 0; font-size: 0.875rem; line-height: 1.8; color: rgba(255, 255, 255, 0.78); }

/* ------------------------------------------------------------- Statement */
.pb-statement__cols { gap: 0 !important; align-items: stretch !important; }
.pb-statement__cols > .wp-block-column { flex-basis: 50% !important; min-width: 0; }
.pb-statement__cols > .wp-block-column:first-child { background: var(--pb-stone); padding: var(--pb-section) var(--pb-gutter); }
.pb-statement__title { font-size: clamp(2.2rem, 4vw, 4rem) !important; letter-spacing: -0.035em !important; line-height: 1.02 !important; margin: 0; max-width: 13ch; position: sticky; top: calc(var(--pb-header) + 40px); }
.pb-statement__cols > .wp-block-column:last-child { padding-top: clamp(120px, 22vh, 240px); display: flex; flex-direction: column; }
.pb-statement__cols > .wp-block-column:last-child > *:not(.pb-statement__img) { padding: 0 var(--pb-gutter); max-width: 620px; margin-top: 0; }
.pb-statement__kicker { font-size: 1.35rem !important; font-weight: 400 !important; margin-bottom: 0.8rem !important; }
.pb-statement__cols p { color: var(--pb-slate); }
.pb-statement__img { margin: clamp(40px, 6vh, 64px) 0 0 !important; flex: 1; min-height: 60vh; }
.pb-statement__img img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------- About */
.pb-values { background: var(--pb-warm); }
.pb-value { border-top: 1px solid var(--pb-line); padding-top: 22px; }
.pb-value > * { margin: 0 0 0.7rem; }
.pb-value .pb-phase__num { color: var(--pb-bronze); }
.pb-value__title { font-size: 1.45rem !important; font-weight: 400 !important; letter-spacing: -0.015em !important; }
.pb-value p:not(.pb-phase__num) { color: var(--pb-slate); font-size: 0.9875rem; }
.pb-about-area { border-top: 1px solid var(--pb-line); }

/* ------------------------------------------------------------- Services */
.pb-service { border-top: 1px solid var(--pb-line); }
.pb-service__cols { gap: 0 !important; align-items: stretch !important; }
.pb-service__cols > .wp-block-column { flex-basis: 50% !important; min-width: 0; }
.pb-service__cols--flip { flex-direction: row-reverse; }
.pb-service__cols > .wp-block-column:first-child { position: relative; min-height: 88vh; }
.pb-service__img { position: absolute !important; inset: 0; margin: 0 !important; }
.pb-service__img img { width: 100%; height: 100%; object-fit: cover; }
.pb-service__cols > .wp-block-column:last-child { padding: var(--pb-section) var(--pb-gutter); display: flex; flex-direction: column; justify-content: center; }
.pb-service__cols > .wp-block-column:last-child > * { max-width: 600px; }
.pb-service .pb-phase__num { color: var(--pb-bronze); margin-bottom: 1rem; }
.pb-service__title { font-size: clamp(2rem, 3.2vw, 3.2rem) !important; letter-spacing: -0.03em !important; margin: 0 0 1.4rem; }
.pb-service p { color: #2a3038; }
.pb-checklist { list-style: none; padding: 0; margin: 1.6rem 0 0; border-top: 1px solid var(--pb-line); }
.pb-checklist li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--pb-line); position: relative; font-size: 0.9875rem; }
.pb-checklist li::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--pb-bronze); }

/* -------------------------------------------------------------- Process page */
.pb-process-steps { border-top: 1px solid var(--pb-line); }
.pb-steps { max-width: 1100px; margin-left: auto !important; }
.pb-step { display: grid; grid-template-columns: 120px 1fr; gap: 0 var(--pb-gutter); padding: 30px 0; border-top: 1px solid var(--pb-line); margin: 0 !important; }
.pb-step > * { margin: 0 !important; }
.pb-step__num { font-size: clamp(2rem, 3vw, 3rem); font-weight: 300; color: var(--pb-brass); line-height: 1; letter-spacing: -0.03em; }
.pb-step__body > * { margin: 0 0 0.5rem; }
.pb-step__title { font-size: clamp(1.4rem, 2vw, 1.85rem) !important; font-weight: 400 !important; letter-spacing: -0.02em !important; }
.pb-step__body p { color: var(--pb-slate); max-width: 62ch; }
.pb-faqs { border-top: 1px solid var(--pb-line); }
.pb-faq { border-bottom: 1px solid var(--pb-line); padding: 18px 0; margin: 0 !important; }
.pb-faq summary { cursor: pointer; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.pb-faq summary::-webkit-details-marker { display: none; }
.pb-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--pb-bronze); transition: transform 0.3s; }
.pb-faq[open] summary::after { transform: rotate(45deg); }
.pb-faq p { color: var(--pb-slate); margin: 12px 0 0; }

/* ----------------------------------------------------------------- Video */
.pb-video { padding: var(--pb-section) var(--pb-gutter); background: var(--pb-night); color: #fff; }
.pb-video__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px clamp(32px, 6vw, 96px); align-items: center; max-width: 1200px; }
.pb-video__grid > * { margin: 0 !important; }
.pb-video .pb-label { color: var(--pb-brass); }
.pb-video__title { font-size: clamp(2.2rem, 4vw, 4rem) !important; letter-spacing: -0.035em !important; line-height: 1.02 !important; margin: 0 0 1.4rem !important; }
.pb-video p:not(.pb-label) { color: rgba(255, 255, 255, 0.78); max-width: 46ch; font-size: 1.0625rem; }
.pb-video a { color: var(--pb-brass); text-decoration: none; font-weight: 500; }
.pb-video__frame { width: min(360px, 100%); aspect-ratio: 9 / 16; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.pb-video__frame iframe { width: 100%; height: 100%; display: block; border: 0; }
@media (max-width: 781px) { .pb-video__grid { grid-template-columns: 1fr; } .pb-video__frame { margin: 0 auto; } }

/* Video grid + in-post videos */
.pb-reels-sec { padding: var(--pb-section) var(--pb-gutter); border-top: 1px solid var(--pb-line); }
.pb-reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 20px; }
.pb-reel { margin: 0; }
.pb-reel__frame { aspect-ratio: 9 / 16; background: var(--pb-night); overflow: hidden; }
.pb-reel__frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.pb-reel figcaption { font-size: 0.9375rem; margin-top: 12px; line-height: 1.4; }
.pb-post-reel { margin: 2.4rem auto !important; max-width: 340px; }
.pb-post-reel .pb-reel__frame { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18); }
.pb-post-reel figcaption { text-align: center; color: var(--pb-muted); font-size: 0.875rem; }

/* ------------------------------------------------------------- Portfolio */
.pb-filterbar { position: sticky; top: var(--pb-header); z-index: 20; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); border-top: 1px solid var(--pb-line); border-bottom: 1px solid var(--pb-line); padding: 14px var(--pb-gutter); }
.admin-bar .pb-filterbar { top: calc(var(--pb-header) + 32px); }
.pb-filters { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.pb-filters a { text-decoration: none; font-size: 0.8125rem; border: 1px solid var(--pb-line); padding: 8px 16px; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.pb-filters a:hover { background: var(--pb-ink); color: #fff; }
.pb-gallery-sec + .pb-gallery-sec { padding-top: 0; }
.pb-gallery.wp-block-gallery { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px !important; margin: 0; }
.pb-gallery.wp-block-gallery > figure.wp-block-image { width: auto !important; margin: 0 !important; aspect-ratio: 3 / 4; overflow: hidden; background: var(--pb-stone); }
.pb-gallery.wp-block-gallery > figure.wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover; transition: transform 0.8s var(--pb-ease); }
.pb-gallery.wp-block-gallery > figure.wp-block-image:hover img { transform: scale(1.04); }

/* --------------------------------------------------------------- Contact */
.pb-split--contact > .wp-block-column:first-child { justify-content: flex-start; }
.pb-split--contact > .wp-block-column:last-child { background: var(--pb-warm); padding: var(--pb-section) var(--pb-gutter); }
.pb-contact__list { margin-top: 2.6rem !important; border-top: 1px solid var(--pb-line); }
.pb-split .pb-contact__item { max-width: none; }
.pb-contact__list { max-width: 560px; }
.pb-contact__item { margin: 0 !important; padding: 16px 0; border-bottom: 1px solid var(--pb-line); display: grid; grid-template-columns: 110px 1fr; gap: 16px; font-size: 1rem !important; }
.pb-contact__item span { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pb-muted); padding-top: 0.25em; }
.pb-contact__item a { text-decoration: none; }

.pb-form { display: flex; flex-direction: column; gap: 22px; max-width: 640px; }
.pb-form label { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pb-form label > span { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pb-muted); font-weight: 500; }
.pb-form input, .pb-form select, .pb-form textarea {
	font: inherit; font-size: 1.0625rem; color: var(--pb-ink); background: transparent;
	border: 0; border-bottom: 1px solid rgba(17, 20, 24, 0.3); border-radius: 0; padding: 10px 0; width: 100%;
	transition: border-color 0.2s;
}
.pb-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.pb-form textarea { resize: vertical; min-height: 120px; }
.pb-form input:focus, .pb-form select:focus, .pb-form textarea:focus { outline: none; border-bottom-color: var(--pb-navy); }
.pb-form__row { display: flex; gap: 24px; }
.pb-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pb-form__submit { align-self: flex-start; margin-top: 8px; font: inherit; font-weight: 500; font-size: 1rem; background: var(--pb-navy); color: #fff; border: 0; padding: 16px 28px; cursor: pointer; transition: background 0.25s; }
.pb-form__submit:hover { background: var(--pb-deep); }
.pb-form__status:empty { display: none; }
.pb-form__status { padding: 14px 16px; font-size: 0.95rem; border-left: 3px solid var(--pb-brass); background: #fff; }
.pb-form__status.is-error { border-color: #b3261e; }

/* JobTread web form, restyled to match the site */
.pb-jt-form .jtwf > div { max-width: 640px !important; margin: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
.pb-jt-form .jtwf > div > div:first-child:has(> img) { display: none !important; }
.pb-jt-form .jtwf > div > div { padding: 0 !important; }
.pb-jt-form .jtwf .space-y-2 > * + * { margin-top: 22px !important; }
.pb-jt-form .jtwf label > div:first-child, .pb-jt-form .jtwf label > span { font-family: var(--pb-sans) !important; font-size: 0.6875rem !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pb-muted) !important; font-weight: 500 !important; }
.pb-jt-form .jtwf input:not([type="file"]), .pb-jt-form .jtwf textarea { font: inherit !important; font-size: 1.0625rem !important; color: var(--pb-ink) !important; background: transparent !important; border: 0 !important; border-bottom: 1px solid rgba(17, 20, 24, 0.3) !important; border-radius: 0 !important; box-shadow: none !important; padding: 10px 0 !important; width: 100% !important; }
.pb-jt-form .jtwf input:focus, .pb-jt-form .jtwf textarea:focus { outline: none !important; border-bottom-color: var(--pb-navy) !important; }
.pb-jt-form .jtwf input[type="file"] { font-size: 0.9rem; margin-top: 8px; }
.pb-jt-form .jtwf [data-submit-button] { background: var(--pb-navy) !important; color: #fff !important; font: inherit !important; font-weight: 500 !important; font-size: 1rem !important; padding: 16px 28px !important; border-radius: 0 !important; box-shadow: none !important; margin-top: 12px; }
.pb-jt-form .jtwf [data-submit-button]:hover { background: var(--pb-deep) !important; filter: none !important; }
.pb-jt-form .jtwf > div > div:last-child { text-align: left !important; }

/* ---------------------------------------------------------- Plain pages */
.pb-main--plain { padding: calc(var(--pb-header) + clamp(48px, 9vh, 110px)) var(--pb-gutter) var(--pb-section); }
.pb-page-title { font-size: clamp(2.4rem, 5vw, 4.6rem) !important; letter-spacing: -0.035em !important; margin-bottom: 2rem; }
.pb-meta { color: var(--pb-muted); font-size: 0.875rem; }
.pb-main--plain .wp-block-post-content p, .pb-main--plain .wp-block-post-content li { font-size: 1.0625rem; line-height: 1.7; }
.pb-main--plain .wp-block-post-content h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); margin-top: 2.6rem; }
.pb-journal .wp-block-post-title { font-size: 1.45rem; font-weight: 400; letter-spacing: -0.015em; }
.pb-journal .wp-block-post-title a { text-decoration: none; }
.pb-journal .wp-block-post-excerpt { color: var(--pb-slate); font-size: 0.95rem; }

/* Journal posts */
.single-post .pb-main--plain { padding-top: calc(var(--pb-header) + clamp(40px, 7vh, 90px)); }
.single-post .pb-page-title { font-size: clamp(2.2rem, 4.4vw, 4rem) !important; max-width: 20ch; margin-bottom: 0.8rem; }
.pb-featured { margin: 2.4rem auto 3rem !important; }
.pb-featured img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.pb-main--plain .wp-block-post-content h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 400; margin-top: 2rem; letter-spacing: -0.015em; }
.pb-main--plain .wp-block-post-content strong { font-weight: 500; }
.pb-main--plain .wp-block-post-content ul { padding-left: 1.2em; }
.pb-main--plain .wp-block-post-content li { margin-bottom: 0.5em; }
.pb-main--plain .wp-block-post-content li::marker { color: var(--pb-bronze); }
.pb-main--plain .wp-block-post-content a { color: var(--pb-navy); }
.pb-main--plain .wp-block-separator { border: 0; border-top: 1px solid var(--pb-line); margin: 3rem 0 2rem; }
.pb-journal .wp-block-post-template { gap: clamp(28px, 3vw, 44px) clamp(16px, 1.6vw, 24px); }
.pb-journal .wp-block-post-featured-image { margin-bottom: 1rem; overflow: hidden; background: var(--pb-stone); }
.pb-journal .wp-block-post-featured-image img { transition: transform 0.8s var(--pb-ease); }
.pb-journal li:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.pb-journal .wp-block-post-title { margin: 0 0 0.5rem; line-height: 1.2; }
.blog .pb-page-title { margin-bottom: 3rem; }
@media (max-width: 781px) { .pb-journal .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- Footer & CTA */
.pb-cta { background: var(--pb-night); color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 40px var(--pb-gutter); padding: clamp(80px, 14vh, 160px) var(--pb-gutter) clamp(56px, 9vh, 96px); }
.pb-cta__title { font-size: clamp(2.6rem, 5vw, 5rem); font-weight: 300; letter-spacing: -0.035em; line-height: 1; margin: 0 0 1.6rem; }
.pb-cta__areas { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); margin: 0; max-width: 46ch; line-height: 1.9; }
.pb-cta__contact { display: flex; flex-direction: column; gap: 6px; }
.pb-cta__contact a { font-size: clamp(1.8rem, 3.4vw, 3.3rem); font-weight: 300; letter-spacing: -0.03em; color: #8d96a5; text-decoration: none; line-height: 1.15; transition: color 0.3s; word-break: break-word; }
.pb-cta__contact a:hover { color: #fff; }

.pb-footer { display: grid; grid-template-columns: 1.25fr 0.75fr 1fr; min-height: 400px; }
.pb-footer__consult { position: relative; display: flex; align-items: center; padding: var(--pb-gutter); color: #fff; text-decoration: none; overflow: hidden; background: var(--pb-deep); min-height: 320px; }
.pb-footer__consult img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--pb-ease); }
.pb-footer__consult::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(8, 12, 20, 0.38); }
.pb-footer__consult span { position: relative; z-index: 2; font-size: clamp(1.7rem, 2.8vw, 2.6rem); font-weight: 300; letter-spacing: -0.03em; }
.pb-footer__consult:hover img { transform: scale(1.04); }
.pb-footer__links { background: var(--pb-stone); padding: clamp(40px, 6vh, 64px) var(--pb-gutter); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.pb-footer__links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.875rem; }
.pb-footer__links a { text-decoration: none; }
.pb-footer__links a:hover { text-decoration: underline; }
.pb-footer__links p { font-size: 0.75rem; color: var(--pb-slate); margin: 0; line-height: 1.8; }
.pb-footer__brand { background: var(--pb-warm); padding: clamp(40px, 6vh, 64px) var(--pb-gutter); display: flex; flex-direction: column; justify-content: center; }
.pb-footer__serving { font-size: 1rem; margin: 0 0 0.6rem; }
.pb-footer__small { font-size: 0.8125rem; color: var(--pb-slate); margin: 0 0 auto; line-height: 1.7; max-width: 38ch; }
.pb-logo--footer { margin-top: 48px; gap: 18px; color: var(--pb-navy); }
.pb-logo--footer .pb-logo__mark { width: 56px; height: 62px; }
.pb-logo--footer .pb-logo__name { font-size: clamp(1.9rem, 2.6vw, 2.5rem); }
.pb-logo--footer .pb-logo__sub { font-size: 0.75rem; margin-top: 8px; color: var(--pb-bronze); opacity: 1; }

/* Social icons */
.pb-social { display: flex; gap: 10px; margin-top: 24px; }
.pb-social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--pb-line); border-radius: 50%; color: var(--pb-navy); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.pb-social a:hover { background: var(--pb-navy); border-color: var(--pb-navy); color: #fff; }
.pb-social--menu { margin-top: 8px; }
.pb-social--menu a { color: #fff; border-color: rgba(255, 255, 255, 0.3); }

/* Floating "Start the Process" card + mobile action bar */
.pb-float { position: fixed; left: 16px; bottom: 16px; z-index: 90; display: flex; align-items: stretch; background: var(--pb-night); color: #fff; text-decoration: none; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 0.4s var(--pb-ease), transform 0.4s var(--pb-ease); }
.pb-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.pb-float img { width: 64px; height: 64px; object-fit: cover; display: block; }
.pb-float span { padding: 10px 22px 10px 14px; font-size: 1.05rem; font-weight: 300; line-height: 1.15; display: flex; align-items: center; }
.pb-mobilebar { display: none; }

/* --------------------------------------------------------------- Reviews */
.pb-reviews { padding: var(--pb-section) 0; background: var(--pb-warm); border-top: 1px solid var(--pb-line); }
.pb-reviews > .pb-section__head { padding: 0 var(--pb-gutter); }
.pb-reviews__link a { color: var(--pb-bronze); text-decoration: none; font-weight: 500; }
.pb-reviews__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--pb-gutter) 24px; scroll-padding: 0 var(--pb-gutter); scrollbar-width: thin; scrollbar-color: rgba(17,20,24,.25) transparent; }
.pb-reviews__track > * { margin: 0 !important; }
.pb-review { flex: 0 0 min(420px, 82vw); scroll-snap-align: start; background: #fff; padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; border: 1px solid var(--pb-line); }
.pb-review > * { margin: 0; }
.pb-review__stars { color: var(--pb-brass); letter-spacing: 0.18em; font-size: 0.95rem; margin-bottom: 1.1rem !important; }
.pb-review__quote { font-size: clamp(1.05rem, 1.25vw, 1.2rem); font-weight: 300; line-height: 1.55; letter-spacing: -0.005em; color: var(--pb-ink); flex: 1; }
.pb-review__quote::before { content: "\201C"; } .pb-review__quote::after { content: "\201D"; }
.pb-review__name { margin-top: 1.6rem !important; padding-top: 1rem; border-top: 1px solid var(--pb-line); font-size: 0.9375rem; font-weight: 500; }
.pb-review__name em { font-style: normal; font-weight: 400; color: var(--pb-muted); margin-left: 0.4em; font-size: 0.8125rem; }

/* ---------------------------------------------------------- Owner / Josh */
.pb-owner { display: flex; align-items: center; gap: 16px; margin-top: 2.2rem !important; padding-top: 1.6rem; border-top: 1px solid var(--pb-line); }
.pb-owner > * { margin: 0 !important; }
.pb-owner__img { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--pb-stone); }
.pb-owner__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; transform: scale(2.1); transform-origin: 50% 9%; }
.pb-split p.pb-owner__text { font-size: 0.9375rem; line-height: 1.5; color: var(--pb-slate); }
.pb-owner__text strong { color: var(--pb-ink); font-weight: 500; }
.pb-owner__text a { color: var(--pb-bronze); }
.pb-about-josh { border-top: 1px solid var(--pb-line); }
.pb-about-josh .wp-block-image:only-child img { object-position: 50% 30%; }
.pb-split p.pb-signature { font-family: var(--pb-serif); font-size: 1.6rem; letter-spacing: 0.04em; color: var(--pb-navy); margin: 2.2rem 0 0.3rem; }
.pb-signature + .pb-label { margin-top: 0; }

/* -------------------------------------------------------------- Reveal */
@media (prefers-reduced-motion: no-preference) {
	.pb-js .pb-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--pb-ease), transform 0.9s var(--pb-ease); }
	.pb-js .pb-reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.pb-hero > .pb-hero__media img { animation: none; transform: none; }
	html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1100px) {
	.pb-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.pb-gallery.wp-block-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pb-phase { grid-template-columns: 44px 1fr; }
	.pb-phase__list { grid-column: 2; margin-top: 10px !important; }
}
@media (max-width: 900px) {
	.pb-grid { grid-template-columns: repeat(2, 1fr); }
	.pb-section__head { grid-template-columns: 1fr; gap: 16px; }
	.pb-section__lead { justify-self: start; }
	.pb-footer { grid-template-columns: 1fr 1fr; }
	.pb-footer__consult { grid-column: 1 / -1; }
	.pb-cta { grid-template-columns: 1fr; }
}
@media (max-width: 781px) {
	:root { --pb-header: 64px; --pb-section: 64px; }
	body { padding-bottom: 60px; }
	.pb-split > .wp-block-column:first-child,
	.pb-intro .pb-split > .wp-block-column:first-child { min-height: 0; padding: 56px var(--pb-gutter) 40px; }
	.pb-split > .wp-block-column > .wp-block-image:only-child,
	.pb-has-hero .pb-split > .wp-block-column > .wp-block-image:only-child { position: relative; top: 0; height: 72vh; }
	.pb-split > .wp-block-column:first-child:has(> .wp-block-image:only-child) + .wp-block-column { padding: 48px var(--pb-gutter); }
	.pb-about-story .pb-split > .wp-block-column:first-child > * { position: static; }
	.pb-split--text > .wp-block-column:last-child { padding-top: 0; }
	.pb-works__cols > .wp-block-column:last-child { min-height: 64vh; order: -1; }
	.pb-works__cols > .wp-block-column:first-child { padding: 40px var(--pb-gutter) 56px; }
	.pb-works__item { font-size: 1.75rem !important; }
	.pb-process__cols > .wp-block-column:first-child { min-height: 62vh; }
	.pb-statement__title { position: static; }
	.pb-statement__cols > .wp-block-column:last-child { padding-top: 48px; }
	.pb-service__cols--flip { flex-direction: column; }
	.pb-service__cols > .wp-block-column:first-child { min-height: 62vh; }
	.pb-step { grid-template-columns: 64px 1fr; }
	.pb-gallery.wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px !important; }
	.pb-form__row { flex-direction: column; gap: 22px; }
	.pb-contact__item { grid-template-columns: 1fr; gap: 4px; }
	.pb-footer { grid-template-columns: 1fr; }
	.pb-float { display: none; }
	.pb-mobilebar { display: grid; grid-template-columns: 1fr 1.6fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: var(--pb-night); box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18); }
	.pb-mobilebar a { color: #fff; text-decoration: none; text-align: center; padding: 18px 10px; font-size: 0.9375rem; font-weight: 500; }
	.pb-mobilebar a + a { background: var(--pb-navy); }
	.pb-logo__name { font-size: 1.12rem; }
	.pb-logo__mark { width: 24px; height: 27px; }
}
@media (max-width: 560px) {
	.pb-grid, .pb-grid--4 { grid-template-columns: 1fr; }
	.pb-hero__title { max-width: none; }
}

/* ---------------------------------------------- Editor-only adjustments */
.editor-styles-wrapper .pb-hero { min-height: 640px; }
.editor-styles-wrapper .pb-hero .pb-hero__media { position: absolute; inset: 0; z-index: 0; }
.editor-styles-wrapper .pb-hero .pb-hero__content, .editor-styles-wrapper .pb-hero .pb-hero__foot { position: relative; z-index: 2; }
.editor-styles-wrapper .pb-works__img { position: relative !important; opacity: 1 !important; }
.editor-styles-wrapper .pb-reveal { opacity: 1 !important; transform: none !important; }
