/* The unobscured viewport begins below the floating navigation. */
@keyframes portfolio-pass {
  entry 0% { opacity: .10; translate: 0 var(--arrival); scale: var(--near-scale); }
  entry 65% { opacity: 1; translate: 0 0; scale: 1; }
  exit 30% { opacity: 1; translate: 0 0; scale: 1; }
  exit 100% { opacity: .12; translate: 0 var(--departure); scale: var(--near-scale); }
}
@keyframes portfolio-hero-exit {
  exit 25% { opacity: 1; translate: 0 0; }
  exit 100% { opacity: .18; translate: 0 -20px; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  [data-scroll-scene] {
    --arrival: 23px;
    --departure: -14px;
    --near-scale: 1;
  }
  [data-scroll-scene="art"] {
    --arrival: 34px;
    --departure: -19px;
    --near-scale: .972;
  }
  [data-scroll-scene="art"]:nth-child(even) { --arrival: 45px; --near-scale: .955; }
  [data-scroll-scene="rail"] { --arrival: 17px; --departure: -9px; }
  @supports (animation-timeline: view()) and (animation-range: entry 0% exit 100%) {
    [data-scroll-scene] {
      animation: portfolio-pass linear both;
      animation-timeline: view(block var(--nav-occlusion, 68px) 0px);
    }
    [data-scroll-scene="hero"] { animation-name: portfolio-hero-exit; }
    [data-scroll-scene]:focus-within { opacity: 1 !important; scale: 1 !important; translate: none !important; }
  }
}
@media(max-width:640px) {
  [data-scroll-scene="art"],[data-scroll-scene="art"]:nth-child(even) {
    --arrival: 16px; --departure: -9px; --near-scale: .985;
  }
}

.works{overflow:clip}
