/*
  SONO XR — Showcase Stage v2 (main-stage architecture).
  Activated by body.sxr-stage-on (config "stage": true — see js/showcase-stage.js).
  The game model: the MAIN viewING area IS whatever module the viewer picks;
  the ambient world is just the Overview/idle state. Sidebars retire.
  Layers: world z1 · STAGE z40 · sidebars z90 (hidden) · HUD/dock z100.
*/
body.sxr-stage-on .showcase-sidebar-left,
body.sxr-stage-on .showcase-sidebar-right { display: none !important; }

#sxr-stage {
  position: absolute; inset: 0; z-index: 40;
  display: none; pointer-events: none;
}
body.sxr-stage-on #sxr-stage { display: block; }
#sxr-stage .sxr-stage-inner {
  position: absolute; left: 24px; right: 24px; top: 84px; bottom: 104px;
  pointer-events: auto;
  animation: sxrStageIn .45s var(--ease-out) both;
}
#sxr-stage.sxr-idle .sxr-stage-inner { pointer-events: none; }
@keyframes sxrStageIn { from { opacity:0; transform: translateY(14px); } to { opacity:1; transform:none; } }

/* full-bleed media frames (tour / twin / map / video / aerial / pano) */
.sxr-frame {
  position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--ground-00);
}
.sxr-frame iframe, .sxr-frame video { position:absolute; inset:0; width:100%; height:100%; border:0; object-fit:cover; }
.sxr-frame iframe { object-fit: unset; }
.sxr-frame-label {
  position: absolute; top: 12px; left: 14px; z-index: 2;
  font-family: var(--font-screen); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.14em; color: var(--ink-primary);
  background: var(--ground-02);
  padding: 6px 12px; border-radius: var(--radius);
  pointer-events: none;
}

