/* ==========================================================================
   Maltar Services — design system
   1. Tokens
   2. Base
   3. Layout
   4. Utilities & motion
   5. Header / navigation
   6. Buttons
   7. Hero
   8. Sections
   9. Footer
   10. Editorial (blog, single, archive, 404)
   11. Floating CTA
   12. Motion preferences
   ========================================================================== */

/* 1. Tokens ================================================================ */

:root {
	--navy: #071a33;
	--navy-700: #0f2b4e;
	--navy-500: #1c4675;
	--teal: #0fb3a0;
	--teal-dark: #0a8a7c;
	--blue: #2e6bf2;
	--blue-dark: #1d51c9;
	--ink: #101b2b;
	--muted: #55677e;
	--muted-light: #8598ad;
	--line: #e2e8f0;
	--line-strong: #cbd6e4;
	--surface: #ffffff;
	--surface-alt: #f5f8fb;
	--surface-sunk: #eef3f8;

	/* Accent is swapped per section so Talent and RPO read as two services. */
	--accent: var(--teal);
	--accent-dark: var(--teal-dark);
	--accent-soft: rgba(15, 179, 160, 0.12);

	--font-display: Manrope, "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--font-body: Inter, "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 22px;

	--shadow-card: 0 1px 2px rgba(7, 26, 51, 0.04), 0 12px 30px -18px rgba(7, 26, 51, 0.28);
	--shadow-lift: 0 2px 6px rgba(7, 26, 51, 0.06), 0 26px 48px -24px rgba(7, 26, 51, 0.35);
	--shadow-header: 0 1px 0 rgba(7, 26, 51, 0.06), 0 10px 30px -20px rgba(7, 26, 51, 0.5);

	--container: 1200px;
	--gutter: clamp(1.25rem, 5vw, 2.5rem);
	--section-y: clamp(3.25rem, 8vw, 8.125rem);
	--section-y-tight: clamp(2.75rem, 5.5vw, 5.5rem);

	--header-h: 72px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-accent="blue"] {
	--accent: var(--blue);
	--accent-dark: var(--blue-dark);
	--accent-soft: rgba(46, 107, 242, 0.12);
}

[data-accent="teal"] {
	--accent: var(--teal);
	--accent-dark: var(--teal-dark);
	--accent-soft: rgba(15, 179, 160, 0.12);
}

/* 2. Base ================================================================== */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	overflow-x: clip;
}

body {
	margin: 0;
	background: var(--surface);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.is-locked {
	overflow: hidden;
}

h1,
h2,
h3,
h4,
h5 {
	font-family: var(--font-display);
	color: var(--navy);
	font-weight: 700;
	line-height: 1.14;
	letter-spacing: -0.022em;
	margin: 0 0 0.6em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.35rem, 6vw, 4.15rem);
}

h2 {
	font-size: clamp(1.9rem, 4vw, 3rem);
}

h3 {
	font-size: clamp(1.3rem, 2.2vw, 1.75rem);
}

h4 {
	font-size: clamp(1.08rem, 1.6vw, 1.25rem);
	letter-spacing: -0.012em;
}

p {
	margin: 0 0 1.15rem;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--navy-500);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s var(--ease);
}

a:hover {
	color: var(--accent-dark);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

ul,
ol {
	padding-left: 1.15rem;
}

:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 3px;
	border-radius: 4px;
}

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

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 1000;
	background: var(--navy);
	color: #fff;
	padding: 0.75rem 1.25rem;
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	font-weight: 600;
	transition: top 0.2s var(--ease);
}

.skip-link:focus {
	top: 0;
	color: #fff;
}

/* 3. Layout ================================================================ */

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: 860px;
}

.section {
	position: relative;
	padding-block: var(--section-y);
}

.section--tight {
	padding-block: var(--section-y-tight);
}

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

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

.section--dark {
	background: var(--navy);
	color: rgba(255, 255, 255, 0.78);
}

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

.section--dark a {
	color: #fff;
}

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

.grid {
	display: grid;
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

.card-grid {
	display: grid;
	gap: clamp(1rem, 2vw, 1.5rem);
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.card-grid--2,
	.card-grid--3,
	.card-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.card-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

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

.split {
	display: grid;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

@media (min-width: 900px) {
	.split {
		grid-template-columns: 1fr 1fr;
	}

	.split--wide-left {
		grid-template-columns: 1.15fr 0.85fr;
	}

	.split--wide-right {
		grid-template-columns: 0.85fr 1.15fr;
	}
}

/* 4. Utilities & motion ==================================================== */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--font-display);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent-dark);
	margin: 0 0 1rem;
}

.section--dark .eyebrow {
	color: #7fe3d6;
}

[data-accent="blue"].section--dark .eyebrow,
.section--dark[data-accent="blue"] .eyebrow {
	color: #9dbaff;
}

.eyebrow__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	flex: none;
}

.section-head {
	max-width: 46rem;
	margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

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

.section-head--center .eyebrow {
	justify-content: center;
}

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

.section-head__title {
	margin-bottom: 0.75rem;
}

.section-head__text {
	color: var(--muted);
	font-size: clamp(1rem, 1.4vw, 1.125rem);
}

.section--dark .section-head__text {
	color: rgba(255, 255, 255, 0.75);
}

.lede {
	font-size: clamp(1.05rem, 1.6vw, 1.22rem);
	color: var(--muted);
	line-height: 1.65;
}

.section--dark .lede {
	color: rgba(255, 255, 255, 0.8);
}

.accent-rule {
	width: 56px;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--accent), transparent);
	margin: 0 0 1.5rem;
}

.chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 1.25rem 0 0;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	border: 1px solid var(--line);
	background: var(--surface);
	border-radius: 999px;
	padding: 0.45rem 0.9rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--navy-700);
}

