/* =====================================================================
   MIDNIGHT PROPHETIC DECREES — stylesheet
   "The Midnight Altar" — plum-violet cosmos (from the ministry flyer),
   glass surfaces, a starlight-violet gloss layer, rose nebula glows, and
   crimson as the brand mark (MID · DECREES · LIVE).
   Type: Fraunces (display serif) · Manrope (body) · Anton (wordmark only)
   ===================================================================== */

:root {
  /* Night base — plum-violet cosmos from the ministry flyer */
  --night-950: #08030F;    /* page background */
  --night-900: #10071F;    /* alternating panels */
  --night-800: #1A0F33;    /* elevated surfaces */

  /* Glass surface recipe: bg + border + backdrop-filter blur */
  --glass-bg: rgba(178, 156, 222, 0.07);
  --glass-border: rgba(216, 196, 255, 0.11);

  /* Cosmic violet accent */
  --violet-300: #C4B5FD;
  --violet-400: #A78BFA;
  --violet-500: #8B5CF6;
  --violet-700: #7C3AED;
  --grad-gloss: linear-gradient(135deg, #F6F2FF, var(--violet-300) 55%, var(--violet-500));

  /* Brand crimson */
  --decree-red: #D7263D;
  --ember-700: #A61E30;

  /* Text */
  --ink: #F5F1FF;
  --ink-muted: #B1A6D0;

  /* Signals */
  --wa-green: #25D366;
  --status-ok: #6EE7A0;
  --status-error: #FF8B9A;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-brand: "Anton", "Arial Narrow", sans-serif;

  --audio-bar-h: 60px;
  --header-h: 64px;
  --radius: 14px;
  --maxw: 1100px;

  /* z-scale: lightbox 200 > header 100 > audio bar 95 > WhatsApp float 90 */
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

/* Load-bearing: the JS layer shows/hides features via the hidden attribute
   (live badge, countdown swap, audio bar, email buttons). Must always win. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  background: var(--night-950);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.has-audio-bar { padding-bottom: var(--audio-bar-h); }

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

a { color: var(--violet-400); }
a:hover { color: var(--violet-300); }

::selection { background: rgba(167, 139, 250, 0.28); }

:focus-visible {
  outline: 2px solid var(--violet-400);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); margin-bottom: 0.9rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin-bottom: 0.5rem; }

/* Glossy starlight type — shared recipe with a solid-violet fallback */
.wm-violet,
.hero-tagline,
.countdown .digits,
.bank-number {
  background: var(--grad-gloss);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .wm-violet,
  .hero-tagline,
  .countdown .digits,
  .bank-number { background: none; color: var(--violet-400); }
}

/* ---------- Utilities ---------- */
.container {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}
.container.narrow { max-width: 760px; }

.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }

.section-panel {
  background:
    radial-gradient(ellipse 70% 60% at 85% 0%, rgba(139, 92, 246, 0.07), transparent 60%),
    radial-gradient(ellipse 60% 50% at 8% 100%, rgba(190, 60, 120, 0.05), transparent 60%),
    var(--night-900);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--violet-400);
  margin-bottom: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  flex: none;
  background: var(--grad-gloss);
}

.section-intro {
  color: var(--ink-muted);
  max-width: 56ch;
  margin-bottom: 2rem;
}

/* ---------- Buttons ----------
   .btn, .btn-red, .btn-outline are generated by live.js — never rename. */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s, filter 0.2s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }

/* Glossy sheen sweep on hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform 0.55s ease;
  pointer-events: none;
}
.btn:hover::after { transform: translateX(130%); }

.btn-red {
  background: linear-gradient(180deg, #E13049, #C01F34);
  color: #fff;
  box-shadow: 0 6px 24px rgba(215, 38, 61, 0.30);
}
.btn-red:hover {
  background: linear-gradient(180deg, #E9425A, #C82539);
  color: #fff;
  box-shadow: 0 8px 30px rgba(215, 38, 61, 0.42);
}

.btn-violet {
  background: linear-gradient(135deg, var(--violet-400), var(--violet-700));
  color: #fff;
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.3);
}
.btn-violet:hover {
  filter: brightness(1.08);
  color: #fff;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.42);
}

.btn-green { background: var(--wa-green); color: #08140C; }
.btn-green:hover { background: #1FBF5B; color: #08140C; }

.btn-outline {
  border-color: rgba(200, 215, 255, 0.22);
  color: var(--ink);
  background: var(--glass-bg);
}
.btn-outline:hover {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(167, 139, 250, 0.08);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.btn-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(8, 3, 15, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.25s, box-shadow 0.25s;
}
.site-header.scrolled {
  background: rgba(8, 3, 15, 0.85);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
  width: min(100% - 2rem, 1240px);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.brand-mid { color: var(--decree-red); }
.brand-night { color: var(--ink); }
.brand-rest {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: var(--violet-400);
  margin-top: -2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav .nav-give { display: none; color: #fff; }

/* Glossy underline that grows in — desktop nav only */
@media (min-width: 920px) {
  .site-nav a:not(.nav-give) { position: relative; }
  .site-nav a:not(.nav-give)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: var(--grad-gloss);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }
  .site-nav a:not(.nav-give):hover::after,
  .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.header-give { padding: 0.5rem 1.15rem; font-size: 0.85rem; }

.social-icon {
  color: var(--ink-muted);
  display: inline-flex;
  padding: 4px;
  transition: color 0.2s;
}
.social-icon:hover { color: var(--violet-400); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 919px) {
  .nav-toggle { display: flex; }
  /* Mobile header: keep Give Offering, drop the social icons to make room
     (they remain in the footer and the desktop header) */
  .header-actions .social-icon { display: none; }
  .header-actions { gap: 0.6rem; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8, 3, 15, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.55);
    padding: 0.5rem 1.25rem 1.25rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s, opacity 0.2s, visibility 0.2s;
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .site-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--glass-border);
    font-size: 1rem;
  }
  .site-nav .nav-give {
    display: inline-flex;
    margin-top: 1rem;
    border-bottom: none;
    justify-content: center;
  }
}

/* ---------- Hero: the midnight altar ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 3rem) 1.25rem 4rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-media { position: absolute; inset: 0; z-index: -1; }

.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Deep-space gradient — also the fallback when no video file exists */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 70% 8%, rgba(190, 60, 120, 0.18), transparent 60%),
    radial-gradient(ellipse 55% 40% at 12% 82%, rgba(215, 38, 61, 0.10), transparent 60%),
    radial-gradient(ellipse 55% 45% at 45% 38%, rgba(35, 20, 70, 0.6), transparent 70%),
    var(--night-950);
}

