:root {
  --gold: #d98a16;
  --gold-dark: #a96508;
  --charcoal: #1e1e1e;
  --ink: #333333;
  --muted: #66615a;
  --line: #ded8cf;
  --light: #f7f7f7;
  --paper: #fffdf9;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 22px 60px rgba(30, 30, 30, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--paper);
  font-family: Arial, "Helvetica Neue", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--charcoal);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 78px;
  padding: 0.65rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 253, 249, 0.92);
  border-bottom: 1px solid rgba(30, 30, 30, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mini {
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(30, 30, 30, 0.08);
}

.brand-mini img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-logo {
  width: auto;
  max-width: clamp(160px, 16vw, 210px);
  max-height: 58px;
  height: auto;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: none;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.15;
}

.brand small {
  max-width: 230px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.3vw, 2rem);
  font-size: 0.95rem;
}

.primary-nav a {
  text-decoration: none;
}

.primary-nav a:not(.nav-donate):hover {
  color: var(--gold-dark);
}

.nav-donate,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.nav-donate {
  padding: 0.75rem 1rem;
  background: var(--charcoal);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--charcoal);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100dvh - 76px);
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.25rem;
  font-size: clamp(3.1rem, 5.6vw, 5.75rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
  line-height: 1.15;
}

.hero-copy > p:not(.eyebrow),
.section-intro p,
.legacy-copy > p,
.donation p,
.site-footer p {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-actions,
.donation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

.button {
  padding: 0.95rem 1.2rem;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--gold);
  color: var(--charcoal);
}

.button.secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--charcoal);
}

.button.light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.button:hover,
.nav-donate:hover,
.newsletter button:hover {
  transform: translateY(-1px);
}

.button:active,
.nav-donate:active,
.newsletter button:active {
  transform: translateY(1px);
}

.hero-media {
  position: relative;
  margin: 0;
  height: min(620px, 70dvh);
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-media img,
.legacy-image img,
.recent-grid img,
.scholar-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scholar-card img.face-center {
  object-position: center 35%;
}

.hero-media img {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(30, 30, 30, 0) 45%, rgba(30, 30, 30, 0.76));
}

.hero-media figcaption {
  position: absolute;
  left: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 1;
  color: var(--white);
}

.hero-media figcaption strong,
.hero-media figcaption span {
  display: block;
}

.hero-media figcaption strong {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  line-height: 1.05;
}

.hero-media figcaption span {
  max-width: 34rem;
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.84);
}

section:not(.hero) {
  padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 5vw, 4rem);
}

