/*
Theme Name: NeuvotON
Theme URI: https://neuvoton.fi/
Author: WP SEO AI Web Agency
Author URI: https://github.com/WP-SEO-AI-Agency
Description: NeuvotON — client child theme of Agency Theme Gutenberg. Brand values are theme.json tokens; each section is a pattern whose looks are registered block style variations.
Template: agency-theme-gutenberg
Version: 0.2.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neuvoton
Tags: block-theme, full-site-editing, block-patterns
*/

/*
 * Every rule below is keyed to a registered style variation (styles/*.json) or a
 * core block class. They live here, not in the variations' `css` strings,
 * because they need nested selectors, pseudo-elements, transitions and
 * breakpoints, which WordPress strips from a variation's css. Colours, fonts and
 * spacing come from theme.json presets through the --nv-* aliases.
 */

/* stylelint-disable media-feature-range-notation -- max-width queries keep Safari before 16.4 responsive. */
/* stylelint-disable property-no-vendor-prefix -- Safari 17 still needs -webkit- for mask and backdrop-filter. */
/* stylelint-disable no-descending-specificity -- Components follow page order, each keyed to its own variation class; sorting by specificity would scatter them. */

:root {
	--nv-bg: var(--wp--preset--color--base);
	--nv-surface: var(--wp--preset--color--surface);
	--nv-sand: var(--wp--preset--color--sand);
	--nv-sand-2: var(--wp--preset--color--sand-2);
	--nv-ink: var(--wp--preset--color--ink);
	--nv-ink-2: var(--wp--preset--color--ink-2);
	--nv-ink-3: var(--wp--preset--color--ink-3);
	--nv-text: var(--wp--preset--color--text);
	--nv-heading: var(--wp--preset--color--contrast);
	--nv-muted: var(--wp--preset--color--muted);
	--nv-line: var(--wp--preset--color--line);
	--nv-line-strong: var(--wp--preset--color--line-strong);
	--nv-on-dark: var(--wp--preset--color--on-dark);
	--nv-on-dark-muted: var(--wp--preset--color--on-dark-muted);
	--nv-line-dark: var(--wp--preset--color--line-dark);
	--nv-copper: var(--wp--preset--color--accent);
	--nv-copper-btn: var(--wp--preset--color--primary);
	--nv-copper-btn-hover: var(--wp--preset--color--primary-dark);
	--nv-copper-light: var(--wp--preset--color--accent-light);
	--nv-copper-tint: var(--wp--preset--color--accent-tint);
	--nv-serif: var(--wp--preset--font-family--heading);
	--nv-sans: var(--wp--preset--font-family--body);
	--nv-gutter: var(--wp--custom--gutter);
	--nv-pad-x: var(--wp--preset--spacing--pad-x);
	--nv-section-y: var(--wp--preset--spacing--section);
	--nv-container: 1280px;
	--nv-header-h: var(--wp--custom--header-h);
	--nv-radius-xl: var(--wp--custom--radius--xl);
	--nv-radius-lg: var(--wp--custom--radius--lg);
	--nv-radius-md: var(--wp--custom--radius--md);
	--nv-radius-sm: var(--wp--custom--radius--sm);
	--nv-ease: var(--wp--custom--ease);
	--nv-ease-out: var(--wp--custom--ease-out);
	--nv-shadow-soft: var(--wp--preset--shadow--card);

	/* The brand mark, a house; the thin cut draws the large CTA backdrop. */
	--nv-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 11.5 12 3.5l9.5 8'/%3E%3Cpath d='M5.5 9.5v11h13v-11'/%3E%3Cpath d='M10 20.5v-5.5h4v5.5'/%3E%3C/svg%3E");
	--nv-mark-thin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='0.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 11.5 12 3.5l9.5 8'/%3E%3Cpath d='M5.5 9.5v11h13v-11'/%3E%3Cpath d='M10 20.5v-5.5h4v5.5'/%3E%3C/svg%3E");
	--nv-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--nv-arrow-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--nv-check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	--nv-arrow-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E");
	--nv-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	--nv-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
	--nv-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E");
	--nv-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* html:root outranks the editor's later global-styles :root declarations. */
@media (max-width: 640px) {
	html:root {
		--wp--custom--gutter: 6px;
		--wp--custom--radius--xl: 22px;
		--wp--custom--radius--lg: 18px;
		--wp--custom--header-h: 76px;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--nv-header-h) + 16px);
	interpolate-size: allow-keywords;
}

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizelegibility;
}

body.nv-menu-open {
	overflow: hidden;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

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

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

p {
	margin: 0;
	text-wrap: pretty;
}

/* Copy the source sets in spans and list items wraps normally, not "pretty". */
.is-style-split-badge p,
.is-style-contact-chip p,
.is-style-company-card p,
.is-style-stat-card > .wp-block-group p,
p.is-style-glass-value {
	text-wrap-style: auto;
}

ul,
ol {
	margin: 0;
}

figure {
	margin: 0;
}

/* The design's focus ring is for the page; the editor draws its own block selection. */
body:not(.editor-styles-wrapper) :focus-visible {
	outline: 2px solid var(--nv-copper);
	outline-offset: 3px;
	border-radius: 6px;
}

::selection {
	background: var(--nv-copper);
	color: #fff;
}

/* The design hides the skip link above the viewport rather than clipping it. */
.skip-link.screen-reader-text {
	position: fixed !important;
	top: 12px !important;
	left: 12px !important;
	z-index: 200;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 12px 18px !important;
	/* stylelint-disable-next-line property-no-deprecated -- Undoes the legacy clip of core's screen-reader-text. */
	clip: auto !important;
	clip-path: none !important;
	overflow: visible !important;
	border-radius: 999px;
	background: var(--nv-surface);
	color: var(--nv-heading);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.7;
	white-space: nowrap;
	text-decoration: none;
	transform: translateY(-160%);
	transition: transform 0.2s var(--nv-ease);
}

.skip-link.screen-reader-text:focus {
	transform: none;
}

.nv-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.nv-line {
	display: block;
}

.wp-site-blocks > main,
.wp-site-blocks > main > .entry-content {
	margin: 0;
}

/* ---------- Panels (one per page section) ---------- */

/* :root outranks the alignment margins the editor gives full-width blocks. */
:root .wp-block-group.is-style-panel-light,
:root .wp-block-group.is-style-panel-sand,
:root .wp-block-group.is-style-panel-dark,
:root .wp-block-group.is-style-cta {
	position: relative;
	margin: 0 var(--nv-gutter) var(--nv-gutter);
	border-radius: var(--nv-radius-xl);
	overflow: clip;
}

.wp-block-group.is-style-panel-light {
	background: var(--nv-surface);
}

.wp-block-group.is-style-panel-sand {
	background: var(--nv-sand);
}

.wp-block-group.is-style-panel-dark {
	background: var(--nv-ink);
	color: var(--nv-on-dark-muted);
}

.is-style-panel-dark :where(h1, h2, h3, h4) {
	color: var(--nv-on-dark);
}

/* ---------- Section head ---------- */
.wp-block-group.is-style-section-head {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 24px 48px;
	margin-bottom: clamp(40px, 5vw, 64px);
}

.is-style-section-head h2 {
	max-width: 24ch;
}

/* As in the source, every paragraph of a section head (the eyebrow too) takes this rule. */
:root .wp-block-group.is-style-section-head p {
	max-width: 56ch;
	margin-top: 18px;
	color: var(--nv-muted);
}

:root .is-style-panel-dark .wp-block-group.is-style-section-head p {
	color: var(--nv-on-dark-muted);
}

@media (max-width: 760px) {
	.wp-block-group.is-style-section-head {
		grid-template-columns: 1fr;
		align-items: start;
	}

	/* The action stretches across the single column, as a grid item does in the source. */
	.is-style-section-head > .wp-block-buttons > .wp-block-button {
		flex: 1 1 100%;
	}

	.is-style-section-head > .wp-block-buttons .wp-block-button__link {
		width: 100%;
	}
}

/* ---------- Typography ---------- */

/* :root outranks core's flow-layout first/last-child margin resets. */
:root p.is-style-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	font-family: var(--nv-sans);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.7;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nv-heading);
}

p.is-style-eyebrow::before {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background: var(--nv-copper);
	-webkit-mask: var(--nv-mark) center / contain no-repeat;
	mask: var(--nv-mark) center / contain no-repeat;
}

.is-style-panel-dark p.is-style-eyebrow,
.is-style-page-hero p.is-style-eyebrow,
.is-style-hero p.is-style-eyebrow {
	color: var(--nv-on-dark);
}

.is-style-panel-dark p.is-style-eyebrow::before,
.is-style-page-hero p.is-style-eyebrow::before {
	background: var(--nv-copper-light);
}

.wp-block-heading.has-xx-large-font-size {
	line-height: 1.02;
}

.wp-block-heading.has-x-large-font-size {
	line-height: 1.1;
	font-weight: 600;
}

p.has-large-font-size {
	line-height: 1.6;
}

.is-style-panel-dark .wp-block-heading em,
.is-style-page-hero .wp-block-heading em,
.is-style-hero .wp-block-heading em {
	font-style: italic;
	font-weight: 400;
	color: var(--nv-copper-light);
}

/* ---------- Buttons: pill with a circular arrow and a rolling label ---------- */

/* :root outranks the flex-layout gap reset, which the editor loads after this file. */
:root .wp-block-buttons {
	gap: 12px;
}

.wp-block-button__link {
	--nv-btn-bg: var(--nv-copper-btn);
	--nv-btn-fg: #fff;
	--nv-btn-icon-bg: var(--nv-ink);
	--nv-btn-icon-fg: #fff;

	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	background-color: var(--nv-btn-bg) !important;
	color: var(--nv-btn-fg) !important;
	white-space: nowrap;
	text-align: start;
	vertical-align: top;
	transition: background-color 0.3s var(--nv-ease), color 0.3s var(--nv-ease);
}

.wp-block-button__link:hover {
	--nv-btn-bg: var(--nv-copper-btn-hover);
}

.nv-btn-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--nv-btn-icon-bg);
	color: var(--nv-btn-icon-fg);
	transition: transform 0.45s var(--nv-ease-out);
}

.nv-btn-icon::before {
	content: "";
	width: 16px;
	height: 16px;
	background: currentcolor;
	-webkit-mask: var(--nv-arrow) center / contain no-repeat;
	mask: var(--nv-arrow) center / contain no-repeat;
}

.wp-block-button__link:hover .nv-btn-icon {
	transform: rotate(-45deg);
}

.nv-btn-label {
	position: relative;
	display: inline-block;
	overflow: hidden;
	padding-block: 2px;
}

.nv-btn-label > span {
	display: inline-block;
	transition: transform 0.45s var(--nv-ease-out);
}

.nv-btn-label::after {
	content: attr(data-text);
	content: attr(data-text) / "";
	position: absolute;
	top: 2px;
	left: 0;
	transform: translateY(130%);
	transition: transform 0.45s var(--nv-ease-out);
}

