/* ==========================================================================
   Leaf theme — hand-authored component CSS, translated 1:1 from the Claude
   Design component specs (Button.jsx, NavBar.jsx, Footer.jsx, Hero.jsx,
   SectionHeader.jsx, SectionLabel.jsx, CaseFeature.jsx, Testimonial.jsx,
   PixelAccent.jsx). Hover/press states are plain CSS (:hover/:active) rather
   than JS state, since nothing here needs JS beyond the header's scroll-linked
   condense behaviour and the pixel accent's cell cycle (see site-header.js
   and pixel-accent.js).
   Desktop-first pass — no breakpoints yet by design brief.
   ========================================================================== */

/* ---------- Icons (inline SVG, Lucide-equivalent paths, stroke 1.5) ------ */
.lf-icon{display:inline-flex;flex:0 0 auto}
.lf-icon svg{width:100%;height:100%;display:block}

/* ---------- Shared media (leaf_media() output, image or video) ----------- */
/* Every converted placement's own wrapper already sizes its <img> via a
   normal-flow width:100%;height:100%;object-fit:cover (not position:absolute
   — none of them overlay a sibling on top of the media), so this baseline
   matches that exactly and a <video> behaves identically. Where a specific
   class is already tag-agnostic (.lf-hero__bg, .lf-case-full-image), that
   class's own later, more specific rule overrides this on tie-specificity
   since .lf-media is declared first. Where the existing rule is scoped to
   `img` specifically (.lf-case-process-grid img and friends), that selector
   is extended to also match `video` rather than relying on this fallback. */
.lf-media{display:block;width:100%;height:100%;object-fit:cover;filter:var(--image-filter);background:var(--surface-panel)}

/* ---------- Site header / nav -------------------------------------------- */
.lf-header{
  position:sticky;top:0;z-index:50;
  transition:background-color var(--duration-base) var(--ease-standard),
             border-color var(--duration-base) var(--ease-standard),
             margin-bottom var(--duration-base) var(--ease-standard);
  background:var(--leaf-paper);
  border-bottom:1px solid var(--border-hairline);
}
.lf-header[data-header-theme="overlay"]{
  position:sticky; /* not fixed — respects ancestor containers, see NavBar.jsx comment */
  background:transparent;
  border-bottom-color:transparent;
}
.lf-header[data-header-theme="overlay"][data-header-state="floating"]{
  /* Round 11: pulls up exactly the bar height (--header-h) + its 1px
     hairline; the old clamp(64px,6.2vw,96px) undershot at every width
     above 390, leaving a strip of paper above the hero. */
  margin-bottom:calc(-1 * (var(--header-h) + 1px));
}
.lf-header[data-header-theme="overlay"][data-header-state="condensed"]{
  background:var(--leaf-paper);
  border-bottom-color:var(--border-hairline);
}
.lf-header__bar{
  padding-inline:var(--gutter);
  display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-6);
  min-height:72px;padding-block:var(--space-3);
  transition:height var(--duration-base) var(--ease-standard);
}
.lf-header[data-header-theme="overlay"] .lf-header__bar{
  gap:clamp(20px,3.4vw,56px);
  height:var(--header-h);
  min-height:0;padding-block:0;
}
.lf-header__logo{display:flex;align-items:center;text-decoration:none}
.lf-header__logo img{
  height:26px;width:auto;display:block;
  transition:height var(--duration-base) var(--ease-standard);
}
.lf-header[data-header-theme="overlay"] .lf-header__logo img{height:clamp(28px,calc(22px + 1.524vw),80px)}

.lf-header__nav{
  display:flex;gap:var(--space-5);margin-right:auto;flex-wrap:wrap;row-gap:var(--space-2);align-items:center;
  transition:background-color var(--duration-base) var(--ease-standard);
}
.lf-header[data-header-theme="overlay"] .lf-header__nav{gap:clamp(14px,1.9vw,32px)}
.lf-header[data-header-theme="overlay"][data-header-state="floating"] .lf-header__nav{
  background:rgba(255,255,255,.45);
  border-radius:999px;
  padding:clamp(5px,0.45vw,7px) clamp(14px,1.3vw,22px);
}
.lf-nav-link{
  font-family:var(--font-mono);font-weight:700;letter-spacing:0.1em;text-transform:uppercase;
  font-size:var(--type-label-12);color:var(--leaf-slate);text-decoration:none;padding:4px 0;
  display:inline-flex;align-items:center;background:none;border:none;border-radius:0;
  border-bottom:2px solid transparent;
  transition:var(--transition-control);cursor:pointer;
}
.lf-header[data-header-theme="overlay"] .lf-nav-link{font-size:var(--type-label)}
.lf-nav-link:hover,.lf-nav-link:focus-visible,.lf-nav-link.is-active{
  color:var(--leaf-ink);border-bottom-color:var(--leaf-lime);
}
/* Nav dropdown — Expertise / Sectors. The label stays a real link to the
   landing page; the caret is a separate control that toggles the panel.
   Open/close state (.is-open) is managed by assets/js/nav-dropdown.js. */
.lf-nav-dropdown{position:relative;display:inline-flex;align-items:center;gap:6px}
.lf-nav-caret{
  display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;
  padding:0;background:none;border:none;border-radius:0;color:inherit;cursor:pointer;
}
.lf-nav-caret svg{display:block;transition:transform var(--duration-fast) var(--ease-standard)}
.lf-nav-caret svg path{transition:stroke var(--duration-fast) var(--ease-standard)}
.lf-nav-dropdown:hover .lf-nav-caret svg path,
.lf-nav-caret.is-active svg path,
.lf-nav-dropdown.is-open .lf-nav-caret svg path{stroke:var(--leaf-lime-deep)}
.lf-nav-dropdown.is-open .lf-nav-caret svg{transform:rotate(180deg)}
.lf-nav-dropdown.is-open .lf-nav-link,
.lf-nav-dropdown:hover .lf-nav-link{border-bottom-color:var(--leaf-lime)}

.lf-nav-panel{
  display:none;position:absolute;top:100%;left:0;margin-top:10px;z-index:60;
  min-width:236px;flex-direction:column;
  background:var(--leaf-paper);border:1px solid var(--border-hairline);
  box-shadow:0 18px 40px -24px rgba(18,20,14,.38);
  padding:var(--space-3) 0;
}
.lf-nav-dropdown.is-open .lf-nav-panel{display:flex}
.lf-nav-panel__link{
  display:block;padding:9px var(--space-5);text-decoration:none;
  background:transparent;transition:var(--transition-control);
  border-left:2px solid transparent;
}
.lf-nav-panel__link:hover,.lf-nav-panel__link.is-active{background:var(--surface-panel)}
.lf-nav-panel__link.is-active{border-left-color:var(--leaf-lime)}
.lf-nav-panel__label{font-family:var(--font-core);font-size:var(--type-body-small);font-weight:500;color:var(--leaf-ink);display:block}
.lf-nav-panel__note{font-family:var(--font-core);font-size:var(--type-label-12);color:var(--text-muted);display:block;margin-top:2px}

.lf-header__cta{flex:0 0 auto}
/* Scales the header's sm button in the same proportion as the bar/logo
   height above (8px/15px at 390 -> ~12.5px/23.5px at 1440 -> 23px/43px at
   3840), so it doesn't look undersized once the header stops shrinking on
   scroll. State-independent, same size whether floating or condensed. */
.lf-header__cta .lf-btn{
  padding-block:clamp(8px,calc(6.2px + 0.4375vw),23px);
  padding-inline:clamp(15px,calc(11.8px + 0.8125vw),43px);
  gap:clamp(8px,calc(6.2px + 0.4375vw),23px);
}
/* Trigger only exists for the mobile takeover nav; shown at max-width:767px below. */
.lf-header__menu-trigger{display:none}
/* Resting-over-hero CTA gets the on-image scrim; condensed reverts to a plain
   primary button. Scoped to header state so JS only ever toggles one attribute. */
.lf-header[data-header-state="floating"] .lf-header__cta .lf-btn--primary{
  background:rgba(255,255,255,.55);color:var(--leaf-ink);border-color:var(--leaf-ink);
}

/* ---------- Buttons -------------------------------------------------------
   Default is an ink hairline outline; label/border stay ink through hover —
   only the trailing arrow moves (lime at rest, 4px slide + 1.45x scale). */
.lf-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  font-family:var(--font-mono);font-weight:700;font-size:var(--type-label-12);letter-spacing:0.1em;
  text-transform:uppercase;text-decoration:none;white-space:nowrap;line-height:1.1;
  padding:13px 22px;border-radius:var(--radius-xs);cursor:pointer;
  transition:var(--transition-control);
  background:transparent;color:var(--leaf-ink);border:1px solid var(--leaf-ink);box-shadow:none;
}
.lf-btn:active{transform:translateY(1px)}
.lf-btn--sm{padding:8px 15px;font-size:var(--type-label);gap:8px}
.lf-btn--lg{padding:17px 30px;font-size:var(--type-label-13);gap:11px}
.lf-btn--full{display:flex;width:100%}

