/*
 * WebUpp, direction 2 (dark). The shared section primitives (container,
 * rhythm, heads, chips, buttons, glows, dot grid) moved to the parent's
 * assets/css/sections.css on 2026-10-12; this file sets WebUpp's values for
 * the parent's slots and keeps what is WebUpp's own: the header, the
 * browser frame, the drawn sequence panels, the recent work loop and the
 * FAQ. Tokens come from theme.json.
 *
 * Two schemes (2026-10-12): html[data-scheme="dark"|"light"], set before
 * first paint (functions.php, webupp_scheme_head()). Every colour on the
 * site is a token: its dark value is declared on :root (here, or the
 * parent's sections.css), its light value comes from theme.json
 * custom.light and is mapped on html[data-scheme="light"] below. A new
 * colour gets a token in both places, never a dark-only literal.
 */

/* ---------- Fallback faces (performance standard, build rule 3) ----------
 * Each web font has a local fallback sized to it, so the swap when the
 * woff2 arrives moves nothing (measured before: Manrope's arrival re-laid
 * out 1,011 layout objects and Inter's 938 in a 16x CPU trace). Width:
 * size-adjust is the measured width ratio of the web font to the local face
 * at the weight the site uses: first on English text in Chromium (capsize's
 * xWidthAvg reads only the variable font's default instance, Manrope's is
 * ExtraLight; for Inter 400 the two agree, 1.0699 against 1.0712), then
 * corrected by the median ratio of the home page's own single-line text
 * runs, web font against fallback (headings carry negative letter-spacing,
 * which size-adjust does not scale): Manrope 700 x1.0156, Inter 400
 * x1.0037, Inter 500 x0.9933; Manrope 800 (the h1 only, multi-line) from
 * the hero h1's own text runs, web against fallback, 729.6 / 739.7. Height:
 * ascent, descent and line gap are the woff2's own metrics (capsize unpack)
 * divided by size-adjust. Arial (or a metric-compatible clone where Arial
 * is absent) for Manrope and Inter; Courier New for the mono, since a
 * proportional face cannot stand in for a monospace one. theme.json cannot
 * declare these: WordPress writes every fontFace src as url(), never
 * local(). The family stacks in theme.json name these faces second.
 */

@font-face {
	font-family: "Manrope Fallback";
	font-style: normal;
	font-weight: 700;
	src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold");
	size-adjust: 101.33%;
	ascent-override: 105.20%;
	descent-override: 29.61%;
	line-gap-override: 0.00%;
}

@font-face {
	font-family: "Manrope Fallback";
	font-style: normal;
	font-weight: 800;
	src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold");
	size-adjust: 101.55%;
	ascent-override: 104.97%;
	descent-override: 29.54%;
	line-gap-override: 0.00%;
}

@font-face {
	font-family: "Inter Fallback";
	font-style: normal;
	font-weight: 400;
	src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo");
	size-adjust: 107.39%;
	ascent-override: 90.21%;
	descent-override: 22.46%;
	line-gap-override: 0.00%;
}

@font-face {
	font-family: "Inter Fallback";
	font-style: normal;
	font-weight: 500;
	src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo");
	size-adjust: 107.39%;
	ascent-override: 90.21%;
	descent-override: 22.46%;
	line-gap-override: 0.00%;
}

@font-face {
	font-family: "JetBrains Mono Fallback";
	font-style: normal;
	font-weight: 500;
	src: local("Courier New"), local("CourierNewPSMT"), local("Liberation Mono"), local("Cousine");
	size-adjust: 99.98%;
	ascent-override: 102.02%;
	descent-override: 30.01%;
	line-gap-override: 0.00%;
}

