/* Hallmark · check · built: the project · room: motion.neuf.cc · after Motionin: a dark screening room, one big line, films that play under the pointer · theme: brand (NEUF guidelines v1.0) */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4 · weakest: S, reels and wide films share one grid, so the rows are uneven by nature */
:root { --fg-rgb: 246 245 241; --bg: #0B0C10; --fg: #F6F5F1; --muted: #9A9EAE; --line: rgb(var(--fg-rgb) / .1); --bar: rgb(20 21 27 / .72); --chip: rgb(var(--fg-rgb) / .08); --card: #15161C; color-scheme: dark; }
.mo__hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; padding: clamp(130px, 16vw, 220px) var(--g) clamp(48px, 6vw, 88px); }
.mo__title { font-size: clamp(56px, 9vw, 156px); line-height: .9; letter-spacing: -.05em; font-weight: 600; }
.mo__index { display: grid; gap: 4px; justify-items: end; padding-bottom: 8px; }
.mo__index a { display: flex; align-items: baseline; gap: 10px; font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -.02em; color: var(--muted); transition: color .25s var(--ease); }
.mo__index a sup { font: 500 12px var(--mono); }
.mo__index a:hover { color: var(--fg); }

.mo__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 0 var(--g) 22px; }
.mo__pills { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--chip); }
.mo__pill { min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background .25s var(--ease), color .25s var(--ease); }
.mo__pill:hover { color: var(--fg); }
.mo__pill[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.mo__pill:active { transform: scale(.97); }
.mo__hint { margin: 0; font-size: 14px; color: var(--muted); }

/* the films: each card a small screen, playing while you point at it */
.mo__grid { columns: 3 300px; column-gap: 16px; padding: 0 var(--g) clamp(64px, 8vw, 120px); }
.mo__film { display: block; width: 100%; margin: 0 0 16px; break-inside: avoid; padding: 8px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-align: start; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.mo__screen { position: relative; aspect-ratio: var(--ar); border-radius: 15px; overflow: hidden; background: var(--night); }
.mo__screen img, .mo__screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mo__screen video { opacity: 0; transition: opacity .35s var(--ease); }
.mo__screen.live video { opacity: 1; }
.mo__play { position: absolute; inset: auto 12px 12px auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgb(var(--white-rgb) / .92); color: var(--ink); transition: transform .35s var(--ease); }
.mo__play svg { width: 16px; height: 16px; fill: currentColor; margin-inline-start: 2px; }
.mo__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 8px 6px; }
.mo__meta b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.mo__meta span { font-size: 13px; color: var(--muted); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .mo__film:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / .22), 0 30px 60px -30px rgb(var(--blue-rgb) / .7); }
  .mo__film:hover .mo__play { transform: scale(1.08); }
}
.mo__grid.swap .mo__film { animation: moIn .45s var(--ease) both; animation-delay: calc(min(var(--d, 0), 10) * 35ms); }
@keyframes moIn { from { opacity: 0; translate: 0 16px; } }

@media (max-width: 760px) {
  .mo__hero { grid-template-columns: minmax(0, 1fr); padding-top: 120px; }
  .mo__index { justify-items: start; grid-auto-flow: column; justify-content: start; gap: 18px; }
  .mo__index a { font-size: 18px; }
  .mo__grid { columns: 1; }
}
@media (prefers-reduced-motion: reduce) { .mo__grid.swap .mo__film { animation: none; } }

/* ---------- the shared NEUF scale ---------- */
.mo__hero { padding: var(--top) var(--g) var(--space-head); }
.mo__title { font-size: var(--fs-display); }
/* the films: even rows; wide films take two places, reels one */
.mo__grid { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); grid-auto-flow: dense; gap: var(--gap); padding: 0 var(--g) var(--space-section); }
.mo__film { margin: 0; display: flex; flex-direction: column; border-radius: var(--radius-card); }
.mo__film.wide { grid-column: span 2; }
.mo__screen { flex: 1; aspect-ratio: auto; min-height: clamp(380px, 34vw, 520px); border-radius: var(--radius-plate); }
@media (max-width: 760px) { .mo__film.wide { grid-column: auto; } .mo__screen { min-height: 0; aspect-ratio: var(--ar); } }
