/*
 * Ruang Project design system.
 *
 * Back to the first pass's visual language: the navy gradient on the hero and
 * the closing bands, white cards with a soft shadow, teal as the accent. The
 * second pass replaced all of that with hairline rules and flat grids, and it
 * read as messy rather than calm.
 *
 * Corners are eased to a few pixels rather than rounded into pills, so a
 * button, a card and an input all share one silhouette.
 *
 * The three faults it had are fixed at the root here, not patched:
 *
 *   1. Padding was set per cell with stacked nth-child rules that contradicted
 *      each other across breakpoints, so no two cards had the same inset.
 *      There is now exactly one card padding token and no positional padding.
 *   2. Tab and filter underlines were positioned with a negative offset that
 *      landed on top of the container's own border, drawing two lines a pixel
 *      apart. Those underlines are gone; tabs and filters are pills again.
 *   3. Hairline borders divided every grid, so a border met a border at every
 *      junction. Grids are spaced with one gap token and carry no borders.
 *
 * Everything vertical comes from a single scale. Nothing sets an arbitrary
 * margin.
 *
 * Sections
 *   1  Tokens
 *   2  Base and typography
 *   3  Layout primitives
 *   4  Header and navigation
 *   5  Buttons and links
 *   6  Hero and page headers
 *   7  Cards: series, work, chips and lists
 *   8  Sections: stats, split, tabs, add-ons
 *   9  Contact and forms
 *   10 Footer
 *   11 Editorial prose and archives
 *   12 Utilities and motion
 */

/* ------------------------------------------------------------------ */
/* 1. Tokens                                                           */
/* ------------------------------------------------------------------ */

