/**
 * Theme styles that theme.json cannot express: the traverse rail,
 * scroll-driven motion, schedules and browser surfaces.
 */

/* ---------- Base and browser surfaces ---------- */

/* Core prints its layout rules after this file, so the resets need specificity, not order. */
.wp-site-blocks > * {
	margin-block-start: 0;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--lgm-header-h, 6rem) + var(--wp-admin--admin-bar--height, 0px) + 0.5rem);
	scrollbar-color: var(--wp--preset--color--brand) var(--wp--preset--color--surface-alt);
}

/* Below 601px the admin bar scrolls away, so only the header is fixed. */
@media (max-width: 600px) {
	html {
		scroll-padding-top: calc(var(--lgm-header-h, 6rem) + 0.5rem);
	}
}

body {
	caret-color: var(--wp--preset--color--brand);
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--brand-deep);
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-ink);
	outline-offset: 3px;
	border-radius: 2px;
}

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

h1,
h2,
h3 {
	text-wrap: balance;
}

p,
li,
td {
	text-wrap: pretty;
}

code,
.station__tag,
.hero__facts,
.client-cell__name,
.project-row__spec,
.schedule-label,
.contact-sheet th,
.site-footer__heading {
	font-family: var(--wp--preset--font-family--mono);
	font-variant-numeric: tabular-nums;
}

.wp-block-image {
	margin-block-end: 0;
}

.wp-element-caption {
	margin-block: 0.625rem 0;
	font-size: var(--wp--preset--font-size--spec);
	color: var(--wp--preset--color--ink-muted);
	text-align: left;
}

.wp-element-button {
	transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}

/* ---------- Header ---------- */

/* The header stays pinned to the top. Its bottom edge is a scale bar: minor
   ticks every 8px, a major tick every 64px, registered so a major tick lands
   on the wide column's left edge, where a gold point of beginning sits. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 30;
}

@media (max-width: 600px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

.site-header,
.mobile-menu__bar {
	--x0: max(var(--wp--style--root--padding-left, 1.5rem), (100% - 1200px) / 2);
	position: relative;
}

.site-header::after,
.mobile-menu__bar::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 7px;
	pointer-events: none;
	background:
		linear-gradient(var(--wp--preset--color--accent), var(--wp--preset--color--accent)) calc(var(--x0) - 2px) 100% / 5px 5px no-repeat,
		linear-gradient(var(--wp--preset--color--line), var(--wp--preset--color--line)) 0 100% / 100% 1px no-repeat,
		linear-gradient(90deg, var(--wp--preset--color--brand-mist) 0 1px, transparent 1px) var(--x0) 100% / 64px 7px repeat-x,
		linear-gradient(90deg, var(--wp--preset--color--line) 0 1px, transparent 1px) var(--x0) 100% / 8px 4px repeat-x;
}

.site-header__logo {
	flex-shrink: 0;
	min-width: 160px;
}

.site-header__logo img {
	display: block;
	max-width: 100%;
}

/* Nav links carry a station node: outlined on hover, gold on the current page. */
.site-header__nav .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding-block: 0.5rem;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	transition: color 160ms ease-out;
}

.site-header__nav .wp-block-navigation-item__content::before {
	content: "";
	width: 7px;
	height: 7px;
	box-sizing: border-box;
	border: 1px solid transparent;
	transition: border-color 160ms ease-out, background-color 160ms ease-out;
}

.site-header__nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--brand);
}

.site-header__nav .wp-block-navigation-item__content:hover::before {
	border-color: var(--wp--preset--color--brand);
}

.site-header__nav .wp-block-navigation-item__content[aria-current="page"]::before {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent-ink);
}

.site-header .wp-block-navigation__responsive-container-open,
.mobile-menu__close.mobile-menu__close {
	width: 2.75rem;
	height: 2.75rem;
	justify-content: center;
	align-items: center;
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 2px;
	transition: border-color 160ms ease-out;
}

.site-header .wp-block-navigation__responsive-container-open:hover,
.mobile-menu__close.mobile-menu__close:hover {
	border-color: var(--wp--preset--color--brand);
}

/* Between the overlay breakpoint and a full desktop row, the CTA gives way to the links. */
@media (max-width: 56rem) {
	.site-header .site-header__cta {
		display: none;
	}
}

.site-header__nav .wp-block-navigation__container {
	flex-wrap: nowrap;
	white-space: nowrap;
}

/* ---------- Mobile menu: a short traverse on the green sheet ---------- */

.wp-block-navigation__responsive-container.is-menu-open.disable-default-overlay {
	padding: 0;
	background: var(--wp--preset--color--brand);
}

.mobile-menu {
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
}

.mobile-menu__bar {
	padding: 0.75rem var(--wp--style--root--padding-right, 1.5rem) 0.75rem var(--wp--style--root--padding-left, 1.5rem);
	background: var(--wp--preset--color--surface);
}

.mobile-menu__sheet {
	--node: 0.6875rem;
	--node-y: 1.75rem;
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: var(--wp--preset--spacing--70) var(--wp--style--root--padding-right, 1.5rem) var(--wp--preset--spacing--60) var(--wp--style--root--padding-left, 1.5rem);
}

.mobile-menu__sheet > * {
	margin-block: 0;
}

/* North arrow, top right of the sheet. */
.mobile-menu__sheet::before {
	content: "";
	position: absolute;
	top: var(--wp--preset--spacing--60);
	right: var(--wp--style--root--padding-right, 1.5rem);
	width: 1rem;
	height: 2rem;
	background: var(--wp--preset--color--brand-mist);
	opacity: 0.55;
	mask: url(../icons/north-arrow.svg) center / contain no-repeat;
}

.mobile-menu__nav,
.mobile-menu__nav .wp-block-navigation__container {
	width: 100%;
	gap: 0;
	align-items: stretch;
}

.mobile-menu__nav .wp-block-navigation-item {
	position: relative;
	display: block;
	padding: 0.875rem 0 0.875rem 2.25rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* The survey line runs node to node: from the first node down to the last. */
.mobile-menu__nav .wp-block-navigation-item::before {
	content: "";
	position: absolute;
	left: calc(var(--node) / 2);
	top: 0;
	bottom: -1px;
	width: 1px;
	background: rgba(255, 255, 255, 0.35);
	transform-origin: top;
}

.mobile-menu__nav .wp-block-navigation-item:first-child::before {
	top: var(--node-y);
}

.mobile-menu__nav .wp-block-navigation-item:last-child::before {
	bottom: auto;
	height: var(--node-y);
}

.mobile-menu__nav .wp-block-navigation-item__content::before {
	content: "";
	position: absolute;
	z-index: 1;
	left: 0;
	top: calc(var(--node-y) - var(--node) / 2);
	width: var(--node);
	height: var(--node);
	box-sizing: border-box;
	background: var(--wp--preset--color--brand);
	border: 1px solid var(--wp--preset--color--brand-mist);
}

.mobile-menu__nav .wp-block-navigation-item__content[aria-current="page"]::before {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}

.mobile-menu__nav .wp-block-navigation-item__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.125rem;
	padding: 0;
	color: var(--wp--preset--color--surface);
	text-decoration: none;
}

.mobile-menu__nav .wp-block-navigation-item__label {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.mobile-menu__nav .wp-block-navigation-item__description {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	color: var(--wp--preset--color--brand-mist);
}

.mobile-menu__nav .wp-block-navigation-item__content:hover .wp-block-navigation-item__label {
	color: var(--wp--preset--color--accent);
}

.mobile-menu__cta {
	margin-block-start: var(--wp--preset--spacing--60);
}

.mobile-menu__alt {
	margin-block-start: var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--brand-mist);
}

.mobile-menu a:not(.wp-element-button):focus-visible {
	outline-color: var(--wp--preset--color--accent);
}

.mobile-menu__alt a {
	color: var(--wp--preset--color--surface);
}

/* A phone line and a plain scale bar close the sheet. */
.mobile-menu__sheet > .mobile-menu__phone {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-block-start: auto;
	padding-block-start: var(--wp--preset--spacing--60);
}

.mobile-menu__sheet .mobile-menu__phone::before {
	top: auto;
	bottom: 0.2em;
}

.mobile-menu__phone a {
	font-family: var(--wp--preset--font-family--mono);
	font-variant-numeric: tabular-nums;
	font-size: 1.0625rem;
	color: var(--wp--preset--color--surface);
	text-decoration: none;
}

.mobile-menu__phone::after {
	content: "";
	width: 6rem;
	height: 5px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0 50%, transparent 50%) 0 0 / 3rem 100% repeat-x;
}

/* One authored moment: the line draws down and the nodes set as the menu opens. */
@media (prefers-reduced-motion: no-preference) {
	.is-menu-open .mobile-menu__nav .wp-block-navigation-item::before {
		animation: mobile-menu-line 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
	}

	.is-menu-open .mobile-menu__nav .wp-block-navigation-item__content::before {
		animation: mobile-menu-node 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
	}

	.is-menu-open .mobile-menu__nav .wp-block-navigation-item:nth-child(2)::before,
	.is-menu-open .mobile-menu__nav .wp-block-navigation-item:nth-child(2) > a::before {
		animation-delay: 90ms;
	}

	.is-menu-open .mobile-menu__nav .wp-block-navigation-item:nth-child(3)::before,
	.is-menu-open .mobile-menu__nav .wp-block-navigation-item:nth-child(3) > a::before {
		animation-delay: 180ms;
	}

	.is-menu-open .mobile-menu__nav .wp-block-navigation-item:nth-child(4) > a::before {
		animation-delay: 270ms;
	}
}

