/* STOCK HOTEL — landing. Same materials as the game shell (hotel.css).
   Shadows are pixels. Edges are 1px. Brass is for hands and labels. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-condensed-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("assets/fonts/barlow-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("assets/fonts/barlow-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Silkscreen";
  src: url("assets/fonts/silkscreen-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Silkscreen";
  src: url("assets/fonts/silkscreen-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --k: #07101c;
  --g: #0d1c36;
  --s: #143056;
  --edge: #2a4a78;
  --hi: #3d6496;
  --tx: #dce6f4;
  --mute: #8aa3c4;
  --brass: #f0c14a;
  --brass2: #c48a18;
  --paper: #f3e2b0;
  --gold: #f0c14a;
  --navy: #002050;
  --window: #3b9ae8;
  --red: #f0c14a;
  --red-dark: #b88612;
  --acc: #f0c14a;
  --lbl: 600 10px/1 "Barlow Condensed", "Arial Narrow", sans-serif;
  --num: "Silkscreen", "Courier New", monospace;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --move: 150ms;
  --mono: var(--num);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--k);
  color: var(--tx);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    repeating-linear-gradient(90deg, rgba(240,193,74,0.035) 0 2px, transparent 2px 26px),
    linear-gradient(180deg, #0c1a32 0%, #07101c 45%, #050b14 100%);
}

h1, h2, h3 {
  font-family: var(--cond);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: var(--paper);
  text-transform: uppercase;
}

img { display: block; max-width: 100%; height: auto; }
.mono { font-family: var(--num); }

.skip {
  position: absolute;
  left: -999px; top: 0;
  background: var(--gold); color: var(--k);
  padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

.overline {
  font: var(--lbl);
  letter-spacing: 0.28em;
  color: var(--brass);
  margin-bottom: 14px;
}

.sec-head {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}
.sec-sub { margin-left: auto; margin-right: auto; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 52px); }
.sec-sub { color: var(--mute); margin-top: 12px; max-width: 56ch; }

.fineprint {
  color: var(--mute);
  font-size: 13px;
  text-align: center;
  max-width: 560px;
  margin: 22px auto 0;
}

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

/* ---------- buttons: the key is a physical plate ---------- */

.btn-key {
  display: inline-block;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--k);
  background: var(--gold);
  padding: 9px 18px 8px;
  border: 1px solid var(--brass2);
  box-shadow: 2px 2px 0 #000;
  transition: transform var(--move) ease, box-shadow var(--move) ease, background var(--move) ease;
}
.btn-key:hover { background: #f6d36a; }
.btn-key:active { transform: translate(2px, 2px); box-shadow: 0 0 0 #000; }
.btn-key-lg { font-size: 17px; padding: 13px 26px 12px; }

.btn-ghost {
  display: inline-block;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--paper);
  background: transparent;
  padding: 12px 22px;
  border: 1px solid var(--edge);
  box-shadow: 2px 2px 0 #000;
  cursor: pointer;
  transition: border-color var(--move) ease, color var(--move) ease;
}
.btn-ghost:hover { border-color: var(--brass); color: var(--paper); }
.btn-small { font-size: 13px; padding: 8px 14px; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 8px 20px;
  background: linear-gradient(180deg, rgba(11,12,14,0.92), rgba(11,12,14,0));
  border-bottom: 1px solid transparent;
  transition: background var(--move) ease, border-color var(--move) ease;
}
.nav.is-solid {
  background: var(--k);
  border-bottom-color: var(--edge);
  box-shadow: 0 2px 0 #000;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo {
  height: 64px;
  width: auto;
  flex: none;
}
.nav-wordmark {
  font: 700 18px/1 var(--cond);
  letter-spacing: 0.28em;
  color: var(--paper);
}

.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  font: 600 14px/1 var(--cond);
  letter-spacing: 0.2em;
  color: var(--mute);
  text-decoration: none;
}
.nav-links a:hover { color: var(--paper); }

