The existing luqmanismat.com Next.js site, refreshed around consulting for project delivery and connected operations, with EngiVault as an engineering software case study and TEN21 as the apparel label and contract-development practice.
Use Node.js 22 LTS and npm. Dependencies are locked in package-lock.json.
npm ci
npm run dev -- --port 3187 --hostname 127.0.0.1Development writes to .next-dev; production builds write to .next.
npm run lint
npm run build
npm run verify:content
npm audit --audit-level=moderate
npm run start -- --port 3187 --hostname 127.0.0.1In another terminal:
npm run verify:siteverify:site checks every public content route, canonical metadata, internal destinations, sitemap, redirects, 404, security headers, brand assets, and byte-for-byte CAD downloads. Override SITE_URL to check another local preview. verify:content preserves all 18 articles, source links, archive labels, valid dates, and index order. GitHub Actions runs the same checks without deploying.
Next.js 16.3.6 / React 19.3.0. ESLint 9 is pinned for compatibility with the React plugin in Next's lint configuration. The production build uses webpack; no experimental bundler migration is required.
Content lives in one model, lib/chapters.ts. Each work chapter is a station in the homepage scene and opens as a frosted-glass sheet over it; there are no separate chapter pages.
/: a 3D chapter journey (react-three-fiber). Each chapter says one thing and offers one action, Explore: the station explodes, the camera pushes in, and the chapter opens as a sheet (/?s=<chapter>, optionally&c=<component>). Back, Esc or Close retracts the sheet and the station reassembles. The scene pauses behind the glass.- Sheets: Controls (schedule, capacity, import, forecast, risk), Integrations (mapping, cost, productivity, quality, data model), Engineering (inspection workbench, EngiVault schematic), TEN21 (four garments that draw in and explode into named pieces).
/ten21/[slug]: per-piece development tech packs (assembled/exploded flats, construction callouts, graded measurement spec, BOM, colourways, printable sheet)./about: background, an animated experience schedule (employer lanes, live Today line, graduation milestone, role detail panel) and tools./engivault: the calculator library and unit converter./blog: searchable/filterable insights, with all existing article routes retained./contact: service/package-aware project brief builder./privacy: describes the site's actual handling of form data, theme preference, and hosting.
/controls, /integrations, /engineering, /ten21, /consulting*, /projects*, /demos*, /portfolio*, /apparel and /indus-blue* redirect permanently to the sheet (or page) that now holds their content (see next.config.mjs). Unsupported historical promotional claims are no longer published as case studies.
The contact form posts to /api/inquiry, which validates the brief (lib/leads/validate.ts, unit-tested by npm run test:leads), drops bots (hidden honeypot field plus a minimum fill time) and stores the lead in the luqmanismat-site Supabase project through the submit_lead() database function (supabase/migrations/0001_leads.sql). The leads table is closed to public keys: the publishable key can only call that function, which validates input and limits each email to five submissions an hour. Read leads in the Supabase table editor and track them with the status column (new, contacted, qualified, proposal, won, lost, spam). If the database is unreachable, the form falls back to a ready-made email so no inquiry is lost.
Each lead records its first-touch landing page, referrer and utm_* tags (captured in <head> before hydration). Tag outreach links, for example ?utm_source=linkedin&utm_campaign=launch. Vercel Web Analytics counts visits without cookies.
Environment (see .env.example): SUPABASE_URL, SUPABASE_PUBLISHABLE_KEY; optional RESEND_API_KEY, LEAD_NOTIFY_TO, LEAD_NOTIFY_FROM for an email per lead, and NEXT_PUBLIC_BOOKING_URL for the booking button.
There is no header bar. A corner HUD shows identity and location, a labelled Light/Dark switch sits beside "Let's talk", a full-screen menu (button or M) lists the chapters, a floating dock links sibling pages (EngiVault tools, TEN21 tech packs), and each page ends with a Next step. Page changes use an anime.js tile curtain; scrolling uses Lenis. Every effect is disabled under prefers-reduced-motion.
The project-controls and inspection-planning applications mount natively (no iframe), one view per component via mount(el, { view, bare: true }), and only when that component nears the viewport. Their frosted-glass layers are flattened in-page (backdrop-filter off) because they repainted on every scroll frame. npm run build:examples bundles them and runs scripts/scope-demo-css.mjs, which scopes their CSS to .demo-scope and routes their colours through the site's tokens; styles/demos.css bridges the tokens. One dock per chapter re-brands every live component at once (accent, type, corners, density). The standalone public/examples/*/index.html pages still work on their own.
PRODUCT.md and DESIGN.md define the approved direction. Geist, Geist Mono and Instrument Serif are self-hosted from installed packages (Montserrat remains a fallback). Warm paper and ink with one signal colour, everywhere, TEN21 included. The shared HUD, menu, footer and theme controls apply across all pages.
content/articles.json and content/new-articles.json are the article catalog. Keep unverified historical dates null; do not invent dates. Existing article bodies remain under app/blog. Case studies must distinguish independent development from client work and must not claim unmeasured results.
/projects/field-01 now redirects to /ten21. The original study files remain in public/cad/field-01, and verify:site still checks them byte for byte. That folder includes millimetre-based layered DXFs, a STEP/STL hardware solid, four-sheet PDF, specifications/BOM CSVs, source, and a ZIP. The site no longer renders these files.
Rebuild with Python, CadQuery 2.8.0, ezdxf 1.4.4, and ReportLab 4+:
python scripts/cad/build_field01.py public/cad/field-01The generator audits both DXFs and reimports STEP to check validity, solid count, and dimensions. Sheet 03 is full scale on A3 at 100%; check the calibration bar. These are development studies, not approved manufacturing drawings, validated garment patterns, or load-rated hardware. The pull is a separate accessory study.
This revision is prepared and verified locally on website/consulting-launch. No remote push or deployment has been performed. For the existing hosting project, use Node.js 22, npm installation, npm run build, and the Next.js framework preset. No runtime secrets are required. Before promoting, review the final content and the TEN21 launch status. After deployment, verify the production domain, redirects, email handoff, and CAD downloads on the actual host.