/* The nine-page layout (matches js/spacing.js). Home is the centre; positions in px from home. */
#section-music      { top: -1700px; left: -2400px; }
#section-lab        { top: -1700px; left: 2400px; }
#section-placements { top: 0;       left: -2400px; }
#section-animation  { top: 0;       left: 2400px; }
#section-about      { top: 1700px;  left: 2400px; }
#section-latest     { top: 1700px;  left: 0; }
#section-podcasts   { top: -1700px; left: 0; }
#section-crossfader { top: -1700px; left: 4800px; }
#section-contact    { top: -1700px; left: -4800px; }
#section-releases   { top: 1700px;  left: -2400px; }

/* Pages can be tall. A page is only visible while it is the current page (after the fly-away finishes), so a tall page
   never shows through on the page below it. (.is-current is set by js/flow.js.) */
.spatial-node:not(#section-hero) { visibility: hidden; transition: visibility 0s linear 1.25s; }
#spatial-stage .spatial-node.is-current { visibility: visible; transition-delay: 0s; }
/* home too stays visible while the camera flies away from it */
#section-hero { transition: visibility 0s linear 1.25s; }

/* "Back to Home": in the corner of each page that is nearest home */
#section-animation > .back-link { left: 20px;  right: auto; top: 20px; bottom: auto; }
#section-placements > .back-link { right: 20px; left: auto;  top: 20px; bottom: auto; }
#section-about      > .back-link { left: 20px;  right: auto; top: 20px; bottom: auto; }
#section-releases   > .back-link { right: 20px; left: auto;  top: 20px; bottom: auto; }
#section-podcasts   > .back-link { left: 50%; right: auto; top: 20px; bottom: auto; transform: translateX(-50%); }
#section-latest     > .back-link { left: 50%; right: auto; top: 20px; bottom: auto; transform: translateX(-50%); }

/* Home buttons: left-middle, right-middle and bottom-centre (the corners are in style.css) */
.corner-ml { left: 30px;  top: 50%; transform: translateY(-50%); }
.corner-mr { right: 30px; top: 50%; transform: translateY(-50%); }
.corner-bc { left: 50%; bottom: 30px; transform: translateX(-50%); }
.corner-tc { left: 50%; top: 30px; transform: translateX(-50%); }
.corner-ml:hover, .corner-mr:hover { transform: translateY(-50%) scale(1.05); }
.corner-bc:hover, .corner-tc:hover { transform: translateX(-50%) scale(1.05); }

/* narrower windows: the middle buttons would run into the name, so they sit in a second row under the top buttons */
@media (max-width: 1100px) {
  .corner-ml, .corner-mr { top: 96px; transform: none; }
  .corner-ml:hover, .corner-mr:hover { transform: scale(1.05); }
}
/* phones: two buttons per row; rows from the top: 1 Playlists | Lab, 2 Placements | Particles; from the bottom: Latest, then Studio | Releases */
@media (max-width: 800px) {
  .corner-tc { left: 14px; right: 14px; width: auto; top: 16px; transform: none; justify-content: center; }
  .corner-tc:hover { transform: none; }
  .corner-tl, .corner-tr { top: 59px; }
  .corner-ml, .corner-mr { top: 102px; }
  .corner-ml { left: 14px; }
  .corner-mr { right: 14px; }
  .corner-bl, .corner-br { bottom: 59px; }
  .corner-bc { left: 14px; right: 14px; width: auto; bottom: 16px; transform: none; justify-content: center; }
  .corner-bc:hover { transform: none; }
}

/* small legal links, always at the bottom edge */
.site-footer { position: fixed; left: 0; right: 0; bottom: 6px; z-index: 60; padding: 0; border: 0; background: none;
  font-size: 0.65rem; pointer-events: none; text-shadow: 0 0 6px #000, 0 0 3px #000; }
.site-footer a, .site-footer button { pointer-events: auto; }

/* phones: the legal links sit bottom-left, beside the Video/Image switch */
@media (max-width: 800px) {
  .site-footer { left: 12px; right: auto; bottom: 10px; max-width: 44vw; text-align: left; font-size: 0.6rem; line-height: 1.7; }
  .site-footer a, .site-footer button { margin: 0 10px 0 0; display: inline-block; white-space: nowrap; }
}

/* during the camera flight (js/flow.js): the Spotify players are hidden and the blur effects off, so the flight is smooth */
#spatial-stage.flying .genre-embed iframe { visibility: hidden; }
#spatial-stage.flying .content-box, #spatial-stage.flying .track-card, #spatial-stage.flying .hero-corner-link { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ten menu entries: a little tighter on mid-size windows, and the "Menu" button (as on phones) on narrow ones */
@media (min-width: 1171px) and (max-width: 1520px) {
  .spatial-nav { padding: 25px 24px; }
  .logo { white-space: nowrap; }
  .nav-links button { font-size: 0.72rem; margin-left: 12px; white-space: nowrap; }
}
@media (min-width: 801px) and (max-width: 1170px) {
  .spatial-nav { padding: 12px 20px; background: rgba(8, 10, 13, 0.92); }
  .logo { font-size: 0.9rem; letter-spacing: 2px; white-space: nowrap; }
  .nav-menu-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1px solid rgba(255,255,255,0.6);
    color: #ffffff; border-radius: 8px; padding: 9px 14px; font-family: var(--font-family); font-size: 0.7rem; letter-spacing: 1px; cursor: pointer; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: rgba(8, 10, 13, 0.97);
    border-top: 1px solid rgba(255,255,255,0.2); padding: 6px 0 12px; max-height: calc(100vh - 64px); overflow-y: auto; }
  .spatial-nav.menu-open .nav-links { display: flex; }
  .nav-links button { margin: 0; padding: 14px 20px; text-align: left; font-size: 0.8rem; }
}

/* ---- one small floating "Back to Home" button, always on screen, in the corner nearest home ---- */
.spatial-node > .back-link { display: none; }
.float-back { display: none; position: fixed; z-index: 90; padding: 6px 12px; border: 1px solid rgba(255,255,255,0.65); border-radius: 8px;
  background: rgba(8, 10, 13, 0.88); color: #ffffff; font-family: var(--font-family); font-size: 0.65rem; letter-spacing: 0.5px; cursor: pointer;
  backdrop-filter: blur(6px); box-shadow: 0 6px 18px rgba(0,0,0,0.5); transition: background 0.2s ease, color 0.2s ease; }
.float-back:hover, .float-back:focus-visible { background: #ffffff; color: #000000; outline: none; }
body:not([data-page="hero"]) .float-back { display: block; }
/* Home lies down and to the right of Curated Playlists, so the button is bottom-right (above the Video/Image switch), and so on */
body[data-page="music"]      .float-back { bottom: 84px; right: 30px; }
body[data-page="lab"]        .float-back { bottom: 16px; left: 30px; }
body[data-page="placements"] .float-back { top: 84px;    right: 30px; }
body[data-page="animation"]  .float-back { top: 84px;    left: 30px; }
body[data-page="releases"]   .float-back { top: 84px;    right: 30px; }
body[data-page="about"]      .float-back { top: 84px;    left: 30px; }
body[data-page="latest"]     .float-back { top: 84px;    left: 50%; transform: translateX(-50%); }
body[data-page="podcasts"]   .float-back { bottom: 44px; left: 50%; transform: translateX(-50%); }
@media (max-width: 800px) {
  body[data-page="music"]      .float-back { bottom: 64px; right: 12px; }
  body[data-page="lab"]        .float-back { bottom: 64px; left: 12px; }
  body[data-page="placements"] .float-back, body[data-page="releases"] .float-back { top: 72px; right: 12px; }
  body[data-page="animation"]  .float-back, body[data-page="about"] .float-back { top: 72px; left: 12px; }
  body[data-page="latest"]     .float-back { top: 72px; }
  body[data-page="podcasts"]   .float-back { bottom: 64px; }
}

body[data-page="crossfader"] .float-back { top: 84px; left: 30px; }
@media (max-width: 800px) { body[data-page="crossfader"] .float-back { top: 72px; left: 12px; } }
