/* The Digital & Marketing hero: one 12-second story, every part of it on the same loop. */

:root {
  /* One full loop. */
  --journey-cycle: 12s;
}

@layer utilities {
  @media (prefers-reduced-motion: no-preference) {
    .motion-safe\:animate-j-scroll {
      animation: j-scroll var(--journey-cycle) var(--ease-in-out) infinite both;
    }

    .motion-safe\:animate-j-site {
      animation: j-site var(--journey-cycle) var(--ease-smooth-out) infinite both;
    }

    .motion-safe\:animate-j-press-cta {
      animation: j-press-cta var(--journey-cycle) var(--ease-in-out) infinite both;
    }

    .motion-safe\:animate-j-tap-cta {
      animation: j-tap-cta var(--journey-cycle) var(--ease-smooth-out) infinite both;
    }

    .motion-safe\:animate-j-form {
      animation: j-form var(--journey-cycle) var(--ease-smooth-out) infinite both;
    }

    .motion-safe\:animate-j-type-0 {
      animation: j-type-0 var(--journey-cycle) steps(10, end) infinite both;
    }

    .motion-safe\:animate-j-type-1 {
      animation: j-type-1 var(--journey-cycle) steps(16, end) infinite both;
    }

    .motion-safe\:animate-j-type-2 {
      animation: j-type-2 var(--journey-cycle) steps(22, end) infinite both;
    }

    .motion-safe\:animate-j-press-send {
      animation: j-press-send var(--journey-cycle) var(--ease-in-out) infinite both;
    }

    .motion-safe\:animate-j-tap-send {
      animation: j-tap-send var(--journey-cycle) var(--ease-smooth-out) infinite both;
    }

    .motion-safe\:animate-j-done {
      animation: j-done var(--journey-cycle) var(--ease-smooth-out) infinite both;
    }

    .motion-safe\:animate-j-draw {
      animation: j-draw var(--journey-cycle) var(--ease-smooth-out) infinite both;
    }

    .motion-safe\:animate-j-note-a {
      animation: j-note-a var(--journey-cycle) var(--ease-smooth-out) infinite both;
    }

    .motion-safe\:animate-j-note-b {
      animation: j-note-b var(--journey-cycle) var(--ease-smooth-out) infinite both;
    }

    .motion-safe\:animate-j-note-c {
      animation: j-note-c var(--journey-cycle) var(--ease-smooth-out) infinite both;
    }

    .motion-safe\:animate-j-notify {
      animation: j-notify var(--journey-cycle) var(--ease-smooth-out) infinite both;
    }
  }
}

@keyframes j-scroll {
  0%,
  6% {
    transform: none;
  }
  16%,
  95% {
    transform: translateY(-96px);
  }
  100% {
    transform: none;
  }
}

@keyframes j-site {
  0%,
  28% {
    opacity: 1;
    transform: none;
  }
  33%,
  94% {
    opacity: 0;
    transform: translateX(-30%);
  }
  98%,
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes j-press-cta {
  0%,
  24% {
    transform: none;
  }
  26% {
    transform: scale(0.95);
  }
  28%,
  100% {
    transform: none;
  }
}

@keyframes j-tap-cta {
  0%,
  23% {
    opacity: 0;
    transform: scale(0.6);
  }
  25% {
    opacity: 1;
    transform: scale(1);
  }
  30%,
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

@keyframes j-form {
  0%,
  28% {
    transform: translateX(100%);
    opacity: 1;
  }
  33%,
  94% {
    transform: none;
    opacity: 1;
  }
  98%,
  100% {
    transform: none;
    opacity: 0;
  }
}

@keyframes j-type-0 {
  0%,
  35% {
    clip-path: inset(0 100% 0 0);
  }
  41%,
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes j-type-1 {
  0%,
  42% {
    clip-path: inset(0 100% 0 0);
  }
  49%,
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes j-type-2 {
  0%,
  50% {
    clip-path: inset(0 100% 0 0);
  }
  58%,
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes j-press-send {
  0%,
  60% {
    transform: none;
  }
  62% {
    transform: scale(0.95);
  }
  64%,
  100% {
    transform: none;
  }
}

@keyframes j-tap-send {
  0%,
  59% {
    opacity: 0;
    transform: scale(0.6);
  }
  61% {
    opacity: 1;
    transform: scale(1);
  }
  66%,
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

@keyframes j-done {
  0%,
  64% {
    opacity: 0;
    transform: scale(0.96);
  }
  68%,
  93% {
    opacity: 1;
    transform: none;
  }
  97%,
  100% {
    opacity: 0;
    transform: none;
  }
}

/* The tick draws itself: the path is one dash (pathLength 1) that the offset slides into view. */
@keyframes j-draw {
  0%,
  66% {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  72%,
  100% {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
  }
}

@keyframes j-note-a {
  0%,
  3% {
    opacity: 0;
    transform: translateX(12px);
  }
  7%,
  92% {
    opacity: 1;
    transform: none;
  }
  97%,
  100% {
    opacity: 0;
    transform: none;
  }
}

@keyframes j-note-b {
  0%,
  25% {
    opacity: 0;
    transform: translateX(12px);
  }
  29%,
  92% {
    opacity: 1;
    transform: none;
  }
  97%,
  100% {
    opacity: 0;
    transform: none;
  }
}

@keyframes j-note-c {
  0%,
  35% {
    opacity: 0;
    transform: translateX(12px);
  }
  39%,
  92% {
    opacity: 1;
    transform: none;
  }
  97%,
  100% {
    opacity: 0;
    transform: none;
  }
}

@keyframes j-notify {
  0%,
  68% {
    opacity: 0;
    transform: translateX(-16px) scale(0.96);
  }
  73%,
  92% {
    opacity: 1;
    transform: none;
  }
  97%,
  100% {
    opacity: 0;
    transform: none;
  }
}
