:root {
  --bg: #040507;
  --bg-2: #090c11;
  --panel: rgba(11, 14, 19, 0.86);
  --panel-2: rgba(14, 18, 24, 0.94);
  --line: rgba(240, 244, 248, 0.09);
  --line-2: rgba(240, 244, 248, 0.16);
  --text: #eef2f5;
  --muted: #98a1ab;
  --soft: #69717b;
  --red: #d61e2a;
  --red-soft: rgba(214, 30, 42, 0.14);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
  --radius: 8px;
  --pointer-x: 50%;
  --pointer-y: 35%;
}

@property --hero-x {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

@property --hero-y {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 42%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #030405 0%, #040507 44%, #020304 100%);
  color: var(--text);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.02), transparent 20%),
    radial-gradient(circle at 50% 10%, rgba(214, 30, 42, 0.04), transparent 30%);
  opacity: 0.48;
}

.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(214, 30, 42, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.98), rgba(4, 5, 7, 0.98));
  transition: opacity 420ms ease, visibility 420ms ease;
}

.boot-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-loader-core {
  width: min(520px, calc(100vw - 48px));
  padding: 28px 28px 24px;
  border: 1px solid rgba(214, 30, 42, 0.32);
  background: rgba(8, 10, 13, 0.86);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 24px 100px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
}

.boot-loader-kicker,
.boot-loader-foot {
  color: var(--red);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.boot-loader-title {
  margin-top: 14px;
  font-family: "Instrument Serif", "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: 0;
}

.boot-loader-bar {
  position: relative;
  height: 2px;
  margin: 24px 0 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.boot-loader-bar span {
  position: absolute;
  inset: 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(214, 30, 42, 0.98), transparent);
  animation: boot-scan 1.1s linear infinite;
}

@keyframes boot-scan {
  from { transform: translateX(-28%); }
  to { transform: translateX(280%); }
}

.boot-loader-foot {
  text-align: right;
}

.ambient-vignette,
.cursor-spotlight,
.cursor-ring,
.cursor-telemetry {
  position: fixed;
  pointer-events: none;
}

.ambient-vignette {
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle 340px at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 28%, rgba(0, 0, 0, 0) 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.52));
  mix-blend-mode: multiply;
  display: none;
  opacity: 0;
}

.cursor-spotlight {
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle 260px at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05) 22%, rgba(255, 255, 255, 0) 58%);
  mix-blend-mode: screen;
  display: none;
  opacity: 0;
}

.cursor-ring {
  left: 0;
  top: 0;
  z-index: 24;
  width: 34px;
  height: 34px;
  opacity: 0;
  border: 1.5px solid rgba(214, 30, 42, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(214, 30, 42, 0.08), 0 0 22px rgba(214, 30, 42, 0.24);
  mix-blend-mode: screen;
  transform: translate3d(-50%, -50%, 0);
  transition:
    width 160ms ease,
    height 160ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease;
}

.cursor-ring::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: rgba(214, 30, 42, 0.92);
}

.cursor-telemetry {
  left: 0;
  top: 0;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid rgba(214, 30, 42, 0.46);
  background: rgba(5, 6, 8, 0.86);
  color: var(--red);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  box-shadow: 0 0 22px rgba(214, 30, 42, 0.16);
}

.cursor-telemetry-dot {
  width: 7px;
  height: 7px;
  background: var(--red);
  box-shadow: 0 0 14px rgba(214, 30, 42, 0.65);
}

@media (hover: hover) and (pointer: fine) {
  body,
  button,
  a,
  input,
  textarea {
    cursor: none;
  }

  .cursor-ring {
    opacity: 1;
  }

  .cursor-telemetry {
    opacity: 1;
  }
}

button,
a {
  font: inherit;
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: none;
  padding: 0;
}

img,
video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#grain,
.grid-overlay,
.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

#grain {
  opacity: 0.16;
  mix-blend-mode: soft-light;
}

.grid-overlay {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.15;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.scanline {
  height: 96px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.08) 48%, transparent 100%);
  opacity: 0.06;
  animation: sweep 7.8s linear infinite;
}