@keyframes mobile-menu-line {
	from {
		transform: scaleY(0);
	}
}

@keyframes mobile-menu-node {
	from {
		transform: scale(0.2);
	}
}

/* ---------- Icon lines (footer, mobile menu) ---------- */

.icon-line {
	position: relative;
	padding-inline-start: 1.75rem;
}

.icon-line::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.1em;
	width: 1.125rem;
	height: 1.125rem;
	background: var(--wp--preset--color--accent);
	mask: var(--icon) center / contain no-repeat;
}

.icon-line--pin {
	--icon: url(../icons/pin.svg);
}

.icon-line--clock {
	--icon: url(../icons/clock.svg);
}

.icon-line--phone {
	--icon: url(../icons/phone.svg);
}

.icon-line--mail {
	--icon: url(../icons/mail.svg);
}

.icon-line--facebook {
	--icon: url(../icons/facebook.svg);
}

/* ---------- The traverse: section stations ---------- */

.traverse.traverse > * {
	margin-block: 0;
}

.station {
	--bg: var(--wp--preset--color--surface);
	--rail: var(--wp--preset--color--line);
	--fill: var(--wp--preset--color--brand);
	--tag: var(--wp--preset--color--brand);
	--pad: var(--wp--preset--spacing--section);
	--gutter: 2.25rem;
	--lx: 0.75rem;
	position: relative;
}

.station--alt {
	--bg: var(--wp--preset--color--surface-alt);
}

.station--dark {
	--bg: var(--wp--preset--color--brand);
	--rail: rgba(255, 255, 255, 0.2);
	--fill: var(--wp--preset--color--accent);
	--tag: var(--wp--preset--color--brand-mist);
}

@media (min-width: 48.875rem) {
	.station {
		--gutter: 6rem;
		--lx: 0.5rem;
	}
}

.station__body {
	position: relative;
	padding-left: var(--gutter);
}

/* The survey line: a hairline base and a drawn line on top. */
.station__body::before,
.station__body::after {
	content: "";
	position: absolute;
	top: calc(-1 * var(--pad));
	bottom: calc(-1 * var(--pad));
	left: var(--lx);
	pointer-events: none;
}

.station__body::before {
	width: 1px;
	background: var(--rail);
}

.station__body::after {
	width: 2px;
	margin-left: -0.5px;
	background: var(--fill);
	transform-origin: top;
}

.station--start .station__body::before,
.station--start .station__body::after {
	top: calc(100% - 0.75rem);
}

.station--end .station__body::before,
.station--end .station__body::after {
	bottom: auto;
	height: calc(var(--pad) + 0.75rem);
}

.station__tag {
	position: absolute;
	z-index: 1;
	top: 0.5rem;
	left: 0;
	margin: 0;
	font-size: var(--wp--preset--font-size--spec);
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.04em;
	color: var(--tag);
}

.station__body > .station__tag + * {
	margin-block-start: 0;
}

.station--start .station__tag {
	top: auto;
	bottom: 0.25rem;
}

/* Desktop: horizontal chainage beside a square station node. */
@media (min-width: 48.875rem) {
	.station__tag {
		padding-left: calc(var(--lx) + 1.125rem);
	}

	.station__tag::before {
		content: "";
		position: absolute;
		top: 50%;
		left: calc(var(--lx) - 5.5px);
		width: 11px;
		height: 11px;
		box-sizing: border-box;
		border: 2px solid var(--fill);
		background: var(--bg);
		transform: translateY(-50%);
	}

	.station--start .station__tag::before,
	.station--end .station__tag::before {
		left: calc(var(--lx) - 7.5px);
		width: 15px;
		height: 15px;
		background: var(--wp--preset--color--accent);
		border-color: var(--wp--preset--color--accent);
	}
}

/* Mobile: chainage runs up the line and interrupts it. */
@media (max-width: 48.8125rem) {
	.station__tag {
		writing-mode: vertical-rl;
		transform: rotate(180deg);
		width: calc(2 * var(--lx));
		padding-inline: 0.5rem;
		line-height: calc(2 * var(--lx));
		text-align: center;
		background: var(--bg);
		font-size: var(--wp--preset--font-size--spec);
	}
}

/* Signature motion: the line is drawn as each station passes. */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.station__body::after {
			animation: lgm-rail-draw linear both;
			animation-timeline: view();
			animation-range: entry 0% cover 60%;
		}
	}
}

@keyframes lgm-rail-draw {
	from {
		transform: scaleY(0);
	}

	to {
		transform: scaleY(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* ---------- Station index (wide screens) ---------- */

.station-index {
	display: none;
}

@media (min-width: 103rem) {
	.station-index {
		display: block;
		width: 11.75rem;
		box-sizing: border-box;
		position: fixed;
		z-index: 20;
		top: 50%;
		left: calc((100vw - 1200px) / 2 - 12.75rem);
		transform: translateY(-50%);
		padding: 1rem 1.125rem;
		background: var(--wp--preset--color--brand-deep);
		border: 1px solid rgba(255, 255, 255, 0.08);
		border-radius: 4px;
	}
}

/* Services labels are single short words, so the panel is narrower. */
@media (min-width: 103rem) {
	.station-index--services {
		width: 11.25rem;
		left: calc((100vw - 1200px) / 2 - 12.25rem);
	}
}

/* In the page editor the index sits in the flow as a dark panel so it can be
   selected and edited, and sections run edge to edge as they do on the page. */
.editor-styles-wrapper .is-root-container > .station-index {
	display: block;
	position: static;
	transform: none;
	width: auto;
	max-width: 14rem;
	margin: 1rem auto;
	box-sizing: border-box;
	padding: 1rem 1.125rem;
	background: var(--wp--preset--color--brand-deep);
	border-radius: 4px;
}

.editor-styles-wrapper .is-root-container > .station {
	max-width: none;
	margin-inline: calc(var(--wp--style--root--padding-left, 0px) * -1) calc(var(--wp--style--root--padding-right, 0px) * -1);
}

/* The panel is a miniature of the traverse: a hairline with square station
   nodes. The current station fills gold; stations already passed keep a gold
   outline. */
.station-index__list {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.station-index__list::before {
	content: "";
	position: absolute;
	top: 0.875rem;
	bottom: 0.875rem;
	left: 4px;
	width: 1px;
	background: rgba(255, 255, 255, 0.16);
}

.station-index__list li {
	margin: 0;
}

.station-index__list a {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-block: 0.4375rem;
	color: var(--wp--preset--color--brand-mist);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--spec);
	white-space: nowrap;
	transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.station-index__list code {
	min-width: 2.75rem;
	padding: 0;
	background: none;
	color: inherit;
	font-size: var(--wp--preset--font-size--spec);
	font-weight: 500;
}

.station-index__list a::before {
	content: "";
	flex: none;
	width: 9px;
	height: 9px;
	box-sizing: border-box;
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	background: var(--wp--preset--color--brand-deep);
}

.station-index__list a:hover,
.station-index__list a:focus-visible {
	color: var(--wp--preset--color--surface);
}

.station-index__list a:focus-visible {
	outline-color: var(--wp--preset--color--accent);
}

/* The script marks the station in view (aria-current) and those already passed. */
.station-index__list a[aria-current] {
	color: var(--wp--preset--color--surface);
	font-weight: 500;
}

.station-index__list a[aria-current]::before {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}

.station-index__list a.is-passed::before {
	border-color: var(--wp--preset--color--accent);
}

/* ---------- Links on dark grounds ---------- */

.station--dark a:not(.wp-element-button),
.site-footer a {
	color: var(--wp--preset--color--surface);
}

.station--dark a:not(.wp-element-button):hover,
.site-footer a:hover {
	color: var(--wp--preset--color--accent);
}

.station--dark :focus-visible,
.site-footer :focus-visible {
	outline-color: var(--wp--preset--color--accent);
}

.station--dark .wp-element-caption {
	color: var(--wp--preset--color--brand-mist);
}

.station--dark .is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--brand-mist);
}

.station--dark .is-style-outline .wp-block-button__link:hover {
	color: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}

/* ---------- Hero ---------- */

.survey-grid {
	overflow: clip;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 27v10M27 32h10' stroke='%23ffffff' stroke-opacity='0.045' stroke-width='1'/%3E%3C/svg%3E");
	/* Registered so one cross sits on the 0+000 node: x on the survey line
	   (content edge + --lx), y on the tag's centre (bottom pad + 0.25rem + half
	   the 0.8125rem tag). Tile is 64px with its cross at 32px. */
	background-position:
		left max(calc(var(--wp--style--root--padding-left, 0px) + var(--lx) - 32px), calc(50% - 600px + var(--lx)))
		bottom calc(var(--pad) + 0.25rem + 0.40625rem - 32px);
}

/* Lot plan: a fictional closed traverse drawn around the hero photo.
   Corner 1 (point of beginning) is the only gold mark; values close. */
.hero__media {
	position: relative;
}

.hero__media .hero__photo {
	position: relative;
	z-index: 1;
	margin-block-start: 0;
}

.hero__plan {
	display: none;
}

@media (min-width: 75rem) {
	.hero__plan {
		display: block;
		position: absolute;
		top: 0;
		left: 0;
		width: 200%;
		height: auto;
		aspect-ratio: 800 / 650;
		/* Shift by the viewBox origin (-280, -90) so unit 0,0 is the photo corner. */
		translate: -35% -13.846%;
		overflow: visible;
		pointer-events: none;
	}
}

.hero__plan-lot,
.hero__plan-tie,
.hero__plan-mark,
.hero__plan-corner {
	fill: none;
	stroke: rgba(255, 255, 255, 0.28);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}

.hero__plan-tie {
	stroke-dasharray: 6 4;
}

.hero__plan-pob {
	fill: var(--wp--preset--color--accent);
}

.hero__plan text {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10px;
	letter-spacing: 0.02em;
	fill: var(--wp--preset--color--brand-mist);
	fill-opacity: 0.62;
	font-variant-numeric: tabular-nums;
}

.hero__plan .hero__plan-num {
	font-weight: 500;
	fill-opacity: 0.8;
}

/* The plan is surveyed on load: the tie runs out from BLLM No. 1, the
   boundary is walked corner to corner at one steady pace (labels arrive
   as each leg completes, timed by --at from cumulative leg length), and
   the gold point of beginning pulses once when the traverse closes. */
.hero__plan-ring {
	fill: none;
	stroke: var(--wp--preset--color--accent);
	stroke-width: 1.5;
	vector-effect: non-scaling-stroke;
	opacity: 0;
	transform-box: fill-box;
	transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
	.hero__plan-lot {
		stroke-dasharray: 1;
		animation: lgm-traverse 2.2s linear 0.7s both;
	}

	.hero__plan-at {
		animation: lgm-plan-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) var(--at, 0s) both;
	}

	.hero__plan-ring {
		animation: lgm-plan-close 0.9s cubic-bezier(0.16, 1, 0.3, 1) 2.9s;
	}
}

@keyframes lgm-traverse {
	from {
		stroke-dashoffset: 1;
	}

	to {
		stroke-dashoffset: 0;
	}
}

@keyframes lgm-plan-in {
	from {
		opacity: 0;
	}
}

@keyframes lgm-plan-close {
	from {
		opacity: 1;
		transform: scale(1);
	}

	to {
		opacity: 0;
		transform: scale(3.5);
	}
}

/* Sighting: on a fine pointer, a line is shot from the point of beginning
   to the cursor with a live bearing and distance (hero-sight.js). It sits
   above the photo so the crew's own ground can be measured. */
.hero__plan.hero__sight {
	z-index: 2;
	opacity: 0;
	transition: opacity 0.2s ease-out;
}

.hero__sight.is-sighting {
	opacity: 1;
}

/* A dark halo keeps the sight legible over the photo's bright sky. */
.hero__sight-halo {
	fill: none;
	stroke: var(--wp--preset--color--brand-deep);
	stroke-opacity: 0.55;
	stroke-width: 3.5;
	vector-effect: non-scaling-stroke;
}

.hero__sight-line {
	stroke: var(--wp--preset--color--surface);
	stroke-opacity: 0.85;
	stroke-width: 1;
	stroke-dasharray: 4 3;
	vector-effect: non-scaling-stroke;
}

.hero__sight-mark {
	fill: none;
	stroke: var(--wp--preset--color--accent);
	stroke-width: 1.5;
	vector-effect: non-scaling-stroke;
}

.hero__sight-chip {
	fill: var(--wp--preset--color--brand-deep);
}

.hero__plan .hero__sight-label {
	fill: var(--wp--preset--color--surface);
	fill-opacity: 1;
}

.hero__title {
	max-width: 13ch;
	font-weight: 900;
	line-height: 1.04;
	letter-spacing: -0.025em;
}

.hero__lede {
	max-width: 34em;
}

.hero__alt {
	color: var(--wp--preset--color--brand-mist);
}

/* Accreditations: a quiet monochrome row so they read as proof, not as a
   headline. The marks keep their shapes; colour is drained to brand-mist. */
.hero__creds.hero__creds {
	gap: 0.75rem 1.75rem;
	align-items: center;
	margin-block-start: var(--wp--preset--spacing--60);
}

.hero__creds .hero__cred-logo {
	margin: 0;
}

.hero__cred-logo img {
	display: block;
	width: auto;
	height: 2.25rem;
	filter: grayscale(1) brightness(1.9);
	opacity: 0.78;
}

.hero__cred-logo--philgeps img {
	filter: grayscale(1) brightness(2.8);
}

/* DTI's navy wordmark disappears when brightened; invert it instead. */
.hero__cred-logo--dti img {
	filter: grayscale(1) invert(1);
}

/* Without the station index the hero's empty gutter reads as a misalignment,
   so the hero copy steps out to the header logo's edge. The chainage row
   keeps the gutter so it still reads off the 0+000 node. */
@media (max-width: 102.9375rem) {
	.station--start .station__body {
		padding-left: 0;
	}

	.station--start .hero__facts {
		padding-left: var(--gutter);
	}
}

.hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin-block-start: var(--wp--preset--spacing--70);
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	color: var(--wp--preset--color--brand-mist);
	letter-spacing: 0.02em;
}

