/* Smooth Criminals — esperienza cinematografica su nero */

:root {
  --ink: #000000;
  --ink-2: #0b0b0b;
  --paper: #f2ede4;
  /* colori solidi (non rgba): contrasto calcolabile e ≥ 4.5:1 sul nero per WAVE */
  --muted: #8f8b86;
  --dim: #96938d;
  --line: rgba(242, 237, 228, 0.14);
  --gold: #dcb878;
  --gold-hot: #ffe2a8;
  --sans: "Avenir Next LT W01 Regular", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --sans-thin: "Avenir Next LT W01 Thin", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --sans-bold: "Avenir Next LT W01 Bold", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --serif: "Bodoni Moda", "Times New Roman", serif;
  /* Bodoni Moda: opsz basso = filetti più spessi (96 = finissimi); peso leggermente pieno per reggere su nero/video */
  --serif-weight: 500;
  --serif-opsz: 28;
  --gutter: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color: var(--paper); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* testo decorativo scritto nel ::before: non è un nodo di testo, quindi non entra nel controllo del contrasto */
.ghost-text::before { content: attr(data-text); }

/* Accessibilità: salto al contenuto e fuoco visibile da tastiera */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200; padding: 12px 20px; border-radius: 100px;
  background: var(--paper); color: var(--ink); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
h2.section-label { font-weight: 400; }
.serif { font-family: var(--serif); font-weight: var(--serif-weight); letter-spacing: -0.01em; }
/* Serif: ottica fissata + smoothing di sistema (antialiased su macOS assottiglia i filetti) */
.serif, .hero__title {
  font-variation-settings: "opsz" var(--serif-opsz);
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}
.label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.section-label span { color: var(--gold); margin-right: 0.8em; }
.wrap { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter); }

/* Grana pellicola */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); }
}

/* Loader: intro da concerto (titoli veloci tra due bande cinema), poi la locandina con l'invito all'audio */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--ink);
  display: grid; place-items: center; clip-path: inset(0 0 0 0); overflow: hidden;
}
.intro { position: absolute; inset: 0; pointer-events: none; }
/* fumo di palco: bagliore caldo dal basso e dall'alto */
.intro__haze {
  position: absolute; inset: 0; opacity: 0;
  background:
    radial-gradient(60% 38% at 50% 104%, rgba(220, 184, 120, 0.16), transparent 70%),
    radial-gradient(42% 30% at 50% -6%, rgba(255, 236, 200, 0.1), transparent 70%);
}
/* occhio di bue: cono dall'alto */
.intro__beam {
  position: absolute; left: 50%; top: -4%; width: 220vmax; height: 120%; transform: translateX(-50%);
  opacity: 0; filter: blur(10px); mix-blend-mode: screen;
  background: conic-gradient(at 50% 0%, transparent 0deg 169deg, rgba(255, 236, 200, 0.07) 174deg,
    rgba(255, 240, 214, 0.16) 180deg, rgba(255, 236, 200, 0.07) 186deg, transparent 191deg 360deg);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 92%);
}
.intro__stage { position: absolute; inset: 0; }
.intro__shot { position: absolute; left: 50%; top: 50%; translate: -50% -50%; margin: 0; text-align: center; visibility: hidden; }
.intro__mj {
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--sans-bold); text-transform: uppercase; color: var(--paper);
  font-size: min(18vw, 30vh); line-height: 0.82; letter-spacing: -0.015em;
}
.intro__mj span { display: block; white-space: nowrap; }
.intro__mj .char { will-change: transform, opacity, filter; }
.intro__tribute { display: flex; flex-direction: column; align-items: center; }
.intro__tribute-pre { color: var(--gold); font-style: italic; font-size: clamp(30px, 4.4vw, 64px); line-height: 1; margin-bottom: -0.12em; }
.intro__tribute-word {
  position: relative; display: block; white-space: nowrap;
  font-family: var(--sans-bold); text-transform: uppercase; line-height: 0.9; letter-spacing: 0.06em;
  font-size: min(13vw, 24vh);
}
/* contorno: nel ::before, così il testo trasparente non conta come errore di contrasto */
.intro__tribute-word::before { content: attr(data-text); color: transparent; -webkit-text-stroke: 1px rgba(242, 237, 228, 0.6); }
.intro__tribute-fill {
  position: absolute; left: 0; top: 0; color: var(--gold); -webkit-text-stroke: 0;
  clip-path: inset(0 100% 0 0);
}
/* bande cinema: partono chiuse (una linea al centro) e si aprono */
.intro__bar {
  position: absolute; left: 0; right: 0; height: 50%; background: var(--ink); z-index: 1;
  display: flex; justify-content: space-between; padding: 0 var(--gutter);
  --line: 0;
}
.intro__bar--top { top: 0; align-items: flex-end; padding-bottom: calc(6vh - 6px); }
.intro__bar--bottom { bottom: 0; align-items: flex-start; padding-top: calc(6vh - 6px); }
.intro__bar::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: rgba(242, 237, 228, 0.22);
  transform: scaleX(var(--line));
}
.intro__bar--top::after { bottom: 0; }
.intro__bar--bottom::after { top: 0; }
.intro__bar .label { opacity: 0; visibility: hidden; white-space: nowrap; }
.intro__tc { font-variant-numeric: tabular-nums; }
.intro__right { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); margin-left: auto; }
/* telefono: nella banda in basso restano solo il caricamento e lo skip */
@media (max-width: 480px) {
  .intro__bar--bottom > .label:first-child { display: none; }
}
.intro__skip {
  pointer-events: auto; color: var(--paper); padding: 8px 0; margin: -8px 0;
  border-bottom: 1px solid rgba(242, 237, 228, 0.3); transition: color 0.4s, border-color 0.4s;
}
.intro__skip:hover, .intro__skip:focus-visible { color: var(--gold); border-color: var(--gold); }
.intro__flash {
  position: absolute; inset: 0; z-index: 2; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(70% 60% at 50% 50%, rgba(255, 244, 222, 0.9), rgba(220, 184, 120, 0.35) 60%, transparent);
}

