/* Homepage: one silver logo on black. Nothing else. */

html, body {
  margin: 0;
  height: 100%;
  background: #000;
  color: #fff;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  /* The whole screen is the light's playground: no scroll, no text selection. */
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}

.logo {
  position: relative;
  margin: 0;
  /* The artwork is 2:1 with ~5% of empty margin around the lettering. */
  width: min(48vw, 84vh, 750px);
  width: min(48vw, 84dvh, 750px);
  aspect-ratio: 2 / 1;
}

@media (max-width: 700px) and (orientation: portrait) {
  .logo {
    width: 77vw;
  }
}

.logo-still {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* The shader draws the whole screen (surface, shadow and metal), so its
   canvas covers the stage; the logo element just marks where the piece sits. */
.logo-live {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
}

/* Once the shader has drawn its first frame it takes over from the still. */
.stage.is-live .logo-live {
  opacity: 1;
}

.stage.is-live .logo-still {
  visibility: hidden;
}

/* Listen: quiet satin-titanium marks under the logo (Spotify, Apple Music). */
.listen {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
  opacity: 0;
  animation: listen-in 1.2s ease 0.8s forwards;
}

.listen a {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.85));
  transition: filter 0.3s ease;
  touch-action: manipulation;
  -webkit-touch-callout: none;
}

.listen a:hover,
.listen a:focus-visible {
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.85)) brightness(1.12);
}

.listen a:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
  border-radius: 12px;
}

@keyframes listen-in {
  to { opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  .listen {
    animation-duration: 0.01s;
  }
}
