.r2a-pipeline,
.r2a-pipeline * {
  box-sizing: border-box;
}

.r2a-pipeline {
  --r2a-accent: #503181;
  --r2a-text: #2e2833;
  width: 100%;
  position: relative;
  background: transparent;
  color: var(--r2a-text);
  padding: 0;
  overflow: hidden;
}

/* Reference desktop view is ~1000px wide. */
.r2a-pipeline__inner {
  width: min(1000px, 100%);
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
}

/* Base line stays light grey; purple progress fills from top to bottom on scroll. */
.r2a-pipeline__track {
  position: absolute;
  top: 24px;
  bottom: 94px;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

.r2a-pipeline__track-base,
.r2a-pipeline__track-fill {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
}

.r2a-pipeline__track-base {
  background: rgb(242, 240, 237);
}

.r2a-pipeline__track-fill {
  background: var(--r2a-accent);
  transform-origin: top;
  transform: scaleY(0);
  box-shadow: none;
}

.r2a-pipeline__track-fill::after {
  content: none;
}

.r2a-pipeline__steps {
  position: relative;
  z-index: 2;
}

/* Screenshot spacing: each process row is ~405px tall. */
.r2a-pipeline__step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
  column-gap: 30px;
  min-height: 405px;
  margin: 0;
  align-items: start;
  position: relative;
}

.r2a-pipeline__side {
  min-width: 0;
  opacity: 0;
  transition: opacity .68s ease, transform .68s cubic-bezier(.2,.7,.2,1);
  will-change: transform, opacity;
}

.r2a-pipeline__side--left {
  transform: translateX(-26px);
}

.r2a-pipeline__side--right {
  transform: translateX(26px);
}

.r2a-pipeline__step.is-visible .r2a-pipeline__side {
  opacity: 1;
  transform: translateX(0);
}

/* Node is aligned to the vertical centre of the reference image, not the full row. */
.r2a-pipeline__node-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  z-index: 5;
  padding-top: 143px;
}

.r2a-pipeline__node {
  width: 60px;
  height: 60px;
  border: 2px solid var(--r2a-accent);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--r2a-accent);
  box-shadow: 0 7px 18px rgba(46,40,51,.08);
  transform: scale(.94);
  opacity: .9;
  transition: transform .4s ease, opacity .4s ease, box-shadow .4s ease;
}

.r2a-pipeline__node svg,
.r2a-pipeline__node img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

.r2a-pipeline__node svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.r2a-pipeline__step.is-active .r2a-pipeline__node,
.r2a-pipeline__step.is-visible .r2a-pipeline__node {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 0 0 5px rgba(80,49,129,.055), 0 10px 22px rgba(80,49,129,.12);
}

/* Text block sits lower than the image in the supplied reference. */
.r2a-pipeline__copy {
  max-width: 400px;
  margin-top: 76px;
}

.r2a-pipeline__side--left .r2a-pipeline__copy {
  margin-left: auto;
  text-align: right;
}

.r2a-pipeline__side--right .r2a-pipeline__copy {
  margin-right: auto;
  text-align: left;
}

.r2a-pipeline__number {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 44px;
  line-height: .88;
  font-weight: 800;
  color: rgba(80,49,129,.085);
  margin: 0 0 8px;
}

.r2a-pipeline__copy h3 {
  margin: 0 0 12px;
  color: var(--r2a-text);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 27px;
  line-height: 1.12;
  font-weight: 800;
}

.r2a-pipeline__copy p {
  color: #625b68;
  font-size: 15.5px;
  line-height: 1.48;
  margin: 0 0 20px;
}

/* Plain text label with icon — not a link and not a button. */
.r2a-pipeline__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  background: var(--r2a-accent);
  color: #fff;
  padding: 8px 14px;
  font-size: 11.5px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
  cursor: default;
  user-select: text;
}

.r2a-pipeline__label-icon {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 15px;
}

.r2a-pipeline__label-icon img,
.r2a-pipeline__label-icon svg {
  width: 15px;
  height: 15px;
  display: block;
  object-fit: contain;
}

