/* =====================================================================
   BuildYourSnow Church Outreach — "Break of Day"
   A warm, luminous sunrise identity: cross on a hill catching first
   light, a congregation walking toward it. Hope, welcome, being found.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Hanken+Grotesk:wght@400;500;600;700;800&display=swap');

:root {
  /* Dawn sky */
  --plum: #2e0f33;
  --wine: #6e1e4e;
  --rose: #c23e63;
  --coral: #f07a4b;
  --amber: #f7b34d;
  --halo: #ffe6ae;

  /* Ground + ink (plum-biased warm neutrals) */
  --ivory: #fbf6ef;
  --ivory-2: #f4ead9;
  --ink: #34212f;
  --ink-soft: #715a66;
  --gold: #d98a24;
  --white: #ffffff;
  --line: rgba(52, 33, 47, 0.12);

  /* Composed surfaces */
  --dawn:
    radial-gradient(135% 118% at 83% 20%, rgba(255, 233, 178, 0.96) 0%, rgba(247, 179, 77, 0.55) 15%, rgba(240, 122, 75, 0.32) 33%, rgba(110, 30, 78, 0) 58%),
    radial-gradient(120% 120% at 9% -6%, rgba(46, 15, 51, 0.94) 0%, rgba(46, 15, 51, 0) 56%),
    radial-gradient(150% 120% at 55% 120%, rgba(240, 122, 75, 0.4) 0%, rgba(240, 122, 75, 0) 52%),
    linear-gradient(146deg, #2e0f33 0%, #5c1a46 26%, #a5325a 52%, #e06a43 80%, #f7b34d 100%);
  --warm-btn: #ec6a4e; /* solid warm coral (no gradient) */

  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-ui: 'Hanken Grotesk', system-ui, -apple-system, Segoe UI, sans-serif;

  --r-sm: 16px;
  --r-md: 24px;
  --r-lg: 34px;
  --r-pill: 999px;
  --shadow-card: 0 30px 60px -34px rgba(52, 20, 44, 0.5), 0 10px 24px -16px rgba(52, 20, 44, 0.3);
  --shadow-glow: 0 18px 44px -14px rgba(226, 75, 106, 0.55);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 78px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}

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

/* Shared display helpers ------------------------------------------------ */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.kicker::before {
  content: '';
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.7;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--rose);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section-title em { font-style: italic; color: var(--rose); }

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease), color 0.22s var(--ease);
}
.btn-primary {
  background: var(--warm-btn);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -14px rgba(226, 75, 106, 0.62); }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-card); }
.btn-light:hover { transform: translateY(-3px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-3px); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(52, 33, 47, 0.26);
}
.btn-outline:hover { border-color: var(--ink); transform: translateY(-3px); }

/* ======================================================================
   Top bar (transparent over hero, frosts on scroll)
   ====================================================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.topbar.is-scrolled {
  background: rgba(37, 12, 42, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.7);
}
.topbar-inner {
  width: min(1180px, calc(100% - 44px));
  min-height: var(--nav-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  white-space: nowrap;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--warm-btn);
  box-shadow: 0 8px 20px -8px rgba(226, 75, 106, 0.7);
  flex: none;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand .brand-mark,
.footer-brand .brand-mark {
  display: none;
}
.brand-word {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-word b { font-weight: 600; }
.brand-word span { color: var(--amber); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
}
.nav a {
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 2px;
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav a:hover,
.nav a.is-active { color: #fff; }
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }

.nav .btn-back {
  margin-left: 4px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--warm-btn);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 26px -12px rgba(226, 75, 106, 0.7);
}
.nav .btn-back::after { display: none; }
.nav .btn-back:hover { transform: translateY(-2px); }

/* Temporarily hidden until these outreach sections are ready to show again. */
.nav a[href="impact.html"],
.nav a[href="donate.html"],
.nav a[href="volunteer.html"],
.nav a[href="faq.html"],
.footer-nav a[href="impact.html"],
.footer-nav a[href="donate.html"],
.footer-nav a[href="volunteer.html"],
.footer-nav a[href="faq.html"] {
  display: none !important;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.nav-toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ======================================================================
   Hero
   ====================================================================== */
.hero {
  position: relative;
  background: var(--dawn);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-inner {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 54px) 0 190px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 3;
}

.hero-copy { max-width: 560px; min-width: 0; }
.hero-copy .kicker { color: var(--halo); margin-bottom: 22px; }

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.9rem, 6.4vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: #fff;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--halo);
}

