Email for professionals and teams
remove media
Hieu Nguyen (Jack)b777fe3e9e98
diff --git a/media/__pycache__/video_utils.cpython-313.pyc b/media/__pycache__/video_utils.cpython-313.pycdeleted file mode 100644index edb542d..0000000Binary files a/media/__pycache__/video_utils.cpython-313.pyc and /dev/null differdiff --git a/media/human-and-agent/STORYBOARD.md b/media/human-and-agent/STORYBOARD.mddeleted file mode 100644index 7dc88b5..0000000--- a/media/human-and-agent/STORYBOARD.md+++ /dev/null@@ -1,19 +0,0 @@-# Mailflare — Good company for your inbox--15 seconds · 1920 × 1080 · 60 fps · original synthesized stereo soundtrack--| Time | Picture | Copy |-| --- | --- | --- |-| 0–2.5s | Oversized type rises from masks. A blue envelope opens into a smiling note. Orbital accents and a lime notification pop on the beat. | Email. With a smile. |-| 2.5–5s | Warm human portrait and blue agent glyph bounce into a split composition, connected by a moving message. | For humans. And agents. |-| 5–10s | A stylized Mailflare inbox assembles. An agent drafts a reply; the cursor selects Review & send, then confirms delivery. | Feels familiar. Does more. / Draft. Review. Send. |-| 10–12.5s | A custom-domain address slides into a giant pill. Graphic rules orbit a confident ownership statement. | Your domain. Your rules. |-| 12.5–15s | Envelope wipe resolves into the Mailflare mark and a spacious cobalt end card. | mailflare / Email for humans. And their agents. / Make room for better email. |--## Product grounding--Read `README.md`, `mailflare-landing/app/page.tsx`, `docs/api.md`, and `src/components/agent/send-review.tsx`, and viewed the existing inbox screenshot and app icon before writing the copy. The UI in the film is an animated product illustration with fictional sample mail. The human confirmation step reflects the implementation's review-before-send flow.--## Render--Run `python3 render.py` from this directory. Requires Pillow and FFmpeg. Functions are in `utils.py`. No application files or previous video assets are modified.diff --git a/media/human-and-agent/__pycache__/utils.cpython-313.pyc b/media/human-and-agent/__pycache__/utils.cpython-313.pycdeleted file mode 100644index 1f38d13..0000000Binary files a/media/human-and-agent/__pycache__/utils.cpython-313.pyc and /dev/null differdiff --git a/media/human-and-agent/mailflare-human-and-agent.mp4 b/media/human-and-agent/mailflare-human-and-agent.mp4deleted file mode 100644index dfc5821..0000000Binary files a/media/human-and-agent/mailflare-human-and-agent.mp4 and /dev/null differdiff --git a/media/human-and-agent/poster.png b/media/human-and-agent/poster.pngdeleted file mode 100644index cb8bb58..0000000Binary files a/media/human-and-agent/poster.png and /dev/null differdiff --git a/media/human-and-agent/render.py b/media/human-and-agent/render.pydeleted file mode 100644index 0455f50..0000000--- a/media/human-and-agent/render.py+++ /dev/null@@ -1,3 +0,0 @@-from utils import render--render()diff --git a/media/human-and-agent/scene-01.png b/media/human-and-agent/scene-01.pngdeleted file mode 100644index 176c13d..0000000Binary files a/media/human-and-agent/scene-01.png and /dev/null differdiff --git a/media/human-and-agent/scene-04.png b/media/human-and-agent/scene-04.pngdeleted file mode 100644index 3c70410..0000000Binary files a/media/human-and-agent/scene-04.png and /dev/null differdiff --git a/media/human-and-agent/scene-07.png b/media/human-and-agent/scene-07.pngdeleted file mode 100644index 35b343b..0000000Binary files a/media/human-and-agent/scene-07.png and /dev/null differdiff --git a/media/human-and-agent/scene-11.png b/media/human-and-agent/scene-11.pngdeleted file mode 100644index 98de60b..0000000Binary files a/media/human-and-agent/scene-11.png and /dev/null differdiff --git a/media/human-and-agent/scene-14.png b/media/human-and-agent/scene-14.pngdeleted file mode 100644index cb8bb58..0000000Binary files a/media/human-and-agent/scene-14.png and /dev/null differdiff --git a/media/human-and-agent/soundtrack.wav b/media/human-and-agent/soundtrack.wavdeleted file mode 100644index c129eb6..0000000Binary files a/media/human-and-agent/soundtrack.wav and /dev/null differdiff --git a/media/human-and-agent/utils.py b/media/human-and-agent/utils.pydeleted file mode 100644index 92f2fd9..0000000--- a/media/human-and-agent/utils.py+++ /dev/null@@ -1,480 +0,0 @@-import math-import random-import struct-import subprocess-import wave-from functools import lru_cache-from pathlib import Path--from PIL import Image, ImageDraw, ImageFont---ROOT = Path(__file__).resolve().parent-W, H, S, FPS = 1920, 1080, 2, 60-CREAM = '#F5F3EB'-INK = '#172824'-BLUE = '#2458ED'-LIME = '#D9F876'-PEACH = '#F8AF8E'-MUTED = '#72817B'-WHITE = '#FFFFFF'-FONT = '/System/Library/Fonts/Supplemental/Arial.ttf'-BOLD = '/System/Library/Fonts/Supplemental/Arial Bold.ttf'---def clamp(v):- return max(0, min(1, v))---def ease(v):- return 1 - (1 - clamp(v)) ** 4---def smooth(v):- v = clamp(v)- return v * v * (3 - 2 * v)---def pop(v):- v = clamp(v)- return 1 + 2.1 * (v - 1) ** 3 + 1.1 * (v - 1) ** 2---def mix(a, b, v):- return a + (b - a) * v---@lru_cache(maxsize=120)-def font(size, bold=False):- return ImageFont.truetype(BOLD if bold else FONT, round(size * S))---def txt(im, x, y, value, size, color=INK, bold=False, anchor='lt'):- ImageDraw.Draw(im).text((round(x * S), round(y * S)), value, font=font(size, bold), fill=color, anchor=anchor, stroke_width=0)---def box(im, coords, fill, radius=0, outline=None, width=1):- ImageDraw.Draw(im).rounded_rectangle(tuple(round(v * S) for v in coords), radius=round(radius * S), fill=fill, outline=outline, width=round(width * S))---def line(im, coords, color, width=1):- ImageDraw.Draw(im).line(tuple(round(v * S) for v in coords), fill=color, width=max(1, round(width * S)), joint='curve')---def circle(im, x, y, r, fill=None, outline=None, width=1):- ImageDraw.Draw(im).ellipse(tuple(round(v * S) for v in (x-r, y-r, x+r, y+r)), fill=fill, outline=outline, width=max(1, round(width * S)))---def poly(im, points, fill):- ImageDraw.Draw(im).polygon([(round(x * S), round(y * S)) for x, y in points], fill=fill)---def arc(im, bounds, start, end, fill, width=3):- ImageDraw.Draw(im).arc(tuple(round(v*S) for v in bounds), start, end, fill=fill, width=round(width*S))---def new(bg=CREAM):- return Image.new('RGB', (W, H), bg)---def layer():- return Image.new('RGBA', (W, H), (0, 0, 0, 0))---def paste(im, item, x=0, y=0, scale=1, rotation=0, opacity=1):- if scale != 1:- item = item.resize((max(1, round(item.width*scale)), max(1, round(item.height*scale))), Image.Resampling.BICUBIC)- if rotation:- item = item.rotate(rotation, Image.Resampling.BICUBIC, expand=True)- if opacity < 1:- item = item.convert('RGBA')- item.putalpha(item.getchannel('A').point(lambda a: int(a*clamp(opacity))))- im.paste(item, (round(x*S-item.width/2), round(y*S-item.height/2)), item if item.mode == 'RGBA' else None)---def reveal(im, x, y, value, size, t, delay=0, color=INK, bold=True):- p = ease((t-delay)/0.65)- if p <= 0:- return- patch = Image.new('RGBA', (W, round(size*1.32*S)))- txt(patch, 0, (1-p)*size*1.45, value, size, color, bold)- im.paste(patch, (round(x*S), round(y*S)), patch)---def spark(im, x, y, r, color=BLUE, rot=0):- points = []- for i in range(8):- a = rot + math.pi*i/4- rr = r if i%2 == 0 else r*0.25- points.append((x+math.cos(a)*rr, y+math.sin(a)*rr))- poly(im, points, color)---def check(im, x, y, size, color=INK):- line(im, (x-size*.5, y, x-size*.1, y+size*.4, x+size*.65, y-size*.45), color, max(1.5,size*.15))---def envelope(im, x, y, w, color=BLUE, opened=0):- h = w*.7- box(im, (x-w/2,y-h/2,x+w/2,y+h/2), color, w*.08)- poly(im, [(x-w*.45,y-h*.43),(x,y-h*.43-w*.28*opened),(x+w*.45,y-h*.43),(x,y+h*.13)], '#96CBFF')- if opened:- yy = y-w*.3*opened- box(im,(x-w*.32,yy-h*.22,x+w*.32,yy+h*.27),CREAM,w*.03)- circle(im,x-w*.1,yy,w*.016,INK)- circle(im,x+w*.1,yy,w*.016,INK)- arc(im,(x-w*.09,yy,x+w*.09,yy+w*.10),0,180,INK,w*.015)- poly(im,[(x-w*.5,y-h*.39),(x+w*.03,y+h*.12),(x-w*.5,y+h*.5)],'#22B7E4')- poly(im,[(x+w*.5,y-h*.39),(x-w*.04,y+h*.12),(x+w*.5,y+h*.5)],'#0493D1')- poly(im,[(x-w*.5,y+h*.5),(x,y-h*.03),(x+w*.5,y+h*.5)],'#1EA7DF')---def brand(im, x=42, y=33, dark=False):- envelope(im,x+10,y+8,21)- txt(im,x+30,y-2,'mailflare',18,WHITE if dark else INK,True)---def footer(im, index, dark=False):- color = '#A7BFFE' if dark else MUTED- txt(im,42,505,'GOOD COMPANY FOR YOUR INBOX',9,color,True)- txt(im,918,505,f'0{index} / 05',9,color,True,'rt')---def portrait(im,x,y,r,t,agent=False):- if agent:- box(im,(x-r,y-r,x+r,y+r),BLUE,r*.3)- box(im,(x-r*.65,y-r*.32,x+r*.65,y+r*.47),CREAM,r*.22)- for dx in [-.28,.28]:- box(im,(x+r*dx-r*.06,y-r*.1,x+r*dx+r*.06,y+r*.13),INK,r*.05)- line(im,(x,y-r*.36,x,y-r*.67),CREAM,3)- circle(im,x,y-r*.73,r*.1,LIME)- arc(im,(x-r*.21,y+r*.07,x+r*.21,y+r*.3),0,180,INK,2)- else:- circle(im,x,y,r,PEACH)- arc(im,(x-r*.48,y-r*.77,x+r*.50,y+r*.1),185,343,INK,r*.19)- for dx in [-.26,.26]:- circle(im,x+r*dx,y-r*.01,r*.045,INK)- arc(im,(x-r*.27,y-r*.03,x+r*.27,y+r*.44),0,180,INK,r*.05)- circle(im,x-r*.47,y+r*.22,r*.10,'#EE8A72')- circle(im,x+r*.47,y+r*.22,r*.10,'#EE8A72')---def opening(t):- im=new()- brand(im)- footer(im,1)- # A faint oversized orbit gives the typography a physical stage.- circle(im,760,267,197,None,'#E0E4D8',1)- circle(im,760,267,159,None,'#E0E4D8',1)- reveal(im,54,150,'Email.',102,t)- reveal(im,54,266,'With a smile.',65,t,.22)- p=ease((t-.55)/.6)- txt(im,57,366+18*(1-p),'A little more human. A lot more possible.',17,MUTED)- card=Image.new('RGBA',(560,540))- # Drawing helpers use the same two-pixel unit inside local assets.- envelope(card,140,145,184,opened=ease((t-.55)/.8))- paste(im,card,748,281+math.sin(t*3)*7,max(.01,pop(t/.8)),rotation=-9+4*math.sin(t*2))- spark(im,635,131,23*pop((t-.4)/.5),BLUE,t*.5)- spark(im,873,385,17*pop((t-.6)/.5),BLUE,-t*.7)- q=pop((t-.85)/.45)- circle(im,849,180,26*q,LIME)- if q>.5:- txt(im,849,181,'1',22,INK,True,'mm')- line(im,(57,419,149+42*ease((t-.75)/.7),419),BLUE,4)- return im---def partners(t):- im=new()- box(im,(480,0,960,540),'#E9EEFF')- brand(im)- footer(im,2)- p=pop(t/.6)- portrait(im,254,219+12*math.sin(t*3),67*p,t)- portrait(im,706,219-12*math.sin(t*3),67*pop((t-.12)/.6),t,True)- for k in range(19):- xx=354+k*14- circle(im,xx,220,1.7,'#A9B8A9')- e=layer()- envelope(e,480,220,53)- xx=mix(364,597,(math.sin(t*2.8-1.5)+1)/2)- im.paste(e,(round((xx-480)*S),round(9*math.sin(t*5)*S)),e)- reveal(im,89,332,'For humans.',49,t,.08)- reveal(im,525,332,'And agents.',49,t,.26,BLUE)- txt(im,254,414,'Your people. Your conversations.',14,MUTED,anchor='mt')- txt(im,706,414,'A helping hand, built right in.',14,'#687CA5',anchor='mt')- spark(im,359,113,13,BLUE,t)- spark(im,823,302,14,BLUE,-t)- return im---def cursor(im,x,y,pressed=False):- poly(im,[(x+2,y+3),(x+2,y+26),(x+9,y+20),(x+15,y+31),(x+21,y+27),(x+14,y+17),(x+25,y+15)],'#182924')- poly(im,[(x,y),(x,y+22),(x+7,y+16),(x+14,y+28),(x+18,y+25),(x+11,y+14),(x+22,y+13)],WHITE)- if pressed:- circle(im,x+2,y+3,18,None,LIME,2)---def inbox(t):- im=new('#E7EDFF')- brand(im)- footer(im,3)- reveal(im,46,80,'Feels familiar. Does more.',40,t,0)- ui=layer()- box(ui,(60,152,900,477),'#CFD8F1',19)- box(ui,(54,144,894,469),WHITE,19)- box(ui,(54,144,220,469),'#F4F7FF',19)- envelope(ui,80,169,18)- txt(ui,98,160,'mailflare',14,INK,True)- box(ui,(70,199,200,237),'#DBE7FF',12)- txt(ui,89,210,'+ Compose',13,BLUE,True)- for i,label in enumerate(['Inbox','Starred','Snoozed','Sent','Drafts']):- yy=265+i*32- if i==0:- box(ui,(64,254,210,280),'#DEE8FD',12)- circle(ui,82,yy+2,3,BLUE if i==0 else '#ABB6C7')- txt(ui,96,yy-5,label,12,INK,i==0)- box(ui,(237,158,874,195),'#F1F4FA',17)- circle(ui,255,175,5,None,'#68798E',1.5)- line(ui,(259,179,263,183),'#68798E',1.5)- txt(ui,275,168,'Search your mail',12,'#8290A1')- txt(ui,243,215,'Inbox',20,INK,True)- txt(ui,870,219,'[email protected]',11,MUTED,anchor='rt')- entries=[('M','Maya','A little launch magic','Ready when you are.','#F8AF8E'),('J','Jamie','Coffee next week?','Tuesday sounds good.','#D9F876'),('S','Studio','The ideas are in','Three directions to explore.','#DBD2F9'),('A','Alex','That looks wonderful','Thanks for the lovely work.','#BDEBEE')]- for i,(initial,name,subject,body,color) in enumerate(entries):- p=ease((t-.13-i*.06)/.45)- y=252+i*50+(1-p)*20- if i==0:- box(ui,(234,y-5,880,y+43),'#ECF1FF',9)- circle(ui,254,y+17,13,color)- txt(ui,254,y+17,initial,11,INK,True,'mm')- txt(ui,278,y+2,name,11,INK,True)- txt(ui,365,y+2,subject,12,INK,True)- txt(ui,365,y+20,body,10,MUTED)- if i>0:- line(ui,(240,y+43,878,y+43),'#EEF0F5')- p=ease(t/.7)- scale=.90+.10*p- paste(im,ui,480,270+(1-p)*110,scale)- # The agent's draft is staged as a readable foreground interaction.- a=ease((t-1)/.5)- if a>0:- panel=layer()- box(panel,(462,233,891,465),'#C0CCE8',17)- box(panel,(454,225,883,457),WHITE,17,outline='#D0DCFA')- circle(panel,478,248,12,BLUE)- spark(panel,478,248,7,LIME,math.pi/4)- txt(panel,499,239,'Your agent',14,INK,True)- box(panel,(773,237,865,260),'#EEF5E3',10)- txt(panel,819,244,'DRAFT READY',8,INK,True,'mt')- line(panel,(472,273,866,273),'#EBEEF3')- txt(panel,476,287,'Re: A little launch magic',12,INK,True)- sentence='Hi Maya, everything is ready for launch.'- count=round(len(sentence)*clamp((t-1.55)/.6))- txt(panel,476,318,sentence[:count],12,'#58655F')- if t>1.95:- txt(panel,476,338,'Excited to share this with the world!',12,'#58655F')- line(panel,(472,375,866,375),'#EBEEF3')- txt(panel,476,399,'A draft from your agent. A final say from you.',10,MUTED)- box(panel,(713,419,864,447),BLUE,13)- txt(panel,788,428,'Review & send',11,WHITE,True,'mt')- paste(im,panel,480+28*(1-a),270+50*(1-a),opacity=a)- if t>2.4:- p=ease((t-2.4)/.55)- cursor(im,mix(913,811,p),mix(485,430,p),2.98<t<3.16)- # Explicit review before delivery, matching Mailflare's confirmation flow.- r=ease((t-3.08)/.24)- if r>0 and t<4.18:- panel=layer()- box(panel,(498,280,870,454),CREAM,15,outline='#C9D8EC')- txt(panel,522,300,'Looks good?',23,INK,True)- txt(panel,522,338,'To Maya · Re: A little launch magic',12,MUTED)- box(panel,(677,396,846,433),BLUE,17)- txt(panel,760,408,'Confirm and send',12,WHITE,True,'mt')- paste(im,panel,480,270+16*(1-r),opacity=r)- cursor(im,815,417,3.88<t<4.1)- if t>=4.18:- z=pop((t-4.18)/.35)- toast=layer()- box(toast,(595,371,856,440),LIME,20)- circle(toast,626,405,14,INK)- check(toast,626,405,10,LIME)- txt(toast,654,389,'Sent. Nice teamwork.',15,INK,True)- txt(toast,654,413,'One inbox. Better together.',10,INK)- paste(im,toast,480,270+18*(1-z),opacity=min(1,z))- return im---def ownership(t):- im=new(LIME)- brand(im)- footer(im,4)- # Big concentric shapes stay outside the reading area.- for i in range(4):- circle(im,905,293,125+i*44+12*math.sin(t*1.4),None,'#B9D969',1)- reveal(im,55,128,'Your domain.',76,t)- reveal(im,55,222,'Your rules.',76,t,.15)- p=pop((t-.35)/.6)- tag=Image.new('RGBA',(1190,174))- box(tag,(0,0,586,79),INK,39)- envelope(tag,42,39,31)- txt(tag,79,23,'[email protected]',31,CREAM,True)- circle(tag,547,39,16,LIME)- check(tag,547,39,12)- paste(im,tag,352,390+30*(1-p),max(.01,p),rotation=-2+1.5*ease(t/.8))- p=ease((t-.7)/.5)- txt(im,62,458+12*(1-p),'Custom domains. Shared inboxes. You’re at home.',16,INK)- spark(im,799,154,48*pop(t/.6),BLUE,t*.6)- spark(im,855,362,21,BLUE,-t)- return im---def closing(t):- im=new(BLUE)- # Deliberately hold the completed end card for a comfortable reading beat.- for i in range(3):- circle(im,482,239,225+i*70+min(t,1)*8,None,'#3869EF')- p=pop(t/.6)- mark=Image.new('RGBA',(256,256))- box(mark,(0,0,128,128),CREAM,32)- envelope(mark,64,72,87,opened=.5)- paste(im,mark,480,134,max(.01,p),rotation=-9*(1-ease(t/.7)))- # Centered title is masked upward with the same timing as the opening.- title='mailflare'- tw=ImageDraw.Draw(im).textlength(title,font=font(80,True))/S- reveal(im,(960-tw)/2,227,title,80,t,.15,CREAM)- q=ease((t-.3)/.65)- txt(im,480,343+(1-q)*24,'Email for humans. And their agents.',24,CREAM,False,'mt')- if t>.55:- b=pop((t-.55)/.5)- badge=Image.new('RGBA',(700,108))- box(badge,(0,0,346,50),LIME,25)- txt(badge,173,16,'Make room for better email. ↗',17,INK,True,'mt')- paste(im,badge,480,427,max(.01,b))- spark(im,202,252,19,CREAM,t*.25)- spark(im,761,189,27,LIME,-t*.25)- txt(im,480,505,'YOUR DOMAIN. YOUR INBOX.',10,'#BDCEFF',True,'mt')- return im---def frame(t):- scenes=[opening,partners,inbox,ownership,closing]- starts=[0,2.5,5,10,12.5]- index=max(i for i,start in enumerate(starts) if t>=start)- local=t-starts[index]- im=scenes[index](local)- # Fast traveling flap wipes bridge scenes like a message being handed over.- if index and local<.24:- p=clamp(local/.24)- previous=scenes[index-1](starts[index]-starts[index-1]+local)- edge=round(W*p)- im.paste(previous.crop((edge,0,W,H)),(edge,0))- poly(im,[(960*p-55,0),(960*p+15,0),(960*p+75,270),(960*p+15,540),(960*p-55,540),(960*p+5,270)],BLUE if index!=4 else LIME)- return im---def soundtrack():- sr=44100- n=sr*15- # Pure Python synthesis keeps this source portable without music assets.- left=[0.0]*n- right=[0.0]*n- rng=random.Random(29)- chords=[(146.832,184.997,220.0),(123.471,146.832,184.997),(97.999,123.471,146.832),(110.0,138.591,164.814)]- for beat in range(30):- start=int(beat*.5*sr)- notes=chords[(beat//8)%4]- # Warm, short kick and crisp offbeat snare.- for j in range(int(.22*sr)):- k=start+j- if k>=n:- break- s=j/sr- kick=.32*math.sin(2*math.pi*(49*s+6*(1-math.exp(-s*36))))*math.exp(-s*23)- snare=(rng.random()*2-1)*math.exp(-s*40)*.13 if beat%2 else 0- v=kick+snare- left[k]+=v- right[k]+=v- for sub in range(2):- start2=start+int(sub*.25*sr)- for j in range(int(.055*sr)):- k=start2+j- if k>=n:- break- s=j/sr- v=(rng.random()*2-1)*math.exp(-s*85)*.035- left[k]+=v*.7- right[k]+=v- # Eighth-note bell motif; chord changes give the short film a finish.- for sub in range(2):- onset=start+int(sub*.25*sr)- freq=notes[(beat+sub)%3]*(4 if (beat+sub)%4==0 else 2)- for j in range(int(.36*sr)):- k=onset+j- if k>=n:- break- s=j/sr- env=min(1,s/.004)*math.exp(-s*13)- v=.065*env*(math.sin(2*math.pi*freq*s)+.25*math.sin(2*math.pi*freq*2*s))- left[k]+=v*(.8 if sub else 1)- right[k]+=v*(1 if sub else .8)- echo=k+int(.125*sr)- if echo<n:- right[echo]+=v*.22- freq=notes[0]/2- for j in range(int(.43*sr)):- k=start+j- if k>=n:- break- s=j/sr- v=.115*min(1,s/.008)*math.exp(-s*7)*math.sin(2*math.pi*freq*s)- left[k]+=v- right[k]+=v- for onset in [2.43,4.93,9.93,12.43]:- start=int(onset*sr)- for j in range(int(.25*sr)):- k=start+j- if k>=n:- break- u=j/(.25*sr)- v=(rng.random()*2-1)*math.sin(math.pi*u)**3*.10- left[k]+=v*(1-u)- right[k]+=v*u- for onset,freq in [(9.2,880),(9.32,1174.66),(12.7,587.33)]:- for j in range(int(.4*sr)):- k=int(onset*sr)+j- if k<n:- s=j/sr- v=.10*math.sin(2*math.pi*freq*s)*math.exp(-s*12)*min(1,s/.003)- left[k]+=v- right[k]+=v- audio=bytearray()- for i,(l,r) in enumerate(zip(left,right)):- fade=min(1,i/(sr*.02))*smooth((n-i)/(sr*.48))- audio.extend(struct.pack('<hh',round(math.tanh(l*1.7)*26000*fade),round(math.tanh(r*1.7)*26000*fade)))- path=ROOT/'soundtrack.wav'- with wave.open(str(path),'wb') as out:- out.setnchannels(2)- out.setsampwidth(2)- out.setframerate(sr)- out.writeframes(audio)- return path---def render():- audio=soundtrack()- output=ROOT/'mailflare-human-and-agent.mp4'- command=['ffmpeg','-y','-hide_banner','-loglevel','error','-f','rawvideo','-vcodec','rawvideo','-pix_fmt','rgb24','-s',f'{W}x{H}','-r',str(FPS),'-i','-','-i',str(audio),'-c:v','libx264','-preset','fast','-crf','18','-pix_fmt','yuv420p','-c:a','aac','-b:a','256k','-ar','44100','-t','15','-movflags','+faststart',str(output)]- proc=subprocess.Popen(command,stdin=subprocess.PIPE)- for i in range(15*FPS):- im=frame(i/FPS)- proc.stdin.write(im.tobytes())- if i in [90,240,450,660,840]:- im.save(ROOT/f'scene-{i//FPS:02}.png')- if i%(FPS*3)==0:- print(f'Rendered {i//FPS}/15 seconds',flush=True)- proc.stdin.close()- if proc.wait():- raise RuntimeError('FFmpeg did not complete the video export.')- frame(14).save(ROOT/'poster.png')- print(output,flush=True)diff --git a/media/launch-film/README.md b/media/launch-film/README.mddeleted file mode 100644index 10ea7a0..0000000--- a/media/launch-film/README.md+++ /dev/null@@ -1,48 +0,0 @@-# Mailflare — Make it yours--15 seconds · 1920 × 1080 · 60 fps · stereo--## Creative direction--A friendly pearl-and-cobalt robot introduces a world of professional email. Large kinetic typography leads into a layered inbox, expands into a connected team, and resolves into the Mailflare mark. The actual Mailflare envelope mark is redrawn as vector geometry for crisp motion.--The character waves, points, blinks, floats, and speaks with mouth animation driven by the narration amplitude. Glass highlights, soft contact shadows, parallax, spring entrances, shutter sampling, and light sweeps supply depth. The original electronic score includes synchronized message sounds, transition sweeps, and a final resolving chord.--## Timeline and narration--| Time | Picture | Voice |-| --- | --- | --- |-| 0–3s | Presenter enters; generic email transforms into `[email protected]` | “Your business deserves a better address.” |-| 3–7s | Inbox assembles, messages arrive, reply is sent | “Mailflare gives you professional email on your own domain.” |-| 7–11s | Domain connects hello, support, hieu, and team; management controls appear | “Mailboxes, aliases, your whole team. One place.” |-| 11–15s | Kinetic slogan resolves into the Mailflare product hero | “Your domain. Your email. Mailflare.” |--Supporting text covers individuals, developers, startups, teams, permissions, and simple setup. UI is an illustrative product visualization.--## Files--- `mailflare-launch.mp4`: finished film, H.264 / AAC-- `poster.png`: final hero still-- `scene-*.png`: scene stills-- `soundtrack.wav`: full voice and original music mix-- `narration.wav`: clean ElevenLabs voiceover-- `score.wav`: original music and sound design-- `voice-*.mp3` and `voice-*.json`: narration takes and timing-- `utils.mjs`: editable animation, typography, character, and rendering functions-- `render.mjs`: render entry point-- `audio_utils.py`: audio construction functions-- `audio.py`: audio entry point--## Re-render--Requires Node.js, Python 3, FFmpeg, and `@napi-rs/canvas`. This production uses the isolated dependency directory `/tmp/mailflare-film-tools` and the project's existing Geist font. Recreate the tool directory if needed:--```sh-mkdir -p /tmp/mailflare-film-tools-npm install --prefix /tmp/mailflare-film-tools @napi-rs/canvas-python3 media/launch-film/audio.py-node media/launch-film/render.mjs-ffmpeg -y -i media/launch-film/picture.mp4 -i media/launch-film/soundtrack.wav -map 0:v -map 1:a -c:v copy -c:a aac -b:a 320k -t 15 -movflags +faststart media/launch-film/mailflare-launch.mp4-```--The ElevenLabs API key is not stored in these files. The voice is Brian, generated with Eleven Multilingual v2. New voice takes require a key with text-to-speech permission.diff --git a/media/launch-film/__pycache__/audio_utils.cpython-313.pyc b/media/launch-film/__pycache__/audio_utils.cpython-313.pycdeleted file mode 100644index f498b9b..0000000Binary files a/media/launch-film/__pycache__/audio_utils.cpython-313.pyc and /dev/null differdiff --git a/media/launch-film/audio.py b/media/launch-film/audio.pydeleted file mode 100644index 4a67992..0000000--- a/media/launch-film/audio.py+++ /dev/null@@ -1,3 +0,0 @@-from audio_utils import build_audio--build_audio()diff --git a/media/launch-film/audio_utils.py b/media/launch-film/audio_utils.pydeleted file mode 100644index ce45523..0000000--- a/media/launch-film/audio_utils.py+++ /dev/null@@ -1,101 +0,0 @@-import array-import json-import math-import random-import subprocess-import wave-from pathlib import Path--ROOT = Path(__file__).resolve().parent-RATE = 48000-SECONDS = 15-STARTS = [0.34, 3.38, 7.35, 11.82]---def narration():- command = ['ffmpeg', '-y', '-loglevel', 'error']- for i in range(4):- command += ['-i', str(ROOT / f'voice-{i+1}.mp3')]- filters = []- for i, start in enumerate(STARTS):- filters.append(f'[{i}:a]adelay={round(start*1000)}:all=1[v{i}]')- filters.append('[v0][v1][v2][v3]amix=inputs=4:normalize=0,apad,atrim=duration=15,loudnorm=I=-16:TP=-2:LRA=8,aresample=48000[a]')- command += ['-filter_complex', ';'.join(filters), '-map', '[a]', '-ac', '1', str(ROOT / 'narration.wav')]- subprocess.run(command, check=True)- with wave.open(str(ROOT / 'narration.wav')) as source:- pcm = array.array('h', source.readframes(source.getnframes()))- levels = []- for n in range(900):- block = pcm[n*800:(n+1)*800]- energy = math.sqrt(sum(x*x for x in block)/max(1,len(block)))/32768- levels.append(min(1, energy*9))- (ROOT / 'speech-envelope.json').write_text(json.dumps(levels))---def add_note(track, start, duration, frequency, gain, pan=0, kind='bell'):- first = round(start*RATE)- count = min(round(duration*RATE), len(track)//2-first)- for i in range(max(0,count)):- t=i/RATE- if kind=='bell':- env=min(1,t/.008)*math.exp(-t*5)*min(1,(duration-t)/.1)- val=(math.sin(2*math.pi*frequency*t)+.22*math.sin(2*math.pi*frequency*2.002*t))*env- elif kind=='bass':- env=min(1,t/.018)*min(1,(duration-t)/.12)- val=(math.sin(2*math.pi*frequency*t)+.15*math.sin(2*math.pi*frequency*2*t))*env- elif kind=='kick':- val=math.sin(2*math.pi*(45*t+6*(1-math.exp(-t*30))))*math.exp(-t*14)- elif kind=='pad':- env=min(1,t/.3)*min(1,(duration-t)/.5)- val=(math.sin(2*math.pi*frequency*t)+.3*math.sin(2*math.pi*frequency*1.003*t))*.6*env- else:- env=math.sin(math.pi*t/duration)**2- val=(random.random()*2-1)*env*.55- at=(first+i)*2- track[at] += val*gain*(1-pan*.35)- track[at+1] += val*gain*(1+pan*.35)---def score():- random.seed(48)- track=array.array('f',[0.0])*(RATE*SECONDS*2)- # Original 120 BPM score: soft pulse, glass arpeggios, and a resolving major ninth.- chords = [[146.832,220,293.665,369.994], [123.471,185,246.942,311.127], [97.999,146.832,195.998,246.942], [110,164.814,220,277.183]]- for section,notes in enumerate(chords):- start=[0,3,7,11][section]- duration=[3.3,4.3,4.2,4][section]- for j,note in enumerate(notes):- add_note(track,start,duration,note,.017,(j-1.5)/2,'pad')- for beat in range(math.ceil(duration*2)):- at=start+beat*.5- if at<14.4:- add_note(track,at,.36,notes[0]/2,.045,0,'bass')- add_note(track,at,.22,50,.038,0,'kick')- for step in range(math.ceil(duration*4)):- at=start+.125+step*.25- if at<14.2:add_note(track,at,.7,notes[[0,2,1,3,2,1,3,2][step%8]]*4,.017,math.sin(step)*.9)- for at in [2.75,6.75,10.75]:- add_note(track,at,.49,0,.072,-.5,'noise')- add_note(track,at+.24,.45,73.416,.063,0,'bass')- for i,at in enumerate([1.48,3.7,4.1,4.55,5.2,7.55,7.73,7.91,8.1,8.6,12.6]):- add_note(track,at,.25,[1174.66,1479.98,1760,2217.46][i%4],.030,(-1)**i*.55)- for j,freq in enumerate([293.665,440,587.33,739.99,880]):- add_note(track,12.55+j*.055,2.4,freq,.023,(j-2)/3)- pcm=array.array('h')- for i,value in enumerate(track):- t=i/(RATE*2)- fade=min(1,t/.15)*min(1,max(0,(15-t)/.8))- pcm.append(round(max(-1,min(1,value*fade))*32767))- with wave.open(str(ROOT/'score.wav'),'wb') as out:- out.setnchannels(2);out.setsampwidth(2);out.setframerate(RATE);out.writeframes(pcm.tobytes())---def mix():- subprocess.run(['ffmpeg','-y','-loglevel','error','-i',str(ROOT/'narration.wav'),'-i',str(ROOT/'score.wav'),'-filter_complex','[0:a]asplit=2[voice][control];[1:a][control]sidechaincompress=threshold=0.03:ratio=3:attack=15:release=180[bed];[voice][bed]amix=inputs=2:normalize=0,alimiter=limit=0.92,afade=t=out:st=14.65:d=0.35[a]','-map','[a]','-ar','48000','-ac','2',str(ROOT/'soundtrack.wav')],check=True)---def build_audio():- narration()- score()- mix()- print('Narration, speech animation envelope, and original score created.',flush=True)diff --git a/media/launch-film/captions.srt b/media/launch-film/captions.srtdeleted file mode 100644index 8b9acd1..0000000--- a/media/launch-film/captions.srt+++ /dev/null@@ -1,17 +0,0 @@-1-00:00:00,340 --> 00:00:02,616-Your business deserves a better address.--2-00:00:03,380 --> 00:00:06,259-Mailflare gives you professional email-on your own domain.--3-00:00:07,350 --> 00:00:10,369-Mailboxes, aliases, your whole team.-One place.--4-00:00:11,820 --> 00:00:13,910-Your domain. Your email. Mailflare.diff --git a/media/launch-film/mailflare-launch.mp4 b/media/launch-film/mailflare-launch.mp4deleted file mode 100644index 1fd014a..0000000Binary files a/media/launch-film/mailflare-launch.mp4 and /dev/null differdiff --git a/media/launch-film/narration.wav b/media/launch-film/narration.wavdeleted file mode 100644index feef6d2..0000000Binary files a/media/launch-film/narration.wav and /dev/null differdiff --git a/media/launch-film/picture.mp4 b/media/launch-film/picture.mp4deleted file mode 100644index a179604..0000000Binary files a/media/launch-film/picture.mp4 and /dev/null differdiff --git a/media/launch-film/poster.png b/media/launch-film/poster.pngdeleted file mode 100644index 1946ae2..0000000Binary files a/media/launch-film/poster.png and /dev/null differdiff --git a/media/launch-film/render.mjs b/media/launch-film/render.mjsdeleted file mode 100644index 6330b60..0000000--- a/media/launch-film/render.mjs+++ /dev/null@@ -1,3 +0,0 @@-import { render } from './utils.mjs';--await render();diff --git a/media/launch-film/scene-120.png b/media/launch-film/scene-120.pngdeleted file mode 100644index ae5767c..0000000Binary files a/media/launch-film/scene-120.png and /dev/null differdiff --git a/media/launch-film/scene-300.png b/media/launch-film/scene-300.pngdeleted file mode 100644index 02b2f59..0000000Binary files a/media/launch-film/scene-300.png and /dev/null differdiff --git a/media/launch-film/scene-540.png b/media/launch-film/scene-540.pngdeleted file mode 100644index 0e6bbbd..0000000Binary files a/media/launch-film/scene-540.png and /dev/null differdiff --git a/media/launch-film/scene-840.png b/media/launch-film/scene-840.pngdeleted file mode 100644index 1946ae2..0000000Binary files a/media/launch-film/scene-840.png and /dev/null differdiff --git a/media/launch-film/score.wav b/media/launch-film/score.wavdeleted file mode 100644index 2c67b1a..0000000Binary files a/media/launch-film/score.wav and /dev/null differdiff --git a/media/launch-film/soundtrack.wav b/media/launch-film/soundtrack.wavdeleted file mode 100644index 99e7c9e..0000000Binary files a/media/launch-film/soundtrack.wav and /dev/null differdiff --git a/media/launch-film/speech-envelope.json b/media/launch-film/speech-envelope.jsondeleted file mode 100644index c9278bf..0000000--- a/media/launch-film/speech-envelope.json+++ /dev/null@@ -1 +0,0 @@-[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0009754233869245476, 0.0012030609325900806, 0.0020193215907891777, 0.19211330921689335, 0.8380191153428334, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.9959270192160958, 0.7624755218009072, 0.6582812572720708, 0.8358564132069453, 1, 1, 1, 1, 1, 1, 1, 1, 0.8884917890252773, 0.546390620561582, 0.6319392902289285, 1, 1, 1, 1, 1, 1, 1, 0.9107320461861799, 0.3776612382690502, 0.038898401958951556, 0.029892917985987436, 0.3730210052565194, 0.563533809096117, 1, 1, 1, 1, 1, 1, 1, 0.9894469966793475, 1, 1, 1, 1, 1, 1, 1, 1, 0.7147717910500613, 0.7639314060590138, 0.7306155898548958, 1, 0.9442269262139438, 0.8350058167091337, 1, 1, 1, 1, 0.8728672180923891, 0.6491559206032642, 0.545600215023877, 0.5558806514697515, 1, 1, 1, 1, 1, 0.6358138322453096, 0.9314743141076045, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.960192089418514, 0.67386139379399, 0.5412875916583522, 0.6586219825401325, 0.5106364228816225, 1, 1, 1, 1, 1, 1, 1, 0.754077792751721, 0.6319880526315843, 0.5997646224787345, 0.6617479199616992, 0.8119721776508416, 0.3028458240888362, 0.5651760185449868, 0.935915196297469, 0.9405880444716324, 0.7859477414332247, 0.6402626392905124, 0.6301560648722764, 0.5138704219932989, 0.4103966734965755, 0.30432006434596987, 0.11614839802427847, 0.03601429178233075, 0.009705660778910474, 0.0031243200605497057, 0.0011857713859116158, 0.0010198477385366816, 0.001057211121672428, 0.0010258860753502017, 0.001054844844525413, 0.0009674637835122644, 0.0009810624158578772, 0.0008921108149426602, 0.0009206172598806721, 0.0009002129489083952, 0.0008945913242590768, 0.0009637039736275448, 0.0009876244590288502, 0.0008518279639582123, 0.0009067361273917159, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0035126464862627552, 0.38219604218051256, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.9524627656402184, 0.993441478956389, 0.8023639084068935, 0.7787311729601645, 0.7115121394308725, 0.39169755807726414, 0.31935850959914747, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.8733881726040662, 0.9547009952796546, 0.8440039522801006, 0.7990873457288121, 1, 1, 1, 1, 1, 0.9532343279862181, 0.9361220670197917, 0.8469417811389457, 0.7844103577603256, 1, 1, 1, 1, 0.8768015171817091, 0.44990394309102, 0.2259106000139392, 0.1805687806332842, 0.39326803225360296, 0.7146160029323562, 1, 1, 0.8858412200156448, 0.6709623570320776, 0.3911692519938163, 0.3622869352386557, 0.6571805056047216, 0.524370460625631, 1, 1, 1, 1, 1, 0.9732126723431095, 0.8838524509822984, 0.8671075324552429, 0.7926494020356957, 0.6668497022507961, 0.5307965129992981, 0.28187203489633833, 0.8777324225776594, 1, 1, 1, 1, 1, 1, 0.6893234612702103, 0.6492899336273944, 0.8131740988235412, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.8209089962034674, 0.5392023187274295, 0.5146328916952385, 0.893633822587456, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.926168868777922, 0.5699914990681298, 1, 1, 1, 1, 0.6189474042395622, 1, 1, 0.9049832391461078, 0.9994577380553104, 1, 1, 0.967976301855582, 0.9205034948049079, 0.8875160273356977, 0.6935914809236292, 0.7036654606469612, 0.6451985663624009, 0.5714996059960318, 0.5585976298810605, 0.38294375853813756, 0.19561181715168202, 0.12710302977002563, 0.06410016871031936, 0.02389783450799559, 0.004934167922535601, 0.002389881502266698, 0.001422234968453792, 0.0010603727650907206, 0.0009608131246789932, 0.0009837020719690919, 0.0009893892253644075, 0.0009658542285745979, 0.0010388563039374155, 0.0010876776950866404, 0.0010134943519996787, 0.0010106526210740166, 0.0010494675205742505, 0.0009141931348764438, 0.000680021762867795, 0.0007765471951513514, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0009139352306382661, 0.0007023279321414775, 0.02037455297388163, 0.9270235812969712, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.7011879581485336, 0.8220344066170664, 0.8174019798600235, 1, 1, 1, 1, 1, 1, 1, 1, 0.7567217045182911, 0.5156029580292595, 0.4335423773379302, 0.6869649262394395, 0.8905540508103799, 0.7648821575297838, 0.5959861671275675, 0.3848990273826381, 0.5930012764668922, 0.47680628157966914, 0.4012983961131799, 0.5292952301313911, 0.736744235345441, 0.7110534870722466, 0.2545472122144649, 0.43536488945738205, 0.1638741450934137, 0.5110665068667963, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.8611954320844543, 0.9928503980295408, 1, 0.9743920018364891, 0.8217610952548264, 0.6455966777344361, 0.4097784359928149, 0.31814991375513185, 0.5883592882724258, 0.704959283415101, 0.6466266695019129, 0.4886645077460495, 0.43208092962659184, 0.44560994870428083, 0.6199192208834289, 0.6782272741369605, 0.4115567480944441, 0.16183532460080768, 0.08025726299850651, 0.20639379844278322, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.7865510584246089, 0.4939380734416341, 0.48381832905705674, 0.511409746579803, 0.545361343686567, 0.5469141502586689, 1, 1, 1, 1, 1, 1, 1, 1, 0.6496593090610273, 0.26756179526109, 0.06863402809763847, 0.5911326548339364, 0.802320305627927, 0.7380003153012688, 0.47631590268456186, 0.4785455689172278, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.8876476521905053, 0.6857728912923106, 0.5183086531092851, 0.3451734296296157, 0.3741440462578608, 0.2402744371458198, 0.1472961823089512, 0.030183690039294876, 0.00288293004377822, 0.0012407971216800012, 0.0009105758283128499, 0.00651051475530483, 0.4663913185953022, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.44452666830273846, 0.36639299176650114, 0.23475504723565152, 0.19398956668196604, 1, 1, 1, 1, 1, 1, 1, 1, 0.6076701619053543, 0.38450467517079545, 0.6467763317166978, 0.6344802992056403, 0.631375365644906, 0.5505516458070335, 0.5225786429198196, 0.43679017669640946, 0.33971696475132834, 0.2437836846917863, 0.11992000396745245, 0.01350332691504706, 0.0017467268429712086, 0.0010487035032642486, 0.0009348471180789647, 0.0008479446511616228, 0.0009370635924260732, 0.0008996366449099719, 0.0009181557119996399, 0.0008796033478948907, 0.0008873946842229524, 0.0010132617230912504, 0.0011881943699152185, 0.0013408412903924889, 0.0008864378095472444, 0.0008896763856854837, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0024714850990055592, 0.001533265735173953, 0.0010114919949638832, 0.003774227468361692, 0.008947373013891797, 0.40125979084796615, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.9825238521258115, 0.9759786960773581, 1, 1, 1, 1, 0.8831675424897789, 0.9903764181304804, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.9426656873287416, 0.7898529073096112, 0.5758998683267827, 0.3642742282623912, 0.2010222248796853, 0.07127247009793695, 0.02982440949362144, 0.004841790615330105, 0.002391281798541275, 0.0013290803817922435, 0.0009387727383203942, 0.0008666434740218979, 0.0009759549396754102, 0.0009295364495592224, 0.0339099187098072, 0.20980291340669047, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.8979665926513435, 0.6319281730532106, 0.7881901561925932, 0.7728135135100388, 0.7021132307310125, 0.4850191818073292, 0.14445007716911726, 0.9358697337568127, 1, 1, 1, 1, 1, 1, 1, 1, 0.9523650242425075, 0.9540695946091853, 1, 0.984184518626763, 0.7118674200726193, 0.39892670673615527, 0.1511200576927231, 0.04282024338263303, 0.01080179592991832, 0.004817316188618344, 0.0012693473792804067, 0.0010070072494529293, 0.0009521869504915736, 0.0009906274506315971, 0.0008946440263313048, 0.0009138320485627876, 0.0008964866469859337, 0.0008819586677944789, 0.0009080351397299125, 0.001001278901379539, 0.001035310243452407, 0.0006885654310943303, 0.0008447693389469439, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]\ No newline at end of filediff --git a/media/launch-film/utils.mjs b/media/launch-film/utils.mjsdeleted file mode 100644index fe6061d..0000000--- a/media/launch-film/utils.mjs+++ /dev/null@@ -1,208 +0,0 @@-import { createRequire } from 'node:module';-import { readFileSync, writeFileSync } from 'node:fs';-import { fileURLToPath } from 'node:url';-import { dirname, join } from 'node:path';-import { spawn } from 'node:child_process';-import { once } from 'node:events';--const require = createRequire('/tmp/mailflare-film-tools/package.json');-const { createCanvas, GlobalFonts } = require('@napi-rs/canvas');-const ROOT = dirname(fileURLToPath(import.meta.url));-const W = 1920, H = 1080, FPS = 60;-const C = { ink: '#111D3C', blue: '#185BFF', cyan: '#69DEFF', pale: '#F1F5FF', muted: '#7787A5', white: '#FFFFFF', navy: '#07122F', green: '#64EDB4' };-GlobalFonts.registerFromPath(join(ROOT, '../../node_modules/next/dist/next-devtools/server/font/geist-latin.woff2'), 'Geist');-GlobalFonts.registerFromPath('/System/Library/Fonts/Menlo.ttc', 'Mono');-const canvas = createCanvas(W, H), ctx = canvas.getContext('2d');-const voice = JSON.parse(readFileSync(join(ROOT, 'speech-envelope.json')));--export function clamp(v) { return Math.max(0, Math.min(1, v)); }-export function lerp(a, b, p) { return a + (b - a) * p; }-export function ease(v) { return 1 - (1 - clamp(v)) ** 4; }-export function smooth(v) { v = clamp(v); return v * v * (3 - 2 * v); }-export function spring(v) { v = clamp(v); return 1 - Math.exp(-7.5 * v) * Math.cos(9.5 * v); }-export function rr(x,y,w,h,r,fill,stroke=null,lw=1) {- ctx.beginPath(); ctx.roundRect(x,y,w,h,r); if(fill){ctx.fillStyle=fill;ctx.fill();} if(stroke){ctx.strokeStyle=stroke;ctx.lineWidth=lw;ctx.stroke();}-}-export function line(points,color,width=2) {- ctx.beginPath(); points.forEach(([x,y],i)=>i?ctx.lineTo(x,y):ctx.moveTo(x,y));ctx.strokeStyle=color;ctx.lineWidth=width;ctx.lineCap='round';ctx.lineJoin='round';ctx.stroke();-}-export function ellipse(x,y,rx,ry,fill) {ctx.beginPath();ctx.ellipse(x,y,Math.max(.01,rx),Math.max(.01,ry),0,0,Math.PI*2);ctx.fillStyle=fill;ctx.fill();}-export function text(s,x,y,size=30,color=C.ink,weight=500,align='left') {- ctx.font=`${Math.round(weight/100)*100} ${size}px Geist`;ctx.textAlign=align;ctx.textBaseline='middle';ctx.fillStyle=color;ctx.fillText(s,x,y);-}-export function mono(s,x,y,size=22,color=C.muted,align='left') {ctx.font=`${size}px Mono`;ctx.textAlign=align;ctx.textBaseline='middle';ctx.fillStyle=color;ctx.fillText(s,x,y);}-export function gradient(x,y,x2,y2,colors) {const g=ctx.createLinearGradient(x,y,x2,y2);colors.forEach((c,i)=>g.addColorStop(i/(colors.length-1),c));return g;}-export function halo(x,y,r,color) {const g=ctx.createRadialGradient(x,y,0,x,y,r);g.addColorStop(0,color);g.addColorStop(1,`${color.slice(0,7)}00`);ctx.fillStyle=g;ctx.fillRect(x-r,y-r,r*2,r*2);}-export function shadow(alpha=.18,blur=50,dy=25) {ctx.shadowColor=`rgba(12,35,92,${alpha})`;ctx.shadowBlur=blur;ctx.shadowOffsetY=dy;}-export function clearShadow() {ctx.shadowColor='transparent';ctx.shadowBlur=0;ctx.shadowOffsetY=0;}-export function check(x,y,s,color=C.blue) {line([[x-s*.4,y],[x-s*.08,y+s*.3],[x+s*.5,y-s*.4]],color,s*.14);}-export function arrow(x,y,s,color=C.blue) {line([[x-s*.6,y],[x+s*.4,y]],color,3);line([[x,y-s*.4],[x+s*.4,y],[x,y+s*.4]],color,3);}-export function envelope(x,y,s,color=C.blue,open=0) {- ctx.save();ctx.translate(x,y);ctx.scale(s/100,s/100);- ctx.fillStyle=color;ctx.beginPath();ctx.moveTo(-47,-21);ctx.lineTo(0,-53-open*12);ctx.lineTo(47,-21);ctx.lineTo(47,39);ctx.lineTo(-47,39);ctx.closePath();ctx.fill();- rr(-35,-25,70,56,4,'#FFF');- ctx.fillStyle='#42C5EE';ctx.beginPath();ctx.moveTo(-47,-20);ctx.lineTo(47,39);ctx.lineTo(-47,39);ctx.fill();- ctx.fillStyle='#139FD8';ctx.beginPath();ctx.moveTo(47,-20);ctx.lineTo(-47,39);ctx.lineTo(47,39);ctx.fill();ctx.restore();-}-export function spark(x,y,s,color=C.blue,angle=0) {ctx.save();ctx.translate(x,y);ctx.rotate(angle);ctx.fillStyle=color;ctx.beginPath();for(let i=0;i<8;i++){let a=i*Math.PI/4,r=i%2?s*.23:s; i?ctx.lineTo(Math.cos(a)*r,Math.sin(a)*r):ctx.moveTo(Math.cos(a)*r,Math.sin(a)*r);}ctx.closePath();ctx.fill();ctx.restore();}-export function pill(s,x,y,w,dark=false,icon=false) {rr(x,y,w,48,24,dark?'#14264A':'#FFFFFFCC',dark?'#38527C':'#D9E3F7');if(icon){ellipse(x+24,y+24,4,4,C.green);}text(s,x+(icon?40:w/2),y+24,19,dark?'#BED4F9':C.ink,550,icon?'left':'center');}-export function reveal(s,x,y,size,t,delay=0,color=C.ink,weight=650,align='left') {- let p=ease((t-delay)/.62);if(p<=0)return;ctx.save();ctx.beginPath();ctx.rect(0,y-size*.7,W,size*1.45);ctx.clip();text(s,x,y+(1-p)*size*1.5,size,color,weight,align);ctx.restore();-}-export function chrome(t,n,dark=false) {- const col=dark?'#F4F8FF':C.ink;ctx.save();ctx.globalAlpha=ease(t/.4);envelope(102,79,41);text('Mailflare',137,78,28,col,670);mono('MAKE IT YOURS',1817,79,16,dark?'#A2B9E8':C.muted,'right');- text('PROFESSIONAL EMAIL. PERSONAL BY DESIGN.',83,1028,14,dark?'#7188B3':'#8A99B7',600);mono(`0${n} / 04`,1837,1028,16,dark?'#A2B9E8':C.muted,'right');ctx.restore();-}-export function background(t,dark=false,blue=false) {- ctx.fillStyle=blue?'#1454F3':dark?C.navy:'#F4F7FE';ctx.fillRect(0,0,W,H);- if(blue){halo(300+80*Math.sin(t),150,1100,'#468CFF');halo(1670,1000,900,'#092681');}- else if(dark){halo(1000,650,850,'#123C8B');halo(1750,100,550,'#153151');}- else {halo(1550+60*Math.sin(t*.6),380,780,'#C6D8FF');halo(200,1000,650,'#DAEFFF');}- ctx.save();ctx.globalAlpha=dark?.1:.055;ctx.strokeStyle=dark?'#A2C3FF':'#3D73CA';ctx.lineWidth=1;- for(let x=-100;x<W+100;x+=80){ctx.beginPath();ctx.moveTo(x+Math.sin(t*.2)*25,0);ctx.lineTo(x+Math.sin(t*.2)*25,H);ctx.stroke();}- for(let y=0;y<H;y+=80){ctx.beginPath();ctx.moveTo(0,y);ctx.lineTo(W,y);ctx.stroke();}ctx.restore();- for(let i=0;i<28;i++){const x=(i*379.41+Math.sin(t*.35+i)*40)%W,y=(i*163.59-t*(5+i%6)+H*2)%H;ellipse(x,y,i%3===0?2:1,i%3===0?2:1,dark?'#40619B55':'#6186BA44');}-}-export function limb(x,y,length,angle,hand=false) {- ctx.save();ctx.translate(x,y);ctx.rotate(angle);shadow(.16,16,8);rr(-length/2,-21,length,42,21,gradient(0,-21,0,21,['#FFFFFF','#CAD9F1','#91AAD5']));clearShadow();- if(hand){ellipse(length/2+4,0,31,33,gradient(length/2-20,-25,length/2+27,26,['#FFF','#E6EEFE','#9DBBE8']));line([[length/2+17,-14],[length/2+22,-6]],'#AEC3E6',3);}- ctx.restore();-}-export function robot(x,y,s,t,gesture=0,dark=false) {- const bob=Math.sin(t*3.1)*9, talk=voice[Math.min(voice.length-1,Math.floor(t*60))]||0;- ctx.save();ctx.translate(x,y);ctx.scale(s,s);- ellipse(0,267,167,24,dark?'#01092344':'#173E7C15');halo(0,270,210,dark?'#2881FF18':'#658EFF19');- ctx.translate(0,bob);ctx.rotate(Math.sin(t*2)*.025);- const wave=Math.sin(t*8)*.18;- limb(-127,80,117,1.2+Math.sin(t*3)*.1,true);- const reach=gesture===1?-.95+wave:gesture===2?-.4: .9+Math.sin(t*3+1)*.13;- limb(139,gesture===1?3:77,126,reach,true);- shadow(.22,40,20);rr(-101,33,202,161,66,gradient(-110,30,90,185,['#7DB8FF','#246AF9','#113CB7']));clearShadow();- rr(-84,45,140,20,10,'#BCD9FF44');- ellipse(-54,195,41,31,gradient(-80,180,-36,223,['#EFF5FF','#B5CAED']));ellipse(55,195,41,31,gradient(30,180,86,223,['#EFF5FF','#B5CAED']));- rr(-26,72,52,50,14,'#EDF5FF');envelope(0,97,33);- rr(-43,-3,86,46,20,'#B4CDF2');- shadow(.28,47,17);rr(-154,-207,308,236,77,gradient(-130,-205,164,64,['#FFFFFF','#EFF5FF','#BCD1EF']));clearShadow();- rr(-139,-195,266,54,35,gradient(0,-195,0,-141,['#FFFFFF','#F8FAFF00']));- ctx.strokeStyle='#FFFFFF';ctx.lineWidth=3;ctx.beginPath();ctx.roundRect(-151,-204,302,229,74);ctx.stroke();- rr(-125,-160,250,141,44,gradient(-100,-160,95,-10,['#25365A','#09162F','#06102C']));- rr(-105,-151,166,10,5,'#FFFFFF16');- let blink=1-Math.pow(Math.max(0,Math.cos(t*2.1)),28)*.94;- const pupil=gesture===2?9:Math.sin(t*1.4)*4;- for(const ex of [-51,51]){ctx.save();ctx.shadowBlur=20;ctx.shadowColor='#61DEFF';rr(ex-13+pupil,-113,25,Math.max(4,37*blink),12,'#8EEBFF');ctx.restore();ellipse(ex-6+pupil,-105,3,3,'#FFF');}- if(talk>.09){ellipse(0,-54,14+talk*5,4+talk*18,'#83DAFF');ellipse(0,-48+talk*2,8,3,'#E6FCFF');}- else {ctx.beginPath();ctx.ellipse(0,-61,19,13,0,.2,Math.PI-.2);ctx.strokeStyle='#82DCFF';ctx.lineWidth=5;ctx.stroke();}- ellipse(-95,-66,13,5,'#458BBD33');ellipse(95,-66,13,5,'#458BBD33');- rr(-13,-252,26,52,12,gradient(-13,0,13,0,['#BFD3EF','#FFF','#ABBFE2']));- ctx.save();ctx.shadowBlur=35;ctx.shadowColor='#53BFFF';ellipse(0,-255,19,19,gradient(-15,-271,18,-239,['#BAF6FF','#4ACDFF','#2588F3']));ctx.restore();ellipse(-6,-262,5,5,'#F2FFFF');- ellipse(-156,-90,12,34,'#BDCEF0');ellipse(156,-90,12,34,'#8AA9DE');- ctx.restore();-}-export function floatMail(x,y,s,t,angle=0,dark=false) {ctx.save();ctx.translate(x,y+Math.sin(t*3+x)*8);ctx.rotate(angle);shadow(.16,35,13);rr(-s*.7,-s*.55,s*1.4,s*1.1,s*.22,dark?'#183864':'#FFFFFF');clearShadow();envelope(0,2,s*.75);ctx.restore();}-export function sceneIntro(t) {- background(t);chrome(t,1);let p=spring(t/.8);- ctx.save();ctx.translate(1510,590);ctx.rotate(-.35+t*.045);ctx.strokeStyle='#C5D8F5';ctx.lineWidth=2;ctx.beginPath();ctx.ellipse(0,0,325,260,0,0,Math.PI*2);ctx.stroke();ctx.restore();- floatMail(1330,290,73,t,-.23);floatMail(1762,676,83,t,.2);spark(1730,332,24,C.blue,t*.35);- pill('YOUR NEXT CHAPTER',142,228,247);- reveal('You mean',136,357,121,t,.08);reveal('business.',136,489,121,t,.2,C.blue);- let a=ease((t-.7)/.55);ctx.save();ctx.globalAlpha=a;ctx.translate(0,(1-a)*50);shadow(.1,45,20);rr(140,604,1100,124,33,'#FFFFFF','#DDE6F8',1.5);clearShadow();envelope(202,669,52);- const swap=smooth((t-1.25)/.48);text('hello@',250,665,60,C.ink,580);ctx.save();ctx.beginPath();ctx.rect(442,619,630,100);ctx.clip();ctx.globalAlpha=1-swap;text('gmail.com',442,665-swap*75,60,'#8493AF',500);ctx.globalAlpha=swap;text('mailflare.co',442,742-swap*77,60,C.blue,620);ctx.restore();- ctx.globalAlpha=a*swap;ellipse(1172,666,27,27,'#E1F7EE');check(1172,666,26,'#1B9B6D');ctx.restore();- reveal('An address that’s unmistakably yours.',146,789,30,t,1.65,C.muted,450);- robot(1530,570+(1-p)*740,1.04*p,t,1);- const pulse=clamp((t-1.45)/.7);if(pulse>0&&pulse<1){ctx.save();ctx.globalAlpha=(1-pulse)*.6;ctx.strokeStyle=C.blue;ctx.lineWidth=2;ctx.beginPath();ctx.roundRect(140-pulse*25,604-pulse*25,1100+pulse*50,124+pulse*50,33+pulse*25);ctx.stroke();ctx.restore();}- mono('01 / OWN YOUR ADDRESS',147,887,18,'#6D86B2');-}-export function search(x,y,w) {rr(x,y,w,42,12,'#F2F5FA');ctx.strokeStyle='#8190A9';ctx.lineWidth=2;ctx.beginPath();ctx.arc(x+23,y+19,6,0,Math.PI*2);ctx.stroke();line([[x+28,y+24],[x+33,y+29]],'#8190A9',2);text('Search your mail',x+48,y+21,16,'#8D99AD',450);mono('⌘ K',x+w-19,y+22,12,'#8D99AD','right');}-export function navIcon(index,x,y,color) {- ctx.save();ctx.translate(x,y);- if(index===0){rr(-9,-7,18,14,3,null,color,1.7);line([[-9,-1],[-3,-1],[-1,3],[3,3],[5,-1],[9,-1]],color,1.7);}- else if(index===1){const points=[];for(let i=0;i<10;i++){const a=i*Math.PI/5-Math.PI/2,r=i%2?4:10;points.push([Math.cos(a)*r,Math.sin(a)*r]);}points.push(points[0]);line(points,color,1.7);}- else if(index===2){line([[-10,-7],[10,0],[-10,8],[-5,0],[-10,-7]],color,1.7);line([[-5,0],[10,0]],color,1.7);}- else if(index===3){rr(-7,-10,14,20,2,null,color,1.7);line([[-3,-4],[3,-4]],color,1.7);line([[-3,1],[3,1]],color,1.7);line([[-3,6],[1,6]],color,1.7);}- else {rr(-9,-5,18,14,2,null,color,1.7);rr(-10,-9,20,5,1,null,color,1.7);line([[-3,1],[3,1]],color,1.7);}- ctx.restore();-}-export function inbox(t) {- const w=1420,h=586;shadow(.17,65,30);rr(0,0,w,h,25,'#FFF','#D4DFF2',1.5);clearShadow();- ctx.save();ctx.beginPath();ctx.roundRect(0,0,w,h,25);ctx.clip();rr(0,0,230,h,0,'#F4F7FC');- envelope(37,39,31);text('Mailflare',64,39,23,C.ink,650);rr(20,89,188,49,14,'#175BFF');text('+ Compose',114,113,19,'#FFF',550,'center');- const labels=['Inbox','Starred','Sent','Drafts','Archive'];for(let i=0;i<5;i++){if(i===0)rr(16,164+i*48,197,42,10,'#E2EBFF');navIcon(i,43,185+i*48,i===0?C.blue:'#7C8BA3');text(labels[i],68,185+i*48,18,i===0?C.blue:'#64718B',i===0?650:450);if(i===0)text(t>.8?'4':'3',190,185,15,C.blue,650,'right');}- text('MAILBOXES',29,455,11,'#8A96AC',650);ellipse(39,492,5,5,C.blue);text('[email protected]',54,492,15,'#627493');ellipse(39,531,5,5,'#5DC0A1');text('[email protected]',54,531,15,'#627493');- line([[230,0],[230,h]],'#DFE6F1',1);text('Inbox',258,39,27,C.ink,630);search(940,20,448);line([[230,76],[w,76]],'#E7ECF5',1);- const names=['Alex Morgan','Sam from Studio','Design team','Hieu Nguyen'];const subjects=['Let’s build something great.','Welcome to your new workspace','Brand assets, delivered.','Ready when you are.'];- const previews=['Everything you need to get started.','Your next big idea starts here.','The latest files are all here.','See you on the other side.'];- for(let i=0;i<4;i++){let p=ease((t-.2-i*.16)/.5);ctx.save();ctx.globalAlpha=p;ctx.translate((1-p)*160,0);const y=95+i*111;if(i===0)rr(244,y,519,102,14,'#EAF0FF');ellipse(275,y+26,5,5,i===0?C.blue:'#B6C4D9');text(names[i],295,y+24,17,C.ink,650);text(i===0?'Now':`${i*4}m`,740,y+24,13,'#8B98AC',450,'right');text(subjects[i],263,y+55,19,C.ink,520);text(previews[i],263,y+80,15,'#8794AA',420);ctx.restore();}- line([[780,76],[780,h]],'#E2E9F4',1);let r=ease((t-.65)/.7);ctx.save();ctx.globalAlpha=r;ctx.translate(0,(1-r)*35);- ellipse(839,126,23,23,'#CCE0FF');text('A',839,126,20,C.blue,650,'center');text('Alex Morgan',878,118,20,C.ink,650);text('[email protected]',878,144,14,'#8591A5',420);pill('TO YOU',1244,106,125);- text('Let’s build something great.',812,215,31,C.ink,600);text('Hey Hieu,',812,281,20,C.ink,500);text('Your next chapter starts with a hello.',812,327,20,'#758399',420);text('Looking forward to working together.',812,365,20,'#758399',420);- rr(811,405,445,62,14,'#F4F7FC','#E2EAF5');rr(825,417,37,37,9,'#E0EAFF');text('↓',843,435,22,C.blue,600,'center');text('Project brief.pdf',880,437,17,C.ink,540);text('2.4 MB',1234,437,13,'#8593AD',400,'right');- rr(810,496,113,44,12,C.blue);text('↩ Reply',866,518,17,'#FFF',500,'center');text('Forward ↗',950,518,17,'#8391A9',500);ctx.restore();ctx.restore();-}-export function sceneInbox(t,global) {- background(global);chrome(1,2);reveal('Meet your new inbox.',102,205,85,t,.02);pill('SEND. RECEIVE. DONE.',1438,177,367);- const p=spring(t/.85);ctx.save();ctx.translate(105+(1-p)*-190,309+(1-p)*420);ctx.translate(710,293);ctx.rotate((1-p)*-.09+.004*Math.sin(t));ctx.scale(.98+.02*p,.98+.02*p);ctx.translate(-710,-293);inbox(t);ctx.restore();- robot(1660,708+180*(1-ease((t-.25)/.7)),.59,global,2);- let arrive=ease((t-.8)/.55);ctx.save();ctx.globalAlpha=arrive*(1-smooth((t-2.9)/.5));ctx.translate(1270+(1-arrive)*480,282-(1-arrive)*120);ctx.rotate((1-arrive)*.25);shadow(.15,40,16);rr(0,0,393,77,19,'#FFF','#D5E2F5');clearShadow();ellipse(40,38,23,23,'#E7F8F0');check(40,38,22,'#1F9E71');text('You’ve got good company.',77,30,18,C.ink,600);text('New message · [email protected]',77,53,14,'#8797B3',420);ctx.restore();- const sent=ease((t-2.15)/.5);ctx.save();ctx.globalAlpha=sent;rr(1200,820+(1-sent)*70,268,63,18,'#155BFF');text('Message sent',1263,852+(1-sent)*70,21,'#FFF',550);check(1234,852+(1-sent)*70,24,'#B0EDFF');ctx.restore();- reveal('Your domain. Every conversation.',107,962,28,t,.85,'#6C7D9B',450);- pill('ONE CLEAN WORKSPACE',1466,926,344);-}-export function teamCard(x,y,address,role,initial,color,t,delay,alias=false) {- let p=spring((t-delay)/.65);if(p<=0)return;ctx.save();ctx.translate(x+(x<800?-120:120)*(1-p),y+40*(1-p));ctx.scale(.93+.07*p,.93+.07*p);ctx.globalAlpha=clamp(p);shadow(.25,45,22);rr(0,0,440,153,25,gradient(0,0,440,153,['#1D3359','#142544']),'#435B83',1.5);clearShadow();- ellipse(53,55,29,29,color);text(initial,53,55,23,'#FFF',650,'center');text(address,100,53,34,'#EDF6FF',580);text('mailflare.co',100,89,18,'#7E9FCF',450);rr(24,113,200,1,0,'#365075');text(role,27,134,15,'#97B5DD',500);ellipse(402,131,5,5,C.green);text(alias?'ALIAS':'ACTIVE',388,132,11,'#7CD3B0',600,'right');ctx.restore();-}-export function wire(x,y,x2,y2,t,delay) {- let p=ease((t-delay)/.75);ctx.save();ctx.globalAlpha=p;ctx.beginPath();ctx.moveTo(x,y);ctx.bezierCurveTo((x+x2)/2,y,(x+x2)/2,y2,x2,y2);ctx.strokeStyle='#3D67A8';ctx.lineWidth=2;ctx.stroke();- const q=(t*.55+delay)%1;let xx=(1-q)**3*x+3*(1-q)**2*q*(x+x2)/2+3*(1-q)*q*q*(x+x2)/2+q**3*x2,yy=(1-q)**3*y+3*(1-q)**2*q*y+3*(1-q)*q*q*y2+q**3*y2;- ctx.shadowColor='#71DDFF';ctx.shadowBlur=18;ellipse(xx,yy,5,5,'#91E6FF');ctx.restore();-}-export function sceneTeam(t,global) {- background(global,true);chrome(1,3,true);reveal('One domain. Your whole team.',960,213,80,t,.03,'#FFF',610,'center');- reveal('Built for individuals, developers, startups, and teams.',960,287,26,t,.18,'#8CA9D5',450,'center');- wire(590,434,745,480,t,.2);wire(590,665,745,490,t,.42);wire(1330,434,1175,480,t,.35);wire(1330,665,1175,490,t,.57);- const p=spring((t-.13)/.7);ctx.save();ctx.translate(960,482);ctx.scale(p,p);shadow(.45,75,20);rr(-215,-54,430,108,27,gradient(-215,-54,215,54,['#3277FF','#0E48D6']),'#669FFF',2);clearShadow();envelope(-157,0,52);text('mailflare.co',-108,1,39,'#FFF',580);check(175,0,23,'#99EDCC');ctx.restore();- teamCard(149,357,'hello@','Primary mailbox','H','#4085DF',t,.15);teamCard(149,588,'support@','Routes to your support team','S','#8D70DE',t,.43,true);- teamCard(1330,357,'hieu@','Owner · full access','H','#269889',t,.29);teamCard(1330,588,'team@','Shared mailbox','T','#CB8755',t,.57);- robot(960,743,.52,global,t>2?1:2,true);- const items=['Domains','Users','Aliases','Permissions'];for(let i=0;i<4;i++){let a=ease((t-.8-i*.14)/.5);ctx.save();ctx.globalAlpha=a;pill(items[i],545+i*211,911+(1-a)*35,194,true,true);ctx.restore();}- reveal('Simple setup. No mail-server maze.',960,995,21,t,1.85,'#B6D1F9',450,'center');- spark(1222,684,17,'#63C7FF',t*.35);spark(705,365,12,'#63C7FF',t*-.45);-}-export function sceneHero(t,global) {- background(global,false,true);chrome(1,4,true);- ctx.save();ctx.globalAlpha=.11;ctx.strokeStyle='#D7EEFF';ctx.lineWidth=1.5;for(let i=0;i<4;i++){ctx.beginPath();ctx.ellipse(950,540,450+i*185,270+i*115,-.18,0,Math.PI*2);ctx.stroke();}ctx.restore();- let phraseOut=1-smooth((t-1.2)/.45);ctx.save();ctx.globalAlpha=phraseOut;reveal('Your domain.',960,427,129,t,.04,'#FFF',630,'center');reveal('Your email.',960,570,129,t,.22,'#A8D8FF',630,'center');ctx.restore();- let p=spring((t-1.22)/.9);if(p>0){ctx.save();ctx.globalAlpha=clamp(p);ctx.translate(930,473+(1-p)*70);ctx.scale(.88+.12*p,.88+.12*p);shadow(.22,60,20);rr(-483,-83,163,163,42,'#FFF');clearShadow();envelope(-402,1,121);text('Mailflare',-273,4,152,'#FFF',660);ctx.restore();}- reveal('Professional email for individuals and teams.',960,652,37,t,1.52,'#D8E8FF',450,'center');- let url=ease((t-1.75)/.55);ctx.save();ctx.globalAlpha=url;shadow(.1,40,15);rr(788,750+(1-url)*40,344,81,40,'#FFFFFF');clearShadow();text('mailflare.co',947,791+(1-url)*40,30,C.blue,600,'center');arrow(1090,791+(1-url)*40,23);ctx.restore();- const rp=ease((t-1.58)/.75);robot(1655+350*(1-rp),750,.51,global,1,true);- for(let i=0;i<6;i++){let a=i*Math.PI/3+global*.16;let dist=340+80*i/6;let xx=960+Math.cos(a)*dist*1.55,yy=515+Math.sin(a)*dist;ctx.save();ctx.globalAlpha=.2*clamp(p);spark(xx,yy,8+i%3*3,'#DDF4FF',a);ctx.restore();}- reveal('YOUR BUSINESS. BEAUTIFULLY ADDRESSED.',960,926,18,t,2.1,'#A5CBFF',550,'center');-}-export function transition(t,at) {- const u=(t-at)/.52;if(u<0||u>1)return;- ctx.save();ctx.translate(lerp(-2500,2600,smooth(u)),0);ctx.transform(1,0,-.3,1,0,0);- const g=gradient(0,0,1100,0,['#2B79FF00','#8BE3FF','#FFFFFF','#195BFF','#175BFF00']);ctx.fillStyle=g;ctx.fillRect(0,-40,1100,H+80);ctx.restore();-}-export function frame(t) {- ctx.resetTransform();ctx.globalAlpha=1;ctx.filter='none';clearShadow();- if(t<3)sceneIntro(t);else if(t<7)sceneInbox(t-3,t);else if(t<11)sceneTeam(t-7,t);else sceneHero(t-11,t);- transition(t,2.75);transition(t,6.75);transition(t,10.75);- const g=ctx.createRadialGradient(960,520,450,960,520,1170);g.addColorStop(0,'#08142F00');g.addColorStop(1,'#08142F13');ctx.fillStyle=g;ctx.fillRect(0,0,W,H);-}-export async function render() {- const out=join(ROOT,'picture.mp4');- const encoder=spawn('ffmpeg',['-y','-loglevel','error','-f','rawvideo','-pixel_format','rgba','-video_size',`${W}x${H}`,'-framerate',`${FPS}`,'-i','pipe:0','-an','-c:v','libx264','-preset','fast','-crf','17','-pix_fmt','yuv420p','-movflags','+faststart',out],{stdio:['pipe','inherit','inherit']});- const sample=createCanvas(W,H),sc=sample.getContext('2d');- for(let n=0;n<15*FPS;n++){- const t=n/FPS;frame(t);- if([120,300,540,840].includes(n))writeFileSync(join(ROOT,`scene-${n}.png`),canvas.toBuffer('image/png'));- if(n===840)writeFileSync(join(ROOT,'poster.png'),canvas.toBuffer('image/png'));- // Two shutter samples keep fast entrances and whip transitions soft at 60 fps.- sc.globalAlpha=1;sc.drawImage(canvas,0,0);frame(t+1/FPS*.38);sc.globalAlpha=.42;sc.drawImage(canvas,0,0);- if(!encoder.stdin.write(Buffer.from(sc.getImageData(0,0,W,H).data)))await once(encoder.stdin,'drain');- if(n%120===0)process.stdout.write(`Rendered ${n}/${15*FPS} frames\n`);- }- encoder.stdin.end();const [code]=await once(encoder,'close');if(code!==0)throw new Error(`Encoder exited ${code}`);process.stdout.write('Picture render complete.\n');-}diff --git a/media/launch-film/voice-1.json b/media/launch-film/voice-1.jsondeleted file mode 100644index 58de216..0000000--- a/media/launch-film/voice-1.json+++ /dev/null@@ -1 +0,0 @@-{"text": "Your business deserves a better address.", "alignment": {"characters": [" ", "Y", "o", "u", "r", " ", "b", "u", "s", "i", "n", "e", "s", "s", " ", "d", "e", "s", "e", "r", "v", "e", "s", " ", "a", " ", "b", "e", "t", "t", "e", "r", " ", "a", "d", "d", "r", "e", "s", "s", ".", " "], "character_start_times_seconds": [0.0, 0.046, 0.104, 0.139, 0.186, 0.244, 0.313, 0.36, 0.43, 0.488, 0.522, 0.557, 0.592, 0.639, 0.685, 0.731, 0.766, 0.836, 0.894, 0.952, 0.998, 1.033, 1.08, 1.115, 1.149, 1.173, 1.231, 1.265, 1.3, 1.347, 1.393, 1.428, 1.463, 1.498, 1.533, 1.579, 1.625, 1.695, 1.765, 1.823, 1.927, 2.043], "character_end_times_seconds": [0.046, 0.104, 0.139, 0.186, 0.244, 0.313, 0.36, 0.43, 0.488, 0.522, 0.557, 0.592, 0.639, 0.685, 0.731, 0.766, 0.836, 0.894, 0.952, 0.998, 1.033, 1.08, 1.115, 1.149, 1.173, 1.231, 1.265, 1.3, 1.347, 1.393, 1.428, 1.463, 1.498, 1.533, 1.579, 1.625, 1.695, 1.765, 1.823, 1.927, 2.043, 2.276]}}\ No newline at end of filediff --git a/media/launch-film/voice-1.mp3 b/media/launch-film/voice-1.mp3deleted file mode 100644index 30bcd4d..0000000Binary files a/media/launch-film/voice-1.mp3 and /dev/null differdiff --git a/media/launch-film/voice-2.json b/media/launch-film/voice-2.jsondeleted file mode 100644index 5c09edc..0000000--- a/media/launch-film/voice-2.json+++ /dev/null@@ -1 +0,0 @@-{"text": "Mailflare gives you professional email on your own domain.", "alignment": {"characters": [" ", "M", "a", "i", "l", "f", "l", "a", "r", "e", " ", "g", "i", "v", "e", "s", " ", "y", "o", "u", " ", "p", "r", "o", "f", "e", "s", "s", "i", "o", "n", "a", "l", " ", "e", "m", "a", "i", "l", " ", "o", "n", " ", "y", "o", "u", "r", " ", "o", "w", "n", " ", "d", "o", "m", "a", "i", "n", ".", " "], "character_start_times_seconds": [0.0, 0.046, 0.104, 0.163, 0.209, 0.29, 0.36, 0.418, 0.488, 0.534, 0.557, 0.592, 0.627, 0.662, 0.685, 0.72, 0.743, 0.766, 0.789, 0.813, 0.836, 0.894, 0.929, 0.964, 1.01, 1.068, 1.126, 1.173, 1.207, 1.242, 1.265, 1.3, 1.335, 1.37, 1.44, 1.544, 1.614, 1.672, 1.718, 1.765, 1.834, 1.881, 1.916, 1.95, 1.974, 1.997, 2.02, 2.055, 2.09, 2.113, 2.148, 2.194, 2.229, 2.264, 2.334, 2.38, 2.426, 2.485, 2.566, 2.635], "character_end_times_seconds": [0.046, 0.104, 0.163, 0.209, 0.29, 0.36, 0.418, 0.488, 0.534, 0.557, 0.592, 0.627, 0.662, 0.685, 0.72, 0.743, 0.766, 0.789, 0.813, 0.836, 0.894, 0.929, 0.964, 1.01, 1.068, 1.126, 1.173, 1.207, 1.242, 1.265, 1.3, 1.335, 1.37, 1.44, 1.544, 1.614, 1.672, 1.718, 1.765, 1.834, 1.881, 1.916, 1.95, 1.974, 1.997, 2.02, 2.055, 2.09, 2.113, 2.148, 2.194, 2.229, 2.264, 2.334, 2.38, 2.426, 2.485, 2.566, 2.635, 2.879]}}\ No newline at end of filediff --git a/media/launch-film/voice-2.mp3 b/media/launch-film/voice-2.mp3deleted file mode 100644index 2cb1678..0000000Binary files a/media/launch-film/voice-2.mp3 and /dev/null differdiff --git a/media/launch-film/voice-3.json b/media/launch-film/voice-3.jsondeleted file mode 100644index c84875b..0000000--- a/media/launch-film/voice-3.json+++ /dev/null@@ -1 +0,0 @@-{"text": "Mailboxes, aliases, your whole team. One place.", "alignment": {"characters": [" ", "M", "a", "i", "l", "b", "o", "x", "e", "s", ",", " ", "a", "l", "i", "a", "s", "e", "s", ",", " ", "y", "o", "u", "r", " ", "w", "h", "o", "l", "e", " ", "t", "e", "a", "m", ".", " ", "O", "n", "e", " ", "p", "l", "a", "c", "e", ".", " "], "character_start_times_seconds": [0.0, 0.058, 0.104, 0.151, 0.209, 0.279, 0.348, 0.453, 0.522, 0.627, 0.662, 0.697, 0.731, 0.836, 0.906, 0.975, 1.08, 1.126, 1.231, 1.265, 1.3, 1.335, 1.37, 1.405, 1.451, 1.498, 1.556, 1.591, 1.637, 1.695, 1.741, 1.776, 1.811, 1.858, 1.927, 1.985, 2.055, 2.125, 2.229, 2.299, 2.368, 2.403, 2.438, 2.485, 2.543, 2.612, 2.67, 2.74, 2.798], "character_end_times_seconds": [0.058, 0.104, 0.151, 0.209, 0.279, 0.348, 0.453, 0.522, 0.627, 0.662, 0.697, 0.731, 0.836, 0.906, 0.975, 1.08, 1.126, 1.231, 1.265, 1.3, 1.335, 1.37, 1.405, 1.451, 1.498, 1.556, 1.591, 1.637, 1.695, 1.741, 1.776, 1.811, 1.858, 1.927, 1.985, 2.055, 2.125, 2.229, 2.299, 2.368, 2.403, 2.438, 2.485, 2.543, 2.612, 2.67, 2.74, 2.798, 3.019]}}\ No newline at end of filediff --git a/media/launch-film/voice-3.mp3 b/media/launch-film/voice-3.mp3deleted file mode 100644index a6f499f..0000000Binary files a/media/launch-film/voice-3.mp3 and /dev/null differdiff --git a/media/launch-film/voice-4.json b/media/launch-film/voice-4.jsondeleted file mode 100644index 145d699..0000000--- a/media/launch-film/voice-4.json+++ /dev/null@@ -1 +0,0 @@-{"text": "Your domain. Your email. Mailflare.", "alignment": {"characters": [" ", "Y", "o", "u", "r", " ", "d", "o", "m", "a", "i", "n", ".", " ", "Y", "o", "u", "r", " ", "e", "m", "a", "i", "l", ".", " ", "M", "a", "i", "l", "f", "l", "a", "r", "e", ".", " "], "character_start_times_seconds": [0.0, 0.058, 0.093, 0.128, 0.163, 0.197, 0.244, 0.279, 0.337, 0.383, 0.43, 0.488, 0.522, 0.546, 0.58, 0.604, 0.627, 0.662, 0.697, 0.743, 0.813, 0.882, 0.929, 0.975, 1.045, 1.115, 1.254, 1.312, 1.358, 1.416, 1.486, 1.556, 1.625, 1.707, 1.741, 1.811, 1.869], "character_end_times_seconds": [0.058, 0.093, 0.128, 0.163, 0.197, 0.244, 0.279, 0.337, 0.383, 0.43, 0.488, 0.522, 0.546, 0.58, 0.604, 0.627, 0.662, 0.697, 0.743, 0.813, 0.882, 0.929, 0.975, 1.045, 1.115, 1.254, 1.312, 1.358, 1.416, 1.486, 1.556, 1.625, 1.707, 1.741, 1.811, 1.869, 2.09]}}\ No newline at end of filediff --git a/media/launch-film/voice-4.mp3 b/media/launch-film/voice-4.mp3deleted file mode 100644index 6149db5..0000000Binary files a/media/launch-film/voice-4.mp3 and /dev/null differdiff --git a/media/mailflare-motion.mp4 b/media/mailflare-motion.mp4deleted file mode 100644index 1158c88..0000000Binary files a/media/mailflare-motion.mp4 and /dev/null differdiff --git a/media/mailflare-showreel.mp4 b/media/mailflare-showreel.mp4deleted file mode 100644index 7da901d..0000000Binary files a/media/mailflare-showreel.mp4 and /dev/null differdiff --git a/media/render.py b/media/render.pydeleted file mode 100644index b9f7bf1..0000000--- a/media/render.py+++ /dev/null@@ -1,4 +0,0 @@-from video_utils import render_video---render_video()diff --git a/media/showreel/assets/character-a.png b/media/showreel/assets/character-a.pngdeleted file mode 100644index 32b4f55..0000000Binary files a/media/showreel/assets/character-a.png and /dev/null differdiff --git a/media/showreel/assets/character-b.png b/media/showreel/assets/character-b.pngdeleted file mode 100644index cac808f..0000000Binary files a/media/showreel/assets/character-b.png and /dev/null differdiff --git a/media/showreel/assets/character-c.png b/media/showreel/assets/character-c.pngdeleted file mode 100644index dc3b86d..0000000Binary files a/media/showreel/assets/character-c.png and /dev/null differdiff --git a/media/showreel/assets/icon.png b/media/showreel/assets/icon.pngdeleted file mode 100644index 63e95e5..0000000Binary files a/media/showreel/assets/icon.png and /dev/null differdiff --git a/media/showreel/film.html b/media/showreel/film.htmldeleted file mode 100644index 36d62b5..0000000--- a/media/showreel/film.html+++ /dev/null@@ -1,669 +0,0 @@-<!DOCTYPE html>-<html lang="en">-<head>-<meta charset="utf-8" />-<title>Mailflare showreel</title>-<style>-@font-face { font-family: Inter; src: url("file:///Users/mac/Library/Fonts/Inter-Regular.ttf"); font-weight: 400; }-@font-face { font-family: Inter; src: url("file:///Users/mac/Library/Fonts/Inter-Medium.ttf"); font-weight: 500; }-@font-face { font-family: Inter; src: url("file:///Users/mac/Library/Fonts/Inter-SemiBold.ttf"); font-weight: 600; }-@font-face { font-family: Inter; src: url("file:///Users/mac/Library/Fonts/Inter-Bold.ttf"); font-weight: 700; }-@font-face { font-family: Inter; src: url("file:///Users/mac/Library/Fonts/Inter-ExtraBold.ttf"); font-weight: 800; }-@font-face { font-family: Inter; src: url("file:///Users/mac/Library/Fonts/Inter-Black.ttf"); font-weight: 900; }--* { box-sizing: border-box; }-html, body {- margin: 0;- width: 1920px;- height: 1080px;- overflow: hidden;- background: #05070c;- font-family: Inter, system-ui, sans-serif;- color: #12151c;-}-#world { position: relative; width: 1920px; height: 1080px; overflow: hidden; }-#bg { position: absolute; inset: 0; }-.orb { position: absolute; border-radius: 50%; filter: blur(30px); }-#grid {- position: absolute; inset: -10%;- background-image:- linear-gradient(rgba(140,170,220,0.05) 1px, transparent 1px),- linear-gradient(90deg, rgba(140,170,220,0.05) 1px, transparent 1px);- background-size: 88px 88px;- mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 72%);-}-#vignette {- position: absolute; inset: 0;- background: radial-gradient(ellipse at 50% 45%, transparent 40%, rgba(0,0,0,0.55) 100%);- pointer-events: none;-}-#stage { position: absolute; inset: 0; transform-origin: 50% 48%; }-.character {- position: absolute;- right: -20px;- bottom: -90px;- height: 1020px;- z-index: 6;- pointer-events: none;- transform-origin: 60% 100%;-}-#shadow {- position: absolute;- right: 180px;- bottom: 18px;- width: 420px;- height: 46px;- border-radius: 50%;- background: rgba(0,0,0,0.45);- filter: blur(16px);- z-index: 4;-}-#copy { position: absolute; left: 108px; top: 168px; width: 1040px; z-index: 7; }-.eyebrow {- display: flex; align-items: center; gap: 14px;- font-size: 15px; font-weight: 600; letter-spacing: 0.22em;- color: #9db7ff; text-transform: uppercase;-}-.eyebrow .rule { width: 42px; height: 1px; background: #7ea2ff; }-#lines { margin-top: 28px; }-.line { display: block; font-weight: 750; font-weight: 800; letter-spacing: -0.045em; color: white; line-height: 0.96; }-.line span { display: inline-block; }-.w { display: inline-block; will-change: transform; }-#l1 { font-size: 92px; }-#l2 { font-size: 92px; margin-top: 6px; }-#l3 { font-size: 40px; margin-top: 22px; color: #b7c3d6; font-weight: 500; letter-spacing: -0.03em; }-.gmail {- position: relative;- display: inline-block;- margin-left: 10px;- padding: 2px 12px 4px;- border-radius: 12px;- background: rgba(255,255,255,0.06);- color: #ffd0d4;- font-weight: 650;- font-weight: 600;-}-.gmail .strike {- position: absolute; left: 8px; right: 8px; top: 54%;- height: 3px; border-radius: 2px; background: #ff5d6c;- transform: scaleX(0); transform-origin: left center;-}-#address {- position: absolute;- left: 108px;- top: 620px;- z-index: 8;- display: flex;- align-items: center;- font-size: 64px;- font-weight: 700;- letter-spacing: -0.04em;- color: white;-}-#address .local { color: white; }-#address .domain { color: #7eb0ff; }-#address .caret {- width: 3px; height: 58px; margin-left: 4px;- background: #7eb0ff; border-radius: 2px;-}-#glowring {- position: absolute;- left: 70px; top: 560px;- width: 820px; height: 180px;- border-radius: 40px;- background: radial-gradient(ellipse at 30% 50%, rgba(47,124,246,0.45), transparent 70%);- filter: blur(18px);- z-index: 3;-}--#window {- position: absolute;- left: 72px;- top: 128px;- width: 1240px;- height: 760px;- border-radius: 28px;- background: #f7f8fb;- box-shadow:- 0 50px 100px rgba(0,0,0,0.45),- 0 0 0 1px rgba(255,255,255,0.14);- overflow: hidden;- z-index: 5;- transform-origin: 50% 60%;-}-.chrome {- height: 54px;- display: flex; align-items: center; gap: 8px;- padding: 0 18px;- background: #fff;- border-bottom: 1px solid #e6eaf1;-}-.dot { width: 11px; height: 11px; border-radius: 50%; }-.chrome .title {- margin-left: 14px;- font-size: 13px; font-weight: 600; color: #8b95a7; letter-spacing: 0.01em;-}-.chip-addr {- margin-left: auto;- font-size: 13px; font-weight: 650; font-weight: 600;- color: #0b57d0;- background: #e8f0fe;- padding: 6px 12px;- border-radius: 999px;-}-.body { display: flex; height: 706px; }-.side {- width: 228px;- background: #f3f6fb;- border-right: 1px solid #e6eaf1;- padding: 18px 12px;-}-.compose {- height: 42px; border-radius: 12px;- background: #0b57d0; color: white;- font-weight: 650; font-weight: 600; font-size: 14px;- display: flex; align-items: center; justify-content: center; gap: 8px;- box-shadow: 0 8px 16px rgba(11,87,208,0.25);-}-.nav { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }-.nav .item {- height: 38px; border-radius: 10px;- display: flex; align-items: center; gap: 10px;- padding: 0 12px;- font-size: 14px; color: #3c4658; font-weight: 500;-}-.nav .item.on { background: #e7f0ff; color: #0b57d0; font-weight: 650; font-weight: 600; }-.nav .count { margin-left: auto; font-size: 12px; font-weight: 700; color: #0b57d0; }-.nav .ico { width: 8px; height: 8px; border-radius: 50%; background: #c5ceda; }-.nav .item.on .ico { background: #0b57d0; }-.main { flex: 1; padding: 16px 18px 18px; position: relative; }-.search {- height: 44px; border-radius: 12px;- background: #eef2f8;- display: flex; align-items: center; gap: 10px;- padding: 0 14px;- color: #5c6b82; font-size: 15px;-}-.search .lens {- width: 14px; height: 14px; border: 2px solid #8aa; border-radius: 50%; position: relative;-}-.search .lens:after {- content: ""; position: absolute; width: 6px; height: 2px; background: #8aa;- right: -5px; bottom: -2px; transform: rotate(40deg);-}-.search b { color: #12151c; font-weight: 600; }-.rows { margin-top: 12px; }-.row {- height: 78px;- display: grid;- grid-template-columns: 44px 1fr auto;- gap: 12px;- align-items: center;- border-bottom: 1px solid #eef1f6;- position: relative;-}-.row .av {- width: 40px; height: 40px; border-radius: 50%;- display: grid; place-items: center;- color: white; font-weight: 700; font-size: 13px;-}-.row .who { font-weight: 700; font-size: 15px; color: #161a22; }-.row .sub { font-size: 13.5px; color: #2a3344; font-weight: 600; margin-top: 1px; }-.row .pre { font-size: 12.5px; color: #8b95a7; margin-top: 2px; }-.row .when { font-size: 12px; color: #8b95a7; font-weight: 500; }-.row .unread {- position: absolute; right: 4px; bottom: 16px;- width: 8px; height: 8px; border-radius: 50%; background: #0b57d0;-}-.row.hot { background: linear-gradient(90deg, #eef4ff, transparent 80%); border-radius: 12px; }-#toast {- position: absolute;- right: 28px; top: 118px;- background: #12151c; color: white;- border-radius: 14px;- padding: 10px 14px;- font-size: 13px;- box-shadow: 0 16px 40px rgba(0,0,0,0.28);- z-index: 6;- display: flex; align-items: center; gap: 8px;-}-#toast i { width: 8px; height: 8px; border-radius: 50%; background: #3d8bff; display: block; }-#cursor {- position: absolute; z-index: 9; width: 18px; height: 18px;-}-#pane-mail, #pane-domain { position: absolute; left: 246px; right: 0; top: 54px; bottom: 0; padding: 16px 18px 18px; }-#pane-domain { padding: 8px 8px 16px; }--.node {- position: absolute;- min-width: 168px;- background: white;- border-radius: 16px;- padding: 12px 14px 12px 12px;- box-shadow: 0 16px 40px rgba(20,40,80,0.12), 0 0 0 1px rgba(20,40,80,0.06);- display: flex; align-items: center; gap: 10px;-}-.node .av { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: white; font-weight: 700; }-.node b { display: block; font-size: 18px; letter-spacing: -0.03em; }-.node em { font-style: normal; font-size: 12px; color: #6d7b90; font-weight: 600; }-#hub {- position: absolute;- left: 430px; top: 250px;- width: 230px; height: 92px;- border-radius: 22px;- background: #0e1420;- color: white;- display: flex; align-items: center; gap: 12px;- padding: 0 16px;- box-shadow: 0 20px 50px rgba(11,87,208,0.35);-}-#hub .mark { width: 46px; height: 46px; }-#hub .name { font-weight: 700; font-size: 16px; letter-spacing: -0.03em; }-#hub .sub { font-size: 12px; color: #9eb0cc; }-#wires { position: absolute; inset: 0; width: 100%; height: 100%; }-.checks { position: absolute; right: 22px; top: 78px; display: flex; flex-direction: column; gap: 8px; }-.check {- width: 176px; height: 36px; border-radius: 10px;- background: white;- box-shadow: 0 0 0 1px #e6eaf1;- display: flex; align-items: center; gap: 8px;- padding: 0 10px;- font-size: 13px; font-weight: 600; color: #1c2430;-}-.check .box {- width: 16px; height: 16px; border-radius: 5px; background: #0b57d0;- color: white; font-size: 11px; display: grid; place-items: center;-}-#pills {- position: absolute; left: 36px; bottom: 18px;- display: flex; gap: 8px;-}-.pill {- padding: 7px 12px; border-radius: 999px;- background: #eef3fb; color: #3c4d6b;- font-size: 12px; font-weight: 650; font-weight: 600;-}-.pill.on { background: #0b57d0; color: white; }-#setup {- position: absolute; left: 36px; top: 22px;- font-size: 12px; font-weight: 650; font-weight: 600;- color: #0b57d0; background: #e7f0fe;- padding: 6px 10px; border-radius: 999px;-}--#finale {- position: absolute; inset: 0;- display: flex; align-items: center; justify-content: center;- z-index: 8;-}-#finale .giant {- position: absolute;- font-size: 112px; font-weight: 800; letter-spacing: -0.05em;- color: white; text-align: center;-}-#lockup {- position: absolute;- display: flex; flex-direction: column; align-items: center;- text-align: center;-}-#lockup .mark { width: 92px; height: 92px; filter: drop-shadow(0 16px 30px rgba(47,124,246,0.45)); }-#lockup h1 {- position: relative;- margin: 22px 0 0;- font-size: 92px; font-weight: 800; letter-spacing: -0.055em;- color: white; line-height: 1;- overflow: hidden;-}-#lockup .tag {- margin-top: 16px;- font-size: 28px; font-weight: 500; color: #c5d0e2; letter-spacing: -0.02em;-}-#lockup .url {- margin-top: 22px;- font-size: 18px; font-weight: 600; color: #dce7ff;- border: 1px solid rgba(255,255,255,0.18);- background: rgba(255,255,255,0.06);- padding: 8px 16px; border-radius: 999px;-}-#sweep {- position: absolute; top: 0; bottom: 0; left: 0; width: 90px;- background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent);- pointer-events: none;-}-#grain {- position: absolute; inset: -20%;- pointer-events: none;- opacity: 0.18;- mix-blend-mode: overlay;- background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");-}-</style>-</head>-<body>-<div id="world">- <div id="bg">- <div class="orb" id="orbA"></div>- <div class="orb" id="orbB"></div>- <div id="grid"></div>- </div>- <div id="stage">- <div id="shadow"></div>- <img class="character" id="charA" alt="" src="assets/character-a.png" />- <img class="character" id="charB" alt="" src="assets/character-b.png" />- <img class="character" id="charC" alt="" src="assets/character-c.png" />-- <div id="copy">- <div class="eyebrow" id="eyebrow"><span class="rule"></span>Mailflare</div>- <div id="lines">- <div class="line" id="l1"></div>- <div class="line" id="l2"></div>- <div class="line" id="l3"></div>- </div>- </div>- <div id="glowring"></div>- <div id="address"><span id="addrText"></span><span class="caret" id="caret"></span></div>-- <div id="window">- <div class="chrome">- <span class="dot" style="background:#ff5f57"></span>- <span class="dot" style="background:#febc2e"></span>- <span class="dot" style="background:#28c840"></span>- <span class="title" id="winTitle">mailflare · inbox</span>- <span class="chip-addr" id="winChip">[email protected]</span>- </div>- <div class="body">- <div class="side">- <div class="compose" id="compose">+ Compose</div>- <div class="nav" id="nav"></div>- </div>- </div>- <div id="pane-mail">- <div class="search" id="searchbox"><span class="lens"></span><span id="query">Search mail</span></div>- <div class="rows" id="rows"></div>- </div>- <div id="pane-domain">- <div id="setup">Live in minutes · no mail server</div>- <svg id="wires"></svg>- <div id="hub">- <img class="mark" src="assets/icon.png" alt="" />- <div><div class="name">mailflare.co</div><div class="sub">Custom domain</div></div>- </div>- <div id="nodes"></div>- <div class="checks" id="checks"></div>- <div id="pills"></div>- </div>- <div id="toast"><i></i><span>New message · [email protected]</span></div>- <div id="cursor"></div>- </div>-- <div id="finale">- <div class="giant" id="g1">Your domain.</div>- <div class="giant" id="g2">Your email.</div>- <div id="lockup">- <img class="mark" id="endMark" src="assets/icon.png" alt="" />- <h1 id="word">Mailflare<div id="sweep"></div></h1>- <div class="tag">Professional email for individuals and teams.</div>- <div class="url">mailflare.co</div>- </div>- </div>- </div>- <div id="vignette"></div>- <div id="grain"></div>-</div>-<script>-const clamp = (v, a, b) => Math.max(a, Math.min(b, v));-const seg = (t, a, b) => clamp((t - a) / (b - a), 0, 1);-const lerp = (a, b, p) => a + (b - a) * p;-const ease = (p) => 1 - Math.pow(1 - clamp(p, 0, 1), 3);-const back = (p) => {- p = clamp(p, 0, 1);- const c1 = 1.35, c3 = c1 + 1;- return 1 + c3 * Math.pow(p - 1, 3) + c1 * Math.pow(p - 1, 2);-};-const L1 = 0.28, L2 = 3.63, L3 = 6.57, L4 = 11.11;--const $ = (id) => document.getElementById(id);--const words = [- ["Your", L1 + 0.094], ["business", L1 + 0.212],- ["deserves", L1 + 0.613], ["better", L1 + 1.061],-];-$("l1").innerHTML = words.slice(0, 2).map(([w, t]) => `<span class="w" data-t="${t}">${w}</span>`).join(" ");-$("l2").innerHTML = words.slice(2).map(([w, t]) => `<span class="w" data-t="${t}">${w}</span>`).join(" ");-$("l3").innerHTML = `- <span class="w" data-t="${L1 + 1.38}">than</span>- <span class="w" data-t="${L1 + 1.521}">an</span>- <span class="gmail w" data-t="${L1 + 1.60}" id="gmail">@gmail.com<i class="strike" id="strike"></i></span>-`;--const nav = [- ["Inbox", "4", true],- ["Starred", "", false],- ["Sent", "", false],- ["Drafts", "2", false],- ["Spam", "", false],- ["Archive", "", false],-];-$("nav").innerHTML = nav.map(([n, c, on]) =>- `<div class="item${on ? " on" : ""}" data-nav="${n}"><span class="ico"></span>${n}${c ? `<span class="count">${c}</span>` : ""}</div>`-).join("");--const messages = [- ["MC", "#5b8def", "Maya Chen", "Product launch tomorrow", "Can we share the final update?", "9:41 AM", true],- ["NL", "#14b8c9", "Northline", "Your domain is connected", "Mail is ready on your domain.", "8:12 AM", false],- ["TP", "#e0a15a", "Theo Park", "One more thing", "Thanks for the thoughtful note.", "Yesterday", false],- ["SN", "#a78bfa", "Studio Notes", "A fresh start for Monday", "Ideas worth opening.", "Mon", false],-];-function rowHTML(m, hot) {- return `<div class="row${hot ? " hot" : ""}">- <div class="av" style="background:${m[1]}">${m[0]}</div>- <div><div class="who">${m[2]}</div><div class="sub">${m[3]}</div><div class="pre">${m[4]}</div></div>- <div class="when">${m[5]}</div>- ${m[6] ? `<span class="unread"></span>` : ""}- </div>`;-}-$("rows").innerHTML = messages.map((m, i) => rowHTML(m, i === 0)).join("");--const nodes = [- ["hello@", "Mailbox", "#0b57d0", "H", 36, 150, L3 + 0.39],- ["support@", "Alias", "#14b8c9", "S", 430, 78, L3 + 1.51],- ["hieu@", "Member", "#e0a15a", "H", 36, 400, L3 + 2.15],- ["team@", "Team", "#7c6cf0", "T", 430, 400, L3 + 3.11],-];-$("nodes").innerHTML = nodes.map((n, i) =>- `<div class="node" id="node${i}" style="left:${n[4]}px;top:${n[5]}px">- <div class="av" style="background:${n[2]}">${n[3]}</div>- <div><b>${n[0]}</b><em>${n[1]}</em></div>- </div>`-).join("");--const checks = ["Users", "Aliases", "Domains", "Permissions"];-$("checks").innerHTML = checks.map((c, i) =>- `<div class="check" id="check${i}"><span class="box">✓</span>${c}</div>`-).join("");-$("pills").innerHTML = ["Individuals", "Startups", "Teams"].map((p, i) =>- `<span class="pill${i === 2 ? " on" : ""}" id="pill${i}">${p}</span>`-).join("");--const ADDR = "[email protected]";-const cursor = $("cursor");-cursor.innerHTML = `<svg width="18" height="18" viewBox="0 0 18 18"><path d="M2 1.5l4.2 13.2 2.2-5.1 5.3-1.2z" fill="#12151c" stroke="#fff" stroke-width="1"/></svg>`;--function show(el, o, tf, blur) {- el.style.opacity = o;- if (tf != null) el.style.transform = tf;- el.style.filter = blur > 0.2 ? `blur(${blur}px)` : "none";-}--function wordPop(el, t) {- const at = Number(el.dataset.t);- const p = back(seg(t, at, at + 0.38));- const o = ease(seg(t, at, at + 0.16));- el.style.opacity = o;- el.style.transform = `translateY(${lerp(28, 0, p)}px)`;- el.style.filter = `blur(${lerp(6, 0, ease(seg(t, at, at + 0.22)))}px)`;-}--window.seek = function (t) {- const bg = `radial-gradient(900px 620px at ${50 + Math.sin(t * 0.7) * 8}% 42%, #17315f 0%, #0a1020 46%, #05070c 100%)`;- $("bg").style.background = bg;- $("orbA").style.cssText = `left:${280 + Math.sin(t) * 30}px;top:${80 + Math.cos(t * 0.8) * 20}px;width:520px;height:520px;background:rgba(47,110,246,${0.28 + 0.06 * Math.sin(t)});`;- $("orbB").style.cssText = `right:80px;bottom:-40px;width:420px;height:420px;background:rgba(20,180,200,0.16);`;- $("grid").style.transform = `translate(${-(t * 18) % 88}px, ${(t * 8) % 88}px)`;-- let camS = lerp(1.05, 1, ease(seg(t, 0, 2.4)));- let camX = 0;- if (t > 3.3 && t < 6.7) camS = lerp(1.02, 1, ease(seg(t, 3.3, 4)));- if (t >= 6.5 && t < 10.9) camS = lerp(1, 1.035, ease(seg(t, 6.5, 7.3)));- if (t >= 10.7) {- const p = ease(seg(t, 10.7, 11.5));- camS = lerp(1.035, 0.98, p);- camS = lerp(camS, 1, ease(seg(t, 11.6, 12.6)));- }- $("stage").style.transform = `translate(${camX}px,0) scale(${camS})`;-- const enter = back(seg(t, 0.08, 0.7));- const poseB = ease(seg(t, 3.35, 3.7));- const poseC = ease(seg(t, 10.85, 11.25));- const charOut = ease(seg(t, 12.15, 12.7));- const bob = Math.sin(t * 2.2) * 6;- const base = `translateY(${lerp(70, bob, enter)}px) scale(${lerp(0.94, 1, enter)})`;- show($("charA"), (1 - poseB) * enter * (1 - charOut), base, (1 - enter) * 10 + poseB * 8);- show($("charB"), poseB * (1 - poseC) * (1 - charOut), `translateX(${lerp(40, 0, poseB)}px) translateY(${bob}px) scale(${lerp(1.04, 0.96, poseB)})`, (1 - poseB) * 8 + poseC * 8);- show($("charC"), poseC * (1 - charOut), `translateY(${lerp(30, bob, poseC)}px) scale(${lerp(0.9, 0.86, poseC)})`, (1 - poseC) * 8);- $("shadow").style.opacity = String(0.55 * enter * (1 - charOut));- $("shadow").style.transform = `scale(${lerp(0.8, 1, enter)})`;-- const copyOut = ease(seg(t, 3.25, 3.7));- $("copy").style.opacity = String((1 - copyOut) * ease(seg(t, 0.15, 0.4)));- $("copy").style.transform = `translateY(${lerp(16, 0, ease(seg(t, 0.15, 0.6)))}px)`;- $("copy").style.filter = copyOut ? `blur(${copyOut * 8}px)` : "none";- document.querySelectorAll(".w").forEach((el) => wordPop(el, t));- const strike = ease(seg(t, L1 + 1.9, L1 + 2.35));- $("strike").style.transform = `scaleX(${strike})`;- $("gmail").style.color = strike > 0.6 ? "#8d97a8" : "#ffd0d4";-- const addrIn = ease(seg(t, 2.28, 2.7));- const addrOut = ease(seg(t, 3.3, 3.65));- const n = Math.round(lerp(0, ADDR.length, ease(seg(t, 2.32, 2.95))));- const typed = ADDR.slice(0, n);- const at = typed.indexOf("@");- $("addrText").innerHTML = at < 0- ? `<span class="local">${typed}</span>`- : `<span class="local">${typed.slice(0, at)}</span><span class="domain">${typed.slice(at)}</span>`;- show($("address"), addrIn * (1 - addrOut), `translateY(${lerp(24, 0, back(seg(t, 2.28, 2.75)))}px)`, addrOut * 6);- $("caret").style.opacity = n < ADDR.length ? String(0.3 + 0.7 * Math.abs(Math.sin(t * 10))) : "0";- $("glowring").style.opacity = String(0.9 * addrIn * (1 - addrOut));-- const winIn = back(seg(t, 3.45, 4.05));- const winOut = ease(seg(t, 10.75, 11.45));- show($("window"), winIn * (1 - winOut), `translateY(${lerp(80, 0, winIn)}px) rotateX(${lerp(14, 0, winIn)}deg) scale(${lerp(0.94, 1, winIn) * lerp(1, 0.72, winOut)})`, winOut * 10);- $("window").style.transformOrigin = "50% 40%";-- const domain = ease(seg(t, 6.5, 6.95));- $("pane-mail").style.opacity = String(1 - domain);- $("pane-mail").style.transform = `translateY(${domain * -12}px)`;- $("pane-domain").style.opacity = String(domain);- $("pane-domain").style.transform = `translateY(${(1 - domain) * 16}px)`;- $("winTitle").textContent = domain > 0.5 ? "mailflare · workspace" : "mailflare · inbox";- $("winChip").style.opacity = String(ease(seg(t, 3.7, 4.0)));-- const q = "is:unread";- const qn = Math.round(lerp(0, q.length, ease(seg(t, 4.15, 5.05))));- $("query").innerHTML = qn === 0 ? "Search mail" : `<b>${q.slice(0, qn)}</b>`;- $("searchbox").style.boxShadow = qn ? "0 0 0 2px rgba(11,87,208,0.55)" : "none";-- const rows = [...$("rows").children];- rows.forEach((row, i) => {- const at = 3.85 + i * 0.12;- const p = back(seg(t, at, at + 0.4));- row.style.opacity = String(ease(seg(t, at, at + 0.2)));- row.style.transform = `translateX(${lerp(36, 0, p)}px)`;- });- const count = $("nav").querySelector('[data-nav="Inbox"] .count');- if (t > 5.15) count.textContent = "5";-- const toastP = ease(seg(t, 5.05, 5.35)) * (1 - ease(seg(t, 6.15, 6.45)));- show($("toast"), toastP, `translateY(${lerp(-16, 0, back(seg(t, 5.05, 5.45)))}px)`, 0);-- const spots = [[250, 250], [430, 210], [560, 150], [300, 360]];- const cursorPhase = t < 4.3 ? 0 : t < 4.9 ? 1 : t < 5.5 ? 2 : 3;- const cp = ease(seg(t, [4.2, 4.55, 5.0, 5.6][cursorPhase], [4.5, 4.9, 5.35, 6.1][cursorPhase]));- const prev = spots[Math.max(0, cursorPhase - 1)];- const next = spots[cursorPhase];- const cx = lerp(prev[0], next[0], cursorPhase === 0 ? 1 : cp);- const cy = lerp(prev[1], next[1], cursorPhase === 0 ? 1 : cp);- $("cursor").style.opacity = String(ease(seg(t, 4.15, 4.4)) * (1 - domain));- $("cursor").style.transform = `translate(${cx}px, ${cy}px)`;-- nodes.forEach((n, i) => {- const p = back(seg(t, n[6], n[6] + 0.45));- const el = $("node" + i);- el.style.opacity = String(ease(seg(t, n[6], n[6] + 0.2)) * domain);- el.style.transform = `translateY(${lerp(22, 0, p)}px) scale(${lerp(0.86, 1, p)})`;- });- const hubP = back(seg(t, L3 + 0.05, L3 + 0.45));- $("hub").style.opacity = String(ease(seg(t, L3 + 0.05, L3 + 0.25)) * domain);- $("hub").style.transform = `scale(${lerp(0.8, 1, hubP)})`;-- const svg = $("wires");- const hub = { x: 545, y: 296 };- const anchors = [[150, 190], [540, 130], [150, 440], [540, 440]];- svg.innerHTML = anchors.map((a, i) => {- const p = ease(seg(t, nodes[i][6], nodes[i][6] + 0.4));- return `<line x1="${hub.x}" y1="${hub.y}" x2="${lerp(hub.x, a[0], p)}" y2="${lerp(hub.y, a[1], p)}" stroke="rgba(11,87,208,0.35)" stroke-width="2" />`;- }).join("");-- checks.forEach((c, i) => {- const at = L3 + 2.45 + i * 0.16;- const p = back(seg(t, at, at + 0.36));- const el = $("check" + i);- el.style.opacity = String(ease(seg(t, at, at + 0.16)));- el.style.transform = `translateX(${lerp(24, 0, p)}px)`;- });- $("setup").style.opacity = String(ease(seg(t, L3 + 0.2, L3 + 0.5)));- ["pill0", "pill1", "pill2"].forEach((id, i) => {- const at = L3 + 3.35 + i * 0.12;- const p = back(seg(t, at, at + 0.34));- const el = $(id);- el.style.opacity = String(ease(seg(t, at, at + 0.16)));- el.style.transform = `translateY(${lerp(10, 0, p)}px)`;- });-- const navItems = [...$("nav").children];- navItems.forEach((item, i) => {- const at = 3.6 + i * 0.06;- const p = back(seg(t, at, at + 0.32));- item.style.opacity = String(ease(seg(t, at, at + 0.16)));- item.style.transform = `translateX(${lerp(-16, 0, p)}px)`;- });- $("compose").style.opacity = String(ease(seg(t, 3.55, 3.8)));- $("compose").style.transform = `scale(${lerp(0.9, 1, back(seg(t, 3.55, 3.95)))})`;-- const g1 = ease(seg(t, 11.2, 11.45)) * (1 - ease(seg(t, 12.05, 12.35)));- const g2 = ease(seg(t, 12.15, 12.4)) * (1 - ease(seg(t, 12.9, 13.15)));- show($("g1"), g1, `translateY(${lerp(30, 0, back(seg(t, 11.2, 11.6)))}px) scale(${lerp(1.08, 1, ease(seg(t, 11.2, 11.7)))})`, (1 - g1) * 8);- show($("g2"), g2, `translateY(${lerp(30, 0, back(seg(t, 12.15, 12.55)))}px)`, (1 - g2) * 8);-- const lock = ease(seg(t, 12.95, 13.25));- const lockP = back(seg(t, 12.95, 13.5));- $("lockup").style.opacity = String(lock);- $("lockup").style.transform = `scale(${lerp(0.92, 1, lockP)})`;- $("endMark").style.transform = `scale(${lerp(0.4, 1, back(seg(t, 12.9, 13.35)))})`;- $("endMark").style.transformOrigin = "50% 50%";- const track = lerp(0.18, -0.055, ease(seg(t, 12.98, 13.45)));- $("word").style.letterSpacing = track + "em";- $("word").style.opacity = String(ease(seg(t, 13.0, 13.28)));- $("lockup").querySelector(".tag").style.opacity = String(ease(seg(t, 13.4, 13.75)));- $("lockup").querySelector(".tag").style.transform = `translateY(${lerp(10, 0, ease(seg(t, 13.4, 13.8)))}px)`;- $("lockup").querySelector(".url").style.opacity = String(ease(seg(t, 13.75, 14.1)));- $("lockup").querySelector(".url").style.transform = `translateY(${lerp(8, 0, ease(seg(t, 13.75, 14.15)))}px)`;- const sweep = seg(t, 13.45, 14.15);- $("sweep").style.opacity = String(sweep > 0 && sweep < 1 ? 0.9 : 0);- $("sweep").style.transform = `translateX(${lerp(-80, 460, sweep)}px)`;-};--window.seek(0);-</script>-</body>-</html>diff --git a/media/showreel/render.mjs b/media/showreel/render.mjsdeleted file mode 100644index 7ae17ba..0000000--- a/media/showreel/render.mjs+++ /dev/null@@ -1,47 +0,0 @@-import { createRequire } from "node:module";-import { mkdirSync } from "node:fs";-import path from "node:path";-import { fileURLToPath } from "node:url";--const require = createRequire("/tmp/showreel-render/package.json");-const puppeteer = require("puppeteer-core");--const dir = path.dirname(fileURLToPath(import.meta.url));-const html = path.join(dir, "film.html");-const chrome = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome";--const arg = process.argv.find((a) => a.startsWith("--times="));-const times = arg- ? arg.slice("--times=".length).split(",").map(Number)- : null;--const outDir = process.argv.find((a) => a.startsWith("--out="))?.slice("--out=".length)- || "/tmp/showreel-frames";-mkdirSync(outDir, { recursive: true });--const browser = await puppeteer.launch({- executablePath: chrome,- headless: "new",- args: ["--hide-scrollbars", "--disable-lcd-text", "--force-color-profile=srgb"],-});-const page = await browser.newPage();-await page.setViewport({ width: 1920, height: 1080, deviceScaleFactor: 1 });-await page.goto("file://" + html, { waitUntil: "load" });-await page.evaluate(() => document.fonts.ready);--const frames = times ?? Array.from({ length: 15 * 30 }, (_, i) => i / 30);-for (let i = 0; i < frames.length; i++) {- const t = frames[i];- await page.evaluate((time) => window.seek(time), t);- const name = times- ? `proof-${String(t).replace(".", "_")}.jpg`- : `f${String(i).padStart(4, "0")}.jpg`;- await page.screenshot({- path: path.join(outDir, name),- type: "jpeg",- quality: 92,- });- if (!times && i % 30 === 0) process.stdout.write(`t=${t.toFixed(2)}\n`);-}-await browser.close();-console.log(outDir);diff --git a/media/video_utils.py b/media/video_utils.pydeleted file mode 100644index f406327..0000000--- a/media/video_utils.py+++ /dev/null@@ -1,386 +0,0 @@-import math-import os-import struct-import subprocess-import tempfile-import wave-from pathlib import Path--from PIL import Image, ImageDraw, ImageFilter, ImageFont---W, H, FPS, DURATION = 1280, 720, 24, 15-ROOT = Path(__file__).resolve().parent.parent-OUT = Path(__file__).resolve().parent / "mailflare-motion.mp4"-BLUE = (38, 112, 246)-NAVY = (9, 25, 55)-INK = (17, 34, 62)-PALE = (244, 248, 255)-FONT = "/System/Library/Fonts/Supplemental/Arial.ttf"-BOLD = "/System/Library/Fonts/Supplemental/Arial Bold.ttf"---def f(size, bold=False):- return ImageFont.truetype(BOLD if bold else FONT, size)---def clamp(x):- return max(0.0, min(1.0, x))---def ease(x):- x = clamp(x)- return 1 - (1 - x) ** 3---def smooth(x):- x = clamp(x)- return x * x * (3 - 2 * x)---def phase(t, start, end):- return ease((t - start) / (end - start))---def alpha(t, start, end, fade=0.28):- return smooth((t - start) / fade) * (1 - smooth((t - end + fade) / fade))---def mix(a, b, p):- return a + (b - a) * p---def rgba(color, a=255):- return (*color, int(255 * clamp(a)))---def text(draw, xy, message, size, color, bold=False, anchor=None, spacing=0):- draw.text(xy, message, font=f(size, bold), fill=color, anchor=anchor, spacing=spacing)---def round_box(draw, box, radius, fill, outline=None, width=1):- draw.rounded_rectangle(tuple(int(v) for v in box), radius=int(radius), fill=fill, outline=outline, width=width)---def shadow_card(size, radius=28, blur=28, opacity=52):- layer = Image.new("RGBA", (size[0] + blur * 4, size[1] + blur * 4))- d = ImageDraw.Draw(layer)- b = blur * 2- d.rounded_rectangle((b, b, b + size[0], b + size[1]), radius, fill=(15, 42, 90, opacity))- return layer.filter(ImageFilter.GaussianBlur(blur))---def glow(img, xy, radius, color, strength=130):- layer = Image.new("RGBA", (W, H))- d = ImageDraw.Draw(layer)- x, y = xy- d.ellipse((x - radius, y - radius, x + radius, y + radius), fill=(*color, strength))- img.alpha_composite(layer.filter(ImageFilter.GaussianBlur(radius * 0.85)))---def envelope(draw, cx, cy, scale, color=BLUE, open_amount=0):- w, h = 88 * scale, 60 * scale- x, y = cx - w / 2, cy - h / 2- draw.rounded_rectangle((x, y, x + w, y + h), 9 * scale, fill=color)- draw.polygon([(x + 4 * scale, y + 5 * scale), (cx, y + 34 * scale), (x + w - 4 * scale, y + 5 * scale)], fill=(221, 244, 255))- draw.polygon([(x + 4 * scale, y + h - 5 * scale), (cx, y + 29 * scale), (x + w - 4 * scale, y + h - 5 * scale)], fill=(15, 167, 224))- if open_amount:- draw.polygon([(x + 4 * scale, y + 5 * scale), (cx, y - 23 * scale * open_amount), (x + w - 4 * scale, y + 5 * scale)], fill=(239, 252, 255))---def base_dark():- im = Image.new("RGBA", (W, H))- d = ImageDraw.Draw(im)- for y in range(H):- p = y / H- d.line((0, y, W, y), fill=(int(8 + p * 3), int(20 + p * 17), int(49 + p * 29), 255))- return im---def base_light():- im = Image.new("RGBA", (W, H))- d = ImageDraw.Draw(im)- for y in range(H):- p = y / H- d.line((0, y, W, y), fill=(int(248 - 6 * p), int(251 - 5 * p), 255, 255))- return im---def draw_brand(draw, x, y, size=28, dark=False):- envelope(draw, x + size / 2, y + size / 2, size / 88)- text(draw, (x + size + 12, y + size / 2), "mailflare", int(size * 0.72), (255, 255, 255) if dark else INK, True, "lm")---def draw_ui(t):- im = Image.new("RGBA", (936, 532), (255, 255, 255, 255))- d = ImageDraw.Draw(im)- round_box(d, (0, 0, 935, 531), 24, (255, 255, 255), (219, 230, 246), 2)- round_box(d, (0, 0, 935, 53), 24, (247, 250, 255))- d.rectangle((0, 30, 935, 53), fill=(247, 250, 255))- d.line((0, 53, 935, 53), fill=(229, 235, 245), width=1)- for i, c in enumerate(((255, 111, 111), (255, 192, 86), (66, 207, 128))):- d.ellipse((21 + i * 18, 20, 30 + i * 18, 29), fill=c)- text(d, (468, 28), "mailflare / inbox", 14, (117, 133, 159), True, "mm")- d.rectangle((0, 54, 187, 531), fill=(247, 249, 254))- draw_brand(d, 19, 75, 25)- round_box(d, (20, 126, 163, 169), 18, (220, 234, 255))- text(d, (48, 147), "+ Compose", 15, (29, 81, 161), True, "lm")- nav = [("Inbox", "18"), ("Starred", ""), ("Snoozed", ""), ("Sent", ""), ("Drafts", "4")]- for i, (label, count) in enumerate(nav):- yy = 196 + i * 46- if i == 0:- round_box(d, (12, yy - 17, 176, yy + 19), 15, (225, 237, 255))- d.ellipse((30, yy - 4, 38, yy + 4), fill=BLUE if i == 0 else (157, 169, 189))- text(d, (50, yy), label, 15, (26, 52, 92) if i == 0 else (107, 121, 145), i == 0, "lm")- if count:- text(d, (151, yy), count, 13, BLUE, True, "mm")- round_box(d, (211, 75, 902, 122), 22, (238, 244, 253))- d.ellipse((232, 90, 248, 106), outline=(107, 132, 170), width=2)- d.line((246, 104, 253, 111), fill=(107, 132, 170), width=2)- text(d, (266, 98), "Search mail", 15, (132, 149, 174), False, "lm")- text(d, (221, 153), "Priority inbox", 24, INK, True, "lm")- text(d, (878, 153), "1–4 of 18", 12, (132, 149, 174), False, "rm")- messages = [- ("M", "Maya Chen", "Product launch tomorrow", "Can we share the final update?", "9:41 AM"),- ("N", "Northline", "Your domain is connected", "Mail is ready for [email protected]", "8:52 AM"),- ("T", "Theo Park", "One more thing", "Thanks for the thoughtful note!", "Yesterday"),- ("S", "Studio Notes", "A fresh start for Monday", "Ideas worth opening.", "Mon"),- ]- for i, (initial, sender, subject, preview, time) in enumerate(messages):- yy = 188 + i * 82- if i == 0 and t > 3.65:- round_box(d, (201, yy - 1, 925, yy + 79), 14, (237, 245, 255))- d.line((203, yy + 79, 925, yy + 79), fill=(236, 240, 247))- d.ellipse((221, yy + 14, 259, yy + 52), fill=[(124, 157, 239), (75, 199, 221), (232, 172, 111), (174, 145, 230)][i])- text(d, (240, yy + 33), initial, 15, (255, 255, 255), True, "mm")- text(d, (273, yy + 15), sender, 16, INK, True)- text(d, (273, yy + 39), subject, 14, (50, 65, 90), True)- text(d, (273, yy + 60), preview, 12, (143, 156, 177))- text(d, (882, yy + 17), time, 12, (130, 145, 166), False, "ra")- if i == 0:- d.ellipse((903, yy + 43, 912, yy + 52), fill=BLUE)- return im---def feature_card(im, box, title, sub, symbol, amount):- x, y, w, h = box- lift = 24 * (1 - ease(amount))- y += lift- d = ImageDraw.Draw(im)- round_box(d, (x, y, x + w, y + h), 26, rgba((255, 255, 255), amount), rgba((161, 196, 251), amount * 0.45), 2)- round_box(d, (x + 20, y + 20, x + 68, y + 68), 14, rgba((222, 237, 255), amount))- text(d, (x + 44, y + 45), symbol, 25, rgba(BLUE, amount), True, "mm")- text(d, (x + 20, y + 94), title, 19, rgba(INK, amount), True)- text(d, (x + 20, y + 124), sub, 13, rgba((113, 135, 166), amount))---def render_frame(t, dark, light, ui, logo):- if t < 2.65:- im = dark.copy()- d = ImageDraw.Draw(im)- glow(im, (920, 210), 240, (33, 105, 240), 100)- glow(im, (180, 660), 180, (15, 184, 219), 65)- d = ImageDraw.Draw(im)- for i in range(18):- x = (i * 139 + t * (34 + i % 4 * 13)) % (W + 100) - 50- y = (i * 107 + math.sin(t * 1.8 + i) * 13) % H- d.ellipse((x, y, x + 2, y + 2), fill=(98, 166, 251, 80))- p = phase(t, 0.08, 0.72)- x = mix(1400, 880, p)- y = mix(-90, 335, p) + math.sin(t * 3.3) * 7- d.ellipse((x - 152, y - 152, x + 152, y + 152), outline=(65, 141, 241, 95), width=2)- d.ellipse((x - 112, y - 112, x + 112, y + 112), outline=(65, 141, 241, 75), width=2)- envelope(d, x, y, 2.25, (28, 146, 232), phase(t, 0.65, 1.15))- for k in range(3):- xx = x + 170 + k * 35 + (1 - p) * 180- d.line((xx, y - 30 + k * 30, xx + 75, y - 30 + k * 30), fill=(39, 141, 252, int(140 * p)), width=3)- text(d, (85 - 60 * (1 - phase(t, 0.1, 0.5)), 128), "INTRODUCING MAILFLARE", 17, (108, 185, 255), True)- reveal = int(len("Email, with momentum.") * phase(t, 0.25, 1.48))- text(d, (80, 204), "Email, with", 69, (255, 255, 255), True)- text(d, (80, 292), "momentum."[:max(0, reveal - 12)], 74, (91, 177, 255), True)- line_p = phase(t, 1.23, 1.8)- d.rounded_rectangle((83, 403, 83 + 550 * line_p, 408), radius=2, fill=(79, 173, 254))- text(d, (85, 450), "A familiar inbox. A more capable workflow.", 24, (174, 199, 230))- if t > 2.25:- im = crossfade(im, light, phase(t, 2.25, 2.65))- return im-- if t < 5.65:- im = light.copy()- d = ImageDraw.Draw(im)- draw_brand(d, 57, 36, 33)- text(d, (1222, 56), "THE INBOX", 13, BLUE, True, "rm")- text(d, (640, 114), "Feels like home.", 48, INK, True, "mm")- text(d, (640, 160), "Everything in its place. Every message in reach.", 20, (109, 133, 164), False, "mm")- p = phase(t, 2.66, 3.25)- s = mix(0.89, 1.0, p)- panel = ui.resize((int(ui.width * s), int(ui.height * s)), Image.Resampling.LANCZOS)- px = int((W - panel.width) / 2)- py = int(206 + 72 * (1 - p))- sh = shadow_card((panel.width, panel.height), 25, 25, 50)- im.alpha_composite(sh, (px - 50, py - 43))- im.alpha_composite(panel, (px, py))- d = ImageDraw.Draw(im)- if t > 4.35:- q = phase(t, 4.35, 4.85)- x = 945 + 180 * (1 - q)- y = 548- round_box(d, (x, y, x + 264, y + 71), 20, (37, 112, 246))- text(d, (x + 22, y + 24), "✦ Mail, organized", 19, (255, 255, 255), True)- text(d, (x + 22, y + 49), "Search · stars · snooze", 12, (219, 235, 255))- return im-- if t < 9.25:- im = light.copy()- d = ImageDraw.Draw(im)- draw_brand(d, 57, 36, 33)- text(d, (1222, 56), "PEOPLE + AGENTS", 13, BLUE, True, "rm")- text(d, (640, 116), "Human touch. Agent speed.", 47, INK, True, "mm")- text(d, (640, 158), "A thoughtful reply starts here.", 19, (108, 133, 164), False, "mm")- p = phase(t, 5.7, 6.22)- y = 226 + 50 * (1 - p)- sh = shadow_card((475, 350), 30, 26, 43)- im.alpha_composite(sh, (55, int(y) - 45))- round_box(d, (110, y, 585, y + 350), 29, (255, 255, 255), (224, 233, 246), 2)- d.ellipse((138, y + 31, 184, y + 77), fill=(122, 155, 239))- text(d, (161, y + 54), "M", 19, (255, 255, 255), True, "mm")- text(d, (198, y + 32), "Maya Chen", 19, INK, True)- text(d, (198, y + 57), "To: [email protected]", 13, (132, 151, 178))- d.line((139, y + 97, 551, y + 97), fill=(228, 235, 245), width=2)- text(d, (140, y + 128), "Product launch tomorrow", 23, INK, True)- text(d, (140, y + 179), "Hi team, can we share the final", 17, (76, 96, 126))- text(d, (140, y + 208), "update with everyone tomorrow?", 17, (76, 96, 126))- text(d, (140, y + 251), "Thanks, Maya", 17, (76, 96, 126))- d.line((570, y + 170, 685, y + 170), fill=(66, 142, 252), width=4)- d.polygon([(685, y + 170), (674, y + 162), (674, y + 178)], fill=(66, 142, 252))- ap = phase(t, 6.45, 7.0)- ax = 695 + 90 * (1 - ap)- round_box(d, (ax, y, ax + 475, y + 350), 29, (255, 255, 255), (207, 225, 249), 2)- round_box(d, (ax + 24, y + 24, ax + 78, y + 78), 16, (225, 237, 255))- text(d, (ax + 51, y + 51), "✦", 28, BLUE, True, "mm")- text(d, (ax + 93, y + 33), "Mailflare assistant", 18, INK, True)- text(d, (ax + 93, y + 59), "Working with your inbox", 13, (126, 147, 176))- d.line((ax + 24, y + 99, ax + 450, y + 99), fill=(230, 238, 249), width=2)- text(d, (ax + 27, y + 125), "Draft a warm reply to Maya", 18, (53, 78, 113), True)- q = phase(t, 7.06, 7.62)- round_box(d, (ax + 24, y + 168, ax + 450, y + 276), 18, (239, 246, 255))- text(d, (ax + 45, y + 191), "DRAFT READY", 12, BLUE, True)- text(d, (ax + 45, y + 221), "Absolutely, Maya — the update", 17, INK)- text(d, (ax + 45, y + 247), "is ready to share tomorrow…", 17, INK)- if q > 0:- round_box(d, (ax + 24, y + 292, ax + 249, y + 329), 17, rgba(BLUE, q))- text(d, (ax + 136, y + 311), "Review to send →", 15, rgba((255, 255, 255), q), True, "mm")- if t > 8.08:- ring = (t - 8.08) * 80- d.ellipse((ax + 136 - ring, y + 311 - ring, ax + 136 + ring, y + 311 + ring), outline=(38, 112, 246, max(0, int(145 - ring * 2))), width=3)- text(d, (640, 643), "The agent prepares. You approve.", 20, (84, 111, 148), True, "mm")- if t > 8.95:- im = crossfade(im, dark, phase(t, 8.95, 9.25))- return im-- if t < 12.3:- im = dark.copy()- glow(im, (662, 330), 210, (23, 99, 246), 72)- d = ImageDraw.Draw(im)- draw_brand(d, 57, 36, 33, True)- text(d, (1222, 56), "YOUR WORKFLOW", 13, (107, 179, 255), True, "rm")- text(d, (640, 130), "One home for every address.", 47, (255, 255, 255), True, "mm")- text(d, (640, 177), "Built around your domain. Ready for your tools.", 19, (164, 191, 226), False, "mm")- pp = [phase(t, 9.5 + i * 0.17, 10.07 + i * 0.17) for i in range(4)]- positions = [(114, 280), (383, 318), (652, 280), (921, 318)]- cards = [- ("Custom domains", "Your identity, everywhere", "@"),- ("Smart routing", "Mail lands where it should", "↗"),- ("API + webhooks", "Connect your stack", "⌘"),- ("Agent access", "MCP-ready workflows", "✦"),- ]- for i, (x, y) in enumerate(positions):- feature_card(im, (x, y, 245, 205), *cards[i], pp[i])- d = ImageDraw.Draw(im)- p = phase(t, 11.35, 11.8)- round_box(d, (418, 599, 862, 645), 22, rgba((30, 75, 139), p))- text(d, (640, 622), "Self-hosted • Cloudflare-powered", 17, rgba((194, 223, 252), p), True, "mm")- if t > 12.0:- blue = Image.new("RGBA", (W, H), (29, 103, 236, 255))- im = crossfade(im, blue, phase(t, 12.0, 12.3))- return im-- im = Image.new("RGBA", (W, H), (29, 103, 236, 255))- glow(im, (640, 330), 245, (90, 184, 255), 50)- d = ImageDraw.Draw(im)- for i in range(28):- a = i * 2 * math.pi / 28 + t * 0.18- r = 320 + 13 * math.sin(t * 2 + i)- x = 640 + math.cos(a) * r- y = 333 + math.sin(a) * r- d.ellipse((x - 2, y - 2, x + 2, y + 2), fill=(135, 202, 255, 92))- p = phase(t, 12.42, 13.03)- scale = mix(0.72, 1.0, p) + 0.018 * math.sin(t * 3)- icon = logo.resize((int(120 * scale), int(120 * scale)), Image.Resampling.LANCZOS)- im.alpha_composite(icon, (int(640 - icon.width / 2), int(187 - icon.height / 2)))- d = ImageDraw.Draw(im)- text(d, (640, 322 + 38 * (1 - p)), "mailflare", 81, (255, 255, 255), True, "mm")- q = phase(t, 13.1, 13.75)- text(d, (640, 416), "Email for humans + agents.", 27, rgba((225, 241, 255), q), False, "mm")- d.rounded_rectangle((640 - 88 * q, 470, 640 + 88 * q, 474), radius=2, fill=rgba((170, 227, 255), q))- text(d, (640, 526), "YOUR MAIL. YOUR MOMENTUM.", 15, rgba((202, 231, 255), phase(t, 13.7, 14.25)), True, "mm")- return im---def crossfade(a, b, p):- return Image.blend(a, b, clamp(p))---def make_audio(path):- rate = 44100- beats = (0.14, 0.72, 1.34, 2.65, 3.45, 4.38, 5.68, 6.54, 7.45, 8.12, 9.26, 9.78, 10.26, 10.75, 11.25, 12.34, 13.15)- with wave.open(path, "wb") as wav:- wav.setnchannels(1)- wav.setsampwidth(2)- wav.setframerate(rate)- chunk = bytearray()- for i in range(rate * DURATION):- t = i / rate- section = 0.5 + 0.5 * math.sin(t * math.pi / DURATION)- pad = (math.sin(2 * math.pi * 110 * t) + 0.53 * math.sin(2 * math.pi * 164.81 * t) + 0.31 * math.sin(2 * math.pi * 220 * t)) * 0.035 * section- rhythm = 0.0- for b in beats:- dt = t - b- if 0 <= dt < 0.28:- rhythm += math.sin(2 * math.pi * (108 - 55 * dt) * dt) * math.exp(-24 * dt) * 0.18- if 0 <= dt < 0.10:- rhythm += math.sin(2 * math.pi * 920 * dt) * math.exp(-48 * dt) * 0.024- shimmer = math.sin(2 * math.pi * 440 * t) * math.sin(2 * math.pi * 0.7 * t) * 0.009- sample = max(-1, min(1, pad + rhythm + shimmer))- chunk += struct.pack("<h", int(sample * 32767))- if len(chunk) > 65536:- wav.writeframes(chunk)- chunk.clear()- if chunk:- wav.writeframes(chunk)---def render_video():- dark, light = base_dark(), base_light()- ui = draw_ui(4.0)- logo = Image.open(ROOT / "public/icon-96.png").convert("RGBA")- with tempfile.TemporaryDirectory() as tmp:- silent = os.path.join(tmp, "silent.mp4")- audio = os.path.join(tmp, "sound.wav")- encoder = subprocess.Popen([- "ffmpeg", "-y", "-loglevel", "error", "-f", "rawvideo", "-pix_fmt", "rgb24",- "-s", f"{W}x{H}", "-r", str(FPS), "-i", "-", "-an", "-c:v", "libx264",- "-preset", "medium", "-crf", "17", "-pix_fmt", "yuv420p", "-movflags", "+faststart", silent- ], stdin=subprocess.PIPE)- for n in range(FPS * DURATION):- frame = render_frame(n / FPS, dark, light, ui, logo).convert("RGB")- encoder.stdin.write(frame.tobytes())- encoder.stdin.close()- encoder.wait()- make_audio(audio)- subprocess.run([- "ffmpeg", "-y", "-loglevel", "error", "-i", silent, "-i", audio,- "-c:v", "copy", "-c:a", "aac", "-b:a", "192k", "-t", str(DURATION),- "-movflags", "+faststart", str(OUT)- ], check=True)- print(OUT)