/* ==========================================================================
   APPROACH · HOW WE WORK TOGETHER · THE LIVING FIELD  (?offers=field)
   The Runway background is the only moving environment; three SVG forms
   with real HTML text sit in its open centre.

   ≥ 1280px  Stage. The section is the video's own 16:9 frame, full width.
             Forms, text and heading are placed in the video's 1920 × 1080
             pixel space (--u = one video pixel), so they stay registered to
             the artwork at every width.
   < 1280px  Bands. The top and bottom of the same artwork frame the section
             (their contour lines fade into the cream); the heading sits on
             the top band's open cream and the forms stack between.
   ========================================================================== */

.lf-band, .lf-media, .lf-art, .lf-shape, .lf-symbol, .lf-toggle { display: none; }

.offers[data-mode="field"] {
  --lf-field: #FEF2E4;     /* the video's cream as Chrome renders it (measured: 254 242 228) */
  --lf-ink:   #17151B;
  --lf-ivory: #FFF6EA;
  --lf-orange: #FF612A;    /* ink on orange 6.0:1 */
  --lf-cobalt: #2451E8;    /* ivory on cobalt 5.7:1 */
  --lf-yellow: #F9CB42;    /* ink on yellow 11.8:1 */
  --u: calc(100cqi / 1920);
  container-type: inline-size;
  background: var(--lf-field);
  color: var(--lf-ink);
  padding: 0;
}
.offers[data-mode="field"] .offers__art,
.offers[data-mode="field"] .offers__threads,
.offers[data-mode="field"] .offer__shape,
.offers[data-mode="field"] .offer__symbol { display: none; }

.offers[data-mode="field"] .lf-video {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  background: var(--lf-field);
}
.offers[data-mode="field"] .lf-art,
.offers[data-mode="field"] .lf-shape,
.offers[data-mode="field"] .lf-symbol { pointer-events: none; }

/* heading: the site's type, set over the artwork. A cream knockout stroke
   (painted under the letters) lets the contour lines pass behind the words. */
.offers[data-mode="field"] .offers__head { position: relative; z-index: 2; text-align: center; }
.offers[data-mode="field"] .offers__eyebrow,
.offers[data-mode="field"] .offers__title { position: relative; color: var(--lf-ink); }
.offers[data-mode="field"] .offers__eyebrow::before,
.offers[data-mode="field"] .offers__title::before {
  /* a copy of the words, painted in the field colour with a wide stroke, under the real text */
  content: attr(data-knock);
  position: absolute; inset: 0;
  z-index: -1;
  color: var(--lf-field);
  -webkit-text-stroke: 0.5em var(--lf-field);
  pointer-events: none;
}
.offers[data-mode="field"] .offers__title::before { -webkit-text-stroke-width: 0.66em; }

.offers[data-mode="field"] .offer--individual { color: var(--lf-ink); }
.offers[data-mode="field"] .offer--group      { color: var(--lf-ivory); }
.offers[data-mode="field"] .offer--community  { color: var(--lf-ink); }
.offers[data-mode="field"] .lf-symbol { display: block; overflow: visible; }

.offers[data-mode="field"] .lf-toggle:not([hidden]) {
  display: grid;
  position: absolute;
  right: clamp(0.75rem, 0.4rem + 1vw, 1.5rem);
  bottom: clamp(0.75rem, 0.4rem + 1vw, 1.5rem);
  z-index: 4;
}
.offers[data-mode="field"] .lf-toggle:focus-visible { outline: 2px solid var(--lf-ivory); outline-offset: 3px; }

/* ---------- Stage (≥ 1280px) -------------------------------------------- */
@media (min-width: 1280px) {
  .offers[data-mode="field"] .offers__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 1080;
    margin: 0;
  }
  .offers[data-mode="field"] .lf-media { display: block; position: absolute; inset: 0; }
  .offers[data-mode="field"] .lf-art {
    display: block;
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    overflow: visible;
  }
  .offers[data-mode="field"] .offers__head {
    position: absolute;
    top: calc(214 * var(--u));
    left: 0; right: 0;
    width: auto; margin: 0; padding: 0;
  }
  .offers[data-mode="field"] .offers__eyebrow { margin: 0 0 calc(14 * var(--u)); font-size: max(0.71875rem, 17 * var(--u)); }
  .offers[data-mode="field"] .offers__title { font-size: max(2.125rem, 64 * var(--u)); }

  .offers[data-mode="field"] .offers__list { position: absolute; inset: 0; margin: 0; width: auto; display: block; }
  .offers[data-mode="field"] .offer {
    position: absolute;
    left: calc(var(--lx) / 1920 * 100%);
    top: calc(var(--ly) / 1080 * 100%);
    width: calc(var(--lw) / 1920 * 100%);
    padding: 0; border: 0;
  }
  .offers[data-mode="field"] .offer__name { font-size: max(1.375rem, 36 * var(--u)); margin-bottom: calc(14 * var(--u)); }
  .offers[data-mode="field"] .offer__desc { font-size: max(0.9375rem, 22.5 * var(--u)); max-width: none; }
  .offers[data-mode="field"] .lf-symbol {
    width: calc(76 * var(--u)); height: calc(76 * var(--u));
    margin: 0 0 calc(18 * var(--u)) calc(-6 * var(--u));
  }
}

