/*
 * Wyreloom theme styles
 * Tokens come from theme.json (--wp--preset--*). This file adds context variables,
 * components and responsive behaviour. Brand rules applied:
 *  - Loom Ink grounds, Bone type on dark, Bone/Chalk reading sections.
 *  - Filament (#E9B356) is used for one element per view (hero weft line or the CTA band button).
 *  - Warp for connectors, nodes and labels on dark; Warp Deep / Filament Deep for text on light.
 *  - Borders over shadows. Radius 6 / 8 / 12 / 16. 8 pt spacing.
 */

/* ---------- 1. Context variables ---------- */
:root {
	--wl-ink: var(--wp--preset--color--loom-ink, #0B0C0E);
	--wl-graphite: var(--wp--preset--color--graphite-900, #15171B);
	--wl-carbon: var(--wp--preset--color--carbon-800, #1E2126);
	--wl-slate: var(--wp--preset--color--slate-700, #2B2F36);
	--wl-steel: var(--wp--preset--color--steel-500, #5A606B);
	--wl-fog: var(--wp--preset--color--fog-400, #9AA0AA);
	--wl-mist: var(--wp--preset--color--mist-200, #D7DAE0);
	--wl-bone: var(--wp--preset--color--bone, #F1EFEA);
	--wl-chalk: var(--wp--preset--color--chalk-50, #FBFAF7);
	--wl-filament: var(--wp--preset--color--filament, #E9B356);
	--wl-filament-deep: var(--wp--preset--color--filament-deep, #8A5A0C);
	--wl-warp: var(--wp--preset--color--warp, #7CCBBE);
	--wl-warp-deep: var(--wp--preset--color--warp-deep, #1F6F64);
	--wl-error: #B42318;
	--wl-error-dark: #F06A5F;
	--wl-success: #1E7A4C;
	--wl-success-dark: #5BBE8A;
	--wl-mono: var(--wp--preset--font-family--jetbrains-mono, Menlo, Consolas, monospace);
	--wl-radius-s: 6px;
	--wl-radius-m: 8px;
	--wl-radius-l: 12px;
	--wl-section-space: clamp(4rem, 9vw, 8rem);
	--wl-gutter: clamp(1.25rem, 4vw, 3rem);
	--wl-header-h: 5rem;

	/* light context (default) */
	--wl-bg: var(--wl-bone);
	--wl-fg: var(--wl-ink);
	--wl-muted: var(--wl-steel);
	--wl-label: var(--wl-warp-deep);
	--wl-rule: var(--wl-mist);
	--wl-rule-strong: var(--wl-steel);
	--wl-link: var(--wl-filament-deep);
	--wl-card: var(--wl-chalk);
	--wl-node: var(--wl-warp-deep);
	--wl-focus: var(--wl-warp-deep);
	--wl-btn-bg: var(--wl-ink);
	--wl-btn-fg: var(--wl-bone);
	--wl-cta-bg: var(--wl-ink);
	--wl-cta-fg: var(--wl-bone);
	--wl-field-bg: #FFFFFF;
	--wl-error-fg: var(--wl-error);
	--wl-success-fg: var(--wl-success);
}

.wl-dark,
.is-style-wl-ink,
.wl-section--ink,
.wl-hero,
.wl-page-hero,
.wl-header,
.wl-footer,
.wl-cta-band,
.editor-styles-wrapper .is-style-wl-ink {
	--wl-bg: var(--wl-ink);
	--wl-fg: var(--wl-bone);
	--wl-muted: var(--wl-fog);
	--wl-label: var(--wl-warp);
	--wl-rule: var(--wl-slate);
	--wl-rule-strong: var(--wl-steel);
	--wl-link: var(--wl-warp);
	--wl-card: var(--wl-graphite);
	--wl-node: var(--wl-warp);
	--wl-focus: var(--wl-warp);
	--wl-btn-bg: var(--wl-bone);
	--wl-btn-fg: var(--wl-ink);
	--wl-cta-bg: var(--wl-filament);
	--wl-cta-fg: var(--wl-ink);
	--wl-field-bg: var(--wl-graphite);
	--wl-error-fg: var(--wl-error-dark);
	--wl-success-fg: var(--wl-success-dark);
	background-color: var(--wl-bg);
	color: var(--wl-fg);
}

.wl-section--chalk,
.is-style-wl-chalk {
	--wl-bg: var(--wl-chalk);
	--wl-card: #FFFFFF;
	background-color: var(--wl-bg);
	color: var(--wl-fg);
}

/* ---------- 2. Base ---------- */
html {
	scroll-padding-top: 1.5rem;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}

::selection {
	background: var(--wl-warp);
	color: var(--wl-ink);
}

a {
	color: var(--wl-link);
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

a:hover {
	text-decoration-thickness: 2px;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wl-focus);
	outline-offset: 3px;
	border-radius: 2px;
}

.skip-link.screen-reader-text:focus {
	background: var(--wl-bone);
	color: var(--wl-ink);
	clip-path: none;
	z-index: 100000;
	padding: 0.75rem 1rem;
	font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--wl-fg);
	text-wrap: balance;
	hyphens: manual;
}

p, li, dd {
	text-wrap: pretty;
}

/* German compounds: hyphenate body copy, never headlines */
:lang(de) .entry-content p,
:lang(de) .wp-block-post-content p,
:lang(de) .wl-card p,
:lang(de) .wl-card li {
	hyphens: auto;
	-webkit-hyphens: auto;
}

img, svg {
	max-width: 100%;
	height: auto;
}

hr.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--wl-rule);
	opacity: 1;
	margin-block: 0;
}

/* ---------- 3. Typography helpers ---------- */
.wl-label,
.is-style-wl-label {
	font-family: var(--wl-mono);
	font-size: 0.75rem !important;
	line-height: 1.333;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wl-label);
	font-weight: 400;
}

.wl-lead,
.is-style-wl-lead {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.556;
	color: var(--wl-fg);
	max-width: 40rem;
}

.wl-muted {
	color: var(--wl-muted);
}

.wl-display {
	/* sized so the longest German word ("Automatisierung") fits next to the hero art */
	font-size: clamp(2.375rem, 6.4vw, 5.5rem) !important;
	line-height: 1 !important;
	letter-spacing: -0.045em !important;
	font-weight: 500;
	max-width: 15ch;
}

.wl-mono,
.wl-figure {
	font-family: var(--wl-mono);
	font-variant-numeric: tabular-nums;
}

.wl-small {
	font-size: var(--wp--preset--font-size--caption);
	line-height: 1.5714;
}

/* ---------- 4. Sections and layout ---------- */
.wl-section,
.is-style-wl-section {
	padding-block: var(--wl-section-space);
}

.wl-section--tight {
	padding-block: clamp(3rem, 6vw, 5rem);
}

/* Every section has a constrained outer group (80rem) and a flow inner group,
   so spacing inside sections is controlled here, not by the core block gap. */
.wl-section .wl-section__inner > *,
.wl-cta-band .wl-section__inner > * {
	margin-block: 0;
}

.wl-section .wl-section__inner > * + *,
.wl-stack.wl-stack > * + * {
	margin-block-start: clamp(2rem, 4vw, 3.5rem);
}

/* Full-width sections sit flush against each other. */
main.wl-main,
.wl-main .wp-block-post-content > .alignfull,
.wl-main .wp-block-post-content > .alignfull + .alignfull {
	margin-block: 0;
}

.wp-site-blocks > main {
	margin-block-start: 0;
}

.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* Section heading: label column + heading column (asymmetric 4/8) */
.wl-section-head.wp-block-columns {
	gap: clamp(1rem, 4vw, 4rem);
	align-items: flex-start;
	margin-block-end: 0;
}

.wl-section-head .wl-label {
	padding-block-start: 0.75rem;
	border-top: 1px solid var(--wl-rule-strong);
	display: inline-block;
	min-width: 8rem;
}

.wl-section-head h2 {
	margin-block: 0 1rem;
	max-width: 22ch;
}

.wl-section-head .wl-lead {
	color: var(--wl-muted);
}

/* ---------- 5. Header ---------- */
.wl-header {
	position: relative;
	z-index: 50;
	border-bottom: 1px solid var(--wl-slate);
}

.wl-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--wl-header-h);
	max-width: calc(var(--wp--style--global--wide-size, 80rem) + 2 * var(--wl-gutter));
	margin-inline: auto;
	padding-inline: var(--wl-gutter);
}

.wl-header .wp-block-site-logo,
.wl-footer .wp-block-site-logo {
	flex: 0 0 auto;
	line-height: 0;
}

.wl-header .wp-block-site-logo img,
.wl-header .wl-logo img {
	width: auto;
	height: 3.5rem; /* logo file contains its clear-space zone */
	max-width: none;
}

.wl-logo {
	display: inline-block;
	line-height: 0;
	border-radius: 2px;
}

/* ---------- 6. Navigation ---------- */
.wl-nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	font-size: 0.9375rem;
}

.wl-nav__toggle {
	display: none;
}

.wl-nav__panel {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.wl-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.25rem 1.75rem;
}

.wl-menu a {
	color: var(--wl-fg);
	text-decoration: none;
	padding-block: 0.5rem;
	display: inline-block;
	border-bottom: 1px solid transparent;
}

.wl-menu a:hover {
	border-bottom-color: var(--wl-rule-strong);
}

.wl-menu .current-menu-item > a,
.wl-menu .current-page-ancestor > a,
.wl-menu .current_page_parent > a,
.wl-menu a[aria-current="page"] {
	border-bottom-color: var(--wl-warp);
}

/* Inquiry CTA rendered from a menu item with the class "wl-menu-cta" */
.wl-menu .wl-menu-cta > a {
	background: var(--wl-btn-bg);
	color: var(--wl-btn-fg);
	border: 1px solid var(--wl-btn-bg);
	border-radius: var(--wl-radius-s);
	padding: 0.625rem 1rem;
	font-weight: 600;
	line-height: 1.25;
}

.wl-menu .wl-menu-cta > a:hover {
	background: transparent;
	color: var(--wl-fg);
	border-color: var(--wl-fg);
}

.wl-menu .wl-menu-cta.current-menu-item > a {
	border-color: var(--wl-warp);
}

/* Language switcher */
.wl-lang {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--wl-mono);
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wl-lang li + li::before {
	content: "/";
	color: var(--wl-muted);
	margin-inline-end: 0.25rem;
}

.wl-lang a,
.wl-lang span[aria-current] {
	color: var(--wl-fg);
	text-decoration: none;
	padding: 0.5rem 0.25rem;
	display: inline-block;
}

.wl-lang span[aria-current] {
	color: var(--wl-label);
}

.wl-lang a:hover {
	text-decoration: underline;
}

.wl-lang a.is-untranslated {
	text-decoration: underline dotted;
	text-underline-offset: 0.3em;
}

@media (max-width: 71.99rem) {
	.wl-js .wl-nav__toggle {
		display: inline-flex;
		align-items: center;
		gap: 0.625rem;
		background: transparent;
		color: var(--wl-fg);
		border: 1px solid var(--wl-rule-strong);
		border-radius: var(--wl-radius-s);
		padding: 0.625rem 0.875rem;
		font: inherit;
		font-size: 0.9375rem;
		cursor: pointer;
		min-height: 2.75rem;
		white-space: nowrap;
	}

	.wl-nav__toggle-icon {
		display: inline-block;
		width: 1.125rem;
		height: 0.75rem;
		position: relative;
		border-top: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
	}

	.wl-nav__toggle-icon::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: 50%;
		border-top: 1.5px solid currentColor;
		transform: translateY(-50%);
	}

	.wl-nav__toggle[aria-expanded="true"] .wl-nav__toggle-icon {
		border-color: transparent;
	}

	.wl-nav__toggle[aria-expanded="true"] .wl-nav__toggle-icon::after {
		transform: rotate(45deg);
		box-shadow: none;
	}

	.wl-nav__toggle[aria-expanded="true"] .wl-nav__toggle-icon::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: 50%;
		border-top: 1.5px solid currentColor;
		transform: rotate(-45deg);
	}

	.wl-js .wl-nav__panel {
		display: none;
	}

	.wl-js .wl-nav.is-open .wl-nav__panel {
		display: flex;
	}

	.wl-nav__panel {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 1.5rem;
		background: var(--wl-ink);
		border-bottom: 1px solid var(--wl-slate);
		padding: 1.5rem var(--wl-gutter) 2rem;
		max-height: calc(100vh - var(--wl-header-h));
		overflow-y: auto;
	}

	/* Without JavaScript the panel stays in normal flow below the bar */
	html:not(.wl-js) .wl-nav__panel {
		position: static;
		padding-inline: 0;
		border: 0;
	}

	html:not(.wl-js) .wl-header__bar {
		flex-wrap: wrap;
	}

	.wl-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.wl-menu > li {
		border-bottom: 1px solid var(--wl-slate);
	}

	.wl-menu a {
		display: block;
		padding-block: 0.875rem;
		font-size: 1.125rem;
		border-bottom: 0;
	}

	.wl-menu .current-menu-item > a,
	.wl-menu a[aria-current="page"] {
		color: var(--wl-warp);
	}

	.wl-menu .wl-menu-cta {
		border-bottom: 0;
		margin-top: 1rem;
	}

	.wl-menu .wl-menu-cta > a {
		text-align: center;
		padding: 0.875rem 1rem;
	}

	.wl-header .wp-block-site-logo img,
	.wl-header .wl-logo img {
		height: 3rem;
	}
}

/* ---------- 7. Buttons ---------- */
.wp-block-buttons {
	gap: 0.75rem;
}

.wp-element-button,
.wp-block-button__link {
	background-color: var(--wl-btn-bg);
	color: var(--wl-btn-fg);
	border: 1px solid var(--wl-btn-bg);
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	min-height: 2.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
	background-color: transparent;
	color: var(--wl-fg);
	border-color: var(--wl-fg);
}

.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline .wp-element-button {
	background: transparent;
	color: var(--wl-fg);
	border: 1px solid var(--wl-rule-strong);
	padding: 0.875rem 1.375rem;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--wl-fg);
}

/* Filament button: the single Filament element of its view.
   On light grounds Filament has only 1.6:1, so the style falls back to Ink there. */
.wp-block-button.is-style-wl-filament > .wp-block-button__link {
	background: var(--wl-cta-bg);
	border-color: var(--wl-cta-bg);
	color: var(--wl-cta-fg);
}

.wp-block-button.is-style-wl-filament > .wp-block-button__link:hover {
	background: transparent;
	color: var(--wl-fg);
	border-color: var(--wl-cta-bg);
}

.wl-text-link a,
a.wl-text-link {
	font-weight: 600;
	color: var(--wl-fg);
	text-decoration: none;
	border-bottom: 1px solid var(--wl-rule-strong);
	padding-bottom: 0.125rem;
}

.wl-text-link a::after,
a.wl-text-link::after {
	content: " →";
}

.wl-text-link a:hover,
a.wl-text-link:hover {
	border-bottom-color: var(--wl-fg);
}

/* ---------- 8. Hero ---------- */
.wl-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding-block: clamp(4.5rem, 11vw, 9rem) clamp(4rem, 9vw, 7rem);
}

.wl-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	bottom: 0;
	right: max(-2rem, calc((100vw - 80rem) / 2 - 2rem));
	width: min(34rem, 36vw);
	background: url("../img/hero-weave.svg") no-repeat right center / contain;
	opacity: 0.95;
	pointer-events: none;
}

/* Below 72rem the weave would cross the text: the hero is text only. */
@media (max-width: 71.99rem) {
	.wl-hero::before {
		display: none;
	}
}

@media (min-width: 72rem) {
	.wl-hero .wl-hero__inner > :not(.wl-hero__facts) {
		max-width: min(46rem, 52vw);
	}
}

.wl-hero .wl-hero__inner > * {
	margin-block: 0;
	max-width: 46rem;
}

.wl-hero .wl-hero__inner > .wl-hero__facts {
	max-width: 52rem;
}

.wl-hero .wl-hero__inner > * + * {
	margin-block-start: 1.5rem;
}

.wl-hero .wl-hero__inner > .wl-display {
	margin-block-start: 1.25rem;
}

.wl-hero .wl-lead {
	color: var(--wl-fg);
	opacity: 0.92;
}

.wl-hero .wl-hero__inner > .wl-lead {
	margin-block-start: 1.75rem;
}

.wl-hero .wl-hero__inner > .wp-block-buttons {
	margin-block-start: 2.5rem;
}

.wl-hero .wl-hero__inner > ul.wl-hero__facts {
	margin-block-start: clamp(3.5rem, 7vw, 5.5rem);
}

.wl-hero__facts.wp-block-list,
ul.wl-hero__facts {
	list-style: none;
	padding: 1.5rem 0 0;
	border-top: 1px solid var(--wl-slate);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem 2rem;
	max-width: 52rem;
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wl-muted);
}

