@font-face {
  font-family: "NHaas";
  src: url("../fonts/NHaasGroteskDSPro-55Rg.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NHaas";
  src: url("../fonts/NHaasGroteskDSPro-56It.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "NHaas";
  src: url("../fonts/NHaasGroteskDSPro-75Bd.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NHaas";
  src: url("../fonts/NHaasGroteskDSPro-76BdIt.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #000000;
  --fg: #efe9e6;
  --fg-dim: #9a9490;
  --line: #E0DCDD;
  --accent: #dce6ff;
  --accent-warm: #f4e4c1;
  --title: #F2FC01;
  --overlay: rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* size of the accordion stage, centred in the viewport — edit this to resize it */
  --stage-size: 70%;
  /* delay between each intro line's fade-in (logo, title, paragraphs, CTA) — edit this to speed up/slow down the intro reveal */
  --intro-stagger: 0.15s;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "NHaas", "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

a { color: inherit; }

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- Galaxy hub ---------- */

#galaxy-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  touch-action: none;
  cursor: grab;
}
#galaxy-canvas.dragging { cursor: grabbing; }

.hub-ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60; /* above the scene chrome (30) and every other persistent control */
  display: flex;
  flex-direction: column;
}

.hub-center {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.hub-center.active {
  /* only intercepts clicks (so they can't fall through to the 3D scene
     underneath) while the info panel is actually open */
  pointer-events: auto;
}

.hub-intro {
  max-width: 640px;
  pointer-events: none;
}

/* starts every intro line invisible from the very first paint — on a slow
   device the JS (which sets this same opacity:0 before staggering them in)
   can take a beat to run, and without this the full text flashes at opacity
   1 for a frame or two first. GSAP's own inline styles override this the
   instant it runs, so it never fights the animation itself. Scoped to
   .hub-intro so it outranks `.hub-intro p { opacity: 0.88 }`, which (being
   more specific than a lone class) used to win and show the paragraphs. */
.hub-intro .intro-line {
  opacity: 0;
}

.hub-intro .album {
  font-size: clamp(15px, 2vw, 18px);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 10px;
  opacity: 0;
}

.hub-intro h1 {
  font-family: "NHaas", sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 11vw, 128px);
  letter-spacing: 0.04em;
  margin: 0 0 22px;
  line-height: 0.95;
  color: var(--title);
}

.hub-intro p {
  font-weight: 400;
  font-style: italic;
  font-size: clamp(14px, 1.7vw, 18px);
  line-height: 1.65;
  color: var(--fg);
  opacity: 0;
  margin: 0;
}
.hub-intro p + p {
  margin-top: 14px;
}

.enter-cta {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 32px;
  border: 1px solid var(--title);
  border-radius: 999px;
  color: var(--title);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: auto;
  transition: background 0.25s ease, color 0.25s ease;
}
.enter-cta:hover {
  background: var(--title);
  color: #000;
}
.enter-cta.used {
  display: none !important;
}
#nav-light-cta.hidden {
  display: none;
}
#nav-light-text.used {
  display: none;
}

.info-close {
  position: absolute;
  top: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 28px);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--fg-dim);
  pointer-events: auto;
  transition: color 0.25s ease, background 0.25s ease;
}
.info-close svg { width: 16px; height: 16px; }
.info-close:hover { color: var(--fg); background: rgba(255, 255, 255, 0.08); }
.info-close.hidden {
  display: none;
}

/* NTO wordmark — inline on the galaxy hub intro + scene pages' topbar */
.nto-logo {
  height: 18px;
  width: auto;
  display: block;
}

.nto-logo.intro-line {
  top: 30px;
  left: 50%;
  right: auto;
  transform: translatex(-50%);
  position:absolute;
}

/* the white intro-only logo: first item in the hub-intro stagger, gone for
   good (like #enter-cta) once the intro has been dismissed once */
