Deck.transition('flaps',{dur:1.2,frag:`void main(){ float n=9., i=floor(vUv.y*n), f=fract(vUv.y*n); float e=sat(p*1.6-.6*(n-1.-i)/(n-1.)); float cs=cos(e*3.14159265), sc=max(abs(cs),.001), fy=(f-.5)/sc+.5; vec2 uv=vec2(vUv.x,(i+fy)/n); vec4 col=cs>0.?texture(tA,uv):texture(tB,uv); float ins=step(0.,fy)*step(fy,1.); o=mix(vec4(.02,.02,.02,1.),vec4(col.rgb*(.45+.55*sc),1.),ins); }`}); Deck.scene({ id:'calendar', title:'2027', enterWith:'flaps', post:{tone:'none',vignette:.18,grain:.02}, beats:[{dur:1.6,hold:4},{dur:4.2,hold:5},{dur:3.2,hold:5},{dur:4.3,hold:5}], notes:[ "This is 2027 on the wall. Three hundred and sixty five days, and the printer gave every one of them the same size.", "Now size each day by how much AI progress happens in it, next to a day in 2025. In this run it is about 1.7 on the first of January, 6 by the middle of February, 40 on 12 April, a thousand by 1 July. January to March turn into lint. June does not fit. This is one modelled run, not a measurement.", "In the example run from the AI Futures Project, November 2026 update, 12 April is the day AI beats the best human researchers, and 1 July is superintelligence. It is one published run, and the authors' own medians are later: May to August 2027 for the superhuman researcher. If someone asks how 200-hour tasks and superintelligence can land in the same month: the tower was the old trend continued, this is a model where AI speeds up its own progress.", "And it keeps going. At a thousand times the pace, one July day holds more than a year of 2025. Let that day open." ], setup(d){ const N=365, ML=[31,28,31,30,31,30,31,31,30,31,30,31]; const MN=['JAN','FEB','MAR','APR','MAY','JUN','JUL','AUG','SEP','OCT','NOV','DEC']; const gx=new Float32Array(N),gy=new Float32Array(N),sx=new Float32Array(N),sy=new Float32Array(N), ss=new Float32Array(N),sr=new Float32Array(N),mo=new Uint8Array(N),dd=new Uint8Array(N),sun=new Uint8Array(N),ds=[],ms=[]; const hs=n=>{const x=Math.sin(n*127.1+311.7)*43758.5453; return x-Math.floor(x);}; const G=.0283,K=2.2,I1=181,S1=380,T1=.2,CX=620,CY=800,ROW=(935-318)/31; let i=0; for(let m=0;m<12;m++){ ms[m]=i; for(let q=1;q<=ML[m];q++){ mo[i]=m; dd[i]=q; ds[i]=String(q); sun[i]=((i+5)%7===0)?1:0; gx[i]=180+130*m+65; gy[i]=318+ROW*(q-1)+ROW/2; const S=S1*Math.exp(G*(i-I1)), th=T1+(i-I1)/K, R=K*S, jit=i<90?1-i/90:0; ss[i]=S; sx[i]=CX+R*Math.cos(th)+(hs(i)-.5)*12*jit; sy[i]=CY-R*Math.sin(th)+(hs(i+50)-.5)*12*jit; let a=-(th-T1)-.06+(hs(i+90)-.5)*3*jit; sr[i]=Math.atan2(Math.sin(a),Math.cos(a)); i++; } } const ink='#151515', red='#c42a1f'; const inner=(c,w,h,zs)=>{ const x0=-w*.47,x1=w*.47,y0=-h/2+h*.42,y1=h*.46,cw=(x1-x0)/12,rh=(y1-y0)/31; c.strokeStyle='rgba(22,22,22,.45)'; c.lineWidth=.8/zs; c.beginPath(); for(let j=0;j<=12;j++){ c.moveTo(x0+j*cw,y0); c.lineTo(x0+j*cw,y1); } for(let j=0;j<=31;j++){ c.moveTo(x0,y0+j*rh); c.lineTo(x1,y0+j*rh); } c.stroke(); }; // the 1 July cell holds a full year planner; at zoom each of its days holds a tiny calendar const yearIn=(c,w,h,Z,zs)=>{ const x0=-w*.47,x1=w*.47,y0=-h/2+h*.34,y1=h*.46,bw=(x1-x0)/4,bh=(y1-y0)/3; for(let m=0;m<12;m++){ const bx=x0+(m%4)*bw, by=y0+Math.floor(m/4)*bh, gx0=bx+bw*.06, gw=bw*.88, gy0=by+bh*.2, gh=bh*.74, cw=gw/7, rh=gh/6, sc=(ms[m]+4)%7, n=ML[m]; c.save(); c.translate(gx0,by+bh*.03); const f=bh*.12/20; c.scale(f,f); c.font='700 20px Arial'; c.fillStyle=ink; c.fillText(MN[m],0,0); c.restore(); c.fillStyle='rgba(196,42,31,.25)'; for(let q=0;q.01){ c.globalAlpha=Z; c.fillStyle=ink; for(let q=0;q{ if(a<=0) return; y+=(1-a)*20; const b=d.text(text,{x:x+20,y:y+12,size:28,font:'arialBold',show:0}), W2=b.w+40, H=b.h+24, c=d.ctx2d; const s0=Math.min(Math.max(ex,x),x+W2), s1=Math.min(Math.max(ey,y),y+H); c.save(); c.globalAlpha=a; c.strokeStyle=ink; c.lineWidth=2.5; c.beginPath(); c.moveTo(s0,s1); c.lineTo(ex,ey); c.stroke(); c.beginPath(); c.arc(ex,ey,6,0,6.283); c.fillStyle=red; c.fill(); c.restore(); d.rect(x+6,y+8,W2,H,'#000',.25*a); d.rect(x,y,W2,H,'#f7f1e2',a); d.text(text,{x:x+20,y:y+12,size:28,font:'arialBold',color:ink,alpha:a}); }; return { N,MN,gx,gy,sx,sy,ss,sr,mo,dd,sun,ds,ink,red,inner,yearIn,strip, L1:'12 April: AI that beats the best human researchers', L2:'1 July: superintelligence', bg:d.pass(`uniform float uZ; uniform vec2 uV0,uV1,uM; void main(){ vec2 q=design(vUv); vec2 lo=mix(vec2(140.,60.),uV0-20.,uZ), hi=mix(vec2(1780.,1020.),uV1+20.,uZ); vec2 c=(lo+hi)*.5, hsz=(hi-lo)*.5; float dp=sdBox(q-c,hsz); vec3 wall=vec3(.6,.12,.1)*(.9+.14*fbm(q*.006))*(.96+.06*vnoise(q*.08)); float sh=smoothstep(45.,-15.,sdBox(q-c-vec2(16.,26.),hsz)); wall*=1.-.5*sh; vec3 paper=vec3(.95,.935,.89)*(.95+.07*fbm(q*.015)); float pm=smoothstep(1.,-1.,dp); vec3 col=mix(wall,paper,pm); float band=(1.-uZ)*step(180.,q.x)*step(q.x,1740.); float rule=max(smoothstep(2.6,1.2,abs(q.y-288.)),smoothstep(1.8,.6,abs(q.y-942.)))*band; col=mix(col,vec3(.08),rule*pm); vec2 w=q+uM*12.; float u=w.x*.9+w.y*.45-200.+sin(uTime*.15)*8., v=w.y*.9-w.x*.2+300.; vec2 g=vec2(u/520.,v/420.); vec2 f=abs(fract(g)-.5); float pane=smoothstep(.5,.43,max(f.x,f.y)); float win=smoothstep(0.,.3,g.x)*smoothstep(3.2,2.8,g.x)*smoothstep(0.,.3,g.y)*smoothstep(2.6,2.2,g.y); float leaf=smoothstep(.45,.7,fbm(w*.004+vec2(uTime*.02,0.))); float lit=pane*win*(1.-.6*leaf); col*=mix(.74,1.04,lit); col+=(hash12(floor(q))-.5)*.03; o=vec4(col,1.); }`,'calendar wall') }; }, draw(s,d,r){ const E=d.E,L=E.lin,c=d.ctx2d,V=d.view,ink=r.ink,red=r.red; const W=s.k(1,.2,4.2,E.io3), Z=s.k(3,.3,4.3,E.io3), zs=Math.exp(Z*Math.log(3)); const mk=s.k(2,.2,1,L)*(1-Z); r.bg.draw({uZ:Z,uV0:[V.x0,V.y0],uV1:[V.x1,V.y1],uM:[s.mouse.x,s.mouse.y]}); const px=r.sx[181], py=r.sy[181], tx=px+(960-px)*Z, ty=py+(560-py)*Z, rr=r.sr[181]; const cx0=140+(V.x0-140)*Z, cy0=296+(V.y0-296)*Z, cx1=1780+(V.x1-1780)*Z, cy1=936+(V.y1-936)*Z; let jx=0,jy=0,jw=0,jh=0,jr=0,ax=0,ay=0; c.save(); c.beginPath(); c.rect(cx0,cy0,cx1-cx0,cy1-cy0); c.clip(); c.translate(tx,ty); c.scale(zs,zs); c.rotate(-rr*Z); c.translate(-px,-py); if(W>0){ c.globalAlpha=.35*W; c.fillStyle=ink; c.beginPath(); c.ellipse(620,800,16,11,.4,0,6.283); c.fill(); c.globalAlpha=1; } c.textBaseline='top'; for(let i=0;i4000?1-e:1; if(al<=.01) continue; const x=r.gx[i]+(r.sx[i]-r.gx[i])*e, y=r.gy[i]+(r.sy[i]-r.gy[i])*e; const w=122+(S-122)*e, h=17+(S*.82-17)*e, rot=r.sr[i]*e; if(i===181){ jx=x; jy=y; jw=w; jh=h; jr=rot; } if(i===101){ ax=x; ay=y; } const sxp=tx+(x-px)*zs, syp=ty+(y-py)*zs, hd=(w+h)*.5*zs; if(sxp+hdV.x1||syp+hd<250||syp-hd>V.y1) continue; c.save(); c.globalAlpha=al; c.translate(x,y); c.rotate(rot); if(r.sun[i]){ c.fillStyle='rgba(196,42,31,.12)'; c.fillRect(-w/2,-h/2,w,h); } if(i===101&&mk>0){ c.fillStyle='rgba(196,42,31,'+(.55*mk).toFixed(3)+')'; c.fillRect(-w/2,-h/2,w,h); } c.lineWidth=(1+e*Math.min(S*.006,3))/zs; c.strokeStyle='rgba(22,22,22,.6)'; c.strokeRect(-w/2,-h/2,w,h); const fs=Math.min(h*.78,w*.16), la=i===181?1-Z:1; if(fs*zs>3&&la>.01){ c.save(); c.globalAlpha=al*la; c.translate(-w/2+fs*.25,-h/2+fs*.08); c.scale(fs/20,fs/20); c.font='700 20px Arial'; c.fillStyle=r.sun[i]?red:ink; c.fillText(r.ds[i],0,0); if(w>70&&e>.5){ c.scale(.5,.5); c.fillText(r.MN[r.mo[i]],0,46); } c.restore(); } if(i===181&&w>220) r.yearIn(c,w,h,Z,zs); else if(w>220) r.inner(c,w,h,zs); c.restore(); } if(mk>0){ c.save(); c.globalAlpha=mk; c.strokeStyle=red; c.lineWidth=4; c.beginPath(); c.arc(ax,ay,34,0,6.283); c.stroke(); c.restore(); } c.restore(); const sa=s.k(2,1.8,2.4,L)*(1-Z); if(sa>0){ c.save(); c.translate(jx,jy); c.rotate(jr); d.select(-jw/2-6,-jh/2-6,jw+12,jh+12,{a:sa}); c.restore(); } // registration marks if(Z<1){ c.save(); c.globalAlpha=1-Z; c.strokeStyle=ink; c.lineWidth=1.5; const P=[162,80,1758,80,162,1000,1758,1000]; for(let j=0;j<8;j+=2){ c.beginPath(); c.arc(P[j],P[j+1],10,0,6.283); c.moveTo(P[j]-18,P[j+1]); c.lineTo(P[j]+18,P[j+1]); c.moveTo(P[j],P[j+1]-18); c.lineTo(P[j],P[j+1]+18); c.stroke(); } c.restore(); } if(W<1) for(let m=0;m<12;m++) d.text(r.MN[m],{x:184+130*m,y:294,size:18,font:'arialBold',color:ink,alpha:1-W}); d.text('2027',{x:200,y:96,size:180,font:'800 SIZEpx system-ui,sans-serif',color:ink,style:'fade',hide:s.k(3,0,.6,L)}); d.text('Every day the same size.',{x:720,y:130,size:72,font:'display',color:ink,show:s.k(0,.3,1.6,L),hide:s.k(1,0,.6,L)}); d.text('Now size each day\nby how much happens in it.',{x:720,y:104,size:64,font:'display',color:ink,show:s.k(1,.8,2,L),hide:s.k(3,0,.6,L)}); // 12 April: label to the right of the marked cell, short horizontal leader to the red ring r.strip(d,r.L1,720,860,mk,ax+34,ay); // 1 July: label above-left of the cell, short leader to its top edge const ex=jx+(-jw/4)*Math.cos(jr)-(-jh/2)*Math.sin(jr), ey=jy+(-jw/4)*Math.sin(jr)+(-jh/2)*Math.cos(jr); r.strip(d,r.L2,800,372,s.k(2,1,1.8,L)*(1-Z),ex,ey); d.text("One example run, AI Futures Project, November 2026. Its authors' own medians are later.", {x:200,y:958,size:20,font:'mono',color:ink,alpha:s.k(2,2.4,3.2,L)*(1-Z)}); const ka=s.k(1,.6,1.4,L)*(1-s.k(3,0,.6,L)); if(ka>0){ const v=365*Math.pow(10,7*s.k(1,.6,4.2,L)); d.text(Math.round(v).toLocaleString('en-US'),{x:1740,y:948,size:30,font:'mono',color:ink,align:'right',alpha:ka}); d.text('2025-days of progress, one modelled run',{x:1740,y:986,size:16,font:'mono',color:'#555555',align:'right',alpha:ka}); } // beat 4: headline on a pale paper panel in the cell's empty header band const pa=s.k(3,2.3,2.9,L); const hb=d.text('Then a year fits in a day.',{x:960,y:170,size:84,font:'display',color:ink,align:'center',show:0}); if(pa>0){ d.rect(hb.x-56,hb.y-34,hb.w+112,hb.h+124,'#000',.18*pa); d.rect(hb.x-62,hb.y-40,hb.w+112,hb.h+124,'#f6f1e4',pa); } d.text('Then a year fits in a day.',{x:960,y:170,size:84,font:'display',color:ink,align:'center',show:s.k(3,2.6,3.8,L)}); d.text('illustration',{x:960,y:hb.y+hb.h+18,size:30,font:'mono',color:'#444444',align:'center',style:'fade',show:s.k(3,3.2,4.3,L)}); } });