/* endjneer: musica (magenta) e codice (blu) attorno allo stesso pianeta. */

:root {
  --void: #000000;
  --ink: #f4f0ff;
  --mute: #bbb5c3;
  --signal: #0b39e3;
  --ice: #9ff3ff;
  --flare: #e579f1;
  --dusk: #5a1865;
  --line-soft: rgba(244, 240, 255, 0.08);
  --line: rgba(244, 240, 255, 0.12);
  --line-strong: rgba(244, 240, 255, 0.24);
  --highlight: inset 0 1px 0 rgba(244, 240, 255, 0.08);
  --panel: rgba(244, 240, 255, 0.035);

  --display: "Outfit", system-ui, sans-serif;
  --body: "Outfit", system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --wide: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Livelli audio, aggiornati da main.js a ogni frame (0..1). */
  --bass: 0;
  --energy: 0;

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font: 300 1.125rem/1.6 var(--body);
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: var(--void); text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Fondo: cielo stellato e luce del cursore ---------- */

.sky {
  position: fixed; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  transition: opacity 1.6s ease;
}
.js:not(.is-loaded) .sky { opacity: 0; }

.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: -1;
  width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(229, 121, 241, 0.13), rgba(11, 57, 227, 0.07) 55%, transparent);
  pointer-events: none;
  opacity: 0; transition: opacity 0.6s ease;
  will-change: transform;
}
.has-pointer .cursor-glow { opacity: 1; }

/* ---------- Navigazione ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--gutter);
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.is-scrolled .nav {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav__brand {
  font: 800 1.2rem/1 var(--display);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.nav__brand span { color: var(--flare); }

.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  position: relative;
  font-weight: 400; font-size: 0.98rem;
  text-decoration: none; color: var(--mute);
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: linear-gradient(90deg, var(--flare), var(--ice));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__sound {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(244, 240, 255, 0.06);
  box-shadow: var(--highlight);
  font-size: 0.92rem; font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.nav__sound:hover { background: rgba(244, 240, 255, 0.12); border-color: var(--line-strong); }
.is-playing .nav__sound { border-color: rgba(229, 121, 241, 0.6); }

.eq-icon { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq-icon i {
  width: 3px; height: 30%; border-radius: 2px;
  background: currentColor;
  transition: height 0.3s ease;
}
.is-playing .eq-icon i { animation: eq 0.9s ease-in-out infinite alternate; background: var(--flare); }
.is-playing .eq-icon i:nth-child(2) { animation-delay: -0.3s; }
.is-playing .eq-icon i:nth-child(3) { animation-delay: -0.6s; }
.is-playing .eq-icon i:nth-child(4) { animation-delay: -0.15s; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }

/* ---------- Bottoni ---------- */

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.actions--left { justify-content: flex-start; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 500; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.3s ease, transform 0.35s var(--ease);
  will-change: transform;
}
.btn--solid {
  background: var(--ink); color: var(--void);
  box-shadow: 0 0 0 0 rgba(229, 121, 241, 0);
}
.btn--solid:hover { box-shadow: 0 0 32px 2px rgba(229, 121, 241, 0.45); }
.btn--solid:active { background: #dedae8; }
.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(244, 240, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(244, 240, 255, 0.12); border-color: rgba(244, 240, 255, 0.4); }
.btn--ghost:active { background: rgba(244, 240, 255, 0.08); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  /* Più alto dello schermo: il wavetable prosegue sotto la piega e accompagna lo scroll. */
  min-height: max(112svh, 700px);
  overflow: hidden;
  isolation: isolate;
}

.hero__stage {
  position: absolute; left: 0; right: 0; top: 25svh;
  height: 78svh;
  /* La maschera isola il gruppo: il blend va sul contenitore, altrimenti il nero del video copre il cielo. */
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 98%);
  transition: opacity 2s ease 0.2s, transform 2.4s var(--ease) 0.2s;
}
.js:not(.is-loaded) .hero__stage { opacity: 0; transform: translateY(12%); }

.hero__video,
.blend {
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
}

.hero__pulse {
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--hx, 50%) var(--hy, 72%), rgba(229, 121, 241, 0.75), rgba(90, 24, 101, 0.35) 18%, transparent 42%);
  mix-blend-mode: screen;
  opacity: calc(0.08 + var(--bass) * 0.9);
  transform: scale(calc(1 + var(--bass) * 0.06));
  transform-origin: var(--hx, 50%) var(--hy, 72%);
  pointer-events: none;
}

