Film portfolio  ·  CASE STUDY 2026

Mostafa Layegh

A video walkthrough of Mostafa Layegh’s portfolio: the cellular intro, the film corridor, transitions, and mobile layouts.

A portfolio for an AI filmmaker. The films sit along a WebGL corridor, connected by cellular material that divides and reshapes as you move between pieces.

Design and development · 2026
Live site
Role
Design and development
Client
Mostafa Layegh, AI filmmaker
Year
2026
Stack
Next.js 16 · React Three Fiber · WebGL2 shaders · Sanity CMS · Zustand · Vitest · Playwright

Overview

Mostafa makes films with AI and wanted a portfolio built around cellular division rather than a standard template.

I designed the homepage as an interactive corridor. Each featured film plays inside an aperture on the wall. Moving from one piece to the next triggers cell division in real time: the cellular material compresses, splits in two, and half travels over to frame the next film. For visitors who want to browse directly, all sixteen films also live in a full index, each with its own page.

The intro captured live: cells weave into the mark, hold for a beat, then divide into the corridor.

Decisions

I based the visual style on darkfield microscopy, where cells stand out against pure darkness, like watching a film in a pitch-black theatre. The backdrop is near-black, and the films are the only light source. The interface avoids artificial accent colors: every glow on screen comes straight from the video frames.

The opening intro brings Mostafa’s personal mark together using cells, holding it until you choose to enter. Once you step in, the mark condenses into a single cell and divides; the opening between the two halves becomes the viewport for the first film.

Moving through the corridor is locked to fixed stops. A scroll or arrow key carries you to the next film over roughly five seconds, and you can reverse direction mid-flight at any point. I avoided free scrolling so the camera never gets stranded in empty space between films.

A dedicated film page for Country of Light, its title set over a full-bleed still of a black cat in a traditional Persian market.The full index of sixteen films, each title set in cinematic type on black.
Each film gets its own dedicated page, alongside an index of all sixteen works.

Build

Two renderers share the same camera. A React Three Fiber scene manages the 3D space: camera positions, depth veils, dust motes, and video planes. Sitting directly on top, a custom WebGL2 shader draws the metaball material in two passes, tracking the camera frame-by-frame so the cellular apertures align with the footage.

All choreography is a pure function of scroll progress. That includes camera stops, the six stages of division (hold, compress, split, travel, capture, settle), aperture visibility, and transitions into a project page. I wrote unit tests to ensure that playing an animation backward reproduces the exact forward sequence in reverse.

Content is managed in Sanity and baked in at build time. If Sanity is unreachable, the build keeps the last committed content and logs a warning, so a CMS outage never takes the portfolio down. On phones, under reduced-motion settings, or in browsers without WebGL, the 3D corridor falls back to a static index with the same visual style.

The phone home page: the name in bold type, a one-line introduction, and the first film as a clean card.
A film page on mobile: The Beautiful Game, with its title set over a full-height still.
On mobile screens, the corridor gives way to a clean static index and full-bleed film pages.

Outcome

The site is live at mostafalayegh.studio, with five featured films in the 3D corridor and sixteen in the full index. With a Sanity studio set up alongside it, Mostafa can update films, credits, and write-ups on his own without needing a developer.