/*
Theme Name: Redemption Ministries
Theme URI: https://bluelark.co.uk
Author: Blue Lark
Author URI: https://bluelark.co.uk
Description: Custom visual-first WordPress theme for Redemption Ministries, a Christian non-profit serving through missions and education. Built on full-bleed photography, generous negative space, and a scholarly typographic system. No page builders.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: redemption-ministries
Tags: non-profit, custom-theme, visual-first, accessibility-ready
*/

/* ==========================================================================
   1. CUSTOM PROPERTIES
   ========================================================================== */

:root {
	/* Brand colour: client supplied */
	--color-primary: #04142C;        /* deep navy, dominant brand tone */
	--color-secondary: #022C6D;      /* mid blue, secondary surfaces, links */
	--color-accent: #F7E39C;         /* gold, sparing use only */
	--color-accent-soft: #FCF1CE;    /* pale gold, sparing use only */

	/* Neutrals */
	--color-text: #1A1F2B;           /* near-black, never pure #000 */
	--color-text-muted: #55606F;
	--color-bg: #FFFFFF;
	--color-bg-off: #F4F6FA;         /* cool tint, related to the navy primary */
	--color-muted: var(--color-bg-off);
	--color-white: #FFFFFF;
	--color-border: #DCE2EC;
	--color-border-light: rgba(255, 255, 255, 0.18);

	/* Overlays */
	--overlay-hero: linear-gradient(to top, rgba(4, 20, 44, 0.7) 0%, rgba(4, 20, 44, 0.47) 32%, rgba(4, 20, 44, 0.05) 68%, rgba(4, 20, 44, 0) 100%);
	--overlay-hero-top: linear-gradient(to bottom, rgba(4, 20, 44, 0.82) 0%, rgba(4, 20, 44, 0.55) 32%, rgba(4, 20, 44, 0.06) 68%, rgba(4, 20, 44, 0) 100%);
	--overlay-hero-left: linear-gradient(to right, rgba(4, 20, 44, 0.82) 0%, rgba(4, 20, 44, 0.62) 30%, rgba(4, 20, 44, 0.22) 55%, rgba(4, 20, 44, 0) 72%);
	--overlay-cta: rgba(4, 20, 44, 0.52);
	--overlay-page-hero: linear-gradient(to top, rgba(4, 20, 44, 0.88) 0%, rgba(4, 20, 44, 0.6) 55%, rgba(4, 20, 44, 0.35) 100%);

	/* Typography */
	--font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
	--font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

	/* Spacing: 8px base scale */
	--space-1: 8px;
	--space-2: 16px;
	--space-3: 24px;
	--space-4: 32px;
	--space-6: 48px;
	--space-8: 64px;
	--space-10: 80px;
	--space-12: 96px;
	--space-15: 120px;

	/* Section rhythm: mobile first, overridden at breakpoints */
	--section-pad-text: var(--space-8);      /* 64px mobile -> 120px desktop */
	--section-pad-feature: 56px;             /* 56px mobile -> 100px desktop */

	/* Measure */
	--container: 1180px;
	--container-narrow: 760px;
	--container-wide: 1440px;
	--hero-measure: 1000px;          /* hero text block; was 760px */
	--gutter: var(--space-3);

	/* Motion */
	--ease: cubic-bezier(0.4, 0, 0.2, 1);
	--transition: 0.2s ease;
	--transition-slow: 0.3s ease;
	--reveal-duration: 0.55s;

	/* Elevation: used on UI only, never on photographs */
	--shadow-ui: 0 1px 2px rgba(4, 20, 44, 0.06), 0 8px 24px rgba(4, 20, 44, 0.08);
	--shadow-ui-hover: 0 2px 4px rgba(4, 20, 44, 0.08), 0 16px 40px rgba(4, 20, 44, 0.12);

	--header-height: 76px;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.is-nav-open {
	overflow: hidden;
}

img,
picture,
video,
svg {
	max-width: 100%;
	height: auto;
	display: block;
}

figure {
	margin: 0;
}

a {
	color: var(--color-secondary);
	text-decoration-color: rgba(2, 44, 109, 0.35);
	text-underline-offset: 3px;
	transition: color var(--transition), text-decoration-color var(--transition);
}

a:hover,
a:focus {
	color: var(--color-primary);
	text-decoration-color: currentColor;
}

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

button {
	font-family: inherit;
	font-size: inherit;
	cursor: pointer;
}

/* Visible, branded focus ring for keyboard users */
:focus-visible {
	outline: 3px solid var(--color-secondary);
	outline-offset: 3px;
	border-radius: 2px;
}

.screen-reader-text {
	position: absolute;
	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;
	top: -100px;
	left: var(--space-2);
	z-index: 999;
	padding: var(--space-2) var(--space-3);
	background-color: var(--color-white);
	color: var(--color-primary);
	font-weight: 700;
	text-decoration: none;
	transition: top var(--transition);
}

.skip-link:focus {
	top: var(--space-2);
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-family: var(--font-display);
	color: var(--color-primary);
	letter-spacing: -0.015em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.25rem, 7vw, 3.5rem);   /* 36px -> 56px */
	font-weight: 700;
	line-height: 1.08;
}

h2 {
	font-size: clamp(1.75rem, 5vw, 2.75rem);  /* 28px -> 44px */
	font-weight: 700;
	line-height: 1.14;
}

h3 {
	font-size: clamp(1.25rem, 2.6vw, 1.75rem); /* 20px -> 28px */
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

h4 {
	font-size: 1.1875rem; /* 19px */
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.005em;
}

p {
	margin: 0 0 var(--space-3);
}

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

.lead {
	font-size: 1.125rem;
	line-height: 1.75;
	color: var(--color-text-muted);
}

blockquote {
	margin: var(--space-4) 0;
	padding-left: var(--space-3);
	border-left: 2px solid var(--color-accent);
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-style: italic;
	color: var(--color-primary);
}

/* Eyebrow: small uppercase label above an h2. Used only where it carries meaning. */
.eyebrow {
	display: block;
	margin: 0 0 var(--space-2);
	font-family: var(--font-body);
	font-size: 0.75rem;    /* 12px */
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-secondary);
}

