/* ============================================
   SYUNOI — Responsividade
   ============================================ */

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
  .about__content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about__image-frame {
    max-width: 500px;
    margin: 0 auto;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item--wide {
    grid-column: span 1;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .project-card:nth-child(even) {
    direction: ltr;
  }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    padding: var(--space-2xl);
    gap: var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--duration-slow) var(--ease-out);
    border-left: var(--border-subtle);
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .nav__toggle {
    display: flex;
  }

  .nav__link {
    font-size: var(--text-lg);
  }

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

  .gallery__item--tall .gallery__item-frame,
  .gallery__item--wide .gallery__item-frame {
    aspect-ratio: 1;
  }

  .gallery__item--tall {
    grid-row: span 1;
  }

  .contact__links {
    flex-direction: column;
    align-items: center;
  }

  .contact__link {
    width: 100%;
    max-width: 300px;
  }

  .epigraph__text {
    font-size: var(--text-xl);
  }

  /* Desativa cursor customizado em mobile */
  .custom-cursor {
    display: none;
  }
}

/* ── Mobile Pequeno (≤ 480px) ── */
@media (max-width: 480px) {
  .hero__title {
    letter-spacing: 0.1em;
  }

  .hero__scroll-text {
    text-align: center;
    white-space: normal;
    max-width: 140px;
    line-height: 1.5;
  }

  .about__disciplines {
    justify-content: center;
  }

  .gallery__filters {
    gap: var(--space-sm);
  }

  .gallery__filter {
    padding: var(--space-xs) var(--space-md);
  }
}

/* ── Preferência por Movimento Reduzido ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .gallery__item {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
