/* AT Studio V13 — mobile-first chrome cleanup and layout polish.
   Remove only the mobile TOP bar; keep native desktop header, bottom navigation,
   language control, ATS AIR and all original routes unchanged. */
@media (max-width:760px){
  /* Header occupies no viewport space. Its fixed bottom nav and language
     control remain in the original DOM, preserving native event handlers. */
  body.v10-home.v13-cinema .site-header{
    display:block!important;
    position:static!important;
    top:auto!important;
    height:0!important;
    min-height:0!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    background:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    overflow:visible!important;
  }
  body.v10-home.v13-cinema .site-header .ats-home-brand,
  body.v10-home.v13-cinema .site-header .header-cta,
  body.v10-home.v13-cinema .site-header .menu-toggle{display:none!important}
  body.v10-home.v13-cinema .site-header .header-actions{display:contents!important}

  /* Exactly one compact navigation surface remains; all six original
     links including ATS AIR stay reachable. */
  body.v10-home.v13-cinema #main-nav{
    position:fixed!important;
    top:auto!important;
    bottom:calc(8px + env(safe-area-inset-bottom))!important;
    left:8px!important;
    right:8px!important;
    z-index:1300!important;
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    align-items:stretch!important;
    gap:2px!important;
    height:64px!important;
    padding:5px!important;
    border-radius:17px!important;
  }
  body.v10-home.v13-cinema #main-nav a{
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:center!important;
    min-height:50px!important;
    min-width:0!important;
    padding:4px 1px!important;
    font-size:clamp(7px,1.9vw,9px)!important;
    line-height:1.2!important;
    letter-spacing:0!important;
    overflow-wrap:anywhere;
    text-align:center;
  }
  body.v10-home.v13-cinema #main-nav a::before{display:none!important}

  /* No top utility strip. Keep the existing language button available
     as a small floating control above the navigation, not a new bar. */
  body.v10-home.v13-cinema #lang-toggle{
    position:fixed!important;
    top:auto!important;
    bottom:calc(82px + env(safe-area-inset-bottom))!important;
    right:12px!important;
    left:auto!important;
    z-index:1320!important;
    width:auto!important;
    min-width:74px!important;
    min-height:40px!important;
    height:40px!important;
    padding:0 11px!important;
    border-radius:999px!important;
    background:rgba(5,22,34,.93)!important;
    box-shadow:0 7px 24px rgba(0,0,0,.25);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
  }
  body.v10-home.v13-cinema[data-lang=ar] #lang-toggle{
    left:12px!important;
    right:auto!important;
  }
  body.v10-home.v13-cinema{padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}
  body.v10-home.v13-cinema .v9-scroll-progress,
  body.v10-home.v13-cinema .v13-scroll-progress{display:none!important}
  html.v13-cinema{scroll-padding-top:16px!important}

  /* Retain the approved V12 typography and illustrations, remove wasted
     vertical space created for the former sticky top bar. */
  body.v10-home.v13-cinema #home .hero-grid{
    gap:clamp(10px,3.5vw,20px)!important;
    padding-top:calc(24px + env(safe-area-inset-top))!important;
    padding-bottom:32px!important;
  }
  body.v10-home.v13-cinema #home .hero-copy,
  body.v10-home.v13-cinema #home .hero-visual{min-width:0!important}
  body.v10-home.v13-cinema #home .hero-actions .btn{min-height:46px!important}
  body.v10-home.v13-cinema #home .v13-engine--below{
    width:100%!important;
    max-width:620px!important;
    margin:0 auto!important;
  }
  body.v10-home.v13-cinema .section-head :is(h1,h2){overflow-wrap:anywhere}
  body.v10-home.v13-cinema #project-grid,
  body.v10-home.v13-cinema .discipline-grid{min-width:0}
}
@media (max-width:420px){
  body.v10-home.v13-cinema #home .hero h1{
    font-size:clamp(34px,9.8vw,43px)!important;
    line-height:1.12!important;
  }
  body.v10-home.v13-cinema #home .v13-engine__rail{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
  }
  body.v10-home.v13-cinema #home .v13-engine__node{min-height:46px}
  body.v10-home.v13-cinema #main-nav a{font-size:7px!important}
}
@media (prefers-reduced-motion:reduce){
  body.v10-home.v13-cinema #main-nav a,
  body.v10-home.v13-cinema #lang-toggle{transition:none!important}
}

/* V13.2: keep all six real navigation destinations readable at 360–430px.
   Scroll only inside the bottom navigation, never the page itself. */
@media (max-width:760px){
  body.v10-home.v13-cinema #main-nav{
    display:flex!important;
    grid-template-columns:none!important;
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    overscroll-behavior-x:contain;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
  }
  body.v10-home.v13-cinema #main-nav a{
    flex:0 0 auto!important;
    min-width:76px!important;
    min-height:50px!important;
    font-size:11px!important;
    padding-inline:7px!important;
    white-space:normal!important;
  }
  body.v10-home.v13-cinema #lang-toggle{
    min-height:44px!important;
    height:44px!important;
  }
  body.v10-home.v13-cinema #main-nav a:focus-visible,
  body.v10-home.v13-cinema #lang-toggle:focus-visible{
    outline:2px solid #fff!important;
    outline-offset:-3px;
  }
}
@media (max-width:420px){
  body.v10-home.v13-cinema #main-nav a{font-size:11px!important}
}
