/* The threads that draw the curve: a made-up embroidery thread maker, Tension. The stage sticks while you scroll;
   the arms, the pins and the threads are SVG drawn by the script, their colours come from the variables below. */
:root {
  --carta: #f4f1ea;          /* the page */
  --inchiostro: #151412;     /* the arms, the threads, the title */
  --tenue: #8b867c;          /* the pins and the small text */
  --accento: #ff4b1f;        /* the curve the threads draw together */
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

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

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

/* ---------------------------------------------------------------- the stage */
.corsa {
  position: relative;
  height: 600lvh; /* the script sets the real height from RIDE */
}

.palco {
  position: sticky;
  top: 0;
  height: 100lvh;
  overflow: hidden;
  background: var(--carta);
}

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

.braccio {
  stroke: var(--inchiostro);
  stroke-width: 1.25;
  stroke-linecap: round;
}

.spillo {
  stroke: var(--tenue);
  stroke-width: 1;
  stroke-linecap: round;
}

.filo {
  fill: none;
  stroke: var(--inchiostro);
  stroke-width: 0.9;
  stroke-linecap: round;
}

.curva {
  fill: none;
  stroke: var(--accento);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------- the small text */
.testa {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(16px, 3vw, 40px);
  font-size: 13px;
  font-weight: 500;
  font-stretch: 92%;
  color: var(--tenue);
}

.testa__nome {
  font-size: 16px;
  font-weight: 650;
  font-stretch: 88%;
  color: var(--inchiostro);
}

.cenno {
  position: absolute;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(20px, 4lvh, 36px);
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  font-stretch: 90%;
  color: var(--tenue);
}

.cenno__dentro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cenno svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------- the title */
.titolo-box {
  position: absolute;
  left: clamp(16px, 4vw, 64px);
  bottom: clamp(56px, 10lvh, 110px);
}

.titolo {
  margin: 0;
  font-size: clamp(54px, 9vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variation-settings: 'wght' 120, 'wdth' 125;
  white-space: nowrap;
}

.sotto {
  margin: 14px 0 0;
  max-width: 300px;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 450;
  font-stretch: 92%;
  line-height: 1.45;
  color: var(--tenue);
}

@media (max-width: 640px) {
  .titolo-box {
    left: 16px;
    right: 16px;
    bottom: 76px;
  }
  .titolo {
    font-size: 26vw;
  }
}