.section--dark .chip {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.16);
	color: rgba(255, 255, 255, 0.88);
}

.ticks {
	list-style: none;
	padding: 0;
	margin: 1.25rem 0 0;
	display: grid;
	gap: 0.6rem;
}

.ticks li {
	position: relative;
	padding-left: 1.75rem;
	color: var(--muted);
	font-size: 0.98rem;
}

.ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: var(--accent);
	opacity: 0.9;
}

.section--dark .ticks li {
	color: rgba(255, 255, 255, 0.78);
}

/* Scroll reveal — only applied when JavaScript is available. */
.js .reveal {
	opacity: 0;
	transform: translate3d(0, 22px, 0);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
	transition-delay: calc(var(--i, 0) * 70ms);
	will-change: opacity, transform;
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
	will-change: auto;
}

.js .split-lines .line {
	display: block;
	overflow: hidden;
}

.js .split-lines .line > span {
	display: block;
	transform: translate3d(0, 105%, 0);
	transition: transform 0.75s var(--ease);
	transition-delay: calc(var(--i, 0) * 90ms);
}

.js .split-lines.is-visible .line > span {
	transform: none;
}

/* 5. Header / navigation =================================================== */

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 90;
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-stuck {
	background: rgba(255, 255, 255, 0.96);
	border-bottom-color: var(--line);
	box-shadow: var(--shadow-header);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	min-height: var(--header-h);
	transition: min-height 0.3s var(--ease);
}

.site-header.is-stuck .site-header__inner {
	min-height: 62px;
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	text-decoration: none;
	color: var(--navy);
	flex: none;
	max-width: 62vw;
}

.site-brand .custom-logo {
	max-height: 44px;
	width: auto;
}

.site-brand__mark {
	display: block;
	flex: none;
	position: relative;
	line-height: 0;
}

.brand-mark {
	display: block;
	height: 34px;
	width: auto;
}

/* Logo-only header: the mark carries the brand alone, so it is set larger. */
.site-brand--mark-only .brand-mark {
	height: 44px;
}

/* The light mark is stacked on top of the dark one and cross-faded, so the
   logo never disappears when the header changes background. */
.brand-mark--light {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.3s var(--ease);
}

body.has-dark-hero .site-header:not(.is-stuck) .brand-mark--dark {
	opacity: 0;
}

body.has-dark-hero .site-header:not(.is-stuck) .brand-mark--light {
	opacity: 1;
}

.brand-mark--dark {
	transition: opacity 0.3s var(--ease);
}

.drawer-brand {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	color: var(--navy);
	min-width: 0;
}

/* The drawer panel is always white, so it always uses the dark mark. */
.drawer-brand .brand-mark--light {
	display: none;
}

.drawer-brand .brand-mark {
	height: 30px;
}

.footer-brand__logo {
	display: inline-block;
	margin-bottom: 1.1rem;
	line-height: 0;
}

.brand-logo--lockup {
	display: block;
	height: 74px;
	width: auto;
}

@media (max-width: 640px) {
	.brand-mark {
		height: 30px;
	}

	.site-brand--mark-only .brand-mark {
		height: 36px;
	}

	.brand-logo--lockup {
		height: 62px;
	}
}

.footer-legal__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-legal__list a {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.86rem;
	text-decoration: none;
}

.footer-legal__list a:hover,
.footer-legal__list a:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.site-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.site-title-text {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.02rem;
	letter-spacing: -0.02em;
	color: var(--navy);
}

.site-brand__sub {
	font-size: 0.66rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted-light);
	font-weight: 600;
}

.site-nav {
	display: none;
}

@media (min-width: 1180px) {
	.site-nav {
		display: block;
		margin-left: auto;
		min-width: 0;
	}

	.site-header .container {
		max-width: 1360px;
	}
}

.site-nav ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 0.15rem;
	margin: 0;
	padding: 0;
}

.site-nav li {
	position: relative;
}

.site-nav a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.55rem 0.62rem;
	font-family: var(--font-display);
	font-size: 0.875rem;
	white-space: nowrap;
	font-weight: 600;
	color: var(--navy-700);
	text-decoration: none;
	border-radius: var(--radius-sm);
	transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
	color: var(--navy);
	background: rgba(7, 26, 51, 0.05);
}

.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after {
	content: "";
	position: absolute;
	left: 0.7rem;
	right: 0.7rem;
	bottom: 0.3rem;
	height: 2px;
	border-radius: 2px;
	background: var(--accent);
}

.site-nav .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 240px;
	flex-direction: column;
	align-items: stretch;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lift);
	padding: 0.4rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-left: 0.5rem;
}

.header-actions .btn {
	display: none;
}

@media (min-width: 1180px) {
	.header-actions .btn {
		display: inline-flex;
		padding-inline: 1.1rem;
		font-size: 0.9rem;
	}
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 46px;
	height: 46px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--line-strong);
	background: #fff;
	color: var(--navy);
	cursor: pointer;
	transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-toggle:hover {
	background: var(--surface-alt);
	border-color: var(--navy-500);
}

@media (min-width: 1180px) {
	.nav-toggle {
		display: none;
	}
}

.nav-toggle .icon-close {
	display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
	display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

/* Transparent header while the page still shows its dark hero. */
body.has-dark-hero .site-header:not(.is-stuck) {
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border-bottom-color: transparent;
}

body.has-dark-hero .site-header:not(.is-stuck) .site-title-text {
	color: #fff;
}

body.has-dark-hero .site-header:not(.is-stuck) .site-brand__sub {
	color: rgba(255, 255, 255, 0.55);
}

body.has-dark-hero .site-header:not(.is-stuck) .site-nav a {
	color: rgba(255, 255, 255, 0.86);
}

body.has-dark-hero .site-header:not(.is-stuck) .site-nav a:hover,
body.has-dark-hero .site-header:not(.is-stuck) .site-nav .current-menu-item > a {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

body.has-dark-hero .site-header:not(.is-stuck) .nav-toggle {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.28);
	color: #fff;
}

body.has-dark-hero .site-header:not(.is-stuck) .btn--primary {
	background-image: none;
	background-color: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.32);
	color: #fff;
}

