* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --ink: #f3f0ea; --dim: #8d8a83; --gap: clamp(14px, 2.2vw, 32px); }
html { background: #000; color: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font: 400 13px/1.5 "Inter Tight", system-ui, sans-serif; min-height: 100svh; animation: arrive .9s ease both; }
@keyframes arrive { from { opacity: 0; } }
a { color: inherit; text-decoration: none; }

header { display: flex; align-items: center; gap: 14px; padding: 18px var(--gap) clamp(28px, 5vw, 64px); }
.home img { display: block; width: 44px; height: auto; transition: transform .4s ease; }
.home:hover img, .home:focus-visible img { transform: scale(1.08); }
h1 { min-width: 0; font: 400 clamp(22px, 2.4vw, 32px)/1.1 "Instrument Serif", Georgia, serif; letter-spacing: -.005em; }
.next-top { flex: none; margin-left: auto; padding: 8px 0; font: 400 clamp(17px, 1.7vw, 22px)/1.1 "Instrument Serif", Georgia, serif; }
.next-top .word { display: none; }
.next-top span:last-child { display: inline-block; transition: transform .35s ease; }
.next-top:hover span:last-child, .next-top:focus-visible span:last-child { transform: translateX(5px); }
.next-top:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 3px; }

main { padding: 0 var(--gap); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.cols { column-count: 3; column-gap: var(--gap); }
.cols .work { break-inside: avoid; margin-bottom: var(--gap); }
.one { display: block; padding: 0; }

.work { display: block; width: 100%; }
.open { display: block; width: 100%; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: zoom-in; }
.open:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.art { display: block; position: relative; background: #0b0b0b; overflow: hidden; }
.art img { display: block; width: 100%; height: auto; opacity: 0; transition: opacity .6s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.art img.in { opacity: 1; }
.work:hover .art img { transform: scale(1.015); }
.art .blank { display: grid; place-items: center; aspect-ratio: 1; padding: 20px; color: var(--dim); text-align: center; }
.cap { display: flex; align-items: center; gap: 10px; min-height: 42px; padding-top: 8px; font-size: 12px; }
.cap .t { flex: 1; min-width: 0; color: var(--dim); opacity: 0; transition: opacity .25s ease; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work:hover .t, .work:focus-within .t { opacity: 1; }
.cap .p { flex: none; color: var(--ink); }
.bid { flex: none; padding: 8px 14px; font-size: 13px; background: var(--ink); color: #000; font-weight: 500; border-radius: 2px; transition: opacity .16s ease; }
.bid:hover, .bid:focus-visible { opacity: .8; outline: none; }
.cap .p.live { color: #ff6a4d; }

.one .art { background: #000; }
.one .art img { width: auto; max-width: 100%; max-height: calc(100svh - 204px); margin: 0 auto; }
.one .bid { padding: 11px 22px; font-size: 14px; }
.one .p { font-size: 14px; }
.one .cap { padding: 10px var(--gap) 0; }
.one .t { opacity: 1; color: var(--ink); }

footer { display: flex; justify-content: flex-end; padding: clamp(48px, 8vw, 110px) var(--gap) 28px; }
#next { font: 400 clamp(22px, 2.4vw, 32px)/1.1 "Instrument Serif", Georgia, serif; }
#next span { display: inline-block; transition: transform .35s ease; }
#next:hover span, #next:focus-visible span { transform: translateX(6px); }
.note { padding: 0 var(--gap); color: var(--dim); }
.note a { text-decoration: underline; }

dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; background: #000; color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
dialog::backdrop { background: #000; }
dialog[open] { animation: arrive .35s ease both; }
.stage { display: grid; place-items: center; height: calc(100dvh - 92px); padding: 16px 16px 0; }
.stage img, .stage video { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; min-height: 0; }
.stage img, .stage video { grid-area: 1 / 1; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; min-height: 92px; padding: 12px clamp(16px, 2.2vw, 32px); }
.bar h2 { font: 400 clamp(20px, 2vw, 26px)/1.15 "Instrument Serif", Georgia, serif; }
.bar .meta { color: var(--dim); font-size: 12px; margin-top: 2px; }
.act { display: flex; align-items: center; gap: 16px; }
.cta { display: inline-block; padding: 11px 18px; background: var(--ink); color: #000; font-weight: 500; border-radius: 2px; transition: opacity .16s ease; }
.cta:hover, .cta:focus-visible { opacity: .82; }
.cta.quiet { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px #4a4843; }
.about { max-width: 62ch; padding: 8px clamp(16px, 2.2vw, 32px) 72px; color: #bdbab3; font-size: 15px; line-height: 1.65; white-space: pre-line; }
.ctl { position: fixed; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: var(--ink); font: 400 22px/1 "Inter Tight", system-ui, sans-serif; cursor: pointer; opacity: .65; mix-blend-mode: difference; }
.ctl:hover, .ctl:focus-visible { opacity: 1; outline: none; }
.close { top: 8px; right: 8px; }
.prev { top: calc(50dvh - 68px); left: 4px; }
.next { top: calc(50dvh - 68px); right: 4px; }

@media (max-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cols { column-count: 2; } }
@media (max-width: 720px) { .next-top .name { display: none; } .next-top .word { display: inline; } }
@media (max-width: 560px) {
  .cap { gap: 8px; }
  .cap .t { display: none; }
  .cap .p { flex: 1; }
  .bid { padding: 10px 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage { height: calc(100dvh - 128px); padding: 56px 0 0; }
  .bar { min-height: 128px; }
  .act { width: 100%; }
  .prev, .next { display: none; }
  .cta { flex: 1; text-align: center; padding: 13px 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
