/* Phase 0 motion and narrow-viewport shell contracts.
   These do not replace rendered-browser verification. */

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 10000;
  transform: translateY(-160%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #7ee0ff;
  outline-offset: 3px;
}

:focus-visible {
  outline: 2px solid #7ee0ff;
  outline-offset: 2px;
}

@media (max-width: 430px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .topbar,
  .machine-shell,
  .site-footer {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .site-bg__machine,
  .site-bg__circuit,
  .site-bg__aurora,
  .bg-cog img,
  .bg-cog-body,
  .bg-cog-glow,
  .cog-body,
  .centre-ai-cog-machine .cog-body,
  .profile-orb {
    animation-play-state: paused !important;
  }
}