.lf-btn--solid{background:var(--leaf-ink);color:var(--leaf-paper);border-color:var(--leaf-ink)}
.lf-btn--solid:hover,.lf-btn--solid:focus-visible{background:#2A2E20;border-color:#2A2E20}
.lf-btn--secondary{background:transparent;color:var(--text-muted);border:1px solid var(--border-hairline)}
.lf-btn--secondary:hover,.lf-btn--secondary:focus-visible{color:var(--text-strong);border-color:var(--border-strong)}
.lf-btn--accent{background:var(--surface-card);color:var(--leaf-ink);border:1px solid var(--leaf-ink);border-bottom:2px solid var(--leaf-lime)}
.lf-btn--accent:hover,.lf-btn--accent:focus-visible{background:var(--surface-panel)}
.lf-btn--ghost{background:transparent;color:var(--text-strong);border:1px solid transparent}
.lf-btn--ghost:hover,.lf-btn--ghost:focus-visible{background:var(--surface-panel)}
.lf-btn--inverse{background:transparent;color:var(--leaf-paper);border:1px solid var(--leaf-paper)}
.lf-btn--inverse:hover,.lf-btn--inverse:focus-visible{background:var(--leaf-paper);color:var(--leaf-ink)}
.lf-btn--disabled,.lf-btn[disabled]{
  background:var(--state-disabled-bg);color:var(--state-disabled-fg);
  border-color:var(--state-disabled-bg);box-shadow:none;cursor:not-allowed;
}

/* Over imagery: outline variants gain a translucent scrim for contrast. */
.lf-btn--on-image.lf-btn--primary,
.lf-btn--on-image.lf-btn--secondary,
.lf-btn--on-image.lf-btn--ghost{
  background:rgba(255,255,255,.55);color:var(--leaf-ink);border-color:var(--leaf-ink);
}

.lf-btn__arrow{
  display:inline-flex;flex:0 0 auto;width:15px;height:15px;
  color:var(--leaf-lime);transition:transform var(--duration-base) var(--ease-standard);
}
.lf-btn--sm .lf-btn__arrow{width:14px;height:14px}
.lf-btn--lg .lf-btn__arrow{width:17px;height:17px}
.lf-btn--solid .lf-btn__arrow{color:currentColor}
.lf-btn:hover .lf-btn__arrow,.lf-btn:focus-visible .lf-btn__arrow{transform:translateX(4px) scale(1.45)}
.lf-btn--arrow-left .lf-btn__arrow{order:-1}
.lf-btn--arrow-left:hover .lf-btn__arrow,.lf-btn--arrow-left:focus-visible .lf-btn__arrow{transform:translateX(-4px) scale(1.45)}

/* ---------- Section label / header ---------------------------------------- */
.lf-section-label{display:flex;align-items:center;gap:var(--space-4)}
.lf-section-label__index{font-family:var(--font-mono);font-size:var(--type-label);font-weight:700;letter-spacing:0.14em;color:var(--text-accent)}
.lf-section-label__rule{flex:1;height:1px;background:var(--border-hairline)}
.lf-section-label--center .lf-section-label__rule{display:none}

.lf-section-header{display:flex;flex-direction:column;gap:var(--space-5)}
.lf-section-header--center{max-width:62ch;margin-inline:auto;text-align:center}
.lf-section-header__row{display:flex;gap:var(--space-8);align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.lf-section-header--split .lf-section-header__row{align-items:flex-end}
.lf-section-header--center .lf-section-header__row{justify-content:center}
.lf-section-header__title{max-width:22ch;margin:0}
.lf-section-header--center .lf-section-header__title{max-width:none}
.lf-section-header__action{flex-shrink:0}
.lf-section-header__statement{max-width:38ch;color:var(--text-muted)}
.lf-section-header--center .lf-section-header__statement{max-width:none}

/* ---------- Pixel accent --------------------------------------------------- */
.lf-pixel-accent{display:grid;grid-template-columns:repeat(3,9px);gap:5px;flex:0 0 auto}
.lf-pixel-accent__cell{
  width:9px;height:9px;background:transparent;
  box-shadow:inset 0 0 0 1px rgba(18,20,14,.18);
  transition:background var(--duration-base) var(--ease-standard);
}
.lf-pixel-accent__cell.is-lit{background:var(--leaf-lime);box-shadow:none}
[data-theme="inverse"] .lf-pixel-accent__cell{box-shadow:inset 0 0 0 1px rgba(244,243,236,.22)}

/* ---------- Hero eyebrow row (shared by both hero variants) --------------- */
.lf-hero-eyebrow-row{display:flex;align-items:center;gap:var(--space-5)}
.lf-hero-crumb{display:inline-flex;align-items:baseline;gap:0.55em}
.lf-hero-crumb a{color:var(--text-muted);text-decoration:none;font:inherit;letter-spacing:inherit;text-transform:inherit}
.lf-hero-crumb a:hover{color:var(--text-strong)}
.lf-hero-crumb__dot{color:var(--leaf-lime-deep)}
.lf-accent-dash{color:var(--leaf-lime)}

/* ---------- Hero: paper / textured variant --------------------------------- */
.lf-hero--paper{
  position:relative;overflow:hidden;background:var(--leaf-paper);
  border-bottom:1px solid var(--border-hairline);
  /* Clears the floating header, which sits over this hero rather than above
     it — the texture still runs to the very top of the page. */
  padding-top:calc(var(--header-h) + 1px + var(--space-16)); /* Round 11: was clamp(56px,5.4vw,84px) + space-16 */
  padding-bottom:var(--space-12);
}
.lf-hero--paper::before{
  content:"";position:absolute;inset:0;background-image:var(--texture-grid);pointer-events:none;
}
.lf-hero--paper .lf-hero__inner{position:relative}
.lf-hero--paper .lf-hero-eyebrow-row{margin-bottom:var(--space-6)}
.lf-hero--paper .lf-hero__title{max-width:16ch}
.lf-hero--paper .lf-hero__lead{max-width:52ch;margin-top:var(--space-8);color:var(--text-muted)}
.lf-hero--paper .lf-hero__actions{display:flex;gap:var(--space-3);flex-wrap:wrap;margin-top:var(--space-8)}
.lf-hero--paper .lf-hero__meta{margin-top:var(--space-8);padding-top:var(--space-5);border-top:1px solid var(--border-hairline)}

/* ---------- Hero: full-bleed image variant --------------------------------- */
.lf-hero--image{
  position:relative;min-height:100svh;display:grid;grid-template-rows:1fr auto;
  background:var(--leaf-paper);overflow:hidden;border-bottom:1px solid var(--border-hairline);
}
.lf-hero--image .lf-hero__bg{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  filter:saturate(.55) contrast(1.02);
}
.lf-hero--image .lf-hero__scrim{position:absolute;inset:0;background:var(--scrim-image-light)}
.lf-hero--image .lf-hero__grid-texture{position:absolute;inset:0;background-image:var(--texture-grid-light);opacity:0.5}
/* Round 11/12: top padding is the header clearance — never less than the
   old fixed 96px, and never less than the header + its 1px hairline +
   a 24px (space-6) minimum gap, so content that overflows a short window
   never sits flush against the header at any width. */
.lf-hero--image .lf-hero__inner{position:relative;align-self:center;padding-top:max(var(--space-24),calc(var(--header-h) + 1px + var(--space-6)));padding-bottom:var(--space-16)}
.lf-hero--image .lf-hero-eyebrow-row{margin-bottom:var(--space-12)}
.lf-hero--image .lf-hero__title{
  color:var(--leaf-ink);max-width:13ch;
  /* Round 6 item 2: the third min() term caps growth above 1440 at the
     same +20%-at-2560 rule as the display tokens (103.68px -> 124.4px). */
  font-size:clamp(2.5rem,min(7.2vw,10.5vh,calc(4.8137rem + 1.8514vw)),7.776rem);
}
.lf-hero--image .lf-hero__rail{position:relative;padding-bottom:var(--space-12)}
.lf-hero--image .lf-hero__rail-inner{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-12);align-items:end;
  padding-top:var(--space-8);border-top:1px solid var(--border-hairline);
}
.lf-hero--image .lf-hero__lead{color:var(--text-body);max-width:46ch}
.lf-hero--image .lf-hero__actions{display:flex;gap:var(--space-3);flex-wrap:wrap}

/* ---------- Statement band -------------------------------------------------- */
.lf-statement-band{background:var(--surface-panel);border-top:1px solid var(--border-hairline);border-bottom:1px solid var(--border-hairline)}
.lf-statement-band__inner{padding-block:clamp(28px,3.2vw,52px) clamp(64px,7vw,112px);text-align:left}
.lf-statement-band__actions{margin-top:clamp(32px,4vw,56px);display:flex;justify-content:flex-start}
.lf-statement-band .lf-statement{width:66.6667%}
.lf-statement em, .lf-statement strong{font-weight:500;font-style:normal}
/* Batch 9: prose-context links are the one place the underline from
   base.css's old blanket `a` rule actually belonged — opt in here instead
   of fighting it off per non-prose component (see base.css). */
.lf-statement a{border-bottom:1px solid currentColor}
.lf-statement a:hover{border-bottom-color:var(--leaf-lime)}
/* .lf-statement wraps a WYSIWYG field's saved value, which already contains
   its own <p> — reset that inner paragraph's default browser margin so it
   doesn't reintroduce spacing the wrapper's own margin:0 can't reach. */
.lf-statement p{margin:0}

/* ---------- Case feature (work band) ---------------------------------------- */
.lf-case-feature{display:block;text-decoration:none;color:inherit}
.lf-case-feature__media{position:relative;overflow:hidden;background:var(--surface-panel);aspect-ratio:16/9}
.lf-case-feature--tall .lf-case-feature__media{aspect-ratio:4/5}
.lf-case-feature--square .lf-case-feature__media{aspect-ratio:1/1}
.lf-case-feature__media img,.lf-case-feature__media video{
  width:100%;height:100%;object-fit:cover;filter:var(--image-filter);
  transition:transform var(--duration-slow) var(--ease-standard);
}
.lf-case-feature:hover .lf-case-feature__media img,.lf-case-feature:hover .lf-case-feature__media video{transform:scale(1.025)}
.lf-case-feature__body{
  margin-top:var(--space-5);padding-bottom:var(--space-8);border-bottom:1px solid var(--border-hairline);
}
.lf-case-feature__col{min-width:0;display:flex;flex-direction:column;gap:var(--space-3)}
.lf-case-feature__client{color:var(--text-muted)}
.lf-case-feature__headline{max-width:22ch;margin:0}
.lf-case-feature__headline-text{
  box-decoration-break:clone;-webkit-box-decoration-break:clone;
  border-bottom:2px solid transparent;transition:var(--transition-control);
}
.lf-case-feature:hover .lf-case-feature__headline-text{border-bottom-color:var(--leaf-lime)}
.lf-case-feature__headline .lf-icon{display:inline-block;vertical-align:-0.1em;margin-left:0.35em;width:20px;height:20px}
.lf-case-feature__taxonomy{margin:var(--space-2) 0 0;font-family:var(--font-mono);font-size:var(--type-label);letter-spacing:0.1em;text-transform:uppercase;color:var(--text-muted)}
.lf-case-feature__metric{margin:0;max-width:46ch;font-family:var(--font-core);font-size:var(--type-body);font-weight:var(--weight-regular);line-height:var(--leading-normal);color:var(--text-body)}
.lf-case-feature__metric strong{font-family:var(--font-mono);font-weight:var(--weight-bold);color:var(--text-accent);font-variant-numeric:tabular-nums}
.lf-work-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:clamp(32px,5vw,72px);margin-top:clamp(72px,8vw,128px);align-items:start}
.lf-work-grid .lf-case-feature:nth-child(2){margin-top:clamp(0px,6vw,96px)}