@keyframes sweep {
  from { transform: translateY(-18vh); }
  to { transform: translateY(118vh); }
}

.shell {
  position: relative;
  z-index: 1;
  padding: 22px 248px 52px 136px;
}

.section {
  position: relative;
  margin-bottom: 90px;
}

.rail {
  position: fixed;
  top: 24px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.rail-left {
  left: 24px;
  width: 90px;
}

.rail-right {
  right: 24px;
  width: 184px;
  gap: 14px;
}

.rail-brand,
.rail-foot,
.status-card,
.lang-switch {
  pointer-events: auto;
}

.rail-brand,
.status-card {
  border: 1px solid var(--line);
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.rail-brand {
  padding: 14px 12px;
}

.rail-mark {
  font: 700 18px/1.05 "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0;
}

.rail-sub,
.rail-muted {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0;
}

.rail-nav {
  pointer-events: auto;
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.rail-link {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.66);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  text-align: left;
}

.rail-index {
  color: var(--red);
  font: 700 12px/1 "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0;
}

.rail-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  line-height: 1;
}

.rail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 14px;
  border: 1px solid rgba(214, 30, 42, 0.24);
  border-radius: var(--radius);
  background: rgba(12, 14, 18, 0.62);
}

.rail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(214, 30, 42, 0.14);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(0.82); opacity: 0.65; }
}

.lang-switch {
  display: inline-flex;
  align-self: flex-end;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  background: rgba(8, 10, 14, 0.76);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
}

.lang-btn,
.seg-btn,
.action-btn,
.modal-close {
  position: relative;
  border-radius: var(--radius);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.lang-btn,
.seg-btn,
.action-btn {
  cursor: pointer;
}

.lang-btn {
  min-width: 36px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  color: var(--muted);
}

.lang-btn.active {
  border-color: rgba(214, 30, 42, 0.45);
  background: rgba(214, 30, 42, 0.12);
  color: var(--text);
}

.status-card {
  padding: 16px;
}

.status-card.tiny {
  padding-top: 14px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.status-row:last-child {
  margin-bottom: 0;
}

.status-row b {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0;
}

.mono,
.mono b {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}

.hero {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 84px 0 72px;
  overflow: hidden;
  --hero-x: 50%;
  --hero-y: 42%;
}

.hero-frame {
  position: absolute;
  inset: 16px 0 28px;
  border: 1px solid rgba(214, 30, 42, 0.28);
  border-radius: 10px;
}

.hero-frame.inner {
  inset: 36px 10.5% 48px;
  border-color: rgba(255, 255, 255, 0.08);
  opacity: 0.8;
}

.hero-spotlight {
  position: absolute;
  inset: -22%;
  z-index: 1;
  pointer-events: none;
  --hero-x: 50%;
  --hero-y: 42%;
  background: radial-gradient(
    circle 48% at var(--hero-x) var(--hero-y),
    rgba(255, 255, 255, 0.13) 0%,
    rgba(255, 255, 255, 0.11) 28%,
    rgba(255, 255, 255, 0.09) 52%,
    rgba(255, 255, 255, 0.05) 72%,
    rgba(255, 255, 255, 0.02) 86%,
    transparent 100%
  );
  mix-blend-mode: normal;
  opacity: 0.72;
  filter: blur(58px) saturate(0.82);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 940px);
  margin: 0 auto;
  padding-top: 40px;
  color: rgba(255, 255, 255, 0.38);
  transition: color 180ms ease, opacity 180ms ease;
}

.hero-copy .hero-name,
.hero-copy .hero-role {
  color: rgba(255, 255, 255, 0.4);
}

.hero-copy .hero-body,
.hero-copy .tag,
.hero-copy .kicker {
  color: rgba(255, 255, 255, 0.38);
}

.kicker,
.section-kicker,
.modal-kicker {
  margin: 0 0 16px;
  color: var(--red);
  font: 700 12px/1.2 "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0;
}

.hero-name {
  margin: 0;
  position: relative;
  font-family: "Instrument Serif", "Songti SC", "STSong", Georgia, serif;
  font-size: 128px;
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: 0 0 26px rgba(0, 0, 0, 0.74);
}

.hero-name::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  background: linear-gradient(180deg, rgba(246, 248, 250, 0.95), rgba(225, 229, 234, 0.9));
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.98;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.08));
}

