:root {
  /* investigative editorial voice; IBM Plex Sans Condensed** elevator-directory labels */
  --ink: #07111F;
  --prussian: #163B63;
  --cyan: #7DE3FF;
  --violet: #9A7CFF;
  --paper: #E8E0C8;
  --alarm: #FF4D3D;
  --graphite: #2A3242;
  --display: 'Bricolage Grotesque', sans-serif;
  --serif: 'Literata', serif;
  --condensed: 'IBM Plex Sans Condensed', sans-serif;
  --font-audit: 'Condensed**';
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  overflow-x: hidden;
  font-family: var(--serif);
}

.blueprint-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .36;
  background:
    repeating-linear-gradient(90deg, rgba(125,227,255,.045) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(232,224,200,.035) 0 1px, transparent 1px 80px),
    radial-gradient(circle at 20% 10%, rgba(154,124,255,.12), transparent 34%),
    radial-gradient(circle at 85% 50%, rgba(125,227,255,.09), transparent 28%);
  mix-blend-mode: screen;
}

.case-index {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 30;
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(125,227,255,.35);
  background: rgba(7,17,31,.74);
  backdrop-filter: blur(12px);
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: .08em;
  box-shadow: 0 0 0 1px rgba(42,50,66,.75), 0 18px 50px rgba(0,0,0,.28);
}

.index-title { color: var(--cyan); font-size: 12px; margin-bottom: 4px; }
.case-index a { color: rgba(232,224,200,.68); text-decoration: none; font-size: 13px; }
.case-index a::before { content: attr(data-floor) ' / '; color: var(--violet); }
.case-index a.active { color: var(--paper); text-shadow: 0 0 14px var(--cyan); }

.elevator-shaft {
  position: fixed;
  left: 50%;
  top: 0;
  width: 86px;
  height: 100vh;
  transform: translateX(-50%);
  z-index: 18;
  pointer-events: none;
}

.shaft-line {
  position: absolute;
  left: 38px;
  top: 0;
  bottom: 0;
  width: 10px;
  background: linear-gradient(180deg, transparent, var(--cyan), var(--violet), var(--cyan), transparent);
  box-shadow: 0 0 30px rgba(125,227,255,.45);
  opacity: .9;
}

.shaft-line::before, .shaft-line::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22px;
  border-left: 1px solid rgba(125,227,255,.22);
  border-right: 1px solid rgba(125,227,255,.22);
}
.shaft-line::before { right: 18px; }
.shaft-line::after { left: 18px; }

.floor-lights { position: absolute; inset: 7vh 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
.floor-lights span { width: 8px; height: 8px; border-radius: 50%; background: var(--graphite); box-shadow: 0 0 0 rgba(125,227,255,0); transition: .35s; }
.floor-lights span.active { background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }

.elevator-car {
  position: absolute;
  left: 14px;
  top: 10vh;
  width: 58px;
  height: 78px;
  border: 1px solid var(--cyan);
  background: linear-gradient(135deg, rgba(125,227,255,.24), rgba(22,59,99,.58));
  box-shadow: 0 0 30px rgba(125,227,255,.22), inset 0 0 18px rgba(232,224,200,.1);
  transition: transform .25s cubic-bezier(.16,.84,.25,1);
}
.car-window { width: 34px; height: 26px; margin: 10px auto; border: 1px solid rgba(232,224,200,.55); background: rgba(232,224,200,.12); }
.car-label { font: 600 10px var(--condensed); text-align: center; letter-spacing: .12em; color: var(--paper); }

.bureau-floor {
  position: relative;
  min-height: 100vh;
  padding: 12vh 8vw;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  border-bottom: 1px solid rgba(125,227,255,.12);
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(125,227,255,.16) 49.8% 50.2%, transparent 50.2%),
    repeating-linear-gradient(135deg, rgba(42,50,66,.18) 0 2px, transparent 2px 18px);
}

.bureau-floor::before {
  content: '';
  position: absolute;
  inset: 5vh 5vw;
  border: 1px solid rgba(125,227,255,.12);
  pointer-events: none;
}

