/* ==========================================================================
   03 · MANIFESTO
   Mobile: título em 5 linhas, texto, selo com seta; papel verde e globo embaixo.
   Desktop (>= 64em): título à esquerda; texto e selo à direita, após um fio.
   Sem o personagem nesta seção.

   As quebras do título são fixas: <br class="br-m"> só no mobile,
   <br class="br-d"> só no desktop. Larguras no Archivo 900:
     a 66%: NÃO PRECISA DE 6,07em · NÃO PRECISA 4,98em · A INTERNET 4,37em
     IGUAIS. a 80%: 3,32em · a 100%: 4,08em
   font-size (cqi) = fração da largura x 100 / largura em em.
   ========================================================================== */

.manifesto {
  position: relative;
  z-index: 1;
  padding-top: var(--section-space);
  padding-bottom: calc(var(--section-space) * 0.75 + var(--tear-h) * 2);
}

/* Camada decorativa: recortada para não vazar da seção */
.manifesto__deco {
  position: absolute;
  inset: 0;
  overflow: clip;
  pointer-events: none;
}

.manifesto__corner {
  bottom: calc(var(--tear-h) * 0.7);
  left: 0;
  width: min(48vw, 16rem);
  height: clamp(5rem, 22vw, 8rem);
  rotate: 180deg;
}

.manifesto__globe {
  position: absolute;
  right: -2.75rem;
  bottom: calc(var(--tear-h) * 0.2 - 2.5rem);
  width: clamp(8rem, 5rem + 14vw, 21rem);
  height: auto;
  aspect-ratio: 1;
  rotate: -18deg;
  color: var(--c-ink);
  overflow: visible;
}

/* Conteúdo --------------------------------------------------------------- */
.manifesto__inner {
  position: relative;
  z-index: 1;
}

.manifesto__grid {
  display: grid;
  gap: var(--sp-7);
  margin-top: var(--sp-6);
}

/* Título ----------------------------------------------------------------- */
.manifesto__headline {
  position: relative;
  width: min(100%, 36rem);
  container-type: inline-size;
}

.manifesto__title {
  position: relative;
  z-index: 1;
  font-size: 19.5cqi;
  font-stretch: 66%;
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.manifesto__title .br-d {
  display: none;
}

/* Respiro para o til de "NÃO" não encostar na linha de cima. */
.manifesto__title .w--til {
  padding-top: 0.12em;
}

/* IGUAIS. maior, inclinado, sobre fita verde rasgada */
.manifesto__accent {
  margin-top: 0.14em;
  padding: 0.1em 0.3em 0.02em;
  font-size: 1.2em;
  font-stretch: 80%;
  letter-spacing: -0.02em;
}

.manifesto__accent .w {
  transform: skewX(-9deg);
}

.manifesto__burst {
  position: absolute;
  top: -17cqi;
  right: 0;
  width: 12cqi;
  height: 12cqi;
  rotate: -8deg;
  color: var(--c-ink);
}

/* Texto e selo ----------------------------------------------------------- */
.manifesto__body {
  display: grid;
  gap: var(--sp-6);
}

.manifesto__text {
  --reveal-delay: 150ms;
  max-width: 30em;
  font-size: clamp(1.0625rem, 0.9rem + 0.7vw, 1.625rem);
  line-height: 1.45;
}

.manifesto__seal-row {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-2);
  padding-left: clamp(0rem, 4vw, 2rem);
}

.manifesto__arrow {
  flex: none;
  width: clamp(3.25rem, 2.6rem + 3vw, 5.5rem);
  height: auto;
  aspect-ratio: 80 / 110;
  margin-top: calc(var(--sp-6) * -1);
  scale: -1 1;
  color: var(--c-ink);
  overflow: visible;
}

