:root {
  --bg: #0d0b10;
  --bg-alt: #141118;
  --surface: #1b1720;
  --line: #2e2734;
  --text: #ece6ef;
  --muted: #a49bab;
  --gold: #8fc0c4;
  --gold-soft: #d6eaec;
  --crimson: #4b2c63;
  --radius: 14px;
  --serif: 'Cinzel', Georgia, serif;
  --body-serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
a { color: var(--gold-soft); text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: .02em; line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 em, h1 em { font-style: normal; color: var(--gold); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.note { margin-top: -.5em; margin-bottom: 2.5em; font-size: .9rem; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: .8em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 1.6em;
  border-radius: 999px;
  font: 600 .95rem var(--sans);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #0d1416; }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-sm { padding: .55em 1.1em; font-size: .85rem; }

/* Age gate */
.age-gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 16px;
  background: radial-gradient(ellipse at center, rgba(40,15,25,.92), rgba(5,4,7,.98));
  backdrop-filter: blur(10px);
}
.age-gate[hidden] { display: none; }
.age-card {
  max-width: 460px; text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.age-card p { color: var(--muted); }
.age-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.crest svg { width: 48px; height: 48px; fill: var(--gold); margin-bottom: 12px; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(16px, calc((100% - 1120px) / 2));
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(13,11,16,.88); backdrop-filter: blur(12px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; color: var(--text); letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; }
.brand svg { width: 26px; height: 26px; fill: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--muted); font-size: .9rem; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

/* Hero */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 120px 16px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 50% 45%, rgba(13,11,16,.55), rgba(13,11,16,.25) 70%),
    linear-gradient(180deg, rgba(13,11,16,.55) 0%, rgba(13,11,16,.35) 50%, var(--bg) 100%),
    url(img/bali.webp) center / cover no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--bg));
}
.hero-inner { position: relative; max-width: 760px; }
.hero h1 { margin: 0 0 .4em; }
.logo { width: min(520px, 80vw); height: auto; margin-inline: auto; filter: drop-shadow(0 8px 30px rgba(0,0,0,.7)); }
.hero .eyebrow { text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.tagline { text-shadow: 0 2px 16px rgba(0,0,0,.9); font-family: var(--body-serif); font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.6rem); color: #d8cfdc; margin-bottom: 2em; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.version { text-shadow: 0 2px 10px rgba(0,0,0,.8); margin-top: 2em; font-size: .85rem; color: var(--muted); }
.version strong { color: var(--gold-soft); }

/* Sections */
.section { padding: clamp(72px, 12vw, 128px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.lead { font-family: var(--body-serif); font-size: 1.45rem; line-height: 1.5; color: #e3dbe7; }
#story p:not(.eyebrow):not(.lead) { color: var(--muted); font-size: 1.05rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 2.5em; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.feature-icon { font-size: 1.6rem; color: var(--gold); margin-bottom: 12px; }

/* Characters */
.characters { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.character { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.character:hover { border-color: var(--gold); transform: translateY(-3px); }
.portrait {
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #2a1d2a, #15111a);
  background-size: cover; background-position: center top;
  display: grid; place-items: center;
  position: relative;
}
.portrait:empty::before { content: attr(data-initial); font-family: var(--serif); font-size: 4rem; color: rgba(143,192,196,.35); }
.character-body { padding: 20px 22px 24px; }
.character-body h3 { margin-bottom: .2em; }
.role { color: var(--gold); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.character-body p:last-child { color: var(--muted); font-size: .95rem; margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; margin-top: 2.5em; }
.shot {
  margin: 0; aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #221a24, #15111a);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--muted); font-size: .85rem;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.shot:hover img { transform: scale(1.04); }

/* Links */
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 2.5em; }
.link-card {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 26px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text);
  transition: border-color .2s, transform .2s;
}
.link-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.link-card.featured { background: linear-gradient(160deg, rgba(125,31,44,.35), var(--surface)); }
.link-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
.link-desc { color: var(--muted); font-size: .9rem; padding-right: 24px; }
.link-arrow { position: absolute; right: 22px; top: 26px; color: var(--gold); font-size: 1.2rem; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { margin-top: 2em; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--gold); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { color: var(--muted); margin: 12px 0 0; }

/* Footer */
.footer { padding: 48px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer p { margin: 0; max-width: 560px; }

/* Mobile */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 60px; left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 12px;
    opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity .2s, transform .2s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a:not(.btn) { padding: 10px 12px; }
  .nav-links .btn { margin-top: 6px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Pre-release */
.link-card.soon { opacity: .6; }
.link-card.soon:hover { border-color: var(--line); transform: none; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: middle; box-shadow: 0 0 0 0 rgba(143,192,196,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(143,192,196,0); } 100% { box-shadow: 0 0 0 0 rgba(143,192,196,0); } }
@media (prefers-reduced-motion: reduce) { .status-dot { animation: none; } }
.tagline { font-size: clamp(1.4rem, 3vw, 1.9rem); }
