Brand Guidelines
An independent 17.9-second identity film with a geometric mark, sliding palette, kinetic type specimens, and original object photography.
Source
components/kuchi/templates/brand-guidelines/assets.ts
1// Original still-life photographs, hosted on the Kuchi media CDN.2// Original AI-generated still-life photographs; no source-video assets.3export const brandGuidelinesMedia = {4 ceramics:5 "https://kuchi-media.kalarislabs.com/components/templates/brand-guidelines-ceramics.jpg",6 materials:7 "https://kuchi-media.kalarislabs.com/components/templates/brand-guidelines-materials.jpg",8 chair:9 "https://kuchi-media.kalarislabs.com/components/templates/brand-guidelines-chair.jpg",10};
components/kuchi/templates/brand-guidelines/content.ts
1import { brandGuidelinesMedia } from "./assets";23export const brandGuidelinesTheme = {4 ink: "#242321",5 accent: "#A64B38",6 stone: "#D6CFC4",7 paper: "#F5F1E9",8};910export const brandGuidelinesContent = {11 brandName: "Form Study",12 openingTagline: "Made with purpose.",13 guidelinesLabel: "Brand guidelines",14 collageTitle: "Objects for everyday living.",15 collectionLabel: "Material studies / No. 01",16 footer: "A fictional identity. Made to be yours.",17};1819export const brandGuidelinesPhrases = [20 "Material matters.",21 "Keep it simple.",22 "Find your form.",23 "Quiet by design.",24 "Make space.",25 "Feel the texture.",26 "Shape the everyday.",27 "Made with purpose.",28];29export const brandGuidelinesClosingWords = ["Make", "Ideas", "Real."];3031export type BrandGuidelinesContent = typeof brandGuidelinesContent;32export type BrandGuidelinesTheme = typeof brandGuidelinesTheme;33export type BrandGuidelinesPhotos = typeof brandGuidelinesMedia;34export type BrandGuidelinesProps = {35 brandName?: string;36 accentColor?: string;37 content?: Partial<BrandGuidelinesContent>;38 theme?: Partial<BrandGuidelinesTheme>;39 /** Eight slots: two typed specimens, followed by six quick style cuts. */40 phrases?: string[];41 /** Three individually animated closing words. */42 closingWords?: string[];43 photos?: Partial<BrandGuidelinesPhotos>;44 /** A transparent mark suitable for both light and dark backgrounds. */45 logoSrc?: string;46 audioSrc?: string;47 volume?: number;48 reducedMotion?: boolean;49};5051function withDefaults<T extends Record<string, string>>(52 defaults: T,53 overrides?: Partial<T>,54): T {55 return Object.fromEntries(56 Object.entries(defaults).map(([key, value]) => [57 key,58 overrides?.[key]?.trim() || value,59 ]),60 ) as T;61}6263export function resolveBrandGuidelinesProps(props: BrandGuidelinesProps) {64 const content = withDefaults(brandGuidelinesContent, props.content);65 const theme = withDefaults(brandGuidelinesTheme, props.theme);66 if (props.brandName?.trim()) content.brandName = props.brandName.trim();67 if (props.accentColor?.trim()) theme.accent = props.accentColor.trim();68 return {69 content,70 theme,71 phrases: brandGuidelinesPhrases.map(72 (text, i) => props.phrases?.[i]?.trim() || text,73 ),74 closingWords: brandGuidelinesClosingWords.map(75 (text, i) => props.closingWords?.[i]?.trim() || text,76 ),77 photos: withDefaults(brandGuidelinesMedia, props.photos),78 logoSrc: props.logoSrc?.trim() || undefined,79 reducedMotion: props.reducedMotion ?? false,80 };81}8283export type BrandGuidelinesScene = ReturnType<84 typeof resolveBrandGuidelinesProps85>;86export type SceneProps = { scene: BrandGuidelinesScene; frame: number };
components/kuchi/templates/brand-guidelines/motion.ts
1import { Easing, interpolate } from "remotion";23export const BRAND_GUIDELINES_FPS = 60;4export const BRAND_GUIDELINES_FRAMES = 1072;5export const BRAND_GUIDELINES_WIDTH = 1920;6export const BRAND_GUIDELINES_HEIGHT = 1080;78// Half-open intervals on the 60 fps picture clock. Overlap preserves the pushes.9export const brandGuidelinesTimeline = [10 { name: "Identity", from: 0, to: 118 },11 { name: "Palette", from: 118, to: 326 },12 { name: "Typography", from: 294, to: 806 },13 { name: "Object collage", from: 614, to: 806 },14 { name: "Closing identity", from: 806, to: 1072 },15] as const;1617export const atFps = (referenceFrame: number, fps: number) =>18 Math.round((referenceFrame / BRAND_GUIDELINES_FPS) * fps);1920export const progress = (frame: number, from: number, to: number) =>21 Math.max(0, Math.min(1, (frame - from) / (to - from)));2223export function slide(frame: number, from: number, to: number) {24 return interpolate(frame, [from, to], [0, 1], {25 easing: Easing.bezier(0.65, 0, 0.25, 1),26 extrapolateLeft: "clamp",27 extrapolateRight: "clamp",28 });29}3031const segmenter = new Intl.Segmenter("en", { granularity: "grapheme" });32export const graphemes = (text: string) =>33 Array.from(segmenter.segment(text), (part) => part.segment);3435/** Reserve width against the complete phrase, not its currently typed prefix. */36export function fitSize(text: string, max: number, width: number) {37 const units = graphemes(text).reduce((sum, char) => {38 if (/\s/.test(char)) return sum + 0.29;39 if (/[ilI.,'!|]/.test(char)) return sum + 0.29;40 if (/[MW@%]/.test(char)) return sum + 0.96;41 if ((char.codePointAt(0) ?? 0) > 0x024f) return sum + 1;42 return sum + 0.62;43 }, 0);44 return Math.min(max, width / Math.max(1, units));45}4647const quickCuts = [512, 538, 550, 562, 578, 594] as const;4849/** Stateless typing and deletion: seeking directly to any frame is identical. */50export function specimenState(51 frame: number,52 phrases: string[],53 reduced = false,54) {55 let index = 0;56 let visible = 0;57 if (frame < 434) {58 const text = graphemes(phrases[0]);59 const reveal = progress(frame, 324, 380);60 const erase = progress(frame, 395, 430);61 visible = reduced62 ? frame < 42263 ? text.length64 : 065 : Math.floor(text.length * (frame < 395 ? reveal : 1 - erase));66 } else if (frame < 512) {67 index = 1;68 visible = reduced69 ? graphemes(phrases[1]).length70 : Math.floor(graphemes(phrases[1]).length * progress(frame, 443, 493));71 } else {72 index = 2;73 for (let i = 0; i < quickCuts.length; i++) {74 if (frame >= quickCuts[i]) index = i + 2;75 }76 if (reduced) index = 7;77 visible = graphemes(phrases[index]).length;78 }79 const chars = graphemes(phrases[index]);80 return {81 index,82 fullText: phrases[index],83 text: chars.slice(0, visible).join(""),84 settledText: chars.slice(0, Math.max(0, visible - 3)).join(""),85 activeText: chars.slice(Math.max(0, visible - 3), visible).join(""),86 caret: !reduced && frame < 594,87 };88}
components/kuchi/templates/brand-guidelines/ui.tsx
1import type { CSSProperties } from "react";2import { Img, Interactive, useRemotionEnvironment } from "remotion";3import type { BrandGuidelinesScene } from "./content";45export function BrandImage({6 src,7 style,8}: {9 src: string;10 style: CSSProperties;11}) {12 // Studio 4.0.513 can loop while registering nested, moving Img layers.13 // Keep the preview static; exports and embedded Players retain Img's load gate.14 const { isStudio, isRendering } = useRemotionEnvironment();15 if (isStudio && !isRendering) {16 // biome-ignore lint/performance/noImgElement: Studio-only workaround for nested media registration; exports use Remotion Img below.17 return <img src={src} alt="" style={style} />;18 }19 return <Img src={src} style={style} />;20}2122/** An original architectural monogram: a slab and two quarter-circle modules. */23export function FormStudyMark({24 scene,25 color,26 size = 100,27}: {28 scene: BrandGuidelinesScene;29 color: string;30 size?: number;31}) {32 if (scene.logoSrc)33 return (34 <BrandImage35 src={scene.logoSrc}36 style={{ width: size, height: size, objectFit: "contain" }}37 />38 );39 return (40 <svg41 viewBox="0 0 100 100"42 width={size}43 height={size}44 fill={color}45 role="img"46 aria-label={`${scene.content.brandName} mark`}47 >48 <rect x="9" y="7" width="25" height="86" />49 <path d="M42 7h49v9c0 18-14 32-32 32H42Z" />50 <path d="M42 56h36v5c0 17-13 30-30 30h-6Z" />51 </svg>52 );53}5455export function Label({56 children,57 style,58}: {59 children: React.ReactNode;60 style?: CSSProperties;61}) {62 return (63 <Interactive.Div64 name="Identity label"65 style={{66 fontFamily: '"Inter", sans-serif',67 fontSize: 13,68 fontWeight: 400,69 lineHeight: 1.25,70 ...style,71 }}72 >73 {children}74 </Interactive.Div>75 );76}
components/kuchi/templates/brand-guidelines/index.tsx
1"use client";23import "@fontsource/manrope/400.css";4import "@fontsource/manrope/500.css";5import "@fontsource/manrope/800.css";6import "@fontsource/inter/400.css";7import "@fontsource/inter/300-italic.css";8import "@fontsource/inter/500-italic.css";9import { useMemo } from "react";10import {11 AbsoluteFill,12 Audio,13 Sequence,14 useCurrentFrame,15 useVideoConfig,16} from "remotion";17import {18 type BrandGuidelinesProps,19 resolveBrandGuidelinesProps,20} from "./content";21import {22 atFps,23 BRAND_GUIDELINES_FPS,24 BRAND_GUIDELINES_FRAMES,25 BRAND_GUIDELINES_HEIGHT,26 BRAND_GUIDELINES_WIDTH,27} from "./motion";28import { ClosingIdentity } from "./scenes/closing";29import { ObjectCollage } from "./scenes/collage";30import { Identity } from "./scenes/identity";31import { Palette } from "./scenes/palette";32import { Typography } from "./scenes/typography";3334export type {35 BrandGuidelinesContent,36 BrandGuidelinesPhotos,37 BrandGuidelinesProps,38 BrandGuidelinesTheme,39} from "./content";40export {41 brandGuidelinesContent,42 brandGuidelinesPhrases,43 brandGuidelinesTheme,44} from "./content";45export {46 BRAND_GUIDELINES_FPS,47 BRAND_GUIDELINES_FRAMES,48 BRAND_GUIDELINES_HEIGHT,49 BRAND_GUIDELINES_WIDTH,50 brandGuidelinesTimeline,51} from "./motion";5253export function BrandGuidelines(props: BrandGuidelinesProps) {54 const currentFrame = useCurrentFrame();55 const { fps, width, height } = useVideoConfig();56 const frame = (currentFrame / fps) * BRAND_GUIDELINES_FPS;57 const {58 brandName,59 accentColor,60 content,61 theme,62 phrases,63 closingWords,64 photos,65 logoSrc,66 reducedMotion,67 } = props;68 const scene = useMemo(69 () =>70 resolveBrandGuidelinesProps({71 brandName,72 accentColor,73 content,74 theme,75 phrases,76 closingWords,77 photos,78 logoSrc,79 reducedMotion,80 }),81 [82 brandName,83 accentColor,84 content,85 theme,86 phrases,87 closingWords,88 photos,89 logoSrc,90 reducedMotion,91 ],92 );93 const scale = Math.min(width / 960, height / 540);94 const at = (f: number) => atFps(f, fps);95 return (96 <AbsoluteFill97 style={{98 background: scene.theme.paper,99 color: scene.theme.ink,100 overflow: "hidden",101 fontFamily: '"Manrope", sans-serif',102 WebkitFontSmoothing: "antialiased",103 }}104 >105 <div106 style={{107 position: "absolute",108 width: 960,109 height: 540,110 left: (width - 960 * scale) / 2,111 top: (height - 540 * scale) / 2,112 scale,113 transformOrigin: "0 0",114 overflow: "hidden",115 }}116 >117 <Sequence118 name="Identity"119 from={0}120 durationInFrames={at(118)}121 layout="none"122 >123 <Identity scene={scene} frame={frame} />124 </Sequence>125 <Sequence126 name="Palette"127 from={at(118)}128 durationInFrames={at(326) - at(118)}129 layout="none"130 >131 <Palette scene={scene} frame={frame} />132 </Sequence>133 <Sequence134 name="Typography"135 from={at(294)}136 durationInFrames={at(806) - at(294)}137 layout="none"138 >139 <Typography scene={scene} frame={frame} />140 </Sequence>141 <Sequence142 name="Object collage"143 from={at(614)}144 durationInFrames={at(806) - at(614)}145 layout="none"146 >147 <ObjectCollage scene={scene} frame={frame} />148 </Sequence>149 <Sequence150 name="Closing identity"151 from={at(806)}152 durationInFrames={at(1072) - at(806)}153 layout="none"154 >155 <ClosingIdentity scene={scene} frame={frame} />156 </Sequence>157 </div>158 {props.audioSrc?.trim() ? (159 <Audio160 src={props.audioSrc}161 volume={162 Number.isFinite(props.volume)163 ? Math.max(0, Math.min(1, props.volume ?? 1))164 : 1165 }166 />167 ) : null}168 </AbsoluteFill>169 );170}171172export const brandGuidelinesConfig = {173 componentName: "BrandGuidelines",174 importPath: "@/components/kuchi/templates/brand-guidelines",175 controls: {176 brandName: {177 type: "text-content" as const,178 default: "Form Study",179 description: "Brand name across the identity posters and closing lockup",180 },181 accentColor: {182 type: "color" as const,183 default: "#A64B38",184 description: "Mark, palette panel and active typography",185 },186 reducedMotion: {187 type: "boolean" as const,188 default: false,189 description:190 "Static layouts without typing, collage travel or tile flips",191 },192 },193 durationInFrames: BRAND_GUIDELINES_FRAMES,194 fps: BRAND_GUIDELINES_FPS,195 compositionWidth: BRAND_GUIDELINES_WIDTH,196 compositionHeight: BRAND_GUIDELINES_HEIGHT,197};
components/kuchi/templates/brand-guidelines/scenes/identity.tsx
1import { AbsoluteFill, Interactive } from "remotion";2import type { SceneProps } from "../content";3import { fitSize, slide } from "../motion";4import { FormStudyMark } from "../ui";56export function Identity({ scene, frame }: SceneProps) {7 const reveal = scene.reducedMotion ? 1 : slide(frame, 18, 33);8 return (9 <AbsoluteFill style={{ background: scene.theme.paper }}>10 <Interactive.Div11 name="Opening mark"12 style={{ position: "absolute", left: 428, top: 185 }}13 >14 <FormStudyMark scene={scene} color={scene.theme.accent} size={104} />15 </Interactive.Div>16 <Interactive.Div17 name="Opening tagline"18 style={{19 position: "absolute",20 top: 321,21 left: 100,22 width: 760,23 textAlign: "center",24 fontSize: fitSize(scene.content.openingTagline, 32, 760),25 fontWeight: 800,26 letterSpacing: "-0.04em",27 opacity: reveal,28 translate: `0 ${10 * (1 - reveal)}px`,29 }}30 >31 {scene.content.openingTagline}32 </Interactive.Div>33 </AbsoluteFill>34 );35}
components/kuchi/templates/brand-guidelines/scenes/palette.tsx
1import { AbsoluteFill } from "remotion";2import type { SceneProps } from "../content";3import { slide } from "../motion";4import { Label } from "../ui";56export function Palette({ scene, frame }: SceneProps) {7 const { theme, reducedMotion } = scene;8 const x = (start: number, end: number, to: number) =>9 reducedMotion ? to : 960 + (to - 960) * slide(frame, start, end);10 const accentX = x(166, 201, 422);11 const panels = [12 { color: theme.accent, left: accentX, text: theme.paper },13 { color: theme.stone, left: x(211, 241, 566), text: theme.ink },14 { color: theme.paper, left: x(249, 279, 744), text: theme.ink },15 ];16 return (17 <AbsoluteFill18 style={{19 background: theme.ink,20 translate: reducedMotion21 ? undefined22 : `${-960 * slide(frame, 294, 326)}px 0`,23 }}24 >25 <Label26 style={{27 position: "absolute",28 left: accentX / 2,29 top: 258,30 translate: "-50% 0",31 color: theme.paper,32 fontSize: 16,33 }}34 >35 {theme.ink.toUpperCase()}36 </Label>37 {panels.map((panel, i) => (38 <div39 key={i === 0 ? "accent" : i === 1 ? "stone" : "paper"}40 style={{41 position: "absolute",42 top: 0,43 bottom: 0,44 left: panel.left,45 width: 960,46 background: panel.color,47 color: panel.text,48 }}49 >50 <Label51 style={{ position: "absolute", left: 16, top: 258, fontSize: 16 }}52 >53 {panel.color.toUpperCase()}54 </Label>55 </div>56 ))}57 </AbsoluteFill>58 );59}
components/kuchi/templates/brand-guidelines/scenes/typography.tsx
1import { AbsoluteFill, Interactive } from "remotion";2import { Caret } from "@/components/kuchi/type-caret";3import type { SceneProps } from "../content";4import { fitSize, progress, slide, specimenState } from "../motion";5import { Label } from "../ui";67const styles = [8 { fontFamily: "Manrope", fontWeight: 800, label: "Manrope / ExtraBold" },9 { fontFamily: "Manrope", fontWeight: 400, label: "Manrope / Regular" },10 {11 fontFamily: "Inter",12 fontWeight: 500,13 fontStyle: "italic",14 label: "Inter / Medium Italic",15 },16 {17 fontFamily: "Inter",18 fontWeight: 300,19 fontStyle: "italic",20 label: "Inter / Light Italic",21 },22 { fontFamily: "Manrope", fontWeight: 800, label: "Manrope / ExtraBold" },23 { fontFamily: "Manrope", fontWeight: 500, label: "Manrope / Medium" },24 {25 fontFamily: "Inter",26 fontWeight: 500,27 fontStyle: "italic",28 label: "Inter / Medium Italic",29 },30 { fontFamily: "Manrope", fontWeight: 800, label: "Manrope / ExtraBold" },31] as const;3233export function Typography({ scene, frame }: SceneProps) {34 const state = specimenState(frame, scene.phrases, scene.reducedMotion);35 const spec = styles[state.index];36 const fontSize = fitSize(state.fullText, 80, 850);37 const guides = 1 - progress(frame, 600, 620);38 return (39 <AbsoluteFill40 style={{41 background: scene.theme.paper,42 translate: scene.reducedMotion43 ? undefined44 : `${960 * (1 - slide(frame, 294, 326))}px 0`,45 }}46 >47 <div style={{ opacity: guides }}>48 <Label49 style={{50 position: "absolute",51 top: 195,52 width: "100%",53 textAlign: "center",54 }}55 >56 {scene.content.guidelinesLabel}57 </Label>58 {[226, 268, 310].map((y) => (59 <div60 key={y}61 style={{62 position: "absolute",63 left: 48,64 right: 48,65 top: y,66 height: 1,67 background: scene.theme.stone,68 }}69 />70 ))}71 <Label72 style={{73 position: "absolute",74 top: 335,75 width: "100%",76 textAlign: "center",77 }}78 >79 {spec.label}80 </Label>81 </div>82 <Interactive.Div83 name="Editable type specimen"84 style={{85 position: "absolute",86 left: 48,87 top: 216,88 height: 104,89 display: "flex",90 alignItems: "center",91 fontFamily: spec.fontFamily,92 fontWeight: spec.fontWeight,93 fontStyle: "fontStyle" in spec ? spec.fontStyle : "normal",94 fontSize,95 letterSpacing: "-0.055em",96 lineHeight: 1.1,97 whiteSpace: "nowrap",98 filter:99 !scene.reducedMotion && frame > 636100 ? `blur(${progress(frame, 636, 660) * 2}px)`101 : undefined,102 }}103 >104 <span>105 {state.caret ? state.settledText : state.text}106 {state.caret ? (107 <span style={{ color: scene.theme.accent }}>108 {state.activeText}109 </span>110 ) : null}111 </span>112 {state.caret ? (113 <Caret114 height={88}115 width={3}116 radius={0}117 marginLeft={5}118 color={scene.theme.accent}119 opacity={1}120 />121 ) : null}122 </Interactive.Div>123 </AbsoluteFill>124 );125}
components/kuchi/templates/brand-guidelines/scenes/collage.tsx
1import { useMemo } from "react";2import { AbsoluteFill } from "remotion";3import type { BrandGuidelinesScene, SceneProps } from "../content";4import { fitSize, slide } from "../motion";5import { BrandImage, FormStudyMark, Label } from "../ui";67type Plate = {8 id: string;9 kind: "ceramics" | "materials" | "chair" | "poster" | "mark" | "specimen";10 x: number;11 y: number;12 width: number;13 height: number;14 velocity: number;15 delay: number;16 direction: number;17 depth?: number;18};1920// Coordinates at frame 710. Independent tracks continue beyond the cut.21const plates: Plate[] = [22 {23 id: "back-materials",24 kind: "materials",25 x: 35,26 y: -135,27 width: 245,28 height: 190,29 velocity: 1.15,30 delay: 0,31 direction: -1,32 depth: 0.7,33 },34 {35 id: "back-type",36 kind: "specimen",37 x: 645,38 y: -145,39 width: 260,40 height: 205,41 velocity: -1.1,42 delay: 2,43 direction: -1,44 },45 {46 id: "back-chair",47 kind: "chair",48 x: 695,49 y: 330,50 width: 210,51 height: 280,52 velocity: -1.6,53 delay: 6,54 direction: 1,55 },56 {57 id: "left-poster",58 kind: "poster",59 x: 23,60 y: 88,61 width: 252,62 height: 178,63 velocity: 1.15,64 delay: 2,65 direction: -1,66 },67 {68 id: "right-materials",69 kind: "materials",70 x: 666,71 y: 72,72 width: 265,73 height: 195,74 velocity: -1.6,75 delay: 3,76 direction: 1,77 },78 {79 id: "left-ceramics",80 kind: "ceramics",81 x: 62,82 y: 280,83 width: 266,84 height: 340,85 velocity: 1.15,86 delay: 5,87 direction: 1,88 },89 {90 id: "upper-mark",91 kind: "mark",92 x: 317,93 y: -118,94 width: 260,95 height: 193,96 velocity: -1.05,97 delay: 10,98 direction: -1,99 depth: 0.5,100 },101 {102 id: "lower-type",103 kind: "specimen",104 x: 403,105 y: 452,106 width: 285,107 height: 225,108 velocity: -1.05,109 delay: 7,110 direction: 1,111 },112 {113 id: "foreground-chair",114 kind: "chair",115 x: 290,116 y: 86,117 width: 276,118 height: 362,119 velocity: -1.05,120 delay: 4,121 direction: -1,122 },123 {124 id: "foreground-mark",125 kind: "mark",126 x: 554,127 y: 268,128 width: 260,129 height: 204,130 velocity: -1.6,131 delay: 9,132 direction: 1,133 },134];135136function Poster({137 scene,138 kind,139}: {140 scene: BrandGuidelinesScene;141 kind: Plate["kind"];142}) {143 const { theme, content } = scene;144 if (kind === "mark")145 return (146 <AbsoluteFill147 style={{148 background: theme.ink,149 color: theme.paper,150 alignItems: "center",151 justifyContent: "center",152 }}153 >154 <FormStudyMark scene={scene} color={theme.paper} size={74} />155 <Label156 style={{ position: "absolute", bottom: 17, left: 18, fontSize: 10 }}157 >158 {content.brandName}159 </Label>160 </AbsoluteFill>161 );162 if (kind === "poster")163 return (164 <AbsoluteFill165 style={{166 background: theme.accent,167 color: theme.paper,168 padding: 19,169 boxSizing: "border-box",170 }}171 >172 <Label style={{ fontSize: 9 }}>{content.collectionLabel}</Label>173 <div174 style={{175 marginTop: 17,176 fontSize: fitSize(content.collageTitle, 32, 490),177 lineHeight: 1.02,178 letterSpacing: "-0.045em",179 fontWeight: 500,180 maxWidth: 200,181 }}182 >183 {content.collageTitle}184 </div>185 <div style={{ position: "absolute", right: 16, bottom: 13 }}>186 <FormStudyMark scene={scene} color={theme.paper} size={27} />187 </div>188 </AbsoluteFill>189 );190 return (191 <AbsoluteFill192 style={{193 background: scene.theme.stone,194 color: scene.theme.ink,195 padding: 21,196 boxSizing: "border-box",197 }}198 >199 <div200 style={{201 fontSize: fitSize(content.brandName, 44, 238),202 lineHeight: 1,203 letterSpacing: "-0.06em",204 fontWeight: 800,205 }}206 >207 {content.brandName}208 </div>209 <div style={{ display: "flex", gap: 6, marginTop: 26 }}>210 {Object.values(theme).map((color, i) => (211 <div212 key={["ink", "accent", "stone", "paper"][i]}213 style={{214 width: 45,215 height: 45,216 borderRadius: i === 1 ? "50%" : 0,217 background: color,218 }}219 />220 ))}221 </div>222 <Label style={{ position: "absolute", bottom: 20, fontSize: 10 }}>223 {content.openingTagline}224 </Label>225 </AbsoluteFill>226 );227}228229export function ObjectCollage({ scene, frame }: SceneProps) {230 // Photo/poster content changes with props, not with the camera or track positions.231 const contents = useMemo(232 () =>233 plates.map((plate) => {234 const kind = plate.kind;235 return kind === "ceramics" ||236 kind === "materials" ||237 kind === "chair" ? (238 <BrandImage239 key={plate.id}240 src={scene.photos[kind]}241 style={{ width: "100%", height: "100%", objectFit: "cover" }}242 />243 ) : (244 <Poster key={plate.id} scene={scene} kind={kind} />245 );246 }),247 [scene],248 );249 return (250 <AbsoluteFill251 style={{252 scale: scene.reducedMotion ? 1 : 1 + 0.045 * slide(frame, 640, 806),253 }}254 >255 {plates.map((plate, index) => {256 const enter = slide(frame, 614 + plate.delay, 642 + plate.delay);257 const y = scene.reducedMotion258 ? plate.y259 : plate.y +260 (frame - 710) * plate.velocity +261 (1 - enter) * 730 * plate.direction;262 return (263 <div264 key={plate.id}265 style={{266 position: "absolute",267 left: plate.x,268 top: 0,269 width: plate.width,270 height: plate.height,271 translate: `0 ${y}px`,272 overflow: "hidden",273 boxShadow: "0 8px 24px rgb(0 0 0 / 0.07)",274 filter:275 !scene.reducedMotion && plate.depth276 ? `blur(${plate.depth}px)`277 : undefined,278 }}279 >280 {contents[index]}281 </div>282 );283 })}284 </AbsoluteFill>285 );286}
components/kuchi/templates/brand-guidelines/scenes/closing.tsx
1import { AbsoluteFill, Interactive } from "remotion";2import type { SceneProps } from "../content";3import { fitSize, progress, slide } from "../motion";4import { FormStudyMark, Label } from "../ui";56export function ClosingIdentity({ scene, frame }: SceneProps) {7 const { theme, reducedMotion, content } = scene;8 const wordsOut = reducedMotion9 ? Number(frame >= 942)10 : slide(frame, 930, 944);11 const markIn = reducedMotion ? Number(frame >= 944) : slide(frame, 944, 959);12 const nameOut = reducedMotion13 ? Number(frame >= 1000)14 : slide(frame, 988, 1008);15 return (16 <AbsoluteFill style={{ background: theme.ink, color: theme.paper }}>17 {frame < 94418 ? scene.closingWords.map((word, index) => {19 const turn = slide(frame, 860 + index * 3, 883 + index * 3);20 const bounce = reducedMotion21 ? 022 : Math.sin(23 progress(frame, 806, 860) * Math.PI * 2 + index * 1.1,24 ) *25 (1 - turn) *26 17;27 const blockWidth = index === 0 ? 94 : 50;28 return (29 <Interactive.Div30 key={31 index === 032 ? "first-word"33 : index === 134 ? "second-word"35 : "third-word"36 }37 name="Closing word tile"38 style={{39 position: "absolute",40 top: 241,41 left: 88 + index * 292,42 width: 200,43 height: 65,44 textAlign: "center",45 perspective: 600,46 opacity: 1 - wordsOut,47 translate: `0 ${bounce - 20 * wordsOut}px`,48 }}49 >50 {!reducedMotion && turn < 0.5 ? (51 <div52 style={{53 margin: "9px auto",54 width: blockWidth,55 height: 39,56 background: theme.paper,57 transform: `rotateX(${180 * turn}deg)`,58 }}59 />60 ) : (61 <div62 style={{63 fontSize: fitSize(word, 42, 196),64 fontWeight: 800,65 letterSpacing: "-0.05em",66 lineHeight: 1.2,67 transform: reducedMotion68 ? undefined69 : `rotateX(${-180 * (1 - turn)}deg)`,70 }}71 >72 {word}73 </div>74 )}75 </Interactive.Div>76 );77 })78 : null}79 {frame >= 944 ? (80 <Interactive.Div81 name="Closing brand lockup"82 style={{83 position: "absolute",84 left: 100,85 width: 760,86 top: 175,87 height: 190,88 opacity: markIn,89 scale: reducedMotion ? 1 : 0.88 + 0.12 * markIn,90 }}91 >92 <div style={{ position: "absolute", left: 333, top: 44 * nameOut }}>93 <FormStudyMark scene={scene} color={theme.paper} size={94} />94 </div>95 <div96 style={{97 position: "absolute",98 top: 113,99 width: "100%",100 textAlign: "center",101 fontSize: fitSize(content.brandName, 40, 660),102 fontWeight: 800,103 letterSpacing: "-0.05em",104 opacity: 1 - nameOut,105 translate: `0 ${-12 * nameOut}px`,106 }}107 >108 {content.brandName}109 </div>110 </Interactive.Div>111 ) : null}112 <Label113 style={{114 position: "absolute",115 bottom: 26,116 left: 70,117 right: 70,118 textAlign: "center",119 fontSize: 11,120 color: theme.stone,121 opacity: reducedMotion122 ? Number(frame >= 1008)123 : slide(frame, 1006, 1024),124 }}125 >126 {content.footer}127 </Label>128 </AbsoluteFill>129 );130}





