.platform-sections {
  --platform-section-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-section {
  position: relative;
  overflow: hidden;
  /* No custom background — keep the page bg-paper color as-is */
}

.platform-section:last-child {
  border-bottom: none;
}

/* Stack content on top, image below — text never shifts */
.platform-section__row {
  display: block;
}

.platform-section__content {
  min-width: 0;
}

.platform-section__media {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    max-height 0.45s var(--platform-section-ease),
    opacity 0.35s var(--platform-section-ease),
    transform 0.35s var(--platform-section-ease),
    padding 0.35s var(--platform-section-ease);
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.platform-section__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  border: 1px solid var(--brand-blue, oklch(66% 0.13 240));
  border-radius: 8px;
  background: transparent;
  box-sizing: border-box;
}

/* Expand image downward only — do not change section background */
.platform-section:hover .platform-section__media,
.platform-section.is-active .platform-section__media {
  max-height: 900px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  padding: 0 1.5rem 2rem;
}

@media (min-width: 768px) {
  .platform-section__media {
    padding: 0 3rem;
  }

  .platform-section:hover .platform-section__media,
  .platform-section.is-active .platform-section__media {
    padding: 0 3rem 3rem;
  }
}

@media (max-width: 767px) {
  .platform-section__media {
    padding: 0 1.5rem;
  }

  .platform-section:hover .platform-section__media,
  .platform-section.is-active .platform-section__media {
    padding: 0 1.5rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .platform-section__media {
    transition: none;
  }
}