.hero-role {
  margin: 24px 0 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.45;
}

.hero-body,
.section-copy {
  margin: 18px auto 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  color: #dfe5eb;
  font-size: 12px;
  letter-spacing: 0;
}

.hero-hud {
  position: absolute;
  width: 220px;
  padding: 16px 14px 14px;
  border: 1px solid var(--line);
  background: rgba(9, 11, 15, 0.82);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  text-align: left;
  box-shadow: var(--shadow);
  z-index: 2;
}

.hero-scan-beam {
  position: absolute;
  top: 18px;
  bottom: 32px;
  left: 12%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(214, 30, 42, 0.98), transparent);
  box-shadow: 0 0 16px rgba(214, 30, 42, 0.84), 0 0 46px rgba(214, 30, 42, 0.16);
  mix-blend-mode: screen;
  opacity: 0.92;
  animation: hero-beam-sweep 5.8s ease-in-out infinite alternate;
}

@keyframes hero-beam-sweep {
  from {
    left: 12%;
  }
  to {
    left: 86%;
  }
}

.hero-hud::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(214, 30, 42, 0.14);
  pointer-events: none;
}

.hud-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--red);
  font: 700 11px/1 "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0;
}

.hero-hud strong {
  display: block;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
}

.hero-hud small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.hud-a { left: 5%; top: 18%; }
.hud-b { right: 7%; top: 24%; }
.hud-c { left: 11%; bottom: 13%; width: 198px; }
.hud-d { right: 13%; bottom: 16%; width: 170px; }

.board-section,
.archive-section,
.contact-section {
  padding-top: 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head.compact {
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-family: "Instrument Serif", "Songti SC", "STSong", Georgia, serif;
  font-size: 48px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: 0;
}

.segmented {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.72);
  border-radius: var(--radius);
}

.seg-btn {
  min-width: 82px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  color: var(--muted);
}

.seg-btn.active {
  border-color: rgba(214, 30, 42, 0.42);
  background: rgba(214, 30, 42, 0.12);
  color: var(--text);
}

.board-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.board-tip,
.board-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: var(--radius);
}

.board-count {
  justify-self: end;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}

.board-nav {
  display: inline-flex;
  align-items: center;
  width: 132px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 8, 10, 0.62);
  border-radius: 0;
  justify-self: center;
}

.board-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.16);
}

.board-arrow {
  flex: 1;
  height: 100%;
  cursor: pointer;
  color: var(--muted);
  font-size: 30px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.board-arrow:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.board-viewport {
  overflow: hidden;
}

.board-track {
  display: flex;
  gap: 18px;
  align-items: stretch;
  overflow-x: auto;
  padding: 4px 6px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}

.board-track.dragging {
  cursor: grabbing;
  user-select: none;
}

.board-track::-webkit-scrollbar {
  display: none;
}

.evidence-card {
  position: relative;
  flex: 0 0 414px;
  display: grid;
  grid-template-rows: 278px 1fr;
  min-height: 560px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  cursor: pointer;
  transform: translateZ(0);
}

.board-track:not(.list-mode) .evidence-card {
  display: block;
  flex: 0 0 168px;
  height: 560px;
  min-height: 560px;
  transition:
    flex-basis 320ms ease,
    transform 320ms ease,
    opacity 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}

.board-track:not(.list-mode) .evidence-card.is-open,
.board-track:not(.list-mode) .evidence-card:hover,
.board-track:not(.list-mode) .evidence-card:focus-within {
  flex-basis: clamp(340px, 34vw, 520px);
  z-index: 2;
  filter: brightness(1.06);
}

.board-track:not(.list-mode) .evidence-card:hover,
.board-track:not(.list-mode) .evidence-card.is-open {
  border-color: rgba(214, 30, 42, 0.42);
  box-shadow: 0 28px 84px rgba(0, 0, 0, 0.42);
}

.board-track:not(.list-mode) .case-media {
  height: 100%;
}

.board-track:not(.list-mode) .case-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 18px 16px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.78) 44%, rgba(0, 0, 0, 0.92) 100%);
  transform: translateY(calc(100% - 136px));
  transition:
    transform 320ms ease,
    opacity 220ms ease;
}