/* ---------- Approach band (image band with left-to-right wash) -------------- */
.lf-approach-band{position:relative;overflow:hidden}
.lf-approach-band__bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 42%;filter:saturate(.62) contrast(1.04)}
.lf-approach-band__scrim{position:absolute;inset:0;background:linear-gradient(90deg,rgba(244,243,236,.97) 0%,rgba(244,243,236,.93) 48%,rgba(244,243,236,.62) 100%)}
.lf-approach-band__inner{position:relative;padding-block:clamp(64px,7vw,120px)}
.lf-approach-band__lead{margin:clamp(24px,2.6vw,40px) 0 0;max-width:52ch}

/* ---------- Reference section (Batch 6) -------------------------------------
   One shared component, two modes — see template-parts/reference-section.php.
   Only the quote/attribution fade wrappers ever change opacity; the label,
   both hairlines and the nav row sit outside them and never move. */
.lf-reference-section{background:var(--surface-panel);padding-block:var(--space-section)}
.lf-reference-section__label{display:flex;align-items:center;gap:var(--space-4)}
.lf-reference-section__eyebrow{color:var(--text-accent)}
.lf-reference-section__label-rule{flex:1;height:1px;background:var(--border-hairline)}
.lf-reference-section__quote-wrap{margin:0;padding-top:var(--space-12)}
.lf-reference-section__fade{transition:opacity 200ms var(--ease-standard)}
.lf-reference-section__fade.is-hidden{opacity:0}
@media (prefers-reduced-motion: reduce){
  .lf-reference-section__fade{transition:none}
}
.lf-reference-section__quote{margin:0;max-width:30ch;text-align:left;color:var(--text-strong)}
.lf-reference-section__divider{height:1px;background:var(--border-hairline);margin-top:var(--space-12)}
.lf-reference-section__footer{padding-top:var(--space-6)}
.lf-reference-section__footer .lf-label{color:var(--text-strong)}
.lf-reference-section__title{margin:var(--space-2) 0 0;font-size:var(--type-body-small);color:var(--text-muted)}
.lf-reference-section__nav{display:flex;align-items:center;gap:var(--space-4);margin-top:var(--space-10)}
.lf-reference-section__arrow{
  display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;
  padding:0;border:none;background:none;border-radius:0;color:var(--leaf-ink);
  cursor:pointer;opacity:1;transition:var(--transition-control);
}
.lf-reference-section__arrow:hover,.lf-reference-section__arrow:focus-visible{opacity:.6}
.lf-reference-section__arrow svg{display:block}
.lf-reference-section__dots{display:flex;align-items:center;gap:10px}
.lf-reference-section__dot{
  width:8px;height:8px;padding:0;border-radius:999px;border:none;
  background:var(--border-hairline);cursor:pointer;transition:var(--transition-control);
}
.lf-reference-section__dot.is-active{background:var(--leaf-lime)}

/* ---------- Contact / CTA band ---------------------------------------------- */
.lf-contact-band{background:var(--leaf-paper);border-top:2px solid var(--leaf-ink);border-bottom:2px solid var(--leaf-lime)}
.lf-contact-band__inner{
  padding-block:clamp(72px,8vw,136px);display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:clamp(32px,5vw,72px);align-items:end;
}
.lf-contact-band__title{margin:0;color:var(--leaf-ink);max-width:16ch;text-wrap:balance}
.lf-contact-band__col{display:flex;flex-direction:column;gap:clamp(20px,2.4vw,36px)}
.lf-contact-band__body{margin:0;font-size:var(--type-body-lead);line-height:1.55;color:var(--leaf-ink);max-width:40ch}

/* ---------- Footer ----------------------------------------------------------- */
.lf-footer{background:var(--leaf-green);border-top:1px solid var(--leaf-lime)}
.lf-footer__grid{
  padding:var(--space-16) var(--gutter) var(--space-8);
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(0,1.4fr);gap:var(--space-10);align-items:start;
}
/* Its own column, right-aligned, per the brief — capped so it doesn't
   stretch to fill the wider 1.4fr track (a judgement call: no size was
   given, 190px reads at roughly the same scale as the mobile 160/260px
   caps below). */
.lf-footer__brand{display:flex;justify-content:flex-end;align-items:flex-start}
.lf-footer__brand-logo{width:100%;max-width:190px;height:auto;display:block}
.lf-footer__col{display:flex;flex-direction:column;gap:10px}
/* Some headings are a <button> (Expertise/Sectors — an accordion toggle
   below 767px, see Batch 8); reset it to read as the same plain label as
   the <p> headings (Company/Offices) at every width above the breakpoint. */
.lf-footer__heading{
  font-family:var(--font-mono);font-size:var(--type-label);font-weight:700;letter-spacing:0.16em;text-transform:uppercase;
  color:var(--leaf-paper);margin:0 0 4px;background:none;border:none;padding:0;
}
.lf-footer__heading--toggle{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);width:100%;cursor:default}
.lf-footer__chevron{display:none}
.lf-footer__panel{display:contents}
.lf-footer__link{
  font-family:var(--font-core);font-size:var(--type-body-small);color:var(--leaf-paper);text-decoration:none;
  text-align:left;background:none;padding:0;transition:var(--transition-control);display:block;
}
.lf-footer__link:hover{color:var(--leaf-lime)}
.lf-footer__office{font-size:var(--type-body-small);line-height:1.5;color:var(--leaf-paper-muted);margin:10px 0 0}
.lf-footer__office:first-child{margin-top:0}
.lf-footer__legal-inner a{color:inherit}
.lf-footer__legal-inner a:hover{color:var(--leaf-lime)}
.lf-footer__legal-row{
  padding:0 var(--gutter) var(--space-10);
}
.lf-footer__legal-inner{
  border-top:1px solid var(--leaf-paper-hairline);padding-top:var(--space-5);
  display:flex;justify-content:space-between;gap:var(--space-6);flex-wrap:wrap;
  font-family:var(--font-mono);font-size:var(--type-label-10);letter-spacing:0.1em;text-transform:uppercase;color:var(--leaf-paper-muted);
}

/* ==========================================================================
   Batch 2 — Expertise landing + Expertise detail
   ========================================================================== */

/* ---------- Tag ------------------------------------------------------------ */
.lf-tag{
  display:inline-flex;align-items:center;gap:6px;
  font-family:var(--font-mono);font-weight:700;text-transform:uppercase;
  font-size:var(--type-label);letter-spacing:0.12em;line-height:1;padding:7px 11px;border-radius:var(--radius-xs);
  background:transparent;color:var(--text-muted);border:1px solid var(--border-hairline);
}
.lf-tag--sm{font-size:var(--type-label-10);padding:5px 8px}
.lf-tag--ink{background:var(--leaf-ink);color:var(--leaf-paper);border-color:var(--leaf-ink)}
.lf-tag--accent{background:var(--surface-card);color:var(--leaf-ink);border:1px solid var(--leaf-ink);border-bottom:2px solid var(--leaf-lime)}
.lf-tag--outline{background:transparent;color:var(--text-strong);border:1px solid var(--border-strong)}

/* ---------- StatBlock -------------------------------------------------------- */
.lf-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:clamp(24px,3vw,40px)}
.lf-stat-block{display:flex;flex-direction:column;gap:10px}
.lf-stat-block__value{
  font-family:var(--font-core);font-weight:500;font-size:var(--type-heading-1);
  letter-spacing:-0.04em;line-height:0.95;color:var(--text-strong);font-variant-numeric:tabular-nums;
}
.lf-stat-block__label{font-family:var(--font-core);font-size:var(--type-body-small);color:var(--text-muted);line-height:1.4;max-width:32ch;display:block}

/* ---------- PlatformChip ------------------------------------------------------ */
.lf-platform-chip{
  display:inline-flex;align-items:baseline;padding:7px 13px;border-radius:var(--radius-pill);
  border:1px solid var(--border-hairline);background:transparent;color:var(--text-strong);
  font-family:var(--font-mono);font-size:var(--type-label);font-weight:700;letter-spacing:0.08em;text-transform:uppercase;
}