.hero-sub {
  position: relative;
  display: grid;
  gap: 0.58rem;
  max-width: 560px;
  margin: 28px 0 34px;
  padding: 0 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.55;
  letter-spacing: 0.004em;
  text-shadow: 0 2px 18px rgba(46, 15, 51, 0.3);
}
.hero-sub::before {
  content: '';
  position: absolute;
  top: 0.22em;
  bottom: 0.22em;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--halo), rgba(247, 179, 77, 0.55), rgba(255, 255, 255, 0.15));
  box-shadow: 0 0 22px rgba(255, 230, 174, 0.5);
}
.hero-sub strong {
  color: var(--halo);
  font-weight: 800;
}
.hero-sub span {
  color: rgba(255, 255, 255, 0.74);
  text-wrap: balance;
}
.hero-sub span:first-child {
  color: rgba(255, 255, 255, 0.9);
}

/* Frosted search / start bar */
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 520px;
  padding: 8px 8px 8px 10px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--r-pill);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 44px -24px rgba(20, 5, 25, 0.8);
}
.hero-search-icon {
  width: 22px;
  height: 22px;
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.7);
  flex: none;
}
.hero-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 1rem;
  padding: 12px 6px;
}
.hero-search input::placeholder { color: rgba(255, 255, 255, 0.68); }
.hero-search input:focus { outline: none; }
.hero-search .btn { min-height: 46px; padding: 0 22px; }

.hero-secondary {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.96rem;
}
.hero-secondary a {
  color: var(--halo);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.hero-secondary a:hover { border-bottom-color: var(--halo); }

/* Hero illustration */
.hero-art {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: 100%;
  min-width: 0;
  max-width: 560px;
}
.hero-art svg {
  width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(70% 78% at 50% 40%, #000 42%, rgba(0, 0, 0, 0) 86%);
  mask-image: radial-gradient(70% 78% at 50% 40%, #000 42%, rgba(0, 0, 0, 0) 86%);
}

.hero-sun,
.hero-rays { transform-box: fill-box; transform-origin: center; }
.hero-sun { animation: sunPulse 7s var(--ease) infinite; }
.hero-rays { animation: raySpin 90s linear infinite; }
.hero-dove { animation: doveFloat 6s var(--ease) infinite; }
.hero-dove-2 { animation: doveFloat 7.5s var(--ease) infinite 0.6s; }

@keyframes sunPulse {
  0%, 100% { opacity: 0.92; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}
@keyframes raySpin { to { transform: rotate(360deg); } }
@keyframes doveFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, -14px); }
}

/* Drifting light sparks */
.hero-sparks {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.spark {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255, 220, 150, 0.55) 45%, rgba(255, 220, 150, 0) 72%);
  opacity: 0;
  animation: twinkle var(--dur, 5s) var(--ease) var(--delay, 0s) infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.12; transform: translateY(0) scale(0.7); }
  50% { opacity: 0.9; transform: translateY(-10px) scale(1.1); }
}

/* Ivory wave into content */
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(70px, 9vw, 130px);
  z-index: 4;
  display: block;
}

/* ======================================================================
   Steps — glowing circular badges
   ====================================================================== */
.steps {
  padding: clamp(64px, 9vw, 116px) 0 clamp(40px, 6vw, 72px);
  text-align: center;
}
.steps .eyebrow { color: var(--coral); }
.steps-head { max-width: 720px; margin: 0 auto; }

.steps-grid {
  margin-top: clamp(44px, 6vw, 78px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.step { display: flex; flex-direction: column; align-items: center; }

.step-badge {
  position: relative;
  width: clamp(116px, 13vw, 154px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(226, 75, 106, 0.16), 0 22px 40px -24px rgba(120, 30, 70, 0.55);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* Flat white badge with a soft shadow — no gradient glow */
.step-badge svg { width: 46%; height: 46%; }
.step-badge .stroke {
  fill: none;
  stroke: #c23e63;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step-num {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--warm-btn);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 6px 14px -6px rgba(226, 75, 106, 0.8);
}
.step:hover .step-badge {
  transform: translateY(-8px);
  box-shadow: inset 0 0 0 1.5px rgba(226, 75, 106, 0.3), 0 30px 50px -24px rgba(120, 30, 70, 0.6);
}

.step-title {
  margin: 22px 0 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.24rem;
  color: var(--ink);
}
.step-text {
  margin: 0;
  max-width: 220px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Intent line */
.intent {
  padding: clamp(30px, 5vw, 56px) 0 clamp(56px, 8vw, 96px);
  text-align: center;
}
.intent p {
  width: min(760px, 100%);
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  line-height: 1.35;
  color: var(--ink);
  text-wrap: balance;
}
.intent em { font-style: italic; color: var(--rose); }

/* ======================================================================
   Ways we help — cards
   ====================================================================== */
.ways {
  padding: clamp(60px, 8vw, 104px) 0;
  background: var(--ivory-2);
}
.ways-head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 58px); }
.ways-head .eyebrow { color: var(--rose); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 30px);
}
.help-card {
  display: flex;
  flex-direction: column;
  padding: 0;
}
.help-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 16px;
  background: rgba(236, 106, 78, 0.12);
}
.help-icon svg { width: 30px; height: 30px; }
.help-icon .stroke {
  fill: none;
  stroke: #c23e63;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.help-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.help-card p {
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 1rem;
}
.help-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--rose);
}
.help-link svg { width: 17px; height: 17px; transition: transform 0.22s var(--ease); }
.help-card:hover .help-link svg { transform: translateX(5px); }

