/* The two responsive drawings share a single entrance animation. */
@property --turn-progress {
  syntax: '<number>';
  inherits: true;
  initial-value: 1;
}

.turn {
  --turn-progress: 1;
}

.shortcut {
  stroke-dasharray: 1 1;
  stroke-dashoffset: calc((1 - var(--turn-progress)) * 1px);
  opacity: clamp(0, calc(var(--turn-progress) * 30), 1);
}

.current-label {
  opacity: clamp(0, calc((var(--turn-progress) - 0.10) * 13), 1);
}

.endpoint {
  opacity: clamp(0, calc((var(--turn-progress) - 0.92) * 12.5), 1);
}

@media (prefers-reduced-motion: no-preference) {
  .turn {
    animation: draw-turn 640ms cubic-bezier(.3333, .4267, .6667, .76) 1 both;
  }
}

@keyframes draw-turn {
  from { --turn-progress: 0; }
  to { --turn-progress: 1; }
}
