/* BASS HQ — the page floats over the tower.
   Everything here is scoped to html.hq-on, which hq-boot.js sets only once WebGL is running.
   Without it (old phone, WebGL off) the site is exactly the site it was. */

#hq { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; pointer-events: auto;
  opacity: 0; transition: opacity 1.2s ease; }
html.hq-on #hq { opacity: 1; }
html.hq-on body { background: #05060a; }
html.hq-on body > *:not(#hq):not(.curtain):not(.app-portal-modal):not(.nav):not(.topbar):not(.deck):not(.welcome):not(.cookiebar):not(#hqFloor):not(#hqSpots):not(#hqFocusBar) { position: relative; z-index: 2; }
html.hq-on .smoke { display: none !important; }

/* chapters: no bands, no rules — just air for the camera to walk */
html.hq-on section, html.hq-on .hero { border-top: 0; background: transparent !important; pointer-events: none; }
html.hq-on [data-st] { min-height: 125vh; display: flex; align-items: center; padding: 120px 0; }
html.hq-on .hero[data-st] { min-height: 150vh; align-items: flex-start; padding-top: 22vh; }
html.hq-on [data-st] > .wrap, html.hq-on .work-row[data-st] > .work-copy { pointer-events: auto; }

/* the copy sits in a smoked-glass card on the left */
html.hq-on [data-st] > .wrap { width: min(560px, 44vw); max-width: none; margin: 0 0 0 5vw; padding: 38px 40px;
  background: linear-gradient(160deg, rgba(14,14,18,.74), rgba(6,6,9,.62));
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.08); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
  transform: translateY(var(--lift, 0px)) skewY(var(--skew, 0deg)); transition: box-shadow .4s; }
html.hq-on .hero[data-st] > .wrap { background: linear-gradient(160deg, rgba(8,8,12,.55), rgba(6,6,9,.25)); }
html.hq-on #quote[data-st] > .wrap, html.hq-on #contact[data-st] > .wrap { width: min(760px, 56vw); }
html.hq-on .hero h1 { font-size: clamp(2.2rem, 4.2vw, 4rem); }
html.hq-on .hero-mark { width: min(420px, 38vw); margin-bottom: 30px; }

/* numbers + divisions fit the card */
html.hq-on .figures { grid-template-columns: repeat(3, 1fr); }
html.hq-on .fig { background: rgba(8,8,11,.7); padding: 20px 16px; }
html.hq-on .div-row { grid-template-columns: 40px 1fr; gap: 6px 16px; padding: 20px 18px; background: rgba(8,8,11,.7); }
html.hq-on .div-row .div-desc { grid-column: 2; font-size: .86rem; }
html.hq-on .div-row .div-go { grid-column: 2; }
html.hq-on .motto-stage { min-height: 9rem; }

/* work: one office per product; the devices are in the room, not in the card */
html.hq-on #work { padding: 0; display: block; }
html.hq-on #work > .wrap { width: auto; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; max-width: none; backdrop-filter: none; }
html.hq-on #work > .wrap > .sec-label, html.hq-on #work > .wrap > h2 { display: none; }
html.hq-on .work { display: block; background: none; border: 0; }
html.hq-on .work-row[data-st] { background: transparent; display: flex; min-height: 135vh; pointer-events: none; }
html.hq-on .work-row .work-shot { display: none; }
html.hq-on .work-row > .work-copy { width: min(500px, 42vw); margin-left: 5vw; padding: 34px 36px;
  background: linear-gradient(160deg, rgba(14,14,18,.76), rgba(6,6,9,.64));
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.08); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45);
  transform: translateY(var(--lift, 0px)) skewY(var(--skew, 0deg)); }