.r2a-pipeline__label-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Image frame proportions taken from the supplied full website screenshot. */
.r2a-pipeline__media {
  width: 100%;
  max-width: 425px;
  aspect-ratio: 1.30 / 1;
  margin-top: 10px;
  background: #fff;
  border: 1px solid rgba(80,49,129,.27);
  padding: 14px;
  box-shadow: 0 17px 30px rgba(46,40,51,.10);
  overflow: hidden;
  position: relative;
}

.r2a-pipeline__side--left .r2a-pipeline__media {
  margin-left: auto;
}

.r2a-pipeline__side--right .r2a-pipeline__media {
  margin-right: auto;
}

.r2a-pipeline__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--r2a-accent);
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}

.r2a-pipeline__step:hover .r2a-pipeline__media img {
  transform: scale(1.025);
}

.r2a-pipeline__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(80,49,129,.04), rgba(80,49,129,.10));
  border: 1px solid var(--r2a-accent);
}

.r2a-pipeline__placeholder span {
  font-size: 10px;
  letter-spacing: .1em;
  font-weight: 800;
  color: rgba(80,49,129,.5);
}

/* Tablet */
@media (max-width: 860px) {
  .r2a-pipeline__inner {
    padding: 0 20px;
  }

  .r2a-pipeline__track {
    top: 0;
    bottom: 0;
    left: 39px;
    transform: none;
    width: 2px;
  }

  .r2a-pipeline__step {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 18px;
    min-height: auto;
    margin-bottom: 58px;
    align-items: start;
  }

  .r2a-pipeline__node-wrap {
    grid-column: 1;
    grid-row: 1 / span 2;
    justify-content: flex-start;
    padding-top: 0;
  }

  .r2a-pipeline__node {
    width: 38px;
    height: 38px;
    border-width: 1px;
  }

  .r2a-pipeline__node svg,
  .r2a-pipeline__node img {
    width: 19px;
    height: 19px;
  }

  .r2a-pipeline__side {
    grid-column: 2;
    transform: translateY(20px) !important;
  }

  .r2a-pipeline__step.is-visible .r2a-pipeline__side {
    transform: translateY(0) !important;
  }

  .r2a-pipeline__step .r2a-pipeline__side--left { grid-row: 1; }
  .r2a-pipeline__step .r2a-pipeline__side--right { grid-row: 2; }
  .r2a-pipeline__step.is-even .r2a-pipeline__side--left { grid-row: 2; }
  .r2a-pipeline__step.is-even .r2a-pipeline__side--right { grid-row: 1; }

  .r2a-pipeline__copy,
  .r2a-pipeline__side--left .r2a-pipeline__copy,
  .r2a-pipeline__side--right .r2a-pipeline__copy {
    max-width: 560px;
    margin: 0;
    text-align: left;
  }

  .r2a-pipeline__media,
  .r2a-pipeline__side--left .r2a-pipeline__media,
  .r2a-pipeline__side--right .r2a-pipeline__media {
    width: 100%;
    max-width: 560px;
    margin: 18px 0 0;
  }

  .r2a-pipeline__number { font-size: 38px; }
  .r2a-pipeline__copy h3 { font-size: 25px; }
  .r2a-pipeline__copy p { font-size: 15px; }
}

/* Phone */
@media (max-width: 520px) {
  .r2a-pipeline__inner {
    padding: 0 12px;
  }

  .r2a-pipeline__track {
    left: 29px;
  }

  .r2a-pipeline__step {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 46px;
  }

  .r2a-pipeline__node {
    width: 34px;
    height: 34px;
  }

  .r2a-pipeline__node svg,
  .r2a-pipeline__node img {
    width: 17px;
    height: 17px;
  }

  .r2a-pipeline__number { font-size: 34px; }
  .r2a-pipeline__copy h3 { font-size: 22px; }
  .r2a-pipeline__copy p { font-size: 14px; line-height: 1.52; }
  .r2a-pipeline__label { font-size: 10px; min-height: 29px; padding: 7px 10px; }
  .r2a-pipeline__media { padding: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .r2a-pipeline *,
  .r2a-pipeline *::before,
  .r2a-pipeline *::after {
    animation: none !important;
    transition: none !important;
  }

  .r2a-pipeline__side {
    opacity: 1 !important;
    transform: none !important;
  }
}