.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-status {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--num); font-size: 10px; letter-spacing: 0.12em;
  color: var(--mute);
}
.nav-status i {
  width: 7px; height: 7px;
  background: var(--window);
  box-shadow: 1px 1px 0 #000;
  animation: lamp 2.4s steps(2) infinite;
}
@keyframes lamp { 50% { opacity: 0.4; } }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--g);
  border: 1px solid var(--edge);
  box-shadow: 2px 2px 0 #000;
  padding: 9px 8px;
  cursor: pointer;
}
.nav-burger span { width: 18px; height: 2px; background: var(--paper); }

/* ---------- corridor plates between floors ---------- */

section { scroll-margin-top: 56px; }

.corridor {
  position: relative;
  padding: 88px 5vw 80px;
  border-top: 1px solid var(--edge);
}
.directory { margin-top: 28px; }
.corridor::before {
  content: attr(data-floor);
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  font: var(--lbl);
  letter-spacing: 0.28em;
  color: var(--brass);
  background: var(--k);
  border: 1px solid var(--brass2);
  box-shadow: 2px 2px 0 #000;
  padding: 5px 12px 4px;
  white-space: nowrap;
}

/* ============================================================ HERO */

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 28px 40px;
  padding: 88px 5vw 0;
}

.hero-copy { padding: 24px 0 12px; }
.hero-logo {
  width: min(210px, 55%);
  margin: 0 0 18px;
}
.hero-copy h1 {
  font-size: clamp(40px, 5.6vw, 76px);
  margin: 0 0 18px;
}
.hero-sub {
  color: var(--mute);
  font-size: 17px;
  max-width: 42ch;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* the lift is the same object as the lobby car */

.lift {
  --acc: #76B900;
  display: grid;
  grid-template-rows: auto minmax(280px, 52vh) auto;
  gap: 10px;
  min-width: 0;
  padding: 14px 14px 16px;
  background: linear-gradient(180deg, rgba(21,23,27,0.7), rgba(11,12,14,0.88));
  border: 1px solid var(--edge);
  box-shadow: 3px 3px 0 #000;
}

.lift-indicator {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "lamps lamps" "readout state";
  gap: 8px 14px;
  padding: 8px 10px 10px;
  background: #05060a;
  border: 1px solid var(--brass2);
  box-shadow: inset 0 0 0 1px #000, 2px 2px 0 #000;
}
.lift-indicator::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--acc);
}

.lift-lamps { grid-area: lamps; display: flex; gap: 5px; }
.lift-lamp {
  width: 14px; height: 8px;
  padding: 0;
  background: #1a1d23;
  border: 0;
  box-shadow: inset 0 0 0 1px #000;
  cursor: pointer;
}
.lift-lamp.is-on {
  background: var(--acc);
  box-shadow: inset 0 0 0 1px #000, 1px 1px 0 #000;
}

.lift-readout { grid-area: readout; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lift-roomno { font: var(--lbl); letter-spacing: 0.22em; color: var(--acc); }
.lift-ticker {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--paper);
}
.lift-company { font: var(--lbl); letter-spacing: 0.18em; color: var(--mute); }
.lift-state {
  grid-area: state;
  align-self: end;
  font-family: var(--num);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--acc);
}

