/*
 * Prototype Builders: component CSS for design v2 (Claude Design "Prototype Site v2").
 * Colours, fonts, sizes and spacing come from theme.json (Site Editor > Styles); this
 * file only holds what theme.json cannot express: layout, hover and focus states,
 * icons, and the card, slider and form looks. Every colour is a --wp--preset--color--*
 * variable, so the High contrast style variation recolours everything. Classes are pg-.
 */

:root {
	--pg-ink: var(--wp--preset--color--primary);
	--pg-paper: var(--wp--preset--color--base);
	--pg-amber: var(--wp--preset--color--cta);
	--pg-muted: var(--wp--preset--color--ink-muted);
	--pg-rule: var(--wp--preset--color--border);
	--pg-on-dark: var(--wp--preset--color--on-dark);
	--pg-line-dark: var(--wp--preset--color--primary-line);
	--pg-gutter: var(--wp--preset--spacing--gutter, clamp(24px, 4vw, 48px));
	--pg-label-col: clamp(120px, 24%, 320px);
	--pg-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--pg-display: clamp(36px, 4.2vw, 60px);
	--pg-i-arrow: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27square%27%3E%3Cpath%20d%3D%27M5%2012h14M13%206l6%206-6%206%27%2F%3E%3C%2Fsvg%3E");
	--pg-i-phone: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27square%27%3E%3Cpath%20d%3D%27M22%2016.92v3a2%202%200%200%201-2.18%202%2019.79%2019.79%200%200%201-8.63-3.07%2019.5%2019.5%200%200%201-6-6%2019.79%2019.79%200%200%201-3.07-8.67A2%202%200%200%201%204.11%202h3a2%202%200%200%201%202%201.72%2012.84%2012.84%200%200%200%20.7%202.81%202%202%200%200%201-.45%202.11L8.09%209.91a16%2016%200%200%200%206%206l1.27-1.27a2%202%200%200%201%202.11-.45%2012.84%2012.84%200%200%200%202.81.7A2%202%200%200%201%2022%2016.92z%27%2F%3E%3C%2Fsvg%3E");
	--pg-i-chevron: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272.4%27%20stroke-linecap%3D%27square%27%3E%3Cpath%20d%3D%27M6%209l6%206%206-6%27%2F%3E%3C%2Fsvg%3E");
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
h1, h2 { text-wrap: balance; }
h1, h2 { font-stretch: 72%; letter-spacing: -0.025em; }
h3, h4 { letter-spacing: -0.01em; }
a { text-underline-offset: 6px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[id] { scroll-margin-top: 88px; }

/* Full-width bands touch each other; no gaps between sections. */
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks .pg-main > *,
.pg-sections > * { margin-block-start: 0; margin-block-end: 0; }
.pg-main { min-height: 40vh; }
/* Sections below the first screen skip layout and paint until scrolled near (mobile LCP, req. 9). */
.pg-main > .pg-section ~ .pg-section ~ .pg-section { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.pg-section p { margin-block: 0; }

/* Type helpers. */
.pg-label,
.pg-label p {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.pg-label { color: var(--pg-muted); }
.pg-lead { font-size: 20px; line-height: 1.4; max-width: 36ch; }
.pg-muted { color: var(--pg-muted); }
.has-primary-background-color .pg-muted,
.has-primary-background-color .pg-label { color: var(--pg-on-dark); }
.pg-prose .pg-lead { max-width: 52ch; }

/* Arrow link ("All projects →"). */
.pg-link-arrow a,
.pg-link-arrow--btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	font-weight: 600;
	color: inherit;
}
.pg-link-arrow a::after,
.pg-link-arrow--btn .wp-block-button__link::after { content: "→"; transition: transform 160ms var(--pg-ease); }
.pg-link-arrow a:hover::after { transform: translateX(4px); }
.pg-link-arrow--btn .wp-block-button__link,
.pg-link-arrow--btn .wp-block-button__link:hover {
	padding: 0;
	background: transparent;
	color: var(--pg-ink);
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 1px;
}

/* A bound button that reads as an inline text link ("Call and ask."). */
.pg-inline { align-items: baseline; }
.pg-text-link .wp-block-button__link,
.pg-text-link .wp-block-button__link:hover {
	min-height: 0;
	padding: 0;
	background: transparent;
	color: var(--pg-ink);
	font-size: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 1px;
	white-space: nowrap;
}
.pg-text-link .wp-block-button__link:hover { text-decoration-thickness: 2px; }

/* Placeholder tag on sample content. Remove it when the real content goes in. */
.pg-placeholder-label {
	display: inline-block;
	align-self: flex-start;
	margin: 0;
	padding: 4px 8px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	line-height: 1.4;
	color: var(--pg-ink);
	background: var(--pg-paper);
	border: 1px dashed var(--pg-muted);
}

/* ---------- Buttons ---------- */
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	border-radius: 0;
	text-align: center;
	transition: background-color 160ms ease-out, color 160ms ease-out, transform 160ms ease-out;
}
.wp-block-button__link:active { transform: scale(0.99); }

/* ---------- Header ---------- */
.pg-site-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .pg-site-header { top: var(--wp-admin--admin-bar--height, 0px); }
.pg-header { border-bottom: 1px solid var(--pg-line-dark); }
.pg-header__row { min-height: 72px; }
.pg-header__logo { flex: none; margin: 0; }
.pg-header__logo a { display: flex; align-items: center; min-height: 48px; }
.pg-header__logo img { display: block; height: 36px !important; width: auto !important; }

.pg-nav { flex: 1 1 auto; }
.pg-nav .wp-block-navigation__container { gap: 24px; flex-wrap: nowrap; }
.pg-nav .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	min-height: 48px;
	white-space: nowrap;
	text-decoration-line: none;
	text-decoration-color: var(--pg-amber);
	text-decoration-thickness: 2px;
	text-underline-offset: 8px;
}
.pg-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content:hover,
.pg-nav .wp-block-navigation__responsive-container:not(.is-menu-open) [aria-current="page"] { text-decoration-line: underline; }
.pg-nav__ctas { display: none !important; }
@media (min-width: 1200px) {
	.pg-nav .wp-block-navigation__responsive-container-open { display: none !important; }
}

.pg-header__phone .wp-block-button__link { padding: 0 16px; white-space: nowrap; }
.pg-header .pg-header__call { display: none; }
.pg-header__call .wp-block-button__link { width: 48px; height: 48px; padding: 0; font-size: 0; gap: 0; }
.pg-header__call .wp-block-button__link::before {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: var(--pg-i-phone) center / contain no-repeat;
	mask: var(--pg-i-phone) center / contain no-repeat;
}

/* Below 1200px: logo, menu button, square Call button (the design's compact header). */
@media (max-width: 1199.98px) {
	.pg-header__row { min-height: 64px; gap: 8px !important; }
	.pg-header__logo img { height: 32px !important; }
	.pg-header__row > .pg-nav { flex: none; margin-left: auto !important; }
	.pg-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
	.pg-nav .wp-block-navigation__responsive-container-open { display: flex !important; }
	.pg-header__phone { display: none !important; }
	.pg-header .pg-header__call { display: flex; }
}
.pg-nav .wp-block-navigation__responsive-container-open,
.pg-nav .wp-block-navigation__responsive-container-close {
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
}
.pg-nav .wp-block-navigation__responsive-container-open svg { width: 26px; height: 26px; }

/* Overlay menu: big condensed links with an index number, then Call and Free estimate. */
.pg-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 16px var(--pg-gutter) 32px; }
.pg-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 64px; align-items: stretch !important; gap: 32px !important; }
.pg-nav .is-menu-open .wp-block-navigation__container {
	gap: 0 !important;
	width: 100%;
	counter-reset: pg-nav;
	border-top: 1px solid var(--pg-line-dark);
	align-items: stretch !important;
}
.pg-nav .is-menu-open .wp-block-navigation-item { width: 100%; counter-increment: pg-nav; }
.pg-nav .is-menu-open .wp-block-navigation-item__content {
	justify-content: space-between;
	width: 100%;
	min-height: 64px;
	border-bottom: 1px solid var(--pg-line-dark);
	font-family: var(--wp--preset--font-family--heading);
	font-stretch: 72%;
	font-weight: 600;
	font-size: 24px;
	letter-spacing: -0.01em;
}
.pg-nav .is-menu-open .wp-block-navigation-item__content::after {
	content: counter(pg-nav, decimal-leading-zero);
	font-family: var(--wp--preset--font-family--mono);
	font-stretch: 100%;
	font-weight: 400;
	font-size: 13px;
	color: var(--pg-on-dark);
}
.pg-nav .is-menu-open .pg-nav__ctas { display: flex !important; width: 100%; gap: 8px; }
.pg-nav .is-menu-open .pg-nav__ctas .wp-block-button,
.pg-nav .is-menu-open .pg-nav__ctas .wp-block-button__link { width: 100%; }
.pg-nav .is-menu-open .pg-nav__ctas .wp-block-button__link { min-height: 56px; }

