/* The room. Everything here applies only when boot.js has put "room" on
   <html>; without it the site is the plain stacked page in styles.css.

   The room is a real 3D box built from CSS transforms, measured in px:
   x runs -800 (left wall) to 800, y runs -400 (ceiling) to 400 (floor),
   z runs -1100 (back wall) to 600 (behind the visitor). room.js moves the
   camera by transforming .world. Nothing here uses a library.

   Two rules keep Chrome's depth sorting honest, learned the hard way:
   1. There are two .world layers sharing one camera: the shell, and the
      furniture and labels drawn over it. Mixed in one layer, surfaces
      go missing at some camera angles.
   2. Within a layer, planes only meet at their edges (shell) or all face
      the visitor (furniture). Nothing stands at an odd angle. */

html.room, html.room body { height: 100%; overflow: hidden; }
html.room body { overscroll-behavior: none; }

html.room {
  --panel-w: min(35rem, 46vw);
  --arch-t: 15dvh;
  --arch-l: 58vw;
  --arch-r: 7vw;
  --ease: cubic-bezier(0.65, 0, 0.2, 1);
}

/* Header floats over the scene */
html.room .site-header {
  position: fixed;
  inset: 0 0 auto 0;
  background: transparent;
  backdrop-filter: none;
  border: 0;
  z-index: 6;
  pointer-events: none;
}
html.room .site-header .container { width: min(100% - 2.5rem, 90rem); }
html.room .site-header a, html.room .site-header button { pointer-events: auto; }
html.room.entered .wordmark,
html.room.entered .header-actions {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.2rem 1rem;
}
html.room.entered .header-actions { padding: 0.45rem 1.1rem; }
html.room.entered .header-link { border-bottom: 0; padding-bottom: 0; }
html.room.has-panel .header-actions { display: none; }
html.room .site-footer { display: none; }

/* Threshold: the hero sits beside the arch */
html.room .hero {
  position: fixed;
  inset: 0;
  z-index: 3;
  padding: 5rem 0 2rem;
  display: flex;
  align-items: center;
  overflow-y: auto;
  pointer-events: none;
  transition: opacity 500ms ease, visibility 0s linear 0s;
}
html.room .hero-grid { display: block; width: min(100% - 2.5rem, 90rem); }
html.room .hero-text { max-width: min(46vw, 40rem); pointer-events: auto; }
html.room .hero h1 { font-size: clamp(2.5rem, 4.6vw + 0.5rem, 5rem); }
html.room.entered .hero {
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms ease, visibility 0s linear 400ms;
}
.hero-hint { margin: 1.5rem 0 0; font-size: 0.95rem; color: var(--ink-soft); }
.hero-legal { margin: 2.5rem 0 0; font-size: 0.8rem; color: var(--ink-soft); }

/* The room itself, seen through the arch until the visitor steps in */
#room {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--ink);
  overflow: hidden;
  clip-path: inset(var(--arch-t) var(--arch-r) 0 var(--arch-l) round 50vw 50vw 0 0);
  transition: clip-path 1200ms var(--ease), right 700ms var(--ease), bottom 700ms var(--ease);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
html.entered #room { clip-path: inset(0 0 0 0 round 0 0 0 0); cursor: grab; }
/* The room makes way for an open panel, and panels paint below the room
   (z-index 0 against 1). Chrome skips painting parts of a 3D scene that it
   believes an opaque layer above is covering, and gets the covered area
   wrong, so nothing large and opaque may ever sit on top of the room. */
html.entered.has-panel #room { right: var(--panel-w); }
html.entered #room.is-dragging { cursor: grabbing; }

