/* ============================================================
   B4B GLOBAL EDGE · Individual client result pages (v2)
   Layers on top of edge.css + homepage-v2.css + service-v2.css: the
   hero, section nav and back-transition fade all come from
   service-v2.css unchanged (same "Explore" destination pattern as the
   individual What We Do service pages). Everything below the hero is
   its own thing, deliberately not the old case-study-*.html page's
   components (.split, .cs-step, .tgrid, .figs, .flow, .logo-chips):
   those read as a dense corporate deck. This reads as one flowing
   article instead: a single centred column, full-width photography
   between paragraphs, borderless stats, plain wordmarks, no card
   borders or grid lines anywhere. Same content, simpler and bigger.
   ============================================================ */

/* ---------- section rhythm ---------- */
.cs-sec{padding:clamp(4.5rem,10vw,7.5rem) 0}
.cs-sec-dark{background:var(--forest); color:var(--paper)}
.cs-sec-cream{background:var(--cream); color:var(--ink-l)}
.cs-sec-cream .cs-lede,
.cs-sec-cream .cs-chapter p{color:var(--mut-l)}
.cs-sec-dark .cs-lede{color:#FFFFFF}
.cs-sec-dark .cs-chapter p{color:#FFFFFF}

/* ---------- centred intro block (label + heading + lede) ----------
   The heading gets its own ch-based measure (scales with its own clamped
   font-size, unlike a fixed rem width) so it breaks into two even lines
   rather than however many words happen to fit a container sized for
   the smaller lede copy underneath it. */
.cs-head{max-width:64rem; margin:0 auto; text-align:center}
.cs-head h2{max-width:32ch; margin:1rem auto 0}
.cs-lede{margin-top:1.2rem; max-width:50ch; margin-inline:auto}
.cs-lede + .cs-lede{margin-top:.9rem}
.cs-emph{font-family:var(--disp); font-size:var(--fs-h3); color:var(--haze); line-height:1.35; margin-top:1.1rem}

/* ---------- a named checklist (the audience), plain and centred ---------- */
.cs-marks{display:grid; gap:.9rem; max-width:42rem; margin:2.2rem auto 0; text-align:center}
.cs-marks li{display:flex; justify-content:center; align-items:baseline; gap:.6rem; color:var(--mut-l)}
.cs-sec-dark .cs-marks li{color:var(--mut-d)}
.cs-marks .chev{color:var(--teal); font-family:var(--disp); font-size:var(--fs-h3); line-height:1.1}

/* ---------- a full-width photo, breaking out wider than the text column ---------- */
.cs-photo{
  margin:clamp(2.5rem,5vw,4rem) auto 0; max-width:68rem;
  border-radius:18px; overflow:hidden;
}
.cs-photo img{width:100%; aspect-ratio:16/9; object-fit:cover; display:block}
.cs-photo.is-tall img{aspect-ratio:4/5}

/* ---------- a numbered chapter within a section: big ghost numeral,
   short heading and paragraph, then its own full-width photo. Reads as
   one step in a story rather than a boxed case-study card. ---------- */
.cs-chapter{max-width:40rem; margin:clamp(3.5rem,7vw,5.5rem) auto 0; text-align:center}
.cs-chapter:first-of-type{margin-top:clamp(2.5rem,5vw,3.5rem)}
.cs-chapter .num{
  display:block; font-family:var(--disp); font-weight:var(--w-book); line-height:1;
  font-size:clamp(2.4rem,4.4vw,3.6rem); color:rgba(20,42,36,.14); margin-bottom:.5rem;
}
.cs-sec-dark .cs-chapter .num{color:var(--sage)}
.cs-chapter h3{font-size:var(--fs-h3)}
.cs-chapter p{margin-top:1rem; max-width:56ch; margin-inline:auto}
.cs-chapter .cs-photo{max-width:56rem}

/* ---------- big borderless stats: never a bordered grid, always just
   large numbers with a short caption, matching .cr-hero-stats ---------- */
.cs-stats{
  display:flex; flex-wrap:wrap; justify-content:center; gap:clamp(2.5rem,6vw,5rem);
  margin-top:clamp(2.5rem,5vw,3.5rem);
}
.cs-stats .cs-stat{text-align:center; max-width:18rem}
.cs-stats .cs-stat b{
  display:block; font-family:var(--disp); font-weight:var(--w-medium); line-height:1;
  font-size:clamp(2.2rem,4.4vw,3.2rem); color:inherit;
}
.cs-stats .cs-stat > span{margin-top:.6rem; display:block; color:var(--haze); font-size:var(--fs-copy)}
.cs-stats .cs-stat .tbc{margin-top:.5rem; display:block}

/* ---------- the commercial result: the single largest thing on the page ---------- */
.cs-headline-result{text-align:center; padding-top:clamp(1.5rem,4vw,2.5rem)}
.cs-headline-result .num{
  display:block; font-family:var(--disp); font-weight:var(--w-medium); line-height:1;
  font-size:clamp(6rem,18vw,12rem); color:inherit;
  /* the display face's numerals carry a decorative curl below the
     baseline that the line box doesn't account for, so a plain
     margin-top on the label isn't enough clearance at this size */
  padding-bottom:.18em;
}
.cs-headline-result .label{
  display:block; margin-top:clamp(1.8rem,4vw,3rem); font-family:var(--mono); font-weight:var(--w-medium); font-size:var(--fs-label);
  letter-spacing:var(--ls-label); text-transform:uppercase; color:var(--haze);
}

/* ---------- attendee / client names: plain large wordmarks, no chips ---------- */
.cs-names{
  display:flex; flex-wrap:wrap; justify-content:center; gap:clamp(1rem,3vw,2rem) clamp(1.6rem,4vw,3rem);
  max-width:52rem; margin:clamp(2rem,4vw,3rem) auto 0;
}
.cs-names span{
  font-family:var(--disp); font-weight:var(--w-medium); font-size:clamp(1.1rem,2vw,1.5rem);
  color:var(--haze); white-space:nowrap;
}
.cs-sec-dark .cs-names span{color:var(--sage)}

/* ---------- the campaign flow: plain flowing text, no pill chips ---------- */
.cs-flow{
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:.5rem 1rem;
  max-width:52rem; margin:clamp(2rem,4vw,3rem) auto 0;
  font-family:var(--disp); font-size:clamp(1.15rem,2.2vw,1.5rem); color:inherit;
}
.cs-flow i{font-style:normal; color:var(--teal)}

/* ---------- quotes: one big pullquote, then a plain row of shorter ones
   with no card borders or shadows, just a name and a hairline above ---------- */
.cs-quote{max-width:48rem; margin:0 auto; text-align:center}
.cs-quote blockquote{font-family:var(--disp); font-size:var(--fs-h3); line-height:1.34}
.cs-quote blockquote + blockquote{margin-top:1.6rem}
.cs-quote cite{
  display:block; margin-top:1.2rem; font-style:normal; font-family:var(--mono);
  font-size:var(--fs-label); letter-spacing:var(--ls-label); text-transform:uppercase;
  color:var(--haze); font-weight:var(--w-medium);
}

.cs-voices{
  display:flex; flex-wrap:wrap; justify-content:center; gap:clamp(2rem,5vw,4rem);
  max-width:60rem; margin:clamp(2.5rem,5vw,3.5rem) auto 0;
}
.cs-voice{flex:1 1 16rem; max-width:20rem; text-align:center; padding-top:1.4rem; border-top:1px solid var(--line-l)}
.cs-sec-dark .cs-voice{border-top-color:var(--line-d)}
.cs-voice blockquote{font-family:var(--disp); font-size:var(--fs-copy); line-height:1.5; max-width:30ch; margin-inline:auto}
.cs-voice .who{display:block; margin-top:1rem; font-size:var(--fs-copy)}
.cs-voice .who b{display:block; font-weight:var(--w-medium)}
.cs-voice .who span{color:var(--haze); font-size:var(--fs-label); letter-spacing:.02em}

/* ---------- design notes / TBC markers: kept, understated ---------- */
.cs-note{
  display:block; margin-top:1.5rem; text-align:center; font-size:var(--fs-copy);
  color:var(--mut-l); opacity:.7; font-style:italic;
}
.cs-sec-dark .cs-note{color:var(--mut-d)}

/* ============================================================
   SCROLL-ZOOM FILM · the exact same effect and frosted-glass controls
   as homepage-v2's .v2-zoom (reuses its .v2-video-controls/.v2-vc-scrub
   CSS directly from homepage-v2.css, already loaded on this page), just
   generalised in case-study-v2.js so more than one can exist per page.
   The frame starts at article width and grows to fill the screen as you
   scroll past it, the same "exciting" moment the homepage uses for its
   own film. Unlike that ambient background loop, these are real content
   (the event film, the client testimonial) so they don't loop, and stay
   paused rather than resuming if you scroll back past them again.
   ============================================================ */
.cs-zoom{position:relative; margin:clamp(2.5rem,5vw,4rem) 0}
.cs-zoom .track{height:auto; position:relative}
.cs-zoom .stage{
  position:relative; display:flex; flex-direction:column; align-items:center;
  padding:clamp(1.5rem,4vw,3rem) var(--pad);
}
.cs-zoom .frame{
  position:relative; aspect-ratio:16/9; width:min(calc(100vw - (var(--pad) * 2)), 68rem);
  border-radius:18px; overflow:hidden; background:#000;
  box-shadow:0 40px 90px rgba(20,42,36,.18);
}
.cs-zoom .frame video{width:100%; height:100%; object-fit:cover; display:block}
.cs-zoom .frame::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg, rgba(6,14,11,.25) 0%, transparent 35%, rgba(6,14,11,.6) 100%);
  opacity:var(--zoom-scrim,0); transition:opacity .4s linear;
}
/* the frosted-glass controls are shared CSS from homepage-v2.css, but its
   visibility rule is scoped to ".v2-zoom .frame.is-zoomed" so it never
   matched here under ".cs-zoom" ­- repeat it for this page's own class */
