/* ==========================================================================
   Rural Media Network — landing page
   Layout: Figma "RMN Landing" → v1 → homepage (1440 frame, 80px margins).
   Copy:   Landing Page Copy V1 (Oct 2026). Brand: RMN Visual ID V3.
   ========================================================================== */

:root {
	/* Figma palette */
	--ink: #121110;
	--cell: #191817;
	--cell-2: #1e1d1b;
	--light: #fafafa;
	--white: #ffffff;
	--lime: #ace8a0;
	--lime-deep: #8fd27f;
	--blue: #3951d0;
	--orange: #f49460;
	--grey: #6b6b6b;
	--grey-2: #959595;
	--grey-3: #c4c4c4;
	--line: #e7e7e7;
	--line-dark: rgba(255, 255, 255, 0.18);

	/* Brand (Visual ID) */
	--olive: #8ca53b;
	--green: #424822;

	/* Type */
	--font-serif: 'Serrif', 'Iowan Old Style', Georgia, serif;
	--font-display: 'RMN Condensed', 'Times New Roman', Georgia, serif;
	--font-sans: 'RMN Sans', 'Helvetica Neue', Arial, system-ui, sans-serif;

	/* Motion */
	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

	/* Layout */
	--wrap: 1280px;
	--gutter: clamp(20px, 5.56vw, 80px);
	--section-y: clamp(88px, 9vw, 136px);
	--header-h: 96px;
	--focus: var(--blue);
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.55;
	letter-spacing: -0.005em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ol, ul { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
::selection { background: var(--lime); color: var(--ink); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.dark, .hero, .site-header { --focus: var(--lime); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -100px; z-index: 100;
	padding: 10px 16px; border-radius: 999px;
	background: var(--lime); color: var(--ink); font-weight: 500;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Type ---------- */
.h-xxl, .h-xl, .h-lg {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: -0.025em;
	text-wrap: balance;
}
.h-xxl { font-size: clamp(3rem, 1.6rem + 4.6vw, 5.5rem); line-height: 1.02; }
.h-xl { font-size: clamp(2.6rem, 1.75rem + 2.9vw, 4.25rem); line-height: 1.04; }
.h-lg { font-size: clamp(2.4rem, 1.7rem + 2.3vw, 3.75rem); line-height: 1.06; }

.label {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 24px;
	font-size: 0.8125rem;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--grey);
}
.label::before {
	content: "";
	width: 6px;
	height: 6px;
	flex: none;
	background: var(--sq, var(--lime));
}
.label--orange { --sq: var(--orange); }
.label--blue { --sq: var(--blue); }
.label--lime { --sq: var(--lime); }
.dark .label, .hero .label { color: rgba(255, 255, 255, 0.62); }
.dark .label--lime { color: var(--lime); }

/* ---------- Buttons ---------- */
.pill {
	--bg: var(--lime);
	--fg: var(--ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 48px;
	padding: 0 28px 0 32px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.pill:active { transform: scale(0.97); }
.pill .rmn-icon { width: 20px; height: 20px; flex: none; transition: transform 200ms var(--ease-out); }
.pill--sm { min-height: 48px; padding: 0 28px; }
.pill--lg { min-height: 56px; padding: 0 30px 0 34px; }
.pill--blue { --bg: var(--blue); --fg: var(--white); }
.pill--dark { --bg: var(--ink); --fg: var(--white); }
.pill--outline-light { --bg: transparent; --fg: var(--white); border-color: rgba(255, 255, 255, 0.3); }

.text-link {
	font-size: 1rem;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
}
.text-link--light { color: var(--white); }

@media (hover: hover) and (pointer: fine) {
	.pill--lime:hover { --bg: #c0efb6; }
	.pill--blue:hover { --bg: #2f45bd; }
	.pill--dark:hover { --bg: #2a2826; }
	.pill--outline-light:hover { border-color: rgba(255, 255, 255, 0.75); }
	.pill:hover .rmn-icon--arrow { transform: translateX(3px); }
	.text-link:hover { text-decoration-thickness: 2px; }
}

/* Hand-drawn lime underline from the Figma hero */
.swoosh { position: absolute; overflow: visible; pointer-events: none; }
.swoosh path {
	fill: none;
	stroke: var(--lime);
	stroke-width: 2.2;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
}

/* ---------- Header ---------- */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	color: var(--white);
	transition: background-color 240ms ease, box-shadow 240ms ease;
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: var(--header-h);
	transition: height 240ms var(--ease-out);
}
.site-header.is-scrolled,
.site-header.is-open {
	background: rgba(18, 17, 16, 0.82);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.site-header.is-scrolled .site-header__inner { height: 72px; }
.site-header.is-open { background: var(--ink); }

.site-header__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.site-header__mark { width: 40px; height: 40px; }
.site-header__name {
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 200ms ease, transform 200ms var(--ease-out);
}
.site-header.is-scrolled .site-header__name { opacity: 1; transform: none; }

.site-nav__list { display: flex; gap: 36px; list-style: none; }
.site-nav__link {
	position: relative;
	display: block;
	padding: 6px 0;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	transition: color 200ms ease;
}
.site-nav__link::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 1px;
	background: var(--lime);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 240ms var(--ease-out);
}
.site-nav__link.is-active { color: var(--white); }
.site-nav__link.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
	.site-nav__link:hover { color: var(--white); }
}

.site-header__actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
	display: none;
	position: relative;
	width: 44px; height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before {
	position: absolute;
	left: 13px; right: 13px;
	height: 1.5px;
	background: currentColor;
	transition: transform 200ms var(--ease-out);
}
.nav-toggle__bars { top: 18px; }
.nav-toggle__bars::before { content: ""; left: 0; right: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(-6px) rotate(-90deg); }

.mobile-nav { display: none; }

@media (max-width: 1023px) {
	:root { --header-h: 72px; }
	.site-nav { display: none; }
	.nav-toggle { display: block; }
	.site-header__mark { width: 36px; height: 36px; }
	.site-header__name { display: none; }
	.site-header .pill--sm { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }

	.mobile-nav {
		display: block;
		position: absolute;
		top: 100%; left: 0; right: 0;
		padding: 4px 0 28px;
		background: var(--ink);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px);
		transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
	}
	.mobile-nav[hidden] { display: none; }
	.site-header.is-open .mobile-nav {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s;
	}
	.mobile-nav__list { list-style: none; }
	.mobile-nav__list a {
		display: block;
		padding: 14px 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		font-family: var(--font-display);
		font-size: 2rem;
		line-height: 1.15;
		letter-spacing: -0.02em;
		text-decoration: none;
	}
}

/* ---------- Sections ---------- */
.section {
	position: relative;
	isolation: isolate;
	padding-block: var(--section-y);
}
.dark { background: var(--ink); color: var(--white); }

.center-head { max-width: 760px; margin: 0 auto clamp(56px, 6vw, 88px); text-align: center; }
.center-head .label { justify-content: center; }
.center-head__intro { max-width: 34em; margin: 24px auto 0; color: var(--grey); font-size: 1.0625rem; }
.center-head--dark .center-head__intro { color: var(--grey-2); }

/* Faint stepped squares (Figma background decoration) */
.steps-decor {
	position: absolute;
	z-index: -1;
	display: grid;
	grid-template-columns: repeat(3, var(--s, 112px));
	grid-template-rows: repeat(3, var(--s, 112px));
	pointer-events: none;
}
.steps-decor i { background: var(--decor, #f5f5f5); }
.steps-decor i:nth-child(1) { grid-area: 1 / 1; }
.steps-decor i:nth-child(2) { grid-area: 2 / 2; }
.steps-decor i:nth-child(3) { grid-area: 3 / 3; }
.dark .steps-decor { --decor: var(--cell); }

/* ---------- 1 · Hero ---------- */
/*
 * Desktop: everything (headline, both paragraphs, CTAs) is sized against the viewport height so the
 * whole hero fits above the fold on any laptop, admin bar included. The photo grid is sized the same
 * way and always ends well above the next section.
 */
.hero {
	--avh: calc(100svh - var(--wp-admin--admin-bar--height, 0px));
	--ch: min(12.92vw, 19.5svh, 212px);
	--cw: calc(var(--ch) * 0.6237);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: max(var(--avh), 520px);
	padding: calc(var(--header-h) + 2svh) 0 clamp(28px, 6svh, 72px);
	background: var(--ink);
	color: var(--white);
}
.hero > .wrap { width: 100%; }
.hero__bg { display: none; }

.hero__checker {
	position: absolute;
	top: calc(var(--header-h) - 6px - var(--ch));
	right: 0;
	z-index: -1;
	display: grid;
	grid-template-columns: repeat(6, var(--cw));
	grid-template-rows: repeat(5, var(--ch));
}
.hero__cell { position: relative; overflow: hidden; }
.hero__cell--l { background: var(--cell); }
.hero__cell img { width: 100%; height: 100%; object-fit: cover; }

.hero__inner { position: relative; }
/* Text never runs under the photo columns. */
/* Text stops 32px before the first photo column, measured from where the text actually starts. */
.hero__inner > * {
	max-width: min(
		var(--mw, 100%),
		calc(100vw - var(--cw) * 5 - 32px - var(--gutter) - max(0px, (100vw - var(--wrap) - var(--gutter) * 2) / 2))
	);
}
.hero__label { margin-bottom: clamp(12px, 2.6svh, 24px); }
.hero__title {
	--mw: 9.4em;
	font-family: var(--font-serif);
	font-weight: 300;
	font-size: clamp(2.6rem, min(6.67vw, 10svh), 6rem);
	line-height: 1;
	letter-spacing: -0.02em;
}
.hero__line { position: relative; display: block; width: fit-content; }
.hero__title em { font-style: normal; color: var(--lime); }
.hero__rural { position: relative; display: inline-block; }
.hero__swoosh { left: -8%; top: 0.9em; width: 120%; height: 0.26em; }

.hero__sub {
	--mw: 34em;
	margin: clamp(14px, 3svh, 32px) 0 0;
	font-family: var(--font-serif);
	font-weight: 300;
	font-size: clamp(1rem, min(1.6vw, 2.7svh), 1.45rem);
	line-height: 1.32;
	letter-spacing: -0.01em;
	color: rgba(255, 255, 255, 0.92);
}
.hero__text {
	--mw: 38em;
	margin: clamp(8px, 1.6svh, 16px) 0 0;
	font-size: clamp(0.875rem, 1.85svh, 1rem);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.72);
}
.hero__ctas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 44px;
	margin-top: clamp(18px, 4svh, 48px);
}

@media (min-width: 900px) and (max-height: 720px) {
	:root { --header-h: 76px; }
}

/* Mobile: the Figma phone frame — full-bleed dark wheat photo, text anchored to the bottom. */
@media (max-width: 899px) {
	.hero {
		display: flex;
		align-items: flex-end;
		min-height: max(var(--avh), 600px);
		padding: calc(var(--header-h) + 40px) 0 48px;
		background: #000;
	}
	.hero__checker { display: none; }
	.hero__bg { display: block; position: absolute; inset: 0; z-index: -2; }
	.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
	.hero__bg::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.66) 45%, rgba(0, 0, 0, 0.8) 100%);
	}
	.hero__inner > * { max-width: 100%; }
	.hero__label { margin-bottom: 16px; color: rgba(255, 255, 255, 0.75); }
	.hero__title { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 3.6rem); line-height: 1.02; }
	.hero__sub { margin-top: 20px; font-size: 1.125rem; line-height: 1.38; }
	.hero__text { margin-top: 14px; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.82); }
	.hero__ctas { margin-top: 28px; gap: 14px 24px; }
	.hero__ctas .pill { min-height: 50px; }
}

