CV

alba.swiss.

Marketing site for a Swiss technology consultancy that works by introduction: one cinematic landing of 16 sections with a 55 second intro film, and a request-an-introduction form as the only way to make contact. The hard parts were a page that is correct before JavaScript arrives and a film that plays on every browser engine.

Business services

Year
2025
Freelance work
My part
Sole developer
Core stack
27 technologies
GSAP, Next.js, Radix UI, React Compiler
Website
alba.swiss

My role

I built both versions end to end, on my own: the first one in April 2025 and the rebuild in September 2026.

Full stack

Capabilities

Landing

  • One long landing of 16 sections with scroll motion on GSAP, ScrollTrigger and smooth scroll
  • Two scroll-driven SVG diagrams, each with a separate mobile tree, and an accordion built by hand
  • A particle star field drawn on canvas in the proof section

Intro film

  • A 55 second full-screen intro film with skip, replay and reduced-motion handling
  • Per-engine MP4 and WebM sources, with narrow-viewport encodes and a loading label in the server HTML

Contact and legal

  • A Request an introduction modal with React Hook Form and Zod that posts to Web3Forms
  • Privacy policy and terms pages, with an analytics opt-out toggle on the privacy page

Delivery

  • Security headers, build-time blur placeholders and a sitemap with robots rules and an Open Graph image
  • A source-hygiene check that fails CI on dead public paths, SVGs loaded through an image source attribute and comments over the budget
  • Vercel hosting with Vercel Analytics and Speed Insights

Patterns and decisions

  • The site has no CMS and no database. It is statically rendered, and the copy of each section lives in a constants module next to that section.
  • The contact form posts from the browser to Web3Forms, and a Zod schema validates it for the visitor. A failed send does not start the 5 second cooldown.
  • Env variables go through T3 Env, and skipping env validation is refused in production.
  • Security headers, HSTS, AVIF and WebP images and the redirects live in the Next.js config.
  • Blur placeholders for the raster images are generated by a script that runs before dev and before build.
  • A second script fails CI on dead public paths, on SVGs loaded through an image source attribute and on comments over the budget.
  • The pnpm workspace sets a three-day release cooldown for new packages.

Cases

A page that is right before JavaScript arrives. The hero entrance was a GSAP from tween, which runs after the first paint. The hero showed, then snapped to hidden. My first fix in the global stylesheet still left the heading fully visible for 3.58 seconds under a 400 kbps throttle. I moved the hidden state into an inline style block that ships in the same bytes as the elements, switched on by a server-rendered attribute. A CSS animation ends it after 1.5 seconds, so a broken bundle cannot leave the hero blank. A noscript rule shows everything when JavaScript is off. The diagram sections go the other way: the server renders them visible, and GSAP writes the hidden state in an effect. The Skip control of the intro is plain CSS too, and an inline listener keeps its tick through hydration.

An intro film for every browser engine. The site opens with a 55 second film in a full-screen overlay. WebKit picks a WebM it cannot play from a file-based video element and hangs. iOS reads the muted attribute, not the property. On a 1.5 Mbps link hydration ended at 11.4 seconds and the film began at 12.2. I listed MP4 and WebM sources with the narrow-viewport encodes first, chosen by media query before any script runs. I removed WebM on WebKit by checking the browser vendor and set muted through a ref callback. A loading label and the Skip control are in the server HTML. The ambient wash behind the content needed its own video. A second element on the feature file doubled the decode and dropped 39 percent of frames. A separate 160 by 106 encode dropped 0.23 percent.

What changed between 2025 and 2026. The first version, in April 2025, was a conventional marketing page. It had seven lazy-loaded sections with three more hidden by comment, AOS, Embla Carousel carousels, a footer subscribe form and a contact form. In September 2026 I rebuilt it as one cinematic landing of 16 sections with GSAP and smooth scroll, plus the intro film. The contact path is now a single "Request an introduction" modal, and all direct contact routes are gone. The rebuild added analytics with an opt-out toggle on the privacy page. ESLint and Prettier gave way to Biome with Ultracite in June 2026, and the rebuild added the pointer check, the security headers and the release cooldown.

Core stack

AI engineering

Animation & 3D

Build tools

Design & collaboration

Frameworks, routing & apps

Infrastructure & observability

Languages & markup

Media & real time

Platform & web APIs

State, forms & data fetching

Screenshots