@font-face {
  font-family: "Stack Sans Headline";
  src:
    url("assets/fonts/stack-sans-headline-regular.woff2") format("woff2"),
    url("assets/fonts/stack-sans-headline-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Stack Sans Text";
  src:
    url("assets/fonts/stack-sans-text-regular.woff2") format("woff2"),
    url("assets/fonts/stack-sans-text-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Stack Sans Text";
  src:
    url("assets/fonts/stack-sans-text-semibold.woff2") format("woff2"),
    url("assets/fonts/stack-sans-text-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f6f7f8;
  --ink: #182126;
  --muted: #5e6b72;
  --soft: #68777d;
  --line: #d6dde0;
  --tint: #e8eef1;
  --accent: #375865;
  --screen: #202429;
  /* Stack Sans has no Han glyphs; name the system CJK faces so Chinese text
     gets a real sans with real weights instead of the generic fallback. */
  --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    "Noto Sans CJK SC";
  --body: "Stack Sans Text", var(--cjk), sans-serif;
  --display: "Stack Sans Headline", var(--cjk), sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-focal: 1300ms;
  --header: 72px;
  --gutter: 48px;
  interpolate-size: allow-keywords;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 20px);
  scrollbar-color: #9eacb3 var(--paper);
  accent-color: var(--ink);
  caret-color: var(--accent);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
p,
figure,
dl,
dd,
ol {
  margin: 0;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  text-wrap: balance;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
img,
video {
  display: block;
  max-width: 100%;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
::selection {
  background: #cadce5;
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 3px;
}
[hidden] {
  display: none !important;
}
.page-width {
  width: min(1184px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.skip-link {
  position: fixed;
  z-index: 30;
  top: 12px;
  left: 12px;
  padding: 12px 20px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}

/* Header: sticky on a solid paper ground. The page-width hairline hands over
   to a full-bleed one once the page moves under it. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: var(--header);
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur) ease;
}
.is-scrolled .header-inner {
  border-bottom-color: transparent;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.site-header nav {
  position: relative;
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.site-header nav a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  transition: color var(--dur-fast) ease;
}
.site-header nav a:hover,
.site-header nav a[aria-current] {
  color: var(--ink);
}
.nav-marker {
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 1px;
  height: 1px;
  background: var(--ink);
  transform-origin: left;
  transform: translateX(var(--x, 0)) scaleX(var(--w, 0));
  opacity: 0;
  transition:
    transform 520ms var(--ease),
    opacity var(--dur) ease;
}
.nav-marker.is-visible {
  opacity: 1;
}
.release-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0 17px;
  min-height: 44px;
  margin-left: 14px;
  border-radius: 7px;
  color: white;
  background: var(--ink);
  font-size: 12px;
  transition: background var(--dur-fast) ease;
}
.release-link svg,
.launch-button svg {
  width: 16px;
  height: 16px;
  transition: transform 220ms var(--ease);
}
.release-link:hover {
  background: var(--accent);
}
.release-link:hover svg {
  transform: translateX(3px);
}

h1 {
  font-size: clamp(46px, 4.5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
/* Each headline line is its own mask so the words can rise out of it. The
   padding keeps descenders inside the clip; the negative margin returns it. */
h1 .line {
  display: block;
  overflow: clip;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
h1 .line > span {
  display: block;
}
h1 .muted {
  color: var(--soft);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  transition: color var(--dur-fast) ease;
}
.text-link svg {
  width: 17px;
  height: 17px;
  transition: transform 220ms var(--ease);
}
.text-link:hover svg {
  transform: translateX(4px);
}
.text-link:hover {
  color: var(--accent);
}
.media-player {
  min-width: 0;
}

/* Frames. Every player's picture sits in a clipped frame; layers stack inside
   it so a new picture can be revealed over the old one. */
.artwork-frame,
.app-frame,
.film-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 8px;
}
.artwork-frame {
  aspect-ratio: 16 / 9;
  background: #e0e6e9;
}
.artwork-frame video,
.film-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.artwork-frame video.is-current {
  z-index: 2;
}
.artwork-frame video.is-leaving {
  z-index: 1;
}
.artwork-frame video:not(.is-current, .is-leaving) {
  visibility: hidden;
}
[data-frame]:fullscreen {
  border-radius: 0;
  background: #000;
}
[data-frame]:fullscreen video {
  transform: none !important;
}

.artwork-credit {
  min-height: 77px;
  min-width: 0;
}
/* Credit lines roll through their own masks when the artwork changes. */
.roll-line {
  overflow: clip;
}
.artwork-credit h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.artwork-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.byline-divider {
  color: #7d8a91;
}
.artwork-byline a,
.artwork-note a,
.lang-link,
.media-error a,
.no-script-media a {
  text-decoration: underline;
  text-decoration-color: #9eacb3;
  transition: text-decoration-color var(--dur-fast) ease;
}
.artwork-byline a:hover,
.artwork-note a:hover,
.lang-link:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}
#wallpaper-rights {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.6;
}
.player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.playback-time {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 83px;
  margin-right: 5px;
}
.playback-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 92px;
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid #bac6cc;
  border-radius: 6px;
  background: transparent;
  font-size: 13px;
  transition:
    background var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    transform 120ms ease;
}
.playback-button svg {
  width: 17px;
  height: 17px;
}
.playback-button:hover,
.open-video:hover {
  background: var(--tint);
  border-color: var(--accent);
}
.playback-button:active,
.open-video:active {
  background: #dae5eb;
  transform: scale(0.97);
}
.play-glyph {
  fill: currentColor;
  stroke: none;
}
.pause-glyph {
  display: none;
  stroke-width: 2.5;
}
.is-playing .play-glyph {
  display: none;
}
.is-playing .pause-glyph {
  display: block;
}
.open-video {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  transition:
    background var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    transform 120ms ease;
}
.open-video svg {
  width: 18px;
  height: 18px;
}
.media-error {
  margin-top: 16px;
  padding: 13px 16px;
  border: 1px solid #a97861;
  border-radius: 6px;
  color: #653c2b;
  background: #f6ede7;
  font-size: 13px;
  line-height: 1.6;
}
.is-loading .playback-button {
  color: var(--muted);
}

/* Picker: an index of works, not a row of cards. The active work is marked by
   full color and an ink rule that draws across the top of its entry. */
.wallpaper-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.wallpaper-choice {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 0 4px;
  text-align: left;
  border: 0;
  background: transparent;
}
.choice-thumb {
  overflow: hidden;
  border-radius: 4px;
  background: #e0e6e9;
}
.choice-thumb img {
  width: 112px;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  filter: saturate(0.25);
  opacity: 0.7;
  transition:
    filter 500ms var(--ease),
    opacity 500ms var(--ease),
    transform 700ms var(--ease);
}
.wallpaper-choice:hover .choice-thumb img {
  filter: saturate(0.85);
  opacity: 1;
  transform: scale(1.05);
}
.wallpaper-choice[aria-pressed="true"] .choice-thumb img {
  filter: none;
  opacity: 1;
  transform: none;
}
.choice-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.choice-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
  transition: color var(--dur) ease;
}
.wallpaper-choice:hover .choice-title,
.wallpaper-choice[aria-pressed="true"] .choice-title {
  color: var(--ink);
}
.choice-detail {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.choice-bar {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 520ms var(--ease);
}
.wallpaper-choice[aria-pressed="true"] .choice-bar {
  transform: scaleX(1);
  transform-origin: left;
}
/* While the exhibition is pinned, the active work's rule fills with the walk
   through its hang; unpinned it is simply drawn. */
.choice-bar > span {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(var(--p, 1));
}
.is-pinned .choice-bar {
  background: #b7c3c9;
}
.capture-note {
  margin-top: 18px;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.no-script-media {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.8;
}

.app-frame {
  aspect-ratio: 8 / 5;
  border-radius: 10px;
  background: var(--screen);
  box-shadow: 0 24px 48px -32px rgb(24 33 38 / 0.45);
}
/* The guided camera: script.js sets --s, --ox and --oy per moment of the tour
   so the part of the interface being used fills the frame. */
.app-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  transform: scale(var(--s, 1));
  transition:
    transform 1100ms var(--ease-inout),
    transform-origin 1100ms var(--ease-inout);
}

/* Chapter rails: segment widths follow real durations, so the rail is both a
   table of contents and a timeline. */
.chapter-rail {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}
.chapter-rail li {
  flex: var(--span) 1 0;
  min-width: 0;
}
.chapter-rail button {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 10px;
  align-items: baseline;
  width: 100%;
  min-height: 44px;
  padding: 0 0 6px;
  border: 0;
  background: transparent;
  text-align: left;
}
.chapter-bar {
  grid-column: 1 / -1;
  position: relative;
  display: block;
  height: 2px;
  background: var(--line);
  overflow: hidden;
  transition: background var(--dur-fast) ease;
}
.chapter-bar > span {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
.chapter-rail button:hover .chapter-bar {
  background: #b7c3c9;
}
.chapter-time {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.chapter-title {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
  transition: color var(--dur) ease;
}
.chapter-rail button:hover .chapter-title,
.chapter-rail button[aria-current="step"] .chapter-title {
  color: var(--ink);
}
.app-caption,
.film-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
}
.app-caption > span > span,
.film-caption > span > span {
  color: var(--muted);
}

/* Features: an editorial index set in the display face. */
.details-section {
  display: grid;
  grid-template-columns: 0.85fr 1.75fr;
  gap: 68px;
  margin-top: 132px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.feature-list > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
}
.feature-list > div:first-child {
  padding-top: 0;
  border-top: 0;
}
.feature-list dt {
  font-family: var(--display);
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.feature-list dd {
  padding-top: 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 36ch;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 0.85fr 1.75fr;
  gap: 68px;
  margin-top: 104px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.faq-intro > p {
  margin-top: 21px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-fast) ease;
}
.faq details:first-child summary {
  padding-top: 0;
  min-height: 44px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary svg {
  width: 18px;
  height: 18px;
  transition: transform 320ms var(--ease);
}
.faq summary:hover {
  color: var(--accent);
}
.faq details[open] summary svg {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 28px 24px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  max-width: 70ch;
}
@supports selector(::details-content) {
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition:
      block-size 420ms var(--ease),
      opacity 300ms ease,
      content-visibility 420ms allow-discrete;
  }
  .faq details[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}

/* Launch: a bookend at the hero's scale. */
.launch {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 112px;
  padding-block: 104px 96px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.launch-icon {
  width: 88px;
  height: 88px;
}
.launch h2 {
  margin-top: 32px;
  font-size: clamp(40px, 4.5vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.launch h2 > span {
  color: var(--soft);
}
.launch-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 15px;
  font-weight: 600;
}
.launch-status svg {
  width: 23px;
  height: 23px;
}
.launch-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.launch-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 32px;
  margin-top: 32px;
}
.launch-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 7px;
  color: white;
  background: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition:
    background var(--dur-fast) ease,
    transform 120ms ease;
}
.launch-button svg {
  width: 18px;
  height: 18px;
}
.launch-button:hover {
  background: var(--accent);
}
.launch-button:active,
.release-link:active {
  transform: scale(0.98);
}

.site-footer {
  padding: 37px 0 31px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-top .brand {
  font-size: 13px;
}
.footer-top > p {
  color: var(--muted);
  font-size: 13px;
}
.back-top {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 12px;
  transition: color var(--dur-fast) ease;
}
.back-top:hover {
  color: var(--accent);
}
.back-top svg {
  width: 16px;
  height: 16px;
  transform: rotate(-90deg);
  transition: transform 220ms var(--ease);
}
.back-top:hover svg {
  transform: rotate(-90deg) translateX(3px);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
/* A 44px target around a line of 12px footer text, without moving the line. */
.lang-link {
  display: inline-block;
  padding-block: 12px;
  margin-block: -12px;
}
.artwork-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

html:has(.theater[open]) {
  overflow: hidden;
}
/* Theater: the film on the gallery's own matte, over a silvered page. */
.theater {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background: transparent;
  color: var(--ink);
  overscroll-behavior: contain;
}
.theater[open] {
  display: grid;
  place-items: center;
}
.theater::backdrop {
  background: rgb(221 227 230 / 0.92);
}
.theater[open]::backdrop {
  animation: backdrop-in 420ms ease both;
}
.theater.is-closing::backdrop {
  animation: backdrop-out 240ms ease both;
}
@keyframes backdrop-in {
  from {
    opacity: 0;
  }
}
@keyframes backdrop-out {
  to {
    opacity: 0;
  }
}
.theater-panel {
  width: min(1240px, 100%, calc((100svh - 300px) * 16 / 9 + 48px));
  padding: 18px 24px 20px;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 40px 90px -40px rgb(24 33 38 / 0.4);
}
.theater-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.theater-head h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.theater-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  transition:
    background var(--dur-fast) ease,
    transform 120ms ease;
}
.theater-close:hover {
  background: var(--tint);
}
.theater-close:active {
  transform: scale(0.95);
}
.film-frame {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #e0e6e9;
}
.film-rail {
  margin-top: 14px;
}
/* The film carries its own paper matte (96px of 1600 each side); the rail and
   caption align to the picture's edge rather than the frame's. */
.film-rail,
.film-caption,
.film-credit {
  margin-inline: 6%;
}
/* On a phone the film's burned-in credit is too small to read, so the
   current chapter's credit is repeated here in page type. */
.film-credit {
  display: none;
  min-height: 1.6em;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
/* The film's opening is too short to carry a timestamp beside its name; the
   readout under the rail keeps the time. */
.film-rail .chapter-time {
  display: none;
}
.film-caption {
  margin-top: 10px;
}


/* Section headings share one display step. */
.app-heading h2,
.details-section h2,
.faq h2 {
  font-size: clamp(32px, 3.2vw, 45px);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* Intro: the heading stays in normal flow above the exhibition and scrolls
   away as the stage pins beneath the header. */
.gallery-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding: 30px 0 28px;
}
.gallery-description {
  padding-bottom: 4px;
}
.gallery-description > p:first-child {
  font-size: 17px;
  line-height: 1.6;
}
.scroll-cue {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
}
.scroll-cue svg {
  width: 17px;
  height: 17px;
  transform: rotate(90deg);
}
.is-pinned .scroll-cue {
  display: inline-flex;
}

/* Exhibition, unpinned (reduced motion or no script): a clicked gallery with
   its wall label, then the tour below it. The labels' pieces are placed in
   one grid so the tour copy sits above its own picture. */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "art"
    "works"
    "appheading"
    "app"
    "appcontrols";
}
.stage-frames,
.stage-labels,
.label-app {
  display: contents;
}
.artwork-player {
  grid-area: art;
}
.label-works {
  grid-area: works;
}
.app-heading {
  grid-area: appheading;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 68px;
  margin-top: 120px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.app-heading p {
  max-width: 38ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.app-player {
  grid-area: app;
  margin-top: 44px;
}
.app-tour-controls {
  grid-area: appcontrols;
}

/* Wall label: title, medium and artist, rights; then the index of works, then
   the capture note and the controls. */
.label-works {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "credit foot"
    "picker picker";
  column-gap: 30px;
  margin-top: 16px;
}
.label-works .artwork-credit {
  grid-area: credit;
}
.label-works .wallpaper-picker {
  grid-area: picker;
}
.label-foot {
  grid-area: foot;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.label-foot .capture-note {
  margin: 0;
  order: 2;
}
.label-works .media-error,
.label-works .no-script-media {
  grid-column: 1 / -1;
}
.film-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  margin-right: 4px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition:
    background var(--dur-fast) ease,
    color var(--dur-fast) ease;
}
.film-link svg {
  width: 18px;
  height: 18px;
}
.film-link:hover {
  background: var(--tint);
  color: var(--accent);
}

/* Exhibition, pinned. The section is as tall as the walk (script.js sets the
   height from its timeline); the stage sticks under the header for all of it.
   --a is the approach before pinning, --m the morph from the last work into
   the app window, both 0..1. */
.is-pinned .exhibit {
  position: relative;
  height: var(--exhibit-height, auto);
}
.is-pinned .stage {
  position: sticky;
  top: var(--header);
  /* --lift is how far the stage still sits below its pin line; until it pins,
     the stage ends at the fold so the work and its label open the page. */
  height: calc(100svh - var(--header) - var(--lift, 0px));
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: none;
  gap: 28px;
  padding: 18px 0 20px;
}
.is-pinned .stage-frames {
  display: block;
  position: relative;
  min-height: 0;
  container-type: size;
}
.is-pinned .artwork-player,
.is-pinned .app-player {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
}
.is-pinned .artwork-frame {
  width: min(100cqw, 100cqh * 16 / 9);
  filter: brightness(calc(1 - var(--m, 0) * 0.28));
}
/* The app window rises out of the last work's bottom edge, which stays live as
   its desktop. The player is clipped to the desktop's rectangle; the window
   inside it travels (--me is the eased morph), so it is never a translucent
   ghost, only a window part-way onto the screen. */
.is-pinned .app-player {
  pointer-events: none;
  opacity: clamp(0, calc(var(--m, 0) * 20), 1);
  clip-path: inset(
    calc((100cqh - min(100cqw, 100cqh * 16 / 9) * 9 / 16) / 2)
      calc((100cqw - min(100cqw, 100cqh * 16 / 9)) / 2) round 8px
  );
}
.is-pinned .app-player.is-live {
  pointer-events: auto;
}
.is-pinned .app-frame {
  width: min(100cqw * 0.86, 100cqh * 0.86 * 1.6);
  transform: translateY(calc((1 - var(--me, 0)) * 106%))
    scale(calc(0.95 + var(--me, 0) * 0.05));
  box-shadow:
    0 2px 6px rgb(0 0 0 / 0.18),
    0 40px 80px -24px rgb(10 16 20 / 0.55);
}
.is-pinned .stage-labels {
  display: grid;
  min-height: 0;
}
.is-pinned .stage-labels > .wall-label {
  grid-area: 1 / 1;
  margin: 0;
}
.is-pinned .label-works {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto;
  grid-template-areas:
    "credit picker controls"
    "note picker controls";
  column-gap: 36px;
  row-gap: 6px;
  align-items: end;
  opacity: clamp(0, calc(1 - var(--m, 0) * 2.4), 1);
}
.is-pinned .label-foot {
  display: contents;
}
.is-pinned .label-foot .capture-note {
  grid-area: note;
  order: 0;
  text-align: left;
}
.is-pinned .label-foot .player-controls {
  grid-area: controls;
}
.is-pinned .label-works .artwork-credit {
  min-height: 0;
}
.is-pinned .wallpaper-picker {
  margin: 0;
  gap: 18px;
}
.is-pinned .wallpaper-choice {
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding-top: 12px;
}
.is-pinned .choice-thumb img {
  width: 64px;
}
.is-pinned .label-app {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 48px;
  align-items: end;
  opacity: clamp(0, calc(var(--m, 0) * 2.4 - 1.4), 1);
}
.is-pinned .app-heading,
.is-pinned .app-tour-controls {
  grid-area: auto;
}
.is-pinned .app-heading {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}
.is-pinned .app-heading h2 {
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.12;
}
.is-pinned .app-heading p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
}
.is-pinned .app-tour-controls .chapter-rail {
  margin-top: 0;
}
.is-pinned .app-caption {
  margin-top: 8px;
}
.is-pinned .label-works[inert],
.is-pinned .label-app[inert] {
  pointer-events: none;
}
.svh-probe {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 100svh;
  visibility: hidden;
  pointer-events: none;
}
.exhibit-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.exhibit-markers > span {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  scroll-margin-top: 0;
}

/* Features: heading with the app's capabilities under it, then the index. */
.details-intro .app-capabilities {
  max-width: 34ch;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.app-capabilities li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.app-capabilities li:first-child {
  border-top: 1px solid var(--line);
}

/* Opening: the artwork is hung. The frame opens from a slit, the picture
   settles into it, the headline rises out of its line masks, and the fittings
   arrive last. Keyed to html.intro, which script.js removes when it is over. */
.intro h1 .line > span {
  animation: rise 1000ms var(--ease) 80ms both;
}
.intro h1 .line + .line > span {
  animation-delay: 170ms;
}
.intro .artwork-frame {
  animation: hang var(--dur-focal) var(--ease) 260ms both;
}
.intro .artwork-frame > video.is-current {
  animation: settle 1900ms var(--ease) 260ms both;
}
.intro .gallery-description,
.intro .stage-labels {
  animation: arrive 800ms var(--ease) both;
}
.intro .gallery-description {
  animation-delay: 420ms;
}
.intro .stage-labels {
  animation-delay: 900ms;
}
@keyframes rise {
  from {
    transform: translateY(108%);
  }
}
@keyframes hang {
  from {
    clip-path: inset(49.5% 0 round 8px);
  }
  to {
    clip-path: inset(0 round 8px);
  }
}
@keyframes settle {
  from {
    transform: scale(1.14);
  }
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (max-width: 1080px) {
  :root {
    --gutter: 32px;
  }
  .site-header nav {
    gap: 20px;
  }
  .release-link {
    gap: 10px;
    margin-left: 0;
  }
  .gallery-intro {
    gap: 30px;
    padding: 26px 0 24px;
  }
  .gallery-description > p:first-child {
    font-size: 15px;
  }
  .wallpaper-picker {
    gap: 18px;
  }
  .wallpaper-choice {
    grid-template-columns: 80px 1fr;
    gap: 11px;
  }
  .choice-thumb img {
    width: 80px;
  }
  .choice-title {
    font-size: 13px;
  }
  .details-section,
  .faq {
    grid-template-columns: 0.9fr 1.6fr;
    gap: 40px;
  }
  .feature-list > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  /* The pinned label stacks its credit above the index. */
  .is-pinned .label-works {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "credit controls"
      "note controls"
      "picker picker";
    row-gap: 4px;
  }
  .is-pinned .label-app {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .is-pinned .app-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
  }
  .is-pinned .app-heading h2 br {
    display: none;
  }
  .is-pinned .app-heading p {
    max-width: 34ch;
    margin: 0;
    text-align: right;
  }
}
@media (max-width: 760px) {
  :root {
    --header: 64px;
    --gutter: 22px;
  }
  .header-inner {
    gap: 12px;
  }
  .brand {
    font-size: 13px;
    gap: 7px;
  }
  .brand img {
    width: 27px;
    height: 27px;
  }
  .site-header nav {
    gap: 16px;
  }
  .site-header nav a {
    font-size: 12px;
  }
  .gallery-intro {
    display: block;
  }
  h1 {
    font-size: clamp(34px, 7vw, 48px);
  }
  .gallery-description {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 14px;
  }
  .gallery-description > p:first-child {
    font-size: 14px;
  }
  .scroll-cue {
    margin: 0;
    flex-shrink: 0;
    font-size: 12px;
  }
  .label-works {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "credit"
      "picker"
      "foot";
  }
  .is-pinned .label-works {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "credit credit"
      "picker picker"
      "note controls";
    row-gap: 14px;
    align-items: center;
  }
  .is-pinned .label-foot .capture-note {
    max-width: 24ch;
  }
  .label-foot {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
  }
  .label-foot .capture-note {
    max-width: 24ch;
    text-align: left;
  }
  .wallpaper-choice,
  .is-pinned .wallpaper-choice {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
    padding-top: 12px;
  }
  .choice-thumb img,
  .is-pinned .choice-thumb img {
    width: 100%;
  }
  .is-pinned .wallpaper-picker {
    gap: 12px;
  }
  .app-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 88px;
    padding-top: 42px;
  }
  .app-heading p {
    font-size: 14px;
  }
  .is-pinned .app-heading {
    display: block;
  }
  .is-pinned .app-heading p {
    display: none;
  }

  .chapter-rail:not(.film-rail) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
  }
  .app-caption .film-link {
    display: none;
  }
  .details-section,
  .faq {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 78px;
    padding-top: 42px;
  }
  .feature-list > div {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 26px;
  }
  .faq-intro > p {
    margin-top: 13px;
  }
  .faq-intro > p br {
    display: none;
  }
  .launch {
    margin-top: 80px;
    padding-block: 72px 64px;
  }
  .launch-icon {
    width: 72px;
    height: 72px;
  }
  .footer-top > p {
    display: none;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 7px;
    margin-top: 22px;
  }
  .theater {
    padding: 12px;
  }
  .theater-panel {
    padding: 14px 16px 16px;
  }
  .theater-head h2 {
    font-size: 18px;
  }
  .film-rail {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
  .film-rail .chapter-title {
    font-size: 12px;
  }
  .film-rail,
  .film-caption,
  .film-credit {
    margin-inline: 0;
  }
  .film-credit {
    display: block;
  }
  .film-caption {
    flex-direction: column;
    align-items: flex-start;
  }
  .film-caption .player-controls {
    width: 100%;
  }
  .film-caption .playback-time {
    margin-right: auto;
  }
}
/* Phones. Pinned, the stage anchors under the header; the frame box is exactly
   the work's 16:9 while works hang, then grows to 4:3 as the last work becomes
   the desktop (Aurora covers it, as any wallpaper fills its screen). The app
   window keeps the video's own 8:5, so nothing is banded or cropped, and rises
   out of the desktop's bottom edge, inset on a strip of Aurora. The compact
   camera table in script.js (same 600px query) frames it closely. */
@media (max-width: 600px) {
  .is-pinned .stage {
    grid-template-rows: auto auto;
    align-content: center;
    gap: 24px;
    padding: 16px 0 14px;
  }
  /* The wall label becomes a list: each work a row with its thumbnail, each
     tour chapter a row, so the label carries the lower half of the screen and
     the tour's heading sits with its chapters. */
  .is-pinned .label-app {
    align-content: start;
  }
  .is-pinned .app-heading p {
    display: block;
    max-width: none;
    margin-top: 6px;
    text-align: left;
  }
  .is-pinned .wallpaper-picker {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-top: 0;
  }
  .is-pinned .wallpaper-choice {
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
  }
  .is-pinned .choice-thumb img {
    width: 80px;
  }
  .is-pinned .chapter-rail:not(.film-rail) {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .is-pinned .chapter-rail:not(.film-rail) button {
    row-gap: 8px;
    padding-bottom: 8px;
  }
  .is-pinned .stage-frames {
    height: calc(
      (100vw - 2 * var(--gutter)) * (0.5625 + var(--me, 0) * 0.1875)
    );
  }
  .is-pinned .artwork-frame {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }
  .is-pinned .artwork-frame video {
    object-fit: cover;
  }
  .is-pinned .app-player {
    clip-path: inset(0 round 5px);
  }
  .is-pinned .app-frame {
    width: 92%;
    transform: translateY(calc((1 - var(--me, 0)) * 106%))
      scale(calc(0.95 + var(--me, 0) * 0.05));
  }
}
@media (max-width: 540px) {
  :root {
    --header: 60px;
    --gutter: 18px;
  }
  .header-inner {
    gap: 10px;
  }
  .brand {
    font-size: 12px;
    gap: 5px;
  }
  .brand img {
    width: 25px;
    height: 25px;
  }
  .site-header nav {
    gap: 12px;
  }
  .site-header nav a:first-child,
  .site-header nav a[href="#app"],
  .nav-marker {
    display: none;
  }
  .release-link {
    display: inline-flex;
    padding: 0;
    background: transparent;
    color: var(--ink);
    border-radius: 0;
  }
  .release-link svg {
    display: none;
  }
  .release-link:hover {
    color: var(--accent);
    background: transparent;
  }
  .gallery-intro {
    padding: 22px 0 16px;
  }
  h1 {
    font-size: clamp(30px, 9.7vw, 48px);
    line-height: 1.08;
  }
  .gallery-description > p:first-child {
    font-size: 13px;
  }
  .artwork-frame {
    border-radius: 5px;
  }
  @keyframes hang {
    from {
      clip-path: inset(49.5% 0 round 5px);
    }
    to {
      clip-path: inset(0 round 5px);
    }
  }
  .artwork-credit h2 {
    font-size: 22px;
  }
  .artwork-byline {
    gap: 6px;
  }
  .playback-button {
    font-size: 12px;
    min-width: 86px;
  }
  .choice-title {
    font-size: 13px;
  }
  .app-heading h2,
  .details-section h2,
  .faq h2 {
    font-size: 35px;
  }
  .is-pinned .app-heading h2 {
    font-size: 22px;
  }
  .app-frame {
    border-radius: 6px;
  }
  .app-caption {
    gap: 12px;
  }
  .app-caption .player-controls {
    gap: 3px;
  }
  .app-caption .playback-button {
    min-width: 80px;
    padding-inline: 11px;
  }
  .film-rail {
    gap: 5px;
  }
  .details-section,
  .faq {
    margin-top: 69px;
    padding-top: 36px;
    gap: 29px;
  }
  .feature-list > div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0 22px;
  }
  .feature-list dt {
    font-size: 24px;
  }
  .feature-list dd {
    font-size: 14px;
  }
  .faq summary {
    font-size: 13px;
    gap: 14px;
    padding-block: 21px;
  }
  .faq details p {
    font-size: 13px;
    padding-right: 0;
  }
  .launch {
    margin-top: 66px;
    padding-block: 56px 52px;
  }
  .launch-icon {
    width: 64px;
    height: 64px;
  }
  .launch h2 {
    margin-top: 24px;
    font-size: clamp(32px, 9vw, 40px);
  }
  .site-footer {
    padding-top: 28px;
  }
  .footer-top {
    gap: 16px;
  }
  .footer-top .brand {
    font-size: 12px;
  }
  .footer-bottom {
    margin-top: 19px;
  }
}
/* Reduced motion keeps color, opacity and state changes and removes travel:
   no pinned walk (script.js leaves the page unpinned), no opening, no camera
   moves, no zooms, no shimmer. Swaps become dissolves. */
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  .app-frame video {
    transition: none;
    transform: none;
  }
  /* A still crop of the poster is not motion; phones keep it readable. */
  .app-frame[data-poster-frame] video {
    transform: scale(var(--s, 1));
  }
  .wallpaper-choice:hover .choice-thumb img {
    transform: none;
  }
  .text-link:hover svg,
  .release-link:hover svg,
  .back-top:hover svg {
    transform: none;
  }
  .back-top svg {
    transform: rotate(-90deg);
  }
  .choice-bar,
  .nav-marker {
    transition-property: opacity;
  }
  .faq details::details-content {
    transition: none;
  }
}
@media (forced-colors: active) {
  .release-link,
  .launch-button,
  .playback-button,
  .open-video,
  .theater-close {
    border: 1px solid ButtonText;
  }
  .wallpaper-choice[aria-pressed="true"] {
    outline: 2px solid Highlight;
    outline-offset: 4px;
  }
  .chapter-rail button[aria-current="step"] {
    outline: 1px solid Highlight;
  }
  .chapter-bar > span,
  .choice-bar > span {
    background: Highlight;
  }
}

/* Chinese. Han glyphs keep their own spacing, and the Latin-tuned line boxes
   (1.06-1.15) sit too close to the top of the glyphs for the headline masks
   and multi-line headings, so the Chinese page raises them to 1.2. Heights
   already at or above 1.2 (the wall label's title) are left alone. */
:is(h1, h2, dt):lang(zh) {
  letter-spacing: 0;
}
/* The Latin name in the Chinese headline keeps the English tracking, so it
   reads as the same wordmark and still fits one line on a phone. */
h1:lang(zh) [lang="en"] {
  letter-spacing: -0.035em;
}
html:lang(zh)
  :is(
    h1,
    .launch h2,
    .app-heading h2,
    .details-section h2,
    .faq h2,
    .feature-list dt
  ) {
  line-height: 1.2;
}
