/* The reading room (?hall=1). Loads after room.css and re-skins its shell in lamp light. Everything the
   hall shows is declared here in full under .room.hall, so changes to room.css do not leak in. */
html[data-hall][data-room-pending] body::before { background: #030201; }
html[data-hall][data-room-pending] body::after { display: none; }

.room.hall {
  --room-ink: #f1e6d2;
  --room-muted: #b3a48c;
  --room-text: #d6c8b0;
  --room-paper: rgba(14, 9, 6, 0.8);
  --room-rule: rgba(226, 170, 96, 0.16);
  --room-border: rgba(226, 170, 96, 0.38);
  --room-accent: #e2aa60;
  --room-accent-soft: #f3cf9a;
  --hall-glass: rgba(14, 9, 6, 0.66);
  --hall-glass-hover: rgba(38, 24, 13, 0.86);
  --hall-ember: rgba(255, 170, 80, 0.55);
  --hall-ease: cubic-bezier(0.16, 1, 0.3, 1);
  background: #030201;
  color: var(--room-ink);
}
/* The same warm palette in OKLCH, mixed with color-mix(); older browsers keep the hex values above. */
@supports (color: oklch(0.5 0.1 60)) and (color: color-mix(in oklch, red, blue)) {
  .room.hall {
    --room-ink: oklch(0.93 0.03 80);
    --room-muted: oklch(0.72 0.04 78);
    --room-text: oklch(0.84 0.04 80);
    --room-accent: oklch(0.78 0.11 70);
    --room-accent-soft: oklch(0.87 0.08 75);
    --room-rule: color-mix(in oklch, var(--room-accent) 16%, transparent);
    --room-border: color-mix(in oklch, var(--room-accent) 40%, transparent);
    --hall-glass: color-mix(in oklch, oklch(0.16 0.02 55) 68%, transparent);
    --hall-glass-hover: color-mix(in oklch, oklch(0.24 0.04 60) 88%, transparent);
    --hall-ember: color-mix(in oklch, oklch(0.8 0.15 65) 55%, transparent);
  }
}
.room.hall::before {
  background:
    linear-gradient(180deg, rgba(3, 2, 1, 0.74), rgba(3, 2, 1, 0) 17%, rgba(3, 2, 1, 0) 78%, rgba(3, 2, 1, 0.78));
}
.room.hall canvas.room-scene { touch-action: none; cursor: grab; transition: opacity 900ms ease; }
.room.hall :focus-visible { outline: 2px solid var(--room-accent-soft); outline-offset: 3px; }
.room.hall .hall-icon {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Loading: nothing of the room shows until its first painting is on screen ── */
.room.hall > .room-top,
.room.hall > .hall-bottom { transition: opacity 700ms ease 150ms; }
.room.hall[data-loading] canvas.room-scene,
.room.hall[data-loading] > .room-top,
.room.hall[data-loading] > .hall-bottom,
.room.hall[data-loading] > .hall-marker { opacity: 0; visibility: hidden; }
.room.hall[data-loading]::before { opacity: 0; }
.hall-loading {
  position: fixed;
  z-index: 51;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 0.9rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0 0.85rem;
  border: 1px solid rgba(226, 170, 96, 0.4);
  border-radius: 3px;
  background: #140d08;
  transform: translateX(-50%);
  color: #f1e6d2;
  font: 0.75rem/1.4 var(--font-mono);
}
html[data-hall][data-room-pending] .hall-loading,
html[data-hall]:has(.room.hall[data-loading]:not(.hall-capture)) .hall-loading { display: flex; }
.hall-loading a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  color: #f3cf9a;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* ─── Top bar ─────────────────────────────────────────────────── */
.room.hall .room-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.5rem;
  row-gap: 0.25rem;
}
.room.hall .room-brand { justify-self: start; }
.room.hall .hall-role {
  grid-column: 1;
  grid-row: 2;
  width: fit-content;
  margin: 0;
  color: var(--room-text);
  font: 0.875rem/1.4 var(--font-sans);
  text-shadow: 0 1px 8px #100a06, 0 1px 2px #100a06;
  pointer-events: none;
}
.room.hall .room-top-right { grid-column: 2; grid-row: 1; }
.room.hall .hall-fast-links { display: flex; gap: 0.4rem; }
.room.hall .room-brand { text-decoration: none; color: var(--room-ink); }
.room.hall .room-brand-kicker { color: var(--room-accent); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8); }
.room.hall .room-brand-title { color: var(--room-ink); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.8); }
.room.hall .room-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0;
  color: rgba(241, 230, 210, 0.8);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
  transition: color 180ms ease;
}
.room.hall .room-nav a:hover,
.room.hall .room-nav a[aria-current] { color: var(--room-accent-soft); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85); }
.room.hall .room-nav a[aria-current]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.55rem;
  height: 1px;
  background: var(--room-accent);
  box-shadow: 0 0 10px rgba(255, 170, 80, 0.7);
}
.room.hall .room-reading,
.room.hall .hall-sound {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--room-border);
  border-radius: 3px;
  background: var(--hall-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  clip-path: none;
  color: var(--room-ink);
  font: 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 120ms ease;
}
.room.hall .room-reading:hover,
.room.hall .hall-sound:hover {
  border-color: var(--room-accent);
  background: var(--hall-glass-hover);
  color: var(--room-accent-soft);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 18px rgba(226, 150, 70, 0.14);
}
.room.hall .room-reading:active,
.room.hall .hall-sound:active { transform: translateY(1px); }
.room.hall .hall-resume-download { border-color: var(--room-accent); color: var(--room-accent-soft); }
.room.hall .room-reading .hall-icon { transition: transform 200ms var(--hall-ease); }
.room.hall .room-reading:hover .hall-icon { transform: translateX(2px); }