body.has-dark-hero .site-header:not(.is-stuck) .btn--primary:hover {
	background-color: #fff;
	color: var(--navy);
}

/* Off-canvas drawer */
.site-nav-drawer {
	position: fixed;
	inset: 0;
	z-index: 95;
	visibility: hidden;
	pointer-events: none;
	overflow: hidden; /* keeps the off-screen panel from creating page overflow */
}

.site-nav-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
}

.site-nav-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(7, 26, 51, 0.5);
	opacity: 0;
	transition: opacity 0.3s var(--ease);
	border: 0;
	width: 100%;
	cursor: pointer;
}

.site-nav-drawer.is-open .site-nav-drawer__backdrop {
	opacity: 1;
}

.site-nav-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	height: 100dvh;
	width: min(420px, 92vw);
	background: #fff;
	box-shadow: -20px 0 60px -30px rgba(7, 26, 51, 0.6);
	transform: translate3d(100%, 0, 0);
	transition: transform 0.36s var(--ease);
	display: flex;
	flex-direction: column;
	padding: 1rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
	overflow-y: auto;
	overscroll-behavior: contain;
}

.site-nav-drawer.is-open .site-nav-drawer__panel {
	transform: none;
}

.drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--line);
}

.drawer-close {
	width: 46px;
	height: 46px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--line-strong);
	background: #fff;
	color: var(--navy);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.drawer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0.75rem 0 0;
}

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

.drawer-nav a {
	display: block;
	padding: 0.95rem 0.25rem;
	min-height: 44px;
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--navy);
	text-decoration: none;
}

.drawer-nav a:hover,
.drawer-nav .current-menu-item > a {
	color: var(--accent-dark);
}

.drawer-nav .sub-menu {
	padding: 0 0 0.5rem 0.9rem;
}

.drawer-nav .sub-menu li {
	border: 0;
}

.drawer-nav .sub-menu a {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--muted);
	padding-block: 0.6rem;
}

.drawer-foot {
	margin-top: auto;
	padding-top: 1.5rem;
	display: grid;
	gap: 0.75rem;
}

.drawer-foot .btn {
	width: 100%;
	justify-content: center;
}

.drawer-contact {
	display: grid;
	gap: 0.4rem;
	font-size: 0.92rem;
}

.drawer-contact a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--muted);
	text-decoration: none;
	min-height: 30px;
}

/* 6. Buttons =============================================================== */

.btn {
	--btn-bg: var(--navy);
	--btn-fg: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 48px;
	padding: 0.78rem 1.35rem;
	border: 1px solid transparent;
	border-radius: 10px;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: -0.005em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease),
		border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
	color: var(--btn-fg);
	transform: translateY(-2px);
	box-shadow: 0 14px 26px -16px rgba(7, 26, 51, 0.75);
}

.btn:active {
	transform: translateY(0);
}

.btn__icon {
	display: inline-flex;
	transition: transform 0.25s var(--ease);
}

.btn:hover .btn__icon {
	transform: translateX(4px);
}

.btn--primary {
	--btn-bg: var(--navy);
	background-image: linear-gradient(120deg, var(--navy) 0%, var(--navy-700) 100%);
}

.btn--primary:hover {
	--btn-bg: var(--navy-700);
	box-shadow: 0 14px 30px -16px rgba(7, 26, 51, 0.8), 0 0 0 1px rgba(15, 179, 160, 0.25);
}

.btn--accent {
	--btn-bg: var(--accent);
	--btn-fg: #04262a;
}

[data-accent="blue"] .btn--accent {
	--btn-fg: #fff;
}

.btn--accent:hover {
	--btn-bg: var(--accent-dark);
	--btn-fg: #fff;
}

.btn--secondary {
	--btn-bg: transparent;
	--btn-fg: var(--navy);
	border-color: var(--line-strong);
}

.btn--secondary:hover {
	border-color: var(--navy);
	background: rgba(7, 26, 51, 0.04);
	box-shadow: none;
}

.btn--light {
	--btn-bg: rgba(255, 255, 255, 0.08);
	--btn-fg: #fff;
	border-color: rgba(255, 255, 255, 0.28);
}

.btn--light:hover {
	--btn-bg: #fff;
	--btn-fg: var(--navy);
}

.btn--ghost {
	--btn-bg: transparent;
	--btn-fg: var(--navy);
	padding-inline: 0.25rem;
	min-height: 40px;
}

.btn--ghost:hover {
	--btn-fg: var(--accent-dark);
	box-shadow: none;
	transform: none;
}

.btn--ghost:hover .btn__icon {
	transform: translateX(5px);
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.9rem;
}

@media (max-width: 420px) {
	.btn-row .btn {
		width: 100%;
	}
}

/* 7. Hero ================================================================== */

.hero {
	position: relative;
	padding-top: calc(var(--header-h) + clamp(2.25rem, 6vw, 5rem));
	padding-bottom: clamp(3rem, 7vw, 6rem);
	background: var(--navy);
	color: rgba(255, 255, 255, 0.82);
	overflow: hidden;
	isolation: isolate;
}

