/* =========================================================================
   Hickory Data — main stylesheet
   ========================================================================= */

/* ---- Self-hosted fonts (static woff2, latin subset) -------------------- */
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/montserrat-500.woff2") format("woff2");
}
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/montserrat-600.woff2") format("woff2");
}
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/montserrat-700.woff2") format("woff2");
}
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url("../fonts/montserrat-900.woff2") format("woff2");
}
@font-face {
	font-family: "Rubik";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/rubik-400.woff2") format("woff2");
}
@font-face {
	font-family: "Rubik";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/rubik-500.woff2") format("woff2");
}

/* ---- Design tokens ----------------------------------------------------- */
:root {
	--hd-orange: #ff790b;
	--hd-orange-2: #f7941d;
	--hd-orange-3: #fbb141;
	--hd-orange-deep: #e8630a; /* orange text/icons on white (3:1+ at large sizes) */
	--hd-teal: #325056;
	--hd-teal-2: #5a7277;
	--hd-teal-dark: #2a444a;
	--hd-teal-ink: #17282c; /* small text on orange (4.5:1+) */
	--hd-white: #ffffff;
	--hd-ink: #1d2a2e;
	--hd-grey: #5e6e72;
	--hd-mist: #f3f6f6;

	--hd-font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	--hd-font-body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;

	--hd-header-h: 88px;
	--hd-header-h-condensed: 68px; /* the floating capsule */
	--hd-container: 1280px;
	--hd-gutter: clamp(20px, 5vw, 48px);

	/* Entrances ease out (long, settling); exits ease in (short, leaving). */
	--hd-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--hd-ease-in: cubic-bezier(0.55, 0, 0.8, 0.2);
}

@media (max-width: 768px) {
	:root {
		--hd-header-h: 64px;
		--hd-header-h-condensed: 60px;
	}
}

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

html {
	/* Anchor jumps land below the floating capsule */
	scroll-padding-top: calc(var(--hd-header-h-condensed) + 24px);
}

body {
	margin: 0;
	font-family: var(--hd-font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--hd-ink);
	background: var(--hd-white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.hd-nav-open {
	overflow: hidden;
}

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

a {
	color: var(--hd-orange-deep);
	text-decoration: none;
}
a:hover,
a:focus {
	text-decoration: underline;
}

h1,
h2,
h3 {
	font-family: var(--hd-font-head);
	font-weight: 900; /* the display headings are Montserrat Black (900) */
	line-height: 1.02;
	margin: 0;
	text-transform: uppercase;
}

/* ---- Utilities --------------------------------------------------------- */
.hd-container {
	width: 100%;
	max-width: var(--hd-container);
	margin-inline: auto;
	padding-inline: var(--hd-gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hd-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
}
.hd-skip-link:focus {
	left: 12px;
	top: 12px;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 16px;
	background: var(--hd-teal);
	color: #fff;
	border-radius: 4px;
}

.hd-icon {
	display: block;
	flex: 0 0 auto;
}

.hd-section-title {
	color: var(--hd-teal);
	font-size: clamp(2.5rem, 3.9vw, 3.5rem);
	letter-spacing: 0.01em;
}

/* ---- Buttons ----------------------------------------------------------- */
.hd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 56px;
	padding: 0 30px;
	border: 0;
	border-radius: 999px;
	font-family: var(--hd-font-head);
	font-weight: 700;
	font-size: 0.8125rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.25s var(--hd-ease-out);
}
.hd-btn:hover,
.hd-btn:focus {
	text-decoration: none;
	transform: translateY(-1px);
}
.hd-btn:focus-visible {
	outline: 3px solid var(--hd-teal-ink);
	outline-offset: 3px;
}
.hd-btn .hd-icon {
	width: 18px;
	height: 18px;
}

.hd-btn--dark {
	background: var(--hd-teal-ink);
	color: #fff;
}
.hd-btn--dark:hover,
.hd-btn--dark:focus {
	background: #0b181b;
	color: #fff;
}

.hd-btn--solid {
	background: var(--hd-teal);
	color: #fff;
}
.hd-btn--solid:hover,
.hd-btn--solid:focus {
	background: var(--hd-teal-dark);
	color: #fff;
}

/* =========================================================================
   Header / navigation
   Transparent over the orange hero at the top of the page; once the page
   scrolls it becomes a floating orange capsule (the look of the original
   site's sticky nav) inset to the content width.
   ========================================================================= */
.hd-header {
	/* capsule edge: 28px outside the content column, at least 8px from the viewport */
	--cap-x: max(8px, calc(max(0px, (100% - var(--hd-container)) / 2) + var(--hd-gutter) - 28px));
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: var(--hd-header-h);
	transition: height 0.45s var(--hd-ease-out), transform 0.45s var(--hd-ease-out);
}
.hd-header::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	bottom: 0;
	left: var(--cap-x);
	right: var(--cap-x);
	border-radius: 999px;
	background: linear-gradient(100deg, #ef6800 0%, var(--hd-orange) 52%, #f98a1a 100%);
	box-shadow: 0 18px 40px -18px rgba(120, 45, 0, 0.6), 0 2px 8px -2px rgba(120, 45, 0, 0.2);
	opacity: 0;
	transform: scale(0.97);
	transition: opacity 0.3s ease, transform 0.45s var(--hd-ease-out);
}
.hd-header.is-scrolled,
.hd-header.is-solid {
	height: var(--hd-header-h-condensed);
	transform: translate3d(0, 12px, 0);
}
.hd-header.is-scrolled::before,
.hd-header.is-solid::before {
	opacity: 1;
	transform: none;
}
/* Over the open mobile menu the header drops its capsule and sits flat */
.hd-header.is-menu-open {
	height: var(--hd-header-h);
	transform: none;
}
.hd-header.is-menu-open::before {
	opacity: 0;
}

body.admin-bar .hd-header {
	top: 32px;
}
@media (max-width: 782px) {
	body.admin-bar .hd-header {
		top: 46px;
	}
}

.hd-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	gap: 24px;
}
.hd-header__logo {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}
.hd-header__logo img {
	height: 40px;
	width: auto;
	transition: height 0.45s var(--hd-ease-out);
}
.hd-header.is-scrolled .hd-header__logo img,
.hd-header.is-solid .hd-header__logo img {
	height: 36px;
}

.hd-nav {
	display: flex;
	align-items: center;
	gap: clamp(4px, 0.8vw, 10px);
}
.hd-nav__link,
.hd-nav__cta {
	display: inline-flex;
	align-items: center;
	height: 44px;
	border-radius: 999px;
	font-family: var(--hd-font-head);
	font-weight: 700;
	font-size: 0.875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}
/* Hover, focus and the current section share one pill highlight, so no
   state ever fades the label into the orange behind it. */
.hd-nav__link {
	padding: 0 16px;
	color: var(--hd-teal-ink);
	transition: color 0.3s ease, background-color 0.25s ease;
}
.hd-nav__link:hover,
.hd-nav__link:focus,
.hd-nav__link[aria-current="true"] {
	color: var(--hd-teal-ink);
	background-color: rgba(23, 40, 44, 0.1);
	text-decoration: none;
}
.hd-nav__cta {
	margin-left: 6px;
	padding: 0 24px;
	background: var(--hd-teal-ink);
	color: #fff;
	transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.25s var(--hd-ease-out);
}
.hd-nav__cta:hover,
.hd-nav__cta:focus {
	background: #0b181b;
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}
.hd-nav__link:focus-visible,
.hd-nav__cta:focus-visible,
.hd-header__logo:focus-visible,
.hd-nav-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* On the capsule: white labels, a white hover pill, and a white Contact button */
.hd-header.is-scrolled .hd-nav__link,
.hd-header.is-solid .hd-nav__link {
	color: #fff;
}
.hd-header.is-scrolled .hd-nav__link:hover,
.hd-header.is-scrolled .hd-nav__link:focus,
.hd-header.is-scrolled .hd-nav__link[aria-current="true"],
.hd-header.is-solid .hd-nav__link:hover,
.hd-header.is-solid .hd-nav__link:focus,
.hd-header.is-solid .hd-nav__link[aria-current="true"] {
	color: #fff;
	background-color: rgba(255, 255, 255, 0.2);
}
.hd-header.is-scrolled .hd-nav__cta,
.hd-header.is-solid .hd-nav__cta {
	background: #fff;
	color: var(--hd-teal-ink);
	box-shadow: 0 6px 14px -8px rgba(80, 30, 0, 0.5);
}
.hd-header.is-scrolled .hd-nav__cta:hover,
.hd-header.is-scrolled .hd-nav__cta:focus,
.hd-header.is-solid .hd-nav__cta:hover,
.hd-header.is-solid .hd-nav__cta:focus {
	background: var(--hd-teal-ink);
	color: #fff;
}
/* On the Contact section the button takes the same active pill as the links */
.hd-header.is-scrolled .hd-nav__cta[aria-current="true"],
.hd-header.is-solid .hd-nav__cta[aria-current="true"] {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	box-shadow: none;
	transform: none;
}
.hd-header.is-scrolled .hd-nav__cta[aria-current="true"]:hover,
.hd-header.is-scrolled .hd-nav__cta[aria-current="true"]:focus {
	background: rgba(255, 255, 255, 0.28);
}

/* Hamburger (hidden on desktop) */
.hd-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-right: -12px;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--hd-teal-ink);
	cursor: pointer;
	transition: color 0.3s ease;
}
.hd-header.is-scrolled .hd-nav-toggle,
.hd-header.is-solid .hd-nav-toggle,
.hd-header.is-menu-open .hd-nav-toggle {
	color: #fff;
}
.hd-nav-toggle__box {
	position: relative;
	display: block;
	width: 22px;
	height: 2px;
}
.hd-nav-toggle__bar,
.hd-nav-toggle__bar::before,
.hd-nav-toggle__bar::after {
	position: absolute;
	left: 0;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}