.wp-block-button__link:hover .nv-btn-label > span {
	transform: translateY(-130%);
}

.wp-block-button__link:hover .nv-btn-label::after {
	transform: translateY(0);
}

/* Editor canvas: the same disc and arrow, drawn without the rendered spans. */

/* Editor-drawn discs only on editable buttons: server-rendered previews already have theirs. */
.editor-styles-wrapper .wp-block-button__link:not(:has(> .nv-btn-icon)) {
	position: relative;
}

.editor-styles-wrapper .wp-block-button__link:not(:has(> .nv-btn-icon))::before {
	content: "";
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--nv-btn-icon-bg);
}

.editor-styles-wrapper .wp-block-button__link:not(:has(> .nv-btn-icon))::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	margin-left: 10px;
	background: var(--nv-btn-icon-fg);
	-webkit-mask: var(--nv-arrow) center / contain no-repeat;
	mask: var(--nv-arrow) center / contain no-repeat;
}

.editor-styles-wrapper .wp-block-button__link > [data-rich-text-placeholder]::after {
	content: none;
}

.wp-block-button.is-style-light .wp-block-button__link {
	--nv-btn-bg: var(--nv-on-dark);
	--nv-btn-fg: var(--nv-ink);
	--nv-btn-icon-bg: var(--nv-copper-btn);
}

.wp-block-button.is-style-light .wp-block-button__link:hover {
	--nv-btn-bg: #fff;
}

.wp-block-button.is-style-dark .wp-block-button__link {
	--nv-btn-bg: var(--nv-ink);
	--nv-btn-fg: var(--nv-on-dark);
	--nv-btn-icon-bg: var(--nv-copper-btn);
}

.wp-block-button.is-style-dark .wp-block-button__link:hover {
	--nv-btn-bg: var(--nv-ink-3);
}

.wp-block-button.is-style-ghost .wp-block-button__link {
	--nv-btn-bg: transparent;
	--nv-btn-fg: var(--nv-heading);
	--nv-btn-icon-bg: var(--nv-sand);
	--nv-btn-icon-fg: var(--nv-heading);

	box-shadow: inset 0 0 0 1px var(--nv-line-strong);
}

.wp-block-button.is-style-ghost .wp-block-button__link:hover {
	--nv-btn-bg: var(--nv-surface);
}

.wp-block-button.is-style-ghost-light .wp-block-button__link {
	--nv-btn-bg: rgb(244 241 236 / 6%);
	--nv-btn-fg: var(--nv-on-dark);
	--nv-btn-icon-bg: rgb(244 241 236 / 14%);

	box-shadow: inset 0 0 0 1px var(--nv-line-dark);
}

.wp-block-button.is-style-ghost-light .wp-block-button__link:hover {
	--nv-btn-bg: rgb(244 241 236 / 12%);
}

.wp-block-button.is-style-sm .wp-block-button__link {
	min-height: 42px;
	padding: 4px 18px 4px 4px;
	font-size: 0.875rem;
}

.wp-block-button.is-style-sm .nv-btn-icon,
.editor-styles-wrapper .wp-block-button.is-style-sm .wp-block-button__link:not(:has(> .nv-btn-icon))::before {
	width: 32px;
	height: 32px;
}

.editor-styles-wrapper .wp-block-button.is-style-sm .wp-block-button__link:not(:has(> .nv-btn-icon))::after {
	margin-left: 8px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.wp-site-blocks > header.wp-block-template-part:has(> .is-style-site-header) {
	position: fixed;
	top: var(--nv-gutter);
	left: var(--nv-gutter);
	right: var(--nv-gutter);
	z-index: 100;
	margin: 0;
	border-radius: 20px;
	transition: transform 0.5s var(--nv-ease-out), background-color 0.4s var(--nv-ease), box-shadow 0.4s var(--nv-ease);
}

header.wp-block-template-part.is-scrolled {
	background: rgb(26 23 20 / 82%);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
	box-shadow: 0 12px 32px -18px rgb(0 0 0 / 50%);
}

header.wp-block-template-part.is-hidden {
	transform: translateY(calc(-100% - 2 * var(--nv-gutter)));
}

/* A filter would make the header the containing block of the fixed menu overlay. */
body.nv-menu-open header.wp-block-template-part {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.wp-block-group.is-style-site-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	width: min(100% - 2 * var(--nv-pad-x) + 16px, var(--nv-container) + 16px);
	height: var(--nv-header-h);
	margin-inline: auto;
	transition: height 0.4s var(--nv-ease);
}

.is-scrolled .wp-block-group.is-style-site-header {
	height: 70px;
}

.is-style-site-header > .wp-block-site-logo {
	justify-self: center;
	line-height: 0;
}

.is-style-site-header > .wp-block-site-logo img {
	width: 168px;
	height: auto;
	transition: width 0.4s var(--nv-ease);
}

.is-scrolled .is-style-site-header > .wp-block-site-logo img {
	width: 148px;
}

/* Pill navigation */
.wp-block-navigation.is-style-pill {
	justify-self: start;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.7;
}

.wp-block-navigation.is-style-pill > .wp-block-navigation__container {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 2px;
	padding: 5px;
	border: 1px solid rgb(244 241 236 / 18%);
	border-radius: 999px;
	background: rgb(244 241 236 / 6%);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

/* Core gives items background-color: inherit, which would repaint the container's
   translucent fill on every item; only the container draws the pill. */
.wp-block-navigation.is-style-pill .wp-block-navigation-item {
	position: relative;
	background-color: transparent;
}

.is-style-pill > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 18px;
	border-radius: 999px;
	color: var(--nv-on-dark);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.3s var(--nv-ease), color 0.3s var(--nv-ease);
}

.is-style-pill > .wp-block-navigation__container > .wp-block-navigation-item:not(.has-child) > .wp-block-navigation-item__content:hover,
.is-style-pill > .wp-block-navigation__container > .wp-block-navigation-item:not(.has-child) > .wp-block-navigation-item__content[aria-current="page"] {
	background: var(--nv-on-dark);
	color: var(--nv-ink);
}

/* The dropdown item is one pill: link and chevron share the item background. */
.is-style-pill .wp-block-navigation-item.has-child {
	display: flex;
	align-items: center;
	border-radius: 999px;
	transition: background-color 0.3s var(--nv-ease);
}

.is-style-pill > .wp-block-navigation__container > .has-child > .wp-block-navigation-item__content {
	padding-right: 6px;
	background: transparent;
}

.is-style-pill .wp-block-navigation__submenu-icon {
	display: inline-flex;
	align-items: center;
	width: auto;
	height: auto;
	margin: 0;
	padding: 9px 14px 9px 2px;
	border: 0;
	background: transparent;
	color: var(--nv-on-dark);
	font-size: 0.9rem;
	line-height: 1.7;
	cursor: pointer;
	transition: color 0.3s var(--nv-ease);
}

.is-style-pill .wp-block-navigation__submenu-icon svg {
	display: block;
	width: 12px;
	height: 12px;
	margin: 6.3px 0;
	stroke: currentcolor;
	transition: transform 0.3s var(--nv-ease);
}

.is-style-pill .has-child:has(.wp-block-navigation__submenu-container [aria-current="page"]),
.is-style-pill .has-child:hover,
.is-style-pill .has-child:focus-within,
.is-style-pill .has-child.is-open,
.is-style-pill .has-child.current-menu-item,
.is-style-pill .has-child:has(> .wp-block-navigation-item__content[aria-current="page"]) {
	background: var(--nv-on-dark);
}

.is-style-pill .has-child:hover > .wp-block-navigation-item__content,
.is-style-pill .has-child:focus-within > .wp-block-navigation-item__content,
.is-style-pill .has-child.is-open > .wp-block-navigation-item__content,
.is-style-pill .has-child:has(> .wp-block-navigation-item__content[aria-current="page"]) > .wp-block-navigation-item__content,
.is-style-pill .has-child:has(.wp-block-navigation__submenu-container [aria-current="page"]) > .wp-block-navigation-item__content,
.is-style-pill .has-child:has(.wp-block-navigation__submenu-container [aria-current="page"]) > .wp-block-navigation__submenu-icon,
.is-style-pill .has-child:hover > .wp-block-navigation__submenu-icon,
.is-style-pill .has-child:focus-within > .wp-block-navigation__submenu-icon,
.is-style-pill .has-child.is-open > .wp-block-navigation__submenu-icon,
.is-style-pill .has-child:has(> .wp-block-navigation-item__content[aria-current="page"]) > .wp-block-navigation__submenu-icon {
	color: var(--nv-ink);
}

.is-style-pill .has-child:hover > .wp-block-navigation__submenu-icon svg,
.is-style-pill .has-child > .wp-block-navigation__submenu-icon[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.wp-block-navigation.is-style-pill .wp-block-navigation__submenu-container {
	position: absolute;
	top: calc(100% + 14px);
	left: -6px;
	z-index: 2;
	display: block;
	width: auto;
	min-width: 300px;
	height: auto;
	padding: 8px;
	border: 0;
	border-radius: 20px;
	background: var(--nv-surface);
	box-shadow: 0 30px 60px -20px rgb(20 14 8 / 45%);
	opacity: 0;
	visibility: hidden;
	overflow: visible;
	transform: translateY(8px);
	transition: opacity 0.25s var(--nv-ease), transform 0.35s var(--nv-ease-out), visibility 0.25s;
}

.wp-block-navigation.is-style-pill .wp-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	inset: -16px 0 auto;
	height: 16px;
}

.wp-block-navigation.is-style-pill .has-child:hover > .wp-block-navigation__submenu-container,
.wp-block-navigation.is-style-pill .has-child:focus-within > .wp-block-navigation__submenu-container,
.wp-block-navigation.is-style-pill .has-child > .wp-block-navigation__submenu-icon[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
	width: auto;
	height: auto;
	min-width: 300px;
	opacity: 1;
	visibility: visible;
	overflow: visible;
	transform: none;
}

.wp-block-navigation.is-style-pill .wp-block-navigation__submenu-container .wp-block-navigation-item {
	display: block;
	width: auto;
}

.wp-block-navigation.is-style-pill .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	padding: 12px 16px;
	border-radius: 14px;
	color: var(--nv-heading);
	line-height: 1.7;
	text-decoration: none;
	white-space: normal;
}

.wp-block-navigation.is-style-pill .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.wp-block-navigation.is-style-pill .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content[aria-current="page"] {
	background: var(--nv-sand);
	color: var(--nv-heading);
}

.is-style-pill .wp-block-navigation__submenu-container .wp-block-navigation-item__label {
	font-weight: 600;
	font-size: 0.95rem;
}

.is-style-pill .wp-block-navigation__submenu-container .wp-block-navigation-item__description {
	display: block;
	font-size: 0.8rem;
	color: var(--nv-muted);
	font-weight: 400;
}

/* Header actions */
.wp-block-group.is-style-header-actions {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 10px;
}

p.is-style-header-phone a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	color: var(--nv-on-dark);
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.7;
	text-decoration: none;
	border-radius: 999px;
	transition: background-color 0.3s;
}

