/* Squadra Brasil - MPDV / Retail */

.page-mpdv {
  background: var(--blue);
}

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

.mpdv-hero {
  position: relative;
  min-height: clamp(330px, 22.8vw, 438px);
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.mpdv-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(circle at 53% 42%, rgba(79, 10, 109, .26), transparent 48%);
  pointer-events: none;
}

.mpdv-opening__shape {
  position: absolute;
  z-index: 2;
  display: block;
  top: clamp(-210px, -9.4vw, -150px);
  left: 9.3vw;
  width: min(75.5vw, 1450px);
  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;
}

.mpdv-hero__copy {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: min(760px, calc(100% - 48px));
  margin: 0;
  text-align: center;
  transform: translate(-50%, -50%);
}

.mpdv-hero__copy p {
  margin: 0;
  color: var(--pink);
  font-family: var(--font-display);
  font-size: clamp(5.6rem, 10.2vw, 12.25rem);
  font-weight: 600;
  line-height: .78;
  text-transform: uppercase;
  animation: hero-copy-in 900ms 100ms cubic-bezier(.2, .75, .25, 1) both;
}

.mpdv-hero__copy h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mpdv-hero__arrows {
  position: absolute;
  z-index: 4;
  top: calc(50% - clamp(88px, 5.5vw, 106px));
  left: calc(50% - min(164px, 18vw));
  width: clamp(92px, 8.45vw, 162px);
  animation: hero-float-x 5.1s ease-in-out infinite;
}

.mpdv-hero__arrows .decor-loader__track i {
  background: #a600f4;
}

.mpdv-hero__dots {
  position: absolute;
  z-index: 4;
  top: calc(50% + clamp(70px, 5.2vw, 100px));
  left: calc(50% - 30px);
  display: flex;
  gap: 9px;
  animation: hero-float-x-reverse 5.8s ease-in-out infinite;
}

.mpdv-hero__dots i {
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  animation: hero-dot-pulse 1.8s ease-in-out infinite;
}

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

.mpdv-banner {
  position: relative;
  z-index: 3;
  height: clamp(210px, 20.6vw, 395px);
  overflow: hidden;
  background: #111;
}

.mpdv-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .34), transparent 42%, rgba(0, 0, 0, .15));
  pointer-events: none;
}

.mpdv-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mpdv-showcase {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--blue);
}

.mpdv-showcase::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: .28;
  background-image: radial-gradient(rgba(6, 14, 118, .64) 1.4px, transparent 1.6px);
  background-size: 15px 15px;
}

.mpdv-showcase__dots {
  position: absolute;
  z-index: 5;
  top: min(10.4vw, 200px);
  left: 22.3vw;
  display: flex;
  width: min(3.7vw, 71px);
  height: min(4.45vw, 85px);
  gap: 12.7%;
  animation: hero-float-x-reverse 6.3s ease-in-out infinite;
}

.mpdv-showcase__dot-column {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: space-between;
}

/* Figma artwork alternates the columns vertically: white/yellow high,
   cyan/pink one dot-step lower. */
.mpdv-showcase__dot-column:nth-child(even) {
  transform: translateY(25%);
}

.mpdv-showcase__dot-column i {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--dot-color);
  animation: loading-dot 1.65s ease-in-out infinite both;
}

.mpdv-showcase__dot-column--white { --dot-color: var(--paper); }
.mpdv-showcase__dot-column--cyan { --dot-color: var(--cyan); }
.mpdv-showcase__dot-column--yellow { --dot-color: #f5de0b; }
.mpdv-showcase__dot-column--pink { --dot-color: var(--pink); }

.mpdv-showcase__dot-column i:nth-child(1) { animation-delay: 0ms; }
.mpdv-showcase__dot-column i:nth-child(2) { animation-delay: 80ms; }
.mpdv-showcase__dot-column i:nth-child(3) { animation-delay: 160ms; }
.mpdv-showcase__dot-column i:nth-child(4) { animation-delay: 240ms; }

.mpdv-showcase__inner {
  position: relative;
  z-index: 5;
  width: min(54.17vw, 1040px);
  padding: clamp(86px, 6.45vw, 124px) 0 clamp(90px, 9vw, 180px);
  margin-inline: auto;
}

.mpdv-overview {
  position: relative;
  min-height: min(16.25vw, 312px);
  margin-bottom: 18px;
}

.mpdv-intro {
  position: absolute;
  top: 0;
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 48px);
  margin: 0;
  text-align: left;
  transform: translateX(-50%);
}

