:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --navy: #173c5a;
  --blue: #2563eb;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --radius: 18px;
  --ice: #d9eef7;
}

* { box-sizing: border-box; }

html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 80px; 
}

body { 
  margin: 0; 
  font-family: "Manrope", sans-serif; 
  color: var(--ink); 
  background: var(--bg); 
  line-height: 1.5; 
  -webkit-font-smoothing: antialiased; 
}

.container { 
  width: min(1120px, calc(100% - 40px)); 
  margin: 0 auto; 
}

/* --- Header & Navigation --- */
.header { 
  position: sticky; 
  top: 0; 
  z-index: 100; 
  background: rgba(255, 255, 255, 0.9); 
  border-bottom: 1px solid var(--line); 
  backdrop-filter: blur(10px); 
}

.header__inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 14px 0; 
}

.brand { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  text-decoration: none; 
  color: var(--navy); 
  font-weight: 700; 
  font-family: "Sora"; 
  font-size: 18px; 
}

.brand__logo { width: 38px; height: 38px; }
.digit { color: var(--blue); }

.nav { display: flex; gap: 18px; }

.nav a { 
  text-decoration: none; 
  color: var(--muted); 
  font-size: 13px; 
  font-weight: 800; 
}

.nav a:hover { color: var(--blue); }

/* --- Buttons --- */
.btn { 
  padding: 10px 18px; 
  border-radius: 999px; 
  font-weight: 900; 
  text-decoration: none; 
  font-size: 14px; 
  display: inline-flex; 
  align-items: center; 
  transition: 0.2s; 
  border: 1px solid var(--line); 
  cursor: pointer; 
  background: white; 
}

.btn--primary { 
  background: var(--navy); 
  color: white; 
  border: none; 
}

.btn--secondary { 
  background: var(--bg-alt); 
  color: var(--navy); 
}

.btn:hover { 
  transform: translateY(-1px); 
  opacity: 0.9; 
}

/* --- Hero Section --- */
.hero-block { 
  padding: 20px 0; 
  border-bottom: 1px solid var(--line); 
}

.hero__grid { 
  display: grid; 
  grid-template-columns: 1.15fr 0.85fr; 
  gap: 40px; 
  align-items: stretch; 
  margin-bottom: 30px; 
}

h1 { 
  font-family: "Sora"; 
  font-size: clamp(34px, 5vw, 56px); 
  line-height: 1.05; 
  margin: 0 0 16px; 
  letter-spacing: -0.03em; 
  color: var(--navy); 
}

.eyebrow { 
  color: var(--muted); 
  font-weight: 900; 
  font-size: 13px; 
  letter-spacing: 0.04em; 
  margin-bottom: 10px; 
  text-transform: uppercase; 
}

.lead { 
  font-size: 17px; 
  color: var(--muted); 
  margin-bottom: 24px; 
  max-width: 60ch; 
}

.hero__actions { display: flex; gap: 12px; }

.impact-card { 
  background: var(--bg-alt); 
  border: 1px solid var(--line); 
  border-radius: 26px; 
  padding: 24px; 
}

.impact-header { 
  font-size: 11px; 
  text-transform: uppercase; 
  font-weight: 800; 
  color: var(--muted); 
  margin-bottom: 16px; 
}

.stat { 
  display: flex; 
  justify-content: space-between; 
  align-items: baseline; 
  margin-bottom: 8px; 
}

.stat-label { 
  font-size: 12px; 
  color: var(--muted); 
  font-weight: 600; 
}

.stat-value { 
  font-family: "Sora"; 
  font-size: 22px; 
  font-weight: 700; 
  color: var(--navy); 
}

.progress-container { 
  background: #e2e8f0; 
  height: 6px; 
  border-radius: 10px; 
  margin: 8px 0; 
}

.progress-bar { 
  background: var(--blue); 
  height: 100%; 
  border-radius: 10px; 
}

/* --- Section Layouts --- */
.section { padding: 60px 0; } 
.section--alt { 
  background: var(--bg-alt); 
  border-top: 1px solid var(--line); 
  border-bottom: 1px solid var(--line); 
}

.section-title { 
  font-family: "Sora"; 
  font-size: 26px; 
  margin-bottom: 12px; 
  color: var(--navy); 
}

/* --- Action Grids (Donate & Join) --- */
.action-grid { 
  display: grid; 
  grid-template-columns: 0.6fr 1.4fr; 
  gap: 60px; 
  align-items: center; 
}

.action-grid--reverse { grid-template-columns: 1.4fr 0.6fr; }
.action-grid--reverse .action-graphic { order: 2; }
.action-grid--reverse .action-content { order: 1; }

.graphic-box { 
  background: white; 
  border: 1px solid var(--line); 
  aspect-ratio: 1; 
  border-radius: 24px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  box-shadow: 0 10px 26px rgba(0,0,0,0.04); 
}

.graphic-box img { width: 50%; }

.action-content h2 { 
  font-family: "Sora"; 
  font-size: 32px; 
  margin: 0 0 16px; 
  color: var(--navy); 
}

.action-content p { 
  color: var(--muted); 
  font-size: 17px; 
  margin-bottom: 24px; 
}

.check-list { list-style: none; padding: 0; margin-bottom: 32px; }

