/* ─── Reset & Tokens ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --film-black: #0B0B0F;
  --spotlight: #F5F1E8;
  --gold: #C8A45D;
  --shadow: #1A1A22;
  --accent-red: #E63946;

  --font-head: "Playfair Display", Didot, "Bodoni MT", Georgia, serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease-cinematic: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--film-black);
  color: var(--spotlight);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ─── Keyframes ─── */
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scene-reveal {
  from {
    opacity: 0;
    transform: translateY(3rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spotlight-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%       { opacity: 0.7;  transform: scale(1.04); }
}

@keyframes bg-zoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

@keyframes flicker {
  0%, 100% { opacity: 0; }
  48%       { opacity: 0; }
  49%       { opacity: 0.03; }
  50%       { opacity: 0; }
  87%       { opacity: 0; }
  88%       { opacity: 0.02; }
  89%       { opacity: 0; }
}

@keyframes scroll-cue-pulse {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.55; transform: translateX(-50%) translateY(0.4rem); }
}

/* Scroll-driven reveals */
.scene-reveal {
  animation: scene-reveal 1.8s var(--ease-slow) both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

/* ─── Shared Components ─── */
.section-label {
  font-family: var(--font-body);
  font-size: clamp(0.6875rem, 1.2vw, 0.75rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: clamp(3rem, 8vw, 6rem);
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: clamp(0.8125rem, 1.4vw, 0.9375rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  border: 1px solid transparent;
  transition: background 0.6s var(--ease-cinematic),
              color 0.6s var(--ease-cinematic),
              border-color 0.6s var(--ease-cinematic);
}

.btn-primary {
  background: var(--gold);
  color: var(--film-black);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: transparent;
  color: var(--gold);
}

.btn-secondary {
  background: transparent;
  color: var(--spotlight);
  border-color: rgba(245, 241, 232, 0.35);
}

.btn-secondary:hover {
  border-color: var(--spotlight);
  color: var(--spotlight);
}

/* ─── Hero: Opening Film Frame ─── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(3rem, 10vw, 8rem) clamp(1.5rem, 6vw, 4rem);
  overflow: hidden;
  background: var(--film-black);
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(200, 164, 93, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(245, 241, 232, 0.04) 0%, transparent 55%),
    var(--film-black);
  animation: bg-zoom 4s var(--ease-slow) both,
             spotlight-pulse 8s ease-in-out 4s infinite;
  z-index: 0;
}

.hero-flicker {
  position: absolute;
  inset: 0;
  background: var(--spotlight);
  animation: flicker 12s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.hero > *:not(.hero-spotlight):not(.hero-flicker) {
  position: relative;
  z-index: 2;
}

.wordmark {
  font-family: var(--font-body);
  font-size: clamp(0.6875rem, 1.2vw, 0.8125rem);
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  margin-bottom: clamp(2.5rem, 7vw, 5rem);
  animation: fade-in 2.5s ease 0.3s both;
}

.hero-headline {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2.25rem, 6.5vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  animation: rise-in 2.8s var(--ease-slow) 0.6s both;
}

.hero-subtext {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.8vw, 1.125rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.7;
  color: rgba(245, 241, 232, 0.6);
  max-width: 38ch;
  margin-bottom: clamp(3rem, 7vw, 5rem);
  animation: fade-in 2.5s ease 1.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  animation: fade-in 2.5s ease 1.8s both;
}

.scroll-cue {
  position: absolute;
  bottom: clamp(2rem, 5vw, 3.5rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.35);
  animation: scroll-cue-pulse 3s ease-in-out 3s infinite;
}

/* ─── Scenes Section ─── */
.scenes {
  padding: clamp(8rem, 20vw, 16rem) clamp(1.5rem, 8vw, 6rem);
  border-top: 1px solid rgba(200, 164, 93, 0.12);
}

.scene {
  padding: clamp(5rem, 14vw, 11rem) 0;
  border-bottom: 1px solid rgba(26, 26, 34, 0.8);
}

.scene:last-of-type {
  border-bottom: none;
}

.scene-number {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(0.6875rem, 1.2vw, 0.75rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.65;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.scene-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 16ch;
}

.scene-desc {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.85;
  color: rgba(245, 241, 232, 0.55);
  max-width: 42ch;
}

.scene:nth-of-type(even) .scene-title,
.scene:nth-of-type(even) .scene-desc {
  margin-left: auto;
  text-align: right;
}

.scene:nth-of-type(even) .scene-number {
  text-align: right;
}

/* ─── Typographic Cinema ─── */
.typo-cinema {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(8rem, 22vw, 18rem) clamp(1.5rem, 6vw, 4rem);
  background: var(--shadow);
  overflow: hidden;
}

.typo-word {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(3.5rem, 14vw, 11rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: rgba(245, 241, 232, 0.08);
  user-select: none;
  pointer-events: none;
}

.typo-left {
  text-align: left;
  margin-bottom: clamp(4rem, 12vw, 10rem);
  padding-left: clamp(0rem, 4vw, 3rem);
}

.typo-right {
  text-align: right;
  margin-bottom: clamp(4rem, 12vw, 10rem);
  padding-right: clamp(0rem, 6vw, 5rem);
  color: rgba(200, 164, 93, 0.12);
}

.typo-center {
  text-align: center;
  color: rgba(245, 241, 232, 0.06);
  letter-spacing: 0.08em;
}

/* ─── Film Strip ─── */
.film-strip {
  padding: clamp(6rem, 16vw, 12rem) 0 clamp(6rem, 16vw, 12rem) clamp(1.5rem, 6vw, 4rem);
  border-top: 1px solid rgba(200, 164, 93, 0.12);
  overflow: hidden;
}

.film-strip .section-label {
  padding-right: clamp(1.5rem, 6vw, 4rem);
}

.strip-track {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.5rem;
  padding-right: clamp(1.5rem, 6vw, 4rem);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 164, 93, 0.3) transparent;
}

.strip-track::-webkit-scrollbar {
  height: 3px;
}

.strip-track::-webkit-scrollbar-thumb {
  background: rgba(200, 164, 93, 0.35);
  border-radius: 2px;
}

.frame {
  flex: 0 0 clamp(16rem, 38vw, 22rem);
  scroll-snap-align: start;
}

.frame-visual {
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(200, 164, 93, 0.2);
  overflow: hidden;
  transition: transform 1.2s var(--ease-slow);
}

.frame:hover .frame-visual {
  transform: scale(1.04);
}

.frame figcaption {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.4);
  margin-top: 1rem;
}

/* Abstract frame visuals */
.frame-1 .frame-visual {
  background:
    radial-gradient(circle at 30% 70%, rgba(200, 164, 93, 0.5) 0%, transparent 50%),
    linear-gradient(160deg, var(--shadow) 0%, var(--film-black) 100%);
}

.frame-2 .frame-visual {
  background:
    linear-gradient(var(--film-black), var(--film-black)),
    repeating-linear-gradient(0deg, transparent, transparent 18px, rgba(245, 241, 232, 0.04) 18px, rgba(245, 241, 232, 0.04) 19px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.frame-2 .frame-visual::after {
  content: "T";
  font-family: var(--font-head);
  font-size: 6rem;
  color: rgba(200, 164, 93, 0.25);
  letter-spacing: -0.05em;
}

.frame-3 .frame-visual {
  background:
    radial-gradient(ellipse at 60% 30%, rgba(230, 57, 70, 0.15) 0%, transparent 55%),
    linear-gradient(220deg, #12121a 0%, var(--film-black) 100%);
}

.frame-4 .frame-visual {
  background:
    linear-gradient(180deg, rgba(245, 241, 232, 0.06) 0%, transparent 40%),
    linear-gradient(0deg, var(--shadow) 0%, var(--film-black) 80%);
}

.frame-5 .frame-visual {
  background:
    radial-gradient(circle at 50% 50%, rgba(200, 164, 93, 0.08) 0%, transparent 60%),
    conic-gradient(from 200deg at 50% 80%, var(--shadow), var(--film-black), var(--shadow));
}

/* ─── Emotion Statements ─── */
.emotion {
  padding: clamp(10rem, 24vw, 18rem) clamp(1.5rem, 6vw, 4rem);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(200, 164, 93, 0.06) 0%, transparent 70%),
    var(--film-black);
}

.emotion-line {
  border: none;
  margin-bottom: clamp(4rem, 10vw, 7rem);
}

.emotion-line:last-child {
  margin-bottom: 0;
}

.emotion-line p {
  font-family: var(--font-head);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: rgba(245, 241, 232, 0.85);
}

.emotion-line:nth-child(2) p {
  color: var(--gold);
  opacity: 0.85;
}

/* ─── Director's Note ─── */
.directors-note {
  padding: clamp(8rem, 20vw, 16rem) clamp(1.5rem, 10vw, 8rem);
  max-width: 44rem;
  margin-inline: auto;
  border-top: 1px solid rgba(200, 164, 93, 0.12);
}

.note-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  margin-bottom: clamp(3rem, 8vw, 5rem);
  color: var(--gold);
}

.note-body p {
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 400;
  line-height: 2;
  color: rgba(245, 241, 232, 0.65);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.note-body p:last-child {
  margin-bottom: 0;
  color: rgba(245, 241, 232, 0.45);
  font-style: italic;
}

/* ─── Final CTA ─── */
.final-cta {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 6vw, 4rem);
  overflow: hidden;
  background: var(--film-black);
}

.cta-spotlight {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 50%, rgba(200, 164, 93, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(26, 26, 34, 0.9) 0%, var(--film-black) 70%);
  z-index: 0;
}

.final-cta > *:not(.cta-spotlight) {
  position: relative;
  z-index: 1;
}

.cta-headline {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2.25rem, 6vw, 4.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3vw, 1.75rem);
}

/* ─── Film Credits Footer ─── */
.credits {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.5rem, 6vw, 4rem) clamp(5rem, 12vw, 9rem);
  text-align: center;
  border-top: 1px solid rgba(26, 26, 34, 0.9);
  background: var(--shadow);
}

.credits-title {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.5);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.credits-contact {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.4vw, 1rem);
  letter-spacing: 0.06em;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.credits-contact a {
  color: var(--gold);
  border-bottom: 1px solid rgba(200, 164, 93, 0.4);
  padding-bottom: 0.15em;
  transition: border-color 0.5s ease, color 0.5s ease;
}

.credits-contact a:hover {
  color: var(--spotlight);
  border-color: var(--spotlight);
}

.credits-meta {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.25);
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-spotlight,
  .hero-flicker,
  .scroll-cue,
  .wordmark,
  .hero-headline,
  .hero-subtext,
  .hero-actions,
  .scene-reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .frame-visual {
    transition: none;
  }

  .frame:hover .frame-visual {
    transform: none;
  }
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .scene:nth-of-type(even) .scene-title,
  .scene:nth-of-type(even) .scene-desc,
  .scene:nth-of-type(even) .scene-number {
    margin-left: 0;
    text-align: left;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn {
    width: 100%;
    max-width: 18rem;
    text-align: center;
  }

  .typo-word {
    font-size: clamp(2.75rem, 18vw, 5rem);
  }
}
