/* ==========================================================================
   Velaharra — Partnerships page (artboard 4)
   Page-scoped styles only; shared tokens/components come from styles.css.
   ========================================================================== */

/* ---- Hero -------------------------------------------------------------- */
.pt-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50vw;
  align-items: stretch;
  background: #f6f6f7;            /* the photo's left-edge tone, so it has no edge */
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* the section's own grain (data-grain) covers photo and copy alike; the photo
   is already under it, so it skips its usual figure grain */
.pt-hero::after { z-index: 0; }
.pt-hero__image::after { display: none; }

.pt-hero__copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: max(40px, 6.5vw) 0 max(40px, 5.5vw) var(--edge);
}

/* the title runs wider than its column and sits above the smaller photo */
.pt-hero .hero__title {
  font-size: max(44px, 8.1vw);
  letter-spacing: 0;
  white-space: nowrap;
}

.pt-hero .hero__tagline { margin-top: .35em; }
.pt-hero .hero__body {
  max-width: 36em;
  margin-top: 1.8em;
  padding-right: 4vw;
}

/* one photo fills the right column; its pale edges match the section
   background, so it reads as sitting in the space rather than in a box */
.pt-hero__image {
  position: relative;
  min-height: max(360px, 34vw);
  background: #f6f6f7;
}
.pt-hero__image img,
.pt-hero__image .hover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* ---- Section heading row (title left, note right) ----------------------- */
.pt-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
  gap: max(24px, 4vw);
  align-items: start;
  padding-bottom: max(18px, 1.6vw);
  border-bottom: 1px solid var(--rule);
}
.pt-head__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: max(22px, 2.4vw);
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
}
.pt-head__body {
  max-width: 34em;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--body);
  justify-self: end;
}
.pt-head--tight .pt-head__title { font-size: max(20px, 2.15vw); }

/* ---- Partner with purpose: six sector cards ---------------------------- */
.pt-purpose {
  background: var(--light);
  border-bottom: 1px solid var(--line);
  padding: max(44px, 4vw) var(--edge) max(36px, 3.2vw);
}