.hero__mesh {
	position: absolute;
	inset: -20% -10% auto -10%;
	height: 130%;
	z-index: -2;
	background:
		radial-gradient(52% 46% at 78% 18%, rgba(15, 179, 160, 0.28) 0%, transparent 62%),
		radial-gradient(46% 42% at 12% 72%, rgba(46, 107, 242, 0.3) 0%, transparent 60%),
		linear-gradient(140deg, #071a33 0%, #0c2445 55%, #0a1f3c 100%);
	animation: mesh-drift 26s ease-in-out infinite alternate;
}

@keyframes mesh-drift {
	from {
		transform: translate3d(-1.5%, -1%, 0) scale(1.02);
	}
	to {
		transform: translate3d(1.5%, 1.5%, 0) scale(1.06);
	}
}

.hero__grid {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 72px 72px;
	mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 100%);
	-webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 100%);
}

.hero__inner {
	display: grid;
	gap: clamp(2.25rem, 5vw, 4rem);
	align-items: center;
}

@media (min-width: 960px) {
	.hero__inner {
		grid-template-columns: 1.02fr 0.98fr;
	}
}

.hero .eyebrow {
	color: #7fe3d6;
}

.hero__title {
	color: #fff;
	font-size: clamp(2.15rem, 4.6vw, 3.5rem);
	margin-bottom: 0.35rem;
	max-width: 16ch;
}

.hero__subtitle {
	font-family: var(--font-display);
	font-size: clamp(1.2rem, 2.6vw, 1.85rem);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: #9fe8dc;
	margin: 0 0 1.35rem;
}

.hero__text {
	max-width: 34rem;
	color: rgba(255, 255, 255, 0.76);
	font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.hero__needs {
	list-style: none;
	padding: 0;
	margin: 1.35rem 0 0;
	display: grid;
	gap: 0.55rem;
	max-width: 32rem;
}

.hero__needs li {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	font-size: 0.98rem;
	color: rgba(255, 255, 255, 0.86);
}

.hero__needs .icon {
	color: var(--teal);
	flex: none;
	margin-top: 0.2rem;
}

.hero__tertiary {
	display: flex;
	width: fit-content;
	align-items: center;
	gap: 0.45rem;
	margin-top: 1.1rem;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.93rem;
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
	padding-bottom: 2px;
}

.hero__tertiary:hover {
	color: #fff;
	border-bottom-color: var(--teal);
}

.hero__media {
	position: relative;
}

.editorial-image {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: #0c2445;
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
	aspect-ratio: 4 / 3.1;
}

.editorial-image__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.04);
	animation: hero-settle 1.4s var(--ease) 0.15s forwards;
}

@keyframes hero-settle {
	to {
		transform: scale(1);
	}
}

.editorial-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(7, 26, 51, 0) 45%, rgba(7, 26, 51, 0.55) 100%);
	pointer-events: none;
}

.editorial-image--plain::after {
	display: none;
}

.hero__float {
	position: absolute;
	background: rgba(255, 255, 255, 0.96);
	border-radius: var(--radius-md);
	padding: 0.9rem 1.05rem;
	box-shadow: var(--shadow-lift);
	display: grid;
	gap: 0.1rem;
	min-width: 150px;
	z-index: 2;
}

.hero__float strong {
	font-family: var(--font-display);
	font-size: 1.35rem;
	color: var(--navy);
	line-height: 1;
}

.hero__float span {
	font-size: 0.76rem;
	color: var(--muted);
	letter-spacing: 0.02em;
}

.hero__float--a {
	left: -8px;
	bottom: 16%;
}

.hero__float--b {
	right: -8px;
	top: 10%;
}

@media (max-width: 640px) {
	.hero__float {
		position: static;
		box-shadow: none;
		background: rgba(255, 255, 255, 0.08);
		border: 1px solid rgba(255, 255, 255, 0.15);
		min-width: 0;
	}

	.hero__float strong {
		color: #fff;
	}

	.hero__float span {
		color: rgba(255, 255, 255, 0.7);
	}

	.hero__floats {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.6rem;
		margin-top: 1rem;
	}
}

@media (min-width: 641px) {
	.hero__floats {
		display: contents;
	}
}

.hero__scroll {
	display: none;
}

@media (min-width: 960px) {
	.hero__scroll {
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		margin-top: 2.5rem;
		font-size: 0.78rem;
		letter-spacing: 0.16em;
		text-transform: uppercase;
		color: rgba(255, 255, 255, 0.5);
		text-decoration: none;
	}

	.hero__scroll .icon {
		animation: nudge 2.4s ease-in-out infinite;
	}
}

@keyframes nudge {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(4px);
	}
}

/* Page hero (inner pages) */
.page-hero {
	position: relative;
	background: var(--navy);
	color: rgba(255, 255, 255, 0.8);
	padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4rem));
	padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
	overflow: hidden;
}

.page-hero__mesh {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(60% 60% at 85% 10%, rgba(15, 179, 160, 0.25) 0%, transparent 60%),
		radial-gradient(50% 50% at 5% 90%, rgba(46, 107, 242, 0.25) 0%, transparent 60%);
}

[data-accent="blue"] .page-hero__mesh {
	background:
		radial-gradient(60% 60% at 85% 10%, rgba(46, 107, 242, 0.3) 0%, transparent 60%),
		radial-gradient(50% 50% at 5% 90%, rgba(15, 179, 160, 0.18) 0%, transparent 60%);
}

.page-hero .container {
	position: relative;
	z-index: 1;
}

.page-hero__title {
	color: #fff;
	max-width: 20ch;
}

.page-hero__text {
	max-width: 44rem;
	color: rgba(255, 255, 255, 0.76);
}

.page-hero__inner {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3rem);
}

@media (min-width: 900px) {
	.page-hero__inner {
		grid-template-columns: 1.1fr 0.9fr;
		align-items: end;
	}
}

/* 8. Sections ============================================================== */

/* Intro */
.intro__cards {
	display: grid;
	gap: 1rem;
	margin-top: 2rem;
}

@media (min-width: 560px) {
	.intro__cards {
		grid-template-columns: 1fr 1fr;
	}
}

