/* One persistent desk, from the closed cover to the listening view. */
.app-shell { display: block; }
[hidden] { display: none !important; }
body:not(.atlas-open) { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.listening-desk {
  position: relative;
  isolation: isolate;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  background: #211a12;
  color: #f5e8d0;
}
.desk-camera { position: absolute; inset: 0; transform-origin: 63% 47%; transition: transform 700ms cubic-bezier(.25,1,.5,1); }
.listening-desk:is([data-phase="arriving"],[data-phase="open"]) .desk-camera { transform: scale(1.025); }
.desk-art {
  position: absolute;
  width: max(100%, 177.68331562svh);
  aspect-ratio: 1672 / 941;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.desk-photograph { display: block; width: 100%; height: 100%; }
.desk-lid { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.lid-wall { fill: #b0b7a21a; stroke: #e1c79766; stroke-width: 1.6; stroke-linejoin: round; }
.lid-front { fill: #31281d58; }
.lid-rim { fill: none; stroke: #bda67eaa; stroke-width: 4; stroke-linejoin: round; }
.lid-glint { fill: none; stroke: #fff0cc99; stroke-width: 1.25; stroke-linejoin: round; }
.desk-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg,#19140dc4,transparent 54%),linear-gradient(0deg,#19140d9c,transparent 32%); opacity: 1; transition: opacity 650ms cubic-bezier(.25,1,.5,1); }
.listening-desk:not([data-phase="closed"]) .desk-shade { opacity: 0; }

.landing-copy { position: absolute; left: clamp(24px,6vw,96px); bottom: clamp(40px,7vw,96px); max-width: 430px; }
.landing-copy > p { margin: 0 0 16px; color: #d59a61; text-transform: uppercase; letter-spacing: .16em; font-size: 10px; }
.landing-copy h1 { font: 400 clamp(45px,5.1vw,82px)/.94 var(--display); letter-spacing: -.068em; margin: 0; color: #f6ecd6; text-shadow: 0 2px 18px #120d08a8; }
.landing-prompt { display: flex; align-items: center; justify-content: space-between; gap: 56px; min-height: 44px; margin: 24px 0 0; padding: 12px 0; border: 0; border-top: 1px solid #ecd8ad60; background: transparent; text-transform: uppercase; letter-spacing: .16em; font-size: 10px; color: #f4e6c9; }
.landing-prompt span { color: #e99a69; font-size: 17px; }
.landing-intro { transition: opacity 280ms ease-out, transform 500ms cubic-bezier(.25,1,.5,1); }
.listening-desk:not([data-phase="closed"]) .landing-intro { opacity: 0; transform: translateY(8px); pointer-events: none; }

.desk-deck-button { position: absolute; inset: 4% 12% 18% 35%; border: 0; padding: 0; background: transparent; clip-path: polygon(19% 0,100% 20%,88% 100%,0 72%); }
.desk-deck-button:focus-visible { outline: none; background: #ffe3a914; }
.desk-deck-button:focus-visible::after { content: ""; position: absolute; inset: 12%; border: 2px solid #e8c58a; transform: rotate(14deg); }
.desk-deck-button:disabled { cursor: default; }

.desk-actions { position: absolute; bottom: 24px; left: clamp(24px,4vw,64px); right: clamp(24px,4vw,64px); display: flex; justify-content: space-between; gap: 24px; opacity: 0; visibility: hidden; transition: opacity 400ms ease-out; }
.desk-actions button, .desk-actions a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; border: 0; padding: 0; background: transparent; color: #f2e3c5; text-decoration: none; font-size: 10px; text-transform: uppercase; letter-spacing: .13em; text-shadow: 0 1px 10px #160f08; }
.desk-actions span { color: #eab385; font-size: 16px; }
.desk-actions :is(a,button):hover { color: #fff5df; }
.listening-desk[data-phase="open"] .desk-actions { opacity: 1; visibility: visible; }

/* Keep the entire instrument and its stylus in reach on a portrait screen. */
@media (max-aspect-ratio: 6/5) {
  .desk-art { width: min(185vw, 155svh); top: 43%; transform: translate(-61%,-50%); }
  .desk-camera { transform-origin: 60% 43%; }
  .desk-photograph { mask-image: linear-gradient(transparent, #000 9%, #000 89%, transparent); }
  .desk-shade { background: linear-gradient(0deg,#211a12 3%,#211a1299 25%,transparent 55%); }
  .landing-copy { bottom: 7svh; right: 24px; }
  .landing-copy h1 { font-size: clamp(42px,10vw,64px); }
  .landing-copy > p { margin-bottom: 12px; }
  .landing-prompt { margin-top: 16px; }
    .desk-actions { bottom: 24px; }
}
@media (max-width: 400px) {
  .landing-copy { left: 20px; right: 20px; bottom: 5svh; }
  .desk-actions { gap: 8px; flex-wrap: wrap; }
  .desk-actions button, .desk-actions a { gap: 8px; min-height: 44px; font-size: 9px; white-space: normal; }
}
@media (max-height: 500px) and (min-aspect-ratio: 1/1) {
  .listening-desk { min-height: 100svh; }
  .landing-copy { bottom: 24px; }
  .landing-copy h1 { font-size: 42px; }
  .desk-actions { bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .desk-camera, .desk-shade, .landing-intro, .listening-desk:is([data-phase="arriving"],[data-phase="open"]) .desk-camera { transform: none; transition: none; }
  .record { animation: none; }
}
