01

Overview

Afterimage Card Co. is a playing-card house for magicians that does not exist. In the story, it was started in 2016 by a sleight-of-hand performer and a vision scientist who rented a shut-down 1937 picture palace in Collingwood, Melbourne, to find out where an audience actually looks. One of them can make a card vanish. The other can explain why you didn’t see it go.

I made it as a portfolio showpiece, with a quality bar I set deliberately high: the kind of site that wins Site of the Day. Product sites tend to describe the product. I wanted one where the website itself is the product demo.

So the site performs before it sells. In the first minute it names a card you only counted to in your head, and it never asks you for anything.

02

Choosing the idea

Before designing anything I scored twelve product ideas against six tests: a signature interaction nobody had seen, enough visual range to carry thirteen sections, a style family my portfolio didn’t already have, my own taste (my bookshelf is full of con artists and magicians), whether the product felt credible, and whether it could actually be built to that standard.

A Damascus kitchen knife, an e-ink reader, a marbled-paper atelier, a glass prism studio and a music box all made the shortlist. Playing cards for magicians won because it was the only idea where the content and the wow were the same thing. A site that genuinely fools you, then explains the maths, then makes fifty-one cards disappear from your vision, is a product demo, an exhibition and a trick at once.

It also pushed me somewhere new. My other recent pieces share a dark, brutalist language. Afterimage is op art: Bridget Riley and Victor Vasarely, black lines on white paper that refuse to sit still.

03

A trick that really works

The centrepiece is The Count. You think of a number from one to ten. The site deals a deck onto a close-up mat, at your pace, while you count along in your head: land on a card, take its value as your next count, and keep going to the end of the deck. Then fifty-one cards turn face down in a ripple, one card rises, and the site names it.

It works because of the Kruskal count, a principle the physicist Martin Kruskal described in the 1970s: most counting chains through a deck run into each other and then travel together. With an ordinary shuffled deck it works around 85% of the time. That wasn’t good enough for a website that only gets one try.

So I built a bank of 200 decks offline, using a local search, where all ten starting numbers converge on the same card under both common counting rules, and 96 to 100% of all positions lead there too, so most miscounts still arrive. A random deck manages that 28.5% of the time. The page picks a deck at load, so a visitor who comes back gets a different card. No input is ever taken.

The Count: Pick a number. Don’t tell us. Fifty-two cards dealt face up into four rows on a black close-up mat

04

Fool them first, then show them how

One of the house rules I wrote for the brand is “shown, then explained”. Knowing how a trick works shouldn’t make it less wonderful, and here it makes it more so.

The Secret lays your exact deck out flat and draws every starting number as an arc hopping from card to card. As you scroll, the ten roads find each other, shared hops get heavier, and the final hop turns red. Each number has a button, so you can isolate one road and follow it by eye.

The copy credits the history properly. The Kruskal count was first printed in Karl Fulves’s Pallbearers Review in June 1975, three years before Martin Gardner’s famous column, and research for the site corrected several facts the brief had wrong.

The Secret: the same deck laid out as a grid, with curved arcs tracing every starting number’s path through the cards and merging into a single red line

05

Real illusions, handled safely

The Eye section runs real perceptual effects live. Stare at a red dot and fifty-one soft cards fade out of your vision while one stays (Troxler fading, first described in 1804). Then the Fraser spiral, which is really a set of circles, the café wall, whose lines are parallel, and the Ouchi illusion, which slides as you scroll.

High-contrast stripes can trigger headaches, and in rare cases seizures, so I researched the published guidance before drawing a single line and turned it into rules. High-contrast stripes stay under about 28% of the screen; the original full-bleed hero was redesigned into the bounded iris you see now. Large fields stay low contrast. Line spacing avoids the most provoking band. Nothing flashes, and nothing moves unless your pointer does.

A Calm patterns switch is offered on entry, in the top bar and in the footer, and it turns itself on for anyone whose system asks for reduced motion or more contrast. Every pattern is drawn analytically in a shader and fades to grey instead of shimmering into moiré.

The hero: Look again, in Bodoni Moda, beside a 3D deck floating inside a bounded circle of rippling black lines on paper

