@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Inter:wght@300;400;500;600;700;800;900&display=swap");

:root {
  --black: #070707;
  --iron: #101214;
  --iron-2: #171a1d;
  --steel: #56656b;
  --ember: #a73a25;
  --ember-2: #d35434;
  --brass: #c6a15b;
  --olive: #536048;
  --bone: #f4ead8;
  --muted: #b9ad9b;
  --line: rgba(244, 234, 216, 0.14);
  --line-strong: rgba(198, 161, 91, 0.42);
  --panel: rgba(16, 18, 20, 0.78);
  --panel-solid: #111315;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  --radius: 8px;
  --font-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-devotional: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.4), var(--black) 420px),
    radial-gradient(circle at 14% 8%, rgba(167, 58, 37, 0.2), transparent 34rem),
    radial-gradient(circle at 82% 28%, rgba(198, 161, 91, 0.12), transparent 28rem),
    var(--black);
  color: var(--bone);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 234, 216, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 234, 216, 0.026) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 80%);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
iframe {
  max-width: 100%;
}

p {
  margin: 0;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--bone);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(4rem, 10vw, 8.75rem);
  max-width: 980px;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(2.7rem, 5vw, 5.2rem);
}

h3 {
  font-size: clamp(1.7rem, 2.7vw, 2.55rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1240px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  padding: 0.85rem 0;
  background: rgba(7, 7, 7, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(244, 234, 216, 0.08), rgba(244, 234, 216, 0.02));
  box-shadow: inset 0 1px 0 rgba(244, 234, 216, 0.14), 0 14px 32px rgba(0, 0, 0, 0.34);
}

.brand-mark img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.58));
}

.brand strong {
  display: block;
  color: var(--bone);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.72rem 0.76rem;
  color: rgba(244, 234, 216, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--bone);
  border-color: rgba(198, 161, 91, 0.34);
  background: rgba(244, 234, 216, 0.045);
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-button {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(244, 234, 216, 0.04);
  place-items: center;
  cursor: pointer;
}

.nav-button span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 4px auto;
  background: var(--bone);
}

.page {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
}

.meeting-alert {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.15rem;
  border: 1px solid rgba(198, 161, 91, 0.52);
  background:
    linear-gradient(135deg, rgba(167, 58, 37, 0.24), rgba(198, 161, 91, 0.08)),
    rgba(7, 7, 7, 0.88);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.meeting-alert::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 5px solid var(--ember);
  pointer-events: none;
}

.meeting-alert.slim {
  margin-bottom: 1rem;
}

.meeting-kicker {
  margin-bottom: 0.45rem;
  color: var(--brass);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.meeting-alert h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.75rem, 3.5vw, 3.35rem);
}

.meeting-alert p strong {
  color: var(--bone);
}

.meeting-actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.meeting-actions .button {
  min-width: 150px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 2rem;
  align-items: stretch;
  min-height: calc(100vh - 96px);
  padding: 4.2rem 0 3.5rem;
}

.hero.compact {
  display: block;
  min-height: 0;
  max-width: 980px;
  padding: 5.4rem 0 3rem;
}

.hero.compact .lead {
  max-width: 780px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--brass);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-kicker::before,
.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--ember), var(--brass));
}

.lead {
  max-width: 760px;
  margin-top: 1.2rem;
  color: rgba(244, 234, 216, 0.84);
  font-family: var(--font-devotional);
  font-size: clamp(1.32rem, 2.35vw, 1.78rem);
  font-weight: 500;
  line-height: 1.42;
  overflow-wrap: break-word;
}

.hero-copy {
  align-self: center;
  padding: 1rem 0 2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ember);
  background: linear-gradient(135deg, var(--ember), #6e2117);
  color: var(--bone);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 16px 38px rgba(167, 58, 37, 0.24);
}

.button:hover {
  border-color: var(--brass);
  background: linear-gradient(135deg, var(--ember-2), var(--ember));
}

.button.secondary {
  border-color: var(--line-strong);
  background: rgba(244, 234, 216, 0.04);
  box-shadow: none;
}