p.is-style-header-phone a:hover {
	background: rgb(244 241 236 / 10%);
}

p.is-style-header-phone a::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: var(--nv-copper-light);
	-webkit-mask: var(--nv-phone) center / contain no-repeat;
	mask: var(--nv-phone) center / contain no-repeat;
}

/* Mobile toggle: a navigation that only ever shows its overlay */
.wp-block-navigation.is-style-menu-toggle {
	display: none;
}

.is-style-menu-toggle .wp-block-navigation__responsive-container-open {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgb(244 241 236 / 20%);
	border-radius: 50%;
	background: rgb(244 241 236 / 8%);
	color: var(--nv-on-dark);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: none;
}

.is-style-menu-toggle .wp-block-navigation__responsive-container-open svg {
	display: none;
}

/* Three lines drawn by the core toggle button itself. */
.is-style-menu-toggle .wp-block-navigation__responsive-container-open::before {
	content: "";
	width: 18px;
	height: 1.5px;
	background: currentcolor;
	box-shadow: 0 -6px currentcolor, 0 6px currentcolor;
}

body.nv-menu-open .is-style-menu-toggle .wp-block-navigation__responsive-container-open {
	visibility: hidden;
}

/* Mobile menu overlay */
.is-style-menu-toggle .wp-block-navigation__responsive-container.is-menu-open {
	position: fixed;
	inset: var(--nv-gutter);
	z-index: -1;
	padding: 0;
	border-radius: var(--nv-radius-xl);
	background: var(--nv-ink);
	color: var(--nv-on-dark);
	box-shadow: 0 0 0 calc(var(--nv-gutter) + 2px) var(--nv-bg);
	animation: nv-menu-in 0.5s var(--nv-ease-out);
}

.is-style-menu-toggle .is-menu-open .wp-block-navigation__responsive-close,
.is-style-menu-toggle .is-menu-open .wp-block-navigation__responsive-dialog,
.is-style-menu-toggle .is-menu-open .wp-block-navigation__responsive-container-content,
.is-style-menu-toggle .is-menu-open .wp-block-navigation__overlay-container {
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.is-style-menu-toggle .is-menu-open .wp-block-navigation__responsive-container-content {
	display: block;
	overflow-y: auto;
}

@keyframes nv-menu-in {
	from {
		opacity: 0;
		transform: translateY(-12px);
	}
}

.wp-block-group.is-style-mobile-menu {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: calc(var(--nv-header-h) + 24px) var(--nv-pad-x) 32px;
	color: var(--nv-on-dark);
}

.wp-block-navigation-overlay-close {
	position: absolute;
	top: calc(var(--nv-header-h) / 2 - 24px);

	/* Where the toggle sits in the header's inner row, which the overlay shares the edges of. */
	right: max(calc(var(--nv-pad-x) - 8px), calc((100% - var(--nv-container) - 16px) / 2));
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgb(244 241 236 / 20%);
	border-radius: 50%;
	background: rgb(244 241 236 / 8%);
	color: var(--nv-on-dark);
	cursor: pointer;
}

.wp-block-navigation-overlay-close svg {
	display: none;
}

.wp-block-navigation-overlay-close::before,
.wp-block-navigation-overlay-close::after {
	content: "";
	grid-area: 1 / 1;
	width: 18px;
	height: 1.5px;
	background: currentcolor;
	transform: rotate(45deg);
}

.wp-block-navigation-overlay-close::after {
	transform: rotate(-45deg);
}

.wp-block-navigation.is-style-mobile-list,
.wp-block-navigation.is-style-mobile-list .wp-block-navigation__container {
	display: block;
	width: 100%;
}

.is-style-mobile-list .wp-block-navigation__container > .wp-block-navigation-item {
	display: block;
	border-bottom: 1px solid var(--nv-line-dark);
}

.is-style-mobile-list .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 0;
	font-family: var(--nv-serif);
	font-size: clamp(2rem, 8vw, 2.75rem);
	line-height: 1.1;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--nv-on-dark);
	text-decoration: none;
}

.is-style-mobile-list .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--nv-copper-light);
}

.is-style-mobile-list .wp-block-navigation__submenu-icon,
.is-style-mobile-list .wp-block-navigation-item__description {
	display: none;
}

.wp-block-navigation.is-style-mobile-list .has-child .wp-block-navigation__submenu-container {
	position: static;
	display: grid;
	gap: 4px;
	width: auto;
	min-width: 0;
	height: auto;
	padding: 0 0 18px;
	border: 0;
	background: transparent;
	opacity: 1;
	visibility: visible;
	overflow: visible;
}

.wp-block-navigation.is-style-mobile-list .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: block;
	padding: 6px 0;
	color: var(--nv-on-dark-muted);
	font-size: 1rem;
	line-height: 1.7;
	text-decoration: none;
}

.wp-block-navigation.is-style-mobile-list .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.wp-block-navigation.is-style-mobile-list .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--nv-copper-light);
}

.wp-block-group.is-style-mobile-menu-foot {
	display: grid;
	gap: 16px;
	margin-top: auto;
	padding-top: 32px;
	font-size: 0.95rem;
	color: var(--nv-on-dark-muted);
}

.is-style-mobile-menu-foot p a {
	color: var(--nv-on-dark);
	text-decoration: none;
}

.is-style-mobile-menu-foot .wp-block-buttons {
	justify-content: flex-start;
}

@media (max-width: 1180px) {
	.is-style-site-header p.is-style-header-phone {
		display: none;
	}
}

@media (max-width: 1023px) {
	.wp-block-group.is-style-site-header {
		grid-template-columns: auto 1fr;
	}

	.wp-block-navigation.is-style-pill {
		display: none;
	}

	.is-style-site-header > .wp-block-site-logo {
		justify-self: start;
	}

	.is-style-site-header > .wp-block-site-logo a {
		display: block;
		padding-left: 8px;
	}

	.is-style-site-header > .wp-block-site-logo img,
	.is-scrolled .is-style-site-header > .wp-block-site-logo img {
		width: 136px;
	}

	.wp-block-navigation.is-style-menu-toggle {
		display: flex;
	}
}

@media (max-width: 560px) {
	.is-style-header-actions > .wp-block-buttons {
		display: none;
	}
}

/* ==========================================================================
   Home hero
   ========================================================================== */
.wp-block-group.is-style-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: min(calc(100svh - 2 * var(--nv-gutter)), 1000px);
	padding-top: calc(var(--nv-header-h) + clamp(28px, 5vh, 64px));
	border-radius: var(--nv-radius-xl);
	background:
		radial-gradient(90% 70% at 50% 108%, rgb(199 107 42 / 55%), rgb(199 107 42 / 0%) 62%),
		radial-gradient(50% 40% at 88% 4%, rgb(199 107 42 / 16%), rgb(199 107 42 / 0%) 70%),
		linear-gradient(180deg, #221c17 0%, #14110e 100%);
	color: var(--nv-on-dark-muted);
	overflow: clip;
	isolation: isolate;
}

/* Four-column construction lines behind the hero content. */
.wp-block-group.is-style-hero::before,
.wp-block-group.is-style-page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	width: min(100% - 2 * var(--nv-pad-x), var(--nv-container));
	margin-inline: auto;
	background:
		linear-gradient(to right, rgb(244 241 236 / 7%) 1px, transparent 1px) 0 0 / 25% 100%,
		linear-gradient(to left, rgb(244 241 236 / 7%) 1px, transparent 1px) 100% 0 / 25% 100% no-repeat;
	pointer-events: none;
}

.wp-block-heading.is-style-hero-title {
	position: relative;
	z-index: 1;
	padding-inline: var(--nv-pad-x);
	font-size: clamp(3rem, 8.6vw, 9.25rem);
	line-height: 0.9;
	font-weight: 500;
	letter-spacing: -0.025em;
	text-align: center;
	color: var(--nv-on-dark);
}

.wp-block-image.is-style-hero-media {
	position: relative;
	z-index: 2;
	align-self: center;
	width: clamp(300px, min(50vw, calc((100svh - 150px - 13.5vw) * 1.24)), 700px);
	margin: calc(-1 * clamp(0.25rem, 2.2vw, 2.5rem)) 0 0;
}

.wp-block-image.is-style-hero-media img {
	width: 100%;
	filter: drop-shadow(0 30px 60px rgb(0 0 0 / 35%));
}

.wp-block-group.is-style-hero-bottom {
	position: absolute;
	z-index: 3;
	left: 0;
	right: 0;
	bottom: clamp(24px, 4vw, 48px);
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	width: min(100% - 2 * var(--nv-pad-x), var(--nv-container));
	margin-inline: auto;
	pointer-events: none;
}

.is-style-hero-bottom > * {
	pointer-events: auto;
}

.wp-block-group.is-style-hero-intro {
	max-width: 330px;
}

/* The brand mark (a core/icon block) above the hero intro. */
:root .wp-block-icon.is-style-hero-mark {
	display: block;
	width: 52px;
	height: 52px;
	margin: 0 0 18px;
	color: var(--nv-copper-light);
}

.wp-block-icon.is-style-hero-mark > svg {
	width: 100%;
	height: 100%;
	stroke-width: 1.6;
}

.is-style-hero-intro > p {
	margin-bottom: 26px;
	color: var(--nv-on-dark);
	font-size: 1rem;
	line-height: 1.6;
}

.wp-block-group.is-style-glass-card {
	display: flex;
	gap: 18px;
	align-items: stretch;
	max-width: 440px;
	padding: 10px 22px 10px 10px;
	border: 1px solid rgb(244 241 236 / 18%);
	border-radius: var(--nv-radius-lg);
	background: rgb(36 30 25 / 42%);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
}

.is-style-glass-card > .wp-block-image {
	flex: none;
}

.is-style-glass-card > .wp-block-image img {
	width: 132px;
	height: 148px;
	object-fit: cover;
	border-radius: 14px;
}

.is-style-glass-card > .wp-block-group {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: 6px;
}

p.is-style-glass-value {
	font-family: var(--nv-serif);
	font-size: clamp(2.4rem, 3.4vw, 3.25rem);
	line-height: 1;
	font-weight: 500;
	color: var(--nv-on-dark);
	white-space: nowrap;
}

.is-style-glass-card p:not(.is-style-glass-value) {
	margin-top: 8px;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--nv-on-dark-muted);
}

/* The house mark draws itself: roof, walls, then door. Every line of the 24-unit
   icon is shorter than 40, so a dash of 40 is the whole line; at rest it is drawn. */
.wp-block-icon.is-style-hero-mark path,
.wp-block-icon.is-style-cta-mark path {
	stroke-dasharray: 40;
}

@keyframes nv-draw {
	from {
		stroke-dashoffset: 40;
	}

	to {
		stroke-dashoffset: 0;
	}
}

.wp-block-icon.is-style-hero-mark path {
	animation: nv-draw 1.2s var(--nv-ease) both;
}

.wp-block-icon.is-style-hero-mark path:nth-child(1) {
	animation-delay: 0.35s;
}

