/* Shackleborne — site v3 "cinematic". Stone, bronze, ember; the rift is the only cold light.
   Layout: full-bleed sections edge to edge; only text is held to a reading measure. */
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --void: #0b0b09;       /* deepest night */
  --ink: #12130f;        /* shadow under the canopy */
  --stone: #1a1b16;      /* panel stone */
  --stone-2: #24251e;    /* raised stone */
  --line: rgba(205, 162, 102, .22); /* chisel line */
  --bone: #efe6d2;       /* text */
  --ash: #b3ab98;        /* secondary text */
  --bronze: #cda266;
  --bronze-hi: #ecc98c;
  --bronze-lo: #8d6a3a;
  --ember: #f08a3e;      /* torchlight */
  --ember-glow: rgba(240, 138, 62, .35);
  --rift: #b884ff;       /* the rift: the only cold light */
  --rift-glow: rgba(160, 100, 255, .45);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --text: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --measure: 40rem;      /* reading width */
  --wide: 92rem;         /* grids of cards */
  --gutter: clamp(1rem, 4.5vw, 4rem);
  --header-h: 4.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); background: var(--void); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font: 400 1.15rem/1.65 var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe, canvas { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--bronze-hi); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: #fff3d8; }
:focus-visible { outline: 2px solid var(--bronze-hi); outline-offset: 3px; border-radius: 2px; }
::selection { background: #5b4426; color: #fff; }
html.nav-open { overflow: hidden; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--bone); color: var(--ink); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }

