import { useRef } from "react" import { useLoop } from "@/hooks/motion" import { MarkLockup } from "@/components/lockup" /** Footage from minimax.io, one subject per modality: the M3.1 flower, the H3 jellyfish, the * H3-Image coral, the Speech manta for music. Each fades to white at its foot. */ const media = (kind: "hero" | "tile", cat: string) => { const c = ["language", "video", "image", "music"].includes(cat) ? cat : "language" return { src: `media/${kind}-${c}.mp4`, poster: `media/${kind}-${c}.jpg` } } /** The moving background at the top of a page, as on minimax.io: full width, taller than the * first screen, fading into the white page. Purely decorative. */ export function HeroVideo({ cat }: { cat: string }) { const ref = useRef(null) useLoop(ref) const m = media("hero", cat) return (