/*
Theme Name: Xtreme House
Theme URI: https://xtremehouse.com
Author: Xtreme House
Description: Block theme for the Xtreme House website: product development and manufacturing for founders and brands.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xtreme-house
*/

/* ==========================================================================
   Design tokens. theme.json colours point at these variables, so every block
   switches between light (default) and dark when <html data-theme="dark">.
   ========================================================================== */
:root {
	--xh-canvas: #F6F9FC;
	--xh-canvas-alt: #EBF1F8;
	--xh-surface: #FFFFFF;
	--xh-heading: #0B1220;
	--xh-body: #545962;
	--xh-muted: #61666E;
	--xh-hairline: rgba(8, 14, 26, 0.1);
	--xh-accent: #0E7490;
	--xh-dim: #8A9098;
	--xh-spectrum: linear-gradient(100deg, #0891B2 0%, #6D5BFF 42%, #E0445A 74%, #C46A0A 100%);
	--xh-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.6) 60%, rgba(34, 211, 238, 0.1));
	--xh-glass-lite: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55));
	--xh-glass-border: rgba(8, 14, 26, 0.08);
	--xh-glass-rim: linear-gradient(135deg, #fff, rgba(34, 211, 238, 0.35) 50%, rgba(139, 123, 255, 0.12));
	--xh-glass-shadow: inset 0 1px 0 #fff, 0 30px 60px -30px rgba(30, 60, 110, 0.35);
	--xh-btn-bg: linear-gradient(180deg, #67E8F9, #22D3EE);
	--xh-btn-bg-hover: linear-gradient(180deg, #8BEEFB, #3DDAF0);
	--xh-btn-text: #031A22;
	--xh-btn-border: rgba(255, 255, 255, 0.7);
	--xh-btn-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 14px 34px -10px rgba(6, 182, 212, 0.65);
	--xh-ghost-bg: rgba(255, 255, 255, 0.7);
	--xh-ghost-border: rgba(8, 14, 26, 0.14);
	--xh-chip: rgba(255, 255, 255, 0.84);
	--xh-grid-line: rgba(11, 18, 32, 0.045);
	color-scheme: light;
}

html[data-theme="dark"] {
	--xh-canvas: #050708;
	--xh-canvas-alt: #0A0E10;
	--xh-surface: #10161A;
	--xh-heading: #F4F5F5;
	--xh-body: #AEB0B1;
	--xh-muted: #8D8F90;
	--xh-hairline: rgba(255, 255, 255, 0.1);
	--xh-accent: #3FE0C8;
	--xh-dim: #6B7075;
	--xh-spectrum: linear-gradient(100deg, #7CF2DE 0%, #8B7BFF 42%, #FF8A7A 74%, #FFB547 100%);
	--xh-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 60%, rgba(34, 211, 238, 0.04));
	--xh-glass-lite: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 60%, rgba(34, 211, 238, 0.04));
	--xh-glass-border: rgba(255, 255, 255, 0.14);
	--xh-glass-rim: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0));
	--xh-glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 30px 80px -24px rgba(0, 0, 0, 0.75);
	--xh-btn-bg: linear-gradient(180deg, rgba(63, 224, 200, 0.42), rgba(63, 224, 200, 0.16));
	--xh-btn-bg-hover: linear-gradient(180deg, rgba(63, 224, 200, 0.55), rgba(63, 224, 200, 0.25));
	--xh-btn-text: #F4F5F5;
	--xh-btn-border: rgba(63, 224, 200, 0.55);
	--xh-btn-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 0 24px rgba(63, 224, 200, 0.22), 0 0 50px -12px rgba(63, 224, 200, 0.55);
	--xh-ghost-bg: rgba(255, 255, 255, 0.04);
	--xh-ghost-border: rgba(255, 255, 255, 0.18);
	--xh-chip: rgba(8, 12, 14, 0.7);
	--xh-grid-line: rgba(255, 255, 255, 0.05);
	color-scheme: dark;
}

body {
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "liga", "kern";
	overflow-x: clip;
}

/* Gradient words inside headings (Spectrum text format). */
.xh-spectrum {
	background: var(--xh-spectrum);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* Glass surfaces: cards, panels and the header pill. */
.is-style-glass,
.is-style-glass-lite,
.xh-glass {
	position: relative;
	border-radius: 28px;
	background: var(--xh-glass);
	border: 1px solid var(--xh-glass-border);
	box-shadow: var(--xh-glass-shadow);
	overflow: hidden;
}
.is-style-glass-lite {
	background: var(--xh-glass-lite);
}
.is-style-glass::before,
.is-style-glass-lite::before,
.xh-glass::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	pointer-events: none;
	background: var(--xh-glass-rim);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
}
/* The blur sits on its own layer: a blur on the element itself would trap
   the mobile menu overlay inside the header. */
.xh-glass--blur::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	backdrop-filter: blur(24px) saturate(180%);
}

/* Colour-mesh tiles behind photos and illustrations. */
.is-style-mesh {
	--xh-a: rgba(34, 211, 238, 0.4);
	--xh-b: rgba(139, 123, 255, 0.45);
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	border: 1px solid var(--xh-glass-border);
	background:
		radial-gradient(90% 80% at 15% 10%, var(--xh-a), transparent 65%),
		radial-gradient(80% 80% at 92% 100%, var(--xh-b), transparent 65%),
		var(--xh-canvas);
}

