/* A thin editorial rule completes each chapter as it enters the viewport. */
@media (prefers-reduced-motion: no-preference) {
  .assembly-pending { opacity: 0 !important; }
  .cinematic-hero .hero-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: min(150px, 32vw);
    height: 2px;
    background: #ff555d;
    transform-origin: left center;
    animation: chapter-rule .55s cubic-bezier(.16, 1, .3, 1) both;
  }
  .cinematic-hero .hero-scene {
    animation: cover-scene .95s cubic-bezier(.16, 1, .3, 1) both;
  }
  .cinematic-hero .hero-content > .intro,
  .cinematic-hero .hero-footer {
    animation: cover-build .72s cubic-bezier(.16, 1, .3, 1) both !important;
  }
  .cinematic-hero .hero-content > :nth-child(1) { animation-delay: 0s !important; }
  .cinematic-hero .hero-content > :nth-child(2) { animation-delay: .08s !important; }
  .cinematic-hero .hero-content > :nth-child(3) { animation-delay: .16s !important; }
  .cinematic-hero .hero-content > :nth-child(4) { animation-delay: .24s !important; }
  .cinematic-hero .hero-content > :nth-child(5) { animation-delay: .32s !important; }
  @keyframes cover-scene {
    from { opacity: .25; transform: scale(1.1); }
    to { opacity: 1; transform: scale(1); }
  }
  @keyframes cover-build {
    from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(46px); }
    to { opacity: 1; clip-path: inset(0 0 0 0); transform: translateY(0); }
  }
  .section-heading.reveal {
    position: relative;
    padding-bottom: 20px;
  }
  .section-heading.reveal::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    opacity: .22;
    transform: scaleX(0);
    transform-origin: left center;
  }
  .section-heading.reveal.assembled::after {
    animation: chapter-rule 520ms cubic-bezier(.16, 1, .3, 1) both;
  }
  .journey-grid > a::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left center;
  }
  .journey-grid > a.assembled::before {
    animation: chapter-rule .5s cubic-bezier(.16, 1, .3, 1) both;
  }
  @keyframes chapter-rule { to { transform: scaleX(1); } }
}
