* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 62.5%;
}

body {
  font-family: "Nunito Sans", sans-serif;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #020f20;
}

.video-container video {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: contain;
  object-position: top center;
}

@media (min-aspect-ratio: 2/1) {
  .video-container video {
    object-fit: cover;
    object-position: center center;
  }

  .video-gradient-desktop {
    height: 50%;
    background: linear-gradient(
      to top,
      rgba(2, 15, 32, 1) 0%,
      rgba(2, 15, 32, 0.95) 25%,
      rgba(2, 15, 32, 0.8) 45%,
      rgba(2, 15, 32, 0.45) 65%,
      rgba(2, 15, 32, 0) 100%
    );
  }
}

.video-gradient-desktop {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;
  height: 99%;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(2, 15, 32, 1) 0%,
    rgba(2, 15, 32, 0.98) 8%,
    rgba(2, 15, 32, 0.92) 16%,
    rgba(2, 15, 32, 0.75) 26%,
    rgba(2, 15, 32, 0.55) 40%,
    rgba(2, 15, 32, 0.32) 55%,
    rgba(2, 15, 32, 0.15) 70%,
    rgba(2, 15, 32, 0) 100%
  );
}

.text-wrapper {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: end;
  justify-content: center;
  z-index: 10;
  padding: 0 2rem 3rem 2rem;
}

.preheader-text {
  text-transform: uppercase;
  font-weight: 200;
  opacity: 0.85;
  letter-spacing: 2px;
  font-size: 22px;
}

.text-wrapper__text-block {
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.text-wrapper__text-block p {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 200;
  opacity: 0.85;

  margin-bottom: 10px;
}

.text-wrapper__text-block h1 {
  font-family: "Great Vibes", cursive;
  font-size: clamp(4.5rem, 2.542vw + 3.686rem, 7.5rem);
  font-weight: 400;
  line-height: 1.1;
}

.text-wrapper--flex {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
}

.text-wrapper__footer {
  color: #a6a6a6;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.text-wrapper__footer-image {
  margin-top: 1rem;
  margin-bottom: 3rem;
}

.text-wrapper__footer-text-m {
  font-size: 15px;
  text-align: center;
  line-height: 25px;
}

.text-wrapper__footer-text-s {
  font-size: 12px;
  text-align: center;
  line-height: 25px;
}

.text-wrapper--first {
  display: flex;
}

.text-wrapper--play {
  display: none;
}

.text-wrapper--play.text-wrapper--opened {
  display: flex;
}

.text-wrapper--first.text-wrapper--opened {
  display: none;
}

.wishes-block {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1.2rem;
}

.wishes-block__preheading {
  font-weight: 200;
  opacity: 0.85;
  text-transform: uppercase;
  font-family: "Nunito Sans", sans-serif;
  letter-spacing: 2px;
  font-size: 22px;
}

.wishes-block__divider {
  width: 50px;
  height: 1px;
  background-color: white;
}

.wishes-block__text {
  color: #fff;
  font-size: clamp(1.9rem, 0.085vw + 1.873rem, 2rem);
  font-weight: 200;
  opacity: 0.85;
}

@media (max-width: 1024px) {
  .video-container {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .video-container video {
    position: relative;
    top: 0;
    height: auto;
    object-fit: contain;
    object-position: center center;
    background-color: #020f20;
  }

  .video-gradient-desktop {
    display: none;
  }

  .video-gradient-mobile {
    position: absolute;
    top: -300px;
    left: 0;
    right: 0;
    height: 350px;
    pointer-events: none;
    background: linear-gradient(
      to top,
      rgba(2, 15, 32, 1) 0%,
      rgba(2, 15, 32, 0.95) 12%,
      rgba(2, 15, 32, 0.8) 22%,
      rgba(2, 15, 32, 0.45) 32%,
      rgba(2, 15, 32, 0.15) 42%,
      rgba(2, 15, 32, 0) 100%
    );
    z-index: -1;
  }

  .text-wrapper {
    margin-top: -30px;
    position: relative;
    bottom: 0;
    flex-grow: 1;
    justify-content: space-between;
  }

  .text-wrapper__footer-image {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .text-wrapper__text-block p {
    font-size: 18px;
  }

  .text-wrapper__text-block h1 {
    font-size: 48px;
  }
}

#lottie,
#lottie-2 {
  width: clamp(30rem, 33.898vw + 19.153rem, 70rem);
  height: 100%;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  text-align: center;
  opacity: 1;
}

.play-button,
.pause-button {
  cursor: pointer;
}

/* ----------------------------------------------- */
/* SMOOTH FADE — TEXT + LOTTIE + BUTTON ONLY      */
/* ----------------------------------------------- */
.fade-hidden {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.fade-visible {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.fade-btn.fade-hidden {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.fade-btn.fade-visible {
  opacity: 1;
  transition: opacity 0.5s ease;
}