.starfield {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  opacity: 0.9;
}
.starfield-a {
  background-image:
    radial-gradient(1px 1px at 22px 34px, rgba(255,255,255,0.95) 50%, transparent 51%),
    radial-gradient(1px 1px at 121px 89px, rgba(255,255,255,0.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 187px 21px, rgba(200,215,255,0.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 74px 156px, rgba(255,255,255,0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 156px 189px, rgba(255,255,255,0.8) 50%, transparent 51%);
  background-size: 220px 220px;
  animation: twinkle 5s ease-in-out infinite alternate;
}
.starfield-b {
  background-image:
    radial-gradient(1px 1px at 45px 112px, rgba(255,255,255,0.55) 50%, transparent 51%),
    radial-gradient(2px 2px at 260px 45px, rgba(220,130,190,0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 198px 230px, rgba(200,215,255,0.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 310px 170px, rgba(255,255,255,0.75) 50%, transparent 51%);
  background-size: 340px 340px;
  animation: twinkle 8s ease-in-out infinite alternate-reverse;
}
/* A few bright "hero stars" — each dot paired with a soft glow halo */
.starfield-c {
  background-image:
    radial-gradient(2px 2px at 80px 60px, rgba(255,255,255,0.95) 40%, transparent 61%),
    radial-gradient(7px 7px at 80px 60px, rgba(196,181,253,0.4) 30%, transparent 70%),
    radial-gradient(2px 2px at 420px 210px, rgba(255,255,255,0.9) 40%, transparent 61%),
    radial-gradient(8px 8px at 420px 210px, rgba(220,130,190,0.35) 30%, transparent 70%),
    radial-gradient(1.5px 1.5px at 250px 330px, rgba(255,255,255,0.85) 40%, transparent 61%),
    radial-gradient(6px 6px at 250px 330px, rgba(196,181,253,0.35) 30%, transparent 70%);
  background-size: 520px 430px;
  animation: twinkle 3.5s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: 0.3; }
  to   { opacity: 1; }
}

/* JS-scattered stars (sky.js) — each twinkles on its own random phase */
.sky-stars { position: absolute; inset: 0; }
.sky-stars .star {
  position: absolute;
  border-radius: 50%;
  background: #FFFFFF;
  opacity: 0.85;
  animation: star-shine 4s ease-in-out infinite alternate;
}
.sky-stars .star-cool { background: #C4B5FD; }
.sky-stars .star-warm { background: rgba(235, 170, 210, 0.95); }
.sky-stars .star-bright {
  background: radial-gradient(circle, #FFFFFF 30%, rgba(196, 181, 253, 0.85) 60%, transparent 75%);
  box-shadow:
    0 0 6px 1px rgba(237, 233, 250, 0.8),
    0 0 16px 4px rgba(196, 181, 253, 0.35);
}
/* 4-point cross flare on the bright ones — the "proper shine" */
.sky-stars .star-bright::before,
.sky-stars .star-bright::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(237, 233, 250, 0.75), transparent);
  transform: translate(-50%, -50%);
}
.sky-stars .star-bright::after { transform: translate(-50%, -50%) rotate(90deg); }
@keyframes star-shine {
  from { opacity: 0.15; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(8, 3, 15, 0.64),
    rgba(8, 3, 15, 0.84) 55%,
    var(--night-950) 100%
  );
}
/* The sky lives above the darkening overlay — stars, moon and meteors
   stay bright against it (only the eagle sits beneath) */
.starfield,
.sky-stars,
.hero-horizon,
.hero-moon,
.hero-shooting-star { z-index: 2; }

/* The signature: nebula light breaking at the horizon behind the wordmark.
   Sits above the dark overlay, below the content. */
.hero-horizon {
  position: absolute;
  left: 50%;
  bottom: -12%;
  transform: translateX(-50%);
  width: 140%;
  max-width: 1700px;
  height: 58%;
  background: radial-gradient(
    ellipse 50% 58% at 50% 100%,
    rgba(160, 90, 255, 0.16),
    rgba(190, 60, 120, 0.05) 45%,
    transparent 72%
  );
  pointer-events: none;
}

/* The eagle over the altar — full-bleed eagle behind the dark overlay,
   hue-shifted from its golden-hour original into the violet nebula
   ("they shall mount up with wings as eagles") */
.hero-eagle {
  position: absolute;
  inset: 0;
  background: url("../assets/eagle.jpg") center 32% / cover no-repeat;
  opacity: 0.3;
  filter: hue-rotate(230deg) saturate(0.75) brightness(0.9);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 30%, #000 70%, transparent);
}
/* Narrow screens crop the square photo hard — zoom in on the eagle and
   relax the side fade so it stays a clear presence */
@media (max-width: 640px) {
  .hero-eagle {
    background-size: 230%;
    background-position: 50% 28%;
    opacity: 0.36;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  }
}
@keyframes fade-in {
  from { opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-eagle { animation: fade-in 1.6s ease 0.3s backwards; }
}

/* Faint half moon, top-left — a soft glowing orb whose dark half is
   carved away by the mask, so only the lit side and its halo remain */
.hero-moon {
  position: absolute;
  top: 9%;
  left: 5%;
  width: clamp(96px, 12vw, 170px);
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(233, 226, 250, 0.9) 38%,
    rgba(196, 181, 253, 0.3) 46%,
    rgba(196, 181, 253, 0.12) 55%,
    transparent 68%
  );
  -webkit-mask-image: linear-gradient(100deg, #000 40%, rgba(0, 0, 0, 0.18) 54%, transparent 66%);
  mask-image: linear-gradient(100deg, #000 40%, rgba(0, 0, 0, 0.18) 54%, transparent 66%);
  opacity: 0.5;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-moon { animation: moon-breathe 9s ease-in-out infinite alternate; }
}
@keyframes moon-breathe {
  from { opacity: 0.3; }
  to   { opacity: 0.45; }
}

/* A shooting star crosses the sky once in a while (hidden between runs) */
.hero-shooting-star {
  position: absolute;
  top: 16%;
  left: -8%;
  width: 130px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(237, 233, 250, 0.9));
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-shooting-star { animation: shooting 11s linear infinite 4s; }
  .hero-shooting-star-b { animation: shooting-b 17s linear infinite 9s; }
}
@keyframes shooting {
  0%   { transform: rotate(9deg) translateX(0); opacity: 0; }
  62%  { transform: rotate(9deg) translateX(0); opacity: 0; }
  63%  { opacity: 0.9; }
  71%  { transform: rotate(9deg) translateX(120vw); opacity: 0; }
  100% { transform: rotate(9deg) translateX(120vw); opacity: 0; }
}
.hero-shooting-star-b {
  top: 34%;
  left: -6%;
  width: 90px;
  height: 1.5px;
}
@keyframes shooting-b {
  0%   { transform: rotate(14deg) translateX(0); opacity: 0; }
  74%  { transform: rotate(14deg) translateX(0); opacity: 0; }
  75%  { opacity: 0.75; }
  81%  { transform: rotate(14deg) translateX(115vw); opacity: 0; }
  100% { transform: rotate(14deg) translateX(115vw); opacity: 0; }
}

.hero-content {
  width: min(100%, 860px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.1rem;
}

/* The tri-color stacked wordmark — Anton, the brand's own face */
.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(2.7rem, 10vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  filter: drop-shadow(0 6px 26px rgba(0, 0, 0, 0.55));
}
.wm-line { display: block; }
.wm-red { color: var(--decree-red); }
.wm-white { color: var(--ink); }
.wm-decrees {
  background: linear-gradient(180deg, #E8354C, #B81E31);
  color: #fff;
  font-size: 0.62em;
  line-height: 1.15;
  padding: 0.04em 0.35em 0.08em;
  letter-spacing: 0.14em;
  box-shadow: 0 6px 30px rgba(215, 38, 61, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 3.4vw, 1.8rem);
  margin-top: 1.1rem;
}

.hero-scripture {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-muted);
  max-width: 46ch;
  margin-top: 0.6rem;
  font-size: 1.02rem;
}
.hero-scripture cite { font-style: normal; font-size: 0.85em; }

.hero-schedule {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 1.6rem;
}

/* Hero load choreography — exists only for motion-friendly visitors,
   so the hidden "from" state can never strand content off-screen. */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow            { animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s backwards; }
  .wordmark                { animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.14s backwards; }
  .hero-tagline            { animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.26s backwards; }
  .hero-scripture          { animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.34s backwards; }
  .hero .carousel          { animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.42s backwards; }
  .hero .countdown         { animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.48s backwards; }
  .hero-schedule           { animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.56s backwards; }
  .hero-content > .btn-row { animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.64s backwards; }
}

/* LIVE badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #E13049, #C01F34);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.1rem;
  box-shadow: 0 6px 24px rgba(215, 38, 61, 0.4);
}
.live-badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

/* Live stream frame */
.live-container { width: 100%; }
.live-frame {
  width: min(100%, 780px);
  margin: 1.5rem auto 0;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(215, 38, 61, 0.45);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(215, 38, 61, 0.25);
}
.live-frame iframe { width: 100%; height: 100%; border: 0; }
.live-frame-links {
  aspect-ratio: auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: var(--night-900);
}
.live-frame-links p { font-size: 1.15rem; font-weight: 700; }
.live-hint {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 0.5rem;
}

/* When live: clear the stage for the stream */
.hero.is-live .carousel,
.hero.is-live .hero-scripture { display: none; }

/* ---------- Testimony carousel ---------- */
.carousel {
  width: min(100%, 640px);
  margin-top: 1.75rem;
}
.carousel-viewport { display: grid; }
.carousel .slide {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  padding: 1.35rem 1.6rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.carousel .slide.active { opacity: 1; pointer-events: auto; }
.carousel blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  color: var(--ink);
}
.carousel figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.9rem;
}
.carousel-arrow {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--ink-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.carousel-arrow:hover {
  border-color: rgba(167, 139, 250, 0.5);
  color: var(--violet-400);
}
.carousel-dots { display: flex; gap: 0.5rem; }
.carousel .dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(177, 166, 208, 0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.carousel .dot.active { background: var(--violet-400); transform: scale(1.25); }

/* ---------- Countdown — glass tiles, starlit serif digits ---------- */
.countdown { margin-top: 1.9rem; }
.countdown-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.8rem;
}
.countdown-tiles {
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1rem);
}
.countdown .tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(66px, 18vw, 96px);
  padding: 0.8rem 0.5rem 0.65rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 30px rgba(0, 0, 0, 0.35);
}
.countdown .digits {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  /* Fraunces numerals aren't reliably tabular — fix the box so ticking
     seconds never make the tiles jitter */
  min-width: 2ch;
  text-align: center;
  filter: drop-shadow(0 0 14px rgba(167, 139, 250, 0.3));
}
.countdown .unit {
  margin-top: 0.4rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.countdown-live {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--violet-400);
}

/* ---------- Timezone table ---------- */
.tz-table {
  max-width: 640px;
  background: rgba(8, 13, 26, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.tz-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--glass-border);
}
.tz-row:last-child { border-bottom: none; }
.tz-flag { font-size: 1.25rem; display: flex; align-items: center; }
.tz-flag img { border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.tz-label { font-weight: 600; font-size: 0.95rem; }
.tz-time {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  color: var(--ink-muted);
  font-size: 0.95rem;
  white-space: nowrap;
}
.tz-you {
  background: rgba(167, 139, 250, 0.07);
  box-shadow: inset 3px 0 0 var(--violet-400);
}
.tz-you .tz-time { color: var(--violet-400); font-weight: 700; }
.tz-note {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ---------- About the Convener ---------- */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 760px) {
  .about-grid { grid-template-columns: 320px 1fr; }
}
.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  outline: 1px solid rgba(167, 139, 250, 0.28);
  outline-offset: 10px;
  background: var(--night-800);
  aspect-ratio: 4 / 5;
  max-width: 340px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brand);
  font-size: 5rem;
  color: rgba(167, 139, 250, 0.4);
  background:
    radial-gradient(ellipse 70% 60% at 70% 20%, rgba(139, 92, 246, 0.2), transparent 60%),
    var(--night-800);
}
.about-photo.no-photo img { display: none; }
.about-photo.no-photo .avatar-fallback { display: flex; }

/* :where() keeps this at zero specificity so single-class overrides
   (.about-verse) win without !important */
:where(.about-text p) { margin-bottom: 1rem; color: var(--ink-muted); }
.about-text h2 + p { color: var(--ink); }
.about-verse {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--violet-400);
  margin-top: 1.25rem;
}

/* ---------- Gallery of past prayers ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
}
.gallery-card {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  background: var(--night-900);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-body);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}
.thumb-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  z-index: 0;
}
.play-badge::before {
  content: "";
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(215, 38, 61, 0.9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  z-index: -1;
  transition: transform 0.2s;
}
.gallery-card:hover .play-badge::before { transform: scale(1.12); }
.gallery-title {
  display: block;
  padding: 0.8rem 0.95rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-muted);
  padding: 2.5rem 1rem;
  border: 1px dashed rgba(167, 139, 250, 0.3);
  border-radius: var(--radius);
}

/* Lightbox — z 200, above everything */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 2, 10, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.lightbox-inner { width: min(100%, 960px); position: relative; }
.lightbox-frame {
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: var(--glass-bg);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(167, 139, 250, 0.5);
}

/* ---------- Testimony cards ---------- */
.t-cards {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 720px) {
  .t-cards { grid-template-columns: repeat(3, 1fr); }
}
.t-card {
  padding: 1.5rem 1.5rem 1.3rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--decree-red);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.t-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 36px rgba(0, 0, 0, 0.4);
}
.t-card blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
}
.t-card figcaption {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
}