:root {
	/* WebUpp values for the parent's section slots (the parent's
	   assets/css/sections.css declares the rest from theme.json). */
	--wu-purple: var(--wp--preset--color--brand-purple);
	--wu-accent: var(--wu-purple);
	--wu-glow-tint: #7b3fe4;
	--wu-glow-red: var(--wp--custom--glow--red);
	--wu-glow-purple: var(--wp--custom--glow--purple);
	--wu-glow-blue: var(--wp--custom--glow--blue);
	/* Opaque (10% purple on ground), so a glow behind never lowers the chip
	   text's contrast: 5.1:1 everywhere. */
	--wu-chip-bg: #191428;
	--wu-chip-border: rgba(157, 112, 235, 0.28);
	/* The dark ground's dot grid, ghost buttons and primary button face and
	   text. Until Upp Base 2.0.0 these were the parent's defaults; from 2.0.0
	   the parent's defaults are its neutral light register, so WebUpp sets
	   them (the light values: the block below). */
	--wu-dot: rgba(255, 255, 255, 0.04);
	--wu-ghost-face: rgba(255, 255, 255, 0.02);
	--wu-ghost-face-hover: rgba(255, 255, 255, 0.06);
	--wu-ghost-border-hover: rgba(255, 255, 255, 0.4);
	--wu-button-face: var(--wu-surface);
	--wu-button-text: #fff;
	/* Slots of the parent's blocks (Upp Base 2.0.0): the hairline above each
	   webupp/steps "rule" step and the coloured shadow of the webupp/plan card. */
	--wu-rule-gradient: linear-gradient(90deg, #eb263a, #7b3fe4 50%, #2f6bff 80%, transparent);
	--wu-featured-glow: rgba(123, 63, 228, 0.55);

	/* Scheme tokens, dark values (light values: the block below). */
	--wu-header-ground: rgba(10, 10, 18, 0.8);
	--wu-selection: rgba(123, 63, 228, 0.5);
	--wu-selection-text: #fff;
	/* Glow under the primary button on hover (the parent's fallback is the
	   same purple at 70%). */
	--wu-button-glow: rgba(123, 63, 228, 0.7);
	/* Browser frames: a top highlight, the drop shadow, the bar's dots, the
	   hover border, an outer ring; --wu-glow-mix scales the coloured glow
	   shadows (100% on dark). */
	--wu-frame-inset: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
	--wu-frame-shadow: rgba(0, 0, 0, 0.8);
	--wu-frame-dot: rgba(255, 255, 255, 0.14);
	--wu-frame-border-hover: rgba(255, 255, 255, 0.24);
	--wu-frame-ring: rgba(255, 255, 255, 0.02);
	--wu-glow-mix: 100%;
	--wu-bezel: #05050a;
	/* Glass cards: no shadow on dark, the glows do the lifting. */
	--wu-card-shadow: none;
	/* Soft decorative glows (phone menu, drawn panels, inner hero, plan). */
	--wu-overlay-glow-a: rgba(123, 63, 228, 0.2);
	--wu-overlay-glow-b: rgba(47, 107, 255, 0.14);
	--wu-panel-glow: rgba(123, 63, 228, 0.16);
	--wu-hero-glow: rgba(123, 63, 228, 0.2);
	--wu-prices-glow-a: rgba(123, 63, 228, 0.16);
	--wu-prices-glow-b: rgba(47, 107, 255, 0.06);
	/* Faces: our reply in the change thread, the featured plan card. */
	--wu-bubble-top: rgb(36, 28, 64);
	--wu-bubble-bottom: rgb(30, 30, 58);
	--wu-featured-top: var(--wu-surface-2);
	--wu-featured-bottom: var(--wu-surface);
	/* Forms: native checkbox and radio tint, error text and field edge. */
	--wu-check: #7b3fe4;
	--wu-error: #ff9aa6;
	--wu-error-line: #ff7a8a;
}

/*
 * The light register. A root-level remap: the preset colours and gradient
 * take their custom.light values on the root, so every --wu-* alias the
 * parent and this file declare on :root (the same element) resolves to the
 * light value too; only the literal tokens above need their own line.
 */
html[data-scheme="light"] {
	color-scheme: light;
	--wp--preset--color--ground: var(--wp--custom--light--ground);
	--wp--preset--color--surface: var(--wp--custom--light--surface);
	--wp--preset--color--surface-2: var(--wp--custom--light--surface-2);
	--wp--preset--color--line: var(--wp--custom--light--line);
	--wp--preset--color--line-strong: var(--wp--custom--light--line-strong);
	--wp--preset--color--text: var(--wp--custom--light--text);
	--wp--preset--color--muted: var(--wp--custom--light--muted);
	--wp--preset--color--brand-purple: var(--wp--custom--light--purple);
	--wp--preset--color--success: var(--wp--custom--light--success);
	--wp--preset--gradient--brand: var(--wp--custom--light--gradient);
	--wu-glow-red: var(--wp--custom--light--glow--red);
	--wu-glow-purple: var(--wp--custom--light--glow--purple);
	--wu-glow-blue: var(--wp--custom--light--glow--blue);
	--wu-chip-bg: var(--wp--custom--light--chip);
	--wu-chip-border: var(--wp--custom--light--chip-border);
	--wu-dot: var(--wp--custom--light--dot);
	--wu-ghost-face: var(--wp--custom--light--ghost--face);
	--wu-ghost-face-hover: var(--wp--custom--light--ghost--face-hover);
	--wu-ghost-border-hover: var(--wp--custom--light--ghost--border-hover);
	--wu-button-face: var(--wp--custom--light--button--face);
	--wu-button-glow: var(--wp--custom--light--button--glow);
	--wu-header-ground: var(--wp--custom--light--header);
	--wu-selection: var(--wp--custom--light--selection);
	--wu-selection-text: var(--wp--custom--light--selection-text);
	--wu-frame-inset: var(--wp--custom--light--shadow--near);
	--wu-frame-shadow: var(--wp--custom--light--shadow--far);
	--wu-frame-dot: var(--wp--custom--light--frame--dot);
	--wu-frame-border-hover: var(--wp--custom--light--frame--border-hover);
	--wu-frame-ring: transparent;
	--wu-glow-mix: var(--wp--custom--light--shadow--glow-mix);
	--wu-bezel: var(--wp--custom--light--frame--bezel);
	--wu-stack-back-filter: var(--wp--custom--light--frame--back-filter);
	--wu-card-shadow: var(--wp--custom--light--shadow--card);
	--wu-overlay-glow-a: var(--wp--custom--light--soft-glow--purple);
	--wu-overlay-glow-b: var(--wp--custom--light--soft-glow--blue);
	--wu-panel-glow: var(--wp--custom--light--soft-glow--purple);
	--wu-hero-glow: var(--wp--custom--light--soft-glow--purple);
	--wu-prices-glow-a: var(--wp--custom--light--soft-glow--purple);
	--wu-prices-glow-b: var(--wp--custom--light--soft-glow--blue);
	--wu-bubble-top: var(--wp--custom--light--bubble--top);
	--wu-bubble-bottom: var(--wp--custom--light--bubble--bottom);
	--wu-featured-top: var(--wp--custom--light--featured--top);
	--wu-featured-bottom: var(--wp--custom--light--featured--bottom);
	--wu-check: var(--wp--custom--light--purple);
	--wu-error: var(--wp--custom--light--error);
	--wu-error-line: var(--wp--custom--light--error-line);
	--wu-cta-ground: var(--wp--custom--light--surface);
}

html {
	scroll-padding-top: calc(var(--wu-header-h) + 16px);
	background: var(--wu-ground);
	color-scheme: dark;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

::selection {
	background: var(--wu-selection);
	color: var(--wu-selection-text);
}

:where(a, button, summary, input, select, textarea):focus-visible {
	outline: 2px solid var(--wu-purple);
	outline-offset: 3px;
	border-radius: 4px;
}

a:where(:not(.wu-button)):hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Header (parts/header.html) ---------- */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	margin: 0;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s;
}

/*
 * Frosted ground on a pseudo-element: backdrop-filter on the header itself
 * would make it the containing block for the navigation overlay (light
 * build decision 24).
 */
.wp-site-blocks > header.wp-block-template-part::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--wu-header-ground);
	-webkit-backdrop-filter: saturate(1.6) blur(16px);
	backdrop-filter: saturate(1.6) blur(16px);
}

