/* AFSC V109 — single mobile system for all five service experiences.
   Geometry is copied from the approved V104 home mobile shell. */
#serviceMobileFrame,#serviceMobileBrand,#serviceMobileMenu,#serviceMobileOverlay,#serviceMobileFooter{display:none}
@media (max-width:700px){
  :root{--afsc-gold:#d4af37;--afsc-paper:#f3f1ea;--afsc-muted:#b8bdbb}
  html{overflow-x:hidden!important;scroll-snap-type:none!important;background:#030608!important}
  body{overscroll-behavior-x:none!important;background:#030608!important}

  /* ONE FRAME ONLY. Remove every legacy desktop/mobile frame and chrome layer. */
  body>header,body>.header,body>.bottom,body>footer#footer,#afscFooter,
  #afscFrameOutline,#outline,#frame,.frame,.counter,.hint,.meta,.micro,.note,.left-marker,
  #aiOpening,#intro{display:none!important}
  body::before,body:before{content:none!important;display:none!important;border:0!important;outline:0!important;box-shadow:none!important}

  #serviceMobileFrame{display:block;position:fixed;inset:0;width:100%;height:var(--afsc-mobile-height,100svh);z-index:120;pointer-events:none;overflow:visible}
  #serviceMobileFrame path{fill:none;stroke:rgba(193,201,204,.43);stroke-width:.85;vector-effect:non-scaling-stroke;stroke-linejoin:miter}
  #serviceMobileFrame .service-mobile-line{stroke:rgba(193,201,204,.20)}

  #serviceMobileBrand{display:block;position:fixed;left:29px;top:22px;width:77px;height:52px;z-index:124;text-decoration:none}
  #serviceMobileBrand img{display:block;width:77px!important;height:52px!important;max-width:none!important;max-height:none!important;object-fit:contain!important;filter:none!important}
  #serviceMobileMenu{display:inline-flex!important;position:fixed!important;right:29px!important;top:23px!important;z-index:126!important;align-items:center!important;justify-content:center!important;gap:9px!important;width:auto!important;min-width:0!important;height:48px!important;min-height:48px!important;padding:0 4px 0 10px!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;clip-path:none!important;color:#f3f2ed!important;font:700 10px/1 Arial,Helvetica,sans-serif!important;letter-spacing:2px!important;cursor:pointer!important}
  #serviceMobileMenu .m-glyph{font-size:0!important;width:14px!important;height:14px!important;display:grid!important;grid-template-columns:repeat(2,5px)!important;grid-template-rows:repeat(2,5px)!important;gap:3px!important;color:transparent!important}
  #serviceMobileMenu .m-glyph:before{content:'';display:block;width:5px;height:5px;background:#c6ad70;box-shadow:8px 0 #c6ad70,0 8px #c6ad70,8px 8px #c6ad70}
  #serviceMobileMenu[aria-expanded='true'] .m-glyph{font-size:18px!important;display:flex!important;align-items:center!important;justify-content:center!important;color:#d4af37!important}
  #serviceMobileMenu[aria-expanded='true'] .m-glyph:before{display:none!important}

  /* Mobile menu: quiet, architectural, never a second frame. */
  #serviceMobileOverlay{display:flex;visibility:hidden;opacity:0;pointer-events:none;position:fixed;z-index:125;top:83px;left:18px;right:18px;height:calc(var(--afsc-mobile-height,100svh) - 165px);overflow-y:auto;flex-direction:column;padding:28px 26px 19px;background:rgba(5,8,10,.965);border:0;border-top:1px solid rgba(193,201,204,.18);border-bottom:1px solid rgba(193,201,204,.18);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);transition:opacity .34s ease,visibility .34s ease}
  #serviceMobileOverlay.open{visibility:visible;opacity:1;pointer-events:auto}
  #serviceMobileOverlay .mobile-kicker{display:flex;align-items:center;gap:10px;margin:1px 0 24px;font:750 9px/1.2 Arial,Helvetica,sans-serif;letter-spacing:2px;color:#b9a06a}
  #serviceMobileOverlay .k-square{height:5px;width:5px;background:#d4af37;display:inline-block}
  #serviceMobileOverlay .mobile-nav-group{display:grid;margin-bottom:29px}
  #serviceMobileOverlay a.mobile-primary{display:grid;grid-template-columns:25px minmax(0,1fr) 18px;align-items:center;gap:8px;min-height:57px;padding:10px 0;border-bottom:1px solid rgba(205,215,215,.11);text-decoration:none;color:#f3f1ea;font:800 clamp(19px,5.5vw,26px)/1.18 Arial,Helvetica,sans-serif;letter-spacing:-.022em}
  #serviceMobileOverlay a.mobile-primary>span{font-size:9px;color:#8f928e;letter-spacing:.6px;font-weight:600}
  #serviceMobileOverlay a.mobile-primary em{font-size:16px;font-style:normal;color:#b7a068;justify-self:end;font-weight:400}
  #serviceMobileOverlay .mobile-services-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 0 11px;border-bottom:1px solid rgba(212,175,55,.22);color:#bd9d51;font:750 9px/1.2 Arial,Helvetica,sans-serif;letter-spacing:1.3px}
  #serviceMobileOverlay .mobile-services-head span:last-child{font-size:8px;letter-spacing:1px;color:rgba(220,224,224,.42)}
  #serviceMobileOverlay .mobile-services-list{display:grid}
  #serviceMobileOverlay .mobile-services-list a{min-height:43px;padding:11px 0;color:#d7d9d6;font:700 clamp(10px,2.9vw,12px)/1.4 Arial,Helvetica,sans-serif;letter-spacing:.6px;border-bottom:1px solid rgba(210,218,219,.075);text-decoration:none;display:flex;justify-content:space-between;align-items:center;white-space:normal}
  #serviceMobileOverlay .mobile-services-list a span{font-size:13px;color:#ad9350;flex-shrink:0}
  #serviceMobileOverlay a:visited{color:inherit}#serviceMobileOverlay a:hover,#serviceMobileOverlay a:focus-visible{color:#d4af37}
  #serviceMobileOverlay .mobile-bottom{display:flex;justify-content:space-between;gap:10px;margin-top:auto;padding-top:19px;font:700 8px/1.2 Arial,Helvetica,sans-serif;letter-spacing:1px;color:#7f8785}
  body.afsc-service-mobile-open{overflow:hidden!important}

  /* Exact V104 footer rail. */
  #serviceMobileFooter{display:grid;grid-template-columns:64px minmax(0,1fr) 64px;position:fixed;left:18px;right:18px;top:calc(var(--afsc-mobile-height,100svh) - 82px);height:64px;z-index:124;isolation:isolate;overflow:hidden;background:rgba(3,7,9,.78);border-top:1px solid rgba(193,201,204,.38);border-bottom:1px solid rgba(193,201,204,.38);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
  #serviceMobileFooter:before,#serviceMobileFooter:after{content:'';position:absolute;bottom:0;width:1px;height:64px;background:rgba(193,201,204,.38);z-index:5}#serviceMobileFooter:before{left:0}#serviceMobileFooter:after{right:0}
  #serviceMobileFooter>button,#serviceMobileFooter>a{min-width:0;display:flex;justify-content:center;align-items:center;background:transparent;border:0;color:#eee;text-decoration:none;cursor:pointer;position:relative;z-index:2}
  #serviceMobileSound{border-right:1px solid rgba(194,202,210,.22)!important}#serviceMobileWhatsApp{border-left:1px solid rgba(194,202,210,.22)!important}
  #serviceMobileSound svg,#serviceMobileWhatsApp svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}
  #serviceMobileControls{display:flex;justify-content:center;align-items:center;gap:17px;min-width:0;position:relative;z-index:2}
  #serviceMobileControls button{border:0;background:transparent;color:#eee;font:750 10px/1 Arial,Helvetica,sans-serif;letter-spacing:1px;cursor:pointer;padding:12px 0;min-width:40px}#serviceMobileControls button:disabled{opacity:.27;cursor:default}
  #serviceMobileLabel{color:#b9a77d;font:700 9px/1 Arial,Helvetica,sans-serif;letter-spacing:1.35px;min-width:34px;text-align:center}
  #serviceMobileProgressTrack{position:absolute;left:61px;right:61px;top:0;bottom:0;z-index:0;overflow:hidden;pointer-events:none;background:transparent}
  #serviceMobileProgressFill{width:100%;height:100%;transform:scaleX(0);transform-origin:left center;opacity:.13;background:linear-gradient(90deg,rgba(215,218,213,.02),rgba(215,218,213,.065));will-change:transform}

  /* Universal mobile content safe-zone and calm transitions. */
  .scene,.stage,.imm-scene{transition-duration:.78s!important;transition-timing-function:cubic-bezier(.18,.72,.2,1)!important}
  .scene.active,.stage.active .inner,.imm-scene.is-current{filter:none!important}
  .cta,.imm-action,.imm-cta{border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;color:#f2f0e9!important}
  .cta span,.imm-action span,.imm-cta span{color:#c7ad70!important}

  /* AI — remove desktop dashboard/card thinking; let the world carry the visual. */
  body.service-ai .scene{inset:82px 18px 82px!important;padding:30px 38px 28px!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
  body.service-ai .hero,body.service-ai .scene2 .layout,body.service-ai .scene3 .wrap,body.service-ai .scene4 .wrap,body.service-ai .scene5 .final{width:100%!important;max-width:none!important;display:block!important}
  body.service-ai .eyebrow{font-size:8.5px!important;line-height:1.5!important;letter-spacing:.22em!important;margin:0 0 17px!important}
  body.service-ai .index,body.service-ai .scrollnote{display:none!important}
  body.service-ai .huge{font-size:clamp(43px,12.2vw,57px)!important;line-height:1.015!important;letter-spacing:-.045em!important;margin:0!important;max-width:100%!important}
  body.service-ai .hero .copy,body.service-ai .copy{margin:24px 0 0!important;max-width:295px!important;font-size:13.5px!important;line-height:1.68!important;color:#c1c5c2!important}
  body.service-ai .scene2 h2,body.service-ai .scene3 h2,body.service-ai .scene4 h2{font-size:clamp(39px,10.7vw,50px)!important;line-height:1.04!important;letter-spacing:-.035em!important;margin:0!important;max-width:310px!important}
  body.service-ai .scene2 .lead{max-width:none!important}
  body.service-ai .interface{display:none!important}
  body.service-ai .scene3 h2{margin-bottom:22px!important}
  body.service-ai .rail{display:grid!important;grid-template-columns:1fr!important;border:0!important;gap:0!important;margin-top:18px!important}
  body.service-ai .rail:before{display:none!important}
  body.service-ai .step{min-height:0!important;padding:10px 0 11px!important;border:0!important;border-top:1px solid rgba(255,255,255,.10)!important;background:transparent!important}
  body.service-ai .step .num{font-size:8px!important;letter-spacing:.16em!important}
  body.service-ai .step h3{font-size:15px!important;line-height:1.18!important;margin:5px 0 4px!important;letter-spacing:-.01em!important}
  body.service-ai .step p{font-size:10.5px!important;line-height:1.48!important;max-width:285px!important;color:#aeb4b0!important}
  body.service-ai .scene4 .stack{display:none!important}
  body.service-ai .scene5 h2{font-size:clamp(42px,11.4vw,54px)!important;line-height:1.02!important;letter-spacing:-.04em!important;margin:0!important}
  body.service-ai .scene5 .final{text-align:left!important}
  body.service-ai .scene5 .cta{display:inline-flex!important;margin-top:27px!important;gap:8px!important;font-size:10px!important;letter-spacing:.14em!important}
  body.service-ai .finaleEmblem{display:none!important}
  body.service-ai #aiReplay{margin:18px 0 0!important;font-size:8px!important;letter-spacing:.13em!important;color:#8f9692!important}

  /* Automation — strong copy, quiet world, no card UI. */
  body.service-automation .immersive-stages,body.service-development .immersive-stages{inset:82px 18px 82px!important;overflow:hidden!important}
  body.service-automation .imm-scene,body.service-development .imm-scene{padding:30px 38px 28px!important;align-items:center!important;justify-content:center!important}
  body.service-automation .imm-inner,body.service-development .imm-inner{width:100%!important;max-width:none!important;padding:0!important;margin:0!important;text-align:left!important}
  body.service-automation .imm-overline,body.service-development .imm-overline{font-size:8.5px!important;line-height:1.5!important;letter-spacing:.21em!important;margin:0 0 17px!important}
  body.service-automation .imm-inner h1,body.service-automation .imm-inner h2,body.service-development .imm-inner h1,body.service-development .imm-inner h2{font-size:clamp(41px,11.2vw,53px)!important;line-height:1.035!important;letter-spacing:-.035em!important;max-width:310px!important;margin:0!important;text-wrap:initial!important}
  body.service-automation .imm-paragraph,body.service-development .imm-paragraph{font-size:13.5px!important;line-height:1.68!important;max-width:295px!important;margin:23px 0 0!important;color:#c1c5c2!important}
  body.service-automation .imm-under,body.service-automation .imm-subnote,body.service-automation .imm-status,body.service-development .dev-micro,body.service-development .dev-inline-tags{font-size:8.5px!important;line-height:1.55!important;letter-spacing:.14em!important;margin:22px 0 0!important;color:#989f9b!important}
  body.service-automation .imm-center,body.service-automation .imm-finale,body.service-development .dev-final{width:100%!important;text-align:left!important;margin:0!important}
  body.service-automation .imm-center .imm-paragraph,body.service-automation .imm-finale .imm-paragraph,body.service-development .dev-final .imm-paragraph{margin:23px 0 0!important}
  body.service-automation .imm-action,body.service-development .imm-action{display:inline-flex!important;gap:8px!important;margin-top:28px!important;font-size:10px!important;letter-spacing:.14em!important}
  body.service-automation .imm-replay,body.service-development .imm-replay{margin:18px 0 0!important;font-size:8px!important;letter-spacing:.13em!important;color:#8f9692!important}

  /* Development — remove the dashboard-style preview on mobile; keep the spatial world. */
  body.service-development .dev-ui-panel{display:none!important}
  body.service-development .dev-feature-panel{border:0!important;background:transparent!important;padding:0!important;backdrop-filter:none!important}

  /* Enterprise + Transformation — undo desktop offsets and center each chapter in the safe viewport. */
  body.service-enterprise .stage,body.service-transformation .stage{inset:82px 18px 82px!important;padding:30px 38px 28px!important;align-items:center!important;overflow:hidden!important}
  body.service-enterprise .inner,body.service-transformation .inner{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;text-align:left!important}
  body.service-enterprise .kicker,body.service-transformation .kicker{font-size:8.5px!important;line-height:1.5!important;letter-spacing:.21em!important;margin:0 0 17px!important}
  body.service-enterprise .title,body.service-enterprise .stage[data-id='3'] .title,body.service-enterprise .stage[data-id='4'] .title,body.service-transformation .title,body.service-transformation .stage[data-id='3'] .title,body.service-transformation .stage[data-id='4'] .title{font-size:clamp(41px,11.2vw,54px)!important;line-height:1.035!important;letter-spacing:-.035em!important;max-width:310px!important}
  body.service-enterprise .desc,body.service-transformation .desc{font-size:13.5px!important;line-height:1.68!important;max-width:295px!important;margin:23px 0 0!important;color:#c1c5c2!important}
  body.service-enterprise .tag,body.service-transformation .tag{font-size:8.5px!important;line-height:1.55!important;letter-spacing:.14em!important;margin:22px 0 0!important;color:#929a96!important}
  body.service-enterprise .tag::before,body.service-transformation .tag::before{display:none!important}
  body.service-enterprise .stage[data-id='0'] .desc,body.service-transformation .stage[data-id='0'] .desc{margin-left:0!important}
  body.service-enterprise .stage[data-id='2'] .inner,body.service-enterprise .stage[data-id='4'] .inner,body.service-transformation .stage[data-id='2'] .inner,body.service-transformation .stage[data-id='4'] .inner{text-align:left!important}
  body.service-enterprise .stage[data-id='2'] .desc,body.service-enterprise .stage[data-id='4'] .desc,body.service-transformation .stage[data-id='2'] .desc,body.service-transformation .stage[data-id='4'] .desc{margin-left:0!important;margin-right:0!important}
  body.service-enterprise .cta,body.service-transformation .cta{display:inline-flex!important;gap:8px!important;margin-top:28px!important;font-size:10px!important;letter-spacing:.14em!important}
  body.service-enterprise .replay,body.service-transformation .replay{margin:18px 0 0!important;font-size:8px!important;letter-spacing:.13em!important;color:#8f9692!important}

  /* Keep every world full-bleed and behind the single shell. */
  #world,#worldFallback,#universe{position:fixed!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}
}

  /* V110: AI canvas must be inside the visible stacking context, not behind body background. */
  body.service-ai #world{z-index:0!important;opacity:1!important;display:block!important;visibility:visible!important;filter:none!important}
  body.service-ai::after{z-index:1!important;pointer-events:none!important;background:linear-gradient(180deg,rgba(3,6,8,.10) 0%,rgba(3,6,8,.02) 35%,rgba(3,6,8,.16) 70%,rgba(3,6,8,.34) 100%)!important}
  body.service-ai .scene{z-index:3!important;background:transparent!important}
  body.service-ai .scene .hero,body.service-ai .scene .layout,body.service-ai .scene .wrap,body.service-ai .scene .final{position:relative;z-index:3}

@media(max-width:380px){
 #serviceMobileFooter{grid-template-columns:54px minmax(0,1fr) 54px}#serviceMobileControls{gap:9px}#serviceMobileProgressTrack{left:54px;right:54px}#serviceMobileOverlay{padding:22px 19px 15px}
 body.service-ai .scene,body.service-automation .imm-scene,body.service-development .imm-scene,body.service-enterprise .stage,body.service-transformation .stage{padding-left:31px!important;padding-right:31px!important}
}
@media(prefers-reduced-motion:reduce){#serviceMobileOverlay,.scene,.stage,.imm-scene,.inner{transition:none!important}}

/* AFSC V114 — service/about journey glass matches HOME V104/V113 exactly. */
@media screen and (max-width:700px){
  #serviceMobileFooter{
    grid-template-columns:61px minmax(0,1fr) 61px!important;
  }
  #serviceMobileProgressTrack{
    position:absolute!important;
    display:block!important;
    pointer-events:none!important;
    z-index:0!important;
    top:1px!important;
    bottom:0!important;
    left:61px!important;
    right:61px!important;
    background:transparent!important;
    overflow:hidden!important;
  }
  #serviceMobileProgressFill{
    width:100%!important;
    height:100%!important;
    transform:scaleX(var(--afsc-service-progress,0))!important;
    transform-origin:left center!important;
    opacity:.18!important;
    background:linear-gradient(90deg,rgba(215,218,213,.03),rgba(215,218,213,.08))!important;
    border:0!important;
    border-right:1px solid rgba(212,175,55,.22)!important;
    box-shadow:none!important;
    filter:none!important;
    transition:transform .14s linear!important;
    will-change:transform!important;
  }
  #serviceMobileFooter>*:not(#serviceMobileProgressTrack){position:relative;z-index:2}
}
@media screen and (max-width:380px){
  #serviceMobileFooter{grid-template-columns:54px minmax(0,1fr) 54px!important}
  #serviceMobileProgressTrack{left:54px!important;right:54px!important}
}
@media (prefers-reduced-motion:reduce){#serviceMobileProgressFill{transition:none!important}}
