:root {
  --stone: #d8d0c4;
  --bronze: #8a5a2b;
  --seal: #9b1d1d;
  --ink: #2a2420;
  --mute: #7a7066;
  --display: "Playfair Display", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 68px; }
body { margin: 0; background: var(--stone); color: var(--ink); font-family: var(--sans); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.app-link { color: var(--seal); text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
.marble-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 6;
  opacity: 0.16;
  background-image: url("images/texture.webp");
  background-size: 420px auto;
  mix-blend-mode: multiply;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 80; background: var(--seal); color: #fff; padding: 8px; }
.lintel {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  background: var(--ink);
  color: var(--stone);
  border-bottom: 4px solid var(--bronze);
}
.brand { font-family: var(--display); font-size: 28px; font-weight: 700; }
.brand small { display: block; font-family: var(--mono); font-size: 10px; color: var(--bronze); letter-spacing: 0.14em; font-weight: 400; }
.nav-toggle { display: none; background: var(--seal); color: #fff; border: 0; padding: 7px 12px; }
.hall-links { display: flex; gap: 14px; font-size: 14px; flex-wrap: wrap; align-items: center; }
.hall-links a { color: #b7aea4; }
.hall-links a.is-active, .hall-links a:hover { color: var(--stone); }
.hall-links .live { background: var(--seal); color: #fff; padding: 6px 12px; }
.corridor { position: relative; min-height: 92vh; }
.corridor .wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plaque {
  position: absolute;
  right: 6vw;
  bottom: 36px;
  z-index: 2;
  width: min(460px, calc(100% - 40px));
  padding: 22px 24px 20px;
  background: rgba(42, 36, 32, 0.94);
  color: var(--stone);
  border: 1px solid var(--bronze);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.plaque.is-ok { border-color: var(--seal); }
.kicker { font-family: var(--mono); letter-spacing: 0.14em; font-size: 11px; color: var(--bronze); margin: 0 0 10px; }
h1, h2 { font-family: var(--display); margin: 0 0 10px; line-height: 1.12; font-weight: 700; }
h1 { font-size: clamp(30px, 3.8vw, 46px); }
.lead { color: #c9bfb4; max-width: 42ch; }
.n { font-family: var(--display); font-size: 56px; line-height: 0.9; margin: 8px 0; }
.state { margin: 0 0 6px; color: var(--bronze); font-weight: 700; }
.hint { font-size: 13px; color: #b7aea4; margin: 0 0 12px; }
.doors { display: flex; gap: 6px; margin: 0 0 12px; }
.doors span {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  padding: 8px 0;
  background: #1c1816;
  color: #8a8076;
  border: 1px solid #3a342e;
}
.doors span.on { background: var(--bronze); color: #fff; }
.plaque button { background: var(--bronze); color: #fff; border: 0; padding: 8px 14px; font-weight: 700; }
.cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn { display: inline-flex; padding: 10px 14px; border: 1px solid var(--bronze); position: static; }
.btn.fill { background: var(--seal); color: #fff; border-color: var(--seal); position: static; }
.btn.line { color: var(--stone); }
.w { width: min(980px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0; }
.need-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 24px 0 0; }
.need-grid li { background: #efe8dc; padding: 16px; border-top: 5px solid var(--bronze); }
.bronze { background: var(--ink); color: var(--stone); }
.bronze .kicker, .bronze .app-link { color: #d4a574; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: st; }
.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #3a342e;
  counter-increment: st;
}
.steps li::before {
  content: counter(st);
  font-family: var(--display);
  font-size: 26px;
  color: var(--bronze);
}
.steps li p { margin: 4px 0 0; color: #c9bfb4; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.pair figure { margin: 0; }
.pair img { width: 100%; height: 280px; object-fit: cover; }
.pair figcaption { font-size: 13px; color: #c9bfb4; margin-top: 8px; }
footer { padding: 20px 24px 48px; background: var(--stone); color: var(--mute); font-size: 13px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .lintel { flex-wrap: wrap; }
  .hall-links { display: none; width: 100%; flex-direction: column; background: #1c1816; padding: 12px; }
  .hall-links.open { display: flex; }
  .plaque { right: 16px; left: 16px; width: auto; bottom: 16px; }
  .corridor { min-height: 120vh; }
  .need-grid, .pair { grid-template-columns: 1fr; }
  .n { font-size: 44px; }
}