/* ---------- Forms ---------- */
.form-card {
  background: rgba(8, 13, 26, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.section-panel .form-card { background: rgba(8, 3, 15, 0.45); }
.form-intro { color: var(--ink-muted); margin-bottom: 1.4rem; font-size: 0.95rem; }

form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 1.1rem;
}
form .optional { font-weight: 400; opacity: 0.7; }
form input[type="text"],
form input[type="email"],
form textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.78rem 0.95rem;
  font: inherit;
  color: var(--ink);
  background: #0E0722;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--violet-400);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.22);
}
form textarea { resize: vertical; min-height: 120px; }
form ::placeholder { color: rgba(177, 166, 208, 0.55); }

.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.botcheck {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status { margin-top: 0.9rem; font-size: 0.92rem; font-weight: 600; min-height: 1.4em; }
.status-ok { color: var(--status-ok); }
.status-error { color: var(--status-error); }
.status-pending { color: var(--ink-muted); }

/* ---------- Give — the glossy ministry card ---------- */
.section-give {
  background:
    radial-gradient(ellipse 65% 55% at 50% 115%, rgba(215, 38, 61, 0.12), transparent 65%),
    radial-gradient(ellipse 45% 40% at 50% 120%, rgba(190, 60, 120, 0.08), transparent 70%),
    var(--night-950);
  text-align: center;
}
.section-give .section-intro { margin-inline: auto; }

.bank-card {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  background: linear-gradient(150deg, #221345, var(--night-900) 60%);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 6px 30px rgba(167, 139, 250, 0.08);
  overflow: hidden;
  text-align: left;
}
/* Diagonal sheen — the gloss on the card face */
.bank-card::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -15%;
  width: 55%;
  height: 220%;
  background: linear-gradient(
    105deg,
    transparent,
    rgba(255, 255, 255, 0.05) 42%,
    rgba(255, 255, 255, 0.11) 50%,
    rgba(255, 255, 255, 0.05) 58%,
    transparent
  );
  transform: rotate(8deg);
  pointer-events: none;
}
.bank-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 1.2rem 1.35rem 0.95rem;
  border-bottom: 1px solid var(--glass-border);
}
.bank-title {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bank-holder { color: var(--ink-muted); font-size: 0.92rem; font-weight: 600; }

/* Currency tabs */
.give-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.9rem 1.35rem 0.2rem;
}
.give-tab {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.95rem;
  border-radius: 99px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--ink-muted);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.give-tab:hover { border-color: rgba(167, 139, 250, 0.5); color: var(--ink); }
