:root {
  --bg: #0a0704;
  --bg-2: #120c07;
  --blood: #3a0c0a;
  --gold: #c9a24a;
  --gold-soft: #e0c27a;
  --parchment: #e8dcc2;
  --muted: #9c8d73;
  --line: rgba(201, 162, 74, 0.25);
  --display: "Cinzel Decorative", serif;
  --caps: "Cinzel", serif;
  --body: "EB Garamond", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--parchment);
  font: 1.2rem/1.75 var(--body);
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; }
img { max-width: 100%; display: block; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 3rem;
  transition: background .4s, padding .4s;
}
.nav.scrolled { background: rgba(10, 7, 4, .92); padding: .7rem 3rem; border-bottom: 1px solid var(--line); }
.nav-brand { font-family: var(--caps); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-size: .95rem; }
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a { font-family: var(--caps); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--parchment); transition: color .3s; }
.nav-links a:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; color: var(--gold); font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 1.5rem 8rem; position: relative;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(90, 20, 14, .55), transparent 65%),
    radial-gradient(ellipse at 50% 120%, var(--blood), transparent 60%),
    var(--bg);
}
.candle {
  width: 6px; height: 60px; margin-bottom: 1.5rem;
  background: linear-gradient(to top, transparent, var(--gold-soft));
  border-radius: 50%; filter: blur(2px);
  animation: flicker 2.8s infinite ease-in-out;
}
@keyframes flicker { 0%,100% { opacity: .8; transform: scaleY(1); } 45% { opacity: .5; transform: scaleY(.85); } 70% { opacity: 1; transform: scaleY(1.08); } }
.eyebrow { font-family: var(--caps); font-size: .75rem; letter-spacing: .35em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 8vw, 6rem); line-height: 1; color: var(--parchment); text-shadow: 0 0 40px rgba(201, 162, 74, .25); }
.hero-sub { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 4vw, 2.6rem); color: var(--gold); margin-top: .6rem; }
.divider { color: var(--gold); margin: 2rem 0; display: flex; align-items: center; gap: 1rem; }
.divider::before, .divider::after { content: ""; width: 90px; height: 1px; background: linear-gradient(to right, transparent, var(--gold)); }
.divider::after { transform: scaleX(-1); }
.tagline { font-style: italic; font-size: 1.35rem; max-width: 40rem; }
.hero-actions { display: flex; gap: 1.25rem; margin-top: 2.5rem; flex-wrap: wrap; justify-content: center; }
.btn {
  font-family: var(--caps); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  padding: 1rem 2.2rem; border: 1px solid var(--gold); transition: all .3s;
}
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-soft); box-shadow: 0 0 25px rgba(201, 162, 74, .4); }
.btn-ghost { color: var(--gold); }
.btn-ghost:hover { background: rgba(201, 162, 74, .1); }
.descend { position: absolute; bottom: 2rem; font-family: var(--caps); font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.descend span { width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); animation: drip 2s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Sections */
.section { padding: 8rem 1.5rem; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.container { max-width: 1100px; margin: 0 auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.kicker { font-family: var(--caps); font-size: .75rem; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.section-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4.5vw, 3.2rem); line-height: 1.15; margin-bottom: 2rem; }
.story .kicker, .story .section-title, .story .intro,
.characters .kicker, .characters .section-title,
.videos .kicker, .videos .section-title, .videos .intro { text-align: center; }
.intro { font-style: italic; color: var(--muted); max-width: 40rem; margin: 0 auto 4rem; }
.gold { color: var(--gold); }

.world { background: linear-gradient(var(--bg), var(--bg-2)); }
.world p { margin-bottom: 1.4rem; }
.world em { color: var(--gold-soft); }
blockquote {
  margin-top: 3rem; padding: 2rem 2.5rem; border-left: 2px solid var(--gold);
  background: rgba(58, 12, 10, .25); font-style: italic; font-size: 1.35rem;
}
blockquote cite { display: block; margin-top: 1rem; font-family: var(--caps); font-style: normal; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* Timeline */
.timeline { list-style: none; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline li { width: 50%; padding: 0 3.5rem 4rem; position: relative; }
.timeline li:nth-child(odd) { text-align: right; }
.timeline li:nth-child(even) { margin-left: 50%; }
.timeline li::after {
  content: ""; position: absolute; top: .55rem; width: 11px; height: 11px;
  background: var(--bg); border: 1px solid var(--gold); transform: rotate(45deg);
}
.timeline li:nth-child(odd)::after { right: -6px; }
.timeline li:nth-child(even)::after { left: -6px; }
.chapter-num { font-family: var(--display); color: var(--gold); opacity: .5; font-size: 1.1rem; }
.timeline h3 { font-family: var(--caps); font-size: 1.05rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); margin: .2rem 0 .6rem; }
.timeline p { color: var(--muted); font-size: 1.1rem; }

/* Characters */
.characters { background: radial-gradient(ellipse at 50% 0%, rgba(58, 12, 10, .4), transparent 70%), var(--bg); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem; }
.card { border: 1px solid var(--line); background: var(--bg-2); padding-bottom: 1.8rem; transition: transform .4s, border-color .4s; }
.card:hover { transform: translateY(-6px); border-color: var(--gold); }
.portrait { aspect-ratio: 3 / 4; overflow: hidden; background: linear-gradient(160deg, var(--blood), var(--bg)); display: grid; place-items: center; margin-bottom: 1.4rem; }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.25) contrast(1.05); transition: transform .6s; }
.card:hover .portrait img { transform: scale(1.05); }
.initial { font-family: var(--display); font-size: 5rem; color: var(--gold); opacity: .35; }
.card h3, .card p { padding: 0 1.4rem; }
.card h3 { font-family: var(--display); font-size: 1.4rem; }
.role { font-family: var(--caps); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: .3rem 0 .9rem; }
.card p:last-child { font-size: 1.05rem; color: var(--muted); }

/* Videos */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.video.featured { grid-column: 1 / -1; }
.video-thumb, .video iframe { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #000; display: block; cursor: pointer; padding: 0; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .3s; }
.video-thumb:hover img { opacity: 1; }
.play { position: absolute; inset: 0; margin: auto; width: 70px; height: 70px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-size: 1.4rem; background: rgba(10, 7, 4, .6); }
figcaption { margin-top: .9rem; font-size: 1.1rem; }
figcaption .label { display: block; font-family: var(--caps); font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); }

/* Join + footer */
.join { background: radial-gradient(ellipse at 50% 100%, var(--blood), transparent 70%), var(--bg); }
.join .intro { margin-bottom: 2.5rem; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 2rem 3rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.footer a { font-family: var(--caps); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Mobile */
@media (max-width: 800px) {
  .nav, .nav.scrolled { padding: 1rem 1.25rem; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(10, 7, 4, .97); border-bottom: 1px solid var(--line); }
  .menu-open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 1rem 1.25rem; }
  .section { padding: 5rem 1rem; }
  .timeline::before { left: 6px; }
  .timeline li, .timeline li:nth-child(even) { width: 100%; margin-left: 0; text-align: left; padding: 0 0 3rem 2.5rem; }
  .timeline li:nth-child(odd)::after, .timeline li:nth-child(even)::after { left: 0; right: auto; }
  .video-grid { grid-template-columns: 1fr; }
  .footer { padding: 2rem 1rem; justify-content: center; text-align: center; }
}

/* Imported artwork */
.sigil { width: 90px; margin-bottom: 1.5rem; color: var(--gold); }
.sigil svg { width: 100%; height: auto; }
.world-illustration { margin: 3rem auto 0; max-width: 420px; color: var(--gold); }
.world-illustration svg { width: 100%; height: auto; }
