/* MOBILE BRAND ANIMATION RESTORE — 19 SEP 2026
   Mobile-only bridge: allows the approved desktop founder intro and Training Lab
   transition overlays to sit above the independent Impeccable mobile shell.
   No desktop styles are changed. */
@media (max-width:900px){
  /* The mobile shell hides all legacy direct body children. These are the only
     two approved legacy layers that are intentionally allowed back on mobile. */
  body.imp16-active > .sig-intro-v6.is-active{
    display:grid!important;
  }
  body.imp16-active > .training-entry-exact.training-entry-exact{
    display:grid!important;
  }

  /* Founder intro: use the same authored sequence and timing as desktop. */
  html.perf-lite .sig-intro-v6.is-active{
    animation:sigV6Exit .62s cubic-bezier(.22,1,.36,1) 4.45s forwards!important;
  }
  html.perf-lite .sig-intro-v6.is-active .sig-intro-v6__mark-wrap{
    animation:
      sigV6MarkAppear .58s cubic-bezier(.22,1,.36,1) .18s forwards,
      sigV6MarkRise .72s cubic-bezier(.16,1,.3,1) 1.62s forwards!important;
  }
  html.perf-lite .sig-intro-v6.is-active .sig-intro-v6__name-wrap{
    animation:sigV6NameReveal 1.18s cubic-bezier(.16,.84,.18,1) 2.20s forwards!important;
  }
  html.perf-lite .sig-intro-v6.is-active .sig-intro-v6__name-wrap::after{
    animation:sigV6NameSweep 1.14s linear 2.22s forwards!important;
  }

  /* Training Lab transition: keep the same glow/detail level as desktop. */
  html.perf-lite .training-entry-exact__glow{
    display:block!important;
  }

  /* Both overlays must remain above the independent mobile header/menu. */
  .sig-intro-v6,
  .training-entry-exact{
    z-index:100000!important;
  }
}

/* Preserve the site's existing accessibility behavior on mobile. */
@media (max-width:900px) and (prefers-reduced-motion:reduce){
  html.perf-lite .sig-intro-v6.is-active{
    animation:sigV6Exit .25s ease 1.15s forwards!important;
  }
  html.perf-lite .sig-intro-v6.is-active .sig-intro-v6__mark-wrap{
    opacity:1!important;
    transform:translate(-50%,calc(-50% - 60px)) scale(.82)!important;
    animation:none!important;
  }
  html.perf-lite .sig-intro-v6.is-active .sig-intro-v6__name-wrap{
    opacity:1!important;
    transform:translate(-50%,0)!important;
    clip-path:none!important;
    animation:none!important;
  }
  html.perf-lite .sig-intro-v6.is-active .sig-intro-v6__name-wrap::after{display:none!important;}
  html.perf-lite .training-entry-exact.is-active{
    animation:trainingEntryExactOut .28s ease .62s forwards!important;
  }
  html.perf-lite .training-entry-exact__glow{display:none!important;}
  html.perf-lite .training-entry-exact .tl-exact-piece,
  html.perf-lite .training-entry-exact .tl-frame-piece{display:none!important;}
  html.perf-lite .training-entry-exact .tl-logo-exact__final{
    opacity:1!important;
    animation:none!important;
    transform:none!important;
  }
}