.loader__inner { position: relative; z-index: 3; width: min(420px, calc(100vw - 32px)); text-align: center; }
/* flex + center: se il titolo è più largo del contenitore deborda in modo simmetrico (con text-align deborderebbe solo a destra) */
.loader__name { position: relative; display: flex; justify-content: center; font-size: clamp(42px, 7vw, 76px); line-height: 1; margin: 18px 0 22px; white-space: nowrap; }
.loader__name em { color: var(--gold); }
/* "Smooth Criminals" è largo ~8 em: sotto i 420 px scala con lo schermo invece di debordare */
@media (max-width: 420px) { .loader__name { font-size: 11.2vw; } }
.loader__s { display: inline-block; }
.loader__song { position: absolute; left: 50%; top: 0; white-space: nowrap; visibility: hidden; }
.loader__credit { color: var(--dim); }
.loader__credit .serif { font-size: 22px; letter-spacing: 0; text-transform: none; color: var(--paper); margin-left: 0.35em; font-style: italic; }
.js .loader__kicker, .js .loader__credit, .js .loader__name-text { visibility: hidden; }
.loader.is-ready { cursor: pointer; }
/* Ingresso: invito ad accendere l'audio (un click ovunque entra con l'audio) */
.gate { position: absolute; left: 50%; top: calc(100% + 44px); width: max-content; max-width: calc(100vw - 32px); transform: translateX(-50%); display: grid; justify-items: center; gap: 18px; }
.gate[hidden] { display: none; }
.gate__on {
  display: inline-flex; align-items: center; gap: 14px; padding: 18px 30px;
  border: 1px solid rgba(220, 184, 120, 0.55); border-radius: 100px; color: var(--paper);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  box-shadow: 0 0 40px rgba(220, 184, 120, 0.12); transition: background-color 0.5s var(--ease), color 0.5s, border-color 0.5s;
}
.gate__on:hover, .gate__on:focus-visible { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.gate__on .sound__wave { color: var(--gold); }
.gate__on:hover .sound__wave, .gate__on:focus-visible .sound__wave { color: var(--ink); }
.gate__off { color: var(--dim); padding: 6px 4px; border-bottom: 1px solid transparent; transition: color 0.4s, border-color 0.4s; }
.gate__off:hover, .gate__off:focus-visible { color: var(--paper); border-color: var(--line); }

/* Cursore */
.cursor { position: fixed; left: 0; top: 0; z-index: 101; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 6px; height: 6px; background: var(--paper); mix-blend-mode: difference; }
.cursor__ring {
  width: 38px; height: 38px; border: 1px solid rgba(242, 237, 228, 0.35);
  transition: width 0.5s var(--ease), height 0.5s var(--ease), background-color 0.5s var(--ease), border-color 0.5s;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; border-color: var(--gold); }
/* progress della scena moonwalk: il cerchio del cursore si riempie con lo scroll */
.cursor__progress {
  position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px);
  transform: rotate(-90deg); overflow: visible; opacity: 0; transition: opacity 0.6s var(--ease);
}
.cursor__progress circle { fill: none; stroke: var(--gold); stroke-width: 1.05; stroke-dasharray: 1; stroke-dashoffset: 1; }
.cursor.is-progress .cursor__ring { width: 58px; height: 58px; border-color: rgba(242, 237, 228, 0.16); }
.cursor.is-progress .cursor__progress { opacity: 1; }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; background: rgba(242, 237, 228, 0.92); border-color: transparent; }
.cursor__label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
  opacity: 0; transition: opacity 0.3s;
}
.cursor__label::before { content: attr(data-label); }
.cursor.is-label .cursor__label { opacity: 1; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* Navigazione */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 22px var(--gutter);
  mix-blend-mode: difference;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
/* Logo fisso a colori, sopra l'header */
.brand {
  position: fixed; top: 0; left: var(--gutter); z-index: 81;
  height: 84px; display: flex; align-items: center; gap: 12px;
  color: var(--paper); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.brand img { width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; text-transform: uppercase; }
.brand__name { font-family: var(--sans-bold); font-size: 11px; letter-spacing: 0.24em; }
.brand__sub { margin-top: 4px; font-size: 10px; letter-spacing: 0.22em; color: var(--muted); }
.nav__links { grid-column: 2; display: flex; gap: 34px; }
.nav__cta { white-space: nowrap; }
.nav__right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 22px; }
.nav__sound { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; padding: 8px 0; }
.nav__links a, .nav__cta { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; position: relative; }
/* voci del menu: un filetto condiviso che scivola fluido sotto la voce in hover o attiva — js/nav-indicator.js */
.nav__links { position: relative; }
.nav__indicator {
  position: absolute; left: 0; bottom: -6px; width: 1px; height: 1px; background: currentColor;
  transform-origin: 0 50%; transform: scaleX(0); opacity: 0; pointer-events: none; will-change: transform;
}
.nav__cta { padding: 12px 20px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 100px; }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta { padding: 10px 16px; }
  .nav__right { gap: 16px; }
  .nav__sound-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* telefono: il logo con il nome e "Book the show" intero non stanno sulla stessa riga → "Book" (il resto resta per gli screen reader) */
@media (max-width: 480px) {
  .nav__cta-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 28px;
  padding: 18px 30px; border: 1px solid var(--line); border-radius: 100px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; position: relative; overflow: hidden;
  transition: border-color 0.5s, color 0.5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--paper); border-radius: inherit;
  transform: translateY(101%); transition: transform 0.6s var(--ease);
}
.btn span { position: relative; }
.btn:hover, .btn:focus-visible { color: var(--ink); border-color: var(--paper); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }

