/* Responsive adjustments */

@media (max-width: 1024px) {
  #github-system-hud {
    display: none;
  }
  .nav__links {
    gap: 1.1rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 56px;
  }

  .nav {
    padding: 0 1rem;
  }
  .nav__links {
    display: none;
  }
  .nav__github span:not(.status) {
    display: none;
  }

  #hero {
    padding: calc(var(--nav-h) + 1.5rem) 1rem 2.5rem;
    min-height: 85vh;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-sub {
    font-size: 1rem;
  }

  .section {
    padding: 3.5rem 1rem;
  }

  #featured-grid,
  #repo-grid {
    grid-template-columns: 1fr;
  }

  .explorer-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .search-wrap {
    max-width: none;
  }
  .lang-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }
  .lang-filters button {
    flex-shrink: 0;
  }

  .stack-grid {
    grid-template-columns: 1fr 1fr;
  }

  .focus-panel__inner {
    padding: 1.5rem 1.25rem;
  }
  .focus-panel__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Cursor & complex HUD off on mobile */
  #cursor-dot,
  #repo-hud {
    display: none !important;
  }

  /* Constellation exit more prominent */
  #constellation-exit {
    bottom: 5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .stack-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .contact-actions {
    flex-direction: column;
    align-items: center;
  }
  .contact-actions .btn {
    width: min(260px, 100%);
  }
}

@media (min-width: 1440px) {
  .section {
    max-width: 1200px;
  }
}

/* Reduced visual mode */
body.reduced-visual #universe-canvas {
  opacity: 0.35;
}
body.reduced-visual .featured-card:hover,
body.reduced-visual .repo-card:hover {
  transform: none;
}