html.hq-on .work-row > .work-copy::before { content: attr(data-room); display: block; font: 600 .62rem/1 Inter, -apple-system, sans-serif;
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; opacity: .8; }
html.hq-on .hq-tip { margin-top: 18px; font-size: .72rem; color: #7c7c86; display: flex; gap: 8px; align-items: center; }
html.hq-on .hq-tip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* gallery + library: the work hangs on the walls */
html.hq-on #design .dz-grid { display: none; }
html.hq-on #library .bk-shelf { grid-template-columns: repeat(4, 1fr); gap: 10px; }
html.hq-on .hq-enter { display: inline-flex; margin-top: 18px; padding: 12px 20px; border-radius: 30px; border: 1px solid rgba(243,217,139,.45);
  color: var(--gold-bright); background: rgba(212,175,55,.08); font: 600 .78rem/1 Inter, -apple-system, sans-serif; letter-spacing: .06em; cursor: pointer; }
html.hq-on .hq-enter:hover { background: var(--gold-bright); color: #000; }
html:not(.hq-on) .hq-enter, html:not(.hq-on) .hq-tip { display: none; }

html.hq-on .marquee { position: relative; z-index: 2; background: rgba(5,5,7,.55); backdrop-filter: blur(10px); }
html.hq-on footer { background: rgba(5,5,6,.92); position: relative; z-index: 2; }

/* the elevator readout: which room you're in */
#hqFloor { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 50; display: none; flex-direction: column; gap: 7px;
  font: 600 .6rem/1 Inter, -apple-system, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
html.hq-on #hqFloor { display: flex; }
#hqFloor a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: #55555e; text-decoration: none; transition: color .3s; }
#hqFloor a span { opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; white-space: nowrap; }
#hqFloor a i { width: 14px; height: 1px; background: currentColor; transition: width .3s, background .3s; }
#hqFloor a.on { color: var(--gold-bright); }
#hqFloor a.on span, #hqFloor a:hover span { opacity: 1; transform: none; }
#hqFloor a.on i { width: 30px; background: var(--gold-bright); box-shadow: 0 0 8px var(--gold); }
html.hq-on.hq-hover, html.hq-on.hq-hover #hq { cursor: pointer; }

@media (max-width: 760px) {
  html.hq-on [data-st] { align-items: flex-end; min-height: 140vh; padding: 0 0 110px; }
  html.hq-on .hero[data-st] { align-items: flex-end; padding-top: 0; }
  html.hq-on [data-st] > .wrap, html.hq-on .work-row > .work-copy,
  html.hq-on #quote[data-st] > .wrap, html.hq-on #contact[data-st] > .wrap { width: auto; margin: 0 12px; padding: 24px 20px; }
  html.hq-on .work-row[data-st] { min-height: 150vh; align-items: flex-end; padding-bottom: 110px; }
  html.hq-on .figures { grid-template-columns: repeat(2, 1fr); }
  #hqFloor { right: 10px; }
  #hqFloor a span { display: none; }
}
@media (prefers-reduced-motion: reduce) { #hq { transition: none; } }

/* ---- photoreal rooms: hotspots, focus, books ---- */
#hqSpots { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.hq-spot { position: absolute; left: 0; top: 0; margin: -15px 0 0 -15px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; gap: 10px; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.hq-spot.on { opacity: 1; pointer-events: auto; }
.hq-spot i { position: relative; width: 30px; height: 30px; border-radius: 50%; flex: none;
  border: 2px solid #f3d98b; background: radial-gradient(circle, rgba(243,217,139,.55) 0 22%, rgba(212,175,55,.18) 24% 100%);
  box-shadow: 0 0 20px rgba(212,175,55,.75); }
.hq-spot i::after, .hq-spot i::before { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #f3d98b; animation: hqPulse 2s ease-out infinite; }
.hq-spot i::before { animation-delay: 1s; }
@keyframes hqPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.7); opacity: 0; } }
.hq-spot span { font: 600 .68rem/1 Inter, -apple-system, sans-serif; letter-spacing: .06em; color: #fff; white-space: nowrap;
  background: rgba(5,5,6,.8); border: 1px solid rgba(243,217,139,.45); padding: 8px 12px; border-radius: 30px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transform: translateX(-4px); opacity: .92; transition: transform .3s, opacity .3s; }
.hq-spot:hover span { transform: none; opacity: 1; border-color: #f3d98b; }
html.hq-on.hq-hover, html.hq-on.hq-hover #hq { cursor: zoom-in; }
#hqFocusBar { position: fixed; left: 50%; bottom: 104px; transform: translate(-50%, 20px); z-index: 61; display: flex; gap: 8px; align-items: center;
  padding: 8px; border-radius: 40px; background: rgba(5,5,6,.82); border: 1px solid rgba(243,217,139,.35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s; }
html.hq-focus #hqFocusBar { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
#hqFocusBar button { font: 600 .74rem/1 Inter, -apple-system, sans-serif; color: #f3d98b; background: rgba(212,175,55,.08); border: 1px solid rgba(243,217,139,.35);
  border-radius: 30px; padding: 11px 16px; cursor: pointer; white-space: nowrap; }
#hqFocusBar button:hover { background: #f3d98b; color: #000; }
#hqFocusBar .hq-fl { font: 600 .66rem/1 Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #8a8a94; padding: 0 8px; }
html.hq-focus [data-st] > .wrap, html.hq-focus .work-row > .work-copy, html.hq-focus #hqFloor { opacity: 0 !important; pointer-events: none !important; transition: opacity .4s; }
html.hq-on [data-st] > .wrap, html.hq-on .work-row > .work-copy { transition: opacity .4s; }
html.hq-books::after { content: 'Point at a book · tap to open it'; position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 45;
  font: 600 .7rem/1 Inter, -apple-system, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #f3d98b;
  padding: 11px 18px; border-radius: 30px; background: rgba(5,5,6,.8); border: 1px solid rgba(243,217,139,.4); pointer-events: none; }
@media (max-width: 760px) {
  .hq-spot span { display: none; }
  #hqFocusBar { bottom: 96px; flex-wrap: wrap; justify-content: center; width: calc(100vw - 24px); border-radius: 18px; }
  #hqFocusBar .hq-fl { display: none; }
}
html.hq-on #library .bk-shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
html.hq-on #library .bk-frame { aspect-ratio: 1; overflow: hidden; border-radius: 8px; }
html.hq-on #library .bk-frame img { width: 100%; height: 100%; object-fit: cover; }
html.hq-on #library .bk figcaption { font-size: .62rem; }
