/* ============================================================
   B4B GLOBAL EDGE · Service pages (v2)
   Shared by all six "what we do" service detail pages linked from
   what-we-do-v2.html. Layers on top of edge.css + homepage-v2.css,
   reusing the same design language: full-screen blocks, scroll
   reveals, the v2 section nav.
   ============================================================ */

/* ============================================================
   1 · HERO · full-bleed photo, slow Ken Burns drift
   ============================================================ */
.svc-hero{position:relative; min-height:100svh; overflow:hidden; background:var(--forest); display:flex}
.svc-hero .bg{position:absolute; inset:0; z-index:0; overflow:hidden}
.svc-hero .bg img{
  width:100%; height:100%; object-fit:cover; display:block;
  transform:scale(1.08); animation:svcDrift 18s ease-in-out infinite alternate;
}
@keyframes svcDrift{to{transform:scale(1.16) translate(-1.5%,-1.5%)}}
.svc-hero .scrim{
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(9,18,15,.62) 0%, rgba(9,18,15,.28) 40%, rgba(9,18,15,.88) 100%);
  opacity:0; transition:opacity 1s ease;
}
body.ready .svc-hero .scrim{opacity:1}
.svc-hero .wrap{
  position:relative; z-index:2; width:100%; max-width:56rem;
  display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-end;
  flex:1; padding:clamp(7rem,16vh,10rem) var(--pad) clamp(3.5rem,9vh,6.5rem);
}
.svc-hero .crumb{
  font-family:var(--mono); font-weight:var(--w-medium); font-size:var(--fs-label);
  letter-spacing:var(--ls-label); text-transform:uppercase; color:var(--sage); display:block;
}
.svc-hero .crumb a{color:inherit; text-decoration:underline; text-underline-offset:.2em; text-decoration-color:rgba(175,201,194,.4)}
.svc-hero .crumb a:hover{text-decoration-color:var(--sage)}

.svc-hero h1{
  margin:1rem 0 0; font-size:clamp(2.1rem,5vw,4rem); line-height:1.06; color:var(--paper);
  text-shadow:0 2px 40px rgba(6,14,11,.6); max-width:20ch;
}
.svc-hero .lede{margin-top:1.4rem; max-width:46ch; color:rgba(255,255,255,.88)}
.svc-hero .lede + .lede{margin-top:.9rem}

/* ============================================================
   2 · SCOPE · intro statement + the "what this involves" checklist
   ============================================================ */
.svc-scope{background:var(--cream); color:var(--ink-l); padding:clamp(5rem,11vw,8rem) 0}
/* max-width is set on the heading and lede individually, in "ch" units
   relative to each one's own (very different) font-size, rather than on
   this wrapper: a single ch value here would resolve against the small
   base font-size and constrain the much larger heading far too narrow */
.svc-scope-head h2{margin:1rem 0 0; max-width:26ch}
.svc-scope-head .lede{margin-top:1.2rem; max-width:56ch; color:var(--mut-l)}
.svc-list-label{display:block; margin-top:clamp(2.5rem,5vw,3.5rem)}
.svc-list{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.9rem 2.5rem;
  margin-top:1.4rem; max-width:52rem;
}
.svc-list li{
  display:grid; grid-template-columns:auto 1fr; gap:.8rem; align-items:baseline;
  font-size:var(--fs-copy); color:var(--mut-l);
}
.svc-list .chev{color:var(--teal); font-family:var(--disp); font-size:var(--fs-h3); line-height:1.1}

/* a highlighted callout for a named sub-service (e.g. "EDGE Connect") */
.svc-callout{
  margin-top:clamp(2.5rem,5vw,3.5rem); max-width:44rem; padding:clamp(1.6rem,3vw,2.2rem);
  border-radius:14px; background:#EEF2EE; border:1px solid var(--line-l);
}
.svc-callout .v2-label{margin:0}
.svc-callout p{margin-top:.7rem; color:var(--mut-l)}

/* format pills (Events page) */
.svc-formats{display:flex; flex-wrap:wrap; gap:.7rem; margin-top:1.4rem; max-width:52rem}
.svc-formats li{
  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);
  border:1px solid var(--line-l); border-radius:99px; padding:.55rem 1.1rem;
}

/* proof mini-stats (Events page). ".stat" is already a component in
   edge.css styled for dark sections (dark card background, light text);
   this resets it to a plain, borderless pair for a light section instead,
   so the number isn't rendered dark-on-dark and invisible. */
.svc-proof{display:flex; flex-wrap:wrap; gap:clamp(2rem,5vw,4rem); margin-top:clamp(2.5rem,5vw,3.5rem)}
.svc-proof .stat{background:none; padding:0; text-align:left}
.svc-proof .stat b{
  display:block; font-family:var(--disp); font-weight:var(--w-book); line-height:1;
  font-size:clamp(2.2rem,4vw,3.2rem); color:var(--ink-l);
}
.svc-proof .stat span{margin-top:.5rem; display:block; color:var(--haze); font-family:var(--disp); font-weight:var(--w-medium); font-size:var(--fs-h3); letter-spacing:normal; text-transform:none}

/* ============================================================
   3 · CLOSE · a short, large centred statement
   ============================================================ */
.svc-close{background:#EEF2EE; color:var(--ink-l); text-align:center; padding:clamp(5rem,11vw,8rem) 0}
.svc-close h2{max-width:20ch; margin:1rem auto 0}
.svc-close .lede{margin:1.2rem auto 0; max-width:48ch; text-align:center; color:var(--mut-l)}

/* ============================================================
   4 · CTA · page-specific close, dark, full-bleed
   ============================================================ */
.svc-cta{background:var(--forest); color:var(--paper); text-align:center; padding:clamp(6rem,13vw,10rem) 0}
.svc-cta h2{max-width:20ch; margin:1rem auto 0}
.svc-cta .lede{margin:1.2rem auto 0}
.svc-cta .cta-row{justify-content:center; margin-top:1.8rem}

/* ============================================================
   PAGE TRANSITIONS · going back to What We Do (via the crumb link,
   or the browser's own Back) fades between the two pages; the
   fade itself is defined once in what-we-do-v2.css since it renders
   on the destination document. This just opts this page in.
   ============================================================ */
@media (prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:760px){
  .svc-list{grid-template-columns:1fr}
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion:reduce){
  .r{transition:none !important}
  .svc-hero .scrim{opacity:1 !important; transition:none !important}
  .svc-hero .bg img{animation:none !important; transform:scale(1.02)}
}