/* ---------- Mobile sticky Call / Free-estimate bar (req. 10; no chat bubble anywhere) ---------- */
.pg-sticky-bar-wrap { display: none; }
@media (max-width: 767.98px) {
	body:not(.editor-styles-wrapper) .pg-sticky-bar-wrap {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		transition: transform 240ms var(--pg-ease);
	}
	html.pg-js body:not(.editor-styles-wrapper) .pg-sticky-bar-wrap:not(.is-visible) { transform: translateY(110%); }
	body:not(.editor-styles-wrapper) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
	.editor-styles-wrapper .pg-sticky-bar-wrap { display: block; }
}
.pg-sticky-bar {
	background: var(--pg-paper);
	border-top: 1px solid var(--pg-ink);
	padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}
.pg-sticky-bar .wp-block-buttons { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
.pg-sticky-bar .wp-block-button__link { width: 100%; height: 56px; }

/* Grids fill the row like the design (auto-fit), instead of leaving empty auto-fill tracks. */
.pg-steps.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important; }
.pg-items--scope.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)) !important; }
.pg-items--cases.is-layout-grid,
.pg-quotes__grid.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)) !important; }
.pg-footer__grid.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)) !important; }

/* ---------- Section head: mono label left, display heading and lead right ---------- */
.pg-head { gap: 16px 24px !important; margin-bottom: var(--wp--preset--spacing--head-gap, clamp(40px, 4vw, 64px)); }
.pg-head--flush { margin-bottom: 0; }
.pg-head__label { flex: 0 0 var(--pg-label-col); padding-top: 8px; }
.pg-head__body { flex: 1 1 480px; min-width: 0; }
.pg-head__body > * { margin-block: 0; }
.pg-head__row { width: 100%; gap: 16px 24px !important; }