/* Bright "luminous" band (Design Pack). Always light, in both modes. */
.is-style-luminous {
	--xh-heading: #000;
	--xh-body: rgba(0, 0, 0, 0.66);
	--xh-accent: #0E7490;
	--wp--preset--color--heading: #000;
	--wp--preset--color--body: rgba(0, 0, 0, 0.66);
	--wp--preset--color--accent: #0E7490;
	color: var(--xh-body);
	background:
		radial-gradient(600px 420px at 88% 18%, rgba(255, 181, 71, 0.3), transparent 70%),
		radial-gradient(520px 440px at 70% 82%, rgba(139, 123, 255, 0.24), transparent 70%),
		radial-gradient(500px 380px at 8% 92%, rgba(255, 122, 138, 0.22), transparent 70%),
		linear-gradient(180deg, #fff 0%, #EAFBFF 70%, #CFF6FF 100%);
}

/* Soft colour glows used by the hero and the closing section. */
.is-style-glow-hero {
	background:
		radial-gradient(800px 600px at 78% 36%, rgba(34, 211, 238, 0.28), transparent 70%),
		radial-gradient(600px 500px at 96% 78%, rgba(139, 123, 255, 0.22), transparent 70%),
		radial-gradient(560px 420px at 62% 100%, rgba(255, 181, 71, 0.26), transparent 70%),
		radial-gradient(600px 420px at 6% 100%, rgba(255, 106, 91, 0.18), transparent 70%),
		var(--xh-canvas);
}
.is-style-glow-finale {
	background:
		radial-gradient(640px 480px at 15% 100%, rgba(34, 211, 238, 0.3), transparent 70%),
		radial-gradient(640px 480px at 50% 100%, rgba(139, 123, 255, 0.26), transparent 70%),
		radial-gradient(640px 480px at 85% 100%, rgba(255, 122, 138, 0.26), transparent 70%),
		radial-gradient(500px 360px at 100% 20%, rgba(255, 181, 71, 0.24), transparent 70%),
		var(--xh-canvas);
}

/* Buttons: primary is the theme.json default; outline is the ghost style. */
.wp-element-button,
.wp-block-button__link {
	transition: transform 0.3s cubic-bezier(.16, 1, .3, 1), box-shadow 0.3s, background 0.3s;
}
.wp-block-button__link:active {
	transform: scale(0.98);
}

/* Eyebrow labels. */
.is-style-eyebrow {
	color: var(--xh-accent);
}

/* Rules theme.json cannot express. */

/* Sections sit flush against each other. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

h1, h2 {
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

/* Whole category card is clickable through its title link. */
.xh-card-link {
	position: relative;
}
.xh-card-link a::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* Hero intro keeps a readable line length. */
.xh-measure {
	max-width: 540px;
}

/* Long-form text on plain pages and posts. */
.xh-prose {
	font-size: 18px;
	color: #2A2D31;
}
.xh-prose > * + * {
	margin-block-start: 1.1em;
}
.xh-prose h2 {
	font-size: 34px;
	letter-spacing: -0.02em;
	margin-block-start: 1.6em;
}
.xh-prose h3 {
	margin-block-start: 1.4em;
}
.xh-prose a {
	text-decoration: underline;
	text-decoration-color: var(--xh-accent);
	text-underline-offset: 3px;
}

/* Full-width pages stack their sections with no gap. */
.xh-sections > * + * {
	margin-block-start: 0;
}

/* Featured image slot: the image fills the box, the label shows until one is set. */
.xh-media-slot {
	position: relative;
	overflow: hidden;
}
.xh-media-slot .wp-block-post-featured-image {
	position: absolute;
	inset: 0;
	margin: 0;
}
.xh-media-slot .wp-block-post-featured-image :is(a, img) {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.xh-media-slot:has(.wp-block-post-featured-image img) .is-style-placeholder {
	display: none;
}

/* Case study story: the three content sections. */
.xh-case-story > * + * {
	margin-block-start: 56px;
}
.xh-case-story h2 {
	font-size: 34px;
	letter-spacing: -0.02em;
}
.xh-case-story p {
	font-size: 18px;
	color: #2A2D31;
}

/* Testimonial quote. */
.wp-block-quote.xh-quote {
	margin: 0;
	padding: 0;
	border: 0;
}
.wp-block-quote.xh-quote p {
	font-size: clamp(24px, 2.6vw, 36px);
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: -0.01em;
}

/* Next case study: hidden when there is no other case study. */
.xh-next:not(:has(a)) {
	display: none;
}
.xh-next a::after {
	content: " →";
}

/* Category label above case study cards. */
.wp-block-post-terms.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--eyebrow);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.wp-block-post-terms.is-style-eyebrow a {
	position: relative;
	z-index: 1;
}

/* Quote form (Contact Form 7 markup). */
.xh-form,
.xh-form-grid,
.xh-field,
.xh-choices .wpcf7-form-control {
	display: flex;
	flex-direction: column;
}
.xh-form {
	gap: 22px;
}
.xh-form p {
	margin: 0;
}
.xh-form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 18px;
}
.xh-field {
	gap: 8px;
}
.xh-field > label,
.xh-choices legend {
	font-size: 15px;
	font-weight: 600;
}
.xh-form .wpcf7-form-control-wrap {
	display: block;
}
.xh-form input[type="text"],
.xh-form input[type="email"],
.xh-form select,
.xh-form textarea {
	box-sizing: border-box;
	width: 100%;
	height: 52px;
	padding: 0 16px;
	border: 1px solid #C9CBC7;
	border-radius: 12px;
	background: var(--xh-surface);
	color: var(--xh-heading);
	font: inherit;
	font-size: 16px;
}
.xh-form select {
	padding: 0 12px;
}
.xh-form textarea {
	height: auto;
	padding: 14px 16px;
	resize: vertical;
}
.xh-form ::placeholder {
	color: #74777C;
}
.xh-form input[type="file"] {
	box-sizing: border-box;
	width: 100%;
	padding: 14px 16px;
	border: 1px dashed #A9ACB0;
	border-radius: 12px;
	background: #F7F7F5;
	font: inherit;
	font-size: 15px;
}
.xh-form :is(input, select, textarea):focus-visible {
	outline: 2px solid var(--xh-accent);
	outline-offset: 1px;
	border-color: var(--xh-heading);
}
.xh-hint {
	font-size: 14px;
	color: var(--xh-muted);
}

