/*
 * Hidden Edge UK: site styles.
 * Brand (locked 15 Oct 2026): Unbounded headings, Outfit reading text at
 * line-height 1.2 and weight 200 (locked by the owner, 18 Oct 2026), IBM Plex Mono labels. Charcoal #1A1A1A on #F2F0EF,
 * oxblood #5C1A1B for buttons and small accents only.
 * Phone first: 16px gutter, no horizontal scroll, 44px tap targets.
 */

/* ---------- Fonts (self-hosted, no third-party host) ---------- */

@font-face {
	font-family: "Unbounded";
	src: url("../fonts/Unbounded-Variable.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Outfit";
	src: url("../fonts/Outfit-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IBM Plex Mono";
	src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IBM Plex Mono";
	src: url("../fonts/IBMPlexMono-SemiBold.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
	--he-bg: #F2F0EF;
	--he-bg-alt: #E9E6E4;
	--he-ink: #1A1A1A;
	--he-ox: #5C1A1B;
	--he-ox-hover: #6F2022;
	/* Lighter oxblood tint for mono labels on dark photos: see the contrast note on .he-label--tint. */
	--he-tint: #DD7578;
	--he-mute: #4A4543;
	--he-rule: #CFCAC7;
	--he-on-dark: #F2F0EF;
	--he-on-dark-mute: #D9D5D3;
	--he-field-border: #6B6563;
	--he-error: #9A1B1B;

	--he-display: "Unbounded", system-ui, -apple-system, "Segoe UI", sans-serif;
	--he-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
	--he-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--he-gutter: 16px;
	--he-max: 1280px;
}

@media (min-width: 700px) {
	:root {
		--he-gutter: 32px;
	}
}

@media (min-width: 1100px) {
	:root {
		--he-gutter: 56px;
	}
}

/* ---------- Base ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

html.he-nav-open,
html.he-nav-open body {
	overflow: hidden;
}

body {
	margin: 0;
	background: var(--he-bg);
	color: var(--he-ink);
	font-family: var(--he-body);
	font-size: 1.0625rem;
	font-weight: 200;
	line-height: 1.2;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

.he-page {
	position: relative;
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
	margin: 0;
}

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

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

:focus-visible {
	outline: 3px solid var(--he-ink);
	outline-offset: 3px;
}

.he-on-dark :focus-visible {
	outline-color: var(--he-on-dark);
}

.he-main:focus {
	outline: none;
}

.he-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.he-skip {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 100000;
	padding: 12px 18px;
	background: var(--he-bg);
	color: var(--he-ink);
	font-weight: 600;
	text-decoration: none;
	border-radius: 2px;
}

.he-skip:focus {
	top: 16px;
}

.he-skip:focus-visible {
	outline: 3px solid var(--he-ink);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--he-bg);
}

.he-wrap {
	width: 100%;
	max-width: var(--he-max);
	margin-inline: auto;
	padding-inline: var(--he-gutter);
}

/* ---------- Labels, headings, buttons ---------- */

.he-label {
	margin: 0 0 18px;
	font-family: var(--he-mono);
	font-weight: 600;
	font-size: 0.8125rem;
	letter-spacing: 0.18em;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--he-ox);
}

/*
 * Lighter oxblood tint for mono labels on the darkened photos. WCAG contrast of
 * #DD7578 is 5.71:1 on flat charcoal. Measured on the real photos under the
 * overlays below, as rendered at 320, 390, 768, 1024, 1440 and 1920px wide
 * (brightest pixel behind each text box, text hidden so only the photo and
 * scrims remain). Worst cases: label 4.64:1 on the home hero (768px) and
 * 4.58:1 on the inner page bands (standards, 1440px), AA needs 4.5:1; hero h1
 * 4.32:1 (1440px), needs 3:1; hero sub line 5.42:1, outline button text 8.61:1
 * and its border 5.18:1 (needs 3:1); logo 3.43:1, needs 3:1. A screen wider
 * than 2000px is not covered: the home label is 3.98:1 at 2560px.
 */
.he-label--tint {
	color: var(--he-tint);
}

@media (min-width: 768px) {
	.he-label {
		letter-spacing: 0.2em;
	}
}

.he-h2 {
	font-family: var(--he-display);
	font-weight: 800;
	font-size: clamp(1.375rem, 1rem + 1.5vw, 2rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.he-h3 {
	font-family: var(--he-display);
	font-weight: 800;
	font-size: 1.1875rem;
	line-height: 1.2;
}

/*
 * Buttons lean 9.09 degrees forward, the angle of the Hidden Edge lettering and mark. The SHAPE
 * leans and the label stays upright: a skewed ::before carries the fill, the border and the focus
 * ring. It is inset 5px a side because the skew pushes each corner out by about 4.3px at the 54px
 * hero height, so the corners stay inside the button's own box and never pass the page gutter.
 * The extra 6px of side padding keeps the leaning edges clear of the label.
 */
.he-btn,
.he-button {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 13px 32px;
	border: 0;
	background: transparent;
	font-family: var(--he-body);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.he-btn::before,
.he-button::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0 5px;
	border: 1px solid transparent;
	border-radius: 2px;
	background: transparent;
	transform: skewX(-9.09deg);
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.he-btn--ox,
.he-button {
	color: var(--he-on-dark);
}

.he-btn--ox::before,
.he-button::before {
	background: var(--he-ox);
}

.he-btn--ox:hover::before,
.he-button:hover::before {
	background: var(--he-ox-hover);
}

.he-btn--line {
	color: var(--he-on-dark);
	font-weight: 500;
}

.he-btn--line::before {
	border-color: rgba(242, 240, 239, 0.7);
}

.he-btn--line:hover::before {
	border-color: var(--he-on-dark);
	background: rgba(242, 240, 239, 0.1);
}

/* The focus ring is drawn on the leaning shape, so it follows the lean. */
.he-btn:focus-visible,
.he-button:focus-visible {
	outline: none;
}

.he-btn:focus-visible::before,
.he-button:focus-visible::before {
	outline: 3px solid var(--he-ink);
	outline-offset: 3px;
}

.he-on-dark .he-btn:focus-visible::before {
	outline-color: var(--he-on-dark);
}

.he-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-top: 12px;
	color: var(--he-ox);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.25em;
}

.he-link:hover {
	color: var(--he-ink);
}

/* ---------- Header and navigation ---------- */

.he-header {
	position: relative;
	z-index: 50;
	background: var(--he-ink);
	color: var(--he-on-dark);
}

.he-page--home .he-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: transparent;
}

/*
 * Inner pages with a photo band: the header sits over the top of the photo, as on the home page.
 * On a phone it only does so once nav.js has folded the links into the menu, so without the
 * script the header stays in the page flow and nothing overlaps the band text.
 */
@media (min-width: 880px) {
	body:has(.he-band--photo) .he-header {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		background: transparent;
	}
}

@media (max-width: 879.98px) {
	.he-nav-ready body:has(.he-band--photo) .he-header {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		background: transparent;
	}
}

.he-header__in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 16px;
	padding-block: 14px;
}

.he-logo {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.he-logo img {
	width: auto;
	height: 26px;
}

/* The header shows the mark alone (Bupe, 19 Nov 2026); the footer keeps the full lockup. */
.he-logo--mark {
	min-width: 44px;
}

.he-logo--mark img {
	height: 34px;
}

.he-nav {
	flex-basis: 100%;
}

.he-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.he-nav a:not(.he-btn) {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 2px;
	color: var(--he-on-dark);
	font-size: 1rem;
	font-weight: 400;
	text-decoration: none;
}

.he-nav a:not(.he-btn):hover {
	text-decoration: underline;
}

.he-nav a[aria-current="page"]:not(.he-btn) {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.4em;
}

.he-nav .he-btn[aria-current="page"]::before {
	box-shadow: inset 0 -3px 0 var(--he-tint);
}

/* The menu button only shows when the script that drives it is running. */
.he-nav-toggle {
	display: none;
}

.he-nav-toggle {
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--he-on-dark);
	cursor: pointer;
}

.he-nav-toggle__bars,
.he-nav-toggle__bars::before,
.he-nav-toggle__bars::after {
	display: block;
	width: 24px;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.he-nav-toggle__bars {
	position: relative;
}

.he-nav-toggle__bars::before,
.he-nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.he-nav-toggle__bars::before {
	top: -7px;
}

.he-nav-toggle__bars::after {
	top: 7px;
}

.he-nav-toggle[aria-expanded="true"] .he-nav-toggle__bars {
	background: transparent;
}

.he-nav-toggle[aria-expanded="true"] .he-nav-toggle__bars::before {
	top: 0;
	transform: rotate(45deg);
}

.he-nav-toggle[aria-expanded="true"] .he-nav-toggle__bars::after {
	top: 0;
	transform: rotate(-45deg);
}

/* Windows high contrast: backgrounds are replaced, so the bars take the button text colour. */
@media (forced-colors: active) {
	.he-nav-toggle__bars,
	.he-nav-toggle__bars::before,
	.he-nav-toggle__bars::after {
		background: ButtonText;
		forced-color-adjust: none;
	}

	/* The leaning shape is not drawn: the button gets a plain border on the element itself. */
	.he-btn,
	.he-button {
		border: 1px solid ButtonText;
	}

	.he-btn::before,
	.he-button::before {
		display: none;
	}

	.he-btn:focus-visible,
	.he-button:focus-visible {
		outline: 3px solid Highlight;
		outline-offset: 3px;
	}
}

/* Phone menu: once nav.js has run, the links live in a full-screen panel. */
@media (max-width: 879.98px) {
	.he-nav-ready .he-header__in {
		flex-wrap: nowrap;
	}

	.he-nav-ready .he-nav-toggle {
		display: inline-flex;
	}

	.he-nav-ready .he-nav-toggle[aria-expanded="true"] {
		position: fixed;
		top: 14px;
		right: var(--he-gutter);
		z-index: 2;
	}

	.he-nav-ready .he-nav {
		position: fixed;
		inset: 0;
		z-index: 1;
		display: block;
		padding: 88px var(--he-gutter) 32px;
		overflow-y: auto;
		background: var(--he-ink);
		visibility: hidden;
		opacity: 0;
		transition: opacity 0.2s ease, visibility 0s linear 0.2s;
	}

	.he-nav-ready .he-nav.is-open {
		visibility: visible;
		opacity: 1;
		transition: opacity 0.2s ease;
	}

	.he-nav-ready .he-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.he-nav-ready .he-nav a:not(.he-btn) {
		display: flex;
		min-height: 60px;
		padding: 0;
		border-bottom: 1px solid rgba(242, 240, 239, 0.18);
		font-size: 1.375rem;
	}

	.he-nav-ready .he-nav__cta {
		margin-top: 28px;
	}

	.he-nav-ready .he-nav__cta .he-btn {
		width: 100%;
	}
}

/* Signed-in preview: the admin bar is 46px tall up to 782px wide, 32px above. */
@media (max-width: 782px) {
	.he-nav-ready .admin-bar .he-nav {
		top: 46px;
	}

	.he-nav-ready .admin-bar .he-nav-toggle[aria-expanded="true"] {
		top: 60px;
	}
}

@media (min-width: 783px) and (max-width: 879.98px) {
	.he-nav-ready .admin-bar .he-nav {
		top: 32px;
	}

	.he-nav-ready .admin-bar .he-nav-toggle[aria-expanded="true"] {
		top: 46px;
	}
}

@media (min-width: 880px) {
	.he-header__in {
		flex-wrap: nowrap;
		padding-block: 22px;
	}

	.he-logo img {
		height: 34px;
	}

	.he-logo--mark img {
		height: 40px;
	}

	.he-nav {
		flex-basis: auto;
	}

	.he-nav__list {
		gap: 0 30px;
	}

	.he-nav__cta {
		margin-left: 4px;
	}

	.he-nav .he-btn {
		min-height: 46px;
		padding: 11px 26px;
	}
}

/* ---------- Home hero ---------- */

.he-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
	background: var(--he-ink);
	color: var(--he-on-dark);
}

.he-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.he-hero__media picture {
	width: 100%;
	height: 100%;
}

.he-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Phone overlay: a scrim behind the header only, so the photo shows through the middle. */
.he-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(26, 26, 26, 0.7) 0, rgba(26, 26, 26, 0) 170px);
}

