/* ── Responsive — Mobile & Tablet ── */

/* Tablet */
@media (max-width: 1024px) {
  .project-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Header */
  .header-nav {
    display: none;
  }

  .header-burger {
    display: flex;
  }

  /* Guide rails hidden */
  .guides {
    display: none;
  }

  /* Hero */
  .section--hero {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: calc(52px + 1.5rem);
    padding-bottom: 1.5rem;
    box-sizing: border-box;
  }

  .section--hero .section__inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
  }

  .hero-headline {
    max-width: 100%;
  }

  .hero-stack {
    margin-top: auto;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    border-top: none;
    padding-top: 0;
  }

  /* Projects - single column */
  .project-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: var(--space-md) 0 var(--space-xl);
  }

  .project-info {
    position: static;
    top: auto;
    padding-right: 0;
    order: 1;
  }

  .project-media {
    order: 2;
  }

  .project-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    margin-bottom: 0.75rem;
  }

  .project-description {
    font-size: var(--text-base);
    margin-bottom: 1.25rem;
  }

  .meta-row {
    grid-template-columns: 7rem 1fr;
    padding: 0.65rem 0;
    font-size: var(--text-xs);
  }

  /* Other projects */
  .other-item {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
  }

  .other-item__desc {
    grid-column: 1 / -1;
  }

  .other-item__arrow {
    display: none;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Section divider dots */
  .section-divider::before {
    left: 0.75rem;
  }
  .section-divider::after {
    right: 0.75rem;
  }

  /* Dither trail disabled on touch */
  .dither-trail-canvas {
    display: none !important;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  :root {
    --pad-outer: 1rem;
  }

  .meta-row {
    grid-template-columns: 5.5rem 1fr;
  }

  .project-bar-right {
    gap: 0.5rem;
  }

  .project-category {
    display: none;
  }
}
