:root {
  --black: #07070a;
  --ink: #FFE5C5;
  --ink-dim: rgba(255, 229, 197, .72);
  --ink-faint: rgba(255, 229, 197, .45);
  --orange: #FA590F;
}

* { box-sizing: border-box; min-width: 0; }

html, body { margin: 0; height: 100%; }

body {
  background: var(--black);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- entrance / scroll animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-in {
  opacity: 0;
  animation: fadeUp .9s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: var(--delay, 0s);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22,1,.36,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 6vh, 64px) 20px clamp(28px, 5vh, 56px);
}

/* the <picture> wrapper sits behind everything, out of the layout flow */
.hero > picture { position: absolute; inset: 0; z-index: 0; }

/* the key art fills the screen; the crop favours the star */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform-origin: 50% 100%;
  will-change: transform;
  transform: scale(1.3);   /* zoom on the star; grows from the bottom edge */
  z-index: 0;
}

/* darkens only the lower part, so the candles stay bright,
   and fades into the black of the next section */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(7,7,10,0) 62%,
    rgba(7,7,10,.42) 73%,
    rgba(7,7,10,.84) 84%,
    rgba(7,7,10,.96) 93%,
    var(--black) 100%);
}

/* Logo block sits over the star.
   These numbers are measured from the artwork: the image is zoomed 1.3x from
   its bottom edge, which puts the star slightly left of centre with its middle
   at ~49% of the image height. The logo is sized to ~70% of the star's width
   (33.8vh) and offset to match. If the key art changes, re-measure. */
.hero-content {
  position: absolute;
  top: 21.5vh;
  top: 21.5svh;                 /* svh keeps this in step with the hero's own height */
  left: 50%;
  transform: translateX(calc(-50% - 5.3vh));   /* the star sits slightly left of centre */
  transform: translateX(calc(-50% - 5.3svh));
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.hero-tags {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(45vh, 92vw);
  width: min(45svh, 92vw);
}

.hero-tags-sub {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-tag {
  font-size: clamp(11px, 2.4vw, 13px);
  letter-spacing: .28em;
  color: var(--orange);
  opacity: .85;
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}

.hero-logo {
  width: min(33.8vh, 62vw);
  width: min(33.8svh, 62vw);
  filter: drop-shadow(0 6px 30px rgba(0,0,0,.6));
}

/* ---------- SIGNUP (inside the hero, no box) ---------- */
.hero-signup {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  margin: 0 auto;
  text-align: center;
}

.notg-signup .intro {
  margin: 0 0 16px;
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--ink-dim);
  text-shadow: 0 2px 14px rgba(0,0,0,.9);
}

.notg-signup .row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.notg-signup input[type="email"] {
  flex: 1 1 260px;
  padding: 13px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(7,7,10,.45);
  border: 1px solid rgba(255,229,197,.32);
  border-radius: 3px;
  backdrop-filter: blur(3px);
  transition: border-color .25s ease, background .25s ease;
}
.notg-signup input[type="email"]::placeholder { color: var(--ink-faint); }
.notg-signup input[type="email"]:hover { border-color: rgba(255,229,197,.5); }
.notg-signup input[type="email"]:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(7,7,10,.7);
}

.notg-signup button {
  flex: 0 0 auto;
  padding: 13px 26px;
  font: inherit;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #0b0b0e;
  background: var(--orange);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  transition: filter .25s ease, transform .25s ease;
}
.notg-signup button:hover { filter: brightness(1.12); transform: translateY(-1px); }
.notg-signup button:disabled { opacity: .6; cursor: wait; transform: none; }

.notg-signup .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: center;
  margin: 14px 0 0;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--ink-dim);
  text-align: left;
  cursor: pointer;
  text-shadow: 0 2px 12px rgba(0,0,0,.9);
}
.notg-signup .consent input {
  margin: 3px 0 0;
  width: 15px;
  height: 15px;
  accent-color: var(--orange);
  flex: none;
}
.notg-signup .consent a { color: var(--ink-faint); text-decoration: underline; }
.notg-signup .consent a:hover { color: var(--orange); }