#intro-logo {
  height: clamp(20px, 2.6vw, 30px);
  margin: 0 auto 22px;
}
#intro-logo.used {
  display: none !important;
}

/* galaxy hub: same wordmark as the scene pages, swapped in once the
   intro logo has done its job and the accordion has formed */
.hub-wordmark {
  position: fixed;
  top: clamp(16px, 3vw, 28px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  opacity: 0;
  transition: opacity 0.6s ease;
}
/* links to the NTO home — clickable only once it has actually appeared */
.hub-wordmark.visible {
  pointer-events: auto;
}
.hub-wordmark.visible {
  opacity: 1;
}

.preorder-btn {
  position: fixed;
  top: 60px;
  left: 50%;
  z-index: 15;
  padding: 9px 18px;
  border: 1px solid var(--title);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  color: var(--title);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: translateX(-50%);
  animation: preorderBlink 1.8s ease-in-out infinite;
  transition: background 0.25s ease, color 0.25s ease, opacity 0.45s ease, transform 0.45s ease;
}
.preorder-btn:hover {
  background: var(--title);
  color: #000;
}
.preorder-btn.hidden {
  opacity: 0;
  transform: translateX(-50%) scale(0.85);
  pointer-events: none;
  animation: none;
}
@keyframes preorderBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* persistent info toggle — reopens the intro text after it has faded */
.info-toggle {
  position: fixed;
  left: clamp(20px, 4vw, 48px);
  bottom: clamp(20px, 4vw, 40px);
  z-index: 15;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  color: var(--fg);
  font-family: "NHaas", serif;
  font-style: italic;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: border-color 0.25s ease, opacity 0.25s ease;
}
.info-toggle.visible {
  pointer-events: auto;
}
.info-toggle:hover {
  border-color: rgba(255, 255, 255, 0.7);
}
.info-toggle.active {
  background: var(--fg);
  color: var(--bg);
}

/* node label */
.node-label {
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -140%);
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  border-radius: 3px;
  opacity: 0;
  z-index: 20;
}
.node-label .tag {
  display: block;
  font-size: 9px;
  color: var(--fg-dim);
  letter-spacing: 0.2em;
  margin-top: 2px;
}

/* ---------- galaxy points -> accordion columns ---------- */

/* one per scene, styled exactly like the background stars until formation */
#point-layer {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
}
.galaxy-point {
  position: fixed;
  width: 5px;
  height: 5px;
  margin: -2.5px;
  background: #fff;
  opacity: 0;
}

#blob-layer {
  position: fixed;
  inset: 0;
  z-index: 8;
}

/* JS animates left/top/width/height (a centred --stage-size stage, with a
   gap between columns) for the accordion effect, and clip-path for the
   bottom-up reveal on formation */
.accordion-col {
  position: fixed;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  touch-action: pan-y;
  pointer-events: none; /* only interactive once the accordion has formed */
  clip-path: inset(100% 0 0 0); /* folded away until the formation unfurls it */
}
#blob-layer.formed .accordion-col {
  pointer-events: auto;
}
.accordion-col.soon {
  cursor: not-allowed;
}

.col-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05) brightness(0.85);
  transition: filter 0.3s ease;
}

/* sits over .col-img during formation — the column unfurls as a flat white
   shape (matching the pixel it grew from) before dissolving into the image */
.col-white {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
}

#blob-layer.formed .accordion-col.expanded .col-img { filter: saturate(1.15) contrast(1.08) brightness(1.02); }

/* "Enter" pill on the expanded column, so it reads as clickable — shown on
   hover on desktop (hovering a column expands it), always on touch/mobile */