/* ---------- CaseCard ----------------------------------------------------------- */
.lf-case-card{display:block;text-decoration:none;color:inherit}
.lf-case-card__media{position:relative;overflow:hidden;background:var(--surface-panel);aspect-ratio:4/3}
.lf-case-card__media img,.lf-case-card__media video{width:100%;height:100%;object-fit:cover;filter:var(--image-filter);transition:transform var(--duration-slow) var(--ease-standard)}
.lf-case-card:hover .lf-case-card__media img,.lf-case-card:hover .lf-case-card__media video{transform:scale(1.035)}
.lf-case-card__sector-tag{position:absolute;left:12px;top:12px}
.lf-case-card__body{padding-top:var(--space-4);display:flex;flex-direction:column;gap:10px}
.lf-case-card__headline{margin:0}
.lf-case-card__headline-text{box-decoration-break:clone;-webkit-box-decoration-break:clone;border-bottom:2px solid transparent;transition:var(--transition-control)}
.lf-case-card:hover .lf-case-card__headline-text{border-bottom-color:var(--leaf-lime)}
.lf-case-card__headline .lf-icon{display:inline-block;vertical-align:-0.1em;margin-left:0.35em;width:16px;height:16px}
.lf-case-card--lg .lf-case-card__media{aspect-ratio:16/9}
.lf-case-card--lg .lf-case-card__headline .lf-icon{width:20px;height:20px}
.lf-case-card__taxonomy{margin:0;font-family:var(--font-mono);font-size:var(--type-label-10);letter-spacing:0.1em;text-transform:uppercase;color:var(--text-muted)}
.lf-case-card__metric{margin:0;max-width:46ch;font-family:var(--font-core);font-size:var(--type-body);font-weight:var(--weight-regular);line-height:var(--leading-normal);color:var(--text-body)}
.lf-case-card__metric strong{font-family:var(--font-mono);font-weight:var(--weight-bold);color:var(--text-accent);font-variant-numeric:tabular-nums}
.lf-case-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:clamp(16px,1.8vw,28px)}
/* Round 6 item 5: compact card for every related-cases block (Sector
   detail, Expertise detail, Case detail related work). Image 4:5, client
   label and heading-3 title only. 1 column below 768, 2 at 768-1023, 3
   from 1024. The Work archive keeps .lf-case-card--lg. */
.lf-case-card--compact .lf-case-card__media{aspect-ratio:4/5}
.lf-case-grid--compact{grid-template-columns:minmax(0,1fr);row-gap:var(--space-10)}
@media (min-width:768px){.lf-case-grid--compact{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1024px){.lf-case-grid--compact{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* ---------- ServiceCard --------------------------------------------------------- */
.lf-service-card{
  display:flex;flex-direction:column;gap:var(--space-4);height:100%;
  background:var(--surface-card);border:var(--border-hair);padding:var(--space-8);border-radius:var(--radius-xs);
  text-decoration:none;color:inherit;transition:var(--transition-control);
}
.lf-service-card:hover{border-color:var(--border-strong)}
.lf-service-card__top{display:flex;align-items:center;justify-content:space-between}
.lf-service-card__index{font-family:var(--font-mono);font-size:var(--type-label);font-weight:700;letter-spacing:0.14em;color:var(--text-accent)}
.lf-service-card__top .lf-icon{color:var(--text-muted);transition:var(--transition-control)}
.lf-service-card:hover .lf-service-card__top .lf-icon{color:var(--leaf-ink);transform:translate(2px,-2px)}
.lf-service-card__title{margin:0}
.lf-service-card__description{margin:0;color:var(--text-muted)}
.lf-service-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:clamp(16px,1.8vw,28px)}

/* ---------- CTA band (Expertise landing + detail) -------------------------------- */
.lf-cta-band{background:var(--leaf-paper);border-top:2px solid var(--leaf-ink);border-bottom:2px solid var(--leaf-lime);position:relative;overflow:hidden}
.lf-cta-band__texture{position:absolute;inset:0;background-image:var(--texture-grid);pointer-events:none}
.lf-cta-band__inner{
  position:relative;padding-block:var(--space-section);
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));
  gap:clamp(32px,5vw,64px);align-items:end;
}
.lf-cta-band__eyebrow{margin:0 0 24px;color:var(--text-accent)}
.lf-cta-band__title{margin:0;color:var(--text-strong);max-width:18ch;text-wrap:balance}
.lf-cta-band__col{display:flex;flex-direction:column;gap:20px}
.lf-cta-band__body{margin:0;color:var(--text-muted);max-width:44ch}
.lf-cta-band__actions{display:flex;gap:12px;flex-wrap:wrap}

/* ---------- Bullet list (capability highlights, Expertise landing) ---------------- */
.lf-bullet-list{margin:0;padding:18px 0 0;list-style:none;display:flex;flex-direction:column;gap:14px;border-top:1px solid var(--border-hairline);max-width:46ch}
.lf-bullet-list__item{display:flex;gap:14px;align-items:baseline}
.lf-bullet-list__dot{width:6px;height:6px;background:var(--leaf-lime);flex:none;transform:translateY(-2px)}
.lf-bullet-list__label{font-family:var(--font-mono);font-size:var(--type-label);font-weight:700;letter-spacing:0.16em;text-transform:uppercase;color:var(--text-body)}

/* ---------- Capability row (Expertise landing's 4 bands) -------------------------- */
.lf-capability-row{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr));
  align-items:stretch;border-bottom:1px solid var(--border-hairline);
}
.lf-capability-row--paper{background:var(--leaf-paper)}
.lf-capability-row--panel{background:var(--surface-panel)}
.lf-capability-row__content{display:flex;flex-direction:column;justify-content:center;gap:var(--space-8)}
/* Round 13 item 3: align-self:center keeps the media cell at its 4:3 frame
   instead of stretching to the text column's height. On a large screen the
   text is shorter than the 4:3 image, so nothing changes there (2560:
   1279x960 before and after); on laptops the stretch was cropping the
   images to square or portrait (1440x900: 719x718, 1280x800: 639x686). */
.lf-capability-row__media{position:relative;overflow:hidden;width:100%;min-width:0;aspect-ratio:4/3;align-self:center;background:var(--surface-panel)}
.lf-capability-row__media--first{border-right:1px solid var(--border-hairline)}
.lf-capability-row__media--last{border-left:1px solid var(--border-hairline)}
.lf-capability-row__media img,.lf-capability-row__media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:var(--image-filter)}

/* ---------- Split row (Expertise detail's "in practice" steps) --------------------- */
/* Media is always the wider (3fr, 60%) track, text the narrower (2fr, 40%)
   one, whichever side the media sits on (Round 6 item 6; was 2fr/1fr).
   --media-first (set in taxonomy-service.php per-step, per the brief,
   instead of :has()) swaps which track is which. */
.lf-split-row{
  display:grid;grid-template-columns:2fr 3fr;
  gap:clamp(32px,5vw,80px);align-items:center;
}
.lf-split-row--media-first{grid-template-columns:3fr 2fr}
.lf-split-row__text{display:flex;flex-direction:column;gap:20px;max-width:46ch}
.lf-split-row__media{position:relative;aspect-ratio:4/3;overflow:hidden;background:var(--leaf-rule)}
.lf-split-row__media img,.lf-split-row__media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:var(--image-filter)}
.lf-split-row__body{margin:0;font-size:var(--type-body-lead)}
.lf-split-row__platforms{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}

/* ---------- Deliverables checklist -------------------------------------------------- */
.lf-deliverables-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:0 clamp(32px,5vw,80px)}
.lf-deliverables-grid__item{display:flex;align-items:baseline;gap:14px;padding:20px 0;border-bottom:1px solid var(--border-hairline)}
.lf-deliverables-grid__dot{width:6px;height:6px;background:var(--leaf-lime);flex:none;transform:translateY(-3px)}

/* ---------- Mid-page banner figure ---------------------------------------------------- */
.lf-mid-banner{margin:0;position:relative;border-top:1px solid var(--border-hairline);border-bottom:1px solid var(--border-hairline)}
/* Round 6 item 7: 21:9 from 768 up (was 16:9), 4:3 on mobile (see the
   Batch 9 mobile block). */
.lf-mid-banner__media{position:relative;width:100%;aspect-ratio:21/9;overflow:hidden;background:var(--surface-panel)}
.lf-mid-banner__media img,.lf-mid-banner__media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:var(--image-filter)}
.lf-mid-banner__caption{padding:14px var(--gutter);color:var(--text-muted)}

/* ==========================================================================
   Batch 3 — Sectors landing + Sector Detail
   ========================================================================== */

/* ---------- Sector row (Sectors landing's 3 bands) --------------------------- */
.lf-sector-row--paper{background:var(--leaf-paper)}
.lf-sector-row--panel{background:var(--surface-panel)}
.lf-sector-row__grid{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  gap:var(--space-12);margin-top:var(--space-12);align-items:start;
}
.lf-sector-row__media{position:relative;aspect-ratio:4/3;overflow:hidden;background:var(--surface-panel)}
.lf-sector-row__media img,.lf-sector-row__media video{width:100%;height:100%;object-fit:cover;filter:var(--image-filter)}
.lf-sector-bullets{list-style:none;margin:var(--space-8) 0 0;padding:0;border-top:var(--border-hair)}
.lf-sector-bullets__item{display:flex;gap:var(--space-4);align-items:baseline;padding:var(--space-4) 0;border-bottom:var(--border-hair)}
.lf-sector-bullets__dot{width:6px;height:6px;background:var(--leaf-lime);flex:0 0 auto}
.lf-sector-platforms{display:flex;gap:10px;flex-wrap:wrap;margin-top:var(--space-6)}