.eyebrow--light {
	color: var(--color-accent);
}

/* Heading-level utility: lets a semantic h2 take h3 sizing where hierarchy demands it */
.h3 {
	font-size: clamp(1.25rem, 2.6vw, 1.75rem);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.contact-form {
	margin-top: var(--space-6);
}

.contact-main .section__intro {
	margin-bottom: 0;
}

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

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

.container--narrow {
	max-width: var(--container-narrow);
}

.container--wide {
	max-width: var(--container-wide);
}

.section {
	padding-block: var(--section-pad-feature);
}

.section--text {
	padding-block: var(--section-pad-text);
}

.section--flush {
	padding-block: 0;
}

/* Gallery sits between two text sections and needs air on both sides.
   64px is the 8px-scale step; see the SPACING section of CLAUDE.md. */
.section--gallery {
	padding-block: var(--space-8);
}

.section--tight-top {
	padding-top: 0;
}

.section--off {
	background-color: var(--color-bg-off);
}

.section--primary {
	background-color: var(--color-primary);
	color: rgba(255, 255, 255, 0.86);
}

.section--primary h2,
.section--primary h3,
.section--primary h4 {
	color: var(--color-white);
}

.section__header {
	max-width: 720px;
	margin-bottom: var(--space-6);
}

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

.section__intro {
	margin-top: var(--space-3);
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--color-text-muted);
}

.section--primary .section__intro {
	color: rgba(255, 255, 255, 0.78);
}

/* ==========================================================================
   5. BUTTONS & LINKS
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	padding: 15px var(--space-4);
	border: 2px solid transparent;
	border-radius: 2px;
	font-family: var(--font-body);
	font-size: 0.9375rem;   /* 15px */
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:hover,
.btn:focus {
	transform: translateY(-1px);
}

/* Filled: for white/light backgrounds only */
.btn--primary {
	background-color: var(--color-secondary);
	border-color: var(--color-secondary);
	color: var(--color-white);
}

.btn--primary:hover,
.btn--primary:focus {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-white);
}

.btn--secondary {
	background-color: transparent;
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.btn--secondary:hover,
.btn--secondary:focus {
	background-color: var(--color-primary);
	color: var(--color-white);
}

/* Outlined white: the only button style permitted on top of photography */
.btn--outline-light {
	background-color: transparent;
	border-color: var(--color-white);
	color: var(--color-white);
}

.btn--outline-light:hover,
.btn--outline-light:focus {
	background-color: var(--color-white);
	border-color: var(--color-white);
	color: var(--color-primary);
}

.btn--gold {
	background-color: var(--color-accent);
	border-color: var(--color-accent);
	color: var(--color-primary);
}

.btn--gold:hover,
.btn--gold:focus {
	background-color: var(--color-accent-soft);
	border-color: var(--color-accent-soft);
	color: var(--color-primary);
}

/* Arrow text link: the quiet CTA used over imagery and inside cards */
.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--color-secondary);
}

.link-arrow::after {
	content: "";
	width: 26px;
	height: 1px;
	background-color: currentColor;
	transition: width var(--transition);
}

.link-arrow:hover::after,
.link-arrow:focus::after {
	width: 40px;
}

.link-arrow--light {
	color: var(--color-white);
}

.link-arrow--light:hover,
.link-arrow--light:focus {
	color: var(--color-accent);
}

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

.btn-group--center {
	justify-content: center;
}

/* ==========================================================================
   6. SITE HEADER
   ========================================================================== */

.site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	transition: background-color var(--transition-slow), box-shadow var(--transition-slow);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	min-height: var(--header-height);
}

/* Solid header on inner pages and once scrolled */
.site-header--solid,
.site-header.is-stuck {
	position: fixed;
	background-color: var(--color-primary);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-header--solid {
	position: absolute;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	min-width: 0;
	position: relative;
	z-index: 100;
}

.site-branding__link {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.site-branding__logo img {
	max-height: 48px;
	width: auto;
}

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

.site-branding__name {
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--color-white);
}

.site-branding__tagline {
	margin-top: 3px;
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-accent);
}

/* Mobile toggle */
.nav-toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: 0;
	/* Sit above the open drawer, which follows it in the markup */
	position: relative;
	z-index: 100;
}

.nav-toggle__bar {
	display: block;
	width: 24px;
	height: 2px;
	margin-inline: auto;
	background-color: var(--color-white);
	transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Navigation: mobile drawer */
.site-nav {
	position: fixed;
	inset: 0;
	z-index: 99;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	overflow-y: auto;
	padding: var(--space-10) var(--gutter) var(--space-8);
	background-color: var(--color-primary);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform var(--transition-slow), visibility var(--transition-slow);
}

.site-nav.is-open {
	transform: translateX(0);
	visibility: visible;
}

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

.site-nav__menu li {
	border-bottom: 1px solid var(--color-border-light);
}

.site-nav__menu a {
	display: block;
	padding: var(--space-2) 0;
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--color-white);
	text-decoration: none;
	transition: color var(--transition);
}

.site-nav__menu a:hover,
.site-nav__menu a:focus,
.site-nav__menu .current-menu-item > a,
.site-nav__menu .current_page_item > a {
	color: var(--color-accent);
}

/* Sub-pages: indented beneath their parent in the drawer */
.site-nav__menu .sub-menu {
	margin: 0 0 var(--space-2);
	padding: 0 0 0 var(--space-2);
	list-style: none;
}

