*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  filter: brightness(0.72) contrast(1.05) saturate(0.92);
  transform: scale(1.03);
  animation: video-drift 24s ease-in-out infinite alternate;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: .7;
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 3rem;
  gap: 1.25rem;
}

.hero__title {
  color: #fff;
  font-size: clamp(.25rem, 4.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(14px);
  animation: fade-up 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  animation: fade-up 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

body.is-ready .hero__video {
  animation: video-drift 24s ease-in-out infinite alternate, video-reveal 1.8s ease forwards;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes video-reveal {
  from {
    filter: brightness(0.55) contrast(1.05) saturate(0.88);
  }
  to {
    filter: brightness(0.72) contrast(1.05) saturate(0.92);
  }
}

@keyframes video-drift {
  from {
    transform: scale(1.03);
  }
  to {
    transform: scale(1.06);
  }
}

@media (max-width: 480px) {
  .hero__title {
    letter-spacing: 0.1em;
    max-width: 22ch;
  }

  .hero__subtitle {
    letter-spacing: 0.28em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    animation: none;
    transform: scale(1.03);
  }

  .hero__title,
  .hero__subtitle {
    animation-duration: 0.01ms;
    animation-delay: 0s;
    opacity: 1;
    transform: none;
  }
}
