/* home (corridor build): the About room's picked-object panel (item.js), from about/about.css + about/item.css. The object
   lands in cols 8–9 (y 507, 211 tall), its heading at col 10 and the note under it; Services / Awards close under their
   screens while it's out (rooms.js). Not under a difference blend here: ink is the theme's, the screens are paper. */
.item { position: fixed; inset: 0; z-index: 2; pointer-events: none; color: var(--fg); transition: opacity .45s ease; }
.item[hidden] { display: block; opacity: 0; visibility: hidden; }
.item-no { display: none; }
.item-title, .item-text { position: relative; }
.item-screen { position: absolute; image-rendering: pixelated; pointer-events: none; }
.item .ln { display: inline-block; vertical-align: top; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.item .ln-b { display: block; }
.item .ln-i { display: inline-block; }
.item .ls { display: block; position: relative; width: fit-content; }
.item .ls .ln-i { display: inline-block; position: relative; }
.item-meta, .f-cap, .item-frame { display: none !important; }
.m-roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.item-title .ch { opacity: 0; }
.item-title .ch.on { opacity: 1; }
.item-title .caret { position: absolute; left: 0; top: .14em; width: .42em; height: .84em; background: var(--accent); opacity: 0; pointer-events: none; }
.item-title .caret.on { opacity: 1; }
/* in the room the tagline steps back while an object is out (it would sit under the cloud on short screens) */
body.in-about.picked .hall .l-name { opacity: .35; transition: opacity .3s ease; }

/* the window (24 Nov, evening): the contact form's box, over the head monitor. aboutfx.js sets --mx/--my/--mw/--mh */
.iw { position: absolute; display: flex; flex-direction: column; left: var(--mx, 12vw); top: var(--my, 20vh); width: var(--mw, 76vw); height: var(--mh, 60vh); color: var(--fg); outline: 1px solid var(--fg); font-size: 13px; line-height: 16px; letter-spacing: -.03em; pointer-events: none; }
.iw .ct-bar { background: var(--bg); cursor: default; }
.iw button { pointer-events: auto; }
.iw-in { flex: 1; min-height: 0; display: grid; grid-template-columns: 46fr 54fr; }
.iw-view { position: relative; min-width: 0; border-right: 1px solid var(--fg); color: #e3e1db; }
.iw-tag { position: absolute; left: 16px; right: 16px; top: 14px; margin: 0; display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.iw-tag.iw-low { top: auto; bottom: 14px; opacity: .6; } .iw-turn { opacity: .6; }
.item-box { position: absolute; left: 9%; right: 9%; top: 52px; bottom: 52px; }
.iw-side { position: relative; min-width: 0; background: var(--bg); padding: 22px 20px 0; display: flex; flex-direction: column; }
.item-title { margin: 0; font-size: 32px; font-weight: 400; line-height: 1.1; letter-spacing: -.02em; }
.item-text { margin: 18px 0 0; font-size: 15px; line-height: 20px; letter-spacing: -.02em; max-width: 34em; }
.iw .ct-foot { margin: 0; padding: 8px 16px 10px; background: var(--bg); border-top: 1px solid var(--fg); }
.iw .xp-dl { margin-top: auto; }
.iw .xp-keys { margin: 20px 0 20px; }
body.on-mon .hall .l-name { opacity: 0 !important; }
.item.wait .iw-side > *, .item.wait .iw { visibility: hidden; }
.item.leaving .iw { visibility: hidden; }
@media (max-width: 860px) {
  .iw { left: 16px !important; top: 16px !important; width: calc(100vw - 32px) !important; height: calc(100svh - 32px) !important; }
  .iw-in { grid-template-columns: 1fr; grid-template-rows: 46fr 54fr; } .iw-view { border-right: 0; border-bottom: 1px solid var(--fg); }
  .item-box { top: 34px; bottom: 34px; } .iw-side { padding: 16px 16px 0; } .item-title { font-size: 26px; } .item-text { font-size: 15px; line-height: 20px; margin-top: 10px; } .iw .xp-keys { margin: 12px 0; } .iw .xp-dl { display: none; }
}
/* shared by both windows (exp.js's .xp-win too) */
.xp-dl { display: grid; gap: 8px; margin: 28px 0 0; } .xp-dl > div { display: grid; grid-template-columns: 96px 1fr; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--fg) 20%, var(--bg)); } .xp-dl dt { color: color-mix(in srgb, var(--fg) 50%, var(--bg)); } .xp-dl dd { margin: 0; font-variant-numeric: tabular-nums; }
.xp-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.xp-keys button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; align-items: center; height: 30px; padding: 0 8px; outline: 1px solid var(--fg); }
.xp-keys button:first-child { justify-content: flex-start; } .xp-keys button:last-child { background: var(--fg); color: var(--bg); } .xp-keys button:first-child::before { content: "←"; opacity: .6; } .xp-keys button:last-child::after { content: "→"; opacity: .6; }
.xp-keys button:hover, .xp-keys button:focus-visible { background: var(--fg); color: var(--bg); } .xp-keys button:last-child:hover, .xp-keys button:last-child:focus-visible { background: var(--bg); color: var(--fg); }
.xp-win { position: fixed; z-index: 4; right: var(--m); top: 24px; width: calc(3 * var(--col) + 2 * var(--g)); background: var(--bg); color: var(--fg); outline: 1px solid var(--fg); font-size: 13px; line-height: 16px; letter-spacing: -.03em; display: flex; flex-direction: column; }
.xp-win[hidden] { display: none; } .xp-win .ct-bar { cursor: default; }
.xp-win::after { content: ""; position: absolute; left: 6px; top: 6px; right: -6px; bottom: -6px; z-index: -1; pointer-events: none; clip-path: polygon(calc(100% - 6px) 0, 100% 0, 100% 100%, 0 100%, 0 calc(100% - 6px), calc(100% - 6px) calc(100% - 6px)); background: var(--fg); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Crect width='1' height='1'/%3E%3C/svg%3E") 0 0 / 2px 2px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Crect width='1' height='1'/%3E%3C/svg%3E") 0 0 / 2px 2px; }
.xp-body { padding: 22px 16px 0; min-height: 220px; } .xp-h { position: relative; margin: 0; font-size: 32px; line-height: 1.1; letter-spacing: -.02em; font-weight: 400; } .xp-h .wd { white-space: nowrap; } .xp-h .ch { opacity: 0; } .xp-h .ch.on { opacity: 1; }
.xp-h .caret { position: absolute; width: .42em; height: .84em; margin-top: .1em; background: var(--accent); opacity: 0; } .xp-h .caret.on { opacity: 1; }
.xp-p { margin: 14px 0 0; font-size: 15px; line-height: 20px; letter-spacing: -.02em; max-width: 30em; } .xp-win .xp-keys { margin: 28px 16px 20px; } .xp-win .xp-dl > div { grid-template-columns: 72px 1fr; } .xp-h { font-size: 28px; }
@media (max-width: 860px) { .xp-win { left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; } .xp-body { min-height: 0; padding-top: 14px; } .xp-h { font-size: 24px; } .xp-p { font-size: 13px; line-height: 17px; margin-top: 8px; } .xp-dl { margin-top: 14px; gap: 6px; } .xp-dl > div { padding-top: 6px; } .xp-win .xp-keys { margin: 14px 16px 12px; } }
body.on-mon .c-label, body.on-mon .l-foot { visibility: hidden; }
@media (min-width: 861px) { body.in-about .hall .l-name { top: 190px; bottom: auto; transform: none; position: fixed; mix-blend-mode: normal; } }
.item-text .pr { display: block; } .item-text .pr + .pr, .item .ls.gap { margin-top: 12px; }
.iw .item-copy { min-height: 0; overflow-y: auto; scrollbar-width: none; pointer-events: auto; padding: 0 6px 6px; margin: 0 -6px; } .iw-in { grid-template-columns: 42fr 58fr; } .iw .xp-dl { padding-top: 14px; } .iw .xp-dl > div:nth-child(2) { display: none; }
@media (max-height: 820px) and (min-width: 861px) { .item-text { font-size: 13px; line-height: 17px; margin-top: 12px; } .item-title { font-size: 26px; } .iw .xp-dl { display: none; } .iw .xp-keys { margin: 14px 0; } }
@media (max-width: 860px) { .iw-in { grid-template-columns: 1fr; grid-template-rows: 34fr 66fr; } .item-text { font-size: 13px !important; line-height: 17px !important; } }
@media (min-width: 861px) and (min-height: 821px) { .item-text { font-size: 17px; line-height: 23px; } .item-title { font-size: 36px; } .iw-side { padding: 28px 28px 0; } }
@media (max-height: 820px) and (min-width: 861px) { .item-text { font-size: 15px; line-height: 20px; } .iw .xp-keys { margin-top: auto; } }
/* the window sized to its text */
@media (min-width: 861px) { .iw .item-text { font-size: 15px !important; line-height: 20px !important; margin-top: 14px !important; max-width: none; } .iw .item-title { font-size: 30px !important; } .iw .iw-side { padding: 20px 20px 0 !important; } .iw .xp-dl { display: none !important; } .iw .xp-keys { margin: auto 0 16px !important; padding-top: 14px; } .iw-in { grid-template-columns: 40fr 60fr !important; } .item-box { left: 7%; right: 7%; top: 44px; bottom: 44px; } }
.iw button, .iw .xp-keys button { pointer-events: auto !important; }
/* (27 Nov) phones: the object gets half the window and nearly all of its box (it read too small) */
@media (max-width: 860px) { .iw-in { grid-template-rows: 52fr 48fr; } .item-box { top: 14px; bottom: 14px; left: 5%; right: 5%; } .iw-side { overflow-y: auto; overscroll-behavior: contain; padding-bottom: 72px !important; } }
/* (27 Nov) desktop: the object's box runs nearly to the panel's edges, so each one is shown as big as it fits */
@media (min-width: 861px) { .item-box { left: 3%; right: 3%; top: 30px; bottom: 30px; } }
/* (28 Nov) phones: Previous / Next back at the window's bottom right; only the note scrolls, above them */
@media (max-width: 860px) {
  .iw-side { overflow: hidden !important; padding-bottom: 0 !important; display: flex; flex-direction: column; min-height: 0; }
  .iw-side .item-copy { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .iw .xp-keys { flex: none; margin: auto 0 16px !important; padding-top: 12px; }
}
