@font-face {
  font-family: "Barlow Condensed";
  src: url("./assets/fonts/barlow-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #151615;
  --paper: #f4f1e8;
  --muted: #b7b6ae;
  --line: #373933;
  --sun: #ffb83e;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--paper); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
:where(button,a,canvas):focus-visible { outline: 2px solid #e37e17; outline-offset: 3px; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner {
  min-height: 64px;
  max-width: 1540px;
  margin: auto;
  padding: 0 clamp(24px, 4.3vw, 72px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; line-height: 1.2; font-weight: 650; }
.brand svg { width: 23px; height: 23px; color: var(--sun); }
.reference { font-size: .875rem; color: var(--muted); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.reference:hover { color: var(--sun); }
.exhibit {
  max-width: 1540px;
  margin: auto;
  padding: clamp(26px, 4.15vw, 65px) clamp(24px, 4.3vw, 72px) 37px;
  display: grid;
  grid-template-columns: minmax(0, .31fr) minmax(0, 1fr);
  gap: clamp(25px, 3.25vw, 53px);
  align-items: start;
}
.identity { padding-block: clamp(13px, 4vh, 48px) 0; }
.eyebrow {
  margin: 0 0 13px;
  color: var(--sun);
  font: 500 .81rem/1.25 var(--mono);
  letter-spacing: .11em;
}
h1 {
  margin: 0;
  font-family: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 6.2vw, 6.05rem);
  line-height: .83;
  letter-spacing: .008em;
}
.collab {
  margin: 19px 0 0;
  color: #ded9cc;
  font-size: clamp(.99rem, 1.31vw, 1.14rem);
  line-height: 1.5;
}
.facts { margin: 32px 0 0; border-top: 1px solid var(--line); max-width: 230px; }
.facts div { display: flex; gap: 15px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .875rem; min-width: 2.35em; }
.facts dd { margin: 0; font: .875rem/1.5 var(--mono); }
.gallery { min-width: 0; }
.stage {
  color: #202020;
  position: relative;
  height: clamp(410px, 61vh, 625px);
  min-width: 0;
  overflow: hidden;
  border-radius: 9px;
  isolation: isolate;
  background: radial-gradient(ellipse at 53% 48%, #f4f0e7 3%, #e8e3d9 60%, #c9c5bb 100%);
}
.model-still, .canvas-mount { position: absolute; width: 100%; height: 100%; inset: 0; }
.model-still { object-fit: contain; pointer-events: none; user-select: none; filter: drop-shadow(0 22px 20px #342c203c); }
.stage[data-renderer="live"] .model-still { visibility: hidden; }
.canvas-mount canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.canvas-mount canvas[hidden] { display: none; }
.canvas-mount canvas:active { cursor: grabbing; }
.canvas-mount canvas:focus-visible { outline-offset: -4px; }
.stage-header, .stage-footer {
  position: absolute;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.stage-header { top: 18px; }
.stage-footer { bottom: 18px; }
.view-label, .spin, .controls, .hint {
  border-radius: 6px;
  background: #f8f5edeb;
  border: 1px solid #24262426;
}
.view-label, .hint { padding: 8px 11px; font-size: .875rem; }
.view-label { font-weight: 640; }
.spin, .controls button { cursor: pointer; color: #252522; }
.spin {
  min-height: 42px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 5px 11px;
  font-size: .875rem;
  font-weight: 650;
  pointer-events: auto;
}
.spin svg, .controls svg { width: 20px; height: 20px; display: block; }
.spin[aria-pressed="true"] { background: #ffbe54; border-color: #7b541b70; }
.spin:disabled { visibility: hidden; }
.hint { margin: 0; color: #31322d; max-width: 100%; }
.controls { display: inline-flex; flex: 0 0 auto; pointer-events: auto; }
.controls button {
  background: transparent;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 43px;
  padding: 4px;
  border: 0;
  border-radius: 0;
}
.controls button + button { border-left: 1px solid #24262425; }
.controls button:first-child { border-radius: 5px 0 0 5px; }
.controls button:last-child { border-radius: 0 5px 5px 0; }
.controls button:disabled { color: #73736b; cursor: default; }
.controls button:not(:disabled):hover, .spin:not([aria-pressed="true"]):hover { background: #fffaf0; }
.controls button:focus-visible { position: relative; z-index: 1; outline-offset: -3px; }
.angles {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.angles button {
  display: grid;
  grid-template-rows: 52px auto;
  gap: 1px;
  justify-items: center;
  align-items: center;
  min-width: 0;
  border-radius: 7px;
  padding: 7px 3px 9px;
  border: 1px solid #3a3c37;
  background: #1d1f1c;
  color: #eae5db;
  font-size: .875rem;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
}
.angles button:hover { border-color: #938a76; background: #252520; }
.angles button[aria-pressed="true"] { color: #ffd17a; border-color: var(--sun); background: #2a261c; }
.angles img { width: 100%; max-width: 117px; height: 52px; object-fit: contain; user-select: none; pointer-events: none; }
.gallery:fullscreen, .gallery.expanded {
  background: var(--ink);
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gallery.expanded { position: fixed; inset: 0; z-index: 10; }
body:has(.gallery.expanded) { overflow: hidden; }
.gallery:fullscreen .stage, .gallery.expanded .stage { flex: 1 1 auto; height: auto; min-height: 0; }
.gallery:fullscreen .angles, .gallery.expanded .angles { flex: 0 0 auto; max-width: 1030px; width: 100%; align-self: center; }
.noscript { margin: 15px 24px; color: var(--muted); }
@media (max-width: 980px) {
  .exhibit { grid-template-columns: minmax(0, .34fr) minmax(0, 1fr); gap: 23px; }
  h1 { font-size: clamp(2.95rem, 6.85vw, 5.25rem); }
}
@media (max-width: 720px) {
  .topbar-inner { min-height: 55px; padding-inline: 17px; }
  .exhibit { display: block; padding: 25px 14px 26px; }
  .identity { padding: 0 3px 20px; }
  .eyebrow { font-size: .75rem; margin-bottom: 7px; }
  h1 { font-size: clamp(2.55rem, 9vw, 4.5rem); line-height: .94; }
  h1 br { display: none; }
  .collab { margin-top: 8px; font-size: .98rem; }
  .facts { display: flex; flex-wrap: wrap; column-gap: 18px; border: 0; margin: 7px 0 0; max-width: unset; }
  .facts div { border: 0; gap: 7px; padding: 0; }
  .facts dt { min-width: 0; }
  .stage { height: clamp(337px, 49dvh, 460px); border-radius: 7px; }
  .stage-header, .stage-footer { left: 9px; right: 9px; }
  .stage-header { top: 9px; }
  .stage-footer { bottom: 9px; align-items: end; }
  .hint { font-size: .8125rem; padding: 7px 8px; }
  .angles { margin-top: 9px; gap: 6px; }
  .angles button { grid-template-rows: 38px auto; font-size: .8125rem; padding: 5px 2px 7px; }
  .angles img { height: 38px; }
}
@media (max-width: 420px) {
  .angles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .angles button { grid-template-rows: 34px auto; }
  .angles img { height: 34px; }
  .controls button { min-width: 40px; }
}
@media (max-width: 350px) {
  .stage-footer { flex-wrap: wrap; }
  .controls { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