/* ---------- Sector Detail: covers (statement + body 2-col) -------------------- */
.lf-covers-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:64px;margin-top:40px}
/* Round 13 item 5: medium weight like the section titles around it (the
   shared .lf-statement is light); size, leading and measure unchanged. */
.lf-covers-grid__statement{max-width:24ch;font-weight:var(--weight-medium)}
.lf-covers-grid__body{display:flex;flex-direction:column;gap:20px}

/* ---------- Sector Detail: moments ("How it actually runs") ------------------- */
/* Round 6 item 4: two columns from 768 up. Left: the moments stacked, each
   title with its text directly under it. Right: the image, top-aligned
   with the first moment. One column below 768 with the image first (see
   the Batch 7 mobile block). */
.lf-moments{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,5vw,80px);align-items:start}
.lf-moments--no-media{grid-template-columns:minmax(0,1fr)}
.lf-moments__list{display:flex;flex-direction:column;gap:clamp(40px,4vw,72px)}
.lf-moments__media{display:flex;flex-direction:column;gap:var(--grid-gap)}
.lf-moment{display:grid;grid-template-columns:6px minmax(0,1fr);column-gap:20px;align-items:start}
.lf-moment__dot{display:block;width:6px;height:6px;background:var(--leaf-lime);margin-top:0.55em}
.lf-moment__content{display:flex;flex-direction:column;gap:var(--space-5)}
.lf-moment__title{max-width:22ch;margin:0}
.lf-moment__body{display:flex;flex-direction:column;gap:20px;max-width:64ch}
/* Round 6 item 3 converted this from a clamped height to aspect-ratio;
   item 4 moved it into the right-hand column, so 4:3 from 768 up (the
   1:1 mobile crop from .lf-media-wide still applies below 768). */
.lf-moment__image{margin:0;width:100%;aspect-ratio:4/3;overflow:hidden}
.lf-moment__image img,.lf-moment__image video{display:block;width:100%;height:100%;object-fit:cover;filter:var(--image-filter)}
.lf-covers-banner{margin:0;width:100%;aspect-ratio:100/38;overflow:hidden}
.lf-covers-banner img,.lf-covers-banner video{display:block;width:100%;height:100%;object-fit:cover;filter:var(--image-filter)}

/* ---------- Sector Detail: other sectors (simple inline links) ----------------- */
.lf-other-sectors{
  display:flex;gap:clamp(24px,3vw,48px);flex-wrap:wrap;align-items:center;
  padding-top:32px;border-top:1px solid var(--border-hairline);
}
.lf-other-sectors__label{color:var(--text-muted)}
.lf-other-sectors__link{
  font-family:var(--font-core);font-size:var(--type-heading-3);font-weight:500;letter-spacing:-0.01em;
  color:var(--text-muted);text-decoration:none;border-bottom:2px solid transparent;transition:var(--transition-control);
}
.lf-other-sectors__link:hover{color:var(--text-strong);border-bottom-color:var(--leaf-lime)}

/* ==========================================================================
   Batch 4 — Work archive (filtering) + Case Detail
   ========================================================================== */

/* ---------- Work archive: filter panel ------------------------------------ */
.lf-filter-panel{
  display:flex;flex-direction:column;gap:var(--space-6);
  margin-top:var(--space-12);padding:var(--space-8) var(--gutter);
  margin-inline:calc(-1 * var(--gutter));
  background:var(--surface-panel);border-top:1px solid var(--border-hairline);border-bottom:1px solid var(--border-hairline);
}
.lf-filter-group{display:grid;grid-template-columns:minmax(0,160px) minmax(0,1fr);gap:20px;align-items:baseline}
.lf-filter-group__pills{display:flex;flex-wrap:wrap;gap:10px}
.lf-filter-divider{height:1px;background:var(--border-hairline)}
.lf-filter-pill{
  display:inline-flex;align-items:center;padding:9px 16px;border-radius:var(--radius-pill);
  font-family:var(--font-mono);font-weight:700;font-size:var(--type-label);letter-spacing:0.1em;text-transform:uppercase;
  cursor:pointer;transition:var(--transition-control);
  background:transparent;color:var(--text-muted);border:1px solid var(--border-hairline);
}
.lf-filter-pill:hover:not(.is-active){border-color:var(--border-strong);color:var(--text-strong)}
.lf-filter-pill.is-active{background:var(--leaf-ink);color:var(--leaf-paper);border-color:var(--leaf-ink)}

.lf-filter-status{
  display:flex;justify-content:space-between;align-items:baseline;gap:24px;flex-wrap:wrap;
  margin-top:var(--space-8);padding-bottom:var(--space-4);border-bottom:1px solid var(--border-hairline);
}
.lf-filter-reset{background:none;border:0;padding:0;font:inherit;color:var(--text-accent);cursor:pointer}
.lf-filter-reset:hover{color:var(--text-strong)}
.lf-filter-empty{margin:var(--space-12) 0 0;color:var(--text-muted)}

.lf-work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--grid-gap);row-gap:var(--space-16);margin-top:var(--space-12)}

/* ---------- Case Detail: hero tag row -------------------------------------- */
.lf-case-hero-tags{
  margin-top:var(--space-8);padding-top:var(--space-5);border-top:1px solid var(--border-hairline);
  display:flex;flex-wrap:wrap;gap:var(--space-3);align-items:center;
}
.lf-case-hero-tags__meta{color:var(--text-muted)}

/* ---------- Case Detail: at-a-glance -------------------------------------- */
.lf-glance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:var(--space-8);margin-top:var(--space-8);align-items:start}
.lf-glance-item{display:flex;flex-direction:column;gap:var(--space-2)}
.lf-glance-item__label{color:var(--text-muted)}
.lf-glance-item__value{margin:0}

/* ---------- Case Detail: narrative sections (Challenge/Approach/Result) ------ */
.lf-case-section-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:clamp(32px,5vw,96px);margin-top:var(--space-10);align-items:start}
.lf-case-section-grid__title{margin:0;max-width:20ch;text-wrap:balance}
.lf-case-section-grid__body{display:flex;flex-direction:column;gap:var(--space-5);max-width:64ch}
.lf-case-channels{margin-top:var(--space-3);padding-top:var(--space-5);border-top:1px solid var(--border-hairline)}
.lf-case-channels__label{display:block;margin-bottom:var(--space-4);color:var(--text-muted)}
.lf-case-channels__row{display:flex;flex-wrap:wrap;gap:var(--space-2)}

/* ---------- Case Detail: images -------------------------------------------- */
.lf-case-full-image{margin:0;display:block;width:100%;object-fit:cover;filter:var(--image-filter)}
/* Round 13 item 1b: the tall image (after The challenge) is 21:9, the mid
   banner's existing ratio (was 100/54), capped so it never fills a short
   screen: the visible height under the sticky header minus two section
   paddings, so the next section's label and the start of its title are
   on screen with it. Still the 1:1 mobile crop (.lf-media-bleed) below 768.
   Round 13 item 1a: the mid image (before The result) shows the whole
   image at its own proportions at every width: no aspect-ratio, no crop,
   and no .lf-media-bleed class in single-case.php. */
.lf-case-full-image--tall{aspect-ratio:21/9;height:auto;max-height:calc(100svh - var(--header-h) - 1px - 2 * var(--space-section))}
.lf-case-full-image--mid{height:auto}
.lf-case-full-image-caption{color:var(--text-muted);padding-top:var(--space-4)}
.lf-case-process-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:var(--space-6)}
.lf-case-process-grid img,.lf-case-process-grid video{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;filter:var(--image-filter)}

/* ---------- Case Detail: video play block ---------------------------------- */
.lf-case-video{position:relative;display:block;width:100%;padding:0;border:1px solid var(--border-hairline);background:none;cursor:pointer;overflow:hidden}
.lf-case-video img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;filter:var(--image-filter)}
.lf-case-video__scrim{position:absolute;inset:0;background:var(--scrim-image-light);pointer-events:none}
.lf-case-video__control{position:absolute;left:var(--space-6);bottom:var(--space-6);display:inline-flex;align-items:center;gap:var(--space-3)}
.lf-case-video__play-icon{display:grid;place-items:center;width:56px;height:56px;border:1px solid var(--leaf-ink);background:rgba(255,255,255,.55)}
.lf-case-video__label{color:var(--leaf-ink)}
.lf-case-video-embed{position:relative;width:100%;aspect-ratio:16/9;background:var(--leaf-ink)}
.lf-case-video-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* ---------- Case Detail: gallery -------------------------------------------- */
.lf-case-gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:var(--space-6);margin-top:var(--space-10)}
.lf-case-gallery-grid img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;filter:var(--image-filter)}
.lf-case-gallery-grid img.lf-case-gallery-grid__wide{aspect-ratio:16/10;grid-column:1/-1}

/* ==========================================================================
   Batch 5 — About, Insights archive/detail, Get in touch
   ========================================================================== */

/* ---------- Prose (WYSIWYG body content) --------------------------------
   Bare tags a WYSIWYG field naturally emits, styled to match the design's
   type scale without requiring the editor to add any classes. Reused by
   the Insight body and the About intro body. */
