/* ==========================================================================
   BEYOND THE WALLS — landing page
   Palette: night black / bone white / spotlight gold
   Type:    Cormorant Garamond (display) + Inter (UI)
   ========================================================================== */

:root {
  --bg: #060809;
  --bg-2: #0a0d10;
  --bg-3: #0e1216;
  --ink: #f2ede3;
  --ink-2: #c9c2b4;
  --mut: #948d80;
  --gold: #d9a05b;
  --gold-2: #eab671;
  --line: rgba(242, 237, 227, 0.14);
  --line-soft: rgba(242, 237, 227, 0.07);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
  --pad-x: clamp(20px, 5vw, 64px);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 17px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  /* clip avoids creating a scroll container (keeps position:sticky intact) */
  overflow-x: hidden;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

::selection { background: var(--gold); color: var(--bg); }

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 1px;
}

h1, h2, h3, blockquote, p, ul, ol, li, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: clamp(96px, 15vh, 176px); }

section { scroll-margin-top: var(--header-h); }

/* --------------------------------------------------------------------------
   Scroll progress
   -------------------------------------------------------------------------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 115; /* above the menu overlay so the burger stays reachable */
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: var(--pad-x);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header--solid {
  background: rgba(6, 8, 9, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}

.header__brand {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.header--brand .header__brand {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.header__brand-line--gold { color: var(--gold); }

.header__nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.header__nav a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 14px 2px;
  position: relative;
  transition: color 0.25s var(--ease);
}
.header__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 8px;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s var(--ease);
}
.header__nav a:hover { color: var(--ink); }
.header__nav a:hover::after { right: 0; }

.header__burger {
  display: none;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  position: relative;
  z-index: 130;
}
.header__burger span {
  position: absolute;
  left: 12px;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.header__burger span:nth-child(1) { top: 20px; }
.header__burger span:nth-child(2) { top: 27px; }
.header__burger.is-open span:nth-child(1) { top: 23.5px; transform: rotate(45deg); }
.header__burger.is-open span:nth-child(2) { top: 23.5px; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Mobile menu
   -------------------------------------------------------------------------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(6, 8, 9, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad-x);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s 0.45s;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease);
}
.menu__nav { display: flex; flex-direction: column; gap: 2px; }
.menu__nav a {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 6.2vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 0;
  display: flex;
  align-items: baseline;
  gap: 18px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.25s;
}
.menu__nav a em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.menu__nav a:hover { color: var(--gold-2); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(1) { transition-delay: 0.08s; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: 0.14s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: 0.2s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: 0.26s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: 0.32s; }
.menu.is-open .menu__nav a:nth-child(6) { transition-delay: 0.38s; }
.menu.is-open .menu__nav a:nth-child(7) { transition-delay: 0.44s; }
.menu.is-open .menu__nav a:nth-child(8) { transition-delay: 0.5s; }
.menu.is-open .menu__nav a:nth-child(9) { transition-delay: 0.56s; }
.menu__foot {
  margin-top: 48px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mut);
}

/* --------------------------------------------------------------------------
   Hero — pinned scroll-scrubbed flyover
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 340vh;
  background: var(--bg);
}

.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.hero__video,
.hero__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__fallback { display: none; }
.hero--novideo .hero__video { display: none; }
.hero--novideo .hero__fallback { display: block; animation: kenburns 26s var(--ease) both; }

@keyframes kenburns {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 36% at 50% 58%, rgba(6, 8, 9, 0.44) 0%, transparent 74%),
    radial-gradient(120% 90% at 50% 46%, transparent 46%, rgba(6, 8, 9, 0.55) 100%),
    linear-gradient(180deg, rgba(6, 8, 9, 0.55) 0%, transparent 22%),
    linear-gradient(0deg, var(--bg) 0%, rgba(6, 8, 9, 0.35) 14%, transparent 34%);
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad-x) 9vh;
  will-change: opacity, transform;
}

.hero__eyebrow {
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 500;
  letter-spacing: 0.5em;
  text-indent: 0.5em; /* optically recenter tracked caps */
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: clamp(22px, 3.5vh, 38px);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3.1rem, 10.5vw, 8.75rem);
  line-height: 0.98;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45);
}

.hero__byline {
  margin-top: clamp(26px, 4vh, 44px);
  font-size: clamp(11px, 1.3vw, 13px);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.85), 0 0 3px rgba(0, 0, 0, 0.6);
}
.hero__byline strong { font-weight: 500; color: var(--ink); }

