:root {
  --navy: #071a3b;
  --navy-2: #0c2f67;
  --red: #c81920;
  --red-dark: #95131a;
  --white: #ffffff;
  --paper: #f7f6f2;
  --ink: #111827;
  --muted: #566173;
  --line: #d8dce4;
  --shadow: 0 24px 60px rgba(7, 26, 59, 0.18);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.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;
  z-index: 999;
  left: 1rem;
  top: 1rem;
  transform: translateY(-160%);
  padding: .8rem 1rem;
  color: var(--white);
  background: var(--navy);
  border: 2px solid var(--white);
  border-radius: .5rem;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 4px solid #ffcf33;
  outline-offset: 4px;
}

.page-width { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: .55rem max(20px, calc((100vw - 1180px) / 2));
  color: var(--navy);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(7, 26, 59, .12);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; width: max-content; }
.brand img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; text-transform: uppercase; letter-spacing: .07em; }
.brand strong { font-size: .88rem; }
.brand small { margin-top: .3rem; font-size: .7rem; color: var(--red); font-weight: 800; }
.desktop-nav { display: flex; gap: 1.8rem; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.desktop-nav a { text-decoration: none; border-bottom: 2px solid transparent; }
.desktop-nav a:hover { border-color: var(--red); }
.header-donate { justify-self: end; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  font-size: .8rem;
  line-height: 1.1;
  letter-spacing: .08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(7, 26, 59, .22); }
.button-red { color: var(--white); background: var(--red); }
.button-red:hover { background: var(--red-dark); }
.button-navy { color: var(--white); background: var(--navy); }
.button-outline { color: var(--white); border-color: rgba(255,255,255,.72); background: rgba(7,26,59,.25); }
.button-outline:hover { background: var(--white); color: var(--navy); }
.button-white { color: var(--navy); background: var(--white); }
.button-large { min-height: 56px; padding-inline: 1.6rem; }
.button-huge { min-height: 64px; padding-inline: 2.4rem; font-size: .9rem; }
.button-group { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; margin-top: 1.6rem; }
.text-link { color: var(--navy); font-weight: 850; text-underline-offset: 4px; }

.hero {
  position: relative;
  min-height: calc(100svh - 78px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.hero-shade { background: linear-gradient(90deg, rgba(4,14,34,.96) 0%, rgba(4,14,34,.76) 43%, rgba(4,14,34,.12) 78%), linear-gradient(0deg, rgba(4,14,34,.74) 0%, transparent 55%); }
.hero-content { position: relative; z-index: 2; padding-block: clamp(4rem, 11vh, 8.5rem) 7.5rem; }
.eyebrow { margin: 0 0 1rem; color: #ffb3b6; font-size: .75rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow.navy { color: var(--navy-2); }
.eyebrow.red { color: #ff7d82; }
.hero h1, .story-copy h2, .impact-copy h2, .final-inner h2 {
  margin: 0;
  max-width: 900px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  line-height: .98;
  text-wrap: balance;
}
.hero h1 { max-width: 850px; font-size: clamp(3.3rem, 8vw, 7.8rem); letter-spacing: -.055em; }
.hero-lede { max-width: 690px; margin: 1.6rem 0 .8rem; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero-proof { max-width: 690px; margin: 0; font-size: 1rem; }
.hero-proof strong { color: #ffb3b6; }
.story-cue { position: absolute; z-index: 2; right: max(20px, calc((100vw - 1180px) / 2)); bottom: 2rem; display: flex; align-items: center; gap: .75rem; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.story-cue span { display: block; width: 46px; height: 2px; background: var(--red); }

.story-section { position: relative; padding: clamp(5rem, 9vw, 8rem) 0; overflow: hidden; }
.section-number { position: absolute; top: 1rem; right: 2vw; color: rgba(7,26,59,.07); font-size: clamp(7rem, 19vw, 17rem); font-weight: 950; line-height: 1; letter-spacing: -.08em; }
.section-number.light { color: rgba(255,255,255,.065); }
.split { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(2.5rem, 7vw, 7rem); }
.split-reverse { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.split-reverse .photo-card { order: 2; }
.story-copy h2, .impact-copy h2 { color: var(--navy); font-size: clamp(2.6rem, 5vw, 5.2rem); letter-spacing: -.045em; }
.story-copy p, .impact-copy p { max-width: 66ch; margin: 1rem 0; }
.story-copy p { font-size: clamp(.98rem, 1.2vw, 1.1rem); }
.pull-quote { margin: 1.8rem 0 !important; padding-left: 1.2rem; border-left: 5px solid var(--red); color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.4vw, 2rem) !important; font-weight: 800; line-height: 1.25; }
.pull-quote.light { color: var(--white); }
.signature { font-weight: 850; }
.signature span { font-size: .86rem; color: #c8d2e5; font-weight: 600; }

.photo-card { position: relative; margin: 0; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; background: var(--navy); }
.photo-card::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.45); border-radius: calc(var(--radius) - 7px); pointer-events: none; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card figcaption { position: absolute; left: 1.2rem; bottom: 1.2rem; max-width: calc(100% - 2.4rem); padding: .65rem .85rem; color: var(--white); background: rgba(7,26,59,.91); border-left: 5px solid var(--red); font-size: .74rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.photo-card-wide { aspect-ratio: 4 / 3; transform: rotate(-1.3deg); }
.photo-card-founder { aspect-ratio: 3 / 2; transform: rotate(1deg); }

.founder, .athlete { color: #f3f6fb; background: var(--navy); }
.founder::before, .athlete::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 10%, rgba(200,25,32,.18), transparent 32%), repeating-linear-gradient(135deg, transparent 0 26px, rgba(255,255,255,.018) 26px 28px); }
.light-copy h2 { color: var(--white); }

.impact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(3rem, 7vw, 7rem); }
.numbers { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin: 2rem 0; }
.numbers div { min-height: 175px; display: flex; flex-direction: column; justify-content: center; padding: 1.3rem; background: var(--white); border: 1px solid var(--line); border-top: 8px solid var(--red); border-radius: 16px; box-shadow: 0 18px 45px rgba(7,26,59,.09); }
.numbers strong { color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.05em; }
.numbers span { margin-top: .75rem; color: var(--muted); font-size: .92rem; font-weight: 700; }
.pyramid-card { aspect-ratio: 3 / 4; transform: rotate(1.2deg); }
.pyramid-card img { object-position: center; }
.medal-card { width: min(100%, 520px); justify-self: center; aspect-ratio: 3 / 4; transform: rotate(-1deg); }
.medal-card img { object-position: center 65%; }

.final-call { position: relative; padding: clamp(5.5rem, 11vw, 9rem) 0; color: var(--white); text-align: center; background: var(--red); overflow: hidden; }
.final-call::before { content: ""; position: absolute; width: 72vw; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%,-50%); border: clamp(35px, 5vw, 80px) solid rgba(255,255,255,.07); border-radius: 50%; }
.final-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.final-logo { width: 150px; height: 150px; margin-bottom: 1.5rem; border: 7px solid var(--white); border-radius: 50%; object-fit: cover; box-shadow: 0 18px 45px rgba(75,0,5,.25); }
.final-inner h2 { max-width: 950px; font-size: clamp(3rem, 7vw, 7rem); letter-spacing: -.055em; }
.final-inner > p:not(.eyebrow):not(.checkout-note) { max-width: 740px; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.final-rhythm { font-family: Georgia, "Times New Roman", serif; }
.checkout-note { margin: .8rem 0 0; font-size: .82rem; }
.partner-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 1.4rem; margin-top: 2rem; }
.partner-links a { font-weight: 800; text-underline-offset: 5px; }

.site-footer { padding: 2.2rem 0 6rem; color: #d4dbea; background: #04122c; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; align-items: center; gap: 2rem; }
.footer-brand { color: var(--white); }
.footer-status { text-align: center; font-size: .82rem; }
.footer-status p, .footer-contact p { margin: .25rem 0; }
.footer-contact { text-align: right; font-size: .82rem; }
.footer-contact a { color: var(--white); font-weight: 800; text-underline-offset: 4px; }
.mobile-donate-bar { display: none; }

.reveal-ready { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal-ready.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  html { scroll-padding-top: 78px; }
  body { padding-bottom: 74px; }
  .site-header { min-height: 70px; grid-template-columns: 1fr auto; padding-block: .4rem; }
  .desktop-nav { display: none; }
  .header-donate { display: inline-flex; }
  .brand img { width: 48px; height: 48px; }
  .brand strong { font-size: .75rem; }
  .brand small { font-size: .62rem; }
  .hero { min-height: 82svh; }
  .hero-shade { background: linear-gradient(0deg, rgba(4,14,34,.96) 0%, rgba(4,14,34,.72) 55%, rgba(4,14,34,.2) 100%); }
  .hero-content { padding-block: 12rem 5rem; }
  .hero h1 { font-size: clamp(3rem, 13vw, 5.2rem); }
  .story-cue { display: none; }
  .split, .split-reverse, .impact-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .split-reverse .photo-card { order: 0; }
  .photo-card-wide, .photo-card-founder, .pyramid-card, .medal-card { transform: none; }
  .photo-card-founder { aspect-ratio: 3 / 2; }
  .pyramid-card, .medal-card { width: min(100%, 560px); justify-self: center; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { margin-inline: auto; }
  .footer-contact { text-align: center; }
  .mobile-donate-bar { position: fixed; z-index: 110; inset: auto 0 0; display: block; padding: .6rem 1rem max(.6rem, env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
  .mobile-donate-bar .button { width: 100%; }
}

@media (max-width: 560px) {
  .page-width { width: min(100% - 28px, 1180px); }
  .site-header { padding-inline: 14px; }
  .brand span { display: none; }
  .header-donate { min-height: 44px; padding: .7rem 1rem; }
  .hero-content { padding-bottom: 4rem; }
  .hero-lede { font-size: 1rem; }
  .story-section { padding-block: 4.5rem; }
  .story-copy h2, .impact-copy h2 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .numbers { grid-template-columns: 1fr; }
  .numbers div { min-height: 150px; }
  .button-group .button { width: 100%; }
  .button-group .text-link { width: 100%; text-align: center; }
  .partner-links { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .button:hover { transform: none; }
}

@media (prefers-contrast: more) {
  :root { --muted: #303846; --line: #777; }
  .button { border-color: currentColor; }
}
