/* ============================================================
   B4B GLOBAL EDGE · What We Do (v2)
   Layers on top of edge.css + homepage-v2.css, reusing the same
   full-screen, scroll-driven language as homepage-v2. Only loaded
   by what-we-do-v2.html.
   ============================================================ */

/* ============================================================
   1 · HEADER OVERRIDE
   The page opens straight into .wwd-stages (a light, cream section) rather
   than a dark hero, but .hdr's nav links are always white (edge.css) on
   the assumption there's a dark band underneath at the top of the page.
   Give the header its normal scrolled-state backdrop from the first frame
   here so the nav stays legible; it still shrinks at 40px of scroll
   exactly as before (edge.js/edge.css handle that part already).
   ============================================================ */
.hdr{
  background:rgba(11,22,19,.85);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  box-shadow:0 1px 0 var(--line-d);
}

/* ============================================================
   2 · SIX STAGES · intro and boxes
   The intro block (eyebrow/heading/lede) does the job a hero would, so
   it gets a hero's worth of room under the header.
   ============================================================ */
.wwd-stages{background:var(--cream); color:var(--ink-l); padding:clamp(9rem,16vw,13rem) 0 clamp(4rem,8vw,6rem)}
.wwd-stages-head{text-align:center}
.wwd-stages-head h1, .wwd-stages-head h2{max-width:20ch; margin:1.4rem auto 0}
.wwd-stages-head .lede{margin:1.4rem auto 0; max-width:56ch; text-align:center; color:var(--mut-l)}

.wwd-boxes{text-align:left; margin-top:clamp(2.5rem,5vw,3.5rem)}
/* same card treatment as the first "How we helped others" card on the
   homepage (.v2-stack-card): pale green, light grey keyline, soft drop
   shadow, and the same teal keyline + deeper shadow on rollover */
.wwd-boxes .v2-wwd-box{
  background:#EBF7F7; border-radius:22px;
  border:1px solid rgba(20,42,36,.07);
  box-shadow:0 40px 90px rgba(20,42,36,.16);
  transition:box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.wwd-boxes .v2-wwd-box:hover, .wwd-boxes .v2-wwd-box:focus-within{
  border-color:rgba(0,161,154,.45); box-shadow:0 46px 100px rgba(20,42,36,.24);
}

/* ============================================================
   3 · MID CTA · "see it in practice" band linking to Client Results
   ============================================================ */
.wwd-mid{background:var(--cream); color:var(--ink-l); text-align:center; padding:clamp(3.5rem,7vw,5.5rem) 0; border-top:1px solid var(--line-l)}
.wwd-mid h2{max-width:22ch; margin:1rem auto 0}
.wwd-mid .cta-row{justify-content:center; margin-top:1.6rem}

/* ============================================================
   4 · SMALLER TRUST GAP CTA · compact, no illustration, no list
   ============================================================ */
.wwd-gap{background:linear-gradient(180deg, var(--forest) 0%, var(--forest-2) 100%); color:var(--paper); padding:clamp(4rem,8vw,6rem) 0}
.wwd-gap-inner{max-width:52ch; margin:0 auto; text-align:center}
.wwd-gap h2{margin:1rem auto 0; max-width:18ch}
.wwd-gap .lede{margin:1.1rem auto 0; max-width:48ch; text-align:center}
.wwd-gap .cta-row{justify-content:center; margin-top:1.6rem}

/* ============================================================
   BACK ARRIVAL · arriving here from a service page (crumb link, or
   the browser's own Back) crossfades between the two pages. A plain
   fade, on purpose: no direction, no button, nothing to get wrong.
   ============================================================ */
@media (prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
}
::view-transition-old(root),
::view-transition-new(root){animation-duration:.4s; animation-timing-function:ease}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion:reduce){
  .r{transition:none !important}
}