.lift-car {
  position: relative;
  overflow: hidden;
  background: #05060a;
  border: 1px solid var(--edge);
  box-shadow: inset 0 0 0 1px #000;
}
.lift-room {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}
.lift-op {
  position: absolute;
  right: 8%;
  bottom: 18px;
  height: 72%;
  width: auto;
  image-rendering: pixelated;
  filter: drop-shadow(2px 2px 0 #000);
}
.lift-sill {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 10px;
  background: var(--g);
  border-top: 1px solid var(--brass2);
  box-shadow: 0 -1px 0 #000;
}

.lift-plate {
  display: block;
  text-align: center;
  font: 700 13px/1 var(--cond);
  letter-spacing: 0.18em;
  color: var(--paper);
  background: var(--g);
  border: 1px solid var(--brass2);
  box-shadow: 2px 2px 0 #000;
  padding: 11px 8px 10px;
  text-decoration: none;
}
.lift-plate:hover { border-color: var(--brass); color: var(--brass); }

/* ticker tape — the physical strip over the bay */

.tape {
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
  border-top: 1px solid #000;
  border-bottom: 1px solid var(--edge);
  background: #050d18;
  overflow: hidden;
  margin-top: 8px;
}
.tape-track {
  display: flex;
  width: max-content;
  padding: 7px 0;
  white-space: nowrap;
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.12em;
  animation: tape 42s linear infinite;
}
.tape-track span { padding: 0 18px; color: var(--brass); }
.tape-track b { color: var(--paper); font-weight: 400; }
.tape-track .sep { color: var(--hi); }
@keyframes tape { to { transform: translateX(-50%); } }

/* ============================================================ DIRECTORY */

.directory-board {
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.dir-board-face {
  display: flex;
  flex-direction: column;
  background: var(--g);
  border: 1px solid var(--brass2);
  box-shadow: 3px 3px 0 #000;
  padding: 8px;
  min-height: 100%;
}
.dir-list { flex: 1; display: flex; flex-direction: column; }
.dir-list li { flex: 1; display: flex; }
.dir-list .dir-row { flex: 1; }

.dir-board-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--brass2);
  font: 700 14px/1 var(--cond);
  letter-spacing: 0.22em;
  color: var(--paper);
}
.dir-board-title img { height: 36px; width: auto; }
.dir-board-sub {
  margin-left: auto;
  font: var(--lbl);
  letter-spacing: 0.22em;
  color: var(--brass);
}

.dir-list { list-style: none; }
.dir-list li { margin: 0; }

.dir-row {
  display: grid;
  grid-template-columns: 40px 72px 1fr auto;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  background: none;
  border: 0;
  border-bottom: 1px solid #1a1d23;
  color: var(--mute);
  font-family: var(--num);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.dir-list li:last-child .dir-row { border-bottom: 0; }
.dir-row .no { color: var(--brass); }
.dir-row .tk {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--paper);
}
.dir-row .co { font-family: var(--cond); font-weight: 600; letter-spacing: 0.12em; font-size: 12px; }
.dir-row .dot {
  width: 7px; height: 7px;
  background: var(--hi);
  box-shadow: inset 0 0 0 1px #000;
  justify-self: end;
  align-self: center;
}
.dir-row:hover { background: #1a1d23; color: var(--tx); }
.dir-row.is-active {
  background: #05060a;
  box-shadow: inset 3px 0 0 var(--acc);
}
.dir-row.is-active .no,
.dir-row.is-active .tk { color: var(--acc); }
.dir-row.is-active .dot { background: var(--acc); }

.dir-preview {
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--g);
  border: 1px solid var(--edge);
  box-shadow: 3px 3px 0 #000;
}
.dir-preview-art {
  position: relative;
  overflow: hidden;
  background: #05060a;
  min-height: 280px;
}
.dir-preview-art #dir-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  position: absolute; inset: 0;
}
.dir-op {
  position: absolute;
  right: 10%;
  bottom: 10px;
  height: 70%;
  width: auto;
  image-rendering: pixelated;
  filter: drop-shadow(2px 2px 0 #000);
}
.dir-preview-meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 12px;
  border-top: 1px solid var(--edge);
  font-family: var(--num);
}
.dir-roomno { color: var(--brass); font-size: 11px; letter-spacing: 0.14em; }
.dir-ticker {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--acc, var(--red));
}
.dir-company { color: var(--mute); font: var(--lbl); letter-spacing: 0.18em; margin-left: auto; }

/* ============================================================ ITINERARY */

