/* Hallmark · check · built: the project · room: design.neuf.cc · after Godly and Recent: a quiet sidebar, the work as a wall · theme: brand (NEUF guidelines v1.0) */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: H, the hero is the wall itself, on purpose */
:root { --bg: var(--paper); --card: #ECEBE5; }
.dz__wrap { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); padding: 100px var(--g) 64px; }
.dz__side { position: sticky; top: 100px; align-self: start; display: grid; gap: 18px; }
.dz__title { font-size: clamp(52px, 5.4vw, 88px); line-height: .9; letter-spacing: -.045em; font-weight: 600; }
.dz__line { margin: 0; color: var(--muted); max-width: 26ch; }
.dz__cats { display: grid; gap: 2px; margin-top: 10px; }
.dz__cat { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 12px; font-weight: 500; text-align: start; transition: background .25s var(--ease), color .25s var(--ease); }
.dz__cat sup { font: 500 12px var(--mono); color: var(--muted); }
.dz__cat:hover { background: var(--chip); }
.dz__cat[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.dz__cat[aria-pressed="true"] sup { color: rgb(var(--white-rgb) / .6); }
.dz__count { margin: 0; font-size: 14px; color: var(--muted); }

/* the wall: real pieces in their own proportions, a gap you can feel */
.dz__wall { columns: 3 260px; column-gap: clamp(12px, 1.3vw, 20px); }
.dz__tile { position: relative; display: block; width: 100%; margin: 0 0 clamp(12px, 1.3vw, 20px); break-inside: avoid; border-radius: 16px; overflow: hidden; background: var(--card); aspect-ratio: var(--ar); cursor: zoom-in; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.dz__tile img { width: 100%; height: 100%; object-fit: cover; }
html.js .dz__tile span { position: absolute; inset: auto 10px 10px 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 999px; background: rgb(var(--white-rgb) / .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); font-size: 14px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .35s var(--ease); }
.dz__tile span i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: var(--white); font-style: normal; }
.dz__tile span svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .dz__tile:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgb(var(--ink-rgb) / .45); }
  .dz__tile:hover span, .dz__tile:focus-visible span { opacity: 1; transform: none; }
}
@media (hover: none) { .dz__tile span { opacity: 1; transform: none; font-size: 13px; } }
.dz__wall.swap .dz__tile { animation: dzIn .45s var(--ease) both; animation-delay: calc(min(var(--d, 0), 12) * 25ms); }
@keyframes dzIn { from { opacity: 0; translate: 0 14px; } }

@media (max-width: 860px) {
  .dz__wrap { grid-template-columns: minmax(0, 1fr); padding-top: 92px; }
  .dz__side { position: static; }
  .dz__cats { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--g) * -1); padding-inline: var(--g); gap: 6px; }
  .dz__cats::-webkit-scrollbar { display: none; }
  .dz__cat { flex: none; border-radius: 999px; background: var(--chip); }
  .dz__wall { columns: 2 140px; }
}
@media (prefers-reduced-motion: reduce) { .dz__wall.swap .dz__tile { animation: none; } }

/* ---------- the shared NEUF scale ---------- */
.dz__wrap { padding: var(--top) var(--g) var(--space-section); gap: calc(var(--gap) * 2.4); }
.dz__side { top: var(--top); }
.dz__title { font-size: var(--fs-display); }
/* the wall: even rows, wide pieces take two places */
.dz__wall { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); grid-auto-rows: clamp(220px, 21vw, 300px); grid-auto-flow: dense; gap: var(--gap); }
.dz__tile { margin: 0; aspect-ratio: auto; height: 100%; border-radius: var(--radius-card); }
.dz__tile.wide { grid-column: span 2; }
.dz__tile.pano img { object-fit: contain; }
@media (max-width: 860px) { .dz__wall { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 46vw; } }
