.section-diagram {
  padding: 5em 0;
  position: relative;
  color: var(--white);
}
.section-diagram .background {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--primary);
  display: flex;
  align-items: flex-end;
}
.section-diagram .background img {
  height: 50%;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.section-diagram .background:after {
  content: "";
  position: absolute;
  inset: 0;
  top: 50%;
  background-image: linear-gradient(to bottom, var(--primary) 25%, rgba(var(--primary-rgb), 0) 75%);
}
.section-diagram .container {
  position: relative;
}
.section-diagram .container .heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  grid-gap: 100px;
  flex-wrap: wrap;
}
.section-diagram .container .heading > div {
  width: calc(50% - 50px);
}
.section-diagram .container .heading img.top-icon {
  filter: brightness(0) invert(1);
}
.section-diagram .container .heading .text {
  font-size: 1.4em;
  line-height: 1.5em;
}
.section-diagram .container .heading > .buttons {
  display: block;
  margin: 75px auto 0;
}
.section-diagram .container .heading > .buttons .button {
  max-width: -moz-max-content;
  max-width: max-content;
  margin: 0 auto 20px;
}
.section-diagram .container .heading > .buttons .button:last-child {
  margin-bottom: 0;
}
.section-diagram .container .blocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  grid-gap: 25px;
  width: 100%;
}
.section-diagram .container .blocks:not(:first-child) {
  margin-top: 50px;
}
.section-diagram .container .blocks .logos {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  padding: 0 0 150px;
}
.section-diagram .container .blocks .logos > div {
  width: 50%;
}
.section-diagram .container .blocks .logos > div img {
  max-width: 200px;
  margin: 0 auto;
  display: block;
}
.section-diagram .container .blocks .logos img.path-graphic {
  position: absolute;
  bottom: 0;
  left: 5%;
  width: 90%;
}
.section-diagram .container .blocks .block {
  flex: 1;
  flex-grow: 1;
  flex-basis: 0;
}
.section-diagram .container .blocks .block .icon {
  margin-bottom: 20px;
}
.section-diagram .container .blocks .block .icon img {
  height: 40px;
}
.section-diagram .container .blocks .block .text {
  line-height: 1.5em;
  font-size: 0.9em;
}
.section-diagram:has(.background img) {
  padding-bottom: 50vh;
}
.section-diagram:has(img.top-icon) .heading .text {
  margin-top: 40px;
}

@media (max-width: 900px) {
  .section-diagram .container .heading {
    grid-gap: 0;
  }
  .section-diagram .container .heading div {
    width: 100%;
  }
  .section-diagram .container .heading div .text {
    margin-top: 0;
  }
  .section-diagram .container .blocks .logos {
    padding-bottom: 50px;
    justify-content: flex-start;
    grid-gap: 50px;
  }
  .section-diagram .container .blocks .logos > div {
    width: -moz-max-content;
    width: max-content;
  }
  .section-diagram .container .blocks .logos > div img {
    margin-left: 0;
  }
  .section-diagram .container .blocks .logos img.path-graphic {
    display: none;
  }
  .section-diagram .container .blocks .block {
    min-width: 200px;
  }
}
/*

Scroll Animations

*/
.section-blocks.scrolled-to .block:nth-child(1) {
  animation: block1 1s forwards;
}
.section-blocks.scrolled-to .block:nth-child(2) {
  animation: block2 1.25s forwards;
}
.section-blocks.scrolled-to .block:nth-child(3) {
  animation: block3 1.5s forwards;
}
.section-blocks.scrolled-to .block:nth-child(4) {
  animation: block4 1.75s forwards;
}
.section-blocks.scrolled-to .block:nth-child(5) {
  animation: block5 2s forwards;
}
.section-blocks.scrolled-to .block:nth-child(6) {
  animation: block6 2.25s forwards;
}
.section-blocks.scrolled-to .block:nth-child(7) {
  animation: block7 2.5s forwards;
}
.section-blocks.scrolled-to .block:nth-child(8) {
  animation: block8 2.75s forwards;
}
.section-blocks.scrolled-to .block:nth-child(9) {
  animation: block9 3s forwards;
}
.section-blocks.scrolled-to .block:nth-child(10) {
  animation: block10 3.25s forwards;
}
.section-blocks.scrolled-to .block:nth-child(11) {
  animation: block11 3.5s forwards;
}
.section-blocks.scrolled-to .block:nth-child(12) {
  animation: block12 3.75s forwards;
}
.section-blocks.scrolled-to .block {
  animation: block13 4s forwards;
}

@keyframes block1 {
  from {
    margin: -50px 0 50px;
    opacity: 0;
  }
  to {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block2 {
  0%, 20% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block3 {
  0%, 33% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block4 {
  0%, 43% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block5 {
  0%, 50% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block6 {
  0%, 55% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block7 {
  0%, 60% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block8 {
  0%, 64% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block9 {
  0%, 67% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block10 {
  0%, 70% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block11 {
  0%, 72% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block12 {
  0%, 74% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block13 {
  0%, 75% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}