.notg-signup .message {
  margin: 12px 0 0;
  font-size: .9rem;
  min-height: 1.2em;
  text-shadow: 0 2px 12px rgba(0,0,0,.9);
}
.notg-signup .message.is-success { color: #a8d6a0; }
.notg-signup .message.is-error { color: #ff9a8b; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.hp { position: absolute; left: -5000px; }

/* Tall screens (phones) use the portrait crop. The artwork is slid upwards so
   the star sits a quarter of the way down the screen, with the logo on it, and
   the picture fades into black above the signup form. */
@media (max-aspect-ratio: 5/8) {
  .hero-bg { transform: translateY(-26vh); transform: translateY(-26svh); }
  .hero-content { top: 13.5vh; top: 13.5svh; transform: translateX(-50%); }
  .hero-logo { width: min(26vh, 62vw); width: min(26svh, 62vw); }
  .hero-tags { width: min(35vh, 88vw); width: min(35svh, 88vw); }
  .hero-veil {
    background: linear-gradient(to bottom,
      rgba(7,7,10,0) 40%,
      rgba(7,7,10,.35) 55%,
      rgba(7,7,10,.85) 68%,
      var(--black) 76%);
  }
}

/* phones: a little more breathing room, stacked button */
@media (max-width: 640px) {
  .hero { padding: 34px 20px 34px; }
  .notg-signup .row { flex-direction: column; align-items: stretch; }
  .notg-signup input[type="email"] { flex: 0 0 auto; width: 100%; }
  .notg-signup button { width: 100%; }
  .notg-signup .consent { font-size: .78rem; }
}

/* short landscape screens: keep everything on one screen */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: 100vh; padding: 24px 20px 20px; }
}

/* ---------- TRAILER ---------- */
.trailer {
  background: var(--black);
  padding: clamp(48px, 9vw, 96px) 20px clamp(56px, 10vw, 96px);
}

.trailer-inner { max-width: 960px; margin: 0 auto; }

.section-title {
  margin: 0 0 clamp(16px, 3vw, 26px);
  text-align: center;
  font-weight: 400;
  font-size: clamp(13px, 2.4vw, 15px);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--orange);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,229,197,.12);
  border-radius: 4px;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  display: block;
  font: inherit;
  color: var(--ink);
}

.video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
  transition: opacity .4s ease, transform .6s cubic-bezier(.22,1,.36,1);
}
.video-facade:hover .video-poster { opacity: 1; transform: scale(1.03); }

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(52px, 7vw, 70px);
  height: clamp(52px, 7vw, 70px);
  border-radius: 50%;
  background: rgba(7,7,10,.55);
  border: 1px solid var(--orange);
  backdrop-filter: blur(2px);
  transition: background .3s ease, transform .3s ease;
}
.video-play::after {
  content: '';
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent var(--orange);
}
.video-facade:hover .video-play { background: rgba(250,89,15,.2); transform: translate(-50%, -50%) scale(1.07); }
.video-facade:focus-visible .video-play { outline: 2px solid var(--orange); outline-offset: 6px; }

.video-label {
  position: absolute;
  left: 0; right: 0; bottom: 8%;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-dim);
  text-shadow: 0 2px 14px rgba(0,0,0,.95);
}
.video-duration { color: var(--ink-faint); margin-left: 8px; letter-spacing: .1em; }

/* the video is small on phones: drop the caption, keep the button clear */
@media (max-width: 640px) {
  .video-label { display: none; }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(255,229,197,.1);
  padding: clamp(28px, 5vw, 44px) 20px;
  padding-bottom: calc(clamp(28px, 5vw, 44px) + env(safe-area-inset-bottom, 0px));
}

.footer-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
}

.footer-logo { width: 56px; opacity: .8; flex: 0 0 auto; }

.footer-contact { font-size: 13px; line-height: 1.7; text-align: right; }

.footer-contact-label {
  display: block;
  color: var(--orange);
  font-size: 11px;
  letter-spacing: .16em;
  margin-bottom: 4px;
}

.footer-contact strong { display: block; font-weight: 500; color: var(--ink); }

.footer-contact a { display: block; color: var(--ink-dim); transition: color .25s ease; }
.footer-contact a:hover { color: var(--orange); }

.footer-legal {
  max-width: 560px;
  margin: clamp(22px, 4vw, 32px) auto 0;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
  color: rgba(255,229,197,.35);
}
.footer-legal a { text-decoration: underline; }
.footer-legal a:hover { color: var(--orange); }

@media (max-width: 560px) {
  .footer-inner { flex-direction: column; text-align: center; gap: 14px; }
  .footer-logo { width: 40px; }
  .footer-contact { text-align: center; }
}