.hero__facts span {
	display: inline-flex;
	align-items: center;
	gap: 1.5rem;
}

.hero__facts span::before {
	content: "";
	width: 5px;
	height: 5px;
	background: var(--wp--preset--color--accent);
}

.hero__photo img {
	width: 100%;
}

@media (max-width: 48.8125rem) {
	/* Overrides the block's inline ratio so the hero fits a phone screen. */
	.hero__photo img {
		aspect-ratio: 4 / 3 !important;
	}
}

/* ---------- Section heads ---------- */

.section-head {
	gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--70);
	margin-block-end: var(--wp--preset--spacing--70);
}

.section-head h2 {
	max-width: 20ch;
	margin: 0;
}

.section-head__note {
	max-width: 38ch;
	margin: 0;
}

.section-link {
	margin-block-start: var(--wp--preset--spacing--60);
	font-weight: 700;
}

/* ---------- Client schedule ---------- */

.station .client-schedule {
	gap: 0;
	border-top: 1px solid var(--wp--preset--color--line);
	border-left: 1px solid var(--wp--preset--color--line);
}

@media (max-width: 48.8125rem) {
	.station .client-schedule {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.client-cell {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.5rem 1rem 1rem;
	border-right: 1px solid var(--wp--preset--color--line);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.client-cell > * {
	margin: 0;
}

.client-cell__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 4.5rem;
}

.client-cell__logo img {
	max-width: 85%;
	width: auto;
	height: 3.25rem;
	mix-blend-mode: multiply;
	object-fit: contain;
	border-radius: 2px;
}

/* Equal optical weight, set per mark by eye. */
.client-cell__logo--sm-prime-holdings img { height: 4.25rem; }
.client-cell__logo--robinsons-land-corporation img { height: 3.5rem; }
.client-cell__logo--primary-homes-logo img { height: 3.5rem; }
.client-cell__logo--castille-resources-realty-development-inc img { height: 2.5rem; }
.client-cell__logo--msy-holdings-corporation img { height: 3.5rem; }
.client-cell__logo--duros-land-properties-inc img { height: 2.25rem; }
.client-cell__logo--topline-group-of-companies img { height: 3rem; }
.client-cell__logo--primary-structures img { height: 2.75rem; }
.client-cell__logo--cebu-port-authority img { height: 3.25rem; }

.client-cell__wordmark {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 4.5rem;
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--brand);
	text-align: center;
}

.client-cell__name {
	font-size: var(--wp--preset--font-size--spec);
	line-height: 1.35;
	color: var(--wp--preset--color--ink-muted);
	text-align: center;
}

/* ---------- Who we are: the promise and one team ---------- */

.about__title {
	max-width: 17ch;
	font-weight: 900;
}

.about__copy > p {
	max-width: 56ch;
}

.about__team {
	margin-block-start: var(--wp--preset--spacing--60);
	font-weight: 700;
	color: var(--wp--preset--color--brand);
}

/* ---------- Scope schedule: five groups read as plan-sheet columns ----------
   Subgrid keeps names, survey lists and instrument rows on shared lines. */

.scope-schedule {
	display: grid;
	border-top: 1.5px solid var(--wp--preset--color--brand);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.scope-schedule > .scope-col {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	column-gap: var(--wp--preset--spacing--60);
	margin: 0;
	padding-block: 1.25rem;
}

.scope-col + .scope-col {
	border-top: 1px solid var(--wp--preset--color--line);
}

.scope-schedule .scope-col > * {
	margin: 0;
}

.scope-schedule .scope-col > .scope-col__kit {
	margin-block-start: 1rem;
}

.scope-col__icon {
	grid-column: 1;
	grid-row: 1;
}

.scope-col__icon img {
	display: block;
	width: 40px;
	height: 40px;
}

.scope-schedule .scope-col > .scope-col__icon {
	margin-block-end: 0.75rem;
}

.scope-col__name {
	grid-column: 1;
	grid-row: 2 / span 2;
	font-size: var(--wp--preset--font-size--subheading);
	font-weight: 700;
}

.scope-col__name a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.scope-col__name a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.scope-col:hover .scope-col__name a,
.scope-col__name a:focus-visible {
	color: var(--wp--preset--color--brand);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.scope-col__types {
	grid-column: 2;
	grid-row: 1 / span 2;
	padding: 0;
	list-style: none;
}

.scope-col__types li {
	padding-block: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
}

.scope-col__types li + li {
	border-top: 1px solid var(--wp--preset--color--line);
}

.scope-col__kit {
	grid-column: 2;
	grid-row: 3;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--spec);
	font-variant-numeric: tabular-nums;
	line-height: 1.5;
	color: var(--wp--preset--color--ink);
}

.scope-col__kit span {
	display: block;
	margin-block-end: 0.25rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-muted);
}

@media (max-width: 48.8125rem) {
	.scope-schedule > .scope-col {
		grid-template-columns: minmax(0, 1fr);
	}

	.scope-schedule .scope-col > * {
		grid-column: 1;
		grid-row: auto;
	}

	.scope-schedule .scope-col > .scope-col__name {
		margin-block-end: 0.5rem;
	}
}

@media (min-width: 75rem) {
	.scope-schedule {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		grid-template-rows: auto auto 1fr auto;
	}

	.scope-schedule > .scope-col {
		grid-row: span 4;
		grid-template-columns: none;
		grid-template-rows: subgrid;
		row-gap: 0;
		padding: 1.25rem 1.25rem 1rem;
	}

	.scope-col + .scope-col {
		border-top: 0;
		border-left: 1px solid var(--wp--preset--color--line);
	}

	.scope-schedule > .scope-col:first-child {
		padding-inline-start: 0;
	}

	.scope-schedule .scope-col > * {
		grid-column: 1;
		grid-row: auto;
	}

	.scope-schedule .scope-col > .scope-col__icon {
		margin-block-end: 1rem;
	}

	.scope-col__name {
		padding-block-end: 1rem;
	}

	.scope-col__types {
		align-self: start;
		border-top: 1px solid var(--wp--preset--color--line);
	}

	.scope-schedule .scope-col > .scope-col__kit {
		margin-block-start: 1.25rem;
		padding-block-start: 0.875rem;
		border-top: 1px solid var(--wp--preset--color--line);
	}
}

/* ---------- Project schedule ---------- */

.projects__aside > p {
	max-width: 40ch;
}

.projects__photo {
	margin-block-start: var(--wp--preset--spacing--60);
}

.schedule-label {
	margin-block: var(--wp--preset--spacing--70) 0.75rem;
	font-size: var(--wp--preset--font-size--spec);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brand-mist);
}