/* ── OVERVIEW — the property story (Compass-bar storytelling) ── */
.sxr-overview {
  position: absolute; left: 0; top: 0; bottom: 0; width: min(620px, 100%);
  overflow-y: auto; overscroll-behavior: contain; padding: 26px 28px 34px;
  /* reading scrim — the copy column has to stay legible over the live world
     behind it, and the world has to stay visible to the right of the copy */
  background: linear-gradient(90deg,
    rgba(11, 10, 9, 0.92) 0%, rgba(11, 10, 9, 0.86) 78%, rgba(11, 10, 9, 0) 100%);
  border-radius: var(--radius); scrollbar-width: thin;
}
.sxr-overview .ov-badge {
  display:inline-block; font-family:var(--font-screen); font-weight: 500;
  font-size:0.68rem; letter-spacing:0.16em; color: var(--ink-secondary);
  border:1px solid currentColor; border-radius: var(--radius); padding:5px 12px; margin-bottom:16px; opacity:0.9;
}
.sxr-overview h2 {
  font-family:var(--font-screen); font-weight: 400; font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height:1.04; letter-spacing:0.01em; color:var(--ink-primary); margin:0 0 6px;
}
.sxr-overview .ov-meta { font-size:0.82rem; color:var(--ink-secondary); margin-bottom:16px; }
.sxr-chips { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.sxr-chip {
  font-family:var(--font-screen); font-weight: 500; font-size:0.78rem; letter-spacing:0.06em;
  color:var(--ink-primary); background:var(--ground-02);
  border-radius: var(--radius); padding:8px 13px;
}
.sxr-chip b { color: var(--ink-secondary); margin-right:6px; }
.sxr-overview p.ov-desc { font-size:0.94rem; line-height:1.65; color:var(--ink-primary); margin:0 0 18px; }
.sxr-overview h4 {
  font-family:var(--font-screen); font-weight: 500; font-size:0.8rem; letter-spacing:0.14em; color:var(--ink-secondary); margin:20px 0 10px; padding-top:16px;
}
.sxr-hl { list-style:none; margin:0; padding:0; }
.sxr-hl li { display:flex; gap:10px; font-size:0.88rem; line-height:1.5; color:var(--ink-primary); margin-bottom:8px; }
.sxr-hl li::before { content:'—'; color: var(--ink-secondary); flex-shrink:0; }
.sxr-feat { display:grid; grid-template-columns:1fr 1fr; gap:4px 18px; }
.sxr-feat span { font-size:0.82rem; color:var(--ink-secondary); padding:3px 0; }

/* overview broker card + CTA row + customize note */
.sxr-ov-broker { display:flex; align-items:center; gap:14px; margin:6px 0 16px; }
.sxr-ov-broker .av { width:52px; height:52px; border-radius: var(--radius); background-size:cover; background-position:center; flex-shrink:0; }
.sxr-ov-broker .nm { font-size:0.9rem; font-weight:600; color:var(--ink-primary); }
.sxr-ov-broker .tt { font-size:0.74rem; color:var(--ink-secondary); }
.sxr-cta-row { display:flex; gap:10px; flex-wrap:wrap; margin-top:4px; }
.sxr-btn {
  font-family:var(--font-screen); font-weight: 500; font-size:0.8rem; letter-spacing:0.1em; border-radius: var(--radius); padding:12px 22px; cursor:pointer; transition: opacity .18s var(--ease-out), transform .18s var(--ease-out);
}
.sxr-btn-primary { background:var(--ink-primary); color:var(--ground-00); }
.sxr-btn-primary:hover { transform:translateY(-1px); }
.sxr-btn-ghost { background:var(--ground-02); color:var(--ink-primary); }
.sxr-btn-ghost:hover { }
.sxr-customize-note {
  display:flex; align-items:center; gap:10px; margin-top:18px; padding:12px 14px; border-radius: var(--radius); font-size:0.78rem; color:var(--ink-secondary);
}
.sxr-customize-note b { color: var(--ink-secondary); font-weight: 500; }
.sxr-customize-note a { color:var(--ink-primary); text-decoration:underline; cursor:pointer; }

/* ── centered card views (avatar / live / lead) ── */
.sxr-card-view { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.sxr-card {
  width:min(520px, 92%); max-height:100%; overflow-y:auto; background:var(--ground-02); border-radius: var(--radius); padding:28px 30px;
}
.sxr-card h3 { font-family:var(--font-screen); font-weight: 400; font-size:1.15rem; letter-spacing:0.08em; color:var(--ink-primary); margin:0 0 12px; }
.sxr-card p { font-size:0.88rem; line-height:1.6; color:var(--ink-secondary); }
.sxr-card label { display:block; font-size:0.72rem; letter-spacing:0.08em; color:var(--ink-secondary); margin:12px 0 5px; font-family:var(--font-screen); font-weight: 500; }
.sxr-card input, .sxr-card select, .sxr-card textarea {
  width:100%; box-sizing:border-box; background:var(--ground-01);
  border-radius: var(--radius); color:var(--ink-primary); padding:11px 12px; font-size:0.9rem; font-family:inherit;
}
.sxr-card input:focus, .sxr-card select:focus, .sxr-card textarea:focus { outline:none; border-color:var(--accent); }

/* ── gallery stage ── */
/* FULL-BLEED (2026-08-03): was background-size:contain, which letterboxed a
   square 1024px photo into a ~750px centre column on a 1501px viewport —
   the best assets showed at under half the screen between two black bars.
   Fill the stage, crop the overflow, keep the aspect. */
.sxr-gal-main { position:absolute; inset:0 0 96px 0; border-radius: var(--radius); background-size:cover; background-position:center; background-repeat:no-repeat; background-color:var(--ground-00); }
.sxr-gal-title { position:absolute; left:16px; bottom:110px; font-family:var(--font-screen); font-weight: 500; letter-spacing:0.12em; font-size:0.8rem; color:var(--ink-primary); background:var(--ground-02); padding:7px 14px; border-radius: var(--radius); }
.sxr-gal-strip { position:absolute; left:0; right:0; bottom:0; height:84px; display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; }
.sxr-gal-strip::-webkit-scrollbar { display:none; }
.sxr-gal-thumb { flex:0 0 128px; border-radius: var(--radius); background-size:cover; background-position:center; border:2px solid transparent; cursor:pointer; opacity:0.65; transition: opacity .18s var(--ease-out), transform .18s var(--ease-out); }
.sxr-gal-thumb.active, .sxr-gal-thumb:hover { opacity:1; border-color:var(--accent); }

/* ── 360 pano stage ── */
.sxr-pano-stage { position:absolute; inset:0; border-radius: var(--radius); overflow:hidden; cursor:grab; background-color:var(--ground-00); background-repeat:repeat-x; background-size:auto 100%; }
.sxr-pano-stage:active { cursor:grabbing; }

/* ── surface selector on the splash ── */
.sxr-surfaces { display:flex; gap:10px; justify-content:center; margin:18px 0 6px; }
.sxr-surface {
  display:flex; flex-direction:column; align-items:center; gap:6px; cursor:pointer;
  background:var(--ground-01); border-radius: var(--radius);
  padding:12px 18px; min-width:96px; color:var(--ink-secondary); transition: opacity .18s var(--ease-out), transform .18s var(--ease-out);
  font-family:var(--font-screen); font-weight: 500; font-size:0.68rem; letter-spacing:0.12em;
}
.sxr-surface i { width:20px; height:20px; }
.sxr-surface:hover { color:var(--ink-primary); }
.sxr-surface.active { border-color:var(--accent); color:var(--ink-primary); background:var(--ground-03); }
.sxr-surface .sub { font-size:0.58rem; letter-spacing:0.08em; color:var(--ink-tertiary); font-weight:600; }

/* kiosk surface: bigger touch targets */
body.sxr-kiosk .sxr-dock { transform:scale(1.22); transform-origin:bottom center; }
body.sxr-kiosk .sxr-overview { font-size:1.06em; }
body.sxr-kiosk .sxr-btn { padding:16px 28px; font-size:0.9rem; }
body.sxr-kiosk .sxr-gal-thumb { flex-basis:160px; }

/* ── viewer settings (toggles) ── */
.sxr-settings-btn {
  position:absolute; top:88px; right:24px; z-index:110; width:38px; height:38px;
  display:flex; align-items:center; justify-content:center; border-radius: var(--radius); cursor:pointer;
  background:var(--ground-02); color:var(--ink-secondary); transition: opacity .18s var(--ease-out), transform .18s var(--ease-out);
}
.sxr-settings-btn:hover { color:var(--ink-primary); }
.sxr-settings-pop {
  position:absolute; top:134px; right:24px; z-index:110; width:250px; display:none;
  background:var(--ground-02); border-radius: var(--radius);
  padding:16px 18px;
}
.sxr-settings-pop.open { display:block; }
.sxr-settings-pop h5 { font-family:var(--font-screen); font-weight: 400; font-size:0.75rem; letter-spacing:0.16em; color:var(--ink-secondary); margin:0 0 10px; }
.sxr-tog { display:flex; align-items:center; justify-content:space-between; padding:8px 0; font-size:0.84rem; color:var(--ink-primary); cursor:pointer; }
.sxr-tog .sw { width:38px; height:21px; border-radius: var(--radius); background:var(--ground-03); position:relative; transition:background .2s; flex-shrink:0; }
.sxr-tog .sw::after { content:''; position:absolute; top:2.5px; left:3px; width:16px; height:16px; border-radius: var(--radius); background:var(--ink-primary); transition:transform .2s; }
.sxr-tog.on .sw { background:var(--accent); }
.sxr-tog.on .sw::after { transform:translateX(16px); }

/* cinema mode: strip the chrome, keep the world + dock */
body.sxr-cinema .showcase-hud-header, body.sxr-cinema .sxr-brand-slot,
body.sxr-cinema .sxr-lead-pill { opacity:0; pointer-events:none; transition:opacity .3s var(--ease-out); }

/* ── persistent lead pill ── */
.sxr-lead-pill {
  position:absolute; right:24px; bottom:112px; z-index:105; cursor:pointer;
  font-family:var(--font-screen); font-weight: 400; font-size:0.78rem; letter-spacing:0.12em; color:var(--ground-00); background:var(--ink-primary); border:0; border-radius: var(--radius); padding:13px 22px; transition: opacity .18s var(--ease-out), transform .18s var(--ease-out);
}
.sxr-lead-pill:hover { transform:translateY(-2px); }

/* dock tier dots + narration mini-player */
.sxr-mod { position:relative; }
.sxr-tier-dot { position:absolute; top:5px; right:7px; width:6px; height:6px; border-radius: var(--radius); background:var(--ink-secondary); }
.sxr-narr {
  position:absolute; left:24px; bottom:112px; z-index:105; display:none; align-items:center; gap:10px;
  background:var(--ground-02); border-radius: var(--radius); padding:8px 14px;
}
.sxr-narr.on { display:flex; }
.sxr-narr audio { height:30px; max-width:240px; }
.sxr-narr span { font-family:var(--font-screen); font-weight: 500; font-size:0.66rem; letter-spacing:0.12em; color:var(--ink-secondary); }

/* mobile */
@media (max-width: 768px) {
  #sxr-stage .sxr-stage-inner { left:10px; right:10px; top:74px; bottom:118px; }
  .sxr-overview { width:100%; background:var(--ground-02); padding:20px 18px 30px; }
  .sxr-feat { grid-template-columns:1fr; }
  .sxr-settings-btn { top:auto; bottom:170px; right:12px; }
  .sxr-settings-pop { top:auto; bottom:216px; right:12px; }
  .sxr-lead-pill { right:12px; bottom:124px; padding:11px 18px; }
  .sxr-narr { left:12px; bottom:124px; }
  .sxr-surfaces { flex-wrap:wrap; }
  body.sxr-kiosk .sxr-dock { transform:none; }
}

/* ═══ direction pass #3: CINEMA LANGUAGE ═══ */

/* splash billing block — the movie-poster credits */
.sxr-billing { margin-top: 20px; text-align: center; animation: sxrGlide 1.1s var(--ease-out) 1.15s both; }
.sxr-billing .bb-line {
  font-family:var(--font-screen); font-weight:600; font-size:0.64rem;
  letter-spacing:0.22em; color:var(--ink-secondary); margin-bottom:6px;
}
.sxr-billing .bb-k { color:var(--ink-tertiary); margin-right:9px; }
.sxr-billing .bb-prod {
  font-family:var(--font-screen); font-weight: 400; font-size:0.7rem;
  letter-spacing:0.34em; color:var(--ink-secondary); margin-top:12px;
}

/* the overview title-sequence: full-screen snap chapters */
.sxr-cine {
  position:absolute; inset:0; overflow-y:auto; scroll-snap-type:y mandatory;
  border-radius: var(--radius); scrollbar-width:none;
  /* reading scrim over the ambient world — see .sxr-pres-scrim */
  background: linear-gradient(180deg, rgba(11,10,9,0.50) 0%, rgba(11,10,9,0.72) 100%);
}
.sxr-cine::-webkit-scrollbar { display:none; }
.sxr-cine section {
  position:relative; min-height:100%; scroll-snap-align:start; box-sizing:border-box;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:48px 8vw;
}
.sxr-cine h1 {
  font-family:var(--font-screen); font-weight: 400;
  font-size:clamp(2.4rem, 6.5vw, 5rem); line-height:0.98; letter-spacing:0.01em; color:var(--ink-primary); margin:16px 0 12px;
}
.sxr-cine h1 .kw { display:inline-block; opacity:0; transform:translateY(0.7em); }
.sxr-cine section.on h1 .kw { animation: cineRise .85s var(--ease-out) both; }
@keyframes cineRise { from { opacity:0; transform:translateY(0.7em); } to { opacity:1; transform:none; } }

/* generic staggered reveal — replays every time a chapter re-enters */
.sxr-cine .k { opacity:0; transform:translateY(26px); transition:opacity .75s var(--ease-out), transform .75s var(--ease-out); }
.sxr-cine section.on .k { opacity:1; transform:none; }

.sxr-cine .c-kicker {
  font-family:var(--font-screen); font-weight: 500; font-size:0.72rem;
  letter-spacing:0.32em; color:var(--ink-secondary); margin:0 0 22px;
}
.sxr-cine .c-meta { font-size:0.86rem; letter-spacing:0.06em; color:var(--ink-secondary); margin-bottom:18px; }
.sxr-cine .c-p { max-width:740px; font-size:clamp(1rem, 1.6vw, 1.22rem); line-height:1.85; color:var(--ink-primary); margin:0 0 20px; }
.sxr-cine .c-hll { list-style:none; margin:0; padding:0; }
.sxr-cine .c-hll li {
  font-family:var(--font-screen); font-weight: 500;
  font-size:clamp(1.15rem, 2.4vw, 1.7rem); letter-spacing:0.04em; color:var(--ink-primary); margin:0 0 18px; line-height:1.25;
}
.sxr-cine .c-hll li::before { content:'— '; color:var(--ink-secondary); }
.sxr-cine .c-fg { margin-bottom:26px; max-width:820px; }
.sxr-cine .c-fg h5 {
  font-family:var(--font-screen); font-weight: 500; font-size:0.7rem; letter-spacing:0.28em; color:var(--ink-tertiary); margin:0 0 10px;
}
.sxr-cine .c-fg div span { display:inline-block; font-size:0.92rem; color:var(--ink-primary); }
.sxr-cine .c-fg div span + span::before { content:'·'; color:var(--ink-secondary); margin:0 12px; }
.sxr-cine .c-cred .av { width:76px; height:76px; border-radius: var(--radius); margin:0 auto 14px; background-size:cover; background-position:center; }
.sxr-cine .c-cred .c-nm { font-family:var(--font-screen); font-weight: 400; font-size:1.5rem; letter-spacing:0.04em; color:var(--ink-primary); }
.sxr-cine .c-cred .c-tt { font-size:0.82rem; color:var(--ink-secondary); margin-bottom:24px; }
.sxr-cine .c-prod {
  font-family:var(--font-screen); font-weight: 400; font-size:0.72rem;
  letter-spacing:0.34em; color:var(--ink-secondary); margin-top:34px;
}
.sxr-cine .c-scroll {
  position:absolute; bottom:22px; left:0; right:0; font-family:var(--font-screen);
  font-weight:600; font-size:0.66rem; letter-spacing:0.26em;
  color:var(--ink-tertiary); animation: cineNudge 2.4s ease-in-out infinite;
}
@keyframes cineNudge { 0%,100% { transform:translateY(0); opacity:.55; } 50% { transform:translateY(6px); opacity:1; } }

/* soundtrack toggle */
.sxr-cine-audio {
  position:absolute; top:14px; left:50%; transform:translateX(-50%); z-index:3; cursor:pointer;
  display:flex; align-items:center; gap:8px; padding:9px 18px; border-radius: var(--radius);
  background:var(--ground-02); color:var(--ink-secondary);
  font-family:var(--font-screen); font-weight: 500; font-size:0.68rem; letter-spacing:0.16em; transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
}
.sxr-cine-audio i { width:15px; height:15px; }
.sxr-cine-audio:hover { color:var(--ink-primary); }
.sxr-cine-audio.on { color:var(--ink-primary); border-color:var(--accent); }

/* ═══ tweaks pass (2026-07-10): splash air + living title + welcome screen ═══ */

/* breathe: space the splash controls out */
body.sxr-stage-on .sxr-surfaces { gap: 16px; margin: 30px 0 26px; }
body.sxr-stage-on .sxr-surface { min-width: 108px; padding: 14px 20px; }
body.sxr-stage-on #enter-experience-btn { margin-top: 10px; }
body.sxr-stage-on .sxr-billing { margin-top: 26px; }
body.sxr-stage-on .splash-content-box { padding-top: 34px !important; padding-bottom: 34px !important; }

/* the living title — entrance (config motion) + endless light sweep */
.sxr-title-cine {
  background: var(--ground-02);
  background-size: 230% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sxrSheen 4.6s ease-in-out infinite;
}
@keyframes sxrSheen { 0% { background-position: 120% 0; } 55% { background-position: -20% 0; } 100% { background-position: -20% 0; } }

/* welcome screen — the game's "how to play" card, world visible behind */
.sxr-welcome { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; text-align:center; }
.sxr-welcome .w-in { max-width: 640px; padding: 0 24px; }
.sxr-welcome h1 {
  font-family:var(--font-screen); font-weight: 400;
  font-size:clamp(2.2rem, 5.5vw, 4rem); line-height:1; color:var(--ink-primary); margin:0 0 12px;
}
.sxr-welcome h1 .kw { display:inline-block; animation: cineRise .85s var(--ease-out) both; }
.sxr-welcome .w-sub { font-size:0.95rem; line-height:1.6; color:var(--ink-secondary); margin-bottom:26px; animation: sxrGlide 1s var(--ease-out) .5s both; }
.sxr-steps { display:flex; flex-direction:column; gap:12px; margin-bottom:28px; }
.sxr-step {
  display:flex; align-items:center; gap:14px; text-align:left; padding:13px 18px;
  background:var(--ground-02); border-radius: var(--radius);
  animation: sxrStageIn .6s var(--ease-out) both;
}
.sxr-step:nth-child(2) { animation-delay:.75s; } .sxr-step:nth-child(3) { animation-delay:.9s; } .sxr-step:nth-child(1) { animation-delay:.6s; }
.sxr-step i { width:20px; height:20px; color:var(--ink-secondary); flex-shrink:0; }
.sxr-step .n {
  font-family:var(--font-screen); font-weight: 400; font-size:0.9rem; color:var(--ink-secondary);
  flex-shrink:0; width:18px;
}
.sxr-step span { font-size:0.86rem; color:var(--ink-primary); }
.sxr-welcome .sxr-cta-row { justify-content:center; animation: sxrGlide 1s var(--ease-out) 1.05s both; }
@media (max-width:768px){ .sxr-welcome .w-in { padding:0 12px; } .sxr-step { padding:11px 14px; } }

/* ═══ title-card BRAND ROW (2026-07-11): avatar · name · logo · intro button ═══ */
.sxr-brandrow {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  margin-top: 24px; animation: sxrGlide 1.1s var(--ease-out) 1s both;
}
.sxr-brandrow .br-av {
  width: 48px; height: 48px; border-radius: var(--radius); flex-shrink: 0;
  background-size: cover; background-position: center;
}
.sxr-brandrow .br-id { text-align: left; line-height: 1.25; }
.sxr-brandrow .br-id b {
  display: block; font-family: var(--font-screen); font-weight: 500;
  font-size: 0.88rem; letter-spacing: 0.06em; color: var(--ink-primary);
}
.sxr-brandrow .br-id i {
  font-style: normal; font-size: 0.68rem; color: var(--ink-secondary); letter-spacing: 0.04em;
}
.sxr-brandrow .br-logo {
  height: 30px; width: auto; display: block; opacity: 0.92;
  padding-left: 16px;
}
.sxr-brandrow .br-intro {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font-screen); font-weight: 500; font-size: 0.7rem;
  letter-spacing: 0.14em; color: var(--ink-primary);
  background: var(--ground-02);
  border-radius: var(--radius); padding: 10px 18px; transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
}
.sxr-brandrow .br-intro .br-ic { font-size: 0.6rem; color: var(--ink-secondary); }
.sxr-brandrow .br-intro:hover { color: var(--ink-primary); }
.sxr-brandrow .br-intro.on {
  border-color: var(--accent); color: var(--ink-primary);
}
@media (max-width: 640px) {
  .sxr-brandrow { gap: 12px; }
  .sxr-brandrow .br-logo { padding-left: 12px; height: 24px; }
}

/* "Powered by ⟨SXR⟩" as one unit on the title card (matches the corner badge) */
.sxr-brandrow .br-pow { display: flex; align-items: center; gap: 9px; }
.sxr-brandrow .br-pow i {
  font-style: normal; font-family: var(--font-screen); font-weight: 600;
  font-size: 0.64rem; letter-spacing: 0.2em; color: var(--ink-secondary);
}
.sxr-brandrow .br-pow img { height: 26px; width: auto; display: block; }
.sxr-brandrow .br-id + .br-pow, .sxr-brandrow .br-av + .br-pow {
  padding-left: 16px;
}

/* ═══ title-card rhythm pass (2026-07-11): even spacing, smaller mark ═══ */
body.sxr-stage-on .sxr-surfaces { margin: 28px 0 24px; }
body.sxr-stage-on #enter-experience-btn { margin-top: 0; }
.sxr-brandrow { margin-top: 24px; }
.sxr-brandrow .br-pow img { height: 20px; }
.sxr-billing { margin-top: 18px; }

/* ═══ surfaces that DO something ═══ */
/* kiosk: genuinely bigger touch world */
body.sxr-kiosk .sxr-dock { transform: scale(1.32); transform-origin: bottom center; }
body.sxr-kiosk .sxr-welcome .sxr-step { padding: 17px 22px; }
body.sxr-kiosk .sxr-welcome .sxr-step span { font-size: 1rem; }
body.sxr-kiosk .sxr-btn { padding: 17px 30px; font-size: 0.92rem; }
body.sxr-kiosk .sxr-lead-pill { padding: 16px 26px; font-size: 0.88rem; }
body.sxr-kiosk .sxr-settings-btn { width: 48px; height: 48px; }
body.sxr-kiosk .sxr-overview, body.sxr-kiosk .sxr-cine { font-size: 1.08em; }
body.sxr-kiosk .sxr-card input, body.sxr-kiosk .sxr-card select, body.sxr-kiosk .sxr-card textarea { padding: 15px 16px; font-size: 1rem; }

/* AR/VR: persistent readiness chip while the surface is active */
body.sxr-xr::after {
  content: 'VR-READY · OPEN 3D TOUR IN A HEADSET BROWSER';
  position: fixed; top: 88px; left: 24px; z-index: 9000;
  font-family: var(--font-screen); font-weight: 500; font-size: 0.62rem;
  letter-spacing: 0.16em; color: var(--ink-secondary);
  background: var(--ground-02);
  border-radius: var(--radius); padding: 8px 14px;
  pointer-events: none;
}

/* ═══ glass SCENE PILLS (NAVIGO-style sub-options inside a module) ═══ */
.sxr-scenes {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 86%;
  background: var(--ground-02);
  border-radius: var(--radius); padding: 5px;
}
.sxr-scene {
  border: 0; background: transparent; cursor: pointer; border-radius: var(--radius);
  font-family: var(--font-screen); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.1em; color: var(--ink-secondary);
  padding: 8px 16px; transition: opacity .18s var(--ease-out), transform .18s var(--ease-out);
}
.sxr-scene:hover { color: var(--ink-primary); }
.sxr-scene.active { background: var(--ground-03); color: var(--ground-00); }
body.sxr-kiosk .sxr-scene { padding: 12px 22px; font-size: 0.84rem; }

/* ══ Stage v2.1 (2026-07-22, Michael): the chosen module IS the background —
      full-bleed stage, no floating-card chrome; HUD + dock overlay the media.
      Plus: a clear BACK pill and a proper fullscreen system. ══ */
#sxr-stage .sxr-stage-inner { left: 0; right: 0; top: 0; bottom: 0; }
.sxr-frame { border-radius: var(--radius); border: 0; }
.sxr-frame-label { top: auto; bottom: 118px; left: 18px; }
.sxr-overview { border-radius: var(--radius); padding-top: 96px; padding-bottom: 130px; }

.sxr-back-pill, .sxr-fs-exit {
  position: fixed; z-index: 10001; display: none; align-items: center; gap: 8px;
  background: var(--ground-02); color: var(--ink-primary);
  border-radius: var(--radius); padding: 10px 18px; cursor: pointer;
  font-family: var(--font-screen); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.12em;
  transition: border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.sxr-back-pill { top: 84px; left: 18px; }
.sxr-fs-exit { top: 84px; right: 18px; z-index: 10002; }
.sxr-back-pill:hover, .sxr-fs-exit:hover { border-color: var(--accent); color: var(--accent); }
.sxr-back-pill.on, .sxr-fs-exit.on { display: inline-flex; }

/* ══ Stage v2.2 (2026-07-22, Michael): GROUPED DOCK — the menu system.
      Top level reads as chapters (Overview · Virtual Tours · Media · 3D Models
      · Floor Plan · The Area · Guided); each group opens a glass flyout. ══ */
.sxr-grp { position: relative; display: flex; }
.sxr-grp-btn .gcv {
  position: absolute; top: 5px; right: 7px; font-style: normal; font-weight: 400;
  font-size: 0.5rem; color: var(--ink-tertiary); transition: transform .18s var(--ease-out), color .18s var(--ease-out);
}
.sxr-grp.open .sxr-grp-btn .gcv { color: var(--accent); transform: rotate(180deg); }
.sxr-grp-btn.has-active::after {
  content: ''; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%);
  width: 18px; height: 2px; border-radius: var(--radius); background: var(--accent);
}
.sxr-grp-btn.has-active { color: var(--ink-primary); }
.sxr-grp-menu {
  position: absolute; bottom: calc(100% + 16px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px; display: flex; flex-direction: column; gap: 2px;
  background: var(--ground-02);
  border-radius: var(--radius); padding: 7px;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), visibility .18s;
}
.sxr-grp-menu::after { /* connector notch */
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: var(--ground-02);
}
.sxr-grp.open .sxr-grp-menu {
  opacity: 1; pointer-events: auto; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.sxr-grp-menu .sxr-mod {
  flex-direction: row; justify-content: flex-start; gap: 12px;
  width: 100%; min-width: 0; padding: 12px 14px; border-radius: var(--radius);
  font-size: 0.7rem; letter-spacing: 0.11em; white-space: nowrap;
}
.sxr-grp-menu .sxr-mod.active::after {
  left: auto; right: 12px; top: 50%; bottom: auto; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: var(--radius);
}
.sxr-grp-menu .sxr-mod[data-live="0"]::before { top: 50%; transform: translateY(-50%); right: 26px; }
body.sxr-kiosk .sxr-grp-menu .sxr-mod { padding: 15px 18px; font-size: 0.82rem; }

/* labeled FULL SCREEN dock item + louder return pill */
.sxr-fs-mod { border-radius: var(--radius); }
.sxr-fs-mod.active { color: var(--accent); }
.sxr-fs-exit {
  color: var(--ink-primary);
}

/* THE AREA — glass local-story panel over the live map */
.sxr-local-panel {
  position: absolute; top: 140px; right: 26px; z-index: 3;
  width: min(360px, 86vw); max-height: calc(100% - 300px); overflow-y: auto;
  background: var(--ground-02);
  border-radius: var(--radius); padding: 24px 26px;
}
.sxr-local-panel h3 {
  margin: 0 0 10px; font-family: var(--font-screen); font-weight: 400;
  font-size: 1.3rem; letter-spacing: 0.06em; color: var(--ink-primary);
}
.sxr-local-panel p { margin: 0 0 12px; font-size: 0.86rem; line-height: 1.55; color: var(--ink-secondary); }
.sxr-local-panel ul { margin: 0 0 16px; padding: 0; list-style: none; }
.sxr-local-panel li {
  position: relative; padding: 7px 0 7px 20px; font-size: 0.84rem; color: var(--ink-primary);
}
.sxr-local-panel li:last-child { border-bottom: 0; }
.sxr-local-panel li::before { content: '\2726'; position: absolute; left: 0; color: var(--ink-secondary); font-size: 0.7rem; }
@media (max-width: 700px) { .sxr-local-panel { top: auto; bottom: 150px; right: 12px; left: 12px; width: auto; max-height: 42vh; } }
.sxr-grp-menu .sxr-mod .sxr-tier-dot { position: static; margin-left: auto; flex-shrink: 0; }

/* ══ Stage v2.3 (2026-07-22): VIDEO GALLERY + real FLOOR PLANS ══ */
.sxr-vgal-main {
  position: absolute; inset: 0 0 96px 0; width: 100%; height: calc(100% - 96px);
  object-fit: cover; background: var(--ground-00);   /* full-bleed — see .sxr-gal-main */
}
.sxr-vgal-thumb { position: relative; background-color: var(--ground-01); }
.sxr-vgal-thumb .vg-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--ink-primary); font-size: 0.85rem;
}
/* Plans fill the stage too. Because cover crops, the drag-to-pan is live at
   every zoom level (renderPlans) — no part of a plan is unreachable. */
