:root {
  --orange: #d6ff3f;
  --orange-deep: #8fb000;
  --cream: #e7ecff;
  --paper: #eef2ff;
  --ink: #07091a;
  --ink-2: #1a2150;
  --term: #d6ff3f;
  --cobalt: #7c6bff;
  --red: #ff4d8d;
  --pepe: #7c6bff;
  --muted: #9aa6d6;
  --sans: "Segoe UI", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --display: "Arial Black", "Segoe UI", Arial, sans-serif;
  --mono: "Cascadia Mono", "Segoe UI Mono", Consolas, ui-monospace, monospace;
  --serif: Georgia, "Times New Roman", serif;
  --dock: 7.75rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100%;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--ink);
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }

::selection { background: var(--orange); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.8rem;
  top: 0;
  z-index: 80;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--cream);
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.skip:focus { transform: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: #0c1011;
  color: var(--term);
  padding: 1.5rem;
}

.boot[hidden] { display: none; }

.boot-panel {
  width: min(36rem, 100%);
  border: 1px solid rgba(128, 217, 155, 0.35);
  padding: 1.3rem 1.2rem 1rem;
  background:
    linear-gradient(rgba(128, 217, 155, 0.05) 1px, transparent 1px),
    #101614;
  background-size: 100% 1.6rem, auto;
}

.boot-mark {
  font-family: var(--display);
  letter-spacing: 0.14em;
  color: var(--cream);
  margin-bottom: 0.8rem;
}

.boot-log {
  min-height: 11rem;
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.7;
}

.boot-log li { opacity: 0; animation: lineIn 0.25s ease forwards; }
.boot-log li:nth-child(2) { color: var(--red); }
.boot-log li:last-child { color: var(--orange); }

.boot-skip {
  margin-top: 0.8rem;
  min-height: 44px;
  padding: 0 0.9rem;
  color: var(--cream);
  border: 1px solid rgba(248, 232, 199, 0.35);
}

.dock {
  position: fixed;
  z-index: 40;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.4rem;
  background: var(--ink);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.dock a {
  width: 4.6rem;
  min-height: 3.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--cream);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dock svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.dock a[aria-current="page"] {
  background: var(--cobalt);
  color: white;
}

.dock a:hover { background: var(--ink-2); }
.dock a[aria-current="page"]:hover { background: var(--cobalt); }

.os-status {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.os-status.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.scene {
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  padding: clamp(1rem, 2.5vh, 1.75rem) calc(var(--dock) + clamp(1rem, 2vw, 1.5rem));
}
.js .scene { display: none; }
.js .scene.is-on { display: flex; animation: openWin 0.45s ease; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease;
}

.btn-buy {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--orange-deep);
}

.btn-buy:hover { transform: translateY(-2px); }
.btn-buy:active { transform: translateY(2px); box-shadow: none; }

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: rgba(21, 26, 28, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(248, 232, 199, 0.35);
}

.btn-line:hover,
.btn-ghost:hover { transform: translateY(-2px); }

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--term);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(128, 217, 155, 0.6);
  animation: pulse 1.8s ease-in-out infinite;
}