.board-track:not(.list-mode) .evidence-card:hover .case-body,
.board-track:not(.list-mode) .evidence-card.is-open .case-body,
.board-track:not(.list-mode) .evidence-card:focus-within .case-body {
  transform: translateY(0);
}

.board-track:not(.list-mode) .case-overlay {
  opacity: 0.84;
  transition: opacity 220ms ease;
}

.board-track:not(.list-mode) .evidence-card:hover .case-overlay,
.board-track:not(.list-mode) .evidence-card.is-open .case-overlay {
  opacity: 1;
}

.board-track:not(.list-mode) .evidence-card:hover .case-cover,
.board-track:not(.list-mode) .evidence-card.is-open .case-cover {
  opacity: 0.12;
}

.board-track:not(.list-mode) .evidence-card:hover .case-video,
.board-track:not(.list-mode) .evidence-card.is-open .case-video {
  opacity: 0.4;
}

.board-track:not(.list-mode) .case-title {
  font-size: 23px;
}

.board-track:not(.list-mode) .case-copy {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.board-track:not(.list-mode) .case-footer {
  opacity: 0.82;
}

.evidence-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(214, 30, 42, 0.08);
  pointer-events: none;
}

.evidence-card:hover {
  border-color: rgba(214, 30, 42, 0.34);
}

.case-media {
  position: relative;
  overflow: hidden;
  background: #07090c;
}

.board-track:not(.list-mode) .case-media {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.08), transparent 52%),
    linear-gradient(180deg, rgba(12, 15, 20, 0.96), rgba(6, 8, 11, 1));
}

.case-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.08) 46%, rgba(0, 0, 0, 0.58) 100%),
    linear-gradient(90deg, rgba(214, 30, 42, 0.07), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.05));
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}

.case-media::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  pointer-events: none;
  z-index: 3;
}

.case-cover,
.case-video {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center center;
  background: #050608;
}

.case-cover {
  z-index: 0;
  filter: none;
  opacity: 1;
  transition: opacity 220ms ease;
}

.case-video {
  z-index: 1;
  opacity: 0;
  transition: opacity 220ms ease;
  filter: none;
}

.evidence-card.is-playing .case-video {
  opacity: 1;
}

.evidence-card.is-playing .case-cover {
  opacity: 0.2;
}

.case-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 4;
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.84));
}

.case-stamp {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #dfe5eb;
  font: 700 10px/1.2 "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0;
}

.case-stamp span:last-child {
  color: var(--red);
}

.case-body {
  display: grid;
  gap: 14px;
  padding: 18px 18px 20px;
}

.case-top,
.detail-grid {
  display: grid;
  gap: 10px;
}

.case-top {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.case-id {
  color: var(--red);
  font: 700 12px/1 "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0;
}

.case-kind {
  justify-self: end;
  color: var(--muted);
  font: 700 11px/1.3 "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0;
}

.case-title {
  margin: 0;
  font-family: "Instrument Serif", "Songti SC", "STSong", Georgia, serif;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 600;
}

.case-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.case-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  color: #d8dde3;
  font: 700 11px/1.3 "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0;
}

.case-footer .decrypt {
  color: var(--red);
}

.case-footer .source {
  color: var(--soft);
  text-align: right;
}

.board-track.list-mode {
  display: grid;
  grid-template-columns: 1fr;
  cursor: default;
}

.board-track.list-mode .evidence-card {
  flex: none;
  grid-template-columns: 320px 1fr;
  grid-template-rows: none;
  min-height: 262px;
}