.sxr-plan-stage {
  position: absolute; inset: 0; background-color: var(--ink-primary);
  background-repeat: no-repeat; background-size: cover; background-position: center;
  cursor: zoom-in; touch-action: none; user-select: none;
}
.sxr-plan-stage.zoomed { cursor: grab; }

/* ══ Stage v3 (2026-07-22 late, Michael): THREE MENU SYSTEMS ══
   bottom dock = core content · side rail = interactive layer · title = property drawer */
.sxr-stage-inner { overflow: hidden; }

/* title drawer */
.sxr-title-cv { font-style: normal; font-weight: 400; color: var(--ink-secondary); font-size: 0.8rem; margin-left: 4px; transition: transform .2s var(--ease-out); }
.sxr-title-menu {
  position: fixed; top: 96px; left: 20px; z-index: 10004;
  min-width: 240px; display: flex; flex-direction: column; gap: 2px;
  background: var(--ground-02);
  border-radius: var(--radius); padding: 7px;
  opacity: 0; pointer-events: none; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), visibility .18s;
}
.sxr-title-menu.open { opacity: 1; pointer-events: auto; visibility: visible; transform: none; }
.sxr-tm-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: transparent; border: 0; border-radius: var(--radius); cursor: pointer;
  padding: 12px 14px; color: var(--ink-secondary); text-align: left;
  font-family: var(--font-screen); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.11em;
  transition: background .18s var(--ease-out), color .18s var(--ease-out);
}
.sxr-tm-item i, .sxr-tm-item svg { width: 17px; height: 17px; stroke-width: 1.6; flex-shrink: 0; }
.sxr-tm-item:hover { background: var(--ground-02); color: var(--ink-primary); }
.sxr-tm-item.dim { color: var(--ink-tertiary); }
.sxr-tm-item .tm-dot { margin-left: auto; width: 8px; height: 8px; border-radius: var(--radius); background: var(--ground-03); transition: background .18s var(--ease-out); }
.sxr-tm-item.on .tm-dot { background: var(--accent); }