.check-list li { 
  font-size: 15px; 
  margin-bottom: 12px; 
  padding-left: 28px; 
  position: relative; 
}

.check-list li::before { 
  content: "→"; 
  position: absolute; 
  left: 0; 
  color: var(--blue); 
  font-weight: 800; 
}

.steps { display: grid; gap: 16px; margin-bottom: 32px; }

.step { 
  display: flex; 
  gap: 16px; 
  align-items: flex-start; 
}

.step-n { 
  background: var(--navy); 
  color: white; 
  width: 24px; 
  height: 24px; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 11px; 
  font-weight: 800; 
  flex-shrink: 0; 
}

.card__actions { display: flex; gap: 12px; margin-top: 14px; }
.disclaimer { 
  font-size: 11px; 
  margin-top: 20px; 
  font-style: italic; 
  color: var(--muted); 
}

/* --- Research Section --- */
.filters { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 10px; 
  margin: 20px 0; 
}

.pill { 
  padding: 8px 16px; 
  border-radius: 999px; 
  border: 1px solid var(--line); 
  background: white; 
  font-weight: 800; 
  color: var(--muted); 
  cursor: pointer; 
  font-size: 13px; 
  transition: 0.2s;
}

.pill.is-active { 
  color: white; 
  background: var(--navy); 
  border-color: var(--navy); 
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.project-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
}

.project-card__title {
  font-family: "Sora", sans-serif;
  font-size: 20px; 
  font-weight: 700;
  margin: 0;
  color: var(--navy);
  padding-right: 85px; 
  line-height: 1.2;
}

.project-card__id {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--ice);
  color: var(--navy);
  border: 1px solid rgba(23, 60, 90, 0.1);
  white-space: nowrap;
}

.badge--alzheimers { background: #e0dbff; color: #4433ff; }
.badge--cancer { background: #ffe0e0; color: #ff3333; }
.badge--influenza { background: #e0f7ff; color: #0077aa; }

.project-card__meta {
  font-size: 15px; 
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.project-card__summary {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.project-card__details {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.project-card__details summary {
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  color: var(--navy);
  list-style: none;
}

.project-card__details summary::-webkit-details-marker { display: none; }

.project-card__content {
  font-size: 13px;
  padding-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.project-card__links {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

/* --- Footer --- */
.footer { 
  padding: 40px 0; 
  border-top: 1px solid var(--line); 
  text-align: center; 
  font-size: 12px; 
  color: var(--muted); 
}

.footer__link {
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.footer__link:hover { color: var(--blue); }

/* --- Science Page Classes --- */
.science-hero { padding: 34px 0 18px; border-bottom: 1px solid var(--line); }
.science-kicker { font-size: 12px; font-weight: 900; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; }
.science-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: start; }
.science-lead { font-size: 17px; color: var(--muted); margin: 0 0 18px; max-width: 70ch; }
.science-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 26px; padding: 22px; }
.science-card h3 { margin: 0 0 10px; font-family: "Sora"; color: var(--navy); font-size: 18px; }
.science-list { margin: 0; padding-left: 18px; color: var(--muted); }
.science-list li { margin: 10px 0; }
.science-section { padding: 56px 0; }
.science-section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.science-rows { display: grid; gap: 18px; }
.science-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 18px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.science-row h3 { font-family: "Sora"; margin: 0 0 8px; color: var(--navy); font-size: 18px; }
.science-row p { margin: 0; color: var(--muted); font-size: 15px; }
.science-visual { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; align-items: center; justify-content: center; min-height: 180px; overflow: hidden; }

.floaty { animation: floaty 4.5s ease-in-out infinite; transform-origin: center; }
@keyframes floaty { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-6px); } }
.stroke-draw { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pulse { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.95; } 50% { transform: scale(1.03); opacity: 1; } }

.science-faq { display: grid; gap: 12px; }
.science-faq details { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.science-faq summary { cursor: pointer; font-weight: 900; color: var(--navy); list-style: none; }
.science-faq summary::-webkit-details-marker { display: none; }
.science-faq p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* --- RESPONSIVE UPDATES --- */
@media (max-width: 860px) {
  /* Fix Navigation Overlap */
  .header__inner {
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
  }
  
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
  }
  
  .header .btn {
    display: none; /* Hide button in sticky header on mobile to save space */
  }

  /* Fix Section Scaling & Images */
  .hero__grid, 
  .action-grid { 
    grid-template-columns: 1fr; 
    gap: 30px;
  }
  
  .graphic-box {
    aspect-ratio: auto; /* Remove forced square shape on mobile */
    padding: 30px;
    max-height: 240px; /* Prevent images from being too big */
  }
  
  .graphic-box img {
    width: auto;
    height: 100px; /* Lock icon height for consistency */
  }

  .action-grid--reverse .action-graphic { order: 1; }
  .action-grid--reverse .action-content { order: 2; }
  
  .projects { grid-template-columns: 1fr; }
  
  .badge { 
    position: static; 
    display: inline-block; 
    margin-top: 10px; 
    margin-bottom: 5px;
  }
  
  .project-card__title { padding-right: 0; }

  .science-grid { grid-template-columns: 1fr; }
  .science-row { grid-template-columns: 1fr; }
}