/* ============================================================
   DUNE: PART THREE — design system
   Palette: deep desert night, burnt sand, ember, spice-blue, bone
   ============================================================ */

:root {
  --night: #0b0906;
  --night-2: #14100a;
  --sand: #d8b98a;
  --sand-deep: #c9824a;
  --ember: #e26d2f;
  --sun: #e8a15c;
  --spice: #57a8ff;
  --spice-deep: #2b5f9e;
  --bone: #efe6d4;
  --bone-dim: rgba(239, 230, 212, 0.62);
  --bone-faint: rgba(239, 230, 212, 0.34);
  --line: rgba(239, 230, 212, 0.14);
  --font-display: "Jost", "Futura", "Century Gothic", sans-serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", "SF Mono", monospace;
  --ease-heavy: cubic-bezier(0.19, 0.8, 0.16, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html:focus-within { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--ember); color: var(--night); }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--bone); color: var(--night);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  padding: 10px 16px; transition: top 0.25s var(--ease-out); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- global texture ---------- */
.grain {
  position: fixed; inset: -100px; z-index: 90; pointer-events: none;
  background-image: url("../assets/img/noise.png");
  background-size: 220px;
  opacity: 0.05;
  mix-blend-mode: overlay;
  animation: grainShift 0.9s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-38px, 22px); }
  50% { transform: translate(24px, -30px); }
  75% { transform: translate(-16px, -14px); }
  100% { transform: translate(0, 0); }
}
.vignette {
  position: fixed; inset: 0; z-index: 89; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 58%, rgba(5, 3, 1, 0.42) 100%);
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 400;
  background: var(--night);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.9s var(--ease-heavy), visibility 0.9s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__line {
  font-family: var(--font-mono); font-size: clamp(11px, 2.6vw, 14px);
  letter-spacing: 0.42em; text-indent: 0.42em; color: var(--bone-dim);
  margin: 0 0 18px; text-align: center; white-space: nowrap; overflow: hidden;
}
.preloader__bar {
  width: min(280px, 60vw); height: 1px; background: var(--line);
  margin: 0 auto; overflow: hidden;
}
.preloader__bar span {
  display: block; height: 100%; width: 0%;
  background: var(--sand-deep); transition: width 0.3s ease;
}