/* ---------- Hero ---------- */
.pg-hero { overflow: hidden; }
.pg-meta-row {
	gap: 8px 24px !important;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--pg-ink);
}
.pg-meta-row > * { margin: 0; }
.pg-breadcrumb { display: flex; gap: 8px; }
.pg-breadcrumb a { color: var(--pg-ink); }
.pg-hero__title,
.pg-page-header .wp-block-post-title,
.pg-page-header .wp-block-query-title,
.pg-page-header .pg-page-title {
	margin-block: clamp(40px, 5vw, 72px) 0;
	font-size: var(--pg-display);
	line-height: 0.94;
}
/* Hero titles are full content width (so they line up with the label row); the text wraps at 14ch. */
.pg-hero__title {
	box-sizing: border-box;
	padding-right: max(0px, calc(min(100%, 1280px) - 14ch));
}
/* Titles in the older page-header bands sit in a left-justified box: a plain max-width works there. */
.pg-page-header .wp-block-post-title:not(.pg-hero__title),
.pg-page-header .wp-block-query-title,
.pg-page-header .pg-page-title { max-width: 18ch; }
.pg-hero--service .pg-hero__title { padding-right: max(0px, calc(min(100%, 1280px) - 18ch)); }
.pg-hero__body { gap: 48px !important; margin-top: clamp(40px, 4vw, 64px); }
.pg-hero__copy { flex: 1 1 320px; max-width: 440px; }
.pg-hero__copy > * { margin-block: 0; }
.pg-hero__copy .wp-block-post-excerpt__excerpt { margin: 0; }
.pg-hero-image {
	flex: 2.4 1 520px;
	min-width: 0;
	margin: 0 calc(-1 * var(--pg-gutter)) 0 0 !important;
}
.pg-hero-image img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	background: var(--wp--preset--color--surface);
}
@media (max-width: 599.98px) {
	.pg-hero-image { flex-basis: 100%; margin-left: calc(-1 * var(--pg-gutter)) !important; }
	.pg-hero-image figcaption { padding-left: var(--pg-gutter); }
}

/* Figure caption: "Fig. 01   Caption text". */
.pg-fig figcaption,
.pg-fig .wp-element-caption {
	display: flex;
	gap: 16px;
	margin: 8px 0 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pg-muted);
}
.pg-fig figcaption::before { content: "Fig. 01"; flex: none; }

/* Big Call button: label, number, arrow. */
.pg-call-xl,
.pg-call-xl .wp-block-button { width: 100%; }
.pg-call-xl .wp-block-button__link {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	justify-items: start;
	column-gap: 16px;
	width: 100%;
	min-height: 72px;
	padding: 16px 24px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-align: left;
}
.pg-call-xl .wp-block-button__link::before {
	content: "Call the office";
	grid-area: 1 / 1;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.pg-call-xl .wp-block-button__link::after {
	content: "";
	grid-area: 1 / 2 / 3 / 3;
	width: 24px;
	height: 24px;
	background: currentColor;
	-webkit-mask: var(--pg-i-arrow) center / contain no-repeat;
	mask: var(--pg-i-arrow) center / contain no-repeat;
}

/* ---------- Credentials strip ---------- */
.pg-trust-wrap { padding-block: 0; }
.pg-trust {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important;
	gap: 1px !important;
	background: var(--pg-rule);
	border-top: 1px solid var(--pg-ink);
	border-bottom: 1px solid var(--pg-ink);
}
.pg-trust__cell { background: var(--pg-paper); padding: 24px; }
.pg-trust__cell:first-child { padding-left: 0; }
.pg-trust__cell > * { margin: 0; }
.pg-trust__num {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.25;
	color: var(--pg-ink);
}
@media (max-width: 599.98px) { .pg-trust__cell { padding-left: 0; } }

/* ---------- Services: numbered rows ---------- */
.pg-rows__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--pg-ink); counter-reset: pg-row; }
.pg-rows__list > li { margin: 0; counter-increment: pg-row; }
.pg-row {
	position: relative;
	gap: 8px 24px !important;
	align-items: baseline !important;
	padding: 24px 0;
	border-bottom: 1px solid var(--pg-rule);
}
.pg-row::before {
	content: counter(pg-row, decimal-leading-zero);
	flex: 0 0 var(--pg-label-col);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 0.04em;
	color: var(--pg-muted);
}
.pg-row::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--pg-ink);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 220ms var(--pg-ease);
}
.pg-row:hover::after,
.pg-row:focus-within::after { transform: scaleX(1); }
.pg-row .pg-row__title {
	flex: 1 1 360px;
	min-width: 0;
	margin: 0;
	font-size: var(--pg-display);
	font-stretch: 72%;
	font-weight: 700;
	line-height: 0.94;
	letter-spacing: -0.025em;
	transition: transform 220ms var(--pg-ease);
}
.pg-row__title a { color: var(--pg-ink); text-decoration: none; }
.pg-row__text {
	flex: 0 1 320px;
	min-width: 0;
	display: flex;
	align-items: flex-start;
	gap: 24px;
	color: var(--pg-muted);
}
.pg-row__text p { margin: 0; flex: 1; }
.pg-row__text::after {
	content: "";
	flex: none;
	width: 24px;
	height: 24px;
	margin-top: 2px;
	background: var(--pg-ink);
	-webkit-mask: var(--pg-i-arrow) center / contain no-repeat;
	mask: var(--pg-i-arrow) center / contain no-repeat;
	transition: transform 220ms var(--pg-ease);
}
@media (max-width: 767.98px) { .pg-row__text { flex: 1 1 100%; } }
@media (prefers-reduced-motion: no-preference) {
	.pg-row:hover .pg-row__title { transform: translateX(16px); }
	.pg-row:hover .pg-row__text::after { transform: translateX(8px); }
}

