/*
  GRAND GESTURE — Museum Poster + Scroll-Snap Galleries
  Local-file friendly. Inter + Inter Tight.
*/

:root{
  --paper:#ffffff;
  --ink:#0f0f10;
  --hairline:rgba(15,15,16,0.14);

  --terracotta:#B94A34;
  --cobalt:#66B6FF;
  --green:#1E6B4E;
  --yellow:#FFE04D;

  --font-body:"Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  --font-display:"Inter Tight","Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;

  --r1:28px;
  --r2:18px;
  --shadow: 0 22px 90px rgba(0,0,0,0.10);
  --shadow2: 0 12px 48px rgba(0,0,0,0.08);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  overflow-x:hidden;
}

/* Canvas backdrop */
#backdrop{
  position:fixed;
  inset:0;
  z-index:-2;
}

/* Mast */
.mast{
  position:fixed;
  left:0; right:0; top:0;
  z-index:50;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding:16px 18px;
  pointer-events:none;
}
.mast > *{ pointer-events:auto; }

.mast-left{
  display:flex;
  align-items:center;
  gap:14px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--hairline);
  background:rgba(255,255,255,0.78);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow2);
}
.sig{
  display:flex;
  align-items:center;
  gap:10px;
}
.sig-dot{
  width:10px;height:10px;border-radius:99px;
  background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(0,0,0,0.25));
}
.sig-text{
  font-family:var(--font-display);
  font-weight:800;
  letter-spacing:-0.08em;
}
.mast-sub{
  font-size:12px;
  opacity:0.68;
}

.mast-right{ display:flex; gap:10px; }
.mast-btn{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--hairline);
  background:rgba(255,255,255,0.78);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow2);
  cursor:pointer;
  font-family:var(--font-body);
  color: rgba(15,15,16,0.84);
}
.btn-icon{
  font-size:14px;
  opacity:0.75;
}

/* Poster (full-bleed statement) */
.poster{
  min-height:100vh;
  display:grid;
  align-items:center;
  padding: 120px 18px 56px;
  position:relative;
}

.poster-grid{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 1fr);
  opacity:0.075;
  pointer-events:none;
}
.poster-grid span{
  border-left:1px solid rgba(15,15,16,0.25);
  border-top:1px solid rgba(15,15,16,0.25);
}
.poster-grid span:nth-child(1){ border-top:none; }
.poster-grid span:nth-child(2){ border-top:none; }
.poster-grid span:nth-child(3){ border-top:none; }
.poster-grid span:nth-child(4){ border-top:none; }
.poster-grid span:nth-child(5){ border-top:none; }
.poster-grid span:nth-child(6){ border-top:none; }

.poster-core{
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 42px;
  border:1px solid rgba(15,15,16,0.16);
  background:
    radial-gradient(closest-side at 12% 18%, rgba(102,182,255,0.24), transparent 55%),
    radial-gradient(closest-side at 86% 16%, rgba(255,224,77,0.24), transparent 55%),
    radial-gradient(closest-side at 22% 86%, rgba(30,107,78,0.18), transparent 60%),
    radial-gradient(closest-side at 78% 86%, rgba(185,74,52,0.16), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.66));
  box-shadow: var(--shadow);
  padding: 34px 28px 22px;
  position:relative;
  overflow:hidden;
}

.poster-kicker{
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.62;
  margin-bottom: 10px;
}

.poster-title{
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 9vw, 116px);
  line-height: 0.88;
  letter-spacing: -0.09em;
}
.poster-line{
  margin: 16px 0 24px;
  max-width: 66ch;
  line-height: 1.55;
  font-size: 15px;
  opacity: 0.82;
}

