:root {
  --cielo-basso: #d6ebf5;      /* the sky near the ground, by day */
  --cielo-giorno: #7db7e3;     /* the sky overhead, by day */
  --cielo-quota: #1f4f8f;      /* the high sky, deep blue */
  --spazio: #05070d;           /* space */
  --inchiostro: #14182a;       /* the text by day */
  --luce: #f4f1ea;             /* the text in space, and the rocket */
  --accento: #ff5a1f;          /* the startup's orange */
  --fumo: #ece7df;             /* the smoke */
  --terra: #c9b48d;            /* the ground */
  --colline: #8ea5b8;          /* the far hills */
  --pannelli: #2d5ba8;         /* the satellite's solar panels */
  --oro: #d9a441;              /* the satellite's foil */
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--spazio);
  color: var(--inchiostro);
  font-family: 'Martian Mono Variable', ui-monospace, monospace;
  -webkit-font-smoothing: antialiased;
}

p, h2, dl, dd { margin: 0; }

/* ---------------------------------------------------------------- the stage */
.lancio {
  position: relative;
  height: 900lvh;
}

.palco {
  position: sticky;
  top: 0;
  height: 100lvh;
  overflow: hidden;
  background: linear-gradient(to top, var(--cielo-basso), var(--cielo-giorno) 70%);
}

.cielo, .cielo__alto, .cielo__spazio, .scena {
  position: absolute;
  inset: 0;
}

.cielo__alto {
  background: linear-gradient(to top, #4b86c4, var(--cielo-quota) 75%);
  opacity: 0;
}

.cielo__spazio {
  background: linear-gradient(to top, #0d1630, var(--spazio) 60%);
  opacity: 0;
}

.scuoti {
  position: absolute;
  inset: -24px;
  will-change: transform;
}

.disegno {
  display: block;
  position: absolute;
  inset: 24px;
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  overflow: visible;
}

/* ---------------------------------------------------------------- the words over the stage */
.testi {
  position: absolute;
  inset: 0;
  color: var(--inchiostro);
  pointer-events: none;
}

.testata {
  position: absolute;
  top: 26px;
  left: 6vw;
  right: 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.marchio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-variation-settings: 'wdth' 112;
  pointer-events: auto;
}

.marchio svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.7s cubic-bezier(0.34, 1.8, 0.5, 1);
}

.marchio svg path { fill: var(--accento); stroke: none; }

.missione { opacity: 0.75; }

.voci {
  position: absolute;
  left: 6vw;
  top: 50%;
  width: 50vw;
  height: 0;
}

.voce {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  transform: translateY(50%);
}

.voce__grande {
  font-family: 'Big Shoulders Display Variable', 'Arial Narrow', sans-serif;
  font-weight: 800;
  font-size: clamp(64px, 8.4vw, 150px);
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

.voce--cifra .voce__grande {
  font-size: clamp(120px, 17vw, 300px);
}

.parola {
  display: inline-block;
  white-space: nowrap;
}

.lettera {
  display: inline-block;
  will-change: transform;
}

.voce__nota {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.02em;
  max-width: 40ch;
}

.strumenti {
  position: absolute;
  left: 6vw;
  bottom: 30px;
  display: flex;
  gap: 34px;
}

.strumenti dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.strumenti dd {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-variation-settings: 'wdth' 100;
}

.cenno {
  position: absolute;
  right: 6vw;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cenno svg {
  width: 16px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------- after the launch */
.arrivo {
  position: relative;
  min-height: 80vh;
  padding: 18vh 6vw 14vh;
  background: linear-gradient(#2c70b1, #0d2c55 22vh, var(--spazio) 60vh);
  color: var(--luce);
}

.arrivo__marchio {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accento);
}

.arrivo__titolo {
  margin-top: 22px;
  max-width: 12ch;
  font-family: 'Big Shoulders Display Variable', 'Arial Narrow', sans-serif;
  font-weight: 800;
  font-size: clamp(56px, 8vw, 132px);
  line-height: 0.9;
  text-transform: uppercase;
}

.arrivo__testo {
  margin-top: 26px;
  max-width: 44ch;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.8;
}

/* the elastic pill: the background swells with a bounce, the word widens on its wdth axis */
.tasto {
  position: relative;
  display: inline-flex;
  margin-top: 40px;
  padding: 18px 34px;
  color: var(--spazio);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  isolation: isolate;
}

.tasto::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 999px;
  background: var(--accento);
  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(--luce); outline-offset: 6px; border-radius: 999px; }

@media (hover: hover) {
  .tasto:hover::before { transform: scale(1.08, 1.18); }
  .tasto:hover span { font-variation-settings: 'wdth' 125; }
  .marchio:hover svg { transform: rotate(-200deg) scale(1.12); }
}

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

/* ---------------------------------------------------------------- the phone: same story, the words on top */
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .testata { top: 18px; left: 18px; right: 18px; font-size: 10px; }
  .marchio svg { width: 22px; height: 22px; }
  .strumenti {
    top: 56px;
    bottom: auto;
    left: 18px;
    right: 18px;
    gap: 18px;
  }
  .strumenti dt { font-size: 8px; }
  .strumenti dd { font-size: 12px; margin-top: 4px; }
  .voci {
    left: 18px;
    top: 21%;
    width: calc(100% - 36px);
  }
  .voce__grande { font-size: clamp(48px, 14vw, 96px); }
  .voce--cifra .voce__grande { font-size: clamp(84px, 26vw, 160px); }
  .voce__nota { margin-top: 10px; font-size: 11px; }
  .cenno { right: 18px; bottom: 20px; font-size: 10px; }
  .arrivo { padding: 14vh 18px 12vh; }
}

/* ---------------------------------------------------------------- the drawing's colours */
.f-fumo { fill: var(--fumo); }
.f-acciaio { fill: #2b3245; }
.s-acciaio { stroke: #2b3245; }
.f-accento { fill: var(--accento); }
.f-terra { fill: var(--terra); }
.f-colline { fill: var(--colline); }
.f-pannelli { fill: var(--pannelli); }
