/* ==========================================================================
   Beyond Academics hero (beyond-academics.html only).
   Same two-column hero structure as index.html and the About / Academics
   heroes (.hp-hero, .hp-wrap, .hp-hero-grid, .hp-h1, .hp-lead, .hp-btns, .hp-pill).
   "a Classroom" uses index.html's orange .hp-script. The right side is a
   two-photo composition: a tall arch photo with a soft sky disc behind it, and
   a landscape photo overlapping its lower left. Scoped under .ph-collage.
   ========================================================================== */

.ph-collage.hp-hero {
  position: relative;
  padding: 64px 0 72px;
  overflow-x: clip;
}

.ph-collage .hp-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--hp-gutter);
  position: relative;
}

.ph-collage .hp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.ph-collage .hp-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.ph-collage .hp-hero-copy .crumbs {
  margin-bottom: 22px;
}

/* index.html heading: DM Sans, navy, with the orange script accent */
.ph-collage .hp-h1 {
  font-family: var(--hp-sans);
  font-size: clamp(44px, 4.9vw, 70px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.04em;
  color: var(--hp-navy);
  margin: 0 0 30px;
  text-wrap: balance;
}

.ph-collage .hp-h1 .hp-script {
  font-size: 1.05em;
  letter-spacing: 0;
  white-space: normal;
}

.ph-collage .hp-lead {
  font-family: var(--hp-sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--hp-ink);
  max-width: 600px;
  margin: 0 0 36px;
}

.ph-collage .hp-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* ---------- right side: two-photo composition ---------- */
.ph-collage .collage {
  position: relative;
  isolation: isolate;
  justify-self: end;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1 / 1.02;
}

/* soft sky disc behind the photos, same tone as the other heroes */
.ph-collage .collage::before {
  content: "";
  position: absolute;
  left: 2%;
  top: 6%;
  width: 72%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--hp-sky);
  z-index: -1;
}

/* tall arch photo, upper right */
.ph-collage .hp-collage-main {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: auto;
  aspect-ratio: 420 / 640;
  object-fit: cover;
  border-radius: 200px 200px 32px 32px;
  border: 8px solid #fff;
  box-shadow: 0 24px 60px rgba(14, 42, 71, .16);
}

/* landscape photo overlapping the lower left of the arch */
.ph-collage .hp-collage-side {
  position: absolute;
  left: 0;
  bottom: 4%;
  width: 64%;
  height: auto;
  aspect-ratio: 613 / 361;
  object-fit: cover;
  border-radius: 28px;
  border: 8px solid #fff;
  box-shadow: 0 20px 50px rgba(14, 42, 71, .14);
}

/* tablet and below: copy above the photos */
@media (max-width: 1024px) {
  .ph-collage.hp-hero {
    padding: 48px 0 48px;
  }
  .ph-collage .hp-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ph-collage .hp-hero-copy {
    max-width: none;
  }
  .ph-collage .collage {
    justify-self: center;
    max-width: 560px;
  }
}

/* phones */
@media (max-width: 720px) {
  .ph-collage.hp-hero {
    padding: 28px 0 40px;
  }
  .ph-collage .hp-h1 {
    font-size: clamp(40px, 11.2vw, 52px);
    line-height: 1.1;
    margin-bottom: 22px;
  }
  .ph-collage .hp-h1 .hp-script {
    font-size: 1.05em;
  }
  .ph-collage .hp-lead {
    font-size: 16px;
    margin-bottom: 28px;
  }
  .ph-collage .hp-btns {
    gap: 12px;
  }
  .ph-collage .hp-btns .hp-pill {
    flex: 1 1 auto;
    min-height: 52px;
    padding: 0 20px;
    font-size: 16px;
  }
  .ph-collage .collage {
    aspect-ratio: 1 / 1.08;
  }
  .ph-collage .hp-collage-main {
    border-width: 6px;
    border-radius: 140px 140px 24px 24px;
  }
  .ph-collage .hp-collage-side {
    border-width: 6px;
    border-radius: 22px;
  }
}

@media (max-width: 360px) {
  .ph-collage .hp-btns .hp-pill {
    font-size: 15px;
    padding: 0 16px;
  }
}