.arch {
  position: fixed;
  z-index: 2;
  top: var(--arch-t);
  left: var(--arch-l);
  right: var(--arch-r);
  bottom: 0;
  border: 5px solid var(--ink);
  border-bottom: 0;
  border-radius: 50vw 50vw 0 0;
  cursor: pointer;
  transition: opacity 300ms ease, visibility 0s linear 0s;
}
html.entered .arch { opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 0s linear 300ms; }
/* The doorway says what it is: a label that gently bobs, with a ring pulsing behind it. */
.arch-cue {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.7rem 1.2rem 0.7rem 1.3rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--ember);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  animation: cue-bob 1800ms ease-in-out infinite;
}
.arch-cue::after { content: "\2192"; font-size: 1.1em; line-height: 1; }
.arch-cue::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  animation: cue-ring 1800ms ease-out infinite;
}
@keyframes cue-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -6px); } }
@keyframes cue-ring {
  0% { box-shadow: 0 0 0 0 rgba(245, 183, 49, 0.7); }
  100% { box-shadow: 0 0 0 18px rgba(245, 183, 49, 0); }
}

.scene {
  position: absolute;
  inset: 0;
  perspective: 640px;
  transform: translate(calc((var(--arch-l) - var(--arch-r)) / 2), calc(var(--arch-t) / 2));
  transition: transform 1100ms var(--ease);
}
html.entered .scene { transform: none; }

.world {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}
.world > * { position: absolute; }
.world [data-open] { cursor: pointer; }

/* Shell */
.wall-back {
  left: -800px; top: -400px; width: 1600px; height: 800px;
  transform: translateZ(-1100px);
  background: var(--paper);
  box-shadow: inset 0 0 160px rgba(14, 43, 34, 0.14);
}
.wall-left {
  left: -800px; top: -400px; width: 1700px; height: 800px;
  transform-origin: 0 50%;
  transform: translateZ(600px) rotateY(90deg);
  background: linear-gradient(90deg, #E2ECD6 55%, #D2E0C6);
}
.wall-right {
  left: -900px; top: -400px; width: 1700px; height: 800px;
  transform-origin: 100% 50%;
  transform: translateZ(600px) rotateY(-90deg);
  background: linear-gradient(270deg, #DBE7CE 55%, #C9D9BD);
}
.floor {
  left: -800px; top: 400px; width: 1600px; height: 1700px;
  transform-origin: 50% 0;
  transform: translateZ(-1100px) rotateX(90deg);
  background:
    repeating-linear-gradient(90deg, transparent 0 157px, rgba(251, 246, 234, 0.09) 157px 160px),
    #123A2E;
}
.ceiling {
  left: -800px; top: -2100px; width: 1600px; height: 1700px;
  transform-origin: 50% 100%;
  transform: translateZ(-1100px) rotateX(-90deg);
  background: var(--card);
  box-shadow: inset 0 0 200px rgba(14, 43, 34, 0.1);
}
.skirting {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14px;
  background: var(--ember);
}

/* Evening. The room is lit by its lamps: a warm centre, darker corners.
   Translucent on purpose: an opaque layer over the scene makes Chrome skip
   painting parts of it (see the note on panels below). */
#room::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 50% 52%, rgba(255, 214, 120, 0.16) 0, rgba(255, 214, 120, 0) 70%),
    radial-gradient(ellipse 85% 80% at 50% 55%, rgba(14, 43, 34, 0) 40%, rgba(14, 43, 34, 0.42) 100%);
}

/* Back wall: portrait, the round window and the window over the desk */
.art-dusk { position: absolute; left: 1090px; top: 96px; width: 400px; height: 300px; }
.art-dusk svg { display: block; }
.art-portrait {
  position: absolute;
  left: 195px; top: 190px;
  width: 250px; height: 310px;
  padding: 18px;
  background: var(--card);
  border: 12px solid var(--ink);
}
.art-portrait img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 55% 30%;
  filter: grayscale(1) contrast(1.05);
  transition: filter 400ms ease;
}
.art-portrait:hover img, .scene[data-hot="about"] .art-portrait img, html[data-at="about"] .art-portrait img { filter: none; }
.picture-light {
  position: absolute;
  left: 50%; top: -46px;
  width: 96px; height: 14px;
  margin-left: -48px;
  background: var(--ink);
  border-radius: 7px 7px 0 0;
}
.art-window {
  position: absolute;
  left: 600px; top: 130px;
  width: 400px; height: 400px;
  border: 16px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
}
.art-window canvas { display: block; width: 100%; height: 100%; border-radius: 50%; }
/* The three rings motif: the window is the middle ring */
.art-window::before, .art-window::after {
  content: "";
  position: absolute;
  top: -16px;
  width: 400px; height: 400px;
  border: 5px solid var(--clay);
  border-radius: 50%;
  opacity: 0.45;
  pointer-events: none;
}
.art-window::before { left: -146px; }
.art-window::after { left: 114px; }

