/* LoomByte mobile enhancements — 2026-11-08 */

@media (max-width:999px) {
  .hero-grid {
    grid-template-columns:1fr !important;
    display:flex !important;
    flex-direction:column !important;
    gap:28px !important;
  }

  .hero h1 {
    white-space:normal !important;
  }
}

@media (max-width:768px) {
  html,
  body {
    overflow-x:clip;
    max-width:100%;
  }

  body {
    padding-left:env(safe-area-inset-left);
    padding-right:env(safe-area-inset-right);
  }

  .site-header {
    padding-left:max(var(--gutter), env(safe-area-inset-left)) !important;
    padding-right:max(var(--gutter), env(safe-area-inset-right)) !important;
  }

  .brand-lockup {
    width:48px !important;
    height:48px;
    flex-shrink:0;
    background:url(/brand/loombyte-logo.png) center/contain no-repeat;
  }

  .brand-lockup img {
    opacity:0 !important;
    width:48px !important;
    height:48px !important;
    pointer-events:none;
  }

  .menu-toggle,
  .close-menu {
    min-width:44px;
    min-height:44px;
  }

  .weave-panel {
    min-height:0 !important;
    max-height:min(78vw, 360px) !important;
    aspect-ratio:4/3 !important;
  }

  .weave-viewport {
    inset:2% 4% !important;
  }

  .hero-topline {
    flex-wrap:wrap;
    gap:8px;
  }

  .hero-bottom {
    flex-wrap:wrap;
    gap:10px;
  }

  .workbench-projects .project-card,
  .workbench-projects .project-visual {
    min-width:0;
  }

  .workbench-projects .project-visual,
  .workbench-projects .project-visual img {
    height:auto !important;
    min-height:0 !important;
    max-height:220px;
  }

  .workbench-projects .project-visual img {
    object-fit:cover;
    width:100%;
  }

  .project-info h3 {
    font-size:clamp(1.4rem, 6.2vw, 2.1rem) !important;
    line-height:1.15 !important;
  }

  .footer-top {
    flex-direction:column;
    align-items:flex-start;
  }

  .footer-top nav {
    flex-wrap:wrap;
    gap:12px 20px;
  }

  .contact-banner-link,
  .contact-email {
    font-size:clamp(1.25rem, 6.5vw, 2.25rem) !important;
    word-break:break-word;
  }

  .initial-boot-loader .boot-label {
    max-width:calc(100vw - 48px);
    font-size:10px;
  }

  .mobile-menu a {
    min-height:44px;
    display:flex;
    align-items:center;
  }
}

@media (max-width:428px) {
  .hero h1 {
    font-size:clamp(30px, 8.5vw, 44px) !important;
  }

  .hero-stats {
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }

  .pillar-grid {
    grid-template-columns:1fr !important;
  }

  .pillar:nth-child(3) {
    border-left:0 !important;
  }

  .header-actions {
    gap:8px;
  }
}