.wp-block-icon.is-style-hero-mark path:nth-child(2) {
	animation-delay: 0.8s;
}

.wp-block-icon.is-style-hero-mark path:nth-child(3) {
	animation-delay: 1.3s;
}

/* The CTA backdrop draws when motion.js reveals it. */
.js .wp-block-icon.is-style-cta-mark[data-nv-reveal] path {
	stroke-dashoffset: 40;
}

.js .wp-block-icon.is-style-cta-mark[data-nv-reveal="visible"] path {
	animation: nv-draw 2.2s var(--nv-ease) both;
}

.js .wp-block-icon.is-style-cta-mark[data-nv-reveal="visible"] path:nth-child(2) {
	animation-delay: 0.7s;
}

.js .wp-block-icon.is-style-cta-mark[data-nv-reveal="visible"] path:nth-child(3) {
	animation-delay: 1.4s;
}

@media (max-width: 1023px) {
	.wp-block-group.is-style-hero {
		min-height: 0;
	}

	.wp-block-image.is-style-hero-media {
		width: min(82vw, 620px);
	}

	.wp-block-group.is-style-hero-bottom {
		position: relative;
		bottom: auto;
		flex-direction: column;
		align-items: stretch;
		padding-block: 28px 32px;
		margin-top: -1px;
	}

	.wp-block-group.is-style-hero-intro {
		max-width: 520px;
	}

	.wp-block-group.is-style-glass-card {
		max-width: none;
	}
}

@media (max-width: 480px) {
	.wp-block-heading.is-style-hero-title {
		font-size: clamp(2.6rem, 12vw, 3.4rem);
		line-height: 0.95;
	}

	.is-style-glass-card > .wp-block-image img {
		width: 100px;
		height: 120px;
	}
}

/* ==========================================================================
   Intro statement and stat cards
   ========================================================================== */
.wp-block-group.is-style-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
	gap: 32px 64px;
}

.wp-block-heading.is-style-statement {
	font-size: clamp(1.9rem, 3.5vw, 3.1rem);
	line-height: 1.16;
	font-weight: 500;
	letter-spacing: -0.012em;
}

.wp-block-group.is-style-intro-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px 40px;
	margin-top: clamp(32px, 4vw, 48px);
	color: var(--nv-muted);
}

.is-style-intro-body > .wp-block-buttons {
	grid-column: 1 / -1;
	margin-top: 8px;
}

.js .is-style-statement .nv-w {
	color: #cbc3b8;
	transition: color 0.35s var(--nv-ease);
}

.js .is-style-statement .nv-w.on {
	color: var(--nv-heading);
}

.wp-block-group.is-style-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: clamp(56px, 7vw, 96px);
}

.wp-block-group.is-style-stat-card {
	display: flex;
	flex-direction: column;
	min-height: 300px;
	padding: 18px 24px 26px 18px;
	border-radius: var(--nv-radius-lg);
	background: var(--nv-sand);
}

.is-style-panel-sand .wp-block-group.is-style-stat-card {
	background: var(--nv-surface);
}

.is-style-stat-card > .wp-block-group:first-child {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
}

.wp-block-icon.is-style-tile {
	display: grid;
	place-items: center;
	flex: none;
	width: 76px;
	height: 76px;
	border-radius: var(--nv-radius-md);
	background: var(--nv-ink);
	color: var(--nv-copper-light);
}

.wp-block-icon.is-style-tile > svg {
	width: 30px;
	height: 30px;
}

.is-style-stat-card > .wp-block-group:first-child > .wp-block-group {
	text-align: right;
}

p.is-style-stat-number {
	display: block;
	font-family: var(--nv-serif);
	font-size: clamp(3rem, 5vw, 4.5rem);
	line-height: 0.95;
	font-weight: 500;
	color: var(--nv-heading);
	letter-spacing: -0.02em;
	white-space: nowrap;
	font-variant-numeric: lining-nums tabular-nums;
}

p.is-style-stat-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.7;
	color: var(--nv-heading);
}

p.is-style-stat-label::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--nv-copper);
}

.is-style-stat-card > p {
	margin-top: auto;
	padding-top: 22px;
	border-top: 1px solid var(--nv-line);
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--nv-muted);
}

@media (max-width: 900px) {
	.wp-block-group.is-style-intro,
	.wp-block-group.is-style-intro-body,
	.wp-block-group.is-style-stats {
		grid-template-columns: 1fr;
	}

	.wp-block-group.is-style-stat-card {
		min-height: 240px;
	}
}

/* ==========================================================================
   Service cards
   ========================================================================== */
.wp-block-group.is-style-services-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.wp-block-group.is-style-svc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 8px;
	border-radius: calc(var(--nv-radius-lg) + 6px);
	background: var(--nv-sand);
	transition: transform 0.6s var(--nv-ease-out);
}

.is-style-panel-sand .wp-block-group.is-style-svc-card {
	background: var(--nv-sand-2);
}

.is-style-svc-card > .wp-block-group:first-child {
	position: relative;
	aspect-ratio: 16 / 10;
	border-radius: var(--nv-radius-lg);
	overflow: hidden;
	background: #e5ddd0;
}

:root .is-style-svc-card > .wp-block-group:first-child > .wp-block-image {
	position: absolute;
	inset: 0;
	margin: 0;
}

:root .is-style-svc-card > .wp-block-group:first-child img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--nv-ease-out);
}

.is-style-svc-card:hover > .wp-block-group:first-child img {
	transform: scale(1.04);
}

.wp-block-group.is-style-card-body {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
	flex: 1;
	margin-top: 8px;
	padding: 24px 22px 22px 26px;
	border-radius: var(--nv-radius-lg);
	background: var(--nv-surface);
}

/* The arrow disc of the card: a ::before placed last (the editor draws block
   selection with ::after). */
.wp-block-group.is-style-card-body::before {
	content: "";
	order: 99;
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--nv-arrow-white) center / 18px no-repeat, var(--nv-copper-btn);
	transition: transform 0.45s var(--nv-ease-out), background-color 0.3s;
}

.is-style-svc-card:hover .wp-block-group.is-style-card-body::before {
	transform: rotate(-45deg);
	background-color: var(--nv-copper-btn-hover);
}

.is-style-svc-card h3 {
	font-size: clamp(1.6rem, 2.2vw, 2rem);
	line-height: 1.1;
	font-weight: 600;
}

/* The title link is its own balanced box: RichText's trailing empty text node after
   an inline link would otherwise add an empty balanced line in the editor. */
.is-style-svc-card h3 a {
	display: inline-block;
	text-decoration: none;
	text-wrap: balance;
}

.is-style-svc-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.is-style-svc-card h3 + p {
	margin-top: 8px;
	color: var(--nv-muted);
	font-size: 0.975rem;
	line-height: 1.6;
}

ul.is-style-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin-top: 16px;
	padding: 0;
	list-style: none;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--nv-muted);
}

ul.is-style-tags li {
	display: inline-flex;
	align-items: center;
}

ul.is-style-tags li + li::before {
	content: "";
	width: 1px;
	height: 14px;
	margin-inline: 12px;
	background: var(--nv-line-strong);
}

@media (max-width: 900px) {
	.wp-block-group.is-style-services-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.wp-block-group.is-style-card-body {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ==========================================================================
   Process: expanding cards on a timeline (neuvoton/process)
   ========================================================================== */
.wp-block-group.is-style-process-col {
	--nv-dot: var(--nv-line-strong);

	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
	transition: flex-grow 0.9s cubic-bezier(0.65, 0, 0.35, 1), --nv-dot 0.5s var(--nv-ease);
}

/* The reveal sets its own transition on these columns; keep the width easing in it. */
.js .wp-block-group.is-style-process-col[data-nv-reveal] {
	transition:
		opacity 0.9s var(--nv-ease) var(--nv-delay, 0s),
		transform 1.1s var(--nv-ease-out) var(--nv-delay, 0s),
		flex-grow 0.9s cubic-bezier(0.65, 0, 0.35, 1),
		--nv-dot 0.5s var(--nv-ease);
}

.wp-block-group.is-style-process-col:is(.is-active, .block-editor-block-list__block > :not(.is-style-process-col ~ *)) {
	flex-grow: 2.1;
}

.is-style-process-col > .wp-block-group:first-child {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	min-height: 320px;
	padding: 24px;
	border-radius: var(--nv-radius-lg);
	background: var(--nv-surface);
	border: 1px solid var(--nv-line);
	overflow: hidden;
	cursor: default;
	outline: none;
	transition: background-color 0.5s var(--nv-ease), border-color 0.5s var(--nv-ease);
}

.is-style-process-col:is(.is-active, .block-editor-block-list__block > :not(.is-style-process-col ~ *)) > .wp-block-group:first-child {
	background: var(--nv-ink);
	border-color: var(--nv-ink);
}

.wp-block-icon.is-style-disc {
	display: grid;
	place-items: center;
	flex: none;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: var(--nv-sand);
	color: var(--nv-heading);
	transition: background-color 0.5s var(--nv-ease), color 0.5s var(--nv-ease);
}

.wp-block-icon.is-style-disc > svg {
	width: 30px;
	height: 30px;
}

.is-style-process-col:is(.is-active, .block-editor-block-list__block > :not(.is-style-process-col ~ *)) .wp-block-icon.is-style-disc {
	background: var(--nv-copper-btn);
	color: #fff;
}

.is-style-process-col h3 {
	font-size: clamp(1.6rem, 2.2vw, 2.1rem);
	line-height: 1.1;
	font-weight: 600;
	transition: color 0.5s var(--nv-ease);
}

.is-style-process-col h3 + p {
	margin-top: 10px;
	max-width: 34ch;
	font-size: 0.975rem;
	line-height: 1.6;
	color: var(--nv-muted);
	transition: color 0.5s var(--nv-ease);
}

.is-style-process-col:is(.is-active, .block-editor-block-list__block > :not(.is-style-process-col ~ *)) h3 {
	color: var(--nv-on-dark);
}

.is-style-process-col:is(.is-active, .block-editor-block-list__block > :not(.is-style-process-col ~ *)) h3 + p {
	color: var(--nv-on-dark-muted);
}

@media (max-width: 900px) {
	.wp-block-neuvoton-process {
		flex-direction: column;
	}

	.wp-block-group.is-style-process-col,
	.wp-block-group.is-style-process-col:is(.is-active, .block-editor-block-list__block > :not(.is-style-process-col ~ *)) {
		flex: none;
	}

	.is-style-process-col > .wp-block-group:first-child {
		min-height: 0;
	}

	.wp-block-group.is-style-process-col::before {
		order: -1;
		margin: 0 0 4px;
	}
}

/* Registered so the timeline dot can fade between colours. */
@property --nv-dot {
	syntax: "<color>";
	inherits: true;
	initial-value: transparent;
}

/* Timeline under each step: a dot on a dashed line, copper on the active step.
   A ::before placed last, as the editor draws block selection with ::after. */
.wp-block-group.is-style-process-col::before {
	content: "";
	order: 99;
	display: block;
	height: 12px;
	margin-top: 24px;
	background:
		radial-gradient(circle at 6px 6px, var(--nv-dot) 5px, transparent 5.5px),
		linear-gradient(90deg, var(--nv-line-strong) 50%, transparent 0) 20px 50% / 8px 1px repeat-x;
}

.is-style-process-col:is(.is-active, .block-editor-block-list__block > :not(.is-style-process-col ~ *)) {
	--nv-dot: var(--nv-copper-btn);
}

p.is-style-process-note {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: clamp(32px, 4vw, 48px);
	font-family: var(--nv-serif);
	font-size: clamp(1.4rem, 2vw, 1.75rem);
	font-style: italic;
	line-height: 1.7;
	color: var(--nv-heading);
}

p.is-style-process-note::before {
	content: "";
	width: 40px;
	height: 1px;
	background: var(--nv-copper);
}

/* ==========================================================================
   Split feature (image + numbered list)
   ========================================================================== */
.wp-block-group.is-style-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}

.wp-block-group.is-style-split-reverse {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}

.is-style-split-reverse > .is-style-split-media {
	order: 2;
}

.wp-block-group.is-style-split-media {
	position: relative;
	border-radius: var(--nv-radius-lg);
	overflow: hidden;
	aspect-ratio: 4 / 5;
}

/* :root outranks the editor's relative positioning of every block. */
:root .is-style-split-media > .wp-block-image {
	position: absolute;
	inset: 0;
	margin: 0;
}

:root .is-style-split-media > .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

:root .wp-block-group.is-style-split-badge {
	position: absolute;
	left: 16px;
	bottom: 16px;
	right: 16px;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	border-radius: var(--nv-radius-md);
	background: rgb(26 23 20 / 55%);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	color: var(--nv-on-dark);
	font-size: 0.9rem;
	line-height: 1.45;
}

.is-style-split-badge > .wp-block-icon,
.is-style-split-badge > .wp-block-icon > svg {
	flex: none;
	width: 28px;
	height: 28px;
	color: var(--nv-copper-light);
}

.wp-block-group.is-style-split > .wp-block-group + .wp-block-group > p,
.wp-block-group.is-style-split-reverse > .wp-block-group + .wp-block-group > p {
	margin-top: 20px;
}

.wp-block-group.is-style-feature-list {
	margin: clamp(28px, 4vw, 44px) 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--nv-line);
}