/* ---------- scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 210;
  background: transparent; pointer-events: none;
}
.progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--sand-deep), var(--ember));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- custom cursor ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; z-index: 250; pointer-events: none; }
  .cursor__dot {
    position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px;
    border-radius: 50%; background: var(--bone);
    transition: transform 0.25s var(--ease-out), background 0.25s, opacity 0.25s;
  }
  .cursor__glow {
    position: absolute; width: 190px; height: 190px; margin: -95px 0 0 -95px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(87, 168, 255, 0.10), rgba(226, 109, 47, 0.05) 45%, transparent 70%);
    mix-blend-mode: screen;
  }
  .cursor.is-hover .cursor__dot { transform: scale(3.4); background: var(--ember); }
  body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor [data-cursor] { cursor: none; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 220;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 clamp(16px, 4vw, 44px);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  transition: background 0.5s ease, backdrop-filter 0.5s ease, transform 0.5s var(--ease-out);
}
.nav.scrolled {
  background: rgba(11, 9, 6, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav.hidden { transform: translateY(-100%); }
.nav__brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--bone); white-space: nowrap;
}
.nav__sigil { color: var(--ember); font-size: 14px; }
.nav__title { letter-spacing: 0.28em; }
.nav__title em { font-style: normal; color: var(--bone-dim); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a {
  text-decoration: none; color: var(--bone-dim); text-transform: uppercase;
  position: relative; padding: 4px 0; transition: color 0.3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--ember); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--bone); }
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); }
.nav__cta {
  text-decoration: none; color: var(--night); background: var(--bone);
  padding: 9px 18px; letter-spacing: 0.18em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.nav__cta:hover, .nav__cta:focus-visible { background: var(--ember); }
.nav__burger {
  display: none; margin-left: auto; width: 44px; height: 44px;
  position: relative; z-index: 240;
}
.nav__burger span {
  position: absolute; left: 10px; right: 10px; height: 1.5px;
  background: var(--bone); transition: transform 0.35s var(--ease-out), top 0.35s;
}
.nav__burger span:first-child { top: 19px; }
.nav__burger span:last-child { top: 26px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 230; background: rgba(11, 9, 6, 0.96);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 40px; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu__links { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.menu__links a {
  font-family: var(--font-display); font-weight: 300; text-transform: uppercase;
  font-size: clamp(30px, 9vw, 44px); letter-spacing: 0.22em; text-decoration: none;
  color: var(--bone); padding: 6px 0;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s;
}
.menu.open .menu__links a { opacity: 1; transform: none; }
.menu.open .menu__links a:nth-child(1) { transition-delay: 0.08s; }
.menu.open .menu__links a:nth-child(2) { transition-delay: 0.15s; }
.menu.open .menu__links a:nth-child(3) { transition-delay: 0.22s; }
.menu.open .menu__links a:nth-child(4) { transition-delay: 0.29s; }
.menu.open .menu__links a:nth-child(5) { transition-delay: 0.36s; }
.menu__links a:active { color: var(--ember); }
.menu__cta { color: var(--ember) !important; }
.menu__foot { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em; color: var(--bone-faint); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; text-decoration: none;
  padding: 16px 30px; position: relative; overflow: hidden;
  transition: color 0.35s ease, border-color 0.35s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 0.45s var(--ease-heavy);
}
.btn--solid { background: var(--bone); color: var(--night); }
.btn--solid::before { background: var(--ember); }
.btn--solid:hover::before, .btn--solid:focus-visible::before { transform: scaleY(1); }
.btn--ghost { border: 1px solid var(--bone-faint); color: var(--bone); }
.btn--ghost::before { background: rgba(216, 185, 138, 0.12); }
.btn--ghost:hover::before, .btn--ghost:focus-visible::before { transform: scaleY(1); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--sand); }
.btn:active { transform: scale(0.97); }
.btn--big { padding: 19px 40px; }

/* ---------- shared type ---------- */
.kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.42em;
  color: var(--ember); text-transform: uppercase; margin: 0 0 22px;
}
.kicker::before { content: "✦ "; color: var(--bone-faint); }
.section-title {
  font-family: var(--font-display); font-weight: 300; text-transform: uppercase;
  font-size: clamp(34px, 6.4vw, 78px); line-height: 1.04; letter-spacing: 0.12em;
  margin: 0 0 26px; color: var(--bone);
}
.section-title em {
  font-style: normal;
  background: linear-gradient(105deg, var(--sand) 10%, var(--ember) 55%, var(--sand-deep) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); filter: blur(6px); }
