.methodology-section {
  margin-top: 0;
}

.methodology-heading {
  max-width: 970px;
  margin-bottom: 100px;
  margin-left: var(--padding-page);
  color: var(--color-blue);
}

.methodology-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-inline: var(--padding-page);
}

.methodology-step-wrapper {
  position: relative;
  isolation: isolate;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
  border-radius: 24px;
  color: var(--color-white);
  background: var(--color-blue);
  padding: var(--padding-page) 20px;
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
}

.methodology-step-image-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  z-index: -1;
  transform: translate(-50%, -50%);
}

.methodology-step-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

/* Keep live text legible over the lighter cyan parts of the print treatment. */
.methodology-step-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(180deg, rgb(0 28 85 / 80%) 0%, rgb(0 28 85 / 65%) 28%, rgb(0 28 85 / 10%) 50%, rgb(0 28 85 / 75%) 75%, rgb(0 28 85 / 85%) 100%);
}

.methodology-step-index {
  width: fit-content;
  padding: 6px 10px;
  margin-bottom: 10px;
  border: 1px solid currentColor;
  border-radius: 25px;
}

@media screen and (width <= 1024px) {
  .methodology-heading {
    max-width: 700px;
    margin-bottom: 60px;
  }
}

@media screen and (width <= 769px) {
  .methodology-heading {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .methodology-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .methodology-step-wrapper {
    height: auto;
    min-height: 360px;
    gap: 40px;
    border-radius: 20px;
  }

  .methodology-step-image-wrapper::after {
    background: rgb(0 28 85 / 70%);
  }
}

@media screen and (width <= 480px) {
  .methodology-section {
    margin-top: 70px;
  }

  .methodology-heading {
    margin-bottom: 20px;
  }
}
