:root {
  --navy-950: #07101a;
  --navy-900: #0a1018;
  --navy-850: #0d1722;
  --navy-800: #111b29;
  --navy-700: #1c2a3a;
  --slate: #263343;
  --gold: #b28a52;
  --gold-strong: #c8a36a;
  --gold-soft: #e4cfaa;
  --cream: #f7f2e8;
  --white: #ffffff;
  --ink: #0d1722;
  --muted: #66717d;
  --line: rgba(178, 138, 82, 0.24);
  --success: #1c7c54;
  --danger: #a43a3a;
  --shadow-sm: 0 8px 24px rgba(7, 16, 26, 0.08);
  --shadow-lg: 0 28px 70px rgba(7, 16, 26, 0.18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --max: 1180px;
  --header-h: 76px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold-strong); outline-offset: 3px; }
::selection { background: var(--gold-soft); color: var(--navy-950); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--white);
  color: var(--navy-950);
  box-shadow: var(--shadow-sm);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-strong);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.7rem, 7vw, 6.1rem); margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4.5vw, 4rem); margin-bottom: 22px; }
h3 { font-size: clamp(1.15rem, 2.3vw, 1.55rem); margin-bottom: 12px; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: #dce2e8; max-width: 720px; }
.copy { color: var(--muted); max-width: 760px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled,
.site-header.header-solid {
  background: rgba(7, 16, 26, .93);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: white; font-weight: 900; letter-spacing: .06em; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span { line-height: 1; }
.brand small { display: block; margin-top: 5px; color: var(--gold-soft); font-size: .62rem; letter-spacing: .12em; }
.nav-links { display: flex; align-items: center; gap: 26px; color: #eef1f4; font-size: .94rem; font-weight: 700; }
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--gold-strong); transition: right .2s ease; }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.menu-toggle { display: none; border: 0; background: transparent; color: white; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 5px 0; transition: .2s ease; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  letter-spacing: -.01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--navy-950); background: linear-gradient(135deg, var(--gold-strong), var(--gold)); box-shadow: 0 12px 30px rgba(178,138,82,.22); }
.btn-primary:hover { box-shadow: 0 16px 38px rgba(178,138,82,.32); }
.btn-light { color: var(--navy-950); background: var(--white); }
.btn-ghost { color: white; border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: var(--gold-strong); background: rgba(178,138,82,.12); }
.btn-dark { color: white; background: var(--navy-900); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

.hero {
  min-height: min(940px, 100svh);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 83% 24%, rgba(200,163,106,.24), transparent 27%),
    radial-gradient(circle at 17% 75%, rgba(38,51,67,.8), transparent 34%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 82%);
}
.hero::after {
  content: "";
  position: absolute;
  width: 580px;
  height: 580px;
  right: -120px;
  bottom: -230px;
  border: 1px solid rgba(200,163,106,.32);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(200,163,106,.05), 0 0 0 140px rgba(200,163,106,.035);
}
.hero .container { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 92px); padding-bottom: 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 64px; align-items: end; }
.hero h1 { max-width: 900px; }
.hero h1 .accent { color: var(--gold-strong); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 20px; color: #aeb9c4; font-size: .9rem; }
.hero-mark { align-self: center; justify-self: end; position: relative; width: min(100%, 390px); }
.hero-mark::before { content: ""; position: absolute; inset: 12% 6%; border-radius: 50%; background: rgba(200,163,106,.14); filter: blur(28px); }
.hero-mark img { position: relative; filter: drop-shadow(0 26px 54px rgba(0,0,0,.26)); }
.value-strip { border-top: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 68px; }
.value-item { padding: 22px 22px 0 0; color: #b9c3cc; font-size: .92rem; }
.value-item strong { display: block; margin-bottom: 5px; color: white; font-size: 1.02rem; }

.article-shell { background: var(--white); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 70px; align-items: start; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 28px; color: var(--muted); font-size: .9rem; }
.article-title { font-size: clamp(2.3rem, 5.2vw, 4.7rem); max-width: 900px; }
.article-lead { font-size: clamp(1.15rem, 2vw, 1.38rem); font-weight: 650; color: var(--slate); }
.prose { font-size: 1.08rem; color: #303b46; }
.prose p { margin-bottom: 1.45em; }
.prose h3 { margin-top: 2em; color: var(--navy-900); }
.prose blockquote {
  margin: 2.3em 0;
  padding: 28px 30px;
  border-left: 4px solid var(--gold);
  background: var(--cream);
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--navy-900);
}
.article-aside { position: sticky; top: calc(var(--header-h) + 28px); }
.aside-card { padding: 28px; border-radius: var(--radius-md); background: var(--navy-900); color: white; box-shadow: var(--shadow-lg); }
.aside-card .mini-logo { width: 74px; margin-bottom: 20px; }
.aside-card h3 { font-size: 1.5rem; }
.aside-card p { color: #c7d0d8; font-size: .95rem; }
.aside-card .btn { margin-top: 10px; }
.share-row { display: flex; gap: 10px; margin-top: 18px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: transparent; color: white; }
.icon-btn:hover { border-color: var(--gold-strong); }

.stats { background: var(--navy-900); color: white; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--navy-900); padding: 44px; }
.stat-number { display: block; color: var(--gold-strong); font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 950; line-height: 1; letter-spacing: -.06em; }
.stat p { margin: 12px 0 0; color: #b8c2cc; }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 30px; border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-sm); border: 1px solid rgba(7,16,26,.05); }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 22px; background: var(--cream); color: var(--gold); }
.card-icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); margin-bottom: 0; }

.impact-card { position: relative; overflow: hidden; }
.impact-amount { color: var(--gold); font-size: 2.5rem; line-height: 1; font-weight: 950; letter-spacing: -.05em; margin-bottom: 14px; }
.impact-card::after { content: ""; position: absolute; width: 110px; height: 110px; right: -44px; bottom: -54px; border-radius: 50%; background: rgba(178,138,82,.12); }

.cta-band { background: var(--gold); color: var(--navy-950); }
.cta-band-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; }
.cta-band h2 { margin: 0; max-width: 800px; }
.cta-band p { margin: 14px 0 0; color: rgba(7,16,26,.72); }

