/* Drawn scenes for the homepage carousel panels.
   Every scene's resting state is its finished picture, so reduced-motion visitors
   and side cards see a complete drawing. Animation runs only on the card facing the viewer. */
.wc-r-scene { position: absolute; inset: 0; }
.wc-r-scene svg { display: block; width: 100%; height: 100%; }
.home-hero .wc-r-card:has(.wc-r-scene)::before {
  background: linear-gradient(180deg, transparent 66%, rgb(5 9 7 / 46%) 100%);
}
.sc-bg { fill: #1b231f; }
.sc-agent { fill: #252e29; stroke: #f5b82e; stroke-width: 1.5; }
.sc-ai, .sc-num, .sc-dot { fill: #f5b82e; }
.sc-ait { font: 700 10.5px ui-monospace, "SF Mono", Menlo, Consolas, monospace; fill: #201a0d; letter-spacing: .04em; }
.sc-tile { fill: #2a372f; stroke: #536156; }
.sc-taken { fill: #36423a; }
.sc-free { fill: none; stroke: #56635a; }
.sc-bar { fill: #56635a; }
.sc-ink { fill: #3a443d; }
.sc-chip { fill: #f4f0e8; }
.sc-chipt { font: 700 12.5px -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif; fill: #17201c; }
.sc-line { fill: none; stroke: #aab5ac; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sc-dim { stroke: #56635a; }
.sc-lit { fill: none; stroke: #f5b82e; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; }
.sc-out { fill: none; stroke: #f5b82e; stroke-width: 1.8; stroke-dasharray: 5 5; stroke-linecap: round; }
.sc-pbg { fill: #323d36; }
.sc-p { fill: none; stroke: #f4f0e8; stroke-width: 1.4; }
.sc-phone { fill: none; stroke: #201a0d; stroke-width: 1.7; stroke-linejoin: round; }
.sc-tick { fill: none; stroke: #f5b82e; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc-dtick { fill: none; stroke: #201a0d; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sc-ring, .sc-ringbox { fill: none; stroke: #f5b82e; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.sc-on { fill: #3b3520; stroke: #f5b82e; stroke-width: 1.5; }
.sc-dot { opacity: 0; }
.s1-t { fill: #3b3520; stroke: #f5b82e; }
.s2-scan { fill: none; stroke: #f5b82e; stroke-width: 2; transform: translate(174px, 58px); }
.s5-card { transform: translateX(42px); }
.s5-back { opacity: 1; transform: translateX(-52px); }

/* one shared seven-second cycle; each scene fades out and starts again */
.wc-r-card[data-playing] .sc-all { animation: sc-cycle 7s linear infinite; }
@keyframes sc-cycle { 0% { opacity: 0; } 4%, 93% { opacity: 1; } 100% { opacity: 0; } }

/* 1 Answer and route */
[data-playing] .s1-ring { animation: s1-ring 7s ease-out infinite; }
[data-playing] .s1-ring2 { animation-delay: .45s; }
@keyframes s1-ring { 0% { opacity: .9; transform: scale(.72); } 15%, 100% { opacity: 0; transform: scale(1.35); } }
[data-playing] .s1-l1 { stroke-dasharray: 1; animation: s1-l1 7s linear infinite; }
@keyframes s1-l1 { 0%, 14% { stroke-dashoffset: 1; } 24%, 100% { stroke-dashoffset: 0; } }
[data-playing] .s1-l2 { animation: s1-l2 7s linear infinite; }
@keyframes s1-l2 { 0%, 34% { stroke-dashoffset: 1; } 48%, 100% { stroke-dashoffset: 0; } }
[data-playing] .s1-t { animation: s1-t 7s linear infinite; }
@keyframes s1-t { 0%, 46% { fill: #2a372f; stroke: #536156; } 53%, 100% { fill: #3b3520; stroke: #f5b82e; } }

/* 2 Book and schedule */
[data-playing] .s2-scan { animation: s2-scan 7s cubic-bezier(.5, 0, .2, 1) infinite; }
@keyframes s2-scan {
  0%, 5% { opacity: 0; transform: translate(124px, 30px); }
  8%, 15% { opacity: 1; transform: translate(124px, 30px); }
  20%, 27% { opacity: 1; transform: translate(74px, 58px); }
  33%, 100% { opacity: 1; transform: translate(174px, 58px); }
}
[data-playing] .s2-fill { animation: sc-show-38 7s linear infinite; }
[data-playing] .s2-msg { animation: s2-msg 7s ease-out infinite; }
@keyframes s2-msg { 0%, 50% { opacity: 0; transform: translateY(7px); } 58%, 100% { opacity: 1; transform: none; } }
@keyframes sc-show-38 { 0%, 36% { opacity: 0; } 41%, 100% { opacity: 1; } }

/* 3 Qualify */
[data-playing] .s3-k1 { animation: sc-show-10 7s linear infinite; }
[data-playing] .s3-k2 { animation: sc-show-22 7s linear infinite; }
[data-playing] .s3-k3 { animation: sc-show-34 7s linear infinite; }
@keyframes sc-show-10 { 0%, 8% { opacity: 0; } 12%, 100% { opacity: 1; } }
@keyframes sc-show-22 { 0%, 20% { opacity: 0; } 24%, 100% { opacity: 1; } }
@keyframes sc-show-34 { 0%, 32% { opacity: 0; } 36%, 100% { opacity: 1; } }
[data-playing] .s3-l { animation: s3-l 7s linear infinite; }
@keyframes s3-l { 0%, 40% { stroke-dashoffset: 1; } 52%, 100% { stroke-dashoffset: 0; } }
[data-playing] .s3-ring { animation: s3-ring 7s ease-out infinite; }
@keyframes s3-ring { 0%, 51% { opacity: 0; transform: scale(.94); } 55% { opacity: .9; } 66%, 100% { opacity: 0; transform: scale(1.14); } }
[data-playing] .s3-l2 { animation: s3-l2 7s linear infinite; }
@keyframes s3-l2 { 0%, 64% { stroke-dashoffset: 1; } 73%, 100% { stroke-dashoffset: 0; } }
[data-playing] .s3-on { animation: sc-show-76 7s linear infinite; }
@keyframes sc-show-76 { 0%, 73% { opacity: 0; } 79%, 100% { opacity: 1; } }

/* 4 Follow up */
[data-playing] .s4-o1 { animation: s4-o1 7s linear infinite; }
[data-playing] .s4-o2 { animation: s4-o2 7s linear infinite; }
[data-playing] .s4-o3 { animation: s4-o3 7s linear infinite; }
@keyframes s4-o1 { 0%, 6% { opacity: .22; } 20%, 100% { opacity: 1; } }
@keyframes s4-o2 { 0%, 26% { opacity: .22; } 40%, 100% { opacity: 1; } }
@keyframes s4-o3 { 0%, 46% { opacity: .22; } 60%, 100% { opacity: 1; } }
[data-playing] .s4-d1 { animation: s4-d1 7s linear infinite; }
[data-playing] .s4-d2 { animation: s4-d2 7s linear infinite; }
[data-playing] .s4-d3 { animation: s4-d3 7s linear infinite; }
@keyframes s4-d1 { 0%, 5% { opacity: 0; offset-distance: 0%; } 7% { opacity: 1; offset-distance: 0%; } 20% { opacity: 1; offset-distance: 100%; } 22%, 100% { opacity: 0; offset-distance: 100%; } }
@keyframes s4-d2 { 0%, 25% { opacity: 0; offset-distance: 0%; } 27% { opacity: 1; offset-distance: 0%; } 40% { opacity: 1; offset-distance: 100%; } 42%, 100% { opacity: 0; offset-distance: 100%; } }
@keyframes s4-d3 { 0%, 45% { opacity: 0; offset-distance: 0%; } 47% { opacity: 1; offset-distance: 0%; } 60% { opacity: 1; offset-distance: 100%; } 62%, 100% { opacity: 0; offset-distance: 100%; } }
[data-playing] .s4-k1 { animation: sc-show-22 7s linear infinite; }
[data-playing] .s4-k2 { animation: sc-show-42 7s linear infinite; }
[data-playing] .s4-k3 { animation: sc-show-62 7s linear infinite; }
@keyframes sc-show-42 { 0%, 40% { opacity: 0; } 44%, 100% { opacity: 1; } }
@keyframes sc-show-62 { 0%, 60% { opacity: 0; } 64%, 100% { opacity: 1; } }

/* 5 Hand over and back */
[data-playing] .s5-card { animation: s5-card 7s cubic-bezier(.5, 0, .3, 1) infinite; }
@keyframes s5-card {
  0%, 8% { opacity: 0; transform: translateX(0); }
  12% { opacity: 1; transform: translateX(0); }
  34% { opacity: 1; transform: translateX(86px); }
  40%, 100% { opacity: 0; transform: translateX(86px); }
}
[data-playing] .s5-person { animation: s5-person 7s linear infinite; }
@keyframes s5-person { 0%, 34% { fill: #2a372f; stroke: #536156; } 40%, 62% { fill: #3b3520; stroke: #f5b82e; } 68%, 100% { fill: #2a372f; stroke: #536156; } }
[data-playing] .s5-back { animation: s5-back 7s cubic-bezier(.5, 0, .3, 1) infinite; }
@keyframes s5-back {
  0%, 60% { opacity: 0; transform: translateX(0); }
  64% { opacity: 1; transform: translateX(0); }
  84% { opacity: 1; transform: translateX(-104px); }
  90%, 100% { opacity: 0; transform: translateX(-104px); }
}
[data-playing] .s5-agent { animation: s5-agent 7s linear infinite; }
@keyframes s5-agent { 0%, 84% { fill: #252e29; } 88%, 93% { fill: #3b3520; } 100% { fill: #252e29; } }

/* without JavaScript the five functions are listed in words */
.no-motion-list { width: min(100% - 32px, 620px); margin: 22px auto; text-align: left; }
.no-motion-list li { padding: 10px 0; border-top: 1px solid #465348; color: #c4cbc5; font-size: 15px; }
.no-motion-list b { display: block; color: #f4f0e8; font-weight: 590; }
