Colophon

How this site is built: stack, principles, performance, accessibility and credits.

01

Midad: ink in two directions

The site is written in ink. The name is written right to left in Ruqʿah, lifts into particles and lands as Latin. Each project is then written in its own palette, and the whole page changes pigment between them as you scroll, while the ink stays the same material throughout.

02

Stack

Next.js 16 (App Router, Cache Components, React Compiler) with every route prerendered and guarded by ensureStatic, React 19, TypeScript in strict mode, Tailwind CSS 4, next-intl with next/root-params and Zod-validated content. The motion layer is plain three.js for the ink and the glass screens, GSAP (ScrollTrigger, SplitText, DrawSVG) for every timeline, and Lenis for the scroll.

03

One canvas, real ink

A single fixed WebGL canvas runs a GPU fluid simulation (stable fluids, half-float) behind the page. Screens of each project are textures on glass slabs that develop out of the ink. Names are rasterised from the real DOM text, so Arabic keeps its shaping and lines up with the HTML underneath.

04

Performance

The largest element on the first screen is text, so nothing waits for WebGL. The engine loads after first paint, in its own chunk, picks a quality tier from the device, watches its frame time and steps down if needed, caps the pixel ratio and pauses while the tab is hidden. First-load JavaScript is measured from the prerendered HTML on every build and held to a budget.

05

Accessibility

Every chapter is real HTML first: it works with a keyboard, a screen reader and without JavaScript. Motion follows the system setting and an in-site switch; with motion off, every chapter becomes a designed editorial page in its project's colours. Every theme and every project palette is checked for WCAG AA contrast on each build, and axe runs in the end-to-end tests.

06

Two directions

English lives at / and Arabic at /ar with the same slugs. Layout uses logical properties only (a lint step fails on left/right), timelines and tracks run the other way in Arabic, Arabic text is never letter-spaced or split into letters, and Western digits sit next to code.

07

Credits

Type: Alexandria by Mohamed Gaber and Julieta Ulanovsky, Aref Ruqaa by Abdullah Aref, Instrument Serif and JetBrains Mono. Brand marks: Simple Icons (CC0; trademarks belong to their owners). Recreated and redesigned screens are labelled wherever they appear.