/* Keep the fixed header below the WordPress admin bar when logged in. */
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
	.admin-bar .site-header:not(.is-scrolled) { top: var(--wp-admin--admin-bar--height, 46px); }
}

/* ---------- 2b · Reason ---------- */
.reason { background: var(--white); overflow: hidden; }
.reason__grid { display: grid; gap: 32px; }
.reason__head .h-xl { max-width: 6.5em; }
.reason__photo { overflow: hidden; border-radius: 2px; aspect-ratio: 414 / 462; }
.reason__photo img { width: 100%; height: 100%; object-fit: cover; }
.reason__side { color: var(--grey); max-width: 22em; }
.reason__side .rmn-icon { width: 22px; height: 22px; margin-bottom: 14px; color: var(--grey); }
.reason__under { max-width: 26em; font-size: 1.0625rem; color: var(--ink); }
.reason__decor { left: 0; bottom: 0; --s: clamp(56px, 7.8vw, 112px); }

@media (min-width: 900px) {
	.reason__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: 20px;
		row-gap: 32px;
		align-items: start;
	}
	.reason__head { grid-column: 1 / span 4; grid-row: 1; }
	.reason__photo { grid-column: 5 / span 4; grid-row: 1; }
	.reason__side { grid-column: 10 / span 3; grid-row: 1; padding-top: 56px; }
	.reason__under { grid-column: 5 / span 4; grid-row: 2; }
}

