/* pp-0 museum chrome — gold on deep, hotel-quiet, phones first */
:root {
  --gold: #C5A572;
  --deep: #0A0A0A;
  --charcoal: #1C1C1E;
  --cream: #F5F2E9;
  --steel: #8A8A8F;
  --line: #3A3A3C;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
}
html { max-width: 100%; overflow-x: hidden; }
body.museum {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--deep);
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
}
.serif { font-family: "Playfair Display", Georgia, serif; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.mfield {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.72;
  mix-blend-mode: screen;
}
.mshell { position: relative; z-index: 2; }
.mbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: var(--safe-t);
}
.mbar-inner {
  max-width: 40rem;
  margin: 0 auto;
  min-height: 4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0 max(1.25rem, var(--safe-l)) 0 max(1.25rem, var(--safe-r));
}
.mbrand { display: flex; align-items: center; gap: 0.7rem; min-height: 44px; color: inherit; text-decoration: none; }
.morb {
  width: 1.5rem; height: 1.5rem; border-radius: 999px; background: var(--gold);
  display: grid; place-items: center; flex-shrink: 0;
  color: var(--deep); font-size: 10px; font-weight: 700; letter-spacing: -1px;
}
.mlinks { display: flex; align-items: center; gap: 0.85rem; font-size: 0.875rem; flex-wrap: wrap; }
.mlinks a {
  color: var(--cream); text-decoration: none; min-height: 44px;
  display: inline-flex; align-items: center;
}
.mlinks a:hover, .mlinks a[aria-current="page"] { color: var(--gold); }
.mpage {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.25rem max(1.25rem, var(--safe-l)) 4rem max(1.25rem, var(--safe-r));
}
.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 0.75rem;
}
h1.mtitle {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400; letter-spacing: -0.03em; line-height: 1.08;
  font-size: clamp(2rem, 6vw, 3.15rem); margin: 0 0 0.9rem;
}
.lede { color: var(--steel); font-size: 1.05rem; line-height: 1.55; max-width: 36rem; margin: 0 0 1.75rem; text-wrap: pretty; }
.doors { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 0.7rem; }
.door {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); background: rgba(28,28,30,0.62);
  padding: 1rem 1.1rem; min-height: 44px;
  position: relative; overflow: hidden;
  transition: border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.door::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(197,165,114,0.10) 50%, transparent 62%);
  transform: translateX(-120%);
  pointer-events: none;
}
.door:hover { border-color: var(--gold); transform: translateY(-1px); }
.door:hover::before { transform: translateX(120%); transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.door:focus-visible, .mlinks a:focus-visible, .loop a:focus-visible {
  outline: 1px solid var(--gold); outline-offset: 3px;
}
.door .k { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.door .n { font-family: "Playfair Display", Georgia, serif; font-size: 1.35rem; margin: 0.2rem 0 0.25rem; }
.door .d { color: var(--steel); font-size: 0.82rem; line-height: 1.4; }
.loop {
  display: flex; flex-wrap: wrap; gap: 0.65rem 1.1rem; align-items: center;
  border-top: 1px solid var(--line); padding-top: 1.1rem;
  font-size: 0.8rem; color: var(--steel);
}
.loop a { color: var(--gold); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.loop .here { color: var(--cream); }
.mfoot {
  border-top: 1px solid var(--line); color: var(--steel); font-size: 0.75rem;
  padding: 1.25rem max(1.25rem, var(--safe-l)) max(2rem, var(--safe-b)) max(1.25rem, var(--safe-r));
}
.mfoot-inner { max-width: 40rem; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0.7rem 1.1rem; justify-content: space-between; }
.mfoot a { color: inherit; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.mfoot a:hover { color: var(--gold); }
.youare { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); margin: 0 0 1.5rem; }
.plan {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; margin: 0 0 1.75rem;
}
@media (max-width: 520px) {
  .mlinks .wide { display: none; }
  .plan { grid-template-columns: 1fr; }
}
.notes { list-style: none; margin: 0 0 2rem; padding: 0; }
.notes li a {
  display: block; text-decoration: none; color: inherit;
  padding: 1.15rem 0; border-top: 1px solid var(--line);
}
.notes li:last-child a { border-bottom: 1px solid var(--line); }
.notes .k { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.notes .n { font-family: "Playfair Display", Georgia, serif; font-size: 1.25rem; margin: 0.25rem 0 0.3rem; }
.notes .d { color: var(--steel); font-size: 0.9rem; line-height: 1.45; }
.notes a:hover .n { color: var(--gold); }
.essay { font-size: 1.05rem; line-height: 1.75; color: rgba(245,242,233,0.9); }
.essay p { margin: 0 0 1.15rem; text-wrap: pretty; }
.essay a { color: var(--gold); }
@media (prefers-reduced-motion: reduce) {
  .door { transition: none; }
  .door:hover { transform: none; }
  .door::before { display: none; }
  .mfield { opacity: 0.22; }
}

/* floating exhibit rail */
#museum-rail {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  padding: 0.4rem max(0.75rem, var(--safe-l)) max(0.55rem, var(--safe-b)) max(0.75rem, var(--safe-r));
  background: linear-gradient(to top, rgba(10,10,10,0.94), rgba(10,10,10,0.72) 70%, transparent);
  pointer-events: none;
}
#museum-rail .rail-in {
  pointer-events: auto;
  max-width: 52rem; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.55rem; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); background: rgba(10,10,10,0.88);
  padding: 0.35rem 0.55rem; font-size: 11px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
#museum-rail a { color: var(--gold); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; padding: 0 0.25rem; }
#museum-rail .dim { color: var(--steel); }
