Deck.transition('flaps', { dur: 1.25, frag: `void main() { if (p <= 0.) { o = texture(tA,vUv); return; } if (p >= 1.) { o = texture(tB,vUv); return; } vec2 count=vec2(12.,8.), cell=floor(vUv*count), uv=fract(vUv*count); float delay=.48*(.68*cell.x/11.+.32*(1.-cell.y/7.))+.045*hash12(cell); float k=smoothstep(0.,1.,clamp((p-delay)/.475,0.,1.)); float face=cos(3.141593*k), wide=max(.015,abs(face)); vec2 f=vec2(uv.x,(uv.y-.5)/wide+.5); vec2 st=(cell+clamp(f,0.,1.))/count; vec3 c=face>=0.?texture(tA,st).rgb:texture(tB,st).rgb; float edge=smoothstep(0.,.018,min(f.y,1.-f.y)); float seam=1.-.52*sin(3.141593*k)*exp(-abs(uv.y-.5)*140.); c*=seam*(.61+.39*wide); c+=.19*sin(3.141593*k)*exp(-max(0.,min(f.y,1.-f.y))*75.); o=vec4(mix(vec3(.012,.013,.015),c,edge),1.); }` }); Deck.scene({ id: 'swarm', title: 'A country of them', enterWith: 'flaps', post: {tone:'aces', exposure:1, bloom:.85, threshold:.9, vignette:.19, grain:.025}, beats: [{dur:3.6,hold:4},{dur:4.4,hold:4},{dur:4.8,hold:5},{dur:8.6666667,hold:6}], notes: [ 'This is one of them, working alone.', 'Now thirty thousand at the same time. That is the number of agents at work inside Anthropic in August 2026.', 'In September 2026 OpenAI said about ten thousand agents, working together for 88 hours, settled the Navier-Stokes Millennium problem, with the proof checked in Lean. In November, Levent Alpöge of Anthropic, working with Claude, released seventeen million lines of proof of the Riemann hypothesis. The Lean and Mathlib groups certified it. No person has read and understood the whole thing.', 'This one is an illustration. A million of them at fifty times human speed is about a year and a half of thinking every second. Let the counter run while you talk.' ], setup(d) { return { uniforms: {uCity:0,uWall:0,uOrbit:0,uMouse:[0,0]}, equation: '∑ 1/n² = π²/6', bg: d.pass(` uniform float uCity,uWall,uOrbit; uniform vec2 uMouse; float inside(float a,float b,float x,float aa) { return smoothstep(a-aa,a+aa,x)*(1.-smoothstep(b-aa,b+aa,x)); } float envelope(vec2 id) { return step(1.,mod(id.x,15.))*step(1.,mod(id.y,19.)) *(1.-smoothstep(.8,1.,length((id-vec2(3.,56.))/vec2(82.,85.)))); } float ridges(float x,float h,float k) { return h-100.*vnoise(vec2(x*.0026+k,k))-24.*vnoise(vec2(x*.008,k)); } vec3 landscape(vec2 q,float high) { float y=q.y, x=q.x+uMouse.x*8., horizon=mix(655.,275.,high); vec3 c=mix(vec3(.020,.022,.027),vec3(.105,.112,.124),exp(-abs(y-horizon)*.0045)); float farY=ridges(x,horizon+10.,4.5); float nearY=ridges(x+107.,horizon+55.,13.); c=mix(c,vec3(.048,.051,.057),smoothstep(farY-1.,farY+2.,y)); c=mix(c,vec3(.025,.027,.031),smoothstep(nearY-1.,nearY+2.,y)); c=mix(c,vec3(.017,.019,.023)+.011*vnoise(vec2(x*.004,y*.025)),smoothstep(horizon-6.,horizon+50.,y)); return c; } vec3 solo(vec2 q) { vec3 c=landscape(q,0.); vec2 mid=vec2(1300.,501.)+uMouse*vec2(15.,10.)+vec2(0.,2.5*sin(uTime*.49)); mid=mix(mid,vec2(1240.,608.),uCity); float zoom=mix(1.,.25,uCity); vec2 f=(q-mid)/zoom, dim=vec2(320.,180.); float edge=sdBox(f,dim); float face=1.-smoothstep(-1.35,1.35,edge); float grain=hash12(floor(f)); float light=.78+.09*exp(-dot(f/vec2(380.,230.),f/vec2(380.,230.)))+.023*grain-.0002*f.y; c+=vec3(.11,.12,.135)*exp(-max(edge,0.)*.013); float floorY=mid.y+dim.y*zoom+16.; float down=q.y-floorY; if (down>0.) { vec2 refl=vec2(f.x+2.3*sin(down*.18+uTime*.75)+down*.022*sin(down*.059), dim.y-down/(zoom*.49)); float r=1.-smoothstep(-1.,6.+down*.07,sdBox(refl,dim)); c+=vec3(.265,.276,.30)*r*exp(-down*.013)*(.73+.27*vnoise(vec2(q.x*.015,down*.28-uTime*.58))); c+=.057*exp(-abs(f.x)*.0024-down*.02); } c=mix(c,vec3(light,light*1.006,light*1.013),face); float hair=inside(-278.,278.,f.x,1.)*(inside(-122.,-121.,f.y,1.)+inside(119.,120.,f.y,1.)); float stamp=inside(-277.,-242.,f.x,1.)*inside(-147.,-143.,f.y,1.); float foot=inside(229.,277.,f.x,1.)*inside(139.,143.,f.y,1.)*step(.20,fract(f.x*.14)); c*=1.-face*(.20*hair+.49*stamp+.33*foot); c+=vec3(1.45,1.5,1.6)*(1.-smoothstep(.18,1.3,abs(edge)))*step(-.02,f.x*.0001+f.y*.0002); return c; } vec3 city(vec2 q) { vec3 c=landscape(q,1.); float pitch=.245+.084*uCity; float si=sin(pitch), co=cos(pitch); vec2 v=(q-vec2(1010.,565.))*vec2(1.,-1.)/1080.; vec3 ro=vec3(-7.+2.8*uMouse.x,10.+7.*uCity+uMouse.y*.55,-8.-3.*uCity); vec3 rd=vec3(v.x,-si*1.22+v.y*co,co*1.22+v.y*si); float t=ro.y/max(-rd.y,.001); vec2 g=ro.xz+t*rd.xz; float fade=exp(-t*.013)*smoothstep(.008,.08,-rd.y); if (rd.y<-.018&&t<260.) { const float sx=.69, sz=.87; vec2 gp=g/vec2(sx,sz); float road=1.-step(1.,mod(gp.x,15.))*step(1.,mod(gp.y,19.)); c=mix(c,vec3(.013,.015,.019),road*.55*fade); float groundGlow=exp(-8.*length(fract(gp)-vec2(.5,.28)))*envelope(floor(gp)); c+=vec3(.18,.20,.23)*groundGlow*fade; float aa=.00115*t; float lamps=0., mirror=0.; float row=floor(gp.y); for (int i=0;i<5;i++) { float j=row+float(i)-2.; float tz=((j+.28)*sz-ro.z)/rd.z; float y=ro.y+tz*rd.y; float x=(ro.x+tz*rd.x)/sx; vec2 id=vec2(floor(x),j); float seed=hash12(id); float h=.204*(.84+.27*seed); float w=h*1.77778/sx*.5; float mask=inside(-w,w,fract(x)-.5,aa/sx); float lot=envelope(id)*step(.064,seed); float flash=.83+.29*seed+.07*sin(uTime*.85+seed*110.); lamps=max(lamps,mask*inside(0.,h,y,aa)*lot*flash); mirror=max(mirror,mask*inside(.014,h,-y,aa*1.55)*lot*flash); } float distant=smoothstep(57.,157.,t); float glitter=.23*envelope(floor(gp))*groundGlow; c+=vec3(1.95,2.02,2.15)*fade*(mix(lamps,glitter,distant)+mirror*.21); } c+=vec3(.047,.052,.064)*exp(-pow((q.x-1300.)/640.,2.)-abs(q.y-288.)*.013); return c; } vec3 archive(vec2 q) { vec3 c=landscape(q,.38); q.x-=uMouse.x*10.; q.y-=uMouse.y*6.; float x=(q.x-962.)/833.; float top=226.-104.*x; float y=(q.y-top)/(627.+135.*x); float aa=.0017; float slab=inside(0.,1.,x,aa)*inside(0.,1.,y,aa); float side=inside(-.062,0.,x,aa)*inside(.043,.985,y,aa); float fog=exp(-length((q-vec2(1360.,620.))/vec2(545.,480.))*1.7); c+=vec3(.060,.067,.079)*fog; c=mix(c,vec3(.046,.05,.061)+.055*fog,side); float cols=x*6., band=(y-.045)*87.; vec2 id=floor(vec2(cols,band)); float seed=hash12(id); float lane=fract(cols), lineY=fract(band); float lengthMask=inside(.075+.11*step(.84,seed),.70+.24*seed,lane,.011); float character=floor(lane*34.); float letter=hash12(vec2(character+47.*id.x,id.y)); float ink=lengthMask*inside(.24,.55+letter*.19,lineY,.13); ink*=.38+.62*step(.18,letter)*smoothstep(.02,.24,fract(lane*34.)); ink*=step(.045,seed); float content=inside(.026,.974,x,aa)*inside(.034,.961,y,aa); float done=smoothstep(y*.26+x*.46-.08,y*.26+x*.46+.19,uWall); float sweep=exp(-abs(y*.26+x*.46-uWall)*46.)*sin(3.14159*uWall); vec3 page=vec3(.037,.041,.052)+vec3(.080,.089,.105)*fog; page+=vec3(.67,.72,.80)*ink*content*(.53+.43*x)*done; page+=vec3(.13,.14,.16)*sweep; float frame=(1.-inside(.006,.994,x,aa)*inside(.007,.993,y,aa)); page+=vec3(.24,.27,.32)*frame; page+=vec3(.58,.62,.69)*inside(.006,.994,x,aa)*inside(.02,.023,y,aa); c=mix(c,page,slab); float sk=q.y-777.+.00042*(q.x-1330.)*(q.x-1330.); float chan=sk/13.; float flow=clamp(uWall*1.27,0.,1.); vec2 st=vec2((q.x-420.*flow-uTime*9.)/54.,chan); float rand=hash12(floor(st)); float tiles=inside(.09,.65,fract(st.x),.033)*inside(.21,.57,fract(st.y),.09)*step(.30,rand); float current=exp(-abs(sk)*.014)*inside(580.,1610.,q.x,75.); c+=vec3(1.05,1.12,1.23)*tiles*current*(.11+1.6*sin(3.14159*uWall))*(1.-slab*.92); return c; } vec3 planet(vec2 q) { vec2 center=mix(vec2(1740.,1055.),vec2(1439.,776.),uOrbit)+uMouse*vec2(18.,12.); float radius=mix(1070.,658.,uOrbit); vec2 k=(q-center)/radius; float r=length(k); vec3 c=vec3(.016,.019,.025)+vec3(.023,.029,.041)*exp(-length((q-vec2(1410.,440.))/vec2(860.,520.))); vec2 grid=q/31.; float star=hash12(floor(grid)); vec2 spot=vec2(hash12(floor(grid)+3.7),hash12(floor(grid)+8.9))*.71+.13; c+=vec3(.53,.60,.74)*step(.954,star)*(1.-smoothstep(.009,.048,length(fract(grid)-spot))); c+=vec3(.12,.15,.20)*exp(-max(r-1.,0.)*44.)*smoothstep(.95,1.,r); if (r<1.) { vec3 n=vec3(k.x,-k.y,sqrt(max(0.,1.-dot(k,k)))); vec3 sun=normalize(vec3(-.47,.63,-.64)); float dawn=smoothstep(-.25,.59,dot(n,sun)); vec2 uv=vec2(atan(n.x,max(n.z,.0001))+.18+uTime*.004,asin(n.y)); float continent=fbm(uv*vec2(4.7,6.4)+vec2(5.,17.)); float land=smoothstep(.45,.57,continent); float clouds=smoothstep(.46,.73,vnoise(uv*vec2(21.,39.)+vec2(uTime*.009,4.))); vec2 cells=uv*vec2(168.,151.); vec2 cell=floor(cells); float point=hash12(cell); vec2 delta=fract(cells)-vec2(.2+.6*point,.2+.6*hash12(cell+4.)); float network=vnoise(uv*28.)*.65+vnoise(uv*67.)*.35; float light=exp(-27.*dot(delta,delta))*step(.49,point)*smoothstep(.40,.74,network); float metro=exp(-70.*dot(delta,delta))*step(.973,point); float clusters=(light*(.22+.60*point)+metro*2.5)*land; vec3 sphere=vec3(.017,.020,.027)+vec3(.046,.052,.067)*land; sphere*=.53+.78*n.z; sphere+=vec3(.19,.21,.25)*dawn*(.26+.74*clouds); sphere+=vec3(.93,.97,1.03)*clusters*(1.-dawn*.75); sphere+=vec3(.31,.35,.42)*pow(1.-n.z,8.)*(.55+.64*dawn); c=mix(c,sphere,1.-smoothstep(.996,1.,r)); } return c; } void main() { vec2 q=design(vUv); vec3 c; if(uWall>=1.) c=archive(q); else { if(uCity>=1.) c=city(q); else { c=solo(q); if(uCity>0.) c=mix(c,city(q),smoothstep(.19,.89,uCity)); } if(uWall>0.) { float front=.19+.48*clamp((q.y+q.x*.19)/1440.,0.,1.); c=mix(c,archive(q),smoothstep(front-.15,front+.23,uWall)); } } if(uOrbit>0.) c=mix(c,planet(q),smoothstep(.06,.91,uOrbit)); float quiet=smoothstep(620.,1030.,q.x); float lower=smoothstep(480.,850.,q.y); c*=mix(.56+.18*lower,1.,quiet); c+=(hash12(gl_FragCoord.xy)-.5)*.005; o=vec4(max(c,vec3(0.)),1.); }`, 'swarm / graphite and silver') }; }, draw(s,d,r) { const U=r.uniforms, L=d.E.lin, cream='#f2f3f5', muted='#c2c8d1'; U.uCity=s.k(1,0,4.4); U.uWall=s.k(2,0,4.8); U.uOrbit=s.k(3,0,4.2); U.uMouse[0]=s.mouse.x; U.uMouse[1]=s.mouse.y; r.bg.draw(U); if (U.uCity<.61) { const a=1-s.k(1,0,1.18,L); if (a>0) { const typed=s.k(0,.92,2.85,L); const x=1026+15*s.mouse.x, y=482+10*s.mouse.y+2.5*Math.sin(s.t*.49); d.text(r.equation.slice(0,Math.round(typed*r.equation.length)),{ x,y,size:45,font:'mono',color:'#161b22',style:'fade',alpha:a }); if (typed>0&&typed<1&&Math.sin(s.t*10)>-.24) { d.rect(x+27.1*Math.round(typed*r.equation.length),y+7,2.3,40,'#182434',a); } d.select(x-20,y-15,413,82,{a:a*s.k(0,.35,1,L)}); } } const burst=Math.sin(Math.PI*U.uWall); if(burst>.004&&U.uOrbit<.5) { const c=d.ctx2d; c.save(); for(let i=0;i<36;i++) { const seed=(i*0.61803398875)%1, phase=(i*0.41421356)%1; const age=Math.max(0,Math.min(1,1.55*U.uWall-.58*phase)); const a=burst*Math.sin(Math.PI*age)*(1-2*U.uOrbit); const x=1030+seed*702+(seed-.43)*375*age; const y=267+phase*456+age*(110+240*phase); const ang=i*2.27+age*(2+6*seed), co=Math.cos(ang), si=Math.sin(ang); const w=4+21*seed, h=2+7*phase; c.globalAlpha=a; c.fillStyle=i%4===0?'#535962':'#12151b'; c.beginPath(); c.moveTo(x-w*co,y-w*si); c.lineTo(x+w*co+h*si,y+w*si-h*co); c.lineTo(x+.4*w*co-h*si,y+.4*w*si+h*co); c.closePath(); c.fill(); c.strokeStyle='#6b7079'; c.lineWidth=1; c.beginPath(); c.moveTo(x-w*co,y-w*si); c.lineTo(x+w*co+h*si,y+w*si-h*co); c.stroke(); } c.restore(); } const hide1=s.k(1,0,.57,L), hide2=s.k(2,0,.57,L), hide3=s.k(3,0,.57,L); const show2=s.k(1,.78,1.8,L), show3=s.k(2,.78,1.9,L), show4=s.k(3,.78,1.9,L); d.text('One.',{x:137,y:158,size:146,color:cream,show:s.k(0,.25,1.4,L),hide:hide1}); const h2=d.text('30,000 at once.',{ x:137,y:160,size:92,color:cream,show:show2,hide:hide2 }); d.text('Agents at work inside Anthropic, August 2026',{ x:142,y:h2.y+h2.h+31,size:27,color:muted,style:'fade',show:s.k(1,1.4,2.35,L),hide:hide2 }); d.text('Speculative scenario.',{ x:142,y:113,size:23,font:'mono',color:muted,style:'fade',show:show2,hide:hide2 }); const h3=d.text('17 million lines of proof:\nRiemann.',{ x:137,y:161,size:74,color:cream,by:'line',show:show3,hide:hide3 }); d.text('Claude with Levent Alpöge. Proof certified in Lean, November 2026',{ x:142,y:h3.y+h3.h+28,size:24,color:muted,style:'fade',show:s.k(2,1.65,2.6,L),hide:hide3 }); d.text('Speculative scenario.',{ x:142,y:113,size:23,font:'mono',color:muted,style:'fade',show:show3,hide:hide3 }); d.text('Now a million of them,\nfifty times your speed.',{ x:137,y:161,size:76,color:cream,by:'line',show:show4 }); d.text('Illustration.',{ x:142,y:113,size:23,font:'mono',color:muted,style:'fade',show:show4 }); const counter=s.k(3,1.5,2.5,L); const elapsed=s.k(3,0,8.6666667,L); d.text('Since this slide opened they have thought for',{ x:142,y:674,size:31,color:muted,style:'fade',show:counter }); d.text(elapsed>=1?'13.0 years.':(13*elapsed).toFixed(1)+' years.',{ x:130,y:727,size:132,font:'mono',color:cream,style:'fade',show:counter }); } });