/* The door on the left wall. The leaf is drawn ajar in 2D on purpose: every
   surface in the room is either part of the shell or a cut-out facing the
   visitor. A leaf hinged in real 3D adds a plane at an odd angle, and Chrome's
   depth sorting then drops the ceiling. */
.door {
  position: absolute;
  left: 1150px; bottom: 0;
  width: 300px; height: 580px;
}
.door-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #FFFDF7, #FFF0BD);
  box-shadow: 0 0 0 16px var(--ink);
}
.door-leaf {
  position: absolute;
  inset: 0;
  background: var(--ember);
  border: 6px solid var(--ink);
  transform-origin: 0 50%;
  transform: skewY(-5deg) scaleX(0.8);
  transition: transform 900ms var(--ease);
}
.door-leaf span {
  position: absolute;
  left: 42px; right: 42px; top: 40px;
  height: 200px;
  border: 5px solid #D0951A;
}
.door-leaf span + span { top: 290px; height: 230px; }
.door-leaf i {
  position: absolute;
  right: 20px; top: 300px;
  width: 24px; height: 24px;
  background: var(--paper);
  border: 5px solid var(--ink);
  border-radius: 50%;
}
.door-sign {
  position: absolute;
  right: -12px; top: 322px;
  width: 124px;
  padding: 10px 0 9px;
  font-size: 19px;
  font-weight: 800;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 4px;
  transform: rotate(-5deg);
  transform-origin: 80% 0;
}
.door-sign::before { content: "Not yet"; }
html.sent-waitlist .door-sign::before { content: "You're in"; }
.door:hover .door-leaf,
.scene[data-hot="waitlist"] .door-leaf,
html[data-at="waitlist"] .door-leaf { transform: skewY(-10deg) scaleX(0.56); }
html.sent-waitlist .door-leaf { transform: skewY(-16deg) scaleX(0.16); }
.door-spill {
  position: absolute;
  left: 0; top: 200px;
  width: 640px; height: 620px;
  clip-path: polygon(0 8%, 0 56%, 92% 90%, 74% 20%);
  background: linear-gradient(90deg, rgba(255, 236, 170, 0.42), rgba(255, 236, 170, 0));
  opacity: 0.6;
  transition: opacity 900ms ease;
  pointer-events: none;
}
.scene[data-hot="waitlist"] .door-spill,
html[data-at="waitlist"] .door-spill,
html.sent-waitlist .door-spill { opacity: 1; }

