/* My own products: big visual rows (Pocket in a MacBook, Motion Index as live loops), then the smaller tiles. */
.prod { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 80px); align-items: center; padding: clamp(30px, 5vw, 60px) 0; border-top: 1px solid var(--line); }
.prod:first-of-type { border-top: 0; padding-top: 0; }
.prod.flip .prod-copy { order: -1; }
.prod h3 { font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -.03em; line-height: 1.05; font-weight: 650; margin-bottom: 16px; }
.prod-copy > p:not(.case-meta) { color: var(--muted); text-wrap: pretty; }
.prod .did { margin: 20px 0 24px; }

/* Pocket: the screen recording plays inside the MacBook from the reel; the screen area of macbook.webp is transparent */
.pocket-mac { position: relative;
  /* the photo's square glow would show hard edges on the page: fade all four sides */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); mask-composite: intersect; }
.mac-screen { position: absolute; left: 7.03%; top: 13.93%; width: 85.94%; height: 60.78%; overflow: hidden; background: #000; }
.mac-screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mac-body { position: relative; width: 100%; height: auto; pointer-events: none; }
.prod-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 26px; }
.prod-shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line2); background: #111; }

/* Motion Index: four styles looping in a 2x2 grid */
.motion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.motion-grid figure { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); background: #111; aspect-ratio: 1088 / 800;
  transition: transform .5s var(--spring), border-color .3s; }
.motion-grid figure:nth-child(2) { transform: translateY(18px); }
.motion-grid figure:nth-child(4) { transform: translateY(18px); }
.motion-grid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.motion-grid figcaption { position: absolute; left: 10px; bottom: 10px; font: 500 11px "Mono", monospace; background: rgba(10,10,10,.72); backdrop-filter: blur(8px); padding: 5px 9px; border-radius: 6px; }
.motion-grid figure:hover { border-color: rgba(255,98,0,.5); }
.lab-more { margin: clamp(40px, 6vw, 70px) 0 18px; }

@media (max-width: 960px) {
  .prod { grid-template-columns: 1fr; }
  .prod.flip .prod-copy { order: 0; }
  .motion-grid figure:nth-child(2), .motion-grid figure:nth-child(4) { transform: none; }
}

/* Games: gameplay loops, the vertical DUSTRUNNER clip runs the full height on the left */
.games { margin-top: clamp(40px, 6vw, 70px); padding-top: clamp(30px, 5vw, 60px); border-top: 1px solid var(--line); }
.games-head { margin-bottom: 26px; }
.games-head h3 { margin-top: 12px; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.03em; line-height: 1.05; font-weight: 650; }
.games-grid { display: grid; grid-template-columns: .62fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.game { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: border-color .3s, transform .45s var(--spring); }
.game.tall { grid-row: span 2; }
.game-shot { position: relative; aspect-ratio: 16 / 10; background: #111; overflow: hidden; }
.game.tall .game-shot { aspect-ratio: auto; flex: 1; min-height: 360px; }
.game-shot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-copy { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 18px 18px; }
.game-copy b { font-size: 19px; letter-spacing: -.015em; }
.game-copy span { grid-column: 1; color: var(--muted); font-size: 15px; line-height: 1.5; }
.game-copy i { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 600 14px "Inter", sans-serif; font-style: normal; padding: 9px 16px; border-radius: 999px; background: var(--accent); color: #0a0a0a; white-space: nowrap; }
.game:hover { border-color: rgba(255,98,0,.45); transform: translateY(-4px); }
@media (min-width: 961px) { .games-grid .game:not(.tall) .game-shot { aspect-ratio: 2 / 1; } }
@media (max-width: 960px) {
  .games-grid { grid-template-columns: 1fr; }
  .game.tall { grid-row: auto; }
  .game.tall .game-shot { aspect-ratio: 4 / 5; flex: none; min-height: 0; }
}