html.wu-scrolled .wp-site-blocks > header.wp-block-template-part {
	border-bottom-color: var(--wu-line);
}

.wu-header {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	width: 100%;
	max-width: calc(var(--wp--style--global--wide-size, 1240px) + 2 * var(--wu-gutter));
	height: var(--wu-header-h);
	margin-inline: auto;
	padding-inline: var(--wu-gutter);
}

.wu-header > * {
	margin-block: 0;
}

.wu-header > .wu-logo {
	justify-self: start;
}

.wu-header > .wu-header__end {
	display: flex;
	align-items: center;
	justify-self: end;
	gap: 12px;
}

.wu-header__end > * {
	margin-block: 0;
}

.wu-header .wu-logo img,
.wu-header .wu-logo svg {
	height: 32px;
}

.wu-header .wp-block-navigation {
	gap: 32px;
	font-size: 15px;
	font-weight: 500;
}

/*
 * Doubled class to outrank core's ".wp-block-navigation
 * .wp-block-navigation-item__content.wp-block-navigation-item__content
 * { color: inherit }" (0,3,0), which held every link at full text colour
 * since the dark build (measured 2026-10-12 in Chromium's matched rules).
 */
.wu-header .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
	color: var(--wu-muted);
	text-decoration: none;
	transition: color 0.2s;
}

