/*
Theme Name: JMAA Lumintra
Description: JMAA WordPress theme.
Version: 0.4.0
Requires PHP: 8.1
Text Domain: jmaa
*/

:root {
	--blue: #0d3b8c;
	--blue-dark: #0a2e6e;
	--blue-tint: #c9d6ee;
	--red: #c62828;
	--charcoal: #1e2329;
	--steel: #5b6573;
	--grey: #f2f4f6;
	--rule: #d9dee4;
	--rule-strong: #b9c2cc;
	--grid-line: #eaeff7;
	--white: #fff;
	--on-blue-muted: #e3eaf6;
	--on-dark-muted: #c5ccd5;
	--radius: 4px;
	--font-head: "Barlow", system-ui, sans-serif;
	--font-body: "Inter", system-ui, sans-serif;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(64px, 9vw, 120px);
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-enter: cubic-bezier(0.33, 1, 0.68, 1);
	--icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8.5 3.2 3.2L13 4.5'/%3E%3C/svg%3E");
	color-scheme: light;
	scrollbar-color: var(--steel) var(--grey);
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 104px;
}

body {
	margin: 0;
	background: var(--white);
	color: var(--charcoal);
	font: 400 1.0625rem/1.6 var(--font-body);
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: var(--blue);
	color: var(--white);
}

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

h1,
h2,
h3 {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

h2 {
	font-size: clamp(1.875rem, 1.3rem + 1.9vw, 2.75rem);
}

h3 {
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 0;
}

p {
	margin: 0;
	text-wrap: pretty;
}

a {
	color: var(--blue);
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}

:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 3px;
}

ul,
ol,
dl,
dd {
	margin: 0;
	padding: 0;
}

ul,
ol {
	list-style: none;
}

.wrap {
	width: 100%;
	max-width: calc(1400px + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 100;
	padding: 8px 14px;
	background: var(--blue);
	color: var(--white);
}

.skip-link:focus {
	top: 12px;
}

/* Editor only: the layout fallback the front end gets from core global
 * styles (the editor's own layout styles are off, see functions.php). */
.editor-styles-wrapper :where(.is-layout-flex) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em;
}

.editor-styles-wrapper :where(.is-layout-grid) {
	display: grid;
	gap: 0.5em;
}

.editor-styles-wrapper :where(.is-layout-flex, .is-layout-grid) > * {
	margin: 0;
}

/* Buttons */

.btn,
.wp-block-button > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: var(--radius);
	background: var(--blue);
	color: var(--white);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-align: inherit;
	text-decoration: none;
	transition: background-color 0.2s var(--ease), transform 0.15s var(--ease);
}

.btn:hover,
.wp-block-button > .wp-block-button__link:hover {
	background: var(--blue-dark);
}

.btn--sm,
.wp-block-button.is-sm > .wp-block-button__link {
	min-height: 44px;
	padding: 10px 20px;
	font-size: 0.9375rem;
}

.btn--light,
.wp-block-button.is-light > .wp-block-button__link {
	background: var(--white);
	color: var(--blue);
}

.btn--light:hover,
.wp-block-button.is-light > .wp-block-button__link:hover {
	background: var(--blue-tint);
}

.btn--light:focus-visible,
.wp-block-button.is-light > .wp-block-button__link:focus-visible {
	outline-color: var(--white);
}

.link-arrow {
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid currentcolor;
	transition: box-shadow 0.2s var(--ease);
}

/* The second pixel sits under the border, so the line thickens in place. */
.link-arrow:hover {
	box-shadow: 0 1px 0 currentcolor;
}

/* A link-arrow in its own paragraph beside a button sits like the bare link
 * did: its underline counts toward the row height. */
:is(.hero__actions, .services__cta, .svh__actions, .pjh__actions, .abh__actions) > p {
	display: flex;
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgb(255 255 255 / 0.96);
	border-bottom: 1px solid var(--rule);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(24px, 3vw, 48px);
	min-height: 88px;
}

.site-header__brand img {
	width: auto;
	height: 48px;
}

.site-nav {
	display: flex;
	gap: clamp(24px, 3vw, 44px);
	margin-left: auto;
	padding-right: clamp(24px, 3vw, 48px);
	border-right: 1px solid var(--rule);
}

.site-nav a {
	padding-block: 8px;
	color: var(--charcoal);
	font-weight: 500;
	font-size: 1rem;
}

/* Nav and footer links: the underline is always drawn, and fades in on hover
 * with the color, so the text never jumps. */
.site-nav a,
.site-footer__links a {
	text-decoration: underline 1px transparent;
	text-underline-offset: 0.2em;
	transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

.site-nav a:hover,
.site-footer__links a:hover {
	color: var(--blue);
	text-decoration-color: currentcolor;
}

/* Server-rendered jmaa/* blocks in the editor: the editor's wrapper and the
 * preview's wrapper step aside so the rendered block lays out as on the page. */
.jmaa-ssr,
.jmaa-ssr > div {
	display: contents;
}

/* Header and footer are block template parts (parts/*.html). Core repeats the
 * navigation block's class on its inner <ul>, so the second one is reset. */

.site-header .site-header__brand {
	display: flex;
	margin: 0;
}

.site-footer .site-footer__logo {
	margin: 0;
}

.site-footer__logo a {
	display: inline-block;
}

.site-header .site-header__brand img {
	width: auto;
	height: 48px;
}

.site-footer .site-footer__logo img {
	width: auto;
	height: 44px;
}

/* The editor's image block sets an inline height: auto on the logos. */
.editor-styles-wrapper .site-header__brand img {
	height: 48px !important;
}

.editor-styles-wrapper .site-footer__logo img {
	height: 44px !important;
}

.site-nav .site-nav {
	margin: 0;
	padding: 0;
	border: 0;
}

.site-nav .wp-block-navigation-item__content {
	padding-block: 8px;
}

.site-footer__links.wp-block-navigation,
.site-footer__links .wp-block-navigation__container {
	align-items: stretch;
	gap: 0;
}

.site-footer__links .wp-block-navigation-item__content {
	display: flex;
	flex: 1;
	align-items: center;
	min-height: 44px;
}

.site-nav .wp-block-navigation-item__content.wp-block-navigation-item__content:hover,
.site-footer__links .wp-block-navigation-item__content.wp-block-navigation-item__content:hover,
.site-nav .wp-block-navigation-item__content.wp-block-navigation-item__content[aria-current="page"] {
	color: var(--blue);
}

/* The links and the CTA share one group: inline on desktop, the mobile
 * menu sheet below 900px. */
.site-header__menu {
	display: flex;
	align-items: center;
	gap: clamp(24px, 3vw, 48px);
	margin-left: auto;
}

/* Mobile menu (assets/js/header.js). The toggle is a structural bay: three
 * floor beams at rest; open, the outer beams settle onto the frame, the
 * columns rise and an X-brace draws across it. A braced bay doubles as the
 * close mark. */
.site-header__toggle {
	display: none;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	margin: 0;
	padding: 0 10px 0 14px;
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--charcoal);
	font: 600 0.8125rem/1 var(--font-body);
	letter-spacing: 0.01em;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.site-header__toggle:hover,
.site-header.is-open .site-header__toggle {
	border-color: var(--blue);
	color: var(--blue);
}

.site-header__toggle-label {
	min-width: 3.25em;
	text-align: right;
}

.site-header__toggle svg {
	overflow: visible;
	fill: none;
	stroke: currentcolor;
	stroke-width: 1.75;
	stroke-linecap: square;
}

.site-header__toggle .b {
	transform-box: fill-box;
	transform-origin: center;
	transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
}

.site-header__toggle .c,
.site-header__toggle .d {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	transition: stroke-dashoffset 0.2s var(--ease);
}

.site-header__toggle .d {
	stroke-width: 1.25;
}

.site-header.is-open .b1 {
	transform: translateY(-2px);
}

.site-header.is-open .b2 {
	opacity: 0;
	transform: scaleX(0);
}

.site-header.is-open .b3 {
	transform: translateY(2px);
}

.site-header.is-open .c {
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 0.3s var(--ease) 0.1s;
}

.site-header.is-open .d {
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 0.35s var(--ease) 0.25s;
}

@media (max-width: 900px) {

	html:has(.site-header.is-open) {
		overflow: hidden;
	}

	.site-header.has-menu .site-header__toggle {
		display: inline-flex;
	}

	/* The sheet: grid paper under the header, unrolled top to bottom. */
	.site-header.has-menu .site-header__menu {
		position: fixed;
		inset: var(--menu-top, 89px) 0 0;
		z-index: 49;
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
		margin: 0;
		padding: 24px var(--gutter) max(32px, env(safe-area-inset-bottom));
		overflow-y: auto;
		overscroll-behavior: contain;
		background-color: var(--white);
		background-image:
			linear-gradient(var(--grid-line) 1px, transparent 1px),
			linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
		background-size: 24px 24px;
		background-position: var(--gutter) 0;
		visibility: hidden;
		clip-path: inset(0 0 100% 0);
		transition: clip-path 0.3s var(--ease), visibility 0s 0.3s;
	}

	.site-header.is-open .site-header__menu {
		visibility: visible;
		clip-path: inset(0);
		transition: clip-path 0.5s var(--ease);
	}

	/* The links: a ruled schedule. */
	.site-header.has-menu .site-nav {
		display: block;
		margin: 0;
		padding: 0;
		border: 0;
	}

	.site-header.has-menu .site-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		border-top: 2px solid var(--charcoal);
	}

	.site-header.has-menu .site-nav li,
	.site-header.has-menu .site-header__menu .wp-block-buttons {
		position: relative;
		opacity: 0;
		transform: translateY(8px);
		transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
	}

	.site-header.has-menu .site-nav li {
		border-bottom: 1px solid var(--rule);
	}

	.site-header.is-open .site-nav li,
	.site-header.is-open .site-header__menu .wp-block-buttons {
		opacity: 1;
		transform: none;
		transition: opacity 0.4s var(--ease-enter), transform 0.5s var(--ease);
		transition-delay: calc(0.12s + var(--n, 0) * 0.05s);
	}

	.site-header.has-menu .site-nav li:nth-child(2) {
		--n: 1;
	}

	.site-header.has-menu .site-nav li:nth-child(3) {
		--n: 2;
	}

	.site-header.has-menu .site-header__menu .wp-block-buttons {
		--n: 3;
	}

	.site-header.has-menu .site-nav .wp-block-navigation-item__content {
		display: flex;
		flex: 1;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		min-height: 72px;
		padding-block: 12px;
		color: var(--charcoal);
		font: 700 clamp(1.875rem, 1.4rem + 2.4vw, 2.5rem)/1 var(--font-head);
		letter-spacing: -0.015em;
		text-decoration: none;
	}

	.site-header.has-menu .site-nav .wp-block-navigation-item__content.wp-block-navigation-item__content[aria-current="page"] {
		color: var(--blue);
	}

	.site-header.has-menu .site-nav .wp-block-navigation-item__content::after {
		content: "";
		flex: none;
		width: 22px;
		height: 22px;
		background: var(--steel);
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9h11M10 5l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
		transition: background-color 0.2s var(--ease), transform 0.25s var(--ease);
	}

	.site-header.has-menu .site-nav .wp-block-navigation-item__content:hover::after,
	.site-header.has-menu .site-nav .wp-block-navigation-item__content[aria-current="page"]::after {
		background: var(--blue);
		transform: translateX(3px);
	}

	/* The current page carries the red marker along the top of its row. */
	.site-header.has-menu .site-nav li:has([aria-current="page"])::before {
		content: "";
		position: absolute;
		top: -2px;
		left: 0;
		width: 56px;
		height: 2px;
		background: var(--red);
	}

	.site-header.has-menu .site-header__menu .wp-block-buttons,
	.site-header.has-menu .site-header__menu .wp-block-button {
		width: 100%;
	}

	.site-header.has-menu .site-header__menu .wp-block-button__link.wp-block-button__link {
		width: 100%;
		min-height: 56px;
		justify-content: center;
		padding-inline: 22px;
		font-size: 1.0625rem;
	}
}

