PageSourceSearch

https://professorclock.tv/assets/index-B05N6zMW.js

js professorclock.tv collected 2026-10-10 02:23:06 UTC 232,049 bytes, 243 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/TimelineSlider--DLcMD8R.js","assets/framer-DYe-a4Oj.js","assets/lucide-Lukeen-8.js","assets/react-vendor-CdGwWozv.js","assets/supabase-ZCRGx3A9.js","assets/CountdownPage-DuNND5hj.js","assets/ArchivePage-rlJO2u9r.js","assets/CosmododromeumPage-CmdRY_2f.js","assets/useScrollVideo-BcBkmNuC.js","assets/useScrollRevealIO-Bnw2FD-t.js","assets/NaopcXIVPage-CMpHEynR.js","assets/CronosCatharsisPage-BfOvonf2.js","assets/SignalInterruptionPage-D7UqVYQ1.js","assets/InterimProtocolPage-C1WEnaSJ.js","assets/DiscographyPage-DCp9W24a.js","assets/FAQPage-C6rsrj6N.js","assets/ArchivalDropPage-GLMGvp4q.js","assets/SilentIndexPage-k0bbSzOn.js","assets/AboutPage-DIOUBCXO.js","assets/PressPage-D78iie9O.js","assets/PressReleaseBlock-D4TX7g3y.js","assets/QuantumForwardPage-CHVRbKB1.js","assets/WuboguPage-CihjM_h_.js","assets/NowTimePage-DikDHa9S.js","assets/UniversePage-CJhOIH6z.js","assets/SaturnNeptuneConjunctionPage-DqN8Fnts.js","assets/CouncilPage-Cb8Qvv20.js","assets/AP4TMCPage-CzwHxRmm.js","assets/MagnifyImage-CjW4gM5c.js","assets/NewspaperPage-Dtv43UuW.js","assets/LexiconPage-Dg5-_aAn.js","assets/FreaqMakerPage-oJ7akMwc.js","assets/FreaqMakerTransmissionPage-D0yGpTgZ.js","assets/LegalPage-Cq6MMn4Q.js","assets/PodcastPage-DEQGp9Xe.js","assets/ActivationPage-RCxTXRHQ.js","assets/IntendedReceiversPage-B_Vpi4wX.js","assets/TransmissionsGuidePage-8UenXg15.js","assets/OpsisIVPage-DH_0KIU0.js","assets/BroadcastPage-ByCDI9P7.js","assets/hls-NGB6t2eD.js","assets/BeatMakerPage-SFoeVonA.js","assets/NumerologyDashboard-z63PaDe5.js","assets/VideoGallery-Dot5STaz.js","assets/AfrofuturistTimeChannel-DLETu-BR.js","assets/WorldBuilderHub-BUz1EPUq.js","assets/PoliciesPage-DrYopTKe.js","assets/submission-queries--QTRTK5n.js","assets/SubmitPage-eZu1jmmv.js","assets/MySubmissionsPage-C4byZY3w.js","assets/CanonBadge-DOr1Z-wk.js","assets/AdminPage-dk85S4J9.js","assets/TTDLandingPage-De_tbrqR.js","assets/TTDClearancePage-CuLoxeXH.js","assets/TTDArchivePage-D6PswIyZ.js","assets/FeedbackPage-Cnkv2GM1.js","assets/CosmicAfterPartyPage-DZrw9QO5.js"])))=>i.map(i=>d[i]);
2import{j as e,A as H,m as A,a as St,M as Et}from"./framer-DYe-a4Oj.js";import{r as c,X as D,R as z,G as pe,L as ke,C as we,M as nt,S as Ct,a as Rt,b as At,H as It,d as ot,E as fe,D as lt,A as B,e as he,W as it,f as le,h as U,T as Ie,i as _t,N as _e,j as ct,B as Me,k as Te,l as Mt,m as ie,P as Se,n as Ee,o as Z,Z as dt,F as Ot,U as Pt,p as Lt,q as Dt,s as zt,t as ut,u as Ft,v as Bt,w as Ut,x as $t,y as Ht,V as Vt,z as Wt,I as Gt,J as qt,K as Yt,O as Kt}from"./lucide-Lukeen-8.js";import{r as mt}from"./react-vendor-CdGwWozv.js";import{c as Qt,_ as E}from"./supabase-ZCRGx3A9.js";(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const l of r.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();var xt,Oe=mt;xt=Oe.createRoot,Oe.hydrateRoot;const Xt="https://umngczawnxfhxkgdpnoa.supabase.co",Jt="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InVtbmdjemF3bnhmaHhrZ2Rwbm9hIiwicm9sZSI6ImFub24iLCJpYXQiOjE3Njc1NTY2MzUsImV4cCI6MjA4MzEzMjYzNX0.NdxOn3gNfQCTidcb72gPV09g0X-VPH6pk-d4FcQUCEo";function Ce({isOpen:t,onClose:a}){const n=c.useRef(null),s=c.useRef(null),[o,r]=c.useState(""),[l,i]=c.useState(""),[m,u]=c.useState("On the Nines"),[x,p]=c.useState(!1),[N,k]=c.useState("idle"),[T,v]=c.useState(""),[h,w]=c.useState(!1),[S,d]=c.useState(!1);c.useEffect(()=>(t?(document.body.style.overflow="hidden",setTimeout(()=>{var y;return(y=n.current)==null?void 0:y.focus()},80)):(document.body.style.overflow="",r(""),i(""),u("On the Nines"),p(!1),k("idle"),v(""),w(!1),d(!1)),()=>{document.body.style.overflow=""}),[t]),c.useEffect(()=>{const y=R=>{R.key==="Escape"&&t&&a()};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[t,a]);const f=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;async function b(y){var R;if(y.preventDefault(),v(""),w(!1),d(!1),!f.test(o.trim())){v("That email address looks off. Check it and try again."),w(!0),(R=s.current)==null||R.focus();return}
2if(!x){v("Tick the consent box so we can send your transmissions."),d(!0);return}k("submitting");try{const M=await fetch(`${Xt}/functions/v1/subscribe`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${Jt}`},body:JSON.stringify({email:o.trim(),firstName:l.trim(),cadence:m})});if(!M.ok){const O=await M.json().catch(()=>({}));throw new Error(O.error||"Submission failed")}k("success")}catch(M){k("error"),v(M instanceof Error?M.message:"Something went wrong. Please try again.")}}const g={card:{background:"#121116",border:"1px solid #211f27",borderRadius:4,overflow:"hidden",boxShadow:"0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(200,161,60,0.06)",position:"relative",maxHeight:"min(82vh, 680px)",overflowY:"auto"},scanlines:{position:"absolute",inset:0,background:"repeating-linear-gradient(to bottom, rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 3px)",pointerEvents:"none",zIndex:6,mixBlendMode:"screen"},signalBar:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"11px 18px",background:"#d9483b",color:"#fff",fontFamily:'"IBM Plex Mono", monospace',fontSize:11,fontWeight:600,letterSpacing:"0.16em",textTransform:"uppercase"},hero:{padding:"28px 30px 22px",borderBottom:"1px solid #211f27",textAlign:"center",background:"linear-gradient(180deg, rgba(200,161,60,0.05), transparent 70%)"},form:{padding:"22px 30px 28px"},fieldLabel:{display:"block",fontFamily:'"IBM Plex Mono", monospace',fontSize:11,letterSpacing:"0.14em",textTransform:"uppercase",color:"#c8a13c",marginBottom:8},input:{width:"100%",background:"#18171d",border:"1px solid #2c2935",borderRadius:3,color:"#ece6d6",fontFamily:'"IBM Plex Mono", monospace',fontSize:15,padding:"12px 14px",outline:"none",transition:"border-color 0.18s ease, box-shadow 0.18s ease",boxSizing:"border-box"},inputFocused:{borderColor:"#c8a13c",boxShadow:"0 0 0 3px rgba(200,161,60,0.18)"},inputInvalid:{borderColor:"#d9483b",boxShadow:"0 0 0 3px rgba(217,72,59,0.18)"},choice:y=>({display:"flex",alignItems:"center",gap:11,padding:"11px 14px",background:y?"rgba(200,161,60,0.07)":"#18171d",border:`1px solid ${y?"#c8a13c":"#2c2935"}`,borderRadius:3,cursor:"pointer",transition:"border-color 0.18s ease, background 0.18s ease",marginBottom:8,userSelect:"none"}),consent:{display:"flex",gap:11,alignItems:"flex-start",margin:"20px 0 10px",padding:"13px 14px",background:"#18171d",border:"1px solid #2c2935",borderRadius:3},submitBtn:{width:"100%",background:"linear-gradient(180deg, #f0d27a, #c8a13c)",color:"#1a1408",border:"none",borderRadius:3,fontFamily:'"IBM Plex Mono", monospace',fontSize:13,fontWeight:600,letterSpacing:"0.14em",textTransform:"uppercase",padding:15,cursor:"pointer",boxShadow:"0 8px 22px rgba(200,161,60,0.22)"}};return e.jsx(H,{children:t&&e.jsxs(e.Fragment,{children:[e.jsx(A.div,{className:"fixed inset-0 z-[90]",style:{background:"rgba(3,2,10,0.9)",backdropFilter:"blur(8px)"},initial:{opacity:0}
2,animate:{opacity:1},exit:{opacity:0},transition:{duration:.22},onClick:a,"aria-hidden":"true"}),e.jsx("div",{className:"fixed inset-0 z-[91] flex items-center justify-center p-4 pointer-events-none",children:e.jsxs(A.div,{role:"dialog","aria-modal":"true","aria-label":"Join the Transmission List",className:"relative pointer-events-auto",style:{width:"min(540px, 95vw)"},initial:{opacity:0,scale:.93,y:28},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.93,y:28},transition:{type:"spring",stiffness:340,damping:30},onClick:y=>y.stopPropagation(),children:[e.jsx("button",{ref:n,onClick:a,className:"absolute -top-3 -right-3 z-10 w-9 h-9 flex items-center justify-center rounded-full border transition-all duration-200",style:{background:"rgba(8,5,20,0.97)",borderColor:"rgba(201,162,39,0.3)",color:"rgba(201,162,39,0.7)",boxShadow:"0 4px 16px rgba(0,0,0,0.6)"},onMouseEnter:y=>{y.currentTarget.style.borderColor="#c9a227",y.currentTarget.style.color="#c9a227",y.currentTarget.style.background="rgba(201,162,39,0.1)"},onMouseLeave:y=>{y.currentTarget.style.borderColor="rgba(201,162,39,0.3)",y.currentTarget.style.color="rgba(201,162,39,0.7)",y.currentTarget.style.background="rgba(8,5,20,0.97)"},"aria-label":"Close",children:e.jsx(D,{size:16,"aria-hidden":"true"})}),e.jsxs("div",{style:g.card,children:[e.jsx("div",{style:g.scanlines,"aria-hidden":"true"}),e.jsxs("div",{style:g.signalBar,children:[e.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:7},children:[e.jsx(Zt,{}),"REC"]}),e.jsx("span",{children:"Stand By"})]}),e.jsxs("div",{style:g.hero,children:[e.jsx("p",{style:{fontFamily:'"IBM Plex Mono", monospace',fontSize:10.5,letterSpacing:"0.34em",textTransform:"uppercase",color:"#c8a13c",margin:"0 0 12px"},children:"professorclock.tv"}),e.jsx("p",{style:{fontFamily:'"IBM Plex Mono", monospace',fontSize:11,letterSpacing:"0.22em",textTransform:"uppercase",color:"#8d8675",margin:"0 0 4px"},children:"We interrupt this program"}),e.jsxs("h2",{style:{fontFamily:"Georgia, serif",fontStyle:"italic",fontWeight:500,fontSize:"clamp(26px,6vw,38px)",lineHeight:1.05,margin:"4px 0 12px",color:"#ece6d6"},children:["Join the"," ",e.jsx("span",{style:{color:"#f0d27a",fontWeight:600},children:"Transmission"})]}),e.jsxs("p",{style:{fontSize:14.5,color:"#8d8675",margin:"0 auto",maxWidth:"38ch",lineHeight:1.55},children:["Drops land on every"," ",e.jsx("span",{style:{color:"#ece6d6"},children:"On the Nines"})," ","date at 9:09 PM ET. New transmissions, Reception entries, and first access to NAOPC releases. One signal, no noise."]})]}),N==="success"?e.jsxs("div",{style:{padding:"44px 30px",textAlign:"center"},children:[e.jsx("div",{style:{fontSize:40,color:"#f0d27a",marginBottom:14},children:"☥"}),e.jsx("h3",{style:{fontFamily:"Georgia, serif",fontStyle:"italic",fontWeight:500,fontSize:26,margin:"0 0 10px",color:"#ece6d6"},children:"Transmission received"}),e.jsx("p",{style:{color:"#8d8675",fontSize:14.5,margin:"0 auto",maxWidth:"34ch",lineHeight:1.6},children:"Check your inbox and click the confirmation link to lock in your subscription. The next drop finds you at 9:09 PM ET."})]}):e.jsxs("form",{onSubmit:b,noValidate:!0,style:g.form,children:[T&&e.jsx("div",{role:"alert",style:{padding:"12px 14px",borderRadius:3,fontFamily:'"IBM Plex Mono", monospace',fontSize:13,marginBottom:16,background:"rgba(217,72,59,0.10)",border:"1px solid rgba(217,72,59,0.45)",color:"#f08b80"},children:T}),e.jsxs("div",{style:{marginBottom:16},children:[e.jsx("label",{htmlFor:"pc-email",style:g.fieldLabel,children:"Email address"}),e.jsx("input",{ref:s,id:"pc-email",type:"email",autoComplete:"email",placeholder:"[email protected]",required:!0,value:o,onChange:y=>{r(y.target.value),w(!1),v("")},style:{...g.input,...h?g.inputInvalid:{}},onFocus:y=>{h||(y.target.style.cssText+="; border-color:#c8a13c; box-shadow:0 0 0 3px rgba(200,161,60,0.18)")},onBlur:y=>{h||(y.target.style.borderColor="#2c2935",y.target.style.boxShadow="none")}})]}),e.jsxs("div",{style:{marginBottom:16},children:[e.jsxs("label",{htmlFor:"pc-firstname",style:g.fieldLabel,children:["First name"," ",e.jsx("span",{style:{color:"#8d8675"},children:"/ optional"})]}),e.jsx("input",{id:"pc-firstname",type:"text",autoComplete:"given-name",placeholder:"What should the broadcast call you",maxLength:200,value:l,onCh
2ange:y=>i(y.target.value),style:g.input,onFocus:y=>{y.target.style.cssText+="; border-color:#c8a13c; box-shadow:0 0 0 3px rgba(200,161,60,0.18)"},onBlur:y=>{y.target.style.borderColor="#2c2935",y.target.style.boxShadow="none"}})]}),e.jsxs("div",{style:{marginBottom:4},children:[e.jsxs("span",{style:g.fieldLabel,children:["Transmission cadence"," ",e.jsx("span",{style:{color:"#8d8675"},children:"/ optional"})]}),e.jsxs("label",{style:g.choice(m==="On the Nines"),children:[e.jsx("input",{type:"radio",name:"pc-cadence",value:"On the Nines",checked:m==="On the Nines",onChange:()=>u("On the Nines"),style:{accentColor:"#c8a13c",width:16,height:16}}),e.jsxs("span",{style:{fontFamily:'"IBM Plex Mono", monospace',fontSize:13,color:"#ece6d6"},children:["On the Nines",e.jsx("small",{style:{display:"block",color:"#8d8675",fontSize:11,letterSpacing:"0.04em",marginTop:2},children:"Every nine-date drop, 9:09 PM ET"})]})]}),e.jsxs("label",{style:g.choice(m==="Monthly Dispatch"),children:[e.jsx("input",{type:"radio",name:"pc-cadence",value:"Monthly Dispatch",checked:m==="Monthly Dispatch",onChange:()=>u("Monthly Dispatch"),style:{accentColor:"#c8a13c",width:16,height:16}}),e.jsxs("span",{style:{fontFamily:'"IBM Plex Mono", monospace',fontSize:13,color:"#ece6d6"},children:["Monthly dispatch",e.jsx("small",{style:{display:"block",color:"#8d8675",fontSize:11,letterSpacing:"0.04em",marginTop:2},children:"One signal a month, the highlights"})]})]})]}),e.jsxs("div",{style:{...g.consent,...S?{borderColor:"#d9483b"}:{}},children:[e.jsx("input",{id:"pc-optin",type:"checkbox",checked:x,onChange:y=>{p(y.target.checked),d(!1),v("")},style:{accentColor:"#c8a13c",width:17,height:17,marginTop:2,flexShrink:0}}),e.jsxs("label",{htmlFor:"pc-optin",style:{fontSize:13.5,color:"#ece6d6",lineHeight:1.5,cursor:"pointer"},children:["Yes, send me transmissions and updates from professor:clock records. I have read the"," ",e.jsx("a",{href:"/legal",style:{color:"#f0d27a",textDecoration:"underline",textUnderlineOffset:2},children:"privacy policy"})," ","and agree to receive email."]})]}),e.jsx("p",{style:{fontFamily:'"IBM Plex Mono", monospace',fontSize:11,lineHeight:1.6,color:"#8d8675",margin:"0 0 20px"},children:"Your details are processed by Brevo, the platform that delivers these mailings, in line with their privacy policy. Unsubscribe any time using the link in any email."}),e.jsx("button",{type:"submit",disabled:N==="submitting",style:{...g.submitBtn,opacity:N==="submitting"?.7:1},onMouseEnter:y=>{N!=="submitting"&&(y.currentTarget.style.filter="brightness(1.06)")},onMouseLeave:y=>{y.currentTarget.style.filter=""},children:N==="submitting"?e.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:8,justifyContent:"center",width:"100%"},children:[e.jsx(z,{size:13,className:"animate-spin","aria-hidden":"true"}),"SENDING..."]}):"Subscribe to transmissions"}),e.jsx("p",{style:{textAlign:"center",fontFamily:'"IBM Plex Mono", monospace',fontSize:10.5,letterSpacing:"0.1em",color:"#8d8675",margin:"14px 0 0"},children:"Double opt-in active · confirm in your inbox to finish"})]})]})]})})]})})}function Zt(){return e.jsx("span",{style:{width:9,height:9,borderRadius:"50%",background:"#fff",boxShadow:"0 0 8px rgba(255,255,255,0.9)",display:"inline-block",animation:"recBlink 1.4s steps(1) infinite"},children:e.jsx("style",{children:"@keyframes recBlink { 50% { opacity: 0.15; } }"})})}const P=Qt("https://umngczawnxfhxkgdpnoa.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InVtbmdjemF3bnhmaHhrZ2Rwbm9hIiwicm9sZSI6ImFub24iLCJpYXQiOjE3Njc1NTY2MzUsImV4cCI6MjA4MzEzMjYzNX0.NdxOn3gNfQCTidcb72gPV09g0X-VPH6pk-d4FcQUCEo"),dn=Object.freeze(Object.defineProperty({__proto__:null,supabase:P},Symbol.toStringTag,{value:"Module"})),L=[{code:"en",native:"English",english:"English"},{code:"es",native:"Español",english:"Spanish"},{code:"fr",native:"Français",english:"French"},{code:"de",native:"Deutsch",english:"German"},{code:"pt",native:"Português",english:"Portuguese"},{code:"ja",native:"日本語",english:"Japanese"},{code:"zh",native:"中文",english:"Chinese"},{code:"ar",native:"العربية",english:"Arabic"}
2,{code:"sw",native:"Kiswahili",english:"Swahili"}],Pe=new Set(L.map(t=>t.code)),gt="naopc.locale",Le={"Europe/Madrid":"es","Europe/Barcelona":"es","America/Mexico_City":"es","America/Bogota":"es","America/Buenos_Aires":"es","America/Santiago":"es","Europe/Paris":"fr","Africa/Abidjan":"fr","Africa/Dakar":"fr","Europe/Berlin":"de","Europe/Vienna":"de","Europe/Zurich":"de","Europe/Lisbon":"pt","America/Sao_Paulo":"pt","Asia/Tokyo":"ja","Asia/Shanghai":"zh","Asia/Hong_Kong":"zh","Asia/Taipei":"zh","Asia/Riyadh":"ar","Asia/Dubai":"ar","Africa/Cairo":"ar","Africa/Nairobi":"sw","Africa/Dar_es_Salaam":"sw"};function er(){if(typeof window>"u")return"en";try{const t=localStorage.getItem(gt);if(t&&Pe.has(t))return t}catch{}try{const t=navigator.languages??[navigator.language];for(const a of t){const n=(a||"").slice(0,2).toLowerCase();if(Pe.has(n))return n}}catch{}try{const t=Intl.DateTimeFormat().resolvedOptions().timeZone;if(t&&Le[t])return Le[t]}catch{}return"en"}const tr=new Set(["ar"]),Re=c.createContext({locale:"en",setLocale:()=>{},t:(t,a)=>a??t,isLoading:!1});function rr({children:t}){const[a,n]=c.useState(()=>er()),[s,o]=c.useState({}),[r,l]=c.useState(!1),i=c.useCallback(x=>{n(x);try{localStorage.setItem(gt,x)}catch{}},[]);c.useEffect(()=>{try{document.documentElement.lang=a,document.documentElement.dir=tr.has(a)?"rtl":"ltr"}catch{}if(a==="en"){o({});return}let x=!1;return l(!0),(async()=>{try{const k=localStorage.getItem(`naopc.t.${a}`);k&&!x&&o(JSON.parse(k))}catch{}const{data:p,error:N}=await P.from("translations").select("key,value").eq("locale",a);if(!x){if(!N&&p){const k={};for(const T of p)k[T.key]=T.value;o(k);try{localStorage.setItem(`naopc.t.${a}`,JSON.stringify(k))}catch{}}l(!1)}})(),()=>{x=!0}},[a]);const m=c.useCallback((x,p)=>a==="en"?p??x:s[x]??p??x,[s,a]),u=c.useMemo(()=>({locale:a,setLocale:i,t:m,isLoading:r}),[a,i,m,r]);return e.jsx(Re.Provider,{value:u,children:t})}function ar(){return c.useContext(Re)}function un(){return c.useContext(Re).t}function sr({compact:t=!1}){var d;const{locale:a,setLocale:n,isLoading:s}=ar(),[o,r]=c.useState(!1),[l,i]=c.useState(()=>Math.max(0,L.findIndex(f=>f.code===a))),m=c.useRef(null),u=c.useRef(null),x=c.useRef(null),p=c.useRef([]),N="locale-selector-listbox",k=f=>`locale-option-${f}`,T=L.find(f=>f.code===a)??L[0],v=L.length>0;c.useEffect(()=>{if(!o)return;function f(g){m.current&&(m.current.contains(g.target)||r(!1))}function b(g){var y;g.key==="Escape"&&(r(!1),(y=u.current)==null||y.focus())}return document.addEventListener("mousedown",f),document.addEventListener("keydown",b),()=>{document.removeEventListener("mousedown",f),document.removeEventListener("keydown",b)}},[o]),c.useEffect(()=>{if(!o)return;const f=Math.max(0,L.findIndex(g=>g.code===a));i(f);const b=requestAnimationFrame(()=>{var g;return(g=x.current)==null?void 0:g.focus()});return()=>cancelAnimationFrame(b)},[o,a]),c.useEffect(()=>{var f;o&&((f=p.current[l])==null||f.scrollIntoView({block:"nearest"}))},[l,o]);const h=c.useCallback(f=>{const b=L[f];b&&(n(b.code),r(!1),requestAnimationFrame(()=>{var g;return(g=u.current)==null?void 0:g.focus()}))},[n]),w=c.useCallback(f=>{f.key==="ArrowDown"||f.key==="Enter"||f.key===" "?(f.preventDefault(),r(!0)):f.key==="ArrowUp"&&(f.preventDefault(),r(!0),i(L.length-1))},[]),S=c.useCallback(f=>{const b=L.length-1;switch(f.key){case"ArrowDown":f.preventDefault(),i(g=>g>=b?0:g+1);break;case"ArrowUp":f.preventDefault(),i(g=>g<=0?b:g-1);break;case"Home":f.preventDefault(),i(0);break;case"End":f.preventDefault(),i(b);break;case"Enter":case" ":f.preventDefault(),h(l);break;case"Tab":r(!1);break}},[l,h]);return v?e.jsxs("div",{ref:m,className:"relative",children:[e.jsxs("button",{ref:u,type:"button",onClick:()=>r(f=>!f),onKeyDown:w,className:"flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg border transition-all duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-0",style:{borderColor:o?"rgba(201,162,39,0.55)":"rgba(201,162,39,0.25)",color:"rgba(240,235,224,0.9)",background:o?"rgba(201,162,39,0.08)":"transparent",boxShadow:o?"0 0 0 2px rgba(201,162,39,0.25)":"none"},"aria-haspopup":"listbox","aria-expanded":o,"aria-controls":N,"aria-label":`Current language: ${T.english}. Press Enter or Space to change language.`,children:[s?e.jsx(ke,{size:13,className:"animate-spin","aria-hidden":"true"}):e.jsx(pe,{size:13,"aria-hidden":"true"}),!t&&e.jsx("span",{className:"font-mono text-xs tracking-[0.15em] uppercase",children:T.code}),e.jsx("span",{className:"sr-only",children:s?"Loading translations":""})]}),e.jsx(H,{children:o&&e.jsx(A.ul,{ref:x,id:N,role:"listbox",tabIndex:-1,"aria-label":"Select language","aria-activedescendant":k(((d=L[l])==null?void 0:d.code)??T.code),onKeyDown:S,initial:{opacity:0,y:-6,scale:.98}
2,animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-4,scale:.98},transition:{duration:.16,ease:[.16,1,.3,1]},className:"absolute right-0 mt-2 min-w-[200px] max-h-[70vh] overflow-auto rounded-xl border py-1 shadow-2xl z-[200] focus:outline-none",style:{borderColor:"rgba(201,162,39,0.28)",background:"rgba(5,4,8,0.96)",backdropFilter:"blur(16px)"},children:L.map((f,b)=>{const g=f.code===a,y=b===l;return e.jsx("li",{id:k(f.code),role:"option","aria-selected":g,ref:R=>{p.current[b]=R},onMouseEnter:()=>i(b),onClick:()=>h(b),className:"cursor-pointer",style:{background:y?"rgba(201,162,39,0.12)":g?"rgba(201,162,39,0.06)":"transparent"},children:e.jsxs("div",{className:"w-full flex items-center justify-between gap-3 px-3 py-2",style:{color:g?"#c9a227":"rgba(232,220,196,0.85)"},children:[e.jsxs("span",{className:"flex items-center gap-3 min-w-0",children:[e.jsx("span",{className:"font-mono text-xs w-7 tracking-widest flex-shrink-0",style:{color:g?"#c9a227":"rgba(201,162,39,0.5)"},children:f.code.toUpperCase()}),e.jsxs("span",{className:"font-rajdhani text-sm truncate",children:[f.native,e.jsxs("span",{className:"sr-only",children:[" — ",f.english]})]})]}),g&&e.jsx(we,{size:12,"aria-hidden":"true",style:{color:"#c9a227"}})]})},f.code)})})})]}):e.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1.5 rounded-lg border",style:{borderColor:"rgba(201,162,39,0.15)",color:"rgba(240,235,224,0.4)"},"aria-label":"No languages available",children:[e.jsx(pe,{size:13,"aria-hidden":"true"}),e.jsx("span",{className:"font-mono text-xs tracking-widest",children:"N/A"})]})}const pt="pclk-theme";function nr(){const t=localStorage.getItem(pt);return t==="light"||t==="dark"?t:"dark"}function or(){const[t,a]=c.useState(nr),n=c.useCallback(r=>{document.documentElement.setAttribute("data-theme",r),localStorage.setItem(pt,r)},[]);c.useEffect(()=>{n(t)},[t,n]);const s=()=>a(r=>r==="dark"?"light":"dark"),o=t==="dark";return e.jsx(A.button,{onClick:s,className:"relative flex items-center justify-center rounded-lg border transition-colors duration-200 min-w-[44px] min-h-[44px]",style:{borderColor:o?"rgba(201,162,39,0.2)":"rgba(45,42,36,0.2)",background:o?"rgba(201,162,39,0.06)":"rgba(125,97,24,0.06)",color:o?"#e8c95a":"#7d6118"},whileHover:{scale:1.06},whileTap:{scale:.95},"aria-label":o?"Switch to light theme":"Switch to dark theme",title:o?"Switch to light theme":"Switch to dark theme",children:o?e.jsx(nt,{size:16,"aria-hidden":"true"}):e.jsx(Ct,{size:16,"aria-hidden":"true"})})}const lr=[{id:"wubogu",label:"WUBOGU",icon:fe,live:!0},{id:"intended-receivers",label:"INTENDED RECEIVERS",icon:z,live:!0},{id:"opsisiv",label:"ÓPSIS IV",icon:fe,live:!0},{id:"ap4tmc",label:"AP4TMC",icon:lt,live:!0},{id:"quantumforward",label:"QUANTUMFORWARD",icon:B},{id:"freaqmaker",label:"FREAQ MAKER",icon:he},{id:"freaqmaker-transmission",label:"FREAQMAKER TRANSMISSION",icon:he,live:!0},{id:"signal",label:"SIGNAL INTERRUPTION",icon:it},{id:"cosmodromium",label:"VOX ÆI",icon:z},{id:"interim",label:"INTERIM PROTOCOL",icon:le}];function ir({currentPage:t,onNavigate:a,onOpenTransmissions:n,onOpenSearch:s}){const[o,r]=c.useState(!1),[l,i]=c.useState(!1),[m,u]=c.useState(!1),[x,p]=c.useState(!1),N=c.useRef(null),k=c.useRef(null);c.useEffect(()=>{const d=()=>p(window.scrollY>40);return window.addEventListener("scroll",d,{passive:!0}),()=>window.removeEventListener("scroll",d)},[]),c.useEffect(()=>{const d=f=>{var b;f.key==="Escape"&&o&&(r(!1),(b=k.current)==null||b.focus())};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[o]),c.useEffect(()=>(o?(document.body.style.overflow="hidden",setTimeout(()=>{var d,f;(f=(d=N.current)==null?void 0:d.querySelector("[data-first-item]"))==null||f.focus()},50)):document.body.style.overflow="",()=>{document.body.style.overflow=""}),[o]);const T=d=>{a(d),r(!1)},v="#c9a227",h="rgba(201,162,39,0.55)",w="rgba(240,235,224,0.82)",S="rgba(240,235,224,0.45)";return e.jsxs(e.Fragment,{children:[m&&e.jsx(Ce,{isOpen:m,onClose:()=>u(!1)}),e.jsx("a",{href:"#main-content",className:"skip-to-content",children:"Skip to content"}),e.jsx("button",{ref:k,onClick:()=>r(!o),className:"fixed top-[72px] right-5 z-[60] flex items-center justify-center rounded-xl transition-all duration-300 min-w-[44px] min-h-[44px] border",style:{width:44,height:44,...x?{background:"rgba(6,4,15,0.88)",backdropFilter:"blur(24px) saturate(180%)",WebkitBackdropFilter:"blur(24px) saturate(180%)",borderColor:"rgba(201,162,39,0.22)",color:v,boxShadow:"0 4px 28px rgba(0,0,0,0.6)"}:{background:"linear-gradient(135deg, #c9a227, #f2e08a)",borderColor:"rgba(255,255,255,0.1)",color:"#03020a",boxShadow:"0 0 28px rgba(201,162,39,0.45)"}},onMouseEnter:d=>{d.currentTarget.style.transform="scale(1.08)"},onMouseLeave:d=>{d.currentTarget.style.transform=""},"aria-label":o?"Close navigation menu":"Open navigation menu","aria-expanded":o,"aria-controls":"main-navigation",children:o?e.jsx(D,{size:20,"aria-hidden":"true"}):e.jsx(Rt,{size:20,"aria-hidden":"true"})}),o&&e.jsx("div",{className:"fixed inset-0 z-[55]",style:{background:"rgba(3,2,10,0.88)",backdropFilter:"blur(2px)",animation:"navBackdropIn 0.22s ease"},onClick:()=>r(!1),"aria-hidden":"true"}),e.jsxs("div",{ref:N,id:"main-navigation",role:"dialog","aria-modal":"true","aria-label":"Main navigation",className:"fixed top-0 right-0 bottom-0 z-[60] flex flex-col",style:{width:"min(320px, 92vw)",background:"rgba(4,3,11,0.97)",backdropFilter:"blur(32px) saturate(180%)",WebkitBackdropFilter:"blur(32px) saturate(180%)",borderLeft:"1px solid rgba(201,162,39,0.12)",boxShadow:"-12px 0 80px rgba(0,0,0,0.8)",transform:o?"translateX(0)":"translateX(100%)",transition:"transform 0.3s cubic-bezier(0.16,1,0.3,1)"},children:[e.jsxs("div",{className:"flex items-center justify-between px-6 pt-6 pb-5",style:{borderBottom:"1px solid rgba(201,162,39,0.08)"},children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-orbitron font-black tracking-[0.12em]",style:{fontSize:"0.85rem",background:"linear-gradient(135deg, #c9a227, #f2e08a)",WebkitBackgroun
2dClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"NAOPC"}),e.jsx("p",{className:"font-mono text-xs tracking-[0.5em] mt-0.5",style:{color:"rgba(201,162,39,0.38)"},children:"SESSION XV · 369"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[s&&e.jsx("button",{onClick:()=>{s(),r(!1)},className:"fixed top-[72px] right-[calc(72px+168px+160px+24px)] z-[60] hidden md:flex items-center justify-center rounded-full border transition-all duration-300",style:{width:44,height:44,background:"rgba(6,4,15,0.82)",backdropFilter:"blur(20px) saturate(180%)",WebkitBackdropFilter:"blur(20px) saturate(180%)",borderColor:"rgba(240,235,224,0.2)",color:"#f0ebe0",boxShadow:"0 6px 22px rgba(0,0,0,0.55)"},"aria-label":"Search transmissions and lexicon",onMouseEnter:d=>{d.currentTarget.style.borderColor="rgba(240,235,224,0.55)"},onMouseLeave:d=>{d.currentTarget.style.borderColor="rgba(240,235,224,0.2)"},children:e.jsx(At,{size:16,"aria-hidden":"true"})}),e.jsx(sr,{}),e.jsx(or,{}),e.jsx("button",{onClick:()=>r(!1),className:"w-11 h-11 flex items-center justify-center rounded-lg border transition-all duration-200",style:{color:S,borderColor:"rgba(240,235,224,0.08)"},onMouseEnter:d=>{d.currentTarget.style.color=v,d.currentTarget.style.borderColor="rgba(201,162,39,0.28)"},onMouseLeave:d=>{d.currentTarget.style.color=S,d.currentTarget.style.borderColor="rgba(240,235,224,0.08)"},"aria-label":"Close navigation",children:e.jsx(D,{size:15,"aria-hidden":"true"})})]})]}),e.jsxs("nav",{className:"flex-1 overflow-y-auto px-4 py-4 space-y-1","aria-label":"Main navigation",children:[e.jsxs("button",{"data-first-item":!0,onClick:()=>T("home"),className:"w-full flex items-center gap-3 px-4 py-3 rounded-xl font-orbitron text-xs tracking-wider transition-all duration-200 min-h-[44px] mb-1",style:t==="home"?{background:"linear-gradient(135deg, #c9a227, #f2e08a)",color:"#03020a",fontWeight:700}:{color:w,background:"transparent"},onMouseEnter:d=>{t!=="home"&&(d.currentTarget.style.background="rgba(201,162,39,0.07)",d.currentTarget.style.color="#f2e08a")},onMouseLeave:d=>{t!=="home"&&(d.currentTarget.style.background="transparent",d.currentTarget.style.color=w)},"aria-current":t==="home"?"page":void 0,children:[e.jsx(It,{size:15,"aria-hidden":"true"}),e.jsxs("span",{className:"flex flex-col items-start",children:[e.jsx("span",{children:"HOME"}),e.jsx("span",{className:"text-xs font-rajdhani font-normal tracking-normal lowercase",style:{color:"inherit",opacity:.5},children:"Start here"})]})]}),e.jsxs("div",{children:[e.jsxs("button",{onClick:()=>i(!l),className:"w-full flex items-center justify-between px-4 py-3 rounded-xl font-orbitron text-xs tracking-wider transition-all duration-200 min-h-[44px]",style:{color:w,background:l?"rgba(201,162,39,0.06)":"transparent"},onMouseEnter:d=>{d.currentTarget.style.background="rgba(201,162,39,0.06)"},onMouseLeave:d=>{l||(d.currentTarget.style.background="transparent")},"aria-expanded":l,"aria-controls":"transmissions-submenu",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(z,{size:15,"aria-hidden":"true"}),e.jsxs("span",{className:"flex flex-col items-start",children:[e.jsx("span",{children:"TRANSMISSIONS"}),e.jsx("span",{className:"text-xs font-rajdhani font-normal tracking-normal lowercase",style:{color:"inherit",opacity:.5},children:"Past volumes & episodes"})]})]}),e.jsx(ot,{size:13,className:`transition-transform duration-300 ${l?"rotate-180":""}`,"aria-hidden":"true"})]}),e.jsx("div",{id:"transmissions-submenu",className:`mt-1 ml-3 space-y-0.5 overflow-hidden transition-all duration-300 ${l?"max-h-[600px] opacity-100":"max-h-0 opacity-0"}`,"aria-hidden":!l,...l?{}:{inert:""},children:lr.map(d=>{const f=d.icon,b=t===d.id;return"external"in d&&d.external?e.jsxs("a",{href:d.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 px-4 py-2.5 rounded-lg font-rajdhani text-sm tracking-wider transition-all duration-200 min-h-[44px]",style:{color:S},onMouseEnter:g=>{g.currentTarget.style.color="#f2e08a",g.currentTarget.style.background="rgba(201,162,39,0.06)"},onMouseLeave:g=>{g.currentTarget.style.color=S,g.currentTarget.style.background=""},"aria-label":`Visit ${d.label} (opens in new tab)`,children:[e.jsx(f,{size:13,"aria-hidden":"true"}),e.jsx("span",{children:d.label}),e.jsx(U,{size:9,className:"ml-auto opacity-35","aria-hidden":"true"})]},d.id):e.jsxs("button",{onClick:()=>T(d.id),className:"w-full flex items-center gap-3 px-4 py-2.5 rounded-lg font-rajdhani text-sm tracking-wider transition-all duration-200 min-h-[44px]",style:b?{background:"rgba(201,162,39,0.12)",color:"#f2e08a",fontWeight:700,border:"1px solid rgba(201,162,39,0.22)"}:"live"in d&&d.live?{color:"#ef4444",background:"rgba(239,68,68,0.07)",border:"1px solid rgba(239,68,68,0.18)",fontWeight:700}:{color:S},onMouseEnter:g=>{b||(g.currentTarget.style.background="live"in d&&d.live?"rgba(239,68,68,0.13)":"rgba(201,162,39,0.06)",g.currentTarget.style.color="live"in d&&d.live?"#f87171":"#f2e08a")},onMouseLeave:g=>{b||(g.currentTarget.style.background="live"in d&&d.live?"rgba(239,68,68,0.07)":"",g.currentTarget.style.color="live"in d&&d.live?"#ef4444":S)},"aria-current":b?"page":void 0,children:["live"in d&&d.live&&e.jsx("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:"#ef4444",boxShadow:"0 0 6px #ef4444",animation:"sigPulse 1.6s ease-in-out infinite"},"aria-hidden":"true"}),e.jsx(f,{size:13,"aria-hidden":"true"}),e.jsx("span",{children:d.label}),"live"in d&&d.live&&e.jsx("span",{className:"ml-auto font-mono text-xs tracking-[0.3em] px-1.5 py-0.5 rounded",style:{background:"rgba(239,68,68,0.2)",color:"#f87171",border:"1px solid rgba(239,68,68,0.3)"},children:"LIVE"})]},d.id)})})]}),e.jsxs("button",{onClick:()=>T("transmissions"),className:"channel-guide-panel-item w-full flex items-center gap-3 px-4 py-3.5 rounded-xl font-orbitron text-xs tracking-[0.18em] mb-2 min-h-[44px] border transition-all duration-300",style:t==="transmissions"?{background:"linear-gradient(135deg, #c9a227, #f2e08a)",color:"#03020a",fontWeight:800,borderColor:"transparent",boxShadow:"0 10px 28px rgba(201,162,39,0.35)"}:{background:"linear-gradient(135deg, rgba(201,162,39,0.14), rgba(201,162,39,0.04))",color:"#f2e08a",fontWeight:700,borderColor:"rgba(201,162,39,0.42)",boxShadow:"0 6px 18px rgba(0,0,0,0.4)"},"aria-current":t==="transmissions"?"page":void 0,children:[e.jsx(Ie,{size:16,"aria-hidden":"true"}),e.jsxs("span",{className:"flex flex-col items-start",children:[e.jsx("span",{children:"CHA
2NNEL GUIDE"}),e.jsx("span",{className:"text-xs font-rajdhani font-normal tracking-normal lowercase",style:{color:"inherit",opacity:.55},children:"Browse all streams"})]}),e.jsx("span",{className:"ml-auto font-mono text-xs tracking-[0.3em] opacity-70",children:"LIVE"})]}),e.jsxs("a",{href:"https://professorclock.media/the-nines",target:"_blank",rel:"noopener noreferrer",className:"w-full flex items-center gap-3 px-4 py-3 rounded-xl font-orbitron text-xs tracking-wider transition-all duration-200 min-h-[44px] border mb-1",style:{background:"rgba(234,179,8,0.08)",color:"#e8c85a",borderColor:"rgba(232,200,90,0.28)",fontWeight:700,textDecoration:"none",display:"flex"},onMouseEnter:d=>{d.currentTarget.style.background="rgba(232,200,90,0.14)",d.currentTarget.style.borderColor="rgba(232,200,90,0.55)"},onMouseLeave:d=>{d.currentTarget.style.background="rgba(234,179,8,0.08)",d.currentTarget.style.borderColor="rgba(232,200,90,0.28)"},"aria-label":"On the Nines — opens external site",children:[e.jsx(_t,{size:15,"aria-hidden":"true"}),e.jsxs("span",{className:"flex flex-col items-start flex-1",children:[e.jsx("span",{children:"ON THE NINES"}),e.jsx("span",{className:"text-xs font-rajdhani font-normal tracking-normal lowercase",style:{color:"inherit",opacity:.55},children:"Cyclical time calendar"})]}),e.jsx(U,{size:11,style:{opacity:.45},"aria-hidden":"true"})]}),e.jsxs("button",{onClick:()=>T("channelGuide"),className:"w-full flex items-center gap-3 px-4 py-3 rounded-xl font-orbitron text-xs tracking-wider transition-all duration-200 min-h-[44px] border mb-2",style:t==="channelGuide"?{background:"linear-gradient(135deg, #c9a227, #f2e08a)",color:"#03020a",fontWeight:700,borderColor:"transparent"}:{color:h,borderColor:"rgba(201,162,39,0.28)",background:"transparent"},onMouseEnter:d=>{t!=="channelGuide"&&(d.currentTarget.style.color=v,d.currentTarget.style.background="rgba(201,162,39,0.08)",d.currentTarget.style.borderColor="rgba(201,162,39,0.45)")},onMouseLeave:d=>{t!=="channelGuide"&&(d.currentTarget.style.color=h,d.currentTarget.style.background="transparent",d.currentTarget.style.borderColor="rgba(201,162,39,0.28)")},"aria-current":t==="channelGuide"?"page":void 0,children:[e.jsx(Ie,{size:15,"aria-hidden":"true"}),e.jsxs("span",{className:"flex flex-col items-start",children:[e.jsx("span",{children:"BROWSE CHANNELS"}),e.jsx("span",{className:"text-xs font-rajdhani font-normal tracking-normal lowercase",style:{color:"inherit",opacity:.5},children:"Curated video guide"})]})]}),e.jsxs("button",{onClick:()=>T("worldbuilder"),className:"w-full flex items-center gap-3 px-4 py-3 rounded-xl font-orbitron text-xs tracking-wider transition-all duration-200 min-h-[44px] border mb-2",style:t==="worldbuilder"?{background:"linear-gradient(135deg, #9b6fdb, #c9a8f0)",color:"#03020a",fontWeight:700,borderColor:"transparent"}:{color:"rgba(155,111,219,0.8)",borderColor:"rgba(155,111,219,0.28)",background:"transparent"},onMouseEnter:d=>{t!=="worldbuilder"&&(d.currentTarget.style.color="#9b6fdb",d.currentTarget.style.background="rgba(155,111,219,0.08)",d.currentTarget.style.borderColor="rgba(155,111,219,0.45)")},onMouseLeave:d=>{t!=="worldbuilder"&&(d.currentTarget.style.color="rgba(155,111,219,0.8)",d.currentTarget.style.background="transparent",d.currentTarget.style.borderColor="rgba(155,111,219,0.28)")},"aria-current":t==="worldbuilder"?"page":void 0,children:[e.jsx(pe,{size:15,"aria-hidden":"true"}),e.jsxs("span",{className:"flex flex-col items-start",children:[e.jsx("span",{children:"WORLD BUILDER"}),e.jsx("span",{className:"text-xs font-rajdhani font-normal tracking-normal lowercase",style:{color:"inherit",opacity:.5},children:"Afrofuturist cosmology hub"})]})]}),e.jsx("div",{className:"h-px my-2",style:{background:"rgba(201,162,39,0.07)"},role:"separator"}),e.jsxs("button",{onClick:()=>T("freaqmaker"),className:"w-full flex items-center gap-3 px-4 py-3 rounded-xl font-orbitron text-xs tracking-wider transition-all duration-200 min-h-[44px] border",style:t==="freaqmaker"?{background:"linear-gradient(135deg, #c9a227, #f2e08a)",color:"#03020a",fontWeight:700,borderColor:"transparent"}:{color:h,borderColor:"rgba(201,162,39,0.28)",background:"transparent"},onMouseEnter:d=>{t!=="freaqmaker"&&(d.currentTarget.style.color=v,d.currentTarget.style.background="rgba(201,162,39,0.08)",d.currentTarget.style.borderColor="rgba(201,162,39,0.45)")},onMouseLeave:d=>{t!=="freaqmaker"&&(d.currentTarget.style.color=h,d.currentTarget.style.background="transparent",d.currentTarget.style.borderColor="rgba(201,162,39,0.28)")},"aria-current":t==="freaqmaker"?"page":void 0,children:[e.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[e.jsx("ellipse",{cx:"12",cy:"8",rx:"10",ry:"4"}),e.jsx("path",{d:"M2 8v4c0 2.21 4.48 4 10 4s10-1.79 10-4V8"}),e.jsx("line",{x1:"8",y1:"16.5",x2:"6",y2:"22"}),e.jsx("line",{x1:"16",y1:"16.5",x2:"18",y2:"22"}),e.jsx("line",{x1:"6",y1:"22",x2:"18",y2:"22"})]}),e.jsxs("span",{className:"flex flex-col items-start",children:[e.jsx("span",{children:"FREAQ MAKER"}),e.jsx("span",{className:"text-xs font-rajdhani font-normal tracking-normal lowercase",style:{color:"inherit",opacity:.5},children:"Beat & frequency studio"})]})]}),e.jsxs("button",{onClick:()=>T("newspaper"),className:"w-full flex items-center gap-3 px-4 py-3 rounded-xl font-orbitron text-xs tracking-wider transition-all duration-200 min-h-[44px] border",style:t==="newspaper"?{background:"linear-gradient(135deg, #c9a227, #f2e08a)",color:"#03020a",fontWeight:700,borderColor:"transparent"}:{color:h,borderColor:"rgba(201,162,39,0.28)",background:"transparent"},onMouseEnter:d=>{t!=="newspaper"&&(d.currentTarget.style.color=v,d.currentTarget.style.background="rgba(201,162,39,0.08)",d.currentTarget.style.borderColor="rgba(201,162,39,0.45)")},onMouseLeave:d=>{t!=="newspaper"&&(d.currentTarget.style.color=h,d.currentTarget.style.background="transparent",d.currentTarget.style.borderColor="rgba(201,162,39,0.28)")},"aria-current":t==="newspaper"?"page":void 0,children:[e.jsx(_e,{size:15,"aria-hidden":"true"}),e.jsxs("span",{className:"flex flex-col items-start",children:[e.jsx("span",{children:"NAOPC NEWS"}),e.jsx("span",{className:"text-xs font-rajdhani font-normal tracking-normal lowercase",style:{color:"inherit",opacity:.5},children:"Articles & press"})]})]}),e.jsxs("button",{onClick:()=>T("council"),className:"w-full flex items-center gap-3 px-4 py-3 rounded-xl font-orbitron text-xs tracking-wider transition-all duration-200 min-h-[44px] border",style:t==="council"?{background:"linear-gradient(135deg, #c9a227, #f2e08a)",color:"#03020a",fontWeight:700,borderColor:"transparent"}:{color:h,borderColor:"rgba(201,162,39,0.28)",background:"transparent"},onMouseEnter:d=>{t!=="council"&&(d.currentTarget.style.color=v,d.currentTarget.style.background="rgba(201,162,39,0.08)",d.currentTarget.style.borderColor="rgba(201,162,39,0.45)")},onMouseLeave:d=>{t!=="council"&&(d.currentTarget.style.color=h,d.currentTarget.style.background="transparent",d.currentTarget.style.borderColor="rgba(201,162,39,0.28)")},"aria-current":t==="council"?"page":void 0,children:[e.jsx(le,{size:15,"aria-hidden":"true"}),e.jsxs("span",{className:"flex flex-col items-start",children:[e.jsx("span",{children:"NAOPC COUNCIL"}),e.jsx("span",{className:"text-xs font-rajdhani font-normal tracking-normal lowercase",style:{color:"inherit",opacity:.5},children:"Governance & lineages"})]})]}),e.jsxs("button",{onClick:()=>T("podcast"),className:"w-full flex items-center gap-3 px-4 py-3 rounded-xl font-orbitron text-xs tracking-wider transition-all duration-200 min-h-[44px] border",style:t==="podcast"?{background:"linear-gradient(135deg, #c9a227, #f2e08a)",color:"#03020a",fontWeight:700,borderColor:"transparent"}:{color:h,borderColor:"rgba(201,162,39,0.28)",background:"transparent"},onMouseEnter:d=>{t!=="podcast"&&(d.currentTarget.style.color=v,d.currentTarget.style.background="rgba(201,162,39,0.08)",d.currentTarget.style.borderColor="rgba(201,162,39,0.45)")},onMouseLeave:d=>{t!=="podcast"&&(d.currentTarget.style.color=h,d.currentTarget.style.background="transparent",d.currentTarget.style.borderColor="rgba(201,162,39,0.28)")},"aria-current":t==="podcast"?"page":void 0,children:[e.jsx(ct,{size:15,"aria-hidden":"true"}),e.jsxs("span",{className:"flex flex-col items-start",children:[e.jsx("span",{children:"RECOGNITION FREQUENCY"}),e.jsx("span",{className:"text-xs font-rajdhani font-normal tracking-normal lowercase",style:{color:"inherit",opacity:.5},children:"Audio episodes"})]})]}),e.jsxs("a",{href:"https://metamorphosisfrequentiarum.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 px-4 py-3 rounded-xl font-orbitron text-xs tracking-wider transition-all duration-200 min-h-[44px]",style:{color:w},onMouseEnter:d=>{d.currentTarget.style.color="#f2e08a",d.currentTarget.style.background="rgba(201,162,39,0.06)"},onMouseLeave:d=>{d.currentTarget.style.color=w,d.currentTarget.style.background=""},"aria-label":"Visit Grimoire (opens in new tab)",children:[e.jsx(Me,{size:15,"aria-hidden":"true"}),e.jsx("span",{children:"GRIMOIRE"}),e.jsx(U,{size:9,className:"ml-auto opacity-35","aria-hidden":"true"})]}),e.jsx("div",{className:"h-px my-2",style:{background:"rgba(201,162,39,0.07)"},role:"separator"}),[{page:"lexicon",icon:Te,label:"LEXICON"},{page:"about",icon:Me,label:"ABOUT"},{page:"press",icon:_e,label:"PRESS"},{page:"archive",icon:Mt,label:"ARCHIVE"}].map(({page:d,icon:f,label:b})=>e.jsxs("button",{onClick:()=>T(d),className:"w-full flex items-center gap-3 px-4 py-3 rounded-xl font-orbitron text-xs tracking-wider transition-all duration-200 min-h-[44px]",style:t===d?{background:"linear-gradient(135deg, #c9a227, #f2e08a)",color:"#03020a",fontWeight:700}:{color:w,background:"transparent"},onMouseEnter:g=>{t!==d&&(g.currentTarget.style.background="rgba(201,162,39,0.07)",g.currentTarget.style.color="#f2e08a")},onMouseLeave:g=>{t!==d&&(g.currentTarget.style.background="transparent",g.currentTarget.style.color=w)},"aria-current":t===d?"page":void 0,children:[f?e.jsx(f,{size:15,"aria-hidden":"true"}):null,e.jsx("span",{children:b})]},d))]}),e.jsxs("div",{className:"px-6 py-5",style:{borderTop:"1px solid rgba(201,162,39,0.07)"},children:[e.jsxs("button",{onClick:()=>{u(!0),r(!1)},className:"w-full flex items-center justify-center gap-2 px-4 py-3 rounded-xl font-orbitron font-bold text-xs tracking-[0.2em] mb-3 border transition-all duration-200",style:{color:"#c9a227",borderColor:"rgba(201,162,39,0.3)",background:"rgba(201,162,39,0.06)"},onMouseEnter:d=>{d.currentTarget.style.background="rgba(201,162,39,0.12)",d.currentTarget.style.borderColor="rgba(201,162,39,0.5)"},onMouseLeave:d=>{d.currentTarget.style.background="rgba(201,162,39,0.06)",d.currentTarget.style.borderColor="rgba(201,162,39,0.3)"},children:[e.jsx(ie,{size:12}),"JOIN THE TRANSMISSION LIST"]}),e.jsxs("a",{href:"https://professorclock.substack.com",target:"_blank",rel:"noopener noreferrer",className:"w-full flex items-center justify-center gap-2 font-mono text-xs tracking-[0.4em] mb-4 transition-colors duration-200",style:{color:"rgba(201,162,39,0.32)"},onMouseEnter:d=>{d.currentTarget.style.color="rgba(201,162,39,0.65)"},onMouseLeave:d=>{d.currentTarget.style.color="rgba(201,162,39,0.32)"},children:["ALSO ON SUBSTACK",e.jsx(U,{size:8})]}),e.jsx("div",{className:"flex gap-1 justify-center mb-4",children:[{page:"drop",ariaLabel:"Archival Drop"},{page:"index",ariaLabel:"Silent Index"},{page:"faq",ariaLabel:"FAQ"}].map(({page:d,ariaLabel:f},b)=>e.jsxs("span",{className:"flex items-center gap-1",children:[b>0&&e.jsx("span",{className:"font-mono text-xs",style:{color:"rgba(240,235,224,0.15)"},children:"·"}),e.jsx("button",{onClick:()=>T(d),className:"font-mono text-xs transition-colors min-h-[44px] px-3 rounded",style:{color:"rgba(201,162,39,0.38)"},onMouseEnter:g=>{g.currentTarget.style.color=v},onMouseLeave:g=>{g.currentTarget.style.color="rgba(201,162,39,0.38)"},"aria-label":`Navigate to ${f}`,children:"369"})]},d))}),e.jsx("p",{className:"font-mono text-xs tracking-[0.45em] text-center",style:{color:"rgba(240,235,224,0.18)"},children:"SESSION ACTIVE"})]})]}),e.jsx("style",{children:`
3        @keyframes navBackdropIn {
4          from { opacity: 0; }
5          to   { opacity: 1; }
6        }
7        @keyframes channelGuideFloat {
8          0%, 100% { transform: translateY(0); }
9          50%      { transform: translateY(-3px); }
10        }
11        @keyframes channelGuidePulse {
12          0%, 100% { box-shadow: 0 6px 22px rgba(0,0,0,0.55), 0 0 0 1px rgba(201,162,39,0.08) inset, 0 0 0 0 rgba(201,162,39,0.4); }
13          50%      { box-shadow: 0 6px 22px rgba(0,0,0,0.55), 0 0 0 1px rgba(201,162,39,0.08) inset, 0 0 0 6px rgba(201,162,39,0); }
14        }
15        .channel-guide-float {
16          animation: channelGuideFloat 4s ease-in-out infinite, channelGuidePulse 3s ease-in-out infinite;
17        }
18        .channel-guide-float:hover {
19          transform: translateY(-4px) scale(1.04);
20          border-color: rgba(201,162,39,0.7) !important;
21          box-shadow: 0 14px 32px rgba(201,162,39,0.35), 0 0 0 1px rgba(201,162,39,0.3) 
21inset !important;
22        }
23        .channel-guide-panel-item {
24          position: relative;
25          animation: channelGuideFloat 5s ease-in-out infinite;
26        }
27        @media (prefers-reduced-motion: reduce) {
28          .channel-guide-panel-item { animation: none !important; }
29        }
30        .channel-guide-panel-item:hover {
31          transform: translateY(-2px);
32        }
33        .on-the-nines-float {
34          animation: onTheNinesFloat 4.5s ease-in-out infinite;
35        }
36        .on-the-nines-float:hover {
37          transform: translateY(-4px) scale(1.04);
38          box-shadow: 0 14px 32px rgba(202,138,4,0.5) !important;
39        }
40        @keyframes onTheNinesFloat {
41          0%, 100% { transform: translateY(0); }
42          50%      { transform: translateY(-3px); }
43        }
44        @media (prefers-reduced-motion: reduce) {
45          .on-the-nines-float { animation: none !important; }
46        }
47      `})]})}const _={SESSION_ROMAN:"XVI",VOLUME_COUNT:16,VOLUME_ROMAN:"XVI",ALBUM_COUNT:17,FOOTER_RANGE:"NAOPC I–XVI",ORIGIN_YEAR:2010,CYCLE_END_YEAR:2026,MANDATE_YEARS:15},mn=["Speculative Fiction","Field Reports","Temporal Theory","Reader Coordinates"],De=[[201,162,39],[232,137,26],[26,184,201],[181,96,26],[240,215,140]];function ce(t,a,n){return t+(a-t)*n}function ft(){const t=c.useRef(null),a=c.useRef(0),n=c.useRef({x:-9999,y:-9999});return c.useEffect(()=>{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;const s=t.current;if(!s)return;const o=s.getContext("2d");if(!o)return;let r=0,l=0,i=[],m=[];const u=()=>{r=s.offsetWidth,l=s.offsetHeight,s.width=r*devicePixelRatio,s.height=l*devicePixelRatio,o.scale(devicePixelRatio,devicePixelRatio),x()},x=()=>{const w=Math.min(Math.floor(r*l/18e3),60);i=Array.from({length:w},()=>({x:Math.random()*r,y:Math.random()*l,vx:(Math.random()-.5)*.22,vy:(Math.random()-.5)*.18,radius:ce(1.5,4,Math.random()),opacity:ce(.3,.85,Math.random()),pulsePhase:Math.random()*Math.PI*2,pulseSpeed:ce(.008,.025,Math.random()),color:De[Math.floor(Math.random()*De.length)]})),p()},p=()=>{m=[];const w=Math.min(r,l)*.22;for(let S=0;S<i.length;S++)for(let d=S+1;d<i.length;d++){const f=i[S].x-i[d].x,b=i[S].y-i[d].y;f*f+b*b<w*w&&m.push({a:S,b:d})}};let N=0;const k=()=>{a.current=requestAnimationFrame(k),N++,o.clearRect(0,0,r,l);const w=n.current.x,S=n.current.y;for(const d of i){d.x+=d.vx,d.y+=d.vy,d.x<-10&&(d.x=r+10),d.x>r+10&&(d.x=-10),d.y<-10&&(d.y=l+10),d.y>l+10&&(d.y=-10);const f=d.x-w,b=d.y-S,g=Math.sqrt(f*f+b*b);if(g<120){const y=(120-g)/120;d.vx+=f/g*y*.06,d.vy+=b/g*y*.06}d.vx*=.998,d.vy*=.998,d.pulsePhase+=d.pulseSpeed}N%90===0&&p();for(const d of m){const f=i[d.a],b=i[d.b],g=f.x-b.x,y=f.y-b.y,R=Math.sqrt(g*g+y*y),M=Math.min(r,l)*.22,O=(1-R/M)*.18,[W,Y,$]=f.color;o.strokeStyle=`rgba(${W},${Y},${$},${O})`,o.lineWidth=.6,o.beginPath(),o.moveTo(f.x,f.y),o.lineTo(b.x,b.y),o.stroke()}for(const d of i){const f=.5+.5*Math.sin(d.pulsePhase),[b,g,y]=d.color,R=d.opacity*(.7+.3*f),M=d.radius*(2.5+1.5*f),O=o.createRadialGradient(d.x,d.y,0,d.x,d.y,M);O.addColorStop(0,`rgba(${b},${g},${y},${R})`),O.addColorStop(.4,`rgba(${b},${g},${y},${R*.4})`),O.addColorStop(1,`rgba(${b},${g},${y},0)`),o.fillStyle=O,o.beginPath(),o.arc(d.x,d.y,M,0,Math.PI*2),o.fill(),o.fillStyle=`rgba(${b},${g},${y},${Math.min(R*1.4,1)})`,o.beginPath(),o.arc(d.x,d.y,d.radius,0,Math.PI*2),o.fill()}},T=w=>{const S=s.getBoundingClientRect();n.current={x:w.clientX-S.left,y:w.clientY-S.top}},v=()=>{n.current={x:-9999,y:-9999}},h=new ResizeObserver(u);return h.observe(s),u(),k(),window.addEventListener("mousemove",T,{passive:!0}),s.addEventListener("mouseleave",v),()=>{cancelAnimationFrame(a.current),h.disconnect(),window.removeEventListener("mousemove",T),s.removeEventListener("mouseleave",v)}},[]),e.jsx("canvas",{ref:t,"data-particle-canvas":!0,className:"absolute inset-0 w-full h-full pointer-events-none","aria-hidden":"true",style:{mixBlendMode:"screen"}})}function cr({onClose:t}){const a=c.useRef(null);return c.useEffect(()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}),[]),c.useEffect(()=>{const n=s=>{s.key==="Escape"&&t()};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[t]),e.jsxs("div",{className:"fixed inset-0 z-[200] flex flex-col",style:{background:"#000"},children:[e.jsx("button",{onClick:t,className:"absolute top-6 right-6 z-10 flex items-center justify-center w-10 h-10 rounded-full border border-white/20 text-white/60 hover:text-white hover:border-white/50 transition-all duration-200","aria-label":"Close",children:e.jsx(D,{size:18})}),e.jsx("div",{ref:a,className:"flex-1 overflow-y-auto",children:e.jsxs("div",{className:"relative min-h-screen flex flex-col",children:[e.jsx("div",{className:"w-full flex items-center justify-center",style:{background:"#000"},children:e.jsx("img",{src:"/i-traveled-to-QUANTUMFORWARD_high-res.png",alt:"QUANTUMFORWARD",className:"block w-full h-auto",style:{maxWidth:"100%",display:"block"}})}),e.jsxs("div",{className:"px-8 sm:px-16 lg:px-24 pt-12 pb-4",children:[e.jsx("p",{className:"font-mono text-xs tracking-[0.5em] text-[#c9a227]/60 mb-3",children:"NAOPC SERIES · VOLUME I–XV"}),e.jsx("h1",{className:"font-serif text-4xl sm:text-5xl lg:text-6xl text-white leading-tight mb-2",children:e.jsx("em",{children:"Nuntius"})}),e.jsx("p",{className:"font-rajdhani text-base sm:text-lg text-white/70 tracking-wide max-w-2xl",children:"From LIGHT TRAVEL to QUANTUMFORWARD — A diary of a Time Prophet"})]}),e.jsxs("div",{className:"px-8 sm:px-16 lg:px-24 py-16 max-w-4xl",children:[e.jsxs("div",{className:"mb-16 pl-8 border-l-2",style:{borderColor:"#c9a227"},children:[e.jsx("p",{className:"font-mono text-xs tracking-[0.6em] text-[#c9a227]/50 mb-6",children:"FOREWORD"}),e.jsxs("div",{className:"space-y-5 font-rajdhani text-[#e8dcc4]/85 text-lg leading-relaxed",children:[e.jsx("p",{children:"Before anything else, you need to know what you are about to hear is not fiction."}),e.jsx("p",{children:"It is a record drawn from the inside of NOW:TIME. A document of what happens when perception breaks open and something larger moves through."}),e.jsx("p",{children:"I built this from frequency. From cycles older than the calendar you use to count your days. From the moment I understood that time does not move in one direction; it moves in all of them, at once."}),e.jsx("p",{children:"Every figure you encounter is real. Every gate is actual. Every threshold narrows because that is what thresholds do; they test what you carry before letting you through."}),e.jsx("p",{children:"You are not listening to music. You are standing inside a clock that counts in b'ak'tuns, in light-years, in the space between YES and everything that follows."}),e.jsx("p",{children:"This is the record. This is NOW:TIME."}),e.jsx("p",{className:"font-orbitron text-sm tracking-[0.2em] text-[#c9a227]",children:"Let it in."})]})]}),e.jsx("div",{className:"h-px mb-16",style:{background:"linear-gradient(to right, #c9a227, transparent)"}}),e.jsxs("div",{className:"space-y-8 font-rajdhani text-[#e8dcc4]/75 text-base leading-loose",children:[e.jsxs("p",{children:[e.jsx("span",{className:"font-orbitron text-[#c9a227] text-xs tracking-[0.3em] mr-2",children:"LANIAKEA"}),"stretches wide, a supercluster of light and silence, when a"," ",e.jsx("span",{className:"font-orbitron text-white/90 text-xs tracking-[0.2em]",children:"PARALLAX MORPH SYNDROME"})," ","fractures the view, shifting every angle of perception at once."]}),e.jsxs("p",{children:["An ",e.jsx("span",{className:"font-orbitron text-white/90 text-xs tracking-[0.2em]",children:"ARCHITECT"})," rises from the distortion, drawing plans across the void with bare hands. The blueprint reads"," ",e.jsx("span",{className:"font-orbitron text-[#c9a227] text-xs tracking-[0.2em]",children:"5125 (THE 13 B'AK'TUN)"}),", a calendar of cycles older than memory, counting down to the moment of"," ",e.jsx("span",{className:"font-orbitron text-white/90 text-xs tracking-[0.2em]",children:"IMPLEMENTATION"}),", when the design finally locks into place."]}),e.jsxs("p",{children:["What emerges is ",e.jsx("span",{className:"font-orbitron text-[#c9a227] text-xs tracking-[0.2em]",children:"THE FUTURE OF TIME"})," itself, a clock with no numbers, spinning forward and backward simultaneously."]}),e.jsxs("p",{children:["A single word cracks through the static like a ",e.jsx("span",{className:"font-orbitron text-white/90 text-xs tracking-[0.2em]",children:"THUNDERBOLT"}),":"," ",e.jsx("span",{className:"font-orbitron text-[#c9a227] text-sm tracking-[0.4em]",children:"YES."})]}),e.jsxs("p",{children:["That confirmation ignites a ",e.jsx("span",{className:"font-orbitron text-white/90 text-xs tracking-[0.2em]",children:"LIFETIME"})," of motion, a figure running through corridors of light that stretch and compress with every step. At the end of the corridor stands"," ",e.jsx("span",{className:"font-orbitron text-white/90 text-xs tracking-[0.2em]",children:"MASTER INTELLIGENCE"}),", an immense crystalline mind suspended in midair, radiating data in every direction."]}),e.jsxs("p",{children:["It launches a ",e.jsx("span",{className:"font-orbitron text-[#c9a227] text-xs tracking-[0.2em]",children:"STARLIGHT SURFER"}
47),", a lone rider on a beam of photons cutting across the black. The surfer passes through gates marked"," ",e.jsx("span",{className:"font-orbitron text-white/90 text-xs tracking-[0.2em]",children:"ELEVEN TWELVE THIRTEEN"}),", each one a threshold, each one narrower than the last."]}),e.jsxs("p",{children:["On the other side, ",e.jsx("span",{className:"font-orbitron text-[#c9a227] text-xs tracking-[0.2em]",children:"IMMORTAL RAIN"})," falls upward, silver drops rising from the ground into a bruised sky. Below, a"," ",e.jsx("span",{className:"font-orbitron text-white/90 text-xs tracking-[0.2em]",children:"DYSTOPIA"})," sprawls, all rust and wire and broken signals."]}),e.jsxs("p",{children:["But a single eye opens above the wreckage, an ",e.jsx("span",{className:"font-orbitron text-[#c9a227] text-xs tracking-[0.2em]",children:"OPSIS"}),", pure sight without a body, scanning everything at once. That gaze triggers"," ",e.jsx("span",{className:"font-orbitron text-white/90 text-xs tracking-[0.2em]",children:"CRONOS CATHARSIS"}),", time itself cracking open and releasing every locked second back into the atmosphere."]}),e.jsxs("p",{children:["And from that release, ",e.jsx("span",{className:"font-orbitron text-[#c9a227] text-sm tracking-[0.3em]",children:"RAPTURE"}),", a blinding column of white rising from the center of the frame, swallowing the dystopia, the rain, the surfer, the architect, and Laniakea whole."]}),e.jsxs("p",{children:["The entire piece describes one complete human cycle: from fracture to awareness to commitment to motion to clarity to release, from ",e.jsx("span",{className:"font-orbitron text-[#c9a227] text-sm tracking-[0.3em]",children:"LIGHT TRAVEL"})," to ",e.jsx("span",{className:"font-orbitron text-[#c9a227] text-sm tracking-[0.3em]",children:"QUANTUMFORWARD"}),"."]})]}),e.jsx("div",{className:"h-px mt-16 mb-12",style:{background:"linear-gradient(to right, transparent, #c9a227, transparent)"}}),e.jsx("div",{className:"text-center pb-16",children:e.jsx("p",{className:"font-mono text-xs tracking-[0.6em] text-[#c9a227]/40",children:"PROFESSORCLOCK · NAOPC SERIES · VOLUME I–XV · NOW:TIME"})})]})]})})]})}function dr(){const t=c.useRef(null),a=c.useRef(null),n=c.useRef(0),s=c.useRef(!1),o=c.useRef(typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches),r=c.useCallback(()=>{n.current=requestAnimationFrame(()=>{const l=t.current,i=a.current;if(!l||!i)return;const m=l.getBoundingClientRect(),u=window.innerHeight;if(o.current){i.style.transform="scale(1)",i.style.borderRadius="0px";return}const x=m.top<=0&&m.bottom>=u;if(x!==s.current&&(s.current=x,x?(i.style.position="fixed",i.style.top="0",i.style.left="0",i.style.width="100vw",i.style.height="100vh",i.style.borderRadius="0px",i.style.transform="none"):(i.style.position="",i.style.top="",i.style.left="",i.style.width="",i.style.height="",i.style.borderRadius="")),!x&&m.top>0){const p=Math.max(0,Math.min(1,(u-m.top)/u)),N=.82+p*.18;i.style.transform=`scale(${N})`,i.style.borderRadius=`${(1-p)*32}px`}})},[]);return c.useEffect(()=>(window.addEventListener("scroll",r,{passive:!0}),r(),()=>{window.removeEventListener("scroll",r),cancelAnimationFrame(n.current)}),[r]),{sectionRef:t,imgRef:a}}function ze({src:t,alt:a,glowColor:n="rgba(201,162,39,0.07)"}){return dr(),null}function ur({videoId:t,src:a,title:n,onClose:s}){const o=c.useRef(null);c.useEffect(()=>{const i=m=>{m.key==="Escape"&&s()};return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)},[s]),c.useEffect(()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}),[]);const r=!!t,l=!!a;return mt.createPortal(e.jsx(H,{children:e.jsxs(A.div,{className:"fixed inset-0 z-[9999] flex items-center justify-center px-4 py-6",role:"dialog","aria-modal":"true","aria-label":n,initial:{opacity:0}
47,animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},children:[e.jsx(A.div,{className:"absolute inset-0",style:{background:"rgba(3,2,10,0.95)",backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)"},onClick:s,"aria-hidden":"true"}),e.jsxs(A.div,{className:"relative w-full max-w-5xl",initial:{opacity:0,scale:.92},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.92},transition:{duration:.3,ease:[.16,1,.3,1]},onClick:i=>i.stopPropagation(),children:[e.jsxs("div",{className:"flex items-center justify-between px-5 py-3 rounded-t-xl",style:{background:"rgba(6,4,15,0.95)",border:"1px solid rgba(201,162,39,0.18)",borderBottom:"1px solid rgba(201,162,39,0.08)"},children:[e.jsx("span",{className:"font-mono text-xs tracking-[0.45em]",style:{color:"rgba(201,162,39,0.7)"},children:n}),e.jsx("button",{onClick:s,className:"flex h-9 w-9 items-center justify-center rounded-lg border transition-all duration-200",style:{color:"rgba(240,235,224,0.55)",borderColor:"rgba(240,235,224,0.1)"},onMouseEnter:i=>{i.currentTarget.style.color="#f2e08a",i.currentTarget.style.borderColor="rgba(201,162,39,0.4)",i.currentTarget.style.background="rgba(201,162,39,0.08)"},onMouseLeave:i=>{i.currentTarget.style.color="rgba(240,235,224,0.55)",i.currentTarget.style.borderColor="rgba(240,235,224,0.1)",i.currentTarget.style.background="transparent"},"aria-label":"Close video",children:e.jsx(D,{size:15,"aria-hidden":"true"})})]}),e.jsxs("div",{className:"relative aspect-video w-full overflow-hidden rounded-b-xl",style:{border:"1px solid rgba(201,162,39,0.18)",borderTop:"none",background:"#000",boxShadow:"0 40px 100px rgba(0,0,0,0.85), 0 0 60px rgba(201,162,39,0.06)"},children:[r&&e.jsx("iframe",{ref:o,className:"h-full w-full",src:`https://www.youtube.com/embed/${t}?autoplay=1&rel=0`,title:n,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),l&&!r&&e.jsx("iframe",{ref:o,className:"h-full w-full",src:a,title:n,allow:"autoplay; fullscreen; picture-in-picture",allowFullScreen:!0})]})]})]})}),document.body)}function q({visual:t,children:a,label:n,className:s="",style:o,stickyHeight:r="100svh",stageBg:l="#03020a"}){return e.jsx("section",{className:`relative w-full ${s}`,style:o,"aria-label":n,children:e.jsxs("div",{className:"max-w-screen-2xl mx-auto lg:flex lg:items-start",children:[e.jsx("div",{className:"w-full lg:w-1/2 lg:sticky lg:top-0 overflow-hidden flex-shrink-0",style:{height:r,background:l},"aria-hidden":"true",children:t}),e.jsx("div",{className:"w-full lg:w-1/2 flex-shrink-0",children:a})]})})}const mr={1:"rgba(10,8,21,0.88)",2:"rgba(10,8,21,0.65)",3:"rgba(10,8,21,0.40)"},Fe={1:"blur(28px) saturate(180%)",2:"blur(12px)",3:"blur(6px)"};function F({children:t,tier:a=1,className:n="",style:s,accentColor:o="rgba(201,162,39,0.18)",topLine:r=!1,as:l="div"}){return e.jsxs(l,{className:`relative rounded-2xl overflow-hidden ${n}`,style:{background:mr[a],backdropFilter:Fe[a],WebkitBackdropFilter:Fe[a],border:`1px solid ${o}`,...s},children:[r&&e.jsx("div",{className:"absolute top-0 left-0 right-0 h-px pointer-events-none",style:{background:`linear-gradient(to right, ${o.replace(/[\d.]+\)$/,"0.8)")}, transparent 60%)`},"aria-hidden":"true"}),t]})}function xr({open:t,onClose:a}){return c.useEffect(()=>{if(!t)return;const n=s=>{s.key==="Escape"&&a()};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[t,a]),e.jsx(H,{children:t&&e.jsxs(A.div,{className:"fixed inset-0 z-50 flex items-center justify-center p-4",initial:{opacity:0}
47,animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},children:[e.jsx(A.div,{className:"absolute inset-0",style:{background:"rgba(3,2,10,0.88)",backdropFilter:"blur(10px)"},onClick:a,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),e.jsx(A.button,{onClick:a,className:"absolute top-5 right-5 z-10 p-2 rounded-full transition-colors hover:bg-white/10",style:{color:"rgba(255,255,255,0.5)",border:"1px solid rgba(255,255,255,0.12)"},initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{delay:.15},"aria-label":"Close",children:e.jsx(D,{size:18})}),e.jsxs(A.div,{className:"relative z-10 flex flex-col items-center",initial:{opacity:0,scale:.88,y:24},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.88,y:24},transition:{type:"spring",stiffness:320,damping:30},children:[e.jsxs("div",{className:"relative flex flex-col items-center",style:{width:390,height:844,maxHeight:"calc(100dvh - 48px)",borderRadius:"2.5rem",background:"linear-gradient(145deg, #1a1a2e, #0d0d1a)",border:"2px solid rgba(255,255,255,0.12)",boxShadow:"0 0 0 1px rgba(255,255,255,0.04), 0 32px 80px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.08)",padding:"14px 6px 10px"},children:[e.jsx("div",{className:"absolute top-[14px] left-1/2 -translate-x-1/2 z-20",style:{width:120,height:34,borderRadius:20,background:"#0a0a0a",border:"1.5px solid rgba(255,255,255,0.08)"}}),e.jsx("div",{className:"relative w-full flex-1 overflow-hidden",style:{borderRadius:"calc(2.5rem - 8px)",background:"#000"},children:e.jsx("iframe",{src:"https://professorclock.media/the-nines",title:"On The Nines — Video Series",className:"w-full h-full border-none",sandbox:"allow-scripts allow-same-origin allow-forms allow-popups",allow:"autoplay; fullscreen",loading:"eager"})}),e.jsx("div",{className:"mt-2 flex-shrink-0",style:{width:134,height:5,borderRadius:3,background:"rgba(255,255,255,0.25)"}})]}),e.jsx("p",{className:"mt-4 font-mono text-xs tracking-widest",style:{color:"rgba(255,255,255,0.3)"},children:"ON THE NINES — LIVE TRANSMISSION"})]})]})})}function ht(t,a="0px 0px -40% 0px"){const[n,s]=c.useState(0),o=c.useRef(Array(t).fill(null)),r=l=>i=>{o.current[l]=i};return c.useEffect(()=>{if(typeof IntersectionObserver>"u")return;const l=new IntersectionObserver(m=>{m.forEach(u=>{if(u.isIntersecting){const x=o.current.indexOf(u.target);x!==-1&&s(x)}})},{rootMargin:a,threshold:.2}),i=o.current;return i.forEach(m=>{m&&l.observe(m)}),()=>{i.forEach(m=>{m&&l.unobserve(m)})}},[t,a]),{activeIndex:n,setRef:r}}function bt(t,a,n,s,o=0){const r=new Date(Date.UTC(t,a-1,n,s,o,0)),l=new Intl.DateTimeFormat("en-US",{timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(r),i={};for(const p of l)i[p.type]=p.value;const m=parseInt(i.hour==="24"?"0":i.hour,10),u=parseInt(i.minute,10),x=r.getTime()-Date.UTC(parseInt(i.year,10),parseInt(i.month,10)-1,parseInt(i.day,10),m,u,0);return Date.UTC(t,a-1,n,s,o,0)-x}const yt=bt(2026,8,27,21,0),gr=bt(2026,8,28,0,0);function pr(){const t=Date.now();return t<yt?"before":t<gr?"during":"after"}function fr(){const[t,a]=c.useState(null);return c.useEffect(()=>{const n=()=>a(Math.max(0,yt-Date.now()));n();const s=setInterval(n,1e3);return()=>clearInterval(s)},[]),t}function ee(t){return String(t).padStart(2,"0")}function hr({ms:t}){if(t===null)return e.jsx("div",{className:"font-unbounded text-2xl sm:text-3xl tracking-[0.15em]",style:{color:"#ffd700"},children:"-- : -- : -- : --"});const a=Math.floor(t/1e3),n=Math.floor(a/86400),s=Math.floor(a%86400/3600),o=Math.floor(a%3600/60),r=a%60;return e.jsxs("div",{className:"font-unbounded text-2xl sm:text-3xl tracking-[0.15em] flex items-center gap-1",style:{color:"#ffd700"},children:[e.jsx("span",{children:ee(n)}),e.jsx("span",{style:{color:"rgba(255,215,0,0.4)"},children:":"}),e.jsx("span",{children:ee(s)}),e.jsx("span",{style:{color:"rgba(255,215,0,0.4)"},children:":"}),e.jsx("span",{children:ee(o)}),e.jsx("span",{style:{color:"rgba(255,215,0,0.4)"},children:":"}),e.jsx("span",{children:ee(r)})]})}function br(){return e.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none","aria-hidden":"true",children:Array.from({length:40}).map((t,a)=>{const n=a*37%100,s=a*53%100,o=a%3+1,r=a*.3%4,l=3+a%4;
47return e.jsx("div",{className:"absolute rounded-full",style:{top:`${n}%`,left:`${s}%`,width:`${o}px`,height:`${o}px`,background:a%7===0?"#00e5ff":"rgba(255,255,255,0.5)",animation:`gate9twinkle ${l}s ease-in-out ${r}s infinite`}},a)})})}const yr=[{label:"damienlamar.com",sub:"",href:"https://damienlamar.com"},{label:"timetravelersdigest.com",sub:"",href:"https://timetravelersdigest.com"},{label:"professorclock.media",sub:"",href:"https://professorclock.media"},{label:"professorclock.tv",sub:"The Afrofuturist Time Channel",href:"https://professorclock.tv"}];function Be(){return e.jsx("div",{className:"w-full grid grid-cols-2 sm:grid-cols-4 gap-px mt-6 pt-4",style:{borderTop:"1px solid rgba(0,180,255,0.1)"},children:yr.map(t=>e.jsxs("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:"flex flex-col items-center text-center px-2 py-1 transition-opacity duration-200 hover:opacity-100",style:{opacity:.6},children:[e.jsx("span",{className:"font-satoshi text-xs sm:text-xs tracking-[0.15em] uppercase",style:{color:"#00e5ff"},children:t.label}),e.jsx("span",{className:"font-satoshi text-xs sm:text-xs tracking-[0.1em] uppercase mt-0.5",style:{color:"rgba(0,229,255,0.45)"},children:t.sub})]},t.href))})}function Ue({color:t,pulse:a}){return e.jsx("span",{className:"inline-block rounded-full",style:{width:8,height:8,background:t,boxShadow:`0 0 8px ${t}`,animation:a?"gate9pulse 1.8s ease-in-out infinite":"none"}})}function vr(){const[t,a]=c.useState(null),n=fr();return c.useEffect(()=>{const r=()=>a(pr());r();const l=setInterval(r,5e3);return()=>clearInterval(l)},[]),t?e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
48        @keyframes gate9twinkle {
49          0%, 100% { opacity: 0.2; }
50          50% { opacity: 0.8; }
51        }
52        @keyframes gate9pulse {
53          0%, 100% { opacity: 1; transform: scale(1); }
54          50% { opacity: 0.4; transform: scale(0.85); }
55        }
56        @keyframes gate9scan {
57          0% { transform: translateY(-100%); }
58          100% { transform: translateY(100%); }
59        }
60        @media (prefers-reduced-motion: reduce) {
61          .gate9-scanline { display: none !important; }
62        }
63      `}),e.jsxs("section",{className:"relative w-full overflow-hidden",style:{background:"#000000",borderBottom:"1px solid rgba(0,180,255,0.08)"},"aria-label":"Gate 9 — Final Passage",children:[e.jsx(br,{}),e.jsx("div",{className:"gate9-scanline absolute inset-0 pointer-events-none",style:{background:"linear-gradient(to bottom, transparent 0%, rgba(0,229,255,0.03) 50%, transparent 100%)",height:"40%",animation:"gate9scan 8s linear infinite"},"aria-hidden":"true"}),e.jsxs("div",{className:"relative z-10 max-w-[920px] mx-auto px-4 sm:px-6 py-8 sm:py-12",children:[t==="before"&&e.jsxs("div",{className:"flex flex-col items-center text-center",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[e.jsx(Ue,{color:"#ff3333",pulse:!0}),e.jsx("span",{className:"font-satoshi text-xs sm:text-sm tracking-[0.3em] uppercase",style:{color:"rgba(255,255,255,0.7)"},children:" "})]}),e.jsx("h2",{className:"font-clash font-600 text-2xl sm:text-4xl leading-[1.1] mb-4",style:{color:"#ffffff"},children:"The Cosmodromium Sanctuary"}),e.jsx("p",{className:"font-satoshi text-sm sm:text-base leading-relaxed max-w-[560px] mb-6",style:{color:"rgba(255,255,255,0.55)"},children:"The Full Sturgeon Blood Moon enters a 96.2% umbral eclipse. A fifteen-year cycle reaches its resolution."}),e.jsx("div",{className:"mb-6 rounded-xl px-6 py-4",style:{background:"rgba(5,8,20,0.55)",border:"1px solid rgba(0,180,255,0.15)"},children:e.jsx(hr,{ms:n??0})}),e.jsx("p",{className:"font-satoshi text-xs sm:text-sm leading-relaxed max-w-[520px] mb-6",style:{color:"rgba(255,255,255,0.4)"},children:"Tonight at 9:00 PM ET, the opening nine minutes are shown to a private room — live, once. There is no livestream. This gathering is for the Intended Receivers."}),e.jsx("a",{href:"https://professorclock.media/rsvp",target:"_blank",rel:"noopener noreferrer",className:"font-satoshi font-500 text-xs sm:text-sm tracking-[0.2em] uppercase px-8 py-3.5 rounded-lg transition-all duration-300",style:{border:"1px solid #ffd700",color:"#ffd700",background:"rgba(255,215,0,0.04)"},onMouseEnter:r=>{r.currentTarget.style.background="rgba(255,215,0,0.12)",r.currentTarget.style.boxShadow="0 0 24px rgba(255,215,0,0.2)"},onMouseLeave:r=>{r.currentTarget.style.background="rgba(255,215,0,0.04)",r.currentTarget.style.boxShadow=""},children:"Request the Replay →"}),e.jsx(Be,{})]}),t==="during"&&e.jsxs("div",{className:"flex flex-col items-center text-center",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[e.jsx(Ue,{color:"#00e5ff",pulse:!0}),e.jsx("span",{className:"font-satoshi text-xs sm:text-sm tracking-[0.3em] uppercase",style:{color:"#00e5ff"},children:"Transmission in Progress"})]}),e.jsx("h2",{className:"font-clash font-700 text-3xl sm:text-5xl leading-[1.05] mb-6",style:{color:"#ffffff"},children:"The Wall is Open."}),e.jsx("p",{className:"font-satoshi text-sm sm:text-base leading-relaxed max-w-[520px] mb-6",style:{color:"rgba(255,255,255,0.5)"},children:"The Cosmodromium Sanctuary is being seen for the first time. 9:09 PM — the witness mark is set."}),e.jsx(Be,{})]}),!1]})]})]}):null}const jr="https://pclockmedia.us-east-1.linodeobjects.com/professorclock_opening_scene.MOV",Nr="/img_3123.jpeg",kr="https://naopc-awakening.us-southeast-1.linodeobjects.com/AP4TMC_16x9_v3.png",wr="https://pclockmedia.us-east-1.linodeobjects.com/opsis-binary.png";function Tr(){const t=c.useRef(null),a=c.useRef(0),n=c.useCallback(()=>{a.current=requestAnimationFrame(()=>{t.current&&(t.current.style.transform=`translateY(${window.scrollY*.35}px) scale(1.1)`)})},[]);return c.useEffect(()=>(window.addEventListener("scroll",n,{passive:!0}),()=>{window.removeEventListener("scroll",n),cancelAnimationFrame(a.current)}),[n]),t}
63function V(t="0px 0px -60px 0px"){const a=c.useRef(null);return c.useEffect(()=>{const n=a.current;if(!n)return;const s=n.querySelectorAll(".reveal-hidden, .reveal-decode, .reveal, .reveal-blur");if(!s.length)return;const o=new IntersectionObserver(r=>{r.forEach(l=>{if(l.isIntersecting){const i=l.target,m=i.dataset.revealDelay||"0";setTimeout(()=>{i.classList.add("is-visible","visible")},parseInt(m,10)),o.unobserve(i)}})},{rootMargin:t,threshold:.06});return s.forEach(r=>o.observe(r)),()=>o.disconnect()},[t]),a}const Sr="https://pclockmedia.us-east-1.linodeobjects.com/professorclock_IR_.mp4",te=[{id:"intended-receivers",label:"INTENDED RECEIVERS",code:"D-00",icon:z,accent:"#1ab8c9",lore:"The signal finds its own.",description:"This transmission addresses the Melanated Collective directly. The channel does not compete for attention. It waits for recognition."},{id:"quantumforward",label:"QUANTUMFORWARD",code:"D-01",icon:B,accent:"#c9a227",lore:"The 15-year mandate completes.",description:"21-track temporal reconstruction. Three-act hourglass structure."},{id:"wubogu",label:"WUBOGU",code:"D-02",icon:fe,accent:"#e8c85a",lore:"Wake Up. Black One. Get Up.",description:"Ancestral signal activation. Not a music video — a ritual transmission device."},{id:"signal",label:"SIGNAL INTERRUPTION",code:"D-03",icon:it,accent:"#1ab8c9",lore:"The interruption was the message.",description:"When the broadcast fractures, truth leaks through."},{id:"cosmodromium",label:"VOX ÆI",code:"D-04",icon:z,accent:"#1fa857",lore:"The archive speaks before you arrive.",description:"Authored prophecy. Ancient syntax. The instrument serves the transmission."},{id:"interim",label:"INTERIM PROTOCOL",code:"D-05",icon:le,accent:"#e8891a",lore:"Obey. Or decode.",description:"The governing frequency between sessions."},{id:"cronos",label:"CRONOS CATHARSIS",code:"D-06",icon:dt,accent:"#c9a227",lore:"What was buried always rises.",description:"Time does not heal. Time reveals."},{id:"nowtime",label:"NOW:TIME",code:"D-07",icon:Ee,accent:"#1ab8c9",lore:"The clock is not a metaphor.",description:"The present is a frequency. Tune in."}];function Er({onNavigate:t}){const[a,n]=c.useState(!1),[s,o]=c.useState(!1),[r,l]=c.useState(!1),[i,m]=c.useState(!1),[u,x]=c.useState(!1),p=Tr();return e.jsxs("div",{id:"main-content",className:"min-h-screen",style:{background:"#03020a"},tabIndex:-1,children:[s&&e.jsx(cr,{onClose:()=>o(!1)}),e.jsx(Ce,{isOpen:r,onClose:()=>l(!1)}),e.jsx(xr,{open:u,onClose:()=>x(!1)}),i&&e.jsx(ur,{src:"https://iframe.mediadelivery.net/embed/687852/4aafa943-f940-4be2-a9be-f22c806a8be0?autoplay=true&loop=false&muted=false&preload=true",title:"NAOPC OP. 16 — WATCH THE FILM",onClose:()=>m(!1)}),e.jsx("div",{className:"fixed top-0 bottom-0 left-0 w-px pointer-events-none z-30 hidden lg:block",style:{background:"linear-gradient(to bottom, transparent 0%, rgba(201,162,39,0.15) 20%, rgba(201,162,39,0.25) 50%, rgba(201,162,39,0.15) 80%, transparent 100%)"},"aria-hidden":"true"}),e.jsx(vr,{}),e.jsx(Cr,{videoReady:a,setVideoReady:n,parallaxRef:p,onNavigate:t,onShowNuntius:()=>o(!0),onShowFilm:()=>m(!0),onShowSignup:()=>l(!0),onShowWatch:()=>x(!0)}),e.jsx(Rr,{onShowWatch:()=>x(!0)}),e.jsx(Or,{onNavigate:t}),e.jsx(Ar,{onNavigate:t}),e.jsx(ze,{src:kr,alt:"QUANTUMFORWARD"}),e.jsx(Ir,{onNavigate:t}),e.jsx(_r,{}),e.jsx(ze,{src:wr,alt:"Opsis Binary",glowColor:"rgba(26,184,201,0.06)"}),e.jsx(Pr,{onNavigate:t}),e.jsx(Dr,{onOpenSignup:()=>l(!0)}),e.jsx(zr,{}),e.jsx(Fr,{onNavigate:t,onShowFilm:()=>m(!0)}),e.jsx("style",{children:`
64        @keyframes fadeSlideUp {
65          from { opacity: 0; transform: translateY(20px); }
66          to   { opacity: 1; transform: translateY(0); }
67        }
68        @keyframes ctaPulse {
69          0%, 100% { box-shadow: 0 0 28px rgba(201,162,39,0.35), 0 8px 32px rgba(0,0,0,0.5); }
70          50%       { box-shadow: 0 0 60px rgba(201,162,39,0.65), 0 8px 32px rgba(0,0,0,0.5); }
71        }
72        @keyframes pulsGlow {
73          0%, 100% { box-shadow: 0 0 8px rgba(201,162,39,0.6); }
74          50%       { box-shadow: 0 0 18px rgba(201,162,39,1); }
75        }
76        @keyframes scanPulse {
77          0%, 100% { opacity: 0.016; }
78          50%       { opacity: 0.028; }
79        }
80        @keyframes txStageEnter {
81          from { opacity: 0; transform: scale(0.94) translateY(10px); }
82          to   { opacity: 1; transform: scale(1) translateY(0); }
83        }
84        @keyframes lineGrow {
85          from { width: 0; opacity: 0; }
86          to   { width: 100%; opacity: 1; }
87        }
88        /* Hover-reveal CTAs — mirrors the Channel Guide hover pattern.
89           Hidden at rest, lifted into view when the parent group is hovered
90           or any child CTA is focus-visible for keyboard accessibility. */
91        .hover-reveal-cta {
92          opacity: 0;
93          transform: translateY(8px);
94          pointer-events: none;
95          transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease, border-color 0.3s ease, background-position 0.3s ease;
96        }
97        .hero-cta-group:hover .hover-reveal-cta,
98        .hero-cta-group:focus-within .hover-reveal-cta,
99        .album-context-card:hover .hover-reveal-cta,
100        .album-context-card:focus-within .hover-reveal-cta,
101        .hover-reveal-cta:focus-visible {
102          opacity: 1;
103          transform: translateY(0);
104          pointer-events: auto;
105        }
106        @media (prefers-reduced-motion: reduce) {
107          .hover-reveal-cta { transition: opacity 0.15s linear; transform: none; }
108        }
109      `})]})}function Cr({videoReady:t,setVideoReady:a,parallaxRef:n,onNavigate:s,onShowNuntius:o,onShowFilm:r,onShowSignup:l,onShowWatch:i}){return e.jsxs("section",{className:"relative w-full overflow-hidden",style:{minHeight:"100svh"},"aria-label":"Hero",children:[e.jsxs("div",{ref:n,className:"absolute inset-0 will-change-transform",style:{transformOrigin:"center center",transform:"scale(1.1)"},"aria-hidden":"true",children:[e.jsx("img",{src:Nr,alt:"",fetchPriority:"high",decoding:"async",className:"absolute inset-0 w-full h-full object-cover object-center",style:{opacity:t?0:1,transition:"opacity 1.5s ease"}}),e.jsx("video",{className:"absolute inset-0 w-full h-full object-cover object-center",autoPlay:!0,muted:!0,loop:!0,playsInl
109ine:!0,style:{opacity:t?1:0,transition:"opacity 1.5s ease"},onCanPlay:()=>a(!0),onError:()=>a(!1),children:e.jsx("source",{src:jr,type:"video/mp4"})})]}),e.jsx("div",{className:"absolute inset-0 z-[5] pointer-events-none",children:e.jsx(ft,{})}),e.jsx("div",{className:"absolute inset-0 z-10 pointer-events-none",style:{background:["linear-gradient(to top, rgba(3,2,10,1) 0%, rgba(3,2,10,0.6) 28%, rgba(3,2,10,0.1) 55%, transparent 75%)","linear-gradient(to right, rgba(3,2,10,0.88) 0%, rgba(3,2,10,0.5) 38%, rgba(3,2,10,0.08) 62%, transparent 78%)"].join(", ")},"aria-hidden":"true"}),e.jsx("div",{className:"absolute inset-0 z-10 pointer-events-none",style:{backgroundImage:"linear-gradient(rgba(201,162,39,1) 1px, transparent 1px), linear-gradient(90deg, rgba(201,162,39,1) 1px, transparent 1px)",backgroundSize:"120px 120px",opacity:.018,animation:"scanPulse 14s ease-in-out infinite"},"aria-hidden":"true"}),e.jsx("div",{className:"relative z-20 w-full min-h-[100svh] flex items-end xl:items-center",children:e.jsxs("div",{className:"w-full max-w-screen-xl mx-auto px-6 sm:px-10 lg:px-16 pb-24 xl:pb-0 xl:grid xl:grid-cols-[minmax(0,1fr)_360px] xl:gap-16 xl:items-center",children:[e.jsxs("div",{className:"relative z-20 xl:py-28 max-w-[640px]",children:[e.jsx("h1",{className:"font-orbitron font-black leading-[0.9] tracking-[0.02em] mb-6",style:{fontSize:"clamp(1.9rem, 4.6vw, 3.4rem)",maxWidth:"min(100%, 14ch)",background:"linear-gradient(150deg, #ffffff 0%, #f0ebe0 20%, #f2e08a 50%, #c9a227 75%, #7d6118 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",animation:"fadeSlideUp 1s cubic-bezier(0.16,1,0.3,1) both 0.3s",opacity:0},children:"PROFESSORCLOCK"}),e.jsxs("p",{className:"font-rajdhani text-base mb-10 max-w-[520px]",style:{color:"rgba(240,235,224,0.72)",lineHeight:"1.7",animation:"fadeSlideUp 0.9s ease both 0.55s",opacity:0,fontSize:"clamp(0.95rem, 1.6vw, 1.05rem)"},children:["TIME MOVES IN CYCLES.",e.jsx("br",{}),e.jsx("br",{}),"Align with the On the Nines temporal framework. Discover a 20-year Afrofuturist universe engineered through sound, film, and Black time. The final protocol, AP4TMC, is broadcasting now.",e.jsx("br",{}),e.jsx("br",{}),"Experience 16 volumes of Black data, sonic architecture, and cinematic vision built for the Melanated Collective.",e.jsx("br",{}),e.jsx("br",{}),"Enter the Frequency"]}),e.jsxs("div",{className:"inline-flex items-center gap-3 mb-5",style:{animation:"fadeSlideUp 0.7s ease both 0.1s",opacity:0}
109,children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:"#c9a227",animation:"pulsGlow 2s ease-in-out infinite",boxShadow:"0 0 8px rgba(201,162,39,0.8)"},"aria-hidden":"true"}),e.jsxs("span",{className:"font-orbitron text-xs tracking-[0.55em]",style:{color:"rgba(201,162,39,0.9)"},children:["REMEMBER FORWARD · NAOPC · ",_.CYCLE_END_YEAR]}),e.jsx("div",{className:"h-px w-8",style:{background:"linear-gradient(to right, rgba(201,162,39,0.7), transparent)"},"aria-hidden":"true"})]}),e.jsx("button",{onClick:o,className:"font-mono text-xs tracking-[0.45em] transition-all duration-200",style:{color:"rgba(201,162,39,0.3)",animation:"fadeSlideUp 0.9s ease both 1.05s",opacity:0},onMouseEnter:m=>{m.currentTarget.style.color="rgba(201,162,39,0.7)"},onMouseLeave:m=>{m.currentTarget.style.color="rgba(201,162,39,0.3)"},children:e.jsx("em",{children:"NUNTIUS ↗"})})]}),e.jsx("div",{className:"hidden xl:block album-context-card",style:{animation:"fadeSlideUp 1s ease both 1.1s",opacity:0},children:e.jsxs("div",{className:"relative",children:[e.jsxs("div",{className:"relative rounded-xl overflow-hidden mb-4",children:[e.jsxs("div",{className:"relative group cursor-pointer w-full text-left",children:[e.jsx("div",{className:"w-full aspect-square relative overflow-hidden",children:e.jsx("iframe",{className:"absolute inset-0 w-full h-full",src:"https://www.youtube.com/embed/iitgNTuQOug?autoplay=1&mute=1&loop=1&playlist=iitgNTuQOug&controls=0&showinfo=0&rel=0&modestbranding=1&vq=hd1080",title:"AP4TMC: FREAQMAKER // 6th Ópsis Visualizer",allow:"autoplay; encrypted-media; picture-in-picture",allowFullScreen:!0,style:{border:"none"}})}),e.jsx("div",{className:"absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity duration-300 pointer-events-none",style:{background:"rgba(3,2,10,0.4)"},children:e.jsx("div",{className:"w-14 h-14 rounded-full flex items-center justify-center border-2",style:{borderColor:"#f2e08a",background:"rgba(201,162,39,0.15)"},children:e.jsx(Se,{size:22,fill:"#f2e08a",style:{color:"#f2e08a",marginLeft:2}})})})]}),e.jsxs("div",{className:"absolute bottom-3 left-4 right-4",children:[e.jsx("p",{className:"font-orbitron font-black text-sm",style:{color:"#f2e08a"},children:"AP4TMC: FREAQMAKER // 6th Ópsis Visualizer"}),e.jsxs("p",{className:"font-mono text-xs tracking-[0.3em] mt-1",style:{color:"rgba(201,162,39,0.55)"},children:["NAOPC VOL ",_.VOLUME_ROMAN," · ",_.VOLUME_COUNT," VOLUMES · ",_.CYCLE_END_YEAR]})]})]}),e.jsx("div",{className:"grid grid-cols-3 gap-3 mb-4",children:[["20","YEARS"],["2026","SESSION"],["17","VOLUMES"]].map(([m,u])=>e.jsxs("div",{className:"text-center py-2 rounded-lg",style:{background:"rgba(201,162,39,0.05)"},children:[e.jsx("p",{className:"font-orbitron font-black text-lg",style:{color:"#c9a227"},children:m}),e.jsx("p",{className:"font-mono text-xs tracking-[0.35em] mt-0.5",style:{color:"rgba(240,235,224,0.28)"},children:u})]},u))}),e.jsx("p",{className:"font-rajdhani text-sm leading-relaxed mb-4",style:{color:"rgba(240,235,224,0.45)",lineHeight:"1.6"},children:"Sixteen volumes. One final protocol for the Melanated Collective."}),e.jsxs("button",{onClick:()=>
109l(),className:"hover-reveal-cta w-full flex items-center justify-center gap-2 font-orbitron font-bold text-xs tracking-[0.18em] py-3.5 rounded-xl transition-all duration-300",style:{background:"linear-gradient(135deg, #c9a227, #f2e08a)",color:"#03020a"},children:[e.jsx(ie,{size:11,"aria-hidden":"true"}),"JOIN THE TRANSMISSION LIST"]})]})})]})}),e.jsxs("div",{className:"absolute bottom-8 left-1/2 -translate-x-1/2 flex flex-col items-center gap-2 z-20 pointer-events-none",style:{animation:"fadeSlideUp 0.9s ease both 1.4s",opacity:0},"aria-hidden":"true",children:[e.jsx("div",{className:"w-px h-10",style:{background:"linear-gradient(to bottom, transparent, rgba(201,162,39,0.5))"}}),e.jsx(ot,{size:13,style:{color:"rgba(201,162,39,0.45)"}}),e.jsx("span",{className:"font-mono text-xs tracking-[0.45em]",style:{color:"rgba(201,162,39,0.3)"},children:"SCROLL"})]})]})}function Rr({onShowWatch:t}){return e.jsx("section",{className:"relative z-10 px-6 sm:px-10 lg:px-16 py-10",style:{background:"linear-gradient(to bottom, #03020a, #06040f)"},children:e.jsx("div",{className:"max-w-screen-xl mx-auto",children:e.jsxs("div",{className:"rounded-2xl px-8 py-7 md:px-12 md:py-9 flex flex-col md:flex-row md:items-center gap-6 md:gap-12",style:{background:"linear-gradient(135deg, rgba(201,162,39,0.06) 0%, rgba(201,162,39,0.02) 100%)",border:"1px solid rgba(201,162,39,0.18)",boxShadow:"0 8px 40px rgba(0,0,0,0.45)"},children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center",style:{background:"rgba(201,162,39,0.12)",border:"1px solid rgba(201,162,39,0.28)"},children:e.jsx(Ee,{size:22,style:{color:"#c9a227"},"aria-hidden":"true"})})}),e.jsxs("div",{className:"flex-1 space-y-2",children:[e.jsx("p",{className:"font-orbitron font-black text-sm tracking-[0.15em]",style:{color:"#f2e08a"},children:"WHAT IS ON THE NINES?"}),e.jsx("p",{className:"font-rajdhani text-base leading-relaxed",style:{color:"rgba(240,235,224,0.78)",lineHeight:"1.65",fontSize:"clamp(0.95rem, 1.4vw, 1.05rem)"},children:"ProfessorClock is a time-traveling archivist using music, film, and frequency technology to recover Black knowledge suppressed across centuries."}),e.jsxs("p",{className:"font-rajdhani text-base leading-relaxed",style:{color:"rgba(240,235,224,0.55)",lineHeight:"1.65",fontSize:"clamp(0.9rem, 1.3vw, 1rem)"},children:["On the Nines maps his 20-year transmission archive — ",_.ALBUM_COUNT," albums, one film, a magazine, and a living calendar — across nine cyclical gates aligned to the number 9."]})]}),e.jsxs("button",{onClick:t,className:"flex-shrink-0 flex items-center gap-2 font-orbitron font-bold text-xs tracking-[0.18em] px-6 py-3.5 rounded-xl transition-all duration-300",style:{background:"linear-gradient(135deg, #c9a227 0%, #f2e08a 100%)",color:"#03020a",whiteSpace:"nowrap"},onMouseEnter:a=>{a.currentTarget.style.transform="translateY(-2px)",a.currentTarget.style.boxShadow="0 8px 24px rgba(201,162,39,0.4)"},onMouseLeave:a=>{a.currentTarget.style.transform="",a.currentTarget.style.boxShadow=""},children:[e.jsx(Se,{size:12,fill:"#03020a","aria-hidden":"true"}),"ON THE NINES CALENDAR"]})]})})})}function Ar({onNavigate:t}){const a=V(),n=e.jsxs("div",{className:"relative w-full h-full flex flex-col items-center justify-center p-8 lg:p-14",style:{background:"#03020a"},children:[e.jsx("video",{src:"https://naopc-awakening.us-southeast-1.linodeobjects.com/AP4TMC_trailer_30s.mp4",className:"absolute inset-0 w-full h-full object-cover",autoPlay:!0,muted:!0,loop:!0,playsInline:!0}),e.jsx("div",{className:"absolute bottom-8 left-1/2 -translate-x-1/2 text-center z-10",children:e.jsx("p",{className:"font-mono text-xs tracking-[0.5em]",style:{color:"rgba(201,162,39,0.5)"},children:"ONE PRACTICE · 2010 – 2026"})})]});return e.jsx(q,{visual:n,label:"The scope of the work",stickyHeight:"100svh",style:{background:"linear-gradient(to bottom, #03020a, #06040f)"},children:e.jsxs("div",{ref:a,className:"px-8 sm:px-12 lg:px-16 py-24 lg:py-32 space-y-14",children:[e.jsxs("div",{className:"reveal-decode","data-reveal-delay":"0",children:[e.jsx("p",{className:"font-mono text-xs tracking-[0.55em] mb-4",style:{color:"rgba(201,162,39,0.45)"},children:"01 — THE SCOPE"}),e.jsxs("h2",{className:"font-orbitron font-black leading-tight tracking-tight mb-6",style:{fontSize:"clamp(2rem, 4.5vw, 3.6rem)",background:"linear-gradient(145deg, #ffffff 0%, #f2e08a 40%, #c9a227 100%)",WebkitBackgroun
109dClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:["ONE ARTIST.",e.jsx("br",{}),"ONE PRACTICE.",e.jsx("br",{}),"TWENTY YEARS."]}),e.jsx("p",{className:"font-rajdhani text-xl mb-5",style:{color:"rgba(242,224,138,0.75)",lineHeight:"1.65"},children:"Whatever brought you here is one entry point into something much larger."}),e.jsx("p",{className:"font-rajdhani text-base leading-relaxed",style:{color:"rgba(240,235,224,0.52)",lineHeight:"1.8"},children:"ProfessorClock is the character, archivist, and time-traveling presence at the center of the universe. Damien Lamar is the creator — Florida-bred by way of New York, three decades spanning vocalist and band frontman to transmedia universe architect. The QUANTUMFORWARD album you may know, or the magazine article that led you here, or the venue listing you found — these are access points into a single, unbroken body of work that has been in continuous motion since 2010."})]}),e.jsxs("div",{className:"reveal-decode space-y-3","data-reveal-delay":"100",children:[e.jsx("p",{className:"font-mono text-xs tracking-[0.5em] mb-5",style:{color:"rgba(201,162,39,0.38)"},children:"THE FULL INVENTORY"}),[{n:String(_.ALBUM_COUNT),label:"studio albums under the NAOPC canon",color:"#c9a227"},{n:"20",label:"years since the 'Convinced' EP — the origin of the NAOPC canon",color:"#c9a227"},{n:"4",label:"years publishing Time Traveler's Digest magazine",color:"#e8c85a"},{n:"2",label:"transmission channels — Time Traveler's Digest & Recognition Frequency",color:"#1ab8c9"},{n:"1",label:"live action film — in production",color:"#e8891a"}].map(({n:s,label:o,color:r},l)=>e.jsxs("div",{className:"reveal-hidden flex items-start gap-4","data-reveal-delay":String(120+l*70),children:[e.jsx("span",{className:"font-orbitron font-black text-2xl flex-shrink-0 w-8 text-right leading-none",style:{color:r},children:s}),e.jsx("p",{className:"font-rajdhani text-base pt-0.5",style:{color:"rgba(240,235,224,0.55)",lineHeight:"1.5"},children:o})]},l))]}),e.jsx("div",{className:"reveal-decode","data-reveal-delay":"560",children:e.jsxs(F,{tier:2,topLine:!0,accentColor:"rgba(201,162,39,0.2)",style:{padding:"1.5rem 1.75rem"},children:[e.jsx("p",{className:"font-rajdhani text-base italic",style:{color:"rgba(240,235,224,0.6)",lineHeight:"1.7"},children:`This is a closed system. ${_.VOLUME_COUNT} volumes. Complete. Not a catalog — a transmission archive for the Melanated Collective.`}),e.jsx("p",{className:"font-mono text-xs tracking-[0.4em] mt-3",style:{color:"rgba(201,162,39,0.4)"},children:"— ProfessorClock"})]})}),e.jsxs("div",{className:"reveal-decode flex flex-wrap gap-3","data-reveal-delay":"640",children:[e.jsxs("button",{onClick:()=>t("about"),className:"flex items-center gap-2 font-orbitron font-bold text-xs tracking-[0.18em] px-7 py-4 rounded-xl border transition-all duration-300",style:{color:"#c9a227",borderColor:"rgba(201,162,39,0.35)",background:"rgba(201,162,39,0.05)"},onMouseEnter:s=>{s.currentTarget.style.borderColor="rgba(201,162,39,0.65)",s.currentTarget.style.transform="translateY(-2px)"},onMouseLeave:s=>{s.currentTarget.style.borderColor="rgba(201,162,39,0.35)",s.currentTarget.style.transform=""},children:["READ THE FULL DOSSIER ",e.jsx(B,{size:12,"aria-hidden":"true"})]}),e.jsx("button",{onClick:()=>t("discography"),className:"flex items-center gap-2 font-orbitron text-xs tracking-[0.18em] px-6 py-4 rounded-xl border transition-all duration-300",style:{color:"rgba(240,235,224,0.5)",borderColor:"rgba(240,235,224,0.12)",background:"transparent"},onMouseEnter:s=>{s.currentTarget.style.borderColor="rgba(201,162,39,0.35)",s.currentTarget.style.color="#f2e08a",s.currentTarget.style.transform="translateY(-2px)"},onMouseLeave:s=>{s.currentTarget.style.borderColor="rgba(240,235,224,0.12)",s.currentTarget.style.color="rgba(240,235,224,0.5)",s.currentTarget.style.transform=""},children:"DISCOGRAPHY"})]})]})})}const $e=[{code:"BD",term:"BLACK DATA",definition:"African diasporic knowledge systems encoded as usable research protocol. Ancestral memory as functional data, not metaphor.",color:"#c9a227"},{code:"NT",term:"NOW:TIME",definition:"A calendrical framework where present-moment c
109onsciousness is treated as a navigable frequency. The clock is a map.",color:"#1ab8c9"},{code:"OT9",term:"ON THE NINES",definition:"A release cycle locked to 9-based intervals and 28-day moons. Every output aligns to the same temporal logic.",color:"#e8c85a"},{code:"GRID",term:"G.R.I.D.",definition:"Geo-Metron Relocation Inter-Spacial Devise — the conceptual engine powering the time travel mechanics of the NAOPC universe.",color:"#1fa857"}];function Ir({onNavigate:t}){const{activeIndex:a,setRef:n}=ht($e.length,"0px 0px -35% 0px"),s=V(),o=e.jsxs("div",{className:"relative w-full h-full flex flex-col items-center justify-center overflow-hidden",style:{background:"#03020a"},children:[e.jsx("video",{src:"https://naopc-awakening.us-southeast-1.linodeobjects.com/NAOPC%202025.mp4",className:"absolute inset-0 w-full h-full object-cover",autoPlay:!0,muted:!0,loop:!0,playsInline:!0}),e.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:"linear-gradient(to top, rgba(3,2,10,0.72) 0%, rgba(3,2,10,0.2) 60%, rgba(3,2,10,0.45) 100%)"},"aria-hidden":"true"}),e.jsx("div",{className:"relative z-10 text-center px-8",children:e.jsx("p",{className:"font-orbitron font-black tracking-[0.18em]",style:{fontSize:"clamp(0.9rem, 2vw, 1.15rem)",color:"#f2e08a",textShadow:"0 0 24px rgba(201,162,39,0.6)"},children:"COMING SOON — PROFESSORCLOCK PODCAST!"})})]});return e.jsx(q,{visual:o,label:"The methodology",stickyHeight:"100svh",style:{background:"#06040f"},children:e.jsxs("div",{ref:s,className:"px-8 sm:px-12 lg:px-16 py-24 lg:py-32 space-y-14",children:[e.jsxs("div",{className:"reveal-decode","data-reveal-delay":"0",children:[e.jsx("p",{className:"font-mono text-xs tracking-[0.55em] mb-4",style:{color:"rgba(201,162,39,0.45)"},children:"02 — THE METHOD"}),e.jsxs("h2",{className:"font-orbitron font-black leading-tight tracking-tight mb-6",style:{fontSize:"clamp(2rem, 4.5vw, 3.6rem)",background:"linear-gradient(145deg, #ffffff 0%, #f2e08a 40%, #c9a227 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:["NOT AESTHETIC.",e.jsx("br",{}),"FUNCTIONAL."]}),e.jsx("p",{className:"font-rajdhani text-xl mb-5",style:{color:"rgba(242,224,138,0.75)",lineHeight:"1.65"},children:"The recurring references to time, frequency, and ancestry are not decoration. They are tools."}),e.jsx("p",{className:"font-rajdhani text-base leading-relaxed",style:{color:"rgba(240,235,224,0.52)",lineHeight:"1.8"},children:"ProfessorClock operates inside a closed research system built on four interlocking frameworks. Each volume, each transmission maps onto this same architecture. The deeper you go, the more coherent the structure becomes. This is functional technology for the Melanated Collective — not entertainment calibrated for the scroll."})]}),e.jsx("div",{className:"space-y-4",children:$e.map((r,l)=>e.jsx("div",{ref:n(l),className:"reveal-hidden","data-reveal-delay":String(l*80),children:e.jsx(F,{tier:2,topLine:l===a,accentColor:l===a?`${r.color}38`:"rgba(201,162,39,0.1)",style:{padding:"1.5rem",transition:"border-color 0.35s, box-shadow 0.35s, transform 0.2s",transform:l===a?"translateX(6px)":"translateX(0)",boxShadow:l===a?`0 8px 40px rgba(0,0,0,0.4), 0 0 20px ${r.color}0d`:"none"},children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("span",{className:"font-mono font-bold text-xs flex-shrink-0 w-10 pt-0.5",style:{color:r.color},children:r.code}),e.jsxs("div",{children:[e.jsx("p",{className:"font-orbitron font-bold text-sm tracking-wider mb-2",style:{color:l===a?"#f0ebe0":"rgba(240,235,224,0.6)"},children:r.term}),e.jsx("p",{className:"font-rajdhani text-sm leading-relaxed",style:{color:l===a?"rgba(240,235,224,0.62)":"rgba(240,235,224,0.35)",lineHeight:"1.65"},children:r.definition})]})]})})},r.code))}),e.jsx("div",{className:"reveal-decode","data-reveal-delay":"400",children:e.jsxs(F,{tier:2,topLine:!0,accentColor:"rgba(26,184,201,0.2)",style:{padding:"1.5rem 1.75rem"},children:[e.jsx("p",{className:"font-rajdhani text-base italic",style:{color:"rgba(240,235,224,0.6)",lineHeight:"1.7"},children:'"The G.R.I.D. is not science fiction. It is a working schematic for how this music moves through time."'}),e.jsxs("p",{className:"font-mono text-xs tracking-[0.4em] mt-3",style:{color:"rgba(26,184,201,0.4)"},children:["— ProfessorClock · Session ",_.SESSION_ROMAN]})]})}),e.jsxs("div",{className:"reveal-decode flex flex-wrap gap-3","data-reveal-delay":"480",children:[e.jsxs("button",{onClick:()=>t("lexicon"),className:"flex items-center gap-2 font-orbitron font-bold text-xs tracking-[0.18em] px-7 py-4 rounded-xl border transition-all duration-300",style:{color:"#c9a227",borderColor:"rgba(201,162,39,0.35)",background:"rgba(201,162,39,0.05)"},onMouseEnter:r=>{r.currentTarget.style.borderColor="rgba(201,162,39,0.65)",r.currentTarget.style.transform="translateY(-2px)"},onMouseLeave:r=>{r.currentTarget.style.borderColor="rgba(201,162,39,0.35)",r.currentTarget.style.transform=""},children:["READ THE LEXICON ",e.jsx(B,{size:12,"aria-hidden":"true"})]}),e.jsxs("button",{onClick:()=>t("nowtime"),className:"flex items-center gap-2 font-orbitron text-xs tracking-[0.18em] px-6 py-4 rounded-xl border transition-all duration-300",style:{color:"rgba(26,184,201,0.8)",borderColor:"rgba(26,184,201,0.25)",background:"rgba(26,184,201,0.04)"},onMouseEnter:r=>{r.currentTarget.style.borderColor="rgba(26,184,201,0.5)",r.currentTarget.style.transform="translateY(-2px)"},onMouseLeave:r=>{r.currentTarget.style.borderColor="rgba(26,184,201,0.25)",r.currentTarget.style.transform=""},children:[e.jsx(Ee,{size:12,"aria-hidden":"true"})," NOW:TIME"]})]})]})})}function _r(){const t=V(),a=[{label:"9:09",sub:"Transmission moment",color:"#e8c85a"},{label:"28 DAY",sub:"Lunar release cycle",color:"#c9a227"},{label:"369",sub:"Tesla recognition pattern",color:"#e8c85a"},{label:"TRIPLE 9",sub:"Portal alignment date",color:"#c9a227"},{label:"9-DAY",sub:"Personal activation window",color:"#e8c85a"},{label:"36 YRS",sub:"Saturn-Neptune cycle",color:"#c9a227"}],n=e.jsxs("div",{className:"relative w-full h-full flex flex-col items-center justify-center overflow-hidden",style:{background:"#03020a"},children:[e.jsx("video",{src:"https://pclockmedia.us-east-1.linodeobjects.com/on-the-nines-convergence.mp4",autoPlay:!0,muted:!0,loop:!0,playsInl
109ine:!0,className:"absolute inset-0 w-full h-full object-cover object-center","aria-hidden":"true"}),e.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:"linear-gradient(to bottom, rgba(3,2,10,0.15) 0%, transparent 30%, transparent 70%, rgba(3,2,10,0.3) 100%)"},"aria-hidden":"true"})]});return e.jsx(q,{visual:n,label:"The timing",stickyHeight:"100svh",style:{background:"#04030d"},children:e.jsxs("div",{ref:t,className:"px-8 sm:px-12 lg:px-16 py-24 lg:py-32 space-y-12",children:[e.jsxs("div",{className:"reveal-decode","data-reveal-delay":"0",children:[e.jsx("p",{className:"font-mono text-xs tracking-[0.55em] mb-4",style:{color:"rgba(232,200,90,0.45)"},children:"02B — ON THE NINES"}),e.jsxs("h2",{className:"font-orbitron font-black leading-tight tracking-tight mb-6",style:{fontSize:"clamp(1.8rem, 4vw, 3.2rem)",background:"linear-gradient(145deg, #ffffff 0%, #e8c85a 40%, #c9a227 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:["TIME MOVES",e.jsx("br",{}),"IN CYCLES."]}),e.jsx("p",{className:"font-rajdhani text-xl mb-5",style:{color:"rgba(232,200,90,0.75)",lineHeight:"1.65"},children:"Not deadlines. Not quarterly targets. Every release aligns to a living temporal system built around the number 9."}),e.jsx("p",{className:"font-rajdhani text-base leading-relaxed",style:{color:"rgba(240,235,224,0.52)",lineHeight:"1.8"},children:'"On the Nines" is the release philosophy, the calendar, and the portal. Nine is completion. Triple-nines are convergence points. 9:09 is when the signal goes live. The 28-day lunar cycle governs the spacing between transmissions. This is not numerology as decoration — it is a working schedule built from Kemetic time principles.'})]}),e.jsx("div",{className:"grid grid-cols-2 gap-3",children:a.map((s,o)=>e.jsx("div",{className:"reveal-hidden","data-reveal-delay":String(o*70),children:e.jsxs(F,{tier:2,accentColor:`${s.color}20`,style:{padding:"1.1rem 1.25rem"},children:[e.jsx("p",{className:"font-orbitron font-black text-lg mb-0.5",style:{color:s.color,filter:`drop-shadow(0 0 8px ${s.color}60)`},children:s.label}),e.jsx("p",{className:"font-mono text-xs tracking-[0.35em]",style:{color:"rgba(240,235,224,0.38)"},children:s.sub})]})},s.label))}),e.jsx("div",{className:"reveal-decode","data-reveal-delay":"420",children:e.jsxs(F,{tier:2,topLine:!0,accentColor:"rgba(232,200,90,0.18)",style:{padding:"1.5rem 1.75rem"},children:[e.jsx("p",{className:"font-rajdhani text-base italic",style:{color:"rgba(240,235,224,0.6)",lineHeight:"1.7"},children:'"Return on triple-nines or personal 9-days for reinforcement. The pattern recognizes you."'}),e.jsx("p",{className:"font-mono text-xs tracking-[0.4em] mt-3",style:{color:"rgba(232,200,90,0.4)"},children:"— ProfessorClock · WUBOGU ENGAGEMENT PROTOCOL"})]})}),e.jsx("div",{className:"reveal-decode","data-reveal-delay":"500",children:e.jsxs("a",{href:"https://professorclock.media/the-nines",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 font-orbitron font-bold text-xs tracking-[0.18em] px-7 py-4 rounded-xl transition-all duration-300 w-fit border",style:{background:"linear-gradient(135deg, rgba(232,200,90,0.16), rgba(232,200,90,0.06))",borderColor:"rgba(232,200,90,0.38)",color:"#e8c85a",textDecoration:"none"},onMouseEnter:s=>{s.currentTarget.style.borderColor="rgba(232,200,90,0.65)",s.currentTarget.style.transform="translateY(-2px)",s.currentTarget.style.boxShadow="0 8px 30px rgba(232,200,90,0.2)"},onMouseLeave:s=>{s.currentTarget.style.borderColor="rgba(232,200,90,0.38)",s.currentTarget.style.transform="",s.currentTarget.style.boxShadow=""},children:["ENTER THE CYCLE",e.jsx(U,{size:12,"aria-hidden":"true"})]})})]})})}const Mr=[{year:"2010",event:"A personal loss. The world as it existed could not hold the grief or the frequency needed to process it.",color:"#7d6118",dim:!0},{year:"2011",event:"Session I — the first NAOPC album. Not a debut. A declaration that a new world would have to be built.",color:"#a8841f",dim:!0},{year:"2015",event:"Sessions V–VIII. The methodology solidifies. Black Data and the 28-day cycle become formal working tools.",color:"#c9a227",dim:!1},{year:"2020",event:"The Interim Protocols. Sessions IX–XII. The Digest launches. The system deepens.",color:"#d4b030",dim:!1},{year:"2023",event:"Time Traveler's Digest enters its third year. The Melanated Collective recognizes the signal.",color:"#e8c85a",dim:!1},{year:"2026",event:`Session ${_.SESSION_ROMAN} — QUANTUMFORWARD. The ${_.MANDATE_YEARS}-year mandate completes. The first full-cycle closes.`,color:"#f2e08a",dim:!1}];function Or({onNavigate:t}){const a=V(),n=e.jsxs("div",{className:"relative w-full h-full flex flex-col items-center justify-center overflow-hidden",style:{background:"#03020a"},children:[e.jsx("video",{src:"https://pclockmedia.us-east-1.linodeobjects.com/damienlamar_movemeant.mp4",autoPlay:!0,muted:!0,loop:!0,playsInl
109ine:!0,className:"absolute inset-0 w-full h-full object-cover object-center","aria-hidden":"true"}),e.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:"linear-gradient(to bottom, rgba(3,2,10,0.15) 0%, transparent 30%, transparent 70%, rgba(3,2,10,0.3) 100%)"},"aria-hidden":"true"})]});return e.jsx(q,{visual:n,label:"The origin",stickyHeight:"100svh",style:{background:"#03020a"},children:e.jsxs("div",{ref:a,className:"px-8 sm:px-12 lg:px-16 py-24 lg:py-32 space-y-14",children:[e.jsxs("div",{className:"reveal-decode","data-reveal-delay":"0",children:[e.jsx("p",{className:"font-mono text-xs tracking-[0.55em] mb-4",style:{color:"rgba(201,162,39,0.45)"},children:"03 — THE ORIGIN"}),e.jsxs("h2",{className:"font-orbitron font-black leading-tight tracking-tight mb-6",style:{fontSize:"clamp(2rem, 4.5vw, 3.6rem)",background:"linear-gradient(145deg, #ffffff 0%, #f2e08a 40%, #c9a227 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:["GRIEF TO",e.jsx("br",{}),"FREQUENCY."]}),e.jsx("p",{className:"font-rajdhani text-xl mb-5",style:{color:"rgba(242,224,138,0.75)",lineHeight:"1.65"},children:"This work did not begin as a career plan. It began because no existing world fit what needed to be made."}),e.jsx("p",{className:"font-rajdhani text-base leading-relaxed",style:{color:"rgba(240,235,224,0.52)",lineHeight:"1.8"},children:"Florida-bred, shaped by New York, Damien Lamar spent three decades as a vocalist, band frontman, radio host, and civic arts director before arriving at a singular question: what world could hold the work that needed to be made? In 2010–2011, following a personal loss, the answer was not an album — it was a complete cosmology. One in which African ancestors exist as data. One in which time is a frequency you can tune to. One in which grief is not an ending but a starting coordinate."})]}),e.jsxs("div",{className:"reveal-decode space-y-0","data-reveal-delay":"80",children:[e.jsx("p",{className:"font-mono text-xs tracking-[0.5em] mb-6",style:{color:"rgba(201,162,39,0.38)"},children:"THE 15-YEAR ARC"}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-[52px] top-4 bottom-4 w-px",style:{background:"linear-gradient(to bottom, rgba(201,162,39,0.08), rgba(201,162,39,0.28), rgba(201,162,39,0.08))"},"aria-hidden":"true"}),e.jsx("div",{className:"space-y-0",children:Mr.map(({year:s,event:o,color:r,dim:l},i)=>e.jsxs("div",{className:"reveal-hidden flex items-start gap-5 pb-8 last:pb-0","data-reveal-delay":String(100+i*80),children:[e.jsxs("div",{className:"flex flex-col items-center flex-shrink-0 w-12",children:[e.jsx("span",{className:"font-mono text-xs font-bold",style:{color:l?`${r}70`:r},children:s}),e.jsx("div",{className:"mt-2 w-2 h-2 rounded-full border-2 flex-shrink-0",style:{background:l?"#03020a":r,borderColor:r,boxShadow:l?"none":`0 0 8px ${r}60`},"aria-hidden":"true"})]}),e.jsx("p",{className:"font-rajdhani text-sm pt-0.5 leading-relaxed",style:{color:l?"rgba(240,235,224,0.38)":"rgba(240,235,224,0.62)",lineHeight:"1.65"},children:o})]},s))})]})]}),e.jsx("div",{className:"reveal-decode","data-reveal-delay":"580",children:e.jsx(F,{tier:2,topLine:!0,accentColor:"rgba(201,162,39,0.22)",style:{padding:"1.5rem 1.75rem"},children:e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"w-0.5 self-stretch rounded-full flex-shrink-0",style:{background:"linear-gradient(to bottom, #c9a227, transparent)"},"aria-hidden":"true"}),e.jsxs("div",{children:[e.jsx("blockquote",{className:"font-rajdhani text-lg italic leading-relaxed mb-3",style:{color:"rgba(240,235,224,0.75)"},children:'"Not listeners. Receivers."'}),e.jsx("cite",{className:"font-mono text-xs tracking-[0.4em] not-italic",style:{color:"rgba(201,162,39,0.45)"},children:"DAMIEN LAMAR · NAOPC · 2010–2026"})]})]})})}),e.jsxs("div",{className:"reveal-decode flex flex-wrap gap-3","data-reveal-delay":"660",children:[e.jsxs("button",{onClick:()=>t("archive"),className:"flex items-center gap-2 font-orbitron font-bold text-xs tracking-[0.18em] px-7 py-4 rounded-xl border transition-all duration-300",style:{color:"#c9a227",borderColor:"rgba(201,162,39,0.35)",background:"rgba(201,162,39,0.05)"},onMouseEnter:s=>{s.currentTarget.style.borderColor="rgba(201,162,39,0.65)",s.currentTarget.style.transform="translateY(-2px)"},onMouseLeave:s=>{s.currentTarget.style.borderColor="rgba(201,162,39,0.35)",s.currentTarget.style.transform=""},children:["ACCESS THE ARCHIVE ",e.jsx(B,{size:12,"aria-hidden":"true"})]}),e.jsxs("button",{onClick:()=>t("podcast"),className:"flex items-center gap-2 font-orbitron text-xs tracking-[0.18em] px-6 py-4 rounded-xl border transition-all duration-300",style:{color:"rgba(240,235,224,0.5)",borderColor:"rgba(240,235,224,0.12)",background:"transparent"},onMouseEnter:s=>{s.currentTarget.style.borderColor="rgba(201,162,39,0.3)",s.currentTarget.style.color="#f2e08a",s.currentTarget.style.transform="translateY(-2px)"},onMouseLeave:s=>{s.currentTarget.style.borderColor="rgba(240,235,224,0.12)",s.currentTarget.style.color="rgba(240,235,224,0.5)",s.currentTarget.style.transform=""},children:[e.jsx(Z,{size:12,"aria-hidden":"true"})," THE PODCAST"]})]})]})})}function Pr({onNavigate:t}){const{activeIndex:a,setRef:n}=ht(te.length),s=te[a],o=s.icon,r=e.jsxs("div",{className:"relative w-full h-full flex flex-col items-center justify-center overflow-hidden",style:{background:"linear-gradient(135deg, #03020a 0%, #06040f 100%)"},children:[e.jsx("div",{className:"absolute inset-0 pointer-events-none transition-all duration-700",style:{background:`radial-gradient(ellipse 70% 65% at 50% 50%, ${s.accent}16 0%, transparent 65%)`},"aria-hidden":"true"}),e.jsx("div",{className:"absolute inset-0 pointer-events-none opacity-50",children:e.jsx(ft,{})}),e.jsxs("div",{className:"relative z-10 flex flex-col items-center gap-8 px-8 text-center",style:{animation:"txStageEnter 0.4s ease both"},children:[e.jsxs("div",{className:"relative flex items-center justify-center rounded-full",style:{width:"clamp(120px, 16vw, 180px)",height:"clamp(120px, 16vw, 180px)",background:`${s.accent}10`,border:`1px solid ${s.accent}28`,boxShadow:`0 0 80px ${s.accent}18`},children:[e.jsx("div",{className:"absolute inset-0 rounded-full",style:{border:`1px solid ${s.accent}20`,animation:"orbitPulse 3s ease-in-out infinite"},"aria-hidden":"true"}),e.jsx(o,{size:52,style:{color:s.accent,filter:`drop-shadow(0 0 16px ${s.accent}55)`},"aria-hidden":"true"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"font-mono text-xs tracking-[0.5em] mb
109-2",style:{color:`${s.accent}75`},children:s.code}),e.jsx("p",{className:"font-orbitron font-black tracking-wider mb-3",style:{fontSize:"clamp(1rem, 2.2vw, 1.6rem)",color:"#f0ebe0"},children:s.label}),e.jsxs("p",{className:"font-rajdhani italic text-sm",style:{color:`${s.accent}65`},children:['"',s.lore,'"']})]})]},a),e.jsx("div",{className:"absolute bottom-10 flex items-center gap-2",children:te.map((l,i)=>e.jsx("div",{className:"rounded-full transition-all duration-300",style:{width:i===a?18:6,height:6,background:i===a?s.accent:"rgba(240,235,224,0.12)"},"aria-hidden":"true"},l.code))})]});return e.jsxs(q,{visual:r,label:"Transmissions",stickyHeight:"100svh",style:{background:"linear-gradient(to bottom, #06040f, #0a0815)"},children:[e.jsxs("div",{className:"px-8 sm:px-12 lg:px-16 pt-24 pb-8",children:[e.jsx("p",{className:"font-mono text-xs tracking-[0.55em] mb-4",style:{color:"rgba(201,162,39,0.45)"},children:"04 — THE TRANSMISSIONS"}),e.jsxs("h2",{className:"font-orbitron font-black leading-tight tracking-tight mb-4",style:{fontSize:"clamp(1.8rem, 4vw, 3rem)",background:"linear-gradient(135deg, #ffffff 0%, #f2e08a 45%, #c9a227 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:["SELECT YOUR",e.jsx("br",{}),"ENTRY POINT"]}),e.jsx("p",{className:"font-rajdhani text-base",style:{color:"rgba(240,235,224,0.45)",lineHeight:"1.65",maxWidth:"480px"},children:"Each directive is a different door into the same world. Start wherever you are. There is no wrong order."}),e.jsx("div",{className:"mt-6 h-px w-2/5",style:{background:"linear-gradient(to right, rgba(201,162,39,0.5), transparent)"}})]}),e.jsx(Lr,{onNavigate:t}),e.jsxs("div",{className:"px-8 sm:px-12 lg:px-16 pb-24 space-y-3",children:[te.map((l,i)=>{const m=l.icon,u=i===a;return e.jsx("button",{ref:n(i),onClick:()=>t(l.id),className:"w-full text-left group","aria-label":`Access: ${l.label}`,children:e.jsxs(F,{tier:2,topLine:u,accentColor:u?`${l.accent}38`:"rgba(201,162,39,0.09)",style:{padding:"1.25rem 1.5rem",transition:"border-color 0.35s, box-shadow 0.35s, transform 0.2s",transform:u?"translateX(6px)":"translateX(0)",boxShadow:u?`0 6px 30px rgba(0,0,0,0.35), 0 0 20px ${l.accent}0c`:"none"},children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"flex-shrink-0 w-9 h-9 rounded-xl flex items-center justify-center border transition-all duration-300",style:{background:u?`${l.accent}18`:`${l.accent}08`,borderColor:u?`${l.accent}38`:`${l.accent}18`},children:e.jsx(m,{size:16,style:{color:l.accent},"aria-hidden":"true"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsx("span",{className:"font-orbitron font-bold text-xs tracking-wider",style:{color:u?"#f0ebe0":"rgba(240,235,224,0.6)"},children:l.label}),e.jsx("span",{className:"font-mono text-xs tracking-[0.3em] flex-shrink-0 ml-2",style:{color:`${l.accent}50`},children:l.code})]}),e.jsx("p",{className:"font-rajdhani text-sm leading-relaxed",style:{color:u?"rgba(240,235,224,0.6)":"rgba(240,235,224,0.32)",overflow:"hidden",maxHeight:u?"60px":"36px",transition:"max-height 0.3s ease"},children:l.description})]})]}),u&&e.jsxs("div",{className:"mt-2.5 flex items-center gap-2 pl-13 ml-[52px]",children:[e.jsx("span",{className:"font-mono text-xs tracking-[0.35em]",style:{color:`${l.accent}85`},children:"ACCESS DIRECTIVE"}),e.jsx(B,{size:9,style:{color:`${l.accent}85`},className:"group-hover:translate-x-1 transition-transform duration-200","aria-hidden":"true"})]})]})},l.code)}),e.jsx("a",{href:"https://professorclock.media/the-nines",target:"_blank",rel:"noopener noreferrer",className:"block group","aria-label":"ON THE NINES (opens in new tab)",children:e.jsx(F,{tier:2,accentColor:"rgba(201,162,39,0.09)",style:{padding:"1.25rem 1.5rem"},children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"flex-shrink-0 w-9 h-9 rounded-xl flex items-center justify-center border",style:{background:"rgba(201,162,39,0.07)",borderColor:"rgba(201,162,39,0.18)"},children:e.jsx(U,{size:16,style:{color:"#c9a227"},"aria-hidden":"true"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsx("span",{className:"font-orbitron font-bold text-xs tracking-wider",style:{color:"rgba(240,235,224,0.55)"},children:"ON THE NINES"}),e.jsx("span",{className:"font-mono text-xs tracking-[0.3em]",style:{color:"rgba(201,162,39,0.3)"},children:"D-08"})]}),e.jsx("p",{className:"font-rajdhani text-sm",style:{color:"rgba(240,235,224,0.3)"},children:"Cyclical transmissions from the recursive edge."})]}
109),e.jsx(U,{size:10,className:"flex-shrink-0 mt-1",style:{color:"rgba(201,162,39,0.28)"},"aria-hidden":"true"})]})})})]})]})}function Lr({onNavigate:t}){const[a,n]=c.useState(!1);return e.jsx("div",{className:"px-8 sm:px-12 lg:px-16 pb-8",children:e.jsxs("button",{onClick:()=>t("intended-receivers"),className:"group relative w-full rounded-2xl overflow-hidden border text-left transition-all duration-400",style:{borderColor:"rgba(26,184,201,0.22)",boxShadow:"0 12px 60px rgba(0,0,0,0.5)"},onMouseEnter:s=>{s.currentTarget.style.borderColor="rgba(26,184,201,0.5)",s.currentTarget.style.boxShadow="0 16px 80px rgba(0,0,0,0.6), 0 0 40px rgba(26,184,201,0.1)"},onMouseLeave:s=>{s.currentTarget.style.borderColor="rgba(26,184,201,0.22)",s.currentTarget.style.boxShadow="0 12px 60px rgba(0,0,0,0.5)"},"aria-label":"Access Intended Receivers transmission",children:[e.jsxs("div",{className:"relative w-full",style:{aspectRatio:"16/9",maxHeight:"280px",overflow:"hidden"},"aria-hidden":"true",children:[e.jsx("video",{src:Sr,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"metadata",className:"w-full h-full object-cover object-center transition-transform duration-700 group-hover:scale-105",style:{opacity:a?1:0,transition:"opacity 1.2s ease, transform 0.7s ease"},onCanPlay:()=>n(!0)}),e.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(135deg, #06040f, #080a14)",opacity:a?0:1,transition:"opacity 1.2s ease"}}),e.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to bottom, rgba(3,2,10,0.1) 0%, transparent 40%, rgba(3,2,10,0.75) 100%)"}}),e.jsx("div",{className:"absolute inset-0",style:{background:"radial-gradient(ellipse 70% 60% at 50% 50%, rgba(26,184,201,0.07) 0%, transparent 65%)"}}),e.jsxs("div",{className:"absolute top-3 left-3",style:{opacity:.6},children:[e.jsx("div",{className:"w-4 h-px",style:{background:"#1ab8c9"}}),e.jsx("div",{className:"w-px h-4",style:{background:"#1ab8c9"}})]}),e.jsxs("div",{className:"absolute top-3 right-3 flex flex-col items-end",style:{opacity:.6},children:[e.jsx("div",{className:"w-4 h-px",style:{background:"#1ab8c9"}}),e.jsx("div",{className:"w-px h-4 ml-auto",style:{background:"#1ab8c9"}})]}),e.jsxs("div",{className:"absolute top-3 left-1/2 -translate-x-1/2 flex items-center gap-2 rounded-full px-3 py-1",style:{background:"rgba(3,2,10,0.75)",backdropFilter:"blur(10px)",border:"1px solid rgba(26,184,201,0.22)"},children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:"#1ab8c9",boxShadow:"0 0 6px rgba(26,184,201,0.9)",animation:"pulsGlow 2s ease-in-out infinite"},"aria-hidden":"true"}),e.jsx("span",{className:"font-mono text-xs tracking-[0.45em]",style:{color:"rgba(26,184,201,0.8)"},children:"D-00 · LIVE"})]})]}),e.jsxs("div",{className:"flex items-center justify-between px-5 py-4",style:{background:"linear-gradient(135deg, rgba(3,2,10,0.95), rgba(8,10,20,0.95))",backdropFilter:"blur(16px)"},children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-orbitron font-black text-sm tracking-wider mb-0.5",style:{color:"#f0ebe0"},children:"INTENDED RECEIVERS"}),e.jsx("p",{className:"font-rajdhani text-xs",style:{color:"rgba(26,184,201,0.65)"},children:"The signal finds its own. — Enter the frequency."})]}),e.jsxs("div",{className:"flex items-center gap-2 font-mono text-xs tracking-[0.3em] flex-shrink-0 ml-4 rounded-lg px-3 py-2 border transition-all duration-300 group-hover:border-[rgba(26,184,201,0.5)] group-hover:bg-[rgba(26,184,201,0.08)]",style:{color:"rgba(26,184,201,0.7)",borderColor:"rgba(26,184,201,0.22)"},children:["ACCESS",e.jsx(B,{size:10,className:"group-hover:translate-x-1 transition-transform duration-200","aria-hidden":"true"})]})]})]})})}function Dr({onOpenSignup:t}){const a=V(),[n,s]=c.useState(""),[o,r]=c.useState("idle"),[l,i]=c.useState(""),m=async u=>{if(u.preventDefault(),!n.trim()||!n.includes("@")){i("Enter a valid address.");return}r("loading"),i("");const{error:x}=await P.from("transmissions_subscribers").insert({email:n.trim().toLowerCase(),source:"homepage-primary-cta"});x?x.code==="23505"?r("duplicate"):(r("error"),i("Signal lost. Try again.")):r("success")};return e.jsxs("section",{ref:a,className:"relative overflow-hidden",style:{padding:"clamp(6rem, 12vw, 9rem) 1.5rem",background:"linear-gradient(to bottom, #0a0815 0%, #06040f 40%, #0a0815 100%)"},"aria-label":"Subscribe to The Digest",children:[e.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:"radial-gradient(ellipse 70% 70% at 50% 50%, rgba(201,162,39,0.09) 0%, transparent 65%)"},"aria-hidden":"true"}),e.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-1/3 h-px",style:{background:"linear-gradient(to right, transparent, rgba(201,162,39,0.5), transparent)"},"aria-hidden":"true"}),e.jsx("div",{className:"relative z-10 max-w-2xl mx-auto text-center",children:e.jsxs("div",{className:"reveal-decode","data-reveal-delay":"0",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 roun
109ded-2xl mb-8",style:{background:"rgba(201,162,39,0.1)",border:"1px solid rgba(201,162,39,0.22)",boxShadow:"0 0 40px rgba(201,162,39,0.08)"},children:e.jsx(Te,{size:24,style:{color:"#c9a227"},"aria-hidden":"true"})}),e.jsx("p",{className:"font-mono text-xs tracking-[0.65em] mb-5",style:{color:"rgba(201,162,39,0.5)"},children:"THE SINGLE PRIMARY ASK"}),e.jsxs("h2",{className:"font-orbitron font-black leading-tight mb-6",style:{fontSize:"clamp(1.8rem, 5vw, 3.5rem)",background:"linear-gradient(145deg, #ffffff 0%, #f2e08a 40%, #c9a227 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:["SUBSCRIBE TO",e.jsx("br",{}),"TIME TRAVELER'S",e.jsx("br",{}),"DIGEST"]}),e.jsx("p",{className:"font-rajdhani text-xl mb-3",style:{color:"rgba(242,224,138,0.72)",lineHeight:"1.6"},children:"The channel between us. No algorithm. No middleman."}),e.jsx("p",{className:"font-rajdhani text-base leading-relaxed mb-10 max-w-lg mx-auto",style:{color:"rgba(240,235,224,0.48)",lineHeight:"1.8"},children:"Music drops. Session notes. Unreleased frequencies. Dispatch from the G.R.I.D. Council. The magazine. The story of how it all connects — before anyone else gets it."}),o==="success"?e.jsxs("div",{className:"flex flex-col items-center gap-3 py-6",children:[e.jsx("div",{className:"w-14 h-14 rounded-full flex items-center justify-center",style:{background:"rgba(201,162,39,0.12)",border:"1px solid rgba(201,162,39,0.3)"},children:e.jsx(we,{size:24,style:{color:"#c9a227"},"aria-hidden":"true"})}),e.jsx("p",{className:"font-orbitron font-black text-lg",style:{color:"#f2e08a"},children:"CHANNEL OPEN"}),e.jsx("p",{className:"font-mono text-xs tracking-[0.4em]",style:{color:"rgba(201,162,39,0.55)"},children:"NOT LISTENERS. RECEIVERS."})]}):o==="duplicate"?e.jsxs("div",{className:"flex items-center justify-center gap-3 py-6",children:[e.jsx(z,{size:18,style:{color:"#1ab8c9"},"aria-hidden":"true"}),e.jsx("p",{className:"font-mono text-xs tracking-[0.4em]",style:{color:"rgba(26,184,201,0.7)"},children:"ALREADY RECEIVING"})]}):e.jsxs("form",{onSubmit:m,className:"flex flex-col sm:flex-row gap-3 max-w-md mx-auto",noValidate:!0,children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("input",{type:"email",value:n,onChange:u=>{s(u.target.value),l&&i("")},placeholder:"Transmission address",autoComplete:"email",required:!0,className:"w-full px-5 py-4 rounded-xl font-rajdhani text-base transition-all duration-200 outline-none",style:{background:"rgba(255,255,255,0.05)",border:`1px solid ${l?"rgba(220,60,60,0.5)":"rgba(201,162,39,0.22)"}`,color:"rgba(240,235,224,0.9)"},onFocus:u=>{u.target.style.borderColor="rgba(201,162,39,0.5)",u.target.style.background="rgba(201,162,39,0.05)"},onBlur:u=>{l||(u.target.style.borderColor="rgba(201,162,39,0.22)",u.target.style.background="rgba(255,255,255,0.05)")}}),l&&e.jsx("p",{className:"font-mono text-xs tracking-wider mt-1.5 text-left",style:{color:"rgba(220,80,80,0.9)"},children:l})]}),e.jsx("button",{type:"submit",disabled:o==="loading",className:"flex items-center justify-center gap-2 px-8 py-4 rounded-xl font-orbitron font-bold text-xs tracking-[0.18em] transition-all duration-300 flex-shrink-0",style:{background:"linear-gradient(135deg, #c9a227 0%, #f2e08a 50%, #c9a227 100%)",backgroundSize:"200% 100%",color:"#03020a",animation:"ctaPulse 3.5s ease-in-out infinite"},onMouseEnter:u=>{u.currentTarget.style.backgroundPosition="100% 0",u.currentTarget.style.transform="translateY(-2px)"},onMouseLeave:u=>{u.currentTarget.style.backgroundPosition="0% 0",u.currentTarget.style.transform=""},children:o==="loading"?e.jsx(ke,{size:15,className:"animate-spin"}):e.jsxs(e.Fragment,{children:[e.jsx(ie,{size:13,"aria-hidden":"true"})," RECEIVE"]})})]}),o==="idle"&&e.jsxs("div",{className:"mt-5 flex items-center justify-center gap-4",children:[e.jsx("button",{onClick:t,className:"font-mono text-xs tracking-[0.4em] transition-colors duration-200",style:{color:"rgba(201,162,39,0.35)"},onMouseEnter:u=>{u.currentTarget.style.color="#c9a227"},onMouseLeave:u=>{u.currentTarget.style.color="rgba(201,162,39,0.35)"},children:"MORE SUBSCRIBE OPTIONS"}),e.jsx("span",{style:{color:"rgba(201,162,39,0.18)"},children:"·"}),e.jsx("a",{href:"https://professorclock.substack.com",target:"_blank",rel:"noopener noreferrer",className:"font-mono text-xs tracking-[0.4em] transition-colors duration-200",style:{color:"rgba(201,162,39,0.35)",textDecoration:"none"},onMouseEnter:u=>{u.currentTarget.style.color="#c9a227"},onMouseLeave:u=>{u.currentTarget.style.color="rgba(201,162,39,0.35)"},children:"SUBSTACK"})]})]})})]})}function zr(){const t=V(),a=e.jsxs("div",{className:"relative w-full h-full flex flex-row items-center justify-center overflow-hidden p-10",style:{background:"#03020a"},children:[e.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:"radial-gradient(ellipse 70% 60% at 50% 50%, rgba(232,200,90,0.07) 0%, transparent 65%)"},"aria-hidden":"true"}),e.jsx("img",{src:"https://naopc-awakening.us-southeast-1.linodeobjects.com/PROFESSORCLOCK.TV._MAR2025.png",alt:"Professor Clock",className:"relative z-10 h-full w-auto object-cover flex-shrink-0",style:{maxWidth:"45%"}}),e.jsxs("div",{className:"relative z-10 w-full max-w-[300px] ml-6 flex-shrink-0",children:[e.jsxs("div",{className:"rounded-2xl overflow-hidden border",style:{borderColor:"rgba(232,200,90,0.22)",boxShadow:"0 40px 80px rgba(0,0,0,0.7), 0 0 60px rgba(232,200,90,0.06)"},children:[e.jsxs("div",{className:"px-5 py-3 flex items-center justify-between",style:{background:"rgba(232,200,90,0.12)",borderBottom:"1px solid rgba(232,200,90,0.18)"},children:[e.jsx("span",{className:"font-orbitron font-black text-xs tracking-[0.2em]",style:{color:"#e8c85a"},children:"TTD"}),e.jsx("span",{className:"font-mono text-xs tracking-[0.4em]",style:{color:"rgba(232,200,90,0.55)"},children:"YEAR THREE"})]}),e.jsxs("div",{className:"px-5 py-6",style:{background:"rgba(6,4,15,0.95)"},children:[e.jsxs("p",{className:"font-orbitron font-black text-base leading-tight mb-3",style:{color:"#f0ebe0"},children:["TIME",e.jsx("br",{}),"TRAVELER'S",e.jsx("br",{}),"DIGEST"]}),e.jsxs("p",{className:"font-rajdhani text-sm mb-4",style:{color:"rgba(232,200,90,0.7)",lineHeight:"1.5"},children:["An Afrofuturist",e.jsx("br",{}),"publication"]}),e.jsx("div",{className:"space-y-2",children:["SUBMIT YOUR STORY","READER DISPATCHES","FIELD REPORTS","TEMPORAL COORDINATES"].map((n,s)=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-1 h-1 rounded-full flex-shrink-0",style:{background:`${s===0?"#e8c85a":"rgba(232,200,90,0.35)"}`},"aria-hidden":"true"}),e.jsx("span",{className:"font-mono text-xs tracking-[0.25em]",style:{color:s===0?"rgba(232,200,90,0.8)":"rgba(240,235,224,0.3)"},children:n})]},s))})]}),e.jsx("div",{className:"px-5 py-3",style:{background:"rgba(232,200,90,0.06)",borderTop:"1px solid rgba(232,200,90,0.12)"},children:e.jsx("p",{className:"font-mono text-xs tracking-[0.4em]",style:{color:"rgba(232,200,90,0.38)"},children:"professorclock.tv"})})]}),e.jsx("div",{className:"absolute -bottom-8 left-1/2 -translate-x-1/2 w-3/4 h-4 rounded-full",style:{background:"rgba(232,200,90,0.15)",filter:"blur(20px)"},"aria-hidden":"true"})]})]});return e.jsx(q,{visual:a,label:"Time Traveler's Digest",stickyHeight:"100svh",style:{background:"#03020a"},children:e.jsxs("div",{ref:t,className:"px-8 sm:px-12 lg:px-16 py-24 lg:py-32 space-y-12",children:[e.jsxs("div",{className:"reveal-decode","data-reveal-delay":"0",children:[e.jsx("p",{className:"font-mono text-xs tracking-[0.55em] mb-4",style:{color:"rgba(232,200,90,0.45)"},children:"THE COLLABORATIVE ARCHIVE"}),e.jsxs("h2",{className:"font-orbitron font-black leading-tight tracking-tight mb-6",style:{fontSize:"clamp(2rem, 4.5vw, 3.4rem)",background:"linear-gradient(145deg, #ffffff 0%, #e8c85a 45%, #c9a227 100%)",WebkitBackgroun
109dClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:["THIS ARCHIVE",e.jsx("br",{}),"NEEDS YOUR",e.jsx("br",{}),"STORY."]}),e.jsx("p",{className:"font-rajdhani text-xl mb-5",style:{color:"rgba(232,200,90,0.72)",lineHeight:"1.65"},children:"ProfessorClock Television is not a broadcast. It is a repository."}),e.jsx("p",{className:"font-rajdhani text-base leading-relaxed",style:{color:"rgba(240,235,224,0.5)",lineHeight:"1.8"},children:"Time Traveler's Digest is entering its third year as an Afrofuturist publication. We are actively seeking original speculative fiction, field reports, and personal temporal coordinates from writers, artists, and theorists who understand that Black futures are not hypothetical — they are already in motion."})]}),e.jsxs("div",{className:"reveal-decode space-y-3","data-reveal-delay":"100",children:[e.jsx("p",{className:"font-mono text-xs tracking-[0.5em] mb-5",style:{color:"rgba(232,200,90,0.38)"},children:"SUBMISSION CATEGORIES"}),[{cat:"SPECULATIVE FICTION",desc:"Original Afrofuturist short fiction, flash, and serialized narratives.",color:"#e8c85a"},{cat:"FIELD REPORTS",desc:"First-person accounts of encountering temporal anomalies, Black future worlds, or ancestral frequencies.",color:"#1ab8c9"},{cat:"TEMPORAL THEORY",desc:"Critical essays, research notes, and methodological dispatches on Black Data and time.",color:"#1fa857"},{cat:"READER COORDINATES",desc:"Your location in the NOW:TIME framework — where are you in the arc?",color:"#e8891a"}].map(({cat:n,desc:s,color:o},r)=>e.jsx("div",{className:"reveal-hidden","data-reveal-delay":String(120+r*80),children:e.jsx(F,{tier:2,topLine:!0,accentColor:`${o}28`,style:{padding:"1.25rem 1.5rem"},children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-1.5 h-1.5 rounded-full mt-1.5 flex-shrink-0",style:{background:o},"aria-hidden":"true"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-orbitron font-bold text-xs tracking-wider mb-1.5",style:{color:"#f0ebe0"},children:n}),e.jsx("p",{className:"font-rajdhani text-sm leading-relaxed",style:{color:"rgba(240,235,224,0.48)",lineHeight:"1.6"},children:s})]})]})})},n))]}),e.jsx("div",{className:"reveal-decode","data-reveal-delay":"460",children:e.jsxs(F,{tier:1,topLine:!0,accentColor:"rgba(232,200,90,0.22)",style:{padding:"1.75rem"},children:[e.jsx("p",{className:"font-rajdhani text-base italic mb-4",style:{color:"rgba(240,235,224,0.65)",lineHeight:"1.7"},children:'"We are not writing toward a Black future. We are writing from inside one. Submit accordingly."'}),e.jsx("p",{className:"font-mono text-xs tracking-[0.4em]",style:{color:"rgba(232,200,90,0.4)"},children:"— EDITORIAL MANDATE · TIME TRAVELER'S DIGEST"}),e.jsx("div",{className:"mt-5 pt-5 border-t",style:{borderColor:"rgba(232,200,90,0.12)"},children:e.jsxs("a",{href:"https://professorclock.substack.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 font-orbitron font-bold text-xs tracking-[0.18em] px-7 py-4 rounded-xl transition-all duration-300 w-fit",style:{background:"linear-gradient(135deg, rgba(232,200,90,0.18), rgba(232,200,90,0.08))",border:"1px solid rgba(232,200,90,0.3)",color:"#e8c85a",textDecoration:"none"},onMouseEnter:n=>{n.currentTarget.style.borderColor="rgba(232,200,90,0.55)",n.currentTarget.style.transform="translateY(-2px)"},onMouseLeave:n=>{n.currentTarget.style.borderColor="rgba(232,200,90,0.3)",n.currentTarget.style.transform=""},children:["SUBMIT TO THE DIGEST",e.jsx(B,{size:13,"aria-hidden":"true"})]})})]})})]})})}function Fr({onNavigate:t,onShowFilm:a}){const n=V(),s=[{label:"QUANTUMFORWARD",sub:`Session ${_.SESSION_ROMAN} · The mandate completes`,onClick:()=>t("quantumforward"),color:"#c9a227",icon:he},{label:"NAOPC Op. 16 - Watch the Film",sub:"Watch the activation film",onClick:a,color:"#1ab8c9",icon:Ot},{label:"THE COUNCIL",sub:"Governance, lineages, protocols",onClick:()=>t("council"),color:"#e8891a",icon:le},{label:"TIME PROPHETS",sub:"Live performance concept",onClick:()=>t("ap4tmc"),color:"#1fa857",icon:Pt},{label:"THE PODCAST",sub:"The New Adventures · Recognition Frequency",onClick:()=>t("podcast"),color:"#e8c85a",icon:Z},{label:"THE ARCHIVE",sub:"Sessions I–XV complete",onClick:()=>t("archive"),color:"#c9a227",icon:Lt}];return e.jsxs("section",{ref:n,className:"relative py-24 px-6 sm:px-10 lg:px-16 overflow-hidden",style:{background:"linear-gradient(to bottom, #06040f, #03020a)"},"aria-label":"Other entry points",children:[e.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:"radial-gradient(ellipse 80% 60% at 50% 100%, rgba(201,162,39,0.04) 0%, transparent 65%)"},"aria-hidden":"true"}),e.jsxs("div",{className:"relative z-10 max-w-5xl mx-auto",children:[e.jsxs("div",{className:"reveal-hidden mb-14 text-center",children:[e.jsx("p",{className:"font-mono text-xs tracking-[0.55em] mb-4",style:{color:"rgba(201,162,39,0.4)"},children:"OTHER ENTRY POINTS"}),e.jsx("h2",{className:"font-orbitron font-black tracking-tight",style:{fontSize:"clamp(1.4rem, 3.5vw, 2.4rem)",background:"linear-gradient(135deg, #ffffff 0%, #f2e08a 40%, #c9a227 100%)",WebkitBackgroun
109dClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"WHEREVER YOU ARE"})]}),e.jsx("div",{className:"reveal-hidden mb-10 w-full overflow-hidden rounded-2xl","data-reveal-delay":"40",style:{border:"1px solid rgba(201,162,39,0.15)"},children:e.jsx("video",{src:"https://pclockmedia.us-east-1.linodeobjects.com/QUANTUMFORWARD_SPRING2026_PROMO.mp4",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"w-full h-full object-cover block"})}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:s.map(({label:o,sub:r,onClick:l,color:i,icon:m},u)=>e.jsxs("button",{onClick:l,className:"reveal-hidden group text-left flex items-center gap-4 p-5 rounded-2xl border transition-all duration-300","data-reveal-delay":String(u*80),style:{background:`${i}07`,borderColor:`${i}1a`,backdropFilter:"blur(6px)"},onMouseEnter:x=>{x.currentTarget.style.borderColor=`${i}35`,x.currentTarget.style.background=`${i}10`,x.currentTarget.style.transform="translateY(-3px)",x.currentTarget.style.boxShadow=`0 12px 40px rgba(0,0,0,0.4), 0 0 20px ${i}0e`},onMouseLeave:x=>{x.currentTarget.style.borderColor=`${i}1a`,x.currentTarget.style.background=`${i}07`,x.currentTarget.style.transform="",x.currentTarget.style.boxShadow=""},children:[e.jsx("div",{className:"w-11 h-11 rounded-xl flex items-center justify-center border flex-shrink-0 transition-all duration-300 group-hover:scale-110",style:{background:`${i}12`,borderColor:`${i}28`},children:e.jsx(m,{size:20,style:{color:i},"aria-hidden":"true"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"font-orbitron font-bold text-xs tracking-wider leading-tight mb-1",style:{color:"#f0ebe0"},children:o}),e.jsx("p",{className:"font-rajdhani text-xs",style:{color:"rgba(240,235,224,0.38)"},children:r})]}),e.jsx(B,{size:14,className:"flex-shrink-0 opacity-0 group-hover:opacity-100 group-hover:translate-x-1 transition-all duration-200",style:{color:i},"aria-hidden":"true"})]},o))}),e.jsxs("div",{className:"reveal-hidden mt-20 text-center","data-reveal-delay":"480",children:[e.jsxs("div",{className:"flex items-center gap-6 mb-8",children:[e.jsx("div",{className:"flex-1 h-px",style:{background:"linear-gradient(to right, transparent, rgba(201,162,39,0.22))"}}),e.jsx("span",{className:"font-mono text-xs tracking-[0.6em]",style:{color:"rgba(201,162,39,0.3)"},children:"369.369.369"}),e.jsx("div",{className:"flex-1 h-px",style:{background:"linear-gradient(to left, transparent, rgba(201,162,39,0.22))"}})]}),e.jsxs("p",{className:"font-mono text-xs tracking-[0.5em]",style:{color:"rgba(240,235,224,0.15)"},children:["PROFESSORCLOCK · THE NEW ADVENTURES OF PROFESSORCLOCK · ",_.FOOTER_RANGE," · ",_.ORIGIN_YEAR,"–",_.CYCLE_END_YEAR]}),e.jsx("p",{className:"font-mono text-xs tracking-[0.4em] mt-2",style:{color:"rgba(240,235,224,0.1)"},children:"professorclock.tv"})]})]})]})}function Br({onNavigate:t}){const a=new Date().getFullYear(),[n,s]=c.useState(!1),o=[{label:"MEDIA",href:"https://professorclock.media"},{label:"GRIMOIRE",href:"https://metamorphosisfrequentiarum.com"}],r=[{label:"Instagram",href:"https://www.instagram.com/professorclock"},{label:"YouTube",href:"https://www.youtube.com/@professorclock"},{label:"Spotify Podcast",href:"https://open.spotify.com/show/4H2lG3s9Nmo4SuFebYMWAX?si=015094ad7140439d"},{label:"Substack",href:"https://professorclock.substack.com"},{label:"On The Nines",href:"https://professorclock.media/the-nines"}],l=[{label:"Authorship",section:"ai-disclosure"},{label:"Privacy Policy",section:"privacy-policy"},{label:"Terms of Service",section:"terms-of-service"}];return e.jsxs(e.Fragment,{children:[e.jsx(Ce,{isOpen:n,onClose:()=>s(!1)}),e.jsxs("footer",{className:"relative overflow-hidden",style:{background:"linear-gradient(to bottom, #06040f 0%, #03020a 100%)",borderTop:"1px solid rgba(201,162,39,0.08)"},children:[e.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:"radial-gradient(ellipse 65% 80% at 50% 110%, rgba(201,162,39,0.04) 0%, transparent 65%)"},"aria-hidden":"true"}),e.jsx("div",{className:"absolute inset-0 pointer-events-none opacity-[0.018]",style:{backgroundImage:"linear-gradient(rgba(201,162,39,1) 1px, transparent 1px), linear-gradient(90deg, rgba(201,162,39,1) 1px, transparent 1px)",backgroundSize:"80px 80px"},"aria-hidden":"true"}),e.jsxs("div",{className:"relative z-10 max-w-6xl mx-auto px-6 py-16",children:[e.jsxs("div",{className:"flex flex-col lg:flex-row items-start lg:items-end justify-between gap-12 mb-10",children:[e.jsxs("div",{className:"max-w-sm",children:[e.jsx("p",{className:"font-mono text-xs tracking-[0.65em] mb-3",style:{color:"rgba(201,162,39,0.38)"},children:"THE NEW ADVENTURES OF"}),e.jsxs("a",{href:"https://professorclock.media",target:"_blank",rel:"noopener noreferrer",className:"group inline-flex items-center gap-2.5 transition-all duration-300",children:[e.jsx("span",{className:"font-orbitron font-black tracking-[0.1em]",style:{fontSize:"clamp(1.2rem, 3vw, 1.75rem)",background:"linear-gradient(135deg, #a8841f 0%, #f2e08a 50%, #c9a227 100%)",WebkitBackgroun
109dClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"PROFESSORCLOCK"}),e.jsx(U,{size:13,className:"opacity-0 group-hover:opacity-50 transition-opacity duration-300 flex-shrink-0",style:{color:"#c9a227"},"aria-hidden":"true"})]}),e.jsx("p",{className:"font-rajdhani text-sm italic mt-3",style:{color:"rgba(240,235,224,0.38)",lineHeight:"1.6"},children:"On the nines. The old timeline ends. Remember forward."})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-8",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-mono text-xs tracking-[0.5em] mb-4",style:{color:"rgba(201,162,39,0.35)"},children:"QUICK LINKS"}),e.jsxs("div",{className:"flex flex-col gap-2.5",children:[o.map(({label:i,href:m})=>e.jsx("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"font-mono text-xs tracking-[0.3em] transition-colors duration-200",style:{color:"rgba(201,162,39,0.5)"},onMouseEnter:u=>{u.currentTarget.style.color="#c9a227"},onMouseLeave:u=>{u.currentTarget.style.color="rgba(201,162,39,0.5)"},children:i},i)),e.jsx("button",{onClick:()=>t("lexicon"),className:"font-mono text-xs tracking-[0.3em] transition-colors duration-200 text-left",style:{color:"rgba(201,162,39,0.5)"},onMouseEnter:i=>{i.currentTarget.style.color="#c9a227"},onMouseLeave:i=>{i.currentTarget.style.color="rgba(201,162,39,0.5)"},children:"LEXICON"}),e.jsx("button",{onClick:()=>t("newspaper"),className:"font-mono text-xs tracking-[0.3em] transition-colors duration-200 text-left",style:{color:"rgba(201,162,39,0.5)"},onMouseEnter:i=>{i.currentTarget.style.color="#c9a227"},onMouseLeave:i=>{i.currentTarget.style.color="rgba(201,162,39,0.5)"},children:"NAOPC NEWS"}),e.jsx("button",{onClick:()=>t("feedback"),className:"font-mono text-xs tracking-[0.3em] transition-colors duration-200 text-left",style:{color:"rgba(201,162,39,0.5)"},onMouseEnter:i=>{i.currentTarget.style.color="#c9a227"},onMouseLeave:i=>{i.currentTarget.style.color="rgba(201,162,39,0.5)"},children:"FEEDBACK"})]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"font-mono text-xs tracking-[0.5em] mb-4",style:{color:"rgba(201,162,39,0.35)"},children:"CONNECT"}),e.jsx("div",{className:"flex flex-col gap-2.5",children:r.map(({label:i,href:m})=>e.jsx("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"font-rajdhani text-sm tracking-wide transition-colors duration-200",style:{color:"rgba(240,235,224,0.4)"},onMouseEnter:u=>{u.currentTarget.style.color="rgba(240,235,224,0.75)"},onMouseLeave:u=>{u.currentTarget.style.color="rgba(240,235,224,0.4)"},children:i},i))})]}),e.jsxs("div",{children:[e.jsx("p",{className:"font-mono text-xs tracking-[0.5em] mb-4",style:{color:"rgba(201,162,39,0.35)"},children:"LEGAL"}),e.jsx("div",{className:"flex flex-col gap-2.5",children:l.map(({label:i})=>e.jsx("button",{onClick:()=>t("legal"),className:"font-rajdhani text-sm tracking-wide transition-colors duration-200 text-left",style:{color:"rgba(240,235,224,0.4)"},onMouseEnter:m=>{m.currentTarget.style.color="rgba(240,235,224,0.75)"},onMouseLeave:m=>{m.currentTarget.style.color="rgba(240,235,224,0.4)"},children:i},i))})]})]})]}),e.jsxs("div",{className:"rounded-lg px-5 py-4 mb-8 border",style:{background:"rgba(201,162,39,0.04)",borderColor:"rgba(201,162,39,0.12)"},children:[e.jsx("p",{className:"font-mono text-xs tracking-[0.55em] mb-2",style:{color:"rgba(201,162,39,0.4)"},children:"AUTHORSHIP"}),e.jsxs("p",{className:"font-rajdhani text-sm leading-relaxed",style:{color:"rgba(240,235,224,0.38)"},children:["All transmissions are authored by Damien Lamar (ProfessorClock)."," ","AI functions as an instrument under final creative control — never elevated to headline method, never positioned as the primary medium, and never permitted to author the transmission."," ",e.jsx("button",{onClick:()=>t("legal"),className:"transition-colors duration-200 underline underline-offset-2 decoration-dotted",style:{color:"rgba(201,162,39,0.45)"},onMouseEnter:i=>{i.currentTarget.style.color="#c9a227"},onMouseLeave:i=>{i.currentTarget.style.color="rgba(201,162,39,0.45)"},children:"Full disclosure"})]})]}),e.jsxs("div",{className:"flex items-center gap-5 mb-8",children:[e.jsx("div",{className:"flex-1 h-px",style:{background:"linear-gradient(to right, transparent, rgba(201,162,39,0.22))"}}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-1 h-1 rounded-full",style:{background:"rgba(201,162,39,0.5)"},"aria-hidden":"true"}),e.jsx("span",{className:"font-mono text-xs tracking-[0.6em]",style:{color:"rgba(201,162,39,0.4)"},children:"369.369.369"}),e.jsx("div",{className:"w-1 h-1 rounded-full",style:{background:"rgba(201,162,39,0.5)"},"aria-hidden":"true"})]}),e.jsx("div",{className:"flex-1 h-px",style:{background:"linear-gradient(to left, transparent, rgba(201,162,39,0.22))"}})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4",children:[e.jsxs("p",{className:"font-rajdhani text-sm",style:{color:"rgba(240,235,224,0.32)"},children:["© Copyright 2010–",a," ",e.jsx("a",{href:"http://www.damienlamar.com",target:"_blank",rel:"noopener noreferrer",className:"transition-colors duration-200 hover:text-[#c9a227]",style:{color:"rgba(240,235,224,0.42)"},children:"Damien Lamar"})," ","·"," ",e.jsx("a",{href:"https://professorclock.media",target:"_blank",rel:"noopener noreferrer",className:"transition-colors duration-200 hover:text-[#c9a227]",style:{color:"rgba(240,235,224,0.42)"},children:"ProfessorClock Media"})]}),e.jsxs("p",{className:"font-mono text-xs tracking-[0.4em]",style:{color:"rgba(201,162,39,0.25)"},children:[_.FOOTER_RANGE," · ",_.ORIGIN_YEAR,"–",_.CYCLE_END_YEAR]})]})]})]}),e.jsx("div",{className:"relative overflow-hidden",style:{background:"linear-gradient(135deg, rgba(201,162,39,0.08) 0%, rgba(201,162,39,0.03) 100%)",borderTop:"1px solid rgba(201,162,39,0.15)",borderBottom:"1px solid rgba(201,162,39,0.08)"},children:e.jsxs("div",{className:"max-w-6xl mx-auto px-6 py-8 flex flex-col sm:flex-row items-center justify-between gap-5",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-9 h-9 rounded-lg flex items-center justify-center flex-shrink-0",style:{background:"rgba(201,162,39,0.12)",border:"1px solid rgba(201,162,39,0.22)"},children:e.jsx(ie,{size:14,style:{color:"#c9a227"}})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-orbitron font-bold text-xs tracking-wider",style:{color:"rgba(240,235,224,0.85)"},children:"JOIN THE TRANSMISSION LIST"}),e.jsx("p",{className:"font-mono text-xs tracking-[0.4em] mt-0.5",style:{color:"rgba(201,162,39,0.5)"},children:"Not listeners. Receivers."})]})]}),e.jsxs("div",{className:"flex items-center gap-3 flex-shrink-0",children:[e.jsx("button",{onClick:()=>s(!0),className:"flex items-center gap-2 px-6 py-2.5 rounded-xl font-orbitron font-bold text-xs tracking-[0.2em] transition-all duration-300",style:{background:"linear-gradient(135deg, #c9a227 0%, #f2e08a 50%, #c9a227 100%)",backgroundSize:"200% 100%",color:"#03020a"},onMouseEnter:i=>{i.currentTarget.style.backgroundPosition="100% 0",i.currentTarget.style.transform="translateY(-1px)"},onMouseLeave:i=>{i.currentTarget.style.backgroundPosition="0% 0",i.currentTarget.style.transform=""},children:"OPEN THE CHANNEL"}),e.jsx("button",{onClick:()=>t("podcast"),className:"flex items-center gap-2 px-4 py-2.5 rounded-xl font-mono text-xs tracking-[0.3em] border transition-all duration-200",style:{color:"rgba(201,162,39,0.6)",borderColor:"rgba(201,162,39,0.2)",background:"transparent"},onMouseEnter:i=>{i.currentTarget.style.color="#c9a227",i.currentTarget.style.borderColor="rgba(201,162,39,0.45)"},onMouseLeave:i=>{i.currentTarget.style.color="rgba(201,162,39,0.6)",i.currentTarget.style.borderColor="rgba(201,162,39,0.2)"},children:"PODCAST"})]})]})})]})}const vt="naopc.signal",He="naopc.signal.session",oe=20,de=12,Ur=.05;function $r(){try{let t=localStorage.getItem(He);return t||(t=crypto.randomUUID(),localStorage.setItem(He,t)),t}catch{return crypto.randomUUID()}}const X=[{label:"AP4TMC",mhz:108.4},{label:"Schumann",mhz:7.83},{label:"Theta",mhz:6},{label:"Solfeggio",mhz:528}],Ve={state:"standby",mhz:108.4,log:[],presets:X};function Hr(){try{const t=localStorage.getItem(vt);if(!t)return{...Ve,presets:X};const a=JSON.parse(t);return{state:a.state??"standby",mhz:typeof a.mhz=="number"?a.mhz:108.4,log:Array.isArray(a.log)?a.log.slice(0,oe):[],presets:Array.isArray(a.presets)&&a.presets.length>0?a.presets:X}}catch{return{...Ve,presets:X}}}function Vr(t){try{localStorage.setItem(vt,JSON.stringify(t))}catch{}}async function Wr(t){const{data:a,error:n}=await P.rpc("signal_state_get",{p_session_id:t});if(n||!a||!Array.isArray(a)||a.length===0)return null;const s=a[0];return{state:s.state??"standby",mhz:typeof s.mhz=="number"?s.mhz:parseFloat(s.mhz)||108.4,log:Array.isArray(s.log)?s.log.slice(0,oe):[],presets:Array.isArray(s.presets)&&s.presets.length>0?s.presets:X}}async function Gr(t,a){await P.rpc("signal_state_upsert",{p_session_id:t,p_state:a.state,p_mhz:a.mhz,p_presets:a.presets,p_log:a.log})}const qr={default:{blocks:[{start:0,label:"Deep Sleep Protocol"},{start:4,label:"Pre-Dawn Activation"},{start:6,label:"Morning Ritual"},{start:9,label:"Frequency Alignment"},{start:12,label:"Meridian Transmission"},{start:15,label:"Afternoon Resonance"},{start:18,label:"Evening Signal"},{start:21,label:"Night Broadcast"}]}};function Yr(){return"default"}function ue(){const t=new Date,a=t.getHours(),n=t.getMinutes(),s=Yr(),o=qr[s].blocks;let r=o[0];for(const m of o)m.start<=a&&(r=m);const l=String(a).padStart(2,"0"),i=String(n).padStart(2,"0");return{time:`${l}:${i}`,label:r.label}}function Kr(t){return t.startsWith("auto-toast")||t.startsWith("auto-save")?{bg:"rgba(220,38,38,0.18)",color:"#f87171"}:t.startsWith("auto-modal")?{bg:"rgba(201,162,39,0.18)",color:"#f2c94c"}:t==="auto-online"?{bg:"rgba(26,184,201,0.18)",color:"#1ab8c9"}:t==="auto-offline"?{bg:"rgba(100,116,139,0.22)",color:"#94a3b8"}:{bg:"rgba(26,184,201,0.15)",color:"#5eead4"}}function Qr(t){const a=new Date(t);return`${String(a.getHours()).padStart(2,"0")}
109:${String(a.getMinutes()).padStart(2,"0")}`}const G={active:{label:"Active",badge:"LIVE",dot:"#22c55e",glow:"#22c55e"},standby:{label:"Standby",badge:"PAUSED",dot:"#f2c94c",glow:"#f2c94c"},error:{label:"Error",badge:"FAULT",dot:"#ef4444",glow:"#ef4444"},"signal-lost":{label:"Signal Lost",badge:"DARK",dot:"#64748b",glow:"#64748b"}};function Xr({broadcastLocked:t=!1}){const[a,n]=c.useState(!1),[s,o]=c.useState(Hr),[r,l]=c.useState(ue),[i,m]=c.useState(String(s.mhz)),[u,x]=c.useState(""),[p,N]=c.useState(!1),[k,T]=c.useState(!1);c.useRef(null);const v=c.useRef(s.state),h=c.useRef(null),w=c.useRef($r());c.useEffect(()=>{Vr(s)},[s]),c.useEffect(()=>{let j=!1;return Wr(w.current).then(C=>{j||!C||o(C)}),()=>{j=!0}},[]),c.useEffect(()=>{const j=setTimeout(()=>{Gr(w.current,s).catch(()=>{})},800);return()=>clearTimeout(j)},[s]),c.useEffect(()=>{m(String(s.mhz))},[s.mhz]),c.useEffect(()=>{if(!a)return;l(ue());const j=setInterval(()=>l(ue()),6e4);return()=>clearInterval(j)},[a]),c.useEffect(()=>{const j=C=>{C.key==="Escape"&&a&&n(!1)};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},[a]);const S=c.useCallback((j,C)=>{o(I=>{if(I.state===j)return I;const Tt=[{ts:Date.now(),from:I.state,to:j,source:C},...I.log].slice(0,oe);return{...I,state:j,log:Tt}})},[]);c.useEffect(()=>()=>{},[s.state,S]);const d=j=>{v.current=s.state,S(j,"manual")},f=()=>{const j=parseFloat(i);if(!Number.isFinite(j)||j<=0){m(String(s.mhz));return}o(C=>({...C,mhz:Math.round(j*100)/100}))},b=j=>{o(C=>({...C,mhz:j.mhz})),m(String(j.mhz))},g=j=>{o(C=>({...C,presets:C.presets.filter((I,Ae)=>Ae!==j)}))},y=()=>{const j=u.trim(),C=parseFloat(i);!j||!Number.isFinite(C)||s.presets.length>=de||(o(I=>({...I,presets:[...I.presets,{label:j,mhz:Math.round(C*100)/100}]})),x(""),N(!1))},R=j=>Math.abs(j.mhz-s.mhz)<=Ur,M=()=>o(j=>({...j,log:[]}));G[s.state];const O=t?"active":s.state,W=G[O],Y=t?"rgba(34,197,94,0.22)":k?"rgba(220,38,38,0.85)":s.state==="active"?"rgba(34,197,94,0.22)":s.state==="error"?"rgba(239,68,68,0.22)":s.state==="signal-lost"?"rgba(100,116,139,0.22)":"rgba(242,196,76,0.18)",$=t?"#22c55e":k?"#ef4444":s.state==="active"?"#22c55e":s.state==="error"?"#ef4444":s.state==="signal-lost"?"#64748b":"#f2c94c";return e.jsxs(e.Fragment,{children:[e.jsxs("button",{onClick:()=>n(j=>!j),"aria-label":`Signal panel — transmission ${s.state}`,"aria-expanded":a,className:"fixed bottom-6 right-6 flex items-center gap-2 rounded-full px-4 py-2.5 border transition-all duration-300 select-none",style:{zIndex:t?10010:70,background:Y,borderColor:$,backdropFilter:"blur(16px)",WebkitBackdropFilter:"blur(16px)",boxShadow:`0 0 ${k?28:18}px ${$}55, 0 6px 24px rgba(0,0,0,0.5)`,color:$},children:[e.jsx("span",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{background:W.dot,boxShadow:`0 0 8px ${W.dot}`,animation:"sigPulse 1.6s ease-in-out infinite"},"aria-hidden":"true"}),e.jsx(z,{size:13,"aria-hidden":"true"}),e.jsx("span",{className:"font-mono text-xs tracking-[0.3em] font-bold uppercase",children:"LIVE"}),e.jsx("span",{className:"font-mono text-xs tracking-[0.2em] opacity-60",children:t?"528Hz":`${s.mhz} MHz`})]}),a&&e.jsx("div",{className:"fixed inset-0",style:{zIndex:t?10008:68,background:"rgba(3,2,10,0.55)",backdropFilter:"blur(2px)"},onClick:()=>n(!1),"aria-hidden":"true"}),e.jsxs("div",{ref:h,role:"dialog","aria-label":"Signal transmission panel","aria-modal":"true",className:"fixed bottom-20 right-6 flex flex-col rounded-2xl border overflow-hidden",style:{zIndex:t?10009:69,width:"min(360px, calc(100vw - 24px))",maxHeight:"calc(100svh - 96px)",background:"rgba(4,3,12,0.97)",backdropFilter:"blur(28px) saturate(160%)",WebkitBackdropFilter:"blur(28px) saturate(160%)",borderColor:"rgba(201,162,39,0.16)",boxShadow:"0 20px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(201,162,39,0.06) inset",transform:a?"translateY(0) scale(1)":"translateY(12px) scale(0.97)",opacity:a?1:0,pointerEvents:a?"auto":"none",transition:"transform 0.25s cubic-bezier(0.16,1,0.3,1), opacity 0.2s ease",transformOrigin:"bottom right"},children:[e.jsxs("div",{className:"flex items-center justify-between px-5 py-3.5 flex-shrink-0",style:{borderBottom:"1px solid rgba(201,162,39,0.09)"},children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx(z,{size:14,style:{color:"#c9a227"},"aria-hidden":"true"}),e.jsx("span",{className:"font-orbitron font-black text-xs tracking-[0.3em]",style:{color:"#f2e08a"},children:"SIGNAL CONTROL"})]}),e.jsx("button",{onClick:()=>n(!1),className:"w-7 h-7 flex items-center justify-center rounded-lg transition-colors duration-150",style:{color:"rgba(240,235,224,0.4)"},onMouseEnter:j=>{j.currentTarget.style.color="#f2e08a"},onMouseLeave:j=>{j.currentTarget.style.color="rgba(240,235,224,0.4)"},"aria-label":"Close signal panel",children:e.jsx(D,{size:14,"aria-hidden":"true"})})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto overscroll-contain",style:{scrollbarWidth:"none"},children:[e.jsxs("section",{className:"px-5 py-3.5",style:{borderBottom:"1px solid rgba(201,162,39,0.07)"},"aria-label":"Now broadcasting",children:[e.jsx("p",{className:"font-mono text-xs tracking-[0.45em] mb-2",style:{color:"rgba(201,162,39,0.5)"},children:"NOW BROADCASTING"}),e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:"#22c55e",boxShadow:"0 0 6px #22c55e",animation:"sigPulse 1.8s ease-in-out infinite"},"aria-hidden":"true"}),e.jsx("span",{className:"font-mono text-xs",style:{color:"rgba(201,162,39,0.7)"},children:r.time}),e.jsx("span",{className:"font-rajdhani text-sm font-semibold tracking-wide",style:{color:"#f0ebe0"},children:r.label})]})]}),e.jsxs("section",{className:"px-5 py-3.5",style:{borderBottom:"1px solid rgba(201,162,39,0.07)"},"aria-label":"Transmission state selector",children:[e.jsx("p",{className:"font-mono text-xs tracking-[0.45em] mb-3",style:{color:"rgba(201,162,39,0.5)"},children:"TRANSMISSION STATE"}),e.jsx("div",{className:"grid grid-cols-2 gap-2",children:Object.keys(G).map(j=>{const C=G[j],I=s.state===j;return e.jsxs("button",{onClick:()=>d(j),className:"flex items-center gap-2.5 px-3 py-2.5 rounded-xl border transition-all duration-200 min-h-[44px]",style:{background:I?`${C.dot}1a`:"rgba(255,255,255,0.02)",borderColor:I?`${C.dot}66`:"rgba(255,255,255,0.06)",color:I?C.dot:"rgba(240,235,224,0.5)",boxShadow:I?`0 0 14px ${C.dot}22`:"none"},"aria-pressed":I,"aria-label":`Set state to ${C.label}`,children:[e.jsx("span",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{background:C.dot,boxShadow:I?`0 0 6px ${C.dot}`:"none"},"aria-hidden":"true"}),e.jsx("span",{className:"font-rajdhani text-sm font-semibold tracking-wider flex-1 text-left",children:C.label}),e.jsx("span",{className:"font-mono text-xs tracking-[0.25em] opacity-70",children:C.badge})]},j)})}),e.jsxs("div",{className:"mt-3 flex items-center gap-2",children:[e.jsx("label",{htmlFor:"sig-mhz",className:"font-mono text-xs tracking-[0.35em] flex-shrink-0",style:{color:"rgba(201,162,39,0.55)"},children:"MHz"}),e.jsx("input",{id:"sig-mhz",type:"number",min:"0.01",step:"0.01",value:i,onChange:j=>m(j.target.value),onBlur:f,onKeyDown:j=>{j.key==="Enter"&&f()},className:"flex-1 rounded-lg px-3 py-1.5 font-mono text-xs outline-none border transition-colors duration-150",style:{background:"rgba(255,255,255,0.04)",borderColor:"rgba(26,184,201,0.3)",color:"#1ab8c9"},"aria-label":"Frequency in MHz"})]})]}),e.jsxs("section",{className:"px-5 py-3.5",style:{borderBottom:"1px solid rgba(201,162,39,0.07)"},"aria-label":"Frequency presets",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2.5",children:[e.jsxs("p",{className:"font-mono text-xs tracking-[0.45em]",style:{color:"rgba(201,162,39,0.5)"},children:["PRESETS",e.jsxs("span",{className:"ml-2 opacity-50",children:["(",s.presets.length,"/",de,")"]})]}),s.presets.length<de&&e.jsxs("button",{onClick:()=>N(j=>!j),className:"flex items-center gap-1 px-2 py-1 rounded-lg border text-xs font-mono tracking-[0.2em] transition-all duration-150",style:{color:"rgba(26,184,201,0.8)",borderColor:"rgba(26,184,201,0.3)",background:"rgba(26,184,201,0.05)"},onMouseEnter:j=>{j.currentTarget.style.background="rgba(26,184,201,0.12)"},onMouseLeave:j=>{j.currentTarget.style.background="rgba(26,184,201,0.05)"},"aria-label":"Save current frequency as preset","aria-expanded":p,children:[e.jsx(Dt,{size:10,"aria-hidden":"true"}),"SAVE"]})]}),p&&e.jsxs("div",{className:"flex gap-2 mb-2.5",children:[e.jsx("input",{type:"text",placeholder:"Preset name…",maxLength:20,value:u,onChange:j=>x(j.target.value),onKeyDown:j=>{j.key==="Enter"&&y(),j.key==="Escape"&&N(!1)},className:"flex-1 rounded-lg px-3 py-1.5 font-mono text-xs outline-none border",style:{background:"rgba(255,255,255,0.04)",borderColor:"rgba(201,162,39,0.28)",color:"#f2e08a"},autoFocus:!0,"aria-label":"Preset name"}),e.jsxs("button",{onClick:y,disabled:!u.trim(),className:"flex items-center gap-1 px-3 py-1.5 rounded-lg text-xs font-mono tracking-[0.2em] transition-all duration-150 disabled:opacity-40",style:{background:"rgba(201,162,39,0.18)",color:"#f2c94c",border:"1px solid rgba(201,162,39,0.35)"},"aria-label":"Confirm save preset",children:[e.jsx(zt,{size:10,"aria-hidden":"true"}),"ADD"]})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.presets.map((j,C)=>{const I=R(j);return e.jsx(Jr,{preset:j,isActive:I,onApply:()=>b(j),onRemove:()=>g(C)},`${j.label}-${C}`)}),s.presets.length===0&&e.jsx("p",{className:"font-mono text-xs",style:{color:"rgba(240,235,224,0.3)"},children:"No presets saved yet."})]})]}),e.jsxs("section",{className:"px-5 py-3.5","aria-label":"Broadcast log",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2.5",children:[e.jsxs("p",{className:"font-mono text-xs tracking-[0.45em]",style:{color:"rgba(201,162,39,0.5)"},children:["BROADCAST LOG",e.jsxs("span",{className:"ml-2 opacity-50",children:["(",s.log.length,"/",oe,")"]})]}),s.log.length>0&&e.jsxs("button",{onClick:M,className:"flex items-center gap-1 px-2 py-1 rounded-lg border text-xs font-mono tracking-[0.2em] transition-all duration-150",style:{color:"rgba(239,68,68,0.75)",borderColor:"rgba(239,68,68,0.22)",background:"transparent"},onMouseEnter:j=>{j.currentTarget.style.background="rgba(239,68,68,0.08)"},onMouseLeave:j=>{j.currentTarget.style.background="transparent"},"aria-label":"Clear broadcast log",children:[e.jsx(ut,{size:10,"aria-hidden":"true"}),"CLEAR"]})]}),s.log.length===0?e.jsx("p",{className:"font-mono text-xs",style:{color:"rgba(240,235,224,0.25)"},children:"No transitions recorded yet."}):e.jsx("div",{className:"space-y-1.5 max-h-40 overflow-y-auto",style:{scrollbarWidth:"none"},role:"log","aria-label":"Transmission state history","aria-live":"polite",children:s.log.map((j,C)=>{const I=Kr(j.source);return e.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono",style:{color:"rgba(240,235,224,0.55)"},children:[e.jsx("span",{className:"opacity-50 flex-shrink-0",style:{minWidth:"2.6rem"},children:Qr(j.ts)}),e.jsx("span",{style:{color:G[j.from].dot},children:j.from}),e.jsx("span",{className:"opacity-40",children:"▸"}),e.jsx("span",{style:{color:G[j.to].dot},children:j.to}),e.jsx("span",{className:"ml-auto flex-shrink-0","aria-label":`Source: ${j.source}`,children:e.jsx("span",{className:"px-1.5 py-0.5 rounded text-xs tracking-[0.2em] uppercase",style:{background:I.bg,color:I.color},children:j.source.replace(/^auto-/,"").slice(0,8).toUpperCase()})})]},C)})})]})]})]}),e.jsx("style",{children:`
110        @keyframes sigPulse {
111          0%, 100% { opacity: 1; transform: scale(1); }
112          50%       { opacity: 0.55; transform: scale(1.35); }
113        }
114      `})]})}function Jr({preset:t,isActive:a,onApply:n,onRemove:s}){const[o,r]=c.useState(!1);return e.jsxs("div",{className:"relative flex items-center rounded-lg border transition-all duration-150",style:{background:a?"rgba(26,184,201,0.14)":"rgba(255,255,255,0.03)",borderColor:a?"rgba(26,184,201,0.6)":"rgba(255,255,255,0.08)",boxShadow:a?"0 0 12px rgba(26,184,201,0.22)":"none"},onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[e.jsxs("button",{onClick:n,className:"flex items-center gap-1.5 px-3 py-1.5 font-mono text-xs transition-colors duration-150",style:{color:a?"#1ab8c9":"rgba(240,235,224,0.6)"},"aria-label":`Apply preset ${t.label} at ${t.mhz} MHz`,"aria-pressed":a,children:[a&&e.jsx("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:"#1ab8c9",boxShadow:"0 0 5px #1ab8c9"},"aria-hidden":"true"}),e.jsx("span",{children:t.label}),e.jsx("span",{className:"opacity-50",children:t.mhz})]}),o&&e.jsx("button",{onClick:l=>{l.stopPropagation(),s()},className:"pr-2 pl-0 flex items-center justify-center rounded-r-lg transition-colors duration-150",style:{color:"rgba(239,68,68,0.7)"},onMouseEnter:l=>{l.currentTarget.style.color="#ef4444"},onMouseLeave:l=>{l.currentTarget.style.color="rgba(239,68,68,0.7)"},"aria-label":`Remove preset ${t.label}`,children:e.jsx(D,{size:11,"aria-hidden":"true"})})]})}let K=null,re=null;function Zr(){const[t,a]=c.useState(K??[]),[n,s]=c.useState(re??[]),[o,r]=c.useState(!K);return c.useEffect(()=>{if(K&&re)return;let l=!0;return(async()=>{const[i,m]=await Promise.all([P.from("eras").select("*").order("sort_order"),P.from("era_nodes").select("*").order("sort_order")]);l&&(i.data&&(K=i.data,a(K)),m.data&&(re=m.data,s(re)),r(!1))})(),()=>{l=!1}},[]),{eras:t,nodes:n,loading:o}}function ea(t,a,n){const s=a.find(o=>o.page_id===n);return s?t.find(o=>o.id===s.era_id)??null:t.find(o=>o.slug==="present")??null}function ta(t,a){return t.find(n=>n.page_id===a)??null}function ra(t){return String(t).padStart(2,"0")}function We({value:t}){return e.jsx("div",{className:"relative overflow-hidden",style:{width:18,height:28},children:e.jsx(H,{mode:"popLayout",initial:!1,children:e.jsx(A.span,{className:"absolute inset-0 flex items-center justify-center font-mono font-black text-base leading-none select-none",style:{color:"#00e5ff",textShadow:"0 0 8px rgba(0,229,255,0.9), 0 0 20px rgba(0,229,255,0.5)"},initial:{y:-14,opacity:0,filter:"blur(4px)"},animate:{y:0,opacity:1,filter:"blur(0px)"},exit:{y:14,opacity:0,filter:"blur(4px)"},transition:{duration:.18,ease:"easeInOut"},children:t},t)})})}function me({value:t}){const a=ra(t);return e.jsxs("div",{className:"flex gap-0.5",children:[e.jsx(We,{value:a[0]}),e.jsx(We,{value:a[1]})]})}function Ge(){const[t,a]=c.useState(!0);return c.useEffect(()=>{const n=setInterval(()=>a(s=>!s),500);return()=>clearInterval(n)},[]),e.jsxs(A.div,{className:"flex flex-col gap-1 items-center justify-center flex-shrink-0",style:{height:28,width:8}
114,animate:{opacity:t?1:.15},transition:{duration:.15},"aria-hidden":"true",children:[e.jsx("div",{className:"w-1 h-1 rounded-full",style:{background:"#00e5ff",boxShadow:"0 0 6px rgba(0,229,255,0.8)"}}),e.jsx("div",{className:"w-1 h-1 rounded-full",style:{background:"#00e5ff",boxShadow:"0 0 6px rgba(0,229,255,0.8)"}})]})}function aa(){const[t,a]=c.useState(()=>{const n=new Date;return{h:n.getHours(),m:n.getMinutes(),s:n.getSeconds()}});return c.useEffect(()=>{const n=setInterval(()=>{const s=new Date;a({h:s.getHours(),m:s.getMinutes(),s:s.getSeconds()})},100);return()=>clearInterval(n)},[]),e.jsxs("div",{className:"flex items-center gap-0.5 rounded-md px-2 py-1",style:{background:"rgba(0,229,255,0.06)",border:"1px solid rgba(0,229,255,0.18)",boxShadow:"0 0 12px rgba(0,229,255,0.08), inset 0 0 8px rgba(0,0,0,0.4)"},"aria-label":"Live clock",children:[e.jsx(me,{value:t.h}),e.jsx(Ge,{}),e.jsx(me,{value:t.m}),e.jsx(Ge,{}),e.jsx(me,{value:t.s})]})}const Q=29.53059,sa=new Date("2000-01-06T18:14:00Z").getTime(),na=["New Moon","Waxing Crescent","First Quarter","Waxing Gibbous","Full Moon","Waning Gibbous","Last Quarter","Waning Crescent"],xe=[0,.0625,.25,.375,.5,.625,.75,.875,1],qe=[0,.25,.5,.75,1],oa=["New Moon","First Quarter","Full Moon","Last Quarter","New Moon"];function Ye(t){const n=((t.getTime()-sa)/864e5%Q+Q)%Q,s=n/Q,o=(1-Math.cos(s*2*Math.PI))/2*100,r=s<.5;let l=0;for(let x=0;x<xe.length-1;x++)if(s>=xe[x]&&s<xe[x+1]){l=x;break}const i=qe.find(x=>x>s)??1,m=qe.indexOf(i),u=(i-s)*Q;return{phaseName:na[l],illumination:o,ageInDays:n,cycleProgress:s,isWaxing:r,nextPhaseName:oa[m],daysUntilNextPhase:u,nextPhaseDate:new Date(t.getTime()+u*864e5)}}function la(){const[t,a]=c.useState(()=>Ye(new Date)),[n,s]=c.useState(()=>Intl.DateTimeFormat().resolvedOptions().timeZone);return c.useEffect(()=>{const o=()=>{const l=Intl.DateTimeFormat().resolvedOptions().timeZone;l!==n&&s(l);const i=Ye(new Date);a(m=>m.phaseName!==i.phaseName||Math.round(m.illumination)!==Math.round(i.illumination)?i:m)},r=setInterval(o,72e5);return window.addEventListener("focus",o),()=>{clearInterval(r),window.removeEventListener("focus",o)}},[n]),t}function ia({phase:t}){const o=t.cycleProgress;let r,l;o<.5?(r=o/.5*2*90-90,l=!0):(r=(1-o)/.5*2*90-90,l=!1);const i=()=>{const p="100,10",N="100,190",k=Math.abs(r),T=l?1:0;let v;return l?v=r>=0?0:1:v=r>=0?1:0,t.illumination<1?`M 100,10 A 90,90 0 1 1 100,190 A 90,90 0 1 1 ${p} Z`:t.illumination>99?`M ${p} A 90,90 0 1 1 ${N} A 90,90 0 1 1 ${p} Z`:[`M ${p}`,`A 90,90 0 1 ${T} ${N}`,`A ${k||1},90 0 1 ${v} ${p}`,"Z"].join(" ")},m="moon-glow",u="moon-clip",x="moon-grad";return e.jsx(A.div,{animate:{scale:[1,1.03,1]},transition:{duration:4,repeat:1/0,repeatType:"reverse",ease:"easeInOut"},children:e.jsxs("svg",{width:"200",height:"200",viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg",style:{display:"block"},children:[e.jsxs("defs",{children:[e.jsxs("filter",{id:m,children:[e.jsx("feGaussianBlur",{stdDeviation:"7",result:"blur"}),e.jsxs("feMerge",{children:[e.jsx("feMergeNode",{in:"blur"}),e.jsx("feMergeNode",{in:"SourceGraphic"})]})]}),e.jsxs("radialGradient",{id:x,cx:"40%",cy:"35%",r:"60%",children:[e.jsx("stop",{offset:"0%",stopColor:"#F5F0E8"}),e.jsx("stop",{offset:"70%",stopColor:"#E8D5A3"}),e.jsx("stop",{offset:"100%",stopColor:"#C8B47A"})]}),e.jsx("clipPath",{id:u,children:e.jsx("circle",{cx:100,cy:100,r:90})})]}),e.jsx(A.circle,{cx:100,cy:100,r:98,fill:"none",stroke:"#F5F0E8",strokeWidth:"2",opacity:.12,style:{filter:`url(#${m})`},animate:{opacity:[.08,.22,.08]},transition:{duration:3,repeat:1/0,repeatType:"reverse",ease:"easeInOut"}}),e.jsx("circle",{cx:100,cy:100,r:90,fill:"#1a1f35"}),e.jsx("g",{clipPath:`url(#${u})`,children:e.jsx("path",{d:i(),fill:`url(#${x})`})}),e.jsxs("g",{clipPath:`url(#${u})`,opacity:"0.18",children:[e.jsx("ellipse",{cx:"115",cy:"75",rx:"8",ry:"6",fill:"#888"}),e.jsx("ellipse",{cx:"80",cy:"110",rx:"12",ry:"9",fill:"#888"}),e.jsx("ellipse",{cx:"125",cy:"130",rx:"6",ry:"5",fill:"#888"}),e.jsx("ellipse",{cx:"90",cy:"65",rx:"5",ry:"4",fill:"#888"})]}),e.jsx("circle",{cx:100,cy:100,r:90,fill:"none",stroke:"rgba(245,240,232,0.12)",strokeWidth:"1"})]})})}function ca({illumination:t}){const n=2*Math.PI*36,s=c.useRef(null);return c.useEffect(()=>{const o=s.current;if(!o)return;const r=St(0,t,{duration:1.2,ease:"easeOut",onUpdate:l=>{o.textContent=Math.round(l)+"%"}});return()=>r.stop()},[t]),e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsxs("svg",{width:"88",height:"88",viewBox:"0 0 88 88",children:[e.jsx("circle",{cx:"44",cy:"44",r:36,fill:"none",stroke:"rgba(255,255,255,0.08)",strokeWidth:"6"}),e.jsx("circle",{cx:"44",cy:"44",r:36,fill:"none",stroke:"#c9a227",strokeWidth:"6",strokeLinecap:"round",strokeDasharray:`${t/100*n} ${n}`,strokeDashoffset:n/4,transform:"rotate(-90 44 44)"}),e.jsxs("text",{x:"44",y:"44",textAnchor:"middle",dominantBaseline:"middle",fill:"#f5f0e3",fontSize:"11",fontFamily:"monospace",fontWeight:"bold",children:[Math.round(t),"%"]})]}),e.jsx("span",{ref:s,className:"sr-only"}),e.jsx("span",{className:"font-mono text-xs tracking-[0.3em] uppercase",style:{color:"rgba(245,240,232,0.5)"},children:"LIT"})]})}function da({phase:t,onClose:a}){const n=t.nextPhaseDate.toLocaleDateString(void 0,{month:"short",day:"numeric"});return e.jsxs(A.div,{initial:{opacity:0,scale:.88,y:-8}
114,animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.88,y:-8},transition:{type:"spring",stiffness:200,damping:20},className:"absolute right-0 top-full mt-3 z-50 rounded-2xl border",style:{width:260,background:"rgba(6,4,15,0.96)",borderColor:"rgba(201,162,39,0.3)",backdropFilter:"blur(24px)",boxShadow:"0 16px 48px rgba(0,0,0,0.7), 0 0 24px rgba(201,162,39,0.1)"},children:[e.jsx("button",{type:"button",onClick:a,className:"absolute top-3 right-3 w-6 h-6 flex items-center justify-center rounded-full transition-colors",style:{color:"rgba(245,240,232,0.4)",background:"rgba(255,255,255,0.06)"},"aria-label":"Close moon panel",children:e.jsx(D,{size:12})}),e.jsx("div",{className:"flex justify-center pt-5 pb-2",children:e.jsx(ia,{phase:t})}),e.jsxs("div",{className:"px-5 pb-3 text-center",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-1",children:[e.jsx(nt,{size:14,style:{color:"#c9a227"}}),e.jsx("span",{className:"font-orbitron font-black text-[13px]",style:{color:"#f5f0e3"},children:t.phaseName.toUpperCase()})]}),e.jsxs("span",{className:"font-mono text-xs",style:{color:"rgba(245,240,232,0.45)"},children:["Day ",t.ageInDays.toFixed(1)," of cycle"]})]}),e.jsx("div",{className:"flex justify-center pb-3",children:e.jsx(ca,{illumination:t.illumination})}),e.jsxs("div",{className:"mx-4 mb-4 p-3 rounded-xl flex items-center gap-3",style:{background:"rgba(201,162,39,0.07)",border:"1px solid rgba(201,162,39,0.18)"},children:[e.jsx(Ft,{size:14,style:{color:"#c9a227",flexShrink:0}}),e.jsxs("div",{children:[e.jsx("div",{className:"font-mono text-xs font-bold",style:{color:"#c9a227"},children:t.nextPhaseName}),e.jsxs("div",{className:"font-mono text-xs",style:{color:"rgba(245,240,232,0.5)"},children:["in ",Math.round(t.daysUntilNextPhase)," days · ",n]})]})]})]})}const ua={"New Moon":"🌑","Waxing Crescent":"🌒","First Quarter":"🌓","Waxing Gibbous":"🌔","Full Moon":"🌕","Waning Gibbous":"🌖","Last Quarter":"🌗","Waning Crescent":"🌘"};function ma({accent:t="#c9a227"}){const a=la(),[n,s]=c.useState(!1),o=ua[a.phaseName]??"🌙";return e.jsxs("div",{className:"relative flex-shrink-0",children:[e.jsx("button",{type:"button",onClick:()=>s(r=>!r),className:"flex items-center gap-1.5 font-mono text-xs md:text-xs tracking-[0.28em] uppercase rounded-full px-2 md:px-3 py-1 border transition-all",style:{color:n?"#03020a":t,borderColor:n?"transparent":`${t}55`,background:n?t:"transparent"},"aria-label":"Toggle moon phase","aria-expanded":n,children:e.jsx("span",{style:{fontSize:14,lineHeight:1},children:o})}),e.jsx(H,{children:n&&e.jsx(da,{phase:a,onClose:()=>s(!1)})})]})}const be=new Date("2026-06-21T01:09:00Z").getTime(),Ke=be+2478*1e3;function xa(){const[t,a]=c.useState(()=>{const n=Date.now();return n<be?"pre":n<Ke?"live":"post"});return c.useEffect(()=>{const n=setInterval(()=>{const s=Date.now();s<be?a("pre"):s<Ke?a("live"):a("post")},1e4);return()=>clearInterval(n)},[]),t}const ga=new Set(["ap4tmc","opsisiv","broadcast","intended-receivers"]);function pa(){const t=c.useRef(null),a=c.useRef(null),n=c.useRef(0),s=c.useRef({x:.5,y:.5});return c.useEffect(()=>{const o=t.current;if(!o)return;const r=o.getContext("webgl",{alpha:!0,antialias:!0});if(!r)return;const l=`
115      attribute vec2 position;
116      void main() { gl_Position = vec4(position, 0.0, 1.0); }
117    `,i=`
118      precision highp float;
119      uniform float time;
120      uniform float hover;
121      uniform vec2 pointer;
122      uniform vec3 gold;
123      const float PI = 3.14159265359;
124      const float SQRT3 = 1.7320508;
125
126      mat3 rotY(float a) { return mat3(cos(a), 0.0, sin(a), 0.0, 1.0, 0.0, -sin(a), 0.0, cos(a)); }
127      mat3 rotX(float a) { return mat3(1.0, 0.0, 0.0, 0.0, cos(a), -sin(a), 0.0, sin(a), cos(a)); }
128
129      vec2 project(vec3 p, float scale) {
130        return p.xy * scale / (1.0 + p.z * 0.35);
131      }
132
133      float lineDist(vec2 p, vec2 a, vec2 b) {
134        vec2 pa = p - a, ba = b - a;
135        float t = clamp(dot(pa, ba) / dot(ba, ba + 0.0001), 0.0, 1.0);
136        return length(pa - ba * t);
137      }
138
139      void main() {
140        vec2 uv = gl_FragCoord.xy / 300.0;
141        vec2 p = (uv - 0.5) * 2.0;
142        float r = length(p);
143        float a = atan(p.y, p.x);
144
145        float spin = time * (0.12 + hover * 0.18);
146        float pulse = 1.0 + hover * 0.05;
147        vec3 color = vec3(0.0);
148
149        // Starfield
150        for (int i = 0; i < 3; i++) {
151          float fi = float(i);
152          vec2 suv = p * (3.0 + fi * 2.0) + vec2(fi * 17.0, fi * 31.0);
153          vec2 cell = floor(suv);
154          float h = fract(sin(dot(cell, vec2(127.1, 311.7))) * 43758.5453);
155          if (h > 0.97) {
156            color += vec3(0.3, 0.25, 0.15) * (h - 0.97) / 0.03 * 0.5 * (0.4 + 0.6 * sin(time * 2.0 + h * 100.0));
157          }
158        }
159
160        // Central star — Dyson sphere core
161        float coreR = r / (0.15 * pulse);
162        color += gold * exp(-coreR * coreR * 2.0) * 1.4;
163        color += vec3(1.0, 0.85, 0.4) * exp(-coreR * coreR * 12.0) * 1.2;
164
165        // Dyson sphere lattice shell
166        float sphereR = 0.60 * pulse;
167
168        // Latitude rings
169        for (int i = 1; i < 7; i++) {
170          float lat = float(i) / 7.0 * PI - PI * 0.5;
171          float ringR = sphereR * cos(lat);
172          float depth = sin(lat);
173          float w = 0.006;
174          color += gold * (1.0 - smoothstep(w, w + 0.005, abs(r - ringR))) * (0.25 + 0.75 * abs(depth)) * 0.45;
175        }
176
177        // Longitude spokes
178        for (int i = 0; i < 12; i++) {
179          float lon = float(i) / 12.0 * 2.0 * PI + spin;
180          float diff = abs(sin(a - lon));
181          color += gold * (1.0 - smoothstep(0.018, 0.045, diff)) * smoothstep(sphereR, sphereR - 0.04, r) * 0.3;
182        }
183
184        // Sphere rim
185        float edge = 1.0 - smoothstep(0.003, 0.008, abs(r - sphereR));
186        color += gold * edge * 0.6;
187
188        // Merkaba — two interlocking tetrahedra
189        float mScale = 0.48 * pulse;
190        float tiltX = (pointer.y - 0.5) * 1.2;
191        float tiltY = (pointer.x - 0.5) * 1.2;
192        mat3 rot = rotY(spin * 0.7 + tiltY) * rotX(spin * 0.5 + tiltX);
193
194        // Upward tetrahedron
195        vec2 p0 = project(rot * vec3(1.0, 1.0, 1.0) / SQRT3, mScale);
196        vec2 p1 = project(rot * vec3(1.0, -1.0, -1.0) / SQRT3, mScale);
197        vec2 p2 = project(rot * vec3(-1.0, 1.0, -1.0) / SQRT3, mScale);
198        vec2 p3 = project(rot * vec3(-1.0, -1.0, 1.0) / SQRT3, mScale);
199
200        float tetUp = 1e9;
201        tetUp = min(tetUp, lineDist(p, p0, p1));
202        tetUp = min(tetUp, lineDist(p, p0, p2));
203        tetUp = min(tetUp, lineDist(p, p0, p3));
204        tetUp = min(tetUp, lineDist(p, p1, p2));
205        tetUp = min(tetUp, lineDist(p, p1, p3));
206        tetUp = min(tetUp, lineDist(p, p2, p3));
207
208        // Downward tetrahedron
209        vec2 q0 = project(rot * vec3(-1.0, -1.0, -1.0) / SQRT3, mScale);
210        vec2 q1 = project(rot * vec3(-1.0, 1.0, 1.0) / SQRT3, mScale);
211        vec2 q2 = project(rot * vec3(1.0, -1.0, 1.0) / SQRT3, mScale);
212        vec2 q3 = project(rot * vec3(1.0, 1.0, -1.0) / SQRT3, mScale);
213
214        float tetDn = 1e9;
215        tetDn = min(tetDn, lineDist(p, q0, q1));
216        tetDn = min(tetDn, lineDist(p, q0, q2));
217        tetDn = min(tetDn, lineDist(p, q0, q3));
218        tetDn = min(tetDn, lineDist(p, q1, q2));
219        tetDn = min(tetDn, lineDist(p, q1, q3));
220        tetDn = min(tetDn, lineDist(p, q2, q3));
221
222        color += gold * (1.0 - smoothstep(0.005, 0.011, tetUp)) * 0.85;
223        color += vec3(0.35, 0.6, 1.0) * (1.0 - smoothstep(0.005, 0.011, tetDn)) * 0.65;
224
225        // Central glow
226        float glow = exp(-r * r * 2.5) * (0.12 + hover * 0.22);
227        color += gold * glow * 0.1;
228
229        // Vignette + alpha
230        float vignette = smoothstep(1.05, 0.25, r);
231        float alpha = clamp((length(color) * 1.2 + edge * 0.12) * vignette, 0.0, 0.97);
232        gl_FragColor = vec4(color, alpha);
233      }
234    `,m=(f,b)=>{const g=r.createShader(f);return g?(r.shaderSource(g,b),r.compileShader(g),r.getShaderParameter(g,r.COMPILE_STATUS)?g:(r.deleteShader(g),null)):null},u=m(r.VERTEX_SHADER,l),x=m(r.FRAGMENT_SHADER,i);if(!u||!x)return;const p=r.createProgram();if(!p||(r.attachShader(p,u),r.attachShader(p,x),r.linkProgram(p),!r.getProgramParameter(p,r.LINK_STATUS)))return;r.useProgram(p);const N=r.createBuffer();r.bindBuffer(r.ARRAY_BUFFER,N),r.bufferData(r.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,1,1]),r.STATIC_DRAW);const k=r.getAttribLocation(p,"position");r.enableVertexAttribArray(k),r.vertexAttribPointer(k,2,r.FLOAT,!1,0,0);const T=r.getUniformLocation(p,"time"),v=r.getUniformLocation(p,"hover"),h=r.getUniformLocation(p,"pointer"),w=r.getUniformLocation(p,"gold"),S=performance.now(),d=f=>{n.current+=((o.matches(":hover")?1:0)-n.current)*.08,r.viewport(0,0,300,300),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT),r.uniform1f(T,(f-S)/1e3),r.uniform1f(v,n.current),r.uniform2f(h,s.current.x,s.current.y),r.uniform3f(w,.92,.62,.15),r.drawArrays(r.TRIANGLE_STRIP,0,4),a.current=requestAnimationFrame(d)};return a.current=requestAnimationFrame(d),()=>{a.current&&cancelAnimationFrame(a.current),r.deleteProgram(p),r.deleteShader(u),r.deleteShader(x),r.deleteBuffer(N)}},[]),e.jsxs("a",{href:"http://professorclock.media",target:"_blank",rel:"noopener noreferrer","aria-label":"Enter Professor Clock",className:"absolute left-1/2 top-full z-20 block h-[90px] w-[90px] -translate-x-1/2 -translate-y-1/2 roun
234ded-full transition-transform duration-500 hover:scale-105",onPointerMove:o=>{const r=o.currentTarget.getBoundingClientRect();s.current={x:(o.clientX-r.left)/r.width,y:(o.clientY-r.top)/r.height}},children:[e.jsx("canvas",{ref:t,width:300,height:300,className:"h-full w-full","aria-hidden":"true"}),e.jsx("span",{className:"sr-only",children:"Professor Clock portal"})]})}function fa({currentPage:t,onReturnToPresent:a,onOpenTimeline:n}){var T;const{eras:s,nodes:o}=Zr(),r=xa(),l=c.useMemo(()=>ea(s,o,t),[s,o,t]),i=c.useMemo(()=>ta(o,t),[o,t]),m=!l||l.slug==="present",u=((T=l==null?void 0:l.palette)==null?void 0:T.accent)??"#c9a227",x=ga.has(t),p=r==="live",N=r==="pre"&&x,k=(i==null?void 0:i.label)??(l==null?void 0:l.location_label)??(l==null?void 0:l.label)??"PRESENT · 2026";return e.jsx(A.div,{"aria-live":"polite","aria-atomic":"true",className:"fixed top-0 left-0 right-0 z-[70] w-full",initial:{y:-64,opacity:0},animate:{y:0,opacity:1},transition:{duration:.5,ease:[.16,1,.3,1]},children:e.jsx("div",{className:"relative flex items-center justify-center h-16 backdrop-blur-xl transition-all duration-500",style:{background:p?"rgba(30,4,8,0.92)":"rgba(6,4,15,0.92)",borderBottom:`1px solid ${p?"rgba(226,16,43,0.45)":`${u}55`}`,boxShadow:p?"0 4px 20px rgba(226,16,43,0.15)":`0 4px 20px ${u}11`},children:e.jsxs("div",{className:"flex items-center gap-2 md:gap-3 px-4 md:px-6 max-w-screen-xl w-full",children:[e.jsx(aa,{}),e.jsx("span",{className:"h-4 w-px hidden sm:block",style:{background:p?"rgba(226,16,43,0.4)":`${u}44`},"aria-hidden":"true"}),e.jsx("button",{type:"button",onClick:n,className:"flex items-center gap-2 font-mono text-xs md:text-[13px] tracking-[0.22em] uppercase transition-colors",style:{color:p?"#ff3a52":u},"aria-label":"Open timeline slider",children:e.jsx("span",{className:"hidden sm:inline",children:"TIME-MACHINE"})}),e.jsx("span",{className:"h-4 w-px",style:{background:p?"rgba(226,16,43,0.4)":`${u}55`},"aria-hidden":"true"}),e.jsx("span",{className:"font-rajdhani text-[12px] md:text-[14px] leading-tight truncate max-w-[40vw] md:max-w-[480px]",style:{color:"rgba(240,235,224,0.92)"},title:k,children:k}),p&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"h-4 w-px",style:{background:"rgba(226,16,43,0.4)"},"aria-hidden":"true"}),e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:"#e2102b",boxShadow:"0 0 6px #e2102b",animation:"sigPulse 1.6s ease-in-out infinite"},"aria-hidden":"true"}),e.jsx("span",{className:"font-mono text-xs md:text-xs tracking-[0.3em] uppercase",style:{color:"#ff3a52"},children:"LIVE · GATE 1"})]})]}),N&&!p&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"h-4 w-px",style:{background:`${u}55`},"aria-hidden":"true"}),e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(z,{size:10,style:{color:u},"aria-hidden":"true"}),e.jsx("span",{className:"font-mono text-xs md:text-xs tracking-[0.28em] uppercase",style:{color:u},children:"TONIGHT · 9:09 PM ET"})]})]}),!m&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"h-4 w-px",style:{background:`${u}55`},"aria-hidden":"true"}),e.jsxs("button",{type:"button",onClick:a,className:"flex items-center gap-1 font-mono text-xs md:text-xs tracking-[0.22em] uppercase rounded-full px-2 md:px-3 py-1 border transition-colors hover:bg-white/5",style:{color:u,borderColor:`${u}55`},"aria-label":"Return to present, 2026",children:[e.jsx(Bt,{size:10,"aria-hidden":"true"}),e.jsx("span",{children:"2026"})]})]}),e.jsx("span",{className:"h-4 w-px ml-1",style:{background:`${u}33`},"aria-hidden":"true"}),e.jsx(ma,{accent:u}),e.jsx(pa,{})]})})})}const Qe="naopc_time_session_id";function Xe(){return typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const a=Math.random()*16|0;return(t==="x"?a:a&3|8).toString(16)})}function Je(){try{const t=localStorage.getItem(Qe);if(t)return t;const a=Xe();return localStorage.setItem(Qe,a),a}catch{return Xe()}}const ne={reduced_motion:!1,high_contrast:!1,captions_on:!0,ambient_audio_on:!1},jt="naopc_user_prefs";function ha(){try{const t=localStorage.getItem(jt);return t?{...ne,...JSON.parse(t)}:ne}catch{return ne}}function Ze(t){try{localStorage.setItem(jt,JSON.stringify(t))}catch{}}function ba(){const[t,a]=c.useState(()=>{const s=ha();return typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches&&!s.reduced_motion&&(s.reduced_motion=!0),s});c.useEffect(()=>{const s=Je();(async()=>{const{data:o}=await P.from("user_preferences").select("reduced_motion, high_contrast, captions_on, ambient_audio_on").eq("session_id",s).maybeSingle();if(o){const r={...ne,...o};a(r),Ze(r)}})()},[]),c.useEffect(()=>{const s=document.documentElement;s.dataset.contrast=t.high_contrast?"high":"normal",s.dataset.motion=t.reduced_motion?"reduce":"full"},[t.high_contrast,t.reduced_motion]);const n=c.useCallback(s=>{a(o=>{const r={...o,...s};Ze(r);const l=Je();return P.rpc("user_preferences_upsert",{p_session_id:l,p_reduced_motion:r.reduced_motion,p_high_contrast:r.high_contrast,p_captions_on:r.captions_on,p_ambient_audio_on:r.ambient_audio_on}).then(()=>{}),r})},[]);return{prefs:t,update:n}}function ya(){const[t,a]=c.useState(!1),{prefs:n,update:s}=ba(),o="#c9a227";return e.jsxs(e.Fragment,{children:[e.jsx("button",{type:"button",onClick:()=>a(!0),"aria-label":"Open accessibility settings",className:"fixed bottom-6 left-6 z-[58] w-11 h-11 rounded-full border flex items-center justify-center transition-all hover:scale-105",style:{background:"rgba(6,4,15,0.82)",backdropFilter:"blur(16px)",borderColor:`${o}
23455`,color:o,boxShadow:`0 4px 20px ${o}22`},children:e.jsx(Ut,{size:16,"aria-hidden":"true"})}),t&&e.jsx("div",{role:"dialog","aria-modal":"true","aria-labelledby":"a11y-title",className:"fixed inset-0 z-[130] flex items-center justify-center p-4",style:{background:"rgba(3,2,8,0.78)",backdropFilter:"blur(8px)"},onClick:()=>a(!1),children:e.jsxs("div",{onClick:r=>r.stopPropagation(),className:"w-full max-w-md rounded-2xl border overflow-hidden",style:{background:"linear-gradient(180deg, #0a0812 0%, #060410 100%)",borderColor:`${o}44`},children:[e.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b",style:{borderColor:`${o}22`},children:[e.jsx("span",{id:"a11y-title",className:"font-orbitron font-bold text-sm tracking-[0.2em]",style:{color:o},children:"ACCESSIBILITY"}),e.jsx("button",{type:"button",onClick:()=>a(!1),"aria-label":"Close accessibility settings",className:"w-8 h-8 rounded-full border flex items-center justify-center",style:{borderColor:`${o}44`,color:o},children:e.jsx(D,{size:12,"aria-hidden":"true"})})]}),e.jsxs("div",{className:"p-4 flex flex-col gap-2",children:[e.jsx(ae,{icon:e.jsx(dt,{size:14,"aria-hidden":"true"}),label:"Reduced motion",description:"Disable scroll animations and era transitions.",checked:n.reduced_motion,onChange:r=>s({reduced_motion:r})}),e.jsx(ae,{icon:e.jsx($t,{size:14,"aria-hidden":"true"}),label:"High contrast",description:"Increase text contrast for better readability.",checked:n.high_contrast,onChange:r=>s({high_contrast:r})}),e.jsx(ae,{icon:e.jsx(Ht,{size:14,"aria-hidden":"true"}),label:"Captions",description:"Show captions on videos where available.",checked:n.captions_on,onChange:r=>s({captions_on:r})}),e.jsx(ae,{icon:e.jsx(Vt,{size:14,"aria-hidden":"true"}),label:"Ambient audio",description:"Play era-matched ambient beds on navigation.",checked:n.ambient_audio_on,onChange:r=>s({ambient_audio_on:r})})]})]})})]})}function ae({icon:t,label:a,description:n,checked:s,onChange:o}){const r="#c9a227";return e.jsxs("label",{className:"flex items-start gap-3 p-3 rounded-xl border cursor-pointer transition-colors hover:bg-white/[0.03]",style:{borderColor:`${r}22`},children:[e.jsx("span",{className:"w-8 h-8 rounded-full border flex items-center justify-center shrink-0",style:{borderColor:`${r}44`,color:r},children:t}),e.jsxs("span",{className:"flex-1",children:[e.jsx("span",{className:"block font-orbitron text-xs tracking-[0.18em] mb-1",style:{color:"rgba(240,235,224,0.92)"},children:a.toUpperCase()}),e.jsx("span",{className:"block font-rajdhani text-[12px] leading-snug",style:{color:"rgba(240,235,224,0.55)"},children:n})]}),e.jsx("button",{type:"button",role:"switch","aria-checked":s,"aria-label":a,onClick:l=>{l.preventDefault(),o(!s)},className:"relative shrink-0 w-10 h-6 rounded-full border transition-colors",style:{background:s?`${r}66`:"rgba(255,255,255,0.04)",borderColor:s?r:`${r}33`},children:e.jsx("span",{className:"absolute top-0.5 w-4 h-4 rounded-full transition-all",style:{left:s?20:2,background:s?r:"rgba(240,235,224,0.7)"},"aria-hidden":"true"})})]})}function se(){const t=document.scrollingElement??document.documentElement;t&&(t.scrollTop=0),document.body&&(document.body.scrollTop=0),window.scrollTo(0,0)}function va(t){const a=c.useRef(!0),n=c.useRef(null),s=c.useRef(null);c.useLayoutEffect(()=>(a.current&&("scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),a.current=!1),se(),n.current=requestAnimationFrame(()=>{se(),s.current=requestAnimationFrame(se)}),()=>{n.current!==null&&cancelAnimationFrame(n.current),s.current!==null&&cancelAnimationFrame(s.current)}),[t]),c.useEffect(()=>{const o=r=>{r.persisted&&se()};return window.addEventListener("pageshow",o),()=>window.removeEventListener("pageshow",o)},[])}function ja(){return c.useEffect(()=>{const a=()=>{const o=localStorage.getItem("theme"),r=window.matchMedia("(prefers-color-scheme: dark)").matches,l=o||(r?"dark":"light");document.documentElement.classList.toggle("dark",l==="dark"),localStorage.setItem("theme",l)};a();const n=window.matchMedia("(prefers-color-scheme: dark)"),s=()=>{localStorage.getItem("theme")||a()};
234return n.addEventListener("change",s),()=>n.removeEventListener("change",s)},[]),{setTheme:a=>{localStorage.setItem("theme",a),document.documentElement.classList.toggle("dark",a==="dark")}}}function Na(){c.useEffect(()=>{const t=n=>{console.log("Context menu blocked."),n.preventDefault()},a=n=>{if(n.ctrlKey||n.metaKey)switch(n.key.toLowerCase()){case"c":case"x":case"u":case"s":case"p":console.log(`Blocked shortcut: ${n.key.toUpperCase()}`),n.preventDefault();break}n.key==="F12"&&(console.log("Blocked F12 (Developer Tools)"),n.preventDefault())};return document.addEventListener("contextmenu",t),document.addEventListener("keydown",a),()=>{document.removeEventListener("contextmenu",t),document.removeEventListener("keydown",a)}},[])}const et="wv_session_id";function ka(){try{let t=sessionStorage.getItem(et);return t||(t=crypto.randomUUID(),sessionStorage.setItem(et,t)),t}catch{return""}}function wa(t){return t<=2500?"good":t<=4e3?"needs-improvement":"poor"}function Ta(t){return t<=.1?"good":t<=.25?"needs-improvement":"poor"}function Sa(t){return t<=200?"good":t<=500?"needs-improvement":"poor"}async function ge(t){var a;try{await P.from("web_vitals").insert({metric:t.name,value:t.value,rating:t.rating,path:window.location.pathname,navigation_type:((a=performance.getEntriesByType("navigation")[0])==null?void 0:a.type)??"navigate",user_agent:navigator.userAgent.
234slice(0,500),session_id:ka()})}catch{}}function Ea(t=!0){c.useEffect(()=>{if(!t||typeof PerformanceObserver>"u")return;const a=[];try{const n=new PerformanceObserver(s=>{const o=s.getEntries(),r=o[o.length-1],l=r.renderTime||r.loadTime||r.startTime;ge({name:"LCP",value:l,rating:wa(l)})});n.observe({type:"largest-contentful-paint",buffered:!0}),a.push(n)}catch{}try{let n=0;const s=new PerformanceObserver(r=>{for(const l of r.getEntries())l.hadRecentInput||(n+=l.value)});s.observe({type:"layout-shift",buffered:!0}),a.push(s);const o=()=>{ge({name:"CLS",value:n,rating:Ta(n)})};addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&o()},{once:!0})}catch{}try{const n=new PerformanceObserver(s=>{for(const o of s.getEntries())ge({name:"INP",value:o.duration,rating:Sa(o.duration)})});n.observe({type:"event",buffered:!0,durationThreshold:40}),a.push(n)}catch{}return()=>a.forEach(n=>n.disconnect())},[t])}const ye=new Map,ve=new Map;let tt=!1;function Ca(t){let a=0;for(let n=0;n<t.length;n++)a=a*31+t.charCodeAt(n)|0;return Math.abs(a)%100}function Ra(){try{let t=localStorage.getItem("ff_bucket_id");return t||(t=crypto.randomUUID(),localStorage.setItem("ff_bucket_id",t)),t}catch{return"anon"}}function Aa(t){return!t||!t.enabled?!1:t.rollout_percentage>=100?!0:t.rollout_percentage<=0?!1:Ca(Ra())<t.rollout_percentage}async function Nt(t){var s;const{data:a}=await P.from("feature_flags").select("enabled, rollout_percentage").eq("key",t).maybeSingle(),n=a??{enabled:!1,rollout_percentage:0};ye.set(t,n),(s=ve.get(t))==null||s.forEach(o=>o(n))}function Ia(){tt||(tt=!0,P.channel("feature_flags_changes").on("postgres_changes",{event:"*",schema:"public",table:"feature_flags"},t=>{const a=t.new??t.old;a!=null&&a.key&&Nt(a.key)}).subscribe())}function _a(t,a=!1){const[n,s]=c.useState(ye.get(t));return c.useEffect(()=>{let o=!0;const r=ve.get(t)??new Set,l=i=>{o&&s(i)};return r.add(l),ve.set(t,r),ye.has(t)||Nt(t),Ia(),()=>{o=!1,r.delete(l)}},[t]),n?Aa(n):a}function Ma({getAnalyser:t,isActive:a}){const n=c.useRef(null),s=c.useRef(0),o=c.useCallback(()=>{const r=n.current;if(!r)return;const l=r.getContext("2d");if(!l)return;const i=t(),m=r.width,u=r.height;if(l.clearRect(0,0,m,u),!i||!a){const k=l.createLinearGradient(0,0,m,0);k.addColorStop(0,"rgba(34,211,238,0.15)"),k.addColorStop(1,"rgba(168,85,247,0.15)"),l.fillStyle=k,l.fillRect(0,u/2-1,m,2);return}const x=i.frequencyBinCount,p=new Uint8Array(x);i.getByteFrequencyData(p);const N=m/x;for(let k=0;k<x;k++){const T=p[k]/255*u,v=k/x,h=Math.round(34+134*v),w=Math.round(211+-126*v),S=Math.round(238+9*v);l.fillStyle=`rgb(${h},${w},${S})`,l.fillRect(k*N,u-T,N-1,T)}},[t,a]);return c.useEffect(()=>{const r=()=>{o(),s.current=requestAnimationFrame(r)};return s.current=requestAnimationFrame(r),()=>cancelAnimationFrame(s.current)},[o]),e.jsx("canvas",{ref:n,width:460,height:80,className:"w-full rounded-lg",style:{background:"rgba(0,0,0,0.4)",border:"1px solid rgba(255,255,255,0.06)"},"aria-label":"Frequency spectrum meter","aria-hidden":"true"})}function Oa({track:t,trackIndex:a,currentStep:n,isPlaying:s,onToggleStep:o,onTriggerLive:r}){return e.jsxs("div",{className:"flex items-center gap-2 py-0.5",children:[e.jsx(A.button,{whileTap:{scale:.9},onClick:r,className:"w-16 shrink-0 text-left font-mono text-xs tracking-widest uppercase truncate px-1.5 py-1 rounded transition-colors",style:{color:t.muted?"rgba(255,255,255,0.2)":"rgba(255,255,255,0.6)"},"aria-label":`Trigger ${t.name} live`,title:t.name,children:t.name}),e.jsx("div",{className:"flex gap-0.5 flex-1",children:t.steps.map((l,i)=>{const m=s&&n===i,u=i%4===0;return e.jsx(A.button,{whileTap:{scale:.85},onClick:()=>o(i),className:["flex-1 h-6 rounded-sm transition-all focus:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400",l.active?"bg-purple-500":u?"bg-white/10":"bg-white/5",m?"ring-2 ring-cyan-400":""].join(" "),"aria-pressed":l.active,"aria-label":`Step ${i+1} for ${t.name}`},i)})})]})}function Pa({pattern:t,currentStep:a,isPlaying:n,onToggleStep:s,onTriggerLive:o}){return e.jsxs("div",{className:"space-y-0.5",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-0.5",children:[e.jsx("div",{className:"w-16 shrink-0"}),e.jsx("div",{className:"flex gap-0.5 flex-1",children:Array.from({length:16},(r,l)=>e.jsx("div",{className:`flex-1 text-center font-mono text-xs leading-none ${l%4===0?"text-cyan-400/70":"text-white/20"}`,children:l%4===0?Math.floor(l/4)+1:"·"},l))})]}),t.tracks.map((r,l)=>e.jsx(Oa,{track:r,trackIndex:l,currentStep:a,isPlaying:n,onToggleStep:i=>s(l,i),onTriggerLive:()=>
234o(r.sampleKey,r.volume)},r.id))]})}const La=120,kt=16,Da=8,za=8,J=["A","B","C","D","E","F","G","H"],Fa="qfreaq_patterns",Ba="qfreaq_recordings",Ua=5,$a=["Kick","Snare","HH Closed","HH Open","Clap","Bass","Lead","FX"],Ha=["kick","snare","hh_closed","hh_open","clap","bass","lead","fx"];function Va(t){return{id:`track-${t}`,name:$a[t],steps:Array.from({length:kt},()=>({active:!1})),volume:.8,muted:!1,soloed:!1,sampleKey:Ha[t]}}function Wa(t){return{id:`pattern-${t}`,label:J[t],tracks:Array.from({length:Da},(a,n)=>Va(n)),bpm:La,swing:0}}const wt=Array.from({length:za},(t,a)=>Wa(a));function Ga({isPlaying:t,isRecording:a,bpm:n,swing:s,activePatternIndex:o,onPlayStop:r,onRecord:l,onBpmChange:i,onSwingChange:m,onPatternSelect:u}){return e.jsxs("div",{className:"flex flex-wrap items-center gap-3 py-2",children:[e.jsx(A.button,{whileTap:{scale:.9},onClick:r,className:`w-9 h-9 rounded-full flex items-center justify-center border-2 transition-all focus:outline-none focus-visible:ring-2 focus-visible:ring-cyan-400 ${t?"border-red-400 bg-red-400/10 text-red-400":"border-cyan-400/60 bg-cyan-400/10 text-cyan-400"}`,"aria-label":t?"Stop":"Play",children:t?e.jsx(Wt,{size:13,fill:"currentColor"}):e.jsx(Se,{size:13,fill:"currentColor"})}),e.jsx(A.button,{whileTap:{scale:.9},onClick:l,className:`w-8 h-8 rounded-full flex items-center justify-center border transition-all focus:outline-none focus-visible:ring-2 focus-visible:ring-red-400 ${a?"border-red-500 bg-red-500/20 text-red-400":"border-white/20 text-white/40"}`,"aria-label":a?"Stop recording":"Start recording",children:a?e.jsx(A.div,{animate:{opacity:[1,.3,1]},transition:{duration:.8,repeat:1/0},children:e.jsx(Gt,{size:12})}):e.jsx(Z,{size:12})}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{className:"w-5 h-5 flex items-center justify-center rounded text-white/50 hover:text-white border border-white/10 text-xs leading-none",onClick:()=>i(n-1),"aria-label":"BPM minus",children:"−"}),e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("input",{type:"number",min:60,max:200,value:n,onChange:x=>i(Number(x.target.value)),className:"w-12 text-center bg-transparent font-mono text-sm font-bold text-cyan-400 outline-none focus-visible:ring-1 focus-visible:ring-cyan-400 rounded","aria-label":"BPM"}),e.jsx("span",{className:"font-mono text-xs tracking-widest text-white/30",children:"BPM"})]}),e.jsx("button",{className:"w-5 h-5 flex items-center justify-center rounded text-white/50 hover:text-white border border-white/10 text-xs leading-none",onClick:()=>i(n+1),"aria-label":"BPM plus",children:"+"})]}),e.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-[80px]",children:[e.jsx("span",{className:"font-mono text-xs tracking-widest uppercase text-white/30 shrink-0",children:"SW"}),e.jsx("input",{type:"range",min:0,max:100,value:s,onChange:x=>m(Number(x.target.value)),className:"flex-1 h-1 rounded",style:{accentColor:"#a855f7"},"aria-label":"Swing"}),e.jsx("span",{className:"font-mono text-xs text-purple-400 w-6 text-right",children:s})]}),e.jsx("div",{className:"flex items-center gap-0.5",children:J.map((x,p)=>e.jsx("button",{onClick:()=>u(p),className:`w-6 h-6 rounded font-mono text-xs font-bold transition-all border ${o===p?"bg-purple-500/30 border-purple-400 text-purple-300":"bg-white/5 border-white/10 text-white/30 hover:text-white/60"}`,"aria-pressed":o===p,"aria-label":`Pattern ${x}`,children:x},x))})]})}function qa({tracks:t,patternIndex:a,onVolumeChange:n,onMuteToggle:s,onSoloToggle:o}){const r=t.some(l=>l.soloed);return e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("p",{className:"font-mono text-xs tracking-widest uppercase text-white/30 pb-1",children:"MIXER"}),t.map((l,i)=>e.jsxs("div",{className:"flex items-center gap-2",style:{opacity:r&&!l.soloed?.35:1},children:[e.jsx("span",{className:"font-mono text-xs w-16 shrink-0 truncate",style:{color:l.muted?"rgba(255,255,255,0.2)":"rgba(255,255,255,0.55)"},children:l.name}),e.jsx("input",{type:"range",min:0,max:1,step:.01,value:l.volume,onChange:m=>n(i,Number(m.target.value)),className:"flex-1 h-1 rounded",style:{accentColor:"#22d3ee"},"aria-label":`${l.name} volume`}),e.jsx("span",{className:"font-mono text-xs text-white/30 w-6 text-right",children:Math.round(l.volume*100)}),e.jsx("button",{onClick:()=>s(i),className:`w-6 h-6 rounded font-mono text-xs font-bold border transition-all ${l.muted?"bg-red-500/20 border-red-400/50 text-red-400":"bg-white/5 border-white/10 text-white/30 hover:text-white/60"}`,"aria-pressed":l.muted,"aria-label":`Mute ${l.name}`,children:"M"}),e.jsx("button",{onClick:()=>o(i),className:`w-6 h-6 rounded font-mono text-xs font-bold border transition-all ${l.soloed?"bg-yellow-500/20 border-yellow-400/50 text-yellow-300":"bg-white/5 border-white/10 text-white/30 hover:text-white/60"}`,"aria-pressed":l.soloed,"aria-label":`Solo ${l.name}`,children:"S"})]},l.id))]})}function Ya({patterns:t,activePatternIndex:a,onSelect:n,onReset:s}){return e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"font-mono text-xs tracking-widest uppercase text-white/30",children:"PATTERNS"}),e.jsx("div",{className:"grid grid-cols-4 gap-1.5",children:t.map((o,r)=>
234{const l=o.tracks.reduce((i,m)=>i+m.steps.filter(u=>u.active).length,0);return e.jsxs("div",{className:`rounded-lg border p-2 cursor-pointer transition-all ${a===r?"border-purple-400/60 bg-purple-500/10":"border-white/10 bg-white/5 hover:border-white/20"}`,onClick:()=>n(r),role:"button",tabIndex:0,onKeyDown:i=>{(i.key==="Enter"||i.key===" ")&&n(r)},"aria-pressed":a===r,"aria-label":`Pattern ${J[r]}`,children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsx("span",{className:`font-mono text-sm font-bold ${a===r?"text-purple-300":"text-white/50"}`,children:J[r]}),e.jsx("button",{onClick:i=>{i.stopPropagation(),s(r)},className:"text-white/20 hover:text-red-400 transition-colors","aria-label":`Reset pattern ${J[r]}`,children:e.jsx(qt,{size:9})})]}),e.jsxs("div",{className:"font-mono text-xs text-white/25",children:[l," steps"]}),e.jsxs("div",{className:"font-mono text-xs text-white/25",children:[o.bpm," BPM"]})]},o.id)})})]})}function Ka({isRecording:t,recordings:a,onStart:n,onStop:s,onDownload:o,onRemove:r}){return e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{className:"font-mono text-xs tracking-widest uppercase text-white/30",children:"RECORDER"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs(A.button,{whileTap:{scale:.9},onClick:t?s:n,className:`flex items-center gap-2 px-4 py-2 rounded-lg border font-mono text-xs tracking-widest transition-all ${t?"border-red-400/60 bg-red-500/15 text-red-400":"border-white/20 bg-white/5 text-white/50 hover:text-white/80"}`,"aria-label":t?"Stop recording":"Start recording",children:[t?e.jsx(A.div,{animate:{opacity:[1,.3,1]},transition:{duration:.8,repeat:1/0},children:e.jsx(Z,{size:11})}):e.jsx(Z,{size:11}),t?"RECORDING...":"REC"]}),t&&e.jsx("div",{className:"flex gap-0.5",children:Array.from({length:5}).map((l,i)=>e.jsx(A.div,{className:"w-1 bg-red-400 rounded-full",animate:{height:[4,16+i*3,4]},transition:{duration:.4+i*.1,repeat:1/0,delay:i*.08}},i))})]}),a.length>0&&e.jsxs("div",{className:"space-y-1.5",children:[e.jsxs("p",{className:"font-mono text-xs tracking-widest text-white/25",children:["SAVED (",a.length,"/3)"]}),a.map(l=>e.jsxs("div",{className:"flex items-center gap-2 rounded-lg border border-white/8 bg-white/5 px-3 py-2",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"font-mono text-xs text-white/60 truncate",children:new Date(l.timestamp).toLocaleTimeString()}),e.jsxs("p",{className:"font-mono text-xs text-white/30",children:[(l.durationMs/1e3).toFixed(1),"s"]})]}),e.jsx("button",{onClick:()=>o(l),className:"text-white/30 hover:text-cyan-400 transition-colors p-1","aria-label":"Download recording",children:e.jsx(Yt,{size:12})}),e.jsx("button",{onClick:()=>r(l.id),className:"text-white/30 hover:text-red-400 transition-colors p-1","aria-label":"Delete recording",children:e.jsx(ut,{size:11})})]},l.id))]}),a.length===0&&!t&&e.jsx("p",{className:"font-mono text-xs text-white/20 text-center py-4",children:"No recordings yet"})]})}function Qa(t,a,n,s){const o=t.createOscillator(),r=t.createGain();o.connect(r),r.connect(a),o.type="sine",o.frequency.setValueAtTime(160,n),o.frequency.exponentialRampToValueAtTime(50,n+.12),r.gain.setValueAtTime(s,n),r.gain.exponentialRampToValueAtTime(.001,n+.45),o.start(n),o.stop(n+.46)}function Xa(t,a,n,s){const o=t.createBufferSource(),r=Math.floor(t.sampleRate*.2),l=t.createBuffer(1,r,t.sampleRate),i=l.getChannelData(0);for(let N=0;N<r;N++)i[N]=Math.random()*2-1;o.buffer=l;const m=t.createGain(),u=t.createBiquadFilter();u.type="bandpass",u.frequency.value=1800,u.Q.value=.5,o.connect(u),u.connect(m),m.connect(a),m.gain.setValueAtTime(s*.6,n),m.gain.exponentialRampToValueAtTime(.001,n+.18),o.start(n),o.stop(n+.19);const x=t.createOscillator(),p=t.createGain();x.type="triangle",x.frequency.setValueAtTime(200,n),x.connect(p),p.connect(a),p.gain.setValueAtTime(s*.4,n),p.gain.exponentialRampToValueAtTime(.001,n+.1),x.start(n),x.stop(n+.11)}function je(t,a,n,s,o,r,l){const i=t.createBufferSource(),m=Math.floor(t.sampleRate*o*1.2),u=t.createBuffer(1,m,t.sampleRate),x=u.getChannelData(0);for(let k=0;k<m;k++)x[k]=Math.random()*2-1;i.buffer=u;const p=t.createBiquadFilter();p.type="highpass",p.frequency.value=r,p.Q.value=l;const N=t.createGain();
234i.connect(p),p.connect(N),N.connect(a),N.gain.setValueAtTime(s*.7,n),N.gain.exponentialRampToValueAtTime(.001,n+o),i.start(n),i.stop(n+o+.01)}function Ja(t,a,n,s){[0,.015,.03].forEach(o=>{je(t,a,n+o,s*.6,.08,1e3,1.5)})}function Za(t,a,n,s){const o=t.createOscillator(),r=t.createGain();o.type="sine",o.frequency.value=80,o.connect(r),r.connect(a),r.gain.setValueAtTime(s*.9,n),r.gain.exponentialRampToValueAtTime(.001,n+.35),o.start(n),o.stop(n+.36)}function es(t,a,n,s){const o=t.createOscillator(),r=t.createGain();o.type="square",o.frequency.value=440,o.connect(r),r.connect(a),r.gain.setValueAtTime(s*.3,n),r.gain.exponentialRampToValueAtTime(.001,n+.25),o.start(n),o.stop(n+.26)}function ts(t,a,n,s){const o=t.createOscillator(),r=t.createBiquadFilter(),l=t.createGain();o.type="sawtooth",o.frequency.setValueAtTime(800,n),o.frequency.exponentialRampToValueAtTime(200,n+.3),r.type="lowpass",r.frequency.setValueAtTime(3e3,n),r.frequency.exponentialRampToValueAtTime(500,n+.3),o.connect(r),r.connect(l),l.connect(a),l.gain.setValueAtTime(s*.4,n),l.gain.exponentialRampToValueAtTime(.001,n+.3),o.start(n),o.stop(n+.31)}const rs={kick:Qa,snare:Xa,hh_closed:(t,a,n,s)=>je(t,a,n,s,.04,8e3,2),hh_open:(t,a,n,s)=>je(t,a,n,s,.28,6e3,1),clap:Ja,bass:Za,lead:es,fx:ts},rt=25,as=.1;function ss(){const t=c.useRef(null),a=c.useRef(null),n=c.useRef(null),s=c.useRef([]),o=c.useRef(Array(8).fill(!1)),r=c.useRef(null),l=c.useRef(0),i=c.useRef(0),m=c.useRef(null),u=c.useRef(120),x=c.useRef(16),p=c.useRef(0),N=c.useCallback(()=>{if(!t.current||t.current.state==="closed"){const b=new AudioContext({latencyHint:"interactive"}),g=b.createGain();g.gain.value=.8;const y=b.createAnalyser();y.fftSize=256,g.connect(y),y.connect(b.destination),t.current=b,a.current=g,n.current=y,s.current=Array.from({length:8},()=>{const R=b.createGain();return R.connect(g),R})}return t.current.state==="suspended"&&t.current.resume(),t.current},[]),k=c.useCallback((b,g,y)=>{const R=N(),M=y??R.currentTime,O=["kick","snare","hh_closed","hh_open","clap","bass","lead","fx"].indexOf(b),W=s.current[O]??a.current,Y=o.current[O]?R.createGain():W,$=rs[b];$&&$(R,Y,M,g)},[N]),T=c.useCallback(b=>{const g=60/u.current/4,y=p.current/100;return y>0&&b%2===1?g*(1+y*.5):y>0&&b%2===0&&b>0?g*(1-y*.5):g},[]),v=c.useCallback(()=>{var g;const b=t.current;if(b){for(;l.current<b.currentTime+as;)(g=m.current)==null||g.call(m,i.current,l.current),l.current+=T(i.current),i.current=(i.current+1)%x.current;r.current=setTimeout(v,rt)}},[T]),h=c.useCallback((b,g,y,R)=>{const M=N();u.current=g,x.current=y,p.current=R,m.current=b,l.current=M.currentTime+.05,i.current=0,r.current&&clearTimeout(r.current),r.current=setTimeout(v,rt)},[N,v]),w=c.useCallback(()=>{r.current&&clearTimeout(r.current),r.current=null,m.current=null,i.current=0},[]),S=c.useCallback((b,g)=>{const y=t.current;if(!y)return;const R=s.current[b];R&&R.gain.setTargetAtTime(g,y.currentTime,.01)},[]),d=c.useCallback((b,g)=>{o.current[b]=g;const y=t.current;if(!y)return;const R=s.current[b];R&&R.gain.setTargetAtTime(g?0:.8,y.currentTime,.01)},[]),f=c.useCallback(()=>n.current,[]);return c.useEffect(()=>()=>{var b;r.current&&clearTimeout(r.current),(b=t.current)==null||b.close()},[]),{triggerSound:k,startTransport:h,stopTransport:w,setTrackVolume:S,setTrackMute:d,getAnalyser:f,ensureContext:N}}function ns(t){const[a,n]=c.useState(!1),[s,o]=c.useState(-1),r=c.useRef(null),l=c.useRef(120),i=c.useRef(0),m=c.useCallback(v=>{r.current=v},[]),u=c.useCallback(v=>{l.current=v},[]),x=c.useCallback(v=>{i.current=v},[]),p=c.useCallback((v,h)=>{o(v);const w=r.current;if(!w)return;const S=w.tracks.some(d=>d.soloed);w.tracks.forEach(d=>{if(d.muted||S&&!d.soloed)return;const f=d.steps[v];f!=null&&f.active&&t.triggerSound(d.sampleKey,d.volume,h)})},[t]),N=c.useCallback(v=>{r.current=v,l.current=v.bpm,i.current=v.swing,t.startTransport(p,v.bpm,16,v.swing),n(!0),o(0)},[t,p]),k=c.useCallback(()=>{t.stopTransport(),n(!1),o(-1)},[t]),T=c.useCallback((v,h)=>{t.ensureContext(),t.triggerSound(v,h)},[t]);return{isPlaying:a,currentStep:s,play:N,stop:k,setPattern:m,setBpm:u,setSwing:x,triggerLive:T}}
234function Ne(t,a){const[n,s]=c.useState(()=>{try{const r=window.localStorage.getItem(t);return r!==null?JSON.parse(r):a}catch{return a}}),o=c.useCallback(r=>{s(l=>{const i=typeof r=="function"?r(l):r;try{window.localStorage.setItem(t,JSON.stringify(i))}catch{console.warn("[QuantumFreaq] localStorage write failed for key:",t)}return i})},[t]);return[n,o]}function at(t){return!Array.isArray(t)||t.length!==8?wt:t}function os(){const[t,a]=Ne(Fa,wt),[n,s]=Ne("qfreaq_active_pattern",0),o=at(t),r=o[n]??o[0],l=c.useCallback((T,v)=>{a(h=>at(h).map((S,d)=>d===T?v(S):S))},[a]),i=c.useCallback((T,v,h)=>{l(T,w=>({...w,tracks:w.tracks.map((S,d)=>d!==v?S:{...S,steps:S.steps.map((f,b)=>b!==h?f:{active:!f.active})})}))},[l]),m=c.useCallback((T,v,h)=>{l(T,w=>({...w,tracks:w.tracks.map((S,d)=>d!==v?S:{...S,volume:h})}))},[l]),u=c.useCallback((T,v,h)=>{l(T,w=>({...w,tracks:w.tracks.map((S,d)=>d!==v?S:{...S,muted:h})}))},[l]),x=c.useCallback((T,v,h)=>{l(T,w=>({...w,tracks:w.tracks.map((S,d)=>d!==v?S:{...S,soloed:h})}))},[l]),p=c.useCallback((T,v)=>{l(T,h=>({...h,bpm:Math.min(200,Math.max(60,v))}))},[l]),N=c.useCallback((T,v)=>{l(T,h=>({...h,swing:Math.min(100,Math.max(0,v))}))},[l]),k=c.useCallback(T=>{l(T,v=>({...v,tracks:v.tracks.map(h=>({...h,steps:Array.from({length:kt},()=>({active:!1}))}))}))},[l]);return{patterns:o,activePatternIndex:n,activePattern:r,setActivePattern:s,updatePattern:l,toggleStep:i,setTrackVolume:m,setTrackMute:u,setTrackSolo:x,setBpm:p,setSwing:N,resetPattern:k}}function ls(){const[t,a]=c.useState(!1),[n,s]=Ne(Ba,[]),o=c.useRef(null),r=c.useRef([]),l=c.useRef(0),i=c.useCallback(async()=>{try{const p=await navigator.mediaDevices.getUserMedia({audio:!0}),N=new MediaRecorder(p,{mimeType:"audio/webm"});o.current=N,r.current=[],N.ondataavailable=k=>{k.data.size>0&&r.current.push(k.data)},N.onstop=()=>{const k=new Blob(r.current,{type:"audio/webm"}),T=Date.now()-l.current,v=new FileReader;v.onload=()=>{const h=v.result,w=h.length/1024/1024;if(w>Ua){console.warn("[QuantumFreaq] Recording too large to persist to localStorage:",w.toFixed(1),"MB");return}s(S=>[{id:`rec-${Date.now()}`,timestamp:Date.now(),durationMs:T,dataUrl:h},...S].slice(0,3))},v.readAsDataURL(k),p.getTracks().forEach(h=>h.stop())},N.start(),l.current=Date.now(),a(!0)}catch(p){console.error("[QuantumFreaq] Recorder start failed:",p)}},[s]),m=c.useCallback(()=>{var p;(p=o.current)==null||p.stop(),a(!1)},[]),u=c.useCallback(p=>{const N=document.createElement("a");N.href=p.dataUrl,N.download=`qfreaq-${new Date(p.timestamp).toISOString().slice(0,19).replace(/:/g,"-")}.webm`,N.click()},[]),x=c.useCallback(p=>{s(N=>N.filter(k=>k.id!==p))},[s]);return{isRecording:t,recordings:n,start:i,stop:m,download:u,remove:x}}const is=[{id:"sequencer",label:"SEQ"},{id:"mixer",label:"MIX"},{id:"patterns",label:"PAT"},{id:"recorder",label:"REC"}];function cs(){const[t,a]=c.useState(!1),[n,s]=c.useState("sequencer"),o=c.useRef(null),r=ss(),l=ns(r),i=os(),m=ls();c.useEffect(()=>{l.setPattern(i.activePattern),l.setBpm(i.activePattern.bpm),l.setSwing(i.activePattern.swing)},[i.activePattern]);const u=c.useCallback(()=>{r.ensureContext(),l.isPlaying?l.stop():l.play(i.activePattern)},[r,l,i.activePattern]),x=c.useCallback(h=>{l.isPlaying&&l.stop(),i.setActivePattern(h)},[l,i]),p=c.useCallback(h=>{i.setBpm(i.activePatternIndex,h),l.setBpm(h)},[i,l]),N=c.useCallback(h=>{i.setSwing(i.activePatternIndex,h),l.setSwing(h)},[i,l]),k=c.useCallback((h,w)=>{i.setTrackVolume(i.activePatternIndex,h,w),r.setTrackVolume(h,w)},[i,r]),T=c.useCallback(h=>{const S=!i.activePattern.tracks[h].muted;i.setTrackMute(i.activePatternIndex,h,S),r.setTrackMute(h,S)},[i,r]),v=c.useCallback(h=>{const w=i.activePattern.tracks[h];i.setTrackSolo(i.activePatternIndex,h,!w.soloed)},[i]);return e.jsxs(e.Fragment,{children:[e.jsx("div",{ref:o,className:"fixed inset-0 pointer-events-none z-[9998]","aria-hidden":"true"}),e.jsx(H,{children:t&&e.jsxs(A.div,{drag:!0,dragConstraints:o,dragElastic:.05,initial:{opacity:0,scale:.85,y:30},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.85,y:30},transition:{type:"spring",damping:22,stiffness:300},className:"fixed bottom-24 right-6 z-[9999] w-[480px] max-w-[calc(100vw-24px)] rounded-2xl border border-white/10 overflow-hidden select-none",style:{background:"rgba(0,0,0,0.92)",backdropFilter:"blur(20px)"},role:"dialog","aria-label":"QUANTUM FREAQ beat maker",children:[e.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-white/8 cursor-move",style:{background:"rgba(255,255,255,0.03)"},children:[e.jsx("span",{className:"font-orbitron font-black text-sm tracking-widest text-transparent bg-clip-text bg-gradient-to-r from-cyan-400 to-purple-500",children:"QUANTUM FREAQ"}),e.jsx("div",{className:"flex items-center gap-1",children:e.jsx("button",{onClick:()=>a(!1),className:"w-6 h-6 rounded flex items-center justify-center text-white/30 hover:text-white/70 transition-colors","aria-label":"Minimize QUANTUM FREAQ",children:e.jsx(Kt,{size:12})})})]}),e.jsx("div",{className:"px-3 pt-3",children:e.jsx(Ma,{getAnalyser:r.getAnalyser,isActive:l.isPlaying})}),e.jsx("div",{className:"px-3",children:e.jsx(Ga,{isPlaying:l.isPlaying,isRecording:m.isRecording,bpm:i.activePattern.bpm,swing:i.activePattern.swing,activePatternIndex:i.activePatternIndex,onPlayStop:u,onRecord:m.isRecording?m.stop:m.start,onBpmChange:p,onSwingChange:N,onPatternSelect:x})}),e.jsx("div",{className:"flex border-b border-white/8 px-3",children:is.map(h=>e.jsx("button",{onClick:()=>s(h.id),className:`px-3 py-2 font-mono text-xs tracking-widest uppercase border-b-2 transition-all ${n===h.id?"border-cyan-400 text-cyan-400":"border-transparent text-white/30 hover:text-white/60"}`,children:h.label},h.id))}),e.jsxs("div",{className:"px-3 py-3 overflow-y-auto",style:{maxHeight:280,minHeight:200},children:[n==="sequencer"&&e.jsx(Pa,{pattern:i.activePattern,currentStep:l.currentStep,isPlaying:l.isPlaying,onToggleStep:(h,w)=>i.toggleStep(i.activePatternIndex,h,w),onTriggerLive:l.triggerLive}),n==="mixer"&&e.jsx(qa,{tracks:i.activePattern.tracks,patternIndex:i.activePatternIndex,onVolumeChange:k,onMuteToggle:T,onSoloToggle:v}),n==="patterns"&&e.jsx(Ya,{patterns:i.patterns,activePatternIndex:i.activePatternIndex,onSelect:x,onReset:h=>i.resetPattern(h)}),n==="recorder"&&e.jsx(Ka,{isRecording:m.isRecording,recordings:m.recordings,onStart:m.start,onStop:m.stop,onDownload:m.download,onRemove:m.remove})]})]})})]})}function ds({onNavigate:t}){const[a,n]=c.useState(!1),[s,o]=c.useState(!0);c.useEffect(()=>{document.title="Channel Open — Professor Clock";const l=new URLSearchParams(window.location.search),i=l.get("email")||l.get("address");i&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i)?P.from("transmissions_subscribers").upsert({email:i.trim().toLowerCase(),source:"brevo_confirmation"},{onConflict:"email"}).then(()=>{n(!0),o(!1)}).catch(()=>{n(!0),o(!1)}):(n(!0),o(!1))},[]);const r=[{label:"LISTEN TO QUANTUMFORWARD",description:"The 15th and final volume of the NAOPC series. 21 tracks. 78 minutes.",icon:lt,page:"quantumforward"},{label:"TIME TRAVELER'S DIGEST",description:"Companion narratives and dispatches from the timeline.",icon:Te,page:"newspaper"},{label:"RECOGNITION FREQUENCY",description:"The podcast. Sessions, interviews, and council transmissions.",icon:ct,page:"podcast"}];return e.jsxs("div",{className:"fixed inset-0 flex flex-col items-center justify-center overflow-y-auto",style:{background:"#03020a"},children:[e.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:"radial-gradient(ellipse 70% 70% at 50% 50%, rgba(201,162,39,0.08) 0%, transparent 65%)"},"aria-hidden":"true"}),e.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:"linear-gradient(rgba(201,162,39,1) 1px, transparent 1px), linear-gradient(90deg, rgba(201,162,39,1) 1px, transparent 1px)",backgroundSize:"80px 80px",opacity:.018},"aria-hidden":"true"}),e.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:["linear-gradient(to top, rgba(3,2,10,0.95) 0%, transparent 40%)","linear-gradient(to bottom, rgba(3,2,10,0.95) 0%, transparent 40%)"].join(", ")},"aria-hidden":"true"}),e.jsx("div",{className:"absolute pointer-events-none",style:{width:"clamp(280px, 60vw, 560px)",height:"clamp(280px, 60vw, 560px)",borderRadius:"50%",border:"1px solid rgba(201,162,39,0.06)",animation:"confirmedRing 4s ease-in-out infinite"},"aria-hidden":"true"}),e.jsx("div",{className:"absolute pointer-events-none",style:{width:"clamp(200px, 45vw, 420px)",height:"clamp(200px, 45vw, 420px)",borderRadius:"50%",border:"1px solid rgba(201,162,39,0.1)",animation:"confirmedRing 4s ease-in-out infinite 0.8s"},"aria-hidden":"true"}),e.jsxs("div",{className:"relative z-10 w-full max-w-xl px-6 py-16 text-center",children:[e.jsx("div",{className:"flex justify-center mb-8",children:e.jsx("div",{className:"w-20 h-20 rounded-2xl flex items-center justify-center",style:{background:"rgba(201,162,39,0.1)",border:"1px solid rgba(201,162,39,0.3)",boxShadow:"0 0 50px rgba(201,162,39,0.2)",animation:"confirmedPulse 2.5s ease-in-out infinite"},children:s?e.jsx(ke,{size:28,className:"animate-spin",style:{color:"#c9a227"}}):e.jsx(we,{size:32,style:{color:"#c9a227"}})})}
234),e.jsx("p",{className:"font-mono text-xs tracking-[0.7em] mb-5",style:{color:"rgba(201,162,39,0.5)"},children:"TRANSMISSION CONFIRMED"}),e.jsx("h1",{className:"font-orbitron font-black leading-tight mb-5",style:{fontSize:"clamp(1.8rem, 5.5vw, 2.8rem)",background:"linear-gradient(150deg, #ffffff 0%, #f2e08a 35%, #c9a227 75%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"CHANNEL OPEN"}),e.jsx("p",{className:"font-rajdhani text-lg mb-2 max-w-md mx-auto",style:{color:"rgba(240,235,224,0.65)",lineHeight:"1.6",fontSize:"clamp(1rem, 2.5vw, 1.15rem)"},children:"You are now receiving. Direct dispatches from ProfessorClock — music drops, session notes, unreleased frequencies, and council transmissions — bypassing the algorithm entirely."}),e.jsx("p",{className:"font-mono text-xs tracking-[0.5em] mb-12",style:{color:"rgba(201,162,39,0.55)"},children:"Not listeners. Receivers."}),e.jsxs("div",{className:"space-y-3 mb-10",children:[e.jsx("p",{className:"font-mono text-xs tracking-[0.45em] mb-4",style:{color:"rgba(201,162,39,0.4)"},children:"WHILE YOU'RE HERE"}),r.map(l=>e.jsxs("button",{onClick:()=>t(l.page),className:"group w-full flex items-center gap-4 p-4 rounded-xl text-left transition-all duration-200",style:{background:"rgba(255,255,255,0.03)",border:"1px solid rgba(201,162,39,0.12)"},onMouseEnter:i=>{i.currentTarget.style.background="rgba(201,162,39,0.06)",i.currentTarget.style.borderColor="rgba(201,162,39,0.3)"},onMouseLeave:i=>{i.currentTarget.style.background="rgba(255,255,255,0.03)",i.currentTarget.style.borderColor="rgba(201,162,39,0.12)"},children:[e.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center flex-shrink-0",style:{background:"rgba(201,162,39,0.1)",border:"1px solid rgba(201,162,39,0.15)"},children:e.jsx(l.icon,{size:16,style:{color:"#c9a227"}})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"font-orbitron font-bold text-xs tracking-[0.15em] mb-0.5",style:{color:"rgba(240,235,224,0.9)"},children:l.label}),e.jsx("p",{className:"font-rajdhani text-sm",style:{color:"rgba(240,235,224,0.4)"},children:l.description})]}),e.jsx(B,{size:14,className:"flex-shrink-0 transition-transform duration-200 group-hover:translate-x-1",style:{color:"rgba(201,162,39,0.4)"}})]},l.page))]}),e.jsxs("p",{className:"font-mono text-xs tracking-[0.35em] mb-8",style:{color:"rgba(240,235,224,0.2)"},children:["ALSO AVAILABLE ON"," ",e.jsxs("a",{href:"https://professorclock.substack.com",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 transition-colors duration-200 underline underline-offset-2 decoration-dotted",style:{color:"rgba(201,162,39,0.4)"},onMouseEnter:l=>{l.currentTarget.style.color="#c9a227"},onMouseLeave:l=>{l.currentTarget.style.color="rgba(201,162,39,0.4)"},children:["SUBSTACK",e.jsx(U,{size:9})]})]}),e.jsx("button",{onClick:()=>t("home"),className:"font-mono text-xs tracking-[0.4em] transition-colors duration-200",style:{color:"rgba(201,162,39,0.45)"},onMouseEnter:l=>{l.currentTarget.style.color="#c9a227"},onMouseLeave:l=>{l.currentTarget.style.color="rgba(201,162,39,0.45)"},children:"RETURN TO SIGNAL"}),e.jsxs("div",{className:"mt-12 flex items-center justify-center gap-4",children:[e.jsx("div",{className:"h-px flex-1 max-w-[60px]",style:{background:"linear-gradient(to right, transparent, rgba(201,162,39,0.25))"}}),e.jsx("span",{className:"font-mono text-xs tracking-[0.5em]",style:{color:"rgba(201,162,39,0.3)"},children:"PROFESSORCLOCK · CHANNEL ACTIVE"}),e.jsx("div",{className:"h-px flex-1 max-w-[60px]",style:{background:"linear-gradient(to left, transparent, rgba(201,162,39,0.25))"}})]})]}),e.jsx("style",{children:`
235        @keyframes confirmedRing {
236          0%, 100% { transform: scale(1); opacity: 0.5; }
237          50%       { transform: scale(1.04); opacity: 1; }
238        }
239        @keyframes confirmedPulse {
240          0%, 100% { box-shadow: 0 0 50px rgba(201,162,39,0.2); }
241          50%       { box-shadow: 0 0 80px rgba(201,162,39,0.4); }
242        }
243      `})]})}const us=c.lazy(()=>E(()=>import("./TimelineSlider--DLcMD8R.js"),__vite__mapDeps([0,1,2,3,4])).then(t=>({default:t.TimelineSlider}))),ms=c.lazy(()=>E(()=>import("./CountdownPage-DuNND5hj.js"),__vite__mapDeps([5,1,2])).then(t=>({default:t.CountdownPage}))),xs=c.lazy(()=>E(()=>import("./ArchivePage-rlJO2u9r.js"),__vite__mapDeps([6,1,2,3,4])).then(t=>({default:t.ArchivePage}))),gs=c.lazy(()=>E(()=>import("./CosmododromeumPage-CmdRY_2f.js"),__vite__mapDeps([7,1,2,8,9,3,4])).then(t=>({default:t.CosmododromeumPage}))),ps=c.lazy(()=>E(()=>import("./NaopcXIVPage-CMpHEynR.js"),__vite__mapDeps([10,1,2])).then(t=>({default:t.NaopcXIVPage}))),fs=c.lazy(()=>E(()=>import("./CronosCatharsisPage-BfOvonf2.js"),__vite__mapDeps([11,1,2,8,9,3,4])).then(t=>({default:t.CronosCatharsisPage}))),hs=c.lazy(()=>E(()=>import("./SignalInterruptionPage-D7UqVYQ1.js"),__vite__mapDeps([12,1,2])).then(t=>({default:t.SignalInterruptionPage}))),bs=c.lazy(()=>E(()=>import("./InterimProtocolPage-C1WEnaSJ.js"),__vite__mapDeps([13,1,2,8,9,3,4])).then(t=>({default:t.InterimProtocolPage}))),ys=c.lazy(()=>E(()=>import("./DiscographyPage-DCp9W24a.js"),__vite__mapDeps([14,1,2,3,4])).then(t=>({default:t.DiscographyPage}))),vs=c.lazy(()=>E(()=>import("./FAQPage-C6rsrj6N.js"),__vite__mapDeps([15,1,2])).then(t=>({default:t.FAQPage}))),js=c.lazy(()=>E(()=>import("./ArchivalDropPage-GLMGvp4q.js"),__vite__mapDeps([16,1,2])).then(t=>({default:t.ArchivalDropPage}
243))),Ns=c.lazy(()=>E(()=>import("./SilentIndexPage-k0bbSzOn.js"),__vite__mapDeps([17,1,2])).then(t=>({default:t.SilentIndexPage}))),ks=c.lazy(()=>E(()=>import("./AboutPage-DIOUBCXO.js"),__vite__mapDeps([18,1,2])).then(t=>({default:t.AboutPage}))),ws=c.lazy(()=>E(()=>import("./PressPage-D78iie9O.js"),__vite__mapDeps([19,1,2,20,3,4])).then(t=>({default:t.PressPage}))),Ts=c.lazy(()=>E(()=>import("./QuantumForwardPage-CHVRbKB1.js"),__vite__mapDeps([21,1,2,8,9,3,4])).then(t=>({default:t.QuantumForwardPage}))),Ss=c.lazy(()=>E(()=>import("./WuboguPage-CihjM_h_.js"),__vite__mapDeps([22,1,2,9,3,4])).then(t=>({default:t.WuboguPage}))),Es=c.lazy(()=>E(()=>import("./NowTimePage-DikDHa9S.js"),__vite__mapDeps([23,1,2,8,9,3,4])).then(t=>({default:t.NowTimePage}))),Cs=c.lazy(()=>E(()=>import("./UniversePage-CJhOIH6z.js"),__vite__mapDeps([24,1,2,3,4])).then(t=>({default:t.UniversePage}))),Rs=c.lazy(()=>E(()=>import("./SaturnNeptuneConjunctionPage-DqN8Fnts.js"),__vite__mapDeps([25,1,2])).then(t=>({default:t.SaturnNeptuneConjunctionPage}))),As=c.lazy(()=>E(()=>import("./CouncilPage-Cb8Qvv20.js"),__vite__mapDeps([26,1,2,3,4])).then(t=>({default:t.CouncilPage}))),Is=c.lazy(()=>E(()=>import("./AP4TMCPage-CzwHxRmm.js"),__vite__mapDeps([27,1,2,28])).then(t=>({default:t.AP4TMCPage}))),_s=c.lazy(()=>E(()=>import("./NewspaperPage-Dtv43UuW.js"),__vite__mapDeps([29,1,2,28])).then(t=>({default:t.NewspaperPage}))),Ms=c.lazy(()=>E(()=>import("./LexiconPage-Dg5-_aAn.js"),__vite__mapDeps([30,1,2])).then(t=>({default:t.LexiconPage}))),Os=c.lazy(()=>E(()=>import("./FreaqMakerPage-oJ7akMwc.js"),__vite__mapDeps([31,1,2])).then(t=>({default:t.FreaqMakerPage}))),Ps=c.lazy(()=>E(()=>import("./FreaqMakerTransmissionPage-D0yGpTgZ.js"),__vite__mapDeps([32,1,2,3,4])).then(t=>({default:t.FreaqMakerTransmissionPage}))),Ls=c.lazy(()=>E(()=>import("./LegalPage-Cq6MMn4Q.js"),__vite__mapDeps([33,1,2,3,4])).then(t=>({default:t.LegalPage}))),Ds=c.lazy(()=>E(()=>import("./PodcastPage-DEQGp9Xe.js"),__vite__mapDeps([34,1,2,3,4])).then(t=>({default:t.PodcastPage}))),zs=c.lazy(()=>E(()=>import("./ActivationPage-RCxTXRHQ.js"),__vite__mapDeps([35,1,2,3,4])).then(t=>({default:t.ActivationPage}))),Fs=c.lazy(()=>E(()=>import("./IntendedReceiversPage-B_Vpi4wX.js"),__vite__mapDeps([36,1,2,3,4])).then(t=>({default:t.IntendedReceiversPage}))),Bs=c.lazy(()=>E(()=>import("./TransmissionsGuidePage-8UenXg15.js"),__vite__mapDeps([37,1,2,3,4])).then(t=>({default:t.TransmissionsGuidePage}))),Us=c.lazy(()=>E(()=>import("./OpsisIVPage-DH_0KIU0.js"),__vite__mapDeps([38,1,2,20])).then(t=>({default:t.OpsisIVPage}))),$s=c.lazy(()=>E(()=>import("./BroadcastPage-ByCDI9P7.js"),__vite__mapDeps([39,1,2,40])).then(t=>({default:t.BroadcastPage}))),Hs=c.lazy(()=>E(()=>import("./BeatMakerPage-SFoeVonA.js"),__vite__mapDeps([41,1,2,3,4])).then(t=>({default:t.BeatMakerPage}))),Vs=c.lazy(()=>E(()=>import("./NumerologyDashboard-z63PaDe5.js"),__vite__mapDeps([42,1,2])).then(t=>({default:t.NumerologyDashboard}))),Ws=c.lazy(()=>E(()=>import("./VideoGallery-Dot5STaz.js"),__vite__mapDeps([43,1,2,40,3,4])).then(t=>({default:t.VideoGallery}))),Gs=c.lazy(()=>E(()=>import("./AfrofuturistTimeChannel-DLETu-BR.js"),__vite__mapDeps([44,1,2,3,40])).then(t=>({default:t.AfrofuturistTimeChannel}))),qs=c.lazy(()=>E(()=>import("./WorldBuilderHub-BUz1EPUq.js"),__vite__mapDeps([45,1,2,4,3])).then(t=>({default:t.WorldBuilderHub}))),Ys=c.lazy(()=>E(()=>import("./PoliciesPage-DrYopTKe.js"),__vite__mapDeps([46,1,2,47,3,4])).then(t=>({default:t.PoliciesPage}))),st=c.lazy(()=>E(()=>import("./SubmitPage-eZu1jmmv.js"),__vite__mapDeps([48,1,2,47,3,4])).then(t=>({default:t.SubmitPage}))),Ks=c.lazy(()=>E(()=>import("./MySubmissionsPage-C4byZY3w.js"),__vite__mapDeps([49,1,2,50,47,3,4])).then(t=>({default:t.MySubmissionsPage}))),Qs=c.lazy(()=>E(()=>import("./AdminPage-dk85S4J9.js"),__vite__mapDeps([51,1,2,47,50,3,4])).then(t=>({default:t.AdminPage}))),Xs=c.lazy(()=>E(()=>import("./TTDLandingPage-De_tbrqR.js"),__vite__mapDeps([52,1,2,47,3,4])).then(t=>({default:t.TTDLandingPage}))),Js=c.lazy(()=>E(()=>import("./TTDClearancePage-CuLoxeXH.js"),__vite__mapDeps([53,1,2,47,3,4])).then(t=>({default:t.TTDClearancePage}))),Zs=c.lazy(()=>E(()=>import("./TTDArchivePage-D6PswIyZ.js"),__vite__mapDeps([54,1,2,47,50,3,4])).then(t=>({default:t.TTDArchivePage}))),en=c.lazy(()=>E(()=>import("./FeedbackPage-Cnkv2GM1.js"),__vite__mapDeps([55,1,2,3,4])).then(t=>({default:t.FeedbackPage}))),tn=c.lazy(()=>E(()=>import("./CosmicAfterPartyPage-DZrw9QO5.js"),__vite__mapDeps([56,1,2,40,3,4])).then(t=>({default:t.CosmicAfterPartyPage}
243)));function rn(){return e.jsxs("div",{style:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:"#050508"},children:[e.jsx("div",{style:{width:40,height:40,border:"2px solid #c9a84c",borderTopColor:"transparent",borderRadius:"50%",animation:"spin 0.8s linear infinite"}}),e.jsx("style",{children:"@keyframes spin { to { transform: rotate(360deg); } }"})]})}function an(){const[t,a]=c.useState("home"),[n,s]=c.useState(!1),[o,r]=c.useState(!1),[l,i]=c.useState(!1);ja(),Na();const m=_a("enable_web_vitals",!0);Ea(m),va(t),c.useEffect(()=>{window.location.pathname==="/confirmed"&&i(!0)},[]);const x=t==="broadcast"||l;return e.jsxs(e.Fragment,{children:[!x&&e.jsx(ir,{currentPage:t,onNavigate:a,onOpenSearch:()=>{a("transmissions"),r(!0)}}),!x&&e.jsx(fa,{currentPage:t,onReturnToPresent:()=>a("home"),onOpenTimeline:()=>s(!0)}),!x&&e.jsx("div",{style:{height:64,flexShrink:0},"aria-hidden":"true"}),e.jsx(c.Suspense,{fallback:null,children:n&&e.jsx(us,{open:n,onClose:()=>s(!1),onNavigate:p=>a(p),currentPage:t})}),l&&e.jsx(ds,{onNavigate:p=>{i(!1),a(p)}}),t==="home"&&!l&&e.jsx(Er,{onNavigate:a}),e.jsxs(c.Suspense,{fallback:e.jsx(rn,{}),children:[t==="quantumforward"&&e.jsx(Ts,{onNavigate:a}),t==="wubogu"&&e.jsx(Ss,{onNavigate:a}),t==="nowtime"&&e.jsx(Es,{onNavigate:a}),t==="cosmodromium"&&e.jsx(gs,{onNavigate:a}),t==="lexicon"&&e.jsx(Ms,{}),t==="freaqmaker"&&e.jsx(Os,{}),t==="freaqmaker-transmission"&&e.jsx(Ps,{onNavigate:a}),t==="signal"&&e.jsx(hs,{}),t==="interim"&&e.jsx(bs,{}),t==="naopc"&&e.jsx(ps,{}),t==="cronos"&&e.jsx(fs,{}),t==="discography"&&e.jsx(ys,{}),t==="archive"&&e.jsx(xs,{}),t==="faq"&&e.jsx(vs,{}),t==="countdown"&&e.jsx(ms,{}),t==="drop"&&e.jsx(js,{}),t==="index"&&e.jsx(Ns,{}),t==="about"&&e.jsx(ks,{}),t==="press"&&e.jsx(ws,{}),t==="universe"&&e.jsx(Cs,{}),t==="saturn-neptune"&&e.jsx(Rs,{}),t==="council"&&e.jsx(As,{onNavigate:a}),t==="ap4tmc"&&e.jsx(Is,{onNavigate:a}),t==="newspaper"&&e.jsx(_s,{}),t==="legal"&&e.jsx(Ls,{}),t==="podcast"&&e.jsx(Ds,{}),t==="activation"&&e.jsx(zs,{}),t==="intended-receivers"&&e.jsx(Fs,{onNavigate:a}),t==="transmissions"&&e.jsx(Bs,{onNavigate:a,searchOpen:o,onCloseSearch:()=>r(!1)}),t==="opsisiv"&&e.jsx(Us,{onNavigate:a}),t==="broadcast"&&e.jsx($s,{}),t==="beatmaker"&&e.jsx(Hs,{}),t==="cosmicCalendar"&&e.jsx(Vs,{}),t==="channelGuide"&&e.jsx(Ws,{}),t==="timeChannel"&&e.jsx(Gs,{}),t==="worldbuilder"&&e.jsx(qs,{}),t==="policies"&&e.jsx(Ys,{}),t==="submit"&&e.jsx(st,{}),t==="my-submissions"&&e.jsx(Ks,{}),t==="admin"&&e.jsx(Qs,{}),t==="ttd-landing"&&e.jsx(Xs,{onNavigate:a}),t==="ttd-submit"&&e.jsx(st,{}),t==="ttd-clearance"&&e.jsx(Js,{onNavigate:a}),t==="ttd-archive"&&e.jsx(Zs,{}),t==="feedback"&&e.jsx(en,{}),t==="cosmic-afterparty"&&e.jsx(tn,{})]}),t!=="activation"&&!x&&e.jsx(Br,{onNavigate:a}),e.jsx(Xr,{broadcastLocked:x}),!x&&e.jsx(ya,{}),!x&&e.jsx(cs,{})]})}function sn({children:t}){const[a,n]=c.useState(()=>typeof window>"u"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return c.useEffect(()=>{const s=window.matchMedia("(prefers-reduced-motion: reduce)"),o=r=>n(r.matches);return s.addEventListener("change",o),()=>s.removeEventListener("change",o)},[]),c.useEffect(()=>{document.documentElement.classList.toggle("reduce-motion",a)},[a]),e.jsx(Et,{reducedMotion:a?"always":"never",children:t})}xt(document.getElementById("root")).render(e.jsx(c.StrictMode,{children:e.jsx(rr,{children:e.jsx(sn,{children:e.jsx(an,{})})})}));export{_ as C,F as G,mn as S,Ce as T,ur as V,xr as W,un as a,dn as b,P as s,Zr as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.