/*
 * SoftviaTech New – light-first design layer.
 *
 * Loaded after base/components/pages, so it re-themes them through design
 * tokens and adds the newer sections. All text pairs meet WCAG AA:
 *   ink #0B1B3A / white 17:1 · body #334155 / white 10:1 · muted #566274 / white 6.2:1
 *   white / brand #2456C7 6.5:1 · white / cobalt button #3366E6 5.0:1 (hover 6.0:1)
 *   cobalt vs white 5.0:1 and vs night #071330 3.7:1 as a surface · #E6ECF7 / night 15:1
 *
 * Contents: tokens · type · sections · buttons · header · mobile menu ·
 * hero · home compositions · banner · footer · responsive · blog ·
 * service · contact · about · overrides.
 */

/* ------------------------------------------------------------------
 * Tokens
 * ---------------------------------------------------------------- */
:root {
	/* Brand */
	--primary: #2456c7;
	--primary-rgb: 36, 86, 199;
	--primary-600: #1c46a6;
	--secondary: #1e3f94;
	--grad: linear-gradient(135deg, #2456c7, #1e3f94);
	/* Buttons: cobalt, a lifted tint of the logo blue that reads on white and on night */
	--cta: #3366e6;
	--cta-hover: #2a5ad6;
	--cta-active: #2456c7;
	--accent: #5eead4;

	/* Neutrals */
	--night: #071330;
	--dark-1: #0b1b3a;
	--dark-2: #0f2247;
	--dark-3: #16306a;
	--ink: #0b1b3a;
	--text: #334155;
	--muted: #566274;
	--surface: #f6f8fb;
	--light: #f6f8fb;
	--line: #e4e9f0;
	--line-strong: #d3dbe6;

	/* On dark */
	--on-dark: #e6ecf7;
	--text-on-dark: rgba(230, 236, 247, 0.8);
	--line-dark: rgba(255, 255, 255, 0.12);

	/* Shape, depth, motion */
	--radius: 16px;
	--radius-sm: 12px;
	--radius-lg: 24px;
	--radius-btn: 10px;
	--shadow-sm: 0 1px 2px rgba(11, 27, 58, 0.04), 0 4px 12px rgba(11, 27, 58, 0.04);
	--shadow-md: 0 1px 2px rgba(11, 27, 58, 0.04), 0 16px 40px -12px rgba(11, 27, 58, 0.16);
	--shadow-lg: 0 40px 80px -32px rgba(3, 10, 28, 0.55);
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);

	/* Layout */
	--container: 1200px;
	--gutter: 24px;
	--section-pad: clamp(72px, 8vw, 120px);
	--header-h: 76px;
	--topbar-h: 36px;

	/* Dark brand backdrop used by the hero, banners and CTA panel */
	--bg-night:
		radial-gradient(60% 70% at 88% 0%, rgba(36, 86, 199, 0.42), transparent 70%),
		radial-gradient(45% 60% at 0% 100%, rgba(94, 234, 212, 0.1), transparent 70%),
		linear-gradient(180deg, #071330 0%, #0b1b3a 100%);
	--grid-lines:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
}

/* Keep the same header height when the top bar is switched off (base.css
 * still carries the old theme's taller value). */
body.no-topbar {
	--header-h: 76px;
}

/* ------------------------------------------------------------------
 * Typography
 * Urbanist (display) + DM Sans (text), both self-hosted brand fonts.
 * ---------------------------------------------------------------- */
body {
	font-size: 17px;
	line-height: 1.7;
	color: var(--text);
}

h1,
h2,
h3,
h4,
h5 {
	font-weight: 600;
	color: var(--ink);
	letter-spacing: -0.015em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem);
	line-height: 1.04;
	letter-spacing: -0.035em;
}

h2 {
	font-size: clamp(2rem, 1.45rem + 1.9vw, 3rem);
	line-height: 1.1;
	letter-spacing: -0.03em;
}

h3 {
	font-size: 1.25rem;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

p {
	text-wrap: pretty;
}

a {
	color: var(--primary);
}

a:hover {
	color: var(--secondary);
}

.section-dark,
.section-dark-2,
.section-hex,
.section-brand,
.on-dark,
.site-footer {
	color: var(--text-on-dark);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark-2 h1,
.section-dark-2 h2,
.section-dark-2 h3,
.section-dark-2 h4,
.section-hex h1,
.section-hex h2,
.section-hex h3,
.section-hex h4,
.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4 {
	color: #fff;
}

.section-dark,
.section-hex {
	background: var(--night);
	background-image: var(--grid-lines), var(--bg-night);
	background-size: 64px 64px, 64px 64px, auto, auto, auto;
}

.section-dark a:not(.btn),
.on-dark a:not(.btn) {
	color: #9dc0ff;
}

/* ------------------------------------------------------------------
 * Sections and section headings
 * ---------------------------------------------------------------- */
.section {
	padding-block: var(--section-pad);
}

.section-surface {
	background: var(--surface);
}

.section-surface + .section-surface {
	border-top: 1px solid var(--line);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--primary);
}

.eyebrow::before {
	content: "";
	width: 18px;
	height: 1px;
	background: currentColor;
}

.text-center .eyebrow::after {
	content: "";
	width: 18px;
	height: 1px;
	background: currentColor;
}

.section-dark .eyebrow,
.section-hex .eyebrow,
.on-dark .eyebrow {
	color: var(--accent);
}

.section-head {
	margin-bottom: 56px;
}

.section-head.narrow {
	max-width: 720px;
}

.section-head:not(.text-center) {
	margin-inline: 0;
}

.section-head h2 {
	margin-bottom: 0;
}

.section-head p {
	max-width: 36em;
	margin: 20px 0 0;
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--muted);
}

.section-head.text-center p {
	margin-inline: auto;
}

.section-dark .section-head p,
.on-dark .section-head p {
	color: var(--text-on-dark);
}

/* Heading on the left, a quiet link on the right */
.section-head-row {
	display: flex;
	gap: 24px 48px;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 56px;
}

.section-head-row .section-head {
	max-width: 680px;
	margin-bottom: 0;
}

.section-head-link {
	flex: none;
	padding-bottom: 6px;
}

.lead {
	font-size: 1.125rem;
}

/* Two-column composition: sticky heading, content beside it */
.split {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 48px clamp(40px, 6vw, 96px);
	align-items: start;
}

.split-wide {
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
}

.split-aside {
	position: sticky;
	top: calc(var(--header-h) + 32px);
}

.split-aside .section-head {
	margin-bottom: 32px;
}

.split-aside > :last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------------
 * Buttons
 * Hierarchy: 1 primary (filled cobalt) · 2 secondary (outline / glass)
 * · 3 tertiary (.text-link). Each variant only sets --btn-* values.
 * ---------------------------------------------------------------- */
.btn {
	--btn-bg: var(--cta);
	--btn-bg-hover: var(--cta-hover);
	--btn-bg-active: var(--cta-active);
	--btn-fg: #fff;
	--btn-fg-hover: #fff;
	--btn-ring: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(7, 19, 48, 0.2);
	--btn-lift: 0 1px 2px rgba(7, 19, 48, 0.2), 0 12px 28px -12px rgba(51, 102, 230, 0.75);

	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 8px 22px;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 30px;
	letter-spacing: 0.005em;
	color: var(--btn-fg);
	background: var(--btn-bg);
	border: 0;
	border-radius: var(--radius-btn);
	box-shadow: var(--btn-ring);
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease-out);
}