.site-nav__menu .sub-menu li {
	border: 0;
}

.site-nav__menu .sub-menu a {
	padding: 6px 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.8);
}

.site-header__actions {
	display: none;
}

.site-nav__cta {
	margin-top: var(--space-6);
}

/* Admin bar offset: the logged-in toolbar must not overlap the fixed header */
.admin-bar .site-header {
	top: 46px;
}

@media (min-width: 783px) {
	.admin-bar .site-header {
		top: 32px;
	}
}

.admin-bar .site-nav {
	top: 46px;
}

@media (min-width: 783px) {
	.admin-bar .site-nav {
		top: 32px;
	}
}

/* ==========================================================================
   7. HERO, full-bleed photography
   ========================================================================== */

.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 92vh;
	min-height: 92svh;
	padding-bottom: var(--space-10);
	overflow: hidden;
	background-color: var(--color-primary);
}

.hero__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

/* CSS parallax: the background is fixed to the viewport, so it appears to sit
   still while the section scrolls over it. No scroll handler involved. */
.hero__media--parallax {
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center 35%;
	background-attachment: fixed;
}

/* On narrow screens the hero text runs the full height of the image, so the
   gradients alone leave it over bright sky. An even tint keeps it legible. */
@media (max-width: 899px) {
	.hero__media::after {
		background-color: rgba(4, 20, 44, 0.35);
	}
}

/* Home hero: the couple stand at the right of the frame. Narrow screens crop
   the sides, so hold the crop on them until the viewport is wide enough. */
.rm-bg--home-hero {
	background-position: 94% 50%;
}

@media (min-width: 900px) {
	.rm-bg--home-hero {
		background-position: center 50%;
	}
}

/* Two gradients: one down from the top so the transparent nav stays legible,
   one up from the bottom for the headline. The middle of the photograph is
   left clear. */
.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--overlay-hero-top), var(--overlay-hero);
	background-repeat: no-repeat, no-repeat;
	background-position: top center, bottom center;
	background-size: 100% 38%, 100% 100%;
}

/* Desktop: the text column sits on the left, so darken that side for
   contrast and let the image breathe on the right. */
@media (min-width: 900px) {
	.hero__media::after {
		background-image: var(--overlay-hero-left), var(--overlay-hero-top), var(--overlay-hero);
		background-repeat: no-repeat, no-repeat, no-repeat;
		background-position: left center, top center, bottom center;
		background-size: 100% 100%, 100% 38%, 100% 100%;
	}
}

.hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--hero-measure);
}

.hero__kicker {
	margin: 0 0 var(--space-3);
	font-family: var(--font-display);
	font-size: clamp(2.125rem, 9vw, 4.25rem);  /* 34px -> 68px: the original headline scale */
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -0.015em;
	color: var(--color-white);
	text-shadow: 0 2px 16px rgba(4, 20, 44, 0.35);
	text-wrap: balance;
}

/* The h1 carries the keyword. It sits under the kicker at a supporting size,
   by the client's direction, so the hero reads as it did before the SEO change. */
.hero__title {
	font-family: var(--font-body);
	font-size: clamp(1.125rem, 2.6vw, 1.5rem);  /* 18px -> 24px */
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.01em;
	color: var(--color-accent);
	text-shadow: 0 1px 10px rgba(4, 20, 44, 0.4);
}

.hero__subtitle {
	margin-top: var(--space-2);
	max-width: 74ch;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.7;
	letter-spacing: 0;
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 1px 10px rgba(4, 20, 44, 0.4);
}

.hero__verse {
	margin: var(--space-3) 0 0;
	padding-left: var(--space-2);
	font-size: 1.0625rem;
	color: var(--color-white);
	text-shadow: 0 1px 10px rgba(4, 20, 44, 0.4);
}

.hero__verse cite {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--color-accent);
	white-space: nowrap;
}

.hero__intro {
	margin: var(--space-3) 0 0;
	max-width: 74ch;
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 1px 10px rgba(4, 20, 44, 0.4);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3);
	margin-top: var(--space-4);
}

/* Inner-page hero: shorter, same visual language */
.page-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 46vh;
	padding-top: calc(var(--header-height) + var(--space-6));
	padding-bottom: var(--space-6);
	overflow: hidden;
	background-color: var(--color-primary);
}

.page-hero__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.page-hero__media--parallax {
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center 40%;
	background-attachment: fixed;
}

/* Subjects sit high in the frame: pull the crop up so faces aren't cut. */
.page-hero--focus-top .page-hero__media--parallax {
	background-position: center 26%;
}

/* iOS ignores fixed attachment and mis-scales cover with it, and a fixed
   background repaints badly on touch scrolling. Fall back to a static cover. */
@media (hover: none) and (pointer: coarse) {
	.hero__media--parallax,
	.page-hero__media--parallax {
		background-attachment: scroll;
	}
}

.page-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--overlay-page-hero);
}

.page-hero__content {
	position: relative;
	z-index: 2;
	max-width: var(--hero-measure);
}

.page-hero__title {
	font-size: clamp(2.5rem, 7.5vw, 4.5rem);   /* 40px -> 72px */
	font-weight: 700;
	color: var(--color-white);
	line-height: 1.08;
	letter-spacing: -0.015em;
}

.page-hero__subtitle {
	margin-top: var(--space-3);
	max-width: 72ch;
	font-family: var(--font-body);
	font-size: clamp(1.125rem, 1.8vw, 1.375rem);   /* 18px -> 22px */
	text-wrap: pretty;   /* often an h2: don't inherit the headings' balanced wrapping */
	font-weight: 400;
	line-height: 1.7;
	letter-spacing: 0;
	color: rgba(255, 255, 255, 0.88);
}