/* Hero */

.hero {
	padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px);
}

.hero__grid {
	display: grid;
	grid-template-columns: 11fr 13fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.hero__pain {
	max-width: 30ch;
	padding-top: 14px;
	border-top: 2px solid var(--red);
	color: var(--steel);
	font-size: 1.0625rem;
	line-height: 1.45;
}

.hero h1 {
	margin-top: 20px;
	font-size: clamp(2.375rem, 1.5rem + 2.6vw, 3.75rem);
	line-height: 1;
	letter-spacing: -0.02em;
}

.hero__sub {
	margin-top: 24px;
	max-width: 44ch;
	font-size: 1.125rem;
}

.hero__checks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-top: 24px;
}

.hero__checks li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--steel);
	font-weight: 500;
	font-size: 0.9375rem;
	white-space: nowrap;
}

.hero__checks li::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: var(--blue);
	mask: var(--icon-check) center / contain no-repeat;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	margin-top: 32px;
}

.btn--lg,
.wp-block-button.is-lg > .wp-block-button__link {
	gap: 10px;
	min-height: 56px;
	padding: 16px 26px;
	font-size: 1.0625rem;
	box-shadow: 0 1px 2px rgb(13 59 140 / 0.24), 0 10px 24px -10px rgb(13 59 140 / 0.55);
}

.btn--lg.btn--light,
.wp-block-button.is-lg.is-light > .wp-block-button__link {
	box-shadow: 0 10px 24px -10px rgb(30 35 41 / 0.45);
}

/* Block buttons draw the same arrow (jmaa_arrow()) as a mask, since button
 * text cannot hold an SVG. */
.wp-block-button.has-arrow > .wp-block-button__link {
	gap: 10px;
}

.wp-block-button.has-arrow > .wp-block-button__link::after {
	content: "";
	width: 18px;
	height: 18px;
	background: currentcolor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9h11M10 5l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.icon-arrow,
.wp-block-button.has-arrow > .wp-block-button__link::after {
	flex: none;
	transition: transform 0.25s var(--ease);
}

.btn:hover .icon-arrow,
.wp-block-button > .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

.btn:active,
.wp-block-button > .wp-block-button__link:active {
	transform: translateY(1px);
}

/* License strip: deliberately quiet, it supports the CTA rather than
 * competing. */

.licenses {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid var(--rule);
}

.licenses p {
	color: var(--steel);
	font-size: 0.8125rem;
}

.licenses ul {
	display: flex;
	gap: 20px;
}

.licenses a {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--steel);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
}

.licenses img {
	width: 32px;
	height: 32px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.85;
	transition: filter 0.25s var(--ease), opacity 0.25s var(--ease);
}

.licenses a:hover {
	color: var(--charcoal);
}

.licenses a:hover img {
	filter: none;
	opacity: 1;
}

/* Building section drawing */

.bsec {
	margin: 0;
}

.bsec__plate {
	--pad: clamp(12px, 2.5vw, 28px);
	color: var(--blue);
	background-color: var(--white);
	background-image:
		linear-gradient(var(--grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 24px 24px;
	background-position: -1px -1px;
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius);
	box-shadow: inset 0 0 0 5px var(--white), inset 0 0 0 6px var(--rule);
}

.bsec__canvas {
	position: relative;
	padding: var(--pad) var(--pad) calc(var(--pad) * 0.6);
}

.bsec__svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: hidden;
}

.bsec__svg * {
	vector-effect: non-scaling-stroke;
}

.grid {
	color: var(--steel);
	stroke-width: 0.75;
	opacity: 0.55;
}

.grid text {
	fill: currentcolor;
	stroke: none;
	font: 600 13px var(--font-body);
	text-anchor: middle;
}

.layer {
	stroke-width: 1.5;
	transition: opacity 0.4s var(--ease);
}

.layer--civil {
	stroke-width: 2.25;
}

.layer--mechanical {
	stroke-width: 1.75;
}

.layer--electrical {
	stroke-width: 1;
}

.layer--electronics {
	stroke-width: 1.25;
	stroke-dasharray: 3 2;
}

/* One-time draw-in: footings, then the frame rising, then the services. */

.hero .grid {
	animation: draw-fade 0.8s var(--ease) backwards;
}

.hero .draw--found,
.hero .layer--mechanical,
.hero .layer--electrical,
.hero .layer--electronics {
	animation: draw-across 0.9s cubic-bezier(0.65, 0, 0.35, 1) backwards;
}

.hero .draw--found {
	animation-delay: 0.15s;
}

.hero .draw--struct {
	animation: draw-up 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.75s backwards;
}

.hero .layer--mechanical {
	animation-delay: 1.65s;
}

.hero .layer--electrical {
	animation-delay: 1.95s;
}

.hero .layer--electronics {
	animation-delay: 2.25s;
}

.hero .bsec__tags {
	animation: draw-fade 0.5s var(--ease) 2.6s backwards;
}

@keyframes draw-across {

	from {
		clip-path: inset(-5% 105% -5% -5%);
	}

	to {
		clip-path: inset(-5%);
	}
}

@keyframes draw-up {

	from {
		clip-path: inset(105% -5% -5% -5%);
	}

	to {
		clip-path: inset(-5%);
	}
}

@keyframes draw-fade {

	from {
		opacity: 0;
	}
}

/* A pressed trade wins; hover/focus previews only while nothing is pressed. */

.isolate:not(:has([aria-pressed="true"])):has([data-trade="civil"]:is(:hover, :focus-visible, :target)) .layer:not(.layer--civil),
.isolate:not(:has([aria-pressed="true"])):has([data-trade="mechanical"]:is(:hover, :focus-visible, :target)) .layer:not(.layer--mechanical),
.isolate:not(:has([aria-pressed="true"])):has([data-trade="electrical"]:is(:hover, :focus-visible, :target)) .layer:not(.layer--electrical),
.isolate:not(:has([aria-pressed="true"])):has([data-trade="electronics"]:is(:hover, :focus-visible, :target)) .layer:not(.layer--electronics),
.isolate:has([data-trade="civil"][aria-pressed="true"]) .layer:not(.layer--civil),
.isolate:has([data-trade="mechanical"][aria-pressed="true"]) .layer:not(.layer--mechanical),
.isolate:has([data-trade="electrical"][aria-pressed="true"]) .layer:not(.layer--electrical),
.isolate:has([data-trade="electronics"][aria-pressed="true"]) .layer:not(.layer--electronics) {
	opacity: 0.1;
}

/* Hotspots: the dot sits on the point; the chip reads as a control. */

.bsec__tags {
	position: absolute;
	inset: var(--pad) var(--pad) calc(var(--pad) * 0.6);
	pointer-events: none;
}

.bsec__tag {
	--dot: 12px;
	position: absolute;
	left: var(--x);
	top: var(--y);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	padding: 6px 12px 6px 9px;
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius);
	background: var(--white);
	box-shadow: 0 1px 2px rgb(30 35 41 / 0.08);
	transform: translate(calc(-9px - var(--dot) / 2 - 1px), -50%);
	color: var(--charcoal);
	font: 600 0.8125rem/1 var(--font-body);
	letter-spacing: 0.01em;
	white-space: nowrap;
	cursor: pointer;
	pointer-events: auto;
	transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.bsec__tag--electronics {
	flex-direction: row-reverse;
	padding: 6px 9px 6px 12px;
	transform: translate(calc(-100% + 9px + var(--dot) / 2 + 1px), -50%);
}

.bsec__dot {
	position: relative;
	flex: none;
	width: var(--dot);
	height: var(--dot);
	border: 2px solid var(--blue);
	border-radius: 50%;
	background: var(--white);
	transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.bsec__dot::after {
	content: "";
	position: absolute;
	inset: 2px;
	border-radius: 50%;
	background: var(--blue);
}

.bsec__tag:hover {
	border-color: var(--blue);
	color: var(--blue);
	box-shadow: 0 4px 12px -4px rgb(13 59 140 / 0.35);
}

.bsec__tag:focus-visible {
	outline-offset: 2px;
}

.bsec__tag[aria-pressed="true"] {
	border-color: var(--blue);
	background: var(--blue);
	color: var(--white);
}

.bsec__tag[aria-pressed="true"] .bsec__dot {
	border-color: var(--white);
	background: var(--blue);
}

.bsec__tag[aria-pressed="true"] .bsec__dot::after {
	background: var(--white);
}

/* Title block: callout on the left, drawing data on the right. */

.bsec__block {
	display: grid;
	grid-template-columns: 1fr auto;
	margin: 0 6px 6px;
	border-top: 1px solid var(--rule);
	background: var(--white);
	color: var(--charcoal);
	font-size: 0.875rem;
	line-height: 1.45;
}

.bsec__callout {
	display: grid;
	padding: 12px 16px 14px;
}

.bsec__callout > p {
	grid-area: 1 / 1;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 10px;
	max-width: 56ch;
}

/* Keep every panel in the layout so selecting a trade never shifts the page. */
.bsec__callout > p[hidden] {
	display: flex;
	visibility: hidden;
}

.bsec__callout > p > span:not(.bsec__k) {
	flex-basis: 100%;
}

.bsec__callout .link-arrow {
	margin-top: 4px;
	font-size: 0.875rem;
}

.bsec__k,
.bsec__meta dt {
	color: var(--steel);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bsec__callout > p:not([data-scope=""]) .bsec__k {
	color: var(--blue);
}

.bsec__meta {
	display: flex;
	margin: 0;
}

.bsec__meta div {
	padding: 12px 16px;
	border-left: 1px solid var(--rule);
}

.bsec__meta dd {
	font-weight: 500;
	white-space: nowrap;
}

/* Client logos */

.proof {
	padding-block: clamp(56px, 7vw, 96px);
	border-top: 1px solid var(--rule);
}

.proof__head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 12px 48px;
}

.proof h2 {
	max-width: 22ch;
}

.proof__head p {
	max-width: 40ch;
	color: var(--steel);
}

.proof__logos {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1px;
	margin-top: 40px;
	border: 1px solid var(--rule);
	background: var(--rule);
}

.proof__logos li {
	display: grid;
	place-items: center;
	min-height: 128px;
	padding: 24px;
	background: var(--white);
}

.proof__logos img {
	filter: grayscale(1) brightness(var(--tone, 1));
	opacity: 0.8;
	transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}

.proof__logos li:hover img {
	filter: none;
	opacity: 1;
}

/* Warranty band */

.warranty {
	background: var(--blue);
	color: var(--white);
	padding-block: clamp(56px, 7vw, 96px);
}

.warranty__grid {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 24px clamp(32px, 5vw, 72px);
	align-items: center;
}

.warranty h2 {
	max-width: 16ch;
	font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
}

.warranty__body p {
	max-width: 52ch;
	font-size: 1.1875rem;
	line-height: 1.5;
	color: var(--on-blue-muted);
}

.warranty__body .btn,
.warranty__body .wp-block-buttons {
	margin-top: 28px;
}

/* Services: a text list with one shared photo stage; the selected row shows
 * its photo. */

.services {
	padding-block: calc(var(--section) * 0.75) var(--section);
}

.services__head,
.services__body {
	--g: clamp(32px, 5vw, 72px);
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	column-gap: var(--g);
}

.services__head {
	row-gap: 16px;
	align-items: end;
}

.services__head p {
	max-width: 40ch;
	color: var(--steel);
}

.services__body {
	position: relative;
	margin-top: clamp(40px, 5vw, 64px);
}

.services__list {
	border-top: 1px solid var(--rule);
}

.service {
	border-bottom: 1px solid var(--rule);
	scroll-margin-top: 120px;
}

.service__text {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
	gap: 8px clamp(24px, 3vw, 48px);
	padding-block: 28px;
}

/* Red hairline marker drawn along the row's top rule. */
.service__text::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: min(15rem, 100%);
	height: 2px;
	background: var(--red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s var(--ease);
}

.service.is-active .service__text::before {
	transform: none;
}

.service__pick {
	padding: 0;
	border: 0;
	background: none;
	color: var(--charcoal);
	font: inherit;
	letter-spacing: inherit;
	text-align: left;
	cursor: pointer;
	transition: color 0.2s var(--ease);
}

/* The whole row is the hit area. */
.service__pick::after {
	content: "";
	position: absolute;
	inset: 0;
}

.service__pick:focus-visible {
	outline: none;
}

.service__text:has(:focus-visible) {
	outline: 2px solid var(--blue);
	outline-offset: -2px;
}

.service.is-active .service__text h3,
.service.is-active .service__pick,
.service__pick:hover {
	color: var(--blue);
}

.service__text p {
	max-width: 52ch;
	color: var(--steel);
}

.service__media,
.service__shot {
	margin: 0;
}

/* The photo is a core/image block: its figure is the shot. */
.service__shot.wp-block-image img,
.service__shot.wp-block-image > div {
	width: 100%;
	height: 100%;
}

.service__shot {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--radius);
	background-color: var(--blue-dark);
	isolation: isolate;
}

