/* Genesis DMA — layout chrome */ const { useState: _us, useEffect: _ue, useRef: _ur, useCallback: _uc, memo: _memo } = React; /* --- Brand bar + scroll progress --- */ function BrandBar() { const barRef = _ur(null); _ue(() => { let raf = 0; const update = () => { const scrollTop = window.scrollY; const height = document.documentElement.scrollHeight - window.innerHeight; const p = height > 0 ? scrollTop / height : 0; if (barRef.current) barRef.current.style.transform = `scaleX(${p})`; raf = 0; }; const onScroll = () => { if (!raf) raf = requestAnimationFrame(update); }; window.addEventListener('scroll', onScroll, { passive: true }); update(); return () => window.removeEventListener('scroll', onScroll); }, []); return ( <>