/* One clickable area per card or row: the title link stretches over the whole item. */
.pg-card-link { position: relative; }
.pg-card-link .wp-block-post-title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.pg-card-link .wp-block-post-title a:focus-visible { outline: none; }
.pg-card-link .wp-block-post-title a:focus-visible::before { outline: 2px solid var(--pg-ink); outline-offset: 3px; }

/* ---------- Projects: staggered editorial grid ---------- */
.pg-work__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 24px;
	row-gap: clamp(40px, 4vw, 64px);
	align-items: start;
	counter-reset: pg-work;
}
.pg-work__grid > li { margin: 0; min-width: 0; counter-increment: pg-work; grid-column: 1 / -1; }
.pg-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	flex-shrink: 0;
	width: 100%;
	margin: 0;
	background: var(--wp--preset--color--surface-deep);
}
.pg-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 280ms var(--pg-ease);
}
@media (prefers-reduced-motion: no-preference) {
	.pg-work__item:hover a.pg-media img { transform: scale(1.03); }
}
.pg-media__missing {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	line-height: 1.4;
	color: var(--pg-muted);
}
/* A project without a photo: a drawing sheet (navy, blueprint grid, framed) carrying the
   project's service and town. CSS only, so it costs no image request. */
.pg-media--sheet { background: var(--wp--preset--color--primary); }
.pg-sheet {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 8px;
	padding: clamp(20px, 4%, 32px);
	background-image:
		linear-gradient(var(--wp--preset--color--primary-alt) 1px, transparent 1px),
		linear-gradient(90deg, var(--wp--preset--color--primary-alt) 1px, transparent 1px);
	background-size: 24px 24px;
	background-position: -1px -1px;
}
.pg-sheet::before {
	content: "";
	position: absolute;
	inset: 12px;
	border: 1px solid var(--wp--preset--color--primary-line);
	pointer-events: none;
}
.pg-sheet__label {
	position: relative;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}
.pg-sheet__title {
	position: relative;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(28px, 3.4vw, 48px);
	font-weight: 700;
	line-height: 0.95;
	text-transform: uppercase;
	color: var(--wp--preset--color--base);
	overflow-wrap: anywhere;
}
.pg-media--sheet .pg-media__missing {
	top: 20px;
	bottom: auto;
	left: 20px;
	padding: 4px 8px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--primary);
}
.pg-work__meta {
	position: relative;
	padding: 16px 0 0 48px;
	border-top: 1px solid var(--pg-ink);
}
.pg-work__meta::before {
	content: counter(pg-work, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 19px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	line-height: 1.4;
	color: var(--pg-muted);
}
.pg-work__meta > * { margin: 0; }
.pg-work__meta .wp-block-post-title { font-size: 20px; font-weight: 600; line-height: 1.25; }
.pg-work__meta .wp-block-post-title a { color: var(--pg-ink); text-decoration: none; }
.pg-work__meta .wp-block-post-title a:hover { text-decoration: underline; }
.pg-work__meta .wp-block-post-excerpt { max-width: 48ch; }
.pg-work__meta .wp-block-post-excerpt__excerpt { margin: 0; }
.pg-timeline { color: var(--pg-ink); }
.pg-timeline::before { content: "Timeline · "; }
.pg-timeline:empty { display: none; }

/* Tablet: two columns. Desktop: the design's staggered placement, repeating every six. */
@media (min-width: 768px) {
	.pg-work__grid > li { grid-column: span 6; }
	.pg-work__grid > li:nth-child(6n+2) .pg-media,
	.pg-work__grid > li:nth-child(6n+3) .pg-media,
	.pg-work__grid > li:nth-child(6n+5) .pg-media { aspect-ratio: 4 / 5; }
	.pg-work__grid > li:nth-child(6n+4) .pg-media { aspect-ratio: 3 / 2; }
	.pg-work__grid > li:nth-child(6n+6) .pg-media { aspect-ratio: 16 / 10; }
}
@media (min-width: 1200px) {
	.pg-work__grid > li:nth-child(6n+1) { grid-column: 1 / span 7; }
	.pg-work__grid > li:nth-child(6n+2) { grid-column: 9 / span 4; margin-top: 48px; }
	.pg-work__grid > li:nth-child(6n+3) { grid-column: 1 / span 5; }
	.pg-work__grid > li:nth-child(6n+4) { grid-column: 7 / span 6; margin-top: 48px; }
	.pg-work__grid > li:nth-child(6n+5) { grid-column: 2 / span 4; }
	.pg-work__grid > li:nth-child(6n+6) { grid-column: 7 / span 6; margin-top: 64px; }
	.pg-work--three .pg-work__grid > li:nth-child(3) { grid-column: 1 / -1; }
	.pg-work--three .pg-work__grid > li:nth-child(3) .pg-media { aspect-ratio: 21 / 9; }
}
.pg-media--single { aspect-ratio: 3 / 2; margin-bottom: var(--wp--preset--spacing--50); }

/* Before/after slider (assets/js/theme.js adds dragging and arrow keys). */
.pg-ba { touch-action: pan-y; cursor: ew-resize; user-select: none; --pg-ba: 50%; }
.pg-ba__after, .pg-ba__before { position: absolute; inset: 0; }
.pg-ba__before { clip-path: inset(0 calc(100% - var(--pg-ba)) 0 0); }
.pg-ba__tag {
	position: absolute;
	top: 16px;
	z-index: 1;
	padding: 8px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pg-paper);
	background: var(--pg-ink);
}
.pg-ba__tag--before { left: 16px; }
.pg-ba__tag--after { right: 16px; }
.pg-ba__divider {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--pg-ba);
	z-index: 2;
	width: 2px;
	margin-left: -1px;
	background: var(--pg-ink);
}
.pg-ba__handle {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: -24px 0 0 -24px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--pg-ink);
	color: var(--pg-paper);
	cursor: ew-resize;
}