.floor-number {
  position: absolute;
  right: 6vw;
  top: 8vh;
  font: 800 clamp(52px, 10vw, 150px) var(--display);
  color: rgba(125,227,255,.08);
  -webkit-text-stroke: 1px rgba(125,227,255,.18);
}

.room-left .acetate-sheet { grid-column: 2 / span 4; }
.room-left .artifact { grid-column: 7 / span 4; }
.room-right .acetate-sheet { grid-column: 8 / span 4; }
.room-right .artifact { grid-column: 2 / span 4; }

.acetate-sheet {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 4vw, 54px);
  background: linear-gradient(135deg, rgba(232,224,200,.92), rgba(232,224,200,.72));
  color: var(--ink);
  border: 1px solid rgba(125,227,255,.75);
  box-shadow: 18px 18px 0 rgba(22,59,99,.42), 0 24px 70px rgba(0,0,0,.36);
  transform: translateY(46px) rotate(-1deg);
  opacity: .35;
  transition: transform .8s cubic-bezier(.17,.84,.29,1), opacity .8s;
}
.bureau-floor.active .acetate-sheet { transform: translateY(0) rotate(0deg); opacity: 1; }

.acetate-sheet::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 56px;
  height: 18px;
  background: rgba(125,227,255,.28);
  border: 1px solid rgba(22,59,99,.25);
}

.specimen-tag {
  font: 700 13px var(--condensed);
  letter-spacing: .14em;
  color: var(--prussian);
  text-transform: uppercase;
  margin-bottom: 24px;
}

h1 { margin: 0 0 18px; font: 800 clamp(36px, 5.5vw, 82px)/.9 var(--display); letter-spacing: -.04em; }
p { margin: 0; font-size: clamp(16px, 1.3vw, 21px); line-height: 1.55; }

.artifact { position: relative; min-height: 390px; z-index: 1; transform: translateY(60px) scale(.94); opacity: .3; transition: .9s cubic-bezier(.17,.84,.29,1); }
.bureau-floor.active .artifact { transform: translateY(0) scale(1); opacity: 1; }

.cover-floor { overflow: hidden; place-items: center; text-align: center; background: radial-gradient(circle at 50% 45%, rgba(22,59,99,.9), var(--ink) 62%); }
.desk-plane { position: absolute; inset: 12vh 12vw; background: rgba(42,50,66,.28); border: 1px solid rgba(232,224,200,.22); box-shadow: inset 0 0 80px rgba(0,0,0,.5); transform: rotate(-2deg); }
.cover-stamp { grid-column: 1 / -1; z-index: 2; font: 800 clamp(58px, 14vw, 190px)/.82 var(--display); color: transparent; -webkit-text-stroke: 2px var(--alarm); text-transform: lowercase; transform: rotate(-7deg); text-shadow: 0 0 24px rgba(255,77,61,.22); }
.cover-tag { grid-column: 1 / -1; z-index: 3; margin-top: 26px; padding: 10px 18px; border: 1px solid var(--cyan); background: rgba(7,17,31,.78); font: 600 16px var(--condensed); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.cover-note { grid-column: 4 / span 6; z-index: 2; color: rgba(232,224,200,.8); margin-top: 22px; }
.cyan-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--cyan); box-shadow: 0 0 30px var(--cyan); }
.dossier-corners span { position: absolute; width: 80px; height: 80px; border-color: var(--paper); opacity: .45; }
.dossier-corners span:nth-child(1) { left: 9vw; top: 10vh; border-left: 2px solid; border-top: 2px solid; }
.dossier-corners span:nth-child(2) { right: 9vw; top: 10vh; border-right: 2px solid; border-top: 2px solid; }
.dossier-corners span:nth-child(3) { left: 9vw; bottom: 10vh; border-left: 2px solid; border-bottom: 2px solid; }
.dossier-corners span:nth-child(4) { right: 9vw; bottom: 10vh; border-right: 2px solid; border-bottom: 2px solid; }

