/* Identical frames give differently coloured projects a common scale. */
#work .work-grid, .archive-grid .work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.9rem, 3.1vw, 3.7rem) clamp(.9rem, 2vw, 2.3rem);
}
.project-cover { display: block; min-width: 0; align-self: start; }
.project-cover-art { position: relative; display: block; overflow: hidden; isolation: isolate; aspect-ratio: 16 / 9; background: #ded4c4; }
.cover-photo, .case-cover > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-caption { display: flex; align-items: start; justify-content: space-between; gap: .65rem; padding: clamp(.72rem, 1.2vw, 1.15rem) 0 0; }
.project-caption h2, .project-caption h3 {
  margin: 0; color: var(--ink); font: 400 clamp(1.45rem, 2.45vw, 2.8rem)/1.05 var(--serif);
  letter-spacing: -.035em; text-wrap: balance;
}
.project-caption p { margin: .35rem 0 0; color: var(--muted); font: 500 clamp(.75rem, .92vw, .95rem)/1.4 var(--sans); }
.project-action { flex: none; margin-top: .28rem; padding-bottom: .12rem; border-bottom: 1px solid #bcb0a1; color: #4a4138; font: 600 clamp(.66rem, .79vw, .8rem)/1.4 var(--sans); }
.project-action .play-triangle { display: inline-block; margin-right: .32em; font-size: .84em; }
.project-cover:focus-visible { outline: 2px solid #9c3923; outline-offset: 5px; }
.project-cover:focus-visible .project-action { border-bottom-color: #913820; color: #913820; }
.cover-device {
  position: absolute; width: 70%; top: 50%; left: 51.5%; overflow: hidden; background: #17191c;
  padding: 1.02%; border-radius: 2.4% / 3.9%; border: 1px solid #b7b6b0;
  box-shadow: 0 .09rem 0 #b6b5b0, .18rem .4rem .35rem #21242785, .55rem 1.1rem 1.15rem #15191c70;
  transform: translate(-50%, -50%) rotate(-5deg);
}
.cover-device img { width: 100%; display: block; border-radius: 1% / 1.5%; }

.oui-exhibit { position: relative; isolation: isolate; overflow: hidden; perspective: 1100px; aspect-ratio: 16 / 10; background: #262421; }
.oui-exhibit > img { position: absolute; inset: 0; height: 100%; width: 100%; display: block; object-fit: cover; }
.exhibit-print { z-index: 1; transform-origin: 0 50%; }
.oui-feature[data-mode="web"] .exhibit-print { opacity: 0; transform: translateX(-21%) rotateY(-29deg) scale(.99); pointer-events: none; }
.oui-feature[data-mode="print"] .exhibit-web { transform: scale(1.045); }
.oui-caption { flex-wrap: wrap; }
.feature-switch { display: inline-flex; align-items: center; gap: .1rem; padding: .14rem; border: 1px solid #bbafa0; border-radius: 4rem; }
.feature-switch button { border: 0; background: transparent; color: #51493f; border-radius: 4rem; padding: .33rem .72rem; min-height: 30px; cursor: pointer; font: 600 .71rem/1.2 var(--sans); }
.feature-switch button[aria-pressed="true"] { color: #fff8eb; background: #332d26; }
.case-cover { overflow: hidden; margin: 0; aspect-ratio: 16 / 9; }
.page-hero + .case-cover { margin: clamp(1.3rem, 3vw, 3rem) var(--pad) 0; }
.study-body > .case-cover + .crest-compare { margin-top: clamp(2rem, 4vw, 4rem); }
.study-body .crest-card-art:has(.full-material) img.full-material { inset: 0; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: 50% 58%; transform: none; box-shadow: none; }
.study-body .photo-figure > img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.study-body .photo-figure.wide > img { aspect-ratio: auto; }
.study-body .photo-figure.screen > img { object-position: top; }
.study-body .photo-figure.landscape > img { aspect-ratio: 2.05; }
.gallery-subhead { font: 400 clamp(1.9rem,3.2vw,3.2rem)/1.04 var(--serif); letter-spacing: -.04em; margin: clamp(2.2rem,4vw,4.5rem) 0 1.1rem; }
.poster-pair { max-width: 820px; margin-inline: auto; }
.poster-pair .photo-figure > img { aspect-ratio: 2 / 3; }
@media (prefers-reduced-motion: no-preference) {
  .exhibit-print { transition: transform .9s var(--ease), opacity .85s ease-in-out; }
  .exhibit-web { transition: transform 1.1s var(--ease); }
}
@media (hover: hover) {
  .project-cover:hover .project-action { color: #913820; border-bottom-color: currentColor; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cover-photo { transition: transform .65s var(--ease); }
  .project-cover:hover .cover-photo { transform: scale(1.025); }
}
@media (max-width: 640px) {
  #work .work-grid, .archive-grid .work-grid { grid-template-columns: minmax(0,1fr); }
  .project-caption h2, .project-caption h3 { font-size: clamp(1.5rem,5.8vw,2.2rem); }
  .feature-switch button { min-height: 35px; }
  .oui-caption > div:first-child { gap: .08rem .5rem; }
}
@media (max-width: 390px) {
  .oui-caption > div:first-child { flex-direction: column; align-items: start; }
  .project-caption { gap: .4rem; }
  .project-action { font-size: .65rem; }
}