.is-style-panel-dark .wp-block-group.is-style-feature-list,
.is-style-panel-dark .is-style-feature-list > .wp-block-group {
	border-color: var(--nv-line-dark);
}

.is-style-feature-list > .wp-block-group {
	display: grid;
	gap: 4px;
	padding: 22px 0;
	border-bottom: 1px solid var(--nv-line);
}

@media (max-width: 900px) {
	.wp-block-group.is-style-split,
	.wp-block-group.is-style-split-reverse {
		grid-template-columns: 1fr;
	}

	.is-style-split-reverse > .is-style-split-media {
		order: 0;
	}

	.wp-block-group.is-style-split-media {
		aspect-ratio: 4 / 3;
	}
}

.is-style-feature-list h3 {
	font-size: clamp(1.45rem, 2vw, 1.75rem);
	line-height: 1.15;
	font-weight: 600;
}

.is-style-feature-list h3 + p {
	font-size: 0.975rem;
	line-height: 1.6;
}

/* ==========================================================================
   Team (Henkilöt query)
   ========================================================================== */
.wp-block-post-template.is-style-team-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.is-style-team-grid > li {
	display: flex;
	margin: 0;
}

.wp-block-group.is-style-team-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 8px;
	border-radius: calc(var(--nv-radius-lg) + 6px);
	background: var(--nv-sand);
}

.is-style-panel-sand .wp-block-group.is-style-team-card,
.is-style-panel-sand .wp-block-group.is-style-expert {
	background: var(--nv-sand-2);
}

.wp-block-group.is-style-team-photo {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: var(--nv-radius-lg);
	overflow: hidden;
	background:
		radial-gradient(80% 70% at 50% 100%, rgb(199 107 42 / 50%), rgb(199 107 42 / 0%) 70%),
		linear-gradient(180deg, #2a231d, #17130f);
}

.is-style-team-photo > .wp-block-post-featured-image {
	position: absolute;
	inset: 0;
	margin: 0;
}

.is-style-team-photo > .wp-block-post-featured-image img {
	position: absolute;
	inset: auto 0 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center bottom;
	transition: transform 0.9s var(--nv-ease-out);
	transform-origin: center bottom;
}

.is-style-team-card:hover .is-style-team-photo img {
	transform: scale(1.04);
}

.wp-block-group.is-style-team-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	margin-top: 8px;
	padding: 22px 24px 24px;
	border-radius: var(--nv-radius-lg);
	background: var(--nv-surface);
}

.is-style-team-body > h3 {
	font-size: clamp(1.75rem, 2.4vw, 2.1rem);
	line-height: 1.05;
	font-weight: 600;
}

ul.is-style-roles {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
	padding: 0;
	list-style: none;
}

ul.is-style-roles li {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--nv-copper-tint);
	color: #6f3a12;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.7;
}

ul.is-style-contact-lines {
	display: grid;
	gap: 4px;
	margin-top: 20px;
	padding: 16px 0 0;
	border-top: 1px solid var(--nv-line);
	list-style: none;
}

ul.is-style-contact-lines a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 4px 0;
	color: var(--nv-heading);
	font-weight: 500;
	font-size: 0.975rem;
	line-height: 1.7;
	text-decoration: none;
	transition: color 0.3s;
}

ul.is-style-contact-lines a:hover {
	color: var(--nv-copper-btn);
}

ul.is-style-contact-lines a::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: var(--nv-copper);
	-webkit-mask: var(--nv-phone) center / contain no-repeat;
	mask: var(--nv-phone) center / contain no-repeat;
}

ul.is-style-contact-lines a[href^="mailto:"]::before {
	-webkit-mask-image: var(--nv-mail);
	mask-image: var(--nv-mail);
}

.is-style-team-body .wp-block-neuvoton-content-person-details > :first-child,
.is-style-expert-body .wp-block-neuvoton-content-person-details > :first-child {
	margin-top: 12px;
}

@media (max-width: 1000px) {
	.wp-block-post-template.is-style-team-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.wp-block-post-template.is-style-team-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.wp-block-group.is-style-faq {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
	gap: 40px clamp(32px, 6vw, 96px);
	align-items: start;
}

.wp-block-group.is-style-faq > .wp-block-group:first-child {
	position: sticky;
	top: calc(var(--nv-header-h) + 32px);
	container-type: inline-size;
}

/* The head's long Finnish compounds must fit its column (the source overflowed it).
   The preset size class is !important, so the cap has to be as well. */
:root .is-style-faq > .wp-block-group:first-child > .wp-block-heading.has-xx-large-font-size {
	font-size: min(var(--wp--preset--font-size--xx-large), 11.8cqi) !important;
}

.wp-block-group.is-style-faq > .wp-block-group:first-child > p {
	margin-top: 18px;
	color: var(--nv-muted);
}

.wp-block-group.is-style-contact-chip {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 32px;
	padding: 10px 20px 10px 10px;
	border-radius: 999px;
	background: var(--nv-surface);
	max-width: max-content;
}

.is-style-contact-chip > .wp-block-image img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	object-position: top;
	background: var(--nv-ink-3);
}

.is-style-contact-chip p:first-child {
	display: block;
	font-size: 0.8rem;
	color: var(--nv-muted);
	line-height: 1.3;
}

.is-style-contact-chip p + p a {
	font-weight: 600;
	color: var(--nv-heading);
	text-decoration: none;
}

.is-style-contact-chip p + p a:hover {
	color: var(--nv-copper-btn);
}

.wp-block-group.is-style-faq > .wp-block-group + .wp-block-group {
	border-top: 1px solid var(--nv-line-strong);
}

.wp-block-details.is-style-faq {
	border-bottom: 1px solid var(--nv-line-strong);
}

.wp-block-details.is-style-faq summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 26px 0;
	list-style: none;
	cursor: pointer;
	font-family: var(--nv-serif);
	font-size: clamp(1.35rem, 2vw, 1.7rem);
	line-height: 1.2;
	font-weight: 600;
	color: var(--nv-heading);
}

.wp-block-details.is-style-faq summary::-webkit-details-marker {
	display: none;
}

.wp-block-details.is-style-faq summary:hover {
	color: var(--nv-copper-btn);
}

/* Plus/minus disc: the vertical bar folds away as the disc turns. */
.wp-block-details.is-style-faq summary::after {
	content: "";
	position: relative;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background:
		linear-gradient(var(--nv-faq-bar, var(--nv-heading)), var(--nv-faq-bar, var(--nv-heading))) center / 14px 1.5px no-repeat,
		linear-gradient(var(--nv-faq-bar, var(--nv-heading)), var(--nv-faq-bar, var(--nv-heading))) center / 1.5px 14px no-repeat,
		var(--nv-surface);
	transition: background-color 0.3s, background-size 0.4s var(--nv-ease-out), transform 0.4s var(--nv-ease-out);
}

.wp-block-details.is-style-faq[open] summary::after {
	--nv-faq-bar: #fff;

	background-color: var(--nv-copper-btn);
	background-size: 14px 1.5px, 1.5px 0, auto;
	transform: rotate(180deg);
}

.wp-block-details.is-style-faq::details-content {
	block-size: 0;
	overflow: hidden;
	transition: block-size 0.45s var(--nv-ease-out), content-visibility 0.45s allow-discrete;
}

.wp-block-details.is-style-faq[open]::details-content {
	block-size: auto;
}

.wp-block-details.is-style-faq > :not(summary) {
	margin: 0;
	padding: 0 64px 28px 0;
	color: var(--nv-muted);
}