.page-hero__subtitle--lead {
	margin-top: var(--space-3);
	font-family: var(--font-display);
	font-size: clamp(1.375rem, 3vw, 2rem);
	font-weight: 600;
	line-height: 1.25;
	color: var(--color-accent);
}

.page-hero .hero__actions {
	margin-top: var(--space-4);
}

/* No-image variant: typographic, sits on the navy */
.page-hero--plain {
	min-height: 0;
	padding-top: calc(var(--header-height) + var(--space-6));
	padding-bottom: var(--space-8);
}

/* ==========================================================================
   8. STORY / ABOUT, image + text
   ========================================================================== */

.story {
	display: grid;
	gap: var(--space-6);
	align-items: center;
}

.story__media img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

/* Compact square portrait: for headshot sources too small to fill the
   full 4:5 column without upscaling. Capped near native width. */
.story__media--compact img {
	max-width: 300px;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
}

.story__media--compact .story__caption {
	max-width: 300px;
	text-align: center;
}

.story__body > * + * {
	margin-top: var(--space-3);
}

.story__text p {
	margin-bottom: var(--space-3);
}

.story__actions {
	margin-top: var(--space-6);
}

/* Full-width atmospheric image above contained text */
.story-banner__media img {
	width: 100%;
	aspect-ratio: 21 / 9;
	object-fit: cover;
}

/* ==========================================================================
   9. PILLARS / PROGRAM CARDS
   ========================================================================== */

.card-grid {
	display: grid;
	gap: var(--space-4);
}

.card {
	display: flex;
	flex-direction: column;
	padding: var(--space-4);
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
	transform: translateY(-3px);
	border-color: var(--color-secondary);
	box-shadow: var(--shadow-ui-hover);
}

/* Numeral acts as the visual anchor: no icon set required */
.card__index {
	display: block;
	margin-bottom: var(--space-2);
	font-family: var(--font-display);
	font-size: 0.8125rem;
	font-weight: 700;
	font-variant-numeric: lining-nums;
	letter-spacing: 0.12em;
	color: var(--color-secondary);
}

.card__rule {
	width: 40px;
	height: 3px;
	margin-bottom: var(--space-3);
	background-color: var(--color-accent);
}

.card__title {
	margin-bottom: var(--space-2);
}

.card__text {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--color-text-muted);
}

.card__link {
	margin-top: var(--space-3);
}

.card--on-primary {
	background-color: rgba(255, 255, 255, 0.04);
	border-color: var(--color-border-light);
}

.card--on-primary:hover {
	border-color: var(--color-accent);
	background-color: rgba(255, 255, 255, 0.07);
}

.card--on-primary .card__text {
	color: rgba(255, 255, 255, 0.78);
}

.card--on-primary .card__index {
	color: var(--color-accent);
}

/* Image-led card: photograph is the anchor */
.card-media {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	background-color: var(--color-white);
}

.card-media__media {
	position: relative;
	overflow: hidden;
}

.card-media__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}

.card-media:hover .card-media__media img {
	transform: scale(1.03);
}

.card-media__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(4, 20, 44, 0);
	transition: background-color var(--transition-slow);
}

.card-media:hover .card-media__media::after {
	background-color: rgba(4, 20, 44, 0.18);
}

.card-media__body {
	padding: var(--space-3) 0 0;
}

.card-media__title {
	margin-bottom: var(--space-1);
}

.card-media__text {
	font-size: 1rem;
	color: var(--color-text-muted);
}

/* Story figure caption: founder attribution under the portrait */
.story__caption {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 12px;
}

.story__caption-name {
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-primary);
}

.story__caption-role {
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	color: var(--color-text-muted);
}

.cta__footnote {
	margin-top: var(--space-4);
}

/* ==========================================================================
   9b. TEAM
   ========================================================================== */

.person {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: var(--space-3);
	align-items: start;
	padding-bottom: var(--space-4);
	border-bottom: 1px solid var(--color-border);
}

.person__media img,
.person__media .image-placeholder {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 50%;
}

.person__name {
	margin-bottom: 2px;
}

.person__role {
	margin-bottom: var(--space-2);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-secondary);
}

.person__bio {
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--color-text-muted);
}

/* Credential block: a single photograph with a caption beside it */
.credential {
	display: grid;
	gap: var(--space-4);
	align-items: center;
}

.credential__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.credential__label {
	display: block;
	margin-bottom: var(--space-1);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-secondary);
}

/* ==========================================================================
   10. STATS / IMPACT
   ========================================================================== */

.stats {
	display: grid;
	gap: var(--space-6);
}

.stat {
	padding-top: var(--space-3);
	border-top: 1px solid var(--color-border-light);
}

.stat__figure {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 7vw, 3.5rem);
	font-weight: 300;
	font-variant-numeric: lining-nums;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--color-accent);
}

.stat__label {
	display: block;
	margin-top: var(--space-2);
	font-size: 0.9375rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   11. GALLERY, the signature section
   ========================================================================== */

.gallery {
	display: grid;
	/* Columns are capped at 414px: the native width of the Uganda source
	   images. Upscaling past that turns them to mush. Raise the cap when
	   higher-resolution photography is supplied. */
	grid-template-columns: repeat(auto-fit, minmax(200px, 414px));
	justify-content: center;
	gap: 8px;
}

.gallery__item {
	position: relative;
	overflow: hidden;
}

.gallery__item img {
	width: 100%;
	height: 100%;
	max-height: 420px;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.gallery__item::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(4, 20, 44, 0);
	transition: background-color var(--transition-slow);
	pointer-events: none;
}

.gallery__item:hover::after {
	background-color: rgba(4, 20, 44, 0.22);
}

.gallery__item:hover img {
	transform: scale(1.04);
}

.gallery__caption {
	position: absolute;
	left: var(--space-3);
	bottom: var(--space-3);
	z-index: 2;
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-white);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.gallery__item:hover .gallery__caption {
	opacity: 1;
	transform: translateY(0);
}

/* ==========================================================================
   12. TESTIMONIAL, the quiet section
   ========================================================================== */

.testimonial {
	max-width: 780px;
	margin-inline: auto;
	text-align: center;
}

.testimonial__quote {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: var(--font-display);
	font-size: clamp(1.3125rem, 3.1vw, 1.625rem);
	font-style: italic;
	font-weight: 400;
	line-height: 1.55;
	color: var(--color-primary);
	text-wrap: pretty;
}

.testimonial__mark {
	display: block;
	margin-bottom: var(--space-3);
	font-family: var(--font-display);
	font-size: 3rem;
	line-height: 0.6;
	color: var(--color-accent);
}

.testimonial__attribution {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin-top: var(--space-4);
	font-style: normal;
}

.testimonial__name {
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--color-text);
}

