@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: rgba(8, 8, 15, 0.96);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .gallery-grid,
  .product-grid,
  .feature-cards,
  .package-grid,
  .project-list,
  .admin-card-grid {
    grid-template-columns: 1fr;
  }
}

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

/* v016 mobile containment hardening */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .page {
    width: min(100% - 1rem, var(--max-page));
    padding-top: 2rem;
  }

  .hero,
  .hero--home,
  .hero--portfolio {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    overflow: hidden;
    padding: 1rem 0;
  }

  .hero__content,
  .hero__media,
  .hero__image-button,
  .hero__media img {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .hero__media img,
  .hero__image-button img {
    height: auto;
    max-height: 72vh;
    object-fit: contain;
  }

  .gallery-grid,
  .media-card,
  .product-card,
  .feature-card {
    max-width: 100%;
    min-width: 0;
  }
}
