{"version":3,"file":"CommissionSun.3datAP9e.mjs","names":["useRef","p","__esmMin","init_ssg_sandbox_shims","window","de","p","c","init_jsx_runtime","init_npm_react_18_3_1","addPropertyControls","init_framer_CDGohruR","useIsStaticRenderer","ControlType","init_BurinCore","init_BurinPlate","useClock","SERIF","reducedMotion","clamp","useWidth","CREAM","SC","useBandProgress","paperBg","useBurinFonts","GROUND","PlateStack","CommissionSun","isStatic","props","wrap","w","rm","live","p$1","t","phone","pad","H","skyY","rise","R","sx","sy","rays","i","a","r1","r2","disc","y","hw","fs","style","heading","link","cta","init_CommissionSun"],"sources":["https:/framerusercontent.com/modules/JjNFMyPkDO1knDkEpvGq/zULphNY4YJB5Ev1fLQ8d/CommissionSun.js"],"sourcesContent":["// CommissionSun — the closing call. An engraved sun (a hatched disc with radiating cut lines) rises\n// behind an engraved butte as you scroll in; its rays turn slowly. One line, one button.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useRef}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{useBurinFonts,useWidth,clamp,reducedMotion,paperBg,GROUND,CREAM,SERIF,SC}from\"https://framerusercontent.com/modules/d5x5u6cBBcKmJ9ukxCDI/iTbA6CFr9jVNR2T4yH6N/BurinCore.js\";import{PlateStack,useBandProgress,useClock}from\"https://framerusercontent.com/modules/hXQ36AHIMlq2hGX3sovm/4HJJ8goAKn3jmTMxb9mA/BurinPlate.js\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function CommissionSun(props){useBurinFonts();const isStatic=useIsStaticRenderer();const{heading=\"Commission a plate.\",cta=\"Start a commission\",link=\"/contact\",style}=props;const wrap=useRef(null);const w=useWidth(wrap);const rm=typeof window!==\"undefined\"&&reducedMotion();const live=!isStatic&&!rm;const p=useBandProgress(wrap,live);const t=useClock(live,60);const phone=w<700;const pad=phone?20:Math.round(clamp(w*.04,24,72));const H=Math.round(clamp(w*(phone?1.7:.66),620,1e3));const skyY=H*(phone?.6:.52);const rise=live?clamp((p+.7)/.8):1;const R=clamp(w*(phone?.24:.12),80,190);const sx=w*(phone?.62:.58),sy=skyY+R*.9-rise*R*1.9;const rays=[];for(let i=0;i<72;i++){const a=i/72*Math.PI*2+t*.03;const r1=R*1.18,r2=R*(i%2?2.1:2.9);rays.push(/*#__PURE__*/_jsx(\"line\",{x1:sx+Math.cos(a)*r1,y1:sy+Math.sin(a)*r1,x2:sx+Math.cos(a)*r2,y2:sy+Math.sin(a)*r2,stroke:CREAM,strokeWidth:i%2?.7:1.1,opacity:.75},i));}const disc=[];for(let y=-R;y<R;y+=4.2){const hw=Math.sqrt(Math.max(0,R*R-y*y));disc.push(/*#__PURE__*/_jsx(\"line\",{x1:sx-hw,x2:sx+hw,y1:sy+y,y2:sy+y,stroke:CREAM,strokeWidth:1.6+y/R*.9},y));}const fs=phone?54:Math.round(clamp(w*.085,96,150));return /*#__PURE__*/_jsxs(\"div\",{ref:wrap,style:{...style,...paperBg,position:\"relative\",width:\"100%\",height:H,overflow:\"hidden\",color:CREAM},children:[/*#__PURE__*/_jsxs(\"svg\",{width:w,height:H,style:{position:\"absolute\",left:0,top:0,zIndex:0},\"aria-hidden\":true,children:[rays,/*#__PURE__*/_jsx(\"circle\",{cx:sx,cy:sy,r:R,fill:GROUND}),disc,/*#__PURE__*/_jsx(\"circle\",{cx:sx,cy:sy,r:R,fill:\"none\",stroke:CREAM,strokeWidth:1.2})]}),/*#__PURE__*/_jsx(PlateStack,{plate:\"cta\",w:w,skyY:skyY,p:live?p:0,speeds:[30,90],minW:phone?H*1.2:0,left:.55,alt:\"An engraved butte at sunrise\"}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",left:pad,top:phone?70:H*.12,zIndex:5,maxWidth:w-pad*2},children:[/*#__PURE__*/_jsxs(\"div\",{style:{fontFamily:SERIF,fontWeight:500,fontSize:fs,lineHeight:.95,letterSpacing:\"-0.015em\"},children:[heading.split(\" \").slice(0,1).join(\" \"),/*#__PURE__*/_jsx(\"br\",{}),/*#__PURE__*/_jsx(\"em\",{style:{fontWeight:400},children:heading.split(\" \").slice(1).join(\" \")})]}),/*#__PURE__*/_jsxs(\"a\",{href:link,style:{display:\"inline-flex\",alignItems:\"center\",gap:14,marginTop:34,padding:\"15px 24px 16px\",border:`1px solid ${CREAM}`,background:GROUND,color:CREAM,textDecoration:\"none\",fontFamily:SC,fontWeight:600,fontSize:15,letterSpacing:\"0.16em\",textTransform:\"lowercase\"},onMouseEnter:e=>{e.currentTarget.style.background=CREAM;e.currentTarget.style.color=GROUND;},onMouseLeave:e=>{e.currentTarget.style.background=GROUND;e.currentTarget.style.color=CREAM;},children:[cta,\" \",/*#__PURE__*/_jsx(\"span\",{style:{fontFamily:SERIF,fontSize:20,letterSpacing:0},children:\"→\"})]})]})]});}addPropertyControls(CommissionSun,{heading:{type:ControlType.String,defaultValue:\"Commission a plate.\"},cta:{type:ControlType.String,defaultValue:\"Start a commission\"},link:{type:ControlType.Link,defaultValue:\"/contact\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CommissionSun\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CommissionSun.map"],"mappings":"A,mVAKG,SAAwB4B,EAAc,EAAM,CAACH,EAAc,EAAE,IAAMI,EAASjB,EAAoB,EAAO,CAAC,UAAQ,sBAAsB,MAAI,qBAAqB,OAAK,WAAW,SAAOkB,EAAYC,EAAK/B,EAAO,IAAI,EAAQgC,EAAEZ,EAASW,CAAI,EAAQE,EAAU7B,IAAS,QAAac,EAAc,EAAQgB,EAAK,CAACL,GAAU,CAACI,EAAShC,EAAEsB,EAAgBQ,EAAKG,CAAI,EAAQE,EAAEpB,EAASkB,EAAK,EAAE,EAAQG,EAAML,EAAE,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