/* V100: MOBILE HOME FINISH — only @max-width 700px; desktop and other pages preserved. */
@media screen and (max-width:700px){
  html,body{background:#020607!important}
  /* The SVG outline is outside of the 3D layers, deliberately drawn last. */
  #mobileFrame{display:block!important;position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;z-index:24!important;pointer-events:none!important;overflow:visible!important;opacity:1!important;visibility:visible!important;filter:none!important}
  #mobileFrame #mobileFramePath{stroke:rgba(194,200,202,.49)!important;fill:none!important;stroke-width:1.15px!important;vector-effect:non-scaling-stroke!important;opacity:1!important}
  #mobileFrame #mobileFrameTop,#mobileFrame #mobileFrameBottom{stroke:rgba(194,200,202,.32)!important;fill:none!important;stroke-width:1px!important;vector-effect:non-scaling-stroke!important;opacity:1!important}
  /* A precise aligned header: no desktop navigation leaking into mobile. */
  body header{position:fixed!important;top:28px!important;left:29px!important;right:29px!important;width:auto!important;height:55px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;z-index:18!important;pointer-events:none!important;border:0!important;background:none!important;padding:0!important;margin:0!important}
  body header nav,body header nav *{display:none!important;visibility:hidden!important}
  body header img{width:94px!important;height:auto!important;max-width:94px!important;max-height:51px!important;object-fit:contain!important;object-position:left center!important;pointer-events:auto!important}
  #mobileHeaderMenu{position:fixed!important;top:33px!important;right:30px!important;left:auto!important;z-index:21!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;min-width:91px!important;width:91px!important;height:42px!important;min-height:42px!important;padding:0 10px!important;background:rgba(12,15,17,.63)!important;border:1px solid rgba(197,199,193,.22)!important;clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,0 100%)!important;box-shadow:none!important;color:#f1f0e9!important;font-size:10px!important;font-weight:750!important;letter-spacing:1.55px!important;line-height:1!important;transform:none!important}
  #mobileHeaderMenu .m-glyph{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:15px!important;color:#d4af37!important;font-size:14px!important;line-height:1!important}
  #mobileHeaderMenu[aria-expanded="true"]{border-color:rgba(212,175,55,.42)!important;color:#d4af37!important}
  /* Keep navigation on the inner left frame, not free-floating in the copy. */
  body #side,body.is-opening #side{display:flex!important;position:fixed!important;left:27px!important;top:30.5%!important;width:145px!important;z-index:11!important;gap:3px!important;opacity:1!important;transform:none!important;pointer-events:auto!important}
  body #side button,body.is-opening #side button,body.is-opening #side button:not(.active){font-size:8px!important;line-height:1.15!important;height:25px!important;min-height:25px!important;letter-spacing:.95px!important;padding-left:15px!important;color:rgba(216,217,216,.62)!important}
  body #side button.active,body.is-opening #side button.active{color:#f4f4ef!important}
  body #side button::before{left:0!important;width:5px!important;height:5px!important}
  body #side button.active::before{background:#f0f0ec!important}
  /* Stage stays the visual hero but leaves an intentional clear area for the copy. */
  body #world{transform:translateY(-12%) scale(1.12)!important;transform-origin:50% 50%!important}
  body #vignette{background:radial-gradient(ellipse at 53% 47%,rgba(0,0,0,0) 5%,rgba(0,0,0,.08) 63%,rgba(0,0,0,.46) 100%)!important}
  body #copy{width:calc(100% - 68px)!important;left:34px!important;transform:none!important;max-width:430px!important;bottom:147px!important;padding:0!important;z-index:10!important}
  body #copy h1,body #copy #title{font-size:clamp(30px,8.15vw,42px)!important;line-height:1.09!important;letter-spacing:-.023em!important;max-width:100%!important;margin-bottom:14px!important}
  body #copy #desc{font-size:clamp(11px,3vw,13px)!important;line-height:1.6!important;max-width:320px!important}
  body #copy #discover{margin-top:12px!important;min-height:39px!important;font-size:9px!important}
  /* Crisp cut-corner footer that terminates exactly at the same frame edges. */
  #mobileFooter{display:grid!important;grid-template-columns:61px minmax(0,1fr) 61px!important;left:19px!important;right:19px!important;bottom:19px!important;height:63px!important;z-index:19!important;border-top:1px solid rgba(190,197,204,.23)!important;background:linear-gradient(90deg,rgba(5,8,11,.77),rgba(5,8,11,.45),rgba(5,8,11,.77))!important;backdrop-filter:blur(7px)!important;-webkit-backdrop-filter:blur(7px)!important}
  #mobileSound,#mobileWhatsApp{height:62px!important;padding:0!important;color:#f1f3f1!important}
  #mobileSound{border-right:1px solid rgba(186,194,203,.23)!important}
  #mobileWhatsApp{border-left:1px solid rgba(186,194,203,.23)!important}
  #mobileWhatsApp svg{display:block!important;width:24px!important;height:24px!important;stroke:none!important;fill:currentColor!important;opacity:.94!important}
  #mobileSound svg{width:19px!important;height:19px!important}
  #mobileSceneControls{gap:12px!important;justify-content:center!important}
  #mobileSceneControls button{font-size:10px!important;letter-spacing:.55px!important;min-width:41px!important;padding:12px 2px!important;white-space:nowrap!important}
  #mobileSceneLabel{font-size:9px!important;letter-spacing:.5px!important;min-width:35px!important}
  /* Nav panel respects the same cut corners, remains within the frame. */
  #mobileOverlay{inset:91px 19px 83px!important;padding:19px 19px 24px!important;z-index:20!important;background:rgba(7,10,13,.97)!important;border:1px solid rgba(195,205,205,.24)!important;clip-path:polygon(0 0,calc(100% - 13px) 0,100% 13px,100% 100%,13px 100%,0 calc(100% - 13px))!important;box-shadow:none!important}
  #mobileOverlay .mobile-kicker{letter-spacing:2.2px!important;font-size:9px!important;margin-bottom:14px!important}
  #mobileOverlay a{font-size:clamp(17px,5vw,23px)!important;line-height:1.2!important;padding:13px 0!important;letter-spacing:.006em!important}
  #mobileOverlay a.small{font-size:11px!important;letter-spacing:.8px!important;min-height:39px!important;padding:10px 0!important}
  body.afsc-mobile-open #side{opacity:0!important;pointer-events:none!important}
  body.afsc-mobile-open #copy{opacity:0!important;pointer-events:none!important}
}
@media screen and (max-width:380px){
  body header{left:27px!important;right:27px!important}
  #mobileHeaderMenu{right:28px!important}
  body #side,body.is-opening #side{top:28.5%!important;left:25px!important}
  body #copy{left:31px!important;width:calc(100% - 62px)!important;bottom:139px!important}
  body #copy h1,body #copy #title{font-size:clamp(28px,8vw,35px)!important}
  #mobileFooter{grid-template-columns:54px minmax(0,1fr) 54px!important}
  #mobileSceneControls{gap:7px!important}
  #mobileSceneControls button{font-size:9px!important;min-width:35px!important}
}
@media screen and (max-width:700px) and (max-height:700px){
  body #side,body.is-opening #side{top:25%!important}
  body #copy{bottom:118px!important}
  body #copy h1,body #copy #title{font-size:clamp(26px,7.6vw,36px)!important}
  #mobileOverlay{padding:14px 16px 18px!important}
  #mobileOverlay a{padding:9px 0!important}
}
@media(prefers-reduced-motion:reduce){#mobileOverlay{transition:none!important}}