/* One grade for every photo: grayscale, lifted contrast, navy duotone. */
.service__shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--focus, 50% 50%);
	transform: scale(1.1);
	transform-origin: var(--focus, 50% 50%);
	filter: grayscale(1) contrast(1.25) brightness(1.08);
	transition: transform 1.2s var(--ease);
}

.service__shot:not(.service__shot--drawing)::before,
.service__shot:not(.service__shot--drawing)::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.service__shot:not(.service__shot--drawing)::before {
	background: var(--blue);
	mix-blend-mode: lighten;
}

.service__shot:not(.service__shot--drawing)::after {
	background: var(--blue-tint);
	mix-blend-mode: multiply;
}

/* No photo yet: the matching layer of the hero drawing, isolated. */
.service__shot--drawing {
	display: grid;
	place-items: center;
	padding: var(--pad);
	background-color: var(--white);
}

.service__shot--drawing .layer {
	opacity: 0.1;
}

.service__shot--drawing[data-layer="civil"] .layer--civil,
.service__shot--drawing[data-layer="mechanical"] .layer--mechanical,
.service__shot--drawing[data-layer="electrical"] .layer--electrical,
.service__shot--drawing[data-layer="electronics"] .layer--electronics {
	opacity: 1;
	stroke-width: 1.75;
}

.service__media figcaption {
	margin-top: 14px;
	color: var(--steel);
	font-size: 0.875rem;
	line-height: 1.45;
}

.service__media figcaption p {
	text-wrap: wrap;
}

.service__media figcaption strong {
	color: var(--charcoal);
	font-weight: 600;
}

.services__cta {
	grid-column: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	margin-top: 40px;
}

/* Desktop: every row's figure sits on one stage in the right column. */
@media (min-width: 901px) {

	.services__body::before {
		content: "";
		grid-column: 2;
		grid-row: 1 / span 2;
		aspect-ratio: 4 / 5;
		margin-bottom: 64px;
	}

	.services__list .service__media {
		position: absolute;
		top: 0;
		right: 0;
		width: calc((100% - var(--g)) * 5 / 12);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.45s var(--ease);
	}

	.services__list .service.is-active .service__media {
		opacity: 1;
		pointer-events: auto;
	}

	.service.is-active .service__shot img {
		transform: scale(1.06);
	}

	/* Editor: blocks are position: relative there; keep the stage on
	 * .services__body and show the row being edited. */
	.editor-styles-wrapper .services__list,
	.editor-styles-wrapper .services__list .service {
		position: static;
	}

	.editor-styles-wrapper .services__list .service:is(.is-selected, .has-child-selected) .service__media {
		opacity: 1;
		pointer-events: auto;
	}

	.editor-styles-wrapper .services__list:has(.is-selected, .has-child-selected) .service.is-active:not(.is-selected, .has-child-selected) .service__media {
		opacity: 0;
	}
}

/* Placeholder marker: [bracketed] content still to confirm (see
 * inc/content.php). */

.ph {
	text-decoration: underline dashed var(--red) 1px;
	text-underline-offset: 0.3em;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Process: one connected sequence; step 1 is the action itself. */

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

.process__steps {
	--pgap: clamp(12px, 1.6vw, 24px);
	display: grid;
	grid-template-columns: 1.35fr repeat(3, 1fr);
	gap: var(--pgap);
	align-items: start;
	margin-top: 56px;
}

.process__step {
	position: relative;
	padding: 28px 24px 32px;
	border: 1px solid transparent;
	border-radius: var(--radius);
}

/* Connector: from this node to the next one (node: 40px at 24px inset). */
.process__step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 47px;
	left: 72px;
	right: calc(8px - var(--pgap) - 25px);
	border-top: 1px solid var(--rule-strong);
}

.process__step--start {
	background: var(--white);
	border-color: var(--rule);
	box-shadow: 0 1px 2px rgb(30 35 41 / 0.06), 0 24px 48px -28px rgb(13 59 140 / 0.4);
}

.process__step--start:not(:last-child)::after {
	border-top: 2px solid var(--blue);
}

.process__title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-top: 28px;
}

.process__node {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	border: 1.5px solid var(--blue);
	border-radius: 50%;
	background: var(--grey);
	color: var(--blue);
	font: 700 1.125rem/1 var(--font-head);
	font-variant-numeric: tabular-nums;
}

.process__step--start .process__node {
	background: var(--blue);
	color: var(--white);
}

.process__flag {
	padding: 5px 10px;
	border-radius: var(--radius);
	background: #e8eef9;
	color: var(--blue);
	font-weight: 600;
	font-size: 0.8125rem;
	line-height: 1.2;
}

.process__step--start h3 {
	font-size: 1.5rem;
}

.process__time {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	color: var(--blue);
	font-weight: 500;
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
}

.process__time svg {
	flex: none;
}

.process__desc {
	margin-top: 14px;
	max-width: 36ch;
	color: var(--steel);
}

.process__cta {
	width: 100%;
	justify-content: center;
	margin-top: 28px;
}

.process__note {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--rule-strong);
	font-weight: 500;
}

.process__note svg {
	flex: none;
	color: var(--blue);
}

/* FAQ accordion (template-parts/faq.php) */

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

.faq__grid {
	display: grid;
	grid-template-columns: 4fr 8fr;
	gap: 40px clamp(32px, 5vw, 72px);
	align-items: start;
}

/* Doubled in the editor, where every block is position: relative. */
.faq__title,
.editor-styles-wrapper .faq__title {
	position: sticky;
	top: 128px;
	max-width: 11ch;
}

.faq__list {
	border-top: 1px solid var(--rule);
}

.faq__item {
	border-bottom: 1px solid var(--rule);
}

/* Questions are core/details blocks: a native accordion, so closed answers
 * still match find-in-page. */
.faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 44px;
	padding: 22px 0;
	font: 600 1.3125rem/1.3 var(--font-head);
	text-wrap: balance;
	list-style: none;
	cursor: pointer;
	transition: color 0.2s var(--ease);
}

.faq__item:not([open]) {
	padding-bottom: 28px;
}

.faq__item summary::-webkit-details-marker {
	display: none;
}

.faq__item summary:hover {
	color: var(--blue);
}

/* The plus/minus icon (box 40px, 13px cross). */
.faq__item summary::after {
	content: "";
	flex: none;
	width: 40px;
	height: 40px;
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius);
	color: var(--blue);
	background:
		linear-gradient(currentcolor, currentcolor) center / 13px 1.75px no-repeat,
		linear-gradient(currentcolor, currentcolor) center / 1.75px 13px no-repeat;
	transition: background-color 0.25s var(--ease), background-size 0.3s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.faq__item[open] > summary::after {
	border-color: var(--blue);
	background-color: var(--blue);
	background-size: 13px 1.75px, 1.75px 0;
	color: var(--white);
}

.faq__item > p {
	max-width: calc(62ch + 64px);
	padding: 0 64px 28px 0;
	color: var(--steel);
}

.faq__item[open] > p {
	animation: faq-open 0.35s var(--ease);
}

@keyframes faq-open {

	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}

.faq__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 32px;
	margin-top: 48px;
	padding: clamp(24px, 3vw, 36px);
	border-radius: var(--radius);
	background: var(--grey);
}

.faq__cta h3 {
	font-size: 1.5rem;
}

.faq__cta h3 + p {
	margin-top: 6px;
	color: var(--steel);
}

.faq__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 28px;
}

.faq__actions > p {
	display: flex;
}

.faq__call {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-weight: 600;
	text-decoration: none;
}

.faq__call::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: currentcolor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M4.2 2.5h2.6l1.3 3.3-1.7 1.1a8 8 0 0 0 3.5 3.5l1.1-1.7 3.3 1.3v2.6a1.5 1.5 0 0 1-1.6 1.5A11.5 11.5 0 0 1 2.7 4.1a1.5 1.5 0 0 1 1.5-1.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.faq__call:hover {
	text-decoration: underline;
}

/* Closing CTA (template-parts/closing.php): the page's final,
 * largest moment. */

.closing {
	background-color: var(--charcoal);
	background-image:
		linear-gradient(rgb(255 255 255 / 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgb(255 255 255 / 0.03) 1px, transparent 1px);
	background-size: 48px 48px;
	background-position: center top;
	color: var(--white);
	padding-block: calc(var(--section) * 1.15);
}

.closing__grid {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: 40px clamp(32px, 5vw, 88px);
	align-items: end;
}

.closing h2 {
	max-width: 15ch;
	font-size: clamp(2.5rem, 1.2rem + 4.2vw, 5.25rem);
	line-height: 0.98;
	letter-spacing: -0.025em;
}

.closing h2::before {
	content: "";
	display: block;
	width: 56px;
	height: 2px;
	margin-bottom: 32px;
	background: var(--red);
}

.closing__action {
	padding-left: clamp(24px, 3vw, 48px);
	border-left: 1px solid rgb(255 255 255 / 0.16);
}

.closing__action > p:first-child {
	max-width: 40ch;
	margin-bottom: 32px;
	color: var(--on-dark-muted);
	font-size: 1.1875rem;
	line-height: 1.5;
}

.closing__direct {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 20px;
	margin-top: 20px;
	color: var(--on-dark-muted);
	font-size: 0.9375rem;
}

.closing__direct a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--white);
	font-weight: 500;
}

.closing :focus-visible {
	outline-color: var(--white);
}

/* Footer */

.site-footer {
	padding-top: clamp(56px, 6vw, 88px);
	font-size: 0.9375rem;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 5fr 3fr 4fr;
	gap: 40px clamp(32px, 5vw, 72px);
	padding-bottom: 56px;
}

.site-footer__logo {
	display: inline-block;
}

.site-footer__logo img {
	width: auto;
	height: 44px;
}

.site-footer__brand > p {
	max-width: 34ch;
	margin-top: 20px;
	color: var(--steel);
}

.site-footer .licenses {
	margin-top: 28px;
}

.site-footer__h {
	margin-bottom: 8px;
	color: var(--steel);
	font: 600 0.8125rem/1.2 var(--font-body);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-footer__links {
	display: flex;
	flex-direction: column;
	font-style: normal;
}

.site-footer__links a {
	display: flex;
	align-items: center;
	min-height: 44px;
	color: var(--charcoal);
	font-weight: 500;
}

.site-footer__links > span,
.site-footer__text {
	padding-block: 10px;
	color: var(--steel);
	line-height: 1.5;
}

/* Footer contact icons: drawn as masks so they follow the text colour. */
.site-footer__links .has-icon a::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	margin-right: 12px;
	background: var(--steel);
	mask: var(--icon) center / contain no-repeat;
}
.site-footer__links .icon-phone {
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
}

