.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__image,
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: hsl(var(--dark-overlay) / 0.4);
}

.hero__content {
  position: relative;
  z-index: 10;
  height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .hero__content {
    padding-left: 3rem;
    padding-right: 3rem;
    padding-bottom: 6rem;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .hero__content {
    height: 80%;
  }
}

@media (min-width: 1024px) {
  .hero__content {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

.hero__words {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vw, 14px);
  color: hsl(var(--primary-foreground));
  font-weight: 300;
  letter-spacing: -0.02em;
  font-size: clamp(36px, 5.5vw, 110px);
  line-height: 0.95;
  max-width: min(68vw, 900px);
}

.hero__word {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1.1s ease,
    transform 1.1s ease;
  transition-delay: var(--delay, 0s);
}

section.is-revealed .hero__word {
  opacity: 1;
  transform: translateY(0);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.hero__scroll-line {
  width: 1px;
  height: 4rem;
  background: linear-gradient(to bottom, hsl(var(--primary-foreground) / 0.6), transparent);
}

@media (prefers-reduced-motion: reduce) {
  .hero__word {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
