@keyframes layer-first {
  0%,
  70% {
    opacity: 1;
    translate: 0 0;
  }

  80%,
  100% {
    opacity: 0;
    translate: 0 var(--rise);
  }
}

@keyframes layer-swap {
  0%,
  20% {
    opacity: 0;
    translate: 0 var(--rise);
  }

  30%,
  70% {
    opacity: 1;
    translate: 0 0;
  }

  80%,
  100% {
    opacity: 0;
    translate: 0 var(--rise);
  }
}

@keyframes layer-last {
  0%,
  20% {
    opacity: 0;
    translate: 0 var(--rise);
  }

  30%,
  100% {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes dot-first {
  0%,
  70% {
    width: 18px;
    background: var(--accent);
  }

  80%,
  100% {
    width: 6px;
    background: var(--line-strong);
  }
}

@keyframes dot-swap {
  0%,
  20% {
    width: 6px;
    background: var(--line-strong);
  }

  30%,
  70% {
    width: 18px;
    background: var(--accent);
  }

  80%,
  100% {
    width: 6px;
    background: var(--line-strong);
  }
}

@keyframes dot-last {
  0%,
  20% {
    width: 6px;
    background: var(--line-strong);
  }

  30%,
  100% {
    width: 18px;
    background: var(--accent);
  }
}

@keyframes rail-first {
  0%,
  70% {
    color: var(--ink);
  }

  80%,
  100% {
    color: var(--faint);
  }
}

@keyframes rail-swap {
  0%,
  20% {
    color: var(--faint);
  }

  30%,
  70% {
    color: var(--ink);
  }

  80%,
  100% {
    color: var(--faint);
  }
}

@keyframes rail-last {
  0%,
  20% {
    color: var(--faint);
  }

  30%,
  100% {
    color: var(--ink);
  }
}

@keyframes node-on {
  0%,
  20% {
    border-color: var(--line-strong);
    background: var(--canvas);
    color: var(--faint);
  }

  30%,
  100% {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--on-accent);
  }
}

@keyframes step-focus {
  0%,
  100% {
    opacity: 0.35;
  }

  30%,
  70% {
    opacity: 1;
  }
}

@keyframes fill-y {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

@keyframes grow-y {
  from {
    transform: scaleY(0);
  }
}

@keyframes grow-x {
  from {
    transform: scaleX(0);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    scale: 0.6;
  }
}

@keyframes settle {
  from {
    translate: 0 calc(var(--rise) * 2);
  }
}

@keyframes drift {
  to {
    translate: 0 var(--drift);
  }
}

@keyframes cycle {
  0% {
    opacity: 0;
  }

  3%,
  18% {
    opacity: 1;
  }

  21%,
  100% {
    opacity: 0;
  }
}
