/* ==========================================================================
   Stalwart — "precision engineering lab"
   Light brushed steel, chamfered panels, wide uppercase display type, cyan circuit
   traces and Stalwart purple for primary actions. Dark mode overrides the same tokens.
   One accent per domain.
   ========================================================================== */

:root {
	--stw-radius: 2px;
	--stw-radius-sm: 2px;
	--stw-cut: 14px;
	--stw-cut-sm: 8px;
	--stw-gap: clamp(1rem, 2.4vw, 1.5rem);
	--stw-section: clamp(3rem, 7vw, 5.5rem);
	--stw-measure: 72ch;
	--stw-ease: cubic-bezier(.2, .7, .2, 1);
	--accent: var(--wp--preset--color--brand-bright);
	--stw-edge: var(--wp--preset--color--line);
	--stw-brand-hover: #3b0b91;
	--stw-hero-glow: 12%;
	--stw-cta-glow: 14%;
	--stw-shadow: 0 24px 60px -24px rgba(15, 26, 36, .25);
	--stw-glow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 14px 40px -18px color-mix(in srgb, var(--accent) 40%, transparent);
	--stw-grid-color: color-mix(in srgb, var(--wp--preset--color--line) 75%, transparent);
	--stw-grid: linear-gradient(var(--stw-grid-color) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, var(--stw-grid-color) 1px, transparent 1px) 0 0 / 28px 28px;
	--stw-panel: linear-gradient(180deg, var(--wp--preset--color--surface), color-mix(in srgb, var(--wp--preset--color--surface-2) 40%, var(--wp--preset--color--surface)));
	--stw-steel: repeating-linear-gradient(90deg, transparent 0 2px, rgba(15, 26, 36, .02) 2px 3px), linear-gradient(180deg, #fbfcfd, #e9edf1);
	--stw-trace: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='g' x='-5%25' y='-100%25' width='110%25' height='300%25'%3E%3CfeGaussianBlur stdDeviation='2.5'/%3E%3C/filter%3E%3C/defs%3E%3Cg fill='none' stroke='%2306B6D4' vector-effect='non-scaling-stroke'%3E%3Cpath filter='url(%23g)' stroke-width='3' opacity='.55' d='M0 40H330L356 14H700L726 40H1200'/%3E%3Cpath stroke-width='1.25' d='M0 40H330L356 14H700L726 40H1200'/%3E%3Cpath stroke-width='1' opacity='.45' d='M0 46H360L380 26H660L680 46H1200'/%3E%3C/g%3E%3C/svg%3E");
	color-scheme: light;
}

html[data-theme="dark"] {
	--wp--preset--color--bg: #0d1318;
	--wp--preset--color--surface: #141c23;
	--wp--preset--color--surface-2: #19232c;
	--wp--preset--color--line: #293642;
	--wp--preset--color--text: #e5ecf1;
	--wp--preset--color--muted: #93a2af;
	--wp--preset--color--brand-bright: #3cd3ea;
	--wp--preset--color--glow: #22d3ee;
	--wp--preset--color--auto: #4da3ff;
	--wp--preset--color--defence: #d9ae3b;
	--wp--preset--color--semi: #b79bff;
	--wp--preset--color--embedded: #3dd6c0;
	--stw-brand-hover: #5b21c9;
	--stw-hero-glow: 24%;
	--stw-cta-glow: 40%;
	--stw-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55);
	--stw-glow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 10px 40px -12px color-mix(in srgb, var(--accent) 45%, transparent);
	--stw-steel: repeating-linear-gradient(90deg, transparent 0 2px, rgba(255, 255, 255, .018) 2px 3px), linear-gradient(180deg, #18222b, #10171d);
	color-scheme: dark;
}

.stw-accent--auto { --accent: var(--wp--preset--color--auto); }
.stw-accent--defence { --accent: var(--wp--preset--color--defence); }
.stw-accent--semi { --accent: var(--wp--preset--color--semi); }
.stw-accent--embedded { --accent: var(--wp--preset--color--embedded); }
.stw-accent--brand { --accent: var(--wp--preset--color--brand-bright); }

/* ------------------------------------------------------------------ base */

html, body { overflow-x: clip; }
body {
	background: var(--wp--preset--color--bg);
	color: var(--wp--preset--color--text);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-feature-settings: "ss01", "cv11";
}
::selection { background: color-mix(in srgb, var(--wp--preset--color--brand) 70%, transparent); color: #fff; }
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 3px;
}
img { max-width: 100%; height: auto; }
.stw-section p, .stw-section li, .stw-prose p, .stw-prose li { max-width: var(--stw-measure); }
.stw-expansion { margin-left: 0 !important; }
.stw-main { padding-bottom: var(--stw-section); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.stw-muted { color: var(--wp--preset--color--muted); }
code, kbd, pre { font-family: var(--wp--preset--font-family--mono); font-size: .92em; }

/* ------------------------------------------------------------------ buttons */

.stw-btn,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .8rem 1.25rem;
	border-radius: var(--stw-radius-sm);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background .2s var(--stw-ease), border-color .2s var(--stw-ease), transform .2s var(--stw-ease), color .2s;
	cursor: pointer;
	white-space: nowrap;
}
.stw-btn--primary { background: var(--wp--preset--color--brand); color: #fff; }
.stw-btn--primary:hover { background: var(--stw-brand-hover); color: #fff; transform: translateY(-1px); }
.stw-btn--ghost,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--text);
	border-color: var(--wp--preset--color--line);
}
.stw-btn--ghost:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--accent); color: var(--wp--preset--color--text); }
.stw-btn--sm { padding: .55rem .9rem; }
.stw-btn[disabled] { opacity: .6; cursor: progress; }

/* ------------------------------------------------------------------ chips */

.stw-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.stw-chips li { margin: 0; }
.stw-chip {
	display: inline-block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: .78rem;
	letter-spacing: .01em;
	line-height: 1;
	padding: .45rem .6rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 4px;
	color: var(--wp--preset--color--text);
	background: color-mix(in srgb, var(--wp--preset--color--surface) 70%, transparent);
	text-decoration: none;
	cursor: default;
	overflow-wrap: anywhere;
}
a.stw-chip, button.stw-chip { cursor: pointer; }
a.stw-chip:hover, button.stw-chip:hover { border-color: var(--accent); color: var(--wp--preset--color--text); }
.stw-chip::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: .45rem; vertical-align: middle; background: var(--accent); border-radius: 1px; }
.stw-chips--sm .stw-chip { font-size: .7rem; padding: .35rem .5rem; }
.stw-chips--muted .stw-chip { color: var(--wp--preset--color--muted); }
.stw-chips--muted .stw-chip::before { background: var(--wp--preset--color--line); }

.stw-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: .75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--accent);
	margin: 0 0 .75rem;
}

/* ------------------------------------------------------------------ header */

.stw-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--wp--preset--color--bg) 82%, transparent);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.admin-bar .stw-site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.stw-header {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding: .6rem clamp(1rem, 4vw, 2.5rem);
	gap: 1.5rem;
	min-height: 68px;
}
.stw-logo { display: inline-flex; flex-shrink: 0; }
.stw-logo__img { height: 44px; width: auto; display: block; }
.stw-logo__img--dark { display: none; }
html[data-theme="dark"] .stw-logo__img--dark { display: block; }
html[data-theme="dark"] .stw-logo__img--light { display: none; }

.stw-nav { flex: 1; }
.stw-nav .wp-block-navigation__container { gap: clamp(.6rem, 1.4vw, 1.4rem); }
.stw-nav .wp-block-navigation-item__content { white-space: nowrap; color: var(--wp--preset--color--text); text-decoration: none; padding: .4rem 0; }
.stw-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--brand-bright); }
.stw-nav .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--surface) !important;
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: var(--stw-radius);
	padding: .5rem !important;
	min-width: 270px !important;
	box-shadow: var(--stw-shadow);
}
.stw-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .5rem .65rem !important; border-radius: 6px; font-size: .875rem; }
.stw-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--surface-2); }
.stw-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--bg); color: var(--wp--preset--color--text); padding: 1.5rem; }
.stw-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: none; background: transparent !important; padding: 0 0 0 1rem !important; }

.stw-header__actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.stw-mode {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--line);
	background: transparent;
	color: var(--wp--preset--color--text);
	cursor: pointer;
}
.stw-mode:hover { border-color: var(--wp--preset--color--brand-bright); }

@media (max-width: 1180px) {
	.stw-header__actions .stw-btn--ghost { display: none; }
}
@media (max-width: 600px) {
	.stw-logo__img { height: 38px; }
	.stw-header__actions .stw-btn--primary { display: none; }
	.stw-header { gap: .75rem; }
}

/* ------------------------------------------------------------------ hero */

