/* 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-header nav { height: 100dvh; overflow-y: auto; overscroll-behavior: contain; justify-content: flex-start; padding: 110px 24px 40px; }
  .site-header nav a { flex-shrink: 0; }
  .project-view { overscroll-behavior: contain; }
  .detail-hero { min-height: 520px; height: 80svh; }
  .detail-hero > div { right: 7vw; }
  .detail-hero h2 { font-size: clamp(48px, 10vw, 100px); overflow-wrap: anywhere; }
  .project-meta > *, .form-field { min-width: 0; }
  .enquiry-form { margin-left: 0; }
  .project-navigation span { overflow-wrap: anywhere; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(46px, 12vw, 72px); line-height: .95; }
  .contact-foot { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .contact-foot a { overflow-wrap: anywhere; }
  .materials { gap: 24px 16px; }
  .project-navigation button { min-height: 220px; padding: 32px 24px; }
  .project-navigation span { font-size: 38px; }
  .project-invite { gap: 12px; flex-wrap: wrap; }
}

@media (max-width: 1024px) { .site-header:has(nav.open) { color: #f5f4f0; background: #171714; } }