/* ───────── 00 Hero ───────── */
.hero { position: relative; height: 220vh; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Locandina: due colonne speculari della stessa altezza, la figura al centro.
   La colonna della firma si distribuisce tra le righe del titolo: "Starring" in alto come il kicker,
   la riga descrittiva in basso sul piede di "Criminals", la firma nel mezzo */
.hero__poster {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(96px, 15vh, 150px);
  display: flex; justify-content: space-between; align-items: stretch; pointer-events: none;
}
.hero__kicker { margin: 0 0 22px; color: var(--muted); }
.hero__title {
  margin: 0; font-family: var(--serif); font-weight: var(--serif-weight);
  font-size: clamp(48px, 6.2vw, 120px); line-height: 0.9; letter-spacing: -0.02em;
  color: #dfdad2;
}
.hero__sticky::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 45%, rgba(0, 0, 0, 0.85) 100%);
}
.hero__word { display: block; white-space: nowrap; }
.hero__word--i { font-style: italic; padding-left: 0.55em; }
.hero__word .char { display: inline-block; will-change: transform, opacity, filter; }
.hero__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: flex; justify-content: center;
}
/* invito centrale: lineetta verticale che scorre verso il basso, frase che alterna "Move…" e "Scroll…" (main.js) */
.hero__hint { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero__hint-line { width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
.hero__hint-line::after { content: ""; position: absolute; inset: 0; background: var(--paper); animation: scrollline 2.2s var(--ease) infinite; }
@keyframes scrollline { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.hero__hint-text { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--paper); white-space: nowrap; }
.hero__hint-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
/* Firma di Roy Paladini */
.signature {
  position: relative; width: clamp(270px, 27vw, 510px); text-align: right;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end;
}
/* rivelata da sinistra a destra: la maschera è un gradiente largo 2,5 volte la firma, main.js ne sposta la posizione (--sig da 100 a 0) */
.signature__svg {
  --sig: 0;
  position: relative; display: block; width: 100%; height: auto; overflow: visible; margin: 2px 0 6px; transform: rotate(-3deg);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 60%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 60%, transparent 100%);
  -webkit-mask-size: 250% 100%; mask-size: 250% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: calc(var(--sig) * 1%) 0; mask-position: calc(var(--sig) * 1%) 0;
}
/* bagliore dorato: uno sfondo statico che appare in dissolvenza, niente filtri ricalcolati a ogni fotogramma */
.signature::before {
  content: ""; position: absolute; left: -8%; right: -8%; top: 10%; bottom: 10%; z-index: -1;
  background: radial-gradient(50% 50% at 55% 55%, rgba(233, 196, 120, 0.13), transparent 70%);
  opacity: var(--glow, 1);
}
/* "Starring" parte dall'inizio della firma, la riga sotto chiude a destra */
.signature__kicker { align-self: flex-start; color: var(--gold); letter-spacing: 0.42em; margin: 0; }
.signature__role { color: var(--muted); margin: 0; white-space: nowrap; }

@media (max-width: 860px) {
  /* su mobile le due colonne si separano: titolo in alto, firma centrata in basso */
  .hero__poster { display: contents; }
  .hero__billing, .signature { position: absolute; z-index: 2; pointer-events: none; }
  .hero__billing { left: var(--gutter); top: 92px; }
  /* su mobile il nome della band c'è già nel logo dell'header */
  .hero__kicker { display: none; }
  .hero__title { font-size: 13vw; }
  .signature { left: 50%; bottom: 96px; width: 74vw; transform: translateX(-50%); text-align: center; align-items: center; }
  .signature__role { font-size: 10px; letter-spacing: 0.18em; white-space: normal; }
  .signature__kicker { align-self: center; }
  .hero__hint { gap: 10px; }
  .hero__hint-line { height: 28px; }
}
@media (max-width: 400px) {
  .hero__hint-text { letter-spacing: 0.16em; }
}

/* ───────── 01 Band ───────── */
.band { position: relative; padding: 18vh 0 12vh; }
.band__statement {
  font-family: var(--sans-thin); font-size: clamp(30px, 4.4vw, 76px); line-height: 1.08; letter-spacing: -0.02em;
  margin: 6vh 0 12vh; max-width: 16em;
}
/* spenta con la luminosità e non con l'opacità (vedi main.js) */
.band__statement .word { display: inline-block; filter: brightness(0.12); }
.band__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8vw; align-items: start; }
.band__copy { font-size: 17px; color: var(--muted); max-width: 30em; }
.band__copy p { margin: 0 0 1.2em; }
.band__copy em { font-size: 1.35em; color: var(--paper); }
.band__facts { margin: 0; }
.fact {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 26px 0; position: relative;
}
.fact::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line);
  transform: scaleX(var(--line-s, 0)); transform-origin: left;
}
.fact dd { margin: 0; font-size: clamp(32px, 3.6vw, 64px); line-height: 1; text-align: right; }
.fact dd em { color: var(--gold); }
@media (max-width: 860px) {
  .band__grid { grid-template-columns: 1fr; }
  .fact { flex-direction: column; align-items: flex-start; gap: 10px; }
  .fact dd { text-align: left; }
}
.marquee { margin-top: 16vh; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 3.2vh 0; }
.marquee__track { display: flex; align-items: center; gap: 0.5em; width: max-content; white-space: nowrap; font-family: var(--sans-thin); font-size: clamp(36px, 6vw, 110px); line-height: 1.1; text-transform: uppercase; letter-spacing: -0.01em; }
.marquee__track .serif { text-transform: none; font-style: italic; color: var(--gold); }
.marquee__track i { font-style: normal; font-size: 0.35em; color: var(--muted); padding: 0 0.6em; }