.poster-rooms{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
@media (max-width: 980px){
  .poster-rooms{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px){
  .poster-rooms{ grid-template-columns: 1fr; }
}

.roomchip{
  text-decoration:none;
  color:inherit;
  border-radius: 22px;
  border:1px solid rgba(15,15,16,0.16);
  background: rgba(255,255,255,0.70);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow2);
  transition: transform 180ms ease, border-color 180ms ease;
}
.roomchip span{
  display:block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}
.roomchip strong{
  display:block;
  font-family: var(--font-display);
  letter-spacing: -0.05em;
  font-size: 18px;
  margin-top: 6px;
}
.roomchip:hover{ transform: translateY(-2px); border-color: rgba(15,15,16,0.28); }
.roomchip.health{ box-shadow: 0 0 0 3px rgba(185,74,52,0.14) inset; }
.roomchip.wealth{ box-shadow: 0 0 0 3px rgba(102,182,255,0.16) inset; }
.roomchip.creativity{ box-shadow: 0 0 0 3px rgba(255,224,77,0.24) inset; }
.roomchip.culture{ box-shadow: 0 0 0 3px rgba(30,107,78,0.18) inset; }

.poster-foot{
  margin-top: 22px;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

/* Legend + stamps */
.legend{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.legend-title{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.58;
  margin-right: 6px;
}

.stamp{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,15,16,0.16);
  background: rgba(255,255,255,0.70);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(15,15,16,0.78);
}
.stamp::before{
  content:"";
  width: 9px;
  height: 9px;
  border-radius: 99px;
  display:inline-block;
  border: 1px solid rgba(15,15,16,0.18);
}

/* status variants — per room uses --stamp-color */
.s-seed::before{
  background: transparent;
  border-color: var(--stamp-color, var(--yellow));
}
.s-growing::before{
  background:
    repeating-linear-gradient(45deg,
      rgba(15,15,16,0.16) 0,
      rgba(15,15,16,0.16) 2px,
      transparent 2px,
      transparent 5px);
}
.s-practising::before{
  background: var(--stamp-color, var(--yellow));
  border-color: rgba(15,15,16,0.18);
}
.s-onview{
  background: var(--stamp-color, var(--yellow));
  border-color: rgba(15,15,16,0.26);
  color: #111;
}
.s-onview::before{ background:#111; }
/* Scroll hint */
.scrollhint{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color: rgba(15,15,16,0.80);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,15,16,0.16);
  background: rgba(255,255,255,0.70);
}
.scroll-dot{
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(0,0,0,0.85), rgba(0,0,0,0.20));
}

/* Marquee */
.poster-marquee{
  position:absolute;
  left:0; right:0; bottom: 10px;
  overflow:hidden;
  opacity: 0.18;
  pointer-events:none;
}
.marquee-track{
  display:flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 16s linear infinite;
}
.marquee-track span{
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  font-size: 20px;
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* Rooms: scroll-snap feel */
.room{
  min-height: 100vh;
  padding: 84px 18px 54px;
  display:grid;
  align-items:center;
  position:relative;
}
.room::before{
  content:"";
  position:absolute;
  inset: 0;
  opacity: 0.40;
  pointer-events:none;
  background:
    radial-gradient(closest-side at 20% 18%, rgba(255,255,255,0.80), transparent 60%),
    radial-gradient(closest-side at 88% 22%, rgba(0,0,0,0.04), transparent 60%);
}

.room-shell{
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 44px;
  border:1px solid rgba(15,15,16,0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.62));
  box-shadow: var(--shadow);
  padding: 30px 26px 24px;
  position:relative;
  overflow:hidden;
}
.room-shell::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: 44px;
  background: linear-gradient(120deg,
    rgba(255,255,255,0.80),
    rgba(0,0,0,0.06),
    rgba(255,255,255,0.72));
  opacity:0.48;
  mix-blend-mode: overlay;
  pointer-events:none;
}

.room-head{
  display:grid;
  gap: 8px;
  margin-bottom: 18px;
}
.room-number{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.62;
}
.room h2{
  margin:0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.07em;
}
.room-head p{
  margin:0;
  max-width: 88ch;
  line-height: 1.6;
  opacity: 0.82;
}

/* Plinths */
.plinths{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
@media (max-width: 1100px){
  .plinths{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px){
  .plinths{ grid-template-columns: 1fr; }
}

.plinth{
  border-radius: var(--r2);
  border:1px solid rgba(15,15,16,0.16);
  background: rgba(255,255,255,0.78);
  box-shadow: var(--shadow2);
  padding: 16px 16px 14px;
  position:relative;
  overflow:hidden;
  transform: translateZ(0);
  transition: transform 200ms ease, border-color 200ms ease;
}
.plinth::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: var(--r2);
  background: linear-gradient(120deg,
    rgba(255,255,255,0.70),
    rgba(0,0,0,0.05),
    rgba(255,255,255,0.62));
  opacity: 0.42;
  mix-blend-mode: overlay;
  pointer-events:none;
}
.plinth:hover{
  transform: translateY(-2px);
  border-color: rgba(15,15,16,0.28);
}

.walllabel{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.58;
  margin-bottom: 10px;
}
.status{ margin-bottom: 12px; }

.plinth h3{
  margin: 0 0 10px;
  font-family: var(--font-display);
  letter-spacing: -0.05em;
  font-size: 18px;
}
.plinth p{ margin:0; line-height: 1.6; opacity: 0.82; }

.details{
  margin-top: 10px !important;
  font-size: 13px;
  opacity: 0.70 !important;
  line-height: 1.55;
}
.details strong{ font-weight: 600; }

/* On view hover micro-copy */
.onview-hint{
  margin-left: 8px;
  opacity: 0;
  transition: opacity 180ms ease;
}
.plinth:hover .s-onview .onview-hint{ opacity: 0.80; }

/* Contact endcap */
.room-contact{ padding-bottom: 90px; }
.endcap{ padding: 30px 0 18px; }
.endline{ height:1px; background: rgba(15,15,16,0.14); margin: 10px 0 16px; }
.endcap p{ margin:0; font-size: 13px; opacity: 0.70; }

/* Overlay map */
.overlay[hidden]{ display:none; }
.overlay{
  position:fixed;
  inset:0;
  z-index:80;
}
.overlay-backdrop{
  position:absolute;
  inset:0;
  background: rgba(15,15,16,0.32);
  backdrop-filter: blur(10px);
}
.overlay-panel{
  position:relative;
  max-width: 980px;
  margin: 90px auto 0;
  border-radius: 34px;
  border:1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  padding: 18px 18px 20px;
}
.overlay-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  padding: 6px 6px 12px;
}
.overlay-title{
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.05em;
}
.overlay-close{
  border:1px solid rgba(15,15,16,0.16);
  background: rgba(255,255,255,0.70);
  border-radius: 14px;
  width: 42px;
  height: 38px;
  cursor:pointer;
  font-size: 22px;
}

.mapgrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  padding: 8px;
}
@media (max-width: 860px){
  .mapgrid{ grid-template-columns: 1fr; }
}
.mapcard{
  text-decoration:none;
  color:inherit;
  border-radius: 22px;
  border:1px solid rgba(15,15,16,0.16);
  background: rgba(255,255,255,0.72);
  padding: 14px;
  box-shadow: var(--shadow2);
}
.mapcard span{
  display:block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.58;
}
.mapcard strong{
  display:block;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.05em;
  margin-top: 6px;
}
.mapcard em{
  display:block;
  font-style: normal;
  margin-top: 8px;
  opacity: 0.72;
  line-height: 1.4;
}
.mapcard.health{ box-shadow: 0 0 0 3px rgba(185,74,52,0.14) inset; }
.mapcard.wealth{ box-shadow: 0 0 0 3px rgba(102,182,255,0.16) inset; }
.mapcard.creativity{ box-shadow: 0 0 0 3px rgba(255,224,77,0.24) inset; }
.mapcard.culture{ box-shadow: 0 0 0 3px rgba(30,107,78,0.18) inset; }
.mapcard.ink{ box-shadow: 0 0 0 3px rgba(15,15,16,0.10) inset; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation:none; }
  .roomchip, .plinth{ transition:none !important; }
  .roomchip:hover, .plinth:hover{ transform:none !important; }
}


/* Exhibition doorway overlay */
#exhibit .overlay-backdrop{ background: rgba(15,15,16,0.38); }
.exhibit-panel{
  position:relative;
  max-width: 1180px;
  margin: 70px auto 0;
  border-radius: 44px;
  border:1px solid rgba(255,255,255,0.22);
  background:
    radial-gradient(closest-side at 14% 18%, rgba(102,182,255,0.18), transparent 55%),
    radial-gradient(closest-side at 86% 18%, rgba(255,224,77,0.18), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.66));
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  padding: 16px 16px 18px;
  overflow:hidden;
}
.exhibit-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  padding: 10px 10px 12px;
}
.exhibit-title{
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.06em;
  font-size: 20px;
}
.exhibit-actions{ display:flex; gap:10px; align-items:center; }
.exhibit-btn, .exhibit-close{
  border:1px solid rgba(15,15,16,0.16);
  background: rgba(255,255,255,0.72);
  border-radius: 14px;
  width: 42px;
  height: 38px;
  cursor:pointer;
  font-size: 22px;
  line-height: 1;
}
.exhibit-body{
  display:grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 14px;
  padding: 6px 10px 10px;
}
@media (max-width: 980px){
  .exhibit-panel{ margin: 90px 14px 0; }
  .exhibit-body{ grid-template-columns: 1fr; }
}
.exhibit-media{
  border-radius: 34px;
  border:1px solid rgba(15,15,16,0.16);
  background: rgba(255,255,255,0.74);
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.media-frame{
  width: 100%;
  height: min(72vh, 760px);
  padding: 14px;
  background:
    radial-gradient(closest-side at 30% 25%, rgba(0,0,0,0.06), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,255,255,0.55));
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.media-frame img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display:block;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.14);
}
.placeholder{
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.08em;
  font-size: 56px;
  opacity: 0.16;
  user-select:none;
}
.media-caption{
  padding: 14px 16px 16px;
  border-top:1px solid rgba(15,15,16,0.12);
}
.cap-line{
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
}
.cap-sub{
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.72;
  line-height: 1.45;
}
.exhibit-walltext{
  border-radius: 34px;
  border:1px solid rgba(15,15,16,0.16);
  background: rgba(255,255,255,0.74);
  box-shadow: var(--shadow2);
  padding: 16px 16px 14px;
}
.walltext-kicker{
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.62;
}
.walltext-heading{
  margin: 10px 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.06em;
}
.walltext-body{
  margin: 0;
  line-height: 1.65;
  opacity: 0.82;
}
.walltext-links{
  margin-top: 14px;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}
