1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8890],{2406:(e,t,n)=>{n.d(t,{V:()=>r});var l=n(39516);let r=e=>t=>l.Wp.get(t,e)},4626:(e,t,n)=>{n.d(t,{R:()=>en});var l=n(95155),r=n(38783),i=n(68207),a=n(61903),s=n(60465);n(12115);var o=n(71408),c=n(59022);let u=e=>{let{children:t,value:n}=e;return(0,l.jsxs)("a",{className:(0,o.cn)("inline-flex items-center gap-1 rounded-sm underline duration-200","hover:bg-beer-yellow-900 hover:no-underline"),href:n.href||"",rel:"noopener noreferrer",target:(null==n?void 0:n.newWindow)?"_blank":"_self",children:[(0,l.jsx)(l.Fragment,{children:t}),(0,l.jsx)(i.I,{icon:c.QrT})]})};var d=n(29237);let m={linkEmail:e=>{let{children:t,value:{email:n}}=e;return(0,l.jsxs)("a",{className:(0,o.cn)("inline-flex items-center gap-1 rounded-sm underline duration-200","hover:bg-beer-yellow-900 hover:no-underline"),href:"mailto:".concat(n),children:[(0,l.jsx)(i.I,{icon:c.y_8,size:"sm"}),(0,l.jsx)(l.Fragment,{children:t})]})},linkExternal:u,linkInternal:function(e){let{children:t,value:n}=e;return(null==n?void 0:n.href)?(0,l.jsx)(d.N,{className:(0,o.cn)("inline-flex items-center gap-1 rounded-sm underline duration-200","hover:bg-beer-yellow-900 hover:no-underline"),href:null==n?void 0:n.href,children:t}):null},linkQuick:u},f={content:"max-w-article",wide:"max-w-article-wide",wider:"max-w-4xl",max:"max-w-site",full:"max-w-full"},h={content:672,wide:864,wider:896,max:1536,full:1920};function x(e){let{children:t,width:n}=e;return(0,l.jsx)("div",{className:(0,o.cn)("full"===n?"px-0":"px-buffer"),children:(0,l.jsx)("div",{className:(0,o.cn)(f[n||"content"],"mx-auto"),children:t})})}var v=n(34712);function p(e){let{title:t,children:n,className:a}=e;return(0,l.jsx)(v.Disclosure,{as:"div",className:"w-full border-b border-current/20",children:e=>{let{open:s}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(v.DisclosureButton,{className:(0,o.cn)("group inline-flex w-full items-center justify-between gap-8 pb-4 text-left",a),children:[(0,l.jsx)(r.D,{as:"h3",variant:"accordion",className:(0,o.cn)("group-hover:text-coral",s&&"text-coral"),children:t}),(0,l.jsx)(i.I,{icon:s?c.EZy:c.QLR,direction:s?"up":"down",className:"shrink-0"})]}),(0,l.jsx)(v.DisclosurePanel,{className:"grid gap-2 pb-8",children:n})]})}},t)}function g(e){let{value:t}=e,{groups:n}=t;return(0,l.jsx)("div",{className:"",children:(null==n?void 0:n.length)>0&&(0,l.jsx)("div",{children:n.map(e=>(0,l.jsx)(p,{title:e.title,children:(0,l.jsx)(en,{value:e.body,type:"simpleText"})},e._key))})})}var y=n(99197);function b(e){let{button:t}=e,{link:n,theme:r}=t;return(0,l.jsx)("div",{className:"text-center",children:(0,l.jsx)(y.$,{to:null==n?void 0:n.to,theme:null==r?void 0:r.slug,size:"xl",width:"full",className:"max-w-[50%]",children:null==n?void 0:n.title})})}var w=n(67487),j=n.n(w),N=n(56328),E=n(11251),k=n(96690);let S=e=>{let{media:t,layout:n="intrinsic",alt:r,mode:i,className:a,wrapperClassName:s,loading:c="lazy",...u}=e,d="https://cdn.sanity.io/images/".concat(E.Lg,"/").concat(E.RT,"/");if(!t)return null;let{src:m,query:f,width:h,height:x}=t.find(e=>!e.breakpoint)||{};if(!m)return null;let v=(0,k.fe)({baseUrl:d,crop:m.crop,hotspot:m.hotspot,id:m.asset._ref,mode:i,queryParams:f,width:h,height:x});return(0,l.jsxs)("picture",{className:s,style:{..."fill"===n&&{bottom:0,height:"100%",left:0,position:"absolute",right:0,top:0,width:"100%"}},children:[t.map((e,t)=>{let{breakpoint:n,src:r,query:a,width:s,height:o}=e,{crop:c,hotspot:u,asset:m}=r,f=(0,k.Dl)({baseUrl:d,crop:c,height:o,hotspot:u,id:m._ref,mode:i,queryParams:a,width:s});return(0,l.jsx)("source",{media:n,srcSet:f.join(", ")},t)}),(0,l.jsx)("img",{alt:r,className:(0,o.cn)("h-full w-full object-cover",a),height:v.height,src:v.src,width:v.width,loading:c,...u})]})};function R(e){var t,n,r;let{media:i,config:a,...s}=e;if(!i)return null;let o=(null==i||null==(n=i.module)||null==(t=n[0])?void 0:t.image)||((null==i?void 0:i.url)?i:null),c=null==i||null==(r=i.module)?void 0:r[0],u=j()({},{breakpoints:[{breakpoint:"(max-width: 768px)",height:1200,query:{crop:"focalpoint",q:80},width:768},{height:1080,query:{crop:"focalpoint",q:80},width:1920}],mode:"cover",layout:"fill",loading:"eager"},a);return o?(0,l.jsx)(S,{alt:null==o?void 0:o.altText,layout:u.layout,loading:u.loading,className:"h-[inherit] min-h-[inherit] w-full object-cover",media:u.breakpoints.map(e=>({...e,src:o})),mode:u.mode,...s}):c?(0,l.jsx)(N.SanityMuxVideo,{video:c,wrapperClassName:"h-[inherit] min-h-[inherit] absolute inset-0",className:"h-[inherit] min-h-[inherit] w-full object-cover",...s}):null}function I(e){let{value:t}=e,{items:n}=t;return(0,l.jsx)("div",{className:"my-8 md:my-24",children:n&&(0,l.jsx)("div",{className:(0,o.cn)("relative grid h-full place-items-center gap-8 md:grid-cols-2"),children:null==n?void 0:n.map(e=>{switch(e._type){case"headingGroup":case"media":return(0,l.jsx)(R,{media:e,config:{breakpoints:[{breakpoint:"(max-width: 768px)",height:500,width:500},{height:800,width:800}],mode:"cover",layout:"intrinsic",loading:"eager"}},e._key);case"body":return(0,l.jsx)(en,{value:e,type:"simpleText"},e._key)}})})})}var P=n(53265);function C(e){let{image:t,children:n,className:r}=e,{image:i,contentWidth:a}=t||{}
1,s=n||(0,l.jsx)(P.s,{src:i,width:h[a]||h.wide,height:0,alt:null==i?void 0:i.alt,className:"w-full"});return(0,l.jsxs)("div",{className:r,children:[(0,l.jsx)("div",{className:"relative",children:(null==i?void 0:i.link)?(0,l.jsx)(d.N,{href:i.link.to,className:"block",children:s}):s}),(0,l.jsx)("div",{className:(0,o.cn)("flex flex-wrap gap-1 px-4 sm:gap-4","full"===a&&"max-w-article mx-auto"),children:(null==i?void 0:i.caption)&&(0,l.jsx)("div",{className:"pt-2",children:(0,l.jsx)(en,{value:i.caption,type:"simpleText"})})})]})}var D=n(90186);function A(e){let{value:t}=e,{images:n,variant:r,width:i,verticalAlign:a,columns:s,count:c}=t;return"slider"===r?(0,l.jsx)("section",{className:"px-buffer relative mb-8 overflow-hidden md:mb-16",children:(0,l.jsx)("div",{className:"max-w-site mx-auto",children:(null==n?void 0:n.length)&&(0,l.jsx)(D.Carousel,{options:{slidesPerView:1.2,centerInsufficientSlides:!0,breakpoints:{768:{slidesPerView:2.5,spaceBetween:20},1024:{slidesPerView:"auto"}}},items:n,navigation:"top",overflowFull:!0,children:null==n?void 0:n.map(e=>{var t;return(0,l.jsx)(D.CarouselSlide,{className:"!w-auto",children:(0,l.jsx)(C,{image:e,children:(0,l.jsx)(P.s,{src:null==e?void 0:e.image,width:0,height:600,alt:null==e||null==(t=e.image)?void 0:t.alt})})},e._key)})})})}):(0,l.jsx)("div",{className:(0,o.cn)("my-8 flex flex-wrap justify-center gap-4 md:my-16","top"===a&&"items-start","center"===a&&"items-center","bottom"===a&&"items-end"),children:null==n?void 0:n.map(e=>{var t;let n=function(e){let{totalImages:t,maxWidth:n,gutter:l,numberOfColumns:r}=e,i=Math.min(t,r);return 1===t?n:(n-l*(i-1))/i}({totalImages:c,maxWidth:h[i]||864,gutter:16,numberOfColumns:s||2});return(0,l.jsx)(C,{image:e,children:(0,l.jsx)(P.s,{src:null==e?void 0:e.image,width:Math.round(n),height:0,alt:null==e||null==(t=e.image)?void 0:t.alt})},e._key)})})}let _=(0,n(33152).F)("text-pretty leading-snug",{variants:{variant:{excerpt:"leading-tight",hero:"text-xl leading-tight"},uppercase:{true:"uppercase",false:""}}});function T(e){let{className:t,children:n,variant:r,uppercase:i,...a}=e;return(0,l.jsx)("p",{className:(0,o.cn)(_({variant:r,uppercase:i}),t),...a,children:n})}function M(e){var t,n,i;let{card:a}=e,{button:s,title:o,image:c,body:u}=a;return(0,l.jsxs)("div",{className:"bg-sand-500 flex",children:[(0,l.jsx)(P.s,{src:c,alt:o,width:0,height:330,className:"max-w-[25%] object-cover"}),(0,l.jsx)("div",{className:"flex-1 p-6",children:(0,l.jsxs)("div",{className:"flex h-full flex-col items-center justify-between gap-6 sm:flex-row",children:[(0,l.jsxs)("div",{children:[o&&(0,l.jsx)(r.D,{as:"h3",className:"text-2xl",children:o}),u&&(0,l.jsx)(T,{children:u})]}),(0,l.jsx)(y.$,{to:null==s||null==(t=s.link)?void 0:t.to,theme:null==s||null==(n=s.theme)?void 0:n.slug,size:"md",className:"ml-auto w-full sm:w-auto",children:null==s||null==(i=s.link)?void 0:i.title})]})})]})}function L(e){let{value:t}=e,{module:n}=t||{};n._type}let O=(0,o.cn)("list-outside pl-12","space-y-2");function B(e){let{children:t,type:n,className:r}=e;return"bullet"===n?(0,l.jsx)("ul",{className:(0,o.cn)(O,"list-disc",r),children:t}):"number"===n?(0,l.jsx)("ol",{className:(0,o.cn)(O,"list-decimal",r),children:t}):null}let V={normal:e=>{let{children:t}=e;return(0,l.jsx)(x,{children:(0,l.jsx)("p",{className:"my-8 mt-6 text-lg leading-[1.5] text-gray-800",children:t})})},h2:e=>{let{children:t}=e;return(0,l.jsx)(x,{children:(0,l.jsx)(r.D,{as:"h2",className:"mt-12 max-w-full text-4xl",children:t})})},h3:e=>{let{children:t}=e;return(0,l.jsx)(x,{children:(0,l.jsx)(r.D,{as:"h3",className:"mt-12 max-w-full text-3xl",children:t})})},h4:e=>{let{children:t}=e;return(0,l.jsx)(x,{children:(0,l.jsx)(r.D,{as:"h4",className:"text-wine-red-900 font-messina-cond mt-12 max-w-full text-2xl font-bold uppercase",children:t})})},h5:e=>{let{children:t}=e;return(0,l.jsx)(x,{children:(0,l.jsx)(r.D,{as:"h5",className:"mt-12 max-w-full",children:t})})},h6:e=>{let{children:t}=e;return(0,l.jsx)(x,{children:(0,l.jsx)(r.D,{as:"h6",className:"mt-12 max-w-full",children:t})})},lead:e=>{let{children:t}=e;return(0,l.jsx)(x,{children:(0,l.jsx)("p",{className:"font-messina-cond text-wine-red-900 my-12 text-3xl font-bold",children:t})})},blockquote:e=>{let{children:t}=e;return(0,l.jsx)(x,{width:"wider",children:(0,l.jsxs)("div",{className:"my-16 flex gap-6",children:[(0,l.jsx)(i.I,{icon:a.$7g,className:"text-wine-red-900 text-6xl"}),(0,l.jsx)("blockquote",{className:"font-girott text-3xl uppercase sm:text-5xl",children:t})]})})}},F={bullet:e=>{let{children:t}=e;return(0,l.jsx)(x,{children:(0,l.jsx)(B,{type:"bullet",className:"my-8 mt-4 text-lg",children:t})})},number:e=>{let{children:t}=e;return(0,l.jsx)(x,{children:(0,l.jsx)(B,{type:"number",className:"my-8 mt-4 text-lg",children:t})})}},z={blockImage:e=>{let{value:t}=e;return(0,l.jsx)(x,{width:(null==t?void 0:t.contentWidth)||"wide",children:(0,l.jsx)(C,{image:t,className:"my-8 sm:my-16"})})},blockImages:e=>{let{value:t}=e;return(0,l.jsx)(x,{width:(null==t?void 0:t.variant)==="slider"?"full":(null==t?void 0:t.width)||"wide",children:(0,l.jsx)(A,{value:t})})},blockInfoCard:e=>{let{value:t}=e;return(0,l.jsx)(x,{children:(0,l.jsx)(M,{card:t})})}
1,blockButton:e=>{let{value:t}=e;return(0,l.jsx)(x,{children:(0,l.jsx)(b,{button:t})})},blockAccordion:e=>{let{value:t}=e;return(0,l.jsx)(x,{children:(0,l.jsx)(g,{value:t})})},blockGrid:e=>{let{value:t}=e;return(0,l.jsx)(x,{width:"max",children:(0,l.jsx)(I,{value:t})})},blockModule:e=>{let{value:t}=e;return(0,l.jsx)(x,{width:"max",children:(0,l.jsx)(L,{value:t})})}};function G(e){let{value:t}=e;return(0,l.jsx)(s.RK,{value:t,components:{block:V,list:F,types:z,marks:m}})}var U=n(31826),W=n(66766),Y=n(91384),X=n(65543);let q={normal:e=>{let{children:t}=e;return(0,l.jsx)("p",{className:"text-mercury text-[8vw] lg:text-[6vw] leading-[0.9] font-bold uppercase",children:t})}},H={},K={image:e=>{let{value:t}=e;return(0,l.jsx)(P.s,{src:t,width:160,height:80,mode:"cover",alt:null==t?void 0:t.alt,className:"inline-block aspect-[6/3] h-[0.78em] w-auto rounded-sm object-cover align-baseline opacity-10 grayscale-100 supports-[height:1lh]:h-[0.78lh] lg:rounded-xl"})},video:e=>{var t,n;let{value:r}=e,{video:{width:i,height:a,files:s,pictures:o},alt:c,thumbnail:u}=r,{props:{src:d}}=(0,W.getImageProps)({src:null==o?void 0:o.base_link,width:160,height:100,alt:c}),m=null==s||null==(t=s.find(e=>(null==e?void 0:e.quality)==="sd"&&((null==e?void 0:e.rendition)==="240p"||(null==e?void 0:e.rendition)==="360p"||(null==e?void 0:e.rendition)==="540p")))?void 0:t.link;return(0,l.jsx)(X.SanityVimeoVideo,{src:m,disableLoading:!0,width:i,height:a,rawHeight:a,rawWidth:i,poster:d||(null==(n=(0,U.i)(u))?void 0:n.width(160).height(100).url()),fit:"cover",controls:!1,maxResolution:"720p",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"inline-block aspect-[6
1/3] h-[0.78em] w-auto overflow-clip rounded-sm lg:rounded-xl object-cover align-baseline opacity-10 grayscale-100 supports-[height:1lh]:h-[0.78lh]"})}};function $(e){let{value:t}=e;return(0,l.jsx)(Y.ScrollHighlight,{className:"text-balance select-none",children:(0,l.jsx)(s.RK,{value:t,components:{block:q,list:H,types:K,marks:m}})})}function Q(e){let{value:t}=e,{items:n}=t;return(0,l.jsx)("div",{className:"divide-y divide-current/20 py-4",children:(null==n?void 0:n.length)>0&&n.map(e=>(0,l.jsxs)("div",{className:"py-8",children:[(0,l.jsx)(r.D,{as:"h3",className:"mb-2",variant:"pill",children:e.title}),(0,l.jsx)(en,{value:e.text,type:"simpleText"})]},e._key))})}let J={normal:e=>{let{children:t}=e;return(0,l.jsx)(T,{children:t})},h2:e=>{let{children:t}=e;return(0,l.jsx)(r.D,{as:"h2",children:t})},h3:e=>{let{children:t}=e;return(0,l.jsx)(r.D,{as:"h3",children:t})},h4:e=>{let{children:t}=e;return(0,l.jsx)(r.D,{as:"h4",children:t})},h5:e=>{let{children:t}=e;return(0,l.jsx)(r.D,{as:"h5",children:t})},h6:e=>{let{children:t}=e;return(0,l.jsx)(r.D,{as:"h6",children:t})}},Z={bullet:e=>{let{children:t}=e;return(0,l.jsx)(B,{type:"bullet",children:t})},number:e=>{let{children:t}=e;return(0,l.jsx)(B,{type:"number",children:t})}},ee={blockTitleList:e=>{let{value:t}=e;return(0,l.jsx)(x,{width:(null==t?void 0:t.contentWidth)||"full",children:(0,l.jsx)(Q,{value:t})})}};function et(e){let{value:t}=e;return(0,l.jsx)("div",{className:"prose select-none",children:(0,l.jsx)(s.RK,{value:t,components:{block:J,list:Z,types:ee,marks:m}})})}function en(e){let{value:t,type:n}=e;return t?(0,l.jsxs)(l.Fragment,{children:["simpleText"===n&&(0,l.jsx)(et,{value:t}),"richText"===n&&(0,l.jsx)(G,{value:t}),"scrollorama"===n&&(0,l.jsx)($,{value:t})]}):null}},11029:(e,t,n)=>{n.d(t,{FeaturedProjects:()=>p});var l=n(95155),r=n(59022),i=n(19559),a=n(12115);n(2252);var s=n(76403),o=n(73246),c=n(71408),u=n(67332),d=n(97493),m=n(77665),f=n(67836),h=n(39516);function x(e){let{children:t,small:n=!1}=e;return(0,l.jsx)("div",{className:(0,c.cn)("relative flex aspect-square ".concat(n?"size-11":"size-14"," shrink-0 items-center justify-center overflow-hidden rounded-full bg-black/30 p-2 text-white shadow-sm backdrop-blur-sm transition-all duration-300 ease-out hover:bg-white/90 hover:text-black")),children:t})}function v(e){let{onClick:t,icon:n,ariaLabel:r}=e;return(0,l.jsx)("button",{onClick:t,"aria-label":r,className:"pointer-events-auto z-30",children:(0,l.jsx)(x,{theme:"light",children:(0,l.jsx)(i.g,{icon:n,className:"text-base"})})})}function p(e){let{section:t}=e,{projects:n}=t,i=(0,a.useRef)(null),x=(0,a.useRef)([]),p=(0,a.useRef)(null),g=(0,a.useRef)(null),{setCurrentProject:y}=(0,f.A)(),{setVoid:b,resetVoid:w}=(0,o.k)(),{handleSetCurrentSiteViewport:j}=(0,m.f)(),[N,E]=(0,a.useState)(0),k=e=>{var t,l,r,i;let a=n[e];a&&(y({...a,pauseAllVideos:!0}),j("HOME_FEATURED_VIDEO"),b((0,d.wl)(null==(l=a.media)||null==(t=l.videoFull)?void 0:t.dominantColor,null==(i=a.media)||null==(r=i.videoFull)?void 0:r.accentColor,"light")))},S=e=>{if(e<0||e>=n.length)return;let t=(e=>{let t=x.current[e];return t?t.querySelector("video"):null})(e);if(t)try{if(t.preload="auto",t.muted=!0,t.playsInline=!0,t.readyState<2){let e=t.play();e&&"function"==typeof e.then?e.then(()=>{t.pause();try{!isNaN(t.duration)&&t.duration>0&&(t.currentTime=Math.min(.05,t.duration-.05))}catch(e){}}).catch(()=>{t.load()}):t.load()}}catch(e){}},R=e=>{S(e-1),S(e+1)};return(0,a.useEffect)(()=>(p.current&&p.current.revert(),p.current=(0,h.Ds)({root:g.current}).add(e=>{(0,h.nr)({target:e.root,enter:"center top",leave:"center bottom",sync:0,onEnter:()=>{let e=i.current;if(e){let t=e.activeIndex;k(t),R(t)}},onLeave:()=>{y(null),j("LOADING"),w("light")}})}),()=>{var e;null==(e=p.current)||e.revert()}),[y,j,w,n]),(0,l.jsxs)("section",{ref:g,className:"relative mb-10 lg:mb-40",children:[(0,l.jsx)(s.RC,{onSwiper:e=>{i.current=e,e.on("slideChange",()=>{let t=e.activeIndex;E(t),k(t),R(t)})},direction:"horizontal",slidesPerView:1,speed:500,allowTouchMove:!0,className:"h-screen w-full",children:n.map((e,t)=>(0,l.jsx)(s.qr,{className:"h-full w-full",children:(0,l.jsx)("article",{className:"m-auto grid h-screen w-full lg:w-[calc(100vw-200px)] place-items-center",children:(0,l.jsx)(u.U,{project:e,index:t,className:"max-h-contentArea mb-buffer",innerRef:e=>{x.current[t]=e}})})},e._key))}
1),(0,l.jsx)("div",{className:(0,c.cn)("absolute top-1/2 left-8 lg:left-6 z-30 -translate-y-[calc(50%+12px)] transition-opacity duration-300",N>0?"opacity-100":"pointer-events-none opacity-0"),children:(0,l.jsx)(v,{ariaLabel:"Previous",icon:r.CeG,onClick:()=>{var e;return null==(e=i.current)?void 0:e.slidePrev()}})}),(0,l.jsx)("div",{className:(0,c.cn)("absolute top-1/2 right-8 lg:right-6 z-30 -translate-y-[calc(50%+12px)] transition-opacity duration-300",N<n.length-1?"opacity-100":"pointer-events-none opacity-0"),children:(0,l.jsx)(v,{ariaLabel:"Next",icon:r.dmS,onClick:()=>{var e;return null==(e=i.current)?void 0:e.slideNext()}})})]})}},11251:(e,t,n)=>{n.d(t,{RT:()=>i,Lg:()=>a});var l=n(39483);function r(e,t){if(void 0===e)throw Error(t);return e}let i=r(l.$.SERVICE.SANITY.DATASET,"Missing environment variable: NEXT_PUBLIC_SANITY_DATASET"),a=r(l.$.SERVICE.SANITY.PROJECT_ID,"Missing environment variable: NEXT_PUBLIC_SANITY_PROJECT_ID");l.$.SERVICE.SANITY.API_VERSION,l.$.SERVICE.SANITY.STUDIO_URL},15819:(e,t,n)=>{n.d(t,{BentoGrid:()=>h});var l=n(95155),r=n(16380),i=n(38783),a=n(71408),s=n(39516),o=n(12115);function c(e){let{title:t,children:n}=e,r=(0,o.useRef)(null);return(0,o.useEffect)(()=>{let e=r.current;if(!e)return;let t=(0,s.Ds)({root:e}).add(()=>{(0,s.nr)({target:e,enter:"bottom-=10% top",leave:"center bottom",sync:1})});return()=>{t.revert()}},[t]),(0,l.jsx)("div",{ref:r,className:"gap-buffer mb-40 flex flex-col",children:n})}var u=n(78236),d=n(4626);function m(e){var t,n;let{item:r,index:a,spotlightColor:s,className:o,ref:c}=e,m=(null==(t=r.titleGroup)?void 0:t.title)||r.title,f=(null==(n=r.titleGroup)?void 0:n.description)||r.description;return(0,l.jsx)("div",{ref:c,className:o,children:(0,l.jsx)(u.BentoCard,{spotlightColor:s,className:"h-full",children:(0,l.jsxs)("div",{className:"relative flex flex-col gap-12 select-none pt-2 lg:pt-0",children:[(0,l.jsx)("div",{className:"hidden size-4 items-center justify-center rounded-full bg-white font-medium lg:flex"}),(0,l.jsxs)("div",{className:"max-w-md space-y-6 text-pretty",children:[(0,l.jsx)(i.D,{as:"h2",variant:"card",uppercase:!0,className:"break-words",children:m}),(0,l.jsx)(d.R,{value:f,type:"simpleText"})]})]})})})}let f=["#F8CBCB","#2CE2CA","#FFD36E","#d1c8e8","#FFA6C1","#9ED9F0"];function h(e){let{groups:t}=e,n=(0,o.useRef)(null),u=(0,o.useRef)([]);return(0,o.useEffect)(()=>{let e=n.current;if(!e||!u.current.length)return;let t=(0,s.Ds)({root:e}).add(()=>{let t=(0,s.MM)();u.current.forEach((e,n)=>{t.add(e.filter(Boolean),{opacity:[0,1],translateY:[60,0],easing:"easeInOutQuad",duration:500,delay:(0,s.yc)(100,{start:2})})}),(0,s.nr)({target:e,enter:"bottom-=10% top",leave:"center bottom",sync:.5}).link(t)});return()=>{t.revert()}},[]),(0,l.jsx)("div",{className:"max-w-inner mx-auto",ref:n,children:null==t?void 0:t.map((e,t)=>{var n;return u.current[t]=[],(0,l.jsxs)(c,{title:e.title,children:[(0,l.jsx)("div",{className:"space-y-buffer w-full",children:(0,l.jsx)(i.D,{as:"h2",className:"text-mercury select-none",uppercase:!0,variant:"section",children:(0,l.jsx)(r.AnimatedText,{text:e.title,animateType:"letters"})})}),(0,l.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:null==(n=e.items)?void 0:n.map((e,n)=>(0,l.jsx)(m,{item:e,index:n,spotlightColor:f[n%f.length],className:(0,a.cn)("opacity-0 backdrop-blur-sm",n%5==0&&"lg:col-span-2"),ref:e=>{u.current[t][n]=e}},e._key))})]},e._key)})})}},16380:(e,t,n)=>{n.d(t,{AnimatedText:()=>s});var l=n(95155),r=n(39516),i=n(12115),a=n(84450);function s(e){let{text:t,animateType:n}=e,s=(0,i.useRef)(null),o=(0,i.useRef)(null),c=(0,i.useRef)(null),u=(0,i.useRef)(null);return((0,i.useLayoutEffect)(()=>{var e,t,l,i,d;let m=s.current;if(!m)return;let f=m.style.visibility;m.style.visibility="hidden",null==(e=o.current)||e.revert(),null==(t=c.current)||t.revert(),null==(l=u.current)||l.disconnect();let h=new a.A(m,{types:"words"===n?"words":"chars",tagName:"span"});c.current=h;let x="words"===n?null!=(i=h.words)?i:[]:null!=(d=h.chars)?d:[];x.forEach(e=>
1{e.style.opacity="0",e.style.filter="blur(48px)",e.style.willChange="opacity, filter","words"===n&&(e.style.display="inline-block",e.style.verticalAlign="baseline")}),m.style.visibility=f||"visible";let v=(0,r.Ds)({root:m});o.current=v;let p=()=>{v.add(()=>{(0,r.i0)(x,{opacity:[0,1],filter:["blur(48px)","blur(0px)"],easing:"cubicBezier(0.22, 1, 0.36, 1)",duration:500,delay:(0,r.yc)("words"===n?80:20),autoplay:!0})})},g=new IntersectionObserver(e=>{for(let t of e)if(t.isIntersecting){p(),g.disconnect();break}},{root:null,threshold:.15,rootMargin:"0px 0px -8% 0px"});return g.observe(m),u.current=g,()=>{var e,t;g.disconnect(),u.current=null,null==(e=o.current)||e.revert(),null==(t=c.current)||t.revert()}},[t,n]),t)?(0,l.jsx)("div",{ref:s,children:t}):null}},20061:(e,t,n)=>{n.d(t,{Showreel:()=>u});var l=n(95155),r=n(39516),i=n(12115),a=n(57543),s=n(62649),o=n(77665),c=n(67836);function u(e){let{section:t}=e,{setCurrentProject:n}=(0,c.A)(),{handleSetCurrentSiteViewport:u}=(0,o.f)(),{title:d,media:m,isLast:f}=t,h=d.split(" ");h[0],h[1];let x=(0,i.useRef)(null),v=(0,i.useRef)(null),p=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=x.current;if(e)return p.current=(0,r.Ds)({root:v}).add(()=>{(0,r.i0)(e,{opacity:[0,1],scale:[0,1],duration:600,easing:"out(3)",autoplay:(0,r.nr)({target:e,enter:"bottom+=10% top",leave:"center+=30% bottom",sync:1})}),(0,r.nr)({target:v.current,enter:"bottom-=20% top",leave:"center bottom",onEnter:()=>{n({title:"Showreel",media:m,clients:[{title:"Hoff"}]}),u("HOME_FEATURED_VIDEO")},onLeave:()=>{n(null),u("LOADING")}})}),()=>{var e;null==(e=p.current)||e.revert()}},[]),(0,l.jsx)("section",{className:"px-buffer ".concat(f?"mb-0":"mb-50 lg:mb-80"," "),ref:v,children:(0,l.jsx)(s.VoidSection,{media:m,children:(0,l.jsx)("div",{className:"max-w-inner mx-auto w-full",children:(0,l.jsx)("div",{className:"stack relative place-items-center",ref:x,children:(0,l.jsx)("div",{className:"max-h-contentArea relative w-full lg:w-17/20",children:(0,l.jsx)(a.VideoPlayer,{media:m})})})})})})}},22345:(e,t,n)=>{n.d(t,{FeaturedClients:()=>m});var l=n(95155),r=n(39516),i=n(12115),a=n(46420),s=n(91384),o=n(38783),c=n(53265),u=n(62649),d=n(4626);let m=e=>{let{section:t}=e,{title:n,description:m,clients:f,isLast:h}=t,x=(0,i.useRef)(null),v=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=x.current;if(e)return v.current=(0,r.Ds)({root:e}).add(()=>{let t=Array.from(e.querySelectorAll("div")),n=(0,r.MM)().add(t,{easing:"easeOutQuad",opacity:[0,1,0],scale:[.8,1,.8],delay:(0,r.yc)(600,{from:"first"})});(0,r.nr)({target:e,enter:"center+=15% top",leave:"center-=5% bottom",sync:1}).link(n)}),()=>{var e;null==(e=v.current)||e.revert()}},[]),(0,l.jsx)("section",{className:"px-buffer ".concat(h?"mb-0":"mb-40 lg:mb-80"," "),children:(0,l.jsx)(u.VoidSection,{baseColor:"light",children:(0,l.jsx)("div",{className:"max-w-inner mx-auto w-full",children:(0,l.jsxs)("div",{className:"grid grid-cols-1 justify-items-center lg:grid-cols-2",children:[(0,l.jsx)("div",{className:"h-full",children:(0,l.jsx)("div",{className:"text-mercury sticky top-[40vh] max-w-lg space-y-8 text-lg text-center lg:text-left text-pretty",children:(0,l.jsxs)(s.ScrollHighlight,{className:"space-y-16 select-none",children:[(0,l.jsx)(o.D,{as:"h2",uppercase:!0,variant:"section",children:n}),(0,l.jsx)(d.R,{value:m,type:"simpleText"})]})})}),(0,l.jsx)("div",{className:"mt-30 flex flex-col items-center justify-center lg:mt-0",children:(0,l.jsx)("div",{className:"flex flex-col gap-12 pb-12",ref:x,children:f.map(e=>(0,l.jsx)("div",{className:"scale-80 opacity-0",children:"svg"===e.logo.extension?(0,l.jsx)(a.A,{src:e.logo.url,width:300,title:e.title}):(0,l.jsx)(c.s,{src:e.logo,width:300,height:200,mode:"contain",alt:e.title})},e._key))})})]})})})})}},31826:(e,t,n)=>{n.d(t,{i:()=>s});var l=n(54612),r=n.n(l),i=n(11251);let a=r()({projectId:i.Lg,dataset:i.RT}),s=e=>{var t;if(null==e||null==(t=e.asset)?void 0:t._ref)return null==a?void 0:a.image(e).auto("format").fit("max")}},35607:(e,t,n)=>{n.d(t,{HomeIntro:()=>h});var l=n(95155),r=n(53265),i=n(93282),a=n(64514),s=n(79026),o=n(16872),c=n(65176),u=n(22606),d=n(12115),m=n(62649),f=n(76372);function h(e){let{section:t}=e,{setVideoCanPlay:n,isTimerComplete:h,setIsTimerComplete:x,videoCanPlay:v}=(0,f.M)(),{title:p,media:g,mediaMobile:y,backgroundImage:b,isMobile:w}=t||{},j=(0,i.d)(g.video),N=(0,i.d)(y.video),E=w?N:j,[k,S]=(0,s.l)(),R=(0,d.useRef)(null),{scrollYProgress:I}=(0,o.L)({target:R,offset:["start start","end start"]}),P=(0,c.G)(I,[0,.3,.5],[1,.35,0]);return(0,d.useEffect)(()=>{k.current&&(k.current.style.opacity="0",k.current.style.filter="blur(24px)")},[k]),(0,d.useEffect)(()=>
1{if(E){let e=setTimeout(()=>x(!0),4e3);return()=>clearTimeout(e)}},[E]),(0,d.useEffect)(()=>{(h||v)&&S([[k.current,{opacity:1,filter:"blur(0px)"},{duration:1.2,ease:"easeOut"}]])},[v,h]),(0,l.jsx)("div",{ref:R,className:"relative mb-40 flex h-screen flex-col items-center justify-center overflow-hidden text-center lg:mb-60",children:(0,l.jsxs)(m.VoidSection,{baseColor:"dark",children:[(0,l.jsx)("div",{ref:k,className:"absolute inset-0 z-0 h-full w-full",children:(0,l.jsxs)(u.P.div,{style:{opacity:P},className:"absolute inset-0 h-full w-full",children:[(0,l.jsx)(r.s,{src:b,alt:p,className:"absolute inset-0 h-full w-full object-cover object-center ".concat(!v&&h?"block":"hidden")}),(0,l.jsx)(a.Ay,{src:E,streamType:"on-demand",autoPlay:!0,muted:!0,playsInline:!0,loop:!0,onCanPlay:function(){h||n(!0)},className:"pointer-events-none relative h-full w-full object-cover ".concat(v?"block":"hidden")}),(0,l.jsx)("div",{className:"absolute inset-0 bg-black/50"})]})}),(0,l.jsx)(u.P.h1,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:1,ease:"easeOut",delay:.5},className:"absolute inset-0 flex w-full items-center justify-center px-[10%] text-[12vw] leading-[0.9] font-bold uppercase select-none lg:text-[8vw]",children:(0,l.jsx)("span",{className:"text-mercury inset-0 z-20 flex w-full items-center justify-center",children:p})})]})})}},38783:(e,t,n)=>{n.d(t,{D:()=>a});var l=n(95155),r=n(71408);let i=(0,n(33152).F)("",{variants:{variant:{screen:"text-[12vw] font-bold leading-[0.9] lg:text-[8vw]",hero:"font-bold text-8xl tracking-[-0.04em] leading-[0.9]",section:"font-bold text-4xl md:text-5xl leading-[0.9] select-none",contained:"text-2xl md:text-3xl tracking-tight leading-[0.8]",card:"text-3xl tracking-tight font-bold leading-[0.9]",cardSm:"text-base font-bold",alt:"text-xl",accordion:"text-lg font-medium"},uppercase:{true:"uppercase"},theme:{light:"text-baltic",dark:"text-white",screenLight:""}}});function a(e){let{as:t="h2",children:n,className:a,variant:s,theme:o,ref:c,uppercase:u,...d}=e,m=(0,r.cn)(i({variant:s,theme:o,uppercase:u}),a);return(0,l.jsx)(t,{ref:c,...d,className:m,children:n})}},39483:(e,t,n)=>{n.d(t,{$:()=>i});var l=n(95540),r=n(87358);let i={BASE:{NAME:"Hoff Studios",IDENTIFIER:"hoff-studios",URL:l.C1,PROD_URL:"https://hoffstudios.com"},ROUTES:{FIXED:["works","directors"]},SERVICE:{SANITY:{STUDIO_URL:r.env.NEXT_PUBLIC_SANITY_STUDIO_URL,API_VERSION:r.env.NEXT_PUBLIC_SANITY_API_VERSION,PROJECT_ID:"sstpjgo1",DATASET:"production"},META:{PIXEL_ID:r.env.NEXT_PUBLIC_FACEBOOK_PIXEL_ID,AUTH_TOKEN:r.env.FACEBOOK_AUTH_TOKEN},GOOGLE:{GA4_ID:"AW-11289830950",GA_AD_ID:r.env.NEXT_PUBLIC_GOOGLE_GA_AD_ID,MAPS:r.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY},TIKTOK:{CONVERSION_ID:r.env.NEXT_PUBLIC_TIKTOK_CONVERSION_ID,PIXEL_ID:r.env.NEXT_PUBLIC_TIKTOK_PIXEL_ID},VIMEO:{ACCESS_TOKEN:r.env.VIMEO_ACCESS_TOKEN}}}},46963:(e,t,n)=>{n.d(t,{FeaturedServices:()=>x});var l=n(95155),r=n(2406),i=n(39516),a=n(12115),s=n(91384),o=n(32674),c=n(68207);function u(e){return(0,l.jsx)("div",{...e,className:"flex size-12 items-center justify-center rounded-full bg-white/20 text-xs text-white backdrop-blur-sm",children:(0,l.jsx)(c.I,{icon:o.ltm})})}var d=n(38783),m=n(53265),f=n(62649),h=n(4626);let x=e=>{let{section:t}=e,{title:n,description:o,services:c}=t,u=(0,a.useRef)(null),m=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e=u.current;if(e)return m.current=(0,i.Ds)({root:e}).add(()=>{let t=Array.from(e.querySelectorAll("li")),n=(0,i.MM)().add(t,{ease:"outQuad",color:[(0,r.V)("--color-mercury"),(0,r.V)("--color-baltic")],delay:(0,i.yc)(600,{from:"first"})});(0,i.nr)({target:e,enter:"bottom-=15% top",leave:"bottom-=20% bottom",sync:1}).link(n)}),()=>{var e;null==(e=m.current)||e.revert()}},[]),(0,l.jsx)("section",{className:"px-buffer my-[50vh]",children:(0,l.jsx)(f.VoidSection,{baseColor:"light",children:(0,l.jsxs)("div",{className:"max-w-inner mx-auto w-full space-y-48",children:[(0,l.jsx)("div",{className:"grid grid-cols-2 justify-items-center",children:(0,l.jsx)("div",{className:"h-full",children:(0,l.jsx)("div",{className:"text-mercury sticky top-[45vh] max-w-lg space-y-8 text-lg text-pretty",children:(0,l.jsxs)(s.ScrollHighlight,{className:"space-y-16 text-balance",children:[(0,l.jsx)(d.D,{as:"h2",uppercase:!0,variant:"section",children:n}),(0,l.jsx)(h.R,{value:o,type:"simpleText"})]})})})}),(0,l.jsx)("div",{className:"relative",children:(0,l.jsx)("ul",{className:"text-mercury group flex flex-col justify-center gap-10 text-center text-[5vw] leading-[0.8] font-bold uppercase",ref:u,children:c.map(e=>(0,l.jsx)(v,{service:e},e._key))})})]})})})};function v(e){let{service:t}=e,n=(0,a.useRef)(null),r=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e=n.current,t=r.current;if(!e||!t)return;let l=(0,i.TF)(t,{x:{unit:"px",ease:"out(3)"},y:{unit:"px",ease:"out(3)"},rotate:{unit:"deg",ease:"out(3)"}
1,opacity:{duration:100,ease:"inOut(2)"},scale:{duration:200,ease:"inOut(2)"},duration:300}),a=t=>{let{width:n,height:r,left:a,top:s}=e.getBoundingClientRect(),o=n/2,c=r/2,u=i.Wp.clamp(t.clientX-(a+o),-o,o),d=i.Wp.clamp(t.clientY-(s+c),-c,c),m=u/o*10;l.x(u).y(d).rotate(m)},s=()=>{l.scale(1).opacity(1)},o=()=>{l.scale(0).opacity(0)};return l.scale(0),e.addEventListener("mousemove",a),e.addEventListener("mouseenter",s),e.addEventListener("mouseleave",o),()=>{e.removeEventListener("mousemove",a),e.removeEventListener("mouseenter",s),e.removeEventListener("mouseleave",o),l.revert()}},[]),(0,l.jsxs)("li",{ref:n,className:"relative flex items-center justify-center transition-all duration-300 select-none group-hover:scale-95 group-hover:opacity-30 hover:z-1 hover:scale-100! hover:opacity-100!",children:[(0,l.jsx)("span",{children:t.title}),t.featuredImage&&(0,l.jsxs)("div",{ref:r,className:"stack will-change-transfor pointer-events-none absolute z-10 origin-center place-items-center opacity-0",children:[(0,l.jsx)(m.s,{className:"rounded-2xl",src:t.featuredImage,width:300,height:200,mode:"contain",alt:t.title}),(0,l.jsx)(u,{})]})]},t._key)}},53265:(e,t,n)=>{n.d(t,{s:()=>a});var l=n(95155),r=n(11251),i=n(96690);let a=e=>{let{alt:t,mode:n,src:a,query:s,className:o,...c}=e,{crop:u,hotspot:d,id:m}=a||{};return m?(0,l.jsx)(i.sn,{alt:t||"",crop:u,dataset:r.RT,hotspot:d,id:m,mode:n,projectId:r.Lg,queryParams:s,className:o,...c}):null}},56328:(e,t,n)=>{n.d(t,{SanityMuxVideo:()=>h});var l=n(95155),r=n(11251),i=n(71408),a=n(59022),s=n(64514),o=n(54612),c=n.n(o),u=n(12115),d=n(63301),m=n(68207),f=n(53265);function h(e){var t,n,o,h,x,v,p,g,y,b,w,j;let{video:N,className:E,wrapperClassName:k,setMediaActive:S=()=>{},setVideoRef:R=()=>{},mediaIsActive:I,...P}=e,C=(0,u.useRef)(null),{width:D}=(0,d.A)(),[A,_]=(0,u.useState)(I||!1),[T,M]=(0,u.useState)(null==N||null==(t=N.asset)?void 0:t.playbackId),[L,O]=(0,u.useState)(null==N?void 0:N.thumbnail);(0,u.useEffect)(()=>{C.current&&R(C.current)},[R]),(0,u.useEffect)(()=>{void 0!==I&&_(I)},[I]),(0,u.useEffect)(()=>{D<768&&N.assetMobile?(M(N.assetMobile.playbackId),O(N.thumbnailMobile)):(M(N.asset.playbackId),O(N.thumbnail))},[N,D]);let B=null==N||null==(o=N.asset)||null==(n=o.aspect_ratio)?void 0:n.split(":"),V=B?Number.parseFloat(B[1])/Number.parseFloat(B[0]):9/16,F=(null==P?void 0:P.width)||1920,z=Math.floor(F*V),G=function(e){let{playbackId:t,options:n={}}=e,l=n.width||640,r=n.height||"",i=n.time||1,a=void 0===n.fitMode?"smartcrop":n.fitMode,s="https://image.mux.com/".concat(t,"/thumbnail.png?width=").concat(l,"&fit_mode=").concat(a,"&time=").concat(i);return n.height&&(s+="&height=".concat(r)),s}({playbackId:null==N||null==(h=N.asset)?void 0:h.playbackId,options:{width:F,height:z}}),U={projectId:r.Lg,dataset:r.RT},W=L&&c()(U).image(null==L||null==(x=L.asset)?void 0:x._ref).width(F).height(z).url()||G,Y=(0,u.useCallback)(()=>{C.current&&(A?C.current.pause():C.current.play(),_(!A),S(!A))},[A,S]),X=(0,u.useCallback)(()=>{C.current&&(C.current.currentTime=0,_(!1),S(!1))},[S]);return(0,l.jsxs)("div",{className:(0,i.cn)("relative h-full w-full",k),children:[(null==N||null==(v=N.options)?void 0:v.thumbnail)&&(0,l.jsx)("div",{className:(0,i.cn)(A&&"opacity-0","pointer-events-none absolute inset-0 overflow-clip transition-opacity duration-100"),children:(0,l.jsx)(f.s,{alt:null==N?void 0:N.title,height:z,width:F,mode:"cover",src:L})}),(0,l.jsx)(s.Ay,{ref:C,className:(0,i.cn)("h-full w-full max-w-full object-cover",!(null==N||null==(p=N.options)?void 0:p.controls)&&"pointer-events-none",E),poster:W,playbackId:T,streamType:"on-demand",controls:!1,autoPlay:null==N||null==(g=N.options)?void 0:g.autoplay,playsInline:null==N||null==(y=N.options)?void 0:y.autoplay,muted:null==N||null==(b=N.options)?void 0:b.muted,loop:null==N||null==(w=N.options)?void 0:w.loop,onEnded:X}),(null==N||null==(j=N.options)?void 0:j.controls)&&(0,l.jsx)("div",{className:(0,i.cn)(A&&"opacity-0","before:bg-dark/10 absolute inset-0 h-full w-full overflow-hidden transition-opacity duration-100 before:absolute before:inset-0 before:h-full before:w-full"),children:(0,l.jsx)("button",{className:"absolute inset-0 z-10 transform duration-150 hover:scale-110",onClick:Y,children:(0,l.jsx)(m.I,{icon:a.qtl,inverse:!0,className:"text-white",size:"6x"})})})]})}}
1,57543:(e,t,n)=>{n.d(t,{VideoPlayer:()=>x});var l=n(95155),r=n(66766),i=n(65543),a=n(93282),s=n(31826),o=n(67836),c=n(71408),u=n(32674),d=n(39516),m=n(12115),f=n(78839);function h(e){let{children:t,videoId:n,className:r,isPortrait:i=!1}=e,{videoRefs:a}=(0,o.A)(),s=(0,m.useRef)(null),h=(0,m.useRef)(null),x=(0,m.useRef)(null),v=(0,m.useRef)(null),p=(0,m.useRef)(null),[g,y]=(0,m.useState)("paused");return(0,m.useEffect)(()=>{if(s.current&&x.current)return v.current=(0,d.TF)(s.current,{x:{unit:"px",ease:"out(3)"},y:{unit:"px",ease:"out(3)"},scale:{duration:250},duration:300}),p.current=(0,d.TF)(x.current,{rotateX:{unit:"deg",ease:"out(3)"},rotateY:{unit:"deg",ease:"out(3)"},duration:300}),()=>{var e,t;null==(e=v.current)||e.revert(),null==(t=p.current)||t.revert()}},[]),(0,m.useEffect)(()=>{let e=h.current;if(!e)return;let t=e=>{if(!v.current||!p.current||!h.current)return;let t=h.current.getBoundingClientRect(),n=t.width/2,l=t.height/2,r=e.clientX-t.left-n,i=e.clientY-t.top-l,a=d.Wp.clamp(r/n*8,-8,8),s=d.Wp.clamp(-i/l*8,-8,8);v.current.x(r).y(i).scale(1),p.current.rotateX(s).rotateY(a)},l=()=>{var e,t,n;null==(e=p.current)||e.rotateX(0).rotateY(0),"playing"===g?null==(t=v.current)||t.scale(0):null==(n=v.current)||n.x(0).y(0)},r=()=>{if("playing"===g){var e;null==(e=v.current)||e.scale(1)}},i=()=>{if(!a.current[n]||!v.current)return;let e=a.current[n];e.paused?(e.play(),y("playing"),v.current.scale(0)):(e.pause(),y("paused"))};return e.addEventListener("mousemove",t),e.addEventListener("mouseleave",l),e.addEventListener("mouseenter",r),e.addEventListener("click",i),()=>{e.removeEventListener("mousemove",t),e.removeEventListener("mouseleave",l),e.removeEventListener("mouseenter",r),e.removeEventListener("click",i)}},[g]),(0,l.jsx)("div",{ref:h,className:(0,c.cn)("relative flex max-h-[inherit] cursor-none items-center justify-center perspective-distant",i?"h-full w-auto":"w-full",r),children:(0,l.jsxs)("div",{ref:x,className:(0,c.cn)("relative flex h-full max-h-[inherit] items-center justify-center will-change-transform transform-3d",i?"w-auto":"w-full"),children:[t,(0,l.jsx)(f.o,{ref:s,className:"absolute size-18",icon:"paused"===g?u.ijD:u.G1Y})]})})}function x(e){var t,n,o,c;let{media:u,className:d=""}=e,{video:m,thumbnail:f}=u||{},x=(null==m?void 0:m.width)||1280,v=(null==m?void 0:m.height)||720,{props:{src:p}}=(0,r.getImageProps)({src:(null==m||null==(t=m.pictures)?void 0:t.base_link)||"",width:x,height:v,alt:(null==m?void 0:m.name)||""}),g=p||(null==(c=(0,s.i)(f))||null==(o=c.width(1280))||null==(n=o.height(720))?void 0:n.url()),y=v>=x;return(0,l.jsx)(h,{className:d,videoId:null==m?void 0:m.id,isPortrait:y,children:(0,l.jsx)(i.SanityVimeoVideo,{id:null==m?void 0:m.id,src:(0,a.d)(m),poster:g,width:x,height:0,rawWidth:x,rawHeight:v,fit:"cover",className:"overflow-clip rounded-2xl"})})}},62649:(e,t,n)=>{n.r(t),n.d(t,{VoidSection:()=>o});var l=n(95155),r=n(73246),i=n(39516),a=n(12115),s=n(97493);function o(e){let{children:t,className:n,offsetTop:o,media:c,baseColor:u="dark"}=e,d=(0,a.useRef)(null),{setVoid:m,resetVoid:f}=(0,r.k)(),h="dark"===u?["#0f1115","#1c2533","#4a5568","#1c2533","#0f1115"]:["#d1c8e8","#efe4e4","#f2f2f4","#efe4e4","#d1c8e8"],x=c&&(0,s.wl)(null==c?void 0:c.dominantColor,null==c?void 0:c.accentColor,"light");return(0,a.useEffect)(()=>{let e=d.current;if(!e)return;let t=(0,i.nr)({target:e,enter:"center top-=200px",leave:"center bottom",onEnter:()=>{m(x||h)},onLeave:()=>{f("dark")}});return()=>{t.revert()}},[]),(0,l.jsx)("div",{ref:d,className:n,children:t})}},65543:(e,t,n)=>{n.d(t,{SanityVimeoVideo:()=>o});var l=n(95155),r=n(67836),i=n(71408),a=n(64514),s=n(12115);function o(e){let{className:t,fit:n,src:o,rawWidth:c,rawHeight:u,width:d,id:m,isCard:f=!1,disableLoading:h=!1,...x}=e,[v,p]=(0,s.useState)(!0),{videoRefs:g,setCurrentVideoId:y}=(0,r.A)();return o?(0,l.jsxs)("span",{className:(0,i.cn)("relative max-h-[inherit] w-auto",u&&c&&u>=c?"h-full w-auto":"w-full",t),"data-video":!0,children:[v&&!h&&(0,l.jsx)("span",{className:f&&(0,i.cn)("block h-full w-auto animate-pulse bg-white/25 opacity-100")||""}),(0,l.jsx)(a.Ay,{ref:e=>{e?g.current[m]=e:delete g.current[m]},src:o,onCanPlay:()=>p(!1),onPlay:()=>y(m),streamType:"on-demand",className:(0,i.cn)("cover"===n?"size-full object-cover":"w-auto","max-h-[inherit]"),...x})]}):null}},67332:(e,t,n)=>{n.d(t,{U:()=>a});var l=n(95155),r=n(71408),i=n(57543);function a(e){var t;let{project:n,index:a,innerRef:s,className:o}=e;return(0,l.jsx)("div",{ref:s,"data-index":a,className:(0,r.cn)("relative flex w-full max-w-full items-center justify-center px-6",o),children:(0,l.jsx)("div",{className:"flex max-h-[inherit] items-center justify-center",children:(0,l.jsx)(i.VideoPlayer,{media:null==n||null==(t=n.media)?void 0:t.videoFull})})})}}
1,76372:(e,t,n)=>{n.d(t,{EclipseProvider:()=>h,M:()=>x});var l=n(95155),r=n(35695),i=n(12115),a=n(9552),s=n(52613),o=n(41510);function c(){let{camera:e,size:t}=(0,a.C)();return(0,a.D)(()=>{e.left=-t.width/2,e.right=t.width/2,e.top=t.height/2,e.bottom=-t.height/2,e.near=-1e3,e.far=1e3,e.position.set(0,0,10),e.updateProjectionMatrix()}),null}function u(e){let{materialRef:t,eclipseScale:n=1}=e,r=(0,i.useRef)(null),{size:s,gl:c}=(0,a.C)(),u=(0,i.useMemo)(()=>new o.BKk({glslVersion:o.Wdf,depthWrite:!1,transparent:!0,side:o.$EB,uniforms:{uTime:{value:0},uViewportPx:{value:new o.I9Y(1,1)},uDpr:{value:1},uScale:{value:1},uEclipseScale:{value:n},uCenter:{value:new o.I9Y(.5,.5)},uCenterOffsetDesign:{value:new o.I9Y(0,0)},uMoonRadiusDesignPx:{value:120},uGlowBaseRadiusDesignPx:{value:93.6},uGlowSigmaDesignPx:{value:28.8},uArcStrength:{value:.6},uArcWidth:{value:.55},uEllipseY:{value:.78},uOffsetDesignPx:{value:15.84},uBulgeStrength:{value:1},uHoleReveal:{value:0}},vertexShader:"\n out vec2 vWorld;\n void main() {\n vec4 wp = modelMatrix * vec4(position, 1.0);\n wp.xy = floor(wp.xy) + 0.5;\n vWorld = wp.xy;\n gl_Position = projectionMatrix * viewMatrix * wp;\n }\n ",fragmentShader:"\n precision highp float;\n in vec2 vWorld;\n out vec4 FragColor;\n\n uniform vec2 uViewportPx;\n uniform float uDpr;\n uniform float uScale;\n uniform float uEclipseScale;\n uniform vec2 uCenter;\n uniform vec2 uCenterOffsetDesign;\n uniform float uTime;\n\n uniform float uMoonRadiusDesignPx;\n uniform float uGlowBaseRadiusDesignPx;\n uniform float uGlowSigmaDesignPx;\n\n uniform float uArcStrength;\n uniform float uArcWidth;\n uniform float uEllipseY;\n\n uniform float uOffsetDesignPx;\n uniform float uBulgeStrength;\n\n uniform float uHoleReveal;\n\n float gauss(float x, float s){ return exp(-0.5 * (x*x) / (s*s)); }\n\n void main(){\n float sSize = uScale * uEclipseScale;\n float sPos = uScale;\n\n float moonR = uMoonRadiusDesignPx * sSize;\n float glowR = uGlowBaseRadiusDesignPx * sSize;\n float glowSig = uGlowSigmaDesignPx * sSize;\n float offset = uOffsetDesignPx * sPos;\n vec2 centerOffset = uCenterOffsetDesign * sPos;\n\n vec2 centerPx = (uCenter - vec2(0.5)) * uViewportPx + centerOffset;\n\n float speed = 2.3;\n float theta = uTime * speed;\n vec2 dir = vec2(cos(theta), sin(theta));\n vec2 coronaCenter = centerPx + dir * offset;\n\n float rMoon = length(vWorld - centerPx);\n float rCorona = length(vWorld - coronaCenter);\n\n // --- Crisp moon edge ---\n float edge = moonR - rMoon;\n float aa = fwidth(edge);\n float moonMask = smoothstep(-aa, aa, edge);\n\n float ringDist = max(0.0, rCorona - glowR);\n float corona = gauss(ringDist, glowSig) * 0.40;\n\n vec2 diff = vWorld - centerPx;\n vec2 eDiff = vec2(diff.x, diff.y * uEllipseY);\n float angle = atan(eDiff.y, eDiff.x);\n float phase = angle - theta;\n float lobe = exp((cos(phase) - 1.0) / (uArcWidth*uArcWidth));\n float ringProfile = gauss(max(0.0, length(diff) - glowR), glowSig * 0.55);\n float arc = lobe * ringProfile * (uArcStrength * 0.45 * uBulgeStrength);\n\n float sideBoost = 1.0 + (0.2 * uBulgeStrength) * max(0.0, cos(phase));\n corona *= sideBoost;\n\n float glow = clamp(corona + arc, 0.0, 1.0);\n\n vec3 baseGlow = vec3(glow);\n vec3 col = mix(baseGlow, vec3(0.0), moonMask);\n\n float alphaMoon = mix(1.0, 0.0, clamp(uHoleReveal, 0.0, 1.0));\n float alpha = mix(1.0, alphaMoon, moonMask);\n\n FragColor = vec4(col, alpha);\n }\n "}),[]);return(0,i.useEffect)(()=>(t.current=u,()=>{t.current===u&&(t.current=null)}),[u,t]),(0,a.D)(e=>{let{clock:t}=e,n=c.getPixelRatio(),l=Math.max(.5,Math.min(1.75,Math.min(s.width,s.height)/900));u.uniforms.uTime.value=t.getElapsedTime(),u.uniforms.uViewportPx.value.set(s.width,s.height),u.uniforms.uDpr.value=n,u.uniforms.uScale.value=l,u.uniforms.uCenter.value.set(.5,.5),u.uniforms.uCenterOffsetDesign.value.set(0,0)}),(0,i.useEffect)(()=>{u&&(u.uniforms.uEclipseScale.value=n)},[u,n]),(0,l.jsxs)("mesh",{ref:r,position:[0,0,0],children:[(0,l.jsx)("planeGeometry",{args:[s.width,s.height]}),(0,l.jsx)("primitive",{object:u,attach:"material"})]})}function d(e){let{setAnimationIsReady:t,handleAnimationIsComplete:n,initiateEclipseAnimation:r,eclipseScale:a=.8}=e,o=(0,i.useRef)(null),d=(0,i.useRef)(!1);function m(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.8,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e=>1-Math.pow(1-e,2),r=e.value,i=performance.now();return new Promise(a=>{requestAnimationFrame(function s(o){let c=Math.min(1,(o-i)/(1e3*n));e.value=r+(t-r)*l(c),c<1?requestAnimationFrame(s):a()})})}(0,i.useEffect)(()=>{t(!0)},[t]);let f=e=>1-Math.pow(1-e,2),h=e=>1-Math.sqrt(1-e*e);async function x(){let e=o.current;if(e&&!d.current){d.current=!0;try{let t=window.innerWidth,l=window.innerHeight,r=Math.max(.5,Math.min(1.75,Math.min(t,l)/900));await Promise.all([m(e.uniforms.uOffsetDesignPx,0,.6,f),m(e.uniforms.uBulgeStrength,0,.6,f),m(e.uniforms.uMoonRadiusDesignPx,72,.6,f),m(e.uniforms.uGlowBaseRadiusDesignPx,72,.6,f),m(e.uniforms.uGlowSigmaDesignPx,14.4,.6,f)]);let i=Math.max(t,l)/Math.max(1e-4,r*a);await Promise.all([m(e.uniforms.uMoonRadiusDesignPx,i,.8,h),m(e.uniforms.uHoleReveal,1,.8,h)]),requestAnimationFrame(()=>{n()})}finally{d.current=!1}}}return(0,i.useEffect)(()=>{x()},[r,a]),(0,l.jsx)("div",{className:"pointer-events-none fixed inset-0 z-[100000]",children:(0,l.jsxs)(s.Hl,{orthographic:!0,camera:{position:[0,0,10],near:-1e3,far:1e3},gl:{antialias:!0,alpha:!0,premultipliedAlpha:!1},style:{opacity:1,animation:"fadeIn 500ms ease-in forwards"},children:[(0,l.jsx)(c,{}),(0,l.jsx)(u,{materialRef:o,eclipseScale:a})]})})}function m(){let{setAnimationIsReady:e,handleAnimationIsComplete:t,initiateEclipseAnimation:n}=x();return(0,l.jsx)("div",{className:"fixed z-100000 h-screen w-screen ".concat(!n&&"bg-black"||""),children:(0,l.jsx)(d,{setAnimationIsReady:e,handleAnimationIsComplete:t,initiateEclipseAnimation:n})})}let f=(0,i.createContext)({});function h(e){let{children:t}=e,n="/"===(0,r.usePathname)(),[a,s]=(0,i.useState)(!1),[o,c]=(0,i.useState)(!1),[u,d]=(0,i.useState)(!1),[h,x]=(0,i.useState)(!1),[v,p]=(0,i.useState)(!1);return(0,i.useEffect)(()=>
1{if(!n)return;let e=e=>e.preventDefault(),t=e=>{[" ","PageUp","PageDown","Home","End","ArrowUp","ArrowDown"].includes(e.key)&&e.preventDefault()},l=()=>{let n=Math.abs(parseInt(document.body.style.top||"0",10))||0;window.removeEventListener("wheel",e),window.removeEventListener("touchmove",e),window.removeEventListener("keydown",t,!0),document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.width="",document.documentElement.style.overflow="",window.scrollTo(0,n)};if(o)l();else{let n=window.scrollY;return document.body.style.position="fixed",document.body.style.top="-".concat(n,"px"),document.body.style.left="0",document.body.style.right="0",document.body.style.width="100%",document.documentElement.style.overflow="hidden",window.addEventListener("wheel",e,{passive:!1}),window.addEventListener("touchmove",e,{passive:!1}),window.addEventListener("keydown",t,!0),()=>l()}},[n,o]),(0,i.useEffect)(()=>{(u||h)&&p(!0)},[u,h]),(0,l.jsxs)(f.Provider,{value:{animationIsReady:a,setAnimationIsReady:s,animationIsComplete:o,handleAnimationIsComplete:()=>{c(!0),sessionStorage.setItem("intro-has-loaded","true")},setVideoCanPlay:d,initiateEclipseAnimation:v,setInitiateEclipseAnimation:p,isTimerComplete:h,setIsTimerComplete:x,videoCanPlay:u},children:[t,n&&!o&&(0,l.jsx)(m,{})]})}function x(){return(0,i.useContext)(f)}},78236:(e,t,n)=>{n.d(t,{BentoCard:()=>a});var l=n(95155),r=n(71408),i=n(12115);function a(e){let{children:t,className:n="",spotlightColor:a="rgba(0, 0, 0, 0.25)"}=e,s=(0,i.useRef)(null),[o,c]=(0,i.useState)(!1),[u,d]=(0,i.useState)({x:0,y:0}),[m,f]=(0,i.useState)(0);return(0,l.jsxs)("div",{ref:s,onMouseMove:e=>{if(!s.current||o)return;let t=s.current.getBoundingClientRect();d({x:e.clientX-t.left,y:e.clientY-t.top})},onFocus:()=>{c(!0),f(.6)},onBlur:()=>{c(!1),f(0)},onMouseEnter:()=>{f(.6)},onMouseLeave:()=>{f(0)},className:(0,r.cn)("bg-concrete/50 relative overflow-hidden rounded-2xl border border-white p-6",n),children:[(0,l.jsx)("div",{className:"pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-500 ease-in-out",style:{opacity:m,background:"radial-gradient(circle at ".concat(u.x,"px ").concat(u.y,"px, ").concat(a,", transparent 80%)")}}),(0,l.jsx)("div",{className:"relative h-full select-none",children:t})]})}},78839:(e,t,n)=>{n.d(t,{o:()=>s});var l=n(95155),r=n(68207),i=n(71408),a=n(32674);function s(e){let{icon:t,ref:n,className:s}=e;return(0,l.jsx)("div",{ref:n,className:(0,i.cn)("flex items-center justify-center rounded-full bg-black/30 text-white backdrop-blur-sm select-none",s),children:(0,l.jsx)(r.I,{icon:t||a.QLR,size:"sm"})})}},86e3:(e,t,n)=>{n.d(t,{PageHeading:()=>d});var l=n(95155),r=n(22606),i=n(38783),a=n(71408),s=n(54547),o=n(12115);function c(e){let{children:t,className:n,baseColor:r="--color-mercury",spotlightColor:i="--color-lavender",maxAlpha:c=.8,radius:u="60%"}=e,d=(0,o.useRef)(null),m=(0,o.useRef)({x:0,y:0}),f=(0,o.useRef)({x:0,y:0}),h=(0,o.useRef)(void 0),x=(0,o.useRef)([0,0,0]),v=(0,o.useRef)("");return(0,o.useEffect)(()=>{let e=d.current;if(!e)return;let t=getComputedStyle(e);v.current=r.startsWith("--")?t.getPropertyValue(r).trim():r;let n=i.startsWith("--")?t.getPropertyValue(i).trim():i;x.current=s.A.hex.rgb(n.replace("#",""));let l=e=>{f.current.x=e.clientX,f.current.y=e.clientY},a=()=>{let e=d.current;if(!e)return;m.current.x+=(f.current.x-m.current.x)*.1,m.current.y+=(f.current.y-m.current.y)*.1;let{x:t,y:n}=m.current,[l,r,i]=x.current;e.style.backgroundImage="radial-gradient(\n circle at ".concat(t,"px ").concat(n,"px,\n rgba(").concat(l,", ").concat(r,", ").concat(i,", ").concat(c,"),\n ").concat(v.current," ").concat(u,"\n )"),h.current=requestAnimationFrame(a)};return window.addEventListener("mousemove",l),h.current=requestAnimationFrame(a),()=>{cancelAnimationFrame(h.current),window.removeEventListener("mousemove",l)}},[r,i,c,u]),(0,l.jsx)("span",{ref:d,className:(0,a.cn)("block bg-clip-text text-transparent",n),children:t})}var u=n(62649);function d(e){let{section:t}=e,{title:n,isFirst:a}=t;return(0,l.jsx)("div",{className:"relative flex ".concat(a?"h-screen":"h-auto"," ").concat(!a&&"mb-0 lg:mb-40"," flex-col items-center justify-center text-center"),children:(0,l.jsx)(u.VoidSection,{baseColor:"dark",children:(0,l.jsx)(r.P.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.6},transition:{duration:1,ease:"easeOut"},className:"".concat(a&&"absolute"," inset-0 flex w-full"),children:(0,l.jsx)(i.D,{variant:"screen",uppercase:!0,className:"inset-0 flex w-full select-none",as:"h1",theme:"screenLight",children:(0,l.jsx)(c,{className:"inset-0 flex w-full items-center justify-center",baseColor:"--color-mercury",spotlightColor:"--color-white",children:n})})})})})}},90186:(e,t,n)=>{n.d(t,{Carousel:()=>u,CarouselSlide:()=>d});var l=n(95155),r=n(32674),i=n(39516),a=n(78839),s=n(12115);n(2252),n(63767);var o=n(62463),c=n(76403);function u(e){let{items:t,children:n}=e;if(!(null==t?void 0:t.length))return null;let u=(0,s.useRef)(null),d=(0,s.useRef)(null),m=(0,s.useRef)(null),f=(0,s.useRef)(null),[h,x]=(0,s.use
1State)(r.dmS),v=(0,s.useRef)(null),p=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(f.current&&m.current)return v.current=(0,i.TF)(f.current,{x:{unit:"px",ease:"out(3)"},y:{unit:"px",ease:"out(3)"},scale:{duration:250},duration:300}),p.current=(0,i.TF)(m.current,{rotateX:{unit:"deg",ease:"out(3)"},rotateY:{unit:"deg",ease:"out(3)"},duration:300}),()=>{var e,t;null==(e=v.current)||e.revert(),null==(t=p.current)||t.revert()}},[]),(0,s.useEffect)(()=>{let e=d.current;if(!e)return;let t=e=>{if(!v.current||!p.current||!d.current)return;let t=d.current.getBoundingClientRect(),n=t.width/2,l=t.height/2,a=e.clientX-t.left-n,s=e.clientY-t.top-l,o=i.Wp.clamp(a/n*8,-8,8),c=i.Wp.clamp(-s/l*8,-8,8);x(a<0?r.CeG:r.dmS),v.current.x(a).y(s).scale(1),p.current.rotateX(c).rotateY(o)},n=()=>{var e,t;null==(e=p.current)||e.rotateX(0).rotateY(0),null==(t=v.current)||t.x(0).y(0).scale(0)},l=()=>{var e;null==(e=v.current)||e.scale(1)};return e.addEventListener("mousemove",t),e.addEventListener("mouseleave",n),e.addEventListener("mouseenter",l),()=>{e.removeEventListener("mousemove",t),e.removeEventListener("mouseleave",n),e.removeEventListener("mouseenter",l)}},[]),(0,l.jsx)("div",{ref:d,className:"relative h-full max-h-[inherit] w-full cursor-none perspective-distant",onClick:e=>{let t=u.current;if(!t||!d.current)return;let n=d.current.getBoundingClientRect();e.clientX-n.left<n.width/2?t.slidePrev(300):t.slideNext(300)},children:(0,l.jsxs)("div",{ref:m,className:"relative h-full max-h-[inherit] w-full will-change-transform transform-3d",children:[(0,l.jsx)(c.RC,{modules:[o.ZD],effect:"cards",slidesPerView:"auto",centeredSlides:!0,rewind:!0,initialSlide:1,className:"h-full max-h-[inherit] !overflow-visible",wrapperClass:"h-full",cardsEffect:{slideShadows:!1,rotate:!0,perSlideOffset:4,perSlideRotate:2},onSwiper:e=>u.current=e,children:n}),(0,l.jsx)(a.o,{ref:f,className:"pointer-events-none absolute top-1/2 left-1/2 z-[9999] hidden size-18 -translate-x-1/2 -translate-y-1/2 hidden lg:flex",icon:h})]})})}function d(e){let{children:t}=e;return(0,l.jsx)(c.qr,{className:"overflow-visible",children:t})}d.displayName="SwiperSlide"},91384:(e,t,n)=>{n.d(t,{ScrollHighlight:()=>o});var l=n(95155),r=n(2406),i=n(39516),a=n(12115),s=n(84450);function o(e){let{children:t,className:n}=e,o=(0,a.useRef)(null),c=(0,a.useRef)(null),u=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e=o.current;if(e)return u.current=new s.A(e,{types:"words,chars",tagName:"span"}),c.current=(0,i.Ds)({root:e}).add(()=>{var t,n;let l=null!=(n=null==(t=u.current)?void 0:t.chars)?n:[],a=Array.from(e.querySelectorAll("img, span[data-video]")),s=[...l];a.forEach(e=>{let t=!1;for(let n=0;n<s.length;n+=1)if(e.compareDocumentPosition(s[n])===Node.DOCUMENT_POSITION_FOLLOWING){s.splice(n,0,e),t=!0;break}t||s.push(e)});let o=e=>"IMG"===e.tagName||e.hasAttribute("data-video"),c=(0,i.MM)().add(s,{easing:"inOut(2)",duration:600,opacity:e=>o(e)?[.1,1]:[.5,1],color:e=>o(e)?void 0:[(0,r.V)("--color-mercury"),(0,r.V)("--color-baltic")],filter:e=>o(e)?["grayscale(100%)","grayscale(0%)"]:void 0,delay:(0,i.yc)(20,{from:"first"})});(0,i.nr)({target:e,enter:"bottom-=15% top",leave:"center bottom-=20%",sync:.25}).link(c)}),()=>{var e,t;null==(e=c.current)||e.revert(),null==(t=u.current)||t.revert()}},[o]),(0,l.jsx)("div",{ref:o,className:n,children:t})}},93282:(e,t,n)=>{n.d(t,{d:()=>l});function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"DESC";if(!(null==e?void 0:e.files))return null;for(let n of"DESC"===t?["1080p","720p","540p","360p","240p"]:["240p","360p","540p","720p","1080p"]){let t=e.files.find(e=>(null==e?void 0:e.rendition)===n);if(null==t?void 0:t.link)return t.link}return null}},94725:(e,t,n)=>{n.d(t,{default:()=>v});var l=n(95155),r=n(11943),i=n(32674),a=n(12115),s=n(99197),o=n(16708),c=n(77105),u=n(22606),d=n(15246);function m(){let e=(0,o._)(["\n radial-gradient(\n "," circle at ","px ","px,\n var(--color-hoff),\n transparent 80%\n )\n "]);return m=function(){return e},e}function f(e){let{value:t,type:n,name:r,handleChange:i}=e,[s,o]=(0,a.useState)(!1),f=(0,c.d)(0),h=(0,c.d)(0);return(0,l.jsxs)("div",{className:"block space-y-2",children:[(0,l.jsxs)("label",{htmlFor:"contact-form-id-".concat(r),className:"block capitalize",children:[r,(0,l.jsx)("span",{className:"text-error",children:" *"})]}),(0,l.jsx)("div",{className:"space-y-2",children:(0,l.jsx)(u.P.div,{style:{background:(0,d.E)(m(),s?"".concat(100,"px"):"0px",f,h)},onMouseMove:function(e){let{currentTarget:t,clientX:n,clientY:l}=e,{left:r,top:i}=t.getBoundingClientRect();f.set(n-r),h.set(l-i)},onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),className:"group/input rounded-lg p-[2px] transition duration-300",children:(0,l.jsx)("input",{id:"contact-form-id-".concat(r),type:n,name:r,required:!0,value:t,onChange:i,className:"shadow-input bg-concrete text-baltic flex h-10 w-full rounded-md border border-white px-3 py-2 text-sm transition duration-400 group-hover/input:shadow-none file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-neutral-400 focus-visible:ring-[2px] focus-visible:ring-neutral-400 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50"})})})]})}function h(){let e=(0,o._)(["\n radial-gradient(\n "," circle at ","px ","px,\n var(--color-hoff),\n transparent 80%\n )\n "]);return h=function(){return e},e}function x(e){let{value:t,name:n,handleChange:r}=e,[i,s]=(0,a.useState)(!1),o=(0,c.d)(0),m=(0,c.d)(0);return(0,l.jsxs)("div",{className:"block space-y-2",children:[(0,l.jsxs)("label",{htmlFor:"contact-form-id-".concat(n),className:"block capitalize",children:[n,(0,l.jsx)("span",{className:"text-error",children:" *"})]}),(0,l.jsx)("div",{className:"space-y-2",children:(0,l.jsx)(u.P.div,{style:{background:(0,d.E)(h(),i?"".concat(400,"px"):"0px",o,m)},onMouseMove:function(e){let{currentTarget:t,clientX:n,clientY:l}=e,{left:r,top:i}=t.getBoundingClientRect();o.set(n-r),m.set(l-i)},onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),className:"group/input rounded-lg p-[2px] transition duration-300",children:(0,l.jsx)("textarea",{className:"bg-concrete text-baltic flex w-full rounded-md border border-white px-3 py-2 text-sm transition duration-400 group-hover/input:shadow-none file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-neutral-400 focus-visible:ring-[2px] focus-visible:ring-neutral-400 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",name:n,required:!0,value:t,onChange:r,"aria-describedby":n,rows:6})})})]})}function v(){let{DEFAULT:e,SENDING:t,ERROR:n,SENT:o}={DEFAULT:"Send",SENDING:"Sending...",ERROR:"Error",SENT:"Email Sent!"},c={name:"",email:"",message:""},{handleToggleContactOpen:u}=(0,r.f)(),[d,m]=(0,a.useState)(!1),[h,v]=(0,a.useState)(e),[p,g]=(0,a.useState)(c),y=async l=>{let r;l.preventDefault(),m(!0),v(t),await fetch("/__forms.html",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:Object.keys(r={"form-name":"contact",...p}).map(e=>"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(r[e]))).join("&")}).then(()=>{m(!1),g(c),v(o),setTimeout(()=>{v(e),u(!1)},300),setTimeout(()=>{v(e)},2e3)}
1).catch(()=>{m(!1),v(n)}),l.preventDefault()},b=e=>{g({...p,[e.target.name]:e.target.value})};return(0,l.jsxs)("form",{onSubmit:y,name:"contact",className:"space-y-8",children:[(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsx)(f,{value:p.name,type:"text",name:"name",handleChange:b}),(0,l.jsx)(f,{value:p.email,type:"email",name:"email",handleChange:b}),(0,l.jsx)(x,{value:p.message,name:"message",handleChange:b})]}),(0,l.jsx)("div",{className:"mt-6",children:(0,l.jsx)(s.$,{variant:"solid",type:"submit",size:"md",disabled:d,iconBefore:i.ltm,children:h})})]})}},97493:(e,t,n)=>{n.d(t,{wl:()=>r});var l=n(33961);function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"dark",r=t||"#efe4e4",i=(0,l.Ay)(e||"#d1c8e8"),a=r?(0,l.Ay)(r):i.set("hsl.h","+180"),s=(e,t)=>"light"===n?e.brighten(t):e.darken(t),o=i.set("hsl.h","+30"),c=a.set("hsl.h","-30");return[s(i,1.5).hex(),i.hex(),t?a.hex():o.hex(),s(a,1.5).hex(),c.hex()]}},99197:(e,t,n)=>{n.d(t,{$:()=>m});var l=n(95155),r=n(71408),i=n(61903),a=n(33152),s=n(29237),o=n(68207);let c=(0,a.F)("select-none inline-flex w-fit items-center leading-none transition-colors duration-100 group",{variants:{variant:{inline:"p-0",ghost:"rounded-lg p-1",outline:"rounded-full border border-current p-1",solid:"rounded-full p-1 backdrop-blur-sm",glass:"backdrop-blur-sm p-1 rounded-full"},theme:{dark:"text-white",light:"text-baltic"},width:{auto:"w-auto",full:"w-full"},size:{md:"w-48 h-14",lg:"w-32 h-12"},iconBeforePresent:{true:"justify-start",false:""},iconAfterPresent:{true:"justify-end",false:""},disabled:{true:"opacity-50 pointer-events-none",false:null},loading:{true:"pointer-events-none",false:null}},compoundVariants:[{iconAfterPresent:!0,className:"pl-6 gap-3"},{iconBeforePresent:!0,className:"pr-6 gap-3"},{iconAfterPresent:!1,iconBeforePresent:!1,className:"px-6 py-3.5 justify-center text-center"},{iconAfterPresent:!0,iconBeforePresent:!0,className:"px-1 justify-between"},{iconAfterPresent:!0,iconBeforePresent:!0,className:"px-1 justify-between"},{loading:!0,iconAfterPresent:!1,iconBeforePresent:!1,className:"animate-pulse"},{variant:"solid",theme:"dark",className:"bg-baltic text-white hover:bg-baltic/90"},{variant:"solid",theme:"light",className:"bg-white text-baltic hover:bg-white/90"},{variant:"ghost",theme:"dark",className:"hover:bg-white/10"},{variant:"ghost",theme:"light",className:"hover:bg-baltic/10"},{variant:"glass",theme:"dark",className:"bg-baltic/20 hover:bg-baltic/25"},{variant:"glass",theme:"light",className:"bg-white/20 hover:bg-white/25"},{variant:"inline",className:"p-0 hover:text-hoff"}],defaultVariants:{variant:"solid",theme:"light",width:"auto"}}),u=(0,a.F)("flex aspect-square h-full items-center justify-center rounded-full p-2 transition-colors duration-100",{variants:{variant:{solid:"",outline:"",ghost:"rounded-md",glass:"",inline:"p-0"},iconBeforePresent:{true:null,false:null},iconAfterPresent:{true:null,false:null},theme:{dark:"text-baltic bg-white",light:"text-white bg-baltic"},loading:{true:"bg-coalmine text-baltic",false:null}},compoundVariants:[{iconAfterPresent:!0,iconBeforePresent:!1,className:"ml-auto"},{variant:"inline",theme:["light","dark"],className:"bg-transparent text-current"},{theme:["light","dark"],variant:["solid","outline","ghost","glass"],className:"transition duration-200 group-hover:bg-coalmine group-hover:text-white"}],defaultVariants:{variant:"solid",theme:"light"}}),d=e=>{let{className:t,children:n}=e;return(0,l.jsx)("span",{className:t,children:n})};function m(e){let{className:t,iconBefore:n,iconAfter:a,variant:m="solid",theme:f="light",width:h="auto",size:x,loading:v,children:p,disabled:g,ref:y,...b}=e,w=(0,r.cn)(c({variant:m,theme:f,width:h,size:x,disabled:g,loading:v,iconBeforePresent:!!n,iconAfterPresent:!!a}),t),j=(0,r.cn)(u({variant:m,theme:f,loading:v,iconBeforePresent:!!n,iconAfterPresent:!!a})),N=(0,l.jsxs)(l.Fragment,{children:[!!n&&(0,l.jsx)(d,{className:j,children:(0,l.jsx)(o.I,{icon:v?i.$Xz:n,spin:!!v})}),p&&(0,l.jsx)("span",{className:"block",children:p}),!!a&&(0,l.jsx)(d,{className:j,children:(0,l.jsx)(o.I,{icon:v?i.$Xz:a,spin:!!v})})]});return"href"in e?(0,l.jsx)(s.N,{href:e.href,className:w,...b,children:N}):(0,l.jsx)("button",{ref:y,className:w,...b,children:N})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.