/* Prototype: the pendopo as The Stage. One fixed WebGL canvas, the words over it, a tall track to scroll. */
:root {
  --ink: #07080a;
  --bone: #ece8df;
  --bone-dim: rgba(236, 232, 223, 0.62);
  --bone-faint: rgba(236, 232, 223, 0.28);
  --accent: #d8a65c;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--bone); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; height: 100vh; }
button { font: inherit; color: inherit; cursor: pointer; }

#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
.track { height: 7800vh; }

.scrim { position: fixed; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(to top, rgba(4,4,5,.72) 0%, rgba(4,4,5,.35) 28%, transparent 52%), linear-gradient(to right, rgba(4,4,5,.45) 0%, transparent 45%); }
.vignette { position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 60%, rgba(0,0,0,.35) 100%); }
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-5%)} 60%{transform:translate(-2%,4%)} 80%{transform:translate(5%,1%)} 100%{transform:translate(0,0)} }

.label { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim); margin: 0; }

/* loader */
.loader { position: fixed; inset: 0; z-index: 20; background: var(--ink); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; transition: opacity 1.6s var(--ease), visibility 1.6s; }
.loader.gone { opacity: 0; visibility: hidden; }
.loader__title { font-family: var(--serif); font-size: clamp(40px, 7vw, 92px); margin: 0; line-height: 1; letter-spacing: -.01em; }
.loader__bar { width: min(280px, 60vw); height: 1px; background: var(--bone-faint); position: relative; overflow: hidden; }
.loader__bar span { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.loader__step { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim); margin: 0; display: flex; gap: 14px; }
.loader__count { color: var(--bone); }
.loader__enter { display: flex; gap: 12px; margin-top: 22px; opacity: 0; transform: translateY(10px); transition: all 1s var(--ease); pointer-events: none; }
.loader.ready .loader__enter { opacity: 1; transform: none; pointer-events: auto; }
.loader__enter button, .button { background: transparent; border: 1px solid var(--bone-faint); border-radius: 999px; padding: 12px 22px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; transition: background .4s, border-color .4s; }
.loader__enter button:hover, .button:hover { background: rgba(236,232,223,.08); border-color: var(--bone-dim); }
.loader__enter button.quiet { border-color: transparent; color: var(--bone-dim); }

/* hud */
.hud { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: space-between; align-items: baseline;
  padding: 22px 28px; pointer-events: none; opacity: 0; transition: opacity 1.2s; }
body.entered .hud, body.entered .rail, body.entered .sound { opacity: 1; }
.hud__mark { font-family: var(--serif); font-size: 22px; color: var(--bone); text-decoration: none; pointer-events: auto; }
.hud__where { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim); margin: 0; }
.rail { position: fixed; right: 28px; top: 50%; height: 38vh; transform: translateY(-50%); width: 1px; background: var(--bone-faint); z-index: 5; opacity: 0; transition: opacity 1.2s; }
.rail__fill { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.sound { position: fixed; right: 22px; bottom: 22px; z-index: 6; height: 40px; padding: 0 16px 0 14px; border-radius: 999px; border: 1px solid var(--bone-faint);
  background: rgba(8,8,9,.45); display: flex; align-items: center; gap: 10px; opacity: 0; transition: opacity 1.2s, border-color .4s, background .4s; }
.sound:hover { border-color: var(--bone-dim); }
.sound__bars { display: flex; align-items: center; gap: 3px; height: 16px; }
.sound__bars span { width: 2px; height: 4px; background: var(--bone); border-radius: 1px; transition: height .3s; }
.sound.on .sound__bars span { animation: eq 1s ease-in-out infinite; }
.sound.on .sound__bars span:nth-child(2) { animation-delay: -.3s } .sound.on .sound__bars span:nth-child(3) { animation-delay: -.6s } .sound.on .sound__bars span:nth-child(4) { animation-delay: -.15s }
.sound__label { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim); }
.sound.hint { border-color: var(--accent); animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 0%,100% { box-shadow: 0 0 0 0 rgba(216,166,92,0) } 50% { box-shadow: 0 0 0 6px rgba(216,166,92,.18) } }
@keyframes eq { 0%,100%{height:4px} 50%{height:14px} }