:root {
	--rp-navy-900: #04203a;
	--rp-navy-800: #0c2947;
	--rp-navy-700: #123a63;
	--rp-blue-600: #1f396a;
	--rp-blue-500: #2d4988;

	--rp-teal-600: #0f6b66;
	--rp-teal-500: #127f79;
	--rp-teal-400: #17998f;

	--rp-ink: #101820;
	--rp-body: #41505f;
	--rp-muted: #5a6675;
	--rp-line: #e3e8ef;
	--rp-mist: #eaf2fb;
	--rp-surface: #ffffff;
	--rp-surface-2: #f4f7fb;

	--rp-on-dark: #ffffff;
	--rp-on-dark-soft: rgba(255, 255, 255, 0.74);
	--rp-on-dark-line: rgba(255, 255, 255, 0.16);

	--rp-gradient: linear-gradient(135deg, #04203a 0%, #0c2947 45%, #2d4988 100%);
	--rp-gradient-soft: linear-gradient(180deg, #ffffff 0%, #eaf2fb 100%);

	/*
	 * Corners are eased rather than rounded: enough to stop an edge looking
	 * cut, not enough to read as a pill. One scale for everything, so a button
	 * and the card it sits in never disagree.
	 */
	--rp-r-xs: 2px;
	--rp-r-sm: 3px;
	--rp-r-md: 4px;
	--rp-r-lg: 6px;
	--rp-r-xl: 8px;

	--rp-sh-sm: 0 1px 2px rgba(4, 32, 58, 0.06), 0 4px 14px rgba(4, 32, 58, 0.05);
	--rp-sh-md: 0 2px 6px rgba(4, 32, 58, 0.05), 0 18px 40px -18px rgba(4, 32, 58, 0.26);
	--rp-sh-lg: 0 30px 70px -34px rgba(4, 32, 58, 0.5);

	--rp-fs-hero: clamp(2.35rem, 1.35rem + 4.1vw, 4.4rem);
	--rp-fs-h1: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
	--rp-fs-h2: clamp(1.8rem, 1.3rem + 2.1vw, 2.75rem);
	--rp-fs-h3: clamp(1.12rem, 1.02rem + 0.42vw, 1.38rem);
	--rp-fs-lead: clamp(1.03rem, 0.98rem + 0.33vw, 1.19rem);
	--rp-fs-sm: 0.875rem;
	--rp-fs-xs: 0.78rem;

	/*
	 * The whole vertical rhythm. Every gap, inset and margin below is one of
	 * these, which is what keeps the spacing regular.
	 */
	--rp-space-1: 0.5rem;
	--rp-space-2: 0.75rem;
	--rp-space-3: 1rem;
	--rp-space-4: 1.5rem;
	--rp-space-5: 2rem;
	--rp-space-6: 3rem;

	--rp-gap: clamp(1.25rem, 2.4vw, 2rem);
	--rp-pad-card: clamp(1.5rem, 2.4vw, 2rem);
	--rp-head-gap: clamp(2.25rem, 4vw, 3.5rem);
	--rp-section-y: clamp(4.25rem, 7.5vw, 7.5rem);
	--rp-gutter: clamp(1.25rem, 5vw, 2.5rem);

	--rp-header-h: 76px;
	--rp-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------------------------------------------ */
/* 2. Base and typography                                              */
/* ------------------------------------------------------------------ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--rp-header-h) + 16px);
}

body {
	margin: 0;
	background: var(--rp-surface);
	color: var(--rp-body);
	font-family: Poppins, 'Poppins Fallback', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.72;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	color: var(--rp-ink);
	font-weight: 700;
	line-height: 1.16;
	letter-spacing: -0.018em;
	text-wrap: balance;
}

p {
	margin: 0 0 1.15em;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--rp-teal-600);
	text-underline-offset: 0.18em;
	transition: color 0.18s var(--rp-ease);
}

a:hover {
	color: var(--rp-teal-500);
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 3px solid var(--rp-teal-400);
	outline-offset: 3px;
	border-radius: var(--rp-r-md);
}

::selection {
	background: var(--rp-teal-500);
	color: #fff;
}

/* The wordmark's weight pairing, reused in the hero headline. */
.rp-light {
	font-weight: 300;
}

/* ------------------------------------------------------------------ */
/* 3. Layout primitives                                                */
/* ------------------------------------------------------------------ */

.rp-container {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: var(--rp-gutter);
}

.rp-container--narrow {
	max-width: 760px;
}

.rp-section {
	padding-block: var(--rp-section-y);
}

.rp-section--tint {
	background: var(--rp-gradient-soft);
}

/*
 * A plain section between two white ones needs a boundary. One hairline on the
 * section itself, never on the things inside it.
 */
.rp-section--rule {
	border-block-start: 1px solid var(--rp-line);
}

.rp-section--dark {
	position: relative;
	background: var(--rp-gradient);
	color: var(--rp-on-dark-soft);
}

.rp-section--dark h1,
.rp-section--dark h2,
.rp-section--dark h3,
.rp-section--dark h4 {
	color: var(--rp-on-dark);
}

/*
 * A dark band still contains light surfaces: cards, panels, steps. Restate
 * their colours or they inherit light-on-dark onto white.
 */
.rp-section--dark .rp-item,
.rp-section--dark .rp-work__item,
.rp-section--dark .rp-panel,
.rp-section--dark .rp-addon {
	color: var(--rp-body);
}

.rp-section--dark .rp-item h1,
.rp-section--dark .rp-item h2,
.rp-section--dark .rp-item h3,
.rp-section--dark .rp-item h4,
.rp-section--dark .rp-work__item h1,
.rp-section--dark .rp-work__item h2,
.rp-section--dark .rp-work__item h3,
.rp-section--dark .rp-work__item h4,
.rp-section--dark .rp-panel h1,
.rp-section--dark .rp-panel h2,
.rp-section--dark .rp-panel h3,
.rp-section--dark .rp-panel h4 {
	color: var(--rp-ink);
}

.rp-eyebrow {
	margin: 0 0 var(--rp-space-2);
	font-size: var(--rp-fs-xs);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--rp-teal-600);
}

.rp-section--dark .rp-eyebrow {
	color: var(--rp-teal-400);
}

.rp-section-head {
	margin-block-end: var(--rp-head-gap);
}

.rp-section-head--center {
	max-width: 46rem;
	margin-inline: auto;
	text-align: center;
}

.rp-section-head--split {
	display: grid;
	gap: var(--rp-space-4);
	align-items: end;
}

@media (min-width: 62rem) {
	.rp-section-head--split {
		grid-template-columns: 1.15fr 1fr;
		column-gap: var(--rp-space-6);
	}
}

.rp-section-title {
	margin: 0;
	max-width: 20ch;
	font-size: var(--rp-fs-h2);
}

.rp-section-head--center .rp-section-title {
	margin-inline: auto;
}

.rp-section-lead {
	margin: var(--rp-space-3) 0 0;
	max-width: 52ch;
	font-size: var(--rp-fs-lead);
	color: var(--rp-muted);
}

.rp-section-head--center .rp-section-lead {
	margin-inline: auto;
}

/* In a split head the lead sits beside the title, so it needs no top margin. */
@media (min-width: 62rem) {
	.rp-section-head--split > .rp-section-lead {
		margin-block-start: 0;
	}
}

.rp-section--dark .rp-section-lead {
	color: var(--rp-on-dark-soft);
}

.rp-section-foot {
	margin: var(--rp-head-gap) 0 0;
	text-align: center;
}

/* ------------------------------------------------------------------ */
/* 4. Header and navigation                                            */
/* ------------------------------------------------------------------ */

.rp-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 0.85rem 1.4rem;
	background: var(--rp-teal-500);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border-radius: 0 0 var(--rp-r-sm) 0;
}

.rp-skip-link:focus {
	left: 0;
	color: #fff;
}

.rp-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	transition: background-color 0.28s var(--rp-ease), box-shadow 0.28s var(--rp-ease),
		backdrop-filter 0.28s var(--rp-ease);
}

.rp-header.is-stuck {
	background: rgba(6, 30, 54, 0.92);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px -28px rgba(0, 0, 0, 0.8);
	backdrop-filter: saturate(150%) blur(14px);
}

.rp-header__inner {
	display: flex;
	align-items: center;
	gap: var(--rp-space-4);
	min-height: var(--rp-header-h);
}

