/* The club numbers that roll into place as you scroll. Colours in :root (the Playground palette). */
:root {
  --fondo: #01060e;
  --avorio: #dcd6c7;
  --tenue: #8f8b80;
  --linea: #2a2e33;
  --accento: #5a87c6;
  --bagliore: #00408a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--fondo); }
body {
  background: var(--fondo);
  color: var(--avorio);
  font-family: 'Inter Variable', Inter, system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.filtri { position: absolute; width: 0; height: 0; overflow: hidden; }

/* a faint vignette over everything, like the memorial pages it comes from */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(200, 200, 255, 0.05) 0%, rgba(200, 200, 255, 0.035) 22%, transparent 66%);
}

.occhiello,
.etichetta {
  font-size: clamp(10px, 0.6vw + 0.9vh, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tenue);
  font-weight: 400;
}

/* ---------- the opening: two lines of the title that swap sizes ---------- */
.apertura { position: relative; height: 140vh; }
.apertura__palco {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vh, 28px);
  padding: 0 clamp(16px, 5vw, 64px);
  overflow: hidden;
  text-align: center;
}
.apertura__palco::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(120vw, 1100px);
  height: min(80vh, 640px);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--bagliore), transparent);
  opacity: 0.24;
  pointer-events: none;
}
.titolo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Newsreader Variable', Georgia, serif;
  font-weight: 300;
  font-size: min(9.5vw, 11vh, 112px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.titolo__riga { display: block; white-space: nowrap; will-change: transform; }
.titolo__riga:last-child { font-style: italic; }

.fiume {
  position: relative;
  width: min(64vw, 520px);
  height: clamp(14px, 3vh, 24px);
  overflow: visible;
}
.fiume path { fill: none; stroke: var(--accento); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.85; }

.invito {
  position: absolute;
  bottom: clamp(14px, 4vh, 36px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(10px, 0.6vw + 0.9vh, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tenue);
}
.invito svg { width: 9px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- the numbers: a sticky stage, one number at a time in the same place ---------- */
.numeri { position: relative; height: 420vh; }
.numeri__palco {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  display: grid;
  place-items: center;
  padding: 0 clamp(16px, 5vw, 64px);
  overflow: hidden;
}
.cifra__corpo {
  grid-area: 1 / 1;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(100%, 620px);
}
.etichetta { margin-bottom: clamp(4px, 1.4vh, 14px); }

.numero {
  display: flex;
  font-family: 'Newsreader Variable', Georgia, serif;
  font-weight: 300;
  font-size: min(27vw, 25vh, 230px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums tabular-nums;
  cursor: default;
  user-select: none;
}
/* the window of a column: one figure tall, faded at the top and bottom edges */
.finestra {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.pila { display: flex; flex-direction: column; will-change: transform; }
.pila span { display: block; height: 1em; text-align: center; }
.fisso { display: inline-block; height: 1em; color: var(--tenue); }

.base {
  position: relative;
  width: 100%;
  height: 10px;
  margin: clamp(4px, 1.2vh, 12px) 0 clamp(8px, 2.2vh, 22px);
}
.base__linea {
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  height: 1px;
  background: var(--linea);
  transform-origin: 0 50%;
}
.base__linea::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--accento), transparent 70%);
  opacity: 0.7;
}
.base__tacca {
  position: absolute;
  right: 0;
  top: 0;
  width: 1px;
  height: 9px;
  background: var(--accento);
}

.didascalia {
  max-width: 34ch;
  font-size: clamp(13px, 0.55vw + 1.3vh, 19px);
  line-height: 1.45;
  color: var(--avorio);
}
[data-parole] .parola { display: inline-block; white-space: pre; will-change: transform, opacity, filter; }

/* ---------- the close ---------- */
.chiusura {
  height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.4vh, 22px);
  padding: 0 clamp(16px, 5vw, 64px);
  text-align: center;
}
.chiusura__frase {
  font-family: 'Newsreader Variable', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: min(8vw, 8.5vh, 84px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
