/* ==========================================================================
   Sports & Physical Education (beyond-academics.html, #sports only).
   Two columns: an organic blob photo on the left, the copy and sport chips on
   the right. The photo's blob outline is a light blue ring, as in the design.
   Existing classes are kept (.msplit, .media, .copy, .kicker, .h2, .copy-18,
   .mini-h, .chips). Buttons are not used in this section.
   ========================================================================== */

#sports {
  position: relative;
  overflow-x: clip;
}

#sports .msplit {
  width: min(1320px, calc(100% - (var(--hp-gutter) * 2)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

/* ---------- left: blob photo ---------- */
#sports .media {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

/* the photo is shown as supplied: no background, ring or clipping */
#sports .sp-blob {
  position: relative;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

#sports .sp-blob img {
  display: block;
  width: 100%;
  height: auto;
  background: none;
  transform: none;
  transition: none;
}

/* ---------- right: copy ---------- */
#sports .copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

#sports .kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--hp-nav);
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hp-orange);
  margin-bottom: 18px;
}

#sports .kicker::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--hp-orange);
}

#sports .h2 {
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 1.08;
  margin: 0 0 22px;
  text-wrap: balance;
}

#sports .copy-18 {
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
  max-width: 560px;
}

#sports .mini-h {
  font-family: var(--hp-nav);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hp-orange);
  margin: 40px 0 18px;
}

/* ---------- heading: "Perform." in index.html's orange script ---------- */
#sports .sp-h2 {
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 1.08;
  margin: 0 0 22px;
  text-wrap: balance;
}

#sports .sp-h2 .hp-script {
  display: inline-block;
  font-size: 1.05em;
  letter-spacing: 0;
  white-space: normal;
  transform-origin: 0 80%;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

#sports .sp-h2:hover .hp-script {
  transform: rotate(-3deg) scale(1.04);
}

/* ---------- sport chips: round shapes with hover motion ---------- */
#sports .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#sports .chips li {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border: 1px solid #d5dde8;
  border-radius: 999px;
  background: #fff;
  font-family: var(--hp-nav);
  font-size: 16px;
  line-height: 1.2;
  color: var(--hp-navy);
  white-space: nowrap;
  cursor: default;
  transition: color .35s ease, border-color .35s ease;
}

/* simple fill that slides in from the left on hover */
#sports .chips li::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--hp-navy);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

/* staggered height gives the cloud of round shapes a playful rhythm */
#sports .chips li:nth-child(3n + 2) {
  margin-top: 8px;
}

#sports .chips li:nth-child(4n + 3) {
  margin-bottom: 6px;
}

#sports .chips li:hover,
#sports .chips li:focus-visible {
  color: #fff;
  border-color: var(--hp-navy);
}

#sports .chips li:hover::after,
#sports .chips li:focus-visible::after {
  transform: scaleX(1);
}

/* the round photo breathes a little on hover */


#sports .sp-blob img {
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}

#sports .media:hover .sp-blob img {
  transform: scale(1.04);
}

/* ---------- tablet: stack, photo first ---------- */
@media (max-width: 1024px) {
  #sports .msplit {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
  #sports .media {
    max-width: 560px;
  }
  #sports .copy-18 {
    max-width: none;
  }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  #sports .msplit {
    gap: 32px;
  }
  #sports .media {
    max-width: 100%;
  }
  #sports .h2 {
    font-size: clamp(34px, 9.5vw, 42px);
  }
  #sports .copy-18 {
    font-size: 16px;
  }
  #sports .mini-h {
    margin-top: 30px;
  }
  #sports .chips {
    gap: 10px;
  }
  #sports .chips li {
    padding: 10px 16px;
    font-size: 15px;
    white-space: normal;
  }
}


@media (prefers-reduced-motion: reduce) {
  #sports .chips li,
  #sports .chips li::after,
  #sports .sp-h2 .hp-script,
  #sports .sp-blob,
  #sports .sp-blob img {
    transition: none;
  }
  #sports .sp-h2:hover .hp-script,
  #sports .media:hover .sp-blob img {
    transform: none;
  }
}
