:root {
  --ink: #12363f;
  --teal: #164551;
  --teal-2: #295a65;
  --mist: #deebed;
  --mist-2: #eef5f5;
  --paper: #ffffff;
  --purple: #5f4cc9;
  --rose: #a92d52;
  --line: rgba(18, 54, 63, 0.16);
  --shadow: 0 24px 60px rgba(18, 54, 63, 0.14);
  --radius: 28px;
  --content: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}
img { display: block; width: 100%; }
a { color: inherit; }
button { font: inherit; }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 100; background: white; padding: 10px 16px; }
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(18,54,63,.08);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: var(--content);
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 760; letter-spacing: -.02em; }
.brand img { width: 66px; height: 52px; object-fit: contain; }
.brand span { white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 650; }
.site-nav a { text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--purple); }
.language { display: inline-flex; padding-left: 18px; border-left: 1px solid var(--line); }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--rose);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 740;
  letter-spacing: .02em;
  transition: transform .2s ease, background .2s ease;
}
.pill:hover { transform: translateY(-2px); background: #8f2345; }
.pill.secondary { background: transparent; border-color: currentColor; color: var(--ink); }
.menu-button { display: none; border: 0; background: transparent; color: var(--ink); width: 46px; height: 46px; border-radius: 50%; }
.menu-button span, .menu-button::before, .menu-button::after { content: ""; display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; }

.hero {
  background: var(--mist);
  overflow: hidden;
}
.hero-grid {
  width: var(--content);
  min-height: 710px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: stretch;
}
.hero-copy { padding: 90px 64px 80px 0; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 22px; font-size: 13px; line-height: 1.3; font-weight: 780; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 28px; max-width: 760px; font-size: clamp(3.15rem, 6.2vw, 6.3rem); line-height: .96; letter-spacing: -.065em; font-weight: 510; }
h2 { margin-bottom: 26px; max-width: 980px; font-size: clamp(2.35rem, 4.6vw, 4.9rem); line-height: 1.01; letter-spacing: -.05em; font-weight: 510; }
h3 { margin-bottom: 12px; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.18; letter-spacing: -.025em; }
.lede { max-width: 720px; margin-bottom: 34px; font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.52; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art {
  position: relative;
  min-height: 620px;
  background: var(--teal);
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(155deg, rgba(95,76,201,.32), transparent 46%); z-index: -1; }
.hero-logo { width: min(88%, 560px); filter: drop-shadow(0 24px 48px rgba(0,0,0,.12)); }
.hero-note { position: absolute; left: 34px; right: 34px; bottom: 28px; display: flex; justify-content: space-between; color: rgba(255,255,255,.9); font-size: 13px; letter-spacing: .09em; text-transform: uppercase; }

.stats { background: var(--teal); color: white; }
.stats-grid { width: var(--content); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 36px 28px; border-right: 1px solid rgba(255,255,255,.2); }
.stat:first-child { border-left: 1px solid rgba(255,255,255,.2); }
.stat strong { display: block; font-size: 2rem; line-height: 1; letter-spacing: -.04em; }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.75); }