.walltext-links a{
  text-decoration:none;
  color: rgba(15,15,16,0.82);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 10px 12px;
  border-radius: 999px;
  border:1px solid rgba(15,15,16,0.16);
  background: rgba(255,255,255,0.70);
}
.walltext-links a:hover{ border-color: rgba(15,15,16,0.28); }

/* On-view hover microcopy */
.plinth.onview{
  cursor: pointer;
}
.enter-hint{
  position:absolute;
  right: 18px;
  bottom: 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
  color: rgba(15,15,16,0.70);
}
.plinth.onview:hover .enter-hint{
  opacity: 1;
  transform: translateY(0);
}

/* Living note */
.alive-note{
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
}
.contactlink{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(15,15,16,0.26);
}
.contactlink:hover{
  border-bottom-color: rgba(15,15,16,0.55);
}


/* Global top navigation (museum wayfinding) */
.topnav{
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,15,16,0.08);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.topnav a{
  color: rgba(15,15,16,0.78);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 999px;
}
.topnav a:hover{
  background: rgba(15,15,16,0.06);
  color: rgba(15,15,16,0.92);
}
.nav-sep{
  opacity: 0.35;
}
.nav-spacer{
  flex: 1;
}
.nav-home{
  font-weight: 600;
  color: rgba(15,15,16,0.92);
}
.nav-contact{
  font-weight: 600;
}

/* Entrance tour CTA */
.tour-cta{
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.tour-start{
  text-decoration: none;
  color: rgba(15,15,16,0.90);
  border: 1px solid rgba(15,15,16,0.16);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.70);
}
.tour-start:hover{
  background: rgba(15,15,16,0.04);
}
.tour-contact{
  text-decoration: none;
  color: rgba(15,15,16,0.62);
  padding: 10px 12px;
}

/* Walkthrough bar */
.walkthrough{
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(15,15,16,0.10);
  border-radius: 18px;
  background: rgba(255,255,255,0.70);
}
.walkthrough a{
  text-decoration: none;
  color: rgba(15,15,16,0.86);
  font-size: 13px;
  letter-spacing: 0.03em;
}
.walkthrough a:hover{
  text-decoration: underline;
}
.walk-mid{
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.45;
}
.walk-prev{ justify-self: start; }
.walk-next{ justify-self: end; }

/* Contact keys */
.contact-k{
  display:inline-block;
  min-width: 88px;
  opacity: 0.55;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}


/* Mast navigation — keeps the PACHE sig visible (no overlay nav) */
.mast-right{
  gap: 10px;
}
.mast-nav{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 6px;
}
.mast-nav a{
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(15,15,16,0.70);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 999px;
}
.mast-nav a:hover{
  background: rgba(15,15,16,0.06);
  color: rgba(15,15,16,0.90);
}
.roompage{
  padding-top: 24px;
  padding-bottom: 60px;
}
@media (max-width: 720px){
  .mast-nav{ display:none; }
}