/* Radio and checkbox groups as bordered option rows. */
.xh-choices {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}
.xh-choices legend {
	padding: 0;
	margin-bottom: 10px;
}
.xh-choices .wpcf7-form-control {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 10px;
}
.xh-choices .wpcf7-list-item {
	margin: 0;
}
.xh-choices .wpcf7-list-item label {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	height: 100%;
	padding: 0 16px;
	border: 1px solid #C9CBC7;
	border-radius: 12px;
	cursor: pointer;
}
.xh-choices .wpcf7-list-item label:has(input:checked) {
	border-color: var(--xh-heading);
	box-shadow: inset 0 0 0 1px var(--xh-heading);
}
.xh-form input[type="radio"],
.xh-form input[type="checkbox"] {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--xh-heading);
}
.xh-nda .wpcf7-list-item {
	margin: 0;
}
.xh-nda label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 15px;
	color: #2A2D31;
	cursor: pointer;
}
.xh-nda input[type="checkbox"] {
	margin-top: 2px;
}

/* Submit and note. */
.xh-form .wpcf7-submit {
	width: 100%;
	height: 58px;
	border: 0;
	border-radius: 999px;
	background: var(--xh-heading);
	color: var(--xh-canvas);
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
}
.xh-form .wpcf7-submit:hover {
	background: var(--xh-heading);
}
.xh-form .wpcf7-submit:focus-visible {
	outline: 2px solid var(--xh-accent);
	outline-offset: 3px;
}
.xh-form .wpcf7-spinner {
	display: block;
	margin: 12px auto 0;
}
.xh-form-note {
	font-size: 14px;
	color: var(--xh-muted);
}
.xh-form-note a {
	text-decoration: underline;
}

/* Validation and response messages. */
.xh-form .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 14px;
	color: #B3261E;
}
.xh-form .wpcf7-not-valid {
	border-color: #B3261E;
}
.wpcf7 form .wpcf7-response-output {
	margin: 22px 0 0;
	padding: 14px 16px;
	border-radius: 12px;
	font-size: 15px;
}

/* Date and category line above an article title. */
.xh-post-meta {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--eyebrow);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.wp-block-post-date.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--eyebrow);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Search form on dark heroes. */
.xh-search .wp-block-search__input {
	height: 52px;
	padding: 0 16px;
	border: 1px solid var(--xh-glass-border);
	border-radius: 12px;
	background: var(--xh-surface);
	color: var(--xh-canvas);
	font: inherit;
}
.xh-search .wp-block-search__button {
	margin-left: 10px;
	border: 0;
	border-radius: 999px;
	padding: 0 24px;
	background: var(--xh-accent);
	color: var(--xh-heading);
	font-weight: 700;
}

/* Footer social links stay hidden until a profile URL is added. */
.xh-social:not(:has(li)) {
	display: none;
}

/* ==========================================================================
   Header: a floating glass pill. The slot keeps space for it in the page.
   ========================================================================== */
.xh-header-slot {
	height: calc(90px + env(safe-area-inset-top, 0px));
}
.xh-header.wp-block-group {
	position: fixed;
	z-index: 50;
	top: calc(14px + env(safe-area-inset-top, 0px));
	left: 0;
	right: 0;
	margin-inline: auto;
	width: min(1120px, calc(100% - 28px));
	overflow: visible;
	height: 62px;
	padding: 0 10px 0 22px;
	border-radius: 999px;
	align-items: center;
	transition: width 0.6s cubic-bezier(.16, 1, .3, 1), height 0.6s cubic-bezier(.16, 1, .3, 1);
}
.admin-bar .xh-header.wp-block-group {
	top: calc(46px + env(safe-area-inset-top, 0px));
}
.xh-header.is-scrolled {
	width: min(960px, calc(100% - 28px));
	height: 54px;
}
.xh-header > *,
.xh-header .wp-block-image {
	position: relative;
	z-index: 1;
	margin: 0;
}
.xh-logo .wp-block-image img {
	display: block;
}
.xh-header .xh-logo .wp-block-image img {
	width: 140px !important;
	height: auto !important;
}
.xh-logo__dark,
html[data-theme="dark"] .xh-logo__light {
	display: none;
}
html[data-theme="dark"] .xh-logo__dark {
	display: block;
}

.xh-main-nav {
	color: var(--xh-body);
}
.xh-main-nav .wp-block-navigation__container {
	gap: 22px;
	white-space: nowrap;
}
.xh-header__buttons.wp-block-buttons {
	flex-wrap: nowrap;
}
.xh-main-nav a:hover,
.xh-main-nav .current-menu-item > a {
	color: var(--xh-heading);
	text-decoration: none;
}
.xh-main-nav .current-menu-item > a {
	text-decoration: underline;
	text-decoration-color: var(--xh-accent);
	text-underline-offset: 6px;
}
.xh-btn-sm .wp-block-button__link {
	padding: 9px 20px;
	font-size: 14px;
	white-space: nowrap;
}
.xh-mobile-only {
	display: none !important;
}

/* Below 1000px the links move into the menu overlay. */
@media (max-width: 999px) {
	.xh-hide-mobile {
		display: none !important;
	}
	.xh-header .xh-main-nav {
		margin-left: auto;
	}
	.xh-main-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
	.xh-main-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
	.xh-main-nav .is-menu-open .xh-mobile-only {
		display: flex !important;
	}
}
.xh-main-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--xh-canvas);
	color: var(--xh-heading);
	padding: calc(28px + env(safe-area-inset-top, 0px)) 28px 28px;
}
.xh-header .xh-main-nav:has(.is-menu-open) {
	z-index: 10;
}
.xh-main-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.xh-main-nav .is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
	gap: 18px;
	padding-top: 24px;
}
.xh-main-nav .is-menu-open .wp-block-navigation__container {
	width: 100%;
}
.xh-main-nav .is-menu-open .wp-block-navigation-item {
	justify-content: flex-start;
	align-self: flex-start;
}
.xh-main-nav .is-menu-open .wp-block-navigation-item__content {
	font-size: 30px;
	font-weight: 300;
	letter-spacing: -0.03em;
	color: var(--xh-heading);
}
@media (max-width: 520px) {
	.xh-header.wp-block-group {
		padding-left: 14px;
	}
	.xh-logo .wp-block-image img {
		width: 132px !important;
		height: auto !important;
	}
}