/* Il wavetable copre il riflesso del pianeta e scende fino al fondo dell'hero. */
.hero__wavetable {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, #000 78%, transparent);
  transition: opacity 1.6s ease 0.9s;
}
.js:not(.is-loaded) .hero__wavetable { opacity: 0; }

.hero__copy {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(96px, 13vh, 140px) var(--gutter) 0;
  text-align: center;
}

.hero__kicker {
  margin: 0 0 18px;
  font-weight: 400; font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--mute);
}

.hero__title { margin: 0; line-height: 1; }

.wordmark {
  display: inline-flex;
  padding-bottom: 0.14em; /* spazio per la gamba della j */
  font: 900 clamp(4.2rem, 19vw, 12rem)/0.92 var(--display);
  letter-spacing: -0.055em;
}
.wordmark > span {
  display: inline-block;
  transition: opacity 0.9s ease, translate 1.1s var(--ease);
}
.js:not(.is-loaded) .wordmark > span { opacity: 0; translate: 0 0.35em; }
.wordmark > span:nth-child(2) { transition-delay: 0.05s; }
.wordmark > span:nth-child(3) { transition-delay: 0.1s; }
.wordmark > span:nth-child(4) { transition-delay: 0.15s; }
.wordmark > span:nth-child(5) { transition-delay: 0.2s; }
.wordmark > span:nth-child(6) { transition-delay: 0.25s; }
.wordmark > span:nth-child(7) { transition-delay: 0.3s; }
.wordmark > span:nth-child(8) { transition-delay: 0.35s; }

/* Colore pieno, non testo sfumato: Safari su iPhone sbaglia background-clip:text sulle lettere che si muovono. */
.wordmark .dj {
  color: var(--flare);
  text-shadow: 0 0 calc(6px + var(--bass) * 30px) rgba(229, 121, 241, calc(0.4 + var(--bass) * 0.6));
}

.hero__lede {
  max-width: 34ch;
  margin: 22px 0 30px;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--mute);
}

.hero__kicker,
.hero__lede,
.hero__copy .actions { transition: opacity 1s ease 0.6s, translate 1.2s var(--ease) 0.6s; }
.hero__kicker { transition-delay: 0.1s; }
.js:not(.is-loaded) .hero__kicker,
.js:not(.is-loaded) .hero__lede,
.js:not(.is-loaded) .hero__copy .actions { opacity: 0; translate: 0 14px; }

/* ---------- Sezioni ---------- */

.about,
.world,
.outro {
  position: relative;
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(64px, 13vw, 180px) var(--gutter);
}