.wl-hero__facts li {
	padding-inline-start: 1rem;
	position: relative;
}

.wl-hero__facts li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	background: var(--wl-warp);
}

@media (max-width: 47.99rem) {
	.wl-hero__facts.wp-block-list,
	ul.wl-hero__facts {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.wl-hero__inner {
		animation: wl-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}
}

@keyframes wl-rise {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

/* Inner page hero */
.wl-page-hero {
	padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 4.5rem);
	position: relative;
	overflow: hidden;
	isolation: isolate;
	border-bottom: 1px solid var(--wl-slate);
}

.wl-page-hero::after {
	/* Warp Field on the right (brand pack 04_PATTERNS), no Filament here */
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	bottom: 0;
	right: 0;
	width: min(28rem, 40vw);
	background: url("../img/warp-field-tile-dark.svg") repeat left top / 16px 16px; /* official Warp Field tile */
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
	mask-image: linear-gradient(90deg, transparent, #000 60%);
	opacity: 0.8;
	pointer-events: none;
}

.wl-page-hero .wl-page-hero__inner > * {
	margin-block: 0;
}

.wl-page-hero .wl-page-hero__inner > * + * {
	margin-block-start: 1.25rem;
}

.wl-page-hero h1,
.wl-page-hero .wp-block-post-title {
	/* long German compounds must fit on small phones without breaking */
	font-size: min(var(--wp--preset--font-size--headline-xl), 8.6vw);
	max-width: 20ch;
	margin-block: 0.75rem 0;
}

.wl-page-hero .wl-lead,
.wl-page-hero .wp-block-post-excerpt__excerpt {
	color: var(--wl-fg);
	opacity: 0.92;
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.556;
	max-width: 40rem;
}

.wl-page-hero .wp-block-post-excerpt {
	margin-block-start: 1.5rem;
}

.wl-page-hero .wp-block-buttons {
	margin-block-start: 2rem;
}

@media (max-width: 47.99rem) {
	.wl-page-hero::after {
		width: 40vw;
		opacity: 0.5;
	}
}

/* ---------- 9. Lead services ledger ---------- */
.wl-ledger {
	border-top: 1px solid var(--wl-rule-strong);
}

.wl-ledger__row.wp-block-columns {
	position: relative;
	margin: 0;
	padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
	border-bottom: 1px solid var(--wl-rule);
	gap: clamp(1rem, 3vw, 3rem);
	align-items: flex-start;
	transition: background-color 0.15s ease;
}

.wl-ledger__row:hover {
	background-color: color-mix(in srgb, var(--wl-card) 70%, transparent);
}

.wl-ledger__row:focus-within {
	background-color: var(--wl-card);
}

.wl-ledger__index {
	font-family: var(--wl-mono);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	color: var(--wl-label);
	margin-block-end: 0.75rem !important;
}

.wl-ledger__title {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem) !important;
	letter-spacing: -0.02em;
	margin: 0;
}

.wl-ledger__title a {
	color: var(--wl-fg);
	text-decoration: none;
}

/* whole row is clickable via the title link */
.wl-ledger__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.wl-ledger__title a:focus-visible {
	outline: none;
}

.wl-ledger__title a:focus-visible::after {
	outline: 2px solid var(--wl-focus);
	outline-offset: -2px;
}

.wl-ledger__title::after {
	content: "→";
	font-family: var(--wl-mono);
	font-size: 1.125rem;
	margin-left: 0.75rem;
	color: var(--wl-label);
	display: inline-block;
	transition: transform 0.15s ease;
}

.wl-ledger__row:hover .wl-ledger__title::after {
	transform: translateX(4px);
}

.wl-ledger__row .wl-arrow {
	font-family: var(--wl-mono);
	color: var(--wl-fg);
	font-size: 1.25rem;
	text-align: right;
	transition: transform 0.15s ease;
}

.wl-ledger__row:hover .wl-arrow {
	transform: translateX(4px);
}

.wl-ledger__row p:not(.wl-ledger__index):not(.wl-arrow) {
	color: var(--wl-muted);
}

/* ---------- 10. Lists ---------- */
ul.wl-ticks,
.is-style-wl-ticks {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

ul.wl-ticks li,
.is-style-wl-ticks li {
	position: relative;
	padding-left: 1.25rem;
	margin-block: 0.375rem;
	font-size: var(--wp--preset--font-size--caption);
	line-height: 1.5714;
}

ul.wl-ticks li::before,
.is-style-wl-ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	border: 1.5px solid var(--wl-node);
}

ul.wl-ticks--large li {
	font-size: 1rem;
	line-height: 1.625;
	margin-block: 0.625rem;
}

/* ---------- 11. Connected capabilities (thread) ---------- */
.wl-thread.wp-block-columns {
	position: relative;
	gap: clamp(1.5rem, 3vw, 3rem);
	padding-top: 2.5rem;
	margin-inline: 0;
	margin-bottom: 0;
}

.wl-thread.wp-block-columns::before {
	content: "";
	position: absolute;
	top: 0.4375rem;
	left: 0;
	right: 0;
	border-top: 1.5px solid var(--wl-node);
}

.wl-thread > .wp-block-column {
	position: relative;
}

.wl-thread > .wp-block-column::before {
	content: "";
	position: absolute;
	top: -2.5rem;
	left: 0;
	width: 14px;
	height: 14px;
	background: var(--wl-bg);
	border: 1.5px solid var(--wl-node);
	transform: translateY(1px);
}

.wl-thread h3 {
	margin-block: 0 0.75rem;
}

.wl-thread h3 a {
	color: var(--wl-fg);
	text-decoration: none;
}

.wl-thread h3 a::after {
	content: " →";
	font-family: var(--wl-mono);
	font-size: 0.8em;
}

.wl-thread h3 a:hover {
	text-decoration: underline;
}

.wl-thread p {
	color: var(--wl-muted);
}

.wl-thread ul.wl-ticks {
	margin-top: 1rem;
}

@media (max-width: 781px) {
	.wl-thread.wp-block-columns {
		padding-top: 0;
		padding-left: 2rem;
	}

	.wl-thread.wp-block-columns::before {
		top: 0;
		bottom: 0;
		left: 0.4375rem;
		right: auto;
		border-top: 0;
		border-left: 1.5px solid var(--wl-node);
	}

	.wl-thread > .wp-block-column::before {
		top: 0.3rem;
		left: -2rem;
		transform: translateX(1px);
	}
}

.wl-aside-note {
	border-top: 1px solid var(--wl-rule);
	padding-top: 1.5rem;
	color: var(--wl-muted);
	font-size: var(--wp--preset--font-size--caption);
}

/* ---------- 12. Cards ---------- */
.wl-cards.wp-block-columns {
	gap: clamp(1rem, 2vw, 1.5rem);
	margin-inline: 0;
	margin-bottom: 0;
}

.wl-card {
	background: var(--wl-card);
	border: 1px solid var(--wl-rule);
	border-radius: var(--wl-radius-l);
	padding: clamp(1.5rem, 2.5vw, 2rem);
	position: relative;
}

.wl-card > * + * {
	margin-block-start: 0.875rem;
}

.wl-card h3 {
	margin-block: 0;
	font-size: 1.375rem;
}

.wl-card h3 a {
	color: var(--wl-fg);
	text-decoration: none;
}

.wl-card--link h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--wl-radius-l);
}

.wl-card--link:hover {
	border-color: var(--wl-rule-strong);
}

.wl-card p {
	color: var(--wl-muted);
}

.wl-card .wl-label {
	color: var(--wl-label);
}

/* Illustrative examples: dashed border + explicit badge */
.wl-card--example {
	border-style: dashed;
	border-color: var(--wl-rule-strong);
	background: transparent;
}

