/* ========================================================================
   COMPONENTS — Maintaining Fire (Premium Upgrade)
   Inspired by huly.io: glassmorphism, volumetric glow, cinematic depth,
   scroll-driven reveals, generous whitespace, editorial spacing
   ======================================================================== */

/* ===== GRAIN / NOISE TEXTURE OVERLAY ===== */
.has-grain {
  position: relative;
}
.has-grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}
.has-grain > * {
  position: relative;
  z-index: 1;
}

/* ===== WARM GLOW ACCENTS (Enhanced) ===== */
.mission-section::after,
.episodes-featured::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse at center, oklch(0.65 0.18 65 / 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.mission-section,
.episodes-featured {
  position: relative;
  overflow: hidden;
}

/* ===== SCENE CUTS (huly.io-inspired hard dark/light transitions) ===== */
.scene-cut {
  position: relative;
  height: 3px;
  margin: 0;
  pointer-events: none;
}
.scene-cut--to-light {
  background: linear-gradient(180deg, #0f0d0b 0%, #FAF7F2 100%);
  height: 40px;
}
.scene-cut--to-dark {
  background: linear-gradient(180deg, #FAF7F2 0%, #0f0d0b 100%);
  height: 40px;
}
/* In light mode, reverse the scene cuts */
[data-theme="light"] .scene-cut--to-light {
  background: linear-gradient(180deg, var(--color-bg) 0%, #FFFFFF 100%);
}
[data-theme="light"] .scene-cut--to-dark {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--color-bg) 100%);
}

/* ===== GRADIENT SECTION TRANSITIONS ===== */
.section-transition-down {
  position: relative;
  height: 120px;
  margin-top: -1px;
  pointer-events: none;
}
.section-transition-down::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}
.section-transition-up {
  position: relative;
  height: 120px;
  margin-bottom: -1px;
  pointer-events: none;
}
.section-transition-up::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}

/* ===== FLAME DIVIDER (Upgraded with glow) ===== */
.flame-divider {
  position: relative;
  height: 80px;
  margin-top: -1px;
  background: var(--color-bg);
  overflow: hidden;
}
.flame-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.flame-divider--up {
  margin-top: 0;
  margin-bottom: -1px;
  background: var(--color-surface);
}
.flame-divider--up svg {
  bottom: auto;
  top: 0;
}

/* ===== HEADER (Premium glass) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out),
              background 0.4s var(--ease-out);
}
.site-header.scrolled {
  border-bottom-color: var(--color-divider);
  box-shadow: 0 4px 30px oklch(0 0 0 / 0.2);
}
.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.header-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--color-divider);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}
.header-brand:hover .header-logo {
  border-color: var(--color-primary);
  box-shadow: 0 0 12px oklch(0.65 0.18 65 / 0.2);
}
.header-wordmark {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--color-text);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.nav-links {
  display: flex;
  gap: var(--space-1);
  list-style: none;
}
.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive),
              background var(--transition-interactive);
  position: relative;
}
/* Sliding underline micro-interaction */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: var(--space-4);
  right: var(--space-4);
  height: 1.5px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-link:hover::after {
  transform: scaleX(1);
}
.nav-link:hover {
  color: var(--color-text);
}
.nav-link.active {
  color: var(--color-primary);
  font-weight: 500;
}
.nav-link.active::after {
  transform: scaleX(1);
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive),
              background var(--transition-interactive);
  margin-left: var(--space-2);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface);
}
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

/* Mobile nav overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: oklch(from var(--color-bg) l c h / 0.96);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 40;
  padding-top: calc(var(--space-16) + var(--space-8));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.mobile-nav-overlay.open {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: center;
}
.mobile-nav-link {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-4);
  transition: color var(--transition-interactive);
}
.mobile-nav-link:hover {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .header-wordmark { display: none; }
}

/* ===== PAGES (SPA routing) ===== */
.page {
  display: none;
}
.page.active {
  display: block;
}

