:root {
  color-scheme: light;
  --ink: #121832;
  --muted: #59637a;
  --paper: #f7fbff;
  --surface: #ffffff;
  --blue: #2f2db5;
  --blue-deep: #070922;
  --blue-soft: #d9eefc;
  --green: #8bcf4d;
  --green-deep: #2f7a3e;
  --gold: #ffd85c;
  --orange: #f06423;
  --coral: #ef3f1f;
  --sky: #2aa0dc;
  --line: rgba(18, 24, 50, 0.14);
  --shadow: 0 18px 60px rgba(7, 9, 34, 0.16);
  --radius: 8px;
  --font-sans: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Lora", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(247, 251, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 10px 32px rgba(7, 9, 34, 0.13);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.18);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: currentColor;
  font-size: 0.78rem;
  opacity: 0.78;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
  opacity: 0.92;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--blue-deep);
}

.hero-media,
.hero-final,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: 1;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1200ms ease, filter 1200ms ease;
}

.hero.video-loaded:not(.video-ended):not(.prefers-reduced-motion) .hero-media {
  opacity: 1;
}

.hero.video-ended .hero-media,
.hero.prefers-reduced-motion .hero-media {
  opacity: 0;
  filter: saturate(0.8) brightness(0.72);
}

.hero-final {
  z-index: 0;
  object-fit: cover;
  opacity: 1;
  transform: scale(1);
  transition: opacity 1300ms ease, transform 1300ms ease;
  pointer-events: none;
}

.hero.video-ended .hero-final,
.hero.prefers-reduced-motion .hero-final {
  opacity: 1;
  transform: scale(1);
}

.hero-scrim {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(7, 9, 34, 0.92), rgba(47, 45, 181, 0.68) 38%, rgba(47, 45, 181, 0.18) 72%),
    linear-gradient(0deg, rgba(7, 9, 34, 0.72), rgba(7, 9, 34, 0.02) 46%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 84px);
  padding: 140px 0 54px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: var(--font-serif);
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 5.9rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4.8vw, 4.2rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 28px;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions,
.resource-grid,
.county-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #180b02;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.54);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 620px;
  margin: 38px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
}

.hero-stats div {
  padding: 18px;
  background: rgba(47, 45, 181, 0.52);
}

.hero-stats dt {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.section {
  padding: clamp(64px, 9vw, 118px) clamp(18px, 4vw, 54px);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

.body-copy {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
}

.mission-band {
  background: var(--surface);
}

.about-band {
  background: var(--surface);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.program-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbff;
}

.program-grid span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--coral);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.church-band {
  background: #fff3cf;
}

.church-copy a {
  color: var(--blue);
  font-weight: 800;
  text-underline-offset: 4px;
}

.church-callout {
  margin-top: 28px;
  padding: 20px;
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.church-callout strong,
.church-callout span {
  display: block;
}

.church-callout strong {
  margin-bottom: 6px;
  color: var(--ink);
}

.experience-band {
  background: var(--surface);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.06rem;
}

.section-heading.compact {
  max-width: 680px;
}

.county-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.county-grid article,
.experience-grid article,
.resource-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.county-grid article {
  min-height: 220px;
  padding: 26px;
}

.county-grid span,
.experience-grid span,
.timeline span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--coral);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.county-grid p,
.experience-grid p,
.timeline p,
.resource-card span,
.contact-card {
  color: var(--muted);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.experience-grid article {
  min-height: 260px;
  padding: 24px;
}

.resource-band {
  background: var(--blue-soft);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-card {
  min-height: 174px;
  padding: 24px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(7, 9, 34, 0.04);
}

.resource-card strong,
.resource-card span {
  display: block;
}

.resource-card strong {
  margin-bottom: 16px;
  font-size: 1.16rem;
}

.resource-card:hover,
.resource-card:focus-visible {
  border-color: rgba(42, 160, 220, 0.58);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.support-band {
  background: var(--blue-deep);
  color: #fff;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.support-grid p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button.outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  background: transparent;
}

.fund-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.fund-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fund-card strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(3.4rem, 7vw, 5.4rem);
  line-height: 0.95;
}

.fund-breakdown {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 22px 0;
}

.fund-breakdown span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 6px;
  border-radius: 6px;
  background: rgba(255, 216, 92, 0.16);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.fund-card .fund-note {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

.fund-card .fund-note + .fund-note {
  margin-top: 12px;
}

.grants-band {
  background: var(--surface);
}

.grants-copy p {
  max-width: 720px;
}

.grant-card {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(42, 160, 220, 0.32);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(217, 238, 252, 0.78), rgba(255, 243, 207, 0.78));
  box-shadow: 0 18px 52px rgba(7, 9, 34, 0.1);
}

.grant-card span,
.grant-card strong {
  display: block;
}

.grant-logo {
  display: block;
  width: min(220px, 72%);
  height: auto;
  margin-bottom: 18px;
}

.grant-card span {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grant-card strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.12;
}

.grant-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.technology-band {
  background: #fff;
}

.technology-copy p {
  max-width: 720px;
}

.technology-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.technology-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 52px rgba(7, 9, 34, 0.08);
}

.technology-card span,
.technology-card strong {
  display: block;
}

.technology-card span {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.technology-card strong {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  line-height: 1.14;
}

.technology-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
}

.technology-card a {
  color: var(--blue);
  font-weight: 800;
}

.media-band {
  background: var(--blue-soft);
}

.media-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 24px;
  border: 1px solid rgba(42, 160, 220, 0.28);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 52px rgba(7, 9, 34, 0.08);
}

.media-card img {
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(7, 9, 34, 0.18);
}

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

.media-card span {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-card strong {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  line-height: 1.14;
}

.media-card p {
  color: var(--muted);
}

.media-card a {
  color: var(--blue);
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  padding: 22px 0 22px 30px;
  border-left: 3px solid var(--gold);
}

.timeline h3,
.timeline p {
  max-width: 620px;
}

.volunteer-band {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue) 54%, var(--sky));
}

.volunteer-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  color: #fff;
}

.volunteer-panel p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.interest-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.interest-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.interest-form input,
.interest-form select,
.interest-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
}

.interest-form textarea {
  resize: vertical;
}

.contact-section {
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
}

.contact-card {
  padding: 24px;
}

.contact-card p {
  margin-bottom: 12px;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-card strong {
  display: block;
  color: var(--ink);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 28px clamp(18px, 4vw, 54px);
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
}

@media (max-width: 860px) {
  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 68px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px 22px;
    background: rgba(247, 251, 255, 0.98);
    color: var(--ink);
    box-shadow: 0 18px 38px rgba(7, 9, 34, 0.16);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 96vh;
  }

  .hero-content {
    width: min(100% - 32px, 680px);
    margin: 0 auto;
    padding-bottom: 36px;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(7, 9, 34, 0.88), rgba(47, 45, 181, 0.64)),
      linear-gradient(0deg, rgba(7, 9, 34, 0.8), rgba(7, 9, 34, 0.08) 50%);
  }

  .two-column,
  .support-grid,
  .volunteer-panel,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .county-grid,
  .experience-grid,
  .program-grid,
  .resource-grid,
  .technology-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand strong {
    font-size: 0.94rem;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: 2.6rem;
  }

  .hero-actions,
  .support-actions,
  .button {
    width: 100%;
  }

  .fund-breakdown {
    grid-template-columns: 1fr;
  }

  .media-card {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    padding: 14px 16px;
  }

  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .interest-form {
    padding: 18px;
  }
}
