/* /museum — the register. Flat and fast: the landing's tokens, no 3D. Each work enters as 1-bit
   grey and a scan line cooks it into its real colours, the same event as the landing's tail. */
.museum-page { min-height: 100vh; }
/* Solid, so the pictures never scroll up under the readout */
.museum-page .hud { position: sticky; background: var(--bg); border-bottom: 1px solid var(--line); }
.museum-page .hud::before { display: none; }
.m-main { position: relative; z-index: 2; padding: 0 var(--gut) 64px; }

.m-head { padding: clamp(56px, 12vh, 140px) 0 clamp(40px, 8vh, 96px); max-width: 1100px; }
.m-title { margin: 0 0 28px -.04em; font: 900 clamp(56px, 11.5vw, 208px)/.9 var(--sans); letter-spacing: -.055em; text-wrap: balance; }
.m-lede { margin: 0 0 14px; max-width: 46ch; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; }
.m-note { margin: 0; max-width: 62ch; font-size: 11.5px; line-height: 1.6; letter-spacing: .03em; color: var(--muted); }

/* One row per work: the accession record on the left, the picture on the right */
.register { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.work { display: grid; grid-template-columns: minmax(0, .34fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 56px); padding: clamp(28px, 5vh, 56px) 0; border-bottom: 1px solid var(--line); }
.work-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 11px; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.work-no { margin: 0 0 10px; font: 600 clamp(52px, 7.4vw, 128px)/.86 var(--mono); letter-spacing: -.06em; color: var(--ink); font-variant-numeric: tabular-nums; text-transform: none; }
.work-no small { display: block; margin: 0 0 8px; font-size: 11px; font-weight: 400; letter-spacing: .22em; color: var(--accent); }
.work-meta a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; color: var(--ink); font-size: 13px; letter-spacing: .04em; text-transform: none; text-decoration: underline; text-underline-offset: 4px; }
.work-meta a:hover { color: var(--accent); }

.work-shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 6%, var(--bg)); }
.work-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The average: 1-bit grey with a dot screen */
.work-shot .grey { filter: grayscale(1) contrast(2.4) brightness(.72); }
.work-shot::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(color-mix(in srgb, var(--bg) 70%, transparent) 1px, transparent 1.4px) 0 0 / 4px 4px; transition: opacity .2s 1.2s; }
.work-shot .cook { clip-path: inset(0 0 100% 0); transition: clip-path 1.25s var(--io); }
.work-shot .scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); box-shadow: 0 0 18px 2px color-mix(in srgb, var(--accent) 60%, transparent); opacity: 0; }
.work.in .work-shot .cook { clip-path: inset(0); }
.work.in .work-shot::after { opacity: 0; }
.work.in .work-shot .scan { animation: scan 1.25s var(--io) forwards; }
@keyframes scan { 0% { top: 0; opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
a.work-shot:focus-visible { outline-offset: 6px; }

/* Open frames: the skeleton card, outlined, waiting */
.work.vacant .work-no { color: color-mix(in srgb, var(--ink) 30%, var(--bg)); }
.work.vacant .work-shot { border: 1.5px dashed color-mix(in srgb, var(--ink) 30%, transparent); background: transparent; display: grid; place-items: center; }
.work.vacant .work-shot::after { display: none; }
.open { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.m-submit { max-width: 520px; padding: clamp(48px, 10vh, 120px) 0 0; }
.m-submit .sample label { font-size: 11px; }
.m-foot { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: clamp(48px, 10vh, 120px); padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.m-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.m-foot a:hover { color: var(--ink); }

@media (max-width: 899px) {
  .work { grid-template-columns: 1fr; gap: 16px; }
  .work-meta { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
  .work-no { flex-basis: 100%; margin-bottom: 2px; }
  .work-meta a { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .work-shot .cook { clip-path: none; transition: none; }
  .work-shot::after { display: none; }
  .work .scan { display: none; }
}