.wl-badge {
	display: inline-block;
	font-family: var(--wl-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1;
	padding: 0.4375rem 0.5rem;
	border: 1px solid var(--wl-rule-strong);
	border-radius: 4px;
	color: var(--wl-fg);
}

/* Principles grid */
.wl-principles.wp-block-columns {
	gap: 0 clamp(1.5rem, 4vw, 4rem);
	margin-inline: 0;
	margin-bottom: 0;
}

.wl-principle {
	border-top: 1px solid var(--wl-rule-strong);
	padding-block: 1.5rem 2rem;
}

.wl-principle h3 {
	font-size: 1.25rem;
	margin-block: 0 0.625rem;
	letter-spacing: -0.01em;
}

.wl-principle p {
	color: var(--wl-muted);
}

/* ---------- 13. Process steps ---------- */
ol.wl-steps,
.wl-steps.wp-block-list {
	list-style: none;
	counter-reset: wl-step;
	margin-inline: 0;
	margin-bottom: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	border-top: 1.5px solid var(--wl-node);
}

ol.wl-steps > li {
	counter-increment: wl-step;
	position: relative;
	padding: 2.25rem clamp(1rem, 2vw, 2rem) 0 0;
	color: var(--wl-muted);
	font-size: var(--wp--preset--font-size--caption);
	line-height: 1.5714;
}

ol.wl-steps > li::before {
	content: counter(wl-step, decimal-leading-zero);
	position: absolute;
	top: -0.6875rem;
	left: 0;
	font-family: var(--wl-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	line-height: 1;
	padding: 0.25rem 0.5rem 0.25rem 0;
	background: var(--wl-bg);
	color: var(--wl-label);
}

ol.wl-steps > li strong {
	display: block;
	color: var(--wl-fg);
	font-size: 1.25rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.333;
	margin-bottom: 0.5rem;
}

@media (max-width: 63.99rem) {
	ol.wl-steps.wp-block-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 2rem;
		border-top: 0;
	}

	ol.wl-steps > li {
		border-top: 1.5px solid var(--wl-node);
	}
}

@media (max-width: 35.99rem) {
	ol.wl-steps.wp-block-list {
		grid-template-columns: 1fr;
	}
}

/* Example flow (AI example) */
ol.wl-flow {
	list-style: none;
	counter-reset: wl-flow;
	margin-inline: 0;
	margin-bottom: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
}

ol.wl-flow > li {
	counter-increment: wl-flow;
	border: 1px solid var(--wl-rule-strong);
	border-radius: var(--wl-radius-m);
	padding: 1.25rem;
	position: relative;
	font-size: var(--wp--preset--font-size--caption);
	line-height: 1.5714;
	color: var(--wl-muted);
	background: var(--wl-card);
}

ol.wl-flow > li::before {
	content: counter(wl-flow, decimal-leading-zero);
	display: block;
	font-family: var(--wl-mono);
	font-size: 0.75rem;
	color: var(--wl-label);
	margin-bottom: 0.75rem;
}

ol.wl-flow > li strong {
	display: block;
	color: var(--wl-fg);
	font-weight: 500;
	font-size: 1rem;
	margin-bottom: 0.375rem;
}

ol.wl-flow > li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 50%;
	right: calc(-0.75rem - 1px);
	width: 0.75rem;
	border-top: 1.5px solid var(--wl-node);
}

@media (max-width: 63.99rem) {
	ol.wl-flow {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	ol.wl-flow > li:nth-child(2)::after {
		display: none;
	}
}

@media (max-width: 35.99rem) {
	ol.wl-flow {
		grid-template-columns: 1fr;
	}

	ol.wl-flow > li:not(:last-child)::after {
		display: block;
		top: auto;
		bottom: calc(-0.75rem - 1px);
		left: 1.5rem;
		right: auto;
		width: 0;
		height: 0.75rem;
		border-top: 0;
		border-left: 1.5px solid var(--wl-node);
	}
}

/* ---------- 14. FAQ (core/details) ---------- */
.wl-faq .wp-block-details,
.wp-block-details.is-style-wl-faq {
	border-bottom: 1px solid var(--wl-rule-strong);
	padding-block: 0;
	margin: 0;
}

.wl-faq .wp-block-details:first-child {
	border-top: 1px solid var(--wl-rule-strong);
}

.wl-faq .wp-block-details summary {
	cursor: pointer;
	list-style: none;
	padding: 1.25rem 2.5rem 1.25rem 0;
	position: relative;
	font-weight: 500;
	font-size: 1.125rem;
	line-height: 1.4;
}

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

.wl-faq .wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 1.125rem;
	font-family: var(--wl-mono);
	font-size: 1.25rem;
	color: var(--wl-label);
}

.wl-faq .wp-block-details[open] summary::after {
	content: "–";
}

.wl-faq .wp-block-details > :not(summary) {
	color: var(--wl-muted);
	padding-bottom: 1.25rem;
	max-width: 46rem;
	margin-block-start: 0;
}

/* ---------- 15. CTA band ---------- */
.wl-cta-band {
	padding-block: clamp(4rem, 8vw, 6.5rem);
	border-top: 1px solid var(--wl-slate);
}

.wl-cta-band .wl-section__inner > * + * {
	margin-block-start: 1.25rem;
}

.wl-cta-band h2 {
	max-width: 18ch;
	font-size: var(--wp--preset--font-size--headline-xl);
	line-height: 1.0625;
	letter-spacing: -0.035em;
}

.wl-cta-band .wl-lead {
	color: var(--wl-muted);
}

.wl-cta-band .wl-section__inner > .wp-block-buttons {
	margin-block-start: 2rem;
}

.wl-cta-band .wl-weft {
	display: block;
	height: 2px;
	width: min(100%, 28rem);
	margin-block-start: 2.5rem;
	background: var(--wl-slate);
}

/* ---------- 16. Separator style: crossing divider ---------- */
hr.is-style-wl-crossing,
.wp-block-separator.is-style-wl-crossing:not(.is-style-wide):not(.is-style-dots) {
	border: 0 !important;
	height: 1.25rem;
	width: 100%;
	max-width: none;
	background:
		linear-gradient(var(--wl-rule-strong), var(--wl-rule-strong)) left center / 100% 1px no-repeat,
		repeating-linear-gradient(90deg, var(--wl-node) 0 1.5px, transparent 1.5px 8px) left center / 24px 100% no-repeat;
	opacity: 1;
}

/* ---------- 17. Content prose ---------- */
.wl-prose > * + *,
.wl-prose .wp-block-post-content > * + * {
	margin-block-start: 1.25rem;
}

.wl-prose h2 {
	margin-block-start: 3rem;
	font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2rem);
}

.wl-prose h3 {
	margin-block-start: 2rem;
}

.wl-prose ul,
.wl-prose ol {
	padding-left: 1.25rem;
}

.wl-prose li + li {
	margin-top: 0.375rem;
}

.wl-prose .wp-block-image img {
	border-radius: var(--wl-radius-m);
}

.wl-draft-note {
	border: 1px dashed var(--wl-error);
	border-radius: var(--wl-radius-m);
	padding: 1rem 1.25rem;
	color: var(--wl-error);
	background: #FFF;
	font-size: var(--wp--preset--font-size--caption);
}

/* ---------- 18. Post and project lists ---------- */
.wl-post-list .wp-block-post-template {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--wl-rule-strong);
}

.wl-post-list .wp-block-post {
	border-bottom: 1px solid var(--wl-rule);
	padding-block: 1.75rem;
	margin: 0;
	display: grid;
	grid-template-columns: 10rem minmax(0, 1fr);
	gap: 0.5rem 2rem;
	position: relative;
}

.wl-post-list .wp-block-post > * {
	margin: 0;
	grid-column: 2;
}

.wl-post-list .wp-block-post-date,
.wl-post-list .wl-post-list__meta {
	grid-column: 1;
	grid-row: 1 / span 3;
	font-family: var(--wl-mono);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	color: var(--wl-label);
	padding-top: 0.5rem;
}

.wl-post-list .wp-block-post-title {
	font-size: 1.5rem;
	letter-spacing: -0.01em;
	line-height: 1.333;
}

.wl-post-list .wp-block-post-title a {
	color: var(--wl-fg);
	text-decoration: none;
}

.wl-post-list .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.wl-post-list .wp-block-post-title a:hover {
	text-decoration: underline;
}

.wl-post-list .wp-block-post-excerpt__excerpt {
	color: var(--wl-muted);
	margin: 0;
}

.wl-post-list .wp-block-post-terms {
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wl-muted);
	position: relative;
	z-index: 1;
}

@media (max-width: 47.99rem) {
	.wl-post-list .wp-block-post {
		grid-template-columns: 1fr;
	}

	.wl-post-list .wp-block-post > *,
	.wl-post-list .wp-block-post-date {
		grid-column: 1;
		grid-row: auto;
	}
}

.wl-project-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	gap: 1.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.wl-project-grid .wp-block-post {
	background: var(--wl-card);
	border: 1px solid var(--wl-rule);
	border-radius: var(--wl-radius-l);
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
}

.wl-project-grid .wp-block-post > :not(.wp-block-post-featured-image) {
	margin: 0;
	padding-inline: 1.5rem;
}

.wl-project-grid .wp-block-post > :last-child {
	padding-bottom: 1.5rem;
}

.wl-project-grid .wp-block-post-featured-image {
	margin: 0 0 1.25rem;
	aspect-ratio: 16 / 10;
	background: var(--wl-mist);
}

.wl-project-grid .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wl-project-grid .wp-block-post-title {
	font-size: 1.375rem;
	margin-block: 0.5rem !important;
}

.wl-project-grid .wp-block-post-title a {
	color: var(--wl-fg);
	text-decoration: none;
}

.wl-project-grid .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.wl-project-grid .wp-block-post-excerpt__excerpt {
	color: var(--wl-muted);
	font-size: var(--wp--preset--font-size--caption);
}

.wl-empty {
	border: 1px dashed var(--wl-rule-strong);
	border-radius: var(--wl-radius-l);
	padding: 2rem;
	color: var(--wl-muted);
	max-width: 46rem;
}

.wp-block-query-pagination {
	margin-top: 2.5rem;
	gap: 1rem;
	font-family: var(--wl-mono);
	font-size: 0.875rem;
}

.wp-block-query-pagination a {
	color: var(--wl-fg);
}

/* Project facts (Wyreloom Core block) */
.wl-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 1rem 2rem;
	margin: 0;
	padding: 1.5rem 0 0;
	border-top: 1px solid var(--wl-rule);
	max-width: 52rem;
}

.wl-facts dt {
	font-family: var(--wl-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wl-label);
	margin-bottom: 0.25rem;
}

.wl-facts dd {
	margin: 0;
	color: var(--wl-fg);
}

/* ---------- 19. Forms (Wyreloom Core contact form) ---------- */
.wl-form {
	display: grid;
	gap: 1.25rem;
	max-width: 40rem;
}

.wl-form__row {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
}

@media (max-width: 47.99rem) {
	.wl-form__row {
		grid-template-columns: 1fr;
	}
}

.wl-field {
	display: grid;
	gap: 0.375rem;
}

.wl-field label {
	font-weight: 600;
	font-size: 1rem;
	color: var(--wl-fg);
}

.wl-field .wl-optional {
	font-weight: 400;
	color: var(--wl-muted);
}

.wl-field input,
.wl-field select,
.wl-field textarea {
	font: inherit;
	color: var(--wl-fg);
	background: var(--wl-field-bg);
	border: 1px solid var(--wl-rule-strong);
	border-radius: var(--wl-radius-s);
	padding: 0.75rem 0.875rem;
	min-height: 2.75rem;
	width: 100%;
	box-sizing: border-box;
}

.wl-field textarea {
	min-height: 10rem;
	resize: vertical;
}

.wl-field select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 1.125rem) 50%, calc(100% - 0.8125rem) 50%;
	background-size: 0.3125rem 0.3125rem;
	background-repeat: no-repeat;
	padding-right: 2.5rem;
}

.wl-field input:hover,
.wl-field select:hover,
.wl-field textarea:hover {
	border-color: var(--wl-fg);
}

.wl-field input:focus-visible,
.wl-field select:focus-visible,
.wl-field textarea:focus-visible {
	outline: 2px solid var(--wl-focus);
	outline-offset: 1px;
	border-color: var(--wl-fg);
}

.wl-field [aria-invalid="true"] {
	border-color: var(--wl-error-fg);
	border-width: 2px;
}

.wl-field__help {
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wl-muted);
}

.wl-field__error {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: var(--wl-error-fg);
	font-weight: 600;
}

.wl-field__error::before {
	content: "!";
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.05rem;
	border-radius: 50%;
	background: var(--wl-error-fg);
	color: #FFFFFF;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1;
}

.wl-form__notice {
	border-radius: var(--wl-radius-l);
	padding: 1.125rem 1.375rem;
	border: 1px solid var(--wl-rule);
	border-left-width: 4px;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--wl-fg);
	background: var(--wl-card);
}

.wl-form__notice > * {
	margin: 0;
}

.wl-form__notice > * + * {
	margin-top: 0.625rem;
}

.wl-form__notice--error {
	margin-bottom: 1.75rem;
	border-left-color: var(--wl-error-fg);
	background: color-mix(in srgb, var(--wl-error-fg) 6%, var(--wl-card));
}

.wl-form__notice--error strong {
	color: var(--wl-error-fg);
}

.wl-form__notice--error a {
	color: var(--wl-fg);
}