.give-tab.active {
  background: linear-gradient(135deg, var(--violet-400), var(--violet-700));
  border-color: transparent;
  color: #fff;
}

.give-panel { padding-top: 0.3rem; }
.bank-code {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.give-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1rem 1.35rem 1.25rem;
  border-top: 1px solid var(--glass-border);
}
.give-actions .copy-btn { padding: 0.55rem 1.2rem; font-size: 0.85rem; }

.bank-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1.05rem 1.35rem;
  border-bottom: 1px solid var(--glass-border);
}
.bank-row:last-child { border-bottom: none; }
.bank-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.bank-value { font-weight: 600; overflow-wrap: anywhere; }
.bank-number {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
}
.copy-btn {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  background: var(--glass-bg);
  color: var(--ink-muted);
  border: 1px solid var(--glass-border);
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.copy-btn:hover {
  border-color: rgba(167, 139, 250, 0.55);
  color: var(--violet-400);
}
.copy-btn.copied { border-color: var(--status-ok); color: var(--status-ok); }

.give-note { margin-top: 1.4rem; font-size: 0.9rem; color: var(--ink-muted); }

/* ---------- Contact page ---------- */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 1.25rem 3.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 65% at 50% -10%, rgba(139, 92, 246, 0.14), transparent 65%),
    radial-gradient(ellipse 50% 45% at 50% 120%, rgba(190, 60, 120, 0.08), transparent 70%),
    var(--night-950);
}
.page-hero h1 { font-size: clamp(2.2rem, 6.5vw, 3.4rem); }
.page-hero p:not(.eyebrow) {
  color: var(--ink-muted);
  max-width: 52ch;
  margin: 0.85rem auto 0;
}
@media (prefers-reduced-motion: no-preference) {
  .page-hero .eyebrow          { animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s backwards; }
  .page-hero h1                { animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards; }
  .page-hero p:not(.eyebrow)   { animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.28s backwards; }
}