.hero__date {
  margin-top: 14px;
  font-size: clamp(11px, 1.3vw, 13px);
  font-weight: 500;
  letter-spacing: 0.44em;
  text-indent: 0.44em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.85), 0 0 3px rgba(0, 0, 0, 0.6);
}
.hero__date::before,
.hero__date::after {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--line);
  vertical-align: middle;
  margin: 0 16px 0 0;
}
.hero__date::after { margin: 0 0 0 16px; }

.hero__quote {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad-x);
  opacity: 0;
  will-change: opacity, transform;
  pointer-events: none;
}
.hero__quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.35;
  max-width: 21em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}
.hero__quote p::before {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 28px;
}

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom, 0px) + 20px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: opacity 0.5s var(--ease);
}
.hero__cue span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--mut);
}
.hero__cue i {
  width: 1px;
  height: 52px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.hero__cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--gold);
  animation: cue-drop 2s var(--ease) infinite;
}
@keyframes cue-drop {
  0%   { top: -40%; }
  70%, 100% { top: 105%; }
}

/* --------------------------------------------------------------------------
   Shared editorial bits
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow em {
  font-style: normal;
  color: var(--mut);
  letter-spacing: 0.18em;
}
.eyebrow em::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--line);
  vertical-align: middle;
  margin-left: 14px;
}

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  margin-top: 26px;
}

.section__note {
  margin-top: 18px;
  max-width: 52ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--mut);
}

/* --------------------------------------------------------------------------
   Story
   -------------------------------------------------------------------------- */
.story { background: var(--bg); position: relative; }

.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.story__label { position: sticky; top: calc(var(--header-h) + 32px); }

.story__badge {
  margin-top: 42px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.3;
  color: var(--mut);
}

.story__lead {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.42;
  color: var(--ink);
}
.story__lead::first-letter {
  color: var(--gold);
}

.story__text {
  margin-top: 36px;
  max-width: 56ch;
  color: var(--ink-2);
}

.story__meta {
  margin-top: 52px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.story__meta li {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line);
  padding: 12px 20px;
}

/* --------------------------------------------------------------------------
   Interlude
   -------------------------------------------------------------------------- */
.interlude {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.interlude__media {
  position: absolute;
  inset: -12% 0;
}
.interlude__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.interlude::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(6, 8, 9, 0.25) 24%, rgba(6, 8, 9, 0.25) 76%, var(--bg) 100%),
    radial-gradient(90% 70% at 50% 50%, rgba(6, 8, 9, 0.55) 0%, rgba(6, 8, 9, 0.2) 100%);
}
.interlude__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}
.interlude__quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  line-height: 1.35;
  text-shadow: 0 2px 34px rgba(0, 0, 0, 0.65);
}
.interlude__quote p::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  background: var(--gold);
  margin: 34px auto 0;
}
.interlude__quote cite {
  display: block;
  margin-top: 22px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mut);
}

/* --------------------------------------------------------------------------
   Characters
   -------------------------------------------------------------------------- */
.chars { background: var(--bg); }

.chars__note {
  margin-top: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--mut);
}

.chars__grid {
  margin-top: clamp(44px, 6vh, 72px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 28px);
}

.chars__card figure {
  margin: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg-3);
}
.chars__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
}
.chars__card:hover img {
  transform: scale(1.045);
  filter: saturate(1) contrast(1.02);
}

.chars__meta { padding-top: 18px; }

