.container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.static-text {
  font-size: 2.5rem;
  font-weight: 900;
  color: #374152;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.jumping-text {
  display: inline-flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 20px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 3px;
}

.word {
  display: flex;
  align-items: flex-end;
  perspective: 800px;
}

.word span {
  display: inline-block;
  transform-origin: center;
  animation-name: jump;
  animation-timing-function: cubic-bezier(0.6, -0.28, 0.74, 0.05);
  animation-iteration-count: 3;
  animation-direction: alternate;
  cursor: pointer;
  animation-play-state: paused;
}

@keyframes jump {

  0%,
  100% {
    transform:
      translateY(0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scaleY(1) scaleX(1);
  }

  30% {
    transform:
      translateY(var(--jumpHeight)) translateZ(var(--depth)) rotateX(var(--rotateX)) rotateY(var(--rotateY)) rotateZ(var(--rotateZ)) scaleY(1.4) scaleX(0.9);
  }

  60% {
    transform:
      translateY(0) rotateX(calc(var(--rotateX) * -1)) rotateY(calc(var(--rotateY) * -1)) rotateZ(calc(var(--rotateZ) * -1)) scaleY(0.8) scaleX(1.1);
  }
}