.button.secondary:hover {
  background: rgba(198, 161, 91, 0.1);
}

.hero-panel,
.image-panel {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.04), rgba(7, 7, 7, 0.78)),
    var(--image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.hero-panel::before,
.image-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(167, 58, 37, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(7, 7, 7, 0), rgba(7, 7, 7, 0.64));
  pointer-events: none;
}

.hero-panel > *,
.image-panel > * {
  position: relative;
}

.crest-panel {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(244, 234, 216, 0.08), rgba(7, 7, 7, 0.82)),
    linear-gradient(135deg, rgba(167, 58, 37, 0.22), rgba(198, 161, 91, 0.08)),
    var(--iron);
}

.crest-panel::before {
  background:
    linear-gradient(90deg, transparent, rgba(244, 234, 216, 0.08), transparent),
    linear-gradient(180deg, rgba(7, 7, 7, 0), rgba(7, 7, 7, 0.64));
}

.crest-emblem {
  width: min(92%, 410px);
  max-height: 390px;
  margin: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 28px 42px rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 24px rgba(244, 234, 216, 0.14));
}

.panel-note {
  max-width: 390px;
  padding: 1rem;
  border-left: 3px solid var(--ember);
  background: rgba(7, 7, 7, 0.58);
}

.panel-note h2,
.panel-note h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.85rem, 3vw, 3.25rem);
}

.signal-row,
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 2rem;
}

.signal,
.stat {
  min-height: 112px;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(244, 234, 216, 0.035);
}

.signal strong,
.stat strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 1.62rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.signal span,
.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 4.5rem 0;
  border-top: 1px solid rgba(244, 234, 216, 0.08);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.6fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-head p {
  font-family: var(--font-devotional);
  font-size: clamp(1.18rem, 1.8vw, 1.42rem);
  font-weight: 500;
  line-height: 1.48;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: 1rem;
  align-items: stretch;
}

.card,
.resource-link,
.belief,
.contact-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(244, 234, 216, 0.045), rgba(244, 234, 216, 0.012)),
    var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.card h3,
.resource-link strong,
.contact-card strong {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--bone);
}

.card p + p {
  margin-top: 1rem;
}

.card.ember {
  border-color: rgba(167, 58, 37, 0.62);
  background:
    linear-gradient(145deg, rgba(167, 58, 37, 0.16), rgba(7, 7, 7, 0.2)),
    var(--panel-solid);
}

.card.brass {
  border-color: rgba(198, 161, 91, 0.5);
}

.list {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding: 0.9rem 0;
  border-top: 1px solid rgba(244, 234, 216, 0.09);
}

.list strong {
  display: block;
  color: var(--bone);
}

.list a,
.resource-link span,
.footer a {
  color: var(--brass);
  overflow-wrap: anywhere;
}

.list a:hover,
.resource-link:hover span,
.footer a:hover {
  color: var(--bone);
}

.instagram-section {
  overflow: visible;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.instagram-card {
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid rgba(198, 161, 91, 0.28);
  background:
    linear-gradient(145deg, rgba(167, 58, 37, 0.1), rgba(244, 234, 216, 0.025)),
    rgba(7, 7, 7, 0.68);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.instagram-embed {
  display: block;
  width: 100%;
  min-height: 620px;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
}

.instagram-link {
  display: block;
  margin-top: 0.7rem;
  color: var(--brass);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.instagram-link:hover {
  color: var(--bone);
}

.actions.centered {
  justify-content: center;
}

.resource-link {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.resource-link strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.08;
  text-transform: uppercase;
}

.pathway-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
}

.step-num {
  color: rgba(198, 161, 91, 0.5);
  font-size: 1.9rem;
  font-weight: 950;
  line-height: 1;
}

.beliefs {
  display: grid;
  gap: 1rem;
}

.belief {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 1rem;
  align-items: start;
}

.belief-num {
  color: rgba(167, 58, 37, 0.78);
  font-size: 2.4rem;
  font-weight: 950;
  line-height: 1;
}

.belief h3 {
  margin-bottom: 0.7rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.field {
  width: 100%;
  min-height: 48px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(7, 7, 7, 0.55);
  color: var(--bone);
  font: inherit;
}

textarea.field {
  min-height: 160px;
  resize: vertical;
}

.field:focus {
  outline: 2px solid rgba(198, 161, 91, 0.34);
  border-color: var(--brass);
}

.iframe-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 16 / 9;
}

.iframe-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.quote-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(167, 58, 37, 0.15), rgba(198, 161, 91, 0.06)),
    rgba(7, 7, 7, 0.64);
}