/* Right wall: the listening corner */
.shelf {
  position: absolute;
  left: 170px; top: 300px;
  width: 470px;
  display: flex;
  justify-content: space-between;
  padding: 0 14px 0;
  border-bottom: 14px solid var(--ink);
}
.shelf img {
  display: block;
  width: 136px; height: 100px;
  object-fit: cover;
  border: 6px solid var(--ink);
  border-bottom: 0;
  background: var(--sand);
}
.foam {
  position: absolute;
  left: 700px; top: 150px;
  width: 232px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.foam i {
  height: 110px;
  border: 5px solid var(--ink);
  background: repeating-linear-gradient(45deg, #BCCFB2 0 10px, #A6BD9C 10px 20px);
}
.foam i:nth-child(2), .foam i:nth-child(3) { background: repeating-linear-gradient(-45deg, #BCCFB2 0 10px, #A6BD9C 10px 20px); }
.onair {
  position: absolute;
  left: 310px; top: 150px;
  width: 190px;
  padding: 12px 0;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ember);
  background: var(--ink);
  border-radius: 6px;
  transition: color 300ms ease, box-shadow 300ms ease;
}
.scene[data-hot="listen"] .onair, html[data-at="listen"] .onair {
  color: #FFDD88;
  box-shadow: 0 0 40px rgba(245, 183, 49, 0.75);
}

/* Floor */
.rug {
  position: absolute;
  left: 400px; top: 180px;
  width: 800px; height: 800px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 253, 247, 0.45) 0 26%, rgba(255, 253, 247, 0) 60%),
    var(--leaf);
  box-shadow: inset 0 0 0 28px var(--leaf), inset 0 0 0 36px var(--ember);
}

/* Furniture: flat cut-outs standing in the room, like a paper theatre */
.prop svg { display: block; overflow: visible; }
.prop-desk { left: 280px; top: 59px; transform: translateZ(-1040px); }
.prop-pendant { left: -110px; top: -400px; transform: translateZ(-520px); pointer-events: none; transform-origin: 50% 0; }
.prop-couch { left: -380px; top: 39px; transform: translateZ(-660px); }
.prop-table { left: -170px; top: 189px; transform: translateZ(-420px); }
/* Decoration: plants and a bookcase. Never clickable. */
.decor { pointer-events: none; }
.decor-bookcase { left: -625px; top: 29px; transform: translateZ(-1062px); }
.decor-armchair { left: -560px; top: 99px; transform: translateZ(-300px); }
.decor-plant { left: -792px; top: -61px; transform: translateZ(-1000px); }
.decor-snake { left: 668px; top: 19px; transform: translateZ(-1030px); }
.shelf-glow { opacity: 0.55; }
.prop-studio { left: 484px; top: -61px; transform: translateZ(-600px) scale(0.92); transform-origin: 0 100%; }

.lamp-glow { opacity: 0.5; transition: opacity 300ms ease; }
.prop-desk:hover .lamp-glow,
.scene[data-hot="contact"] .lamp-glow,
html[data-at="contact"] .lamp-glow { opacity: 0.85; }
.pendant-glow { opacity: 0.5; }
.cushion { transition: fill 400ms ease; }
html.seat-taken .cushion { fill: #F5B731; }
.mic-waves path { opacity: 0; }
.prop-studio:hover .mic-waves path,
.scene[data-hot="listen"] .mic-waves path,
html[data-at="listen"] .mic-waves path { animation: wave 1600ms ease-out infinite; }
.mic-waves path:nth-child(2) { animation-delay: 200ms !important; }
.mic-waves path:nth-child(3) { animation-delay: 400ms !important; }
@keyframes wave {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}

/* Small signs of life: hot coffee, a meter that moves, a door that glows */
.steam path { opacity: 0; animation: steam 3600ms ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: 900ms; }
.steam path:nth-child(3) { animation-delay: 1800ms; }
.steam path:nth-child(4) { animation-delay: 2700ms; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(8px); }
  35% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(-14px); }
}
.levels rect { transform-box: fill-box; transform-origin: 50% 100%; animation: level 900ms ease-in-out infinite alternate; }
.levels rect:nth-child(2) { animation-duration: 700ms; }
.levels rect:nth-child(3) { animation-duration: 1100ms; }
.levels rect:nth-child(4) { animation-duration: 800ms; }
@keyframes level { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
.door-glow { animation: breathe 4200ms ease-in-out infinite; }
@keyframes breathe { 0%, 100% { filter: brightness(0.9); } 50% { filter: brightness(1.08); } }

/* Labels: the one real button for each thing in the room */
.tag {
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 999px;
  padding: 14px 24px 14px 20px;
  box-shadow: 7px 7px 0 var(--ink);
}
.tag span { display: flex; align-items: center; gap: 12px; }
.tag span::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--clay);
  animation: beat 2400ms ease-in-out infinite;
}
@keyframes beat {
  0%, 100% { box-shadow: 0 0 0 0 rgba(10, 122, 82, 0.55); }
  50% { box-shadow: 0 0 0 12px rgba(10, 122, 82, 0); }
}
.tag:hover, .tag:focus-visible,
.scene[data-hot="idea"] .tag-idea, .scene[data-hot="work"] .tag-work,
.scene[data-hot="about"] .tag-about, .scene[data-hot="waitlist"] .tag-waitlist,
.scene[data-hot="listen"] .tag-listen, .scene[data-hot="contact"] .tag-contact {
  background: var(--clay);
  color: #FFFFFF;
}
.tag:hover span::before, .tag:focus-visible span::before,
.scene[data-hot="idea"] .tag-idea span::before, .scene[data-hot="work"] .tag-work span::before,
.scene[data-hot="about"] .tag-about span::before, .scene[data-hot="waitlist"] .tag-waitlist span::before,
.scene[data-hot="listen"] .tag-listen span::before, .scene[data-hot="contact"] .tag-contact span::before { background: var(--paper); }
.tag:focus-visible { outline: 5px solid var(--ink); outline-offset: 5px; }
.tag-idea { left: 310px; top: -262px; transform: translate(-50%, -50%) translateZ(-1085px); }
.tag-about { left: -480px; top: -268px; transform: translate(-50%, -50%) translateZ(-1085px); }
.tag-contact { left: 300px; top: 30px; transform: translate(-50%, -50%) translateZ(-1030px); }
.tag-work { left: 0; top: -8px; transform: translate(-50%, -50%) translateZ(-640px); }
.tag-waitlist { left: -610px; top: -235px; transform: translate(-50%, -50%) translateZ(-700px); }
.tag-listen { left: 620px; top: -200px; transform: translate(-50%, -50%) translateZ(-690px); }