.reveal.in {
  opacity: 1; transform: none; filter: none;
  transition: opacity 1.1s var(--ease-heavy), transform 1.1s var(--ease-heavy), filter 1.1s var(--ease-heavy);
}
.reveal.in[data-d="1"] { transition-delay: 0.12s; }
.reveal.in[data-d="2"] { transition-delay: 0.24s; }
.reveal.in[data-d="3"] { transition-delay: 0.36s; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100svh; overflow: clip;
  display: flex; align-items: center; justify-content: center;
  isolation: isolate;
}
.hero__scene { position: absolute; inset: 0; z-index: -1; }
.hero__canvas, .hero__sand { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__haze {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 9, 6, 0.42) 0%, transparent 26%, transparent 70%, rgba(11, 9, 6, 0.78) 100%),
    radial-gradient(90% 46% at 50% 42%, rgba(232, 161, 92, 0.14), transparent 70%);
}
.hero__content {
  position: relative; z-index: 2; text-align: center;
  padding: calc(var(--nav-h) + 24px) 20px 96px;
  will-change: transform, opacity;
}
.hero__content::before {
  content: ""; position: absolute; inset: -6% -12%; z-index: -1;
  background: radial-gradient(58% 54% at 50% 46%, rgba(11, 9, 6, 0.52), rgba(11, 9, 6, 0.18) 60%, transparent 78%);
  pointer-events: none;
}
.hero__overline {
  font-family: var(--font-mono); font-size: clamp(10px, 2.4vw, 13px);
  letter-spacing: 0.52em; text-indent: 0.52em; color: var(--bone-dim); margin: 0 0 3.2vh;
}
.hero__title { margin: 0; line-height: 0.92; }
.hero__dune {
  display: block;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(72px, 17.5vw, 240px);
  letter-spacing: 0.34em; text-indent: 0.34em;
  color: var(--bone);
  /* sand-worn treatment: bone gradient abraded by noise mask */
  background: linear-gradient(180deg, #fbf3df 0%, var(--bone) 44%, var(--sand-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-mask-image: url("../assets/img/noise.png"), linear-gradient(#000, #000);
  -webkit-mask-size: 220px, 100% 100%;
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(#000, #000);
  text-shadow: none;
  filter: drop-shadow(0 6px 30px rgba(226, 109, 47, 0.18));
}
.hero__part {
  display: block; margin-top: 2.4vh;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(15px, 3.4vw, 30px);
  letter-spacing: 0.86em; text-indent: 0.86em;
  color: var(--sand);
}
.hero__tagline {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(17px, 3vw, 24px); color: var(--bone);
  margin: 4.2vh 0 0;
  text-shadow: 0 2px 22px rgba(11, 9, 6, 0.85), 0 0 3px rgba(11, 9, 6, 0.7);
}
.hero__meta {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 4.6vh;
  font-family: var(--font-mono); font-size: clamp(11px, 2.4vw, 14px); letter-spacing: 0.3em;
  text-shadow: 0 1px 14px rgba(11, 9, 6, 0.9), 0 0 3px rgba(11, 9, 6, 0.8);
}
.hero__date { color: #f0853f; font-weight: 500; }
.hero__where { color: var(--bone); }
.hero__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--bone-faint); }
.hero__ctas { display: flex; gap: 14px; justify-content: center; margin-top: 4.6vh; flex-wrap: wrap; }

.hero__hold {
  position: absolute; z-index: 3; bottom: 12vh; right: clamp(18px, 5vw, 60px);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em;
  color: var(--bone-faint); text-transform: uppercase;
  opacity: 0; transition: opacity 1.2s ease 2.4s;
}
.hero__hold.show { opacity: 1; }
.hero__holdring {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--bone-faint);
  animation: holdPulse 2.6s var(--ease-out) infinite;
}
@keyframes holdPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 230, 212, 0.22); }
  70% { box-shadow: 0 0 0 14px rgba(239, 230, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 230, 212, 0); }
}

