.compact-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.compact-intro__copy { min-width: 0; }

.compact-image {
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 4 / 3;
  isolation: isolate;
}

.compact-image::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 14px -14px -14px 14px;
  background: #ffcc00;
}

.compact-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 18px 42px rgba(15, 35, 66, 0.2);
  transition: transform 350ms ease, box-shadow 350ms ease;
}

.compact-image:hover img {
  transform: translate(-4px, -4px);
  box-shadow: 0 24px 52px rgba(15, 35, 66, 0.25);
}

.compact-image--students img { object-position: center 58%; }
.compact-image--network img { object-position: center; }

@media (max-width: 820px) {
  .compact-intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .compact-image { width: min(380px, calc(100% - 14px)); }
}

@media (max-width: 480px) {
  .compact-image { width: calc(100% - 10px); }
  .compact-image::before { inset: 10px -10px -10px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .compact-image img { transition: none; }
  .compact-image:hover img { transform: none; }
}
