{"version":3,"file":"shared-lib.BzFK1mhe.mjs","names":["React.useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/Ho1sxlbKfNLyOdu4Uska/wLGyzbeRcXztHJNSQA3e/PBNavBar_NoCasestudy.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";// ---- Shared PB Brand Tokens ----\nconst TOKENS={obsidian:\"#0C0C0E\",obsidianLift:\"#111113\",hairline:\"#2A2A2D\",limeGrey:\"#8C8C8A\",limeGreySoft:\"#4A4A4D\",limestone:\"#F2F2F0\",ember:\"#D95C30\"};const fontStack=\"'Inter', -apple-system, BlinkMacSystemFont, sans-serif\";function useViewport(){const[vw,setVw]=React.useState(()=>typeof window!==\"undefined\"?window.innerWidth:1440);React.useEffect(()=>{if(typeof window===\"undefined\")return;const onResize=()=>setVw(window.innerWidth);onResize();window.addEventListener(\"resize\",onResize);return()=>window.removeEventListener(\"resize\",onResize);},[]);return{vw,isMobile:vw<768,isTablet:vw>=768&&vw<1100};}function useScrolled(offset=24){const[scrolled,setScrolled]=React.useState(false);React.useEffect(()=>{if(typeof window===\"undefined\")return;const onScroll=()=>setScrolled(window.scrollY>offset);onScroll();window.addEventListener(\"scroll\",onScroll,{passive:true});return()=>window.removeEventListener(\"scroll\",onScroll);},[offset]);return scrolled;}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicHeight 80\n */export default function PBNav({brand=\"PB\",eyebrow=\"GROUNDWORK ARCHITECTURE • EST. 1989\",showScrollProgress=true}){const[open,setOpen]=React.useState(false);const[progress,setProgress]=React.useState(0);const scrolled=useScrolled(24);const{isMobile}=useViewport();// 3-Link Core Navigation with Capabilities fully restored\nconst links=[{label:\"Capabilities\",href:\"/#capabilities\"},{label:\"Portfolio\",href:\"/#portfolio\"},{label:\"Contact\",href:\"/#contact-channels\"}];// Cross-page-safe section navigation. Framer only auto-scrolls to its own\n// native sections, not to ids that live inside code components, so a plain\n// \"/#section\" link just lands at the top of the home page. Smooth-scroll\n// when already on the home page; otherwise hard-navigate home and let the\n// effect below scroll once the page has rendered.\nconst goSection=href=>e=>{setOpen(false);if(typeof window===\"undefined\")return;e.preventDefault();const hash=href.slice(href.indexOf(\"#\"));const onHome=window.location.pathname===\"/\"||window.location.pathname===\"\";if(onHome){document.querySelector(hash)?.scrollIntoView({behavior:\"smooth\"});}else{window.location.href=\"/\"+hash;}};// After arriving on the home page (including a hard nav from a subpage),\n// scroll to the hash target. Retries because Framer renders the long page\n// asynchronously, so the target node may not exist on first tick.\nReact.useEffect(()=>{if(typeof window===\"undefined\")return;const hash=window.location.hash;if(!hash||hash.length<2)return;let tries=0;const run=()=>{const el=document.querySelector(hash);if(el){el.scrollIntoView({behavior:\"smooth\"});return;}if(tries++<25)setTimeout(run,150);};const t=setTimeout(run,250);return()=>clearTimeout(t);},[]);// Scroll lock for mobile drawer overlay\nReact.useEffect(()=>{if(typeof document===\"undefined\")return;const original=document.body.style.overflow;document.body.style.overflow=open?\"hidden\":original||\"\";const onKey=e=>{if(e.key===\"Escape\")setOpen(false);};document.addEventListener(\"keydown\",onKey);return()=>{document.body.style.overflow=original;document.removeEventListener(\"keydown\",onKey);};},[open]);// Scroll progress track calculation\nReact.useEffect(()=>{if(!showScrollProgress)return;if(typeof window===\"undefined\")return;const onScroll=()=>{const h=document.documentElement.scrollHeight-window.innerHeight;setProgress(h>0?Math.min(1,window.scrollY/h):0);};onScroll();window.addEventListener(\"scroll\",onScroll,{passive:true});return()=>window.removeEventListener(\"scroll\",onScroll);},[showScrollProgress]);return /*#__PURE__*/_jsxs(\"nav\",{style:{position:\"fixed\",top:0,left:0,right:0,zIndex:1e3,backgroundColor:scrolled?\"rgba(12,12,14,0.88)\":\"rgba(12,12,14,0.25)\",backdropFilter:\"blur(16px)\",WebkitBackdropFilter:\"blur(16px)\",transition:\"background-color 0.4s ease, border-color 0.4s ease\",fontFamily:fontStack,borderBottom:scrolled?`1px solid ${TOKENS.hairline}`:\"1px solid transparent\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                * { box-sizing: border-box; -webkit-font-smoothing: antialiased; }\n                \n                .pb-nav-link {\n                    color: ${TOKENS.limeGrey};\n                    text-transform: uppercase;\n                    font-size: 11px;\n                    letter-spacing: 0.18em;\n                    text-decoration: none;\n                    font-weight: 600;\n                    transition: color 0.3s ease;\n                }\n                .pb-nav-link:hover {\n                    color: ${TOKENS.limestone} !important;\n                }\n                .pb-brand-group {\n                    display: flex;\n                    align-items: center;\n                    gap: 28px;\n                    text-decoration: none;\n                    color: ${TOKENS.limestone};\n                }\n\n                /* Pure CSS Media Query Overrides to Prevent Mobile Link Squeezing */\n                @media (max-width: 767px) {\n                    .pb-desktop-menu {\n                        display: none !important;\n                    }\n                    .pb-mobile-burger {\n                        display: flex !important;\n                    }\n                }\n                @media (min-width: 768px) {\n                    .pb-desktop-menu {\n                        display: flex !important;\n                    }\n                    .pb-mobile-burger {\n                        display: none !important;\n                    }\n                }\n                @media (prefers-reduced-motion: reduce) {\n                    * { transition: none !important; }\n                }\n            `}),showScrollProgress&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,height:2,width:`${progress*100}%`,backgroundColor:TOKENS.ember,transition:\"width 0.12s linear\",zIndex:2},\"aria-hidden\":true}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",padding:isMobile?\"26px 24px\":\"20px 48px\",// Inner content cap per width spec: nav bar background is\n// full-bleed (the <nav> spans the viewport); the link row\n// holds the same 1200 grid as the hero beneath it.\nmaxWidth:1200,margin:\"0 auto\",width:\"100%\"},children:[/*#__PURE__*/_jsxs(\"a\",{href:\"/#top\",className:\"pb-brand-group\",onClick:goSection(\"/#top\"),children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:isMobile?28:26,fontWeight:900,letterSpacing:\"-0.04em\"},children:brand}),!isMobile&&/*#__PURE__*/_jsx(\"span\",{style:{fontSize:10,letterSpacing:\"0.24em\",color:TOKENS.limeGreySoft,textTransform:\"uppercase\",fontWeight:700,borderLeft:`1px solid ${TOKENS.hairline}`,paddingLeft:\"24px\"},children:eyebrow})]}),/*#__PURE__*/_jsx(\"div\",{className:\"pb-desktop-menu\",style:{display:\"flex\",alignItems:\"center\",gap:32},children:links.map(link=>/*#__PURE__*/_jsx(\"a\",{href:link.href,className:\"pb-nav-link\",onClick:goSection(link.href),children:link.label},link.href))}),/*#__PURE__*/_jsxs(\"button\",{onClick:()=>setOpen(!open),className:\"pb-mobile-burger\",style:{width:38,height:38,display:\"none\",flexDirection:\"column\",justifyContent:\"center\",alignItems:\"center\",gap:5,padding:0,zIndex:1001,background:\"none\",border:\"none\",cursor:\"pointer\"},\"aria-label\":open?\"Close menu\":\"Open menu\",\"aria-expanded\":open,children:[/*#__PURE__*/_jsx(\"span\",{style:{width:22,height:1.5,backgroundColor:TOKENS.limestone,transition:\"transform 0.3s ease\",transform:open?\"translateY(4px) rotate(45deg)\":\"none\"}}),/*#__PURE__*/_jsx(\"span\",{style:{width:22,height:1.5,backgroundColor:TOKENS.limestone,transition:\"transform 0.3s ease\",transform:open?\"translateY(-4px) rotate(-45deg)\":\"none\"}})]})]}),isMobile&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{onClick:()=>setOpen(false),style:{position:\"fixed\",inset:0,backgroundColor:\"rgba(12,12,14,0.72)\",backdropFilter:\"blur(8px)\",opacity:open?1:0,pointerEvents:open?\"auto\":\"none\",transition:\"opacity 0.4s ease\",zIndex:-1},\"aria-hidden\":true}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",top:0,right:0,bottom:0,width:\"min(82vw, 360px)\",backgroundColor:TOKENS.obsidian,borderLeft:`1px solid ${TOKENS.hairline}`,padding:\"84px 28px 40px\",transform:open?\"translateX(0)\":\"translateX(100%)\",transition:\"transform 0.45s cubic-bezier(0.16,1,0.3,1)\",display:\"flex\",flexDirection:\"column\",gap:4},children:links.map(link=>/*#__PURE__*/_jsx(\"a\",{href:link.href,onClick:goSection(link.href),style:{color:TOKENS.limestone,fontSize:22,fontWeight:700,padding:\"18px 0\",borderBottom:`1px solid ${TOKENS.hairline}`,textDecoration:\"none\",letterSpacing:\"-0.01em\",textTransform:\"uppercase\"},children:link.label},link.href))})]})]});}addPropertyControls(PBNav,{brand:{type:ControlType.String,title:\"Brand Logo Text\",defaultValue:\"PB\"},eyebrow:{type:ControlType.String,title:\"Sub-Mark Label\",defaultValue:\"GROUNDWORK ARCHITECTURE • EST. 1989\"},showScrollProgress:{type:ControlType.Boolean,title:\"Scroll Progress\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PBNav\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"80\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PBNavBar_NoCasestudy.map"],"mappings":"6MACmO,SAAS,GAAa,CAAC,GAAK,CAAC,EAAG,GAAOA,MAA0B,IAAS,OAA8B,KAAlB,EAAO,WAAgB,CAA4N,OAA3N,MAAoB,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,MAAa,EAAM,EAAO,WAAW,CAAuD,OAAtD,GAAU,CAAC,EAAO,iBAAiB,SAAS,EAAS,KAAW,EAAO,oBAAoB,SAAS,EAAS,EAAG,EAAE,CAAC,CAAO,CAAC,KAAG,SAAS,EAAG,IAAI,SAAS,GAAI,KAAK,EAAG,KAAK,CAAE,SAAS,EAAY,EAAO,GAAG,CAAC,GAAK,CAAC,EAAS,GAAaA,EAAe,GAAM,CAA2P,OAA1P,MAAoB,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,MAAa,EAAY,EAAO,QAAQ,EAAO,CAAsE,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