.chars__role {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.chars__name {
  margin-top: 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.chars__bio {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mut);
}

/* --------------------------------------------------------------------------
   Themes
   -------------------------------------------------------------------------- */
.themes { background: var(--bg-2); border-top: 1px solid var(--line-soft); }

.themes__grid {
  margin-top: clamp(44px, 6vh, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 40px);
}

.themes__block {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.themes__index {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.themes__cat {
  margin-top: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.themes__list { margin-top: 18px; }
.themes__list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.themes__list li:last-child { border-bottom: 0; }

/* --------------------------------------------------------------------------
   Behind the Scenes
   -------------------------------------------------------------------------- */
.bts { background: var(--bg); }

.bts__grid {
  margin-top: clamp(44px, 6vh, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.bts__item {
  margin: 0;
  padding: 0;
  display: block;
  text-align: left;
  position: relative;
}
.bts__item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
  filter: saturate(0.88);
}
.bts__item:hover img { transform: scale(1.03); filter: saturate(1); }

.bts__item figcaption,
.bts__cap {
  display: block;
  margin-top: 12px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mut);
}

.bts__item--video { cursor: pointer; }
.bts__play {
  position: absolute;
  left: 50%;
  top: calc(50% - 14px); /* optically centre on the image, not the caption */
  transform: translate(-50%, -50%);
  width: 58px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(242, 237, 227, 0.6);
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(6, 8, 9, 0.35);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.bts__play svg { width: 36%; margin-left: 8%; }
.bts__item--video:hover .bts__play {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

/* --------------------------------------------------------------------------
   Technology
   -------------------------------------------------------------------------- */
.tech { background: var(--bg-2); border-top: 1px solid var(--line-soft); }

.tech__row {
  margin-top: clamp(52px, 8vh, 88px);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.tech__row--flip .tech__media { order: 2; }

.tech__media {
  margin: 0;
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.tech__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tech__body h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.tech__body h3::after {
  content: "";
  display: block;
  width: 38px;
  height: 1px;
  background: var(--gold);
  margin-top: 16px;
}
.tech__body p {
  margin-top: 18px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 52ch;
}

.tech__specs {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tech__specs li {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line);
  padding: 10px 16px;
}

/* --------------------------------------------------------------------------
   Trailer
   -------------------------------------------------------------------------- */
.trailer { background: var(--bg); }

.trailer__frame {
  position: relative;
  display: block;
  width: 100%;
  margin-top: clamp(44px, 6vh, 72px);
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
}
.trailer__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), opacity 0.4s var(--ease);
}
.trailer__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 80% at 50% 50%, transparent 40%, rgba(6, 8, 9, 0.5) 100%);
}
.trailer__frame:hover img { transform: scale(1.035); }

.trailer__play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(76px, 9vw, 104px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(242, 237, 227, 0.6);
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(6, 8, 9, 0.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.trailer__play svg { width: 34%; margin-left: 6%; }
.trailer__frame:hover .trailer__play {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
  transform: translate(-50%, -50%) scale(1.06);
}
.trailer__play::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(242, 237, 227, 0.18);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.9); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: scale(1.18); opacity: 0; }
}

.trailer__note {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 18px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.trailer__caption {
  margin-top: 26px;
  font-size: 14px;
  color: var(--mut);
  letter-spacing: 0.02em;
}
.trailer__caption a {
  color: var(--gold);
  border-bottom: 1px solid rgba(217, 160, 91, 0.4);
  transition: border-color 0.25s;
}
.trailer__caption a:hover { border-color: var(--gold); }

/* --------------------------------------------------------------------------
   Cast
   -------------------------------------------------------------------------- */
.cast { background: var(--bg-2); }

.cast__list {
  margin-top: clamp(44px, 6vh, 72px);
  counter-reset: cast;
  border-top: 1px solid var(--line-soft);
}
.cast__list li {
  display: flex;
  align-items: baseline;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(18px, 2.6vh, 28px) 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}
.cast__index {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--mut);
  min-width: 3ch;
  font-variant-numeric: tabular-nums;
}
.cast__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 4.2vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: 0.03em;
  transition: color 0.3s var(--ease);
}
.cast__list li:hover { transform: translateX(10px); }
.cast__list li:hover .cast__name { color: var(--gold-2); }

.cast__director {
  margin-top: clamp(64px, 9vh, 104px);
  text-align: center;
}
.cast__director-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  color: var(--mut);
}
.cast__director-name {
  margin-top: 16px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  letter-spacing: 0.09em;
  text-indent: 0.09em;
  text-transform: uppercase;
}
.cast__director-name::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  background: var(--gold);
  margin: 30px auto 0;
}

/* --------------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------------- */
.news {
  background:
    radial-gradient(70% 90% at 50% 110%, rgba(217, 160, 91, 0.1) 0%, transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line-soft);
}
.news__inner {
  max-width: 780px;
  text-align: center;
}
.news .eyebrow { justify-content: center; }

.news__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 26px;
}
.news__text {
  margin: 28px auto 0;
  max-width: 46ch;
  color: var(--ink-2);
}

.news__form {
  margin-top: clamp(40px, 6vh, 60px);
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
}
.news__field {
  flex: 1 1 320px;
  max-width: 420px;
  text-align: left;
}
.news__field label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 6px;
}
.news__field input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: 300 17px/1 var(--sans);
  padding: 15px 2px;
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
}
.news__field input::placeholder { color: rgba(148, 141, 128, 0.55); }
.news__field input:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.news__field input[aria-invalid="true"] { border-bottom-color: #e05d47; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 38px;
  border: 1px solid var(--gold);
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--gold); color: var(--bg); }
.btn[disabled] { opacity: 0.55; cursor: wait; }

.news__status {
  flex-basis: 100%;
  min-height: 24px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold-2);
}
.news__status.is-error { color: #e0745f; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(72px, 10vh, 120px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(56px, 8vh, 88px);
}

.footer__wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer__tag {
  margin-top: 22px;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
}

.footer__heading {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}

.footer__contact p {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
  font-size: 15px;
}
.footer__contact span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 5px;
}
.footer__contact a {
  color: var(--ink-2);
  transition: color 0.25s;
  width: fit-content;
  border-bottom: 1px solid transparent;
}
.footer__contact a:hover { color: var(--gold-2); }