/* ---------- 2c · Collage ---------- */
.collage-section { padding-top: clamp(24px, 3vw, 48px); overflow: hidden; }
.benefits { padding-top: clamp(64px, 6vw, 96px); }
.reason + .collage-section { margin-top: 0; }
.collage-section__title { max-width: 6.5em; }
.collage {
	position: relative;
	width: min(100% - var(--gutter) * 2, var(--wrap));
	margin: clamp(-120px, -7vw, -40px) auto 0;
	aspect-ratio: 1280 / 470;
}
.collage__card {
	position: absolute;
	left: calc(var(--i) * 12.15%);
	top: calc((6 - var(--i)) * 5.6%);
	width: 18.6%;
	aspect-ratio: 238 / 330;
	overflow: hidden;
	border-radius: 4px;
	box-shadow: 0 18px 40px -22px rgba(18, 17, 16, 0.45);
	transform: rotate(var(--rot, -2deg));
}
.collage__card img { width: 100%; height: 100%; object-fit: cover; }
.collage__card:nth-child(1) { --rot: -2.5deg; }
.collage__card:nth-child(2) { --rot: -1.5deg; }
.collage__card:nth-child(3) { --rot: -2deg; }
.collage__card:nth-child(4) { --rot: -1deg; }
.collage__card:nth-child(5) { --rot: -2.5deg; }
.collage__card:nth-child(6) { --rot: -1.5deg; }
.collage__card:nth-child(7) { --rot: -3deg; }

