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

html, body {
  height: 100%;
  background: transparent;
  color: #e8e4df;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Fonts === */
@font-face {
  font-family: 'Champagne Limousines';
  src: url('../fonts/champagne-limousines.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Champagne Limousines';
  src: url('../fonts/champagne-limousines-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

/* === Base === */
body {
  font-family: 'Champagne Limousines', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

a {
  color: #e8e4df;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* === Video Background === */
.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  background: #0a0a0a;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.video-bg video.is-playing {
  animation: video-reveal 2.5s ease-out forwards;
}

@keyframes video-reveal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
}

/* === Content Layer === */
.content {
  position: relative;
  z-index: 1;
}

/* === Hero === */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  position: relative;
}

.title {
  font-family: 'Champagne Limousines', sans-serif;
  font-weight: 400;
  font-size: 4.5rem;
  letter-spacing: 0.3em;
  color: #c0c0d8;
  text-transform: uppercase;
  margin-right: -0.3em;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.fonts-loaded .title {
  opacity: 1;
}

.subtitle {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #c0c0d8;
  opacity: 0;
  margin-top: 1.5rem;
  transition: opacity 1.5s ease;
}

.fonts-loaded .subtitle {
  opacity: 0.4;
}

.logline {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #c0c0d8;
  max-width: 520px;
  margin: 0 auto 3.5rem;
  text-align: center;
  line-height: 1.8;
  opacity: 0.85;
}

/* === Scroll Indicator === */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 30px;
  background: #e8e4df;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.15; }
}

.scroll-indicator.hidden {
  animation: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* === Panel === */
.panel {
  background: rgba(10, 10, 10, 0.85);
  padding: 4rem 2rem;
}

/* === Laurels === */
.laurels {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.laurel {
  width: auto;
  opacity: 0.9;
}

.laurel--tall {
  height: 100px;
}

.laurel--wide {
  height: 75px;
}

/* === Credits === */
.credits {
  max-width: 900px;
  margin: 4rem auto 0;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

.credit {
  flex: 0 0 calc(33.333% - 2rem);
  animation: flicker 4s ease-in-out infinite;
}

.credit:nth-child(2) { animation-delay: 0.7s; }
.credit:nth-child(3) { animation-delay: 1.3s; }
.credit:nth-child(4) { animation-delay: 0.4s; }
.credit:nth-child(5) { animation-delay: 1.8s; }
.credit:nth-child(6) { animation-delay: 1.1s; }
.credit:nth-child(7) { animation-delay: 2.2s; }
.credit:nth-child(8) { animation-delay: 0.9s; }
.credit:nth-child(9) { animation-delay: 1.6s; }
.credit:nth-child(10) { animation-delay: 0.3s; }
.credit:nth-child(11) { animation-delay: 2.0s; }

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.82; }
}

.credit-role {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c0c0d8;
  margin-bottom: 0.4rem;
}

.credit-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.6;
}

a.credit-name {
  color: #ffffff;
  text-decoration: none;
}

a.credit-name:hover {
  text-decoration: underline;
}

/* === Cast === */
.cast {
  max-width: 700px;
  margin: 4rem auto 0;
  text-align: center;
}

.cast-header {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c0c0d8;
  margin-bottom: 2rem;
}

.cast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.cast-member {
  text-align: center;
}

.cast-character {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c0c0d8;
  margin-bottom: 0.2rem;
}

.cast-actor {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

a.cast-actor {
  color: #ffffff;
  text-decoration: none;
}

a.cast-actor:hover {
  text-decoration: underline;
}

.cast-special {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c0c0d8;
  margin: 2.5rem 0;
}

.cast-special strong {
  font-weight: 700;
  color: #ffffff;
}

/* === Links === */
.links {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.links a {
  padding: 0.5rem;
}

.link-sep {
  margin: 0 0.25rem;
  opacity: 0.4;
}

/* === Footer === */
.footer {
  text-align: center;
  margin-top: 3rem;
  padding-bottom: 2rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.3;
}

/* === Mobile === */
@media (max-width: 768px) {
  .title {
    font-size: 2.5rem;
  }

  .logline {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .laurels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    gap: 2rem;
  }

  .laurel--tall {
    height: 80px;
  }

  .laurel--wide {
    height: 60px;
  }

  .laurel:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .credit {
    flex: 0 0 calc(50% - 1.5rem);
  }

  .cast-grid {
    gap: 1.5rem;
  }
}
