{"version":3,"file":"TargetLink.DOTmM7fk.mjs","names":["__esmMin","c","init_jsx_runtime","ce","init_npm_react_18_3_1","init_framer_Bf4_tcb2","RenderTarget","ensureCss","injected","el","CSS","withClass","isCanvas","Component","props","name","decorative","withTargetLink","withTargetMark","ACCENT_VAR","TEXT_VAR","EASE","NUDGE","init_TargetLink"],"sources":["https:/framerusercontent.com/modules/iMS2OxkJmwSTJ3SN4jPD/KlYEWaxbQpw2jA5ovKno/TargetLink.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{RenderTarget}from\"framer\";import{useEffect}from\"react\";/**\n * TargetLink — the 404's mono text links (\"SERVICES >\", 26.10.2026), after Home's\n * News cards (\"READ MORE >\": Mono/Label at 0.7, \">\" in Accent) and\n * docs/approach/README.md §6: other links are mono text links such as `TECHNOLOGY >`.\n * Links, not a new button look, so BracketButton stays untouched.\n *\n * withTargetLink — on the linked frame (the 44 px tall hit area). Gives it the nav's\n *                  1 px Accent focus-visible ring with a 2 px offset and 2 px radius\n *                  (SiteNav, critic round 2), 6 px of padding each side (cancelled by\n *                  negative margins, so the row's spacing is unchanged) so the ring\n *                  never touches the nudged \">\", and raises the label from Muted Light\n *                  to Off White on hover and keyboard focus: 200 ms on 0.16, 1, 0.3, 1.\n * withTargetMark — on the \">\" inside that frame. It nudges 4 px to the right while the\n *                  link is hovered or keyboard-focused: 220 ms on 0.16, 1, 0.3, 1.\n *\n * The label scrambles on hover and focus through TextScramble's `withTextScramble`.\n * Pure CSS on two classes: Framer frames pass className through an override but not\n * event handlers, and its inline `transform: none` needs !important to be overridden.\n * No nudge under reduced motion (the ring and the colour still change); nothing changes\n * in the editor.\n */const ACCENT_VAR=\"var(--token-d59fbca6-be87-4de5-bb0a-2732f0693b41, #D1472B)\";const TEXT_VAR=\"var(--token-7c0cfa49-b71a-46c8-be5b-ed049205ce87, #EDEDED)\"// Off White\n;const EASE=\"cubic-bezier(0.16, 1, 0.3, 1)\";const NUDGE=\"translateX(4px)\";// the label's text (every text layer in the link except the \">\")\nconst LABEL=\".marble-target-link :not(.marble-target-mark) > .framer-text\";const CSS=[// 6 px of extra box on each side, taken back by the margins: the ring clears the nudged \">\" and the\n// hit area widens, while the row's spacing stays exactly as laid out on the canvas\n`.marble-target-link{padding-left:6px !important;padding-right:6px !important;margin-left:-6px !important;margin-right:-6px !important}`,`.marble-target-link:focus-visible{outline:1px solid ${ACCENT_VAR} !important;outline-offset:2px;border-radius:2px}`,`${LABEL}{transition:color 200ms ${EASE}}`,`.marble-target-link:focus-visible :not(.marble-target-mark) > .framer-text{color:${TEXT_VAR} !important}`,`@media (hover: hover){.marble-target-link:hover :not(.marble-target-mark) > .framer-text{color:${TEXT_VAR} !important}}`,`@media (prefers-reduced-motion: no-preference){`,`.marble-target-mark{transition:transform 220ms ${EASE} !important}`,`.marble-target-link:focus-visible .marble-target-mark{transform:${NUDGE} !important}`,`}`,`@media (prefers-reduced-motion: no-preference) and (hover: hover){`,`.marble-target-link:hover .marble-target-mark{transform:${NUDGE} !important}`,`}`].join(\"\");let injected=false;function ensureCss(){if(injected||typeof document===\"undefined\")return;injected=true;const el=document.createElement(\"style\");el.setAttribute(\"data-marble\",\"target-link\");el.textContent=CSS;document.head.appendChild(el);}function withClass(Component,name,decorative=false){return props=>{const isCanvas=RenderTarget.current()===RenderTarget.canvas;useEffect(()=>{if(!isCanvas)ensureCss();},[isCanvas]);const el=/*#__PURE__*/_jsx(Component,{...props,className:[props.className,name].filter(Boolean).join(\" \")});// the \">\" is decoration: the link's name stays \"Services\", not \"Services greater than\"\nreturn decorative?/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{display:\"contents\"},children:el}):el;};}export function withTargetLink(Component){return withClass(Component,\"marble-target-link\");}export function withTargetMark(Component){return withClass(Component,\"marble-target-mark\",true);}\nexport const __FramerMetadata__ = {\"exports\":{\"withTargetLink\":{\"type\":\"reactHoc\",\"name\":\"withTargetLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTargetMark\":{\"type\":\"reactHoc\",\"name\":\"withTargetMark\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TargetLink.map"],"mappings":"A,oKAwBq5B,SAASO,GAAW,CAAC,GAAGC,GAAU,OAAO,SAAW,IAAY,OAAO,EAAS,GAAK,IAAMC,EAAG,SAAS,cAAc,OAAO,EAAEA,EAAG,aAAa,cAAc,aAAa,EAAE,EAAG,YAAYC,EAAI,SAAS,KAAK,YAAYD,CAAE,CAAE,CAAC,SAASE,EAAU,EAAU,EAAK,EAAW,GAAM,CAAC,MAAO,IAAO,CAAC,IAAMC,EAASN,EAAa,QAAQ,IAAIA,EAAa,OAAOH,MAAc,CAAKS,GAASL,EAAU,CAAE,EAAE,CAACK,CAAQ,CAAC,EAAE,IAAMH,EAAgB,gBAAKI,EAAU,CAAC,GAAGC,EAAM,UAAU,CAACA,EAAM,UAAUC,CAAI,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,EACj5C,OAAOC,EAAwB,gBAAK,MAAM,CAAC,cAAc,OAAO,MAAM,CAAC,QAAQ,UAAU,EAAE,SAASP,CAAE,CAAC,EAAEA,CAAG,CAAE,CAAC,SAAgBQ,EAAe,EAAU,CAAC,OAAON,EAAUE,EAAU,oBAAoB,CAAE,CAAC,SAAgBK,EAAe,EAAU,CAAC,OAAOP,EAAUE,EAAU,qBAAqB,EAAI,CAAE,C,0DALlS,EAAW,6DAAmE,EAAS,6DACzF,EAAK,gCAAsC,EAAM,kBACyB,EAAI,CAErF,yIAAyI,uDAAuDM,EAAW,mDAAmD,uFAAmCE,EAAK,GAAG,oFAAoFD,EAAS,cAAc,kGAAkGA,EAAS,eAAe,kDAAkD,kDAAkDC,EAAK,cAAc,mEAAmEC,EAAM,cAAc,IAAI,qEAAqE,2DAA2DA,EAAM,cAAc,GAAG,CAAC,CAAC,KAAK,EAAE,EAAM,EAAS,E"}