.contact-cards {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 3rem;
}
@media (min-width: 720px) {
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
}
.contact-card {
  padding: 1.7rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.4);
}
.contact-card h3 { margin-bottom: 0.4rem; }
.contact-card p { color: var(--ink-muted); font-size: 0.92rem; margin-bottom: 1rem; }

.contact-form-wrap {
  max-width: 760px;
  margin-inline: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0 1.5rem;
  background: linear-gradient(180deg, var(--night-950), #040110);
}
.footer-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr auto; }
}
.footer-brand {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-verse { color: var(--ink-muted); font-size: 0.85rem; margin-top: 0.4rem; }
.footer-nav { display: grid; gap: 0.5rem; }
.footer-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-nav a:hover { color: var(--violet-400); }
.footer-social { display: flex; gap: 0.9rem; }
.footer-copy {
  text-align: center;
  color: rgba(177, 166, 208, 0.6);
  font-size: 0.8rem;
  margin-top: 2.5rem;
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(var(--audio-bar-h) + 18px);
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
/* When the audio bar hides itself (no audio file), drop the float down */
body:not(.has-audio-bar) .wa-float { bottom: 18px; }

/* ---------- Sticky audio bar ---------- */
.audio-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 95;
  height: var(--audio-bar-h);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0 1rem;
  background: linear-gradient(180deg, rgba(26, 15, 51, 0.88), rgba(8, 3, 15, 0.96));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 -12px 34px rgba(0, 0, 0, 0.35);
}
.audio-btn {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--ink);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, filter 0.2s;
}
.audio-btn:hover { border-color: rgba(167, 139, 250, 0.5); }
/* The play/pause disc is the bar's violet centerpiece (mute stays glass) */
.audio-btn:not(.audio-mute) {
  background: linear-gradient(135deg, var(--violet-400), var(--violet-700));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35);
}
.audio-btn:not(.audio-mute):hover { filter: brightness(1.08); }
.audio-btn:disabled { opacity: 0.35; cursor: default; filter: none; }
/* Audio file missing — bar stays, quietly disabled */
.audio-bar.no-audio .audio-progress,
.audio-bar.no-audio .audio-title { opacity: 0.45; }
.audio-bar .icon-pause { display: none; }
.audio-bar.is-playing .icon-pause { display: inline; }
.audio-bar.is-playing .icon-play { display: none; }
.audio-mute.is-muted { opacity: 0.45; }