/* ======================================================================
   Mission story panels
   ====================================================================== */
.mission-story {
  padding: clamp(60px, 8vw, 104px) 0;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 84px);
}
.story-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.story-panel .section-label {
  display: inline-block;
  margin-bottom: 20px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.story-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.story-panel p { margin: 20px 0 0; font-size: 1.04rem; }

.story-panel-dark .section-label { color: var(--coral); }
.story-panel-light .section-label { color: var(--rose); }
.story-panel p { color: var(--ink-soft); }

/* ======================================================================
   Scripture band
   ====================================================================== */
.quote-section {
  padding: clamp(76px, 11vw, 150px) 0;
  background: var(--plum);
  color: #fff;
  text-align: center;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.4;
  color: var(--halo);
  opacity: 0.6;
}
.quote-section blockquote {
  width: min(940px, calc(100% - 44px));
  margin: 0 auto;
}
.quote-section p {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.7rem, 4.4vw, 3.5rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}
.quote-section cite {
  display: inline-block;
  margin-top: 30px;
  color: var(--halo);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ======================================================================
   Final CTA
   ====================================================================== */
.final-cta { padding: clamp(64px, 9vw, 120px) 0; }
.cta-card {
  text-align: center;
  color: var(--ink);
}
.cta-card .section-label {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--rose);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.cta-card h2 {
  width: min(760px, 100%);
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5.4vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
}
.cta-actions .btn { min-width: 168px; }

/* ======================================================================
   Footer
   ====================================================================== */
.footer {
  padding: clamp(30px, 4vw, 44px) 0 max(26px, env(safe-area-inset-bottom));
  background: #24102a;
  color: rgba(255, 255, 255, 0.64);
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1;
}
.footer-brand .brand-mark { width: 26px; height: 26px; border-radius: 8px; }
.footer-brand .brand-mark svg { width: 15px; height: 15px; }
.footer-brand span { color: var(--amber); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  margin-bottom: 0;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 650;
}
.footer-nav a { color: rgba(255, 255, 255, 0.62); transition: color 0.2s var(--ease); }
.footer-nav a:hover { color: var(--amber); }

.footer-verse { margin: 2px auto 0; max-width: 520px; }
.footer-verse-text {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.74);
}
.footer-copy { margin: 2px 0 0; font-size: 0.74rem; color: rgba(255, 255, 255, 0.46); }

/* ======================================================================
   Reveal on scroll
   ====================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.active { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.09s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.27s; }

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

/* ======================================================================
   Responsive
   ====================================================================== */
@media (max-width: 700px) {
  .card-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

@media (max-width: 960px) {
  .topbar-inner {
    width: min(100% - 32px, 1180px);
    min-height: 74px;
    position: relative;
  }
  .topbar-row {
    width: 100%;
    flex: 1;
  }
  .brand {
    max-width: calc(100% - 68px);
    min-height: 46px;
    padding: 0 0.92rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-pill);
    background: rgba(46, 15, 51, 0.24);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 34px -26px rgba(0, 0, 0, 0.8);
  }
  .brand-word {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    line-height: 1;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: min(760px, 100svh);
    padding-bottom: 150px;
    text-align: center;
  }
  .hero-copy {
    position: relative;
    z-index: 3;
    max-width: 620px;
    margin: 0 auto;
    order: 1;
  }
  .hero-copy .kicker,
  .hero-search { margin-inline: auto; }
  .hero-art,
  .hero-art.reveal.active {
    position: absolute;
    top: 52%;
    left: 50%;
    z-index: 2;
    width: min(112vw, 560px);
    max-width: none;
    margin: 0;
    opacity: 0.28;
    pointer-events: none;
    transform: translate(-50%, -45%);
  }
  .hero-art svg {
    -webkit-mask-image: radial-gradient(72% 78% at 50% 45%, #000 38%, rgba(0, 0, 0, 0) 88%);
    mask-image: radial-gradient(72% 78% at 50% 45%, #000 38%, rgba(0, 0, 0, 0) 88%);
  }

  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .story-grid { grid-template-columns: 1fr; }

  .nav-toggle {
    display: flex;
    width: 48px;
    height: 48px;
    margin-left: auto;
    border-radius: 18px;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 16px 34px -24px rgba(0, 0, 0, 0.8);
  }
  .nav-toggle-bar {
    width: 21px;
    height: 2px;
  }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(18rem, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: var(--r-md);
    background: rgba(37, 12, 42, 0.96);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 13px 12px; border-radius: 12px; }
  .nav a::after { display: none; }
  .nav a:hover { background: rgba(255, 255, 255, 0.08); }
  .nav .btn-back { margin: 8px 0 0; text-align: center; justify-content: center; }
}

@media (max-width: 620px) {
  .container,
  .topbar-inner,
  .hero-inner { width: min(100% - 32px, 1180px); }
  .hero-inner {
    min-height: 100svh;
    padding-top: calc(var(--nav-h) + 42px);
    padding-bottom: 118px;
  }
  .hero h1 {
    font-size: clamp(2.75rem, 15.5vw, 4.1rem);
  }
  .hero-sub {
    display: grid;
    gap: 0.5rem;
    max-width: 22.6rem;
    margin: 22px auto 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.95rem, 4vw, 1.04rem);
    line-height: 1.52;
    letter-spacing: 0;
    text-shadow: 0 2px 18px rgba(46, 15, 51, 0.42);
  }
  .hero-sub::before {
    top: auto;
    bottom: -0.86rem;
    left: 50%;
    width: 84px;
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(255, 230, 174, 0), var(--halo), rgba(255, 230, 174, 0));
  }
  .hero-sub span {
    color: rgba(255, 255, 255, 0.78);
  }
  .hero-sub span:first-child {
    color: rgba(255, 255, 255, 0.92);
  }
  .hero-art,
  .hero-art.reveal.active {
    top: 53%;
    width: min(132vw, 520px);
    opacity: 0.33;
    transform: translate(-50%, -42%);
  }
  .hero-search { flex-wrap: wrap; border-radius: var(--r-md); padding: 12px; }
  .hero-search input { width: 100%; text-align: center; }
  .hero-search .btn { width: 100%; }
  .hero-search-icon { display: none; }
  .steps-grid { grid-template-columns: 1fr; gap: 40px; }
  .step-text { max-width: 280px; }
  .cta-actions .btn { width: 100%; }

  .footer {
    padding: 2rem 0 max(1.5rem, env(safe-area-inset-bottom));
    background: #24102a;
  }
  .footer > .container,
  .footer-inner {
    width: min(100% - 32px, 28rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.82rem;
    margin-inline: auto;
  }
  .footer-brand {
    min-height: 0;
    margin: 0;
    padding: 0;
    gap: 0.12rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    line-height: 1;
  }
  .footer-nav {
    width: min(100%, 21rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.38rem 0.95rem;
    margin: 0;
  }
  .footer-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.8rem;
  }
  .footer-verse {
    width: min(100%, 21rem);
    max-width: none;
    margin: 0;
    padding: 0.85rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .footer-verse-text {
    font-size: 0.84rem;
    line-height: 1.42;
    color: rgba(255, 255, 255, 0.72);
  }
  .footer-copy {
    max-width: 18rem;
    color: rgba(255, 255, 255, 0.44);
    font-size: 0.72rem;
    line-height: 1.4;
  }
}

/* Keep temporary outreach menu items hidden after mobile/footer display rules. */
.nav a[data-temporary-hidden],
.footer-nav a[data-temporary-hidden],
.nav a[href="impact.html"],
.nav a[href="donate.html"],
.nav a[href="volunteer.html"],
.nav a[href="faq.html"],
.footer-nav a[href="impact.html"],
.footer-nav a[href="donate.html"],
.footer-nav a[href="volunteer.html"],
.footer-nav a[href="faq.html"] {
  display: none !important;
}