.btn::before {
	display: none;
}

.btn:hover,
.btn:focus-visible {
	color: var(--btn-fg-hover);
	background: var(--btn-bg-hover);
	box-shadow: var(--btn-lift);
	transform: translateY(-1px);
}

.btn:active {
	background: var(--btn-bg-active);
	box-shadow: var(--btn-ring);
	transform: none;
	transition-duration: 0.05s;
}

/* Header/footer link colours must not win over button text */
.site-header a.btn,
.site-footer a.btn,
.sticky-cta a.btn {
	color: var(--btn-fg);
}

.site-header a.btn:hover,
.site-footer a.btn:hover,
.sticky-cta a.btn:hover {
	color: var(--btn-fg-hover);
}

.btn-lg {
	padding: 11px 26px;
	font-size: 1rem;
}

/* 1 · Primary: .btn-cta is the site-wide primary action (same as .btn) */
.btn-cta {
	--btn-bg: var(--cta);
}

/* Arrow that nudges forward on hover */
.btn-arrow::after {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.25s var(--ease-out);
}

.btn-arrow:hover::after,
.btn-arrow:focus-visible::after {
	transform: translateX(3px);
}

.btn-dark {
	--btn-bg: var(--ink);
	--btn-bg-hover: var(--dark-3);
	--btn-bg-active: var(--dark-2);
	--btn-lift: 0 1px 2px rgba(7, 19, 48, 0.2), 0 12px 28px -12px rgba(7, 19, 48, 0.6);
}

/* 2 · Secondary on light: white with a hairline, turns brand blue on hover */
.btn-outline {
	--btn-bg: #fff;
	--btn-bg-hover: #f3f6fd;
	--btn-bg-active: #e8eefc;
	--btn-fg: var(--ink);
	--btn-fg-hover: var(--primary);
	--btn-ring: inset 0 0 0 1px #c9d3e1, 0 1px 2px rgba(11, 27, 58, 0.05);
	--btn-lift: inset 0 0 0 1px rgba(51, 102, 230, 0.55), 0 8px 20px -12px rgba(11, 27, 58, 0.3);
}

/* 2 · Secondary on dark: glass with a hairline */
.btn-line,
.btn-ghost {
	--btn-bg: rgba(255, 255, 255, 0.06);
	--btn-bg-hover: rgba(255, 255, 255, 0.12);
	--btn-bg-active: rgba(255, 255, 255, 0.16);
	--btn-fg: #fff;
	--btn-fg-hover: #fff;
	--btn-ring: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
	--btn-lift: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.btn-block {
	display: flex;
	width: 100%;
}

.btn-row {
	gap: 12px;
	align-items: center;
}

.btn-row-left {
	justify-content: flex-start;
}

/* 3 · Tertiary: text action with an arrow and a quiet underline on hover */
.text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--primary);
	transition: color 0.2s var(--ease);
}

/* Flex items don't inherit text-decoration, so the underline lives on the label */
.text-link > span {
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
	transition: text-decoration-color 0.2s var(--ease);
}

.text-link:hover {
	color: var(--primary-600);
}

.text-link:hover > span {
	text-decoration-color: currentColor;
}

.text-link .icon {
	width: 18px;
	height: 18px;
	transition: transform 0.25s var(--ease-out);
}

.text-link:hover .icon {
	transform: translateX(3px);
}

/* Focus: brand blue on light, teal on dark (both ≥ 3:1 against their background) */
:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 3px;
}

.section-dark :focus-visible,
.section-hex :focus-visible,
.on-dark :focus-visible,
.hero :focus-visible,
.banner :focus-visible,
.site-footer :focus-visible {
	outline-color: var(--accent);
}

/* ------------------------------------------------------------------
 * Header (light, translucent, sticky) and mega menu
 * ---------------------------------------------------------------- */
.site-header,
.site-header.is-fixed {
	position: sticky;
	top: 0;
	left: auto;
	z-index: 1000;
	width: 100%;
	color: var(--ink);
	background: rgba(255, 255, 255, 0.86);
	box-shadow: 0 1px 0 var(--line);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
	transition: box-shadow 0.3s var(--ease), transform 0.35s var(--ease-out);
}

.site-header.is-fixed {
	box-shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgba(11, 27, 58, 0.22);
}

.site-header.is-fixed .topbar {
	display: none;
}

.site-header a {
	color: inherit;
}

body.admin-bar .site-header,
body.admin-bar .site-header.is-fixed {
	top: 32px;
}

.topbar {
	height: auto;
	font-size: 0.8125rem;
	color: var(--on-dark);
	background: var(--night);
	border-bottom: 0;
}

.topbar-inner {
	min-height: var(--topbar-h);
}

.topbar-info li,
.topbar-info a,
.site-header .topbar-info a {
	color: var(--on-dark);
}

.site-header .topbar-info a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.topbar-info .icon {
	color: var(--accent);
}

.header-main,
.site-header.is-fixed .header-main {
	height: var(--header-h);
}

.site-branding .custom-logo-link {
	display: block;
	line-height: 0;
}

.site-branding img,
.site-branding .custom-logo {
	width: auto;
	height: 40px;
	max-height: none;
}

.main-nav .menu {
	gap: 2px;
}

.main-nav .menu > li {
	margin-right: 0;
}

.main-nav .menu > li > a {
	padding: 26px 14px;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.5;
	color: #26344f;
	transition: color 0.2s var(--ease);
}

.main-nav .menu > li > a::after {
	left: 14px;
	right: 14px;
	bottom: 20px;
	height: 2px;
	background: var(--primary);
	border-radius: 2px;
	transform-origin: left center;
	transition: transform 0.3s var(--ease-out), background-color 0.2s var(--ease);
}

/* Hover/active: colour shift plus a 2px line that grows from the left.
 * Hover only on real pointers so taps on touch screens don't leave it stuck. */
@media (hover: hover) {
	.main-nav .menu > li:hover > a {
		color: var(--primary);
	}

	.main-nav .menu > li:hover > a::after {
		transform: scaleX(1);
	}
}

.main-nav .menu > li > a:focus-visible,
.main-nav .menu > .current-menu-item > a,
.main-nav .menu > .current-menu-ancestor > a,
.main-nav .menu > .current_page_parent > a {
	color: var(--primary);
}

.main-nav .menu > .current_page_parent > a::after {
	transform: scaleX(1);
}

/* Interactive dot matrix (header bar, home hero, page banners). Only shown
 * once main.js has drawn it on a canvas: desktop, fine pointer, no
 * reduced motion. Touch devices keep the plain header and bands. */
.header-main {
	position: relative;
	isolation: isolate;
}

.svn-dots {
	position: absolute;
	inset: 0;
	z-index: -1;
	display: none;
	pointer-events: none;
}

.svn-dots.is-live {
	display: block;
}

.svn-dots canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.header-side {
	gap: 14px;
}

.header-cta .btn {
	padding: 5px 18px;
	line-height: 30px;
}

/* Mega menu (Services) */
.has-mega {
	position: relative;
}

.mega {
	position: absolute;
	top: calc(100% - 8px);
	left: 50%;
	z-index: 20;
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 8px 40px;
	min-width: 540px;
	padding: 24px 28px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 8px);
	transition: opacity 0.2s var(--ease), transform 0.25s var(--ease-out), visibility 0.2s;
}