.rp-header__brand {
	flex: 0 0 auto;
	margin-inline-end: auto;
}

.rp-logo {
	display: block;
	color: #fff;
	text-decoration: none;
}

.rp-logo--horizontal svg {
	height: 26px;
	width: auto;
}

.rp-logo--text {
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.custom-logo-link img {
	max-height: 42px;
	width: auto;
}

.rp-header__toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--rp-space-1);
	padding: 0.5rem 0.9rem;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--rp-on-dark-line);
	border-radius: var(--rp-r-sm);
	color: #fff;
	font-size: var(--rp-fs-sm);
	font-weight: 600;
	cursor: pointer;
}

.rp-header__toggle-icon {
	display: inline-flex;
}

.rp-header__toggle .rp-icon {
	width: 20px;
	height: 20px;
}

.rp-header__toggle .rp-icon--close,
.rp-header__toggle[aria-expanded="true"] .rp-icon--open {
	display: none;
}

.rp-header__toggle[aria-expanded="true"] .rp-icon--close {
	display: block;
}

.rp-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin: 0;
	list-style: none;
}

/* A soft pill marks the current page. No underline, so nothing can collide. */
.rp-nav__list a {
	display: block;
	padding: 0.5rem 0.8rem;
	border-radius: var(--rp-r-sm);
	color: rgba(255, 255, 255, 0.86);
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.18s var(--rp-ease), color 0.18s var(--rp-ease);
}

.rp-nav__list a:hover,
.rp-nav__list .current-menu-item > a,
.rp-nav__list .current_page_parent > a,
.rp-nav__list a[aria-current="page"] {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.rp-nav__cta {
	display: flex;
	align-items: center;
	gap: var(--rp-space-2);
}

@media (max-width: 63.99rem) {
	.rp-nav {
		position: absolute;
		inset: 100% 0 auto;
		display: grid;
		gap: var(--rp-space-3);
		padding: var(--rp-space-4) var(--rp-gutter) var(--rp-space-5);
		background: var(--rp-navy-900);
		border-block-start: 1px solid var(--rp-on-dark-line);
		box-shadow: var(--rp-sh-lg);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity 0.22s var(--rp-ease), transform 0.22s var(--rp-ease), visibility 0.22s;
	}

	.rp-header.is-open .rp-nav {
		visibility: visible;
		opacity: 1;
		transform: none;
	}

	.rp-nav__list {
		flex-direction: column;
		gap: 0.15rem;
	}

	.rp-nav__list a {
		padding: 0.7rem 0.9rem;
		font-size: 1rem;
	}

	.rp-nav__cta {
		flex-wrap: wrap;
		padding-block-start: var(--rp-space-2);
		border-block-start: 1px solid var(--rp-on-dark-line);
	}
}

@media (min-width: 64rem) {
	.rp-header__toggle {
		display: none;
	}

	.rp-nav {
		display: flex;
		align-items: center;
		gap: var(--rp-space-4);
	}
}

/* ------------------------------------------------------------------ */
/* 5. Buttons and links                                                */
/* ------------------------------------------------------------------ */

.rp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--rp-space-1);
	padding: 0.78rem 1.5rem;
	border: 1px solid transparent;
	border-radius: var(--rp-r-sm);
	background: var(--rp-teal-500);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s var(--rp-ease), border-color 0.2s var(--rp-ease),
		color 0.2s var(--rp-ease), transform 0.2s var(--rp-ease);
}

.rp-btn .rp-icon {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.rp-btn:hover {
	background: var(--rp-teal-600);
	color: #fff;
	transform: translateY(-1px);
}

.rp-btn--sm {
	padding: 0.55rem 1.05rem;
	font-size: var(--rp-fs-sm);
}

.rp-btn--lg {
	padding: 0.95rem 1.9rem;
	font-size: 1rem;
}

.rp-btn--full {
	width: 100%;
}

.rp-btn--outline {
	background: var(--rp-surface);
	border-color: var(--rp-line);
	color: var(--rp-navy-800);
}

.rp-btn--outline:hover {
	background: var(--rp-surface);
	border-color: var(--rp-navy-700);
	color: var(--rp-navy-800);
}

/* On a dark band an outline needs the light treatment instead. */
.rp-btn--light,
.rp-section--dark .rp-btn--outline {
	background: rgba(255, 255, 255, 0.06);
	border-color: var(--rp-on-dark-line);
	color: #fff;
}

.rp-btn--light:hover,
.rp-section--dark .rp-btn--outline:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: var(--rp-on-dark-line);
	color: #fff;
}

.rp-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: var(--rp-space-1);
	color: var(--rp-teal-600);
	font-size: 0.94rem;
	font-weight: 600;
	text-decoration: none;
}

.rp-link-arrow .rp-icon {
	width: 17px;
	height: 17px;
	transition: transform 0.2s var(--rp-ease);
}

.rp-link-arrow:hover .rp-icon {
	transform: translateX(3px);
}

.rp-section--dark .rp-link-arrow {
	color: var(--rp-teal-400);
}