.stw-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: center;
	padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem);
	border-bottom: 1px solid var(--wp--preset--color--line);
	margin-bottom: var(--stw-section);
	position: relative;
}
.stw-hero__title { font-size: var(--wp--preset--font-size--xxxl); margin: 0 0 1.25rem; max-width: 22ch; }
.stw-answer {
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.55;
	color: var(--wp--preset--color--text);
	border-left: 2px solid var(--accent);
	padding-left: 1.1rem;
	margin: 0 0 1.5rem;
	max-width: 62ch;
}
.stw-hero__chips { margin-bottom: 1.5rem; }
.stw-hero__ctas { display: flex; flex-wrap: wrap; gap: .6rem; }
.stw-hero__art { color: var(--accent); max-width: 420px; justify-self: end; width: 100%; }
@media (max-width: 860px) {
	.stw-hero { grid-template-columns: 1fr; }
	.stw-hero__art { display: none; }
}

.stw-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1.25rem; padding: 0; font-family: var(--wp--preset--font-family--mono); font-size: .75rem; color: var(--wp--preset--color--muted); }
.stw-crumbs li { margin: 0; }
.stw-crumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .5; }
.stw-crumbs a { color: var(--wp--preset--color--muted); text-decoration: none; }
.stw-crumbs a:hover { color: var(--wp--preset--color--text); }
.stw-crumbs [aria-current] { color: var(--wp--preset--color--text); }

/* ------------------------------------------------------------------ line art */

.stw-art { width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.stw-art circle, .stw-art rect { stroke: color-mix(in srgb, currentColor 75%, transparent); }
.stw-art .stw-die { fill: color-mix(in srgb, currentColor 22%, transparent); }
.stw-art .stw-trace { stroke-dasharray: 600; stroke-dashoffset: 600; animation: stw-draw 2.6s var(--stw-ease) forwards; }
.stw-art .stw-trace--slow { animation-duration: 4.5s; opacity: .7; }
.stw-art .stw-sweep { transform-origin: 160px 110px; animation: stw-draw 1.4s forwards, stw-sweep 6s linear infinite 1.4s; }
.stw-art--hero .stw-sweep { transform-origin: 440px 110px; }
.stw-art .stw-grid-lines path { stroke: var(--wp--preset--color--line); stroke-width: .6; }
.stw-hero-auto { color: var(--wp--preset--color--auto); }
.stw-hero-radar { color: var(--wp--preset--color--defence); }
.stw-hero-chip { color: var(--wp--preset--color--semi); }
@keyframes stw-draw { to { stroke-dashoffset: 0; } }
@keyframes stw-sweep { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ home hero */

.stw-home-hero {
	position: relative;
	padding-top: clamp(3rem, 8vw, 6.5rem);
	padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: radial-gradient(closest-side at 78% 42%, color-mix(in srgb, var(--wp--preset--color--brand) var(--stw-hero-glow), transparent), transparent);
	margin-bottom: 0;
}
.stw-home-hero__inner > *, .stw-hero > * { min-width: 0; }
.stw-home-hero__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.stw-display { font-size: var(--wp--preset--font-size--display) !important; line-height: 1.02 !important; letter-spacing: -.045em !important; margin: 0 0 1.5rem; max-width: 15ch; }
.stw-home-hero .stw-answer { --accent: var(--wp--preset--color--brand-bright); }
.stw-hero-buttons { gap: .6rem; }
.stw-home-hero__art { color: var(--wp--preset--color--brand-bright); }
@media (max-width: 860px) {
	.stw-home-hero__inner { grid-template-columns: 1fr; }
	.stw-home-hero__art { max-width: 420px; opacity: .9; }
}

/* ------------------------------------------------------------------ concierge */

.stw-ask { margin-top: clamp(2rem, 4vw, 3rem); }
.stw-ask__form {
	display: flex;
	align-items: center;
	gap: .5rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--stw-radius);
	padding: .45rem .45rem .45rem 1rem;
	transition: border-color .2s, box-shadow .2s;
}
.stw-ask__form:focus-within { border-color: var(--wp--preset--color--brand-bright); box-shadow: var(--stw-glow); }
.stw-ask__prompt { font-family: var(--wp--preset--font-family--mono); color: var(--wp--preset--color--brand-bright); font-size: .9rem; }
.stw-ask input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--text);
	font: inherit;
	font-size: var(--wp--preset--font-size--md);
	padding: .6rem .25rem;
}
.stw-ask input:focus { outline: none; }
.stw-ask input::placeholder { color: var(--wp--preset--color--muted); }
.stw-ask__samples { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: .75rem 0 0; }
.stw-ask__samples li { margin: 0; }
.stw-ask__answer {
	margin-top: 1rem;
	padding: 1.25rem 1.4rem;
	border: 1px solid var(--wp--preset--color--line);
	border-left: 2px solid var(--wp--preset--color--brand-bright);
	border-radius: var(--stw-radius);
	background: var(--wp--preset--color--surface);
}
.stw-ask__answer[aria-busy="true"] { color: var(--wp--preset--color--muted); }
.stw-ask__sources { margin: .25rem 0 1rem; padding-left: 1.25rem; }
.stw-ask__fine { font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--muted); margin: .5rem 0 0; }
.stw-cite { font-family: var(--wp--preset--font-family--mono); font-size: .8em; text-decoration: none; }
.stw-ask--compact { margin: 0 0 2rem; }
@media (max-width: 600px) {
	.stw-ask__prompt { display: none; }
	.stw-ask__form { padding-left: .6rem; }
}

/* ------------------------------------------------------------------ sections and cards */

.stw-section { margin-block: var(--stw-section) 0; }
.stw-main > .stw-section:first-child, .wp-block-post-content > .stw-section:first-child { margin-top: 0; }
.stw-section > *, .stw-feed > *, .stw-proof > * { margin-left: 0 !important; margin-right: 0 !important; }
.stw-section > h2, .stw-feed__head h2 { margin: 0 0 1.5rem; max-width: 30ch; font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
.stw-spec__row h3 { font-family: var(--wp--preset--font-family--mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--wp--preset--color--muted); margin: 1.25rem 0 .6rem; }
.stw-lead { font-size: var(--wp--preset--font-size--lg); color: var(--wp--preset--color--muted); }

.stw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: var(--stw-gap); margin: 0; padding: 0; }
.stw-card {
	position: relative;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--stw-radius);
	padding: 1.4rem 1.4rem 1.3rem;
	transition: border-color .25s var(--stw-ease), transform .25s var(--stw-ease), box-shadow .25s;
	margin: 0 !important;
}
.stw-card > * { margin-top: 0; }
.stw-card h3 { font-size: 1.15rem; margin: 0 0 .5rem; letter-spacing: -.01em; }
.stw-card h3 a { color: inherit; text-decoration: none; }
.stw-card p { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--sm); margin: 0 0 .6rem; }
.stw-card p:last-child { margin-bottom: 0; }
.stw-card:has(a.stw-stretched):hover, .stw-card--link:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--stw-glow); }
.stw-card--link { display: block; text-decoration: none; color: inherit; }
.stw-card--link:hover { color: inherit; }
.stw-card__more { position: absolute; right: 1.2rem; bottom: 1rem; color: var(--accent); font-family: var(--wp--preset--font-family--mono); }
.stw-card__meta { font-family: var(--wp--preset--font-family--mono); font-size: .72rem !important; text-transform: uppercase; letter-spacing: .08em; color: var(--accent) !important; }
.stw-stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.stw-card .stw-chips { position: relative; z-index: 1; margin-top: .8rem; }
.stw-metric strong { color: var(--accent); font-size: 1.4rem; font-weight: 700; margin-right: .25rem; }

.stw-step-no { font-family: var(--wp--preset--font-family--mono); font-size: .8rem !important; color: var(--accent) !important; margin-bottom: .75rem !important; letter-spacing: .05em; }
.stw-steps { counter-reset: step; }
.stw-steps .stw-card { border-top: 2px solid var(--accent); }

/* Section content from the editor keeps the domain accent of its page. */
.stw-main .wp-block-post-content { --accent: inherit; }

/* ------------------------------------------------------------------ tables, lists, prose */

.stw-table, .wp-block-table { margin: 0; overflow-x: auto; }
.wp-block-table table { border-collapse: collapse; width: 100%; min-width: 560px; }
.wp-block-table th, .wp-block-table td { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: .8rem 1rem .8rem 0; text-align: left; vertical-align: top; }
.wp-block-table thead th { font-family: var(--wp--preset--font-family--mono); font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--wp--preset--color--muted); border-bottom: 1px solid var(--wp--preset--color--text); }
.wp-block-table td:first-child { font-weight: 600; }
.stw-section--list ul { padding-left: 1.1rem; }
.stw-section--list li { margin-bottom: .45rem; }
.stw-section--list li::marker { color: var(--accent); content: "▸  "; }
.stw-prose { font-size: 1.0625rem; }
.stw-prose h2 { margin-top: 2.5rem; }
.stw-expansion { font-family: var(--wp--preset--font-family--mono); font-size: .85rem; color: var(--wp--preset--color--muted); }
.stw-article-meta { font-family: var(--wp--preset--font-family--mono); font-size: .8rem; color: var(--wp--preset--color--muted); margin: -2rem 0 2rem; gap: 1rem; }
.stw-article-meta a { color: var(--wp--preset--color--muted); }