.has-mega:hover > .mega,
.has-mega:focus-within > .mega {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.mega-title {
	margin: 0 0 8px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.mega ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav .mega a {
	display: block;
	padding: 7px 0;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--ink);
}

.main-nav .mega a:hover {
	color: var(--primary);
}

.nav-extra {
	display: none;
}

.menu-toggle {
	color: var(--ink);
}

/* ------------------------------------------------------------------
 * Mobile header and menu
 * ---------------------------------------------------------------- */
@media (max-width: 991px) {
	.site-header,
	.site-header.is-fixed {
		position: sticky;
		top: 0;
		height: auto;
		background: #fff;
		box-shadow: 0 1px 0 var(--line);
		/* A backdrop-filter would make the header the containing block of the fixed menu panel */
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	body.admin-bar .site-header,
	body.admin-bar .site-header.is-fixed {
		top: 46px;
	}

	.topbar {
		display: none;
	}

	.header-main,
	.site-header.is-fixed .header-main {
		height: 64px;
	}

	.site-branding img,
	.site-branding .custom-logo {
		height: 34px;
	}

	.header-cta {
		display: none;
	}

	.menu-toggle {
		margin-right: -10px;
	}

	.main-nav {
		top: 64px;
		padding: 8px var(--gutter) 40px;
		background: #fff;
	}

	body.admin-bar .main-nav {
		top: 110px;
	}

	.main-nav .menu > li {
		border-bottom: 1px solid var(--line);
	}

	.main-nav .menu > li > a {
		padding: 18px 0;
		font-size: 1.0625rem;
		color: var(--ink);
	}

	.main-nav .menu > li > a::after {
		display: none;
	}

	.mega {
		position: static;
		display: block;
		min-width: 0;
		padding: 0 0 12px 12px;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.mega-col + .mega-col {
		margin-top: 8px;
	}

	.main-nav .mega a {
		padding: 10px 0;
		font-weight: 500;
		color: var(--text);
	}

	.nav-extra {
		display: block;
		padding-top: 24px;
	}

	.nav-extra-contact {
		margin: 20px 0 0;
		padding: 0;
		list-style: none;
	}

	.nav-extra-contact li {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 10px 0;
		color: var(--text);
	}

	.nav-extra-contact .icon {
		width: 20px;
		height: 20px;
		color: var(--primary);
	}

	.nav-extra-contact a {
		color: var(--ink);
		font-weight: 600;
	}
}

/* Sticky call-to-action bar (mobile only) */
.sticky-cta {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 900;
	display: none;
	gap: 10px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
	background: #fff;
	box-shadow: 0 -6px 24px rgba(11, 27, 58, 0.14);
	transform: translateY(110%);
	transition: transform 0.3s var(--ease);
}

.sticky-cta .btn {
	flex: 1;
	padding-inline: 12px;
	margin: 0;
}

@media (max-width: 991px) {
	.sticky-cta:not([hidden]) {
		display: flex;
	}

	.sticky-cta.is-visible {
		transform: none;
	}

	body.menu-open .sticky-cta {
		transform: translateY(110%);
	}

	body.has-sticky-cta {
		padding-bottom: 72px;
	}
}

/* ------------------------------------------------------------------
 * Hero
 * ---------------------------------------------------------------- */
.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(72px, 9vw, 128px) 0 clamp(72px, 8vw, 116px);
	color: var(--text-on-dark);
	background: var(--night);
}

.hero-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--bg-night);
}

/* Fine engineering grid, faded out toward the edges */
.hero-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--grid-lines);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
	gap: 56px clamp(48px, 6vw, 88px);
	align-items: center;
}

.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 28px;
	padding: 6px 14px 6px 12px;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--on-dark);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
}

.hero-eyebrow-dot {
	width: 7px;
	height: 7px;
	background: var(--accent);
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.16);
}

.hero h1 {
	margin-bottom: 24px;
	color: #fff;
}

.hero-text {
	max-width: 34em;
	margin: 0 0 36px;
	font-size: 1.1875rem;
	line-height: 1.65;
	color: var(--text-on-dark);
}

.hero-proof {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, max-content));
	gap: 12px 32px;
	margin: 48px 0 0;
	padding: 28px 0 0;
	list-style: none;
	border-top: 1px solid var(--line-dark);
}

.hero-proof li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.9375rem;
	line-height: 1.4;
	color: var(--on-dark);
}

.hero-proof .icon {
	flex: none;
	width: 18px;
	height: 18px;
	color: var(--accent);
}

/* Service index panel */
.hero-panel {
	padding: 10px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 20px;
	box-shadow: var(--shadow-lg);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.hero-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px 12px;
}

.hero-panel-title {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(230, 236, 247, 0.7);
}

.hero-panel-all {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--on-dark);
	text-decoration: underline;
	text-decoration-color: rgba(230, 236, 247, 0.35);
	text-underline-offset: 4px;
}

.hero-panel-all:hover {
	color: #fff;
	text-decoration-color: currentColor;
}

.hero-panel-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hero-panel-list li + li {
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-panel-list a {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr) 18px;
	gap: 12px;
	align-items: center;
	padding: 15px 16px;
	font-family: var(--font-head);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.35;
	color: #fff;
	border-radius: 12px;
	transition: background-color 0.2s var(--ease);
}

.hero-panel-list a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.07);
}

.hero-panel-num {
	font-family: var(--font-body);
	font-size: 0.8125rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	color: rgba(230, 236, 247, 0.5);
}

.hero-panel-arrow {
	width: 18px;
	height: 18px;
	color: rgba(230, 236, 247, 0.55);
	transition: transform 0.25s var(--ease-out), color 0.2s var(--ease);
}

.hero-panel-list a:hover .hero-panel-arrow {
	color: var(--accent);
	transform: translateX(3px);
}

/* ------------------------------------------------------------------
 * Home compositions
 * ---------------------------------------------------------------- */

/* Audience rows (split layout) */
.rows {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}

.rows > li {
	border-bottom: 1px solid var(--line);
}

.row-link {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) 44px;
	gap: 24px;
	align-items: start;
	padding: 32px 0;
	color: var(--text);
}

.row-link:hover {
	color: var(--text);
}

.row-icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	color: var(--primary);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.row-icon .icon {
	width: 22px;
	height: 22px;
}

.row-body h3 {
	margin: 2px 0 8px;
	font-size: 1.375rem;
	transition: color 0.2s var(--ease);
}

.row-body p {
	margin: 0;
	color: var(--muted);
}

.row-arrow {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-top: 2px;
	color: var(--ink);
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.25s var(--ease-out);
}

.row-arrow .icon {
	width: 18px;
	height: 18px;
}

.row-link:hover .row-body h3 {
	color: var(--primary);
}

.row-link:hover .row-icon {
	border-color: rgba(var(--primary-rgb), 0.35);
	background: rgba(var(--primary-rgb), 0.05);
}

.row-link:hover .row-arrow {
	color: #fff;
	background: var(--primary);
	border-color: var(--primary);
	transform: translateX(4px);
}

/* Cards shared by services, case studies and quotes */
.audience,
.service-card,
.quote {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 32px;
	color: var(--text);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: none;
	transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease-out), border-color 0.3s var(--ease);
}

a.audience:hover,
.service-card:hover {
	color: var(--text);
	border-color: rgba(var(--primary-rgb), 0.3);
	box-shadow: var(--shadow-md);
	transform: translateY(-3px);
}

.audience h3,
.service-card h3 {
	margin-bottom: 10px;
	color: var(--ink);
}