.hd-nav-toggle__bar {
	top: 0;
}
.hd-nav-toggle__bar::before {
	content: "";
	top: -7px;
}
.hd-nav-toggle__bar::after {
	content: "";
	top: 7px;
}
.hd-nav-toggle[aria-expanded="true"] .hd-nav-toggle__bar {
	background-color: transparent;
}
.hd-nav-toggle[aria-expanded="true"] .hd-nav-toggle__bar::before {
	transform: translateY(7px) rotate(45deg);
}
.hd-nav-toggle[aria-expanded="true"] .hd-nav-toggle__bar::after {
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu: a full-screen panel that wipes down on open and back up on
   close, with the links rising in after it. */
.hd-menu {
	display: none;
}

/* =========================================================================
   Hero
   ========================================================================= */
.hd-hero {
	--hero-h: clamp(600px, 48.6vw, 760px);
	--pill-w: clamp(72px, 6.67vw, 104px);
	--pill-gap: clamp(12px, 1.4vw, 22px);
	--pill-spill: clamp(40px, 4.45vw, 72px);
	--cube-w: clamp(140px, 13.9vw, 220px);
	/* No z-index here: the spilling pills and cube layer against the Services
	   section directly (pills above it, the cube between its background and
	   its cards). */
	position: relative;
	/* The deepest orange sits behind the headline so the white type holds 3:1. */
	background:
		radial-gradient(44vw 36vw at 82% 44%, rgba(255, 200, 128, 0.34), rgba(255, 200, 128, 0) 70%),
		linear-gradient(105deg, #ef6800 0%, var(--hd-orange) 42%, var(--hd-orange-2) 76%, #fba83a 100%);
}
.hd-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	column-gap: clamp(24px, 4vw, 60px);
	min-height: var(--hero-h);
	padding-top: var(--hd-header-h);
}
.hd-hero__copy {
	position: relative;
	z-index: 2;
	align-self: center;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	padding-block: 32px;
	margin-bottom: clamp(24px, 3.6vw, 52px); /* sit a touch above centre */
}
/* The eyebrow and headline share one H1; it spaces them like the copy column did */
.hd-hero__heading {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: inherit;
	margin: 0;
}
.hd-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	color: var(--hd-teal-ink);
	font-family: var(--hd-font-head);
	font-weight: 700;
	font-size: 0.8125rem;
	letter-spacing: 0.3em;
	line-height: 1.4;
	text-transform: uppercase;
}
.hd-hero__rule {
	display: block;
	flex: 0 0 auto;
	width: 36px;
	height: 2px;
	background: currentColor;
	transform-origin: left center;
}
.hd-hero__eyebrow-text {
	display: block;
}
.hd-hero__title {
	display: block;
	color: #fff;
	font-size: clamp(3.5rem, 6.4vw, 5.75rem);
	line-height: 0.92;
	letter-spacing: -0.005em;
}
/* Each headline line is a mask the words rise out of on load */
.hd-hero__line {
	display: block;
	overflow: hidden;
	padding: 0.04em 0.06em 0.06em;
	margin: -0.04em -0.06em -0.06em;
}
.hd-hero__line > span {
	display: block;
}
.hd-hero__actions {
	margin: 16px 0 0;
}