.lf-prose{max-width:64ch;display:flex;flex-direction:column;gap:var(--space-5)}
.lf-prose > *{margin:0}
.lf-prose p{font-family:var(--font-core);font-size:var(--type-body);font-weight:var(--weight-regular);line-height:var(--leading-relaxed);text-wrap:pretty}
.lf-prose > p:first-of-type{font-family:var(--font-core);font-size:var(--type-body-lead);font-weight:var(--weight-light);line-height:var(--leading-normal);letter-spacing:-0.008em;color:var(--leaf-ink)}
.lf-prose h2{font-family:var(--font-core);font-weight:var(--weight-medium);line-height:var(--leading-snug);letter-spacing:var(--tracking-heading);font-size:var(--type-heading-2);max-width:22ch;text-wrap:balance;margin-top:var(--space-4)}
.lf-prose ul{list-style:none;display:flex;flex-direction:column;gap:var(--space-4);padding:4px 0}
.lf-prose li{display:flex;gap:14px;align-items:flex-start}
.lf-prose li::before{content:"";width:6px;height:6px;background:var(--leaf-lime);margin-top:9px;flex:none}
.lf-prose blockquote{margin:0;padding:var(--space-6) 0;border-top:1px solid var(--border-hairline);border-bottom:1px solid var(--border-hairline)}
.lf-prose blockquote p{font-family:var(--font-core);font-size:var(--type-heading-3);font-weight:var(--weight-medium);line-height:1.3;letter-spacing:var(--tracking-heading);color:var(--leaf-ink);max-width:32ch}
.lf-prose a{color:var(--text-accent);border-bottom:1px solid currentColor}
.lf-prose a:hover{border-bottom-color:var(--leaf-lime)}
/* Muted-after-first-paragraph rule, used by the About intro body only —
   scoped so it never leaks into the Insight body's plain prose treatment. */
.lf-prose--muted-tail > p:not(:first-of-type){color:var(--text-muted)}
/* Default page template (page.php: Privacy policy and any plain page) —
   gutter, title spacing, and a legal-text prose variant: no lead first
   paragraph, block list items (inline <strong> inside a flex li splits
   into separate flex items), and real tables. */
.lf-page .entry-header{margin-bottom:var(--space-10)}
.lf-prose--legal > p:first-of-type{font-size:var(--type-body);font-weight:var(--weight-regular);line-height:var(--leading-relaxed);letter-spacing:normal}
.lf-prose--legal h2{margin-top:var(--space-10)}
.lf-prose--legal li{display:block;position:relative;padding-left:20px;font-size:var(--type-body);line-height:var(--leading-relaxed)}
.lf-prose--legal li::before{position:absolute;left:0;top:0}
.lf-prose--legal a{word-break:break-word}
.lf-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.lf-prose table{width:100%;border-collapse:collapse;font-family:var(--font-core);font-size:var(--type-body-small);line-height:1.5}
.lf-prose th,.lf-prose td{text-align:left;vertical-align:top;padding:var(--space-3) var(--space-4) var(--space-3) 0;border-bottom:1px solid var(--border-hairline)}
.lf-prose th{font-family:var(--font-mono);font-size:var(--type-label);font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:var(--text-muted);border-bottom-color:var(--leaf-ink)}
.lf-prose th:last-child,.lf-prose td:last-child{padding-right:0}

/* ---------- About: stat strip -------------------------------------------- */
.lf-about-stat-strip{border-top:1px solid var(--border-hairline);border-bottom:1px solid var(--border-hairline);background:var(--surface-panel)}
.lf-about-stat-strip__row{display:flex;gap:var(--space-10);flex-wrap:wrap;padding-block:14px}
.lf-about-stat-strip__item{display:flex;gap:10px;align-items:center;font-weight:var(--weight-regular);letter-spacing:0.1em;color:var(--text-muted)}
.lf-about-stat-strip__dot{width:5px;height:5px;background:var(--leaf-lime);flex:none}

/* ---------- About: intro (Who we are) ------------------------------------ */
.lf-about-intro-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:64px;margin-top:40px;align-items:start}
.lf-about-intro-grid__statement{max-width:20ch}

/* ---------- About: how we work -------------------------------------------- */
.lf-about-locations-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:var(--grid-gap);margin-top:clamp(40px,4vw,64px)}
.lf-about-locations-grid figure{margin:0}
.lf-about-locations-grid__media{overflow:hidden;aspect-ratio:16/9;background:var(--border-hairline)}
.lf-about-locations-grid__media img,.lf-about-locations-grid__media video{width:100%;height:100%;object-fit:cover;filter:var(--image-filter);display:block}
.lf-about-locations-grid figcaption{margin-top:12px;display:flex;gap:10px;align-items:baseline;color:var(--text-muted)}
.lf-about-locations-grid figcaption span:first-child{color:var(--text-accent)}
.lf-about-points-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:clamp(24px,3vw,48px);margin-top:clamp(48px,5vw,80px);padding-top:40px;border-top:1px solid var(--border-hairline)}
.lf-about-points-grid__item{display:flex;flex-direction:column;gap:14px}
.lf-about-points-grid__index{color:var(--text-accent)}
.lf-about-points-grid__title{max-width:18ch}
.lf-about-points-grid__body{color:var(--text-muted)}

/* ---------- About: team ---------------------------------------------------- */
.lf-about-team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:clamp(20px,2.4vw,36px);margin-top:clamp(40px,4vw,64px)}
.lf-team-card{margin:0;display:flex;flex-direction:column;gap:var(--space-4)}
.lf-team-card__media{position:relative;overflow:hidden;aspect-ratio:3/4;background:var(--surface-panel)}
.lf-team-card__media img{width:100%;height:100%;object-fit:cover;filter:var(--image-filter-duotone);transition:filter var(--duration-slow) var(--ease-standard)}
.lf-team-card:hover .lf-team-card__media img{filter:var(--image-filter)}
.lf-team-card__name{margin:0}
.lf-team-card__role{margin:4px 0 0;color:var(--text-muted)}
.lf-team-card__based{margin:10px 0 0;padding-top:10px;border-top:1px solid var(--border-hairline);color:var(--text-muted)}

/* ---------- About: contact -------------------------------------------------- */
.lf-about-contact-figure{margin:clamp(40px,4vw,64px) 0 0}
.lf-about-contact-figure__media{overflow:hidden;aspect-ratio:16/9;background:var(--border-hairline)}
.lf-about-contact-figure__media img,.lf-about-contact-figure__media video{width:100%;height:100%;object-fit:cover;filter:var(--image-filter);display:block}
.lf-about-contact-figure figcaption{margin-top:12px;display:flex;gap:10px;align-items:baseline;color:var(--text-muted)}
.lf-about-contact-figure figcaption span:first-child{color:var(--text-accent)}
.lf-about-offices-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:clamp(24px,3vw,48px);margin-top:clamp(40px,4vw,64px)}
.lf-about-office-card{background:var(--surface-card);border:1px solid var(--border-hairline);border-radius:var(--radius-xs);padding:var(--space-8);display:flex;flex-direction:column;gap:16px}
.lf-about-office-card__region{color:var(--text-accent)}
.lf-about-office-card__address{color:var(--text-muted)}

/* ---------- Insights: archive grid ---------------------------------------- */
.lf-insight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-16) var(--grid-gap);margin-top:var(--space-12)}
.lf-insight-card{display:flex;flex-direction:column;gap:20px;text-decoration:none;color:inherit}
.lf-insight-card__media{overflow:hidden;background:var(--surface-panel);aspect-ratio:4/3}
.lf-insight-card__media img{width:100%;height:100%;object-fit:cover;filter:var(--image-filter);transition:transform 420ms cubic-bezier(.2,0,.15,1)}
.lf-insight-card:hover .lf-insight-card__media img{transform:scale(1.035)}
.lf-insight-card__body{display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--border-hairline);padding-top:16px}
.lf-insight-card__title{margin:0;max-width:24ch;text-wrap:pretty}
.lf-insight-card__excerpt{margin:0;color:var(--text-muted);max-width:42ch;text-wrap:pretty}

/* ---------- Insight Detail --------------------------------------------- */
.lf-insight-meta-row{display:flex;flex-wrap:wrap;gap:var(--space-8);align-items:baseline;padding:var(--space-5) 0;border-bottom:1px solid var(--border-hairline)}
.lf-insight-meta-row__topic{color:var(--text-accent)}
.lf-insight-figure{margin:0;padding:var(--space-12) var(--gutter) 0}
.lf-insight-figure__media{aspect-ratio:16/9;overflow:hidden;background:var(--surface-panel)}
.lf-insight-figure__media img,.lf-insight-figure__media video{width:100%;height:100%;object-fit:cover;display:block;filter:var(--image-filter)}
.lf-insight-article{padding:var(--space-section) var(--gutter)}

/* ---------- Get in touch: form + offices ------------------------------- */
.lf-contact-grid{display:flex;flex-wrap:wrap;gap:var(--space-16);align-items:flex-start}
.lf-contact-grid__form{flex:1 1 440px;min-width:0}
.lf-contact-grid__lead{margin:var(--space-5) 0 0;color:var(--text-muted);max-width:52ch;text-wrap:pretty}
.lf-contact-grid__aside{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:var(--space-10);border-top:1px solid var(--border-hairline);padding-top:var(--space-8)}
/* Round 14 item 2d: named contact (4:5 portrait, the compact case card
   ratio; 400px max on desktop, 320px below 768) above address-only
   offices. The old .lf-contact-grid__aside-lead and --bordered office
   modifier are gone with the markup that used them. */
