/* =========================================================
   THE ROYAL MUSEUM OF FAILED WING APPARATUS
   East Wing Stylesheet. Form S-1979. Marble by arrangement.
   ========================================================= */

/*!
 =================================================================
  RESTRICTED // EAST WING // NOT FOR THE PLACARDS
  ROYAL MEMORANDUM No. RM-1979-14       FILE: EAST WING/ACQUISITIONS
  FROM: A. Fensome, Curator
  TO:   The Ministry of Unnecessary Measurements
  RE:   Exhibit No. 15 (provisional)

  1. A citizen has proposed an apparatus that is not a machine but
     a game: the visitor attempts to cook the One Recipe correctly,
     against the clock, without becoming Gerald.
  2. The Curator notes that no game can improve the One Recipe, and
     so it qualifies for the Museum, which is for things that
     tried.
  3. A corner of the shop has been cleared for it. The corner is
     2.25 inches wide. The Ministry has confirmed this is adequate.
  4. It is not ready. Nothing is announced. Please stop asking the
     audio guide; she does not know either, and is filling in.

  STATUS: Forthcoming, at the pace of the Crown.
 =================================================================
*/


:root {
  --marble: #efe7d6;
  --plaster: #f4ecdb;
  --velvet: #8c1f23;
  --velvet-deep: #4d0d10;
  --brass-a: #f3d270;
  --brass-b: #d4a017;
  --brass-c: #9c7410;
  --veins: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='v'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0035 .009' numOctaves='5' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .35 0 0 0 0 .3 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0 0 0 0 0 0 0 0 .3 0 .18 0 0 0 0 0 0 0 0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23v)'/%3E%3C/svg%3E");
}

body.museum {
  background-color: var(--marble);
  background-image: var(--grain), var(--veins),
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255,252,240,.8), transparent 70%);
  background-attachment: scroll;
  padding-bottom: 76px;
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.masthead__nav a[aria-current="page"] { border-color: var(--ink); background: var(--paper-light); }

/* ---------- Shared wall headings ---------- */
.wall-head { text-align: center; max-width: 760px; margin: 0 auto 46px; padding: 0 20px; }
.wall-head__no {
  display: inline-block; font-family: var(--heraldic); font-weight: 700; font-size: 12.5px; letter-spacing: .28em; text-transform: uppercase;
  margin: 0 0 12px; padding: 6px 16px 5px; color: #2a1d05;
  background: linear-gradient(180deg, var(--brass-a), var(--brass-b) 50%, var(--brass-c));
  border: 1px solid #5a420a; box-shadow: 0 2px 4px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.5);
}
.wall-head__title { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; margin: 0 0 16px; letter-spacing: -.005em; }
.wall-head__text { font-size: 18px; line-height: 1.6; margin: 0 auto; max-width: 42em; opacity: .92; }

