{"version":3,"file":"Workflow_features.PHTNkbRP.mjs","names":["useState","useRef","useMemo","Fragment","React.useState","React.useRef","React.useCallback","React.useMemo","__esmMin","window","x","pe","init_ssg_sandbox_shims","init_npm_react_18_3_1","_e","de","ne","c","p","ce","useReducedMotion","useMotionValueEvent","useAnimationControls","useScroll","motion","useMotionValue","useTransform","useSpring","init_framer_motion_DhsWWWsN","RenderTarget","addPropertyControls","init_framer_B1b760uK","ControlType","useMedia","ok","setOk","mq","query","onChange","useOneWayProgress","latched","source","doneRef","sync","next","v","Word","progress","start","end","hiddenAlpha","stableHash","h","i","input","ScrollReadSection","props","inFlow","trigger","type","PRESETS","preset","Tag","cls","text","maxWidth","color","isCanvas","reduced","wide","pinFrom","locking","paraRef","flow","FLOW_START","FLOW_END","virt","smooth","src","revealed","approach","fadeBy","enterOpacity","enterY","el","root","locked","lockY","prevS","saved","frames","lockLine","pinAt","freeze","sbw","prev","f","thaw","release","carry","engage","at","advance","delta","MAX_STEP","raw","damping","hold","step","e","RELEASE_AT","s","line","onWheel","unit","lastY","onTouchStart","onTouchMove","y","d","onTouchEnd","onKey","t","page","onScroll","over","onLeave","onVis","paragraphs","wordCount","n","toks","denom","FEATHER_WORDS","cursor","blocks","tok","w","bi","css","fading","fadeIn","style","init_ScrollReadSection","init_jsx_runtime","resolveMock","key","MOCK_REPLACEMENTS","url","seg","N","idx","clamp01","scrub","MockLayer","activeOf","climb","transform","opacity","HIDDEN","zIndex","CopyLayer","phases","TEXT_DRIFT","exitP","enterP","TEXT_TRAVEL","geo","g","GEO_CACHE","fixMockupFonts","out","link","INTER_CSS","loadDoc","hit","DOC_CACHE","inflight","DOC_INFLIGHT","backoff","attempt","r","res","rej","DOC_CACHE_MAX","oldest","canFrameRemote","u","useNear","NEAR_MARGIN","near","setNear","ref","reported","io","entries","margin","rescue","EmbedPending","show","setShow","id","SKELETON_DELAY","EmbedFallback","COLORS","title","useRevealHandshake","readyRef","readyTick","setReadyTick","played","markReady","onMsg","frameRef","play","acked","send","instant","onAck","stop","HtmlEmbed","doc","setDoc","design","setDesign","crop","setCrop","onDesign","failed","setFailed","remote","setRemote","mode","fit","reducedMotion","boxRef","box","setBox","read","ro","reached","load","mayLoad","HARD_TIMEOUT","alive","m","measRef","needsDesign","needsMeasure","keepDesign","keepCrop","measure","ifr","full","win","stage","kids","l","b","cs","st","PROBE_W","PROBE_H","liveRef","srcDoc","frameStyle","interactive","inner","cr","sx","sy","fillWidth","stacked","minScale","COVER_BLEED","overX","overY","fx","focalX","fy","focalY","left","top","settled","ImageReveal","preview","controls","ready","setReady","sizing","WorkflowFeatures","sections","rootRef","width","setWidth","pageW","setPageW","isMobile","inContainer","minGutter","sideRoom","stageGutter","padTop","stagePadTop","padBottom","marginBottom","stagePads","stagePadBottom","isTablet","isCompact","deckRef","deckW","setDeckW","designs","setDesigns","designSetters","armed","setArmed","preloadRest","setPreloadRest","PRELOAD_REST_MS","trackRef","active","setActive","prevActive","setPrevActive","dir","setDir","plays","setPlays","playsRef","applyEngaged","climbPortion","changed","scrollYProgress","cur","titleFontSize","copyContent","COPY_PAD","pi","para","copyStack","mockContent","PHONE_MIN_SCALE","cardChrome","scrimEnabled","mockRadius","fade","fadeWidth","mask","ad","stackedH","cw","sc","mockStack","mockHeight","DECK_PAD","progressLine","heading","marginTop","pageBackground","font","scrollPerSection","FADE_DEFAULT","init_Workflow_features"],"sources":["https:/framerusercontent.com/modules/uu9rDRf7yaZMqZVLOxRf/xOb4nm7dBkcyShVLU7HG/ScrollReadSection.js","https:/framerusercontent.com/modules/EmB0GyesY5oxWHBQM3Lg/DrMBpoR6NZExOqhBzzpT/Workflow_features.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{motion,useMotionValue,useScroll,useSpring,useTransform}from\"framer-motion\";import{Fragment,useEffect,useMemo,useRef,useState}from\"react\";// ---------------------------------------------------------------------------\n// ScrollReadSection\n//\n// A statement paragraph that freezes the page while it is read. It sits in\n// the flow at its own height, nothing around it moves or gains space. As it\n// scrolls up and its top reaches the pin line (`pinAt` percent of the\n// viewport) the page locks: wheel and touch no longer scroll, they advance a\n// virtual reading progress and the words light up word by word. Once the\n// last word is lit the next tick releases the page and it carries on. See\n// the V6 note below: the lock is now forward only and one time, so scrolling\n// back up into the paragraph no longer re-locks or reads it backwards.\n// Scrollbar drags and keyboard scrolling are never captured: any native\n// scroll away from the lock line simply unlocks.\n//\n// Approach: the paragraph fades and rises in as it enters the viewport,\n// complete by `fadeBy` percent of the viewport.\n//\n// No lock (paragraph reveals in flow as it passes 85% to 45% of the viewport)\n// below `pinFrom` px, under prefers-reduced-motion, or on the Framer canvas\n// (canvas shows the paragraph fully revealed so the page stays editable).\n//\n// Type comes from the `preset` control, transcribed from the DESIGN.md\n// section 2 scale (see PRESETS below). Default is Heading 5. Centred. Hidden\n// words are the text colour at `hiddenAlpha`, so it works on any ground.\n// Before 2026-09-16 the scale was hard coded to the Heading 5 row and the\n// comment here wrongly called it Heading 3.\n//\n// V6 (one way, one time): the words themselves now only ever light up, never\n// dim back down, and once the last word is lit that instance is done for the\n// life of the page (scrolling away and back never replays it). This meant\n// dropping the \"reads backwards\" half of the lock: it used to re-engage and\n// freeze the page when scrolling up into the paragraph, running the reading\n// progress back down to 0 (see the old lock notes below). With the reveal\n// itself one way, that backward lock would freeze the page for a gesture\n// that could no longer show any visual change, so it is removed; the lock\n// now only ever engages going forward, and stops engaging at all once the\n// paragraph has been fully read once. The lit-word colour is driven by a\n// latched, monotonic copy of the underlying progress, not the raw value.\n// ---------------------------------------------------------------------------\nconst FEATHER_WORDS=3;const FLOW_START=.85;const FLOW_END=.45;// V7 (Kriss 2026-09-25, \"sometimes it hijacks the scroll, sometimes it just\n// scrolls past\"). Two measured causes, both fixed below:\n// 1. Hijack: a wheel over an embedded mockup (iframe) goes to the iframe's\n//    own document, so once the page froze the reading never advanced and the\n//    page never moved. While locked, iframes stop taking pointer input so the\n//    wheel always reaches this page.\n// 2. Scrolled past: a fast flick ran the virtual progress to 1 in about five\n//    events and released while the words (on a trailing spring) were only a\n//    third lit. Each event now moves the reading by at most MAX_STEP, and the\n//    page only lets go once the visible words have actually finished.\nconst MAX_STEP=120;const RELEASE_AT=.98;// V8 (2026-10-08, marketing: \"freezes halfway, can't go up or down\"). Measured\n// on the live Broker and Buyer page: a mouse took 14 wheel notches frozen to\n// read 78 words; scrolling up while frozen spent 5 notches with nothing\n// changing on screen (the words never dim, so the counter running back down\n// was invisible); coming back down re-locked from 0 under the already lit\n// words, another 7 notches with nothing changing. Fixed below: scrolling up\n// while locked lets go at once, and a re-lock resumes from the lit words.\n// `trigger` adds \"In flow\", the no lock reveal phones already get, as an\n// option for wide screens too.\nfunction useMedia(query){const[ok,setOk]=useState(false);useEffect(()=>{if(typeof window===\"undefined\"||!window.matchMedia)return;const mq=window.matchMedia(query);setOk(mq.matches);const onChange=e=>setOk(e.matches);mq.addEventListener(\"change\",onChange);return()=>mq.removeEventListener(\"change\",onChange);},[query]);return ok;}// Keeps the maximum progress the source has ever reported, and stops\n// following the source once that maximum reaches 1 (the done latch). Feeds\n// the words a value that only ever climbs, regardless of what the raw\n// scroll/lock progress underneath does.\nfunction useOneWayProgress(source){const latched=useMotionValue(source.get());const doneRef=useRef(false);useEffect(()=>{const sync=v=>{if(doneRef.current)return;const next=Math.max(latched.get(),v);if(next!==latched.get())latched.set(next);if(next>=1)doneRef.current=true;};sync(source.get());return source.on(\"change\",sync);},[source,latched]);return{value:latched,doneRef};}function Word({progress,start,end,hiddenAlpha,children}){const p=useTransform(progress,[start,end],[0,1],{clamp:true});return /*#__PURE__*/_jsx(motion.span,{style:{// @ts-expect-error custom property\n\"--w\":p,color:`color-mix(in srgb, currentColor calc((${hiddenAlpha} + ${1-hiddenAlpha} * var(--w)) * 100%), transparent)`},children:children});}// Type presets, transcribed from DESIGN.md section 2. Each row is\n// desktop / tablet (max 1199) / phone (max 809): size, then line height.\n// Tracking and weight do not change per breakpoint on any of these.\nconst PRESETS={\"Heading 4\":{weight:500,tracking:\"-0.025em\",size:[32,28,30],lh:[1.2,1.2,1.2],tag:\"h3\"},\"Heading 5\":{weight:500,tracking:\"-0.025em\",size:[24,20,18],lh:[1.333,1.4,1.625],tag:\"h3\"},\"Heading 6\":{weight:500,tracking:\"-0.025em\",size:[20,16,18],lh:[1.4,1.5,1.625],tag:\"h3\"},\"Body L\":{weight:400,tracking:\"0em\",size:[18,18,18],lh:[1.625,1.625,1.625],tag:\"p\"},\"Body M\":{weight:400,tracking:\"0em\",size:[16,16,16],lh:[1.75,1.75,1.75],tag:\"p\"},\"Body S\":{weight:400,tracking:\"0em\",size:[14,14,14],lh:[1.625,1.625,1.625],tag:\"p\"}};// Deterministic string hash, identical on server and client. Used for CSS\n// scope classes: React.useId and module counters both came out different in\n// Framer's server render and the browser, so the <style> text mismatched and\n// React fell back to a client re-render of the whole page (React #425/#422).\nfunction stableHash(input){let h=5381;for(let i=0;i<input.length;i++)h=(h<<5)+h+input.charCodeAt(i)|0;return(h>>>0).toString(36);}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function ScrollReadSection(props){const{text,hold,damping,pinAt,fadeIn,fadeBy,pinFrom,color,hiddenAlpha,maxWidth,preset,trigger,style}=props;// The enum can arrive as its option title (\"In flow\"), so match the word.\nconst inFlow=String(trigger??\"\").toLowerCase().includes(\"flow\");const type=PRESETS[preset]??PRESETS[\"Heading 5\"];const Tag=type.tag;const id=stableHash(JSON.stringify([text,maxWidth,color,preset]));const cls=`srs-${id}`;const isCanvas=RenderTarget.current()===RenderTarget.canvas;const reduced=useMedia(\"(prefers-reduced-motion: reduce)\");const wide=useMedia(`(min-width: ${pinFrom}px)`);const locking=!isCanvas&&!reduced&&wide&&!inFlow;const paraRef=useRef(null);// In-flow reveal (fallback): a function of the paragraph's viewport position.\nconst{scrollYProgress:flow}=useScroll({target:paraRef,offset:[`start ${FLOW_START}`,`end ${FLOW_END}`]});// Virtual reading progress, fed by captured wheel and touch while locked.\nconst virt=useMotionValue(0);// V5 (2026-09-08): the words follow a spring on the virtual progress, not\n// the raw wheel ticks, so a fast flick sweeps smoothly across the line\n// instead of jumping word to word.\nconst smooth=useSpring(virt,{stiffness:150,damping:28,mass:.7,restDelta:5e-4});const progress=useMotionValue(0);useEffect(()=>{const src=locking?smooth:flow;progress.set(src.get());return src.on(\"change\",v=>progress.set(v));},[locking,smooth,flow,progress]);// One way, one time: the words read from this latched, monotonic copy,\n// never the raw progress above, and `doneRef` is what tells the lock\n// below to stop engaging once the paragraph has been fully read once.\nconst{value:revealed,doneRef}=useOneWayProgress(progress);// Approach fade: in as the paragraph enters, complete by `fadeBy`.\nconst{scrollYProgress:approach}=useScroll({target:paraRef,offset:[\"start end\",`start ${fadeBy}%`]});const enterOpacity=useTransform(approach,[0,1],[0,1],{clamp:true});const enterY=useTransform(approach,[0,1],[12,0],{clamp:true});// The lock.\n//\n// V5 (2026-09-08). The old lock let the browser scroll and then snapped the\n// page back on every event, which is the jitter Kriss saw on a fast\n// scroll. Now the lock freezes the document itself (overflow hidden on the\n// root, scrollbar width compensated) so the page cannot move at all while\n// the paragraph is read; wheel, touch and keys only feed the reading\n// progress. Release restores scrolling and hands the releasing tick back\n// to the page so momentum carries on. Any native scroll while frozen\n// (anchor jump, find in page) releases. Escape, Home and End release too,\n// and so do a resize or the tab going hidden, so the reader is never\n// trapped.\nuseEffect(()=>{if(!locking||typeof window===\"undefined\")return;const el=paraRef.current;if(!el)return;const root=document.documentElement;let locked=false;let lockY=0;let prevS=window.scrollY;let saved=null;let frames=[];const lockLine=()=>el.getBoundingClientRect().top+window.scrollY-window.innerHeight*pinAt/100;const freeze=()=>{if(saved)return;saved={overflow:root.style.overflow,paddingRight:root.style.paddingRight};const sbw=window.innerWidth-root.clientWidth;root.style.overflow=\"hidden\";if(sbw>0)root.style.paddingRight=`${sbw}px`;frames=Array.from(document.querySelectorAll(\"iframe\")).map(f=>{const prev=f.style.pointerEvents;f.style.pointerEvents=\"none\";return[f,prev];});};const thaw=()=>{if(!saved)return;root.style.overflow=saved.overflow;root.style.paddingRight=saved.paddingRight;saved=null;for(const[f,prev]of frames)f.style.pointerEvents=prev;frames=[];};const release=carry=>{locked=false;thaw();if(carry)window.scrollBy({top:carry,behavior:\"instant\"});prevS=window.scrollY;};const engage=(at,p)=>{locked=true;lockY=at;virt.set(p);window.scrollTo({top:at,behavior:\"instant\"});prevS=at;freeze();};// Advance the reading by a scroll distance. Returns true when it ran off an end.\nconst advance=raw=>{const delta=Math.max(-MAX_STEP,Math.min(MAX_STEP,raw));const next=virt.get()+delta*damping/hold;if(next>=1&&delta>0){virt.set(1);return true;}if(next<=0&&delta<0){virt.set(0);return true;}virt.set(Math.min(1,Math.max(0,next)));return false;};const step=(delta,e)=>{// One way, one time: once the paragraph has been fully read, the\n// lock never engages again, forward or backward.\nif(doneRef.current)return;if(locked){if(e&&e.cancelable)e.preventDefault();// Forward: hold the page until the words on screen have\n// caught up with the reading, then this tick lets go.\n// V8: up lets go at once. The words never dim, so reading\n// backward only spent wheel with nothing changing on screen.\nif(delta<0){release(delta);return;}if(advance(delta)&&smooth.get()>=RELEASE_AT)release(delta);return;}const s=window.scrollY;const line=lockLine();// Forward only: scrolling up into the paragraph no longer\n// re-locks and reads backward (removed with the backward reveal).\nif(delta>0&&s<line&&s+delta>=line&&virt.get()<1){if(e&&e.cancelable)e.preventDefault();// V8: resume from the words already lit, not from 0.\nengage(line,revealed.get());}};const onWheel=e=>{if(e.ctrlKey)return;// Unlocked and mid gesture: the browser will scroll, the scroll path below catches the crossing.\nif(!locked&&!e.cancelable)return;const unit=e.deltaMode===1?16:e.deltaMode===2?window.innerHeight:1;step(e.deltaY*unit,e);};let lastY=null;const onTouchStart=e=>{lastY=e.touches[0]?.clientY??null;};const onTouchMove=e=>{if(lastY===null)return;const y=e.touches[0]?.clientY??lastY;const d=lastY-y;lastY=y;if(!locked&&!e.cancelable)return;step(d,e);};const onTouchEnd=()=>{lastY=null;};const onKey=e=>{if(!locked)return;const t=e.target;if(t&&/^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName))return;const page=window.innerHeight*.8;let d=0;if(e.key===\"ArrowDown\")d=120;else if(e.key===\"ArrowUp\")d=-120;else if(e.key===\"PageDown\"||e.key===\" \")d=page;else if(e.key===\"PageUp\")d=-page;else if(e.key===\"Escape\"||e.key===\"End\"||e.key===\"Home\"){release(0);return;}else return;e.preventDefault();step(d,null);};const onScroll=()=>{const s=window.scrollY;if(doneRef.current){prevS=s;return;}if(locked){// The document is frozen, so any scroll is an anchor jump or find in page: let go.\nif(Math.abs(s-lockY)>.5)release(0);prevS=s;return;}const line=lockLine();// Crossed the line by a scroll we could not cancel (trackpad\n// momentum, keys). Forward only, per the one-way rule: the\n// backward branch that used to re-lock and read from the end\n// down to the start on a scroll up crossing is removed.\nif(prevS<line&&s>=line&&virt.get()<1&&s-line<window.innerHeight*.6){const over=s-line;engage(line,revealed.get());if(advance(over))release(over);}else if(s>line+window.innerHeight*.6&&virt.get()<1){// Bypassed: the reader flew past the line faster than the lock\n// could catch. Never leave the paragraph unread and invisible\n// below them; the spring sweeps it in. (Kriss 2026-09-08: \"works\n// scrolling up, gone scrolling down\".)\nvirt.set(1);}prevS=window.scrollY;};const onLeave=()=>{if(locked)release(0);};const onVis=()=>{if(document.visibilityState===\"hidden\"&&locked)release(0);};window.addEventListener(\"wheel\",onWheel,{passive:false});window.addEventListener(\"touchstart\",onTouchStart,{passive:true});window.addEventListener(\"touchmove\",onTouchMove,{passive:false});window.addEventListener(\"touchend\",onTouchEnd,{passive:true});window.addEventListener(\"keydown\",onKey);window.addEventListener(\"scroll\",onScroll,{passive:true});window.addEventListener(\"resize\",onLeave);document.addEventListener(\"visibilitychange\",onVis);return()=>{window.removeEventListener(\"wheel\",onWheel);window.removeEventListener(\"touchstart\",onTouchStart);window.removeEventListener(\"touchmove\",onTouchMove);window.removeEventListener(\"touchend\",onTouchEnd);window.removeEventListener(\"keydown\",onKey);window.removeEventListener(\"scroll\",onScroll);window.removeEventListener(\"resize\",onLeave);document.removeEventListener(\"visibilitychange\",onVis);thaw();};},[locking,hold,damping,pinAt,virt,smooth,revealed]);const paragraphs=useMemo(()=>(text||\"\").split(/\\n\\s*\\n/).map(p=>p.trim()).filter(Boolean).map(p=>p.split(/(\\s+)/)),[text]);const wordCount=paragraphs.reduce((n,toks)=>n+toks.filter(t=>t.trim()).length,0);const denom=Math.max(1,wordCount-1+FEATHER_WORDS);let cursor=0;const blocks=paragraphs.map((toks,bi)=>/*#__PURE__*/_jsx(Tag,{className:`${cls}-p`,children:toks.map((tok,i)=>{if(!tok.trim())return /*#__PURE__*/_jsx(Fragment,{children:tok},i);const w=cursor++;if(isCanvas||reduced)return /*#__PURE__*/_jsx(Fragment,{children:tok},i);return /*#__PURE__*/_jsx(Word,{progress:revealed,start:w/denom,end:Math.min(1,(w+FEATHER_WORDS)/denom),hiddenAlpha:hiddenAlpha,children:tok},i);})},bi));const css=`\n.${cls}-wrap{display:flex;flex-direction:column;gap:24px;align-items:center;width:100%;max-width:${maxWidth}px;margin:0 auto;color:${color};text-align:center}\n.${cls}-p{margin:0;font-family:\"Inter\",\"Inter Placeholder\",sans-serif;font-weight:${type.weight};font-size:${type.size[0]}px;line-height:${type.lh[0]};letter-spacing:${type.tracking};text-wrap:balance}\n@media (max-width:1199px){.${cls}-p{font-size:${type.size[1]}px;line-height:${type.lh[1]}}}\n@media (max-width:809px){.${cls}-p{font-size:${type.size[2]}px;line-height:${type.lh[2]}}}\n`;// V8: the approach fade belongs to the paragraph, not to the lock, so In\n// flow keeps it on wide screens too (phones never had it).\nconst fading=!isCanvas&&!reduced&&wide&&fadeIn;return /*#__PURE__*/_jsxs(\"div\",{style:{...style,width:\"100%\"},children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:css}}),/*#__PURE__*/_jsx(motion.div,{ref:paraRef,className:`${cls}-wrap`,\"aria-label\":text,style:fading?{opacity:enterOpacity,y:enterY}:undefined,children:blocks})]});}ScrollReadSection.defaultProps={preset:\"Heading 5\",text:\"As trailblazers, we have been at the forefront of real estate technologies and innovation for the past 18 years.\",hold:900,damping:.7,pinAt:35,fadeIn:true,fadeBy:78,pinFrom:810,color:\"var(--token-409a55a4-744e-4ca7-920e-a73c9adeefc4, #ffffff)\",hiddenAlpha:.14,maxWidth:1180,trigger:\"lock\"};addPropertyControls(ScrollReadSection,{trigger:{type:ControlType.Enum,title:\"Trigger\",options:[\"lock\",\"flow\"],optionTitles:[\"Lock\",\"In flow\"],displaySegmentedControl:true,description:\"Lock freezes the page while it is read. In flow lights the words as the paragraph passes 85% to 45% of the screen, no freeze.\"},preset:{type:ControlType.Enum,title:\"Type\",options:[\"Heading 4\",\"Heading 5\",\"Heading 6\",\"Body L\",\"Body M\",\"Body S\"],displaySegmentedControl:false,description:\"Text style preset from DESIGN.md. Body presets also switch the tag to <p>.\"},text:{type:ControlType.String,title:\"Text\",displayTextArea:true},hold:{type:ControlType.Number,title:\"Read length\",min:100,max:3e3,step:50,unit:\"px\",description:\"Wheel distance it takes to read the whole paragraph.\",hidden:p=>String(p.trigger??\"\").toLowerCase().includes(\"flow\")},damping:{type:ControlType.Number,title:\"Damping\",min:.1,max:1.5,step:.05,description:\"How far each wheel tick moves the reading. Lower is slower.\",hidden:p=>String(p.trigger??\"\").toLowerCase().includes(\"flow\")},pinAt:{type:ControlType.Number,title:\"Lock at\",min:0,max:80,step:1,unit:\"%\",description:\"Viewport line (from the top) where the paragraph locks the page.\",hidden:p=>String(p.trigger??\"\").toLowerCase().includes(\"flow\")},fadeIn:{type:ControlType.Boolean,title:\"Fade in\"},fadeBy:{type:ControlType.Number,title:\"Fade by\",min:40,max:100,step:1,unit:\"%\",description:\"Viewport line by which the fade in is complete. Lower is later.\",hidden:p=>!p.fadeIn},pinFrom:{type:ControlType.Number,title:\"Lock from\",min:0,max:1600,step:10,unit:\"px\",description:\"Viewport width below which the page never locks.\",hidden:p=>String(p.trigger??\"\").toLowerCase().includes(\"flow\")},color:{type:ControlType.Color,title:\"Color\"},hiddenAlpha:{type:ControlType.Number,title:\"Hidden\",min:0,max:1,step:.02,description:\"Opacity of words not yet read.\"},maxWidth:{type:ControlType.Number,title:\"Max width\",min:320,max:1600,step:10,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollReadSection\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollReadSection.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{motion,useScroll,useMotionValueEvent,useReducedMotion,useTransform,useAnimationControls}from\"framer-motion\";/**\n * Workflow Features, sticky-pinned split section, sibling of StickyFeatures.\n * Desktop motion is SCROLL-LINKED (scrubbed): the next mockup card physically\n * climbs up under your scroll onto a visible deck (the old cards shrink back\n * and keep peeking above it), and the next copy block climbs in beside it\n * while the old one drifts out. Every pixel tracks scroll, reversible by\n * construction. Mobile keeps the discrete Kowalski swap. Image / HTML\n * upload system. Mechanic chosen from variations-stack-scrub.html (combo\n * of deck mockup + climbing text).\n *\n * V3 (S5b, 2026-09-03): the panel is no longer a card. No shadow, no border,\n * no fill: the visual sits on the section ground, anchored top left, and its\n * right edge dissolves into the ground through a mask gradient (Edge fade,\n * width exposed). Loading is PARENT DRIVEN: the parent knows from the scroll\n * value which row is engaged and posts the entrance into the iframe over a\n * ready handshake; the iframe never waits on its own observer, is never\n * remounted to replay, and the next row's document is preloaded so the\n * switch is instant. Image rows gain a true two axis cover (\"fill\").\n *\n * V4 (2026-09-04): one mechanic on every tier. Tablet and phone stack the\n * column (heading, copy, deck) but keep the scroll linked deck and climbing\n * copy instead of the old crossfade, take the same stage pads as desktop, and\n * the gutter is min(1180, 100vw - 40) everywhere. Type tiers follow the\n * viewport (810 / 1200). Description is body copy again; the pad below it\n * equals the pad above the title.\n *\n * Placement: page level (or frames WITHOUT overflow hidden). An overflowing\n * ancestor kills position: sticky.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 1200\n */// Replacement mockup files. Framer's File control refuses a value set\n// through the agent API, so a re-uploaded file is mapped here from the asset\n// it replaces (same approach as the Feature Switcher's MOCKUP_URLS).\n// 2026-09-11: Portal Activity dashboard, title \"copy\" suffix removed and the\n// inner card now fills the host card edge to edge (Kriss, Figma 1:34067).\nconst MOCK_REPLACEMENTS={\"8ImmAr3ugg64JOwYAo9JtirrHY\":\"https://framerusercontent.com/assets/GirrldKYcQz7Qn59GzaEGPm5bs.html\",\"uCsfUH7VXWwd4zDBXCvmckhI.html\":\"https://framerusercontent.com/assets/9swi2HJ0PmP0AI1itwoxNcAf0UQ.html\",\"gfjLDPe0Q3V3uit5UEtrgJpnwHA.html\":\"https://framerusercontent.com/assets/smKKKP1KQvjsnedAyHYA9Mdh1U.html\",\"odalfSP6entLUjpJo2Q50jSp8k.html\":\"https://framerusercontent.com/assets/5Exeu0Jc4X96Ndav1srEUxaG13o.html\",\"uVdHvng06F1hAYQrlwylXCE4f0.html\":\"https://framerusercontent.com/assets/QeJt309XwVacVig188rfDPsoSz4.html\",\"2g7MQKkKNVUsDCRLAK3Hfk2SCE.html\":\"https://framerusercontent.com/assets/IIanusY76KF0RiX32YbzL7TzXuE.html\",\"jzCvSCFPPEqvdMbRB25fUEzCk0E.html\":\"https://framerusercontent.com/assets/t7OgPxe8d8Lak5GN1RH2wQUXo.html\",\"ZdO6Ijf7r0FFlBNvfxk3PMs.html\":\"https://framerusercontent.com/assets/xCdTigGAJuWoqnuH2S6Scb18rbk.html\",\"OkxUdJrNJBn6AjKGw2IWTveJW4.html\":\"https://framerusercontent.com/assets/dE3IS6TrQDid2ee8lfhRxhCjs.html\",\"LijqHx4ISjfuvPSdaDLCpU1sxc.html\":\"https://framerusercontent.com/assets/014grACjNQ9wcBSZWz5nnULduI.html\",\"K4IPRQQMYw4flLBlMtYuTWUMw.html\":\"https://framerusercontent.com/assets/YmPdJK2ff3VOfRUqfgULTNUeUA.html\",\"xKjjIxvQJp3hTdW3NW7JTSUpkZM.html\":\"https://framerusercontent.com/assets/dB8xZwt57bAGlslFBts2m9lTUQ.html\"};function resolveMock(url){for(const key in MOCK_REPLACEMENTS)if(url.includes(key))return MOCK_REPLACEMENTS[key];return url;}const COLORS={navy:\"#16234A\",ink:\"var(--token-ad2f245c-5aa9-47bd-96b6-b928c2e89d93, rgb(0, 0, 0))\",body:\"var(--token-045b63d7-04f2-42aa-8d77-791df8a68e26, rgba(0, 0, 0, 0.5))\",track:\"#E4E7EC\",// DESIGN.md `border-card` token: rgba(0,0,0,0.05) for page-level cards\nborder:\"rgba(0, 0, 0, 0.05)\"};// Kowalski fast cut at 1.25x (exit 160ms / enter 220ms, delay 60ms, 12px drift)\nconst SPEED=1.25;const EXIT={duration:.16/SPEED,ease:[0,0,.2,1]};const ENTER={duration:.22/SPEED,delay:.06/SPEED,ease:[0,0,.2,1]};const DRIFT=12;// cover overscale: a hair past the exact cover scale so subpixel rounding\n// can never leave a hairline of card background at an edge\nconst COVER_BLEED=.001;// probe viewport for reading a mockup's design size out of its own #stage\n// when the source does not declare DESIGN_W / DESIGN_H in the expected form\nconst PROBE_W=1600;const PROBE_H=1e3;// Scroll-linked deck (from variations-stack-scrub.html, combo panel):\n// the climber travels 115% of its height; cards beneath tuck into a deck,\n// peeking DECK_PEEK px per depth. Translation only, no scale, see below.\nconst DECK_PEEK=16;// ZOOM REMOVED 2026-09-17. These were 0.05 and 0.04, and they were the cause\n// of the intermittent blur on every HTML mockup in a sticky section.\n//\n// A browser rasterises an iframe once, at one size. A CSS transform does not\n// redraw it, it stretches the bitmap it already has. Because these two\n// constants are scrubbed to scroll, the wrapper above each mockup sat at a\n// different fractional scale on every frame of every scroll, so the mockup was\n// a stretched copy of itself the whole way down, and only snapped sharp where\n// the scale happened to land on exactly 1, or when a zoom forced a repaint.\n// Measured live on /platforms/inventory-management before this change, one\n// wrapper across nine scroll positions: 1.0400, 1.0347, 1.0114, 1.0000,\n// 0.9890, 0.9598. The mockup's own scale never moved; this did.\n//\n// translateY and opacity are kept, because moving or fading a bitmap does not\n// resample it. Only scaling does. If the deck's depth cue is ever wanted back,\n// the fix is not to restore these: it is to rasterise the mockup larger than\n// it displays so that every scroll position is a downscale.\nconst TEXT_TRAVEL=96;const TEXT_DRIFT=-32;// Edge fade: the last FADE_DEFAULT px of the panel's right edge dissolve to\n// transparent (mask, not paint), so the visual blends into whatever ground\n// the section has. Exposed as the `fadeWidth` control.\nconst FADE_DEFAULT=120;// The deck wrapper is padded by this much on the left, top and bottom and\n// pulled back out by the same negative margin, so the climb and the tuck\n// never cross the wrapper's box (a mask clips to its box).\nconst DECK_PAD=28;// Copy column: the pad above the title equals the pad below the description\n// (9a, 2026-09-04), so the copy sits symmetrically in the row.\nconst COPY_PAD=64;// Phone: never render a mockup below half its design scale; crop instead\nconst PHONE_MIN_SCALE=.5;// hidden layers keep a trace of opacity so the GPU rasterizes them up front;\n// a card at true opacity 0 gets photographed mid-scroll and stutters\nconst HIDDEN=.001;const clamp01=v=>Math.min(1,Math.max(0,v));// segment math: one scroll segment per swap; the first `scrub` fraction of a\n// segment is the scrubbed climb, the rest is the hold\nfunction seg(p,N,scrub){const s=Math.min(N-1-1e-6,Math.max(0,p)*(N-1));const idx=Math.floor(s);const f=s-idx;return{idx,f,climb:clamp01(f/scrub)};}/** One mockup panel in the scroll-linked deck. The deck tuck is the demo's\n * center shrink. V3: no shadow layers at all (the panel is not a card any\n * more, see the header note); hidden layers keep a trace of opacity so their\n * textures exist before the first scroll. */function MockLayer({i,p,N,scrub,reduced,style,children}){const activeOf=v=>{const{idx,climb}=seg(v,N,scrub);return climb>=1?idx+1:idx;};const transform=useTransform(p,v=>{if(reduced)return\"translateZ(0)\";const{idx,climb}=seg(v,N,scrub);if(i>idx+1)return\"translateY(115%) translateZ(0)\";if(i===idx+1)return`translateY(${(1-climb)*115}%) translateZ(0)`;// tuck-back only: the old card visibly recedes during the climb but\n// ends fully covered by the newcomer, no peeking pile edges\nconst d=idx-i+climb;return`translateY(${(-DECK_PEEK*d).toFixed(2)}px) translateZ(0)`;});const opacity=useTransform(p,v=>{const{idx,climb}=seg(v,N,scrub);if(reduced)return i===activeOf(v)?1:HIDDEN;if(i>idx+1)return HIDDEN;if(i===idx+1)return climb>0?1:HIDDEN;// buried cards fade out as the cover completes, otherwise every\n// buried card's shadow keeps leaking past the top card's edges and\n// the stack reads heavier with each section\nconst d=idx-i+climb;return Math.max(HIDDEN,1-clamp01((d-.7)/.3));});const zIndex=useTransform(p,v=>{const{idx}=seg(v,N,scrub);return i===idx+1?20:10-(idx-i);});return /*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",inset:0,transform,opacity,zIndex,willChange:\"transform, opacity\",pointerEvents:style?.pointerEvents},children:/*#__PURE__*/_jsx(\"div\",{style:{...style,position:\"absolute\",inset:0,pointerEvents:undefined},children:children})});}/** One copy block beside the deck. Sequenced, not crossfaded: the old block\n * exits fully during the first ~45% of the climb, the new one climbs in\n * after 40%, so two paragraphs never sit legibly on top of each other. */function CopyLayer({i,p,N,scrub,reduced,style,children}){const phases=v=>{const{idx,f}=seg(v,N,scrub);return{idx,exitP:clamp01(f/(scrub*.45)),enterP:clamp01((f-scrub*.4)/(scrub*.6))};};const transform=useTransform(p,v=>{if(reduced)return\"translateZ(0)\";const{idx,exitP,enterP}=phases(v);if(i===idx)return`translateY(${TEXT_DRIFT*exitP}px) translateZ(0)`;if(i===idx+1)return`translateY(${(1-enterP)*TEXT_TRAVEL}px) translateZ(0)`;return`translateY(${TEXT_TRAVEL}px) translateZ(0)`;});const opacity=useTransform(p,v=>{const{idx,exitP,enterP}=phases(v);if(reduced){const{climb}=seg(v,N,scrub);return i===(climb>=1?idx+1:idx)?1:HIDDEN;}if(i===idx)return Math.max(HIDDEN,1-exitP);if(i===idx+1)return Math.max(HIDDEN,Math.min(1,enterP*1.3));return HIDDEN;});const zIndex=useTransform(p,v=>{const{idx}=seg(v,N,scrub);return i===idx+1?2:1;});return /*#__PURE__*/_jsx(motion.div,{style:{...style,transform,opacity,zIndex},children:children});}const WHEEL_FORWARDER=\"<script>(function(){addEventListener('wheel',function(e){try{parent.postMessage({__sfWheel:e.deltaY},'*')}catch(_){}},{passive:true})})()</script>\";// Last-resort fill for the path where the design size is still unknown (or\n// the card has not been measured yet): the mockup files fit themselves with\n// `scale(min(w/DESIGN_W, h/DESIGN_H))`, a CONTAIN, which is exactly what\n// letterboxes them. This runs AFTER the file's own fit() on every resize and\n// re-fits #stage with max() instead, so even the fallback iframe fills.\nconst COVER_FIT=\"<script>(function(){function f(){var s=document.getElementById('stage');if(!s||!s.offsetWidth||!s.offsetHeight)return;var k=Math.max(innerWidth/s.offsetWidth,innerHeight/s.offsetHeight);s.style.transform='scale('+k+')'}addEventListener('resize',f);addEventListener('load',f);setTimeout(f,0);setTimeout(f,250);setTimeout(f,1200)})()</script>\";/* ══════════════════ loading + entrance, parent driven (V3) ══════════════════\n * What was wrong in V2, read off the code and the mockup files:\n *\n * 1. THREE STACKED LAZY GATES ON A CLIPPED BOX. The fetch waited on an\n *    IntersectionObserver over the card's own box (rootMargin 600px), the\n *    entrance waited on a second observer over the same box (threshold 0.15),\n *    and the first activation of every row after the first REMOUNTED its\n *    iframe (`key={gen}`) to replay the entrance. The next card sits at\n *    translateY(115%) under the sticky stage's `overflow: hidden`, and an\n *    intersection is computed on the CLIPPED rect, so both observers read\n *    \"not intersecting\" until the card had physically climbed into view.\n *    The fetch, the parse (up to 600KB) and the reveal therefore all started\n *    at the moment the card began to climb, and the remount threw the parsed\n *    document away at exactly that moment. Result: a white card climbing in,\n *    content arriving after it had fully arrived, or never when the parse\n *    was slow enough that the reveal message hit the previous document.\n *\n * 2. THE FILE'S OWN CLOCK. Every mockup gates its entrance on\n *    `#stage.is-loaded`, added from its own IntersectionObserver (threshold\n *    0.2) with a 2500ms setTimeout fallback. Inside the iframe `#stage`\n *    always intersects (the iframe IS the viewport), so the class was added\n *    at load and only REVEAL_GATE's MutationObserver stopped it painting.\n *\n * The V3 contract:\n *   PARENT decides. It knows from the scroll value which row is engaged\n *   (the row on stage, or the row climbing onto it) and bumps that row's\n *   `play` generation. Nothing in the iframe observes anything.\n *   IFRAME answers. The injected gate posts `__sfReady` as soon as its\n *   script runs (and `load` counts as ready too, for a remote document that\n *   carries no gate). The parent posts `__sfReveal` once per `play` value,\n *   the moment both \"ready\" and \"play\" hold, whichever comes last, so a\n *   document that loads late still plays, and a row that engages before its\n *   document exists plays the instant the document is ready.\n *   ONCE per document (2026-09-18). A row's `play` goes 0 -> 1 on its first\n *   engagement and never moves again, so scrubbing back and forth across a\n *   release point shows the arrived card, exactly like loaded content stays\n *   loaded. Measured on the published site: every false -> true edge of\n *   engagement used to bump `play`, so a down, up, down scrub re-posted\n *   `__sfReveal` onto a fully rendered card (row 1 at the 55% point on the\n *   way back down, row 0 the moment a scroll back crossed the segment\n *   boundary), which is the \"fully rendered, then re-animates\" defect. The\n *   gate's replay path stays for safety but nothing here drives it.\n *   No iframe is ever remounted after it first mounts.\n *   PRELOAD. The active row and both neighbours fetch and mount as soon as\n *   the SECTION (not the card) is within NEAR_MARGIN; every other row\n *   follows PRELOAD_REST_MS after the section is armed. The switch to the\n *   next row is therefore a class toggle on a parsed document, not a fetch.\n */// Fetch the markup once the SECTION is this far outside the viewport.\nconst NEAR_MARGIN=\"600px\";// Rows beyond the active one's neighbours mount this long after arming.\nconst PRELOAD_REST_MS=1500;// Cap the parsed-markup cache. The biggest of these files is ~600KB, so an\n// unbounded map is a real memory leak on a long session.\nconst DOC_CACHE_MAX=8;const DOC_CACHE=new Map;const DOC_INFLIGHT=new Map;const GEO_CACHE=new Map;function geo(src){let g=GEO_CACHE.get(src);if(!g){g={};GEO_CACHE.set(src,g);}return g;}// Some mockup files point @font-face at a relative Inter file that only\n// existed where they were authored, so they fell back to Roboto. Swap that\n// rule for the Google Fonts Inter the other mockups already load.\nconst INTER_CSS=\"https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap\";function fixMockupFonts(t){const dead=/@font-face\\s*{[^}]*url\\(\\s*['\"]?(?!https?:|data:)[^)]*Inter[^)]*\\)[^}]*}/gi;const out=t.replace(dead,\"\");if(out===t)return t;const link=`<link rel=\"stylesheet\" href=\"${INTER_CSS}\">`;return/<\\/head>/i.test(out)?out.replace(/<\\/head>/i,link+\"</head>\"):link+out;}/** One request and one cache entry per URL, however many instances ask.\n * Retries with backoff ([0, 400, 1400, 3000]) because one dropped request\n * used to mean a permanently blank card. */function loadDoc(src){const hit=DOC_CACHE.get(src);if(hit!=null)return Promise.resolve(hit);const inflight=DOC_INFLIGHT.get(src);if(inflight)return inflight;const backoff=[400,1400,3e3];const attempt=n=>fetch(src).then(r=>{if(!r.ok)throw new Error(String(r.status));return r.text().then(fixMockupFonts);}).catch(e=>{if(n>=backoff.length)throw e;return new Promise((res,rej)=>setTimeout(()=>attempt(n+1).then(res,rej),backoff[n]));});const p=attempt(0).then(t=>{DOC_INFLIGHT.delete(src);if(DOC_CACHE.size>=DOC_CACHE_MAX){const oldest=DOC_CACHE.keys().next().value;if(oldest!==undefined)DOC_CACHE.delete(oldest);}DOC_CACHE.set(src,t);return t;},e=>{DOC_INFLIGHT.delete(src);throw e;});DOC_INFLIGHT.set(src,p);return p;}/** A URL we could not fetch (CORS, opaque host) can still be framed directly\n * IF its host allows framing. The Framer asset CDN sends\n * `x-frame-options: DENY`, so it is excluded and gets the failure card. */function canFrameRemote(src){try{const u=new URL(src,location.href);if(u.protocol!==\"http:\"&&u.protocol!==\"https:\")return false;return!/framerusercontent\\.com$/i.test(u.hostname);}catch(e){return false;}}/** True once `ref` is within `margin` of the viewport, and stays true.\n * Canvas/export/thumbnail are true immediately. A browser that never\n * delivers a first callback must not leave the section blank forever. */function useNear(ref,margin=NEAR_MARGIN){const[near,setNear]=React.useState(()=>RenderTarget.current()!==RenderTarget.preview);React.useEffect(()=>{if(near)return;const el=ref.current;if(!el||typeof IntersectionObserver===\"undefined\"){setNear(true);return;}let reported=false;const io=new IntersectionObserver(entries=>{reported=true;if(entries.some(e=>e.isIntersecting)){io.disconnect();setNear(true);}},{rootMargin:margin});io.observe(el);const rescue=setTimeout(()=>{if(!reported){io.disconnect();setNear(true);}},1500);return()=>{clearTimeout(rescue);io.disconnect();};},[near,margin]);return near;}/** The card's frame is always there; only its contents animate.\n *\n * Every mockup gates its whole `#stage` (the white rounded surface itself)\n * behind `is-loaded`: `#stage { opacity: 0; translate: 0 16px }` until the\n * class lands. While the gate holds the class off, the entire card is\n * therefore invisible, frame included, so a card climbing onto the stage\n * looked transparent and empty and nothing read as stacking. This pins the\n * frame opaque and untranslated from the first paint and leaves every inner\n * `#stage.is-loaded ...` rule alone, so the entrance is now the contents\n * arriving inside a frame that was already there. Only `opacity` and\n * `translate` are touched: `transform` is how the file (and COVER_FIT) fit\n * the stage, so it must stay writable. Injected here rather than edited into\n * the 35 uploaded files, so it covers every mockup, present and future.\n * Measured 2026-09-18 in a two-card harness against popup-3, pricing-history\n * and heatmap: stage opacity 1 before the cue, inner elements 0 -> 1 only\n * after it. */const FRAME_ALWAYS=\"<style>#stage{opacity:1!important;translate:none!important}</style>\";/** Suppress-and-replay gate for the mockup's own `#stage.is-loaded`\n * entrance, injected into the copy we embed; the uploaded file itself is\n * untouched, so opening it directly still animates on its own.\n *\n * Protocol (parent <-> iframe, postMessage, any origin):\n *   iframe -> parent  { __sfReady: 1 }         the gate is listening\n *   parent -> iframe  { __sfReveal: 1, __sfInstant?: bool }\n *                                               play (or replay) the entrance\n *   iframe -> parent  { __sfPlayed: 1, __sfReplay: bool }\n *                                               the class is on, for tests\n *\n * A MutationObserver is the whole net for the file's own attempts: its\n * callback runs at the microtask checkpoint, before style recalc and paint,\n * so the class is gone again before any frame can render it, and it catches\n * classList.add, .toggle, className= and setAttribute alike. The file's own\n * IntersectionObserver and timeouts still run; they just no longer decide\n * anything. The 12s self-reveal is the last resort against a dropped\n * message; a reveal after it lands as a replay, so it can never double. */const REVEAL_GATE=\"<script>(function(){\"+// Registered FIRST, before a single other statement runs, so a parent\n// message arriving the instant this script starts executing is never\n// missed. reveal/S/O below are only referenced, not invoked, here; a\n// message event always lands on a later task than the one still running\n// this script, by which point every var below has its real value.\n\"addEventListener('message',function(e){var d=e&&e.data;if(!d)return;\"+// The parent answering __sfReady proves it is alive and simply has not\n// engaged this card yet, so the 2.5s fallback is no longer protecting\n// against anything and must stand down. Without this a deck mockup\n// reveals itself 2.5s after page load, long before it is ever scrolled\n// to, and the real reveal then lands as a REPLAY on an already finished\n// card. Measured on the live site with no scrolling at all: held at\n// t=2000ms, revealed by t=3000ms, on cards nowhere near the viewport.\n\"if(d.__sfAlive){try{clearTimeout(LAST)}catch(_){}return}\"+\"if(!d.__sfReveal)return;\"+\"if(document.readyState==='loading')addEventListener('DOMContentLoaded',function(){reveal(d.__sfInstant)});\"+\"else reveal(d.__sfInstant)},false);\"+\"var K='is-loaded',A=false,S=[],O=null,LAST=0;\"+\"function post(m){try{parent.postMessage(m,'*')}catch(_){}}\"+\"function n(e){if(e&&S.indexOf(e)<0)S.push(e)}\"+\"function sweep(){if(A)return;var h=document.getElementsByClassName(K),a=[],i;\"+\"for(i=0;i<h.length;i++)a.push(h[i]);\"+\"for(i=0;i<a.length;i++){n(a[i]);try{a[i].classList.remove(K)}catch(_){}}}\"+\"try{O=new MutationObserver(sweep);O.observe(document.documentElement,\"+\"{subtree:true,childList:true,attributes:true,attributeFilter:['class']})}catch(_){}\"+\"function flat(){var st=document.createElement('style');\"+\"st.textContent='*,*::before,*::after{transition-duration:0s!important;transition-delay:0s!important;animation-duration:.001s!important;animation-delay:0s!important}';\"+\"(document.head||document.documentElement).appendChild(st);return st}\"+\"function flush(){void document.documentElement.offsetWidth}\"+\"function add(inst,replay){var st=inst?flat():null,i;var s=document.getElementById('stage');if(s)n(s);\"+\"for(i=0;i<S.length;i++){try{S[i].classList.add(K)}catch(_){}}\"+\"if(st){flush();setTimeout(function(){try{st.remove()}catch(_){}},80)}\"+\"post({__sfPlayed:1,__sfReplay:!!replay})}\"+\"function reveal(inst){if(A){replay(inst);return}A=true;if(O){O.disconnect();O=null}add(inst,false)}\"+\"function replay(inst){var st=flat(),i;for(i=0;i<S.length;i++){try{S[i].classList.remove(K)}catch(_){}}\"+\"flush();try{st.remove()}catch(_){}flush();add(inst,true)}\"+\"function ready(){post({__sfReady:1})}\"+\"if(document.readyState==='loading')addEventListener('DOMContentLoaded',ready);else ready();\"+// last resort: never leave a mockup permanently un-entered because every\n// retry was dropped or a script threw. Shortened from 12s: the parent\n// now retries every 250ms for 3s once ready, so 12s of silence after\n// ready means the parent itself never ran, not a single lost packet.\n\"LAST=setTimeout(function(){reveal(true)},2500)})()</script>\";/** The entrance itself, injected into every mockup so one decision governs\n * every placement rather than 36 uploaded files each carrying their own.\n *\n * Settled treatment (2026-09-17, timing harness at\n * page-redesigns/deck-entrance-timing, not to be reopened): released at 55%\n * of the climb, structure first then data, stepped stagger, LIFT.\n *\n * STEPPED. The element count must not drive the beat. Six beats, 80ms apart,\n * whether a mockup has 3 blocks or 80, so the rhythm never becomes a shimmer.\n *\n * LIFT. ease-out-expo, 10px of travel, 0.985 to 1 scale, and opacity fully\n * up at 50% of the duration so each block is solid while it settles.\n *\n * COVERAGE (2026-09-18). The files only ever authored entrances for their\n * repeated rows and tiles (80 of 2136 elements on the heatmap, 9 of 123 on\n * pricing history) and the whole card fade that used to carry the sense of\n * arrival is gone by design (FRAME_ALWAYS keeps the frame solid). So this\n * now selects the mockup's CONTENT BLOCKS itself, hides them at load, and\n * lifts them in at the cue. The selection rule, walking down from #stage:\n *   chrome    an element hugging the stage's top or bottom edge, at least\n *             85% as wide and at most 18% as tall as the stage, or hugging\n *             the left or right edge, at least 85% as tall and at most 30%\n *             as wide (checked within three levels of the stage). Skipped\n *             entirely, it never moves. A chrome candidate that contains\n *             authored elements is not chrome.\n *   authored  every element the file gates behind is-loaded (read off its\n *             own stylesheet rules). Data. Its ancestors are only walked,\n *             never taken as blocks, so nothing animates twice.\n *   small     an element at most 6% of the stage area is one structure\n *             block, whatever is inside it (a tab row, a column header).\n *   repeated  three or more visible siblings sharing tag and first class,\n *             each at most 20% of the stage area, are data items, one each.\n *             A group over 96 items collapses to its parent instead.\n *   bounded   an element at most 20% of the stage area with a background,\n *             border or shadow is one structure block.\n *   leaf      anything else with no visible children is a structure block.\n *             Small SVGs (under 4% of the stage) are ignored.\n *   Anything larger is walked into. Blocks are only ever taken at distinct\n *   levels, so a parent and its child are never both animated.\n * Beats: structure in reading order over beats 0 and 1 (0 to 3 when the\n * file has no data at all), data in DOM order over beats 2 to 5, authored\n * furniture (the keyframe a file applies to fewer elements) finishes at 0.\n * Measured in the harness at 1440x900: heatmap 10 structure + 80 data with\n * a peak of 20 elements mid-fade in any one frame, pricing history 3 + 12\n * peak 3, main-2 1 + 8 peak 8, popup-2 4 + 6 peak 2.\n * Safety: selection over 160 blocks, zero generic blocks, an instant\n * reveal, or any exception falls back to the authored-only behaviour and\n * unhides everything it hid. Runs once per document; the gate's replay\n * path is ignored. Not injected into the offscreen probe iframes.\n * The plain-JS source of this string is at\n * html-mockups/assets/contract-tmp, see wf-lift-harness.mjs. */const ENTRANCE_LIFT=\"<script>\"+\"(function(){\"+\"if(matchMedia('(prefers-reduced-motion: reduce)').matches)return;\"+\"var BEATS=6,STEP=80,DUR=460,DY=10,SC=0.985,OPA=0.5,E='cubic-bezier(0.16,1,0.3,1)';\"+\"var MAXN=160,GROUPCAP=96,BLOCKMAX=0.2,SMALL=0.06,REPEAT=3;\"+\"var S=[],D=[],A=[],HID=[],sel=false;\"+\"function rect(e){try{return e.getBoundingClientRect()}catch(_){return null}}\"+\"function vis(e){var cs=getComputedStyle(e);if(cs.display==='none'||cs.visibility==='hidden')return false;var r=rect(e);return !!r&&r.width>0&&r.height>0}\"+\"function kids(e){var out=[],c=e.children,i,k;for(i=0;i<c.length;i++){k=c[i];if(/^(SCRIPT|STYLE|TEMPLATE|NOSCRIPT)$/.test(k.tagName))continue;if(vis(k))out.push(k)}return out}\"+\"function sig(e){return e.tagName+'.'+((e.getAttribute('class')||'').trim().split(/\\\\s+/)[0]||'')}\"+\"function bounded(e){var cs=getComputedStyle(e);var bg=cs.backgroundColor;return (bg!=='rgba(0, 0, 0, 0)'&&bg!=='transparent')||cs.backgroundImage!=='none'||parseFloat(cs.borderTopWidth)>0||parseFloat(cs.borderBottomWidth)>0||parseFloat(cs.borderLeftWidth)>0||cs.boxShadow!=='none'}\"+\"function authored(stage){var set=[],sh=document.styleSheets,i,j,rules,t;\"+\"for(i=0;i<sh.length;i++){try{rules=sh[i].cssRules}catch(_){continue}if(!rules)continue;\"+\"for(j=0;j<rules.length;j++){t=rules[j].selectorText;if(!t||t.indexOf('is-loaded')<0)continue;\"+\"t.split(',').forEach(function(p){var m=p.match(/is-loaded\\\\)?\\\\s*[\\\\s>]\\\\s*(.+)$/);if(!m)return;var q;try{q=stage.querySelectorAll(m[1].trim())}catch(_){return}\"+\"for(var k=0;k<q.length;k++)if(set.indexOf(q[k])<0)set.push(q[k])})}}return set}\"+\"function select(stage){var sr=rect(stage);if(!sr)return;var area=sr.width*sr.height;if(!area)return;\"+\"var mind=Math.min(sr.width,sr.height)*0.015,mina=area*0.001;\"+\"A=authored(stage);\"+\"A.forEach(function(e){var p=e.parentElement;while(p&&p!==stage){p.__sfOpen=1;p=p.parentElement}});\"+\"function chrome(r){var t=r.top-sr.top<=sr.height*0.02,b=sr.bottom-r.bottom<=sr.height*0.02,l=r.left-sr.left<=sr.width*0.02,rt=sr.right-r.right<=sr.width*0.02;\"+\"if(r.width>=sr.width*0.85&&r.height<=sr.height*0.18&&(t||b))return true;\"+\"if(r.height>=sr.height*0.85&&r.width<=sr.width*0.3&&(l||rt))return true;return false}\"+\"function ok(e,r){if(r.width<mind||r.height<mind||r.width*r.height<mina)return false;return parseFloat(getComputedStyle(e).opacity)>0.05}\"+\"function keep(list,e,r){e.__sfR=r;e.__sfO=getComputedStyle(e).opacity;list.push(e)}\"+\"function walk(e,depth){if(A.indexOf(e)>=0){D.push(e);return}\"+\"var r=rect(e);if(!r)return;if(depth>0&&depth<=3&&!e.__sfOpen&&chrome(r))return;\"+\"var ks=e.tagName.toLowerCase()==='svg'?[]:kids(e);\"+\"if(e.__sfOpen){ks.forEach(function(k){walk(k,depth+1)});return}\"+\"if(!ks.length){if(depth>0&&ok(e,r)&&!(e.tagName.toLowerCase()==='svg'&&r.width*r.height<area*0.04))keep(S,e,r);return}\"+\"var a=r.width*r.height;\"+\"if(depth>0&&a<=area*SMALL){if(ok(e,r))keep(S,e,r);return}\"+\"var g={},rep=[];ks.forEach(function(k){var s=sig(k);(g[s]=g[s]||[]).push(k)});\"+\"Object.keys(g).forEach(function(s){if(g[s].length>=REPEAT&&g[s].every(function(k){var kr=rect(k);return kr&&kr.width*kr.height<=area*BLOCKMAX}))rep=rep.concat(g[s])});\"+\"if(rep.length>GROUPCAP){if(depth>0&&r.width*r.height<=area*BLOCKMAX&&ok(e,r))keep(S,e,r);return}\"+\"if(rep.length){ks.forEach(function(k){if(rep.indexOf(k)>=0&&!k.__sfOpen){var kr=rect(k);if(kr&&ok(k,kr))keep(D,k,kr)}else walk(k,depth+1)});return}\"+\"if(depth>0&&a<=area*BLOCKMAX&&bounded(e)){if(ok(e,r))keep(S,e,r);return}\"+\"ks.forEach(function(k){walk(k,depth+1)})}\"+\"walk(stage,0);\"+\"var generic=S.length+D.filter(function(e){return A.indexOf(e)<0}).length;\"+\"if(generic===0||S.length+D.length>MAXN){S=[];D=D.filter(function(e){return A.indexOf(e)>=0});return}\"+\"S.sort(function(x,y){var a=x.__sfR,b=y.__sfR,band=sr.height*0.03;var ra=Math.round((a.top-sr.top)/band),rb=Math.round((b.top-sr.top)/band);return ra!==rb?ra-rb:a.left-b.left});\"+\"S.concat(D).forEach(function(e){if(A.indexOf(e)>=0)return;var st=e.style;e.__sfPrev=[st.opacity,st.transition];st.transition='none';st.opacity='0';HID.push(e)});\"+\"try{window.__sfSel={S:S.length,D:D.length,A:A.length,ls:S.map(sig),ld:D.map(sig),la:A.map(sig)}}catch(_){}}\"+\"function unhide(){HID.forEach(function(e){try{var p=e.__sfPrev;if(p){e.style.opacity=p[0];e.style.transition=p[1]}}catch(_){}});HID=[]}\"+\"function lift(el,beat){var target=parseFloat(el.__sfO||'1')||1,cs=getComputedStyle(el),tr=cs.translate,sc=cs.scale;\"+\"var move=(tr==='none'||tr==='0px'||tr==='0px 0px')&&(sc==='none'||sc==='1');\"+\"var kf=move?[{opacity:0,translate:'0 '+DY+'px',scale:''+SC},{opacity:target,offset:OPA},{opacity:target,translate:'0 0',scale:'1'}]:[{opacity:0},{opacity:target,offset:OPA},{opacity:target}];\"+\"var a=el.animate(kf,{duration:DUR,delay:beat*STEP,easing:E,fill:'both'});\"+\"a.onfinish=function(){try{var p=el.__sfPrev;if(p){el.style.opacity=p[0];el.style.transition=p[1]}a.cancel()}catch(_){}}}\"+\"function liftAuthored(a,el,beat){try{a.cancel();el.style.translate='0 0';\"+\"el.animate([{opacity:0,transform:'translateY('+DY+'px) scale('+SC+')'},{opacity:1,offset:OPA},{opacity:1,transform:'translateY(0px) scale(1)'}],{duration:DUR,delay:beat*STEP,easing:E,fill:'both'})}catch(_){}}\"+\"function run(s){var all=[];try{all=s.getAnimations({subtree:true})}catch(_){}\"+\"var inner=all.filter(function(a){return a.animationName});\"+\"if(inner.length){var t=inner[0].effect.getComputedTiming();if(((t.activeDuration)||0)<20){unhide();return}}\"+\"var by={};inner.forEach(function(a){(by[a.animationName]=by[a.animationName]||[]).push(a)});\"+\"var names=Object.keys(by).sort(function(x,y){return by[x].length-by[y].length});\"+\"var furn=names.length>1?by[names[0]]:[];\"+\"var dataAn=names.length>1?names.slice(1).reduce(function(m,n){return m.concat(by[n])},[]):inner;\"+\"furn.forEach(function(a){try{a.finish()}catch(_){}});\"+\"var anOf=[];dataAn.forEach(function(a){var el=a.effect&&a.effect.target;if(el)anOf.push([el,a])});\"+\"function animFor(el){for(var i=0;i<anOf.length;i++)if(anOf[i][0]===el)return anOf[i][1];return null}\"+\"var Dx=[];D.forEach(function(e){if(A.indexOf(e)>=0){if(animFor(e))Dx.push(e)}else Dx.push(e)});\"+\"anOf.forEach(function(p){if(Dx.indexOf(p[0])<0)Dx.push(p[0])});\"+\"var nS=Dx.length?2:4;\"+\"S.forEach(function(e,i){try{lift(e,Math.floor(i*nS/S.length))}catch(_){}});\"+\"Dx.forEach(function(e,i){var beat=S.length?2+Math.floor(i*(BEATS-2)/Dx.length):Math.floor(i*BEATS/Dx.length);var a=animFor(e);if(a)liftAuthored(a,e,beat);else{try{lift(e,beat)}catch(_){}}});\"+\"HID=[]}\"+\"function arm(){var s=document.getElementById('stage');if(!s){setTimeout(arm,50);return}\"+\"if(s.__sfLift)return;s.__sfLift=1;\"+\"if(!sel){sel=true;try{select(s)}catch(_){unhide();S=[];D=[]}}\"+\"var go=function(){if(s.classList.contains('is-loaded'))requestAnimationFrame(function(){if(s.classList.contains('is-loaded')&&!s.__sfRan){s.__sfRan=1;try{run(s)}catch(_){unhide()}}})};go();\"+\"try{new MutationObserver(go).observe(s,{attributes:true,attributeFilter:['class']})}catch(_){}}\"+\"if(document.readyState==='loading')addEventListener('DOMContentLoaded',arm);else arm();\"+\"})()\"+\"</script>\";/** The hidden probe/measure iframe must never play an entrance invisibly, but\n * it must still be measured in its ARRIVED state or the crop would be read\n * off a mid-entrance layout. So it self-reveals instantly, with every\n * transition and animation collapsed. */const REVEAL_SELF_INSTANT=\"<script>try{postMessage({__sfReveal:1,__sfInstant:1},'*')}catch(e){}</script>\";/** The blank window, which is the site QA audit's defect #1.\n *\n * Between mount and \"markup fetched + design size known\" the embed rendered\n * NOTHING. This fills the window instead: the panel area, quietly pulsing,\n * unmistakably loading. It waits SKELETON_DELAY first, so a warm/cached embed\n * (which paints within a frame or two) never flashes a skeleton. */const SKELETON_DELAY=400;function EmbedPending(){const[show,setShow]=React.useState(false);React.useEffect(()=>{const id=setTimeout(()=>setShow(true),SKELETON_DELAY);return()=>clearTimeout(id);},[]);if(!show)return null;return /*#__PURE__*/_jsxs(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",inset:0,// deliberately readable, not a whisper: a white-on-white\n// shimmer is indistinguishable from the blank card it exists\n// to replace, which is the whole defect.\nbackground:\"#F2F4F7\",overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`@keyframes sfShimmer{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}`}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,background:\"linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0) 100%)\",animation:\"sfShimmer 1.5s ease-in-out infinite\"}})]});}/** A load that never lands must not read as a hole in the page. These\n * sections reserve their scroll track whatever the panel contains (3,180px\n * on a platform page), so an embed that fails silently leaves a\n * multi-thousand pixel void. After every retry is spent, or after\n * HARD_TIMEOUT with nothing rendered, the panel shows this instead. */const HARD_TIMEOUT=45e3;function EmbedFallback({title}){return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",inset:0,display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",gap:10,padding:24,textAlign:\"center\",background:\"linear-gradient(180deg, #F9FAFB 0%, #F2F4F7 100%)\",color:COLORS.body,font:\"500 14px/1.5 Inter, system-ui, sans-serif\"},children:[/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{width:34,height:34,borderRadius:9,border:`1px solid ${COLORS.track}`,background:\"#fff\"}}),/*#__PURE__*/_jsx(\"div\",{style:{color:COLORS.ink,fontWeight:500},children:title||\"Product preview\"}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:13,maxWidth:260},children:\"This preview could not be loaded.\"})]});}/* Image sizing, deliberately NOT done here. Hand-building a srcSet from\n * Framer's `scale-down-to` parameter MEASURES WORSE than leaving the URL\n * alone, because the CDN picks the encoding per variant and `scale-down-to`\n * frequently drops out of AVIF into WebP:\n *\n *   ?width=3264&height=2352            138KB  avif   <- what the control ships\n *   ?scale-down-to=2048                318KB  avif\n *   ?scale-down-to=2048&width=…         385KB  webp\n *   ?scale-down-to=1024                162KB  webp\n *   ?scale-down-to=512                  58KB  webp\n *\n * A srcSet of 512/1024/2048 candidates therefore cost 514KB for the three\n * developers-page images where the untouched URLs cost 288KB. The fix for an\n * oversized image here is to upload a correctly sized asset, not to rewrite\n * its URL. What IS free and kept below: loading / decoding / fetchPriority.\n *//** Posts the entrance into an iframe once per `play` generation, the moment\n * both \"the document is ready\" and \"the parent wants a play\" hold. Shared\n * by the srcDoc path and the remote path. `ready` is set by the gate's\n * `__sfReady` (srcDoc) or by the iframe's `load` event (either). */function useRevealHandshake(frameRef,play,instant){const readyRef=React.useRef(false);const[readyTick,setReadyTick]=React.useState(0);const played=React.useRef(0);const markReady=React.useCallback(()=>{readyRef.current=true;setReadyTick(t=>t+1);},[]);React.useEffect(()=>{const onMsg=e=>{const w=frameRef.current&&frameRef.current.contentWindow;if(!w||e.source!==w)return;if(e.data&&e.data.__sfReady){// Tell the gate we exist, so it stands down its 2.5s\n// last-resort self-reveal and waits for a real engagement.\n// If this component never runs, nothing sends this and the\n// fallback still protects exactly as before.\ntry{w.postMessage({__sfAlive:1},\"*\");}catch(_){}markReady();}};window.addEventListener(\"message\",onMsg);return()=>window.removeEventListener(\"message\",onMsg);},[frameRef,markReady]);// Post the reveal once ready and play both hold, then retry every 250ms\n// until the gate acknowledges with __sfPlayed for this iframe, or 3s\n// elapse. A single un-acked postMessage used to be the whole handshake\n// here too; this hardens it the same way as Glass_frame and\n// Sticky_Features. Always clears its own timers on unmount or on the\n// next play/readyTick change.\nReact.useEffect(()=>{if(!play||!readyRef.current)return;if(played.current===play)return;const w=frameRef.current&&frameRef.current.contentWindow;if(!w)return;played.current=play;// reduced motion gets the arrived state with no travel, rather than\n// being left with content that never arrives\nlet acked=false;const send=()=>{try{w.postMessage({__sfReveal:1,__sfInstant:instant},\"*\");}catch(_){}};send();const onAck=e=>{if(e.source!==w)return;if(e.data&&e.data.__sfPlayed){acked=true;clearInterval(id);window.removeEventListener(\"message\",onAck);}};window.addEventListener(\"message\",onAck);const id=setInterval(()=>{if(acked)return;send();},250);const stop=setTimeout(()=>{clearInterval(id);window.removeEventListener(\"message\",onAck);},3e3);return()=>{clearInterval(id);clearTimeout(stop);window.removeEventListener(\"message\",onAck);};},[play,readyTick,instant,frameRef]);return markReady;}/** Fetch + srcDoc embed (the Framer asset CDN serves these with\n * `x-frame-options: DENY` and `content-type: application/octet-stream`, so a\n * direct iframe `src` can never render one), wheel forwarding for\n * hover-interactive embeds, entrance driven by the parent's `play`.\n *\n * Fit: the mockup's own scale-to-fit is a centered CONTAIN, which letterboxes\n * a wide design inside a tall panel. We hold the iframe at exactly the design\n * size (so the file's internal scale is 1) and CSS-scale it to the panel.\n *   cover   (S5, default) HEIGHT-ONLY fill pinned top left: the design's own\n *           height exactly fills the panel, the top edge and the file's own\n *           authored inset are never cropped, and the width overflows to the\n *           right into the edge fade. Focals unused.\n *   fill    true two axis cover, `max(sx, sy)`, crops on the long axis,\n *           steered by Focal X / Focal Y.\n *   contain letterbox on the measured content bounds, focals place the slack.\n *   auto    the file's own fit, untouched. */function HtmlEmbed({url,title,interactive,load,play,fit,focalX,focalY,minScale,stacked,onDesign}){// File controls can deliver either a plain URL string or an asset object\n// ({ url, id, extension }) depending on how the instance was wired.\nconst src=typeof url===\"string\"?url:url&&url.url||\"\";const[doc,setDoc]=React.useState(()=>DOC_CACHE.get(src)??null);const[design,setDesign]=React.useState(()=>geo(src).design??null);const[crop,setCrop]=React.useState(()=>geo(src).crop??null);React.useEffect(()=>{if(design&&onDesign)onDesign(design.w,design.h);},[design,onDesign]);const[failed,setFailed]=React.useState(false);const[remote,setRemote]=React.useState(false);const mode=fit??\"cover\";const reducedMotion=!!useReducedMotion();// live panel size, for the fit math (design px -> panel px)\nconst boxRef=React.useRef(null);const[box,setBox]=React.useState({w:0,h:0});React.useEffect(()=>{const el=boxRef.current;if(!el)return;const read=()=>setBox({w:el.clientWidth||0,h:el.clientHeight||0});read();if(typeof ResizeObserver===\"undefined\")return;const ro=new ResizeObserver(read);ro.observe(el);return()=>ro.disconnect();},[]);// Once asked to load, a row keeps its document for good, so scrolling\n// back is never a blank panel. Canvas / export / thumbnail mount\n// everything immediately.\nconst reached=React.useRef(RenderTarget.current()!==RenderTarget.preview);if(load)reached.current=true;const mayLoad=load||reached.current;// nothing rendered after HARD_TIMEOUT counts as failed, so a request that\n// neither resolves nor rejects cannot hold the panel blank indefinitely\nReact.useEffect(()=>{if(doc||failed||remote||!mayLoad)return;const id=setTimeout(()=>setFailed(true),HARD_TIMEOUT);return()=>clearTimeout(id);},[doc,failed,remote,mayLoad]);React.useEffect(()=>{if(!src){setFailed(true);return;}if(!mayLoad)return;let alive=true;if(DOC_CACHE.get(src)==null)setFailed(false);loadDoc(src).then(t=>{if(!alive)return;const g=geo(src);if(!g.design){// loose on purpose: `const`, `let`, `var`, `window.` or a\n// minified form all match, and the #stage probe below\n// covers whatever this misses\nconst m=t.match(/DESIGN_W\\s*=\\s*([\\d.]+)\\s*,\\s*DESIGN_H\\s*=\\s*([\\d.]+)/);if(m&&+m[1]>0&&+m[2]>0)g.design={w:+m[1],h:+m[2]};}if(g.design)setDesign(g.design);if(g.crop)setCrop(g.crop);setDoc(t);},()=>{if(!alive)return;// could not fetch: frame it directly if the host allows it,\n// and drive the same handshake (a document without the gate\n// simply plays on its own load)\nif(canFrameRemote(src))setRemote(true);else setFailed(true);});return()=>{alive=false;};},[src,mayLoad]);// Offscreen probe/measure pass, two phases through one hidden iframe:\n//   1. design size, when the source did not declare it. The files lay\n//      #stage out at exactly DESIGN_W x DESIGN_H in CSS px and only\n//      transform-scale it, so #stage's untransformed offset box IS the\n//      design box, whatever the probe viewport is.\n//   2. content bounds (contain only), because template mockups often\n//      bake whitespace around the UI into the design box.\n// Either phase falls back to the full design box rather than blocking.\nconst measRef=React.useRef(null);const needsDesign=mode!==\"auto\"&&!!doc&&!design;const needsMeasure=mode===\"contain\"&&!!doc&&!!design&&!crop;const keepDesign=d=>{geo(src).design=d;setDesign(d);};const keepCrop=c=>{geo(src).crop=c;setCrop(c);};const measure=()=>{const ifr=measRef.current;const full=design?{x:0,y:0,w:design.w,h:design.h}:null;if(!ifr)return full&&keepCrop(full);let win=null;let d=null;try{win=ifr.contentWindow;d=ifr.contentDocument;}catch(e){win=null;d=null;}if(!win||!d||!d.body)return full&&keepCrop(full);// phase 1\nif(!design){const st=d.getElementById(\"stage\");const w=st?st.offsetWidth:0;const h=st?st.offsetHeight:0;if(w>8&&h>8)keepDesign({w,h});else keepDesign({w:Math.max(8,d.documentElement.scrollWidth||PROBE_W),h:Math.max(8,d.documentElement.scrollHeight||PROBE_H)});return;}// phase 2\ntry{const freeze=d.createElement(\"style\");freeze.textContent=\"*,*::before,*::after{animation:none!important;transition:none!important}\";d.head.appendChild(freeze);const stage=d.getElementById(\"stage\");const kids=stage&&stage.children.length?stage.children:d.body.children;let l=Infinity;let t=Infinity;let r=-Infinity;let b=-Infinity;for(let i=0;i<kids.length;i++){const el=kids[i];const cs=win.getComputedStyle(el);if(cs.display===\"none\"||cs.visibility===\"hidden\")continue;const w=el.offsetWidth;const h=el.offsetHeight;if(!w||!h)continue;l=Math.min(l,el.offsetLeft);t=Math.min(t,el.offsetTop);r=Math.max(r,el.offsetLeft+w);b=Math.max(b,el.offsetTop+h);}freeze.remove();if(!isFinite(l)||r-l<8||b-t<8)return full&&keepCrop(full);const x=Math.max(0,l);const y=Math.max(0,t);keepCrop({x,y,w:Math.min(r,design.w)-x,h:Math.min(b,design.h)-y});}catch(e){if(full)keepCrop(full);}};// neither phase may stall the embed: settle on the full design box\nReact.useEffect(()=>{if(!needsMeasure||!design)return;const id=setTimeout(()=>keepCrop({x:0,y:0,w:design.w,h:design.h}),2e3);return()=>clearTimeout(id);},[needsMeasure,design]);// ── entrance, parent driven ───────────────────────────────────────────\nconst liveRef=React.useRef(null);const markReady=useRevealHandshake(liveRef,play,reducedMotion);// ONE srcDoc string for both the sized and the not-yet-sized branch, so\n// learning the design size never rewrites srcDoc (which would reload the\n// document and orphan a handshake already spent on it). COVER_FIT is a\n// no-op at design size (k = 1) and only matters in the transient branch.\nconst srcDoc=doc?doc+FRAME_ALWAYS+WHEEL_FORWARDER+COVER_FIT+REVEAL_GATE+ENTRANCE_LIFT:\"\";const frameStyle={width:\"100%\",height:\"100%\",border:\"none\",display:\"block\",pointerEvents:interactive?\"auto\":\"none\"};let inner=null;if(remote&&reached.current){// remote document: no injection possible, same handshake; it fills\n// the panel and fits itself\ninner=/*#__PURE__*/_jsx(\"iframe\",{ref:liveRef,src:src,onLoad:markReady,title:title,sandbox:\"allow-scripts\",scrolling:\"no\",style:frameStyle});}else if(doc&&reached.current){if(mode!==\"auto\"&&design&&box.w>.5&&box.h>.5){// Cover and fill use the untouched design box, so the mockup's\n// own inset can never be zoomed past. Contain uses the measured\n// content bounds.\nconst cr=mode===\"contain\"?crop??{x:0,y:0,w:design.w,h:design.h}:{x:0,y:0,w:design.w,h:design.h};const sx=box.w/cr.w;const sy=box.h/cr.h;// V5 (2026-09-04) fit by tier: desktop (side by side) fills the\n// stage HEIGHT, the stacked tablet/phone layout fills the WIDTH\n// and the deck height follows the design (parent, via onDesign).\n// Phone keeps PHONE_MIN_SCALE so a desktop design stays legible.\nconst fillWidth=!!stacked&&mode!==\"contain\";const s=Math.max(minScale||0,mode===\"contain\"?Math.min(sx,sy):fillWidth?sx:mode===\"fill\"?Math.max(sx,sy)+COVER_BLEED:sy+COVER_BLEED);// overflow given away per axis (negative = slack)\nconst overX=cr.w*s-box.w;const overY=cr.h*s-box.h;const fx=clamp01((focalX??0)/100);const fy=clamp01((focalY??0)/100);const left=fillWidth?overX>0?-overX*fx:-overX/2:mode===\"cover\"?0:-cr.x*s-overX*fx;const top=fillWidth?overY>0?-overY*fy:0:mode===\"cover\"?0:-cr.y*s-overY*fy;inner=/*#__PURE__*/_jsx(\"iframe\",{ref:liveRef,onLoad:markReady,srcDoc:srcDoc,title:title,// No `sandbox` (2026-09-17). `sandbox=\"allow-scripts\"`\n// gives the srcDoc an opaque origin, so Chrome renders\n// it OUT OF PROCESS: another process rasterises the\n// document at its own scale and the parent stretches\n// that texture through scale(s) below. Measured live on\n// /platforms/inventory-management at devicePixelRatio\n// 2.2 (retina + 110% zoom): sandboxed 2094 strong text\n// edges, same frame in-process 3830. In-process the\n// raster follows the transform and stays sharp at every\n// scale, exactly like Glass_frame and the measure iframe\n// below, which never had a sandbox.\nscrolling:\"no\",style:{position:\"absolute\",left,top,width:design.w,height:design.h,border:\"none\",transform:`scale(${s})`,transformOrigin:\"0 0\",pointerEvents:frameStyle.pointerEvents}});}else{// design size or panel size not known yet: fill the panel at\n// 100% and let COVER_FIT re-fit the file's own #stage\ninner=/*#__PURE__*/_jsx(\"iframe\",{ref:liveRef,onLoad:markReady,srcDoc:srcDoc,title:title,// no `sandbox`, see the scaled iframe above\nscrolling:\"no\",style:frameStyle});}}// A panel is never allowed to be silently empty: it is either the embed,\n// or a visible \"loading\", or a visible \"could not load\".\nconst settled=!!inner;return /*#__PURE__*/_jsxs(\"div\",{ref:boxRef,style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\"},children:[inner,!settled&&failed&&/*#__PURE__*/_jsx(EmbedFallback,{title:title}),!settled&&!failed&&/*#__PURE__*/_jsx(EmbedPending,{}),reached.current&&doc&&(needsDesign||needsMeasure)&&/*#__PURE__*/_jsx(\"iframe\",{ref:measRef,// gated + instantly revealed: nothing animates invisibly\n// here, and the crop is still read off the ARRIVED layout\nsrcDoc:doc+REVEAL_GATE+REVEAL_SELF_INSTANT,onLoad:measure,scrolling:\"no\",\"aria-hidden\":\"true\",tabIndex:-1,style:{position:\"absolute\",left:0,top:0,width:design?design.w:PROBE_W,height:design?design.h:PROBE_H,border:0,visibility:\"hidden\",pointerEvents:\"none\",transform:\"scale(0.001)\",transformOrigin:\"0 0\"}},design?\"measure\":\"probe\")]});}/** `source: \"image\"` rows get the same entrance shape as the html rows\n * (opacity 0 to 1, 12px rise, site ease, DESIGN.md §6 timing), driven by the\n * same parent `play` generation, so image and html rows arrive on the same\n * beat and replay together. Before the first play the image is held at\n * opacity 0 in preview only; canvas, export and thumbnail show it at once.\n *\n * Fit: cover = height fit anchored top left (S5, the width overflows right\n * into the edge fade, or leaves ground showing for a portrait image); fill =\n * true two axis cover with the focals as object-position; contain =\n * letterbox with the focals placing the slack. */function ImageReveal({src,title,i,play,fit,focalX,focalY,stacked}){const reducedMotion=!!useReducedMotion();const preview=RenderTarget.current()===RenderTarget.preview;const controls=useAnimationControls();const[ready,setReady]=React.useState(false);React.useEffect(()=>{if(!play||!preview)return;if(reducedMotion){controls.set({opacity:1,y:0});return;}controls.set({opacity:0,y:12});// DESIGN.md §6: site ease curve, panel-open-class 200ms move\ncontrols.start({opacity:1,y:0,transition:{duration:.2,ease:[0,0,.2,1]}});setReady(true);},[play,preview,reducedMotion,controls]);const mode=fit??\"cover\";const fx=clamp01((focalX??0)/100)*100;const fy=clamp01((focalY??0)/100)*100;// V5: stacked tiers fill the box (width first), desktop keeps fill-height\nconst sizing=mode===\"fill\"||mode===\"contain\"||stacked?{width:\"100%\",height:\"100%\",objectFit:mode===\"fill\"?\"cover\":\"contain\",objectPosition:`${fx}% ${fy}%`}:{height:\"100%\",width:\"auto\",maxWidth:\"none\"};return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\"},children:/*#__PURE__*/_jsx(motion.img,{src:src,alt:title,// only the deck's first row can be anywhere near the LCP;\n// the rest are below the fold by construction\nloading:i===0?\"eager\":\"lazy\",decoding:\"async\",fetchPriority:i===0?\"high\":\"low\",initial:false,animate:controls,style:{position:\"absolute\",left:0,top:0,display:\"block\",opacity:preview&&!ready?0:1,...sizing}})});}export default function WorkflowFeatures(props){const{heading,sections,scrollPerSection,pageBackground,scrimEnabled,progressLine,marginTop,marginBottom,mockRadius,mockHeight,fadeWidth,stagePadTop,stagePadBottom,climbPortion,font}=props;const N=Math.max(1,sections.length);const isCanvas=RenderTarget.current()===RenderTarget.canvas;const reduced=!!useReducedMotion();const rootRef=React.useRef(null);const[width,setWidth]=React.useState(1200);// V5.3 (2026-09-04): the page width, to tell a full width root (1fr of\n// the page, tablet/phone, needs its own 20px gutter) from a root sitting\n// inside the page's 1180 container (platform pages on desktop), where a\n// stage gutter pushed the content 20px inside every other section.\nconst[pageW,setPageW]=React.useState(0);React.useEffect(()=>{const el=rootRef.current;if(!el)return;const ro=new ResizeObserver(entries=>{setWidth(entries[0].contentRect.width);setPageW(document.documentElement.clientWidth);});ro.observe(el);return()=>ro.disconnect();},[]);// V4 (2026-09-04): type tiers follow the VIEWPORT, per DESIGN.md §2\n// (phone under 810, tablet 810 to 1199), not the component's own width.\n// At a 1300 viewport the instance is clamped to 1180, so its own width\n// would misreport the desktop tier as tablet. The canvas has no useful\n// viewport, so it falls back to the measured width.\n// V4.1 (2026-09-04): tiers come from the component's own measured width.\n// A window based read stayed at 1440 on the published site (Framer's\n// SSR window alias), so phone got desktop type. The width IS the\n// viewport below the 1220 crossover (the instance is 1fr of a full\n// width frame), and 1180 exactly once the clamp engages, so: phone\n// under 810, tablet under 1180, desktop from 1180 (viewport 1200+).\nconst isMobile=width<810;// gutter lives on the stage only when the root IS the page width and\n// narrower than 1220 (DESIGN.md §3: 20px gutter below 1220). A root\n// inside the 1180 container (desktop platform pages) gets none, so its\n// content lines up with the neighbouring sections at the same x.\nconst inContainer=!isCanvas&&pageW>0&&width<pageW-2;// a root of 1180 or wider is the container itself (or a viewport past the\n// clamp), so it never carries a gutter; this also holds on the canvas.\n// 1228 = 1180 content + 2 x 24: below it a full width root keeps its\n// gutter (Kriss 2026-09-25: at a 1200 viewport the content sat 10px\n// from the edge). On the canvas an exact 1180 root is the container.\n// Live: the gutter is whatever the page's own side room is missing,\n// so content always sits at least 24 (16 phone) from the viewport edge,\n// including a 1180 capped instance at a 1200 viewport (10px each side).\nconst minGutter=isMobile?16:24;const sideRoom=inContainer?(pageW-width)/2:0;const stageGutter=isCanvas?width>=1228||Math.round(width)===1180?0:minGutter:!inContainer&&width>=1180+2*minGutter?0:Math.max(0,Math.round(minGutter-sideRoom));// V5.1 (2026-09-04): section rhythm follows the native sections, 120px\n// on desktop and tablet, 80px on phone (measured on the live Wrapper /\n// Hero sections). The stagePadTop control is the desktop value.\nconst padTop=isMobile?Math.min(stagePadTop||0,64):stagePadTop||0;const padBottom=isMobile?Math.min(marginBottom||0,64):marginBottom||0;const stagePads=padTop+(stagePadBottom||0);const isTablet=width<1180;// Layout: the two column split needs about 1000px. Under that the section\n// stacks (heading, copy, mock) but keeps the SAME scroll linked deck and\n// climbing copy as desktop; V4 retired the separate crossfade branch so\n// every tier has one mechanic and one set of stage pads.\nconst isCompact=width<1e3;// V5: the deck's own width, measured (the root may be wider than the\n// 1180 content, and window.innerWidth is unreliable in the bundle)\nconst deckRef=React.useRef(null);const[deckW,setDeckW]=React.useState(0);React.useEffect(()=>{const el=deckRef.current;if(!el||typeof ResizeObserver===\"undefined\")return;const ro=new ResizeObserver(e=>setDeckW(e[0].contentRect.width));ro.observe(el);setDeckW(el.clientWidth);return()=>ro.disconnect();},[]);// V5: design boxes reported by the html embeds, so the stacked deck can\n// be exactly as tall as the active mockup at fill-width scale\nconst[designs,setDesigns]=React.useState({});const designSetters=React.useMemo(()=>sections.map((_,i)=>(w,h)=>setDesigns(d=>d[i]&&d[i].w===w&&d[i].h===h?d:{...d,[i]:{w,h}})),[sections.length]);// `near`: the SECTION is within NEAR_MARGIN, so the engaged row and its\n// neighbours fetch and mount now (observed on the section root, never on\n// a card, because a card under the sticky stage's overflow clip reports\n// no intersection until it has already climbed into view).\nconst near=useNear(rootRef);// `armed`: the DECK (the mock stack inside the pinned stage) is a good\n// third of the way into the viewport, so row 0's entrance plays as the\n// card comes into view, not while the stage is still below the fold.\n// Observed on the section root before 2026-09-18, and row 0 revealed\n// at scrollY 840 on /platforms/inventory-management with the stage top\n// at 780 of a 900px viewport, so the user always met row 0 already\n// rendered. threshold 0 with a bottom rootMargin, because a fractional\n// threshold on a tall element could never fire on a short viewport.\nconst[armed,setArmed]=React.useState(()=>RenderTarget.current()!==RenderTarget.preview);React.useEffect(()=>{if(armed)return;const el=deckRef.current||rootRef.current;if(!el||typeof IntersectionObserver===\"undefined\"){setArmed(true);return;}let reported=false;const io=new IntersectionObserver(entries=>{reported=true;if(entries.some(e=>e.isIntersecting)){io.disconnect();setArmed(true);}},{threshold:0,rootMargin:\"0px 0px -35% 0px\"});io.observe(el);// this observer is the ONLY thing that mounts the embeds, so a\n// browser that never delivers a first callback leaves every card\n// permanently blank with no second chance. Arm anyway if nothing was\n// reported at all; a normal (non-intersecting) report keeps the\n// arrive-on-approach behaviour intact.\nconst rescue=setTimeout(()=>{if(!reported){io.disconnect();setArmed(true);}},1500);return()=>{clearTimeout(rescue);io.disconnect();};},[armed]);// once armed, the rows beyond the neighbours preload too, so a three\n// row deck is fully parsed before anyone scrolls to row three\nconst[preloadRest,setPreloadRest]=React.useState(()=>RenderTarget.current()!==RenderTarget.preview);React.useEffect(()=>{if(!armed||preloadRest)return;const id=setTimeout(()=>setPreloadRest(true),PRELOAD_REST_MS);return()=>clearTimeout(id);},[armed,preloadRest]);const trackRef=React.useRef(null);const[active,setActive]=React.useState(0);const[prevActive,setPrevActive]=React.useState(-1);const[dir,setDir]=React.useState(1);const{scrollYProgress}=useScroll({target:trackRef,offset:[\"start start\",\"end end\"]});// ── engagement: the parent decides when a row's entrance plays ────────\n// Desktop: a row is engaged while it is the row on stage (idx) or the\n// row climbing onto it (idx + 1 with climb > 0), so the entrance starts\n// the moment the climb starts and plays UNDER the climb, never after it.\n// Compact: engaged = the active row, so the entrance plays under the\n// 176ms crossfade.\n// A row plays ONCE: its `play` goes 0 -> 1 on the first engagement and\n// stays there. Scrolling back and forth shows the arrived card. The\n// previous edge-triggered version (every false -> true bumped `play`)\n// replayed a fully rendered card on every scrub back across a release\n// point, measured on the published site 2026-09-18. Nothing here\n// observes the viewport.\nconst[plays,setPlays]=React.useState(()=>sections.map(()=>0));const playsRef=React.useRef(plays);const applyEngaged=React.useCallback((v,compact)=>{const{idx,climb}=seg(v,N,climbPortion);let changed=false;const next=playsRef.current.slice();for(let i=0;i<N;i++){// Released 55% of the way through the climb rather than the instant it\n// starts, so the mockup's contents resolve as the card settles instead\n// of being spent before it arrives. This is the 40 to 60 percent offset\n// the Motion vault gives for a container arriving with its contents,\n// and the release point Kriss picked out of the timing harness.\nconst eng=i===idx||i===idx+1&&climb>=.55;if(eng&&!next[i]){next[i]=1;changed=true;}}if(changed){playsRef.current=next;setPlays(next);}},[N,climbPortion]);// arming is the first activation: whatever is on stage plays now\nReact.useEffect(()=>{if(!armed||isCanvas)return;applyEngaged(scrollYProgress.get(),isCompact);},[armed,isCanvas,isCompact,applyEngaged,scrollYProgress]);// receive wheel deltas forwarded by embedded HTML mockups\nReact.useEffect(()=>{const onMsg=e=>{if(e.data&&typeof e.data.__sfWheel===\"number\")window.scrollBy(0,e.data.__sfWheel);};window.addEventListener(\"message\",onMsg);return()=>window.removeEventListener(\"message\",onMsg);},[]);useMotionValueEvent(scrollYProgress,\"change\",v=>{const{idx,climb}=seg(v,N,climbPortion);const next=climb>=1?idx+1:idx;setActive(cur=>{if(next===cur)return cur;setDir(next>cur?1:-1);setPrevActive(cur);return next;});if(armed&&!isCanvas)applyEngaged(v,isCompact);});// AC6 (2026-09-03): true 3-way tier, not a 2-step boolean. isMobile/\n// isCompact already track the component's own measured width; combining\n// them gives phone < 640, tablet 640-999, desktop >= 1000, which is what\n// DESIGN.md §2 Heading 3 needs (24 / 20 / 18). Previously isMobile alone\n// drove the title (two steps only, tablet never got its own 20px value).\nconst titleFontSize=isMobile?18:isTablet?20:24;// description = body copy (DESIGN.md §2 Body M: 400, 16px, 1.5em, 0em,\n// secondary colour). V4 reverts the 9a misread that set it to the title\n// preset; 9a meant the description's BOTTOM padding equals the title's\n// TOP padding (COPY_PAD, both sides), not its type size.\nconst bodyFontSize=16;const copyContent=s=>/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",// desktop: title pinned to the top of the column, description\n    // to the bottom, with the SAME pad above the title and below\n    // the description (9a). Compact: a plain stacked block.\n    justifyContent:isCompact?\"flex-start\":\"space-between\",gap:isCompact?16:undefined,height:isCompact?undefined:\"100%\",paddingTop:isCompact?0:COPY_PAD,paddingBottom:isCompact?0:COPY_PAD},children:[/*#__PURE__*/_jsx(\"h3\",{style:{margin:0,fontSize:titleFontSize,fontWeight:500,letterSpacing:\"-0.025em\",lineHeight:isMobile?1.625:isTablet?1.4:1.333,color:COLORS.ink},children:s.title}),/*#__PURE__*/_jsx(\"div\",{children:s.description.split(/\\n+/).filter(Boolean).map((para,pi)=>/*#__PURE__*/_jsx(\"p\",{style:{margin:pi===0?0:\"12px 0 0\",fontSize:bodyFontSize,fontWeight:400,letterSpacing:\"0em\",lineHeight:1.75,color:COLORS.body},children:para},pi))})]});// scroll-linked copy on every tier: the next block climbs in with scroll\n// while the current drifts up and out. Desktop: the column stretches to\n// the row. Compact: the layers are absolute, so an invisible sizer holding\n// every block in one grid cell reserves the height of the tallest one.\nconst copyStack=/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",alignSelf:\"stretch\",minWidth:0,flex:isCompact?\"0 0 auto\":undefined},children:[isCompact&&/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{display:\"grid\",visibility:\"hidden\"},children:sections.map((s,i)=>/*#__PURE__*/_jsx(\"div\",{style:{gridArea:\"1 / 1\"},children:copyContent(s)},i))}),sections.map((s,i)=>/*#__PURE__*/_jsx(CopyLayer,{i:i,p:scrollYProgress,N:N,scrub:climbPortion,reduced:reduced,style:{position:\"absolute\",left:0,right:0,top:0,bottom:0,maxWidth:isCompact?undefined:460,pointerEvents:i===active?\"auto\":\"none\",willChange:\"transform, opacity\"},children:copyContent(s)},i))]});const mockContent=(s,i)=>s.source===\"html\"&&s.htmlFile?/*#__PURE__*/_jsx(HtmlEmbed,{url:resolveMock(s.htmlFile),title:s.title,interactive:!isCompact&&i===active,load:near&&(Math.abs(i-active)<=1||preloadRest),play:plays[i]||0,fit:s.fit,focalX:s.focalX,focalY:s.focalY,minScale:isMobile?PHONE_MIN_SCALE:0,stacked:isCompact,onDesign:designSetters[i]}):s.image?/*#__PURE__*/_jsx(ImageReveal,{src:s.image,title:s.title,i:i,play:plays[i]||0,fit:s.fit,focalX:s.focalX,focalY:s.focalY,stacked:isCompact}):/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"grid\",placeItems:\"center\",color:\"#98A2B3\",fontSize:14,background:\"#F9FAFB\"},children:[s.title,\" (upload image)\"]});// V3: the panel is not a card. No border, no fill, no shadow; the visual\n// paints its own surface (the mockup's #stage, the image) and the panel\n// only clips it. Left corners keep the radius: the left and top edges\n// are where the visual meets the page crisply and a square corner there\n// reads as a pasted screenshot, while a rounded one reads as an app\n// window; the right side never shows a corner because it dissolves.\nconst cardChrome={position:\"absolute\",inset:0,// fade off = no bleed on the right, so the card is a real card: all four corners round\nborderRadius:scrimEnabled?`${mockRadius}px 0 0 ${mockRadius}px`:`${mockRadius}px`,overflow:\"hidden\",// 2026-09-08 (Kriss): the same lift Sticky_Features got, turned to the\n// LEFT edge because this deck stacks sideways. Extents stay under\n// DECK_PAD so the mask wrapper never cuts the shadow.\nboxShadow:\"-1px 0 0 rgba(16, 24, 40, 0.04), -10px 0 28px -12px rgba(16, 24, 40, 0.12), 0 12px 28px -16px rgba(16, 24, 40, 0.12)\"};// Edge fade: a mask on the deck WRAPPER (not per panel), so the composite\n// of all stacked panels dissolves as one and a buried panel can never\n// show through the top panel's faded band. A mask clips to its box, so\n// the wrapper is padded by DECK_PAD on the left, top and bottom and\n// pulled back out by the same negative margin: the climber's zoom and\n// the tuck stay inside the masked box and nothing pops at an edge.\nconst fade=Math.max(0,fadeWidth||0);const mask=scrimEnabled&&fade>0?`linear-gradient(to right, #000 calc(100% - ${fade}px), transparent 100%)`:undefined;// desktop, S5 2026-09-03: height as % of the body row (Mock height\n// slider, defaulting to 100 so the panel is flush top and bottom with the\n// copy column). `alignSelf: stretch` combined with an explicit (non-auto)\n// height acts as `start` per the flex/grid spec, so a lower value anchors\n// from the top with the gap falling below, never above.\n// V5 stacked deck height: the active design at fill-width scale (phone\n// min scale applied), shrinkable if the stage is shorter\nconst ad=designs[active];let stackedH;if(isCompact&&!isCanvas&&ad&&width>0){const cw=deckW||Math.min(1180,width-stageGutter*2);const sc=Math.max(cw/ad.w,isMobile?PHONE_MIN_SCALE:0);stackedH=Math.round(Math.min(ad.h*sc,cw*(isMobile?.9:.75)));}const mockStack=/*#__PURE__*/_jsx(\"div\",{ref:deckRef,style:{position:\"relative\",width:\"100%\",// compact (preview): the deck FILLS whatever height is left\n// under the heading and copy inside the pinned stage, so it\n// can never run past the viewport (the 4:3 box did at 810).\n// Canvas has no pinned height, so it keeps a 4:3 box there.\naspectRatio:isCompact&&isCanvas?\"4 / 3\":undefined,height:isCompact?stackedH:`${mockHeight}%`,alignSelf:\"stretch\",minWidth:0,flex:isCompact&&!isCanvas?stackedH?\"0 1 auto\":\"1 1 auto\":undefined,minHeight:isCompact&&!isCanvas?160:undefined,transition:\"height 320ms ease\"},children:/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:-DECK_PAD,bottom:-DECK_PAD,left:-DECK_PAD,right:0,padding:`${DECK_PAD}px 0 ${DECK_PAD}px ${DECK_PAD}px`,WebkitMaskImage:mask,maskImage:mask,WebkitMaskRepeat:\"no-repeat\",maskRepeat:\"no-repeat\",WebkitMaskSize:\"100% 100%\",maskSize:\"100% 100%\"},children:/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\"},children:sections.map((s,i)=>// scroll-linked deck on every tier: the next card climbs\n    // up under the scroll while the ones beneath tuck back\n    /*#__PURE__*/_jsx(MockLayer,{i:i,p:scrollYProgress,N:N,scrub:climbPortion,reduced:reduced,style:{...cardChrome,pointerEvents:i===active?\"auto\":\"none\"},children:mockContent(s,i)},i))})})});const line=progressLine&&!isCompact&&/*#__PURE__*/_jsx(\"div\",{style:{width:2,height:\"100%\",background:COLORS.track,position:\"relative\",overflow:\"hidden\"},children:/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",inset:0,background:COLORS.navy,transformOrigin:\"top center\",scaleY:isCanvas?.33:scrollYProgress}})});// canvas renders ONE representative pinned frame (a 1440:900-proportioned\n// stage) so padding and sizes on the canvas match what preview shows\nconst stage=/*#__PURE__*/_jsx(\"div\",{style:{position:isCanvas?\"relative\":\"sticky\",top:0,height:isCanvas?undefined:\"100svh\",aspectRatio:isCanvas&&!isCompact?\"1440 / 900\":undefined,overflow:\"hidden\",display:\"flex\",alignItems:\"flex-start\",justifyContent:\"center\",paddingLeft:stageGutter,paddingRight:stageGutter},children:/*#__PURE__*/_jsxs(\"div\",{style:{// DESIGN.md §3, one gutter at one level: content is\n// min(1180, viewport - 2 x 20) on every tier. Measured\n// against the VIEWPORT, so a 1180 clamped instance at a\n// 1300 viewport still gets the full 1180 (the old\n// `100% - 80px` gave 1100 there, the \"desktop gutter\").\n// V5.2: real padding on the stage, not viewport math.\n// 100vw is the editor width on the Framer canvas, so the\n// old min(1180, 100vw - 40) showed no gutter there at all.\nwidth:\"100%\",maxWidth:1180,// fill the pinned viewport minus the stage pads, so the\n// card ends at the padded bottom edge like StickyFeatures\nheight:isCanvas?isCompact?undefined:`calc(100% - ${stagePads}px)`:`calc(100svh - ${stagePads}px)`,marginTop:padTop,marginBottom:stagePadBottom,display:\"flex\",flexDirection:\"column\",// Title to deck: the site's heading rhythm, 64 desktop and\n// tablet, 40 phone (Kriss 2026-09-25: the old 24 to 40\n// clamp read tighter than every other section).\ngap:isMobile?40:64},children:[/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,// x.ai law (2026-09-05): H2 48 / 36 / 30, weight 400 at 48\n// (optical inversion), 500 below, -0.025em, leading 1 /\n// 1.111 / 1.2 tied to size\nfontSize:isMobile?28:isTablet?32:40,fontWeight:400,letterSpacing:\"-0.025em\",lineHeight:isMobile||isTablet?1.2:1.111,color:COLORS.ink,textAlign:\"center\",alignSelf:\"center\"},children:heading}),/*#__PURE__*/_jsxs(\"div\",{style:isCompact?{flex:1,minHeight:0,display:\"flex\",flexDirection:\"column\",gap:24}:{flex:1,minHeight:0,display:\"grid\",gridTemplateColumns:line?\"2px minmax(0, 5fr) minmax(0, 6fr)\":\"minmax(0, 5fr) minmax(0, 6fr)\",gap:\"clamp(40px, 5vw, 72px)\",alignItems:\"stretch\"},children:[line,copyStack,mockStack]})]})});return /*#__PURE__*/_jsx(\"div\",{ref:rootRef,style:{width:\"100%\",paddingTop:marginTop,paddingBottom:padBottom,background:pageBackground,fontFamily:\"Inter, -apple-system, 'Segoe UI', sans-serif\",WebkitFontSmoothing:\"antialiased\",...font},children:/*#__PURE__*/_jsx(\"div\",{ref:trackRef,style:{position:\"relative\",width:\"100%\",// svh so the runway matches the pinned height on mobile\nheight:isCanvas?\"auto\":`calc(100svh + ${scrollPerSection*(N-1)}svh)`},children:stage})});}WorkflowFeatures.defaultProps={heading:\"Designed to drive your workflow\",scrollPerSection:120,pageBackground:\"#F9FAFB\",scrimEnabled:true,progressLine:false,marginTop:96,marginBottom:96,mockRadius:12,mockHeight:100,fadeWidth:FADE_DEFAULT,stagePadTop:72,stagePadBottom:48,climbPortion:.6,sections:[{source:\"image\",title:\"Real-Time Inventory Control.\",description:\"Monitor availability, pricing, status changes, and inventory movement in real time. BLACKLINE ensures every stakeholder is working from a single source of data, reducing errors and improving coordination across teams.\"},{source:\"image\",title:\"Pricing Management\",description:\"Manage pricing changes, incentives, availability, and release strategies from one centralized platform. Changes are reflected & tracked instantly across the system, ensuring consistency and accuracy for both internal teams and external brokers.\"},{source:\"image\",title:\"Interactive Project Visualization\",description:\"View inventory through intuitive site plans, building stacks, heat maps, and interactive floorplate layouts. Quickly identify availability, demand patterns, and sales activity to support more informed decision-making.\"}]};addPropertyControls(WorkflowFeatures,{heading:{type:ControlType.String,title:\"Heading\",defaultValue:\"Designed to drive your workflow\"},sections:{type:ControlType.Array,title:\"Sections\",maxCount:5,control:{type:ControlType.Object,controls:{title:{type:ControlType.String,title:\"Title\",defaultValue:\"Feature title\"},description:{type:ControlType.String,title:\"Description\",displayTextArea:true,defaultValue:\"First paragraph.\\nSecond paragraph (new line = new paragraph).\"},source:{type:ControlType.Enum,title:\"Mockup\",options:[\"image\",\"html\"],optionTitles:[\"Image\",\"HTML file\"],defaultValue:\"image\",displaySegmentedControl:true},image:{type:ControlType.Image,title:\"Image\",hidden:p=>p.source===\"html\"},htmlFile:{type:ControlType.File,title:\"HTML file\",allowedFileTypes:[\"html\"],hidden:p=>p.source!==\"html\"},// stored value \"cover\" is the S5 height fit (existing\n// instances keep it); \"fill\" is the true two axis cover\nfit:{type:ControlType.Enum,title:\"Fit\",options:[\"cover\",\"fill\",\"contain\",\"auto\"],optionTitles:[\"Height fit\",\"Cover\",\"Contain\",\"Auto\"],defaultValue:\"cover\"},focalX:{type:ControlType.Number,title:\"Focal X\",min:0,max:100,step:1,unit:\"%\",defaultValue:0,hidden:p=>p.fit!==\"fill\"&&p.fit!==\"contain\"},focalY:{type:ControlType.Number,title:\"Focal Y\",min:0,max:100,step:1,unit:\"%\",defaultValue:0,hidden:p=>p.fit!==\"fill\"&&p.fit!==\"contain\"}}},defaultValue:WorkflowFeatures.defaultProps.sections},scrollPerSection:{type:ControlType.Number,title:\"Scroll/section\",min:60,max:220,step:10,unit:\"vh\",defaultValue:120},pageBackground:{type:ControlType.Color,title:\"Page color\",defaultValue:\"#F9FAFB\"},scrimEnabled:{type:ControlType.Boolean,title:\"Edge fade\",defaultValue:true},fadeWidth:{type:ControlType.Number,title:\"Fade width\",min:0,max:240,step:4,unit:\"px\",defaultValue:FADE_DEFAULT,hidden:p=>!p.scrimEnabled},progressLine:{type:ControlType.Boolean,title:\"Progress line\",defaultValue:false},marginTop:{type:ControlType.Number,title:\"Margin top\",min:0,max:400,step:4,unit:\"px\",defaultValue:96},marginBottom:{type:ControlType.Number,title:\"Margin bottom\",min:0,max:400,step:4,unit:\"px\",defaultValue:96},mockRadius:{type:ControlType.Number,title:\"Mock radius\",min:0,max:32,step:1,unit:\"px\",defaultValue:12},mockHeight:{type:ControlType.Number,title:\"Mock height\",min:60,max:100,step:1,unit:\"%\",defaultValue:100},stagePadTop:{type:ControlType.Number,title:\"Stage pad top\",min:0,max:240,step:4,unit:\"px\",defaultValue:72},stagePadBottom:{type:ControlType.Number,title:\"Stage pad btm\",min:0,max:240,step:4,unit:\"px\",defaultValue:48},climbPortion:{type:ControlType.Number,title:\"Climb portion\",min:.3,max:.9,step:.05,defaultValue:.6},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"WorkflowFeatures\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Workflow_features.map"],"mappings":"A,uUA0DA,SAASiC,EAAS,EAAM,CAAC,GAAK,CAACC,EAAGC,GAAOnC,EAAS,EAAK,EAAwQ,OAAtQmB,MAAc,CAAC,GAAUV,IAAS,QAAa,CAACA,EAAO,WAAW,OAAO,IAAM2B,EAAG3B,EAAO,WAAW4B,CAAK,EAAEF,EAAMC,EAAG,OAAO,EAAE,IAAME,EAAS,GAAGH,EAAM,EAAE,OAAO,EAAyC,OAAvCC,EAAG,iBAAiB,SAASE,CAAQ,MAAYF,EAAG,oBAAoB,SAASE,CAAQ,CAAE,EAAE,CAACD,CAAK,CAAC,EAASH,CAAG,CAIzU,S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