/* side rail — the interactive layer */
.sxr-rail {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 9500;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--ground-02);
  border-radius: var(--radius); padding: 6px;
}
.sxr-rail-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  width: 58px; padding: 11px 4px 9px; background: transparent; border: 0; border-radius: var(--radius);
  color: var(--ink-secondary); cursor: pointer;
  font-family: var(--font-screen); font-weight: 600; font-size: 0.58rem;
  letter-spacing: 0.12em;
  transition: color .18s var(--ease-out), background .18s var(--ease-out);
}
.sxr-rail-btn i, .sxr-rail-btn svg { width: 18px; height: 18px; stroke-width: 1.5; }
.sxr-rail-btn:hover { color: var(--ink-primary); background: var(--ground-01); }
.sxr-rail-btn.active { color: var(--ink-primary); background: var(--ground-02); }
.sxr-rail-btn.active::after { content: ''; width: 16px; height: 2px; border-radius: var(--radius); background: var(--accent); }

.sxr-rail-panel {
  position: fixed; right: 88px; top: 50%; transform: translateY(-50%) translateX(8px); z-index: 9499;
  width: min(320px, 78vw); max-height: 70vh; overflow-y: auto;
  background: var(--ground-02);
  border-radius: var(--radius); padding: 20px 20px 18px;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility .2s;
}
.sxr-rail-panel.open { opacity: 1; pointer-events: auto; visibility: visible; transform: translateY(-50%); }
.sxr-rail-panel h5 { margin: 0 0 6px; font-family: var(--font-screen); font-weight: 400; font-size: 1.02rem; letter-spacing: 0.08em; color: var(--ink-primary); }
.rp-sub { margin: 0 0 12px; font-size: 0.78rem; color: var(--ink-secondary); }
.rp-chip { display: inline-block; margin: 0 0 12px; font-family: var(--font-screen); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.14em; color: var(--ink-secondary); border-radius: var(--radius); padding: 5px 10px; }
/* Roadmap chip — deliberately NOT the accent colour. The accent means "this
   works"; a not-built-yet label must not borrow that signal. */