.collage-section__note {
	max-width: 25em;
	margin: clamp(32px, 4vw, 56px) 0 0 auto;
	font-size: 1.0625rem;
	color: var(--ink);
}
@media (min-width: 900px) {
	.collage-section__note { margin-right: 1.2%; }
}
@media (max-width: 899px) {
	.collage { margin-top: 32px; aspect-ratio: 1 / 0.62; width: calc(100% - 24px); }
	.collage__card { width: 27%; left: calc(var(--i) * 12.1%); top: calc((6 - var(--i)) * 6.2%); }
}

/* ---------- 3 · Benefits ---------- */
.benefits { background: var(--white); }
.benefit-grid { display: grid; gap: 40px 20px; list-style: none; }
@media (min-width: 900px) { .benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.benefit { display: flex; flex-direction: column; }
.benefit > p { color: var(--grey); font-size: 0.9375rem; max-width: 30em; }
.benefit__title {
	margin: 28px 0 12px;
	font-family: var(--font-display);
	font-size: clamp(1.6rem, 1.4rem + 0.6vw, 1.85rem);
	line-height: 1.1;
	letter-spacing: -0.015em;
}

.panel {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 414 / 440;
	overflow: hidden;
	border-radius: 4px;
	background-size: cover;
	background-position: center;
}
.panel--green { background-color: #1d2410; background-image: url("../img/panel-green.webp"); }
.panel--blue { background-color: #0b2a8c; background-image: url("../img/panel-blue.webp"); }
.panel--grey { background-color: #2b2b2b; background-image: url("../img/panel-grey.webp"); }

.widget {
	width: 74%;
	padding: 18px 20px 20px;
	border-radius: 10px;
	background: var(--white);
	color: var(--ink);
	box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
	font-size: 0.875rem;
}
.widget__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-weight: 500; }
.widget__dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.widget__dot .rmn-icon { width: 16px; height: 16px; }
.widget__dot--lime { background: var(--lime); color: var(--green); }
.widget__dot--blue { background: var(--blue); color: var(--white); }
.widget__chip { padding: 4px 10px; border-radius: 999px; background: #eef1fd; color: var(--blue); font-size: 0.75rem; font-weight: 500; }

.bars { display: grid; gap: 12px; list-style: none; }
.bars li { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; font-size: 0.6875rem; color: var(--grey-2); }
.bars i {
	display: block;
	width: var(--w);
	height: 7px;
	border-radius: 4px;
	background: linear-gradient(90deg, #fbd7a5, #ec7a2c);
	transform-origin: left;
}

.stack { display: grid; gap: 10px; width: 74%; }
.widget--row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 14px 16px; font-weight: 500; }
.toggle { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--lime); flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); }

.checks { display: grid; gap: 10px; list-style: none; }
.checks li { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.checks li::before {
	content: "";
	width: 16px; height: 16px; flex: none; border-radius: 50%;
	background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%23424822' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.closing {
	position: relative;
	max-width: 17em;
	margin: clamp(72px, 7.5vw, 112px) auto 0;
	font-family: var(--font-display);
	font-size: clamp(2.1rem, 1.5rem + 2.1vw, 3.5rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
	text-align: center;
	text-wrap: balance;
}
.swoosh-word { position: relative; display: inline-block; white-space: nowrap; }
.swoosh-word .swoosh { left: -4%; bottom: -0.16em; width: 108%; height: 0.3em; }
.swoosh-word .swoosh path { stroke: var(--lime-deep); stroke-width: 2.6; }

/* ---------- 4 · How it works ---------- */
.steps { background: var(--white); }
.steps__head { display: grid; gap: 28px; margin-bottom: clamp(48px, 5.5vw, 80px); }
.steps__head .h-xxl { max-width: 7.5em; }
.steps__aside p { max-width: 27em; margin-bottom: 32px; color: var(--grey); font-size: 1.0625rem; line-height: 1.6; }
@media (min-width: 900px) {
	.steps__head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; align-items: center; }
	.steps__head > :first-child { grid-column: 1 / span 6; }
	.steps__aside { grid-column: 8 / span 5; padding-top: 40px; }
}

.step-grid { display: grid; gap: 20px; list-style: none; }
@media (min-width: 640px) { .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .step-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.step {
	display: flex;
	flex-direction: column;
	min-height: clamp(300px, 25vw, 360px);
	padding: 28px 24px;
	border-radius: 6px;
	background: var(--light);
}
.step__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 40px; }
.mini-tile svg { width: 40px; height: 40px; }
.step__num {
	font-family: var(--font-display);
	font-size: 2.25rem;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--grey-3);
	font-variant-numeric: tabular-nums;
}
.step__title {
	margin-top: auto;
	margin-bottom: 14px;
	font-family: var(--font-display);
	font-size: clamp(1.6rem, 1.4rem + 0.5vw, 1.8rem);
	line-height: 1.1;
	letter-spacing: -0.015em;
	text-wrap: balance;
}
.step p { color: var(--grey); font-size: 0.9375rem; line-height: 1.5; }

@media (max-width: 639px) {
	.step { min-height: 0; padding: 24px 22px; }
	.step__top { margin-bottom: 28px; }
}

/* ---------- 5 · Who ---------- */
.who { background: var(--white); }
.who__grid { display: grid; gap: 32px; }
.who__intro { color: var(--grey); max-width: 22em; }
.who__intro .rmn-icon { width: 22px; height: 22px; margin-bottom: 14px; }
.who__label {
	margin: clamp(32px, 4vw, 56px) 0 20px;
	font-family: var(--font-sans);
	font-size: 0.8125rem;
	text-transform: uppercase;
	color: var(--grey);
}
@media (min-width: 900px) {
	.who__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; }
	.who__side { grid-column: 1 / span 3; }
	.who__intro { margin-top: 160px; }
	.who__main { grid-column: 5 / span 8; }
}

.tiles { display: grid; gap: 20px; list-style: none; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; } }
.tile {
	position: relative;
	overflow: hidden;
	aspect-ratio: 414 / 310;
	border-radius: 4px;
	background: #222;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile::after {
	content: "";
	position: absolute;
	inset: 40% 0 0;
	background: linear-gradient(180deg, rgba(18, 17, 16, 0) 0%, rgba(18, 17, 16, 0.78) 100%);
}
.tile__label {
	position: absolute;
	left: 28px; right: 28px; bottom: 26px;
	z-index: 1;
	font-family: var(--font-display);
	font-size: clamp(1.55rem, 1.35rem + 0.55vw, 1.85rem);
	line-height: 1.08;
	letter-spacing: -0.015em;
	color: var(--white);
	text-wrap: balance;
}
.who__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	margin-top: 44px;
}
.who__foot p { max-width: 28em; margin: 0; color: var(--grey); }