.section { padding: 112px 0; }
.section.alt { background: var(--mist-2); }
.section.dark { background: var(--teal); color: white; }
.container { width: var(--content); margin: 0 auto; }
.section-head { display: grid; grid-template-columns: .34fr .66fr; gap: 48px; margin-bottom: 58px; align-items: start; }
.section-head .eyebrow { color: var(--purple); padding-top: 10px; }
.section.dark .section-head .eyebrow { color: #c8c1ff; }
.section-intro { max-width: 820px; font-size: 1.17rem; }

.story-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 24px; }
.photo-card { position: relative; overflow: hidden; border-radius: var(--radius); background: #cbdcde; min-height: 420px; box-shadow: var(--shadow); }
.photo-card img { height: 100%; object-fit: cover; }
.photo-card figcaption { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 12px 15px; border-radius: 14px; color: white; background: rgba(13,39,45,.76); backdrop-filter: blur(10px); font-size: 13px; line-height: 1.45; }
.photo-card.portrait { min-height: 560px; }
.photo-card.flush { box-shadow: none; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.info-card .number { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 48px; border-radius: 50%; color: white; background: var(--teal); font-weight: 750; }
.info-card p:last-child { margin-bottom: 0; }
.note-card { margin-top: 22px; padding: 34px; border-left: 5px solid var(--purple); border-radius: 0 22px 22px 0; background: white; }

.chester-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 56px; align-items: start; }
.chester-copy { position: sticky; top: 118px; }
.chester-copy p { max-width: 640px; }
.chester-feature { margin-bottom: 20px; }
.chester-feature .photo-card { min-height: 500px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery .photo-card { min-height: 300px; box-shadow: none; border-radius: 20px; }
.gallery .photo-card:nth-child(3n) { grid-column: span 2; min-height: 360px; }

.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.program-card { overflow: hidden; border-radius: 24px; background: white; color: var(--ink); }
.program-card img { height: 250px; object-fit: cover; }
.program-card-content { padding: 28px; }
.program-card ul { padding-left: 20px; }

.photo-strip { display: grid; grid-template-columns: 1.3fr .85fr .85fr; gap: 14px; margin-top: 24px; }
.photo-strip img { height: 290px; object-fit: cover; border-radius: 20px; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person { overflow: hidden; border-radius: 24px; background: var(--mist-2); }
.person img { aspect-ratio: 1 / 1; object-fit: cover; }
.person-copy { padding: 26px; }
.role { margin-bottom: 18px; font-size: 13px; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); }

.vision-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 26px; background: rgba(255,255,255,.18); }
.vision-item { padding: 40px; background: var(--teal); }
.vision-item p { color: rgba(255,255,255,.76); }

.involve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.action-card { padding: 34px; border-radius: 24px; background: var(--mist-2); }
.action-card.accent { background: var(--purple); color: white; }
.action-card p { max-width: 620px; }
.action-card .pill { margin-top: 12px; }
.action-card.accent .pill { background: white; color: var(--purple); }
.partner-box { margin-top: 22px; padding: 36px; border: 1px solid var(--line); border-radius: 24px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.partner-box p { margin-bottom: 0; max-width: 780px; }

.donation-panel { margin-top: 24px; padding: 42px; border-radius: 28px; background: var(--teal); color: white; }
.donation-panel-head { max-width: 760px; margin-bottom: 30px; }
.donation-panel-head .eyebrow { color: #c8c1ff; }
.donation-panel-head p:last-child { color: rgba(255,255,255,.78); }
.donation-qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.qr-card { display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: center; padding: 24px; border-radius: 22px; background: white; color: var(--ink); }
.qr-card img { width: 190px; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 14px; border: 1px solid var(--line); }
.qr-card.paypal img { aspect-ratio: auto; }
.qr-card p { margin-bottom: 18px; font-size: 15px; }
.qr-card .pill { min-height: 42px; }

.site-footer { padding: 54px 0 28px; background: #0e3139; color: white; }
.footer-top { width: var(--content); margin: 0 auto 44px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; }
.footer-brand { display: flex; gap: 20px; align-items: center; }
.footer-brand img { width: 96px; }
.footer-brand p { margin: 4px 0 0; color: rgba(255,255,255,.72); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,.8); }
.footer-bottom { width: var(--content); margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.6); font-size: 13px; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } [data-reveal] { opacity: 1; transform: none; transition: none; } .pill { transition: none; } }

@media (max-width: 1080px) {
  .site-nav { display: none; position: absolute; top: 86px; left: 0; right: 0; padding: 24px 20px 30px; background: white; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 8px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px 0; }
  .site-nav .pill { margin-top: 8px; }
  .language { border: 0; padding-left: 0; }
  .menu-button { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 78px 0 58px; }
  .hero-art { min-height: 520px; border-radius: var(--radius) var(--radius) 0 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 1px solid rgba(255,255,255,.2); }
  .story-grid, .chester-layout { grid-template-columns: 1fr; }
  .chester-copy { position: static; }
  .cards-3, .program-grid, .team-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --content: min(100% - 28px, 1180px); --radius: 22px; }
  body { font-size: 16px; }
  .header-inner { min-height: 74px; }
  .brand img { width: 56px; height: 44px; }
  .brand span { font-size: 15px; }
  .site-nav { top: 74px; }
  .hero-copy { padding: 58px 0 44px; }
  h1 { font-size: clamp(3rem, 14vw, 4.3rem); }
  h2 { font-size: clamp(2.3rem, 11vw, 3.3rem); }
  .hero-art { min-height: 410px; }
  .hero-logo { width: 88%; }
  .hero-note { left: 20px; right: 20px; bottom: 20px; font-size: 11px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 18px; }
  .stat strong { font-size: 1.65rem; }
  .section { padding: 78px 0; }
  .section-head { grid-template-columns: 1fr; gap: 6px; margin-bottom: 38px; }
  .cards-3, .program-grid, .team-grid, .involve-grid, .vision-list { grid-template-columns: 1fr; }
  .info-card .number { margin-bottom: 28px; }
  .photo-card, .photo-card.portrait, .chester-feature .photo-card { min-height: 380px; }
  .gallery .photo-card, .gallery .photo-card:nth-child(3n) { grid-column: auto; min-height: 250px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip img { height: 220px; }
  .photo-strip img:first-child { grid-column: span 2; }
  .partner-box, .footer-top { grid-template-columns: 1fr; }
  .donation-qr-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 430px) {
  .brand span { display: none; }
  .stats-grid, .gallery { grid-template-columns: 1fr; }
  .stat { border-left: 1px solid rgba(255,255,255,.2); }
  .gallery .photo-card:nth-child(3n) { grid-column: auto; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .donation-panel { padding: 26px 18px; }
  .qr-card { grid-template-columns: 1fr; text-align: center; }
  .qr-card img { width: min(100%, 260px); margin: 0 auto; }
}
