/* Jollitech motion layer (theme-motion.js). Every effect is opt-in through an "-armed" or state class the
   script adds, so without JavaScript, or with reduced motion, sections render exactly as before. */

/* ---------- Our projects: blueprint ink headline ---------- */
#jollitech-site .jt-mo-ink{position:relative;display:inline-block}
#jollitech-site .jt-mo-ink-armed .jt-mo-ink{-webkit-text-fill-color:transparent;-webkit-text-stroke:1.4px currentColor}
#jollitech-site .jt-mo-ink-armed .jt-mo-ink::after{content:attr(data-text);position:absolute;left:0;top:0;-webkit-text-fill-color:currentColor;-webkit-text-stroke:0;clip-path:inset(-10% 100% -10% 0)}
#jollitech-site .jt-mo-ink-armed .jt-mo-ink::before{content:"";position:absolute;z-index:1;top:10%;bottom:6%;left:0;width:3px;border-radius:3px;background:#a3e635;box-shadow:0 0 14px 2px #a3e635b3;opacity:0}
#jollitech-site .jt-mo-ink-play .jt-mo-ink::after{animation:jt-mo-ink-fill 1.05s cubic-bezier(.65,0,.35,1) calc(1.15s + var(--i) * .2s) forwards}
#jollitech-site .jt-mo-ink-play .jt-mo-ink::before{animation:jt-mo-ink-caret 1.05s cubic-bezier(.65,0,.35,1) calc(1.15s + var(--i) * .2s) forwards}
#jollitech-site .jt-mo-ink-armed .jt-sol-line em{background-repeat:no-repeat;background-size:0 100%}
#jollitech-site .jt-mo-ink-play .jt-sol-line em{animation:jt-mo-ink-mark .6s cubic-bezier(.65,0,.35,1) calc(2s + var(--n, 0) * .2s) forwards}
#jollitech-site .jt-mo-ink-play .jt-sol-line:nth-child(2) em{--n:1}
#jollitech-site .jt-mo-ink-play .jt-sol-line:nth-child(4) em{--n:3}
@keyframes jt-mo-ink-fill{to{clip-path:inset(-10% -4% -10% 0)}}
@keyframes jt-mo-ink-caret{0%{left:0;opacity:1}88%{opacity:1}100%{left:100%;opacity:0}}
@keyframes jt-mo-ink-mark{to{background-size:100% 100%}}

/* ---------- Our story: highlighter strokes + mission ticks ---------- */
#jollitech-site .jt-mo-mark{position:relative;display:inline-block;isolation:isolate}
#jollitech-site .jt-mo-mark svg{position:absolute;z-index:-1;left:-3%;bottom:.06em;width:106%;height:.42em;overflow:visible;pointer-events:none}
#jollitech-site .jt-mo-mark path{fill:none;stroke:#a3e635;stroke-width:16;stroke-linecap:round;opacity:.55;stroke-dasharray:1;stroke-dashoffset:0}
#jollitech-site .jt-mo-mark-armed .jt-mo-mark path{stroke-dashoffset:1}
#jollitech-site .jt-mo-mark-play .jt-mo-mark path{animation:jt-mo-draw .8s cubic-bezier(.65,0,.35,1) calc(.7s + var(--i) * .45s) forwards}
@keyframes jt-mo-draw{to{stroke-dashoffset:0}}
#jollitech-site .jt-mo-tick-armed .jt-purpose li{opacity:0}
#jollitech-site .jt-mo-tick-play .jt-purpose li{animation:jt-mo-tick .55s cubic-bezier(.2,.8,.2,1) calc(.2s + var(--k) * .09s) both}
#jollitech-site .jt-mo-tick-armed .jt-purpose{position:relative}
#jollitech-site .jt-mo-tick-armed .jt-purpose::before{content:"";position:absolute;top:-1px;left:0;width:100%;height:2px;background:linear-gradient(90deg,#a3e635,#a3e635);transform:scaleX(0);transform-origin:left}
#jollitech-site .jt-mo-tick-play .jt-purpose::before{animation:jt-mo-line 1s cubic-bezier(.65,0,.35,1) .1s forwards}
#jollitech-site .jt-mo-tick-play .jt-purpose+.jt-purpose::before{animation-delay:.35s}
@keyframes jt-mo-tick{from{opacity:0;transform:translateX(-14px)}to{opacity:1;transform:none}}
@keyframes jt-mo-line{to{transform:scaleX(1)}}

