# NFR Design Patterns — Unit 1: Project Scaffold & Infrastructure ## 1. Performance — Route-Based Code Splitting (Answer Q1-A) **Pattern**: Per-feature route modules with lazy-loaded layouts and page components. - TanStack Router `createLazyFileRoute` for dashboard, users, cms routes - Auth and root shell remain eager for fast initial paint and login - Vite automatically emits separate chunks per lazy route - Aligns with NFR-U1-01 (smallest possible bundle) and BR-U1-05 (TanStack Router) ## 2. Accessibility — Keyboard & Focus Trap (Answer Q2-A) **Pattern**: Browser-native Tab order + shadcn/ui focus-visible + modal focus trap only. - All interactive elements use native `