/* Hero pills — rise left to right like a bar chart on a shared baseline that
   spills into the section below. */
.hd-hero__pills {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: flex-end;
	gap: var(--pill-gap);
	margin-bottom: calc(-1 * var(--pill-spill));
}
.hd-pill {
	position: relative;
	flex: 0 0 auto;
	margin: 0;
	width: var(--pill-w);
	height: calc(var(--pill-w) * 5);
	border-radius: 999px;
	box-shadow: 0 34px 60px -26px rgba(110, 40, 0, 0.55);
}
/* Clips the photo and tint. Safari (iOS 26 included) drops an overflow +
   border-radius clip while the photo's zoom animates under the blended tint,
   so the rounding comes from clip-path, on an inner box to spare the shadow. */
.hd-pill__frame {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	overflow: hidden;
	clip-path: inset(0 round 999px);
	isolation: isolate; /* keeps the tint's multiply inside the pill */
}
.hd-pill--2 {
	height: calc(var(--pill-w) * 5.625);
}
.hd-pill--3 {
	height: calc(var(--pill-w) * 6.25);
}
.hd-pill img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* The photos carry their own transparent pill margins; scaling past them
	   keeps the edges filled at every pill size used here. */
	transform: scale(1.12);
}
.hd-pill__frame::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(255, 121, 11, 0.42), rgba(247, 148, 29, 0.3));
	mix-blend-mode: multiply;
}

/* Decorative iso cube: straddles the hero edge, clear of headline and pills.
   On scroll it sinks through Services (above the white background, below the
   cards) and under Join Our Team (theme.js, data-hd-sink). */
.hd-hero__cube {
	position: absolute;
	z-index: 1;
	right: calc(var(--hd-gutter) + 3 * var(--pill-w) + 2 * var(--pill-gap) + clamp(40px, 5.8vw, 84px));
	bottom: calc(var(--cube-w) * -0.4);
	width: var(--cube-w);
	height: auto;
	pointer-events: none;
}
/* White copy of the cube, clipped to the hero box (the inner's box ends at the
   orange edge), so the part over the orange reads white. */
.hd-hero__cube-mask {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	pointer-events: none;
}
.hd-hero__cube--white {
	filter: brightness(0) invert(1);
}

/* =========================================================================
   Services
   ========================================================================= */
.hd-services {
	position: relative;
	padding: clamp(100px, 10.4vw, 150px) 0 clamp(72px, 7.6vw, 110px);
	background: var(--hd-white);
}
.hd-services > .hd-container {
	position: relative;
	z-index: 2; /* title and cards pass in front of the sinking hero cube */
}
.hd-services .hd-section-title {
	margin-bottom: clamp(28px, 3vw, 44px);
}
.hd-services__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}
.hd-service {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	min-height: 200px;
	padding: 28px;
	border-radius: 20px;
	background: var(--hd-mist);
}
.hd-service__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: var(--hd-white);
	color: var(--hd-orange-deep);
	box-shadow: 0 10px 20px -12px rgba(50, 80, 86, 0.4);
}
.hd-service__icon .hd-icon {
	width: 26px;
	height: 26px;
}
.hd-service__title {
	font-family: var(--hd-font-head);
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1.3;
	text-transform: none; /* an h3, which the base heading rule uppercases */
	color: var(--hd-teal);
}

/* =========================================================================
   Join Our Team
   ========================================================================= */
.hd-join {
	position: relative;
	z-index: 2; /* slides over the sinking hero cube */
	overflow: hidden;
	padding: clamp(110px, 9.7vw, 140px) 0;
	background: var(--hd-teal);
	color: #fff;
	text-align: center;
}
.hd-join__bg {
	position: absolute;
	inset: 0;
	background: url("../images/team-bg.webp") center 40% / cover no-repeat;
	filter: grayscale(1);
	opacity: 0.16;
}
/* Parallel slanted edges; the faint layer leaves a thin light strip */
.hd-join__edge {
	position: absolute;
	left: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: clamp(44px, 5.56vw, 80px);
	fill: var(--hd-white);
	pointer-events: none;
}
.hd-join__edge--top {
	top: -1px;
}
.hd-join__edge--bottom {
	bottom: -1px;
}
.hd-join__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.hd-join__title {
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
}
.hd-join__ghost {
	font-size: clamp(5.5rem, 10.4vw, 9.375rem);
	line-height: 0.8;
	letter-spacing: 0.08em;
	padding-left: 0.08em; /* balances the trailing letter-spacing when centred */
	margin-bottom: -0.31em;
	color: rgba(255, 255, 255, 0.14);
}
@supports (-webkit-text-stroke: 1px) {
	.hd-join__ghost {
		color: transparent;
		-webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.32);
	}
}
.hd-join__heading {
	position: relative;
	font-size: clamp(2.75rem, 5vw, 4.5rem);
	letter-spacing: 0.01em;
	color: #fff;
}
.hd-join__subhead {
	margin: 22px auto 0;
	max-width: 460px;
	font-size: clamp(1rem, 1.25vw, 1.125rem);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.86);
}
.hd-join__cta {
	display: flex;
	justify-content: center;
	width: 100%;
	margin-top: 34px;
}

/* Job card */
.hd-job {
	display: flex;
	align-items: center;
	gap: 24px;
	width: min(100%, 580px);
	padding: 14px 14px 14px 36px;
	border-radius: 999px;
	background: var(--hd-white);
	text-align: left;
	text-decoration: none;
	box-shadow: 0 24px 50px -20px rgba(8, 20, 23, 0.55);
	transition: transform 0.3s var(--hd-ease-out), box-shadow 0.3s ease;
}
.hd-job:hover,
.hd-job:focus {
	text-decoration: none;
	transform: translateY(-3px);
	box-shadow: 0 32px 60px -22px rgba(8, 20, 23, 0.7);
}
.hd-job:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 4px;
}
.hd-job__text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.hd-job__title {
	font-family: var(--hd-font-head);
	font-weight: 700;
	font-size: 1.1875rem;
	line-height: 1.15;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--hd-orange-deep);
}
.hd-job__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
	color: var(--hd-teal-2);
}
.hd-job__meta .hd-icon {
	width: 15px;
	height: 15px;
}
.hd-job__go {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 60px;
	height: 60px;
	border-radius: 999px;
	background: var(--hd-orange);
	color: #fff;
	transition: transform 0.35s var(--hd-ease-out), background-color 0.2s ease;
}
.hd-job__go .hd-icon {
	width: 22px;
	height: 22px;
}
.hd-job:hover .hd-job__go,
.hd-job:focus .hd-job__go {
	transform: rotate(45deg);
	background: var(--hd-orange-deep);
}