.board-track.list-mode .case-media {
  min-height: 262px;
}

.board-track.list-mode .case-body {
  padding: 22px;
}

.board-track.list-mode .case-title {
  font-size: 32px;
}

.board-track.list-mode .case-copy {
  font-size: 14px;
}

.archive-grid {
  position: relative;
}

.archive-board {
  position: relative;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 0;
}

.archive-board::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -42px;
  width: 1px;
  height: calc(100% + 52px);
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  transform: translateX(-50%);
}

.archive-board::after {
  content: "";
  position: absolute;
  top: 0;
  left: 63%;
  width: 220px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(214, 30, 42, 0.78), transparent);
  box-shadow: 0 0 18px rgba(214, 30, 42, 0.2);
  transform: rotate(52deg);
  transform-origin: left center;
  pointer-events: none;
}

.archive-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(8, 10, 14, 0.68);
  min-height: 820px;
  padding: 22px;
}

.archive-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(214, 30, 42, 0.06);
  pointer-events: none;
}

.archive-panel[data-glow] {
  --glow-x: 50%;
  --glow-y: 48%;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}

.archive-panel[data-glow]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 240px at var(--glow-x) var(--glow-y), rgba(214, 30, 42, 0.14), rgba(255, 255, 255, 0.05) 24%, transparent 64%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 180ms ease;
}

.archive-panel[data-glow].is-glowing::after,
.archive-panel[data-glow]:hover::after {
  opacity: 1;
}

.archive-panel[data-glow]:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 30, 42, 0.26);
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.3);
}

.profile-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.profile-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.profile-head h3,
.report-panel h3 {
  margin: 8px 0 0;
  font-family: "Instrument Serif", "Songti SC", "STSong", Georgia, serif;
  font-size: 28px;
  line-height: 1.06;
  font-weight: 600;
}

.profile-roman {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
  letter-spacing: 0.06em;
}

.profile-scan {
  aspect-ratio: 0.88 / 1;
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #08090b;
  position: relative;
  overflow: hidden;
  --glow-x: 50%;
  --glow-y: 44%;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.profile-scan::before,
.profile-scan::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(214, 30, 42, 0.34);
}

.profile-scan::after {
  inset: 30px;
  border-color: rgba(255, 255, 255, 0.08);
}

.profile-scan[data-glow]:hover {
  transform: translateY(-3px);
  border-color: rgba(214, 30, 42, 0.28);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
}

.profile-scan-light {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle 220px at var(--glow-x) var(--glow-y), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 28%, transparent 62%);
  mix-blend-mode: screen;
  opacity: 0.76;
  pointer-events: none;
}

.profile-scan-beam {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 14%;
  z-index: 3;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(214, 30, 42, 0.98), transparent);
  box-shadow: 0 0 14px rgba(214, 30, 42, 0.84), 0 0 34px rgba(214, 30, 42, 0.2);
  mix-blend-mode: screen;
  opacity: 0.92;
  animation: photo-beam-sweep 4.8s ease-in-out infinite alternate;
}

@keyframes photo-beam-sweep {
  from {
    left: 14%;
  }
  to {
    left: 84%;
  }
}

.profile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) contrast(1.03) brightness(0.86);
}

.profile-scan-overlay {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 54%, rgba(0, 0, 0, 0.78) 100%);
}

.profile-scan-name {
  font-family: "Instrument Serif", "Songti SC", "STSong", Georgia, serif;
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
}

.profile-scan-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
}

.profile-scan-location {
  color: var(--muted);
  font-size: 11px;
}

