:root {
  --ink: #040404;
  --paper: #fff;
  --nav-h: 4.35rem;
  --font: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;
  --amber: #ffb000;
  --crt: #070604;
  --shop-ink: #1c140c;
  --tape: #f0d000;
  --tape-ink: #141414;
}

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

html { scroll-padding-top: 0; }

html, body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
}

img { display: block; max-width: 100%; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 60;
  padding: 0.5rem 0.8rem;
  background: var(--paper);
  color: var(--ink);
}

.skip:focus { top: 0.75rem; }

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

/* Elevator panel */
.panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  min-height: var(--nav-h);
  padding: 0.65rem 1.15rem;
  background: var(--ink);
  color: var(--paper);
}

.panel.is-over-hero { background: transparent; }

.panel-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--paper);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stop-btn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1.5px solid var(--paper);
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.stop:hover .stop-btn,
.stop:focus-visible .stop-btn,
.stop.is-current .stop-btn {
  background: var(--paper);
  color: var(--ink);
}

.stop:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  .panel { padding: 0.55rem 0.7rem; }
  .panel-list {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .panel-list::-webkit-scrollbar { display: none; }
  .stop { font-size: 0.58rem; letter-spacing: 0.06em; gap: 0.35rem; }
  .stop-name { max-width: 5.4rem; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 520px) {
  .stop-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .stop { position: relative; }
}

/* Roof */
.hero {
  position: relative;
  background: var(--ink);
}

.hero img {
  width: 100%;
  height: auto;
}

@media (max-width: 799px) {
  .hero { min-height: 100svh; overflow: hidden; }
  .hero img {
    width: 100%;
    height: 100svh;
    object-fit: cover;
    object-position: top center;
  }
}

/* Brick floor plates */
.slab-wrap { line-height: 0; background: #aaa; }

.slab {
  display: block;
  width: 100%;
  height: 5rem;
  background: #aaa;
  object-fit: cover;
  object-position: center;
}

/* Looking into a photographed room */
.floor {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--ink);
}

.floor-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.lede {
  margin: 0;
  font-size: clamp(0.92rem, 1.7vw, 1.12rem);
  line-height: 1.45;
}

.door {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.2rem;
}

.door:hover,
.door:focus-visible { opacity: 0.72; }

.door:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

.copy-card h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

/* Floor 3 — CRT overlay on the close monitor */
.floor--fonarch .floor-photo { object-position: 18% 50%; }

.floor-mark--bezel {
  position: absolute;
  z-index: 2;
  top: calc(var(--nav-h) + 0.85rem);
  left: 7%;
  margin: 0;
  padding: 0.22rem 0.55rem 0.18rem;
  background: #c9c3b4;
  color: #2a2418;
  border: 2px solid #6e6758;
  box-shadow: 2px 2px 0 #111;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.copy-card--crt {
  position: absolute;
  z-index: 2;
  left: 7.2%;
  top: 20%;
  width: min(22vw, 19rem);
  padding: 0.75rem 0.8rem 0.9rem;
  color: var(--amber);
  font-family: var(--mono);
  background: rgba(5, 3, 0, 0.42);
  text-shadow: 0 0 6px rgba(255, 176, 0, 0.45);
}

.copy-card--crt h2 {
  font-family: var(--mono);
  letter-spacing: 0;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
}

.copy-card--crt .lede { font-size: clamp(0.72rem, 1.2vw, 0.88rem); }

.copy-card--crt::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(0, 0, 0, 0.22) 3px 4px
  );
}

.copy-card--crt .door { position: relative; z-index: 1; }

/* Floor 2 — proof sheet overlay */
.floor--print .floor-photo { object-position: 70% 70%; }

.floor-mark--enamel {
  position: absolute;
  z-index: 2;
  top: calc(var(--nav-h) + 0.7rem);
  left: 1.2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.5rem 0.85rem 0.45rem;
  background: #7a1c1c;
  color: #f4e8d0;
  border: 4px solid #f4e8d0;
  box-shadow: 6px 7px 0 rgba(28, 20, 12, 0.28);
  font-family: Palatino, "Palatino Linotype", "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.floor-mark--enamel span {
  font-family: var(--font);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
}