/* =========================================================================
   Contact
   ========================================================================= */
.hd-contact {
	--clouds-h: clamp(90px, 13.2vw, 190px);
	position: relative;
	overflow: hidden;
	padding: clamp(72px, 8.3vw, 120px) 0 calc(var(--clouds-h) + clamp(64px, 8.9vw, 128px));
	background: var(--hd-white);
}
.hd-contact__sky {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.hd-contact__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 576px);
	align-items: start;
	gap: clamp(40px, 5.6vw, 80px);
}
.hd-contact__intro {
	display: flex;
	flex-direction: column;
	gap: 36px;
	padding-top: 32px;
}
.hd-contact__title {
	font-size: clamp(2.5rem, 4.45vw, 4rem);
}
.hd-contact__art {
	position: relative;
	width: min(100%, 460px);
	margin-left: 10px;
}
.hd-contact__ship {
	width: 100%;
	height: auto;
}
.hd-contact__panel {
	position: relative;
	isolation: isolate; /* planets tucked behind the card stay inside this section */
}
.hd-contact__panel .hd-planet {
	z-index: -1;
}

/* Planets are cut from the space backdrop so each can sit around the form
   instead of behind it. --x/--y/--w/--h describe the crop at full size. */
.hd-planet {
	--s: 1;
	position: absolute;
	width: calc(var(--w) * var(--s));
	height: calc(var(--h) * var(--s));
	background: url("../images/space-bg.png") no-repeat;
	background-size: calc(1400px * var(--s)) calc(728px * var(--s));
	background-position: calc(var(--x) * var(--s) * -1) calc(var(--y) * var(--s) * -1);
	pointer-events: none;
}
.hd-planet--ring {
	--x: 560px;
	--y: 358px;
	--w: 304px;
	--h: 264px;
	left: max(-40px, calc(50% - 641px));
	bottom: 7px;
}
.hd-planet--big {
	--x: 1122px;
	--y: 245px;
	--w: 232px;
	--h: 232px;
	right: -105px;
	top: -117px;
}
.hd-planet--pair {
	--x: 387px;
	--y: 74px;
	--w: 210px;
	--h: 220px;
	left: calc(100% - 31px);
	top: calc(100% - 36px);
}
.hd-planet--plain {
	--x: 1020px;
	--y: 42px;
	--w: 160px;
	--h: 160px;
	left: -125px;
	top: -129px;
}
.hd-planet--moon {
	--x: 751px;
	--y: 237px;
	--w: 136px;
	--h: 136px;
	left: calc(100% - 66px);
	top: -70px;
}

.hd-star {
	position: absolute;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #cbd3d4;
}
.hd-star:nth-child(1)  { left: 4.4%;  top: 10.7%; width: 5px; height: 5px; }
.hd-star:nth-child(2)  { left: 22.1%; top: 6.4%; }
.hd-star:nth-child(3)  { left: 38.9%; top: 14.2%; }
.hd-star:nth-child(4)  { left: 48.6%; top: 43.6%; width: 5px; height: 5px; }
.hd-star:nth-child(5)  { left: 46.4%; top: 60%; }
.hd-star:nth-child(6)  { left: 6.4%;  top: 52.2%; }
.hd-star:nth-child(7)  { left: 96.7%; top: 33.3%; width: 5px; height: 5px; }
.hd-star:nth-child(8)  { left: 69.4%; top: 72.4%; width: 5px; height: 5px; }
.hd-star:nth-child(9)  { left: 38.6%; top: 73.3%; }
.hd-star:nth-child(10) { left: 77.8%; top: 5.1%; }

.hd-contact__clouds {
	position: absolute;
	left: 50%;
	bottom: -1px;
	z-index: 3;
	display: block;
	/* Keep the desktop proportions (height is 13.2vw there). Once the height
	   bottoms out on phones, overflow and centre-crop instead of squeezing. */
	width: max(100%, var(--clouds-h) / 0.132);
	height: var(--clouds-h);
	transform: translateX(-50%);
	fill: var(--hd-teal);
	pointer-events: none;
}

.contact-card {
	position: relative;
	padding: clamp(24px, 3.1vw, 44px);
	border-radius: 28px;
	background: linear-gradient(160deg, #f99d27 0%, var(--hd-orange) 50%, #ee6600 100%);
	box-shadow: 0 44px 80px -34px rgba(214, 88, 0, 0.6), 0 2px 8px rgba(214, 88, 0, 0.18);
	color: var(--hd-ink);
}

/* ---- Gravity Forms skin (scoped to the orange card) -------------------- */
/* White fields with the label inside, so field text and labels read at 4.5:1
   regardless of the orange behind them. Selectors carry .gravity-theme to
   outrank the plugin's own stylesheet whatever order the two load in. */
.contact-card .gform_wrapper.gravity-theme {
	margin: 0;
}
.contact-card .gform_wrapper.gravity-theme .gform_heading {
	display: none;
}
.contact-card .gform_wrapper.gravity-theme .gform_fields {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.contact-card .gform_wrapper.gravity-theme .gform_fields .gfield {
	grid-column: auto;
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-height: 64px;
	margin: 0;
	padding: 12px 18px 9px;
	border-radius: 14px;
	background: var(--hd-white);
	cursor: text;
	transition: box-shadow 0.2s ease;
}
.contact-card .gform_wrapper.gravity-theme .gform_fields .gfield--type-textarea {
	grid-column: 1 / -1;
}
.contact-card .gform_wrapper.gravity-theme .gform_fields .gfield:focus-within {
	box-shadow: 0 0 0 3px var(--hd-teal-ink);
}
.contact-card .gform_wrapper.gravity-theme .gfield_label,
.contact-card .gform_wrapper.gravity-theme .hidden_label .gfield_label {
	position: static;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	overflow: visible;
	clip: auto;
	-webkit-clip-path: none;
	clip-path: none;
	white-space: normal;
	font-family: var(--hd-font-body);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.02em;
	color: var(--hd-grey);
}
/* Show "*" for required; keep GF's "(Required)" text for screen readers */
.contact-card .gform_wrapper.gravity-theme .gfield_required {
	color: #b84d00;
}
.contact-card .gform_wrapper.gravity-theme .gfield_required_text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.contact-card .gform_wrapper.gravity-theme .gfield_label > .gfield_required::after {
	content: " *";
	content: " *" / "";
}
.contact-card .gform_wrapper.gravity-theme .gform_fields .gfield input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.contact-card .gform_wrapper.gravity-theme .gform_fields .gfield textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	color: var(--hd-ink);
	font-family: var(--hd-font-body);
	font-size: 1rem;
	line-height: 1.5;
	-webkit-appearance: none;
	appearance: none;
}
.contact-card .gform_wrapper.gravity-theme .gform_fields .gfield input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
	height: 26px;
}
.contact-card .gform_wrapper.gravity-theme .gform_fields .gfield textarea {
	height: 96px;
	min-height: 72px;
	resize: vertical;
}
/* The label now names each field, so the old placeholder copy would double up */
.contact-card .gform_wrapper.gravity-theme .gfield input::placeholder,
.contact-card .gform_wrapper.gravity-theme .gfield textarea::placeholder {
	color: transparent;
}
/* autofill fix */
.contact-card .gform_wrapper.gravity-theme .gfield input:-webkit-autofill {
	-webkit-text-fill-color: var(--hd-ink);
	transition: background-color 5000s ease-in-out 0s;
}

