Deck.transition('wash',{dur:1.2,frag:`void main(){ float x=vUv.x+.04*sin(vUv.y*14.+p*6.)+.02*sin(vUv.y*31.-p*9.); float e=p*1.3-.15; float m=smoothstep(e+.01,e-.01,x); float foam=smoothstep(.06,0.,abs(x-e))*sin(p*3.14159); vec4 A=texture(tA,vUv), B=texture(tB,vUv); o=mix(A,B,m)+vec4(vec3(.95,.97,1.)*foam*.6,0.); o.a=1.; }`}); Deck.scene({ id:'loop', title:'The loop', enterWith:'wash', post:{tone:'none'}, beats:[{dur:3.6,hold:4},{dur:5.4,hold:5},{dur:4.2,hold:5},{dur:7.4,hold:6}], notes:[ 'Start with the plain fact. In May 2026, Anthropic said Claude wrote over 80 percent of the code it merged.', 'Code is only the first part. By Anthropic\'s own measure, Claude led under 1 percent of its AI research in February 2026 and 26 percent in August. The fan has 26 blades. The sliver is one.', 'METR looked at Anthropic in November 2026 and put progress at about twice the old rate, mostly thanks to AI. The small wheel turns exactly twice for each turn of the big one.', 'And then it closes. Each version helps build the next one, and each step takes less time than the last. Let it run.' ], setup(d){ const E=d.E,c=d.ctx2d,PI=Math.PI; const K='#1a1a1a',CR='#f3ead6',CO='#1e4fa8',VE='#e2442a',YE='#f2c230',PK='#f2a7b8',MT='#8fd3b6'; const BAR=[YE,VE,CO,MT,PK,CR,K]; const BG=[[.949,.761,.188],[.949,.655,.722],[.561,.827,.714]]; const F=[{x:1190,y:490,w:640,h:360},{x:1580,y:830,w:288,h:162},{x:1450,y:690,w:320,h:180}]; const PX=.875,PY=.8125,RR=.36; const U={uA:BG[0],uB:BG[1],uR:[0,0,0,0],uKind:0,uFull:0,uU:0,uBlur:0}; const fs={x:0,y:0,w:0,h:0}; const selT=[3,4.8,3.6]; const appear=(n,s)=>n==0?s.k(0,2.6,3.2,E.outBack):n==1?s.k(1,4.4,5,E.outBack):s.k(2,3.2,3.8,E.outBack); const fr=(n,a)=>{const f=F[n]; fs.w=f.w*a; fs.h=f.h*a; fs.x=f.x+(f.w-fs.w)/2; fs.y=f.y+(f.h-fs.h)/2; return fs;}; const disc=(x,y,rad,col)=>{c.beginPath(); c.arc(x,y,rad,0,6.2832); c.fillStyle=col; c.fill();}; const tag=(x,y,w,h,label)=>{const th=Math.min(h*.2,70); if(th<8)return; const tx=x+w*.04,ty=y+h*.07,tw=th*(.45+.45*label.length); d.rect(tx,ty,tw,th,K); d.text(label,{x:tx+th*.22,y:ty+th*.12,size:th*.7,font:'mono',color:CR});}; const frameDraw=(n,s,sel)=>{const a=appear(n,s); if(a<.01)return; fr(n,a); c.lineWidth=12; c.strokeStyle=K; c.strokeRect(fs.x-6,fs.y-6,fs.w+12,fs.h+12); if(n==2){ d.rect(fs.x+40,fs.y+fs.h+6,16,14,K); d.rect(fs.x+fs.w-56,fs.y+fs.h+6,16,14,K); } const sa=s.k(n,selT[n],selT[n]+.6,E.lin)*sel; if(sa>0) d.select(fs.x-24,fs.y-24,fs.w+48,fs.h+48,{a:sa});}; const blade=(px,py,ang,len,col)=>{const hw=.05; c.beginPath(); c.moveTo(px,py); c.arc(px,py,len,-ang-hw,-ang+hw); c.closePath(); c.fillStyle=col; c.fill();}; const gear=(cx,cy,N,rt,rr,ang,col)=>{const tau=2*PI/N; c.beginPath(); for(let k=0;k{ for(let i=0;i<4;i++){const x=150+i*250,y=470,w=220,h=400,f=s.k(0,.6+i*.35,1.8+i*.35,E.io3); d.rect(x,y,w,h,CR); if(f>0){const fy=y+h*(1-f); d.rect(x,fy,w,h*f,VE); c.save(); c.beginPath(); c.rect(x,fy,w,h*f); c.clip(); c.fillStyle='#b5301d'; c.beginPath(); for(let row=0;row<20;row++) for(let col=0;col<11;col++){const cx=x+10+col*20+(row&1)*10,cy=y+10+row*20,rad=1.5+5.5*(row/19); c.moveTo(cx+rad,cy); c.arc(cx,cy,rad,0,6.2832);} c.fill(); c.restore();} c.lineWidth=6; c.strokeStyle=K; c.strokeRect(x,y,w,h);} d.text('AI now writes the code.',{x:150,y:150,size:110,font:'display',color:K,show:s.k(0,.3,1.6,E.lin)}); d.text('Claude wrote over 80% of the code Anthropic merged. May 2026.',{x:154,y:310,size:32,font:'mono',color:K,show:s.k(0,1.2,2.2,E.lin),style:'fade'}); frameDraw(0,s,sel); }; const sc1=(s,sel)=>{ const FX=1060,FY=930; blade(170,FY,PI/2,430,VE); disc(170,FY,16,K); c.setLineDash([16,14]); c.lineWidth=4; c.strokeStyle=K; c.beginPath(); c.arc(FX,FY,470,PI,2*PI); c.stroke(); c.setLineDash([]); const op=s.k(1,1.6,4.6,E.io3); for(let i=0;i<26;i++) blade(FX,FY,PI*(1-(i+.5)/26*op),430,CO); disc(FX,FY,24,K); disc(FX,FY,8,CR); d.text('And leads 26% of the research.',{x:150,y:110,size:100,font:'display',color:CO,show:s.k(1,1.4,2.6,E.lin)}); d.text("Share of Anthropic's AI research led by Claude, its own measure.",{x:154,y:255,size:30,font:'mono',color:K,show:s.k(1,2,3,E.lin),style:'fade'}); d.text('under 1%',{x:215,y:620,size:60,font:'arialBold',color:K,show:s.k(1,1.6,2.4,E.lin)}); d.text('February 2026',{x:217,y:700,size:30,font:'mono',color:K,show:s.k(1,1.6,2.4,E.lin),style:'fade'}); d.text('26%',{x:FX,y:600,size:260,font:'800 SIZEpx system-ui,sans-serif',color:CR,align:'center',style:'fade',show:s.k(1,3.6,4.4,E.lin)}); d.text('August 2026',{x:FX,y:972,size:32,font:'mono',color:K,align:'center',style:'fade',show:s.k(1,3.8,4.6,E.lin)}); frameDraw(1,s,sel); }; const sc2=(s,sel)=>{ const A=s.t*.3,B=PI/12-2*A; d.rect(1080,884,760,92,K); disc(1080,930,46,K); disc(1840,930,46,K); c.save(); c.beginPath(); c.rect(1080,884,760,92); c.clip(); const off=((-B*46)%120+120)%120; c.fillStyle=CR; c.beginPath(); for(let i=-1;i<8;i++){const x=1080+i*120+off; c.moveTo(x+34,930); c.arc(x,930,34,0,6.2832);} c.fill(); c.strokeStyle=K; c.lineWidth=4; c.lineCap='round'; c.beginPath(); for(let i=-1;i<8;i++){const x=1080+i*120+off,h1=i*.9+s.t*.15,m1=i*2.3+s.t*1.1; c.moveTo(x,930); c.lineTo(x+16*Math.cos(h1),930+16*Math.sin(h1)); c.moveTo(x,930); c.lineTo(x+26*Math.cos(m1),930+26*Math.sin(m1));} c.stroke(); c.restore(); gear(470,800,24,212,182,A,K); for(let i=0;i<5;i++) disc(470+118*Math.cos(A+i*1.2566),800+118*Math.sin(A+i*1.2566),36,MT); disc(470,800,44,MT); disc(470,800,18,K); gear(765.5,800,12,112,84,B,CO); disc(765.5,800,22,MT); const gx=765.5+62*Math.cos(B),gy=800+62*Math.sin(B),px=1080+28*Math.cos(B),py=930+28*Math.sin(B); c.strokeStyle=VE; c.lineWidth=18; c.lineCap='round'; c.beginPath(); c.moveTo(gx,gy); c.lineTo(px,py); c.stroke(); disc(gx,gy,7,CR); disc(px,py,7,CR); disc(1840,930,10,CR); const h=d.text('So the next one comes\ntwice as fast.',{x:150,y:110,size:96,font:'display',color:K,show:s.k(2,1.4,2.6,E.lin)}); d.text('METR on Anthropic, November 2026: about 2x the old rate, mostly thanks to AI.',{x:154,y:h.y+h.h+30,size:28,font:'mono',color:K,show:s.k(2,2.2,3.2,E.lin),style:'fade'}); frameDraw(2,s,sel); }; const sc3=(s,sel,u)=>{ const j0=Math.floor(u),na=sel*s.k(3,1.4,2,E.lin); for(let j=j0;jj0&&h>70&&h<1300&&na>0) d.select(x0-12,y0-12,w+24,h+24,{a:na});} const V=d.view,bs=s.k(3,1.6,2.6,E.out3),ps=s.k(3,2,3.2,E.lin),by=V.y1-80; if(bs>0){ c.save(); c.translate(0,(1-bs)*200); for(let i=0;i<14;i++) d.rect(260+i*56,by,52,34,BAR[i%7],i<7?1:.5); c.strokeStyle=K; c.lineWidth=3; c.beginPath(); const rx=[190,260+14*56+50]; for(let i=0;i<2;i++){const x=rx[i],y=by+17; c.moveTo(x+16,y); c.arc(x,y,16,0,6.2832); c.moveTo(x-26,y); c.lineTo(x+26,y); c.moveTo(x,y-26); c.lineTo(x,y+26);} c.stroke(); c.restore(); } if(ps>0){ const str='The next version builds\nthe next version.'; const tx=1130,ty=140; const tb=d.text(str,{x:tx,y:ty,size:72,font:'display',color:K,show:0}); const al=Math.min(1,ps*3); d.rect(tb.x-30,tb.y-26,tb.w+70,tb.h+60,K,al); d.rect(tb.x-40,tb.y-36,tb.w+70,tb.h+60,CR,al); d.text(str,{x:tx,y:ty,size:72,font:'display',color:K,show:ps}); } }; const sc=(n,s,sel,u)=>{ if(n==0)sc0(s,sel); else if(n==1)sc1(s,sel); else if(n==2)sc2(s,sel); else sc3(s,sel,u); }; const preview=(n,s,f)=>{ c.save(); c.beginPath(); c.rect(f.x,f.y,f.w,f.h); c.clip(); c.translate(f.x,f.y); c.scale(f.w/1920,f.h/1080); sc(n,s,0,0); c.restore(); }; return { U, fs, F, BG, sc, preview, appear, fr, bg:d.pass(`uniform vec3 uA,uB; uniform vec4 uR; uniform float uKind,uFull,uU,uBlur; const vec2 PP=vec2(.875,.8125); const float RR=.36; vec3 pal(float k){ k=mod(k,6.); if(k<.5) return vec3(.953,.918,.839); if(k<1.5) return vec3(.118,.31,.659); if(k<2.5) return vec3(.886,.267,.165); if(k<3.5) return vec3(.949,.761,.188); if(k<4.5) return vec3(.561,.827,.714); return vec3(.949,.655,.722); } vec3 level(vec2 L,float j){ vec2 v=(L-vec2(.28,.5))*vec2(1.7778,1.); float rr=length(v), R0=.4; vec3 col=pal(j); if(rr.5) col=mix(col,pal(j+3.),step(fa,.5*pow(1.-rr/R0,.7)-.05)*step(.08,rr)); if(j>2.5) col=mix(col,vec3(.1),step(abs(fract(fa*2.+rr*(3.+j))-.5),.06)); col=mix(col,vec3(.1),step(abs(rr-R0+.008),.008)); } return col; } vec3 nest(vec2 q,float u){ float j0=floor(u), jd=j0; vec2 Ld=PP+(q-PP)*pow(RR,u-j0); vec2 mm=vec2(.025,.044); for(int i=1;i<8;i++){ float j=j0+float(i); vec2 L=PP+(q-PP)*pow(RR,u-j); if(any(lessThan(L,-mm))||any(greaterThan(L,vec2(1.)+mm))) break; if(any(lessThan(L,vec2(0.)))||any(greaterThan(L,vec2(1.)))) return vec3(.1); jd=j; Ld=L; } return level(Ld,jd); } void main(){ vec2 g=design(vUv); vec3 c=uA; vec2 q=(g-uR.xy)/max(uR.zw-uR.xy,vec2(1e-3)); float inside=max(uFull,step(0.,q.x)*step(q.x,1.)*step(0.,q.y)*step(q.y,1.)); if(inside>.5){ if(uKind>.5){ if(uFull>.5) q=g/vec2(1920.,1080.); vec3 acc=vec3(0.); for(int i=0;i<4;i++) acc+=nest(q,max(uU-float(i)*uBlur,0.)); c=acc*.25; } else c=uB; } c*=.94+.1*fbm(g*vec2(.35,.9)); c+=(hash12(floor(g))-.5)*.05; o=vec4(c,1.); }`,'loop paper') }; }, draw(s,d,r){ const c=d.ctx2d,E=d.E,U=r.U,V=d.view; const z1=s.k(1,0,1.4,E.io3),z2=s.k(2,0,1.4,E.io3),z3=s.k(3,0,1.4,E.io3); const n=z3>0?3:z2>0?2:z1>0?1:0, zz=n==3?z3:n==2?z2:n==1?z1:1; const kk=s.k(3,1.4,7.4,E.lin), u=7*Math.pow(kk,1.8); const blur=kk>0&&kk<1?Math.min(.06,.02*7*1.8*Math.pow(kk,.8)/6):0; U.uFull=0; U.uU=0; U.uBlur=0; if(zz<1){ const m=n-1,F=r.F[m],Se=1920/F.w,S=Math.pow(Se,zz),fx=F.x+F.w/2,fy=F.y+F.h/2,f=(S-1)/(Se-1); const Cx=fx+(960-fx)*f,Cy=fy+(540-fy)*f,e=Math.pow(zz,6); let x0=Cx+S*(F.x-fx),y0=Cy+S*(F.y-fy),x1=Cx+S*(F.x+F.w-fx),y1=Cy+S*(F.y+F.h-fy); U.uKind=n==3?1:0; if(U.uKind==0){ x0+=(V.x0-x0)*e; y0+=(V.y0-y0)*e; x1+=(V.x1-x1)*e; y1+=(V.y1-y1)*e; } U.uR[0]=x0; U.uR[1]=y0; U.uR[2]=x1; U.uR[3]=y1; U.uA=r.BG[m]; U.uB=n<3?r.BG[n]:r.BG[0]; r.bg.draw(U); c.save(); c.translate(Cx,Cy); c.scale(S,S); c.translate(-fx,-fy); r.sc(m,s,1-zz,0); r.preview(n,s,F); c.restore(); } else if(n<3){ const a=r.appear(n,s), fs=r.fr(n,a); U.uR[0]=fs.x; U.uR[1]=fs.y; U.uR[2]=fs.x+fs.w; U.uR[3]=fs.y+fs.h; U.uA=r.BG[n]; U.uB=n<2?r.BG[n+1]:r.BG[0]; U.uKind=n==2?1:0; r.bg.draw(U); r.sc(n,s,1,0); if(a>.01){ r.fr(n,a); r.preview(n+1,s,r.fs); } } else { U.uFull=1; U.uKind=1; U.uU=u; U.uBlur=blur; U.uA=r.BG[0]; U.uB=r.BG[0]; U.uR[0]=0; U.uR[1]=0; U.uR[2]=1920; U.uR[3]=1080; r.bg.draw(U); r.sc(3,s,1,u); } } });