{"version":3,"file":"OptimaPillNavigation.BqD06k06.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/XYhjVa2GSBmPpYgB48pY/XqHGcpcRYjUNn0gEqpKt/OptimaPillNavigation.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{motion,AnimatePresence}from\"framer-motion\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight fixed\n */export default function OptimaPillNavigation(){const[open,setOpen]=React.useState(false);React.useEffect(()=>{const close=()=>setOpen(false);window.addEventListener(\"resize\",close);return()=>window.removeEventListener(\"resize\",close);},[]);const links=[[\"Home\",\"/\"],[\"About\",\"/about\"],[\"Projects\",\"/projects\"]];return /*#__PURE__*/_jsxs(\"div\",{className:\"opn-root\",children:[/*#__PURE__*/_jsx(\"style\",{children:css}),/*#__PURE__*/_jsxs(motion.nav,{className:\"opn-nav\",\"aria-label\":\"Primary navigation\",initial:{opacity:0,y:-16,scale:.98},animate:{opacity:1,y:0,scale:1},transition:{duration:.55,ease:[.2,.75,.2,1]},children:[/*#__PURE__*/_jsx(motion.a,{className:\"opn-brand\",href:\"/\",\"aria-label\":\"OptimaWebAI home\",whileHover:{rotate:-8,scale:1.04},whileTap:{scale:.96},children:/*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 32 32\",fill:\"none\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"16\",cy:\"16\",r:\"10.5\",stroke:\"currentColor\",strokeWidth:\"2.2\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M11 17.2c2.4-5.5 7.2-6.8 11-3.6-1.7.2-3.4 1.3-4.5 3.2-1.3 2.2-3.8 2.7-6.5.4Z\",fill:\"currentColor\"})]})}),/*#__PURE__*/_jsx(\"button\",{className:`opn-menu ${open?\"is-open\":\"\"}`,type:\"button\",\"aria-label\":open?\"Close navigation\":\"Open navigation\",\"aria-expanded\":open,onClick:()=>setOpen(value=>!value),children:/*#__PURE__*/_jsx(\"span\",{})}),/*#__PURE__*/_jsx(\"div\",{className:\"opn-links\",children:links.map(([label,href])=>/*#__PURE__*/_jsx(\"a\",{className:\"opn-link\",href:href,children:label},href))}),/*#__PURE__*/_jsxs(motion.a,{className:\"opn-contact\",href:\"/contact\",whileHover:{y:-2},whileTap:{scale:.98},children:[/*#__PURE__*/_jsx(\"span\",{children:\"Start a Project\"}),/*#__PURE__*/_jsx(\"b\",{children:\"↗\"})]})]}),/*#__PURE__*/_jsx(AnimatePresence,{children:open&&/*#__PURE__*/_jsx(motion.div,{className:\"opn-mobile\",initial:{opacity:0,y:-8,scale:.985},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-8,scale:.985},transition:{duration:.2},children:links.map(([label,href])=>/*#__PURE__*/_jsxs(\"a\",{href:href,onClick:()=>setOpen(false),children:[label,/*#__PURE__*/_jsx(\"span\",{children:\"↗\"})]},href))})})]});}const css=`\n.opn-root{position:fixed;z-index:9999;top:0;left:0;width:100vw;height:78px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,\"Segoe UI\",sans-serif;pointer-events:none}\n.opn-nav{pointer-events:auto;position:relative;display:flex;align-items:center;width:min(720px,calc(100% - 28px));min-height:58px;margin:10px auto 0;padding:5px 6px 5px 7px;border:1px solid rgba(255,255,255,.15);border-radius:999px;background:#171717;box-shadow:0 17px 32px -13px rgba(0,0,0,.52),0 4px 10px rgba(0,0,0,.18)}\n.opn-brand{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:50%;color:#171717;background:#fff;text-decoration:none;transition:background .2s ease}\n.opn-brand:hover{background:#f0f5ff}.opn-brand svg{width:24px;height:24px}\n.opn-links{display:flex;align-items:center;gap:2px;margin-left:9px}.opn-link{position:relative;padding:13px 15px;color:rgba(255,255,255,.78);border-radius:999px;font-size:12px;font-weight:500;text-decoration:none;white-space:nowrap;transition:color .2s ease,background .2s ease,transform .2s ease}.opn-link:hover{color:#fff;background:rgba(255,255,255,.085);transform:translateY(-1px)}.opn-link:after{content:\"\";position:absolute;left:15px;right:15px;bottom:8px;height:1px;background:#fff;transform:scaleX(0);transform-origin:right;transition:transform .24s ease}.opn-link:hover:after{transform:scaleX(1);transform-origin:left}\n.opn-contact{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-width:148px;height:46px;margin-left:auto;padding:0 18px;border:1px solid #fff;border-radius:999px;background:#fff;color:#171717;font-size:12px;font-weight:650;text-decoration:none;white-space:nowrap;transition:background .2s ease,box-shadow .2s ease}.opn-contact:hover{background:#edf4ff;box-shadow:0 7px 18px rgba(0,0,0,.24)}.opn-contact b{font-size:15px;font-weight:500}\n.opn-menu{display:none;width:44px;height:44px;margin-left:4px;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer}.opn-menu span,.opn-menu:before,.opn-menu:after{content:\"\";display:block;width:17px;height:1.5px;margin:4px auto;border-radius:2px;background:currentColor;transition:transform .22s ease,opacity .22s ease}.opn-menu.is-open span{opacity:0}.opn-menu.is-open:before{transform:translateY(5.5px) rotate(45deg)}.opn-menu.is-open:after{transform:translateY(-5.5px) rotate(-45deg)}\n.opn-mobile{display:none;pointer-events:auto}\n@media(max-width:640px){.opn-root{height:70px}.opn-nav{width:calc(100% - 20px);min-height:56px;margin-top:7px}.opn-menu{display:block}.opn-links{display:none}.opn-contact{min-width:0;height:44px;padding:0 16px}.opn-contact span{display:none}.opn-contact:before{content:\"Contact\"}.opn-mobile{position:absolute;top:70px;left:10px;right:10px;display:grid;gap:4px;padding:8px;border:1px solid rgba(255,255,255,.12);border-radius:22px;background:#171717;box-shadow:0 18px 34px -12px rgba(0,0,0,.42)}.opn-mobile a{display:flex;justify-content:space-between;align-items:center;padding:14px 15px;border-radius:14px;color:rgba(255,255,255,.82);font-size:13px;text-decoration:none}.opn-mobile a:hover{color:white;background:rgba(255,255,255,.08)}}\n@media(prefers-reduced-motion:reduce){.opn-root *{transition:none!important}}\n`;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"OptimaPillNavigation\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./OptimaPillNavigation.map"],"mappings":"sMAGG,SAAwB,GAAsB,CAAC,GAAK,CAAC,EAAK,GAASA,EAAe,EAAK,EAAE,MAAoB,CAAC,IAAM,MAAU,EAAQ,EAAK,EAA0C,OAAxC,EAAO,iBAAiB,SAAS,CAAK,MAAY,EAAO,oBAAoB,SAAS,CAAK,CAAE,EAAE,CAAC,CAAC,EAAE,IAAM,EAAM,CAAC,CAAC,OAAO,GAAG,EAAE,CAAC,QAAQ,QAAQ,EAAE,CAAC,WAAW,WAAW,CAAC,EAAE,OAAoB,EAAM,MAAM,CAAC,UAAU,WAAW,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS,CAAG,CAAC,EAAe,EAAM,EAAO,IAAI,CAAC,UAAU,UAAU,aAAa,qBAAqB,QAAQ,CAAC,QAAQ,EAAE,EAAE,IAAI,MAAM,GAAG,EAAE,QAAQ,CAAC,QAAQ,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,WAAW,CAAC,SAAS,IAAI,KAAK,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,EAAE,SAAS,CAAc,EAAK,EAAO,EAAE,CAAC,UAAU,YAAY,KAAK,IAAI,aAAa,mBAAmB,WAAW,CAAC,OAAO,GAAG,MAAM,IAAI,EAAE,SAAS,CAAC,MAAM,GAAG,EAAE,SAAsB,EAAM,MAAM,CAAC,QAAQ,YAAY,KAAK,OAAO,cAAc,OAAO,SAAS,CAAc,EAAK,SAAS,CAAC,GAAG,KAAK,GAAG,KAAK,EAAE,OAAO,OAAO,eAAe,YAAY,KAAK,CAAC,EAAe,EAAK,OAAO,CAAC,EAAE,+EAA+E,KAAK,cAAc,CAAC,CAAC,CAAC,CAA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