/* ─── Markers ─────────────────────────────────────────────────── */
.room.hall .hall-marker {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--room-ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
  transition: opacity 500ms ease;
}
.room.hall .hall-marker[hidden] { display: none; }
.room.hall .hall-marker:focus-visible { outline: 2px solid var(--room-accent-soft); outline-offset: -4px; }
.room.hall .hall-marker-dot {
  position: relative;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(255, 236, 206, 0.92);
  border-radius: 50%;
  background: rgba(16, 10, 5, 0.42);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 16px var(--hall-ember);
  will-change: transform;
  transition: transform 220ms var(--hall-ease), opacity 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}
@starting-style {
  .room.hall .hall-marker:not([hidden]) .hall-marker-dot { transform: scale(0.6); opacity: 0; }
}
.room.hall .hall-marker-dot::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #ffe0ad;
  box-shadow: 0 0 8px 2px rgba(255, 190, 110, 0.85);
}
.room.hall .hall-marker[data-new] .hall-marker-dot::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border: 1.5px solid rgba(255, 214, 160, 0.8);
  border-radius: 50%;
  animation: hall-pulse 2.8s ease-out infinite;
}
.room.hall .hall-marker:hover .hall-marker-dot,
.room.hall .hall-marker:focus-visible .hall-marker-dot {
  transform: scale(1.18);
  background: rgba(226, 170, 96, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 180, 90, 0.8);
}
.room.hall .hall-marker-label {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  display: grid;
  gap: 0.2rem;
  padding: 0.45rem 0.7rem 0.5rem;
  border: 1px solid var(--room-border);
  border-radius: 3px;
  background: rgba(16, 10, 6, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  color: var(--room-ink);
  font: 500 0.9375rem/1.2 var(--font-serif);
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -4px);
  pointer-events: none;
  will-change: transform, opacity;
  transition: opacity 180ms ease, transform 240ms var(--hall-ease);
}
.room.hall .hall-marker-label small {
  color: var(--room-accent);
  font: 0.5625rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.room.hall .hall-marker[data-side="above"] .hall-marker-label { top: auto; bottom: calc(100% - 6px); transform: translate(-50%, 4px); }
.room.hall .hall-marker[data-side="right"] .hall-marker-label { top: 50%; left: calc(100% - 6px); transform: translate(-4px, -50%); }
.room.hall .hall-marker[data-side="left"] .hall-marker-label { top: 50%; left: auto; right: calc(100% - 6px); transform: translate(4px, -50%); }
.room.hall .hall-marker-object { display: none; }
.room.hall .hall-marker:is(:hover, :focus-visible, [data-edge]) .hall-marker-object { display: block; }
.room.hall .hall-marker[data-new]:not([data-edge], :hover, :focus-visible) .hall-marker-label { padding: 0.35rem 0.45rem; }
.room.hall .hall-marker:is(:hover, :focus-visible, [data-new], [data-edge]) .hall-marker-label { opacity: 1; transform: translate(-50%, 0); }
.room.hall .hall-marker:is([data-side="right"], [data-side="left"]):is(:hover, :focus-visible, [data-new], [data-edge]) .hall-marker-label { transform: translate(0, -50%); }
/* Off-crop stations pin to the screen edge as a chevron with their name beside it. */
.room.hall .hall-marker[data-edge] .hall-marker-dot { width: 26px; height: 26px; background: rgba(16, 10, 6, 0.78); }
.room.hall .hall-marker[data-edge] .hall-marker-dot::before {
  inset: 7px 8px 7px 9px;
  border-radius: 0;
  background: none;
  box-shadow: none;
  border-left: 1.5px solid #ffe0ad;
  border-bottom: 1.5px solid #ffe0ad;
  transform: rotate(45deg);
}
.room.hall .hall-marker[data-edge="right"] .hall-marker-dot::before { inset: 7px 9px 7px 8px; transform: rotate(-135deg); }
.room.hall .hall-marker[data-edge] .hall-marker-label { padding: 0.35rem 0.55rem; font-size: 0.8125rem; pointer-events: auto; cursor: pointer; }
.room.hall[data-panel] .hall-marker { visibility: hidden; }
.room.hall[data-station] .hall-marker { opacity: 0.6; }
@keyframes hall-pulse {
  0% { opacity: 0.85; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(2.3); }
}
/* No hover on touch screens: keep the short name visible under each marker. */
@media (hover: none) {
  .room.hall .hall-marker:not([data-edge]) .hall-marker-object { display: none; }
  .room.hall .hall-marker:not([data-edge]) .hall-marker-label { opacity: 1; padding: 0.35rem 0.45rem; transform: translate(-50%, 0); }
  .room.hall .hall-marker-label small { color: var(--room-accent-soft); }
  .room.hall .hall-marker:not([data-edge]):is([data-side="left"], [data-side="right"]) .hall-marker-label { transform: translate(0, -50%); }
}

/* ─── Panel ───────────────────────────────────────────────────── */
.room.hall .room-panel {
  position: fixed;
  top: 5.75rem;
  right: 3vw;
  bottom: auto;
  left: auto;
  z-index: 3;
  contain: layout style;
  will-change: transform, opacity;
  width: min(460px, 40vw);
  max-height: calc(100dvh - 11.5rem);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 170, 96, 0.3);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(26, 16, 9, 0.93), rgba(12, 8, 5, 0.95));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.62), 0 0 48px rgba(226, 150, 70, 0.08), inset 0 1px 0 rgba(255, 220, 170, 0.07);
  clip-path: none;
  color: var(--room-ink);
  font-family: var(--font-sans);
}
/* Open and close are transitions: @starting-style gives the entry, allow-discrete keeps the dialog in the
   top layer while it fades out. Browsers without them get a keyframe entry and an instant close. */
