/*
 * RENAPS — modern design system (layout: modern / modern-article).
 *
 * Typography-first, lean: white space, navy ink, grey-blue text and the RENAPS red.
 * No framework: plain CSS. Everything starts from the tokens below —
 * change a value here to restyle the whole site.
 *
 *  1. Tokens            8. Lists & posts       15. Forms
 *  2. Base              9. Index lists         16. Dialog
 *  3. Layout           10. Quotes              17. Footer
 *  4. Typography       11. Stats & steps       18. Converted pages
 *  5. Buttons & links  12. Statement, clients  19. Icons, logos, motion
 *  6. Header & nav     13. Article             20. Utilities
 *  7. Hero & sections  14. Tags & share
 */

/* 1. Tokens --------------------------------------------------------------- */

:root {
	/* Colour: navy ink, grey-blue text, RENAPS red used sparingly. */
	--c-bg: #ffffff;
	--c-surface: #f7f8f9;
	--c-surface-2: #eef1f3;
	--c-line: #e2e6e9;
	--c-line-strong: #c8d1d6;
	--c-ink: #172332;
	--c-text: #2e3b49;
	--c-muted: #586575;
	--c-subtle: #6b7580;
	--c-lighter: #71808c;
	--c-red: #c8102e;
	--c-red-dark: #a60e27;
	--c-red-soft: rgba(200, 16, 46, 0.27);
	--c-red-tint: rgba(200, 16, 46, 0.07);
	--c-teal: #267365;
	--c-dark: #172332;
	--c-dark-2: #1f2e3f;
	--c-dark-line: #2d3e51;
	--c-on-dark: #f5f7f8;
	--c-on-dark-muted: #a9b5c0;
	--c-focus: rgba(38, 115, 101, 0.35);
	--shadow-sm: 0 6px 18px rgba(23, 35, 50, 0.05);
	--shadow-lg: 0 15px 50px rgba(19, 45, 65, 0.07);

	/* Images (blog lead story): sober greyscale, colour back on hover. */
	--img-filter: grayscale(1) contrast(.9) brightness(1.06);
	--img-filter-hover: none;

	/* Type: Manrope headings, Inter text. */
	--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-display: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-label: var(--font-sans);
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	--fs-xs: 0.75rem;
	--fs-sm: 0.8125rem;
	--fs-base: 0.9375rem;
	--fs-lg: 1rem;
	--fs-xl: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
	--fs-2xl: clamp(1.9375rem, 1.45rem + 1.6vw, 2.625rem);
	--fs-3xl: clamp(2.375rem, 1.6rem + 2.7vw, 3.5rem);
	--fs-4xl: clamp(2.6875rem, 1.6rem + 4vw, 4.125rem);
	--lh-tight: 1.06;
	--lh-snug: 1.18;
	--lh-body: 1.65;
	--tracking-display: -0.03em;
	--tracking-title: -0.025em;
	--tracking-caps: 0.17em;

	/* Space & shape */
	--container: 1100px;
	--container-narrow: 820px;
	--gutter: clamp(18px, 4vw, 28px);
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 16px;
	--space-4: 24px;
	--space-5: 36px;
	--space-6: 56px;
	--space-section: clamp(54px, 6vw, 75px);
	--radius: 7px;
	--radius-lg: 12px;
	--header-h: 80px;
	--utility-h: 34px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ----------------------------------------------------------------- */

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

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

body.modern {
	margin: 0;
	overflow-wrap: break-word;
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Element defaults use :where() (no specificity) so component classes win. */
:where(.modern) img, :where(.modern) svg, :where(.modern) video { max-width: 100%; height: auto; }
:where(.modern) a { color: inherit; }
.modern :focus-visible { outline: 2px solid var(--c-red); outline-offset: 3px; }
::selection { background: var(--c-red); color: #fff; }

/* 3. Layout --------------------------------------------------------------- */

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

.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

.section { padding-block: var(--space-section); border-top: 1px solid var(--c-line); }
.section--surface { background: var(--c-surface); }
.section--dark { background: var(--c-dark); color: var(--c-on-dark); }
.section--line { border-top: 1px solid var(--c-line); }
/* Text blocks, card texts, figures and links on dark sections. */
.section--dark .prose { color: var(--c-on-dark-muted); }
.section--dark .prose > p:first-child, .section--dark .prose :is(strong, h2, h3, h4) { color: var(--c-on-dark); }
.section--dark .prose a:not(.btn), .section--dark .prose li::marker, .section--dark .stat__value span { color: var(--c-red); }
.section--dark .prose thead th { color: var(--c-on-dark-muted); border-color: var(--c-dark-line); }
.section--dark .feature p { color: var(--c-on-dark-muted); }
.section--dark .figure figcaption, .section--dark .media-split figcaption { color: var(--c-on-dark-muted); }
.section--dark .index-list a::after, .section--dark .link-arrow::after { color: var(--c-red); }
/* A heading introducing the next block (converted pages). */
.section--intro { padding-bottom: 0; }
.section--intro + .section { border-top: 0; }

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-4) var(--space-5);
	margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head__text { max-width: 760px; }
.section-head--cta { align-items: center; margin-bottom: 0; }
.section-head__actions { margin-top: 0; }

.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-5);
}

@media (min-width: 900px) {
	.split { grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
	.split--even { grid-template-columns: 1fr 1fr; }
}

/* 4. Typography ----------------------------------------------------------- */

:where(.modern) :is(h1, h2, h3, h4) {
	font-family: var(--font-display);
	line-height: var(--lh-snug);
	color: var(--c-ink);
	font-weight: 500;
	margin: 0;
	text-wrap: balance;
}

.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--c-on-dark); }

:where(.modern) p { margin: 0 0 1em; }
:where(.modern) main p { color: var(--c-muted); }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 var(--space-3);
	font-family: var(--font-label);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
	color: var(--c-subtle);
}

.eyebrow::before {
	content: "";
	width: 18px;
	height: 2px;
	background: var(--c-red);
	flex: none;
}

.eyebrow a { text-decoration: none; }
.eyebrow a:hover { color: var(--c-red); }
.section--dark .eyebrow { color: var(--c-on-dark-muted); }

.display {
	font-size: var(--fs-4xl);
	line-height: var(--lh-tight);
	letter-spacing: var(--tracking-display);
}

.page-title, .section-title {
	letter-spacing: var(--tracking-title);
	line-height: 1.12;
}

.page-title { font-size: var(--fs-3xl); }
.section-title { font-size: var(--fs-2xl); max-width: 22ch; }
.section-head__text > .section-title + .prose { margin-top: var(--space-4); }
.section-title + .lead { margin-top: var(--space-4); }
.section-title--long { font-size: var(--fs-xl); max-width: 40ch; line-height: 1.25; }

.lead {
	font-size: var(--fs-lg);
	line-height: 1.8;
	color: var(--c-muted);
	max-width: 60ch;
}

.section--dark .lead, .section--dark p { color: var(--c-on-dark-muted); }

.muted { color: var(--c-muted); }
.accent { color: var(--c-red); }

/* 5. Buttons & links ------------------------------------------------------ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	min-height: 45px;
	padding: 13px 20px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	background: #fff;
	color: var(--c-ink);
	font: 600 var(--fs-sm)/1.2 var(--font-sans);
	text-decoration: none;
	cursor: pointer;
	transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--primary { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.btn--primary:hover { background: var(--c-red-dark); border-color: var(--c-red-dark); }
.btn--primary::after { content: "→"; font-size: 1.25em; line-height: 1; }
.btn--primary.popupleadform::after { content: "↗"; }
.btn--dark { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.btn--dark:hover { background: #24364a; }
.btn--ghost { background: #fff; border-color: var(--c-line); color: var(--c-ink); }
.btn--ghost:hover { border-color: var(--c-line-strong); }
.btn--outline { background: #fff; border-color: var(--c-red-soft); color: var(--c-red); }
.btn--outline::after { content: "↗"; font-size: 1.2em; line-height: 1; }
.btn--outline:hover { border-color: var(--c-red); }
.section--dark .btn--ghost { background: transparent; border-color: var(--c-dark-line); color: var(--c-on-dark); }
.section--dark .btn--ghost:hover { border-color: var(--c-on-dark-muted); }
.btn--sm { min-height: 40px; padding: 9px 16px; gap: 12px; font-size: var(--fs-xs); }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-4); }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: var(--fs-sm);
	color: var(--c-red) !important;
	text-decoration: none;
}

.link-arrow::after { content: "→"; transition: transform .18s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--light { color: var(--c-on-dark) !important; }

/* 6. Header & navigation ------------------------------------------------- */

.skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--c-ink);
	color: #fff;
	text-decoration: none;
}

.skip-link:focus { top: 12px; }

.site-header {
	position: sticky;
	top: calc(-1 * var(--utility-h)); /* the utility bar scrolls away, the main bar stays */
	z-index: 50;
	border-bottom: 1px solid var(--c-line);
}

/* Blur on a pseudo-element: backdrop-filter on the header itself would make
   it the containing block of the fixed mobile drawer. */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: saturate(1.4) blur(10px);
}

.utility-bar {
	height: var(--utility-h);
	border-bottom: 1px solid var(--c-line);
	font-size: 0.6875rem;
	color: var(--c-subtle);
}

.utility-bar__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.utility-bar__tagline { margin: 0; letter-spacing: 0.06em; text-transform: uppercase; }

.utility-bar__links {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.utility-bar__links a { text-decoration: none; }
.utility-bar__links a:hover { color: var(--c-ink); }

.utility-bar__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

.menu-group { position: relative; }

.utility-menu {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	z-index: 60;
	min-width: 220px;
	margin: 0;
	padding: var(--space-2) 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: 10px;
	box-shadow: var(--shadow-lg);
}

/* Invisible bridge over the gap, so the menu stays open on the way down. */
.utility-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }

.utility-menu a { display: block; padding: 9px 18px; color: var(--c-text); font-size: var(--fs-sm); text-decoration: none; }
.utility-menu a:hover { background: var(--c-surface); color: var(--c-red); }
[aria-expanded="true"] + .utility-menu { display: block; }

.chevron { transition: transform .18s var(--ease); }
[aria-expanded="true"] > .chevron { transform: rotate(180deg); }

.site-header__bar { position: relative; }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	height: var(--header-h);
}

.site-logo { display: inline-flex; flex: none; }
.site-logo img { width: 160px; height: auto; display: block; }

.site-nav { display: flex; align-items: center; flex: 1; gap: var(--space-4); }

.site-nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
	flex: 1;
}

.site-nav__item { position: static; flex: none; }

.site-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 9px;
	border: 0;
	background: none;
	font: 500 var(--fs-sm)/1 var(--font-sans);
	white-space: nowrap;
	color: #52606e;
	text-decoration: none;
	cursor: pointer;
	border-radius: var(--radius);
}

.site-nav__link:hover, .site-nav__link[aria-expanded="true"], .site-nav__link[aria-current="page"] { color: var(--c-red); }

.site-nav__actions { display: flex; flex: none; align-items: center; gap: var(--space-2); }
.site-nav__actions .btn { white-space: nowrap; }

/* Narrow desktops: smaller logo and tighter links so the longer French menu
   fits on one row, clear of the search icon. */
@media (min-width: 1100px) and (max-width: 1179px) {
	.site-logo img { width: 132px; }
	.site-nav { gap: var(--space-3); }
	.site-nav__link { padding-inline: 5px; }
}

.icon-link, .lang-switch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	color: var(--c-text);
	text-decoration: none;
	font: 600 0.6875rem/1 var(--font-label);
	letter-spacing: 0.08em;
}

.icon-link:hover, .lang-switch:hover { color: var(--c-red); }

.nav-panel {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #fff;
	border-top: 1px solid var(--c-line);
	border-bottom: 1px solid var(--c-line);
	box-shadow: 0 30px 60px -30px rgba(23, 35, 50, 0.16);
}

[aria-expanded="true"] + .nav-panel { display: block; }

.nav-panel__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--space-5);
	padding-block: var(--space-5) var(--space-6);
}

.nav-panel__intro {
	padding: var(--space-4);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-top: 3px solid var(--c-red);
	border-radius: 10px;
}

.nav-panel__intro-title { font: 500 var(--fs-lg)/1.2 var(--font-display); color: var(--c-ink); margin-bottom: var(--space-2) !important; }
.nav-panel__intro p { font-size: var(--fs-sm); color: var(--c-muted); }

.nav-panel__title {
	margin: 0 0 var(--space-3) !important;
	font: 500 var(--fs-xs)/1.3 var(--font-label);
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
	color: var(--c-subtle);
}

.nav-panel ul, .site-nav__mobile-extra ul { margin: 0; padding: 0; list-style: none; }
.nav-panel li a {
	display: block;
	padding: 9px 0;
	font-size: var(--fs-sm);
	color: var(--c-text);
	text-decoration: none;
	line-height: 1.4;
}

.nav-panel li a:hover { color: var(--c-red); }

/* Panel introduced by a typographic statement (menu.yaml `intro.style:
   statement`): the phrase set large, its key words in ink, the last one red
   and underlined; they rise in turn each time the panel opens. Desktop only
   (the mobile drawer shows the links alone, like the other intros). */
.nav-panel__statement { display: none; }

@media (min-width: 1100px) {
	.nav-panel__inner--statement {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		align-items: center;
		gap: var(--space-6);
		padding-block: var(--space-6);
	}

	.nav-panel__statement { display: block; }

	.nav-panel__eyebrow {
		display: flex;
		align-items: center;
		gap: var(--space-3);
		margin: 0 0 var(--space-4) !important;
		font: 600 var(--fs-xs)/1 var(--font-label);
		letter-spacing: var(--tracking-caps);
		text-transform: uppercase;
		color: var(--c-red);
	}

	.nav-panel__eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }

	.nav-panel__statement-text {
		margin: 0 !important;
		font: 500 clamp(1.875rem, 1rem + 1.6vw, 2.75rem)/1.08 var(--font-display);
		letter-spacing: var(--tracking-title);
		color: var(--c-lighter);
	}

	.nav-panel__statement-text em { display: inline-block; font-style: normal; color: var(--c-ink); }
	.nav-panel__statement-text em:last-of-type {
		color: var(--c-red);
		background: linear-gradient(var(--c-red-soft), var(--c-red-soft)) no-repeat 0 92% / 100% .22em;
	}

	.nav-panel__inner--statement .nav-panel__col { padding-left: var(--space-5); border-left: 1px solid var(--c-line); }
	.nav-panel__inner--statement .nav-panel__title { display: none; }
	.nav-panel__inner--statement .nav-panel__col li a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-3);
		padding: 14px 0;
		border-bottom: 1px solid var(--c-line);
		font: 500 var(--fs-xl)/1.2 var(--font-display);
		letter-spacing: -0.01em;
		color: var(--c-ink);
	}

	.nav-panel__inner--statement .nav-panel__col li:last-child a { border-bottom: 0; }
	.nav-panel__inner--statement .nav-panel__col li a::after { content: "→"; color: var(--c-red); transition: transform .18s var(--ease); }
	.nav-panel__inner--statement .nav-panel__col li a:hover { color: var(--c-red); }
	.nav-panel__inner--statement .nav-panel__col li a:hover::after { transform: translateX(4px); }

	.menu-group:hover > .nav-panel .nav-panel__statement-text em,
	[aria-expanded="true"] + .nav-panel .nav-panel__statement-text em { animation: rise .55s var(--ease) both; }
	.menu-group:hover > .nav-panel .nav-panel__statement-text em:nth-of-type(2),
	[aria-expanded="true"] + .nav-panel .nav-panel__statement-text em:nth-of-type(2) { animation-delay: .08s; }
	.menu-group:hover > .nav-panel .nav-panel__statement-text em:nth-of-type(3),
	[aria-expanded="true"] + .nav-panel .nav-panel__statement-text em:nth-of-type(3) { animation-delay: .16s; }
	.menu-group:hover > .nav-panel .nav-panel__statement-text em:last-of-type,
	[aria-expanded="true"] + .nav-panel .nav-panel__statement-text em:last-of-type { animation: rise .55s var(--ease) .28s both, underline-in .6s var(--ease) .6s both; }
}

@keyframes underline-in { from { background-size: 0 .22em; } }

.nav-toggle { display: none; }
.site-nav__mobile-extra { display: none; }

@media (any-hover: hover) and (min-width: 1100px) {
	.site-nav, .site-nav__list { align-self: stretch; }
	.site-nav__item { display: flex; align-items: center; }
	.nav-panel { display: block; visibility: hidden; opacity: 0; transition: opacity .15s var(--ease), visibility 0s linear .2s; }
	.menu-group:hover > .nav-panel, [aria-expanded="true"] + .nav-panel { visibility: visible; opacity: 1; transition-delay: 0s; }
	.menu-group:hover > .utility-menu { display: block; }
}

@media (max-width: 1099px) {
	:root { --header-h: 64px; }
	.utility-bar { display: none; }
	.site-header { top: 0; }
	.site-header__inner { justify-content: space-between; }

	.nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin-right: -10px;
		border: 0;
		background: none;
		cursor: pointer;
	}

	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
		display: block;
		width: 22px;
		height: 2px;
		background: var(--c-ink);
		transition: transform .2s var(--ease), opacity .2s;
	}

	.nav-toggle__bars { position: relative; }
	.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__bars::before { top: -7px; }
	.nav-toggle__bars::after { top: 7px; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

	.site-nav {
		display: none;
		position: fixed;
		inset: var(--header-h) 0 0 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: var(--space-3) var(--gutter) var(--space-6);
		background: #fff;
		overflow-y: auto;
		border-top: 1px solid var(--c-line);
	}

	.site-nav.is-open { display: flex; }
	.site-nav__list { flex-direction: column; align-items: stretch; flex: none; }
	.site-nav__item { border-bottom: 1px solid var(--c-line); }
	.site-nav__link { width: 100%; justify-content: space-between; padding: 18px 0; font-size: var(--fs-lg); font-family: var(--font-display); }
	.nav-panel { position: static; box-shadow: none; border: 0; }
	.nav-panel__inner { padding: 0 0 var(--space-4); gap: var(--space-4); grid-template-columns: 1fr; }
	.nav-panel__intro { display: none; }
	.site-nav__actions { order: 3; justify-content: flex-start; padding-top: var(--space-4); }
	.site-nav__mobile-extra { display: block; order: 4; padding-top: var(--space-5); font-size: var(--fs-sm); }
	.site-nav__mobile-extra ul { margin-bottom: var(--space-4); }
	.site-nav__mobile-extra a { display: block; padding: 8px 0; text-decoration: none; }
	body.nav-open { overflow: hidden; }
}

/* 7. Hero & sections ------------------------------------------------------ */

.hero { position: relative; isolation: isolate; padding-block: clamp(42px, 6vw, 73px) clamp(42px, 6vw, 64px); overflow: clip; }

/* Spectrum: the gradient ribbon at the top right of every hero and article,
   turned over at the bottom left of a page's last white section
   (.section--spectrum, set by site.js when it is tall enough). */
.article { position: relative; isolation: isolate; overflow-x: clip; }
.hero::before, .article::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -180px;
	right: -90px;
	width: min(75vw, 1000px);
	height: 800px;
	background: url("/assets/img/spectrum.svg") no-repeat right top / cover;
	opacity: .83;
	-webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 93%);
	mask-image: linear-gradient(to bottom, #000 45%, transparent 93%);
	transform: scaleX(var(--reach, 1.34));
	transform-origin: 100% 0;
	pointer-events: none;
}

