/*
Theme Name: Resilient (Beaver Builder Child)
Theme URI: https://resilient-ms.co.uk
Version: 0.2.10
Description: Resilient Management Solutions child theme for the Beaver Builder Theme. Design v2 (white, Ventra-inspired) plus the original "Signal" components. Source: resilient-ms/staging/theme/bb-theme-child in the Websites repo.
Author: Resilient Management Solutions
template: bb-theme
Text Domain: rms
*/

/* ==========================================================================
   1. Fonts (self-hosted, latin subset, variable weight)
   ========================================================================== */

@font-face {
	font-family: "Manrope";
	src: url("assets/fonts/manrope-latin-wght.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter-latin-wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* Metric-matched fallbacks keep layout shift near zero while fonts load */
@font-face {
	font-family: "Manrope Fallback";
	src: local("Arial");
	size-adjust: 103%;
	ascent-override: 103%;
	descent-override: 29%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Inter Fallback";
	src: local("Arial");
	size-adjust: 107%;
	ascent-override: 90%;
	descent-override: 22%;
	line-gap-override: 0%;
}

/* ==========================================================================
   2. Design tokens
   ========================================================================== */

:root {
	/* Colour */
	--ink-900: #0B1F33;
	--ink-800: #12304D;
	--blue-700: #0F6CA0;
	--blue-800: #0B5785;
	--plum-700: #A11E5E;
	--crimson-700: #B80842;
	--sky-400: #2DB2E6;
	--gold-500: #F3AF00;
	--slate-700: #344054;
	--slate-500: #667085;
	--line: #D9DEE5;
	--paper: #F7F5F0;
	--white: #FFFFFF;

	/* Sector spectrum (chips, charts, ribbon only) */
	--sector-asset: #0F6CA0;
	--sector-motor: #DD0A4E;
	--sector-motor-text: #B80842;
	--sector-equipment: #E35414;
	--sector-equipment-text: #B8410C;
	--sector-software: #149D3C;
	--sector-software-text: #0E7A2E;
	--sector-fintech: #A11E5E;

	--ribbon: linear-gradient(90deg, #A11E5E 0%, #DD0A4E 18%, #E35414 34%, #F3AF00 50%, #149D3C 66%, #2DB2E6 83%, #0F6CA0 100%);

	/* Type */
	--font-heading: "Manrope", "Manrope Fallback", system-ui, sans-serif;
	--font-body: "Inter", "Inter Fallback", system-ui, sans-serif;

	--fs-display: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
	--fs-h2: clamp(2rem, 1.5rem + 2vw, 3rem);
	--fs-h3: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
	--fs-h4: clamp(1.25rem, 1.2rem + 0.25vw, 1.375rem);
	--fs-lead: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
	--fs-body: 1.0625rem;
	--fs-small: 0.875rem;
	--fs-eyebrow: 0.8125rem;
	--fs-stat: clamp(2.75rem, 2rem + 3vw, 4rem);

	/* Space (8 px scale) */
	--space-1: 0.5rem;
	--space-2: 1rem;
	--space-3: 1.5rem;
	--space-4: 2rem;
	--space-5: 3rem;
	--space-6: 4rem;
	--section-pad: clamp(4rem, 8vw, 7.5rem);
	--content-width: 1240px;
	--row-width: 1288px; /* Beaver Builder row content width (config/bb-global.json row_width) */
	--wide-width: 1360px;
	--gutter: 24px;

	/* Shape and motion */
	--radius: 12px;
	--radius-sm: 8px;
	--shadow-card: 0 1px 2px rgba(11, 31, 51, 0.06), 0 8px 24px rgba(11, 31, 51, 0.06);
	--shadow-card-hover: 0 2px 4px rgba(11, 31, 51, 0.08), 0 16px 40px rgba(11, 31, 51, 0.1);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--header-h: 88px;
}

/* ==========================================================================
   3. Base
   ========================================================================== */

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

body,
.fl-builder-content {
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.65;
	color: var(--slate-700);
	background: var(--white);
	font-feature-settings: "cv11", "ss01";
}

h1, h2, h3, h4, h5, h6,
.fl-module-heading .fl-heading {
	font-family: var(--font-heading);
	color: var(--ink-900);
	font-weight: 700;
	text-wrap: balance;
}

h1 { font-size: var(--fs-display); line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; }
h4 { font-size: var(--fs-h4); line-height: 1.3; font-weight: 600; }

p { text-wrap: pretty; }

a {
	color: var(--blue-700);
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
	transition: color 0.2s var(--ease);
}

a:hover,
a:focus-visible { color: var(--blue-800); }

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

.rms-dark :focus-visible { outline-color: var(--sky-400); }

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

.screen-reader-text,
.rms-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.rms-skip-link {
	position: absolute;
	left: 16px; top: -100px;
	z-index: 10000;
	padding: 12px 20px;
	background: var(--ink-900);
	color: var(--white);
	font-weight: 600;
	border-radius: var(--radius-sm);
}

.rms-skip-link:focus { top: 16px; color: var(--white); }

/* ==========================================================================
   4. Type utilities
   ========================================================================== */

.rms-eyebrow {
	display: inline-block;
	font-family: var(--font-body);
	font-size: var(--fs-eyebrow);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--blue-700);
	margin: 0 0 var(--space-2);
}

.rms-dark .rms-eyebrow { color: var(--sky-400); }

.rms-lead {
	font-size: var(--fs-lead);
	line-height: 1.55;
	color: var(--slate-700);
	max-width: 62ch;
}

.rms-meta { font-size: var(--fs-small); color: var(--slate-500); }

.rms-measure { max-width: 68ch; }

/* ==========================================================================
   5. Sections (applied to BB rows via the row "Class" setting)
   ========================================================================== */

.fl-row.rms-section > .fl-row-content-wrap {
	padding-top: var(--section-pad);
	padding-bottom: var(--section-pad);
}

.fl-row.rms-section-tight > .fl-row-content-wrap {
	padding-top: var(--space-5);
	padding-bottom: var(--space-5);
}

.fl-row.rms-paper > .fl-row-content-wrap { background: var(--paper); }

.fl-row.rms-dark > .fl-row-content-wrap {
	background: var(--ink-900);
	color: #C9D3DF;
}

.rms-dark h1, .rms-dark h2, .rms-dark h3, .rms-dark h4,
.rms-dark .fl-heading { color: var(--white); }

.rms-dark a { color: var(--sky-400); }

.rms-dark .rms-lead { color: #C9D3DF; }

.rms-ribbon-top { position: relative; }

.rms-ribbon-top::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: var(--ribbon);
}

.rms-section-head { max-width: 760px; margin-bottom: var(--space-5); }
.rms-section-head h2 { margin: 0 0 var(--space-2); }
.rms-section-head p { margin: 0; }

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

.rms-btn,
.fl-builder-content a.rms-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 48px;
	padding: 0.8rem 1.5rem;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1;
	text-decoration: none;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.rms-btn--primary,
.fl-builder-content a.rms-btn--primary {
	background: #2A5BD7;
	color: var(--white);
}

.rms-btn--primary:hover,
.rms-btn--primary:focus-visible,
.fl-builder-content a.rms-btn--primary:hover {
	background: #1D46B0;
	color: var(--white);
}

.rms-btn--ghost,
.fl-builder-content a.rms-btn--ghost {
	background: transparent;
	color: var(--ink-900);
	border-color: var(--ink-900);
}

.rms-btn--ghost:hover,
.fl-builder-content a.rms-btn--ghost:hover {
	background: var(--ink-900);
	color: var(--white);
}

.rms-dark .rms-btn--ghost,
.rms-dark a.rms-btn--ghost {
	color: var(--white);
	border-color: rgba(255, 255, 255, 0.6);
}

.rms-dark .rms-btn--ghost:hover,
.rms-dark a.rms-btn--ghost:hover {
	background: var(--white);
	color: var(--ink-900);
	border-color: var(--white);
}

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

.rms-link-arrow {
	font-weight: 600;
	text-decoration: none;
	color: var(--blue-700);
}

.rms-link-arrow::after {
	content: " \2192";
	display: inline-block;
	transition: transform 0.2s var(--ease);
}

.rms-link-arrow:hover::after { transform: translateX(3px); }

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

.rms-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.rms-hero h1 { margin: 0 0 var(--space-3); }

.rms-hero__media {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--paper);
}

.rms-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rms-hero--page { grid-template-columns: minmax(0, 1fr); max-width: 880px; }

.rms-proof {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-1) var(--space-4);
	margin: var(--space-5) 0 0;
	padding: var(--space-3) 0 0;
	border-top: 1px solid var(--line);
	list-style: none;
	font-size: var(--fs-small);
	color: var(--slate-500);
}