.site-footer__links .icon-mail {
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E");
}

.site-footer__links .icon-messenger {
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.9 20A9 9 0 1 0 4 16.1L2 22z'/%3E%3C/svg%3E");
}

.site-footer__links .icon-facebook {
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'/%3E%3C/svg%3E");
}

.site-footer__cta {
	gap: 10px;
	margin-top: 20px;
}

.site-footer__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: 24px;
	border-top: 1px solid var(--rule);
	color: var(--steel);
	font-size: 0.875rem;
}

/* Request a Site Assessment (page-request-a-site-assessment.php) */

.rsa {
	padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px);
}

.rsa__grid {
	display: grid;
	grid-template-columns: 5fr 7fr;
	grid-template-rows: auto 1fr;
	column-gap: clamp(32px, 5vw, 80px);
	align-items: start;
}

.rsa__head,
.rsa__aside {
	grid-column: 1;
}

.rsa__plate {
	grid-column: 2;
	grid-row: 1 / span 2;
}

.rsa h1 {
	font-size: clamp(2.375rem, 1.5rem + 2.6vw, 3.75rem);
	line-height: 1;
	letter-spacing: -0.02em;
}

.rsa__sub {
	margin-top: 24px;
	max-width: 44ch;
	font-size: 1.125rem;
}

.rsa__aside {
	margin-top: 48px;
}

.rsa__h {
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 0;
}

/* Steps: a vertical run of the four-step process; this form is step 1. */

.rsa__steps {
	margin-top: 20px;
}

.rsa__step {
	position: relative;
	display: grid;
	grid-template-columns: 32px 1fr;
	column-gap: 16px;
	padding-bottom: 20px;
}

.rsa__step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 38px;
	bottom: 6px;
	left: 15.5px;
	border-left: 1px solid var(--rule-strong);
}

.rsa__step.is-current::after {
	left: 15px;
	border-left: 2px solid var(--blue);
}

.rsa__node {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 1.5px solid var(--blue);
	border-radius: 50%;
	background: var(--white);
	color: var(--blue);
	font: 700 1rem/1 var(--font-head);
	font-variant-numeric: tabular-nums;
}

.rsa__step.is-current .rsa__node {
	background: var(--blue);
	color: var(--white);
}

.rsa__step-name {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	min-height: 32px;
	font: 600 1.125rem/1.1 var(--font-head);
}

.rsa__step-time {
	color: var(--steel);
	font-size: 0.875rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.rsa__note {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-top: 16px;
	border-top: 1px solid var(--rule);
	font-weight: 500;
	font-size: 0.9375rem;
}

.rsa__note svg {
	flex: none;
	color: var(--blue);
}

.rsa__direct {
	margin-top: 44px;
}

.rsa__direct ul {
	margin-top: 8px;
}

.rsa__direct a {
	display: inline-block;
	padding-block: 6px;
	font-weight: 500;
}

.rsa__direct > p {
	margin-top: 6px;
	color: var(--steel);
	font-size: 0.9375rem;
}

/* The form plate: a drawing sheet with a title block; the form is the
 * drawing. */

.rsa__plate {
	position: relative;
	background-color: var(--white);
	background-image:
		linear-gradient(var(--grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 24px 24px;
	background-position: -1px -1px;
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius);
	box-shadow:
		inset 0 0 0 5px var(--white),
		inset 0 0 0 6px var(--rule),
		0 1px 2px rgb(30 35 41 / 0.06),
		0 24px 48px -28px rgb(13 59 140 / 0.4);
}

.rsa__block {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: stretch;
	margin: 6px 6px 0;
	border-bottom: 1px solid var(--rule);
	background: var(--white);
}

/* Marker: the one red hairline on the page points at the sheet to fill in. */
.rsa__block::before {
	content: "";
	position: absolute;
	top: -6px;
	left: -6px;
	width: 64px;
	border-top: 2px solid var(--red);
}

.rsa__title {
	align-self: center;
	padding: 18px 24px;
	font-size: 1.5rem;
	line-height: 1.1;
}

.rsa__meta {
	display: flex;
}

.rsa__meta div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	padding: 12px 20px;
	border-left: 1px solid var(--rule);
}

.rsa__meta dt {
	color: var(--steel);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.rsa__meta dd {
	font-size: 0.9375rem;
	font-weight: 500;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.rsa__body {
	padding: clamp(20px, 3vw, 40px);
}

.rsa__fallback {
	padding: 20px;
	background: var(--white);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
}

/* Ninja Forms: scoped under .rsa__form so it outranks the plugin's structure
 * sheet. */

.rsa__form .nf-form-title {
	display: none;
}

.rsa__form .nf-form-fields-required {
	margin-bottom: 20px;
	color: var(--steel);
	font-size: 0.875rem;
}

.rsa__form .ninja-forms-req-symbol {
	color: var(--blue);
}

.rsa__form nf-fields-wrap {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 20px;
}

.rsa__form nf-field {
	grid-column: 1 / -1;
}

.rsa__form nf-field:has(.textbox-container, .email-container, .phone-container) {
	grid-column: auto;
}

.rsa__form .nf-field-container {
	margin-bottom: 22px;
}

.rsa__form .label-above .nf-field-label {
	margin-bottom: 8px;
}

.rsa__form .nf-field-label label {
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.3;
}

.rsa__form .ninja-forms-field:not([type="submit"]) {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius);
	background-color: var(--white);
	color: var(--charcoal);
	font: 400 1rem/1.4 var(--font-body);
	caret-color: var(--blue);
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.rsa__form .ninja-forms-field:not([type="submit"]):hover {
	border-color: var(--steel);
}

.rsa__form .ninja-forms-field:not([type="submit"]):focus {
	border-color: var(--blue);
	outline: 0;
	box-shadow: 0 0 0 1px var(--blue), 0 0 0 4px var(--blue-tint);
}

.rsa__form select.ninja-forms-field {
	padding-right: 44px;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230d3b8c' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}

.rsa__form textarea.ninja-forms-field {
	min-height: 168px;
	resize: vertical;
}

/* Errors: the field gets the red marker; the message stays in readable
 * charcoal. */

.rsa__form .nf-error .ninja-forms-field:not([type="submit"]) {
	border-color: var(--red);
	box-shadow: inset 0 -2px 0 var(--red);
}

.rsa__form .nf-error-msg {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-top: 8px;
	color: var(--charcoal);
	font-size: 0.875rem;
	font-weight: 500;
}

.rsa__form .nf-error-msg::before {
	content: "";
	flex: none;
	width: 12px;
	transform: translateY(-0.3em);
	border-top: 2px solid var(--red);
}

.rsa__form .submit-container {
	margin: 6px 0 0;
}

.rsa__form .nf-after-form-content .nf-error-msg {
	margin-top: 16px;
}

.rsa__form input[type="submit"] {
	min-height: 56px;
	padding: 16px 32px;
	border: 0;
	border-radius: var(--radius);
	background: var(--blue);
	color: var(--white);
	font: 600 1.0625rem/1.2 var(--font-body);
	box-shadow: 0 1px 2px rgb(13 59 140 / 0.24), 0 10px 24px -10px rgb(13 59 140 / 0.55);
	cursor: pointer;
	transition: background-color 0.2s var(--ease), transform 0.15s var(--ease);
}

.rsa__form input[type="submit"]:hover {
	background: var(--blue-dark);
}

.rsa__form input[type="submit"]:active {
	transform: translateY(1px);
}

.rsa__form input[type="submit"]:disabled {
	background: var(--steel);
	box-shadow: none;
	cursor: progress;
}

/* Thank-you state (assets/js/assessment.js): heading, the form's success
 * message, next steps. */

.rsa__sent-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
}

.rsa__sent-head[hidden],
.rsa__sent-next[hidden] {
	display: none;
}

.rsa__sent-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--blue);
	color: var(--white);
}

.rsa__sent-head h2 {
	font-size: clamp(1.875rem, 1.3rem + 1.9vw, 2.75rem);
}

.rsa__form .nf-response-msg:focus {
	outline: 0;
}

.rsa__form .nf-response-msg {
	max-width: 52ch;
	font-size: 1.125rem;
}

.rsa__form .nf-response-msg p + p {
	margin-top: 12px;
}

.rsa__sent-next {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid var(--rule-strong);
}

.rsa__steps--next {
	margin-top: 0;
}

.rsa__steps--next .rsa__step:last-child {
	padding-bottom: 0;
}

.rsa__sent-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--rule);
}

.rsa__plate.is-sent .rsa__body {
	animation: faq-open 0.45s var(--ease);
}

@media (max-width: 900px) {

	.rsa__grid {
		grid-template-columns: 1fr;
		grid-template-rows: none;
	}

	.rsa__head,
	.rsa__aside,
	.rsa__plate {
		grid-column: 1;
		grid-row: auto;
	}

	.rsa__plate {
		margin-top: 32px;
	}

	.rsa__aside {
		max-width: 640px;
	}
}

@media (max-width: 640px) {

	.rsa__block {
		grid-template-columns: 1fr;
	}

	.rsa__title {
		padding: 16px;
	}

	.rsa__meta {
		border-top: 1px solid var(--rule);
	}

	.rsa__meta div {
		flex: 1;
		padding: 10px 16px;
	}

	.rsa__meta div:first-child {
		border-left: 0;
	}

	.rsa__body {
		padding: 20px 12px;
	}

	.rsa__form nf-field:has(.textbox-container, .email-container, .phone-container) {
		grid-column: 1 / -1;
	}

	.rsa__form .field-wrap input[type="submit"] {
		width: 100%;
	}
}

/* Responsive */

/* Services page (page-services.php): a ruled index, then one sheet per
 * category. */

.svh {
	padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 88px);
}

.svh__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 48px clamp(32px, 5vw, 80px);
	align-items: end;
}

.svh h1 {
	max-width: 17ch;
	font-size: clamp(2.375rem, 1.5rem + 2.6vw, 3.75rem);
	line-height: 1;
	letter-spacing: -0.02em;
}

.svh__sub {
	margin-top: 24px;
	max-width: 48ch;
	font-size: 1.125rem;
	color: var(--steel);
}

.svh__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	margin-top: 36px;
}

.svh__index ul {
	border-top: 2px solid var(--charcoal);
}

.svh__index a {
	display: grid;
	grid-template-columns: 1fr auto 16px;
	align-items: center;
	gap: 16px;
	min-height: 52px;
	padding-block: 10px;
	border-bottom: 1px solid var(--rule);
	color: var(--charcoal);
	text-decoration: none;
	transition: color 0.2s var(--ease);
}

/* Each index link: <strong> name, <em> count, and a down arrow. */
.svh__index strong {
	font: 600 1.0625rem/1.2 var(--font-head);
}

.svh__index em {
	color: var(--steel);
	font-size: 0.875rem;
	font-style: normal;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.svh__index a::after {
	content: "";
	width: 16px;
	height: 16px;
	background: var(--blue);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3v10M4 9l4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: 0;
	transform: translateY(-3px);
	transition: opacity 0.2s var(--ease), transform 0.3s var(--ease);
}

.svh__index a:hover,
.svh__index a:focus-visible {
	color: var(--blue);
}

.svh__index a:hover::after,
.svh__index a:focus-visible::after {
	opacity: 1;
	transform: none;
}

.svc {
	padding-block: clamp(56px, 7vw, 96px);
	border-top: 1px solid var(--rule);
}

.svc__grid {
	scroll-margin-top: 16px; /* On top of the root scroll-padding for the header. */
}

.warranty + .svc {
	border-top: 0;
}

/* One category: heading across the top (button at its right), then a small
   photo plate beside the list. The list grows in rows; groups add columns. */
.svc__grid {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 4.5fr) minmax(0, 4.5fr);
	grid-template-areas:
		"head head cta"
		"fig body body";
	align-items: start;
	gap: 40px clamp(32px, 4vw, 56px);
}