.path {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.path-light { color: #b7c0b8; }

.next-cmd { margin-top: 1.4rem; }
.next-cmd a {
  font-family: var(--mono);
  color: var(--cobalt);
}

.fine { margin: 0.7rem auto 0; font-size: 0.86rem; color: var(--muted); max-width: 36rem; text-align: center; }
.fine-light { color: #c9c2b6; }

.scene-home {
  --mx: 0;
  --my: 0;
  --px: 50%;
  --py: 42%;
  position: relative;
  color: var(--cream);
  background: #07091a;
  overflow: hidden;
}
.home-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.fx-grid {
  position: absolute;
  inset: -12%;
  background:
    linear-gradient(rgba(214, 255, 63, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 255, 63, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  translate: calc(var(--mx) * -36px) calc(var(--my) * -28px);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 48%, #000 35%, transparent 78%);
}
.fx-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}
.fx-glow-violet {
  width: min(52vw, 640px);
  height: min(52vw, 640px);
  left: 46%;
  top: 42%;
  background: radial-gradient(circle, rgba(124, 107, 255, 0.55), transparent 68%);
  translate: calc(-50% + var(--mx) * 70px) calc(-50% + var(--my) * 50px);
  animation: drift 9s ease-in-out infinite;
}
.fx-glow-acid {
  width: min(28vw, 340px);
  height: min(28vw, 340px);
  left: 18%;
  top: 70%;
  background: radial-gradient(circle, rgba(214, 255, 63, 0.28), transparent 70%);
  translate: calc(-50% + var(--mx) * -90px) calc(-50% + var(--my) * -40px);
  animation: drift 11s ease-in-out infinite reverse;
}
.fx-glow-hot {
  width: min(22vw, 260px);
  height: min(22vw, 260px);
  left: 78%;
  top: 18%;
  background: radial-gradient(circle, rgba(255, 77, 141, 0.22), transparent 70%);
  translate: calc(-50% + var(--mx) * 50px) calc(-50% + var(--my) * 70px);
}
.fx-spot {
  position: absolute;
  width: 340px;
  height: 340px;
  left: var(--px);
  top: var(--py);
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(231, 236, 255, 0.16), transparent 68%);
  mix-blend-mode: screen;
}

.desktop {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  height: min(760px, calc(100svh - 3.4rem));
  margin-inline: auto;
}
.os-title {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: min(20rem, 46%);
  text-align: right;
}
.os-kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.os-title h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin: 0.25rem 0 0.45rem;
}
.os-live {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.output {
  position: absolute;
  z-index: 1;
  left: 48%;
  top: 43%;
  width: min(760px, 66%);
  margin: 0;
  translate: calc(-50% + var(--mx) * -18px) calc(-46% + var(--my) * -14px);
}
.output img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  margin-inline: auto;
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.38));
}
.output figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
  text-align: center;
}

.obj {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.2rem;
  width: 11.2rem;
  min-height: 6.4rem;
  padding: 0.75rem 0.7rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 12px 0 rgba(21, 26, 28, 0.16);
  rotate: var(--tilt);
  translate: calc(var(--mx) * var(--d) * 26px) calc(var(--my) * var(--d) * 18px);
}
.obj:hover {
  z-index: 5;
  translate: calc(var(--mx) * var(--d) * 26px) calc(var(--my) * var(--d) * 18px - 8px);
  scale: 1.04;
}
.obj strong { font-size: 0.98rem; letter-spacing: -0.02em; }
.obj span, .obj em { font-size: 0.82rem; font-style: normal; color: var(--muted); }
.obj-kicker {
  font-family: var(--mono);
  font-size: 0.68rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt) !important;
}

