/* ---------------------------------------------------------------------------
   CONAHST public site — prospectus design system.

   Scope: public-facing pages only. The dashboard keeps dashboard/css/*, and
   the previous public stylesheet (styles.css) is untouched so pages not yet
   migrated keep working. Pages move onto this file one at a time.

   The treatment is institutional rather than promotional: a flat colour field
   instead of a photographic hero, an editorial serif carrying the reading, a
   single accent, and rules instead of cards and shadows. Photography belongs
   in the gallery, news and programme pages, not shouting from the header.
   --------------------------------------------------------------------------- */

:root {
	/* Light only, and declared so the browser does not auto-darken form
	   controls and scrollbars for a visitor whose system is set to dark. The
	   navy field already carries the contrast this design needs; a second
	   palette would double the surface for a page that is read once by a
	   prospective student, not lived in like the dashboard. */
	color-scheme: light;

	/* Navy is derived from the existing brand blue (#133a82), darkened for a
	   flat field that white text sits on at full contrast. */
	--site-navy:        #0e1c40;
	--site-navy-2:      #16264f;

	--site-paper:       #ffffff;
	--site-paper-2:     #f7f8fa;
	--site-ink:         #15192b;
	--site-ink-2:       #454c62;
	--site-muted:       #6b7385;
	--site-rule:        #dcdfe7;

	/* The accent is the terracotta of the college roof, which also gives the
	   navy/red pairing this treatment depends on. Used sparingly: calls to
	   action, section markers, hover. */
	--site-accent:      #c8402f;
	--site-accent-ink:  #a83324;

	--site-onnavy:      #e8ecf6;
	--site-onnavy-mute: #a9b5d0;

	--site-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--site-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--site-measure: 66ch;
}

/* --------------------------------------------------------------- base ---- */

/* Scoped to the public shell rather than a global `*`, so the dashboard's own
   stylesheets are unaffected. Without it, .site-btn--block computes 100% width
   plus 60px of padding and 4px of border, and overflows the viewport on a
   phone. */
.site-body,
.site-body *,
.site-body *::before,
.site-body *::after {
	box-sizing: border-box;
}