/* The trades share one sheet, divided by rules instead of separate sections. */
.svc--trades .svc__grid + .svc__grid {
	margin-top: clamp(48px, 5vw, 72px);
	padding-top: clamp(48px, 5vw, 72px);
	border-top: 1px solid var(--rule);
}

.svc__head {
	grid-area: head;
	position: relative;
	padding-top: 24px;
}

/* Marker: a short red hairline opens each category. */
.svc__head::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 48px;
	border-top: 2px solid var(--red);
}

.svc__head p {
	margin-top: 14px;
	max-width: 52ch;
	color: var(--steel);
}

.svc__head .svc__proof {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	color: var(--charcoal);
	font-weight: 600;
	font-size: 0.9375rem;
}

.svc__proof::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: var(--blue);
	mask: var(--icon-check) center / contain no-repeat;
}

.svc .service__media {
	grid-area: fig;
}

.svc--trades .service__shot {
	aspect-ratio: 4 / 3;
}

.svc__cta {
	grid-area: cta;
	align-self: end;
	justify-self: end;
	width: 100%;
	max-width: 440px;
}

.svc__cta .btn,
.svc__cta .wp-block-button__link {
	width: 100%;
	justify-content: space-between;
	text-align: left;
}

.svc__cta .wp-block-buttons,
.svc__cta .wp-block-button {
	width: 100%;
}

.svc__cta p {
	margin-top: 10px;
	color: var(--steel);
	font-size: 0.875rem;
}

.svc__body {
	grid-area: body;
}

/* min() keeps a column from forcing overflow on narrow screens. */
.svc__body--groups {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
	align-items: start;
	gap: 40px clamp(24px, 3vw, 40px);
}

.svc__group-title {
	padding-bottom: 12px;
	border-bottom: 2px solid var(--charcoal);
	font-size: 1.5rem;
	font-weight: 700;
}

.svc__list {
	border-top: 1px solid var(--rule-strong);
}

.svc__group-title + .svc__list {
	border-top: 0;
}

.svc__body:not(.svc__body--groups) .svc__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
	column-gap: clamp(24px, 3vw, 40px);
}

.svc__list li {
	display: grid;
	align-content: start;
	gap: 6px;
	padding-block: 18px;
	border-bottom: 1px solid var(--rule);
}

.svc__list :is(h3, h4) {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 1.125rem;
	line-height: 1.2;
}

.svc__list p {
	max-width: 52ch;
	color: var(--steel);
}

/* Short categories share one sheet: photo beside the text, two units side by
 * side. */
.svc--pair .svc__wrap {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px clamp(32px, 5vw, 80px);
}

.svc--pair .svc__grid {
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	grid-template-rows: auto auto 1fr;
	grid-template-areas:
		"fig head"
		"fig body"
		"fig cta";
	row-gap: 28px;
}

.svc--pair .svc__cta {
	align-self: start;
	justify-self: start;
}

@media (max-width: 1100px) {

	.svc__grid {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
		grid-template-areas:
			"head head"
			"fig body"
			". cta";
	}

	.svc__cta {
		justify-self: start;
	}
}

/* Tablet: the photo shrinks to a plate beside the heading (these photos are
   too low resolution to run full width) and the list runs full width below. */
@media (max-width: 900px) {

	.svh__grid,
	.svc--pair .svc__wrap {
		grid-template-columns: 1fr;
	}

	.svc__grid,
	.svc--pair .svc__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 240px);
		grid-template-rows: none;
		grid-template-areas:
			"head fig"
			"body body"
			"cta cta";
		gap: 28px clamp(24px, 4vw, 40px);
		scroll-margin-top: 80px; /* The jump bar; the root scroll-padding covers the header. */
	}

	.svc .service__shot {
		aspect-ratio: 4 / 3;
	}

	.svc__cta,
	.svc--pair .svc__cta {
		justify-self: start;
		width: auto;
	}
}

/* Phone: one column, a shorter photo strip, a full-width button after the
 * list. */
@media (max-width: 640px) {

	.svc__grid,
	.svc--pair .svc__grid {
		grid-template-columns: 1fr;
		grid-template-areas:
			"head"
			"fig"
			"body"
			"cta";
	}

	.svc .service__shot {
		aspect-ratio: 16 / 9;
	}

	.svc__cta,
	.svc--pair .svc__cta {
		justify-self: stretch;
		width: 100%;
		max-width: none;
	}

	.svc__list li {
		padding-block: 14px;
	}
}

/* Jump bar: phones and tablets only, sticky under the site header. */
.svc-jump {
	display: none;
}

@media (max-width: 900px) {

	.svc-jump,
	.editor-styles-wrapper .svc-jump {
		display: block;
		position: sticky;
		top: 89px;
		z-index: 40;
		background: rgb(255 255 255 / 0.96);
		border-block: 1px solid var(--rule);
	}

	.svc-jump ul {
		display: flex;
		gap: 8px;
		padding-block: 8px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
	}

	.svc-jump ul::-webkit-scrollbar {
		display: none;
	}

	.svc-jump a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding-inline: 14px;
		border: 1px solid var(--rule-strong);
		border-radius: var(--radius);
		color: var(--charcoal);
		font: 600 0.9375rem/1.2 var(--font-head);
		text-decoration: none;
		white-space: nowrap;
		transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
	}

	.svc-jump a:hover {
		border-color: var(--blue);
		color: var(--blue);
	}

	/* The category in view (assets/js/services.js). */
	.svc-jump a[aria-current="location"] {
		border-color: var(--blue);
		background: var(--blue);
		color: var(--white);
	}
}

@media (max-width: 640px) {

	.svc-jump {
		top: 73px;
	}
}

/* Touch: the index arrows were hover-only; show them where
 * there is no hover. */
@media (hover: none) {

	.svh__index a::after {
		opacity: 1;
		transform: none;
	}
}

.svh__actions .link-arrow {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

@media (max-width: 1100px) {

	.service__text {
		grid-template-columns: 1fr;
	}
}

/* Process becomes a vertical timeline. */
@media (max-width: 1000px) {

	.process__steps {
		grid-template-columns: 1fr;
		max-width: 640px;
		margin-top: 40px;
	}

	.process__step {
		padding-left: 84px;
	}

	.process__node {
		position: absolute;
		top: 28px;
		left: 24px;
	}

	.process__title {
		min-height: 40px;
		margin-top: 0;
	}

	.process__step:not(:last-child)::after {
		top: 76px;
		left: 43px;
		right: auto;
		bottom: calc(8px - var(--pgap) - 29px);
		border-top: 0;
		border-left: 1px solid var(--rule-strong);
	}

	.process__step--start:not(:last-child)::after {
		border-left-width: 2px;
		border-left-color: var(--blue);
	}

	.process__cta {
		width: auto;
	}
}

@media (max-width: 900px) {

	.hero__grid,
	.warranty__grid,
	.services__head,
	.services__body,
	.faq__grid,
	.closing__grid {
		grid-template-columns: 1fr;
	}

	.faq__title,
	.editor-styles-wrapper .faq__title {
		position: static;
		max-width: none;
	}

	.faq__item > p {
		padding-right: 0;
	}

	.closing__action {
		padding-left: 0;
		border-left: 0;
	}

	.closing h2 {
		max-width: none;
	}

	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}

	.services__body::before {
		display: none;
	}

	.service__text {
		padding-block: 28px 20px;
	}

	.service__text::before {
		display: none;
	}

	.service__pick {
		cursor: default;
	}

	.service.is-active .service__text h3,
	.service.is-active .service__pick,
	.service__pick:hover {
		color: var(--charcoal);
	}

	.services__list .service__media {
		padding-bottom: 32px;
	}

	.service__shot {
		aspect-ratio: 4 / 3;
	}

	.services__cta {
		margin-top: 40px;
	}

	.proof__logos {
		grid-template-columns: 1fr 1fr;
	}

	.proof__logos li:last-child:nth-child(odd) {
		grid-column: span 2;
	}

	.site-header .site-nav {
		display: none;
	}

	.site-header__inner {
		justify-content: space-between;
	}
}

@media (max-width: 640px) {

	.site-header__inner {
		min-height: 72px;
	}

	.site-header .site-header__brand img {
		height: 36px;
	}

	.editor-styles-wrapper .site-header__brand img {
		height: 36px !important;
	}

	.btn--sm,
	.wp-block-button.is-sm > .wp-block-button__link {
		padding-inline: 12px;
		font-size: 0.875rem;
	}

	.hero__actions .btn,
	.hero__actions .wp-block-button__link {
		width: 100%;
		justify-content: center;
	}

	.hero__actions .wp-block-buttons,
	.hero__actions .wp-block-button {
		width: 100%;
	}

	.bsec__tags {
		position: static;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		margin-top: 16px;
	}

	.bsec__tag,
	.bsec__tag--electronics {
		position: static;
		width: 100%;
		min-height: 44px;
		flex-direction: row;
		padding: 8px 12px;
		transform: none;
	}

	.bsec__block {
		grid-template-columns: 1fr;
	}

	.bsec__meta {
		border-top: 1px solid var(--rule);
	}

	.bsec__meta div:first-child {
		border-left: 0;
	}

	.proof__logos li {
		min-height: 104px;
		padding: 20px 16px;
	}

	.process__step {
		padding: 24px 16px 28px 68px;
	}

	.process__node {
		top: 24px;
		left: 12px;
	}

	.process__step:not(:last-child)::after {
		top: 72px;
		left: 31px;
		bottom: calc(8px - var(--pgap) - 25px);
	}

	.process__cta,
	.faq__actions .btn,
	.closing .btn,
	.faq__actions .wp-block-buttons,
	.faq__actions .wp-block-button,
	.closing .wp-block-buttons,
	.closing .wp-block-button {
		width: 100%;
	}

	.process__cta,
	.faq__actions .btn,
	.closing .btn,
	.faq__actions .wp-block-button__link,
	.closing .wp-block-button__link {
		width: 100%;
		justify-content: center;
	}

	.faq__actions {
		width: 100%;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
	}

	.services__cta .btn,
	.svh__actions .btn,
	.services__cta .wp-block-button__link,
	.svh__actions .wp-block-button__link {
		width: 100%;
		justify-content: center;
	}

	.services__cta .wp-block-buttons,
	.svh__actions .wp-block-buttons,
	.services__cta .wp-block-button,
	.svh__actions .wp-block-button {
		width: 100%;
	}
}

/* Projects page (page-projects.php): the record itself is the proof. */

.site-nav a[aria-current="page"] {
	color: var(--blue);
}

.pj-head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 12px 48px;
}

.pj-head h2 {
	max-width: 20ch;
}

.pj-head p {
	max-width: 44ch;
	color: var(--steel);
}

/* Title-block labels: the drawing's small caps. */
.pj-spec dt,
.pjc__meta dt,
.pj-block__k,
.pjs__table thead th {
	color: var(--steel);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pj-client {
	color: var(--charcoal);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.45;
}

.pj-client span {
	color: var(--steel);
	font-weight: 400;
}

.pj-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.pj-tags li {
	padding: 5px 8px;
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius);
	color: var(--charcoal);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

.pj-flag,
.pj-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 10px;
	border-radius: var(--radius);
	background: #e8eef9;
	color: var(--blue);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
}

.pj-status::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentcolor;
	box-shadow: 0 0 0 3px rgb(13 59 140 / 0.18);
}

.pj-note {
	margin-top: 16px;
	color: var(--steel);
	font-size: 0.875rem;
}

