"use strict";(()=>{var F="[blog-card]",P="[blog-card-radius]",$="[blog-card-title]",g="0.3s",L="cubic-bezier(0.69, 0, 0.38, 1)",q="0.4";var S=()=>window.innerWidth>=991,z=e=>{let{card:t,radiusElement:n,titleElement:o,originalRadius:i}=e;n.style.transition=`border-radius ${g} ${L}`,o.style.transition=`opacity ${g} ${L}`;let r=()=>{S()&&(n.style.borderRadius="0",o.style.opacity=q)},s=()=>{S()&&(n.style.borderRadius=i,o.style.opacity="1")};t.addEventListener("mouseenter",r),t.addEventListener("mouseleave",s)},H=()=>{let e=document.querySelectorAll(F);if(e.length===0){console.warn("BlogCardHover: No blog cards found");return}let t=0;e.forEach(n=>{let o=n.querySelector(P),i=n.querySelector($);if(!o||!i){console.warn("BlogCardHover: Missing radius or title element in card",n);return}let s=window.getComputedStyle(o).borderRadius||"0";z({card:n,radiusElement:o,titleElement:i,originalRadius:s}),t++}),console.log(`BlogCardHover: Initialized ${t} blog cards`)};var W=".current-year",w=()=>{let e=document.querySelectorAll(W);if(!e.length){console.warn("CurrentYear: No elements found");return}let t=new Date().getFullYear().toString();e.forEach(n=>{n.textContent=t}),console.log(`CurrentYear: Updated ${e.length} element(s) to ${t}`)};var U="[dvh-screen]";var V=()=>{let e=document.documentElement,t=window.getComputedStyle(e);return parseFloat(t.fontSize)||16},Y=(e,t)=>e/t,C=()=>{let e=document.querySelectorAll(U);if(!e.length){console.warn("DvhScreen: No elements with dvh-screen attribute found");return}let t=()=>{if(window.innerWidth>991){console.log("DvhScreen: Skipping fix on desktop (width > 991px)");return}let o=V(),i=0;e.forEach(r=>{if(r.style.height)return;let l=r.getBoundingClientRect().height||r.offsetHeight;if(l>0){let a=Y(l,o);r.style.height=`${a}rem`,i+=1,console.log(`DvhScreen: Fixed element height from ${l}px to ${a}rem`)}else console.warn("DvhScreen: Element has zero height, skipping")}),i>0&&console.log(`DvhScreen: Fixed ${i} element(s)`)},n=()=>{requestAnimationFrame(()=>{setTimeout(t,150)})};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",n):n()};var G="[dynamic-card_tunnel]",K="[dynamic-card_tunnel-floor]",f="[dynamic-card]",X="[dynamic-card_progress-bar-wrapper_line]",Z="[dynamic-card_sticky]",J="[dynamic-card_trigger-title]",j="[dynamic-card_more-button]",Q="[dynamic-card_more-button-label]",ee="[dynamic-card_more-button-label-icon]",te="[dynamic-card_more-text]";var p="0.3s";var A=(e,t)=>{t?(e.style.display="block",e.style.opacity="1",e.style.pointerEvents="auto"):(e.style.display="none",e.style.opacity="0",e.style.pointerEvents="none")},ne=e=>{let t=window.innerHeight/2;for(let i=0;it)return i}let n=e[0],o=e[e.length-1];return n&&n.getBoundingClientRect().top>t?0:o&&o.getBoundingClientRect().bottom<=t?e.length-1:0},oe=e=>{let t=e.getBoundingClientRect(),n=window.innerHeight,o=t.height,i=n/2,r=t.top,l=(i-r)/o*100;return Math.min(100,Math.max(0,l))},M=e=>{let t=ne(e.floors);t!==e.currentActiveIndex&&(e.cards.forEach((i,r)=>{A(i,r===t)}),e.progressLines.forEach((i,r)=>{rt&&(i.style.transition="none",i.style.width="0%")}),e.currentActiveIndex=t);let n=e.floors[e.currentActiveIndex],o=e.progressLines[e.currentActiveIndex];if(n&&o){let i=oe(n);o.style.transition="none",o.style.width=`${i}%`}if(e.triggerTitle&&e.sticky){let r=e.triggerTitle.getBoundingClientRect().bottom<=0;if(r!==e.isTitleHidden){e.isTitleHidden=r;let s=e.sticky.firstElementChild;if(s)if(r){let l=e.sticky.clientHeight,a=s.clientHeight,c=(l-a)/2;s.style.transform=`translateY(${c}px)`}else s.style.transform="translateY(0)"}}},_=()=>{let e=document.querySelector(G);if(!e){console.warn("DynamicCardScroll: Tunnel element not found");return}let t=Array.from(document.querySelectorAll(K)),n=Array.from(document.querySelectorAll(f)),o=Array.from(document.querySelectorAll(X)),i=document.querySelector(Z),r=document.querySelector(J);if(t.length===0||n.length===0){console.warn("DynamicCardScroll: No floors or cards found");return}if(t.length!==n.length){console.warn(`DynamicCardScroll: Mismatch between floors (${t.length}) and cards (${n.length})`);return}let s={tunnel:e,floors:t,cards:n,progressLines:o,sticky:i,triggerTitle:r,currentActiveIndex:-1,isTitleHidden:!1};if(n.forEach((c,d)=>{A(c,d===0)}),o.forEach(c=>{c.style.width="0%",c.style.transition="none"}),i&&r){let c=i.firstElementChild;if(c){if(r.getBoundingClientRect().bottom<=0){let m=i.clientHeight,y=c.clientHeight,u=(m-y)/2;c.style.transform=`translateY(${u}px)`,s.isTitleHidden=!0}else c.style.transform="translateY(0)";setTimeout(()=>{c.style.transition="transform 0.6s ease-in-out"},50)}}else if(i){let c=i.firstElementChild;c&&(c.style.transition="transform 0.6s ease-in-out",c.style.transform="translateY(0)")}s.currentActiveIndex=0;let l=()=>M(s);window.addEventListener("scroll",l,{passive:!0}),M(s),v();let a;window.addEventListener("resize",()=>{clearTimeout(a),a=window.setTimeout(()=>{v()},150)}),console.log(`DynamicCardScroll: Initialized with ${t.length} floors and ${n.length} cards`),le()},ie=()=>window.innerWidth<=991,v=()=>{if(!ie()){document.querySelectorAll(f).forEach(i=>{i.style.height=""});return}let e=Array.from(document.querySelectorAll(f));if(e.length===0)return;let t=e.map(o=>({display:o.style.display,opacity:o.style.opacity,pointerEvents:o.style.pointerEvents}));e.forEach(o=>{o.style.display="block",o.style.opacity="0",o.style.pointerEvents="none",o.style.height=""}),e[0].offsetHeight;let n=0;e.forEach(o=>{let i=o.offsetHeight;i>n&&(n=i)}),n>0&&e.forEach(o=>{o.style.height=`${n}px`}),e.forEach((o,i)=>{o.style.display=t[i].display,o.style.opacity=t[i].opacity,o.style.pointerEvents=t[i].pointerEvents})},R=()=>window.innerWidth<=767,re=(e,t,n)=>{e.style.transition=`width ${p} ease-in-out, opacity ${p} ease-in-out`,e.style.overflow="hidden",e.style.whiteSpace="nowrap",e.style.display="inline-block",t.style.transition=`opacity ${p} ease-in-out, transform ${p} ease-in-out`,t.style.opacity="0",t.style.transform="rotate(-45deg)",n.style.transition=`opacity ${p} ease-in-out, max-height ${p} ease-in-out`,n.style.opacity="0",n.style.maxHeight="0",n.style.overflow="hidden"},se=(e,t,n)=>{e.style.transition="",e.style.overflow="",e.style.whiteSpace="",e.style.display="",e.style.width="",e.style.opacity="",t.style.transition="",t.style.opacity="",t.style.transform="",n.style.transition="",n.style.opacity="",n.style.maxHeight="",n.style.overflow=""},le=()=>{let e=document.querySelectorAll(j);e.length!==0&&(e.forEach(t=>{let n=t.querySelector(Q),o=t.querySelector(ee),r=(t.closest(".div-block-24")||t.parentElement?.parentElement)?.querySelector(te);if(!n||!o||!r){console.warn("DynamicCardScroll: More button elements not found",{label:!!n,icon:!!o,moreText:!!r});return}let s=!1,l=null,a=()=>{R()?re(n,o,r):(se(n,o,r),s=!1,l=null)};a();let c;window.addEventListener("resize",()=>{clearTimeout(c),c=window.setTimeout(a,250)}),t.addEventListener("click",d=>{R()&&(d.preventDefault(),d.stopPropagation(),l===null&&(l=n.offsetWidth,n.style.width=`${l}px`),s=!s,s?(n.style.width="0px",n.style.opacity="0",setTimeout(()=>{o.style.opacity="1",o.style.transform="rotate(0deg)",r.style.opacity="1",r.style.maxHeight=`${r.scrollHeight}px`},150)):(o.style.opacity="0",o.style.transform="rotate(-45deg)",r.style.opacity="0",r.style.maxHeight="0",setTimeout(()=>{n.style.width=`${l}px`,n.style.opacity="1"},150)))})}),console.log(`DynamicCardScroll: Initialized ${e.length} mobile "More" buttons`))};var h=(e=document)=>{let t="Last Published:";for(let n of e.childNodes)if(n.nodeType===Node.COMMENT_NODE&&n.textContent?.includes(t)){let o=n.textContent.trim().split(t)[1];if(o)return new Date(o)}};var b=e=>{let t=h();console.log(`Hello ${e}!`),console.log(`This site was last published on ${t?.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"2-digit"})}.`)};var ce='[home-hero-el="parent-section"]',ae='[home-hero-el="1"]',de='[home-hero-el="2"]',me='[home-hero-el="logo"]';var T=()=>window.innerWidth<=767,ue=(e,t)=>{t=Math.max(0,Math.min(1,t));let n=t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2;e.step1.style.opacity=String(1-n),e.step2.style.opacity=String(n),e.step1.style.pointerEvents=n>.5?"none":"auto",e.step2.style.pointerEvents=n>.5?"auto":"none";let o=1-(1-.7)*n;e.logo.style.transform=`scale(${o})`,e.currentProgress=t},ye=(e,t)=>{e.animationFrame!==null&&cancelAnimationFrame(e.animationFrame);let n=e.currentProgress,o=t-n,i=performance.now(),r=s=>{let l=s-i,a=Math.min(l/500,1),c=a<.5?2*a*a:1-Math.pow(-2*a+2,2)/2,d=n+o*c;ue(e,d),a<1?e.animationFrame=requestAnimationFrame(r):e.animationFrame=null};e.animationFrame=requestAnimationFrame(r)},Ee=e=>{if(!T())return;let t=window.scrollY||window.pageYOffset,n=0;t>=50?n=1:n=0,Math.abs(n-e.currentProgress)>.01&&ye(e,n)},O=()=>{if(!T()){console.log("HomeHeroScroll: Not mobile viewport, skipping initialization");return}let e=document.querySelector(ce),t=document.querySelector(ae),n=document.querySelector(de),o=document.querySelector(me);if(!e||!t||!n||!o){console.warn("HomeHeroScroll: Required elements not found");return}let i={parent:e,step1:t,step2:n,logo:o,currentProgress:0,animationFrame:null};t.style.transition="none",n.style.transition="none",o.style.transition="none",o.style.transformOrigin="center",t.style.opacity="1",t.style.pointerEvents="auto",n.style.opacity="0",n.style.pointerEvents="none";let r=()=>Ee(i);window.addEventListener("scroll",r,{passive:!0});let s;window.addEventListener("resize",()=>{clearTimeout(s),s=window.setTimeout(()=>{T()||(i.animationFrame!==null&&(cancelAnimationFrame(i.animationFrame),i.animationFrame=null),t.style.opacity="1",t.style.pointerEvents="auto",n.style.opacity="0",n.style.pointerEvents="none",o.style.transform="scale(1)",i.currentProgress=0)},250)}),console.log("HomeHeroScroll: Initialized for mobile viewport")};var pe="[menu-cta-fixed-button]",fe="[menu-cta-fixed-button-trigger]",he="300ms",Te="ease",ge=e=>{let t=e.getBoundingClientRect(),n=window.innerHeight,o=window.innerWidth;return t.top0&&t.left0},x=(e,t)=>{t.hideTimeout!==null&&(clearTimeout(t.hideTimeout),t.hideTimeout=null),t.isVisible||(window.getComputedStyle(e).display==="none"?(e.style.display="flex",e.style.opacity="0",e.offsetHeight,requestAnimationFrame(()=>{e.style.opacity="1",t.isVisible=!0})):(e.style.opacity="1",t.isVisible=!0))},Le=(e,t)=>{t.isVisible&&(e.style.opacity="0",t.isVisible=!1,t.hideTimeout=window.setTimeout(()=>{e.style.opacity==="0"&&(e.style.display="none"),t.hideTimeout=null},300))},I=(e,t,n)=>{ge(t)?Le(e,n):x(e,n)},D=()=>{let e=document.querySelector(pe);if(!e){console.warn("MenuCtaFixedButton: Button element not found");return}e.style.transition=`opacity ${he} ${Te}`,e.style.display="none",e.style.opacity="0";let t={isVisible:!1,hideTimeout:null},n=document.querySelector(fe);if(!n){x(e,t),console.log("MenuCtaFixedButton: Trigger not found, showing button immediately");return}I(e,n,t);let o=()=>I(e,n,t);window.addEventListener("scroll",o,{passive:!0}),console.log("MenuCtaFixedButton: Initialized with trigger element")};var Se="[menu_link]",N="[menu_click-area]";var He=()=>window.innerWidth<=991,we=e=>{if(!He())return;let t=document.querySelector(N);if(!t){console.warn("MenuLinkClick: menu_click-area element not found");return}t.click()},B=()=>{let e=document.querySelectorAll(Se);if(!e.length){console.warn("MenuLinkClick: No menu_link elements found");return}if(!document.querySelector(N)){console.warn("MenuLinkClick: menu_click-area element not found");return}e.forEach(n=>{n.addEventListener("click",we)}),console.log(`MenuLinkClick: Initialized for ${e.length} menu_link element(s)`)};var Ce='[load-effect-on-scroll="parent"]',Me='[load-effect-on-scroll="el"]',ve="load-effect-on-scroll-color";var Re=e=>{let t=e.textContent||"",n=t.split(/\s+/),o=[],i=document.createElement("span");i.style.visibility="hidden",i.style.position="absolute",i.style.whiteSpace="nowrap";let r=window.getComputedStyle(e);i.style.font=r.font,i.style.fontSize=r.fontSize,i.style.fontFamily=r.fontFamily,i.style.fontWeight=r.fontWeight,i.style.letterSpacing=r.letterSpacing,document.body.appendChild(i);let s=e.offsetWidth,l="";return n.forEach((a,c)=>{let d=l?`${l} ${a}`:a;i.textContent=d,i.offsetWidth>s&&l?(o.push(l),l=a):l=d,c===n.length-1&&l&&o.push(l)}),document.body.removeChild(i),o.length>0?o:[t]},Ae=e=>{if(e.isAnimating||e.hasAnimated)return;e.isAnimating=!0;let t=performance.now(),n=e.lines.length,o=2500/n,i=r=>{let s=r-t,l=Math.min(s/2500,1),a=Math.floor(l*n),c=l*n%1;e.lines.forEach((d,E)=>{let m=0;E{let e=document.querySelectorAll(Me);if(!e.length){console.warn("ScrollTextReveal: No elements found");return}let t=[];e.forEach(o=>{let i=o.closest(Ce);if(!i)return;let s=o.getAttribute(ve)==="white"?"white":"black",l=s==="white"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.2)",a=s==="white"?"#fff":"#000",c=Re(o);o.textContent="",o.style.position="relative";let d=[];c.forEach(E=>{let m=document.createElement("div");m.style.cssText=` position: relative; display: block; `;let y=document.createElement("span");y.textContent=E,y.style.color=l,m.appendChild(y);let u=document.createElement("span");u.setAttribute("aria-hidden","true"),u.textContent=E,u.style.cssText=` position: absolute; top: 0; left: 0; color: ${a}; clip-path: inset(0 100% 0 0); pointer-events: none; white-space: pre-wrap; `,m.appendChild(u),o.appendChild(m),d.push({wrapper:m,overlay:u})}),t.push({parent:i,element:o,lines:d,isAnimating:!1,hasAnimated:!1,colorMode:s})});let n=new IntersectionObserver(o=>{o.forEach(i=>{let r=t.find(s=>s.element===i.target);r&&i.isIntersecting&&i.intersectionRatio>=.95&&!r.hasAnimated&&Ae(r)})},{threshold:[0,.25,.5,.75,.95,1],rootMargin:"0px"});t.forEach(({element:o})=>n.observe(o)),console.log(`ScrollTextReveal: Initialized ${t.length} element(s) with karaoke effect`)};window.Webflow||(window.Webflow=[]);window.Webflow.push(()=>{b("John Doe"),k(),O(),_(),H(),w(),D(),B(),C()});})();