:root {
  color-scheme: dark;
  --black: #0d0d0d;
  --paper: #e5e0d5;
  --red: #c92332;
  --dim: #a7a49d;
  --rule: #393835;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --sans:
    'Helvetica Neue', Arial, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei',
    sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--black);
  color: var(--paper);
  font-family: var(--sans);
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
input:focus-visible,
#art:focus-visible {
  outline: 2px solid #f16b70;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.shell {
  max-width: 1960px;
  min-height: 100svh;
  margin: auto;
  padding: 0 clamp(22px, 4.1vw, 80px);
  display: flex;
  flex-direction: column;
}
header {
  height: 74px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  gap: 24px;
}
.brand,
.head-sub,
.tools,
.figure-head,
.figure-head > span,
.colophon,
.phase,
.actions,
.primary,
.timeline,
.dialog-top {
  display: flex;
  align-items: center;
}
.brand {
  gap: 10px;
  white-space: nowrap;
}
.brand img {
  margin-right: 3px;
}
.brand b {
  font-size: 18px;
  letter-spacing: 0.07em;
}
.brand i {
  width: 1px;
  height: 13px;
  background: #595852;
}
.brand span {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.035em;
}
.head-sub {
  margin-left: auto;
  gap: 10px;
  color: var(--dim);
  font: 10px var(--mono);
  letter-spacing: 0.065em;
}
.head-sub span {
  color: #66635e;
}
.tools {
  gap: 3px;
  position: relative;
  border-left: 1px solid var(--rule);
  padding-left: 15px;
}
.tools > button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}
.tools svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: square;
}
.tools > button:hover,
.archive-link:hover,
.colophon button:hover,
.text-button:hover {
  color: #fa7480;
}
.tools #sound[data-muted='true'] {
  color: #8d8982;
}
.popover {
  position: absolute;
  right: 0;
  top: 43px;
  z-index: 8;
  background: #1c1b19;
  padding: 16px;
  border: 1px solid var(--rule);
  width: 218px;
}
.popover button,
.popover label {
  font-size: 12px;
}
.popover label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.popover button {
  border: 1px solid #716d66;
  padding: 6px 10px;
}
input[type='range'] {
  accent-color: var(--red);
  min-width: 0;
}
main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  align-items: center;
  flex: 1;
  padding: clamp(34px, 6.2vh, 82px) 0 clamp(30px, 5.6vh, 66px);
}
.editorial {
  grid-column: 1/6;
  padding-right: clamp(20px, 4vw, 70px);
  min-width: 0;
}
.phase {
  font: 10px var(--mono);
  letter-spacing: 0.085em;
  gap: 12px;
  color: #d0ccc3;
}
.phase i {
  background: var(--red);
  height: 2px;
  width: 26px;
}
.phase b {
  background: #5a5751;
  width: 1px;
  height: 10px;
}
.intro-title {
  margin: clamp(20px, 3.8vh, 48px) 0 21px;
}
#title-zh {
  color: #d93642;
  font-size: clamp(30px, 3.2vw, 57px);
  line-height: 1.04;
  font-weight: 740;
  letter-spacing: 0.035em;
  margin-bottom: 12px;
}
h1 {
  font-weight: 740;
  letter-spacing: -0.086em;
  font-size: clamp(80px, min(8.45vw, 13.4vh), 162px);
  line-height: 0.815;
  margin: 0 0 0 -0.06em;
}
.copy {
  font-size: clamp(14px, 1.1vw, 20px);
  line-height: 1.82;
  letter-spacing: 0.035em;
}
.translation {
  font: 10px/1.55 var(--mono);
  letter-spacing: 0.075em;
  color: var(--dim);
  margin-top: 11px;
}
.actions {
  margin-top: clamp(22px, 4vh, 44px);
  gap: clamp(12px, 1.7vw, 28px);
  flex-wrap: wrap;
}
.primary {
  background: var(--paper);
  color: #171715;
  min-height: 47px;
  padding: 0 14px 0 18px;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s;
}
.primary:hover {
  background: #fffaf0;
}
.primary small {
  font: 9px var(--mono);
  letter-spacing: 0.025em;
}
.primary em {
  font: 25px/1 var(--sans);
  margin-left: 14px;
}
.text-button,
.archive-link,
.colophon button {
  font-size: 12px;
  padding: 7px 0;
  white-space: nowrap;
}
.text-button span:last-child,
.archive-link span {
  margin-left: 8px;
}
.text-button {
  border-bottom: 1px solid #55524c;
}
.privacy,
#live-msg {
  font-size: 10px;
  color: #a29e97;
  margin-top: 12px;
  line-height: 1.65;
  letter-spacing: 0.02em;
}
#live-msg:empty {
  display: none;
}
figure {
  grid-column: 6/13;
  margin: 0;
  min-width: 0;
}
.figure-head {
  justify-content: space-between;
  margin-bottom: 14px;
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  color: #c2beb5;
}
.figure-head > span {
  gap: 10px;
}
.figure-head strong {
  font-weight: normal;
}
.figure-head i {
  height: 1px;
  background: #5b5853;
  width: 26px;
}
.cross {
  color: #dad4c9;
  font: 16px/12px var(--mono);
}
.film-id {
  font-size: 9px;
}
.film-id b {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}
#mat {
  position: relative;
  padding: 8px;
  background: #11110f;
  border: 1px solid #48453f;
}
#art {
  aspect-ratio: 1.43;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  touch-action: pan-y;
}
body.active #art {
  touch-action: none;
}
#art canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.corner {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  border: 0 solid #c9c4b9;
}
.c1 {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}
.c2 {
  top: -1px;
  right: -1px;
  border-width: 1px 1px 0 0;
}
.c3 {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 1px 1px;
}
.c4 {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}
figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font: 10px/1.6 var(--mono);
  color: var(--dim);
}
.archive-link {
  font-size: 10px;
  padding: 3px 0;
  color: var(--paper);
}
footer {
  margin-top: auto;
}
.timeline {
  align-items: stretch;
}
.stop {
  flex: 1;
  position: relative;
  border-top: 1px solid #45433f;
  padding: 14px 4px 18px 0;
  color: #8c8882;
  font: 10px var(--mono);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.stop .num {
  font-size: 9px;
  color: #75716d;
}
.stop.current {
  color: var(--paper);
}
.stop.current:before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 14px;
  height: 2px;
  background: var(--red);
}
.stop.current .num {
  color: #ef5965;
}
.stop .label {
  letter-spacing: 0.045em;
}
.colophon {
  border-top: 1px solid #292927;
  min-height: 45px;
  justify-content: space-between;
  color: #aaa69e;
  font: 9px var(--mono);
  letter-spacing: 0.09em;
}
.colophon b {
  font-weight: 400;
  color: #66625b;
  margin: 0 4px;
}
.colophon button {
  font-size: 11px;
  color: #b8b4ac;
  display: flex;
  align-items: center;
  gap: 9px;
}
.colophon button span {
  font: 9px var(--mono);
  letter-spacing: 0.04em;
}
.colophon button i {
  font: 13px var(--sans);
}
.loading {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: #080808;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
  transition: clip-path 0.65s ease;
  clip-path: inset(0);
}
.loading.ready {
  clip-path: inset(0 0 100%);
  pointer-events: none;
}
.load-title {
  font: 750 clamp(40px, 10vw, 124px) / 0.9 var(--sans);
  letter-spacing: -0.08em;
  animation: loadtype 1s both;
}
.load-rule {
  width: min(400px, 65vw);
  height: 1px;
  background: #444;
}
.load-rule i {
  display: block;
  background: var(--red);
  height: 2px;
  width: 0%;
}
.loading p,
.loading button {
  font: 11px var(--mono);
}
.loading button {
  border: 1px solid #777;
  padding: 10px;
}
.loading:before {
  content: '';
  position: absolute;
  inset: 10% 16%;
  background: var(--loading-image) center / contain no-repeat;
  opacity: 0.055;
  pointer-events: none;
}
.load-title,
.load-rule,
.loading p {
  z-index: 1;
}
@keyframes loadtype {
  from {
    clip-path: inset(46% 0);
  }
  to {
    clip-path: inset(0);
  }
}
body.active h1 {
  font-size: clamp(48px, 6.8vw, 108px);
  line-height: 0.88;
}
body.active .intro-title {
  margin-bottom: 24px;
}
#readout {
  position: absolute;
  bottom: 14px;
  left: 15px;
  color: #eee9dc;
  background: rgba(13, 13, 13, 0.84);
  padding: 6px 8px;
  font: 10px var(--mono);
  letter-spacing: 0.045em;
  pointer-events: none;
}
.spread {
  margin-top: 18px;
  max-width: 270px;
}
.spread label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--dim);
}
.spread label span {
  font: 10px var(--mono);
}
.spread input {
  width: 100%;
  margin: 9px 0 0;
}
dialog {
  color: var(--paper);
  background: #171715;
  border: 1px solid #646058;
  width: min(590px, 92vw);
  padding: 24px;
  max-height: 86svh;
}
dialog::backdrop {
  background: #080808cc;
}
.dialog-top {
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  font: 10px var(--mono);
  letter-spacing: 0.1em;
  padding-bottom: 10px;
}
.dialog-top button {
  font-size: 25px;
  line-height: 1.2;
}
dialog h2 {
  font-size: 32px;
  margin: 20px 0 12px;
}
dialog p,
dialog li {
  font-size: 13px;
  line-height: 1.8;
  color: #c6c2b7;
}
dialog a {
  color: #e8d6c3;
  text-underline-offset: 3px;
}
dialog h3 {
  font-size: 15px;
  margin: 20px 0 6px;
}
dialog ul {
  padding-left: 18px;
}
#proof canvas {
  width: 100%;
  height: auto;
  display: block;
}
#debug,
#camera:not([hidden]) {
  position: fixed;
  z-index: 8;
  right: 20px;
  bottom: 20px;
}
#debug {
  margin: 0;
  background: #111e;
  border: 1px solid #888;
  padding: 12px;
  font: 11px/1.5 var(--mono);
  pointer-events: none;
}
#camera:not([hidden]) {
  right: auto;
  left: 16px;
  width: 150px;
  transform: scaleX(-1);
}
@media (min-width: 1650px) {
  .shell {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .figure-head,
  .phase,
  figcaption {
    font-size: 12px;
  }
}
@media (max-width: 940px) {
  header {
    height: 62px;
  }
  .editorial {
    padding-right: 18px;
  }
  .actions {
    gap: 10px;
  }
  .primary {
    min-height: 42px;
    padding: 0 11px;
    gap: 6px;
  }
  .primary em {
    margin-left: 5px;
  }
  .stop {
    gap: 5px;
  }
  .stop .label {
    font-size: 9px;
  }
  .figure-head > span {
    gap: 6px;
  }
  .intro-title {
    margin-top: 25px;
  }
  #art {
    aspect-ratio: 1.18;
  }
}
@media (max-width: 690px) {
  .shell {
    padding: 0 20px;
  }
  .head-sub {
    display: none;
  }
  .tools {
    margin-left: auto;
    border: 0;
    padding: 0;
  }
  header {
    height: 54px;
  }
  .brand {
    gap: 8px;
  }
  .brand b {
    font-size: 16px;
  }
  .brand span {
    font-size: 13px;
  }
  .brand img {
    width: 24px;
  }
  .tools > button {
    width: 32px;
  }
  main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 21px 0 20px;
    gap: 18px;
  }
  .editorial {
    display: contents;
  }
  .phase {
    order: 0;
    font-size: 9px;
    gap: 8px;
  }
  .intro-title {
    order: 1;
    margin: 0;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
    justify-content: space-between;
  }
  .intro-title h1,
  body.active h1 {
    font-size: clamp(46px, 12.3vw, 81px);
    line-height: 0.82;
    letter-spacing: -0.078em;
  }
  .intro-title h1 br {
    display: none;
  }
  .intro-title h1 br:after {
    content: ' ';
  }
  .intro-title h1 .word + .word:before {
    content: ' ';
  }
  .intro-title #title-zh {
    font-size: 24px;
    margin: 0 0 1px 8px;
    white-space: nowrap;
  }
  .copy {
    order: 3;
    font-size: 13px;
    line-height: 1.65;
  }
  .translation {
    display: none;
  }
  .actions {
    order: 4;
    margin: 0;
    gap: 18px;
  }
  .privacy {
    order: 5;
    margin: -10px 0 0;
    font-size: 10px;
  }
  #live-msg {
    order: 6;
    margin: 0;
  }
  .spread {
    order: 6;
    margin: 0;
  }
  .intro-title,
  body.active .intro-title {
    margin: 0;
  }
  figure {
    order: 2;
  }
  .figure-head {
    margin-bottom: 7px;
  }
  .figure-head,
  .film-id {
    font-size: 8px;
  }
  #art {
    aspect-ratio: 1.48;
  }
  #mat {
    padding: 5px;
  }
  figcaption {
    font-size: 9px;
    margin-top: 4px;
  }
  .stop {
    padding: 10px 0 12px;
    display: block;
    text-align: left;
  }
  .stop .label {
    display: none;
  }
  .stop.current .label {
    display: block;
    position: absolute;
    left: 15px;
    top: 10px;
    font-size: 8px;
    letter-spacing: 0;
  }
  .stop.current {
    flex: 1.8;
  }
  .stop.current:before {
    right: 7px;
  }
  .colophon {
    min-height: 38px;
    font-size: 8px;
  }
  .colophon button span {
    display: none;
  }
  .primary {
    min-height: 43px;
  }
  .primary small {
    font-size: 9px;
  }
}
@media (max-height: 720px) and (min-width: 691px) {
  header {
    height: 53px;
  }
  main {
    padding: 20px 0;
  }
  .intro-title {
    margin: 18px 0;
  }
  .actions {
    margin-top: 16px;
  }
  #title-zh {
    font-size: 30px;
  }
  h1 {
    font-size: clamp(73px, 12vh, 105px);
  }
  #art {
    max-height: 64vh;
  }
  .stop {
    padding: 10px 0;
  }
  .colophon {
    min-height: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.exit {
  font-size: 11px;
  color: #b6b0a8;
  border-left: 1px solid var(--rule);
  padding-left: 16px;
}
.supplemental {
  font-size: 11px;
}
.asset-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  border-top: 1px solid var(--rule);
  margin-top: 20px;
  padding-top: 15px;
}
.asset-row img {
  width: 70px;
  height: 90px;
  object-fit: cover;
  filter: grayscale(1);
}
.asset-row h3 {
  margin: 0 0 5px;
}
.asset-row p {
  font-size: 12px;
  margin: 5px 0;
}
.asset-row a {
  font-size: 11px;
}
#archive-body > a {
  font-size: 12px;
}
@media (max-width: 690px) {
  .intro-title h1 {
    font-size: 0 !important;
  }
  .intro-title h1 > * {
    display: none;
  }
  .intro-title h1:after {
    content: attr(data-mobile);
    font-size: clamp(43px, 12.1vw, 80px);
    letter-spacing: -0.08em;
  }
  .exit {
    margin-left: auto;
  }
  .exit:not([hidden]) + .tools {
    margin-left: 0;
  }
  header {
    gap: 10px;
  }
}
h1 {
  letter-spacing: -0.073em;
  font-weight: 700;
}
.subject {
  font-size: 10px;
  color: #b0aca4;
  letter-spacing: 0.09em;
}
@media (max-width: 690px) {
  .subject {
    font-size: 9px;
    letter-spacing: 0;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.word {
  display: inline-block;
}
.loading {
  clip-path: polygon(
    0 0,
    100% 0,
    100% 50%,
    0 50%,
    0 50%,
    100% 50%,
    100% 100%,
    0 100%
  );
}
.loading.ready {
  clip-path: polygon(
    0 0,
    100% 0,
    100% 0,
    0 0,
    0 100%,
    100% 100%,
    100% 100%,
    0 100%
  );
}
.loading:after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23g)' opacity='.6' d='M0 0h96v96H0z'/%3E%3C/svg%3E");
}