.testimonial__role {
	font-size: 0.875rem;
	color: var(--color-text-muted);
}

/* ==========================================================================
   13. CTA BANNER
   ========================================================================== */

.cta {
	position: relative;
	overflow: hidden;
	background-color: var(--color-primary);
}

.cta__media {
	position: absolute;
	inset: 0;
}

.cta__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cta__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--overlay-cta);
}

.cta__inner {
	position: relative;
	z-index: 2;
	max-width: 880px;
	margin-inline: auto;
	padding-block: var(--space-10);
	text-align: center;
}

.cta__title {
	font-size: clamp(1.75rem, 5vw, 2.75rem);
	font-weight: 400;
	line-height: 1.15;
	color: var(--color-white);
}

.cta__text {
	margin-top: var(--space-3);
	font-size: 1.0625rem;
	color: rgba(255, 255, 255, 0.85);
}

/* Grow / Know / Sow: three large tiles on the navy */
.cta__inner--routes {
	max-width: var(--container);
}

.routes {
	display: grid;
	gap: var(--space-2);
	margin: var(--space-6) 0 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.routes__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: var(--space-4);
	border: 1px solid var(--color-border-light);
	border-top: 3px solid var(--color-accent);
	background-color: rgba(255, 255, 255, 0.03);
	color: var(--color-white);
	text-decoration: none;
	transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.routes__link:hover,
.routes__link:focus {
	background-color: rgba(255, 255, 255, 0.08);
	border-color: var(--color-accent);
	color: var(--color-white);
	transform: translateY(-3px);
}

.routes__prefix {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-accent);
}

.routes__word {
	margin-top: var(--space-1);
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 6vw, 3.5rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
}

.routes__text {
	margin-top: var(--space-2);
	font-size: 1rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.8);
}

.routes__text::after {
	content: " \2192";
	color: var(--color-accent);
	transition: margin-left var(--transition);
}

@media (min-width: 900px) {
	.routes {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--space-3);
	}
}

.cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-2);
	margin-top: var(--space-4);
}

/* ==========================================================================
   14. FORMS & CONTACT
   ========================================================================== */

.contact-layout {
	display: grid;
	gap: var(--space-8);
}

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

.contact-details__item {
	padding-block: var(--space-3);
	border-bottom: 1px solid var(--color-border);
}

.contact-details__item:first-child {
	padding-top: 0;
}

.contact-details__label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-secondary);
}

.contact-details__value {
	font-size: 1.0625rem;
	color: var(--color-text);
}

.contact-details__value a {
	text-decoration: none;
}

.form {
	display: grid;
	gap: var(--space-3);
}

.form__row {
	display: grid;
	gap: var(--space-3);
}

.form__field {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.form__label {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-text);
}

.form__required {
	color: var(--color-secondary);
}

.form__input,
.form__textarea,
.form__select {
	width: 100%;
	padding: 14px var(--space-2);
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--color-text);
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 2px;
	transition: border-color var(--transition), box-shadow var(--transition);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
	border-color: var(--color-secondary);
	box-shadow: 0 0 0 3px rgba(2, 44, 109, 0.12);
	outline: none;
}

.form__textarea {
	min-height: 160px;
	resize: vertical;
}

.form__help {
	font-size: 0.8125rem;
	color: var(--color-text-muted);
}

.form__actions {
	margin-top: var(--space-1);
}

.form__notice {
	padding: var(--space-2) var(--space-3);
	border-left: 3px solid var(--color-secondary);
	background-color: var(--color-bg-off);
	font-size: 0.9375rem;
}

.form__notice--success {
	border-left-color: #1F7A4D;
}

.form__notice--error {
	border-left-color: #B3261E;
}

/* Honeypot: hidden from humans, no !important needed */
.form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ==========================================================================
   15. PAGE / POST CONTENT
   ========================================================================== */

.entry-content > * + * {
	margin-top: var(--space-3);
}

.entry-content h2 {
	margin-top: var(--space-8);
}

.entry-content h3 {
	margin-top: var(--space-6);
}

.entry-content img {
	margin-block: var(--space-4);
}

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

.entry-content li + li {
	margin-top: var(--space-1);
}

.entry-meta {
	margin-bottom: var(--space-4);
	font-size: 0.875rem;
	letter-spacing: 0.04em;
	color: var(--color-text-muted);
}

.post-navigation {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-3);
	margin-top: var(--space-10);
	padding-top: var(--space-4);
	border-top: 1px solid var(--color-border);
}

/* Error page */
.error-404 {
	display: flex;
	align-items: center;
	min-height: 70vh;
	padding-top: var(--header-height);
	background-color: var(--color-primary);
	text-align: center;
}

.error-404__code {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(4rem, 16vw, 8rem);
	font-weight: 300;
	font-variant-numeric: lining-nums;
	line-height: 1;
	color: var(--color-accent);
}

.error-404__title {
	margin-top: var(--space-3);
	color: var(--color-white);
	font-weight: 400;
}