.section--spectrum { position: relative; isolation: isolate; overflow: clip; }
.section--spectrum::before {
	content: "";
	position: absolute;
	z-index: -1;
	bottom: -40px;
	left: -140px;
	width: min(62vw, 840px);
	height: 720px;
	background: url("/assets/img/spectrum-close.svg") no-repeat left bottom / cover;
	opacity: .24;
	-webkit-mask-image: linear-gradient(to top, #000 35%, transparent 90%);
	mask-image: linear-gradient(to top, #000 35%, transparent 90%);
	transform: scaleX(var(--reach-close, 1.32));
	transform-origin: 0 100%;
	pointer-events: none;
}

@media (min-width: 1600px) {
	.hero::before, .article::before { --reach: 1.45; }
	.section--spectrum::before { --reach-close: 1.45; }
}

@media (max-width: 1180px) {
	.hero::before, .article::before { --reach: 1.3; }
}

@media (max-width: 740px) {
	.hero::before, .article::before {
		--reach: 1;
		top: 280px;
		right: -260px;
		width: 700px;
		height: 750px;
		opacity: .4;
		-webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, transparent 90%);
		mask-image: linear-gradient(to bottom, transparent, #000 25%, transparent 90%);
	}
	.section--spectrum::before { --reach-close: 1; bottom: -30px; left: -230px; width: 600px; height: 640px; opacity: .22; }
}

/* Two-tone titles: the end of a page title in grey, on its own line. */
.page-title .lighter, .article-header__title .lighter, .hero__title .lighter { display: block; color: var(--c-lighter); }
.hero--compact { padding-bottom: var(--space-5); }
.hero__title { max-width: 15ch; margin: 22px 0 !important; font-family: var(--font-display); font-weight: 500; color: var(--c-ink); }
.hero__title--wide { max-width: 20ch; font-size: var(--fs-4xl); }
.hero__title em { font-style: normal; color: var(--c-lighter); }
.hero .lead { margin-bottom: 0; max-width: 34em; line-height: 1.85; }
.hero h1.eyebrow { margin: 0 0 var(--space-3); font-family: var(--font-label); font-size: 0.6875rem; font-weight: 600; line-height: 1.4; color: var(--c-subtle); }
.hero__focus { margin-top: clamp(42px, 6vw, 64px); }
.hero .page-title { margin-top: 18px !important; }

/* Rotating word (data-rotate, site.js): own line so the title never reflows. */
.rotator { display: block; min-height: 1.04em; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.rotator.is-out { opacity: 0; transform: translateY(0.12em); }

/* Side panels next to a section title. */
.panel, .panel-dark { padding: 33px; border: 1px solid #dce2e6; border-top: 3px solid var(--c-red); border-radius: 10px; background: var(--c-bg); box-shadow: var(--shadow-lg); }
.panel-dark { background: var(--c-dark-2); border-color: var(--c-dark-line); border-top-color: var(--c-red); box-shadow: none; }
.panel h3, .panel-dark h3 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); letter-spacing: -0.035em; margin-bottom: var(--space-3); }
.panel p { color: var(--c-muted); }
.panel .btn { margin-top: var(--space-3); }

.focus-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--c-line);
}

.focus-list li { border-bottom: 1px solid var(--c-line); }

.focus-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	height: 100%;
	padding: 20px 20px 20px 0;
	font: 500 var(--fs-sm)/1.4 var(--font-sans);
	color: var(--c-ink);
	text-decoration: none;
}

.focus-list a::after { content: "→"; color: var(--c-red); transition: transform .18s var(--ease); }
.focus-list a:hover { color: var(--c-red); }
.focus-list a:hover::after { transform: translateX(4px); }

@media (min-width: 1100px) {
	.focus-list li + li a { padding-left: 20px; border-left: 1px solid var(--c-line); }
}

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) 0 0; padding: 0; list-style: none; }

.chips a {
	display: inline-flex;
	padding: 8px 16px;
	border: 1px solid var(--c-dark-line);
	border-radius: 999px;
	font: 500 var(--fs-sm)/1 var(--font-sans);
	color: var(--c-on-dark);
	text-decoration: none;
	transition: border-color .18s, background-color .18s;
}

.chips a:hover { border-color: var(--c-red); background: var(--c-red); }

/* Numbered features (pillars, imperatives, services). */
.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: var(--space-5) var(--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: feature;
}

.feature { padding-top: 18px; border-top: 1px solid var(--c-line-strong); counter-increment: feature; }
.section--dark .feature { border-color: var(--c-dark-line); }

.feature::before {
	content: counter(feature, decimal-leading-zero);
	display: block;
	margin-bottom: 14px;
	font: 400 0.6875rem/1 var(--font-display);
	letter-spacing: 0.04em;
	color: var(--c-red);
}

.feature h3 { font-size: var(--fs-xl); letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 12px; }
.feature p { color: var(--c-muted); font-size: var(--fs-sm); line-height: 1.85; }
.feature a { text-decoration: none; }
.feature a:hover h3 { color: var(--c-red); }
.features--links { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
/* The link fills what the icon leaves, so "Details" lines up at the bottom of
   each item without overflowing it (height: 100% overflowed by the icon). */
.features--links .feature { display: flex; flex-direction: column; }
.features--links .feature a { display: flex; flex-direction: column; flex: 1; }
.features--links .link-arrow { margin-top: auto; }

/* 8. Lists & posts -------------------------------------------------------- */

.post-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-5) var(--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .post-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Preview image frame (lead story). */
.post-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-surface-2); }
.post-media img { display: block; width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); transition: filter .5s var(--ease), transform .6s var(--ease); }
a:hover > .post-media img, a:focus-visible > .post-media img { filter: var(--img-filter-hover); transform: scale(1.03); }

.post-card { border-top: 1px solid var(--c-line-strong); }
.post-card__link { display: flex; flex-direction: column; height: 100%; padding-top: var(--space-4); text-decoration: none; }

.post-card__meta, .post-row__date, .post-featured__meta, .article-meta {
	font: 400 var(--fs-xs)/1.4 var(--font-label);
	letter-spacing: 0.02em;
	color: var(--c-subtle);
}

.post-card__meta { display: flex; gap: var(--space-3); margin-bottom: var(--space-3) !important; }
.post-card__title { font-size: var(--fs-xl); line-height: 1.22; letter-spacing: -0.03em; margin-bottom: 12px !important; transition: color .18s; }

.post-card__excerpt, .post-row__excerpt, .post-featured__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--c-muted);
	font-size: var(--fs-sm);
}

.post-card__excerpt { -webkit-line-clamp: 4; line-clamp: 4; }
.post-card__more { margin-top: auto; padding-top: var(--space-3); font-weight: 600; font-size: var(--fs-sm); color: var(--c-red); }
.post-card__more::after { content: " →"; }
.post-card__link:hover .post-card__title { color: var(--c-red); }

.post-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-line); }
.post-row { border-bottom: 1px solid var(--c-line); }

.post-row__link {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-2);
	padding: var(--space-4) 0;
	text-decoration: none;
}

.post-row__title {
	display: block;
	font: 500 var(--fs-xl)/1.25 var(--font-display);
	letter-spacing: -0.03em;
	color: var(--c-ink);
	transition: color .18s;
}

.post-row__excerpt { margin-top: var(--space-2); -webkit-line-clamp: 2; line-clamp: 2; }
.post-row__author { font-size: var(--fs-xs); color: var(--c-subtle); }
.post-row__link:hover .post-row__title { color: var(--c-red); }

@media (min-width: 900px) {
	.post-row__link { grid-template-columns: 140px 1fr 160px; gap: var(--space-5); align-items: baseline; padding: var(--space-5) 0; }
	.post-row__author { text-align: right; }
}

.post-featured { list-style: none; }

.post-featured__link {
	display: grid;
	gap: var(--space-5);
	text-decoration: none;
	align-items: center;
}

.post-featured__media { aspect-ratio: 2 / 1; }

.post-featured__body { display: flex; flex-direction: column; }

.post-featured__title {
	font: 500 clamp(1.75rem, 1.25rem + 1.8vw, 2.75rem)/1.08 var(--font-display);
	letter-spacing: var(--tracking-display);
	color: var(--c-ink);
	margin-bottom: var(--space-4);
	transition: color .18s;
}

.post-featured__excerpt { -webkit-line-clamp: 4; line-clamp: 4; font-size: var(--fs-base); margin-bottom: var(--space-4); }
.post-featured__link:hover .post-featured__title { color: var(--c-red); }

/* Text first, a modest image on the right. */
@media (min-width: 900px) {
	.post-featured__link { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); }
	.post-featured__media { order: 2; aspect-ratio: 16 / 9; }
}

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

.list-more-wrap { margin-top: var(--space-5); text-align: center; }
.list-more-wrap .loadmore { min-width: 200px; }

.category-nav { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-5) 0 0; padding: 0; list-style: none; }

.category-nav a {
	display: inline-flex;
	padding: 8px 16px;
	border: 1px solid var(--c-line-strong);
	border-radius: 999px;
	font-size: var(--fs-sm);
	text-decoration: none;
	color: var(--c-text);
}

.category-nav a:hover { border-color: var(--c-ink); }
.category-nav a[aria-current="page"] { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.category-nav a { font-size: var(--fs-sm); padding: 7px 15px; }

/* 9. Index lists (products, capabilities) -------------------------------- */

.index-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
	column-gap: var(--space-6);
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--c-line);
}

.section--dark .index-list, .section--dark .index-list li { border-color: var(--c-dark-line); }
.index-list li { border-bottom: 1px solid var(--c-line); }

