/* First viewport hero section and video treatment. */

.first-section {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
}

.first-section .wrapper {
  position: relative;
  z-index: 3;
  display: flex;
  max-width: 1200px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
}

.first-section::before {
  content: none;
}


.first-section .title {
  max-width: 900px;
  margin: 40px auto;
  color: #ffe59a;
  font-size: clamp(2.25rem, 5vw, 60px);
  line-height: 1.4;
  text-align: center;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.85),
    0 8px 22px rgba(0, 0, 0, 0.9),
    0 0 34px rgba(0, 0, 0, 0.75);
}

.first-section .subtitle {
  max-width: 750px;
  margin: 0 auto;
  color: #fff7df;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.95),
    0 6px 18px rgba(0, 0, 0, 0.9),
    0 0 28px rgba(0, 0, 0, 0.78);
}

.first-section__bg-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--hero-video-opacity, 0.92);
  transition: opacity 80ms linear;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.38) 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.38) 82%, transparent 100%);
}