/* --------------------------------------------------------------------------
   Common Unity case study page
   -------------------------------------------------------------------------- */
.commonunity {
  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);
}

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

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

.commonunity__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.095%;
  white-space: nowrap;
  z-index: 5;
}

.commonunity__logos {
  height: 14.514%;
  left: 6.451%;
  object-fit: contain;
  object-position: left center;
  position: absolute;
  top: 13.661%;
  width: 87.099%;
  z-index: 4;
}

.commonunity__zebra {
  height: 32.474%;
  left: 43.235%;
  object-fit: cover;
  position: absolute;
  top: 42.508%;
  width: 56.665%;
  z-index: 1;
}

.commonunity__vinyl {
  height: 32.746%;
  left: 3.911%;
  object-fit: cover;
  position: absolute;
  top: 28.054%;
  width: 74.27%;
  z-index: 3;
}

.commonunity__portrait {
  height: 35.303%;
  left: 4.313%;
  object-fit: cover;
  position: absolute;
  top: 61.742%;
  width: 61.597%;
  z-index: 2;
}

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

  .commonunity__title,
  .commonunity__logos,
  .commonunity__zebra,
  .commonunity__vinyl,
  .commonunity__portrait {
    height: auto;
    left: auto;
    position: static;
    top: auto;
    width: 100%;
  }

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

  .commonunity__zebra {
    order: 2;
    width: 85%;
    justify-self: end;
  }

  .commonunity__vinyl {
    order: 1;
  }

  .commonunity__portrait {
    order: 3;
    width: 90%;
  }
}