.schedule-label:first-child {
	margin-block-start: 0;
}

.project-row {
	padding-block: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.project-row > * {
	margin: 0;
}

.project-row__name {
	font-size: var(--wp--preset--font-size--subheading);
}

.project-row__meta {
	margin-block-start: 0.25rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--brand-mist);
}

.project-row__meta span::before {
	content: "/";
	margin-inline: 0.5em;
	opacity: 0.6;
}

.project-row__spec {
	margin-block-start: 0.375rem;
	font-size: var(--wp--preset--font-size--spec);
	color: var(--wp--preset--color--surface);
}

/* ---------- Section call to action ---------- */

.section-cta {
	margin-block-start: var(--wp--preset--spacing--60);
}

/* The project as one line: the same team holds every station on it.
   The first node is gold, like the point of beginning in the hero. */
.why-line {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 1rem;
	margin-block: 1.25rem 0;
	padding: 0;
	list-style: none;
}

.why-line::before {
	content: "";
	position: absolute;
	top: 4px;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--wp--preset--color--brand);
}

.why-line li {
	position: relative;
	padding-top: 1.25rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	line-height: 1.35;
}

.why-line li::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 9px;
	height: 9px;
	box-sizing: border-box;
	background: var(--wp--preset--color--surface);
	border: 1.5px solid var(--wp--preset--color--brand);
}

.why-line li:first-child::before {
	background: var(--wp--preset--color--accent);
}