/* ===== HERO (Cinematic — 5-layer depth system) ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #060504;
}

/* Layer 1: Background image (deepest) */
.hero-bg-img {
  position: absolute;
  inset: 0;
  background: url('./assets/hero-bg.jpg') center center / cover no-repeat;
  z-index: 0;
  opacity: 0.5;
}

/* Layer 2: Dark overlay for depth control */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, oklch(0 0 0 / 0.1) 0%, oklch(0 0 0 / 0.6) 70%),
    linear-gradient(180deg, oklch(0 0 0 / 0.4) 0%, oklch(0 0 0 / 0.15) 40%, oklch(0 0 0 / 0.5) 100%);
  z-index: 1;
}
[data-theme="light"] .hero-bg-overlay {
  background:
    radial-gradient(ellipse at center, oklch(0 0 0 / 0.2) 0%, oklch(0 0 0 / 0.65) 70%),
    linear-gradient(180deg, oklch(0 0 0 / 0.5) 0%, oklch(0 0 0 / 0.25) 40%, oklch(0 0 0 / 0.6) 100%);
}

/* Layer 3: Asymmetric atmospheric bloom (off-center = real lighting) */
.hero-bloom {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    /* Primary warm bloom — upper right */
    radial-gradient(ellipse 65% 55% at 75% 20%,
      rgba(200, 130, 30, 0.3) 0%,
      rgba(160, 80, 15, 0.15) 40%,
      transparent 70%),
    /* Secondary deep glow — lower left */
    radial-gradient(ellipse 50% 50% at 25% 80%,
      rgba(140, 50, 10, 0.15) 0%,
      rgba(80, 20, 5, 0.08) 50%,
      transparent 70%),
    /* Subtle purple depth — far back */
    radial-gradient(ellipse 40% 40% at 30% 20%,
      rgba(60, 20, 60, 0.1) 0%,
      transparent 60%);
  animation: bloom-breathe 6s ease-in-out infinite;
}

@keyframes bloom-breathe {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* Layer 4: Vertical light shaft (pillar of fire) */
.hero-shaft {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 60%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(255, 230, 160, 0.95) 0%,
    rgba(255, 200, 100, 0.6) 25%,
    rgba(255, 170, 60, 0.3) 50%,
    transparent 100%
  );
  filter: blur(6px);
  box-shadow:
    0 0 60px 30px rgba(255, 200, 100, 0.15),
    0 0 120px 60px rgba(255, 180, 80, 0.08);
  animation: shaft-pulse 4s ease-in-out infinite;
}
.hero-shaft::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg,
    rgba(255, 250, 220, 1) 0%,
    rgba(255, 240, 200, 0.7) 30%,
    transparent 70%
  );
  filter: blur(2px);
}

@keyframes shaft-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Layer 5: Floor reflection glow */
.hero-floor-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 250px;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 50% at 50% 100%,
    rgba(255, 180, 80, 0.18) 0%,
    rgba(200, 120, 30, 0.06) 50%,
    transparent 80%
  );
}

/* Edge vignette — makes background feel infinite */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(6,5,4,0.85) 0%, transparent 18%, transparent 82%, rgba(6,5,4,0.85) 100%),
    linear-gradient(to bottom, rgba(6,5,4,0.4) 0%, transparent 15%, transparent 90%, rgba(6,5,4,0.6) 100%);
}

/* Ember canvas — ON TOP of everything including the logo */
#ember-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.hero-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8);
}