/* ---------- Containers: only text is held to a measure ---------- */
.measure { width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter)); padding-inline: var(--gutter); }
.measure.center { margin-inline: auto; text-align: center; }
.wide { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.bleed { width: 100%; }

/* ---------- Type ---------- */
h1, h2, .display { font-family: var(--display); font-weight: 600; letter-spacing: .02em; line-height: 1.08; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7.2vw, 6.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.9rem); }
h3 { font: 600 clamp(1.3rem, 2vw, 1.65rem)/1.2 var(--display); letter-spacing: .02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.55; color: #f6eedd; }
.muted { color: var(--ash); }
.small { font-size: .95rem; }
.kicker {
  display: inline-flex; align-items: center; gap: .8em;
  font: 600 .8rem/1.2 var(--display); letter-spacing: .28em; text-transform: uppercase;
  color: var(--bronze-hi); margin: 0 0 1.3rem;
}
.kicker::before { content: ""; width: 2.6rem; height: 1px; background: linear-gradient(90deg, transparent, var(--bronze)); }
.center .kicker::after { content: ""; width: 2.6rem; height: 1px; background: linear-gradient(90deg, var(--bronze), transparent); }
.kicker.rift { color: #d9bbff; }
.kicker.rift::before { background: linear-gradient(90deg, transparent, var(--rift)); }

.ornament { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 2.4rem auto; color: var(--bronze); }
.ornament::before, .ornament::after { content: ""; flex: 0 1 9rem; height: 1px; background: linear-gradient(90deg, transparent, var(--bronze-lo)); }
.ornament::after { transform: scaleX(-1); }
.ornament span { width: .65rem; height: .65rem; transform: rotate(45deg); border: 1px solid var(--bronze); box-shadow: 0 0 14px var(--rift-glow); background: rgba(184, 132, 255, .25); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 3.2rem; padding: .8rem 1.6rem;
  font: 600 .92rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  border-radius: 2px; border: 1px solid rgba(205, 162, 102, .55); color: var(--bone);
  background: rgba(12, 12, 10, .45);
  backdrop-filter: blur(4px);
  transition: background-color .2s, border-color .2s, box-shadow .25s, color .2s, transform .2s var(--ease);
}
.btn:hover { color: #fff; border-color: var(--bronze-hi); background: rgba(40, 32, 20, .7); }
.btn-primary {
  color: #1b1208; border-color: #f2d59e #b48443 #8d6a3a;
  background: linear-gradient(180deg, #f3d494 0%, #d9ac60 50%, #b8873f 100%);
  box-shadow: 0 1px 0 rgba(255, 238, 200, .45) inset, 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 0 var(--ember-glow);
}
.btn-primary:hover { color: #120b03; background: linear-gradient(180deg, #fadfa6 0%, #e3b86d 50%, #c39048 100%); box-shadow: 0 1px 0 rgba(255, 238, 200, .5) inset, 0 12px 34px rgba(0, 0, 0, .5), 0 0 28px 2px var(--ember-glow); transform: translateY(-1px); }
.btn-small { min-height: 2.5rem; padding: .55rem 1.05rem; font-size: .78rem; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; margin-top: 2rem; }
.center .actions { justify-content: center; }
.link-more { display: inline-flex; align-items: center; gap: .5em; font: 600 .85rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding-block: .4rem; border-bottom: 1px solid rgba(205, 162, 102, .4); }
.link-more:hover { border-color: var(--bronze-hi); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(8, 8, 6, .75), rgba(8, 8, 6, 0));
}
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: rgba(11, 11, 9, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: opacity .35s; }
.site-header.scrolled { background: transparent; border-bottom-color: var(--line); }
.site-header.scrolled::before { opacity: 1; }
.bar { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--bone); text-decoration: none; font: 600 1.08rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.brand img { width: 30px; height: 30px; filter: drop-shadow(0 0 8px var(--rift-glow)); }
.brand:hover { color: #fff; }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.2rem); }
.nav a:not(.btn) {
  position: relative; color: #e2d8c2; text-decoration: none;
  font: 600 .78rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; padding-block: .6rem;
}
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 1px; background: var(--bronze-hi); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav a:not(.btn):hover { color: #fff; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--bronze-hi); }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: .6rem; margin-left: auto; z-index: 2;
    min-height: 2.75rem; padding: .4rem .9rem; border: 1px solid rgba(205, 162, 102, .5); border-radius: 2px;
    background: rgba(12, 12, 10, .55); color: var(--bone); font: 600 .78rem/1 var(--display); letter-spacing: .18em; text-transform: uppercase; cursor: pointer;
  }
  .menu-toggle .bars { position: relative; width: 18px; height: 10px; }
  .menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .25s var(--ease), top .25s; }
  .menu-toggle .bars::before { top: 0; }
  .menu-toggle .bars::after { top: 8px; }
  .menu-toggle[aria-expanded="true"] .bars::before { top: 4px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars::after { top: 4px; transform: rotate(-45deg); }
  .js .nav {
    position: fixed; inset: 0; z-index: 1; margin: 0;
    flex-direction: column; justify-content: center; align-items: center; gap: 1.6rem;
    background: radial-gradient(ellipse at 50% 30%, rgba(80, 50, 120, .35), transparent 60%), #0a0a08;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .js .nav.open { opacity: 1; visibility: visible; }
  .js .nav a:not(.btn) { font-size: 1.15rem; letter-spacing: .22em; }
  .js .nav .btn { margin-top: 1rem; }
  html:not(.js) .bar { flex-wrap: wrap; padding-block: .8rem; }
  html:not(.js) .nav { flex-wrap: wrap; gap: .4rem 1.2rem; margin-left: 0; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: end;
  padding: calc(var(--header-h) + 3rem) 0 clamp(5rem, 13vh, 9rem);
}
.hero-media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 45%; transform: translate3d(0, var(--py, 0px), 0) scale(1.08); will-change: transform; }
.js .hero-media img { animation: hero-in 2.4s var(--ease) both; }
@keyframes hero-in { from { opacity: 0; filter: brightness(.4) saturate(.6); } to { opacity: 1; filter: none; } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 8, 6, .82) 0%, rgba(8, 8, 6, .45) 38%, rgba(8, 8, 6, 0) 65%),
    linear-gradient(0deg, var(--void) 0%, rgba(11, 11, 9, .55) 22%, rgba(11, 11, 9, 0) 50%),
    radial-gradient(ellipse at 50% 120%, rgba(0, 0, 0, .6), transparent 60%);
}
.embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-copy { max-width: 46rem; }
.hero .wordmark { width: min(46rem, 88vw); height: auto; margin: 0 0 1.4rem -0.4rem; filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .7)) drop-shadow(0 0 40px rgba(150, 90, 255, .25)); }
.hero h1 { margin: 0; line-height: 0; }
.tagline { font: 600 clamp(1.35rem, 2.7vw, 2.15rem)/1.25 var(--display); letter-spacing: .02em; margin: 0 0 1rem; color: #fff6e3; text-wrap: balance; text-shadow: 0 2px 20px rgba(0, 0, 0, .8); }
.hero .pitch { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 36rem; color: #ece2cb; text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
.facts { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: 2rem 0 0; padding: 0; list-style: none; color: var(--ash); font: 600 .74rem/1.4 var(--display); letter-spacing: .2em; text-transform: uppercase; }
.facts li { display: inline-flex; align-items: center; gap: .6rem; }
.facts li::before { content: ""; width: .4rem; height: .4rem; transform: rotate(45deg); background: var(--rift); box-shadow: 0 0 10px var(--rift); }
.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; width: 1px; height: 3.4rem; background: linear-gradient(180deg, transparent, rgba(236, 201, 140, .7)); transform: translateX(-50%); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: -1px; width: 3px; height: 1rem; background: var(--bronze-hi); box-shadow: 0 0 10px var(--ember); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { from { top: -1rem; } to { top: 3.4rem; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 82vh; min-height: 82svh; display: grid; align-items: end;
  padding: calc(var(--header-h) + 4rem) 0 clamp(4rem, 10vh, 7rem);
}
.page-hero.short { min-height: 56vh; min-height: 56svh; }
.page-hero .hero-media img { object-position: 50% 50%; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(0deg, var(--void) 0%, rgba(11, 11, 9, .6) 30%, rgba(11, 11, 9, .15) 65%, rgba(8, 8, 6, .6) 100%),
    linear-gradient(90deg, rgba(8, 8, 6, .7) 0%, rgba(8, 8, 6, 0) 70%);
}
.page-hero h1 { text-shadow: 0 4px 40px rgba(0, 0, 0, .7); }
.page-hero .lead { max-width: 38rem; text-shadow: 0 1px 14px rgba(0, 0, 0, .9); }
.page-hero.plain { background: radial-gradient(ellipse at 70% 0%, rgba(120, 70, 200, .22), transparent 55%), radial-gradient(ellipse at 10% 100%, rgba(240, 138, 62, .1), transparent 50%), var(--void); }
.page-hero.plain::before { display: none; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(5rem, 12vw, 10rem); }
.section.tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--ash); }

/* Statement */
.statement { text-align: center; background: radial-gradient(ellipse 60% 55% at 50% 55%, rgba(120, 70, 200, .13), transparent 70%), var(--void); }
.statement .big { font: 600 clamp(1.8rem, 4.2vw, 3.5rem)/1.18 var(--display); letter-spacing: .015em; margin: 0 auto 1.6rem; max-width: 22ch; text-wrap: balance; }
.statement .big em { font-style: normal; color: var(--bronze-hi); }
.statement p:not(.big) { max-width: 38rem; margin-inline: auto; color: var(--ash); font-size: clamp(1.1rem, 1.6vw, 1.3rem); }

/* Duel: two halves edge to edge, a rift down the seam */
.duel { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 92vh; min-height: 92svh; background: var(--void); }
.duel::after { content: ""; position: absolute; top: 6%; bottom: 6%; left: 50%; width: 2px; transform: translateX(-50%); background: linear-gradient(180deg, transparent, var(--rift) 20%, #f5e8ff 50%, var(--rift) 80%, transparent); box-shadow: 0 0 18px 3px var(--rift-glow), 0 0 60px 8px rgba(140, 80, 255, .25); z-index: 2; pointer-events: none; }
.duel-side { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; padding: clamp(2rem, 5vw, 5rem); min-height: 70vh; }
.duel-side > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease), filter 1.2s; filter: saturate(.85) brightness(.85); }
.duel-side:hover > img { transform: scale(1.1); filter: saturate(1) brightness(1); }
.duel-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 8, 6, .95) 0%, rgba(8, 8, 6, .55) 40%, rgba(8, 8, 6, .1) 75%); }
.duel-side .copy { max-width: 30rem; }
.duel-side h3 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.1; }
.duel-side p { color: #e5dcc7; }
.duel-side.hunters .kicker { color: #ffb27a; }
.duel-side.hunters .kicker::before { background: linear-gradient(90deg, transparent, var(--ember)); }
.duel-foot { position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); z-index: 3; }

/* Bloodlines: four race columns, full width */
.bloodlines { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.bloodline {
  --tint: rgba(110, 140, 200, .35);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center;
  min-height: min(82vh, 52rem); padding: 2rem 1.2rem 2.6rem;
  color: var(--bone); text-decoration: none;
  background: radial-gradient(ellipse at 50% 62%, var(--tint), transparent 62%), linear-gradient(180deg, #0e0e0b 0%, #15160f 100%);
  border-right: 1px solid var(--line);
}
.bloodline:last-child { border-right: 0; }
.bloodline::before { content: ""; position: absolute; left: 50%; bottom: 7.5rem; width: 70%; height: 2.2rem; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, .75), transparent 70%); z-index: -1; }
.bloodline img { width: auto; max-width: 92%; height: clamp(15rem, 44vh, 28rem); object-fit: contain; margin: auto auto 1.6rem; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .7)); transition: transform .8s var(--ease), filter .8s; }
.bloodline:hover img, .bloodline:focus-visible img { transform: translateY(-10px) scale(1.03); filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .75)) drop-shadow(0 0 30px var(--tint)); }
.bloodline h3 { margin: 0 0 .35rem; font-size: clamp(1.15rem, 1.7vw, 1.55rem); }
.bloodline .epithet { margin: 0; color: var(--ash); font-style: italic; }
.bloodline.dawnmere { --tint: rgba(90, 130, 210, .38); }
.bloodline.varkh { --tint: rgba(200, 70, 40, .38); }
.bloodline.crabshell { --tint: rgba(70, 160, 150, .32); }
.bloodline.hollow { --tint: rgba(150, 90, 255, .4); }

