/* Full-viewport image wall inspired by the supplied Yagi WORKS section. */
.perspective-work {
  position: relative;
  width: calc(100% + 2 * var(--gutter));
  margin: 0 calc(-1 * var(--gutter));
  height: 100svh;
  min-height: 560px;
  padding: 0;
  overflow: clip;
  isolation: isolate;
  background: #080a0e;
  --tile-width: max(260px, 34vw, 26svh);
  --tile-gap: 12px;
  --tile-period: calc(7 * (var(--tile-width) + var(--tile-gap)));
}
.perspective-scroll { position: relative; }
.perspective-scroll.is-perspective-pinned { height: 260svh; }
.is-perspective-pinned .perspective-work { position: sticky; top: 0; height: 100svh; min-height: 0; }
.perspective-mosaic { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mosaic-wall { position: absolute; left: 50%; top: 50%; width: var(--tile-period); transform: translate(-50%, -50%) rotate(-12deg); display: grid; gap: var(--tile-gap); }
.mosaic-row { display: flex; width: max-content; animation: perspective-drift 140s linear infinite; animation-play-state: paused; }
.mosaic-sequence { display: flex; gap: var(--tile-gap); padding-right: var(--tile-gap); flex: none; }
.mosaic-sequence figure { width: var(--tile-width); aspect-ratio: 4 / 3; flex: none; margin: 0; overflow: hidden; background: #17202a; }
.mosaic-sequence img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mosaic-row:nth-child(2) { animation-duration: 155s; animation-delay: -47s; animation-direction: reverse; }
.mosaic-row:nth-child(3) { animation-duration: 165s; animation-delay: -93s; }
.mosaic-row:nth-child(4) { animation-duration: 145s; animation-delay: -24s; animation-direction: reverse; }
.mosaic-row:nth-child(5) { animation-duration: 170s; animation-delay: -62s; }
.mosaic-row:nth-child(6) { animation-duration: 160s; animation-delay: -105s; animation-direction: reverse; }
.perspective-work.is-mosaic-moving .mosaic-row { animation-play-state: running; }
.perspective-work::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(3,6,11,.66), rgba(3,6,11,.46) 65%, rgba(3,6,11,.52)); pointer-events: none; }
.perspective-copy { position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 2; pointer-events: none; }
.perspective-copy h3 { margin: 0; font: 700 clamp(62px,7.5vw,144px)/1.05 CloderSans, Arial, sans-serif; letter-spacing: .01em; white-space: nowrap; }
.perspective-copy p { margin: 32px 0 0; font: 700 clamp(20px,1.65vw,28px)/1.4 CloderSans, Arial, sans-serif; letter-spacing: 0; }
@keyframes perspective-drift { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--tile-period))); } }
@media (max-width: 800px) {
  .perspective-work { --tile-gap: 9px; min-height: 520px; }
  .perspective-copy h3 { font-size: clamp(44px,9.6vw,76px); }
  .perspective-copy p { margin-top: 24px; font-size: 20px; line-height: 1.35; }
}
@media (max-height: 560px) {
  .perspective-work { min-height: 340px; }
  .perspective-copy { top: 50%; }
  .perspective-copy h3 { font-size: clamp(32px,min(7.5vw,17svh),76px); }
  .perspective-copy p { margin-top: 20px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .mosaic-row { animation: none; }
  .perspective-scroll.is-perspective-pinned { height: auto; }
  .is-perspective-pinned .perspective-work { position: relative; }
}
