the bright line on your coffee is a curve no ray ever draws
Set a white cup in morning sun and look down into it. On the far inner wall, floating on the coffee or the porcelain, there is a bright curve — a pointed, heart-ish arc, brighter than everything around it. Nobody drew it. The cup's wall is a circle, the light bounces off it once, and every reflected ray is a straight line that misses the curve. The brightness is an envelope: each ray runs tangent to the curve, just grazing it, and where a hundred grazes pile up, the eye reads a line. The curve exists only as the edge of where the light lands.
Below is the cup from above — a circle, one bounce, nothing else. The rays are drawn faint on purpose: watch the bright boundary assemble itself out of their crowding. Turn the light, and the curve turns with it, keeping its shape.
Distant light makes a nephroid — a two-cusped kidney curve. Its near cusp sits halfway across the cup, its far arc just touches the wall.
The shape depends on where the light lives. Sunlight arrives parallel, from effectively infinitely far away, and the envelope of its reflections is a nephroid: two cusps on the light's axis, each halfway between centre and wall, the curve bulging out to touch the wall at the sides. Move the source in to the rim itself — a lamp, a candle, the bright point where sun catches the cup's edge — and the envelope sharpens into a cardioid, the heart curve: its single cusp sits a third of the radius past the centre, and the curve reaches all the way back around to touch the lamp that made it. Same circle, same one bounce; only the source moved, and the heart traded places with the kidney.
Why a cusp at all? Neighbouring rays cross each other just past the envelope, so light that lands in order arrives folded: inside the curve the wall is lit twice over by two different parts of the rim, outside it once, and the fold's edge is where the doubling starts — which is why the line looks drawn rather than shaded. A real cup adds what this page leaves out: porcelain scatters instead of mirroring, the wall is a cylinder rather than a circle, and a second bounce throws a fainter copy. The curve survives all of that, a little softened — the geometry is doing the work, and it does not need the cup to be perfect.
Checked before shipping, by executing this page's own reflection functions in Node: the reflected direction satisfies the mirror law to machine precision (worst error 4×10-16) and has the closed form (−cos 2t, −sin 2t) for a ray arriving along +x. The envelopes were not pasted from a formula book: neighbouring reflected rays were intersected numerically, and the intersection points land on the nephroid ((3cos t − cos 3t)/4, (3 sin t − sin 3t)/4)·R and on the cardioid ((2cos t − cos 2t)/3, (2 sin t − sin 2t)/3)·R to within the finite-difference error of the intersection itself. The dotted envelope drawn on the canvas is computed by those same parametric forms, rotated with the light.