:root {
  --paper: #f1f0eb;
  --paper-2: #e8e7e1;
  --ink: #111111;
  --muted: #777771;
  --line: rgba(17, 17, 17, 0.25);
  --page-width: 430px;
  --pad: 20px;
  --status-h: 42px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #d7d7d3; }
body {
  margin: 0;
  color: var(--ink);
  background: #d7d7d3;
  font-family: Inter, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
body.video-open,
body.cassette-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
.mono { font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace; }
.site {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  background: var(--paper);
  overflow: clip;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 0 56px rgba(0,0,0,.12);
}
.desktop-label {
  display: none;
  position: fixed;
  inset: 22px 28px auto;
  justify-content: space-between;
  color: #666;
  font: 10px/1.2 "IBM Plex Mono", Consolas, monospace;
  letter-spacing: 0;
}
.dark-section { background: var(--ink); color: var(--paper); }
.paper-section { background: var(--paper); color: var(--ink); }
.eyebrow { margin: 0; font-size: 10px; line-height: 1.3; }
.align-right { text-align: right; }

.intro {
  min-height: 100svh;
  padding: max(20px, env(safe-area-inset-top)) var(--pad) 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.intro::before {
  content: "001";
  position: absolute;
  z-index: 0;
  top: 146px;
  right: -19px;
  color: rgba(241,240,235,.035);
  font: 194px/.8 Impact, sans-serif;
  pointer-events: none;
}
.intro > * { position: relative; z-index: 1; }
.intro::after {
  content: "";
  position: absolute;
  inset: 50px var(--pad) auto;
  height: 1px;
  background: rgba(241,240,235,.35);
}
.intro-meta { display: flex; justify-content: space-between; font-size: 8px; line-height: 1.55; }
.hero-title-wrap { margin-top: clamp(44px, 8svh, 72px); }
.hero-title-wrap .eyebrow { color: #a6a6a0; margin-bottom: 8px; }
.hero-title-wrap h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(86px, 26vw, 108px);
  line-height: .86;
  font-weight: 900;
  display: grid;
  gap: 10px;
}
.hero-title-wrap h1 .re-line { margin: 0; }
.hero-title-wrap h1 .play-line { margin-left: 36px; }
.hero-cn { margin: 24px 0 0; font-size: 15px; line-height: 1.55; }
.cover-track-map { margin-top: 28px; padding: 10px 0 9px; border-top: 1px solid #474743; border-bottom: 1px solid #474743; }
.cover-spectrum { height: 8px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cover-spectrum span { background: var(--bar); }
.cover-map-copy { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin-top: 8px; color: #7f7f7a; font-size: 5px; }
.cover-map-copy strong { color: #c1c1bb; text-align: center; font-size: 5.5px; }
.cassette-wrap { margin: auto 0 16px; }
.cassette {
  position: relative;
  aspect-ratio: 1.78 / 1;
  border: 2px solid var(--paper);
  padding: 14px 16px;
  background: #171717;
}
.cassette::before,
.cassette::after {
  content: ""; position: absolute; width: 5px; height: 5px; border: 1px solid var(--paper); border-radius: 50%; bottom: 13px;
}
.cassette::before { left: 14px; }
.cassette::after { right: 14px; }
.tape-label { display: flex; justify-content: space-between; font-size: 7px; border-bottom: 0; padding: 7px 8px; background: var(--paper); color: var(--ink); }
.tape-window {
  height: 82px;
  margin-top: 18px;
  border: 1px solid var(--paper);
  display: grid;
  grid-template-columns: 1fr 52px 1fr;
  place-items: center;
}
.reel {
  width: 54px; aspect-ratio: 1; border: 1px solid var(--paper); border-radius: 50%; position: relative;
  background: repeating-conic-gradient(from 0deg, var(--paper) 0 6deg, transparent 6deg 30deg);
}
.reel::before { content: ""; position: absolute; inset: 8px; background: #171717; border-radius: 50%; border: 1px solid var(--paper); }
.reel i { position: absolute; inset: 19px; background: var(--paper); border-radius: 50%; }
.playing .reel { animation: reel-spin 4.8s linear infinite; }
.playing .reel-right { animation-duration: 4.4s; animation-direction: reverse; }
.paused .reel { animation-play-state: paused; }
.tape-counter { font-size: 10px; }
.tape-path { width: 70%; height: 22px; border: 1px solid var(--paper); border-top: 0; margin: 7px auto 0; position: relative; }
.tape-path span { position: absolute; width: 44%; height: 1px; background: var(--paper); left: 28%; bottom: 6px; }
.tape-code { margin-top: 8px; font-size: 6px; text-align: center; color: #adada8; }
.mechanical-button {
  min-height: 48px;
  width: 100%;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.mechanical-button:active { transform: scale(.985); }
.button-icon { font-size: 10px; }
.intro-footer { display: flex; justify-content: space-between; margin-top: 22px; color: #84847f; font-size: 6px; }

.tape-loading {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: #111;
  color: var(--paper);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease;
}
.tape-loading.active { opacity: 1; visibility: visible; }
.loading-copy { width: min(72vw, 280px); display: grid; gap: 12px; font-size: 10px; }
.loading-copy strong { font: 54px/.9 Impact, sans-serif; }
.loading-copy span:nth-last-child(-n+2) { border-top: 1px solid #555; padding-top: 10px; }

.player-status {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--status-h);
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: 28px 7px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  transform: translateY(-100%);
  transition: transform .24s ease;
}
.player-status.visible { transform: translateY(0); }
.status-play { width: 28px; height: 28px; border: 1px solid #555; background: transparent; color: inherit; padding: 0; font-size: 9px; }
.playing-dot { width: 6px; height: 6px; border-radius: 50%; background: #ad3030; }
.status-label { font-size: 8px; font-weight: 700; }
.status-track, .status-time { font-size: 7px; }
.status-time { min-width: 35px; text-align: right; }
.progress-line { position: absolute; height: 2px; bottom: 0; left: 0; right: 0; background: #393939; }
.progress-line span { display: block; width: 0; height: 100%; background: var(--paper); }

.track-index { padding: 64px var(--pad) 36px; min-height: 100svh; }
.section-header { position: relative; }
.section-header h2,
.side-intro h2,
.end h2 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0;
}
.section-header h2 { font-size: 76px; line-height: .88; margin: 15px 0 8px; display: grid; gap: 5px; }
.index-summary { position: absolute; right: 0; bottom: 1px; font: 8px/1.45 "IBM Plex Mono", Consolas, monospace; text-align: right; }
.index-cassette {
  margin-top: 28px;
  padding: 12px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  position: relative;
}
.index-cassette::before,
.index-cassette::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid #8b8b85;
  border-radius: 50%;
  bottom: 9px;
}
.index-cassette::before { left: 9px; }
.index-cassette::after { right: 9px; }
.index-tape-label {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 1px 2px 9px;
  border-bottom: 1px solid #51514e;
  font-size: 6px;
  color: #989893;
}
.index-tape-label strong { color: var(--paper); font-size: 7px; text-align: center; }
.index-tape-label span:last-child { text-align: right; }
.index-reel-window {
  height: 94px;
  margin: 12px 0 8px;
  border: 1px solid #777773;
  display: grid;
  grid-template-columns: 1fr 62px 1fr;
  place-items: center;
  background: #171717;
  position: relative;
}
.index-reel-window::before,
.index-reel-window::after {
  content: "";
  position: absolute;
  height: 1px;
  width: 22%;
  top: 50%;
  background: #4d4d49;
}
.index-reel-window::before { left: 20%; }
.index-reel-window::after { right: 20%; }
.index-reel {
  width: 58px;
  aspect-ratio: 1;
  border: 1px solid var(--paper);
  border-radius: 50%;
  background: repeating-conic-gradient(var(--paper) 0 5deg, transparent 5deg 28deg);
  position: relative;
  z-index: 1;
}
.index-reel::before { content: ""; position: absolute; inset: 8px; border: 1px solid #777; border-radius: 50%; background: #171717; }
.index-reel i { position: absolute; inset: 21px; border-radius: 50%; background: var(--paper); }
.playing .index-reel { animation: reel-spin 6s linear infinite; }
.playing .index-reel:last-child { animation-direction: reverse; animation-duration: 5.4s; }
.paused .index-reel { animation-play-state: paused; }
.index-counter { z-index: 2; display: grid; text-align: center; background: #171717; padding: 5px 3px; }
.index-counter b { font: 30px/.8 Impact, sans-serif; }
.index-counter span { margin-top: 5px; font-size: 5px; color: #8e8e89; }
.index-playhead { display: flex; justify-content: space-between; color: #8d8d88; font-size: 5.5px; padding: 0 3px 11px; }
.index-playhead span:nth-child(2) { color: var(--paper); }
.index-side-label { display: flex; justify-content: space-between; padding: 10px 10px 7px; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--ink); font-size: 6px; }
.track-nav { background: var(--paper); color: var(--ink); }
.track-link {
  min-height: 44px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 0 10px 0 8px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 11px;
  position: relative;
}
.track-link::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 2px; background: var(--track-accent); }
.track-link .track-no, .track-link .track-duration { font: 8px "IBM Plex Mono", Consolas, monospace; }
.track-link .track-name { font-weight: 700; }
.track-link:active { background: var(--track-accent); color: #fff; }
.index-side-break { height: 25px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border-bottom: 1px solid var(--ink); background: #d9d8d2; font-size: 5.5px; color: #666660; }
.index-controls { height: 32px; margin: 8px 28px 7px; border: 1px solid #6d6d68; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; text-align: center; font-size: 6px; color: #b0b0aa; }
.index-controls span + span { border-left: 1px solid #4c4c48; }
.index-controls span:last-child { color: #c65757; }
.index-footer { display: flex; justify-content: space-between; font-size: 6px; padding-top: 14px; color: #666660; }

.cassette-vault {
  margin-top: 28px;
  padding: 12px 12px 14px;
  border: 4px solid #111;
  background: #191919;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px #4d4d49, inset 0 0 24px rgba(0,0,0,.8);
  position: relative;
}
.cassette-vault::before,
.cassette-vault::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 5px;
  height: 5px;
  border: 1px solid #777;
  border-radius: 50%;
}
.cassette-vault::before { left: 7px; }
.cassette-vault::after { right: 7px; }
.vault-header,
.vault-footer,
.vault-row-mark {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vault-header { min-height: 30px; padding: 0 8px; border-bottom: 1px solid #555; color: #a3a39e; font-size: 5.5px; }
.vault-row-mark { padding: 8px 5px 5px; color: #bdbdb7; font-size: 5.5px; }
.vault-row-mark span:first-child { color: #fff; }
.cassette-vault .track-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  align-items: end;
  padding: 0 5px;
  background: transparent;
  color: var(--ink);
  position: relative;
}
.cassette-vault .track-link.cassette-spine {
  min-width: 0;
  height: 166px;
  padding: 8px 5px 7px;
  border: 1px solid #85857f;
  border-top: 4px solid var(--track-accent);
  border-bottom: 8px solid #30302e;
  background: #e9e7df;
  color: #111;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr;
  gap: 5px;
  justify-items: center;
  position: relative;
  cursor: pointer;
  transition: transform .24s ease, filter .24s ease;
  box-shadow: inset -5px 0 rgba(0,0,0,.05), 2px 0 #080808;
}
.cassette-vault .track-link.cassette-spine::before {
  content: "";
  position: absolute;
  inset: 28px 7px 25px;
  width: auto;
  border-left: 1px solid rgba(0,0,0,.16);
  border-right: 1px solid rgba(0,0,0,.08);
  background: transparent;
}
.cassette-vault .cassette-spine:nth-of-type(2),
.cassette-vault .cassette-spine:nth-of-type(6) { height: 158px; transform: translateY(1px) rotate(.5deg); }
.cassette-vault .cassette-spine:nth-of-type(3) { height: 171px; transform: rotate(-.45deg); }
.cassette-vault .cassette-spine:nth-of-type(4),
.cassette-vault .cassette-spine:nth-of-type(7) { height: 162px; transform: rotate(.35deg); }
.cassette-vault .track-link.cassette-spine:active,
.cassette-vault .track-link.cassette-spine.selected { transform: translateY(-15px); filter: brightness(1.08); }
.cassette-vault .cassette-spine .track-no,
.cassette-vault .cassette-spine .track-duration { width: 100%; font-size: 6px; position: relative; z-index: 1; }
.cassette-vault .cassette-spine .track-no { text-align: left; font-weight: 800; }
.cassette-vault .cassette-spine .track-duration { text-align: right; }
.cassette-vault .cassette-spine .track-name {
  min-height: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  overflow: hidden;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
}
.cassette-vault .index-side-break {
  grid-column: 1 / -1;
  height: 34px;
  margin: 7px -5px 0;
  padding: 0 9px;
  border: 0;
  border-top: 7px solid #070707;
  border-bottom: 7px solid #070707;
  background: #393937;
  color: #b7b7b1;
  box-shadow: inset 0 1px #666, 0 4px 8px rgba(0,0,0,.6);
}
.cassette-empty {
  height: 158px;
  padding: 8px 5px;
  border: 1px dashed #555;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  color: #555;
  font-size: 5px;
}
.cassette-empty strong { align-self: center; writing-mode: vertical-rl; font-size: 8px; font-weight: 500; }
.vault-footer { min-height: 34px; margin-top: 10px; padding: 0 7px; border-top: 1px solid #555; color: #858580; font-size: 5.5px; }

.cassette-preview {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  background: rgba(11,11,11,.93);
  color: var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity .26s ease, visibility .26s ease;
  perspective: 900px;
}
.cassette-preview.active { opacity: 1; visibility: visible; }
.cassette-preview-dialog { width: min(100%, 410px); transform: translateY(38px) scale(.78) rotateX(8deg); opacity: 0; transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .24s ease; }
.cassette-preview.active .cassette-preview-dialog { transform: none; opacity: 1; }
.preview-topline { min-height: 44px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #555; color: #999994; font-size: 6px; }
.preview-topline button { width: 44px; height: 44px; border: 1px solid #666; border-bottom: 0; background: transparent; color: var(--paper); font-size: 24px; cursor: pointer; }
.preview-tape {
  width: 100%;
  aspect-ratio: 1.72 / 1;
  margin-top: 22px;
  padding: 16px;
  border: 2px solid var(--paper);
  border-top: 6px solid var(--preview-accent);
  border-radius: 2px;
  background: #171717;
  color: var(--paper);
  display: block;
  position: relative;
  cursor: pointer;
  box-shadow: 0 20px 48px rgba(0,0,0,.5);
}
.preview-tape::before,
.preview-tape::after { content: ""; position: absolute; bottom: 13px; width: 6px; height: 6px; border: 1px solid #777; border-radius: 50%; }
.preview-tape::before { left: 13px; }
.preview-tape::after { right: 13px; }
.preview-tape:active { transform: scale(.985); }
.preview-tape-label { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 7px; padding-bottom: 9px; border-bottom: 1px solid #555; color: #92928d; font-size: 6px; }
.preview-tape-label strong { max-width: 220px; overflow: hidden; color: var(--paper); font: 15px/1.05 Impact, "Microsoft YaHei", sans-serif; text-align: center; white-space: nowrap; }
.preview-tape-label span:last-child { text-align: right; }
.preview-tape-window { height: 94px; margin: 16px 0 7px; border: 1px solid #777; display: grid; grid-template-columns: 1fr 130px 1fr; place-items: center; }
.preview-reel { width: 58px; aspect-ratio: 1; border: 1px solid var(--paper); border-radius: 50%; background: repeating-conic-gradient(var(--paper) 0 5deg, transparent 5deg 28deg); position: relative; animation: reel-spin 6s linear infinite; }
.preview-reel:last-child { animation-direction: reverse; animation-duration: 5.4s; }
.preview-reel::before { content: ""; position: absolute; inset: 8px; border: 1px solid #777; border-radius: 50%; background: #171717; }
.preview-reel i { position: absolute; inset: 21px; border-radius: 50%; background: var(--paper); }
.preview-track-no { font: 30px/.9 Impact, sans-serif; }
.preview-tape-path { width: 72%; height: 23px; margin: 0 auto; border: 1px solid #777; border-top: 0; position: relative; }
.preview-tape-path span { position: absolute; left: 27%; right: 27%; bottom: 6px; height: 1px; background: var(--paper); }
.preview-tape-note { margin-top: 8px; color: #8c8c87; font: 5px "IBM Plex Mono", Consolas, monospace; }
.preview-instruction { margin: 15px 0 0; text-align: center; color: #989893; font-size: 6px; }

/* Front-facing cassette display variant */
.cassette-vault {
  padding: 12px 13px 17px;
  background-color: #e9e8e3;
  background-image: linear-gradient(rgba(17,17,17,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,17,.035) 1px, transparent 1px);
  background-size: 18px 18px;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px #888782, inset 0 0 26px rgba(0,0,0,.08);
}
.cassette-vault::before,
.cassette-vault::after { border-color: #555; }
.cassette-vault .vault-header { color: #5f5f5a; border-bottom-color: #999893; }
.cassette-vault .vault-row-mark { color: #777771; }
.cassette-vault .vault-row-mark span:first-child { color: #111; }
.cassette-vault .vault-theme-a { min-height: 27px; padding: 8px 7px 5px; border-left: 3px solid #60788d; background: rgba(96,120,141,.08); }
.cassette-vault .track-nav.cassette-display {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  align-items: end;
  padding: 8px 7px 0;
  background: transparent;
}
.cassette-vault .track-link.cassette-unit {
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1.58 / 1;
  padding: 7px 8px 6px;
  border: 1px solid rgba(0,0,0,.55);
  border-radius: 2px;
  background: var(--tape-body);
  color: var(--tape-ink);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr 14px;
  gap: 5px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.12), 0 5px 10px rgba(0,0,0,.12);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease;
}
.cassette-vault .track-link.cassette-unit::before { display: none; }
.cassette-vault .track-link.cassette-unit::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 1px;
  pointer-events: none;
}
.cassette-vault .track-link.cassette-unit:nth-of-type(2),
.cassette-vault .track-link.cassette-unit:nth-of-type(6) { transform: translateY(4px) rotate(.5deg); }
.cassette-vault .track-link.cassette-unit:nth-of-type(3) { transform: translateY(2px) rotate(-.5deg); }
.cassette-vault .track-link.cassette-unit:nth-of-type(5) { transform: translateY(3px) rotate(.35deg); }
.cassette-vault .track-link.cassette-unit:nth-of-type(7) { grid-column: 1 / -1; width: calc(50% - 7px); justify-self: center; }
.cassette-vault .track-link.cassette-unit:active,
.cassette-vault .track-link.cassette-unit.selected { background: var(--tape-body); color: var(--tape-ink); transform: translateY(-10px) scale(1.035); box-shadow: 0 15px 22px rgba(0,0,0,.22); }
.cassette-unit-label {
  min-width: 0;
  height: 28px;
  padding: 4px 6px;
  border: 1px solid rgba(0,0,0,.18);
  background: var(--tape-label);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 5px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cassette-unit-label small { font: 4.5px "IBM Plex Mono", Consolas, monospace; white-space: nowrap; }
.cassette-unit-label strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 7.5px; line-height: 1; }
.cassette-unit-window {
  min-height: 36px;
  margin: 0 7px;
  border: 1px solid rgba(0,0,0,.38);
  background: rgba(255,255,255,.16);
  display: grid;
  grid-template-columns: 1fr 30px 1fr;
  place-items: center;
  position: relative;
  z-index: 1;
}
.cassette-unit-window i {
  width: 26px;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: repeating-conic-gradient(currentColor 0 7deg, transparent 7deg 34deg);
  opacity: .86;
}
.cassette-unit-window b { width: 26px; height: 11px; border: 1px solid currentColor; background: rgba(0,0,0,.13); }
.cassette-unit-base { width: 70%; margin: 0 auto; border: 1px solid rgba(0,0,0,.32); border-bottom: 0; display: flex; justify-content: space-around; align-items: end; padding: 0 8px 2px; }
.cassette-unit-base i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .68; }
.display-shelf-rail {
  grid-column: 1 / -1;
  height: 15px;
  margin: -4px -7px 0;
  border: 1px solid rgba(80,80,80,.38);
  border-top-color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.38);
  box-shadow: 0 7px 8px rgba(0,0,0,.12), inset 0 -3px rgba(255,255,255,.45);
  transform: perspective(180px) rotateX(12deg);
}
.display-side-divider {
  grid-column: 1 / -1;
  min-height: 42px;
  margin: 1px -7px 2px;
  padding: 0 9px;
  background: #171717;
  color: #8e8e89;
  border-top: 1px solid #444;
  border-bottom: 1px solid #444;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 4.5px;
}
.display-side-divider strong { color: #f1f0eb; text-align: center; font-size: 5.5px; }
.display-side-divider::before { content: "↻"; position: absolute; opacity: 0; }
.cassette-vault .vault-footer { color: #777771; border-top-color: #aaa9a4; }

.preview-tape {
  border-color: rgba(255,255,255,.72);
  border-top-color: var(--preview-accent);
  background: var(--tape-body);
  color: var(--tape-ink);
  box-shadow: 0 20px 48px rgba(0,0,0,.55), inset 0 0 0 2px rgba(255,255,255,.12);
}
.preview-tape-label { padding: 7px 8px; border: 1px solid rgba(0,0,0,.2); background: var(--tape-label); color: var(--tape-ink); }
.preview-tape-label strong { color: var(--tape-ink); font: 7px "IBM Plex Mono", Consolas, monospace; }
.preview-tape-window { border-color: color-mix(in srgb, var(--tape-ink) 55%, transparent); background: rgba(255,255,255,.12); }
.preview-reel { border-color: var(--tape-ink); background: repeating-conic-gradient(var(--tape-ink) 0 5deg, transparent 5deg 28deg); }
.preview-reel::before { border-color: var(--tape-ink); background: var(--tape-body); }
.preview-reel i { background: var(--tape-label); }
.preview-track-name {
  max-width: 126px;
  padding: 5px 4px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  font: 12px/1.05 Impact, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  text-align: center;
  overflow-wrap: anywhere;
}
.preview-tape-path { border-color: color-mix(in srgb, var(--tape-ink) 55%, transparent); }
.preview-tape-path span { background: var(--tape-ink); }
.preview-tape-note { color: var(--tape-ink); opacity: .58; }

.side-intro { min-height: 64svh; padding: 92px var(--pad) 48px; border-top: 1px solid var(--ink); position: relative; }
.side-mark { position: absolute; top: 42px; right: var(--pad); font-size: 10px; writing-mode: vertical-rl; }
.side-intro h2 { font-size: clamp(48px, 14vw, 60px); line-height: .82; margin: 0 0 30px; overflow-wrap: anywhere; }
.side-intro > p { max-width: 285px; margin: 0; font-size: 13px; line-height: 1.6; }
.side-intro .side-cn { margin-top: 12px; color: #6e6e68; }
.side-rule { margin-top: 44px; padding-top: 9px; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; font: 7px "IBM Plex Mono", Consolas, monospace; }

.project {
  min-height: 95svh;
  padding: 54px var(--pad) 38px;
  border-top: 1px solid var(--ink);
  position: relative;
  background: var(--paper);
  color: var(--ink);
}
.project::before { content: ""; position: absolute; left: 0; top: 0; width: 5px; height: 86px; background: var(--accent); }
.project-top { display: grid; grid-template-columns: 1fr auto; align-items: start; }
.project-number { display: flex; align-items: flex-end; gap: 9px; }
.project-number strong { font: 84px/.72 Impact, Haettenschweiler, sans-serif; }
.project-number span { font: 8px/1.3 "IBM Plex Mono", Consolas, monospace; padding-bottom: 2px; }
.project-code { text-align: right; font: 7px/1.5 "IBM Plex Mono", Consolas, monospace; }
.project-category { margin: 30px 0 8px; font: 8px "IBM Plex Mono", Consolas, monospace; color: #5f5f5a; }
.project h2 { margin: 0; max-width: 100%; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(38px, 12vw, 52px); line-height: .92; font-weight: 900; overflow-wrap: anywhere; }
.project h2.project-title-cn { font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif; font-size: clamp(38px, 10.5vw, 44px); line-height: 1.04; font-weight: 900; }
.project-cn { max-width: 355px; margin: 9px 0 22px; font-size: 12.5px; line-height: 1.55; font-weight: 600; color: #43433f; }
.project-cover { aspect-ratio: 16 / 9; border: 1px solid var(--ink); position: relative; overflow: hidden; background: #181818; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.88) contrast(1.03); transition: transform .22s ease; }
.project-cover:active img { transform: scale(.985); }
.cover-shade { position: absolute; inset: auto 0 0; height: 36%; background: linear-gradient(transparent, rgba(0,0,0,.66)); pointer-events: none; }
.cover-time { position: absolute; right: 10px; bottom: 9px; color: #fff; font: 9px "IBM Plex Mono", Consolas, monospace; }
.cover-index { position: absolute; left: 10px; top: 9px; background: var(--paper); color: var(--ink); padding: 5px 7px; font: 7px "IBM Plex Mono", Consolas, monospace; }
.project-description { margin: 20px 0 0; font-size: 14px; line-height: 1.65; }
.keywords { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 16px 0 24px; padding: 0; font: 7px "IBM Plex Mono", Consolas, monospace; }
.keywords li::before { content: "/ "; color: var(--accent); font-weight: 900; }
.watch-link {
  min-height: 48px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
}
.watch-link:active { background: var(--accent); }
.return-index {
  min-height: 44px;
  margin-top: 8px;
  border: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  padding: 0 11px;
  color: var(--ink);
  text-decoration: none;
  font: 7px "IBM Plex Mono", Consolas, monospace;
  background: linear-gradient(90deg, var(--accent) 0 4px, transparent 4px);
}
.return-index span:nth-child(2) { font-weight: 800; }
.return-index span:last-child { color: #757570; }
.return-index:active { background: var(--ink); color: var(--paper); }
.return-index:active span:last-child { color: #aaa; }
.track-switch { display: flex; justify-content: space-between; margin-top: 18px; color: #767670; font: 7px "IBM Plex Mono", Consolas, monospace; }

.video-modal {
  position: fixed;
  z-index: 120;
  inset: 0;
  padding: max(16px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom));
  background: rgba(8,8,8,.94);
  color: var(--paper);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.video-modal.active { opacity: 1; visibility: visible; }
.video-dialog { width: min(100%, 430px); border: 1px solid #70706b; background: #111; transform: translateY(12px); transition: transform .22s ease; }
.video-modal.active .video-dialog { transform: none; }
.video-dialog-header { min-height: 72px; padding: 14px 14px 12px; display: grid; grid-template-columns: 1fr 44px; gap: 12px; align-items: center; border-bottom: 1px solid #555; }
.video-dialog-header p { margin: 0 0 5px; color: #8d8d88; font-size: 6px; }
.video-dialog-header h2 { margin: 0; font-size: 21px; line-height: 1.05; }
.video-close { width: 44px; height: 44px; border: 1px solid #666; border-radius: 0; background: transparent; color: var(--paper); font-size: 25px; line-height: 1; cursor: pointer; }
.video-close:active { background: var(--paper); color: var(--ink); }
.video-frame-wrap { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame-wrap::before { content: "LOADING VIDEO..."; position: absolute; inset: 0; display: grid; place-items: center; color: #666; font: 7px "IBM Plex Mono", Consolas, monospace; }
.video-frame-wrap iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; display: block; }
.video-dialog-footer { min-height: 48px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 6px; }
.video-dialog-footer span { color: #c65757; }
.video-dialog-footer a { min-height: 44px; display: grid; place-items: center; text-decoration: none; }

.taskflow-art { width: 100%; height: 100%; background: #eef0f5; padding: 17px; color: #20252e; display: grid; grid-template-columns: 42% 1fr; gap: 12px; }
.tf-sidebar { border-right: 1px solid #8e98a8; padding-right: 10px; }
.tf-logo { font: 13px Impact, sans-serif; margin-bottom: 16px; }
.tf-line { height: 6px; background: #abb5c7; margin: 8px 0; }
.tf-line.short { width: 64%; }
.tf-main { display: flex; flex-direction: column; gap: 8px; }
.tf-title { font: 7px "IBM Plex Mono", monospace; }
.tf-transcript { flex: 1; border: 1px solid #8e98a8; padding: 8px; display: grid; gap: 5px; }
.tf-transcript i { display: block; height: 5px; background: #c6ccd7; }
.tf-task { height: 22px; border-left: 4px solid #5575b8; background: #dce2ee; padding: 5px 7px; font: 6px "IBM Plex Mono", monospace; }

.flip-tape {
  min-height: 76svh;
  padding: 66px var(--pad);
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  perspective: 900px;
}
.flip-meta { display: flex; justify-content: space-between; font: 8px "IBM Plex Mono", Consolas, monospace; }
.mini-cassette { aspect-ratio: 1.78; border: 2px solid var(--paper); display: grid; place-items: center; transform: rotateY(0deg); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.mini-cassette.flipped { transform: rotateY(180deg); }
.mini-cassette span { font: 72px Impact, sans-serif; }
.mini-cassette.flipped span { transform: rotateY(180deg); }
.flip-tape h2 { margin: 26px 0 0; font: 50px/.86 Impact, sans-serif; }
.flip-button { margin-top: 30px; }

.side-b { background: var(--paper-2); }
.side-b .side-mark { color: #8b3a3a; }
.side-b h2 { font-size: clamp(44px, 13vw, 54px); overflow-wrap: anywhere; }

.end { min-height: 100svh; padding: 52px var(--pad) max(28px, env(safe-area-inset-bottom)); }
.end-meta { display: flex; justify-content: space-between; font-size: 8px; border-bottom: 1px solid #555; padding-bottom: 11px; }
.end h2 { font-size: 72px; line-height: .82; margin: 82px 0 0; }
.end h3 { font: 38px/.9 Impact, sans-serif; color: #858580; margin: 10px 0 26px 52px; }
.end > p { font-size: 14px; line-height: 1.55; }
.stopped-tape { height: 72px; border: 1px solid #555; margin: 42px 0 28px; display: grid; grid-template-columns: 1fr 1px 1fr; place-items: center; }
.stopped-tape span { width: 34px; height: 34px; border: 1px solid #777; border-radius: 50%; }
.stopped-tape i { height: 42px; background: #555; }
.statement { border-top: 1px solid #555; padding-top: 18px; margin-bottom: 28px; color: #aaa; font-size: 12px; line-height: 1.65; }
.statement .mono { font-size: 8px; color: var(--paper); }
.light-button { margin-top: 10px; }
.end-links { display: flex; justify-content: space-between; font-size: 7px; margin: 30px 0 52px; }
.end-links a { min-height: 44px; display: grid; place-items: center; text-decoration: none; }
.end-year { text-align: center; font-size: 7px; color: #777; }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes reel-spin { to { transform: rotate(360deg); } }

@media (min-width: 560px) {
  body { padding: 58px 0; }
  .desktop-label { display: flex; }
  .site { border-radius: 2px; }
  .player-status { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
