/* The opening remains pinned while the next card scrolls over its surface. */
.overlay-sequence {
  position: relative;
  z-index: 2;
  background: var(--page-bg);
  isolation: isolate;
}

.overlay-sequence > .manifesto {
  position: sticky;
  top: var(--nav-height);
  height: calc(100svh - var(--nav-height));
  min-height: 540px;
  z-index: 1;
  transform: scale(var(--underlay-scale, 1));
  filter: brightness(var(--underlay-brightness, 1));
  transform-origin: center center;
  will-change: transform, filter;
}

.overlay-sequence .manifesto-stage {
  position: relative;
  top: 0;
  height: 100%;
}

.experience-card {
  position: relative;
  z-index: 2;
  /* Finish revealing the words before the card enters the screen. */
  margin-top: 65svh;
  padding: 64px 8.5% 90px;
  border-top: 1px solid var(--page-line);
  background: var(--page-bg);
  color: var(--page-ink);
  box-shadow: 0 -28px 70px #29231c12;
}

.experience-card-copy h2 {
  font-size: clamp(48px, 6.2vw, 88px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.experience-card-copy p {
  max-width: 760px;
  margin-top: 28px;
  color: var(--page-muted);
  font-size: 20px;
  line-height: 1.45;
}

.experience-card-copy .button {
  margin-top: 24px;
  min-height: 56px;
  border-color: var(--page-ink);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.experience-card-images {
  display: grid;
  grid-template-columns: 1fr 2.1fr;
  align-items: start;
  gap: 24px;
  margin-top: 42px;
}

.experience-card-images img {
  width: 100%;
  object-fit: cover;
}
.card-image-small {
  aspect-ratio: 4 / 3;
  object-position: center 60%;
}
.card-image-large {
  aspect-ratio: 3 / 4;
  object-position: center;
}

@media (max-width: 760px) {
  .experience-card {
    padding: 32px 16px 64px;
  }
  .experience-card-copy h2 {
    font-size: clamp(40px, 10vw, 64px);
  }
  .experience-card-copy p {
    font-size: 16px;
    margin-top: 20px;
  }
  .experience-card-copy .button {
    margin-top: 18px;
    min-height: 56px;
    font-size: 14px;
    padding: 15px 24px;
  }
  .experience-card-images {
    gap: 12px;
    margin-top: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .overlay-sequence > .manifesto {
    position: relative;
    top: 0;
    height: auto;
    transform: none;
    filter: none;
    will-change: auto;
  }

  .experience-card {
    margin-top: 0;
    box-shadow: none;
  }
}