.approach-steps {
	list-style: none;
	counter-reset: step;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.85rem;
}

.approach-steps li {
	counter-increment: step;
	position: relative;
	padding: 0.9rem 1rem 0.9rem 3.25rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface);
	font-weight: 500;
	color: var(--navy-700);
}

.approach-steps li::before {
	content: counter(step, decimal-leading-zero);
	position: absolute;
	left: 1rem;
	top: 0.9rem;
	font-family: var(--font-display);
	font-size: 0.8rem;
	font-weight: 800;
	color: var(--accent-dark);
	letter-spacing: 0.06em;
}

/* Stats */
.stats {
	display: grid;
	gap: clamp(1rem, 2vw, 1.5rem);
	grid-template-columns: 1fr;
}

@media (min-width: 700px) {
	.stats {
		grid-template-columns: repeat(3, 1fr);
	}
}

.stat {
	position: relative;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	overflow: hidden;
}

.stat::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 3px;
	height: 100%;
	background: linear-gradient(180deg, var(--teal), var(--blue));
	opacity: 0.9;
}

.stat__value {
	font-family: var(--font-display);
	font-size: clamp(2.6rem, 6vw, 3.9rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
	color: #fff;
	display: flex;
	align-items: baseline;
	gap: 0.05em;
}

.stat__suffix {
	color: var(--teal);
}

.stat__label {
	margin: 0.65rem 0 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.98rem;
}

/* Service split (two specialised services) */
.service-split {
	display: grid;
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

@media (min-width: 900px) {
	.service-split {
		grid-template-columns: 1fr 1fr;
	}
}

.service-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.6rem, 3.2vw, 2.6rem);
	border-radius: var(--radius-lg);
	border: 1px solid var(--line);
	background: var(--surface);
	box-shadow: var(--shadow-card);
	overflow: hidden;
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.service-panel::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: linear-gradient(90deg, var(--accent), transparent 85%);
}

.service-panel::after {
	content: "";
	position: absolute;
	right: -60px;
	top: -60px;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: var(--accent-soft);
	transition: transform 0.5s var(--ease);
}

.service-panel:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lift);
	border-color: var(--line-strong);
}

.service-panel:hover::after {
	transform: scale(1.25);
}

.service-panel > * {
	position: relative;
	z-index: 1;
}

.service-panel__index {
	font-family: var(--font-display);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	color: var(--accent-dark);
	margin: 0 0 0.9rem;
}

.service-panel__icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: var(--accent-soft);
	color: var(--accent-dark);
	margin-bottom: 1.1rem;
}

.service-panel h3 {
	margin-bottom: 0.35rem;
}

.service-panel__kicker {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--accent-dark);
	margin: 0 0 0.85rem;
}

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

.service-panel .btn-row {
	margin-top: auto;
	padding-top: 1.6rem;
}

/* Generic cards */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.35rem, 2.4vw, 1.85rem);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lift);
	border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.card__icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--accent-soft);
	color: var(--accent-dark);
	margin-bottom: 1rem;
	transition: background 0.28s var(--ease), color 0.28s var(--ease);
}

.card:hover .card__icon {
	background: var(--accent);
	color: #fff;
}

.card h3,
.card h4 {
	margin-bottom: 0.5rem;
}

.card p {
	color: var(--muted);
	font-size: 0.98rem;
	margin-bottom: 0;
}

.card__list {
	list-style: none;
	padding: 0;
	margin: 0.9rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.card__list li {
	font-size: 0.8rem;
	color: var(--navy-700);
	background: var(--surface-alt);
	border-radius: 999px;
	padding: 0.25rem 0.65rem;
}

.card--dark {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.12);
	box-shadow: none;
	color: rgba(255, 255, 255, 0.78);
}

.card--dark p {
	color: rgba(255, 255, 255, 0.72);
}

.card--dark .card__list li {
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.85);
}

.card--dark:hover {
	border-color: rgba(255, 255, 255, 0.3);
}

/* Timeline (methodology / RPO steps) */
.timeline {
	position: relative;
	display: grid;
	gap: 1rem;
	counter-reset: tl;
}

.timeline::before {
	content: "";
	position: absolute;
	left: 21px;
	top: 12px;
	bottom: 12px;
	width: 2px;
	background: var(--line);
}

.timeline__progress {
	position: absolute;
	left: 21px;
	top: 12px;
	width: 2px;
	height: 0;
	background: linear-gradient(180deg, var(--accent), var(--blue));
	transition: height 0.35s linear;
}

.timeline__step {
	position: relative;
	padding-left: 60px;
	padding-block: 0.35rem;
}

.timeline__num {
	position: absolute;
	left: 0;
	top: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #fff;
	border: 2px solid var(--line);
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 0.9rem;
	color: var(--muted);
	transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
	z-index: 1;
}

.timeline__step.is-active .timeline__num {
	border-color: var(--accent);
	color: #fff;
	background: var(--accent);
}

.timeline__step h3 {
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	margin-bottom: 0.3rem;
}

.timeline__step p {
	color: var(--muted);
	font-size: 0.97rem;
	margin-bottom: 0;
}

.section--dark .timeline::before {
	background: rgba(255, 255, 255, 0.16);
}

.section--dark .timeline__num {
	background: #0d2543;
	border-color: rgba(255, 255, 255, 0.2);
	color: rgba(255, 255, 255, 0.6);
}

