"use client"; import { cn } from "@/lib/cn"; import { motion, useReducedMotion, type Variants } from "framer-motion"; import type { ReactNode } from "react"; type Props = { eyebrow?: string; index?: string; title: ReactNode; /** The gold-accent phrase rendered inside the title pass as JSX or separate prop. */ accent?: ReactNode; subtitle?: ReactNode; align?: "left" | "center"; className?: string; }; export function SectionHeading({ eyebrow, index, title, accent, subtitle, align = "left", className, }: Props) { const reduce = useReducedMotion(); const v: Variants = { hidden: { opacity: 0, y: reduce ? 0 : 24, filter: reduce ? "blur(0px)" : "blur(6px)" }, visible: { opacity: 1, y: 0, filter: "blur(0px)", transition: { duration: 0.9, ease: [0.16, 1, 0.3, 1] }, }, }; return (