:root {
  --bg: #05070d;
  --bg-alt: #0a0e1a;
  --ink: #f4f2ea;
  --ink-dim: #b9bccb;
  --old-glory-red: #d0163b;
  --old-glory-red-bright: #ff2b52;
  --old-glory-blue: #1b3a8a;
  --old-glory-blue-bright: #3a63d8;
  --gold: #f4c04d;
  --gold-dim: #b6902f;
  --line: rgba(244, 242, 234, 0.12);
  --font-display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

::selection {
  background: var(--old-glory-red);
  color: var(--ink);
}

/* ---------- background texture ---------- */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  background-image: radial-gradient(rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

#fireworks-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- nav ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  background: linear-gradient(to bottom, rgba(5,7,13,0.85), transparent);
  backdrop-filter: blur(6px);
}

.site-nav .brand {
  font-family: var(--font-display);
  letter-spacing: 0.15em;
  color: var(--gold);
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
}

.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

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

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05) brightness(0.75);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(5,7,13,0.35), rgba(5,7,13,0.92) 75%),
    linear-gradient(180deg, rgba(5,7,13,0.55) 0%, rgba(5,7,13,0.35) 40%, rgba(5,7,13,0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 900px;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  line-height: 1.02;
  margin: 0 0 1.4rem;
  letter-spacing: 0.01em;
  text-shadow: 0 0 40px rgba(208, 22, 59, 0.45), 0 6px 24px rgba(0,0,0,0.6);
}

.hero h1 .accent {
  color: var(--old-glory-red-bright);
  -webkit-text-stroke: 1px rgba(244,242,234,0.25);
}

.hero-sub {
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  color: var(--ink-dim);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 2.4rem;
}

.scroll-cta {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(244,242,234,0.04);
  transition: all 0.25s ease;
}

.scroll-cta:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(244,192,77,0.08);
  transform: translateY(-2px);
}

/* ---------- sections ---------- */

main {
  position: relative;
  z-index: 2;
}

section {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 1.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 0.4rem;
  margin-bottom: 1.6rem;
}

section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 1.4rem;
  max-width: 850px;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ink-dim);
  max-width: 720px;
  margin-bottom: 2.8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

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

/* alternating section backgrounds for rhythm */
.declaration, .power, .benediction {
  background: linear-gradient(180deg, transparent, rgba(27,58,138,0.06) 40%, transparent);
}

/* ---------- verse grid ---------- */

.verse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.verse-grid blockquote {
  margin: 0;
  padding: 1.8rem;
  background: rgba(244,242,234,0.03);
  border: 1px solid var(--line);
  border-left: 3px solid var(--old-glory-red);
  border-radius: 6px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.verse-grid blockquote:hover {
  transform: translateY(-4px);
  border-left-color: var(--gold);
  background: rgba(244,242,234,0.055);
}

.verse-grid blockquote p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 0.9rem;
  font-style: italic;
  color: var(--ink);
}

.verse-grid cite {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

.big-quote {
  margin: 2rem 0;
  padding: 1.6rem 1.8rem;
  border-left: 3px solid var(--gold);
  background: rgba(244,192,77,0.06);
  border-radius: 6px;
}

.big-quote p {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  margin: 0 0 0.8rem;
}

.big-quote cite {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- gallery ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.tile {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 5;
  cursor: zoom-in;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: saturate(1.1) contrast(1.05);
}

.tile:hover img {
  transform: scale(1.08);
  filter: saturate(1.25) contrast(1.1) brightness(1.05);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -50px 40px -20px rgba(0,0,0,0.5);
  pointer-events: none;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
}

/* ---------- power section ---------- */

.power-columns {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 860px) {
  .power-columns { grid-template-columns: 1fr; }
}

.power-media {
  position: relative;
}

.feature-video {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
  background: #000;
  box-shadow: 0 20px 60px rgba(208,22,59,0.15);
}

.caption {
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-top: 0.8rem;
}
.caption.center { max-width: 100%; }

/* ---------- video grid ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}

@media (max-width: 700px) {
  .video-grid { grid-template-columns: 1fr; }
}

.video-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 16/10;
  cursor: pointer;
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(244,242,234,0.4);
  background: rgba(5,7,13,0.55);
  color: var(--ink);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(3px);
}

.video-card:hover .play-btn {
  background: var(--old-glory-red);
  border-color: var(--old-glory-red);
  transform: translate(-50%, -50%) scale(1.08);
}

.video-card.playing .play-btn {
  opacity: 0;
  pointer-events: none;
}

/* ---------- benediction ---------- */

.benediction {
  text-align: center;
}

.benediction h2 { margin-left: auto; margin-right: auto; }

.prayer {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--ink-dim);
  font-style: italic;
}

/* ---------- footer ---------- */

footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
}

.footer-verse {
  font-style: italic;
  color: var(--ink);
  font-size: 1rem;
  margin: 0 0 0.6rem;
}

.footer-fine {
  color: var(--ink-dim);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5,7,13,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2.2rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:hover { color: var(--gold); }
