@font-face {
  font-family: "Noto Serif SC";
  src: url("fonts/serif-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --ink: #1F1E1B;
  --ink-2: #6E6B64;
  --line: #E3DFD6;
  --line-2: #CFC9BD;
  --accent: #B5452B;
  --sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --mono: "JetBrains Mono", ui-monospace, var(--sans);
  --gutter: clamp(1.1rem, 4.4vw, 4.5rem);
  --mat: color-mix(in srgb, var(--bg) 86%, var(--line-2));
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #161513; --surface: #1F1D1A; --ink: #ECE8DF; --ink-2: #A8A398;
  --line: #2E2B27; --line-2: #45403A; --accent: #E07A5F;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg: #161513; --surface: #1F1D1A; --ink: #ECE8DF; --ink-2: #A8A398;
    --line: #2E2B27; --line-2: #45403A; --accent: #E07A5F;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 4.75rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .28em; }
a:hover { text-decoration: underline; }
button, select, summary { color: inherit; font: inherit; cursor: pointer; }
button { background: var(--surface); }
button, select, .enter { border-radius: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; top: -6rem; left: var(--gutter); z-index: 9; background: var(--surface); padding: .6rem 1rem; }
.skip-link:focus { top: .7rem; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), 83rem); margin-inline: auto; }
.serif { font-family: var(--serif); font-weight: 600; }
.mono { font-family: var(--mono); font-weight: 400; }
h1, h2, h3, p, ul { margin: 0; }
.masthead { border-bottom: 1px solid var(--line-2); background: var(--bg); position: relative; z-index: 5; }
.mast-inner { display: flex; align-items: center; min-height: 4.8rem; gap: clamp(2rem, 7vw, 7rem); }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-size: 1.45rem; letter-spacing: .09em; text-decoration: none; line-height: 1; }
a.brand:hover { text-decoration: none; }
.book-mark { display: inline-block; position: relative; width: 1.55rem; height: 1.55rem; color: var(--ink); }
.book-mark::before, .book-mark::after { content: ""; position: absolute; inset: 0; background: currentColor; }
.book-mark::before { clip-path: polygon(0 16%, 46% 29%, 46% 98%, 0 84%); }
.book-mark::after { clip-path: polygon(53% 26%, 91% 1%, 91% 72%, 53% 97%, 53% 88%, 82% 69%, 82% 16%, 53% 35%); }
.primary-nav, .menu-pages { display: flex; align-items: center; gap: 1.85rem; font-size: .92rem; }
.primary-nav a, .menu-pages a { text-decoration: none; padding: .4rem .08rem; color: var(--ink-2); border-bottom: 1px solid transparent; }
.primary-nav a[aria-current], .menu-pages a[aria-current], .primary-nav a:hover { color: var(--ink); border-color: currentColor; }
.head-tools, .theme-tool { display: flex; align-items: center; }
.head-tools { margin-left: auto; gap: 1.25rem; }
.theme-tool { gap: .4rem; font-size: .8rem; color: var(--ink-2); }
.sun-mark { font-family: system-ui, sans-serif; color: var(--ink); font-size: 1rem; }
.theme-tool select { border: 0; border-bottom: 1px solid var(--line-2); padding: .3rem 0; background: var(--bg); color: var(--ink); }
.mobile-menu { display: none; }
.foyer {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.3rem, 3.2vw, 3.4rem); align-items: start;
  padding-block: clamp(2.5rem, 4.4vw, 4.3rem) clamp(2.5rem, 3.7vw, 3.8rem);
}
.foyer-copy { padding-top: clamp(.5rem, 2.5vw, 2.6rem); }
.kicker { display: flex; align-items: center; gap: .8rem; font-size: .74rem; letter-spacing: .16em; color: var(--ink-2); text-transform: uppercase; }
.kicker [lang="en"] { border-left: 1px solid var(--line-2); padding-left: .8rem; }
.short-rule { display: inline-block; width: 1.8rem; height: 1px; background: var(--ink); }
.foyer h1 { font-size: clamp(2rem, 3.45vw, 3.55rem); line-height: 1.43; letter-spacing: -.048em; margin: 1.35rem 0 1.25rem; }
.foyer h1 span { display: block; }
.intro { color: var(--ink-2); font-size: clamp(.88rem, 1.1vw, 1.05rem); line-height: 1.85; }
.enter { display: inline-flex; align-items: center; gap: 1.85rem; margin-top: 2rem; padding: .55rem .95rem; border: 1px solid var(--ink); color: var(--bg); background: var(--ink); font-size: .87rem; text-decoration: none; }
.enter span { font-size: 1.1rem; line-height: 1; transition: translate 120ms ease; }
.enter:hover span { translate: 0 2px; }
.enter:hover { background: var(--bg); color: var(--ink); text-decoration: none; }
.framing {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 2px;
  padding: clamp(.4rem, .8vw, .8rem); min-width: 0;
}
.passepartout { background: var(--mat); position: relative; isolation: isolate; }
.mount, .player-slot { display: block; position: relative; aspect-ratio: 16 / 9; }
.mount { text-decoration: none; overflow: hidden; }
.mount:hover { text-decoration: none; }
.mount:hover .plate-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .17em; }
.letterpress { display: flex; position: absolute; inset: 8%; flex-direction: column; justify-content: center; align-items: center; gap: .5rem; text-align: center; border-block: 1px solid var(--line-2); pointer-events: none; }
.plate-id, .plate-source { color: var(--ink-2); font-size: clamp(.58rem, 1vw, .77rem); letter-spacing: .07em; }
.plate-title { font-size: clamp(1.55rem, 3.5vw, 4rem); letter-spacing: -.04em; line-height: 1.18; }
.still { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; font-size: 0; color: transparent; }
.video-mat .still { object-fit: cover; }
.mount.has-image .letterpress { visibility: hidden; }
.player-slot { background: #161513; }
.player-slot iframe { width: 100%; height: 100%; display: block; border: 0; }
.label { min-width: 0; }
.label-line { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; color: var(--ink-2); }
.exhibit-no { font-size: .78rem; line-height: 1.45; color: var(--ink); border: 1px solid var(--line-2); border-radius: 2px; padding: .16rem .44rem; letter-spacing: .06em; }
.classification, .format-note { font-size: .75rem; }
.format-note { border-left: 1px solid var(--line-2); padding-left: .6rem; }
.work-title { font-size: clamp(1.55rem, 2.65vw, 2.75rem); letter-spacing: -.035em; line-height: 1.25; margin: .8rem 0 .45rem; overflow-wrap: anywhere; text-wrap: pretty; }
.credit { color: var(--ink-2); font-size: .86rem; line-height: 1.75; }
.credit-year { display: inline-block; }
.original-title { font-size: .85rem; margin-bottom: .45rem; }
.ai-role { font-size: .97rem; margin-top: .85rem; line-height: 1.85; }
.work-note { font-size: .86rem; line-height: 1.75; margin-top: .75rem; }
.work-note a { margin-inline-start: .3em; }
.work-note time { font-variant-numeric: tabular-nums; }
.label-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1.15rem; }
.label-actions a, .start a, .work-note a { text-decoration-color: var(--line-2); font-size: .79rem; }
.label-actions a:hover, .start a:hover, .work-note a:hover { text-decoration-color: currentColor; }
.out-arrow { display: inline-block; font: .82em/1 var(--sans); margin-left: .26em; vertical-align: .1em; }
.link-domain { color: var(--ink-2); font-size: .94em; overflow-wrap: anywhere; }
.load-player { padding: .45rem .75rem; border: 1px solid var(--line-2); color: var(--ink); font-size: .79rem; }
.load-player:hover { border-color: var(--ink); }
.start, .player-status { color: var(--ink-2); font-size: .78rem; margin-top: .65rem; }
.start > span { margin-right: .42rem; }
.player-status:empty { display: none; }
.hero-work { position: relative; }
.hero-work .label { padding-top: .9rem; }
.hero-work .work-title { font-size: clamp(1.7rem, 2.75vw, 2.8rem); margin: .44rem 0 .12rem; }
.hero-work .ai-role { margin-top: .32rem; font-size: .9rem; }
.hero-work .label-actions { margin-top: .7rem; }
.hero-work .start { margin-top: .42rem; }
.hall-strip { position: sticky; top: 0; z-index: 3; background: var(--bg); border-block: 1px solid var(--line-2); }
.strip-inner { display: flex; min-height: 3.65rem; justify-content: space-between; align-items: stretch; gap: .4rem; }
.strip-caption { align-self: center; font-size: .77rem; color: var(--ink-2); border-right: 1px solid var(--line-2); padding-right: clamp(.6rem, 1.7vw, 1.8rem); }
.hall-strip a, .menu-rooms a { display: inline-flex; align-items: center; gap: .38rem; position: relative; font-size: .84rem; text-decoration: none; }
.hall-strip a:hover, .menu-rooms a:hover { text-decoration: underline; }
.hall-strip a[aria-current]::after { content: ""; position: absolute; height: 2px; background: var(--accent); bottom: -1px; left: 0; right: 0; }
.room-index { font-size: .65rem; color: var(--ink-2); }
[data-hall-link][aria-current] .room-index { color: var(--accent); }
.hall { padding-block: clamp(2.8rem, 5vw, 5.25rem) 1.75rem; }
.hall-heading { display: flex; align-items: baseline; gap: 1.1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--ink); }
.hall-number { align-self: flex-start; margin-top: .32rem; font-size: .86rem; border-top: 1px solid var(--ink); padding-top: .2rem; }
.hall-heading h2 { line-height: 1.25; font-size: clamp(1.8rem, 3.25vw, 3.15rem); letter-spacing: -.045em; }
.hall-english { color: var(--ink-2); font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; margin-top: .4rem; }
.hall-count { margin-inline-start: auto; align-self: flex-end; color: var(--ink-2); font-size: .76rem; }
.hang > .work { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; gap: clamp(1.5rem, 4vw, 4.4rem); padding-block: clamp(1.55rem, 3.4vw, 3.5rem); border-bottom: 1px solid var(--line); }
.hang > .work > .label { padding-top: .6rem; }
.subsection { display: flex; align-items: center; gap: 1rem; color: var(--ink-2); margin-top: 2rem; font-size: .85rem; }
.subsection i { width: 3.5rem; height: 1px; background: var(--line-2); }
.sample-pair { display: grid; gap: 1.4rem; }
.sample-pair figure { margin: 0; min-width: 0; }
.sample-pair .mount { aspect-ratio: 2.5; }
.sample-pair figcaption { color: var(--ink-2); font-size: .78rem; margin-top: .35rem; }
.hall-print .hang { display: grid; grid-template-columns: 1fr 1.15fr .88fr; gap: 2.3rem; align-items: start; padding-top: 2rem; }
.hall-print .work, .hall-studio .work { display: block; padding: 0 0 1rem; border: 0; }
.hall-print .mount { aspect-ratio: 1; }
.hall-print .work:nth-child(2) { margin-top: 4.2rem; }
.hall-print .work:nth-child(3) { margin-top: 1.8rem; }
.hall-print .work:nth-child(4) { grid-column: 2 / 4; width: min(100%, 38rem); justify-self: end; }
.hall-print .work:nth-child(4) .mount { aspect-ratio: 3 / 2; }
.hall-print .work .label, .hall-studio .work .label { padding-top: 1.15rem; }
.hall-print .work-title, .hall-studio .work-title { font-size: clamp(1.4rem, 2.25vw, 2.3rem); }
.hall-sound .hang { max-width: 51rem; margin-inline: auto; }
.hall-sound .work { display: block; padding-block: 2rem; }
.hall-sound .framing { margin: 0 auto 1.5rem; }
.track-list { margin-block: 1rem; padding-block: .65rem; border-block: 1px solid var(--line); color: var(--ink-2); font-size: .85rem; }
.track-list ul { list-style: none; padding: 0; color: var(--ink); }
.track-list li { display: inline; }
.track-list li + li::before { content: " / "; color: var(--ink-2); }
.hall-worlds .framing {
  background-color: var(--bg);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 1rem 1rem; padding: clamp(.65rem, 2.2vw, 2rem);
}
.hall-science .work { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.hall-science .plate-title { font-size: clamp(2rem, 5vw, 5rem); }
.hall-studio .hang { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 2rem; gap: 3rem; }
.hall-archive .hang { max-width: 64rem; margin-inline: auto; }
.hall-archive .work { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
.hall-archive .credit-year { border-bottom: 1px solid var(--line-2); }
.catalogue-intro { padding-block: 3.5rem 2.5rem; }
.catalogue-intro h1 { margin: .45rem 0; font-size: clamp(2.75rem, 6vw, 5rem); line-height: 1.25; }
.catalogue-intro > p:last-child { color: var(--ink-2); }
.catalogue .hang { max-width: 66rem; margin-inline: auto; display: block; padding: 0; }
.list-entry { border-bottom: 1px solid var(--line); padding: 1.75rem 0; }
.list-entry .label { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .4rem 2.75rem; }
.list-entry .label-line { grid-column: 1 / -1; margin-bottom: .4rem; }
.list-entry .work-title { grid-column: 1; grid-row: 2; margin: 0; font-size: clamp(1.4rem, 2.3vw, 2.3rem); }
.list-entry .credit { grid-column: 1; grid-row: 3; }
.list-entry .original-title { grid-column: 1; grid-row: 3; }
.list-entry .original-title + .credit { grid-row: 4; }
.list-entry .ai-role, .list-entry .work-note, .list-entry .track-list, .list-entry .label-actions, .list-entry .start { grid-column: 2; margin: 0; }
.list-entry .ai-role { grid-row: 2; }
.list-entry .label-actions { margin-block: .4rem .2rem; }
.on-wall { font-size: .75rem; margin-left: auto; color: var(--ink-2); }
.colophon { border-top: 1px solid var(--ink); margin-top: 3rem; }
.colophon-top, .colophon-bottom, .colophon-top nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1.3rem; }
.colophon-top { padding-block: 1.4rem; }
.colophon-top .brand { font-size: 1.18rem; }
.colophon-top .book-mark { width: 1.2rem; height: 1.2rem; }
.colophon-top nav { margin-left: auto; }
.colophon-top a { font-size: .85rem; text-decoration-color: var(--line-2); }
.colophon-bottom { justify-content: space-between; border-top: 1px solid var(--line); padding-block: 1rem 2rem; color: var(--ink-2); font-size: .74rem; }
@media (max-width: 64rem) {
  .strip-caption { display: none; }
  .strip-inner { gap: .6rem; }
}
@media (max-width: 52rem) {
  html { scroll-padding-top: 4.8rem; }
  .masthead { position: sticky; top: 0; }
  .mast-inner { min-height: 3.65rem; gap: 1rem; }
  .brand { font-size: 1.15rem; gap: .45rem; }
  .book-mark { width: 1.28rem; height: 1.28rem; }
  .primary-nav, .hall-strip { display: none; }
  .mobile-menu { display: block; font-size: .88rem; }
  .mobile-menu summary { display: flex; align-items: center; gap: .55rem; list-style: none; padding-block: .5rem; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .chevron { width: .55rem; height: .36rem; background: currentColor; clip-path: polygon(0 0, 100% 0, 50% 100%); }
  details[open] .chevron { clip-path: polygon(0 100%, 100% 100%, 50% 0); }
  .menu-panel { position: absolute; top: 100%; inset-inline: 0; padding: .8rem var(--gutter) 1rem; border-block: 1px solid var(--line-2); background: var(--surface); max-height: 74vh; overflow-y: auto; }
  .menu-pages { border-bottom: 1px solid var(--line); padding-bottom: .55rem; margin-bottom: .4rem; }
  .menu-rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem .6rem; }
  .menu-rooms a { padding-block: .5rem; }
  .foyer { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 1.65rem 1.8rem; }
  .foyer-copy { padding: 0; }
  .foyer h1 { font-size: clamp(1.9rem, 5.9vw, 2.8rem); max-width: 18em; line-height: 1.37; margin: .7rem 0 .55rem; }
  .foyer h1 span { display: inline; }
  .enter { margin-top: .8rem; font-size: .82rem; padding: .33rem .7rem; gap: 1rem; }
  .hall { border-top: 1px solid var(--line-2); padding-block: 1.8rem; }
  .hall-heading { gap: .7rem; }
  .hall-heading h2 { font-size: clamp(1.5rem, 5.8vw, 2.5rem); }
  .hall-count { font-size: .68rem; }
  .hall .hang { display: block; max-width: 100%; padding-top: 0; }
  .hall .hang > .work { display: block; margin: 0; width: auto; border-bottom: 1px solid var(--line); padding: 1.65rem 0; }
  .hall .hang > .work > .label { padding-top: .9rem; }
  .hall-sound .framing { margin-bottom: .3rem; }
  .hall .work:last-child { border: 0; }
  .hall .work-title { font-size: clamp(1.45rem, 5.4vw, 2.5rem); }
  .list-entry .label { display: block; }
  .list-entry .credit { margin-top: .5rem; }
  .list-entry .ai-role, .list-entry .work-note, .list-entry .track-list, .list-entry .label-actions { margin-top: .7rem; }
  .catalogue-intro { padding-block: 1.8rem; }
  .colophon-top { gap: .9rem; }
  .colophon-top nav { margin-left: 0; }
}
@media (max-width: 32rem) {
  .theme-tool > span:not(.sun-mark) { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .hall-count { max-width: 7.3rem; text-align: right; }
  .colophon-top .brand { width: 100%; }
  .colophon-bottom { align-items: flex-start; flex-direction: column; gap: .3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important; transition: none !important;
    transform: none !important; translate: none !important; scroll-behavior: auto !important;
  }
}
