/* APPLICATIONS */
.applications {
  background: var(--white);
  max-width: none;
}
.app-grid {
  margin-top: 48px;
}
.app-grid .splide__track {
  overflow: visible;
}
.app-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3/5;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: default;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
@media (hover: hover) and (pointer: fine) and (min-width: 1101px) {
  .app-grid .app-card:hover {
    transform: scale(1.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    z-index: 1;
  }
}
.app-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 45%,
    rgba(0, 0, 0, 0.8) 100%
  );
}
.app-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  color: var(--white);
  z-index: 1;
}
.app-card-content h3 {
  font-size: var(--fs-body);
  line-height: 1.45;
  font-weight: 700;
}
.app-card-content p {
  font-size: var(--fs-body);
  line-height: 1.4;
  font-weight: 500;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 1101px) {
  /* APPLICATIONS - more breathing room between title/subtitle/cards on desktop */
  .applications .section-subtitle {
    margin-top: 1.25rem;
  }
  .app-grid {
    margin-top: 80px;
  }
}

@media (max-width: 1100px) {
  /* APPLICATIONS - clip peeking edge cards once the carousel scrolls */
  .app-grid .splide__track {
    overflow: hidden;
  }
}

@media (max-width: 760px) {
  /* between desktop's 3/5 and old mobile 4/5 */
  .app-card {
    aspect-ratio: 7/10;
  }
  /* bump overlay text up since it was reading too small on narrow phones */
  .app-card-content h3 {
    font-size: var(--fs-heading);
  }
  .app-card-content p {
    font-size: var(--fs-body);
  }
}
