@font-face {
  font-family: "Ubuntu Sans";
  src: url("assets/UbuntuSans.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --night: #15121c;
  --ink: #1c1825;
  --surface: #211b2c;
  --paper: #f4eff7;
  --muted: #c6bbcf;
  --lavender: #ae98e8;
  --accent: #e2fb72;
  --line: #453b50;
  --gutter: clamp(20px, 4vw, 58px);
  font-family: "Ubuntu Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--paper);
  background: var(--night);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 290px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button[disabled] { cursor: default; opacity: .46; }
[hidden] { display: none !important; }
p, h1, h2, h3 { margin: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.footer span { color: var(--lavender); }
.line-button, .icon-button, .accent-button {
  background: transparent; border: 1px solid var(--line); padding: 10px 15px; border-radius: 0;
  display: inline-flex; gap: 8px; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 650; min-height: 42px;
}
.line-button:hover, .icon-button:hover { border-color: var(--lavender); background: #ad97ef14; }
.demo-button { position: absolute; z-index: 4; top: 16px; right: var(--gutter); background: #211728dc; }
.status-point { width: .44rem; height: .44rem; border-radius: 50%; background: var(--accent); }

.exhibition {
  height: clamp(530px, calc(100svh - 114px), 880px);
  position: relative; isolation: isolate; overflow: hidden;
  background: #1b1524;
}
.exhibition.preopening { height: max(530px, calc(100svh - 42px)); }
.scene {
  position: absolute; inset: 0; touch-action: pan-y; overflow: hidden; overscroll-behavior: contain;
  user-select: none; cursor: grab; outline-offset: -5px;
}
.scene.is-dragging, .scene.is-dragging .work-tile { cursor: grabbing; }
.stage-light {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 44%, #46325a 0%, #2f223d 37%, #211827 64%, #1a1422 90%);
}
.orbit-lines { position: absolute; inset: 0; color: #b19dce52; pointer-events: none; }
.orbit-line { position: absolute; width: 73%; height: 19%; left: 13.5%; border: 1px solid; border-radius: 50%; }
.orbit-line-upper { top: 26.5%; transform: rotate(-6deg); }
.orbit-line-lower { top: 55%; transform: rotate(-9deg); }
.orbit-line-slope { top: 44%; width: 80%; height: 28%; left: 10%; transform: rotate(13deg); opacity: .47; }
.orbit-line-diagonal { top: 45%; width: 67%; height: 48%; left: 16.5%; transform: rotate(-18deg); opacity: .29; }
.orbit-axis { position: absolute; top: 4%; bottom: 4%; left: 50%; border-left: 1px solid #ae98e840; }
.spine {
  position: absolute; left: 50%; top: 50%; z-index: 500;
  color: #d6b66c; font-size: clamp(104px, 15.6vh, 174px); line-height: .85;
  font-weight: 900; letter-spacing: -.105em; opacity: .94; user-select: none; white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-90deg) scaleX(1.05); pointer-events: none;
  text-shadow: 0 0 32px #bc8e3d49;
}
.orbit-works { position: absolute; inset: 0; }
.work-tile { background: transparent; border: 0; padding: 0; text-align: left; }
.orbit-tile {
  position: absolute; top: 0; left: 0; transform-origin: center; width: clamp(158px, 25vw, 385px);
  transition: opacity .3s ease; will-change: transform; outline-offset: 5px;
}
.countdown-tile {
  display: grid; place-items: center; aspect-ratio: 1.55;
  font-size: clamp(2rem, 4.4vw, 4.25rem); font-weight: 840; line-height: 1;
  letter-spacing: -.075em; white-space: nowrap; pointer-events: none;
  border: 1px solid #dfcaf479; box-shadow: 0 20px 46px #100a1bb0;
  background: #bdabe9; color: #20172d;
}
.countdown-tile.countdown-clock { background: var(--accent); color: #242807; font-variant-numeric: tabular-nums; }
.countdown-tile.countdown-wait { background: #322440; color: var(--paper); }
.orbit-tile .work-surface { border: 1px solid #dfcaf479; box-shadow: 0 20px 46px #100a1bb0; }
.orbit-tile:hover .work-surface, .orbit-tile:focus-visible .work-surface { border-color: var(--accent); }
.orbit-tile .work-caption {
  position: absolute; top: calc(100% + 10px); left: 0;
  opacity: 0; color: var(--paper); transition: opacity .18s ease; white-space: nowrap;
}
.orbit-tile.is-featured .work-caption, .orbit-tile:hover .work-caption, .orbit-tile:focus-visible .work-caption { opacity: 1; }
.work-caption { display: block; }
.work-caption strong { display: block; font-size: 1.02rem; font-weight: 730; }
.work-caption small { display: block; color: var(--muted); font-size: .82rem; }
.orbit-tile.is-featured .work-caption strong::before { content: "✳"; color: var(--accent); margin-right: .4em; }
.work-figure { display: block; }
.work-surface { position: relative; display: block; aspect-ratio: 1.55; overflow: hidden; background: #31243b; }
.work-surface img { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-tile .poster-type, .work-tile .still-type {
  position: absolute; color: #f7f2fe; bottom: 9%; left: 7%; font-size: clamp(12px, 1.4vw, 18px);
  line-height: .9; font-weight: 900; text-transform: uppercase; letter-spacing: -.045em;
  max-width: 86%; text-shadow: 1px 2px 6px #000b;
}
.still-type { padding: .38em .48em; background: #161220df; }
.work-tile .poster-type { font-size: clamp(17px, 2.6vw, 34px); text-shadow: none; }
.poster .work-surface::after { content: ""; position: absolute; inset: 0; border-top: 12px solid var(--poster-accent, #c0acf2); pointer-events: none; }
.poster img { filter: grayscale(1) contrast(1.13) brightness(.77); }
.poster-warm { --poster-accent: #ffd168; }
.poster-cool { --poster-accent: #bba8fa; }
.poster-acid { --poster-accent: #e2fb72; }
.poster-rust { --poster-accent: #f59a81; }
.still img { filter: saturate(.80) contrast(1.09); }
.gesture-hint {
  z-index: 1250; position: absolute; bottom: 24px; left: var(--gutter);
  display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .86rem; pointer-events: none;
}
.gesture-icon { color: var(--accent); font-size: 1.18rem; }
.orbit-controls { z-index: 1250; position: absolute; bottom: 20px; right: var(--gutter); display: flex; gap: 5px; }
.orbit-controls .icon-button { min-width: 44px; background: #211728dc; }
.icon-button { padding: 0; width: 43px; height: 43px; }
.chevron { width: .55rem; height: .55rem; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.chevron.left { transform: rotate(-135deg); margin-left: .2rem; }
.chevron.right { transform: rotate(45deg); margin-right: .2rem; }
.pause-icon { width: .56rem; height: .72rem; border-inline: 2px solid currentColor; }
.play-icon { width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; }

.gallery-bar {
  position: relative; z-index: 3; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  min-height: 74px; padding: 10px var(--gutter); border-block: 1px solid var(--line); background: var(--night);
}
.gallery-actions { display: flex; align-items: center; gap: 8px; }
.gallery-actions .line-button { white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; }
.filters button {
  min-height: 38px; padding: 7px 15px; border: 1px solid transparent; background: transparent;
  white-space: nowrap; font-size: .91rem; font-weight: 630;
}
.filters button:hover { border-color: var(--line); }
.filters button[aria-pressed="true"] { background: var(--accent); color: #242807; }
.footer {
  display: flex; justify-content: space-between; row-gap: 6px; column-gap: 20px; flex-wrap: wrap;
  padding: 13px var(--gutter); color: #b6aabb; font-size: .8rem;
}

dialog {
  color: var(--paper); border: 1px solid var(--line); background: var(--surface);
  max-width: min(calc(100vw - 24px), 1200px); max-height: calc(100dvh - 24px); padding: 0;
}
dialog::backdrop { background: #0e0a13d6; backdrop-filter: blur(7px); }
.close-button { position: absolute; top: 16px; right: 16px; z-index: 1; line-height: 1; font-size: 1.58rem; background: var(--ink); }
.side-dialog { width: 450px; padding: 52px 25px 28px; }
.side-dialog h2 { font-size: clamp(2.05rem, 5vw, 3rem); line-height: .99; letter-spacing: -.065em; margin-bottom: 13px; }
.side-dialog > p, .demo-reveal p { line-height: 1.5; color: var(--muted); margin-bottom: 18px; }
.side-dialog fieldset { margin: 0 0 17px; padding: 7px 0 0; border: 0; border-top: 1px solid var(--line); }
.side-dialog legend { padding: 0 10px 0 0; color: var(--lavender); font-size: .9rem; font-weight: 700; }
.side-dialog fieldset label { display: flex; align-items: center; gap: 7px; padding: 7px 0; }
.side-dialog input[type="radio"] { accent-color: var(--accent); }
.results-dialog { width: 670px; }
.result-group { margin: 20px 0 0; border-top: 1px solid var(--line); padding-top: 12px; }
.result-group h3 { font-size: 1.05rem; color: var(--lavender); }
.result-group ul { padding: 0; margin: 4px 0 0; list-style: none; }
.result-group li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; min-height: 60px; }
.result-group li img { width: 67px; aspect-ratio: 1.5; object-fit: cover; }
.result-group li small { display: block; color: var(--muted); font-size: .8rem; }
.result-group li.is-winner strong { color: var(--accent); }
#submission-form { display: grid; gap: 8px; }
#submission-form input:not([type="file"]), #submission-form select, #submission-form textarea {
  color: var(--paper); background: var(--night); border: 1px solid var(--line); padding: 8px; min-height: 41px;
}
#submission-form label { margin-top: 6px; }
#submission-form textarea { resize: vertical; }
#submission-form input[type="file"] { width: 100%; }
#submission-form button { margin-top: 10px; justify-self: start; }
.work-preview { width: min(100%, 235px); max-height: 150px; object-fit: contain; object-position: left; }
.form-status { color: var(--accent); font-size: .9rem; min-height: 1.2em; }

@media (max-width: 780px) {
  .exhibition { height: clamp(500px, calc(100svh - 115px), 850px); }
  .exhibition.preopening { height: max(500px, calc(100svh - 42px)); }
  .spine { font-size: clamp(93px, 15vh, 135px); }
  .filters { gap: 3px; }
  .filters button { padding: 7px 9px; font-size: .86rem; }
  .gallery-bar { gap: 9px; }
}
@media (max-width: 520px) {
  .exhibition { height: clamp(493px, calc(100svh - 122px), 850px); }
  .spine { font-size: clamp(90px, 14vh, 120px); }
  .orbit-axis { top: 5%; bottom: 10%; }
  .orbit-line { width: 103%; left: -1%; }
  .orbit-line-upper { top: 29%; }
  .orbit-line-lower { top: 58%; }
  .orbit-line-slope { width: 111%; left: -5%; }
  .orbit-line-diagonal { width: 86%; left: 7%; }
  .orbit-tile { width: clamp(137px, 48vw, 225px); }
  .orbit-tile .work-caption strong { font-size: .93rem; }
  .gesture-hint { bottom: 27px; font-size: .77rem; gap: 4px; max-width: 48vw; }
  .orbit-controls { bottom: 21px; gap: 4px; }
  .orbit-controls .icon-button { width: 39px; min-width: 39px; }
  .gallery-bar { align-items: center; padding-top: 5px; padding-bottom: 5px; }
  .gallery-bar:has(#results-button:not([hidden])) { flex-wrap: wrap; }
  .gallery-bar:has(#results-button:not([hidden])) .gallery-actions { margin-left: auto; }
  .filters { gap: 0; }
  .filters button { min-height: 35px; }
  .footer { font-size: .76rem; padding-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