/* Validation */
.contact-card .gform_wrapper.gravity-theme .gform_fields .gfield_error {
	box-shadow: 0 0 0 2px #9b2c00;
}
.contact-card .gform_wrapper.gravity-theme .gform_fields .gfield_error:focus-within {
	box-shadow: 0 0 0 3px var(--hd-teal-ink);
}
.contact-card .gform_wrapper.gravity-theme .gfield_error .gfield_label,
.contact-card .gform_wrapper.gravity-theme .gfield_error [aria-invalid="true"] {
	border: 0;
	color: #9b2c00;
}
.contact-card .gform_wrapper.gravity-theme .gfield_error [aria-invalid="true"] {
	color: var(--hd-ink);
}
.contact-card .gform_wrapper.gravity-theme .gfield_validation_message,
.contact-card .gform_wrapper.gravity-theme .validation_message {
	margin: 2px 0 0;
	padding: 0;
	background: none;
	border: 0;
	color: #9b2c00;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.4;
}
.contact-card .gform_wrapper.gravity-theme .gform_validation_errors {
	margin: 0 0 16px;
	padding: 14px 18px 14px 48px;
	border: 0;
	border-radius: 14px;
	background: var(--hd-white);
	box-shadow: none;
}
.contact-card .gform_wrapper.gravity-theme .gform_validation_errors > h2 {
	margin: 0;
	color: #9b2c00;
	font-family: var(--hd-font-body);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.45;
	text-transform: none;
}
.contact-card .gform_wrapper.gravity-theme .gform_validation_errors > h2 .gform-icon {
	font-size: 22px;
}

/* Submit */
.contact-card .gform_wrapper.gravity-theme .gform_footer {
	margin: 24px 0 0;
	padding: 0;
}
.contact-card .gform_wrapper.gravity-theme .gform_footer .gform_button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	height: 58px;
	margin: 0;
	padding: 0 28px;
	border: 0;
	border-radius: 14px;
	background-color: var(--hd-teal);
	color: #fff;
	font-family: var(--hd-font-head);
	font-weight: 700;
	font-size: 0.8125rem;
	letter-spacing: 0.16em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.25s var(--hd-ease-out);
}
.contact-card .gform_wrapper.gravity-theme .gform_footer .gform_button::after {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.contact-card .gform_wrapper.gravity-theme .gform_footer .gform_button:hover {
	background-color: #233a3f;
	transform: translateY(-1px);
}
/* Gravity Forms 2.x renders the submit as an <input>, which can't hold the
   ::after arrow above; draw the same arrow as a background image instead. */
.contact-card .gform_wrapper.gravity-theme .gform_footer input.gform_button {
	display: block;
	padding: 0 58px 0 28px; /* nudges the centred label left to make room */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 18px 18px;
	background-position: calc(50% + 38px) center;
}
.contact-card .gform_wrapper.gravity-theme .gform_footer .gform_button:focus-visible {
	outline: 3px solid var(--hd-teal-ink);
	outline-offset: 3px;
}

/* Confirmation replaces the form inside the card */
.contact-card .gform_confirmation_message {
	padding: 22px 24px;
	border-radius: 14px;
	background: var(--hd-white);
	color: var(--hd-ink);
	font-family: var(--hd-font-head);
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1.45;
}

.hd-contact__fallback {
	margin: 0;
	padding: 22px 24px;
	border-radius: 14px;
	background: var(--hd-white);
	color: var(--hd-ink);
}
.hd-contact__fallback a {
	color: var(--hd-teal);
	text-decoration: underline;
}

/* =========================================================================
   Footer
   ========================================================================= */
.hd-footer {
	background: var(--hd-teal);
	color: rgba(255, 255, 255, 0.74);
	padding: clamp(28px, 3vw, 40px) 0 clamp(40px, 4.5vw, 64px);
}
.hd-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.hd-footer__logo {
	display: inline-flex;
	line-height: 0;
}
.hd-footer__logo img {
	height: 36px;
	width: auto;
}
.hd-footer__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	text-align: right;
}
.hd-footer__privacy {
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.875rem;
	font-weight: 500;
}
.hd-footer__privacy:hover,
.hd-footer__privacy:focus {
	color: #fff;
}
.hd-footer__copy {
	margin: 0;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.74);
}

/* =========================================================================
   Pages (page.php): orange title band + a readable long-form column
   ========================================================================= */