.audience p,
.service-card p {
	margin-bottom: 24px;
	color: var(--muted);
}

.service-card .text-link,
.audience .audience-more {
	margin-top: auto;
}

.service-card h3 a {
	color: var(--ink);
}

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

.service-card:hover .text-link .icon {
	transform: translateX(3px);
}

/* The whole card is the link target, so the whole card shows focus */
.service-card h3 a:focus-visible {
	outline: none;
}

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

.audience-icon,
.service-icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 24px;
	color: var(--primary);
	background: rgba(var(--primary-rgb), 0.07);
	border-radius: var(--radius-sm);
}

.audience-icon .icon,
.service-icon .icon {
	width: 24px;
	height: 24px;
}

.service-icon img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.service-watermark {
	display: none;
}

.audience-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--primary);
}

.audience-more .icon {
	width: 18px;
	height: 18px;
}

.grow-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 28px;
	align-items: center;
	justify-content: space-between;
	margin-top: 24px;
	padding: 20px 24px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.grow-row p {
	margin: 0;
	color: var(--text);
}

.grow-row strong {
	color: var(--ink);
	font-weight: 600;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chip {
	display: inline-block;
	padding: 6px 14px;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.5;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

a.chip:hover {
	color: #fff;
	background: var(--ink);
	border-color: var(--ink);
}

/* Process steps (light by default, dark inside .process) */
.steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.steps-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step {
	position: relative;
	padding-top: 28px;
	border-top: 1px solid var(--line-strong);
}

.step::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 48px;
	height: 2px;
	background: var(--primary);
}

.step-num {
	display: block;
	margin-bottom: 20px;
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	font-variant-numeric: tabular-nums;
	color: var(--primary);
}

.step h3 {
	margin-bottom: 10px;
}

.step p {
	margin: 0;
	color: var(--muted);
}

.process .step {
	border-top-color: rgba(255, 255, 255, 0.14);
}

.process .step::before {
	background: var(--accent);
}

.process .step-num {
	color: var(--accent);
}

.process .step p {
	color: var(--text-on-dark);
}

/* Engagement comparison panel */
.compare {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.compare-col {
	display: flex;
	flex-direction: column;
	padding: 40px 36px;
	transition: background-color 0.25s var(--ease);
}

.compare-col + .compare-col {
	border-left: 1px solid var(--line);
}

.compare-col:hover {
	background: var(--surface);
}

.compare-num {
	margin-bottom: 40px;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
}

.compare-col h3 {
	margin-bottom: 12px;
	font-size: 1.5rem;
}

.compare-col p {
	margin-bottom: 28px;
	color: var(--muted);
}

.compare-col .text-link {
	margin-top: auto;
}

/* Differentiators: open feature list, no boxes */
.feature-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px 48px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.feature {
	padding-top: 28px;
	border-top: 1px solid var(--line-strong);
}

.feature-icon {
	display: block;
	margin-bottom: 18px;
	color: var(--primary);
}

.feature-icon .icon {
	width: 26px;
	height: 26px;
}

.feature h3 {
	margin-bottom: 10px;
	font-size: 1.1875rem;
}

.feature p {
	margin: 0;
	color: var(--muted);
}

.split-cta {
	margin-top: 4px;
}

/* Contact card beside the FAQ */
.help-card {
	padding: 28px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.help-card-title {
	margin: 0 0 6px;
	font-family: var(--font-head);
	font-size: 1.1875rem;
	font-weight: 600;
	color: var(--ink);
}

.help-card p:not(.help-card-title) {
	margin: 0 0 20px;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--muted);
}

.help-card .btn-row {
	gap: 12px 20px;
}

.help-card .text-link {
	font-size: 0.9375rem;
	word-break: break-word;
}

/* Quotes (only rendered when real testimonials exist) */
.quote {
	margin: 0;
}

.quote-mark {
	width: 28px;
	height: 28px;
	margin-bottom: 12px;
	color: var(--primary);
}

.quote blockquote {
	margin: 0 0 20px;
	font-size: 1.0625rem;
	color: var(--ink);
}

.quote figcaption strong {
	display: block;
	color: var(--ink);
}

.quote figcaption span {
	color: var(--muted);
	font-size: 0.9375rem;
}

.section-more {
	margin: 40px 0 0;
}

/* Accordion (FAQ): hairline list */
.accordion-item {
	margin: 0;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--line-strong);
	border-radius: 0;
	box-shadow: none;
	overflow: hidden;
}

.accordion-item:first-child {
	border-top: 1px solid var(--line-strong);
}

.accordion-button {
	padding-inline: 0;
	font-family: var(--font-head);
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--ink);
	background: transparent;
}

.accordion-button:hover {
	color: var(--primary);
}

.accordion-panel p,
.accordion-body {
	color: var(--muted);
}

.accordion-body {
	padding-inline: 0;
}

.accordion-chevron {
	color: var(--ink);
}

/* Closing call-to-action panel */
.cta-band {
	background: #fff;
}

.cta-band .cta-inner {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) auto;
	gap: 32px 56px;
	align-items: center;
	max-width: none;
	margin: 0;
	padding: clamp(40px, 6vw, 80px);
	text-align: left;
	background: var(--night);
	background-image: var(--grid-lines), var(--bg-night);
	background-size: 64px 64px, 64px 64px, auto, auto, auto;
	border-radius: var(--radius-lg);
}

.cta-band h2 {
	max-width: 16em;
	margin: 0;
	color: #fff;
}

.cta-band .lead {
	max-width: 36em;
	margin: 16px 0 0;
	color: var(--text-on-dark);
}

.cta-band .btn-row {
	justify-content: flex-end;
}

/* The panel sits in the tail of the previous section's padding */
.cta-band {
	padding-top: 0;
}

.section-dark + .cta-band,
.banner + .cta-band {
	padding-top: var(--section-pad);
}

.section-surface + .cta-band {
	background: var(--surface);
}

/* Grids */
.grid-1 {
	grid-template-columns: minmax(0, 1fr);
	max-width: 720px;
	margin-inline: auto;
}

.grid {
	gap: 24px;
}

/* ------------------------------------------------------------------
 * Inner-page header (banner)
 * ---------------------------------------------------------------- */
.banner {
	position: relative;
	padding: clamp(56px, 7vw, 96px) 0 clamp(56px, 6vw, 88px);
	color: var(--text-on-dark);
	background: var(--night);
	background-image: var(--grid-lines), var(--bg-night);
	background-size: 64px 64px, 64px 64px, auto, auto, auto;
}

.banner-inner {
	display: block;
}

.banner .crumb-wrap {
	margin-bottom: 20px;
}

.banner-title {
	max-width: 860px;
	flex-basis: auto;
}

.banner h1 {
	margin-bottom: 16px;
	font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
	line-height: 1.08;
	color: #fff;
}

.banner-subtitle {
	display: block;
	max-width: 40em;
	margin: 0 0 4px;
	font-size: 1.1875rem;
	line-height: 1.6;
	text-align: left;
	color: var(--text-on-dark);
}

.banner-actions {
	margin-top: 28px;
}

.crumb {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
	color: rgba(230, 236, 247, 0.75);
}

.crumb a {
	color: var(--on-dark);
	text-decoration: underline;
	text-decoration-color: rgba(230, 236, 247, 0.35);
	text-underline-offset: 3px;
}

.crumb a:hover {
	color: #fff;
	text-decoration-color: currentColor;
}

