/* Native page scrolling owns progress; the scene stays sticky within its space. */
@media (min-width: 768px) {
  .virtual-card-sequence {
    --sequence-copy-gutter: calc(8px + var(--hero-inline-space, 40px));
  }
  .virtual-card-sequence .scroll-sequence {
    --sequence-step-distance: calc(var(--sequence-view-height, 100svh) * 0.8);
    height: calc(var(--sequence-view-height, 100svh) + 4 * var(--sequence-step-distance));
  }
  .virtual-card-sequence .scroll-sticky {
    isolation: isolate;
    overflow: hidden;
    background: #ffffff;
    height: var(--sequence-view-height, 100svh);
    min-height: 0;
    align-items: center;
  }
  .virtual-card-sequence .scroll-sticky::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    background: #ffe600;
    pointer-events: none;
    transform: translateY(100%);
    animation: virtual-card-yellow-panel-enter 700ms var(--virtual-card-ease-enter) 6400ms both;
    animation-play-state: paused;
  }
  .virtual-card-sequence .motion-stage {
    /* Keep the whole composition readable in a short desktop window. */
    width: min(100%, calc(var(--sequence-view-height, 100svh) * 1366 / 712));
    flex: 0 0 auto;
    z-index: 1;
    background: transparent;
  }
  .virtual-card-sequence .motion-stage > .purchase-yellow-panel {
    /* The full-width backdrop owns the same timeline as the scaled scene. */
    display: none;
  }
  .virtual-card-sequence .sequence-copy-layer {
    container-type: inline-size;
    position: absolute;
    z-index: 2;
    top: 50%;
    left: var(--sequence-copy-gutter);
    width: min(100%, calc(var(--sequence-view-height, 100svh) * 1366 / 712));
    aspect-ratio: 1366 / 712;
    transform: translateY(-50%);
    pointer-events: none;
  }
  .virtual-card-sequence .sequence-copy-layer .source-title,
  .virtual-card-sequence .sequence-copy-layer .step-title-1,
  .virtual-card-sequence .sequence-copy-layer .step-title-2,
  .virtual-card-sequence .sequence-copy-layer .step-title-3 {
    /* Use the page gutter while retaining the scene's typographic scale. */
    left: 0;
  }
}
@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
  .virtual-card-sequence .scroll-sequence {
    height: 100svh;
  }
  .virtual-card-sequence .scroll-sticky::before {
    animation: none;
    transform: none;
  }
}
