/* Decorative download tracks. Separate from the content and hit-test tree. */
.hero-intro {
  position: relative;
  isolation: isolate;
}
.hero-intro > .hero-copy {
  position: relative;
  z-index: 2;
}
.hero-tracks {
  position: absolute;
  z-index: 0;
  top: -46px;
  bottom: -36px;
  left: 50%;
  /* Match the navigation's content rail, rather than spanning the viewport. */
  width: min(1252px, calc(100vw - 40px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 83%, transparent);
  mask-image: linear-gradient(transparent, #000 12%, #000 83%, transparent);
}
.hero-tracks::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  /* Let very faint flow through the reading area; text stays on its own layer. */
  background: radial-gradient(ellipse 40% 76% at 50% 41%, #ffffff99 16%, #ffffffa6 44%, #ffffff66 68%, #fff0 100%);
}
.hero-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--lane);
  width: 1px;
  --stream-alpha: 1;
  background: linear-gradient(transparent, #3267f707 20%, #3267f707 80%, transparent);
}
.hero-track-subtle {
  --stream-alpha: .32;
  /* No continuous line beneath text: only occasional, soft moving accents. */
  background: none;
}
.hero-pulse {
  position: absolute;
  inset: 0;
  transform: translateY(-55%);
  animation: hero-download-stream var(--duration) linear infinite;
  animation-delay: var(--phase);
  animation-play-state: paused;
}
.hero-pulse::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -.5px;
  width: 2px;
  height: 43px;
  border-radius: 2px;
  background: linear-gradient(transparent, #3267f77a);
}
.hero-pulse::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -1px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #3267f790;
  box-shadow: 0 0 7px 1px #3267f71c;
}
.hero-pulse-echo { animation-delay: calc(var(--phase) - var(--duration) / 2); }
.hero-track:nth-child(3n + 1) .hero-pulse::after {
  width: 5px;
  height: 5px;
  left: -2px;
  bottom: 1px;
  border-radius: 0;
  border: solid #3267f76e;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
  background: transparent;
  box-shadow: none;
}
.hero-track-subtle .hero-pulse::before {
  height: 26px;
  background: linear-gradient(transparent, #3267f75c);
}
.hero-track.hero-track-subtle .hero-pulse::after {
  width: 2px;
  height: 2px;
  left: -.5px;
  bottom: 0;
  border: 0;
  border-radius: 50%;
  transform: none;
  background: #3267f76b;
  box-shadow: none;
}
.hero-track-subtle .hero-pulse-echo { display: none; }
.hero-copy h1, .hero-copy .hero-description {
  -webkit-user-select: text;
  user-select: text;
}
.hero-intro.in-view .hero-pulse { animation-play-state: running; }
.hero-intro.hero-motion-paused .hero-pulse { animation-play-state: paused; }
.hero-motion-controls { display: flex; justify-content: center; margin-top: 7px; }
.hero-motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  padding: 3px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #70829b;
  font-size: 10px;
  line-height: 1.6;
}
.hero-motion-toggle .icon { width: 11px; height: 11px; }
.hero-motion-toggle:hover:not(:disabled) { background: #edf4ff; color: var(--blue); }
.hero-motion-toggle:disabled { color: #8491a4; }
.hero-motion-toggle[hidden], .hero-motion-toggle [hidden] { display: none !important; }
@keyframes hero-download-stream {
  0% { transform: translateY(-100%); opacity: 0; }
  9% { opacity: var(--stream-alpha); }
  86% { opacity: var(--stream-alpha); }
  100% { transform: translateY(18%); opacity: 0; }
}
@media (max-width: 640px) {
  .hero-tracks { top: -30px; bottom: -28px; width: calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); }
  .hero-track:nth-child(2), .hero-track:nth-child(3),
  .hero-track:nth-child(5), .hero-track:nth-child(6),
  .hero-track:nth-child(7) { display: none; }
  .hero-track:nth-child(1) { --lane: 9% !important; }
  .hero-track:nth-child(4) { --lane: 50% !important; --stream-alpha: .24; }
  .hero-track:nth-child(8) { --lane: 91% !important; }
  .hero-tracks::after {
    background: radial-gradient(ellipse 49% 78% at 50% 43%, #ffffffb3 25%, #ffffff99 57%, #ffffff66 82%, #fff0 100%);
  }
  .hero-pulse-echo { display: none; }
  .hero-pulse::before { height: 30px; opacity: .8; }
  .hero-motion-toggle { min-height: 36px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-pulse { display: none; animation: none; }
  .hero-track { opacity: .45; }
}