.crumb li + li::before {
	content: "";
	width: 5px;
	height: 5px;
	margin: 0 12px 0 8px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.6;
}

.crumb .active {
	color: #fff;
}

/* ------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------- */
.site-footer {
	padding-top: clamp(64px, 7vw, 96px);
	background: var(--night);
	background-image: none;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.2fr 1.4fr 1fr;
	gap: 48px clamp(32px, 5vw, 72px);
}

.footer-about,
.footer-links,
.footer-contact {
	grid-column: auto;
}

/* Engineering services, then the header navigation */
.footer-links-inner {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 32px;
}

.footer-logo img {
	width: auto;
	height: 38px;
	max-height: none;
}

.footer-about p {
	max-width: 30em;
	margin: 24px 0 28px;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--text-on-dark);
}

.footer-cta {
	margin-bottom: 20px;
}



.site-footer .footer-heading {
	margin: 4px 0 20px;
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(230, 236, 247, 0.6);
}

.site-footer .menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .menu li {
	margin: 0;
}

.site-footer .menu a,
.site-footer .contact-item a {
	display: inline-block;
	padding: 5px 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--on-dark);
}

.site-footer .menu a:hover,
.site-footer .contact-item a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer .contact-item {
	margin-bottom: 20px;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--text-on-dark);
}

.site-footer .contact-label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
	font-size: 0.875rem;
	font-weight: 600;
	color: #fff;
}

.site-footer .contact-label .icon {
	width: 16px;
	height: 16px;
	color: var(--accent);
}

.contact-note {
	display: block;
	margin-top: 6px;
	font-size: 0.875rem;
	color: rgba(230, 236, 247, 0.7);
}

.subfooter {
	margin-top: 64px;
	border-top: 1px solid var(--line-dark);
}

.subfooter-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	align-items: center;
	justify-content: space-between;
	padding-block: 24px;
	font-size: 0.875rem;
	color: rgba(230, 236, 247, 0.7);
}

.subfooter .menu {
	display: flex;
	gap: 8px 24px;
	flex-wrap: wrap;
}

.subfooter .menu a {
	font-size: 0.875rem;
	color: rgba(230, 236, 247, 0.7);
}

/* ------------------------------------------------------------------
 * Motion: shorter, softer reveals than the base layer
 * ---------------------------------------------------------------- */
.reveal-ready [data-reveal] {
	transition: opacity 0.6s var(--ease-out) var(--reveal-delay, 0s), transform 0.7s var(--ease-out) var(--reveal-delay, 0s);
}

.reveal-ready [data-reveal="up"] {
	transform: translateY(16px);
}

.reveal-ready [data-reveal="right"] {
	transform: translateX(20px);
}

.reveal-ready [data-reveal="zoom"] {
	transform: scale(0.97);
}

/* Hero entrance (CSS only, runs once) */
@keyframes svn-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* The H1 is left static so it paints immediately (LCP) */
.hero-copy > :not(h1),
.hero-panel {
	animation: svn-rise 0.8s var(--ease-out) both;
}

.hero-copy > :nth-child(3) { animation-delay: 0.45s; }
.hero-copy > :nth-child(4) { animation-delay: 0.55s; }
.hero-copy > :nth-child(5) { animation-delay: 0.65s; }
.hero-panel { animation-delay: 0.3s; }

/* Headline reveal: each word slides up out of a clipping box, one after
 * another (markup from svn_reveal_words()). Transform only. */
@keyframes svn-word {
	from {
		transform: translateY(110%);
	}
	to {
		transform: none;
	}
}

.reveal-words .rw {
	display: inline-block;
	overflow: hidden;
	/* room for descenders inside the clip */
	padding-bottom: 0.12em;
	margin-bottom: -0.12em;
	vertical-align: top;
}

.reveal-words .rw > span {
	display: inline-block;
	animation: svn-word 0.75s var(--ease-out) both;
	animation-delay: calc(0.1s + var(--i, 0) * 0.06s);
}

/* Two soft glows (cobalt and teal) drifting slowly behind the dark headers */
@keyframes svn-drift {
	0% {
		transform: translate3d(0, 0, 0) scale(1);
	}
	50% {
		transform: translate3d(-12%, 8%, 0) scale(1.12);
	}
	100% {
		transform: translate3d(6%, 14%, 0) scale(0.96);
	}
}

@keyframes svn-drift-alt {
	0% {
		transform: translate3d(0, 0, 0) scale(1);
	}
	50% {
		transform: translate3d(14%, -10%, 0) scale(1.15);
	}
	100% {
		transform: translate3d(-6%, -4%, 0) scale(1);
	}
}

.hero-bg::before,
.banner::before {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
	will-change: transform;
}

.hero-bg::before,
.banner::before {
	display: block;
	top: -25%;
	right: -10%;
	width: 65%;
	height: 110%;
	background: radial-gradient(closest-side, rgba(51, 102, 230, 0.4), transparent);
	animation: svn-drift 16s ease-in-out infinite alternate;
}

.hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	bottom: -30%;
	left: -10%;
	width: 50%;
	height: 90%;
	background: radial-gradient(closest-side, rgba(94, 234, 212, 0.14), transparent);
	animation: svn-drift-alt 20s ease-in-out infinite alternate;
	will-change: transform;
	pointer-events: none;
}

/* Inner-page banners (services hub, service pages, about...) */
.banner {
	isolation: isolate;
	overflow: hidden;
}

.banner .crumb-wrap,
.banner-subtitle,
.banner-actions {
	animation: svn-rise 0.7s var(--ease-out) both;
}

.banner-subtitle { animation-delay: 0.35s; }
.banner-actions { animation-delay: 0.45s; }

/* ------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------- */
@media (max-width: 1100px) {
	.hero-grid {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
	}

	.compare-col {
		padding: 32px 28px;
	}
}

@media (max-width: 991px) {
	.hero-grid,
	.split,
	.split-wide {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero-panel {
		max-width: 560px;
	}

	.split-aside {
		position: static;
	}

	.steps,
	.steps-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px 32px;
	}

	.compare {
		grid-template-columns: minmax(0, 1fr);
	}

	.compare-col + .compare-col {
		border-left: 0;
		border-top: 1px solid var(--line);
	}

	.compare-num {
		margin-bottom: 20px;
	}

	.cta-band .cta-inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.cta-band .btn-row {
		justify-content: flex-start;
	}

	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.banner-subtitle {
		display: block;
		font-size: 1.0625rem;
	}
}