@media (max-width: 40rem) {
	.why-line {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.why-line::before {
		top: 0.4em;
		bottom: 0.4em;
		left: 4px;
		right: auto;
		width: 1px;
		height: auto;
	}

	.why-line li {
		padding: 0 0 0 1.5rem;
	}

	.why-line li::before {
		top: 0.35em;
	}
}

.contact-sheet {
	margin-block-start: var(--wp--preset--spacing--60);
}

.contact-sheet table {
	border-collapse: collapse;
	width: 100%;
}

.contact-sheet th,
.contact-sheet td {
	padding: 0.75rem 0;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	text-align: left;
	vertical-align: top;
}

.contact-sheet tr:first-child > * {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-sheet th {
	width: 7.5rem;
	padding-right: 1rem;
	padding-top: 0.875rem;
	font-size: var(--wp--preset--font-size--spec);
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--brand-mist);
}

.contact-sheet td {
	overflow-wrap: anywhere;
}

/* ---------- Homeowner steps: a ruled schedule, read top to bottom ---------- */

.lot-steps {
	counter-reset: lgm-step;
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.lot-steps li {
	counter-increment: lgm-step;
	display: grid;
	grid-template-columns: clamp(2.75rem, 8vw, 3.5rem) minmax(0, 1fr);
	column-gap: 1.25rem;
	padding-block: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--line);
	max-width: 60ch;
}

.lot-steps li::before {
	content: counter(lgm-step, decimal-leading-zero);
	grid-row: span 2;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 1.75rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	color: var(--wp--preset--color--brand);
}

.lot-steps strong {
	display: block;
	margin-block-end: 0.25rem;
	font-size: 1.125rem;
	color: var(--wp--preset--color--ink);
}

/* Step 1 is the visitor's own move: its rule carries the gold
   point of beginning. */
.lot-steps li:first-child {
	border-top: 1.5px solid var(--wp--preset--color--brand);
	position: relative;
}

.lot-steps li:first-child::after {
	content: "";
	position: absolute;
	top: -5px;
	left: 0;
	width: 9px;
	height: 9px;
	background: var(--wp--preset--color--accent);
}

.homeowners__title {
	max-width: 15ch;
}

.homeowners__copy > p {
	max-width: 44ch;
}

.homeowners__alt {
	margin-block-start: 0.875rem;
	color: var(--wp--preset--color--ink-muted);
}

.homeowners__photo {
	margin-block-start: var(--wp--preset--spacing--70);
}

/* ---------- FAQ ---------- */

.faq__list {
	border-top: 1px solid var(--wp--preset--color--line);
}

.faq-item {
	margin: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.faq-item summary {
	position: relative;
	padding: 1.25rem 3rem 1.25rem 0;
	font-size: 1.125rem;
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

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

.faq-item summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0.5rem;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%23284030' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item[open] summary::after {
	transform: rotate(45deg);
}

.faq-item summary:hover {
	color: var(--wp--preset--color--brand);
}

.faq-item p {
	max-width: 62ch;
	margin-block: 0 1.5rem;
}

/* ---------- Closing station ---------- */

.station--end {
	overflow: hidden;
}

/* The one diagonal corner on the page. */
.station--end::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: clamp(5rem, 11vw, 10rem);
	aspect-ratio: 1;
	background: var(--wp--preset--color--accent);
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
	pointer-events: none;
}

.station--end .station__body > * {
	position: relative;
	z-index: 1;
}

.station--end .station__body > .station__tag {
	position: absolute;
}

@media (max-width: 48.8125rem) {
	.station--end .station__body {
		padding-bottom: 3.5rem;
	}
}

.contact__details > h2 {
	max-width: 14ch;
	font-weight: 900;
}

/* ---------- Contact page ---------- */

/* A page without the survey line: stations keep their grounds, lose the gutter. */
.traverse--plain .station__body {
	padding-left: 0;
}

.traverse--plain .station__body::before,
.traverse--plain .station__body::after {
	content: none;
}

/* Phones: the guide comes before the form so the homeowner link lands above it. */
@media (max-width: 48.8125rem) {
	.inquiry__guide {
		order: -1;
		margin-block-end: var(--wp--preset--spacing--60);
	}
}

.contact-intro__title {
	max-width: 16ch;
	margin: 0;
	font-weight: 900;
	letter-spacing: -0.02em;
}

.contact-intro__lede {
	max-width: 38em;
	margin-block: var(--wp--preset--spacing--50) 0;
}

.contact-intro__alt {
	margin-block: 0.875rem 0;
	color: var(--wp--preset--color--brand-mist);
}

.inquiry__form > h2 {
	max-width: 20ch;
	margin-block: 0 var(--wp--preset--spacing--60);
}

/* What to send: a ruled schedule that stays in view beside the long form. */
.inquiry__guide {
	align-self: flex-start;
}

@media (min-width: 48.875rem) {
	.inquiry__guide {
		position: sticky;
		top: 7rem;
	}
}

.inquiry .schedule-label {
	margin-block: 0.5rem 0.75rem;
	color: var(--wp--preset--color--ink-muted);
}

.guide-row {
	position: relative;
	margin: 0;
	padding-block: 1.25rem;
	border-top: 1px solid var(--wp--preset--color--line);
}

.guide-row:first-of-type {
	border-top: 1.5px solid var(--wp--preset--color--brand);
}

.guide-row:last-child {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.guide-row > * {
	margin-block: 0;
}

.guide-row h4 {
	font-size: 1.125rem;
}

.guide-row p {
	margin-block-start: 0.5rem;
	max-width: 44ch;
	color: var(--wp--preset--color--ink-muted);
}

/* Arriving from a "Get a lot survey quote" link sets a gold point on the row. */
.guide-row:target h4::before {
	content: "";
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-right: 0.625rem;
	vertical-align: 0.15em;
	background: var(--wp--preset--color--accent);
}

/* ---------- Projects page ---------- */

.record__head {
	gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}

.record__copy {
	flex: 1 1 32rem;
}

.record__copy > * {
	margin: 0;
}

.record__title {
	max-width: 13ch;
}

.record__lede {
	max-width: 58ch;
	margin-block-start: var(--wp--preset--spacing--50);
}

.record__actions {
	margin: 0;
}

/* The record as a sheet title block: five measured figures, then the
   signing, site and registration rows, all ruled in white hairlines. */
.title-block {
	margin-block-start: var(--wp--preset--spacing--80);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 2px;
}

/* Core's flow-layout gap prints after this file; double classes outrank it. */
.title-block.title-block > *,
.title-block__figures.title-block__figures > *,
.title-block__rows.title-block__rows > * {
	margin: 0;
}

/* The 0+000 tag sits under the block: padding, since a margin collapses out of the body. */
.record .station__body {
	padding-bottom: 3rem;
}

/* Phones: the tag runs up the gutter, so it needs its own height clear. */
@media (max-width: 48.8125rem) {
	.record .station__body {
		padding-bottom: 5rem;
	}
}

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

.title-block__cell {
	padding: 1.25rem 1.25rem 1.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.title-block__cell:nth-child(odd) {
	border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.title-block__cell:last-child {
	grid-column: 1 / -1;
	border-right: 0;
}

@media (min-width: 64rem) {
	.title-block__figures {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.title-block__cell.title-block__cell {
		grid-column: auto;
		border-right: 1px solid rgba(255, 255, 255, 0.2);
	}

	.title-block__cell:last-child {
		border-right: 0;
	}
}

.title-block__cell > * {
	margin: 0;
}

.title-block__label,
.title-block__row span {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--spec);
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brand-mist);
}

.title-block__figure {
	margin-block-start: 1.5rem;
	font-family: var(--wp--preset--font-family--mono);
	font-variant-numeric: tabular-nums;
	font-size: clamp(2.75rem, 2rem + 2.6vw, 4.25rem);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.03em;
}

.title-block__cell > .title-block__note {
	margin-block-start: 0.625rem;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.35;
	color: var(--wp--preset--color--brand-mist);
}

.title-block__rows > * {
	display: grid;
	grid-template-columns: 7.5rem minmax(0, 1fr);
	gap: 0.25rem 1rem;
	align-items: baseline;
	margin: 0;
	padding: 0.875rem 1.25rem;
	font-size: var(--wp--preset--font-size--small);
}

.title-block__rows > * + * {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 64rem) {
	.title-block__rows {
		display: grid;
		grid-template-columns: 1.4fr 1fr 0.7fr;
	}

	.title-block__rows > * {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.title-block__rows > * + * {
		border-top: 0;
		border-left: 1px solid rgba(255, 255, 255, 0.2);
	}
}

@media (max-width: 40rem) {
	.title-block__rows > * {
		grid-template-columns: 1fr;
	}
}

/* Client stories: field-photo plates beside the client's copy and a ruled
   ledger. Phones read copy, plates, ledger; wide screens set the plates
   against the copy column (mirrored on --flip). */
.story__body {
	display: grid;
	row-gap: var(--wp--preset--spacing--70);
}

.story__body.story__body > * {
	margin: 0;
}

@media (min-width: 64rem) {
	.story__body {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		grid-template-rows: auto 1fr;
		grid-template-areas:
			"plates copy"
			"plates ledger";
		column-gap: var(--wp--preset--spacing--80);
		row-gap: var(--wp--preset--spacing--60);
	}

	.story--flip .story__body {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		grid-template-areas:
			"copy plates"
			"ledger plates";
	}

	.story__copy {
		grid-area: copy;
	}

	.story__body > .plates {
		grid-area: plates;
	}

	.story__body > .ledger {
		grid-area: ledger;
		align-self: start;
	}
}

.story__copy.story__copy > * {
	margin: 0;
}

.story__mark img {
	display: block;
	width: auto;
	height: 3.5rem;
	border-radius: 2px;
	mix-blend-mode: multiply;
}

/* Two clients on one story: marks sit on one line, ruled apart. */
.story__marks.story__marks {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
}

.story__marks.story__marks > * {
	margin: 0;
}

.story__marks .story__mark + .story__mark {
	padding-inline-start: 1.5rem;
	border-inline-start: 1px solid var(--wp--preset--color--line);
}

.story__mark--castille img {
	height: 3.25rem;
}

.story__copy > .story__title {
	max-width: 18ch;
	margin-block-start: var(--wp--preset--spacing--60);
	font-weight: 900;
	text-wrap: balance;
}

.story__copy > .story__lede {
	max-width: 46ch;
	margin-block-start: var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--body-lg);
}

.story__copy > .story__aside {
	max-width: 46ch;
	margin-block-start: var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink-muted);
}

/* Plates: three field photos on a six-column grid. One leads, one sits
   offset beside it, and the third hangs over the lead's corner like a
   detail inset on a plan sheet, mounted in the station's own ground. */
.plates {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	align-content: start;
}

.plates.plates > * {
	margin: 0;
}

.plate img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 2px;
}

.plate figcaption.wp-element-caption {
	margin: 0.5rem 0 0;
	font-size: var(--wp--preset--font-size--spec);
	line-height: 1.35;
	text-align: left;
	color: var(--wp--preset--color--ink-muted);
}

.plate--a {
	grid-column: 1 / -1;
}

/* On phones the pair's inset rides up over the lead's lower right corner. */
.plates--pair .plate--b {
	position: relative;
	z-index: 1;
	grid-column: 2;
	margin-block-start: -5rem;
}

.plates--pair .plate--b img {
	outline: 0.5rem solid var(--bg);
}

.plates--pair .plate--a figcaption.wp-element-caption {
	max-width: 50%;
}

@media (min-width: 40rem) {
	.plates {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.plates .plate--a {
		grid-column: 1 / 5;
		grid-row: 1 / 3;
	}

	.plates .plate--b {
		grid-column: 5 / 7;
		grid-row: 1;
		margin-block-start: 3rem;
	}

	.plates .plate--c {
		position: relative;
		z-index: 1;
		grid-column: 4 / 7;
		grid-row: 2;
		align-self: end;
		margin-block-end: -3.5rem;
	}

	.plate--c img {
		outline: 0.5rem solid var(--bg);
	}

	/* The lead's caption stops short of the inset that overlaps its corner. */
	.plate--a figcaption.wp-element-caption {
		max-width: 70%;
	}

	/* Pair: a lead plate with one inset hanging off its lower left corner. */
	.plates--pair .plate--a {
		grid-column: 2 / 7;
	}

	.plates--pair .plate--b {
		grid-column: 1 / 4;
		grid-row: 2;
		align-self: end;
		margin-block: 0 -3.5rem;
	}

	.plates--pair .plate--a figcaption.wp-element-caption {
		max-width: 45%;
		margin-inline-start: auto;
		text-align: right;
	}

	/* The hanging inset needs room before the ledger on stacked layouts. */
	.story__body > .plates {
		margin-block-end: 3.5rem;
	}
}

@media (min-width: 64rem) {
	.story--flip .story__body > .plates {
		margin-block-end: 0;
	}

	/* SM: six malls read as a two-column ledger under the plates and copy. */
	.story:not(.story--flip) .story__body {
		grid-template-rows: auto auto;
		grid-template-areas:
			"plates copy"
			"ledger ledger";
		align-items: center;
	}

	.story:not(.story--flip) .ledger {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: repeat(3, auto);
		grid-auto-flow: column;
		column-gap: var(--wp--preset--spacing--80);
		margin-block-start: var(--wp--preset--spacing--40);
	}
}

/* Ledger: the story's measured facts as a ruled schedule. */
.ledger {
	border-top: 1.5px solid var(--wp--preset--color--brand);
}

.ledger.ledger > * {
	margin: 0;
}

.ledger__row {
	display: grid;
	grid-template-columns: 7rem minmax(0, 1fr);
	column-gap: 1rem;
	padding-block: 0.75rem;
	align-content: start;
	border-bottom: 1px solid var(--wp--preset--color--line);
	line-height: 1.4;
}

.ledger__year,
.ledger__key {
	grid-row: span 3;
	padding-top: 0.2em;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--spec);
	font-variant-numeric: tabular-nums;
	font-weight: 500;
}

.ledger__year {
	color: var(--wp--preset--color--brand);
}

.ledger__key {
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-muted);
}

.ledger__name,
.ledger__place,
.ledger__spec,
.ledger__val {
	display: block;
}

.ledger__place,
.ledger__spec {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink-muted);
}

.ledger__spec {
	color: var(--wp--preset--color--ink);
}

@media (max-width: 40rem) {
	.ledger__row {
		grid-template-columns: 5.75rem minmax(0, 1fr);
	}
}

.ledger--sheet .ledger__row {
	grid-template-columns: 5.5rem minmax(0, 1fr);
}

.ledger__val--mono {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--spec);
}

/* Homeowners: the lot survey path on the dark band. Phones read the copy
   and quote button before the photo; wide screens set the photo beside it. */
.lots__body {
	display: grid;
	row-gap: var(--wp--preset--spacing--70);
}

.lots__body.lots__body > *,
.lots__copy.lots__copy > *,
.lots__jobs.lots__jobs > * {
	margin: 0;
}

@media (min-width: 64rem) {
	.lots__body {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		grid-template-areas: "photo copy";
		column-gap: var(--wp--preset--spacing--80);
		align-items: center;
	}

	.lots__copy {
		grid-area: copy;
	}

	.lots__photo {
		grid-area: photo;
	}
}

.lots__photo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 2px;
}

.lots__photo figcaption.wp-element-caption {
	margin: 0.5rem 0 0;
	font-size: var(--wp--preset--font-size--spec);
	text-align: left;
}

.lots__copy > .lots__title {
	max-width: 11ch;
	font-size: clamp(2.5rem, 1.5rem + 4vw, 4.75rem);
	font-weight: 900;
	line-height: 0.98;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.lots__copy > .lots__lede {
	max-width: 44ch;
	margin-block-start: var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--body-lg);
	color: var(--wp--preset--color--brand-mist);
}

