/* The controls are inherited through <use>. An external <img> stays static. */
.artwork-bar,
.artwork-truck,
.artwork-paper {
  animation-duration: 6.6s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-play-state: var(--artwork-play, paused);
  transform-box: view-box;
}

.artwork-bar {
  animation-name: artwork-chart;
}

.artwork-bar-first {
  transform-origin: 214.237px 72.522px;
}

.artwork-bar-second {
  animation-delay: 0.22s;
  transform-origin: 232.621px 83.161px;
}

.artwork-bar-third {
  animation-delay: 0.44s;
  transform-origin: 251.077px 93.8px;
}

.artwork-truck {
  animation-name: artwork-delivery;
  animation-duration: 7.8s;
}

.artwork-paper {
  animation-name: artwork-read;
  animation-duration: 6.4s;
  /* Coordinates in the cropped viewBox (126, 138) of the consultant. */
  transform-origin: 286px 173px;
}

.motion-ready .in-view {
  --artwork-play: running;
}

[data-motion="paused"] .in-view,
.in-view[data-motion="paused"] {
  --artwork-play: paused;
}

/* The bottom edge of each bar follows the isometric 30-degree baseline. */
@keyframes artwork-chart {
  0%, 18%, 82%, 100% { transform: none; }
  43%, 57% { transform: matrix(1, .2194, 0, .62, 0, 0); }
}

@keyframes artwork-delivery {
  0%, 14%, 90%, 100% { transform: none; }
  46%, 60% { transform: translate(-18px, 10.4px); }
}

@keyframes artwork-read {
  0%, 20%, 86%, 100% { transform: none; }
  43%, 57% { transform: rotate(-5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .artwork-bar,
  .artwork-truck,
  .artwork-paper {
    animation: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* One clock for the seven expenses, the pen and the dip in income.
     Without script the illustration uses its finished frame. */
  .motion-ready :is(.margin-column,.margin-reveal,.margin-stylus,.margin-echo,.margin-area) {
    animation-duration: 5.6s;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
    animation-play-state: var(--artwork-play,paused);
  }
  .margin-column {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation-name: margin-rise;
    animation-delay: var(--bar-delay,0ms);
    animation-timing-function: cubic-bezier(.24,.75,.35,1);
  }
  .margin-reveal { animation-name: margin-write; animation-timing-function: linear; }
  .margin-stylus { animation-name: margin-follow; animation-timing-function: linear; }
  .margin-area { animation-name: margin-fill; }
  .margin-echo { transform-box: fill-box; transform-origin: center; animation-name: margin-detect; }
  @keyframes margin-rise {
    0%,100% { transform: scaleY(.19); }
    20% { transform: scaleY(1.07); }
    28%,78% { transform: scaleY(1); }
  }
  @keyframes margin-write {
    0%,12% { stroke-dashoffset: 100; opacity: 1; }
    52%,62% { stroke-dashoffset: 30; opacity: 1; }
    81%,90% { stroke-dashoffset: 0; opacity: 1; }
    98%,100% { stroke-dashoffset: 0; opacity: 0; }
  }
  @keyframes margin-follow {
    0%,8% { stroke-dashoffset: 0; opacity: 0; }
    12% { stroke-dashoffset: 0; opacity: 1; }
    52%,62% { stroke-dashoffset: -70; opacity: 1; }
    81%,86% { stroke-dashoffset: -99.8; opacity: 1; }
    93%,100% { stroke-dashoffset: -99.8; opacity: 0; }
  }
  @keyframes margin-fill {
    0%,24%,100% { opacity: .05; }
    62%,86% { opacity: 1; }
  }
  @keyframes margin-detect {
    0%,49% { opacity: 0; transform: scale(.46); }
    53% { opacity: .95; transform: scale(.68); }
    69%,100% { opacity: 0; transform: scale(1.7); }
  }
  .range-selection,.listing-check { animation: confirm-match 5.8s ease-in-out infinite; }
  .campaign-drop { animation: enter-funnel 5.6s ease-in-out infinite; }
  .campaign-delay { animation-delay: -1.5s; }
  .replies-route { animation: route-reply 4.8s linear infinite; }
  .range-selection,.listing-check,.campaign-drop,.replies-route {
    animation-play-state: var(--artwork-play,paused);
  }
  @keyframes confirm-match { 0%,64%,100% { opacity: 1; } 27%,39% { opacity: .55; } }
  @keyframes enter-funnel {
    0%,26%,100% { transform: none; opacity: 1; }
    57% { transform: translate(5px,22px); opacity: 0; }
    63% { transform: translateY(-8px); opacity: 0; }
  }
  @keyframes route-reply { to { stroke-dashoffset: -100; } }
}