/* words */
.words { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.w { position: absolute; left: 6vw; bottom: 11vh; max-width: min(640px, 86vw); }
.w--hero { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); text-align: center; max-width: 900px; width: 90vw; }
.w--end { pointer-events: none; }
.w.on .end__actions { pointer-events: auto; }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.6vw, 84px); line-height: .98; letter-spacing: -.015em; margin: 14px 0 0; }
.w--hero .display { font-size: clamp(56px, 10vw, 150px); margin-top: 18px; }
.display em { font-style: italic; color: var(--accent); }
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.8vw, 24px); line-height: 1.35; color: var(--bone-dim); margin: 26px 0 0; }
.body { font-size: 15px; line-height: 1.6; color: var(--bone-dim); margin: 18px 0 0; max-width: 460px; }
.cue { margin-top: 44px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim); }
.cue i { display: inline-block; width: 36px; height: 1px; background: var(--bone-dim); vertical-align: middle; margin-right: 12px; }
.end__actions { margin-top: 26px; }

.ln { display: block; overflow: hidden; padding-bottom: .08em; }
.ln > span { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.w.on .ln > span { transform: none; }
.w .ln:nth-of-type(2) > span, .w .display .ln:nth-child(2) > span, .w .quote .ln:nth-child(2) > span { transition-delay: .08s; }
.w .quote .ln:nth-child(3) > span { transition-delay: .16s; }
.w .body > span { transition-delay: .2s; }
.w .cue > span, .w .end__actions > span { transition-delay: .32s; }

@media (max-width: 700px) {
  .hud { padding: 16px 18px; } .hud__mark { font-size: 18px; } .hud__where { display: none; }
  .rail { right: 12px; } .w { left: 18px; right: 18px; bottom: 9vh; }
  .loader__enter { flex-direction: column; align-items: center; }
}

/* JakArt in numbers */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 28px; margin-top: 18px; max-width: 620px; }
.stats p { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim); }
.stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 56px); letter-spacing: -.01em; color: var(--bone); text-transform: none; line-height: 1; margin-bottom: 4px; }

/* the courtyard: the pelita form, the credits, the note on a lit lamp */
.w--end.on .pelita, .w--end.on .end__actions, .w--end.on .end__credits { pointer-events: auto; }
.pelita, .w--end .end__actions, .w--end .end__credits { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease) .35s, transform .9s var(--ease) .35s; }
.w--end.on .pelita, .w--end.on .end__actions, .w--end.on .end__credits { opacity: 1; transform: none; }
.pelita { margin-top: 22px; display: grid; gap: 12px; max-width: 440px; }
.pelita label { display: grid; gap: 6px; }
.pelita label span { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim); }
.pelita input, .pelita textarea { font: 15px/1.5 var(--sans); color: var(--bone); background: rgba(8,8,9,.55); border: 1px solid var(--bone-faint); border-radius: 6px; padding: 10px 12px; resize: none; }
.pelita input::placeholder, .pelita textarea::placeholder { color: rgba(236,232,223,.35); }
.pelita input:focus, .pelita textarea:focus { outline: none; border-color: var(--accent); }
.pelita__row { display: flex; align-items: center; gap: 16px; }
.button--solid { background: var(--accent); border-color: var(--accent); color: #17120b; }
.button--solid:hover { background: #e3b670; border-color: #e3b670; }
.pelita__done { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--accent); opacity: 0; transition: opacity .6s; }
.pelita.done .pelita__done { opacity: 1; }
.pelita__error { margin: 0; min-height: 1em; font-size: 13px; color: #e88a6e; }
.pelita__count, .pelita__note { margin: 0; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim); }
.pelita__note { color: rgba(236,232,223,.4); }
.w--end { bottom: 6vh; }
.end__credits { margin-top: 18px; font-size: 12px; line-height: 1.6; color: rgba(236,232,223,.45); max-width: 440px; }
.pelita-tip { position: fixed; left: 0; top: 0; z-index: 8; pointer-events: none; max-width: 260px; padding: 10px 12px; border-radius: 6px; background: rgba(10,9,8,.85); border: 1px solid rgba(216,166,92,.4); opacity: 0; transition: opacity .25s; }
.pelita-tip.on { opacity: 1; }
.pelita-tip b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 18px; color: var(--accent); }
.pelita-tip span { display: block; font-size: 13px; line-height: 1.5; color: var(--bone); margin-top: 2px; }

