import React, { Suspense, lazy } from 'react'; import { BrowserRouter, Routes, Route, useParams } from 'react-router-dom'; import './App.css'; import { Nav } from './components/Nav'; import { Hero } from './components/Hero'; import { Footer } from './components/Footer'; // Eagerly loaded: above the fold import { WhySection } from './components/WhySection'; // Lazy loaded: below the fold (Plotly-heavy sections) const CircuitExplorer = lazy(() => import('./components/CircuitExplorer').then(m => ({ default: m.CircuitExplorer }))); const PatchingLab = lazy(() => import('./components/PatchingLab').then(m => ({ default: m.PatchingLab }))); const LogitLens = lazy(() => import('./components/LogitLens').then(m => ({ default: m.LogitLens }))); const SparseAutoencoder = lazy(() => import('./components/SparseAutoencoder').then(m => ({ default: m.SparseAutoencoder }))); const FeatureSteering = lazy(() => import('./components/FeatureSteering').then(m => ({ default: m.FeatureSteering }))); const AlignmentHub = lazy(() => import('./components/AlignmentHub').then(m => ({ default: m.AlignmentHub }))); const AttentionViewer = lazy(() => import('./components/AttentionViewer').then(m => ({ default: m.AttentionViewer }))); const WhatBreaks = lazy(() => import('./components/WhatBreaks').then(m => ({ default: m.WhatBreaks }))); const ResearchBlog = lazy(() => import('./components/ResearchBlog').then(m => ({ default: m.ResearchBlog }))); const TechStack = lazy(() => import('./components/TechStack').then(m => ({ default: m.TechStack }))); const ResumeBullet = lazy(() => import('./components/ResumeBullet').then(m => ({ default: m.ResumeBullet }))); const LiveEngineBanner = lazy(() => import('./components/LiveEngineBanner').then(m => ({ default: m.LiveEngineBanner }))); // Blog components const BlogIndex = lazy(() => import('./components/BlogIndex').then(m => ({ default: m.BlogIndex }))); const BlogPost1 = lazy(() => import('./components/BlogPost1').then(m => ({ default: m.BlogPost1 }))); const BlogPost2 = lazy(() => import('./components/BlogPost2').then(m => ({ default: m.BlogPost2 }))); const BlogPost3 = lazy(() => import('./components/BlogPost3').then(m => ({ default: m.BlogPost3 }))); const BlogPost4 = lazy(() => import('./components/BlogPost4').then(m => ({ default: m.BlogPost4 }))); const BlogPost5 = lazy(() => import('./components/BlogPost5').then(m => ({ default: m.BlogPost5 }))); const SectionLoader = () => (