/* ----- hero ----- */
.hero-title-line {
  display: block;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: translateX(-24px);
  will-change: transform, opacity, clip-path;
}

.hero-title.is-animated .hero-title-line {
  animation: heroTitleSlideIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title.is-animated .hero-title-line:nth-child(1) {
  animation-delay: 0s;
}

.hero-title.is-animated .hero-title-line:nth-child(2) {
  animation-delay: 0.2s;
}

.hero-title.is-animated .hero-title-line:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes heroTitleSlideIn {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-24px);
  }

  60% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
}

/* ----- section ----- */
.section-reveal {
  position: relative;
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

.section-reveal.is-visible {
  opacity: 1;
}

.title-reveal {
  overflow: hidden;
}

.title-reveal__text {
  display: inline-block;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: translateX(-18px);
  will-change: transform, opacity, clip-path;
}

.title-reveal.is-visible .title-reveal__text {
  animation: titleRevealSlide 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.35s;
}

@keyframes titleRevealSlide {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-18px);
  }

  60% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
}

/* ----- section-header ----- */
.fade-up-scroll {
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
}

.fade-up-scroll.is-visible {
  animation: fadeUpSectionHeader 0.9s ease-out forwards;
}

@keyframes fadeUpSectionHeader {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