/* ---------- 6 · Orbit (team) ---------- */
.orbit-section { overflow: hidden; padding-bottom: clamp(96px, 10vw, 144px); }
.orbit-section .h-xl { color: var(--white); }
.orbit-section__decor { right: 0; top: 96px; --s: clamp(40px, 4.2vw, 60px); transform: scaleX(-1); }

.orbit {
	position: relative;
	width: min(100% - var(--gutter) * 2, 1100px);
	margin: 0 auto;
	aspect-ratio: 1100 / 560;
	overflow: hidden;
}
.orbit__ring,
.orbit__sun {
	position: absolute;
	left: 50%;
	bottom: 0;
	aspect-ratio: 1;
	border-radius: 50%;
	transform: translate(-50%, 50%);
}
.orbit__ring { border: 1px dashed rgba(255, 255, 255, 0.16); }
.orbit__ring--1 { width: 100%; }
.orbit__ring--2 { width: 80%; }
.orbit__ring--3 { width: 61%; }
.orbit__sun {
	width: 41.3%;
	background: radial-gradient(circle at 28% 22%, #7d9a33 0%, #56661f 28%, #2a2f15 58%, #1c1c18 78%);
	box-shadow: 0 0 120px rgba(140, 165, 59, 0.18);
}
.orbit__mark {
	position: absolute;
	left: 50%;
	top: 23%;
	width: 17%;
	height: auto;
	transform: translateX(-50%);
}
.orbit__item {
	position: absolute;
	overflow: hidden;
	border-radius: 2px;
	box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
}
.orbit__item img { width: 100%; height: 100%; object-fit: cover; }
.orbit__item--a { left: 6.5%; top: 26%; width: 12.5%; aspect-ratio: 16 / 10; }
.orbit__item--d { left: 13%; top: 16%; width: 9%; aspect-ratio: 3 / 4; z-index: 1; }
.orbit__item--b { left: 69%; top: 6%; width: 11%; aspect-ratio: 3 / 4; }
.orbit__item--c { left: 76.5%; top: 46%; width: 8%; aspect-ratio: 1; }
.orbit__bubble {
	position: absolute;
	display: grid;
	place-items: center;
	border-radius: 50%;
	font-family: var(--font-sans);
	font-weight: 500;
	color: var(--white);
}
.orbit__bubble .rmn-icon { width: 45%; height: 45%; }
.orbit__bubble--blue { left: 31.6%; top: 7%; width: 2.9%; aspect-ratio: 1; background: var(--blue); font-size: clamp(0.65rem, 1.2vw, 1rem); }
.orbit__bubble--olive { left: 11.5%; top: 63%; width: 4.5%; aspect-ratio: 1; background: var(--olive); color: var(--green); font-size: clamp(0.8rem, 1.6vw, 1.3rem); }
.orbit__bubble--dark { left: 63%; top: 46%; width: 4.5%; aspect-ratio: 1; background: #3a4120; color: var(--lime); }

.team__row { display: grid; gap: 32px; margin-top: clamp(56px, 6vw, 88px); }
.team__kicker {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--white);
	text-wrap: balance;
}
.team__body { color: var(--grey-2); font-size: 1.0625rem; }
@media (min-width: 900px) {
	.team__row { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; }
	.team__kicker { grid-column: 1 / span 5; }
	.team__body { grid-column: 8 / span 5; }
}

.plm {
	display: inline-flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 32px;
	padding: 18px 22px;
	border: 1px solid var(--line-dark);
	border-radius: 10px;
}
.plm__label { font-size: 0.75rem; text-transform: uppercase; color: var(--grey-2); }
.plm__wordmark { font-family: var(--font-serif); font-weight: 300; font-size: 1.55rem; line-height: 1; letter-spacing: -0.01em; color: var(--white); }
.plm__colon { color: var(--lime); }
.plm__media { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; vertical-align: 0.3em; margin-left: 0.3em; color: var(--grey-2); }
.plm__logo { max-height: 40px; width: auto; }
.plm__brand { display: inline-flex; align-items: center; gap: 14px; }
.plm__mark { width: auto; height: 30px; }
.plm__wordmark-img { width: auto; height: 22px; }
.plm__link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.plm__link .rmn-icon { width: 18px; height: 18px; color: var(--lime); transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
	.plm__link:hover .rmn-icon { transform: translate(2px, -2px); }
}

/* ---------- 7 · Contact ---------- */
.contact { border-top: 1px solid rgba(255, 255, 255, 0.06); overflow: hidden; }
.contact__decor { --s: clamp(44px, 4.9vw, 70px); }
.contact__decor--tr { right: 0; top: 0; transform: scale(-1, 1); }
.contact__decor--bl { left: 80px; bottom: 0; transform: scale(1, -1) translateY(-0%); }

.contact__grid { display: grid; gap: 40px; }
.contact__intro { margin-top: 32px; max-width: 17em; font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.5; color: var(--grey-2); }
.contact .h-xl { color: var(--white); margin-bottom: clamp(40px, 4.4vw, 64px); }
@media (min-width: 900px) {
	.contact__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; }
	.contact__side { grid-column: 1 / span 3; padding-top: 20px; }
	.contact__intro { margin-top: 80px; }
	.contact__main { grid-column: 5 / span 8; }
}