.quote-band strong {
  color: var(--bone);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.02;
}

.footer {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
}

.footer strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 1.9rem;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 980px) {
  .nav-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid var(--line);
    background: rgba(7, 7, 7, 0.98);
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.95rem;
  }

  .hero,
  .feature,
  .instagram-grid,
  .section-head,
  .contact-panel,
  .meeting-alert {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 3rem;
  }

  .hero-panel,
  .image-panel {
    min-height: 430px;
  }

  .grid,
  .grid.two,
  .instagram-grid,
  .signal-row,
  .stats {
    grid-template-columns: 1fr;
  }

  .meeting-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .meeting-actions .button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.55rem;
    line-height: 0.98;
  }

  .page,
  .site-header,
  .footer {
    width: min(calc(100vw - 24px), 340px);
    max-width: 340px;
    margin-left: 12px;
    margin-right: 12px;
  }

  .brand strong {
    font-size: 0.84rem;
  }

  .brand small {
    font-size: 0.63rem;
  }

  .actions {
    flex-direction: column;
  }

  .lead,
  .hero-copy {
    width: 100%;
    max-width: 340px;
  }

  .button {
    width: 100%;
  }

  .meeting-alert {
    padding: 1rem;
  }

  .meeting-alert h2 {
    font-size: 1.8rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .belief,
  .pathway-step,
    grid-template-columns: 1fr;
  }

  .meeting-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .meeting-actions .button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.55rem;
    line-height: 0.98;
  }

  .page,
  .site-header,
  .footer {
    width: min(calc(100vw - 24px), 340px);
    max-width: 340px;
    margin-left: 12px;
    margin-right: 12px;
  }

  .brand strong {
    font-size: 0.84rem;
  }

  .brand small {
    font-size: 0.63rem;
  }

  .actions {
    flex-direction: column;
  }

  .lead,
  .hero-copy {
    width: 100%;
    max-width: 340px;
  }

  .button {
    width: 100%;
  }

  .meeting-alert {
    padding: 1rem;
  }

  .meeting-alert h2 {
    font-size: 1.8rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .belief,
  .pathway-step,
  .quote-band,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   NEW PREMIUM FEATURES: VIDEO LOOP, BIBLE TOOLTIPS, CHAPTER FINDER MAP
   ───────────────────────────────────────────────────────────────────────────── */

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
  mix-blend-mode: lighten;
}

/* 1. Live indicator pulse */
.live-indicator-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: var(--brass);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  position: relative;
  box-shadow: 0 0 8px var(--brass);
  animation: pulse-live 1.8s infinite;
}

@keyframes pulse-live {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(198, 161, 91, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(198, 161, 91, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(198, 161, 91, 0);
  }
}

/* 2. Scripture tooltip */
.scripture-link {
  color: var(--brass);
  cursor: pointer;
  font-weight: 700;
  border-bottom: 1px dotted var(--brass);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.scripture-link:hover {
  color: var(--bone);
  border-bottom-color: var(--bone);
}

.scripture-tooltip-box {
  position: absolute;
  z-index: 2000;
  transform: translate(-50%, -100%);
  width: min(90vw, 320px);
  padding: 1.15rem;
  background: rgba(16, 18, 20, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.75);
  pointer-events: none;
  font-size: 0.85rem;
  color: var(--bone);
  transition: opacity 0.2s ease;
}

.scripture-tooltip-box.hidden {
  display: none;
  opacity: 0;
}

.tooltip-header {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.25rem;
}

.tooltip-text {
  font-family: var(--font-devotional);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--bone);
  font-style: italic;
}

.tooltip-text.error {
  color: var(--ember-2);
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.8rem;
}

.tooltip-footer {
  margin-top: 0.6rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-align: right;
}

/* Spinner */
.tooltip-spinner {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 1.5rem 0;
}

.spinner-dot {
  width: 8px;
  height: 8px;
  background: var(--brass);
  border-radius: 50%;
  animation: spinner-bounce 1.4s infinite ease-in-out both;
}

.spinner-dot:nth-child(1) { animation-delay: -0.32s; }
.spinner-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes spinner-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

/* 3. Chapter finder and SVG Map styles */
.chapter-finder-section {
  background: rgba(7, 7, 7, 0.4);
}

.chapter-finder-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: stretch;
  margin-top: 2rem;
}

