html, body {
  height: 100vh;
  overflow: hidden;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
  padding: 0 2rem;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 6rem);
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.1;
}

.hero p {
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-divider {
  width: 40px;
  height: 1px;
  background: var(--muted);
}

/* MAIN VIDEO BACKGROUND */
main {
  position: relative;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: 0;
  opacity: 0;
  transition: opacity 1.8s ease;
  pointer-events: none;

  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
}

.main-video-bg.visible {
  opacity: 1;
}

.main-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

/* all elements above the video */
main > *:not(.main-video-bg) {
  position: relative;
  z-index: 1;
}