@media (max-width: 767px) {
	:root {
		--gutter: 20px;
	}

	.section-head,
	.section-head-row {
		margin-bottom: 40px;
	}

	.section-head-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.section-head p {
		font-size: 1.0625rem;
	}

	.hero {
		padding: 56px 0 64px;
	}

	.hero-eyebrow {
		margin-bottom: 22px;
		font-size: 0.8125rem;
	}

	.hero-text {
		margin-bottom: 28px;
		font-size: 1.0625rem;
	}

	/* The service list is repeated two sections below; keep the phone hero short */
	.hero-panel {
		display: none;
	}

	.hero-proof {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 36px;
		padding-top: 24px;
	}

	.btn-row .btn {
		flex: 1 1 100%;
	}

	.row-link {
		grid-template-columns: 44px minmax(0, 1fr);
		gap: 16px;
		padding: 24px 0;
	}

	.row-icon {
		width: 44px;
		height: 44px;
	}

	.row-body h3 {
		font-size: 1.1875rem;
	}

	.row-arrow {
		display: none;
	}

	.audience,
	.service-card {
		padding: 26px 24px;
	}

	.steps,
	.steps-3,
	.feature-list,
	.footer-links-inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.feature-list {
		gap: 32px;
	}

	.compare-col {
		padding: 28px 24px;
	}

	.grow-row {
		padding: 20px;
	}

	.help-card {
		padding: 24px;
	}

	.help-card .btn-row .btn {
		flex: 0 1 auto;
	}

	.cta-band .cta-inner {
		padding: 36px 24px;
		border-radius: var(--radius);
	}

	.accordion-button {
		font-size: 1.0625rem;
	}

	.post-grid:has(> .post-card:nth-child(2):last-child) {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.btn,
	.audience,
	.service-card,
	.row-arrow,
	.hero-copy > :not(h1),
	.hero-panel,
	.hero-bg::before,
	.hero::after,
	.banner::before,
	.reveal-words .rw > span,
	.banner .crumb-wrap,
	.banner-subtitle,
	.banner-actions,
	.main-nav .menu > li > a,
	.main-nav .menu > li > a::after {
		transition: none;
		animation: none;
	}

	.btn:hover,
	a.audience:hover,
	.service-card:hover,
	.row-link:hover .row-arrow {
		transform: none;
	}
}

/* Service icon tile: neutralise the old dark-tile rule */
.service-icon {
	display: grid;
	width: 48px;
	height: 48px;
	padding: 0;
	background: rgba(var(--primary-rgb), 0.07);
	border-radius: var(--radius-sm);
}

.service-icon img,
.service-icon svg {
	width: 24px;
	height: 24px;
	padding: 0;
	/* Follow the tile (primary at rest, white on card hover) */
	color: inherit;
	background: none;
	stroke-width: 1.8;
}

.service-title {
	margin: 0 0 10px;
	font-size: 1.25rem;
	line-height: 1.3;
}

/* ------------------------------------------------------------------
 * Blog: filter chips, cards, post header, article, sidebar
 * ---------------------------------------------------------------- */
.filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-bottom: 40px;
}

.chip.is-active {
	color: #fff;
	background: var(--ink);
	border-color: var(--ink);
}

button.chip {
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
}

button.chip:hover {
	color: #fff;
	background: var(--primary);
	border-color: var(--primary);
}

.post-grid {
	align-items: stretch;
}

/* Two posts on the home page: fill the row instead of leaving a gap */
.post-grid:has(> .post-card:nth-child(2):last-child) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: none;
	transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease-out), border-color 0.3s var(--ease);
}

.post-card:hover {
	border-color: rgba(var(--primary-rgb), 0.3);
	box-shadow: var(--shadow-md);
	transform: translateY(-3px);
}

.post-card-media {
	position: relative;
	display: block;
	flex: none;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--dark-2);
}

.post-card-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease-out);
}

.post-card:hover .post-card-media img,
.post-card:hover .post-card-media .art {
	transform: scale(1.03);
}

/* Fallback artwork until a featured image is set: brand night + grid */
.post-card-media .art {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: var(--night);
	background-image: var(--grid-lines), var(--bg-night);
	background-size: 40px 40px, 40px 40px, auto, auto, auto;
	border-radius: 0;
	transition: transform 0.6s var(--ease-out);
}

.post-card-media .art::before {
	display: none;
}

.post-card-media .art-icon {
	width: 18%;
	max-height: 40%;
	color: rgba(230, 236, 247, 0.85);
	stroke-width: 1.4;
}

.post-card-body {
	position: static;
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px 28px 28px;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	align-items: center;
	margin-bottom: 10px;
	font-size: 0.875rem;
	color: var(--muted);
}

.post-cat {
	padding: 2px 10px;
	font-weight: 600;
	color: var(--primary);
	background: rgba(var(--primary-rgb), 0.09);
	border-radius: 999px;
}

.post-cat:hover {
	color: #fff;
	background: var(--primary);
}

.post-card .post-card-title {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	overflow: visible;
	font-size: 1.25rem;
	line-height: 1.35;
	color: var(--ink);
	background: none;
	border-radius: 0;
}

.post-card .post-card-title a {
	color: var(--ink);
}

.post-card .post-card-title a:hover {
	color: var(--primary);
}

.post-card-excerpt {
	margin-bottom: 16px;
	color: var(--muted);
}

.post-card .text-link {
	margin-top: auto;
}

.post-card--feature {
	grid-column: 1 / -1;
	flex-direction: row;
}

.post-card--feature .post-card-media {
	flex: 0 0 48%;
	aspect-ratio: auto;
	min-height: 320px;
}

.post-card--feature .post-card-body {
	justify-content: center;
	padding: 36px 40px;
}

.post-card--feature .post-card-title {
	font-size: clamp(1.5rem, 2.6vw, 2rem);
}

/* Post header */
.post-hero .banner-title {
	max-width: 900px;
}

.post-meta-hero {
	margin-bottom: 14px;
	color: var(--text-on-dark);
}

.post-meta-hero .post-cat {
	color: var(--ink);
	background: var(--accent);
}

.post-meta-hero .post-cat:hover {
	color: var(--ink);
	background: #fff;
}

.post-byline {
	margin: 12px 0 0;
	font-size: 0.9375rem;
	color: var(--text-on-dark);
}

/* Article + sidebar */
.post-layout {
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 56px;
	align-items: start;
}

.post-main {
	min-width: 0;
}

.post-figure {
	margin: 0 0 32px;
}

.post-figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius);
}

.blog-read {
	font-size: 1.0625rem;
	line-height: 1.8;
	counter-reset: section;
}

.blog-read p,
.blog-read li {
	color: var(--text);
}

.blog-read > h2 {
	position: relative;
	margin: 40px 0 12px;
	padding-left: 52px;
	font-size: 1.5rem;
	line-height: 1.35;
	counter-increment: section;
}

.blog-read > h2::before {
	content: counter(section);
	position: absolute;
	top: -2px;
	left: 0;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	background: var(--primary);
	border-radius: 50%;
}

.blog-read > h2 ~ p,
.blog-read > h2 ~ ul,
.blog-read > h2 ~ ol {
	margin-left: 52px;
}

.blog-read > h3 {
	padding-left: 0;
	margin: 28px 0 8px;
	font-size: 1.25rem;
	counter-increment: none;
}

.blog-read > h3::before {
	content: none;
}

.blog-read > h3 ~ p {
	margin-left: 52px;
}

.blog-read > h2 + p:first-of-type {
	margin-top: 0;
}

/* Legal pages: sections are h2 (they sit directly under the h1) but keep the
   compact, unnumbered look of the h3 they used to be. */
.blog-read.legal-read > h2 {
	padding-left: 0;
	margin: 28px 0 8px;
	font-size: 1.25rem;
	line-height: 1.6;
	letter-spacing: -0.01em;
	counter-increment: none;
}

.blog-read.legal-read > h2::before {
	content: none;
}

.blog-read.legal-read > h2 ~ ul,
.blog-read.legal-read > h2 ~ ol {
	margin-left: 24px;
}

.post-tags {
	margin: 32px 0 0;
}

.share-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 28px 0 0;
	padding: 18px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.share-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-right: 6px;
	font-weight: 700;
	color: var(--ink);
}

.share-label .icon {
	width: 18px;
	height: 18px;
	color: var(--primary);
}