.pt-sectors {
  list-style: none;
  margin: max(24px, 2vw) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.pt-sector {
  position: relative;
  text-align: center;
  padding: max(18px, 1.6vw) max(10px, 1.2vw) max(18px, 1.5vw);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pt-sector + .pt-sector::before {
  content: "";
  position: absolute;
  left: 0;
  top: max(18px, 1.6vw);
  bottom: max(18px, 1.5vw);
  width: 1px;
  background: var(--line);
  transition: opacity .25s ease;
}
.pt-sector__num {
  font-weight: 500;
  font-size: max(9px, 0.7vw);
  letter-spacing: 0.25em;
  color: var(--gray);
}
.pt-sector__icon {
  display: block;
  width: max(34px, 2.8vw);
  height: max(34px, 2.8vw);
  margin-top: 1.6em;
  color: var(--black);
  transition: transform .5s cubic-bezier(.2, 1.3, .4, 1);
}
.pt-sector__icon svg { width: 100%; height: 100%; }
.pt-sector__title {
  margin-top: 1.3em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: max(15px, 1.3vw);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1;
  transition: transform .5s cubic-bezier(.2, 1.3, .4, 1);
}
.pt-sector__body {
  max-width: 17em;
  margin-top: 1.4em;
  font-size: max(12px, 0.95vw);
  line-height: 1.6;
  color: var(--body);
  flex: 1;
}
.pt-sector__link {
  display: inline-flex;
  align-items: center;
  margin-top: 1.6em;
  color: var(--black);
  font-size: var(--fs-label);
}
.pt-sector__link .btn-arrow__icon { transition: width .4s var(--ease); }

@media (hover: hover) {
  .pt-sector:hover::before,
  .pt-sector:hover + .pt-sector::before { opacity: 0; }
  .pt-sector:hover .pt-sector__icon  { transform: translateY(-6px); }
  .pt-sector:hover .pt-sector__title { transform: translateY(-3px); transition-delay: .04s; }
  .pt-sector:hover .pt-sector__link .btn-arrow__icon { width: 2.6em; }
}

/* ---- How we work: four ways -------------------------------------------- */
.pt-how {
  background: var(--light2);
  border-bottom: 1px solid var(--line);
  padding: max(40px, 3.6vw) var(--edge) max(36px, 3.2vw);
}

.pt-ways {
  list-style: none;
  margin: max(20px, 1.6vw) 0 0;
  padding: 0;
  display: flex;
}

.pt-way {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  padding: max(18px, 1.5vw) max(14px, 1.6vw) max(20px, 1.8vw);
}
.pt-way + .pt-way::before {
  content: "";
  position: absolute;
  left: 0;
  top: max(18px, 1.5vw);
  bottom: max(20px, 1.8vw);
  width: 1px;
  background: var(--line);
  transition: opacity .25s ease;
}
.pt-way__num {
  display: block;
  font-weight: 500;
  font-size: max(9px, 0.7vw);
  letter-spacing: 0.25em;
  color: var(--gray);
}
.pt-way__title {
  margin-top: 1.4em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: max(17px, 1.5vw);
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  transition: transform .5s cubic-bezier(.2, 1.3, .4, 1);
}
.pt-way__title::after {
  content: "";
  display: block;
  width: .8em;
  height: 1px;
  background: var(--rule);
  margin-top: .8em;
  transition: width .5s cubic-bezier(.2, 1.3, .4, 1), background-color .3s ease;
}
.pt-way__body {
  max-width: 22em;
  margin-top: 1.3em;
  font-size: max(12px, 0.95vw);
  line-height: 1.65;
  color: var(--body);
}

@media (hover: hover) {
  .pt-way:hover::before,
  .pt-way:hover + .pt-way::before { opacity: 0; }
  .pt-way:hover .pt-way__title { transform: translateY(-3px); }
  .pt-way:hover .pt-way__title::after { width: 2.4em; background: var(--black); transition-delay: .05s; }
}

/* ---- Outcomes: copy + labelled gallery ---------------------------------- */
.pt-outcomes {
  background: var(--light);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 24%) minmax(0, 1fr);
  gap: max(24px, 3vw);
  align-items: end;
  padding: max(36px, 3.2vw) var(--edge) 0;
}

.pt-outcomes__copy {
  padding-bottom: max(28px, 2.4vw);
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity .9s ease, transform 1s var(--ease);
}
.pt-outcomes.is-in .pt-outcomes__copy { opacity: 1; transform: none; }

.pt-outcomes__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: max(20px, 2vw);
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
}
.pt-outcomes__body {
  margin-top: 1.4em;
  font-size: max(13px, 1.02vw);
  line-height: 1.65;
  color: var(--body);
}
.pt-outcomes__copy .btn-arrow { margin-top: 2.4em; }

.pt-outcomes__gallery { display: flex; flex-direction: column; }

.pt-outcomes__labels { margin: 0 0 max(10px, 1vw); }
/* One equal column per word (the same grid as the image strip below), text centred between the dividers. */
.pt-outcomes__labels {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}
.pt-outcomes__labels li {
  padding: .5em .4em;
  font-size: max(9px, 0.72vw);
  text-align: center;
  text-indent: .22em;            /* balances the trailing letter-spacing so the word sits centred */
  overflow-wrap: anywhere;
}

.pt-outcomes__images {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: max(6px, 0.5vw);
}
.pt-outcomes__images li {
  overflow: hidden;
  aspect-ratio: 114 / 167;
  background: var(--dark);
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity .9s ease, transform 1s var(--ease);
  transition-delay: calc(.1s + var(--i, 0) * .08s);
}
.pt-outcomes__images li:nth-child(1) { --i: 0; }
.pt-outcomes__images li:nth-child(2) { --i: 1; }
.pt-outcomes__images li:nth-child(3) { --i: 2; }
.pt-outcomes__images li:nth-child(4) { --i: 3; }
.pt-outcomes__images li:nth-child(5) { --i: 4; }
.pt-outcomes__images li:nth-child(6) { --i: 5; }
.pt-outcomes.is-in .pt-outcomes__images li { opacity: 1; transform: none; }
.pt-outcomes__images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
@media (hover: hover) {
  .pt-outcomes__images li:hover img { transform: scale(1.06); }
}

/* ---- Closing statement --------------------------------------------------- */
.pt-closing {
  background: var(--light2);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 36vw) minmax(0, 22%);
  gap: max(24px, 3vw);
  align-items: center;
  padding: max(36px, 3.4vw) var(--edge);
}

