.motion-figure, .loop-diagram {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  font-family: var(--deck-font);
}
.motion-figure[data-chart]:empty { display: none; }
.fig > noscript { min-height: 0; }
.loop-figure { position: absolute; inset: 12% 4.5% 4%; }

.loop-diagram {
  --learning: #1658a8;
  --validation: #9a542a;
  --active: var(--learning);
  --active-card: #eaf2fc;
  --muted: #49535e;
  fill: #15191d;
}
.loop-links [data-flow] {
  fill: none;
  stroke: #76828e;
  stroke-width: 2;
  marker-end: url(#loop-arrow);
}
.loop-links [data-flow].loop-learning { stroke: var(--learning); }
.loop-links [data-flow].loop-validation { stroke: var(--validation); }
.loop-log-link { stroke-dasharray: 5 5; }
.loop-arrow-label, .loop-arrow-note { font-size: 17px; }
.loop-arrow-label { font-weight: 600; }
.loop-arrow-label.loop-learning { fill: var(--learning); }
.loop-arrow-label.loop-validation { fill: var(--validation); }
.loop-arrow-note { fill: var(--muted); }

.loop-stage.loop-validation {
  --active: var(--validation);
  --active-card: #fbefe3;
}
.loop-card {
  fill: #fafaf8;
  stroke: #c6cacc;
  stroke-width: 1.5;
  transition: fill .23s, stroke .23s;
}
.loop-stage.is-active .loop-card {
  fill: var(--active-card);
  stroke: var(--active);
  stroke-width: 2.5;
}
.loop-stage.has-feedback .loop-card { stroke: var(--active); stroke-width: 2.5; }
.loop-number { fill: #e6e8e8; transition: fill .23s; }
.loop-digit { fill: #35414a; font-size: 17px; font-weight: 700; text-anchor: middle; }
.loop-stage.is-active .loop-number { fill: var(--active); }
.loop-stage.is-active .loop-digit { fill: white; }
.loop-heading { font-size: 26px; font-weight: 700; letter-spacing: -.65px; }
.loop-copy, .loop-emphasis { font-size: 16px; }
.loop-copy { fill: #38434b; }
.loop-emphasis { font-weight: 700; }
.loop-wing-outline { fill: none; stroke: #8fabc8; stroke-width: 2.5; }
.loop-wing { fill: var(--learning); }
.loop-update rect { fill: #e6ecf4; }
.loop-update text { fill: #1d3b60; font-size: 15px; font-weight: 700; }
.loop-update .loop-update-note { font-size: 13px; font-weight: 400; }
.loop-stage.is-active .loop-update rect { animation: league-pulse .85s ease-out 2; }
.loop-stage.is-active .loop-update + .loop-update rect { animation-delay: .12s; }
@keyframes league-pulse {
  0%, 100% { fill: #e6ecf4; }
  42% { fill: #aacbf4; }
}
.loop-metrics path { stroke: #c6cacc; stroke-width: 1.4; }
.loop-metric-note, .loop-metric-label { fill: var(--muted); font-size: 19px; }
.loop-metric-value {
  fill: var(--learning);
  font-size: 52px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
}
.loop-particle { fill: var(--learning); }
.loop-particle.loop-validation { fill: var(--validation); }

.motion-figure { fill: #17191a; }
.chart-grid { stroke: #d5d7d6; stroke-width: 1.25; }
.chart-axis { stroke: #a5acae; stroke-width: 1.5; }
.chart-tick, .chart-description { fill: #4f565a; font-size: 24px; }
.chart-label { font-size: 25px; font-weight: 600; }
.chart-path {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-path--reference { stroke-width: 3; stroke-dasharray: 8 8; }
.chart-point { stroke: #f1f1ef; stroke-width: 1.5; }
.motion-running .chart-path--draw {
  stroke-dasharray: 1;
  animation: draw-series 1.9s ease-out both;
}
.motion-running .chart-end { animation: reveal-mark .35s ease-out 1.55s both; }
@keyframes draw-series { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes reveal-mark { from { opacity: 0; } to { opacity: 1; } }

.motion-running .barriers li { animation: reveal-mark .4s ease-out both; }
.motion-running .barriers li:nth-child(2) { animation-delay: .22s; }
.motion-running .barriers li:nth-child(3) { animation-delay: .44s; }

.chart-big-number {
  fill: #1658a8;
  font-size: 83px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -3px;
}
.chart-bar-value { font-size: 27px; font-weight: 700; }
.chart-bar-track { fill: #dfe3e4; }
.chart-bar { transform-box: fill-box; transform-origin: left center; }
.motion-running .chart-bar { animation: fill-bar var(--duration) var(--curve, ease-out) var(--delay) both; }
.motion-running .chart-bar-value--reveal { animation: reveal-mark .3s ease-out var(--delay) both; }
@keyframes fill-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.airframe-evolved { opacity: 0; }
.airframe-label { font-size: 32px; font-weight: 700; text-anchor: middle; }
.motion-running .airframe-start { animation: airframe-start 8s linear infinite; }
.motion-running .airframe-evolved { animation: airframe-evolved 8s linear infinite; }
@keyframes airframe-start {
  0%, 34%, 100% { opacity: 1; }
  47%, 84% { opacity: 0; }
}
@keyframes airframe-evolved {
  0%, 34%, 100% { opacity: 0; }
  47%, 84% { opacity: 1; }
}
.airframe-reduced { display: none !important; }

@media (prefers-reduced-motion: reduce), print {
  .motion-running * { animation: none !important; transition: none !important; }
  .airframe-fade { display: none; }
  .airframe-reduced { display: block !important; }
  .loop-particles, .loop-metrics { display: none; }
}
