@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond12-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond12-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond12-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond08-Italic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #06080e;
  --bg-2: #0c1220;
  --bg-3: #131a2b;
  --gold: #c9a86a;
  --gold-2: #e7d3a4;
  --gold-dim: #8a7346;
  --ink: #eef1f8;
  --muted: #98a1b6;
  --line: rgba(201, 168, 106, 0.22);
  --serif: "EB Garamond", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.sky-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 20% 0%, rgba(56, 84, 148, 0.22), transparent 70%),
    radial-gradient(50% 40% at 85% 15%, rgba(150, 112, 52, 0.16), transparent 70%),
    radial-gradient(70% 50% at 50% 110%, rgba(24, 34, 62, 0.6), transparent 70%);
}

main, .nav, footer { position: relative; z-index: 1; }

a { color: inherit; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(6, 8, 14, 0.92), rgba(6, 8, 14, 0.35) 70%, transparent);
  backdrop-filter: blur(6px);
  z-index: 40;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.28rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  text-decoration: none;
  white-space: nowrap;
}
.brand .mark {
  width: 30px;
  height: 30px;
  flex: none;
}
.nav-links {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold-2); }
.nav .count {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  border: 1px solid var(--line);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
@media (max-width: 720px) {
  .nav-links a.opt { display: none; }
  .brand { font-size: 1.05rem; letter-spacing: 0.1em; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.4rem 4rem;
  position: relative;
}
.kicker {
  font-size: 0.82rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.8rem, 9vw, 6.4rem);
  line-height: 0.98;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fff 10%, var(--gold-2) 60%, var(--gold-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}
.hero .lede {
  max-width: 40rem;
  margin: 1.6rem auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-style: italic;
}
.rotator {
  margin-top: 2.6rem;
  min-height: 5.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.rotator .rv-text {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  color: var(--ink);
  max-width: 46rem;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.rotator .rv-ref {
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.rotator.swap .rv-text { opacity: 0; transform: translateY(10px); }

.cta-row {
  display: flex;
  gap: 1rem;
  margin-top: 2.6rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s var(--ease);
}
.btn:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-2px); }
.btn.solid {
  background: linear-gradient(120deg, var(--gold-2), var(--gold));
  color: #1a1408;
  border-color: transparent;
  font-weight: 700;
}
.btn.solid:hover { color: #1a1408; box-shadow: 0 10px 40px rgba(201, 168, 106, 0.3); }
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(7px); opacity: 0.6; } }

/* ---------- section heads ---------- */
.section { padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 4rem); max-width: 1500px; margin: 0 auto; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.section-head h2 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.02em;
}
.section-head p { color: var(--muted); margin: 0.4rem 0 0; font-style: italic; }
.rule { height: 1px; flex: 1 1 200px; background: linear-gradient(90deg, var(--line), transparent); margin-bottom: 0.6rem; }

.tools { display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; }
.search {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  min-width: 15rem;
  outline: none;
}
.search:focus { border-color: var(--gold); }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s;
}
.chip:hover { color: var(--gold-2); }
.chip.active { background: var(--gold); color: #1a1408; border-color: transparent; }

/* ---------- gallery ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(0.9rem, 2vw, 1.4rem);
}
.card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg-3);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
  animation: rise 0.7s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.card:hover { transform: translateY(-8px) scale(1.012); border-color: var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--ease); }
.card:hover img { transform: scale(1.07); }
.card .veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4, 6, 12, 0.94) 4%, rgba(4, 6, 12, 0.32) 46%, rgba(4, 6, 12, 0.05));
}
.card .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1rem 1.1rem; }
.card .ref {
  font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 0.35rem;
}
.card .ct { font-size: 1.12rem; line-height: 1.2; }
.card .idx {
  position: absolute; top: 0.7rem; left: 0.8rem;
  font-size: 0.72rem; letter-spacing: 0.1em; color: var(--gold);
  background: rgba(4, 6, 12, 0.55); border: 1px solid var(--line);
  padding: 0.12rem 0.5rem; border-radius: 999px;
}
.card .play {
  position: absolute; top: 0.7rem; right: 0.8rem;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--gold); background: rgba(4, 6, 12, 0.5);
  display: grid; place-items: center; opacity: 0; transform: scale(0.8);
  transition: all 0.35s var(--ease); color: var(--gold-2);
}
.card:hover .play { opacity: 1; transform: scale(1); }
.empty { color: var(--muted); font-style: italic; padding: 3rem 0; text-align: center; }

/* ---------- story overlay ---------- */
.story {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(3, 5, 10, 0.86);
  backdrop-filter: blur(14px);
  display: grid;
  grid-template-columns: minmax(280px, 42vh) 1fr;
  gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(1rem, 3vw, 2.6rem);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.story[hidden] { display: none; }
.story.open { opacity: 1; pointer-events: auto; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
}

.stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  align-self: center;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  aspect-ratio: 9 / 16;
  max-height: 88vh;
  justify-self: center;
  width: 100%;
}
.stage img, .stage video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.stage img { opacity: 0; transition: opacity 1s var(--ease); }
.stage img.on { opacity: 1; animation: ken 9s ease-out forwards; }
@keyframes ken { from { transform: scale(1.02); } to { transform: scale(1.14); } }
.stage video { display: none; background: #000; }
.stage.watch img { display: none; }
.stage.watch video { display: block; }
.stage .frame-label {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-2); background: rgba(4, 6, 12, 0.6);
  padding: 0.25rem 0.6rem; border-radius: 999px; border: 1px solid var(--line);
}
@media (max-width: 900px) { .stage { max-height: 52vh; } }

.panel {
  align-self: center;
  max-height: 90vh;
  overflow-y: auto;
  padding-right: 0.4rem;
  scrollbar-width: thin;
}
.panel .ref-big { color: var(--gold); letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.85rem; }
.panel h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 400; margin: 0.4rem 0 0.8rem; line-height: 1.05; }
.scripture {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-style: italic;
  color: var(--gold-2);
  border-left: 2px solid var(--gold-dim);
  padding-left: 1rem;
  margin: 0 0 1.4rem;
}
.controls { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.4rem; }
.icon-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
  color: var(--gold-2); cursor: pointer; display: grid; place-items: center;
  transition: all 0.25s var(--ease);
}
.icon-btn:hover { border-color: var(--gold); background: rgba(201, 168, 106, 0.12); transform: translateY(-2px); }
.icon-btn.primary { background: linear-gradient(120deg, var(--gold-2), var(--gold)); color: #1a1408; border-color: transparent; }
.icon-btn svg { width: 18px; height: 18px; }
.pill {
  font-family: var(--serif); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: 0.55rem 1rem; border-radius: 999px; cursor: pointer; transition: all 0.25s;
}
.pill:hover { color: var(--gold-2); border-color: var(--gold); }
.pill.active { background: var(--gold); color: #1a1408; border-color: transparent; }

.progress { display: flex; gap: 5px; margin: 0 0 1.2rem; }
.progress span { height: 3px; flex: 1; background: rgba(255, 255, 255, 0.1); border-radius: 2px; cursor: pointer; transition: background 0.3s; }
.progress span.done { background: var(--gold-dim); }
.progress span.cur { background: var(--gold-2); }

.story-text { font-size: clamp(1.05rem, 2vw, 1.28rem); color: #d9deea; }
.story-text .beat { margin: 0 0 0.9rem; opacity: 0.42; transition: opacity 0.5s, transform 0.5s; transform: translateX(-4px); }
.story-text .beat.cur { opacity: 1; transform: none; color: #fff; }
.story-text .beat .lab { color: var(--gold); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.18em; display: block; margin-bottom: 0.2rem; }

.story-close {
  position: fixed; top: 1.1rem; right: 1.2rem; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(6, 8, 14, 0.6);
  color: var(--gold-2); cursor: pointer; font-size: 1.3rem;
  display: grid; place-items: center; transition: all 0.25s;
}
.story-close:hover { border-color: var(--gold); transform: rotate(90deg); }

.watch-link { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--line); }
.watch-link:hover { color: var(--gold-2); }

/* ---------- about / footer ---------- */
.about-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.about-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.005));
}
.about-card h3 { color: var(--gold-2); font-weight: 400; margin: 0 0 0.5rem; font-size: 1.25rem; }
.about-card p { color: var(--muted); margin: 0; font-size: 1rem; }
footer {
  text-align: center; padding: 3rem 1rem 4rem; color: var(--muted);
  border-top: 1px solid rgba(201, 168, 106, 0.12); margin-top: 2rem;
}
footer .brand { justify-content: center; margin-bottom: 0.6rem; }
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ---------- full-Bible library ---------- */
.btn.small { font-size: 0.78rem; padding: 0.5rem 1.1rem; letter-spacing: 0.14em; }