.room.hall .room-panel {
  --hall-panel-shift: translate3d(16px, 0, 0) scale(0.99);
  opacity: 0;
  transform: var(--hall-panel-shift);
  transition: opacity 200ms ease-in, transform 200ms ease-in, width 260ms var(--hall-ease), overlay 200ms allow-discrete, display 200ms allow-discrete;
}
@media (min-width: 701px) {
  .room.hall .room-panel[data-page="work"] { width: min(540px, 46vw); }
}
.room.hall .room-panel[open] {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: none;
  animation: none;
  transition: opacity 420ms ease, transform 560ms var(--hall-ease), width 260ms var(--hall-ease), overlay 560ms allow-discrete, display 560ms allow-discrete;
}
@starting-style {
  .room.hall .room-panel[open] { opacity: 0; transform: translate3d(24px, 0, 0) scale(0.985); }
}
.room.hall .room-panel::backdrop { background: transparent; }
@supports not (transition-behavior: allow-discrete) {
  .room.hall .room-panel[open] { animation: hall-panel-in 560ms var(--hall-ease) both; }
}
@keyframes hall-panel-in { from { opacity: 0; transform: translate3d(24px, 0, 0) scale(0.985); } }
.room.hall .room-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex: none;
  gap: 1rem;
  padding: 1.35rem 1.6rem 1.1rem;
  border-bottom: 1px solid var(--room-rule);
}
.room.hall .room-channel {
  margin: 0 0 0.45rem;
  color: var(--room-accent);
  font: 0.625rem/1.2 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: none;
}
.room.hall .room-panel h2 {
  margin: 0;
  color: var(--room-ink);
  font: 500 2rem/1.1 var(--font-serif);
  letter-spacing: 0;
}
.room.hall .room-panel h2:focus { outline: none; }
.room.hall .room-panel h2:focus-visible { outline: 2px solid var(--room-accent-soft); outline-offset: 4px; }
.room.hall .room-close {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
  min-height: 36px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--room-border);
  border-radius: 3px;
  background: rgba(30, 19, 10, 0.6);
  clip-path: none;
  color: var(--room-ink);
  font: 0.625rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 120ms ease;
}
.room.hall .room-close .hall-icon { width: 12px; height: 12px; }
.room.hall .room-close:hover { border-color: var(--room-accent); background: rgba(226, 170, 96, 0.14); color: var(--room-accent-soft); }
.room.hall .room-close:active { transform: translateY(1px); }
.room.hall .room-panel-body {
  container: hall-panel / inline-size;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.35rem 1.6rem 1.85rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(226, 170, 96, 0.35) transparent;
  color: var(--room-text);
}
/* Scroll cue: the list fades into the panel's edge while there is more to read. */
.room.hall .room-panel[data-more="below"] .room-panel-body { -webkit-mask-image: linear-gradient(#000 calc(100% - 4.8rem), transparent calc(100% - 2.05rem)); mask-image: linear-gradient(#000 calc(100% - 4.8rem), transparent calc(100% - 2.05rem)); }
.room.hall .room-panel[data-more="above"] .room-panel-body { -webkit-mask-image: linear-gradient(transparent, #000 2.5rem); mask-image: linear-gradient(transparent, #000 2.5rem); }
.room.hall .room-panel[data-more="both"] .room-panel-body { -webkit-mask-image: linear-gradient(transparent, #000 2.5rem, #000 calc(100% - 4.8rem), transparent calc(100% - 2.05rem)); mask-image: linear-gradient(transparent, #000 2.5rem, #000 calc(100% - 4.8rem), transparent calc(100% - 2.05rem)); }
.room.hall .hall-more {
  position: absolute;
  left: 50%;
  bottom: 3.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--room-rule);
  border-radius: 3px;
  background: rgba(14, 9, 6, 0.96);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.72);
  color: var(--room-muted);
  font: 0.5625rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, 4px);
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}
.room.hall .hall-more .hall-icon { width: 11px; height: 11px; }
.room.hall .room-panel:is([data-more="below"], [data-more="both"]) .hall-more { opacity: 1; transform: translate(-50%, 0); }

.room.hall .hall-panel-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: none;
  border-top: 1px solid var(--room-rule);
  background: rgba(10, 6, 4, 0.45);
}
.room.hall .hall-panel-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 54px;
  padding: 0.65rem 1.35rem;
  border: 0;
  background: transparent;
  color: var(--room-ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 120ms ease;
}
.room.hall .hall-panel-next { justify-content: flex-end; text-align: right; border-left: 1px solid var(--room-rule); }
.room.hall .hall-panel-step-text { display: grid; gap: 0.18rem; }
.room.hall .hall-panel-step-kicker { color: var(--room-muted); font: 0.5625rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; }
.room.hall .hall-panel-step-name { font: 500 0.96875rem/1.2 var(--font-serif); }
.room.hall .hall-panel-step .hall-icon { color: var(--room-accent); transition: transform 200ms var(--hall-ease); }
.room.hall .hall-panel-step:hover,
.room.hall .hall-panel-step:focus-visible { background: rgba(226, 170, 96, 0.1); color: var(--room-accent-soft); }
.room.hall .hall-panel-prev:hover .hall-icon { transform: translateX(-3px); }
.room.hall .hall-panel-next:hover .hall-icon { transform: translateX(3px); }
.room.hall .hall-panel-step:active { transform: translateY(1px); }
.room.hall .hall-panel-step:focus-visible { outline-offset: -3px; }

/* Panel content: the homepage sections, set in the room's warm type. */
.room.hall .room-panel-body .section-title { display: none; }
.room.hall .room-panel-body a { color: var(--room-accent-soft); text-decoration: underline; text-decoration-color: rgba(226, 170, 96, 0.4); text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: color 160ms ease, text-decoration-color 160ms ease; }
.room.hall .room-panel-body a:hover { color: #ffe3b8; text-decoration-color: currentColor; }
.room.hall .room-panel-body .work-rows,
.room.hall .room-panel-body .project-rows,
.room.hall .room-panel-body .post-log { margin: 0; border-top: 0; }
.room.hall .room-panel-body .work-row[hidden] { display: none; }
.room.hall .room-panel-body .work-row,
.room.hall .room-panel-body .post-row {
  margin: 0;
  padding: 0.95rem 0;
  border: 0;
  border-bottom: 1px solid var(--room-rule);
  border-radius: 0;
  background: none;
}
.room.hall .room-panel-body :is(.work-rows, .project-rows, .post-log) > :last-child { border-bottom: 0; }
.room.hall .hall-work-intro {
  display: grid;
  gap: 0.55rem;
  padding-block: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--room-rule);
}
.room.hall .hall-work-intro h3 {
  margin: 0;
  color: var(--room-ink);
  font: 500 clamp(1.15rem, 4.4cqi, 1.4rem)/1.3 var(--font-serif);
  text-wrap: balance;
}
.room.hall .hall-work-intro p {
  max-width: 39ch;
  margin: 0;
  color: var(--room-text);
  font: 0.9375rem/1.45 var(--font-sans);
}
.room.hall .hall-work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.room.hall .hall-work-actions :is(.hall-resume-link, .hall-study-jump) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--room-border);
  border-radius: 3px;
  background: var(--hall-glass);
  color: var(--room-ink);
  font: 600 0.875rem/1.2 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
}
.room.hall .hall-work-actions .hall-resume-link {
  border-color: var(--room-accent-soft);
  background: var(--room-accent-soft);
  color: #24160c;
}
.room.hall .hall-work-actions .hall-resume-link:hover { background: #ffe3b8; color: #24160c; }
.room.hall .hall-study-jump:hover { border-color: var(--room-accent); background: var(--hall-glass-hover); }
.room.hall .hall-work-actions :focus-visible,
.room.hall [data-featured-case] .work-title:focus-visible { outline: 2px solid var(--room-accent-soft); outline-offset: 3px; }
.room.hall .room-panel-body .fde-exhibits + .resume-card { margin-top: 1rem; }
.room.hall .room-panel-body .resume-card {
  margin-top: 0.35rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--room-rule);
  border-radius: 4px;
  background: rgba(255, 228, 185, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 232, 195, 0.05);
  gap: 0.8rem;
}
.room.hall .room-panel-body .resume-top {
  color: var(--room-muted);
  font: 0.5625rem/1.3 var(--font-mono);
  letter-spacing: 0.12em;
}
.room.hall .room-panel-body .resume-status { color: var(--room-accent-soft); }
.room.hall .room-panel-body .resume-dot {
  background: var(--room-accent);
  box-shadow: 0 0 8px rgba(226, 170, 96, 0.75);
}
.room.hall .room-panel-body .resume-summary {
  color: var(--room-ink);
  font-size: 0.96875rem;
  line-height: 1.56;
}
.room.hall .room-panel-body .resume-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top-color: var(--room-rule);
  gap: 0.45rem;
}
.room.hall .room-panel-body .resume-metric {
  padding: 0.5rem 0.6rem;
  border-color: var(--room-rule);
  background: rgba(10, 6, 4, 0.52);
}
.room.hall .room-panel-body .resume-metric dt { color: var(--room-muted); font-size: 0.5625rem; }
.room.hall .room-panel-body .resume-metric dd { color: var(--room-accent-soft); font-size: 0.98rem; }
.room.hall .room-panel-body .resume-metric span { color: var(--room-text); font-size: 0.6875rem; }
.room.hall .room-panel-body .resume-stack {
  border-top-color: var(--room-rule);
  padding-top: 0.7rem;
}
.room.hall .room-panel-body .resume-stack-label {
  min-width: 5.4rem;
  color: var(--room-muted);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
}
.room.hall .room-panel-body .resume-chip,
.room.hall .room-panel-body .work-chips span {
  padding: 0.18rem 0.45rem;
  border: 1px solid rgba(226, 170, 96, 0.22);
  border-radius: 2px;
  background: rgba(226, 170, 96, 0.06);
  color: var(--room-ink);
  font: 0.625rem/1.25 var(--font-mono);
}
.room.hall .room-panel-body .work-chips span { color: var(--room-text); }
.room.hall .room-panel-body .resume-links {
  border-top-color: var(--room-rule);
  padding-top: 0.65rem;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
}
.room.hall .room-panel-body .resume-print {
  border-color: rgba(226, 170, 96, 0.38);
  color: var(--room-accent-soft);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
}
.room.hall .room-panel-body .resume-print:hover,
.room.hall .room-panel-body .resume-print:focus-visible {
  border-color: var(--room-accent);
  background: rgba(226, 170, 96, 0.14);
  color: #ffe3b8;
}
.room.hall .room-panel-body .fde-exhibits { margin-top: 0.6rem; gap: 0.6rem; }
.room.hall .room-panel-body .fde-exhibit {
  padding: 0.85rem 0.95rem;
  border-color: var(--room-rule);
  background: rgba(255, 228, 185, 0.025);
}
.room.hall .room-panel-body .fde-exhibit-head { margin-bottom: 0.3rem; font-size: 0.5625rem; letter-spacing: 0.14em; }
.room.hall .room-panel-body .fde-exhibit-idx { color: var(--room-accent); }
.room.hall .room-panel-body .fde-exhibit-flag { border-color: rgba(226, 170, 96, 0.28); color: var(--room-accent-soft); font-size: 0.5625rem; }
.room.hall .room-panel-body .fde-spec { border-top-color: var(--room-rule); font-size: 0.82rem; }
.room.hall .room-panel-body .fde-spec dt { color: var(--room-accent); font-size: 0.5625rem; }
.room.hall .room-panel-body .fde-spec dd { color: var(--room-text); }
.room.hall .room-panel-body .resume-timeline {
  margin-top: 0.2rem;
  padding-left: 1.15rem;
}
.room.hall .room-panel-body .resume-timeline::before {
  left: 0.25rem;
  top: 1.35rem;
  bottom: 1.35rem;
  background: rgba(226, 170, 96, 0.28);
}
.room.hall .room-panel-body .resume-timeline .work-row::before {
  left: -1.15rem;
  top: 1.32rem;
  width: 8px;
  height: 8px;
  border: 1.5px solid rgba(226, 170, 96, 0.48);
  background: rgba(16, 10, 6, 0.98);
  transform: translateX(0.5px);
}
.room.hall .room-panel-body .resume-timeline .work-row.is-current::before {
  border-color: var(--room-accent);
  background: var(--room-accent);
  box-shadow: 0 0 0 3px rgba(226, 170, 96, 0.18), 0 0 10px rgba(226, 170, 96, 0.55);
}
.room.hall .room-panel-body .work-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.3rem 0.75rem;
}
.room.hall .room-panel-body .work-company {
  margin-bottom: 0.15rem;
  color: var(--room-accent);
  font: 600 0.625rem/1.2 var(--font-mono);
  letter-spacing: 0.14em;
}
.room.hall .room-panel-body .work-title { margin: 0; color: var(--room-ink); font: 500 1.0625rem/1.35 var(--font-serif); }
.room.hall .room-panel-body .work-title a { color: var(--room-ink); text-decoration-color: rgba(226, 170, 96, 0.5); }
.room.hall .room-panel-body .work-title a:hover { color: var(--room-accent-soft); }
.room.hall .room-panel-body .work-years,
.room.hall .room-panel-body .work-tag,
.room.hall .room-panel-body .post-row-date {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--room-muted);
  font: 0.6875rem/1.3 var(--font-mono);
  letter-spacing: 0.06em;
}
.room.hall .room-panel-body .work-badge-live {
  border-color: rgba(226, 170, 96, 0.45);
  background: rgba(226, 170, 96, 0.12);
  color: var(--room-accent-soft);
  font-size: 0.5625rem;
}
.room.hall .room-panel-body .work-meta {
  margin-top: 0.25rem;
  color: var(--room-muted);
  font-size: 0.6875rem;
}
.room.hall .room-panel-body .work-note { margin: 0.4rem 0 0; color: var(--room-text); font-size: 0.90625rem; line-height: 1.58; }
.room.hall .room-panel-body .work-points {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
  gap: 0.32rem;
  color: var(--room-text);
  font-size: 0.85rem;
  line-height: 1.52;
}
.room.hall .room-panel-body .work-points strong { color: var(--room-ink); font-weight: 600; }
.room.hall .room-panel-body .work-chips { margin-top: 0.6rem; }
.room.hall .room-panel-body .section-sub {
  margin: 1.5rem 0 0.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--room-rule);
  color: var(--room-accent);
  font: 0.625rem/1.2 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.room.hall .room-panel-body .work-projects-head {
  margin: 1.5rem 0 0.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--room-rule);
  gap: 0.6rem;
}
.room.hall .room-panel-body .work-projects-head .section-sub {
  margin: 0;
  padding-top: 0;
  border-top: 0;
}
.room.hall .room-panel-body .work-filters {
  border-color: var(--room-rule);
  background: rgba(10, 6, 4, 0.55);
}
.room.hall .room-panel-body .work-filter {
  color: var(--room-muted);
  font-size: 0.625rem;
  padding: 0.24rem 0.5rem;
}
.room.hall .room-panel-body .work-filter:hover,
.room.hall .room-panel-body .work-filter:focus-visible { color: var(--room-ink); }
.room.hall .room-panel-body .work-filter.is-active {
  background: rgba(226, 170, 96, 0.16);
  color: var(--room-accent-soft);
  box-shadow: inset 0 0 0 1px rgba(226, 170, 96, 0.35);
}
.room.hall .room-panel-body .post-row { display: grid; grid-template-columns: 1fr; gap: 0.35rem; }
.room.hall .room-panel-body .post-row-title { color: var(--room-ink); font: 500 1.1875rem/1.3 var(--font-serif); text-decoration: none; }
.room.hall .room-panel-body .post-row-title:hover { color: var(--room-accent-soft); }
.room.hall .room-panel-body .stream-more { margin: 0.6rem 0 0; padding: 0.9rem 0 0; border-top: 1px solid var(--room-rule); font-size: 0.875rem; }
.room.hall .room-panel-body .inline { color: var(--room-accent-soft); font: 0.6875rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
.room.hall .room-panel-body .inline:hover { color: #ffe3b8; }
.room.hall .room-panel-body .about-body { display: grid; gap: 1rem; padding-top: 0.75rem; color: var(--room-ink); font-size: 1.03rem; line-height: 1.7; }
.room.hall .room-panel-body .about-body p { margin: 0; }
.room.hall .room-panel-body .about-body p + p { margin: 0; color: var(--room-text); }
.room.hall .room-panel-body .about-body em { color: var(--room-accent-soft); }
.room.hall .room-panel-body .online-note { margin: 0.45rem 0 0.5rem; color: var(--room-text); font-size: 0.90625rem; line-height: 1.56; }
.room.hall .room-panel-body .elsewhere { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.room.hall .room-panel-body .elsewhere li:last-child a { border-bottom: 0; }
.room.hall .room-panel-body .elsewhere a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--room-rule);
  color: var(--room-ink);
  font: 500 1.1875rem/1.3 var(--font-serif);
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
}
.room.hall .room-panel-body .elsewhere a:hover { color: var(--room-accent-soft); }
.room.hall .room-panel-body .elsewhere svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; opacity: 0.7; transition: transform 220ms var(--hall-ease); }
.room.hall .room-panel-body .elsewhere a:hover svg { transform: translate(2px, -2px); opacity: 1; }