.section--dark .timeline__step p {
	color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 1000px) {
	.timeline--horizontal {
		grid-template-columns: repeat(3, 1fr);
		gap: 2.5rem 2rem;
	}

	.timeline--horizontal::before,
	.timeline--horizontal .timeline__progress {
		display: none;
	}

	.timeline--horizontal .timeline__step {
		padding-left: 0;
		padding-top: 62px;
	}

	.timeline--horizontal .timeline__step::before {
		content: "";
		position: absolute;
		left: 52px;
		top: 21px;
		right: -2rem;
		height: 2px;
		background: var(--line);
	}

	.timeline--horizontal .timeline__step.is-active::before {
		background: linear-gradient(90deg, var(--accent), var(--line));
	}

	.section--dark .timeline--horizontal .timeline__step::before {
		background: rgba(255, 255, 255, 0.16);
	}

	.timeline--horizontal .timeline__step:nth-child(3n + 1)::before,
	.timeline--horizontal .timeline__step:last-child::before {
		display: none;
	}
}

@media (min-width: 1000px) {
	.timeline--7 {
		grid-template-columns: repeat(4, 1fr);
	}

	.timeline--7 .timeline__step:nth-child(3n + 1)::before {
		display: block;
	}

	.timeline--7 .timeline__step:nth-child(4n + 1)::before,
	.timeline--7 .timeline__step:last-child::before {
		display: none;
	}
}

/* Callout */
.callout {
	position: relative;
	display: grid;
	gap: 1.25rem;
	align-items: center;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border-radius: var(--radius-lg);
	background: linear-gradient(120deg, rgba(15, 179, 160, 0.1), rgba(46, 107, 242, 0.08));
	border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

@media (min-width: 800px) {
	.callout {
		grid-template-columns: auto 1fr auto;
	}
}

.callout__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 0.95rem;
	color: var(--navy);
	background: #fff;
	border-radius: 999px;
	padding: 0.55rem 1rem;
	border: 1px solid var(--line);
	white-space: nowrap;
}

.callout__badge .icon {
	color: var(--accent-dark);
}

.callout p {
	margin: 0;
	color: var(--navy-700);
	font-size: 0.98rem;
}

.callout small {
	display: block;
	margin-top: 0.35rem;
	color: var(--muted);
	font-size: 0.83rem;
	line-height: 1.55;
}

/* RPO model statement */
.model-statement {
	display: grid;
	gap: 1rem;
	margin-top: 2rem;
}

@media (min-width: 760px) {
	.model-statement {
		grid-template-columns: 1fr auto 1fr;
		align-items: stretch;
	}
}

.model-statement__side {
	padding: clamp(1.25rem, 2.5vw, 1.9rem);
	border-radius: var(--radius-md);
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.05);
}

.model-statement__side h3 {
	font-size: 1.1rem;
	margin-bottom: 0.4rem;
	color: #fff;
}

.model-statement__side p {
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.96rem;
}

.model-statement__link {
	display: grid;
	place-items: center;
	color: var(--teal);
}

.model-statement__link .icon {
	transform: rotate(90deg);
}

@media (min-width: 760px) {
	.model-statement__link .icon {
		transform: none;
	}
}

/* SLA */
.sla {
	display: grid;
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

@media (min-width: 640px) {
	.sla {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1000px) {
	.sla {
		grid-template-columns: repeat(3, 1fr);
	}
}

.sla__item {
	background: var(--surface);
	padding: clamp(1.25rem, 2.4vw, 1.75rem);
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.sla__icon {
	width: 40px;
	height: 40px;
	border-radius: 11px;
	display: grid;
	place-items: center;
	background: var(--accent-soft);
	color: var(--accent-dark);
	flex: none;
}

.sla__label {
	display: block;
	font-size: 0.85rem;
	color: var(--muted);
	letter-spacing: 0.02em;
}

.sla__value {
	display: block;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.18rem;
	color: var(--navy);
	line-height: 1.3;
	margin-top: 0.15rem;
}

.sla-note {
	margin-top: 1.25rem;
	font-size: 0.85rem;
	color: var(--muted);
}

/* Clients marquee */
.marquee {
	position: relative;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
	display: flex;
	gap: 1rem;
	width: max-content;
	animation: marquee 48s linear infinite;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
	animation-play-state: paused;
}

@keyframes marquee {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(-50%, 0, 0);
	}
}

.client-slot {
	display: grid;
	place-items: center;
	min-width: 190px;
	min-height: 96px;
	padding: 1rem 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface);
	color: var(--navy-700);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.95rem;
	text-align: center;
	letter-spacing: -0.01em;
	transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.client-slot:hover {
	border-color: var(--line-strong);
	transform: translateY(-2px);
}

.client-slot img {
	max-height: 52px;
	width: auto;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.8;
	transition: filter 0.25s var(--ease), opacity 0.25s var(--ease);
}

.client-slot:hover img {
	filter: none;
	opacity: 1;
}

.client-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
	.client-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1000px) {
	.client-grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

.client-grid .client-slot {
	min-width: 0;
}

.clients-note {
	margin-top: 1.25rem;
	font-size: 0.85rem;
	color: var(--muted);
}

/* Approach statement */
.approach-words {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(0.75rem, 3vw, 2rem);
	align-items: baseline;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.approach-words li {
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 6.5vw, 4rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
	color: #fff;
}

.approach-words li:nth-child(2) {
	color: var(--teal);
}

.approach-words li:nth-child(3) {
	color: #8fb4ff;
}

.approach-words li:nth-child(4) {
	color: rgba(255, 255, 255, 0.55);
}

.approach-grid {
	display: grid;
	gap: 0.6rem;
	grid-template-columns: repeat(2, 1fr);
	margin-top: 2.25rem;
	list-style: none;
	padding: 0;
}

@media (min-width: 760px) {
	.approach-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1100px) {
	.approach-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.approach-grid li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.75rem 0.9rem;
	border-radius: var(--radius-sm);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.85);
}

.approach-grid .icon {
	color: var(--teal);
	flex: none;
}

/* Solution selector */
.selector {
	display: grid;
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

@media (min-width: 900px) {
	.selector {
		grid-template-columns: 1fr 1fr;
	}
}

.selector__card {
	position: relative;
	padding: clamp(1.6rem, 3vw, 2.5rem);
	border-radius: var(--radius-lg);
	border: 1px solid var(--line);
	background: var(--surface);
	display: flex;
	flex-direction: column;
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.selector__card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lift);
}

.selector__q {
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 2.4vw, 1.7rem);
	font-weight: 800;
	color: var(--navy);
	margin: 0 0 0.6rem;
	letter-spacing: -0.025em;
}

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

.selector__card .btn-row {
	margin-top: auto;
	padding-top: 1.5rem;
}

/* Contact / consultation */
.consult {
	position: relative;
	background: var(--navy);
	color: rgba(255, 255, 255, 0.8);
	overflow: hidden;
}

.consult__mesh {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(45% 55% at 88% 12%, rgba(15, 179, 160, 0.22) 0%, transparent 62%),
		radial-gradient(45% 45% at 6% 88%, rgba(46, 107, 242, 0.25) 0%, transparent 60%);
	pointer-events: none;
}

.consult .container {
	position: relative;
	z-index: 1;
}

.consult__inner {
	display: grid;
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: start;
}

@media (min-width: 940px) {
	.consult__inner {
		grid-template-columns: 0.9fr 1.1fr;
	}
}

.consult__title {
	color: #fff;
}

.contact-list {
	list-style: none;
	padding: 0;
	margin: 1.75rem 0 0;
	display: grid;
	gap: 0.9rem;
}

.contact-list a,
.contact-list span {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: #fff;
	text-decoration: none;
	font-size: 1rem;
	min-height: 44px;
}

.contact-list a:hover {
	color: var(--teal);
}

.contact-list .icon-wrap {
	width: 40px;
	height: 40px;
	border-radius: 11px;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: var(--teal);
	flex: none;
}

.consult__card {
	background: #fff;
	border-radius: var(--radius-lg);
	padding: clamp(1.35rem, 3vw, 2.35rem);
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.65);
	color: var(--ink);
}