.he-hero__in {
	position: relative;
	padding-top: 120px;
	padding-bottom: 40px;
}

/* Phone: a scrim that rides with the text block, whatever the screen height. It starts 100px above the label
   and is dense by the label itself, which is the tint colour and needs the darkest ground. */
.he-hero__in::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 20px;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(180deg, rgba(26, 26, 26, 0) 0, rgba(26, 26, 26, 0.55) 60px, rgba(26, 26, 26, 0.88) 100px, rgba(26, 26, 26, 0.9) 100%);
}

.he-hero__h1 {
	max-width: 14.2em;
	font-family: var(--he-display);
	font-weight: 800;
	font-size: clamp(1.625rem, 1rem + 3.6vw, 4.25rem);
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--he-on-dark);
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
	text-wrap: balance;
}

.he-hero__sub {
	max-width: 34em;
	margin: 20px 0 28px;
	font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
	color: var(--he-on-dark-mute);
}

.he-actions {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.he-actions .he-btn {
	width: 100%;
}

.he-hero .he-btn {
	min-height: 54px;
	padding: 16px 34px;
}

@media (min-width: 600px) {
	.he-actions {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 16px;
	}

	.he-actions .he-btn {
		width: auto;
	}
}

@media (min-width: 768px) {
	.he-hero {
		justify-content: center;
		min-height: clamp(620px, 86vh, 820px);
	}

	.he-hero__img {
		object-position: center 60%;
	}

	/*
	 * Desktop overlay: top scrim for the nav, dense behind the text column, the photo clear on the right.
	 * The stops follow the text, not the screen: the column starts at max(0, 50% - 640px) and its widest
	 * line (the sub line) ends about 760px in, or at 50% + 116px on a wide screen.
	 */
	.he-hero::before {
		background:
			linear-gradient(180deg, rgba(26, 26, 26, 0.45) 0, rgba(26, 26, 26, 0) 160px),
			linear-gradient(90deg, rgba(26, 26, 26, 0.92) max(0px, calc(50% - 640px)), rgba(26, 26, 26, var(--he-hero-mid, 0.76)) max(760px, calc(50% + 116px)), rgba(26, 26, 26, 0.15) 100%);
	}

	.he-hero__in {
		padding-top: 150px;
		padding-bottom: 96px;
	}

	.he-hero__in::before {
		display: none;
	}

	.he-hero__sub {
		margin: 26px 0 34px;
	}
}

/* The text fills most of the width on a tablet, so the scrim stays denser there than on a wide screen. */
@media (min-width: 1024px) {
	.he-hero {
		--he-hero-mid: 0.66;
	}
}

/* Very wide screens show more of the bright sky behind the label (3.98:1 at 2560px with 0.66, 4.36:1 with 0.76), so the scrim thickens again. */
@media (min-width: 1921px) {
	.he-hero {
		--he-hero-mid: 0.86;
	}
}

/* ---------- Inner page band ---------- */

.he-band {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 44px 0 48px;
	background: var(--he-ink);
	color: var(--he-on-dark);
}

.he-band__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.he-band__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* The site-visit photo keeps the two faces in frame in a wide, short band. */
.he-band__media--site-visit img {
	object-position: center 20%;
}

/* Phone: the text spans the whole band, so the scrim stays dense right across it. */
.he-band::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(26, 26, 26, 0.6) 0, rgba(26, 26, 26, 0) 150px),
		linear-gradient(90deg, rgba(26, 26, 26, 0.93) 0, rgba(26, 26, 26, 0.88) 55%, rgba(26, 26, 26, 0.78) 100%);
}

