Case study · this website · 2026
How we built h2ostudio.dev
Our own site had one job: prove the line “Serious code. Silly packaging.” in a way a client can check, not just read. So the silly half is something you play with, and the serious half is something you can open and inspect.
The brief we gave ourselves
- Look like the Instagram feed come alive: clay, Mol, electric blue on navy.
- Give business buyers the plain facts without making them wade through jokes.
- Be fast on a mid-range phone in Jordan, secure by default, readable by search engines and AI tools.
- Make every claim on the page checkable.
Three ideas only we could do
- The Serious / Silly switch. The tagline is the main control. Both versions of every text ship in the HTML, CSS shows one, and the choice is remembered. Serious mode adds the stack, the studio facts and the deliverables of each step.
- Website Emergency. “Break this site” wrecks the hero on purpose; Mol fixes it one problem at a time and reports the time. It changes styles only, never content, and runs fast for reduced-motion users.
- Mol as a guide. A pose and a short line per section, a reaction when a brief is sent, and a nap in the footer when the studio is closed in Amman.
Stack
| Layer | Choice | Why |
|---|---|---|
| Framework | Next.js 16.4.6 | Static prerender for every page; one server route for the contact form. |
| UI | React 19.3.1 | Client components only where something moves or reacts. |
| Motion | GSAP 3.13.0 | The headline that splits as you scroll and the pipe that fills down the process. |
| Scroll | Lenis 1.3.27 | Smooth scroll, off for reduced motion and the motion toggle. |
| Validation | Zod 4.6.7 | Every field of the brief, at the server boundary. |
Resend 6.37.0 | Delivers briefs; the visitor is the reply-to. | |
| Rate limit | Upstash 2.2.0 | 5 briefs per IP per 10 minutes, shared across servers. |
| Language | TypeScript 5.9.3 | Pages and routes; components in JSX. |
Versions on this page are read from the project’s package file at build time, so they are always the ones running.
Security
- Headers on every response: Content-Security-Policy, HSTS with preload, nosniff, frame denial, a strict referrer policy and a locked-down permissions policy.
- The contact form checks origin, content type and size, rate-limits before parsing, validates every field, flattens line breaks to block email header injection, escapes the message, traps bots with a honeypot and a minimum fill time, verifies Cloudflare Turnstile on the server, and logs an ID and an outcome, never personal data.
- Without its keys, production refuses to send instead of sending unprotected.
- Trade-off we accept: the CSP allows inline scripts, because Next’s static pages need them without per-request nonces. Nonces would make every page dynamic. We revisit this when the site has more server routes.
Performance
- Every page is prerendered static HTML; the only server code is the contact route.
- Fonts are self-hosted through Next’s font system: no request to Google, fallback metrics to avoid layout jumps.
- The hero render ships in three sizes and is preloaded; heavy effects (the peelable sticker, footer menu, bot check) load only when they are near the screen or the page is idle.
- Layout shift measured in a production build: 0.035 (good is under 0.1).
- Honest gap: speed numbers from real visitors (Core Web Vitals at the 75th percentile) only exist after launch. Independent field data shows Next.js has the lowest share of sites with good interaction responsiveness among the frameworks tracked, so we will measure ours and publish the numbers here.
Accessibility
- Reduced-motion users get no loader, no smooth scroll and no travelling animation; anyone can also switch motion off from the footer.
- One h1, ordered headings, a skip link, labelled fields, named controls, alt text on every image, touch targets of at least 24px (WCAG 2.2).
- Without JavaScript all content stays visible.
Search engines and AI tools
- Metadata, canonical URLs, a share image and structured data describing the studio and this case study.
- Plain facts in the HTML that AI answer engines can quote: pricing model, ownership, reply time, security baseline, handover.
What we would do differently
- We spent a day on a real-time 3D version of the clay H. It never matched the original render, so we used the render as an image. Lesson: use the real asset first, build 3D only when it beats it.
- Our first mockup reused Instagram posts as pictures; they repeated the feed and cluttered the page. Interface pieces built in code replaced them.
Built by H2O Studio in Amman, November 2026.