/* ------------------------------------------------------------------ */
/* 6. Hero and page headers                                            */
/* ------------------------------------------------------------------ */

.rp-hero {
	position: relative;
	overflow: hidden;
	background: var(--rp-gradient);
	color: var(--rp-on-dark-soft);
	padding-block: calc(var(--rp-header-h) + clamp(3.5rem, 9vw, 7rem)) clamp(4rem, 8vw, 6.5rem);
}

/*
 * Offsets are in vw, never in percentages of the block. A percentage resolves
 * against the hero's height, so the moment the webfont swapped and the headline
 * reflowed, this mark moved with it and registered as a layout shift.
 */
.rp-hero__watermark {
	position: absolute;
	inset-block-start: -4vw;
	inset-inline-end: -5vw;
	width: clamp(320px, 46vw, 720px);
	color: rgba(255, 255, 255, 0.045);
	pointer-events: none;
}

.rp-hero__watermark svg {
	width: 100%;
	height: auto;
}

.rp-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 62rem;
}

.rp-hero__title {
	margin: 0;
	max-width: 18ch;
	color: #fff;
	font-size: var(--rp-fs-hero);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -0.028em;
}

.rp-hero__title .rp-light {
	display: block;
	color: rgba(255, 255, 255, 0.86);
}

.rp-hero__text {
	margin: var(--rp-space-4) 0 0;
	max-width: 52ch;
	font-size: var(--rp-fs-lead);
	color: var(--rp-on-dark-soft);
}

.rp-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rp-space-2);
	margin-block-start: var(--rp-space-5);
}

.rp-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rp-space-2) var(--rp-space-5);
	margin: var(--rp-space-6) 0 0;
	padding-block-start: var(--rp-space-4);
	border-block-start: 1px solid var(--rp-on-dark-line);
	font-size: var(--rp-fs-xs);
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
	list-style: none;
}

.rp-page-head {
	position: relative;
	overflow: hidden;
	background: var(--rp-gradient);
	color: var(--rp-on-dark-soft);
	padding-block: calc(var(--rp-header-h) + clamp(2.75rem, 6vw, 4.5rem)) clamp(2.75rem, 6vw, 4.5rem);
}

.rp-page-head__watermark {
	position: absolute;
	inset-block-start: -6vw;
	inset-inline-end: -3vw;
	width: clamp(240px, 32vw, 460px);
	color: rgba(255, 255, 255, 0.05);
	pointer-events: none;
}

.rp-page-head .rp-container {
	position: relative;
	z-index: 1;
	max-width: 58rem;
}

.rp-page-head__title {
	margin: 0;
	color: #fff;
	font-size: var(--rp-fs-h1);
	letter-spacing: -0.024em;
}

.rp-page-head__lead {
	margin: var(--rp-space-3) 0 0;
	max-width: 56ch;
	font-size: var(--rp-fs-lead);
	color: var(--rp-on-dark-soft);
}

.rp-page-head .rp-eyebrow {
	color: var(--rp-teal-400);
}

.rp-crumbs {
	margin-block-end: var(--rp-space-4);
	font-size: var(--rp-fs-sm);
}

.rp-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rp-space-1);
	list-style: none;
}

.rp-crumbs li + li::before {
	content: "/";
	margin-inline-end: var(--rp-space-1);
	color: rgba(255, 255, 255, 0.32);
}

.rp-crumbs a {
	color: rgba(255, 255, 255, 0.68);
	text-decoration: none;
}

.rp-crumbs a:hover {
	color: #fff;
	text-decoration: underline;
}

.rp-crumbs [aria-current="page"] {
	color: #fff;
}

/* ------------------------------------------------------------------ */
/* 7. Cards: series, work, chips and lists                             */
/* ------------------------------------------------------------------ */

/*
 * One grid rule for every card list. Columns change, nothing else does: the
 * gap and the inset are the same everywhere, and no cell carries a border.
 */
.rp-series,
.rp-work {
	display: grid;
	gap: var(--rp-gap);
	list-style: none;
}

@media (min-width: 44rem) {
	.rp-series--2,
	.rp-series--3,
	.rp-series--4,
	.rp-work {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 68rem) {
	.rp-series--3,
	.rp-work {
		grid-template-columns: repeat(3, 1fr);
	}

	.rp-series--4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

.rp-item {
	display: flex;
	flex-direction: column;
	padding: var(--rp-pad-card);
	background: var(--rp-surface);
	border: 1px solid var(--rp-line);
	border-radius: var(--rp-r-lg);
	box-shadow: var(--rp-sh-sm);
	transition: transform 0.25s var(--rp-ease), box-shadow 0.25s var(--rp-ease),
		border-color 0.25s var(--rp-ease);
}

.rp-item:hover {
	transform: translateY(-3px);
	border-color: #cfdcea;
	box-shadow: var(--rp-sh-md);
}

/*
 * Icon and index share one row. Stacking them cost a whole line of height in
 * every card, and in a four-column grid that is height nobody was reading.
 */
.rp-item__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--rp-space-2);
	margin-block-end: var(--rp-space-3);
}

