/* ============================================================
   ELITE MEDIA PRODUCTIONS — "FROM NOTHING. TO EVERYTHING."
   ============================================================ */
@import url("tokens.css");

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  overflow-x: hidden;
}

/* ---------- fixed stage ---------- */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000;
  overflow: hidden;
}

.clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.clip.active { opacity: 1; }

/* color grade wash that shifts with the journey */
.grade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.55;
}

/* film grain */
.grain {
  position: absolute;
  inset: -100px;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='240' height='240' filter='url(%23n)' opacity='0.9'/></svg>");
  animation: grain-shift 0.7s steps(4) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-40px, 30px); }
  50%  { transform: translate(30px, -50px); }
  75%  { transform: translate(-30px, -20px); }
  100% { transform: translate(0, 0); }
}

/* lens flare sweep on act transitions */
.flare {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40vw;
  left: -60vw;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(255, 201, 102, 0.10) 35%,
    rgba(255, 240, 214, 0.45) 50%,
    rgba(255, 201, 102, 0.10) 65%,
    transparent 100%);
  filter: blur(6px);
  transform: skewX(-12deg);
}
.flare.sweep { animation: flare-sweep 0.9s ease-out forwards; }
@keyframes flare-sweep {
  0%   { left: -60vw; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 120vw; opacity: 0; }
}

/* ---------- viewfinder HUD ---------- */
.hud {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  font-family: var(--sans);
  letter-spacing: 0.14em;
  color: var(--hud);
  font-size: 12px;
}

.hud-corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--hud);
  opacity: 0.75;
}
.hud-corner.tl { top: 22px;  left: 22px;  border-right: none; border-bottom: none; }
.hud-corner.tr { top: 22px;  right: 22px; border-left: none;  border-bottom: none; }
.hud-corner.bl { bottom: 22px; left: 22px;  border-right: none; border-top: none; }
.hud-corner.br { bottom: 22px; right: 22px; border-left: none;  border-top: none; }

.hud-top, .hud-bottom {
  position: absolute;
  left: 70px;
  right: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hud-top { top: 30px; }
.hud-bottom { bottom: 30px; }

.hud-rec { display: flex; align-items: center; gap: 8px; }
.rec-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 8px #ff3b30;
  animation: rec-pulse 1.2s ease-in-out infinite;
}
@keyframes rec-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.hud-brand { letter-spacing: 0.5em; font-size: 11px; opacity: 0.9; }

.hud-tc {
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(232, 163, 61, 0.35);
}

.hud-right { display: flex; align-items: center; gap: 26px; }
.hud-nav-tab {
  pointer-events: auto;
  color: var(--hud);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.35em;
  padding: 6px 12px;
  border: 1px solid rgba(242, 237, 228, 0.35);
  transition: color 0.25s, border-color 0.25s;
}
.hud-nav-tab:hover { color: var(--gold-bright); border-color: var(--gold); }

.cross-link {
  margin-top: 34px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(242, 237, 228, 0.7);
}
.cross-link a { color: var(--gold-bright); text-decoration: none; }
.cross-link a:hover { text-decoration: underline; }
.site-footer a { color: rgba(242, 237, 228, 0.45); text-decoration: none; letter-spacing: 0.3em; }
.site-footer a:hover { color: var(--gold-bright); }

.hud-meta { display: flex; gap: 18px; opacity: 0.85; }
.hud-meta span { animation: meta-flicker 6s infinite; }
.hud-meta span:nth-child(2) { animation-delay: 1.7s; }
.hud-meta span:nth-child(3) { animation-delay: 3.1s; }
.hud-meta span:nth-child(4) { animation-delay: 4.6s; }
@keyframes meta-flicker {
  0%, 96%, 100% { opacity: 1; }
  97% { opacity: 0.35; }
  98% { opacity: 0.9; }
  99% { opacity: 0.5; }
}

.hud-phase {
  font-size: 13px;
  letter-spacing: 0.45em;
  color: var(--gold-bright);
  text-align: center;
}
.hud-bat { opacity: 0.7; }