.site-body {
	margin: 0;
	background: var(--site-paper);
	color: var(--site-ink);
	font-family: var(--site-sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

/* The element resets below are wrapped in :where() so they carry zero
   specificity. Written as `.site-body p` they score (0,1,1) and beat any
   single-class component rule — which silently discarded `margin: 0 auto` on
   .site-lead and stopped it centring. Keeping the reset at zero specificity
   means a component class always wins without needing longer selectors. */
:where(.site-body) :where(h1, h2, h3),
.site-serif {
	font-family: var(--site-serif);
	font-weight: 400;
	letter-spacing: -0.005em;
	text-wrap: balance;
	margin: 0;
}

:where(.site-body) :where(p) { margin: 0; }
:where(.site-body) :where(a) { color: inherit; }
:where(.site-body) :where(img) { max-width: 100%; }

.site-wrap {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 28px;
}

.site-label {
	font-family: var(--site-sans);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--site-muted);
}

.site-skip {
	position: absolute;
	left: -9999px;
}
.site-skip:focus {
	left: 16px;
	top: 16px;
	z-index: 100;
	background: #fff;
	color: var(--site-navy);
	padding: 12px 18px;
	border: 2px solid var(--site-accent);
}

/* ------------------------------------------------------------- buttons ---- */

.site-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--site-sans);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	padding: 14px 30px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.site-btn:focus-visible {
	outline: 3px solid var(--site-accent);
	outline-offset: 3px;
}
.site-btn--accent { background: var(--site-accent); color: #fff; }
.site-btn--accent:hover { background: var(--site-accent-ink); }

/* Outlined on the navy field: the border carries the accent, the label stays
   white so it holds contrast against the dark ground. */
.site-btn--outline { border-color: var(--site-accent); color: #fff; }
.site-btn--outline:hover { background: var(--site-accent); }

.site-btn--quiet { border-color: var(--site-navy); color: var(--site-ink); }
.site-btn--quiet:hover { border-color: var(--site-accent); color: var(--site-accent); }

.site-btn--block { width: 100%; }

/* -------------------------------------------------------------- header ---- */

.site-util {
	background: var(--site-navy);
	color: var(--site-onnavy-mute);
	font-size: 0.78rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.site-util .site-wrap {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	min-height: 38px;
	align-items: center;
	flex-wrap: wrap;
}
.site-util a { text-decoration: none; }
.site-util a:hover { color: #fff; text-decoration: underline; }

.site-header { background: var(--site-navy); color: #fff; }
.site-header .site-wrap {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: 82px;
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	margin-right: auto;
	color: #fff;
}
.site-brand__mark {
	width: 64px;
	height: 64px;
	flex: none;
	border-radius: 50%;
	background: #fff;
	object-fit: contain;
	padding: 3px;
}
.site-brand__name {
	display: block;
	font-family: var(--site-serif);
	font-size: 1.16rem;
	line-height: 1.15;
	letter-spacing: 0.01em;
}
.site-brand__sub {
	display: block;
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--site-onnavy-mute);
}

.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
	text-decoration: none;
	font-size: 0.88rem;
	color: var(--site-onnavy);
	padding: 4px 0;
	border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--site-accent); }

.site-nav-toggle {
	display: none;
	background: none;
	border: 1.5px solid rgba(255, 255, 255, 0.4);
	color: #fff;
	padding: 9px 14px;
	font-family: var(--site-sans);
	font-size: 0.85rem;
	cursor: pointer;
}

/* ---------------------------------------------------------------- hero ---- */

.site-hero {
	/* The navy stays as the ground beneath the photographs. If an image is slow
	   or never arrives — a real possibility on a poor connection — the hero
	   falls back to the flat field the site used before, not to bare white. */
	background: var(--site-navy);
	color: #fff;
	text-align: center;
	padding: 76px 0 96px;
	position: relative;
	overflow: hidden;

	/* Required, not decorative. The slides and scrim sit at negative z-index;
	   without a stacking context here they paint behind this element's own
	   background colour, and the navy hides the photographs completely. */
	isolation: isolate;

	/* Read by the CSS below and by the controls in site-motion.js, so the two
	   cannot disagree about how long a cycle lasts. */
	--hero-cycle: 28s;
	--hero-count: 3;
	--hero-fade: 1.68s;   /* 6% of the cycle — see the keyframes below */
}

/* ---------------------------------------------------- hero backgrounds ---- */

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

.site-hero__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
}

/* Image URLs live here rather than in a style attribute on the element: the
   project forbids inline styling, and WhiteNoise's CompressedStaticFilesStorage
   does not hash filenames, so a relative path from this stylesheet resolves
   correctly. If storage ever moves to a hashing backend these become
   {% static %} references and move back to the template. */
.site-hero__slide--campus { background-image: url("../images/hero/campus.webp"); }
.site-hero__slide--skills { background-image: url("../images/hero/skills.webp"); }
.site-hero__slide--lab    { background-image: url("../images/hero/lab.webp"); }

/* Without JavaScript the first photograph simply stays: no cross-fade, but a
   hero that is complete rather than empty. */
.site-hero__slide:first-child { opacity: 1; }

.js-motion .site-hero__slide {
	animation: site-hero-fade var(--hero-cycle, 28s) infinite;
}
/* Every delay is pulled back by one fade length so slide one is already
   faded in at t=0. Without that the hero opens on bare navy for the duration
   of the first fade. */
.js-motion .site-hero__slide:nth-child(1) { animation-delay: calc(var(--hero-cycle) / var(--hero-count) * 0 - var(--hero-fade)); }
.js-motion .site-hero__slide:nth-child(2) { animation-delay: calc(var(--hero-cycle) / var(--hero-count) * 1 - var(--hero-fade)); }
.js-motion .site-hero__slide:nth-child(3) { animation-delay: calc(var(--hero-cycle) / var(--hero-count) * 2 - var(--hero-fade)); }
.js-motion .site-hero__slide:nth-child(4) { animation-delay: calc(var(--hero-cycle) / var(--hero-count) * 3 - var(--hero-fade)); }

/* Tuned for three slides. The hold ends at 33.333% — exactly the spacing
   between slides — and the fade-out then runs over the same 6% that the next
   slide's fade-in occupies, so the two ramps cross and always sum to full
   coverage. Earlier values left the hero briefly showing bare navy between
   photographs; simulated worst-case coverage is now 1.00.

   A slow drift in scale gives life without moving the text. */
@keyframes site-hero-fade {
	0%       { opacity: 0; transform: scale(1.055); }
	6%       { opacity: 1; }
	33.333%  { opacity: 1; }
	39.333%  { opacity: 0; }
	100%     { opacity: 0; transform: scale(1); }
}

/* The scrim, built for centred text: an even wash carries the contrast where
   the words are, and a vignette keeps the frame from reading as a flat panel.
   A left-heavy gradient would be wrong here — nothing sits on the left. */
.site-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: -2;
	/* Tuned against the real photographs, not the mockup's pale stand-ins: the
	   first values buried the image almost entirely. These keep white text well
	   clear of the 4.5:1 contrast floor while the photograph stays legible. */
	background:
		radial-gradient(85% 70% at 50% 46%, rgba(9, 26, 62, .62) 0%, rgba(9, 26, 62, .50) 55%, rgba(9, 26, 62, .34) 100%),
		linear-gradient(to bottom, rgba(6, 18, 44, .58) 0%, rgba(6, 18, 44, .18) 38%, rgba(6, 18, 44, .58) 100%);
}