/* Subscriber Badge */
.subscriber-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: oklch(0 0 0 / 0.35);
  border: 1px solid oklch(1 0 0 / 0.1);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.subscriber-badge svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.hero-logo {
  width: clamp(240px, 35vw, 420px);
  height: auto;
  margin-bottom: var(--space-10);
  filter: drop-shadow(0 0 40px rgba(255, 180, 60, 0.4))
          drop-shadow(0 0 80px rgba(255, 150, 30, 0.2))
          drop-shadow(0 0 120px rgba(200, 100, 20, 0.1));
  transition: filter 0.6s var(--ease-out);
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  font-style: italic;
  color: #fff;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 30px oklch(0 0 0 / 0.5);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hero-sub {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: oklch(1 0 0 / 0.6);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-10);
}
.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}
.hero-ctas .btn-secondary {
  border-color: oklch(1 0 0 / 0.25);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-ctas .btn-secondary:hover {
  background: oklch(1 0 0 / 0.1);
  border-color: oklch(1 0 0 / 0.5);
}

/* Scroll indicator — above ember canvas */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-10);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: oklch(1 0 0 / 0.35);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: scroll-bob 2.5s ease-in-out infinite;
}
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== SECTIONS (Increased padding for editorial feel) ===== */
.section {
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
}
.section-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-inline: var(--space-6);
}
.section-narrow {
  max-width: var(--content-default);
}
.section-alt {
  background: var(--color-surface);
}
.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-10);
  letter-spacing: 0.01em;
}

/* Decorated Heading (lines on each side) */
.section-heading--decorated {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
  justify-content: center;
}
.section-heading--decorated::before,
.section-heading--decorated::after {
  content: "";
  flex: 1;
  max-width: 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
  gap: var(--space-4);
}
.page-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  padding-top: var(--space-8);
}
.page-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-12);
}
.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-interactive),
              gap var(--transition-interactive);
}
.view-all-link:hover {
  color: var(--color-primary-hover);
  gap: var(--space-3);
}

/* ===== FEATURED VIDEO SECTION (Dramatic Light Reveal — scene rhythm break) ===== */
.featured-video-section {
  background: #FAF7F2;
  position: relative;
  overflow: hidden;
}
.featured-video-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 200px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 200, 100, 0.12), transparent 70%);
  pointer-events: none;
}
.featured-video-section .section-heading {
  color: #1E1C18;
}
.featured-video-section .section-heading--decorated::before,
.featured-video-section .section-heading--decorated::after {
  background: linear-gradient(90deg, transparent, #C47A08, transparent);
}
.featured-video-section .featured-video-title {
  color: #1E1C18;
}
[data-theme="light"] .featured-video-section {
  background: #FFFFFF;
}
[data-theme="light"] .featured-video-section::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(200, 130, 30, 0.08), transparent 70%);
}
.featured-video-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.video-embed-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #1a1816;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.25),
    0 10px 25px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.video-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.featured-video-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  text-align: center;
  margin-top: var(--space-8);
  font-style: italic;
}

/* ===== MISSION SECTION ===== */
.mission-section {
  background: var(--color-bg);
}
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
/* Organic offset — anti-grid overlap */
.mission-grid .scripture-quote {
  transform: translateY(24px);
}
.mission-grid .mission-text {
  transform: translateY(-16px);
}
@media (max-width: 768px) {
  .mission-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}
.mission-text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-5);
}
.mission-cta {
  font-weight: 500;
  color: var(--color-text) !important;
  font-style: italic;
}

/* Scripture Quote with decorative quotation marks — glass effect */
.scripture-quote {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-left: 3px solid var(--color-primary);
  padding: var(--space-12) var(--space-8);
  border-radius: 0 var(--radius-2xl) var(--radius-2xl) 0;
  position: relative;
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--color-primary);
}
.scripture-quote::before {
  content: "\201C";
  position: absolute;
  top: -8px;
  left: 16px;
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--color-primary);
  opacity: 0.2;
  line-height: 1;
  pointer-events: none;
}
.scripture-quote::after {
  content: "\201D";
  position: absolute;
  bottom: -32px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--color-primary);
  opacity: 0.2;
  line-height: 1;
  pointer-events: none;
}
.scripture-quote p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: var(--space-4);
}
.scripture-quote cite {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--color-primary);
  font-weight: 500;
}

