/* ==========================================================================
   Programs Overview — "50+ Years of Educating Beauty Leaders"
   Dark band at both widths: eyebrow, glitter/pink heading, portrait photo,
   iridescent ring + glow decorations.
   ========================================================================== */

.po-legacy {
  position: relative;
  overflow: hidden;
  background: var(--c-black);
  padding: 64px 16px 79px;
}

/* Iridescent ring deco (bottom right, clipped; shares the home swirl asset) */
.po-legacy__swirl {
  position: absolute;
  left: 138px;
  top: 734px;
  width: 375px;
  height: 328px;
  object-fit: cover;
  max-width: none;
  pointer-events: none;
}

.po-legacy__glow { display: none; }

.po-legacy__inner {
  position: relative;
  max-width: 1200px;
  margin-inline: auto;
}

.po-legacy__eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  line-height: 18.5px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--c-pink);
}

.po-legacy__title {
  margin-top: 23px; /* Figma gap 28, cap-trim compensated */
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 38px;
  line-height: 42.9px;
  text-transform: uppercase;
}

.po-legacy__body {
  margin-top: 23px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 22.8px;
  color: var(--c-white);
}
.po-legacy__body + .po-legacy__body { margin-top: 22.8px; }

.po-legacy__photo {
  margin-top: 64px;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* ================= Desktop (>=900px) ================= */
@media (min-width: 900px) {
  .po-legacy {
    --s: calc(min(100vw, 1680px) / 1680);
    padding: calc(135 * var(--s)) var(--pad-x);
  }

  /* Ring moves to the bottom-right corner, clipped by the section */
  .po-legacy__swirl {
    left: calc(1071 * var(--s));
    top: calc(465 * var(--s));
    width: calc(537 * var(--s));
    height: calc(470 * var(--s));
  }

  /* Faint bokeh glow, bottom left */
  .po-legacy__glow {
    display: block;
    position: absolute;
    left: calc(45 * var(--s));
    top: calc(378 * var(--s));
    width: calc(630 * var(--s));
    height: auto;
    pointer-events: none;
  }

  .po-legacy__inner {
    display: flex;
    align-items: center;
    gap: calc(64 * var(--s));
  }

  .po-legacy__content {
    width: calc(568 * var(--s));
    flex-shrink: 0;
  }

  .po-legacy__eyebrow {
    font-size: 16px;
    line-height: 22.8px;
    letter-spacing: 3.2px;
  }

  .po-legacy__title {
    margin-top: 20px; /* Figma gap 28, cap-trim compensated at 57px */
    font-size: calc(57 * var(--s));
    line-height: 1.13;
  }

  .po-legacy__body { margin-top: 23px; }

  .po-legacy__photo {
    margin: 0;
    width: calc(568 * var(--s));
    height: calc(444 * var(--s));
  }

  /* Locations variant: 3-line heading, taller collage photo (568x520) */
  .po-legacy--tall .po-legacy__photo { height: calc(520 * var(--s)); }
}