.lf-contact-person{display:flex;flex-direction:column;gap:var(--space-5);padding-bottom:var(--space-10);border-bottom:1px solid var(--border-hairline)}
.lf-contact-person__photo{display:block;width:100%;max-width:400px;height:auto;aspect-ratio:4/5;object-fit:cover;filter:var(--image-filter)}
.lf-contact-person__text{display:flex;flex-direction:column;gap:var(--space-1)}
.lf-contact-person__name{margin:0}
.lf-contact-person__role{margin:0;color:var(--text-muted)}
.lf-contact-offices{display:flex;flex-direction:column;gap:var(--space-6)}
.lf-contact-office{display:flex;flex-direction:column;gap:var(--space-2)}
.lf-contact-office__region{color:var(--text-muted)}
.lf-contact-office__address{margin:0;max-width:28ch}
@media (max-width:767px){.lf-contact-person__photo{max-width:320px}}
.lf-contact-office__meta{margin:0;line-height:2;color:var(--text-muted)}
.lf-contact-office__meta a{color:var(--text-accent)}

/* WPForms Lite reskin — mapped onto our own tokens so the embedded form
   matches the Input/Textarea/Button specs rather than WPForms' own theme. */
.lf-contact-grid__form .wpforms-container{margin-top:var(--space-10)}
.lf-contact-grid__form .wpforms-form{display:flex;flex-direction:column;gap:var(--space-6)}
.lf-contact-grid__form .wpforms-field{padding:0!important;margin:0!important}
/* Round 14 item 2c: one field per row, each the full width of the form
   column (was a wrapping flex row, which put Name/Email and Company/
   Message side by side at ~240px each). !important on the input widths:
   WPForms' own stylesheet loads later and caps .wpforms-field-medium at
   60% with a more specific selector. */
.lf-contact-grid__form .wpforms-field-container{display:flex;flex-direction:column;gap:var(--space-6)}
.lf-contact-grid__form .wpforms-field-container>.wpforms-field{width:100%;min-width:0}
.lf-contact-grid__form .wpforms-field-row .wpforms-field{width:100%;min-width:0}
.lf-contact-grid__form label.wpforms-field-label{display:block;font-family:var(--font-mono);font-size:var(--type-label);font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:var(--text-muted);margin-bottom:8px}
.lf-contact-grid__form .wpforms-required-label{color:var(--leaf-signal)}
.lf-contact-grid__form input[type=text].wpforms-field-medium,
.lf-contact-grid__form input[type=email].wpforms-field-medium,
.lf-contact-grid__form input[type=tel].wpforms-field-medium,
.lf-contact-grid__form textarea.wpforms-field-medium{
  width:100%!important;max-width:100%!important;box-sizing:border-box;font-family:var(--font-core);font-size:var(--type-body);
  color:var(--leaf-ink);background:var(--surface-page);border:1px solid var(--border-hairline);
  border-radius:var(--radius-xs);padding:13px 14px;transition:var(--transition-control);
}
.lf-contact-grid__form textarea.wpforms-field-medium{resize:vertical;min-height:160px}
.lf-contact-grid__form input:focus,
.lf-contact-grid__form textarea:focus{outline:none;border-color:var(--leaf-ink)}
.lf-contact-grid__form .wpforms-field-description{margin-top:8px;font-size:var(--type-label-12);color:var(--text-muted)}
.lf-contact-grid__form .wpforms-field-sublabel{display:none}
.lf-contact-grid__form .wpforms-submit-container{display:flex;align-items:center;gap:var(--space-5);flex-wrap:wrap;padding-top:var(--space-2);margin:0!important}
/* !important throughout: WPForms' own "modern" theme stylesheet
   (wpforms-full.min.css) loads after components.css and some of its
   button rules match or exceed this selector's specificity, so a plain
   override loses the cascade without it. */
.lf-contact-grid__form button.wpforms-submit{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;
  font-family:var(--font-mono)!important;font-weight:700!important;font-size:var(--type-label-12)!important;letter-spacing:0.1em!important;text-transform:uppercase!important;
  background:var(--leaf-ink)!important;color:var(--leaf-paper)!important;border:1px solid var(--leaf-ink)!important;border-radius:var(--radius-xs)!important;
  padding:13px 22px!important;cursor:pointer;transition:var(--transition-control);box-shadow:none!important;
}
.lf-contact-grid__form button.wpforms-submit:hover,
.lf-contact-grid__form button.wpforms-submit:focus-visible{background:var(--leaf-lime-deep)!important;border-color:var(--leaf-lime-deep)!important;color:var(--leaf-ink)!important}
.lf-contact-grid__form .wpforms-confirmation-container{
  font-family:var(--font-core);font-size:var(--type-body-lead);padding:var(--space-8) 0 0;border:none;background:none;color:var(--leaf-ink);
}
.lf-contact-grid__form .wpforms-error{color:var(--leaf-signal);font-size:var(--type-label-12);margin-top:6px}

/* ==========================================================================
   Batch 7 — Mobile (max-width: 767px)

   First breakpoint in the system (previously a deliberate "desktop-first
   pass — no breakpoints yet", see the file header). 767px matches the
   takeover nav's own threshold (Leaf_Mobile_Nav_Walker / mobile-nav.js), so
   nav and layout flip together. Most fluid clamp()-based type/spacing needed
   no change at all — this block covers what was genuinely fixed-width: the
   handful of 2-column grids that don't use the auto-fit/minmax(min(100%,…))
   pattern (that pattern already collapses itself), the new nav, and tap
   targets. Written once here rather than per template, per the brief.
   ========================================================================== */
@media (max-width:767px){

  /* ---- Front-page statement: full width below the 768px breakpoint where
     it's two-thirds of the shell. ---- */
  .lf-statement-band .lf-statement{width:100%}

  /* ---- Insights grid (archive + related insights): one column below
     768px, two from 768 up. ---- */
  .lf-insight-grid{grid-template-columns:1fr}

  /* ---- Expertise detail "in practice" rows: single column below 768px
     (was auto-fit, now a fixed 1fr/2fr grid that needs an explicit
     collapse). The existing order:-1 rule above still puts media first. ---- */
  .lf-split-row,.lf-split-row--media-first{grid-template-columns:1fr}

  /* ---- Header: hamburger trigger replaces the desktop nav row + CTA ---- */
  .lf-header__nav,.lf-header__cta{display:none}
  .lf-header__menu-trigger{
    display:inline-flex;align-items:center;justify-content:center;
    width:44px;height:44px;margin-left:auto;padding:0;
    background:none;border:none;border-radius:0;color:var(--leaf-ink);cursor:pointer;
  }

  /* ---- Mobile takeover nav (full-page, paper ground, never a lime fill) --- */
  .lf-mobile-nav{
    position:fixed;inset:0;z-index:200;background:var(--leaf-paper);
    display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;
  }
  .lf-mobile-nav[hidden]{display:none}
  .lf-mobile-nav__header{
    display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);flex:none;
    padding:var(--space-3) var(--gutter);border-bottom:1px solid var(--border-hairline);min-height:72px;
  }
  .lf-mobile-nav__logo{height:26px;width:auto;display:block}
  .lf-mobile-nav__close{
    width:44px;height:44px;flex:none;display:inline-flex;align-items:center;justify-content:center;
    padding:0;background:none;border:none;border-radius:0;color:var(--leaf-ink);cursor:pointer;
  }
  .lf-mobile-nav__list{padding:0 var(--gutter);flex:1}
  .lf-mobile-nav__item{border-bottom:1px solid var(--border-hairline)}
  .lf-mobile-nav__row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4)}
  .lf-mobile-nav__link{
    flex:1;min-width:0;display:flex;align-items:center;min-height:56px;
    font-family:var(--font-core);font-size:1.5rem;font-weight:500;letter-spacing:-0.02em;
    color:var(--leaf-ink);text-decoration:none;
  }
  .lf-mobile-nav__link.is-active::after{
    content:"";width:6px;height:6px;border-radius:999px;background:var(--leaf-lime);margin-left:10px;flex:none;
  }
  .lf-mobile-nav__toggle{
    width:44px;height:44px;flex:none;display:inline-flex;align-items:center;justify-content:center;
    padding:0;background:none;border:none;border-radius:0;color:var(--leaf-slate);cursor:pointer;
  }
  .lf-mobile-nav__toggle svg{transition:transform var(--duration-fast) var(--ease-standard)}
  .lf-mobile-nav__toggle[aria-expanded="true"] svg{transform:rotate(180deg);color:var(--leaf-lime-deep)}
  .lf-mobile-nav__panel[hidden]{display:none}
  .lf-mobile-nav__panel{padding-bottom:var(--space-4)}
  .lf-mobile-nav__child-link{
    display:block;min-height:44px;padding:12px 0 12px var(--space-4);
    border-left:2px solid var(--border-hairline);text-decoration:none;
  }
  .lf-mobile-nav__child-link.is-active{border-left-color:var(--leaf-lime)}
  .lf-mobile-nav__child-label{display:block;font-family:var(--font-core);font-size:1.0625rem;font-weight:500;color:var(--leaf-ink)}
  .lf-mobile-nav__child-note{display:block;margin-top:2px;font-family:var(--font-core);font-size:var(--type-body-small);color:var(--text-muted)}
  .lf-mobile-nav__cta{padding:var(--space-8) var(--gutter) var(--space-10);flex:none}
  .lf-mobile-nav__cta .lf-btn{justify-content:space-between;min-height:52px}

  /* ---- Reference section: 44px tap targets (visual dot/arrow size unchanged) */
  .lf-reference-section__arrow{width:44px;height:44px}
  .lf-reference-section__dot,
  .lf-reference-section__dot.is-active{width:44px;height:44px;background:none;border-radius:0;position:relative}
  .lf-reference-section__dot::after{
    content:"";position:absolute;inset:0;margin:auto;width:8px;height:8px;border-radius:999px;background:var(--border-hairline);
  }
  .lf-reference-section__dot.is-active::after{background:var(--leaf-lime)}

  /* ---- Grid collapse: fixed (non-auto-fit) 2-column layouts stack to one.
     Everything using repeat(auto-fit,minmax(min(100%,…),1fr)) elsewhere
     already collapses itself and needed no rule here. ---- */
  .lf-hero--image .lf-hero__rail-inner,
  .lf-contact-band__inner,
  .lf-sector-row__grid,
  .lf-covers-grid,
  .lf-moments{
    grid-template-columns:1fr;align-items:start;
  }
  /* Round 6 item 4: image first on mobile, then the moments. */
  .lf-moments__media{order:-1}
  .lf-covers-grid{gap:32px}
  .lf-work-grid{grid-template-columns:1fr}
  .lf-filter-group{grid-template-columns:1fr;gap:10px}
}