/* Greyscale logos, as in the homepage proof grid. */
.pjo__logo img {
	filter: grayscale(1) brightness(var(--tone, 1));
}

/* Hero: headline and stats left, one crew plate right, client strip under
 * both. */

.pjh {
	padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 96px);
}

.pjh__grid {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	grid-template-areas:
		"copy photo"
		"stats photo";
	gap: 48px clamp(32px, 5vw, 80px);
	align-items: end;
}

.pjh__copy {
	grid-area: copy;
}

.pjh h1 {
	max-width: 15ch;
	font-size: clamp(2.375rem, 1.5rem + 2.6vw, 3.75rem);
	line-height: 1;
	letter-spacing: -0.02em;
}

.pjh__sub {
	margin-top: 24px;
	max-width: 50ch;
	font-size: 1.125rem;
	color: var(--steel);
}

.pjh__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	margin-top: 36px;
}

.pjh__actions .link-arrow {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.pjh .pj-photo {
	grid-area: photo;
	margin: 0;
}

.pjh__stats {
	grid-area: stats;
	display: grid;
	grid-template-columns: 1fr 1fr 1.25fr 1.5fr;
	border-top: 2px solid var(--charcoal);
}

.pjh__stats div {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 6px;
	padding: 18px 20px 0;
	border-left: 1px solid var(--rule);
}

.pjh__stats div:first-child {
	padding-left: 0;
	border-left: 0;
}

.pjh__stats dd {
	align-self: flex-start;
	font: 700 clamp(1.625rem, 1.1rem + 1.5vw, 2.375rem) / 1 var(--font-head);
	letter-spacing: -0.015em;
	font-variant-numeric: tabular-nums;
	color: var(--blue);
}

/* The place stat is words, not a figure: one step down so it
 * holds two lines. */
.pjh__stats div:last-child dd {
	font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
	line-height: 1.1;
}

.pjh__stats dd.ph {
	text-underline-offset: 0.18em;
}

.pjh__stats dt {
	color: var(--steel);
	font-size: 0.875rem;
	line-height: 1.35;
}

.pjh__logos {
	margin-top: clamp(48px, 6vw, 72px);
}

/* Featured */

.pjf {
	padding-block: var(--section);
	border-top: 1px solid var(--rule);
}

.pjf .bsec__plate,
.pja {
	--pad: clamp(12px, 2vw, 24px);
}

.pj-plate {
	padding: var(--pad);
}

/* Only this project's trades are drawn in; the rest of the building recedes. */
.pj-plate .layer {
	opacity: 0.1;
}

.pj-plate .layer--cleanroom {
	stroke-width: 1.25;
}

.pj-plate[data-layers~="civil"] .layer--civil,
.pj-plate[data-layers~="mechanical"] .layer--mechanical,
.pj-plate[data-layers~="electrical"] .layer--electrical,
.pj-plate[data-layers~="cleanroom"] .layer--cleanroom {
	opacity: 1;
}

.pj-plate[data-layers~="electrical"] .layer--electrical,
.pj-plate[data-layers~="cleanroom"] .layer--cleanroom {
	stroke-width: 1.5;
}

/* Featured: one group per relationship. Wide space between groups, tight
 * inside. */
.pjf h4 {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.1;
	text-wrap: balance;
}

.pjg {
	margin-top: clamp(48px, 6vw, 72px);
}

.pjg + .pjg {
	margin-top: clamp(88px, 10vw, 144px);
}

.pjg__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	padding-bottom: 18px;
	border-bottom: 2px solid var(--charcoal);
}

.pjg__logo {
	padding-right: 20px;
	border-right: 1px solid var(--rule);
}

.pjg__logo img,
.pja__logo img,
.pjl__logo img {
	filter: grayscale(1) brightness(var(--tone, 1));
}

.pjg__head h3 {
	font-size: 1.5rem;
	font-weight: 700;
}

.pjg__head p {
	margin-left: auto;
	color: var(--steel);
	font-size: 0.9375rem;
}

/* Group 1: the chiller sheet leads at two-thirds; its companion job sits
 * beside it. */
.pjg__mitsumi {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	gap: 24px;
	margin-top: 24px;
}

.pjx {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius);
}

.pjx__visual {
	display: flex;
	flex-direction: column;
	border-right: 1px solid var(--rule);
}

.pjx .pj-plate,
.pjc .pj-plate {
	border: 0;
	box-shadow: none;
}

.pjx .pj-plate {
	flex: 1;
	display: grid;
	align-content: center;
	border-radius: var(--radius) 0 0;
}

/* The flagship's one trade is drawn heavier, so the lead sheet reads first. */
.pjx .pj-plate .layer--mechanical {
	stroke-width: 2.5;
}

.pj-block {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 20px;
	border-top: 1px solid var(--rule);
}

.pjx__body {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(28px, 3vw, 44px);
}

/* The page's one red marker: the hairline over the largest job. */
.pjx__body::before {
	content: "";
	position: absolute;
	top: -1px;
	left: clamp(28px, 3vw, 44px);
	width: 64px;
	height: 2px;
	background: var(--red);
}

.pjx h4 {
	margin-top: 20px;
	font-size: clamp(1.875rem, 1.3rem + 1.6vw, 2.625rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.015em;
}

.pjx .pj-client {
	margin-top: 12px;
}

.pjx__scope {
	margin-top: 16px;
	max-width: 40ch;
}

.pj-spec {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 24px;
	align-self: stretch;
	margin-top: auto;
	padding-top: 32px;
}

.pj-spec div {
	padding-block: 12px;
	border-top: 1px solid var(--rule);
}

.pj-spec dd {
	margin-top: 4px;
	font: 600 1.25rem/1.2 var(--font-head);
	font-variant-numeric: tabular-nums;
}

.pjc {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--rule);
	border-radius: var(--radius);
}

.pjc .pj-plate {
	border-bottom: 1px solid var(--rule);
	border-radius: var(--radius) var(--radius) 0 0;
}

.pjc__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px 24px 20px;
}

.pjc h4,
.pjl h4 {
	font-size: 1.3125rem;
}

.pjc__scope {
	margin-bottom: 6px;
	color: var(--charcoal);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.pjc__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--rule);
}

.pjc__meta dd {
	margin-top: 2px;
	font: 600 1.0625rem/1.3 var(--font-head);
	font-variant-numeric: tabular-nums;
}

.pjc__meta dd span {
	color: var(--steel);
	font: 500 0.8125rem var(--font-body);
}

/* One segment per job: the Autoliv count, the per-client counts and the
 * repeat chart. */
.pj-tally__bar,
.pjr__bar,
.pjl__bar {
	display: block;
	height: 22px;
	background: repeating-linear-gradient(90deg, var(--blue) 0 calc(100% / var(--n) - 1px), transparent 0 calc(100% / var(--n)));
}

/* Group 2: Autoliv's count runs full width; three more plants follow as a
 * ruled three-up sheet. */
.pjg__partners {
	display: flex;
	flex-direction: column;
	gap: clamp(32px, 4vw, 48px);
	margin-top: 24px;
}

.pja {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius);
}

