:root {
  --ink: #15345a;
  --ink-soft: #15518b;
  --paper: #f2f7fc;
  --paper-bright: #ffffff;
  --gold: #f5b126;
  --gold-deep: #92600b;
  --muted: #4b6078;
  --line: rgba(21, 81, 139, .2);
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.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; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; color: #fff; background: var(--ink); border-radius: 4px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.98); color: var(--ink); border-bottom: 2px solid var(--gold); backdrop-filter: blur(14px); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; }
.wordmark img { display: block; width: 120px; height: 82px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: .9rem; }
.site-nav a { text-decoration: none; color: #234f7a; transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: #0b315e; }
.site-nav .nav-cta { padding: 10px 16px; color: #17395d; background: var(--gold); font-weight: 700; border-radius: 3px; }
.menu-button { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid rgba(21,81,139,.3); background: transparent; border-radius: 3px; }
.menu-button span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: var(--ink); }

.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 78% 28%, rgba(245,177,38,.2), transparent 28%), linear-gradient(135deg, #0a376d 0%, #155a9a 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 88%); }
.hero-lines { position: absolute; inset: auto 0 0; height: 48%; opacity: .34; }
.hero-lines svg { width: 100%; height: 100%; }
.hero-lines path { fill: none; stroke: var(--gold); stroke-width: 1.2; }
.hero-grid { position: relative; min-height: 680px; padding: 118px 0 100px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .75fr); gap: 84px; align-items: center; }
.eyebrow { margin: 0 0 18px; color: var(--gold-deep); font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero .eyebrow, .contact .eyebrow { color: var(--gold); }
h1, h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; line-height: 1.06; letter-spacing: -.025em; }
h1 { max-width: 800px; font-size: clamp(3rem, 6.2vw, 6rem); }
h2 { font-size: clamp(2.2rem, 4.1vw, 4rem); }
.hero-lead { max-width: 690px; margin: 30px 0 0; color: rgba(255,255,255,.72); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border: 1px solid transparent; border-radius: 3px; font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #17395d; background: var(--gold); }
.button-secondary { color: #fff; border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.04); }
.hero-card { align-self: end; padding: 28px; border: 1px solid rgba(245,177,38,.55); background: rgba(8,43,83,.72); box-shadow: 0 24px 80px rgba(5,35,75,.3); backdrop-filter: blur(12px); }
.hero-card-top { display: grid; gap: 3px; padding-bottom: 22px; border-bottom: 1px solid rgba(217,173,82,.25); }
.hero-card-top span, .hero-card-bottom { color: rgba(255,255,255,.56); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; }
.hero-card-top strong { color: #fff; font-family: "Playfair Display", serif; font-size: 1.35rem; }
.hero-card blockquote { margin: 34px 0; color: var(--gold); font-family: "Playfair Display", serif; font-size: 2rem; line-height: 1.2; }
.hero-card-bottom { display: flex; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid rgba(217,173,82,.25); }
.hero-photo { width: 100%; max-width: 385px; margin: 0; align-self: center; border: 1px solid var(--gold); background: #fff; box-shadow: 0 24px 70px rgba(5,35,75,.3); }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 381 / 458; object-fit: cover; }
.hero-photo figcaption { display: grid; gap: 3px; padding: 18px 20px; border-top: 3px solid var(--gold); background: #0b3d73; }
.hero-photo figcaption span { color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero-photo figcaption strong { color: #fff; font-family: "Playfair Display", Georgia, serif; font-size: 1.1rem; line-height: 1.3; }

.section { padding: 110px 0; }
.section-heading { max-width: 880px; }
.section-heading > p:last-child { max-width: 730px; margin: 26px 0 0; color: var(--muted); font-size: 1.08rem; }
.section-heading.compact { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 62px; }
.program-card { min-height: 300px; padding: 30px; display: flex; flex-direction: column; border-top: 3px solid var(--gold); background: var(--paper-bright); box-shadow: 0 20px 55px rgba(21,81,139,.09); }
.card-number { color: var(--gold-deep); font-size: .78rem; font-weight: 700; letter-spacing: .14em; }
.program-card h3 { margin: auto 0 14px; font-family: "Playfair Display", serif; font-size: 1.65rem; line-height: 1.15; }
.program-card p { margin: 0; color: var(--muted); }

.impact { color: #fff; background: var(--ink-soft); }
.impact-grid { display: grid; grid-template-columns: .9fr 1.2fr; gap: 90px; align-items: center; }
.impact-copy p:last-child { margin: 26px 0 0; color: rgba(255,255,255,.64); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(217,173,82,.27); }
.metric { min-height: 220px; padding: 30px 24px; display: flex; flex-direction: column; justify-content: flex-end; border-right: 1px solid rgba(217,173,82,.27); }
.metric:last-child { border-right: 0; }
.metric strong { color: var(--gold); font-family: "Playfair Display", serif; font-size: clamp(2.8rem, 5vw, 4.8rem); line-height: 1; }
.metric span { margin-top: 14px; color: rgba(255,255,255,.62); font-size: .86rem; }

.story { color: #fff; background: #0d4d88; }
.story-grid { max-width: 920px; }
.story-mark { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: radial-gradient(circle, rgba(40,117,187,.14), transparent 62%); text-transform: uppercase; letter-spacing: .18em; color: var(--gold-deep); font-size: .72rem; }
.story-mark strong { margin: 8px 0 12px; color: var(--ink); font-family: "Playfair Display", serif; font-size: clamp(3.8rem, 8vw, 7.2rem); line-height: 1; letter-spacing: -.04em; text-transform: none; }
.story-photo { margin: 0; }
.story-photo img { display: block; width: 100%; aspect-ratio: 1.7; object-fit: cover; object-position: center top; border: 1px solid rgba(255,255,255,.35); box-shadow: 0 18px 45px rgba(3,26,53,.28); }
.story-photo figcaption { margin-top: 18px; color: rgba(255,255,255,.8); font-size: .86rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.story-copy .eyebrow { color: var(--gold); }
.story-copy p:not(.eyebrow) { color: rgba(255,255,255,.8); font-size: 1.05rem; }
.story-copy h2 + p { margin-top: 30px; }

.events { padding-bottom: 90px; }
.event-sections { margin-top: 48px; border-top: 1px solid var(--line); }
.event-section { padding: 38px 0 42px; border-bottom: 1px solid var(--line); }
.event-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.event-heading h3 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.2; }
.event-heading span { color: var(--gold-deep); font-size: .85rem; font-weight: 700; letter-spacing: .1em; }
.event-section > p { max-width: 850px; margin: 17px 0 0; color: var(--muted); font-size: 1.05rem; }
.event-section p a, .events-follow a { color: #0d4d88; font-weight: 700; text-underline-offset: 3px; }
.event-year { margin-top: 32px; }
.event-year h4 { margin: 0; color: var(--ink-soft); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.gallery-note { margin: 10px 0 0; color: var(--muted); font-size: .95rem; }
.event-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 42px; }
.event-gallery figure { margin: 0; background: var(--paper-bright); }
.event-gallery img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.event-gallery--mixed img { aspect-ratio: 4 / 3; object-fit: contain; background: #e5edf5; }
.event-gallery a { display: block; }
.event-gallery a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.event-gallery figcaption { padding: 14px 16px; color: var(--muted); font-size: .9rem; }
.events-follow { margin: 36px 0 0; font-size: 1.05rem; }

.leadership { padding-top: 90px; background: #e5f0fa; }
.leaders { margin-top: 54px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.leaders div { min-height: 135px; padding: 24px; display: flex; flex-direction: column; justify-content: end; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.leaders strong { font-family: "Playfair Display", serif; font-size: 1.25rem; }
.leaders span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

.contact { color: #fff; background: var(--ink); }
.contact-panel { display: grid; grid-template-columns: 1.3fr .7fr; gap: 80px; align-items: end; }
.contact-details { display: grid; }
.contact-details a { padding: 13px 0; border-bottom: 1px solid rgba(217,173,82,.24); color: rgba(255,255,255,.76); text-decoration: none; overflow-wrap: anywhere; }
.contact-details a:hover { color: var(--gold); }
.contact-details .partner-email { margin-bottom: 8px; padding: 12px 18px; color: #17395d; background: var(--gold); border: 0; font-weight: 700; text-align: center; }
.contact-details .partner-email:hover { color: #0b315e; background: #ffc650; }
.site-footer { padding: 42px 0; color: rgba(255,255,255,.72); background: #092d57; border-top: 1px solid rgba(245,177,38,.35); font-size: .82rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; }
.footer-name { color: #fff; font-family: "Playfair Display", serif; font-size: 1.15rem; }
.site-footer p { margin: 6px 0 0; }
.legal-details { display: grid; justify-items: end; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1060px) {
  .site-nav { position: absolute; left: 0; right: 0; top: 88px; padding: 22px 20px 28px; display: none; flex-direction: column; align-items: stretch; gap: 8px; background: #fff; border-bottom: 2px solid var(--gold); box-shadow: 0 12px 28px rgba(13,77,136,.16); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; }
  .site-nav .nav-cta { text-align: center; padding: 11px 16px; }
  .menu-button { display: block; }
  .hero-grid { min-height: auto; padding: 88px 0 80px; grid-template-columns: 1fr; gap: 64px; }
  .hero-card { max-width: 560px; align-self: auto; }
  .program-grid { grid-template-columns: 1fr; }
  .program-card { min-height: 240px; }
  .impact-grid, .contact-panel { grid-template-columns: 1fr; gap: 55px; }
  .story-mark { width: min(420px, 88vw); }
  .story-photo { width: min(500px, 100%); }
  .event-gallery { grid-template-columns: 1fr 1fr; }
  .leaders { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .header-inner { min-height: 78px; }
  .wordmark img { width: 104px; height: 72px; }
  .site-nav { top: 78px; }
  .hero-grid { padding-top: 72px; }
  h1 { font-size: clamp(2.85rem, 14vw, 4.25rem); }
  .section { padding: 82px 0; }
  .metrics { grid-template-columns: 1fr; }
  .metric { min-height: 160px; border-right: 0; border-bottom: 1px solid rgba(217,173,82,.27); }
  .metric:last-child { border-bottom: 0; }
  .section-heading.compact { display: block; }
  .leaders { grid-template-columns: 1fr; }
  .footer-grid { display: grid; }
  .legal-details { justify-items: start; }
  .hero-card-bottom { display: grid; }
  .hero-photo { max-width: 480px; }
  .event-heading { display: grid; gap: 5px; }
  .wordmark img { width: 68px; height: 68px; }
  .event-gallery { grid-template-columns: 1fr; }
}

/* Shared page navigation and organization details. */
.foundation-address { margin-top: 14px; font-style: normal; line-height: 1.6; }
.contact-details .foundation-address { padding: 13px 0; color: rgba(255,255,255,.9); }
.page-title { padding: 58px 0; }
.page-title .shell { position: relative; }
.page-title h1 { font-size: clamp(2.8rem,6vw,4.7rem); }
.page-link { font-weight: 700; text-underline-offset: 4px; }
.impact .page-link, .story .page-link { color: var(--gold); }
.homepage-event-intro { max-width: 780px; margin-top: 28px; color: var(--muted); }
.site-nav [aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
