/* =========================================================================
   EVENT CASA — The Casa Collective
   Desktop values are px on the 1920 design (× var(--u)), measured from the
   bottom of the header.
   ========================================================================= */

/* ---------- Founders ---------- */
.founders {
  position: relative;
  padding-bottom: calc(62 * var(--u));
  color: var(--ink-deep);
  overflow: hidden;
}

/* Two framed portraits — box spans x 573 → 1365, y 509 → 1321 on the design */
.founders__stage {
  position: relative;
  width: calc(792 * var(--u));
  height: calc(812 * var(--u));
  margin-left: calc(573 * var(--u));
}
.founders__frame {
  position: absolute; margin: 0;
  will-change: transform;
}
.founders__inner { position: relative; will-change: transform; }
.founders__frame img { width: 100%; height: auto; }
.founders__frame--red      { left: 44.381%; top: 0;       width: 55.619%; z-index: 1; }
.founders__frame--marigold { left: 0;       top: 16.933%; width: 59.722%; z-index: 2; }
/* The photo you point at comes to the front */
.founders__frame.is-front { z-index: 5; }

/* Names */
.founders__names { margin-top: calc(32.4 * var(--u)); text-align: center; }
.founders__name {
  margin: 0;
  font-family: var(--f-garamond); font-weight: 500;
  font-size: calc(40.5 * var(--u)); line-height: 1;
  letter-spacing: .112em;
  text-transform: uppercase;
  margin-right: -.112em;               /* cancel the trailing tracking so it centres */
}
.founders__role {
  margin: calc(14 * var(--u)) 0 0;
  font-family: var(--f-garamond); font-style: italic; font-weight: 500;
  font-size: calc(35.4 * var(--u)); line-height: 1.2;
}

/* Two justified columns: x 301 → 929 and 996 → 1624 */
.founders__cols {
  display: grid;
  grid-template-columns: calc(628 * var(--u)) calc(628 * var(--u));
  column-gap: calc(67 * var(--u));
  padding-left: calc(301 * var(--u));
  margin-top: calc(104 * var(--u));
}
.founders__col p {
  margin: 0;
  font-family: var(--f-garamond); font-weight: 500;
  font-size: calc(28 * var(--u)); line-height: 1.2;
  text-align: justify; text-align-last: left;
  word-spacing: calc(-.6 * var(--u));
  hyphens: manual; -webkit-hyphens: manual;
}
.founders__col p + p { margin-top: calc(33.6 * var(--u)); }

.founders__quote,
.founders__close {
  margin: 0; text-align: center;
  font-family: var(--f-garamond); font-weight: 500;
}
.founders__quote {
  margin-top: calc(34 * var(--u));
  font-style: italic; font-size: calc(35 * var(--u)); line-height: 1.2;
}
.founders__close {
  margin-top: calc(60 * var(--u));
  font-size: calc(28 * var(--u)); line-height: 1.2;
}

/* =========================================================================
   BEHIND THE CELEBRATIONS — collage of eight photos around a centred story
   Photo coordinates (x, y, w, h) are px on the 1920 design, from the section top.
   ========================================================================= */
.people {
  position: relative;
  padding-bottom: calc(67 * var(--u));
  color: var(--ink-deep);
  overflow: hidden;
}
.ptitle--people {
  --orn-top: -14.9; --gap-l: 34.6; --gap-r: 31.2;
  height: calc(343 * var(--u));
  padding-top: calc(65.5 * var(--u));
}
.ptitle--people .ptitle__main { margin-left: calc(4 * var(--u)); }
.ptitle--people .ptitle__text { letter-spacing: calc(2 * var(--u)); }

.people__photos { position: absolute; inset: 0; pointer-events: none; }
.people__ph {
  position: absolute; margin: 0; overflow: hidden;
  left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u));
  z-index: var(--z);
  pointer-events: auto;
  will-change: transform;
  transition: box-shadow .6s var(--ease-out);
}
.people__ph img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
/* The photo you point at comes to the front */
.people__ph.is-front { z-index: 10; box-shadow: 0 18px 40px -18px rgba(42, 6, 2, .45); }

.people__copy {
  position: relative; z-index: 3;
  width: calc(762 * var(--u));
  margin: 0 auto;
  text-align: center;
}
.people__copy p {
  margin: 0;
  font-family: var(--f-garamond); font-weight: 500;
  font-size: calc(28 * var(--u)); line-height: 1.2;
  hyphens: manual; -webkit-hyphens: manual;
}
.people__copy p + p { margin-top: calc(33.6 * var(--u)); }
.people__copy .people__lead {
  margin-top: calc(35.4 * var(--u));
  font-style: italic; font-size: calc(35 * var(--u));
}
.people__copy .people__lead + p { margin-top: calc(40 * var(--u)); }
.people__steps span { display: block; }

.people__flourish {
  display: block; position: relative; z-index: 3;
  width: calc(151.6 * var(--u)); height: auto;
  margin: calc(218 * var(--u)) auto 0;
}

/* ---- Tablet & mobile ---- */
@media (max-width: 1099px) {
  .people { padding: 0 0 56px; }
  .ptitle--people { --tfs: clamp(19px, 5.7vw, 62px); --sbm: 113; height: auto; padding-top: 64px; }
  .ptitle--people .ptitle__main { margin-left: 0; }
  .ptitle--people .ptitle__text { letter-spacing: 0; }
  .people__photos {
    position: relative; inset: auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start;
    max-width: 640px; margin: 36px auto 0; padding: 0 16px;
  }
  .people__ph {
    position: relative; left: auto; top: auto; width: auto; height: auto;
    aspect-ratio: var(--w) / var(--h);
  }
  .people__ph:nth-child(even) { margin-top: 44px; }
  .people__copy { width: auto; max-width: 640px; margin-top: 40px; padding: 0 24px; }
  .people__copy p { font-size: 19px; line-height: 1.42; }
  .people__copy p + p { margin-top: 1.2em; }
  .people__copy .people__lead { font-size: 23px; line-height: 1.3; margin-top: 1.4em; }
  .people__copy .people__lead + p { margin-top: 1.4em; }
  .people__flourish { width: 104px; margin-top: 52px; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .people__copy p { font-size: 21px; }
  .people__copy .people__lead { font-size: 26px; }
}

/* ---------- Tablet & mobile ---------- */
@media (max-width: 1099px) {

  .founders { padding-bottom: 56px; }
  .founders__stage { width: min(90vw, 600px); height: calc(min(90vw, 600px) * 812 / 792); margin: 28px auto 0; }
  .founders__names { margin-top: 28px; padding: 0 16px; }
  .founders__name { font-size: clamp(17px, 4.6vw, 34px); letter-spacing: .14em; margin-right: -.14em; }
  .founders__role { font-size: clamp(16px, 4.25vw, 28px); margin-top: 8px; }
  .founders__cols {
    grid-template-columns: 1fr; row-gap: 1.2em;
    max-width: 640px; margin: 40px auto 0; padding: 0 24px;
  }
  .founders__col p { font-size: 19px; line-height: 1.42; text-align: left; }
  .founders__col p + p { margin-top: 1.2em; }
  .founders__quote { margin-top: 44px; padding: 0 24px; font-size: 23px; line-height: 1.3; }
  .founders__quote br { display: none; }
  .founders__close { margin-top: 28px; padding: 0 24px; font-size: 19px; line-height: 1.42; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .founders__col p, .founders__close { font-size: 21px; }
  .founders__quote { font-size: 26px; }
}