/* Wider: dense behind the text column (it starts at max(0, 50% - 640px)), then the photo clears on the right. */
@media (min-width: 768px) {
	.he-band::before {
		background:
			linear-gradient(180deg, rgba(26, 26, 26, 0.55) 0, rgba(26, 26, 26, 0) 150px),
			linear-gradient(90deg, rgba(26, 26, 26, 0.94) max(0px, calc(50% - 640px)), rgba(26, 26, 26, 0.84) max(700px, calc(50% + 60px)), rgba(26, 26, 26, 0.35) 100%);
	}
}

.he-band--plain::before {
	display: none;
}

.he-band__h1 {
	text-wrap: balance;
	max-width: 18em;
	font-family: var(--he-display);
	font-weight: 800;
	font-size: clamp(1.5rem, 1rem + 2.6vw, 2.75rem);
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--he-on-dark);
}

.he-band__lead {
	max-width: 34em;
	margin-top: 18px;
	font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
	color: var(--he-on-dark-mute);
}

/* The photo band starts at the top of the page: its top padding clears the header laid over it. */
@media (max-width: 879.98px) {
	.he-nav-ready .he-band--photo {
		padding-top: 116px;
	}
}

@media (min-width: 880px) {
	.he-band--photo {
		padding-top: 134px;
	}
}