/* Selo SITES COM PROPÓSITO: texto mono dentro de um laço desenhado à mão */
.seal {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: clamp(12rem, 9rem + 9vw, 17.5rem);
  aspect-ratio: 2 / 1;
  margin-top: var(--sp-5);
  rotate: -7deg;
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 0.8rem + 0.55vw, 1.375rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.seal__ring {
  position: absolute;
  inset: -4% -3%;
  width: 106%;
  height: 108%;
  color: var(--c-ink);
  overflow: visible;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 0;
}

.manifesto__arrow {
  stroke-dasharray: 1 2;
  stroke-dashoffset: 0;
}

/* Rasgo escuro na base --------------------------------------------------- */
.manifesto__tear {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -1px;
  left: 0;
  height: var(--tear-h);
  pointer-events: none;
}

/* ==========================================================================
   Desktop
   ========================================================================== */
@media (min-width: 64em) {
  .manifesto {
    padding-bottom: calc(var(--section-space) * 0.9 + var(--tear-h) * 1.5);
  }

  .manifesto__corner {
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    width: 32vw;
    height: clamp(8rem, 13vw, 13rem);
    rotate: none;
  }

  .manifesto__globe {
    right: auto;
    bottom: -7.5rem;
    left: -3.5rem;
  }

  .manifesto__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4.7fr);
    align-items: center;
    column-gap: clamp(2.5rem, 5vw, 6rem);
    margin-top: clamp(2rem, 4vw, 3.5rem);
  }

  .manifesto__headline {
    width: 100%;
  }

  .manifesto__title {
    font-size: 16cqi;
  }

  .manifesto__title .br-m {
    display: none;
  }

  .manifesto__title .br-d {
    display: inline;
  }

  .manifesto__accent {
    font-size: 1.25em;
    font-stretch: 100%;
  }

  /* Ao lado do fim de "A INTERNET" (0,70 da largura) */
  .manifesto__burst {
    top: -9cqi;
    right: auto;
    left: 72cqi;
    width: 9cqi;
    height: 9cqi;
    rotate: 0deg;
  }

  .manifesto__body {
    padding-left: clamp(2rem, 4vw, 4rem);
    border-left: 1.5px solid var(--c-ink);
  }

  .manifesto__seal-row {
    flex-direction: row;
    justify-content: flex-start;
    padding-left: 0;
  }

  .manifesto__arrow {
    margin-top: 0;
    scale: none;
  }

  .seal {
    margin-top: var(--sp-7);
  }

  .manifesto__tear {
    left: 34%;
    height: calc(var(--tear-h) * 1.5);
  }
}

/* ==========================================================================
   Entrada (ver css/motion.css)
   ========================================================================== */

/* A fita verde de IGUAIS. entra pelo componente .tape (css/motion.css). */

.has-reveal .manifesto__title.is-in .manifesto__tape {
  clip-path: inset(-20% -6% -20% -6%);
}

/* Destaques verdes do texto se pintam em sequência. */
.has-reveal .manifesto__text .hl {
  background-size: 0% 92%;
  transition: background-size 600ms var(--ease-out);
}

.has-reveal .manifesto__text.is-in .hl {
  background-size: 100% 92%;
}

.has-reveal .manifesto__text .hl:nth-of-type(1) { transition-delay: 650ms; }
.has-reveal .manifesto__text .hl:nth-of-type(2) { transition-delay: 850ms; }
.has-reveal .manifesto__text .hl:nth-of-type(3) { transition-delay: 1050ms; }

/* Seta e laço do selo se desenham; o selo cresce junto. */
.has-reveal .manifesto__seal-row :is(.manifesto__arrow, .seal__ring) {
  stroke-dashoffset: 1.05;
  transition: stroke-dashoffset 900ms var(--ease-in-out);
}

.has-reveal .manifesto__seal-row .manifesto__arrow {
  transition-delay: 250ms;
}

.has-reveal .manifesto__seal-row .seal__ring {
  transition-delay: 650ms;
}

.has-reveal .manifesto__seal-row .seal {
  opacity: 0;
  scale: 0.6;
  transition:
    opacity 300ms linear 550ms,
    scale 800ms var(--ease-snap) 550ms;
}

.has-reveal .manifesto__seal-row.is-in :is(.manifesto__arrow, .seal__ring) {
  stroke-dashoffset: 0;
}

.has-reveal .manifesto__seal-row.is-in .seal {
  opacity: 1;
  scale: none;
}
