.hero.hero--film {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 44px;
  min-height: auto;
  padding-top: 28px;
}

.hero--film .hero__content {
  max-width: 860px;
}

.hero--film h1 {
  max-width: 860px;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: 0;
}

.homepage-film {
  order: -1;
  align-self: center;
  width: min(100%, calc((100svh - 300px) * 16 / 9));
  margin: 0;
}

.homepage-film__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #14272f;
}

.homepage-film__poster,
.homepage-film__poster img,
.homepage-film__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.homepage-film__video {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.homepage-film[data-frame-ready] .homepage-film__video {
  opacity: 1;
}

.homepage-film__toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(20, 39, 47, 0.9);
  color: #fff;
  cursor: pointer;
}

.homepage-film__toggle[hidden] {
  display: none;
}

.homepage-film__toggle:focus-visible {
  outline: 3px solid #21c4c2;
  outline-offset: 4px;
}

.homepage-film__toggle:hover {
  background: #0d6f79;
}

.homepage-film__toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.homepage-film__pause,
.homepage-film[data-playing] .homepage-film__play {
  display: none;
}

.homepage-film[data-playing] .homepage-film__pause {
  display: block;
}

.homepage-film__credit {
  margin-top: 14px;
  color: #38545d;
  font-size: 14px;
  line-height: 1.6;
}

.homepage-film__credit strong {
  display: block;
  color: var(--text);
}

.homepage-film__credit a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .hero.hero--film {
    gap: 32px;
    padding-top: 24px;
  }

  .hero--film h1 {
    font-size: 38px;
  }

  .homepage-film {
    width: 100%;
  }

  .homepage-film__stage {
    width: min(100%, max(200px, calc((100svh - 440px) * 4 / 5)));
    margin-inline: auto;
    aspect-ratio: 4 / 5;
  }

  .homepage-film__toggle {
    right: 10px;
    bottom: 10px;
  }
}