.rp-chip-soon { color: var(--ink-secondary); background: var(--ground-01); }
.rp-zoom { display: flex; align-items: center; gap: 10px; }
.rp-zoom button { width: 40px; height: 40px; border-radius: var(--radius); background: var(--ground-01); color: var(--ink-primary); font-size: 1.1rem; cursor: pointer; }
.rp-zoom button:hover { border-color: var(--accent); }
.rp-zoom .rp-reset { width: auto; padding: 0 14px; font-family: var(--font-screen); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.12em; }
.rp-zoom span { min-width: 48px; text-align: center; font-family: var(--font-screen); font-weight: 500; color: var(--ink-primary); }
/* .rp-msgs/.rp-msg (chat) removed 2026-08-03 with the Chat rail button. */
.rp-row { display: flex; gap: 8px; }
.rp-row input { flex: 1; min-width: 0; background: var(--ground-01); border-radius: var(--radius); padding: 10px 12px; color: var(--ink-primary); font-size: 0.82rem; }
.rp-row input:focus { outline: none; border-color: var(--accent); }
.rp-row button { border: 0; border-radius: var(--radius); background: var(--ink-primary); color: var(--ground-00); font-family: var(--font-screen); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.1em; padding: 0 16px; cursor: pointer; }
.rp-notes { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.rp-note { display: flex; align-items: center; gap: 10px; background: var(--ground-01); border-radius: var(--radius); padding: 9px 12px; font-size: 0.82rem; color: var(--ink-primary); }
.rp-note span { flex: 1; }
.rp-note button { border: 0; background: transparent; color: var(--ink-tertiary); cursor: pointer; font-size: 0.7rem; }
.rp-note button:hover { color: var(--ink-primary); }
.rp-empty { font-size: 0.78rem; color: var(--ink-tertiary); }
.rp-broker { display: flex; align-items: center; gap: 12px; margin: 6px 0 12px; }
.rp-broker .av { width: 44px; height: 44px; border-radius: var(--radius); background-size: cover; background-position: center; flex-shrink: 0; }
.rp-broker b { display: block; color: var(--ink-primary); font-size: 0.9rem; }
.rp-broker i { font-style: normal; font-size: 0.72rem; color: var(--ink-secondary); }
.rp-link { display: block; color: var(--ink-secondary); text-decoration: none; font-size: 0.82rem; padding: 7px 0; }
.rp-link:hover { color: var(--accent); }
.rp-cta { width: 100%; margin-top: 14px; }

/* keep the neighborhood panel clear of the rail */
.sxr-local-panel { right: 92px; }
body.sxr-kiosk .sxr-rail-btn { width: 68px; padding: 14px 4px 12px; font-size: 0.66rem; }
/* ═══════════════════════════════════════════════════════════════════════
   MOBILE LAYOUT PASS (2026-08-03)

   The rail was desktop geometry on every screen — fixed to the right edge,
   vertically centred — so on a phone it sat ON TOP of the body copy and
   clipped all three numbered rows mid-sentence. The floating lead pill
   landed on the dock. Nothing was wrong with the features; the layout just
   never had a mobile idea.

   On mobile the bottom of the screen becomes ONE predictable stack, and
   nothing floats over content:

       [ stage content                          ]
       [ SHARE   GO LIVE   NOTES   LEADS        ]  rail  — 54px, bottom 78
       [ OVERVIEW VIDEOS PHOTOS 3D TOURS …  ⟷   ]  dock  — one scrolling row

   Companion dock rules live in the inline <style> in showcase-template.html
   (search "MOBILE QA PASS") — SAME 768px breakpoint, keep them together.
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* One source of truth for the bottom stack. Every floating element below
     positions off these instead of hand-tuned magic numbers that drift apart
     the moment a label wraps. */
  :root { --sxr-dock-band: 74px; --sxr-rail-band: 54px; --sxr-pill-band: 57px;
          --sxr-brand-band: 30px; }
  /* the brand slot is the CLIENT's logo under white-label, so it is not
     something to hide on small screens — it gets a reserved band of its
     own between the stage and the pill instead. */
  /* stack top = dock + rail + the gaps between and above them */
  .sxr-rail { bottom: calc(var(--sxr-dock-band) + 8px); }
  .sxr-narr, .sxr-rail-panel, .sxr-grp-menu {
    bottom: calc(var(--sxr-dock-band) + var(--sxr-rail-band) + 16px);
  }

  /* Labels wrapping to 2-3 lines made the dock 93px tall and its height
     unpredictable. One line each — the row scrolls, so width is free.
     flex:0 0 auto matters as much as the nowrap: in a nowrap flex row the
     items still shrink below their content width by default, which made
     long labels ("GAUSSIAN SPLATS") overlap their neighbours. */
  .sxr-mod span { white-space: nowrap; }
  .sxr-dock > .sxr-mod, .sxr-dock > .sxr-grp { flex: 0 0 auto; }

  /* rail: vertical column on the right -> horizontal bar above the dock */
  .sxr-rail {
    left: 10px; right: 10px; top: auto; transform: none;
    flex-direction: row; justify-content: space-between; gap: 0;
    border-radius: var(--radius); padding: 4px;
  }
  .sxr-rail-btn {
    flex: 1 1 0; width: auto; min-height: 44px;
    padding: 7px 2px 6px; gap: 3px; font-size: 0.54rem;
  }
  .sxr-rail-btn i, .sxr-rail-btn svg { width: 17px; height: 17px; }
  /* the underline marker doesn't fit a short button — fill instead */
  .sxr-rail-btn.active::after { display: none; }
  .sxr-rail-btn.active { background: var(--ground-03); }

  /* rail panel: right-hand popover -> bottom sheet clearing rail + dock */
  .sxr-rail-panel {
    left: 10px; right: 10px; width: auto; top: auto;
    transform: translateY(10px); max-height: calc(100vh - 260px);
  }
  .sxr-rail-panel.open { transform: none; }

  /* The floating CTA duplicated LEADS in the rail AND the button in the
     welcome card, and it covered the dock. Three of the same ask on one
     small screen; this is the one with no home. */
  .sxr-lead-pill { display: none !important; }

  /* Flyout menus live inside the dock, which now scrolls — and overflow-x
     makes overflow-y a clipping context, so an absolutely-positioned menu
     would be cut off. Fixed positioning escapes the scroller entirely. */
  .sxr-grp-menu {
    position: fixed; left: 10px; right: 10px;
    width: auto; max-width: none; min-width: 0;
    max-height: calc(100vh - 260px); overflow-y: auto;
    /* the base rule centres with translateX(-50%); against left/right that
       drags the sheet 166px off the left edge. Neutralise both states. */
    transform: translateY(8px);
  }
  .sxr-grp.open .sxr-grp-menu { transform: none; }
  .sxr-grp-menu::after { display: none; }   /* connector notch points nowhere now */
  .sxr-grp-menu .sxr-mod { min-height: 44px; width: 100%; }

  /* everything else that floats gets out of the bottom stack */
  #sxr-stage .sxr-stage-inner {
    bottom: calc(var(--sxr-dock-band) + var(--sxr-rail-band) + var(--sxr-pill-band) + var(--sxr-brand-band) + 22px); }
  .sxr-local-panel { left: 12px; right: 12px; width: auto;
    bottom: calc(var(--sxr-dock-band) + var(--sxr-rail-band) + var(--sxr-pill-band) + var(--sxr-brand-band) + 22px); }
  .sxr-narr { left: 10px; right: auto; }

  /* Viewer chrome sits TOP-RIGHT on mobile — the bottom band belongs to the
     rail and dock, and the welcome copy tells people "top right", so this is
     what makes that sentence true on a phone too.
     It goes INSIDE the existing header band rather than below it: stacked
     underneath, the two buttons formed a second band that ran straight over
     the welcome title and body copy. Room is made by dropping the stage
     sub-label ("Sample space") — on a 375px screen the title card already
     carries identity, and this is the least load-bearing thing in the header.
     Restore the chip and the chrome needs somewhere else to go. */
  .showcase-hud-header .hud-header-panel:nth-child(2) { display: none; }
  .sxr-settings-btn { top: 22px; right: 62px; bottom: auto; }
  .sxr-settings-pop { top: 84px; right: 10px; bottom: auto; }

  /* Title card: the coordinates and the SECURE LINK chip are desktop
     decoration. They squeezed a 4-line title into the top of the screen. */
  #hud-coord-latlon, .hud-header-panel .badge-tech { display: none; }
  .hud-header-panel h1 { letter-spacing: 0.06em !important; line-height: 1.15; }
}
.sxr-mod[hidden] { display: none !important; }

