/* Service cards 3–6: HD concept artwork (static 1672×941 WebP) with a native SVG signal layer on top.
   The artwork is never scaled past its frame, tilted, blurred or filtered; only the vector layer moves.
   Concept visuals, not client work and not software recordings. */
#services .service-card-3 .service-art,#services .service-card-4 .service-art,#services .service-card-5 .service-art,#services .service-card-6 .service-art{container-type:size;background:#08080b;perspective:none}
#services .service-card-3 .service-art{--hd:url(./hd/push.webp)}
#services .service-card-4 .service-art{--hd:url(./hd/social.webp)}
#services .service-card-5 .service-art{--hd:url(./hd/video.webp)}
#services .service-card-6 .service-art{--hd:url(./hd/automation.webp)}

/* a soft, darkened copy of the same picture fills whatever the 16:9 frame leaves uncovered */
#services .service-art:has(.hd-motion)::before{content:'';position:absolute;inset:-14%;z-index:-1;background:var(--hd) center/cover no-repeat;filter:blur(42px) brightness(.48) saturate(1.25);pointer-events:none}

/* frame: fills the width, may grow up to 18% wider than the area (cropping the sides) to cover more height */
.hd-motion{position:relative;flex:none;width:max(100cqw,min(177.69cqh,118cqw));aspect-ratio:1672/941;isolation:isolate;-webkit-mask-image:linear-gradient(transparent,#000 7%,#000 93%,transparent);mask-image:linear-gradient(transparent,#000 7%,#000 93%,transparent)}
.hd-motion>img,.hd-motion>svg{display:block;position:absolute;inset:0;width:100%;height:100%}
.hd-motion>img{object-fit:contain;transform:none!important;filter:none!important}
.hd-motion>svg{pointer-events:none;opacity:0;transition:opacity .5s}
.hd-motion.is-live>svg{opacity:1}

/* single-column layout: the art area takes the picture's own ratio, so nothing is cropped or letterboxed */
@media(max-width:760px){
 #services .service-card-3 .service-art,#services .service-card-4 .service-art,#services .service-card-5 .service-art,#services .service-card-6 .service-art{height:auto;aspect-ratio:1672/941}
 .hd-motion{width:100%;-webkit-mask-image:none;mask-image:none}
}
@media(prefers-reduced-motion:reduce){.hd-motion>svg{display:none!important}}

/* ---------- card 7: Telegram Mini App (coded illustration, not client work) ---------- */
#services .service-card-7 .service-art{container-type:size;background:radial-gradient(90% 80% at 76% 16%,#1c49b088,transparent 62%),radial-gradient(70% 70% at 10% 92%,#6a1d9a59,transparent 60%),#0a0b14}
.tma{position:relative;flex:none;width:40em;height:33em;font-size:min(2.3cqw,3cqh);line-height:1.3;transform:perspective(60em) rotateX(var(--art-x,4deg)) rotateY(var(--art-y,-7deg)) translateY(var(--scroll-shift,0px));transition:transform .65s cubic-bezier(.2,.7,.2,1);will-change:transform}
.tma-phone{position:absolute;left:7em;top:1em;width:15.5em;height:31em;display:flex;flex-direction:column;border:.2em solid #56486a;border-radius:2.5em;background:#0d0c14;overflow:hidden;box-shadow:0 2em 3.5em #000b,inset 0 0 0 .12em #23202e}
.tma-top{display:flex;align-items:center;gap:.7em;padding:1.3em 1.1em .9em;border-bottom:1px solid #2a2536}
.tma-top>i{width:2em;height:2em;border-radius:50%;background:linear-gradient(135deg,#345eff,#02d9de)}
.tma-top b,.tma-top u{display:block;height:.5em;border-radius:.3em;background:#cfc8dc}
.tma-top b{width:5.5em;margin-bottom:.4em}.tma-top u{width:3.4em;background:#5a5068}
.tma-chat{display:flex;flex-direction:column;align-items:flex-start;gap:.6em;padding:1em}
.tma-chat span{width:62%;height:1.9em;border-radius:.9em .9em .9em .25em;background:#24202f}
.tma-chat .r{align-self:flex-end;width:48%;border-radius:.9em .9em .25em .9em;background:linear-gradient(90deg,#3a55e8,#2a8fe0)}
.tma-chat .s{width:40%}
.tma-sheet{position:absolute;left:0;right:0;bottom:0;height:63%;display:flex;flex-direction:column;gap:.8em;padding:.7em 1.1em 1.2em;border-radius:1.6em 1.6em 0 0;border-top:1px solid #4a3d5c;background:#191423;box-shadow:0 -1em 2em #0008;translate:0 104%;transition:translate .9s .35s cubic-bezier(.16,1,.3,1)}
#services .service-card-7.in-view .tma-sheet{translate:0 0}
.tma-sheet>em{align-self:center;width:2.6em;height:.3em;border-radius:.2em;background:#4c4259}
.tma-head strong{display:block;font-size:1.15em;color:#f4f0f7}
.tma-head small{display:block;font-size:.72em;color:#a898b6}
.tma-tiles{display:grid;grid-template-columns:1fr 1fr;gap:.6em;flex:1;min-height:0}
.tma-tiles i{border-radius:.8em;border:1px solid #3a2f48;background:linear-gradient(140deg,#5a1d8a,#2a1c58)}
.tma-tiles i:nth-child(2){background:linear-gradient(140deg,#1d3f9a,#0f6f86)}
.tma-tiles i:nth-child(3){background:linear-gradient(140deg,#8a1d6e,#3a1c6a)}
.tma-tiles i:nth-child(4){background:#221b2e}
.tma-btn{flex:none;display:grid;place-items:center;height:2.7em;border-radius:.85em;background:linear-gradient(90deg,#8015f5,#345eff 55%,#02c4d4);font-size:.92em;font-weight:700;color:#fff}
.tma-float{position:absolute;display:flex;align-items:center;gap:.7em;padding:.75em 1em .75em .8em;border-radius:1.1em;background:#f6f2fa;color:#17121d;box-shadow:0 1.2em 2.4em #000a;white-space:nowrap}
.tma-float strong{display:block;font-size:.95em}.tma-float small{display:block;font-size:.72em;color:#6c6276}
.tma-float.f1{left:21em;top:5em}.tma-float.f2{left:22.5em;bottom:6em}
.tma-ic{flex:none;display:grid;place-items:center;width:2.3em;height:2.3em;border-radius:.7em;background:linear-gradient(135deg,#345eff,#02c4d4)}
.tma-ic.ok{background:linear-gradient(135deg,#8015f5,#d43fd0)}
.tma-ic svg{width:1.3em;height:1.3em;fill:#fff}
#services .service-card-7.in-view .tma-float{animation:tma-bob 5s ease-in-out infinite}
#services .service-card-7.in-view .tma-float.f2{animation-delay:-2.5s}
@keyframes tma-bob{50%{translate:0 -.5em}}
@media(prefers-reduced-motion:reduce){.tma{transform:none!important}.tma-sheet{translate:0 0;transition:none}.tma-float{animation:none!important}}
