/* Etzem Hainyan project page: the hero scene and the devices chapter. Green and orange come from the site itself. */
.eh-scene{--g:#3cb54a;--o:#f9a930;position:relative;aspect-ratio:1/.86;width:100%}
.eh-blob{position:absolute;right:2%;top:2%;width:58%;aspect-ratio:1;background:#fff;border-radius:46% 54% 42% 58%/52% 44% 56% 48%;box-shadow:0 40px 80px -40px rgba(0,0,0,.55),0 0 0 10px rgba(255,255,255,.12);animation:ehBlob 11s ease-in-out infinite alternate,ehIn 1s cubic-bezier(.2,.8,.2,1) both}
@keyframes ehBlob{to{border-radius:58% 42% 55% 45%/44% 58% 42% 56%;transform:rotate(6deg)}}
@keyframes ehIn{from{opacity:0;transform:scale(.6)}}
.eh-pets{position:absolute;right:6%;top:0;width:50%;filter:drop-shadow(0 24px 26px rgba(0,0,0,.35));transform-origin:50% 90%;animation:ehPop .9s cubic-bezier(.3,1.5,.5,1) .35s both,ehBreath 5s ease-in-out 1.4s infinite}
@keyframes ehPop{from{opacity:0;transform:translateY(40px) scale(.7)}}
@keyframes ehBreath{50%{transform:translateY(-8px) scale(1.015)}}
.eh-lap{position:absolute;left:0;bottom:12%;width:60%;filter:drop-shadow(0 34px 40px rgba(0,0,0,.45));animation:ehSlide 1s cubic-bezier(.2,.8,.2,1) .5s both}
@keyframes ehSlide{from{opacity:0;transform:translateX(-40px)}}
.eh-lid{background:#1d2422;border-radius:14px 14px 0 0;padding:2.4% 2.4% 3%}
.eh-scr{position:relative;aspect-ratio:16/10;overflow:hidden;border-radius:4px;background:#fff}
.eh-scr img,.eh-pscr img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 0}
.eh-scr img+img,.eh-pscr img+img{animation:ehSwap 9s ease-in-out infinite}
@keyframes ehSwap{0%,40%{opacity:0}50%,90%{opacity:1}100%{opacity:0}}
.eh-base{height:12px;margin:0 -6%;border-radius:0 0 18px 18px;background:linear-gradient(#dfe4e2,#a9b3af)}
.eh-ph{position:absolute;left:46%;bottom:0;width:17%;aspect-ratio:390/844;padding:1.1%;background:#1d2422;border-radius:clamp(14px,2vw,26px);box-shadow:0 30px 44px -18px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.25);animation:ehRise 1s cubic-bezier(.2,.8,.2,1) .7s both,ehFloat 6s ease-in-out 1.7s infinite}
@keyframes ehRise{from{opacity:0;transform:translateY(50px)}}
@keyframes ehFloat{50%{transform:translateY(-10px) rotate(-1.5deg)}}
.eh-pscr{position:relative;width:100%;height:100%;border-radius:clamp(10px,1.5vw,20px);overflow:hidden;background:#fff}
.eh-bun{position:absolute;right:-2%;bottom:2%;width:26%;transform-origin:50% 100%;animation:ehPop .9s cubic-bezier(.3,1.5,.5,1) .9s both,ehHop 3.2s ease-in-out 2s infinite}
@keyframes ehHop{0%,70%,100%{transform:none}78%{transform:translateY(-14px) scaleY(1.04)}86%{transform:translateY(0) scaleY(.96)}}
.eh-paw{position:absolute;width:clamp(18px,2.4vw,34px);color:#fff;opacity:0;animation:ehPaw 7s ease-in-out infinite}
.eh-paw svg{display:block;width:100%;fill:currentColor}
.eh-paw.p1{left:8%;top:10%}.eh-paw.p2{left:20%;top:2%;animation-delay:1.4s;color:#ffd38a}.eh-paw.p3{right:4%;top:62%;animation-delay:2.8s}.eh-paw.p4{left:38%;top:16%;animation-delay:4.2s;color:#a8e6b0}.eh-paw.p5{right:30%;bottom:-2%;animation-delay:5.6s}
@keyframes ehPaw{0%{opacity:0;transform:translateY(16px) rotate(-12deg) scale(.7)}20%,60%{opacity:.85;transform:none}100%{opacity:0;transform:translateY(-30px) rotate(10deg) scale(.9)}}
/* devices chapter */
.eh-sub{max-width:44em;font-size:1.1rem;line-height:1.7;opacity:.8;margin:0 0 clamp(30px,4vw,56px)}
.eh-stage{position:relative;perspective:1600px;padding:0 0 4%}
.eh-big{width:78%;margin:0 auto;transform-origin:50% 100%;transform:rotateX(var(--tx,18deg)) scale(var(--ts,.92));transition:transform .2s linear;filter:drop-shadow(0 50px 60px rgba(43,26,77,.35))}
.eh-big .eh-scr{aspect-ratio:1440/900}
.eh-scroll img{height:auto!important;bottom:auto}
.eh-stage .eh-ph{bottom:-2%;width:15%;animation:none;transform:translateY(var(--py,60px)) rotate(var(--pr,0deg));transition:transform .25s linear}
.eh-stage .eh-ph.a{left:4%;--pr:-6deg}
.eh-stage .eh-ph.b{left:auto;right:4%;--pr:6deg}
.eh-stage .eh-paw{color:#3cb54a}
.eh-stage .eh-paw.q1{left:22%;top:-4%}.eh-stage .eh-paw.q2{right:20%;top:6%;animation-delay:2.3s;color:#f9a930}.eh-stage .eh-paw.q3{left:48%;bottom:-6%;animation-delay:4.6s}
@media(max-width:900px){.eh-big{width:92%}.eh-stage .eh-ph{width:22%}}
@media(prefers-reduced-motion:reduce){.eh-scene *,.eh-stage *{animation:none!important}.eh-big{transform:none}.eh-stage .eh-ph{transform:none}.eh-paw{opacity:.6}}