.redaction-reveal { margin-top: 28px; width: 100%; border: 0; padding: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; font-family: var(--condensed); text-transform: uppercase; letter-spacing: .08em; }
.redaction-reveal span, .redaction-reveal strong { display: block; padding: 12px 14px; transition: .35s; }
.redaction-reveal span { background: var(--ink); color: transparent; box-shadow: inset 0 0 0 1px rgba(255,77,61,.5); }
.redaction-reveal strong { max-height: 0; overflow: hidden; padding-top: 0; padding-bottom: 0; color: var(--alarm); }
.redaction-reveal.revealed span { transform: translateX(16px); opacity: .25; }
.redaction-reveal.revealed strong { max-height: 100px; padding: 12px 14px; }

.courthouse { position: absolute; left: 12%; bottom: 0; width: 76%; height: 170px; background: linear-gradient(180deg, var(--graphite), var(--ink)); border: 2px solid rgba(232,224,200,.2); clip-path: polygon(10% 32%, 50% 0, 90% 32%, 90% 100%, 10% 100%); }
.slips i { position: absolute; width: 80px; height: 42px; background: var(--paper); border: 1px solid var(--cyan); box-shadow: 0 0 20px rgba(125,227,255,.25); animation: slipRise 4s ease-in-out infinite; }
.slips i:nth-child(1){ left: 8%; bottom: 190px; animation-delay: 0s; }.slips i:nth-child(2){ left: 28%; bottom: 245px; animation-delay: .5s; }.slips i:nth-child(3){ left: 50%; bottom: 210px; animation-delay: 1s; }.slips i:nth-child(4){ left: 66%; bottom: 275px; animation-delay: 1.5s; }.slips i:nth-child(5){ left: 42%; bottom: 325px; animation-delay: 2s; }
.red-thread { position: absolute; left: 12%; top: 18%; width: 75%; height: 2px; background: var(--alarm); transform: rotate(-14deg); box-shadow: 0 0 12px rgba(255,77,61,.5); }

.caliper { position: absolute; inset: 40px 20% auto; height: 200px; border-left: 5px solid var(--cyan); border-right: 5px solid var(--cyan); border-top: 2px solid var(--cyan); opacity: .8; }
.newspaper-bundle { position: absolute; left: 18%; top: 140px; width: 66%; height: 170px; background: var(--paper); color: var(--prussian); border: 2px solid var(--ink); transform: perspective(500px) rotateX(14deg); box-shadow: 18px 18px 0 rgba(154,124,255,.35); font: 800 24px var(--display); display: grid; place-items: center; }
.newspaper-bundle span { position: absolute; inset: 18px; border-top: 2px solid var(--graphite); border-bottom: 2px solid var(--graphite); }
.newspaper-bundle span:nth-child(2) { inset: 52px 18px; }.newspaper-bundle span:nth-child(3) { inset: 86px 18px; }
.fold-lines { position: absolute; inset: 115px 24% auto; height: 220px; background: repeating-linear-gradient(90deg, transparent 0 34px, rgba(255,77,61,.55) 34px 36px); opacity: .5; }