/* ---------- Process (navy band) ---------- */
.pg-steps { list-style: none; margin: 0; padding: 0; counter-reset: pg-step; }
.pg-step {
	position: relative;
	margin: 0;
	padding-top: 24px;
	border-top: 1px solid var(--pg-line-dark);
	counter-increment: pg-step;
}
.pg-step::before {
	content: counter(pg-step, decimal-leading-zero);
	font-family: var(--wp--preset--font-family--heading);
	font-stretch: 72%;
	font-weight: 700;
	font-size: var(--pg-display);
	line-height: 0.94;
	letter-spacing: -0.025em;
	color: var(--pg-amber);
}
.pg-step::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -1px;
	height: 1px;
	background: var(--pg-amber);
	transform-origin: left center;
}
.pg-step > * { margin: 0; }
.pg-step p { max-width: 40ch; }

/* ---------- Reviews ---------- */
.pg-quotes__grid { list-style: none; margin: 0; padding: 0; }
.pg-quotes__grid > li { margin: 0; display: flex; }
.pg-quote {
	flex: 1;
	margin: 0;
	padding-top: 24px;
	border-top: 1px solid var(--pg-ink);
}
.pg-quote__text { flex: 1; font-size: 20px; line-height: 1.4; }
.pg-quote__text p { margin: 0; }
.pg-quote__by { color: var(--pg-ink); }
.pg-dotted > * { margin: 0; }
.pg-dotted > :empty { display: none; }
.pg-dotted > * + *::before { content: "\00a0·\00a0"; }
.pg-stars { color: inherit; letter-spacing: 0; font-size: inherit; line-height: inherit; }
.pg-stars__off { opacity: 0.35; }

/* ---------- Service area ---------- */
.pg-areas { list-style: none; margin: 0; padding: 0; }
.pg-areas li { margin: 0; }
.pg-areas.is-style-big {
	display: flex;
	flex-wrap: wrap;
	gap: 0 clamp(16px, 2vw, 32px);
}
.pg-areas.is-style-big li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-family: var(--wp--preset--font-family--heading);
	font-stretch: 72%;
	font-weight: 700;
	font-size: var(--pg-display);
	line-height: 1.04;
	letter-spacing: -0.025em;
	color: var(--pg-ink);
}
.pg-areas__hq {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 0.35em;
	font-family: var(--wp--preset--font-family--mono);
	font-stretch: 100%;
	font-weight: 400;
	font-size: 13px;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.pg-areas__hq span { width: 12px; height: 12px; background: var(--pg-amber); }

/* ---------- FAQ (core/details), req. 20: a reusable pattern, no FAQ page template ---------- */
.pg-faq-layout { gap: 48px 24px !important; align-items: flex-start !important; }
.pg-faq-intro { flex: 1 1 320px; max-width: 560px; }
@media (min-width: 900px) { .pg-faq-intro { position: sticky; top: 120px; } }
.pg-faq-intro > * { margin: 0; }
.pg-faq { flex: 1.4 1 480px; min-width: 0; border-top: 1px solid var(--pg-ink); }
.pg-faq .wp-block-details { margin: 0; border-bottom: 1px solid var(--pg-rule); }
.pg-faq .wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 64px;
	padding: 16px 0;
	cursor: pointer;
	list-style: none;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--pg-ink);
}
.pg-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.pg-faq .wp-block-details summary::after {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background:
		linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat,
		linear-gradient(currentColor, currentColor) center / 2px 16px no-repeat;
	transition: background-size 220ms var(--pg-ease);
}
.pg-faq .wp-block-details[open] summary::after { background-size: 16px 2px, 2px 0; }
.pg-faq .wp-block-details > :not(summary) {
	max-width: 62ch;
	margin: 0;
	padding: 0 48px 32px 0;
	color: var(--pg-muted);
}

