.ecosystem {
  --diagram-gap: 7%;
}

.solution-panel,
.analytics-panel,
.project-panel {
  will-change: transform, opacity;
}

.solution-panel {
  animation: km-card-reveal .65s cubic-bezier(.2,.75,.25,1) both;
}

.analytics-panel {
  animation: km-card-reveal .65s .14s cubic-bezier(.2,.75,.25,1) both;
}

.project-panel {
  animation: km-card-reveal .65s .28s cubic-bezier(.2,.75,.25,1) both;
}

.solution-row {
  border-radius: 5px;
  padding-left: 8px;
  padding-right: 8px;
  position: relative;
  transition: background-color .35s ease, box-shadow .35s ease, color .35s ease;
}

.solution-row.is-active {
  background: #edf8fb;
  box-shadow: inset 3px 0 0 #1686b0;
  color: #106f91;
}

.solution-row.is-active > b {
  color: #1686b0;
}

.solution-row.is-active:after {
  animation: km-row-pulse 1.6s ease-in-out infinite;
  background: #1686b0;
  border-radius: 50%;
  content: '';
  height: 6px;
  position: absolute;
  right: -4px;
  top: calc(50% - 3px);
  width: 6px;
}

.connections {
  opacity: .82;
}

.connections path {
  animation: km-line-flow 7s linear infinite;
  stroke-dasharray: 6 9;
}

.chart span {
  animation: km-bar-grow .7s cubic-bezier(.2,.75,.25,1) both;
  transform-origin: center bottom;
}

.chart span:nth-child(2) { animation-delay: .07s; }
.chart span:nth-child(3) { animation-delay: .14s; }
.chart span:nth-child(4) { animation-delay: .21s; }
.chart span:nth-child(5) { animation-delay: .28s; }
.chart span:nth-child(6) { animation-delay: .35s; }
.chart span:nth-child(7) { animation-delay: .42s; }
.chart span:nth-child(8) { animation-delay: .49s; }

.ecosystem.motion-paused *,
.ecosystem.motion-paused *:before,
.ecosystem.motion-paused *:after {
  animation-play-state: paused !important;
}

@keyframes km-card-reveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes km-line-flow {
  to { stroke-dashoffset: -60; }
}

@keyframes km-row-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,134,176,.28); }
  50% { box-shadow: 0 0 0 7px rgba(22,134,176,0); }
}

@keyframes km-bar-grow {
  from { opacity: .25; transform: scaleY(.08); }
  to { opacity: 1; transform: scaleY(1); }
}

@media (min-width: 1101px) {
  .ecosystem { height: 535px; }
  .solution-panel { left: 0; top: 96px; width: 55%; }
  .analytics-panel { right: 0; top: 50px; width: 38%; }
  .project-panel { right: 0; top: 305px; width: 38%; }
  .diagram-caption { left: 0; }
  .diagram-bottom { left: 0; }
}

@media (min-width: 851px) and (max-width: 1100px) {
  .solution-panel { left: 0; top: 82px; width: 56%; }
  .analytics-panel { right: 0; top: 38px; width: 37%; }
  .project-panel { right: 0; top: 282px; width: 39%; }
}

@media (max-width: 850px) {
  .solution-panel { left: 0; width: 55%; }
  .analytics-panel { right: 0; width: 38%; }
  .project-panel { right: 0; width: 39%; }
}

@media (max-width: 560px) {
  .ecosystem { height: 395px; }
  .solution-panel { top: 58px; width: 56%; }
  .analytics-panel { right: 0; top: 28px; width: 38%; }
  .project-panel { right: 0; top: 244px; width: 41%; }
  .solution-row { padding-left: 6px; padding-right: 6px; }
  .solution-row.is-active:after { right: -3px; }
}

@media (prefers-reduced-motion: reduce) {
  .solution-panel,
  .analytics-panel,
  .project-panel,
  .connections path,
  .chart span,
  .solution-row.is-active:after {
    animation: none;
  }
  .solution-row { transition: none; }
}