/* Narrow panels (phones, small windows) tighten the type by the panel's own width. */
@container hall-panel (max-width: 340px) {
  .room.hall .room-panel-body .post-row-title,
  .room.hall .room-panel-body .elsewhere a { font-size: 1.0625rem; }
  .room.hall .room-panel-body .work-title { font-size: 1rem; }
  .room.hall .room-panel-body .work-note { font-size: 0.875rem; }
  .room.hall .room-panel-body .about-body { font-size: 0.96875rem; }
}

/* ─── Caption, visited candles, sound ─────────────────────────── */
.room.hall .hall-bottom {
  position: absolute;
  z-index: 2;
  left: 3vw;
  right: 3vw;
  bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  pointer-events: none;
}
.room.hall .hall-bottom > * { pointer-events: auto; }
.room.hall .hall-caption {
  display: grid;
  gap: 0.55rem;
  max-width: 31rem;
  padding: 0.7rem 0.95rem 0.75rem;
  border-radius: 4px;
  background: rgba(10, 6, 4, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.room.hall .hall-hint { margin: 0; color: var(--room-text); font: 0.8125rem/1.5 var(--font-sans); }
.room.hall .hall-hint strong { color: var(--room-ink); font-weight: 600; }
.room.hall .hall-progress { display: flex; align-items: flex-end; gap: 0.7rem; }
.room.hall .hall-candle-row { display: flex; align-items: flex-end; gap: 7px; }
.room.hall .hall-progress-label { color: var(--room-muted); font: 0.5625rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; }
.room.hall .hall-candle {
  position: relative;
  display: block;
  width: 6px;
  height: 13px;
  margin-top: 10px;
  border-radius: 1.5px 1.5px 1px 1px;
  background: linear-gradient(90deg, #8d806a, #c9bb9f 45%, #8d806a);
  opacity: 0.5;
  transition: opacity 400ms ease;
}
.room.hall .hall-candle::before {
  content: "";
  position: absolute;
  left: 2.5px;
  top: -3px;
  width: 1px;
  height: 3px;
  background: #2a1d12;
}
.room.hall .hall-candle[data-lit] { opacity: 1; background: linear-gradient(90deg, #b8a682, #f3e6c8 45%, #b8a682); }
.room.hall .hall-candle[data-lit]::after {
  content: "";
  position: absolute;
  left: -1px;
  top: -12px;
  width: 8px;
  height: 10px;
  border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 50% 72%, #fff8e2 0 22%, #ffc35e 50%, rgba(255, 130, 40, 0) 76%);
  box-shadow: 0 -2px 10px 1px rgba(255, 170, 80, 0.55);
  transform-origin: 50% 100%;
  animation: hall-flame 1.7s ease-in-out infinite alternate;
  transition: opacity 320ms ease;
}
@starting-style {
  .room.hall .hall-candle[data-lit]::after { transform: scale(0.2, 0.2); opacity: 0; }
}
.room.hall .hall-candle-row .hall-candle:nth-child(2)::after { animation-duration: 1.3s; animation-delay: -0.4s; }
.room.hall .hall-candle-row .hall-candle:nth-child(3)::after { animation-duration: 2.1s; animation-delay: -1.1s; }
.room.hall .hall-candle-row .hall-candle:nth-child(4)::after { animation-duration: 1.5s; animation-delay: -0.7s; }
@keyframes hall-flame {
  0% { transform: scale(1, 1) skewX(0deg); opacity: 0.95; }
  35% { transform: scale(0.92, 1.12) skewX(-4deg); opacity: 1; }
  70% { transform: scale(1.05, 0.94) skewX(3deg); opacity: 0.88; }
  100% { transform: scale(0.97, 1.06) skewX(-1deg); opacity: 1; }
}
.room.hall .hall-sound .hall-mute { display: inline; }
.room.hall .hall-sound .hall-waves { display: none; }
.room.hall .hall-sound[aria-pressed="true"] { border-color: var(--room-accent); color: var(--room-accent-soft); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 0 14px rgba(226, 150, 70, 0.14); }
.room.hall .hall-sound[aria-pressed="true"] .hall-mute { display: none; }
.room.hall .hall-sound[aria-pressed="true"] .hall-waves { display: inline; }
.room.hall .hall-sound:disabled { opacity: 0.55; cursor: default; }

/* ─── Narrow header ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .room.hall .room-top {
    top: 0.6rem;
    left: 1rem;
    right: 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.1rem 0.75rem;
  }
  .room.hall .room-top-right { display: contents; }
  .room.hall .room-brand-title { font-size: clamp(0.86rem, 3.65vw, 1.05rem); }
  .room.hall .hall-fast-links { grid-column: 2; grid-row: 1; }
  .room.hall .room-reading { min-height: 44px; padding: 0.4rem 0.5rem; font-size: 0.625rem; letter-spacing: 0.06em; }
  .room.hall .room-reading .hall-icon { display: none; }
  .room.hall .hall-role { grid-column: 1 / -1; font-size: 0.8125rem; }
  .room.hall .room-nav { grid-column: 1 / -1; grid-row: 3; display: flex; justify-content: space-between; gap: 0; margin-inline: -0.6rem; }
  .room.hall .room-nav a { flex: 1 1 auto; justify-content: center; padding-inline: 0.2rem; font-size: 0.625rem; white-space: nowrap; }
  .room.hall .room-nav a[aria-current]::after { left: 25%; right: 25%; bottom: 0.6rem; }
}

.room.hall .room-panel-body .resume-print { display: none; }
.room.hall .work-architecture summary { color: var(--room-accent-soft); }

/* ─── Phones ──────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .room.hall .hall-bottom { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; gap: 0.6rem; }
  .room.hall .hall-caption { padding: 0.6rem 0.75rem 0.65rem; }
  .room.hall .hall-hint { font-size: 0.75rem; }
  .room.hall .hall-sound { min-height: 44px; padding: 0.4rem 0.7rem; font-size: 0.5625rem; }
  .room.hall .hall-sound span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .room.hall .hall-sound .hall-icon { width: 18px; height: 18px; }
  .room.hall[data-panel] .hall-bottom { visibility: hidden; }
  .room.hall .room-panel {
    top: auto;
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    width: auto;
    max-height: min(60dvh, calc(100dvh - 8.5rem));
  }
  @keyframes hall-panel-in-phone { from { opacity: 0; transform: translate3d(0, 28px, 0); } }
  .room.hall .room-panel { --hall-panel-shift: translate3d(0, 20px, 0); }
  @starting-style { .room.hall .room-panel[open] { opacity: 0; transform: translate3d(0, 28px, 0); } }
  @supports not (transition-behavior: allow-discrete) { .room.hall .room-panel[open] { animation-name: hall-panel-in-phone; } }
  .room.hall .room-panel-head { padding: 1rem 1.15rem 0.85rem; }
  .room.hall .room-panel h2 { font-size: 1.6rem; }
  .room.hall .room-close { min-height: 44px; padding-inline: 0.75rem; }
  .room.hall .room-panel-body { padding: 0.2rem 1.15rem 1.25rem; }
  .room.hall .hall-more { bottom: calc(4rem + env(safe-area-inset-bottom)); }
  .room.hall .hall-panel-step { min-height: 52px; padding: 0.55rem 1rem max(0.55rem, env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
  .room.hall .room-top { left: 0.6rem; right: 0.6rem; column-gap: 0.5rem; }
  .room.hall .room-brand-title { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .room.hall *, .room.hall *::before, .room.hall *::after, .room.hall canvas.room-scene { animation: none !important; transition: none !important; }
}

/* ?capture=<stop>: the bare view used to paint a plate. */
.room.hall.hall-capture > :not(canvas) { display: none !important; }
.room.hall.hall-capture::before { display: none; }
.room.hall.hall-capture canvas.room-scene { opacity: 1; }