/* ---------- Scope / when-to-hire items (General Contracting content) ---------- */
.pg-items { counter-reset: pg-item; }
.pg-item { padding-top: 16px; border-top: 1px solid var(--pg-ink); counter-increment: pg-item; }
.pg-item > * { margin: 0; }
.pg-item::before {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 0.04em;
	color: var(--pg-muted);
}
.pg-items--scope .pg-item::before { content: "A." counter(pg-item, decimal-leading-zero); }
.pg-items--cases .pg-item::before { content: "Case " counter(pg-item, decimal-leading-zero); }
.pg-items--scope .pg-item p { max-width: 44ch; }
.pg-after-grid { margin-top: var(--wp--preset--spacing--head-gap, 48px) !important; }
.pg-after-grid a { color: var(--pg-ink); }

/* ---------- Free-estimate section ---------- */
.pg-estimate__layout { gap: 64px 24px !important; align-items: flex-start !important; }
.pg-estimate__copy { flex: 1 1 440px; min-width: 0; }
.pg-estimate__copy > * { margin: 0; }
.pg-estimate__copy .pg-lead { max-width: 32ch; }
.pg-phone-xl .wp-block-button__link,
.pg-phone-xl .wp-block-button__link:hover {
	min-height: 0;
	padding: 0;
	background: transparent;
	color: var(--pg-paper);
	font-family: var(--wp--preset--font-family--heading);
	font-stretch: 72%;
	font-weight: 700;
	font-size: var(--pg-display);
	line-height: 1.1;
	letter-spacing: -0.025em;
	white-space: nowrap;
	text-decoration: underline;
	text-decoration-color: var(--pg-amber);
	text-decoration-thickness: 4px;
	text-underline-offset: 12px;
}
.pg-phone-xl .wp-block-button__link:hover { color: var(--pg-amber); }
.pg-form-card {
	flex: 1 1 440px;
	min-width: 0;
	max-width: 560px;
	padding: clamp(24px, 4vw, 48px);
}

/* Form (markup comes from the plugin's pg/estimate-form block). Labels sit above an underline field. */
.pg-form { display: flex; flex-direction: column; gap: 32px; }
.pg-form [hidden], .pg-form-wrap [hidden] { display: none !important; }
.pg-form__head {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--pg-ink);
}
.pg-form__title,
.pg-form__intro {
	margin: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pg-ink);
}
.pg-form__intro { color: var(--pg-muted); text-align: right; }
.pg-form__field { position: relative; display: flex; flex-direction: column-reverse; gap: 8px; }
.pg-form__field .pg-form__error { order: -1; }
.pg-form__field label {
	margin: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pg-muted);
}
.pg-form__field input,
.pg-form__field select,
.pg-form__field textarea,
.wp-block-search__input {
	box-sizing: border-box;
	display: block;
	width: 100%;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: inset 0 -1px 0 var(--pg-muted);
	font-family: var(--wp--preset--font-family--body);
	font-size: 20px;
	color: var(--pg-ink);
	-webkit-appearance: none;
	appearance: none;
	transition: box-shadow 160ms ease-out;
}
.pg-form__field textarea {
	height: auto;
	min-height: 112px;
	padding: 12px 0;
	line-height: 1.4;
	resize: vertical;
}
.pg-form__field textarea::placeholder { color: var(--pg-muted); opacity: 1; }
.pg-form__field select {
	padding-right: 40px;
	cursor: pointer;
	background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23121A2B%27%20stroke-width%3D%272.4%27%20stroke-linecap%3D%27square%27%3E%3Cpath%20d%3D%27M6%209l6%206%206-6%27%2F%3E%3C%2Fsvg%3E") right center / 16px no-repeat;
}
.pg-form__field input:focus,
.pg-form__field select:focus,
.pg-form__field textarea:focus,
.wp-block-search__input:focus { outline: none; box-shadow: inset 0 -3px 0 var(--pg-ink); }
.pg-form__field [aria-invalid="true"] { box-shadow: inset 0 -2px 0 var(--wp--preset--color--error); }
.pg-form__error { margin: 0; font-size: 16px; line-height: 1.4; color: var(--wp--preset--color--error); }
.pg-form__alert { margin: 0; padding: 12px 0; border-top: 2px solid var(--wp--preset--color--error); font-size: 16px; line-height: 1.4; color: var(--wp--preset--color--error); }
.pg-form__submit {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 64px;
	padding: 0 24px;
	border: 0;
	border-radius: 0;
	background: var(--pg-ink);
	color: var(--pg-paper);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 160ms ease-out, transform 160ms ease-out;
}
.pg-form__submit::after {
	content: "";
	width: 24px;
	height: 24px;
	background: currentColor;
	-webkit-mask: var(--pg-i-arrow) center / contain no-repeat;
	mask: var(--pg-i-arrow) center / contain no-repeat;
}
.pg-form__submit:hover { background: var(--wp--preset--color--primary-alt); }
.pg-form__submit:active { transform: scale(0.99); }
.pg-form__note { margin: -16px 0 0; font-size: 16px; color: var(--pg-muted); }
.pg-form__success { display: flex; flex-direction: column; gap: 24px; }
.pg-form__success::before {
	content: "Request received";
	display: block;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--pg-ink);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.pg-form__success-title { margin: 0; font-size: 20px; font-weight: 400; line-height: 1.4; color: var(--pg-ink); font-family: var(--wp--preset--font-family--body); }