/* ===== PILLAR CARDS (Glassmorphism upgrade) ===== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 768px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}
.pillar-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-6);
  text-align: center;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.5s var(--ease-out),
              box-shadow 0.5s var(--ease-out),
              border-color 0.5s var(--ease-out);
  /* Rim lighting — subtle top edge glow */
  box-shadow:
    inset 0 1px 0 0 rgba(255, 200, 100, 0.1),
    0 0 0 1px rgba(255, 200, 100, 0.03);
  position: relative;
  overflow: hidden;
}
/* Rim light pseudo-element — top edge glow */
.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 200, 100, 0.35), transparent);
  pointer-events: none;
  z-index: 1;
}
/* Hover glow overlay */
.pillar-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 200, 100, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}
.pillar-card:hover {
  box-shadow:
    var(--glow-ember-strong),
    inset 0 1px 0 0 rgba(255, 200, 100, 0.2),
    0 0 0 1px rgba(255, 200, 100, 0.08);
  border-color: oklch(0.65 0.18 65 / 0.2);
}
.pillar-card:hover::after {
  opacity: 1;
}
.pillar-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-highlight);
  border-radius: var(--radius-xl);
  color: var(--color-primary);
  transition: transform 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
}
.pillar-card:hover .pillar-icon {
  transform: scale(1.08);
  box-shadow: 0 0 20px oklch(0.65 0.18 65 / 0.15);
}
.pillar-title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.pillar-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== SCRIPTURE SPOTLIGHT (Cinematic Interstitial — Enhanced) ===== */
.scripture-spotlight {
  position: relative;
  overflow: hidden;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--space-24);
}
.scripture-spotlight-bg {
  position: absolute;
  inset: 0;
  background: url('./assets/hero-bg.jpg') center center / cover no-repeat;
  opacity: 0.25;
}
.scripture-spotlight-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, oklch(0 0 0 / 0.2) 0%, oklch(0 0 0 / 0.8) 80%),
    linear-gradient(180deg, var(--color-bg) 0%, oklch(0 0 0 / 0.05) 15%, oklch(0 0 0 / 0.05) 85%, var(--color-bg) 100%);
}
[data-theme="light"] .scripture-spotlight-overlay {
  background:
    radial-gradient(ellipse at center, oklch(0 0 0 / 0.3) 0%, oklch(0 0 0 / 0.8) 80%),
    linear-gradient(180deg, var(--color-bg) 0%, oklch(0 0 0 / 0.1) 15%, oklch(0 0 0 / 0.1) 85%, var(--color-bg) 100%);
}
.scripture-spotlight-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.spotlight-quote {
  max-width: 800px;
  margin: 0 auto;
}
.spotlight-quote p {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  line-height: 1.35;
  margin-bottom: var(--space-8);
  text-shadow: 0 2px 20px oklch(0 0 0 / 0.4);
}
.spotlight-quote cite {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-style: normal;
  color: var(--color-primary);
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* ===== EPISODE CARDS (Glassmorphism + enhanced hover) ===== */
.episodes-grid {
  display: grid;
  gap: var(--space-6);
}
.episodes-grid--featured {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.episodes-grid--all {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.episode-card {
  display: block;
  text-decoration: none;
  color: var(--color-text);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease-out),
              transform 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out);
  cursor: pointer;
}
.episode-card:hover {
  transform: translateY(-6px);
  border-color: oklch(0.65 0.18 65 / 0.25);
  box-shadow: var(--glow-ember-strong);
}
.episode-card:active {
  transform: translateY(-2px);
}
.episode-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-surface-2);
}
.episode-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.episode-card:hover .episode-thumb {
  transform: scale(1.06);
}
.episode-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: oklch(0 0 0 / 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid oklch(1 0 0 / 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out),
              transform 0.3s var(--ease-out);
}
.episode-card:hover .episode-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Episode Number Badge */
.episode-number {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: oklch(0 0 0 / 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.episode-info {
  padding: var(--space-5);
}
.episode-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.episode-meta {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  display: flex;
  gap: var(--space-3);
}

/* ===== EPISODES PAGE HERO ===== */
.episodes-hero {
  position: relative;
  height: clamp(220px, 30vw, 400px);
  overflow: hidden;
  background: var(--color-surface);
}
.episodes-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.episodes-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-bg) 0%, oklch(0 0 0 / 0.3) 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-10) var(--space-6);
}
.episodes-hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: #fff;
  max-width: var(--content-wide);
  margin: 0 auto;
  width: 100%;
  text-shadow: 0 2px 16px oklch(0 0 0 / 0.5);
}