/* The shared reveal utility also uses transform; preserve the centered title. */
.js .mpdv-intro.reveal {
  transform: translateX(-50%) translateY(22px);
}

.js .mpdv-intro.reveal.is-visible {
  transform: translateX(-50%) translateY(0);
}

.mpdv-intro__eyebrow {
  width: max-content;
  margin: 0 3% 4px auto;
  color: #f5de0b;
  font-size: clamp(.66rem, .8vw, .9rem);
  font-style: italic;
  letter-spacing: .18em;
  text-transform: none;
}

.mpdv-intro h2,
.mpdv-case h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: .8;
  text-transform: uppercase;
}

.mpdv-intro h2 {
  width: max-content;
  font-size: clamp(3rem, 4.2vw, 5rem);
  transform: scaleX(.88);
  transform-origin: left top;
}

.mpdv-intro__line {
  display: block;
  width: max-content;
  color: var(--pink);
  white-space: nowrap;
}

.mpdv-intro__line--last > span { color: var(--pink); }
.mpdv-intro h2 strong { color: var(--white); }

.mpdv-award {
  position: absolute;
  top: clamp(92px, 5.45vw, 105px);
  right: -2.5vw;
  width: min(19vw, 365px);
  aspect-ratio: 353 / 207;
  margin: 0;
}

.mpdv-award__rings {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: .94;
  animation: hero-float-x 7.4s ease-in-out infinite reverse;
}

.mpdv-award__rings > i { border-color: var(--pink); }

.mpdv-award p {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.85vw, 2.25rem);
  font-weight: 600;
  line-height: .9;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.mpdv-case {
  position: relative;
  max-width: 960px;
  margin: 0 auto clamp(105px, 8.2vw, 158px);
  text-align: center;
}

.mpdv-case:last-child { margin-bottom: 0; }

.mpdv-case__media {
  position: relative;
  max-width: 775px;
  margin: 0 auto clamp(27px, 1.8vw, 35px);
}

.mpdv-case__media > img:not(.mpdv-case__waves):not(.mpdv-ai__quadrants) {
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(4, 8, 73, .28);
}

.mpdv-case__media--functional {
  width: min(49vw, 940px);
  max-width: 940px;
  min-height: 0;
  aspect-ratio: 2 / 1;
  margin-bottom: clamp(38px, 3vw, 58px);
}

.mpdv-case__media--functional .mpdv-case__main-image {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 64%;
}

.mpdv-case__media--functional .mpdv-case__overlay-image {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: -3%;
  width: 39.3%;
}

.mpdv-case__waves {
  position: absolute;
  z-index: -2;
  top: 4%;
  right: 27%;
  width: clamp(48px, 4.6vw, 88px);
  animation: mpdv-drift 5.5s ease-in-out infinite alternate;
}

.mpdv-case__atom {
  position: absolute;
  z-index: 2;
  bottom: -50px;
  left: -112px;
  width: 100px;
  aspect-ratio: 1;
  opacity: .85;
  animation: mpdv-drift 7.1s ease-in-out infinite alternate-reverse;
}

.mpdv-case__atom i {
  position: absolute;
  inset: 27.5% 0;
  display: block;
  border: 1.5px solid #f5de0b;
  border-radius: 50%;
}

.mpdv-case__atom i:first-child { transform: rotate(45deg); }
.mpdv-case__atom i:last-child { transform: rotate(-45deg); }

.mpdv-case__copy {
  width: min(680px, 100%);
  margin-inline: auto;
}

.mpdv-case h3 {
  font-family: var(--font-body);
  font-size: clamp(1.45rem, 1.85vw, 2.15rem);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
}

.mpdv-case p {
  max-width: 760px;
  margin: 17px auto 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(.9rem, 1.05vw, 1.125rem);
  font-weight: 400;
  line-height: 1.55;
}

.mpdv-case--sustainable .mpdv-case__media {
  width: min(40.36vw, 775px);
  max-width: 775px;
}

.mpdv-case--sustainable .mpdv-case__media > img { width: 100%; }

.mpdv-case__color-dots {
  position: absolute;
  z-index: 2;
  top: 49%;
  right: -103px;
  display: flex;
  width: 64px;
  height: min(4.45vw, 85px);
  gap: 12.7%;
  animation: hero-float-x 6.4s ease-in-out infinite reverse;
}

.mpdv-case--ai { max-width: 1020px; }

