/* ==========================================================================
   APPROACH · HOW WE WORK TOGETHER · LIVING FORMS  (?offers=living, default)
   A still ivory ground, three bold forms, and type that answers the pointer.
   Geometry: scripts/living-design.js · motion: scripts/living.js

   ≥ 1180px  Stage: one 1760 × 760 composition under the heading, scaled as a
             unit; text is placed and sized in the same frame (--u).
   < 1180px  Stack: each form stretched to its own text; zig-zag from 700px.
   ========================================================================== */

.lv-art, .lv-shape, .lv-symbol { display: none; }

.offers[data-mode="living"] {
  --lv-ground: var(--approach-canvas, #FFF4EE);   /* the same canvas as the philosophies */
  --lv-ink:    #17151B;
  --lv-soft:   #5C534F;   /* eyebrow: 6.8:1 on the ground */
  --lv-ivory:  #FFF6EA;
  background: var(--lv-ground);
  color: var(--lv-ink);
  padding: 0 0 clamp(4.5rem, 2rem + 6vw, 8.5rem);
}
.offers[data-mode="living"] .offers__art,
.offers[data-mode="living"] .offers__threads,
.offers[data-mode="living"] .offer__shape,
.offers[data-mode="living"] .offer__symbol { display: none; }
.offers[data-mode="living"] .lv-art,
.offers[data-mode="living"] .lv-shape,
.offers[data-mode="living"] .lv-symbol { pointer-events: none; }

/* ---------- Heading ---------------------------------------------------------
   No visible heading: the forms follow the philosophies directly. The eyebrow and
   h2 stay in the document, visually hidden, so the section keeps its name
   ("How We Work Together", via aria-labelledby) and the #offers anchor works. */
.offers[data-mode="living"] .offers__head {
  position: absolute;
  width: 1px; height: 1px;
  margin: 0; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Offers: shared ------------------------------------------------ */
.offers[data-mode="living"] .offer--individual { color: var(--lv-ink); }
.offers[data-mode="living"] .offer--group      { color: var(--lv-ivory); }
.offers[data-mode="living"] .offer--community  { color: var(--lv-ink); }
.offers[data-mode="living"] .lv-symbol { display: block; overflow: visible; }
.offers[data-mode="living"] .offer__name-vis { display: block; }
/* letters and words made by the script: inline-block so they can be nudged,
   with each letter's kerning restored as a margin (see living.js) */
.offers[data-mode="living"] .lv-word { display: inline-block; white-space: nowrap; }
.offers[data-mode="living"] .lv-ch { display: inline-block; }
.offers[data-mode="living"] .lv-symbol,
.offers[data-mode="living"] .offer__name-vis,
.offers[data-mode="living"] .offer__desc,
.offers[data-mode="living"] .lv-ch { will-change: translate; }

/* ---------- Stage (≥ 1180px) ---------------------------------------------- */
@media (min-width: 1180px) {
  .offers[data-mode="living"] .offers__stage {
    --u: calc(100cqi / 1760);
    position: relative;
    width: min(100% - 2 * var(--gutter), 105rem);
    aspect-ratio: 1760 / 760;
    margin: var(--ap-gap-desk, 2.75rem) auto 0;   /* ≈ 60–80 px from the philosophy art to the first form */
    container-type: inline-size;
  }
  .offers[data-mode="living"] .lv-art {
    display: block;
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    overflow: visible;
  }
  .offers[data-mode="living"] .offers__list { position: absolute; inset: 0; margin: 0; width: auto; display: block; }
  .offers[data-mode="living"] .offer {
    position: absolute;
    left: calc(var(--vx) / 1760 * 100%);
    top: calc(var(--vy) / 760 * 100%);
    width: calc(var(--vw) / 1760 * 100%);
    padding: 0; border: 0;
  }
  .offers[data-mode="living"] .offer__name { font-size: max(1.375rem, 36 * var(--u)); margin-bottom: calc(14 * var(--u)); }
  .offers[data-mode="living"] .offer__desc { font-size: max(0.9375rem, 22.5 * var(--u)); max-width: none; color: inherit; }
  .offers[data-mode="living"] .lv-symbol {
    width: calc(76 * var(--u)); height: calc(76 * var(--u));
    margin: 0 0 calc(18 * var(--u)) calc(-6 * var(--u));
  }
}

/* ---------- Stack (< 1180px) ---------------------------------------------- */
@media (max-width: 1179.98px) {
  .offers[data-mode="living"] .offers__stage {
    position: relative;
    width: min(100% - 2 * var(--gutter), 46rem);
    margin: var(--ap-gap-narrow, 2rem) auto 0;   /* measured from the philosophy text column, which keeps the height of the longest philosophy */
  }
  .offers[data-mode="living"] .offers__list { display: grid; gap: clamp(2.5rem, 1rem + 5vw, 4rem); margin: 0; padding: 0; width: auto; }
  .offers[data-mode="living"] .offer {
    position: relative;
    container-type: inline-size;
    min-width: 0;
    aspect-ratio: 400 / 450;
    display: flex; flex-direction: column; justify-content: center;
    padding: 0; border: 0;
  }
  .offers[data-mode="living"] .lv-shape {
    display: block;
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    overflow: visible;
  }
  .offers[data-mode="living"] .offer__text {
    position: relative; z-index: 1;
    padding: calc(var(--vpt) * 100cqi) calc(var(--vpr) * 100cqi) calc(var(--vpb) * 100cqi) calc(var(--vpl) * 100cqi);
  }
  .offers[data-mode="living"] .offer__name { font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem); }
  .offers[data-mode="living"] .offer__desc { font-size: var(--fs-body); max-width: none; color: inherit; }
  .offers[data-mode="living"] .lv-symbol { width: 3.5rem; height: 3.5rem; margin: 0 0 0.9rem -0.25rem; }
}
@media (min-width: 700px) and (max-width: 1179.98px) {
  .offers[data-mode="living"] .offer { width: min(64%, 29rem); }
  .offers[data-mode="living"] .offer--group { margin-left: auto; margin-top: -10%; }
  .offers[data-mode="living"] .offer--community { margin-left: 8%; margin-top: 0; }
}
@media (max-width: 699.98px) {
  .offers[data-mode="living"] .offer { width: 100%; }
}

/* Entrance choreography: styles/approach-motion.css + scripts/approach-motion.js */

@media (max-width: 380px) {
  /* the narrowest phones: a little more room at the top-left, where the forms curve in */
  .offers[data-mode="living"] .offer__text { padding-top: calc((var(--vpt) + 0.025) * 100cqi); padding-left: calc((var(--vpl) + 0.02) * 100cqi); padding-bottom: calc((var(--vpb) + 0.04) * 100cqi); }
  .offers[data-mode="living"] .lv-symbol { margin-left: 0; }
}