.hero__scrollcue {
  position: absolute; z-index: 3; bottom: 4.5vh; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none;
}
.hero__scrolltext {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.5em; text-indent: 0.5em;
  color: var(--bone-dim);
}
.hero__scrollline { width: 1px; height: 52px; background: var(--line); overflow: hidden; }
.hero__scrollline span {
  display: block; width: 100%; height: 40%; background: var(--ember);
  animation: scrollDrip 2.2s var(--ease-heavy) infinite;
}
@keyframes scrollDrip {
  0% { transform: translateY(-110%); }
  60%, 100% { transform: translateY(280%); }
}

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 13px 0; background: var(--night-2);
  position: relative; z-index: 2;
}
.ticker__track {
  display: flex; gap: 34px; width: max-content;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.34em;
  color: var(--bone-faint); white-space: nowrap;
  animation: tick 42s linear infinite;
}
.ticker__track i { color: var(--ember); font-style: normal; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ============ OMEN (epigraph) ============ */
.omen {
  position: relative; padding: clamp(90px, 16vh, 190px) 24px;
  display: flex; justify-content: center;
  background:
    radial-gradient(80% 60% at 50% 110%, rgba(201, 130, 74, 0.10), transparent 70%),
    var(--night);
}
.omen__quote { max-width: 880px; margin: 0; text-align: center; }
.omen__quote blockquote { margin: 0; }
.omen__quote p {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(24px, 4.6vw, 44px); line-height: 1.32; color: var(--bone);
  margin: 0;
}
.omen__quote figcaption {
  margin-top: 34px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28em;
  color: var(--bone-faint); text-transform: uppercase;
}
.omen__quote cite { color: var(--sand); font-style: normal; }

/* ============ STORY ============ */
.story { position: relative; overflow: clip; }
.story__sky {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg,
      hsl(var(--sky-h, 26) 42% calc(var(--sky-l, 12) * 1%)) 0%,
      hsl(var(--sky-h2, 22) 48% calc(var(--sky-l2, 7) * 1%)) 100%);
  transition: none;
}
.story__head {
  padding: clamp(90px, 15vh, 180px) 24px clamp(30px, 6vh, 70px);
  max-width: 860px; margin: 0 auto; text-align: center;
}
.story__lede {
  font-size: clamp(18px, 2.6vw, 23px); line-height: 1.65; color: var(--bone-dim);
  max-width: 640px; margin: 0 auto;
}
.chapters { position: relative; }
.chapter {
  position: relative; min-height: 92svh;
  display: flex; align-items: center;
  padding: clamp(70px, 12vh, 130px) 24px;
}
.chapter__dunes {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: 46%;
  pointer-events: none; z-index: 0;
  will-change: transform;
}
.chapter__inner {
  position: relative; z-index: 1; max-width: 620px;
  margin: 0 auto; width: 100%;
}
.chapter:nth-child(odd) .chapter__inner { margin-left: clamp(0px, 10vw, 220px); }
.chapter:nth-child(even) .chapter__inner { margin-right: clamp(0px, 10vw, 220px); margin-left: auto; }
.chapter__num {
  display: block;
  font-family: var(--font-serif); font-style: italic; font-size: clamp(60px, 9vw, 120px);
  line-height: 0.8; color: transparent;
  -webkit-text-stroke: 1px var(--bone-faint);
  margin-bottom: 2vh;
}
.chapter__title {
  font-family: var(--font-display); font-weight: 300; text-transform: uppercase;
  font-size: clamp(28px, 4.6vw, 52px); letter-spacing: 0.1em; line-height: 1.1;
  margin: 0 0 3vh; color: var(--bone);
}
.chapter__text {
  font-size: clamp(17px, 2.3vw, 21px); line-height: 1.75; color: var(--bone-dim);
  margin: 0 0 3vh; max-width: 56ch;
}
.chapter__text em { color: var(--sand); }
.chapter__sigil {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.34em;
  color: var(--ember); text-transform: uppercase;
}
.chapter--last { min-height: 100svh; }