.page-hero {
  padding: calc(var(--header-h) + 90px) 0 70px;
  color: white;
  background:
    radial-gradient(circle at 85% 15%, rgba(200,163,106,.24), transparent 26%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
}
.page-hero h1 { font-size: clamp(2.8rem, 6.8vw, 5.7rem); max-width: 920px; }
.page-hero .lead { max-width: 780px; }

.donation-section { background: #eee8dc; }
.donation-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); gap: 52px; align-items: start; }
.donation-copy { padding-top: 20px; }
.promise-list { display: grid; gap: 15px; margin-top: 32px; }
.promise { display: flex; gap: 14px; align-items: flex-start; }
.promise-dot { flex: 0 0 auto; width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: var(--gold-strong); margin-top: 1px; }
.promise-dot svg { width: 15px; }
.promise strong { display: block; }
.promise p { margin: 3px 0 0; color: var(--muted); font-size: .94rem; }

.donation-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.donation-card-head { padding: 26px 30px; color: white; background: var(--navy-900); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.donation-card-head img { width: 58px; }
.donation-card-head h2 { font-size: 1.65rem; margin: 0; }
.donation-card-head p { margin: 4px 0 0; color: #c7d0d8; font-size: .9rem; }
.donation-form { padding: 30px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: #f0ece4; border-radius: 14px; margin-bottom: 24px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { padding: 11px 12px; border-radius: 10px; text-align: center; font-weight: 850; color: var(--muted); cursor: pointer; }
.segmented input:checked + label { background: white; color: var(--navy-900); box-shadow: 0 4px 14px rgba(7,16,26,.09); }
.form-label { display: block; margin-bottom: 9px; font-weight: 850; color: var(--navy-900); }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.amount-option { position: relative; }
.amount-option input { position: absolute; opacity: 0; }
.amount-option label { display: grid; place-items: center; min-height: 56px; border: 1px solid #d9d3c9; border-radius: 13px; font-weight: 900; cursor: pointer; transition: .16s ease; }
.amount-option input:checked + label { color: white; background: var(--navy-900); border-color: var(--navy-900); transform: translateY(-1px); }
.custom-amount-wrap { position: relative; margin-bottom: 24px; }
.custom-amount-wrap span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 900; }
.custom-amount-wrap input { padding-left: 38px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 15px; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; color: #39444f; font-size: .86rem; font-weight: 750; }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #d4cec3; border-radius: 11px; background: white; color: var(--ink); transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(178,138,82,.12); outline: 0; }
.checkbox { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; margin: 12px 0; font-size: .84rem; color: #4d5862; }
.checkbox input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--navy-900); }
.form-note { margin: 17px 0 0; font-size: .78rem; color: var(--muted); text-align: center; }
.form-status { display: none; margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; font-size: .9rem; }
.form-status.show { display: block; }
.form-status.error { color: #782929; background: #f8dddd; }
.form-status.success { color: #175b3e; background: #dcf2e8; }
.loading .btn-label { opacity: .4; }
.loading .btn-spinner { display: block; }
.btn-spinner { display: none; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.35); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.demo-banner { display: none; padding: 12px 16px; background: #fff3cd; border-bottom: 1px solid #ecd47b; color: #654f00; font-size: .88rem; text-align: center; }
.demo-banner.show { display: block; }

.content-card { padding: 42px; border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-sm); }
.content-card + .content-card { margin-top: 24px; }
.content-card h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); }
.content-card h3 { margin-top: 30px; }
.content-card ul { color: #3d4853; }
.notice { padding: 18px 20px; border-left: 4px solid var(--gold); background: #f6f0e5; border-radius: 0 12px 12px 0; }

.footer { background: var(--navy-950); color: white; padding: 70px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 70px; }
.footer-brand img { width: 120px; margin-bottom: 18px; }
.footer p { color: #9facb7; }
.footer h3 { font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-strong); }
.footer-links { display: grid; gap: 10px; color: #c9d1d8; }
.footer-links a:hover { color: var(--gold-strong); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; margin-top: 44px; border-top: 1px solid rgba(255,255,255,.1); color: #81909d; font-size: .82rem; }

.floating-donate {
  position: fixed;
  z-index: 800;
  right: 20px;
  bottom: 20px;
  box-shadow: 0 14px 34px rgba(7,16,26,.26);
}

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

@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px 20px;
    background: rgba(7,16,26,.98);
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 16px 6px; font-size: 1.15rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links .btn { margin-top: 18px; }
  .menu-toggle { display: block; }
  .hero-grid, .article-grid, .donation-layout { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .article-aside { position: static; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .cta-band-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 72px 0; }
  .section-sm { padding: 52px 0; }
  .brand small { display: none; }
  .hero { min-height: 780px; }
  .hero .container { padding-bottom: 42px; }
  .hero-actions .btn { width: 100%; }
  .value-strip { grid-template-columns: 1fr; margin-top: 46px; }
  .value-item { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .stat { padding: 30px; }
  .article-title { font-size: 2.5rem; }
  .prose { font-size: 1rem; }
  .prose blockquote { padding: 22px; margin-inline: 0; }
  .donation-card-head, .donation-form { padding: 22px; }
  .amount-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .content-card { padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .floating-donate { right: 14px; bottom: 14px; }
}

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