.mpdv-ai__quadrants {
  position: absolute;
  z-index: 1;
  top: 22%;
  left: 23%;
  width: 11.3%;
  animation: mpdv-drift 6.4s ease-in-out infinite alternate-reverse;
}

.mpdv-case__media--ai {
  width: min(53.13vw, 1020px);
  max-width: 1020px;
  min-height: 0;
  height: min(32.3vw, 620px);
  margin-bottom: clamp(38px, 3vw, 58px);
}

.mpdv-case__media--ai .mpdv-ai__detail {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  width: 49.7%;
}

.mpdv-case__media--ai .mpdv-ai__showcase {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 65.3%;
}

@keyframes mpdv-drift {
  from { transform: translate3d(-5px, 0, 0) rotate(-2deg); }
  to { transform: translate3d(7px, -10px, 0) rotate(2deg); }
}

@media (max-width: 900px) {
  .mpdv-hero { min-height: 360px; }

  .mpdv-opening__shape {
    top: -120px;
    left: -5%;
    width: 900px;
  }

  .mpdv-hero__copy p { font-size: clamp(5.4rem, 15vw, 8rem); }

  .mpdv-hero__arrows {
    top: calc(50% - 95px);
    left: calc(50% - 135px);
  }

  .mpdv-hero__dots { top: calc(50% + 78px); }

  .mpdv-banner { height: min(39vw, 320px); }

  .mpdv-showcase__inner { width: min(100% - 36px, 760px); }

  .mpdv-showcase__dots {
    left: 7%;
    width: 52px;
    height: 63px;
  }

  .mpdv-overview { min-height: 260px; }

  .mpdv-award {
    right: -4%;
    width: min(30vw, 270px);
  }

  .mpdv-case__media--functional { width: min(90%, 700px); }

  .mpdv-case--sustainable .mpdv-case__media { width: min(86%, 620px); }

  .mpdv-case__media--ai {
    width: min(92%, 760px);
    height: min(55vw, 500px);
  }

  .mpdv-case__atom { left: -42px; }

  .mpdv-case__color-dots { right: -24px; }
}

@media (max-width: 680px) {
  .mpdv-showcase__inner { padding-top: 76px; }

  .mpdv-overview {
    display: grid;
    min-height: 0;
    margin-bottom: 58px;
    gap: 34px;
  }

  .mpdv-intro {
    position: relative;
    top: auto;
    left: auto;
    width: min(320px, 100%);
    transform: none;
    justify-self: center;
  }

  .js .mpdv-intro.reveal {
    transform: translateY(22px);
  }

  .js .mpdv-intro.reveal.is-visible {
    transform: translateY(0);
  }

  .mpdv-intro h2 { font-size: clamp(3.1rem, 14vw, 4.6rem); }

  .mpdv-award {
    position: relative;
    top: auto;
    right: auto;
    width: min(360px, calc(100% + 18px));
    margin-inline: auto;
  }

  .mpdv-award p {
    font-size: clamp(1.25rem, 6.2vw, 2rem);
    white-space: normal;
  }

  .mpdv-showcase__dots {
    top: 170px;
    left: 7%;
    width: 52px;
    height: 63px;
  }

  .mpdv-case { margin-bottom: 105px; }

  .mpdv-case__atom,
  .mpdv-case__color-dots { display: none; }

  .mpdv-ai__quadrants {
    top: 11%;
    left: 29.5%;
  }
}

@media (max-width: 560px) {
  .mpdv-hero { min-height: 360px; }

  .mpdv-opening__shape {
    top: -40px;
    left: -42%;
    width: 650px;
  }

  .mpdv-hero__copy p { font-size: clamp(5.2rem, 25vw, 7.8rem); }

  .mpdv-hero__arrows {
    top: calc(50% - 94px);
    left: calc(50% - 132px);
    width: 102px;
  }

  .mpdv-hero__dots {
    top: calc(50% + 76px);
    left: calc(50% - 28px);
  }

  .mpdv-banner { height: 220px; }

  .mpdv-case__media--functional,
  .mpdv-case__media--ai {
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
    display: grid;
    gap: 14px;
  }

  .mpdv-case__media--functional .mpdv-case__main-image,
  .mpdv-case__media--functional .mpdv-case__overlay-image,
  .mpdv-case__media--ai .mpdv-ai__detail,
  .mpdv-case__media--ai .mpdv-ai__showcase {
    position: static;
    width: 100%;
  }

  .mpdv-case__waves { right: 5%; top: 4%; }
}