/* Password gate */
.password-overlay{
  position:fixed; inset:0;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display:flex; align-items:center; justify-content:center;
}
.password-card{
  background:#fff;
  border:1px solid rgba(15,15,16,0.12);
  border-radius:18px;
  padding:28px 32px;
  text-align:center;
  min-width:260px;
}
.password-card input{
  width:100%;
  margin-top:10px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(15,15,16,0.2);
}
.password-card button{
  margin-top:12px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(15,15,16,0.2);
  background:#fff;
}
.password-card .error{ color:#b00020; font-size:12px; margin-top:8px; }

/* Exhibition doorway */
.exhibition-door{ padding: 40px 20px; }
.doorway{ text-align:center; padding:60px 20px; }
.enter-door{
  display:inline-block; margin-top:18px;
  padding:10px 16px; border-radius:999px;
  border:1px solid rgba(15,15,16,0.18);
  text-decoration:none; color:#111;
}
.gallery{
  display:grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap:24px; padding: 40px 0;
}
.gallery img{ width:100%; border-radius:10px; }
.enter-inline{ margin-left:8px; font-size:12px; text-decoration:none; }


/* Password gate (subtle, keeps museum UI intact) */
.gate{
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(248,248,248,0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  place-items: center;
}
.gate-panel{
  width: min(420px, calc(100vw - 32px));
  border: 1px solid rgba(15,15,16,0.12);
  border-radius: 22px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 18px 80px rgba(0,0,0,0.12);
  padding: 22px 20px 18px;
  text-align: center;
}
.gate-title{
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 14px;
  opacity: 0.88;
}
.gate-sub{
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.64;
}
.gate-form{
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.gate-input{
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(15,15,16,0.18);
  padding: 0 14px;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-align: center;
  outline: none;
  background: rgba(255,255,255,0.85);
}
.gate-input:focus{
  border-color: rgba(15,15,16,0.34);
}
.gate-btn{
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(15,15,16,0.18);
  padding: 0 14px;
  background: rgba(15,15,16,0.06);
  cursor: pointer;
}
.gate-btn:hover{ background: rgba(15,15,16,0.10); }
.gate-hint{
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.45;
  letter-spacing: 0.06em;
}
.gate-err{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(120,0,0,0.82);
  min-height: 16px;
}
.gate.shake .gate-panel{
  animation: gateShake 320ms ease;
}
@keyframes gateShake{
  0%{ transform: translateX(0); }
  25%{ transform: translateX(-6px); }
  50%{ transform: translateX(6px); }
  75%{ transform: translateX(-4px); }
  100%{ transform: translateX(0); }
}

/* Exhibition page */
.exhibitpage{
  padding-top: 22px;
  padding-bottom: 70px;
}
.exhibit-portal{
  width: min(980px, calc(100vw - 44px));
  margin: 0 auto 22px;
  position: relative;
  border: 1px solid rgba(15,15,16,0.10);
  border-radius: 26px;
  background: rgba(255,255,255,0.72);
  overflow: hidden;
}
.exhibit-doorframe{
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 220px at 70% 0%, rgba(255,215,0,0.10), transparent 55%),
              radial-gradient(700px 280px at 10% 80%, rgba(70,160,90,0.10), transparent 58%);
  opacity: 0.9;
}
.exhibit-title{
  position: relative;
  padding: 22px 22px 18px;
}
.exhibit-kicker{
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.52;
}
.exhibit-kicker .crumb{
  text-decoration: none;
  color: rgba(15,15,16,0.66);
}
.exhibit-kicker .crumb:hover{ text-decoration: underline; }
.exhibit-title h1{
  margin: 10px 0 8px;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.exhibit-title p{
  margin: 0;
  max-width: 68ch;
  opacity: 0.70;
}

.exhibit-grid{
  width: min(980px, calc(100vw - 44px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}
.work-card{
  border: 1px solid rgba(15,15,16,0.10);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.80);
}
.work-card img{
  width: 100%;
  height: auto;
  display: block;
}
.work-card figcaption{
  padding: 12px 14px 14px;
}
.work-title{
  font-weight: 700;
  letter-spacing: -0.01em;
}
.work-meta{
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.60;
}
@media (max-width: 860px){
  .exhibit-grid{ grid-template-columns: 1fr; }
  .exhibit-title h1{ font-size: 24px; }
}

/* Make walkthrough unmissable when placed above plinths */
.roompage .walkthrough{
  margin: 10px auto 18px;
  width: min(980px, calc(100vw - 44px));
}


/* Walkthrough prominence fix */
.walkthrough{
  width: min(1100px, calc(100vw - 48px));
  margin: 18px auto 28px;
  padding: 16px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.walkthrough a{
  font-weight: 500;
}


/* Make whole plinth clickable when wrapped in a link */
.plinth-link{
  display: block;
  color: inherit;
  text-decoration: none;
}
.plinth-link:focus-visible{
  outline: 2px solid rgba(15,15,16,0.28);
  outline-offset: 4px;
  border-radius: 18px;
}

/* Walkthrough placed between mast and room */
.topwalk{
  width: min(980px, calc(100vw - 44px));
  margin: 18px auto 14px;
  position: sticky;
  top: 14px; /* it sits above the room card, under the mast shadow */
  z-index: 45;
}
@media (max-width: 720px){
  .topwalk{ top: 10px; }
}

.ver{ font-size: 11px; opacity: 0.35; letter-spacing: 0.06em; }
.topwalk{
  width: min(980px, calc(100vw - 44px));
  margin: 16px auto 0;
  position: sticky;
  top: 64px;
  z-index: 60;
}
