11import { interpolate , spring , useCurrentFrame , useVideoConfig } from "remotion" ;
2- import { COLORS } from "../tokens" ;
2+ import { COLORS , FONT , FONT_MONO } from "../tokens" ;
33
44const HARNESSES = [ "Claude Code" , "Cursor" , "Windsurf" , "OpenCode" , "OpenClient" , "Hermes" , "Python" ] ;
5- const LAYERS = [ "memory/" , "skills/" , "protocols/" ] ;
5+ const BRAIN_LAYERS = [
6+ { path : "memory/" , color : COLORS . orange } ,
7+ { path : "skills/" , color : COLORS . blue } ,
8+ { path : "protocols/" , color : COLORS . green } ,
9+ { path : "tools/" , color : COLORS . purple } ,
10+ ] ;
611
7- const HarnessItem : React . FC < { label : string ; delay : number } > = ( { label, delay } ) => {
12+ const Pill : React . FC < { label : string ; delay : number } > = ( { label, delay } ) => {
813 const frame = useCurrentFrame ( ) ;
914 const { fps } = useVideoConfig ( ) ;
10- const sp = spring ( { fps, frame : Math . max ( 0 , frame - delay ) , config : { damping : 12 } } ) ;
11- const op = interpolate ( frame , [ delay , delay + 18 ] , [ 0 , 1 ] , { extrapolateRight : "clamp" } ) ;
15+ const sp = spring ( { fps, frame : Math . max ( 0 , frame - delay ) , config : { damping : 20 , stiffness : 100 } } ) ;
16+ const op = interpolate ( frame , [ delay , delay + 15 ] , [ 0 , 1 ] , { extrapolateRight : "clamp" } ) ;
1217 return (
1318 < div style = { {
14- background : COLORS . harness , border : "1px solid #334155" , borderRadius : 6 ,
15- padding : "7px 18px" , color : COLORS . harnessText , fontSize : 15 ,
16- opacity : op , transform : `translateX(${ ( 1 - sp ) * - 50 } px)` ,
19+ background : COLORS . surface , border : `1px solid ${ COLORS . border } ` ,
20+ borderRadius : 10 , padding : "9px 22px" , color : COLORS . text , fontSize : 15 ,
21+ fontFamily : FONT , fontWeight : 400 ,
22+ opacity : op , transform : `translateX(${ ( 1 - sp ) * - 36 } px)` ,
1723 } } >
1824 { label }
1925 </ div >
@@ -23,38 +29,50 @@ const HarnessItem: React.FC<{ label: string; delay: number }> = ({ label, delay
2329export const Architecture : React . FC = ( ) => {
2430 const frame = useCurrentFrame ( ) ;
2531 const { fps } = useVideoConfig ( ) ;
26- const brainSp = spring ( { fps, frame, config : { damping : 10 , stiffness : 70 } } ) ;
32+ const brainSp = spring ( { fps, frame : Math . max ( 0 , frame - 20 ) , config : { damping : 20 , stiffness : 80 } } ) ;
2733
2834 return (
2935 < div style = { {
3036 background : COLORS . bg , width : "100%" , height : "100%" ,
3137 display : "flex" , alignItems : "center" , justifyContent : "center" ,
32- fontFamily : "'Courier New', monospace" , gap : 60 ,
38+ fontFamily : FONT , gap : 48 ,
3339 } } >
34- < div style = { { display : "flex" , flexDirection : "column" , gap : 7 } } >
35- { HARNESSES . map ( ( h , i ) => < HarnessItem key = { h } label = { h } delay = { i * 14 } /> ) }
40+ { /* Harness column */ }
41+ < div style = { { display : "flex" , flexDirection : "column" , gap : 8 } } >
42+ { HARNESSES . map ( ( h , i ) => < Pill key = { h } label = { h } delay = { i * 13 } /> ) }
3643 </ div >
3744
38- < div style = { { display : "flex" , flexDirection : "column" , gap : 7 , paddingTop : 2 } } >
45+ { /* Arrow column */ }
46+ < div style = { { display : "flex" , flexDirection : "column" , gap : 8 } } >
3947 { HARNESSES . map ( ( _ , i ) => {
40- const op = interpolate ( frame , [ i * 14 + 25 , i * 14 + 45 ] , [ 0 , 1 ] , { extrapolateRight : "clamp" } ) ;
41- return < div key = { i } style = { { color : COLORS . accent , fontSize : 22 , opacity : op , lineHeight : "31px" } } > →</ div > ;
48+ const op = interpolate ( frame , [ i * 13 + 22 , i * 13 + 38 ] , [ 0 , 1 ] , { extrapolateRight : "clamp" } ) ;
49+ return (
50+ < div key = { i } style = { { color : COLORS . blue , fontSize : 16 , opacity : op , lineHeight : "38px" , letterSpacing : 2 } } >
51+ ——›
52+ </ div >
53+ ) ;
4254 } ) }
4355 </ div >
4456
57+ { /* Brain box */ }
4558 < div style = { {
46- background : COLORS . brain , border : `2px solid ${ COLORS . border } ` , borderRadius : 14 ,
47- padding : "36px 52px" , textAlign : "center" ,
48- opacity : brainSp , transform : `scale(${ interpolate ( brainSp , [ 0 , 1 ] , [ 0.6 , 1 ] ) } )` ,
59+ background : COLORS . surface , border : `1px solid ${ COLORS . borderBright } ` ,
60+ borderRadius : 20 , padding : "36px 48px" , textAlign : "left" , minWidth : 220 ,
61+ opacity : brainSp , transform : `scale(${ interpolate ( brainSp , [ 0 , 1 ] , [ 0.92 , 1 ] ) } )` ,
62+ boxShadow : `0 0 60px rgba(10,132,255,${ 0.12 * brainSp } )` ,
4963 } } >
50- < div style = { { fontSize : 26 , fontWeight : 700 , color : COLORS . accentLight , marginBottom : 22 } } >
64+ < div style = { { fontSize : 13 , color : COLORS . textTertiary , letterSpacing : 2 , marginBottom : 18 } } >
65+ PORTABLE BRAIN
66+ </ div >
67+ < div style = { { fontSize : 22 , fontWeight : 300 , color : COLORS . text , fontFamily : FONT_MONO , marginBottom : 22 } } >
5168 .agent/
5269 </ div >
53- { LAYERS . map ( ( l , i ) => {
54- const op = interpolate ( frame , [ 55 + i * 22 , 75 + i * 22 ] , [ 0 , 1 ] , { extrapolateRight : "clamp" } ) ;
70+ { BRAIN_LAYERS . map ( ( l , i ) => {
71+ const op = interpolate ( frame , [ 60 + i * 18 , 80 + i * 18 ] , [ 0 , 1 ] , { extrapolateRight : "clamp" } ) ;
5572 return (
56- < div key = { l } style = { { color : COLORS . muted , fontSize : 17 , marginTop : 10 , opacity : op } } >
57- { l }
73+ < div key = { l . path } style = { { display : "flex" , alignItems : "center" , gap : 10 , marginTop : 10 , opacity : op } } >
74+ < div style = { { width : 6 , height : 6 , borderRadius : "50%" , background : l . color , flexShrink : 0 } } />
75+ < div style = { { fontSize : 15 , color : COLORS . textSecondary , fontFamily : FONT_MONO } } > { l . path } </ div >
5876 </ div >
5977 ) ;
6078 } ) }
0 commit comments