{"version":3,"file":"ScrollToDark.BTpyoTxJ.mjs","names":["useRef","__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","c","init_jsx_runtime","ce","de","addPropertyControls","init_framer_DcGZRLrs","ControlType","RenderTarget","INTRO_GATE_CSS","startSiteMotion","init_SiteMotion","toRGBA","m","resolve","el","v","lum","f","s","ScrollToDark","props","ref","target","marker","section","easing","trigger","mode","fadeEase","dur","fadeMs","flipMs","itemEase","coralSel","k","sheet","hover","hoverDeep","hoverOnDark","touched","node","bodyBg","bodyTransition","isDark","bgA","from","bgB","to","INK","ink","LIGHT","light","CORAL","inkL","lightL","items","corals","clear","prop","orig","a","markCoralLinks","textEl","hasOwnText","same","before","revert","it","scan","prev","next","added","kept","cs","h","bg","p","frame","update","vh","top","topAtBottom","want","trigPx","triggerAt","threshold","css","topAtStart","startPx","startAt","endPx","endAt","bgL","contrast","onScroll","resizeTimer","lastW","rescan","onResize","start","style","init_ScrollToDark","b","n"],"sources":["https:/framerusercontent.com/modules/IcJ4Y8dGBaxPjkY9V10q/o1CvDvpSVOTzRnGmZjKV/ScrollToDark.js"],"sourcesContent":["// Site-wide rule (Lauri): the page background turns from paper to black on scroll, Collins-style.\n// v3 (Lauri: avoid the moment where text and background are the same grey):\n//  - The background still slides continuously from `from` to `to`.\n//  - Text and hairline rules do NOT slide. Each one flips between its ink and light version at the\n//    exact point where the light version starts to contrast better with the current background,\n//    with a 200 ms micro transition (the site's micro duration). Minimum contrast stays ~4:1.\n//  - Ink items above the dark section and light items inside/below it are handled; coral, the hero\n//    and anything else keep their own colours.\n// v4: anything inside an element with the attribute data-no-flip is left alone (e.g. JumpTo links).\n// v5 (Lauri: \"on the Work page it stops at mid-grey\"): when the dark section is short and the page\n//     cannot scroll far enough for its top to reach `endAt`, the fade now completes exactly at the\n//     bottom of the page instead.\n// v6 (Lauri: coral hover on clickable cards and focus areas too): text colour flips are now applied\n//     through a CSS variable + attribute instead of inline !important colours, and a page-wide rule\n//     turns the text inside any linked frame (case cards, focus areas, breadcrumb…) coral on hover,\n//     with the 200 ms micro transition.\n// v7 (Lauri: links that are already coral need a darker hover): links whose text is already coral\n//     get the deep coral hover on paper.\n// v8 (Lauri: on dark, a subtle darkening of coral instead of white): coral links inside the dark\n//     section get a slightly darker coral on hover (Coral hover on dark).\n// v9: also starts the site-wide motion (SiteMotion), so Home (which has its own nav) gets it too.\n// v10 (Lauri: \"About turns grey too early\"): on short pages / tall windows the dark section can\n//     already be inside the window when the page opens. The fade now never starts before the\n//     visitor scrolls: the page always opens on pure paper.\n// v11 (Lauri: on iPhone the mobile nav disappeared after scrolling back up): iOS fires resize while\n//     scrolling, and each rescan wiped the inline colour of thin elements it had touched, including\n//     the hamburger lines. Original inline colours are now restored, and buttons / the mobile\n//     menu are never touched.\n// v12 (Lauri: no lingering in mid-grey): new Mode \"Switch at point\" (default). The background no longer\n//     scrubs with scroll; when the dark section's top passes \"Switch at\", the background and text\n//     change to dark in one smooth transition (and back when scrolling up past the same point, with a\n//     40 px hysteresis so it never flickers). On short pages the point is moved so it is always\n//     reachable. \"Scrub with scroll\" keeps the previous behaviour.\n// v14 (Lauri: on iPhone a tapped case card stayed coral and zoomed): hover colours only apply on\n//     devices with a real pointer, since iOS keeps :hover after a tap.\n// v15 (Lauri, footer logo): elements marked data-hs-ink (e.g. the footer Wordmark) flip like text.\n// Place this invisible marker as the FIRST child of the dark section (e.g. DarkZone).\n// On the Framer canvas it does nothing, so the section keeps its own fill.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useEffect,useRef}from\"react\";import{startSiteMotion,INTRO_GATE_CSS}from\"https://framerusercontent.com/modules/u4QgGGGp8OrhIepPcD64/Q4RloSGtoQZXQWzZhonn/SiteMotion.js\";function toRGBA(c){const m=c.match(/[\\d.]+/g);if(!m||m.length<3)return[0,0,0,0];return[Number(m[0]),Number(m[1]),Number(m[2]),m.length>3?Number(m[3]):1];}function resolve(c){const el=document.createElement(\"div\");el.style.color=c;document.body.appendChild(el);const v=toRGBA(getComputedStyle(el).color);document.body.removeChild(el);return v;}const same=(a,b)=>Math.abs(a[0]-b[0])<3&&Math.abs(a[1]-b[1])<3&&Math.abs(a[2]-b[2])<3;const css=c=>`rgba(${c[0]}, ${c[1]}, ${c[2]}, ${c[3]})`;function lum(c){const f=v=>{const s=v/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4);};return .2126*f(c[0])+.7152*f(c[1])+.0722*f(c[2]);}const contrast=(a,b)=>(Math.max(a,b)+.05)/(Math.min(a,b)+.05);const hasOwnText=el=>Array.from(el.childNodes).some(n=>n.nodeType===3&&(n.textContent||\"\").trim().length>0);/**\n * Scroll to dark\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 1\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight fixed\n */export default function ScrollToDark(props){const{from,to,ink,light,hover,hoverDeep,hoverOnDark,startAt,endAt,flipMs,mode,triggerAt,fadeMs,style}=props;const ref=useRef(null);useEffect(()=>startSiteMotion(),[]);useEffect(()=>{if(typeof window===\"undefined\")return;const target=RenderTarget.current();if(target===RenderTarget.canvas||target===RenderTarget.thumbnail)return;const marker=ref.current;const section=marker?.parentElement;if(!marker||!section)return;const easing=\"cubic-bezier(0.22, 1, 0.36, 1)\";const trigger=mode!==\"scroll\";const fadeEase=\"cubic-bezier(0.65, 0, 0.35, 1)\";const dur=trigger?fadeMs:flipMs;const itemEase=trigger?fadeEase:easing;const coralSel=k=>`a[data-hs-coral=\"${k}\"]:hover .framer-text, a[data-hs-coral=\"${k}\"].framer-text:hover, a[data-hs-coral=\"${k}\"]:focus-visible .framer-text`;// Shared page rules: flipped text colour + coral hover on linked frames\nconst sheet=document.createElement(\"style\");sheet.setAttribute(\"data-hs-scrolltodark\",\"\");sheet.textContent=`\n[data-hs-flip] { color: var(--hs-flip) !important; --framer-text-color: var(--hs-flip) !important; }\na .framer-text, a.framer-text { transition: color ${flipMs}ms ${easing}; }\n@media (hover: hover) and (pointer: fine) {\na:hover .framer-text, a:hover [data-hs-flip], a:focus-visible .framer-text {\n  color: ${hover} !important; --framer-text-color: ${hover} !important;\n}\n${coralSel(\"paper\")} { color: ${hoverDeep} !important; --framer-text-color: ${hoverDeep} !important; }\n${coralSel(\"dark\")} { color: ${hoverOnDark} !important; --framer-text-color: ${hoverOnDark} !important; }\n}\n`;document.head.appendChild(sheet);const touched=[];let node=section;while(node&&node!==document.body){touched.push({el:node,bg:node.style.backgroundColor});node.style.backgroundColor=\"transparent\";node=node.parentElement;}const bodyBg=document.body.style.backgroundColor;const bodyTransition=document.body.style.transition;let isDark=false;const bgA=resolve(from);const bgB=resolve(to);const INK=resolve(ink);const LIGHT=resolve(light);const CORAL=resolve(hover);const inkL=lum(INK);const lightL=lum(LIGHT);let items=[];let corals=[];const clear=()=>{items.forEach(({el,prop,orig})=>{el.style.removeProperty(\"transition\");if(prop===\"color\"){el.removeAttribute(\"data-hs-flip\");el.style.removeProperty(\"--hs-flip\");}else{el.style.removeProperty(\"background-color\");if(orig)el.style.backgroundColor=orig;}});items=[];corals.forEach(a=>a.removeAttribute(\"data-hs-coral\"));corals=[];};const markCoralLinks=()=>{document.body.querySelectorAll(\"a[href]\").forEach(a=>{if(a.closest(\"[data-no-flip]\"))return;let textEl=hasOwnText(a)?a:null;if(!textEl){for(const el of Array.from(a.querySelectorAll(\"*\"))){if(hasOwnText(el)){textEl=el;break;}}}if(!textEl)return;if(!same(toRGBA(getComputedStyle(textEl).color),CORAL))return;const before=!!(marker.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_PRECEDING);a.setAttribute(\"data-hs-coral\",before?\"paper\":\"dark\");corals.push(a);});};// v13 (Lauri: case captions flickered and finally stayed black on black on iPhone): a rescan no\n// longer resets everything first. Items that are already tracked are kept as they are (their\n// current colour is ours, so it must not be re-checked), new ones are added and only items that\n// left the page are reverted. Height-only resizes (the iOS address bar) no longer rescan at all.\nconst revert=it=>{it.el.style.removeProperty(\"transition\");if(it.prop===\"color\"){it.el.removeAttribute(\"data-hs-flip\");it.el.style.removeProperty(\"--hs-flip\");}else{it.el.style.removeProperty(\"background-color\");if(it.orig)it.el.style.backgroundColor=it.orig;}};const scan=()=>{const prev=new Map;items.forEach(it=>prev.set(it.el,it));corals.forEach(a=>a.removeAttribute(\"data-hs-coral\"));corals=[];markCoralLinks();const next=[];const added=[];document.body.querySelectorAll(\"*\").forEach(el=>{if(el===marker||el.closest(\"svg\")||el.closest(\"[data-no-flip]\")||el.closest(\"button\")||el.closest(\"[data-hs-mm]\"))return;const kept=prev.get(el);if(kept){next.push(kept);prev.delete(el);return;}const before=!!(marker.compareDocumentPosition(el)&Node.DOCUMENT_POSITION_PRECEDING);const cs=getComputedStyle(el);if(hasOwnText(el)||el.hasAttribute(\"data-hs-ink\")){const c=toRGBA(cs.color);if(before&&same(c,INK)||!before&&same(c,LIGHT)){const it={el,prop:\"color\",dark:[INK[0],INK[1],INK[2],c[3]],lightC:[LIGHT[0],LIGHT[1],LIGHT[2],c[3]],state:null};next.push(it);added.push(it);}}const h=el.getBoundingClientRect().height;if(h>0&&h<=2){const bg=toRGBA(cs.backgroundColor);if(bg[3]>0&&(before&&same(bg,INK)||!before&&same(bg,LIGHT))){const it={el,prop:\"background\",dark:[INK[0],INK[1],INK[2],.2],lightC:[LIGHT[0],LIGHT[1],LIGHT[2],.15],state:null,orig:el.style.backgroundColor};next.push(it);added.push(it);}}});prev.forEach(revert);items=next;added.forEach(({el,prop})=>{const p=prop===\"color\"?\"color\":\"background-color\";el.style.setProperty(\"transition\",`${p} ${dur}ms ${itemEase}`);});};let frame=0;const update=()=>{frame=0;const vh=window.innerHeight;const top=section.getBoundingClientRect().top;const maxScroll=Math.max(0,document.documentElement.scrollHeight-vh);const topAtBottom=top-(maxScroll-window.scrollY);let want;if(trigger){// Switch at one point. Always reachable on short pages; never dark before scrolling.\nlet trigPx=vh*triggerAt;if(topAtBottom+1>trigPx)trigPx=topAtBottom+1;const threshold=isDark?trigPx+40:trigPx;isDark=window.scrollY>0&&top<=threshold;document.body.style.backgroundColor=css(isDark?bgB:bgA);want=isDark?\"light\":\"dark\";}else{// Where the section's top sits when the page is scrolled to the very top.\n// The fade never starts before the visitor scrolls, even if the section is already\n// inside a tall window when the page opens.\nconst topAtStart=top+window.scrollY;const startPx=Math.min(vh*startAt,topAtStart);let endPx=vh*endAt;if(topAtBottom>endPx)endPx=topAtBottom;if(startPx-endPx<120)endPx=startPx-120;const p=Math.min(1,Math.max(0,(startPx-top)/(startPx-endPx)));const bg=[Math.round(bgA[0]+(bgB[0]-bgA[0])*p),Math.round(bgA[1]+(bgB[1]-bgA[1])*p),Math.round(bgA[2]+(bgB[2]-bgA[2])*p),1];document.body.style.backgroundColor=css(bg);const bgL=lum(bg);want=contrast(lightL,bgL)>contrast(inkL,bgL)?\"light\":\"dark\";}for(const it of items){if(it.state===want)continue;it.state=want;const v=css(want===\"light\"?it.lightC:it.dark);if(it.prop===\"color\"){it.el.setAttribute(\"data-hs-flip\",\"\");it.el.style.setProperty(\"--hs-flip\",v);}else it.el.style.setProperty(\"background-color\",v,\"important\");}};const onScroll=()=>{if(!frame)frame=window.requestAnimationFrame(update);};let resizeTimer=0;let lastW=window.innerWidth;const rescan=()=>{window.clearTimeout(resizeTimer);resizeTimer=window.setTimeout(()=>{scan();update();},150);};const onResize=()=>{if(window.innerWidth===lastW){// iOS address bar: only the height changed. Keep the colours, just re-check the position.\nonScroll();return;}lastW=window.innerWidth;window.clearTimeout(resizeTimer);resizeTimer=window.setTimeout(()=>{scan();update();},150);};const start=window.setTimeout(()=>{scan();update();// Only animate the background after the first paint, so a page opened mid-scroll\n// does not fade in.\nif(trigger)document.body.style.transition=`background-color ${fadeMs}ms ${fadeEase}`;},50);update();window.addEventListener(\"scroll\",onScroll,{passive:true});window.addEventListener(\"resize\",onResize);window.addEventListener(\"hs-rescan\",rescan);return()=>{window.clearTimeout(start);window.clearTimeout(resizeTimer);window.removeEventListener(\"scroll\",onScroll);window.removeEventListener(\"resize\",onResize);window.removeEventListener(\"hs-rescan\",rescan);if(frame)window.cancelAnimationFrame(frame);clear();sheet.remove();touched.forEach(({el,bg})=>el.style.backgroundColor=bg);document.body.style.backgroundColor=bodyBg;document.body.style.transition=bodyTransition;};},[from,to,ink,light,hover,hoverDeep,hoverOnDark,startAt,endAt,flipMs,mode,triggerAt,fadeMs]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,\"aria-hidden\":true,style:{position:\"relative\",width:\"100%\",height:0,...style},children:RenderTarget.current()!==RenderTarget.canvas?/*#__PURE__*/_jsx(\"style\",{children:INTRO_GATE_CSS}):null});}addPropertyControls(ScrollToDark,{from:{type:ControlType.Color,title:\"BG from\",defaultValue:\"#F4F3F1\"},to:{type:ControlType.Color,title:\"BG to\",defaultValue:\"#161517\"},ink:{type:ControlType.Color,title:\"Ink text\",defaultValue:\"#161517\"},light:{type:ControlType.Color,title:\"Light text\",defaultValue:\"#FFFFFF\"},hover:{type:ControlType.Color,title:\"Link hover\",defaultValue:\"#FF6759\"},hoverDeep:{type:ControlType.Color,title:\"Coral link hover\",defaultValue:\"#C8382D\"},hoverOnDark:{type:ControlType.Color,title:\"Coral hover on dark\",defaultValue:\"#E0493C\"},mode:{type:ControlType.Enum,title:\"Mode\",options:[\"trigger\",\"scroll\"],optionTitles:[\"Switch at point\",\"Scrub with scroll\"],defaultValue:\"trigger\"},triggerAt:{type:ControlType.Number,title:\"Switch at (vh)\",defaultValue:.6,min:0,max:1.5,step:.05,hidden:p=>p.mode===\"scroll\"},fadeMs:{type:ControlType.Number,title:\"Switch (ms)\",defaultValue:700,min:100,max:2e3,step:50,unit:\"ms\",hidden:p=>p.mode===\"scroll\"},startAt:{type:ControlType.Number,title:\"Start (vh)\",defaultValue:1,min:0,max:1.5,step:.05,hidden:p=>p.mode!==\"scroll\"},endAt:{type:ControlType.Number,title:\"End (vh)\",defaultValue:.4,min:-.5,max:1,step:.05,hidden:p=>p.mode!==\"scroll\"},flipMs:{type:ControlType.Number,title:\"Text flip (ms)\",defaultValue:200,min:0,max:800,step:50,unit:\"ms\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollToDark\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicWidth\":\"200\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollToDark.map"],"mappings":"A,mQAsC0R,SAASgB,EAAO,EAAE,CAAC,IAAMC,EAAEZ,EAAE,MAAM,SAAS,EAAoC,MAA/B,CAACY,GAAGA,EAAE,OAAO,EAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,EAAQ,CAAC,OAAOA,EAAE,EAAE,EAAE,OAAOA,EAAE,EAAE,EAAE,OAAOA,EAAE,EAAE,EAAEA,EAAE,OAAO,EAAE,OAAOA,EAAE,EAAE,EAAE,CAAC,CAAE,CAAC,SAASC,EAAQ,EAAE,CAAC,IAAMC,EAAG,SAAS,cAAc,KAAK,EAAE,EAAG,MAAM,MAAMd,EAAE,SAAS,KAAK,YAAYc,CAAE,EAAE,IAAMC,EAAEJ,EAAO,iBAAiBG,CAAE,CAAC,CAAC,KAAK,EAAgC,OAA9B,SAAS,KAAK,YAAYA,CAAE,EAASC,CAAE,CAA+I,SAASC,EAAI,EAAE,CAAC,IAAMC,EAAE,GAAG,CAAC,IAAMC,EAAEH,EAAE,IAAI,OAAOG,GAAG,OAAOA,EAAE,QAAgBA,EAAE,MAAM,QAAM,GAAK,EAAE,MAAO,OAAMD,EAAEjB,EAAE,EAAE,EAAE,MAAMiB,EAAEjB,EAAE,EAAE,EAAE,MAAMiB,EAAEjB,EAAE,EAAE,CAAE,CAQ/4B,SAAwBmB,EAAa,EAAM,CAAC,GAAK,CAAC,OAAK,KAAG,MAAI,QAAM,QAAM,YAAU,cAAY,UAA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