.section-intro {
  max-width: 820px;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.impact {
  background: var(--light);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.impact-grid article {
  min-height: 210px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--white);
}

.impact-grid strong,
.impact-grid span {
  color: var(--charcoal);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.9;
  font-weight: 900;
}

.impact-grid strong.impact-word {
  display: block;
  max-width: 100%;
  font-size: clamp(2.4rem, 3.6vw, 3.25rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.impact-grid p {
  max-width: 18rem;
  margin-top: 1rem;
  margin-bottom: 0;
  color: var(--gold-dark);
  font-weight: 800;
}

.scholar-track {
  display: grid;
  grid-template-columns: 0.9fr 1.16fr 0.9fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

.scholar-card {
  display: grid;
  grid-template-rows: 340px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.scholar-card.featured {
  transform: translateY(-1.5rem);
}

.scholar-card div {
  padding: 1.3rem;
}

.aspiration {
  color: var(--gold-dark);
  font-weight: 800;
}

blockquote {
  margin: 1rem 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.45;
}

.scholar-card a,
.recent-grid a,
.text-link {
  color: var(--gold-dark);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.pathways {
  background: var(--charcoal);
  color: var(--white);
}

.pathways .eyebrow,
.donation .eyebrow {
  color: #f1b24f;
}

.pathways .section-intro p,
.pathways p {
  color: rgba(255, 255, 255, 0.76);
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.pathway-grid article {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.pathway-grid article:last-child {
  border-right: 0;
}

.pathway-grid span {
  display: block;
  margin-bottom: 4rem;
  color: #f1b24f;
  font-weight: 900;
}

.legacy {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.legacy-image {
  height: min(680px, 80dvh);
  overflow: hidden;
  border-radius: var(--radius);
}

.timeline {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 2rem 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.timeline strong {
  color: var(--gold-dark);
}

.recent {
  background: var(--light);
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.recent-grid article {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.recent-grid img {
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.recent-grid div {
  padding: 1.25rem;
}

.recent-grid p {
  color: var(--muted);
}

.donation {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(30, 30, 30, 0.92), rgba(30, 30, 30, 0.64)),
    url("assets/feature-mel-smith.jpg") center / cover;
  color: var(--white);
}

.donation p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  grid-template-areas:
    "mission newsletter"
    "footer-nav footer-nav";
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem);
  background: #111111;
  color: var(--white);
}

.site-footer > div {
  grid-area: mission;
}

.footer-brand {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 2rem;
}

.footer-logo-shell {
  display: inline-flex;
  max-width: min(520px, 100%);
  padding: 0;
}

.footer-logo {
  width: min(420px, 100%);
  max-width: none;
  max-height: none;
}

.site-footer p,
.site-footer small {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer nav {
  grid-area: footer-nav;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  margin-top: 0.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(217, 138, 22, 0.42);
}

.site-footer nav a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  text-decoration: none;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: #f1b24f;
}

.site-footer nav a:last-child {
  color: #f1b24f;
}

.newsletter {
  grid-area: newsletter;
}

.newsletter label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 900;
}

.newsletter div {
  display: flex;
  gap: 0.5rem;
}

.newsletter input {
  min-width: 0;
  width: 100%;
  height: 48px;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.newsletter button {
  height: 48px;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 900;
  white-space: nowrap;
}

.mobile-donate {
  display: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    inset: 76px 0 auto;
    display: grid;
    gap: 0;
    padding: 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 240ms ease;
  }

  .primary-nav a {
    padding: 1rem;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav.is-open {
    transform: translateY(0);
  }

  .hero,
  .legacy,
  .donation,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-areas:
      "mission"
      "newsletter"
      "footer-nav";
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    height: 520px;
  }

  .impact-grid,
  .recent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scholar-track,
  .pathway-grid {
    grid-template-columns: 1fr;
  }

  .scholar-card,
  .scholar-card.featured {
    transform: none;
  }

  .pathway-grid article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .donation-actions {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 1rem;
  }

  .brand small {
    display: none;
  }

  .brand-logo {
    display: none;
  }

  .brand-mini {
    display: grid;
  }

  .brand strong {
    display: block;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.8rem);
  }

  section:not(.hero),
  .hero {
    padding-inline: 1rem;
  }

  .hero-media {
    height: 420px;
  }

  .hero-media img {
    object-position: 52% center;
  }

  .donation {
    background:
      linear-gradient(90deg, rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.7)),
      url("assets/feature-mel-smith.jpg") 68% center / cover;
  }

  .donation p {
    color: rgba(255, 255, 255, 0.88);
  }

  .scholar-card {
    display: grid;
    grid-template-rows: auto auto;
    background: var(--white);
  }

  .scholar-card img {
    height: auto;
    aspect-ratio: 5 / 3;
  }

  .scholar-card img[src*="feature-mariah-ervin"] {
    object-position: 18% center;
  }

  .scholar-card img[src*="replacement-2"] {
    object-position: 48% center;
  }

  .scholar-card img.face-center {
    object-position: center 36%;
  }

  .scholar-card div {
    position: relative;
    z-index: 1;
    background: var(--white);
  }

  .scholar-card h3,
  .scholar-card blockquote {
    color: var(--charcoal);
  }

  .impact-grid,
  .recent-grid {
    grid-template-columns: 1fr;
  }

  .impact-grid article {
    min-height: 170px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .newsletter div,
  .hero-actions,
  .donation-actions {
    display: grid;
  }

  .footer-brand {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }

  .mobile-donate {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 9;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 1.1rem;
    border-radius: var(--radius);
    background: var(--gold);
    color: var(--charcoal);
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 14px 36px rgba(30, 30, 30, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