.error-404__text {
	margin-top: var(--space-3);
	color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   16. SITE FOOTER, dark, grounded anchor
   ========================================================================== */

.site-footer {
	position: relative;
	padding-top: 72px;
	padding-bottom: var(--space-6);
	background-color: var(--color-primary);
	color: rgba(255, 255, 255, 0.76);
	overflow: hidden;
}

.site-footer__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.site-footer__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.site-footer__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(4, 20, 44, 0.88);
}

.site-footer__inner {
	position: relative;
	z-index: 1;
	display: grid;
	gap: var(--space-6);
}

.site-footer a {
	color: rgba(255, 255, 255, 0.76);
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
	color: var(--color-accent);
}

.site-footer__name {
	font-family: var(--font-display);
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--color-white);
}

.site-footer__tagline {
	margin-top: var(--space-2);
	max-width: 34ch;
	font-size: 0.9375rem;
	line-height: 1.7;
}

.site-footer__heading {
	margin-bottom: var(--space-3);
	font-family: var(--font-body);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-accent);
}

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

.site-footer__menu li + li {
	margin-top: 10px;
}

.site-footer__contact {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
	line-height: 1.7;
}

.site-footer__contact li + li {
	margin-top: var(--space-2);
}

.social-links {
	display: flex;
	gap: var(--space-2);
	margin-top: var(--space-3);
	padding: 0;
	list-style: none;
}

.social-links__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--color-border-light);
	border-radius: 50%;
	transition: background-color var(--transition), border-color var(--transition);
}

.social-links__link:hover,
.social-links__link:focus {
	background-color: var(--color-accent);
	border-color: var(--color-accent);
}

.social-links__link:hover svg,
.social-links__link:focus svg {
	fill: var(--color-primary);
}

.social-links__link svg {
	width: 18px;
	height: 18px;
	fill: var(--color-white);
	transition: fill var(--transition);
}

.site-footer__bottom {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-2);
	margin-top: var(--space-8);
	padding-top: var(--space-3);
	border-top: 1px solid var(--color-border-light);
	font-size: 0.8125rem;
}

/* ==========================================================================
   16b. CONTENT PATTERNS: statements, accordions, timeline, carousel, forms
   ========================================================================== */

.entry-content > :first-child {
	margin-top: 0;
}

.lead--large {
	font-family: var(--font-display);
	font-size: clamp(1.1875rem, 2.4vw, 1.4375rem);
	line-height: 1.6;
	color: var(--color-primary);
}

.lead--spaced {
	margin-top: var(--space-3);
}

.section__body {
	margin-top: var(--space-6);
}

blockquote cite {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--color-secondary);
	white-space: nowrap;
}

/* Linked card title: the whole card is the hit area */
.card--linked {
	position: relative;
}

.card__title-link {
	color: inherit;
	text-decoration: none;
}

.card__title-link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.card--linked:focus-within {
	border-color: var(--color-secondary);
}

.story__media .story__img--square {
	aspect-ratio: 1 / 1;
}

/* Pull quote: one founder line, given room */
.pull-quote {
	margin: 0 0 var(--space-8);
	padding: 0;
	border: 0;
	font-size: clamp(1.375rem, 3.2vw, 1.875rem);
	line-height: 1.45;
	text-wrap: pretty;
}

.pull-quote::before {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin-bottom: var(--space-3);
	background-color: var(--color-accent);
}

/* Statement: a full navy break with one argument in it */
.statement > * + * {
	margin-top: var(--space-3);
}

.statement__lead {
	font-family: var(--font-display);
	font-size: clamp(1.1875rem, 2.4vw, 1.4375rem);
	line-height: 1.6;
	color: var(--color-white);
}

.statement__small {
	padding-top: var(--space-3);
	border-top: 1px solid var(--color-border-light);
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.7);
}

.statement .hero__actions,
.statement .story__actions {
	margin-top: var(--space-4);
}

/* Accordion: native <details>, closed by default, no script needed */
.accordion {
	border-top: 1px solid var(--color-border);
}

.accordion__item {
	border-bottom: 1px solid var(--color-border);
}

.accordion__summary {
	position: relative;
	display: block;
	padding: var(--space-3) var(--space-6) var(--space-3) 0;
	cursor: pointer;
	list-style: none;
}

.accordion__summary::-webkit-details-marker {
	display: none;
}

.accordion__summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: var(--space-1);
	width: 10px;
	height: 10px;
	margin-top: -7px;
	border-right: 2px solid var(--color-secondary);
	border-bottom: 2px solid var(--color-secondary);
	transform: rotate(45deg);
	transition: transform var(--transition);
}

.accordion__item[open] > .accordion__summary::after {
	margin-top: -2px;
	transform: rotate(-135deg);
}

.accordion__question {
	font-size: clamp(1.125rem, 2.2vw, 1.3125rem);
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.005em;
	transition: color var(--transition);
}

.accordion__summary:hover .accordion__question {
	color: var(--color-secondary);
}

.accordion__answer {
	padding: 0 0 var(--space-4);
	max-width: 64ch;
	color: var(--color-text-muted);
}

.question-group {
	margin-top: var(--space-8);
}

.question-group__title {
	margin-bottom: var(--space-3);
	font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Timeline: sideways scroll-snap. Entries work with or without a photo. */
.timeline {
	margin-top: var(--space-10);
}

.timeline__title {
	margin-bottom: var(--space-4);
}

.timeline__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(220px, 70%);
	gap: var(--space-3);
	margin: 0;
	padding: 0 0 var(--space-3);
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
}

.timeline__item {
	position: relative;
	padding-top: var(--space-3);
	border-top: 3px solid var(--color-accent);
	scroll-snap-align: start;
}

.timeline__media {
	margin-top: var(--space-2);
}