.rp-item__head .rp-item__icon,
.rp-item__head .rp-item__number {
	margin-block-end: 0;
}

.rp-item__number {
	display: block;
	margin-block-end: var(--rp-space-3);
	color: var(--rp-teal-600);
	font-size: var(--rp-fs-xs);
	font-weight: 700;
	letter-spacing: 0.14em;
	font-variant-numeric: tabular-nums;
}

.rp-item__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-block-end: var(--rp-space-3);
	border-radius: var(--rp-r-md);
	background: var(--rp-mist);
	color: var(--rp-navy-700);
}

.rp-item__icon .rp-icon {
	width: 21px;
	height: 21px;
}

.rp-item__meta {
	display: inline-flex;
	align-self: flex-start;
	margin: 0 0 var(--rp-space-2);
	padding: 0.3rem 0.75rem;
	border-radius: var(--rp-r-sm);
	background: var(--rp-mist);
	color: var(--rp-navy-700);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.rp-item__title {
	margin: 0 0 var(--rp-space-1);
	font-size: var(--rp-fs-h3);
	line-height: 1.28;
}

.rp-item__title a {
	color: inherit;
	text-decoration: none;
}

.rp-item__title a:hover {
	color: var(--rp-teal-600);
}

.rp-item__text {
	margin: 0;
	font-size: 0.95rem;
	color: var(--rp-body);
}

.rp-item__foot {
	margin: auto 0 0;
	padding-block-start: var(--rp-space-4);
}

.rp-ticks {
	display: grid;
	gap: var(--rp-space-1);
	margin: var(--rp-space-3) 0 0;
	list-style: none;
}

.rp-ticks li {
	display: flex;
	align-items: flex-start;
	gap: var(--rp-space-1);
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--rp-body);
}

.rp-ticks .rp-icon {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	margin-block-start: 0.22em;
	color: var(--rp-teal-500);
}

/* Work cards: the image is part of the card, so the card clips it. */
.rp-work__item {
	display: flex;
	background: var(--rp-surface);
	border: 1px solid var(--rp-line);
	border-radius: var(--rp-r-lg);
	box-shadow: var(--rp-sh-sm);
	overflow: hidden;
	transition: transform 0.25s var(--rp-ease), box-shadow 0.25s var(--rp-ease),
		border-color 0.25s var(--rp-ease);
}

.rp-work__item:hover {
	transform: translateY(-3px);
	border-color: #cfdcea;
	box-shadow: var(--rp-sh-md);
}

.rp-work__item > article {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.rp-work__media {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--rp-mist);
	overflow: hidden;
}

.rp-work__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--rp-ease);
}

.rp-work__item:hover .rp-work__media img {
	transform: scale(1.035);
}

.rp-work__fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: rgba(18, 58, 99, 0.18);
}

.rp-work__fallback svg {
	width: 32%;
	height: auto;
}

.rp-work__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: var(--rp-pad-card);
}

.rp-work__meta {
	margin: 0 0 var(--rp-space-2);
	font-size: var(--rp-fs-xs);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rp-muted);
}

.rp-work__title {
	margin: 0 0 var(--rp-space-1);
	font-size: var(--rp-fs-h3);
	line-height: 1.28;
}

.rp-work__title a {
	color: inherit;
	text-decoration: none;
}

.rp-work__title a:hover {
	color: var(--rp-teal-600);
}

.rp-work__text {
	margin: 0;
	font-size: 0.95rem;
}

.rp-work__link {
	display: inline-flex;
	align-items: center;
	gap: var(--rp-space-1);
	align-self: flex-start;
	margin-block-start: var(--rp-space-3);
	padding: 0.5rem 1rem;
	border-radius: var(--rp-r-sm);
	background: var(--rp-navy-800);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
}

.rp-work__link:hover {
	background: var(--rp-blue-500);
	color: #fff;
}

.rp-work__link .rp-icon {
	width: 15px;
	height: 15px;
}

/* Filters are pills, so there is no underline to collide with anything. */
.rp-filters {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rp-space-1);
	margin-block-end: var(--rp-head-gap);
}

.rp-filters a {
	padding: 0.45rem 1rem;
	border: 1px solid var(--rp-line);
	border-radius: var(--rp-r-sm);
	background: var(--rp-surface);
	color: var(--rp-navy-800);
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.18s var(--rp-ease), color 0.18s var(--rp-ease),
		border-color 0.18s var(--rp-ease);
}

.rp-filters a:hover {
	background: var(--rp-mist);
	color: var(--rp-navy-800);
}

.rp-filters a.is-active {
	background: var(--rp-navy-800);
	border-color: var(--rp-navy-800);
	color: #fff;
}

/* ------------------------------------------------------------------ */
/* 8. Sections                                                         */
/* ------------------------------------------------------------------ */

.rp-stats {
	position: relative;
	z-index: 2;
	margin-block-start: calc(-1 * clamp(2.5rem, 5vw, 4rem));
}