.site-hero__controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 22px;
	z-index: 2;
}
.site-hero__controls .site-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
}
.site-hero__dots { display: flex; gap: 9px; list-style: none; margin: 0; padding: 0; }
.site-hero__dots button {
	width: 34px;
	height: 3px;
	border: 0;
	padding: 0;
	cursor: pointer;
	background: rgba(255, 255, 255, .36);
}
.site-hero__dots button[aria-current="true"] { background: var(--site-accent); }
.site-hero__dots button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.site-hero__pause {
	display: inline-flex;
	align-items: center;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .42);
	color: #fff;
	font-family: var(--site-sans);
	font-size: .78rem;
	padding: 7px 13px;
	cursor: pointer;
}
.site-hero__pause:hover { background: rgba(255, 255, 255, .22); }
.site-hero__pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Text sits on photography now, so it carries a shadow as well as the scrim. */
.site-hero h1 { text-shadow: 0 2px 30px rgba(4, 12, 30, .5); }
.site-lead { text-shadow: 0 1px 18px rgba(4, 12, 30, .45); }
/* A single diagonal rule in the accent — the one decorative gesture. */
.site-hero::after {
	content: "";
	position: absolute;
	top: -120px;
	right: -60px;
	width: 520px;
	height: 320px;
	border-top: 2px solid var(--site-accent);
	transform: rotate(-24deg);
	opacity: 0.85;
	pointer-events: none;
}
.site-hero .site-wrap { position: relative; z-index: 1; }

.site-chips {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 22px;
	padding: 0;
	list-style: none;
}
.site-chips li {
	background: #fff;
	color: var(--site-navy);
	font-family: var(--site-serif);
	font-size: 0.95rem;
	padding: 5px 15px;
}

.site-hero h1 {
	font-size: clamp(2.3rem, 5vw, 3.7rem);
	line-height: 1.08;
	margin-bottom: 20px;
}

.site-modes {
	display: flex;
	gap: 34px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 26px;
	color: var(--site-onnavy);
	padding: 0;
	list-style: none;
}
.site-modes li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.92rem;
}
.site-modes svg {
	width: 26px;
	height: 26px;
	stroke: var(--site-onnavy);
	fill: none;
	stroke-width: 1.4;
	flex: none;
}

.site-lead {
	font-family: var(--site-serif);
	font-size: clamp(1.12rem, 2vw, 1.5rem);
	line-height: 1.5;
	color: #fff;
	max-width: 36ch;
	margin: 0 auto 32px;
}

.site-cta-row {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ------------------------------------------------------------ crumbs ----- */

.site-crumbs {
	border-bottom: 1px solid var(--site-rule);
	font-size: 0.8rem;
	color: var(--site-muted);
}
.site-crumbs .site-wrap {
	min-height: 48px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.site-crumbs a { text-decoration: none; }
.site-crumbs a:hover { text-decoration: underline; }

/* --------------------------------------------------------- body layout ---- */

.site-grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 64px;
	padding: 56px 0 96px;
	align-items: start;
}

.site-article > section {
	padding-bottom: 52px;
	margin-bottom: 52px;
	border-bottom: 1px solid var(--site-rule);
}
.site-article > section:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}
.site-article h2 {
	font-size: clamp(1.6rem, 3vw, 2.3rem);
	line-height: 1.18;
	margin-bottom: 20px;
}
.site-article h3 { font-size: 1.18rem; margin-bottom: 8px; }
.site-article p {
	color: var(--site-ink-2);
	margin-bottom: 18px;
	max-width: var(--site-measure);
}
.site-article p:last-child { margin-bottom: 0; }