.col-enter {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 3vw, 28px);
  transform: translate(-50%, 8px);
  padding: 9px 18px;
  border: 1px solid var(--title);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  color: var(--title);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease, color 0.25s ease;
}
@media (hover: hover) {
  #blob-layer.formed .accordion-col.expanded:hover .col-enter {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
  }
  .col-enter:hover {
    background: var(--title);
    color: #000;
  }
}
@media (hover: none), (max-width: 640px) {
  #blob-layer.enter-ready .accordion-col.expanded .col-enter,
  #blob-layer.enter-ready .accordion-col.enter-default .col-enter {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* the currently-expanded column's name, shown as a single pill below the
   stage (same style as univers.html's .sound-toggle) */
.active-col-label {
  position: fixed;
  left: 50%;
  z-index: 9;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: top 0.6s var(--ease);
  display:none;
}

/* mobile/tablet slider: a row of dots below the stage so it reads as
   swipeable, one per scene, matching the currently active one */
.carousel-dots {
  display: none;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  gap: 8px;
  opacity: 0;
  transition: top 0.6s var(--ease), opacity 0.5s ease;
}
/* only once the columns have actually formed (see formAccordion) */
.carousel-dots.visible { opacity: 1; }
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  padding: 0;
  pointer-events: auto;
  transition: background 0.25s ease, transform 0.25s ease;
}
.carousel-dot.active {
  background: var(--title);
  transform: scale(1.35);
}
@media (max-width: 640px) {
  .carousel-dots { display: flex; }
}

/* transition flash */
.flash {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
}

.skip-link {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  opacity: 0;
  animation: fadeIn 1s var(--ease) 3.5s forwards;
}
@keyframes fadeIn { to { opacity: 0.6; } }

/* ---------- Scene / detail page ---------- */

.scene-wrap {
  position: fixed;
  inset: 0;
  background: #000;
}

.scene-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.scene-frame.loaded { opacity: 1; }

.scene-chrome {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.scene-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 28px);
  background: linear-gradient(to bottom, rgba(0,0,0,0.65), transparent);
  /* hidden from the very first paint — on a slow device the JS that hides
     this (before animating it in once actually loaded) can take a beat to
     run, and without this the full chrome flashes visible first */
  opacity: 0;
}

.back-link {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0.85;
  padding: 8px 10px;
  transition: opacity 0.25s ease;
  text-decoration:none;
  top:clamp(16px, 3vw, 28px);
  left:clamp(16px, 3vw, 28px);
  position:absolute;
}
.back-link:hover { opacity: 1; }
.back-link svg { width: 14px; height: 14px; }

.scene-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  text-decoration: none;
}
/* on the scene topbar (not the galaxy hub's own .hub-wordmark) it's a real
   link back to the gallery, same as the Back button */
.scene-topbar .scene-wordmark {
  pointer-events: auto;
  padding: 0; /* it's a <button> now — drop the browser's default padding */
}
.scene-wordmark .nto-logo {
  height: 14px;
}
.scene-wordmark .naked-type {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  margin-top:1px;
}

.sound-cluster {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  position: absolute;
    top: clamp(16px, 3vw, 28px);
    right: clamp(16px, 3vw, 28px);
}
.track-name {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  pointer-events: none;
  white-space: nowrap;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
      position: absolute;
    right: 0;
    bottom: -16px;
}
.track-name-inner {
  display: inline-block;
  padding-left: 100%;
  animation: trackMarquee 9s linear infinite;
}
@keyframes trackMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.sound-toggle {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.sound-toggle:hover { border-color: rgba(255,255,255,0.6); }
.sound-toggle .bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; }
.sound-toggle .bars i {
  display: block;
  width: 2px;
  background: var(--fg);
  border-radius: 1px;
  animation: bar 900ms ease-in-out infinite;
}
.sound-toggle.muted .bars i { animation-play-state: paused; height: 3px !important; opacity: 0.4; }
.sound-toggle .bars i:nth-child(1) { height: 5px; animation-delay: -0.6s; }
.sound-toggle .bars i:nth-child(2) { height: 10px; animation-delay: -0.3s; }
.sound-toggle .bars i:nth-child(3) { height: 7px; animation-delay: 0s; }
@keyframes bar { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

.scene-bottombar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 24px);
  padding: clamp(16px, 3vw, 28px);
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  /* same reasoning as .scene-topbar above — hidden until JS reveals it */
  opacity: 0;
}