06

A deck, designed from scratch

The deck itself is a complete design system. The indices are set in Bodoni Moda, because a Didone’s thick-and-thin strokes are already a stripe. The pips are redrawn and laid out in millimetres. The back is an op-art iris with a spade-shaped pupil.

That back is also a working marked deck. In Plain Sight the back fills the screen, a loupe reveals the code (the small eye in the corner, the pupil pointing like a clock hand, the rings counting out the suit), and then three cards are dealt for you to read. The promise is that you can learn to read a marked deck in about a minute.

The back is one shader function used everywhere a back appears, so the marks are exact at any size. Five editions grew out of it: Ordinary, Plain Sight, Stacked (arranged to perform The Count from the box), a numbered Gilt edition, and Yours, which ships in the exact order you shuffle on the site.

Plain Sight: a huge op-art card back made of concentric rings with a diamond-shaped pupil, beside instructions for reading the marked code

07

Every image is made of lines

One rule holds the whole art direction together: every image is made of lines. Only the product itself is shaded. The court cards, the building and its photographs are all rendered as fields of parallel lines.

The twelve courts started as flat four-tone drawings generated with an image model, using one master king as the style reference for the rest. A script splits each one into an ink layer and a tint layer of sine-waved horizontal lines, red only on hearts and diamonds, and they carry their old French names: David, Charles, César, Alexandre. The cinema photographs are turned into line halftone live, in the browser.

The other rule is that red is only ever a suit: hearts, diamonds and your card. Nothing else on the site is red.

The Court: four kings drawn as line portraits in black and red, each labelled with its historical French name: David, Charles, César, Alexandre

08

One canvas, many scenes

Under the hood, a single fixed WebGL canvas (three.js) covers the screen. Every 3D scene, op-art field, illusion and photograph is just an empty slot in the HTML. Each frame measures where those slots are and draws each visible one into its own clipped viewport, so thirteen sections share one graphics context and the page stays smooth.

The cards are real geometry: a front, a back and an edge strip with the black core showing in it, with bending, rounded corners, gilt edges and the face atlas all added to a physical material in the shader. Faces are drawn to a canvas atlas at runtime. The tuck box opens, gilds and stacks. Nothing needed a 3D modelling tool; the realism comes from materials.

Sound is synthesised in the browser too, from the riffle (forty-six accelerating flicks and a bridge) to the room tone of the old cinema. It is opt-in and capped. A performance governor steps the resolution down on slower machines, and without WebGL the whole trick still runs as drawn cards.

Editions: Take the deck. A 3D tuck box with cards rising out of it, beside a list of five editions with their prices

09

The strange layer

About a tenth of the site is quietly odd, and always deadpan. The booth clock at the Orpheus is stuck at 3:07. Type 3, 7, A anywhere and three cards deal themselves, a nod to Pushkin’s The Queen of Spades, and the third is never the ace. Look away from the Queen of Spades in the Court and, sometimes, when you look back she has winked.

Your card follows you. The card the Count found is the one that doesn’t vanish in the Troxler illusion, it turns up in a postscript to the last letter, and the final call to action reminds you that your card is still the one you picked. The joker, The Fool, only appears on the 404 page: “This card isn’t in the deck.”

Behind the old screen there’s an Ames room, built in the browser with a real projective warp, where two identical cards look like a giant and a dwarf.

The Orpheus: a 1937 Art Deco picture palace at night, its vertical sign lit, rendered in black-and-white line halftone

10

Outcome

Afterimage is the most ambitious single page I’ve made: a brand, a full deck design, five editions, thirteen sections, a trick that works every time, real illusions with safety rules behind them, and a fallback for every effect.

It is a concept, so everything about the company is fiction: the founders, the building, the letters and the editions. The history and the maths are real, and sourced. The best test is the simplest one: show it to someone, ask them to pick a number, and watch their face when it names their card.

52 factorial: This order has never existed. A 3D deck mid-shuffle above all sixty-eight digits of the number of possible orders
The closing call to action: Your card is still the Ten of Hearts, with the card floating above it