/* ------------------------------------------------------------------ feeds, tickers, stats */

.stw-feed__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.stw-feed__intro { color: var(--wp--preset--color--muted); margin-top: -1rem; }
.stw-link-more { font-family: var(--wp--preset--font-family--mono); font-size: .8rem; text-decoration: none; }

.stw-ticker {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin-top: var(--stw-section);
	padding: 1rem 1.25rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--stw-radius);
	background: var(--wp--preset--color--surface);
	font-family: var(--wp--preset--font-family--mono);
	font-size: .875rem;
}
.stw-ticker p { margin: 0; }
.stw-ticker__dot { width: 8px; height: 8px; border-radius: 50%; background: #2bd47d; box-shadow: 0 0 0 0 rgba(43, 212, 125, .6); animation: stw-pulse 2s infinite; flex-shrink: 0; }
@keyframes stw-pulse { 70% { box-shadow: 0 0 0 10px rgba(43, 212, 125, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 212, 125, 0); } }

.stw-stats dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: var(--stw-gap); margin: 0; }
.stw-stats dl > div { border-top: 1px solid var(--wp--preset--color--line); padding-top: 1rem; display: flex; flex-direction: column-reverse; }
.stw-stats dd { margin: 0; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.stw-stats dt { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--sm); margin-top: .5rem; }
.stw-stats__inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--stw-gap); margin: 0 0 2rem; }
.stw-stats__inline dd { margin: 0; font-size: 2.2rem; font-weight: 700; color: var(--accent); }
.stw-stats__inline dt { color: var(--wp--preset--color--muted); font-size: .9rem; }

/* ------------------------------------------------------------------ domains */

.stw-domains { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--stw-gap); }
.stw-domain {
	position: relative;
	padding: 1.5rem;
	min-height: 290px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--stw-radius);
	background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--wp--preset--color--surface)), var(--wp--preset--color--surface));
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: border-color .25s, transform .25s var(--stw-ease), box-shadow .25s;
}
.stw-domain:hover, .stw-domain.is-preferred { border-color: var(--accent); box-shadow: var(--stw-glow); }
.stw-domain:hover { transform: translateY(-3px); }
.stw-domain__art { color: var(--accent); width: 120px; margin-bottom: auto; opacity: .9; }
.stw-domain h3 { margin: 1.25rem 0 .4rem; font-size: 1.35rem; }
.stw-domain h3 a { color: inherit; text-decoration: none; }
.stw-domain p { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--sm); margin: 0 0 .9rem; }
.stw-domain__chips { position: relative; z-index: 1; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s var(--stw-ease), opacity .3s; }
.stw-domain:hover .stw-domain__chips, .stw-domain:focus-within .stw-domain__chips { max-height: 24rem; opacity: 1; }
@media (hover: none) { .stw-domain__chips { max-height: none; opacity: 1; } }
@media (max-width: 600px) { .stw-domain { min-height: 0; } .stw-domain__art { width: 80px; } }

/* ------------------------------------------------------------------ proof strip */

.stw-proof { margin-top: var(--stw-section); padding: 2rem 0; border-block: 1px solid var(--wp--preset--color--line); display: grid; gap: .9rem; }
.stw-proof__title { font-family: var(--wp--preset--font-family--mono); font-size: .75rem !important; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--wp--preset--color--muted); margin: 0; }

/* ------------------------------------------------------------------ team, author */

.stw-person { border: 1px solid var(--wp--preset--color--line); border-radius: var(--stw-radius); padding: 1.25rem; background: var(--wp--preset--color--surface); }
.stw-person__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: 1rem; filter: grayscale(.2); }
.stw-person__photo--empty { display: grid; place-items: center; background: var(--wp--preset--color--surface-2); font-size: 3rem; font-weight: 600; color: var(--wp--preset--color--muted); }
.stw-person h3 { margin: 0; font-size: 1.15rem; }
.stw-person h3 a { color: inherit; text-decoration: none; }
.stw-person__role { color: var(--wp--preset--color--muted); margin: .2rem 0 .6rem; font-size: .9rem; }
.stw-person__years { font-family: var(--wp--preset--font-family--mono); font-size: .8rem; }
.stw-person__years strong { color: var(--wp--preset--color--brand-bright); font-size: 1.05rem; }
.stw-person__creds { padding-left: 1rem; font-size: .85rem; color: var(--wp--preset--color--muted); }
.stw-person__li { font-size: .85rem; }

.stw-author { display: flex; gap: 1rem; align-items: center; margin: 3rem auto 0; max-width: 760px; padding: 1.25rem; border: 1px solid var(--wp--preset--color--line); border-radius: var(--stw-radius); }
.stw-author p { margin: 0; }
.stw-author .stw-eyebrow { margin-bottom: .25rem; }
.stw-author__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.stw-author__name a { font-weight: 600; color: var(--wp--preset--color--text); }
.stw-author__date { font-size: .8rem; color: var(--wp--preset--color--muted); }

/* ------------------------------------------------------------------ FAQ */

.stw-faq details { border-bottom: 1px solid var(--wp--preset--color--line); }
.stw-faq details:first-of-type { border-top: 1px solid var(--wp--preset--color--line); }
.stw-faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; }
.stw-faq summary::-webkit-details-marker { display: none; }
.stw-faq summary h3 { margin: 0; font-size: 1.1rem; font-weight: 500; letter-spacing: -.005em; }
.stw-faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-family: var(--wp--preset--font-family--mono); font-size: 1.3rem; color: var(--accent); transition: transform .2s; }
.stw-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.stw-faq__a { padding: 0 0 1.25rem; color: var(--wp--preset--color--muted); }
.stw-faq__a p { margin: 0; }

/* ------------------------------------------------------------------ CTAs */

.stw-staffing {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: var(--stw-section);
	padding: 1.25rem 1.5rem;
	border: 1px dashed color-mix(in srgb, var(--accent) 60%, var(--wp--preset--color--line));
	border-radius: var(--stw-radius);
}
.stw-staffing p { margin: 0; font-weight: 600; font-size: 1.1rem; }