.lots__copy > .lots__jobs {
	margin-block-start: var(--wp--preset--spacing--70);
	border-top: 1.5px solid var(--wp--preset--color--brand-mist);
}

.lots__job {
	display: grid;
	gap: 0.375rem 2rem;
	padding-block: 1.25rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.lots__job strong {
	font-size: var(--wp--preset--font-size--subheading);
	line-height: 1.2;
}

.lots__job span {
	max-width: 44ch;
	color: var(--wp--preset--color--brand-mist);
}

@media (min-width: 40rem) {
	.lots__job {
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
		align-items: baseline;
	}
}

.lots__copy > .lots__need {
	max-width: 52ch;
	margin-block-start: var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--brand-mist);
}

.lots__copy > .lots__cta {
	margin-block-start: var(--wp--preset--spacing--60);
}

.lots__copy > .lots__alt {
	margin-block-start: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--brand-mist);
}

/* Register tabs: the five survey types as a tab strip ruled to the table.
   The strip scrolls sideways on phones rather than wrapping. */
.register-tabs__list {
	display: flex;
	overflow-x: auto;
	scrollbar-width: none;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

/* Phones: the five tabs stack as a ruled list so every survey type shows;
   a square node marks the selected one. */
@media (max-width: 48.8125rem) {
	.register-tabs .register-tabs__list {
		flex-direction: column;
		overflow: visible;
		border-top: 1.5px solid var(--wp--preset--color--brand);
		border-bottom: 0;
	}

	.register-tabs .register-tabs__list [role="tab"] {
		padding: 0.875rem 0 0.875rem 1.25rem;
		margin-inline-end: 0;
		border-bottom: 1px solid var(--wp--preset--color--line);
		text-align: left;
	}

	.register-tabs .register-tabs__list [aria-selected="true"]::after {
		inset: 50% auto auto 0;
		width: 9px;
		height: 9px;
		border: 0;
		background: var(--wp--preset--color--brand);
		transform: translateY(-50%);
	}

	.register-tabs__panel .wp-block-table.register {
		margin-block-start: var(--wp--preset--spacing--50);
	}
}

.register-tabs__list [role="tab"] {
	flex: none;
	position: relative;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1rem 1.5rem 1.125rem 0;
	margin-inline-end: 1.5rem;
	border: 0;
	background: none;
	font: inherit;
	font-weight: 700;
	color: var(--wp--preset--color--ink-muted);
	cursor: pointer;
	transition: color 160ms ease-out;
}

@media (min-width: 64rem) {
	.register-tabs__list [role="tab"] {
		flex: 1 1 0;
		margin-inline-end: 0;
		padding-inline: 1rem;
	}

	.register-tabs__list [role="tab"]:first-child {
		padding-inline-start: 0;
	}

	.register-tabs__list [role="tab"] + [role="tab"]::before {
		content: "";
		position: absolute;
		top: 1rem;
		bottom: 1rem;
		left: 0;
		border-left: 1px solid var(--wp--preset--color--line);
	}
}

.register-tabs__list [role="tab"]:hover {
	color: var(--wp--preset--color--ink);
}

.register-tabs__list [role="tab"]:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-ink);
	outline-offset: -2px;
}

.register-tabs__list [aria-selected="true"] {
	color: var(--wp--preset--color--ink);
}

.register-tabs__list [aria-selected="true"]::after {
	content: "";
	position: absolute;
	inset: auto 0 -1px;
	border-bottom: 3px solid var(--wp--preset--color--brand);
}

.register-tabs__list code {
	padding: 0;
	background: none;
	font-size: var(--wp--preset--font-size--spec);
	font-weight: 500;
	color: var(--wp--preset--color--ink-muted);
}

.register-tabs__list [aria-selected="true"] code {
	color: var(--wp--preset--color--brand);
}

.register-tabs__panel:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-ink);
	outline-offset: 4px;
}

.register-tabs__panel .wp-block-table.register {
	margin-block-start: var(--wp--preset--spacing--30);
}

.wp-block-table.register {
	margin: 0;
}

.wp-block-table.register table {
	width: 100%;
	border-collapse: collapse;
}

.wp-block-table.register :is(th, td) {
	padding: 0.875rem 1.5rem 0.875rem 0;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	text-align: left;
	vertical-align: top;
}

.wp-block-table.register thead {
	border: 0;
}

.wp-block-table.register th {
	padding-block: 0.625rem;
	border-bottom: 1.5px solid var(--wp--preset--color--brand);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--spec);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-muted);
}

.wp-block-table.register td:first-child {
	width: 34%;
	font-weight: 700;
}

.wp-block-table.register td:nth-child(2) {
	width: 24%;
	color: var(--wp--preset--color--ink-muted);
}

.wp-block-table.register :is(th, td):last-child {
	width: 9.5rem;
	padding-right: 0;
	text-align: right;
}

.wp-block-table.register td:last-child {
	font-family: var(--wp--preset--font-family--mono);
	font-variant-numeric: tabular-nums;
	font-size: var(--wp--preset--font-size--spec);
	padding-top: 1rem;
	color: var(--wp--preset--color--brand);
}

.wp-block-table.register tbody tr {
	transition: background-color 160ms ease-out;
}

.wp-block-table.register tbody tr:hover {
	background: var(--wp--preset--color--surface-alt);
}

/* Phones: each project reads as a short record instead of a four-column row. */
@media (max-width: 48.8125rem) {
	.wp-block-table.register thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.wp-block-table.register tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 0.25rem 1rem;
		padding-block: 0.875rem;
		border-bottom: 1px solid var(--wp--preset--color--line);
	}

	.wp-block-table.register tbody tr:first-child {
		border-top: 1.5px solid var(--wp--preset--color--brand);
	}

	.wp-block-table.register :is(th, td) {
		width: auto;
		padding: 0;
		border: 0;
	}

	.wp-block-table.register td:first-child,
	.wp-block-table.register td:nth-child(3) {
		grid-column: 1 / -1;
		width: auto;
	}

	.wp-block-table.register td:nth-child(2) {
		grid-row: 3;
		width: auto;
		font-size: var(--wp--preset--font-size--small);
	}

	.wp-block-table.register td:nth-child(3) {
		grid-row: 2;
		font-size: var(--wp--preset--font-size--small);
	}

	.wp-block-table.register td:last-child {
		grid-row: 3;
		width: auto;
		padding-top: 0.125rem;
	}
}

.close__title {
	max-width: 16ch;
	font-weight: 900;
}

.close__lede {
	max-width: 52ch;
}

.close__alt {
	margin-block-start: var(--wp--preset--spacing--50);
}

/* ---------- Inquiry form (Ninja Forms) ---------- */

.inquiry .nf-form-cont {
	--nf-error: #a8281e;
	--nf-border: var(--wp--preset--color--ink-muted);
}

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

.inquiry .nf-form-fields-required {
	margin-block-end: var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink-muted);
}

.inquiry .ninja-forms-req-symbol {
	color: var(--wp--preset--color--accent-ink);
}

.inquiry nf-fields-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--50);
}

@media (min-width: 40rem) {
	.inquiry nf-fields-wrap {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Lists, notes and the submit row take the full width; short fields pair up.
	   A short field left alone before a full-width one takes the row. */
	.inquiry nf-field {
		grid-column: 1 / -1;
	}

	.inquiry nf-field:has(> .textbox-container:not(.submit-container)),
	.inquiry nf-field:has(> .listselect-container) {
		grid-column: auto;
	}

	.inquiry nf-field:has(> .textbox-container:not(.submit-container)):has(+ nf-field > :is(.listcheckbox-container, .listradio-container, .textarea-container)) {
		grid-column: 1 / -1;
	}
}

.inquiry .nf-field-container {
	margin: 0;
}

.inquiry .nf-field-label {
	margin-block-end: 0.5rem;
}

.inquiry .nf-field-label label,
.inquiry .nf-field-label .nf-label-span {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.4;
}

.inquiry .nf-field-element :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
	display: block;
	width: 100%;
	min-height: 3rem;
	padding: 0.75rem 0.875rem;
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--nf-border);
	border-radius: 2px;
	transition: border-color 160ms ease-out;
}

.inquiry .nf-field-element :is(input, select, textarea):hover {
	border-color: var(--wp--preset--color--brand);
}

.inquiry .nf-field-element :is(input, select, textarea):focus-visible {
	border-color: var(--wp--preset--color--brand);
	outline-offset: 2px;
}

.inquiry .nf-field-element textarea {
	height: 9rem;
	resize: vertical;
}

