/* Phone carousel for card grids marked data-mobile-carousel (see mobile-carousel.js). */
.mobile-carousel-dots{display:none}

@media(max-width:767px){
  :is(.services-grid,.industry-grid,.service-grid,.reason-grid,.process-grid,.retail-problem-grid,.mfg-pressure-grid,.finance-problem-grid,.property-problem-grid,.logistics-problem-grid,.construction-problem-grid)[data-mobile-carousel]{
    position:relative;
    display:flex;
    align-items:stretch;
    gap:14px;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory;
    scroll-padding-inline:0;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding-bottom:4px;
  }
  :is(.services-grid,.industry-grid,.service-grid,.reason-grid,.process-grid,.retail-problem-grid,.mfg-pressure-grid,.finance-problem-grid,.property-problem-grid,.logistics-problem-grid,.construction-problem-grid)[data-mobile-carousel]::-webkit-scrollbar{display:none}
  :is(.services-grid,.industry-grid,.service-grid,.reason-grid,.process-grid,.retail-problem-grid,.mfg-pressure-grid,.finance-problem-grid,.property-problem-grid,.logistics-problem-grid,.construction-problem-grid)[data-mobile-carousel]>*{
    flex:0 0 86%;
    width:86%;
    max-width:420px;
    scroll-snap-align:start;
    scroll-snap-stop:always;
  }
  .industry-grid[data-mobile-carousel]>.industry-card{grid-template-rows:clamp(200px,52vw,280px) auto}
  .industry-grid[data-mobile-carousel] .industry-card-copy{padding:24px 22px}
  .industry-grid[data-mobile-carousel] .industry-card h3{margin-top:20px;font-size:clamp(26px,7.5vw,32px)}

  /* Home page: the services panel becomes separate cards, and long cards lose their desktop minimum heights. */
  .home-page .services .service-grid[data-mobile-carousel]{overflow-x:auto;overflow-y:hidden;gap:14px;isolation:auto;border:0;border-radius:0;background:none;box-shadow:none}
  .home-page .services .service-grid[data-mobile-carousel]:before,
  .home-page .services .service-grid[data-mobile-carousel]:after{display:none}
  .home-page .services .service-grid[data-mobile-carousel]>.service-card{min-height:0;padding:24px;border:1px solid rgba(105,155,191,.22)!important;border-radius:17px;background:linear-gradient(145deg,#10171e,#0a1016)}
  .home-page .services .service-grid[data-mobile-carousel] .service-icon{margin-bottom:22px}
  html[data-theme="light"] .home-page .services .service-grid[data-mobile-carousel]{border:0;background:none;box-shadow:none}
  html[data-theme="light"] .home-page .services .service-grid[data-mobile-carousel]>.service-card{border:1px solid rgba(30,119,181,.21)!important}
  .home-page :is(.reason-grid,.process-grid)[data-mobile-carousel]>*{min-height:0}
  /* Industry challenge and workflow cards: drop the desktop minimum height so slides end with their text. */
  :is(.retail-problem-grid,.mfg-pressure-grid,.finance-problem-grid,.property-problem-grid,.logistics-problem-grid,.construction-problem-grid)[data-mobile-carousel]>article{min-height:0}
  /* "Our process" is one joined panel on larger screens; as slides each step gets its own card. */
  .home-page .process-grid[data-mobile-carousel]{overflow-x:auto;overflow-y:hidden;gap:14px;isolation:auto;border:0;border-radius:0;background:none;box-shadow:none}
  .home-page .process-grid[data-mobile-carousel]:before{display:none}
  .home-page .process-grid[data-mobile-carousel]>li,
  .home-page .process-grid[data-mobile-carousel]>li:last-child{border:1px solid rgba(130,158,181,.18);border-radius:17px;background:linear-gradient(145deg,rgba(16,20,25,.86),rgba(8,12,16,.9))}
  html[data-theme="light"] .home-page .process-grid[data-mobile-carousel]{border:0;background:none;box-shadow:none}
  /* "Why Artic" is a joined list on larger screens; as slides each reason gets its own card. */
  .home-page .reason-grid[data-mobile-carousel]{overflow-x:auto;overflow-y:hidden;gap:14px;isolation:auto;border:0;background:none}
  .home-page .reason-grid[data-mobile-carousel]:before{display:none}
  .home-page .reason-grid[data-mobile-carousel]>.reason-card{align-items:start;padding:22px 20px;border:1px solid rgba(130,158,181,.18);border-radius:17px;background:linear-gradient(145deg,rgba(16,20,25,.86),rgba(8,12,16,.9))}
  .home-page .reason-grid[data-mobile-carousel]>.reason-card:after{display:none}
  html[data-theme="light"] .home-page .reason-grid[data-mobile-carousel]{border:0;background:none;box-shadow:none}
  html[data-theme="light"] .home-page .reason-grid[data-mobile-carousel]>.reason-card{border-color:rgba(30,119,181,.2);background:linear-gradient(145deg,#fff,#f2f8fc)}

  .mobile-carousel-dots{
    margin-top:20px;
    display:flex;
    justify-content:center;
    gap:4px;
  }
  .mobile-carousel-dots button{
    position:relative;
    width:28px;
    height:28px;
    padding:0;
    border:0;
    background:none;
    cursor:pointer;
  }
  .mobile-carousel-dots button:after{
    content:"";
    position:absolute;
    left:50%;
    top:50%;
    width:7px;
    height:7px;
    border-radius:999px;
    background:rgba(126,170,201,.32);
    transform:translate(-50%,-50%);
    transition:width .3s ease,background .3s ease;
  }
  .mobile-carousel-dots button[aria-current="true"]:after{
    width:22px;
    background:#2fa6ff;
    box-shadow:0 0 12px rgba(47,166,255,.5);
  }
  .mobile-carousel-dots button:focus-visible{outline:2px solid #6cc6ff;outline-offset:-2px;border-radius:8px}
  html[data-theme="light"] .mobile-carousel-dots button:after{background:rgba(20,70,110,.22)}
  html[data-theme="light"] .mobile-carousel-dots button[aria-current="true"]:after{background:#0074d4;box-shadow:none}
}

@media(max-width:767px) and (prefers-reduced-motion:reduce){
  .mobile-carousel-dots button:after{transition:none}
}