.stw-cta {
	margin-top: var(--stw-section);
	padding: clamp(2rem, 5vw, 3.5rem);
	border-radius: calc(var(--stw-radius) * 1.5);
	background:
		radial-gradient(40rem 20rem at 100% 0%, color-mix(in srgb, var(--wp--preset--color--brand) var(--stw-cta-glow), transparent), transparent 70%),
		var(--wp--preset--color--surface-2);
	border: 1px solid var(--wp--preset--color--line);
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) auto;
	gap: 1.5rem;
	align-items: center;
}
.stw-cta__text { font-size: clamp(1.35rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.stw-cta__btns { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 760px) { .stw-cta { grid-template-columns: 1fr; } }

.stw-conclave {
	padding: clamp(2rem, 5vw, 3.5rem) !important;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: calc(var(--stw-radius) * 1.5);
	background: linear-gradient(135deg, color-mix(in srgb, var(--wp--preset--color--auto) 12%, var(--wp--preset--color--surface)), var(--wp--preset--color--surface));
	--accent: var(--wp--preset--color--auto);
}
.stw-conclave p { color: var(--wp--preset--color--muted); }

/* ------------------------------------------------------------------ forms */

.stw-form-wrap { margin-top: var(--stw-section); padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--wp--preset--color--line); border-radius: calc(var(--stw-radius) * 1.5); background: var(--wp--preset--color--surface); scroll-margin-top: 90px; }
.stw-form__title { margin-top: 0; }
.stw-form fieldset { border: 0; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem 1.25rem; }
.stw-form legend { font-family: var(--wp--preset--font-family--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--wp--preset--color--brand-bright); margin-bottom: 1rem; }
.stw-form__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem 1.25rem; }
.stw-form__fields > fieldset, .stw-field--wide, .stw-consent { grid-column: 1 / -1; }
.stw-field { margin: 0; display: flex; flex-direction: column; gap: .35rem; max-width: none !important; }
.stw-field label { font-size: .875rem; font-weight: 500; }
.stw-field small { color: var(--wp--preset--color--muted); font-size: .78rem; }
.stw-form input:not([type="checkbox"]), .stw-form select, .stw-form textarea {
	box-sizing: border-box;
	width: 100%;
	font: inherit;
	font-size: .95rem;
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--bg);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--stw-radius-sm);
	padding: .7rem .8rem;
}
.stw-form input:focus, .stw-form select:focus, .stw-form textarea:focus { outline: none; border-color: var(--wp--preset--color--brand-bright); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--brand-bright) 25%, transparent); }
.stw-role-row { display: grid; grid-template-columns: 2fr .7fr 1.2fr; gap: .75rem; grid-column: 1 / -1; }
.stw-roles { display: grid; gap: .75rem; grid-column: 1 / -1; }
.stw-add-role { justify-self: start; grid-column: 1 / -1; }
@media (max-width: 640px) { .stw-role-row { grid-template-columns: 1fr; } }
.stw-consent label { font-size: .85rem; font-weight: 400; display: block; position: relative; padding-left: 1.7rem; }
.stw-consent input[type="checkbox"] { position: absolute; left: 0; top: .15rem; margin: 0; width: 1rem; height: 1rem; }
.stw-hp { position: absolute !important; left: -9999px; }
.stw-form__actions { margin: 1rem 0 0; }
.stw-form__status { margin-top: 1rem; font-weight: 500; }
.stw-brief { white-space: pre-wrap; font-family: var(--wp--preset--font-family--mono); font-size: .85rem; line-height: 1.6; background: var(--wp--preset--color--bg); border: 1px solid var(--wp--preset--color--line); border-left: 2px solid var(--wp--preset--color--brand-bright); border-radius: var(--stw-radius-sm); padding: 1.25rem; margin-top: 1rem; }
.stw-notice { padding: .9rem 1rem; border-radius: var(--stw-radius-sm); background: color-mix(in srgb, #2bd47d 15%, transparent); }

/* ------------------------------------------------------------------ talent match, ASIL */

.stw-match { margin-top: var(--stw-section); }
.stw-match__results { margin-top: 1.5rem; }
.stw-asil { margin-bottom: var(--stw-section); padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--wp--preset--color--line); border-radius: calc(var(--stw-radius) * 1.5); background: var(--wp--preset--color--surface); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: center; }
.stw-asil h2 { grid-column: 1 / -1; margin: 0; }
.stw-asil__form { display: grid; gap: 1rem; }
.stw-asil__result { display: grid; place-items: center; text-align: center; aspect-ratio: 1; max-width: 260px; width: 100%; justify-self: center; border-radius: 50%; border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); transition: border-color .3s, background .3s; }
.stw-asil__level { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -.03em; display: block; }
.stw-asil__note { font-family: var(--wp--preset--font-family--mono); font-size: .8rem; color: var(--wp--preset--color--muted); display: block; margin-top: -2.5rem; }
.stw-asil[data-level="d"] { --accent: #ff5d5d; }
.stw-asil[data-level="c"] { --accent: #ff9f43; }
.stw-asil[data-level="b"] { --accent: var(--wp--preset--color--defence); }
.stw-asil[data-level="a"] { --accent: var(--wp--preset--color--auto); }
.stw-asil[data-level="qm"] { --accent: var(--wp--preset--color--embedded); }
.stw-asil__disclaimer { grid-column: 1 / -1; font-size: .82rem; color: var(--wp--preset--color--muted); margin: 0; }
@media (max-width: 760px) { .stw-asil { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ glossary, jobs, archive */

.stw-glossary__az { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 2rem; position: sticky; top: 76px; z-index: 5; padding: .5rem 0; background: var(--wp--preset--color--bg); }
.stw-glossary__az a { font-family: var(--wp--preset--font-family--mono); min-width: 2rem; text-align: center; padding: .35rem; border: 1px solid var(--wp--preset--color--line); border-radius: 4px; text-decoration: none; }
.stw-glossary section { margin-bottom: 2.5rem; scroll-margin-top: 140px; }
.stw-glossary dt a { color: var(--wp--preset--color--text); font-weight: 600; text-decoration: none; }
.stw-glossary dd { margin: .4rem 0 0; color: var(--wp--preset--color--muted); font-size: .9rem; }

.stw-job { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.stw-job > * { margin: 0 !important; }
@media (max-width: 900px) { .stw-job { grid-template-columns: 1fr; } }
.stw-jobfacts { position: sticky; top: 90px; padding: 1.4rem; border: 1px solid var(--wp--preset--color--line); border-radius: var(--stw-radius); background: var(--wp--preset--color--surface); }
.stw-jobfacts dl { margin: 0 0 1rem; display: grid; gap: .8rem; }
.stw-jobfacts dt { font-family: var(--wp--preset--font-family--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--wp--preset--color--muted); }
.stw-jobfacts dd { margin: .15rem 0 0; font-weight: 500; }
.stw-jobfacts h2 { font-size: 1.1rem; }
.stw-job .stw-form-wrap { grid-column: 1; }

.stw-case__flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: var(--stw-gap); margin-bottom: 2rem; }
.stw-case__flow h2 { font-size: 1rem; font-family: var(--wp--preset--font-family--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }

.stw-pagination { display: flex; gap: .4rem; margin-top: 2.5rem; flex-wrap: wrap; font-family: var(--wp--preset--font-family--mono); }
.stw-pagination .page-numbers { padding: .45rem .75rem; border: 1px solid var(--wp--preset--color--line); border-radius: 4px; text-decoration: none; }
.stw-pagination .current { background: var(--wp--preset--color--brand); color: #fff; border-color: transparent; }
.stw-empty { padding: 2rem; border: 1px dashed var(--wp--preset--color--line); border-radius: var(--stw-radius); color: var(--wp--preset--color--muted); }
.stw-locations { margin-top: 2rem !important; }
.stw-locations address { font-style: normal; }
.stw-search { max-width: 640px; margin-bottom: 2rem; }

.stw-editor-note { padding: .9rem 1.1rem; margin-top: 1.5rem; border: 1px dashed var(--wp--preset--color--defence); border-radius: var(--stw-radius-sm); color: var(--wp--preset--color--defence); font-family: var(--wp--preset--font-family--mono); font-size: .78rem; }

/* ------------------------------------------------------------------ footer */

.stw-site-footer { border-top: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--surface); margin-top: 0; }
.stw-footer { padding-block: clamp(2.5rem, 6vw, 4.5rem) 2rem; font-size: var(--wp--preset--font-size--sm); }
.stw-footer__grid { display: grid; grid-template-columns: minmax(14rem, 1.6fr) repeat(4, minmax(9rem, 1fr)); gap: 2rem; }
@media (max-width: 960px) { .stw-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stw-footer__brand { grid-column: 1 / -1; } }
.stw-footer__brand p { color: var(--wp--preset--color--muted); max-width: 36ch; }
.stw-footer__certs { font-family: var(--wp--preset--font-family--mono); font-size: .75rem; }
.stw-footer__col h2 { font-family: var(--wp--preset--font-family--mono); font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--wp--preset--color--muted); margin: .5rem 0 1rem; }
.stw-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.stw-footer a { color: var(--wp--preset--color--text); text-decoration: none; }
.stw-footer a:hover { color: var(--wp--preset--color--brand-bright); }
.stw-footer__offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--muted); }
.stw-footer__offices address { font-style: normal; line-height: 1.7; }
.stw-footer__offices strong { color: var(--wp--preset--color--text); }
.stw-footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; color: var(--wp--preset--color--muted); font-size: .8rem; }
.stw-footer__legal p { margin: 0; }
.stw-footer__legal ul { display: flex; gap: 1.25rem; }


/* ------------------------------------------------------------------ 3D scenes */

.stw-hero__art, .stw-home-hero__art, .stw-explorer__stage { position: relative; }
.stw-hero__art.is-3d, .stw-home-hero__art.is-3d { aspect-ratio: 4 / 3; max-width: 560px; }
.stw-home-hero__art.is-3d { aspect-ratio: 5 / 4; max-width: none; }
@media (max-width: 860px) { .stw-home-hero__art.is-3d { aspect-ratio: 4 / 3; max-width: 520px; width: 100%; margin-inline: auto; } }
.is-3d > svg { display: none; }
.stw-3d__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; animation: stw-fade-in .9s var(--stw-ease) both; }
@keyframes stw-fade-in { from { opacity: 0; } to { opacity: 1; } }
.stw-3d__caption {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-align: center;
	font-family: var(--wp--preset--font-family--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--wp--preset--color--muted); pointer-events: none; max-width: none !important;
}