/* ───────── 02 Promo ───────── */
.promo { position: relative; height: 420vh; }
.promo__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.promo__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); filter: saturate(0.9) contrast(1.08); }
.promo__dots {
  position: absolute; inset: 0; pointer-events: none;
  /* più fine e più leggera di prima: la grana resta, il video si vede di più */
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.16) 0.5px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.45;
}
.no-dots .promo__dots { display: none; }
/* il div serve solo a impaginare LIVE: la maschera vera è il canvas disegnato da JS */
.promo__mask {
  position: absolute; inset: 0; display: grid; place-items: center; visibility: hidden; pointer-events: none;
}
.promo__mask-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.promo__word { font-family: var(--sans-bold); font-size: 34vw; line-height: 0.8; letter-spacing: -0.06em; padding-top: 0.06em; }
.promo__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.75) 100%); opacity: 0; }
.promo__bars span { position: absolute; left: 0; right: 0; height: 9vh; background: #000; z-index: 2; }
.promo__bars span:first-child { top: 0; transform: translateY(-100%); }
.promo__bars span:last-child { bottom: 0; transform: translateY(100%); }
.promo__ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.promo__label { position: absolute; top: 108px; left: var(--gutter); }
.promo__hud {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(4.5vh - 10px);
  display: grid; grid-template-columns: 1fr auto; align-items: center; opacity: 0; visibility: hidden; pointer-events: auto;
}
.promo__hud .label { color: #a9a6a0; }
.promo__time { justify-self: end; font-variant-numeric: tabular-nums; }
/* icona dell'audio: tre fili d'oscilloscopio intrecciati, disegnati da js/sound-wave.js */
.sound__wave { display: inline-block; width: 32px; height: 14px; flex: none; }
.sound__wave svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sound__wave path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) {
  .promo__hud > :first-child { display: none; }
}

/* ───────── 03 On tour ───────── */
.manifesto { position: relative; height: 450vh; }
.manifesto__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; perspective: 900px; }
.manifesto__label { position: absolute; top: 108px; left: var(--gutter); z-index: 2; }
.manifesto__text {
  grid-area: 1 / 1;
  margin: 0; text-align: center; font-size: clamp(44px, 8.2vw, 156px); line-height: 0.96; letter-spacing: -0.025em;
  transform-style: preserve-3d; padding: 0 var(--gutter); font-weight: 400;
}
.m-line { display: block; }
.manifesto__text .word { display: inline-block; white-space: nowrap; }
.manifesto__text .char, .country .char { display: inline-block; transform-origin: 50% 80%; will-change: transform, opacity, filter; }