/* ============ CHARACTERS ============ */
.chars {
  position: relative; padding: clamp(90px, 15vh, 180px) 24px clamp(70px, 10vh, 120px);
  background:
    radial-gradient(90% 50% at 50% 0%, rgba(43, 95, 158, 0.10), transparent 60%),
    var(--night);
}
.chars__head { max-width: 1080px; margin: 0 auto clamp(40px, 8vh, 90px); }
.chars__hint {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--bone-faint);
}
.chars__list {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1080px;
  border-top: 1px solid var(--line);
}
.char { border-bottom: 1px solid var(--line); position: relative; outline: none; }
.char__row {
  display: grid;
  grid-template-columns: 52px 1fr auto auto;
  align-items: center; gap: clamp(10px, 3vw, 34px);
  padding: clamp(20px, 3.6vh, 34px) clamp(4px, 1.5vw, 16px);
  position: relative; z-index: 1;
  transition: padding-left 0.5s var(--ease-heavy);
}
.char__index {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--bone-faint);
}
.char__name {
  font-family: var(--font-display); font-weight: 300; text-transform: uppercase;
  font-size: clamp(26px, 5vw, 56px); letter-spacing: 0.1em; line-height: 1;
  margin: 0; color: var(--bone);
  transition: color 0.4s ease, letter-spacing 0.5s var(--ease-heavy), transform 0.5s var(--ease-heavy);
}
.char__actor {
  font-family: var(--font-mono); font-size: clamp(10px, 1.6vw, 12px);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone-dim);
  white-space: nowrap;
}
.char__eyes { display: flex; gap: 7px; align-items: center; }
.char__eyes i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--spice);
  box-shadow: 0 0 0 0 rgba(87, 168, 255, 0);
  transition: box-shadow 0.6s ease, background 0.6s ease;
}
.char__eyes--dim i { background: var(--bone-faint); }
.char::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(58, 36, 19, 0.88), rgba(11, 9, 6, 0.72) 55%, rgba(11, 9, 6, 0.4)),
    linear-gradient(90deg, rgba(201, 130, 74, 0.22), rgba(226, 109, 47, 0.06) 60%, transparent),
    url("../assets/img/sandtex.webp");
  background-size: auto, auto, 512px;
  background-blend-mode: normal, normal, multiply;
  opacity: 0; transition: opacity 0.6s ease;
  transform-origin: 0 50%;
}
.char:hover::before, .char.open::before, .char:focus-visible::before { opacity: 0.9; }
.char__quote, .char__note, .char__role { text-shadow: 0 1px 10px rgba(11, 9, 6, 0.8); }
.char:hover .char__name, .char.open .char__name, .char:focus-visible .char__name {
  color: var(--sand); letter-spacing: 0.14em;
}
.char:hover .char__eyes i, .char.open .char__eyes i {
  box-shadow: 0 0 14px 2px rgba(87, 168, 255, 0.8);
}
.char__panel {
  max-height: 0; overflow: hidden; position: relative; z-index: 1;
  transition: max-height 0.7s var(--ease-heavy), padding 0.7s var(--ease-heavy);
  padding: 0 clamp(4px, 1.5vw, 16px) 0 calc(52px + clamp(10px, 3vw, 34px) + clamp(4px, 1.5vw, 16px));
}
.char.open .char__panel { max-height: 480px; padding-bottom: clamp(24px, 4vh, 40px); }
.char__role {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--ember); margin: 0 0 14px;
}
.char__quote {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(19px, 2.8vw, 26px); line-height: 1.4; color: var(--bone);
  margin: 0 0 14px; max-width: 46ch;
}
.char__note { font-size: 16px; line-height: 1.7; color: var(--bone-dim); margin: 0; max-width: 58ch; }
.chars__more {
  max-width: 1080px; margin: clamp(36px, 6vh, 60px) auto 0;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--bone-dim); line-height: 2;
}
.chars__more strong { color: var(--bone); font-weight: 500; }

