/* Enhancements only: content is readable without JS, before, during and after motion. */
.ecom-reading-progress {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, #3bb77d, #9ff5c3);
  transform-origin: left;
  transform: scaleX(0);
  box-shadow: 0 1px 5px #80e1b25c;
}

@media (prefers-reduced-motion: no-preference) {
  .console .console-body.motion-switch {
    animation: ecom-switch-in 330ms cubic-bezier(.2,.72,.3,1) backwards;
  }
  #map-points .selected .halo {
    transform-box: fill-box;
    transform-origin: center;
    animation: ecom-map-halo 620ms cubic-bezier(.17,.74,.35,1) backwards;
  }
  #market-list.motion-switch {
    animation: ecom-switch-in 260ms cubic-bezier(.2,.72,.3,1) backwards;
  }
  #market-info.motion-switch {
    animation: ecom-switch-in 230ms ease-out backwards;
  }
}

@media (min-width: 721px) and (prefers-reduced-motion: no-preference) {
  .hero-v2 .hero-text {
    animation: ecom-hero-in 720ms cubic-bezier(.18,.72,.22,1) backwards;
  }
  .hero-v2 .console-wrap {
    animation: ecom-hero-in 850ms cubic-bezier(.18,.72,.22,1) backwards;
    animation-delay: 90ms;
  }
  .motion-arrive {
    animation: ecom-section-in 620ms cubic-bezier(.18,.72,.22,1) backwards;
  }
  .motion-arrive:focus-within {
    animation: none;
  }
}

@media (max-width: 720px), (prefers-reduced-motion: reduce) {
  .ecom-reading-progress { display: none; }
}

@keyframes ecom-hero-in {
  from { opacity: .86; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes ecom-section-in {
  from { opacity: .89; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes ecom-switch-in {
  from { opacity: .82; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}
@keyframes ecom-map-halo {
  from { transform: scale(.62); }
  to { transform: none; }
}
