/* Shen Motion */
:root{--shen-progress:var(--e-global-color-secondary,#8C1C3A);--shen-ease:cubic-bezier(.16,1,.3,1);--shen-wipe:cubic-bezier(.77,0,.18,1)}

/* ---------- scroll reveals (hidden only once the script has started) ---------- */
.shen-js [data-shen-r]{transition:opacity .9s var(--shen-ease),translate .9s var(--shen-ease),scale .9s var(--shen-ease),rotate .9s var(--shen-ease),filter 1s ease,clip-path 1.2s var(--shen-wipe),box-shadow .35s ease}
.shen-js [data-shen-r="rise"]:not(.is-in){opacity:0;translate:0 60px}
.shen-js [data-shen-r="fade"]:not(.is-in){opacity:0}
.shen-js [data-shen-r="blur"]:not(.is-in){opacity:0;filter:blur(14px);translate:0 24px}
.shen-js [data-shen-r="tile"]:not(.is-in){opacity:0;scale:.84;filter:blur(12px)}
.shen-js [data-shen-r="pop"]{transition-timing-function:cubic-bezier(.34,1.56,.64,1)}
.shen-js [data-shen-r="pop"]:not(.is-in){opacity:0;scale:.3;rotate:-10deg}
.shen-js [data-shen-r="bounce"]{transition-timing-function:cubic-bezier(.34,1.56,.64,1)}
.shen-js [data-shen-r="bounce"]:not(.is-in){opacity:0;translate:0 110px}
.shen-js [data-shen-r="swing"]:not(.is-in){opacity:0;rotate:-12deg;translate:-40px 30px}
.shen-js [data-shen-r="left"]:not(.is-in){opacity:0;translate:-80px 0}
.shen-js [data-shen-r="right"]:not(.is-in){opacity:0;translate:80px 0}
.shen-js [data-shen-r="flip"]:not(.is-in){opacity:0;transform:perspective(1100px) rotateX(70deg) translateY(60px);transform-origin:50% 100%}
.shen-js [data-shen-r="flip"]{transition:opacity .8s ease,transform 1.1s var(--shen-ease)}
.shen-js [data-shen-r="slam"]{transition-timing-function:cubic-bezier(.2,1.4,.4,1)}
.shen-js [data-shen-r="slam"]:not(.is-in){opacity:0;translate:0 -60px}
.shen-js [data-shen-r="glitch"]:not(.is-in){opacity:0;filter:blur(10px) hue-rotate(90deg);translate:0 30px}
.shen-js [data-shen-r="sepia"]:not(.is-in){opacity:.2;filter:grayscale(1) sepia(.5) blur(4px)}
.shen-js [data-shen-r="sepia"]{transition-duration:1.6s}
.shen-js [data-shen-r="clip"]:not(.is-in){clip-path:inset(0 0 0 100%)}
.shen-js [data-shen-r="clipl"]:not(.is-in){clip-path:inset(0 100% 0 0)}
.shen-js [data-shen-r="clip"].is-in,.shen-js [data-shen-r="clipl"].is-in{clip-path:inset(0 0 0 0)}
.shen-js [data-shen-r="iris"]:not(.is-in){clip-path:circle(0% at 50% 50%)}
.shen-js [data-shen-r="iris"].is-in{clip-path:circle(75% at 50% 50%)}
.shen-js [data-shen-r="arch"]:not(.is-in){clip-path:inset(100% 0 0 0 round 300px 300px 0 0)}
.shen-js [data-shen-r="arch"].is-in{clip-path:inset(0 0 0 0 round 300px 300px 0 0)}
.shen-js [data-shen-r="curtain"]{position:relative;overflow:hidden}
.shen-js [data-shen-r="curtain"]::after{content:"";position:absolute;inset:0;background:var(--e-global-color-accent,#FFB81C);transform-origin:100% 50%;transition:transform 1.1s var(--shen-wipe);z-index:3;pointer-events:none}
.shen-js [data-shen-r="curtain"].is-in::after{transform:scaleX(0)}
.shen-js [data-shen-r="curtain"] img{transition:scale 1.4s var(--shen-ease)}
.shen-js [data-shen-r="curtain"]:not(.is-in) img{scale:1.3}
[data-shen-r="blinds"]{position:relative;overflow:hidden}
.shen-blind{position:absolute;left:0;right:0;height:20.5%;background:var(--e-global-color-shenbg,#fff);transform-origin:50% 0;z-index:3;pointer-events:none;transition:scale .9s var(--shen-wipe)}
[data-shen-r="blinds"].is-in .shen-blind,html:not(.shen-js) .shen-blind{scale:1 0}
.shen-mask{display:block;overflow:hidden;padding-bottom:.06em}.shen-mask > span{display:block;transition:translate 1.1s var(--shen-ease)}
.shen-js [data-shen-r="lines"]{transition:none}
.shen-js [data-shen-r="lines"]:not(.is-in) .shen-mask > span{translate:0 105%}
.shen-js [data-shen-r="rule"]{transform-origin:0 50%}
.shen-js [data-shen-r="rule"]:not(.is-in){scale:0 1}

/* ---------- hover effects ---------- */
.shen-motion [data-shen-h]{transition:translate .35s ease,box-shadow .35s ease,transform .25s ease-out,opacity .9s ease,scale .9s var(--shen-ease),filter 1s ease,clip-path 1.2s var(--shen-wipe)}
.shen-motion [data-shen-h="lift"]:hover{translate:0 -10px;box-shadow:0 28px 56px rgba(16,30,60,.18)}
.shen-motion [data-shen-h="zoom"]{overflow:hidden}
.shen-motion [data-shen-h="zoom"] img{transition:scale .9s var(--shen-ease)}
.shen-motion [data-shen-h="zoom"]:hover img{scale:1.1}
.shen-motion [data-shen-h="jelly"]{transition:scale .5s cubic-bezier(.34,1.8,.64,1),translate .5s cubic-bezier(.34,1.8,.64,1),rotate .5s ease}
.shen-motion [data-shen-h="jelly"]:hover{scale:1.05;rotate:-2deg;translate:0 -8px}
.shen-motion [data-shen-h="glare"]{position:relative;overflow:hidden;transform-style:preserve-3d}
.shen-motion [data-shen-h="glare"]::after{content:"";position:absolute;inset:0;border-radius:inherit;background:radial-gradient(260px circle at var(--gx,50%) var(--gy,0%),rgba(255,255,255,.55),transparent 60%);opacity:0;transition:opacity .3s ease;pointer-events:none}
.shen-motion [data-shen-h="glare"]:hover::after{opacity:1}
.shen-motion [data-shen-h="tilt"]:hover,.shen-motion [data-shen-h="glare"]:hover{box-shadow:0 30px 60px rgba(16,30,60,.2)}
.shen-motion [data-shen-h="spot"]{position:relative;overflow:hidden}
.shen-motion [data-shen-h="spot"]::before{content:"";position:absolute;inset:0;background:radial-gradient(380px circle at var(--x,-200px) var(--y,-200px),color-mix(in srgb,var(--e-global-color-accent,#7C6CFF) 30%,transparent),transparent 60%);pointer-events:none;opacity:0;transition:opacity .3s ease}
.shen-motion [data-shen-h="spot"]:hover::before{opacity:1}
.shen-motion [data-shen-h="frame"]:hover{translate:-8px -8px;box-shadow:12px 12px 0 var(--e-global-color-accent,#C9A24B)}
.shen-motion [data-shen-h="sweep"]{position:relative;overflow:hidden;isolation:isolate}
.shen-motion [data-shen-h="sweep"]::before{content:"";position:absolute;inset:0;background:var(--e-global-color-secondary,#0E7C7B);transform:translateY(101%);transition:transform .5s var(--shen-ease);z-index:-1}
.shen-motion [data-shen-h="sweep"]:hover::before{transform:translateY(0)}
.shen-motion [data-shen-h="sweep"]:hover,.shen-motion [data-shen-h="sweep"]:hover *{color:#fff !important}
.shen-motion [data-shen-h="shine"] .elementor-button{position:relative;overflow:hidden}
.shen-motion [data-shen-h="shine"] .elementor-button::after{content:"";position:absolute;top:0;left:-70%;width:45%;height:100%;background:linear-gradient(100deg,rgba(255,255,255,0),rgba(255,255,255,.55),rgba(255,255,255,0));transform:skewX(-20deg);transition:left .7s ease}
.shen-motion [data-shen-h="shine"] .elementor-button:hover::after{left:140%}
.shen-motion [data-shen-h="shine"] .elementor-button,.shen-motion [data-shen-h="mag"] .elementor-button{transition:translate .3s ease,box-shadow .3s ease,background-color .3s ease,color .3s ease}
.shen-motion [data-shen-h="shine"] .elementor-button:hover{translate:0 -3px;box-shadow:0 14px 28px rgba(16,30,60,.25)}
.shen-motion [data-shen-depth]{transition:translate .3s ease-out}

/* ---------- loops ---------- */
@keyframes shen-float{from{translate:0 0}to{translate:0 -16px}}
@keyframes shen-spin{to{rotate:360deg}}
@keyframes shen-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--e-global-color-accent,#FFB81C) 65%,transparent)}100%{box-shadow:0 0 0 22px transparent}}
@keyframes shen-morph{0%,100%{border-radius:46% 54% 42% 58%/52% 44% 56% 48%}33%{border-radius:58% 42% 55% 45%/44% 58% 42% 56%}66%{border-radius:40% 60% 48% 52%/58% 40% 60% 42%}}
@keyframes shen-kb{from{scale:1.18}to{scale:1}}
.shen-motion [data-shen-loop="float"]{animation:shen-float 3.2s ease-in-out infinite alternate}
.shen-motion [data-shen-loop="spin"]{animation:shen-spin 18s linear infinite}
.shen-motion [data-shen-loop="pulse"] .elementor-icon,.shen-motion [data-shen-loop="pulse"].e-con,.shen-motion [data-shen-loop="pulse"] .elementor-button{animation:shen-pulse 1.8s ease-out infinite}
.shen-motion [data-shen-loop="morph"],.shen-motion [data-shen-loop="morph"] img{animation:shen-morph 9s ease-in-out infinite}
.shen-motion [data-shen-loop="kb"]{overflow:hidden}.shen-motion [data-shen-loop="kb"] img{animation:shen-kb 9s var(--shen-ease) both}

/* ---------- progress bar & back to top ---------- */
.shen-progress{position:fixed;left:0;top:0;height:4px;width:100%;background:var(--shen-progress);transform-origin:0 50%;transform:scaleX(0);z-index:99999;pointer-events:none}
.admin-bar .shen-progress{top:32px}
.shen-totop{position:fixed;right:22px;bottom:22px;width:50px;height:50px;border-radius:14px;background:var(--shen-progress);color:#fff;display:grid;place-items:center;z-index:9990;opacity:0;translate:0 20px;pointer-events:none;transition:opacity .3s ease,translate .3s ease;box-shadow:0 12px 26px rgba(0,0,0,.2)}
.shen-totop.show{opacity:1;translate:0 0;pointer-events:auto}.shen-totop:hover{color:#fff}

/* ---------- Animated heading ---------- */
.shen-ah{margin:0}
.shen-ah__word{display:inline-block;white-space:nowrap}
.shen-ah[data-mode="type"] .shen-ah__word::after{content:"|";margin-left:2px;animation:shen-blink 1s steps(1) infinite}
@keyframes shen-blink{50%{opacity:0}}
.shen-ah[data-mode="flip"] .shen-ah__word{transition:translate .35s ease,opacity .35s ease}
.shen-ah[data-mode="flip"] .shen-ah__word.is-out{translate:0 -40%;opacity:0}
@keyframes shen-shine{from{background-position:120% 0}to{background-position:-120% 0}}
.shen-motion .shen-ah[data-mode="shimmer"] .shen-ah__word{background:linear-gradient(100deg,currentColor 40%,var(--shen-shine,#E9A23B) 50%,currentColor 60%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:shen-shine 5s linear infinite}

/* ---------- Ticker ---------- */
.shen-ticker{overflow:hidden;position:relative}
.shen-ticker__track{display:flex;width:max-content;gap:var(--gap,40px)}
.shen-ticker__item{display:flex;align-items:center;gap:var(--gap,40px);white-space:nowrap;flex:none}
.shen-ticker__item img{display:block;object-fit:cover}
.shen-ticker__sep svg{display:block}
@keyframes shen-marq{to{translate:-50% 0}}
@keyframes shen-marq-r{from{translate:-50% 0}to{translate:0 0}}
.shen-motion .shen-ticker__track{animation:shen-marq var(--dur,30s) linear infinite}
.shen-motion .shen-ticker--right .shen-ticker__track{animation-name:shen-marq-r}
.shen-motion .shen-ticker--pause:hover .shen-ticker__track{animation-play-state:paused}

/* ---------- Decor ---------- */
.shen-decor{position:relative;pointer-events:none;width:100%;height:100%}
.shen-decor svg{display:block;width:100%;height:100%;overflow:visible}
@keyframes shen-draw{from{stroke-dashoffset:var(--len,1200)}to{stroke-dashoffset:0}}
@keyframes shen-ecg{from{stroke-dashoffset:1200}to{stroke-dashoffset:0}}
@keyframes shen-fly{0%{offset-distance:0%;opacity:0}12%{opacity:1}85%{opacity:1}100%{offset-distance:100%;opacity:0}}
@keyframes shen-dash{to{stroke-dashoffset:-200}}
@keyframes shen-twinkle{0%,100%{opacity:.25;scale:.6;rotate:0deg}50%{opacity:1;scale:1.15;rotate:45deg}}
@keyframes shen-spark{0%{opacity:1;translate:0 0;scale:1}100%{opacity:0;translate:var(--dx) var(--dy);scale:.2}}
@keyframes shen-fall{0%{translate:0 -40px;rotate:0deg;opacity:0}10%{opacity:1}90%{opacity:1}100%{translate:var(--sx) var(--fall,700px);rotate:var(--r);opacity:0}}
@keyframes shen-drift{from{translate:-140px 0}to{translate:calc(100vw + 140px) 0}}
@keyframes shen-rise{from{translate:0 0}to{translate:0 -40px}}
@keyframes shen-orbit{to{rotate:360deg}}
@keyframes shen-anti{to{rotate:-360deg}}
@keyframes shen-cube{from{transform:rotateX(-24deg) rotateY(0deg)}to{transform:rotateX(-24deg) rotateY(360deg)}}
@keyframes shen-flick{0%,100%{scale:1 1}25%{scale:.92 1.08}50%{scale:1.05 .95}75%{scale:.96 1.06}}
@keyframes shen-orb{0%,100%{translate:0 0;scale:1}50%{translate:60px 40px;scale:1.15}}
.shen-decor .draw{stroke-dasharray:var(--len,1200);stroke-dashoffset:0}
.shen-motion .shen-decor .draw{animation:shen-draw 4s ease-in-out both}
.shen-decor .ecg{stroke-dasharray:600 600}
.shen-motion .shen-decor .ecg{animation:shen-ecg 3.2s linear infinite}
.shen-decor .plane{position:absolute;left:0;top:0;offset-rotate:auto;opacity:0}
.shen-motion .shen-decor .plane{animation:shen-fly 8s ease-in-out 1.2s infinite}
.shen-motion .shen-decor .trail{animation:shen-dash 6s linear infinite}
.shen-decor .spark-star{position:absolute;opacity:.7}
.shen-motion .shen-decor .spark-star{animation:shen-twinkle 2.6s ease-in-out infinite}
.shen-decor .sp{position:absolute;width:5px;height:5px;border-radius:50%;background:#FFD54A;box-shadow:0 0 10px #FFB300,0 0 20px #FF8A00;opacity:0}
.shen-motion .shen-decor .sp{animation:shen-spark 1.4s ease-out infinite}
.shen-decor .petal{position:absolute;top:0;width:14px;height:10px;border-radius:50% 0 50% 0;opacity:0}
.shen-motion .shen-decor .petal{animation:shen-fall linear infinite}
.shen-decor .cloud{position:absolute;left:0}
.shen-motion .shen-decor .cloud{animation:shen-drift linear infinite}
.shen-motion .shen-decor .balloon{animation:shen-rise 3s ease-in-out infinite alternate}
.shen-motion .shen-decor .orbit{animation:shen-orbit 16s linear infinite}
.shen-motion .shen-decor .orbit > *{animation:shen-anti 16s linear infinite}
.shen-motion .shen-decor .cube{animation:shen-cube 14s linear infinite}
.shen-motion .shen-decor .gear{animation:shen-orbit 12s linear infinite}
.shen-motion .shen-decor .gear.rev{animation-direction:reverse;animation-duration:8s}
.shen-motion .shen-decor .flame{transform-origin:50% 100%;animation:shen-flick 1.2s ease-in-out infinite}
.shen-motion .shen-decor .orb{animation:shen-orb 14s ease-in-out infinite}
.shen-motion .shen-decor .orb.b{animation-duration:18s;animation-direction:reverse}
.shen-decor .gridline{position:absolute;top:0;bottom:0;width:1px;transform-origin:50% 0}
@keyframes shen-lineY{from{scale:1 0}to{scale:1 1}}
.shen-motion .shen-decor .gridline{animation:shen-lineY 1.4s cubic-bezier(.65,0,.35,1) both}
.shen-motion .shen-decor .wave{animation:shen-marq 9s linear infinite}

/* ---------- 3D ring gallery ---------- */
.shen-ring{height:var(--h,440px);perspective:1200px;display:grid;place-items:center}
.shen-ring__spin{position:relative;width:var(--w,280px);height:calc(var(--h,440px) - 80px);transform-style:preserve-3d;transform:translateZ(calc(var(--r,380px) * -1))}
.shen-ring__item{margin:0;position:absolute;inset:0;border-radius:var(--rad,26px);overflow:hidden;backface-visibility:hidden}
.shen-ring__item img{width:100%;height:100%;object-fit:cover;display:block}
.shen-ring__cap{position:absolute;left:14px;bottom:14px;background:#fff;color:#221A4D;border-radius:99px;padding:6px 14px;font-weight:700;font-size:13px}
@keyframes shen-ring{from{transform:translateZ(calc(var(--r,380px) * -1)) rotateY(0deg)}to{transform:translateZ(calc(var(--r,380px) * -1)) rotateY(-360deg)}}
.shen-motion .shen-ring__spin{animation:shen-ring var(--dur,36s) linear infinite}
.shen-motion .shen-ring:hover .shen-ring__spin{animation-play-state:paused}
@media (max-width:1024px){.shen-ring{scale:.75}}@media (max-width:640px){.shen-ring{scale:.5;height:calc(var(--h,440px) * .6)}}

/* ---------- Hover reveal list ---------- */
.shen-hl{position:relative}
.shen-hl__row{display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:16px;align-items:baseline;padding:22px 0;border-bottom:1px solid var(--line,rgba(255,255,255,.15));text-decoration:none;color:inherit}
.shen-hl__row:last-child{border-bottom:0}
.shen-hl__title{transition:translate .4s var(--shen-ease)}
.shen-motion .shen-hl__row:hover .shen-hl__title{translate:18px 0;font-style:italic}
.shen-hl__img{position:absolute;left:0;top:0;width:260px;height:180px;object-fit:cover;pointer-events:none;opacity:0;scale:.6;transition:opacity .3s ease,scale .4s var(--shen-ease);z-index:5;border-radius:4px}
.shen-motion .shen-hl__img.on{opacity:1;scale:1}
@media (max-width:767px){.shen-hl__row{grid-template-columns:44px minmax(0,1fr)}.shen-hl__meta{display:none}.shen-hl__img{display:none}}

/* ---------- Flip card ---------- */
.shen-flip{perspective:1000px;height:var(--h,240px)}
.shen-flip__inner{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .7s var(--shen-ease)}
.shen-flip:hover .shen-flip__inner,.shen-flip:focus-within .shen-flip__inner{transform:rotateY(180deg)}
.shen-flip__face{position:absolute;inset:0;backface-visibility:hidden;padding:24px;display:flex;flex-direction:column;justify-content:space-between;box-sizing:border-box}
.shen-flip__back{transform:rotateY(180deg)}
body:not(.shen-motion) .shen-flip{height:auto}body:not(.shen-motion) .shen-flip__inner{transform:none !important}body:not(.shen-motion) .shen-flip__face{position:relative}body:not(.shen-motion) .shen-flip__back{transform:none}

@media (prefers-reduced-motion: reduce){.shen-motion *,.shen-motion *::before,.shen-motion *::after{animation:none !important;transition:none !important}.shen-decor .draw{stroke-dashoffset:0}}
/* small design helpers used by the demos */
.shen-bar-eyebrow{position:relative}
.shen-bar-eyebrow::before{content:"";position:absolute;left:0;top:50%;width:28px;height:3px;margin-top:-1.5px;border-radius:2px;background:currentColor}
.shen-stage{isolation:isolate}
@media (max-width:767px){.shen-stage{overflow:hidden}}