@media (min-width: 900px) {
	.he-band {
		padding: 72px 0 76px;
	}

	.he-band--photo {
		padding-top: 162px;
	}
}

/* ---------- Sections ---------- */

.he-section {
	padding: 52px 0;
}

.he-section--alt {
	background: var(--he-bg-alt);
}

@media (min-width: 900px) {
	.he-section {
		padding: 88px 0;
	}
}

.he-split {
	display: grid;
	gap: 24px;
}

@media (min-width: 900px) {
	.he-split {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 64px;
	}

	/* The heading stays in view beside a long column instead of leaving a hollow. */
	.he-split__head {
		position: sticky;
		top: 112px;
		align-self: start;
	}
}

.he-prose p {
	max-width: 62ch;
	margin-bottom: 1.1em;
	font-size: 1.125rem;
}

.he-prose p:last-child {
	margin-bottom: 0;
}

.he-pull {
	max-width: 30em;
	margin-top: 32px;
	padding-left: 18px;
	text-wrap: balance;
	border-left: 3px solid var(--he-ox);
	font-family: var(--he-display);
	font-weight: 600;
	font-size: clamp(1.0625rem, 0.9rem + 0.8vw, 1.375rem);
	line-height: 1.3;
}

.he-prose .he-pull {
	max-width: 30em;
	margin-top: 32px;
	margin-bottom: 0;
	font-size: clamp(1.0625rem, 0.9rem + 0.8vw, 1.375rem);
}