.map-wrapper {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(16, 18, 20, 0.35);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  min-height: 380px;
}

.map-svg {
  width: 100%;
  height: auto;
  max-width: 500px;
}

.map-bg-land {
  fill: rgba(244, 234, 216, 0.015);
  stroke: rgba(244, 234, 216, 0.05);
  stroke-width: 1;
}

.map-path-lake {
  fill: rgba(7, 7, 7, 0.4);
  stroke: rgba(244, 234, 216, 0.08);
  stroke-width: 1.5;
}

.map-chapter-pin {
  cursor: pointer;
  transition: all 0.3s ease;
}

.pin-circle {
  fill: var(--ember);
  stroke: var(--bone);
  stroke-width: 1.5;
  transition: all 0.3s ease;
}

.pin-pulse {
  fill: var(--ember);
  opacity: 0.4;
  animation: map-pin-pulse 2s infinite;
  transform-origin: center;
}

@keyframes map-pin-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.8); opacity: 0; }
}

.map-chapter-pin:hover .pin-circle,
.map-chapter-pin.active .pin-circle {
  fill: var(--brass);
  stroke: var(--bone);
  r: 9;
}

.map-chapter-pin:hover .pin-pulse,
.map-chapter-pin.active .pin-pulse {
  fill: var(--brass);
}

.map-pin-label {
  font-family: var(--font-display);
  font-size: 13px;
  fill: var(--bone);
  letter-spacing: 0.05em;
  text-anchor: middle;
  pointer-events: none;
}

.chapter-card-display {
  display: flex;
  flex-direction: column;
}

.chapter-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(145deg, rgba(167, 58, 37, 0.1), rgba(198, 161, 91, 0.03)),
    rgba(16, 18, 20, 0.95);
  box-shadow: var(--shadow);
}

.chapter-kicker {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--brass);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  display: block;
}

.chapter-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.chapter-desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.chapter-details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  display: grid;
  gap: 0.6rem;
}

.detail-row {
  display: flex;
  font-size: 0.85rem;
}

.detail-row strong {
  width: 90px;
  flex-shrink: 0;
  color: var(--muted);
}

.detail-row span {
  color: var(--bone);
}

.chapter-actions .button {
  width: 100%;
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .chapter-finder-container {
    grid-template-columns: 1fr;
  }
}

/* 4. Premium Resource Cards */
.resource-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.25rem 1.75rem;
  background: linear-gradient(135deg, rgba(28, 31, 34, 0.7) 0%, rgba(22, 26, 29, 0.9) 100%);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.resource-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--brass);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  border-color: var(--brass);
  box-shadow: 0 20px 40px rgba(198, 161, 91, 0.12);
}

.resource-card:hover::before {
  opacity: 1;
}

.resource-icon-wrapper {
  margin-bottom: 1.25rem;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: rgba(198, 161, 91, 0.08);
  border: 1px solid rgba(198, 161, 91, 0.15);
}

.resource-icon-wrapper svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resource-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass);
  margin-bottom: 0.75rem;
  background: rgba(198, 161, 91, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
}

.resource-title-premium {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--bone);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.resource-desc-premium {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.resource-action-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.resource-card:hover .resource-action-premium {
  color: var(--bone);
}

.resource-action-premium svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.resource-card:hover .resource-action-premium svg {
  transform: translateX(4px);
}