.rp-stats__grid {
	display: grid;
	gap: 1px;
	margin: 0;
	background: var(--rp-line);
	border: 1px solid var(--rp-line);
	border-radius: var(--rp-r-lg);
	box-shadow: var(--rp-sh-md);
	overflow: hidden;
}

@media (min-width: 40rem) {
	.rp-stats__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.rp-stat {
	display: flex;
	flex-direction: column-reverse;
	gap: var(--rp-space-1);
	padding: var(--rp-pad-card);
	background: var(--rp-surface);
	text-align: center;
}

.rp-stat__value {
	margin: 0;
	color: var(--rp-navy-800);
	font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.1rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.rp-stat__label {
	font-size: var(--rp-fs-sm);
	font-weight: 500;
	color: var(--rp-muted);
}

.rp-split {
	display: grid;
	gap: var(--rp-gap);
}

@media (min-width: 62rem) {
	.rp-split {
		grid-template-columns: 1fr 1.15fr;
		column-gap: var(--rp-space-6);
	}

	.rp-split--aside {
		grid-template-columns: 1.5fr 0.85fr;
		align-items: start;
	}
}

.rp-split__body {
	font-size: var(--rp-fs-lead);
}

.rp-split__body p + p {
	margin-block-start: 1.2em;
}

.rp-split__foot {
	margin-block-start: var(--rp-space-5);
}

/* Tabs are pills. The old underline sat on the container border and doubled it. */
.rp-tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rp-space-1);
	justify-content: center;
	margin-block-end: var(--rp-head-gap);
}

.rp-tabs__tab {
	padding: 0.6rem 1.25rem;
	border: 1px solid var(--rp-line);
	border-radius: var(--rp-r-sm);
	background: var(--rp-surface);
	color: var(--rp-navy-800);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.18s var(--rp-ease), border-color 0.18s var(--rp-ease),
		color 0.18s var(--rp-ease);
}

.rp-tabs__tab:hover {
	background: var(--rp-mist);
}

.rp-tabs__tab[aria-selected="true"] {
	background: var(--rp-navy-800);
	border-color: var(--rp-navy-800);
	color: #fff;
}

.rp-tabs__panel-title {
	margin: 0 0 var(--rp-space-4);
	font-size: var(--rp-fs-h3);
	text-align: center;
}

.rp-tabs__panel + .rp-tabs__panel {
	margin-block-start: var(--rp-section-y);
}

.js .rp-tabs__panel + .rp-tabs__panel {
	margin-block-start: 0;
}

.js .rp-tabs:not([data-rp-ready]) .rp-tabs__panel:not(:first-of-type) {
	display: none;
}

/*
 * With scripting on, the tab already names its panel, so this heading is
 * redundant on screen. It stays in the accessibility tree rather than being
 * removed, because dropping it takes the document from h2 straight to h4.
 */
.js .rp-tabs__panel-title {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.rp-addons {
	display: grid;
	gap: var(--rp-space-2);
	list-style: none;
}

@media (min-width: 34rem) {
	.rp-addons {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 62rem) {
	.rp-addons {
		grid-template-columns: repeat(3, 1fr);
	}
}

.rp-addon {
	display: flex;
	align-items: center;
	gap: var(--rp-space-2);
	padding: 0.95rem 1.15rem;
	background: var(--rp-surface);
	border: 1px solid var(--rp-line);
	border-radius: var(--rp-r-md);
	color: var(--rp-ink);
	font-size: 0.92rem;
	font-weight: 500;
}

.rp-addon .rp-icon {
	flex: 0 0 auto;
	width: 19px;
	height: 19px;
	color: var(--rp-teal-500);
}

/* ------------------------------------------------------------------ */
/* 9. Contact and forms                                                */
/* ------------------------------------------------------------------ */

.rp-contact__inner {
	display: grid;
	gap: var(--rp-gap);
}

@media (min-width: 62rem) {
	.rp-contact__inner {
		grid-template-columns: 0.85fr 1.15fr;
		column-gap: var(--rp-space-6);
		align-items: start;
	}
}

.rp-contact__lead {
	margin: var(--rp-space-3) 0 var(--rp-space-5);
	max-width: 44ch;
	font-size: var(--rp-fs-lead);
	color: var(--rp-on-dark-soft);
}

.rp-contact__details {
	display: grid;
	gap: var(--rp-space-2);
	margin: 0;
	list-style: none;
}

.rp-contact__details li {
	display: flex;
	align-items: flex-start;
	gap: var(--rp-space-2);
	font-size: 0.94rem;
}

.rp-contact__details .rp-icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-block-start: 0.28em;
	color: var(--rp-teal-400);
}

.rp-contact__details a {
	color: #fff;
	text-decoration: none;
	border-block-end: 1px solid rgba(255, 255, 255, 0.28);
}

.rp-contact__details a:hover {
	color: #fff;
	border-color: #fff;
}

.rp-contact__actions {
	margin-block-start: var(--rp-space-5);
}

.rp-panel {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background: var(--rp-surface);
	border-radius: var(--rp-r-xl);
	box-shadow: var(--rp-sh-lg);
	color: var(--rp-body);
}

.rp-form__grid {
	display: grid;
	gap: var(--rp-space-3);
}

@media (min-width: 34rem) {
	.rp-form__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.rp-form__row--wide {
		grid-column: 1 / -1;
	}
}

.rp-form__row {
	display: grid;
	gap: var(--rp-space-1);
	margin: 0;
}

.rp-form__row label {
	font-size: var(--rp-fs-sm);
	font-weight: 600;
	color: var(--rp-navy-800);
}

.rp-form__required {
	color: var(--rp-teal-600);
}

.rp-form input,
.rp-form select,
.rp-form textarea {
	width: 100%;
	padding: 0.75rem 0.95rem;
	background: var(--rp-surface-2);
	border: 1px solid var(--rp-line);
	border-radius: var(--rp-r-sm);
	font-size: 0.95rem;
	transition: border-color 0.18s var(--rp-ease), background-color 0.18s var(--rp-ease);
}

.rp-form textarea {
	min-height: 8rem;
	resize: vertical;
}

.rp-form input:focus,
.rp-form select:focus,
.rp-form textarea:focus {
	background: var(--rp-surface);
	border-color: var(--rp-teal-400);
}

.rp-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rp-form__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rp-space-3);
	margin-block-start: var(--rp-space-4);
}