.cs-zoom .frame.is-zoomed ~ .v2-video-controls{opacity:1; pointer-events:auto}

@media (max-width:640px){
  .cs-marks{max-width:none}
  /* phones: a plain 16:9 block at full screen width, not a full-height panel */
  .cs-zoom .stage{padding:1.5rem 0 2rem}
  .cs-zoom .frame{width:100%; border-radius:0; box-shadow:none}
}

@media (prefers-reduced-motion:reduce){
  .cs-zoom .track{height:auto}
  .cs-zoom .stage{position:static; height:auto; padding:clamp(3rem,6vw,5rem) 0}
  .cs-zoom .frame{transform:none !important; width:min(90vw,60rem)}
  /* with no scroll-zoom to reach an "is-zoomed" state, show the controls
     from the start instead of leaving a poster image with no way to play it */
  .cs-zoom .v2-video-controls{
    opacity:1; pointer-events:auto; position:static; transform:none;
    margin:1rem auto 0; width:max-content;
  }
}

/* grey image placeholder, swapped for a real photograph when supplied */
.cs-ph{
  max-width:60rem; margin:clamp(1.8rem,3vw,2.6rem) auto 0; aspect-ratio:16/8;
  background:#9AA19F; border-radius:8px; display:flex; align-items:center; justify-content:center;
  font-family:var(--mono); font-size:var(--fs-label); letter-spacing:var(--ls-label);
  text-transform:uppercase; font-weight:var(--w-medium); color:rgba(255,255,255,.85);
}

