{"version":3,"file":"TechLines.32XcwSWJ.mjs","names":["p","React.useRef","React.useState","c","__esmMin","le","_e","p","c","init_jsx_runtime","ce","init_npm_react_18_3_1","de","useReducedMotion","init_framer_motion_DhsWWWsN","RenderTarget","init_framer_D1IzEvwH","addPropertyControls","ControlType","TechLines","p$1","DEFAULTS","k","incoming","still","root","refs","size","setSize","n","pitch","el","set","w","h","ro","els","W","H","cols","lineX","i","demo","x","spawn","now","now0","st","raf","tick","s","y","u","clamp","start","stop","io","mask","MASKS","c$1","SHADES","init_TechLines","a","b"],"sources":["https:/framerusercontent.com/modules/Hu35D4PHFnj8dDtmsU2F/wr8y5OIWV5OopZru4x7f/TechLines.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useReducedMotion}from\"framer-motion\";/*\n * TechLines: the Ciptex brand signature from 31 Oct 2026. 1px vertical hatching at an 8px pitch\n * with streaks of light falling down single lines, so a few lines light up at a time. Lifted from\n * the hatching above the housing dome (HousingDome, an Attio remake) and made reusable for every\n * page: dark feature sections, the CTA, behind hero stages, light or dark.\n * One streak in `accentEvery` uses the accent (Cantaloupe), the rest the streak colour. Shades (7 Nov)\n * cycles the highlights through four shades of one logo colour instead.\n * Place as the bottom layer of a frame: Position Absolute, pinned to all four edges, width and\n * height 100%. It never takes clicks. Pauses off-screen; canvas and reduced motion show a still frame.\n */const DEFAULTS={lineColor:\"rgba(255,255,255,0.05)\",streakColor:\"#FFFFFF\",accentColor:\"#FC734D\",accentEvery:5,pitch:8,streaks:7,strength:.55,speed:1,length:360,fade:\"Bottom\",background:\"transparent\",spectrum:false,shades:\"Off\"};// Shades (7 Nov 2026): highlights cycle through four shades of one logo colour, for the channel cards\nconst SHADES={Blue:[\"#8CC8FF\",\"#52ADFF\",\"#1868DB\",\"#3D8BF0\"],Green:[\"#7BE3B4\",\"#2BD28F\",\"#00AF70\",\"#0E9E68\"],Yellow:[\"#FFE08A\",\"#FFD04D\",\"#FF9F43\",\"#FFB23F\"],Coral:[\"#FFB8A3\",\"#FF9A7A\",\"#FF715A\",\"#E9573F\"],Teal:[\"#52ADFF\",\"#2BD28F\",\"#00AF70\",\"#8CC8FF\"]};const clamp=(x,a=0,b=1)=>Math.max(a,Math.min(b,x));const MASKS={None:\"none\",Bottom:\"linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%)\",Top:\"linear-gradient(to top, #000 0%, #000 55%, transparent 100%)\",Both:\"linear-gradient(to bottom, transparent 0%, #000 22%, #000 70%, transparent 100%)\",Radial:\"radial-gradient(ellipse 70% 80% at 50% 40%, #000 30%, transparent 100%)\",// 7 Nov: hidden behind a card's copy, fading in past it (Right: copy on the left; Lower: copy on top)\nRight:\"linear-gradient(to right, transparent 0%, transparent 42%, #000 60%, #000 100%)\",Lower:\"linear-gradient(to bottom, transparent 0%, transparent 46%, #000 62%, #000 100%)\"};/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 1200\n * @framerIntrinsicHeight 600\n */export default function TechLines(incoming){const p={...DEFAULTS};for(const k in incoming)if(incoming[k]!==undefined)p[k]=incoming[k];const reduce=useReducedMotion();const still=reduce||RenderTarget.current()===RenderTarget.canvas;const root=React.useRef(null);const refs=React.useRef([]);const[size,setSize]=React.useState({w:1200,h:600});const n=Math.max(0,Math.min(16,Math.round(p.streaks)));const pitch=Math.max(4,p.pitch);React.useLayoutEffect(()=>{const el=root.current;if(!el)return;const set=(w,h)=>w>1&&h>1&&setSize({w:Math.round(w),h:Math.round(h)});set(el.offsetWidth,el.offsetHeight);if(typeof ResizeObserver===\"undefined\")return;const ro=new ResizeObserver(([e])=>set(e.contentRect.width,e.contentRect.height));ro.observe(el);return()=>ro.disconnect();},[]);React.useEffect(()=>{const els=refs.current;const{w:W,h:H}=size;const cols=Math.max(2,Math.floor(W/pitch));const lineX=i=>i*pitch;if(still){const demo=[.12,.34,.52,.7,.86,.22,.6,.44,.94,.04,.78,.3,.66,.16,.9,.5];els.forEach((el,i)=>{if(!el)return;const x=lineX(Math.round(demo[i%demo.length]*(cols-1)));el.style.transform=`translate3d(${x}px, ${H*(.15+.5*(i*37%10)/10)}px, 0) scaleY(${.6+.4*(i*53%10)/10})`;el.style.opacity=String(p.strength*.7);});return;}const spawn=now=>({x:lineX(Math.floor(Math.random()*cols)),sy:.45+Math.random()*.55,y0:-(p.length+Math.random()*200),speed:(170+Math.random()*130)*p.speed,peak:p.strength*(.7+Math.random()*.3),t0:now+Math.random()*1800});const now0=performance.now();const st=els.map(()=>spawn(now0-Math.random()*6e3));let raf=0;const tick=now=>{els.forEach((el,i)=>{if(!el)return;let s=st[i];let y=s.y0+(now-s.t0)/1e3*s.speed;if(y>H){st[i]=s=spawn(now);y=s.y0;}if(now<s.t0){el.style.opacity=\"0\";return;}const u=clamp((y-s.y0)/(H-s.y0));el.style.transform=`translate3d(${s.x}px, ${y}px, 0) scaleY(${s.sy})`;el.style.opacity=String(s.peak*Math.pow(Math.sin(Math.PI*u),1.2));});raf=requestAnimationFrame(tick);};const start=()=>{if(!raf)raf=requestAnimationFrame(tick);};const stop=()=>{cancelAnimationFrame(raf);raf=0;};let io=null;if(root.current&&typeof IntersectionObserver!==\"undefined\"){io=new IntersectionObserver(([e])=>e.isIntersecting?start():stop(),{threshold:0});io.observe(root.current);}else start();return()=>{stop();io?.disconnect();};},[still,size,pitch,n,p.speed,p.strength,p.length]);const mask=MASKS[p.fade]||\"none\";return /*#__PURE__*/_jsxs(\"div\",{ref:root,\"aria-hidden\":\"true\",style:{...incoming.style,position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\",pointerEvents:\"none\",background:p.background,WebkitMaskImage:mask,maskImage:mask},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,backgroundImage:`repeating-linear-gradient(to right, ${p.lineColor} 0 1px, transparent 1px ${pitch}px)`}}),Array.from({length:n}).map((_,i)=>{const c=SHADES[p.shades]?SHADES[p.shades][i%4]:p.spectrum?[\"#FF715A\",\"#FFD04D\",\"#00AF70\",\"#52ADFF\"][i%4]:p.accentEvery>0&&i%Math.round(p.accentEvery)===Math.round(p.accentEvery)-1?p.accentColor:p.streakColor;return /*#__PURE__*/_jsx(\"div\",{ref:e=>{refs.current[i]=e;},style:{position:\"absolute\",left:0,top:0,width:1,height:p.length,opacity:0,transformOrigin:\"0 0\",willChange:\"transform, opacity\",background:`linear-gradient(transparent, ${c} 55%, transparent)`,boxShadow:`0 0 6px ${c}`}},i);})]});}TechLines.defaultProps=DEFAULTS;addPropertyControls(TechLines,{lineColor:{type:ControlType.Color,title:\"Lines\"},streakColor:{type:ControlType.Color,title:\"Highlight\"},accentColor:{type:ControlType.Color,title:\"Accent\"},accentEvery:{type:ControlType.Number,title:\"Accent every\",min:0,max:12,step:1,description:\"0 turns the accent off\"},pitch:{type:ControlType.Number,title:\"Pitch\",min:4,max:24,step:1,unit:\"px\"},streaks:{type:ControlType.Number,title:\"Highlights\",min:0,max:16,step:1},strength:{type:ControlType.Number,title:\"Strength\",min:.05,max:1,step:.05},speed:{type:ControlType.Number,title:\"Speed\",min:.3,max:3,step:.1},length:{type:ControlType.Number,title:\"Length\",min:80,max:800,step:10,unit:\"px\"},fade:{type:ControlType.Enum,title:\"Fade\",options:[\"None\",\"Bottom\",\"Top\",\"Both\",\"Radial\",\"Right\",\"Lower\"]},background:{type:ControlType.Color,title:\"Background\"},spectrum:{type:ControlType.Boolean,title:\"Logo colours\",description:\"Highlights cycle coral, yellow, green, blue\"},shades:{type:ControlType.Enum,title:\"Shades\",options:[\"Off\",\"Blue\",\"Green\",\"Yellow\",\"Coral\",\"Teal\"],description:\"Highlights in four shades of one colour (overrides Logo colours)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TechLines\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"1200\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntr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