/* Vehicle explorer */
.stw-explorer__layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(16rem, 1fr); gap: var(--stw-gap); align-items: start; }
@media (max-width: 900px) { .stw-explorer__layout { grid-template-columns: 1fr; } }
.stw-explorer__stage {
	aspect-ratio: 16 / 10; border: 1px solid var(--wp--preset--color--line); border-radius: calc(var(--stw-radius) * 1.5); overflow: hidden;
	background: radial-gradient(closest-side at 50% 60%, color-mix(in srgb, var(--accent) 12%, transparent), transparent), var(--wp--preset--color--surface);
	color: var(--accent);
}
.stw-explorer__stage > svg { width: 70%; margin: 8% auto 0; display: block; }
.stw-explorer__stage.is-3d > svg { display: none; }
.stw-explorer__list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.stw-explorer__list li { margin: 0; }
.stw-explorer__fallback, .stw-explorer__pick {
	display: inline-block; font-family: var(--wp--preset--font-family--mono); font-size: .78rem; padding: .5rem .7rem;
	border: 1px solid var(--wp--preset--color--line); border-radius: 4px; background: transparent; color: var(--wp--preset--color--text); text-decoration: none; cursor: pointer;
}
.stw-explorer__pick { display: none; }
.stw-explorer.is-ready .stw-explorer__fallback { display: none; }
.stw-explorer.is-ready .stw-explorer__pick { display: inline-block; }
.stw-explorer__list .is-active .stw-explorer__pick, .stw-explorer__pick:hover { border-color: var(--accent); color: var(--accent); }
.stw-explorer__panel { padding: 1.4rem; border: 1px solid var(--wp--preset--color--line); border-left: 2px solid var(--accent); border-radius: var(--stw-radius); background: var(--wp--preset--color--surface); }
.stw-explorer__panel h3 { margin: 0 0 .5rem; }
.stw-explorer__panel p { color: var(--wp--preset--color--muted); }
.stw-explorer__chips { margin-bottom: 1rem; }

.stw-hotspot {
	position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: .45rem; padding: 0; border: 0; background: none; cursor: pointer;
	color: var(--wp--preset--color--text); font: 500 .72rem var(--wp--preset--font-family--mono); white-space: nowrap; will-change: transform; margin: -7px 0 0 -7px;
}
.stw-hotspot__dot { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 35%, var(--wp--preset--color--bg)); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: stw-ping 2.4s infinite; }
.stw-hotspot__label { padding: .25rem .45rem; border-radius: 4px; background: color-mix(in srgb, var(--wp--preset--color--bg) 80%, transparent); border: 1px solid var(--wp--preset--color--line); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.stw-hotspot:hover .stw-hotspot__label, .stw-hotspot:focus-visible .stw-hotspot__label, .stw-hotspot[aria-pressed="true"] .stw-hotspot__label { opacity: 1; transform: none; }
.stw-hotspot[aria-pressed="true"] .stw-hotspot__dot { background: var(--accent); }
@keyframes stw-ping { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 600px) { .stw-hotspot__label { display: none; } }

/* ------------------------------------------------------------------ industrial skin */

/* Chamfered panels. The clip cuts the top-left and bottom-right corners; ::before redraws
   the border along each cut, so --stw-edge follows hover colours like the real border. */
.stw-card, .stw-domain, .stw-person, .stw-cta, .stw-form-wrap, .stw-asil, .stw-explorer__panel,
.stw-explorer__stage, .stw-jobfacts, .stw-conclave, .stw-staffing, .stw-author, .stw-ticker,
.stw-hero__art:not(.is-3d), .stw-domain__art, .stw-empty, .stw-home-hero {
	--c: var(--stw-cut);
	position: relative;
	border-radius: 0;
	clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.stw-jobfacts { position: sticky; }
.stw-card::before, .stw-domain::before, .stw-person::before, .stw-cta::before, .stw-form-wrap::before,
.stw-asil::before, .stw-explorer__panel::before, .stw-explorer__stage::before, .stw-jobfacts::before,
.stw-conclave::before, .stw-staffing::before, .stw-author::before, .stw-ticker::before,
.stw-hero__art:not(.is-3d)::before, .stw-domain__art::before, .stw-empty::before {
	content: "";
	position: absolute;
	inset: -1px;
	pointer-events: none;
	z-index: 2;
	background:
		linear-gradient(135deg, transparent 50%, var(--stw-edge) 50% calc(50% + 1.2px), transparent calc(50% + 1.2px)) 0 0 / var(--c) var(--c) no-repeat,
		linear-gradient(135deg, transparent calc(50% - 1.2px), var(--stw-edge) calc(50% - 1.2px) 50%, transparent 50%) 100% 100% / var(--c) var(--c) no-repeat;
}
.stw-domain__art { --c: 10px; }

/* Panels: white plate with a faint brushed fall-off and a cyan index mark top-left. */
.stw-card, .stw-person, .stw-explorer__panel, .stw-jobfacts, .stw-form-wrap, .stw-asil, .stw-author {
	background:
		linear-gradient(90deg, var(--accent) 0 2.5rem, transparent 2.5rem) var(--stw-cut) 0 / calc(100% - var(--stw-cut)) 2px no-repeat,
		var(--stw-panel);
}
.stw-card:has(a.stw-stretched):hover, .stw-card--link:hover, .stw-domain:hover, .stw-domain.is-preferred {
	--stw-edge: var(--accent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), inset 0 -40px 50px -40px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* Display type: wide uppercase Saira for headings, labels and controls. */
.stw-display {
	font-size: clamp(2.3rem, 4.6vw, 3.9rem) !important;
	line-height: 1.04 !important;
	letter-spacing: .005em !important;
	font-stretch: 115%;
	font-weight: 700;
	max-width: 21ch;
}
.stw-hero__title { font-size: clamp(2rem, 3.6vw, 3rem); font-stretch: 112%; max-width: 26ch; }
.stw-prose h2, .stw-prose h3, .stw-faq h3 { text-transform: none; letter-spacing: 0; font-stretch: 100%; }

.stw-section > h2, .stw-feed__head h2 {
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: none;
	font-size: clamp(1.35rem, 2.3vw, 1.9rem);
	font-stretch: 112%;
	letter-spacing: .02em;
}
.stw-section > h2::after, .stw-feed__head h2::after {
	content: "";
	flex: 1 1 4rem;
	min-width: 3rem;
	height: 8px;
	background:
		linear-gradient(var(--wp--preset--color--line), var(--wp--preset--color--line)) left center / calc(100% - 2.75rem) 1px no-repeat,
		repeating-linear-gradient(-60deg, var(--wp--preset--color--muted) 0 1px, transparent 1px 5px) right center / 2.25rem 8px no-repeat;
	opacity: .8;
}
.stw-feed__head h2 { flex: 1; }

.stw-eyebrow { font-weight: 600; color: var(--accent); }
.stw-eyebrow::before { content: ""; display: inline-block; width: 1.5rem; height: 1px; margin-right: .6rem; vertical-align: middle; background: currentColor; }

.stw-card h3, .stw-domain h3, .stw-person h3, .stw-explorer__panel h3, .stw-jobfacts h2 {
	font-family: var(--wp--preset--font-family--display);
	text-transform: uppercase;
	letter-spacing: .03em;
	font-stretch: 108%;
	font-size: 1.05rem;
	line-height: 1.2;
}
.stw-domain h3 { font-size: 1.2rem; }

.stw-card p:last-child > a:only-child, .stw-link-more, .stw-explorer__link {
	font-family: var(--wp--preset--font-family--display);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--accent);
}
.stw-card p:last-child > a:only-child:hover, .stw-link-more:hover { color: var(--wp--preset--color--text); }

/* Buttons: chamfered plates. Primary stays Stalwart purple; hover lights a cyan sill. */
.stw-btn, .wp-block-button__link {
	--c: var(--stw-cut-sm);
	--stw-edge: var(--wp--preset--color--line);
	font-family: var(--wp--preset--font-family--display);
	font-size: .78rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	border-radius: 0 !important;
	clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.stw-btn--primary:hover, .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { box-shadow: inset 0 -2px 0 var(--wp--preset--color--glow); }
.stw-btn--ghost, .wp-block-button.is-style-outline .wp-block-button__link {
	background:
		linear-gradient(135deg, transparent 50%, var(--stw-edge) 50% calc(50% + 1.2px), transparent calc(50% + 1.2px)) 0 0 / var(--c) var(--c) no-repeat,
		linear-gradient(135deg, transparent calc(50% - 1.2px), var(--stw-edge) calc(50% - 1.2px) 50%, transparent 50%) 100% 100% / var(--c) var(--c) no-repeat,
		var(--wp--preset--color--surface);
	background-origin: border-box;
}
.stw-btn--ghost:hover, .wp-block-button.is-style-outline .wp-block-button__link:hover { --stw-edge: var(--accent); border-color: var(--accent); }

/* Header: frosted steel with a cyan trace along the bottom edge. */
.stw-site-header { background: color-mix(in srgb, var(--wp--preset--color--surface) 86%, transparent); }
.stw-site-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 1px;
	background: linear-gradient(90deg, transparent 4%, var(--wp--preset--color--glow) 18%, var(--wp--preset--color--glow) 34%, transparent 52%);
	opacity: .8;
}
.stw-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--display);
	font-size: .74rem;
	font-weight: 500;
	letter-spacing: .045em;
	text-transform: uppercase;
	box-shadow: inset 0 -2px 0 transparent;
	transition: box-shadow .2s, color .2s;
}
.stw-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--text);
	box-shadow: inset 0 -2px 0 var(--wp--preset--color--glow);
}
.stw-nav .wp-block-navigation__submenu-container { border-radius: 0; border-top: 2px solid var(--wp--preset--color--glow) !important; }
@media (max-width: 1560px) { .stw-header__actions .stw-btn--ghost { display: none; } }
.stw-nav .wp-block-navigation__container { gap: clamp(.5rem, 1.1vw, 1.25rem); }
.stw-mode { border-radius: 0; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }

/* Heroes: brushed steel, blueprint grid fading in behind the art, circuit trace on the sill. */
.stw-home-hero {
	background:
		radial-gradient(380px circle at var(--mx, -999px) var(--my, -999px), color-mix(in srgb, var(--wp--preset--color--glow) 14%, transparent), transparent 70%),
		radial-gradient(closest-side at 78% 42%, color-mix(in srgb, var(--wp--preset--color--brand) var(--stw-hero-glow), transparent), transparent),
		radial-gradient(closest-side at 62% 70%, color-mix(in srgb, var(--wp--preset--color--glow) 10%, transparent), transparent),
		linear-gradient(135deg, transparent 50%, var(--stw-edge) 50% calc(50% + 1.2px), transparent calc(50% + 1.2px)) 0 0 / var(--c) var(--c) no-repeat,
		linear-gradient(135deg, transparent calc(50% - 1.2px), var(--stw-edge) calc(50% - 1.2px) 50%, transparent 50%) 100% 100% / var(--c) var(--c) no-repeat,
		var(--stw-steel);
	background-origin: border-box;
	--c: 22px;
	border: 1px solid var(--wp--preset--color--line);
	padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}
.stw-home-hero::before, .stw-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: var(--stw-grid);
	-webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 70%);
	mask-image: linear-gradient(90deg, transparent 25%, #000 70%);
}
.stw-home-hero::after, .stw-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 48px;
	pointer-events: none;
	background: var(--stw-trace) center bottom / 100% 100% no-repeat;
}
.stw-home-hero > *, .stw-hero > * { position: relative; z-index: 1; }
.stw-hero { border-bottom: 0; padding-bottom: clamp(3rem, 5vw, 4.5rem); }
.stw-hero__art:not(.is-3d) { padding: 1.25rem; border: 1px solid var(--wp--preset--color--line); background: var(--stw-grid), var(--stw-panel); }

/* Concierge: a terminal plate. */
.stw-ask__form { border-radius: 0; background: var(--stw-panel); border-left: 2px solid var(--wp--preset--color--glow); }
.stw-ask__answer { border-radius: 0; }

/* Domain tiles: each opens with a framed blueprint "screen" for its line art. */
.stw-domain { background: var(--stw-panel); padding: 1rem 1rem 1.4rem; }
.stw-domain > :not(.stw-domain__art) { margin-inline: .5rem; }
.stw-domain__art {
	width: auto;
	height: 140px;
	margin: 0 0 .25rem;
	display: grid;
	place-items: center;
	opacity: 1;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--stw-grid), linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--wp--preset--color--surface)), var(--wp--preset--color--surface-2));
}
.stw-domain__art svg { width: 120px; }
.stw-domain h3 { margin-top: 1.1rem; }

/* Spec-sheet details: mono labels in cyan, values in ink. */
.stw-jobfacts dt, .stw-case__flow h2 { color: var(--accent); }
.stw-stats dd, .stw-stats__inline dd, .stw-asil__level, .stw-metric strong {
	font-family: var(--wp--preset--font-family--display);
	font-stretch: 115%;
	letter-spacing: 0;
}
.stw-stats dl > div { border-top: 2px solid; border-image: linear-gradient(90deg, var(--wp--preset--color--glow) 0 3rem, var(--wp--preset--color--line) 3rem) 1; }

.stw-chip { border-radius: 0; }
.stw-steps .stw-card { border-top: 1px solid var(--wp--preset--color--line); }
.stw-proof { border-block-color: var(--wp--preset--color--line); }

/* Call to action: recessed steel bay with purple and cyan light. */
.stw-cta {
	background:
		radial-gradient(40rem 20rem at 100% 0%, color-mix(in srgb, var(--wp--preset--color--brand) var(--stw-cta-glow), transparent), transparent 70%),
		radial-gradient(30rem 16rem at 0% 100%, color-mix(in srgb, var(--wp--preset--color--glow) 12%, transparent), transparent 70%),
		var(--stw-grid),
		var(--stw-steel);
}
.stw-cta__text { font-family: var(--wp--preset--font-family--display); font-stretch: 105%; }
.stw-conclave { background: var(--stw-grid), linear-gradient(135deg, color-mix(in srgb, var(--wp--preset--color--auto) 10%, var(--wp--preset--color--surface)), var(--wp--preset--color--surface)); }

.stw-form input:not([type="checkbox"]), .stw-form select, .stw-form textarea { border-radius: 0; background: var(--wp--preset--color--surface); }
.stw-explorer__stage { background: var(--stw-grid), radial-gradient(closest-side at 50% 60%, color-mix(in srgb, var(--accent) 12%, transparent), transparent), var(--wp--preset--color--surface); }

/* Footer: brushed steel deck under a circuit trace. */
.stw-site-footer { position: relative; background: var(--stw-steel); border-top: 0; }
.stw-site-footer::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -1px;
	height: 48px;
	pointer-events: none;
	transform: scaleY(-1);
	background: var(--stw-trace) center bottom / 100% 100% no-repeat;
}
.stw-footer__col h2 { font-family: var(--wp--preset--font-family--display); color: var(--accent); }

/* ------------------------------------------------------------------ selection: purple and white
   Anything the visitor is choosing (hovered, focused, opened, picked or current) turns
   Stalwart purple with white text. */