.index-list a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 4px var(--space-4);
	padding: var(--space-4) 0;
	text-decoration: none;
}

.index-list__name { font: 500 1.1875rem/1.25 var(--font-display); letter-spacing: -0.03em; color: var(--c-ink); transition: color .18s; }
.section--dark .index-list__name { color: var(--c-on-dark); }
.index-list__desc { grid-column: 1; font-size: var(--fs-sm); color: var(--c-muted); overflow-wrap: break-word; }
.section--dark .index-list__desc { color: var(--c-on-dark-muted); }
.index-list a::after { content: "→"; grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--c-red); transition: transform .18s var(--ease); }
.index-list a:hover .index-list__name { color: var(--c-red); }
.index-list a:hover::after { transform: translateX(4px); }

/* 10. Quotes -------------------------------------------------------------- */

.quotes { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.quote { margin: 0; display: flex; flex-direction: column; }

.quote blockquote {
	margin: 0 0 var(--space-4);
	font: 400 var(--fs-xl)/1.5 var(--font-display);
	letter-spacing: -0.02em;
	color: var(--c-ink);
}

.quote blockquote p { color: inherit; }
.quote blockquote::before { content: "“"; display: block; font-size: 3.25rem; line-height: .6; color: var(--c-red); margin-bottom: var(--space-3); }
.quote figcaption { margin-top: auto; font-size: var(--fs-sm); color: var(--c-muted); }
.quote figcaption strong { display: block; color: var(--c-ink); font-weight: 600; }
.section--dark .quote blockquote { color: var(--c-on-dark); }
.section--dark .quote figcaption { color: var(--c-on-dark-muted); }
.section--dark .quote figcaption strong { color: var(--c-on-dark); }

/* One quote featured, others stacked beside it:
   `div.quote-feature > figure.quote + div.quote-feature__more > figure.quote...`. */
.quote-feature { display: grid; gap: var(--space-6); }
.quote-feature > .quote blockquote { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); line-height: 1.45; }
.quote-feature__more { display: grid; gap: var(--space-5); align-content: start; }
.quote-feature__more .quote blockquote { font-size: var(--fs-lg); }
.quote-feature__more .quote + .quote { padding-top: var(--space-5); border-top: 1px solid var(--c-line-strong); }

@media (min-width: 900px) {
	.quote-feature { grid-template-columns: 3fr 2fr; align-items: start; }
}

/* 11. Stats & steps ------------------------------------------------------- */

.stats { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0; padding: 0; list-style: none; }
.stat { padding-top: var(--space-4); border-top: 1px solid var(--c-dark-line); }

.stat__value {
	display: block;
	font: 500 clamp(2.25rem, 1.7rem + 1.8vw, 3.125rem)/1 var(--font-display);
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	color: var(--c-on-dark);
	margin-bottom: var(--space-4);
}

.stat__value span { color: var(--c-red); }
.stat h3 { font-size: 1.125rem; letter-spacing: -0.02em; margin-bottom: var(--space-2); }
.stat p { font-size: var(--fs-sm); }

.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 32px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.step { counter-increment: step; padding-top: 18px; border-top: 1px solid var(--c-line-strong); }

.step::before {
	content: counter(step, decimal-leading-zero);
	display: block;
	font: 400 0.6875rem/1 var(--font-display);
	color: var(--c-red);
	margin-bottom: 13px;
}

.step h3 { font-size: 1.125rem; letter-spacing: -0.03em; margin-bottom: 10px; }
.step p { margin: 0; color: var(--c-muted); font-size: var(--fs-sm); line-height: 1.8; }

/* 12. Statement & clients ------------------------------------------------- */

.statement {
	font: 400 var(--fs-xl)/1.5 var(--font-display);
	letter-spacing: -0.02em;
	color: var(--c-ink);
	max-width: 42ch;
}

.statement-body { font-size: var(--fs-lg); color: var(--c-muted); max-width: 62ch; }

.client-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3) var(--space-5);
	margin: var(--space-5) 0 0;
	padding: var(--space-5) 0 0;
	list-style: none;
	border-top: 1px solid var(--c-line);
}

.client-list li {
	font: 500 1.1875rem/1.2 var(--font-display);
	letter-spacing: -0.03em;
	color: var(--c-lighter);
}

/* 13. Article ------------------------------------------------------------- */

.article-header { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); margin-inline: 0; padding-block: clamp(48px, 8vw, 112px) var(--space-5); }

@media (min-width: 1100px) {
	.article-header { margin-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); padding-inline: 0; }
}

.article-header__title { font-size: var(--fs-3xl); line-height: 1.08; letter-spacing: var(--tracking-display); margin-bottom: var(--space-4) !important; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.article-meta > * + *::before { content: "·"; margin-right: 18px; }

.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-6);
	padding-top: var(--space-5);
	/* Rule aligned with the content, not the container padding. */
	background: linear-gradient(var(--c-line), var(--c-line)) no-repeat var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px;
}

@media (min-width: 1100px) {
	.article-layout { grid-template-columns: minmax(0, 720px) 340px; justify-content: space-between; }
	.article-aside__sticky { position: sticky; top: calc(var(--header-h) + 24px); }
}

.prose { font-size: 1rem; line-height: 1.85; color: var(--c-text); min-width: 0; overflow-wrap: break-word; }
.prose p { color: inherit; }
.prose > p:first-child { font-size: 1.0625rem; line-height: 1.8; color: var(--c-ink); }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.9375rem); line-height: 1.18; letter-spacing: -0.035em; margin: 1.8em 0 0.55em; }
.prose h3 { font-size: var(--fs-xl); line-height: 1.25; margin: 1.8em 0 0.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose a:not(.btn) { color: var(--c-red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:not(.btn):hover { color: var(--c-red-dark); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--c-red); }
.prose strong { color: var(--c-ink); font-weight: 600; }
.prose img { display: block; margin: 2em auto; height: auto; }
.prose figure { margin: 2em 0; }
.prose hr { border: 0; border-top: 1px solid var(--c-line); margin: 3em 0; }

.prose blockquote {
	margin: 2em 0;
	padding: 0 0 0 var(--space-4);
	border-left: 2px solid var(--c-red);
	font: 400 var(--fs-xl)/1.5 var(--font-display);
	letter-spacing: -0.02em;
	color: var(--c-ink);
}

.prose table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: var(--fs-sm); line-height: 1.5; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.prose thead th, .prose tr:first-child th { font: 500 var(--fs-xs)/1.4 var(--font-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); border-bottom: 1px solid var(--c-ink); }
.prose pre { background: #f4f6f7; color: #3c5566; padding: var(--space-4); overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--fs-sm); line-height: 1.7; border: 1px solid var(--c-line); border-radius: 8px; }
.prose td pre { margin: 0; font-size: var(--fs-xs); }
.prose .table-wrap > table { width: 100%; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; }
.prose :not(pre) > code { background: var(--c-surface); padding: 2px 6px; border-radius: 3px; overflow-wrap: anywhere; }
.prose .btn-row { margin: 2em 0; }

.article-aside__sticky {
	padding: 28px;
	background: #fff;
	border: 1px solid #dce2e6;
	border-top: 3px solid var(--c-red);
	border-radius: 10px;
	box-shadow: var(--shadow-lg);
}

.article-footer { padding-block: var(--space-5) var(--space-6); }

/* 14. Tags & share -------------------------------------------------------- */

.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-4); padding: 0; list-style: none; }

.tag-list a {
	display: inline-flex;
	padding: 5px 12px;
	border: 1px solid var(--c-line-strong);
	border-radius: 999px;
	font: 400 var(--fs-xs)/1.3 var(--font-label);
	color: var(--c-muted);
	text-decoration: none;
}

.tag-list a:hover { border-color: var(--c-red); color: var(--c-red); }

.share { display: flex; flex-wrap: wrap; gap: var(--space-4); font-size: var(--fs-sm); color: var(--c-subtle); }
.share a { color: var(--c-ink); text-decoration: none; font-weight: 600; }
.share a:hover { color: var(--c-red); }

/* 15. Forms (markup from <x-form>) -------------------------------------- */

.modern .x-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.modern .x-form fieldset > p:first-of-type:empty { display: none; }

.modern .x-form h2 {
	font-size: var(--fs-xl);
	letter-spacing: var(--tracking-title);
	line-height: 1.2;
	margin: 0 0 var(--space-4);
}

.modern .x-form .row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.modern .x-form .row > [class*="col-sm-"] { width: 100%; padding: 0 8px; }

@media (min-width: 640px) {
	.modern .x-form .row > .col-sm-3 { width: 25%; }
	.modern .x-form .row > .col-sm-4 { width: 33.333%; }
	.modern .x-form .row > .col-sm-6 { width: 50%; }
	.modern .x-form .row > .col-sm-8 { width: 66.666%; }
}

.modern .x-form .form-group { margin-bottom: var(--space-3); }

/* Forms in a wide page panel: one-field rows pair up in two columns
   (messages, intros and multi-column rows keep the full width). */
@media (min-width: 760px) {
	.form-panel .x-form fieldset { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
	.form-panel .x-form fieldset > * { grid-column: 1 / -1; }
	.form-panel .x-form fieldset > .row:has(> .col-sm-12:only-child :is(input.form-control, select.form-control)) { grid-column: auto; }
}

.modern .x-form label {
	display: block;
	margin-bottom: 5px;
	font-size: var(--fs-xs);
	font-weight: 500;
	color: #4b5d6b;
}

.modern .x-form .form-control {
	display: block;
	width: 100%;
	min-height: 42px;
	padding: 11px 12px;
	border: 1px solid #d7dfe3;
	border-radius: 5px;
	background: #fff;
	font: 400 var(--fs-sm)/1.4 var(--font-sans);
	color: var(--c-ink);
	transition: border-color .15s, box-shadow .15s;
}

.modern .x-form textarea.form-control { min-height: 120px; resize: vertical; }
.modern .x-form .form-control:focus { outline: 0; border-color: var(--c-teal); box-shadow: 0 0 0 3px var(--c-focus); }
.modern .x-form .has-error .form-control { border-color: var(--c-red); }
.modern .x-form .help-block { display: block; margin-top: 6px; font-size: var(--fs-xs); color: var(--c-red); }
.modern .x-form .btn-tray button { width: 100%; }
.modern .x-form label[for$="-send"], .modern .x-form .btn-tray ~ label { display: none; }

.modern .x-form button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	min-height: 45px;
	padding: 13px 20px;
	border: 0;
	border-radius: var(--radius);
	background: var(--c-red);
	color: #fff;
	font: 600 var(--fs-sm)/1.2 var(--font-sans);
	cursor: pointer;
}

.modern .x-form button[type="submit"]:hover { background: var(--c-red-dark); }
.modern .x-form button[type="submit"]::after { content: "→"; font-size: 1.25em; line-height: 1; }
.modern .x-form button[disabled] { opacity: .6; cursor: progress; }
.modern .x-form .input-group { display: flex; align-items: center; gap: 8px; }
.modern .x-form .input-group-addon { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--c-surface-2); text-align: center; font: 600 12px/22px var(--font-sans); color: var(--c-muted); text-decoration: none; }
.modern .x-form .input-group-addon::after { content: "?"; }

