/* Mobile/tablet refinements; keep each concept self-contained. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.responsive-menu-open { overflow: hidden; }
:where(main, footer) :where(a, button, input, select, textarea):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
main [id] { scroll-margin-top: 100px; }
@media (max-width: 1024px) {
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { min-width: 0; max-width: 100%; font-size: 16px; }
  button, .button, .btn, input:not([type="checkbox"]):not([type="radio"]), select { min-height: 44px; }
  nav a { min-height: 44px; }
  .menu-toggle, .nav-toggle, .nav__toggle { min-width: 44px; }
  .mobile-menu, .project-view { height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
  .mobile-menu { justify-content: flex-start; gap: 24px; padding-bottom: max(32px, env(safe-area-inset-bottom)); }
  .mobile-menu > * { flex-shrink: 0; }
  .mobile-menu nav a { line-height: 1.15; }
  dialog { max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (hover: none) and (pointer: coarse) {
  a, button, input, select, textarea { touch-action: manipulation; }
  .cursor, .custom-cursor { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 1024px) {
  .site-nav nav { height: 100dvh; overflow-y: auto; overscroll-behavior: contain; justify-content: flex-start; padding: 120px 24px 40px; }
  .site-nav nav a { flex-shrink: 0; }
  .explorer-data { position: relative; inset: auto; width: 100%; max-width: 100%; padding: 48px 24px; }
  .explorer-data h2 { font-size: clamp(40px, 9vw, 76px); overflow-wrap: anywhere; }
  .explorer-stage { min-height: 0; }
  .explorer-controls { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .explorer-controls button { min-width: 0; min-height: 56px; padding-inline: 8px; }
  .detail-copy dl, .finish-options { flex-wrap: wrap; }
  .detail-copy { max-width: calc(100% - 40px); }
  .detail-copy h2 { font-size: clamp(42px, 10vw, 90px); overflow-wrap: anywhere; }
  .configurator-visual { min-height: 0; height: clamp(300px, 60vw, 620px); }
  .configurator-ui { padding-block: 48px 64px; }
  .contact form { min-width: 0; }
  .contact form input, .contact form textarea { width: 100%; }
}
@media (max-width: 480px) {
  .nav-inner { gap: 12px; }
  .nav-inner > .sound-toggle { font-size: 9px; padding-inline: 4px; }
  .explorer-data { padding-inline: 20px; }
  .finish-options button { font-size: 11px; }
  footer { grid-template-columns: minmax(0,1fr); gap: 24px; }
  footer > div { flex-wrap: wrap; }
}