.rms-proof li { margin: 0; }
.rms-proof strong { color: var(--ink-900); font-family: var(--font-heading); font-size: 1.125rem; margin-right: 0.35em; }

/* Photo placeholder (until the team photoshoot) */
.rms-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--space-1);
	width: 100%;
	height: 100%;
	min-height: 240px;
	padding: var(--space-3);
	text-align: center;
	color: var(--slate-500);
	font-size: var(--fs-small);
	background:
		linear-gradient(135deg, rgba(15, 108, 160, 0.08), rgba(161, 30, 94, 0.08)),
		repeating-linear-gradient(45deg, transparent 0 14px, rgba(11, 31, 51, 0.035) 14px 15px),
		var(--paper);
	border: 1px dashed #B8C2CF;
	border-radius: var(--radius);
}

.rms-placeholder strong { color: var(--ink-900); font-family: var(--font-heading); }

/* ==========================================================================
   8. Cards and grids
   ========================================================================== */

.rms-grid {
	display: grid;
	gap: var(--gutter);
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.rms-grid--2 { --cols: 2; }
.rms-grid--3 { --cols: 3; }
.rms-grid--4 { --cols: 4; }

.rms-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	height: 100%;
	padding: var(--space-4) var(--space-3) var(--space-3);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
	overflow: hidden;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.rms-card h3 { font-size: var(--fs-h4); margin: 0; }
.rms-card p { margin: 0; }
.rms-card .rms-link-arrow { margin-top: auto; padding-top: var(--space-2); }

/* Whole card clickable via the heading link */
.rms-card--link h3 a { color: inherit; text-decoration: none; }
.rms-card--link h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.rms-card--link:hover,
.rms-card--link:focus-within {
	transform: translateY(-2px);
	box-shadow: var(--shadow-card-hover);
}

.rms-card--link:focus-within { outline: 3px solid var(--blue-700); outline-offset: 2px; }
.rms-card--link h3 a:focus-visible { outline: none; }

/* Sector cards: spectrum ribbon on top */
.rms-card--sector::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: var(--chip, var(--blue-700));
	transition: height 0.25s var(--ease);
}

.rms-card--sector:hover::before { height: 6px; }

.rms-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	font-size: var(--fs-eyebrow);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--chip-text, var(--blue-700));
}

.rms-chip::before {
	content: "";
	width: 10px; height: 10px;
	border-radius: 3px;
	background: var(--chip, var(--blue-700));
}

.rms-sector--asset { --chip: var(--sector-asset); --chip-text: var(--sector-asset); }
.rms-sector--motor { --chip: var(--sector-motor); --chip-text: var(--sector-motor-text); }
.rms-sector--equipment { --chip: var(--sector-equipment); --chip-text: var(--sector-equipment-text); }
.rms-sector--software { --chip: var(--sector-software); --chip-text: var(--sector-software-text); }
.rms-sector--fintech { --chip: var(--sector-fintech); --chip-text: var(--sector-fintech); }

.rms-roles {
	margin: var(--space-1) 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--fs-small);
	color: var(--slate-500);
}