.pg-form__success-body { margin: 0; color: var(--pg-muted); }
.pg-form__again {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--pg-ink);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 6px;
	cursor: pointer;
}

/* ---------- Footer ---------- */
.pg-footer { font-size: 16px; line-height: 1.6; border-top: 1px solid var(--pg-line-dark); }
.pg-footer p { margin: 0; }
.pg-footer a { color: var(--pg-paper); text-decoration: none; }
.pg-footer a:hover { color: var(--pg-paper); text-decoration: underline; }
.pg-footer .pg-footer__col-title { margin-bottom: 8px; color: var(--pg-on-dark); }
.pg-footer__logo { margin: 0; }
.pg-footer__logo img { display: block; height: 48px !important; width: auto !important; }
.pg-footer__address { font-style: normal; }
.pg-footer__name { color: var(--pg-paper); font-weight: 600; }
.pg-footer .wp-block-navigation { font-size: 16px; font-weight: 400; }
.pg-footer .wp-block-navigation .wp-block-navigation-item__content { display: flex; align-items: center; min-height: 40px; color: var(--pg-paper); }
.pg-footer__phone .wp-block-button__link,
.pg-footer__phone .wp-block-button__link:hover,
.pg-footer__social .wp-block-button__link,
.pg-footer__social .wp-block-button__link:hover {
	min-height: 40px;
	padding: 0;
	background: transparent;
	color: var(--pg-paper);
	font-size: 16px;
	font-weight: 600;
}
.pg-footer__social .wp-block-button__link { font-weight: 400; }
.pg-footer__phone .wp-block-button__link:hover,
.pg-footer__social .wp-block-button__link:hover { text-decoration: underline; }
.pg-footer .pg-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.pg-footer__legal {
	margin-top: 64px !important;
	padding-top: 24px;
	border-top: 1px solid var(--pg-line-dark);
	color: var(--pg-on-dark);
}
.pg-footer__legal a { color: var(--pg-on-dark); text-decoration: underline; }

/* ---------- Page headers on archive / single templates ---------- */
.pg-page-header { background-color: var(--pg-paper) !important; }
.pg-page-header .pg-breadcrumb,
.pg-page-header > .wp-block-group > .pg-breadcrumb {
	padding-bottom: 16px;
	border-bottom: 1px solid var(--pg-ink);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pg-muted);
}
.pg-page-header > .wp-block-group > .pg-breadcrumb { width: 100%; }
.pg-page-header__body > * { margin: 0; }
/* Contact: the page's own text sits under the title, left-aligned like the rest of the band. */
.pg-section > .wp-block-post-content.pg-lead { max-width: var(--wp--style--global--wide-size, 1280px); }
.pg-section > .wp-block-post-content.pg-lead > * { margin-left: 0 !important; max-width: 720px; }

/* Long-form text inside service content, pages and posts: section-sized headings, not display. */
.wp-block-post-content > h2,
.pg-service-content > h2 { font-size: var(--wp--preset--font-size--x-large); line-height: 1.05; margin-top: var(--wp--preset--spacing--50); }
.pg-service-content { padding-block: var(--wp--preset--spacing--section); }
.pg-service-content > .alignfull:first-child { margin-top: calc(-1 * var(--wp--preset--spacing--section)) !important; }
.pg-service-content > .alignfull:last-child { margin-bottom: calc(-1 * var(--wp--preset--spacing--section)) !important; }
.pg-service-content:empty { display: none; }

/* Generic cards still used by the town templates. */
.is-style-pg-card,
.is-style-pg-card-muted { position: relative; background: transparent; border-top: 1px solid var(--pg-ink); padding-top: 16px; }
.wp-block-post-template { list-style: none; padding: 0; margin: 0; }
.wp-block-post-template > li { margin: 0; }
.wp-block-post-title a { text-decoration: none; }
.wp-block-query-pagination { gap: 16px; margin-top: var(--wp--preset--spacing--50); }
.wp-block-query-pagination a { min-height: 48px; display: inline-flex; align-items: center; }

