/* The projects' pictures as a mosaic (live 2026-10-29, from the picture round; the Legal Desk lessons: full-width
   pictures and 4:5 pairs, thin gaps, no captions, grounds matched to the picture). Built by mosaic.js */
.proj[data-mosaic] > .figs { display: none; }
.mosaic { position: relative; z-index: 4; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
          width: min(1440px, 100%); margin: clamp(80px, 14vh, 128px) auto 0; }
.mosaic figure { margin: 0; overflow: hidden; background: color-mix(in srgb, var(--ink) 8%, var(--paper)); }
.mosaic .full { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.mosaic .half { aspect-ratio: 4 / 5; }
.mosaic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mosaic figure[style*="--fbg"] { background: var(--fbg); }
.mosaic-after { grid-column: 1 / -1; display: flex; gap: 24px; align-items: center; margin-top: 12px; }
.mosaic-after .try { margin: 0; }
/* Bikekey's flow (a plate three windows tall; the prototype held in the middle while the scroll steps it) and perma's live
   plan view on its own plate */
.mosaic .flow { aspect-ratio: auto; height: calc(100vh + 210vh); background: #0C84DB; overflow: visible; }
.mosaic .flow .pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; }
.mosaic .flow iframe { height: min(84vh, 880px); aspect-ratio: 479 / 1022; border: 0; pointer-events: none; }
.mosaic .ptile { background: #DCE5D7; padding: 4.5%; }
.mosaic .ptile iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 10px; box-shadow: 0 30px 70px rgba(47,68,52,.25), 0 6px 16px rgba(47,68,52,.12); }
@media (max-width: 860px) {
  .mosaic { grid-template-columns: 1fr; gap: 8px; margin-top: 48px; margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); width: auto; }
  .mosaic .full:not(.flow):not(.ptile) { aspect-ratio: var(--ar, 4 / 5); }   /* the wide plates turn 4:5 on the phone, cropped where the tile says */
  .mosaic img { object-position: var(--op, 50% 50%); object-fit: var(--fit, cover); }
  .mosaic .ptile, .mosaic-after:has(.try) { display: none; }   /* perma's prototype: desktop only (his call, round 4) */
  .mosaic .flow { height: calc(100svh + 150svh); }
  .mosaic .flow .pin { height: 100svh; }
  .mosaic .flow iframe { height: 74svh; }
  .mosaic-after { padding: 0 var(--pad); }
}