/* ══ v3.1 SHARE panel (2026-07-23): one link, embed code, native share ══ */
.rp-lbl { display: block; font-family: var(--font-screen); font-weight: 500; font-size: 0.62rem;
  letter-spacing: 0.16em; color: var(--ink-tertiary); margin: 14px 0 6px; }
.rp-row-col { flex-direction: column; align-items: stretch; }
.rp-row textarea { width: 100%; background: var(--ground-01);
  border-radius: var(--radius); padding: 10px 12px; color: var(--ink-primary); font-size: 0.72rem;
  font-family: ui-monospace, Menlo, monospace; resize: none; line-height: 1.5; }
.rp-row textarea:focus, .rp-row input:focus { outline: none; border-color: var(--accent); }
.rp-row button.ok { background: var(--accent); color: var(--ground-00); }
.rp-row-col button { padding: 10px 16px; }
/* GO LIVE panel — the premium/live layer (2026-07-23) */
.rp-feats { list-style: none; margin: 0 0 6px; padding: 0; }
.rp-feats li { position: relative; padding: 6px 0 6px 20px; font-size: 0.82rem; color: var(--ink-secondary); }
.rp-feats li::before { content: '\2726'; position: absolute; left: 2px; color: var(--ink-secondary); font-size: 0.68rem; }

/* ═══════════════════════════════════════════════════════════════════════
   AUDIO HUB (2026-08-03) — one home for every sound in a showcase.
   Replaces five scattered surfaces (two title-menu toggles, the floating
   narration player, the avatar module's own <audio>, the splash intro).
   Every control in here drives a real Web Audio node — see js/showcase-audio.js.
   ═══════════════════════════════════════════════════════════════════════ */