.hd-page__column {
	max-width: calc(800px + 2 * var(--hd-gutter));
}
.hd-page-head {
	padding: calc(var(--hd-header-h) + clamp(40px, 5vw, 72px)) 0 clamp(40px, 5vw, 64px);
	background:
		radial-gradient(44vw 36vw at 82% 30%, rgba(255, 200, 128, 0.3), rgba(255, 200, 128, 0) 70%),
		linear-gradient(105deg, #ef6800 0%, var(--hd-orange) 42%, var(--hd-orange-2) 76%, #fba83a 100%);
}
.hd-page-head__title {
	color: #fff;
	font-size: clamp(2.5rem, 5.6vw, 4.5rem);
	line-height: 0.95;
	letter-spacing: -0.005em;
}
.hd-page__body {
	padding-block: clamp(40px, 5vw, 64px) clamp(64px, 8vw, 120px);
}

.hd-entry__content {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--hd-ink);
	overflow-wrap: break-word;
}
.hd-entry__content p {
	margin: 0 0 1.15em;
}
.hd-entry__content h2 {
	margin: 2em 0 0.6em;
	padding-top: 1.4em;
	border-top: 1px solid #e2e9ea;
	color: var(--hd-teal);
	font-weight: 700;
	font-size: clamp(1.25rem, 1.8vw, 1.5rem);
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
}
.hd-entry__content h3 {
	margin: 1.6em 0 0.5em;
	color: var(--hd-teal);
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1.3;
	text-transform: none;
}
.hd-entry__content strong {
	font-weight: 500;
	color: var(--hd-teal-dark);
}
.hd-entry__content a {
	color: #b84d00; /* 5:1 on white; the brand orange is too light for body links */
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}
.hd-entry__content a:hover,
.hd-entry__content a:focus {
	color: var(--hd-teal);
}
.hd-entry__content .hd-entry__meta {
	margin-bottom: 0.5em;
	color: var(--hd-grey);
	font-family: var(--hd-font-head);
	font-weight: 600;
	font-size: 0.8125rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.hd-entry__content .hd-entry__meta + h2 {
	margin-top: 1.2em;
}
.hd-entry__content .hd-entry__address {
	padding: 18px 22px;
	border-radius: 14px;
	background: var(--hd-mist);
	line-height: 1.65;
}

/* Tables scroll sideways inside their frame on small screens */
.hd-entry__content .wp-block-table {
	margin: 1.5em 0 2em;
	overflow-x: auto;
	border: 1px solid #e2e9ea;
	border-radius: 14px;
}
.hd-entry__content .wp-block-table table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-size: 0.8125rem;
	line-height: 1.5;
	overflow-wrap: normal; /* never split a word mid-letter */
}
.hd-entry__content .wp-block-table thead {
	border-bottom: 0;
}
.hd-entry__content .wp-block-table th,
.hd-entry__content .wp-block-table td {
	padding: 12px 10px;
	border: 0;
	border-bottom: 1px solid #e2e9ea;
	text-align: left;
	vertical-align: top;
	word-break: normal; /* core's fixed-layout tables split words mid-letter */
}
.hd-entry__content .wp-block-table thead th {
	padding-inline: 8px;
	background: var(--hd-teal);
	color: #fff;
	font-family: var(--hd-font-head);
	font-weight: 600;
	font-size: 0.6875rem;
	line-height: 1.4;
	letter-spacing: 0.02em;
	vertical-align: bottom;
	-webkit-hyphens: auto; /* the narrow header cells hyphenate "Information", "Commercial" */
	hyphens: auto;
}
.hd-entry__content .wp-block-table tbody tr:nth-child(even) td {
	background: var(--hd-mist);
}
.hd-entry__content .wp-block-table tbody tr:last-child td {
	border-bottom: 0;
}
.hd-entry__content .wp-block-table tbody td:first-child {
	font-weight: 500;
	color: var(--hd-teal-dark);
}
/* The five-column disclosure table stays inside the text column and scrolls
   sideways inside its frame on phones. */
.hd-disclosure-table th:nth-child(1) {
	width: 17%;
}
.hd-disclosure-table th:nth-child(2) {
	width: 23%;
}
.hd-disclosure-table th:nth-child(3) {
	width: 30%;
}
.hd-disclosure-table th:nth-child(4) {
	width: 14%; /* room for "Information" even at the 640px minimum */
}
.hd-disclosure-table th:nth-child(5) {
	width: 16%;
}

/* =========================================================================
   Basic pages (index / 404)
   ========================================================================= */
.hd-basic {
	padding: calc(var(--hd-header-h) + 40px) 0 80px;
}
.hd-basic__inner {
	max-width: 760px;
}
.hd-entry__title {
	color: var(--hd-teal);
	margin-bottom: 24px;
	text-transform: none;
}
.hd-entry__content {
	font-size: 1.05rem;
}
.hd-404 {
	text-align: center;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
	.hd-services__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.hd-service {
		min-height: 160px;
	}
}

@media (max-width: 900px) {
	.hd-hero__title {
		font-size: clamp(2.75rem, 7vw, 3.5rem);
	}

	.hd-contact {
		padding-top: 26px;
	}
	.hd-contact__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}
	.hd-contact__intro {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 16px;
		padding-top: 0;
	}
	.hd-contact__title {
		font-size: clamp(2.5rem, 7vw, 3.25rem);
		margin-bottom: 46px;
	}
	.hd-contact__art {
		width: clamp(150px, 45vw, 240px);
		margin-left: 0;
	}
	.hd-planet--big,
	.hd-planet--pair,
	.hd-planet--plain,
	.hd-planet--moon {
		display: none;
	}
	.hd-planet--ring {
		--s: 0.5;
		left: auto;
		right: -4px;
		bottom: 4px;
	}
}

