/* United Echoes animated character: our services, one after another.
   Used in the client dashboard banner and on the home page (markup: app/client_stage.php, switching: js/client-stage.js).
   Drawn for a purple background. Each page decides where the stage sits; this file only styles the stage itself. */
.cds { --cds-ms: 4s; position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.cds-art { display: block; width: 100%; max-width: 470px; height: auto; overflow: hidden; }
.cds-art text { font-family: Arial, Helvetica, sans-serif; }

/* caption: the service on show, linking to its request page */
.cds-cap-row { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; padding: 0 1rem; }
.cds-cap { position: relative; display: flex; align-items: center; gap: .6rem; min-width: 0; max-width: 360px; flex: 0 1 auto;
  padding: .45rem .7rem .5rem .45rem; border-radius: 16px; background: #fff; color: #1D1530; text-decoration: none; overflow: hidden;
  box-shadow: 0 12px 26px -12px rgba(20, 6, 70, .55); touch-action: manipulation; }
.cds-cap:hover, .cds-cap:focus-visible { color: #1D1530; text-decoration: none; }
.cds-cap:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cds-cap-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #F1EAFF; color: #763AED; }
.cds-cap-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cds-cap-txt strong { font-size: .9375rem; }
.cds-cap-txt span { font-size: .78rem; color: #5B5270; }
/* same height for every service, so the picture never jumps when the caption changes */
.cds-cap { min-height: 4.4rem; }
.cds-cap-txt strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cds-cap-txt span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 420px) { .cds-cap-txt strong { font-size: .875rem; } .cds-cap-txt span { font-size: .75rem; } }
@media (max-width: 380px) { .cds-cap-txt strong { font-size: .8125rem; } .cds-cap { gap: .5rem; padding-right: .55rem; } .cds-cap-ic { width: 34px; height: 34px; } }
@media (min-width: 760px) and (max-width: 1023.98px) { .cds-cap-txt strong { font-size: .8125rem; } .cds-cap-txt span { font-size: .75rem; } .cds-cap { gap: .5rem; } .cds-cap-ic { width: 34px; height: 34px; } }
.cds-cap-go { flex: none; display: grid; place-items: center; color: #763AED; }
.cds-cap-go svg { transform: rotate(-90deg); transition: transform .2s ease; }
.cds-cap:hover .cds-cap-go svg { transform: rotate(-90deg) translateY(2px); }
.cds-cap-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #EFE9FF; }
.cds-cap-bar i { display: block; height: 100%; background: #763AED; transform-origin: left center; transform: scaleX(0); }
.cds-cap.is-in .cds-cap-bar i { animation: cds-bar var(--cds-ms) linear forwards; }
.cds-cap.is-in .cds-cap-ic, .cds-cap.is-in .cds-cap-txt { animation: cds-cap-in .45s cubic-bezier(.2, .7, .2, 1) both; }
.cds-pause { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; touch-action: manipulation; }
.cds-pause:hover { background: rgba(255, 255, 255, .24); }
.cds-pause:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.cds-pause .cds-ic-play, .cds-pause[aria-pressed="true"] .cds-ic-pause { display: none; }
.cds-pause[aria-pressed="true"] .cds-ic-play { display: block; }

/* what is visible in each scene */
.cds .sc, .cds-mon, .cds-desk, .cds-pcard, .cds-beam, .cds-pose, .cds-poseb { opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s, transform .45s cubic-bezier(.2, .7, .2, 1); }
.cds .sc.is-on,
.cds[data-pose="type"] .cds-mon, .cds[data-pose="type"] .cds-desk,
.cds[data-pose="phone"] .cds-pcard, .cds[data-pose="phone"] .cds-beam,
.cds[data-pose="keys"] .cds-pose-keys, .cds[data-pose="type"] .cds-pose-type, .cds[data-pose="phone"] .cds-pose-phone { opacity: 1; visibility: visible; transition: opacity .35s ease, visibility 0s, transform .45s cubic-bezier(.2, .7, .2, 1); }
.cds-pose, .cds-poseb { transition-duration: .3s, 0s, .3s; }
.cds-pcard { transform-box: fill-box; transform-origin: 0% 60%; transform: translateX(-14px) scale(.9); }
.cds[data-pose="phone"] .cds-pcard { transform: none; }
.cds-mon { transform: translateX(16px); }
.cds[data-pose="type"] .cds-mon { transform: none; }

/* the character: breathing, blinking, looking at what he is doing */
.cds-breathe, .cds-pose { animation: cds-breathe 3.4s ease-in-out infinite; }
.cds-head { transform-box: view-box; transform-origin: 140px 138px; transition: transform .6s cubic-bezier(.3, .7, .3, 1); }
.cds[data-look="right"] .cds-head { transform: rotate(5deg); }
.cds-look { transition: transform .45s ease; }
.cds[data-look="right"] .cds-look { transform: translate(2.6px, .8px); }
.cds[data-look="down"] .cds-look { transform: translate(0, 2.2px); }
.cds-eyes { transform-box: fill-box; transform-origin: center; animation: cds-blink 4.6s infinite; }
.cds[data-pose="keys"] .cds-pose-keys .cds-arm-l { animation: cds-tap .46s ease-in-out infinite alternate; }
.cds[data-pose="keys"] .cds-pose-keys .cds-arm-r { animation: cds-tap .46s ease-in-out -.23s infinite alternate; }
.cds[data-pose="type"] .cds-pose-type .cds-arm-l { animation: cds-type .22s ease-in-out infinite alternate; }
.cds[data-pose="type"] .cds-pose-type .cds-arm-r { animation: cds-type .26s ease-in-out -.1s infinite alternate; }
.cds[data-pose="phone"] .cds-hphone-scr { animation: cds-glow 1.6s ease-in-out infinite alternate; }
.cds[data-pose="phone"] .cds-beam { animation: cds-dash 1.2s linear infinite; }

/* 1 · Music Production */
.cds-note, .cds-ring, .cds-cone, .cds-spin, .cds-bub, .cds-hub-ring, .cds-ndot, .cds-tap, .cds-bigheart, .cds-sun, .cds-live, .cds-float { transform-box: fill-box; transform-origin: center; }
.cds .is-on .cds-k1 { animation: cds-key .46s ease-in-out infinite alternate; }
.cds .is-on .cds-k2 { animation: cds-key .46s ease-in-out -.23s infinite alternate; }
.cds .is-on .cds-k3 { animation: cds-key .62s ease-in-out -.1s infinite alternate; }
.cds .is-on .cds-k4 { animation: cds-key .54s ease-in-out -.4s infinite alternate; }
.cds-note { opacity: .85; }
.cds .is-on .cds-note { animation: cds-note 3.2s ease-out infinite both; }
.cds .is-on .cds-n2 { animation-delay: .31s; } .cds .is-on .cds-n3 { animation-delay: .62s; } .cds .is-on .cds-n4 { animation-delay: .99s; }
.cds .is-on .cds-n5 { animation-delay: 1.36s; } .cds .is-on .cds-n6 { animation-delay: .19s; animation-duration: 2.36s; }
.cds .is-on .cds-n7 { animation-delay: .81s; animation-duration: 2.36s; } .cds .is-on .cds-n8 { animation-delay: 1.49s; animation-duration: 2.36s; }
.cds-ring { opacity: 0; }
.cds .is-on .cds-ring { animation: cds-ring 2.4s ease-out infinite; }
.cds .is-on .cds-ring-2 { animation-delay: .5s; } .cds .is-on .cds-ring-3 { animation-delay: .99s; }

/* 2 · Mixing & Mastering */
.cds .is-on .cds-spin { animation: cds-spin 2.6s linear infinite; }
.cds .is-on .cds-cone { animation: cds-thump .42s ease-in-out infinite alternate; }
.cds .is-on .cds-cone-b { animation-duration: .35s; }
.cds .is-on .cds-f1 { animation: cds-fader 1.9s ease-in-out infinite alternate; }
.cds .is-on .cds-f2 { animation: cds-fader 2.4s ease-in-out -.9s infinite alternate; }
.cds .is-on .cds-f3 { animation: cds-fader 1.6s ease-in-out -.4s infinite alternate; }
.cds-meter { transform-box: fill-box; transform-origin: center bottom; }
.cds .is-on .cds-meter-1 { animation: cds-meter .5s ease-in-out infinite alternate; }
.cds .is-on .cds-meter-2 { animation: cds-meter .62s ease-in-out -.3s infinite alternate; }
.cds .is-on .cds-scan { animation: cds-scan 3s linear infinite; }

/* 3 · Label Release */
.cds-prog { transform-box: fill-box; transform-origin: left center; }
.cds .is-on .cds-prog { animation: cds-grow 1.8s .31s cubic-bezier(.4, .1, .4, 1) both; }
.cds-up-a { opacity: 0; }
.cds .is-on .cds-up-a { animation: cds-in .12s both, cds-out .15s 2.17s forwards; }
.cds .is-on .cds-up-b { animation: cds-in .22s 2.23s both; }
.cds-rise { opacity: 0; }
.cds .is-on .cds-rise { animation: cds-rise .99s 2.42s ease-out both; }
.cds .is-on .cds-r2 { animation-delay: 2.67s; }

/* 4 · WhatsApp Marketing */
.cds-typing { opacity: 0; }
.cds .is-on .cds-typing { animation: cds-in .15s .19s both, cds-out .12s .99s forwards; }
.cds .is-on .cds-dot { animation: cds-bounce .6s ease-in-out infinite; }
.cds .is-on .cds-d2 { animation-delay: .09s; } .cds .is-on .cds-d3 { animation-delay: .19s; }
.cds .is-on .cds-m1 { animation: cds-in .25s 1.05s both; }
.cds .is-on .cds-m2 { animation: cds-in .25s 1.67s both; }
.cds .is-on .cds-m3 { animation: cds-in .25s 2.17s both; }
.cds .is-on .cds-m4 { animation: cds-in .25s 2.79s both; }

/* 5 · Email Marketing */
.cds .is-on .cds-ndot { animation: cds-pop .25s .25s both; }
.cds .is-on .cds-rows { animation: cds-push .31s .5s cubic-bezier(.2, .7, .2, 1) both; }
.cds .is-on .cds-newmail { animation: cds-in .31s .53s both; }
.cds-tap { opacity: 0; }
.cds .is-on .cds-tap { animation: cds-tap-ring .31s 1.8s both; }
.cds .is-on .cds-open { animation: cds-slide .28s 2.05s cubic-bezier(.2, .7, .2, 1) both; }

/* 6 · Social Media Management */
.cds-soc-a { opacity: 0; }
.cds .is-on .cds-soc-a { animation: cds-in .12s both, cds-out .19s 1.86s forwards; }
.cds .is-on .cds-soc-b { animation: cds-slide .28s 1.86s cubic-bezier(.2, .7, .2, 1) both; }
.cds-bigheart { opacity: 0; }
.cds .is-on .cds-bigheart { animation: cds-heart .56s .56s ease-out both; }
.cds .is-on .cds-like { animation: cds-like .15s .68s both; }
.cds-cnt-a { opacity: 0; }
.cds .is-on .cds-cnt-a { animation: cds-in .06s both, cds-out .06s .68s forwards; }
.cds .is-on .cds-cnt-b { animation: cds-in .06s .71s both; }
.cds .is-on .cds-likeb { animation: cds-likeb .15s 2.85s both; }
.cds-float { opacity: 0; }
.cds .is-on .cds-float { animation: cds-floatup 2.4s ease-out infinite; }
.cds .is-on .cds-fl2 { animation-delay: .5s; } .cds .is-on .cds-fl3 { animation-delay: .99s; }

/* 7 · Video Editing */
.cds .is-on .cds-playhead { animation: cds-play 3.47s linear both; }
.cds .is-on .cds-sun { animation: cds-sun 3.47s ease-in-out both; }
.cds .is-on .cds-cut { animation: cds-cut .37s 1.49s ease-in-out 2 alternate; }

/* 8 · Graphic Design */
.cds-em { opacity: 0; }
.cds .is-on .cds-em-pink { animation: cds-em-pink 3.47s linear both; }
.cds .is-on .cds-em-blue { animation: cds-em-blue 3.47s linear both; }
.cds .is-on .cds-cur8 { animation: cds-cur8 3.47s ease-in-out both; }
.cds-cur8 { transform: translate(340px, 148px); }
.cds-edit { transform-box: fill-box; transform-origin: center; }
.cds .is-on .cds-edit { animation: cds-bump .25s .74s, cds-bump .25s 1.61s, cds-bump .25s 2.54s; }

/* 9 · Campaign Promotion */
.cds-cur9 { transform: translate(350px, 138px); }
.cds .is-on .cds-cur9 { animation: cds-cur9 .99s .19s ease-in-out both; }
.cds-sharebtn { transform-box: fill-box; transform-origin: center; }
.cds .is-on .cds-sharebtn { animation: cds-press .19s 1.18s both; }
.cds-plane { opacity: 0; transform: translate(319px, 30px); }
.cds .is-on .cds-plane { animation: cds-fly .74s 1.3s cubic-bezier(.4, .1, .4, 1) both; }
.cds .is-on .cds-hub { animation: cds-in .19s 1.8s both; }
.cds-hub-ring { opacity: 0; }
.cds .is-on .cds-hub-ring { animation: cds-ring2 .68s 1.98s ease-out 2; }
.cds .is-on .cds-links { animation: cds-in .25s 2.05s both; }
.cds .is-on .cds-b1 { animation: cds-pop .22s 2.11s both; }
.cds .is-on .cds-b2 { animation: cds-pop .22s 2.2s both; }
.cds .is-on .cds-b3 { animation: cds-pop .22s 2.29s both; }
.cds .is-on .cds-b4 { animation: cds-pop .22s 2.39s both; }
.cds-eqb { transform-box: fill-box; transform-origin: center bottom; }
.cds .is-on .cds-e1 { animation: cds-meter .5s ease-in-out infinite alternate; }
.cds .is-on .cds-e2 { animation: cds-meter .4s ease-in-out -.2s infinite alternate; }
.cds .is-on .cds-e3 { animation: cds-meter .6s ease-in-out -.4s infinite alternate; }

/* 10 · Website Development */
.cds-code { opacity: 0; }
.cds .is-on .cds-code { animation: cds-in .12s both, cds-out .25s 1.36s forwards; }
.cds-cl { transform-box: fill-box; transform-origin: left center; }
.cds .is-on .cds-cl { animation: cds-grow .19s both; }
.cds .is-on .cds-cl2 { animation-delay: .15s; } .cds .is-on .cds-cl3 { animation-delay: .31s; } .cds .is-on .cds-cl4 { animation-delay: .46s; }
.cds .is-on .cds-cl5 { animation-delay: .62s; } .cds .is-on .cds-cl6 { animation-delay: .78s; } .cds .is-on .cds-cl7 { animation-delay: .93s; }
.cds .is-on .cds-caret { animation: cds-blinkc .5s steps(1) infinite; }
.cds .is-on .cds-w { animation: cds-in .22s both; }
.cds .is-on .cds-w1 { animation-delay: 1.49s; } .cds .is-on .cds-w2 { animation-delay: 1.64s; } .cds .is-on .cds-w3 { animation-delay: 1.8s; }
.cds .is-on .cds-w4 { animation-delay: 1.89s; } .cds .is-on .cds-w5 { animation-delay: 1.98s; } .cds .is-on .cds-w6 { animation-delay: 2.11s; }
.cds .is-on .cds-url { animation: cds-drop .28s 2.29s cubic-bezier(.2, .7, .2, 1) both; }
.cds .is-on .cds-live { animation: cds-pop .25s 2.67s both; }

/* paused (button, tab in the background, or scrolled out of view) */
.cds.is-paused .cds-art *, .cds.is-paused .cds-art, .cds.is-paused .cds-cap-bar i { animation-play-state: paused !important; }

@keyframes cds-bar { to { transform: scaleX(1); } }
@keyframes cds-cap-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes cds-breathe { 50% { transform: translateY(-1.3px); } }
@keyframes cds-blink { 0%, 92%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.1); } }
@keyframes cds-tap { from { transform: translateY(0); } to { transform: translateY(-3.5px); } }
@keyframes cds-type { from { transform: translateY(0); } to { transform: translateY(-1.6px); } }
@keyframes cds-glow { from { fill: #C4B5FD; } to { fill: #F5F3FF; } }
@keyframes cds-dash { to { stroke-dashoffset: -12; } }
@keyframes cds-key { from { fill: #FFFFFF; } to { fill: #C9B6FF; } }
@keyframes cds-note { 0% { opacity: 0; transform: translate(0, 10px) scale(.6) rotate(-8deg); } 15% { opacity: 1; } 75% { opacity: .9; } 100% { opacity: 0; transform: translate(34px, -96px) scale(1.15) rotate(10deg); } }
@keyframes cds-ring { 0% { opacity: .65; transform: scale(1); } 100% { opacity: 0; transform: scale(6); } }
@keyframes cds-spin { to { transform: rotate(360deg); } }
@keyframes cds-thump { from { transform: scale(1); } to { transform: scale(1.22); } }
@keyframes cds-fader { from { transform: translateY(-17px); } to { transform: translateY(17px); } }
@keyframes cds-meter { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes cds-scan { from { transform: translateX(0); } to { transform: translateX(116px); } }
@keyframes cds-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cds-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes cds-out { to { opacity: 0; } }
@keyframes cds-rise { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-46px); } }
@keyframes cds-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.2px); } }
@keyframes cds-pop { 0% { opacity: 0; transform: scale(.2); } 70% { opacity: 1; transform: scale(1.15); } 100% { opacity: 1; transform: scale(1); } }
@keyframes cds-push { from { transform: translateY(-42px); } to { transform: none; } }
@keyframes cds-tap-ring { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes cds-slide { from { transform: translateX(124px); } to { transform: none; } }
@keyframes cds-heart { 0% { opacity: 0; transform: scale(.2); } 30% { opacity: 1; transform: scale(1.15); } 55% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.05); } }
@keyframes cds-like { from { fill: transparent; } to { fill: #EF4444; } }
@keyframes cds-likeb { from { fill: #6B6280; } to { fill: #2D6CDF; } }
@keyframes cds-floatup { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-10px, -150px) scale(1.1); } }
@keyframes cds-play { from { transform: translateX(0); } to { transform: translateX(108px); } }
@keyframes cds-sun { from { transform: translateY(6px); } to { transform: translateY(-4px); } }
@keyframes cds-cut { from { fill: #C4B5FD; } to { fill: #F472B6; } }
@keyframes cds-em-pink { 0%, 22% { opacity: 0; } 25%, 48% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes cds-em-blue { 0%, 48% { opacity: 0; } 51%, 74% { opacity: 1; } 77%, 100% { opacity: 0; } }
@keyframes cds-cur8 { 0% { transform: translate(340px, 148px); } 16%, 24% { transform: translate(301px, 145px); } 40%, 50% { transform: translate(313px, 145px); } 66%, 76% { transform: translate(289px, 145px); } 100% { transform: translate(348px, 124px); } }
@keyframes cds-bump { 50% { transform: scale(1.08); } }
@keyframes cds-cur9 { from { transform: translate(300px, 96px); } to { transform: translate(350px, 138px); } }
@keyframes cds-press { 0%, 100% { transform: scale(1); } 50% { transform: scale(.88); } }
@keyframes cds-fly { 0% { opacity: 1; transform: translate(352px, 134px) scale(.5) rotate(-20deg); } 85% { opacity: 1; transform: translate(321px, 34px) scale(1.1) rotate(-30deg); } 100% { opacity: 0; transform: translate(319px, 30px) scale(.6) rotate(-30deg); } }
@keyframes cds-ring2 { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(2.2); } }
@keyframes cds-blinkc { 50% { opacity: 0; } }
@keyframes cds-drop { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  /* the character keeps still: each scene shows its finished picture; the button moves to the next one */
  .cds-art, .cds-art * { animation: none !important; }
  .cds-cap.is-in .cds-cap-ic, .cds-cap.is-in .cds-cap-txt { animation: none !important; }
}
