/* The source illustration supplies the steady LEDs for reduced motion. */
.diode-sequence {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .diode-sequence {
    display: inline;
    stroke-linejoin: round;
  }

  .diode-unlit {
    fill: #234c9f;
    stroke: #2958a5;
    stroke-width: 1.6;
  }

  .diode-lit {
    fill: #e2ffff;
    stroke: #54faff;
    stroke-width: 2.8;
  }

  .diode-lit > use {
    opacity: .04;
    animation: diode-pulse var(--period) ease-in-out infinite;
    animation-delay: calc(var(--phase) + var(--step) * var(--lag, 0));
  }

  .chip-sequence {
    --period: 3s;
    --step: .44s;
    --phase: -1.1s;
  }

  .server-sequence {
    --period: 2.4s;
    --step: .4s;
    --phase: -.3s;
    stroke-width: 1.6;
  }

  .screen-sequence {
    --period: 2.8s;
    --step: .3s;
    --phase: -1.45s;
  }

  .diode-lit > use:nth-child(2) { --lag: 1; }
  .diode-lit > use:nth-child(3) { --lag: 2; }
  .diode-lit > use:nth-child(4) { --lag: 3; }
  .diode-lit > use:nth-child(5) { --lag: 4; }
  .diode-lit > use:nth-child(6) { --lag: 5; }
  .diode-lit > use:nth-child(7) { --lag: 6; }

  @keyframes diode-pulse {
    0%, 37%, 100% { opacity: .04; }
    11%, 18% { opacity: 1; }
  }
}