:root {
	--stw-pick: linear-gradient(135deg, #4c11b5 0%, #5b1fd1 55%, #7c3aed 100%);
	--stw-pick-solid: #4c11b5;
	--stw-pick-soft: color-mix(in srgb, #4c11b5 8%, transparent);
}

/* Cards and tiles: a purple plate fades in under the content, with a white spotlight
   that follows the pointer. z-index -1 keeps it under in-flow content; the clip-path
   already makes each card its own stacking context. */
.stw-card::after, .stw-domain::after, .stw-person::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: 0;
	transition: opacity .35s var(--stw-ease);
	background:
		radial-gradient(320px circle at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, .22), transparent 60%),
		var(--stw-pick);
}
.stw-card, .stw-domain, .stw-person { isolation: isolate; transition: color .25s, border-color .25s, transform .3s var(--stw-ease), box-shadow .3s; }
:is(.stw-card:has(a), .stw-card--link, .stw-domain, .stw-person:has(a)):is(:hover, :focus-within) {
	--accent: #fff;
	--stw-edge: transparent;
	color: #fff;
	border-color: transparent;
	box-shadow: none;
	transform: translateY(-4px);
}
:is(.stw-card:has(a), .stw-card--link, .stw-domain, .stw-person:has(a)):is(:hover, :focus-within)::after { opacity: 1; }
:is(.stw-card:has(a), .stw-card--link, .stw-domain, .stw-person:has(a)):is(:hover, :focus-within) :is(h3, h3 a, a, strong, .stw-step-no, .stw-card__meta, .stw-person__years strong) { color: #fff !important; }
:is(.stw-card:has(a), .stw-card--link, .stw-domain, .stw-person:has(a)):is(:hover, :focus-within) :is(p, li, .stw-person__role, .stw-person__creds) { color: rgba(255, 255, 255, .88); }
:is(.stw-card:has(a), .stw-domain):is(:hover, :focus-within) .stw-chip { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }
:is(.stw-card:has(a), .stw-domain):is(:hover, :focus-within) .stw-chip::before { background: #fff; }
:is(.stw-card:has(a), .stw-domain):is(:hover, :focus-within) .stw-chip:hover { background: #fff; color: var(--stw-pick-solid); }
.stw-domain:is(:hover, :focus-within) .stw-domain__art {
	--stw-grid-color: rgba(255, 255, 255, .14);
	border-color: rgba(255, 255, 255, .3);
	background: var(--stw-grid), rgba(255, 255, 255, .06);
}
.stw-domain__art, .stw-domain__art svg { transition: background .3s, border-color .3s, transform .5s var(--stw-ease); }
.stw-domain:hover .stw-domain__art svg { transform: scale(1.08); }
/* The cyan index mark would sit on purple; hide it while picked. */
:is(.stw-card:has(a), .stw-person:has(a)):is(:hover, :focus-within) { background: var(--stw-panel); }

/* Chips, ghost buttons, A–Z, pagination, explorer picks. */
a.stw-chip:hover, button.stw-chip:hover, a.stw-chip:focus-visible, button.stw-chip:focus-visible,
.stw-glossary__az a:hover, .stw-pagination a.page-numbers:hover,
.stw-explorer__pick:hover, .stw-explorer__list .is-active .stw-explorer__pick {
	background: var(--stw-pick);
	border-color: transparent;
	color: #fff;
}
a.stw-chip:hover::before, button.stw-chip:hover::before { background: #fff; }
.stw-btn--ghost:hover, .wp-block-button.is-style-outline .wp-block-button__link:hover {
	--stw-edge: transparent;
	background: var(--stw-pick);
	border-color: transparent;
	color: #fff;
}

/* Menu: the open item and the current section are purple pills; submenu links too. */
.stw-nav .wp-block-navigation__container { gap: .15rem; }
.stw-nav .wp-block-navigation__container > .wp-block-navigation-item {
	padding: .2rem .55rem;
	transition: background .2s, color .2s;
}
.stw-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover { box-shadow: none; }
.stw-nav .wp-block-navigation__container > .wp-block-navigation-item:is(:hover, :focus-within, .is-current) { background: var(--stw-pick); }
.stw-nav .wp-block-navigation__container > .wp-block-navigation-item:is(:hover, :focus-within, .is-current) > :is(.wp-block-navigation-item__content, .wp-block-navigation__submenu-icon) { color: #fff; }
.stw-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.stw-nav .wp-block-navigation__submenu-container .is-current > .wp-block-navigation-item__content {
	background: var(--stw-pick) !important;
	color: #fff !important;
}
.stw-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: var(--wp--preset--color--text); }
@media (max-width: 1280px) { .stw-nav .wp-block-navigation__container > .wp-block-navigation-item { padding-inline: .4rem; } }

/* FAQ: the open question becomes a purple bar; its answer hangs off a purple rule. */
.stw-faq summary { padding-left: .9rem; transition: background .2s, color .2s; }
.stw-faq summary:hover { background: var(--stw-pick-soft); }
.stw-faq details[open] > summary { background: var(--stw-pick); color: #fff; }
.stw-faq details[open] > summary h3 { color: #fff; }
.stw-faq details[open] > summary::after { color: #fff; }
.stw-faq details[open] .stw-faq__a { padding: 1rem 0 1.25rem .9rem; border-left: 2px solid var(--stw-pick-solid); }
.stw-faq summary::after { right: .9rem; }

/* Tables: the row under the pointer is tinted purple. */
.wp-block-table tbody tr { transition: background .2s; }
.wp-block-table tbody tr:hover { background: var(--stw-pick-soft); }
.wp-block-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--stw-pick-solid); }

/* Fields: purple focus ring; checkbox ticks in purple. */
.stw-form input:focus, .stw-form select:focus, .stw-form textarea:focus, .stw-ask__form:focus-within {
	border-color: var(--stw-pick-solid);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--stw-pick-solid) 22%, transparent);
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--stw-pick-solid); }

/* Choice chips generated from short selects. */
.stw-choice-source { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.stw-choices { display: flex; flex-wrap: wrap; gap: .45rem; }
.stw-choice {
	--c: 7px;
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .6rem .9rem;
	font: 500 .875rem/1.25 var(--wp--preset--font-family--sans);
	text-align: left;
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.stw-choice::before {
	content: "";
	width: .8rem;
	height: .8rem;
	flex-shrink: 0;
	border: 1.5px solid currentColor;
	opacity: .55;
	transition: inherit;
}
.stw-choice:hover { border-color: var(--stw-pick-solid); color: var(--stw-pick-solid); background: var(--stw-pick-soft); }
.stw-choice:active { transform: scale(.97); }
.stw-choice[aria-checked="true"] { background: var(--stw-pick); color: #fff; border-color: transparent; }
.stw-choice[aria-checked="true"]::before {
	opacity: 1;
	border-color: #fff;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.9' fill='none' stroke='%234c11b5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.stw-choice:focus-visible { outline: 2px solid var(--stw-pick-solid); outline-offset: 2px; }
.stw-choices.is-invalid .stw-choice { border-color: #d14343; }
.stw-asil .stw-choices { flex-direction: column; align-items: stretch; }

/* ------------------------------------------------------------------ office cards (locations) */

.stw-offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: var(--stw-gap); margin-bottom: var(--stw-section); }
.stw-office { display: flex; flex-direction: column; padding: 0 1.4rem 1.4rem; }
.stw-office__map {
	position: relative;
	height: 116px;
	margin: 0 -1.4rem 1.25rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
	background:
		radial-gradient(circle at 50% 58%, color-mix(in srgb, var(--wp--preset--color--brand) 16%, transparent), transparent 55%),
		var(--stw-grid),
		var(--stw-steel);
	overflow: hidden;
}
/* Concentric range rings and a crosshair under the pin. */
.stw-office__map::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 58%;
	width: 160px;
	height: 160px;
	translate: -50% -50%;
	border-radius: 50%;
	background:
		radial-gradient(circle, transparent 0 20px, color-mix(in srgb, var(--wp--preset--color--glow) 45%, transparent) 20px 21px, transparent 21px 44px, color-mix(in srgb, var(--wp--preset--color--glow) 30%, transparent) 44px 45px, transparent 45px 72px, color-mix(in srgb, var(--wp--preset--color--glow) 18%, transparent) 72px 73px, transparent 73px),
		linear-gradient(color-mix(in srgb, var(--wp--preset--color--glow) 30%, transparent), color-mix(in srgb, var(--wp--preset--color--glow) 30%, transparent)) center / 1px 100% no-repeat,
		linear-gradient(color-mix(in srgb, var(--wp--preset--color--glow) 30%, transparent), color-mix(in srgb, var(--wp--preset--color--glow) 30%, transparent)) center / 100% 1px no-repeat;
}
.stw-office__pin {
	position: absolute;
	left: 50%;
	top: 58%;
	translate: -50% -100%;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	color: #fff;
	background: var(--stw-pick);
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
	animation: stw-bob 3s ease-in-out infinite;
}
.stw-office__pin svg { width: 18px; height: 18px; }
@keyframes stw-bob { 50% { translate: -50% calc(-100% - 5px); } }
.stw-office__zone {
	position: absolute;
	right: .75rem;
	bottom: .55rem;
	font: 500 .68rem/1 var(--wp--preset--font-family--mono);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.stw-office__role {
	align-self: flex-start;
	margin-top: 0;
	margin-bottom: .6rem;
	padding: .3rem .55rem;
	font: 600 .68rem/1 var(--wp--preset--font-family--display);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--stw-pick-solid);
	background: var(--stw-pick-soft);
	border: 1px solid color-mix(in srgb, var(--stw-pick-solid) 25%, transparent);
}
.stw-card .stw-office__city { font-size: clamp(1.6rem, 2.6vw, 2rem); font-stretch: 112%; letter-spacing: .02em; margin: 0 0 .2rem; }
.stw-office__entity { font-size: .85rem !important; color: var(--wp--preset--color--muted); margin: 0 0 .9rem !important; }
.stw-office__purpose { font-size: .92rem !important; color: var(--wp--preset--color--text) !important; margin: 0 0 .9rem !important; }
/* The cards are the addresses on this page; the footer copy would repeat them. */
body:has(.stw-offices) .stw-footer__offices { display: none; }
.stw-office:is(:hover, :focus-within) .stw-office__purpose { color: #fff !important; }
.stw-office__time { display: flex; align-items: center; gap: .5rem; font: 500 .78rem/1.3 var(--wp--preset--font-family--mono) !important; color: var(--wp--preset--color--text) !important; margin: 0 0 1.1rem !important; }
.stw-office__dot { width: 7px; height: 7px; border-radius: 50%; background: #2bd47d; box-shadow: 0 0 0 0 rgba(43, 212, 125, .6); animation: stw-pulse 2s infinite; flex-shrink: 0; }
.stw-office__address { display: flex; gap: .6rem; font-style: normal; font-size: .92rem; line-height: 1.55; margin-bottom: 1rem; }
.stw-office__address svg, .stw-office__contact svg { flex-shrink: 0; margin-top: .2rem; color: var(--accent); }
.stw-office__contact { list-style: none; padding: 0; margin-top: 0; margin-bottom: 1.25rem; display: grid; gap: .45rem; font-size: .9rem; }
.stw-office__contact li { display: flex; gap: .6rem; align-items: flex-start; overflow-wrap: anywhere; }
.stw-office__contact a { color: var(--wp--preset--color--text); text-decoration: none; border-bottom: 1px solid var(--wp--preset--color--line); }
.stw-office__contact a:hover { border-bottom-color: currentColor; }
.stw-office__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; }
.stw-office__actions .is-done { background: var(--stw-pick); color: #fff; border-color: transparent; }

/* Picked (hovered) office card: everything flips to white on purple. */
.stw-office:is(:hover, :focus-within) .stw-office__map { border-bottom-color: rgba(255, 255, 255, .25); --stw-grid-color: rgba(255, 255, 255, .12); background: var(--stw-grid), rgba(255, 255, 255, .05); }
.stw-office:is(:hover, :focus-within) .stw-office__map::before { filter: brightness(2) saturate(0); opacity: .6; }
.stw-office:is(:hover, :focus-within) .stw-office__pin { background: #fff; color: var(--stw-pick-solid); }
.stw-office:is(:hover, :focus-within) :is(.stw-office__zone, .stw-office__entity, .stw-office__time) { color: rgba(255, 255, 255, .85) !important; }
.stw-office:is(:hover, :focus-within) .stw-office__role { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); }
.stw-office:is(:hover, :focus-within) :is(.stw-office__address, .stw-office__address span) { color: #fff; }
.stw-office:is(:hover, :focus-within) .stw-office__contact a { border-bottom-color: rgba(255, 255, 255, .4); }
.stw-office:is(:hover, :focus-within) .stw-office__actions .stw-btn { --stw-edge: rgba(255, 255, 255, .5); background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff !important; }
.stw-office:is(:hover, :focus-within) .stw-office__actions .stw-btn:hover { background: #fff; color: var(--stw-pick-solid) !important; }

/* ------------------------------------------------------------------ brand film */

.stw-film__head { display: grid; gap: .25rem; margin-bottom: 1.5rem; }
.stw-film__head h2 { margin: 0; }
.stw-film__head .stw-lead { margin: .5rem 0 0; }
.stw-film__frame {
	--c: 22px;
	position: relative;
	margin: 0;
	aspect-ratio: 16 / 9;
	background: #07090d url("../video/stalwart-brand-film-poster.jpg") center / cover;
	clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stw-pick-solid) 50%, transparent);
}
/* Purple-to-cyan rail along the top edge, like the hero trace. */
.stw-film__frame::after {
	content: "";
	position: absolute;
	left: var(--c);
	right: 0;
	top: 0;
	height: 3px;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(90deg, var(--stw-pick-solid), #7c3aed 50%, var(--wp--preset--color--glow));
}
.stw-film__video { display: block; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.stw-film__play {
	position: absolute;
	left: 50%;
	top: 50%;
	translate: -50% -50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: .7rem;
	padding: 1rem 1.6rem 1rem 1.25rem;
	border: 0;
	color: #fff;
	font: 600 .85rem/1 var(--wp--preset--font-family--display);
	letter-spacing: .1em;
	text-transform: uppercase;
	background: var(--stw-pick);
	clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
	cursor: pointer;
	transition: transform .25s var(--stw-ease), box-shadow .25s, opacity .3s;
	box-shadow: inset 0 -3px 0 var(--wp--preset--color--glow);
}
.stw-film__play:hover { transform: scale(1.05); }
.stw-film__frame.is-playing .stw-film__play { opacity: 0; pointer-events: none; }
.stw-film__frame.is-ended .stw-film__video { opacity: .35; }
.stw-film__script { margin-top: 1rem; border: 1px solid var(--wp--preset--color--line); background: var(--stw-panel); }
.stw-film__script summary { cursor: pointer; padding: .8rem 1rem; font: 600 .78rem/1 var(--wp--preset--font-family--display); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); list-style: none; }
.stw-film__script summary::-webkit-details-marker { display: none; }
.stw-film__script summary::before { content: "+"; display: inline-block; width: 1.2rem; font-family: var(--wp--preset--font-family--mono); }
.stw-film__script[open] summary { background: var(--stw-pick); color: #fff; }
.stw-film__script[open] summary::before { content: "−"; }
.stw-film__script ol { margin: 0; padding: 1rem 1rem 1rem 2.5rem; display: grid; gap: .4rem; color: var(--wp--preset--color--muted); }
@media (max-width: 600px) { .stw-film__play span { display: none; } .stw-film__play { padding: 1rem; } }

/* ------------------------------------------------------------------ motion and feedback */

/* Scroll progress, purple into cyan. */
.stw-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 100;
	transform: scaleX(0);
	transform-origin: 0 50%;
	background: linear-gradient(90deg, var(--stw-pick-solid), #7c3aed 60%, var(--wp--preset--color--glow));
	pointer-events: none;
}
.admin-bar .stw-progress { top: var(--wp-admin--admin-bar--height, 32px); }

/* Header compacts once the page scrolls. */
.stw-header { transition: min-height .25s var(--stw-ease), padding .25s var(--stw-ease); }
.stw-logo__img { transition: height .25s var(--stw-ease); }
.stw-site-header.is-scrolled { box-shadow: var(--stw-shadow); }
.stw-site-header.is-scrolled .stw-header { min-height: 56px; padding-block: .3rem; }
.stw-site-header.is-scrolled .stw-logo__img { height: 36px; }

/* Back to top. */
.stw-top {
	position: fixed;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(1rem, 3vw, 2rem);
	z-index: 90;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 0;
	color: #fff;
	background: var(--stw-pick);
	clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
	cursor: pointer;
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition: opacity .3s, transform .3s var(--stw-ease), box-shadow .2s;
}
.stw-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.stw-top:hover { box-shadow: inset 0 -3px 0 var(--wp--preset--color--glow); }

/* Reveal on scroll (only elements below the fold at load). Uses `translate` so hover
   transforms keep working. */
.stw-reveal { opacity: 0; translate: 0 22px; transition: opacity .7s var(--stw-ease), translate .7s var(--stw-ease), color .25s, border-color .25s, transform .3s var(--stw-ease), box-shadow .3s; transition-delay: calc(var(--i, 0) * 80ms), calc(var(--i, 0) * 80ms), 0s, 0s, 0s, 0s; }
.stw-reveal.is-in { opacity: 1; translate: none; }

/* Hero: the blueprint grid lights up around the pointer, with a soft cyan bloom. */
.stw-home-hero::before, .stw-hero::before {
	-webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 70%), radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 70%);
	mask-image: linear-gradient(90deg, transparent 25%, #000 70%), radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 70%);
}
.stw-home-hero { --mx: -999px; --my: -999px; }

/* Primary buttons: a light sweep on hover. */
.stw-btn--primary, .wp-block-button:not(.is-style-outline) .wp-block-button__link { background-image: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%); background-size: 250% 100%; background-position: 120% 0; background-repeat: no-repeat; transition: background-position .6s var(--stw-ease), background-color .2s, box-shadow .2s, transform .2s; }
.stw-btn--primary:hover, .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background-position: -20% 0; }

/* ------------------------------------------------------------------ motion preferences */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.stw-art .stw-trace { stroke-dashoffset: 0; }
}

@media print {
	.stw-site-header, .stw-site-footer, .stw-ask, .stw-cta, .stw-form-wrap, .stw-hero__art { display: none !important; }
	body { background: #fff; color: #000; }
}

/* ------------------------------------------------------------------ hiring / testing mega menus */
@media (min-width: 1000px) {
	.stw-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(-n+2) > .wp-block-navigation__submenu-container {
		display: grid;
		grid-template-columns: repeat(2, minmax(230px, 1fr));
		min-width: 520px !important;
	}
	.stw-nav .wp-block-navigation__container > .wp-block-navigation-item:nth-child(-n+2) > .wp-block-navigation__submenu-container > .wp-block-navigation-item:first-child {
		grid-column: 1 / -1;
		border-bottom: 1px solid var(--wp--preset--color--line);
		margin-bottom: .25rem;
		font-weight: 600;
	}
}

/* ------------------------------------------------------------------ hiring / testing homepage */
.stw-split .stw-card--feature { padding: clamp(1.5rem, 3vw, 2.25rem); border-top: 3px solid var(--accent); }
.stw-split .stw-card--feature h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.stw-split .stw-card--feature p { font-size: var(--wp--preset--font-size--md); }
.stw-linklist { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .35rem; position: relative; z-index: 1; }
.stw-linklist li { margin: 0; max-width: none !important; }
.stw-linklist a { font-family: var(--wp--preset--font-family--mono); font-size: .8rem; text-decoration: none; }
.stw-linklist a::after { content: " →"; }
.stw-linklist a:hover { text-decoration: underline; }
.stw-split .stw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 760px) { .stw-split .stw-grid { grid-template-columns: 1fr !important; } }

/* ------------------------------------------------------------------ case studies */
.stw-case__label { margin: 0 0 1.25rem; padding: .85rem 1.1rem; border: 1px dashed var(--accent); border-radius: var(--stw-radius-sm); font-size: .9rem; color: var(--wp--preset--color--muted); max-width: none !important; }
.stw-case__label strong { color: var(--wp--preset--color--text); }
.stw-case__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 0 0 2rem; padding: 1.25rem; border: 1px solid var(--wp--preset--color--line); border-radius: var(--stw-radius); background: var(--wp--preset--color--surface); }
.stw-case__facts dt { font-family: var(--wp--preset--font-family--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--wp--preset--color--muted); }
.stw-case__facts dd { margin: .25rem 0 0; font-weight: 500; }