/* Light / dark switch. */
.xh-theme-toggle {
	position: relative;
	flex: none;
	width: 56px;
	height: 32px;
	padding: 0;
	border-radius: 99px;
	border: 1px solid var(--xh-ghost-border);
	background: var(--xh-ghost-bg);
	cursor: pointer;
}
.xh-theme-toggle__knob {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: linear-gradient(180deg, #fff, #E3F6FB);
	box-shadow: 0 2px 8px rgba(30, 60, 110, 0.3), inset 0 1px 0 #fff;
	transition: transform 0.55s cubic-bezier(.16, 1, .3, 1), background 0.4s;
}
.xh-theme-toggle svg {
	position: absolute;
	left: 5px;
	top: 5px;
	width: 16px;
	height: 16px;
	fill: none;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: opacity 0.35s, transform 0.55s cubic-bezier(.16, 1, .3, 1);
}
.xh-theme-toggle__sun {
	stroke: #B45309;
}
.xh-theme-toggle__moon {
	stroke: #04201B;
	opacity: 0;
	transform: rotate(-40deg) scale(0.6);
}
html[data-theme="dark"] .xh-theme-toggle__knob {
	transform: translateX(24px);
	background: linear-gradient(180deg, #8FF5E3, #3FE0C8);
}
html[data-theme="dark"] .xh-theme-toggle__sun {
	opacity: 0;
	transform: rotate(40deg) scale(0.6);
}
html[data-theme="dark"] .xh-theme-toggle__moon {
	opacity: 1;
	transform: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.xh-footer {
	position: relative;
	overflow: hidden;
	border-top: 1px solid var(--xh-hairline);
}
.xh-footer a:hover {
	color: var(--xh-heading);
	text-decoration: none;
}
.xh-footer__cols {
	grid-template-columns: 1.4fr repeat(3, 1fr);
}
@media (max-width: 860px) {
	.xh-footer__cols {
		grid-template-columns: 1fr 1fr !important;
	}
	.xh-footer__cols > :first-child {
		grid-column: 1 / -1;
	}
}
.xh-footer__title.is-style-eyebrow {
	color: var(--xh-muted);
	margin-bottom: 8px;
}
.xh-offices {
	list-style: none;
	margin: 0;
	padding: 0;
}
.xh-offices li {
	display: flex;
	justify-content: space-between;
	padding: 5px 0;
}
.xh-offices time {
	font: 400 12px/1.8 var(--wp--preset--font-family--mono);
	color: var(--xh-accent);
	font-variant-numeric: tabular-nums;
}
.xh-footer__word {
	font-size: clamp(4rem, 17vw, 17rem);
	font-weight: 500;
	letter-spacing: -0.06em;
	line-height: 0.8;
	color: transparent;
	-webkit-text-stroke: 1px var(--xh-hairline);
	white-space: nowrap;
	margin: 80px 0 0 !important;
	user-select: none;
}
.xh-footer__legal {
	margin-top: 40px !important;
	font: 400 11px/1.6 var(--wp--preset--font-family--mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--xh-muted);
}

/* ==========================================================================
   Motion: reveals and scroll-lit words (only once site.js is running).
   ========================================================================== */
.xh-js-reveal .xh-reveal {
	opacity: 0;
	transform: translateY(24px);
	filter: blur(6px);
	transition: opacity 1.1s cubic-bezier(.16, 1, .3, 1), transform 1.1s cubic-bezier(.16, 1, .3, 1), filter 1.1s cubic-bezier(.16, 1, .3, 1);
}
.xh-js-reveal .xh-reveal.is-in {
	opacity: 1;
	transform: none;
	filter: none;
}
/* Unlit words are dimmed with a colour that still reads (3:1 at this size). */
.xh-lit.is-ready .xh-lit__w {
	color: var(--xh-dim);
	transition: color 0.5s cubic-bezier(.16, 1, .3, 1);
}
.xh-lit.is-ready .xh-lit__w.is-on {
	color: var(--xh-heading);
}
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		scroll-behavior: auto !important;
	}
	.xh-js-reveal .xh-reveal {
		transform: none;
		filter: none;
	}
}

/* ==========================================================================
   Home (v2) sections
   ========================================================================== */
.xh-mt-72 { margin-top: 72px; }

/* Section headings in the story sections. */
.xh-statement {
	max-width: 18ch;
	color: var(--xh-heading);
	font-weight: 300;
	line-height: 1.02;
	letter-spacing: -0.04em;
}

/* Hero: slides under the floating header. */
.xh-hero-v2 {
	position: relative;
	overflow: hidden;
	margin-top: calc(-90px - env(safe-area-inset-top, 0px)) !important;
	min-height: 100svh;
}
.xh-hero-v2::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: linear-gradient(var(--xh-grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--xh-grid-line) 1px, transparent 1px);
	background-size: 96px 96px;
	-webkit-mask: radial-gradient(ellipse at 60% 40%, #000, transparent 75%);
	mask: radial-gradient(ellipse at 60% 40%, #000, transparent 75%);
}
.xh-hero-v2 > * {
	position: relative;
	z-index: 1;
}
.xh-hero-v2__grid {
	grid-template-columns: 1.15fr 0.85fr;
	align-items: center;
}
@media (max-width: 860px) {
	.xh-hero-v2__grid {
		grid-template-columns: 1fr !important;
	}
	.xh-hero-v2 {
		padding-top: 120px !important;
	}
}

/* Product photo inside a morphing glass orb. */
.wp-block-image.xh-orb {
	justify-self: center;
	width: min(100%, 460px);
	aspect-ratio: 1;
	margin: 0;
	position: relative;
	overflow: hidden;
	border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
	border: 1px solid var(--xh-glass-border);
	background:
		radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05) 38%, transparent 70%),
		radial-gradient(circle at 80% 82%, rgba(255, 181, 71, 0.45), transparent 52%),
		radial-gradient(circle at 18% 84%, rgba(139, 123, 255, 0.5), transparent 55%),
		radial-gradient(circle at 60% 20%, rgba(34, 211, 238, 0.3), transparent 50%);
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 0 120px -20px rgba(34, 211, 238, 0.5), 70px 50px 120px -40px rgba(139, 123, 255, 0.5), -50px 70px 120px -50px rgba(255, 181, 71, 0.4);
	animation: xh-morph 14s cubic-bezier(.65, 0, .35, 1) infinite alternate;
}
.wp-block-image.xh-orb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: 50% 62%;
	transform: scale(1.3);
	mix-blend-mode: multiply;
}
html[data-theme="dark"] .wp-block-image.xh-orb img {
	mix-blend-mode: normal;
	opacity: 0.92;
}
.wp-block-image.xh-orb::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.55), transparent 40%);
}
@keyframes xh-morph {
	to { border-radius: 52% 48% 44% 56% / 46% 54% 48% 52%; }
}
@media (max-width: 860px) {
	.wp-block-image.xh-orb {
		order: -1;
		max-width: 300px;
	}
}

