/* CR8R LABS — WORK V54 / MOBILE RECTIFICATION
   Mobile-only refinement for the V01 showcase system.
   Desktop remains untouched. No 3D. The desktop showcase structure is preserved,
   but mobile gets a deliberate, compact editorial/control-surface treatment.
*/
@media (max-width: 767px){
  .work-page{
    overflow:hidden!important;
    background:#02040a!important;
  }
  .work-page:before{
    background:
      radial-gradient(95% 24% at 88% 4%,rgba(38,113,255,.19),transparent 68%),
      radial-gradient(85% 26% at 4% 36%,rgba(224,39,191,.12),transparent 70%),
      radial-gradient(70% 22% at 78% 78%,rgba(255,157,34,.055),transparent 72%),
      linear-gradient(180deg,#030711 0%,#02040a 38%,#070412 73%,#02040a 100%);
  }

  /* HERO — less vertical waste, stronger homepage-like signal. */
  .work-hero{
    min-height:auto!important;
    padding:128px 0 70px!important;
    background:
      radial-gradient(90% 70% at 82% 24%,rgba(34,106,255,.15),transparent 68%),
      radial-gradient(70% 55% at 0% 82%,rgba(224,39,191,.09),transparent 72%),
      linear-gradient(145deg,#030814,#050711 58%,#090617)!important;
    border-bottom:1px solid rgba(255,255,255,.08);
  }
  .work-atmosphere span{
    width:390px!important;height:390px!important;
    right:-250px!important;top:-125px!important;
    border-color:rgba(37,206,255,.16)!important;
    box-shadow:0 0 90px rgba(30,139,255,.11),inset 0 0 60px rgba(224,39,191,.05)!important;
  }
  .work-atmosphere i{width:210px!important;height:210px!important;left:-115px!important;bottom:-90px!important}
  .work-atmosphere b{width:190px!important;height:190px!important;right:8%!important;top:25%!important}
  .work-kicker{
    margin-bottom:32px!important;
    gap:9px!important;
    font-size:7px!important;
    letter-spacing:.17em!important;
    line-height:1.7!important;
  }
  .work-kicker i{width:6px!important;height:6px!important}
  .work-kicker span{width:24px!important}
  .work-hero h1{
    max-width:100%!important;
    margin:17px 0 22px!important;
    font-size:clamp(3.15rem,14.2vw,4.8rem)!important;
    line-height:.88!important;
    letter-spacing:-.07em!important;
  }
  .work-hero p{
    max-width:330px!important;
    font-size:.88rem!important;
    line-height:1.65!important;
    color:#d5dbe6!important;
  }
  .work-hero-link{
    margin-top:31px!important;
    padding-bottom:9px!important;
    font-size:8px!important;
    letter-spacing:.16em!important;
  }

  /* BRIDGE — one compact signal strip rather than a text-heavy block. */
  .work-bridge{
    padding:49px 0 53px!important;
    background:
      radial-gradient(75% 80% at 92% 15%,rgba(43,151,255,.10),transparent 65%),
      linear-gradient(135deg,rgba(7,17,34,.88),rgba(11,5,26,.82))!important;
  }
  .work-bridge:before{right:-115px!important;top:-35px!important;width:240px!important;height:240px!important;opacity:.7}
  .work-bridge-line{
    padding-bottom:13px!important;
    font-size:6.5px!important;
    letter-spacing:.16em!important;
  }
  .work-bridge-grid{
    grid-template-columns:1fr!important;
    gap:18px!important;
    padding-top:25px!important;
  }
  .work-bridge h2{
    font-size:clamp(2.75rem,12.5vw,4.2rem)!important;
    line-height:.9!important;
    letter-spacing:-.065em!important;
  }
  .work-bridge p{font-size:.83rem!important;line-height:1.6!important;max-width:300px!important;color:#cdd5e2!important}

  /* SHOWCASE — this is the primary mobile experience. */
  .work-showcase{
    padding:60px 0 68px!important;
    background:
      radial-gradient(90% 35% at 50% 10%,rgba(24,172,255,.085),transparent 70%),
      radial-gradient(80% 32% at 88% 72%,rgba(228,37,187,.085),transparent 72%),
      linear-gradient(180deg,#030711,#060411 100%)!important;
  }
  .work-showcase-atmosphere span{width:260px!important;height:260px!important;left:-150px!important;top:24%!important;filter:blur(48px)!important}
  .work-showcase-atmosphere i{width:230px!important;height:230px!important;right:-120px!important;top:5%!important;filter:blur(48px)!important}
  .work-showcase-atmosphere b{width:220px!important;height:220px!important;right:0!important;bottom:-110px!important;filter:blur(48px)!important}
  .work-showcase-atmosphere em{width:130px!important;height:130px!important;left:35%!important;bottom:2%!important;filter:blur(42px)!important}
  .work-showcase-head{
    display:block!important;
    margin-bottom:22px!important;
  }
  .work-showcase-head h2{
    font-size:clamp(3.1rem,14vw,4.8rem)!important;
    margin:14px 0 0!important;
    line-height:.88!important;
  }
  .work-showcase-note{display:block!important;text-align:left!important;margin-top:14px!important;font-size:6.5px!important;line-height:1.7!important;letter-spacing:.17em!important;color:#78869e!important}

  /* MOBILE SHOWCASE TABS — one horizontal control rail.
     No stacked selector/dropdown: the four builds remain visible as a single
     interactive tab strip, with touch scrolling only when the viewport is tight. */
  .work-tabs{
    display:flex!important;
    flex-direction:column!important;
    gap:12px!important;
  }
  .work-tab-rail{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    gap:6px!important;
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;
    padding:7px!important;
    border-radius:23px!important;
    border-color:rgba(255,255,255,.11)!important;
    background:linear-gradient(145deg,rgba(8,16,31,.78),rgba(10,5,21,.88))!important;
    box-shadow:0 18px 60px rgba(0,0,0,.24),0 0 55px rgba(31,111,255,.05),inset 0 1px 0 rgba(255,255,255,.05)!important;
  }
  .work-tab-rail::-webkit-scrollbar{display:none!important}
  .work-tab{
    flex:0 0 auto!important;
    min-width:max-content!important;
    width:auto!important;
    padding:12px 12px!important;
    border-radius:16px!important;
    grid-template-columns:24px auto 13px!important;
    gap:7px!important;
    min-height:50px!important;
  }
  .work-tab span{font-size:7px!important;letter-spacing:.12em!important}
  .work-tab b{font-size:9px!important;letter-spacing:-.01em!important;white-space:nowrap!important}
  .work-tab i{font-size:10px!important}
  .work-tab:before{
    background:
      radial-gradient(circle at 0% 50%,rgba(35,214,255,.18),transparent 62%),
      radial-gradient(circle at 100% 100%,rgba(235,46,190,.10),transparent 58%)!important;
  }
  .work-tab.is-active{
    border-color:rgba(63,213,255,.44)!important;
    background:linear-gradient(135deg,rgba(12,34,59,.92),rgba(20,7,35,.88))!important;
    box-shadow:0 0 28px rgba(30,159,255,.11),0 0 55px rgba(235,46,190,.04),inset 0 1px 0 rgba(255,255,255,.09)!important;
  }

  /* Stage — single flowing mobile object, not a shrunken desktop split panel. */
  .work-stage{
    border-radius:25px!important;
    border-color:rgba(255,255,255,.13)!important;
    box-shadow:0 25px 80px rgba(0,0,0,.32),0 0 70px rgba(27,110,255,.055),inset 0 1px 0 rgba(255,255,255,.05)!important;
  }
  .work-stage-meta,
  .work-stage-footer{
    padding:11px 14px!important;
    font-size:6px!important;
    letter-spacing:.15em!important;
  }
  .work-stage-meta span:last-child{max-width:55%;text-align:right}
  .work-panel{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
  }
  .work-visual{
    min-height:220px!important;
    height:220px!important;
    border-right:0!important;
    border-bottom:1px solid rgba(255,255,255,.09)!important;
  }
  .work-visual:after{width:168px!important;height:168px!important;box-shadow:0 0 70px rgba(39,129,255,.12)!important}
  .work-visual img{max-height:100px!important}
  .work-visual-01 img{max-width:100px!important}
  .work-visual-02 img{max-width:112px!important}
  .work-visual-03 img{max-width:132px!important}
  .work-visual-04 img{max-width:136px!important}
  .work-panel-copy{
    padding:24px 19px 22px!important;
    display:flex!important;
    justify-content:flex-start!important;
  }
  .work-panel-copy .project-meta{font-size:7px!important;letter-spacing:.13em!important;color:#8f9db4!important}
  .work-panel-copy h3{
    font-size:clamp(2.35rem,10.5vw,3.45rem)!important;
    line-height:.93!important;
    letter-spacing:-.065em!important;
    margin:9px 0 15px!important;
  }
  .work-panel-copy h3 a{display:inline-flex!important;align-items:center;gap:6px!important}
  .work-panel-copy p{
    max-width:none!important;
    font-size:13px!important;
    line-height:1.62!important;
    color:#cbd3df!important;
  }
  .work-panel-foot{
    margin-top:20px!important;
    padding-top:14px!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:12px!important;
  }
  .work-panel-foot span{font-size:6.5px!important;line-height:1.7!important;letter-spacing:.12em!important}
  .work-panel-foot a{padding:9px 11px!important;font-size:6.5px!important;letter-spacing:.12em!important;white-space:nowrap!important}
  .work-stage-footer{background:rgba(255,255,255,.012)!important}

  /* CLOSE — short, atmospheric destination. */
  .work-close{
    padding:78px 0 88px!important;
    background:
      radial-gradient(80% 80% at 88% 40%,rgba(224,39,188,.12),transparent 66%),
      radial-gradient(75% 80% at 5% 25%,rgba(31,199,255,.10),transparent 66%),
      linear-gradient(145deg,#061021,#0a0516)!important;
  }
  .work-close-orbit{right:-220px!important;bottom:-250px!important;width:430px!important;height:430px!important}
  .work-close h2{
    font-size:clamp(3rem,13vw,4.35rem)!important;
    line-height:.9!important;
    letter-spacing:-.07em!important;
    margin:17px 0 28px!important;
  }
  .work-close .btn{padding:13px 17px!important;font-size:8px!important}
}

@media (max-width:380px){
  .work-hero{padding-top:120px!important}
  .work-tab{padding-left:10px!important;padding-right:10px!important}
  .work-tab b{font-size:8.5px!important}
  .work-visual{height:205px!important;min-height:205px!important}
  .work-panel-copy{padding-left:17px!important;padding-right:17px!important}
  .work-panel-foot{align-items:flex-start!important}
  .work-panel-foot a{align-self:flex-end!important}
}

@media (prefers-reduced-motion:reduce){
  .work-tab,.work-panel-foot a{transition:none!important}
}