.rms-roles li { padding: 0.2em 0; border-bottom: 1px solid #EEF1F5; }
.rms-roles li:last-child { border-bottom: 0; }

/* Ticked list */
.rms-ticks { margin: 0; padding: 0; list-style: none; }

.rms-ticks li {
	position: relative;
	padding: 0.35em 0 0.35em 1.9em;
}

.rms-ticks li::before {
	content: "";
	position: absolute;
	left: 0; top: 0.72em;
	width: 1.05em; height: 0.6em;
	border-left: 2.5px solid var(--blue-700);
	border-bottom: 2.5px solid var(--blue-700);
	transform: rotate(-45deg);
}

.rms-dark .rms-ticks li::before { border-color: var(--sky-400); }

/* ==========================================================================
   9. Stats band
   ========================================================================== */

.rms-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rms-stat__value {
	display: block;
	font-family: var(--font-heading);
	font-size: var(--fs-stat);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--gold-500);
	font-variant-numeric: tabular-nums;
}

.rms-stat__label {
	display: block;
	margin-top: var(--space-1);
	color: #C9D3DF;
	font-size: var(--fs-small);
	max-width: 28ch;
}

/* ==========================================================================
   10. Process steps
   ========================================================================== */

.rms-steps {
	counter-reset: step;
	display: grid;
	grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
	gap: var(--gutter);
	margin: 0; padding: 0;
	list-style: none;
}

.rms-steps li {
	counter-increment: step;
	padding-top: var(--space-3);
	border-top: 2px solid var(--line);
}

.rms-steps li::before {
	content: counter(step, decimal-leading-zero);
	display: block;
	margin-bottom: var(--space-1);
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 1.25rem;
	color: var(--plum-700);
}

.rms-steps h3 { font-size: var(--fs-h4); margin: 0 0 var(--space-1); }
.rms-steps p { margin: 0; font-size: 0.975rem; }

/* ==========================================================================
   11. Quote, FAQ, CTA band
   ========================================================================== */

.rms-quote {
	margin: 0;
	padding: var(--space-4);
	background: var(--white);
	border-radius: var(--radius);
	border: 1px solid var(--line);
}

.rms-quote p {
	font-family: var(--font-heading);
	font-size: var(--fs-h4);
	line-height: 1.45;
	color: var(--ink-900);
	margin: 0 0 var(--space-2);
}

.rms-quote footer { font-size: var(--fs-small); color: var(--slate-500); }

.rms-faq { border-top: 1px solid var(--line); }

.rms-faq details { border-bottom: 1px solid var(--line); }

.rms-faq summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-2);
	min-height: 48px;
	padding: var(--space-2) 0;
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--ink-900);
	cursor: pointer;
	list-style: none;
}

.rms-faq summary::-webkit-details-marker { display: none; }

.rms-faq summary::after {
	content: "+";
	flex: none;
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--blue-700);
	transition: transform 0.2s var(--ease);
}

.rms-faq details[open] summary::after { transform: rotate(45deg); }

.rms-faq details > div { padding: 0 0 var(--space-3); max-width: 72ch; }
.rms-faq details > div p { margin: 0 0 var(--space-1); }

.rms-cta {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) auto;
	gap: var(--space-4);
	align-items: center;
}

.rms-cta h2 { margin: 0 0 var(--space-1); }
.rms-cta p { margin: 0; }
.rms-cta .rms-btn-row { margin-top: 0; }

/* ==========================================================================
   12. Header (Themer header layout)
   ========================================================================== */

.rms-header {
	position: relative;
	background: var(--white);
}

.rms-header::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 3px;
	background: var(--ribbon);
}

.rms-header__inner {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	max-width: calc(var(--row-width) + 2 * var(--gutter)); /* content lines up with Beaver Builder rows */
	min-height: var(--header-h);
	margin: 0 auto;
	padding: 0 var(--gutter);
	transition: min-height 0.25s var(--ease);
}

.fl-theme-builder-header-scrolled .rms-header__inner { min-height: 64px; }

.rms-brand {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 0.8rem;
	text-decoration: none;
	color: var(--ink-900);
	margin-right: auto;
}

.rms-brand img {
	width: 56px;
	height: 56px;
	transition: width 0.25s var(--ease), height 0.25s var(--ease);
}

.rms-brand__name {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1.1;
	letter-spacing: -0.015em;
	white-space: nowrap;
	transition: font-size 0.25s var(--ease);
}

.fl-theme-builder-header-scrolled .rms-header .rms-brand img { width: 44px; height: 44px; }
.fl-theme-builder-header-scrolled .rms-header .rms-brand__name { font-size: 1.25rem; }

.rms-brand:hover { color: var(--ink-900); }

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

.rms-nav > ul { display: flex; align-items: center; gap: 0.25rem; }

.rms-nav > ul > li { position: relative; }

.rms-nav a,
.rms-nav button.rms-nav__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	min-height: 44px;
	padding: 0 0.8rem;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ink-900);
	text-decoration: none;
	background: none;
	border: 0;
	border-radius: var(--radius-sm);
	cursor: pointer;
}

.rms-nav a:hover,
.rms-nav button.rms-nav__toggle:hover,
.rms-nav button.rms-nav__toggle[aria-expanded="true"] { color: var(--blue-700); background: #F1F5F9; }

.rms-nav .current-menu-item > a,
.rms-nav .current-menu-ancestor > button { color: var(--blue-700); }

.rms-nav__toggle svg { width: 12px; height: 12px; transition: transform 0.2s var(--ease); }
.rms-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.rms-nav .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 100;
	min-width: 280px;
	padding: var(--space-1);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card-hover);
}

.rms-nav .sub-menu[hidden] { display: none; }

.rms-nav .sub-menu a {
	display: flex;
	width: 100%;
	padding: 0.6rem 0.8rem;
	font-weight: 500;
}

.rms-header__actions { display: flex; gap: 0.5rem; }
.rms-header__actions .rms-btn { min-height: 44px; padding: 0.7rem 1.2rem; font-size: 0.9375rem; }

.rms-menu-btn {
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px; height: 48px;
	background: none;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--ink-900);
	cursor: pointer;
}

.rms-menu-btn svg { width: 22px; height: 22px; }

/* ==========================================================================
   13. Footer (Themer footer layout)
   ========================================================================== */

.rms-footer {
	position: relative;
	background: var(--ink-900);
	color: #AEBBCB;
	font-size: 0.9375rem;
}

.rms-footer::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: var(--ribbon);
}

.rms-footer__inner {
	max-width: calc(var(--row-width) + 2 * var(--gutter));
	margin: 0 auto;
	padding: var(--space-6) var(--gutter) var(--space-4);
}

