{"version":3,"file":"LogoStack.fR7eOtXP.mjs","names":["useEffect","_jsx","__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","c","init_jsx_runtime","ce","init_framer_ChujFWHC","addPropertyControls","useIsStaticRenderer","ControlType","visible","el","r","childOf","section","LogoStack","props","below","stripHeight","logoScale","isStatic","style","css","marked","setMarks","s","next","ATTR","_","v","apply","clients","ai","kids","titleOf","re","k","parts","n","timers","t","rt","lastW","onResize","S","init_LogoStack","scale"],"sources":["https:/framerusercontent.com/modules/qtInpkRlRseWUFqM6eT1/N00UuvmaWgzAvyF2118j/LogoStack.js"],"sourcesContent":["// LogoStack (Thando, Nov 2026): on phone and tablet, re-stacks the Client\n// Roster / AI Models section into one centred column, in reading order:\n//   Client Roster -> client logos (vertical scroll) -> AI Models / Agents ->\n//   AI logos (vertical scroll)\n// On wider screens nothing is touched, so desktop keeps its sideways strips.\n//\n// v3 (Nov 2026): the stacked column no longer adds its own side padding on\n// top of the section's, so the titles and strips use the full content width\n// (the same edges as everything else). The logos are 50% larger in the\n// stacked layout (Logo Scale). The titles become ruled section headings\n// through LumenSkin.\n//\n// v2 (stability pass): marks the section with a data attribute instead of a\n// class (Framer rewrites class lists on re-render, which dropped the layout\n// for a moment), and only changes marks that need changing, so the section\n// no longer flashes when the page re-checks itself.\n//\n// Place one instance anywhere on the page; it renders nothing visible.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";const ATTR=\"data-uf-logo-flow\";const S=`[${ATTR}]`;const css=(below,stripHeight,scale)=>`\n@media (max-width: ${below-1}px) {\n  ${S} {\n    position: relative !important; top: auto !important; height: auto !important; min-height: 0 !important;\n    display: flex !important; flex-direction: column !important; align-items: center !important;\n    justify-content: flex-start !important; gap: 28px !important;\n    padding: 112px 0 112px 0 !important; box-sizing: border-box !important;\n    background-color: rgb(15, 15, 15) !important;\n  }\n  ${S} > [data-uf-order] {\n    position: relative !important; inset: auto !important; top: auto !important; left: auto !important;\n    right: auto !important; bottom: auto !important; transform: none !important; margin: 0 !important;\n    max-width: 100% !important;\n  }\n  ${S} > [data-uf-order=\"1\"] { order: 1 !important; }\n  ${S} > [data-uf-order=\"2\"] { order: 2 !important; }\n  ${S} > [data-uf-order=\"3\"] { order: 3 !important; }\n  ${S} > [data-uf-order=\"4\"] { order: 4 !important; }\n  ${S} > [data-uf-order=\"1\"], ${S} > [data-uf-order=\"3\"] { width: 100% !important; height: auto !important; }\n  ${S} > [data-uf-order=\"2\"], ${S} > [data-uf-order=\"4\"] {\n    width: 100% !important; height: ${Math.round(stripHeight*Math.min(1.5,scale))}px !important;\n  }\n  ${S} > [data-uf-order=\"3\"] { margin-top: 56px !important; }\n  ${S} > :not([data-uf-order]) { position: absolute !important; inset: 0 !important; z-index: -1 !important; pointer-events: none !important; height: auto !important; width: auto !important; }\n  /* Logos ${Math.round((scale-1)*100)}% larger in the stacked layout */\n  ${S} [data-uf-logos=\"clients\"] [data-ufm-logo] { zoom: ${scale}; }\n  ${S} [data-uf-logos=\"ai\"] img { zoom: ${scale}; }\n}\n`;function visible(el){if(!el)return false;const r=el.getBoundingClientRect();return r.width>0||r.height>0;}function childOf(section,el){let n=el;while(n&&n.parentElement!==section)n=n.parentElement;return n;}/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function LogoStack(props){const{below=1100,stripHeight=380,logoScale=1.5}=props;const isStatic=useIsStaticRenderer();useEffect(()=>{if(isStatic||typeof document===\"undefined\")return;const style=document.createElement(\"style\");style.textContent=css(below,stripHeight,Math.max(1,logoScale));document.head.appendChild(style);let section=null;let marked=new Map;const setMarks=(s,next)=>{if(section&&section!==s)section.removeAttribute(ATTR);if(s&&!s.hasAttribute(ATTR))s.setAttribute(ATTR,\"\");section=s;marked.forEach((_,el)=>{if(!next.has(el))el.removeAttribute(\"data-uf-order\");});next.forEach((v,el)=>{if(el.getAttribute(\"data-uf-order\")!==v)el.setAttribute(\"data-uf-order\",v);});marked=next;};const apply=()=>{if(window.innerWidth>=below)return setMarks(null,new Map);const clients=Array.from(document.querySelectorAll('[data-uf-logos=\"clients\"]')).find(visible);const ai=Array.from(document.querySelectorAll('[data-uf-logos=\"ai\"]')).find(visible);if(!clients||!ai)return;let s=clients.parentElement;while(s&&!s.contains(ai))s=s.parentElement;if(!s)return;const kids=Array.from(s.children);const titleOf=re=>kids.find(k=>visible(k)&&re.test(k.textContent||\"\")&&!k.querySelector(\"[data-uf-logos]\"));const parts=[[titleOf(/client\\s*roster/i),\"1\"],[childOf(s,clients),\"2\"],[titleOf(/ai\\s*models/i),\"3\"],[childOf(s,ai),\"4\"]];if(parts.some(([el])=>!el))return;const next=new Map;parts.forEach(([el,n])=>next.set(el,n));setMarks(s,next);};apply();const timers=[500,1500,3e3].map(t=>setTimeout(apply,t));let rt=0;let lastW=window.innerWidth;const onResize=()=>{if(window.innerWidth===lastW)return;lastW=window.innerWidth;clearTimeout(rt);rt=setTimeout(apply,150);};window.addEventListener(\"resize\",onResize);return()=>{timers.forEach(clearTimeout);clearTimeout(rt);window.removeEventListener(\"resize\",onResize);setMarks(null,new Map);style.remove();};},[isStatic,below,stripHeight,logoScale]);return /*#__PURE__*/_jsx(\"div\",{style:{width:1,height:1,pointerEvents:\"none\"}});}addPropertyControls(LogoStack,{below:{type:ControlType.Number,title:\"Stack Below\",min:400,max:2e3,step:1,unit:\"px\",defaultValue:1100},stripHeight:{type:ControlType.Number,title:\"Strip Height\",min:160,max:800,step:10,unit:\"px\",defaultValue:380},logoScale:{type:ControlType.Number,title:\"Logo Scale\",min:1,max:2.5,step:.05,defaultValue:1.5}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LogoStack\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//#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