.profile-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.profile-meta-row {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-meta-row span,
.timeline-tag,
.timeline-period,
.report-block-kicker,
.inventory-label,
.inventory-head,
.report-kicker,
.report-note {
  color: var(--red);
  font: 700 11px/1 "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0;
}

.profile-meta-row b {
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.open-card {
  margin-top: auto;
  border: 1px solid rgba(214, 30, 42, 0.58);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(214, 30, 42, 0.12),
      rgba(214, 30, 42, 0.12) 8px,
      rgba(255, 255, 255, 0.02) 8px,
      rgba(255, 255, 255, 0.02) 16px
    );
  padding: 16px 16px 18px;
}

.open-card-title {
  margin-top: 6px;
  font-family: "Instrument Serif", "Songti SC", "STSong", Georgia, serif;
  font-size: 30px;
  line-height: 1.02;
  font-weight: 600;
}

.open-card-copy {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.open-card-foot {
  margin-top: 16px;
  color: var(--text);
  font-size: 12px;
  text-align: right;
  letter-spacing: 0.08em;
}

.report-panel {
  display: grid;
  gap: 18px;
  align-content: start;
}

.report-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.report-kicker {
  font-size: 12px;
}

.report-note {
  font-size: 12px;
}

.report-copy {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  max-width: 760px;
}

.report-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.report-block {
  padding-top: 10px;
}

.report-block-kicker {
  margin-bottom: 18px;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.report-education,
.timeline,
.source-index {
  display: grid;
  gap: 18px;
}

.edu-item {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.edu-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  margin-bottom: 12px;
  border: 1px solid rgba(214, 30, 42, 0.28);
  background: rgba(214, 30, 42, 0.08);
  color: var(--text);
  font: 700 11px/1 "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
}

.edu-item h4,
.timeline-item h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.edu-item p,
.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.timeline {
  gap: 24px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 22px;
  padding: 0 0 0 14px;
  border-left: 2px solid rgba(214, 30, 42, 0.18);
}

.timeline-period {
  color: #c47a24;
  font-size: 15px;
  line-height: 1.45;
  white-space: nowrap;
  padding-top: 2px;
}

.timeline-copy h4 {
  margin-bottom: 6px;
  font-size: 19px;
}

.timeline-copy h4 span {
  color: rgba(255, 255, 255, 0.68);
  font-family: "Inter", "Noto Sans SC", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
}

.timeline-copy p {
  color: rgba(235, 237, 241, 0.84);
  font-size: 14px;
  line-height: 1.78;
}

.source-group {
  padding-top: 4px;
}

.source-group > span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.inventory-panel {
  display: grid;
  gap: 18px;
  align-content: start;
}

.inventory-head {
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
  letter-spacing: 0.08em;
}

.inventory-block {
  display: grid;
  gap: 12px;
}

.inventory-label {
  font-size: 11px;
}

.archive-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archive-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0;
  color: #dfe5eb;
  font-size: 12px;
  line-height: 1;
}

.inventory-status {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 44px 18px 30px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.02);
}

.inventory-status-symbol {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  color: var(--red);
  font-size: 46px;
  line-height: 1;
  clip-path: polygon(50% 0%, 100% 86%, 0% 86%);
}

.inventory-status-copy {
  color: var(--red);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.inventory-status-note {
  color: var(--muted);
  font-size: 12px;
}

.inventory-contact {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.inventory-contact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.inventory-contact-row b {
  color: var(--text);
  text-align: right;
}

.closing-panel {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.76);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  color: var(--text);
}

.action-btn:hover,
.seg-btn:hover,
.lang-btn:hover,
.rail-link:hover,
.modal-close:hover {
  border-color: rgba(214, 30, 42, 0.42);
  background: rgba(214, 30, 42, 0.10);
}

.link-btn {
  display: inline-flex;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  place-items: center;
  padding: 24px;
}

.modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 4, 0.74);
  backdrop-filter: blur(12px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1140px, 100%);
  max-height: min(88vh, 960px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  border: 1px solid var(--line-2);
  background: #0a0d11;
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.72);
}

.modal-media {
  min-height: 520px;
  background: #090b0e;
}

.modal-media-shell {
  position: relative;
  width: 100%;
  height: 100%;
}

.modal-media-shell:fullscreen {
  width: 100vw;
  height: 100vh;
  background: #050608;
}

.modal-media-shell canvas,
.modal-media-shell video,
.modal-media-shell img {
  position: absolute;
  inset: 0;
}