@media (max-width: 900px) {
	.wp-block-group.is-style-faq {
		grid-template-columns: 1fr;
	}

	.wp-block-group.is-style-faq > .wp-block-group:first-child {
		position: static;
	}

	.wp-block-details.is-style-faq > :not(summary) {
		padding-right: 0;
	}
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.wp-block-group.is-style-cta {
	text-align: center;
	background:
		radial-gradient(60% 80% at 50% 125%, rgb(199 107 42 / 22%), rgb(199 107 42 / 0%) 65%),
		var(--nv-surface);
	isolation: isolate;
}

:root .wp-block-icon.is-style-cta-mark {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: -1;
	width: min(80vw, 720px);
	height: min(80vw, 720px);
	max-width: none !important;
	margin: calc(min(80vw, 720px) / -2) 0 0 calc(min(80vw, 720px) / -2) !important;
	color: rgb(199 107 42 / 5%);
	pointer-events: none;
}

.wp-block-icon.is-style-cta-mark > svg {
	width: 100%;
	height: 100%;
	stroke-width: 0.5;
}

.is-style-cta h2 {
	max-width: 16ch;
	margin-inline: auto !important;
	line-height: 1;
}

.is-style-cta h2 em {
	font-style: italic;
	color: var(--nv-copper);
}

.is-style-cta > p:not(.is-style-eyebrow) {
	max-width: 52ch;
	margin: 22px auto 0 !important;
	color: var(--nv-muted);
}

.is-style-cta > .wp-block-buttons {
	justify-content: center;
	margin-top: 36px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.wp-site-blocks > footer.wp-block-template-part:has(> .is-style-site-footer) {
	margin: 0 var(--nv-gutter) var(--nv-gutter);
	padding: clamp(64px, 8vw, 104px) 0 28px;
	border-radius: var(--nv-radius-xl);
	background: var(--nv-ink);
	color: var(--nv-on-dark-muted);
	font-size: 0.95rem;
}

.wp-block-group.is-style-site-footer {
	padding-inline: var(--nv-pad-x);
}

p.is-style-tagline {
	padding-bottom: clamp(40px, 5vw, 64px);
	margin-bottom: clamp(40px, 5vw, 64px);
	border-bottom: 1px solid var(--nv-line-dark);
	font-family: var(--nv-serif);
	font-size: clamp(2.4rem, 6.5vw, 6rem);
	line-height: 0.98;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--nv-on-dark);
}

p.is-style-tagline em {
	font-style: italic;
	font-weight: 400;
	color: var(--nv-copper-light);
}

.wp-block-group.is-style-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
	gap: 40px;
}

.is-style-footer-grid .wp-block-site-logo a {
	display: inline;
}

.is-style-footer-grid .wp-block-site-logo img {
	width: 180px;
	height: auto;
	margin-bottom: 22px;
}

.is-style-footer-grid > .wp-block-group:first-child > p {
	max-width: 34ch;
	line-height: 1.65;
}

.wp-block-heading.is-style-footer-heading {
	margin-bottom: 18px;
	font-family: var(--nv-sans);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.7;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nv-on-dark);
}

.wp-block-navigation.is-style-footer-links,
.wp-block-navigation.is-style-footer-links .wp-block-navigation__container {
	display: grid;
	gap: 10px;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.7;
}

ul.is-style-footer-links {
	display: grid;
	gap: 10px;
	padding: 0;
	list-style: none;
}

ul.is-style-footer-links a,
.wp-block-navigation.is-style-footer-links .wp-block-navigation-item .wp-block-navigation-item__content {
	color: var(--nv-on-dark-muted);
	text-decoration: none;
	transition: color 0.3s;
}

ul.is-style-footer-links a:hover,
.wp-block-navigation.is-style-footer-links .wp-block-navigation-item .wp-block-navigation-item__content:hover {
	color: var(--nv-copper-light);
}

.wp-block-group.is-style-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: clamp(48px, 6vw, 80px);
	padding-top: 24px;
	border-top: 1px solid var(--nv-line-dark);
	font-size: 0.875rem;
}

.wp-block-navigation.is-style-footer-legal .wp-block-navigation__container {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.7;
}

.wp-block-navigation.is-style-footer-legal .wp-block-navigation-item .wp-block-navigation-item__content {
	color: var(--nv-on-dark-muted);
	text-decoration: none;
}

.wp-block-navigation.is-style-footer-legal .wp-block-navigation-item .wp-block-navigation-item__content:hover {
	color: var(--nv-copper-light);
}

.wp-block-button.is-style-to-top .wp-block-button__link {
	display: grid;
	place-items: center;
	width: 48px;
	min-height: 48px;
	height: 48px;
	padding: 1px 6px;
	border: 1px solid var(--nv-line-dark);
	border-radius: 50%;
	background: transparent !important;
	color: var(--nv-on-dark) !important;
	font-size: 0.875rem;
	line-height: normal;
	transition: background-color 0.3s, transform 0.4s var(--nv-ease-out);
}

.editor-styles-wrapper .wp-block-button.is-style-to-top .wp-block-button__link {
	font-size: 0;
}

.wp-block-button.is-style-to-top .wp-block-button__link::before {
	content: "";
	grid-area: 1 / 1;
	width: 18px;
	height: 18px;
	border-radius: 0;
	background: currentcolor;
	-webkit-mask: var(--nv-arrow-up) center / contain no-repeat;
	mask: var(--nv-arrow-up) center / contain no-repeat;
}

.editor-styles-wrapper .wp-block-button.is-style-to-top .wp-block-button__link::after {
	content: none;
}

.wp-block-button.is-style-to-top .wp-block-button__link:hover {
	background: var(--nv-copper-btn) !important;
	border-color: var(--nv-copper-btn);
	transform: translateY(-3px);
}

@media (max-width: 1000px) {
	.wp-block-group.is-style-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.wp-block-group.is-style-footer-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Motion (motion.js adds .js on <html>)
   ========================================================================== */
.js [data-nv-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s var(--nv-ease), transform 1.1s var(--nv-ease-out);
	transition-delay: var(--nv-delay, 0s);
}

.js [data-nv-reveal="visible"] {
	opacity: 1;
	transform: none;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		transition-delay: 0s !important;
	}

	.js [data-nv-reveal] {
		opacity: 1;
		transform: none;
	}
}

/* Line icons of the neuvoton collection (core/icon keeps only path geometry). */
svg.nv-icon {
	fill: none;
	stroke: currentcolor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

svg.nv-icon.nv-sw-20 {
	stroke-width: 2;
}

svg.nv-icon.nv-sw-22 {
	stroke-width: 2.2;
}

svg.nv-icon.nv-sw-24 {
	stroke-width: 2.4;
}

/* ==========================================================================
   Inner page hero and breadcrumbs
   ========================================================================== */
.wp-block-group.is-style-page-hero {
	position: relative;
	padding: calc(var(--nv-header-h) + clamp(48px, 8vw, 112px)) var(--nv-pad-x) clamp(48px, 6vw, 80px);
	border-radius: var(--nv-radius-xl);
	background:
		radial-gradient(70% 90% at 100% 110%, rgb(199 107 42 / 42%), rgb(199 107 42 / 0%) 60%),
		linear-gradient(180deg, #221c17 0%, #14110e 100%);
	color: var(--nv-on-dark-muted);
	overflow: clip;
	isolation: isolate;
}

.wp-block-group.is-style-page-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 32px 64px;
	align-items: end;
}

.is-style-page-hero h1 {
	line-height: 0.98;
	letter-spacing: -0.02em;
	color: var(--nv-on-dark);
}

.is-style-page-hero-grid > .wp-block-group + .wp-block-group {
	display: grid;
	gap: 28px;
	padding-bottom: 8px;
}

.is-style-page-hero-grid > .wp-block-group + .wp-block-group > p {
	color: var(--nv-on-dark);
}

.is-style-page-hero .wp-block-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 clamp(28px, 4vw, 48px);
	padding: 0;
	list-style: none;
	font-size: 0.8125rem;
	line-height: 1.7;
}

.is-style-page-hero .wp-block-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.is-style-page-hero .wp-block-breadcrumbs li::after {
	content: none;
}

.is-style-page-hero .wp-block-breadcrumbs li + li::before {
	content: var(--separator, "/");
	color: rgb(244 241 236 / 35%);
}

.is-style-page-hero .wp-block-breadcrumbs a {
	padding: 5px 12px;
	border: 1px solid var(--nv-line-dark);
	border-radius: 999px;
	color: var(--nv-on-dark);
	text-decoration: none;
	transition: background-color 0.3s;
}

.is-style-page-hero .wp-block-breadcrumbs a:hover {
	background: rgb(244 241 236 / 10%);
}

.is-style-page-hero .wp-block-breadcrumbs [aria-current="page"] {
	padding: 5px 12px;
	border-radius: 999px;
	background: rgb(244 241 236 / 10%);
	color: var(--nv-on-dark);
}

@media (max-width: 900px) {
	.wp-block-group.is-style-page-hero-grid {
		grid-template-columns: 1fr;
	}
}

/* 404 */

/* Capped far above real screens so a tall capture viewport still fits the page. */
.wp-block-group.is-style-page-hero:has(> .is-style-error-page) {
	min-height: min(calc(100svh - 2 * var(--nv-gutter)), 2000px);
	display: grid;
	place-items: center;
	text-align: center;
}

.wp-block-group.is-style-error-page h1 {
	margin-top: 12px;
	font-size: clamp(2rem, 4vw, 3rem);
	color: var(--nv-on-dark);
}

/* As in the source, every paragraph of the error page (the code too) takes this rule. */
.wp-block-group.is-style-error-page {
	width: 100%;
}

:root .wp-block-group.is-style-error-page > p {
	max-width: 44ch;
	margin: 16px auto 32px;
}

p.is-style-error-code {
	font-family: var(--nv-serif);
	font-size: clamp(7rem, 22vw, 16rem);
	line-height: 0.85;
	font-style: italic;
	color: var(--nv-copper-light);
}

.is-style-error-page .wp-block-buttons {
	justify-content: center;
}

/* ==========================================================================
   Pillars
   ========================================================================== */
.wp-block-group.is-style-pillars {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.wp-block-group.is-style-pillar {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: clamp(24px, 3vw, 36px);
	border-radius: var(--nv-radius-lg);
	background: var(--nv-surface);
	border: 1px solid var(--nv-line);
	transition: transform 0.6s var(--nv-ease-out), box-shadow 0.6s var(--nv-ease-out);
}

.is-style-panel-light .wp-block-group.is-style-pillar {
	background: var(--nv-sand);
	border-color: transparent;
}

.is-style-panel-dark .wp-block-group.is-style-pillar {
	background: var(--nv-ink-2);
	border-color: var(--nv-line-dark);
}

/* The card's link covers the whole card; its focus ring outlines the card. */
.is-style-pillar p.is-style-link-arrow a::before,
.is-style-related-top > :first-child a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.is-style-pillar:has(a:focus-visible),
.is-style-related-card:has(a:focus-visible) {
	outline: 2px solid var(--nv-copper);
	outline-offset: 3px;
}

.is-style-pillar a:focus-visible,
.is-style-related-card a:focus-visible {
	outline: none;
}

.wp-block-group.is-style-pillar:hover {
	transform: translateY(-4px);
	box-shadow: var(--nv-shadow-soft);
}

.wp-block-group.is-style-pillar-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: clamp(28px, 4vw, 56px);
}

.is-style-pillar .wp-block-icon.is-style-tile {
	width: 60px;
	height: 60px;
	border-radius: 14px;
}

.is-style-pillar .wp-block-icon.is-style-tile > svg {
	width: 26px;
	height: 26px;
}

p.is-style-pillar-sub {
	font-weight: 600;
}

.wp-block-group.is-style-pillar > p {
	font-size: 0.975rem;
	line-height: 1.6;
	color: var(--nv-muted);
}

/* "Read more": the card's link, stretched over the whole card. */
p.is-style-link-arrow {
	margin-top: auto;
	align-self: flex-start;
}