.consult__card h3 {
	margin-bottom: 0.35rem;
}

.consult__card > p {
	color: var(--muted);
	font-size: 0.96rem;
	margin-bottom: 1.5rem;
}

.form-notice {
	background: var(--surface-alt);
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius-md);
	padding: 1.25rem;
	color: var(--muted);
	font-size: 0.92rem;
}

/* 9. Footer ================================================================ */

.site-footer {
	background: #05142a;
	color: rgba(255, 255, 255, 0.68);
	padding-top: clamp(3rem, 6vw, 5.5rem);
	font-size: 0.96rem;
}

.site-footer h2,
.site-footer h3 {
	color: #fff;
}

.footer-cta {
	display: grid;
	gap: 1.5rem;
	align-items: center;
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 860px) {
	.footer-cta {
		grid-template-columns: 1fr auto;
	}
}

.footer-cta h2 {
	font-size: clamp(1.6rem, 3.4vw, 2.5rem);
	margin: 0;
}

.footer-grid {
	display: grid;
	gap: clamp(1.75rem, 3vw, 2.5rem);
	padding-block: clamp(2.5rem, 5vw, 3.5rem);
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1000px) {
	.footer-grid {
		grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	}
}

.footer-col h3 {
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 1rem;
	font-weight: 700;
}

.footer-col ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.6rem;
}

.footer-col a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 30px;
}

.footer-col a:hover {
	color: #fff;
}

.footer-brand__name {
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 800;
	color: #fff;
	margin: 0 0 0.35rem;
	letter-spacing: -0.02em;
}

.footer-brand__divisions {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.9rem;
	margin-bottom: 1.15rem;
}

.footer-tagline {
	font-family: var(--font-display);
	font-weight: 700;
	color: #fff;
	font-size: clamp(1rem, 1.8vw, 1.15rem);
	letter-spacing: -0.015em;
	margin: 0;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
	display: grid;
	gap: 0.75rem;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 800px) {
	.footer-bottom {
		grid-template-columns: 1fr auto;
		align-items: center;
	}
}

.footer-bottom ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
}

body.has-floating-cta .footer-bottom {
	padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

@media (max-width: 780px) {
	body.has-floating-cta .site-footer {
		padding-bottom: 72px;
	}
}

/* 10. Editorial ============================================================ */

.entry-header {
	max-width: 780px;
}

.entry-title {
	margin-bottom: 0.5rem;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.85rem;
	color: var(--muted);
	margin-bottom: 1.25rem;
}

.post-meta a {
	color: var(--accent-dark);
	text-decoration: none;
	font-weight: 600;
}

.post-meta__read::before,
.post-meta__date::before {
	content: "·";
	margin-right: 0.75rem;
	color: var(--line-strong);
}

.entry-content {
	max-width: 780px;
}

.entry-content > * {
	margin-block: 0 1.35rem;
}

.entry-content h2 {
	margin-top: 2.5rem;
}

.entry-content h3 {
	margin-top: 2rem;
}

.entry-content img,
.entry-content .wp-block-image img {
	border-radius: var(--radius-md);
}

.entry-content blockquote {
	margin: 2rem 0;
	padding: 0.25rem 0 0.25rem 1.5rem;
	border-left: 3px solid var(--accent);
	font-size: 1.1rem;
	color: var(--navy-700);
}

.entry-content .alignwide {
	max-width: min(1100px, 92vw);
	margin-inline: auto;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.35rem;
}

.entry-content li {
	margin-bottom: 0.5rem;
}

.featured-media {
	border-radius: var(--radius-lg);
	overflow: hidden;
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
	background: var(--surface-alt);
}

.featured-media img {
	width: 100%;
	object-fit: cover;
}

.post-card {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	overflow: hidden;
	transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lift);
}

