// Top nav — minimal, sticky, blurred — mobile-responsive const Nav = ({ onCmdK, theme, onToggleTheme, accent, lang, onToggleLang }) => { const [scrolled, setScrolled] = React.useState(false); const [menuOpen, setMenuOpen] = React.useState(false); React.useEffect(() => { const onScroll = () => setScrolled(window.scrollY > 12); window.addEventListener("scroll", onScroll, { passive: true }); return () => window.removeEventListener("scroll", onScroll); }, []); const links = [ { id: "work", label: "Services" }, { id: "stack", label: "Stack" }, { id: "agents", label: "Agents" }, { id: "timeline", label: "Timeline" }, { id: "contact", label: "Contact" }, ]; return ( <> {/* Mobile drawer */} {menuOpen && (
{links.map(l => ( setMenuOpen(false)} style={{ fontSize: 15, color: "var(--text-dim)", padding: "12px 4px", textDecoration: "none", display: "block", borderBottom: "1px solid var(--line)", }} >{l.label} ))}
setMenuOpen(false)} style={{ padding: "8px 14px", background: "transparent", border: "1px solid var(--line)", borderRadius: 8, color: "var(--text-dim)", fontSize: 13, textDecoration: "none", }} >Get a Quote setMenuOpen(false)} style={{ padding: "8px 14px", background: "var(--text)", color: "var(--bg)", fontSize: 13, fontWeight: 500, borderRadius: 8, textDecoration: "none", }} >Client Login
)} ); }; window.Nav = Nav;