/* i paesi: uno alla volta, a tutto schermo */
.countries { grid-area: 1 / 1; list-style: none; margin: 0; padding: 0; width: 100%; height: 100%; position: relative; perspective: 700px; }
.country { position: absolute; inset: 0; display: grid; place-items: center; visibility: hidden; transform-style: preserve-3d; }
.country > span { grid-area: 1 / 1; white-space: nowrap; line-height: 0.9; letter-spacing: -0.04em; font-size: min(16vw, 30vh); }
.country__name { color: var(--paper); position: relative; z-index: 1; }
.country--home .country__name { color: var(--gold); filter: drop-shadow(0 0 30px rgba(255, 210, 140, 0.45)); }
.country__ghost { color: transparent; -webkit-text-stroke: 1px rgba(220, 184, 120, 0.7); will-change: transform, opacity; }
.countries__hud {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 6vh, 56px); z-index: 2;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; opacity: 0; visibility: hidden;
}
.countries__hud .label { margin: 0; }
.countries__num { color: var(--gold); }
.countries__ticks { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.countries__ticks i { height: 1px; background: var(--line); position: relative; overflow: hidden; }
.countries__ticks i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: left; }
.manifesto__flash {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(60% 50% at 50% 50%, rgba(255, 220, 160, 0.22), transparent 70%);
}
@media (max-width: 860px) {
  /* il nome più lungo (Luxembourg, ~6,6 em) deve stare nello schermo con i margini */
  .country > span { font-size: min(13.4vw, 30vh); }
  .countries__hud { grid-template-columns: auto 1fr; }
  .countries__hud > :last-child { display: none; }
}
.manifesto__text .gold { color: var(--gold); }
/* il bagliore sta sulla parola, non sulle lettere: Safari ritaglia il text-shadow di un elemento con filter
   (le lettere hanno il blur di GSAP) al suo riquadro, e ogni lettera finiva in un rettangolo grigio */