.modern .radio label, .modern .checkbox { display: flex; gap: 8px; align-items: baseline; font-weight: 400; font-size: var(--fs-sm); }
.modern .onoffswitch-label { display: inline-flex; cursor: pointer; }
.modern .onoffswitch-inner { display: flex; border: 1px solid var(--c-line-strong); border-radius: 999px; overflow: hidden; font: 600 var(--fs-xs)/1 var(--font-label); }
.modern .onoffswitch-switch { padding: 8px 14px; }
.modern .onoffswitch-active .onoffswitch-switch { color: var(--c-subtle); }
.modern .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-active .onoffswitch-switch { background: var(--c-ink); color: #fff; }
.modern .onoffswitch-checkbox:not(:checked) + .onoffswitch-label .onoffswitch-inactive .onoffswitch-switch { background: var(--c-surface-2); color: var(--c-ink); }

.modern .alert { position: relative; padding: var(--space-4); border-left: 3px solid var(--c-ink); background: #fff; font-size: var(--fs-sm); }
.modern .alert-error { border-left-color: var(--c-red); margin-top: var(--space-3); }
.modern .alert .close { position: absolute; right: 12px; top: 8px; text-decoration: none; color: var(--c-subtle); }

/* 16. Dialog (popup lead forms) ------------------------------------------ */

.lead-dialog {
	width: min(640px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	padding: 0;
	border: 0;
	border-top: 3px solid var(--c-red);
	border-radius: 10px;
	box-shadow: 0 40px 80px rgba(19, 45, 65, 0.25);
}

.lead-dialog::backdrop { background: rgba(23, 35, 50, 0.55); backdrop-filter: blur(2px); }
.lead-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-4) 0; }
.lead-dialog__title { margin: 0; font: 500 var(--fs-xl)/1.2 var(--font-display); color: var(--c-ink); }
.lead-dialog__close { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--c-muted); }
.lead-dialog__body { padding: var(--space-4); }

/* 17. Footer -------------------------------------------------------------- */

.site-footer { background: var(--c-surface); color: var(--c-muted); font-size: var(--fs-sm); padding-top: var(--space-section); border-top: 1px solid var(--c-line); }
.site-footer a:not(.btn) { color: var(--c-ink); text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--c-red); }

.site-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-5);
	padding-bottom: var(--space-6);
	border-bottom: 1px solid var(--c-line);
}

.site-footer__statement {
	margin: 0;
	font: 500 var(--fs-2xl)/1.12 var(--font-display);
	letter-spacing: var(--tracking-title);
	color: var(--c-ink);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--space-5);
	padding-block: var(--space-6);
}

.site-footer__title {
	margin: 0 0 var(--space-3) !important;
	font: 600 0.6875rem/1.3 var(--font-label) !important;
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
	color: var(--c-subtle) !important;
}

.site-footer p:not(.site-footer__statement) { color: var(--c-muted); }
.site-footer__col ul { margin: 0 0 var(--space-5); padding: 0; list-style: none; }
.site-footer__col li { margin-bottom: 8px; }
.site-footer address { font-style: normal; margin-bottom: var(--space-4); line-height: 1.7; }
.site-footer address strong { color: var(--c-ink); font-weight: 600; }
.site-footer__phones span { display: block; font-size: var(--fs-xs); color: var(--c-subtle); }

.newsletter { display: flex; margin: var(--space-3) 0 var(--space-5); border: 1px solid #d7dfe3; border-radius: 5px; background: #fff; }

.newsletter input[type="email"] {
	flex: 1;
	min-width: 0;
	min-height: 42px;
	padding: 10px 12px;
	border: 0;
	background: transparent;
	color: var(--c-ink);
	font: 400 var(--fs-sm)/1.3 var(--font-sans);
}

.newsletter input::placeholder { color: #84909a; }
.newsletter input:focus { outline: 0; }
.newsletter button { border: 0; background: none; color: var(--c-red); padding: 0 12px; cursor: pointer; }
.newsletter:focus-within { border-color: var(--c-teal); box-shadow: 0 0 0 3px var(--c-focus); }

.site-footer__fine { font-size: var(--fs-xs); color: var(--c-subtle); }

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3) var(--space-5);
	padding-block: var(--space-4) var(--space-5);
	border-top: 1px solid var(--c-line);
}

.site-footer__bottom p { margin: 0; font-size: var(--fs-xs); }
.site-footer__logo img { width: 130px; display: block; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: 0; padding: 0; list-style: none; font-size: var(--fs-xs); }
.site-footer .site-footer__links a { color: var(--c-subtle); }

/* 18. Converted pages ------------------------------------------------------ */
/* Components produced by tools/modernize/convert.py from legacy widgets. */

.hero__title--page { max-width: 24ch; margin-bottom: var(--space-4) !important; }
.hero .prose { max-width: 720px; margin-top: var(--space-4); }
.hero .lead + .btn-row, .hero .prose + .btn-row { margin-top: var(--space-5); }

/* Page sections use the container width: text beside its title (split),
   long untitled text in two columns, wide content (tables, code) full width. */
@media (min-width: 900px) {
	.prose--cols { columns: 2; column-gap: var(--space-6); }
	.prose--cols > * { break-inside: avoid; }
	.prose--cols :is(h2, h3, h4) { break-after: avoid; }
}
.prose--lead { font-size: var(--fs-lg); }
.prose > :last-child { margin-bottom: 0; }
.prose h3 { font-size: var(--fs-xl); line-height: 1.25; margin: 1.6em 0 0.5em; }
.prose h4 { font-size: var(--fs-lg); margin: 1.4em 0 0.4em; }
.prose h3:first-child, .prose h4:first-child { margin-top: 0; }
.prose .table-wrap { margin: 2em 0; overflow-x: auto; }
.prose .table-wrap > table { display: table; margin: 0; }
.split__body > * + * { margin-top: var(--space-4); }
.split__body .lead { margin-bottom: 0; }
.split__body .btn-row { margin-top: var(--space-5); }
.section-head + .prose, .section-head + .figure { margin-top: 0; }