.pja__count {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: clamp(24px, 3vw, 40px);
	border-right: 1px solid var(--rule);
	border-radius: var(--radius) 0 0 var(--radius);
	color: var(--blue);
	background-color: var(--white);
	background-image:
		linear-gradient(var(--grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 24px 24px;
	background-position: -1px -1px;
}

.pja__logo {
	align-self: flex-start;
	padding: 10px 14px;
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	background: var(--white);
}

.pja__n {
	margin-top: clamp(16px, 3vw, 40px);
	font: 600 1.375rem/1 var(--font-head);
}

.pja__n strong {
	font-size: clamp(4.5rem, 3rem + 4vw, 7rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.pja .pj-tally__bar {
	height: 28px;
}

.pja__k {
	color: var(--steel);
	font-size: 0.875rem;
}

.pja__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	padding: clamp(24px, 4vw, 56px);
}

.pja h4 {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	font-weight: 700;
}

.pja .pjc__scope {
	max-width: 52ch;
}

.pjl {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	background: var(--rule);
	overflow: hidden;
}

/* Company, project and meta rows line up across all three columns. */
.pjl > li,
.pjl__item {
	display: grid;
	grid-row: span 3;
	grid-template-rows: subgrid;
	row-gap: 0;
}

.pjl > li {
	background: var(--white);
}

/* The company leads each column: logo at homepage size, then its name and
 * count. */
.pjl__client {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: clamp(24px, 2.5vw, 32px);
	border-bottom: 1px solid var(--rule);
}

.pjl__logo {
	display: flex;
	align-items: center;
	min-height: 80px;
	margin-bottom: 8px;
}

.pjl__name {
	font: 600 1.125rem/1.25 var(--font-head);
}

/* Fixed width per job, so the three counts compare at a glance. */
.pjl__bar {
	width: calc(var(--n) * 7px);
	height: 14px;
}

.pjl__jobs {
	color: var(--steel);
	font-size: 0.8125rem;
	line-height: 1.3;
}

.pjl__jobs strong {
	color: var(--charcoal);
	font: 700 1.125rem var(--font-head);
	font-variant-numeric: tabular-nums;
}

.pjl__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: clamp(24px, 2.5vw, 32px) clamp(24px, 2.5vw, 32px) 0;
}

.pjl .pjc__meta {
	margin: 24px clamp(24px, 2.5vw, 32px) 0;
	padding-block: 18px clamp(24px, 2.5vw, 32px);
}

/* Repeat clients: one segment per job. */

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

.pjr__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 40px clamp(32px, 5vw, 80px);
	align-items: center;
}

.pjr h2 {
	max-width: 15ch;
	font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
}

.pjr__chart {
	margin: 0;
}

.pjr__chart li {
	display: grid;
	grid-template-columns: 9.5rem minmax(0, 1fr) 4.5rem;
	align-items: center;
	gap: 20px;
	padding-block: 14px;
	border-bottom: 1px solid var(--rule-strong);
}

.pjr__chart li:first-child {
	border-top: 2px solid var(--charcoal);
}

.pjr__name {
	font-weight: 500;
}

.pjr__bar {
	width: var(--w);
	height: 28px;
}

.pjr__n {
	font: 700 1.5rem/1 var(--font-head);
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.pjr__n span {
	color: var(--steel);
	font: 500 0.8125rem var(--font-body);
}

.pjr__chart figcaption {
	margin-top: 16px;
	color: var(--steel);
	font-size: 0.875rem;
}

/* The page's one moment: the bars lay down segment by segment as they scroll
 * in. */
@supports (animation-timeline: view()) {

	.pjr__bar {
		animation: pj-lay linear both;
		animation-timeline: view();
		animation-range: entry 10% cover 40%;
	}
}

@keyframes pj-lay {

	from {
		clip-path: inset(0 100% 0 0);
	}

	to {
		clip-path: inset(0);
	}
}

/* Selected work: a schedule, not cards. */

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

.pjs__table {
	width: 100%;
	margin-top: 40px;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.pjs__table thead th {
	padding: 0 16px 12px 0;
	border-bottom: 2px solid var(--charcoal);
	text-align: left;
}

.pjs__table td,
.pjs__table tbody th {
	padding: 18px 16px 18px 0;
	border-bottom: 1px solid var(--rule);
	vertical-align: top;
	text-align: left;
}

.pjs__client {
	width: 22%;
	font-weight: 500;
}

.pjs__project {
	width: 44%;
	font: 600 1.125rem/1.3 var(--font-head);
}

.pjs__project span {
	display: block;
	margin-top: 4px;
	color: var(--steel);
	font: 400 0.875rem/1.4 var(--font-body);
}

.pjs__value,
.pjs__table thead th:last-child {
	padding-right: 0;
	text-align: right;
	white-space: nowrap;
}

.pjs__value {
	font: 600 1.0625rem/1.4 var(--font-head);
}

.pjs__table tbody tr {
	transition: background-color 0.2s var(--ease);
}

.pjs__table tbody tr:hover {
	background: var(--grey);
}

/* Currently on site */

.pjo {
	padding-block: var(--section);
	border-top: 1px solid var(--rule);
}

.pjo__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 40px clamp(32px, 5vw, 80px);
	align-items: start;
}

.pjo__head > p {
	margin-top: 16px;
	max-width: 36ch;
	color: var(--steel);
}

.pjo .pj-photo {
	max-width: 320px;
	margin-top: 32px;
}

.pjo__list {
	border-top: 2px solid var(--charcoal);
}

.pjo__list > li {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px 28px;
	padding-block: 24px;
	border-bottom: 1px solid var(--rule);
}

.pjo__logo {
	display: grid;
	place-items: center start;
}

.pjo__text h3 {
	margin-top: 12px;
	font-size: 1.3125rem;
}

.pjo__text .pj-client {
	margin-top: 6px;
}

.pjo__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

.pjo__value {
	font: 600 1.25rem/1 var(--font-head);
	font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) {

	/* Groups go full width; the companion cards turn sideways: visual beside
	 * text. */
	.pjg__mitsumi {
		grid-template-columns: 1fr;
	}

	.pjc {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}

	.pjc .pj-plate {
		display: grid;
		align-content: center;
		border-right: 1px solid var(--rule);
		border-bottom: 0;
		border-radius: var(--radius) 0 0 var(--radius);
	}

	.pjh__stats {
		grid-template-columns: 1fr 1fr;
	}

	.pjh__stats div:nth-child(3) {
		padding-left: 0;
		border-left: 0;
	}

	.pjh__stats div:nth-child(n + 3) {
		margin-top: 18px;
		border-top: 1px solid var(--rule);
	}
}

@media (max-width: 900px) {

	.pjh__grid {
		grid-template-columns: 1fr;
		grid-template-areas:
			"copy"
			"stats"
			"photo";
	}

	.pjx,
	.pjr__grid,
	.pjo__grid {
		grid-template-columns: 1fr;
	}

	.pjx__visual {
		border-right: 0;
		border-bottom: 1px solid var(--rule);
	}

	.pjx .pj-plate {
		border-radius: var(--radius) var(--radius) 0 0;
	}

	.pjo .pj-photo {
		display: none;
	}

	/* The three plants stack; each company cell turns sideways: logo beside name
	 * and count. */
	.pjl {
		grid-template-columns: 1fr;
	}

	.pjl__client {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		gap: 8px 32px;
	}

	.pjl__logo {
		grid-row: 1 / span 3;
		margin-bottom: 0;
		padding-right: 32px;
		border-right: 1px solid var(--rule);
	}

	.pjh__logos {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {

	.pjh__actions .btn,
	.pjh__actions .wp-block-button__link {
		width: 100%;
		justify-content: center;
	}

	.pjh__actions .wp-block-buttons,
	.pjh__actions .wp-block-button {
		width: 100%;
	}

	.pjh__stats div {
		padding-inline: 16px 0;
	}

	.pj-spec {
		grid-template-columns: 1fr;
	}

	.pjc,
	.pja {
		display: flex;
		flex-direction: column;
	}

	.pjc .pj-plate,
	.pja__count {
		border-right: 0;
		border-bottom: 1px solid var(--rule);
		border-radius: var(--radius) var(--radius) 0 0;
	}

	.pjc__body,
	.pja__body,
	.pja__count {
		padding: 20px 16px;
	}

	.pjg__head p {
		margin-left: 0;
	}

	.pjl__client {
		display: flex;
		align-items: flex-start;
		padding: 20px 16px;
	}

	.pjl__logo {
		min-height: 64px;
		padding-right: 0;
		border-right: 0;
	}

	.pjl__body {
		padding: 20px 16px 0;
	}

	.pjl .pjc__meta {
		margin-inline: 16px;
		padding-bottom: 20px;
	}

	.pjr__chart li {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 10px 16px;
	}

	.pjr__bar {
		grid-column: 1 / -1;
		grid-row: 2;
		height: 22px;
	}

	/* Rows stack: client, project, then trades beside the value. */
	.pjs__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.pjs__table tbody tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: end;
		gap: 8px 16px;
		padding-block: 18px;
		border-bottom: 1px solid var(--rule);
	}

	.pjs__table td,
	.pjs__table tbody th {
		display: block;
		width: auto;
		padding: 0;
		border: 0;
	}

	.pjs__client,
	.pjs__project {
		grid-column: 1 / -1;
	}

	.pjs__client {
		color: var(--steel);
		font-size: 0.875rem;
	}

	.pjo__list > li {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.pjo__meta {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
	}
}

/* Scroll entrances (assets/js/motion.js). Only content below the fold gets
 * .reveal, and only once the script runs, so the page reads without it. */
.reveal {
	opacity: 0;
	transform: translateY(32px);
}

.reveal.is-in {
	opacity: 1;
	transform: none;
	/* A gentler ease-out than --ease, which spends most of its travel in the
	 * first frames and reads as a jump on something this size. */
	transition: opacity 0.8s var(--ease-enter), transform 1s var(--ease-enter);
	transition-delay: calc(var(--i, 0) * 90ms);
}

/* A section's red opener is drawn as its content arrives, like a drafter's mark. */
.reveal :is(.ab-marked, .closing h2)::before {
	transform: scaleX(0);
	transform-origin: left;
}

.is-in :is(.ab-marked, .closing h2)::before {
	transform: none;
	transition: transform 0.8s var(--ease-enter) 0.2s;
}

/* Reduced motion: nothing travels or draws in, so drawings and bars are simply
 * there; color and fade feedback on controls stays. */
@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition-property: color, background-color, border-color, text-decoration-color, opacity, filter, box-shadow !important;
	}
}

/* About page (page-about.php): the firm as a drawing set's cover sheet and
 * schedules. */

/* Section openers: the short red hairline, as over the closing headline. */
.ab-marked::before {
	content: "";
	display: block;
	width: 56px;
	height: 2px;
	margin-bottom: 24px;
	background: var(--red);
}

/* Hero: copy left; the proof figures as a ruled schedule on a grid-paper
 * plate right. */

.abh {
	padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px);
}

.abh__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 48px clamp(32px, 5vw, 88px);
	align-items: center;
}

.abh__label {
	display: inline-block;
	padding-top: 14px;
	border-top: 2px solid var(--red);
	color: var(--steel);
	font-size: 0.9375rem;
	font-weight: 600;
}

.abh h1 {
	max-width: 13ch;
	margin-top: 20px;
	font-size: clamp(2.375rem, 1.5rem + 2.6vw, 3.75rem);
	line-height: 1;
	letter-spacing: -0.02em;
}

.abh__sub {
	max-width: 50ch;
	margin-top: 24px;
	font-size: 1.125rem;
}

.abh__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	margin-top: 36px;
}

.abh__actions .link-arrow {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.abh__ledger {
	--pad: clamp(20px, 2.5vw, 32px);
	margin: 0;
	padding: var(--pad);
}

.abh__ledger dl {
	border-top: 2px solid var(--charcoal);
}

.abh__ledger dl > div {
	display: grid;
	grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
	gap: 20px;
	align-items: baseline;
	padding-block: 18px;
	border-bottom: 1px solid var(--rule-strong);
}

.abh__ledger dd {
	grid-row: 1;
	grid-column: 1;
	justify-self: start;
	color: var(--blue);
	font: 700 clamp(2rem, 1.5rem + 1.4vw, 2.875rem) / 1 var(--font-head);
	letter-spacing: -0.015em;
	font-variant-numeric: tabular-nums;
}

.abh__ledger dd.ph {
	text-underline-offset: 0.18em;
}

.abh__ledger dt {
	grid-column: 2;
	color: var(--charcoal);
	font-weight: 500;
	line-height: 1.35;
}

.abh__block {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 24px;
	padding-top: 14px;
	color: var(--steel);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Origin: one crew plate beside a short story. */

.abo {
	padding-block: var(--section);
	border-top: 1px solid var(--rule);
}

.abo__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 48px clamp(40px, 6vw, 112px);
	align-items: center;
}

.abo .pj-photo {
	margin: 0;
}

.abo h2 {
	max-width: 16ch;
	margin-bottom: 8px;
}

.abo__text > p {
	max-width: 54ch;
	margin-top: 20px;
	font-size: 1.125rem;
	line-height: 1.6;
}

.abo__facts {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: 600px;
	padding-top: 40px;
}

/* Why plants choose us: four claims, each with its proof line, on a ruled
 * sheet. */

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

.abw h2 {
	max-width: 18ch;
}

.abw__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 clamp(32px, 5vw, 80px);
	margin-top: 48px;
	border-top: 2px solid var(--charcoal);
}

.abw__grid li {
	padding-block: 32px 36px;
	border-bottom: 1px solid var(--rule-strong);
}

.abw__grid h3 {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.abw__grid p {
	max-width: 46ch;
	margin-top: 12px;
}

/* Proof: logos, the repeat-client chart and the largest job, then the
 * mid-page CTA. */

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

.abp__logos {
	margin-top: 40px;
}

.abp__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 48px clamp(32px, 5vw, 80px);
	align-items: start;
	margin-top: clamp(48px, 6vw, 72px);
}

.abp__flagship {
	border: 1px solid var(--rule);
	border-radius: var(--radius);
}

.abp__flagship .pj-plate {
	--pad: clamp(12px, 2vw, 24px);
	border-width: 0 0 1px;
	border-radius: var(--radius) var(--radius) 0 0;
}

.abp__flagship .pj-plate[data-layers~="mechanical"] .layer--mechanical {
	stroke-width: 2.25;
}

.abp__flagship-body {
	padding: 24px;
}

.abp__flagship h3 {
	margin-top: 14px;
	font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.875rem);
	font-weight: 700;
}

.abp__flagship .pj-client {
	margin-top: 8px;
}

.abp__flagship .pj-spec {
	margin-top: 0;
	padding-top: 24px;
}

.abp__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 48px;
	margin-top: clamp(48px, 6vw, 72px);
	padding-top: 32px;
	border-top: 1px solid var(--rule);
}

.abp__cta > p:first-child {
	max-width: 30ch;
	font: 600 1.375rem/1.25 var(--font-head);
}

.abp__cta .abh__actions {
	margin-top: 0;
}

/* People: a roster with the license set large as each person's mark, then the
 * field structure. */

.abt {
	padding-block: var(--section);
	border-top: 1px solid var(--rule);
}

.abt__grid {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	gap: 40px clamp(32px, 5vw, 80px);
	align-items: start;
	margin-top: 48px;
}

.abt__roster {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 clamp(24px, 3vw, 48px);
	border-top: 2px solid var(--charcoal);
}

.abt__roster li {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 20px;
	align-items: center;
	padding-block: 20px;
	border-bottom: 1px solid var(--rule);
}

.abt__roster li:first-child {
	grid-column: 1 / -1;
	grid-template-columns: 104px minmax(0, 1fr);
	gap: 28px;
	padding-block: 28px;
}

/* The mark: the license, boxed like a drawing's revision stamp. */
.abt__mark {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	border: 1px solid var(--blue);
	border-radius: var(--radius);
	box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 4px var(--blue-tint);
	color: var(--blue);
	font: 700 1.375rem/1 var(--font-head);
	letter-spacing: 0.02em;
}

.abt__roster li:first-child .abt__mark {
	font-size: 2rem;
}

.abt__mark--none {
	border-color: var(--rule-strong);
	box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 4px var(--rule);
	color: var(--steel);
	font: 600 0.75rem/1 var(--font-body);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.abt__roster h3 {
	font-size: 1.25rem;
	line-height: 1.2;
}

.abt__roster h3 .ph {
	text-underline-offset: 0.25em;
}

.abt__roster li:first-child h3 {
	font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.875rem);
	font-weight: 700;
}