.pt-closing__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: max(26px, 2.9vw);
  line-height: 1.08;
  color: var(--black);
}
.pt-closing__line {
  display: block;
  white-space: nowrap;
  opacity: 0;
  transform: scale(.8);
  transform-origin: left center;
  transition: opacity .9s ease, transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * .16s);
}
.pt-closing.is-in .pt-closing__line { opacity: 1; transform: scale(1); }

.pt-closing__image {
  position: relative;
  aspect-ratio: 390 / 123;
  background: var(--dark);
}
.pt-closing__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pt-closing__aside {
  opacity: 0;
  transition: opacity 1.1s ease .5s;
}
.pt-closing.is-in .pt-closing__aside { opacity: 1; }
.pt-closing__aside p {
  font-size: max(13px, 1.02vw);
  line-height: 1.65;
  color: var(--body);
}
.pt-closing__aside .btn-arrow { margin-top: 2.2em; }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .pt-sectors { grid-template-columns: repeat(3, 1fr); row-gap: 8px; }
  .pt-sector:nth-child(4)::before { display: none; }
  .pt-sector:nth-child(n + 4) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .pt-hero { grid-template-columns: minmax(0, 1fr); }
  .pt-hero .hero__title { white-space: normal; }
  .pt-hero__image { min-height: 0; height: 56vw; }

  .pt-head { grid-template-columns: 1fr; gap: 14px; }
  .pt-head__body { justify-self: start; }

  .pt-ways { display: grid; grid-template-columns: repeat(2, 1fr); }
  .pt-way:nth-child(3)::before { display: none; }
  .pt-way:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .pt-outcomes { grid-template-columns: 1fr; gap: 20px; }
  .pt-outcomes__copy { padding-bottom: 0; }
  .pt-outcomes__labels { display: none; }
  .pt-outcomes__images { grid-template-columns: repeat(3, 1fr); margin-bottom: max(28px, 4vw); }
  .pt-outcomes__images li { aspect-ratio: 4 / 5; }

  .pt-closing { grid-template-columns: 1fr; gap: 24px; }
  .pt-closing__line { white-space: normal; }
  .pt-closing__image { aspect-ratio: 16 / 7; }
}

/* Phones: keep the photo beside the copy like the homepage hero */
@media (max-width: 720px) {
  .pt-hero {
    grid-template-columns: minmax(0, 62%) minmax(0, 1fr);
  }
  .pt-hero__copy { padding: max(32px, 9vw) 0 max(32px, 8vw) var(--edge); }
  .pt-hero .hero__title { font-size: 9vw; white-space: nowrap; }   /* runs over the photo column, above the photo */
  .pt-hero .hero__body { padding-right: 4vw; font-size: 3.2vw; margin-top: 1.8em; }
  .pt-hero__image {
    height: auto;
    min-height: 0;
    width: 64vw;              /* wider than its column: bleeds off the right edge */
    justify-self: start;
    aspect-ratio: 932 / 852;
    margin-top: 22vw;         /* clear the oversized title */
    margin-bottom: 8vw;
  }
  /* soften the photo's left edge into the page */
  .pt-hero__image img,
  .pt-hero__image .hover-video {
    object-position: left bottom;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 22%);
    mask-image: linear-gradient(to right, transparent, #000 22%);
  }

  .pt-sectors { grid-template-columns: 1fr 1fr; }
  .pt-sector:nth-child(odd)::before { display: none; }
  .pt-sector:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .pt-sector__body { font-size: 12px; }
}

@media (max-width: 480px) {
  .pt-sectors { grid-template-columns: 1fr; }
  .pt-sector::before { display: none; }
  .pt-sector:nth-child(n + 2) { border-top: 1px solid var(--line); }
  .pt-ways { grid-template-columns: 1fr; }
  .pt-way::before { display: none; }
  .pt-way:nth-child(n + 2) { border-top: 1px solid var(--line); }
  .pt-outcomes__images { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .pt-outcomes__copy, .pt-outcomes__images li, .pt-closing__line, .pt-closing__aside,
  .pt-sector__icon, .pt-sector__title, .pt-way__title, .pt-way__title::after, .pt-outcomes__images img {
    transition: none; opacity: 1; transform: none;
  }
}
