* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: #ffffff;
  color: #171717;
}

.split {
  padding: 4rem 1rem;
}

.split__inner {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.split__heading {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #171717;
}

.split__copy {
  max-width: 24rem;
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #737373;
}

.split__photo {
  margin-top: 2rem;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  object-fit: cover;
}

.split__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  border-radius: 1rem;
  border: 1px solid #e5e5e5;
  padding: 1.25rem;
}

.card__icon {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.card__glyph {
  width: 1rem;
  height: 1rem;
}

.card__name {
  margin: 0.875rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #171717;
}

.card__desc {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #737373;
}

@media (min-width: 640px) {
  .split__heading {
    font-size: 1.875rem;
  }

  .split__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .split__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem;
  }
}

/*
 * Logos 15 — "scroll-triggered reveal" animation identity. The photo and
 * each card fade/slide up once, the moment they scroll into view — driven
 * by `script.js`'s `IntersectionObserver` toggling `.is-visible`, not by a
 * `@keyframes` animation on mount. Using a `transition` here is deliberate:
 * it relinquishes control of `transform` once finished, so it can never
 * block the card's own hover lift. Scoped so this never collides with
 * another Resource's own animation layer. Entirely disabled under reduced
 * motion.
 */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
      transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .card {
    transition:
      opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
      transform 600ms cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 200ms ease;
  }

  .card.is-visible:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px -16px rgba(0, 0, 0, 0.22);
  }
}