.fields {
	display: grid;
	gap: 36px 24px;
	margin: 0 0 48px;
}
@media (min-width: 600px) { .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field dt { margin-bottom: 8px; font-size: 0.8125rem; color: var(--grey-2); }
.field dt::after { content: " *"; opacity: 0; }
.field dd {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 40px;
	margin: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.22);
	font-size: 1.1875rem;
	color: var(--white);
	overflow-wrap: anywhere;
}
.field dd a { text-decoration: none; }
.field--hi dd { color: var(--lime); border-color: var(--lime); }
.field__photo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
	.field dd a:hover { text-decoration: underline; }
}

.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__fine { margin-top: 24px; font-size: 0.8125rem; color: var(--grey-2); }
.contact__fine a { color: var(--white); }
.contact__setup { margin-top: 20px; padding: 12px 16px; border-radius: 8px; background: #fff3c4; color: var(--ink); font-size: 0.875rem; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: clamp(40px, 5vw, 72px) 0; background: var(--white); }
.marquee__track { display: flex; width: max-content; }
.marquee__group { display: flex; align-items: center; gap: clamp(28px, 3vw, 44px); padding-right: clamp(28px, 3vw, 44px); }
.marquee__text {
	font-family: var(--font-display);
	font-size: clamp(3rem, 2rem + 4vw, 5.75rem);
	line-height: 1;
	letter-spacing: -0.025em;
	white-space: nowrap;
}
.marquee__badge {
	display: grid;
	place-items: center;
	flex: none;
	width: clamp(76px, 7vw, 100px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--lime);
	color: var(--ink);
	font-size: clamp(0.8rem, 0.75rem + 0.25vw, 0.95rem);
	font-weight: 500;
	text-decoration: none;
	transition: transform 200ms var(--ease-out);
}
.marquee__badge span { transform: rotate(-38deg); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
	.marquee__badge:hover { transform: scale(1.06); }
}
@media (prefers-reduced-motion: no-preference) {
	.marquee__track { animation: rmn-marquee 42s linear infinite; }
	.marquee:hover .marquee__track,
	.marquee:focus-within .marquee__track { animation-play-state: paused; }
}
@keyframes rmn-marquee {
	to { transform: translateX(-50%); }
}

/* ---------- Footer ---------- */
.site-footer {
	padding: clamp(72px, 8vw, 112px) 0 48px;
	background: var(--white);
	color: var(--ink);
	font-size: 0.9375rem;
}
.site-footer__top { display: grid; gap: 40px; padding-bottom: clamp(72px, 9vw, 160px); }
.site-footer__logo { width: 182px; height: auto; }
.site-footer__logo path, .site-footer__logo polygon, .site-footer__logo rect { fill: var(--ink); }
.site-footer__op { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; color: var(--grey); }
.site-footer__op-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.02em; color: #8a94a6; }
.site-footer__plm { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 500; }
.site-footer__pl { width: auto; height: 28px; }
.site-footer__heading { margin-bottom: 20px; font-family: var(--font-sans); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.02em; color: #8a94a6; }
.site-footer__col ul { display: grid; gap: 14px; list-style: none; }
.site-footer__col a { text-decoration: none; }
.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 40px;
	padding-top: 40px;
	border-top: 1px solid #e2e8f0;
	color: var(--grey);
	font-size: 0.875rem;
}
.site-footer__legal p { margin: 0; }
.site-footer__legal ul { display: flex; gap: 36px; list-style: none; }
.site-footer__legal a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
	.site-footer a:hover { text-decoration: underline; }
}
@media (min-width: 900px) {
	.site-footer__top { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; }
	.site-footer__brand { grid-column: 1 / span 6; }
	.site-footer__col { grid-column: 10 / span 3; }
}

