@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawer-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pagehead__label,
.pagehead__title,
.pagehead__lede {
  opacity: 0;
}

.is-ready .pagehead__label {
  animation: fade-up 0.7s var(--ease-out) 0.08s forwards;
}

.is-ready .pagehead__title {
  animation: fade-up 0.9s var(--ease-out) 0.16s forwards;
}

.is-ready .pagehead__lede {
  animation: fade-up 0.9s var(--ease-out) 0.3s forwards;
}

@keyframes circuit-draw {
  from {
    stroke-dashoffset: var(--len, 1000);
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes circuit-pulse {
  0% {
    stroke-dashoffset: var(--len, 1000);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: calc(var(--len, 1000) * -1);
    opacity: 0;
  }
}

.is-ready .circuit__path {
  animation: circuit-draw 2.4s var(--ease-out) 0.25s forwards;
}

.is-ready .circuit__pulse {
  animation: circuit-pulse var(--speed, 9s) linear var(--delay, 2.6s) infinite;
}

.hero[data-exit] .hero__vignette {
  opacity: calc(1 - var(--exit, 0) * 0.5);
}

.hero[data-exit] .hero__circuit {
  opacity: calc(1 - var(--exit, 0) * 0.85);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

[data-reveal="stagger"] {
  opacity: 1;
  transform: none;
  transition: none;
}

[data-reveal="stagger"] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-reveal="stagger"].is-in > * {
  opacity: 1;
  transform: none;
}

[data-reveal="stagger"].is-in > *:nth-child(2) {
  transition-delay: 0.08s;
}

[data-reveal="stagger"].is-in > *:nth-child(3) {
  transition-delay: 0.16s;
}

[data-reveal="stagger"].is-in > *:nth-child(4) {
  transition-delay: 0.24s;
}

[data-reveal="media"] {
  opacity: 1;
  transform: none;
  transition: none;
}

[data-reveal="media"] .media {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s var(--ease-out);
}

[data-reveal="media"].is-in .media {
  clip-path: inset(0 0 0 0);
}

.split-text .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.split-text .word > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.85s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 45ms);
}

.split-text.is-in .word > span {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
html {
    scroll-behavior: auto;
  }

*,
*::before,
*::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

.pagehead__label,
.pagehead__title,
.pagehead__lede,
[data-reveal],
[data-reveal] > *,
[data-reveal] .media,
.split-text .word > span {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    animation: none !important;
  }

.media img {
    transform: none !important;
  }

.circuit__path {
    stroke-dashoffset: 0 !important;
  }

.circuit__pulse {
    display: none;
  }

.hero[data-exit] .hero__vignette,
.hero[data-exit] .hero__circuit {
    transform: none !important;
    opacity: 1 !important;
  }
}