/* ============ WATCH ============ */
.watch {
  padding: clamp(90px, 15vh, 180px) 24px;
  background:
    linear-gradient(180deg, var(--night) 0%, #160f08 50%, var(--night) 100%);
}
.watch__head { max-width: 1180px; margin: 0 auto clamp(40px, 7vh, 80px); }
.watch__grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(18px, 3vw, 36px);
  align-items: stretch;
}
.trailer {
  position: relative; grid-row: span 2; overflow: hidden;
  border: 1px solid var(--line); padding: 0; text-align: left;
  min-height: 320px; display: block; width: 100%;
  -webkit-tap-highlight-color: transparent;
}
.trailer__art {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform 8s var(--ease-heavy), filter 1s ease;
  filter: saturate(0.92);
}
.trailer:hover .trailer__art, .trailer:focus-visible .trailer__art {
  transform: scale(1.09); filter: saturate(1.08);
}
.trailer__shade {
  position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 40%, rgba(11, 9, 6, 0.82) 100%);
}
.trailer__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(70px, 9vw, 96px); height: clamp(70px, 9vw, 96px);
  border-radius: 50%; border: 1px solid rgba(239, 230, 212, 0.5);
  display: flex; align-items: center; justify-content: center;
  color: var(--bone); background: rgba(11, 9, 6, 0.3);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: transform 0.5s var(--ease-heavy), background 0.4s, border-color 0.4s;
}
.trailer__play svg { margin-left: 4px; }
.trailer__play::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(226, 109, 47, 0.55);
  animation: playPulse 2.8s var(--ease-out) infinite;
}
@keyframes playPulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.55); opacity: 0; }
}
.trailer:hover .trailer__play, .trailer:focus-visible .trailer__play {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--ember); border-color: var(--ember); color: var(--night);
}
.trailer:hover .trailer__play::after { animation: none; opacity: 0; }
.trailer__label {
  position: absolute; left: clamp(16px, 3vw, 30px); bottom: clamp(16px, 3vw, 28px);
  display: flex; flex-direction: column; gap: 6px;
}
.trailer__code {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.34em; color: var(--ember);
}
.trailer__name {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(15px, 2.2vw, 21px); letter-spacing: 0.14em; color: var(--bone);
}
.media-card {
  margin: 0; border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column; background: var(--night-2);
}
.media-card img {
  width: 100%; height: clamp(200px, 34vh, 320px); object-fit: cover; object-position: 50% 22%;
  filter: saturate(0.9); transition: transform 6s var(--ease-heavy), filter 0.8s;
}
.media-card:hover img { transform: scale(1.06); filter: saturate(1.05); }
.media-card figcaption {
  padding: 16px 18px 18px;
  font-size: 14.5px; color: var(--bone-dim); line-height: 1.55;
}
.media-card figcaption span {
  display: block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.32em; color: var(--ember); margin-bottom: 6px;
}
.watch__notes {
  border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px);
  background: var(--night-2); display: flex; flex-direction: column; justify-content: center;
}
.watch__note-title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: 15px; letter-spacing: 0.18em; color: var(--sand); margin: 0 0 8px;
}
.watch__note { font-size: 15.5px; line-height: 1.7; color: var(--bone-dim); margin: 0 0 22px; }
.watch__note:last-child { margin-bottom: 0; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 260; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
  position: absolute; inset: 0; background: rgba(5, 3, 1, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.lightbox__panel {
  position: relative; max-width: 760px; width: 100%; max-height: 92svh; overflow: auto;
  background: var(--night-2); border: 1px solid var(--line);
  animation: lbUp 0.55s var(--ease-heavy);
}
@keyframes lbUp { from { opacity: 0; transform: translateY(40px) scale(0.97); } }
.lightbox__art { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.lightbox__body { padding: clamp(20px, 4vw, 36px); }
.lightbox__code { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.32em; color: var(--ember); margin: 0 0 12px; }
.lightbox__text { font-size: 18px; line-height: 1.65; color: var(--bone-dim); margin: 0 0 24px; }
.lightbox__text em { color: var(--sand); }
.lightbox__fine { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--bone-faint); margin: 16px 0 0; }
.lightbox__close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 42px; height: 42px; font-size: 15px; color: var(--bone);
  background: rgba(11, 9, 6, 0.55); border: 1px solid var(--line); border-radius: 50%;
  transition: background 0.3s, transform 0.3s var(--ease-out);
}
.lightbox__close:hover { background: var(--ember); color: var(--night); transform: rotate(90deg); }

/* ============ RELEASE ============ */
.release {
  position: relative; overflow: clip;
  padding: clamp(110px, 18vh, 210px) 24px clamp(120px, 20vh, 230px);
  background: linear-gradient(180deg, var(--night) 0%, #241207 55%, #3a1d0a 100%);
  text-align: center;
}
.release__dunes {
  position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 44%;
  pointer-events: none; z-index: 0; will-change: transform;
}
.release__inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.release__date {
  margin: 0 0 10px; display: flex; justify-content: center; align-items: baseline; flex-wrap: nowrap;
  font-family: var(--font-display); font-weight: 300;
}
.release__d {
  font-size: clamp(54px, 13vw, 150px); line-height: 1; letter-spacing: 0.04em;
  color: var(--bone);
  background: linear-gradient(180deg, #fbf3df 20%, var(--sand) 60%, var(--ember) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.release__sep { font-size: clamp(40px, 9vw, 100px); color: var(--ember); margin: 0 0.06em; }
.release__sub {
  font-family: var(--font-mono); font-size: clamp(10px, 2vw, 13px);
  letter-spacing: 0.4em; color: var(--bone-dim); margin: 0 0 7vh;
}
.countdown {
  display: flex; justify-content: center; gap: clamp(10px, 3vw, 28px);
  margin-bottom: 7vh;
}
.countdown__cell {
  min-width: clamp(66px, 16vw, 120px);
  border: 1px solid var(--line); padding: clamp(14px, 2.6vw, 24px) 8px;
  background: rgba(11, 9, 6, 0.4);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; flex-direction: column; gap: 6px;
}
.countdown__n {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(26px, 6vw, 52px); line-height: 1; color: var(--bone);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}
.countdown__n.tick { color: var(--ember); }
.countdown__l { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.34em; color: var(--bone-faint); }
.release__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.release__echo {
  min-height: 1.6em; margin: 26px 0 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--spice);
  opacity: 0; transition: opacity 0.6s ease;
}
.release__echo.show { opacity: 1; }

/* ============ FOOTER ============ */
.footer {
  padding: clamp(70px, 12vh, 130px) 24px 60px;
  background: var(--night); text-align: center;
  border-top: 1px solid var(--line);
}
.footer__quote { max-width: 720px; margin: 0 auto clamp(40px, 8vh, 80px); }
.footer__quote blockquote {
  margin: 0 0 18px; font-family: var(--font-serif); font-style: italic;
  font-size: clamp(20px, 3.4vw, 30px); line-height: 1.4; color: var(--bone);
}
.footer__quote figcaption {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--bone-faint);
}
.footer__credits {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em;
  color: var(--bone-dim); line-height: 2.2; margin-bottom: 40px;
}
.footer__credits p { margin: 0; }
.footer__credits strong { color: var(--bone); font-weight: 500; }
.footer__links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 30px;
  margin-bottom: 46px;
}
.footer__links a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; text-decoration: none; color: var(--bone-dim);
  transition: color 0.3s;
}
.footer__links a:hover, .footer__links a:focus-visible { color: var(--ember); }
.footer__legal {
  max-width: 640px; margin: 0 auto;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  line-height: 1.9; color: var(--bone-faint);
}

