/* Squadra Brasil — hero */

/* Hero + seção institucional --------------------------------------------- */

.opening {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero {
  position: relative;
  /* Keep the hero background below the shared X layer while allowing
     positioned copy/decorations to paint above the animated shape. */
  z-index: auto;
  height: clamp(620px, 56.332vw, 1081px);
  overflow: hidden;
  color: var(--white);
  background: var(--blue);
}

.opening__shape {
  position: absolute;
  z-index: 2;
  top: clamp(-340px, -17.72vw, -190px);
  left: calc(50% + 32px);
  width: min(84.84vw, 1628px);
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: multiply;
  transform-origin: 50% 50%;
  will-change: transform;
  animation: shape-rotation 180s linear infinite;
}

.hero__copy {
  position: absolute;
  z-index: 5;
  top: 18.38%;
  left: 31.82%;
  width: min(37vw, 710px);
  animation: hero-copy-in 900ms 100ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.hero__eyebrow {
  width: max-content;
  margin: 0 12% 0 auto;
  color: var(--pink);
  font-size: clamp(1.05rem, 1.55vw, 1.86rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.24em;
  line-height: 1.35;
  white-space: nowrap;
}

.hero h1 {
  margin: 15px 0 0;
  color: var(--pink);
  font-family: var(--font-display);
  font-size: clamp(5.35rem, 9.82vw, 11.78125rem);
  font-weight: 600;
  letter-spacing: 0.002em;
  line-height: 0.783;
  text-transform: uppercase;
  transform: scaleX(.82);
  transform-origin: left top;
}

.hero__line {
  display: block;
  width: max-content;
  white-space: nowrap;
}

.hero__line--last {
  display: flex;
  align-items: baseline;
  gap: calc(0.16em + 7px);
}

.hero__line:nth-child(2) {
  letter-spacing: -0.005em;
}

.hero__word {
  display: inline-block;
  transform: scaleX(1.03);
  transform-origin: left center;
}

.hero__line strong {
  display: inline-block;
  color: var(--white);
  font: inherit;
  transform: scaleX(0.973);
  transform-origin: left center;
}

.hero__arrows,
.hero__dot-row,
.hero__rings,
.hero__dots,
.hero__wireframe {
  position: absolute;
  z-index: 4;
  width: auto;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.hero__arrows {
  top: 4.35%;
  left: 12.1%;
  width: clamp(118px, 8.44vw, 162px);
  animation: hero-float-x 5.1s ease-in-out infinite;
}

.hero__dot-row {
  top: 17.02%;
  left: 31.42%;
  display: flex;
  gap: clamp(7px, .53vw, 10px);
  animation: hero-float-x-reverse 5.8s ease-in-out infinite;
}

.hero__dot-row i {
  width: clamp(7px, .52vw, 10px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  animation: hero-dot-pulse 1.8s ease-in-out infinite;
}

.hero__dot-row i:nth-child(2) { animation-delay: 120ms; }
.hero__dot-row i:nth-child(3) { animation-delay: 240ms; }
.hero__dot-row i:nth-child(4) { animation-delay: 360ms; }

.hero__rings {
  top: 46.2%;
  left: 3.05%;
  width: clamp(250px, 18.4vw, 353px);
  opacity: .74;
  animation: hero-float-x 7.4s ease-in-out infinite reverse;
}

.hero__dots--color {
  top: 73.27%;
  left: 29.96%;
  width: clamp(48px, 3.7vw, 71px);
  animation: hero-float-x-reverse 6.3s ease-in-out infinite;
}

.hero__wireframe {
  top: 65.12%;
  left: 72.59%;
  width: clamp(116px, 9.38vw, 180px);
  animation: hero-float-x 8.2s ease-in-out infinite;
}

.about {
  position: relative;
  z-index: 1;
  height: clamp(430px, 26.785vw, 514px);
  overflow: hidden;
  background: var(--paper);
}

.about__halftone {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: url("../images/halftone.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  pointer-events: none;
}

.about__inner {
  position: relative;
  z-index: 4;
  left: 8px;
  width: min(800px, calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
  padding-top: clamp(80px, 5.52vw, 106px);
  text-align: center;
}

.about h2 {
  margin: 0;
  font-size: clamp(1.45rem, 1.56vw, 1.875rem);
  font-weight: 900;
  letter-spacing: 0.006em;
  line-height: 1.2;
  text-transform: uppercase;
}

.about p {
  margin: clamp(48px, 3.18vw, 61px) auto 0;
  font-size: clamp(0.94rem, 1.045vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.004em;
  line-height: 1.5;
  text-transform: uppercase;
}

.about strong {
  display: block;
  margin-top: clamp(48px, 3.23vw, 62px);
  color: var(--pink);
  font-size: clamp(1.3rem, 1.54vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.003em;
  line-height: 1.2;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .hero__copy {
    left: 27.5%;
    width: 43vw;
  }

  .hero__dot-row {
    left: 27.3%;
  }

  .hero__dots--color {
    left: 25.8%;
  }
}

@media (max-width: 900px) {
  .hero {
    height: clamp(690px, 180vw, 820px);
    min-height: calc(100svh - var(--header-height));
  }

  .opening__shape {
    top: -6rem;
    left: 6%;
    width: 230vw;
    max-width: none;
  }

  .hero__copy {
    top: 23.5%;
    left: 24px;
    width: calc(100% - 48px);
  }

  .hero__eyebrow {
    margin-right: 3%;
    font-size: clamp(1rem, 5vw, 1.35rem);
    letter-spacing: 0.18em;
  }

  .hero h1 {
    font-size: clamp(4.65rem, 21.5vw, 7.1rem);
    margin-top: 8px;
    line-height: 0.84;
  }

  .hero__line--last {
    gap: calc(0.11em + 2px);
  }

  .hero__arrows {
    top: 4%;
    left: -22px;
    width: 130px;
  }

  .hero__dot-row {
    top: 11%;
    left: 8%;
    gap: 7px;
  }

  .hero__dot-row i {
    width: 8px;
  }

  .hero__rings {
    top: 61%;
    left: -88px;
    width: 270px;
    opacity: .48;
  }

  .hero__dots--color {
    top: auto;
    bottom: 10%;
    left: 8%;
    width: 58px;
  }

  .hero__wireframe {
    top: auto;
    right: 2%;
    bottom: 7%;
    left: auto;
    width: clamp(115px, 34vw, 150px);
  }

  .about {
    height: auto;
    min-height: 560px;
  }

  .about__halftone {
    background-size: auto 100%;
    background-position: 28% top;
  }

  .about__inner {
    left: 0;
    width: min(600px, calc(100% - 40px));
    height: auto;
    padding: 96px 0 92px;
  }

  .about h2 {
    font-size: clamp(1.35rem, 6.2vw, 1.75rem);
  }

  .about p {
    margin-top: 44px;
    font-size: clamp(0.88rem, 3.8vw, 1.05rem);
    line-height: 1.62;
  }

  .about strong {
    margin-top: 48px;
    font-size: clamp(1.15rem, 5.2vw, 1.55rem);
  }

  .desktop-break {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero__copy {
    left: 20px;
    width: calc(100% - 40px);
  }

  .hero h1 {
    font-size: clamp(4.35rem, 21.4vw, 5.55rem);
  }

  .about__inner {
    width: calc(100% - 32px);
  }
}
