@media (max-width: 768px) {
  .hover-expand {
    height: 340px;
    gap: 4px;
  }
  .he-panel { flex: 0 0 36px; min-width: 36px; border-radius: 14px; }
  .he-panel.is-active { flex: 0 0 240px; }
  .he-title { font-size: 1.1rem; }

  /* Longer words ("Branding", "Process", "Contact") don't fit on one line
     at the desktop clamp floor (2.8rem) — that forces a wrap, which breaks
     the roll-swap effect (both text layers become visible at once). */
  .menu-text-roll { font-size: clamp(1.6rem, 9vw, 3rem); }

  /* The footer's top row wraps and stacks taller on narrow screens, pushing
     the fine-print row down into the giant "PORTFOLIO" wordmark, which stays
     vertically centered on the section regardless — nudge the glyph up so
     it clears the text below it. */
  .footer-glyph { align-items: flex-start; padding-top: 30vh; }
}

@media (max-width: 900px) {
  #about { grid-template-columns: 1fr; }
  .about-visual { aspect-ratio: 4/5; max-height: 400px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .stills-col:nth-child(4) { display: none; }
  .stills-full-grid { --stills-cols: 4; }
  .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
}

@media (max-width: 600px) {
  .stills-gallery { height: 140vh; gap: 2.5vw; }
  .stills-col { min-width: 0; gap: 2.5vw; }
  .stills-col:nth-child(3) { display: none; }
  .stills-full-grid { --stills-cols: 2; gap: 2.5vw; }
  .stills-full-row { gap: 2.5vw; }
}

@media (max-width: 600px) {
  .process-steps { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ── TOUCH DEVICES: no custom cursor ── */
/* The dot/ring follow mousemove, which touch devices never fire — without
   this they'd otherwise sit frozen wherever they last rendered. */
@media (pointer: coarse), (max-width: 768px) {
  #cursor-dot, #cursor-ring { display: none !important; }
  body, a, button, .cta-btn, .he-panel, .project-info-link, .stills-gallery-link {
    cursor: auto !important;
  }
}