.site-feature {
	padding: 24px 0;
	border-top: 1px solid var(--site-rule);
}
.site-feature:first-of-type { border-top: 0; padding-top: 8px; }

/* ----------------------------------------------------------------- rail --- */

.site-rail {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 26px;
}
.site-rail__box { border: 1px solid var(--site-rule); padding: 24px; }
.site-rail__box--accent { border-color: var(--site-accent); }
.site-rail__box h2,
.site-rail__box h3 { font-size: 1.15rem; margin-bottom: 16px; }

.site-rail__box dl { margin: 0; display: flex; flex-direction: column; }
.site-rail__box dl > div {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding: 11px 0;
	border-bottom: 1px solid var(--site-rule);
	font-size: 0.88rem;
}
.site-rail__box dl > div:last-child { border-bottom: 0; }
.site-rail__box dt { color: var(--site-muted); }
.site-rail__box dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.site-rail__actions { display: flex; flex-direction: column; gap: 12px; }

.site-rail__links {
	display: flex;
	flex-direction: column;
	gap: 11px;
	font-size: 0.9rem;
	margin-top: 12px;
}
.site-rail__links a {
	color: var(--site-accent);
	text-decoration: none;
	font-weight: 600;
}
.site-rail__links a:hover { text-decoration: underline; }

/* Numbered because the page is read in order; the number is the reading
   position, not decoration. */
.site-contents ol {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: site-toc;
	display: flex;
	flex-direction: column;
	gap: 9px;
}
.site-contents li { counter-increment: site-toc; font-size: 0.9rem; }
.site-contents li a { text-decoration: none; display: flex; gap: 12px; }
.site-contents li a::before {
	content: counter(site-toc);
	color: var(--site-muted);
	font-variant-numeric: tabular-nums;
	min-width: 14px;
}
.site-contents li a:hover { color: var(--site-accent); }

/* ------------------------------------------------------------- content ---- */

.site-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: site-step;
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.site-steps li {
	counter-increment: site-step;
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 18px;
	align-items: start;
}
.site-steps li::before {
	content: counter(site-step);
	font-family: var(--site-serif);
	font-size: 1.4rem;
	color: var(--site-accent);
	border-top: 2px solid var(--site-accent);
	padding-top: 8px;
}
.site-steps b { display: block; margin-bottom: 3px; }
.site-steps span { color: var(--site-ink-2); font-size: 0.94rem; }

.site-rows { display: flex; flex-direction: column; }
.site-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 24px;
	align-items: center;
	padding: 22px 0;
	border-bottom: 1px solid var(--site-rule);
	text-decoration: none;
}
.site-row:hover h3 { color: var(--site-accent); }
.site-row p { margin: 4px 0 0; font-size: 0.9rem; color: var(--site-muted); }
.site-row__meta {
	font-size: 0.85rem;
	color: var(--site-muted);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.site-table-wrap { overflow-x: auto; }
.site-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.site-table th,
.site-table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--site-rule); }
.site-table th {
	font-family: var(--site-sans);
	font-size: 0.72rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--site-muted);
	font-weight: 700;
}
.site-table td:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }

.site-quote { border-left: 3px solid var(--site-accent); padding-left: 26px; }
.site-quote p {
	font-family: var(--site-serif);
	font-size: 1.3rem;
	line-height: 1.45;
	color: var(--site-ink);
	max-width: 52ch;
}
.site-quote cite {
	display: block;
	margin-top: 14px;
	font-style: normal;
	font-size: 0.86rem;
	color: var(--site-muted);
}

/* ------------------------------------------------------------- closing ---- */

.site-endband {
	background: var(--site-navy);
	color: #fff;
	text-align: center;
	padding: 76px 0;
}
.site-endband h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 14px; }
.site-endband p {
	color: var(--site-onnavy-mute);
	max-width: 48ch;
	margin: 0 auto 28px;
}