html.has-panel .tag { opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 0s linear 300ms; }
.tag { transition: background-color 160ms ease, color 160ms ease, opacity 300ms ease 400ms; }

/* Dock and hint */
.dock {
  position: fixed;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 1.1rem;
  margin-inline: auto;
  width: max-content;
  display: flex;
  gap: 0.15rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.3rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms ease 500ms, right 700ms var(--ease), visibility 0s linear 0s;
}
.dock::-webkit-scrollbar { display: none; }
html.entered .dock { opacity: 1; visibility: visible; }
html.entered.has-panel .dock { right: var(--panel-w); max-width: calc(100% - var(--panel-w) - 1.5rem); }
.dock button {
  flex: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  cursor: pointer;
}
.dock button:hover { color: var(--clay-deep); }
.dock button[aria-current="true"] { background: var(--ink); color: var(--paper); }
.room-hint {
  position: fixed;
  z-index: 4;
  left: 50%;
  bottom: 4.9rem;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 2rem);
  margin: 0;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 1.4rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 400ms ease, visibility 0s linear 400ms;
}
html.entered:not(.explored) .room-hint { opacity: 1; visibility: visible; transition: opacity 400ms ease 1300ms, visibility 0s linear 0s; }

.room-hint strong { display: block; font-weight: 700; }
.room-hint .hint-touch { display: none; color: var(--ember); }
.room-hint .hint-mouse { color: var(--ember); }
@media (pointer: coarse) {
  .room-hint .hint-touch { display: inline; }
  .room-hint .hint-mouse { display: none; }
}

/* Look left and right */
.look {
  position: fixed;
  z-index: 4;
  top: 50%;
  width: 3rem; height: 3rem;
  margin-top: -1.5rem;
  font: inherit;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 0s linear 300ms;
}
.look span { display: block; margin-top: -0.18em; }
.look-left { left: 0.75rem; }
.look-right { right: 0.75rem; }
.look:hover { background: var(--ember); }
html.entered:not(.has-panel) .look { opacity: 1; visibility: visible; transition: opacity 400ms ease 900ms, visibility 0s linear 0s; }
html.entered:not(.has-panel) .look:disabled { opacity: 0.3; cursor: default; background: var(--paper); }
html.entered:not(.explored) .look:not(:disabled) { animation: look-nudge 1600ms ease-in-out 2; animation-delay: 4200ms; }
@keyframes look-nudge { 0%, 100% { transform: none; } 50% { transform: scale(1.18); background: var(--ember); } }

