/* Journey motion: a sequential signal travelling from request to review. */
.h-journey-connector {
  isolation: isolate;
}

.h-journey-connector::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 1%;
  width: 19%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, #63d99b 35%, #f5d353 70%, transparent 100%);
  box-shadow: 0 0 8px rgba(99, 217, 155, .65), 0 0 14px rgba(245, 211, 83, .25);
  opacity: 0;
  transform: translateY(-50%);
  animation: knoq-journey-signal 6s ease-in-out infinite;
}

.h-lifecycle li:nth-child(2) .h-journey-connector::before {
  animation-delay: 2s;
}

.h-lifecycle li:nth-child(3) .h-journey-connector::before {
  animation-delay: 4s;
}

.h-flow-direction {
  transform-box: fill-box;
  transform-origin: center;
  animation: knoq-journey-chevron 6s ease-in-out infinite;
}

.h-lifecycle li:nth-child(2) .h-flow-direction {
  animation-delay: 2s;
}

.h-lifecycle li:nth-child(3) .h-flow-direction {
  animation-delay: 4s;
}

@keyframes knoq-journey-signal {
  0%, 3% {
    left: 1%;
    opacity: 0;
  }
  7% {
    opacity: 1;
  }
  27% {
    left: 80%;
    opacity: 1;
  }
  32%, 100% {
    left: 80%;
    opacity: 0;
  }
}

@keyframes knoq-journey-chevron {
  0%, 7%, 32%, 100% {
    opacity: .42;
    transform: translateX(0);
  }
  18% {
    opacity: 1;
    transform: translateX(7px);
    filter: drop-shadow(0 0 4px rgba(99, 217, 155, .72));
  }
}

@media (max-width: 760px) {
  .h-journey-connector::before {
    top: 1%;
    left: 50%;
    width: 3px;
    height: 24%;
    background: linear-gradient(180deg, transparent 0%, #63d99b 35%, #f5d353 70%, transparent 100%);
    transform: translateX(-50%);
    animation-name: knoq-journey-signal-mobile;
  }

  @keyframes knoq-journey-signal-mobile {
    0%, 3% {
      top: 1%;
      opacity: 0;
    }
    7% {
      opacity: 1;
    }
    27% {
      top: 74%;
      opacity: 1;
    }
    32%, 100% {
      top: 74%;
      opacity: 0;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .h-journey-connector::before,
  .h-flow-direction {
    animation: none;
  }

  .h-journey-connector::before {
    display: none;
  }
}