/* ---------- Guides (inc/guides.php): ruled rows, article text, question box ---------- */
.pg-guides__label { margin: 0 0 16px; }
.pg-guides__list { border-top: 1px solid var(--pg-ink); }
.pg-guide {
	position: relative;
	gap: 8px 24px !important;
	padding: 24px 0;
	border-bottom: 1px solid var(--pg-rule);
}
.pg-guide::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--pg-ink);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 220ms var(--pg-ease);
}
.pg-guide:hover::after,
.pg-guide:focus-within::after { transform: scaleX(1); }
.pg-guide > * { margin: 0 !important; }
.pg-guide__meta { flex: 0 0 var(--pg-label-col); padding-top: 6px; }
.pg-guide__body { flex: 1 1 360px; min-width: 0; }
.pg-guide__title {
	margin: 0;
	font-size: clamp(26px, 2.6vw, 38px);
	font-stretch: 72%;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.pg-guide__title a { color: var(--pg-ink); }
.pg-guide__title a::after {
	content: "";
	display: inline-block;
	width: 0.7em;
	height: 0.7em;
	margin-left: 0.3em;
	background: currentColor;
	-webkit-mask: var(--pg-i-arrow) center / contain no-repeat;
	mask: var(--pg-i-arrow) center / contain no-repeat;
	transition: transform 220ms var(--pg-ease);
}
.pg-guide__excerpt p { margin: 0; max-width: 60ch; }
.pg-guide__thumb { flex: 0 0 200px; }
.pg-guide__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767.98px) {
	.pg-guide { flex-wrap: wrap !important; }
	.pg-guide__meta { flex-basis: 100%; padding-top: 0; }
	/* Phones: a small thumbnail beside the title instead of hiding it. */
	.pg-guide__body { flex: 1 1 0; }
	.pg-guide__thumb { flex: 0 0 96px; order: 3; }
}
@media (prefers-reduced-motion: no-preference) {
	.pg-guide:hover .pg-guide__title a::after { transform: translateX(6px); }
}
.pg-more-guides .pg-link-arrow { margin-top: 24px; }

/* A guide: page-header title sized for a sentence-long question, then a 720px reading column. */
.pg-page-header .wp-block-post-title.pg-guide-title {
	max-width: 22ch;
	font-size: clamp(34px, 4vw, 56px);
}
.pg-guide-byline { margin-top: 20px !important; margin-bottom: 0; }
/* The reading column lines up with the page-header title on the left, not centred. */
/* The body's own layout (constrained, left-justified, wide 1040px) handles its children. */
/* The featured image and question box start at the 1280px content box's left edge, like the title. */
.pg-article__media,
.pg-guide-cta { max-width: 720px; margin-left: max(0px, (100% - 1280px) / 2) !important; margin-right: auto !important; }
.pg-article__body { font-size: 18px; line-height: 1.65; }
.pg-article__body > * + * { margin-block-start: 1.1em; }
.pg-article__body > h2 { margin-block-start: 1.8em; }
.pg-article__body > h3 { margin-block-start: 1.5em; font-size: var(--wp--preset--font-size--large); line-height: 1.15; }
.pg-article__body ul,
.pg-article__body ol { padding-left: 1.2em; }
.pg-article__body li + li { margin-top: 0.4em; }
.pg-article__body blockquote {
	margin-inline: 0;
	padding-left: 24px;
	border-left: 2px solid var(--pg-ink);
	font-size: 20px;
}
.pg-article__body .wp-block-table table { border-collapse: collapse; width: 100%; font-size: 16px; }
.pg-article__body .wp-block-table th,
.pg-article__body .wp-block-table td { padding: 12px 16px 12px 0; border: 0; border-bottom: 1px solid var(--pg-rule); text-align: left; vertical-align: top; }
.pg-article__body .wp-block-table thead th {
	border-bottom: 1px solid var(--pg-ink);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pg-muted);
}
/* Images in a guide: full column width; "Wide" ones extend past the text to the right. */
.pg-article__body img { max-width: 100%; height: auto; }
.pg-article__body > figure,
.pg-article__body > .wp-block-image,
.pg-article__body > .wp-block-gallery { margin-block: 1.8em; }
.pg-article__body > .alignfull { max-width: 1040px; margin-left: 0 !important; }
.pg-article__body .wp-block-image figcaption,
.pg-article__body .wp-block-gallery figcaption { margin-top: 12px; }
.pg-article__body .wp-block-gallery.has-nested-images { gap: 12px; }
.pg-article__body figcaption {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	letter-spacing: 0.04em;
	color: var(--pg-muted);
}
.pg-article__media { margin-bottom: var(--wp--preset--spacing--50) !important; }
.pg-guide-cta {
	margin-top: var(--wp--preset--spacing--section) !important;
	padding: 32px 0;
	border-top: 1px solid var(--pg-ink);
	border-bottom: 1px solid var(--pg-ink);
}
.pg-guide-cta__title { margin: 0; font-size: var(--wp--preset--font-size--x-large); line-height: 1.05; }

/* Business-details helper blocks (mu-plugins/pg-nap). */
.pg-map img { display: block; width: 100%; height: auto; border: 1px solid var(--pg-rule); }

.skip-link:focus { z-index: 100000; }
.screen-reader-text:focus { clip-path: none; }

/* ---------- Motion: scroll reveals (assets/js/theme.js adds pg-js and is-in) ---------- */
@media (prefers-reduced-motion: no-preference) {
	html.pg-js .pg-reveal:not(.is-in) { opacity: 0; transform: translateY(16px); }
	html.pg-js .pg-reveal.is-in { transition: opacity 280ms var(--pg-ease), transform 280ms var(--pg-ease); transition-delay: var(--pg-delay, 0ms); }
	html.pg-js .pg-steps:not(.is-in) .pg-step::after { transform: scaleX(0); }
	html.pg-js .pg-steps.is-in .pg-step::after { transition: transform 280ms var(--pg-ease); }
	html.pg-js .pg-steps.is-in .pg-step:nth-child(2)::after { transition-delay: 120ms; }
	html.pg-js .pg-steps.is-in .pg-step:nth-child(3)::after { transition-delay: 240ms; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