.title {
  margin: 0 0 24px;
  font: 800 clamp(2.6rem, 6vw, 5rem)/1 var(--display);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.about__text p { max-width: 48ch; margin: 0 0 1em; color: var(--mute); }
.about__text em { font-style: normal; color: var(--ink); font-weight: 400; }
.about__visual {
  margin: 0;
  aspect-ratio: 21 / 9;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent);
  mask-image: radial-gradient(closest-side, #000 72%, transparent);
}
.about__visual video { filter: brightness(calc(1 + var(--bass) * 0.5)); }

.world {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(32px, 6vw, 96px);
  row-gap: clamp(48px, 7vw, 96px);
}

.world__visual {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  max-width: 560px; width: 100%;
  justify-self: center;
}
.world__visual video {
  -webkit-mask-image: radial-gradient(closest-side, #000 74%, transparent);
  mask-image: radial-gradient(closest-side, #000 74%, transparent);
  filter: brightness(calc(1 + var(--bass) * 0.45)) saturate(calc(1 + var(--energy) * 0.4));
  transform: scale(calc(1 + var(--bass) * 0.025));
}

.orbit {
  position: absolute; inset: -6%;
  width: 112%; height: 112%;
  overflow: visible;
  pointer-events: none;
  transform: rotate(-14deg);
}
.orbit ellipse { fill: none; stroke: rgba(244, 240, 255, 0.14); stroke-width: 1; }
.orbit circle { fill: var(--flare); filter: drop-shadow(0 0 6px var(--flare)); }
.orbit--tilt { transform: rotate(18deg); }
.orbit--tilt circle { fill: var(--ice); filter: drop-shadow(0 0 6px var(--ice)); }

.world__lede { max-width: 42ch; margin: 0 0 32px; color: var(--mute); }

/* Canali musicali */
.channels { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.channel {
  --mx: 50%; --my: 50%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name go" "what go";
  align-items: center;
  column-gap: 16px;
  padding: 20px 8px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
}
.channel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(240px circle at var(--mx) var(--my), rgba(229, 121, 241, 0.22), transparent 70%),
    linear-gradient(90deg, rgba(90, 24, 101, 0.55), transparent 75%);
  opacity: 0;
  transform: translateX(-12%);
  transition: opacity 0.4s ease, transform 0.6s var(--ease);
}
.channel:hover::before,
.channel:focus-visible::before { opacity: 1; transform: none; }
.channel__name {
  grid-area: name;
  font: 700 clamp(1.6rem, 2.8vw, 2.2rem)/1.1 var(--display);
  letter-spacing: -0.03em;
  transition: transform 0.5s var(--ease);
}
.channel__what { grid-area: what; color: var(--mute); font-size: 0.98rem; transition: transform 0.5s var(--ease) 0.04s; }
.channel:hover .channel__name,
.channel:hover .channel__what { transform: translateX(10px); }
.channel__go {
  grid-area: go;
  width: 28px; height: 28px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.5s var(--ease), color 0.3s ease;
}
.channel:hover .channel__go { transform: translate(4px, -4px); color: var(--flare); }

/* Tracklist */
.tracklist { grid-column: 1 / -1; display: grid; gap: 40px; }
.tracklist__side {
  margin: 0 0 12px;
  font: 600 1.05rem/1 var(--display);
  color: var(--mute);
}
.tracklist__list { list-style: none; margin: 0; padding: 0; }

.track {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto 2.2rem;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  border: 0; border-top: 1px solid var(--line-soft);
  border-radius: 8px;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s ease;
}
.tracklist__list li:first-child .track { border-top-color: transparent; }
.track:hover { background: rgba(244, 240, 255, 0.04); }
.track.is-current { background: rgba(244, 240, 255, 0.06); border-top-color: transparent; }
li:has(.track.is-current) + li .track { border-top-color: transparent; }
.track__code { font: 600 1rem/1 var(--display); color: var(--mute); }
.track__title { font-size: 1.05rem; font-weight: 300; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track__feat { margin-left: 0.6em; font-size: 0.9rem; color: var(--mute); font-weight: 300; }
.track__feat:empty { display: none; }
.track__time { color: var(--mute); font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.track__state {
  display: inline-flex; align-items: flex-end; justify-content: center; gap: 2px;
  width: 32px; height: 32px; padding-bottom: 10px;
  border-radius: 50%;
  background: rgba(244, 240, 255, 0.06);
}
.track__state i { width: 3px; height: 3px; border-radius: 2px; background: var(--mute); }
.track.is-current .track__code { color: var(--flare); }
.track.is-current .track__title { font-weight: 500; }
.track.is-current .track__state { background: rgba(229, 121, 241, 0.15); }
.track.is-current .track__state i { background: var(--flare); height: 6px; }
.is-playing .track.is-current .track__state i { animation: eq 0.8s ease-in-out infinite alternate; }
.is-playing .track.is-current .track__state i:nth-child(2) { animation-delay: -0.4s; }
.is-playing .track.is-current .track__state i:nth-child(3) { animation-delay: -0.2s; }

/* Codice */
.world--code .world__body { order: 0; }
.world--code .world__visual { order: 1; }

.repos {
  grid-column: 1 / -1;
  order: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.repo {
  --mx: 50%; --my: 50%;
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--highlight);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.3s ease, transform 0.5s var(--ease);
}
.repo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(11, 57, 227, 0.4), rgba(159, 243, 255, 0.06) 45%, transparent 70%);
  opacity: 0; transition: opacity 0.35s ease;
}
.repo:hover { border-color: rgba(159, 243, 255, 0.35); background: rgba(244, 240, 255, 0.05); transform: translateY(-4px); }
.repo:hover::before { opacity: 1; }
.repo__name { font: 700 1.3rem/1.2 var(--display); letter-spacing: -0.02em; word-break: break-word; }
.repo__desc { color: var(--mute); font-size: 1rem; flex: 1; }
.repo__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 0.85rem; color: var(--mute); }
.repo__lang,
.repo__stars {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(159, 243, 255, 0.1);
  color: var(--ice);
}
.repo__lang i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--ice)); }
.repo__meta [hidden] { display: none; }

/* Lune sullo sfondo, come i pianeti spenti di Pangea */
.moon {
  position: absolute; z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(244, 240, 255, 0.10), rgba(90, 24, 101, 0.10) 45%, rgba(0, 0, 0, 0) 72%);
  box-shadow: inset -10px -14px 40px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}
.moon--a { width: 150px; height: 150px; left: -40px; top: 12%; }
.moon--b { width: 110px; height: 110px; right: 4%; top: 6%; }

