/* global React, AtlasNav, AetherAgent, agentOpen, Glyph, LogoMark */ const { useState:useLAS, useEffect:useLAE } = React; /* ============================================================ LANDING — Atlas nav + Agent concierge ============================================================ */ const LANDING_MENUS=[ { id:'platform', label:'Platform', type:'media', w:664, h:358, items:[ { title:'Mission', desc:'Predict, prevent and restore disease.', scroll:'mission', img:'assets/mission-globe.png' }, { title:'The Ecosystem', desc:'Nine engines forming one biological mind.', scroll:'ecosystem', img:'assets/what-we-build.png' }, { title:'MOIRA', desc:'Foresight for what a cell is becoming.', scroll:'moira', icon:'orbit', tone:'#D4AF37', kicker:'Foresight' }, { title:'Precision Medicine', desc:'One patient, one complete closed loop.', scroll:'journey', icon:'pulse', tone:'#7FB8A4', kicker:'The loop' } ]}, { id:'company', label:'Company', type:'cards', w:446, h:308, items:[ { title:'Leadership', desc:'The people building the stack.', scroll:'people', img:'assets/logo-marble.png' }, { title:'Careers', desc:'Help engineer the future of biology.', scroll:'careers', icon:'spark', tone:'#D4AF37' } ]}, { id:'explore', label:'Explore', type:'list', w:248, h:306, items:[ { title:'The Exchange', scroll:'exchange', icon:'coin', badge:'NEW' }, { title:'The Agora', scroll:'agora', icon:'network' }, { title:'Research', scroll:'research', icon:'search' }, { title:'The Future', scroll:'future', icon:'graph' }, { title:'FAQ', scroll:'faq', icon:'book' }, { title:'Original Presentation', href:'./AetherCore%20Labs%20Deck.html', icon:'book' } ]}, { id:'engines',label:'Engines',type:'list',w:300,h:480,items:[ ...(typeof PLATFORMS!=='undefined'?PLATFORMS:[]).map(p=>({title:p.name,href:`platforms/${p.id}.html`,icon:'orbit'})), {title:'Value Proposition',href:'value-proposition.html',icon:'graph'} ]}, ]; const LANDING_SECTIONS=[['shelf','The Shelf'],['academy','Academy Studio'],['statement','Statement'],['mission','Mission'],['ecosystem','Platforms'],['moira','MOIRA'],['journey','Precision Medicine'], ['future','Future of Medicine'],['exchange','Exchange'],['people','Leadership'],['research','Research'],['agora','Agora'], ['careers','Careers'],['faq','FAQ'],['figures','Platform figures'],['cta','Join']].map(([id,label])=>({id,label})); function LandingNav(){ const [solid,setSolid]=useLAS(false); useLAE(()=>{ const on=()=>setSolid(window.scrollY>60); on(); window.addEventListener('scroll',on,{passive:true}); return ()=>window.removeEventListener('scroll',on); },[]); const pick=(it)=>{ if(it.scroll) window.scrollToId(it.scroll); else if(it.go==='dash') window.goDashboard(); else if(it.href) window.location.assign(it.href); else if(it.go==='agent') agentOpen(); else if(it.go==='contact') window.openContact('AETHERCORE LABS'); }; const onAction=(a)=>{ if(!a) return; if(a.type==='dashboard') window.goDashboard(); else if(a.type==='contact') window.openContact('AETHERCORE LABS'); else if(a.type==='section'&&LANDING_SECTIONS.some(s=>s.id===a.id)) window.scrollToId(a.id); }; const logo=React.createElement('a',{href:'#top',className:'a-brand','aria-label':'AetherCore home',onClick:(e)=>{e.preventDefault();window.scrollToId('top');}}, React.createElement(LogoMark,null),React.createElement('span',null,'AETHERCORE',React.createElement('em',null,' LABS'))); const actions=React.createElement(React.Fragment,null, React.createElement('button',{className:'a-ghost a-agentbtn a-hide-sm',onClick:()=>agentOpen()},React.createElement('span',{className:'a-orb'}),'ASK AGENT'), React.createElement('a',{href:'#',className:'a-ghost a-hide-sm',onClick:(e)=>{e.preventDefault();window.openContact('AETHERCORE LABS');}},'CONTACT'), React.createElement('a',{href:'dashboard.html',className:'a-cta',onClick:(e)=>{e.preventDefault();window.goDashboard();}},'JOIN NOW')); return React.createElement(React.Fragment,null, React.createElement(AtlasNav,{theme:'light',className:solid?'is-solid':'',logo,menus:LANDING_MENUS, plain:[{label:'Academy',go:'dash'},{label:'The Shelf',href:'AetherCore%20Shelf.html'},{label:'Academy Studio',href:'AetherCore%20Academy.html'}],mobileExtras:[{label:'Ask Agent',go:'agent'},{label:'Contact',go:'contact'}],actions,onPick:pick}), React.createElement(AetherAgent,{mode:'landing',views:LANDING_SECTIONS,onAction})); } Object.assign(window,{ LandingNav });