/* ---------- Life at Jollitech: cascade + pointer light ---------- */
#jollitech-site .jt-mo-life-armed>*{opacity:0}
#jollitech-site .jt-mo-life-play>*{animation:jt-mo-row .6s cubic-bezier(.2,.8,.2,1) calc(var(--k) * 55ms) backwards;opacity:1}
#jollitech-site .jt-mo-life-play .jt-benefit-item summary>span{animation:jt-mo-icon .7s cubic-bezier(.34,1.56,.64,1) calc(var(--k) * 55ms + .15s) backwards}
@keyframes jt-mo-row{from{opacity:0;transform:translateX(28px)}to{opacity:1;transform:none}}
@keyframes jt-mo-icon{from{opacity:0;transform:rotate(-120deg) scale(.4)}to{opacity:1;transform:none}}
#jollitech-site .jt-benefits.jt-mo-lit{position:relative;isolation:isolate;overflow:hidden}
#jollitech-site .jt-mo-spot{position:absolute;z-index:-1;top:-210px;left:-210px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,#ffffffd9 0,#a3e63533 38%,transparent 68%);opacity:0;pointer-events:none;transition:opacity .45s}
#jollitech-site .jt-mo-spot-on .jt-mo-spot{opacity:1}
@media(hover:hover) and (pointer:fine){
  #jollitech-site .jt-mo-lit .jt-benefit-item summary{transition:transform .25s cubic-bezier(.2,.8,.2,1)}
  #jollitech-site .jt-mo-lit .jt-benefit-item summary:hover{transform:translateX(6px)}
}

/* ---------- How we get there: scroll-linked rail ---------- */
#jollitech-site .jt-flow-steps{position:relative}
#jollitech-site .jt-mo-rail{display:none}
#jollitech-site .jt-mo-flow .jt-mo-rail{--p:0;position:absolute;z-index:0;display:block;width:2px;margin-left:-1px;border-radius:2px;background:#ffffff1f;pointer-events:none}
#jollitech-site .jt-mo-rail-fill{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(#a3e635,#a3e635);transform:scaleY(var(--p));transform-origin:top}
#jollitech-site .jt-mo-rail-head{position:absolute;top:0;left:50%;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:#f8fafc;box-shadow:0 0 0 4px #a3e63559,0 0 22px 6px #a3e63599;transform:translateY(calc(var(--p) * var(--span, 0px)));opacity:calc(min(1, var(--p) * 30) - max(0, var(--p) * 30 - 29))}
#jollitech-site .jt-mo-flow .jt-flow-step::before{display:none}
#jollitech-site .jt-mo-flow .jt-flow-num,#jollitech-site .jt-mo-flow .jt-flow-body>*{animation:none!important}
#jollitech-site .jt-mo-flow .jt-flow-num{transform:none;background:#1e293b;color:#94a3b8;box-shadow:0 0 0 6px #ffffff0d;transition:background .4s,color .4s,box-shadow .4s,transform .45s cubic-bezier(.34,1.56,.64,1)}
#jollitech-site .jt-mo-flow .jt-flow-body{opacity:.4;transform:translateX(12px);transition:opacity .55s,transform .55s cubic-bezier(.2,.8,.2,1)}
#jollitech-site .jt-mo-flow .jt-flow-body>*{opacity:1}
#jollitech-site .jt-mo-flow .jt-flow-step.is-lit .jt-flow-num{background:var(--tx-cyan,#a3e635);color:#0f172a;box-shadow:0 0 0 6px #a3e6352e,0 0 26px #a3e63580;transform:scale(1.06)}
#jollitech-site .jt-mo-flow .jt-flow-step.is-lit:last-child .jt-flow-num{background:var(--tx-lime,#a3e635);box-shadow:0 0 0 6px #a3e63540,0 0 26px #a3e63580}
#jollitech-site .jt-mo-flow .jt-flow-step.is-lit .jt-flow-body{opacity:1;transform:none}
#jollitech-site .jt-mo-flow .jt-flow-step.is-lit .jt-flow-num::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:2px solid #a3e635;animation:jt-mo-ping .9s ease-out forwards}
@keyframes jt-mo-ping{from{opacity:.9;transform:scale(.8)}to{opacity:0;transform:scale(1.7)}}

/* ---------- Testimonials: word-by-word + autoplay ring ---------- */
#jollitech-site .jt-mo-tm .jt-tm-card.is-reading .jt-mo-w{display:inline-block;animation:jt-mo-word .6s cubic-bezier(.2,.7,.2,1) calc(.3s + var(--w) * 26ms) both}
@keyframes jt-mo-word{from{opacity:0;filter:blur(6px);transform:translateY(.45em)}to{opacity:1;filter:none;transform:none}}
#jollitech-site .jt-mo-tm .jt-tm-avatar{position:relative}
#jollitech-site .jt-mo-ring{position:absolute;inset:-9px;width:calc(100% + 18px);height:calc(100% + 18px);transform:rotate(-90deg);overflow:visible;pointer-events:none;opacity:0;transition:opacity .3s}
#jollitech-site .jt-mo-ring circle{fill:none;stroke:#a3e635;stroke-width:2.2;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1}
#jollitech-site .jt-mo-tm.is-running .jt-tm-card[data-pos="0"] .jt-mo-ring{opacity:1}
#jollitech-site .jt-mo-tm.is-running .jt-tm-card.is-timing .jt-mo-ring circle{animation:jt-mo-count 4.8s linear forwards}
@keyframes jt-mo-count{to{stroke-dashoffset:0}}

@media(prefers-reduced-motion:reduce){
  #jollitech-site .jt-mo-ink::before,#jollitech-site .jt-mo-rail-head{display:none}
  #jollitech-site .jt-mo-w{animation:none!important}
  #jollitech-site .jt-mo-ring{display:none}
}
