/* Each element is readable before observation and in reduced-motion mode. */
.corporate-modules .site-header.edition-scrolled {
  background-color: #f3f3ef;
  border-bottom-color: #d5d3ca;
  box-shadow: 0 3px 14px rgb(32 39 34 / .08);
}

/* The static final value keeps its width and remains available to screen readers. */
.edition-count { position: relative; display: inline-block; font-variant-numeric: tabular-nums; }
.edition-count-value { opacity: 0; }
.edition-count-frame { position: absolute; inset: 0; text-align: end; }

@media (prefers-reduced-motion: no-preference) {
  .corporate-modules .site-header {
    transition: background-color .26s ease, border-color .26s ease, box-shadow .26s ease;
  }

  :is(.archive-filters, .journal-filters) button,
  .studio-scenes label, .principal-nav a {
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  }

  .archive-grid [data-case-kind], .journal-albums [data-album] {
    transition: opacity .28s ease-out, translate .28s ease-out;
  }

  :is(.archive-grid, .journal-albums) .edition-filter-enter {
    opacity: .5;
    translate: 0 6px;
    transition: none;
  }

  [data-edition-motion].edition-in-view {
    animation-duration: 640ms;
    animation-timing-function: cubic-bezier(.2,.7,.2,1);
  }

  [data-edition-motion="rise"].edition-in-view { animation-name: edition-rise; }
  [data-edition-motion="image"].edition-in-view { animation-name: edition-open; }
  [data-edition-motion="line"].edition-in-view { animation-name: edition-trace; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.studio-archive .studio-print, .principal-work-image, .archive-grid .archive-link, .album-photo) {
    transition: translate .24s ease-out, box-shadow .24s ease-out;
  }
  :is(.studio-archive .studio-print, .principal-work-image, .archive-grid .archive-link, .album-photo):is(:hover, :focus-visible) {
    translate: 0 -3px;
    box-shadow: 0 8px 18px -10px rgb(30 36 31 / .32);
  }
}

@keyframes edition-rise {
  from { opacity: .66; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes edition-open {
  from { clip-path: inset(3% 4% 3% 0); }
  to { clip-path: inset(0); }
}

@keyframes edition-trace {
  from { clip-path: inset(0 10% 0 0); opacity: .75; }
  to { clip-path: inset(0); opacity: 1; }
}
