{"version":3,"file":"ProjectFolio.DY2h6K-D.mjs","names":["_Fragment","p","React.useRef","React.useState","React.Fragment","__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","x","l","_e","p","init_jsx_runtime","ce","de","init_framer_BpuvUAiZ","ControlType","Link","addPropertyControls","init_GalleryEdges","projectEdges","panelsFor","panels","note","copy","editorialEnd","key","extraWord","previewCopy","excerpt","chapter","i","isCopilot","mediaOrder","slot","source","image","video","opening","panel","paragraphs","s","Passage","text","website","ProjectFolio","projectYear","p$1","rail","stepPanel","dialog","scene","open","setOpen","closing","setClosing","inlinePlayer","resumeAt","time","player","position","finishClose","expanded","closeCard","timer","ends","setEnds","field","track","motion","openingArticle","station","finalLeaf","summary","edges","lift","renderedLeft","measure","bounds","left","max","start","end","old","goal","frame","lastTime","lastWritten","column","anchors","wheelDirection","responseMs","leaves","host","stop","layout","leaf","frameRect","summaryX","endPadding","textInset","inset","article","full","heading","headingHeight","available","button","originals","previews","remaining","original","index","gap","lineHeight","height","room","lines","cut","preview","clamp","el","value","write","tick","dt","moveTo","animate","from","direction","wheel","e","delta","pixels","unit","sign","next","size","element","videos","visible","sync","observer","entry","entries","onVisibility","event","css","part","socialLinks","name","href","string","controls","init_ProjectFolio"],"sources":["https:/framerusercontent.com/modules/evLI8O6qlv49SEG5S1n0/UYdzczYPyk7pS4Kx9ssS/ProjectFolio.js"],"sourcesContent":["// @ts-ignore Framer resolves this project-local module in the preview and publish bundles.\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{projectEdges}from\"https://framerusercontent.com/modules/qhVMIqffmrAgYEK7WJIT/riBAb3y7M2ODSldZ7ysk/GalleryEdges.js\";import*as React from\"react\";import{Link,addPropertyControls,ControlType}from\"framer\";const socialLinks=[[\"LinkedIn\",\"https://www.linkedin.com/in/mariavareva\"],[\"Instagram\",\"https://www.instagram.com/mariavareva?igsh=MTQ4c3UxbTRiamp1&utm_source=qr\"],[\"X\",\"https://x.com/mariavareva\"],[\"GitHub\",\"https://github.com/mvareva\"]];function panelsFor(p){const panels=[];const note=(key,title,copy)=>{if(!copy?.trim())return;// The four opening paragraphs of Designing autonomy establish the preview length.\nconst editorialEnd=p.title===\"Hints\"&&key===\"chapter1\"?copy.search(/^\\s*Autonomy is also set\\b/m):-1;const extraWord=Array.from(copy.matchAll(/\\S+/g))[119];let previewCopy;if(editorialEnd>0){previewCopy=copy.slice(0,editorialEnd).trimEnd();}else if(extraWord?.index!==undefined){const excerpt=copy.slice(0,extraWord.index).trimEnd();previewCopy=/[.!?…][”\"’)]?$/.test(excerpt)?excerpt:excerpt+\"…\";}panels.push({key,title,copy,previewCopy});};const chapter=i=>note(\"chapter\"+i,p[\"label\"+i],p[\"body\"+i]);const isCopilot=p.title.trim().toLowerCase()===\"copilot money\";const mediaOrder=isCopilot?[1,3,5,4,8,6,7,2,9]:[1,2,3,4,5,6,7,8,9];for(let i=1;i<=mediaOrder.length;i++){const slot=mediaOrder[i-1];const source=p[\"image\"+slot];const image=typeof source===\"string\"?{src:source}:source;const video=p[\"video\"+slot];if(image?.src||video)panels.push({key:\"media\"+i,image,video});if(i===(isCopilot?2:1))note(\"problem\",\"Problem\",p.problem);if(i===2){if(p.extended)chapter(1);note(\"approach\",\"Solutions\",p.solution);}if(i===3&&p.extended)chapter(2);if(i===5&&p.extended)chapter(3);if(i===7&&p.extended)chapter(4);}note(\"result\",\"Results\",p.result);note(\"details\",\"Project details\",p.details);if(isCopilot){const opening=panels.filter(panel=>panel.video||panel.image?.src).slice(0,2);return[...opening,...panels.filter(panel=>!opening.includes(panel))];}return panels;}function paragraphs(copy){return copy.split(/\\n+/).map(s=>s.trim()).filter(Boolean);}function Passage({panel,website}){return /*#__PURE__*/_jsxs(_Fragment,{children:[paragraphs(panel.copy||\"\").map((text,i)=>/*#__PURE__*/_jsx(\"p\",{children:text},i)),panel.key===\"details\"&&website&&/*#__PURE__*/_jsx(\"a\",{className:\"site text-action\",href:website,children:\"Website\"})]});}const css=`\n\n.mv-folio,.mv-folio *{box-sizing:border-box}\n.mv-folio[data-hints]{--card-start:12cqw}\n.mv-folio{--card-start:10.4cqw;container:project-page / inline-size;position:relative;width:100%;min-width:0;overflow:hidden;color:#111;background:#fff;font:400 13px/1.37 Geist,Arial,sans-serif;letter-spacing:-.012em;-webkit-font-smoothing:antialiased}\n.mv-folio header{position:relative;z-index:2;pointer-events:none;display:grid;grid-template-columns:2fr 1fr 1fr;align-items:start;padding:var(--project-block-edge) 8px 0;gap:8px}\n.mv-folio header a,.mv-folio header button{pointer-events:auto}\n.mv-folio a{color:inherit;text-decoration:none}\n.mv-folio button{font:inherit;letter-spacing:inherit;color:inherit;cursor:pointer;border:0;background:none;padding:0}\n.mv-folio .project-heading{grid-column:1 / span 2;display:grid;grid-template-columns:subgrid;align-items:start}\n.mv-folio .project-year{grid-column:2;grid-row:2}\n.mv-folio .project-identity{display:flex;align-items:baseline;column-gap:clamp(12px,1.2vw,20px);grid-column:1;grid-row:1;align-self:start;justify-self:start;margin-inline-start:calc(var(--card-start) + var(--opening-text-inset,0px) - var(--header-side,8px))}\n.mv-folio .project-heading h1{grid-column:2;grid-row:1;align-self:start}\n.mv-folio .text-action,.mv-folio .project-heading h1{color:#111;font-family:inherit;font-weight:400;font-size:13px;line-height:1.4;letter-spacing:0}\n.mv-folio .text-action{position:relative;display:inline-block;width:max-content;text-decoration:none}\n.mv-folio .text-action::after{content:\"\";position:absolute;left:0;right:0;bottom:-.3px;height:1.5px;background:currentColor;transform:scaleX(0);transform-origin:right;transition:transform .24s cubic-bezier(.22,.75,.26,1)}\n@media(hover:hover){.mv-folio .text-action:hover::after{transform:scaleX(1);transform-origin:left}}\n.mv-folio .text-action:focus-visible::after{transform:scaleX(1);transform-origin:left}\n.mv-folio .text-action::before{content:\"\";position:absolute;inset:-8px -5px -10px}\n.mv-folio h1,.mv-folio h2,.mv-folio p{margin:0}\n.mv-folio :is(h1,h2,button,.text-action,.discipline,.project-footer){text-transform:lowercase}\n.mv-folio h2{font:400 14px/1.25 Geist,Arial,sans-serif;letter-spacing:-.025em}\n.mv-folio header{font-family:inherit;font-size:13px;font-weight:400;line-height:1.37;letter-spacing:-.012em;color:#111}\n.mv-folio header p,.mv-folio .leaf p{font:inherit;letter-spacing:inherit}\n.mv-folio .project-heading h1{line-height:inherit}\n.mv-folio header p{max-width:36ch}\n.mv-folio .subtle{color:#676767}\n.mv-folio .project-masthead{position:absolute;top:var(--project-block-edge);left:clamp(20px,2.2cqw,42px);font:400 13px/1.4 Geist,Arial,sans-serif;letter-spacing:0}\n.mv-folio .designer-name{white-space:nowrap;text-transform:none}\n.mv-folio header .discipline,.mv-folio .leaf h2,.mv-folio .dialog-text h2{color:#676767}\n.mv-folio header .discipline{margin-top:14px}\n.mv-folio .station{--project-block-edge:clamp(20px,3.5svh,38px);min-height:100svh;display:flex;flex-direction:column;justify-content:space-between;isolation:isolate}\n.mv-folio .field{position:relative;z-index:1;width:100%;--h:min(69svh,72vw);--lift:min(18svh,14vw);padding-top:var(--lift);overflow:hidden}\n.mv-folio .track{position:relative;display:flex;align-items:flex-start;gap:4px;padding:0;overflow-x:auto;overscroll-behavior:contain;scrollbar-width:none;outline-offset:-3px}\n.mv-folio .track::-webkit-scrollbar,.mv-folio .leaf::-webkit-scrollbar{display:none;width:0;height:0}\n.mv-folio .media{flex:0 0 auto;position:relative;height:var(--h);width:calc(var(--h) * 1.274);overflow:hidden;border-radius:0;background:#f5f5f5;display:block}\n.mv-folio .media img,.mv-folio .media video{display:block;width:100%;height:100%;object-fit:cover}\n.mv-folio .leaf{flex:0 0 clamp(330px,34vw,650px);padding:5px clamp(24px,4vw,90px) 16px;height:var(--h);overflow:clip}\n.mv-folio .leaf article{position:relative;max-width:36ch;height:100%;margin:0 auto}\n.mv-folio .leaf[data-final]{padding-inline:clamp(24px,4vw,90px) 8px;scroll-snap-align:end}\n.mv-folio .leaf[data-final] article{margin-inline:0}\n.mv-folio .full-passage{display:flow-root}\n.mv-folio .leaf h2,.mv-folio .dialog-text h2{margin-bottom:9px}\n.mv-folio .leaf p,.mv-folio .dialog-text p{color:#969696;font-weight:400;line-height:1.4;margin-bottom:.65em}\n.mv-folio .full-passage > :last-child,.mv-folio .dialog-text p:last-child{margin-bottom:0}\n.mv-folio .excerpt{display:none}\n.mv-folio .leaf[data-truncated] .full-passage{position:absolute;inset-inline:0;top:0;visibility:hidden;pointer-events:none}\n.mv-folio .leaf[data-truncated] .excerpt{display:block}\n.mv-folio .preview-copy{display:flow-root;margin-bottom:10px}\n.mv-folio .preview-copy p{margin:0}\n.mv-folio .preview-copy p+p{margin-top:.65em}\n.mv-folio .preview-copy p[hidden]{display:none}\n.mv-folio .preview-copy p[data-cut]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--visible-lines);overflow:hidden}\n.mv-folio .excerpt .read-more{display:block}\n.mv-folio .dialog-text{width:min(60ch,calc(92vw - var(--close-width)));max-height:88svh;overflow-y:auto;overscroll-behavior:contain;padding:clamp(20px,4vw,48px);background:white}\n.mv-folio .site{margin-top:8px}\n.mv-folio :is(.back,.site,.read-more,.close-label).text-action::after{bottom:calc(-1.3115px - 1.7px);height:1.7px;pointer-events:none}\n.mv-folio .keys{position:absolute;right:10px;bottom:clamp(24px,3.5svh,40px);z-index:2;display:flex;gap:2px;opacity:0;transition:opacity .2s}\n.mv-folio .station:hover .keys,.mv-folio .keys:focus-within{opacity:1}\n.mv-folio .keys button{background:white;color:#111;width:34px;height:30px;font-size:17px}\n.mv-folio .keys button:disabled{opacity:.38;cursor:default}\n.mv-folio dialog{border:0;padding:0;background:#fff;color:#171717;max-height:88svh;max-width:92vw;width:max-content;--close-width:60px}\n.mv-folio dialog[open]{display:flex;align-items:stretch}\n.mv-folio dialog::backdrop{background:rgba(255,255,255,.78)}\n@media(prefers-reduced-motion:no-preference){\n    .mv-folio dialog[open]{opacity:1;transform:none;transition:opacity 260ms ease,transform 330ms cubic-bezier(.2,.67,.24,1)}\n    .mv-folio dialog[open]::backdrop{opacity:1;transition:opacity 260ms ease}\n    @starting-style{\n        .mv-folio dialog[open]{opacity:0;transform:translateY(5px) scale(.985)}\n        .mv-folio dialog[open]::backdrop{opacity:0}\n    }\n    .mv-folio dialog[open][data-closing]{opacity:0;transform:translateY(3px) scale(.99);transition-duration:200ms}\n    .mv-folio dialog[open][data-closing]::backdrop{opacity:0;transition-duration:200ms}\n}\n.mv-folio dialog img,.mv-folio dialog video{display:block;max-width:calc(92vw - var(--close-width));max-height:88svh;object-fit:contain}\n.mv-folio :is(img,video,.media){-webkit-touch-callout:none}\n.mv-folio video::-webkit-media-controls{display:none!important}\n.mv-folio .close-rail{flex:0 0 var(--close-width);width:var(--close-width);display:flex;justify-content:center;align-items:flex-start;padding-top:12px;background:white}\n.mv-folio .close-rail .text-action{writing-mode:horizontal-tb;white-space:nowrap}\n@media(hover:hover){.mv-folio .close-rail:hover .text-action::after{transform:scaleX(1);transform-origin:left}}\n.mv-folio .close-rail:focus-visible .text-action::after{transform:scaleX(1);transform-origin:left}\n\n.mv-folio :focus-visible{outline:2px solid currentColor;outline-offset:-2px}\n.mv-folio .edge-plane{display:block;position:relative}\n@container project-page (min-width:810px){\n    .mv-folio .track{padding-top:var(--lift)}\n    .mv-folio .media{overflow:visible;clip-path:none;background:transparent}\n    .mv-folio .edge-plane{position:absolute;inset:0;overflow:hidden;background:#f5f5f5}\n    .mv-folio .edge-plane :is(img,video){position:absolute;bottom:0;left:0;height:var(--source-height,100%)}\n}\n.mv-folio .gallery-slot{display:contents}\n@media(min-width:810px){\nhtml:has(.mv-folio[data-hints]),body:has(.mv-folio[data-hints]){overflow-y:clip;overscroll-behavior-y:none}\n.mv-folio[data-hints] .station{height:100svh;min-height:0;overflow:clip}\n.mv-folio[data-hints] header{flex:none}\n.mv-folio[data-hints] .gallery-slot{display:flex;align-items:flex-end;flex:1;min-height:0;container-type:size}\n.mv-folio[data-hints] .field{--lift:min(18svh,14vw,22cqh);--h:min(69svh,72vw,calc(100cqh - var(--lift)))}\n.mv-folio .field{container-type:inline-size}\n.mv-folio .track{padding-left:var(--card-start)}\n.mv-folio .track{--opening-media-width:min(calc(var(--h) * 1.274),76cqw)}\n.mv-folio .media:first-child{height:min(var(--h),calc(76cqw / 1.274));width:var(--opening-media-width)}\n}\n@media(min-width:810px) and (prefers-reduced-motion:no-preference){\n    @container project-page (min-width:810px){\n        .mv-folio .track > .media:first-child + .media{min-width:calc(100cqw - var(--card-start) - var(--opening-media-width) - 4px)}\n    }\n}\n.mv-folio .project-footer{display:none}\n@container project-page (max-width:809.98px){\n    .mv-folio .station,.mv-folio[data-hints] .station{\n        --card-start:8px;\n        height:auto;min-height:0;display:block;overflow:visible;\n        padding:8px;letter-spacing:normal;font-size:13px;line-height:1.4\n    }\n    .mv-folio header .project-masthead{top:calc(clamp(20px,3.5svh,38px) - 8px);left:12px}\n    .mv-folio header{display:block;padding:calc(clamp(20px,3.5svh,38px) + 32px) 12px 48px;line-height:1.4;letter-spacing:normal}\n    .mv-folio .project-heading{display:flex;flex-direction:column;align-items:flex-start}\n    .mv-folio .project-heading .project-identity{order:-1;display:flex;align-items:baseline;align-self:flex-start;min-height:24px;margin:0 0 48px}\n    .mv-folio .leaf h2{font-family:inherit;font-size:15px;font-weight:400;letter-spacing:normal}\n    .mv-folio .project-heading h1{align-self:flex-start}\n    .mv-folio .project-year{color:#969696}\n    .mv-folio header .summary{width:100%;max-width:520px;margin-top:16px}\n    .mv-folio header .summary p{max-width:none}\n    .mv-folio header .discipline{margin-top:16px}\n    .mv-folio .discipline-part{display:block}\n    .mv-folio .discipline-separator{display:none}\n    .mv-folio .gallery-slot,.mv-folio[data-hints] .gallery-slot{display:block;container-type:normal}\n    .mv-folio .field,.mv-folio[data-hints] .field{--lift:0px;padding:0;margin:0;overflow:visible;container-type:normal}\n    .mv-folio .optic{width:100%;filter:none!important;clip-path:none!important}\n    .mv-folio .track,.mv-folio:not([data-hints]) .track{display:flex;flex-direction:column;align-items:stretch;padding:0;gap:8px;overflow:visible;overscroll-behavior:auto}\n    .mv-folio .track>.media,.mv-folio .track>.media:first-child{display:block;flex:none;width:100%;height:auto;overflow:hidden}\n    .mv-folio .media img,.mv-folio .media video{display:block;width:100%;height:auto;object-fit:contain}\n    .mv-folio .track>.leaf,.mv-folio .track>.leaf[data-final]{flex:none!important;width:100%;height:auto;overflow:visible;padding:64px 12px 16px;box-sizing:border-box}\n    .mv-folio .track>.leaf:first-child{padding-top:0}\n    .mv-folio .track>.leaf:last-child{padding-bottom:0}\n    .mv-folio .leaf article{height:auto;width:100%;max-width:520px;margin:0;line-height:1.3}\n    .mv-folio .leaf h2{margin:0 0 8px;line-height:1.3}\n    .mv-folio .leaf p{color:#969696;margin:0}\n    .mv-folio .leaf p+p{margin-top:8px}\n    .mv-folio .leaf[data-truncated] .full-passage{position:static;visibility:visible;pointer-events:auto}\n    .mv-folio .leaf .excerpt,.mv-folio .keys{display:none}\n    .mv-folio .project-footer{display:grid;gap:16px;padding:48px 0 env(safe-area-inset-bottom,0px);font:inherit}\n    .mv-folio .project-footer nav{display:flex;gap:0 16px;flex-wrap:wrap;align-items:baseline}\n    .mv-folio .project-footer a{display:inline-flex;align-items:center;min-height:28px}\n    .mv-folio .project-footer a:is(:hover,:focus-visible){text-decoration:underline;text-underline-offset:3px}\n    .mv-folio .project-footer small{font:inherit;color:#969696}\n}\n@media(prefers-reduced-motion:reduce){.mv-folio .optic{filter:none!important}.mv-folio *{scroll-behavior:auto!important;transition:none!important}}\n`;/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function ProjectFolio(p){const projectYear=p.year||(p.title.trim().toLowerCase()===\"copilot money\"?\"2024–2025\":\"\");const panels=panelsFor(p);const rail=React.useRef(null);const stepPanel=React.useRef(()=>{});const dialog=React.useRef(null);const scene=React.useRef(null);const[open,setOpen]=React.useState(null);const[closing,setClosing]=React.useState(false);const inlinePlayer=React.useRef(null);function resumeAt(player,time){if(!Number.isFinite(time)||!Number.isFinite(player.duration)||player.duration<=0)return;const position=time%player.duration;if(Math.abs(player.currentTime-position)>.04)player.currentTime=position;}function finishClose(){const expanded=dialog.current?.querySelector(\"video\");if(expanded&&expanded.readyState>=2&&inlinePlayer.current)resumeAt(inlinePlayer.current,expanded.currentTime);inlinePlayer.current=null;setClosing(false);setOpen(null);}function closeCard(){if(window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches)dialog.current?.close();else setClosing(true);}React.useEffect(()=>{if(!closing)return;const timer=window.setTimeout(()=>dialog.current?.close(),220);return()=>window.clearTimeout(timer);},[closing]);const[ends,setEnds]=React.useState([true,false]);const key=panels.map(x=>x.key).join(\"-\")+p.title;React.useEffect(()=>{const field=scene.current;const track=rail.current;if(!field||!track)return;const motion=window.matchMedia(\"(prefers-reduced-motion: reduce)\");const openingArticle=track.querySelector(\":scope > .leaf:first-child > article\");const station=field.closest(\".station\");const finalLeaf=track.querySelector(\".leaf[data-final]\");const summary=field.closest(\".station\")?.querySelector(\"header .summary\");const edges=projectEdges(field,Array.from(track.querySelectorAll(\".media\")));let lift=0;let renderedLeft=NaN;function measure(){renderedLeft=NaN;edges.measure(track.scrollLeft);lift=parseFloat(getComputedStyle(field).paddingTop)||0;bounds();}function bounds(){const left=track.scrollLeft;const max=track.scrollWidth-track.clientWidth;if(left!==renderedLeft){edges.layout(lift>0,lift*.8,left);renderedLeft=left;}const start=left<2,end=left>=max-2;setEnds(old=>old[0]===start&&old[1]===end?old:[start,end]);}let goal=track.scrollLeft,frame=0,lastTime=0;let position=goal,lastWritten=goal;let column=false,anchors=[];let wheelDirection=0;let responseMs=75;const leaves=Array.from(track.querySelectorAll(\".leaf\"));let max=0;const host=field.closest(\".station\");function stop(){cancelAnimationFrame(frame);frame=0;lastTime=wheelDirection=0;position=goal=lastWritten=track.scrollLeft;}function layout(){column=getComputedStyle(track).flexDirection===\"column\";if(column){stop();if(finalLeaf)finalLeaf.style.removeProperty(\"flex-basis\");for(const leaf of leaves)delete leaf.dataset.truncated;measure();return;}const frameRect=field.getBoundingClientRect();if(finalLeaf&&summary){if(frameRect.width>0){const summaryX=(summary.getBoundingClientRect().left-frameRect.left)*field.clientWidth/frameRect.width;const endPadding=parseFloat(getComputedStyle(track).paddingRight)||0;const textInset=parseFloat(getComputedStyle(finalLeaf).paddingLeft)||0;finalLeaf.style.flexBasis=Math.max(1,track.clientWidth-endPadding-summaryX+textInset)+\"px\";}}if(openingArticle&&station&&frameRect.width>0){const textLeft=openingArticle.getBoundingClientRect().left;const panelLeft=openingArticle.parentElement.getBoundingClientRect().left;const inset=(textLeft-panelLeft)*field.clientWidth/frameRect.width;station.style.setProperty(\"--opening-text-inset\",inset+\"px\");}max=Math.max(0,track.scrollWidth-track.clientWidth);for(const leaf of leaves){const article=leaf.querySelector(\"article\");const full=leaf.querySelector(\".full-passage\");const heading=leaf.querySelector(\"h2\");if(!article||!full||!heading)continue;const headingHeight=heading.offsetHeight+parseFloat(getComputedStyle(heading).marginBottom);const available=article.clientHeight-headingHeight;if(full.offsetHeight<=available+1){delete leaf.dataset.truncated;continue;}leaf.dataset.truncated=\"true\";const button=leaf.querySelector(\".read-more\");const originals=full.querySelectorAll(\"p\");const previews=leaf.querySelectorAll(\".preview-copy p\");let remaining=available-button.offsetHeight-10;previews.forEach((preview,index)=>{const original=originals[index];const gap=index?parseFloat(getComputedStyle(originals[index-1]).marginBottom):0;const lineHeight=parseFloat(getComputedStyle(original).lineHeight);const height=original.getBoundingClientRect().height;const room=remaining-gap;const lines=Math.floor((room+.01)/lineHeight);preview.hidden=lines<1;const cut=lines>0&&height>room+.01;preview.toggleAttribute(\"data-cut\",cut);if(cut)preview.style.setProperty(\"--visible-lines\",String(lines));remaining=Math.max(0,room-height);});}const inset=parseFloat(getComputedStyle(track).paddingLeft)||0;anchors=Array.from(track.children,el=>clamp(el.offsetLeft-inset));goal=clamp(goal);measure();}function clamp(value){return Math.max(0,Math.min(max,value));}function write(value){track.scrollLeft=value;lastWritten=track.scrollLeft;// Apply the curve to the scroll position that will be painted this frame.\nbounds();}function tick(time){const dt=lastTime?Math.min(64,time-lastTime):16;lastTime=time;position+=(goal-position)*-Math.expm1(-dt/responseMs);if(Math.abs(goal-position)<.35){position=goal;frame=lastTime=0;write(goal);return;}write(position);frame=requestAnimationFrame(tick);}function moveTo(value,animate){if(track.scrollLeft!==lastWritten)stop();goal=clamp(value);if(!animate||motion.matches){cancelAnimationFrame(frame);frame=lastTime=0;position=goal;write(goal);}else if(!frame)frame=requestAnimationFrame(tick);}stepPanel.current=direction=>{if(column||!max)return;wheelDirection=0;responseMs=75;const from=frame?goal:track.scrollLeft;const next=direction>0?anchors.find(x=>x>from+2)??max:anchors.slice().reverse().find(x=>x<from-2)??0;moveTo(next,true);};function wheel(e){if(column||!max||e.ctrlKey||e.defaultPrevented||dialog.current?.open)return;const horizontal=Math.abs(e.deltaX)>Math.abs(e.deltaY);const delta=horizontal?e.deltaX:e.deltaY;if(!delta||!e.cancelable)return;const pixels=e.deltaMode===0;const unit=pixels?1:e.deltaMode===1?16:field.clientWidth;const sign=Math.sign(delta);if(track.scrollLeft!==lastWritten||frame&&wheelDirection!==sign)stop();const next=clamp(goal+delta*unit);if(next===goal&&!frame)return;e.preventDefault();wheelDirection=sign;responseMs=pixels?38:75;moveTo(next,true);}host.addEventListener(\"wheel\",wheel,{passive:false});track.addEventListener(\"scroll\",bounds,{passive:true});track.addEventListener(\"pointerdown\",stop);const size=new ResizeObserver(layout);track.addEventListener(\"load\",measure,true);track.addEventListener(\"loadeddata\",measure,true);size.observe(field);size.observe(track);if(summary)size.observe(summary);for(const element of Array.from(track.querySelectorAll(\".leaf article,.full-passage,.leaf h2\")))size.observe(element);motion.addEventListener(\"change\",layout);layout();return()=>{edges.destroy();stepPanel.current=()=>{};stop();size.disconnect();track.removeEventListener(\"load\",measure,true);track.removeEventListener(\"loadeddata\",measure,true);station?.style.removeProperty(\"--opening-text-inset\");motion.removeEventListener(\"change\",layout);host.removeEventListener(\"wheel\",wheel);track.removeEventListener(\"scroll\",bounds);track.removeEventListener(\"pointerdown\",stop);};},[key]);React.useEffect(()=>{const track=rail.current;if(!track)return;const videos=Array.from(track.querySelectorAll(\"video\"));if(open||!videos.length)return;const visible=new Set;function sync(video){if(document.hidden||!visible.has(video)){video.pause();return;}video.muted=true;void video.play().catch(()=>{});}const observer=new IntersectionObserver(entries=>{for(const entry of entries){const video=entry.target;if(entry.isIntersecting&&entry.intersectionRatio>=.01)visible.add(video);else visible.delete(video);sync(video);}},{threshold:[0,.01]});for(const video of videos)observer.observe(video);const onVisibility=()=>videos.forEach(sync);document.addEventListener(\"visibilitychange\",onVisibility);return()=>{observer.disconnect();document.removeEventListener(\"visibilitychange\",onVisibility);for(const video of videos)video.pause();};},[key,open]);React.useEffect(()=>{if(open&&dialog.current&&!dialog.current.open)dialog.current.showModal();},[open]);return /*#__PURE__*/_jsxs(\"section\",{className:\"mv-folio\",onContextMenu:event=>{if(event.target instanceof Element&&event.target.closest(\"img, video, .media\"))event.preventDefault();},\"data-hints\":p.title===\"Hints\"||undefined,style:{...p.style,fontFamily:p.face?.fontFamily||\"Geist, Arial, sans-serif\"},children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:css}}),/*#__PURE__*/_jsxs(\"div\",{className:\"station\",children:[/*#__PURE__*/_jsxs(\"header\",{children:[/*#__PURE__*/_jsx(\"span\",{className:\"designer-name subtle project-masthead\",children:\"@mariavareva\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"project-heading\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"project-identity\",children:/*#__PURE__*/_jsx(Link,{href:p.home&&p.home!==\"/\"?p.home:{webPageId:\"augiA20Il\"},children:/*#__PURE__*/_jsx(\"a\",{className:\"back text-action\",\"aria-label\":\"Back to home\",children:\"Back\"})})}),/*#__PURE__*/_jsx(\"h1\",{children:p.title}),projectYear&&/*#__PURE__*/_jsx(\"p\",{className:\"subtle project-year\",children:projectYear})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"summary\",children:[/*#__PURE__*/_jsx(\"p\",{children:p.summary}),(p.discipline||p.platforms)&&/*#__PURE__*/_jsx(\"p\",{className:\"discipline subtle\",children:[p.discipline,p.platforms].filter(Boolean).map((part,i)=>/*#__PURE__*/_jsxs(React.Fragment,{children:[i>0&&/*#__PURE__*/_jsx(\"span\",{className:\"discipline-separator\",children:\", \"}),/*#__PURE__*/_jsx(\"span\",{className:\"discipline-part\",children:part})]},i))})]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"gallery-slot\",children:[/*#__PURE__*/_jsx(\"div\",{ref:scene,className:\"field\",children:/*#__PURE__*/_jsx(\"div\",{className:\"optic\",style:{marginTop:\"calc(-1 * var(--lift))\"},children:/*#__PURE__*/_jsx(\"div\",{ref:rail,className:\"track\",tabIndex:0,role:\"region\",\"aria-label\":p.title+\" project gallery\",onKeyDown:e=>{if(getComputedStyle(e.currentTarget).flexDirection!==\"column\"&&e.target===e.currentTarget&&[\"ArrowLeft\",\"ArrowRight\"].includes(e.key)){e.preventDefault();stepPanel.current(e.key===\"ArrowRight\"?1:-1);}},children:panels.map((panel,i)=>panel.copy?/*#__PURE__*/_jsx(\"div\",{className:\"leaf\",\"data-final\":i===panels.length-1||undefined,role:\"region\",\"aria-label\":panel.title||\"Project text\",children:/*#__PURE__*/_jsxs(\"article\",{children:[/*#__PURE__*/_jsx(\"h2\",{children:panel.title}),/*#__PURE__*/_jsx(\"div\",{className:\"full-passage\",children:/*#__PURE__*/_jsx(Passage,{panel:panel,website:p.website})}),/*#__PURE__*/_jsxs(\"div\",{className:\"excerpt\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"preview-copy\",children:paragraphs(panel.previewCopy??panel.copy).map((text,i)=>/*#__PURE__*/_jsx(\"p\",{children:text},i))}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"read-more text-action\",\"aria-haspopup\":\"dialog\",\"aria-label\":\"Read more about \"+panel.title,onClick:()=>setOpen(panel),children:\"Read more\"})]})]})},panel.key):/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"media\",\"aria-label\":panel.video?\"Enlarge \"+p.title+\" video \"+(i+1):\"Enlarge \"+p.title+\" image \"+(i+1),onClick:event=>{inlinePlayer.current=event.currentTarget.querySelector(\"video\");setOpen(panel);},children:/*#__PURE__*/_jsx(\"span\",{className:\"edge-plane\",children:panel.video?/*#__PURE__*/_jsx(\"video\",{crossOrigin:\"anonymous\",disablePictureInPicture:true,disableRemotePlayback:true,draggable:false,src:panel.video,poster:panel.image?.src,muted:true,loop:true,playsInline:true,preload:\"metadata\",\"aria-hidden\":\"true\"}):/*#__PURE__*/_jsx(\"img\",{crossOrigin:\"anonymous\",draggable:false,alt:panel.image?.alt||\"\",src:panel.image?.src,srcSet:panel.image?.srcSet,sizes:\"(max-width:809px) calc(100vw - 16px), 85vh\",loading:i<3?\"eager\":\"lazy\"})})},panel.key))})})}),/*#__PURE__*/_jsxs(\"nav\",{className:\"keys\",\"aria-label\":\"Gallery navigation\",children:[/*#__PURE__*/_jsx(\"button\",{\"aria-label\":\"Previous panel\",disabled:ends[0],onClick:()=>stepPanel.current(-1),children:\"←\"}),/*#__PURE__*/_jsx(\"button\",{\"aria-label\":\"Next panel\",disabled:ends[1],onClick:()=>stepPanel.current(1),children:\"→\"})]})]}),/*#__PURE__*/_jsxs(\"footer\",{className:\"project-footer\",\"aria-label\":\"Project footer\",children:[/*#__PURE__*/_jsxs(\"nav\",{\"aria-label\":\"Portfolio\",children:[/*#__PURE__*/_jsx(Link,{href:{webPageId:\"augiA20Il\"},children:/*#__PURE__*/_jsx(\"a\",{children:\"Home\"})}),/*#__PURE__*/_jsx(Link,{href:{webPageId:\"NgIfsfUb5\"},children:/*#__PURE__*/_jsx(\"a\",{children:\"About\"})})]}),/*#__PURE__*/_jsxs(\"nav\",{\"aria-label\":\"Contact and social profiles\",children:[/*#__PURE__*/_jsx(\"a\",{href:\"mailto:varevama@gmail.com\",children:\"varevama@gmail.com\"}),socialLinks.map(([name,href])=>/*#__PURE__*/_jsx(\"a\",{href:href,target:\"_blank\",rel:\"noopener noreferrer\",children:name},name))]}),/*#__PURE__*/_jsxs(\"small\",{children:[\"\\xa9 \",new Date().getFullYear(),\" \",/*#__PURE__*/_jsx(\"span\",{className:\"designer-name\",children:\"@mariavareva\"})]})]})]}),/*#__PURE__*/_jsx(\"dialog\",{ref:dialog,\"aria-label\":open?.title||p.title,\"data-closing\":closing||undefined,onClose:finishClose,onCancel:e=>{e.preventDefault();closeCard();},onClick:e=>{if(e.target===e.currentTarget)closeCard();},children:open&&/*#__PURE__*/_jsxs(_Fragment,{children:[open.copy?/*#__PURE__*/_jsxs(\"article\",{className:\"dialog-text\",tabIndex:0,\"aria-label\":open.title,children:[/*#__PURE__*/_jsx(\"h2\",{children:open.title}),/*#__PURE__*/_jsx(Passage,{panel:open,website:p.website})]}):open.video?/*#__PURE__*/_jsx(\"video\",{onLoadedMetadata:event=>resumeAt(event.currentTarget,inlinePlayer.current?.currentTime??0),src:open.video,poster:open.image?.src,muted:true,autoPlay:true,loop:true,playsInline:true,disablePictureInPicture:true,disableRemotePlayback:true,controlsList:\"nodownload nofullscreen noremoteplayback\",draggable:false}):/*#__PURE__*/_jsx(\"img\",{draggable:false,src:open.image?.src,alt:open.image?.alt||p.title}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"close-rail\",autoFocus:true,onClick:closeCard,children:/*#__PURE__*/_jsx(\"span\",{className:\"close-label text-action\",children:\"Close\"})})]})})]});}const string=title=>({type:ControlType.String,title,defaultValue:\"\",displayTextArea:true});const controls={title:string(\"Project\"),year:string(\"Year\"),summary:string(\"Overview\"),discipline:string(\"Discipline\"),platforms:string(\"Platforms\"),home:{type:ControlType.Link,title:\"Home\"},website:{type:ControlType.Link,title:\"Website\"},details:string(\"Credits\"),problem:string(\"Problem\"),solution:string(\"Solutions\"),result:string(\"Results\"),extended:{type:ControlType.Boolean,title:\"Chapters\",defaultValue:false},face:{type:ControlType.Font,controls:\"basic\",title:\"Typeface\",defaultValue:{variant:\"Regular\"}}};for(let i=1;i<=9;i++){controls[\"image\"+i]={type:ControlType.ResponsiveImage,title:\"Image \"+i};controls[\"video\"+i]={type:ControlType.File,title:\"Video \"+i,allowedFileTypes:[\"mp4\",\"webm\",\"mov\"]};}for(let i=1;i<=4;i++){controls[\"label\"+i]=string(\"Heading \"+i);controls[\"body\"+i]=string(\"Passage \"+i);}addPropertyControls(ProjectFolio,controls);\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProjectFolio\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProjectFolio.map"],"mappings":"A,yRAC6gB,SAASsB,EAAU,EAAE,CAAC,IAAMC,EAAO,CAAC,EAAQC,GAAM,EAAI,EAAM,IAAO,CAAC,GAAG,CAACC,GAAM,KAAK,EAAE,OAClmB,IAAMC,EAAad,EAAE,QAAQ,SAASe,IAAM,WAAWF,EAAK,OAAO,6BAA6B,EAAE,GAASG,EAAU,MAAM,KAAKH,EAAK,SAAS,MAAM,CAAC,CAAC,CAAC,KAASI,EAAY,GAAGH,EAAa,EAAG,EAAYD,EAAK,MAAM,EAAEC,CAAY,CAAC,CAAC,QAAQ,OAAQ,GAAGE,GAAW,QAAQ,IAAA,GAAU,CAAC,IAAME,EAAQL,EAAK,MAAM,EAAEG,EAAU,KAAK,CAAC,CAAC,QAAQ,EAAE,EAAY,iBAAiB,KAAKE,CAAO,EAAEA,EAAQA,EAAQ,GAAI,CAACP,EAAO,KAAK,CAAC,MAAI,QAAM,OAAK,aAAW,CAAC,CAAE,EAAQQ,EAAQ,GAAGP,EAAK,UAAUQ,EAAEpB,EAAE,QAAQoB,GAAGpB,EAAE,OAAOoB,EAAE,EAAQC,EAAUrB,EAAE,MAAM,KAAK,CAAC,CAAC,YAAY,IAAI,gBAAsBsB,EAAWD,EAAU,C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