.w--end .display { font-size: clamp(34px, 4.2vw, 64px); }
.w--end .body { margin-top: 10px; }
.w--end .pelita { gap: 8px; margin-top: 14px; }
@media (max-height: 820px) { .w--end .end__credits, .w--end .pelita__note { display: none; } .w--end .end__actions { margin-top: 12px; } }

/* a work, opened */
.work { position: fixed; inset: 0; z-index: 12; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 4vw; align-items: center;
  padding: 7vh 6vw; background: rgba(6,6,7,.94); opacity: 0; transition: opacity .4s var(--ease); }
.work.on { opacity: 1; }
.work__img { margin: 0; height: 100%; max-height: 82vh; display: flex; align-items: center; justify-content: center; }
.work__img img { max-width: 100%; max-height: 82vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.work__text h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 46px); line-height: 1.05; margin: 14px 0 16px; }
.work__desc { font-size: 16px; line-height: 1.6; color: var(--bone); margin: 0 0 16px; }
.work__ctx { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.45; color: var(--bone-dim); margin: 0 0 18px; }
.work__note { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(236,232,223,.4); margin: 0 0 22px; }
@media (max-width: 800px) { .work { grid-template-columns: 1fr; align-content: start; overflow: auto; } .work__img { max-height: 52vh; } .work__img img { max-height: 52vh; } }
.work[hidden] { display: none; }
.work:not(.on) { pointer-events: none; }

