/* ==========================================================================
   About Us: Our Legacy (about.html only).
   Mirrors the index.html "Their journey. Our shared Purpose." section
   (.hp-purpose, .hp-purpose-grid, .hp-purpose-copy, .hp-purpose-media, .hp-blob)
   scoped under .sec.ph-legacy so no global styles change.
   No decorative plane, tag or background shape.
   ========================================================================== */

.sec.ph-legacy {
  position: relative;
  overflow: hidden;
  padding: 40px 0 140px;
  background: radial-gradient(ellipse 60% 70% at 0% 0%, #fdf1d6 0, rgba(253, 241, 214, 0) 70%), var(--hp-cream);
}

.ph-legacy .hp-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--hp-gutter);
  position: relative;
}

.ph-legacy .hp-purpose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 70px;
  align-items: start;
}

/* copy column (as .hp-purpose-copy) */
.ph-legacy .hp-kicker {
  font-family: var(--hp-nav);
  font-size: 17px;
  color: var(--hp-orange);
  margin: 0 0 14px;
}

.ph-legacy .hp-h2 {
  font-family: var(--hp-sans);
  font-size: clamp(36px, 3.6vw, 54px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.035em;
  color: var(--hp-navy);
  margin: 0 0 26px;
  text-wrap: balance;
}

.ph-legacy .hp-h2 .hp-script {
  font-size: 60px;
  line-height: 1;
}

.ph-legacy .hp-body {
  font-size: 18px;
  line-height: 1.7;
  color: var(--hp-ink);
  max-width: 560px;
}

.ph-legacy .hp-body + .hp-body {
  margin-top: 18px;
}

/* media column (as .hp-purpose-media / .hp-blob) */
.ph-legacy .hp-purpose-media {
  position: relative;
  padding: 20px 0;
}

.ph-legacy .hp-blob {
  position: relative;
  z-index: 1;
  margin-right: auto;
  width: 94%;
}

.ph-legacy .hp-blob img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.ph-legacy .hp-blob:hover img {
  transform: translateY(-8px) rotate(-1deg);
}

/* animated backdrop behind the photo (CSS only):
   ::before = soft organic blob that slowly morphs its shape,
   ::after  = concentric dashed ring that turns slowly around it */
.ph-legacy .hp-blob::before,
.ph-legacy .hp-blob::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.ph-legacy .hp-blob::before {
  inset: 4% 2% 2% 4%;
  background: linear-gradient(135deg, #dbe8f5 0%, #fdf1e8 100%);
  border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%;
  animation: legacyBreathe 6s ease-in-out infinite;
}

/* dashed line ring removed from the image */
.ph-legacy .hp-blob::after {
  display: none;
}

@keyframes legacyBreathe {
  0%, 100% { transform: scale(1) translateY(0); }
  50%      { transform: scale(1.03) translateY(-6px); }
}

/* editorial touches on the copy */
.ph-legacy .hp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.ph-legacy .hp-kicker::before {
  content: "";
  width: 44px;
  height: 2px;
  border-radius: 2px;
  background: var(--hp-orange);
}

.ph-legacy .hp-body + .hp-body {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--hp-rule);
}

@media (prefers-reduced-motion: reduce) {
  .ph-legacy .hp-blob::before,
  .ph-legacy .hp-blob::after,
  .ph-legacy .hp-blob img {
    animation: none;
    transition: none;
  }
}

/* tablet and below: single column, photo centred under the copy */
@media (max-width: 1024px) {
  .ph-legacy .hp-purpose-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .ph-legacy .hp-purpose-media {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
}

/* phones */
@media (max-width: 720px) {
  .sec.ph-legacy {
    padding: 20px 0 90px;
  }
  .ph-legacy .hp-h2 {
    font-size: clamp(32px, 8.8vw, 42px);
    margin-bottom: 22px;
  }
  .ph-legacy .hp-h2 .hp-script {
    font-size: 1.05em;
    white-space: normal;
  }
  .ph-legacy .hp-body {
    font-size: 16px;
  }
  .ph-legacy .hp-blob {
    width: 100%;
  }
}
