:root {
  --navy: #0b1f3a;
  --navy-2: #13325c;
  --ink: #1b2433;
  --muted: #5b6575;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --red: #d0262d;
  --red-dark: #a91d23;
  --sky: #9cc3f0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 8px 24px rgba(11, 31, 58, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); letter-spacing: -0.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3, .h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
figure { margin: 0; }
figure img { border-radius: var(--radius); }
figcaption, .caption { color: var(--muted); font-size: .92rem; margin-top: .5em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.center { text-align: center; margin-top: 2rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand img { height: 46px; width: auto; }
#site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
#site-nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; }
#site-nav a:hover { background: var(--bg-alt); color: var(--navy); }
#site-nav a[aria-current="page"] { color: var(--red); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--navy); position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  #site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; padding: 8px 12px 16px; }
  #site-nav a { padding: 12px 14px; border-radius: 10px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--bg-alt); color: var(--red); }
.text-link { font-weight: 600; text-decoration: none; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 31, 58, .94) 0%, rgba(11, 31, 58, .78) 45%, rgba(11, 31, 58, .25) 100%); }
.hero-inner { position: relative; padding: clamp(72px, 12vw, 140px) 20px; max-width: var(--max); }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lead { max-width: 56ch; color: #dce7f5; font-size: 1.15rem; }
.hero .eyebrow { color: var(--sky); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--red); margin-bottom: .8em; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

/* Stats */
.stats { background: var(--navy-2); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.stat-value { font-size: 2rem; font-weight: 800; margin: 0 0 .2em; color: #fff; }
.stat-label { margin: 0; color: #c9d8ec; font-size: .92rem; line-height: 1.45; }
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #dce7f5; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--sky); }
.section-dark a { color: #fff; }
.section-head { margin-bottom: 32px; }
.page-header { background: linear-gradient(180deg, var(--bg-alt), #fff); border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 80px) 0 clamp(36px, 5vw, 56px); }
.page-header h1 { max-width: 24ch; }
.year { color: var(--muted); font-weight: 400; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split-top { align-items: start; }
.split-media img { width: 100%; box-shadow: var(--shadow); }
.stack { display: grid; gap: 20px; }
.stack img { width: 100%; box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid, .card-grid-2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(11, 31, 58, .06), 0 16px 32px rgba(11, 31, 58, .12); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }
.card-media { aspect-ratio: 16 / 10; background: var(--bg-alt); overflow: hidden; display: grid; place-items: center; }
.card-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.card-media img[src$=".png"] { object-fit: contain; padding: 24px; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .97rem; }
.card-meta { font-size: .78rem !important; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--red) !important; margin-bottom: .5em; }
.card-more { margin-top: auto; font-weight: 600; color: var(--navy-2); }
.card:hover .card-more { color: var(--red); }

/* Prose */
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.2em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .55em; }
.prose figure { margin: 2em 0; }
.prose img { box-shadow: var(--shadow); }
.figure-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 2em 0; align-items: start; }
.figure-row figure { margin: 0; }
@media (max-width: 620px) { .figure-row { grid-template-columns: 1fr; } }
.grant-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 1.5em 0; }
.grant-grid > div { background: var(--bg-alt); border-radius: var(--radius); padding: 18px 22px; }
.grant-grid h3 { margin: 0 0 .4em; font-size: 1.05rem; }
.grant-grid ul { margin: 0; }
@media (max-width: 620px) { .grant-grid { grid-template-columns: 1fr; } }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.check-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.check-grid li { position: relative; padding-left: 34px; }
.check-grid li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='white' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (max-width: 720px) { .check-grid { grid-template-columns: 1fr; } }
.link-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: block; padding: 11px 0; text-decoration: none; }
.link-list a::after { content: " ↗"; color: var(--muted); }

/* Team */
.team-list { display: grid; gap: 28px; }
.person { display: grid; grid-template-columns: 200px 1fr; gap: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); scroll-margin-top: 96px; }
.person-photo img { width: 200px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.person h2 { font-size: 1.45rem; margin-bottom: .2em; }
.person-role { color: var(--red); font-weight: 600; margin-bottom: 1em; }
.person-bio { color: #2f3a4b; }
.person-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.person-links a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .92rem; font-weight: 600; }
.person-links a:hover { border-color: var(--red); }
@media (max-width: 720px) {
  .person { grid-template-columns: 1fr; padding: 22px; gap: 18px; }
  .person-photo img { width: 140px; }
}

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--bg-alt); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; border-radius: 0; }
.gallery-item:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(5, 12, 24, .88); }
.lightbox img { max-width: 94vw; max-height: 88vh; width: auto; border-radius: 8px; }
.lightbox-close { position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 28px; line-height: 1; cursor: pointer; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #c9d2de; border-radius: 10px; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(156, 195, 240, .5); }
.hidden-field { position: absolute; left: -9999px; }
.contact-card { background: var(--bg-alt); border-radius: var(--radius); padding: 28px; }
.contact-person { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.contact-person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; }
.contact-person p { margin: 0; }
.contact-name { font-weight: 700; color: var(--navy); }
.contact-card dl { margin: 0; }
.contact-card dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); margin-top: 14px; }
.contact-card dd { margin: 4px 0 0; }

/* CTA + footer */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #dce7f5; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; }
.site-footer { background: #071426; color: #a9b8cc; font-size: .95rem; }
.site-footer a { color: #dce7f5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 1em; }
.footer-name { color: #fff; font-weight: 700; }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 2; }
.footer-links li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; padding-bottom: 24px; }
.footer-bottom p { margin: 0; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
