:root {
  --ink: #2c2822;
  --muted: #6f6257;
  --paper: #fffdf8;
  --soft: #f5eee4;
  --warm-band: #f7e7d7;
  --navy: #152a3f;
  --navy-dark: #0b1b2c;
  --coral: #c9634d;
  --gold: #d89a36;
  --plum: #7b3f3c;
  --line: rgba(44, 40, 34, 0.14);
  --shadow: 0 20px 60px rgba(44, 40, 34, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.is-loaded .hero-content {
  opacity: 1;
  transform: translateY(0);
}

body::selection {
  background: var(--gold);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 52px);
  color: white;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 8px 28px rgba(22, 35, 31, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-weight: 800;
  letter-spacing: 0;
}

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

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

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

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

.nav-links a {
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
}

.header-action {
  padding: 0 18px;
  border: 1px solid currentColor;
}

.button {
  padding: 0 22px;
}

.button.primary {
  color: white;
  background: var(--coral);
  box-shadow: 0 12px 26px rgba(201, 99, 77, 0.24);
}

.button.primary:hover {
  background: #a84d3b;
}

.button.secondary {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.button.light {
  color: var(--navy-dark);
  background: white;
  box-shadow: none;
}

i[data-lucide] {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  color: white;
}

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

.hero-media {
  background-image: url("assets/rebuild-hope-hero-warm.png");
  background-position: center center;
  background-size: cover;
  transform: translateY(calc(var(--scroll-progress, 0) * 38px)) scale(1.04);
  transition: transform 120ms linear;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(11, 27, 44, 0.82) 0%, rgba(79, 48, 39, 0.46) 44%, rgba(79, 48, 39, 0.06) 100%),
    linear-gradient(0deg, rgba(11, 27, 44, 0.58) 0%, rgba(11, 27, 44, 0.03) 58%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(680px, 100%);
  padding: 126px clamp(20px, 6vw, 78px) 64px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.hero .eyebrow {
  color: #ffd886;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Lora, Georgia, serif;
  line-height: 1.05;
}

h1 {
  max-width: 650px;
  font-size: clamp(3rem, 5.8vw, 5.9rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2.2rem, 4.8vw, 4.3rem);
}

h3 {
  font-size: 1.5rem;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 1.7vw, 1.42rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
}

.hero-stats span {
  display: inline-flex;
  flex-direction: column;
  min-width: 155px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
}

.hero-stats strong {
  color: white;
  font-size: 1.34rem;
  line-height: 1.2;
}

.scripture-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--navy-dark);
  color: white;
}

.scripture-band div {
  min-height: 126px;
  padding: 25px clamp(20px, 4vw, 42px);
  border-right: 1px solid rgba(255, 255, 255, 0.17);
}

.scripture-band span {
  color: #ffd886;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scripture-band p {
  max-width: 440px;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.section {
  padding: clamp(72px, 9vw, 122px) clamp(20px, 6vw, 78px);
}

.split,
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: start;
}

.mission {
  background: linear-gradient(180deg, var(--paper), var(--warm-band));
}

.mission-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.mission-copy p:first-child {
  margin-top: 0;
}

.programs {
  background: var(--paper);
}

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

.section-heading > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.program-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.program-card,
.quote-grid figure,
.tier-layout article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 38px rgba(22, 35, 31, 0.08);
}

.program-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.program-card:hover {
  border-color: rgba(201, 99, 77, 0.28);
  box-shadow: 0 24px 58px rgba(44, 40, 34, 0.14);
  transform: translateY(-6px);
}

.program-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.26), transparent 42%);
  content: "";
  opacity: 0;
  transition: opacity 220ms ease;
}

.program-card:hover::after {
  opacity: 1;
}

.program-photo {
  display: block;
  width: calc(100% + 56px);
  height: 220px;
  margin: -28px -28px 26px;
  border-radius: 8px 8px 0 0;
  object-fit: cover;
  object-position: center;
  transition: transform 400ms ease;
}

.program-card:hover .program-photo {
  transform: scale(1.04);
}

.program-card > i {
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  color: var(--coral);
}

.program-card h3 {
  margin-bottom: 10px;
}

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

.program-tag {
  margin: 0 0 14px;
  color: var(--coral) !important;
  font-weight: 800;
}

.program-card ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.program-card li {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  color: var(--ink);
  font-weight: 700;
}

.program-card li::before {
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
  flex: 0 0 auto;
}

.featured-card {
  background: linear-gradient(145deg, #ffffff 0%, #fff2e1 100%);
}

.subtle-note {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(201, 99, 77, 0.2);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--muted);
  font-size: 0.94rem;
}

.subtle-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.broadcast-bars {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 34px;
  margin-top: 26px;
}

.broadcast-bars span {
  width: 7px;
  border-radius: 999px;
  background: var(--gold);
  animation: broadcastPulse 1100ms ease-in-out infinite;
}

.broadcast-bars span:nth-child(1) { height: 14px; animation-delay: 0ms; }
.broadcast-bars span:nth-child(2) { height: 25px; animation-delay: 120ms; }
.broadcast-bars span:nth-child(3) { height: 34px; animation-delay: 240ms; }
.broadcast-bars span:nth-child(4) { height: 22px; animation-delay: 360ms; }
.broadcast-bars span:nth-child(5) { height: 16px; animation-delay: 480ms; }