.inquiry .nf-field-element select {
	padding-right: 2.75rem;
	appearance: none;
	cursor: pointer;
	background: var(--wp--preset--color--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 5l5 5 5-5' fill='none' stroke='%23284030' stroke-width='1.5'/%3E%3C/svg%3E") right 1rem center / 0.875rem no-repeat;
}

/* Services: a ruled two-column schedule of square check marks. */
.inquiry .list-checkbox-wrap .nf-field-element ul {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: var(--wp--preset--spacing--50);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

@media (min-width: 40rem) {
	.inquiry .list-checkbox-wrap .nf-field-element ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.inquiry .list-checkbox-wrap .nf-field-element li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 2.75rem;
	margin: 0 !important;
	padding: 0.375rem 0;
	border-top: 1px solid var(--wp--preset--color--line);
}

.inquiry .list-checkbox-wrap .nf-field-element li input {
	flex: none;
	float: none;
	width: 1.125rem !important;
	height: 1.125rem;
	margin: 0;
	appearance: none;
	cursor: pointer;
	background: var(--wp--preset--color--surface) center / 0.75rem no-repeat;
	border: 1.5px solid var(--nf-border);
	border-radius: 2px;
	transition: background-color 160ms ease-out, border-color 160ms ease-out;
}

.inquiry .list-checkbox-wrap .nf-field-element li input:checked {
	background-color: var(--wp--preset--color--brand);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3' fill='none' stroke='%23fff' stroke-width='1.75'/%3E%3C/svg%3E");
	border-color: var(--wp--preset--color--brand);
}

.inquiry .list-checkbox-wrap .nf-field-element li label {
	flex: 1;
	margin: 0;
	padding-block: 0.25rem;
	font-size: var(--wp--preset--font-size--small);
	cursor: pointer;
}

.inquiry .list-checkbox-wrap li:hover input {
	border-color: var(--wp--preset--color--brand);
}

.inquiry .list-checkbox-wrap .nf-checked-label {
	color: var(--wp--preset--color--brand);
	font-weight: 700;
}

/* Errors name the field; the border and message carry the state. */
.inquiry .nf-error .nf-field-element :is(input, select, textarea),
.inquiry .nf-error.listcheckbox-container li input {
	border-color: var(--nf-error);
}

.inquiry .nf-error-msg {
	margin-block-start: 0.375rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--nf-error);
}

.inquiry .nf-form-errors .nf-error-msg {
	margin-block-start: var(--wp--preset--spacing--40);
}

.inquiry .submit-container .nf-field-label {
	display: none;
}

.inquiry .submit-container {
	margin-block-start: var(--wp--preset--spacing--30);
}

.inquiry .submit-container input[type="submit"],
.inquiry .submit-container input[type="button"] {
	width: auto;
	min-height: 3rem;
	padding: 0.875rem 1.5rem;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--wp--preset--color--brand-deep);
	background: var(--wp--preset--color--accent);
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: 2px;
	cursor: pointer;
	transition: background-color 160ms ease-out, border-color 160ms ease-out;
}

.inquiry .submit-container input:hover {
	background: var(--wp--preset--color--accent-tint);
	border-color: var(--wp--preset--color--accent-ink);
}

.inquiry .submit-container input:disabled {
	cursor: progress;
	opacity: 0.6;
}

/* Sent: the form hides and its message stands as a ruled note. */
.inquiry .nf-response-msg {
	padding: var(--wp--preset--spacing--60) 0;
	font-size: var(--wp--preset--font-size--body-lg);
	border-block: 1.5px solid var(--wp--preset--color--brand);
}

.inquiry .nf-response-msg > :first-child {
	margin-block-start: 0;
}

.inquiry .nf-response-msg > :last-child {
	margin-block-end: 0;
}

/* ---------- Footer: the plan sheet's title block ---------- */

.site-footer__sheet {
	display: grid;
	grid-template-columns: 1fr;
	position: relative;
	border-block: 1px solid rgba(255, 255, 255, 0.14);
}

/* The sheet's top rule repeats the header's scale, so the page opens and closes on it. */
.site-footer__sheet::before {
	content: "";
	position: absolute;
	inset: -8px 0 auto;
	height: 7px;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 1px, transparent 1px) 0 100% / 64px 7px repeat-x,
		linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px) 0 100% / 8px 4px repeat-x;
}

.site-footer__sheet.site-footer__sheet > * {
	margin-block: 0;
}

.site-footer__cell {
	padding-block: var(--wp--preset--spacing--60);
}

.site-footer__cell + .site-footer__cell {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__cell > * {
	margin-block: 0;
}

.site-footer__cell > * + * {
	margin-block-start: var(--wp--preset--spacing--40);
}

@media (min-width: 40rem) {
	.site-footer__sheet {
		grid-template-columns: 1fr 1fr;
	}

	.site-footer__cell {
		padding-inline: var(--wp--preset--spacing--50);
	}

	.site-footer__cell:nth-child(odd) {
		padding-inline-start: 0;
	}

	.site-footer__cell:nth-child(even) {
		border-left: 1px solid rgba(255, 255, 255, 0.14);
	}

	.site-footer__cell:nth-child(2) {
		border-top: 0;
	}
}

@media (min-width: 64rem) {
	.site-footer__sheet {
		grid-template-columns: 1.3fr 0.7fr 1.1fr 1.1fr;
	}

	.site-footer__cell + .site-footer__cell {
		padding-inline-start: var(--wp--preset--spacing--50);
		border-top: 0;
		border-left: 1px solid rgba(255, 255, 255, 0.14);
	}

	.site-footer__cell:last-child {
		padding-inline-end: 0;
	}
}

.site-footer__logo img {
	box-sizing: content-box;
	padding: 0.875rem 1.125rem;
	background: var(--wp--preset--color--surface);
	border-radius: 2px;
}

.site-footer__heading {
	font-size: var(--wp--preset--font-size--spec);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--surface);
}

.site-footer a {
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

.site-footer__links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.25rem var(--wp--preset--spacing--50);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 64rem) {
	.site-footer__links {
		grid-template-columns: 1fr;
	}
}

.site-footer__links a {
	display: inline-block;
	padding-block: 0.25rem;
}

.site-footer__figures {
	font-family: var(--wp--preset--font-family--mono);
	font-variant-numeric: tabular-nums;
	line-height: 1.9;
}

.site-footer__figures::before {
	top: 0.3em;
}

.site-footer > .site-footer__base.site-footer__base {
	margin-block-start: 0;
}

.site-footer__base {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--60);
	padding-block-start: var(--wp--preset--spacing--50);
}

.site-footer__base > * {
	margin-block: 0;
}

.site-footer__legal {
	flex: 1 1 24rem;
	letter-spacing: 0.02em;
}

/* A north arrow closes the sheet, bottom right. */
.site-footer__copy {
	display: flex;
	align-items: flex-end;
	gap: var(--wp--preset--spacing--50);
}

.site-footer__copy::after {
	content: "";
	flex-shrink: 0;
	width: 0.875rem;
	height: 1.75rem;
	background: var(--wp--preset--color--brand-mist);
	opacity: 0.55;
	mask: url(../icons/north-arrow.svg) center / contain no-repeat;
}

/* ---------- Services page ---------- */

/* Index of details: the opening station's drawing list, one ruled row per
   service group (number, name, chainage), each linking down to its detail.
   Wide screens set it as a five-cell sheet title block, like the Projects record. */
.services-intro .detail-index {
	margin: var(--wp--preset--spacing--70) 0 0;
	padding: 0;
	list-style: none;
	border-top: 1.5px solid var(--wp--preset--color--brand-mist);
}

.detail-index li {
	margin: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-index a {
	display: grid;
	grid-template-columns: 1.75rem minmax(0, 1fr) auto;
	column-gap: 1rem;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.625rem 0.5rem 0.625rem 0;
	color: var(--wp--preset--color--surface);
	text-decoration: none;
	transition: background-color 160ms ease-out;
}

.detail-index__num {
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--brand-mist);
	border-radius: 2px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.detail-index__name {
	font-size: var(--wp--preset--font-size--body);
	font-weight: 700;
	line-height: 1.35;
}

.detail-index__ch {
	padding: 0;
	background: none;
	font-size: var(--wp--preset--font-size--spec);
	font-weight: 500;
	color: var(--wp--preset--color--brand-mist);
	transition: color 160ms ease-out;
}

.detail-index a:hover {
	background-color: rgba(255, 255, 255, 0.06);
}

.detail-index a:hover .detail-index__name {
	text-decoration: underline;
	text-underline-offset: 0.22em;
	text-decoration-thickness: 1px;
}

.detail-index a:hover .detail-index__ch {
	color: var(--wp--preset--color--accent);
}

.detail-index a:focus-visible {
	outline-color: var(--wp--preset--color--accent);
}

@media (min-width: 64rem) {
	.services-intro .detail-index {
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		border: 1px solid rgba(255, 255, 255, 0.2);
		border-top: 1.5px solid var(--wp--preset--color--brand-mist);
		border-radius: 2px;
	}

	.detail-index li {
		border-bottom: 0;
	}

	.detail-index li + li {
		border-left: 1px solid rgba(255, 255, 255, 0.2);
	}

	.detail-index a {
		grid-template-columns: 1.75rem minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		row-gap: 2.5rem;
		align-items: start;
		height: 100%;
		box-sizing: border-box;
		padding: 1.25rem 1.25rem 1.5rem;
	}

	.detail-index__ch {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
		align-self: center;
	}

	.detail-index__name {
		grid-column: 1 / -1;
		grid-row: 2;
		align-self: end;
		font-size: var(--wp--preset--font-size--subheading);
		line-height: 1.25;
	}
}

/* Opening: a short title block left, one field photo as a drawing plate right. */
.services-intro__head {
	display: grid;
	gap: var(--wp--preset--spacing--70);
	align-items: center;
}

@media (min-width: 56rem) {
	.services-intro__head {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
		gap: var(--wp--preset--spacing--80);
	}
}

.services-intro__head.services-intro__head > * {
	margin: 0;
}

.services-intro .record__lede {
	max-width: 44ch;
	margin-block-start: var(--wp--preset--spacing--40);
}

.services-intro .record__actions {
	margin-block-start: var(--wp--preset--spacing--60);
}

.services-intro__plate {
	position: relative;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 2px;
	padding: 0.5rem;
}

.services-intro__plate img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 2px;
}

