-
-
-
+
+
+
+
+
LACK TECHNICAL SKILLS
+
-
-
+ }).call(window, __hfScopedDocument, __hfScopedGsap);
+ } catch (_err) {
+ console.error(__hfErrorLabel, __hfCompId, _err);
+ }
+ };
+ __hfFindRoot();
+ __hfRun();
+})()
+;
+(function(){
+ var __hfCompId = "overlays";
+ var __hfErrorLabel = "[Compiler] Composition script failed";
+ var __hfEscapeAttr = function(value) {
+ return (value + "").replace(/\\/g, "\\\\").replace(/"/g, "\\\"");
+ };
+ var __hfRootSelector = __hfCompId
+ ? '[data-composition-id="' + __hfEscapeAttr(__hfCompId) + '"]'
+ : "";
+ var __hfRoot = null;
+ var __hfRootSelectorPattern = "\\[\\s*data-composition-id\\s*=\\s*(?:\"overlays\"|'overlays')\\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 __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 function(id) {
+ var found = target.getElementById(id);
+ return found && __hfContains(found) ? found : null;
+ };
+ }
+ var value = Reflect.get(target, prop, receiver);
+ return typeof value === "function" ? value.bind(target) : value;
+ },
+ })
+ : window.document;
+ 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 (_err) {}
+ 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, utilsReceiver);
+ return typeof value === "function" ? value.bind(utilsTarget) : value;
+ },
+ });
+ }
+ var value = Reflect.get(target, prop, receiver);
+ return typeof value === "function" ? value.bind(target) : value;
+ },
+ });
+ var __hfRun = function() {
+ try {
+ (function(document, gsap) {
+(function () {
+ const TRANSCRIPT = [
+ { text: "We", start: 0.14, end: 0.239 },
+ { text: "asked", start: 0.28, end: 0.459 },
+ { text: "what", start: 0.5, end: 0.619 },
+ { text: "you", start: 0.659, end: 0.779 },
+ { text: "needed.", start: 0.8, end: 1.179 },
+ { text: "Forty-seven", start: 1.199, end: 1.619 },
+ { text: "percent", start: 1.699, end: 1.96 },
+ { text: "of", start: 1.979, end: 2.059 },
+ { text: "you", start: 2.099, end: 2.299 },
+ { text: "said", start: 2.319, end: 2.499 },
+ { text: "motion", start: 2.559, end: 2.839 },
+ { text: "graphics,", start: 2.899, end: 3.759 },
+ { text: "sixty-two", start: 3.799, end: 4.159 },
+ { text: "percent", start: 4.239, end: 4.559 },
+ { text: "said", start: 4.639, end: 4.799 },
+ { text: "static", start: 4.859, end: 5.199 },
+ { text: "content", start: 5.239, end: 5.639 },
+ { text: "was", start: 5.679, end: 5.779 },
+ { text: "costing", start: 5.859, end: 6.219 },
+ { text: "you", start: 6.259, end: 6.339 },
+ { text: "attention,", start: 6.379, end: 7.299 },
+ { text: "and", start: 7.319, end: 7.439 },
+ { text: "three", start: 7.48, end: 7.599 },
+ { text: "out", start: 7.679, end: 7.779 },
+ { text: "of", start: 7.799, end: 7.879 },
+ { text: "four", start: 7.94, end: 8.139 },
+ { text: "said", start: 8.279, end: 8.46 },
+ { text: "you", start: 8.519, end: 8.6 },
+ { text: "know", start: 8.619, end: 8.739 },
+ { text: "the", start: 8.8, end: 8.88 },
+ { text: "look", start: 8.92, end: 9.079 },
+ { text: "you", start: 9.119, end: 9.259 },
+ { text: "want", start: 9.279, end: 9.619 },
+ { text: "but", start: 9.779, end: 9.88 },
+ { text: "don't", start: 9.92, end: 10.1 },
+ { text: "have", start: 10.159, end: 10.3 },
+ { text: "the", start: 10.3, end: 10.42 },
+ { text: "editing", start: 10.5, end: 10.779 },
+ { text: "skills", start: 10.86, end: 11.139 },
+ { text: "to", start: 11.159, end: 11.239 },
+ { text: "get", start: 11.279, end: 11.439 },
+ { text: "there.", start: 11.46, end: 12.239 },
+ { text: "So", start: 12.3, end: 12.38 },
+ { text: "we", start: 12.399, end: 12.519 },
+ { text: "built", start: 12.539, end: 12.759 },
+ { text: "Editor", start: 12.84, end: 13.119 },
+ { text: "Agent.", start: 13.239, end: 13.84 },
+ ];
+ const tl = gsap.timeline({ paused: true });
+
+ // Wim Crouwel inspired grid definitions (11x15 grid)
+ const GRIDS = {
+ 4: [
+ 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1,
+ 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1,
+ 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0,
+ 0,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, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0,
+ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ ],
+ "%": [
+ 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1,
+ 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0,
+ 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0,
+ 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ ],
+ };
+
+ function createNumber(containerId, digits) {
+ const container = document.getElementById(containerId);
+ digits.split("").forEach((digit, dIdx) => {
+ const grid = document.createElement("div");
+ grid.className = "number-grid";
+
+ const pattern = GRIDS[digit] || GRIDS["%"];
+ pattern.forEach((val, i) => {
+ const dot = document.createElement("div");
+ dot.className = "dot dot-" + containerId + "-" + dIdx + "-" + i;
+ if (val === 1) {
+ dot.style.opacity = "0";
+ } else {
+ dot.style.visibility = "hidden";
+ }
+ grid.appendChild(dot);
+ });
+ container.appendChild(grid);
+ });
+ }
+
+ createNumber("num-1", "47%");
+ createNumber("num-2", "62%");
+ createNumber("num-3", "75%");
+
+ function animateStat(id, start, end) {
+ const stat = document.querySelector("#" + id);
+ const label = stat.querySelector(".label-text");
+ const scanline = stat.querySelector(".scanline");
+ const dots = stat.querySelectorAll(".dot");
+
+ // Entrance
+ tl.to(stat, { opacity: 1, duration: 0.1 }, start);
+
+ // Number assembly (dots)
+ // Using a deterministic stagger pattern
+ tl.to(
+ dots,
+ {
+ opacity: 1,
+ duration: 0.6,
+ stagger: {
+ each: 0.003,
+ from: "start",
+ grid: [15, 11],
+ },
+ ease: "expo.out",
+ },
+ start,
+ );
+
+ // Scanline sweep for text
+ tl.fromTo(
+ scanline,
+ { translateY: "-100%" },
+ { translateY: "100%", duration: 0.8, ease: "none" },
+ start + 0.3,
+ );
+ tl.to(label, { opacity: 1, duration: 0.1 }, start + 0.3);
+ tl.fromTo(
+ label,
+ { clipPath: "inset(0 0 100% 0)" },
+ { clipPath: "inset(0 0 0% 0)", duration: 0.8, ease: "none" },
+ start + 0.3,
+ );
+
+ // Exit
+ tl.to(stat, { opacity: 0, duration: 0.3, ease: "power2.in" }, end - 0.3);
+ }
+
+ // Sync with transcript timings
+ // 1. "47% NEED MOTION GRAPHICS" (1.199s to 3.759s)
+ animateStat("stat-1", 1.199, 3.759);
+
+ // 2. "62% STATIC CONTENT REDUCES ENGAGEMENT" (3.799s to 7.299s)
+ animateStat("stat-2", 3.799, 7.299);
+
+ // 3. "75% LACK TECHNICAL SKILLS" (7.48s to 12.239s)
+ animateStat("stat-3", 7.48, 12.239);
+
+ // Ambient motion: subtle grid pulse
+ // Deterministic loop for exact duration (13.88s)
+ const pulseDuration = 2;
+ const totalDuration = 16;
+ for (let t = 0; t < totalDuration; t += pulseDuration * 2) {
+ tl.to(
+ ".dot",
+ {
+ scale: 1.1,
+ duration: pulseDuration,
+ yoyo: true,
+ repeat: 1,
+ ease: "sine.inOut",
+ stagger: {
+ each: 0.01,
+ from: "center",
+ },
+ },
+ t,
+ );
+ }
+
+ window.__timelines["overlays"] = tl;
+ })();
+ }).call(window, __hfScopedDocument, __hfScopedGsap);
+ } catch (_err) {
+ console.error(__hfErrorLabel, __hfCompId, _err);
+ }
+ };
+ __hfFindRoot();
+ __hfRun();
+})()
+;
+(function(){
+ var __hfCompId = "captions";
+ var __hfErrorLabel = "[Compiler] Composition script failed";
+ var __hfEscapeAttr = function(value) {
+ return (value + "").replace(/\\/g, "\\\\").replace(/"/g, "\\\"");
+ };
+ var __hfRootSelector = __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 __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 function(id) {
+ var found = target.getElementById(id);
+ return found && __hfContains(found) ? found : null;
+ };
+ }
+ var value = Reflect.get(target, prop, receiver);
+ return typeof value === "function" ? value.bind(target) : value;
+ },
+ })
+ : window.document;
+ 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 (_err) {}
+ 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, utilsReceiver);
+ return typeof value === "function" ? value.bind(utilsTarget) : value;
+ },
+ });
+ }
+ var value = Reflect.get(target, prop, receiver);
+ return typeof value === "function" ? value.bind(target) : value;
+ },
+ });
+ var __hfRun = function() {
+ try {
+ (function(document, gsap) {
+(function () {
+ const TRANSCRIPT = [
+ { text: "We", start: 0.14, end: 0.239 },
+ { text: "asked", start: 0.28, end: 0.459 },
+ { text: "what", start: 0.5, end: 0.619 },
+ { text: "you", start: 0.659, end: 0.779 },
+ { text: "needed.", start: 0.8, end: 1.179 },
+ { text: "Forty-seven", start: 1.199, end: 1.619 },
+ { text: "percent", start: 1.699, end: 1.96 },
+ { text: "of", start: 1.979, end: 2.059 },
+ { text: "you", start: 2.099, end: 2.299 },
+ { text: "said", start: 2.319, end: 2.499 },
+ { text: "motion", start: 2.559, end: 2.839 },
+ { text: "graphics,", start: 2.899, end: 3.759 },
+ { text: "sixty-two", start: 3.799, end: 4.159 },
+ { text: "percent", start: 4.239, end: 4.559 },
+ { text: "said", start: 4.639, end: 4.799 },
+ { text: "static", start: 4.859, end: 5.199 },
+ { text: "content", start: 5.239, end: 5.639 },
+ { text: "was", start: 5.679, end: 5.779 },
+ { text: "costing", start: 5.859, end: 6.219 },
+ { text: "you", start: 6.259, end: 6.339 },
+ { text: "attention,", start: 6.379, end: 7.299 },
+ { text: "and", start: 7.319, end: 7.439 },
+ { text: "three", start: 7.48, end: 7.599 },
+ { text: "out", start: 7.679, end: 7.779 },
+ { text: "of", start: 7.799, end: 7.879 },
+ { text: "four", start: 7.94, end: 8.139 },
+ { text: "said", start: 8.279, end: 8.46 },
+ { text: "you", start: 8.519, end: 8.6 },
+ { text: "know", start: 8.619, end: 8.739 },
+ { text: "the", start: 8.8, end: 8.88 },
+ { text: "look", start: 8.92, end: 9.079 },
+ { text: "you", start: 9.119, end: 9.259 },
+ { text: "want", start: 9.279, end: 9.619 },
+ { text: "but", start: 9.779, end: 9.88 },
+ { text: "don't", start: 9.92, end: 10.1 },
+ { text: "have", start: 10.159, end: 10.3 },
+ { text: "the", start: 10.3, end: 10.42 },
+ { text: "editing", start: 10.5, end: 10.779 },
+ { text: "skills", start: 10.86, end: 11.139 },
+ { text: "to", start: 11.159, end: 11.239 },
+ { text: "get", start: 11.279, end: 11.439 },
+ { text: "there.", start: 11.46, end: 12.239 },
+ { text: "So", start: 12.3, end: 12.38 },
+ { text: "we", start: 12.399, end: 12.519 },
+ { text: "built", start: 12.539, end: 12.759 },
+ { text: "Editor", start: 12.84, end: 13.119 },
+ { text: "Agent.", start: 13.239, end: 13.84 },
+ ];
+ const container = document.getElementById("captions-container");
+ const tl = gsap.timeline({ paused: true });
+
+ // Group transcript into lines (approx 3-5 words per line)
+ const groups = [];
+ let currentGroup = [];
+ TRANSCRIPT.forEach((word, i) => {
+ currentGroup.push(word);
+ // Grouping logic: max 4 words or end of sentence
+ if (
+ currentGroup.length >= 4 ||
+ word.text.includes(".") ||
+ word.text.includes("?") ||
+ word.text.includes("!") ||
+ i === TRANSCRIPT.length - 1
+ ) {
+ groups.push([...currentGroup]);
+ currentGroup = [];
+ }
+ });
+
+ groups.forEach((group, groupIndex) => {
+ const groupDiv = document.createElement("div");
+ groupDiv.className = "caption-group";
+ groupDiv.id = `group-${groupIndex}`;
+
+ group.forEach((wordData, wordIdx) => {
+ const wordDiv = document.createElement("div");
+ wordDiv.className = "word";
+ wordDiv.dataset.word = wordData.text;
+
+ // Split word into characters for typewriter/glitch reveal
+ wordData.text.split("").forEach((char) => {
+ const charSpan = document.createElement("span");
+ charSpan.className = "char";
+ charSpan.textContent = char;
+ wordDiv.appendChild(charSpan);
+ });
+
+ groupDiv.appendChild(wordDiv);
+ });
+
+ container.appendChild(groupDiv);
+
+ const groupStartTime = group[0].start;
+ const groupEndTime = group[group.length - 1].end;
+
+ // Group Entrance
+ tl.to(
+ groupDiv,
+ {
+ opacity: 1,
+ y: 0,
+ duration: 0.2,
+ ease: "power2.out",
+ },
+ groupStartTime,
+ );
+
+ // Word/Character Reveal
+ group.forEach((wordData, wordInGroupIndex) => {
+ const wordElement = groupDiv.querySelectorAll(".word")[wordInGroupIndex];
+ const chars = wordElement.querySelectorAll(".char");
+
+ const wordDuration = wordData.end - wordData.start;
+ const charStagger = wordDuration / (chars.length + 1);
+
+ chars.forEach((char, charIdx) => {
+ const charStartTime = wordData.start + charIdx * charStagger;
+ const originalChar = char.textContent;
+ const glitchChars = "X01@#%&";
+
+ // Typewriter + Glitch Reveal
+ tl.to(
+ char,
+ {
+ opacity: 1,
+ x: charIdx % 2 === 0 ? 4 : -4, // More aggressive horizontal shift
+ duration: 0.1, // Longer glitch state
+ onStart: () => {
+ char.style.color = "#FFFFFF";
+ char.style.backgroundColor = "#00FF80";
+ // Deterministic character cycling
+ char.textContent = glitchChars[charIdx % glitchChars.length];
+ },
+ },
+ charStartTime,
+ );
+
+ tl.to(
+ char,
+ {
+ backgroundColor: "transparent",
+ color: "#FFFFFF",
+ x: 0,
+ duration: 0.1,
+ onStart: () => {
+ char.textContent = originalChar;
+ },
+ ease: "none",
+ },
+ charStartTime + 0.1,
+ );
+ });
+ });
+
+ // Group Exit
+ tl.to(
+ groupDiv,
+ {
+ opacity: 0,
+ duration: 0.2,
+ ease: "power2.in",
+ },
+ groupEndTime,
+ );
+ });
+
+ window.__timelines["captions"] = tl;
+ })();
+ }).call(window, __hfScopedDocument, __hfScopedGsap);
+ } catch (_err) {
+ console.error(__hfErrorLabel, __hfCompId, _err);
+ }
+ };
+ __hfFindRoot();
+ __hfRun();
+})()
+;
+(function(){
+ var __hfCompId = "transitions";
+ var __hfErrorLabel = "[Compiler] Composition script failed";
+ var __hfEscapeAttr = function(value) {
+ return (value + "").replace(/\\/g, "\\\\").replace(/"/g, "\\\"");
+ };
+ var __hfRootSelector = __hfCompId
+ ? '[data-composition-id="' + __hfEscapeAttr(__hfCompId) + '"]'
+ : "";
+ var __hfRoot = null;
+ var __hfRootSelectorPattern = "\\[\\s*data-composition-id\\s*=\\s*(?:\"transitions\"|'transitions')\\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 __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 function(id) {
+ var found = target.getElementById(id);
+ return found && __hfContains(found) ? found : null;
+ };
+ }
+ var value = Reflect.get(target, prop, receiver);
+ return typeof value === "function" ? value.bind(target) : value;
+ },
+ })
+ : window.document;
+ 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 (_err) {}
+ 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, utilsReceiver);
+ return typeof value === "function" ? value.bind(utilsTarget) : value;
+ },
+ });
+ }
+ var value = Reflect.get(target, prop, receiver);
+ return typeof value === "function" ? value.bind(target) : value;
+ },
+ });
+ var __hfRun = function() {
+ try {
+ (function(document, gsap) {
+(function () {
+ const tl = gsap.timeline({ paused: true });
+
+ // Sweep 1: At 7.3s (when A-roll exits)
+ // Top to Bottom
+ tl.set("#scanline-1", { y: -320, opacity: 1 }, 7.0);
+ tl.to(
+ "#scanline-1",
+ {
+ y: 1920,
+ duration: 0.9,
+ ease: "power3.inOut",
+ },
+ 7.0,
+ );
+ tl.set("#scanline-1", { opacity: 0 }, 7.9);
+
+ // Sweep 2: At 12.3s (when A-roll returns)
+ // Bottom to Top
+ tl.set("#scanline-2", { y: 1920, opacity: 1 }, 12.0);
+ tl.to(
+ "#scanline-2",
+ {
+ y: -320,
+ duration: 0.9,
+ ease: "power3.inOut",
+ },
+ 12.0,
+ );
+ tl.set("#scanline-2", { opacity: 0 }, 12.9);
+
+ window.__timelines["transitions"] = tl;
+ })();
+ }).call(window, __hfScopedDocument, __hfScopedGsap);
+ } catch (_err) {
+ console.error(__hfErrorLabel, __hfCompId, _err);
+ }
+ };
+ __hfFindRoot();
+ __hfRun();
+})()