{"version":3,"file":"ProjectOrder.a2OQSbfn.mjs","names":["React.forwardRef","React.useRef","React.useCallback","React.useEffect","_jsx","__esmMin","init_npm_react_18_3_1","ne","init_ssg_sandbox_shims","window","c","J","ce","de","RenderTarget","init_framer_ChujFWHC","gridColumns","element","cols","addWallCss","tag","WALL_CSS","relevanceOf","item","shuffleInPlace","a","i","j","t","pickByRelevance","items","count","atLeast","tiers","priority","first","rest","projectRow","Component","row","props","forwardedRef","ref","attach","host","was","hostCss","story","active","storyStart","touching","storyStride","settleTimer","activeEl","bar","mounted","orders","frame","last","pauseUntil","dragging","moved","hovered","startX","startScroll","position","stride","signature","visible","wasGrid","wasCols","saved","touched","keep","el","designed","socialFrame","frameBackground","SOCIAL_BACKGROUND","hostColumns","hostWidth","stretch","card","height","fill","SOCIAL_GRID_RATIO","GRID_CARD_HEIGHT","setCardHeight","target","unstretchCards","css","boxOf","sizeCards","width","box","reorder","index","setup","cards","p","groups","other","group","all","grid","gap","SOCIAL_CARD_WIDTH","MAIN_CARD_WIDTH","order","shown","WALL_CARDS","picked","others","_","total","gridAvailable","SOCIAL_GRID_CARDS","GRID_CARDS","gridCount","rank","belongs","b","set","k","v","STORY_RATIO","centreOn","setActive","FAN_WIDTH","FAN_HEIGHT","boxAt","STORY_MS","centred","middle","best","bestDistance","r","d","behavior","hr","br","goTo","settle","onScroll","touchStart","touchEnd","normalize","enter","leave","wheel","down","event","move","delta","before","up","click","tick","time","dt","SOCIAL_SPEED","FAN_SPEED","observer","resize","style","withRandomProjectOrder","withSocialProjectRow","addBoosterCss","BOOSTER_CSS","shuffledCopy","list","withBoosterPacks","reduced","fills","timers","pickedItems","opened","cardOf","sizeCard","w","h","layout","wide","BOOSTER_RATIO","addPack","face","title","about","img","src","pack","boosterPackHtml","art","chosen","BOOSTER_COUNT","sets","BOOSTER_SETS","packOf","resetTilt","open","finish","block","key","tiltTarget","tilt","x","y","untilt","to","events","type","recheck","ms","FAN_TILT","FAN_SHADOW","FAN_SHADOW_HOVER","CARD_RADIUS","init_ProjectOrder","init_jsx_runtime","n"],"sources":["https:/framerusercontent.com/modules/KnXM7vCKdoCqoaddCaQt/7hIi48ObKhatKHsnAaft/ProjectOrder.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{RenderTarget}from\"framer\";let mounted=0;// PHONE / GRID LAYOUT: how many cards each row shows when the cards sit in a grid (the phone layout).\n// The number is always trimmed to fill whole lines of the grid, so no card is left alone on the last line.\nconst GRID_CARDS=8;// PHONE / GRID LAYOUT: card height compared to the height set in Framer (0.5 = half, 1 = unchanged)\nconst GRID_CARD_HEIGHT=.5;// Number of columns a grid currently has (e.g. 2 on a phone)\nfunction gridColumns(element){const cols=getComputedStyle(element).gridTemplateColumns.trim().split(/\\s+/).filter(c=>c&&c!==\"none\").length;return Math.max(1,cols);}// THIRD ROW (social presence videos): smaller, slower, shows ALL of its cards\n// Card width on desktop. Cards only get wider than this if there are too few of them to fill the screen.\nconst SOCIAL_CARD_WIDTH=240;// Speed of the third row, in pixels per second (the main rows move at 22)\nconst SOCIAL_SPEED=14;// How many social cards to show on phones (trimmed to whole grid lines)\nconst SOCIAL_GRID_CARDS=4;// Background of the third row's frame: the band's accent colour mixed with the page background,\n// so it is lighter and less saturated, follows the colour picker, and works in dark mode.\n// The % is how much accent stays: lower = paler.\nconst SOCIAL_BACKGROUND=\"color-mix(in oklab, var(--token-UNrMS3JKm) 45%, var(--token-ZwVt2FoMS, #fff))\";// Main rows: narrowest a card can be on desktop, and speed\nconst MAIN_CARD_WIDTH=360;const MAIN_SPEED=22;// THE PROJECT WALL (Nov 2026): the top row now holds ALL the projects (up to WALL_CARDS) and the\n// bottom row is hidden.\n// - Desktop/tablet: \"floating cards\". Tall cards that overlap a little and lean at an angle, drifting\n//   slowly sideways. Hovering a card turns it to face you.\n// - Phones: \"stories\". One tall card in the middle (the next and previous ones peek in at the sides),\n//   a progress bar on top, and it moves on by itself every STORY_MS. Swiping works too.\nconst WALL_CARDS=12;const FAN_WIDTH=270// card width on desktop, px\n;const FAN_HEIGHT=350// card height on desktop, px\n;const FAN_OVERLAP=62// how much each card slides under the next one, px\n;const FAN_SPEED=16// px per second\n;// (scaled down a little at rest, so the leaning card fits inside its own box: the row clips anything outside)\nconst FAN_TILT=\"perspective(1100px) rotateY(20deg) rotateZ(8deg) scale(.84)\"// the resting angle\n;// each card casts a soft shadow to its left, onto the card it overlaps, so they read as floating layers\nconst FAN_SHADOW=\"-18px 10px 28px -6px rgba(0,0,0,.32), -4px 2px 8px rgba(0,0,0,.12)\";const FAN_SHADOW_HOVER=\"0 22px 44px -10px rgba(0,0,0,.38), 0 4px 12px rgba(0,0,0,.14)\";const STORY_RATIO=1.4// card height = width × this\n;const CARD_RADIUS=18// corner rounding of the floating cards and the stories, px\n;// PHONE: the \"Also starring\" videos stay in a 2 × 2 grid, but tall (most covers are TikTok-shaped)\nconst SOCIAL_GRID_RATIO=1.3// card height = card width × this\n;const STORY_MS=4500// how long each story stays\n;const WALL_CSS=`\n.fm-fan-card{transform:${FAN_TILT} !important;transform-origin:50% 50%;transition:transform .55s cubic-bezier(.22,1,.36,1), box-shadow .55s ease !important;will-change:transform;position:relative;box-shadow:${FAN_SHADOW} !important;border-radius:${CARD_RADIUS}px !important;overflow:hidden !important}\n.fm-fan-card:hover,.fm-fan-card:focus-visible{transform:perspective(1100px) rotateY(0deg) rotateZ(0deg) scale(1) !important;z-index:40 !important;box-shadow:${FAN_SHADOW_HOVER} !important}\n.fm-story-card{position:relative;scroll-snap-align:center;scroll-snap-stop:always;border-radius:${CARD_RADIUS}px !important;overflow:hidden !important;transition:opacity .4s ease, transform .4s cubic-bezier(.22,1,.36,1)}\n.fm-story-card:not(.is-active){opacity:.42;transform:scale(.93)}\n.fm-story-bar{position:absolute;left:10px;right:10px;top:10px;z-index:30;height:3px;border-radius:3px;background:rgba(255,255,255,.45);overflow:hidden;pointer-events:none}\n.fm-story-bar i{display:block;height:100%;width:100%;background:#fff;transform-origin:0 50%;transform:scaleX(0)}\n@keyframes fm-story-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}\n@media (prefers-reduced-motion: reduce){.fm-fan-card{transition:none}.fm-story-bar{display:none}}\nbody:has([data-framer-name^=\"Project-\"][data-framer-name$=\" panel\"]) .fm-fan-card{z-index:0 !important}\n`;function addWallCss(){if(typeof document===\"undefined\")return;let tag=document.getElementById(\"fm-wall-css\");if(!tag){tag=document.createElement(\"style\");tag.id=\"fm-wall-css\";document.head.appendChild(tag);}if(tag.textContent!==WALL_CSS)tag.textContent=WALL_CSS;}let orders=new Map;// RELEVANCE (CMS field \"Relevance\": High / Medium / Low), read from the empty \"Relevance high\" / \"Relevance low\" boxes in each card.\n// with the value, so the code can read it. Unknown or empty counts as Medium.\nfunction relevanceOf(item){// Framer only renders \"Relevance high\" / \"Relevance low\" (empty boxes) when the CMS field matches,\n// so no word ends up in the page's HTML. Medium = neither box.\nif(item.querySelector('[data-framer-name=\"Relevance high\"]'))return 0;if(item.querySelector('[data-framer-name=\"Relevance low\"]'))return 2;return 1;}function shuffleInPlace(a){for(let i=a.length-1;i>0;i--){const j=Math.floor(Math.random()*(i+1));const t=a[i];a[i]=a[j];a[j]=t;}return a;}// Picks \"count\" items: at least \"atLeast\" of them come from the most relevant ones (High first; if there\n// aren't enough High, Medium; then Low), the rest are random. Returns the picked indexes in a random order.\nfunction pickByRelevance(items,count,atLeast){const tiers=[[],[],[]];items.forEach((item,i)=>tiers[relevanceOf(item)].push(i));const priority=[...shuffleInPlace(tiers[0]),...shuffleInPlace(tiers[1]),...shuffleInPlace(tiers[2])];const first=priority.slice(0,Math.min(atLeast,count));const rest=shuffleInPlace(priority.slice(first.length)).slice(0,Math.max(0,count-first.length));return shuffleInPlace([...first,...rest]);}function projectRow(Component,row// 0 = top row, 1 = bottom row, 2 = third (social) row\n){return /*#__PURE__*/React.forwardRef(function ProjectRow(props,forwardedRef){const ref=React.useRef(null);const attach=React.useCallback(element=>{ref.current=element;if(typeof forwardedRef===\"function\")forwardedRef(element);else if(forwardedRef)forwardedRef.current=element;},[forwardedRef]);React.useEffect(()=>{const host=ref.current;if(!host)return;// the bottom row is retired: the top row now shows every project\nif(row===1){const was=host.style.display;host.style.display=\"none\";return()=>{host.style.display=was;};}addWallCss();const hostCss=host.style.cssText;// keep the hovered card's z-index inside the wall, so it never shows above the project window\nif(row===0)host.style.isolation=\"isolate\";let story=false,active=-1,storyStart=0,touching=false,storyStride=0,settleTimer=0;let activeEl=null;const bar=document.createElement(\"div\");bar.className=\"fm-story-bar\";bar.appendChild(document.createElement(\"i\"));if(!mounted)orders=new Map;mounted++;let frame=0,last=0,pauseUntil=0,dragging=false,moved=false,hovered=false,startX=0,startScroll=0,position=0,stride=0;let signature=[];let visible=[];let wasGrid=null;let wasCols=0;const saved=new Map;// the card inside each item, and the grid itself, also get stretched on phones (restored later)\nconst touched=new Map// element -> its original inline style\n;const keep=el=>{if(!touched.has(el))touched.set(el,el.style.cssText);};// each card's height as designed in Framer, and its layers that fill the whole card\nconst designed=new Map;// THIRD ROW: paint its frame (the one around the title and the cards) with the softer colour\nconst socialFrame=row===2?host.parentElement:null;const frameBackground=socialFrame?.style.background??\"\";if(socialFrame)socialFrame.style.background=SOCIAL_BACKGROUND;const hostColumns=host.style.gridTemplateColumns;const hostWidth=host.style.width;// PHONE: make the cards fill the full width of their column, and the columns share the\n// width equally, so there is no empty strip on the right\nconst stretch=item=>{item.style.width=\"100%\";item.style.minWidth=\"0\";item.style.justifySelf=\"stretch\";const card=item.matches('[data-framer-name=\"Project card\"]')?item:item.querySelector('[data-framer-name=\"Project card\"]');if(!card)return;if(card!==item){keep(card);card.style.width=\"100%\";card.style.minWidth=\"0\";}// Shorter cards: Framer locks the height with a min-height, so both are overridden.\n// Every layer that filled the whole card (frame, cover image…) follows the new height.\nif(GRID_CARD_HEIGHT===1&&row!==2)return;if(!designed.has(card)){const height=card.getBoundingClientRect().height;if(!height)return;const fill=Array.from(card.querySelectorAll(\"*\")).filter(el=>el.getBoundingClientRect().height>=height-1);designed.set(card,{height,fill});}const{height,fill}=designed.get(card);keep(card);card.style.setProperty(\"height\",(row===2?Math.round((item.getBoundingClientRect().width||180)*SOCIAL_GRID_RATIO):Math.round(height*GRID_CARD_HEIGHT))+\"px\",\"important\");card.style.setProperty(\"min-height\",\"0px\",\"important\");for(const el of fill){keep(el);el.style.setProperty(\"height\",\"100%\",\"important\");el.style.setProperty(\"min-height\",\"0px\",\"important\");}};const setCardHeight=(item,target)=>{const card=item.matches('[data-framer-name=\"Project card\"]')?item:item.querySelector('[data-framer-name=\"Project card\"]');if(!card)return;if(!designed.has(card)){const height=card.getBoundingClientRect().height;if(!height)return;const fill=Array.from(card.querySelectorAll(\"*\")).filter(el=>el.getBoundingClientRect().height>=height-1);designed.set(card,{height,fill});}const{fill}=designed.get(card);keep(card);card.style.setProperty(\"height\",target+\"px\",\"important\");card.style.setProperty(\"min-height\",\"0px\",\"important\");for(const el of fill){keep(el);el.style.setProperty(\"height\",\"100%\",\"important\");el.style.setProperty(\"min-height\",\"0px\",\"important\");}};const unstretchCards=()=>{for(const[el,css]of touched)el.style.cssText=css;touched.clear();host.querySelectorAll(\".fm-fan-card,.fm-story-card\").forEach(el=>el.classList.remove(\"fm-fan-card\",\"fm-story-card\",\"is-active\"));bar.remove();};// The element that actually takes up space in the row. Framer sometimes wraps a card in an\n// invisible layer (display: contents) that ignores width and order, so we use the card inside it.\nconst boxOf=item=>{if(getComputedStyle(item).display!==\"contents\")return item;return item.querySelector('[data-framer-name=\"Project card\"]')||item.firstElementChild||item;};// DESKTOP: give every card in the moving row the same width (on the real box)\nconst sizeCards=width=>visible.forEach(item=>{const box=boxOf(item);if(box!==item)keep(box);for(const el of box===item?[item]:[item,box]){el.style.width=width+\"px\";el.style.minWidth=width+\"px\";el.style.flexShrink=\"0\";}});const reorder=()=>visible.forEach((item,index)=>{item.style.order=String(index);const box=boxOf(item);if(box!==item){keep(box);box.style.order=String(index)// the order must be on the real box too\n    ;}});const setup=()=>{const cards=Array.from(host.querySelectorAll('[data-framer-name=\"Project card\"]')).filter(card=>{let p=card.parentElement;while(p&&p!==host){if(p.getAttribute(\"data-framer-name\")===\"Project card\")return false;p=p.parentElement;}return true;});const groups=new Map;for(const card of cards){let item=card,p=item.parentElement;while(p&&p!==host&&!cards.some(other=>other!==card&&p.contains(other))){item=p;p=p.parentElement;}if(p){const group=groups.get(p)||[];if(!group.includes(item))group.push(item);groups.set(p,group);}}const all=Array.from(groups.values()).flat();// phones = Framer's grid layout. Asked through the screen width, because the stories row\n// switches the list away from a grid\nconst grid=window.matchMedia(\"(max-width: 809.98px)\").matches;// (the stories row turns the grid into one long line, so its column count is not a signal)\nconst cols=grid?row===0?1:gridColumns(host):0;const same=wasGrid===grid&&wasCols===cols&&all.length===signature.length&&all.every((item,index)=>item===signature[index]);if(same){if(!grid&&visible.length&&row===2){const gap=parseFloat(getComputedStyle(visible[0].parentElement).columnGap)||32;const width=Math.max(row===2?SOCIAL_CARD_WIDTH:MAIN_CARD_WIDTH,Math.ceil((host.clientWidth+gap)/Math.max(1,visible.length-1)));sizeCards(width);stride=width+gap;}return;}wasGrid=grid;wasCols=cols;signature=all;unstretchCards();host.style.cssText=hostCss;// keep the hovered card (z-index 40) inside the wall, below the project window (z-index 9)\nif(row===0)host.style.isolation=\"isolate\";story=grid&&row===0;active=-1;host.style.gridTemplateColumns=grid?`repeat(${cols}, minmax(0, 1fr))`// equal columns that use the whole width\n:hostColumns;// In Framer's phone layout the list has a FIXED width (361px), so on wider phones it\n// stopped short of the right edge. On phones it now always fills the screen width.\nhost.style.width=grid?\"100%\":hostWidth;visible=[];for(const items of groups.values()){if(items.length<2)continue;let order=orders.get(items.length);if(!order){if(row===0){// THE HOME ROW: at least half of the cards it shows are High relevance\n// (or the next best when there aren't enough), the rest random, all shuffled\nconst shown=Math.min(WALL_CARDS,items.length);const picked=pickByRelevance(items,shown,Math.ceil(shown/2));const others=shuffleInPlace(items.map((_,i)=>i).filter(i=>!picked.includes(i)));order=[...picked,...others];}else{order=shuffleInPlace(items.map((_,index)=>index));}orders.set(items.length,order);}// Desktop (moving rows): up to 10 cards, half in each row\n// Desktop (moving rows): up to 10 cards, half in each row.\n// The third row is its own list and shows all of its cards (up to 30).\nconst total=Math.min(row===2?30:WALL_CARDS,items.length),split=Math.ceil(total/2);// Phone (grid): GRID_CARDS per row, the second row continuing where the first stops,\n// trimmed to whole grid lines (6 cards in 2 columns = 3 full lines, no gap)\nconst perGrid=row===2?SOCIAL_GRID_CARDS:GRID_CARDS;const gridStart=0;const gridAvailable=Math.max(0,Math.min(perGrid,items.length-gridStart));// (the second row hides a lone leftover card; the first row always shows something)\nconst gridCount=gridAvailable>=cols||row===1?gridAvailable-gridAvailable%cols:gridAvailable;items.forEach((item,index)=>{item.style.marginLeft=\"\";item.style.marginRight=\"\";if(!saved.has(item))saved.set(item,{display:item.style.display,order:item.style.order,width:item.style.width,minWidth:item.style.minWidth,flexShrink:item.style.flexShrink,justifySelf:item.style.justifySelf});const rank=order.indexOf(index);const belongs=story?rank<total:grid?rank>=gridStart&&rank<gridStart+gridCount:rank<total;item.style.display=belongs?saved.get(item).display:\"none\";item.style.order=String(rank);if(grid){item.style.width=saved.get(item).width;item.style.minWidth=saved.get(item).minWidth;item.style.flexShrink=saved.get(item).flexShrink;if(belongs&&!story)stretch(item);}else item.style.justifySelf=saved.get(item).justifySelf;if(belongs)visible.push(item);});}visible.sort((a,b)=>Number(a.style.order)-Number(b.style.order));reorder();if(story&&visible.length){// PHONE STORIES: one row that scrolls sideways and snaps each card to the centre\nconst width=Math.min(300,Math.round(window.innerWidth*.7));const set=(k,v)=>host.style.setProperty(k,v,\"important\");set(\"display\",\"flex\");set(\"flex-direction\",\"row\");set(\"flex-wrap\",\"nowrap\");set(\"align-items\",\"flex-start\");// Framer centres this list; centred content that overflows spills off the LEFT edge where it\n// can't be scrolled to, so the stories line starts at the left\nset(\"justify-content\",\"flex-start\");set(\"column-gap\",\"10px\");set(\"overflow-x\",\"auto\");set(\"overflow-y\",\"hidden\");set(\"scroll-snap-type\",\"x mandatory\");set(\"scrollbar-width\",\"none\");set(\"width\",\"100%\");// INFINITE LOOP: no empty space at the ends. The card that leaves one side is moved round\n// to the other side (see settle), so there is always a card to the left and to the right.\nvisible.forEach(item=>{const box=boxOf(item);for(const el of box===item?[item]:[item,box]){if(el!==item)keep(el);el.style.setProperty(\"width\",width+\"px\",\"important\");el.style.setProperty(\"min-width\",width+\"px\",\"important\");el.style.setProperty(\"flex\",\"0 0 auto\",\"important\");}item.style.marginLeft=\"\";item.style.marginRight=\"\";setCardHeight(item,Math.round(width*STORY_RATIO));box.classList.add(\"fm-story-card\");});stride=0;position=0;storyStride=width+10;activeEl=null;// start with the last card on the left, so the first one has a neighbour on both sides\nif(visible.length>2){visible.unshift(visible.pop());reorder();}host.scrollLeft=0;const first=visible.length>2?1:0;requestAnimationFrame(()=>{centreOn(first,\"auto\");setActive(first);});}else if(!grid&&visible.length&&row===0){// DESKTOP FLOATING CARDS\nsizeCards(FAN_WIDTH);host.style.setProperty(\"padding-top\",\"56px\",\"important\");host.style.setProperty(\"padding-bottom\",\"56px\",\"important\");host.style.setProperty(\"column-gap\",\"0px\",\"important\");visible.forEach(item=>{setCardHeight(item,FAN_HEIGHT);const box=boxOf(item);keep(box);box.classList.add(\"fm-fan-card\");box.style.marginRight=-FAN_OVERLAP+\"px\";});stride=FAN_WIDTH-FAN_OVERLAP;position=0;host.scrollLeft=0;}else if(!grid&&visible.length){const gap=parseFloat(getComputedStyle(visible[0].parentElement).columnGap)||32;const width=Math.max(row===2?SOCIAL_CARD_WIDTH:MAIN_CARD_WIDTH,Math.ceil((host.clientWidth+gap)/Math.max(1,visible.length-1)));sizeCards(width);stride=width+gap;position=row===1?stride:0;host.scrollLeft=position;}else{stride=0;position=0;host.scrollLeft=0;}};const boxAt=index=>boxOf(visible[index]);function setActive(index){if(!story||!visible.length)return;const box=boxAt(index);active=index;if(box===activeEl)return;activeEl=box;visible.forEach(item=>{const b=boxOf(item);b.classList.toggle(\"is-active\",b===box);});box.appendChild(bar);const fill=bar.firstChild;fill.style.animation=\"none\";void fill.offsetWidth;fill.style.animation=`fm-story-fill ${STORY_MS}ms linear forwards`;fill.style.animationPlayState=touching?\"paused\":\"running\";storyStart=performance.now();}const centred=()=>{const middle=host.getBoundingClientRect().left+host.clientWidth/2;let best=0,bestDistance=Infinity;visible.forEach((item,k)=>{const r=boxOf(item).getBoundingClientRect();const d=Math.abs(r.left+r.width/2-middle);if(d<bestDistance){bestDistance=d;best=k;}});return best;};function centreOn(index,behavior){const box=boxAt(index);const hr=host.getBoundingClientRect(),br=box.getBoundingClientRect();host.scrollTo({left:host.scrollLeft+(br.left-hr.left)-(host.clientWidth-br.width)/2,behavior});}const goTo=index=>{centreOn(index,\"smooth\");setActive(index);};// once the row stops moving: rotate the cards so the centred one is always the second,\n// with the same view (the scroll position moves by one card to make up for it)\nconst settle=()=>{if(!story||touching||!visible.length)return;let k=centred();if(visible.length>2&&k!==1){host.style.setProperty(\"scroll-snap-type\",\"none\",\"important\");while(k>1){visible.push(visible.shift());reorder();host.scrollLeft-=storyStride;k--;}while(k<1){visible.unshift(visible.pop());reorder();host.scrollLeft+=storyStride;k++;}requestAnimationFrame(()=>host.style.setProperty(\"scroll-snap-type\",\"x mandatory\",\"important\"));}setActive(k);};const onScroll=()=>{if(!story||touching)return;clearTimeout(settleTimer);settleTimer=setTimeout(settle,140);};const touchStart=()=>{if(!story)return;touching=true;bar.firstChild.style.animationPlayState=\"paused\";};const touchEnd=()=>{if(!story)return;touching=false;bar.firstChild.style.animationPlayState=\"running\";// wait for the swipe's glide to finish (each scroll event pushes this back)\nclearTimeout(settleTimer);settleTimer=setTimeout(settle,220);};const normalize=()=>{if(stride<=0||visible.length<2)return;while(position>=stride){visible.push(visible.shift());position-=stride;reorder();}while(position<0){visible.unshift(visible.pop());position+=stride;reorder();}};const enter=()=>{hovered=true;};const leave=()=>{hovered=false;pauseUntil=performance.now()+350;};const wheel=()=>{pauseUntil=performance.now()+1e3;};const down=event=>{if(event.pointerType!==\"mouse\"||event.button!==0||wasGrid)return;dragging=true;moved=false;startX=event.clientX;startScroll=host.scrollLeft;};const move=event=>{if(!dragging)return;const delta=event.clientX-startX;if(Math.abs(delta)>6)moved=true;if(moved){position=startScroll-delta;const before=position;normalize();startScroll+=position-before;host.scrollLeft=position;event.preventDefault();}};const up=()=>{if(dragging){dragging=false;pauseUntil=performance.now()+700;}};const click=event=>{if(moved){event.preventDefault();event.stopPropagation();moved=false;}};const tick=time=>{const dt=last?Math.min((time-last)/1e3,.05):0;last=time;if(story){if(touching)storyStart+=dt*1e3;else if(visible.length>1&&time-storyStart>STORY_MS&&!window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches)goTo((active+1)%visible.length);frame=requestAnimationFrame(tick);return;}if(stride>0&&!wasGrid&&!hovered&&!dragging&&time>pauseUntil&&!window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches){// top and third rows move left, the bottom row moves right\nposition+=(row===1?-1:1)*(row===2?SOCIAL_SPEED:FAN_SPEED)*dt;normalize();host.scrollLeft=position;}else if(!dragging)position=host.scrollLeft;frame=requestAnimationFrame(tick);};const observer=new MutationObserver(setup);observer.observe(host,{childList:true,subtree:true});const resize=new ResizeObserver(setup);resize.observe(host);setup();frame=requestAnimationFrame(tick);host.addEventListener(\"mouseenter\",enter);host.addEventListener(\"mouseleave\",leave);host.addEventListener(\"wheel\",wheel,{passive:true});host.addEventListener(\"pointerdown\",down);window.addEventListener(\"pointermove\",move,{passive:false});window.addEventListener(\"pointerup\",up);host.addEventListener(\"click\",click,true);host.addEventListener(\"scroll\",onScroll,{passive:true});host.addEventListener(\"touchstart\",touchStart,{passive:true});host.addEventListener(\"touchend\",touchEnd,{passive:true});return()=>{clearTimeout(settleTimer);host.removeEventListener(\"scroll\",onScroll);host.removeEventListener(\"touchstart\",touchStart);host.removeEventListener(\"touchend\",touchEnd);observer.disconnect();resize.disconnect();cancelAnimationFrame(frame);mounted=Math.max(0,mounted-1);host.removeEventListener(\"mouseenter\",enter);host.removeEventListener(\"mouseleave\",leave);host.removeEventListener(\"wheel\",wheel);host.removeEventListener(\"pointerdown\",down);window.removeEventListener(\"pointermove\",move);window.removeEventListener(\"pointerup\",up);host.removeEventListener(\"click\",click,true);for(const[item,style]of saved)Object.assign(item.style,style);unstretchCards();host.style.cssText=hostCss;if(socialFrame)socialFrame.style.background=frameBackground;};},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:attach});});}export function withRandomProjectOrder(Component){return projectRow(Component,0);}// THIRD ROW: put this on the collection list that shows only the \"Social Presence\" projects\nexport function withSocialProjectRow(Component){return projectRow(Component,2);}export function withBottomProjectOrder(Component){return projectRow(Component,1);}// ================================================================ NERD MODE (its own page)\n// The list shows 4 random projects, each sealed in a foil booster pack. Click (or tap) a pack to tear it\n// open and reveal the project; once all 4 are open, the \"See full collection\" button (a layer with that\n// name on the page) appears. Every visit draws a new set of 4.\nconst BOOSTER_COUNT=4;// the little \"set\" names printed on the packs (one per pack, in a random order)\nconst BOOSTER_SETS=[\"First Edition\",\"Deep Cuts\",\"Side Quests\",\"Late Night\"];const BOOSTER_RATIO=1.55// pack height compared to its width\n;const BOOSTER_CSS=`\n/* ---------- the card under the pack */\n.fm-booster{position:relative;border-radius:14px !important;overflow:visible !important;box-shadow:0 16px 34px rgba(0,0,0,.16);\n  --c:var(--token-EmRR1sA4F, #ED6E6E);--cd:var(--token-SuJnOar4J, #b8433a)}\n.fm-booster.alt{--c:var(--fm-accent2, #6EC6ED);--cd:var(--fm-accent2-deep, #2b7fa8)}\n/* once open: a clean rounded card, no Framer hover veil or caption (the card has its own text panel) */\n.fm-booster.is-done{overflow:hidden !important;background:#fff !important}\n.fm-booster > div.hover{display:none !important}\n/* the card's own Framer title (it shows on hover) is replaced by the text panel */\n.fm-booster.is-done > :not(.fm-tcard) :is(p,h1,h2,h3,h4,h5,h6):not([data-framer-name$=\" panel\"] *){opacity:0 !important}\n.fm-booster::after{content:none !important}\n.fm-booster.is-done.is-tilting{transform:perspective(1000px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) scale(1.03) !important;transition:transform .08s linear !important;box-shadow:0 26px 44px rgba(0,0,0,.22)}\n.fm-booster.is-done{transition:transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease !important}\n/* TRADING CARD look: a cream frame, a fixed text panel, holo foil and a glare that follow the mouse */\n.fm-tcard{position:absolute;inset:0;z-index:20;pointer-events:none;border-radius:14px;overflow:hidden;display:flex;flex-direction:column;padding:7px 7px 0;box-shadow:inset 0 0 0 1px rgba(22,22,22,.08)}\n/* the picture window: rounded, framed by the white card (its huge shadow paints the frame) */\n.fm-tcard-window{position:relative;flex:1 1 auto;min-height:0;border-radius:9px;box-shadow:0 0 0 40px #fff, inset 0 0 0 1px rgba(22,22,22,.08)}\n.fm-tcard-holo{position:absolute;inset:0;z-index:3;border-radius:14px;mix-blend-mode:color-dodge;opacity:0;transition:opacity .3s;\n  background:linear-gradient(115deg, transparent 20%, rgba(255,120,200,.5) 35%, rgba(120,225,255,.55) 48%, rgba(255,240,150,.5) 60%, transparent 75%) var(--mx,50%) var(--my,50%) / 260% 260% no-repeat}\n.fm-tcard-glare{position:absolute;inset:0;z-index:3;border-radius:14px;opacity:0;transition:opacity .3s;mix-blend-mode:soft-light;background:radial-gradient(circle at var(--mx,50%) var(--my,30%), rgba(255,255,255,.8), transparent 50%)}\n.fm-booster.is-tilting :is(.fm-tcard-holo,.fm-tcard-glare){opacity:.6}\n.fm-tcard-info{position:relative;flex:none;display:flex;flex-direction:column;gap:4px;margin:0 -7px;padding:10px 13px 13px;background:#fff;color:#161616;text-align:left}\n.fm-tcard-no{display:inline-flex;align-items:center;gap:6px;font:700 9px/1 Figtree, Inter, sans-serif;letter-spacing:.16em;text-transform:uppercase;color:var(--cd)}\n.fm-tcard-no::before{content:\"\";width:14px;height:4px;border-radius:2px;background:var(--c)}\n.fm-tcard-info b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font:800 15px/1.15 Figtree, Inter, sans-serif;letter-spacing:-.01em}\n.fm-tcard-info small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font:italic 500 11.5px/1.3 \"Instrument Sans\", Figtree, sans-serif;color:rgba(22,22,22,.62)}\n.fm-tcard-info small:empty{display:none}\n.fm-tcard::before{content:\"\";position:absolute;inset:0;z-index:2;border-radius:14px;opacity:0;background:linear-gradient(110deg, transparent 30%, rgba(255,255,255,.8) 48%, transparent 66%) -160% 0 / 260% 100% no-repeat}\n.fm-booster.is-reveal .fm-tcard::before{opacity:1;animation:fm-bshine .9s .3s ease-out forwards}\n.fm-booster.is-packed{box-shadow:none !important;transform:none !important;background:transparent !important;background-color:transparent !important;border-color:transparent !important}\n.fm-booster.is-packed > :not(.fm-bpack){visibility:hidden !important}\n.fm-booster.is-packed::after{content:none !important}\n.fm-booster [data-framer-name^=\"Project cover image\"]{border-radius:14px !important;overflow:hidden !important}\n.fm-booster [data-framer-name=\"Project cover image vertical\"]:has(img){display:block !important}\n.fm-booster > div.hover{border-radius:14px !important}\n/* ---------- the pack */\n.fm-bpack{position:absolute;inset:0;z-index:30;cursor:pointer;perspective:1000px;-webkit-tap-highlight-color:transparent;outline:none;\n  --c:var(--token-EmRR1sA4F, #ED6E6E);--cd:var(--token-SuJnOar4J, #b8433a);\n  animation:fm-bfloat 4.4s ease-in-out infinite;animation-delay:calc(var(--i) * -1.1s)}\n.fm-bpack.alt{--c:var(--fm-accent2, #6EC6ED);--cd:var(--fm-accent2-deep, #2b7fa8)}\n/* soft shadow on the \"floor\" */\n.fm-bpack::before{content:\"\";position:absolute;left:12%;right:12%;bottom:-16px;height:22px;border-radius:50%;background:radial-gradient(closest-side, rgba(0,0,0,.28), transparent);filter:blur(3px);animation:fm-bshadow 4.4s ease-in-out infinite;animation-delay:inherit}\n.fm-bpack-tilt{position:absolute;inset:0;transform-style:preserve-3d;transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transition:transform .55s cubic-bezier(.22,1,.36,1)}\n.fm-bpack.is-tilting .fm-bpack-tilt{transition:transform .08s linear}\n.fm-bpack:focus-visible .fm-bpack-tilt{outline:2px solid #161616;outline-offset:5px;border-radius:8px}\n/* crimped foil ends (top and bottom): full width, flat, with a tiny ring pattern and ridges */\n.fm-bpack-top,.fm-bpack-band{position:absolute;left:0;right:0;z-index:4;overflow:hidden;background:\n  repeating-linear-gradient(90deg, rgba(0,0,0,.13) 0 1px, rgba(255,255,255,.16) 1px 2.5px, transparent 2.5px 4px) 0 0 / 100% 26% no-repeat,\n  radial-gradient(circle at 50% 50%, transparent 2.4px, rgba(255,255,255,.26) 2.4px 3.5px, transparent 3.5px) 0 0 / 14px 14px,\n  linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 45%, rgba(0,0,0,.12)),\n  var(--c);\n  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}\n.fm-bpack-top{top:0;height:13%;border-radius:7px 7px 0 0;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:4% 9px 0;transform-origin:20% 100%}\n.fm-bpack-band{bottom:0;height:7%;border-radius:0 0 7px 7px;background-position:0 100%, 0 0, 0 0, 0 0}\n.fm-bpack-mark{font:800 8.5px/1 Figtree, Inter, sans-serif;letter-spacing:.2em;color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.25);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.fm-bpack-chip{flex:none;font:700 8.5px/1 Figtree, Inter, sans-serif;letter-spacing:.06em;color:#fff;background:#161616;border-radius:4px;padding:3.5px 5px}\n/* the puffy body: a little narrower than the crimped ends, so it looks pinched at the seals and full in the middle */\n.fm-bpack-body{position:absolute;left:0;right:0;top:13%;bottom:7%;overflow:hidden;border-radius:0;background:var(--cd)}\n.fm-bpack-art{position:absolute;inset:-14%;background:center / cover no-repeat var(--c);filter:blur(10px) saturate(1.35);opacity:.9}\n.fm-bpack-tint{position:absolute;inset:0;background:linear-gradient(180deg, color-mix(in srgb, var(--c) 72%, transparent) 0%, transparent 32%, transparent 55%, color-mix(in srgb, var(--cd) 92%, transparent) 100%)}\n.fm-bpack-holo{position:absolute;inset:0;mix-blend-mode:color-dodge;opacity:.25;transition:opacity .3s;\n  background:linear-gradient(115deg, transparent 18%, rgba(255,120,200,.55) 34%, rgba(120,225,255,.6) 47%, rgba(255,240,150,.55) 60%, transparent 76%) var(--mx,50%) var(--my,50%) / 260% 260% no-repeat}\n.fm-bpack.is-tilting .fm-bpack-holo{opacity:.7}\n/* curvature: dark sides, light just inside them, darker near the seals, plus a glossy diagonal streak */\n.fm-bpack-puff{position:absolute;inset:0;pointer-events:none;background:\n  linear-gradient(90deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.08) 4%, rgba(255,255,255,.22) 9%, rgba(255,255,255,0) 22%, rgba(255,255,255,0) 76%, rgba(255,255,255,.14) 90%, rgba(0,0,0,.1) 96%, rgba(0,0,0,.36) 100%),\n  linear-gradient(180deg, rgba(0,0,0,.24) 0%, rgba(0,0,0,0) 7%, rgba(0,0,0,0) 91%, rgba(0,0,0,.26) 100%),\n  linear-gradient(118deg, transparent 38%, rgba(255,255,255,.28) 45%, rgba(255,255,255,.05) 52%, transparent 58%)}\n.fm-bpack-name{position:absolute;left:8px;right:8px;bottom:9%;text-align:center;color:#fff;text-shadow:0 1px 12px rgba(0,0,0,.35)}\n.fm-bpack-name small{display:block;margin-bottom:6px;font:700 8px/1 Figtree, Inter, sans-serif;letter-spacing:.26em;text-transform:uppercase;opacity:.9}\n.fm-bpack-name b{display:block;font:italic 600 clamp(18px, 2vw, 26px)/1 \"Instrument Sans\", Figtree, sans-serif;font-stretch:85%;letter-spacing:-.01em}\n/* the glowing seal where the pack is cut */\n.fm-bpack-seal{position:absolute;left:0;right:0;top:13%;height:4px;margin-top:-2px;z-index:5;overflow:hidden;border-radius:0;background:linear-gradient(180deg, #8fe7ff, #fff 45%, #8fe7ff);box-shadow:0 0 10px rgba(143,231,255,.95), 0 0 2px #fff}\n.fm-bpack-seal::after{content:\"\";position:absolute;top:-6px;bottom:-6px;left:-35%;width:35%;background:radial-gradient(closest-side, #fff, rgba(255,255,255,0));opacity:0}\n.fm-bpack-glare{position:absolute;inset:0;z-index:6;pointer-events:none;border-radius:7px;opacity:0;transition:opacity .3s;mix-blend-mode:soft-light;background:radial-gradient(circle at var(--mx,50%) var(--my,30%), rgba(255,255,255,.75), transparent 48%)}\n.fm-bpack.is-tilting .fm-bpack-glare{opacity:1}\n/* ---------- opening: shake, cut along the seal, the top flies off, the pack drops away, the card rises */\n.fm-bpack.is-opening,.fm-bpack.is-opening::before{animation:none}\n.fm-bpack.is-opening .fm-bpack-tilt{animation:fm-bshake .4s ease-in-out}\n.fm-bpack.is-cut .fm-bpack-seal::after{animation:fm-bcut .36s ease-out forwards}\n.fm-bpack.is-open::before{opacity:0;transition:opacity .3s}\n.fm-bpack.is-open .fm-bpack-top{animation:fm-btop .75s cubic-bezier(.2,.7,.3,1) forwards}\n.fm-bpack.is-open :is(.fm-bpack-body,.fm-bpack-band,.fm-bpack-seal,.fm-bpack-glare){animation:fm-bdrop .8s .12s cubic-bezier(.6,0,.85,.3) forwards}\n.fm-booster.is-reveal{animation:fm-brise .85s cubic-bezier(.2,.9,.3,1.15)}\n@keyframes fm-bfloat{0%,100%{translate:0 0}50%{translate:0 -7px}}\n@keyframes fm-bshadow{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(.88);opacity:.7}}\n@keyframes fm-bshake{0%,100%{transform:none}20%{transform:rotate(-2.5deg) scale(1.03)}40%{transform:rotate(2.5deg) scale(1.05)}60%{transform:rotate(-1.5deg) scale(1.04)}80%{transform:rotate(1deg) scale(1.03)}}\n@keyframes fm-bcut{0%{left:-35%;opacity:1}100%{left:110%;opacity:1}}\n@keyframes fm-btop{0%{transform:none;opacity:1}100%{transform:translate(55%,-260%) rotate(32deg);opacity:0}}\n@keyframes fm-bdrop{0%{transform:none;opacity:1}100%{transform:translateY(125%);opacity:0}}\n@keyframes fm-brise{0%{transform:translateY(28px) scale(.9);filter:brightness(1.5)}100%{transform:none;filter:none}}\n@keyframes fm-bshine{to{background-position:160% 0}}\n/* ---------- the \"See full collection\" button appears when all 4 are open */\n[data-framer-name=\"See full collection\"]{opacity:0;pointer-events:none;transform:translateY(10px);transition:opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1)}\nbody.fm-packs-done [data-framer-name=\"See full collection\"]{opacity:1;pointer-events:auto;transform:none}\n/* ---------- \"welcome to nerd mode!\": a little ink tape, like the rest of the site */\n[data-framer-name=\"Nerd mode label\"] p *{font-family:\"Instrument Sans\", Figtree, sans-serif !important;font-style:italic !important;font-weight:600 !important;letter-spacing:0 !important;color:inherit !important}\n[data-framer-name=\"Nerd mode label\"] p{display:inline-block !important;background:#161616 !important;color:var(--token-EmRR1sA4F, #ED6E6E) !important;padding:.3em .7em .35em !important;border-radius:.4em !important;font-family:\"Instrument Sans\", Figtree, sans-serif !important;font-style:italic !important;font-weight:600 !important;letter-spacing:0 !important}\n/* ---------- FULLSCREEN STAGE: until every pack is open, the packs take the whole page (header included) */\nbody.fm-nerd-full{overflow:hidden !important}\nbody.fm-nerd-full [data-framer-name=\"Nerd mode stage\"]{position:fixed !important;inset:0 !important;z-index:2147483000 !important;width:100% !important;max-width:none !important;height:100% !important;margin:0 !important;overflow-y:auto !important;overflow-x:hidden !important;justify-content:safe center !important;padding:40px 24px 56px !important;\n  background:radial-gradient(60% 50% at 50% 62%, color-mix(in srgb, var(--token-EmRR1sA4F, #ED6E6E) 16%, transparent), transparent 70%), radial-gradient(40% 35% at 20% 20%, color-mix(in srgb, var(--fm-accent2, #6EC6ED) 12%, transparent), transparent 70%), var(--token-ZwVt2FoMS, #FBF9F4) !important;\n  animation:fm-nerd-in .5s ease both}\nbody.fm-nerd-full.fm-nerd-leaving [data-framer-name=\"Nerd mode stage\"]{animation:fm-nerd-out .5s ease forwards}\n@keyframes fm-nerd-in{from{opacity:0}to{opacity:1}}\n@keyframes fm-nerd-out{to{opacity:0;transform:scale(.98)}}\n@media (prefers-reduced-motion: reduce){.fm-bpack,.fm-bpack::before{animation:none}.fm-bpack-tilt{transition:none}}\n`;function addBoosterCss(){if(typeof document===\"undefined\")return;let tag=document.getElementById(\"fm-booster-css\");if(!tag){tag=document.createElement(\"style\");tag.id=\"fm-booster-css\";document.head.appendChild(tag);}if(tag.textContent!==BOOSTER_CSS)tag.textContent=BOOSTER_CSS;}function shuffledCopy(list){const a=list.slice();for(let i=a.length-1;i>0;i--){const j=Math.floor(Math.random()*(i+1));const t=a[i];a[i]=a[j];a[j]=t;}return a;}const boosterPackHtml=(n,set)=>'<div class=\"fm-bpack-tilt\">'+'<div class=\"fm-bpack-body\"><div class=\"fm-bpack-art\"></div><div class=\"fm-bpack-tint\"></div><div class=\"fm-bpack-holo\"></div>'+'<div class=\"fm-bpack-name\"><small>Booster pack</small><b>'+set+'</b></div><div class=\"fm-bpack-puff\"></div></div>'+'<div class=\"fm-bpack-band\"></div>'+'<div class=\"fm-bpack-top\"><span class=\"fm-bpack-mark\">FILIPE MARQUES</span><span class=\"fm-bpack-chip\">0'+n+\"</span></div>\"+'<div class=\"fm-bpack-seal\"></div><div class=\"fm-bpack-glare\"></div>'+\"</div>\";export function withBoosterPacks(Component){return /*#__PURE__*/React.forwardRef(function BoosterPacks(props,forwardedRef){const ref=React.useRef(null);const attach=React.useCallback(element=>{ref.current=element;if(typeof forwardedRef===\"function\")forwardedRef(element);else if(forwardedRef)forwardedRef.current=element;},[forwardedRef]);React.useEffect(()=>{const host=ref.current;if(!host||typeof window===\"undefined\")return;addBoosterCss();const reduced=window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;const hostCss=host.style.cssText;const touched=new Map;const keep=el=>{if(!touched.has(el))touched.set(el,el.style.cssText);};const fills=new WeakMap;const timers=[];let picked=[];let pickedItems=[];let opened=0;document.body.classList.remove(\"fm-packs-done\");const cardOf=item=>item.matches('[data-framer-name=\"Project card\"]')?item:item.querySelector('[data-framer-name=\"Project card\"]')||item;// give a card a new size; the layers that filled its old height keep filling it\nconst sizeCard=(card,w,h)=>{if(!fills.has(card)){const before=card.getBoundingClientRect().height;fills.set(card,before?Array.from(card.querySelectorAll(\"*\")).filter(el=>!el.closest(\".fm-bpack\")&&el.getBoundingClientRect().height>=before-1):[]);}keep(card);card.style.setProperty(\"width\",w+\"px\",\"important\");card.style.setProperty(\"height\",h+\"px\",\"important\");card.style.setProperty(\"min-height\",\"0px\",\"important\");card.style.setProperty(\"flex\",\"0 0 auto\",\"important\");for(const el of fills.get(card)){keep(el);el.style.setProperty(\"height\",\"100%\",\"important\");el.style.setProperty(\"min-height\",\"0px\",\"important\");}};const layout=()=>{if(!picked.length)return;const width=host.clientWidth||window.innerWidth;const wide=width>=980;const cols=wide?4:2;const gap=wide?40:16;const w=Math.floor(Math.min(232,(width-gap*(cols-1))/cols));host.style.setProperty(\"column-gap\",gap+\"px\",\"important\");host.style.setProperty(\"row-gap\",(wide?40:48)+\"px\",\"important\");picked.forEach(card=>sizeCard(card,w,Math.round(w*BOOSTER_RATIO)));// the wrapper around each card (phones) takes the card's width, so two fit side by side\npickedItems.forEach((item,i)=>{if(item===picked[i])return;keep(item);item.style.setProperty(\"width\",w+\"px\",\"important\");item.style.setProperty(\"max-width\",w+\"px\",\"important\");item.style.setProperty(\"flex\",\"0 0 auto\",\"important\");});};const addPack=(card,i,set)=>{card.classList.add(\"fm-booster\",\"is-packed\");if(i%2)card.classList.add(\"alt\");const face=document.createElement(\"div\");face.className=\"fm-tcard\";face.innerHTML='<div class=\"fm-tcard-window\"></div><div class=\"fm-tcard-holo\"></div><div class=\"fm-tcard-glare\"></div>'+'<div class=\"fm-tcard-info\"><span class=\"fm-tcard-no\"></span><b></b><small></small></div>';const title=(card.getAttribute(\"aria-label\")||\"\").trim();const about=(card.getAttribute(\"aria-description\")||\"\").trim();face.querySelector(\".fm-tcard-no\").textContent=\"No. 0\"+(i+1)+\" / 0\"+BOOSTER_COUNT;face.querySelector(\"b\").textContent=title;face.querySelector(\"small\").textContent=about;card.appendChild(face);const img=card.querySelector('[data-framer-name=\"Project cover image vertical\"] img')||card.querySelector(\"img\");const src=img&&(img.currentSrc||img.getAttribute(\"src\"))||\"\";const pack=document.createElement(\"div\");pack.className=\"fm-bpack\"+(i%2?\" alt\":\"\");pack.setAttribute(\"role\",\"button\");pack.setAttribute(\"tabindex\",\"0\");pack.setAttribute(\"aria-label\",\"Open booster pack \"+(i+1));pack.style.setProperty(\"--i\",String(i));pack.innerHTML=boosterPackHtml(i+1,set);const art=pack.querySelector(\".fm-bpack-art\");if(art&&src)art.style.backgroundImage='url(\"'+src.replace(/\"/g,\"%22\")+'\")';card.appendChild(pack);};const setup=()=>{// OPENED STRAIGHT FROM THE LINK (or refreshed): Framer first shows a ready-made copy of the page and\n// then swaps in the live one, replacing the cards. If the cards we wrapped were thrown away, start over.\nif(picked.length){const lost=pickedItems.some(item=>!item.isConnected)||opened<picked.length&&!host.querySelector(\".fm-bpack\");if(!lost)return;picked=[];pickedItems=[];opened=0;timers.forEach(clearTimeout);timers.length=0;document.body.classList.remove(\"fm-packs-done\",\"fm-nerd-leaving\");}const items=Array.from(host.children);if(!items.length)return;// at least 2 of the packs hold High relevance projects (or the next best), the rest random\nconst chosen=new Set(pickByRelevance(items,Math.min(BOOSTER_COUNT,items.length),2).map(i=>items[i]));items.forEach(item=>{if(chosen.has(item))return;keep(item);item.style.setProperty(\"display\",\"none\",\"important\");});host.style.setProperty(\"display\",\"flex\",\"important\");host.style.setProperty(\"flex-wrap\",\"wrap\",\"important\");host.style.setProperty(\"justify-content\",\"center\",\"important\");host.style.setProperty(\"align-items\",\"flex-start\",\"important\");host.style.setProperty(\"overflow\",\"visible\",\"important\");host.style.setProperty(\"padding\",\"18px 0 10px\",\"important\");const sets=shuffledCopy(BOOSTER_SETS);pickedItems=items.filter(item=>chosen.has(item));picked=pickedItems.map(cardOf);picked.forEach((card,i)=>addPack(card,i,sets[i%sets.length]));// (not in the Framer editor, where a fixed layer would cover the canvas)\nif(RenderTarget.current()!==RenderTarget.canvas)document.body.classList.add(\"fm-nerd-full\");layout();// the stage changed size: measure again once it has settled\nrequestAnimationFrame(layout);};const packOf=event=>{const t=event.target;return t instanceof Element?t.closest(\".fm-bpack\"):null;};const resetTilt=pack=>{pack.classList.remove(\"is-tilting\");pack.style.removeProperty(\"--rx\");pack.style.removeProperty(\"--ry\");};const open=pack=>{if(pack.classList.contains(\"is-opening\"))return;const card=pack.parentElement;resetTilt(pack);pack.classList.add(\"is-opening\");const finish=()=>{pack.remove();card.classList.remove(\"is-packed\");card.classList.add(\"is-done\");opened++;if(opened>=picked.length){// let the last card be seen for a moment, then leave the fullscreen stage\ntimers.push(setTimeout(()=>{document.body.classList.add(\"fm-nerd-leaving\");timers.push(setTimeout(()=>{document.body.classList.remove(\"fm-nerd-full\",\"fm-nerd-leaving\");document.body.classList.add(\"fm-packs-done\");layout();window.scrollTo(0,0);},reduced?0:480));},reduced?0:1300));}};if(reduced)return finish();timers.push(setTimeout(()=>pack.classList.add(\"is-cut\"),380));timers.push(setTimeout(()=>{pack.classList.add(\"is-open\");card.classList.remove(\"is-packed\");card.classList.add(\"is-reveal\");},740));timers.push(setTimeout(finish,1650));timers.push(setTimeout(()=>card.classList.remove(\"is-reveal\"),2300));};// a press on a pack must not reach the card (that would open the project window right away)\nconst block=event=>{const pack=packOf(event);if(!pack)return;event.stopPropagation();if(event.type===\"click\"){event.preventDefault();open(pack);}};const key=event=>{if(event.key!==\"Enter\"&&event.key!==\" \")return;const pack=packOf(event);if(!pack)return;event.preventDefault();event.stopPropagation();open(pack);};// desktop: the pack tilts towards the mouse, with a moving holographic shine\nconst tiltTarget=event=>{const t=event.target;if(!(t instanceof Element))return null;return t.closest(\".fm-bpack\")||t.closest(\".fm-booster.is-done\");};const tilt=event=>{const pack=tiltTarget(event);if(!pack||event.pointerType!==\"mouse\"||pack.classList.contains(\"is-opening\"))return;const r=pack.getBoundingClientRect();const x=(event.clientX-r.left)/r.width;const y=(event.clientY-r.top)/r.height;pack.style.setProperty(\"--rx\",((.5-y)*16).toFixed(2)+\"deg\");pack.style.setProperty(\"--ry\",((x-.5)*22).toFixed(2)+\"deg\");pack.style.setProperty(\"--mx\",(x*100).toFixed(1)+\"%\");pack.style.setProperty(\"--my\",(y*100).toFixed(1)+\"%\");pack.classList.add(\"is-tilting\");};const untilt=event=>{const pack=tiltTarget(event);if(!pack)return;const to=event.relatedTarget;if(to instanceof Node&&pack.contains(to))return;resetTilt(pack);};const events=[\"pointerdown\",\"pointerup\",\"mousedown\",\"mouseup\",\"click\"];events.forEach(type=>host.addEventListener(type,block,true));host.addEventListener(\"keydown\",key,true);host.addEventListener(\"pointermove\",tilt);host.addEventListener(\"pointerout\",untilt);const observer=new MutationObserver(setup);observer.observe(host,{childList:true});window.addEventListener(\"resize\",layout);setup();const recheck=[400,1200,2500].map(ms=>setTimeout(setup,ms));return()=>{recheck.forEach(clearTimeout);observer.disconnect();window.removeEventListener(\"resize\",layout);events.forEach(type=>host.removeEventListener(type,block,true));host.removeEventListener(\"keydown\",key,true);host.removeEventListener(\"pointermove\",tilt);host.removeEventListener(\"pointerout\",untilt);timers.forEach(clearTimeout);host.querySelectorAll(\".fm-bpack\").forEach(p=>p.remove());host.querySelectorAll(\".fm-tcard\").forEach(p=>p.remove());picked.forEach(c=>c.classList.remove(\"fm-booster\",\"is-packed\",\"is-reveal\",\"is-done\",\"is-tilting\",\"alt\"));for(const[el,css]of touched)el.style.cssText=css;host.style.cssText=hostCss;document.body.classList.remove(\"fm-packs-done\",\"fm-nerd-full\",\"fm-nerd-leaving\");};},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:attach});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withRandomProjectOrder\":{\"type\":\"reactHoc\",\"name\":\"withRandomProjectOrder\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withBottomProjectOrder\":{\"type\":\"reactHoc\",\"name\":\"withBottomProjectOrder\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSocialProjectRow\":{\"type\":\"reactHoc\",\"name\":\"withSocialProjectRow\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withBoosterPacks\":{\"type\":\"reactHoc\",\"name\":\"withBoosterPacks\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProjectOrder.map"],"mappings":"A,kMAIA,SAASgB,EAAYC,EAAQ,CAAC,IAAMC,EAAK,iBAAiBD,CAAO,CAAC,CAAC,oBAAoB,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,OAAOP,GAAGA,GAAGA,IAAI,MAAM,CAAC,CAAC,OAAO,OAAO,KAAK,IAAI,EAAEQ,CAAI,CAAE,CAoCjK,SAASC,GAAY,CAAC,GAAG,OAAO,SAAW,IAAY,OAAO,IAAIC,EAAI,SAAS,eAAe,aAAa,EAAMA,IAAKA,EAAI,SAAS,cAAc,OAAO,EAAEA,EAAI,GAAG,cAAc,SAAS,KAAK,YAAYA,CAAG,GAAMA,EAAI,cAAcC,IAASD,EAAI,YAAYC,EAAS,CAExQ,SAASC,EAAYC,EAAK,CAEiH,OAAxIA,EAAK,cAAc,qCAAqC,EAAS,EAAKA,EAAK,cAAc,oCAAoC,EAAS,EAAS,CAAE,CAAC,SAASC,EAAeC,EAAE,CAAC,IAAI,IAAIC,EAAED,EAAE,OAAO,EAAEC,EAAE,EAAEA,IAAI,CAAC,IAAMC,EAAE,KAAK,MAAM,KAAK,OAAO,GAAGD,EAAE,EAAE,EAAQE,EAAEH,EAAEC,GAAGD,EAAEC,GAAGD,EAAEE,GAAGF,EAAEE,GAAGC,CAAE,CAAC,OAAOH,CAAE,CAE9R,SAASI,GAAgBC,EAAMC,EAAMC,EAAQ,CAAC,IAAMC,EAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAEH,EAAM,SAASP,EAAKG,IAAIO,EAAMX,EAAYC,CAAI,E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