.wu-header .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover {
	color: var(--wu-text);
	text-decoration: none;
}

.wu-header .wp-block-buttons {
	flex: none;
}

/* The header button is a core button styled as the primary. */
.wu-header .wp-block-button__link {
	position: relative;
	isolation: isolate;
	padding: 10px 16px;
	border: 1px solid transparent;
	background: linear-gradient(var(--wu-button-face), var(--wu-button-face)) padding-box, var(--wu-gradient) border-box;
	color: var(--wu-button-text);
	font-size: 14px;
	transition: box-shadow 0.25s var(--wu-ease), transform 0.25s var(--wu-ease);
}

.wu-header .wp-block-button__link::before {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: -1;
	border-radius: inherit;
	background-image: var(--wu-gradient);
	background-size: 220% 100%;
	background-position: 50% 50%;
	opacity: 0;
	transition: opacity 0.3s var(--wu-ease);
}

.wu-header .wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 30px -10px var(--wu-button-glow);
	text-decoration: none;
}

.wu-header .wp-block-button__link:hover::before {
	opacity: 1;
}

/* Burger below desktop (core switches at 600px; the house breakpoint is 1025px). */
@media (max-width: 1024.98px) {
	.wu-header {
		grid-template-columns: 1fr auto auto;
		gap: 12px;
	}

	.wu-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.wu-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.wu-header > .wp-block-navigation {
		order: 3;
	}
}

@media (max-width: 420px) {
	.wu-header .wp-block-button__link {
		padding: 9px 12px;
		font-size: 13px;
	}
}

.wu-header .wp-block-navigation__responsive-container-open,
.wu-header .wp-block-navigation__responsive-container-close {
	color: var(--wu-text);
}

/* Full-screen dark overlay menu. */
.wu-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 20px var(--wu-gutter);
	background: var(--wu-ground) !important;
	background-image: radial-gradient(600px 400px at 100% 0%, var(--wu-overlay-glow-a), transparent 70%), radial-gradient(500px 400px at 0% 100%, var(--wu-overlay-glow-b), transparent 70%) !important;
	color: var(--wu-text) !important;
}