.manifesto__text .gold .word { filter: drop-shadow(0 0 calc(var(--glow, 0) * 18px) rgba(255, 210, 140, calc(var(--glow, 0) * 0.85))); }

/* ───────── 04 Moonwalk ───────── */
.moonwalk { position: relative; height: 520vh; }
.moonwalk__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: radial-gradient(120% 70% at 50% 92%, #14110c 0%, var(--ink) 60%); }
.moonwalk__gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.moonwalk__label { position: absolute; top: 108px; left: var(--gutter); }
/* Didascalie a sinistra su 3 righe: il ballerino entra da ~52% della larghezza, il testo resta sotto il 45% */
.moonwalk__captions { position: absolute; left: var(--gutter); right: var(--gutter); top: max(22vh, 172px); list-style: none; margin: 0; padding: 0; }
.moonwalk__cap { position: absolute; left: 0; margin: 0; opacity: 0; visibility: hidden; }
/* righe composte a mano nell'HTML (mai una parola sola): ogni span è una riga che non si spezza */
.moonwalk__cap.serif { font-size: clamp(34px, 4.6vw, 92px); line-height: 0.98; }
.moonwalk__cap.serif > span { display: block; white-space: nowrap; }
.moonwalk__cap.serif em { color: var(--gold); }
.moonwalk__dial { position: absolute; right: var(--gutter); bottom: 32px; z-index: 2; width: 44px; height: 44px; }
.has-cursor .moonwalk__dial { display: none; }
.moonwalk__dial svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.moonwalk__dial circle { fill: none; stroke-width: 0.9; }
.moonwalk__dial-track { stroke: var(--line); }
.moonwalk__dial-fill { stroke: var(--gold); stroke-dasharray: 1; stroke-dashoffset: 1; }

/* ───────── 05 Gallery ───────── */
.gallery { position: relative; height: 1080vh; }
.gallery__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 1100px; perspective-origin: 50% 50%; }
.gallery__label { position: absolute; top: 108px; left: var(--gutter); z-index: 2; }
.gallery__title {
  position: absolute; inset: 0; display: grid; place-items: center; margin: 0; pointer-events: none;
  font-size: clamp(80px, 17vw, 320px); line-height: 1; letter-spacing: -0.03em; color: rgba(242, 237, 228, 0.07);
}
.gallery__title em { color: rgba(220, 184, 120, 0.16); margin-left: 0.25em; }
.gallery__stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.frame {
  position: absolute; left: 50%; top: 50%; margin: 0; width: clamp(240px, 34vw, 620px); aspect-ratio: 3 / 2;
  transform-style: preserve-3d; will-change: transform, opacity; cursor: pointer; opacity: 0; visibility: hidden;
}
.frame__open { display: block; width: 100%; height: 100%; padding: 0; }
.frame__open:focus-visible { outline-offset: 6px; }
.frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.35); }
/* il colpo di luce: un bagliore caldo che esplode quando la foto entra a fuoco */
.frame::before {
  content: ""; position: absolute; inset: -1px; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: var(--flare, 0);
  background: radial-gradient(85% 95% at 50% 38%, rgba(255, 228, 175, 0.9), rgba(255, 196, 120, 0.28) 46%, transparent 78%);
}
/* mobile / poca potenza: foto a colori senza filtri, niente bagliore in fusione (vedi setupGallery) */
.is-lite .frame img { filter: none; }
.is-lite .frame::before { content: none; }
.frame::after { content: attr(data-num); position: absolute; left: 0; bottom: -26px; font-size: 10px; letter-spacing: 0.22em; color: var(--muted); }
/* "Live recording": compare con l'audio acceso, in alto a destra; la linea d'onda è la traccia live */
.live-now { position: absolute; top: 100px; right: var(--gutter); z-index: 2; width: 220px; text-align: right; visibility: hidden; opacity: 0; pointer-events: none; }
.live-now__top { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 0; color: var(--dim); }
.live-now__tc { font-variant-numeric: tabular-nums; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); }
.live-now__dot { position: relative; width: 5px; height: 5px; border-radius: 50%; background: #e2453c; box-shadow: 0 0 8px rgba(226, 69, 60, 0.8); }
.live-now__dot i { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(226, 69, 60, 0.7); opacity: 0; }
.live-now__who { margin: 10px 0 0; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.05; letter-spacing: -0.01em; }
.live-now__who em { color: var(--gold); }
.live-now .char { display: inline-block; will-change: transform, filter; }
.live-now__wave { display: block; width: 100%; height: 30px; margin-top: 12px; }
@media (max-width: 860px) { .live-now { top: auto; bottom: 64px; right: auto; left: var(--gutter); text-align: left; } .live-now__top { justify-content: flex-start; } }
.gallery__hud { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; justify-content: space-between; z-index: 2; }
.gallery__hud .label:first-child { color: var(--paper); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .frame { width: 72vw; } .gallery__hint { display: none; } }

.lightbox { position: fixed; inset: 0; z-index: 85; background: rgba(0, 0, 0, 0.94); display: grid; place-items: center; opacity: 0; visibility: hidden; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 88vw; max-height: 82vh; object-fit: contain; }
.lightbox__close { position: absolute; top: 28px; right: var(--gutter); color: var(--paper); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--paper); padding: 20px; }
.lightbox__nav--prev { left: calc(var(--gutter) - 20px); }
.lightbox__nav--next { right: calc(var(--gutter) - 20px); }