p.is-style-link-arrow a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--nv-heading);
	text-decoration: none;
	border-bottom: 1px solid var(--nv-line-strong);
	padding-bottom: 2px;
	transition: border-color 0.3s, color 0.3s;
}

p.is-style-link-arrow a::after {
	content: "";
	width: 14px;
	height: 14px;
	background: currentcolor;
	-webkit-mask: var(--nv-arrow) center / contain no-repeat;
	mask: var(--nv-arrow) center / contain no-repeat;
}

.is-style-pillar:hover p.is-style-link-arrow a {
	color: var(--nv-copper-btn);
	border-color: currentcolor;
}

@media (max-width: 900px) {
	.wp-block-group.is-style-pillars {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Two-column content, checklist and principles
   ========================================================================== */
.wp-block-group.is-style-content-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: 32px clamp(32px, 6vw, 96px);
	align-items: start;
}

.is-style-content-split > .wp-block-group:first-child {
	position: sticky;
	top: calc(var(--nv-header-h) + 32px);
}

.is-style-content-split > .wp-block-group:first-child > p:not(.is-style-eyebrow) {
	margin-top: 16px;
	color: var(--nv-muted);
}

.is-style-panel-dark .is-style-content-split > .wp-block-group:first-child > p:not(.is-style-eyebrow) {
	color: var(--nv-on-dark-muted);
}

.is-style-content-split > .wp-block-group + .wp-block-group {
	display: grid;
	gap: 1.2em;
	color: var(--nv-muted);
}

.is-style-content-split > .wp-block-group + .wp-block-group > p.has-large-font-size {
	color: var(--nv-heading);
}

ul.is-style-checklist {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	padding: 0;
	list-style: none;
}

ul.is-style-checklist li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border-radius: var(--nv-radius-md);
	background: var(--nv-surface);
	font-weight: 600;
	color: var(--nv-heading);
	line-height: 1.4;
}

.is-style-panel-light ul.is-style-checklist li {
	background: var(--nv-sand);
}

ul.is-style-checklist li::before {
	content: "";
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--nv-check-white) center / 16px no-repeat, var(--nv-copper-btn);
}

ol.is-style-principles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 48px;
	padding: 0;
	list-style: none;
}

ol.is-style-principles li {
	display: flex;
	align-items: baseline;
	gap: 20px;
	padding: 22px 0;
	border-bottom: 1px solid var(--nv-line);
	font-family: var(--nv-serif);
	font-size: clamp(1.4rem, 2vw, 1.75rem);
	line-height: 1.2;
	font-weight: 600;
	color: var(--nv-heading);
}

/* A short copper rule, as under the logo's wordmark. */
ol.is-style-principles li::before {
	content: "";
	flex: none;
	align-self: center;
	width: 22px;
	height: 2px;
	background: currentcolor;
	color: var(--nv-copper);
}

.is-style-panel-dark ol.is-style-principles li {
	border-color: var(--nv-line-dark);
	color: var(--nv-on-dark);
}

.is-style-panel-dark ol.is-style-principles li::before {
	background: var(--nv-copper-light);
}

@media (max-width: 900px) {
	.wp-block-group.is-style-content-split {
		grid-template-columns: 1fr;
	}

	.is-style-content-split > .wp-block-group:first-child {
		position: static;
	}
}

@media (max-width: 760px) {
	ol.is-style-principles {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	ul.is-style-checklist {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Expert card and related services
   ========================================================================== */
.is-style-content-split .wp-block-query,
.is-style-content-split .wp-block-query > .wp-block-post-template,
.is-style-content-split .wp-block-query > .wp-block-post-template > li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-block-group.is-style-expert {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 8px;
	padding: 8px;
	border-radius: calc(var(--nv-radius-lg) + 6px);
	background: var(--nv-sand);
}

.is-style-expert > .is-style-team-photo {
	aspect-ratio: auto;
	min-height: 220px;
}

.wp-block-group.is-style-expert-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 24px 28px;
	border-radius: var(--nv-radius-lg);
	background: var(--nv-surface);
}

.is-style-kicker {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nv-muted);
	line-height: 1.7;
}

.is-style-expert-body > .is-style-kicker {
	margin-bottom: 8px;
}

.is-style-expert-body > h3 {
	font-size: clamp(1.75rem, 2.4vw, 2.25rem);
	line-height: 1.05;
	font-weight: 600;
}

h2.wp-block-heading.is-style-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	font-family: var(--nv-sans);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.7;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nv-heading);
}

h2.wp-block-heading.is-style-eyebrow::before {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background: var(--nv-copper);
	-webkit-mask: var(--nv-mark) center / contain no-repeat;
	mask: var(--nv-mark) center / contain no-repeat;
}

.wp-block-group.is-style-related {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.wp-block-group.is-style-related-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	min-height: 200px;
	padding: 24px;
	border-radius: var(--nv-radius-lg);
	background: var(--nv-sand);
	transition: background-color 0.4s var(--nv-ease);
}

.is-style-panel-sand .wp-block-group.is-style-related-card {
	background: var(--nv-surface);
}

.wp-block-group.is-style-related-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
}

.wp-block-group.is-style-related-top::before {
	content: "";
	flex: none;
	width: 44px;
	height: 44px;
	transition: transform 0.45s var(--nv-ease-out);
	order: 99;
	border-radius: 50%;
	background: var(--nv-arrow-white) center / 18px no-repeat, var(--nv-copper-btn);
}

.wp-block-group.is-style-related-top > :first-child {
	display: block;
	font-family: var(--nv-serif);
	font-size: 1.75rem;
	line-height: 1.1;
	font-weight: 600;
	color: var(--nv-heading);
	transition: color 0.4s;
}

.wp-block-group.is-style-related-top > :first-child a {
	color: inherit;
	text-decoration: none;
}

.is-style-related-card > .wp-block-group + .wp-block-group > :first-child {
	display: block;
	font-size: 0.95rem;
	color: var(--nv-muted);
	transition: color 0.4s;
}

.wp-block-group.is-style-related-card:hover {
	background: var(--nv-ink);
}

.wp-block-group.is-style-related-card:hover .is-style-related-top > :first-child {
	color: var(--nv-on-dark);
}

.is-style-related-card:hover > .wp-block-group + .wp-block-group > :first-child {
	color: var(--nv-on-dark-muted);
}

.wp-block-group.is-style-related-card:hover .is-style-related-top::before {
	transform: rotate(-45deg);
}

@media (max-width: 900px) {
	.wp-block-group.is-style-related {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.wp-block-group.is-style-expert {
		grid-template-columns: 1fr;
	}

	.is-style-expert > .is-style-team-photo {
		aspect-ratio: 1 / 1;
	}
}

/* ==========================================================================
   Contact page: company details and steps
   ========================================================================== */
.wp-block-group.is-style-company-card {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	padding: clamp(24px, 3vw, 40px);
	border-radius: var(--nv-radius-lg);
	background: var(--nv-surface);
}

/* The source's details list keeps the browser's 1em bottom margin. */
:root .wp-block-group.is-style-company-card {
	margin-bottom: 1em;
}

.is-style-panel-light .wp-block-group.is-style-company-card {
	background: var(--nv-sand);
}

.is-style-company-card > .wp-block-group > p:first-child {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nv-muted);
}

.is-style-company-card > .wp-block-group > p + p {
	margin-top: 6px;
	font-family: var(--nv-serif);
	font-size: 1.5rem;
	line-height: 1.25;
	font-weight: 600;
	color: var(--nv-heading);
}

.is-style-company-card a {
	text-decoration: none;
}

.is-style-company-card a:hover {
	color: var(--nv-copper-btn);
}

.wp-block-group.is-style-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.is-style-steps > .wp-block-group {
	padding: 28px;
	border-radius: var(--nv-radius-lg);
	border: 1px solid var(--nv-line);
	background: var(--nv-surface);
}

.is-style-steps > .wp-block-group::before {
	content: "";
	display: block;
	width: 32px;
	height: 2px;
	margin-bottom: 44px;
	background: var(--nv-copper-btn);
}

.is-style-steps h3 {
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.1;
}

.is-style-steps h3 + p {
	margin-top: 10px;
	font-size: 0.975rem;
	line-height: 1.6;
	color: var(--nv-muted);
}

@media (max-width: 1000px) {
	.wp-block-group.is-style-company-card {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.wp-block-group.is-style-steps {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.wp-block-group.is-style-company-card {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Prose (privacy policy, posts)
   ========================================================================== */
:root .is-style-prose h2 {
	font-size: clamp(1.75rem, 2.6vw, 2.25rem);
	line-height: 1.1;
	margin-top: 1.8em;
}

:root .is-style-prose h3 {
	font-size: 1.5rem;
	font-weight: 600;
	margin-top: 1.6em;
}

.is-style-prose ul,
.is-style-prose ol {
	padding-left: 1.2em;
}

.is-style-prose li + li {
	margin-top: 0.35em;
}

.is-style-prose li::marker {
	color: var(--nv-copper);
}

.is-style-prose a {
	color: var(--nv-copper-btn);
}

/* ==========================================================================
   Posts: cards, archive grid, pagination, empty state, single
   ========================================================================== */
.wp-block-post-template.is-style-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.is-style-post-grid > li {
	display: flex;
	margin: 0;
}

.wp-block-group.is-style-post-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 8px;
	border-radius: calc(var(--nv-radius-lg) + 6px);
	background: var(--nv-sand);
}

.is-style-post-card > .wp-block-post-featured-image {
	margin: 0;
	border-radius: var(--nv-radius-lg);
	overflow: hidden;
	background: #e5ddd0;
}

.is-style-post-card > .wp-block-post-featured-image img {
	transition: transform 0.9s var(--nv-ease-out);
}

.is-style-post-card:hover > .wp-block-post-featured-image img {
	transform: scale(1.04);
}

.is-style-post-card > .wp-block-group {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 8px;
	padding: 24px 22px 22px 26px;
	border-radius: var(--nv-radius-lg);
	background: var(--nv-surface);
}

.is-style-post-card .wp-block-post-date {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nv-muted);
}

.is-style-post-card .wp-block-post-title {
	font-size: clamp(1.45rem, 2vw, 1.75rem);
	line-height: 1.15;
	font-weight: 600;
}

.is-style-post-card .wp-block-post-title a {
	text-decoration: none;
}

.is-style-post-card .wp-block-post-title a:hover {
	color: var(--nv-copper-btn);
}

.is-style-post-card .wp-block-post-excerpt {
	margin: 0;
	font-size: 0.975rem;
	line-height: 1.6;
	color: var(--nv-muted);
}

.is-style-post-card .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.wp-block-query-pagination.is-style-pagination {
	gap: 8px;
	margin-top: clamp(32px, 4vw, 48px);
	font-weight: 600;
}

.is-style-pagination a,
.is-style-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px var(--nv-line-strong);
	color: var(--nv-heading);
	text-decoration: none;
}

.is-style-pagination .page-numbers.current {
	background: var(--nv-ink);
	box-shadow: none;
	color: var(--nv-on-dark);
}

.wp-block-group.is-style-empty-state {
	display: grid;
	justify-items: start;
	gap: 16px;
	max-width: 56ch;
	padding: clamp(24px, 3vw, 40px);
	border-radius: var(--nv-radius-lg);
	background: var(--nv-sand);
	color: var(--nv-muted);
}

.wp-block-search.is-style-search .wp-block-search__inside-wrapper {
	gap: 8px;
	padding: 6px;
	border: 1px solid var(--nv-line-dark);
	border-radius: 999px;
	background: rgb(244 241 236 / 6%);
}

.wp-block-search.is-style-search .wp-block-search__input {
	padding: 10px 18px;
	border: 0;
	background: transparent;
	color: var(--nv-on-dark);
	font: inherit;
}

.wp-block-search.is-style-search .wp-block-search__button {
	margin: 0;
	padding: 10px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--nv-copper-btn);
	color: #fff;
	font-weight: 600;
}

