/* HadiTech home motion, 2026-11-21. Applies only when motion-pro.js has run (html.ht-motion)
   and the visitor accepts motion. Transform and opacity only, except the network strokes. */
@media (prefers-reduced-motion: no-preference) {

:root{--ht-out:cubic-bezier(.16,1,.3,1);--ht-soft:cubic-bezier(.4,0,.2,1)}

/* ---------- Hero entrance (one sequence) ---------- */
.ht-motion .clx-home-reference-hero{position:relative;overflow:hidden;isolation:isolate}
.ht-motion .clx-home-reference-hero .clx-container{position:relative;z-index:1}
.ht-motion #home-title .ht-w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.08em;margin-bottom:-.08em}
.ht-motion #home-title .ht-wi{display:inline-block;transform:translateY(105%);transition:transform .9s var(--ht-out);transition-delay:calc(120ms + var(--i) * 55ms)}
.ht-motion .ht-hero-go #home-title .ht-wi{transform:none}
.ht-motion .clx-hero-copy .clx-badge,.ht-motion .clx-hero-copy>p,.ht-motion .clx-hero-benefits>div,.ht-motion .clx-home-custom-benefits li,.ht-motion .clx-hero-actions>*{opacity:0;transform:translateY(14px);transition:opacity .7s var(--ht-soft),transform .8s var(--ht-out)}
.ht-motion .clx-hero-copy .clx-badge{transform:translateY(-8px);transition-delay:40ms}
.ht-motion .clx-hero-copy>p{transition-delay:520ms}
.ht-motion .clx-hero-benefits>div:nth-child(1),.ht-motion .clx-home-custom-benefits li:nth-child(1){transition-delay:640ms}
.ht-motion .clx-hero-benefits>div:nth-child(2),.ht-motion .clx-home-custom-benefits li:nth-child(2){transition-delay:700ms}
.ht-motion .clx-hero-benefits>div:nth-child(3),.ht-motion .clx-home-custom-benefits li:nth-child(3){transition-delay:760ms}
.ht-motion .clx-hero-benefits>div:nth-child(4),.ht-motion .clx-home-custom-benefits li:nth-child(4){transition-delay:820ms}
.ht-motion .clx-hero-actions>*:nth-child(1){transition-delay:900ms}
.ht-motion .clx-hero-actions>*:nth-child(2){transition-delay:980ms}
.ht-motion .ht-hero-go .clx-hero-copy .clx-badge,.ht-motion .ht-hero-go .clx-hero-copy>p,.ht-motion .ht-hero-go .clx-hero-benefits>div,.ht-motion .ht-hero-go .clx-home-custom-benefits li,.ht-motion .ht-hero-go .clx-hero-actions>*{opacity:1;transform:none}

/* The picture opens like a window, then settles; it leans gently toward the pointer. */
.ht-motion .clx-home-reference-media{perspective:1200px;--rx:0deg;--ry:0deg}
.ht-motion .clx-home-reference-media>img{clip-path:inset(0 0 0 100%);transform:scale(1.06) rotateX(var(--rx)) rotateY(var(--ry));transition:clip-path 1.1s var(--ht-out) .25s,transform 1.4s var(--ht-out) .25s}
.ht-motion .ht-hero-go .clx-home-reference-media>img{clip-path:inset(0 0 0 0);transform:scale(1) rotateX(var(--rx)) rotateY(var(--ry))}
.ht-motion .ht-hero-go .clx-home-reference-media:hover>img{transition:clip-path 1.1s var(--ht-out),transform .5s var(--ht-out)}
.ht-motion .clx-hero-platform-card,.ht-motion .clx-hero-secure-pill,.ht-motion .clx-home-reference-note{opacity:0;transform:translateY(18px) scale(.96);transition:opacity .6s var(--ht-soft),transform .8s var(--ht-out)}
.ht-motion .ht-hero-go .clx-hero-platform-card{opacity:1;transform:none;transition-delay:1.05s;animation:ht-float 7s ease-in-out 2s infinite}
.ht-motion .ht-hero-go .clx-hero-secure-pill{opacity:1;transform:none;transition-delay:1.25s;animation:ht-float 8s ease-in-out 2.6s infinite reverse}
.ht-motion .ht-hero-go .clx-home-reference-note{opacity:1;transform:none;transition-delay:1.4s}
.ht-motion .clx-hero-platform-card i{animation:ht-live 2.4s ease-in-out infinite}
@keyframes ht-float{0%,100%{translate:0 0}50%{translate:0 -8px}}
@keyframes ht-live{0%,100%{opacity:1}50%{opacity:.35}}

/* ---------- Signature: the connected network behind the hero ---------- */
.ht-network{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:.55;mask-image:linear-gradient(90deg,#000 0,#000 45%,transparent 72%);-webkit-mask-image:linear-gradient(90deg,#000 0,#000 45%,transparent 72%)}
.ht-net-line{fill:none;stroke:rgba(120,180,255,.28);stroke-width:1;vector-effect:non-scaling-stroke;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.4s var(--ht-soft);transition-delay:calc(200ms + var(--d))}
.ht-hero-go .ht-net-line{stroke-dashoffset:0}
.ht-net-node{fill:#5fb2ff;opacity:0;transform-box:fill-box;transform-origin:center;transform:scale(0);transition:opacity .5s var(--ht-soft),transform .6s var(--ht-out);transition-delay:var(--d)}
.ht-net-node.is-hub{fill:#9fd2ff}
.ht-hero-go .ht-net-node{opacity:.9;transform:none}
.ht-hero-go .ht-net-node.is-hub{animation:ht-hub 3.6s ease-in-out 2.2s infinite}
@keyframes ht-hub{0%,100%{opacity:.9}50%{opacity:.4}}
/* A short bright segment travels along some links: a payment, an order, a message. */
.ht-net-pulse{fill:none;stroke:#7cc4ff;stroke-width:2;stroke-linecap:round;vector-effect:non-scaling-stroke;stroke-dasharray:.08 .92;stroke-dashoffset:1;opacity:0}
.ht-hero-go .ht-net-pulse{animation:ht-pulse var(--t) linear var(--d) infinite}
@keyframes ht-pulse{0%{stroke-dashoffset:1;opacity:0}8%{opacity:1}85%{opacity:1}100%{stroke-dashoffset:-.08;opacity:0}}
.ht-network.is-paused *{animation-play-state:paused!important}

/* ---------- Reading the page: quiet, once ---------- */
.ht-motion .ht-reveal{opacity:0;transform:translateY(22px);transition:opacity .7s var(--ht-soft),transform .9s var(--ht-out)}
.ht-motion .ht-reveal.ht-in{opacity:1;transform:none}
.ht-motion .ht-stagger>*{opacity:0;transform:translateY(26px);transition:opacity .6s var(--ht-soft),transform .8s var(--ht-out);transition-delay:calc(var(--i,0) * 70ms)}
.ht-motion .ht-stagger.ht-in>*{opacity:1;transform:none}

/* Solution cards: the product rises a little on hover; the icon answers. */
.ht-motion .clx-home-solutions-grid>article{transition:transform .35s var(--ht-out),box-shadow .35s var(--ht-soft),opacity .6s var(--ht-soft)}
.ht-motion .clx-home-solutions-grid>article img{transition:transform .5s var(--ht-out)}
.ht-motion .clx-home-solutions-grid>article:hover{transform:translateY(-4px)}
.ht-motion .clx-home-solutions-grid>article:hover img{transform:translateY(-6px) scale(1.04)}
.ht-motion .clx-home-solutions-grid>article i,.ht-motion .clx-home-solutions-grid>article svg:first-child{transition:transform .45s var(--ht-out)}
.ht-motion .clx-home-solutions-grid>article:hover i{transform:rotate(-8deg) scale(1.08)}

/* Marketplace devices: depth while scrolling. */
.ht-motion .clx-home-marketplace-visual{--py:0px}
.ht-motion .clx-home-marketplace-visual img{transform:translate3d(0,var(--py),0);will-change:transform}

/* Primary buttons: a light sweep on hover. */
.ht-motion .clx-btn-primary{position:relative;overflow:hidden}
.ht-motion .clx-btn-primary::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.28) 50%,transparent 65%);transform:translateX(-120%);transition:transform .7s var(--ht-out);pointer-events:none}
.ht-motion .clx-btn-primary:hover::after{transform:translateX(120%)}

/* Header: compact and solid once the page moves. */
.ht-motion body>header{transition:box-shadow .3s var(--ht-soft),background-color .3s var(--ht-soft),backdrop-filter .3s}
.ht-motion body>header.ht-scrolled{box-shadow:0 8px 30px -12px rgba(9,30,66,.25);background-color:rgba(255,255,255,.86);backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px)}

/* Small screens: lighter network, no tilt. */
@media (max-width:860px){
  .ht-network{opacity:.35;mask-image:linear-gradient(180deg,#000 0,#000 40%,transparent 75%);-webkit-mask-image:linear-gradient(180deg,#000 0,#000 40%,transparent 75%)}
  .ht-motion .clx-home-reference-media>img{transform:scale(1.04)}
  .ht-motion .ht-hero-go .clx-home-reference-media>img{transform:none}
}
}
