.pieces-to-world-section {
  --ptw-accent: 45, 79, 53;
  --ptw-section-bg: 255, 255, 255;
  --ptw-muted: rgb(var(--color-text) / 0.55);
  --ptw-radius: 12px;

  background: rgb(var(--ptw-section-bg)) !important;
  background-color: rgb(var(--ptw-section-bg)) !important;
}

.pieces-to-world-section.page-section::before {
  background: rgb(var(--ptw-section-bg)) !important;
  background-color: rgb(var(--ptw-section-bg)) !important;
}

.pieces-to-world {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 48px);
  align-items: center;
}

.pieces-to-world__media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: var(--ptw-aspect-desktop, 466 / 583);
  border-radius: var(--ptw-radius);
  background: #f2f2f2;
}

.pieces-to-world__media .media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: unset !important;
  background: #f2f2f2 !important;
}

.pieces-to-world__media .media > :is(img, svg) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.pieces-to-world__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.pieces-to-world__heading {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  font-weight: 700;
  line-height: 1.25;
  color: rgb(var(--color-text));
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.pieces-to-world__heading-accent {
  color: rgb(var(--ptw-accent));
}

.pieces-to-world__subtitle {
  margin: 0;
  max-width: 32ch;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ptw-muted);
  text-wrap: balance;
}

.pieces-to-world__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-block-start: 8px;
  padding: 14px 32px;
  border: 1px solid #35513D;
  border-radius: 4px;
  background: #fff;
  color: #35513D;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pieces-to-world__button:hover {
  border-color: #111;
  background: #111;
  color: #fff;
}

@media (pointer: fine) {
  .pieces-to-world__media:hover .media > :is(img, svg) {
    transform: scale(1.04);
  }
}

@media (max-width: 959px) {
  .pieces-to-world {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pieces-to-world__media {
    aspect-ratio: var(--ptw-aspect-mobile, 4 / 3);
  }

  .pieces-to-world__media--left {
    order: 1;
    max-width: none;
    margin-inline: 0;
  }

  .pieces-to-world__content {
    order: 2;
    gap: 16px;
  }

  .pieces-to-world__media--right {
    order: 3;
    max-width: none;
    margin-inline: 0;
  }

  .pieces-to-world__heading {
    max-width: 16ch;
    font-size: 1.625rem;
  }

  .pieces-to-world__subtitle {
    max-width: 36ch;
    font-size: 0.875rem;
  }

  .pieces-to-world__button {
    margin-block-start: 4px;
  }
}