.he-note {
	max-width: 44em;
	margin-top: 40px;
	padding: 20px 22px;
	border-left: 3px solid var(--he-ox);
	background: var(--he-bg-alt);
	font-size: 1.125rem;
}

/* ---------- Numbered cards (home, services, standards) ---------- */

.he-cards {
	padding: 40px 0 44px;
}

.he-cards__list {
	display: grid;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.he-card {
	padding-top: 18px;
	border-top: 1px solid var(--he-rule);
}

.he-num {
	display: block;
	font-family: var(--he-mono);
	font-weight: 600;
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	line-height: 1.5;
	color: var(--he-ox);
}

.he-card__title {
	margin: 10px 0 8px;
	font-family: var(--he-display);
	font-weight: 800;
	font-size: 1.1875rem;
	line-height: 1.2;
}

.he-card p {
	max-width: 34em;
	font-size: 1.0625rem;
	color: var(--he-mute);
}

.he-section > .he-wrap > .he-h2 + .he-cards__list {
	margin-top: 28px;
}

@media (min-width: 760px) {
	.he-cards {
		padding: 56px 0 60px;
	}

	.he-cards__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 40px;
	}

	.he-cards__list--standards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 36px 56px;
	}
}

/* Cards without a number sit a little tighter. */
.he-cards__list--receive .he-card__title,
.he-cards__list--standards .he-card__title {
	margin-top: 0;
}

/* ---------- Numbered steps (services list, how we work) ---------- */

.he-steps {
	margin: 0;
	padding: 0;
	list-style: none;
}

.he-steps__item {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	gap: 4px 14px;
	padding: 20px 0;
	border-top: 1px solid var(--he-rule);
}

.he-steps__item:last-child {
	border-bottom: 1px solid var(--he-rule);
}

.he-steps__item .he-num {
	padding-top: 5px;
}

.he-steps__item h2,
.he-steps__item h3 {
	margin-bottom: 6px;
	font-family: var(--he-display);
	font-weight: 800;
	font-size: 1.1875rem;
	line-height: 1.2;
}

.he-steps__item p {
	max-width: 44em;
	font-size: 1.0625rem;
	color: var(--he-mute);
}

.he-steps--big .he-steps__item {
	padding: 28px 0;
}

