/* =========================================================
   U-Ctrl Research Institute — Design System
   Palette: minimal white ground, brand green + silver/graphite
   (matching the U-Ctrl logotype), no navy/blue.
   Typography: Crimson Pro (headings, academic) / Atkinson
   Hyperlegible (body, accessible).
   ========================================================= */

:root {
	--color-ink: #16191c;
	--color-navy: #23292f;
	--color-blue: #4f7d1f;
	--color-blue-light: #eef2f0;
	--color-green: #6fa82c;
	--color-green-dark: #4f7d1f;
	--color-green-tint: #eef6e2;
	--color-silver: #9aa1a7;
	--color-silver-dark: #5b6268;
	--color-silver-tint: #f1f2f3;
	--color-bg: #ffffff;
	--color-surface: #ffffff;
	--color-border: #e6e8e6;
	--color-text: #23272a;
	--color-text-muted: #62696d;
	--color-placeholder-bg: #f1f2f1;
	--color-placeholder-border: #cfd2cf;

	--font-heading: 'Crimson Pro', Georgia, serif;
	--font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;

	--container-w: 1240px;
	--radius: 10px;
	--radius-sm: 6px;
	--shadow-sm: 0 1px 2px rgba(20, 22, 20, 0.05), 0 1px 1px rgba(20, 22, 20, 0.04);
	--shadow-md: 0 8px 24px rgba(20, 22, 20, 0.08);
	--shadow-lg: 0 24px 48px -12px rgba(20, 22, 20, 0.18);
	--shadow-card-hover: 0 20px 40px -16px rgba(20, 22, 20, 0.16);
	--transition: 200ms ease;
	--transition-slow: 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

/*
 * --color-ink drives all heading/emphasis TEXT (on light or themed
 * surfaces) and must flip to a light tone in dark mode.
 * --color-navy is reserved for intentionally-dark SURFACES (footer,
 * contrast bands, placeholder cards) that already pair with hardcoded
 * light text, so it is deliberately NOT overridden here.
 */
:root[data-theme='dark'] {
	--color-bg: #101312;
	--color-surface: #171b1a;
	--color-border: #2a2f2d;
	--color-text: #eef1ee;
	--color-text-muted: #a9b0ac;
	--color-ink: #f2f5f2;
	--color-green-dark: #8fce55;
	--color-blue: #8fce55;
	--color-blue-light: #1b241c;
	--color-green-tint: #16260f;
	--color-silver-tint: #1d2120;
	--color-placeholder-bg: #191d1c;
	--color-placeholder-border: #303634;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme='light']) {
		--color-bg: #101312;
		--color-surface: #171b1a;
		--color-border: #2a2f2d;
		--color-text: #eef1ee;
		--color-text-muted: #a9b0ac;
		--color-ink: #f2f5f2;
		--color-green-dark: #8fce55;
		--color-blue: #8fce55;
		--color-blue-light: #1b241c;
		--color-green-tint: #16260f;
		--color-silver-tint: #1d2120;
		--color-placeholder-bg: #191d1c;
		--color-placeholder-border: #303634;
	}
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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;
	}
}
body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-blue); }
h1, h2, h3, h4 {
	font-family: var(--font-heading);
	color: var(--color-ink);
	line-height: 1.15;
	margin: 0 0 0.5em;
	font-weight: 600;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 4.4vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { max-width: 68ch; }
p.wide { max-width: none; }
ul, ol { padding-left: 1.25em; }

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

/* ---------- Layout ---------- */
.container {
	width: 100%;
	max-width: var(--container-w);
	margin: 0 auto;
	padding: 0 1.5rem;
}
.section { padding: clamp(3rem, 6vw, 6rem) 0; }
.section--alt { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section--tint { background: var(--color-green-tint); }
.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--color-green-dark);
	margin: 0 0 0.75em;
}
.eyebrow::before {
	content: '';
	display: inline-block;
	width: 28px;
	height: 2px;
	background: var(--color-green);
	border-radius: 2px;
}
.section-head--center .eyebrow { justify-content: center; }
.hero .eyebrow::before { background: #bfe08f; }
.grid { display: grid; gap: 1.75rem; }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	padding: 0.9em 1.65em;
	border-radius: var(--radius-sm);
	font-weight: 700;
	font-size: 0.98rem;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
	min-height: 44px;
}
.btn .icon { transition: transform var(--transition-slow); width: 1.1em; height: 1.1em; }
.btn:hover .icon { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-green); color: #0c1a06; box-shadow: 0 10px 24px -8px rgba(111, 168, 44, 0.55); }
.btn--primary:hover { background: var(--color-green-dark); color: #fff; box-shadow: 0 14px 30px -8px rgba(79, 125, 31, 0.55); }
.btn--outline { background: transparent; border-color: var(--color-ink); color: var(--color-ink); }
.btn--outline:hover { background: var(--color-navy); color: #fff; }
.btn--on-dark { background: #fff; color: #16191c; box-shadow: 0 10px 24px -8px rgba(0,0,0,0.35); }
.btn--on-dark:hover { background: var(--color-green); color: #0c1a06; }
.btn--ghost { background: transparent; color: var(--color-ink); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-ink); }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

.icon { width: 1.35em; height: 1.35em; flex-shrink: 0; }

/* ---------- Site header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(248, 250, 247, 0.85);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.site-header.is-scrolled {
	border-bottom-color: var(--color-border);
	box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.25);
	background: rgba(248, 250, 247, 0.96);
}
:root[data-theme='dark'] .site-header { background: rgba(11, 20, 16, 0.85); }
:root[data-theme='dark'] .site-header.is-scrolled { background: rgba(11, 20, 16, 0.96); }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme='light']) .site-header { background: rgba(11, 20, 16, 0.85); }
	:root:not([data-theme='light']) .site-header.is-scrolled { background: rgba(11, 20, 16, 0.96); }
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 0.85rem 1.5rem;
	max-width: var(--container-w);
	margin: 0 auto;
}
.site-branding { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.site-branding img { height: 48px; width: auto; }
@media (max-width: 480px) { .site-branding img { height: 38px; } }
.site-branding__name { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--color-ink); }
.site-branding__name span { color: var(--color-green); }

.primary-nav { display: flex; align-items: center; gap: 1.75rem; }
.primary-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.primary-nav a {
	color: var(--color-text);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.96rem;
	padding: 0.4em 0;
	border-bottom: 2px solid transparent;
	transition: color var(--transition), border-color var(--transition);
}
.primary-nav a:hover, .primary-nav a.is-active { color: var(--color-green-dark); border-color: var(--color-green); }

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 0.5em;
	cursor: pointer;
	min-width: 44px;
	min-height: 44px;
}
@media (max-width: 900px) {
	.primary-nav__menu { display: none; }
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.site-header.is-open .primary-nav__menu {
		display: block;
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--color-surface);
		border-bottom: 1px solid var(--color-border);
		padding: 1rem 1.5rem 1.5rem;
	}
	.site-header.is-open .primary-nav ul { flex-direction: column; gap: 0.25rem; }
	.header-cta { display: none; }
}

/* ---------- Hero / Parallax ---------- */
.hero {
	position: relative;
	overflow: hidden;
	color: var(--color-text);
	background:
		radial-gradient(130% 110% at 88% -10%, rgba(255, 255, 255, 0.65) 0%, transparent 45%),
		radial-gradient(90% 90% at 8% 105%, rgba(111, 168, 44, 0.10) 0%, transparent 55%),
		linear-gradient(175deg, #bfe6ef 0%, #d9eff5 35%, #eef8fa 70%, #ffffff 100%);
	padding: clamp(4.5rem, 11vw, 9rem) 0 clamp(5.5rem, 11vw, 9rem);
	border-bottom: 1px solid var(--color-border);
}
.hero__wave {
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	line-height: 0;
	z-index: 1;
}
.hero__wave svg { display: block; width: 100%; height: auto; }
.hero__wave--back { bottom: 18px; opacity: 0.55; color: #eaf6f9; }
.hero__wave--front { color: var(--color-bg); }
.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 26px, rgba(255,255,255,0.35) 27px, transparent 28px);
	background-size: 90px 90px;
	mask-image: radial-gradient(65% 65% at 80% 20%, #000 30%, transparent 78%);
	pointer-events: none;
	z-index: 1;
}
.hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(55% 60% at 85% 8%, rgba(255, 255, 255, 0.55), transparent 70%);
	pointer-events: none;
	z-index: 1;
}
.hero__bg-layer {
	position: absolute;
	inset: -10% -5%;
	background-size: cover;
	background-position: center;
	opacity: 0.05;
	filter: grayscale(1);
	will-change: transform;
	pointer-events: none;
}
.hero__decor {
	position: absolute;
	color: var(--color-silver);
	pointer-events: none;
	z-index: 1;
}
.hero__decor .icon { width: 100%; height: 100%; }
.hero__decor--1 { top: 12%; right: 8%; width: 44px; height: 44px; color: #2f8fae; opacity: 0.8; }
.hero__decor--2 { top: 62%; right: 20%; width: 28px; height: 28px; color: var(--color-silver-dark); opacity: 0.6; }
.hero__decor--3 { top: 30%; right: 32%; width: 20px; height: 20px; color: #2f8fae; opacity: 0.45; }
@media (max-width: 900px) { .hero__decor { display: none; } }
.hero__content { position: relative; z-index: 2; max-width: 760px; }
.hero .eyebrow { color: #436b19; }
.hero .eyebrow::before { background: var(--color-green); }
.hero h1 { color: #16191c; }
.hero p.lede { color: #37474d; font-size: 1.2rem; max-width: 58ch; }
/* Hero bg is always light — pin controls to dark ink so dark mode can't invert them */
.hero .btn--outline { border-color: #16191c; color: #16191c; }
.hero .btn--outline:hover { background: #23292f; color: #fff; }
.hero-stats {
	display: flex;
	gap: clamp(1.5rem, 4vw, 3rem);
	flex-wrap: wrap;
	margin-top: 2.75rem;
	padding-top: 2.25rem;
	border-top: 1px solid rgba(35, 41, 47, 0.14);
	position: relative;
	z-index: 2;
}
.hero-stats dt { font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; color: #436b19; }
.hero-stats dd { margin: 0; color: #37474d; font-size: 0.9rem; max-width: 24ch; }

[data-parallax] { will-change: transform; }

.parallax-band {
	position: relative;
	background: var(--color-navy);
	color: #fff;
	overflow: hidden;
}
.parallax-band__layer {
	position: absolute;
	inset: -15% 0;
	background-size: cover;
	background-position: center;
	opacity: 0.4;
}
.parallax-band::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(35,41,47,0.94) 0%, rgba(35,41,47,0.78) 45%, rgba(35,41,47,0.5) 100%);
	z-index: 1;
}
.parallax-band__content { position: relative; z-index: 2; }

/* ---------- Cards ---------- */
.card {
	position: relative;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 2rem 1.85rem;
	box-shadow: var(--shadow-sm);
	transition: box-shadow var(--transition-slow), transform var(--transition-slow), border-color var(--transition);
	overflow: hidden;
}
.card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--color-green), var(--color-blue));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--transition-slow);
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
	width: 56px; height: 56px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(155deg, var(--color-green-tint), var(--color-blue-light));
	color: var(--color-green-dark);
	border-radius: 50%;
	margin-bottom: 1.1rem;
	transition: transform var(--transition-slow);
}
.card:hover .card__icon { transform: scale(1.08) rotate(-4deg); }
.card__icon .icon { width: 26px; height: 26px; }
.card--clickable { cursor: pointer; }

.stat-block { text-align: center; }
.stat-block dt { font-family: var(--font-heading); font-size: clamp(2rem, 3.5vw, 2.8rem); color: var(--color-green-dark); font-weight: 700; }
.stat-block dd { margin: 0; color: var(--color-text-muted); font-size: 0.92rem; }

/* ---------- Donut ring (used on the Funding Request budget breakdown) ---------- */
.stat-ring {
	--pct: 0;
	--ring-color: var(--color-green);
	position: relative;
	width: 128px;
	height: 128px;
	border-radius: 50%;
	margin: 0 auto 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: conic-gradient(var(--ring-color) calc(var(--pct) * 1%), var(--color-border) 0);
}
.stat-ring::before {
	content: '';
	position: absolute;
	inset: 10px;
	border-radius: 50%;
	background: var(--color-surface);
}
.stat-ring__label {
	position: relative;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.3rem;
	color: var(--color-ink);
}

/* ---------- Placeholder media (used until real photos are supplied) ----------
   Styled as a deliberate editorial "figure pending" card rather than a
   wireframe, so the site reads as finished even before photos land. */
.media-placeholder {
	position: relative;
	background:
		radial-gradient(circle at 18% 20%, rgba(111, 168, 44, 0.16), transparent 45%),
		radial-gradient(circle at 82% 82%, rgba(154, 161, 167, 0.16), transparent 50%),
		linear-gradient(155deg, var(--color-navy) 0%, #14181b 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 0.65rem;
	color: #dfe4e0;
	padding: 2rem;
	min-height: 220px;
	box-shadow: var(--shadow-sm);
}
.media-placeholder::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
	background-size: 18px 18px;
	opacity: 0.5;
	pointer-events: none;
}
.media-placeholder__badge {
	position: relative;
	width: 56px; height: 56px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
}
.media-placeholder .icon { width: 26px; height: 26px; color: #bfe08f; }
.media-placeholder strong { position: relative; font-family: var(--font-heading); font-size: 1.05rem; color: #fff; font-weight: 600; }
.media-placeholder small { position: relative; font-size: 0.78rem; color: #b7bcb8; max-width: 26ch; }

/* ---------- Tags / badges ---------- */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.3em 0.7em;
	border-radius: 999px;
}
.badge--pending { background: #fdf2d6; color: #7a5c00; }
.badge--confirmed { background: var(--color-green-tint); color: var(--color-green-dark); }
.badge--info { background: var(--color-blue-light); color: var(--color-blue); }

/* ---------- Tables (budget breakdown) ---------- */
.budget-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.budget-table th, .budget-table td { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--color-border); }
.budget-table th { font-family: var(--font-heading); color: var(--color-ink); }
.budget-table tfoot td { font-weight: 700; border-top: 2px solid var(--color-ink); border-bottom: none; }
.budget-table .amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.budget-bar { height: 8px; border-radius: 4px; background: var(--color-border); overflow: hidden; margin-top: 0.4rem; }
.budget-bar span { display: block; height: 100%; background: var(--color-green); }
.table-scroll { overflow-x: auto; }

/* ---------- Timeline / roadmap ---------- */
.roadmap { display: grid; gap: 1.5rem; }
.roadmap__item {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 1.25rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--color-border);
}
.roadmap__year { font-family: var(--font-heading); font-weight: 700; color: var(--color-green-dark); font-size: 1.2rem; }
@media (max-width: 640px) { .roadmap__item { grid-template-columns: 1fr; gap: 0.4rem; } }

.research-area-row {
	display: grid;
	grid-template-columns: 90px 1fr;
	gap: 1.5rem;
	align-items: start;
	margin-bottom: 1.75rem;
}
@media (max-width: 560px) {
	.research-area-row { grid-template-columns: 1fr; gap: 0.75rem; }
	.research-area-row .card__icon { margin-bottom: 0; }
}

/* ---------- Quote / testimonial ---------- */
.quote-block {
	background: var(--color-surface);
	border-left: 4px solid var(--color-green);
	border-radius: var(--radius-sm);
	padding: 2rem 2rem 1.75rem;
	box-shadow: var(--shadow-md);
	font-family: var(--font-heading);
	font-size: 1.15rem;
	transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.quote-block:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.quote-block .icon { color: var(--color-green); width: 28px; height: 28px; margin-bottom: 0.5rem; }
.quote-block cite { display: block; margin-top: 0.75rem; font-style: normal; color: var(--color-text-muted); font-size: 0.9rem; }

/* ---------- Forms ---------- */
.uctrl-form { max-width: 640px; }
.uctrl-form-row { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.uctrl-form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.uctrl-form-row--split > div { display: flex; flex-direction: column; gap: 0.4rem; }
@media (max-width: 560px) { .uctrl-form-row--split { grid-template-columns: 1fr; } }
.uctrl-form label { font-weight: 700; font-size: 0.92rem; color: var(--color-ink); }
.uctrl-form input, .uctrl-form select, .uctrl-form textarea {
	font-family: var(--font-body);
	font-size: 1rem;
	padding: 0.75em 0.9em;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	color: var(--color-text);
	min-height: 44px;
}
.uctrl-form textarea { min-height: 120px; resize: vertical; }
.uctrl-form input:focus, .uctrl-form select:focus, .uctrl-form textarea:focus {
	border-color: var(--color-blue);
}
.uctrl-form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.uctrl-form-notice { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-weight: 600; }
.uctrl-form-notice--success { background: var(--color-green-tint); color: var(--color-green-dark); }
.uctrl-form-notice--error { background: #fdecec; color: #9c2b2b; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--color-navy); color: #d7ddd8; padding: 4rem 0 2rem; }
.site-footer::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--color-green), var(--color-blue), var(--color-green));
}
.site-footer a { color: #eaf1ec; text-decoration: none; }
.site-footer a:hover { color: var(--color-green); }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.92rem; }
.site-footer__bottom {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255,255,255,0.12);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.85rem;
	color: #93a4ad;
}

/* ---------- Gallery / lightbox ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	cursor: pointer;
	border: 1px solid var(--color-border);
	background: var(--color-surface);
}
.gallery-item img { width: 100%; height: 260px; object-fit: cover; transition: transform var(--transition); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
	padding: 0.75rem 1rem;
	font-size: 0.85rem;
	color: var(--color-text-muted);
	background: var(--color-surface);
}
.lightbox {
	position: fixed; inset: 0; z-index: 100;
	background: rgba(10, 16, 12, 0.92);
	display: none;
	align-items: center; justify-content: center;
	padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(90vw, 1100px); max-height: 82vh; border-radius: var(--radius); }
.lightbox__caption { color: #eaf1ec; text-align: center; margin-top: 1rem; max-width: 70ch; }
.lightbox__close {
	position: absolute; top: 1.25rem; right: 1.25rem;
	width: 44px; height: 44px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,0.12); color: #fff;
	border: none; border-radius: 50%; cursor: pointer;
}

/* ---------- Skip link ---------- */
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 200;
	background: var(--color-navy); color: #fff; padding: 0.9em 1.4em; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.divider { height: 1px; background: var(--color-border); border: none; margin: 3rem 0; }
.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
