/* A small project visual, the destination title and one generous link target. */
.next:has(.next-preview) { gap: 28px; }
.next-copy { flex: 1; min-width: 0; }
.next-preview {
  position: relative; width: 240px; height: 168px; flex: none;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0, oklch(from var(--accent) l c h / .12), transparent 75%), var(--bg-2);
  pointer-events: none;
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}
.next-preview-stage { position: absolute; width: 300px; height: 210px; left: 0; top: 0; transform: scale(.8); transform-origin: top left; }
.next-preview .viz-mcp, .next-preview .viz-ngl { padding: 6px; }
.next-preview svg { display: block; }
.next-preview .kepler-preview { width: 480px; height: 336px; min-height: 0; transform: scale(.625); transform-origin: top left; }
.next-sgr { height: 100%; display: flex; align-items: center; justify-content: center; gap: 18px; }
.next-sgr .iphone-frame { width: 76px; border-width: 2px; border-radius: 13px; padding: 14px 3px 9px; animation: next-phone-float 6s ease-in-out infinite paused; }
.next-sgr .iphone-frame:nth-child(2) { animation-delay: -3s; }
.next-sgr .iphone-frame::before { height: 8px; border-radius: 0 0 5px 5px; }
.next-sgr .iphone-frame::after { bottom: 3px; height: 2px; }
.next-sgr .iphone-frame img { border-radius: 2px 2px 6px 6px; }
.next-sgr .iphone-status { inset: 5px 6px auto; font-size: 4px; }
.next-preview.is-playing .iphone-frame { animation-play-state: running; }
.next:has(.next-preview) > .arw { flex: none; }
@keyframes next-phone-float { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(4px); } }
@media (max-width: 640px) {
  .next:has(.next-preview) { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 22px; gap: 18px; }
  .next-preview { grid-column: 1 / -1; justify-self: center; max-width: 100%; }
  .next-copy { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .next-sgr .iphone-frame { animation: none; }
}