.rp-form__note {
	flex: 1 1 14rem;
	margin: 0;
	font-size: var(--rp-fs-xs);
	color: var(--rp-muted);
}

.rp-notice {
	display: flex;
	align-items: flex-start;
	gap: var(--rp-space-1);
	margin: 0 0 var(--rp-space-4);
	padding: 0.9rem 1.1rem;
	border-radius: var(--rp-r-md);
	font-size: 0.92rem;
	font-weight: 500;
}

.rp-notice .rp-icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-block-start: 0.2em;
}

.rp-notice--ok {
	background: rgba(18, 127, 121, 0.1);
	color: var(--rp-teal-600);
}

.rp-notice--bad {
	background: rgba(163, 48, 42, 0.09);
	color: #96291f;
}

.rp-search {
	display: flex;
	gap: var(--rp-space-1);
	max-width: 28rem;
}

.rp-search__input {
	flex: 1;
	padding: 0.7rem 1rem;
	background: var(--rp-surface-2);
	border: 1px solid var(--rp-line);
	border-radius: var(--rp-r-sm);
	font-size: 0.95rem;
}

.rp-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: var(--rp-r-sm);
	background: var(--rp-navy-800);
	color: #fff;
	cursor: pointer;
}

.rp-search__submit .rp-icon {
	width: 19px;
	height: 19px;
}

/* ------------------------------------------------------------------ */
/* 10. Footer                                                          */
/* ------------------------------------------------------------------ */

.rp-footer {
	background: var(--rp-navy-900);
	color: var(--rp-on-dark-soft);
	padding-block: clamp(3rem, 6vw, 5rem) var(--rp-space-5);
}

.rp-footer__grid {
	display: grid;
	gap: var(--rp-gap);
}

@media (min-width: 48rem) {
	.rp-footer__grid {
		grid-template-columns: 1.5fr 1fr 1.2fr;
		column-gap: var(--rp-space-6);
	}
}

.rp-footer__logo {
	width: 108px;
	margin-block-end: var(--rp-space-3);
	color: #fff;
}

.rp-footer__logo svg {
	width: 100%;
	height: auto;
}

.rp-footer__text {
	max-width: 40ch;
	font-size: 0.94rem;
}

.rp-footer__heading {
	margin: 0 0 var(--rp-space-3);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.rp-footer__list {
	display: grid;
	gap: var(--rp-space-1);
	font-size: 0.94rem;
	list-style: none;
}

.rp-footer__list a {
	color: var(--rp-on-dark-soft);
	text-decoration: none;
}

.rp-footer__list a:hover {
	color: #fff;
	text-decoration: underline;
}

.rp-footer__list--contact li {
	display: flex;
	align-items: flex-start;
	gap: var(--rp-space-1);
}

.rp-footer__list--contact .rp-icon {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	margin-block-start: 0.28em;
	color: var(--rp-teal-400);
}

.rp-social {
	display: flex;
	gap: var(--rp-space-1);
	margin-block-start: var(--rp-space-4);
	list-style: none;
}

.rp-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--rp-on-dark-line);
	border-radius: var(--rp-r-sm);
	color: #fff;
	transition: background-color 0.18s var(--rp-ease), border-color 0.18s var(--rp-ease);
}

.rp-social a:hover {
	background: var(--rp-teal-500);
	border-color: var(--rp-teal-500);
}

.rp-social .rp-icon {
	width: 18px;
	height: 18px;
}

.rp-footer__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--rp-space-2) var(--rp-space-4);
	margin-block-start: var(--rp-space-6);
	padding-block-start: var(--rp-space-4);
	border-block-start: 1px solid var(--rp-on-dark-line);
	font-size: var(--rp-fs-sm);
}

.rp-footer__copy {
	margin: 0;
	color: rgba(255, 255, 255, 0.6);
}

