Field note · 18 Nov 2026 · 1 min read
Case Note
How each section of this portfolio hides behind a mini-game without hiding from search engines.
Every section of this site is a case file guarded by a small puzzle. Here’s how it works.
The gate
A tiny inline script runs before the page paints. It reads localStorage, finds which cases
you’ve already solved, and adds a class like case-open-artwork to <html>. CSS takes it from there:
html.js:not(.case-open-artwork) [data-case-content="artwork"] { display: none; }
html.js.case-open-artwork [data-case-gate="artwork"] { display: none; }
The puzzles
Each puzzle is a React island that calls onSolve() when you crack it.
Adding a new one is as simple as writing a component and registering it.