/*
 * Scroll layer
 * Die Seite hält das Video über die gesamte Journey im Vollbild. Jede Szene
 * liefert eine eigene Scrollstrecke für die nacheinander eingeblendeten Aufgaben.
 */

.journey {
  isolation: isolate;
}

.scroll-scene {
  z-index: 1;
}

.scroll-scene::before {
  content: "";
  position: absolute;
  inset: 12% 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(102, 255, 159, 0.08), transparent 54%);
  transition: opacity 700ms ease;
}

.scroll-scene.is-active::before {
  opacity: 1;
}

.scroll-scene:not(.is-active) .scene-panel {
  pointer-events: none;
}

@supports (animation-timeline: view()) {
  .task-panel {
    animation: panel-focus linear both;
    animation-timeline: view();
    animation-range: entry 12% cover 42%;
  }

  @keyframes panel-focus {
    from {
      opacity: 0;
      transform: translateY(60px) scale(0.96);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}