/* ---------- scroll content ---------- */
#content { position: relative; z-index: 10; }

.act {
  height: 220vh;
  position: relative;
}
.act-final { height: 260vh; }

.panel {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 8vw;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.panel.visible { opacity: 1; transform: translateY(0); }

.kicker {
  font-size: 12px;
  letter-spacing: 0.55em;
  color: var(--gold);
  margin-bottom: 26px;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  text-shadow: 0 2px 30px rgba(0,0,0,0.75);
}
.hero-title { font-size: clamp(3rem, 9vw, 8rem); letter-spacing: 0.04em; }
h2 { font-size: clamp(2.2rem, 5.5vw, 4.6rem); }

.hero-sub {
  margin-top: 30px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(242, 237, 228, 0.85);
}

.scroll-cue {
  position: absolute;
  bottom: 12vh;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: rgba(242, 237, 228, 0.6);
}
.cue-line {
  display: block;
  width: 1px;
  height: 46px;
  margin: 14px auto 0;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

.body-copy {
  margin-top: 28px;
  max-width: 520px;
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 1.9;
  color: rgba(242, 237, 228, 0.8);
}

.cap-list {
  list-style: none;
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 30px;
}
.cap-list li {
  font-size: 13px;
  letter-spacing: 0.35em;
  padding: 10px 22px;
  border: 1px solid rgba(232, 163, 61, 0.45);
  color: var(--gold-bright);
  text-transform: uppercase;
}

/* premiere */
.reel-btn {
  margin-top: 36px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.35em;
  padding: 16px 38px;
  background: transparent;
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.reel-btn:hover {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 0 40px rgba(232, 163, 61, 0.45);
}

.cta-form {
  margin-top: 54px;
  width: min(620px, 90vw);
  border: 1px solid rgba(242, 237, 228, 0.18);
  background: rgba(5, 5, 5, 0.55);
  backdrop-filter: blur(10px);
  padding: 38px 34px 30px;
}
.form-title {
  font-size: 12px;
  letter-spacing: 0.5em;
  color: var(--gold);
  margin-bottom: 26px;
}
.form-row { display: flex; gap: 14px; margin-bottom: 14px; }
.cta-form input, .cta-form select {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 1px solid rgba(242, 237, 228, 0.25);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  padding: 14px 16px;
  outline: none;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
.cta-form select { cursor: pointer; }
.cta-form select option { background: var(--ink); color: var(--bone); }
.cta-form input:focus, .cta-form select:focus { border-color: var(--gold); }
.cta-form input.invalid, .cta-form select.invalid { border-color: #ff3b30; }

.form-error {
  color: #ff6b60;
  font-size: 11px;
  letter-spacing: 0.2em;
  min-height: 16px;
  margin-bottom: 10px;
  display: none;
}
.form-error.show { display: block; }

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--gold);
  border: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.4em;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}
.submit-btn:hover { background: var(--gold-bright); box-shadow: 0 0 44px rgba(232, 163, 61, 0.5); }

.form-ok {
  display: none;
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--gold-bright);
}
.form-ok.show { display: block; }

.site-footer {
  margin-top: 60px;
  display: flex;
  gap: 40px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(242, 237, 228, 0.45);
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox video { width: min(1100px, 92vw); box-shadow: 0 0 120px rgba(232,163,61,0.25); }
.lightbox-close {
  position: absolute;
  top: 26px;
  right: 34px;
  background: none;
  border: none;
  color: var(--bone);
  font-size: 42px;
  cursor: pointer;
  line-height: 1;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .rec-dot, .cue-line, .hud-meta span { animation: none !important; }
  .flare { display: none; }
  .panel { transition: opacity 0.2s linear; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .hud-top, .hud-bottom { left: 20px; right: 20px; }
  .hud-brand, .hud-bat { display: none; }
  .hud-right { gap: 12px; }
  .hud-nav-tab { font-size: 9px; letter-spacing: 0.2em; padding: 5px 8px; white-space: nowrap; }
  .hud-tc { font-size: 12px; }
  .form-row { flex-direction: column; }
  .hud-corner { width: 22px; height: 22px; }
}