.obj-receipt,
.obj-file,
.obj-market,
.tape,
.final-tape,
.exhibit { --muted: #5c564c; }
.obj-receipt { top: 16%; left: 0; width: 12rem; --tilt: -8deg; --d: 1.15; background: #f7f4ee; color: #14121c; border-top: 8px solid var(--hot, #ff4d8d); }
.obj-term {
  top: 46%;
  left: 4%;
  width: 11rem;
  --tilt: 6deg;
  --d: -0.85;
  background: #1a1030;
  color: var(--term);
  font-family: var(--mono);
}
.obj-term span, .obj-term em { color: #b7d7c4; }
.obj-term .obj-kicker { color: var(--orange) !important; }
.obj-file { top: 8%; left: 18%; width: 10.4rem; --tilt: 4deg; --d: 0.55; background: #f4f6ff; color: #14121c; border-top: 8px solid var(--cobalt); }
.obj-eth { right: 0; top: 50%; width: 11.4rem; --tilt: -5deg; --d: -1.05; background: #241b4a; color: var(--cream); border: 1px solid rgba(124, 107, 255, 0.45); }
.obj-eth span { color: #d9d0c2; }
.obj-radio { left: 7%; bottom: 15%; width: 10.6rem; --tilt: -3deg; --d: 0.7; background: #1b2430; color: white; }
.obj-radio span { color: #c9d4e4; }
.obj-market { right: 12%; bottom: 15%; width: 11.6rem; --tilt: 7deg; --d: 0.95; background: var(--term); color: #14121c; border: 0; }

.home-bar {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 0;
  translate: -50% 0;
  width: min(100%, 42rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.command {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.address-strip {
  width: min(100%, 40rem);
  text-align: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.scene-home .btn-line {
  color: var(--cream);
  border-color: rgba(231, 236, 255, 0.45);
}
.scene-home .address-strip,
.scene-home .address-strip code,
.scene-home .os-kicker,
.scene-home .output figcaption { color: #c9d2ff; }
.scene-home .address-strip code { color: var(--term); }

.scene-accident {
  background:
    radial-gradient(circle at 12px 0, transparent 8px, #120818 8.5px) 0 0 / 22px 16px repeat-x,
    #120818;
}
.tape {
  width: min(36rem, 100%);
  margin: 0 auto;
  background: #fffefb;
  color: var(--ink);
  padding: 1.6rem 1.4rem 1.4rem;
  text-align: center;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}
.tape h2 {
  font-family: var(--mono);
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.tape-lead { margin: 0.4rem 0 1rem; }
.story-meter {
  border-top: 1px dashed rgba(21, 26, 28, 0.35);
  border-bottom: 1px dashed rgba(21, 26, 28, 0.35);
  padding: 0.8rem 0;
}
.meter-label, .meter-unit {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.meter-num {
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0.2rem 0;
}
.meter-bill { color: #9a6218; }
.printout { width: min(100%, 24rem); margin: 0.9rem auto 0; text-align: left; }
.printout li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.55rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(21, 26, 28, 0.08);
  font-family: var(--mono);
  font-size: 0.95rem;
}
.printout span { color: var(--red); }
.tape-close { margin-top: 0.9rem; font-family: var(--serif); font-style: italic; }

.scene-lab {
  background:
    linear-gradient(rgba(124, 107, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 107, 255, 0.18) 1px, transparent 1px),
    #0c0820;
  background-size: 22px 22px, 22px 22px, auto;
  color: var(--cream);
}
.lab-layout {
  width: min(880px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
}
.lab-copy { width: min(100%, 24rem); text-align: center; }
.lab-copy h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0.3rem 0 0.6rem;
}
.view-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; margin: 1rem 0; }
.view-switch button {
  min-height: 44px;
  padding: 0 0.8rem;
  border: 1px solid rgba(248, 232, 199, 0.3);
  color: var(--cream);
}
.view-switch button[aria-pressed="true"] {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: white;
}
.readout {
  margin: 0.5rem auto 0;
  max-width: 28rem;
  text-align: center;
  border-top: 3px solid var(--orange);
  padding: 0.7rem 0.4rem 0;
}
.readout dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.readout dd { margin: 0.25rem 0 0; font-size: 1.15rem; }
.specimen {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1;
  justify-self: center;
  background: #d9e4ff;
  border: 1px solid rgba(128, 217, 155, 0.25);
  overflow: hidden;
}
.specimen img { width: 100%; height: 100%; object-fit: contain; background: #d9e4ff; }
.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 18%;
  background: linear-gradient(rgba(47, 107, 255, 0.0), rgba(47, 107, 255, 0.22), rgba(47, 107, 255, 0));
  animation: scan 3.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.hotspots { position: absolute; inset: 0; z-index: 3; }
.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  min-height: 36px;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--orange);
}
.hotspot:hover,
.hotspot:focus-visible,
.hotspot.is-on { background: var(--orange); color: var(--ink); }
.specimen.is-incident .hotspots,
.specimen.is-incident .scanline { display: none; }

.scene-token {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(ellipse 48% 42% at 12% 18%, rgba(124, 107, 255, 0.42), transparent 70%),
    radial-gradient(ellipse 40% 46% at 88% 82%, rgba(214, 255, 63, 0.14), transparent 68%),
    radial-gradient(ellipse 30% 26% at 72% 8%, rgba(255, 77, 141, 0.16), transparent 72%),
    radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(5, 7, 18, 0.55) 78%),
    #090d22;
}
.scene-token::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(231, 236, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 236, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 20%, transparent 75%);
  animation: gridShift 18s linear infinite;
}
.scene-token .machine { position: relative; z-index: 1; }
.machine {
  width: min(1000px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.machine-head { width: 100%; text-align: center; }
.machine-body {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}
.spec-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 420px;
  padding: 1.1rem;
  border: 1px solid rgba(214, 255, 63, 0.35);
  background: rgba(5, 7, 18, 0.45);
}
.machine h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0.25rem 0 0.45rem;
}
.status-live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--term);
}
.spec { width: 100%; margin: 0 auto 0.9rem; text-align: left; }
.spec div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(248, 232, 199, 0.12);
  font-family: var(--mono);
}
.spec dt { color: #8e9a96; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.08em; }
.spec dd { margin: 0; overflow-wrap: anywhere; }
.link-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem; margin-top: 1rem; }
.chart-bay {
  width: 100%;
  height: 420px;
  background: #050712;
  border: 1px solid rgba(214, 255, 63, 0.45);
  display: flex;
  flex-direction: column;
}
.chart-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1;
  border: 0;
  background: #050712;
}
.bay-bar {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.65rem 0.8rem;
  background: #1b2228;
  font-family: var(--mono);
  font-size: 0.78rem;
}
.bay-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--cobalt); display: block; }
.bay-bar span:first-child { background: var(--red); }
.bay-bar span:nth-child(2) { background: var(--orange); }
.bay-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.bay-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  font-family: var(--mono);
  font-size: 0.78rem;
}
.bay-foot a { color: var(--term); }

.scene-archive {
  color: var(--cream);
  background:
    radial-gradient(circle at 18px 18px, rgba(124, 107, 255, 0.22) 1.4px, transparent 1.6px),
    #101433;
  background-size: 28px 28px, auto;
}
.archive {
  width: min(960px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.archive-head { width: 100%; text-align: center; }
.archive-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--cream);
}
.gallery,
.index-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}
.exhibit {
  background: #fffaf1;
  color: var(--ink);
  padding: 0.75rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  box-shadow: 0 10px 0 rgba(21, 26, 28, 0.06);
}
.exhibit img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  margin-inline: auto;
  background: #efeae2;
}
.exhibit figcaption,
.exhibit em {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
}
.exhibit span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.exhibit strong {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--display);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}
.exhibit-mascot { background: var(--cream); }
.exhibit-note { background: var(--term); color: #14121c; }
.exhibit-link,
.exhibit-paper { min-height: 8.75rem; }
.exhibit-banner { width: 100%; }
.exhibit-banner img { height: 200px; background: transparent; }
.exhibit-paper {
  grid-column: 1 / -1;
  width: calc((100% - 1.7rem) / 3);
  margin-inline: auto;
  background: white;
  border: 2px dashed var(--ink);
}
.next-on-paper { width: 100%; margin: 0.2rem auto 0; text-align: center; }

.scene-radio {
  background: #100818;
  color: var(--cream);
}
.scene-radio.is-telegram { background: #10141c; }
.radio {
  width: min(820px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.radio-copy,
.channel-panel {
  min-height: 320px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(248, 232, 199, 0.2);
  padding: 1.3rem 1.1rem;
}
.radio h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin: 0.25rem 0 0.5rem;
}
.channels { display: flex; justify-content: center; gap: 0.5rem; margin: 1rem auto; }
.channels button {
  min-height: 48px;
  padding: 0 0.9rem;
  border: 1px solid rgba(248, 232, 199, 0.3);
  color: var(--cream);
}
.channels button[aria-selected="true"] {
  background: var(--term);
  color: var(--ink);
  border-color: var(--term);
}
.scene-radio.is-telegram .channels button[aria-selected="true"] {
  background: var(--cobalt);
  color: white;
  border-color: var(--cobalt);
}
.wave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: min(100%, 280px);
  margin-inline: auto;
  gap: 4px;
  height: 64px;
  color: var(--term);
}
.scene-radio.is-telegram .wave { color: var(--cobalt); }
.wave span {
  flex: 1;
  height: 30%;
  background: currentColor;
  transform-origin: bottom;
  animation: bar 1.05s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.07s);
}
.channel-panel { background: rgba(0, 0, 0, 0.25); }
.channel-kicker {
  font-family: var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--orange);
}
.channel-name {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  margin: 0.3rem 0 1rem;
}
.channel-panel .btn { margin: 0.25rem; }
.scene-radio .btn-line { color: var(--cream); border-color: rgba(248, 232, 199, 0.4); }

.scene-finale {
  background: #07091a;
  color: var(--cream);
}
.final-tape {
  width: min(34rem, 100%);
  margin-inline: auto;
  background: #fffefb;
  color: var(--ink);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.final-lines li {
  font-family: var(--mono);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  padding: 0.2rem 0;
  border-bottom: 1px dashed rgba(21, 26, 28, 0.25);
}
.final-tape h2 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0.45rem 0;
}
.final-face { width: min(100%, 200px); margin: 0.35rem auto 0.8rem; border: 3px solid var(--ink); }
.btn-huge { min-height: 56px; padding-inline: 1.4rem; font-size: 1.05rem; }
.final-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem 1rem; margin-top: 1rem; }
.final-links a { font-family: var(--mono); font-size: 0.85rem; }

.js .scene-accident.is-on .tape {
  animation: unroll 0.9s ease both;
}
.js .scene-accident.is-on .printout li,
.js .scene-finale.is-on .final-lines li,
.js .scene-finale.is-on .final-tape h2,
.js .scene-finale.is-on .final-face,
.js .scene-finale.is-on .btn-huge {
  animation: lineIn 0.45s ease both;
}
.js .scene-accident.is-on .printout li:nth-child(2) { animation-delay: 0.08s; }
.js .scene-accident.is-on .printout li:nth-child(3) { animation-delay: 0.16s; }
.js .scene-accident.is-on .printout li:nth-child(4) { animation-delay: 0.24s; }
.js .scene-accident.is-on .printout li:nth-child(5) { animation-delay: 0.32s; }
.js .scene-accident.is-on .printout li:nth-child(6) { animation-delay: 0.4s; }
.js .scene-finale.is-on .final-lines li:nth-child(2) { animation-delay: 0.15s; }
.js .scene-finale.is-on .final-lines li:nth-child(3) { animation-delay: 0.3s; }
.js .scene-finale.is-on .final-tape h2 { animation-delay: 0.45s; }
.js .scene-finale.is-on .final-face { animation-delay: 0.6s; }
.js .scene-finale.is-on .btn-huge { animation-delay: 0.75s; }

@keyframes unroll {
  from { clip-path: inset(0 0 92% 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes lineIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes openWin {
  from { opacity: 0; transform: translateY(10px) scale(0.995); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 6px rgba(128, 217, 155, 0); }
}
@keyframes scan {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(460%); }
}
@keyframes bar {
  0%, 100% { height: 22%; }
  50% { height: 100%; }
}
@keyframes drift {
  0%, 100% { scale: 1; }
  50% { scale: 1.08; }
}
@keyframes gridShift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}

@media (max-width: 900px) {
  .scene-home { overflow: visible; }
  .desktop {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: stretch;
    gap: 0.75rem;
  }
  .os-title,
  .output,
  .obj,
  .home-bar {
    position: static;
    width: auto;
    rotate: none;
    translate: none;
    scale: none;
  }
  .os-title { text-align: center; }
  .os-live { justify-content: center; }
  .output { width: min(100%, 560px); }
  .output img { max-height: 48vh; }
  .obj { width: auto; }
  .home-bar { translate: none; }
  .os-title,
  .output,
  .home-bar { grid-column: 1 / -1; }
  .lab-layout,
  .machine-body,
  .radio,
  .gallery { grid-template-columns: 1fr; }
  .gallery { width: min(420px, 100%); }
  .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exhibit-paper { width: calc((100% - 0.85rem) / 2); }
  .lab-copy,
  .specimen,
  .spec-card,
  .chart-bay { width: min(100%, 520px); margin-inline: auto; }
  .chart-bay,
  .spec-card { height: auto; min-height: 0; }
  .chart-frame { height: 360px; flex: none; }
}

@media (max-width: 760px) {
  :root { --dock: 0px; }
  .scene-home,
  .scene-accident,
  .scene-lab,
  .scene-token,
  .scene-archive,
  .scene-radio,
  .scene-finale { padding-left: 0.85rem; padding-right: 0.85rem; padding-bottom: 6.2rem; }
  .dock {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    transform: none;
    flex-direction: row;
    justify-content: space-between;
    border-radius: 0;
    padding: 0.25rem 0.2rem calc(0.25rem + env(safe-area-inset-bottom));
  }
  .dock a {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    min-height: 3.4rem;
    font-size: 0.52rem;
    letter-spacing: 0;
    line-height: 1.05;
    padding: 0.15rem 0.05rem;
    text-align: center;
  }
  .os-status { bottom: 5.4rem; }
  .output img { max-height: 46vh; }
  .chart-frame { height: 300px; min-height: 0; }
  .hotspot { font-size: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .obj,
  .fx-glow,
  .fx-grid { translate: none; rotate: none; scale: none; }
  .fx-spot { translate: -50% -50%; }
}