.wu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 64px;
}

.wu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0;
	width: 100%;
}

.wu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--wu-line);
}

.wu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 18px 0;
	color: var(--wu-text);
	font-family: var(--wu-display);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.wu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.wu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
}

/*
 * Current page (the parent's inc/nav-current.php): the link of the page in view
 * (aria-current="page") or of the section it sits in (aria-current="true")
 * reads in full text with a 2px gradient bar under its label, so the state
 * does not rest on colour alone. The same marker in the phone menu.
 */
.wu-header .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content[aria-current] {
	color: var(--wu-text);
}

.wu-header .wp-block-navigation-item__content[aria-current] .wp-block-navigation-item__label {
	padding-bottom: 6px;
	background: var(--wu-gradient) no-repeat 0 100% / 100% 2px;
}

.wu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content[aria-current] .wp-block-navigation-item__label {
	padding-bottom: 4px;
	background-size: 100% 3px;
}

/*
 * The estimate button in the phone menu: a navigation link (Get an
 * estimate) that exists only in the open overlay, where it covers the
 * header's own button. Styled as the primary button.
 */
.wu-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wu-nav-estimate {
	display: none;
}

.wu-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.wu-nav-estimate {
	width: auto;
	margin-top: 32px;
	border-bottom: 0;
}

.wu-header .wp-block-navigation__responsive-container.is-menu-open .wu-nav-estimate .wp-block-navigation-item__content {
	position: relative;
	isolation: isolate;
	box-sizing: border-box;
	display: inline-flex;
	width: auto;
	padding: 16px 24px;
	border: 1px solid transparent;
	border-radius: var(--wu-radius);
	background: linear-gradient(var(--wu-button-face), var(--wu-button-face)) padding-box, var(--wu-gradient) border-box;
	color: var(--wu-button-text);
	font-family: var(--wp--preset--font-family--body);
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1;
}

.wu-header .wp-block-navigation__responsive-container.is-menu-open .wu-nav-estimate .wp-block-navigation-item__content[aria-current] .wp-block-navigation-item__label {
	padding-bottom: 0;
	background: none;
}

/* ---------- Scheme toggle (functions.php webupp_scheme_toggle()) ----------
 * One icon button: the sun in the dark scheme (switch to light), the moon in
 * the light scheme. Which icon shows is decided here from the root
 * attribute, so it is right before any script runs. 40px hit area. In the
 * header bar from 1025px; below that it lives in the phone menu, beside
 * the close button. */

.wu-scheme {
	box-sizing: border-box;
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--wu-radius);
	background: transparent;
	color: var(--wu-muted);
	cursor: pointer;
	transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.wu-scheme:hover {
	border-color: var(--wu-line);
	background: var(--wu-ghost-face-hover);
	color: var(--wu-text);
}

.wu-scheme:focus-visible {
	color: var(--wu-text);
	border-radius: var(--wu-radius);
}

.wu-scheme__icon {
	display: grid;
	place-items: center;
}

.wu-scheme svg {
	width: 20px;
	height: 20px;
}

html[data-scheme="light"] .wu-scheme__icon--sun,
html:not([data-scheme="light"]) .wu-scheme__icon--moon {
	display: none;
}

@media (max-width: 1024.98px) {
	.wu-header .wu-scheme--header {
		display: none;
	}
}

/* The phone menu's copy: hidden unless the overlay is open (on desktop the
   overlay container is the inline navigation), then level with core's
   close button, to its left. */
.wu-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wu-scheme--overlay {
	display: none;
}

.wu-header .wp-block-navigation__responsive-container.is-menu-open .wu-scheme--overlay {
	position: absolute;
	top: -8px;
	right: 40px;
	z-index: 2;
	color: var(--wu-text);
}

@media (prefers-reduced-motion: reduce) {
	.wu-scheme {
		transition: none;
	}
}