/* -------------------------------------------------------------- footer ---- */

.site-footer {
	background: var(--site-paper-2);
	border-top: 1px solid var(--site-rule);
	padding: 56px 0 30px;
	font-size: 0.88rem;
}
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 34px;
}
.site-footer h2 {
	font-family: var(--site-sans);
	font-size: 0.71rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--site-muted);
	margin: 0 0 14px;
	font-weight: 700;
}
.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
}
.site-footer a { text-decoration: none; color: var(--site-ink-2); }
.site-footer a:hover { color: var(--site-accent); }
.site-footer__name { font-size: 1.15rem; margin: 0 0 10px; }
.site-footer__blurb { color: var(--site-muted); max-width: 34ch; }
.site-footer__bottom {
	margin-top: 38px;
	padding-top: 20px;
	border-top: 1px solid var(--site-rule);
	color: var(--site-muted);
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 0.8rem;
}

/* ---------------------------------------------------------- responsive ---- */

@media (max-width: 960px) {
	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--site-navy-2);
		flex-direction: column;
		gap: 0;
		padding: 8px 28px 20px;
		z-index: 30;
	}
	.site-nav[data-open="true"] { display: flex; }
	.site-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
	.site-nav-toggle { display: inline-block; }
	.site-header .site-wrap { position: relative; }

	.site-grid { grid-template-columns: 1fr; gap: 40px; }
	.site-rail { position: static; order: -1; }
	.site-row { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-hero { padding: 56px 0 64px; }
}

/* ===========================================================================
   Page types beyond the home page.
   Added as the remaining public pages moved onto this shell.
   =========================================================================== */

/* ------------------------------------------------------- page masthead ---- */
/* Interior pages get a compact navy masthead rather than the full hero, so
   the home page keeps its weight and inner pages get to the content sooner. */
.site-masthead {
	background: var(--site-navy);
	color: #fff;
	padding: 54px 0 58px;
	position: relative;
	overflow: hidden;
}
.site-masthead::after {
	content: "";
	position: absolute;
	top: -90px;
	right: -40px;
	width: 380px;
	height: 240px;
	border-top: 2px solid var(--site-accent);
	transform: rotate(-24deg);
	opacity: 0.8;
	pointer-events: none;
}
.site-masthead .site-wrap { position: relative; z-index: 1; }
.site-masthead h1 {
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.1;
	margin: 10px 0 0;
	max-width: 22ch;
}
.site-masthead__label { color: var(--site-onnavy-mute); }
.site-masthead p {
	color: var(--site-onnavy);
	max-width: 58ch;
	margin-top: 16px;
}

/* --------------------------------------------------------- plain column ---- */
/* Vertical padding only. This class sits on the same element as .site-wrap
   (`<div class="site-wrap site-column">`), and the `padding` shorthand used
   here previously zeroed .site-wrap's horizontal padding — so news and gallery
   ran edge to edge, worst on a phone where the content touched both screen
   sides. Setting top and bottom alone leaves the 28px side gutter intact. */
.site-column { padding-top: 56px; padding-bottom: 88px; }
.site-column--narrow { max-width: 820px; }