/* ---------- Bands (< 1280px) -------------------------------------------- */
@media (max-width: 1279.98px) {
  .offers[data-mode="field"] {
    /* the artwork is shown wider than the screen (k × width) so its fields keep their scale */
    --k: 1.45;
    --vid-h: calc(var(--k) * 100cqi * 9 / 16);
    --band: calc(var(--vid-h) * 0.56);       /* top and bottom bands each show ~56% of the frame */
    padding: calc(var(--vid-h) * 0.29) 0 calc(var(--band) * 0.6);
  }
  .offers[data-mode="field"] .lf-band {
    display: block;
    position: absolute; left: 0; right: 0;
    height: var(--band);
    overflow: hidden;
    z-index: 0;
  }
  .offers[data-mode="field"] .lf-band .lf-video {
    position: absolute;
    left: calc((1 - var(--k)) * 100% * var(--ax, 0.5));   /* --ax: which part of the frame's width shows (0 left … 1 right) */
    width: calc(var(--k) * 100%); height: var(--vid-h);
  }
  .offers[data-mode="field"] .lf-band--top { top: 0; -webkit-mask-image: linear-gradient(#000 58%, transparent 98%); mask-image: linear-gradient(#000 58%, transparent 98%); }
  .offers[data-mode="field"] .lf-band--top .lf-video { top: 0; --ax: 0.42; }
  .offers[data-mode="field"] .lf-band--bottom { bottom: 0; -webkit-mask-image: linear-gradient(transparent 2%, #000 40%); mask-image: linear-gradient(transparent 2%, #000 40%); }
  .offers[data-mode="field"] .lf-band--bottom .lf-video { bottom: 0; --ax: 0.66; }

  .offers[data-mode="field"] .offers__head { width: min(100% - 2 * var(--gutter), 46rem); margin: 0 auto; }
  .offers[data-mode="field"] .offers__eyebrow { margin-bottom: 0.7rem; }
  .offers[data-mode="field"] .offers__title { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.625rem); }

  .offers[data-mode="field"] .offers__stage {
    position: relative; z-index: 1;
    width: min(100% - 2 * var(--gutter), 46rem);
    margin: clamp(2.5rem, 1.5rem + 4vw, 4rem) auto 0;
  }
  .offers[data-mode="field"] .offers__list { display: grid; gap: clamp(2.5rem, 1rem + 5vw, 4rem); margin: 0; padding: 0; width: auto; }
  .offers[data-mode="field"] .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="field"] .lf-shape {
    display: block;
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    overflow: visible;
  }
  .offers[data-mode="field"] .offer__text {
    position: relative; z-index: 1;
    padding: calc(var(--lpt) * 100cqi) calc(var(--lpr) * 100cqi) calc(var(--lpb) * 100cqi) calc(var(--lpl) * 100cqi);
  }
  .offers[data-mode="field"] .offer__name { font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem); }
  .offers[data-mode="field"] .offer__desc { font-size: var(--fs-body); max-width: none; }
  .offers[data-mode="field"] .lf-symbol { width: 3.5rem; height: 3.5rem; margin: 0 0 0.9rem -0.25rem; }
}
@media (min-width: 700px) and (max-width: 1279.98px) {
  .offers[data-mode="field"] .offer { width: min(64%, 29rem); }
  .offers[data-mode="field"] .offer--group { margin-left: auto; margin-top: -8%; }
  .offers[data-mode="field"] .offer--community { margin-left: 12%; margin-top: -8%; }
}
@media (max-width: 699.98px) {
  .offers[data-mode="field"] { --k: 2; }
  .offers[data-mode="field"] .offer { width: 100%; }
}
