:root {
  --ink: #08080a;
  --ink-2: #111114;
  --bone: #ece6da;
  --bone-dim: #a9a397;
  --silver: #c7c9cc;
  --amber: #e0a24a;
  --line: rgba(236, 230, 218, 0.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 64px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--serif);
  font-size: clamp(18px, 1.2vw + 12px, 21px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: 0.06em; margin: 0; }
h2 { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.2; }

.eyebrow {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 18px;
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
  background: linear-gradient(to bottom, rgba(8,8,10,.85), rgba(8,8,10,0));
  transition: background .4s;
}
.topbar.solid { background: rgba(8,8,10,.92); backdrop-filter: blur(6px); }
.brand {
  font-family: var(--display); letter-spacing: .2em; text-transform: uppercase;
  font-size: 14px; text-decoration: none;
}
.topbar nav { display: flex; gap: 28px; }
.topbar nav a {
  font-family: var(--display); font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  text-decoration: none; color: var(--bone-dim); transition: color .3s;
}
.topbar nav a:hover { color: var(--bone); }
@media (max-width: 760px) { .topbar nav { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: grid; place-items: center; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(8,8,10,.15) 0%, rgba(8,8,10,.65) 75%),
    linear-gradient(to bottom, rgba(8,8,10,0) 60%, var(--ink) 100%);
}
.hero-text { position: relative; text-align: center; padding: 0 var(--gutter); animation: rise 2s ease-out both .3s; }
.hero h1 {
  font-size: clamp(28px, 7.4vw, 120px);
  letter-spacing: .06em; line-height: 1; white-space: nowrap;
  color: #f6f2ea;
  text-shadow: 0 0 40px rgba(255,255,255,.25);
}
.hero h1 span { color: #0c0c0e; -webkit-text-stroke: 1px rgba(236,230,218,.55); text-shadow: 0 0 30px rgba(0,0,0,.9); }
.tagline { font-style: italic; font-size: clamp(20px, 2.2vw, 30px); color: var(--bone); margin: 18px 0 34px; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  text-decoration: none; color: var(--bone);
  padding: 15px 30px; border: 1px solid rgba(236,230,218,.5);
  background: rgba(8,8,10,.35);
  transition: background .35s, color .35s, border-color .35s;
}
.btn:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

.sound-toggle {
  position: absolute; right: var(--gutter); bottom: 28px;
  font-family: var(--display); font-size: 10px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--bone-dim); background: none; border: 1px solid var(--line); padding: 8px 14px; cursor: pointer;
}
.sound-toggle:hover { color: var(--bone); border-color: rgba(236,230,218,.4); }
.sound-toggle[hidden] { display: none; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; width: 1px; height: 54px;
  background: linear-gradient(var(--bone), transparent);
  animation: drip 2.4s ease-in-out infinite;
}

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes drip { 0%,100% { opacity: .2; transform: scaleY(.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Invocations (opening / closing phrases) ---------- */
.oath { padding: clamp(100px, 15vw, 200px) var(--gutter); text-align: center; }
.oath blockquote { margin: 0 auto; max-width: 820px; position: relative; }
.oath blockquote::before, .oath blockquote::after {
  content: ""; display: block; width: 1px; height: 64px; margin: 0 auto 40px;
  background: linear-gradient(transparent, var(--bone));
}
.oath blockquote::after { margin: 40px auto 0; background: linear-gradient(var(--amber), transparent); }
.oath p {
  margin: 0; font-style: italic; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.45; color: var(--bone);
}
.oath .name {
  font-family: var(--display); font-style: normal; letter-spacing: .08em; font-size: .9em;
  color: #f6f2ea; text-shadow: 0 0 24px rgba(255,255,255,.25);
}
.oath-closing { padding-bottom: clamp(40px, 6vw, 80px); }

/* ---------- Worlds (plates) ---------- */
.worlds-intro { text-align: center; padding: 0 var(--gutter) clamp(50px, 8vw, 90px); }
.plate { position: relative; margin: 0; height: 100svh; min-height: 520px; overflow: hidden; }
.plate img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s ease-out; }
.plate.in img { transform: scale(1); }
.plate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(8,8,10,.85) 0%, rgba(8,8,10,0) 42%),
    linear-gradient(to bottom, var(--ink) 0%, rgba(8,8,10,0) 12%);
}
.plate figcaption {
  position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(36px, 7vh, 80px);
  max-width: min(560px, 80vw);
}
.plate.right figcaption { left: auto; right: var(--gutter); text-align: right; }
.num { display: block; font-family: var(--display); font-size: 12px; letter-spacing: .4em; color: var(--amber); }
.title { display: block; font-family: var(--display); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--bone-dim); margin: 6px 0 12px; }
.plate q { display: block; font-style: italic; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.3; quotes: none; text-shadow: 0 2px 20px rgba(0,0,0,.8); }

@media (max-width: 760px) {
  .plate { height: auto; min-height: 0; margin-bottom: 56px; }
  .plate img { height: auto; aspect-ratio: 16 / 9; transform: none; }
  .plate::after { display: none; }
  .plate figcaption, .plate.right figcaption {
    position: static; max-width: none; text-align: left; padding: 22px var(--gutter) 0;
  }
}

/* ---------- Series ---------- */
.series {
  padding: clamp(110px, 16vw, 200px) var(--gutter);
  text-align: center;
  background: radial-gradient(ellipse at 50% 40%, #17171b 0%, var(--ink) 70%);
}
.series-inner { max-width: 680px; margin: 0 auto; }
.series h2 { margin-bottom: 40px; }
.series p { color: var(--bone-dim); margin: 0 0 40px; }
.series .handle { margin: 20px 0 0; font-style: italic; font-size: .95em; }
.embed { margin-top: 56px; aspect-ratio: 16/9; border: 1px solid var(--line); }
.embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Creator ---------- */
.creator { padding: clamp(80px, 10vw, 130px) var(--gutter); border-top: 1px solid var(--line); }
.creator-inner { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: clamp(28px, 5vw, 60px); }
.creator img { width: 160px; height: 160px; border-radius: 50%; flex: none; box-shadow: 0 0 60px rgba(200,40,40,.12); }
.creator h2 { margin-bottom: 12px; }
.creator p { color: var(--bone-dim); margin: 0 0 18px; }
.link {
  font-family: var(--display); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid var(--amber); padding-bottom: 4px;
}
.link:hover { color: var(--amber); }
@media (max-width: 600px) { .creator-inner { flex-direction: column; text-align: center; } .creator img { width: 130px; height: 130px; } }

footer { padding: 30px var(--gutter) 40px; text-align: center; color: #6c675f; font-size: 14px; border-top: 1px solid var(--line); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.4s ease, transform 1.4s ease; }
.reveal.in { opacity: 1; transform: none; }

:focus-visible { outline: 1px solid var(--amber); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .plate img { transform: none; transition: none; }
  .hero-text, .scroll-cue { animation: none; }
}
