');if(i<0)i=html.length;html=html.slice(0,i)+back+html.slice(i);try{window.scrollTo(0,0);}catch(e){}document.open();document.write(html);document.close();}
function loadTech(){openDoc('mxTechDoc');}
function loadCine(){openDoc('mxCineDoc');}
// ---- loader sequence ----
var STATUS=['INITIALIZING MARVIX LABS','LOADING TECHNICAL ENGINE','PREPARING CINEMATIC ENGINE','SYSTEM READY'];
var bar=el('mxBar'),pctEl=el('mxPct'),stEl=el('mxStatus'),pct=0;
function tickLoad(){
pct+=Math.max(0.6,(100-pct)*0.04)+Math.random()*1.4;
if(pct>=100){pct=100;}
bar.style.width=pct+'%';pctEl.textContent=Math.round(pct)+'%';
var si=Math.min(STATUS.length-1,Math.floor(pct/26));stEl.textContent=STATUS[si];
if(pct<100){setTimeout(tickLoad,90+Math.random()*70);}
else{stEl.textContent='SYSTEM READY';setTimeout(function(){gotoBrand();},620);}
}
function gotoBrand(){showView('brand');setTimeout(function(){var w=el('mxBrandWrap');if(w)w.classList.add('in');},80);}
// ---- particles (light, premium) ----
function initParticles(){
var c=el('mxParticles');if(!c)return;var x=c.getContext&&c.getContext('2d');if(!x)return;var P=[],N=46,W,H;
function rs(){W=c.width=c.offsetWidth;H=c.height=c.offsetHeight;}
rs();addEventListener('resize',rs);
for(var i=0;i