.he-steps--big .he-steps__item h2 {
	font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

.he-steps--big .he-steps__item p {
	font-size: 1.125rem;
}

@media (min-width: 700px) {
	.he-steps__item {
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 4px 20px;
	}

	.he-steps--big .he-steps__item {
		grid-template-columns: 72px minmax(0, 1fr);
	}
}

.he-steps__item + .he-steps__item {
	margin-top: 0;
}

.he-split__body .he-pull {
	margin-top: 36px;
}

/* ---------- Definition rows, tags, statements ---------- */

.he-defs {
	margin: 0;
}

.he-defs__row {
	display: grid;
	gap: 4px;
	padding: 16px 0;
	border-top: 1px solid var(--he-rule);
}

.he-defs__row:last-child {
	border-bottom: 1px solid var(--he-rule);
}

.he-defs dt {
	font-weight: 600;
	font-size: 1.125rem;
}

.he-defs dd {
	margin: 0;
	font-size: 1.0625rem;
	color: var(--he-mute);
}

.he-section--alt .he-defs__row {
	border-color: #CBC6C3;
}

@media (min-width: 640px) {
	.he-defs__row:not(.he-defs__row--stack) {
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		gap: 24px;
	}
}

.he-model {
	display: grid;
	gap: 28px;
	margin-top: 28px;
}

.he-model-more {
	display: grid;
	gap: 36px;
	margin-top: 48px;
}

.he-model-more .he-h3 {
	margin-bottom: 14px;
}

@media (min-width: 900px) {
	.he-model {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 56px;
		align-items: center;
		margin-top: 40px;
	}

	.he-model-more {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: 56px;
	}
}

.he-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.he-tags li {
	padding: 10px 16px;
	border: 1px solid rgba(26, 26, 26, 0.5);
	border-radius: 2px;
	font-weight: 500;
}

/* A calm neutral behind lazy photos, so a slow load shows a block, not a hole. */
.he-media {
	border-radius: 2px;
	background: #DAD6D3;
}

.he-media img {
	width: 100%;
	height: auto;
	border-radius: 2px;
}

.he-rest {
	display: grid;
	gap: 28px;
}

.he-rest .he-h2 {
	margin-bottom: 24px;
}

@media (min-width: 900px) {
	.he-rest {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 64px;
		align-items: center;
	}
}

.he-statements {
	margin: 0;
	padding: 0;
	list-style: none;
}

.he-statements li {
	max-width: 40em;
	padding: 18px 0;
	border-top: 1px solid #CBC6C3;
	font-size: 1.125rem;
}

.he-statements li:first-child {
	padding-top: 0;
	border-top: 0;
	font-weight: 500;
}

/* ---------- Home teasers ---------- */

.he-teasers {
	display: grid;
	gap: 48px;
}

/* Each column keeps its own 16:9 photo box, drawn as a calm block until the lazy photo arrives, so neither column ever shows a hole. */
.he-teaser__media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 2px;
	background: #DAD6D3;
}

.he-teaser__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.he-teaser .he-h2 {
	margin: 24px 0 16px;
}

.he-steps-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 1.125rem;
	font-weight: 500;
}

.he-steps-inline li {
	display: flex;
	align-items: baseline;
	gap: 8px;
	min-height: 32px;
}

.he-plain-list {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 1.125rem;
	font-weight: 500;
}

.he-plain-list li {
	padding: 10px 0;
	border-top: 1px solid #CBC6C3;
}

.he-plain-list li:last-child {
	border-bottom: 1px solid #CBC6C3;
}

@media (min-width: 900px) {
	.he-teasers {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 56px;
	}

	/* Side by side, the five steps stack in the same ruled rows as the standards list, so the two columns end at about the same depth. */
	.he-steps-inline {
		display: block;
	}

	.he-steps-inline li {
		padding: 10px 0;
		border-top: 1px solid #CBC6C3;
	}

	.he-steps-inline li:last-child {
		border-bottom: 1px solid #CBC6C3;
	}
}

/* ---------- Closing band ---------- */

.he-cta {
	padding: 52px 0;
	background: var(--he-ink);
	color: var(--he-on-dark);
}

.he-cta__in {
	display: grid;
	gap: 24px;
	align-items: center;
}

.he-cta__h2 {
	max-width: 20em;
	margin-bottom: 12px;
	font-family: var(--he-display);
	font-weight: 800;
	font-size: clamp(1.375rem, 1rem + 1.5vw, 2rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.he-cta__text p {
	font-size: 1.125rem;
	color: var(--he-on-dark-mute);
}

.he-cta .he-btn {
	width: 100%;
}

@media (min-width: 600px) {
	.he-cta .he-btn {
		width: auto;
	}
}

@media (min-width: 900px) {
	.he-cta {
		padding: 72px 0;
	}

	.he-cta__in {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 56px;
	}
}

/* ---------- Contact and the form (markup comes from he_contact_form) ---------- */

.he-contact {
	display: grid;
	gap: 36px;
}

.he-contact__mail {
	font-family: var(--he-display);
	font-weight: 700;
	font-size: clamp(1.125rem, 0.9rem + 1vw, 1.5rem);
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.he-contact__mail a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.25em;
}

@media (min-width: 900px) {
	.he-contact {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 64px;
		align-items: start;
	}
}

.he-form {
	display: grid;
	gap: 22px;
	max-width: 40rem;
}

.he-field {
	display: block;
}

.he-label-text,
.he-form .he-label,
.he-field .he-label {
	display: block;
	margin: 0 0 8px;
	font-family: var(--he-body);
	font-weight: 600;
	font-size: 1.0625rem;
	letter-spacing: normal;
	line-height: 1.2;
	text-transform: none;
	color: var(--he-ink);
}

.he-input,
.he-textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--he-field-border);
	border-radius: 2px;
	background: #FFFFFF;
	color: var(--he-ink);
	font-family: var(--he-body);
	font-size: 1.125rem;
	font-weight: 200;
	line-height: 1.3;
}

