/* P22, scroll story. Printed, and on a phone: each step is its photo, its
   heading and its text, one under another. From 900px with the script
   (is-js): the steps on the left, each tall enough to read on its own, and
   on the right a photo pinned in place that crossfades to the step in the
   middle of the screen. The active step reads at full strength, the others
   dimmed, under motion only. No numbers, no progress dots, no cards. */
.vl-m.vl-p22 {
  padding: 72px 0;
}
.vl-m .vl-p22__in {
  max-width: 1200px;
}
.vl-m .vl-p22__head {
  max-width: 760px;
  margin-bottom: 36px;
}
.vl-m .vl-p22__title {
  margin: 0;
  color: var(--vl-fg);
  font-family: var(--vl-f-display);
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: var(--vl-display-weight, 800);
  line-height: 1.06;
}
.vl-m .vl-p22__sub {
  margin: 16px 0 0;
  color: rgba(var(--vl-fg-rgb), 0.74);
  font-size: 18px;
  line-height: 1.6;
}
.vl-m .vl-p22__step {
  margin: 0 0 44px;
}
.vl-m .vl-p22__frame {
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 16px;
}
.vl-m .vl-p22__pic {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.vl-m .vl-p22__name {
  margin: 0;
  color: var(--vl-fg);
  font-family: var(--vl-f-display);
  font-size: clamp(23px, 2.4vw, 32px);
  font-weight: var(--vl-display-weight, 700);
  line-height: 1.2;
}
.vl-m .vl-p22__text {
  margin: 10px 0 0;
  color: rgba(var(--vl-fg-rgb), 0.8);
  font-size: 17px;
  line-height: 1.7;
}
.vl-m .vl-p22__media {
  display: none;
}

@media (min-width: 900px) {
  .vl-m.vl-p22 {
    padding: 104px 0;
  }
  .vl-p22.is-js .vl-p22__story {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
  }
  .vl-p22.is-js .vl-p22__frame {
    display: none;
  }
  .vl-p22.is-js .vl-p22__step {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 62vh;
    margin: 0;
  }
  .vl-p22.is-js .vl-p22__steps > .vl-btns {
    margin: 8px 0 12vh;
  }
  .vl-p22.is-js .vl-p22__text {
    font-size: 19px;
  }
  .vl-p22.is-js .vl-p22__media {
    display: block;
    position: sticky;
    top: 14vh;
  }
  .vl-m .vl-p22__stack {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 4 / 5;
    max-height: 72vh;
    margin-left: auto;
  }
  .vl-m .vl-p22__slot {
    position: absolute;
    inset: 0;
    opacity: 0;
  }
  .vl-m .vl-p22__slot.is-active {
    opacity: 1;
  }
  .vl-m .vl-p22__pin {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .vl-p22.is-motion .vl-p22__slot {
    transform: scale(1.04);
    transition: opacity 0.6s ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.1, 1);
  }
  .vl-p22.is-motion .vl-p22__slot.is-active {
    transform: none;
  }
  .vl-p22.is-motion .vl-p22__step {
    opacity: 0.32;
    transition: opacity 0.5s ease;
  }
  .vl-p22.is-motion .vl-p22__step.is-active {
    opacity: 1;
  }
}