/* While the scheme flips (two frames), no element runs its hover
   transition: the whole page changes in one paint. */
html.wu-scheme-switching *,
html.wu-scheme-switching *::before,
html.wu-scheme-switching *::after {
	transition: none !important;
}

/* ---------- Browser frame on dark (parent inc/browser-frame.php) ---------- */

.upp-frame {
	--upp-frame-bar: 30px;
	border: 1px solid var(--wu-line-strong);
	border-radius: 12px;
	background: var(--wu-surface);
	box-shadow: var(--wu-frame-inset), 0 24px 60px -24px var(--wu-frame-shadow);
}

.upp-frame__bar {
	border-bottom: 1px solid var(--wu-line);
	background: var(--wu-surface);
}

.upp-frame__dots span {
	background: var(--wu-frame-dot);
}

.upp-frame__address {
	background: var(--wu-surface-2);
	color: var(--wu-muted);
	font-family: var(--wu-mono);
	font-size: 10.5px;
	letter-spacing: 0;
}

.upp-frame__screen {
	background: var(--wu-surface-2);
}

/* Glow option: webupp_browser_frame( id, { glow: 'red' | 'purple' | 'blue' | 'cycle' } ).
   The brand colour of a glow is --upp-glow; --wu-glow-mix sets how much of
   it shows (all of it on dark, a soft tint under a grey shadow on light). */
.upp-frame--glow {
	--upp-glow: rgba(123, 63, 228, 0.45);
	box-shadow: var(--wu-frame-inset), 0 30px 80px -28px color-mix(in srgb, var(--upp-glow) var(--wu-glow-mix), transparent), 0 0 0 1px var(--wu-frame-ring);
}

html[data-scheme="light"] .upp-frame--glow {
	box-shadow: var(--wu-frame-inset), 0 24px 60px -26px var(--wu-frame-shadow), 0 30px 80px -28px color-mix(in srgb, var(--upp-glow) var(--wu-glow-mix), transparent);
}

.upp-frame--glow-red { --upp-glow: rgba(235, 38, 58, 0.5); }
.upp-frame--glow-purple { --upp-glow: rgba(123, 63, 228, 0.55); }
.upp-frame--glow-blue { --upp-glow: rgba(47, 107, 255, 0.5); }

/* ---------- Drawn sequence panels (care report, change request) ----------
 * WebUpp's own pictures for the parent's webupp/sequence block, rendered by
 * webupp_sequence_visual() through the webupp/section_visual filter. Moved out
 * of the sequence block's style.scss on 2026-10-12 as Blockstudio compiled
 * it, so the rules are unchanged. */

@media (max-width: 767.98px) {
	.wu-seq .upp-frame__screen.wu-dpanel {
		aspect-ratio: auto;
		gap: 14px;
	}
}
.wu-dpanel {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	padding: 6% 7%;
	background: radial-gradient(120% 80% at 100% 0%, var(--wu-panel-glow), transparent 60%), var(--wu-surface);
	color: var(--wu-text);
	font-size: clamp(10px, 1vw, 14px);
}
@media (max-width: 767.98px) {
	.wu-dpanel {
		font-size: clamp(10px, 3.2vw, 14px);
	}
}
.wu-dpanel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 4%;
}
.wu-dpanel__label {
	font-family: var(--wu-display);
	font-size: 1.2em;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.wu-dpanel__status, .wu-dpanel__live {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	padding: 0.35em 0.85em;
	border: 1px solid var(--wu-line);
	border-radius: 999px;
	background: var(--wu-surface-2);
	color: var(--wu-muted);
	font-family: var(--wu-mono);
	font-size: 0.8em;
	font-weight: 500;
	white-space: nowrap;
}
.wu-dpanel__dot {
	width: 0.55em;
	height: 0.55em;
	border-radius: 50%;
	background: var(--wp--preset--color--success);
	box-shadow: 0 0 0 0.25em color-mix(in srgb, var(--wu-success) 16%, transparent);
}
.wu-dpanel__rows {
	display: grid;
	flex: 1;
	align-content: space-between;
	gap: 0.4em;
	margin: 0;
	padding: 0;
	list-style: none;
}
.wu-dpanel__rows li {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0.9em;
	padding: 0.6em 0.9em;
	border: 1px solid var(--wu-line);
	border-radius: 0.6em;
	background: var(--wu-ghost-face);
}
.wu-dpanel__tick {
	display: grid;
	place-items: center;
	width: 1.6em;
	height: 1.6em;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wu-success) 12%, transparent);
	color: var(--wp--preset--color--success);
}
.wu-dpanel__tick svg {
	width: 1em;
	height: 1em;
	stroke-width: 2.4;
}
.wu-dpanel__what {
	font-weight: 500;
}
.wu-dpanel__note {
	color: var(--wu-muted);
	font-family: var(--wu-mono);
	font-size: 0.85em;
}
.wu-dpanel--message {
	justify-content: center;
	gap: 6%;
}
.wu-dpanel__live {
	align-self: flex-end;
}