.related-cta {
	margin-top: 40px;
	padding: 32px;
	color: var(--text-on-dark);
	background: linear-gradient(135deg, #0b1b3a 0%, #16306a 100%);
	border-radius: var(--radius);
}

.related-cta-kicker {
	margin: 0 0 4px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
}

.related-cta-title {
	margin: 0 0 10px;
	font-size: 1.5rem;
	color: #fff;
}

.related-cta p {
	color: var(--text-on-dark);
}

.related-cta .btn-row {
	margin-top: 16px;
}

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 32px;
}

.post-nav a {
	display: block;
	padding: 16px 18px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.post-nav a:hover {
	border-color: var(--primary);
}

.post-nav span {
	display: block;
	margin-bottom: 4px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.post-nav-next {
	grid-column: 2;
	text-align: right;
}

.sidebar-inner {
	position: sticky;
	top: calc(var(--header-h) + 24px);
}

.sidebar .widget {
	margin-bottom: 28px;
	padding: 24px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.sidebar .widget-cta {
	color: var(--text-on-dark);
	background: linear-gradient(135deg, #0b1b3a 0%, #16306a 100%);
	border-color: transparent;
}

.sidebar .widget-cta .widget-title {
	color: #fff;
}

.sidebar .widget-cta p {
	color: var(--text-on-dark);
}

.widget-title,
.sidebar .widget h2 {
	margin-bottom: 12px;
	font-size: 1.125rem;
	line-height: 1.4;
}

.mini-posts li {
	display: block;
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid var(--line);
}

.mini-posts li:first-child {
	padding-top: 0;
	border-top: 0;
}

.mini-title {
	display: block;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ink);
}

.mini-title:hover {
	color: var(--primary);
}

.mini-date {
	display: block;
	margin-top: 4px;
	font-size: 0.875rem;
	color: var(--muted);
}

@media (max-width: 991px) {
	.post-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.sidebar-inner {
		position: static;
	}

	.post-card--feature {
		flex-direction: column;
	}

	.post-card--feature .post-card-media {
		flex: none;
		aspect-ratio: 16 / 9;
		min-height: 0;
	}

	.post-card--feature .post-card-body {
		padding: 24px;
	}
}

@media (max-width: 575px) {
	.blog-read > h2 {
		padding-left: 46px;
		font-size: 1.3125rem;
	}

	.blog-read > h2 ~ p,
	.blog-read > h2 ~ ul,
	.blog-read > h2 ~ ol,
	.blog-read > h3 ~ p {
		margin-left: 0;
	}

	.related-cta {
		padding: 24px;
	}

	.post-nav {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-nav-next {
		grid-column: auto;
		text-align: left;
	}
}

/* ------------------------------------------------------------------
 * Service page
 * ---------------------------------------------------------------- */
.service-hero {
	padding: 52px 0 64px;
}

.service-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
	gap: 48px;
	align-items: center;
}

.service-hero h1 {
	max-width: 14em;
}

.side-card {
	padding: 28px;
	color: var(--text);
	background: #fff;
	border-radius: 18px;
	box-shadow: var(--shadow-md);
}

.side-card-title {
	margin: 0 0 8px;
	font-size: 1.25rem;
	color: var(--ink);
}

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

.side-card-list {
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.side-card-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	color: var(--text);
	word-break: break-word;
}

.side-card-list .icon {
	flex: none;
	width: 18px;
	height: 18px;
	color: var(--primary);
}

.side-card-list a {
	font-weight: 600;
	color: var(--ink);
}

.side-card-note {
	margin: 14px 0 0;
	padding-top: 14px;
	font-size: 0.875rem;
	border-top: 1px solid var(--line);
}

.service-overview {
	gap: 56px;
}

.glance {
	padding: 28px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.glance h3 {
	margin-bottom: 14px;
}

.check-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.check-list li {
	position: relative;
	padding: 6px 0 6px 30px;
	font-weight: 600;
	color: var(--ink);
}

.check-list li::before {
	content: "";
	position: absolute;
	top: 12px;
	left: 4px;
	width: 7px;
	height: 12px;
	border-right: 2.5px solid var(--primary);
	border-bottom: 2.5px solid var(--primary);
	transform: rotate(45deg);
}

.icon-item {
	display: flex;
	gap: 18px;
	align-items: flex-start;
}

.icon-box {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	color: var(--primary);
	background: rgba(var(--primary-rgb), 0.09);
	border: 0;
	border-radius: 12px;
}

.icon-box-outline {
	width: 36px;
	height: 36px;
	background: transparent;
	border: 2px solid rgba(var(--primary-rgb), 0.35);
	border-radius: 10px;
}

.icon-box .icon {
	width: 22px;
	height: 22px;
}

.icon-item h3 {
	margin-bottom: 6px;
	color: var(--ink);
}

.icon-item p {
	margin: 0;
	color: var(--muted);
}

.mid-cta {
	background: #fff;
	border-block: 1px solid var(--line);
}

.mid-cta-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	align-items: center;
	justify-content: space-between;
	padding-block: 28px;
}

.mid-cta p {
	margin: 0;
	color: var(--text);
}

.mid-cta strong {
	color: var(--ink);
}

.steps-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 24px;
}

.chips-section {
	padding-block: 56px;
}

.chips-title {
	margin-bottom: 14px;
	font-size: 1.125rem;
}

.chips-center .chips {
	justify-content: center;
}

.related-services {
	padding-top: 0;
}

@media (max-width: 991px) {
	.service-hero-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.steps-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mid-cta-inner .btn {
		width: 100%;
	}
}

@media (max-width: 575px) {
	.steps-3 {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------------------------
 * Contact page and form
 * ---------------------------------------------------------------- */
.contact-section {
	background: var(--surface);
}

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: 40px;
	align-items: start;
}

.contact-aside {
	display: grid;
	gap: 20px;
}

.contact-panel {
	padding: 26px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.contact-panel h2 {
	margin-bottom: 12px;
	font-size: 1.25rem;
}

.contact-book {
	color: var(--text-on-dark);
	background: linear-gradient(135deg, #0b1b3a 0%, #16306a 100%);
	border-color: transparent;
}

.contact-book h2 {
	color: #fff;
}

.next-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: nx;
}

.next-steps li {
	position: relative;
	padding: 0 0 18px 46px;
	counter-increment: nx;
}

.next-steps li:last-child {
	padding-bottom: 0;
}

.next-steps li::before {
	content: counter(nx);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	font-weight: 700;
	color: #fff;
	background: var(--primary);
	border-radius: 50%;
}

.next-steps strong {
	display: block;
	color: var(--ink);
}

.next-steps span {
	display: block;
	color: var(--muted);
	font-size: 0.9375rem;
}

.contact-form-wrap {
	padding: 36px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: var(--shadow-md);
}

.contact-form-wrap h2 {
	margin-bottom: 8px;
	font-size: 1.625rem;
}

.contact-intro-text {
	margin-bottom: 24px;
	color: var(--muted);
}

.contact-form .field-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 20px;
}

.contact-form .field {
	margin-bottom: 18px;
}

.contact-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--ink);
}

.contact-form .req {
	color: #b42318;
}

.contact-form .opt {
	font-weight: 400;
	color: var(--muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	font-size: 1rem;
	color: var(--ink);
	background: #fff;
	border: 1px solid #b6c0cf;
	border-radius: 10px;
	transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.contact-form textarea {
	min-height: 132px;
	resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
	outline: 0;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

.contact-form .is-invalid {
	border-color: #b42318;
}

.contact-form .field-error {
	display: block;
	margin-top: 6px;
	font-size: 0.875rem;
	color: #b42318;
}

.contact-form .form-actions {
	margin-top: 4px;
}

.contact-form .form-actions .btn {
	min-width: 200px;
}

.form-privacy {
	margin: 14px 0 0;
	font-size: 0.875rem;
	color: var(--muted);
}

.form-status .notice {
	margin: 16px 0 0;
	padding: 14px 16px;
	font-weight: 600;
	border-radius: 10px;
}

.notice-success {
	color: #0b3d2e;
	background: #d9f5e9;
	border: 1px solid #8fd9b8;
}

.notice-error {
	color: #6b1a12;
	background: #fde8e6;
	border: 1px solid #f3a8a1;
}

.hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ------------------------------------------------------------------
 * About, services index, team
 * ---------------------------------------------------------------- */
.about-split {
	gap: 56px;
}

.about-copy p {
	color: var(--text);
}

.about-side {
	display: grid;
	gap: 20px;
}

.glance a {
	color: var(--ink);
}

.glance a:hover {
	color: var(--primary);
}

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

.where-address {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-weight: 600;
	color: var(--ink) !important;
}

.where-address .icon {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 4px;
	color: var(--primary);
}

.prose-wide {
	max-width: 820px;
	margin-inline: auto;
}

.prose p {
	color: var(--text);
}

.team-card {
	padding: 26px;
	text-align: center;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.team-avatar {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin: 0 auto 14px;
	font-family: var(--font-head);
	font-size: 1.75rem;
	font-weight: 700;
	color: #fff;
	background: var(--grad);
	border-radius: 50%;
}

.team-role {
	font-weight: 700;
	color: var(--primary);
}

.service-card-sm {
	padding: 22px;
}

.service-card-sm p {
	font-size: 0.9375rem;
}

.narrow-content.wide {
	max-width: 820px;
	margin-inline: auto;
}

.grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
	.grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.contact-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.contact-form-wrap {
		order: -1;
		padding: 26px;
	}

	.about-split,
	.service-overview {
		gap: 32px;
	}

	.grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.contact-form .field-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.contact-form .form-actions .btn {
		width: 100%;
	}

	.grid-2,
	.grid-3,
	.grid-4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.split {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------------------------
 * Overrides for older rules that were winning on specificity
 * ---------------------------------------------------------------- */
/* .banner::before is the drifting glow (see Hero entrance) */
.banner::after {
	display: none;
}

.banner-art {
	display: none;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
	height: auto;
	min-height: 48px;
	padding: 10px 14px;
	color: var(--ink);
	background-color: #fff;
	border: 1px solid #b6c0cf;
	border-radius: 10px;
}

.contact-form select {
	padding-right: 40px;
}

.contact-form textarea {
	min-height: 132px;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

.contact-form input.is-invalid,
.contact-form select.is-invalid,
.contact-form textarea.is-invalid {
	border-color: #b42318;
	box-shadow: none;
}

.check-list {
	color: var(--ink);
}

.check-list li {
	margin-bottom: 0;
	padding: 6px 0 6px 32px;
	line-height: 1.5;
}

.check-list li::before {
	top: 0.85em;
	left: 3px;
	width: 13px;
	height: 7px;
	border: 0;
	border-left: 3px solid var(--primary);
	border-bottom: 3px solid var(--primary);
	transform: rotate(-45deg);
}

/* Comfortable tap targets on touch devices */
@media (max-width: 991px) {
	.site-footer .menu a,
	.site-footer .contact-item a {
		padding-block: 11px;
	}

	.text-link {
		min-height: 44px;
	}

	.chip {
		min-height: 40px;
		display: inline-flex;
		align-items: center;
	}

	.crumb a {
		display: inline-block;
		padding-block: 8px;
	}

	.subfooter .menu a {
		display: inline-block;
		padding-block: 10px;
	}
}

/* ------------------------------------------------------------------
 * Trust line under calls to action, and sidebar titles that are
 * styled like headings without being headings (keeps the outline clean).
 * ---------------------------------------------------------------- */
.trust-line {
	margin: 14px 0 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--muted);
}

.hero .trust-line,
.on-dark .trust-line {
	color: var(--text-on-dark);
}

.widget-title,
.side-card .side-card-title {
	font-family: var(--font-head);
	font-weight: 600;
	letter-spacing: -0.015em;
}

.side-card .side-card-title {
	color: var(--ink);
}

.further-link {
	margin-top: 20px;
	color: var(--muted);
}

/* ------------------------------------------------------------------
 * Technologies (template-parts/technologies.php): names grouped by layer
 * ---------------------------------------------------------------- */
.tech-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.tech-group {
	padding: 28px 24px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.tech-group:hover {
	border-color: var(--line-strong);
	box-shadow: var(--shadow-sm);
}

.tech-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	font-size: 1.0625rem;
}

.tech-icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: var(--primary);
	background: rgba(var(--primary-rgb), 0.08);
	border-radius: var(--radius-sm);
}

.tech-icon .icon {
	width: 20px;
	height: 20px;
}

.tech-group .chip {
	padding: 5px 12px;
	font-size: 0.8125rem;
	background: var(--surface);
	border-color: var(--line);
}

.tech-note {
	margin: 32px 0 0;
	font-size: 0.9375rem;
	color: var(--muted);
}

@media (max-width: 1100px) {
	.tech-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.tech-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.tech-group {
		padding: 24px 20px;
	}
}

/* ------------------------------------------------------------------
 * Hover polish: cards lift, icons fill, links slide. Transform/colour only.
 * ---------------------------------------------------------------- */
.btn:hover,
.btn:focus-visible {
	transform: translateY(-2px);
}

a.audience:hover,
.service-card:hover,
.post-card:hover {
	border-color: rgba(var(--primary-rgb), 0.35);
	box-shadow: var(--shadow-md);
	transform: translateY(-6px);
}

.service-icon,
.tech-icon {
	transition: color 0.3s var(--ease), background-color 0.3s var(--ease), transform 0.35s var(--ease-out);
}

.service-card:hover .service-icon,
.tech-group:hover .tech-icon {
	color: #fff;
	background: var(--primary);
	transform: scale(1.06);
}

.service-card:hover .service-title a {
	color: var(--primary);
}

.service-title a {
	transition: color 0.2s var(--ease);
}

.tech-group {
	transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease-out);
}

.tech-group:hover {
	border-color: rgba(var(--primary-rgb), 0.35);
	box-shadow: var(--shadow-md);
	transform: translateY(-4px);
}

.tech-group .chip {
	transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.tech-group:hover .chip {
	background: #fff;
	border-color: rgba(var(--primary-rgb), 0.25);
}

.feature-icon .icon {
	transition: transform 0.35s var(--ease-out);
}

.feature:hover .feature-icon .icon {
	transform: translateY(-3px) scale(1.08);
}

/* Footer links slide in slightly instead of underlining */
.site-footer .menu a {
	transition: color 0.2s var(--ease), transform 0.25s var(--ease-out);
}

.site-footer .menu a:hover,
.site-footer .menu a:focus-visible {
	color: #fff;
	text-decoration: none;
	transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
	.btn:hover,
	a.audience:hover,
	.service-card:hover,
	.post-card:hover,
	.tech-group:hover,
	.service-card:hover .service-icon,
	.tech-group:hover .tech-icon,
	.feature:hover .feature-icon .icon,
	.site-footer .menu a:hover {
		transform: none;
	}
}