/* ───────── 06 The Show ───────── */
.show { position: relative; padding: 22vh 0 0; }
.show__title { font-weight: 400; font-size: clamp(40px, 6.2vw, 120px); line-height: 0.95; letter-spacing: -0.02em; margin: 6vh 0 10vh; max-width: 11em; }
.show__title em { color: var(--gold); }
.show__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8vw; align-items: start; }
.show__copy { font-size: 17px; color: var(--muted); max-width: 30em; }
.show__copy p { margin: 0 0 1.2em; }
.show__copy strong { font-weight: 400; color: var(--paper); }
.show__formats { list-style: none; margin: 0; padding: 0; }
.show__item { border-top: 1px solid var(--line); padding: 24px 0 28px; }
.show__item h4 { font-weight: 400; color: var(--gold); margin-bottom: 12px; }
.show__item p { margin: 0; font-size: clamp(22px, 2vw, 32px); line-height: 1.2; }
@media (max-width: 860px) { .show__grid { grid-template-columns: 1fr; } }

/* ───────── 07 Contact ───────── */
.contact { position: relative; padding: 22vh 0 0; background: linear-gradient(180deg, var(--ink) 0%, #0c0a07 100%); }
.contact__title { font-weight: 400; font-size: clamp(54px, 10vw, 200px); line-height: 0.9; letter-spacing: -0.03em; margin: 6vh 0 8vh; max-width: 9em; }
.contact__title em { color: var(--gold); }
/* maschera righe: spazio extra per i discendenti (g, y) e per l'inclinazione del corsivo, compensato dal margine negativo */
.contact__title .line-mask { display: block; overflow: hidden; padding: 0.06em 0.12em 0.24em 0; margin: -0.06em -0.12em -0.24em 0; }
.contact__cta { margin-top: 0; padding: 24px 40px; font-size: 13px; }
.contact__cta-arrow { transition: transform 0.6s var(--ease); }
.contact__cta:hover .contact__cta-arrow, .contact__cta:focus-visible .contact__cta-arrow { transform: translate(3px, -3px); }
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 14vh; padding-bottom: 14vh; }
.contact__card { border-top: 1px solid var(--line); padding-top: 22px; }
.contact__tel { display: inline-block; margin-top: 12px; font-size: clamp(20px, 1.8vw, 28px); transition: color 0.4s; }
.contact__tel:hover, .contact__tel:focus-visible { color: var(--gold); }
.contact__social { display: flex; flex-wrap: wrap; column-gap: 28px; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }
.footer { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px var(--gutter); border-top: 1px solid var(--line); }
.footer__credits a { transition: color 0.4s; }
.footer__credits a:hover, .footer__credits a:focus-visible { color: var(--gold); }

/* Senza WebGL: la foto al posto delle particelle */
.no-webgl .hero__gl { display: none; }
.no-webgl .hero__sticky { background: url("../assets/img/mj-photo.webp") center bottom / contain no-repeat; }

/* Senza animazioni */
@media (prefers-reduced-motion: reduce) {
  .grain, .hero__hint-dot, .hero__hint-line::after { animation: none; }
}