/* ===== ABOUT HERO ===== */
.about-hero {
  position: relative;
  height: clamp(220px, 30vw, 400px);
  overflow: hidden;
  background: var(--color-surface);
}
.about-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-bg) 0%, oklch(0 0 0 / 0.3) 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-10) var(--space-6);
}
.about-hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: #fff;
  max-width: var(--content-wide);
  margin: 0 auto;
  width: 100%;
  text-shadow: 0 2px 16px oklch(0 0 0 / 0.5);
}
.about-content p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-5);
}
.about-content p:last-child {
  margin-bottom: 0;
}

/* Vision Banner */
.vision-banner {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
}
.vision-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Connect Section */
.connect-section {
  text-align: center;
}
.connect-text {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-10);
  line-height: 1.7;
  max-width: 60ch;
  margin-inline: auto;
}
.connect-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== NEWSLETTER / STAY CONNECTED SECTION ===== */
.newsletter-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  opacity: 0.05;
  pointer-events: none;
}
.newsletter-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.newsletter-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: #141210;
  margin-bottom: var(--space-4);
}
.newsletter-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: oklch(0.15 0.02 65 / 0.8);
  margin-bottom: var(--space-3);
  max-width: 50ch;
  margin-inline: auto;
  line-height: 1.6;
}
.newsletter-count {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #141210;
  margin-bottom: var(--space-8);
  letter-spacing: 0.02em;
}
.newsletter-ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}
.btn-dark-text {
  background: #141210;
  color: #F5B731 !important;
}
.btn-dark-text svg {
  color: #F5B731;
}
.btn-dark-text:hover {
  background: #1c1a17;
  box-shadow: var(--shadow-lg);
}
.btn-newsletter-secondary {
  border-color: #141210 !important;
  color: #141210 !important;
  background: transparent;
}
.btn-newsletter-secondary:hover {
  background: oklch(0 0 0 / 0.1) !important;
}

/* ===== BUTTONS (Premium — enhanced animations) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s var(--ease-out),
              color 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out),
              transform 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out);
}
.btn-primary {
  background: var(--color-primary);
  color: #141210;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px oklch(0.65 0.18 65 / 0.3);
}
.btn-primary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: var(--shadow-sm);
  transition-duration: 80ms;
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary-highlight);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px oklch(0.65 0.18 65 / 0.15);
}
.btn-secondary:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 80ms;
}
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--color-divider);
  padding: var(--space-20) var(--space-6) var(--space-8);
  background: var(--color-surface);
}
.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-10);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-logo-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--color-divider);
  margin-bottom: var(--space-2);
}
.footer-wordmark {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--color-text);
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-text-faint);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.footer-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer-nav-link:hover {
  color: var(--color-primary);
}
.footer-connect {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-links {
  display: flex;
  gap: var(--space-3);
}
.footer-social {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid var(--color-divider);
  transition: color 0.3s var(--ease-out),
              background 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out),
              transform 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}
.footer-social:hover {
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  border-color: var(--color-primary);
  transform: translateY(-3px) rotate(5deg);
  box-shadow: 0 6px 16px oklch(0.65 0.18 65 / 0.2);
}
.footer-meta-bar {
  max-width: var(--content-wide);
  margin: var(--space-12) auto 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-attribution {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer-attribution:hover {
  color: var(--color-text-muted);
}
.footer-copyright {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }
  .footer-brand {
    align-items: center;
  }
  .footer-nav {
    align-items: center;
  }
  .footer-connect {
    align-items: center;
  }
  .footer-links {
    justify-content: center;
  }
  .footer-meta-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ===== SCROLL ANIMATIONS (Enhanced — staggered reveals) ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out),
              transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 400ms; }

/* Fade-in (simpler — just opacity) */
.fade-in {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
.fade-in.is-visible {
  opacity: 1;
}

/* Scale-in variant */
.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
}
.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ===== SCROLL-DRIVEN WORD-BY-WORD SCRIPTURE REVEAL ===== */
.scroll-reveal-words .word {
  display: inline-block;
  opacity: 0.1;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(4px);
}
.scroll-reveal-words .word.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.scroll-reveal-cite {
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
}
.scroll-reveal-cite.is-revealed {
  opacity: 1;
}