.green-room { box-shadow: 18px 18px 0 rgba(22,59,99,.42), 0 0 60px rgba(125,227,255,.12); }
.lamp { position: absolute; left: 35%; top: 35px; width: 130px; height: 70px; background: radial-gradient(ellipse at center, #7DE3FF, #163B63 68%); border-radius: 80px 80px 10px 10px; box-shadow: 0 80px 110px rgba(125,227,255,.25); }
.lamp::before { content: ''; position: absolute; left: 62px; top: -38px; width: 6px; height: 40px; background: var(--paper); }
.desk-slips i { position: absolute; width: 120px; height: 48px; background: var(--paper); border-left: 8px solid var(--violet); transform: rotate(var(--r)); left: var(--x); top: var(--y); animation: sortSlip 3.5s ease-in-out infinite alternate; }
.desk-slips i:nth-child(1){--x:15%;--y:180px;--r:-7deg}.desk-slips i:nth-child(2){--x:38%;--y:210px;--r:4deg}.desk-slips i:nth-child(3){--x:24%;--y:275px;--r:1deg}.desk-slips i:nth-child(4){--x:52%;--y:270px;--r:-4deg}

.tube-path { position: absolute; left: 6%; top: 34%; width: 88%; height: 130px; border: 4px solid rgba(125,227,255,.65); border-left-color: transparent; border-radius: 90px; box-shadow: inset 0 0 30px rgba(125,227,255,.18), 0 0 24px rgba(125,227,255,.18); }
.tube-capsule { position: absolute; left: 14%; top: 45%; width: 96px; height: 38px; border-radius: 30px; background: linear-gradient(90deg, var(--paper), var(--cyan)); border: 2px solid var(--prussian); animation: capsuleMove 4.8s cubic-bezier(.45,0,.2,1) infinite; }
.warning-buoys i { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--alarm); box-shadow: 0 0 20px var(--alarm); animation: blink 1.4s infinite; }
.warning-buoys i:nth-child(1){left:20%;top:30%}.warning-buoys i:nth-child(2){left:55%;top:62%;animation-delay:.4s}.warning-buoys i:nth-child(3){left:78%;top:34%;animation-delay:.8s}

.vault-floor { background-color: rgba(7,17,31,.78); }
.vault-artifact { min-height: 440px; }
.vault-door { position: absolute; top: 80px; width: 38%; height: 280px; background: linear-gradient(135deg, var(--graphite), var(--ink)); border: 2px solid rgba(232,224,200,.22); transition: transform 1.2s cubic-bezier(.17,.84,.29,1); }
.left-door { left: 12%; transform-origin: left; }.right-door { right: 12%; transform-origin: right; }
.bureau-floor.active .left-door { transform: perspective(600px) rotateY(-18deg); }
.bureau-floor.active .right-door { transform: perspective(600px) rotateY(18deg); }
.proof-stamp { position: absolute; left: 50%; top: 160px; transform: translateX(-50%) rotate(-9deg); padding: 24px 30px; border: 4px double var(--violet); color: var(--violet); font: 800 34px var(--display); letter-spacing: .08em; box-shadow: 0 0 40px rgba(154,124,255,.55); text-shadow: 0 0 12px var(--violet); }

.archive-labels { display: flex; gap: 12px; margin-top: 28px; font: 800 28px var(--display); }
.archive-labels span { border: 1px solid var(--prussian); padding: 8px 14px; color: var(--prussian); transform: rotate(-3deg); }
.stacked-pages i { position: absolute; left: calc(24% + var(--n, 0px)); top: calc(80px + var(--n, 0px)); width: 56%; height: 260px; background: rgba(232,224,200,.85); border: 1px solid var(--cyan); box-shadow: 14px 14px 0 rgba(22,59,99,.45); }
.stacked-pages i:nth-child(1){--n:0px}.stacked-pages i:nth-child(2){--n:24px}.stacked-pages i:nth-child(3){--n:48px}
.uv-halo { position: absolute; left: 50%; top: 210px; width: 220px; height: 220px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(154,124,255,.38), transparent 68%); animation: uvPulse 3s infinite; }

@keyframes slipRise { 0%,100% { transform: translateY(16px) rotate(-4deg); opacity: .55; } 50% { transform: translateY(-20px) rotate(5deg); opacity: 1; } }
@keyframes sortSlip { to { transform: translateX(26px) rotate(0deg); } }
@keyframes capsuleMove { 0% { transform: translateX(0); } 50% { transform: translateX(260px) translateY(64px); } 100% { transform: translateX(0); } }
@keyframes blink { 50% { opacity: .25; box-shadow: 0 0 0 var(--alarm); } }
@keyframes uvPulse { 50% { transform: translateX(-50%) scale(1.18); opacity: .58; } }

@media (max-width: 900px) {
  .case-index { display: none; }
  .elevator-shaft { left: 24px; transform: none; width: 58px; }
  .bureau-floor { grid-template-columns: 1fr; padding: 14vh 8vw 10vh 22vw; gap: 34px; }
  .room-left .acetate-sheet, .room-left .artifact, .room-right .acetate-sheet, .room-right .artifact, .cover-note { grid-column: 1; }
  .artifact { min-height: 300px; }
  .cover-stamp { font-size: 19vw; }
}