/* Band: full-bleed image with copy */
.band { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: 92vh; min-height: 92svh; padding-block: clamp(5rem, 10vw, 8rem); }
.band > .media { position: absolute; inset: -8% 0; z-index: -2; }
.band > .media img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 8, 6, .88) 0%, rgba(8, 8, 6, .55) 40%, rgba(8, 8, 6, .05) 75%), linear-gradient(0deg, var(--void) 0%, transparent 18%, transparent 82%, var(--void) 100%); }
.band.right::before { background: linear-gradient(270deg, rgba(8, 8, 6, .88) 0%, rgba(8, 8, 6, .55) 40%, rgba(8, 8, 6, .05) 75%), linear-gradient(0deg, var(--void) 0%, transparent 18%, transparent 82%, var(--void) 100%); }
.band.right .measure { margin-left: auto; }
.band .lead { text-shadow: 0 1px 14px rgba(0, 0, 0, .9); }
.band .tag { display: inline-block; margin-top: .4rem; font: 600 .72rem/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--ash); }

/* Status pills */
.status { display: inline-flex; align-items: center; gap: .5rem; font: 600 .7rem/1 var(--display); letter-spacing: .18em; text-transform: uppercase; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 2px; background: rgba(10, 10, 8, .6); color: var(--bone); }
.status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status.live { color: #9be3a2; }
.status.prod { color: #f3b26f; }
.status.test { color: #d2b0ff; }
.status.planned { color: #b9b2a2; }

/* Cards (modes overview) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.8rem); }
.card { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--stone-2), var(--stone)); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; color: var(--bone); text-decoration: none; transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.card:hover, .card:focus-visible { transform: translateY(-6px); border-color: rgba(236, 201, 140, .55); box-shadow: 0 24px 50px rgba(0, 0, 0, .55), 0 0 40px rgba(150, 90, 255, .12); }
.card figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover figure img { transform: scale(1.06); }
.card figure .status { position: absolute; left: 1rem; top: 1rem; }
.card .body { padding: 1.5rem 1.5rem 1.8rem; }
.card .body p { color: var(--ash); margin: 0; }
.card .sub { display: block; font: 600 .72rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); margin-bottom: .6rem; }

/* Chapters: half image edge to edge, half text */
.chapter { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; min-height: 86vh; background: var(--void); }
.chapter + .chapter { border-top: 1px solid rgba(205, 162, 102, .1); }
.chapter .media { position: relative; align-self: stretch; min-height: 60vh; overflow: hidden; }
.chapter .media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); }
.chapter .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--void) 100%); }
.chapter.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.chapter.flip .media { order: 2; }
.chapter.flip .media::after { background: linear-gradient(270deg, transparent 60%, var(--void) 100%); }
.chapter .copy { padding: clamp(3rem, 6vw, 6rem) var(--gutter); max-width: calc(var(--measure) + 2 * var(--gutter)); }
.chapter .num { display: block; font: 600 clamp(3.5rem, 7vw, 6rem)/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(205, 162, 102, .5); margin-bottom: .6rem; }
.chapter h2 { font-size: clamp(2rem, 3.8vw, 3.3rem); }
.chapter p { color: #e2d9c4; font-size: clamp(1.1rem, 1.5vw, 1.25rem); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: clamp(2rem, 4vw, 3.5rem) clamp(1.2rem, 3vw, 3rem); border-right: 1px solid var(--line); }
.pillar:last-child { border-right: 0; }
.pillar p { color: var(--ash); margin: 0; }
.pillar .glyph { width: 2.6rem; height: 2.6rem; margin-bottom: 1.4rem; color: var(--bronze); }

/* Race panels (races page) */
.race-panel { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; min-height: 92vh; min-height: 92svh; padding-block: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--line); background: radial-gradient(ellipse at 30% 60%, var(--tint), transparent 55%), linear-gradient(180deg, #0c0c0a, #14150f); }
.race-panel.flip { background: radial-gradient(ellipse at 70% 60%, var(--tint), transparent 55%), linear-gradient(180deg, #0c0c0a, #14150f); }
.race-panel .figures { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(.5rem, 3vw, 3rem); padding-inline: var(--gutter); min-height: 26rem; }
.race-panel .figures::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: -.6rem; height: 3rem; border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, .8), transparent 70%); z-index: -1; }
.race-panel .figures img { height: clamp(18rem, 58vh, 34rem); width: auto; max-width: 60%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .75)); }
.race-panel .figures img.second { height: clamp(13rem, 42vh, 25rem); opacity: .9; max-width: 40%; }
.race-panel .copy { padding-inline: var(--gutter); max-width: calc(var(--measure) + 2 * var(--gutter)); }
.race-panel.flip .figures { order: 2; }
.race-panel h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
.race-panel .epithet { font: 600 clamp(1.05rem, 1.6vw, 1.3rem)/1.3 var(--display); color: var(--accent); letter-spacing: .06em; margin-bottom: 1.4rem; }
.race-panel p { color: #e2d9c4; font-size: clamp(1.1rem, 1.5vw, 1.25rem); }
.race-panel .sigil { position: absolute; z-index: -1; right: -6vw; top: 50%; transform: translateY(-50%); font: 600 clamp(12rem, 30vw, 28rem)/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .045); pointer-events: none; user-select: none; }
.race-panel.flip .sigil { right: auto; left: -6vw; }
.race-panel.dawnmere { --tint: rgba(80, 120, 210, .3); --accent: #a9c4ff; }
.race-panel.varkh { --tint: rgba(200, 60, 30, .3); --accent: #ff9f72; }
.race-panel.crabshell { --tint: rgba(60, 160, 150, .26); --accent: #8fe0d4; }
.race-panel.hollow { --tint: rgba(150, 90, 255, .32); --accent: #d2b0ff; }

/* Hours strip (world page): the same land at five moments */
.hours { display: flex; height: min(80vh, 46rem); gap: 2px; background: var(--void); }
.hour { position: relative; flex: 1; overflow: hidden; margin: 0; transition: flex 1s var(--ease); min-width: 0; }
.hour img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.7) saturate(.8); transition: filter .8s, transform 1.4s var(--ease); }
.hour:hover, .hour:focus-within { flex: 2.4; }
.hour:hover img { filter: none; transform: scale(1.03); }
.hour figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 4rem 1.2rem 1.4rem; background: linear-gradient(0deg, rgba(8, 8, 6, .92), transparent); font: 600 .82rem/1.3 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--bone); }
.hour figcaption span { display: block; margin-top: .4rem; font: 400 1rem/1.4 var(--text); letter-spacing: 0; text-transform: none; color: var(--ash); max-width: 22rem; opacity: 0; transform: translateY(8px); transition: opacity .5s .15s, transform .5s .15s var(--ease); }
.hour:hover figcaption span { opacity: 1; transform: none; }