.rms-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
	gap: var(--space-4);
}

.rms-footer h2 {
	font-family: var(--font-body);
	font-size: var(--fs-eyebrow);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--white);
	margin: 0 0 var(--space-2);
}

.rms-footer ul { margin: 0; padding: 0; list-style: none; }
.rms-footer li { margin: 0 0 0.55rem; }
.rms-footer a { color: #DCE4EE; text-decoration: none; }
.rms-footer a:hover { color: var(--sky-400); text-decoration: underline; }

.rms-footer .rms-brand { color: var(--white); margin-bottom: var(--space-2); }

.rms-footer__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-2);
	margin-top: var(--space-5);
	padding-top: var(--space-3);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: var(--fs-small);
}

/* ==========================================================================
   14. Motion (reveal once, respects reduced motion)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
	.rms-js .rms-reveal {
		opacity: 0;
		transform: translateY(14px);
		transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
	}

	.rms-js .rms-reveal.is-visible {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   15. Responsive
   ========================================================================== */

@media (max-width: 1100px) {
	.rms-grid--4 { --cols: 2; }
	.rms-steps { --cols: 2; }
	.rms-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rms-footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 1200px) {
	.rms-brand img { width: 48px; height: 48px; }
	.rms-brand__name { font-size: 1.3125rem; }
	/* "Find a role" is also in the menu; drop the duplicate button so the bar stays on one line */
	.rms-header .rms-header__actions a.rms-btn--ghost { display: none; }
	.rms-nav a, .rms-nav button.rms-nav__toggle { padding: 0 0.6rem; }
}

@media (min-width: 1025px) {
	.rms-nav a, .rms-nav button.rms-nav__toggle, .rms-header__actions .rms-btn { white-space: nowrap; }
}

@media (max-width: 1024px) {
	:root { --header-h: 72px; }

	.rms-menu-btn { display: inline-flex; }

	.rms-nav {
		position: fixed;
		inset: var(--header-h) 0 0 0;
		z-index: 999;
		overflow-y: auto;
		padding: var(--space-3) var(--gutter) var(--space-5);
		background: var(--white);
	}

	.rms-nav[hidden] { display: none; }

	.rms-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
	.rms-nav > ul > li { border-bottom: 1px solid var(--line); }
	.rms-nav a, .rms-nav button.rms-nav__toggle { width: 100%; justify-content: space-between; min-height: 56px; font-size: 1.0625rem; padding: 0; }
	.rms-nav .sub-menu { position: static; box-shadow: none; border: 0; padding: 0 0 var(--space-2) var(--space-2); min-width: 0; }
	.rms-nav .sub-menu a { min-height: 44px; padding: 0; }

	.rms-header__actions { display: none; }
	.rms-nav .rms-nav__mobile-actions { display: flex; flex-direction: column; gap: var(--space-1); margin-top: var(--space-3); }
}

@media (min-width: 1025px) {
	.rms-nav[hidden] { display: block; }
	.rms-nav .rms-nav__mobile-actions { display: none; }
}

@media (max-width: 900px) {
	.rms-hero { grid-template-columns: minmax(0, 1fr); }
	.rms-hero__media { aspect-ratio: 3 / 2; }
	.rms-grid--3 { --cols: 1; }
	.rms-grid--2 { --cols: 1; }
	.rms-cta { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
	/* Beaver Builder rows switch to 16px side padding here (row_padding_*_responsive) */
	.rms-header__inner, .rms-footer__inner { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 600px) {
	:root { --gutter: 16px; }
	.rms-grid--4 { --cols: 1; }
	.rms-steps { --cols: 1; }
	.rms-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.rms-btn-row .rms-btn { width: 100%; }
	.rms-brand { gap: 0.6rem; }
	.rms-brand img, .fl-theme-builder-header-scrolled .rms-header .rms-brand img { width: 40px; height: 40px; }
	.rms-brand__name, .fl-theme-builder-header-scrolled .rms-header .rms-brand__name { font-size: 1.125rem; }
}

/* ==========================================================================
   14. Design v2 (white, Ventra-inspired), scoped under .rv
   Every v2 page wraps its HTML modules in <div class="rv">. Rows use the
   classes rv-row (white), rv-row--mist (grey band) and rv-row--hero.
   ========================================================================== */

.rv {
	--rv-ink: #0D1B2E;
	--rv-blue: #2A5BD7;
	--rv-blue-dark: #1D46B0;
	--rv-slate: #5A6578;
	--rv-line: #E3E7EE;
	--rv-tint: #EEF3FD;
	--rv-mist: #F1F3F7;
	--rv-shadow: 0 1px 2px rgba(20, 22, 27, 0.05), 0 12px 32px rgba(20, 22, 27, 0.07);
	--rv-amber-bg: #FDF0CC;
	--rv-amber: #7A5200;
	color: var(--rv-slate);
	font-family: var(--font-body);
}
.fl-row.rv-row > .fl-row-content-wrap { background: #fff; padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.fl-row.rv-row--hero > .fl-row-content-wrap { padding-top: clamp(2.5rem, 6vw, 5.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.fl-row.rv-row--mist > .fl-row-content-wrap { background: #F1F3F7; }

.rv h1, .rv h2, .rv h3, .rv legend {
	font-family: var(--font-body);
	color: var(--rv-ink);
	font-weight: 800;
	letter-spacing: -0.045em;
	text-wrap: balance;
}
.rv h1 { font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.25rem); line-height: 1; margin: 0 0 1.5rem; }
.rv h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); line-height: 1.02; margin: 0 0 1rem; }
.rv h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 0.4rem; }
.rv .rv-blue { color: var(--rv-blue); display: block; }
.rv p { margin: 0; }
.rv .rv-lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; max-width: 54ch; }

.rv .rv-flag {
	display: inline-flex; align-items: center; gap: 0.6rem;
	font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--rv-blue); margin: 0 0 1.75rem;
}
.rv .rv-flag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rv-blue); }

.rv-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.rv-hero__copy { padding-top: 0.5rem; }