.abt__roster p:not(.abt__mark) {
	margin-top: 4px;
	color: var(--steel);
	font-size: 0.9375rem;
}

.abt__key {
	padding: 24px;
	border-radius: var(--radius);
	background: var(--grey);
}

.abt__key h3 {
	font-size: 1.125rem;
}

.abt__key dl {
	margin-top: 12px;
}

.abt__key dl div {
	display: grid;
	grid-template-columns: 3.25rem minmax(0, 1fr);
	gap: 12px;
	padding-block: 10px;
	border-top: 1px solid var(--rule-strong);
	font-size: 0.9375rem;
}

.abt__key dt {
	color: var(--blue);
	font: 700 1rem/1.4 var(--font-head);
	letter-spacing: 0.02em;
}

.abt__key p {
	margin-top: 12px;
	color: var(--steel);
	font-size: 0.875rem;
	line-height: 1.5;
}

/* Field structure: drawn as a single-line diagram with 1px leaders. */

.abt__field {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	gap: 40px clamp(32px, 5vw, 80px);
	align-items: center;
	margin-top: clamp(56px, 7vw, 96px);
}

.abt__field .pj-photo {
	margin: 0;
}

.abt__org {
	--leader: 28px;
	padding: clamp(20px, 3vw, 40px);
}

.abt__org > h3 {
	color: var(--steel);
	font: 600 0.6875rem/1 var(--font-body);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.abt__org-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	margin-top: 24px;
}

.abt__node {
	position: relative;
	padding: 14px 18px;
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--charcoal);
	font-weight: 600;
	line-height: 1.3;
}

.abt__node--lead {
	grid-column: 2;
	border-color: var(--blue);
	color: var(--blue);
	font: 700 1.25rem/1.2 var(--font-head);
}

/* Down from the site manager to the trade bus. */
.abt__node--lead::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	height: calc(var(--leader) * 2);
	border-left: 1px solid var(--blue);
}

.abt__node--safety {
	grid-column: 3;
	justify-self: start;
	margin-left: var(--leader);
	border-style: dashed;
	font-size: 0.9375rem;
}

.abt__node--safety::before {
	content: "";
	position: absolute;
	right: 100%;
	top: 50%;
	width: var(--leader);
	border-top: 1px dashed var(--rule-strong);
}

.abt__groups {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: calc(var(--leader) * 2);
}

/* The bus: one line across the four groups, each dropping its own leader. */
.abt__groups::before {
	content: "";
	position: absolute;
	top: calc(var(--leader) * -1);
	left: 12.5%;
	right: 12.5%;
	border-top: 1px solid var(--blue);
}

.abt__groups .abt__node {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	text-align: center;
}

.abt__groups .abt__node::before {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 50%;
	height: var(--leader);
	border-left: 1px solid var(--blue);
}

.abt__groups strong {
	font: 600 1.0625rem/1.2 var(--font-head);
}

.abt__groups span {
	margin-top: auto;
	color: var(--steel);
	font-size: 0.8125rem;
	font-weight: 500;
}

/* Equipment: a spec sheet of owned plant, figures large. */

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

.abe__grid {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	gap: 48px clamp(32px, 5vw, 80px);
	align-items: end;
}

.abe .pj-photo {
	margin: 0;
}

.abe__sheet {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 clamp(24px, 3vw, 40px);
	margin-top: 40px;
	border-top: 2px solid var(--charcoal);
}

.abe__sheet div {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 12px;
	padding-block: 24px 28px;
	border-bottom: 1px solid var(--rule-strong);
}

.abe__sheet dd {
	color: var(--blue);
	font: 700 clamp(2.5rem, 1.8rem + 2vw, 3.75rem) / 0.9 var(--font-head);
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.abe__sheet dt {
	font-weight: 600;
	line-height: 1.35;
}

.abe__sheet dt span {
	display: block;
	margin-top: 4px;
	color: var(--steel);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.45;
}

/* Commitments: a checklist beside one detail plate, credentials underneath. */

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

.abc + .faq {
	border-top: 1px solid var(--rule);
}

.abc__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 48px clamp(40px, 6vw, 112px);
	align-items: center;
}

.abc .pj-photo {
	margin: 0;
}

.abc h2 {
	max-width: 18ch;
}

.abc__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 clamp(24px, 3vw, 48px);
	margin-top: 36px;
	border-top: 2px solid var(--charcoal);
}

.abc__list li {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 14px;
	padding-block: 22px 24px;
	border-bottom: 1px solid var(--rule);
}

.abc__list li::before {
	content: "";
	width: 22px;
	height: 22px;
	margin-top: 1px;
	background: var(--blue);
	mask: var(--icon-check) center / contain no-repeat;
}

.abc__list h3 {
	font-size: 1.1875rem;
	line-height: 1.2;
}

.abc__list p {
	margin-top: 6px;
	color: var(--steel);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.abc__licenses {
	margin-top: 32px;
	padding-top: 0;
	border-top: 0;
}

.abc__reg {
	display: flex;
	align-items: center;
	min-height: 44px;
	color: var(--steel);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

@media (max-width: 1100px) {

	.abe__sheet {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.abc__list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 900px) {

	.abh__grid,
	.abo__grid,
	.abp__grid,
	.abt__grid,
	.abt__field,
	.abe__grid,
	.abc__grid {
		grid-template-columns: 1fr;
	}

	.abo .pj-photo,
	.abt__field .pj-photo,
	.abe .pj-photo,
	.abc .pj-photo {
		max-width: 420px;
	}

}

@media (max-width: 640px) {

	.abh__ledger dl > div {
		grid-template-columns: minmax(0, 7.75rem) minmax(0, 1fr);
		gap: 16px;
	}

	.abo__facts,
	.abw__grid,
	.abt__roster {
		grid-template-columns: 1fr;
	}

	.abt__roster li,
	.abt__roster li:first-child {
		grid-template-columns: 64px minmax(0, 1fr);
		gap: 18px;
		padding-block: 18px;
	}

	.abt__roster li:first-child .abt__mark {
		font-size: 1.375rem;
	}

	/* The diagram stacks: the leaders drop out and the groups sit two by two. */
	.abt__org-top {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.abt__node--lead,
	.abt__node--safety {
		grid-column: 1;
		justify-self: stretch;
		margin-left: 0;
	}

	.abt__node--lead::after,
	.abt__node--safety::before,
	.abt__groups::before,
	.abt__groups .abt__node::before {
		display: none;
	}

	.abt__groups {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		margin-top: 12px;
	}

	.abe__sheet div {
		padding-block: 20px 22px;
	}
}

/* Single post: one centred reading column, no sidebar or comments. */

.entry {
	max-width: calc(44rem + var(--gutter) * 2);
	margin-inline: auto;
	padding: clamp(40px, 6vw, 80px) var(--gutter) var(--section);
}

.entry__head {
	margin-bottom: 32px;
}

.entry__cat {
	margin: 0 0 16px;
	font: 600 0.8125rem/1 var(--font-body);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.entry__cat a {
	color: var(--blue);
	text-decoration: none;
}

.entry__cat a:hover {
	text-decoration: underline;
}

.entry__title {
	margin: 0;
	font: 700 clamp(2rem, 1.3rem + 2.4vw, 3rem) / 1.1 var(--font-head);
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.entry__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin-top: 20px;
	color: var(--steel);
	font-size: 0.9375rem;
}

.entry__meta > * {
	margin: 0;
}

.entry__meta > * + *::before {
	content: "\00b7";
	margin-right: 16px;
}

.entry__image {
	margin: 0 0 40px;
}

.entry__image img {
	width: 100%;
	height: auto;
	border-radius: var(--radius);
}

.entry__body {
	font-size: 1.125rem;
	line-height: 1.7;
}

.entry__body > * {
	margin: 0 0 1.25em;
}

.entry__body h2,
.entry__body h3,
.entry__body h4 {
	margin: 2em 0 0.6em;
	font-family: var(--font-head);
	line-height: 1.15;
}

.entry__body ul,
.entry__body ol {
	padding-left: 1.5em;
}

.entry__body ul {
	list-style: disc;
}

.entry__body ol {
	list-style: decimal;
}

.entry__body a {
	color: var(--blue);
	text-underline-offset: 0.15em;
}

.entry__body img {
	max-width: 100%;
	height: auto;
}

/* Category archive: same centred column as a single post. */

.term {
	max-width: calc(44rem + var(--gutter) * 2);
	margin-inline: auto;
	padding: clamp(40px, 6vw, 80px) var(--gutter) var(--section);
}

.term__title {
	margin: 0;
	font: 700 clamp(2rem, 1.3rem + 2.4vw, 3rem) / 1.1 var(--font-head);
	letter-spacing: -0.015em;
}

.term__desc {
	margin: 16px 0 0;
	color: var(--steel);
}

.term__list {
	margin-top: 40px;
}

.term__list .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

.term__item {
	padding-block: 28px;
	border-top: 1px solid var(--rule);
}

.term__date {
	margin: 0 0 8px;
	color: var(--steel);
	font-size: 0.9375rem;
}

.term__item-title {
	margin: 0;
	font: 700 1.5rem/1.2 var(--font-head);
}

.term__item-title a {
	color: var(--charcoal);
	text-decoration: none;
}

.term__item-title a:hover {
	color: var(--blue);
	text-decoration: underline;
}

.term__excerpt {
	margin: 12px 0 0;
}

.term__list .wp-block-query-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	padding-top: 28px;
	border-top: 1px solid var(--rule);
	font-weight: 600;
}

.term__list .wp-block-query-pagination a {
	color: var(--blue);
	text-decoration: none;
}

.term__list .wp-block-query-pagination .current {
	color: var(--charcoal);
}

.term__list .wp-block-query-pagination-numbers .page-numbers {
	margin-inline: 6px;
}

/* 404: a drawing sheet marked "Page not found". Copy beside the plate, as on
 * the other inner pages. */

.nf {
	padding-block: clamp(48px, 7vw, 96px) var(--section);
}

.nf__grid {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
}

.nf__title::before {
	content: "";
	display: block;
	width: 56px;
	height: 2px;
	margin-bottom: 32px;
	background: var(--red);
}

.nf__title {
	margin: 0;
	font: 700 clamp(2.375rem, 1.5rem + 2.6vw, 3.75rem) / 1 var(--font-head);
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.nf__lede {
	max-width: 44ch;
	margin: 24px 0 32px;
	color: var(--steel);
}

.nf__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0 24px;
	margin: 32px 0 0;
	padding: 0;
}

.nf__links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--blue);
	font-weight: 600;
}

.nf__plate {
	position: relative;
	background-color: var(--white);
	background-image:
		linear-gradient(var(--grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 24px 24px;
	background-position: -1px -1px;
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius);
	box-shadow:
		inset 0 0 0 5px var(--white),
		inset 0 0 0 6px var(--rule);
}

.nf__plate::before {
	content: "";
	position: absolute;
	top: -1px;
	left: -1px;
	width: 64px;
	border-top: 2px solid var(--red);
}

.nf__figure {
	margin: 0;
	padding: clamp(40px, 7vw, 88px) 24px;
	font: 700 clamp(5rem, 3rem + 8vw, 10rem) / 1 var(--font-head);
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.nf__block {
	display: grid;
	grid-template-columns: auto 1fr;
	margin: 0 6px 6px;
	border-top: 1px solid var(--rule);
	background: var(--white);
}

.nf__block > p {
	margin: 0;
	padding: 14px 18px;
}

.nf__key {
	border-right: 1px solid var(--rule);
	color: var(--steel);
	font: 600 0.6875rem / 1 var(--font-body);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nf__val {
	font: 600 0.9375rem / 1.2 var(--font-body);
}

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

	.nf__plate {
		max-width: 420px;
	}
}