/* ==========================================================================
   Client logo band (shared: homepage + About)

   Round 6 item 1: a continuous right-to-left marquee, replacing Batch 8's
   static row and Batch 9/10's mobile finger-scroll. The section bleeds
   edge to edge; only the "Clients" label sits in the gutter shell. The
   track holds the set twice (second copy aria-hidden, see
   template-parts/client-logo-band.php) and slides by -50%, i.e. exactly
   one set. Each set is at least 100vw wide (min-width + space-around) so
   a short list never shows a gap at the seam, and carries its own
   trailing gap (padding-right) so the seam spacing matches the rest.
   Round 9 item 2: logos are sized by equal visual area, not equal
   height. --logo-side (L) is the side of the reference square: 60px at
   390 -> 96px at 1440, then the label rule (+20% by 3840, i.e. 115.2px).
   Each <img> carries --logo-kw/--logo-kh from client-logo-band.php
   (width = L x kw, height = L x kh; kh = min(1/sqrt(ratio), 88/96)).
   Round 9 item 4: logos show in their original colours (Batch 8's
   grayscale/contrast filter and 0.72 opacity removed).
   ========================================================================== */
.lf-logo-band-section{
  --logo-side:clamp(60px,min(calc(46.629px + 3.4286vw),calc(84.48px + 0.8vw)),115.2px);
  /* Round 9 item 3: 40px at 390 -> 72px at 1440, then the same label rule
     as --logo-side (+20% by 3840, i.e. 86.4px). Each set's trailing
     padding-right equals this gap, so the loop seam stays seamless. */
  --logo-gap:clamp(40px,min(calc(28.114px + 3.0476vw),calc(63.36px + 0.6vw)),86.4px);
  background:var(--surface-panel);border-top:1px solid var(--border-hairline);border-bottom:1px solid var(--border-hairline);
  padding-block:var(--space-8);
}
.lf-logo-band-section__label{margin:0 0 var(--space-6)}
.lf-logo-marquee{overflow:hidden}
.lf-logo-marquee:focus-visible{outline:2px solid var(--leaf-lime);outline-offset:-2px}
.lf-logo-marquee__track{display:flex;width:max-content;animation:lf-logo-marquee 40s linear infinite}
.lf-logo-marquee:hover .lf-logo-marquee__track,
.lf-logo-marquee:focus-within .lf-logo-marquee__track{animation-play-state:paused}
@keyframes lf-logo-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.lf-logo-band{
  display:flex;flex:0 0 auto;align-items:center;justify-content:space-around;
  min-width:100vw;gap:var(--logo-gap);padding:0 var(--logo-gap) 0 0;margin:0;list-style:none;
}
.lf-logo-band>li{flex:0 0 auto;display:flex;align-items:center}
.lf-logo-band img{width:calc(var(--logo-side) * var(--logo-kw,1));height:calc(var(--logo-side) * var(--logo-kh,1));object-fit:contain;display:block}
@media (prefers-reduced-motion: reduce){
  .lf-logo-marquee__track{animation:none;width:auto}
  .lf-logo-band[aria-hidden="true"]{display:none}
  .lf-logo-band{
    flex:1 1 auto;min-width:0;flex-wrap:wrap;justify-content:flex-start;
    column-gap:var(--logo-gap);row-gap:var(--space-6);padding-inline:var(--gutter);
  }
}

/* ==========================================================================
   Batch 8 — Mobile: footer accordion, tap targets, landscape image crop
   ========================================================================== */
@media (max-width:767px){

  /* ---- Footer: logo at 50vw ---- */
  .lf-footer__brand-logo{width:50vw;max-width:260px}

  /* ---- Footer: Expertise/Sectors become accordions; Company loses its
     grouping header and stays flat links (already flat markup — nothing
     else to do for it here). ---- */
  .lf-footer__heading--toggle{min-height:56px;border-bottom:1px solid var(--leaf-paper-hairline);cursor:pointer}
  .lf-footer__heading.lf-footer__heading--toggle{
    font-family:var(--font-core);font-size:1.375rem;font-weight:500;letter-spacing:-0.02em;
    text-transform:none;color:var(--leaf-paper);
  }
  .lf-footer__heading--hide-mobile{display:none}
  .lf-footer__chevron{display:flex;flex:0 0 auto;color:var(--leaf-paper-muted)}
  .lf-footer__chevron svg{transition:transform var(--duration-fast) var(--ease-standard)}
  .lf-footer__heading--toggle[aria-expanded="true"] .lf-footer__chevron{color:var(--leaf-lime)}
  .lf-footer__heading--toggle[aria-expanded="true"] .lf-footer__chevron svg{transform:rotate(180deg)}
  .lf-footer__panel{display:none}
  .lf-footer__panel.is-open{display:flex;flex-direction:column;gap:0;padding:var(--space-3) 0 var(--space-5)}
  .lf-footer__panel .lf-footer__link{
    font-size:1.0625rem;color:var(--leaf-paper-muted);border-left:2px solid var(--leaf-paper-hairline);
    padding:12px 0 12px var(--space-4);min-height:44px;display:flex;align-items:center;
  }

  /* ---- Tap targets: buttons and footer links meet 44px minimum. Raise the
     box, not the padding, so labels stay optically centred. Desktop sizing
     is untouched — these rules only exist below the breakpoint. ---- */
  .lf-btn{min-height:44px}
  .lf-footer__link{min-height:44px;display:flex;align-items:center}

  /* ---- In-content media: superseded by the shared .lf-media-wide /
     .lf-media-bleed rule, Batch 9, below — every selector that used to be
     hardcoded here now carries one of those two classes instead. ---- */
}

/* ==========================================================================
   Batch 9 — Shared media-crop utilities (.lf-media-wide / .lf-media-bleed)

   Added alongside a component's own class on the media wrapper (or,
   where the theme renders a bare <img> with no wrapper, directly on the
   <img>) — never a replacement for it. The component class still owns
   position/overflow/background and its own desktop aspect-ratio or
   clamped height; these two utilities only own the focus-point read and
   the mobile square override, so any future in-content image gets both by
   adding one class instead of growing a hardcoded selector list (see the
   former Batch 8 list, now removed above). `.lf-media-wide` marks a
   normal aspect-ratio image; `.lf-media-bleed` marks an edge-to-edge band
   that clamps its height on desktop — both behave identically here, since
   both need the same mobile release. Full-bleed HERO backgrounds
   (.lf-hero--image .lf-hero__bg) and the homepage/Sector "Approach"
   full-bleed band backgrounds deliberately never carry either class — a
   hero/band background is the viewport, not a frame in the flow.
   ========================================================================== */
.lf-media-wide>img,.lf-media-bleed>img,
img.lf-media-wide,img.lf-media-bleed{
  object-position:var(--media-focus,50% 50%);
}

@media (max-width:767px){
  /* !important is deliberate: a utility class must always win this
     override regardless of how specific the component's own compound
     selector is — the exact Batch 7/8 .is-active specificity trap the
     brief flagged, sidestepped for good instead of re-solved rule by rule. */
  .lf-media-wide,.lf-media-bleed,
  img.lf-media-wide,img.lf-media-bleed{
    aspect-ratio:1/1!important;height:auto!important;
  }

  /* ---- Expertise: force image-before-text at the mobile breakpoint on
     both templates that alternate media side on desktop (Expertise
     Landing's capability rows, Expertise Detail's "In practice" steps).
     Desktop alternation and markup order are untouched — this is a pure
     visual reorder of the two existing children. ---- */
  .lf-capability-row__media,
  .lf-split-row__media{
    order:-1;
  }

  /* ---- Round 6 item 6: Expertise detail's "In practice" images crop to
     4:3 on mobile instead of the shared 1:1. Two classes + !important to
     beat the .lf-media-wide utility above. ---- */
  .lf-split-row__media.lf-media-wide{aspect-ratio:4/3!important}
  /* ---- Round 6 item 7: Expertise detail's mid-page banner, 4:3 on mobile. */
  .lf-mid-banner__media.lf-media-wide{aspect-ratio:4/3!important}

  /* ---- Footer: ease the transition from the CTA band above and tighten
     row spacing. Batch 9 also centred this content; Batch 10 corrected
     that back to left-aligned-to-the-gutter, so nothing here overrides
     alignment any more — every row just inherits the shared, always-left
     base rule (heading space-between, office/legal text-align left).
     Desktop footer is untouched throughout. ---- */
  .lf-footer__grid{padding-top:clamp(72px,16vw,104px);gap:var(--space-6);grid-template-columns:1fr}
  .lf-footer__brand{order:-1;justify-content:flex-start}
  .lf-footer__brand-logo{width:30vw;max-width:160px}
  .lf-footer__col{gap:0}
  .lf-footer__heading--toggle{min-height:44px}
  .lf-footer__office{margin-top:6px}
}
