/* Gateway section: 200 projects → programme gate → 17 → service capability gate → 1 */
/* Brand: primary blue, secondary yellow */
.gw-c{--gw-primary:#1b4585;--gw-secondary:#faa61a;--gw-grey:#63697b;--gw-ghost:rgba(79,134,217,.2);--gw-ok-text:#b06f00}
html[data-theme=dark] .gw-c{--gw-primary:#5b8fdc;--gw-grey:#8e97aa;--gw-ghost:rgba(91,143,220,.22);--gw-ok-text:var(--gw-secondary)}
.gateway-section.gw-c .gateway-intro h2 i{color:var(--gw-primary)}
.gw-c .gateway-intro p strong{color:var(--text)}
.gw-c .gateway-intro{grid-template-columns:1fr;gap:20px;align-items:start}
.gw-c .gateway-intro p{max-width:none}

/* Funnel: stage · gate · stage · gate · stage */
.gw-flow{margin:0;display:grid;grid-template-columns:minmax(0,1.3fr) 104px minmax(0,1fr) 104px minmax(0,1fr);gap:12px;align-items:start;padding:44px 0 36px;border-top:1px solid var(--line)}
.gw-stage-col,.gw-gate{display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0}
.gw-step{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:16px;min-height:2.6em;display:flex;align-items:flex-end;justify-content:center}

.gw-dots{display:grid;height:118px;align-content:center;justify-content:center}
.gw-dots i{border-radius:50%;background:var(--gw-primary)}
.gw-dots-all{grid-template-columns:repeat(20,7px);gap:4px 3px}
.gw-dots-all i{width:7px;height:7px}
.gw-col-out .gw-dots i{transition:background .6s ease .6s}
.gw-flow.in-view .gw-col-out .gw-dots i{background:var(--gw-ghost)}
.gw-flow.in-view .gw-col-out .gw-dots i.ok{background:var(--gw-secondary);box-shadow:0 0 0 5px rgba(250,166,26,.2)}

.gw-num{margin:16px 0 0;font-size:14px;line-height:1.45;max-width:210px;color:var(--text)}
.gw-num strong{display:block;font-family:'Manrope',sans-serif;font-size:clamp(32px,3.4vw,46px);letter-spacing:-.05em;line-height:1;margin-bottom:6px;color:var(--gw-primary)}
.gw-col-out .gw-num strong{color:var(--gw-ok-text)}
.gw-only{font-size:.5em;letter-spacing:-.01em;font-weight:600;margin-right:.15em;vertical-align:.35em}
.gw-pct{display:block;width:max-content;margin:8px auto 0;padding:2px 9px;border-radius:20px;font-style:normal;font-size:12px;font-weight:700;color:var(--gw-primary);background:var(--gw-ghost)}
.gw-col-out .gw-pct{color:var(--gw-ok-text);background:rgba(250,166,26,.16)}
.gw-valuenote{margin:18px 0 0;padding-top:14px;border-top:1px dashed var(--line);font-size:12.5px;line-height:1.5;color:var(--muted);max-width:210px}
.gw-valuenote strong{display:block;color:var(--text);font-size:14px}
.gw-valuenote sup,.gw-source sup{font-size:.75em;line-height:0}

.gw-gate{padding-top:calc(2.6em * 11 / 15 + 16px)}
.gw-gate-posts{height:118px;display:flex;align-items:center;gap:12px}
.gw-gate-posts span{width:4px;height:100%;border-radius:4px;background:var(--gw-primary)}
.gw-gate-posts b{font-size:22px;color:var(--gw-primary);font-weight:400}
.gw-gate p{margin:16px 0 0;font-size:12px;line-height:1.4;color:var(--muted)}
.gw-gate p b{display:block;color:var(--gw-primary);font-size:12.5px;margin-bottom:2px}
.gw-gate-service .gw-gate-posts span{background:var(--gw-secondary)}
.gw-gate-service .gw-gate-posts b,.gw-gate-service p b{color:var(--gw-ok-text)}

/* More than 9 in 10 */
.gw-ninetenths{display:grid;grid-template-columns:auto 1fr;gap:clamp(18px,4vw,48px);align-items:center;padding:24px clamp(18px,3vw,36px);background:var(--surface2);border-left:3px solid var(--gw-primary)}
.gw-ninetenths strong{font-family:'Manrope',sans-serif;font-size:clamp(28px,3vw,42px);letter-spacing:-.05em;line-height:1.05;color:var(--gw-primary);white-space:nowrap}
.gw-ninetenths p{margin:0;font-size:15.5px;line-height:1.55}
.gw-ninetenths p b{display:block;margin-top:4px}

.gw-source{margin:14px 0 48px;font-size:12px;color:var(--muted)}

/* Caption + 56% */

@media(max-width:700px){
.gw-flow{grid-template-columns:1fr;gap:18px;padding:32px 0 28px}
.gw-step{min-height:0}
.gw-gate{padding-top:0}
.gw-gate-posts{height:auto;flex-direction:column;gap:6px;width:140px}
.gw-gate-posts span{width:100%;height:4px}
.gw-gate-posts b{transform:rotate(90deg);line-height:1}
.gw-gate p{margin-top:6px}
.gw-dots{height:auto}
.gw-ninetenths{grid-template-columns:1fr;gap:8px}
.gw-source{margin-bottom:36px}
}
@media(prefers-reduced-motion:reduce){.gw-col-out .gw-dots i{transition:none}}

/* Closing line and call to action: its own brand-blue band after the story box */
.gw-close{padding:clamp(56px,8vw,110px) 0;background:linear-gradient(100deg,#132f5c 0%,#1b4585 55%,#2a5ba3 100%);color:#fff}
.gw-close-inner{display:flex;flex-direction:column;align-items:flex-start;gap:28px;max-width:900px}
.gw-close-line{margin:0;font-family:'Manrope',sans-serif;font-size:clamp(26px,3.2vw,44px);font-weight:600;letter-spacing:-.045em;line-height:1.2;color:#fff}
.gw-close-cta{display:inline-flex;align-items:center;gap:10px;padding:13px 22px;border-radius:999px;background:#faa61a;color:#14284a;font-weight:600;font-size:15px;text-decoration:none;transition:background .25s ease,transform .25s ease}
.gw-close-cta:hover{background:#ffb83f;transform:translateY(-1px)}
.gw-close-cta:focus-visible{outline:2px solid #fff;outline-offset:3px}
html[data-theme=dark] .gw-close{background:linear-gradient(100deg,#0d2346 0%,#163a70 55%,#22508f 100%)}
/* Fallback diagram (reduced motion / screen readers): the 17 as a 3-4-3-4-3 honeycomb */
.gw-dots-hex{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;height:118px}
.gw-dots-hex>div{display:flex;gap:7px}
.gw-dots-hex i{display:block;width:13px;height:13px;border-radius:50%;background:var(--gw-primary)}
