@media (prefers-reduced-motion: no-preference) {
  [data-motion-entry="copy"] {
    animation: ed-copy-in .68s cubic-bezier(.18, .72, .24, 1);
  }

  [data-motion-entry="media"] {
    animation: ed-media-in 1s cubic-bezier(.18, .72, .24, 1);
  }

  .tab-inactive [data-motion-entry] { animation-play-state: paused; }

  html:not(.motion-paused) :where(
    .mag-cover-media > a,
    .home-project > a,
    .home-service > a,
    .portfolio-cover,
    .portfolio-card-link
  ) img {
    filter: saturate(var(--ed-photo-saturation, 1)) contrast(var(--ed-photo-contrast, 1));
    transition: filter .42s ease, transform .48s ease;
  }

  :where(.mag-cover-media > a, .home-project > a, .home-service > a, .portfolio-cover, .portfolio-card-link):focus-visible {
    --ed-photo-saturation: 1.14;
    --ed-photo-contrast: 1.045;
  }

  @media (hover: hover) {
    :where(.mag-cover-media > a, .home-project > a, .home-service > a, .portfolio-cover, .portfolio-card-link):hover {
      --ed-photo-saturation: 1.14;
      --ed-photo-contrast: 1.045;
    }
  }
}

.motion-paused .mag-cover-media > a img {
  transform: none;
  transition: none;
}

@keyframes ed-copy-in {
  from { translate: 0 .8rem; }
  to { translate: none; }
}

@keyframes ed-media-in {
  from {
    translate: 0 .55rem;
    scale: .973;
  }
  to {
    translate: none;
    scale: none;
  }
}