/* ---------- Inner pages ---------- */
.page-hero {
	padding: calc(var(--header-h) + clamp(56px, 7vw, 104px)) 0 clamp(48px, 6vw, 80px);
	background: var(--ink);
	color: var(--white);
}
.page-hero .display { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 1.8rem + 3vw, 4.5rem); line-height: 1.04; letter-spacing: -0.025em; }
.page-hero .eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 24px; font-size: 0.8125rem; text-transform: uppercase; color: var(--lime); }
.page-hero .eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--lime); }
.page-hero .btn-row { margin-top: 36px; }
.page-hero .btn { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 28px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 500; text-decoration: none; }
.page-hero .btn .rmn-icon { width: 20px; height: 20px; }
.page-hero--tall { min-height: 80svh; display: flex; align-items: center; }
.page-hero--tall > .wrap { width: 100%; }

.entry-content { padding-block: clamp(48px, 6vw, 96px); }
.entry-content > * { max-width: 42rem; }
.entry-content h2 { margin: 2em 0 0.5em; font-family: var(--font-display); font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem); line-height: 1.1; letter-spacing: -0.02em; }
.entry-content h3 { margin: 1.6em 0 0.5em; font-size: 1.2rem; font-weight: 500; }
.entry-content p, .entry-content li { color: #3c3c3c; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.25em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content li::marker { color: var(--olive); }
.entry-content a { color: var(--blue); }
.entry-list__item { padding-block: 24px; border-bottom: 1px solid var(--line); }
.entry-list__item h2 { margin-top: 0; }

/* ==========================================================================
   Motion — first-view hero entrance (CSS), once-only scroll reveals,
   one slow marquee. All respect
   prefers-reduced-motion.
   ========================================================================== */
@keyframes rmn-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes rmn-unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rmn-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rmn-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: no-preference) {
	.js .hero__label,
	.js .hero__line,
	.js .hero__sub,
	.js .hero__ctas {
		animation: rmn-rise 900ms var(--ease-out) both;
		animation-delay: calc(80ms + var(--i, 0) * 70ms);
	}
	.js .hero__cell { animation: rmn-fade 900ms ease both; animation-delay: 200ms; }
	.js .hero__cell--photo { animation: rmn-unveil 1000ms var(--ease-out) both; }
	.js .hero__cell--photo:nth-child(2) { animation-delay: 300ms; }
	.js .hero__cell--photo:nth-child(n+8) { animation-delay: 420ms; }
	.js .hero__cell--photo:nth-child(n+11) { animation-delay: 540ms; }
	.js .hero__swoosh path {
		stroke-dasharray: 1;
		animation: rmn-draw 900ms var(--ease-out) both;
		animation-delay: 700ms;
	}

	.js [data-reveal] {
		opacity: 0;
		transform: translateY(18px);
		transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
		transition-delay: calc(var(--i, 0) * 70ms);
	}
	.js .collage__card[data-reveal] { transform: translateY(40px) rotate(var(--rot)); transition-delay: calc(var(--i, 0) * 60ms); }
	.js [data-reveal="clip"] {
		opacity: 1;
		transform: none;
		clip-path: inset(100% 0 0 0);
		transition: clip-path 1000ms var(--ease-out);
	}
	.js [data-reveal].is-in { opacity: 1; transform: none; }
	.js .collage__card[data-reveal].is-in { transform: rotate(var(--rot)); }
	.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }

	.js .closing .swoosh path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 900ms var(--ease-out) 400ms; }
	.js .closing.is-in .swoosh path { stroke-dashoffset: 0; }
	.js .bars i { transform: scaleX(0); transition: transform 900ms var(--ease-out); }
	.js .bars li:nth-child(2) i { transition-delay: 60ms; }
	.js .bars li:nth-child(3) i { transition-delay: 120ms; }
	.js .bars li:nth-child(4) i { transition-delay: 180ms; }
	.js .bars li:nth-child(5) i { transition-delay: 240ms; }
	.js .benefit.is-in .bars i { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.js .hero__label, .js .hero__line, .js .hero__sub, .js .hero__ctas, .js .hero__cell { animation: rmn-fade 300ms ease both; }
	.js [data-reveal] { opacity: 0; transition: opacity 300ms ease; }
	.js [data-reveal].is-in { opacity: 1; }
	.pill:active { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
	.site-header.is-scrolled { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media print {
	.site-header, .hero__checker, .hero__bg, .collage, .orbit, .marquee { display: none !important; }
	.js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