/* Buttons */
.fl-builder-content .rv a.rv-btn, .rv button.rv-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 52px; padding: 0.85rem 1.5rem; border-radius: 999px; border: 1.5px solid var(--rv-ink);
	background: var(--rv-ink); color: #fff; font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}
.fl-builder-content .rv a.rv-btn:hover, .rv button.rv-btn:hover { background: #000; border-color: #000; color: #fff; }
.rv .rv-btn svg { width: 16px; height: 16px; transition: transform 0.15s; }
.rv .rv-btn:hover svg { transform: translateX(2px); }
.rv button.rv-btn--blue { background: var(--rv-blue); border-color: var(--rv-blue); width: 100%; }
.rv button.rv-btn--blue:hover { background: var(--rv-blue-dark); border-color: var(--rv-blue-dark); }
.fl-builder-content .rv a.rv-btn--quiet { background: transparent; color: var(--rv-ink); border-color: var(--rv-line); }
.fl-builder-content .rv a.rv-btn--quiet:hover { background: #fff; border-color: var(--rv-ink); color: var(--rv-ink); }
.rv a:focus-visible, .rv button:focus-visible, .rv input:focus-visible, .rv [tabindex="-1"]:focus-visible { outline: 3px solid var(--rv-blue); outline-offset: 3px; }
.rv [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.rv-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Brief card (the hero's working question flow) */
.rv-card { border: 1px solid var(--rv-line); border-radius: 24px; background: #fff; box-shadow: var(--rv-shadow); padding: clamp(1.5rem, 3vw, 2.25rem); }
.rv-card__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.rv-progress { height: 4px; border-radius: 4px; background: #EEF1F5; overflow: hidden; margin-bottom: 1.75rem; }
.rv-progress span { display: block; height: 100%; width: 0; background: var(--rv-blue); border-radius: 4px; transition: width 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rv-count { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rv-slate); }
.rv-back { background: none; border: 0; padding: 0.25rem 0; font: 600 0.9375rem var(--font-body); color: var(--rv-blue); cursor: pointer; }
.rv-back[hidden] { display: none; }
.rv-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.rv-step + .rv-step { margin-top: 2rem; }
.rv-js .rv-step + .rv-step { margin-top: 0; }
.rv-step[hidden] { display: none; }
.rv-step legend { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.1; padding: 0; margin: 0 0 0.4rem; }
.rv-hint { font-size: 1rem; margin-bottom: 1.25rem !important; }
.rv-opts { display: grid; gap: 0.75rem; }
.rv-opt {
	position: relative; display: flex; align-items: center; gap: 0.75rem;
	padding: 1rem 1.1rem 1rem 1.25rem; border: 1.5px solid var(--rv-line); border-radius: 16px; cursor: pointer;
	color: var(--rv-ink); font-weight: 500; line-height: 1.3; transition: border-color 0.15s, background-color 0.15s;
}
.rv-opt:hover { border-color: #B9C6DE; }
.rv-opt:has(input:checked) { border-color: var(--rv-blue); background: var(--rv-tint); }
.rv-opt__text { flex: 1; }
.rv-pill {
	flex: none; padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--rv-amber-bg); color: var(--rv-amber);
	font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.rv-opt input {
	appearance: none; -webkit-appearance: none; flex: none; width: 26px; height: 26px; margin: 0;
	border: 1.5px solid #C5CDD8; border-radius: 50%; background: #fff; cursor: pointer; display: grid; place-content: center;
}
.rv-opt input::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--rv-blue); transform: scale(0); transition: transform 0.15s; }
.rv-opt input:checked { border-color: var(--rv-blue); }
.rv-opt input:checked::before { transform: scale(1); }
.rv-summary { margin: 0 0 1.5rem; display: none; }
.rv-js .rv-summary { display: block; }
.rv-summary div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rv-line); }
.rv-summary dt { color: var(--rv-slate); }
.rv-summary dd { margin: 0; color: var(--rv-ink); font-weight: 600; text-align: right; }
.rv-call { margin-top: 1rem !important; font-size: 0.9375rem; }
.rv-call a { color: var(--rv-ink); font-weight: 600; }

/* Numbers */
.rv-numbers { margin: 0; padding: 0; list-style: none; }
.rv-numbers li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1rem 3rem; align-items: center; margin: 0; padding: 1.75rem 2rem; border-bottom: 1px solid var(--rv-line); }
.rv-numbers li:last-child { border-bottom: 0; }
.rv-numbers li.rv-hi { background: var(--rv-tint); border: 0; border-radius: 20px; margin-top: 0.75rem; }
.rv-num { color: var(--rv-blue); font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.rv-numbers h3 { margin: 0 0 0.25rem; }

/* Section heads */
.rv-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: end; margin-bottom: 3rem; }
.rv-head h2 { margin: 0; }

/* Market rows */
.rv-markets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.rv-markets li { margin: 0; }
.fl-builder-content .rv a.rv-market {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1.5rem; align-items: center; height: 100%;
	padding: 1.5rem 1.5rem 1.5rem 1.75rem; border: 1.5px solid var(--rv-line); border-radius: 20px; text-decoration: none; color: var(--rv-slate);
	transition: border-color 0.15s;
}
.fl-builder-content .rv a.rv-market:hover { border-color: var(--rv-blue); }
.rv-market h3 { margin: 0; }
.rv-market p { grid-column: 1; }
.rv-market__roles { grid-column: 1; font-size: 0.9375rem; color: var(--rv-ink); margin-top: 0.5rem !important; }
.rv-arrow { grid-column: 2; grid-row: 1 / span 3; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--rv-line); display: grid; place-content: center; color: var(--rv-blue); transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.rv-arrow svg { width: 18px; height: 18px; }
.rv a.rv-market:hover .rv-arrow { background: var(--rv-blue); border-color: var(--rv-blue); color: #fff; }

/* How a search runs: timeline */
.rv-how { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.rv-line, .rv-line ol { margin: 0; padding: 0; list-style: none; }
.rv-line { position: relative; }
.rv-line::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 40px; width: 2px; background: #C9D3E6; }
.rv-node { position: relative; margin: 0; padding: 0.35rem 0 1.5rem 3.25rem; }
.rv-node::before { content: ""; position: absolute; left: 4px; top: 0.45rem; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2.5px solid var(--rv-blue); box-sizing: border-box; }
.rv-node--you::before { background: var(--rv-ink); border-color: var(--rv-ink); }
.rv-node--done::before { width: 32px; height: 32px; left: 0; top: 0.2rem; background: var(--rv-blue); border-color: var(--rv-blue); }
.rv-node--done::after { content: ""; position: absolute; left: 11px; top: 0.6rem; width: 8px; height: 14px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.rv-node h3 { margin: 0 0 0.2rem; font-size: 1.125rem; }
.rv-node p { font-size: 0.9375rem; }
.rv-who { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rv-slate); margin-bottom: 0.3rem; }
.rv-group { position: relative; margin: 0.25rem 0 1.75rem; padding: 1.25rem 1.5rem 0.25rem 0; background: var(--rv-tint); border-radius: 20px; }
.rv-group > .rv-who { color: var(--rv-blue); padding-left: 3.25rem; margin-bottom: 0.85rem; }
.rv-goal h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); margin: 0 0 0.75rem; }
.rv-goal .rv-actions { margin-top: 1.5rem; }

/* List cards */
.rv-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.rv-list { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 20px; background: #fff; box-shadow: var(--rv-shadow); }
.rv-list h3 { margin: 0 0 1.25rem; }
.rv-list ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 2rem; }
.rv-list li { break-inside: avoid; position: relative; margin: 0; padding: 0.6rem 0 0.6rem 1.1rem; border-bottom: 1px solid #EEF1F5; color: var(--rv-ink); font-size: 0.9875rem; line-height: 1.35; }
.rv-list li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 6px; height: 6px; border-radius: 50%; background: var(--rv-blue); }

/* Ways to hire */
.rv-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin: 0; padding: 0; list-style: none; }
.rv-ways li { margin: 0; }
.rv-ways a { color: var(--rv-blue); font-weight: 600; }
.rv-ways .rv-pill { display: inline-block; margin-bottom: 1rem; }

/* Proof placeholders */
.rv-proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.rv-todo { border: 1.5px dashed #C5CDD8; border-radius: 20px; background: #fff; padding: 2rem; min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.35rem; }
.rv-todo strong { color: var(--rv-ink); }

/* Closing band */
.rv-close { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 2rem; align-items: end; }
.rv-close h2 { margin: 0; }

@media (max-width: 1024px) {
	.rv-hero { grid-template-columns: minmax(0, 1fr); }
	.rv-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
	.rv-how, .rv-lists { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
	.rv-markets, .rv-ways, .rv-proof, .rv-close { grid-template-columns: minmax(0, 1fr); }
	.rv-numbers li { grid-template-columns: minmax(0, 1fr); padding: 1.5rem 1.25rem; gap: 0.5rem; }
	.rv-list ul { columns: 1; }
	.rv-opt { flex-wrap: wrap; }
	.rv-opt__text { flex-basis: calc(100% - 40px); }
	.rv-opt input { order: 2; }
	.rv-pill { order: 3; }
}
/* Inner-page hero: copy plus an "at a glance" card */
.rv-page-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.rv-page-hero--solo { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.rv-glance h2 { font-size: 1.25rem; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.rv-glance dl { margin: 0; }
.rv-glance div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rv-line); }
.rv-glance div:last-child { border-bottom: 0; padding-bottom: 0; }
.rv-glance dt { color: var(--rv-slate); font-size: 0.9375rem; }
.rv-glance dd { margin: 0; color: var(--rv-ink); font-weight: 600; font-size: 0.9375rem; }
.rv-crumb { font-size: 0.9375rem; margin-bottom: 1.25rem !important; }
.rv-crumb a { color: var(--rv-slate); text-decoration: none; }
.rv-crumb a:hover { color: var(--rv-blue); text-decoration: underline; }
.rv-crumb span { color: var(--rv-ink); }

/* Split: heading left, prose right */
.rv-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start; }
.rv-split h2 { margin: 0; }
.rv-prose { max-width: 64ch; }
.rv-prose p + p, .rv-prose p + ul, .rv-prose ul + p { margin-top: 1rem; }
.rv-prose strong { color: var(--rv-ink); }

/* Tiles: white cards (shadowed on grey bands, bordered on white) */
.rv-tiles { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.rv-tile { margin: 0; padding: 1.75rem; border-radius: 20px; background: #fff; border: 1.5px solid var(--rv-line); display: flex; flex-direction: column; gap: 0.5rem; }
.fl-row.rv-row--mist .rv-tile { border-color: transparent; box-shadow: var(--rv-shadow); }
.rv-tile h3 { margin: 0; }
.rv-tile .rv-pill { align-self: flex-start; margin-bottom: 0.5rem; }
.rv-tile__link { margin-top: auto !important; padding-top: 0.75rem; }
.rv-tile__link a { color: var(--rv-blue); font-weight: 600; }

/* Checklist */
.rv-checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.rv-checks li { position: relative; margin: 0; padding-left: 2.1rem; color: var(--rv-ink); line-height: 1.45; }
.rv-checks li::before { content: ""; position: absolute; left: 0; top: 0.05rem; width: 22px; height: 22px; border-radius: 50%; background: var(--rv-tint); }
.rv-checks li::after { content: ""; position: absolute; left: 8px; top: 0.3rem; width: 5px; height: 10px; border: solid var(--rv-blue); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* FAQ */
.rv-faq { display: grid; gap: 0.75rem; max-width: 860px; }
.rv-faq details { border: 1.5px solid var(--rv-line); border-radius: 16px; background: #fff; }
.rv-faq details[open] { border-color: #B9C6DE; }
.rv-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.35rem; cursor: pointer; color: var(--rv-ink); font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.rv-faq summary::-webkit-details-marker { display: none; }
.rv-faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--rv-tint); color: var(--rv-blue); display: grid; place-content: center; font-size: 1.25rem; font-weight: 500; transition: transform 0.2s; }
.rv-faq details[open] summary::after { transform: rotate(45deg); }
.rv-faq details > div { padding: 0 1.35rem 1.25rem; max-width: 70ch; }
.rv-faq summary:focus-visible { outline: 3px solid var(--rv-blue); outline-offset: 2px; border-radius: 14px; }

/* Quotes */
.rv-quotes { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.rv-quote { margin: 0; padding: 2rem; border-radius: 20px; background: #fff; box-shadow: var(--rv-shadow); display: flex; flex-direction: column; gap: 1.25rem; }
.rv-quote::before { content: "\201C"; font: 800 3.5rem/0.6 var(--font-body); color: var(--rv-blue); height: 1.25rem; }
.rv-quote blockquote { margin: 0; padding: 0; border: 0; color: var(--rv-ink); font-size: 1.0625rem; line-height: 1.55; }
.rv-quote blockquote p + p { margin-top: 0.75rem; }
.rv-quote figcaption { margin-top: auto; font-size: 0.9375rem; }
.rv-quote figcaption strong { display: block; color: var(--rv-ink); }

/* People */
.rv-people { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.rv-person { margin: 0; border-radius: 20px; background: #fff; box-shadow: var(--rv-shadow); overflow: hidden; display: flex; flex-direction: column; }
.rv-person__photo { aspect-ratio: 1 / 1; background: var(--rv-mist); display: grid; place-content: center; color: var(--rv-slate); font-size: 0.875rem; }
.rv-person__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-person__body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.rv-person h3 { margin: 0; }
.rv-person__role { color: var(--rv-blue); font-weight: 600; font-size: 0.9375rem; }
.rv-person p { font-size: 0.9375rem; }

/* Contact */
.rv-contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.rv-contact__ways { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.rv-contact__ways li { margin: 0; padding: 1.25rem 1.5rem; border: 1.5px solid var(--rv-line); border-radius: 16px; }
.rv-contact__ways span { display: block; font-size: 0.875rem; color: var(--rv-slate); }
.rv-contact__ways a, .rv-contact__ways strong { color: var(--rv-ink); font-weight: 700; font-size: 1.125rem; text-decoration: none; }
.rv-contact__ways a:hover { color: var(--rv-blue); }

@media (max-width: 1024px) {
	.rv-page-hero, .rv-split, .rv-contact { grid-template-columns: minmax(0, 1fr); }
	.rv-tiles, .rv-people { --cols: 2; }
}
@media (max-width: 768px) {
	.rv-tiles, .rv-people, .rv-quotes { --cols: 1; }
	.rv-glance div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
}

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

/* --------------------------------------------------------------------------
   Numbers: feature panel (homepage). The headline stat as a large dark panel,
   the others as tinted cards beside it. Chosen by Colin 2026-11-06.
   -------------------------------------------------------------------------- */
.rv-stat-num { display: block; color: var(--rv-blue); font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.rv-stat-list { margin: 0; padding: 0; list-style: none; }
.rv-stat-list li { margin: 0; }
.rv-stat-list h3 { margin: 0 0 0.35rem; }
.rv-stat-list p { font-size: 1rem; line-height: 1.55; }
.rv-bento { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.rv-bento li { border-radius: 24px; padding: clamp(1.75rem, 3vw, 2.5rem); background: var(--rv-tint); }
.rv-bento .rv-stat-num { font-size: clamp(2.75rem, 2rem + 2vw, 3.75rem); margin-bottom: 1rem; }
.rv-bento li.rv-feature { grid-row: 1 / span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; background: var(--rv-ink); color: #C8D0DC; position: relative; overflow: hidden; }
.rv-bento li.rv-feature::before { content: ""; position: absolute; right: -90px; top: -90px; width: 320px; height: 320px; border-radius: 50%; border: 48px solid rgba(42, 91, 215, 0.35); }
.rv-bento li.rv-feature .rv-stat-num { color: #fff; font-size: clamp(4rem, 2.5rem + 5vw, 7rem); margin-bottom: 1.5rem; position: relative; }
.rv-bento li.rv-feature h3 { color: #fff; font-size: 1.5rem; position: relative; }
.rv-bento li.rv-feature p { font-size: 1.0625rem; max-width: 40ch; position: relative; }

@media (max-width: 768px) {
	.rv-bento { grid-template-columns: minmax(0, 1fr); }
	.rv-bento li.rv-feature { grid-row: auto; min-height: 300px; }
}

/* Feature panel motion: entry (JS adds .rv-anim, then .is-in when scrolled into view), ring spin, hover lift */
.rv-bento li.rv-feature::before { border-left-color: rgba(42, 91, 215, 0.1); border-bottom-color: rgba(42, 91, 215, 0.2); }
@media (prefers-reduced-motion: no-preference) {
	.rv-bento li { transition: translate 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s; }
	.rv-bento li:hover { translate: 0 -4px; box-shadow: var(--rv-shadow); }
	.rv-bento.rv-anim li { opacity: 0; transform: translateY(32px) scale(0.98); }
	.rv-bento.rv-anim.is-in li { opacity: 1; transform: none; transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), translate 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s; }
	.rv-bento.rv-anim.is-in li:nth-child(2) { transition-delay: 0.15s, 0.15s, 0s, 0s; }
	.rv-bento.rv-anim.is-in li:nth-child(3) { transition-delay: 0.3s, 0.3s, 0s, 0s; }
	.rv-bento.rv-anim li.rv-feature::before { opacity: 0; scale: 0.5; transition: opacity 1s ease-out 0.2s, scale 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s; }
	.rv-bento.rv-anim.is-in li.rv-feature::before { opacity: 1; scale: 1; animation: rv-spin 30s linear infinite; }
}
@keyframes rv-spin { to { rotate: 360deg; } }

/* RMS footer wordmark stack (2026-11-13): stop 'Resilient Management' overflowing into the first menu column; stack the two words beside the star. Footer only. */
.rms-footer .rms-brand__name { white-space: normal; width: min-content; line-height: 1.05; }


/* RMS blog index (2026-11-13): hero, topic chips, card grid, sticky sidebar. Used by inc/blog-index.php */
.rb { background: var(--white); }
.rb-hero { background: var(--paper); padding: clamp(2rem, 4.5vw, 3.5rem) 0 clamp(1.25rem, 2.5vw, 2rem); border-bottom: 4px solid transparent; border-image: var(--ribbon) 1; }
.rb-hero__inner, .rb-wrap { width: min(var(--content-width), 100% - 2 * var(--gutter)); margin-inline: auto; }
.rb-eyebrow { margin: 0 0 var(--space-2); font: 700 var(--fs-eyebrow) / 1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-700); }
.rb-hero h1 { margin: 0 0 var(--space-2); font: 800 clamp(2.4rem, 1.6rem + 3vw, 3.6rem) / 1.05 var(--font-heading); letter-spacing: -0.02em; color: var(--ink-900); }
.rb-lede { margin: 0 0 var(--space-3); max-width: 52rem; font: 400 var(--fs-lead) / 1.5 var(--font-body); color: var(--slate-700); }
.rb-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.rb-chips a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink-900); font: 600 0.9rem / 1 var(--font-body); text-decoration: none; transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); }
.rb-chips a span { opacity: 0.55; font-weight: 500; }
.rb-chips a:hover, .rb-chips a.is-active { background: var(--ink-900); border-color: var(--ink-900); color: var(--white); }

.rb-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 4vw, 4rem); align-items: start; padding-block: var(--space-5) var(--section-pad); }
.rb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.rb-card { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.rb-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.rb-card--feature { grid-column: 1 / -1; flex-direction: row; }
.rb-card--feature .rb-card__media { flex: 0 0 52%; aspect-ratio: auto; min-height: 300px; }
.rb-card__media { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-900); }
.rb-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.rb-card:hover .rb-card__media img { transform: scale(1.04); }
.rb-card__ph { position: absolute; inset: 0; background: linear-gradient(135deg, var(--ink-900), var(--ink-800)); }
.rb-card__ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--ribbon); }
.rb-card--noimg { background: var(--paper); }
.rb-card--noimg::before { content: ""; display: block; height: 5px; background: var(--ribbon); }
.rb-card--noimg h2 { font-size: 1.3rem; }
.rb-card__body { display: flex; flex: 1; flex-direction: column; gap: 0.65rem; padding: 1.4rem 1.5rem 1.6rem; }
.rb-card--feature .rb-card__body { justify-content: center; padding: clamp(1.5rem, 3vw, 2.5rem); }
.rb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font: 600 0.75rem / 1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-500); }
.rb-tag { color: var(--blue-700); text-decoration: none; }
.rb-card h2 { margin: 0; font: 800 1.2rem / 1.3 var(--font-heading); letter-spacing: -0.01em; color: var(--ink-900); }
.rb-card--feature h2 { font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem); line-height: 1.2; }
.rb-card h2 a { color: inherit; text-decoration: none; }
.rb-card h2 a:hover { color: var(--blue-700); }
.rb-card p { margin: 0; font: 400 0.95rem / 1.6 var(--font-body); color: var(--slate-700); }
.rb-more { margin-top: auto; padding-top: 0.4rem; font: 700 0.92rem / 1 var(--font-body); color: var(--blue-700); text-decoration: none; }
.rb-more:hover { color: var(--blue-800); }
.rb-pager { margin-top: var(--space-5); }
.rb-pager ul { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.rb-pager a, .rb-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 0.9rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink-900); font: 600 0.92rem / 1 var(--font-body); text-decoration: none; }
.rb-pager a:hover { border-color: var(--ink-900); }
.rb-pager .current { background: var(--ink-900); border-color: var(--ink-900); color: var(--white); }
.rb-pager .dots { border-color: transparent; background: transparent; }
.rb-empty { font: 400 var(--fs-body) / 1.6 var(--font-body); color: var(--slate-700); }

.rb-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: flex; flex-direction: column; gap: var(--space-3); }
.rb-widget { padding: 1.4rem 1.5rem; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); }
.rb-widget h2 { margin: 0 0 1rem; font: 800 0.8rem / 1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-500); }
.rb-search { display: flex; gap: 0.5rem; }
.rb-search .rms-btn { flex: none; min-height: 48px; padding-inline: 1.1rem; }
.rb-search input[type="search"] { flex: 1; min-width: 0; width: 100%; min-height: 48px; padding: 0 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: 400 1rem / 1 var(--font-body); color: var(--ink-900); }
.rb-search input[type="search"]:focus { outline: 2px solid var(--blue-700); outline-offset: 1px; }
.rb-list { margin: 0; padding: 0; list-style: none; }
.rb-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font: 500 0.95rem / 1.3 var(--font-body); color: var(--slate-500); }
.rb-list li:last-child { border-bottom: 0; }
.rb-list a { color: var(--ink-900); text-decoration: none; font-weight: 600; }
.rb-list a:hover { color: var(--blue-700); }
.rb-recent { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rb-recent li { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.rb-recent li:last-child { border-bottom: 0; padding-bottom: 0; }
.rb-recent a { font: 700 0.95rem / 1.35 var(--font-heading); color: var(--ink-900); text-decoration: none; }
.rb-recent a:hover { color: var(--blue-700); }
.rb-recent time { font: 500 0.78rem / 1 var(--font-body); color: var(--slate-500); }
.rb-cta { background: var(--ink-900); border-color: var(--ink-900); color: var(--white); }
.rb-cta h2 { color: var(--sky-400); }
.rb-cta p { margin: 0 0 1.1rem; font: 400 0.98rem / 1.55 var(--font-body); color: #C9D3DF; }
.rb-cta .rms-btn { width: 100%; }
.rb-cta__link { display: inline-block; margin-top: 0.9rem; font: 600 0.92rem / 1 var(--font-body); color: var(--white); text-decoration: none; }
.rb-cta__link:hover { text-decoration: underline; }

@media (max-width: 1024px) {
	.rb-wrap { grid-template-columns: minmax(0, 1fr); }
	.rb-aside { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	.rb-grid, .rb-aside { grid-template-columns: minmax(0, 1fr); }
	.rb-card--feature { flex-direction: column; }
	.rb-card--feature .rb-card__media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
	.rb-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.4rem; -webkit-overflow-scrolling: touch; }
	.rb-chips a { white-space: nowrap; }
}
