:root {
  --notte: #020a19;        /* the night at the bottom of the sky */
  --orizzonte: #0d2463;    /* the sky just above the hills */
  --cubo: #2f7bff;         /* the cube's blue light */
  --chiaro: #9fd0ff;       /* the brightest light on the cube and the water */
  --testo: #d5e0ff;        /* the words */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--notte);
  color: var(--testo);
  font-family: 'Hanken Grotesk Variable', system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.palco {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: radial-gradient(120% 70% at 50% 62%, var(--orizzonte) 0%, var(--notte) 62%);
}

.tela { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* a soft shade under the words, so they read over the streak of light */
.palco::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(to top, color-mix(in srgb, var(--notte) 78%, transparent), transparent);
  pointer-events: none;
}
.racconto, .testa { z-index: 1; }

.testa {
  position: absolute;
  top: clamp(14px, 3.4vh, 28px);
  left: clamp(16px, 3.4vw, 40px);
  right: clamp(16px, 3.4vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  opacity: 0;
}

.marchio {
  font-weight: 760;
  font-size: clamp(13px, 1.5vw, 17px);
  letter-spacing: 0.32em;
}

.sezione {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.55;
}

.racconto {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 6vh, 64px);
  width: min(92vw, 520px);
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.titolo {
  font-weight: 720;
  font-size: clamp(17px, min(3.4vw, 4.6vh), 34px);
  line-height: 1.02;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: clamp(6px, 1.4vh, 14px);
}

.titolo .c { opacity: 0; }

.riga {
  font-weight: 300;
  font-size: clamp(11px, min(1.5vw, 2.1vh), 15px);
  line-height: 1.55;
  max-width: 34em;
  margin: 0 auto;
  opacity: 0;
  color: color-mix(in srgb, var(--testo) 62%, transparent);
}

.ripiego { display: none; position: absolute; inset: 0; }
.senza-webgl .ripiego { display: block; }
.ripiego-cubo {
  position: absolute;
  left: 50%;
  top: 38%;
  width: min(22vw, 22vh);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: linear-gradient(160deg, var(--chiaro), var(--cubo));
  box-shadow: 0 0 60px 10px color-mix(in srgb, var(--cubo) 60%, transparent);
  border: 1px solid #fff;
}
