@media (prefers-reduced-motion:no-preference) {
  :root {
    --entrance-ease: cubic-bezier(.32,.30,.42,1);
    --entrance-duration: 3.1s;
    --entrance-opacity: .35;
    --content-entrance: content-arrives var(--entrance-duration) var(--entrance-ease) both;
  }
  @keyframes content-arrives {
    from { opacity: var(--entrance-opacity); translate: 0 clamp(1rem, 2.8vw, 2.4rem); }
    to { opacity: 1; translate: 0 0; }
  }
  @keyframes edge-arrives {
    from { border-color: color-mix(in srgb, var(--edge-color, var(--rule)) 35%, transparent); }
  }
  .has-entrance-edge { position: relative; }
  .entrance-edge {
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    pointer-events: none;
  }
  .workshop-program article > .entrance-edge { inset: 0 0 auto; }
  .workshop-program article.reveal-edge { --edge-color: #ffffff60; }
  .reveal-edge { animation: edge-arrives var(--entrance-duration) var(--entrance-ease) both; }
  .reveal-text, .reveal-image { animation: var(--content-entrance); }
  :is(.reveal-text, .reveal-image):focus-within { animation: none; }
  @supports (animation-timeline: view()) {
    @keyframes drift { from { transform: translateY(.65rem); } to { transform: translateY(-.65rem); } }
    .portfolio > :nth-child(even) {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    .portfolio > :nth-child(even).reveal-image {
      animation: var(--content-entrance), drift linear both;
      animation-timeline: auto, view();
      animation-range: normal, entry 0% exit 100%;
    }
  }
}