/* ---------- spice blow flash ---------- */
.blow {
  position: fixed; inset: 0; z-index: 240; pointer-events: none;
  background: radial-gradient(60% 60% at var(--bx, 50%) var(--by, 50%), rgba(226, 109, 47, 0.34), rgba(87, 168, 255, 0.10) 55%, transparent 75%);
  opacity: 0; transition: opacity 1.4s ease;
}
.blow.on { opacity: 1; transition: opacity 0.12s ease; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .watch__grid { grid-template-columns: 1fr; }
  .trailer { grid-row: auto; min-height: 240px; aspect-ratio: 16 / 9; }
  .trailer__art { height: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .hero__content { padding-bottom: 120px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__hold { display: none; }
  .story__head { padding-bottom: 12px; }
  .chapter { min-height: 0; padding-top: 56px; padding-bottom: 110px; }
  .chapter__dunes { height: 240px; }
  .chapter:nth-child(odd) .chapter__inner, .chapter:nth-child(even) .chapter__inner { margin: 0 auto; }
  .char__row { grid-template-columns: 34px 1fr auto; }
  .char__actor { display: none; }
  .char__panel { padding-left: calc(34px + 10px + 4px); }
  .release__ctas .btn { flex: 1 1 100%; }
  .countdown { flex-wrap: nowrap; }
  .countdown__cell { min-width: 0; flex: 1; }
  .omen__quote figcaption { line-height: 1.9; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .ticker__track { animation: none; }
  .hero__scrollline span { animation: none; }
  .trailer__play::after { animation: none; opacity: 0; }
  .hero__holdring { animation: none; }
  .trailer__art, .media-card img { transition: none; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .char, .char__row, .char__name, .char__panel, .btn, .btn::before { transition-duration: 0.01s; }
}
body[data-motion="reduced"] .grain { animation: none; }
body[data-motion="reduced"] .ticker__track { animation-duration: 0s; }
