/* --------------------------------------------------------------------------
   Drunk Ape case study page
   -------------------------------------------------------------------------- */
.drunkape {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-inline: auto;
  max-width: var(--max-width);
  min-height: 100dvh;
  padding:
    clamp(3rem, 6vw, 5.5rem)
    var(--space-page)
    clamp(2rem, 4vw, 3rem);
}

.drunkape .contact {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   Collage stage — positions from Figma frame 1440 × 2298
   -------------------------------------------------------------------------- */
.drunkape__stage {
  aspect-ratio: 1440 / 2298;
  margin-inline: auto;
  max-width: 90rem;
  position: relative;
  width: 100%;
}

.drunkape__title {
  color: var(--color-white);
  font-size: clamp(2rem, 4.72vw, 4.25rem);
  font-weight: 400;
  left: 7.708%;
  letter-spacing: -0.02em;
  line-height: 1;
  position: absolute;
  top: 5.782%;
  white-space: nowrap;
  z-index: 4;
}

.drunkape__showcase {
  height: 51.777%;
  left: 7.363%;
  object-fit: cover;
  position: absolute;
  top: 11.354%;
  width: 85.275%;
  z-index: 2;
}

.drunkape__bib {
  height: 33.42%;
  left: 12.84%;
  object-fit: cover;
  position: absolute;
  top: 57.67%;
  transform: rotate(12.45deg);
  transform-origin: center center;
  width: 85.62%;
  z-index: 1;
}

.drunkape__box {
  height: 40.99%;
  left: 38.125%;
  object-fit: cover;
  position: absolute;
  top: 54.045%;
  width: 65.42%;
  z-index: 3;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .drunkape__stage {
    aspect-ratio: auto;
    display: grid;
    gap: clamp(1rem, 3vw, 1.5rem);
    grid-template-columns: 1fr;
  }

  .drunkape__title,
  .drunkape__showcase,
  .drunkape__bib,
  .drunkape__box {
    height: auto;
    left: auto;
    position: static;
    top: auto;
    transform: none;
    width: 100%;
  }

  .drunkape__title {
    font-size: clamp(2rem, 10vw, 3rem);
    order: -1;
  }

  .drunkape__bib {
    transform: rotate(6deg);
    width: 95%;
    justify-self: center;
  }
}