.itinerary { background: #06101f; }

.ticket {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1080px;
  margin: 0 auto;
  background: #12141a;
  border: 1px solid var(--brass2);
  box-shadow: 3px 3px 0 #000;
  background-image: radial-gradient(circle at 0 50%, var(--k) 8px, transparent 8.5px),
                    radial-gradient(circle at 100% 50%, var(--k) 8px, transparent 8.5px);
}

.ticket li {
  padding: 22px 20px 24px;
  border-right: 1px dashed var(--edge);
}
.ticket li:last-child { border-right: 0; }

.ticket-stamp {
  display: inline-block;
  font-family: var(--num);
  font-size: 11px;
  color: var(--k);
  background: var(--brass);
  padding: 3px 7px 2px;
  letter-spacing: 0.12em;
  box-shadow: 2px 2px 0 #000;
}

.ticket h3 {
  font-size: 20px;
  letter-spacing: 0.12em;
  margin: 12px 0 8px;
}
.ticket p { color: var(--mute); font-size: 14px; }

/* ============================================================ SHOWCASE */

.showcase-grid {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}

.showcase-tabs {
  display: flex;
  flex-direction: column;
  background: var(--g);
  border: 1px solid var(--brass2);
  box-shadow: 2px 2px 0 #000;
}

.showcase-tab {
  font-family: var(--num);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 12px 8px;
  background: none;
  border: 0;
  border-bottom: 1px solid #1a1d23;
  color: var(--mute);
  cursor: pointer;
}
.showcase-tab:last-child { border-bottom: 0; }
.showcase-tab:hover { color: var(--paper); }
.showcase-tab.is-active {
  background: #05060a;
  color: var(--acc, var(--paper));
  box-shadow: inset 3px 0 0 var(--acc);
}

.showcase-art {
  background: var(--g);
  border: 1px solid var(--edge);
  box-shadow: 3px 3px 0 #000;
  padding: 8px;
}
.showcase-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 760;
  object-fit: contain;
  object-position: center;
  background: #05060a;
  border: 1px solid var(--edge);
}
.showcase-plate {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 10px 4px 2px;
  font-family: var(--num);
  font-size: 12px;
  color: var(--mute);
}
.showcase-plate .mono { color: var(--acc, var(--red)); font-size: 15px; }
.showcase-plate span:first-child { color: var(--brass); }

/* ============================================================ RENOVATE */

.renovate { background: #0a162c; }

.workorder {
  max-width: 920px;
  margin: 0 auto;
  background: var(--g);
  border: 1px solid var(--brass2);
  box-shadow: 3px 3px 0 #000;
}
.wo-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px dashed var(--brass2);
  color: var(--brass);
  font-size: 11px;
  letter-spacing: 0.14em;
  background: #12141a;
}
.wo-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 22px;
  align-items: center;
}
.wo-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 250px;
  background:
    linear-gradient(180deg, transparent 70%, rgba(201,162,74,0.12) 70.4%),
    #05060a;
  border: 1px solid var(--edge);
  padding: 16px;
}
.wo-art img { image-rendering: pixelated; max-height: 230px; }

.wo-tiers { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.wo-tier {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--cond); font-weight: 600; font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--mute);
  background: var(--s);
  border: 1px solid var(--edge);
  box-shadow: 2px 2px 0 #000;
  padding: 7px 12px 7px 7px;
  cursor: pointer;
}
.wo-tier:hover { border-color: var(--brass); color: var(--paper); }
.wo-tier.is-active { border-color: var(--brass); color: var(--paper); }

.plaque {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  font-family: var(--num); font-size: 13px;
  color: var(--k);
  background: var(--brass);
  box-shadow: inset 0 0 0 1px var(--brass2), 1px 1px 0 #000;
}

.wo-meter-label { font-size: 10px; letter-spacing: 0.2em; color: var(--mute); }
.meter {
  position: relative;
  height: 32px;
  margin-top: 8px;
  background: #05060a;
  border: 1px solid var(--edge);
  box-shadow: inset 2px 2px 0 #000;
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  background: repeating-linear-gradient(-45deg, var(--red) 0 8px, var(--red-dark) 8px 16px);
  transition: width 420ms steps(12);
}
.meter-value {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--paper);
}
.wo-note { color: var(--mute); font-size: 13.5px; margin-top: 12px; }

/* ============================================================ ALLOCATION */

.panel {
  max-width: 680px;
  margin: 0 auto;
  background: var(--g);
  border: 1px solid var(--edge);
  box-shadow: 3px 3px 0 #000;
}
.panel-head {
  display: flex; justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--edge);
  color: var(--mute);
  font-size: 11px; letter-spacing: 0.18em;
  background: #12141a;
}
.panel-total { color: var(--brass); font-size: 14px; }
.alloc-rows { padding: 6px 16px; }
.alloc-row {
  display: grid;
  grid-template-columns: 64px 1fr 52px;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #1a1d23;
}
.alloc-row:last-child { border-bottom: 0; }
.alloc-tk { font-family: var(--num); font-size: 13px; color: var(--paper); }
.alloc-val { font-family: var(--num); font-size: 13px; color: var(--brass); text-align: right; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  background: var(--s);
  border: 1px solid var(--edge);
  outline-offset: 6px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 20px;
  background: var(--brass);
  border: 1px solid var(--brass2);
  box-shadow: 1px 1px 0 #000;
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 20px;
  background: var(--brass);
  border: 1px solid var(--brass2);
  box-shadow: 1px 1px 0 #000;
  border-radius: 0;
}

