.buddy-section {
  grid-template-columns: minmax(0, 0.84fr) auto minmax(0, 1.16fr);
  gap: clamp(34px, 4.5vw, 72px);
}

.buddy-section::after {
  align-self: center;
  aspect-ratio: 3 / 2;
  background: url("/assets/beverage-buddy-hero-card.png") center / contain no-repeat;
  content: "";
  filter:
    drop-shadow(0 22px 40px rgba(0, 7, 20, 0.42))
    drop-shadow(0 0 24px rgba(132, 238, 240, 0.12));
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  mask-composite: intersect;
  width: clamp(230px, 20vw, 310px);
}

.buddy-section > .buddy-copy {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.buddy-section > .buddy-rhythm {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
}

@media (max-width: 980px) {
  .buddy-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  .buddy-section > .buddy-copy,
  .buddy-section::after,
  .buddy-section > .buddy-rhythm {
    grid-column: 1;
  }

  .buddy-section > .buddy-copy {
    grid-row: 1;
  }

  .buddy-section::after {
    grid-row: 2;
    justify-self: start;
    width: clamp(220px, 42vw, 300px);
  }

  .buddy-section > .buddy-rhythm {
    grid-row: 3;
  }
}

@media (max-width: 620px) {
  .buddy-section {
    gap: 34px;
  }

  .buddy-section::after {
    justify-self: center;
    width: min(88vw, 292px);
  }
}