/* Panels: each section of the page becomes a sheet beside the thing it belongs to */
html.room .panel {
  position: fixed;
  z-index: 0;
  top: 0; right: 0; bottom: 0;
  width: var(--panel-w);
  margin: 0;
  padding: 0 0 2.5rem;
  border: 0;
  border-left: 5px solid var(--ink);
  overflow: hidden auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 700ms var(--ease), visibility 0s linear 700ms;
}
html.room .panel.is-open {
  transform: none;
  visibility: visible;
  transition: transform 700ms var(--ease), visibility 0s linear 0s;
}
html.room .work, html.room .listen { background: var(--paper); }
html.room .panel .container { width: auto; margin-inline: clamp(1.25rem, 3vw, 2.5rem); }
html.room .panel h2 { font-size: clamp(1.9rem, 2vw + 1rem, 2.6rem); }
html.room .idea p { font-size: 1.25rem; }
html.room .idea .people-prompt, html.room .idea .people-count { font-size: 1rem; }
html.room .idea .people-private { font-size: 0.85rem; }
html.room .idea .people-count-step { font-size: 0.8rem; }
html.room .idea .people-question { font-size: 1.4rem; }
html.room .waitlist::before { display: none; }
html.room .card-pair, html.room .show-list { grid-template-columns: 1fr; }
html.room .waitlist-row { flex-direction: column; }
.panel-close {
  position: sticky;
  top: 0.9rem;
  z-index: 2;
  display: block;
  width: 2.75rem; height: 2.75rem;
  margin: 0.9rem 0.9rem 0.6rem auto;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
}
.panel-close:hover { background: var(--ink); color: var(--paper); }
.about-photo {
  display: block;
  width: 9rem; height: 9rem;
  margin-bottom: 1.5rem;
  object-fit: cover;
  object-position: 55% 30%;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--sand), 0 0 0 7px var(--clay);
}
.panel-foot {
  margin: 3rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid currentColor;
  font-size: 0.8rem;
  opacity: 0.85;
}
html.room .idea .panel-foot { font-family: var(--text); font-size: 0.8rem; }
.idea .panel-foot a, .waitlist .panel-foot a { color: inherit; }

/* Narrow screens: panels rise from the bottom, the arch sits under the hero */
@media (max-width: 799px) {
  html.room {
    --arch-t: 70dvh;
    --arch-l: 17vw;
    --arch-r: 17vw;
  }
  html.room .hero { align-items: flex-start; padding: 4.2rem 0 0; }
  /* On short phones the text may run over the top of the arch: keep it on paper. */
  html.room .hero-text { max-width: none; padding-bottom: 1.25rem; background: var(--paper); }
  html.room .hero-grid { width: 100%; }
  html.room .hero-text { padding-inline: 1.25rem; }
  html.room .hero h1 { font-size: clamp(2.1rem, 9vw, 2.9rem); margin-bottom: 0.45em; }
  html.room .hero-sub { font-size: 1.02rem; }
  html.room .hero-byline { font-size: 0.95rem; }
  html.room .cta-row { margin-top: 1.25rem; }
  .hero-hint, .hero-legal { display: none; }
  html.room .btn { padding: 0.8rem 1.15rem; }
  html.entered.has-panel #room { right: 0; bottom: 74dvh; }
  html.entered.has-panel .site-header { display: none; }
  html.room .panel {
    top: auto; left: 0;
    width: 100%;
    height: 74dvh;
    border-left: 0;
    border-top: 5px solid var(--ink);
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
  }
  html.entered.has-panel .dock { opacity: 0; visibility: hidden; right: 0; }
  /* Clear of the labels and furniture: up on the bare wall. */
  .look { top: 21%; width: 2.75rem; height: 2.75rem; }
  .room-hint { bottom: 4.6rem; font-size: 0.85rem; }
  html.room.entered .view-toggle { font-size: 0.78rem; }
  html.room.entered .header-actions { gap: 0.8rem; padding-inline: 0.8rem; }
  .dock { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .arch-cue, .arch-cue::before, .look { animation: none !important; }
  #room, .scene, .arch, .dock, html.room .panel, .door-leaf, .tag { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .tag span::before, .mic-waves path, .steam path, .levels rect, .door-glow { animation: none !important; }
}