.wu-dmsg {
	max-width: 80%;
}
.wu-dmsg__who {
	display: block;
	margin-bottom: 0.4em;
	color: var(--wu-muted);
	font-family: var(--wu-mono);
	font-size: 0.75em;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.wu-dmsg p {
	margin: 0;
	padding: 0.85em 1.1em;
	border-radius: 1em;
	line-height: 1.45;
}
.wu-dmsg--you p {
	border: 1px solid var(--wu-line);
	border-bottom-left-radius: 0.25em;
	background: var(--wu-surface-2);
}
.wu-dmsg--us {
	align-self: flex-end;
	text-align: right;
}
.wu-dmsg--us p {
	border: 1px solid transparent;
	border-bottom-right-radius: 0.25em;
	background: linear-gradient(var(--wu-bubble-top), var(--wu-bubble-bottom)) padding-box, var(--wu-gradient) border-box;
	text-align: left;
}

/* ---------- Recent work (core/group + core/query from the page file) ---------- */

.wu-work .wu-work__loop .wp-block-post-template.is-layout-grid {
	gap: 56px 40px;
}

@media (min-width: 1025px) {
	.wu-work .wu-work__loop .wp-block-post-template.is-layout-grid {
		gap: 80px 56px;
	}
}

@media (max-width: 767.98px) {
	.wu-work .wu-work__loop .wp-block-post-template.is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Glow colour cycles through the brand with the loop position. */
.wu-work .wp-block-post:nth-child(3n+1) .upp-frame--glow { --upp-glow: rgba(235, 38, 58, 0.42); }
.wu-work .wp-block-post:nth-child(3n+2) .upp-frame--glow { --upp-glow: rgba(123, 63, 228, 0.5); }
.wu-work .wp-block-post:nth-child(3n+3) .upp-frame--glow { --upp-glow: rgba(47, 107, 255, 0.45); }

.wu-work .upp-card__frame {
	transition: transform 0.35s var(--wu-ease), box-shadow 0.35s var(--wu-ease), border-color 0.2s;
}

.wu-work .upp-card__link:hover .upp-card__frame {
	transform: translateY(-6px);
	border-color: var(--wu-frame-border-hover);
	box-shadow: var(--wu-frame-inset), 0 40px 100px -28px color-mix(in srgb, var(--upp-glow) var(--wu-glow-mix), transparent);
}

html[data-scheme="light"] .wu-work .upp-card__link:hover .upp-card__frame {
	box-shadow: var(--wu-frame-inset), 0 30px 70px -30px var(--wu-frame-shadow), 0 40px 100px -28px color-mix(in srgb, var(--upp-glow) var(--wu-glow-mix), transparent);
}

.wu-work .upp-card__body {
	padding-top: 24px;
}

.wu-work .upp-card__title {
	color: var(--wu-text);
	font-family: var(--wu-display);
	font-size: var(--wp--preset--font-size--heading-3);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.wu-work .upp-card__link:hover .upp-card__title {
	text-decoration-color: var(--wu-purple);
}

.wu-work .upp-card__excerpt {
	color: var(--wu-muted);
	font-size: 16px;
	line-height: 1.55;
}

.wu-work .upp-card__link:hover {
	text-decoration: none;
}

.wu-work .wu-work__more {
	margin: 72px 0 0;
	text-align: center;
}

/* ---------- FAQ (core/group + core/details from the page file) ---------- */

.wu-faq__grid {
	display: grid;
	gap: 40px;
}

@media (min-width: 1025px) {
	.wu-faq__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 80px;
		align-items: start;
	}

	.wu-faq__intro {
		position: sticky;
		top: calc(var(--wu-header-h) + 40px);
	}
}

.wu-faq__intro > * {
	margin-block: 0;
}

.wu-faq__intro > * + * {
	margin-top: 18px;
}

.wu-faq__intro > .wu-chip + * {
	margin-top: 20px;
}

.wu-faq__list {
	overflow: hidden;
	border: 1px solid var(--wu-line);
	border-radius: var(--wu-card-radius);
	background: var(--wu-surface);
	box-shadow: var(--wu-card-shadow);
}

.wu-faq__list > .wp-block-details {
	margin: 0;
	border-top: 1px solid var(--wu-line);
	transition: background-color 0.2s;
}

.wu-faq__list > .wp-block-details:first-child {
	border-top: 0;
}

.wu-faq__list > .wp-block-details:hover,
.wu-faq__list > .wp-block-details[open] {
	background: var(--wu-surface-2);
}

.wu-faq__list > .wp-block-details > summary {
	position: relative;
	padding: 22px 64px 22px 28px;
	color: var(--wu-text);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
}

.wu-faq__list > .wp-block-details > summary::-webkit-details-marker {
	display: none;
}

/* Chevron that turns when open. */
.wu-faq__list > .wp-block-details > summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 28px;
	width: 9px;
	height: 9px;
	margin-top: -7px;
	border-right: 1.75px solid var(--wu-muted);
	border-bottom: 1.75px solid var(--wu-muted);
	transform: rotate(45deg);
	transition: transform 0.3s var(--wu-ease), border-color 0.2s, margin-top 0.3s var(--wu-ease);
}

.wu-faq__list > .wp-block-details[open] > summary::after {
	margin-top: -2px;
	border-color: var(--wu-purple);
	transform: rotate(-135deg);
}

.wu-faq__list > .wp-block-details > p {
	max-width: 62ch;
	margin: -6px 0 0;
	padding: 0 64px 24px 28px;
	color: var(--wu-muted);
	font-size: 16px;
}

@media (max-width: 767.98px) {
	.wu-faq__list > .wp-block-details > summary {
		padding: 20px 52px 20px 20px;
	}

	.wu-faq__list > .wp-block-details > summary::after {
		right: 22px;
	}

	.wu-faq__list > .wp-block-details > p {
		padding: 0 20px 22px;
	}
}

/* A text link written in a core paragraph gets its arrow from CSS. */
.wu-faq__intro .wu-textlink::after {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("../icons/arrow-right.svg") center / contain no-repeat;
	mask: url("../icons/arrow-right.svg") center / contain no-repeat;
	transition: transform 0.2s var(--wu-ease);
}

.wu-faq__intro .wu-textlink:hover::after {
	transform: translateX(3px);
}

/* ---------- Reduced motion: glows still, no hover travel ---------- */

@media (prefers-reduced-motion: reduce) {
	.wu-header .wp-block-button__link:hover,
	.wu-work .upp-card__link:hover .upp-card__frame {
		transition: none;
		transform: none;
	}
}