.copy-card--proof {
  position: absolute;
  z-index: 2;
  right: 5%;
  bottom: 8%;
  width: min(38vw, 28rem);
  padding: 1.15rem 1.25rem 1.2rem;
  color: var(--shop-ink);
  background: rgba(247, 240, 226, 0.88);
  border: 1px solid rgba(28, 20, 12, 0.2);
  box-shadow: 8px 10px 0 rgba(28, 20, 12, 0.12);
  transform: rotate(-1.2deg);
}

.copy-card--proof h2 {
  font-family: Palatino, "Palatino Linotype", "Times New Roman", serif;
}

/* Floor 1 — split shops + tape */
.floor--shops .floor-photo { object-position: 50% 55%; }

.floor-mark--paint {
  position: absolute;
  z-index: 3;
  top: calc(var(--nav-h) + 0.35rem);
  left: 50%;
  margin: 0;
  transform: translateX(-50%) rotate(-1.5deg);
  font-size: clamp(1.3rem, 3.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #1a1814;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.bay-copy {
  position: absolute;
  z-index: 6;
  max-width: 18rem;
  padding: 0.7rem 0.85rem 0.75rem;
  background: rgba(255, 255, 255, 0.88);
  color: #1a1814;
}

.bay-copy h2 {
  margin: 0 0 0.2rem;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  line-height: 0.95;
}

.bay-copy .lede { font-size: 0.95rem; }

.bay-copy--art { left: 4%; bottom: 8%; }
.bay-copy--store { right: 4%; bottom: 8%; }

.caution {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.caution-arm {
  position: absolute;
  left: -15%;
  top: 48%;
  width: 130%;
  height: 2.35rem;
  background: repeating-linear-gradient(
    -45deg,
    var(--tape) 0 16px,
    var(--tape-ink) 16px 28px
  );
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}

.caution-arm--a { transform: rotate(28deg); }
.caution-arm--b { transform: rotate(-28deg); }

.caution-msg {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  padding: 0.7rem 1.1rem 0.6rem;
  transform: translate(-50%, -50%) rotate(-8deg);
  background: var(--tape);
  color: var(--tape-ink);
  border: 4px solid var(--tape-ink);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.28);
  font-size: clamp(0.85rem, 2.4vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Basement — plate on the empty board */
.basement .floor-photo { object-position: 50% 55%; }

.copy-card--plate {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 16%;
  width: min(24rem, 36vw);
  transform: translateX(-50%);
  padding: 1.05rem 1.15rem 1.1rem;
  background: #2a2620;
  color: #f3eadc;
  border: 4px solid #c9c3b4;
  box-shadow:
    inset 0 0 0 2px #5a554c,
    8px 10px 0 rgba(0, 0, 0, 0.28);
}

.plate-stamp {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #c9c3b4;
}

.copy-card--plate h2 {
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
}

.colophon-url {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

/* FONarch room (subpage) */
.room {
  min-height: 100dvh;
  padding: calc(var(--nav-h) + 2.5rem) 1.5rem 3.5rem;
  background: var(--crt);
  color: var(--amber);
  font-family: var(--mono);
}

.room-inner { width: min(38rem, 100%); }

.room h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.6rem, 10vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.room .lede { margin-bottom: 1rem; }

.room p {
  margin: 0 0 1rem;
  line-height: 1.45;
  font-size: 1.05rem;
}

.room-note { opacity: 0.7; font-size: 0.9rem; }

.room .door { color: var(--amber); }

@media (max-width: 860px) {
  .copy-card--crt {
    left: 10%;
    right: 18%;
    top: 28%;
    bottom: auto;
    width: auto;
    background: rgba(5, 3, 0, 0.5);
  }

  .copy-card--proof {
    left: 1rem;
    right: 1rem;
    bottom: 1.2rem;
    width: auto;
    transform: none;
  }

  .bay-copy {
    max-width: 46%;
    padding: 0.5rem 0.6rem;
  }

  .bay-copy h2 { font-size: 1.15rem; }
  .bay-copy .lede { font-size: 0.78rem; }

  .caution-arm { height: 1.7rem; }

  .copy-card--plate {
    top: auto;
    bottom: 1.2rem;
    width: calc(100% - 2rem);
    transform: none;
    left: 1rem;
  }

  .floor-mark--enamel { left: 0.7rem; }
  .floor-mark--bezel { left: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