.panel-foot {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px;
  border-top: 1px solid var(--edge);
  flex-wrap: wrap;
}
.panel-foot .wo-note { margin: 0; flex: 1; min-width: 200px; }

/* ============================================================ VAULT */

.vault { background: #06101f; }
.vault-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
  align-items: center;
}

.safe { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.safe-body {
  position: relative;
  width: 220px; height: 260px;
  background: var(--s);
  border: 1px solid var(--brass2);
  box-shadow: 4px 4px 0 #000, inset 0 0 0 6px var(--g);
}
.safe-hinge {
  position: absolute; left: -6px; top: 28px;
  width: 10px; height: 40px;
  background: var(--brass);
  box-shadow: 2px 2px 0 #000;
}
.safe-hinge::after {
  content: "";
  position: absolute; left: 0; top: 150px;
  width: 10px; height: 40px;
  background: var(--brass);
  box-shadow: 2px 2px 0 #000;
}
.safe-door {
  position: absolute; inset: 18px 18px 18px 22px;
  background: #12141a;
  border: 1px solid var(--edge);
  display: flex; align-items: center; justify-content: center;
}
.safe-wheel {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--brass);
  border: 3px solid var(--brass2);
  box-shadow: 2px 2px 0 #000, inset 0 0 0 10px var(--brass);
}
.safe-wheel i {
  position: absolute; left: 50%; top: 50%;
  width: 3px; height: 28px;
  background: var(--brass2);
  transform-origin: 50% 0;
}
.safe-wheel i:nth-child(1) { transform: translate(-50%, 0) rotate(0deg); }
.safe-wheel i:nth-child(2) { transform: translate(-50%, 0) rotate(90deg); }
.safe-wheel i:nth-child(3) { transform: translate(-50%, 0) rotate(180deg); }
.safe-wheel i:nth-child(4) { transform: translate(-50%, 0) rotate(270deg); }
.safe-pulse {
  position: absolute; inset: -2px;
  border: 1px solid var(--brass);
  opacity: 0;
}
.safe.is-live .safe-pulse { animation: pulse 2.8s steps(8) infinite; }
@keyframes pulse {
  0% { opacity: 0.7; }
  100% { opacity: 0; }
}
.safe-handle {
  position: absolute; right: -8px; top: 50%;
  width: 14px; height: 36px;
  margin-top: -18px;
  background: var(--brass);
  border: 1px solid var(--brass2);
  box-shadow: 2px 2px 0 #000;
}
.safe-label { color: var(--brass); font-size: 11px; letter-spacing: 0.22em; }

.vault-flow { list-style: none; }
.vault-flow li {
  position: relative;
  padding: 0 0 22px 28px;
  border-left: 1px solid var(--brass2);
}
.vault-flow li:last-child { padding-bottom: 0; }
.vault-flow li::before {
  content: "";
  position: absolute; left: -4px; top: 6px;
  width: 7px; height: 7px;
  background: var(--brass);
  box-shadow: 1px 1px 0 #000;
}
.vault-flow .mono { color: var(--paper); font-size: 12px; letter-spacing: 0.16em; }
.vault-flow p { color: var(--mute); font-size: 15px; margin-top: 4px; }

/* ============================================================ OPERATORS */

.roster-bay {
  max-width: 1100px;
  margin: 0 auto;
}
.roster-nav { display: none; }