/* A crest or logo, not a photograph: shown at its own size, never cropped */
.timeline__media--badge {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	background-color: var(--color-white);
}

.timeline__media--badge img {
	width: auto;
	max-width: 70%;
	aspect-ratio: auto;
	object-fit: contain;
}

.timeline__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.timeline__year {
	display: block;
	font-family: var(--font-display);
	font-size: 2rem;
	font-weight: 300;
	font-variant-numeric: lining-nums;
	line-height: 1.1;
	color: var(--color-primary);
}

.timeline__text {
	margin-top: var(--space-1);
	font-size: 0.9375rem;
	color: var(--color-text-muted);
}

/* Redemption DNA: three scriptures, each with its reading */
.dna {
	display: grid;
	gap: var(--space-8);
}

.dna__item {
	display: grid;
	gap: var(--space-3);
	padding-top: var(--space-4);
	border-top: 1px solid var(--color-border);
}

.dna__ref {
	color: var(--color-secondary);
}

.dna__verse {
	margin: 0;
	line-height: 1.55;
}

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

/* Sign-up: text beside a short form */
.signup {
	display: grid;
	gap: var(--space-4);
}

.signup .form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

.form__check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 0.9375rem;
}

.form__checkbox {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 3px 0 0;
	accent-color: var(--color-secondary);
}

.form__context {
	padding: 12px var(--space-2);
	border-left: 3px solid var(--color-accent);
	background-color: var(--color-bg-off);
	font-size: 0.9375rem;
	font-weight: 600;
}

/* Basis of Faith */
.beliefs {
	margin: var(--space-3) 0 0;
	padding: 0;
	list-style: none;
	counter-reset: belief;
}

.beliefs__item {
	position: relative;
	padding: var(--space-2) 0 var(--space-2) var(--space-6);
	border-bottom: 1px solid var(--color-border);
	counter-increment: belief;
}

.beliefs__item::before {
	content: counter(belief, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: var(--space-2);
	font-family: var(--font-display);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.9;
	color: var(--color-secondary);
}

.source-note {
	margin-top: var(--space-4);
	font-size: 0.875rem;
	color: var(--color-text-muted);
}

/* Uganda support carousel */
.carousel-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-3);
	margin-bottom: var(--space-4);
}

.carousel__controls {
	display: flex;
	gap: var(--space-1);
}

.carousel__controls[hidden] {
	display: none;
}

.carousel__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--color-border);
	border-radius: 50%;
	background-color: var(--color-white);
	cursor: pointer;
	transition: border-color var(--transition), background-color var(--transition);
}

.carousel__btn:hover,
.carousel__btn:focus-visible {
	border-color: var(--color-secondary);
	background-color: var(--color-bg-off);
}

.carousel__btn svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: var(--color-primary);
	stroke-width: 2;
}

.carousel {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 82%;
	gap: 12px;
	margin: 0;
	padding: 0 var(--gutter) var(--space-2);
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--gutter);
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
}

.carousel__slide {
	scroll-snap-align: start;
}

.carousel__slide img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.carousel__caption {
	margin-top: 12px;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--color-text-muted);
}

.carousel__title {
	display: block;
	font-family: var(--font-display);
	font-size: 1.125rem;
	color: var(--color-primary);
}

/* Learning Centre library search */
.library-search__title {
	margin-bottom: var(--space-4);
}

.library-search {
	display: grid;
	gap: var(--space-3);
	align-items: end;
}

.library-search__actions .btn {
	width: 100%;
	justify-content: center;
}

.video-grid {
	display: grid;
	gap: var(--space-4);
	margin-top: var(--space-8);
}

.video-grid__item iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
}

.empty-state {
	max-width: var(--container-narrow);
}

.empty-state .link-arrow {
	margin-top: var(--space-3);
}

/* Redemption Education */
.split {
	display: grid;
	gap: var(--space-8);
}

.split__main > * + * {
	margin-top: var(--space-3);
}

.included {
	padding: var(--space-4);
	background-color: var(--color-primary);
	color: rgba(255, 255, 255, 0.86);
}

.included__title {
	margin-bottom: var(--space-3);
	font-size: clamp(1.375rem, 2.6vw, 1.75rem);
	color: var(--color-white);
}

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

.included__item {
	position: relative;
	padding: 12px 0 12px var(--space-4);
	border-top: 1px solid var(--color-border-light);
	font-size: 0.9375rem;
}

.included__item::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 20px;
	width: 12px;
	height: 7px;
	border-left: 2px solid var(--color-accent);
	border-bottom: 2px solid var(--color-accent);
	transform: rotate(-45deg);
}

.standout {
	display: grid;
	gap: var(--space-4);
}

.standout__line {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.625rem, 4vw, 2.5rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: var(--color-primary);
	text-wrap: balance;
}

.standout__line::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin-top: var(--space-3);
	background-color: var(--color-accent);
}

.standout__media {
	margin-top: var(--space-4);
}

.standout__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.standout__body h2 {
	margin-bottom: var(--space-2);
}

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