.scene-transport {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.transport-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  color: var(--fg);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.15s ease;
}
.transport-btn svg { width: 16px; height: 16px; }
.transport-btn:hover { border-color: rgba(255, 255, 255, 0.6); }
.transport-btn:active { transform: scale(0.92); }

/* mobile/tablet: a big central "tap for sound" button — the scene itself
   plays automatically regardless, this is purely to unlock audio, since
   that tap is a genuine touch gesture (unlike autoplay) on iOS Safari */
.scene-sound-gate {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 35;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--title);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  color: var(--title);
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.scene-sound-gate svg { width: 26px; height: 26px; }
.scene-sound-gate.visible { opacity: 1; }
.scene-sound-gate.hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  pointer-events: none;
}
@media (max-width: 1024px) {
  .scene-sound-gate.visible { display: flex; }
}

/* mobile/tablet: pinch-to-zoom on the splat is fiddly, so an explicit +/-
   stepper stands in. Hidden until revealScene() (same as the topbar/
   bottombar), entering from the right — GSAP owns the transform (yPercent
   for centring + x for the slide-in) so it never fights the CSS transform */
.zoom-control {
  display: none;
  position: fixed;
  right: clamp(12px, 3vw, 24px);
  top: 50%;
  z-index: 25;
  flex-direction: column;
  gap: 6px;
  pointer-events: auto;
  /* press-and-hold would otherwise select text / open the iOS callout */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  /* initial state before GSAP's own autoAlpha takes over, so the mobile
     media query's display:flex never flashes it in on load */
  opacity: 0;
  visibility: hidden;
}
.zoom-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  color: var(--fg);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.15s ease;
}
.zoom-btn svg { width: 16px; height: 16px; }
.zoom-btn:hover { border-color: rgba(255, 255, 255, 0.6); }
.zoom-btn:active { transform: scale(0.92); }
@media (max-width: 1024px) {
  .zoom-control { display: flex; }
}

#play-toggle .icon-pause { display: none; }
#play-toggle.playing .icon-play { display: none; }
#play-toggle.playing .icon-pause { display: block; }

.scene-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.scene-nav-icons {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.scene-nav-icon {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  opacity: 1;
  filter: saturate(0.9) brightness(0.85);
  transition: opacity 0.25s ease, filter 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}
.scene-nav-icon:hover { opacity: 0.85; transform: translateY(-2px); }
.scene-nav-icon.current {
  opacity: 1;
  filter: none;
  border-color: var(--title);
}
.scene-nav-icon.soon {
  cursor: not-allowed;
  opacity: 0.3;
  filter: grayscale(0.5) brightness(0.7);
}
.scene-nav-icon.soon:hover { opacity: 0.4; transform: none; }

/* ---------- 3-dot loading pulse ---------- */

.scene-loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;
  display: flex;
  gap: 8px;
  opacity: 0; /* faded in from JS, with a short delay */
}
.scene-loader.hidden {
  pointer-events: none;
}
.scene-loader span {
  width: 8px;
  height: 8px;
  background: var(--fg);
  animation: loaderPulse 1.1s ease-in-out infinite;
}
.scene-loader span:nth-child(2) { animation-delay: 0.15s; }
.scene-loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes loaderPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  transform: translate(-50%, 12px);
  padding: 12px 20px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  z-index: 40;
}

@media (max-width: 640px) {
  .scene-bottombar { gap: 32px; }
  /* .hub-intro h1 { letter-spacing: 0; } */
}


@media (max-width:1025px) {
  .nto-logo.intro-line {
    position:relative;
    left:unset; 
    top: unset;
    transform: translateX(0%);
  }

  .hub-intro p {
    line-height:1.4;
  }
}