.sxr-audio-pill {
  /* a flex child of .showcase-hud-header on desktop (see buildPill) — the
     row's space-between keeps it clear of the title card at any width */
  position: relative; z-index: 9400; align-self: flex-start; pointer-events: auto;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 10px 16px; border-radius: var(--radius);
  background: var(--ground-02); color: var(--ink-primary);
  transition: border-color .18s var(--ease-out), background .18s var(--ease-out);
}
.sxr-audio-pill:hover { }
.sxr-audio-pill.live { border-color: var(--accent); }
.sxr-audio-pill i[data-lucide], .sxr-audio-pill svg { width: 18px; height: 18px; stroke-width: 1.5; flex-shrink: 0; }
.sxr-audio-pill.live svg { color: var(--accent); }
.sxr-audio-pill .ap-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.sxr-audio-pill .ap-txt b { font-family: var(--font-screen); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.16em; color: var(--ink-secondary); }
.sxr-audio-pill .ap-txt i { font-style: normal; font-size: 0.84rem; color: var(--ink-primary); }
.sxr-audio-pill .ap-state { font-family: var(--font-screen); font-weight: 500; font-size: 0.58rem; letter-spacing: 0.16em; color: var(--ink-tertiary); }
.sxr-audio-pill.live .ap-state { color: var(--accent); }

.sxr-audio-panel {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(0.97); z-index: 10050;
  width: min(1040px, 94vw); max-height: 88vh; overflow-y: auto;
  background: var(--ground-02); border-radius: var(--radius); padding: 26px 26px 20px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-out), visibility .22s;
}
.sxr-audio-panel.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
.sxa-head { position: relative; margin-bottom: 22px; }
.sxa-kicker { font-family: ui-monospace, Menlo, monospace; font-size: 0.62rem; letter-spacing: 0.22em; color: var(--ink-secondary); }
.sxa-head h3 { margin: 8px 0 4px; font-family: var(--font-screen); font-weight: 400; font-size: 2.1rem; letter-spacing: 0.02em; color: var(--ink-primary); }
.sxa-head p { margin: 0; font-size: 0.86rem; color: var(--ink-secondary); }
.sxa-x { position: absolute; top: -4px; right: -4px; width: 44px; height: 44px; border-radius: var(--radius); background: var(--ground-01); color: var(--ink-primary); font-size: 1rem; cursor: pointer; }
.sxa-x:hover { border-color: var(--accent); }

.sxa-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.sxa-card { position: relative; padding: 18px; border-radius: var(--radius); background: var(--ground-01); }
.sxa-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 30px; padding: 0 10px;
  border-radius: var(--radius); background: var(--ground-03);
  font-family: ui-monospace, Menlo, monospace; font-size: 0.6rem; letter-spacing: 0.1em; color: var(--ink-secondary); }
.sxa-card b { display: block; margin: 12px 0 3px; font-size: 0.98rem; color: var(--ink-primary); }
.sxa-card i { display: block; font-style: normal; font-size: 0.78rem; color: var(--ink-tertiary); }
.sxa-act { margin-top: 12px; min-height: 40px; padding: 9px 16px; border-radius: var(--radius); cursor: pointer; background: var(--ground-03); color: var(--ink-secondary);
  font-family: var(--font-screen); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.12em; }
.sxa-act:hover { background: var(--ground-03); }
/* honest empty state — NOT styled as a button, because there is nothing to press */
.sxa-none { display: block; margin-top: 12px; font-size: 0.76rem; color: var(--ink-tertiary); font-style: italic; }
.sxa-live { display: block; margin-top: 12px; font-family: ui-monospace, Menlo, monospace; font-size: 0.72rem; color: var(--ink-tertiary); }
.sxa-live b { display: inline; color: var(--ink-secondary); }

.sxa-fx { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.sxa-fxb { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  min-height: 44px; padding: 12px; border-radius: var(--radius); background: var(--ground-01); color: var(--ink-primary);
  transition: border-color .18s var(--ease-out), background .18s var(--ease-out); }
.sxa-fxb:hover { }
.sxa-fxb.on { border-color: var(--accent); background: var(--ground-03); }
.sxa-n { font-family: ui-monospace, Menlo, monospace; font-size: 0.6rem; color: var(--ink-tertiary); }
.sxa-fxb.on .sxa-n { color: var(--accent); }
.sxa-fxl { flex: 1; min-width: 0; }
.sxa-fxl b { display: block; font-size: 0.78rem; font-weight: 600; }
.sxa-fxl i { display: block; font-style: normal; font-size: 0.66rem; color: var(--ink-tertiary); }
.sxa-dot { width: 8px; height: 8px; border-radius: var(--radius); background: var(--ground-03); flex-shrink: 0; }
.sxa-fxb.on .sxa-dot { background: var(--accent); }

.sxa-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; }
.sxa-note { font-family: ui-monospace, Menlo, monospace; font-size: 0.68rem; color: var(--ink-tertiary); }
.sxa-badge { font-family: ui-monospace, Menlo, monospace; font-size: 0.64rem; letter-spacing: 0.1em; color: var(--ink-tertiary); }

@media (max-width: 768px) {
  /* the pill can't sit centre-top on a phone — the title card and the two
     chrome buttons already own that band. It joins the bottom stack above
     the rail, which is where the thumb is anyway. */
  /* on a phone it leaves the header entirely and joins the bottom stack,
     above the rail, where the thumb already is */
  .sxr-audio-pill {
    position: fixed; top: auto; left: 10px; right: 10px; width: auto;
    bottom: calc(var(--sxr-dock-band) + var(--sxr-rail-band) + 16px);
    justify-content: space-between; padding: 9px 14px;
  }
  .sxr-audio-panel { width: calc(100vw - 20px); max-height: 86vh; padding: 20px 16px 16px; border-radius: var(--radius); }
  .sxa-head h3 { font-size: 1.5rem; }
  .sxa-cards, .sxa-fx { grid-template-columns: 1fr; }
  .sxa-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   PRESENTER (2026-08-03) — the guided path.

   Everything here is chrome for ONE forward action. The dock, the rail and
   the floating CTA belong to Explorer and are hidden while presenting; so is
   Explorer's in-stage furniture (thumbnail strips, scene pills, frame labels,
   the back pill), because a beat is a full-bleed frame with one line on it,
   not a module view with a caption.
   ══════════════════════════════════════════════════════════════════════════ */

/* --- Explorer chrome stands down --- */
body.sxr-presenting .sxr-dock-wrap,
body.sxr-presenting .sxr-rail,
body.sxr-presenting .sxr-rail-panel,
body.sxr-presenting .sxr-lead-pill,
body.sxr-presenting .sxr-back-pill,
body.sxr-presenting .sxr-title-menu { display: none !important; }

/* --- the stage becomes a frame: no strips, no pills, no labels --- */
body.sxr-presenting .sxr-gal-strip,
body.sxr-presenting .sxr-gal-title,
body.sxr-presenting .sxr-scenes,
body.sxr-presenting .sxr-frame-label,
body.sxr-presenting .sxr-cine-audio { display: none !important; }
body.sxr-presenting .sxr-gal-main,
body.sxr-presenting .sxr-vgal-main { inset: 0; height: 100%; border-radius: var(--radius); border: 0; }
body.sxr-presenting .sxr-frame { border-radius: var(--radius); border: 0; }
/* the local-area panel is a reading panel — in a beat the map is the picture */
body.sxr-presenting .sxr-local-panel { display: none !important; }

/* --- the presenter layer ---
   Hidden unless we are actually presenting. It is built once at boot and the
   body class is the single switch: without this rule the overlay survives the
   escape hatch and sits on top of Explorer's dock and rail. */
.sxr-pres { display: none; position: fixed; inset: 0; z-index: 10002; pointer-events: none; }
body.sxr-presenting .sxr-pres { display: block; }
.sxr-pres > * { pointer-events: auto; }