/* ===== PILLARS PATH SVG ===== */
.pillars-grid-wrap {
  position: relative;
}
.pillars-path-svg {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 20px;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 768px) {
  .pillars-path-svg { display: none; }
}

/* ===== CINEMATIC VIDEO THEATER ===== */
.featured-video-section .video-embed-container {
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    0 15px 35px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 0 100px rgba(212, 164, 76, 0.05);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.featured-video-section .video-embed-container:hover {
  transform: scale(1.01);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.4),
    0 20px 45px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 0 120px rgba(212, 164, 76, 0.08);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .hero-tagline {
    font-size: var(--text-xl);
  }
  .section-heading {
    font-size: var(--text-xl);
  }
  .episodes-grid--featured,
  .episodes-grid--all {
    grid-template-columns: 1fr;
  }
  .btn-lg {
    width: 100%;
    justify-content: center;
  }
  .connect-buttons,
  .hero-ctas,
  .newsletter-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .spotlight-quote p {
    font-size: var(--text-xl);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: var(--space-3) var(--space-4);
  }
  .hero-logo {
    width: clamp(160px, 50vw, 280px);
  }
  .mission-grid {
    grid-template-columns: 1fr;
  }
  .section-heading--decorated::before,
  .section-heading--decorated::after {
    max-width: 60px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== BLOG / DEVOTIONALS PAGE ===== */

/* Blog Hero (same pattern as episodes/about hero) */
.blog-hero {
  position: relative;
  height: clamp(220px, 30vw, 400px);
  overflow: hidden;
}
.blog-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 13, 11, 0.4), rgba(15, 13, 11, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 16px oklch(0 0 0 / 0.5);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

/* Blog Card (Glassmorphism) */
.blog-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out),
              transform 0.4s var(--ease-out);
}
.blog-card:hover {
  border-color: oklch(0.65 0.18 65 / 0.25);
  box-shadow: var(--glow-ember-strong);
  transform: translateY(-4px);
}

.blog-card-badge {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: rgba(232, 146, 13, 0.1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.3;
}

.blog-card-date {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.blog-card-excerpt {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
}

.blog-card-scripture {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-primary);
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap 0.3s var(--ease-out),
              color var(--transition-interactive);
  margin-top: var(--space-2);
}
.blog-card-link:hover {
  gap: var(--space-3);
  color: var(--color-primary-hover);
}

/* Social icon rows (newsletter & connect sections) */
.newsletter-social-row,
.connect-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-4);
}

.social-icon-link {
  color: var(--color-text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-icon-link:hover {
  color: var(--color-primary);
  transform: scale(1.15);
}

/* Second row of CTA buttons (Facebook + TikTok) */
.newsletter-ctas--row2 {
  margin-top: var(--space-3);
}