@media (max-width: 991px) {
    .hub-intro p {
    line-height:1.3;
    font-size: clamp(14px, 1.5vw, 16px);
  }

    .nto-logo.intro-line {
    transform: translateX(0%);
  }

  #intro-logo, .hub-intro h1 {
    margin-bottom: 16px;
  }

  .hub-intro .album {
    font-size: clamp(14px, 1.8vw, 18px);
    letter-spacing: 0.3em;
}

.back-link {
  padding-top: 3px;
  padding-left:0px;
}

.sound-toggle {
  font-size:10px;
  letter-spacing: 0.1em;
}

.scene-wordmark {
  gap: 7px;
}

.scene-wordmark .naked-type {
  letter-spacing: 0.13em;
}

.preorder-btn {
    bottom: unset;
    top: 8vw;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
        right: unset;
}
/* the desktop slide-up-from-below entrance (translateY) drops the
   translateX(-50%) centering needed here, which made it fly in askew from
   the right — keep the centering and just scale/fade in place instead */
.preorder-btn.hidden {
  transform: translateX(-50%) scale(0.85);
}

/* .info-toggle {
    left: unset;
    right: clamp(14px, 4vw, 48px);
    bottom: 79px;
} */
.sound-cluster {
top: clamp(13px, 3vw, 28px);
}


}

@media (max-width: 767px) {
.info-toggle {
    left: 15px;
    bottom: 15vw;
    width: 36px;
    height: 36px;
}

    #controlsWrap {
        width: 70% !important;
        bottom: 15vw !important;
    }

.preorder-btn {
    top: 50px;}
}
/* scene pages on mobile/tablet: every backdrop-filter sitting over the live
   3D canvas gets recomputed each frame on iOS Safari, which is costly — drop
   them all, except the info panel's own blur while it's actually open */
@media (max-width: 1024px) {
  .scene-page * {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .scene-page .hub-center.active {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }
}

/* scene pages: nothing here is meant to be copied, and on iOS a long press
   on any control (e.g. the zoom stepper) selects the nearest text instead */
.scene-page {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* ---------- mobile scene onboarding: sound → zoom → drag ---------- */

/* the central sound button pulses so it reads as "tap me" */
.scene-sound-gate::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--title);
  pointer-events: none;
  animation: soundGatePulse 1.8s ease-out infinite;
}
@keyframes soundGatePulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* both zoom buttons pulse twice as they arrive, right after the drag hint */
.zoom-btn.pulse {
  border-color: var(--title);
  animation: zoomPulse 1.2s ease-in-out 2;
}
@keyframes zoomPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 255, 106, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(245, 255, 106, 0); }
}

/* one-off "drag to explore" hint: a touch point sliding left and right,
   i.e. the native one-finger orbit gesture */
.gesture-hint {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 34;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.gesture-hint.visible { opacity: 1; }
.gesture-track {
  position: relative;
  width: 120px;
  height: 34px;
}
.gesture-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: var(--title);
  box-shadow: 0 0 0 6px rgba(245, 255, 106, 0.25);
  animation: gestureDrag 1.6s ease-in-out infinite;
}
@keyframes gestureDrag {
  0%, 100% { transform: translateX(-30px); }
  50% { transform: translateX(30px); }
}
/* same pill the old "Zoom in" bubble used. The extra left padding (one
   letter-spacing) balances the trailing space letter-spacing leaves after the
   last letter, so the text sits optically centred */
.gesture-hint p {
  padding: 7px 12px 7px calc(12px + 0.14em);
  border: 1px solid var(--title);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--title);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 1024px) {
  .gesture-hint { display: flex; }
}

/* scene pages: the info panel always starts closed (the inline script in
   univers.html does the same — this covers it at the stylesheet level) */
.scene-page .hub-center {
  opacity: 0;
}
