.hero {
  overflow: hidden;
}

header {
  background: #060504;
}

header::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 100%;
  left: 0;
  width: 100%;
  height: 172px;
  pointer-events: none;
  background: linear-gradient(180deg, #060504 0%, rgba(6, 5, 4, .96) 22%, rgba(6, 5, 4, .72) 48%, rgba(6, 5, 4, .3) 76%, transparent 100%);
  transition: opacity .3s ease;
}

header.scrolled::after {
  opacity: 0;
}

.hero-video {
  overflow: hidden;
  background: #070503;
}

.hero-video video,
.hero-video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.hero-video video {
  z-index: 1;
}

.hero-video-fallback {
  z-index: 0;
}

.hero-cinema::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 35% 0 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 5, 3, .3) 0%, rgba(7, 5, 3, .2) 54%, rgba(7, 5, 3, .1) 74%, rgba(7, 5, 3, .03) 90%, transparent 100%);
  -webkit-backdrop-filter: blur(5px) saturate(.92);
  backdrop-filter: blur(5px) saturate(.92);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 70%, rgba(0, 0, 0, .55) 85%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 70%, rgba(0, 0, 0, .55) 85%, transparent 100%);
}

.hero-cinema::after {
  background:
    linear-gradient(90deg, rgba(7, 5, 3, .46) 0%, rgba(7, 5, 3, .38) 34%, rgba(7, 5, 3, .29) 46%, rgba(7, 5, 3, .19) 56%, rgba(7, 5, 3, .09) 65%, transparent 73%),
    linear-gradient(180deg, #060504 0%, #060504 13%, rgba(6, 5, 4, .94) 19%, rgba(6, 5, 4, .68) 26%, rgba(6, 5, 4, .26) 34%, transparent 42%),
    linear-gradient(0deg, rgba(7, 5, 3, .42), transparent 34%);
}

.hero-cinema .hero-content {
  width: min(var(--max), calc(100% - 48px));
  max-width: var(--max);
}

.hero-cinema .hero-content > * {
  max-width: 620px;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .88);
}

.hero-cinema h1 {
  font-size: clamp(4rem, 6.8vw, 7.25rem);
}

@media (max-width: 900px) {
  header::after {
    height: 132px;
  }

  .hero-cinema {
    min-height: 100svh;
    display: block;
    background: #070503;
  }

  .hero-cinema .hero-video {
    inset: 0 0 auto;
    height: 52svh;
  }

  .hero-cinema::after {
    inset: 0 0 auto;
    height: 54svh;
    background: linear-gradient(0deg, #070503 0%, transparent 36%), linear-gradient(180deg, #060504 0%, #060504 18%, rgba(6, 5, 4, .86) 28%, rgba(6, 5, 4, .32) 40%, transparent 52%);
  }

  .hero-cinema::before {
    display: none;
  }

  .hero-cinema .hero-content {
    width: min(100% - 32px, var(--max));
    max-width: none;
    padding: calc(52svh + 30px) 0 76px;
  }

  .hero-cinema .hero-content > * {
    max-width: 680px;
  }

  .hero-cinema h1 {
    font-size: clamp(3.45rem, 13vw, 5.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video video {
    display: none;
  }
}