/* Duo of facts with image (world page) */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.frame { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .55); }
.frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 80px rgba(0, 0, 0, .55); pointer-events: none; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* FAQ */
.faq { display: grid; gap: .8rem; max-width: 52rem; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: 3px; background: linear-gradient(180deg, rgba(36, 37, 30, .7), rgba(26, 27, 22, .7)); transition: border-color .3s, background-color .3s; }
.faq details[open] { border-color: rgba(236, 201, 140, .45); background: linear-gradient(180deg, rgba(44, 40, 30, .85), rgba(26, 27, 22, .85)); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 1.5rem; font: 600 clamp(1.02rem, 1.5vw, 1.2rem)/1.35 var(--display); letter-spacing: .02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: .7rem; height: .7rem; border-right: 1.5px solid var(--bronze-hi); border-bottom: 1.5px solid var(--bronze-hi); transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: #fff; }
.faq .answer { padding: 0 1.5rem 1.4rem; color: #ddd3bd; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Roadmap timeline */
.timeline { position: relative; max-width: 52rem; margin: 0 auto; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: .55rem; top: .6rem; bottom: .6rem; width: 1px; background: linear-gradient(180deg, var(--rift), var(--bronze) 30%, var(--bronze-lo) 85%, transparent); }
.timeline li { position: relative; padding: 0 0 3rem 3rem; }
.timeline li::before { content: ""; position: absolute; left: .1rem; top: .45rem; width: .9rem; height: .9rem; transform: rotate(45deg); border: 1px solid var(--bronze); background: var(--void); }
.timeline li.now::before { background: var(--rift); border-color: #e6d4ff; box-shadow: 0 0 16px var(--rift); }
.timeline .when { display: block; font: 600 .74rem/1.2 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); margin-bottom: .4rem; }
.timeline h3 { margin-bottom: .5rem; }
.timeline ul { margin: 0; padding-left: 1.1rem; color: #ddd3bd; }
.timeline ul li { padding: 0 0 .3rem; }
.timeline ul li::before { display: none; }

/* Explore tiles (cross-links) */
.explore { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--void); }
.tile { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 52vh; padding: clamp(1.5rem, 3vw, 2.5rem); color: var(--bone); text-decoration: none; }
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); transition: transform 1.2s var(--ease), filter .6s; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 8, 6, .9), transparent 60%); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); filter: brightness(.95); }
.tile h3 { margin: 0 0 .3rem; font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.tile p { margin: 0; color: var(--ash); }

/* ---------- Waitlist call ---------- */
.call { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(6rem, 12vw, 10rem); }
.call > .media { position: absolute; inset: 0; z-index: -2; }
.call > .media img { width: 100%; height: 100%; object-fit: cover; }
.call::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 8, 6, .85) 0%, rgba(8, 8, 6, .2) 45%, rgba(8, 8, 6, .2) 70%, var(--void) 100%), linear-gradient(90deg, rgba(8, 8, 6, .7), rgba(8, 8, 6, .05) 70%); }
.call-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.call h2 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); }
.call .lead { max-width: 34rem; }
.plate {
  position: relative; padding: clamp(1.6rem, 3vw, 2.4rem);
  background: linear-gradient(180deg, rgba(36, 34, 26, .82), rgba(18, 18, 14, .88));
  border: 1px solid rgba(205, 162, 102, .38); border-radius: 3px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .5) inset;
  backdrop-filter: blur(10px);
}
.plate::before, .plate::after { content: ""; position: absolute; width: 1.2rem; height: 1.2rem; border-color: var(--bronze-hi); border-style: solid; }
.plate::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; }
.plate::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }
.plate h3 { font-size: 1.35rem; }
.form { display: grid; gap: .55rem; margin-top: 1.2rem; }
.form label { font-weight: 700; font-size: 1rem; }
.form input[type="email"] {
  width: 100%; min-height: 3.2rem; padding: .7rem .95rem;
  font: 400 1.1rem/1.3 var(--text); color: var(--bone);
  background: rgba(8, 8, 6, .75); border: 1px solid #5a523e; border-radius: 2px;
  transition: border-color .2s, box-shadow .2s;
}
.form input[type="email"]:focus { outline: none; border-color: var(--bronze-hi); box-shadow: 0 0 0 3px rgba(236, 201, 140, .22); }
.form input[aria-invalid="true"] { border-color: #e77b62; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-weight: 400 !important; font-size: .98rem !important; color: #ddd3bd; margin-top: .6rem; }
.check input { width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; accent-color: var(--bronze); }
.form .btn { margin-top: .9rem; width: 100%; }
.error { color: #ffab95; font-size: .95rem; margin: 0; }
.form-status { min-height: 1.5em; margin: .3rem 0 0; font-size: .98rem; }
.form-status.success { color: #a8e6ad; }
.form-status.error { color: #ffab95; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: #090907; border-top: 1px solid var(--line); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; font-size: 1rem; }
.site-footer::before { content: ""; position: absolute; left: 50%; top: -1px; width: min(30rem, 60%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--rift), transparent); box-shadow: 0 0 14px var(--rift-glow); }
.foot { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; }
.foot h2 { font: 600 .74rem/1.2 var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--bronze); margin: .4rem 0 1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot a:not(.brand) { color: #d9cfb8; text-decoration: none; }
.foot a:not(.brand):hover { color: #fff; text-decoration: underline; }
.foot .small { color: var(--ash); max-width: 24rem; margin-top: 1rem; }
.fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(205, 162, 102, .12); color: #8f887a; font-size: .9rem; }
.fine p { margin: 0; }
.fine a { color: #b3ab98; }

/* ---------- Prose pages (privacy, legal, press) ---------- */
.wrap { width: 100%; max-width: calc(76rem + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(var(--measure) + 6rem); }
.page-hero .narrow { padding-inline: 0; }
.policy { margin-inline: auto; }
.policy h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(205, 162, 102, .14); }
.policy h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.policy ul { padding-left: 1.2rem; }
.policy li { margin-bottom: .6rem; color: #ddd3bd; }
.policy p { color: #ddd3bd; }
.policy code { font-size: .9em; background: var(--stone-2); padding: .1em .35em; border-radius: 2px; }
.split.top { align-items: start; }
.h-sub { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.h-sub.spaced { margin-top: 2rem; }
.after { margin-top: 1.6rem; }
.rule { border: 0; height: 1px; margin: 0; background: linear-gradient(90deg, transparent, rgba(205, 162, 102, .3), transparent); }
.facts-table { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.4rem; margin: 0; }
.facts-table dt { font: 600 .74rem/1.9 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); }
.facts-table dd { margin: 0; color: #ddd3bd; }
.logo-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.logo-row a { display: grid; place-items: center; padding: 1.4rem; border: 1px solid var(--line); border-radius: 3px; }
.logo-row a.dark { background: #0d0d0b; }
.logo-row a.light { background: #ece4d2; }
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .8rem; }
.downloads a { display: grid; gap: .2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; background: var(--stone); transition: border-color .2s; }
.downloads a:hover { border-color: var(--bronze); }
.downloads span { color: var(--ash); font-size: .92rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.2rem; }
.gallery a { display: grid; gap: .6rem; color: #d9cfb8; text-decoration: none; font-size: .95rem; }
.gallery img { border: 1px solid var(--line); border-radius: 3px; transition: border-color .2s, transform .4s var(--ease); }
.gallery a:hover img { border-color: var(--bronze); transform: translateY(-3px); }
.note { color: #8f887a; font-size: .92rem; font-style: italic; }

/* ---------- Reveal on scroll (only when JS runs and motion is welcome) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
  .js .reveal.d1 { transition-delay: .12s; }
  .js .reveal.d2 { transition-delay: .24s; }
  .js .reveal.d3 { transition-delay: .36s; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-media img, .band > .media img, .chapter .media img { transform: none !important; }
  .scroll-cue { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bloodlines { grid-template-columns: repeat(2, 1fr); }
  .bloodline { min-height: 34rem; border-bottom: 1px solid var(--line); }
  .bloodline:nth-child(2n) { border-right: 0; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .duel { grid-template-columns: 1fr; }
  .duel::after { top: 50%; bottom: auto; left: 6%; right: 6%; width: auto; height: 2px; transform: none; background: linear-gradient(90deg, transparent, var(--rift) 20%, #f5e8ff 50%, var(--rift) 80%, transparent); }
  .duel-side { min-height: 78vh; }
  .duel-foot { position: static; transform: none; grid-column: 1; text-align: center; padding: 2rem 0 0; }
  .cards, .pillars, .explore { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); }
  .chapter, .chapter.flip { grid-template-columns: 1fr; min-height: 0; }
  .chapter .media, .chapter.flip .media { order: 0; min-height: 56vh; }
  .chapter .media::after, .chapter.flip .media::after { background: linear-gradient(0deg, var(--void) 0%, transparent 45%); }
  .chapter .copy { padding-top: 0; margin-top: -4rem; position: relative; }
  .race-panel, .race-panel.flip { grid-template-columns: 1fr; min-height: 0; gap: 2.5rem; }
  .race-panel.flip .figures { order: 0; }
  .race-panel .figures { min-height: 0; }
  .race-panel .figures img { height: clamp(16rem, 52vh, 26rem); }
  .race-panel .figures img.second { height: clamp(12rem, 38vh, 19rem); }
  .split, .call-grid { grid-template-columns: 1fr; }
  .hours { flex-direction: column; height: auto; }
  .hour { flex: none; height: 15rem; }
  .hour:hover, .hour:focus-within { flex: none; }
  .hour figcaption span { opacity: 1; transform: none; }
  .tile { min-height: 40vh; }
}
@media (max-width: 600px) {
  body { font-size: 1.08rem; }
  .hero { align-items: end; padding-bottom: 5.5rem; }
  .hero::before { background: linear-gradient(0deg, var(--void) 0%, rgba(11, 11, 9, .75) 38%, rgba(11, 11, 9, .15) 70%, rgba(8, 8, 6, .5) 100%); }
  .actions .btn { flex: 1 1 100%; }
  .bloodlines { grid-template-columns: 1fr 1fr; }
  .bloodline { min-height: 22rem; padding: 1.2rem .6rem 1.6rem; }
  .bloodline img { height: 13rem; margin-bottom: 1rem; }
  .bloodline::before { bottom: 5.6rem; }
  .bloodline .epithet { font-size: .92rem; }
  .band::before, .band.right::before { background: linear-gradient(0deg, rgba(8, 8, 6, .95) 0%, rgba(8, 8, 6, .7) 45%, rgba(8, 8, 6, .25) 100%); }
  .band { align-items: end; min-height: 86svh; }
  .foot { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .facts-table { grid-template-columns: 1fr; gap: .1rem; }
  .facts-table dd { margin-bottom: .7rem; }
  .logo-row { grid-template-columns: 1fr; }
  .race-panel .sigil { display: none; }
}
@media print {
  .site-header, .embers, .scroll-cue, .call > .media { display: none; }
  body { background: #fff; color: #000; }
}