.audio-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.audio-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audio-progress {
  height: 4px;
  border-radius: 3px;
  background: rgba(177, 166, 208, 0.22);
  overflow: hidden;
}
.audio-progress-fill {
  height: 100%;
  width: 0;
  background: var(--grad-gloss);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.55);
  transition: width 0.3s linear;
}
.audio-chip {
  flex: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 99px;
  border: none;
  background: var(--decree-red);
  color: #fff;
  cursor: pointer;
  animation: chip-pulse 1.6s ease-in-out infinite;
}
@keyframes chip-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(215, 38, 61, 0.5); }
  50% { box-shadow: 0 0 0 9px rgba(215, 38, 61, 0); }
}

/* ---------- Scroll reveals ----------
   Hidden states are scoped under html.reveal-ready (added by reveal.js);
   without JS nothing is ever hidden. Animations use `backwards` fill so
   they release the element's own styles (hover transforms) once done. */
@keyframes reveal-rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

html.reveal-ready [data-reveal]:not(.revealed) { opacity: 0; }
html.reveal-ready [data-reveal].revealed {
  animation: reveal-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* Staggered grids: the container stays put, its children cascade.
   Child-only CSS handles late-arriving children (async gallery fetch). */
html.reveal-ready .stagger[data-reveal]:not(.revealed) { opacity: 1; }
html.reveal-ready .stagger[data-reveal]:not(.revealed) > * { opacity: 0; }
html.reveal-ready .stagger[data-reveal].revealed { animation: none; }
html.reveal-ready .stagger[data-reveal].revealed > * {
  animation: reveal-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
html.reveal-ready .stagger[data-reveal].revealed > :nth-child(2) { animation-delay: 0.08s; }
html.reveal-ready .stagger[data-reveal].revealed > :nth-child(3) { animation-delay: 0.16s; }
html.reveal-ready .stagger[data-reveal].revealed > :nth-child(4) { animation-delay: 0.24s; }
html.reveal-ready .stagger[data-reveal].revealed > :nth-child(5) { animation-delay: 0.32s; }
html.reveal-ready .stagger[data-reveal].revealed > :nth-child(6) { animation-delay: 0.40s; }
html.reveal-ready .stagger[data-reveal].revealed > :nth-child(7) { animation-delay: 0.48s; }
html.reveal-ready .stagger[data-reveal].revealed > :nth-child(8) { animation-delay: 0.56s; }
html.reveal-ready .stagger[data-reveal].revealed > :nth-child(n+9) { animation-delay: 0.6s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .starfield-a, .starfield-b, .starfield-c { animation: none; }
  .sky-stars .star { animation: none; opacity: 0.75; }
  .hero-moon, .hero-shooting-star { animation: none; }
  .live-badge::before { animation: none; }
  .audio-chip { animation: none; }
  .carousel .slide { transition: none; }
  .btn::after { display: none; }
  [data-reveal], [data-reveal] > * {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
  * { transition-duration: 0.01ms !important; }
}