/* copy has to stay legible over any frame of any video */
.sxr-pres-scrim {
  position: absolute; inset: auto 0 0 0; height: 46vh; pointer-events: none;
  /* A scrim is legibility, not decoration — it is the one gradient the system
     keeps, and it exists only to let copy survive any frame of any video. */
  background: linear-gradient(to top,
    rgba(11, 10, 9, 0.92) 0%, rgba(11, 10, 9, 0.62) 38%, rgba(11, 10, 9, 0) 100%);
}

.sxr-pres-bar {
  position: absolute; left: 0; right: 0; bottom: 84px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 0 24px; text-align: center;
}
.sxr-pres-bar.in .sxr-pres-line { animation: sxrPresIn .6s var(--ease-out) both; }
.sxr-pres-bar.in .sxr-pres-next { animation: sxrPresIn .6s var(--ease-out) .12s both; }
@keyframes sxrPresIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.sxr-pres-line {
  margin: 0; max-width: 22ch; color: var(--ink-primary);
  font-family: var(--font-screen); font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.12; letter-spacing: -0.005em;
}

.sxr-pres-next {
  font-family: var(--font-screen); font-weight: 400; font-size: 0.86rem;
  letter-spacing: 0.14em; cursor: pointer;
  background: var(--ink-primary); color: var(--ground-00); border-radius: var(--radius);
  padding: 15px 34px; transition: opacity .18s var(--ease-out), transform .18s var(--ease-out);
}
.sxr-pres-next:hover { transform: translateY(-2px); }
.sxr-pres-next.is-last { background: var(--accent); border-color: var(--accent); }

/* the path is short and finite, and the viewer can see that at a glance */
.sxr-pres-dots { position: absolute; left: 0; right: 0; bottom: 46px; display: flex; justify-content: center; gap: 9px; pointer-events: none; }
.sxr-pres-dots i {
  width: 7px; height: 7px; border-radius: var(--radius); background: var(--ground-03);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.sxr-pres-dots i.done { background: var(--ground-03); }
.sxr-pres-dots i.on { width: 26px; border-radius: var(--radius); background: var(--accent); }

/* quiet, persistent, never the loudest thing on screen */
.sxr-pres-exit {
  position: absolute; right: 22px; bottom: 40px;
  font-family: var(--font-screen); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.14em; cursor: pointer;
  color: var(--ink-secondary); background: var(--ground-02); border-radius: var(--radius); padding: 10px 18px; transition: opacity .18s var(--ease-out), transform .18s var(--ease-out);
}
.sxr-pres-exit:hover { color: var(--ink-primary); }

@media (max-width: 700px) {
  .sxr-pres-bar { bottom: 96px; gap: 16px; }
  .sxr-pres-line { font-size: clamp(1.35rem, 6.4vw, 1.9rem); max-width: 18ch; }
  .sxr-pres-next { width: 100%; max-width: 340px; padding: 16px 24px; }
  .sxr-pres-dots { bottom: 62px; }
  /* on a phone the escape hatch centres under the dots rather than crowding
     the thumb-side edge */
  .sxr-pres-exit { right: auto; left: 50%; transform: translateX(-50%); bottom: 18px; }
  .sxr-pres-exit:hover { transform: translateX(-50%); }
}

/* Presenter owns the whole frame. On a phone the stage is normally inset to
   clear the dock/rail/pill stack — none of which exists while presenting, so
   the insets just letterbox the beat. The Audio Hub pill is Explorer chrome
   too: on a 390px screen it lands directly on the beat's line of copy. Both
   come straight back on the escape hatch — nothing here changes the Audio Hub
   itself, only whether it is on screen during a guided beat. */
body.sxr-presenting .sxr-audio-pill { display: none !important; }
@media (max-width: 768px) {
  body.sxr-presenting #sxr-stage .sxr-stage-inner { left: 0; right: 0; top: 0; bottom: 0; }
  body.sxr-presenting .sxr-brand-slot { display: none !important; }
}

/* ── PHOTO TAGS (2026-08-09) ────────────────────────────────────────────
   Pins the client places on their own photography, for media that has no
   tour behind it. The layer is sized in JS to the letterboxed image rect,
   so a pin at 70%/80% sits at 70%/80% OF THE PHOTO, not of the box. */
.sxr-gal-pins { position: absolute; left: 0; top: 0; display: none; pointer-events: none; }
.sxr-gal-pins .gal-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 0;
  padding: 0; border: 0; background: none; cursor: pointer;
  pointer-events: auto;
  color: var(--ink-primary);
}
/* ⚠️ WHITE CORE, ACCENT RING — not a solid accent dot. The first cut filled
   the dot with var(--accent) and it vanished into a night-skyline photo:
   #B08D57 bronze on a lit building is camouflage. A photo tag has to read on
   ANY photo, and the only colour that does that is white with a dark rim.
   The accent survives as the ring, so it is still branded. Same lesson as
   the audio launcher an hour earlier — brand colour is not contrast. */
.sxr-gal-pins .gal-pin .dot {
  flex: 0 0 auto;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.55),
    0 0 0 4.5px var(--accent),
    0 0 0 6px rgba(0, 0, 0, 0.35),
    0 2px 10px rgba(0, 0, 0, 0.65);
  transition: transform 0.18s var(--ease-out);
}
/* tags are the point of a tagged photo, so they announce themselves once —
   a slow breath, not a blink, and it stops mattering as soon as you hover */
@keyframes sxrPinBreath {
  0%, 100% { box-shadow: 0 0 0 2px rgba(0,0,0,0.55), 0 0 0 4.5px var(--accent),
                         0 0 0 6px rgba(0,0,0,0.35), 0 2px 10px rgba(0,0,0,0.65); }
  50%      { box-shadow: 0 0 0 2px rgba(0,0,0,0.55), 0 0 0 4.5px var(--accent),
                         0 0 0 11px color-mix(in srgb, var(--accent) 22%, transparent),
                         0 2px 10px rgba(0,0,0,0.65); }
}
.sxr-gal-pins .gal-pin .dot { animation: sxrPinBreath 3.2s ease-in-out infinite; }
.sxr-gal-pins .gal-pin:hover .dot,
.sxr-gal-pins .gal-pin.open .dot { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .sxr-gal-pins .gal-pin .dot { animation: none; }
}
/* the label is CLIPPED, not hidden — it grows out of the dot rather than
   appearing beside it, so a screen full of tags stays calm until you point */
.sxr-gal-pins .gal-pin .lab {
  max-width: 0;
  overflow: hidden; white-space: nowrap;
  font-family: var(--font-screen);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em;
  line-height: 1;
  opacity: 0;
  transition: max-width 0.26s var(--ease-out), opacity 0.18s var(--ease-out),
              padding 0.26s var(--ease-out);
}
.sxr-gal-pins .gal-pin:hover .dot,
.sxr-gal-pins .gal-pin.open .dot { transform: scale(1.15); }
.sxr-gal-pins .gal-pin:hover .lab,
.sxr-gal-pins .gal-pin:focus-visible .lab,
.sxr-gal-pins .gal-pin.open .lab {
  max-width: 46vw;
  opacity: 1;
  padding: 7px 12px 7px 14px;
  margin-left: -6px;
  border-radius: 999px;
  background: rgba(10, 9, 8, 0.88);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* a pin near the right edge opens leftward instead of off the photo */
.sxr-gal-pins .gal-pin.flip { flex-direction: row-reverse; }
.sxr-gal-pins .gal-pin.flip:hover .lab,
.sxr-gal-pins .gal-pin.flip.open .lab { margin-left: 0; margin-right: -6px; }

@media (prefers-reduced-motion: reduce) {
  .sxr-gal-pins .gal-pin .lab,
  .sxr-gal-pins .gal-pin .dot { transition: none; }
}