.he-textarea {
	min-height: 168px;
	resize: vertical;
}

.he-input:focus-visible,
.he-textarea:focus-visible {
	border-color: var(--he-ink);
	outline: 3px solid var(--he-ink);
	outline-offset: 2px;
}

.he-input[aria-invalid="true"],
.he-textarea[aria-invalid="true"] {
	border: 2px solid var(--he-error);
}

.he-hint {
	margin-top: 6px;
	font-size: 0.9375rem;
	color: var(--he-mute);
}

.he-error {
	margin-top: 6px;
	font-size: 1rem;
	font-weight: 500;
	color: var(--he-error);
}

.he-button {
	justify-self: start;
	padding: 13px 34px;
}

@media (max-width: 599.98px) {
	.he-button {
		justify-self: stretch;
	}
}

/* The one line under the form that says where the details go. The link keeps a 44px tap area. */
.he-privacy-line {
	max-width: 40rem;
	margin-top: 18px;
	font-size: 0.9375rem;
	color: var(--he-mute);
}

.he-privacy-line a {
	display: inline-block;
	margin-block: -13px;
	padding-block: 13px;
	color: var(--he-ink);
	text-decoration: underline;
}

.he-notice {
	margin-bottom: 24px;
	padding: 16px 18px;
	border-left: 4px solid var(--he-ink);
	background: var(--he-bg-alt);
	font-size: 1.0625rem;
}

.he-notice--ok {
	border-left-color: #2D5A3A;
	background: #E4EEE6;
}

.he-notice--error {
	border-left-color: var(--he-error);
	background: #F6E7E7;
}

/* Honeypot: off screen, never display:none, so bots still see it. */
.he-hp {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Privacy and plain pages ---------- */

.he-legal > * {
	max-width: 44rem;
}

.he-legal h2,
.he-legal .he-h3 {
	margin: 40px 0 12px;
	font-family: var(--he-display);
	font-weight: 800;
	font-size: 1.1875rem;
	line-height: 1.2;
}

.he-legal h2:first-child {
	margin-top: 0;
}

.he-legal p {
	margin-bottom: 1em;
	font-size: 1.125rem;
}

/* Links inside sentences get a 44px tap area without moving the text. */
.he-legal a {
	display: inline-block;
	margin-block: -11px;
	padding-block: 11px;
	text-decoration: underline;
}

.he-legal__updated {
	margin-top: 40px;
	font-family: var(--he-mono);
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--he-mute);
}

/* ---------- Footer ---------- */

.he-footer {
	padding: 52px 0 32px;
	background: var(--he-ink);
	color: var(--he-on-dark-mute);
}

.he-footer a {
	color: var(--he-on-dark);
}

.he-footer__grid {
	display: grid;
	gap: 28px;
}

.he-footer__tag {
	margin-top: 10px;
	font-family: var(--he-mono);
	font-weight: 600;
	font-size: 0.8125rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--he-on-dark-mute);
}

.he-footer__nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.he-footer__nav a,
.he-footer__mail a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.he-footer__mail {
	font-size: 1.125rem;
	font-weight: 500;
}

.he-footer__legal {
	margin-top: 36px;
	max-width: var(--he-max);
}

/* The rule lives inside the wrap's side padding, so it lines up with the text column above it. */
.he-footer__legal::before {
	content: "";
	display: block;
	margin-bottom: 24px;
	border-top: 1px solid rgba(242, 240, 239, 0.18);
}

.he-footer__legal p {
	max-width: 52em;
	margin-bottom: 8px;
	font-size: 0.9375rem;
	color: #BDB8B6;
}

@media (min-width: 860px) {
	.he-footer__grid {
		grid-template-columns: 1.3fr 1fr 1fr;
		gap: 48px;
	}
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
