/* Project listing motion, scoped to the Work page. */
body:has(#work-title) #main-content .work-filter { transition: background-color .3s ease, color .3s ease; }
@media (hover: hover) {
  body:has(#work-title) #main-content .work-filter:not([aria-pressed="true"]):hover { background: #f0f1f1; }
  body:has(#work-title) #main-content .featured-work-card:hover .featured-work-poster { transform: none; }
  body:has(#work-title) #main-content .featured-work-shot:hover .featured-work-poster { transform: scale(1.03); }
}
body:has(#work-title) #main-content .featured-work-poster { transition: transform .4s ease; }
body:has(#work-title) #main-content .featured-work-card:hover .work-reference__action { background: #dd3d06; }
body:has(#work-title) #main-content .work-reference__action:hover,
body:has(#work-title) #main-content .featured-work-card:focus-visible .work-reference__action { background: #080d10; }
body:has(#work-title) #main-content .work-reference__action > span { transition: transform .3s ease; }
/* Match the homepage hero's responsive outer spacing. */
body:has(#work-title) #main-content > .page-section--first { padding-bottom: 72px; }
body:has(#work-title) #main-content > .page-section--first .showcase-head { margin-bottom: 0; }
body:has(#work-title) #main-content > .work-reference-list { padding-top: 0 !important; }
@media (min-width: 993px) {
  body:has(#work-title) #main-content > .page-section--first { padding-bottom: clamp(80px, 9vw, 135px); }
}
@media (min-width: 1181px) {
  body:not(.home-ambient):not(.search-page):has(#work-title) #main-content#main-content > .page-section--first { padding-top: clamp(165px, 10vw, 205px); }
}
body:has(#work-title) #main-content .work-reference__action:hover > span,
body:has(#work-title) #main-content .featured-work-card:focus-visible .work-reference__action > span { transform: translateX(5px); }
@media (prefers-reduced-motion: no-preference) {
  .work-motion-ready #main-content .work-motion-media {
    clip-path: inset(50% round 12px);
    transform: rotate(-15deg);
    transition: clip-path .8s ease, transform .8s ease;
  }
  .work-motion-ready #main-content .work-motion-media.work-motion-visible,
  .work-motion-ready #main-content .featured-work-card:focus-visible .work-motion-media {
    clip-path: inset(0 round 12px);
    transform: rotate(0);
  }
  .work-motion-ready #main-content .work-motion-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .16em .04em; margin: -.16em -.04em; }
  .work-motion-ready #main-content .work-motion-word > span {
    display: inline-block;
    transform: translateY(105%);
    transition: transform .6s cubic-bezier(.22,.61,.36,1);
    transition-delay: calc(var(--word-index) * 80ms);
  }
  .work-motion-ready #main-content .work-motion-visible .work-motion-word > span { transform: translateY(0); }
  .work-motion-ready #main-content .work-motion-detail { opacity: 0; transform: translateY(5px); transition: opacity .3s ease, transform .3s ease; }
  .work-motion-ready #main-content .work-motion-detail.work-motion-visible { opacity: 1; transform: none; }
  @media (min-width: 993px) {
    .work-motion-ready body:has(#work-title) #main-content .work-filters {
      position: sticky;
      top: clamp(85px,5.9vw,113px);
      z-index: 10;
      margin-top: -12px;
      margin-bottom: 24px;
      padding: 12px 0;
      background: #fff;
      transition: top .28s ease;
    }
    .work-motion-ready body:has(#work-title):has(.nav.is-hidden) #main-content .work-filters { top: 0; }
    .work-motion-ready body:has(#work-title) #main-content .work-page-grid { gap: 80px; }
    .work-motion-ready body:has(#work-title) #main-content .featured-work-card { min-height: clamp(550px,50.7vw,974px); }
    .work-motion-ready body:has(#work-title) #main-content .work-page-grid .featured-work-item[data-size] .featured-work-shot {
      position: sticky;
      top: clamp(69px,6.9444vw,133px);
      align-self: start;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  body:has(#work-title) #main-content :is(.work-filter,.featured-work-poster,.work-reference__action,.work-reference__action > span) { transition: none; }
  body:has(#work-title) #main-content .featured-work-poster { transform: none !important; }
}