/* ---------- Portico ---------- */
.portico { max-width: 1200px; margin: 0 auto; padding: 18px 20px 30px; }
.portico__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.portico__facade { margin: 0; filter: drop-shadow(0 18px 18px rgba(60,30,10,.25)); }
.portico__facade svg { display: block; width: 100%; height: auto; }
.portico__title { font-family: var(--display); font-weight: 900; color: var(--oxblood); font-size: clamp(40px, 5vw, 64px); line-height: .98; margin: 0; text-shadow: 2px 2px 0 rgba(212,160,23,.5); }
.portico__the { display: block; font-family: var(--heraldic); font-weight: 600; color: var(--ink); font-size: clamp(14px, 1.6vw, 19px); letter-spacing: .3em; text-transform: uppercase; text-shadow: none; margin-bottom: 8px; }
.portico .kicker { text-align: left; margin: 0 0 12px; }
.portico__est { display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--heraldic); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 6px 0; margin: 16px 0; }
.portico__est span[aria-hidden] { color: var(--gold-deep); }
.portico__lede { font-size: 19px; line-height: 1.55; margin: 0 0 16px; }
.hours { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 18px; margin: 0 0 20px; padding: 14px 16px; background: rgba(255,255,255,.35); border: 1px solid rgba(27,22,18,.35); }
.hours div { margin: 0; }
.hours dt { font-family: var(--heraldic); font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--oxblood); }
.hours dd { margin: 0; font-family: var(--mono); font-size: 14px; line-height: 1.4; }
.portico__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Rotunda ---------- */
.rotunda { padding: 70px 20px 60px; position: relative;
  background:
    radial-gradient(ellipse 60% 300px at 50% 0%, rgba(255,247,222,.9), transparent 75%),
    linear-gradient(180deg, transparent, rgba(150,120,80,.08));
  border-top: 14px solid transparent;
  border-image: linear-gradient(180deg, #e3d6b9, #fbf4e2 40%, #cbb995) 1;
}
.rotunda__inner { max-width: 1160px; margin: 0 auto; }
.rotunda__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; align-items: start; margin-bottom: 46px; }
.curator-letter { background: var(--paper-light); background-image: var(--grain); padding: 34px 38px 28px; border: 1px solid rgba(27,22,18,.4); box-shadow: var(--shadow); font-size: 17.5px; position: relative; }
.curator-letter p { margin: 0 0 12px; }
.curator-letter__salute { font-family: var(--display); font-style: italic; font-size: 24px; }
.curator-letter__sig { font-family: var(--display); font-style: italic; font-size: 24px; text-align: right; margin-top: 18px !important; }
.curator-letter__sig span { display: block; font-family: var(--mono); font-style: normal; font-size: 12.5px; color: var(--ink-soft); }
.house-rules { background: #1b1612; color: #f4ecdb; padding: 26px 26px 18px; border: 6px solid #3b322a; outline: 2px solid var(--brass-b); outline-offset: -12px; box-shadow: 0 16px 30px -18px rgba(0,0,0,.6); }
.house-rules h3 { font-family: var(--heraldic); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 15px; color: var(--brass-a); text-align: center; margin: 4px 0 14px; }
.house-rules ol { margin: 0; padding-left: 22px; font-family: var(--mono); font-size: 14.5px; line-height: 1.5; }
.house-rules li { margin-bottom: 8px; }
.house-rules li::marker { color: var(--brass-a); font-weight: 700; }

.rotunda__grid--map { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.floorplan { margin: 0; background: #f8f1e0; background-image: var(--grain); border: 1px solid var(--ink); padding: 16px; box-shadow: var(--shadow); }
.floorplan figcaption { font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; line-height: 1.45; }
.floorplan__map svg { display: block; width: 100%; height: auto; }
.map-room rect, .map-room circle, .map-room path.room { fill: #fffaf0; stroke: #1b1612; stroke-width: 2.5; transition: fill .2s ease; }
.map-room text { font-family: var(--heraldic); font-weight: 700; font-size: 12px; letter-spacing: .08em; fill: #1b1612; pointer-events: none; }
.map-room .map-sub { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: 0; fill: #3b322a; }
.map-room:hover rect, .map-room:hover circle, .map-room:focus rect, .map-room:focus circle { fill: #f6e3a6; }
.map-room:focus { outline: none; }
.map-room:focus-visible rect, .map-room:focus-visible circle { stroke: var(--stamp-blue); stroke-width: 5; }
.map-room.is-here rect, .map-room.is-here circle { fill: #e9c33a; }
.map-dot { fill: var(--oxblood); }
.map-route { fill: none; stroke: var(--oxblood); stroke-width: 2; stroke-dasharray: 5 5; opacity: .7; }
.map-you { fill: var(--stamp-blue); }

.directory { background: #231d18; color: #f4ecdb; padding: 22px 22px 16px; border: 10px solid #5a3b1d; box-shadow: inset 0 0 0 2px #1b1612, 0 14px 26px -16px rgba(0,0,0,.6);
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px); }
.directory__title { font-family: var(--heraldic); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; font-size: 15px; color: #fff; text-align: center; margin: 0 0 12px; }
.directory ul { list-style: none; margin: 0; padding: 0; }
.directory li { border-bottom: 1px dashed rgba(244,236,219,.2); }
.directory a { display: flex; gap: 12px; padding: 7px 4px; color: #f4ecdb; text-decoration: none; font-family: var(--mono); font-size: 14.5px; text-transform: uppercase; letter-spacing: .06em; }
.directory a:hover, .directory a:focus-visible { color: var(--brass-a); }
.directory a span { width: 26px; flex: none; text-align: right; color: var(--brass-a); font-weight: 700; }
.directory__closed a { color: #a99e8a; text-decoration: line-through; text-decoration-color: rgba(233,195,58,.7); }
.directory__closed em { font-style: normal; text-decoration: none; }
.directory__note { font-family: var(--mono); font-size: 12px; color: #b9ab8c; margin: 12px 0 0; }

/* Admission */
.admission { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 34px; align-items: start; margin-bottom: 24px; scroll-margin-top: 110px; }
.admission__title { font-family: var(--display); font-weight: 900; font-size: 28px; margin: 0 0 14px; }
.ticket-out { position: relative; }
.ticket-out__empty { text-align: center; }
.ticket-ghost { height: 210px; border: 3px dashed rgba(27,22,18,.35); display: grid; place-items: center; background: rgba(255,255,255,.25); }
.ticket-ghost span { font-family: var(--heraldic); font-weight: 800; letter-spacing: .4em; text-transform: uppercase; font-size: 28px; color: rgba(122,31,31,.35); transform: rotate(-4deg); }
#ticketCanvas { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 14px rgba(60,30,10,.3)); }
.ticket-out__msg { font-family: var(--mono); font-size: 14px; margin: 14px 0 10px; }
.ticket-out__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.stop-row { text-align: center; }

/* ---------- Audio guide stop buttons ---------- */
.stop-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 14px 7px 10px; cursor: pointer;
  font-family: var(--heraldic); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: inherit; background: transparent; border: 1.5px solid currentColor; border-radius: 999px; }
.stop-btn svg { width: 18px; height: 18px; }
.stop-btn:hover { background: rgba(212,160,23,.18); }
.stop-btn.is-speaking { background: var(--brass-b); color: #1b1612; border-color: #1b1612; }

/* ---------- Galleries ---------- */
.gallery { --wall: #5b1616; --wall-ink: #f4ecdb; --light: rgba(255,236,190,.42);
  position: relative; color: var(--wall-ink); padding: 84px 20px 70px;
  background-color: var(--wall);
  background-image:
    radial-gradient(ellipse 55% 160px at 50% 0%, rgba(255,240,200,.16), transparent 80%),
    linear-gradient(180deg, rgba(0,0,0,.18), transparent 120px, transparent calc(100% - 110px), rgba(0,0,0,.25)),
    var(--grain);
  border-top: 16px solid transparent;
  border-image: linear-gradient(180deg, #fbf4e2, #e3d6b9 50%, #a99872) 1;
  box-shadow: inset 0 -26px 0 -12px rgba(0,0,0,.25);
  scroll-margin-top: 70px;
}
.gallery--oxblood { --wall: #5b1616; }
.gallery--blue { --wall: #1f2e4d; --light: rgba(255,240,205,.36); }
.gallery--cold { --wall: #c7d2d4; --wall-ink: #1b1612; --light: rgba(255,255,255,.7); }
.gallery--citrus { --wall: #e8d9a0; --wall-ink: #1b1612; --light: rgba(255,250,220,.6); }
.gallery--ink { --wall: #211c18; --light: rgba(255,232,180,.32); }
.gallery--one { --wall: #f1e3c0; --wall-ink: #1b1612; --light: rgba(255,226,140,.75); }
.gallery--cold .wall-head__text, .gallery--citrus .wall-head__text, .gallery--one .wall-head__text { opacity: 1; }

.exhibit { max-width: 1120px; margin: 0 auto 90px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center; scroll-margin-top: 80px; }
.exhibit:last-child { margin-bottom: 20px; }
.exhibit:nth-of-type(even) .exhibit__bay { order: 2; }
.exhibit__bay { position: relative; padding: 52px 24px 0; min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  background: radial-gradient(ellipse 46% 78% at 50% 0%, var(--light), transparent 72%),
              radial-gradient(ellipse 50% 10% at 50% 96%, rgba(0,0,0,.28), transparent 70%); }
.exhibit__bay::before { content: ""; position: absolute; top: 0; left: 50%; width: 46px; height: 18px; margin-left: -23px; border-radius: 0 0 22px 22px;
  background: linear-gradient(180deg, #2a2623, #5c5651); box-shadow: 0 6px 12px rgba(255,236,190,.5); }
.exhibit__art { display: block; width: 100%; max-width: 430px; height: auto; position: relative; z-index: 1; filter: drop-shadow(0 10px 8px rgba(0,0,0,.3)); overflow: visible; }

.plinth { position: relative; width: 78%; max-width: 360px; height: 96px; margin-top: -8px; z-index: 0;
  background-color: #ece3d0;
  background-image: var(--veins), linear-gradient(90deg, rgba(0,0,0,.14), transparent 18%, transparent 82%, rgba(0,0,0,.2));
  border-top: 12px solid #f8f2e4; box-shadow: 0 -2px 0 #c9bb9c inset, 0 20px 30px -12px rgba(0,0,0,.5); }
.plinth__tag { position: absolute; left: 50%; top: 28px; transform: translateX(-50%); min-width: 34px; padding: 3px 8px; text-align: center;
  font-family: var(--heraldic); font-weight: 800; font-size: 13px; color: #2a1d05;
  background: linear-gradient(180deg, var(--brass-a), var(--brass-b) 55%, var(--brass-c)); border: 1px solid #5a420a; box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.plinth--empty { height: 130px; }
.plinth__note { position: absolute; left: 50%; top: 66px; transform: translateX(-50%) rotate(-2deg); font-family: var(--type); font-size: 13px; color: #3b322a; background: #fbf8ee; padding: 2px 10px; box-shadow: 0 2px 3px rgba(0,0,0,.25); }

.rope { position: relative; width: 100%; max-width: 460px; height: 60px; margin-top: -26px; z-index: 2; pointer-events: none; }
.rope::before { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12px 10px, #fff2b8 0 3px, #d4a017 6px, #6b4e0c 10px, transparent 10.5px) left top / 24px 24px no-repeat,
    radial-gradient(circle at 12px 10px, #fff2b8 0 3px, #d4a017 6px, #6b4e0c 10px, transparent 10.5px) right top / 24px 24px no-repeat,
    linear-gradient(90deg, #6b4e0c, #f0cd5e 50%, #6b4e0c) 7px 12px / 10px 48px no-repeat,
    linear-gradient(90deg, #6b4e0c, #f0cd5e 50%, #6b4e0c) calc(100% - 7px) 12px / 10px 48px no-repeat; }
.rope::after { content: ""; position: absolute; left: 14px; right: 14px; top: 2px; height: 34px;
  border: 7px solid transparent; border-bottom-color: var(--velvet); border-radius: 0 0 50% 50% / 0 0 100% 100%;
  filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)); }

.exhibit__text { position: relative; }
.placard { position: relative; padding: 20px 24px 16px; color: #2a1d05;
  background: linear-gradient(170deg, #f7dc85, var(--brass-b) 45%, #b98b18 75%, #9c7410);
  border: 2px solid #5a420a; box-shadow: 0 10px 18px -8px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.15); }
.placard::before, .placard::after { content: ""; position: absolute; top: 8px; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6cc, #8a6510 70%); box-shadow: 0 1px 1px rgba(0,0,0,.4); }
.placard::before { left: 8px; } .placard::after { right: 8px; }
.placard__no { margin: 0 0 4px; font-family: var(--heraldic); font-weight: 700; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; }
.placard__name { margin: 0 0 12px; font-family: var(--display); font-weight: 900; font-size: clamp(24px, 2.4vw, 31px); line-height: 1.08; text-shadow: 0 1px 0 rgba(255,246,200,.6); }
.placard__meta { margin: 0; display: grid; gap: 6px; border-top: 1px solid rgba(42,29,5,.45); padding-top: 10px; }
.placard__meta div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.placard__meta dt { font-family: var(--heraldic); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding-top: 2px; }
.placard__meta dd { margin: 0; font-family: var(--mono); font-size: 14px; line-height: 1.4; }
.essay { margin-top: 18px; padding: 20px 24px 8px; background: var(--plaster); background-image: var(--grain); color: var(--ink); border-left: 4px solid var(--brass-b); box-shadow: 0 10px 20px -14px rgba(0,0,0,.6); }
.essay p { margin: 0 0 14px; font-size: 16.5px; line-height: 1.62; }
.essay p:first-child::first-letter { font-family: var(--display); font-weight: 900; float: left; font-size: 50px; line-height: .8; padding: 6px 8px 0 0; color: var(--oxblood); }

/* Alcove */
.exhibit--alcove .exhibit__bay { background: radial-gradient(ellipse 40% 86% at 50% 0%, rgba(255,246,220,.85), rgba(255,246,220,.12) 60%, transparent 76%); }
.exhibit__art--empty { filter: none; }
.alcove-note { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%) rotate(-1.5deg); width: min(86%, 330px); z-index: 3; margin: 0;
  background: #fbf8ee; color: #1b1612; padding: 14px 16px; font-family: var(--type); font-size: 15px; line-height: 1.45; box-shadow: 0 10px 18px rgba(0,0,0,.35); border-top: 3px solid var(--brass-b); }
.alcove-note:not([hidden]) { animation: noteIn 1.6s ease both; }
@keyframes noteIn { from { opacity: 0; transform: translateX(-50%) translateY(8px) rotate(-1.5deg); } to { opacity: 1; transform: translateX(-50%) rotate(-1.5deg); } }

/* Banned */
.exhibit--banned .exhibit__bay { background: radial-gradient(ellipse 40% 60% at 50% 0%, rgba(255,232,180,.1), transparent 70%); }
.exhibit--banned .exhibit__bay::after { content: "Educational Purposes Only"; position: absolute; top: 24px; right: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #e9c33a; border: 1px solid #e9c33a; padding: 2px 8px; }

/* Room of the One */
.gallery--one { padding-bottom: 90px; }
.exhibit--one .exhibit__bay { background: radial-gradient(ellipse 52% 90% at 50% 0%, rgba(255,226,140,.85), rgba(255,226,140,.15) 60%, transparent 78%); }
.plinth--one { background-color: #f8f2e4; }
.placard--one { background: linear-gradient(170deg, #fff4c9, #f0cd5e 45%, #d4a017); }
.essay--one { border-left-color: var(--oxblood); }
.essay--one p { font-size: 17.5px; }
.essay--one p:last-child { font-family: var(--display); font-style: italic; font-size: 19px; }
.one-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; }
.one-actions .stop-btn { margin-top: 0; }

/* ---------- Do Not Touch ---------- */
.dnt-btn { all: unset; display: block; width: 100%; max-width: 430px; cursor: not-allowed; position: relative; z-index: 1; border-radius: 6px; }
.dnt-btn:focus-visible { outline: 3px dashed var(--brass-a); outline-offset: 6px; }
.dnt-btn .exhibit__art { max-width: none; }
.dnt-sign { position: absolute; top: 34px; left: 10px; z-index: 3; margin: 0; padding: 8px 12px; transform: rotate(-4deg); text-align: center;
  font-family: var(--heraldic); font-weight: 800; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.1;
  background: #fbf4e2; color: #a3221f; border: 3px solid #a3221f; box-shadow: 0 6px 10px rgba(0,0,0,.35); transition: transform .2s ease, background .2s ease; }
.dnt-sign span { display: block; font-size: 10px; letter-spacing: .2em; color: #1b1612; }
.dnt-sign.is-alarmed { background: #a3221f; color: #fff; animation: shake .4s ease 2; }
.dnt-sign.is-alarmed span { color: #fbe6c0; }
@keyframes shake { 0%,100% { transform: rotate(-4deg); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(2deg); } }
.guard { position: absolute; left: 0; right: 0; bottom: -38px; margin: 0; text-align: center; font-family: var(--type); font-size: 15px; color: var(--brass-a); min-height: 1.4em; }
.cannon-needle { transform-box: view-box; transform-origin: 56px 114px; transition: transform .8s cubic-bezier(.3,1.6,.5,1); }
.cannon-blast { opacity: 0; transform-box: view-box; transform-origin: 350px 80px; transform: scale(.2); transition: opacity .2s ease, transform .35s cubic-bezier(.2,1.6,.4,1); }
.is-fired .cannon-blast { opacity: 1; transform: scale(1); }
.exhibit--dnt.is-fired .exhibit__art { animation: recoil .5s ease; }
@keyframes recoil { 0% { transform: translateX(0); } 20% { transform: translateX(-14px) rotate(-1deg); } 100% { transform: translateX(0); } }

.sauce-layer { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.splat { position: absolute; border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%;
  background: radial-gradient(circle at 38% 34%, rgba(255,160,110,.85), rgba(210,70,27,.92) 40%, rgba(122,31,31,.95) 100%);
  box-shadow: inset -4px -6px 0 rgba(0,0,0,.12); animation: splat .35s cubic-bezier(.2,1.5,.4,1) both; }
.splat::after { content: ""; position: absolute; left: 40%; top: 85%; width: 18%; height: 70%; border-radius: 0 0 50% 50%; background: inherit; animation: drip 3s ease-in 0.4s both; }
@keyframes splat { from { transform: scale(.1); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes drip { from { height: 0; } to { height: 120%; } }
.sauce-layer.is-wiping .splat { transition: opacity .8s ease, transform .8s ease; opacity: 0; transform: translateX(40px) scaleX(.4); }

.incident { max-width: 620px; width: calc(100% - 28px); border: 0; padding: 0; background: transparent; }
.incident::backdrop { background: rgba(122,31,31,.55); }
.incident__inner { padding-bottom: 22px; max-height: 88vh; overflow: auto; }
.incident h2 { font-family: var(--display); font-weight: 900; font-size: 28px; margin: 4px 0 12px; }
.incident__fields { margin: 0; display: grid; gap: 6px; }
.incident__fields div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; border-bottom: 1px dotted rgba(27,22,18,.3); padding-bottom: 4px; }
.incident__fields dt { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.incident__fields dd { margin: 0; font-family: var(--type); font-size: 15px; }
.incident__remark { font-size: 14px; color: var(--ink-soft); margin: 14px 0; }
.incident__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Gallery IV, closed ---------- */
.closed { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.closed__door-wrap { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 10px; }
.closed__door { all: unset; display: block; width: min(240px, 70vw); cursor: pointer; filter: drop-shadow(0 18px 20px rgba(0,0,0,.35)); }
.closed__door svg { display: block; width: 100%; height: auto; }
.closed__door:focus-visible { outline: 3px dashed var(--stamp-blue); outline-offset: 6px; }
.closed__door .knocker { transform-box: fill-box; transform-origin: 50% 0%; }
.closed__door.is-knocking .knocker { animation: knock .22s ease; }
.closed__door.is-knocking svg { animation: thud .22s ease; }
@keyframes knock { 0% { transform: rotate(0); } 40% { transform: rotate(-26deg); } 100% { transform: rotate(0); } }
@keyframes thud { 50% { transform: translateY(1px) scale(.997); } }
.closed__door.is-answered .peep { fill: #f3cf63; filter: drop-shadow(0 0 4px #ffe08a); }
.closed__door.is-answered .door-gap { fill: #f3cf63; }
.rope--wide { max-width: 320px; margin-top: -40px; }
.closed__slip { position: relative; z-index: 4; margin-top: -26px; width: min(300px, 86vw); background: #fff9d8; color: #1b1612; padding: 14px 16px 12px; box-shadow: 0 10px 18px rgba(0,0,0,.3); transform: rotate(2deg); border: 1px solid #d9c87a; }
.closed__slip:not([hidden]) { animation: slipOut 1.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes slipOut { from { opacity: 0; transform: translateY(-30px) rotate(0); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: rotate(2deg); clip-path: inset(0 0 0 0); } }
.closed__slip-text { font-family: "Playfair Display", serif; font-style: italic; font-size: 17px; line-height: 1.45; margin: 0 0 10px; white-space: pre-line; }
.closed__slip-btn { font-size: 11px; padding: 8px 12px; }
.closed__notice { background: #fbf8ee; background-image: var(--grain); color: var(--ink); padding: 28px 30px 20px; border: 1px solid var(--ink); box-shadow: var(--shadow); position: relative; }
.closed__notice p { margin: 0 0 12px; font-size: 17px; }
.closed__stamp { display: inline-block; font-family: var(--heraldic); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: 18px !important; color: #a3221f; border: 3px solid #a3221f; padding: 6px 12px; transform: rotate(-3deg); margin-bottom: 16px !important; }
.closed__sig { font-family: var(--display); font-style: italic; text-align: right; }
.progress { display: grid; gap: 4px; margin: 16px 0; font-family: var(--mono); font-size: 13px; }
.progress__label { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.progress__bar { display: block; height: 14px; border: 2px solid var(--ink); background: repeating-linear-gradient(45deg, #fbf8ee 0 6px, #f1e6cf 6px 12px); }
.progress__bar > span { display: block; height: 100%; width: 0; background: var(--oxblood); }

/* ---------- The Book ---------- */
.guestbook { padding: 80px 20px 70px; background: linear-gradient(180deg, rgba(91,22,22,.08), transparent 200px); scroll-margin-top: 70px; }
.book { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; position: relative;
  background: #5b1616; padding: 14px; border-radius: 6px; box-shadow: 0 24px 40px -20px rgba(0,0,0,.6), inset 0 0 0 3px #3b0d0e; }
.book::after { content: ""; position: absolute; top: 14px; bottom: 14px; left: 50%; width: 30px; margin-left: -15px; background: linear-gradient(90deg, transparent, rgba(0,0,0,.18) 45%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.18) 55%, transparent); pointer-events: none; }
.book__page { background: #fbf6e8; background-image: var(--grain), repeating-linear-gradient(180deg, transparent 0 29px, rgba(47,79,143,.16) 29px 30px); padding: 26px 34px 24px; min-height: 420px; }
.book__page--left { border-radius: 4px 0 0 4px; }
.book__page--right { border-radius: 0 4px 4px 0; max-height: 640px; overflow: auto; }
.book__runner { font-family: var(--heraldic); font-weight: 700; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--oxblood); text-align: center; margin: 0 0 14px; }
.gb-form .field label { font-family: var(--mono); }
.gb-form input, .gb-form textarea { background-color: transparent; }
.gb-form__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.gb-reply { font-family: "Playfair Display", serif; font-style: italic; font-size: 17px; margin: 14px 0 0; min-height: 1.4em; }
.gb-entries { list-style: none; margin: 0; padding: 0; }
.gb-entry { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; padding: 10px 0 12px; border-bottom: 1px solid rgba(27,22,18,.15); }
.gb-entry__date { grid-row: span 2; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); padding-top: 4px; width: 84px; }
.gb-entry__name { font-family: var(--type); font-size: 18px; color: #1d3566; }
.gb-entry__name--illegible { filter: blur(.6px); }
.gb-entry__from { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.gb-entry__text { grid-column: 2; font-family: var(--type); font-size: 16px; line-height: 1.45; color: #1d3566; }
.gb-entry--mine .gb-entry__name, .gb-entry--mine .gb-entry__text { color: #1b1612; }
.gb-entry--founder { background: rgba(122,31,31,.05); }
.gb-entry--founder .gb-entry__name, .gb-entry--founder .gb-entry__text { color: #6b6158; font-family: "Playfair Display", serif; font-style: italic; letter-spacing: .01em; }
.gb-entry--founder:not([hidden]) { animation: fadeIn 2.4s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- The Shop ---------- */
.shop { padding: 80px 20px 60px; background: #f1e6cf; background-image: var(--grain), linear-gradient(180deg, rgba(0,0,0,.05), transparent 120px); border-top: 3px double var(--ink); scroll-margin-top: 70px; }
.shop__grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.shop__items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.item { background: var(--paper-light); border: 1px solid var(--ink); padding: 14px 16px 16px; box-shadow: 3px 3px 0 rgba(27,22,18,.85); display: flex; flex-direction: column; }
.item svg { width: 90px; height: 66px; display: block; margin: 0 auto 6px; }
.item h3 { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.15; margin: 0 0 6px; }
.item p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.45; }
.item__price { font-family: var(--mono); font-weight: 700; color: var(--oxblood); margin-top: auto !important; }
.item__btn { font-size: 12px; padding: 9px 12px; }
.item__btn.is-declined { background: #e3d3b0; text-decoration: line-through; }
.register { position: sticky; top: 96px; background: #2a2420; color: #f4ecdb; padding: 22px; border: 3px solid #1b1612; box-shadow: 0 16px 26px -16px rgba(0,0,0,.6); }
.register h3 { font-family: var(--heraldic); letter-spacing: .24em; text-transform: uppercase; font-size: 15px; margin: 0 0 12px; color: var(--brass-a); text-align: center; }
.register__display { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; background: #0f1a0c; color: #8fdc7a; font-family: var(--mono); padding: 10px 14px; border: 3px inset #3b322a; margin: 0 0 14px; }
.register__display b { text-align: right; }
.register__clerk { font-family: var(--type); font-size: 15.5px; line-height: 1.5; min-height: 4.5em; margin: 0 0 14px; }
.register .fineprint { color: #c9bca0; }
.register .stop-btn { color: var(--brass-a); }
.exit-sign { text-align: center; margin: 46px 0 0; }
.exit-sign a { display: inline-block; font-family: var(--heraldic); font-weight: 800; letter-spacing: .3em; text-transform: uppercase; font-size: 16px; color: #fff; background: #2c6b3a; padding: 10px 26px; text-decoration: none; border: 3px solid #fff; outline: 2px solid #2c6b3a; }
.exit-sign a:hover { background: #245a30; color: #fff; }

.colophon--museum { margin-top: 0; }
.colophon--museum .colophon__inner { padding: 40px 20px 30px; max-width: 900px; text-align: center; }
.colophon--museum .motto { font-family: var(--display); font-style: italic; font-size: 22px; color: var(--gold); margin: 0 0 12px; }
.colophon--museum p { color: #e5d8bb; }

/* ---------- The Audio Guide bar ---------- */
.guide { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; color: #f4ecdb; font-family: var(--mono); }
.guide__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 18px; background: #1b1612; border-top: 3px solid var(--brass-b); box-shadow: 0 -10px 24px rgba(0,0,0,.25); }
.guide__map { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: #f4ecdb; border: 1.5px solid rgba(244,236,219,.5); padding: 7px 12px; cursor: pointer; font-family: var(--heraldic); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.guide__map svg { width: 18px; height: 18px; }
.guide__map:hover { border-color: var(--brass-a); color: var(--brass-a); }
.guide__here { margin: 0; font-size: 13px; flex: 1; text-align: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide__here-label { color: #b9ab8c; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.guide__here b { font-family: var(--heraldic); letter-spacing: .06em; color: var(--brass-a); }
.guide__device { display: flex; align-items: center; gap: 8px; background: linear-gradient(180deg, #3b322a, #2a2420); border: 1px solid #5c5651; border-radius: 10px; padding: 5px 8px 5px 12px; }
.guide__label { font-family: var(--heraldic); font-weight: 700; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #b9ab8c; }
.guide__lcd { font-family: var(--mono); font-weight: 700; font-size: 16px; background: #2a1a05; color: #ffb547; padding: 1px 7px; border-radius: 3px; box-shadow: inset 0 0 6px rgba(0,0,0,.8); text-shadow: 0 0 6px rgba(255,181,71,.7); letter-spacing: .1em; }
.guide__title { font-size: 13px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide__btn { width: 34px; height: 34px; display: grid; place-items: center; background: #4a4038; color: #f4ecdb; border: 1px solid #1b1612; border-radius: 50%; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.15); padding: 0; }
.guide__btn svg { width: 16px; height: 16px; }
.guide__btn:hover { background: #5c5148; }
.guide__btn--play { background: var(--oxblood); width: 40px; height: 40px; }
.guide__btn--play .i-stop { display: none; }
.guide.is-speaking .guide__btn--play .i-play { display: none; }
.guide.is-speaking .guide__btn--play .i-stop { display: block; }
.guide__btn--txt { width: auto; border-radius: 6px; padding: 0 10px; font-family: var(--heraldic); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.guide__btn--txt[aria-expanded="true"] { background: var(--brass-b); color: #1b1612; }
.guide__transcript { max-width: 760px; margin: 0 auto 0 auto; background: #fbf8ee; color: #1b1612; border: 2px solid #1b1612; border-bottom: 0; padding: 16px 22px 12px; max-height: 38vh; overflow: auto; box-shadow: 0 -10px 24px rgba(0,0,0,.25); font-family: var(--body); }
.guide__speaker { font-family: var(--heraldic); font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--oxblood); margin: 0 0 6px; }
.guide__text { font-size: 16.5px; line-height: 1.55; margin: 0 0 8px; }
.guide__note { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); margin: 0; }
.guide__note:empty { display: none; }

/* ---------- Map dialog ---------- */
.map-dialog { max-width: 820px; width: calc(100% - 24px); border: 0; padding: 0; background: transparent; }
.map-dialog::backdrop { background: rgba(27,22,18,.7); }
.map-dialog__inner { background: #f8f1e0; background-image: var(--grain); border: 2px solid var(--ink); outline: 6px double var(--ink); outline-offset: -14px; padding: 26px 28px 16px; max-height: 90vh; overflow: auto; }
.map-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.map-dialog__head h2 { font-family: var(--display); font-weight: 900; font-size: 26px; margin: 0; }
.map-dialog__head .btn { padding: 8px 14px; font-size: 12px; }

/* ---------- Ambient motion (all of it optional) ---------- */
.pat-arm { transform-box: view-box; transform-origin: 132px 140px; animation: pat 1.4s ease-in-out infinite; }
@keyframes pat { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(4deg); } }
.drum { transform-box: view-box; transform-origin: 290px 170px; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.steam circle { animation: puff 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.steam circle:nth-child(2) { animation-delay: .6s; } .steam circle:nth-child(3) { animation-delay: 1.2s; }
@keyframes puff { 0%, 100% { transform: translateY(0) scale(1); opacity: .7; } 50% { transform: translateY(-6px) scale(1.12); opacity: .4; } }
.rotor { animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -36; } }
.eerie-halo { animation: eerie 4s ease-in-out infinite; }
@keyframes eerie { 0%, 100% { opacity: .25; } 50% { opacity: .6; } }
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.8s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(.92, 1.08); } 60% { transform: scale(1.05, .94); } }
.tubes circle { animation: eerie 2.6s ease-in-out infinite; }
.ice-hand { transform-box: view-box; transform-origin: 196px 182px; }
.waves path { animation: wave 1.6s ease-out infinite; }
.waves path:nth-child(2), .waves path:nth-child(5) { animation-delay: .25s; } .waves path:nth-child(3) { animation-delay: .5s; }
@keyframes wave { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.blink { animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.motes circle { animation: mote 9s ease-in-out infinite; transform-box: fill-box; }
.motes circle:nth-child(odd) { animation-duration: 12s; animation-delay: -3s; }
@keyframes mote { 0%, 100% { transform: translate(0, 0); opacity: .3; } 50% { transform: translate(6px, -14px); opacity: .9; } }
.fume { animation: eerie 3s ease-in-out infinite; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .portico__grid, .rotunda__grid, .rotunda__grid--map, .admission, .closed, .shop__grid { grid-template-columns: 1fr; }
  .exhibit { grid-template-columns: 1fr; gap: 26px; }
  .exhibit:nth-of-type(even) .exhibit__bay { order: 0; }
  .register { position: static; }
  .book { grid-template-columns: 1fr; }
  .book::after { display: none; }
  .book__page--left, .book__page--right { border-radius: 4px; }
  .book__page--right { margin-top: 10px; }
  .guide__title { display: none; }
}
@media (max-width: 720px) {
  body.museum { padding-bottom: 66px; }
  .portico { padding-top: 12px; }
  .portico__title { font-size: 40px; }
  .portico__actions .btn { flex: 1 1 100%; }
  .hours { grid-template-columns: 1fr; }
  .rotunda { padding: 50px 14px 40px; }
  .curator-letter { padding: 24px 20px 20px; font-size: 16.5px; }
  .gallery { padding: 60px 14px 50px; }
  .wall-head { padding: 0; margin-bottom: 30px; }
  .wall-head__text { font-size: 16.5px; }
  .exhibit { margin-bottom: 64px; }
  .exhibit__bay { min-height: 0; padding: 40px 6px 0; }
  .plinth { height: 70px; }
  .plinth__tag { top: 18px; }
  .placard { padding: 18px 16px 14px; }
  .placard__meta div { grid-template-columns: 1fr; gap: 0; }
  .essay { padding: 18px 16px 6px; }
  .essay p { font-size: 16px; }
  .dnt-sign { top: 22px; left: 0; font-size: 11px; padding: 6px 8px; }
  .guard { bottom: -44px; font-size: 14px; }
  .alcove-note { bottom: 90px; font-size: 14px; }
  .closed__notice { padding: 22px 18px 16px; }
  .book { padding: 8px; }
  .book__page { padding: 20px 16px; min-height: 0; }
  .gb-entry__date { width: 66px; }
  .register { padding: 18px; }
  .guide__bar { padding: 7px 8px; gap: 6px; }
  .guide__map span, .guide__label { display: none; }
  .guide__map { padding: 7px 8px; }
  .guide__here { font-size: 12px; text-align: left; }
  .guide__here-label { display: none; }
  .guide__device { gap: 5px; padding: 4px 5px 4px 7px; }
  .guide__btn { width: 30px; height: 30px; }
  .guide__btn--play { width: 36px; height: 36px; }
  .guide__lcd { font-size: 14px; padding: 1px 5px; }
  .guide__btn--txt { width: auto; padding: 0 7px; }
  .shop__items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .item { padding: 10px 10px 12px; }
  .item h3 { font-size: 1rem; }
  .item p { font-size: .9rem; }
  .guide__transcript { margin: 0 6px; padding: 12px 14px 10px; }
  .map-dialog__inner { padding: 20px 14px 12px; outline-offset: -9px; }
  .map-dialog__head h2 { font-size: 20px; }
  .incident__fields div { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .pat-arm, .drum, .steam circle, .rotor, .eerie-halo, .flame, .tubes circle, .waves path, .blink, .motes circle, .fume { animation: none !important; }
  .cannon-needle, .cannon-blast { transition: none; }
  .exhibit--dnt.is-fired .exhibit__art { animation: none; }
  .splat, .splat::after, .closed__slip, .alcove-note, .gb-entry--founder { animation: none !important; }
  .splat::after { height: 60%; }
}

/* ---------- Print ---------- */
@media print {
  .guide, .sauce-layer, .masthead, .portico__actions, .stop-btn, .rope { display: none !important; }
  .gallery { background: #fff !important; color: #000 !important; }
  body.museum { padding-bottom: 0; }
}
