
/* ============================================================
   FINAL MOBILE SERVICE TITLE / PIPELINE LAYOUT FIX
   ============================================================ */

@media(max-width:767px){

  /* Keep each service block compact and predictable. */
  #services .service-detail{
    display:block!important;
    width:100%!important;
    min-height:0!important;
    margin:0 0 14px!important;
    padding:0!important;
    overflow:hidden!important;
    border-radius:20px!important;
  }

  /* MOTION GRAPHICS + POST PRODUCTION:
     stack heading first, then one clean chip row below it. */
  #services #motion-graphics .service-title,
  #services #post-production .service-title{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    gap:0!important;
    min-height:0!important;
    height:auto!important;
    padding:18px 18px 16px!important;
    margin:0!important;
    border-right:0!important;
    border-bottom:1px solid var(--line)!important;
  }

  #services #motion-graphics .service-title > div:first-child,
  #services #post-production .service-title > div:first-child{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }

  #services #motion-graphics .service-title h3,
  #services #post-production .service-title h3{
    margin:7px 0 0!important;
    font-size:clamp(31px,9.4vw,42px)!important;
    line-height:.94!important;
    letter-spacing:-.05em!important;
    white-space:normal!important;
  }

  #services #motion-graphics .service-title h3 br,
  #services #post-production .service-title h3 br{
    display:none!important;
  }

  #services #motion-graphics .service-title .pipeline,
  #services #post-production .service-title .pipeline{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    gap:7px!important;
    margin:15px 0 0!important;
    padding:0!important;
  }

  #services #motion-graphics .service-title .pipeline span,
  #services #post-production .service-title .pipeline span{
    position:static!important;
    flex:0 0 auto!important;
    min-width:0!important;
    min-height:28px!important;
    height:28px!important;
    margin:0!important;
    padding:0 11px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:999px!important;
    font-size:8px!important;
    font-weight:800!important;
    line-height:1!important;
    white-space:nowrap!important;
    transform:none!important;
  }

  /* AI ANIMATION:
     heading left, logo right, without affecting the other service layouts. */
  #services #ai-animation .service-title{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 68px!important;
    grid-template-areas:"copy logo"!important;
    align-items:center!important;
    gap:14px!important;
    min-height:0!important;
    height:auto!important;
    padding:18px!important;
    margin:0!important;
    border-right:0!important;
    border-bottom:1px solid var(--line)!important;
  }

  #services #ai-animation .service-title > div:first-child{
    grid-area:copy!important;
    min-width:0!important;
  }

  #services #ai-animation .service-title h3{
    margin:7px 0 0!important;
    font-size:clamp(31px,9.4vw,42px)!important;
    line-height:.94!important;
    letter-spacing:-.05em!important;
  }

  #services #ai-animation .service-title h3 br{
    display:none!important;
  }

  #services #ai-animation .service-title img{
    grid-area:logo!important;
    width:64px!important;
    height:64px!important;
    max-width:64px!important;
    max-height:64px!important;
    margin:0!important;
    justify-self:end!important;
    align-self:center!important;
    object-fit:contain!important;
  }

  /* Service items begin immediately after title panel. */
  #services .service-list{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    padding:12px!important;
    margin:0!important;
  }

  #services .service-list > div{
    min-height:54px!important;
    height:auto!important;
    padding:10px 9px 10px 27px!important;
    display:flex!important;
    align-items:center!important;
    font-size:10.5px!important;
    line-height:1.32!important;
    border-radius:13px!important;
  }
}

@media(max-width:380px){
  #services #motion-graphics .service-title,
  #services #post-production .service-title,
  #services #ai-animation .service-title{
    padding:16px!important;
  }

  #services #motion-graphics .service-title h3,
  #services #post-production .service-title h3,
  #services #ai-animation .service-title h3{
    font-size:29px!important;
  }

  #services #ai-animation .service-title{
    grid-template-columns:minmax(0,1fr) 56px!important;
  }

  #services #ai-animation .service-title img{
    width:54px!important;
    height:54px!important;
  }

  #services .service-list{
    gap:7px!important;
    padding:10px!important;
  }

  #services .service-list > div{
    min-height:50px!important;
    font-size:10px!important;
  }
}


/* ============================================================
   DOCK ARROW — ANIMATED GRADIENT CIRCLE, ALL DEVICES
   Uses a pseudo-element so other button backgrounds cannot erase it.
   ============================================================ */

.island-arrow{
  position:relative!important;
  isolation:isolate!important;
  display:grid!important;
  place-items:center!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  background:transparent!important;
  color:#fff!important;
  overflow:visible!important;
  text-decoration:none!important;
}

.island-arrow::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:-1!important;
  display:block!important;
  border-radius:50%!important;
  background:
    conic-gradient(
      from 0deg,
      #20c7eb 0deg,
      #586cff 115deg,
      #c64ae4 230deg,
      #20c7eb 360deg
    )!important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 8px 24px rgba(88,108,255,.28),
    0 0 20px rgba(32,199,235,.10)!important;
  transform:translateZ(0)!important;
  animation:evoArrowOrbit 4.5s linear infinite!important;
}

.island-arrow::after{
  content:""!important;
  position:absolute!important;
  inset:3px!important;
  z-index:-1!important;
  border-radius:50%!important;
  background:rgba(8,14,24,.88)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important;
  pointer-events:none!important;
}

html[data-theme="light"] .island-arrow::after{
  background:rgba(255,255,255,.88)!important;
}

html[data-theme="light"] .island-arrow{
  color:#111827!important;
}

.island-arrow .evo-ui-icon,
.island-arrow svg{
  position:relative!important;
  z-index:2!important;
  width:17px!important;
  height:17px!important;
  pointer-events:none!important;
}

.island-arrow:hover::before{
  box-shadow:
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 10px 30px rgba(88,108,255,.38),
    0 0 24px rgba(32,199,235,.16)!important;
}

@keyframes evoArrowOrbit{
  from{transform:rotate(0deg)}
  to{transform:rotate(360deg)}
}

@media(max-width:900px){
  .island-arrow{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
  }
}

@media(max-width:390px){
  .island-arrow{
    width:35px!important;
    height:35px!important;
    min-width:35px!important;
    min-height:35px!important;
  }

  .island-arrow::after{
    inset:2.5px!important;
  }

  .island-arrow .evo-ui-icon,
  .island-arrow svg{
    width:15px!important;
    height:15px!important;
  }
}

@media(prefers-reduced-motion:reduce){
  .island-arrow::before{
    animation:none!important;
  }
}