@media (max-width: 768px) {
	.hd-header__logo img {
		height: 30px;
	}
	.hd-header.is-scrolled .hd-header__logo img,
	.hd-header.is-solid .hd-header__logo img {
		height: 28px;
	}
	.hd-header.is-scrolled,
	.hd-header.is-solid {
		transform: translate3d(0, 8px, 0);
	}
	.hd-header.is-menu-open {
		transform: none;
	}
	.hd-nav {
		display: none;
	}
	.hd-nav-toggle {
		display: inline-flex;
	}

	.hd-menu {
		position: fixed;
		inset: 0;
		z-index: 90;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		gap: 40px;
		padding: calc(var(--hd-header-h) + 48px) var(--hd-gutter) 36px;
		overflow-y: auto;
		background: var(--hd-teal);
		visibility: hidden;
		opacity: 0;
		clip-path: inset(0 0 100% 0);
		transition: clip-path 0.4s var(--hd-ease-in), opacity 0.4s ease, visibility 0s linear 0.4s;
	}
	body.admin-bar .hd-menu {
		top: 46px;
	}
	.hd-menu.is-open {
		visibility: visible;
		opacity: 1;
		clip-path: inset(0 0 0 0);
		transition: clip-path 0.65s var(--hd-ease-out), opacity 0.25s ease, visibility 0s linear 0s;
	}
	.hd-menu__nav {
		display: flex;
		flex-direction: column;
	}
	.hd-menu__link {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 20px 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.14);
		color: #fff;
		font-family: var(--hd-font-head);
		font-weight: 900;
		font-size: clamp(1.625rem, 7.7vw, 2.25rem);
		line-height: 1;
		text-transform: uppercase;
		text-decoration: none;
	}
	.hd-menu__link:hover,
	.hd-menu__link:focus {
		color: #fff;
		text-decoration: none;
	}
	.hd-menu__link:focus-visible {
		outline: 2px solid #fff;
		outline-offset: 4px;
	}
	.hd-menu__link .hd-icon {
		width: 22px;
		height: 22px;
		color: #ff9a45;
		transition: transform 0.3s var(--hd-ease-out);
	}
	.hd-menu__link:hover .hd-icon,
	.hd-menu__link:focus .hd-icon {
		transform: translateX(4px);
	}
	.hd-menu__meta {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}
	.hd-menu__privacy {
		color: rgba(255, 255, 255, 0.88);
		font-size: 0.875rem;
		font-weight: 500;
	}
	.hd-menu__privacy:hover,
	.hd-menu__privacy:focus {
		color: #fff;
	}
	.hd-menu__copy {
		margin: 0;
		font-size: 0.78rem;
		line-height: 1.5;
		color: rgba(255, 255, 255, 0.74);
	}
	/* Links rise in after the panel; on close they drop away first */
	.hd-menu__link,
	.hd-menu__meta {
		opacity: 0;
		transform: translate3d(0, 24px, 0);
		transition: opacity 0.18s ease, transform 0.18s ease;
	}
	.hd-menu.is-open .hd-menu__link,
	.hd-menu.is-open .hd-menu__meta {
		opacity: 1;
		transform: none;
		transition: opacity 0.6s var(--hd-ease-out), transform 0.8s var(--hd-ease-out);
	}
	.hd-menu.is-open .hd-menu__link:nth-child(1) {
		transition-delay: 0.14s;
	}
	.hd-menu.is-open .hd-menu__link:nth-child(2) {
		transition-delay: 0.2s;
	}
	.hd-menu.is-open .hd-menu__link:nth-child(3) {
		transition-delay: 0.26s;
	}
	.hd-menu.is-open .hd-menu__meta {
		transition-delay: 0.36s;
	}
}

/* Stacked hero: copy on top, pills below it on the right, cube bottom-left */
@media (max-width: 700px) {
	.hd-hero {
		--pill-w: clamp(60px, 18vw, 84px);
		--pill-gap: 12px;
		--pill-spill: 44px;
		--cube-w: clamp(84px, 26.7vw, 128px);
	}
	.hd-hero__inner {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
		padding-top: calc(var(--hd-header-h) + 44px);
	}
	.hd-hero__copy {
		align-self: start;
		gap: 18px;
		padding-block: 0;
		margin-bottom: 0;
	}
	.hd-hero__eyebrow {
		gap: 12px;
		font-size: 0.6875rem;
		letter-spacing: 0.26em;
	}
	.hd-hero__rule {
		width: 28px;
	}
	.hd-hero__title {
		font-size: clamp(2.5rem, 12.3vw, 3.5rem);
	}
	.hd-hero__actions {
		margin-top: 6px;
	}
	.hd-hero__actions .hd-btn {
		height: 52px;
		padding: 0 24px;
		font-size: 0.75rem;
	}
	.hd-hero__pills {
		justify-self: end;
		margin-top: 52px;
	}
	.hd-pill {
		height: calc(var(--pill-w) * 4.29);
		box-shadow: 0 26px 44px -22px rgba(110, 40, 0, 0.55);
	}
	.hd-pill--2 {
		height: calc(var(--pill-w) * 4.86);
	}
	.hd-pill--3 {
		height: calc(var(--pill-w) * 5.43);
	}
	.hd-pill img {
		transform: scale(1.16);
	}
	.hd-hero__cube {
		right: auto;
		left: calc(var(--hd-gutter) - 4px);
	}
}

@media (max-width: 600px) {
	body {
		font-size: 16px;
	}

	.hd-services__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}
	.hd-service {
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		gap: 16px;
		min-height: 88px;
		padding: 12px 18px;
		border-radius: 18px;
	}
	.hd-service__icon {
		width: 52px;
		height: 52px;
		border-radius: 14px;
	}
	.hd-service__icon .hd-icon {
		width: 24px;
		height: 24px;
	}
	.hd-service__title {
		font-size: 1rem;
	}

	.hd-join__subhead {
		max-width: 280px;
		margin-top: 18px;
	}
	.hd-join__cta {
		margin-top: 26px;
	}
	.hd-job {
		gap: 14px;
		padding: 18px 16px 18px 22px;
		border-radius: 24px;
	}
	.hd-job__title {
		line-height: 1.2;
	}
	.hd-job__meta {
		font-size: 0.8125rem;
	}
	.hd-job__go {
		width: 48px;
		height: 48px;
	}
	.hd-job__go .hd-icon {
		width: 20px;
		height: 20px;
	}

	.contact-card {
		border-radius: 24px;
	}
	.contact-card .gform_wrapper.gravity-theme .gform_fields {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}
	.contact-card .gform_wrapper.gravity-theme .gform_fields .gfield {
		min-height: 60px;
		padding: 10px 16px 8px;
		border-radius: 12px;
	}
	.contact-card .gform_wrapper.gravity-theme .gfield_label,
	.contact-card .gform_wrapper.gravity-theme .hidden_label .gfield_label {
		font-size: 0.72rem;
	}
	.contact-card .gform_wrapper.gravity-theme .gform_fields .gfield textarea {
		height: 84px;
	}
	.contact-card .gform_wrapper.gravity-theme .gform_footer {
		margin-top: 18px;
	}
	.contact-card .gform_wrapper.gravity-theme .gform_footer .gform_button {
		height: 54px;
		border-radius: 12px;
	}

	/* Stacked footer centres under the clouds */
	.hd-footer__inner {
		flex-direction: column;
		align-items: center;
		gap: 16px;
		text-align: center;
	}
	.hd-footer__meta {
		align-items: center;
		text-align: center;
	}
	.hd-footer__logo img {
		height: 30px;
	}
}