.wl-form__notice--success {
	border-left-color: var(--wl-success-fg);
	background: color-mix(in srgb, var(--wl-success-fg) 7%, var(--wl-card));
	padding: clamp(1.5rem, 4vw, 2.25rem);
}

.wl-form__notice-title {
	font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
	font-weight: 500;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.wl-form__notice-title::before {
	content: "✓";
	display: inline-grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	margin-right: 0.625rem;
	border-radius: 50%;
	background: var(--wl-success-fg);
	color: #FFFFFF;
	font-size: 1rem;
	vertical-align: 0.15em;
}

ol.wl-form__next {
	padding-left: 1.25rem;
	display: grid;
	gap: 0.35rem;
	color: var(--wl-muted);
}

.wl-form__notice-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

.wl-form__notice-links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
	color: var(--wl-fg);
}

.wl-form__notice ul {
	margin: 0.5rem 0 0;
	padding-left: 1.25rem;
}

.wl-form__privacy {
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wl-muted);
}

.wl-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Missing business details (visible to editors only) */
.wl-missing {
	display: inline-block;
	font-family: var(--wl-mono);
	font-size: 0.75rem;
	padding: 0.125rem 0.375rem;
	border: 1px dashed var(--wl-error-fg);
	color: var(--wl-error-fg);
	border-radius: 4px;
}

.wl-business {
	font-style: normal;
}

.wl-business > * + * {
	margin-top: 0.25rem;
}

/* ---------- 20. Footer ---------- */
.wl-footer {
	padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
	font-size: 0.9375rem;
}

.wl-footer__grid.wp-block-columns {
	gap: clamp(2rem, 4vw, 4rem);
	margin: 0;
}

.wl-footer .wl-label {
	margin-bottom: 1rem;
}

.wl-footer p {
	color: var(--wl-muted);
}

.wl-footer .wp-block-site-logo img,
.wl-footer .wl-logo img {
	height: 4rem;
	width: auto;
	margin-left: -0.75rem; /* compensate the clear-space zone inside the logo file */
	max-width: none;
}

.wl-footer .wl-menu {
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
}

.wl-footer .wl-menu > li {
	border: 0;
}

.wl-footer .wl-menu a {
	padding-block: 0.3125rem;
	font-size: 0.9375rem;
	color: var(--wl-fg);
}

.wl-footer .wl-menu .wl-menu-cta > a {
	background: transparent;
	color: var(--wl-fg);
	border: 0;
	padding: 0.3125rem 0;
	font-weight: 400;
	text-decoration: underline;
}

.wl-footer .wl-business a {
	color: var(--wl-fg);
}

.wl-footer__bottom {
	margin-top: clamp(3rem, 6vw, 4.5rem) !important;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wl-slate);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wl-muted);
}

.wl-footer__bottom .wl-menu {
	flex-direction: row;
	gap: 0 1.5rem;
}

.wl-footer__bottom .wl-menu a {
	font-size: var(--wp--preset--font-size--caption);
}

.wl-footer__bottom p {
	margin: 0;
}

/* ---------- 21. 404 ---------- */
.wl-404 .wl-display {
	max-width: 12ch;
}

/* ---------- 22. Responsive columns ---------- */
@media (max-width: 781px) {
	.wl-section-head.wp-block-columns,
	.wl-ledger__row.wp-block-columns {
		gap: 0.75rem;
	}

	.wl-ledger__title::after {
	content: "→";
	font-family: var(--wl-mono);
	font-size: 1.125rem;
	margin-left: 0.75rem;
	color: var(--wl-label);
	display: inline-block;
	transition: transform 0.15s ease;
}

.wl-ledger__row:hover .wl-ledger__title::after {
	transform: translateX(4px);
}

.wl-ledger__row .wl-arrow {
		display: none;
	}

	.wl-section-head .wl-label {
		min-width: 0;
	}
}

/* ---------- 23. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- 24. Editor tweaks ---------- */
.editor-styles-wrapper .wl-hero::before {
	right: -4rem;
}

.editor-styles-wrapper .wl-ledger__title a::after,
.editor-styles-wrapper .wl-card--link h3 a::after,
.editor-styles-wrapper .wl-post-list .wp-block-post-title a::after,
.editor-styles-wrapper .wl-project-grid .wp-block-post-title a::after {
	display: none;
}

/* ---------- 25. Contact layout ---------- */
.wl-contact-layout.wp-block-columns {
	align-items: flex-start;
	gap: clamp(2rem, 5vw, 4rem);
	margin-inline: 0;
	margin-bottom: 0;
}

.wl-card h3:not(:first-child) {
	margin-block-start: 2rem;
}

.wl-card .wl-business a {
	color: var(--wl-fg);
}

/* Heading that keeps the outline level but uses the H3 size */
h2.wl-h3,
.wl-card h2.wl-h3 {
	font-size: 1.375rem;
	line-height: 1.333;
	letter-spacing: -0.01em;
	margin-block: 0;
}

.wl-card h2.wl-h3:not(:first-child) {
	margin-block-start: 2rem;
}

/* =====================================================================
   26. Homepage 2.0 – 3D W hero
   ===================================================================== */
.wl-hero-mark {
	position: relative;
	margin: 0;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--wl-ink);
	pointer-events: none;
}

.wl-hero-mark picture,
.wl-hero-mark img,
.wl-hero-mark canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.wl-hero-mark img {
	object-fit: cover;
}

.wl-hero-mark canvas {
	opacity: 0;
	transition: opacity 0.45s ease;
}

.wl-hero-mark.is-live canvas {
	opacity: 1;
}

.wl-hero--mark::before {
	display: none; /* the sculpture replaces the flat weave */
}

.wl-hero--mark .wl-hero__inner > .wl-display {
	font-size: clamp(2.375rem, 5.3vw, 4.75rem) !important;
}

@media (min-width: 48rem) {
	.wl-hero.wl-hero--mark {
		min-height: min(54rem, calc(100svh - var(--wl-header-h)));
		padding-block-start: clamp(3rem, 6vw, 5.5rem);
		display: flow-root;
	}

	.wl-hero.wl-hero--mark > .wl-hero-mark {
		position: absolute !important;
		top: 50%;
		right: max(0.5rem, calc((100vw - 80rem) / 2 - 1rem));
		width: min(40rem, 44vw);
		max-width: none !important;
		margin: 0 !important;
		transform: translateY(-50%);
		z-index: 0;
	}

	.wl-hero--mark .wl-hero__inner {
		position: relative;
		z-index: 1;
	}

	.wl-hero--mark .wl-hero__inner > :not(.wl-hero__facts) {
		max-width: min(46rem, 50vw);
	}

	.wl-hero--mark .wl-hero__inner > .wl-hero__facts {
		max-width: min(46rem, 50vw);
	}
}

@media (max-width: 47.99rem) {
	.wl-hero.wl-hero--mark {
		padding-top: 0;
	}


	.wl-hero.wl-hero--mark > .wl-hero-mark {
		aspect-ratio: 1170 / 600;
		width: calc(100% + var(--wp--style--root--padding-left, 1.25rem) + var(--wp--style--root--padding-right, 1.25rem));
		max-width: none !important;
		margin-inline: calc(-1 * var(--wp--style--root--padding-left, 1.25rem)) !important;
		margin-block: 0 0.5rem !important;
	}

	/* Headline and CTA first on phones; the lead follows. */
	.wl-hero--mark .wl-hero__inner {
		display: flex;
		flex-direction: column;
	}

	.wl-hero--mark .wl-hero__inner > .wl-label { order: 1; }
	.wl-hero--mark .wl-hero__inner > h1 { order: 2; margin-block-start: 0.75rem; }
	.wl-hero--mark .wl-hero__inner > .wp-block-buttons { order: 3; margin-block-start: 1.5rem; }
	.wl-hero--mark .wl-hero__inner > .wl-lead { order: 4; margin-block-start: 1.75rem; }
	.wl-hero--mark .wl-hero__inner > .wl-hero__facts { order: 5; margin-block-start: 2.5rem; }
}

/* =====================================================================
   27. Service cards with visuals
   ===================================================================== */
.wl-service-cards.wp-block-columns {
	gap: clamp(1rem, 2vw, 1.5rem);
	margin-inline: 0;
	margin-bottom: 0;
}

.wl-service-card {
	position: relative;
	background: var(--wl-card);
	border: 1px solid var(--wl-rule);
	border-radius: 16px;
	padding: 0.75rem 0.75rem 1.75rem;
	transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.wl-service-card > * {
	margin-block: 0;
}

.wl-service-card > :not(.wl-service-visual) {
	margin-inline: 1rem;
}

.wl-service-card > * + * {
	margin-block-start: 0.875rem;
}

.wl-service-card > .wl-service-visual + * {
	margin-block-start: 1.5rem;
}

.wl-service-card:hover,
.wl-service-card:focus-within {
	transform: translateY(-3px);
	border-color: var(--wl-rule-strong);
	box-shadow: 0 18px 40px -28px rgba(11, 12, 14, 0.45);
}

.wl-service-card .wl-ledger__index {
	margin-block: 1.25rem 0;
}

.wl-service-card h3 {
	font-size: clamp(1.375rem, 1.15rem + 0.6vw, 1.625rem);
	letter-spacing: -0.015em;
}

.wl-service-card h3 a {
	color: var(--wl-fg);
	text-decoration: none;
}

.wl-service-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 16px;
}

.wl-service-card h3 a:focus-visible {
	outline: none;
}

.wl-service-card h3 a:focus-visible::after {
	outline: 2px solid var(--wl-focus);
	outline-offset: 3px;
}

.wl-service-card h3::after {
	content: "→";
	font-family: var(--wl-mono);
	font-size: 1rem;
	margin-left: 0.5rem;
	color: var(--wl-label);
	display: inline-block;
	transition: transform 0.2s ease;
}

.wl-service-card:hover h3::after,
.wl-service-card:focus-within h3::after {
	transform: translateX(4px);
}

.wl-service-card p {
	color: var(--wl-muted);
}

/* Visual panel – shared style for all three services */
.wl-service-visual {
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	background:
		radial-gradient(120% 90% at 20% 0%, rgba(124, 203, 190, 0.08), transparent 55%),
		var(--wl-graphite);
	aspect-ratio: 16 / 10;
	display: grid;
	place-items: center;
}

.wl-sv {
	width: 100%;
	height: 100%;
	display: block;
}

