.hero {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 0;
}

.gradientLayer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 180% 180%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.gradientLayerActive {
  opacity: 1;
  animation: gradientShift 18s ease-in-out infinite alternate;
  z-index: 2;
}

.gradientLayerPrev {
  opacity: 1;
  z-index: 3;
  transition: opacity 0.8s ease-in-out;
}

.gradientLayerPrevFadeOut {
  opacity: 0;
  z-index: 3;
  transition: opacity 0.8s ease-in-out;
}

.circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  animation-name: circleSway;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-duration: var(--circle-duration, 15s);
  animation-delay: var(--circle-delay, 0s);
  will-change: transform;
  z-index: 10;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes circleSway {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(
      var(--circle-move-x, 40px),
      var(--circle-move-y, 24px),
      0
    );
  }
}