/* Mikhail at work, behind the ASAH canvas */
.strip { margin-top: 16px; }
.strip > span { display: flex !important; gap: 8px; }
.strip img { height: 66px; width: auto; border-radius: 3px; object-fit: cover; opacity: .92; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
@media (max-height: 700px) { .strip img { height: 48px; } }

/* a work in the gallery, and a poem in the senthong: the words sit left, the work or page right */
.w--work .display { font-size: clamp(30px, 3.4vw, 50px); }
.w--work .hint, .w--poem .hint { display: block; margin-top: 8px; font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(236,232,223,.45); }
.w--poem { bottom: auto; top: 50%; transform: translateY(-50%); max-width: min(440px, 44vw); }
.w--poem .display { font-size: clamp(30px, 3.2vw, 46px); }
.poem { margin: 16px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.42; color: var(--bone); }
@media (max-height: 760px) { .poem { font-size: 14px; line-height: 1.3; } }

/* ---------------------------------------------------------------- the archive */
.hud__archive { pointer-events: auto; margin-left: auto; background: none; border: 1px solid var(--bone-faint); color: var(--bone); border-radius: 999px; padding: 8px 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background .3s, border-color .3s; }
.hud__archive:hover, .hud__archive:focus-visible { background: rgba(236,232,223,.08); border-color: var(--bone-dim); }
.w__more { display: inline-block; margin-top: 14px; pointer-events: auto; color: var(--bone); background: none; border: 0; border-bottom: 1px solid var(--bone-faint); padding: 0 0 3px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.w__more:hover, .w__more:focus-visible { border-bottom-color: var(--bone); }
.w:not(.on) .w__more { pointer-events: none; }

.archive { position: fixed; inset: 0; z-index: 20; background: #0b0a09; color: var(--bone); display: grid; grid-template-rows: auto auto 1fr;
  opacity: 0; transition: opacity .45s var(--ease); }
.archive.on { opacity: 1; }
.archive[hidden] { display: none; }
.archive--bare { background: transparent; }
.archive--bare > :not(.lightbox) { visibility: hidden; }
.archive__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px max(16px, 4vw) 8px; }
.archive__mark { font-family: var(--serif); font-size: 22px; margin: 0; }
.archive__mark span { color: var(--bone-dim); font-style: italic; }
.archive__close, .lightbox__close { background: none; border: 1px solid var(--bone-faint); color: var(--bone); border-radius: 999px; padding: 8px 16px; cursor: pointer;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.archive__tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px max(16px, 4vw) 14px; scrollbar-width: none; border-bottom: 1px solid rgba(236,232,223,.1); }
.archive__tabs::-webkit-scrollbar { display: none; }
.archive__tabs button { flex: none; background: none; border: 0; color: var(--bone-dim); padding: 6px 10px; cursor: pointer; font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; border-radius: 999px; }
.archive__tabs button[aria-current="true"] { color: var(--ink); background: var(--bone); }
.archive__body { overflow-y: auto; overscroll-behavior: contain; padding: 0 max(16px, 4vw) 10vh; outline: none; }
.archive__section h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 84px); line-height: 1; margin: 5vh 0 12px; }
.archive__intro { max-width: 640px; color: var(--bone-dim); font-size: 16px; line-height: 1.6; margin: 0 0 4vh; }
.archive__sub { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim); margin: 6vh 0 18px; }
.archive__grid { columns: 4 240px; column-gap: 14px; }
.archive__item { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: #1a1816; cursor: zoom-in; break-inside: avoid; overflow: hidden; }
.archive__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .4s; }
.archive__item:hover img, .archive__item:focus-visible img { transform: scale(1.03); }
.archive__map { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.archive__map img { width: 100%; max-height: 70vh; object-fit: contain; }
.archive__concerts { list-style: none; margin: 0; padding: 0; }
.archive__concerts li { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid rgba(236,232,223,.1); }
.archive__when { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--bone-dim); margin: 4px 0 0; }
.archive__city { font-family: var(--serif); font-size: 26px; margin: 0; }
.archive__venue { color: var(--bone-dim); font-size: 14px; margin: 4px 0 10px; }
.archive__strip { display: flex; gap: 8px; overflow-x: auto; }
.archive__strip .archive__item { flex: none; width: auto; height: 120px; margin: 0; }
.archive__strip .archive__item img { width: auto; height: 120px; }
.archive__article { max-width: 720px; margin: 0 0 6vh; }
.archive__article h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 0 0 14px; }
.archive__article p { color: var(--bone); font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.archive__films { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.archive__film { margin: 0; }
.archive__film video { width: 100%; aspect-ratio: 4 / 3; background: #000; display: block; }
.archive__film figcaption { color: var(--bone-dim); font-size: 14px; line-height: 1.5; margin-top: 10px; }
.archive__film strong { color: var(--bone); font-weight: 500; display: block; }

.lightbox { position: fixed; inset: 0; z-index: 2; background: rgba(5,5,5,.96); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center;
  opacity: 0; transition: opacity .3s; }
.lightbox.on { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 100vh; padding: 6vh 0; box-sizing: border-box; }
.lightbox__fig img { max-width: 100%; max-height: 74vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox__fig figcaption { text-align: center; max-width: 720px; display: grid; gap: 4px; }
.lightbox__count { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim); }
.lightbox__fig strong { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.lightbox__desc { font-size: 15px; line-height: 1.5; }
.lightbox__note { font-size: 12px; color: var(--bone-dim); }
.lightbox__nav { background: none; border: 0; color: var(--bone); font-size: 44px; cursor: pointer; height: 100%; }
.lightbox__nav[hidden] { visibility: hidden; display: block; }
.lightbox__close { position: absolute; top: 18px; right: max(16px, 2vw); }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 36px 1fr 36px; }
  .archive__concerts li { grid-template-columns: 1fr; gap: 6px; }
  .archive__grid { columns: 2 140px; column-gap: 10px; }
}
.w__more { opacity: 0; transform: translateY(8px); transition: opacity .8s var(--ease) .3s, transform .8s var(--ease) .3s, border-color .3s; }
.w.on .w__more { opacity: 1; transform: none; }
.end__actions .button + .button { margin-left: 8px; }

/* ---------------------------------------------------------------- rooms */
.hud__nav { display: flex; gap: 8px; pointer-events: auto; }
.hud__nav .hud__archive { margin-left: 0; }
.rooms { position: fixed; inset: 0; z-index: 19; background: rgba(6,6,6,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .35s var(--ease); }
.rooms.on { opacity: 1; }
.rooms[hidden] { display: none; }
.rooms__panel { width: min(980px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #0e0d0c; border: 1px solid rgba(236,232,223,.12); padding: 22px 26px 26px; box-sizing: border-box; }
.rooms__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.rooms__close { background: none; border: 1px solid var(--bone-faint); color: var(--bone); border-radius: 999px; padding: 8px 16px; cursor: pointer;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.rooms__body { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.15fr); gap: 28px; align-items: start; }
.rooms__plan { width: 100%; max-height: 74vh; display: block; }
.rooms__plan rect { fill: rgba(236,232,223,.04); stroke: rgba(236,232,223,.35); stroke-width: .08; transition: fill .25s, stroke .25s; }
.rooms__yard rect { stroke-dasharray: .4 .3; fill: none; }
.rooms__b { cursor: pointer; }
.rooms__b.lit rect { fill: rgba(236,232,223,.16); stroke: var(--bone); }
.rooms__b.here rect { fill: rgba(214,170,96,.22); stroke: #d6aa60; }
.rooms__tag { font-family: var(--mono); font-size: .62px; letter-spacing: .06em; text-transform: uppercase; fill: var(--bone-dim); text-anchor: middle; pointer-events: none; }
.rooms__path { stroke: rgba(236,232,223,.18); stroke-width: .08; stroke-dasharray: .3 .3; fill: none; }
.rooms__list { list-style: none; margin: 0; padding: 0; }
.rooms__list button { width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: baseline; text-align: left; background: none; border: 0;
  border-top: 1px solid rgba(236,232,223,.08); color: var(--bone); padding: 10px 6px; cursor: pointer; transition: background .2s; }
.rooms__list button:hover, .rooms__list button:focus-visible { background: rgba(236,232,223,.06); outline: none; }
.rooms__list button[aria-current] { background: rgba(214,170,96,.12); }
.rooms__n { font-family: var(--mono); font-size: 10px; color: var(--bone-dim); }
.rooms__list strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.15; }
.rooms__list em { display: block; font-style: normal; font-size: 13px; color: var(--bone-dim); margin-top: 2px; }
.rooms__fade { position: fixed; inset: 0; z-index: 30; background: #000; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.rooms__fade.on { opacity: 1; }
@media (max-width: 720px) {
  .rooms__body { grid-template-columns: 1fr; }
  .rooms__plan { display: none; }
  .rooms__panel { padding: 16px; }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 700px) {
  .hud { gap: 10px; align-items: center; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  .hud__mark { font-size: 16px; line-height: 1.1; max-width: 9em; }
  .hud__nav { gap: 6px; }
  .hud__nav .hud__archive { padding: 7px 11px; font-size: 9px; letter-spacing: .12em; }
  .w { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .w .display { font-size: clamp(30px, 9vw, 44px); }
  .w .body { font-size: 14px; line-height: 1.5; }
  /* the work or poem page sits centred above; its words sit below it, short */
  .w--poem, .w--work { top: auto; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); transform: none; max-width: none; }
  .w--poem .display, .w--work .display { font-size: clamp(24px, 7vw, 32px); }
  .w--poem .poem { font-size: 14px; line-height: 1.35; max-height: 24vh; overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
  .w--poem .body { display: none; }
  .strip img { height: 52px; }
  .sound { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}
body.nogl .scene, body.nogl #scene { display: none; }