.post-card__media {
	aspect-ratio: 16 / 10;
	background: var(--surface-sunk);
	overflow: hidden;
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}

.post-card:hover .post-card__media img {
	transform: scale(1.04);
}

.post-card__body {
	padding: 1.35rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.post-card__title {
	font-size: 1.15rem;
	margin-bottom: 0.5rem;
}

.post-card__title a {
	color: var(--navy);
	text-decoration: none;
}

.post-card__title a:hover {
	color: var(--accent-dark);
}

.post-card p {
	color: var(--muted);
	font-size: 0.95rem;
}

.post-card .btn--ghost {
	margin-top: auto;
	padding-top: 1rem;
}

.breadcrumbs {
	margin-bottom: 1.25rem;
	font-size: 0.85rem;
}

.breadcrumbs__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs__item + .breadcrumbs__item::before {
	content: "/";
	margin-right: 0.5rem;
	opacity: 0.5;
}

.breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: #fff;
}

.share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}

.share__label {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--navy);
}

.share__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
}

.share__link {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--navy-700);
	text-decoration: none;
	transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.share__link:hover {
	border-color: var(--accent);
	color: var(--accent-dark);
}

.widget {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--line);
}

.widget__title {
	font-size: 1rem;
	margin-bottom: 0.75rem;
}

.pagination {
	margin-top: clamp(2rem, 4vw, 3rem);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.75rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--navy-700);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
}

.pagination .page-numbers:hover {
	border-color: var(--navy);
}

.pagination .page-numbers.current {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 480px;
}

.search-form .search-field {
	flex: 1;
	min-height: 48px;
	padding: 0.6rem 1rem;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	background: #fff;
}

.search-form .search-field:focus {
	outline: 3px solid var(--blue);
	outline-offset: 2px;
	border-color: var(--navy);
}

.search-form .search-submit {
	min-height: 48px;
	padding-inline: 1.25rem;
	border: 0;
	border-radius: 10px;
	background: var(--navy);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 600;
	cursor: pointer;
}

.error-404 {
	text-align: center;
	max-width: 620px;
	margin-inline: auto;
}

.error-404__code {
	font-family: var(--font-display);
	font-size: clamp(5rem, 18vw, 11rem);
	font-weight: 800;
	line-height: 0.9;
	letter-spacing: -0.05em;
	background: linear-gradient(120deg, var(--navy), var(--teal));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: 0.5rem;
}

.error-404 .btn-row {
	justify-content: center;
}

/* 11. Floating CTA ========================================================= */

.floating-cta {
	position: fixed;
	left: 50%;
	bottom: calc(12px + env(safe-area-inset-bottom));
	transform: translate3d(-50%, 130%, 0);
	z-index: 80;
	display: flex;
	align-items: center;
	gap: 0.25rem;
	background: var(--navy);
	border-radius: 999px;
	padding: 0.25rem 0.35rem 0.25rem 0.25rem;
	box-shadow: 0 18px 40px -18px rgba(7, 26, 51, 0.9);
	transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
	opacity: 0;
	max-width: calc(100vw - 24px);
}

.floating-cta.is-visible {
	transform: translate3d(-50%, 0, 0);
	opacity: 1;
}

.floating-cta__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0 1rem;
	border-radius: 999px;
	color: #fff;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.92rem;
	text-decoration: none;
	white-space: nowrap;
}

.floating-cta__close {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	flex: none;
}

.floating-cta__close:hover {
	background: rgba(255, 255, 255, 0.24);
}

@media (min-width: 781px) {
	.floating-cta {
		display: none;
	}
}

/* 12. Motion preferences =================================================== */

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

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	.js .reveal,
	.js .split-lines .line > span {
		opacity: 1 !important;
		transform: none !important;
	}

	.marquee__track {
		animation: none;
		transform: none;
	}

	.editorial-image__img {
		transform: none;
		animation: none;
	}
}

html.reduce-motion .js .reveal,
html.reduce-motion .split-lines .line > span {
	opacity: 1 !important;
	transform: none !important;
}

html.reduce-motion .hero__mesh,
html.reduce-motion .marquee__track {
	animation: none;
}

/* Print */
@media print {
	.site-header,
	.site-nav-drawer,
	.floating-cta,
	.consult,
	.site-footer {
		display: none !important;
	}
}

/* ==========================================================================
   Legal / policy pages
   ========================================================================== */

.legal-page__updated {
	font-size: 0.88rem;
	color: var(--muted);
	margin: 0 0 2rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--line);
}

.legal-content {
	font-size: 1.02rem;
	line-height: 1.75;
	color: var(--ink);
}

.legal-content h2 {
	font-family: var(--font-display);
	font-size: clamp(1.25rem, 2.4vw, 1.55rem);
	font-weight: 800;
	letter-spacing: -0.015em;
	color: var(--navy);
	margin: 2.75rem 0 0.85rem;
}

.legal-content h3 {
	font-family: var(--font-display);
	font-size: 1.06rem;
	font-weight: 700;
	color: var(--navy-700);
	margin: 1.9rem 0 0.6rem;
}

.legal-content p {
	margin: 0 0 1.1rem;
}

.legal-content ul {
	margin: 0 0 1.35rem;
	padding-left: 1.15rem;
}

.legal-content li {
	margin-bottom: 0.5rem;
}

.legal-content a {
	color: var(--accent);
	text-underline-offset: 3px;
}

.legal-page__contact {
	margin-top: 3.5rem;
	padding: 1.75rem 1.9rem;
	background: var(--surface-alt);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
}

.legal-page__contact h2 {
	font-family: var(--font-display);
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--navy);
	margin: 0 0 0.7rem;
}

.legal-page__contact p {
	margin: 0;
	line-height: 1.8;
	color: var(--muted);
}

.footer-legal__notice {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.45);
	margin: 0;
	max-width: 52ch;
}
