.ecosystem-section {
  padding: 90px 0 126px;
  color: var(--rsf-blue-white);
  background:
    radial-gradient(ellipse at -4% 12%, rgba(52, 146, 240, 0.48), transparent 30%),
    radial-gradient(ellipse at 105% 100%, rgba(52, 146, 240, 0.38), transparent 34%),
    var(--rsf-dark);
}

.ecosystem-shell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 40px;
}

.ecosystem-row {
  width: 100%;
  display: flex;
  align-items: center;
}

.ecosystem-row--top {
  gap: 212px;
}

.ecosystem-row--bottom {
  gap: 250px;
}

.ecosystem-copy {
  width: 438px;
  flex: 0 0 438px;
}

.ecosystem-copy .rsf-eyebrow,
.ecosystem-copy .rsf-title,
.ecosystem-copy .rsf-copy {
  color: var(--rsf-blue-white);
}

.ecosystem-copy .rsf-eyebrow {
  max-width: 398px;
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ecosystem-copy .rsf-eyebrow strong {
  font-weight: 700;
}

.ecosystem-copy .rsf-title {
  max-width: 438px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

.ecosystem-copy .rsf-copy {
  position: relative;
  max-width: 438px;
  margin-top: 10px;
  padding-left: 12px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

.ecosystem-copy .rsf-copy::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 1px;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.ecosystem-stats {
  width: 402px;
  flex: 0 0 402px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
  text-transform: uppercase;
}

.ecosystem-stats article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.ecosystem-stats strong {
  display: block;
  margin-bottom: -10px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.5;
}

.ecosystem-stats span {
  color: var(--rsf-blue-white);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
}

.ecosystem-media {
  width: 627px;
  flex: 0 0 627px;
  display: flex;
  align-items: center;
  gap: 19px;
}

.ecosystem-photo {
  width: 304px;
  height: 426px;
  object-fit: cover;
  border-radius: 12px;
}

.ecosystem-marquee {
  display: none;
}

@media (max-width: 1340px) {
  .ecosystem-shell {
    align-items: center;
    gap: 48px;
  }

  .ecosystem-row,
  .ecosystem-row--top,
  .ecosystem-row--bottom {
    flex-direction: column;
    gap: 34px;
    align-items: center;
  }

  .ecosystem-copy,
  .ecosystem-stats,
  .ecosystem-media {
    flex: 0 1 auto;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .ecosystem-section {
    min-height: 825px;
    padding: 62px 0 72px;
    background:
      radial-gradient(ellipse 40px 97px at -34px 41px, rgba(52, 146, 240, 0.72), transparent 72%),
      radial-gradient(ellipse 157px 101px at 550px 272px, rgba(52, 146, 240, 0.72), transparent 72%),
      radial-gradient(ellipse 40px 97px at -34px 771px, rgba(52, 146, 240, 0.72), transparent 72%),
      var(--rsf-dark);
  }

  .ecosystem-shell {
    row-gap: 34px;
  }

  .ecosystem-copy {
    text-align: center;
  }

  .ecosystem-copy .rsf-eyebrow {
    font-size: 20px;
  }

  .ecosystem-copy .rsf-title {
    margin-inline: auto;
    font-size: 18px;
  }

  .ecosystem-copy .rsf-copy {
    margin-inline: auto;
    padding-left: 0;
  }

  .ecosystem-copy .rsf-copy::before {
    display: none;
  }

  .ecosystem-row--top {
    gap: 0;
  }

  .ecosystem-row--bottom {
    gap: 0;
  }

  .ecosystem-row .ecosystem-media {
    display: none;
  }

  .ecosystem-marquee {
    display: block;
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    overflow: hidden;
  }

  .ecosystem-marquee__track {
    width: max-content;
    display: flex;
    gap: 6px;
    animation: ecosystem-marquee 28s linear infinite;
  }

  .ecosystem-photo {
    width: 174px;
    height: 245px;
  }

  .ecosystem-stats article {
    width: 223px;
    margin: 0 auto;
    min-height: 62px;
  }

  .ecosystem-stats strong {
    font-size: 40px;
  }

  .ecosystem-stats span {
    font-size: 15px;
  }
}

@keyframes ecosystem-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecosystem-marquee__track {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}