/* Point of beginning: the plate's one gold mark. */
.services-intro__plate::before {
	content: "";
	position: absolute;
	top: -4px;
	left: -4px;
	width: 7px;
	height: 7px;
	background: var(--wp--preset--color--accent);
}

.services-intro__plate figcaption.wp-element-caption {
	display: flex;
	gap: 0.75rem;
	margin: 0.5rem 0 0;
	color: var(--wp--preset--color--brand-mist);
	font-size: var(--wp--preset--font-size--spec);
}

.services-intro__plate figcaption code {
	padding: 0;
	background: none;
	color: inherit;
	font-weight: 500;
}

/* Detail: one service group as a numbered drawing detail. Phones read copy,
   plates, instruments, work; wide screens set plates against the copy, with
   the work schedule under the plates and the instruments under the copy. */
.detail__body {
	display: grid;
	row-gap: var(--wp--preset--spacing--70);
}

.detail__body.detail__body > *,
.detail__copy.detail__copy > *,
.detail__kit.detail__kit > *,
.detail__work.detail__work > * {
	margin: 0;
}

@media (min-width: 40rem) {
	.detail__body > .plates:not(.plates--single) {
		margin-block-end: 3.5rem;
	}
}

@media (min-width: 64rem) {
	.detail__body {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		grid-template-areas:
			"plates copy"
			"work kit";
		column-gap: var(--wp--preset--spacing--80);
		align-items: start;
	}

	.detail--flip .detail__body {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		grid-template-areas:
			"copy plates"
			"kit work";
	}

	.detail__body:not(:has(.detail__work)) {
		grid-template-areas:
			"plates copy"
			"plates kit";
	}

	.detail__copy {
		grid-area: copy;
	}

	.detail__body > .plates {
		grid-area: plates;
	}

	.detail__kit {
		grid-area: kit;
	}

	.detail__work {
		grid-area: work;
	}
}

/* The detail marker: number over the count, a gold point on its corner. */
.detail__head {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
}

.detail__head.detail__head > * {
	margin: 0;
}

.detail__mark {
	position: relative;
	flex: none;
	display: grid;
	width: 3.5rem;
	margin-block-start: 0.25rem;
	border: 1.5px solid var(--wp--preset--color--brand);
	border-radius: 2px;
	font-family: var(--wp--preset--font-family--mono);
	font-variant-numeric: tabular-nums;
	text-align: center;
	color: var(--wp--preset--color--brand);
}

.detail__mark::before {
	content: "";
	position: absolute;
	top: -4.5px;
	left: -4.5px;
	width: 7px;
	height: 7px;
	background: var(--wp--preset--color--accent);
}

.detail__num {
	padding: 0.5rem 0 0.375rem;
	font-size: var(--wp--preset--font-size--figure);
	font-weight: 500;
	line-height: 1;
}

.detail__of {
	padding: 0.3125rem 0;
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: var(--wp--preset--font-size--spec);
	line-height: 1;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--ink-muted);
}

.detail__title {
	max-width: 18ch;
	font-weight: 700;
	text-wrap: balance;
}

.detail__copy > .detail__lede {
	max-width: 46ch;
	margin-block-start: var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--body-lg);
}

/* Scope and offer lists: ruled schedules with a square point per row. */
.detail__copy > .detail__scope {
	margin-block-start: var(--wp--preset--spacing--60);
}

.detail__scope,
.offer__list {
	padding: 0;
	list-style: none;
	border-top: 1.5px solid var(--wp--preset--color--brand);
}

.detail__scope li,
.offer__list li {
	position: relative;
	margin: 0;
	padding: 0.625rem 0 0.625rem 1.25rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
	line-height: 1.4;
}

.detail__scope li::before,
.offer__list li::before {
	content: "";
	position: absolute;
	top: calc(0.625rem + 0.7em - 2.5px);
	left: 0;
	width: 5px;
	height: 5px;
	background: var(--wp--preset--color--brand);
}

.detail__label {
	margin-block-end: 0.75rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--spec);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-muted);
}

.detail__kit .ledger--sheet .ledger__row {
	grid-template-columns: 7.5rem minmax(0, 1fr);
}

/* Single plate: one wide sheet, no inset. */
.plates--single .plate--a.plate--a {
	grid-column: 1 / -1;
	grid-row: auto;
}

/* A plate still to be photographed: a dashed frame, like a proposed line. */
.plate--todo {
	display: grid;
	place-items: center;
	box-sizing: border-box;
	padding: 1.5rem;
	border: 1px dashed var(--wp--preset--color--ink-muted);
	border-radius: 2px;
	background: var(--wp--preset--color--surface-alt);
	text-align: center;
}

.plate--16-9 {
	aspect-ratio: 16 / 9;
}

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

.station--alt .plate--todo {
	background: var(--wp--preset--color--surface);
}

.plate--todo p {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink-muted);
}

.plate--todo code {
	display: block;
	margin-block-end: 0.375rem;
	padding: 0;
	background: none;
	font-size: var(--wp--preset--font-size--spec);
	font-weight: 500;
	color: var(--wp--preset--color--accent-ink);
}

/* Aerial mapping: the green detail. Copy above, the flight record frame
   beside its flight data, recent work below. */
.station--dark .detail__mark {
	border-color: var(--wp--preset--color--brand-mist);
	color: var(--wp--preset--color--surface);
}

.station--dark .detail__of {
	border-top-color: rgba(255, 255, 255, 0.2);
	color: var(--wp--preset--color--brand-mist);
}

.station--dark .detail__lede,
.station--dark .detail__label {
	color: var(--wp--preset--color--brand-mist);
}

.station--dark .detail__scope,
.station--dark .ledger {
	border-top-color: var(--wp--preset--color--brand-mist);
}

.station--dark .detail__scope li,
.station--dark .ledger__row {
	border-bottom-color: rgba(255, 255, 255, 0.2);
}

.station--dark .detail__scope li::before {
	background: var(--wp--preset--color--brand-mist);
}

.station--dark :is(.ledger__year, .ledger__key, .ledger__place) {
	color: var(--wp--preset--color--brand-mist);
}

.station--dark .ledger__spec {
	color: var(--wp--preset--color--surface);
}

@media (min-width: 64rem) {
	.detail--flight .detail__body {
		grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
		grid-template-areas:
			"copy copy"
			"media kit"
			"work work";
	}

	.detail--flight .detail__copy {
		display: grid;
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		grid-template-areas:
			"head scope"
			"lede scope";
		column-gap: var(--wp--preset--spacing--80);
		align-items: start;
	}

	.detail--flight .detail__head {
		grid-area: head;
	}

	.detail--flight .detail__lede {
		grid-area: lede;
	}

	.detail--flight .detail__copy > .detail__scope {
		grid-area: scope;
		margin: 0;
	}

	.detail--flight .flight {
		grid-area: media;
	}

	.detail--flight .detail__work .ledger {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--wp--preset--spacing--80);
	}
}

.flight__frame {
	position: relative;
	margin: 0;
	outline: 1px solid rgba(255, 255, 255, 0.2);
	outline-offset: 0.75rem;
}

.flight__frame img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 2px;
	filter: grayscale(0.4) brightness(0.65);
}

/* Frame centre: a sighting square with a gold point, until the video lands. */
.flight__frame::before,
.flight__frame::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	pointer-events: none;
	transform: translate(-50%, -50%);
}

.flight__frame::before {
	width: 4rem;
	height: 4rem;
	border: 1px solid rgba(255, 255, 255, 0.5);
}

.flight__frame::after {
	width: 7px;
	height: 7px;
	background: var(--wp--preset--color--accent);
}

.flight__frame figcaption.wp-element-caption {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	max-width: calc(100% - 2rem);
	margin: 0;
	padding: 0.5rem 0.75rem;
	border-radius: 2px;
	background: var(--wp--preset--color--brand-deep);
	font-size: var(--wp--preset--font-size--spec);
	line-height: 1.4;
	text-align: left;
	color: var(--wp--preset--color--surface);
}

.flight__todo {
	margin-inline-end: 0.5em;
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 500;
	color: var(--wp--preset--color--accent);
}

@media (max-width: 40rem) {
	.flight__frame figcaption.wp-element-caption {
		position: static;
		max-width: none;
		margin-block-start: 0.5rem;
		padding: 0;
		background: none;
		color: var(--wp--preset--color--brand-mist);
	}
}

/* Offers: the two ways in, side by side, each with its own action. */
.offers .offers__grid {
	display: grid;
	gap: var(--wp--preset--spacing--70);
	margin-block-start: var(--wp--preset--spacing--80);
}

.offers__grid.offers__grid > *,
.offer.offer > * {
	margin: 0;
}

.offer {
	display: flex;
	flex-direction: column;
}

.offer__name {
	max-width: 22ch;
	font-size: var(--wp--preset--font-size--heading);
	text-wrap: balance;
}

.offer > .offer__for {
	margin-block-start: var(--wp--preset--spacing--30);
	max-width: 44ch;
	color: var(--wp--preset--color--ink-muted);
}

.offer > .offer__list {
	margin-block-start: var(--wp--preset--spacing--50);
}

.offer > .offer__cta {
	margin-block-start: var(--wp--preset--spacing--60);
}

.offer > .offer__alt {
	margin-block-start: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--ink-muted);
}

@media (min-width: 56rem) {
	.offers .offers__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--wp--preset--spacing--80);
		row-gap: 0;
	}

	/* Both offers share rows so the buttons line up. */
	.offer {
		display: grid;
		grid-row: span 5;
		grid-template-rows: subgrid;
		align-items: start;
	}
}
