Skip to content

The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.

42.5 KB
Raw Blame
function f3Title(value=P.title,y=60,c=CONFIG.palette[1],size=34){fittedText(value,500,y,size,c,880,'Arial',650)}
function f3Panel(x,y,w,h,dark=false){rect(x,y,w,h,dark?'#101419':'#fbfcfb',10);rect(x,y,w,25,dark?'#252930':'#e6e9e6',10);[0,1,2].forEach(i=>ellipse(x+15+i*12,y+12,3,3,['#dd887b','#d8bd6d','#8aaf87'][i]));}
function f3Rows(x,y,w,n=6,c='#a5aaa5',lineh=25){for(let i=0;i<n;i++)rect(x,y+i*lineh,w*(.58+rand(i+5)*.4),4,c,2)}
function f3Table(x,y,w,h,n=7,c=P.accent){rect(x,y,w,h,'#fff',4);for(let i=0;i<n;i++){line(x,y+30+i*(h-30)/n,x+w,y+30+i*(h-30)/n,'#dedfdf');text(['Name','Source','Status'][i%3],x+16,y+15+i*(h-30)/n,12,'#555','left');rect(x+w*.6,y+8+i*(h-30)/n,w*.23,13,i%2?c:'#dcdedc',5)}}
function f3Phone(x,y,w,h,t,tilt=0){at(x+w/2,y+h/2,1,tilt,()=>{rect(-w/2,-h/2,w,h,P.accent,28);rect(-w/2+8,-h/2+8,w-16,h-16,'#fff',22);rect(-24,-h/2+13,48,7,'#18211a',4);text('Savings',0,-h*.31,14,'#333');ellipse(0,0,w*.31,w*.31,null,'#ccc');ctx.strokeStyle=P.accent;ctx.lineWidth=6;ctx.beginPath();ctx.arc(0,0,w*.31,-Math.PI/2,-Math.PI/2+TAU*clamp(t));ctx.stroke();text('$'+Math.round(t*500)+'.00',0,0,26,'#131913','center','Arial',700);rect(-w*.36,h*.31,w*.72,24,P.accent,12)})}
function drawScene(t){bg();const m=CONFIG.mechanism,d=CONFIG.duration,n=stageAt(t),u=stageProgress(t),fg=CONFIG.palette[1];
 if(m==='context'){for(let i=0;i<50;i++){let x=i<25?75+(i%5)*15:850+(i%5)*15,y=190+Math.floor(i%25/5)*18;ellipse(x,y,2,2,'#55555533')}if(t<4){let a=phase(t,.4,2)*(1-phase(t,3,4));for(let i=0;i<49;i++){let r=55+30*sin(i*2.3),ang=i*TAU/17;ellipse(500+cos(ang)*r*a,250+sin(ang)*r*a,5,5,null,'#dddddd99')}text(useTitle('Agents'),500,370,22,fg,'center','monospace')}else if(t<10){const phrase='They are only as good as their ';text(progressText(phrase,phase(t,5,7.5)),425,300,23,fg,'center','monospace');alpha(phase(t,7.6,8.3),()=>{text(useTitle('context'),735,300,23,P.accent,'center','monospace',190);ellipse(735,300,80,80,null,'#dddddd99')})}return;}
 if(m==='slack'){let assemble=phase(t,.7,2),word=phase(t,2.4,3);let gx=mix(500,330,word),gy=300;const cols=['#2eb6d3','#2ca77a','#eab52c','#db1655'];cols[0]=P.accent;for(let i=0;i<4;i++){let a=i*TAU/4+Math.PI/4,rr=mix(170,54,assemble);at(gx+cos(a)*rr,gy+sin(a)*rr,1,a+Math.PI/4,()=>{rect(-16,-16,32+58*assemble,32,cols[i],16);ellipse(-28,-32,14,14,cols[i])})}alpha(word,()=>fittedText(P.title,625,300,112,'#050505',490,'Arial',750));if(t>7.75){bg();at(500,300,1,-.28,()=>{for(let i=0;i<2;i++){rect(-65+i*72,-115,32,230,cols[i],16);rect(-115,-65+i*72,230,32,cols[i+2],16)}})}return;}
 if(m==='prime'){for(let j=0;j<24;j++)for(let i=0;i<40;i++){let x=20+i*25,y=385+j*12+sin(i*.2+j*.3+t*.2)*20;ellipse(x,y,1,1,'#bfae7e33')}if(t<5){f3Title(P.title,260,fg,60);text('A SELF-IMPROVING HARNESS',500,325,18,fg,'center','monospace');return;}f3Panel(170,100,660,420,true);const lines=['In [1]: auth, api = await gather(tasks)','  tool(auth-flow) → answer','In [2]: create_memory(pattern)','In [3]: refine.run(skill)','  reviewer → agent → result'];if(t<23){text(CONFIG.stages[n].label,200,155,20,fg,'left','monospace');lines.forEach((s,i)=>text(progressText(s,clamp((t-8)/3-i*.15)),200,210+i*43,15,i%2?P.accent:fg,'left','monospace',580));for(let i=0;i<3;i++){rect(220+i*180,440,150,35,'#282a2d',3);text(['kernel','subagent','memory'][i],295+i*180,458,13,fg,'center','monospace')}}else if(t<34){for(let i=0;i<25;i++){let x=220+(i%5)*48,y=180+Math.floor(i/5)*48;rect(x,y,36,36,(i+Math.floor(t*2))%3?P.accent:'#de8355')}text((Math.min(95.54,(t-23)*17)).toFixed(2)+'%',660,280,60,fg);text('RESULTS',660,350,16,fg,'center','monospace')}else if(t<38){for(let i=1;i<20;i++)line(220+(i-1)*25,430-Math.pow((i-1)/20,2)*220,220+i*25,430-Math.pow(i/20,2)*220,P.accent,3);text('TASK PROGRESS',500,170,20,fg)}else{text('> install '+useTitle('prime-agent'),500,300,20,fg,'center','monospace',580)}fittedText(P.title,500,555,22,fg);return;}
 if(m==='inbox'){glow(500,480+sin(t)*80,650,P.accent+'77');glow(500,210,360,'#17c7b344');let z=phase(t,.5,5),ww=mix(450,900,z),yy=mix(210,275,z);alpha(phase(t,5,7),()=>text(P.title,500,155,104,'#fff','center','Arial',900,880));f3Panel(500-ww/2,yy,ww,430,true);text('Inbox',535-ww/2,yy+60,18,'#fff','left');for(let i=0;i<8;i++){let y=yy+95+i*37;line(535-ww/2,y+20,460+ww/2,y+20,'#26302c');text(['Product feedback','Your new project','A question about delivery'][i%3],670-ww/2,y,13,i%3?'#999':'#e3eee6','left');rect(540-ww/2,y-8,38,12,i%2?'#2a4c37':P.accent,4)}return;}
 if(m==='coins'){gradient('#3f3f3f','#0e0e0e');f3Title(P.title,85,'#fff',35);text('Stablecoin',500,123,16,'#ccc');ellipse(500,390,290,140,'#090909','#777');ellipse(500,378,285,135,'#242424','#999');const coins=[0,1].map(i=>{let a=t/5.25*TAU+i*Math.PI;return{x:500+cos(a)*190,y:375+sin(a)*75,s:.88+.12*sin(a),i}}).sort((a,b)=>a.y-b.y);coins.forEach(o=>at(o.x,o.y,o.s,0,()=>{ellipse(0,6,52,24,'#080808');ellipse(0,0,52,24,o.i?'#ddd':'#111',P.accent);text('↔',0,0,40,o.i?'#222':'#eee')}));text('Paired orbit · shared plane',500,555,14,'#ccc');return;}
 if(m==='airtable-app'){const color=t<25?'#65a9be':t<40?'#174e3e':'#efa17f';bg(color);f3Title();const complete=phase(t,t<25?16:32,t<25?22:39);f3Panel(320,135,600,380);rect(335,173,100,320,P.accent,5);text(t<25?'Campaigns':t<40?'Feedback':'Research',460,194,22,'#222','left');rect(55,250,230,125,'#ffffffbb',15);text(progressText(useTitle('Create an app'),phase(t,12,15)),75,290,18,'#222','left','Arial',500,195);f3Rows(75,335,160,2,'#367684');if(t<25){for(let j=0;j<3;j++)rect(460+j*140,235,120,80,j?'#e8efe7':'#dcf1d3',5);for(let j=0;j<5;j++)rect(480+j*68,445-(30+j*16)*complete,40,(30+j*16)*complete,P.accent,4);ellipse(590,285,24,24,null,P.accent)}else f3Table(460,235,425,240,7,t<40?'#ac5cc0':P.accent);if(t<11){bg('#dce4e5');f3Panel(130,80,740,450);rect(150,120,120,380,'#198c78');for(let i=0;i<18;i++){line(290+i*30,130,290+i*30,505,'#bdd4cf');line(290,140+i*20,850,140+i*20,'#c1d7d2')}for(let i=0;i<9;i++)ellipse(325+rand(i)*470,165+rand(i+6)*280,5,5,P.accent)}return;}
 if(m==='interfaces'){f3Title();f3Panel(90,110,820,410,true);if(t<9){const rot=sin(t)*.1;at(460,320,1,rot,()=>{rect(-110,-80,220,130,'#989c9d',35);rect(-115,35,230,55,'#babebe',25);line(-90,75,-110,140,'#604239',10);line(90,75,110,140,'#604239',10);for(let i=0;i<3;i++)ellipse(-65+i*65,-30+i*30,8,8,P.accent)});for(let i=0;i<3;i++){rect(685,175+i*80,185,45,'#313a46',8);text('Note '+(i+1),705,198+i*80,16,'#eee','left')}}else if(t<19){const pts=[[480,175],[300,270],[660,270],[300,390],[660,390],[480,470]];[[0,1],[0,2],[1,3],[2,4],[3,5],[4,5]].forEach(([a,b])=>line(...pts[a],...pts[b],P.accent,2));pts.forEach(([x,y],i)=>{rect(x-60,y-20,120,40,i===Math.floor(t)%6?'#bdebd3':'#e4e8eb',7);text(['Start','Research','Design','Marketing','Testing','Launch'][i],x,y,15,'#111')})}else if(t<24){rect(115,150,500,340,'#e1e8dd');for(let i=0;i<14;i++){line(130+i*35,150,160+i*35,490,'#b8c7bf');line(115,165+i*25,615,160+i*25,'#b8c7bf')}for(let i=0;i<8;i++)ellipse(160+rand(i)*400,175+rand(i+4)*270,6,6,P.accent);f3Rows(650,190,200,10)}else if(t<30){for(let i=0;i<3;i++){rect(125,155+i*105,735,90,'#29333d',7);rect(145,170+i*105,155,60,'#718a8c',3);text('Conference room '+(i+1),330,190+i*105,19,'#eee','left');rect(720,185+i*105,115,30,P.accent,5)}if(t>26&&t<28){rect(330,230,350,180,'#263141',15);text('Book room',500,270,24,'#fff');rect(385,340,240,35,P.accent,5)}if(t>=28)text('✓ Booking confirmed',500,440,28,'#8deb9d')}else{ellipse(480,310,130,100,'#e5b39c');for(let i=0;i<8;i++){let a=i*TAU/8;ellipse(480+cos(a)*155,310+sin(a)*125,20,20,i<5?P.accent:'#c5cdcf')}f3Rows(705,170,160,10)}return;}
 if(m==='versions'){gradient('#edf7f8','#d3ebef');glow(500,300,270,'#ffffffaa');let ver=t<3?String(Math.min(6,1+Math.floor(t*2))):t<4?'6':t<7?'':t<8?'Essential':t<9?'Pro':'';rect(220,268,60,60,'#fff',13);for(let i=0;i<3;i++)line(233,283+i*10,265-i*5,283+i*10,P.accent,3);fittedText(P.title+(ver?' '+ver:''),570,300,53,t>5&&t<7?P.accent:'#101a20',590,'Arial',500);return;}
 if(m==='cash-vertical'){bg('#181818');saved(()=>{ctx.beginPath();ctx.rect(340,0,320,600);ctx.clip();rect(340,0,320,600,t<2||t>8.7&&t<10.2?P.accent:t>3.8&&t<5.7?'#111':'#d8d8d8');if(t<2){rect(465,240,70,70,'#fff',15);text('$',500,275,50,P.accent)}else if(t<8.7){text(useTitle(t<4?'Bank on Cash App.':t<5.7?'Earn on your savings':'Get paid faster'),500,110,28,t>3.8&&t<5.7?'#fff':'#111','center','Arial',750,280);f3Phone(407,220,190,330,phase(t,4,7.8),-.18+sin(t*.7)*.03)}else if(t<10.2){['$0','Monthly','Fees'].forEach((v,i)=>{const sel=Math.floor((t-8.7)*2)%3===i;if(sel)rect(380,190+i*70,240,60,'#111',30);text(v,500,220+i*70,42,sel?'#fff':'#111','center','Arial',800)})}else{rect(340,0,320,600,'#101010');text(P.title,500,275,30,'#fff','center','Arial',750,280);rect(478,340,44,44,P.accent,9);text('$',500,362,30,'#fff')}});return;}
 if(m==='cash-grid'){const boxes=[[20,20,145,220],[175,20,210,140],[395,20,210,140],[615,20,195,140],[820,20,160,420],[20,250,145,150],[175,170,140,230],[325,170,270,170],[605,170,205,170],[20,410,295,170],[325,350,170,230],[505,350,180,230],[695,450,285,130]];boxes.forEach(([x,y,w,h],i)=>{let col=i%4===0?P.accent:i%4===1?'#dededc':i%4===2?'#a65ce1':'#202323';rect(x,y,w,h,col,12);saved(()=>{ctx.beginPath();ctx.roundRect(x,y,w,h,12);ctx.clip();if(i===4){text(useTitle(['Make Money Moves','Save more','Instant Discounts','No Monthly Fees'][Math.min(3,Math.floor(t/2))]),x+w/2,y+h/2,32,'#0a160c','center','Arial',800,w-18)}else if(i===11){f3Phone(x+w*.2,y+15,w*.6,h-25,frac(t*.2),.06)}else if(i%3===0){ellipse(x+w/2+sin(t+i)*w*.18,y+h/2,Math.min(w,h)*.28,Math.min(w,h)*.28,i%2?'#101b13':P.accent,'#343b34');for(let j=0;j<3;j++)ellipse(x+w/2,y+h/2,Math.min(w,h)*(.15+j*.06),Math.min(w,h)*.3,null,'#122b1c')}else{at(x+w/2,y+h/2,1,sin(t*.5+i)*.14,()=>{rect(-w*.24,-h*.26,w*.48,h*.52,i%2?P.accent:'#171d19',15);text('$',0,0,42,i%2?'#101010':P.accent)})}})});return;}
 if(m==='telegram'){gradient('#092b60','#3052af');rect(345,18,310,564,'#111b29',30);rect(355,29,290,540,'#172433',24);text(P.title,500,77,20,'#fff','center','Arial',600,260);line(370,108,630,108,'#324152');if(t<2){ellipse(500,230,46,46,P.accent);text('✦',500,230,55,'#fff');text('Your new assistant',500,328,21,'#fff');rect(385,427,230,42,P.accent,9);text('Create a bot',500,448,16,'#fff')}else if(t<4.7){text('Create your bot',385,145,22,'#fff','left');['Name','Username'].forEach((s,i)=>{text(s,385,210+i*100,13,'#7c9bb3','left');rect(380,230+i*100,240,45,'#24374a',7);text(progressText(i?'my_agent_bot':'My agent',phase(t,2.4+i*.7,3.2+i*.7)),395,252+i*100,17,'#fff','left')});rect(385,460,230,40,P.accent,9);text('Create',500,480,16,'#fff')}else if(t<6.4){ellipse(500,240,45,45,P.accent);text('✓',500,240,44,'#fff');text('Your bot is ready',500,330,21,'#fff');rect(385,440,230,40,P.accent,9);text('Start',500,460,16,'#fff')}else if(t<9.3){rect(480,150,135,40,'#377a6a',10);text('/start',548,170,16,'#fff');alpha(phase(t,6.5,7.4),()=>{rect(375,220,245,125,'#293b4b',10);text('Hello! I can help.',395,250,19,'#fff','left');f3Rows(395,285,190,2,'#8da8bb',22)});rect(375,482,245,45,'#22384c',10);text('Message',395,505,15,'#99adbf','left')}else{ellipse(500,205,52,52,P.accent);text('My agent',500,295,24,'#fff');f3Rows(395,350,200,3,'#648095',30);rect(385,470,230,40,P.accent,9);text('Open app',500,490,16,'#fff')}if(t>1.4&&t<2.1){ellipse(545,449,14+phase(t,1.4,2.1)*25,14+phase(t,1.4,2.1)*25,null,'#fff')}return;}
 if(m==='think'){bg('#e5e6e7');const pull=phase(t,0,.86),s=mix(2.8,1,pull);at(500,300,s,-.04*(1-pull),()=>{for(let j=20;j>=0;j--){text(P.title,j*.75,-j*.7,150,j===0?'#f5f5f6':j%2?P.accent:'#593bdd','center','Arial',800)} });return;}
 if(m==='watson'){bg('#f1f1f1');let radius=t<8?mix(440,155,phase(t,3,8)):t<27?170:145;let cx=t<9?500:300,cy=310;for(let i=0;i<95;i++){let k=i/95,a=k*TAU,rx=radius*(.3+.7*Math.abs(cos(a+t*.1)));ellipse(cx+sin(a+t*.25)*radius*.2,cy+cos(a)*radius*.06,rx,radius*.9,null,i%3?P.accent+'55':'#b5a2dc66')}if(t>9&&t<27){const title=t<15?'watsonx.ai':t<21?'watsonx.data':'watsonx.governance';text(useTitle(title),560,230,34,'#1d1638','left','Arial',500,410);const words=t<15?['Generative AI','Machine learning']:t<21?['Fast','Flexible','Open']:['Responsible','Transparent','Explainable'];words.forEach((s,i)=>text(s,560,310+i*44,22,'#51435b','left'))}else if(t>=27)f3Title(P.title,110,'#262035',50);else if(t<3)f3Title(P.title,90,'#262035',38);return;}
 if(m==='luggage'){bg('#d1ebe6');const shift=frac(t/4.8)*220;for(let row=-1;row<4;row++)for(let col=-1;col<6;col++){let x=col*230+row*100-shift,y=row*210+80;at(x,y,1,-.25+sin(t*1.3)*.08,()=>{rect(-14,-75-phase(t,1,2)*25,28,55,'#1d2c36',5);rect(-58,-50,116,140,'#1d2c36',14);for(let k=0;k<3;k++)line(-29+k*29,-20,-29+k*29,65,'#466069',3);ellipse(-35,96,8,8,'#192730');ellipse(35,96,8,8,'#192730')})}rect(180,220,640,160,'#d1ebe6ee',8);const title=P.title===CONFIG.demoTitle?'PLAN ON A\nGOOD TIME':P.title;title.split('\n').forEach((s,i)=>text(s,500,268+i*66,64,P.accent,'center','Arial',900,900));return;}
 if(m==='refuel'){bg('#112e34');f3Title(P.title,70,'#f3e8c7',30);rect(390,350,300,160,P.accent,25);rect(560,389,155,65,'#567cb2',10);ellipse(595,421,8,8,'#c7cbd5');poly([[220,175],[370,175],[430,280],[390,320],[315,235],[220,235]],'#e5aa7c');poly([[330,220],[385,205],[490,273],[474,310],[395,266]],'#284b56');ctx.strokeStyle='#557276';ctx.lineWidth=18;ctx.beginPath();ctx.moveTo(230,185);ctx.bezierCurveTo(80,50,125,350,215,420);ctx.stroke();for(let i=0;i<6;i++){let f=frac(t/1.2+i*.17),x=470+f*90,y=300+f*135;at(x,y,1,sin(t+i)*.2,()=>{if(i%3===0){rect(-17,-10,34,20,'#91a777',2);ellipse(0,0,6,6,null,'#d1dfad')}else{ellipse(0,0,12,12,'#e3b85f','#ffdc81');text('$',0,0,15,'#866a30')}})}return;}
 if(m==='wabi'){bg('#f8f8f5');f3Title(P.title,56,'#111',32);const orb=(x,y,r)=>{glow(x,y,r*2,P.accent+'77');glow(x+r*.25,y-r*.2,r*1.2,'#ee979755');ellipse(x,y,r,r,'#ffffff44')};if(t<5||t>71){orb(500,310,120);text(t>77?P.title:'A new kind of messenger',500,500,28,'#111');return;}rect(345,115,310,440,'#151515',30);rect(353,123,294,424,'#fff',23);rect(465,130,70,12,'#111',6);let phaseT=t%20;if(t>62&&t<71){for(let i=0;i<7;i++){let a=(-.9+i*.3);at(500+sin(a)*340,270+cos(a)*-100,1,a*.2,()=>{rect(-45,-45,90,90,['#b1b5de','#e2b1d1','#d3dfa8'][i%3],16);text(['✦','✓','♥'][i%3],0,0,30,'#444')})}text('Your home',500,400,25,'#111');return;}text(t>44&&t<55?'Shared pet':t<18?'Trip planner':t<30?'Friends':'Personal tasks',500,175,23,'#111');if(t>48&&t<54){ellipse(500,315,70,70,P.accent);ellipse(477,300,6,6,'#222');ellipse(523,300,6,6,'#222');text('♥',500,350,24,'#fff');rect(400,450,200,35,'#e9e6f2',12);text('Care together',500,467,16,'#333')}else{rect(390,225,230,60,'#f0eef5',13);text(progressText(t>40?'Create a shared pet':'Plan something together',phase(t%10,0,2)),405,252,17,'#333','left','Arial',400,205);alpha(phase(t%10,2,3),()=>{rect(380,320,230,150,'#e4e8f3',15);text(t<18?'Your itinerary':'New app',400,350,22,'#333','left');f3Rows(400,388,170,3,'#aaa4bf',25);rect(430,430,150,25,P.accent,8)})}return;}
 if(m==='treasury'){bg('#fafafa');f3Title(P.title,60,'#171717',32);f3Panel(120,120,760,410);text('Treasury',155,175,22,'#222','left');if(t<8||t>14&&t<18){text('$250,000.00',500,260,52,'#191919','center','Arial',650);const p=t<8?.35:mix(.35,.72,phase(t,14,16));rect(220,330,560,40,'#dededc',6);rect(220,330,560*p,40,P.accent,6);text('Available balance',220,395,16,'#666','left');rect(650,430,140,40,P.accent,7);text('Move',720,450,17,'#fff')}else if(t<14){rect(310,170,380,315,'#f2f3f1',12);text(t<13?'Move funds':'Review transfer',350,210,24,'#222','left');text('From balance → Treasury',350,260,16,'#555','left');rect(345,290,310,65,'#fff',8);text('$'+Math.round(10000*phase(t,9,11)).toLocaleString(),500,323,34,'#171717');rect(345,405,310,45,P.accent,8);text(t<13?'Continue':'Confirm',500,428,18,'#fff')}else if(t<22){for(let i=0;i<10;i++){let h=(50+i*16)*phase(t,18,20.5);rect(180+i*66,445-h,42,h,P.accent,3);rect(180+i*66,445-h-15-i*3,42,15+i*3,'#52a76d',3)}text('Balance over time',500,190,24,'#222')}else if(t<27){['Bank account','Card','Transfer'].forEach((s,i)=>{rect(240,205+i*80,520,60,'#ededeb',7);ellipse(280,235+i*80,15,15,P.accent);text(s,320,235+i*80,20,'#333','left')})}else{bg('#fff');f3Title(P.title,300,'#111',52);ellipse(500,190,35,35,P.accent)}return;}
 if(m==='hyperos'){gradient('#e4f3ff','#d8e0ee');f3Title(P.title,60,'#18212c',34);function device(x,y,s){at(x,y,s,0,()=>{rect(-110,-205,220,410,'#435064',28);rect(-103,-198,206,396,'#aacddd',22);glow(0,-40,200,P.accent+'66');text('09:41',0,-118,48,'#fff','center','Arial',300);for(let i=0;i<12;i++)rect(-82+i%4*44,20+Math.floor(i/4)*48,32,32,['#f2d0bc',P.accent,'#a8c8c0'][i%3],9)})}if(t<4){for(let i=0;i<3;i++)at(280+i*230,300,1,sin(t)*.13,()=>{rect(-100,-110,200,220,'#ffffff77',55);rect(-93,-103,186,206,P.accent+'44',50)});}else if(t<28){device(500,340,.95);if(t>9&&t<14){rect(370,310,260,120,'#f3faffdd',25);ellipse(415,365,25,25,P.accent);text('Now playing',525,350,20,'#284052');line(470,388,595,388,'#7897aa',4)}}else if(t<38){device(500,340,.8);for(let i=0;i<4;i++){const angle=i*TAU/4+t*.08;let x=500+cos(angle)*280,y=340+sin(angle)*150;rect(x-88,y-55,176,110,'#ffffffdd',22);text(['Calendar','Music','Weather','Notes'][i],x,y-15,19,'#31465a');rect(x-50,y+18,100,8,P.accent,4)}}else if(t<45){rect(130,160,740,360,'#4e5e6c',25);rect(140,170,720,340,'#dbe8ef',20);for(let i=0;i<12;i++){rect(175+i%4*170,220+Math.floor(i/4)*83,145,60,i%2?'#fff':P.accent+'55',12);f3Rows(195+i%4*170,245+Math.floor(i/4)*83,100,2,'#99b2c3',14)}}else{[.65,.8,.65].forEach((s,i)=>device(280+i*220,340,s))}return;}
 if(m==='sketchcode'){bg('#0f1319');for(let i=0;i<30;i++){line(i*40,0,i*40,600,'#242a3266');line(0,i*40,1000,i*40,'#242a3266')}f3Title(P.title,55,'#eeedf1',36);if(t<9||t>74){text(useTitle(t<4?'Visual intelligence':t<9?'Sketch = Code':'Built from your ideas'),500,300,56,'#eee','center','Arial',650,850);rect(475,390,50,7,P.accent,3);return;}rect(55,120,410,420,'#e8e7e0',10);rect(490,120,455,420,'#1e2330',10);text('INPUT',80,145,13,'#555','left','monospace');text(t%20<12?'CODE':'RESULT',520,145,13,'#bbb','left','monospace');const p=phase(t,9,16);if(t<21){line(100,210,415,210,'#777',2);for(let i=0;i<3;i++){ctx.strokeStyle='#777';ctx.strokeRect(100,250+i*75,90,55);line(220,260+i*75,410,260+i*75,'#777');line(220,280+i*75,345,280+i*75,'#777')}if(p<.6){for(let i=0;i<11;i++)text(progressText(['const app = createPlayer()','return <MusicLibrary />','  tracks.map(renderTrack)'][i%3],clamp(p*3-i*.1)),520,195+i*27,15,i%2?P.accent:'#d7dde9','left','monospace',390)}else{rect(520,180,395,120,P.accent,10);text('Your music',545,240,28,'#fff','left');for(let i=0;i<3;i++){rect(520,330+i*55,45,40,['#e5b96d','#7ab09a',P.accent][i]);text('Track '+(i+1),585,351+i*55,20,'#eee','left')}}}else{for(let i=0;i<16;i++){let x=90+i%4*90,y=200+Math.floor(i/4)*70;rect(x,y,65,50,i%3?P.accent:'#d6b364',8)}for(let i=0;i<12;i++)line(530,220+i*20,900,220+i*20,P.accent,2+sin(i+t)*1.5);text('Generated composition',710,495,23,'#eee')}return;}
 if(m==='slides'){gradient('#032329','#131c31');glow(500,270,440,P.accent+'55');f3Title(P.title,55,'#fff',30);if(t<5){rect(270,250,460,90,'#ffffffdd',22);text(progressText('Create a presentation about growth',phase(t,1,3)),295,290,22,'#27313a','left','Arial',400,410);text(t>3.5?'Generating outline…':'',500,390,17,'#ddd')}else if(t<14){rect(300,125,400,415,'#25353c',15);['Overview','The challenge','Opportunity','Plan','Next steps'].forEach((s,i)=>{let y=180+i*62;rect(322,y-19,356,43,i===2&&t>9&&t<12?P.accent+'99':'#34484e',8);text((i+1)+'. '+s,340,y+2,19,'#edf4f5','left')});if(t>9&&t<12){rect(495,288,270,110,'#eeeef2',12);text('Edit this section',515,317,18,'#232b36','left');line(515,350,735,350,P.accent,3)}if(t>12){rect(352,477,296,35,P.accent,7);text('Generate slides',500,494,18,'#fff')}}else{for(let i=0;i<6;i++){let x=150+i%3*240,y=180+Math.floor(i/3)*180;rect(x,y,220,145,i%3===0?'#dadce9':i%3===1?'#466b9f':'#bfcac9',8);alpha(phase(t,16+i*.28,17.7+i*.28),()=>{text(['Overview','Why now','Growth','Our plan','Milestones','Next steps'][i],x+17,y+25,18,i%3===1?'#fff':'#26313b','left');for(let j=0;j<3;j++)rect(x+22+j*55,y+110-15*j,30,15+j*15,i%3===1?'#c2d5ee':P.accent,3)})}}return;}
 if(m==='bluevine'){if(t<7.9){bg('#09004b');const offset=mix(90,-450,phase(t,1.5,7.5));for(let j=0;j<5;j++)line(30,220+j*45,970,220+j*45,'#8d94ca66');at(offset,305,1,0,()=>{ctx.font='150px Arial';ctx.textAlign='left';ctx.strokeStyle='#a4abd177';ctx.lineWidth=1;ctx.strokeText(P.title,0,0);saved(()=>{ctx.beginPath();ctx.rect(0,-200,100+phase(t,2,7.5)*850,300);ctx.clip();text(P.title,0,-48,150,P.accent,'left','Arial',500)});for(let j=0;j<14;j++)line(j*80,125,j*80,-185,'#909acb44')});text('Baseline',80,455,12,'#c8cde7','left','monospace')}else if(t<12.5){const k=Math.min(3,Math.floor((t-7.9)/1.1)),colors=['#e9cbd7','#fae987','#bbb1f8','#9ce0d3'],inks=['#940a38','#e8a519','#4225b7','#075043'];bg(colors[k]);at(500,300,1,k===0?-.15*(1-phase(t,7.9,8.6)):0,()=>{if(k===0)poly(Array.from({length:33},(_,i)=>[-160*cos(i/32*Math.PI),-160*sin(i/32*Math.PI)]),inks[k]);else if(k===1){rect(-135,-40,270,180,inks[k]);ellipse(0,-40,135,135,inks[k])}else if(k===2)rect(-140,-140,280,280,inks[k],65);else {ellipse(-phase(t,11.4,12.4)*30,0,130,130,inks[k]);rect(495-500,-145,15,290,colors[k])}})}else{bg(t<13.6?'#09004b':t<15?P.accent:'#fff');let s=t<15?1:mix(1,.65,phase(t,15,16));at(500,300,s,0,()=>{if(t>=15)rect(-180,-180,360,360,P.accent,80);const c=t<13.6?P.accent:'#fff';rect(-65,-140,60,170,c,10);ctx.beginPath();ctx.arc(0,30,130,-Math.PI/2,Math.PI/2);ctx.fillStyle=c;ctx.fill();poly([[-130,35],[-50,52],[-15,140],[-100,125]],c)});}if(P.title!==CONFIG.demoTitle)f3Title(P.title,70,t<7.9?'#fff':'#222',28);return;}
 if(m==='pond'){bg(t>13.4&&t<15.1?'#32170d':t>8.8&&t<9.3?'#f2f027':'#f6fff0');const c=['#bf9cf0',P.accent,'#f48aaa','#9de1d2','#f3b183'];for(let i=0;i<22;i++){let x=20+rand(i)*925,y=20+rand(i+70)*535;let wid=30+rand(i+40)*100;rect(x+sin(t*1.1+i)*15,y,wid,18+rand(i+60)*20,c[i%5]);text(['CPU','0.001','Done','workspace','fable','systemd','+'][i%7],x+4,y+10,11,'#29231b','left','monospace',500)}if(t<13){saved(()=>{ctx.globalAlpha=.25;for(let i=0;i<10;i++){let a=i*TAU/10;ellipse(730+cos(a)*50,260+sin(a)*60,45,85,null,'#486b45')}for(let i=0;i<9;i++)line(730,320,650+i*20,500,'#486b45');});const words=['a','garden','the','blossoms','bees'];let word=t<4.5?'a':t<6?'garden':t<6.8?'the':t<8.8?'blossoms':'bees';rect(t<6?430:490,315,t<6?300:430,115,P.accent);text(useTitle(word),t<6?580:705,372,72,'#263218','center','Georgia',400,410)}else if(t<15.5){rect(195,250,610,120,P.accent);text('Operating System',500,310,66,'#32170d','center','Georgia',400,590)}else{const s=phase(t,15.5,17);rect(210,210,230,230,P.accent);['P','o','n','d'].forEach((l,i)=>text(l,268+i%2*110,275+Math.floor(i/2)*110,70,'#263218','center','Georgia'));text(P.title,695,325,46,t<17?'#32170d':'#263218','center','Georgia');}return;}
 if(m==='journey'){const star=t>6&&t<13;bg(star?'#030303':t>26.5?'#f16a09':'#eeebe7');if(t>26.5){f3Title(P.title,300,'#fff',50);return;}if(star){for(let i=0;i<65;i++)ellipse(rand(i)*1000,rand(i+80)*600,1+rand(i)*1.5,1+rand(i)*1.5,'#fff');text(useTitle(t<9?'How can I keep costs down?':t<11?'How do I keep my data safe?':'How do I use all of my data?'),500,300,42,'#fff','center','Arial',400,850);line(340,385,660,385,P.accent,2);return;}for(let j=0;j<12;j++)line(0,100+j*45,1000,100+j*45,'#a9a8a633');for(let i=0;i<15;i++)line(500+(i-7)*25,0,500+(i-7)*150,600,'#a9a8a633');let wide=t<6?120:t<20?210:400;poly([[460,0],[540,0],[500+wide,600],[500-wide,600]],P.accent,'#333');if(t>15&&t<18){for(let i=0;i<5;i++){line(500,230,140+i*180,100,P.accent,30);line(140+i*180,100,100+i*190,230,P.accent,30)}}for(let i=0;i<28;i++){let p=frac(t*.18+i*.073),x=500+(rand(i)-.5)*wide*p,y=40+p*570;ellipse(x+4,y+17,10*p,4*p,'#222');ellipse(x,y,8+9*p,8+9*p,['#59b8eb',P.accent,'#e27de5'][i%3],'#222');line(x,y+8,x,y+19,'#222')}for(let i=0;i<6;i++){let x=(i%2?900:70)+sin(i+t*.2)*70,y=100+i*80;ellipse(x,y,80,30,'#fff','#333');ellipse(x-25,y-22,35,35,'#fff','#333');ellipse(x+20,y-28,45,40,'#fff','#333')}if(t<4)text(P.title,500,215,44,'#171717','center','Arial',500,750);if(t>23){ellipse(500,220,90,90,'#ef832c','#333');ctx.strokeStyle='#333';ctx.lineWidth=3;ctx.beginPath();ctx.arc(500,222,45,.15,Math.PI-.15);ctx.stroke();text('Trust your data.',500,450,42,'#1a1a1a')}return;}
 if(m==='cyera'){bg('#160622');function mark(x,y,s=1){for(let i=0;i<9;i++){let a=i*TAU/9;ellipse(x+cos(a)*24*s,y+sin(a)*24*s,8*s,8*s,P.accent)}}if(t<4){bg('#f1f0e9');for(let i=0;i<12;i++)line(500,300,500+cos(i*TAU/12)*300,300+sin(i*TAU/12)*250,'#a8aca033');mark(310,300,1.8);text(useTitle('cyera'),550,300,98,'#160622','center','Arial',500,560)}else if(t<7){const cs=['#160622','#441363','#6d2d93',P.accent,'#b8ff8e','#fff'];cs.forEach((c,i)=>{let x=150+i%3*250,y=140+Math.floor(i/3)*240;rect(x,y,200,180,c,40);text(c,x+100,y+95,20,i<3?'#fff':'#160622','center','Georgia')})}else if(t<9.5){text('Protect',65,150,100,P.accent,'left','Arial',600);text('your data.',65,260,100,P.accent,'left','Arial',600);text(useTitle('Secure AI.'),500,410,100,'#b8ff8e','center','Georgia',400,850)}else if(t<18){gradient('#765bce','#f0b8a4');poly([[0,370],[170,290],[330,400],[500,350],[650,420],[1000,330],[1000,600],[0,600]],'#246d67');poly([[0,460],[180,360],[350,470],[490,430],[600,500],[1000,390],[1000,600],[0,600]],'#164a44');const y=250+sin(t)*20;glow(500,y,250,P.accent+'55');if(t>16)poly([[490,y+40],[510,y+40],[690,600],[310,600]],'#e1fff599');ellipse(500,y,65,65,P.accent,'#ddadd7');for(let i=0;i<4;i++)ellipse(500,y,50-i*8,65,null,'#6c568a');if(t<13)text('New Release',500,100,50,'#fff','center','Georgia')}else if(t<25){for(let i=0;i<6;i++){let x=85+i%3*290,y=105+Math.floor(i/3)*250;rect(x,y,250,205,i%2?P.accent:'#3e7d76',18);mark(x+125,y+60,.7);text(['New Release','Website','Research','App','Print','Community'][i],x+125,y+130,25,'#fff','center','Georgia')}}else{glow(500,290,500,P.accent+'55');for(let i=0;i<5;i++)ellipse(60+i*230,100+rand(i)*380,25+rand(i)*45,25+rand(i)*45,P.accent+'66');text(P.title,500,300,78,'#fff','center','Arial',500,900);if(t>28){bg('#160622');mark(340,300,1.3);text(useTitle('cyera'),570,300,65,'#fff','center','Arial',500,470)}}return;}
 if(m==='underlord'){gradient('#5548eb','#27229e');const zoom=t>8&&t<29?1.15:1;at(440,300,zoom,0,()=>{f3Panel(-350,-230,680,460);text(P.title,-315,-175,22,'#211c2c','left');if(t<6){for(let i=0;i<6;i++){rect(-280+i%3*170,-110+Math.floor(i/3)*120,150,90,'#efedf6',8);text(['Social clips','Captions','Podcast','Summary','Video edit','Brand kit'][i],-205+i%3*170,-70+Math.floor(i/3)*120,16,'#444')}rect(-130,155,250,40,P.accent,7)}else if(t<29){rect(-300,-115,550,105,'#f5f3f8',9);text(t<13?'Please upload your video':t<20?'Choose horizontal or vertical':t<25?'Which brand colors?':'I will use your brand guide',-275,-80,21,'#333','left','Arial',400,500);rect(-300,50,550,135,'#f6f5f8',12);text(t>18&&t<21?'One horizontal and one vertical':t>25?'Use the colors in our guide':'Ask Underlord',-280,82,20,'#555','left','Arial',400,490);ellipse(215,145,20,20,P.accent);text('↑',215,145,23,'#fff');if(t>10&&t<13||t>21&&t<25){let p=phase(t,t<13?9.5:20.5,t<13?11:22);rect(mix(440,-240,p),mix(-50,120,p),130,45,'#ded7f4',6);text(t<13?'Video.mp4':'BrandGuide.pdf',mix(505,-175,p),mix(-27,142,p),14,'#32274e')}}else{rect(-300,-110,550,250,'#e9e6eb',5);text('Processing media…',-20,30,22,'#555');rect(-250,175,460*phase(t,29,32),10,P.accent,5)}});for(let i=0;i<3;i++){rect(860,120+i*135,65,65,i?'#e4d9ef':'#56b5eb',7);text(['Brand Assets','Video.mp4','BrandGuide.pdf'][i],892,205+i*135,13,'#fff')}if(t>32){const p=phase(t,32,34);for(let i=0;i<2;i++){let x=i?590:200,y=170,w=i?210:390,h=i?350:245;rect(x,y,w,h,i?'#d3a635':'#252324',7);ellipse(x+w/2,y+85,36,43,'#9b674e');rect(x+w/2-55,y+125,110,h-145,'#635047',30);rect(x+20,y+h-50,w-40,30,P.accent,5);text('Your story',x+w/2,y+h-35,21,'#fff')}}return;}
 if(m==='arrow'){bg('#f7f8f8');const cats=['Illustrations','Icons','Technical drawings','Typography','Pictograms'];if(t<4){gradient('#98bad6','#557ea7');ctx.beginPath();ctx.moveTo(80,400);ctx.bezierCurveTo(290,580,700,500,920,160);ctx.strokeStyle='#ddeff3';ctx.lineWidth=2;ctx.stroke();[[80,400],[290,580],[700,500],[920,160]].forEach(p=>ellipse(...p,5,5,P.accent,'#fff'));text(P.title,500,270,44,'#fff')}else if(t<15){let progress=clamp((t-8)/6)*4,current=Math.round(progress);cats.forEach((s,i)=>{let y=300+(i-progress)*80;alpha(Math.max(.13,1-Math.abs(i-progress)*.44),()=>text(s,500,y,40,i===current?'#152d3a':'#8799a1','center','Arial',i===current?650:400))});ctx.strokeStyle=P.accent;ctx.strokeRect(285,270,430,60);for(let i=0;i<8;i++){let x=i%2?840:140,y=130+Math.floor(i/2)*110;at(x,y,1,sin(t*.3+i)*.1,()=>{ctx.strokeStyle=P.accent;ctx.lineWidth=2;ctx.strokeRect(-28,-25,56,50);ellipse(0,0,14,14,null,P.accent)})}}else if(t<23){for(let i=0;i<6;i++){ctx.beginPath();ctx.moveTo(100,200+i*28);ctx.bezierCurveTo(350,50+i*30,600,550-i*20,900,230+i*10);ctx.strokeStyle=P.accent;ctx.lineWidth=2;ctx.stroke()}if(t<19){rect(270,200,460,200,'#151e21',10);for(let i=0;i<8;i++)text('path.create({ x: '+i*20+', y: '+i*15+' })',295,230+i*20,14,'#c0d4da','left','monospace')}}else if(t<30){for(let i=0;i<12;i++){let x=50+i%4*245,y=75+Math.floor(i/4)*170;rect(x,y,220,145,i%3===0?'#d7e3e8':i%3===1?'#f0eadf':'#b6c8cc',3);ellipse(x+110,y+70,35+sin(t+i)*3,35,P.accent);text(cats[i%5],x+110,y+125,16,'#24313c')}}else{rect(80,100,400,430,'#e9edf1',15);text('Create a variation',280,155,26,'#222');f3Rows(115,220,290,4,'#9cabb1',25);rect(520,100,400,430,'#c6b5d7',15);for(let j=0;j<7;j++){let a=j*TAU/7;ellipse(720+cos(a)*75,300+sin(a)*75,28,48,['#f1a57f',P.accent,'#f1d46d'][j%3])}ellipse(720,300,45,45,'#193748');if(t>38){bg('#fff');text(t<42?'We are here to help bring it to life':P.title,500,300,37,'#222','center','Arial',400,860)}}if(P.title!==CONFIG.demoTitle)f3Title(P.title,45,'#22343c',30);return;}
 if(m==='rive-reel'){bg('#070909');const colors=[P.accent,'#d553a2','#eac34f','#8b68f5'];if(t<6){for(let i=0;i<15;i++){let p=frac(i/15+t*.4),y=160+p*p*480;line(500-(y-100),y,500+(y-100),y,'#7a888a',4)}line(500,140,70,600,P.accent,4);line(500,140,930,600,P.accent,4);for(let i=0;i<4;i++){let p=frac(t*.2+i*.25);ellipse(500,140+p*450,20+p*180,20+p*180,null,colors[i])}text(P.title,100,80,36,'#fff','left')}else if(t<8.2){for(let i=0;i<4;i++){line(350+i*100,100,350+i*100,500,'#222');text('↑',350+i*100,120+frac(t*.5+i*.2)*370,80,colors[i]);text('↑',350+i*100,500,70,colors[i])}text('KEEP GOING',500,70,28,P.accent,'center','monospace')}else if(t<13){for(let i=0;i<7;i++)for(let j=0;j<3;j++){let lift=i===Math.floor(t)%7?sin(frac(t)*Math.PI)*50:0;rect(130+i*110,140+j*65-lift,86,125,'#e9e3ca',8);text(['A','7','Q'][j],150+i*110,165+j*65-lift,24,j%2?'#a22':'#222','left');text(['♣','♦','♥'][i%3],173+i*110,205+j*65-lift,40,j%2?'#a22':'#222')}}else if(t<21){f3Title();for(let i=0;i<9;i++){let x=100+i%3*295,y=160+Math.floor(i/3)*120;rect(x,y,250,85,t<17?'#243138':'#e8edef',18);if(i%3===0){ellipse(x+50,y+43,27,27,null,P.accent);line(x+50,y+43,x+50+cos(t)*23,y+43+sin(t)*23,P.accent,3)}else if(i%3===1){rect(x+45,y+25,150,35,P.accent,18);ellipse(x+65+phase(t%3,0,2)*110,y+42,14,14,'#fff')}else f3Rows(x+25,y+28,180,3,t<17?'#718b91':'#6e858a',14)}}else if(t<25){f3Panel(110,85,780,460,true);for(let i=0;i<35;i++){let x=180+i%5*145,y=155+Math.floor(i/5)*50;rect(x,y,35,22,colors[i%4],2);text('Team '+(i+1),x+45,y+12,14,'#d7e1dc','left')}text('EDITABLE CANVAS',500,570,17,P.accent,'center','monospace')}else{rect(100,100,800,425,'#111b22',22);text('STEP SEQUENCER',140,145,27,'#b8cecf','left','monospace');for(let r=0;r<4;r++)for(let c=0;c<8;c++){const active=(c+r)%3===0||r===2,hit=Math.floor((t-25)*3)%8===c;rect(145+c*90,195+r*72,72,58,active?colors[r]:'#1c2832',12);if(hit&&active)rect(145+c*90,195+r*72,72,58,'#ffffff66',12)}let x=145+frac((t-25)/2.67)*720;line(x,182,x,492,P.accent,3);text(P.title,500,565,23,'#b8cecf')}return;}
 if(m==='suki'){const dark=t>2.8&&t<20;bg(dark?'#1b1b1b':'#ffffe1');const c=dark?'#ffffe1':'#1b1b1b';if(t<5.7||t>10.6&&t<14){line(205,0,205,600,c,1);rect(205,210,6,140,c);const rows=t<2.8?['Suki is ambient','clinical intelligence']:t<5.7?['Seamlessly','integrated into','everyday practice.']:['Suki is building','presence at the','heart of care.'];rows.forEach((s,i)=>text(P.title!==CONFIG.demoTitle&&i===0?P.title:s,225,240+i*52,42,c,'left','Arial',500,740))}else if(t<10.7){const spread=mix(160,900,phase(t,7.6,9.7));for(let i=0;i<65;i++){let u=i/64,x=500+(u-.5)*spread;for(let j=0;j<2;j++){let y=300+sin(u*TAU-t*.9+j*Math.PI)*80*(1-phase(t,6.5,7.6)*.4);const h=30+sin(u*Math.PI)*100;line(x,y-h/2,x,y+h/2,j?P.accent:'#b9dae5',2)}}text('Clinicians',500,130,17,'#b9dae5');text('Suki',500,480,17,P.accent)}else if(t<20){bg('#a7b5a5');ellipse(300,270,140,150,'#b58d70');ellipse(650,300,115,125,'#d9ba92');rect(200,390,210,210,'#4c6258',50);rect(560,410,190,190,'#eee2c3',40);for(let i=0;i<5;i++){let x=400+i*23+(t-14)*18;alpha(1-phase(t,16,19),()=>line(x,70,x,530,'#ffffe1',2))}text(P.title,730,465,30,'#fff','center','Arial',500,380)}else{f3Title(P.title,300,'#1b1b1b',80);rect(480,395,40,6,P.accent,2)}return;}
 if(m==='explorer'){bg('#090b0b');let xx=t<11?110:380,ww=t<11?780:570;f3Panel(xx,95,ww,440,true);text(t<11?'User growth':t<28?'Run SQL':t<38?'Monthly Signups':t<52?'Chat with your project':'Local notebooks',xx+30,155,24,'#e6eeea','left');if(t>11){const words=t<19?['Meet Explorer']:t<28?['Query your database','and your logs','from one editor']:t<38?['Save your queries,','charts, and notes','in one place']:t<52?['Ask in plain language,','keep the SQL']:['Keep notebooks','in your local repo'];words.forEach((s,i)=>text(s,50,245+i*36,26,'#e6eeea','left','Arial',400,320))}if(t<11||t>28&&t<38){const progress=phase(t,t<11?5:29,t<11?8:33);for(let i=0;i<22;i++){let h=(20+i*6+rand(i)*30)*progress;rect(xx+45+i*(ww-80)/22,460-h,(ww-110)/25,h,P.accent,1)}text('Monthly signups',xx+30,205,17,'#8c9e94','left')}else if(t<28){['select * from public.events','where created_at > now() - interval \'7 days\'','order by created_at desc;'].forEach((s,i)=>text(progressText(s,phase(t,19+i*.8,21+i*.8)),xx+30,210+i*30,14,i===1?P.accent:'#b6c7be','left','monospace',ww-60));for(let j=0;j<6;j++){line(xx+30,330+j*27,xx+ww-30,330+j*27,'#344138');text('event_'+j+'        2026-11-'+(10+j),xx+35,342+j*27,12,'#a3b0a7','left','monospace')}}else if(t<52){rect(xx+25,205,ww-50,75,'#242d28',7);text('How many users signed up this month?',xx+40,240,17,'#d9e5dd','left','Arial',400,ww-75);if(t>42){text('select count(*) from users',xx+35,335,18,P.accent,'left','monospace',ww-70);text('where created_at >= month_start;',xx+35,370,16,'#b6c7be','left','monospace',ww-70)}}else{text('> notebooks pull',xx+35,280,23,P.accent,'left','monospace');text('✓ Saved to your repository',xx+35,340,20,'#dce9e0','left')}if(t>55){bg('#090b0b');ellipse(500,210,25,25,P.accent);f3Title(P.title,330,'#e6eeea',50)}else if(P.title!==CONFIG.demoTitle)f3Title(P.title,55,'#e6eeea',30);return;}
 if(m==='connector'){bg('#060708');glow(500,350,600,'#162e6a66');if(t<2.6){text(progressText(P.title,phase(t,0,1.8)),500,300,46,'#e8f0ed','center','Arial',450,870);glow(400,300,180,P.accent+'33')}else if(t<13){text("Let's get some work done",500,185,30,'#e8f0ed');rect(190,240,620,150,'#232426',22);text(t<8?'Ask Gemini Enterprise':progressText('Count the competitors in my connected table.',phase(t,8,10.7)),220,285,22,'#b4b7b6','left','Arial',400,550);text('+    ☷    ◇',220,354,23,'#ddd','left');ellipse(770,350,18,18,'#36558c');text('↑',770,350,22,'#fff');if(t>4&&t<8){rect(310,382,350,130,'#292d2d',12);text('Search',340,415,20,'#eee','left');rect(575,401,56,28,'#3979c8',14);ellipse(615,415,10,10,'#fff');if(t>5){text(useTitle('Supabase'),340,470,20,'#eee','left','Arial',400,220);let p=phase(t,6.2,6.8);rect(575,456,56,28,p>.5?P.accent:'#616565',14);ellipse(589+p*26,470,10,10,'#fff')}}}else{glow(610,300,250,P.accent+'55');glow(390,300,250,'#448fff55');[390,610].forEach(x=>rect(x-70,230,140,140,'#12191d',18));text('✦',390,300,90,'#7d9ee8');poly([[595,260],[573,310],[611,310],[605,343],[651,290],[611,290],[617,260]],P.accent);text('×',500,300,26,'#aaa');text(P.title,500,430,28,'#dde9e3')}return;}
 if(m==='pipelines'){bg('#050807');function db(x,y){ellipse(x,y+120,85,28,'#050807','#e1ebe5');rect(x-85,y,170,120,'#050807');line(x-85,y,x-85,y+120,'#e1ebe5',2);line(x+85,y,x+85,y+120,'#e1ebe5',2);ellipse(x,y+60,85,28,null,'#e1ebe5');ellipse(x,y,85,28,'#050807','#e1ebe5')}if(t<5){text(P.title,500,280,52,'#fff','center','Arial',500,900);text(t>3?'Built to move your data':'Introducing',500,205,23,P.accent)}else if(t<9||t>19&&t<23){const paired=t>19;for(let i=0;i<5;i++){line(50,250+i*25,950,250+i*25,'#1b583e');for(let j=0;j<3;j++){let x=50+frac(t*.15+i*.21+j*.33)*850;rect(x,247+i*25,65,6,P.accent,3)}}if(paired){db(220,240);db(780,240)}else db(500,240);text('Your data keeps moving',500,105,30,'#e8efeb')}else if(t<11){rect(285,130,430,350,'#161a18',16);text('Query latency',320,180,27,'#eee','left');const p=phase(t,9,10.4),c=t<9.7?P.accent:'#d77869';text((.46+p).toFixed(2)+' s',320,240,43,c,'left');for(let i=1;i<40;i++)line(330+(i-1)*8,430-110*Math.pow((i-1)/40,3)*p,330+i*8,430-110*Math.pow(i/40,3)*p,c,3)}else if(t<14){text('Keep production fast.',500,280,40,'#fff');text('Run analytics where it belongs.',500,335,30,P.accent)}else if(t<19){rect(265,80,470,440,'#1b1e1c',13);text('Add destination',300,125,28,'#eee','left');['Type','Name','Publication','Region'].forEach((s,i)=>{text(s,300,190+i*65,15,'#aaa','left');rect(300,208+i*65,400,32,'#292e2a',5);text(['Analytics','My destination','Selected tables','EU Central'][i],315,225+i*65,15,'#ddd','left')});rect(300,470,400,35,P.accent,5);text('Create and start pipeline',500,487,18,'#05331e')}else if(t<30){const extra=t>28;[130,600].forEach((x,j)=>{rect(x,165,280,300,j?'#132b47':'#171e1a',8);rect(x,165,280,45,j?'#224979':'#293c30',8);text(j?'analytics':'postgres',x+20,189,23,'#eee','left');['id','street_number','street_address',extra?'country':'state'].forEach((s,i)=>{text(s,x+20,250+i*52,18,'#d0dad5','left');line(x,273+i*52,x+280,273+i*52,'#34464c')})});line(410,320,600,320,P.accent,3);const p=phase(t,25.5,28);rect(420+p*150,307,45,25,P.accent,4);if(extra){ctx.strokeStyle=P.accent;ctx.lineWidth=3;ctx.strokeRect(600,165,280,300)}}else{text(t<34?'Production stays responsive.':P.title,500,300,40,'#eee','center','Arial',500,900);rect(480,385,40,6,P.accent,3)}return;}
 if(m==='wonderful'){bg(t<4.7||t>13?'#242424':'#fafaf6');if(t<4.7){if(t>1){const g=ctx.createLinearGradient(0,0,1000,600);g.addColorStop(0,'#b98657');g.addColorStop(.3,P.accent);g.addColorStop(.6,'#627b81');g.addColorStop(1,'#46513a');rect(0,125,1000,350,g);for(let i=0;i<5;i++)rect(i*200,125,200,350,i%2?'#768ca644':'#d3b89333')}text(P.title,500,300,mix(270,125,phase(t,0,1.6)),'#fff','center','Arial',300);if(t>1.6){text('wonderful raises',500,205,28,'#fff');text('Series C',500,410,26,'#fff')}}else if(t<8){text('backed by',120,100,18,'#777','left');['Insight Partners','Salesforce','Vine Ventures'].forEach((s,i)=>{text(s,115,200+i*105,28,'#505050','left');line(390,200+i*105,610,200+i*105,P.accent,3);text(['Index Ventures','IVP','9Yards'][i],650,200+i*105,28,'#505050','left')})}else if(t<13){for(let i=0;i<12;i++){let x=60+rand(i)*830,y=70+rand(i+30)*440;rect(x,y,90,70,['#759f9c','#caaa8a',P.accent][i%3]);poly([[x,y+55],[x+40,y+15],[x+90,y+55]],'#f5e3cf');ellipse(x+70,y+18,10,10,'#e6c59c')}rect(225,250,550,105,'#fafaf6ee');text(t<10?'Accelerating AI adoption':t<11.5?'in '+Math.min(35,30+Math.floor((t-10)*5))+'+ countries':'and counting',500,300,t<10?35:48,'#505552','center','Arial',400,810)}else{for(let i=0;i<65;i++){let a=i*TAU/65;ellipse(500+cos(a)*190,300+sin(a)*190,2,2,P.accent+'66')}text(t<16?'The Enterprise AI OS':useTitle('wonderful'),500,300,40,'#f5f7f4','center','Arial',400,900)}return;}
 if(m==='zapier'){gradient(t<7.5?'#e983f2':'#dfffa5',P.accent);function win(x,y,w,h,label,kind){rect(x,y,w,h,'#a8fb9a',0);ctx.strokeStyle='#25124c';ctx.strokeRect(x,y,w,h);rect(x,y,w,20,P.accent,0);text('×',x+w-10,y+10,15,'#eeecd9');if(kind===0){text('???????',x+w/2,y+h*.45,24,'#29144e','center','monospace');rect(x+15,y+h-35,w-30,18,'#b194e2',9)}else if(kind===1){for(let i=0;i<5;i++)text('for (task '+i+') run();',x+8,y+42+i*16,13,'#25124c','left','monospace',w-15)}else{text(label,x+w/2,y+h/2,22,'#25124c','center','monospace',w-10)}}if(t<7.6){const count=Math.floor(phase(t,1,4)*14);for(let i=count;i>=0;i--)win(230-i*10,200-i*6,230,200,'',0);if(t>1.5)win(555,95,230,190,'code',1);if(t>1.8)for(let i=0;i<Math.floor(phase(t,2.5,5.5)*9)+1;i++)win(560-i*5,350-i*4,150,135,'Final_Final.txt',2);if(t>4)win(90,420,200,145,'APP APP APP',2);if(t>5.2){rect(725,330,180,115,'#c99df0',10);text('!',815,388,90,'#81317d')}if(t>6){rect(710,230,200,65,t<7.2?'#e9b4e9':'#dfffaa',33);ellipse(t<7.2?745:875,263,25,25,'#fff');text(t<7.2?'OFF':'ON',810,263,27,'#25124c')}}else{const merge=phase(t,8.7,9.8);for(let i=0;i<3;i++){let y=mix(205+i*90,300,merge);alpha(i===0?1:1-merge,()=>{rect(280,y,440,70,'#efffd8',8);ctx.strokeStyle='#443670';ctx.strokeRect(280,y,440,70);rect(305,y+22,28,28,P.accent,3);rect(350,y+22,28,28,'#dfb486',3);line(405,y+28,580,y+28,P.accent,5);line(405,y+42,530,y+42,P.accent,4);text('✓',675,y+35,35,'#68975f')})}text(P.title,500,135,35,'#25124c','center','monospace',850)}if(P.title!==CONFIG.demoTitle&&t<7.6)f3Title(P.title,55,'#25124c',30);return;}
 if(m==='dub'){bg(t<5.6?'#1b2225':'#f8f9fa');for(let i=0;i<25;i++){line(i*45,0,i*45,600,t<5.6?'#33414455':'#cbd1d11a');line(0,i*45,1000,i*45,t<5.6?'#33414455':'#cbd1d11a')}if(t<5.6){for(let i=0;i<(t>2.6?2:1);i++){let x=t>2.6?260+i*350:440;rect(x,130,220,280,'#1d2021',3);rect(x+35,130,145,75,'#d4d6d3',2);rect(x+130,137,35,60,'#222');rect(x+22,240,176,145,'#eef0e9',2);text(i?'Partner referrals':'LAUNCH WEEK',x+110,275,18,'#222','center','Georgia',600,170);text('dub',x+155,360,22,'#222')}return;}if(t<13.8){let collapse=phase(t,8.4,9.3);for(let i=0;i<7;i++){let a=i*TAU/7,x=500+cos(a)*170*(1-collapse),y=260+sin(a)*120*(1-collapse);alpha(1-collapse,()=>{ellipse(x,y,25,25,['#c8aa8b','#93adab','#bda9c1'][i%3]);ellipse(x,y-5,9,9,'#efddc9')})}ellipse(500,260,48,48,'#c3a58f');ellipse(500,250,20,20,'#efddc9');if(t>10){text('$'+Math.round(10460*phase(t,10,12)).toLocaleString(),500,360,46,'#111');for(let i=0;i<3;i++){text(['Partner approved','Sale made','Sale made'][i],460,430+i*42,18,'#818c86','left');ellipse(430,430+i*42,7,7,P.accent)}}}else if(t<20){f3Panel(70,85,860,450);const names=['Visits','Starts','Submissions','Approvals'],colors=[P.accent,'#9c40ee','#e964bb','#21d4b6'];names.forEach((s,i)=>{text(s,110+i*210,150,16,'#666','left');text(['8,312','1,652','100','40'][i],110+i*210,185,29,'#1a201d','left')});const progress=phase(t,14.2,15.5);for(let i=0;i<4;i++){let x=95+i*205,h0=[110,45,28,14][i],h1=[45,28,14,12][i];saved(()=>{ctx.beginPath();ctx.rect(95,220,820*progress,200);ctx.clip();ctx.beginPath();ctx.moveTo(x,300-h0);ctx.bezierCurveTo(x+90,300-h0,x+90,300-h1,x+205,300-h1);ctx.lineTo(x+205,300+h1);ctx.bezierCurveTo(x+90,300+h1,x+90,300+h0,x,300+h0);ctx.closePath();ctx.fillStyle=colors[i];ctx.fill()})}for(let r=0;r<4;r++){text('Partner '+(r+1),110,420+r*25,14,'#666','left');for(let c=1;c<4;c++)text(String((r+1)*c*5),110+c*210,420+r*25,14,'#777','left')}}else{text(t<22?P.title:'dub',500,280,t<22?42:75,'#151819','center','Arial',650,840);if(t>=22)text('d.to/referrals',500,365,28,'#151819');rect(480,420,40,5,P.accent,2)}return;}
 f3Title();
}