PROBLEM Straight from Euclid's proposition on the fourth proportional, here is a surprisingly intriguing historical challenge posed on Euclidea, a mobile app for Euclidean constructions. I have a geometric construction that achieves the goal but not within the constraints. Could anyone advise on a construction that would fit within these constraints?
Given $\angle{O}$. Points $A$ and $B$ are on one ray of $\angle{O}$ in the order $O-A-B$, and $\overleftrightarrow{OA}$ is completely preconstructed. Point $C$ is on the other ray of $\angle{O}$.
Goal Construct point $D$ on the same ray of $\angle{O}$ as $C$, such that $$\frac{OA}{OB} = \frac{OC}{OD}.$$
Constraints Only an unmarked straightedge and a non-rusty collapsible compass (i.e., a compass that, while on paper, can have any radius but which cannot maintain said radius when not on paper) can be used. Use only from the construction steps below a number of steps that together require just three elementary steps in total.
- Construct a point: 0 steps (S).
- Mark the intersection of two curves with a point: 0S.
- Construct a new line (*or line segment or ray): 1S.
- Extend a given line segment (*or ray): 1S.
- Construct a circle (non-rusty collapsible compass): 1S.
- Construct the perpendicular bisector of a line segment: 3S.
- Construct a new line perpendicular to an old line: 3S.
Hints from Euclidea A known solution employs three constructions in the order: Circle, circle, line.
PREVIOUS WORK Following Euclid himself, I constructed below a line $\overleftrightarrow{BF} \parallel \overline{OA}$; $\overleftrightarrow{BF}$ intersects $\overleftrightarrow{OC}$ at the required point $D$. But my construction barely misses both the 3S-constraint and the hint. The following figure accompanies my four-step construction, where the given and goal are shown as an inset:

- Construct $\bigcirc{A(B)}$ centered on point $A$ and with radius $AB$ [1S running total].
- Construct $\bigcirc{C(B)}$ centered on point $C$ [2S running total].
- $\bigcirc{A(B)}$ also intersects $\bigcirc{C(B)}$ at another point $E \ne B$.
- Construct $\overleftrightarrow{CE}$ [3S running total].
- $\overleftrightarrow{CE}$ also intersects $\bigcirc{C(B)}$ at another point $F \ne E$.
- Note that $\overline{EF}$ is a diameter of $\bigcirc{C(B)}$.
- Construct $\overleftrightarrow{BF}$ [4S running total].
- $\overleftrightarrow{BF}$ intersects $\overleftrightarrow{OC}$ at the required point $D$. $\blacksquare$
PROOF OF SOLUTION Auxiliary lines were added to the construction figure above, resulting in the proof figure below. Points common to both figures are named as they are in the construction figure.