<!doctype html><html lang="en" data-composition-variables='[{"id": "brand", "type": "string", "label": "品牌", "default": "Claude", "maxLength": 14}, {"id": "product", "type": "string", "label": "产品定位", "default": "motion graphics", "maxLength": 28}, {"id": "request", "type": "string", "label": "示例请求", "default": "Make a launch video for my app", "maxLength": 48}, {"id": "launchTitle", "type": "string", "label": "预览标题", "default": "LAUNCH DAY", "maxLength": 18}, {"id": "animatorLabel", "type": "image", "label": "animator 标签", "default": "assets/animator-label.png"}, {"id": "typographerLabel", "type": "image", "label": "typographer 标签", "default": "assets/typographer-label.png"}, {"id": "soundLabel", "type": "image", "label": "sound 标签", "default": "assets/sound-label.png"}, {"id": "coloristLabel", "type": "image", "label": "colorist 标签", "default": "assets/colorist-label.png"}, {"id": "editorLabel", "type": "image", "label": "editor 标签", "default": "assets/editor-label.png"}, {"id": "claudeLabel", "type": "image", "label": "claude 标签", "default": "assets/claude-label.png"}]'><head><meta charset="UTF-8"><meta name="od-motion-output" content="video"><title>Claude Design Team</title><style>
@font-face{font-family:Inter;src:url(assets/Inter-Variable.ttf);font-weight:100 900;font-style:normal}
:root{--od-font-heading:"Inter","Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;--od-font-body:"Inter","Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}body{margin:0;background:#eeefed;display:grid;place-items:center;min-height:100vh;font-family:var(--od-font-body)}h1,.od-heading{font-family:var(--od-font-heading)}#main{width:min(100vw,177.7778vh);aspect-ratio:16/9;position:relative;overflow:hidden;background:#fcfcf9}canvas{width:100%;height:100%;display:block}#controls{opacity:0;transition:opacity .2s;position:fixed;bottom:12px;display:flex;gap:12px;align-items:center;background:#ffffffdd;border-radius:20px;padding:8px 16px;font-size:12px}#controls:hover,#controls:focus-within{opacity:1}#controls input{width:260px}html.od-export body{display:block;background:none;min-height:0}html.od-export #main{width:1920px;height:1080px}html.od-export #controls{display:none}
</style><style data-od-font-synthesis>html{font-synthesis:none}</style>
<style data-od-preview-chrome>
#controls{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);z-index:100;display:flex;align-items:center;gap:14px;width:min(900px,92vw);box-sizing:border-box;padding:12px 18px;border-radius:14px;background:#101214dd;color:#fff;font:600 13px ui-monospace,Menlo,monospace;opacity:0;transition:opacity .2s}
#controls:hover,#controls:focus-within{opacity:1}
#controls button{font:inherit;letter-spacing:.06em;background:var(--accent,#3b6cf6);color:#fff;border:0;border-radius:999px;padding:9px 16px;cursor:pointer;min-width:88px;white-space:nowrap}
#controls input[type=range]{flex:1;width:auto;min-width:0;accent-color:var(--accent,#3b6cf6)}
#controls span,#controls output{white-space:nowrap;font-variant-numeric:tabular-nums}
html.od-export #controls{display:none!important}
</style>
</head><body><main id="main" data-composition-id="main" data-od-motion-layout="stage" data-start="0" data-duration="22.616236" data-width="1920" data-height="1080">
<audio id="soundtrack" src="assets/soundtrack.mp3" data-start="0" data-duration="22.616" data-track-index="2" data-volume="1" preload="auto"></audio><canvas id="film" width="1920" height="1080" data-od-id="film"></canvas></main><div id="controls"><button>PLAY</button><input type="range" min="0" step="0.01"><span></span></div><script src="assets/gsap.min.js"></script><script>
const VARS=(window.__hyperframes && window.__hyperframes.getVariables?.()) || {};
const CFG = {"duration": 22.616236, "scenes": [{"id": "introducing", "name": "引子", "dur": 0.9, "minDur": 0.9, "maxDur": 1.35}, {"id": "cursor", "name": "光标", "dur": 1.2, "minDur": 1.2, "maxDur": 1.8}, {"id": "title", "name": "打字标题", "dur": 3.45, "minDur": 3.45, "maxDur": 5.175}, {"id": "prompt", "name": "输入请求", "dur": 4, "minDur": 4, "maxDur": 6.0}, {"id": "tasks", "name": "并行任务", "dur": 2.7, "minDur": 2.7, "maxDur": 4.05}, {"id": "claim", "name": "设计团队", "dur": 2, "minDur": 2, "maxDur": 3.0}, {"id": "preview", "name": "实时预览", "dur": 3.6, "minDur": 3.6, "maxDur": 5.4}, {"id": "palette", "name": "更换配色", "dur": 1.5, "minDur": 1.5, "maxDur": 2.25}, {"id": "completed", "name": "完成提示", "dur": 1.65, "minDur": 1.65, "maxDur": 2.475}, {"id": "close", "name": "品牌收尾", "dur": 1.616236, "minDur": 1.616236, "maxDur": 2.424354}], "cues": [{"id": "introducing-in", "scene": "introducing", "at": 0}, {"id": "introducing-out", "scene": "introducing", "at": 0.2, "from": "end"}, {"id": "cursor-in", "scene": "cursor", "at": 0}, {"id": "cursor-out", "scene": "cursor", "at": 0.2, "from": "end"}, {"id": "title-in", "scene": "title", "at": 0}, {"id": "title-out", "scene": "title", "at": 0.1, "from": "end"}, {"id": "prompt-in", "scene": "prompt", "at": 0}, {"id": "prompt-out", "scene": "prompt", "at": 0.2, "from": "end"}, {"id": "tasks-in", "scene": "tasks", "at": 0}, {"id": "tasks-out", "scene": "tasks", "at": 0.07, "from": "end"}, {"id": "claim-in", "scene": "claim", "at": 0}, {"id": "claim-out", "scene": "claim", "at": 0, "from": "end"}, {"id": "preview-in", "scene": "preview", "at": 0}, {"id": "preview-out", "scene": "preview", "at": 0.2, "from": "end"}, {"id": "palette-in", "scene": "palette", "at": 0}, {"id": "palette-out", "scene": "palette", "at": 0.2, "from": "end"}, {"id": "completed-in", "scene": "completed", "at": 0}, {"id": "completed-out", "scene": "completed", "at": 0.2, "from": "end"}, {"id": "close-in", "scene": "close", "at": 0}, {"id": "close-out", "scene": "close", "at": 0.2, "from": "end"}, {"id": "title-typed", "scene": "title", "at": 2.18}, {"id": "prompt-typed", "scene": "prompt", "at": 2.15}, {"id": "prompt-submit", "scene": "prompt", "at": 2.65}, {"id": "preview-launch", "scene": "preview", "at": 0.55}, {"id": "preview-feedback", "scene": "preview", "at": 1.55}, {"id": "palette-finished", "scene": "palette", "at": 0.85}], "brand": "Claude", "product": "motion graphics", "request": "Make a launch video for my app", "launchTitle": "LAUNCH DAY", "animatorLabel": "assets/animator-label.png", "typographerLabel": "assets/typographer-label.png", "soundLabel": "assets/sound-label.png", "coloristLabel": "assets/colorist-label.png", "editorLabel": "assets/editor-label.png", "claudeLabel": "assets/claude-label.png"};
Object.assign(CFG,VARS);
document.getElementById("main").dataset.duration=CFG.duration;
const SCENE_START={};CFG.scenes.reduce((t,s)=>(SCENE_START[s.id]=t,t+s.dur),0);
const cueTime=id=>{const c=CFG.cues.find(c=>c.id===id),s=CFG.scenes.find(s=>s.id===c.scene);return SCENE_START[c.scene]+(c.from==='end'?s.dur-c.at:c.at)};
const EVENTS={"introducing":{enter:cueTime("introducing-in"),exit:cueTime("introducing-out")},"cursor":{enter:cueTime("cursor-in"),exit:cueTime("cursor-out")},"title":{enter:cueTime("title-in"),exit:cueTime("title-out")},"prompt":{enter:cueTime("prompt-in"),exit:cueTime("prompt-out")},"tasks":{enter:cueTime("tasks-in"),exit:cueTime("tasks-out")},"claim":{enter:cueTime("claim-in"),exit:cueTime("claim-out")},"preview":{enter:cueTime("preview-in"),exit:cueTime("preview-out")},"palette":{enter:cueTime("palette-in"),exit:cueTime("palette-out")},"completed":{enter:cueTime("completed-in"),exit:cueTime("completed-out")},"close":{enter:cueTime("close-in"),exit:cueTime("close-out")}};
const cvs=document.getElementById('film'),ctx=cvs.getContext('2d');
const fonts=getComputedStyle(document.documentElement);const H=fonts.getPropertyValue('--od-font-heading'),B=fonts.getPropertyValue('--od-font-body');
const imgs={};for(const name of ['animator','typographer','sound','colorist','editor','claude']){let im=new Image();im.src=CFG[name+'Label'];imgs[name]=im}
const ink='#11151b',muted='#979da1',bg='#fcfcf9',colors={animator:'#d6482b',typographer:'#7b48ed',sound:'#3286ee',colorist:'#dd329d',editor:'#19b1a3',claude:'#d2765d'};
const clamp=(v,a=0,b=1)=>Math.max(a,Math.min(b,v)),mix=(a,b,p)=>a+(b-a)*p,ease=v=>1-Math.pow(1-clamp(v),3),smooth=v=>{v=clamp(v);return v*v*(3-2*v)},spring=v=>1-Math.exp(-8*Math.max(0,v))*Math.cos(10*Math.max(0,v));
function rr(x,y,w,h,r,fill,stroke){ctx.beginPath();ctx.roundRect(x,y,w,h,r);if(fill){ctx.fillStyle=fill;ctx.fill()}if(stroke){ctx.strokeStyle=stroke;ctx.lineWidth=1.5;ctx.stroke()}}
function text(s,x,y,size=40,weight=500,color=ink,align='left',role=H){ctx.font=`${weight} ${size}px ${role}`;ctx.fillStyle=color;ctx.textAlign=align;ctx.textBaseline='alphabetic';ctx.fillText(s,x,y)}
function width(s,size,w=500){ctx.font=`${w} ${size}px ${H}`;return ctx.measureText(s).width}
function circle(x,y,r,c){ctx.beginPath();ctx.arc(x,y,r,0,Math.PI*2);ctx.fillStyle=c;ctx.fill()}
function card(x,y,w,h,r=24){ctx.save();ctx.shadowColor='#20272514';ctx.shadowBlur=55;ctx.shadowOffsetY=24;rr(x,y,w,h,r,'#fff','#e5e5df');ctx.restore()}
function arrow(x,y,c,right=false,scale=1){ctx.save();ctx.translate(x,y);ctx.scale(right?-scale:scale,scale);ctx.beginPath();ctx.moveTo(0,0);ctx.lineTo(0,33);ctx.lineTo(8,26);ctx.lineTo(15,42);ctx.lineTo(23,38);ctx.lineTo(15,23);ctx.lineTo(29,22);ctx.closePath();ctx.fillStyle=c;ctx.strokeStyle=bg;ctx.lineWidth=3;ctx.stroke();ctx.fill();ctx.restore()}
function label(name,x,y,t,scale=1,right=false,alpha=1){ctx.save();ctx.globalAlpha=clamp(alpha);const drift=12*Math.sin(t*1.5+name.length);ctx.translate(x+drift,y+8*Math.cos(t*1.3+name.length));ctx.scale(scale,scale);let im=imgs[name];if(im.complete&&im.naturalWidth)ctx.drawImage(im,0,0);else rr(0,0,120,50,25,colors[name]);arrow(right?im.width+12:-18,-33,colors[name],right);ctx.restore()}
function caret(x,y,h,t){ctx.fillStyle=ink;ctx.globalAlpha=.65+.35*Math.cos(t*8);ctx.fillRect(x,y-h,3,h+8);ctx.globalAlpha=1}
function titleDraw(t,u){let str=CFG.brand+' for '+CFG.product,pre=CFG.brand+' for ',size=70;
let k=clamp((u-.12)/(cueTime('title-typed')-SCENE_START.title)),full=width(str,size,600),x=960-full/2;
let n=clamp(str.length*k,0,str.length),typed=str.slice(0,Math.ceil(n));
let zoom=mix(4.8,1,smooth((u-1.7)/.55));
let cursor=x+width(typed,size,600);
let next=width(str.slice(0,Math.min(str.length,Math.floor(n)+1)),size,600);let tracking=x+mix(width(typed,size,600),next,smooth(n-Math.floor(n)));
let follow=tracking;let pan=u<2.1?follow:mix(follow,960,ease((u-2.1)/.25));
ctx.save();ctx.filter=`blur(${u>1.65&&u<2.2?20*Math.sin(Math.PI*clamp((u-1.65)/.55)):0}px)`;ctx.translate(u<2.1?mix(540,880,ease(u/.65))+80*smooth((u-1.8)/.3):960,540);ctx.scale(zoom,zoom);ctx.translate(-pan,-540);
circle(x-38,540,15,ink);text(typed,x,563,size,600);
if(u>2.18){let grad=ctx.createLinearGradient(x+width(pre,size,600),0,x+full,0);grad.addColorStop(0,'#9951dc');grad.addColorStop(.45,'#357de6');grad.addColorStop(1,'#ce4c38');let part=typed.slice(pre.length);text(part,x+width(pre,size,600),563,size,600,grad)}
if(u<2.75){ctx.fillStyle=ink;ctx.fillRect(tracking+10,503,5,74)}
label('claude',x-30,zoom>1.1?562:615,t,zoom>1.1?.23:.98,false);
ctx.restore();
if(u>2){let q=ease((u-2)/.55),travel=smooth((u-2.4)/.65);ctx.save();label('animator',mix(-100,280,q)+180*travel,mix(80,305,q)+65*travel,t,1,false);label('typographer',mix(2030,1430,q)-135*travel,mix(0,300,q)+80*travel,t,1,true);label('sound',mix(-130,135,q)+200*travel,mix(1200,900,q)+45*travel,t,1,false);label('colorist',mix(2100,1560,q)-120*travel,mix(1200,932,q)-100*travel,t,1,true);label('editor',1000,1030-160*travel,t,1,true,clamp((u-2.55)*4));ctx.restore()}
}
function promptBox(t,u,out){let zoom=1+1.2*ease((u-(cueTime('prompt-submit')-SCENE_START.prompt))/.65)*(1-ease((t-out)/.2));let pan=ease((u-(cueTime('prompt-submit')-SCENE_START.prompt))/.65);ctx.save();ctx.translate(960,540);ctx.scale(zoom,zoom);ctx.translate(-960-290*pan,-540+20*pan);
let y=430+mix(650,0,spring(u*2));card(420,y,1065,270,26);
let str=CFG.request,typed=str.slice(0,Math.floor(Math.max(0,u-.35)*str.length/(cueTime('prompt-typed')-SCENE_START.prompt-.35)));let x=466;const strong='a launch video';let pos=str.indexOf(strong);
if(pos>=0){let a=typed.slice(0,pos),b=typed.slice(pos,pos+strong.length),c=typed.slice(pos+strong.length);text(a,x,y+83,35,400,'#80868a');x+=width(a,35,400);text(b,x,y+83,35,600);x+=width(b,35,600);text(c,x,y+83,35,400,'#80868a')}else text(typed,x,y+83,35,500);
if(u<2.3)caret(466+width(typed,35,400),y+82,38,t);
text('+',470,y+222,37,400,muted);rr(522,y+199,21,21,2,null,muted);circle(529,y+206,2,muted);ctx.strokeStyle=muted;ctx.beginPath();ctx.moveTo(524,y+218);ctx.lineTo(534,y+208);ctx.lineTo(542,y+215);ctx.stroke();text('♧',572,y+220,33,400,muted);
if(u>.7){circle(1412,y+209,38,ink);ctx.strokeStyle='#fff';ctx.lineWidth=4;ctx.lineCap='round';ctx.beginPath();ctx.moveTo(1412,y+221);ctx.lineTo(1412,y+198);ctx.moveTo(1401,y+209);ctx.lineTo(1412,y+198);ctx.lineTo(1423,y+209);ctx.stroke()}
if(u>2.6)label('claude',1320,y+285,t,1,false,clamp((u-2.6)*3));ctx.restore()}
function tasks(t,u,out){let y=410+(-950*ease((t-out)/.22));const lines=[['Animating graphics...','Kinetic type, spring reveals','animator'],['Designing sound...','Whooshes synced to every cut','sound'],['Matching your style...','Palette from your reference video','colorist']];
lines.forEach((a,i)=>{let q=ease((u-i*.13)/.3);ctx.save();ctx.globalAlpha=q;let yy=y+i*135;circle(718,yy+20,8,colors[a[2]]);ctx.save();ctx.beginPath();ctx.rect(752,yy-20,800,105);ctx.clip();text(a[0],752+160*(1-q),yy+32,40,600);text(a[1],752,yy+82,29,400,muted);ctx.restore();rr(754,yy+99,220,3,1,'#ecece6');rr(754,yy+99,220*(u>3.3?(.2+.8*(.5+.5*Math.sin(u*2-i))):clamp((u-i*.3)/3.3)),3,1,colors[a[2]]);ctx.restore()});
ctx.globalAlpha=ease((u-1.1)/.3);text('one skill · a full design team, in parallel',754,y+433,26,400,muted);ctx.globalAlpha=1;
}
function status(t,x,y,scale=1,done=false,stretch=1){ctx.save();ctx.translate(x,y);ctx.scale(scale*stretch,scale);let s=done?'Motion graphics finished':CFG.brand+' is rendering',w=width(s,30,500)+94;card(0,0,w,66,33);if(done){ctx.strokeStyle='#2cba59';ctx.lineWidth=5;ctx.lineCap='round';ctx.beginPath();ctx.moveTo(39,32);ctx.lineTo(47,40);ctx.lineTo(63,22);ctx.stroke()}else circle(46,33,8+2*Math.sin(t*4),colors.claude);text(s,75,44,30,500);ctx.restore();return w*scale}
function claim(t,u,out){ctx.save();ctx.translate(0,5*Math.sin(t*1.6)+(CFG.scenes.find(s=>s.id==='claim').dur>2&&u>2?18*Math.sin((u-2)*3):0));let y=457+12*(1-ease(u/.8))-ease((t-out)/.2)*650;
['One skill turns '+CFG.brand,'into a full design team'].forEach((line,i)=>{ctx.save();ctx.beginPath();ctx.rect(480,y-100+i*107,1040,110);ctx.clip();let slide=(i?2400:1300)*(1-ease(u/(i?.8:.65)));text(line,960-slide,y+i*107,82,600,ink,'center');ctx.restore()});
if(u>.48){ctx.save();ctx.globalAlpha=ease((u-.48)/.2);status(t,765,636+mix(50,0,ease((u-.48)/.3))-ease((t-out)/.2)*100,1,false);ctx.restore()}ctx.restore()}
function previewPanel(t,u,mode,overlay=true){let enter=mode==='preview'?ease(u/.6):1;let y=mix(1150,233,enter)+(mode==='palette'?Math.pow(clamp((t-EVENTS.palette.exit+.2)/.55),2)*1100:0);let scale=mode==='completed'?1-.2*ease((u-.35)/.65):mode==='palette'?mix(1,.95,smooth((u-1)/.25)):1;let x=557+(mode==='palette'?150*clamp((t-EVENTS.palette.exit+.2)/.3):0);
ctx.save();ctx.translate(x+524,y+352);ctx.scale(scale,scale);ctx.translate(-524,-352);
card(0,0,1048,704,24);[36,64,92].forEach(xx=>circle(xx,34,7.5,'#e1e1dc'));text('launch_v1 — live preview',120,44,24,400,muted);
let wipe=mode==='palette'?ease((u+.10)/.38):0;
function artwork(dark){let fg=dark?'#f3efdf':'#1e1a16';rr(26,60,998,503,16,dark?'#141727':'#f4efe3');let pc=dark?['#f3efdf','#ffb820','#5a679b','#252943']:['#1e1a16','#d6482b','#b7aa8c','#eee8d5'];pc.forEach((c,i)=>rr(95+i*36,105,23,23,6,c,'#00000010'));
if(mode!=='preview'||u>(cueTime('preview-launch')-SCENE_START.preview)){let grow=mode==='preview'?spring((u-.6)*2):1;circle(mix(210,835,clamp(grow)),dark?105:180,dark?190:58,dark?'#ffb820':'#d6482b');ctx.save();ctx.translate(524,0);ctx.scale(clamp(grow,0,1.1),clamp(grow,0,1.1));
if(dark){let parts=CFG.launchTitle.split(' ');text(parts.slice(0,-1).join(' ')||parts[0],-435,373,118,800,fg);text(parts.length>1?parts.at(-1):'',-435,487,118,800,fg)}else text(CFG.launchTitle,0,314,96,800,fg,'center');ctx.restore();
for(let i=0;i<3;i++){let xx=dark?735:95,yy=dark?395+i*46:411+i*39;let ww=(dark?[198,164,216]:[124,86,140])[i]+Math.sin(t*2+i)*5;rr(xx,yy,ww,dark?25:21,13,dark&&i===1?'#dfa51f':fg)}}}
ctx.save();rr(26,60,998,503,16,'#f4efe3');ctx.clip();artwork(false);if(mode!=='preview'){ctx.save();ctx.beginPath();ctx.rect(26+998*(1-wipe),60,998*wipe,503);ctx.clip();artwork(true);ctx.restore()}
if(mode==='palette'&&u<1.1){let a=1-ease((u-.8)/.3);ctx.globalAlpha=a;[['#eee8d5','#d6482b','#b7aa8c','#1e1a16'],['#141727','#ffb820','#5a679b','#f3efdf'],['#f2faf6','#21d85a','#aaeac5','#156b4d']].forEach((cs,j)=>{card(38+j*353,90,266,68,17);cs.forEach((c,i)=>rr(82+j*353+i*46,106,35,35,9,c,'#00000020'))});rr(385,83,280,82,20,null,'#ffb820');ctx.globalAlpha=1;label('claude',375,145,t,1,true)}ctx.restore();
rr(26,610,998,4,2,'#eeeeea');let prog=clamp((u+(mode==='palette'?3.6:mode==='completed'?5.1:0))/8);rr(30+prog*900,597,4,30,2,ink);text('00:15',1024,605,21,400,muted,'right');
if(u>.9||mode!=='preview'){label('animator',840,186,t,1,true);label('sound',134,687,t,1,false);label('colorist',888,671,t,1,true)}ctx.restore();
if(!overlay)return;let done=mode==='completed'||(mode==='palette'&&u>(cueTime('palette-finished')-SCENE_START.palette));if(mode==='palette'&&u>(cueTime('palette-finished')-SCENE_START.palette)){let q=smooth((t-SCENE_START.completed+.2)/.35),scale=mix(1.3,1.7,q),w=width('Motion graphics finished',30,500)+94;status(t,mix(255,914-w*1.7*1.12/2,q),mix(680,500,q),scale,true,1.12)}else status(t,mode==='preview'?mix(765,90,ease(u/.5)):90,mode==='preview'?mix(636,770,ease(u/.5)):770,1,done);if(mode==='preview'&&u<.6){/* moving render badge already links from claim */}
if(((mode==='preview'&&u>(cueTime('preview-feedback')-SCENE_START.preview))||mode==='palette'||mode==='completed')&&!(mode==='palette'&&t>EVENTS.palette.exit+.08)){let s='different palette',v=mode==='preview'?s.slice(0,Math.floor((u-1.55)*15)):s;rr(175,876,320,60,30,ink);text(v,204,918,26,400,'#fff');caret(207+width(v,26,400),916,27,t);if(mode==='preview'&&u>2.2)label('claude',210,957,t,1,true)}
}
function finish(t,u){let q=smooth((u+.2)/.35),scale=mix(1.3,1.7,q),str='Motion graphics finished',w=width(str,30,500)+94;status(t,mix(255,914-w*1.7*1.12/2,q),mix(680,500,q),scale,true,1.12);let travel=smooth((u-.08)/.55);label('typographer',mix(-190,330,travel),mix(255,355,travel),t,1,false);label('editor',mix(2030,1570,travel),mix(350,375,travel),t,1,true);label('animator',mix(-100,220,travel),mix(1100,940,travel),t,1,false);label('sound',mix(2050,1790,travel),mix(1100,1000,travel),t,1,true)}
function close(t,u){
// Carry the completion pill and its collaborators into the upward exit.
if(u<.28){ctx.save();let q=clamp(u/.28);ctx.translate(0,-720*q);ctx.globalAlpha=1-smooth((u-.16)/.12);finish(t,2);ctx.restore()}
ctx.save();let str=CFG.brand+' for '+CFG.product,sz=112,x=960-width(str,sz,600)/2,y=649-68*ease((u-.57)/.23);let words=str.split(' '),offset=0;
ctx.beginPath();ctx.rect(x-2,430,1450,300);ctx.clip();
words.forEach((word,i)=>{let w=width(word,sz,600),q=ease((u-(.20+i*.065))/.10);ctx.save();ctx.beginPath();ctx.rect(x+offset-1,430,w+2,300);ctx.clip();ctx.globalAlpha=q;text(word,x+offset-(offset+w+30)*(1-q),y,sz,600);ctx.restore();offset+=width(word+' ',sz,600)});ctx.restore();
ctx.save();ctx.globalAlpha=ease((u-.75)/.25);text('Comment “GRAPHIC” — I’ll send you the link',960,974,26,400,muted,'center');ctx.restore();
let q=ease((u-.5)/.28);label('claude',mix(1940,1555,q),mix(850,695,q),t,1,true,q);
}
function render(t){ctx.clearRect(0,0,1920,1080);ctx.fillStyle=bg;ctx.fillRect(0,0,1920,1080);let sc=CFG.scenes.find((s,i)=>t<SCENE_START[s.id]+s.dur)||CFG.scenes.at(-1);let u=t-EVENTS[sc.id].enter,out=EVENTS[sc.id].exit;
if(sc.id==='introducing'){ctx.globalAlpha=1-ease((t-out)/.2);text('Introducing',960,558+7*Math.sin(t*3),44,500,ink,'center');ctx.globalAlpha=1}
if(sc.id==='cursor'){circle(510+8*Math.sin(t*2),540,14+Math.sin(t*3),ink);label('claude',490,mix(750,615,ease(u/.8)),t,1,false,clamp(u*4))}
if(sc.id==='title'){ctx.save();ctx.translate(0,-ease((t-out)/.2)*650);titleDraw(t,u);ctx.restore()}
if(sc.id==='prompt')promptBox(t,u,out);
if(sc.id==='tasks')tasks(t,u,out);
if(sc.id==='claim'){if(u<.15)tasks(t,t-SCENE_START.tasks,EVENTS.tasks.exit);claim(t,u,out);}
if(sc.id==='preview'&&u<.3)claim(t,CFG.scenes.find(s=>s.id==='claim').dur+u,EVENTS.claim.exit);if(['preview','palette'].includes(sc.id))previewPanel(t,u,sc.id);
if(sc.id==='completed'){if(u<.3)previewPanel(t,CFG.scenes.find(s=>s.id==='palette').dur+u,'palette',false);ctx.save();ctx.globalAlpha=1-ease((t-out)/.2);finish(t,u);ctx.restore()}
if(sc.id==='close')close(t,u);
}
const clock={t:0};const tl=gsap.timeline({paused:true,onUpdate:()=>{render(clock.t);updateControls()}});tl.to(clock,{t:CFG.duration,duration:CFG.duration,ease:'none'});window.__odRenderAt=t=>{tl.pause(t);clock.t=t;render(t);updateControls()};
const btn=document.querySelector('#controls button'),slider=document.querySelector('#controls input'),counter=document.querySelector('#controls span');slider.max=CFG.duration;function updateControls(){slider.value=clock.t;counter.textContent=clock.t.toFixed(2)+' / '+CFG.duration.toFixed(2)}btn.onclick=()=>{if(tl.paused()){if(clock.t>=CFG.duration)tl.restart();else tl.play();btn.textContent='PAUSE'}else{tl.pause();btn.textContent='PLAY'}};slider.oninput=()=>{tl.time(+slider.value);window.__odRenderAt(+slider.value)};
Promise.all([document.fonts.load('600 80px Inter').catch(()=>[]),document.fonts.load('400 30px Inter').catch(()=>[]),document.fonts.ready,...Object.values(imgs).map(im=>im.decode().catch(()=>{}))]).then(()=>{window.__timelines={main:tl};render(0);updateControls();window.__odReady=true});
</script><script data-od-preview-audio>
(function(){var a=document.getElementById('soundtrack');if(!a||document.documentElement.classList.contains('od-export'))return;
function tick(){if(window.__odMotionSourcePlayer||window.__odMotionRender)return;var tl=window.__timelines&&window.__timelines.main;
if(tl){var t=tl.time(),on=tl.isActive();if(on){if(a.paused)a.play().catch(function(){});if(Math.abs(a.currentTime-t)>0.2)a.currentTime=t;}else{if(!a.paused)a.pause();if(Math.abs(a.currentTime-t)>0.05)a.currentTime=t;}}
requestAnimationFrame(tick);}requestAnimationFrame(tick);})();
</script>
</body></html>