.path li { --node-color: var(--yellow); }
.path li:last-child { --node-color: var(--cyan); }
.path li::before, .path li:last-child::before {
  background-color: var(--node-color);
  border-color: var(--node-color);
  box-shadow: 0 0 10px color-mix(in srgb, var(--node-color) 55%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: title-lock 850ms cubic-bezier(.16,1,.3,1) both; }
  @keyframes title-lock {
    from { clip-path: inset(0 0 98% 0); transform: translateY(18px) skewX(-5deg); }
    55% { clip-path: inset(0 0 0 0); }
    to { clip-path: inset(-8%); transform: none; }
  }
  .hero .id > div { animation: panel-row 540ms backwards; }
  .hero .id > div:nth-child(2) { animation-delay: 90ms; }
  .hero .id > div:nth-child(3) { animation-delay: 180ms; }
  .hero .id > div:nth-child(4) { animation-delay: 270ms; }
  .hero .id > div:nth-child(5) { animation-delay: 360ms; }
  @keyframes panel-row { from { opacity: 0; transform: translateX(14px); } }
  h2.arrived::after { transform-origin: left; animation: chapter-line 850ms ease-out; }
  @keyframes chapter-line { from { transform: scaleX(0); } }
  .build.arrived, .stack > .arrived { animation: card-arrival 650ms cubic-bezier(.16,1,.3,1) backwards; }
  @keyframes card-arrival { from { opacity: .25; transform: translateY(26px); } }
  .path li.arrived .year, .path li.arrived > div { animation: panel-row 650ms ease-out backwards; }
  .path li.arrived > div { animation-delay: 100ms; }
  .map-window { position: relative; overflow: hidden; }
  .map-window::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, transparent 58%, #00f0ff28 94%, #00f0ffa0);
    opacity: 0;
  }
  .map-window.arrived::after { animation: map-scan 1150ms ease-in-out; }
  @keyframes map-scan {
    0% { opacity: 0; transform: translateX(-100%); }
    20%, 74% { opacity: 1; }
    100% { opacity: 0; transform: translateX(100%); }
  }
  .path::before {
    transform-origin: top;
    transition: scale var(--route-duration, 0ms) linear;
  }
  .path.waiting::before { scale: 1 0; transition: none; }
  .path li::before {
    transition: background-color 180ms, border-color 180ms, box-shadow 260ms;
    transition-delay: var(--light-delay, 0ms);
  }
  .path.waiting li::before {
    background-color: var(--bg);
    border-color: var(--line);
    box-shadow: none;
    transition: none;
  }
}