/* =========================================================================
   Motion
   Hero: one timed intro in pure CSS, so it plays at first paint instead of
   waiting on the footer script. Below the fold: direction-aware reveals
   driven by theme.js (`.hd-motion` is only set once the observer is live, so
   content is never left hidden if the script fails). Scroll-linked parallax
   writes only `translate`/`rotate`, which compose with these `transform`
   animations instead of overwriting them.
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}

	/* ---- Hero intro ---- */
	.hd-front .hd-header {
		animation: hd-fade 0.8s var(--hd-ease-out) both;
	}
	.hd-hero__rule {
		animation: hd-rule 0.9s var(--hd-ease-out) 0.1s both;
	}
	.hd-hero__eyebrow-text {
		animation: hd-rise 0.9s var(--hd-ease-out) 0.16s both;
	}
	.hd-hero__line > span {
		animation: hd-line 1.15s var(--hd-ease-out) 0.22s both;
	}
	.hd-hero__line:nth-child(2) > span {
		animation-delay: 0.31s;
	}
	.hd-hero__line:nth-child(3) > span {
		animation-delay: 0.4s;
	}
	.hd-hero__actions {
		animation: hd-rise 0.9s var(--hd-ease-out) 0.52s both;
	}
	.hd-pill {
		animation: hd-pill 1.35s var(--hd-ease-out) 0.36s both;
	}
	.hd-pill img {
		animation: hd-pill-photo 1.9s var(--hd-ease-out) 0.36s both;
	}
	.hd-pill--2,
	.hd-pill--2 img {
		animation-delay: 0.46s;
	}
	.hd-pill--3,
	.hd-pill--3 img {
		animation-delay: 0.56s;
	}
	.hd-hero__cube {
		animation: hd-cube 1.5s var(--hd-ease-out) 0.72s both;
	}
	.hd-page-head__title {
		animation: hd-rise 0.9s var(--hd-ease-out) 0.1s both;
	}

	/* ---- Reveals: enter rising, exit the way they leave ---- */
	.hd-motion [data-hd-reveal="rise"],
	.hd-motion [data-hd-reveal="stagger"] > *,
	.hd-motion [data-hd-reveal="rocket"],
	.hd-motion [data-hd-reveal="card"] {
		transition: opacity 0.32s var(--hd-ease-in), transform 0.32s var(--hd-ease-in);
	}
	.hd-motion [data-hd-reveal="rise"]:not(.is-in),
	.hd-motion [data-hd-reveal="stagger"]:not(.is-in) > * {
		opacity: 0;
		transform: translate3d(0, 34px, 0);
	}
	.hd-motion [data-hd-reveal="rise"].is-above,
	.hd-motion [data-hd-reveal="stagger"].is-above > * {
		transform: translate3d(0, -26px, 0);
	}
	.hd-motion [data-hd-reveal="rise"].is-in,
	.hd-motion [data-hd-reveal="stagger"].is-in > * {
		opacity: 1;
		transform: none;
		transition: opacity 0.85s var(--hd-ease-out), transform 1s var(--hd-ease-out);
	}
	.hd-motion [data-hd-reveal="stagger"].is-in > :nth-child(2) {
		transition-delay: 0.09s;
	}
	.hd-motion [data-hd-reveal="stagger"].is-in > :nth-child(3) {
		transition-delay: 0.18s;
	}
	.hd-motion [data-hd-reveal="stagger"].is-in > :nth-child(4) {
		transition-delay: 0.27s;
	}

	/* Rocket flies in from the lower left and leaves along its path */
	.hd-motion [data-hd-reveal="rocket"]:not(.is-in) {
		opacity: 0;
		transform: translate3d(-90px, 70px, 0) rotate(-8deg);
	}
	.hd-motion [data-hd-reveal="rocket"].is-above {
		transform: translate3d(90px, -80px, 0) rotate(4deg);
		transition-duration: 0.5s, 0.6s;
	}
	.hd-motion [data-hd-reveal="rocket"].is-in {
		opacity: 1;
		transform: none;
		transition: opacity 0.9s var(--hd-ease-out), transform 1.4s var(--hd-ease-out);
	}

	/* Form card lifts and settles */
	.hd-motion [data-hd-reveal="card"]:not(.is-in) {
		opacity: 0;
		transform: translate3d(0, 48px, 0) scale(0.97);
	}
	.hd-motion [data-hd-reveal="card"].is-above {
		transform: translate3d(0, -26px, 0) scale(0.99);
	}
	.hd-motion [data-hd-reveal="card"].is-in {
		opacity: 1;
		transform: none;
		transition: opacity 0.9s var(--hd-ease-out) 0.08s, transform 1.1s var(--hd-ease-out) 0.08s;
	}

	/* The JOIN outline tightens as its group arrives */
	.hd-motion [data-hd-reveal="stagger"] .hd-join__ghost {
		letter-spacing: 0.2em;
		padding-left: 0.2em;
		transition: letter-spacing 0.35s var(--hd-ease-in), padding-left 0.35s var(--hd-ease-in);
	}
	.hd-motion [data-hd-reveal="stagger"].is-in .hd-join__ghost {
		letter-spacing: 0.08em;
		padding-left: 0.08em;
		transition: letter-spacing 1.6s var(--hd-ease-out), padding-left 1.6s var(--hd-ease-out);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hd-menu,
	.hd-menu__link,
	.hd-menu__meta,
	.hd-header,
	.hd-header::before,
	.hd-nav-toggle__bar,
	.hd-nav-toggle__bar::before,
	.hd-nav-toggle__bar::after {
		transition: none !important;
	}
}

@keyframes hd-fade {
	from {
		opacity: 0;
	}
}
@keyframes hd-rise {
	from {
		opacity: 0;
		transform: translate3d(0, 26px, 0);
	}
}
@keyframes hd-line {
	from {
		transform: translate3d(0, 112%, 0);
	}
}
@keyframes hd-rule {
	from {
		transform: scaleX(0);
	}
}
@keyframes hd-pill {
	from {
		opacity: 0;
		transform: translate3d(0, 96px, 0);
	}
}
@keyframes hd-pill-photo {
	from {
		transform: scale(1.36);
	}
}
@keyframes hd-cube {
	from {
		opacity: 0;
		transform: translate3d(0, 40px, 0) rotate(-14deg) scale(0.84);
	}
}

@media print {
	[data-hd-reveal],
	[data-hd-reveal] > * {
		opacity: 1 !important;
		transform: none !important;
	}
	.hd-header {
		position: absolute;
	}
}