.social { display: flex; gap: 6px; margin-left: -11px; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink-2);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.social a:hover { color: var(--gold-2); transform: translateY(-2px); }
.social svg { width: 21px; height: 21px; }

.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 30px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mut);
}
.footer__top { transition: color 0.25s; padding: 12px 0; }
.footer__top:hover { color: var(--gold-2); }

/* --------------------------------------------------------------------------
   Trailer modal
   -------------------------------------------------------------------------- */
.modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1100px, 92vw);
  width: 100%;
  overflow: visible;
}
.modal::backdrop {
  background: rgba(3, 4, 5, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.modal video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line-soft);
}
.modal__close {
  position: absolute;
  right: 0;
  top: -56px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  font-size: 18px;
  transition: color 0.25s;
}
.modal__close:hover { color: var(--gold-2); }

/* --------------------------------------------------------------------------
   Marketing preview page (unlisted /marketing/)
   -------------------------------------------------------------------------- */
.mkt__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px var(--pad-x);
  border-bottom: 1px solid var(--line-soft);
}
.mkt__brand {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
}
.mkt__brand-gold { color: var(--gold); }
.mkt__chip {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-2);
  border: 1px solid rgba(217, 160, 91, 0.45);
  padding: 10px 16px;
  white-space: nowrap;
}

.mkt__hero {
  text-align: center;
  padding: clamp(56px, 9vh, 96px) var(--pad-x) 0;
}
.mkt__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
  text-transform: uppercase;
  margin-top: 24px;
}
.mkt__byline {
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.mkt__byline strong { font-weight: 500; color: var(--ink); }

.mkt__player {
  max-width: 1080px;
  margin: clamp(40px, 6vh, 64px) auto 0;
}
.mkt__player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line-soft);
}
.mkt__player-cap {
  margin-top: 14px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mut);
}

.mkt__story { padding-bottom: 0; }
.mkt__story .story__lead { max-width: 40ch; }

.mkt__assets { background: var(--bg); }
.mkt__grid {
  margin-top: clamp(40px, 6vh, 64px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
.mkt__card a {
  display: block;
  border: 1px solid var(--line-soft);
  padding: 14px;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.mkt__card a:hover {
  border-color: rgba(217, 160, 91, 0.5);
  background: rgba(217, 160, 91, 0.04);
}
.mkt__card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.mkt__card-name {
  display: block;
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}
.mkt__card-meta {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mut);
}
.mkt__card-meta::after {
  content: "↓ Download";
  display: block;
  margin-top: 10px;
  color: var(--gold);
  letter-spacing: 0.24em;
}

.mkt__foot {
  border-top: 1px solid var(--line-soft);
  padding: 44px 0 56px;
  text-align: center;
}
.mkt__foot-line { font-size: 14px; color: var(--ink-2); }
.mkt__foot-line a { color: var(--gold-2); }
.mkt__foot-small {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mut);
}
.mkt__foot-small a { color: var(--ink-2); }

@media (max-width: 900px) {
  .mkt__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .mkt__grid { grid-template-columns: 1fr; }
  .mkt__chip { display: none; }
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Film grain
   -------------------------------------------------------------------------- */
.grain {
  position: fixed;
  inset: -100%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1.4%); }
  50%  { transform: translate(1.6%, -1%); }
  75%  { transform: translate(-1%, -1.8%); }
  100% { transform: translate(0, 0); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  /* nine nav items need the burger sooner than the rest of the layout */
  .header__nav { display: none; }
  .header__burger { display: block; }
}

@media (max-width: 1000px) {
  .chars__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .story__grid { grid-template-columns: 1fr; }

  .bts__grid { grid-template-columns: 1fr; }
  .bts__item img { aspect-ratio: 16 / 9; }

  .tech__row { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
  .tech__row--flip .tech__media { order: 0; }
  .story__label { position: static; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .story__badge { margin-top: 0; }

  .footer__grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 460px) {
  .chars__grid { grid-template-columns: 1fr; }
  .chars__card figure { aspect-ratio: 3 / 4; }
}

@media (max-width: 560px) {
  .hero { height: 300vh; }
  .news__form { flex-direction: column; align-items: stretch; }
  .news__field { max-width: none; }
  .btn { width: 100%; }
  .modal__close { top: -50px; right: -2px; }
  .trailer__note { display: none; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: 100vh; height: 100dvh; }
  .hero__video { display: none; }
  .hero__fallback { display: block; animation: none; }
  .hero__quote { display: none; }
  .hero__cue i::after { animation: none; }
  .trailer__play::before { animation: none; }
  .grain { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