.roster {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--edge);
  background: var(--g);
  box-shadow: 3px 3px 0 #000;
}
.roster li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 18px 10px 10px;
  border-right: 1px solid #1a1d23;
  min-width: 86px;
  background: linear-gradient(180deg, #1a1d23 0 58%, var(--g) 58%);
}
.roster li:last-child { border-right: 0; }
.roster img {
  height: 118px;
  width: auto;
  max-width: none;
  image-rendering: pixelated;
  pointer-events: none;
}
.roster .mono {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--brass);
}

/* ============================================================ LEDGER */

.ledger { background: #0a162c; }
.ledger-book {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  background:
    linear-gradient(90deg, transparent 49.6%, #000 49.6% 50.4%, transparent 50.4%),
    #16140f;
  border: 1px solid var(--brass2);
  box-shadow: 4px 4px 0 #000, inset 0 0 0 6px #100e0c;
  padding: 28px 30px;
}
.ledger-watermark {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--cond); font-weight: 700;
  font-size: 86px; letter-spacing: 0.18em;
  color: rgba(230,228,222,0.05);
  pointer-events: none;
  transform: rotate(-8deg);
}
.ledger-page h3 {
  font-size: 11px; letter-spacing: 0.22em;
  color: var(--brass); margin-bottom: 14px;
}
.ledger-page table { width: 100%; border-collapse: collapse; }
.ledger-page td {
  padding: 8px 6px;
  font-size: 14px;
  color: var(--mute);
  border-bottom: 1px dashed #2e2a22;
}
.ledger-page td.mono { font-size: 11px; color: var(--paper); }
.ledger-page td:last-child {
  text-align: right; color: var(--brass);
  font-size: 11px; font-family: var(--num);
}

/* ============================================================ ECONOMY */

.cashbox {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--edge);
  box-shadow: 3px 3px 0 #000;
  background: var(--s);
  padding: 8px;
}
.drawer {
  display: grid;
  grid-template-columns: 72px 1fr 28px;
  gap: 16px;
  align-items: center;
  background: var(--g);
  border: 1px solid var(--edge);
  padding: 16px 16px 16px 18px;
  margin-bottom: 6px;
}
.drawer:last-child { margin-bottom: 0; }
.drawer-pct { font-size: 28px; color: var(--paper); }
.drawer h3 { font-size: 16px; letter-spacing: 0.14em; margin-bottom: 4px; }
.drawer p { color: var(--mute); font-size: 14px; }
.drawer-pull {
  width: 18px; height: 18px;
  background: var(--brass);
  border: 1px solid var(--brass2);
  box-shadow: 1px 1px 0 #000;
  justify-self: end;
}

/* ============================================================ ENTER */

.enter { padding-bottom: 100px; }
.elevator {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid var(--brass2);
  box-shadow: 4px 4px 0 #000;
  background: var(--k);
  overflow: hidden;
}
.elevator-cab { padding: 56px 28px 48px; text-align: center; }
.enter-logo { width: min(240px, 72%); margin: 0 auto 18px; }
.elevator-cab h2 { font-size: clamp(30px, 4.2vw, 48px); margin-bottom: 10px; }
.enter-sub { color: var(--mute); margin-bottom: 24px; }

.keycard {
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
  background: var(--g);
  border: 1px solid var(--edge);
  box-shadow: inset 4px 0 0 var(--red);
  padding: 16px 18px;
}
.keycard-title {
  display: block;
  font-size: 10px; letter-spacing: 0.22em;
  color: var(--red); margin-bottom: 10px;
}
.keycard pre { font-size: 13px; color: var(--paper); overflow-x: auto; line-height: 1.7; }
.keycard-note { color: var(--mute); font-size: 12px; margin-top: 10px; }