/* Columns from the legacy grid (side-by-side widgets). */
.cols { display: grid; gap: var(--space-6) var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.col h3 { font-size: var(--fs-xl); letter-spacing: var(--tracking-title); margin-bottom: var(--space-3); }
.col .prose { font-size: var(--fs-base); }

.features--plain .feature::before { display: none; }

/* Short statements, each with a red dash. */
.ticks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 0 var(--space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ticks li { position: relative; padding: var(--space-3) 0 var(--space-3) 28px; border-top: 1px solid var(--c-line); line-height: 1.5; color: var(--c-text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: calc(var(--space-3) + 0.75em); width: 14px; height: 2px; background: var(--c-red); }
.section--surface .ticks li { border-color: var(--c-line-strong); }
.section--dark .ticks li { border-color: var(--c-dark-line); color: var(--c-on-dark); }

/* Benefits: short phrases as tiles, each led by an icon in a tinted square
   (`ul.benefits > li.benefit > span.benefit__icon > svg.icon` +
   `span.benefit__text`). They rise in turn as they scroll into view; on
   hover a tile lifts, its icon turns red and a red line sweeps along its
   top. Full width, 3/6/9 tiles sit three per row and 4/8 four per row. */
.benefits {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	gap: var(--space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.benefit {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: 20px 22px;
	overflow: hidden;
	background: var(--c-bg);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	font: 500 var(--fs-lg)/1.3 var(--font-display);
	letter-spacing: -0.01em;
	color: var(--c-ink);
	transition: translate .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.benefit::after {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: var(--c-red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .45s var(--ease);
}

.benefit__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 10px;
	background: var(--c-red-tint);
	color: var(--c-red);
	transition: background .25s var(--ease), color .25s var(--ease);
}

.benefit__icon .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.benefit__text, .tags li, .pillar, .rows__title { min-width: 0; overflow-wrap: break-word; }
.benefit__text strong { font-weight: 600; color: var(--c-red); }
.benefit__title { display: block; font-weight: 500 !important; color: var(--c-ink) !important; }
.benefit__desc { display: block; margin-top: 4px; font: 400 var(--fs-sm)/1.5 var(--font-sans); letter-spacing: 0; color: var(--c-muted); }
.section--dark .benefit__title { color: var(--c-on-dark) !important; }
.section--dark .benefit__desc { color: var(--c-on-dark-muted); }
* + .benefits { margin-top: var(--space-4); }
:is(.benefits, .pillars, .features, .rows, .tags, .keywords, .ticks, .step-cards) + :is(.prose, .btn-row) { margin-top: var(--space-5); }

@media (min-width: 900px) {
	.container > .features:has(> li:nth-child(6):last-child),
	.container > .features:has(> li:nth-child(9):last-child),
	.container > .benefits:has(> li:nth-child(3):last-child),
	.container > .benefits:has(> li:nth-child(6):last-child),
	.container > .benefits:has(> li:nth-child(9):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.container > .benefits:has(> li:nth-child(4):last-child),
	.container > .benefits:has(> li:nth-child(8):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.benefit:hover { translate: 0 -3px; border-color: var(--c-line-strong); box-shadow: var(--shadow-lg); }
.benefit:hover::after { transform: scaleX(1); }
.benefit:hover .benefit__icon { background: var(--c-red); color: #fff; }
.section--surface .benefit { border-color: var(--c-line-strong); }
.section--dark .benefit { background: var(--c-dark-2); border-color: var(--c-dark-line); color: var(--c-on-dark); }
.section--dark .benefit__icon { background: rgba(200, 16, 46, 0.22); color: var(--c-red); }

/* Offer cards: a few options side by side (one row from 900 px), each a
   link with a large icon, a title, a text and an arrow; a big faint number
   in the corner: `ul.offer-cards > li > a.offer-card > span.offer-card__icon
   + h3.offer-card__title + p.offer-card__desc + span.link-arrow`. */
.offer-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: var(--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: offer;
}

@media (min-width: 900px) {
	.offer-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.offer-cards:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.offer-cards > li { display: flex; counter-increment: offer; }

.offer-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	width: 100%;
	padding: clamp(28px, 3vw, 40px) clamp(24px, 2.6vw, 34px);
	overflow: hidden;
	background: var(--c-bg);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	color: inherit;
	text-decoration: none;
	transition: translate .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.offer-card::before {
	content: counter(offer, decimal-leading-zero);
	position: absolute;
	top: 14px;
	right: 20px;
	font: 500 clamp(3rem, 2.4rem + 2vw, 4.25rem)/1 var(--font-display);
	letter-spacing: -0.05em;
	color: var(--c-surface-2);
	pointer-events: none;
}

.offer-card::after {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: var(--c-red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .45s var(--ease);
}

.offer-card__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: var(--space-2);
	border-radius: 50%;
	background: var(--c-red-tint);
	color: var(--c-red);
	transition: background .25s var(--ease), color .25s var(--ease);
}

.offer-card__icon .icon { width: 30px; height: 30px; stroke-width: 1.4; }
.offer-card__title { position: relative; margin: 0 !important; font-size: var(--fs-xl); letter-spacing: var(--tracking-title); line-height: 1.2; color: var(--c-ink); }
.offer-card__desc { flex: 1; margin: 0 !important; color: var(--c-muted); line-height: 1.65; }
.offer-card .link-arrow { margin-top: var(--space-2); }
.offer-card:hover { translate: 0 -4px; border-color: var(--c-line-strong); box-shadow: var(--shadow-lg); }
.offer-card:hover::after { transform: scaleX(1); }
.offer-card:hover .offer-card__icon { background: var(--c-red); color: #fff; }
.section--surface .offer-card { border-color: var(--c-line); }
.section--dark .offer-card { background: var(--c-dark-2); border-color: var(--c-dark-line); }
.section--dark .offer-card::before { color: var(--c-dark-line); }
.section--dark .offer-card__title { color: var(--c-on-dark); }
.section--dark .offer-card__desc { color: var(--c-on-dark-muted); }
.section--dark .offer-card__icon { background: rgba(200, 16, 46, 0.22); color: var(--c-red); }

/* Pillars: a few key points in a row, each a large line icon over a short
   label, on a shared rule with a red accent per point (made for dark
   sections): `ul.pillars > li.pillar > svg.icon.pillar__icon` + text. */
.pillars {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: var(--space-5) 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pillar {
	position: relative;
	padding: var(--space-5) var(--space-4) 0 0;
	border-top: 1px solid var(--c-line-strong);
	font: 500 var(--fs-xl)/1.25 var(--font-display);
	letter-spacing: -0.015em;
	color: var(--c-ink);
}

.pillar::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 40px;
	height: 2px;
	background: var(--c-red);
	transform-origin: left;
	transition: width .4s var(--ease);
}

.pillar:hover::before { width: 100%; }
.pillar__icon { display: block; width: 44px; height: 44px; margin-bottom: var(--space-4); color: var(--c-red); stroke-width: 1.1; }
.section--dark .pillar { border-color: var(--c-dark-line); color: var(--c-on-dark); }
.section--dark .pillar__icon { color: var(--c-red); }

/* Step cards: numbered stages side by side, each with its title, a short
   text and its tasks as tags:
   `div.step-cards > article.step-card > h3 + p + ul.tags > li`. */
.step-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
	gap: var(--space-4);
	counter-reset: step-card;
}

.step-card {
	padding: clamp(28px, 3.5vw, 44px);
	background: var(--c-surface);
	border-radius: var(--radius-lg);
	counter-increment: step-card;
}

.step-card::before {
	content: counter(step-card, decimal-leading-zero);
	display: block;
	margin-bottom: var(--space-4);
	font: 500 clamp(3.25rem, 2.2rem + 3vw, 4.75rem)/0.9 var(--font-display);
	letter-spacing: -0.05em;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--c-red);
}

.step-card h3 { font-size: var(--fs-xl); letter-spacing: var(--tracking-title); margin-bottom: var(--space-3); }
.step-card > p { color: var(--c-muted); }
.section--surface .step-card { background: var(--c-bg); }
/* Exactly three cards: one row on wide screens (not two plus one). */
@media (min-width: 1000px) {
	.step-cards:has(> .step-card:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.step-cards + .cols { margin-top: var(--space-6); }

.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.tags li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	background: var(--c-bg);
	border: 1px solid var(--c-line);
	border-radius: 999px;
	font-size: var(--fs-sm);
	line-height: 1.3;
	color: var(--c-text);
}

.tags li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--c-red); }
.tags--lg { gap: 10px; }
.tags--lg li { padding: 11px 18px; font-size: var(--fs-base); }
.section--dark .tags li { background: var(--c-dark-2); border-color: var(--c-dark-line); color: var(--c-on-dark); }

/* Stack: a text section with its title above the text, under a short red
   rule (alternates with .split so consecutive text sections differ). */
.stack { max-width: 820px; }
.stack::before { content: ""; display: block; width: 48px; height: 3px; margin-bottom: var(--space-4); background: var(--c-red); }
.stack > * + * { margin-top: var(--space-4); }
.split > .panel, .split > .panel-dark { align-self: start; }
.stack--wide { max-width: none; }
.stack--wide > .section-title { max-width: 820px; }

@media (min-width: 900px) {
	.split--flip { grid-template-columns: 7fr 5fr; }
	.split--flip > :first-child { order: 2; }
}

/* Rows: points with a title and a text, one per row, the title on the left
   (`ul.rows > li > h3.rows__title + div.rows__text`). */
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-line-strong); }
.rows li { display: grid; gap: var(--space-2) var(--space-5); padding: var(--space-4) 0; border-bottom: 1px solid var(--c-line); }
.rows__title { margin: 0; font-size: var(--fs-xl); letter-spacing: var(--tracking-title); line-height: 1.25; }
.rows__text { color: var(--c-muted); }
.rows__text > * + * { margin-top: var(--space-2); }
.section--dark .rows, .section--dark .rows li { border-color: var(--c-dark-line); }
.section--dark .rows__text { color: var(--c-on-dark-muted); }

@media (min-width: 768px) {
	.rows li { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}

/* Keywords: a few points, each opening with one big word (its <strong>)
   underlined in red: `ul.keywords > li > strong + text`. */
.keywords {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: var(--space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.keywords li { font-size: var(--fs-lg); line-height: 1.55; color: var(--c-muted); }
.keywords strong {
	display: block;
	width: fit-content;
	margin-bottom: var(--space-3);
	padding-bottom: 8px;
	font: 500 var(--fs-3xl)/1 var(--font-display);
	letter-spacing: var(--tracking-display);
	color: var(--c-ink);
	background: linear-gradient(var(--c-red), var(--c-red)) no-repeat 0 100% / 100% 3px;
}

.section--dark .keywords li { color: var(--c-on-dark-muted); }
.section--dark .keywords strong { color: var(--c-on-dark); }

/* Timeline chart on a dark section. */
.section--dark .timeline-chart__legend, .section--dark .timeline-chart__label, .section--dark .timeline-chart__savings { color: var(--c-on-dark-muted); }
.section--dark .timeline-chart .key::before, .section--dark .timeline-chart .bar { background: #56677a; }
.section--dark .timeline-chart .key--auto::before, .section--dark .timeline-chart .bar--auto { background: var(--c-red); }

/* Logo tiles: technologies or partners, each small greyscale logo (colour
   on hover) above its name (`ul.logo-tiles > li > img + span`); light
   sections only. */
.logo-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
	gap: var(--space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.logo-tiles li {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 12px 14px;
	background: var(--c-bg);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	text-align: center;
	transition: translate .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.logo-tiles img { display: block; height: 44px; width: auto; max-width: 70%; object-fit: contain; filter: grayscale(1) contrast(.9); opacity: .65; transition: filter .3s var(--ease), opacity .3s var(--ease); }
.logo-tiles li:hover img { filter: none; opacity: 1; }
.logo-tiles span { font: 500 var(--fs-sm)/1.3 var(--font-display); color: var(--c-ink); }
.logo-tiles li:hover { translate: 0 -3px; border-color: var(--c-line-strong); box-shadow: var(--shadow-lg); }

/* Client logos: small and greyscale. */
.logo-wall {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-4) var(--space-6);
	margin: var(--space-5) 0 0;
	padding: var(--space-5) 0 0;
	list-style: none;
	border-top: 1px solid var(--c-line);
}

.logo-wall img { display: block; max-height: 44px; max-width: 140px; width: auto; height: auto; filter: grayscale(1); opacity: 0.6; mix-blend-mode: multiply; }
.logo-wall img { transition: filter .3s var(--ease), opacity .3s var(--ease); }
.logo-wall img:hover { filter: none; opacity: 1; }

/* Client logos showcase (Forms & Reports hub): even grid, larger marks. */
.logo-wall--clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--space-5) var(--space-5); align-items: center; justify-items: center; }
.logo-wall--clients img { max-height: 48px; max-width: 100%; opacity: .75; }

/* Contact details. */
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-5); margin: 0; }
.contact-list dt { font: 500 var(--fs-xs)/2 var(--font-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }
.contact-list dd { margin: 0; color: var(--c-ink); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--c-red); }

/* Questions and answers (legacy accordions). */
.faq { border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) 0; cursor: pointer; list-style: none; font: 500 var(--fs-lg)/1.35 var(--font-display); color: var(--c-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--c-red); font-weight: 400; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--c-red); }
.faq .prose { padding-bottom: var(--space-4); font-size: var(--fs-base); }

/* Plan comparison tables. */
.table-wrap { overflow-x: auto; }
.plans { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--fs-sm); }
.plans th, .plans td { padding: 12px 16px; border-bottom: 1px solid var(--c-line); text-align: center; }
.plans thead th { font: 500 var(--fs-xs)/1.4 var(--font-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); border-bottom: 1px solid var(--c-ink); }
.plans th:first-child { text-align: left; }
.plans tbody th { font-weight: 500; color: var(--c-ink); }

/* Videos and maps. */
.embed { position: relative; aspect-ratio: 16 / 9; margin: 2em 0; background: var(--c-surface); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Figures and image + text. */
.figure { margin: 0; }
.figure img { display: block; max-width: 100%; height: auto; margin-inline: auto; }
.figure figcaption, .prose figcaption { margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--c-muted); text-align: center; }
.media-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); align-items: center; }
.media-split__figure { margin: 0; }
.media-split__figure img { display: block; max-width: 100%; height: auto; margin-inline: auto; }
@media (min-width: 900px) {
	.media-split { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
}

/* Forms placed in a page. */
.form-panel { padding: clamp(24px, 3vw, 36px); border: 1px solid #dce2e6; border-top: 3px solid var(--c-red); border-radius: 10px; background: var(--c-bg); box-shadow: var(--shadow-lg); }
.section--dark .form-panel { color: var(--c-text); }

/* Landing pages: logo bar instead of the site navigation. */
.landing-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.landing-bar__logo { display: block; max-height: 40px; width: auto; }
.landing-bar .btn-row { margin: 0; }
.landing-header { padding-block: var(--space-4); border-bottom: 1px solid var(--c-line); }
.landing-footer { padding-block: 32px 38px; border-top: 1px solid var(--c-line); color: var(--c-subtle); font-size: var(--fs-xs); }
.landing-footer a { color: var(--c-subtle); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; filter: var(--img-filter); transition: filter .4s var(--ease); }
.gallery a:hover img { filter: var(--img-filter-hover); }

.quote--large { max-width: 980px; }
.quote--large blockquote { font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); line-height: 1.35; }

/* Custom HTML blocks kept from the legacy pages (e.g. RAM savings calculator). */
.custom-block { max-width: none; }
.custom-block h2 { font-size: var(--fs-xl); margin: 1.2em 0 0.3em; }
.custom-block h2:first-child { font-size: var(--fs-2xl); margin-top: 0; }
.custom-block .row { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-4) 0; }
.custom-block .row > :not(.mobilehidden) { flex: 1; }
.custom-block .mobilehidden { font: 400 var(--fs-xs)/1.4 var(--font-label); color: var(--c-muted); white-space: nowrap; }
.custom-block input[type="range"] { width: 100%; accent-color: var(--c-red); }
.custom-block .subtotal, .custom-block .total { font: 500 var(--fs-2xl)/1.1 var(--font-display); color: var(--c-ink); }
.custom-block .total { color: var(--c-red); }
.custom-block .users { font: 400 var(--fs-sm)/1.4 var(--font-label); color: var(--c-muted); }

/* Effort per migration phase: manual vs automated (bar widths in --v). */
.timeline-chart { margin: 0; }
.timeline-chart h3 { font-size: var(--fs-xl); margin-bottom: var(--space-3); }
.timeline-chart__legend { display: flex; gap: var(--space-4); font: 500 var(--fs-xs)/1.4 var(--font-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-muted); }
.timeline-chart .key::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--c-line-strong); }
.timeline-chart .key--auto::before { background: var(--c-red); }
.timeline-chart__rows { display: grid; gap: 14px; margin: var(--space-5) 0; padding: 0; list-style: none; }
.timeline-chart__rows li { display: grid; grid-template-columns: minmax(96px, 200px) 1fr; gap: var(--space-4); align-items: center; }
.timeline-chart__label { font: 500 var(--fs-xs)/1.3 var(--font-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-muted); }
.timeline-chart__bars { display: grid; gap: 4px; }
.timeline-chart .bar { display: block; width: var(--v); height: 10px; background: var(--c-line-strong); }
.timeline-chart .bar--auto { background: var(--c-red); }
.timeline-chart__savings { font-size: var(--fs-lg); color: var(--c-muted); }
.timeline-chart__savings strong { font: 500 var(--fs-2xl)/1 var(--font-display); color: var(--c-red); }
/* Chart headline: the savings as a big typographic figure (numbers count
   up), its label beside it: `p.timeline-chart__headline >
   span.timeline-chart__figure + span.timeline-chart__caption`. */
.timeline-chart__headline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--space-4); margin: 0 0 var(--space-4) !important; }
.timeline-chart__figure {
	font: 500 clamp(3.75rem, 2rem + 5.5vw, 6.75rem)/0.9 var(--font-display);
	letter-spacing: -0.05em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	color: var(--c-red);
}
.timeline-chart__figure small { font-size: .42em; letter-spacing: 0; vertical-align: .95em; margin-left: .05em; }
.timeline-chart__dash { margin: 0 .06em; font-weight: 300; color: var(--c-line-strong); }
.timeline-chart__caption { font: 500 var(--fs-2xl)/1 var(--font-display); letter-spacing: var(--tracking-title); color: var(--c-ink); }
.section--dark .timeline-chart__figure { color: var(--c-red); }
.section--dark .timeline-chart__dash { color: #56677a; }
.section--dark .timeline-chart__caption { color: var(--c-on-dark); }
/* Comparison: one thick bar per row on a 0-100% track, its value counting
   up at the end (`timeline-chart--compare`, `span.timeline-chart__value`). */
.timeline-chart--compare .timeline-chart__rows { gap: var(--space-4); }
.timeline-chart--compare .timeline-chart__rows li { grid-template-columns: minmax(96px, 200px) 1fr 4.5ch; }
.timeline-chart--compare .timeline-chart__bars { background: var(--c-surface-2); border-radius: 4px; overflow: hidden; }
.timeline-chart--compare .bar { height: 28px; }
.timeline-chart__value { font: 500 var(--fs-xl)/1 var(--font-display); color: var(--c-ink); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.section--surface .timeline-chart--compare .timeline-chart__bars { background: var(--c-line); }
.section--dark .timeline-chart--compare .timeline-chart__bars { background: var(--c-dark-2); }
.section--dark .timeline-chart__value { color: var(--c-on-dark); }

/* CATS job list (x-jobs, filled by site.js). */
.jobs-count { font: 400 var(--fs-sm)/1.4 var(--font-label); color: var(--c-muted); }
.jobs-list { margin: var(--space-4) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--c-line); }
.jobs-list a { display: grid; grid-template-columns: 1fr; gap: 4px; padding: var(--space-4) 0; border-bottom: 1px solid var(--c-line); text-decoration: none; }
.jobs-list .date { font: 400 var(--fs-xs)/1.4 var(--font-label); color: var(--c-subtle); }
.jobs-list .title { font: 500 var(--fs-lg)/1.3 var(--font-display); color: var(--c-ink); transition: color .18s; }
.jobs-list .location { font-size: var(--fs-sm); color: var(--c-muted); }
.jobs-list .location i, .jobs-list .details { display: none; }
.jobs-list a:hover .title { color: var(--c-red); }
@media (min-width: 900px) {
	.jobs-list a { grid-template-columns: 140px 1fr 220px; gap: var(--space-5); align-items: baseline; }
	.jobs-list .location { text-align: right; }
}

/* Job posting page. */
.split--job { gap: var(--space-6); }
@media (min-width: 900px) { .split--job { grid-template-columns: minmax(0, 1fr) 320px; } }
.split--job aside { display: grid; gap: var(--space-4); align-content: start; }
.panel__title { font-size: var(--fs-xl); margin-bottom: var(--space-2) !important; }
.job-ad { color: var(--c-on-dark); }
.job-ad__title { font: 500 var(--fs-2xl)/1.05 var(--font-display); letter-spacing: var(--tracking-title); color: var(--c-on-dark); }

/* Search page. */
.search-form { display: flex; gap: var(--space-2); max-width: 720px; margin-top: var(--space-5); }
.search-form input {
	flex: 1;
	min-width: 0;
	min-height: 52px;
	padding: 12px 16px;
	border: 1px solid var(--c-line-strong);
	border-radius: var(--radius);
	font: 400 var(--fs-lg)/1.3 var(--font-sans);
	color: var(--c-ink);
	background: var(--c-bg);
}
.search-form input:focus { outline: 0; border-color: var(--c-ink); box-shadow: 0 0 0 3px var(--c-focus); }
.search-form .btn { min-height: 52px; }

/* All tags. */
.tag-list--cloud { gap: var(--space-2) var(--space-2); }
.tag-list--cloud a { font-size: var(--fs-sm); padding: 7px 14px; }
.tag-list--cloud .count { margin-left: 6px; color: var(--c-subtle); }

/* 19. Icons, product logos & motion --------------------------------------- */

/* Line icons from assets/img/icons.svg (<svg class="icon"><use href="…#name">). */
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feature__icon { display: block; width: 32px; height: 32px; margin-bottom: 18px; color: var(--c-red); stroke-width: 1.3; }
.feature:has(.feature__icon)::before { display: none; }
.section--dark .feature__icon { color: var(--c-red); }
.focus-list__icon { width: 20px; height: 20px; color: var(--c-red); margin-right: 12px; stroke-width: 1.4; }
.focus-list a { justify-content: flex-start; }
.focus-list a::after { margin-left: auto; }

/* Short statements: a teal check, like the campaign page. */
.ticks li::before { content: "✓"; width: auto; height: auto; top: var(--space-3); background: none; color: var(--c-teal); font-weight: 600; }

/* White artwork on transparency (flagged by tools/modernize/enhance.py). */
.img--light { background: var(--c-ink); padding: 8px; border-radius: 8px; }

/* Product logos in product lists. */
.index-list a:has(.index-list__logo) { grid-template-columns: 92px minmax(0, 1fr) auto; }
.index-list__logo { grid-row: 1 / span 2; width: 92px; height: auto; align-self: center; transition: transform .3s var(--ease); }
.index-list a:has(.index-list__logo) .index-list__desc { grid-column: 2; }
.index-list a::after { grid-column: -2 / -1; }
.index-list a:hover .index-list__logo { transform: scale(1.04); }

/* Product pages: the ORMIT™ logo beside the hero text. */
@media (min-width: 900px) {
	.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
}
.hero__visual { position: relative; display: flex; justify-content: center; padding: 32px 0; isolation: isolate; }
.hero__visual::before { content: ""; position: absolute; inset: -10px -20px; z-index: -2; background: radial-gradient(ellipse at 50% 50%, rgba(214, 226, 225, 0.6), transparent 68%); }
.hero__visual::after { content: ""; position: absolute; inset: 0 -10px; z-index: -1; background-image: radial-gradient(#b8c4ca 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(ellipse, #000, transparent 72%); mask-image: radial-gradient(ellipse, #000, transparent 72%); opacity: .45; }
.product-badge {
	width: min(100%, 400px);
	padding: clamp(24px, 3vw, 40px) clamp(28px, 3.5vw, 48px);
	background: #fff;
	border: 1px solid #d5dde1;
	border-radius: 14px;
	box-shadow: 0 22px 50px rgba(40, 61, 75, 0.09), 0 4px 12px rgba(40, 61, 75, 0.04);
	transform: rotate(-2deg);
	animation: badge-float 7s ease-in-out infinite;
}
.product-badge img { display: block; width: 100%; height: auto; }
/* Or the product itself on a laptop screen (the screen of laptop.png is
   transparent; the video or screenshot sits behind it, in the screen's place):
   figure.device > video.device__screen + img.device__frame. The logo then
   goes under the lead (img.hero__logo). */
.device { position: relative; width: min(100%, 620px); margin: 0; }
.device__frame { position: relative; z-index: 1; display: block; width: 100%; height: auto; pointer-events: none; }
.device__screen { position: absolute; z-index: 0; left: 14.9%; top: 5%; width: 70.2%; height: 77.6%; object-fit: cover; background: #111; }
.hero__logo { display: block; width: clamp(150px, 15vw, 200px); height: auto; margin-top: var(--space-4); }
/* Or a text panel beside the page title (services). */
.hero__visual > .panel { width: min(100%, 500px); }
.hero__visual > .panel p { font-size: var(--fs-base); line-height: 1.75; }
.hero__visual > .benefits { width: 100%; }
@media (max-width: 899px) {
	.hero__visual { padding: 8px 0 0; justify-content: flex-start; }
	.product-badge { width: min(78%, 300px); }
}
@keyframes badge-float {
	0%, 100% { transform: translateY(0) rotate(-2deg); }
	50% { transform: translateY(-10px) rotate(-1deg); }
}

/* Entrance: hero content rises on load; sections reveal on scroll (site.js
   adds .reveal-on to <html> and .reveal/.is-in to elements). */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero .container > *, .hero__text > * { animation: rise .7s var(--ease) both; }
.hero .container > :nth-child(2), .hero__text > :nth-child(2) { animation-delay: .07s; }
.hero .container > :nth-child(3), .hero__text > :nth-child(3) { animation-delay: .14s; }
.hero .container > :nth-child(4), .hero__text > :nth-child(4) { animation-delay: .21s; }
.hero .container > :nth-child(n+5), .hero__text > :nth-child(n+5) { animation-delay: .28s; }
.hero__grid > .hero__text { animation: none; }
.hero__grid > .hero__visual { animation: rise .9s var(--ease) .2s both; }

.reveal-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.reveal-on .reveal.is-in { opacity: 1; transform: none; }
.reveal-on .timeline-chart .bar { width: 0; transition: width 1.1s var(--ease); }
.reveal-on .timeline-chart.is-in .bar { width: var(--v); }
.reveal-on .timeline-chart.is-in li:nth-child(2) .bar { transition-delay: .08s; }
.reveal-on .timeline-chart.is-in li:nth-child(3) .bar { transition-delay: .16s; }
.reveal-on .timeline-chart.is-in li:nth-child(4) .bar { transition-delay: .24s; }
.reveal-on .timeline-chart.is-in li:nth-child(5) .bar { transition-delay: .32s; }
.reveal-on .timeline-chart.is-in li:nth-child(6) .bar { transition-delay: .4s; }
.reveal-on .timeline-chart.is-in li:nth-child(7) .bar { transition-delay: .48s; }

/* Benefit tiles keep their hover transitions while revealing (the lift
   uses `translate`, independent of the reveal's `transform`); their icons
   pop in once the tile has risen. */
.reveal-on .offer-cards > li.reveal .offer-card { transition: translate .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.reveal-on .logo-tiles li.reveal { transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms), translate .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.reveal-on .benefit.reveal { transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms), translate .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
@keyframes benefit-pop { from { opacity: 0; transform: scale(.4) rotate(-14deg); } }
.reveal-on .benefit.reveal .benefit__icon { opacity: 0; }
.reveal-on .benefit.is-in .benefit__icon { opacity: 1; animation: benefit-pop .55s cubic-bezier(.34, 1.56, .64, 1) calc(var(--d, 0ms) + .3s) both; }

/* Pillar accents draw in, keyword underlines sweep, step-card tags follow
   their card in turn. */
.reveal-on .pillar.reveal::before { transform: scaleX(0); transition: transform .8s var(--ease) calc(var(--d, 0ms) + .2s), width .4s var(--ease); }
.reveal-on .pillar.is-in::before { transform: none; }
.reveal-on .keywords li.reveal strong { background-size: 0 3px; transition: background-size .8s var(--ease) calc(var(--d, 0ms) + .35s); }
.reveal-on .keywords li.is-in strong { background-size: 100% 3px; }
.reveal-on .step-card.reveal .tags li { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.reveal-on .step-card.is-in .tags li { opacity: 1; transform: none; }
.reveal-on .step-card.is-in .tags li:nth-child(1) { transition-delay: calc(var(--d, 0ms) + 0.30s); }
.reveal-on .step-card.is-in .tags li:nth-child(2) { transition-delay: calc(var(--d, 0ms) + 0.35s); }
.reveal-on .step-card.is-in .tags li:nth-child(3) { transition-delay: calc(var(--d, 0ms) + 0.40s); }
.reveal-on .step-card.is-in .tags li:nth-child(4) { transition-delay: calc(var(--d, 0ms) + 0.45s); }
.reveal-on .step-card.is-in .tags li:nth-child(5) { transition-delay: calc(var(--d, 0ms) + 0.50s); }
.reveal-on .step-card.is-in .tags li:nth-child(6) { transition-delay: calc(var(--d, 0ms) + 0.55s); }
.reveal-on .step-card.is-in .tags li:nth-child(7) { transition-delay: calc(var(--d, 0ms) + 0.60s); }
.reveal-on .step-card.is-in .tags li:nth-child(8) { transition-delay: calc(var(--d, 0ms) + 0.65s); }
.reveal-on .step-card.is-in .tags li:nth-child(9) { transition-delay: calc(var(--d, 0ms) + 0.70s); }
.reveal-on .step-card.is-in .tags li:nth-child(10) { transition-delay: calc(var(--d, 0ms) + 0.75s); }

/* Cards lift slightly on hover. */
.feature, .post-card, .step, .stat { transition: transform .25s var(--ease); }
.features--links .feature:hover, .post-card:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
	.hero .container > *, .hero__text > *, .hero__grid > .hero__visual, .product-badge { animation: none; }
	.reveal-on .reveal { opacity: 1; transform: none; transition: none; }
	.reveal-on .timeline-chart .bar { width: var(--v); transition: none; }
	.feature, .post-card, .btn { transition: none; }
}

/* 20. Utilities ----------------------------------------------------------- */

.visually-hidden, .form-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.modern [hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
	.modern *, .modern *::before, .modern *::after { transition: none !important; animation: none !important; }
}
