/* Commerce moves through one decision point. Supporting motion stays local. */
:root {--scene-float:5px;--motion-speed:1}
.crafted-hero .stream-card {animation:none!important}
.crafted-hero .hero-flow-moving .stream-row {width:calc(50% - 27px);overflow:hidden;display:block;mask-image:linear-gradient(90deg,#000 85%,transparent);height:85px}
.crafted-hero .hero-flow-moving .right-row {mask-image:linear-gradient(90deg,transparent,#000 15%)}
.commerce-track {display:flex;gap:0;width:max-content}
.commerce-group {display:flex;flex:0 0 auto;align-items:center;gap:16px;padding-right:16px}
.crafted-hero .hero-flow-moving .stream-card {flex:0 0 270px;width:270px;min-width:270px}
.crafted-hero .hero-flow-moving .stream-card:has(.stream-status) {flex-basis:295px;width:295px;min-width:295px}
.hero-flow-moving .row-0 {--stream-duration:34s}
.hero-flow-moving .row-1 {--stream-duration:41s}
.hero-flow-moving .row-2 {--stream-duration:37s}
.hero-flow-moving .left-row .commerce-track {transform:translateX(-50%)}
.hero-flow-moving .right-row .commerce-track {transform:translateX(-50%)}
.motion-enabled .commerce-track {animation:commerce-conveyor calc(var(--stream-duration)*var(--motion-speed)) linear infinite;animation-play-state:paused}
.motion-enabled .row-1 .commerce-track {animation-delay:-11s}
.motion-enabled .row-2 .commerce-track {animation-delay:-23s}
@keyframes commerce-conveyor {from {transform:translateX(-50%)} to {transform:translateX(0)}}
.motion-enabled .stream-hub>img {animation:commerce-hub 4.8s ease-in-out infinite;animation-play-state:paused}
@keyframes commerce-hub {0%,100% {scale:1} 50% {scale:1.035}}
.crafted-hero h1 em {display:inline-block;width:10ch;min-width:0;max-width:100%;text-align:left;white-space:nowrap;vertical-align:baseline}
#hero-word {display:inline;min-width:0;text-align:inherit;vertical-align:baseline}
#hero-word::after {content:'';display:inline-block;width:2px;height:.75em;margin-left:.05em;margin-right:-2px;background:currentColor;vertical-align:-.02em;opacity:0}
.motion-enabled #hero-word::after {animation:typing-caret 1s steps(1,end) infinite;animation-play-state:paused}
@keyframes typing-caret {0%,48% {opacity:.8} 49%,100% {opacity:0}}

/* Equal duplicated groups guarantee the reset frame matches the first frame. */
.stack-strip.logo-marquee>.logo-window {display:block;overflow:hidden;margin:28px 0 0;mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.logo-track {display:flex;gap:0;width:max-content}
.logo-group {display:flex;align-items:center;flex:0 0 auto;gap:46px;padding-right:46px}
.logo-item {display:flex;align-items:center;justify-content:center;flex:0 0 118px;width:118px;height:45px}
.stack-strip.logo-marquee .service-logo {max-width:112px;max-height:34px;width:112px;height:34px}
.stack-strip.logo-marquee .mark-nmi {width:76px}
.stack-strip.logo-marquee .mark-meta {width:88px}
.motion-enabled .logo-track {animation:provider-conveyor 42s linear infinite;animation-play-state:paused}
@keyframes provider-conveyor {to {transform:translateX(-50%)}}

/* Transform individual layers, preserving the composition's original rotations. */
.motion-enabled .kscene :is(.kscene-order-slip,.kscene-payment-sheet,.kscene-renewal-sheet,.kscene-offer-sheet,.kscene-api-client,.kscene-api-response,.kscene-builder-blocks,.kscene-network-node),
.motion-enabled .showcase-chip,.motion-enabled .connect-tile {animation:commerce-float calc(6s*var(--motion-speed)) ease-in-out infinite;animation-play-state:paused}
.motion-enabled .kscene :is(.kscene-payment-sheet,.kscene-offer-sheet,.kscene-api-response),.motion-enabled .chip-store {animation-delay:-2.4s}
.motion-enabled .kscene-network-node:nth-child(2n),.motion-enabled .connect-tile:nth-child(2n) {animation-delay:-3s}
@keyframes commerce-float {0%,100% {translate:0 0} 50% {translate:0 calc(-1*var(--scene-float))}}
.motion-enabled .kscene-alert {animation:decision-sequence calc(6s*var(--motion-speed)) ease-in-out infinite;animation-play-state:paused}
.motion-enabled .kscene-alert-1 {animation-delay:-4s}
.motion-enabled .kscene-alert-2 {animation-delay:-2s}
@keyframes decision-sequence {0%,12%,58%,100% {opacity:.64;translate:2px 0} 25%,45% {opacity:1;translate:0 0}}
.motion-enabled .kscene-route-row.active .kscene-capacity i {transform-origin:left center;animation:capacity-signal calc(6s*var(--motion-speed)) ease-in-out infinite;animation-play-state:paused}
@keyframes capacity-signal {0%,100% {opacity:.65;scale:.94 1} 35%,65% {opacity:1;scale:1 1}}
.motion-enabled .kscene :is(.kscene-api-lines,.kscene-routing-lines) {stroke-dasharray:5 5;animation:route-signal 2.8s linear infinite;animation-play-state:paused}
@keyframes route-signal {to {stroke-dashoffset:-40}}
.motion-enabled .motion-chart-reveal :is(.kscene-chart-approved,.kscene-chart-declined) {transform-box:view-box;transform-origin:50% 80%;animation:chart-grow .8s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(var(--bar-order,0)*35ms);animation-play-state:paused}
@keyframes chart-grow {from {transform:scaleY(.04);opacity:.6} to {transform:scaleY(1);opacity:1}}
.connect-lines .connect-pulse {animation-play-state:paused}

/* One observer owns lifecycle for every looping composition. */
.motion-enabled [data-motion-active=true] :is(.commerce-track,.stream-hub>img,.logo-track,.kscene-order-slip,.kscene-payment-sheet,.kscene-renewal-sheet,.kscene-offer-sheet,.kscene-api-client,.kscene-api-response,.kscene-builder-blocks,.kscene-network-node,.kscene-alert,.kscene-route-row.active .kscene-capacity i,.kscene-api-lines,.kscene-routing-lines,.kscene-chart-approved,.kscene-chart-declined,.connect-tile,.connect-pulse,.showcase-chip) {animation-play-state:running}
.motion-enabled [data-motion-active=true] #hero-word::after {animation-play-state:running}
.motion-suspended [data-motion-active] *,html.motion-paused [data-motion-active] * {animation-play-state:paused!important}
.motion-suspended #hero-word::after,html.motion-paused #hero-word::after {animation-play-state:paused!important;opacity:0!important}

/* Open-state transitions: content is present before enhancement and after failure. */
.motion-enabled .site-header .nav-panel:not([hidden]) {animation:menu-surface-in .18s cubic-bezier(.16,1,.3,1) both}
.motion-enabled .faq details[open]>p,.motion-enabled .detail-setup[open]>ol,.motion-enabled .comparison-notes details[open]>.source-list {animation:answer-in .2s cubic-bezier(.16,1,.3,1) both}
@keyframes menu-surface-in {from {opacity:.6;translate:0 7px} to {opacity:1;translate:0 0}}
@keyframes answer-in {from {opacity:.55;translate:0 -3px} to {opacity:1;translate:0 0}}

@media(max-width:800px) {
  .logo-group {gap:32px;padding-right:32px}
  .logo-item {flex-basis:100px;width:100px}
  .stack-strip.logo-marquee .service-logo {width:90px;height:30px}
}
@media(max-width:600px) {
  :root {--scene-float:3px;--motion-speed:1.2}
  .crafted-hero .hero-flow-moving .stream-row {width:calc(50% - 18px);height:64px}
  .commerce-group {gap:10px;padding-right:10px}
  .crafted-hero .hero-flow-moving .stream-card {flex-basis:215px;width:215px;min-width:215px}
  .crafted-hero .hero-flow-moving .stream-card:has(.stream-status) {flex-basis:225px;width:225px;min-width:225px}
  .crafted-hero .hero-flow-moving .stream-card strong {font-size:11px}
  .crafted-hero .hero-flow-moving .stream-card small {font-size:9px}
  .stack-strip.logo-marquee>.logo-window {margin-top:24px}
  .logo-group {gap:28px;padding-right:28px}
  .logo-item {flex-basis:90px;width:90px}
  .stack-strip.logo-marquee .service-logo {width:84px;height:29px}
  .motion-enabled .logo-track {animation-duration:50s}
}
@media(prefers-reduced-motion:reduce) {
  .motion-enabled .commerce-track,.motion-enabled .stream-hub>img,.motion-enabled .logo-track,
  .motion-enabled .kscene *,.motion-enabled .connect-tile,.connect-lines .connect-pulse,
  .motion-enabled .showcase-chip,.motion-enabled .site-header .nav-panel:not([hidden]),
  .motion-enabled .faq details[open]>p,.motion-enabled .detail-setup[open]>ol,.motion-enabled .comparison-notes details[open]>.source-list {animation:none!important}
  #hero-word::after {display:none}
  .logo-track {width:100%}
  .logo-group {flex-wrap:wrap;justify-content:center;padding-right:0;gap:22px 28px;width:100%}
  .logo-group[aria-hidden=true] {display:none}
  .stack-strip.logo-marquee>.logo-window {mask-image:none}
}
