-
-
-
-
-
-
47%
-
NEED MOTION GRAPHICS
-
-
-
-
-
-
+
+
+
EDITOR AGENT
+
-
-
-
-
-
-
62%
-
STRUGGLE WITH STATIC CONTENT
-
-
-
-
-
-
+
-
-
-
-
-
-
75%
-
LACK EDITING SKILLS
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
47%
+
NEED MOTION GRAPHICS
+
+
+
+
+
+
+
+
+
62%
+
STRUGGLE WITH STATIC CONTENT
+
+
+
+
+
+
+
+
+
+
+
+
+
75%
+
LACK EDITING SKILLS
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
+ }).call(window, __hfScopedDocument, __hfScopedGsap, __hfScopedWindow, __hfScopedHyperframes);
+ } catch (_err) {
+ console.error(__hfErrorLabel, __hfCompId, _err);
+ }
+ };
+ __hfFindRoot();
+ __hfRun();
+})();
+;
+(function(){
+ var __hfCompId = "captions";
+ var __hfTimelineCompId = "captions";
+ var __hfErrorLabel = "[Compiler] Composition script failed";
+ var __hfEscapeAttr = function(value) {
+ return (value + "").replace(/\\/g, "\\\\").replace(/"/g, "\\\"");
+ };
+ var __hfRootSelector = null || (__hfCompId
+ ? '[data-composition-id="' + __hfEscapeAttr(__hfCompId) + '"]'
+ : "");
+ var __hfRoot = null;
+ var __hfRootSelectorPattern = "\\[\\s*data-composition-id\\s*=\\s*(?:\"captions\"|'captions')\\s*\\]";
+ var __hfTimingSelectorPattern = "\\s*\\[\\s*data-(?:start|duration)\\s*=\\s*(?:\"[^\"]*\"|'[^']*')\\s*\\]";
+ var __hfNormalizeSelector = function(selector) {
+ if (!__hfCompId || typeof selector !== "string") return selector;
+ return selector
+ .replace(new RegExp(__hfRootSelectorPattern + '(?:' + __hfTimingSelectorPattern + ')+', 'g'), __hfRootSelector)
+ .replace(new RegExp('(?:' + __hfTimingSelectorPattern + ')+' + __hfRootSelectorPattern, 'g'), __hfRootSelector);
+ };
+ var __hfFindRoot = function() {
+ if (!__hfRoot && __hfRootSelector) {
+ __hfRoot = window.document.querySelector(__hfRootSelector);
+ }
+ return __hfRoot;
+ };
+ var __hfContains = function(node) {
+ var root = __hfFindRoot();
+ return !root || node === root || root.contains(node);
+ };
+ var __hfQueryAll = function(selector) {
+ var root = __hfFindRoot();
+ if (!root || typeof selector !== "string") {
+ return window.document.querySelectorAll(selector);
+ }
+ return Array.prototype.filter.call(window.document.querySelectorAll(__hfNormalizeSelector(selector)), function(node) {
+ return __hfContains(node);
+ });
+ };
+ var __hfQueryOne = function(selector) {
+ var matches = __hfQueryAll(selector);
+ return matches[0] || null;
+ };
+ var __hfGetElementById = function(id) {
+ var found = window.document.getElementById(id);
+ if (found && __hfContains(found)) return found;
+ var root = __hfFindRoot();
+ if (!root) return found || null;
+ var idValue = id + "";
+ if (root.id === idValue) return root;
+ if (typeof root.querySelector !== "function") return null;
+ if (typeof CSS !== "undefined" && CSS && typeof CSS.escape === "function") {
+ try {
+ return root.querySelector("#" + CSS.escape(idValue)) || null;
+ } catch {}
+ }
+ try {
+ return root.querySelector('[id="' + __hfEscapeAttr(idValue) + '"]') || null;
+ } catch {}
+ return null;
+ };
+ var __hfScopedDocument = typeof Proxy === "function"
+ ? new Proxy(window.document, {
+ get: function(target, prop, receiver) {
+ if (prop === "querySelector") return __hfQueryOne;
+ if (prop === "querySelectorAll") return __hfQueryAll;
+ if (prop === "getElementById") return __hfGetElementById;
+ var value = Reflect.get(target, prop, target);
+ return typeof value === "function" ? value.bind(target) : value;
+ },
+ })
+ : window.document;
+ var __hfTimelineRegistryProxy = null;
+ var __hfGetTimelineRegistry = function() {
+ window.__timelines = window.__timelines || {};
+ if (!__hfCompId || __hfCompId === __hfTimelineCompId || typeof Proxy !== "function") {
+ return window.__timelines;
+ }
+ if (!__hfTimelineRegistryProxy) {
+ __hfTimelineRegistryProxy = new Proxy(window.__timelines, {
+ get: function(target, prop, receiver) {
+ return Reflect.get(target, prop === __hfCompId ? __hfTimelineCompId : prop, target);
+ },
+ set: function(target, prop, value, receiver) {
+ return Reflect.set(target, prop === __hfCompId ? __hfTimelineCompId : prop, value, target);
+ },
+ });
+ }
+ return __hfTimelineRegistryProxy;
+ };
+ var __hfScopedWindow = typeof Proxy === "function"
+ ? new Proxy(window, {
+ get: function(target, prop, receiver) {
+ if (prop === "__timelines") return __hfGetTimelineRegistry();
+ var value = Reflect.get(target, prop, target);
+ return typeof value === "function" ? value.bind(target) : value;
+ },
+ set: function(target, prop, value, receiver) {
+ if (prop === "__timelines") {
+ target.__timelines = value || {};
+ __hfTimelineRegistryProxy = null;
+ return true;
+ }
+ return Reflect.set(target, prop, value, target);
+ },
+ })
+ : window;
+ var __hfResolveGsapTarget = function(target) {
+ if (typeof target !== "string") return target;
+ return __hfQueryAll(target);
+ };
+ var __hfScopeTimeline = function(timeline) {
+ if (!timeline || timeline.__hfScopedCompositionRoot === __hfFindRoot()) return timeline;
+ ["to", "from", "fromTo", "set"].forEach(function(method) {
+ var original = timeline[method];
+ if (typeof original !== "function") return;
+ timeline[method] = function(target) {
+ var args = Array.prototype.slice.call(arguments);
+ args[0] = __hfResolveGsapTarget(target);
+ return original.apply(timeline, args);
+ };
+ });
+ try {
+ Object.defineProperty(timeline, "__hfScopedCompositionRoot", {
+ value: __hfFindRoot(),
+ configurable: true,
+ });
+ } catch {
+ // Best-effort: timelines coming from user code may have a frozen target
+ // or a non-extensible defineProperty path. Swallow — the scoped root
+ // is an enrichment, not a correctness invariant for playback.
+ }
+ return timeline;
+ };
+ var __hfBaseGsap = typeof gsap === "undefined" ? window.gsap : gsap;
+ var __hfScopedGsap = !__hfBaseGsap || typeof Proxy !== "function"
+ ? __hfBaseGsap
+ : new Proxy(__hfBaseGsap, {
+ get: function(target, prop, receiver) {
+ if (prop === "timeline") {
+ return function() {
+ return __hfScopeTimeline(target.timeline.apply(target, arguments));
+ };
+ }
+ if (prop === "to" || prop === "from" || prop === "fromTo" || prop === "set") {
+ return function(firstArg) {
+ var args = Array.prototype.slice.call(arguments);
+ args[0] = __hfResolveGsapTarget(firstArg);
+ return target[prop].apply(target, args);
+ };
+ }
+ if (prop === "utils" && target.utils && typeof Proxy === "function") {
+ return new Proxy(target.utils, {
+ get: function(utilsTarget, utilsProp, utilsReceiver) {
+ if (utilsProp === "toArray") {
+ return function(firstArg) {
+ var args = Array.prototype.slice.call(arguments);
+ args[0] = __hfResolveGsapTarget(firstArg);
+ return utilsTarget.toArray.apply(utilsTarget, args);
+ };
+ }
+ if (utilsProp === "selector") {
+ return function(base) {
+ var baseEl = typeof base === "string" ? __hfQueryOne(base) : base;
+ var root = baseEl || __hfFindRoot();
+ return function(selector) {
+ if (!root || typeof selector !== "string") return [];
+ return Array.prototype.slice.call(root.querySelectorAll(selector));
+ };
+ };
+ }
+ var value = Reflect.get(utilsTarget, utilsProp, utilsTarget);
+ return typeof value === "function" ? value.bind(utilsTarget) : value;
+ },
+ });
+ }
+ var value = Reflect.get(target, prop, target);
+ return typeof value === "function" ? value.bind(target) : value;
+ },
+ });
+ var __hfBaseHyperframes = window.__hyperframes;
+ var __hfScopedHyperframes = !__hfBaseHyperframes
+ ? __hfBaseHyperframes
+ : Object.assign({}, __hfBaseHyperframes, {
+ getVariables: function() {
+ var byComp = window.__hfVariablesByComp;
+ var scoped = byComp && __hfCompId ? byComp[__hfCompId] : null;
+ return scoped ? Object.assign({}, scoped) : {};
+ },
+ });
+ var __hfRun = function() {
+ try {
+ (function(document, gsap, window, __hyperframes) {
+(function () {
+ const TRANSCRIPT = [
+ { text: "We", start: 0.119, end: 0.259 },
+ { text: "asked", start: 0.319, end: 0.479 },
+ { text: "what", start: 0.519, end: 0.659 },
+ { text: "you", start: 0.699, end: 0.819 },
+ { text: "needed.", start: 0.859, end: 1.819 },
+ { text: "Forty-seven", start: 1.839, end: 2.299 },
+ { text: "percent", start: 2.399, end: 2.679 },
+ { text: "of", start: 2.7, end: 2.799 },
+ { text: "you", start: 2.839, end: 2.939 },
+ { text: "said", start: 3.039, end: 3.179 },
+ { text: "motion", start: 3.24, end: 3.559 },
+ { text: "graphics.", start: 3.579, end: 4.639 },
+ { text: "Sixty-two", start: 4.659, end: 5.179 },
+ { text: "percent", start: 5.299, end: 5.759 },
+ { text: "said", start: 5.859, end: 5.98 },
+ { text: "static", start: 6.099, end: 6.399 },
+ { text: "content", start: 6.46, end: 6.879 },
+ { text: "was", start: 6.92, end: 7.079 },
+ { text: "costing", start: 7.099, end: 7.48 },
+ { text: "you", start: 7.5, end: 7.579 },
+ { text: "attention,", start: 7.679, end: 8.659 },
+ { text: "and", start: 8.699, end: 8.86 },
+ { text: "three", start: 8.88, end: 9.06 },
+ { text: "out", start: 9.079, end: 9.18 },
+ { text: "of", start: 9.199, end: 9.34 },
+ { text: "four", start: 9.38, end: 9.799 },
+ { text: "said", start: 9.84, end: 10.0 },
+ { text: "you", start: 10.019, end: 10.159 },
+ { text: "know", start: 10.179, end: 10.36 },
+ { text: "the", start: 10.38, end: 10.479 },
+ { text: "look", start: 10.52, end: 10.699 },
+ { text: "you", start: 10.739, end: 10.859 },
+ { text: "want", start: 10.98, end: 11.34 },
+ { text: "but", start: 11.359, end: 11.52 },
+ { text: "don't", start: 11.56, end: 11.779 },
+ { text: "have", start: 11.819, end: 11.94 },
+ { text: "the", start: 11.96, end: 12.06 },
+ { text: "editing", start: 12.079, end: 12.4 },
+ { text: "skills", start: 12.52, end: 12.86 },
+ { text: "to", start: 12.88, end: 13.0 },
+ { text: "get", start: 13.019, end: 13.18 },
+ { text: "there.", start: 13.22, end: 14.22 },
+ { text: "So", start: 14.239, end: 14.399 },
+ { text: "we", start: 14.42, end: 14.52 },
+ { text: "built", start: 14.619, end: 14.88 },
+ { text: "Editor", start: 15.079, end: 15.42 },
+ { text: "Agent", start: 15.619, end: 16.019 },
+ ];
+ const container = document.getElementById("captions-container");
+ const tl = gsap.timeline({ paused: true });
+
+ // Group transcript into lines (max 5 words)
+ const lines = [];
+ for (let i = 0; i < TRANSCRIPT.length; i += 5) {
+ lines.push(TRANSCRIPT.slice(i, i + 5));
+ }
+
+ lines.forEach((lineWords, index) => {
+ const lineText = lineWords.map((w) => w.text).join(" ");
+ const startTime = lineWords[0].start;
+ const endTime = lineWords[lineWords.length - 1].end;
+
+ // Create element
+ const el = document.createElement("div");
+ el.className = "caption-box";
+ el.textContent = lineText;
+ el.id = `caption-line-${index}`;
+ container.appendChild(el);
+
+ // Animation: Pop in with scale-up bounce (0% to 110% to 100%)
+ tl.to(
+ el,
+ {
+ autoAlpha: 1,
+ scale: 1.1,
+ duration: 0.2,
+ ease: "power2.out",
+ },
+ startTime,
+ );
+
+ tl.to(
+ el,
+ {
+ scale: 1,
+ duration: 0.1,
+ ease: "power2.inOut",
+ },
+ startTime + 0.2,
+ );
+
+ // Stay visible until next line or end of its duration
+ // We hide it when the next line starts or at its own end time
+ const hideTime =
+ index < lines.length - 1 ? Math.min(endTime, lines[index + 1][0].start) : endTime;
+
+ tl.to(
+ el,
+ {
+ autoAlpha: 0,
+ scale: 0,
+ duration: 0.15,
+ ease: "power2.in",
+ },
+ hideTime,
+ );
+ });
+
+ window.__timelines["captions"] = tl;
+ })();
+ }).call(window, __hfScopedDocument, __hfScopedGsap, __hfScopedWindow, __hfScopedHyperframes);
+ } catch (_err) {
+ console.error(__hfErrorLabel, __hfCompId, _err);
+ }
+ };
+ __hfFindRoot();
+ __hfRun();
+})();
+;
+(function(){
+ var __hfCompId = "stats";
+ var __hfTimelineCompId = "stats";
+ var __hfErrorLabel = "[Compiler] Composition script failed";
+ var __hfEscapeAttr = function(value) {
+ return (value + "").replace(/\\/g, "\\\\").replace(/"/g, "\\\"");
+ };
+ var __hfRootSelector = null || (__hfCompId
+ ? '[data-composition-id="' + __hfEscapeAttr(__hfCompId) + '"]'
+ : "");
+ var __hfRoot = null;
+ var __hfRootSelectorPattern = "\\[\\s*data-composition-id\\s*=\\s*(?:\"stats\"|'stats')\\s*\\]";
+ var __hfTimingSelectorPattern = "\\s*\\[\\s*data-(?:start|duration)\\s*=\\s*(?:\"[^\"]*\"|'[^']*')\\s*\\]";
+ var __hfNormalizeSelector = function(selector) {
+ if (!__hfCompId || typeof selector !== "string") return selector;
+ return selector
+ .replace(new RegExp(__hfRootSelectorPattern + '(?:' + __hfTimingSelectorPattern + ')+', 'g'), __hfRootSelector)
+ .replace(new RegExp('(?:' + __hfTimingSelectorPattern + ')+' + __hfRootSelectorPattern, 'g'), __hfRootSelector);
+ };
+ var __hfFindRoot = function() {
+ if (!__hfRoot && __hfRootSelector) {
+ __hfRoot = window.document.querySelector(__hfRootSelector);
+ }
+ return __hfRoot;
+ };
+ var __hfContains = function(node) {
+ var root = __hfFindRoot();
+ return !root || node === root || root.contains(node);
+ };
+ var __hfQueryAll = function(selector) {
+ var root = __hfFindRoot();
+ if (!root || typeof selector !== "string") {
+ return window.document.querySelectorAll(selector);
+ }
+ return Array.prototype.filter.call(window.document.querySelectorAll(__hfNormalizeSelector(selector)), function(node) {
+ return __hfContains(node);
+ });
+ };
+ var __hfQueryOne = function(selector) {
+ var matches = __hfQueryAll(selector);
+ return matches[0] || null;
+ };
+ var __hfGetElementById = function(id) {
+ var found = window.document.getElementById(id);
+ if (found && __hfContains(found)) return found;
+ var root = __hfFindRoot();
+ if (!root) return found || null;
+ var idValue = id + "";
+ if (root.id === idValue) return root;
+ if (typeof root.querySelector !== "function") return null;
+ if (typeof CSS !== "undefined" && CSS && typeof CSS.escape === "function") {
+ try {
+ return root.querySelector("#" + CSS.escape(idValue)) || null;
+ } catch {}
+ }
+ try {
+ return root.querySelector('[id="' + __hfEscapeAttr(idValue) + '"]') || null;
+ } catch {}
+ return null;
+ };
+ var __hfScopedDocument = typeof Proxy === "function"
+ ? new Proxy(window.document, {
+ get: function(target, prop, receiver) {
+ if (prop === "querySelector") return __hfQueryOne;
+ if (prop === "querySelectorAll") return __hfQueryAll;
+ if (prop === "getElementById") return __hfGetElementById;
+ var value = Reflect.get(target, prop, target);
+ return typeof value === "function" ? value.bind(target) : value;
+ },
+ })
+ : window.document;
+ var __hfTimelineRegistryProxy = null;
+ var __hfGetTimelineRegistry = function() {
+ window.__timelines = window.__timelines || {};
+ if (!__hfCompId || __hfCompId === __hfTimelineCompId || typeof Proxy !== "function") {
+ return window.__timelines;
+ }
+ if (!__hfTimelineRegistryProxy) {
+ __hfTimelineRegistryProxy = new Proxy(window.__timelines, {
+ get: function(target, prop, receiver) {
+ return Reflect.get(target, prop === __hfCompId ? __hfTimelineCompId : prop, target);
+ },
+ set: function(target, prop, value, receiver) {
+ return Reflect.set(target, prop === __hfCompId ? __hfTimelineCompId : prop, value, target);
+ },
+ });
+ }
+ return __hfTimelineRegistryProxy;
+ };
+ var __hfScopedWindow = typeof Proxy === "function"
+ ? new Proxy(window, {
+ get: function(target, prop, receiver) {
+ if (prop === "__timelines") return __hfGetTimelineRegistry();
+ var value = Reflect.get(target, prop, target);
+ return typeof value === "function" ? value.bind(target) : value;
+ },
+ set: function(target, prop, value, receiver) {
+ if (prop === "__timelines") {
+ target.__timelines = value || {};
+ __hfTimelineRegistryProxy = null;
+ return true;
+ }
+ return Reflect.set(target, prop, value, target);
+ },
+ })
+ : window;
+ var __hfResolveGsapTarget = function(target) {
+ if (typeof target !== "string") return target;
+ return __hfQueryAll(target);
+ };
+ var __hfScopeTimeline = function(timeline) {
+ if (!timeline || timeline.__hfScopedCompositionRoot === __hfFindRoot()) return timeline;
+ ["to", "from", "fromTo", "set"].forEach(function(method) {
+ var original = timeline[method];
+ if (typeof original !== "function") return;
+ timeline[method] = function(target) {
+ var args = Array.prototype.slice.call(arguments);
+ args[0] = __hfResolveGsapTarget(target);
+ return original.apply(timeline, args);
+ };
+ });
+ try {
+ Object.defineProperty(timeline, "__hfScopedCompositionRoot", {
+ value: __hfFindRoot(),
+ configurable: true,
+ });
+ } catch {
+ // Best-effort: timelines coming from user code may have a frozen target
+ // or a non-extensible defineProperty path. Swallow — the scoped root
+ // is an enrichment, not a correctness invariant for playback.
+ }
+ return timeline;
+ };
+ var __hfBaseGsap = typeof gsap === "undefined" ? window.gsap : gsap;
+ var __hfScopedGsap = !__hfBaseGsap || typeof Proxy !== "function"
+ ? __hfBaseGsap
+ : new Proxy(__hfBaseGsap, {
+ get: function(target, prop, receiver) {
+ if (prop === "timeline") {
+ return function() {
+ return __hfScopeTimeline(target.timeline.apply(target, arguments));
+ };
+ }
+ if (prop === "to" || prop === "from" || prop === "fromTo" || prop === "set") {
+ return function(firstArg) {
+ var args = Array.prototype.slice.call(arguments);
+ args[0] = __hfResolveGsapTarget(firstArg);
+ return target[prop].apply(target, args);
+ };
+ }
+ if (prop === "utils" && target.utils && typeof Proxy === "function") {
+ return new Proxy(target.utils, {
+ get: function(utilsTarget, utilsProp, utilsReceiver) {
+ if (utilsProp === "toArray") {
+ return function(firstArg) {
+ var args = Array.prototype.slice.call(arguments);
+ args[0] = __hfResolveGsapTarget(firstArg);
+ return utilsTarget.toArray.apply(utilsTarget, args);
+ };
+ }
+ if (utilsProp === "selector") {
+ return function(base) {
+ var baseEl = typeof base === "string" ? __hfQueryOne(base) : base;
+ var root = baseEl || __hfFindRoot();
+ return function(selector) {
+ if (!root || typeof selector !== "string") return [];
+ return Array.prototype.slice.call(root.querySelectorAll(selector));
+ };
+ };
+ }
+ var value = Reflect.get(utilsTarget, utilsProp, utilsTarget);
+ return typeof value === "function" ? value.bind(utilsTarget) : value;
+ },
+ });
+ }
+ var value = Reflect.get(target, prop, target);
+ return typeof value === "function" ? value.bind(target) : value;
+ },
+ });
+ var __hfBaseHyperframes = window.__hyperframes;
+ var __hfScopedHyperframes = !__hfBaseHyperframes
+ ? __hfBaseHyperframes
+ : Object.assign({}, __hfBaseHyperframes, {
+ getVariables: function() {
+ var byComp = window.__hfVariablesByComp;
+ var scoped = byComp && __hfCompId ? byComp[__hfCompId] : null;
+ return scoped ? Object.assign({}, scoped) : {};
+ },
+ });
+ var __hfRun = function() {
+ try {
+ (function(document, gsap, window, __hyperframes) {
+(function () {
+ const TRANSCRIPT = [
+ { text: "We", start: 0.119, end: 0.259 },
+ { text: "asked", start: 0.319, end: 0.479 },
+ { text: "what", start: 0.519, end: 0.659 },
+ { text: "you", start: 0.699, end: 0.819 },
+ { text: "needed.", start: 0.859, end: 1.819 },
+ { text: "Forty-seven", start: 1.839, end: 2.299 },
+ { text: "percent", start: 2.399, end: 2.679 },
+ { text: "of", start: 2.7, end: 2.799 },
+ { text: "you", start: 2.839, end: 2.939 },
+ { text: "said", start: 3.039, end: 3.179 },
+ { text: "motion", start: 3.24, end: 3.559 },
+ { text: "graphics.", start: 3.579, end: 4.639 },
+ { text: "Sixty-two", start: 4.659, end: 5.179 },
+ { text: "percent", start: 5.299, end: 5.759 },
+ { text: "said", start: 5.859, end: 5.98 },
+ { text: "static", start: 6.099, end: 6.399 },
+ { text: "content", start: 6.46, end: 6.879 },
+ { text: "was", start: 6.92, end: 7.079 },
+ { text: "costing", start: 7.099, end: 7.48 },
+ { text: "you", start: 7.5, end: 7.579 },
+ { text: "attention,", start: 7.679, end: 8.659 },
+ { text: "and", start: 8.699, end: 8.86 },
+ { text: "three", start: 8.88, end: 9.06 },
+ { text: "out", start: 9.079, end: 9.18 },
+ { text: "of", start: 9.199, end: 9.34 },
+ { text: "four", start: 9.38, end: 9.799 },
+ { text: "said", start: 9.84, end: 10.0 },
+ { text: "you", start: 10.019, end: 10.159 },
+ { text: "know", start: 10.179, end: 10.36 },
+ { text: "the", start: 10.38, end: 10.479 },
+ { text: "look", start: 10.52, end: 10.699 },
+ { text: "you", start: 10.739, end: 10.859 },
+ { text: "want", start: 10.98, end: 11.34 },
+ { text: "but", start: 11.359, end: 11.52 },
+ { text: "don't", start: 11.56, end: 11.779 },
+ { text: "have", start: 11.819, end: 11.94 },
+ { text: "the", start: 11.96, end: 12.06 },
+ { text: "editing", start: 12.079, end: 12.4 },
+ { text: "skills", start: 12.52, end: 12.86 },
+ { text: "to", start: 12.88, end: 13.0 },
+ { text: "get", start: 13.019, end: 13.18 },
+ { text: "there.", start: 13.22, end: 14.22 },
+ { text: "So", start: 14.239, end: 14.399 },
+ { text: "we", start: 14.42, end: 14.52 },
+ { text: "built", start: 14.619, end: 14.88 },
+ { text: "Editor", start: 15.079, end: 15.42 },
+ { text: "Agent", start: 15.619, end: 16.019 },
+ ];
+ const tl = gsap.timeline({ paused: true });
+
+ // Helper to find word timing
+ function getWordTime(wordText) {
+ const word = TRANSCRIPT.find((w) =>
+ w.text
+ .toLowerCase()
+ .replace(/[.,\/#!$%\^&\*;:{}=\-_`~()]/g, "")
+ .startsWith(wordText.toLowerCase()),
+ );
+ return word ? word.start : null;
+ }
+
+ // Timings from transcript
+ const t1 = getWordTime("Forty-seven") || 1.839;
+ const t2 = getWordTime("Sixty-two") || 4.659;
+ const t3 = getWordTime("three") || 8.88;
+
+ // Moment 1 Animation (approx 5s)
+ tl.to(
+ "#moment-1",
+ {
+ opacity: 1,
+ scale: 1,
+ duration: 0.8,
+ ease: "elastic.out(1, 0.6)",
+ onStart: () => gsap.set("#moment-1", { transformOrigin: "center center" }),
+ },
+ t1,
+ );
+
+ // Moment 1 Exit (before Moment 2)
+ tl.to(
+ "#moment-1",
+ {
+ opacity: 0,
+ scale: 0.5,
+ duration: 0.3,
+ ease: "back.in(1.7)",
+ },
+ t2 - 0.4,
+ );
+
+ // Moment 2 Animation (approx 9s)
+ tl.to(
+ "#moment-2",
+ {
+ opacity: 1,
+ scale: 1,
+ duration: 0.8,
+ ease: "elastic.out(1, 0.6)",
+ onStart: () => gsap.set("#moment-2", { transformOrigin: "center center" }),
+ },
+ t2,
+ );
+
+ // Moment 2 Exit (before Moment 3)
+ tl.to(
+ "#moment-2",
+ {
+ opacity: 0,
+ scale: 0.5,
+ duration: 0.3,
+ ease: "back.in(1.7)",
+ },
+ t3 - 0.4,
+ );
+
+ // Moment 3 Animation (approx 13s)
+ tl.to(
+ "#moment-3",
+ {
+ opacity: 1,
+ scale: 1,
+ duration: 0.8,
+ ease: "elastic.out(1, 0.6)",
+ onStart: () => gsap.set("#moment-3", { transformOrigin: "center center" }),
+ },
+ t3,
+ );
+
+ // Moment 3 Exit: 3 words before 'Editor Agent'
+ // 'Editor' is at 15.079. 3 words before is 'So' at 14.239.
+ tl.to(
+ "#moment-3",
+ {
+ opacity: 0,
+ scale: 0.5,
+ duration: 0.3,
+ ease: "back.in(1.7)",
+ },
+ 14.239,
+ );
+
+ // Ambient Motion (Finite)
+ const totalDuration = 16.04;
+ gsap.utils.toArray(".shape").forEach((shape, i) => {
+ const stepDuration = 2 + i * 0.2;
+ const steps = Math.ceil(totalDuration / stepDuration);
+ for (let s = 0; s < steps; s++) {
+ tl.to(
+ shape,
+ {
+ y: s % 2 === 0 ? 15 : -15,
+ rotation: s % 2 === 0 ? 5 : -5,
+ duration: stepDuration,
+ ease: "sine.inOut",
+ },
+ s * stepDuration,
+ );
+ }
+ });
+
+ window.__timelines["stats"] = tl;
+ })();
+ }).call(window, __hfScopedDocument, __hfScopedGsap, __hfScopedWindow, __hfScopedHyperframes);
+ } catch (_err) {
+ console.error(__hfErrorLabel, __hfCompId, _err);
+ }
+ };
+ __hfFindRoot();
+ __hfRun();
+})();