.elevator-door {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    repeating-linear-gradient(90deg, #1e1e24 0 22px, #17171b 22px 44px);
  border: 1px solid var(--edge);
  z-index: 2;
  transition: transform 1100ms cubic-bezier(.65,.02,.23,1);
}
.door-left { left: 0; border-right: 2px solid var(--brass2); }
.door-right { right: 0; border-left: 2px solid var(--brass2); }
.elevator.is-open .door-left { transform: translateX(-101%); }
.elevator.is-open .door-right { transform: translateX(101%); }

/* ============================================================ FOOTER */

.footer {
  border-top: 1px solid var(--edge);
  padding: 36px 5vw 48px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.footer-logo { width: min(180px, 56vw); margin: 0 auto; }
.footer .nav-brand { justify-content: center; }

/* ============================================================ RESPONSIVE */

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 84px;
    gap: 22px;
  }
  .hero-copy { text-align: center; max-width: 620px; margin: 0 auto; }
  .hero-logo { margin-left: auto; margin-right: auto; width: min(180px, 52%); }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .lift { grid-template-rows: auto 340px auto; }
  .directory-board { grid-template-columns: 1fr; }
  .dir-preview-art { min-height: 240px; aspect-ratio: 16 / 10; }
  .ticket { grid-template-columns: 1fr 1fr; }
  .ticket li:nth-child(2) { border-right: 0; }
  .ticket li:nth-child(1), .ticket li:nth-child(2) { border-bottom: 1px dashed var(--edge); }
  .vault-grid { grid-template-columns: 1fr; gap: 32px; }
  .wo-body { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav { gap: 10px; padding: 8px 12px; }
  .nav-logo { height: 48px; }
  .nav-links {
    position: fixed;
    top: 52px; right: 0; left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--k);
    border-bottom: 1px solid var(--edge);
    margin: 0;
  }
  .nav-links.is-open { display: flex; box-shadow: 0 3px 0 #000; }
  .nav-links a {
    padding: 14px 20px;
    border-top: 1px solid var(--edge);
    background: var(--k);
    color: var(--tx);
  }
  .nav-status { display: none; }
  .nav-right { margin-left: auto; }
  .nav-right .btn-key { display: none; }
  .nav-burger { display: flex; }

  .hero { padding: 76px 5vw 0; }
  .hero-copy h1 { font-size: clamp(34px, 11vw, 48px); }
  .lift { grid-template-rows: auto 260px auto; padding: 10px; }
  .lift-op { height: 78%; }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-tabs {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }
  .showcase-tab {
    flex: 0 0 auto;
    border-bottom: 0;
    border-right: 1px solid #1a1d23;
    padding: 12px 14px;
    white-space: nowrap;
  }
  .roster-bay {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    align-items: stretch;
    gap: 6px;
  }
  .roster-nav {
    display: block;
    font-family: var(--cond);
    font-size: 24px;
    line-height: 1;
    color: var(--k);
    background: var(--brass);
    border: 1px solid var(--brass2);
    box-shadow: 2px 2px 0 #000;
    cursor: pointer;
    min-height: 100px;
  }
  .roster-nav:hover { background: #f6d36a; }
  .roster-nav:active { transform: translate(2px, 2px); box-shadow: 0 0 0 #000; }
  .roster-nav:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
    box-shadow: 2px 2px 0 #000;
  }
  .roster-nav[hidden] { display: none; }
  .roster {
    justify-content: flex-start;
    min-width: 0;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: auto;
    scrollbar-color: var(--brass) #050d18;
    cursor: grab;
  }
  .roster:active { cursor: grabbing; }
  .roster::-webkit-scrollbar { height: 12px; }
  .roster::-webkit-scrollbar-track { background: #050d18; }
  .roster::-webkit-scrollbar-thumb {
    background: var(--brass);
    border: 1px solid var(--brass2);
  }
  .ticket { grid-template-columns: 1fr; background-image: none; }
  .ticket li { border-right: 0; border-bottom: 1px dashed var(--edge); }
  .ticket li:last-child { border-bottom: 0; }
  .alloc-row { grid-template-columns: 52px 1fr 44px; gap: 8px; }
  .ledger-book { padding: 18px 14px; }
  .ledger-watermark { font-size: 42px; }
  .drawer { grid-template-columns: 56px 1fr 22px; gap: 10px; }
  .corridor { padding: 56px 5vw 64px; }
  .corridor::before { font-size: 9px; padding: 4px 8px 3px; }
  section { scroll-margin-top: 56px; }
  .dir-row { grid-template-columns: 36px 64px 1fr auto; gap: 6px; font-size: 11px; }
}

/* ============================================================ REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tape-track, .nav-status i, .safe-pulse { animation: none; }
  .elevator-door, .meter-fill, .btn-key { transition: none; }
  .safe-pulse { opacity: 0; }
}
