{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"three-photographic-proof-sheets-of-one-homepage-on-a-sunlit-string-line-where-the-one-you-keep-unclips-and-drops-onto-the-table","type":"registry:block","title":"Three Photographic Proof Sheets of One Homepage on a Sunlit String Line Where the One You Keep Unclips and Drops Onto the Table","description":"Free React design picker: three glossy proofs of one homepage hang on a sunlit line. Keep one and it unclips and drifts down onto the table.","dependencies":["framer-motion"],"files":[{"path":"components/we-inc/three-photographic-proof-sheets-of-one-homepage-on-a-sunlit-string-line-where-the-one-you-keep-unclips-and-drops-onto-the-table.tsx","type":"registry:component","content":"import { useEffect, useRef, useState } from \"react\";\nimport { useReducedMotion } from \"framer-motion\";\n\n/** The three printed proofs: one homepage, three styles. Change names and copy here. */\nconst proofs = [\n  { key: \"A\", style: \"Linen\", line: \"Soft serif, cream paper, quiet photography.\" },\n  { key: \"B\", style: \"Night\", line: \"Heavy type on near-black, one warm accent.\" },\n  { key: \"C\", style: \"Market\", line: \"Clay colour blocks, pill buttons, three cards.\" },\n];\nconst BUSINESS = \"Tidewater Surf School\";\nconst START = 1; // the proof that already lies on the table when the piece loads\nconst DEMO_EVERY = 6200; // ms between picks in the idle demo, until someone chooses\nconst BLUE = \"#4F98FB\";\nconst GROT = '\"Inter Tight\", \"Inter\", ui-sans-serif, system-ui, sans-serif';\nconst SERIF = '\"Iowan Old Style\", \"Palatino Linotype\", Palatino, \"Book Antiqua\", Georgia, serif';\nconst MONO = 'ui-monospace, \"SF Mono\", Menlo, Consolas, monospace';\n\n// World sizes (metres, roughly). The shader receives the same numbers.\nconst HW = 0.21; // half width of a print\nconst HH = 0.28; // half height of a print\nconst TH = 0.0016; // half thickness of the paper\nconst CLIP = 0.05; // from the top of the print to the string\nconst SP = 0.58; // gap between proofs on the line\nconst LX = 1.22; // the line runs between two brass eyes at plus and minus LX\nconst Y0 = 1.3; // height of the eyes\nconst ZL = 0.24; // distance of the line from the wall\nconst SAG = 0.05;\nconst DIP = 0.032; // how far a hanging print pulls the line down\nconst REST = [\n  [-0.16, 0.5, -0.15],\n  [0.03, 0.52, 0.08],\n  [0.17, 0.5, 0.18],\n]; // where each proof lands on the table: x, z, turn\nconst FALL = 1.1; // seconds from unclip to landing\nconst RISE = 0.9;\nconst PW = 480; // atlas pixels per print\nconst PH = 640;\n\nconst VERT = `#version 300 es\nin vec2 a; out vec2 vUv;\nvoid main(){ vUv=a*0.5+0.5; gl_Position=vec4(a,0.,1.); }`;\n\nconst SCENE = `#version 300 es\nprecision highp float;\nuniform vec2 uRes; uniform float uTime; uniform vec3 uRo, uTa;\nuniform vec4 uA[3]; uniform vec4 uB[3]; uniform vec3 uDip;\nuniform sampler2D uAtlas;\nout vec4 o;\nconst float HW=${HW.toFixed(4)}, HH=${HH.toFixed(4)}, TH=${TH.toFixed(4)}, CL=${CLIP.toFixed(4)};\nconst float SP=${SP.toFixed(4)}, LX=${LX.toFixed(4)}, Y0=${Y0.toFixed(4)}, ZL=${ZL.toFixed(4)}, SAG=${SAG.toFixed(4)};\nconst vec3 L=normalize(vec3(-0.5,0.64,0.58));\nconst vec3 BLUE=vec3(0.078,0.31,0.96);\n\nfloat h21(vec2 p){ p=fract(p*vec2(233.34,851.73)); p+=dot(p,p+23.45); return fract(p.x*p.y); }\nfloat vn(vec2 p){ vec2 i=floor(p),f=fract(p); f=f*f*(3.-2.*f);\n  return mix(mix(h21(i),h21(i+vec2(1,0)),f.x),mix(h21(i+vec2(0,1)),h21(i+vec2(1,1)),f.x),f.y); }\nfloat fbm(vec2 p){ float s=0.,a=.5; for(int i=0;i<4;i++){ s+=a*vn(p); p=p*2.03+7.1; a*=.5; } return s; }\nfloat box2(vec2 p,vec2 b){ vec2 d=abs(p)-b; return length(max(d,0.))+min(max(d.x,d.y),0.); }\nfloat box3(vec3 p,vec3 b){ vec3 d=abs(p)-b; return length(max(d,0.))+min(max(d.x,max(d.y,d.z)),0.); }\nfloat ext(float d2,float z,float h){ vec2 w=vec2(d2,abs(z)-h); return min(max(w.x,w.y),0.)+length(max(w,0.)); }\nfloat cap(vec3 p,vec3 a,vec3 b,float r){ vec3 pa=p-a,ba=b-a; float h=clamp(dot(pa,ba)/dot(ba,ba),0.,1.); return length(pa-ba*h)-r; }\nmat2 rot(float a){ float c=cos(a),s=sin(a); return mat2(c,-s,s,c); }\n\nfloat lineY(float x){\n  float y=Y0-SAG*(1.-(x/LX)*(x/LX));\n  for(int i=0;i<3;i++){ float d=(x-float(i-1)*SP)/0.24; y-=uDip[i]*exp(-d*d); }\n  return y;\n}\nvec3 local(vec3 p,int i){\n  vec4 A=uA[i], B=uB[i]; vec3 q=p-A.xyz;\n  q.xy=rot(B.x)*q.xy; q.zx=rot(B.y)*q.zx; q.yz=rot(A.w)*q.yz;\n  float bx=q.x/HW; q.z+=B.z*(bx*bx-0.35);\n  return q;\n}\n// x distance, y part: 0 paper, 1 clip jaws, 2 wire\nvec2 sheet(vec3 q){\n  vec2 r=vec2(ext(box2(q.xy,vec2(HW,HH)-0.003)-0.003,q.z,TH),0.);\n  vec3 c=q-vec3(0.,HH-0.004,0.);\n  float jaw=box3(c,vec3(0.031,0.019,0.0016+0.0035*clamp((c.y+0.019)/0.038,0.,1.)))-0.0016;\n  jaw=min(jaw,cap(c,vec3(-0.031,0.018,0.),vec3(0.031,0.018,0.),0.0052));\n  if(jaw<r.x) r=vec2(jaw,1.);\n  float w=1e3;\n  for(int s=-1;s<=1;s+=2){ float fs=float(s);\n    w=min(w,cap(c,vec3(-0.027,0.018,0.0055*fs),vec3(-0.017,0.004+CL,0.0012*fs),0.0015));\n    w=min(w,cap(c,vec3(0.027,0.018,0.0055*fs),vec3(0.017,0.004+CL,0.0012*fs),0.0015));\n    w=min(w,cap(c,vec3(-0.017,0.004+CL,0.0012*fs),vec3(0.017,0.004+CL,0.0012*fs),0.0015)); }\n  if(w<r.x) r=vec2(w,2.);\n  return r;\n}\n// id: 0 wall, 1 table, 2 string, 3 brass eye, 10+i*10+part a print\nvec2 map(vec3 p){\n  vec2 r=vec2(p.z,0.);\n  if(p.y<r.x) r=vec2(p.y,1.);\n  float x=clamp(p.x,-LX,LX);\n  float dl=length(vec3(p.x-x,(p.y-lineY(x))*0.98,p.z-ZL))-0.0021;\n  if(dl<r.x) r=vec2(dl,2.);\n  float ax=(p.x<0.?-1.:1.)*(LX+0.012);\n  float de=cap(p,vec3(ax,Y0,0.),vec3(ax,Y0,ZL-0.012),0.0048);\n  vec3 er=p-vec3(ax,Y0,ZL); de=min(de,length(vec2(length(er.yz)-0.011,er.x))-0.0026);\n  de=min(de,ext(length(p.xy-vec2(ax,Y0))-0.016,p.z-0.004,0.004)-0.001);\n  if(de<r.x) r=vec2(de,3.);\n  for(int i=0;i<3;i++){\n    float b=length(p-uA[i].xyz)-(HH+CL+0.03);\n    if(b>r.x) continue;\n    vec2 s=sheet(local(p,i));\n    s.x*=0.8;\n    if(s.x<r.x) r=vec2(s.x,10.+float(i)*10.+s.y);\n  }\n  return r;\n}\nvec3 nor(vec3 p){ vec2 e=vec2(0.0004,-0.0004);\n  return normalize(e.xyy*map(p+e.xyy).x+e.yyx*map(p+e.yyx).x+e.yxy*map(p+e.yxy).x+e.xxx*map(p+e.xxx).x); }\nfloat shadow(vec3 p){ float s=1.,t=0.003;\n  for(int i=0;i<40;i++){ float h=map(p+L*t).x; s=min(s,16.*h/t); t+=clamp(h,0.002,0.08); if(s<0.01||t>2.2) break; }\n  return clamp(s,0.,1.); }\nfloat ao(vec3 p,vec3 n){ float a=0.,w=1.; for(int i=1;i<=4;i++){ float h=0.01*float(i)*float(i); a+=w*(h-map(p+n*h).x); w*=.6; } return clamp(1.-a*6.,0.,1.); }\n// sun through a tall studio window with a mullion and a cross bar\nfloat sun(vec3 p){\n  vec2 w=(p+L*((3.0-p.z)/L.z)).xy-vec2(-2.05,4.15);\n  float bl=0.05+0.02*length(w);\n  float m=smoothstep(bl,-bl,box2(w,vec2(1.25,1.0)));\n  vec2 g=abs(w-vec2(0.,0.25)); m*=smoothstep(0.02,0.02+bl,g.x)*smoothstep(0.018,0.018+bl,g.y);\n  float lv=fbm(w*2.2+vec2(uTime*0.04,sin(uTime*0.25)*0.05));\n  m*=mix(0.35,1.,smoothstep(0.32,0.58,lv+0.1*(w.y+0.4)));\n  return m;\n}\nvec3 env(vec3 d){\n  vec3 c=mix(vec3(0.36,0.31,0.26),vec3(0.78,0.75,0.7),smoothstep(-0.4,0.7,d.y));\n  c+=vec3(3.4,2.8,2.1)*pow(max(dot(d,L),0.),20.);\n  c+=vec3(1.1,1.05,1.0)*smoothstep(0.55,0.9,d.y)*smoothstep(0.2,-0.4,d.x)*0.6;\n  return c;\n}\nvec4 shade(vec2 uv){\n  vec3 fw=normalize(uTa-uRo), rt=normalize(cross(fw,vec3(0,1,0))), up=cross(rt,fw);\n  vec3 rd=normalize(fw*2.4+rt*uv.x+up*uv.y), ro=uRo;\n  float t=0.; vec2 h=vec2(0.);\n  if(rd.y<0.&&rd.z<0.) t=max(0.,min((ro.y-Y0-0.12)/(-rd.y),ro.z/(-rd.z))-0.05);\n  for(int i=0;i<130;i++){ h=map(ro+rd*t); if(h.x<0.00012*t||t>30.) break; t+=h.x; }\n  vec3 p=ro+rd*t, n=nor(p);\n  float id=h.y, sh=shadow(p+n*0.0012), sm=sun(p), oc=ao(p,n);\n  float dl=max(dot(n,L),0.);\n  vec3 sunC=vec3(1.0,0.84,0.64)*3.1;\n  vec3 amb=vec3(0.34,0.34,0.36)*(0.6+0.4*n.y)*oc;\n  vec3 bounce=vec3(0.36,0.28,0.2)*0.4*oc*max(0.5-0.5*n.y,0.);\n  amb*=0.85+0.3*smoothstep(1.6,-1.2,p.x-p.y*0.5);\n  vec3 alb=vec3(0.8); float spec=0.04, rough=0.85, metal=0.;\n  if(id<0.5){\n    float g=fbm(p.xy*7.)*0.6+fbm(p.xy*38.)*0.4;\n    vec2 e=vec2(0.004,0.); float gx=fbm((p.xy+e)*38.)-fbm((p.xy-e)*38.), gy=fbm((p.xy+e.yx)*38.)-fbm((p.xy-e.yx)*38.);\n    n=normalize(n+vec3(-gx,-gy,0.)*0.4); dl=max(dot(n,L),0.);\n    alb=vec3(0.82,0.78,0.71)*(0.92+0.12*g);\n  } else if(id<1.5){\n    float gr=fbm(vec2(p.x*2.2+fbm(p.xz*3.)*1.5,p.z*70.));\n    alb=mix(vec3(0.6,0.47,0.33),vec3(0.75,0.62,0.45),gr)*(0.94+0.08*fbm(p.xz*40.));\n    spec=0.22; rough=0.42;\n  } else if(id<2.5){\n    alb=vec3(0.86,0.83,0.76)*(0.85+0.2*vn(vec2(p.x*900.,0.))); rough=1.;\n  } else if(id<3.5){\n    alb=vec3(0.86,0.66,0.36); metal=1.; rough=0.3; spec=1.;\n  } else {\n    int si=int(floor((id-10.)/10.)); float part=id-10.-float(si)*10.;\n    vec3 q=local(p,si);\n    if(part<0.5){\n      float fib=fbm(q.xy*220.);\n      alb=vec3(0.93,0.92,0.89)*(0.97+0.04*fib); rough=0.6; spec=0.05;\n      if(q.z>0.){\n        vec2 a=vec2((q.x/(2.*HW)+0.5+float(si))/3.,(HH-q.y)/(2.*HH));\n        vec4 ink=texture(uAtlas,a);\n        alb=mix(alb,ink.rgb,ink.a);\n        rough=0.16+0.05*fib; spec=0.55;\n      }\n      alb*=mix(0.8,1.,smoothstep(0.05,0.5,abs(dot(n,normalize(vec3(0.,0.,1.))))+0.5));\n    } else {\n      bool blue=uB[si].w>0.5 && part<1.5;\n      alb= blue ? BLUE*0.9 : vec3(0.78,0.79,0.8);\n      metal= blue ? 0. : 1.; rough= blue ? 0.22 : 0.26; spec= blue ? 0.6 : 1.;\n    }\n  }\n  vec3 dif=alb*(sunC*dl*sh*sm+amb+bounce);\n  if(id>9.5){ float tr=max(dot(-n,L),0.)*sm*sh; dif+=alb*sunC*tr*0.16; }\n  vec3 r=reflect(rd,n), hv=normalize(L-rd);\n  float fr=0.04+0.96*pow(1.-max(dot(n,-rd),0.),5.);\n  float g=pow(max(dot(n,hv),0.),2./(rough*rough*rough+0.002));\n  if(metal>0.5) dif=alb*(env(r)*mix(0.3,1.,oc)+sunC*g*sh*sm*0.4*(1.-rough))+alb*amb*0.2;\n  else dif+=spec*(fr*env(r)*0.3*oc+sunC*g*sh*sm*0.05);\n  return vec4(dif,t);\n}\nvoid main(){\n  vec2 px=1./uRes.yy;\n  vec4 a=shade((gl_FragCoord.xy+vec2(0.25,-0.25)-0.5*uRes)/uRes.y);\n  vec4 b=shade((gl_FragCoord.xy+vec2(-0.25,0.25)-0.5*uRes)/uRes.y);\n  vec3 col=(a.rgb+b.rgb)*0.5;\n  col=(col*(2.51*col+0.03))/(col*(2.43*col+0.59)+0.14);\n  col=pow(clamp(col,0.,1.),vec3(1./2.2));\n  o=vec4(col,clamp(min(a.w,b.w)/8.,0.,1.));\n}`;\n\nconst POST = `#version 300 es\nprecision highp float;\nin vec2 vUv; out vec4 o;\nuniform sampler2D uSrc; uniform vec2 uRes; uniform float uFocus, uTime;\nfloat hash(vec2 p){ return fract(sin(dot(p,vec2(12.9898,78.233)))*43758.5453); }\nvoid main(){\n  vec4 c0=texture(uSrc,vUv);\n  float z=c0.a*8.;\n  vec2 e=1./uRes; vec3 Lm=vec3(0.299,0.587,0.114);\n  float nw=dot(textureLod(uSrc,vUv+vec2(-e.x,-e.y),0.).rgb,Lm), ne=dot(textureLod(uSrc,vUv+vec2(e.x,-e.y),0.).rgb,Lm);\n  float sw=dot(textureLod(uSrc,vUv+vec2(-e.x,e.y),0.).rgb,Lm), se=dot(textureLod(uSrc,vUv+e,0.).rgb,Lm), lm=dot(c0.rgb,Lm);\n  float lo=min(lm,min(min(nw,ne),min(sw,se))), hi=max(lm,max(max(nw,ne),max(sw,se)));\n  vec2 dir=vec2(-((nw+ne)-(sw+se)),(nw+sw)-(ne+se));\n  float rcp=1./(min(abs(dir.x),abs(dir.y))+max((nw+ne+sw+se)*0.03125,0.0078));\n  dir=clamp(dir*rcp,-8.,8.)*e;\n  vec3 fa=0.5*(textureLod(uSrc,vUv+dir*(1./3.-0.5),0.).rgb+textureLod(uSrc,vUv+dir*(2./3.-0.5),0.).rgb);\n  vec3 fb=fa*0.5+0.25*(textureLod(uSrc,vUv-dir*0.5,0.).rgb+textureLod(uSrc,vUv+dir*0.5,0.).rgb);\n  float lb=dot(fb,Lm); c0.rgb=(lb<lo||lb>hi)?fa:fb;\n  float pxs=uRes.y/720.;\n  float coc=clamp(abs(z-uFocus)/max(z,0.1)*16.-0.6,0.,4.5)*pxs;\n  vec3 acc=c0.rgb; float ws=1.;\n  float j=hash(gl_FragCoord.xy)*6.283;\n  float lod=log2(max(coc/3.,1.));\n  for(int i=0;i<12;i++){\n    float fi=(float(i)+0.5)/12.; float an=float(i)*2.39996+j;\n    vec2 off=vec2(cos(an),sin(an))*sqrt(fi)*coc/uRes;\n    acc+=textureLod(uSrc,vUv+off,lod).rgb; ws+=1.;\n  }\n  vec3 col=acc/ws;\n  vec3 bl=textureLod(uSrc,vUv,4.).rgb*0.5+textureLod(uSrc,vUv,6.).rgb*0.5;\n  col+=bl*bl*0.04;\n  vec2 v=vUv-0.5; col*=1.-dot(v,v)*0.3;\n  col+=(hash(gl_FragCoord.xy+fract(uTime)*91.7)-0.5)*0.022*(1.-0.4*col);\n  o=vec4(col,1.);\n}`;\n\n/* ---------- the printed proofs ---------- */\n\nfunction sea(g: CanvasRenderingContext2D, x: number, y: number, w: number, h: number, warm: number) {\n  const sky = g.createLinearGradient(0, y, 0, y + h);\n  sky.addColorStop(0, warm ? \"#e9c9a0\" : \"#bcd0d6\");\n  sky.addColorStop(0.42, warm ? \"#f2dcc0\" : \"#dfe7e4\");\n  sky.addColorStop(0.44, warm ? \"#3d6a72\" : \"#4f7d86\");\n  sky.addColorStop(1, warm ? \"#1d3a40\" : \"#24464d\");\n  g.fillStyle = sky;\n  g.fillRect(x, y, w, h);\n  g.save();\n  g.beginPath();\n  g.rect(x, y, w, h);\n  g.clip();\n  const sunX = x + w * 0.68;\n  const glow = g.createRadialGradient(sunX, y + h * 0.4, 2, sunX, y + h * 0.4, h * 0.5);\n  glow.addColorStop(0, \"rgba(255,246,226,0.95)\");\n  glow.addColorStop(1, \"rgba(255,246,226,0)\");\n  g.fillStyle = glow;\n  g.fillRect(x, y, w, h);\n  for (let k = 0; k < 26; k++) {\n    const yy = y + h * 0.46 + (k / 26) ** 1.6 * h * 0.54;\n    g.strokeStyle = `rgba(255,255,255,${0.12 + 0.18 * Math.random()})`;\n    g.lineWidth = 0.6 + k * 0.08;\n    g.beginPath();\n    for (let xx = x; xx <= x + w; xx += 6) {\n      const yv = yy + Math.sin(xx * (0.05 - k * 0.0012) + k * 1.7) * (0.6 + k * 0.12);\n      if (xx === x) g.moveTo(xx, yv);\n      else g.lineTo(xx, yv);\n    }\n    g.stroke();\n  }\n  // a surfer on the wave\n  g.fillStyle = \"rgba(20,28,30,0.85)\";\n  g.beginPath();\n  g.ellipse(x + w * 0.36, y + h * 0.66, w * 0.05, 2.2, -0.15, 0, Math.PI * 2);\n  g.fill();\n  g.fillRect(x + w * 0.355, y + h * 0.6, 3, h * 0.055);\n  g.beginPath();\n  g.arc(x + w * 0.358, y + h * 0.59, 3.2, 0, Math.PI * 2);\n  g.fill();\n  g.restore();\n}\n\nfunction paintProof(g: CanvasRenderingContext2D, i: number, x0: number) {\n  const B = 22; // white print border\n  const BB = 62; // deeper border at the foot for the proof label\n  const x = x0 + B, y = B, w = PW - 2 * B, h = PH - B - BB;\n  g.fillStyle = \"#f7f6f2\";\n  g.fillRect(x0, 0, PW, PH);\n  g.save();\n  g.beginPath();\n  g.rect(x, y, w, h);\n  g.clip();\n  g.textBaseline = \"alphabetic\";\n  if (i === 0) {\n    g.fillStyle = \"#efe7da\";\n    g.fillRect(x, y, w, h);\n    g.fillStyle = \"#2b2620\";\n    g.font = `italic 600 17px ${SERIF}`;\n    g.fillText(\"Tidewater\", x + 22, y + 34);\n    g.font = `500 10px ${GROT}`;\n    [\"Lessons\", \"Tides\", \"Stay\"].forEach((t, k) => g.fillText(t, x + w - 150 + k * 48, y + 32));\n    g.fillRect(x + 22, y + 48, w - 44, 1);\n    g.font = `500 37px ${SERIF}`;\n    [\"Read the water,\", \"then ride it.\"].forEach((t, k) => g.fillText(t, x + 22, y + 104 + k * 40));\n    g.font = `400 11.5px ${SERIF}`;\n    g.fillStyle = \"#5b5248\";\n    [\"Small groups, warm wetsuits and a coach\", \"who has surfed this bay since childhood.\"].forEach((t, k) =>\n      g.fillText(t, x + 22, y + 176 + k * 17),\n    );\n    g.strokeStyle = \"#2b2620\";\n    g.lineWidth = 1.4;\n    g.beginPath();\n    g.roundRect(x + 22, y + 208, 118, 32, 16);\n    g.stroke();\n    g.fillStyle = \"#2b2620\";\n    g.font = `600 11px ${GROT}`;\n    g.fillText(\"Book a lesson\", x + 42, y + 228);\n    sea(g, x + 22, y + 262, w - 44, 206, 0);\n    g.font = `italic 400 11px ${SERIF}`;\n    g.fillStyle = \"#5b5248\";\n    [\"Morning\", \"Midday\", \"Evening\"].forEach((t, k) => {\n      g.fillText(t, x + 22 + k * ((w - 44) / 3), y + 494);\n      g.fillRect(x + 22 + k * ((w - 44) / 3), y + 502, (w - 44) / 3 - 14, 1);\n    });\n  } else if (i === 1) {\n    g.fillStyle = \"#101317\";\n    g.fillRect(x, y, w, h);\n    sea(g, x, y + 250, w, h - 250, 1);\n    const fade = g.createLinearGradient(0, y + 250, 0, y + 330);\n    fade.addColorStop(0, \"#101317\");\n    fade.addColorStop(1, \"rgba(16,19,23,0)\");\n    g.fillStyle = fade;\n    g.fillRect(x, y + 250, w, 80);\n    g.fillStyle = \"#f3f0ea\";\n    g.font = `800 13px ${GROT}`;\n    g.fillText(\"TIDEWATER\", x + 22, y + 34);\n    g.font = `600 10px ${GROT}`;\n    g.fillStyle = \"rgba(243,240,234,0.7)\";\n    [\"LESSONS\", \"TIDES\", \"STAY\"].forEach((t, k) => g.fillText(t, x + w - 170 + k * 52, y + 33));\n    g.fillStyle = \"#f3f0ea\";\n    g.font = `900 62px ${GROT}`;\n    g.letterSpacing = \"-3px\";\n    [\"RIDE THE\", \"MORNING\", \"SWELL.\"].forEach((t, k) => g.fillText(t, x + 20, y + 112 + k * 56));\n    g.letterSpacing = \"0px\";\n    g.fillStyle = \"#e9c27a\";\n    g.beginPath();\n    g.roundRect(x + 22, y + h - 62, 128, 34, 17);\n    g.fill();\n    g.fillStyle = \"#101317\";\n    g.font = `800 11px ${GROT}`;\n    g.fillText(\"Book a lesson\", x + 44, y + h - 41);\n    g.fillStyle = \"#f3f0ea\";\n    g.font = `600 10px ${GROT}`;\n    g.fillText(\"Boards and suits included\", x + 166, y + h - 41);\n  } else {\n    g.fillStyle = \"#f3ede3\";\n    g.fillRect(x, y, w, h);\n    g.fillStyle = \"#c2583a\";\n    g.beginPath();\n    g.roundRect(x + 14, y + 14, w - 28, 300, 18);\n    g.fill();\n    g.fillStyle = \"#fbefe6\";\n    g.font = `800 15px ${GROT}`;\n    g.fillText(\"tidewater\", x + 34, y + 46);\n    g.beginPath();\n    g.roundRect(x + w - 118, y + 28, 84, 26, 13);\n    g.fill();\n    g.fillStyle = \"#c2583a\";\n    g.font = `700 10px ${GROT}`;\n    g.fillText(\"Book now\", x + w - 99, y + 45);\n    g.fillStyle = \"#fbefe6\";\n    g.font = `800 40px ${GROT}`;\n    g.letterSpacing = \"-1.5px\";\n    [\"Surf lessons\", \"for every tide\"].forEach((t, k) => g.fillText(t, x + 34, y + 128 + k * 42));\n    g.letterSpacing = \"0px\";\n    g.font = `500 12px ${GROT}`;\n    g.fillText(\"Beginners welcome, boards waiting.\", x + 34, y + 204);\n    sea(g, x + 34, y + 222, w - 68, 74, 1);\n    const cards: [string, string][] = [\n      [\"#6f7a46\", \"Beginners\"],\n      [\"#d9a75a\", \"Improvers\"],\n      [\"#2f6a6e\", \"Board hire\"],\n    ];\n    const cw = (w - 28 - 20) / 3;\n    cards.forEach(([c, t], k) => {\n      const cx = x + 14 + k * (cw + 10);\n      g.fillStyle = c;\n      g.beginPath();\n      g.roundRect(cx, y + 330, cw, 160, 14);\n      g.fill();\n      g.fillStyle = \"#fbefe6\";\n      g.font = `800 14px ${GROT}`;\n      g.fillText(t, cx + 14, y + 470);\n      g.beginPath();\n      g.arc(cx + cw - 22, y + 352, 9, 0, Math.PI * 2);\n      g.fill();\n    });\n  }\n  g.restore();\n  // proof label in the foot of the print\n  g.fillStyle = \"#3a352f\";\n  g.font = `600 13px ${MONO}`;\n  g.letterSpacing = \"2px\";\n  g.fillText(`PROOF ${proofs[i].key}`, x0 + B + 2, PH - 26);\n  g.textAlign = \"right\";\n  g.fillText(proofs[i].style.toUpperCase(), x0 + PW - B - 2, PH - 26);\n  g.textAlign = \"left\";\n  g.letterSpacing = \"0px\";\n  g.fillStyle = \"rgba(58,53,47,0.35)\";\n  g.fillRect(x0 + B, PH - 46, PW - 2 * B, 1);\n}\n\nfunction makeAtlas() {\n  const c = document.createElement(\"canvas\");\n  c.width = PW * 3;\n  c.height = PH;\n  const g = c.getContext(\"2d\")!;\n  for (let i = 0; i < 3; i++) paintProof(g, i, i * PW);\n  return c;\n}\n\n/* ---------- motion ---------- */\n\ntype P = { u: number; s: number; sv: number; land: number; lv: number; dip: number; dv: number; landed: boolean };\ntype V3 = [number, number, number];\n\nconst lineY = (x: number, dips: number[]) => {\n  let y = Y0 - SAG * (1 - (x / LX) ** 2);\n  dips.forEach((d, i) => {\n    const k = (x - (i - 1) * SP) / 0.24;\n    y -= d * Math.exp(-k * k);\n  });\n  return y;\n};\nconst sstep = (a: number, b: number, x: number) => {\n  const t = Math.min(1, Math.max(0, (x - a) / (b - a)));\n  return t * t * (3 - 2 * t);\n};\n// world = Rz(roll) Ry(yaw) Rx(pitch) local\nconst toWorld = (v: V3, pitch: number, yaw: number, roll: number): V3 => {\n  let [x, y, z] = v;\n  let c = Math.cos(pitch), s = Math.sin(pitch);\n  [y, z] = [y * c - z * s, y * s + z * c];\n  c = Math.cos(yaw);\n  s = Math.sin(yaw);\n  [z, x] = [z * c - x * s, z * s + x * c];\n  c = Math.cos(roll);\n  s = Math.sin(roll);\n  [x, y] = [x * c - y * s, x * s + y * c];\n  return [x, y, z];\n};\nconst PROBES: V3[] = [\n  [-HW, -HH, 0],\n  [HW, -HH, 0],\n  [-HW, HH, 0],\n  [HW, HH, 0],\n  [0, HH + 0.018, -0.0055],\n  [0, HH + 0.018, 0.0055],\n  [0.03, HH + 0.012, -0.006],\n  [-0.03, HH + 0.012, -0.006],\n];\n\nfunction pose(i: number, q: P, dips: number[], t: number) {\n  const R = HH + CLIP;\n  const px = (i - 1) * SP;\n  const py = lineY(px, dips);\n  const hang: V3 = [px + Math.sin(q.s) * R, py - Math.cos(q.s) * R, ZL];\n  const [rx, rz, ry] = REST[i];\n  const u = q.u;\n  const side = i === 0 ? 1 : -1;\n  const e = sstep(0, 1, u);\n  const x = hang[0] + (rx - hang[0]) * e + 0.06 * side * Math.sin(u * Math.PI);\n  const y = hang[1] + (TH + 0.0062 - hang[1]) * u * u;\n  const z = ZL + (rz - ZL) * e + 0.05 * Math.sin(u * Math.PI);\n  const flutter = Math.sin(u * Math.PI * 2.3) * u * (1 - u) * 4;\n  const pitch = -Math.PI / 2 * sstep(0.04, 0.9, u) + 0.32 * flutter + q.land;\n  const roll = q.s * (1 - sstep(0, 0.5, u)) + 0.2 * side * flutter;\n  const yaw = ry * sstep(0.2, 1, u) + 0.004 * Math.sin(t * 0.5 + i) * (1 - u);\n  const c: V3 = [x, y, z];\n  // never through the table or the wall\n  let lowY = 1e3, lowZ = 1e3;\n  for (const p of PROBES) {\n    const w = toWorld(p, pitch, yaw, roll);\n    lowY = Math.min(lowY, c[1] + w[1]);\n    lowZ = Math.min(lowZ, c[2] + w[2]);\n  }\n  if (lowY < 0.0008) c[1] += 0.0008 - lowY;\n  if (lowZ < 0.01) c[2] += 0.01 - lowZ;\n  return { c, pitch, yaw, roll };\n}\n\nfunction camera(aspect: number, t: number, phone: boolean) {\n  const ta: V3 = [0, phone ? 0.72 : 0.66, 0.3];\n  const halfW = phone ? 1.42 : 1.46;\n  const halfH = phone ? 0.9 : 0.86;\n  const D = Math.max((halfW * 2.4) / (0.5 * aspect), (halfH * 2.4) / 0.5);\n  const dir: V3 = [0.1 + 0.012 * Math.sin(t * 0.17), 0.78, 1];\n  const len = Math.hypot(...dir);\n  const ro = ta.map((v, k) => v + (dir[k] / len) * D) as V3;\n  return { ro, ta };\n}\n\nexport default function ThreeProofsOnAStringLine() {\n  const reduce = useReducedMotion();\n  const [kept, setKept] = useState(START);\n  const [webgl, setWebgl] = useState(true);\n  const canvasRef = useRef<HTMLCanvasElement>(null);\n  const keptRef = useRef(START);\n  const userRef = useRef(false);\n  const pokeRef = useRef<() => void>(() => {});\n\n  const choose = (i: number) => {\n    userRef.current = true;\n    setKept(i);\n  };\n\n  useEffect(() => {\n    keptRef.current = kept;\n    pokeRef.current();\n  }, [kept]);\n\n  useEffect(() => {\n    if (reduce) return;\n    const id = window.setInterval(() => {\n      if (!userRef.current) setKept((k) => (k + 1) % 3);\n    }, DEMO_EVERY);\n    return () => window.clearInterval(id);\n  }, [reduce]);\n\n  useEffect(() => {\n    const canvas = canvasRef.current;\n    if (!canvas) return;\n    const gl = canvas.getContext(\"webgl2\", { antialias: false, alpha: false, powerPreference: \"high-performance\" });\n    if (!gl) {\n      setWebgl(false);\n      return;\n    }\n    const compile = (type: number, src: string) => {\n      const s = gl.createShader(type)!;\n      gl.shaderSource(s, src);\n      gl.compileShader(s);\n      if (!gl.getShaderParameter(s, gl.COMPILE_STATUS)) throw new Error(gl.getShaderInfoLog(s) || \"shader\");\n      return s;\n    };\n    const link = (fs: string) => {\n      const p = gl.createProgram()!;\n      gl.attachShader(p, compile(gl.VERTEX_SHADER, VERT));\n      gl.attachShader(p, compile(gl.FRAGMENT_SHADER, fs));\n      gl.bindAttribLocation(p, 0, \"a\");\n      gl.linkProgram(p);\n      if (!gl.getProgramParameter(p, gl.LINK_STATUS)) throw new Error(gl.getProgramInfoLog(p) || \"link\");\n      return p;\n    };\n    let scene: WebGLProgram, post: WebGLProgram;\n    try {\n      scene = link(SCENE);\n      post = link(POST);\n    } catch (e) {\n      console.warn(e);\n      setWebgl(false);\n      return;\n    }\n    const U = (p: WebGLProgram, n: string) => gl.getUniformLocation(p, n);\n    const su = Object.fromEntries([\"uRes\", \"uTime\", \"uRo\", \"uTa\", \"uA\", \"uB\", \"uDip\", \"uAtlas\"].map((n) => [n, U(scene, n)]));\n    const pu = Object.fromEntries([\"uSrc\", \"uRes\", \"uFocus\", \"uTime\"].map((n) => [n, U(post, n)]));\n    const buf = gl.createBuffer();\n    gl.bindBuffer(gl.ARRAY_BUFFER, buf);\n    gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([-1, -1, 3, -1, -1, 3]), gl.STATIC_DRAW);\n    gl.enableVertexAttribArray(0);\n    gl.vertexAttribPointer(0, 2, gl.FLOAT, false, 0, 0);\n\n    const atlas = gl.createTexture();\n    gl.activeTexture(gl.TEXTURE1);\n    gl.bindTexture(gl.TEXTURE_2D, atlas);\n    gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, makeAtlas());\n    gl.generateMipmap(gl.TEXTURE_2D);\n    gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR_MIPMAP_LINEAR);\n    gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);\n    gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);\n    gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);\n    const aniso = gl.getExtension(\"EXT_texture_filter_anisotropic\");\n    if (aniso) gl.texParameterf(gl.TEXTURE_2D, aniso.TEXTURE_MAX_ANISOTROPY_EXT, Math.min(8, gl.getParameter(aniso.MAX_TEXTURE_MAX_ANISOTROPY_EXT)));\n\n    const fbo = gl.createFramebuffer();\n    const fbTex = gl.createTexture();\n    gl.activeTexture(gl.TEXTURE0);\n    gl.bindTexture(gl.TEXTURE_2D, fbTex);\n    gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR_MIPMAP_LINEAR);\n    gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);\n    gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);\n    gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);\n\n    const st: P[] = [0, 1, 2].map((i) => {\n      const on = i === keptRef.current;\n      return { u: on ? 1 : 0, s: 0.03 * Math.sin(i * 2.3), sv: 0, land: 0, lv: 0, dip: on ? 0 : DIP, dv: 0, landed: on };\n    });\n\n    let scale = 1;\n    let w = 2, h = 2, aspect = 16 / 9, phone = false;\n    let time = 0;\n    const resize = () => {\n      const r = canvas.getBoundingClientRect();\n      const dpr = Math.min(window.devicePixelRatio || 1, 2);\n      const k = Math.min(dpr * scale, Math.sqrt(1.3e6 / Math.max(1, r.width * r.height)));\n      w = Math.max(2, Math.round(r.width * k));\n      h = Math.max(2, Math.round(r.height * k));\n      canvas.width = w;\n      canvas.height = h;\n      aspect = r.width / Math.max(1, r.height);\n      phone = r.width < 640;\n      gl.bindTexture(gl.TEXTURE_2D, fbTex);\n      gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, w, h, 0, gl.RGBA, gl.UNSIGNED_BYTE, null);\n      gl.bindFramebuffer(gl.FRAMEBUFFER, fbo);\n      gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, fbTex, 0);\n      draw();\n    };\n\n    const A = new Float32Array(12);\n    const B = new Float32Array(12);\n    const draw = () => {\n      const cam = camera(aspect, time, phone);\n      const dips = st.map((q) => q.dip);\n      let focus = 0;\n      st.forEach((q, i) => {\n        const p = pose(i, q, dips, time);\n        A.set([p.c[0], p.c[1], p.c[2], p.pitch], i * 4);\n        B.set([p.roll, p.yaw, 0.009 * (1 - q.u) + 0.003, i === keptRef.current && q.u > 0.96 ? 1 : 0], i * 4);\n        if (i === keptRef.current) focus = Math.hypot(p.c[0] - cam.ro[0], p.c[1] - cam.ro[1], p.c[2] - cam.ro[2]);\n      });\n      gl.bindFramebuffer(gl.FRAMEBUFFER, fbo);\n      gl.viewport(0, 0, w, h);\n      gl.useProgram(scene);\n      gl.uniform2f(su.uRes, w, h);\n      gl.uniform1f(su.uTime, time);\n      gl.uniform3fv(su.uRo, cam.ro);\n      gl.uniform3fv(su.uTa, cam.ta);\n      gl.uniform4fv(su.uA, A);\n      gl.uniform4fv(su.uB, B);\n      gl.uniform3fv(su.uDip, dips);\n      gl.uniform1i(su.uAtlas, 1);\n      gl.drawArrays(gl.TRIANGLES, 0, 3);\n      gl.bindFramebuffer(gl.FRAMEBUFFER, null);\n      gl.viewport(0, 0, w, h);\n      gl.useProgram(post);\n      gl.activeTexture(gl.TEXTURE0);\n      gl.bindTexture(gl.TEXTURE_2D, fbTex);\n      gl.generateMipmap(gl.TEXTURE_2D);\n      gl.uniform1i(pu.uSrc, 0);\n      gl.uniform2f(pu.uRes, w, h);\n      gl.uniform1f(pu.uFocus, focus);\n      gl.uniform1f(pu.uTime, time);\n      gl.drawArrays(gl.TRIANGLES, 0, 3);\n    };\n\n    const step = (dt: number) => {\n      st.forEach((q, i) => {\n        const want = keptRef.current === i;\n        const was = q.u;\n        q.u = want ? Math.min(1, q.u + dt / FALL) : Math.max(0, q.u - dt / RISE);\n        if (want && was === 0 && q.u > 0) {\n          // the line lets go: the other prints jump and sway\n          st.forEach((o, j) => {\n            if (j !== i) o.sv += (j < i ? -1 : 1) * 0.3;\n          });\n        }\n        if (want && q.u >= 1 && !q.landed) {\n          q.landed = true;\n          q.lv = 1.1; // the leading edge kicks up once as the print lands\n        }\n        if (!want) q.landed = false;\n        if (!want && was > 0 && q.u === 0) q.sv += 0.35 * (i === 0 ? -1 : 1); // rehung: it rocks on its clip\n        q.lv += (-260 * q.land - 9 * q.lv) * dt;\n        q.land += q.lv * dt;\n        if (q.land < 0) {\n          q.land = 0;\n          q.lv = Math.abs(q.lv) * 0.25;\n        }\n        const target = q.u < 0.02 ? DIP : 0;\n        q.dv += (-120 * (q.dip - target) - 4 * q.dv) * dt;\n        q.dip += q.dv * dt;\n        const breeze = 0.018 * Math.sin(time * 0.6 + i * 1.7) + 0.007 * Math.sin(time * 1.7 + i * 0.6);\n        q.sv += (-14 * (q.s - breeze) - 0.7 * q.sv - q.dv * 0.02) * dt;\n        q.s += q.sv * dt;\n      });\n    };\n\n    let raf = 0;\n    let visible = true;\n    let prev = performance.now();\n    let frames = 0, fpsT = prev, slow = 0;\n    const loop = (now: number) => {\n      raf = 0;\n      const dt = Math.min(0.05, (now - prev) / 1000);\n      prev = now;\n      time += dt;\n      const sub = Math.ceil(dt / (1 / 240));\n      for (let k = 0; k < sub; k++) step(dt / sub);\n      draw();\n      frames++;\n      if (now - fpsT > 1000) {\n        const fps = (frames * 1000) / (now - fpsT);\n        canvas.dataset.fps = fps.toFixed(1);\n        if (fps < 45 && scale > 0.55) {\n          if (++slow >= 2) {\n            scale = Math.max(0.55, scale - 0.15);\n            slow = 0;\n            resize();\n          }\n        } else slow = 0;\n        frames = 0;\n        fpsT = now;\n      }\n      if (visible) raf = requestAnimationFrame(loop);\n    };\n    const start = () => {\n      if (reduce || raf || !visible) return;\n      prev = performance.now();\n      raf = requestAnimationFrame(loop);\n    };\n    pokeRef.current = () => {\n      if (reduce) {\n        st.forEach((q, i) => {\n          const on = keptRef.current === i;\n          Object.assign(q, { u: on ? 1 : 0, dip: on ? 0 : DIP, dv: 0, land: 0, lv: 0, landed: on });\n        });\n        draw();\n      }\n    };\n\n    // press a hanging print in the picture to keep it\n    const pick = (ev: MouseEvent) => {\n      const r = canvas.getBoundingClientRect();\n      const ux = (ev.clientX - r.left - r.width / 2) / r.height;\n      const uy = -(ev.clientY - r.top - r.height / 2) / r.height;\n      const { ro, ta } = camera(aspect, time, phone);\n      const f = ta.map((v, k) => v - ro[k]);\n      const fl = Math.hypot(...f);\n      const fw = f.map((v) => v / fl);\n      const rl = Math.hypot(fw[2], fw[0]);\n      const rt = [-fw[2] / rl, 0, fw[0] / rl];\n      const up = [rt[1] * fw[2] - rt[2] * fw[1], rt[2] * fw[0] - rt[0] * fw[2], rt[0] * fw[1] - rt[1] * fw[0]];\n      const rd = [0, 1, 2].map((k) => fw[k] * 2.4 + rt[k] * ux + up[k] * uy);\n      const tt = (ZL - ro[2]) / rd[2];\n      const x = ro[0] + rd[0] * tt, y = ro[1] + rd[1] * tt;\n      const i = Math.round(x / SP) + 1;\n      if (i < 0 || i > 2 || Math.abs(x - (i - 1) * SP) > HW + 0.04) return -1;\n      if (y > Y0 + 0.02 || y < Y0 - 2 * HH - CLIP - 0.12 || st[i].u > 0.5) return -1;\n      return i;\n    };\n    const onClick = (e: MouseEvent) => {\n      const i = pick(e);\n      if (i >= 0) choose(i);\n    };\n    const onMove = (e: PointerEvent) => {\n      const i = pick(e);\n      canvas.style.cursor = i >= 0 ? \"pointer\" : \"default\";\n      if (i >= 0 && !reduce) st[i].sv += 0.02 * Math.sign(e.movementX || 0);\n    };\n    canvas.addEventListener(\"click\", onClick);\n    canvas.addEventListener(\"pointermove\", onMove);\n\n    const ro = new ResizeObserver(resize);\n    ro.observe(canvas);\n    resize();\n    const io = new IntersectionObserver(([en]) => {\n      visible = en.isIntersecting && !document.hidden;\n      if (visible) start();\n    });\n    io.observe(canvas);\n    const onVis = () => {\n      visible = !document.hidden;\n      if (visible) start();\n    };\n    document.addEventListener(\"visibilitychange\", onVis);\n    start();\n    return () => {\n      cancelAnimationFrame(raf);\n      ro.disconnect();\n      io.disconnect();\n      document.removeEventListener(\"visibilitychange\", onVis);\n      canvas.removeEventListener(\"click\", onClick);\n      canvas.removeEventListener(\"pointermove\", onMove);\n      pokeRef.current = () => {};\n      gl.deleteTexture(atlas);\n      gl.deleteTexture(fbTex);\n      gl.deleteFramebuffer(fbo);\n      gl.deleteBuffer(buf);\n      gl.deleteProgram(scene);\n      gl.deleteProgram(post);\n    };\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, [reduce]);\n\n  return (\n    <section className=\"relative overflow-hidden bg-[#F6F4EF] text-[#0B0D12]\" style={{ fontFamily: GROT }}>\n      <div className=\"mx-auto max-w-6xl px-4 py-10 sm:px-6 lg:py-14\">\n        <div className=\"relative aspect-[1/1] w-full overflow-hidden rounded-[6px] bg-[#cdbfa9] shadow-[0_40px_80px_-40px_rgba(40,30,20,0.55)] sm:aspect-[16/9]\">\n          {webgl ? (\n            <canvas ref={canvasRef} aria-hidden=\"true\" className=\"absolute inset-0 h-full w-full\" />\n          ) : (\n            <StillStudio kept={kept} />\n          )}\n        </div>\n        <div className=\"mt-8 flex flex-col gap-6 lg:flex-row lg:items-end lg:justify-between\">\n          <div>\n            <p className=\"text-[12px] font-semibold uppercase tracking-[0.2em] text-[#0B0D12]/60\">{BUSINESS}, printed three ways</p>\n            <h2 className=\"mt-2 text-[44px] font-extrabold leading-[0.95] tracking-[-0.045em] sm:text-[64px]\">\n              Try three. <span style={{ color: BLUE }}>Keep one.</span>\n            </h2>\n          </div>\n          <div role=\"group\" aria-label=\"Choose the proof to keep\" className=\"flex flex-wrap gap-2\">\n            {proofs.map((p, i) => {\n              const on = kept === i;\n              return (\n                <button\n                  key={p.key}\n                  type=\"button\"\n                  aria-pressed={on}\n                  title={p.line}\n                  onClick={() => choose(i)}\n                  className={`inline-flex min-h-[44px] items-center gap-2 rounded-full px-5 text-[15px] font-bold tracking-[-0.01em] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#4F98FB] focus-visible:ring-offset-2 focus-visible:ring-offset-[#F6F4EF] ${\n                    on ? \"bg-[#0B0D12] text-[#F6F4EF]\" : \"bg-[#e7e2d8] text-[#0B0D12] hover:bg-[#ddd6c9]\"\n                  }`}\n                >\n                  <span\n                    aria-hidden=\"true\"\n                    className=\"h-2.5 w-2.5 rounded-full transition-colors\"\n                    style={{ background: on ? BLUE : \"rgba(11,13,18,0.25)\" }}\n                  />\n                  {on ? `Kept: ${p.style}` : p.style}\n                </button>\n              );\n            })}\n          </div>\n        </div>\n        <p className=\"sr-only\" aria-live=\"polite\">\n          {`${proofs[kept].style} is the kept proof. ${proofs[kept].line}`}\n        </p>\n      </div>\n    </section>\n  );\n}\n\n/** Without WebGL 2: the same studio as a still, with the real printed proofs. */\nfunction StillStudio({ kept }: { kept: number }) {\n  const refs = useRef<(HTMLCanvasElement | null)[]>([]);\n  useEffect(() => {\n    refs.current.forEach((c, i) => {\n      if (!c) return;\n      const g = c.getContext(\"2d\");\n      if (g) paintProof(g, i, 0);\n    });\n  }, []);\n  return (\n    <div className=\"absolute inset-0\" style={{ background: \"linear-gradient(180deg,#d8cfc1 0%,#cfc4b4 62%,#b89a76 62%,#a7865f 100%)\" }}>\n      <div className=\"absolute left-[6%] right-[6%] top-[12%] h-px bg-[#efe9dc]\" />\n      {proofs.map((p, i) => {\n        const on = i === kept;\n        const style = on\n          ? { left: `${36 + (i - 1) * 6}%`, top: \"60%\", width: \"26%\", transform: \"perspective(600px) rotateX(58deg) rotateZ(4deg)\" }\n          : { left: `${11 + i * 28}%`, top: \"13%\", width: \"21%\", transform: `rotate(${(i - 1) * 1.5}deg)` };\n        return (\n          <div key={p.key} className=\"absolute\" style={{ ...style, filter: \"drop-shadow(14px 18px 10px rgba(50,35,20,0.35))\" }}>\n            <div\n              className=\"mx-auto mb-[-6px] h-4 w-8 rounded-[3px]\"\n              style={{ background: on ? BLUE : \"linear-gradient(180deg,#e3e5e8,#9ea3a8)\" }}\n            />\n            <canvas ref={(el) => { refs.current[i] = el; }} width={PW} height={PH} className=\"block h-auto w-full\" />\n          </div>\n        );\n      })}\n    </div>\n  );\n}\n"}]}
