(()=>{
const H=window.NXH;const P=window.NX_PAGE||'home';
const go=f=>()=>{location.href=f};
const pick=id=>H.scrollToId('svc-'+id);
const BODY={
  home:()=><><window.NXHero onCta={H.openForm} onWork={go('work.html')}/><window.NXTransformation/><window.NXFinal/></>,
  services:()=><><window.NXCapabilities onPick={pick}/><window.NXServices page onCta={H.openForm}/><window.NXFinal/></>,
  lab:()=><><window.NXLab/><window.NXFinal/></>,
  work:()=><><window.NXWork page/><window.NXWorkExtra/><window.NXFinal/></>,
  process:()=><><window.NXProcess page/><window.NXStudioWhy/><window.NXAbout/><window.NXTestimonials/><window.NXFinal/></>
};
const B=BODY[P];
ReactDOM.createRoot(document.getElementById('nx-home')).render(<window.NXShell page={P}><B/></window.NXShell>);
})();
