 return timeline;
            },

            // Frame-by-frame logic for video export
            setFrameLogic: async (frameIndex, fps, time, progress, timeline) => {
                // Standard timeline progress sync
                timeline.progress(progress);

                // === VIDEO SYNC PATTERN (if using video) ===
                // Uncomment if your animation includes video:
                /*
                const video = document.querySelector('video');
                if (video) {
         