.wl-sv__frame { fill: #101114; stroke: var(--wl-slate); stroke-width: 1.5; }
.wl-sv__rule { stroke: var(--wl-slate); stroke-width: 1.5; }
.wl-sv__muted { fill: var(--wl-slate); }
.wl-sv__field { fill: var(--wl-carbon); }
.wl-sv__ink { fill: var(--wl-bone); }
.wl-sv__panel { fill: var(--wl-carbon); stroke: var(--wl-slate); stroke-width: 1; }
.wl-sv__accent { fill: var(--wl-warp); }
.wl-sv__accent-line { fill: none; stroke: var(--wl-warp); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wl-sv__paper { fill: #E7E4DD; }
.wl-sv__line { fill: #9AA0AA; transition: fill 0.3s ease; }
.wl-sv__track { fill: none; stroke: var(--wl-slate); stroke-width: 2; }
.wl-sv__flow { fill: none; stroke: var(--wl-warp); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: 0; }
.wl-sv__node { fill: var(--wl-graphite); stroke: var(--wl-warp); stroke-width: 1.5; }
.wl-sv__glyph { fill: none; stroke: var(--wl-bone); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wl-sv__grid line { stroke: var(--wl-slate); stroke-width: 1; stroke-dasharray: 3 5; }
.wl-sv__led { fill: var(--wl-warp); }
.wl-sv__ok { fill: var(--wl-warp); }
.wl-sv__check { fill: none; stroke: var(--wl-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wl-sv__fault { fill: none; stroke: #F08C4A; stroke-width: 1.6; stroke-linejoin: round; opacity: 0.22; }
.wl-sv__marker line { stroke: #F08C4A; stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.7; }
.wl-sv__marker circle { fill: none; stroke: #F08C4A; stroke-width: 1.5; }
.wl-sv__healthy { fill: none; stroke: var(--wl-warp); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.wl-sv__piece { transform-box: view-box; }

@media (prefers-reduced-motion: no-preference) {
	/* Web: the page assembles */
	:is(.wl-service-card:hover, .wl-service-card:focus-within, .wl-service-visual--play, .wl-page-hero) .wl-sv--web .wl-sv__piece {
		animation: wl-sv-assemble 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both;
		animation-delay: calc(var(--i) * 90ms);
	}

	/* AI: the document runs through the steps */
	:is(.wl-service-card:hover, .wl-service-card:focus-within, .wl-service-visual--play, .wl-page-hero) .wl-sv--ai .wl-sv__flow {
		animation: wl-sv-draw 1.3s ease-out both;
	}

	:is(.wl-service-card:hover, .wl-service-card:focus-within, .wl-service-visual--play, .wl-page-hero) .wl-sv--ai .wl-sv__node {
		animation: wl-sv-node 0.5s ease-out both;
		animation-delay: calc(0.25s + var(--i) * 0.32s);
	}

	:is(.wl-service-card:hover, .wl-service-card:focus-within, .wl-service-visual--play, .wl-page-hero) .wl-sv--ai .wl-sv__hit {
		animation: wl-sv-hit 0.6s ease-out both;
		animation-delay: calc(var(--i) * 0.12s);
	}

	:is(.wl-service-card:hover, .wl-service-card:focus-within, .wl-service-visual--play, .wl-page-hero) .wl-sv--ai .wl-sv__out {
		animation: wl-sv-rise 0.5s ease-out 1.1s both;
	}

	/* IT: a noisy trace resolves into a healthy signal */
	:is(.wl-service-card:hover, .wl-service-card:focus-within, .wl-service-visual--play, .wl-page-hero) .wl-sv--it .wl-sv__fault {
		animation: wl-sv-fault 1.4s ease-out both;
	}

	:is(.wl-service-card:hover, .wl-service-card:focus-within, .wl-service-visual--play, .wl-page-hero) .wl-sv--it .wl-sv__healthy {
		animation: wl-sv-draw 1s ease-out 0.55s both;
	}

	:is(.wl-service-card:hover, .wl-service-card:focus-within, .wl-service-visual--play, .wl-page-hero) .wl-sv--it .wl-sv__led {
		animation: wl-sv-led 1.2s steps(1, end) both;
		animation-delay: calc(0.4s + var(--i) * 0.18s);
	}

	:is(.wl-service-card:hover, .wl-service-card:focus-within, .wl-service-visual--play, .wl-page-hero) .wl-sv--it .wl-sv__status {
		animation: wl-sv-rise 0.4s ease-out 1.3s both;
	}
}

@keyframes wl-sv-assemble {
	from { opacity: 0; transform: translate(var(--x), var(--y)); }
	to { opacity: 1; transform: none; }
}

@keyframes wl-sv-draw {
	from { stroke-dashoffset: 100; }
	to { stroke-dashoffset: 0; }
}

@keyframes wl-sv-node {
	0% { fill: var(--wl-graphite); }
	50% { fill: var(--wl-warp); }
	100% { fill: var(--wl-graphite); }
}

@keyframes wl-sv-hit {
	from { fill: #9AA0AA; }
	to { fill: var(--wl-warp); }
}

.wl-service-card:hover .wl-sv--ai .wl-sv__hit,
.wl-service-card:focus-within .wl-sv--ai .wl-sv__hit {
	fill: var(--wl-warp);
}

@keyframes wl-sv-rise {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

@keyframes wl-sv-fault {
	0% { opacity: 0.22; }
	15% { opacity: 1; }
	60% { opacity: 0.9; }
	100% { opacity: 0.22; }
}

@keyframes wl-sv-led {
	0% { fill: #F08C4A; }
	100% { fill: var(--wl-warp); }
}

/* Visual in the hero of the three core service pages */
.wl-page-hero--visual .wl-page-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
}

@media (min-width: 64rem) {
	.wl-page-hero--visual .wl-page-hero__inner {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		column-gap: clamp(2rem, 5vw, 5rem);
		align-items: center;
	}

	.wl-page-hero--visual .wl-page-hero__inner > :not(.wl-service-visual) {
		grid-column: 1;
	}

	.wl-page-hero--visual .wl-page-hero__inner > .wl-service-visual {
		grid-column: 2;
		grid-row: 1 / span 4;
	}
}

.wl-page-hero--visual .wl-page-hero__inner > * {
	margin-block-start: 0;
}

.wl-page-hero .wl-service-visual {
	border: 1px solid var(--wl-slate);
}

/* =====================================================================
   28. Automation demo
   ===================================================================== */
.wl-demo {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
}

.wl-section .wl-section__inner > .wl-demo > * {
	margin: 0;
}

@media (min-width: 64rem) {
	.wl-demo {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		column-gap: clamp(2rem, 4vw, 4rem);
	}

	.wl-demo > .wl-demo__stage {
		grid-column: 2;
		grid-row: 1 / span 3;
	}

	.wl-demo > :not(.wl-demo__stage) {
		grid-column: 1;
	}
}

.wl-demo__start .wp-block-button__link {
	background: var(--wl-bone);
	color: var(--wl-ink);
	border-color: var(--wl-bone);
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	font-size: 0.9375rem;
}

.wl-demo__start .wp-block-button__link::before {
	content: "▶";
	font-size: 0.6875rem;
	margin-right: 0.25rem;
}

.wl-demo.is-finished .wl-demo__start .wp-block-button__link::before {
	content: "↻";
	font-size: 0.875rem;
}

.wl-demo__start .wp-block-button__link[aria-disabled="true"] {
	opacity: 0.7;
	cursor: progress;
}

.wl-demo__status {
	font-family: var(--wl-mono);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	color: var(--wl-label);
	min-height: 1.25rem;
}

/* Steps as a vertical stepper inside the demo */
ol.wl-flow.wl-demo__steps {
	grid-template-columns: 1fr;
	gap: 0.625rem;
}

ol.wl-demo__steps > li {
	transition: border-color 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
}

ol.wl-demo__steps > li::after {
	display: none !important;
}

.wl-demo.is-playing ol.wl-demo__steps > li:not(.is-active):not(.is-done) {
	opacity: 0.5;
}

.wl-demo.is-enhanced ol.wl-demo__steps > li.is-active {
	opacity: 1;
	border-color: var(--wl-warp);
	background: rgba(124, 203, 190, 0.08);
}

.wl-demo.is-enhanced ol.wl-demo__steps > li.is-done {
	opacity: 1;
}

.wl-demo.is-enhanced ol.wl-demo__steps > li.is-done::before {
	content: "✓ " counter(wl-flow, decimal-leading-zero);
}

/* Stage: an inbox / workflow screen */
.wl-demo__stage {
	position: relative;
	background: var(--wl-graphite);
	border: 1px solid var(--wl-slate);
	border-radius: 16px;
	padding: clamp(1rem, 2.5vw, 1.75rem);
	min-height: 22rem;
	display: grid;
	gap: 0.875rem;
	align-content: start;
	overflow: hidden;
}

.wl-demo__stage > * {
	margin: 0 !important;
}

.wl-demo__inbox {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	font-family: var(--wl-mono);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wl-fog);
	border-bottom: 1px solid var(--wl-slate);
	padding-bottom: 0.75rem;
}

.wl-demo__inbox-wait {
	text-transform: none;
	letter-spacing: 0;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.wl-demo.is-enhanced[data-stage="0"] .wl-demo__inbox-wait {
	opacity: 1;
}

/* Before the start: the sample inquiry waits in the inbox, marked as new, older mail below it */
.wl-demo.is-enhanced[data-stage="0"] .wl-demo__inbox-wait {
	color: var(--wl-filament);
}

.wl-demo__mail[data-new]::before {
	content: attr(data-new);
	position: absolute;
	top: 0.875rem;
	right: 0.875rem;
	font-family: var(--wl-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wl-ink);
	background: var(--wl-filament);
	border-radius: 999px;
	padding: 0.15rem 0.55rem;
	transition: opacity 0.3s ease;
}

.wl-demo.is-enhanced:not([data-stage="0"]) .wl-demo__mail[data-new]::before,
.wl-demo:not(.is-enhanced) .wl-demo__mail[data-new]::before {
	opacity: 0;
}

.wl-demo.is-enhanced[data-stage="0"] .wl-demo__mail {
	box-shadow: inset 3px 0 0 var(--wl-filament);
}

.wl-demo.is-enhanced[data-stage="1"] .wl-demo__mail {
	box-shadow: 0 0 0 2px var(--wl-warp), 0 18px 40px -24px rgba(124, 203, 190, 0.5);
	transform: translateY(-2px);
}

.wl-demo__older {
	display: grid;
	gap: 0.5rem;
	transition: opacity 0.35s ease;
}

.wl-demo__older i {
	display: block;
	height: 2.75rem;
	border-radius: 10px;
	background:
		linear-gradient(var(--wl-slate), var(--wl-slate)) 1rem 0.85rem / 30% 0.45rem no-repeat,
		linear-gradient(var(--wl-slate), var(--wl-slate)) 1rem 1.6rem / 55% 0.35rem no-repeat,
		var(--wl-carbon);
	opacity: 0.75;
}

.wl-demo.is-enhanced:not([data-stage="0"]):not([data-stage="1"]) .wl-demo__older,
.wl-demo:not(.is-enhanced) .wl-demo__older {
	display: none;
}

/* Human review and CRM handoff: labelled steps */
.wl-demo__kicker {
	grid-column: 2;
	font-family: var(--wl-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wl-warp);
}

.wl-demo__line {
	grid-column: 2;
}

.wl-demo__mail {
	background: var(--wl-chalk);
	color: var(--wl-ink);
	border-radius: 10px;
	padding: 1rem 1.125rem;
	position: relative;
	overflow: hidden;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.45s ease, box-shadow 0.4s ease;
}

.wl-demo__mail > * {
	margin: 0 !important;
	color: var(--wl-ink);
}

.wl-demo__mail > * + * {
	margin-top: 0.375rem !important;
}

.wl-demo__from {
	font-family: var(--wl-mono);
	font-size: 0.75rem;
	color: var(--wl-steel) !important;
}

.wl-demo__subject {
	font-weight: 600;
}

.wl-demo__body {
	font-size: 0.9375rem;
	line-height: 1.55;
}

.wl-demo__mail::after {
	/* scanning highlight while the request is classified */
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 30%, rgba(124, 203, 190, 0.35) 50%, transparent 70%);
	transform: translateX(-100%);
	pointer-events: none;
}

.wl-demo__tag {
	justify-self: start;
	font-family: var(--wl-mono);
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	background: var(--wl-warp);
	color: var(--wl-ink) !important;
	border-radius: 999px;
	padding: 0.3rem 0.75rem;
	transition: transform 0.4s cubic-bezier(0.3, 1.4, 0.5, 1), opacity 0.3s ease;
}

.wl-demo__tag::before {
	content: "#";
	opacity: 0.6;
	margin-right: 0.125rem;
}

ul.wl-demo__fields {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 0.25rem;
	font-family: var(--wl-mono);
	font-size: 0.75rem;
	color: var(--wl-fog);
	transition: opacity 0.4s ease 0.15s;
}

ul.wl-demo__fields li::before {
	content: "→ ";
	color: var(--wl-warp);
}

.wl-demo__review,
.wl-demo__done {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 0.75rem;
	row-gap: 0.15rem;
	align-items: center;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: var(--wl-bone) !important;
	padding: 0.75rem 0.875rem;
	border-radius: 10px;
	border: 1px solid var(--wl-slate);
	background: rgba(255, 255, 255, 0.02);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.wl-demo__done {
	border-color: rgba(124, 203, 190, 0.45);
	background: rgba(124, 203, 190, 0.08);
}

.wl-demo__review::before,
.wl-demo__done::before {
	grid-row: span 2;
}

.wl-demo__review::before {
	content: "";
	flex: 0 0 auto;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	border: 1.5px solid var(--wl-warp);
	background:
		radial-gradient(circle at 50% 38%, var(--wl-bone) 0 22%, transparent 23%),
		radial-gradient(ellipse at 50% 100%, var(--wl-bone) 0 42%, transparent 43%);
}

.wl-demo__done::before {
	content: "✓";
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: var(--wl-warp);
	color: var(--wl-ink);
	font-size: 0.875rem;
	font-weight: 700;
}

/* Enhanced (JS) state machine: hidden until their stage (the inquiry itself is always visible) */

.wl-demo.is-enhanced:not([data-stage="2"]):not([data-stage="3"]):not([data-stage="4"]) .wl-demo__tag,
.wl-demo.is-enhanced:not([data-stage="2"]):not([data-stage="3"]):not([data-stage="4"]) .wl-demo__fields {
	opacity: 0;
	transform: scale(0.9);
}

.wl-demo.is-enhanced:not([data-stage="3"]):not([data-stage="4"]) .wl-demo__review,
.wl-demo.is-enhanced:not([data-stage="4"]) .wl-demo__done {
	opacity: 0;
	transform: translateY(8px);
}

.wl-demo.is-enhanced[data-stage="2"] .wl-demo__mail::after {
	animation: wl-demo-scan 1.1s ease-in-out both;
}

.wl-demo.is-enhanced[data-stage="3"] .wl-demo__mail,
.wl-demo.is-enhanced[data-stage="4"] .wl-demo__mail {
	box-shadow: 0 0 0 2px var(--wl-warp);
}

@keyframes wl-demo-scan {
	from { transform: translateX(-100%); }
	to { transform: translateX(100%); }
}

/* Transition into the live demo: a fine gold thread drops in from the section edge */
.wl-section--demo {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(55% 45% at 88% 0%, rgba(124, 203, 190, 0.11), transparent 70%),
		radial-gradient(40% 30% at 8% 0%, rgba(233, 179, 86, 0.07), transparent 70%),
		var(--wl-ink);
}

.wl-section--demo::before {
	content: "";
	position: absolute;
	top: 0;
	left: max(var(--wl-gutter), calc((100% - 80rem) / 2 + var(--wl-gutter)));
	width: 1.5px;
	height: clamp(3rem, 7vw, 5.5rem);
	background: linear-gradient(var(--wl-filament), rgba(233, 179, 86, 0));
}

.wl-demo .wl-demo__stage {
	box-shadow: 0 50px 90px -60px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* =====================================================================
   29. Selected work (portfolio block of Wyreloom Core) and examples
   ===================================================================== */
.wl-examples.wp-block-columns {
	gap: clamp(1rem, 2vw, 1.5rem);
	margin-inline: 0;
	margin-bottom: 0;
	align-items: stretch;
}

.wl-portfolio {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2.5rem);
}

.wl-section .wl-section__inner > .wl-portfolio {
	margin-top: clamp(2rem, 4.5vw, 3.5rem);
}

.wl-portfolio__all {
	margin-top: clamp(1.5rem, 3vw, 2.5rem) !important;
}

/* One project = media + text */
.wl-work {
	position: relative;
	display: grid;
	gap: 1.25rem;
	align-content: start;
}

.wl-work__body > * {
	margin: 0;
}

.wl-work__body > * + * {
	margin-top: 0.75rem;
}

.wl-work__label {
	font-family: var(--wl-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wl-label);
}

.wl-work__title {
	font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem);
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.wl-work__title a {
	color: var(--wl-fg);
	text-decoration: none;
}

.wl-work__title a:hover {
	text-decoration: underline;
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

.wl-work__text {
	color: var(--wl-muted);
	line-height: 1.6;
}

.wl-work__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	padding-top: 0.25rem;
}

.wl-work__links a {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	min-height: 44px;
	font-weight: 600;
	color: var(--wl-fg);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

.wl-work__links a:hover {
	text-decoration-thickness: 2px;
}

.wl-work__visit::after {
	content: "↗";
	font-family: var(--wl-mono);
	font-weight: 400;
}

.wl-work__more::after {
	content: "→";
	font-family: var(--wl-mono);
	font-weight: 400;
}

.wl-work__links a {
	flex-wrap: wrap;
	max-width: 100%;
}

.wl-work__host {
	overflow-wrap: anywhere;
	min-width: 0;
	font-family: var(--wl-mono);
	font-weight: 400;
	font-size: 0.8125rem;
	color: var(--wl-muted);
	text-decoration: none;
}

/* Featured project: the real screenshot takes about two thirds of the width (1.4.0) */
.wl-work--featured {
	grid-template-columns: minmax(0, 1fr);
	row-gap: clamp(1.5rem, 4vw, 2.25rem);
	padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
	margin-bottom: clamp(0.5rem, 2vw, 1.5rem);
	border-bottom: 1px solid var(--wl-rule);
}

@media (min-width: 64rem) {
	.wl-work--featured {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		column-gap: clamp(3rem, 5vw, 5.5rem);
		align-items: center;
	}

	.wl-work--featured .wl-work__title {
		font-size: clamp(2rem, 1.2rem + 1.4vw, 2.75rem);
	}

	.wl-work--featured .wl-work__text {
		font-size: 1.0625rem;
	}
}

.wl-feature {
	position: relative;
	isolation: isolate;
}

.wl-feature__frame.wl-browser {
	border-radius: 14px;
	border-color: rgba(11, 12, 14, 0.9);
	box-shadow:
		0 2px 4px rgba(11, 12, 14, 0.06),
		0 48px 80px -46px rgba(11, 12, 14, 0.55);
}

.wl-feature__frame .wl-browser__bar {
	padding: 10px 12px;
}

.wl-feature__frame picture,
.wl-feature__frame img {
	display: block;
	width: 100%;
}

.wl-feature__phone {
	position: absolute;
	z-index: 2;
	right: clamp(-2.75rem, -3vw, -1rem);
	bottom: clamp(-2.25rem, -2.5vw, -1rem);
	width: 21%;
	min-width: 7.5rem;
	padding: 0.45rem 0.3rem;
	background: #0E0F12;
	border-radius: 1.6rem;
	box-shadow: 0 36px 60px -30px rgba(11, 12, 14, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.wl-feature__phone img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 390 / 844;
	object-fit: cover;
	object-position: top center;
	border-radius: 1.25rem;
}

@media (max-width: 63.99rem) {
	.wl-feature__phone {
		right: 1rem;
		bottom: -1.5rem;
	}
}

.wl-feature.is-armed .wl-feature__phone {
	transform: translate3d(0, 14%, 0);
	opacity: 0;
}

.wl-feature.is-armed.is-in .wl-feature__phone {
	transform: none;
	opacity: 1;
	transition: transform 1.1s cubic-bezier(0.16, 0.84, 0.24, 1) 0.9s, opacity 0.7s ease 0.9s;
}

/* One fine gold thread traces the top and right edge of the frame, then settles. */
.wl-goldline {
	position: absolute;
	z-index: 1;
	top: -12px;
	right: -12px;
	width: 56%;
	height: 70%;
	pointer-events: none;
}

.wl-goldline::before,
.wl-goldline::after {
	content: "";
	position: absolute;
	background: var(--wl-filament);
	border-radius: 1px;
}

/* top edge, drawn from left to right */
.wl-goldline::before {
	top: 0;
	left: 0;
	right: 0;
	height: 1.5px;
	transform-origin: left center;
	background: linear-gradient(90deg, rgba(233, 179, 86, 0), var(--wl-filament) 22%);
}

/* right edge, drawn downwards after the corner */
.wl-goldline::after {
	top: 0;
	right: 0;
	bottom: 0;
	width: 1.5px;
	transform-origin: center top;
	background: linear-gradient(180deg, var(--wl-filament) 70%, rgba(233, 179, 86, 0));
}

.wl-feature.is-armed .wl-goldline {
	transform: translate(6px, -6px);
}

.wl-feature.is-armed .wl-goldline::before {
	transform: scaleX(0);
}

.wl-feature.is-armed .wl-goldline::after {
	transform: scaleY(0);
}

.wl-feature.is-armed.is-in .wl-goldline {
	animation: wl-goldline-settle 0.9s cubic-bezier(0.3, 0.7, 0.3, 1) 1.45s forwards;
}

.wl-feature.is-armed.is-in .wl-goldline::before {
	animation: wl-goldline-x 0.85s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
}

.wl-feature.is-armed.is-in .wl-goldline::after {
	animation: wl-goldline-y 0.6s cubic-bezier(0.3, 0, 0.3, 1) 1.02s forwards;
}

@keyframes wl-goldline-x {
	to { transform: scaleX(1); }
}

@keyframes wl-goldline-y {
	to { transform: scaleY(1); }
}

@keyframes wl-goldline-settle {
	to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.wl-feature.is-armed .wl-feature__phone,
	.wl-feature.is-armed .wl-goldline,
	.wl-feature.is-armed .wl-goldline::before,
	.wl-feature.is-armed .wl-goldline::after {
		transform: none;
		opacity: 1;
		animation: none;
	}
}

/* Phones: full content width, the phone screenshot cropped to its legible top (set by <picture>). */
@media (max-width: 47.99rem) {
	.wl-feature.has-phone .wl-feature__frame img {
		aspect-ratio: 3 / 4;
		object-fit: cover;
		object-position: top center;
	}

	.wl-feature__phone {
		display: none;
	}

	.wl-goldline {
		top: -8px;
		right: -8px;
		width: 62%;
		height: 46%;
	}
}

/* Further projects: one card each, three distinct presentations */
.wl-work-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 40rem) {
	.wl-work-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64rem) {
	.wl-work-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	/* Exactly four cards: two rows of two instead of three plus one on its own (since 1.4.2). */
	.wl-work-grid:has(> li:nth-child(4):last-child) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.wl-work-grid > li {
	margin: 0;
	display: flex;
}

.wl-work-grid .wl-work {
	width: 100%;
	background: var(--wl-card);
	border: 1px solid var(--wl-rule);
	border-radius: 18px;
	padding: 0.625rem 0.625rem 1.25rem;
	transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.wl-work-grid .wl-work:hover,
.wl-work-grid .wl-work:focus-within {
	transform: translateY(-3px);
	border-color: var(--wl-rule-strong);
	box-shadow: 0 22px 44px -30px rgba(11, 12, 14, 0.45);
}

.wl-work-grid .wl-work__body {
	padding-inline: 0.75rem;
}

.wl-media {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
}

.wl-media > img,
.wl-media .wl-work__placeholder {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
}

/* Website screenshot in a browser frame */
.wl-browser {
	border-radius: 12px;
	overflow: hidden;
	background: #0E0F12;
	border: 1px solid var(--wl-slate);
}

.wl-browser__bar {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 8px 10px;
	background: #15171B;
}

.wl-browser__bar i {
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--wl-slate);
}

.wl-browser__url {
	flex: 0 1 auto;
	min-width: 0;
	margin-left: 0.75rem;
	padding: 1px 10px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: var(--wl-mono);
	font-size: 0.6875rem;
	line-height: 1.6;
	color: var(--wl-fog);
	background: var(--wl-carbon);
	border-radius: 6px;
}

.wl-browser__url:empty {
	display: none;
}

.wl-browser img,
.wl-browser .wl-work__placeholder {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: top center;
}

/* Brand artwork, centred on its own colour field */
.wl-media--artwork {
	aspect-ratio: 16 / 10;
	background:
		radial-gradient(70% 90% at 50% 40%, rgba(255, 255, 255, 0.04), transparent 70%),
		color-mix(in srgb, var(--wl-field, var(--wl-ink)) 80%, #000);
}

.wl-media.wl-media--artwork > img {
	position: absolute;
	inset: 9% 0;
	margin: auto;
	width: auto;
	height: 82%;
	max-width: 100%;
	aspect-ratio: auto;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 28px 50px -26px rgba(0, 0, 0, 0.75);
}

/* Full-bleed cover picture */
.wl-media--cover > img {
	object-fit: cover;
	object-position: center;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.wl-media--cover::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
	background: linear-gradient(180deg, transparent 60%, rgba(11, 12, 14, 0.28));
	pointer-events: none;
}

.wl-work:hover .wl-media--cover > img {
	transform: scale(1.025);
}

@media (prefers-reduced-motion: reduce) {
	.wl-work:hover .wl-media--cover > img {
		transform: none;
	}
}

/* In cards the host name is read out but not shown (keeps the links on one line) */
.wl-work-grid .wl-work__host {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Projects without a picture yet: a branded monogram, never a fake screenshot */
.wl-work__placeholder {
	position: relative;
	display: grid !important;
	place-items: center;
	overflow: hidden;
	background:
		radial-gradient(90% 90% at 30% 20%, rgba(124, 203, 190, 0.16), transparent 60%),
		var(--wl-ink);
}

.wl-work__placeholder::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("../img/weave-tile-dark.svg") center / 56px repeat;
	opacity: 0.22;
}

.wl-work__placeholder span {
	position: relative;
	font-family: var(--wl-mono);
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	letter-spacing: 0.18em;
	color: var(--wl-bone);
	background: rgba(11, 12, 14, 0.82);
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--wl-slate);
	border-radius: 8px;
}

/* Service pages: related projects only (no featured project) */
.wl-portfolio--related .wl-work-grid {
	margin-top: 0;
}

/* Links from a service to real work, the demo or an inquiry */
.wl-proof {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	margin-top: 1rem !important;
}

.wl-proof__link {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	min-height: 44px;
	font-weight: 600;
	color: var(--wl-fg);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

.wl-proof__link:hover {
	text-decoration-thickness: 2px;
}

.wl-proof__kind {
	display: inline-block;
	font-family: var(--wl-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wl-label);
	border: 1px solid currentColor;
	border-radius: 4px;
	padding: 0.1rem 0.4rem;
}

.wl-service-card .wl-proof {
	margin-top: auto !important;
	padding-top: 1rem;
	border-top: 1px solid var(--wl-rule);
}

/* Project pages: opening picture at its own size, gallery in its own proportions */
.wp-block-post-featured-image.wl-project-opening {
	margin-inline: auto;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 0 0 1px var(--wl-rule), 0 40px 70px -48px rgba(11, 12, 14, 0.5);
}

.wp-block-post-featured-image.wl-project-opening img {
	width: 100%;
	height: auto;
}

.wp-block-post-featured-image.wl-project-opening--artwork {
	display: grid;
	place-items: center;
	padding: clamp(2rem, 6vw, 4.5rem) 1rem;
	background:
		radial-gradient(60% 80% at 50% 40%, rgba(255, 255, 255, 0.04), transparent 70%),
		color-mix(in srgb, var(--wl-field, var(--wl-ink)) 80%, #000);
	max-width: none;
}

.wp-block-post-featured-image.wl-project-opening--artwork img {
	width: min(26rem, 70%, var(--wl-native, 100%));
	max-width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 28px 50px -26px rgba(0, 0, 0, 0.75);
}

.wl-prose .wp-block-image.wl-shot {
	margin-block: 1.5rem 2.5rem;
}

.wl-prose .wp-block-image.wl-shot img {
	width: auto;
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 0 0 1px var(--wl-rule), 0 30px 60px -44px rgba(11, 12, 14, 0.5);
}

.wl-prose .wp-block-image.wl-shot--strip img {
	border-radius: 6px;
}

.wl-prose .wp-block-image.wl-shot figcaption {
	margin-top: 0.75rem;
	font-family: var(--wl-mono);
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	color: var(--wl-muted);
	text-align: left;
}

/* Work sample (post or ad): description, and the approved picture beside it (since 1.4.2) */
.wl-sample {
	display: grid;
	gap: 1.5rem clamp(2rem, 5vw, 4rem);
	margin-block: 2.5rem;
	scroll-margin-top: 6rem;
}

.wl-sample__text > :first-child {
	margin-top: 0;
}

.wl-sample__text > :last-child {
	margin-bottom: 0;
}

.wl-sample__media {
	margin: 0;
	justify-self: start;
	max-width: 22rem;
}

.wl-sample__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 0 0 1px var(--wl-rule), 0 30px 60px -44px rgba(11, 12, 14, 0.5);
}

.wl-sample__caption {
	margin-top: 0.75rem;
	font-family: var(--wl-mono);
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	color: var(--wl-muted);
}

.wl-sample__media.is-not-approved .wl-sample__img {
	opacity: 0.35;
	filter: grayscale(1);
}

@media (min-width: 48rem) {
	.wl-sample--with-media {
		grid-template-columns: minmax(0, 1fr) minmax(14rem, 22rem);
		align-items: start;
	}

	.wl-sample--with-media .wl-sample__media {
		justify-self: end;
	}
}

/* Project pages: room between the last section of the text and the closing line (since 1.4.2) */
.wp-block-post-content + .wp-block-separator.is-style-wl-crossing {
	margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* About: the person behind Wyreloom */
.wl-about-person.wp-block-columns {
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center !important;
}

.wl-person {
	position: relative;
	overflow: hidden;
	padding: clamp(1.75rem, 4vw, 2.75rem);
	border-radius: 20px;
	color: var(--wl-bone);
	background:
		radial-gradient(80% 70% at 20% 0%, rgba(124, 203, 190, 0.18), transparent 60%),
		var(--wl-ink);
	--wl-label: var(--wl-warp);
	--wl-fg: var(--wl-bone);
	--wl-muted: var(--wl-fog);
	--wl-link: var(--wl-warp);
}

.wl-person::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("../img/weave-tile-dark.svg") center / 64px repeat;
	opacity: 0.16;
	pointer-events: none;
}

.wl-person::after {
	content: "";
	position: absolute;
	left: clamp(1.75rem, 4vw, 2.75rem);
	right: 40%;
	top: 0;
	height: 1.5px;
	background: var(--wl-filament);
}

.wl-person {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: clamp(18rem, 30vw, 24rem);
}

.wl-person > * {
	position: relative;
	margin: 0;
}

.wl-person > * + * {
	margin-top: 0.75rem;
}

.wl-person .wl-business {
	font-style: normal;
}

.wl-person .wl-business > p {
	margin: 0;
	font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--wl-bone);
}

.wl-person__role {
	color: var(--wl-filament) !important;
	font-size: 1.125rem;
	font-weight: 500;
}

ul.wl-person__facts {
	list-style: none;
	padding: 1rem 0 0;
	margin-top: 1.25rem !important;
	border-top: 1px solid var(--wl-slate);
	display: grid;
	gap: 0.4rem;
	font-size: 0.9375rem;
	color: var(--wl-mist);
}

ul.wl-person__facts li::before {
	content: "— ";
	color: var(--wl-warp);
}

/* =====================================================================
   29b. Service scenes (wyreloom/service-scene) and the services grid (1.4.1)
   Final frame = natural markup. .is-armed shows the start state, .is-play runs three phases
   of about one second each (classes ending in 1, 2, 3), then the final frame holds.
   ===================================================================== */
.wl-scene {
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background:
		radial-gradient(120% 90% at 20% 0%, rgba(124, 203, 190, 0.08), transparent 55%),
		var(--wl-graphite);
}

.wl-sc {
	display: block;
	width: 100%;
	height: 100%;
}

.wl-sc text { font-family: var(--wl-mono); font-size: 8.5px; fill: var(--wl-fog); }
.wl-sc .tk { font-family: var(--wp--preset--font-family--instrument-sans, sans-serif); font-size: 10px; font-weight: 600; fill: var(--wl-bone); }
.wl-sc .ta { fill: var(--wl-warp); }
.wl-sc .tg { fill: var(--wl-filament); }
.wl-sc .td { font-family: var(--wp--preset--font-family--instrument-sans, sans-serif); font-size: 8.5px; font-weight: 600; fill: var(--wl-ink); }
.wl-sc .tp { fill: var(--wl-ink); font-weight: 600; }
.wl-sc .tx { font-family: var(--wp--preset--font-family--instrument-sans, sans-serif); font-size: 30px; font-weight: 500; fill: var(--wl-bone); }
.wl-sc .tbig { font-family: var(--wp--preset--font-family--instrument-sans, sans-serif); font-size: 16px; font-weight: 700; fill: var(--wl-ink); }
.wl-sc .f { fill: #101114; stroke: var(--wl-slate); stroke-width: 1.5; }
.wl-sc .p { fill: var(--wl-carbon); stroke: var(--wl-slate); stroke-width: 1; }
.wl-sc .q { fill: #262A31; }
.wl-sc .pp { fill: var(--wl-bone); }
.wl-sc .m { fill: var(--wl-slate); }
.wl-sc .mi { fill: var(--wl-mist); }
.wl-sc .k { fill: var(--wl-bone); }
.wl-sc .n { fill: var(--wl-ink); }
.wl-sc .nsw { fill: var(--wl-ink); stroke: var(--wl-steel); stroke-width: 1; }
.wl-sc .a { fill: var(--wl-warp); }
.wl-sc .g { fill: var(--wl-filament); }
.wl-sc .acc { fill: var(--wl-warp); opacity: 0.85; }
.wl-sc .acc2 { fill: var(--wl-warp-deep); }
.wl-sc .veil { fill: #101114; opacity: 0.55; }
.wl-sc .scan { fill: var(--wl-warp); opacity: 0.35; }
.wl-sc .fold { fill: var(--wl-carbon); stroke: var(--wl-slate); stroke-width: 1; }
.wl-sc .flight { fill: var(--wl-bone); }
.wl-sc .dash { fill: none; stroke: var(--wl-fog); stroke-width: 1; stroke-dasharray: 4 3; }
.wl-sc .ls { fill: none; stroke: var(--wl-slate); stroke-width: 1.5; }
.wl-sc .lf { fill: none; stroke: var(--wl-fog); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wl-sc .la { fill: none; stroke: var(--wl-warp); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wl-sc .lg { fill: none; stroke: var(--wl-filament); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wl-sc .ln { fill: none; stroke: var(--wl-ink); stroke-width: 2; stroke-linecap: round; }
.wl-sc .sig { fill: none; stroke: var(--wl-filament-deep); stroke-width: 1.6; stroke-linecap: round; }
.wl-sc .ck { fill: none; stroke: var(--wl-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* elements that only exist in the start state */
.wl-sc .o1, .wl-sc .o2, .wl-sc .o3 { opacity: 0; }

.wl-sc [class*="i1"], .wl-sc [class*="o1"], .wl-sc [class*="d1"], .wl-sc [class*="z1"], .wl-sc [class*="w1"], .wl-sc [class*="h1"], .wl-sc [class*="v1"] { --p: 0.1s; }
.wl-sc [class*="i2"], .wl-sc [class*="o2"], .wl-sc [class*="d2"], .wl-sc [class*="z2"], .wl-sc [class*="w2"], .wl-sc [class*="h2"], .wl-sc [class*="v2"] { --p: 1s; }
.wl-sc [class*="i3"], .wl-sc [class*="o3"], .wl-sc [class*="d3"], .wl-sc [class*="z3"], .wl-sc [class*="w3"], .wl-sc [class*="h3"], .wl-sc [class*="v3"] { --p: 2s; }

.wl-sc :is(.i1, .i2, .i3, .z1, .z2, .z3) { transform-box: fill-box; transform-origin: center; }
.wl-sc :is(.w1, .w2, .w3) { transform-box: fill-box; transform-origin: left center; }
.wl-sc :is(.h1, .h2, .h3) { transform-box: fill-box; transform-origin: center bottom; }

/* start state */
.wl-scene.is-armed :is(.i1, .i2, .i3) { opacity: 0; transform: translateY(6px); }
.wl-scene.is-armed :is(.o1, .o2, .o3) { opacity: 1; }
.wl-scene.is-armed :is(.d1, .d2, .d3) { stroke-dasharray: 1; stroke-dashoffset: 1; }
.wl-scene.is-armed :is(.z1, .z2, .z3) { opacity: 0; transform: scale(0.4); }
.wl-scene.is-armed :is(.w1, .w2, .w3) { transform: scaleX(0); }
.wl-scene.is-armed :is(.h1, .h2, .h3) { transform: scaleY(0); }
.wl-scene.is-armed :is(.v1, .v2, .v3) { transform: translate(var(--x, 0px), var(--y, 0px)); }

/* play once */
.wl-scene.is-play :is(.i1, .i2, .i3, .o1, .o2, .o3, .d1, .d2, .d3, .z1, .z2, .z3, .w1, .w2, .w3, .h1, .h2, .h3, .v1, .v2, .v3) {
	animation-duration: 0.55s;
	animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
	animation-fill-mode: both;
	animation-delay: calc(var(--p) + var(--dd, 0s));
}
.wl-scene.is-play :is(.i1, .i2, .i3) { animation-name: wl-sc-in; }
.wl-scene.is-play :is(.o1, .o2, .o3) { animation-name: wl-sc-out; animation-duration: 0.4s; }
.wl-scene.is-play :is(.d1, .d2, .d3) { animation-name: wl-sc-draw; animation-duration: 0.8s; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
.wl-scene.is-play :is(.z1, .z2, .z3) { animation-name: wl-sc-pop; }
.wl-scene.is-play :is(.w1, .w2, .w3) { animation-name: wl-sc-grow; }
.wl-scene.is-play :is(.h1, .h2, .h3) { animation-name: wl-sc-rise; }
.wl-scene.is-play :is(.v1, .v2, .v3) { animation-name: wl-sc-move; animation-duration: 0.75s; }

@keyframes wl-sc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes wl-sc-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes wl-sc-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes wl-sc-pop { from { opacity: 0; transform: scale(0.4); } 70% { opacity: 1; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes wl-sc-grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes wl-sc-rise { from { transform: scaleY(0); } to { transform: none; } }
@keyframes wl-sc-move { from { transform: translate(var(--x, 0px), var(--y, 0px)); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.wl-scene.is-armed *,
	.wl-scene.is-play * {
		animation: none !important;
	}

	.wl-scene.is-armed :is(.i1, .i2, .i3, .z1, .z2, .z3, .w1, .w2, .w3, .h1, .h2, .h3, .v1, .v2, .v3) {
		opacity: 1;
		transform: none;
	}

	.wl-scene.is-armed :is(.o1, .o2, .o3) { opacity: 0; }
	.wl-scene.is-armed :is(.d1, .d2, .d3) { stroke-dasharray: none; }
}

/* Services page: every individual service as a tile – picture, title, explanation, actions */
.wl-scene-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.25rem, 2.5vw, 2rem);
	margin-top: clamp(2rem, 4vw, 3rem) !important;
}

@media (min-width: 40rem) {
	.wl-scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
	.wl-scene-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.wl-scene-grid > * {
	margin: 0 !important;
}

.wl-scene-tile {
	display: flex;
	flex-direction: column;
	padding: 0.625rem 0.625rem 1.25rem;
	border-radius: 18px;
	background: var(--wl-card);
	border: 1px solid var(--wl-rule);
}

.wl-scene-tile > * {
	margin: 0;
	padding-inline: 0.75rem;
}

.wl-scene-tile > .wl-scene {
	padding: 0;
}

.wl-scene-tile > .wl-scene + * {
	margin-top: 1.125rem;
}

.wl-scene-tile > * + * {
	margin-top: 0.5rem;
}

.wl-scene-tile h3 {
	font-size: clamp(1.1875rem, 1.05rem + 0.4vw, 1.375rem);
	line-height: 1.2;
	letter-spacing: -0.015em;
}

.wl-scene-tile h3 a {
	color: var(--wl-fg);
	text-decoration: none;
}

.wl-scene-tile h3 a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.wl-scene-tile > p:not(.wl-proof) {
	color: var(--wl-muted);
	line-height: 1.6;
}

.wl-scene-tile .wl-proof {
	margin-top: auto !important;
	padding-top: 0.75rem;
}

.wl-section--chalk .wl-scene-tile {
	background: var(--wl-chalk);
}

/* =====================================================================
   30. Subtle shared interactions (all pages)
   ===================================================================== */
.wl-card {
	transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.25s ease;
}

.wl-card:not(.wl-card--feature):not(.wl-contact-card):hover {
	transform: translateY(-2px);
	border-color: var(--wl-rule-strong);
}

.wl-principle {
	position: relative;
}

.wl-principle::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 2.5rem;
	height: 2px;
	background: var(--wl-node);
	transition: width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.wl-principle:hover::before {
	width: 100%;
}

.wl-text-link a::after,
a.wl-text-link::after {
	display: inline-block;
	margin-left: 0.3em;
	transition: transform 0.2s ease;
}

.wl-text-link a:hover::after,
.wl-text-link a:focus-visible::after {
	transform: translateX(3px);
}

ol.wl-steps > li {
	transition: color 0.25s ease;
}

ol.wl-steps > li:hover strong {
	color: var(--wl-label);
}

.wl-faq .wp-block-details summary {
	transition: color 0.2s ease;
}

.wl-faq .wp-block-details summary:hover {
	color: var(--wl-label);
}

.wl-field input,
.wl-field select,
.wl-field textarea {
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wl-field input:focus,
.wl-field select:focus,
.wl-field textarea:focus {
	box-shadow: 0 0 0 4px rgba(31, 111, 100, 0.12);
}

/* Bolder display type for page heroes on all inner pages */
.wl-page-hero h1,
.wl-page-hero .wp-block-post-title {
	letter-spacing: -0.04em;
	line-height: 1.02;
}

.wl-page-hero .wl-label {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
}

.wl-page-hero .wl-label::before {
	content: "";
	width: 1.5rem;
	height: 1.5px;
	background: var(--wl-warp);
}

/* Demo: the start button only works with JavaScript; without it the final state is shown. */
.wl-demo:not(.is-enhanced) .wl-demo__start {
	display: none;
}

@media (min-width: 64rem) {
	.wl-demo > .wl-demo__stage {
		align-self: stretch;
	}
}

/* Phones/tablets: keep the inbox right below the start button so the example is visible while it runs. */
@media (max-width: 63.99rem) {
	.wl-demo > .wl-demo__start { order: 1; }
	.wl-demo > .wl-demo__status { order: 2; }
	.wl-demo > .wl-demo__stage { order: 3; min-height: 0; }
	.wl-demo > .wl-demo__steps { order: 4; }

	.wl-demo.is-enhanced .wl-demo__stage {
		min-height: 24rem;
	}
}

/* Core sets align-items: normal !important on columns; keep the contact card at its content height. */
.wl-contact-layout > .wp-block-column.wl-card {
	align-self: flex-start;
}

@media (min-width: 48rem) {
	.wl-contact-layout > .wp-block-column.wl-card {
		position: sticky;
		top: 1.5rem;
	}
}

/* Block editor: compact preview of the 3D mark (the live renderer runs on the front end only). */
.editor-styles-wrapper .wl-hero-mark {
	width: min(20rem, 100%);
	margin: 0 0 1.5rem auto;
}

/* Hero: scale the vertical rhythm with the viewport height so "Projekt anfragen" stays above the fold
   on short laptop screens as well. */
@media (min-width: 48rem) {
	.wl-hero.wl-hero--mark {
		padding-block-start: clamp(2rem, 7svh, 5.5rem);
	}

	.wl-hero--mark .wl-hero__inner > .wl-display {
		font-size: clamp(2.375rem, min(5.3vw, 8.4svh), 4.75rem) !important;
		margin-block-start: clamp(0.75rem, 1.8svh, 1.25rem);
	}

	.wl-hero--mark .wl-hero__inner > .wl-lead {
		margin-block-start: clamp(1rem, 2.6svh, 1.75rem);
	}

	.wl-hero--mark .wl-hero__inner > .wp-block-buttons {
		margin-block-start: clamp(1.25rem, 3.6svh, 2.5rem);
	}

	.wl-hero.wl-hero--mark > .wl-hero-mark {
		width: min(40rem, 44vw, 80svh);
	}
}

/* Phones: the band never takes more than about a third of the screen; the still is letterboxed
   (its edges are Loom Ink), matching how the live render frames the W at wider aspect ratios. */
@media (max-width: 47.99rem) {
	.wl-hero.wl-hero--mark > .wl-hero-mark {
		aspect-ratio: auto;
		height: min(calc(100vw * 600 / 1170), 26svh);
	}

	.wl-hero--mark .wl-hero-mark img {
		object-fit: contain;
	}
}

/* Very narrow phones (< 360px): icon-only menu button so the header fits. */
@media (max-width: 22.49rem) {
	.wl-nav__toggle-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.wl-header .wp-block-site-logo img,
	.wl-header .wl-logo img {
		height: 2.75rem;
	}
}

/* Tablets: the facts sit beside the sculpture in half the width – stack them. */
@media (min-width: 48rem) and (max-width: 71.99rem) {
	.wl-hero--mark .wl-hero__inner > ul.wl-hero__facts {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}
}

/* =====================================================================
   26b. Hero film "Ein Faden" (since 1.5.0)
   One gold thread through eight services; its tip becomes the gold strand
   of the 3D W. Coded SVG whose timeline is data (data-tl); hero-film.js
   plays, pauses, seeks and replays it. Only active when the inline <head>
   check set html.wl-film (no reduced motion, no Data Saver).
   ===================================================================== */
.wlf {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: none;
	overflow: hidden;
	font-family: var(--wp--preset--font-family--instrument-sans, system-ui, sans-serif);
}

html.wl-film .wl-hero-mark--film .wlf--desk { display: block; }
html.wl-film .wl-hero-mark--film[data-cut="mob"] .wlf--desk { display: none; }
html.wl-film .wl-hero-mark--film[data-cut="mob"] .wlf--mob { display: block; }

@media (max-width: 47.99rem) {
	html.wl-film .wl-hero-mark--film:not([data-cut]) .wlf--desk { display: none; }
	html.wl-film .wl-hero-mark--film:not([data-cut]) .wlf--mob { display: block; }
}

/* The still and the canvas wait for the logo moment. */
html.wl-film .wl-hero-mark--film .wl-hero-mark__still {
	opacity: 0;
	transition: opacity 0.7s ease;
}

html.wl-film .wl-hero-mark--film:not(.is-film-ready) .wl-hero-mark__still {
	animation: wlf-still-back 0.6s ease 3s both; /* script did not run: show the mark anyway */
}

html.wl-film .wl-hero-mark--film.is-done.is-fallback .wl-hero-mark__still {
	opacity: 1;
	transition-delay: 0.2s;
}

html.wl-film .wl-hero-mark--film:not(.is-logo) canvas {
	opacity: 0 !important;
}

html.wl-film .wl-hero-mark--film.is-logo canvas {
	transition-duration: 0.5s;
}

@keyframes wlf-still-back { from { opacity: 0; } to { opacity: 1; } }

/* Fallback W (no WebGL): drawn in the brand colours, then the still takes over. */
.wlf-wlogo { opacity: 0; }
.wl-hero-mark--film.is-fallback .wlf-wlogo { opacity: 1; }
.wl-hero-mark--film.is-fallback.is-done .wlf-wlogo { opacity: 0; transition: opacity 0.7s ease 0.2s; }
.wlf-w { fill: none; stroke-width: 11.4; stroke-linejoin: miter; }
.wlf-w--bone { stroke: var(--wl-bone); }
.wlf-w--fil { stroke: var(--wl-filament); }

/* ---- controls: pause / play, replay ---- */
.wlf-controls {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 3;
	display: flex;
	gap: 0.5rem;
	pointer-events: auto;
}

.wlf-controls[hidden] { display: none; }

.wlf-btn {
	display: inline-grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid var(--wl-slate);
	border-radius: 999px;
	background: rgba(11, 12, 14, 0.72);
	color: var(--wl-bone);
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wlf-btn:hover { border-color: var(--wl-steel); background: var(--wl-graphite); }
.wlf-btn:focus-visible { outline: 2px solid var(--wl-warp); outline-offset: 2px; }
.wlf-btn[hidden] { display: none; }
.wlf-ico { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.wlf-btn .wlf-ico--play { display: none; }
.wl-hero-mark--film.is-paused .wlf-btn .wlf-ico--play { display: block; }
.wl-hero-mark--film.is-paused .wlf-btn .wlf-ico--pause { display: none; }

/* ---- the AI message in the hero text ---- */
.wl-hero .wl-hero__inner > .wl-hero__ai {
	margin-block-start: 1.75rem;
	padding-inline-start: 1.25rem;
	border-inline-start: 2px solid var(--wl-filament);
}

.wl-hero__ai > * { margin: 0; }

.wl-hero__ai-title {
	font-size: clamp(1.5rem, 2.5vw, 2.125rem) !important;
	line-height: 1.15;
	font-weight: 500;
	letter-spacing: -0.015em;
	color: var(--wl-bone);
}

.wl-hero .wl-hero__ai p {
	hyphens: manual !important;
	-webkit-hyphens: manual !important;
}

.wl-hero__ai-text {
	margin-block-start: 0.5rem !important;
	max-width: 34rem;
	font-size: var(--wp--preset--font-size--lead, 1.125rem);
	line-height: 1.5;
	color: var(--wl-fog);
}

/* The facts line stops before the film frame; the text column lets clicks through to the film controls. */
@media (min-width: 48rem) {
	.wl-hero--mark:has(.wl-hero-mark--film) .wl-hero__inner { pointer-events: none; }
	.wl-hero--mark:has(.wl-hero-mark--film) .wl-hero__inner > * { pointer-events: auto; }

	.wl-hero--mark:has(.wl-hero-mark--film) .wl-hero__inner > .wl-hero__facts {
		max-width: min(40rem, 46vw);
	}
}

/* ---- phones: text and call to action first, then the film in a 4:5 frame ---- */
@media (max-width: 47.99rem) {
	.wl-hero.wl-hero--mark:has(.wl-hero-mark--film) {
		display: flex;
		flex-direction: column;
		padding-top: clamp(2rem, 8vw, 3rem);
	}

	.wl-hero--mark:has(.wl-hero-mark--film) .wl-hero__inner { display: contents; }
	.wl-hero--mark:has(.wl-hero-mark--film) .wl-hero__inner > .wl-label { order: 1; }
	.wl-hero--mark:has(.wl-hero-mark--film) .wl-hero__inner > h1 { order: 2; }
	.wl-hero--mark:has(.wl-hero-mark--film) .wl-hero__inner > .wl-hero__ai,
	.wl-hero--mark:has(.wl-hero-mark--film) .wl-hero__inner > .wl-lead { order: 3; margin-block-start: 1.25rem; }
	.wl-hero--mark:has(.wl-hero-mark--film) .wl-hero__inner > .wp-block-buttons { order: 4; margin-block-start: 1.5rem; }
	.wl-hero--mark:has(.wl-hero-mark--film) .wl-hero__inner > .wl-hero__facts { order: 6; margin-block-start: 2rem; }

	.wl-hero.wl-hero--mark > .wl-hero-mark--film {
		order: 5;
		flex-shrink: 0;
		height: auto !important;
		aspect-ratio: 4 / 5;
		margin-block: 2rem 0 !important;
	}

	.wl-hero__ai-text { font-size: 1.0625rem; }

	.wlf-controls { top: auto; bottom: 0.625rem; }
}