.rp-footer__legal-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rp-space-3);
	list-style: none;
}

.rp-footer__legal-list a {
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
}

.rp-footer__legal-list a:hover {
	color: #fff;
}

.rp-footer__widgets {
	display: grid;
	gap: var(--rp-gap);
	margin-block-end: var(--rp-space-6);
	padding-block-end: var(--rp-space-5);
	border-block-end: 1px solid var(--rp-on-dark-line);
}

@media (min-width: 48rem) {
	.rp-footer__widgets {
		grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	}
}

.rp-widget {
	font-size: 0.94rem;
}

.rp-widget__title,
.rp-footer__widgets h1,
.rp-footer__widgets h2,
.rp-footer__widgets h3,
.rp-footer__widgets h4 {
	margin: 0 0 var(--rp-space-3);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.rp-footer__widgets ul,
.rp-footer__widgets ol {
	display: grid;
	gap: var(--rp-space-1);
	list-style: none;
}

.rp-footer__widgets a {
	color: var(--rp-on-dark-soft);
	text-decoration: none;
}

.rp-footer__widgets a:hover {
	color: #fff;
	text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* 11. Editorial prose and archives                                    */
/* ------------------------------------------------------------------ */

.rp-article {
	padding-block: var(--rp-section-y);
}

.rp-prose {
	font-size: var(--rp-fs-lead);
}

.rp-prose > * + * {
	margin-block-start: 1.15em;
}

.rp-prose h2 {
	margin-block-start: 2em;
	font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem);
}

.rp-prose h3 {
	margin-block-start: 1.6em;
	font-size: var(--rp-fs-h3);
}

.rp-prose ul,
.rp-prose ol {
	padding-inline-start: 1.35em;
}

.rp-prose li + li {
	margin-block-start: 0.45em;
}

.rp-prose blockquote {
	margin: 1.75em 0;
	padding-inline-start: 1.35rem;
	border-inline-start: 3px solid var(--rp-teal-500);
	color: var(--rp-ink);
	font-size: 1.08em;
}

.rp-prose img {
	border-radius: var(--rp-r-md);
}

.rp-measure {
	max-width: 68ch;
	margin-block-end: var(--rp-head-gap);
}

.rp-project__shot {
	margin: 0 0 var(--rp-head-gap);
	border-radius: var(--rp-r-xl);
	box-shadow: var(--rp-sh-md);
	overflow: hidden;
}

.rp-aside {
	display: grid;
	gap: var(--rp-space-3);
	padding: var(--rp-pad-card);
	background: var(--rp-surface-2);
	border: 1px solid var(--rp-line);
	border-radius: var(--rp-r-lg);
}

@media (min-width: 62rem) {
	.rp-aside {
		position: sticky;
		top: calc(var(--rp-header-h) + 24px);
	}
}

.rp-aside__title {
	margin: 0;
	font-size: var(--rp-fs-xs);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rp-muted);
}

.rp-facts {
	display: grid;
	gap: var(--rp-space-3);
	margin: 0;
}

.rp-facts dt {
	font-size: var(--rp-fs-xs);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rp-muted);
}

.rp-facts dd {
	margin: 0.2rem 0 0;
	color: var(--rp-ink);
	font-weight: 500;
}

.rp-empty {
	padding: var(--rp-pad-card);
	background: var(--rp-surface-2);
	border: 1px solid var(--rp-line);
	border-radius: var(--rp-r-lg);
	color: var(--rp-muted);
}

.rp-empty h2 {
	margin-block-end: var(--rp-space-2);
	font-size: var(--rp-fs-h3);
}

.rp-empty p {
	max-width: 58ch;
}

.rp-empty__action {
	margin-block-start: var(--rp-space-4);
}

.rp-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rp-space-2);
	margin-block-start: var(--rp-space-5);
}

.navigation.pagination,
.pagination {
	margin-block-start: var(--rp-head-gap);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rp-space-1);
	justify-content: center;
}

.nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 0.75rem;
	border: 1px solid var(--rp-line);
	border-radius: var(--rp-r-sm);
	color: var(--rp-navy-800);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.nav-links .page-numbers:hover {
	background: var(--rp-mist);
}

.nav-links .page-numbers.current {
	background: var(--rp-navy-800);
	border-color: var(--rp-navy-800);
	color: #fff;
}

/* ------------------------------------------------------------------ */
/* 12. Utilities and motion                                            */
/* ------------------------------------------------------------------ */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.rp-icon {
	display: block;
	flex: 0 0 auto;
}

[hidden] {
	display: none !important;
}

.rp-reveal {
	opacity: 0;
	transform: translateY(14px);
}

.rp-reveal.is-visible {
	opacity: 1;
	transform: none;
	transition: opacity 0.6s var(--rp-ease), transform 0.6s var(--rp-ease);
}

@media print {
	.rp-reveal {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.rp-reveal {
		opacity: 1;
		transform: none;
	}
}

body.admin-bar .rp-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .rp-header {
		top: 46px;
	}
}
