:root {
  --cielo: #8fdde6;        /* the sky outside the tunnel */
  --cielo-alto: #45b8cc;   /* the top of the sky */
  --tunnel: #0f5d6b;       /* the walls inside the tunnel */
  --piastrelle: #167586;   /* the tiles on the tunnel walls */
  --asfalto: #1d3a44;      /* the road */
  --auto: #e8412c;         /* the car */
  --rosa: #ff7eb6;         /* the foam and the brushes */
  --giallo: #ffd23f;       /* the signs, the stripes and the brushes */
  --blu: #3d5afe;          /* the water and the brushes */
  --schiuma: #fff4fa;      /* the foam bubbles */
  --fango: #6e4a2b;        /* the mud on the car */
  --inchiostro: #0b2530;   /* the text */
  --carta: #fffaf2;        /* the light text and the windows' shine */
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--tunnel);
  color: var(--inchiostro);
  font-family: 'Bricolage Grotesque Variable', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

p, h1, h2 { margin: 0; }

/* ---------------------------------------------------------------- the stage */
.lavaggio {
  position: relative;
  height: 700lvh;
}

.palco {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--cielo-alto), var(--cielo) 62%);
}

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

/* ---------------------------------------------------------------- the words over the stage */
.testata {
  position: absolute;
  top: clamp(14px, 3.4vh, 30px);
  left: clamp(16px, 5vw, 64px);
  right: clamp(16px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--inchiostro);
  pointer-events: none;
}

.marchio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(18px, min(2.4vw, 4vh), 30px);
  font-weight: 800;
  font-variation-settings: 'wdth' 92;
  letter-spacing: -0.02em;
}

.marchio svg { width: 1.1em; height: 1.1em; }
.marchio svg path { fill: var(--blu); }
.marchio svg .marchio__lucido { fill: none; stroke: var(--carta); stroke-width: 2.2; stroke-linecap: round; }

.sotto {
  font-size: clamp(10px, min(1.3vw, 2.4vh), 14px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}

.fasi {
  position: absolute;
  left: clamp(16px, 5vw, 64px);
  bottom: clamp(14px, 4vh, 40px);
  height: 4.4em;
  width: min(70vw, 420px);
  font-size: clamp(16px, min(2.6vw, 4.4vh), 34px);
  color: var(--carta);
  pointer-events: none;
}

.fase {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  opacity: 0;
}

.fase__icona {
  width: 1.15em;
  height: 1.15em;
  margin-bottom: 0.2em;
  padding: 0.16em;
  border-radius: 0.3em;
  background: var(--giallo);
  fill: none;
  stroke: var(--inchiostro);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fase__nome {
  font-weight: 800;
  font-variation-settings: 'wdth' 110;
  letter-spacing: -0.02em;
  line-height: 1;
}

.fase__nota {
  font-size: 0.45em;
  font-weight: 500;
  opacity: 0.85;
}

.finale {
  position: absolute;
  top: clamp(56px, 13vh, 130px);
  left: 0;
  right: 0;
  padding: 0 16px;
  text-align: center;
  color: var(--inchiostro);
  opacity: 0;
  visibility: hidden;
}

.finale__titolo {
  font-size: clamp(26px, min(6vw, 9vh), 84px);
  font-weight: 800;
  font-variation-settings: 'wdth' 88;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.finale__testo {
  margin-top: 0.6em;
  font-size: clamp(12px, min(1.6vw, 2.6vh), 18px);
  font-weight: 500;
}

/* the site's elastic pill */
.tasto {
  position: relative;
  display: inline-flex;
  margin-top: clamp(10px, 2.6vh, 24px);
  padding: 0.95em 1.9em;
  color: var(--inchiostro);
  text-decoration: none;
  font-size: clamp(12px, min(1.4vw, 2.4vh), 16px);
  font-weight: 800;
  letter-spacing: 0.02em;
  isolation: isolate;
}

.tasto::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 999px;
  background: var(--giallo);
  box-shadow: 0 6px 0 var(--inchiostro);
  transition: transform 0.6s cubic-bezier(0.34, 1.9, 0.5, 1);
}

.tasto span {
  display: inline-block;
  font-variation-settings: 'wdth' 100;
  transition: font-variation-settings 0.55s cubic-bezier(0.34, 1.7, 0.5, 1);
}

.tasto:focus-visible { outline: 2px solid var(--inchiostro); outline-offset: 6px; border-radius: 999px; }

@media (hover: hover) {
  .tasto:hover::before { transform: scale(1.08, 1.16); }
  .tasto:hover span { font-variation-settings: 'wdth' 125; }
}

.tasto:active::before { transform: scale(0.94); transition-duration: 0.12s; }

.cenno {
  position: absolute;
  right: clamp(16px, 5vw, 64px);
  bottom: clamp(14px, 4vh, 40px);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(10px, min(1.2vw, 2.2vh), 13px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--carta);
  pointer-events: none;
}

.cenno svg { width: 12px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; }

/* ---------------------------------------------------------------- after the stage */
.dopo {
  min-height: 60vh;
  padding: 12vh 6vw;
  background: var(--giallo);
  color: var(--inchiostro);
}

.dopo__marchio { font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; }
.dopo__titolo { margin-top: 16px; font-size: clamp(30px, 6vw, 72px); font-weight: 800; font-variation-settings: 'wdth' 90; letter-spacing: -0.03em; line-height: 1; }
.dopo__testo { margin-top: 16px; max-width: 34em; font-size: 17px; font-weight: 500; }

/* ---------------------------------------------------------------- the phone: same wash, smaller words */
@media (max-width: 640px) {
  .sotto { display: none; }
  .fasi { width: auto; right: 16px; }
  .cenno { display: none; }
}
