@import url("way-out.css");
@import url("get-creative.css");
@import url("film-glimpse.css");
@import url("week-vibes.css");

/* Share one fluid 3:2 artwork frame across all four project links. */
.mm-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(16px, 2vw, 32px);
}
@media (max-width: 740px) {
  .mm-project-grid { grid-template-columns: 1fr; }
}
.mm-project-cover { display: block; min-width: 0; color: inherit; text-decoration: none; }
.mm-project-cover:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
.mm-frame {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 2;
}
.mm-frame *, .mm-frame::after { box-sizing: border-box; pointer-events: none; }
.mm-frame img { display: block; max-width: none; }
.mm-cover-title { display: block; margin-top: .65em; font-weight: 600; }
.mm-creative { background: #f4f1e9; }
.mm-creative::after {
  content: ""; position: absolute; inset: 0; opacity: .1;
  background: url("assets/paper.webp") center / 290px; mix-blend-mode: multiply;
}
.mm-collage {
  position: absolute; left: 12%; top: 50%; width: 76%; aspect-ratio: 1.493;
  transform: translateY(-50%);
}
/* Get Creative at rest. The motion is in get-creative.js. */
.mm-disk, .mm-cutout, .mm-ring, .mm-slash { position: absolute; }
.mm-disk { border-radius: 50%; aspect-ratio: 1; background-size: cover; }
.mm-disk-red {
  width: 63%; left: 18%; top: 3%;
  background: #e41a40 url("assets/red-paper.webp") center/cover;
  transform-origin: 50% 32%;
  transform: scale(.8);
}
.mm-disk-blue { width: 29%; top: 37%; left: 69%; background-image: url("assets/blue-ink.webp"); }
.mm-disk-gold { width: 24%; left: 6%; top: 62%; background-image: url("assets/gold-ink.webp"); }
.mm-disk-small { width: 5.6%; left: 85%; top: 16%; background: #1d1e1b; }
.mm-ring { width: 94%; height: 43%; left: 2%; top: 34%; border-radius: 50%; border: 1.5px solid #1d1e1b; transform: rotate(-27deg); }
.mm-slash { top: 83%; left: 74%; width: 12%; height: 4%; background-image: url("assets/red-ink.webp"); background-size: 160%; transform: rotate(-27deg); }
.mm-cutout { height: auto; user-select: none; pointer-events: none; }
.mm-face { width: 41%; left: 33%; bottom: 1%; transform: rotate(-6deg); }
.mm-crown { width: 28%; left: 28%; top: 14%; transform: rotate(-9deg); transform-origin: 22% 90%; }

/* Grill & Chill: see film-glimpse.css and film-glimpse.js. */

/* Lifelong Learning: see film-glimpse.css and film-glimpse.js. */

@media (prefers-reduced-motion: reduce) {
  .mm-frame *, .mm-frame *::before, .mm-frame *::after {
    transition: none !important;
    animation: none !important;
  }
}