@media (min-width: 600px) {
	.timeline__track {
		grid-auto-columns: minmax(220px, 40%);
	}

	.carousel {
		grid-auto-columns: 46%;
	}

	.video-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.library-search {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.timeline__track {
		grid-auto-columns: minmax(220px, calc((100% - 3 * var(--space-3)) / 4));
	}

	.carousel {
		grid-auto-columns: minmax(300px, 30%);
		gap: var(--space-2);
		padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
		scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
	}

	.dna__item {
		grid-template-columns: 0.9fr 1.1fr;
		column-gap: var(--space-8);
		align-items: start;
	}

	.dna__ref {
		grid-column: 1 / -1;
	}

	.signup {
		grid-template-columns: 1fr 1fr;
		gap: var(--space-10);
		align-items: center;
	}

	.library-search {
		display: flex;
		flex-wrap: wrap;
	}

	.library-search .form__field {
		flex: 1 1 180px;
	}

	.library-search .library-search__keyword {
		flex: 2 1 280px;
	}

	.library-search__actions .btn {
		width: auto;
	}

	.split {
		grid-template-columns: 1.15fr 0.85fr;
		gap: var(--space-10);
		align-items: start;
	}

	.included {
		padding: var(--space-6);
	}

	.standout {
		grid-template-columns: 1fr 1fr;
		gap: var(--space-10);
		align-items: start;
	}
}

/* ==========================================================================
   17. SCROLL REVEAL
   ========================================================================== */

.reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity var(--reveal-duration) ease-out, transform var(--reveal-duration) ease-out;
}

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

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms;
		animation-iteration-count: 1;
		transition-duration: 0.01ms;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}

	.hero__media--parallax,
	.page-hero__media--parallax {
		background-attachment: scroll;
	}
}

/* ==========================================================================
   18. BREAKPOINTS, mobile first, queries go up
   ========================================================================== */

@media (min-width: 600px) {
	:root {
		--gutter: var(--space-4);
	}

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


	.stats {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--space-4);
	}

	.form__row--split {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	:root {
		--section-pad-text: var(--space-15);      /* 120px */
		--section-pad-feature: var(--space-12);   /* 96px  */
		--gutter: var(--space-6);
		--header-height: 92px;
	}

	body {
		font-size: 17px;
	}

	h1 {
		font-size: clamp(3.5rem, 5vw, 4rem);      /* 56px floor per CLAUDE.md */
	}

	h2 {
		font-size: clamp(2.5rem, 3.6vw, 3rem);    /* 40px floor per CLAUDE.md */
	}

	.card-grid--3 {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--space-4);
	}

	.card-grid--2 {
		gap: var(--space-4);
	}

	.card {
		padding: var(--space-4) var(--space-4) var(--space-6);
	}

	.gallery {
		gap: 10px;
	}

	.gallery__item img {
		max-height: none;
		aspect-ratio: 1 / 1;
	}

	.stats {
		grid-template-columns: repeat(4, 1fr);
		gap: var(--space-4);
	}

	.story {
		grid-template-columns: 1fr 1fr;
		gap: var(--space-10);
	}

	.story--media-right .story__media {
		order: 2;
	}

	.story--wide-text {
		grid-template-columns: 1.1fr 0.9fr;
	}

	.person {
		grid-template-columns: 120px 1fr;
		gap: var(--space-4);
	}

	.person__media img,
	.person__media .image-placeholder {
		width: 120px;
		height: 120px;
	}

	.credential {
		grid-template-columns: 1fr 1fr;
		gap: var(--space-8);
	}

	.contact-layout {
		grid-template-columns: 1.15fr 0.85fr;
		gap: var(--space-12);
		align-items: start;
	}

	.hero {
		min-height: 100vh;
		min-height: 100svh;
		padding-bottom: var(--space-12);
	}

	.page-hero {
		min-height: 54vh;
		padding-bottom: var(--space-10);
	}

	/* Text-only heroes size to their content. Without this, the rule above
	   out-ranks .page-hero--plain by source order and stretches them. */
	.page-hero--plain {
		min-height: 0;
		padding-top: calc(var(--header-height) + var(--space-10));
		padding-bottom: var(--space-10);
	}

	.cta__inner {
		padding-block: var(--space-15);
	}

	.testimonial__quote {
		font-size: 1.625rem;
	}

	.site-footer__inner {
		grid-template-columns: 1.4fr 0.8fr 1fr;
		gap: var(--space-8);
	}

	.site-branding__logo img {
		max-height: 56px;
	}

	.site-branding__name {
		font-size: 1.3125rem;
	}
}

@media (min-width: 1200px) {
	.hero__kicker {
		font-size: 4.25rem;
	}
}

/* Desktop navigation: horizontal, no drawer. Held until 1200px because the
   five top-level items do not fit on one line below that. Sub-pages open as
   dropdowns on hover and on keyboard focus. */
@media (min-width: 1200px) {
	.nav-toggle {
		display: none;
	}

	.site-nav {
		position: static;
		inset: auto;
		display: block;
		padding: 0;
		background: none;
		transform: none;
		visibility: visible;		overflow: visible;    /* the drawer scrolls; the bar must not clip its dropdowns */
	}

	.site-nav__menu {
		display: flex;
		align-items: center;
		gap: var(--space-3);
	}

	.site-nav__menu li {
		border: 0;
	}

	.site-nav__menu a {
		padding: var(--space-1) 0;
		white-space: nowrap;
		font-family: var(--font-body);
		font-size: 0.875rem;
		font-weight: 600;
		letter-spacing: 0.06em;
		text-transform: uppercase;
	}

	.site-nav__cta {
		display: none;
	}

	.site-header__actions {
		display: block;
	}

	.site-header__actions .btn {
		padding: 12px var(--space-3);
		font-size: 0.8125rem;
	}

	.site-nav__menu > li {
		position: relative;
	}

	.site-nav__menu .sub-menu {
		position: absolute;
		top: 100%;
		left: calc(var(--space-2) * -1);
		z-index: 10;
		min-width: 220px;
		margin: 0;
		padding: var(--space-1) 0;
		background-color: var(--color-primary);
		box-shadow: var(--shadow-ui-hover);
		opacity: 0;
		visibility: hidden;
		transform: translateY(4px);
		transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
	}

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

	.site-nav__menu .sub-menu a {
		padding: 10px var(--space-2);
		font-size: 0.8125rem;
		white-space: nowrap;
	}

	.site-nav__menu .menu-item-has-children > a::after {
		content: "";
		display: inline-block;
		width: 6px;
		height: 6px;
		margin: 0 0 3px 8px;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: rotate(45deg);
	}
}