/* ------------------------------------------------------------- filters ---- */
.site-filters {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
	padding: 22px 0;
	border-bottom: 1px solid var(--site-rule);
	margin-bottom: 34px;
}
.site-search { display: flex; gap: 10px; flex: 1; min-width: 240px; }
.site-input {
	font-family: var(--site-sans);
	font-size: 0.94rem;
	padding: 12px 14px;
	border: 1px solid var(--site-rule);
	background: var(--site-paper);
	color: var(--site-ink);
	width: 100%;
	border-radius: 0;
}
.site-input:focus-visible {
	outline: 2px solid var(--site-accent);
	outline-offset: 1px;
}
.site-chipnav { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-chipnav a {
	display: inline-block;
	font-size: 0.84rem;
	padding: 8px 15px;
	border: 1px solid var(--site-rule);
	text-decoration: none;
	color: var(--site-ink-2);
}
.site-chipnav a:hover { border-color: var(--site-accent); color: var(--site-accent); }
.site-chipnav a[aria-current="true"] {
	background: var(--site-navy);
	border-color: var(--site-navy);
	color: #fff;
}

/* ---------------------------------------------------------------- cards ---- */
.site-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
}
.site-card { display: flex; flex-direction: column; text-decoration: none; }
.site-card__media {
	aspect-ratio: 3 / 2;
	background: var(--site-paper-2);
	border: 1px solid var(--site-rule);
	overflow: hidden;
	margin-bottom: 14px;
}
.site-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.site-card__meta {
	font-size: 0.76rem;
	color: var(--site-muted);
	font-variant-numeric: tabular-nums;
	margin-bottom: 6px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.site-card h2, .site-card h3 { font-size: 1.12rem; line-height: 1.3; margin-bottom: 6px; }
.site-card:hover h2, .site-card:hover h3 { color: var(--site-accent); }
.site-card p { font-size: 0.9rem; color: var(--site-muted); }

/* ------------------------------------------------------------- article ---- */
.site-prose { max-width: var(--site-measure); }
.site-prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 40px 0 16px; }
.site-prose h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.site-prose p { color: var(--site-ink-2); margin-bottom: 18px; }
.site-prose ul, .site-prose ol { color: var(--site-ink-2); margin: 0 0 18px; padding-left: 22px; }
.site-prose li { margin-bottom: 8px; }
.site-prose img { margin: 24px 0; }
.site-prose a { color: var(--site-accent); }
.site-figure { margin: 0 0 34px; }
.site-figure img { width: 100%; display: block; border: 1px solid var(--site-rule); }

/* ------------------------------------------------------------ gallery ----- */
.site-photos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
}
.site-photos figure { margin: 0; }
.site-photos img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	border: 1px solid var(--site-rule);
}
.site-photos figcaption { font-size: 0.8rem; color: var(--site-muted); margin-top: 6px; }

/* ------------------------------------------------------------- numbers ---- */
.site-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 2px;
	background: var(--site-rule);
	border: 1px solid var(--site-rule);
	margin: 8px 0 40px;
}
.site-stat { background: var(--site-paper); padding: 24px 22px; }
.site-stat b {
	display: block;
	font-family: var(--site-serif);
	font-size: 2.1rem;
	line-height: 1.1;
	color: var(--site-navy);
	font-variant-numeric: tabular-nums;
}
.site-stat span { font-size: 0.84rem; color: var(--site-muted); }

