:root {
  --navy: #071e2f;
  --navy-2: #0b2b42;
  --ink: #102739;
  --blue: #168ed1;
  --sky: #77c6eb;
  --coral: #ff5b4d;
  --coral-dark: #e94034;
  --paper: #f4f1eb;
  --white: #fff;
  --muted: #64727d;
  --line: #d7dee1;
  --max: 1180px;
}

* { 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: 17px;
  line-height: 1.6;
  letter-spacing: 0;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { width: 1.1em; height: 1.1em; stroke-width: 2; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--navy);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 64px), var(--max));
  min-height: 88px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,.28);
  color: var(--white);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; width: max-content; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 800;
}
.brand-name { font-family: "Manrope", sans-serif; font-size: 20px; font-weight: 800; letter-spacing: 0; }
.brand-name span { color: var(--sky); }
.desktop-nav { display: flex; gap: 34px; font-size: 14px; font-weight: 700; }
.desktop-nav a { position: relative; text-decoration: none; }
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--coral);
  transition: right .25s ease;
}
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { right: 0; }
.site-header > .button,
.site-header > .dbox-donation-page-button { justify-self: end; }
.dbox-donation-page-button { align-items: center; font-weight: 700; }
.dbox-donation-page-button img { width: 18px; height: 18px; object-fit: contain; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.button-coral { color: var(--white); background: var(--coral); box-shadow: 0 9px 24px rgba(255,91,77,.24); }
.button-coral:hover { background: var(--coral-dark); }
.button-small { min-height: 44px; padding-inline: 18px; font-size: 15px; }
.button-full { width: 100%; }

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 760px;
  height: 92svh;
  max-height: 930px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy) url("defeat-cancer-hero.png") center center / cover no-repeat;
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,20,32,.96) 0%, rgba(4,20,32,.79) 35%, rgba(4,20,32,.18) 67%, rgba(4,20,32,.08) 100%); }
.hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 64px), var(--max));
  margin: 50px auto 0;
}
.hero-content > * { max-width: 660px; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-eyebrow { color: var(--sky); }
h1, h2, h3 { margin: 0; font-family: "Manrope", system-ui, sans-serif; letter-spacing: 0; }
h1 { max-width: 720px !important; font-size: clamp(52px, 6.2vw, 88px); line-height: .99; font-weight: 800; }
.hero-copy { margin: 28px 0 0; color: rgba(255,255,255,.86); font-size: 20px; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 34px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; text-underline-offset: 4px; }
.hero-caption { position: absolute; z-index: 2; right: 32px; bottom: 20px; margin: 0; color: rgba(255,255,255,.7); font-size: 12px; }
.reveal { animation: rise .75s both; }
.reveal:nth-child(2) { animation-delay: .09s; }
.reveal:nth-child(3) { animation-delay: .18s; }
.reveal:nth-child(4) { animation-delay: .27s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.signal-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 84px;
  padding: 16px 24px;
  color: var(--white);
  background: var(--blue);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}
.signal-strip p { margin: 0; }
.signal-strip span { width: 5px; height: 5px; border-radius: 50%; background: var(--sky); }

.section { width: min(calc(100% - 64px), var(--max)); margin: 0 auto; padding: 130px 0; }
.why { display: grid; grid-template-columns: 1.12fr .88fr; gap: 100px; }
h2 { font-size: clamp(36px, 4vw, 58px); line-height: 1.08; font-weight: 800; }
.why-body { padding-top: 42px; color: var(--muted); font-size: 18px; }
.why-body > p:first-child { margin-top: 0; }
.pull-quote { margin-top: 38px; padding: 28px 0 0 28px; border-left: 3px solid var(--coral); color: var(--ink); font-family: "Manrope", sans-serif; font-size: 22px; font-weight: 700; line-height: 1.45; }

.impact { color: var(--white); background: var(--navy); }
.impact-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; width: min(calc(100% - 64px), var(--max)); margin: 0 auto; padding: 130px 0; }
.impact-intro .eyebrow { color: var(--sky); }
.impact-intro > p:last-child { max-width: 530px; margin-top: 28px; color: #afbdc5; }
.impact-item { display: grid; grid-template-columns: 50px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.18); }
.impact-item:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.impact-item > span { color: var(--sky); font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 800; }
.impact-item svg { width: 28px; height: 28px; margin-bottom: 14px; color: var(--coral); }
.impact-item h3 { font-size: 24px; }
.impact-item p { max-width: 520px; margin: 8px 0 0; color: #afbdc5; }

.stories-header { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.story-controls { display: flex; gap: 10px; }
.story-controls button, .dialog-close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.story-controls button:hover { color: var(--white); background: var(--ink); }
.story-stage { max-width: 930px; margin-top: 74px; }
.quote-mark { display: block; height: 70px; color: var(--coral); font-family: Georgia, serif; font-size: 110px; line-height: 1; }
.story-stage blockquote { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(30px, 4vw, 50px); font-weight: 700; line-height: 1.2; }
.story-stage > p { margin: 28px 0 0; color: var(--muted); font-weight: 700; }
.story-progress { width: 100%; height: 3px; margin-top: 48px; overflow: hidden; background: #d8d8d5; }
.story-progress span { display: block; width: 33.333%; height: 100%; background: var(--blue); transition: transform .35s ease; }

.give { display: grid; grid-template-columns: 1fr 520px; gap: 100px; align-items: center; padding: 130px max(32px, calc((100vw - var(--max)) / 2)); background: #e7edf0; }
.give-copy > p:nth-of-type(2) { max-width: 590px; margin-top: 28px; color: var(--muted); }
.trust-row { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 32px; font-size: 14px; font-weight: 700; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { color: var(--blue); }
.donation-panel { padding: 38px; border-radius: 8px; color: var(--ink); background: var(--white); box-shadow: 0 22px 60px rgba(7,30,47,.13); }
.donation-panel fieldset { margin: 0; padding: 0; border: 0; }
.donation-panel legend { margin-bottom: 18px; font-family: "Manrope", sans-serif; font-size: 23px; font-weight: 800; }
.frequency { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 6px; background: #edf1f3; }
.frequency button { min-height: 42px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; font-weight: 700; cursor: pointer; }
.frequency button.active { color: var(--ink); background: var(--white); box-shadow: 0 2px 8px rgba(7,30,47,.1); }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; }
.amounts button { min-height: 54px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--white); font-weight: 800; cursor: pointer; }
.amounts button:hover, .amounts button.active { border-color: var(--blue); color: var(--white); background: var(--blue); }
.custom-amount { display: grid; grid-template-columns: 36px 1fr; align-items: center; height: 54px; margin: 12px 0 20px; border: 1px solid var(--line); border-radius: 5px; }
.custom-amount:focus-within { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(22,142,209,.16); }
.custom-amount span { padding-left: 15px; color: var(--muted); }
.custom-amount input { width: 100%; height: 100%; padding: 0 12px 0 0; border: 0; outline: 0; background: transparent; }
.form-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 14px 0 0; color: var(--muted); font-size: 12px; }

.final-cta { padding: 120px 24px; color: var(--white); background: var(--blue); text-align: center; }
.final-cta .eyebrow { color: #d8f2ff; }
.final-cta h2 { max-width: 800px; margin: 0 auto 34px; }
.button-outline { border: 1px solid rgba(255,255,255,.75); color: var(--white); background: transparent; }
.button-outline:hover { color: var(--blue); background: var(--white); }
.share-status { min-height: 24px; margin: 12px 0 0; font-size: 13px; }

footer { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; padding: 64px max(32px, calc((100vw - var(--max)) / 2)); color: #afbdc5; background: #041722; font-size: 14px; }
.brand-footer { color: var(--white); }
footer > p { margin: 4px 0 0; }
.footer-note { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12px; }
.mobile-donate { display: none; }

.reveal-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal-on-scroll.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; width: min(calc(100% - 40px), var(--max)); }
  .desktop-nav { display: none; }
  .hero { min-height: 700px; height: 88svh; background-position: 61% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(4,20,32,.95), rgba(4,20,32,.7) 60%, rgba(4,20,32,.22)); }
  .hero-content, .section, .impact-inner { width: min(calc(100% - 40px), var(--max)); }
  .why, .impact-inner, .give { grid-template-columns: 1fr; gap: 56px; }
  .impact-inner, .section { padding-block: 92px; }
  .give { padding: 92px 20px; }
  .donation-panel { width: min(100%, 560px); }
  footer { grid-template-columns: 1fr; }
  .footer-note { grid-column: auto; }
}

@media (max-width: 600px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .site-header { min-height: 72px; }
  .brand-name { font-size: 17px; }
  .brand-mark { width: 30px; height: 30px; font-size: 16px; }
  .site-header > .button,
  .site-header > .dbox-donation-page-button { display: none !important; }
  .hero { min-height: 650px; height: calc(100svh - 36px); max-height: 820px; background-position: 66% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(4,20,32,.96) 0%, rgba(4,20,32,.74) 57%, rgba(4,20,32,.32) 100%); }
  .hero-content { align-self: end; width: calc(100% - 40px); margin: 0 auto 62px; }
  h1 { font-size: clamp(45px, 13vw, 64px); }
  .hero-copy { margin-top: 20px; font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; margin-top: 26px; }
  .hero-caption { display: none; }
  .signal-strip { gap: 10px; min-height: 62px; padding-inline: 12px; font-size: 12px; }
  .section, .impact-inner { width: calc(100% - 40px); padding-block: 76px; }
  h2 { font-size: 36px; }
  .why { gap: 26px; }
  .why-body { padding-top: 0; }
  .pull-quote { padding-left: 20px; font-size: 19px; }
  .impact-inner { gap: 42px; }
  .stories-header { align-items: flex-start; }
  .stories-header h2 { max-width: 260px; }
  .story-controls { padding-top: 34px; }
  .story-controls button { width: 42px; height: 42px; }
  .story-stage { margin-top: 48px; }
  .story-stage blockquote { font-size: 30px; }
  .give { padding-block: 76px; gap: 42px; }
  .donation-panel { padding: 25px 20px; }
  .amounts { grid-template-columns: 1fr 1fr; }
  .trust-row { flex-direction: column; gap: 10px; }
  .final-cta { padding: 80px 20px; }
  footer { padding: 48px 20px; }
  .mobile-donate {
    position: fixed;
    z-index: 20;
    right: 12px;
    bottom: 10px;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    border-radius: 6px;
    color: var(--white);
    background: var(--coral);
    box-shadow: 0 10px 30px rgba(4,23,34,.4);
    font-weight: 800;
    text-decoration: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .mobile-donate.hidden { opacity: 0; transform: translateY(80px); pointer-events: none; }
  dialog { padding: 42px 24px 26px; }
}

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