.modal-media-shell canvas {
  width: 100%;
  height: 100%;
  background: #050608;
  cursor: pointer;
  z-index: 1;
}

.modal-media-shell video {
  width: 100%;
  height: 100%;
  background: #050608;
  filter: none;
  cursor: pointer;
  object-fit: contain;
  opacity: 0.015;
  pointer-events: none;
  z-index: 0;
}

.modal-media-shell img {
  filter: none;
  object-fit: contain;
  z-index: 0;
}

.player-chrome {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.62), rgba(5, 6, 8, 0.88));
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
}

.player-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.player-btn.is-playing {
  color: #fff;
  border-color: rgba(214, 30, 42, 0.55);
  background: rgba(214, 30, 42, 0.12);
}

.player-scrub {
  min-width: 0;
}

.player-scrub input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--red);
  cursor: pointer;
}

.player-time {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  white-space: nowrap;
}

.modal-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  gap: 8px;
}

.modal-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: rgba(6, 8, 10, 0.88);
  color: var(--text);
  border-radius: var(--radius);
  cursor: pointer;
  line-height: 1;
}

.modal-copy {
  padding: 26px 26px 28px;
  overflow: auto;
}

.modal-copy h3 {
  margin: 0;
  font-family: "Instrument Serif", "Songti SC", "STSong", Georgia, serif;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 600;
}

.modal-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.detail-item {
  padding: 14px 14px 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
}

.detail-item.wide {
  grid-column: span 2;
}

.detail-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font: 700 11px/1 "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0;
}

.detail-item b {
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text);
}

.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 12;
  min-width: 160px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(9, 11, 15, 0.94);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.magnetic {
  will-change: transform;
}

.parallax {
  will-change: transform;
}

@media (max-width: 1360px) {
  .shell {
    padding-left: 112px;
    padding-right: 228px;
  }

  .archive-board {
    grid-template-columns: 280px minmax(0, 1fr) 270px;
  }

  .archive-panel {
    min-height: 760px;
  }
}

@media (max-width: 1120px) {
  .rail {
    position: static;
    width: auto;
    height: auto;
    margin: 16px;
    pointer-events: auto;
    flex-direction: row;
    align-items: center;
  }

  .rail-left,
  .rail-right {
    width: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }

  .rail-left {
    justify-content: space-between;
    padding: 0 16px;
  }

  .rail-nav {
    display: flex;
    margin-top: 0;
  }

  .rail-label {
    writing-mode: horizontal-tb;
  }

  .shell {
    padding: 0 16px 40px;
  }

  .hero {
    min-height: auto;
    padding-top: 66px;
  }

  .hero-name {
    font-size: 96px;
  }

  .hero-hud {
    position: static;
    width: auto;
    margin-top: 14px;
  }

  .hero {
    gap: 14px;
  }

  .section-head,
  .closing-panel {
    flex-direction: column;
    align-items: start;
  }

  .board-toolbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .board-nav {
    justify-self: start;
  }

  .board-track.list-mode .evidence-card {
    grid-template-columns: 1fr;
  }

  .archive-board {
    grid-template-columns: 1fr;
  }

  .archive-board::before,
  .archive-board::after {
    display: none;
  }

  .archive-panel {
    min-height: auto;
  }

  .modal-panel {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }
}

@media (max-width: 760px) {
  .hero-name {
    font-size: 64px;
  }

  .hero-role {
    font-size: 18px;
  }

  .section-title {
    font-size: 34px;
  }

  .board-toolbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .board-nav {
    width: 118px;
    height: 42px;
  }

  .evidence-card {
    flex-basis: 84vw;
    min-height: 474px;
    grid-template-rows: 236px 1fr;
  }

  .board-track.list-mode .evidence-card {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-item.wide {
    grid-column: span 1;
  }

  .player-chrome {
    grid-template-columns: 1fr;
  }

  .player-time {
    justify-content: space-between;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-period {
    white-space: normal;
  }

  .timeline-copy h4 span {
    display: block;
    margin-top: 4px;
  }

  .contact-actions {
    justify-content: start;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}