/* --------------------------------------------------------------- forms ---- */
.site-form { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.site-field { display: flex; flex-direction: column; gap: 7px; }
.site-field label { font-size: 0.86rem; font-weight: 600; }
.site-field input,
.site-field select,
.site-field textarea {
	font-family: var(--site-sans);
	font-size: 0.95rem;
	padding: 12px 14px;
	border: 1px solid var(--site-rule);
	background: var(--site-paper);
	color: var(--site-ink);
	width: 100%;
	border-radius: 0;
}
.site-field textarea { min-height: 160px; resize: vertical; }
.site-field input:focus-visible,
.site-field select:focus-visible,
.site-field textarea:focus-visible {
	outline: 2px solid var(--site-accent);
	outline-offset: 1px;
}
.site-field .helptext, .site-field .errorlist { font-size: 0.82rem; }
.site-field .errorlist { color: var(--site-accent); list-style: none; margin: 0; padding: 0; }

.site-note {
	border-left: 3px solid var(--site-accent);
	background: var(--site-paper-2);
	padding: 18px 22px;
	margin-bottom: 28px;
}
.site-note--ok { border-left-color: #1f7a3d; }
.site-note p { margin: 0; color: var(--site-ink-2); }
.site-note strong { color: var(--site-ink); }

/* ---------------------------------------------------------- pagination ---- */
.site-pager {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: center;
	margin-top: 48px;
	padding-top: 28px;
	border-top: 1px solid var(--site-rule);
	flex-wrap: wrap;
}
.site-pager a, .site-pager span {
	font-size: 0.88rem;
	padding: 10px 18px;
	border: 1px solid var(--site-rule);
	text-decoration: none;
}
.site-pager a:hover { border-color: var(--site-accent); color: var(--site-accent); }
.site-pager .is-current { background: var(--site-navy); border-color: var(--site-navy); color: #fff; }
.site-pager .is-disabled { color: var(--site-muted); opacity: 0.55; }

.site-empty {
	padding: 56px 0;
	text-align: center;
	color: var(--site-muted);
	border: 1px dashed var(--site-rule);
}

@media (max-width: 960px) {
	.site-masthead { padding: 40px 0 44px; }
	.site-column { padding-top: 40px; padding-bottom: 64px; }
}

/* ===========================================================================
   Motion.

   Progressive enhancement, in this order:

     1. With no JavaScript, nothing is hidden. The previous site had 41
        scroll-reveal elements of which 6 had revealed, so most of the page
        existed only for visitors whose JavaScript had run — bad for search
        engines and for a slow connection, which is most of this audience.
     2. A tiny inline script sets .js-motion on <html> before first paint, and
        only then may anything start hidden. If the script fails the page is
        simply static.
     3. prefers-reduced-motion removes the whole mechanism, not just the
        duration, so nothing is left mid-transition.

   The movement is deliberately small. This is a prospectus, and text sliding
   about undermines the tone it is trying to set.
   =========================================================================== */

.site-reveal { --reveal-shift: 14px; }

.js-motion .site-reveal {
	opacity: 0;
	transform: translateY(var(--reveal-shift));
	transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: opacity, transform;
}
.js-motion .site-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* Children of a revealed group arrive in sequence rather than together, which
   reads as one movement instead of several competing ones. */
.js-motion .site-reveal-group > * {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js-motion .site-reveal-group.is-in > * { opacity: 1; transform: none; }
.js-motion .site-reveal-group.is-in > *:nth-child(1) { transition-delay: 0ms; }
.js-motion .site-reveal-group.is-in > *:nth-child(2) { transition-delay: 70ms; }
.js-motion .site-reveal-group.is-in > *:nth-child(3) { transition-delay: 140ms; }
.js-motion .site-reveal-group.is-in > *:nth-child(4) { transition-delay: 210ms; }
.js-motion .site-reveal-group.is-in > *:nth-child(5) { transition-delay: 280ms; }
.js-motion .site-reveal-group.is-in > *:nth-child(6) { transition-delay: 350ms; }
.js-motion .site-reveal-group.is-in > *:nth-child(n + 7) { transition-delay: 420ms; }

/* The hero is above the fold, so it plays on load rather than on scroll —
   waiting for an intersection that has already happened would flash. */
.js-motion .site-hero .site-chips,
.js-motion .site-hero h1,
.js-motion .site-hero .site-modes,
.js-motion .site-hero .site-lead,
.js-motion .site-hero .site-cta-row,
.js-motion .site-masthead .site-label,
.js-motion .site-masthead h1,
.js-motion .site-masthead p {
	animation: site-rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.js-motion .site-hero h1              { animation-delay: 80ms; }
.js-motion .site-hero .site-modes     { animation-delay: 160ms; }
.js-motion .site-hero .site-lead      { animation-delay: 220ms; }
.js-motion .site-hero .site-cta-row   { animation-delay: 300ms; }
.js-motion .site-masthead h1          { animation-delay: 70ms; }
.js-motion .site-masthead p           { animation-delay: 140ms; }

@keyframes site-rise {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: none; }
}

/* The accent rule draws itself once, rather than simply appearing. */
.js-motion .site-hero::after {
	animation: site-rule 1.1s ease-out 0.25s both;
}
@keyframes site-rule {
	from { opacity: 0; width: 0; }
	to   { opacity: 0.85; width: 520px; }
}

/* Header gains a hairline once the page has moved, so it separates from
   content without a permanent border. */
.site-header { transition: box-shadow 0.25s ease; }
.site-header.is-stuck { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 20px rgba(4, 12, 30, 0.28); }

.site-row,
.site-card__media img { transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1); }
.site-card:hover .site-card__media img { transform: scale(1.03); }

@media (prefers-reduced-motion: reduce) {
	.site-body * { transition: none !important; animation: none !important; }
	/* Remove the mechanism, not just its duration: with transitions disabled a
	   hidden element would otherwise never become visible. */
	.js-motion .site-reveal,
	.js-motion .site-reveal-group > * {
		opacity: 1 !important;
		transform: none !important;
	}
	/* A hero that changes under someone who asked for less motion is precisely
	   what they asked to avoid: hold the first photograph. */
	.site-hero__slide { animation: none !important; opacity: 0 !important; }
	.site-hero__slide:first-child { opacity: 1 !important; }
	.site-hero__controls { display: none; }
}
