Content does not need application state
A case study, an offer and a description of my approach do not change with every click. Astro generates them at build time. The browser receives ready-made HTML and CSS; it does not have to wait for an application to start before displaying a heading.
Interaction where it serves a purpose
Project filtering, local tasks and the contact form need JavaScript. Each has a small, separate module. The main content and navigation remain accessible when scripts are disabled. The mobile menu and search use the native dialog element with focus management.
The backend is separate from the content
A Cloudflare Worker handles the API and security headers, and retrieves ready-made documents from the linked static assets. Form data is validated again on the server. This deliberately separates public content from operations that require trust.
The cost of this decision
Changing content requires a new build. For a portfolio stored in Git, that is an acceptable trade-off. A product with personalisation after sign-in or content changing every second would need an architecture that accounts for those requirements.