.wp-block-group.is-style-post-hero {
	display: grid;
	gap: 20px;
	max-width: 22ch;
	max-width: min(100%, 980px);
}

.wp-block-post-terms.is-style-eyebrow-terms {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.wp-block-post-terms.is-style-eyebrow-terms a {
	color: var(--nv-on-dark);
	text-decoration: none;
}

.wp-block-group.is-style-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	font-size: 0.9375rem;
	color: var(--nv-on-dark-muted);
}

.wp-block-post-featured-image.is-style-rounded-media {
	margin: 0 0 1em;
	border-radius: var(--nv-radius-lg);
	overflow: hidden;
}

.is-style-prose .wp-block-post-content > * + * {
	margin-top: 1.1em;
}

.is-style-prose .wp-block-post-content blockquote {
	margin-inline: 0;
	font-family: var(--nv-serif);
	font-size: 1.5rem;
	line-height: 1.3;
	font-style: italic;
	color: var(--nv-heading);
}

.is-style-prose .wp-block-post-content figure img {
	border-radius: var(--nv-radius-md);
}

.is-style-prose .wp-block-post-content table {
	width: 100%;
	border-collapse: collapse;
}

.is-style-prose .wp-block-post-content :is(th, td) {
	padding: 10px 12px;
	border-bottom: 1px solid var(--nv-line);
	text-align: left;
}

.is-style-prose .wp-block-post-content pre {
	padding: 18px;
	border-radius: var(--nv-radius-sm);
	background: var(--nv-sand);
	overflow-x: auto;
}

.wp-block-post-terms.is-style-tags-terms a {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--nv-copper-tint);
	color: #6f3a12;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
}

.wp-block-post-terms.is-style-tags-terms .wp-block-post-terms__separator {
	display: inline-block;
	width: 6px;
	font-size: 0;
}

.wp-block-group.is-style-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: clamp(32px, 4vw, 48px) !important;
	padding-top: 24px;
	border-top: 1px solid var(--nv-line);
	font-weight: 600;
}

.is-style-post-nav a {
	color: var(--nv-heading);
	text-decoration: none;
}

.is-style-post-nav a:hover {
	color: var(--nv-copper-btn);
}

@media (max-width: 1000px) {
	.wp-block-post-template.is-style-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.wp-block-post-template.is-style-post-grid {
		grid-template-columns: 1fr;
	}
}

/* Hero bands keep their gutter on every side, in the editor's root layout too. */
:root .wp-block-group.is-style-hero,
:root .wp-block-group.is-style-page-hero {
	margin: var(--nv-gutter);
}

/* The editor wraps a resizable image in a sizing box; let it fill the media frame. */
.editor-styles-wrapper .is-style-split-media .components-resizable-box__container,
.editor-styles-wrapper .is-style-svc-card .components-resizable-box__container {
	width: 100% !important;
	height: 100% !important;
}

/* The editor writes an inline height:auto on images; cover-cropped media fill their frame. */
.editor-styles-wrapper .is-style-split-media > .wp-block-image img,
.editor-styles-wrapper .is-style-svc-card > .wp-block-group:first-child img {
	height: 100% !important;
}

.editor-styles-wrapper .is-style-glass-card > .wp-block-image img {
	height: 148px !important;
}

@media (max-width: 1023px) {
	.editor-styles-wrapper .is-style-glass-card > .wp-block-image img {
		height: 120px !important;
	}
}

/* RichText sets white-space: pre-wrap inline so typed spaces survive editing; that
   moves balanced and "pretty" line breaks, as do the break-word wrapping and the
   contenteditable line-break mode. Text not being edited wraps as the page does;
   focus restores them, so no &nbsp; ever reaches stored copy. */
.editor-styles-wrapper .block-editor-rich-text__editable:not(:focus) {
	white-space-collapse: collapse !important;
	overflow-wrap: normal !important;
	line-break: auto !important;
}

/* RichText sets white-space inline; these values never wrap, as on the page. */
.editor-styles-wrapper p.is-style-stat-number,
.editor-styles-wrapper p.is-style-glass-value {
	white-space: nowrap !important;
}

/* The editing canvas is not scrolled as a page: sticky heads sit where they rest. */
.editor-styles-wrapper .wp-block-group.is-style-faq > .wp-block-group:first-child,
.editor-styles-wrapper .is-style-content-split > .wp-block-group:first-child {
	position: static;
}

/* Article titles are client copy: long Finnish compounds hyphenate instead of breaking anywhere. */
.wp-block-post-title {
	hyphens: auto;
}

/* ==========================================================================
   Conversion: enquiry form, phone contact bar, call buttons, references
   ========================================================================== */

/* In-page targets clear the fixed header. */
[id] {
	scroll-margin-top: calc(var(--nv-header-h) + 24px);
}

/* Call actions carry a phone in their disc instead of the arrow. */
.wp-block-button__link[href^="tel:"] .nv-btn-icon::before {
	-webkit-mask-image: var(--nv-phone);
	mask-image: var(--nv-phone);
}

.wp-block-button__link[href^="tel:"]:hover .nv-btn-icon {
	transform: none;
}

.editor-styles-wrapper .wp-block-button__link:not(:has(> .nv-btn-icon))[href^="tel:"]::after,
.editor-styles-wrapper .wp-block-button[data-nv-call] .wp-block-button__link::after {
	-webkit-mask-image: var(--nv-phone);
	mask-image: var(--nv-phone);
}

/* Enquiry form (neuvoton-content/enquiry) */
.wp-block-neuvoton-content-enquiry {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 18px;
	padding: clamp(22px, 3vw, 36px);
	border-radius: var(--nv-radius-lg);
	background: var(--nv-surface);
	border: 1px solid var(--nv-line);
}

.wp-block-neuvoton-content-enquiry__field {
	display: grid;
	gap: 6px;
	margin: 0;
}

.wp-block-neuvoton-content-enquiry__field:has(textarea),
.wp-block-neuvoton-content-enquiry__privacy,
.wp-block-neuvoton-content-enquiry__notice,
.wp-block-neuvoton-content-enquiry > .wp-block-buttons {
	grid-column: 1 / -1;
}

.wp-block-neuvoton-content-enquiry label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--nv-heading);
}

.wp-block-neuvoton-content-enquiry input,
.wp-block-neuvoton-content-enquiry textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 1px solid var(--nv-line-strong);
	border-radius: var(--nv-radius-sm);
	background: var(--nv-bg);
	color: var(--nv-heading);
	font: inherit;
	font-size: 1rem;
	transition: border-color 0.3s, box-shadow 0.3s;
}

.wp-block-neuvoton-content-enquiry textarea {
	min-height: 140px;
	resize: vertical;
}

.wp-block-neuvoton-content-enquiry input:focus,
.wp-block-neuvoton-content-enquiry textarea:focus {
	border-color: var(--nv-copper-btn);
	outline: none;
	box-shadow: 0 0 0 3px var(--nv-copper-tint);
}

.wp-block-neuvoton-content-enquiry__trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.wp-block-neuvoton-content-enquiry__privacy {
	margin: 0;
	font-size: 0.875rem;
	color: var(--nv-muted);
}

.wp-block-neuvoton-content-enquiry__privacy a {
	color: inherit;
}

.wp-block-neuvoton-content-enquiry__notice {
	margin: 0;
	padding: 14px 18px;
	border-radius: var(--nv-radius-sm);
	font-weight: 600;
}

.wp-block-neuvoton-content-enquiry__notice.is-success {
	background: var(--nv-copper-tint);
	color: var(--nv-heading);
}

.wp-block-neuvoton-content-enquiry__notice.is-error {
	background: var(--nv-ink);
	color: var(--nv-on-dark);
}

@media (max-width: 560px) {
	.wp-block-neuvoton-content-enquiry {
		grid-template-columns: 1fr;
	}
}

/* Phone contact bar (parts/mobile-contact.html): phones and tablets only. */
.wp-block-group.is-style-mobile-bar {
	display: none;
}

@media (max-width: 1023px) {
	.wp-block-group.is-style-mobile-bar {
		position: fixed;
		right: max(10px, env(safe-area-inset-right));
		bottom: max(10px, env(safe-area-inset-bottom));
		left: max(10px, env(safe-area-inset-left));
		z-index: 90;
		display: block;
		max-width: 520px;
		margin-inline: auto;
		padding: 6px;
		border: 1px solid rgb(244 241 236 / 16%);
		border-radius: 999px;
		background: rgb(28 24 20 / 88%);
		-webkit-backdrop-filter: blur(14px);
		backdrop-filter: blur(14px);
		box-shadow: 0 10px 30px rgb(20 17 14 / 28%);
		transition: transform 0.4s var(--nv-ease-out), opacity 0.3s;
	}

	.is-style-mobile-bar > .wp-block-buttons {
		display: grid;
		grid-template-columns: 1fr 1.4fr;
		gap: 6px;
	}

	.is-style-mobile-bar .wp-block-button__link {
		justify-content: flex-start;
		width: 100%;
		min-height: 48px;
	}

	body.nv-menu-open .wp-block-group.is-style-mobile-bar,
	body:has(.wp-block-neuvoton-content-enquiry :focus) .wp-block-group.is-style-mobile-bar {
		opacity: 0;
		transform: translateY(140%);
		pointer-events: none;
	}

	/* The footer's last line stays readable above the bar. */
	.wp-site-blocks {
		padding-bottom: 76px;
	}
}

/* References (pattern) */
.wp-block-group.is-style-references {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.wp-block-group.is-style-reference-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: clamp(22px, 3vw, 32px);
	border-radius: var(--nv-radius-lg);
	background: var(--nv-surface);
	border: 1px solid var(--nv-line);
}

.is-style-reference-card h3 {
	font-size: 1.75rem;
	line-height: 1.1;
	font-weight: 600;
}

.is-style-reference-card > p:not(.is-style-kicker, .is-style-reference-result) {
	color: var(--nv-muted);
}

p.is-style-reference-result {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--nv-line);
	font-weight: 600;
	color: var(--nv-heading);
}

@media (max-width: 900px) {
	.wp-block-group.is-style-references {
		grid-template-columns: 1fr;
	}
}
