/* Film opening: media, typography, playback controls, and responsive motion.
 * Keep the HTML stylesheet order: specificity and module order define the cascade.
 */

.screening-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: calc(100svh - var(--size-header-desktop));
  background: #080b13;
  color: var(--color-white);
  overflow: clip;
}

.screening-hero video,
.screening-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.screening-hero video {
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.screening-blur {
  display: none;
  z-index: -1;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  mask-image: linear-gradient(to top, black, transparent 45%);
  -webkit-mask-image: linear-gradient(to top, black, transparent 45%);
}

.screening-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: none;
}

.screening-content {
  align-self: start;
  padding-block: clamp(5rem, 15svh, 10rem) var(--space-12);
  text-align: left;
  text-shadow: 0 2px 20px #000, 0 1px 4px #000;
}

.screening-content :is(h1,p) {
  margin-inline: 0;
}

.screening-content h1 {
  max-width: 13ch;
  color: inherit;
  font-family: var(--font-screening);
  font-weight: 500;
  font-size: clamp(2rem,4.8vw,4.75rem);
  font-variation-settings: "wght" 506;
  line-height: 1.02;
  text-wrap: balance;
}

.screening-content p {
  max-width: 52ch;
  margin-block: var(--space-5) 1.75rem;
  color: #e3e8f0;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.screening-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--space-3);
}

.screening-actions a,
.screening-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .65rem 1.2rem;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
}

.screening-actions a:first-child {
  background: var(--color-white);
  color: #090c14;
  text-shadow: none;
}

.screening-glass {
  position: relative;
  background: rgb(12 17 30 / .65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5);
  color: var(--color-white);
}

.screening-toggle {
  position: absolute;
  inset: 1rem 1rem auto auto;
  border: 0;
}

.screening-toggle[hidden] {
  display: none;
}

.screening-hero :is(a,button):hover {
  text-decoration: underline;
  text-underline-offset: .18em;
}

.screening-hero :is(a,button):focus-visible {
  outline: 2px solid #91e8ff;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .screening-content :is(h1,p,.screening-actions) {
    animation: screening-arrive 700ms ease-out both;
  }

  .screening-content p {
    animation-delay: 90ms;
  }

  .screening-actions {
    animation-delay: 180ms;
  }

  @keyframes screening-arrive {
    from {
      opacity: .35;
      transform: translateY(16px);
      filter: blur(4px);
    }

    to {
      opacity: 1;
      transform: none;
      filter: none;
    }
  }
}

@media (max-width: 640px) {
  .screening-hero video {
    height: 100%;
    object-position: 60% center;
    mask-image: none;
  }

  .screening-content {
    text-align: center;
    padding-block: 5rem 0;
  }

  .screening-content :is(h1,p) {
    margin-inline: auto;
  }

  .screening-actions {
    justify-content: center;
  }
}