/* Glass bar of key numbers at the foot of the hero. */
.xh-statbar.wp-block-group {
	border-radius: 22px;
	padding: 18px 28px;
	gap: 8px;
}
.xh-statbar > * {
	position: relative;
	z-index: 1;
}
.xh-statbar__n {
	font-size: 28px;
	font-weight: 300;
	line-height: 1.2;
	letter-spacing: -0.03em;
	color: var(--xh-heading);
	font-variant-numeric: tabular-nums;
}
.xh-statbar__label,
.xh-metric__label,
.xh-pillar__mark,
.xh-fear,
.xh-step__n,
.xh-step__tag,
.xh-hub,
.xh-slot,
.xh-marquee__item,
.xh-steps3,
.xh-chip-dark__label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1.5;
}
.xh-statbar__label {
	color: var(--xh-muted);
}
@media (max-width: 860px) {
	.xh-statbar.wp-block-group {
		padding: 14px 16px;
	}
	.xh-statbar__n {
		font-size: 20px;
	}
	.xh-statbar__label {
		font-size: 10.5px;
		letter-spacing: 0.1em;
	}
}

/* Trust strip with a slow marquee of client logos. */
.xh-trust {
	border-block: 1px solid var(--xh-hairline);
}
.xh-trust__grid {
	align-items: center;
}
.xh-marquee.wp-block-group {
	flex: 1 1 400px;
	min-width: 0;
	overflow: hidden;
	-webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.xh-marquee__track {
	display: flex;
	gap: 56px;
	width: max-content;
	animation: xh-marquee 40s linear infinite;
}
.xh-marquee__item {
	margin: 0;
	white-space: nowrap;
	color: var(--xh-muted);
	letter-spacing: 0.3em;
}
@keyframes xh-marquee {
	to { transform: translateX(-50%); }
}
.xh-slot {
	border: 1px dashed var(--xh-ghost-border);
	border-radius: 16px;
	padding: 14px 18px;
	color: var(--xh-muted);
}

/* Problem cards: struck-through fear, then the answer. */
.xh-fear {
	color: var(--xh-muted);
	text-decoration: line-through;
	text-decoration-color: var(--xh-hairline);
}
.xh-fear-card {
	--xh-acc: #22D3EE;
	background: radial-gradient(420px 280px at 15% 0%, color-mix(in srgb, var(--xh-acc) 22%, transparent), transparent 70%), var(--xh-glass) !important;
}
.xh-fear-card::after {
	content: "";
	display: block;
	position: relative;
	height: 2px;
	width: 64px;
	margin-top: 8px;
	background: linear-gradient(90deg, var(--xh-acc), transparent);
}
.xh-cards3 > :nth-child(2),
.xh-pillars > :nth-child(2) {
	--xh-acc: #FFB547;
}
.xh-cards3 > :nth-child(3),
.xh-pillars > :nth-child(3) {
	--xh-acc: #FF7A8A;
}

/* Three pillars, staggered on wide screens. */
.xh-pillar {
	--xh-acc: #22D3EE;
	min-height: 520px;
	background: radial-gradient(420px 280px at 15% 0%, color-mix(in srgb, var(--xh-acc) 22%, transparent), transparent 70%), var(--xh-glass) !important;
}
@media (min-width: 861px) {
	.xh-pillars > :nth-child(2) { margin-top: 56px; }
	.xh-pillars > :nth-child(3) { margin-top: 112px; }
}
@media (max-width: 860px) {
	.xh-pillar { min-height: 0; }
}
.xh-pillar .xh-art {
	width: 100%;
	height: 130px;
	margin-bottom: 28px;
	stroke: var(--xh-acc);
	fill: none;
}
.xh-pillar .xh-art__pulse,
.xh-pillar .xh-art__bar {
	fill: var(--xh-acc);
	stroke: none;
}
.xh-art--draw path {
	stroke-dasharray: 240;
	stroke-dashoffset: 240;
	animation: xh-draw 5s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes xh-draw {
	50%, 85% { stroke-dashoffset: 0; }
	100% { stroke-dashoffset: -240; }
}
.xh-art__pulse { animation: xh-pulse 3s cubic-bezier(.65, 0, .35, 1) infinite; }
.xh-art__pulse:nth-of-type(2) { animation-delay: 0.6s; }
.xh-art__pulse:nth-of-type(3) { animation-delay: 1.2s; }
@keyframes xh-pulse { 50% { opacity: 0.25; } }
.xh-art__bar {
	transform-origin: bottom;
	transform-box: fill-box;
	animation: xh-rise 3.6s cubic-bezier(.16, 1, .3, 1) infinite alternate;
}
.xh-art__bar:nth-of-type(2) { animation-delay: 0.4s; }
.xh-art__bar:nth-of-type(3) { animation-delay: 0.8s; }
.xh-art__bar:nth-of-type(4) { animation-delay: 1.2s; }
@keyframes xh-rise { from { transform: scaleY(0.35); } }
.xh-pillar__mark {
	color: var(--xh-muted);
}
.xh-pillar h3 {
	margin: auto 0 16px !important;
	padding-top: 28px;
}
.xh-pillar__list {
	list-style: none;
	margin: 22px 0 !important;
	padding: 0;
	font-size: 15px;
}
.xh-pillar__list li {
	padding: 9px 0;
	border-top: 1px solid var(--xh-hairline);
}
.xh-pillar__link a {
	color: var(--xh-heading);
	border-bottom: 1px solid var(--xh-acc);
	padding-bottom: 3px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.xh-pillar__link a:hover {
	text-decoration: none;
	border-bottom-width: 2px;
}

/* Ten-step journey: a readable list by default. */
.xh-journey__intro {
	margin-bottom: 56px;
}
.xh-journey__steps {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: 20px;
}
.xh-step {
	padding: 28px;
	border-radius: 24px;
	background: var(--xh-glass-lite);
	border: 1px solid var(--xh-glass-border);
}
.xh-step__n {
	color: var(--xh-accent);
}
.xh-step__title {
	margin: 14px 0 10px !important;
}
.xh-step__tag {
	display: inline-block;
	margin-top: 18px !important;
	padding: 6px 14px;
	border-radius: 99px;
	border: 1px solid color-mix(in srgb, var(--xh-accent) 55%, transparent);
	color: var(--xh-accent);
	font-size: 11px;
}
.xh-journey__fig {
	display: none;
}
.xh-jl { transition: opacity 0.9s cubic-bezier(.16, 1, .3, 1); }
.xh-jl--0, .xh-jl--3 { stroke: var(--xh-heading); }
.xh-jl--1 { stroke: var(--xh-accent); }
.xh-jl--3 text { fill: var(--xh-accent); }

/* Pinned version, switched on by site.js on large screens. */
.xh-journey.is-pinned {
	height: calc(100svh + 10 * 45svh);
	padding: 0 !important;
}
.xh-journey.is-pinned .xh-journey__stage {
	position: sticky;
	top: 0;
	height: 100svh;
	display: grid;
	grid-template-columns: 260px 1fr 1fr;
	gap: 56px;
	align-items: center;
	padding: 90px 0 40px;
}
.xh-journey.is-pinned .xh-journey__intro {
	display: none;
}
.xh-journey.is-pinned .xh-journey__steps {
	display: block;
	position: relative;
	min-height: 320px;
}
.xh-journey.is-pinned .xh-step {
	position: absolute;
	inset: auto 0 auto 0;
	top: 50%;
	transform: translateY(-50%);
	padding: 0;
	border: 0;
	background: none;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s cubic-bezier(.16, 1, .3, 1);
}
.xh-journey.is-pinned .xh-step.is-active {
	opacity: 1;
	pointer-events: auto;
}
.xh-journey.is-pinned .xh-step__title {
	font-size: var(--wp--preset--font-size--stage-title);
	font-weight: 300;
	margin: 18px 0 20px !important;
}
.xh-journey.is-pinned .xh-journey__fig {
	display: grid;
	place-items: center;
	position: relative;
	aspect-ratio: 1;
	border-radius: 36px;
	background:
		radial-gradient(60% 50% at 25% 15%, color-mix(in srgb, var(--xh-j1, #22D3EE) 35%, transparent), transparent),
		radial-gradient(55% 55% at 85% 92%, color-mix(in srgb, var(--xh-j2, #8B7BFF) 32%, transparent), transparent),
		var(--xh-glass-lite);
}
.xh-journey__fig svg {
	width: 86%;
	position: relative;
	z-index: 1;
}
.xh-journey__progress {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 2px;
	width: var(--xh-p, 0%);
	background: var(--xh-accent);
	box-shadow: 0 0 14px var(--xh-accent);
	z-index: 2;
}
.xh-rail {
	list-style: none;
	margin: 0;
	padding: 22px 10px;
	border-radius: 24px;
}
.xh-rail li {
	position: relative;
	z-index: 1;
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 6px 16px;
	border-radius: 99px;
	font: 400 12px/1.5 var(--wp--preset--font-family--mono);
	letter-spacing: 0.1em;
	color: var(--xh-muted);
	transition: color 0.4s, background 0.4s;
	font-variant-numeric: tabular-nums;
}
.xh-rail li.is-done {
	color: var(--xh-accent);
}
.xh-rail li.is-on {
	color: var(--xh-heading);
	background: color-mix(in srgb, var(--xh-j1, #22D3EE) 18%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--xh-j1, #22D3EE) 55%, transparent);
}

/* Design Pack drawing and dark info chips. */
.xh-pack {
	grid-template-columns: 0.9fr 1.1fr;
	align-items: center;
}
@media (max-width: 860px) {
	.xh-pack { grid-template-columns: 1fr !important; }
}
.xh-pack__drawing svg {
	width: 100%;
	height: auto;
	overflow: visible;
}
.xh-pack__labels text {
	font: 400 10.5px var(--wp--preset--font-family--mono);
	letter-spacing: 0.1em;
}
.xh-chip-dark.wp-block-group {
	padding: 20px 24px;
	border-radius: 20px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)), #05080D;
	color: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 24px 50px -24px rgba(0, 0, 0, 0.6);
	font-size: 15px;
}
.xh-chip-dark__label {
	color: #67E8F9;
	font-size: 11px;
}

/* Hub chips. */
.xh-hub {
	padding: 10px 18px;
	border-radius: 99px;
	border: 1px solid var(--xh-glass-border);
	background: var(--xh-glass-lite);
	color: var(--xh-heading);
}

/* Case study row: swipeable, snapping cards. */
.xh-case-row .xh-case-row__track {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 56px max(var(--wp--preset--spacing--gutter), calc((100vw - 1168px) / 2)) 24px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: max(var(--wp--preset--spacing--gutter), calc((100vw - 1168px) / 2));
	scrollbar-width: none;
}
.xh-case-row .xh-case-row__track::-webkit-scrollbar {
	display: none;
}
.xh-case-row .xh-case-row__track > li {
	flex: 0 0 min(400px, 82vw);
	scroll-snap-align: start;
	margin: 0;
}
.xh-case-card.wp-block-group {
	height: 100%;
}
.xh-case-card__img {
	position: relative;
	height: 250px;
	overflow: hidden;
	background:
		radial-gradient(90% 80% at 15% 10%, rgba(139, 123, 255, 0.45), transparent 65%),
		radial-gradient(80% 80% at 92% 100%, rgba(34, 211, 238, 0.4), transparent 65%),
		var(--xh-canvas);
}
.xh-case-card__img .wp-block-post-featured-image {
	position: absolute;
	inset: 0;
	margin: 0;
}
.xh-case-card__img .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	mix-blend-mode: multiply;
	-webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
	mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
}
html[data-theme="dark"] .xh-case-card__img .wp-block-post-featured-image img {
	mix-blend-mode: normal;
}
.xh-case-card__img .is-style-placeholder {
	position: absolute;
	left: 20px;
	bottom: 16px;
	margin: 0;
}
.xh-case-card__img:has(img) .is-style-placeholder {
	display: none;
}
.xh-case-card .wp-block-post-title a {
	color: var(--xh-heading);
}
.xh-case-card__cat a {
	color: var(--xh-muted);
	position: relative;
	z-index: 2;
}
.xh-metrics.wp-block-group {
	margin-top: 14px !important;
	padding-top: 20px;
	border-top: 1px solid var(--xh-hairline);
}
.xh-metric__n {
	font-size: 24px;
	font-weight: 300;
	letter-spacing: -0.03em;
	color: var(--xh-heading);
}
.xh-metric__label {
	font-size: 10px;
	letter-spacing: 0.12em;
	color: var(--xh-muted);
}
.xh-row-controls {
	display: flex;
	align-items: center;
	gap: 20px;
	width: min(1168px, calc(100% - 2 * var(--wp--preset--spacing--gutter)));
	margin: 8px auto 0;
}
.xh-row-controls__track {
	position: relative;
	flex: 1;
	height: 2px;
	border-radius: 2px;
	background: var(--xh-hairline);
}
.xh-row-controls__track i {
	position: absolute;
	top: -1px;
	height: 4px;
	border-radius: 4px;
	background: var(--xh-spectrum);
	transition: left 0.25s, width 0.25s;
}
.xh-row-controls__count {
	font: 400 12px var(--wp--preset--font-family--mono);
	letter-spacing: 0.12em;
	color: var(--xh-muted);
	font-variant-numeric: tabular-nums;
}
.xh-row-controls button {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--xh-ghost-border);
	background: var(--xh-ghost-bg);
	color: var(--xh-heading);
	cursor: pointer;
}
.xh-row-controls button:disabled {
	opacity: 0.35;
	cursor: default;
}
.xh-row-controls svg {
	width: 18px;
	height: 18px;
}

/* FAQ with a plus/minus marker. */
.xh-faq-v2 {
	grid-template-columns: 0.8fr 1.2fr;
}
@media (max-width: 860px) {
	.xh-faq-v2 { grid-template-columns: 1fr !important; }
}
.xh-faq-v2__list .wp-block-details {
	border-top: 1px solid var(--xh-hairline);
	padding: 4px 0;
	margin: 0;
}
.xh-faq-v2__list .wp-block-details:last-child {
	border-bottom: 1px solid var(--xh-hairline);
}
.xh-faq-v2__list summary {
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 0;
	font-size: clamp(18px, 2vw, 22px);
	letter-spacing: -0.015em;
	color: var(--xh-heading);
	cursor: pointer;
}
.xh-faq-v2__list summary::-webkit-details-marker {
	display: none;
}
.xh-faq-v2__list summary::after {
	content: "+";
	flex: none;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid var(--xh-ghost-border);
	font: 300 20px/1 var(--wp--preset--font-family--sans);
	transition: transform 0.4s cubic-bezier(.16, 1, .3, 1), background 0.4s;
}
.xh-faq-v2__list details[open] summary::after {
	content: "−";
	background: color-mix(in srgb, var(--xh-accent) 18%, transparent);
}
.xh-faq-v2__list details p {
	padding: 0 48px 26px 0;
	font-size: 16.5px;
}

/* Closing call to action. */
.xh-finale {
	max-width: 12ch;
}
.xh-btn-lg .wp-block-button__link {
	padding: 20px 44px;
	font-size: 17px;
}
.xh-steps3 {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	color: var(--xh-muted);
}
.xh-steps3 b {
	font-weight: 400;
	color: var(--xh-accent);
	margin-right: 8px;
}

/* ==========================================================================
   Inner pages (v2)
   ========================================================================== */
.xh-mt-56 { margin-top: 56px !important; }
.xh-mt-32 { margin-top: 32px !important; }

/* Light page header that slides under the floating header. */
.xh-page-hero {
	position: relative;
	overflow: hidden;
	margin-top: calc(-90px - env(safe-area-inset-top, 0px)) !important;
}
.xh-page-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: linear-gradient(var(--xh-grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--xh-grid-line) 1px, transparent 1px);
	background-size: 96px 96px;
	-webkit-mask: radial-gradient(ellipse at 60% 30%, #000, transparent 75%);
	mask: radial-gradient(ellipse at 60% 30%, #000, transparent 75%);
}
.xh-page-hero > * {
	position: relative;
	z-index: 1;
}
.xh-page-title {
	font-size: clamp(2.6rem, 6.2vw, 6rem) !important;
	font-weight: 300 !important;
	line-height: 0.98;
	letter-spacing: -0.04em;
	max-width: 16ch;
}

/* Breadcrumbs above page titles. */
.xh-breadcrumbs.wp-block-breadcrumbs {
	margin-bottom: 36px;
	font-family: var(--wp--preset--font-family--mono);
	letter-spacing: 0.08em;
	color: var(--xh-muted);
}
.xh-breadcrumbs li:not(:last-child)::after {
	margin: 0 10px;
	opacity: 0.6;
}
.xh-breadcrumbs li:last-child {
	color: var(--xh-heading);
}
.xh-breadcrumbs a:hover {
	color: var(--xh-heading);
}

/* Service header: text beside the discipline illustration. */
.xh-service-hero {
	align-items: center;
}
.xh-service-hero__art.xh-pillar {
	display: grid;
	place-items: center;
	min-height: 360px;
	padding: 48px;
}
.xh-service-hero__art .xh-art {
	height: 200px;
	margin: 0;
}
.xh-pillar.xh-art--design { --xh-acc: #22D3EE; }
.xh-pillar.xh-art--supply-chain { --xh-acc: #FFB547; }
.xh-pillar.xh-art--marketing { --xh-acc: #FF7A8A; }
.xh-pillar.xh-related {
	min-height: 0;
	margin-top: 0 !important;
}
.xh-related h3 a {
	color: var(--xh-heading);
}
.xh-related .xh-art {
	height: 90px;
}

/* Featured image slot on a colour mesh. */
.xh-media-slot.wp-block-group {
	border: 1px solid var(--xh-glass-border);
	background:
		radial-gradient(90% 80% at 15% 10%, rgba(139, 123, 255, 0.35), transparent 65%),
		radial-gradient(80% 80% at 92% 100%, rgba(34, 211, 238, 0.35), transparent 65%),
		var(--xh-canvas-alt);
}
.is-style-placeholder {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	color: var(--xh-muted);
}

/* Listing grids (case studies, articles). */
.xh-card-grid > li {
	margin: 0;
}
.xh-pagination {
	margin-top: 56px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	letter-spacing: 0.08em;
}
.xh-pagination .page-numbers.current {
	color: var(--xh-accent);
}

/* Case study facts bar and results. */
.xh-facts.wp-block-group {
	padding: 26px 32px;
}
.xh-facts__value {
	font-size: 18px;
	font-weight: 400;
	color: var(--xh-heading);
	line-height: 1.4;
}
.xh-result__n {
	font-size: 56px;
	font-weight: 300;
	line-height: 1;
	letter-spacing: -0.03em;
	background: var(--xh-spectrum);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}
.xh-result > * {
	position: relative;
	z-index: 1;
}
.wp-block-quote.xh-quote p {
	color: var(--xh-heading);
	font-weight: 300;
}
.xh-quote-panel > * {
	position: relative;
	z-index: 1;
}
.xh-next .wp-block-post-navigation-link a {
	color: var(--xh-heading);
}
.xh-case-story p,
.xh-prose {
	color: var(--xh-body);
}
.xh-case-story h2,
.xh-prose h2 {
	font-weight: 300;
}

/* Articles. */
.xh-post-meta {
	color: var(--xh-accent);
}
.xh-post-meta a {
	color: inherit;
}
.xh-article-image img {
	border-radius: 28px;
}

/* Get a quote: intro beside the glass form card. */
.xh-quote-intro {
	flex: 1 1 360px;
	min-width: 0;
}
.xh-quote-card.wp-block-group {
	flex: 999 1 560px;
	min-width: 0;
}
.xh-quote-card > * {
	position: relative;
	z-index: 1;
}
.xh-next-step__n {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	letter-spacing: 0.12em;
	color: var(--xh-accent);
	padding-top: 3px;
}
.xh-next-step__title {
	color: var(--xh-heading);
	font-weight: 500;
}
.xh-quote-contact {
	padding-top: 24px;
	border-top: 1px solid var(--xh-hairline);
}

/* Quote form colours follow the light/dark tokens. */
.xh-field > label,
.xh-choices legend {
	color: var(--xh-heading);
	font-weight: 500;
}
.xh-form input[type="text"],
.xh-form input[type="email"],
.xh-form select,
.xh-form textarea,
.xh-form input[type="file"] {
	background: var(--xh-surface);
	color: var(--xh-heading);
	border-color: var(--xh-ghost-border);
}
.xh-form input[type="file"] {
	border-style: dashed;
}
.xh-choices .wpcf7-list-item label {
	border-color: var(--xh-ghost-border);
	background: var(--xh-ghost-bg);
	color: var(--xh-heading);
}
.xh-choices .wpcf7-list-item label:has(input:checked) {
	border-color: var(--xh-accent);
	box-shadow: inset 0 0 0 1px var(--xh-accent);
}
.xh-form input[type="radio"],
.xh-form input[type="checkbox"] {
	accent-color: var(--xh-accent);
}
.xh-nda label {
	color: var(--xh-body);
}
.xh-form .wpcf7-submit {
	background: var(--xh-btn-bg);
	color: var(--xh-btn-text);
	border: 1px solid var(--xh-btn-border);
	box-shadow: var(--xh-btn-shadow);
	font-weight: 400;
}
.xh-form .wpcf7-submit:hover {
	background: var(--xh-btn-bg-hover);
}
.xh-form-note,
.xh-hint {
	color: var(--xh-muted);
}

/* Slim footer on the quote page. */
.xh-footer--slim .xh-footer__legal {
	margin-top: 0 !important;
	align-items: center;
}
.xh-quote-intro .xh-page-title {
	font-size: clamp(2.4rem, 4.4vw, 4rem) !important;
}
