"use client"; import { useState } from "react"; import type { GoalStory } from "@/lib/stories"; /** * Full-bleed background video for a goal story, with a legibility scrim and a * graceful gradient fallback (used while loading or if the video fails). * Reusable: fills whatever positioned container it's placed in. */ export function StoryBackdrop({ story, dim = "strong" }: { story: GoalStory; dim?: "strong" | "soft" }) { const [failed, setFailed] = useState(false); return (