/* The Work page alone loads this stylesheet. */
.productions {
  --ease: cubic-bezier(.19, 1, .22, 1);
  gap: clamp(46px, 6vw, 104px) clamp(26px, 4vw, 72px);
  align-items: start;
}
.production { min-width: 0; scroll-margin-top: 22px; }
.production figure { margin: 0; }
.project-shot { overflow: hidden; isolation: isolate; }
.project-shot img { width: 100%; height: auto; }
.production-caption {
  position: relative;
  display: grid;
  justify-content: stretch;
  align-content: start;
  gap: 7px;
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding: 17px 0 0;
  text-align: left;
}
.production-caption::before {
  content: ""; position: absolute; inset: -1px 0 auto;
  height: 1px; background: var(--grey); transform: scaleX(.09); transform-origin: left;
}
.production-caption h2 {
  margin: 0; font-size: clamp(25px, 2.35vw, 42px);
  font-weight: 500; line-height: 1.12; letter-spacing: -.045em; color: var(--white);
}
.production-caption .role { line-height: 1.5; }
.production-caption :is(h2,p) { overflow: clip; padding-bottom: .045em; }
.production-caption :is(h2,p) > span { display: block; }
.production-caption .credit-link {
  display: inline-block; width: fit-content; padding-block: 8px; font-size: 14px; line-height: 1.5;
}
.placement-index { padding-top: 22px; }
.placement-index h3 { margin: 0 0 18px; font-size: clamp(20px, 1.8vw, 30px); font-weight: 500; }
.credit-list > div { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr) minmax(0,1.4fr); }
@media (min-width: 800px) {
  .production:nth-child(3n + 1) { grid-column: 1 / -1; }
  .production:nth-child(3n + 1) figure {
    display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, .9fr);
    gap: clamp(30px, 4.3vw, 85px); align-items: center;
  }
  .production:nth-child(3n + 1) h2 { font-size: clamp(35px, 3.8vw, 66px); max-width: 14ch; }
  .production:nth-child(3n + 1) .production-caption { margin: 0; padding-block: 22px; gap: 12px; }
  .production:nth-child(4) figure { grid-template-columns: minmax(0,.9fr) minmax(0,1.85fr); }
  .production:nth-child(4) .project-shot { grid-column: 2; grid-row: 1; }
  .production:nth-child(4) .production-caption { grid-column: 1; grid-row: 1; }
  .production:nth-child(3n) { margin-top: clamp(25px, 3.7vw, 62px); }
}
@media (max-width: 799px) {
  .productions { grid-template-columns: 1fr; }
  .credit-list > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .production .project-shot img { transition: transform 1s var(--ease); }
  .production:hover .project-shot img {
    transform: translate3d(var(--pan-x, 0px), var(--pan-y, 0px), 0) scale(1.055);
  }
  .production-caption::before { transition: transform .8s var(--ease); }
  .production:hover .production-caption::before { transform: scaleX(1); }
  .production-caption h2 { transition: transform .75s var(--ease); }
  .production:hover h2 { transform: translateX(4px); }
}
@media (prefers-reduced-motion: no-preference) {
  .is-entering .project-shot { animation: frame-open .86s var(--ease) both; }
  .is-entering .meta span { animation: caption-in .62s var(--ease) both; }
  .is-entering h2 span { animation: caption-in .82s .07s var(--ease) both; }
  .is-entering .role span { animation: caption-in .79s .15s var(--ease) both; }
  @keyframes frame-open { from { clip-path: inset(0 0 8% 0); } to { clip-path: inset(0); } }
  @keyframes caption-in { from { transform: translateY(90%); opacity: .1; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .production .project-shot img { transform: none; transition: none; }
}
