:root {
  --coal: #091019;
  --cream: #fff5e4;
  --smoke: #d2c9c3;
  --hot: #ffa067;
  --ice: #b5dcf1;
  --ink: #201410;
  --line: #f0d9bb36;
  --shell: clamp(1.12rem, 5.4vw, 5.5rem);
  --radius: 1.4rem;
  background: var(--coal);
}

body { background: #091019; }
::selection { background: #ffc082; color: #1d1a1b; }
:focus-visible { outline: 3px solid #ffdca7; outline-offset: 4px; }
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  background: linear-gradient(#06101aed, #06101a59 76%, transparent);
  border: 0;
  color: var(--cream);
}
.header-inner {
  width: min(100%, 100rem);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: .75rem;
  min-height: clamp(3.7rem, 8vw, 5.3rem);
  padding-inline: var(--shell);
}
.site-header .wordmark { gap: .56rem; font: italic 800 clamp(.95rem, 3.8vw, 1.28rem)/1 var(--display); text-transform: uppercase; letter-spacing: .014em; }
.four-badge { width: clamp(1.9rem, 5.8vw, 2.65rem); height: auto; flex-shrink: 0; }
.site-header nav { gap: clamp(.22rem, 1.8vw, 1.4rem); }
.site-header nav a { justify-content: center; min-width: 44px; color: #fbf8ed; font: 750 clamp(.7rem, 2.5vw, .88rem)/1 Manrope, sans-serif; min-height: 44px; }
.site-header .nav-launch { color: #ffce99; }
.nav-launch .icon { width: .8rem; height: .8rem; }

.hero[data-registered-portraits] {
  --portrait-heat: 0;
  --ignition: max(var(--portrait-heat), clamp(0, var(--scroll-heat, 0) * 4, 1));
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: stretch;
  min-height: 0;
  margin: 0;
  width: 100%;
  background: #0b1c2c;
  overflow: clip;
}
.hero-art { z-index: -1; overflow: hidden; }
.hero-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,#07112005 20%,#08132025 55%,#070e19f0), url('assets/torch-skyline.webp') 38% center / auto 100% no-repeat;
}
.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: calc(var(--ignition) * .9);
  background: radial-gradient(ellipse at 73% 39%, #fe7c3786, transparent 51%);
  mix-blend-mode: screen;
}
.poster-plates {
  position: absolute;
  z-index: 2;
  top: 2.5rem;
  right: max(-.6rem, calc((100vw - 30rem) / 3));
  height: clamp(22.2rem, 98vw, 34rem);
  aspect-ratio: 3/4;
  transform-origin: center;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 3%, #000 61%, #000e 74%, transparent 99%);
}
.hero-art .poster-plates picture, .hero-art .poster-plates img,
.hero[data-registered-portraits] .poster-plates .hero-character {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  translate: none;
  object-fit: contain;
  object-position: center;
  filter: none;
  opacity: 1;
}
.hero-art .poster-plates .hero-image { transform-origin: center; }
.hero[data-registered-portraits] .hero-character img { mask-image: none; }
.hero[data-portrait-ready] .poster-plates .hero-character {
  mask-image: linear-gradient(0deg,
    #000 calc(var(--ignition) * 135% - 26%),
    transparent calc(var(--ignition) * 135% - 3%));
}
.hero[data-registered-portraits] .hero-edge {
  z-index: 3;
  background: linear-gradient(0deg, #091019 0%,#091019fd 10%,#091019cf 27%,#0910192e 47%,transparent 68%);
}
.hero[data-registered-portraits] .hero-heat {
  z-index: 2;
  background: radial-gradient(ellipse at 75% 33%, #ff7c351c, transparent 49%);
}
.hero[data-registered-portraits] .embers { z-index: 3; opacity: .65; }
.hero[data-registered-portraits] .hero-fire { visibility: hidden; }
.hero-inner {
  position: relative;
  width: min(100%, 100rem);
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 1.45rem;
  padding: clamp(16.2rem, 76vw, 23.8rem) var(--shell) 1.05rem;
}
.hero-copy { width: 100%; padding: 0; }
.hero h1 {
  width: min(96%, 32rem);
  transform: none;
  margin-left: -.1rem;
  line-height: 1;
  text-shadow: none;
  position: relative;
}
.hero h1 > .title-lockup { width: 100%; height: auto; position: relative; display: block; }
.hero h1 .title-image { width: 100%; height: auto; display: block; filter: drop-shadow(0 5px 10px #08090c9e); }
.hero .title-fire { z-index: 1; width: 106%; height: 137%; left: -3%; top: -33%; opacity: .26; }
.hero-description { max-width: 37ch; color: #ffeddb; font-size: clamp(.91rem, 3.65vw, 1.14rem); line-height: 1.54; margin: .9rem 0 0; text-shadow: 0 2px 9px #0009; }
.hero .hero-actions { display: flex; gap: .7rem; align-items: center; margin-top: 1rem; }
.button, .opening-skip {
  min-height: 44px;
  border-radius: 2rem;
  padding-inline: 1.05rem;
  font-size: .86rem;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.hero-actions .button { justify-content: center; gap: .52rem; }
.button-ash, .button-ash:hover, .button-ash[aria-pressed='true'] {
  background: linear-gradient(143deg, #ffbd73 0%, #ff9748 54%, #f88139);
  color: #29170d;
  border: 1px solid #ffc892;
  box-shadow: 0 6px 19px #f174352e;
}
.button-ash:hover { box-shadow: 0 6px 22px #fd853b60; }
.button-ash .icon { width: 1.2rem; height: 1.2rem; }
.hero-actions .button-hot {
  background: #0b17248f;
  color: #fff4df;
  border: 1px solid #e9dcc881;
}
.hero-actions .button-hot:hover { background: #2b3745; border-color: #ffe2c4; }
.hero-actions .button-hot .icon { width: 1.05rem; height: 1.05rem; filter: none; }
.hero-premiere {
  max-width: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(.45rem, 2vw, 1.55rem);
  border-top: 1px solid #e7d9bf4a;
  padding-top: .83rem;
  margin: 0;
}
.hero-release-link { display: grid; align-content: center; gap: .28rem; min-height: 44px; color: var(--cream); }
.hero-release-link span { font: italic 800 clamp(.94rem, 3.8vw, 1.6rem)/1 var(--display); }
.hero-release-link small { color: #d1ccd2; font-size: clamp(.62rem, 1.9vw, .76rem); line-height: 1.35; }
.hero-release-link time { color: inherit; text-decoration: none; white-space: nowrap; }
.hero-release-link:hover span { color: var(--hot); }
.hero-premiere .release-clock {
  background: none;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  width: fit-content;
  gap: clamp(.4rem, 2.5vw, 1.35rem);
  grid-template-columns: repeat(4,minmax(1.22rem,1fr));
  flex: 0 0 auto;
}
.hero-premiere .release-clock span { border: 0; padding: 0; gap: .16rem; }
.hero-premiere .release-clock b { color: #ffbe89; font-size: clamp(1.26rem, 5.1vw, 2.25rem); line-height: 1; }
.hero-premiere .release-clock small { color: #cfcccb; font-size: .61rem; line-height: 1.25; }
.opening-skip { background: #121c29db; border-color: #ffffff60; }

@media (max-width: 360px) {
  .header-inner { gap: .28rem; }
  .site-header .wordmark { gap: .26rem; }
  .site-header nav { gap: .45rem; }
  .nav-launch .icon { display: none; }
  .hero-actions .button { padding-inline: .78rem; font-size: .77rem; }
  .hero-inner { padding-top: 15.75rem; }
  .hero-release-link small { max-width: 16ch; }
}

@media (min-width: 700px) {
  .hero[data-registered-portraits] { min-height: min(52rem, 92svh); }
  .hero-art::before { background-position: center 65%; background-size: cover; }
  .poster-plates {
    top: auto;
    bottom: -6%;
    right: max(2%, calc((100vw - 86rem) / 2));
    height: 101%;
    max-width: 64%;
    mask-image: linear-gradient(0deg, transparent, #000 20%, #000 97%, transparent);
  }
  .hero[data-registered-portraits] .hero-edge {
    background: linear-gradient(90deg, #07101c8a, #08131d25 42%, transparent 65%), linear-gradient(0deg, #091019 0%, #0910198f 11%, transparent 39%);
  }
  .hero-inner {
    grid-template-rows: 1fr auto;
    align-items: end;
    justify-content: stretch;
    gap: clamp(2rem, 5.5svh, 4.5rem);
    padding: clamp(7rem, 19svh, 13.5rem) var(--shell) clamp(1rem, 3svh, 1.9rem);
  }
  .hero-copy { width: 52%; }
  .hero h1 { width: 100%; max-width: 44rem; }
  .hero-description { margin-top: clamp(1rem, 2.4svh, 1.65rem); }
  .hero-actions .button { min-height: 48px; padding-inline: 1.38rem; }
  .hero .hero-actions { gap: .85rem; margin-top: 1.4rem; }
  .hero-release-link { display: flex; gap: 1rem; align-items: center; }
  .hero-premiere { padding-top: 1rem; }
}

@media (min-width: 1450px) {
  .poster-plates { right: max(5%, calc((100vw - 80rem) / 2)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .title-fire { display: none; }
}