@keyframes broadcastPulse {
  0%, 100% {
    transform: scaleY(0.45);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.episode-card,
.quote-grid figure,
.tier-layout article,
.contact-panel,
.sponsor-form,
.sponsor-benefits span {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.episode-card:hover,
.quote-grid figure:hover,
.tier-layout article:hover {
  border-color: rgba(201, 99, 77, 0.26);
  box-shadow: 0 22px 52px rgba(44, 40, 34, 0.13);
  transform: translateY(-4px);
}

.episode-feed {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: start;
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.episode-feed-copy p {
  max-width: 480px;
  margin: 16px 0 0;
  color: var(--muted);
}

.episode-feed code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.92em;
}

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

.episode-card {
  display: grid;
  min-height: 218px;
  align-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 42, 63, 0.1), rgba(201, 99, 77, 0.14)),
    white;
  box-shadow: 0 12px 38px rgba(44, 40, 34, 0.08);
}

.episode-play {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--coral);
}

.episode-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--coral);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.episode-card h4 {
  margin: 0;
  font-family: Lora, Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.2;
}

.episode-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.episode-list.is-empty {
  grid-template-columns: 1fr;
}

.episode-empty {
  padding: 24px;
  border: 1px dashed rgba(201, 99, 77, 0.4);
  border-radius: 8px;
  background: rgba(255, 242, 225, 0.55);
  color: var(--muted);
  font-weight: 700;
}

.impact {
  background: #f7f3ed;
}

.audience-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.audience-row span {
  padding: 9px 14px;
  border: 1px solid rgba(201, 99, 77, 0.24);
  border-radius: 999px;
  background: white;
  color: var(--navy-dark);
  font-weight: 800;
  font-size: 0.88rem;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.quote-grid figure {
  margin: 0;
  padding: 30px;
}

blockquote {
  margin: 0;
  font-family: Lora, Georgia, serif;
  font-size: clamp(1.28rem, 2vw, 1.72rem);
  line-height: 1.32;
}

figcaption {
  margin-top: 20px;
  color: var(--coral);
  font-weight: 800;
}

.sponsor {
  padding: clamp(72px, 9vw, 118px) clamp(20px, 6vw, 78px);
  background:
    radial-gradient(circle at 78% 18%, rgba(216, 154, 54, 0.18), transparent 34%),
    linear-gradient(135deg, var(--navy-dark), #4a2b2d 74%);
  color: white;
}

.sponsor-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 0.95fr);
  gap: clamp(34px, 7vw, 84px);
  align-items: start;
}

.sponsor h2,
.contact h2 {
  max-width: 720px;
}

.sponsor p,
.contact p {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.sponsor-benefits {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.sponsor-benefits span {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 430px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.sponsor-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.form-badge,
.form-wide {
  grid-column: 1 / -1;
}

.form-badge {
  color: #ffd886;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sponsor-form label {
  display: grid;
  gap: 8px;
}

.sponsor-form label span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sponsor-form input,
.sponsor-form select,
.sponsor-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 12px 14px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  outline: none;
}

.sponsor-form textarea {
  min-height: 116px;
  resize: vertical;
}

.sponsor-form input::placeholder,
.sponsor-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.sponsor-form select option {
  color: var(--ink);
}

.sponsor-form input:focus,
.sponsor-form select:focus,
.sponsor-form textarea:focus {
  border-color: #ffd886;
  box-shadow: 0 0 0 3px rgba(255, 216, 134, 0.16);
}

.partners {
  background: var(--paper);
}

.tier-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.tier-layout article {
  padding: 28px;
}

.tier-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.tier-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.tier-list span {
  color: var(--coral);
  font-weight: 800;
  white-space: nowrap;
}

.contact {
  padding: 0 clamp(20px, 6vw, 78px) clamp(72px, 9vw, 118px);
  background: var(--paper);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(30px, 6vw, 70px);
  padding: clamp(38px, 6vw, 66px);
  border-radius: 8px;
  background: var(--navy-dark);
  color: white;
  box-shadow: var(--shadow);
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list a,
.contact-list p {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(20px, 6vw, 78px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 940px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-media {
    background-position: 58% center;
    transform: scale(1.04);
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(11, 27, 44, 0.86) 0%, rgba(57, 38, 36, 0.58) 60%, rgba(57, 38, 36, 0.18) 100%),
      linear-gradient(0deg, rgba(11, 27, 44, 0.74) 0%, rgba(11, 27, 44, 0.12) 64%);
  }

  .scripture-band,
  .split,
  .section-heading,
  .program-grid,
  .episode-feed,
  .quote-grid,
  .sponsor-inner,
  .tier-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .scripture-band div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.17);
  }

  .episode-list {
    grid-template-columns: 1fr;
  }
}

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

  .hero-media,
  .hero-content,
  .reveal-on-scroll {
    transform: none !important;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    max-width: 150px;
  }

  .header-action span {
    display: none;
  }

  .header-action {
    width: 44px;
    padding: 0;
  }

  .hero-content {
    padding: 96px 18px 28px;
  }

  .hero-media {
    background-position: 31% center;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.25rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .button {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 26px;
  }

  .hero-stats span {
    min-width: 0;
    width: auto;
    padding: 10px;
    font-size: 0.76rem;
  }

  .hero-stats strong {
    font-size: 1.08rem;
  }

  .sponsor-form {
    grid-template-columns: 1fr;
  }

  .tier-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