/* Chiusura */
.outro {
  max-width: none;
  padding-bottom: 0;
  overflow: hidden;
  text-align: center;
}
.outro__title {
  margin: 0 0 32px;
  font: 900 clamp(2.8rem, 8vw, 7rem)/0.98 var(--display);
  letter-spacing: -0.035em;
  word-spacing: 0.06em;
}
.outro__copy { position: relative; z-index: 1; }
.outro__stage {
  mix-blend-mode: screen;
  width: min(1400px, 140vw);
  aspect-ratio: 16 / 9;
  margin: clamp(-40px, -2vw, 0px) auto 0;
  position: relative;
  left: 50%; translate: -50% 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 72%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 72%);
}
.outro__stage video { filter: brightness(calc(1 + var(--bass) * 0.5)); }

.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--wide);
  margin: -8vw auto 0;
  padding: 32px var(--gutter) 120px;
  position: relative;
  color: var(--mute); font-size: 0.95rem;
}
.foot p { margin: 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.foot__links a { text-decoration: none; transition: color 0.2s ease; }
.foot__links a:hover { color: var(--ink); }

/* ---------- Lettore ---------- */

.player {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30;
  display: flex; align-items: center; gap: 14px;
  width: min(640px, calc(100% - 32px));
  padding: 8px 10px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow:
    var(--highlight),
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 0 calc(var(--bass) * 40px) rgba(229, 121, 241, calc(var(--bass) * 0.5));
  translate: -50% 0;
  transition: translate 0.9s var(--ease) 1.2s;
}
.js:not(.is-loaded) .player { translate: -50% 140%; }

.player__btn {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  cursor: pointer;
}
.player__btn svg { width: 20px; height: 20px; fill: currentColor; }
.player__toggle { background: var(--ink); color: var(--void); }
.player__toggle:active { background: #dedae8; }
.player__toggle .i-pause,
.is-playing .player__toggle .i-play { display: none; }
.is-playing .player__toggle .i-pause { display: block; }
.player__next { background: transparent; color: var(--mute); }
.player__next:hover { color: var(--ink); }

.player__meta { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex: 1 1 auto; }
.player__code { font: 700 0.95rem/1 var(--display); color: var(--flare); }
.player__title { font-size: 0.98rem; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.player__bars { flex: none; width: 84px; height: 26px; }

.player__seek {
  flex: 0 1 130px; min-width: 60px;
  height: 20px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
  --p: 0%;
}
.player__seek::-webkit-slider-runnable-track {
  height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--flare), var(--ice)) 0 / var(--p) 100% no-repeat, var(--line);
}
.player__seek::-moz-range-track { height: 3px; border-radius: 3px; background: var(--line); }
.player__seek::-moz-range-progress { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--flare), var(--ice)); }
.player__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border-radius: 50%; background: var(--ink); }
.player__seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--ink); }

.player__time { flex: none; width: 3.2em; font-size: 0.85rem; color: var(--mute); font-variant-numeric: tabular-nums; }

/* ---------- Comparse allo scroll ---------- */

[data-reveal] { transition: opacity 1s ease, translate 1.2s var(--ease); }
.js [data-reveal]:not(.is-in) { opacity: 0; translate: 0 28px; }

[data-parallax] { will-change: transform; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about,
  .world { grid-template-columns: minmax(0, 1fr); }
  .about__visual { order: -1; }
  .world--music .world__visual { max-width: 420px; }
  .world--code .world__visual { order: -1; max-width: 420px; }
  /* I video hanno molto nero attorno al pianeta: lo recuperiamo per non lasciare vuoti. */
  .world__visual { margin-block: -9%; }
  .about__visual { margin-block: -6%; }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .nav { gap: 12px; padding-block: 12px; }
  .orbit { inset: 0; width: 100%; height: 100%; }
  .world__lede { margin-bottom: 24px; }
  .channel { padding: 18px 4px; }
  .foot { justify-content: center; text-align: center; }
  .foot__links a { display: inline-block; padding: 10px 4px; }
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 0.95rem; padding-block: 10px; }
  .nav__sound { display: none; }
  .hero__stage { top: 34svh; height: 66svh; }
  .hero__lede { margin-top: 16px; }
  .player { gap: 10px; }
  .player__bars,
  .player__time { display: none; }
  .player__seek { flex-basis: 80px; }
  .track { grid-template-columns: 2.6rem minmax(0, 1fr) auto; }
  /* Su telefono il titolo va a capo: la versione (Radio Edit, Acoustic…) è ciò che distingue i brani. */
  .track__title { white-space: normal; line-height: 1.3; }
  .track__feat { display: block; margin: 2px 0 0; }
  .track__state { display: none; }
  .foot { padding-bottom: 110px; }
}

@media (hover: none) {
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
}
