/* Immersive project journey */
.project-journey {
  height: 420vh;
  background: #090909;
  color: #fff;
  position: relative;
}

.journey-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  background: #090909;
}

.journey-heading {
  position: relative;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.journey-heading .eyebrow,
.journey-counter {
  margin: 0;
  color: #fff;
}

.journey-counter {
  font-family: "Manrope", sans-serif;
  font-size: .78rem;
  letter-spacing: .15em;
}

.journey-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.journey-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  clip-path: inset(8% 6% 8% 6% round 2px);
  transform: translate3d(0, 14%, 0) rotateX(7deg) scale(.84);
  transform-origin: center 75%;
  transition: opacity .65s ease, visibility .65s,
    clip-path .95s cubic-bezier(.22, 1, .36, 1),
    transform .95s cubic-bezier(.22, 1, .36, 1);
}

.journey-scene.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  clip-path: inset(0);
  transform: translate3d(0, 0, 0) rotateX(0) scale(1);
}

.journey-scene.is-leaving {
  opacity: 0;
  visibility: visible;
  z-index: 1;
  clip-path: inset(0 12% 0 12%);
  transform: translate3d(0, -9%, -150px) rotateX(-5deg) scale(.9);
}

.journey-scene > img {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  transform: scale(1.06) translate3d(0, var(--journey-image-y, 0), 0);
  transition: transform 1.1s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.journey-scene.is-active > img {
  transform: scale(1) translate3d(0, var(--journey-image-y, 0), 0);
}

.journey-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05) 35%, rgba(0, 0, 0, .76) 100%);
}

.journey-copy {
  position: absolute;
  z-index: 3;
  left: clamp(1.25rem, 5vw, 5rem);
  bottom: clamp(2rem, 7vh, 5.5rem);
  transform: translateY(2.5rem);
  opacity: 0;
  transition: transform .75s .16s cubic-bezier(.22, 1, .36, 1), opacity .55s .16s;
}

.journey-scene.is-active .journey-copy {
  transform: none;
  opacity: 1;
}

.journey-copy p {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .17em;
  margin: 0 0 1rem;
}

.journey-copy h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.4rem, 10vw, 10rem);
  line-height: .82;
  letter-spacing: -.075em;
  margin: 0;
  color: #fff;
}

.journey-copy a {
  display: inline-flex;
  gap: .8rem;
  margin-top: 2rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(255, 255, 255, .72);
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.journey-progress {
  position: relative;
  z-index: 8;
  height: 2px;
  background: rgba(255, 255, 255, .22);
  margin-top: 1.2rem;
}

.journey-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--orange);
  transform-origin: left;
}

@media (max-width: 700px) {
  .project-journey { height: 360vh; }
  .journey-sticky { padding: 1rem; }
  .journey-heading { height: 3rem; }
  .journey-scene {
    clip-path: inset(7% 0 7% 0);
    transform: translate3d(0, 10%, 0) scale(.91);
  }
  .journey-copy { left: 1.2rem; right: 1.2rem; bottom: 2rem; }
  .journey-copy h2 { font-size: clamp(3.2rem, 17vw, 5.2rem); }
  .journey-copy a { margin-top: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .journey-scene,
  .journey-scene > img,
  .journey-copy { transition: none !important; transform: none !important; }
  .project-journey { height: 320vh; }
}