.book-grid { display: flex; flex-direction: column; gap: 1.8rem; }
.book-group-title {
  font-size: 0.8rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.9rem;
}
.book-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; }
.book-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  font-family: var(--serif); font-size: 1.02rem; color: var(--ink);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  border-radius: 10px; padding: 0.7rem 0.9rem; cursor: pointer;
  transition: all 0.25s var(--ease); text-align: left;
}
.book-chip:hover {
  border-color: var(--gold); color: var(--gold-2); transform: translateY(-2px);
  background: rgba(201, 168, 106, 0.08);
}
.bc-films {
  font-size: 0.72rem; color: #1a1408; background: var(--gold);
  border-radius: 999px; padding: 0.05rem 0.5rem; font-weight: 700;
}

.reader {
  border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(1rem, 3vw, 1.8rem); background: rgba(255, 255, 255, 0.02);
}
.reader-top { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.reader-title { font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--gold-2); margin: 0 auto; }
.chapter-wrap {
  display: flex; align-items: center; gap: 0.5rem; color: var(--muted);
  font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.chapter-select {
  font-family: var(--serif); font-size: 1rem; color: var(--ink);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: 8px; padding: 0.45rem 0.7rem; outline: none;
}
.chapter-select:focus { border-color: var(--gold); }

.verses { max-width: 900px; margin: 0 auto; }
.verse-row {
  display: grid; grid-template-columns: 2.2rem 1fr auto; gap: 0.4rem 0.9rem;
  align-items: baseline; padding: 0.7rem 0.6rem; border-radius: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.verse-row.cur { background: rgba(201, 168, 106, 0.06); }
.verse-row.flash { animation: hit 1.6s var(--ease); }
@keyframes hit {
  0% { background: rgba(201, 168, 106, 0.45); }
  100% { background: rgba(201, 168, 106, 0.06); }
}
.verse-row.has-film { border-left: 2px solid var(--gold-dim); }
.vnum { color: var(--gold); font-size: 0.82rem; text-align: right; }
.vtext { color: #dde2ee; font-size: clamp(1.02rem, 2vw, 1.22rem); line-height: 1.55; }
.vfilm {
  align-self: center; font-family: var(--serif); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #1a1408;
  background: linear-gradient(120deg, var(--gold-2), var(--gold));
  border: none; border-radius: 999px; padding: 0.4rem 0.9rem; cursor: pointer;
  white-space: nowrap; transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.vfilm:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201, 168, 106, 0.3); }

.lib-results {
  display: flex; flex-direction: column; gap: 0.3rem;
  margin-bottom: 1.6rem; max-height: 60vh; overflow-y: auto;
}
.lib-results-head {
  color: var(--gold); font-size: 0.82rem; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 0.5rem;
}
.lib-hit {
  display: grid; grid-template-columns: 10rem 1fr; gap: 0.8rem; text-align: left;
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.7rem 0.9rem; cursor: pointer; color: inherit; font-family: var(--serif);
  transition: all 0.2s var(--ease);
}
.lib-hit:hover { border-color: var(--gold); background: rgba(201, 168, 106, 0.08); }
.hit-ref { color: var(--gold-2); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hit-text { color: var(--muted); font-size: 1rem; }
@media (max-width: 640px) {
  .lib-hit { grid-template-columns: 1fr; gap: 0.25rem; }
  .verse-row { grid-template-columns: 1.8rem 1fr; }
  .vfilm { grid-column: 2; justify-self: start; }
  .reader-title { margin: 0; }
}
