(async function(){ try{ const r=await fetch('/api/public/config'); if(!r.ok)return; const c=await r.json(); document.title=`${c.siteName} | ${c.programName}`; const bn=document.getElementById('brandName');if(bn&&c.siteName)bn.textContent=c.siteName; const bp=document.getElementById('brandProgram');if(bp&&c.programName)bp.textContent=c.programName; const sub=document.getElementById('bridgeSubheadline'); if(sub&&c.bridgeSubheadline)sub.textContent=c.bridgeSubheadline; const h=document.getElementById('bridgeHeadline'); if(h&&c.bridgeHeadline)h.textContent=c.bridgeHeadline; const qs=window.location.search; if(qs){document.querySelectorAll('a[href="/start"]').forEach(a=>a.href='/start'+qs)} }catch(e){} // team-by-the-numbers showcase — live org stats vs the whole network try{ const grid=document.getElementById('teamStatGrid'); if(grid){ const os=await fetch('/api/public/org-stats').then(r=>r.ok?r.json():null).catch(()=>null); if(os&&os.found){ const fmt=n=>Number(n||0).toLocaleString(undefined,{maximumFractionDigits:0}); grid.innerHTML= `