/* photograph in a case study: same size as the grey placeholder it replaces */
.cs-img{max-width:60rem; margin:clamp(1.8rem,3vw,2.6rem) auto 0; aspect-ratio:16/8; border-radius:8px; overflow:hidden; background:#9AA19F}
.cs-img img{width:100%; height:100%; object-fit:cover; display:block}

/* Outlaw House mark in the case study hero: a tall stacked lockup, so it runs larger than other client logos */
.svc-hero .client-logo.is-outlaw{height:160px}
@media (max-width:900px){ .svc-hero .client-logo.is-outlaw{height:104px} }

/* heroes over a bright, busy photograph: a left-weighted overlay keeps the headline readable */
.svc-hero.is-busy .scrim{
  background:linear-gradient(90deg, rgba(9,18,15,.82) 0%, rgba(9,18,15,.58) 45%, rgba(9,18,15,.22) 100%),
             linear-gradient(180deg, rgba(9,18,15,.35) 0%, rgba(9,18,15,0) 30%, rgba(9,18,15,.55) 100%);
}
@media (max-width:760px){ .svc-hero.is-busy .scrim{background:linear-gradient(180deg, rgba(9,18,15,.55), rgba(9,18,15,.78))} }

/* hero photograph with the subject on the left: put the text on the right instead */
.svc-hero.is-text-right{justify-content:flex-end}
.svc-hero.is-text-right .wrap{max-width:min(46rem, 52%)}
.svc-hero.is-text-right .scrim{
  background:linear-gradient(270deg, rgba(9,18,15,.82) 0%, rgba(9,18,15,.58) 45%, rgba(9,18,15,.15) 100%),
             linear-gradient(180deg, rgba(9,18,15,.3) 0%, rgba(9,18,15,0) 30%, rgba(9,18,15,.5) 100%);
}
@media (max-width:760px){
  .svc-hero.is-text-right .wrap{max-width:56rem}
  .svc-hero.is-text-right .scrim{background:linear-gradient(180deg, rgba(9,18,15,.55), rgba(9,18,15,.8))}
}

/* IFX hero: the subject sits left of centre in a wide photograph. Keep his head in frame
   when the hero turns tall (tablets and phones), where the photograph is cropped from the sides */
.ifx-hero-img{object-position:12% 30%}
@media (max-width:1000px){ .ifx-hero-img{object-position:31% 0} }
@media (max-width:760px){ .ifx-hero-img{object-position:37% 0} }

/* Asbury hero: the subject sits left of centre; keep her in frame when the hero turns tall */
.asbury-hero-img{object-position:30% 20%}
@media (max-width:1000px){ .asbury-hero-img{object-position:32% 0} }
/* small round portrait above a client quote */
.cs-quote-avatar{display:block; width:clamp(9rem,16vw,12rem); height:clamp(9rem,16vw,12rem); border-radius:50%; object-fit:cover; margin:0 auto 1.6rem; border:3px solid rgba(255,255,255,.35)}

/* a long, sentence-length headline: set it at the section-heading size so it does not run to eight lines */
.svc-hero h1.is-long{font-size:clamp(1.6rem,2.8vw,2.8rem); line-height:1.14}

/* testimonial portraits, site-wide: the person should be clearly visible,
   not a thumbnail. Large circle above the guest's quote and name. */
.cs-voice .avatar{
  display:block; width:clamp(7.5rem,12vw,9rem); height:clamp(7.5rem,12vw,9rem); border-radius:50%; overflow:hidden;
  margin:0 auto 1.2rem; background:var(--deep);
}
.cs-voice .avatar img{width:100%; height:100%; object-fit:cover; display:block}

/* a document or brochure shown whole rather than cropped to the photo frame */
.cs-img.is-doc{aspect-ratio:auto; background:none; border-radius:0; overflow:visible}
.cs-img.is-doc img{height:auto; object-fit:contain; border-radius:8px}
.cs-img figcaption{margin-top:.9rem; text-align:center; font-size:var(--fs-copy); color:var(--haze)}
.cs-sec-dark .cs-img figcaption{color:var(--sage)}
/* the people who hosted or spoke: same portrait treatment as the testimonials */
.cs-hosts{margin-top:clamp(2.5rem,5vw,3.5rem); text-align:center}
.cs-hosts .cs-voices{margin-top:1.2rem}
.cs-hosts .cs-voice{border-top:0; padding-top:0}

/* ---------- brand logo wall: single-colour marks, sized by area so wide and square logos weigh the same ---------- */
.cs-logos{
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center;
  gap:clamp(1.8rem,4vw,2.8rem) clamp(2rem,5vw,3.6rem);
  max-width:62rem; margin:clamp(2.5rem,5vw,3.5rem) auto 0;
}
.cs-logos img{height:calc(var(--h) * 1px); width:auto; max-width:100%; opacity:.82}
.cs-sec-dark .cs-logos img{filter:invert(1); opacity:.9}
@media (max-width:600px){
  .cs-logos{gap:1.6rem 2rem}
  .cs-logos img{height:calc(var(--h) * .72px)}
}
