Sky Lockup
Logo outro in under two seconds. A one-line promise takes itself apart word by word, the white page washes off to a soft sky, and the mark in the middle of the sentence slides over, turns white and picks up your wordmark.
Source
components/kuchi/sky-lockup/index.tsx
1"use client";23import { loadFont as loadGeist } from "@remotion/google-fonts/Geist";4import { loadFont as loadPoppins } from "@remotion/google-fonts/Poppins";5import type { ReactNode } from "react";6import { useEffect, useId, useState } from "react";7import {8 AbsoluteFill,9 continueRender,10 delayRender,11 Img,12 useCurrentFrame,13 useVideoConfig,14} from "remotion";15import {16 mixOklch,17 resolveFont,18 type KuchiTheme,19 useKuchiTheme,20} from "@/lib/kuchi-ui";21import {22 CUT,23 FLIP_FROM,24 FLIP_INK,25 FLIP_PAPER,26 FLIP_WIDTH,27 LEAVE,28 LEAVE_FADE,29 LEAVE_Y,30 LETTER_FADE,31 LETTER_RISE,32 LETTERS_OFF,33 LETTERS_ON,34 LINE_CENTER,35 LINE_ON,36 LINE_PIVOT,37 LINE_SCALE,38 LINE_X,39 LINE_Y,40 LOCKUP_CENTER,41 LOCKUP_GAP,42 LOCKUP_MARK,43 LOCKUP_SIZE,44 LOCKUP_Y,45 MARK_SCALE,46 MARK_X,47 MARK_Y,48 SKY,49 SKY_ZOOM,50 KUCHI_MARK,51 TILE_FADE,52 TILE_LINE,53 TILE_RADIUS,54 TILE_SIZE,55 TILE_STROKE,56 TYPE_SIZE,57 TYPE_TRACKING,58 WIPE,59 WIPE_LEAN,60 WIPE_STOPS,61 WORD_FADE,62 WORD_GAP,63 WORD_RISE,64} from "./data";6566const { fontFamily: GEIST } = loadGeist("normal", {67 weights: ["500"],68 subsets: ["latin"],69});70const { fontFamily: POPPINS } = loadPoppins("normal", {71 weights: ["600"],72 subsets: ["latin"],73});7475const STAGE_W = 1920;76const STAGE_H = 1080;77/** The line may fill this much of the stage before it scales down to fit. */78const MAX_LINE = STAGE_W * 0.86;79/** The source frames the mark rests in the lockup, and in the line. */80const LOCKUP_FRAME = 12;81const LINE_FRAME = 44;82/** The source frame the line's layout was measured on. */83const LAYOUT_FRAME = 72;8485export interface SkyLockupProps {86 /** The wordmark that types on beside the mark, on the sky. */87 wordmark?: string;88 /** Your mark as SVG paths, like Cut Lockup's `logo`. Defaults to the kuchi mark. */89 logo?: { width: number; height: number; shapes: readonly string[] };90 /** The words left of the mark. */91 before?: string;92 /** The words right of the mark. */93 after?: string;94 /** Any image URL. Defaults to the Portal Intro picture. */95 sky?: string;96 /** A label from `fonts.ts` or a CSS family you have loaded. Defaults to Geist. */97 fontFamily?: string;98 fontWeight?: number;99 /** Type size on a 1920x1080 stage. */100 fontSize?: number;101 /** Nudge per word, `[x, y]` in stage px, for optical spacing. */102 wordNudge?: [number, number][];103 /** Tracking per word in em. */104 wordTracking?: number[];105 /** The wordmark's own face. Defaults to Poppins, which is the kuchi logotype. */106 wordmarkFont?: string;107 wordmarkWeight?: number;108 /** Wordmark size on that stage. */109 wordmarkSize?: number;110 /** Wordmark tracking in em. */111 wordmarkTracking?: number;112 /** Space between the mark and the wordmark, in stage px. */113 wordmarkGap?: number;114 /** Mark and wordmark colour on the sky. */115 lockupColor?: string;116 speed?: number;117 theme?: Partial<KuchiTheme>;118 mode?: "light" | "dark";119}120121/** Sample a measured table at a fractional index; holds both ends. */122export const sample = (table: readonly number[], at: number) => {123 const x = Math.max(0, Math.min(at, table.length - 1));124 const i = Math.floor(x);125 const a = table[i] ?? 0;126 return a + ((table[i + 1] ?? a) - a) * (x - i);127};128129/** Which source frame an out frame shows. The clip runs backwards through `CUT`. */130export const sourceFrame = (frame: number) => {131 const last = CUT[CUT.length - 1];132 if (frame >= last[0]) return last[1];133 const next = CUT.findIndex(([f]) => f > Math.max(0, frame));134 const [f0, s0] = CUT[next - 1];135 const [f1, s1] = CUT[next];136 return s0 + ((Math.max(0, frame) - f0) / (f1 - f0)) * (s1 - s0);137};138139/** `count` beats spread evenly from `from` to `to`. */140export const beats = (count: number, from: number, to: number) => {141 const step = count > 1 ? (to - from) / (count - 1) : 0;142 return Array.from({ length: count }, (_, i) => from + i * step);143};144145/** Where each word starts, on the frames the measured line keys them. */146export const wordBeats = (count: number, at: readonly number[]) =>147 Array.from(148 { length: count },149 (_, i) =>150 (at[Math.min(i, at.length - 1)] ?? 0) +151 Math.max(0, i - at.length + 1) * LINE_ON.step,152 );153154/** Left edge of every word, in px from the centre of the tile. */155export const layoutLine = (156 before: readonly number[],157 after: readonly number[],158 gap: number,159 tile: number,160) => {161 const left: number[] = [];162 let x = -tile / 2;163 for (let i = before.length - 1; i >= 0; i--) {164 x -= gap + (before[i] ?? 0);165 left.unshift(x);166 }167 const start = left[0] ?? -tile / 2;168 const right: number[] = [];169 let y = tile / 2;170 for (const w of after) {171 y += gap;172 right.push(y);173 y += w;174 }175 return {176 before: left,177 after: right,178 centre: (start + y) / 2,179 width: y - start,180 };181};182183interface Metrics {184 before: number[];185 after: number[];186 letters: number[];187 wordmark: number;188}189190const measure = (191 face: string,192 weight: number,193 before: string[],194 after: string[],195 tracking: (i: number) => number,196 markFace: string,197 markWeight: number,198 markTracking: number,199 wordmark: string,200): Metrics => {201 const P = 100;202 const ctx = document.createElement("canvas").getContext("2d");203 if (!ctx) throw new Error("sky-lockup: no 2d context");204 const em = (text: string, f: string, w: number, track: number) => {205 ctx.font = `${w} ${P}px ${f}`;206 ctx.letterSpacing = `${track * P}px`;207 return ctx.measureText(text).width / P - track;208 };209 const chars = Array.from(wordmark);210 return {211 before: before.map((w, i) => em(w, face, weight, tracking(i))),212 after: after.map((w, i) =>213 em(w, face, weight, tracking(before.length + i)),214 ),215 letters: chars.map((_, i) =>216 i === 0217 ? 0218 : em(219 chars.slice(0, i + 1).join(""),220 markFace,221 markWeight,222 markTracking,223 ) - em(chars[i] ?? "", markFace, markWeight, markTracking),224 ),225 wordmark: em(wordmark, markFace, markWeight, markTracking),226 };227};228229/**230 * Type at a fraction of a device pixel. Chrome rounds a baseline to a whole device231 * row, which turns a slow rise into a staircase, so the word is painted on the two232 * rows around `y` and added by the fraction between them. The scale pivots on the233 * baseline, so neither copy can climb the grid.234 */235const Word: React.FC<{236 x: number;237 y: number;238 scale: number;239 opacity: number;240 px: number;241 children: ReactNode;242}> = ({ x, y, scale, opacity, px, children }) => {243 if (opacity <= 0) return null;244 const row = Math.floor(y * px);245 const f = y * px - row;246 return (247 <g opacity={opacity} style={{ isolation: "isolate" }}>248 {[249 { r: row, w: 1 - f },250 { r: row + 1, w: f },251 ].map(({ r, w }) => (252 <g253 key={r}254 transform={`translate(${x} ${(r + 1e-3) / px}) scale(${scale})`}255 style={{ opacity: w, mixBlendMode: "plus-lighter" }}256 >257 {children}258 </g>259 ))}260 </g>261 );262};263264/**265 * Sky Lockup: a finished sentence takes itself apart word by word, the white page266 * washes off to a soft sky, and the mark that sat in the middle of the sentence267 * slides over, turns white and picks up its wordmark. One clock drives everything:268 * `source` is a frame of the recording this was measured from.269 */270export const SkyLockupScene: React.FC<SkyLockupProps & { source: number }> = ({271 source: s,272 wordmark = "kuchi",273 logo = KUCHI_MARK,274 before = "your animations",275 after = "as one install",276 sky = SKY,277 fontFamily,278 fontWeight = 500,279 fontSize = TYPE_SIZE,280 wordNudge,281 wordTracking,282 wordmarkFont,283 wordmarkWeight = 600,284 wordmarkSize = LOCKUP_SIZE,285 wordmarkTracking = 0,286 wordmarkGap = LOCKUP_GAP,287 lockupColor = "#ffffff",288 theme,289 mode,290}) => {291 const t = useKuchiTheme(theme, mode);292 const uid = useId().replace(/:/g, "");293 const { width, height } = useVideoConfig();294 const px = Math.max(width / STAGE_W, height / STAGE_H);295 const face = resolveFont(fontFamily) ?? resolveFont(t.fontFamily) ?? GEIST;296 const markFace = resolveFont(wordmarkFont) ?? POPPINS;297 const left = before.trim().split(/\s+/).filter(Boolean);298 const right = after.trim().split(/\s+/).filter(Boolean);299 const letters = Array.from(wordmark);300301 const [m, setM] = useState<Metrics | null>(null);302 const [handle] = useState(() => delayRender("sky-lockup: measuring type"));303 const text = `${left.join(" ")}\n${right.join(" ")}`;304 const tracks = wordTracking ?? [];305 const trackKey = tracks.join();306 useEffect(() => {307 let live = true;308 // measuring a fallback face measures the wrong face309 Promise.all([310 document.fonts.load(`${fontWeight} 100px ${face}`, text),311 document.fonts.load(`${wordmarkWeight} 100px ${markFace}`, wordmark),312 ])313 .catch(() => undefined)314 .then(() => {315 if (live) {316 const [a = "", b = ""] = text.split("\n");317 setM(318 measure(319 face,320 fontWeight,321 a.split(" ").filter(Boolean),322 b.split(" ").filter(Boolean),323 (i) => Number(trackKey.split(",")[i] || TYPE_TRACKING),324 markFace,325 wordmarkWeight,326 wordmarkTracking,327 wordmark,328 ),329 );330 }331 });332 return () => {333 live = false;334 };335 }, [336 face,337 fontWeight,338 text,339 trackKey,340 markFace,341 wordmarkWeight,342 wordmarkTracking,343 wordmark,344 ]);345 useEffect(() => {346 if (m) continueRender(handle);347 }, [m, handle]);348349 const tile72 = sample(TILE_SIZE, LAYOUT_FRAME);350 const lineAt = (size: number) =>351 m352 ? layoutLine(353 m.before.map((w) => w * size),354 m.after.map((w) => w * size),355 (WORD_GAP * size) / TYPE_SIZE,356 tile72,357 )358 : null;359 const full = lineAt(fontSize);360 // Only the type gives way to a long line: the tile stays the size of the mark.361 const fit = full362 ? Math.min(1, (MAX_LINE - tile72) / (full.width - tile72))363 : 1;364 const rest = lineAt(fontSize * fit);365366 // The measured line sat `centre` off its tile. Any other sentence stays centred on367 // the same spot, and carries the tile with it.368 const lineShift = rest369 ? LINE_CENTER - sample(MARK_X, LAYOUT_FRAME) - rest.centre370 : 0;371 const lockupWidth = m372 ? LOCKUP_MARK + wordmarkGap + m.wordmark * wordmarkSize373 : 0;374 const lockupShift = m375 ? LOCKUP_CENTER -376 lockupWidth / 2 +377 LOCKUP_MARK / 2 -378 sample(MARK_X, LOCKUP_FRAME)379 : 0;380381 // How far the mark has travelled from lockup to line, read off its own curve, so382 // a wider lockup cannot pull it into the words while they are still on screen.383 const lockupX = sample(MARK_X, LOCKUP_FRAME);384 const glide = Math.max(385 0,386 Math.min(387 1,388 (sample(MARK_X, s) - lockupX) /389 ((sample(MARK_X, LINE_FRAME) - lockupX) * 0.85),390 ),391 );392 const markX =393 sample(MARK_X, s) + lockupShift * (1 - glide) + lineShift * glide;394 const markY = sample(MARK_Y, s);395 const markScale = sample(MARK_SCALE, s);396 const logoScale = LOCKUP_MARK / Math.max(logo.width, logo.height);397398 const lineScale = sample(LINE_SCALE, s);399 const lineDrift = sample(LINE_X, s);400401 const zoom = 1 + SKY_ZOOM.from * Math.exp(-s / SKY_ZOOM.tau);402 const swing = sample(WIPE_LEAN, s);403 const lean = 1 + swing * swing;404 const wipe = sample(WIPE, s);405 const [uMin = 0, uMax = 0] = [406 WIPE_STOPS[0],407 WIPE_STOPS[WIPE_STOPS.length - 2],408 ];409 // Measured against the stage, so it rides with a mark that sits somewhere else.410 const flipShift = markX - sample(MARK_X, s);411 const flipPaper = sample(FLIP_PAPER, s - FLIP_FROM) + flipShift;412 const flipInk = sample(FLIP_INK, s - FLIP_FROM) + flipShift;413 const local = (x: number) => (x - markX) / (markScale * logoScale);414 const tile = sample(TILE_SIZE, s);415416 const on = beats(letters.length, LETTERS_ON.from, LETTERS_ON.to);417 const off = beats(letters.length, LETTERS_OFF.to, LETTERS_OFF.from);418 const words = rest419 ? [420 ...left.map((w, i) => ({421 w,422 x: rest.before[i] ?? 0,423 at: wordBeats(left.length, LINE_ON.first)[i] ?? 0,424 })),425 ...right.map((w, i) => ({426 w,427 x: rest.after[i] ?? 0,428 at: wordBeats(right.length, LINE_ON.second)[i] ?? 0,429 })),430 ]431 : [];432433 return (434 <AbsoluteFill style={{ background: t.card, overflow: "hidden" }}>435 <Img436 src={sky}437 style={{438 position: "absolute",439 inset: 0,440 width: "100%",441 height: "100%",442 maxWidth: "none",443 objectFit: "cover",444 transform: `scale(${zoom})`,445 }}446 />447 <svg448 viewBox={`0 0 ${STAGE_W} ${STAGE_H}`}449 width="100%"450 height="100%"451 preserveAspectRatio="xMidYMid slice"452 style={{ position: "absolute", inset: 0 }}453 >454 <title>{`${before} ${after}`}</title>455 <defs>456 <linearGradient457 id={`${uid}w`}458 gradientUnits="userSpaceOnUse"459 x1={wipe + uMin / lean}460 y1={STAGE_H / 2 + (swing * uMin) / lean}461 x2={wipe + uMax / lean}462 y2={STAGE_H / 2 + (swing * uMax) / lean}463 >464 {WIPE_STOPS.flatMap((u, i) =>465 i % 2466 ? []467 : [468 <stop469 key={u}470 offset={(u - uMin) / (uMax - uMin)}471 stopColor={t.card}472 stopOpacity={WIPE_STOPS[i + 1]}473 />,474 ],475 )}476 </linearGradient>477 {[478 { id: "p", at: flipPaper, from: 1, to: 0, c: lockupColor },479 { id: "i", at: flipInk, from: 0, to: 1, c: t.foreground },480 ].map(({ id, at, from, to, c }) => (481 <linearGradient482 key={id}483 id={`${uid}${id}`}484 gradientUnits="userSpaceOnUse"485 x1={local(at - FLIP_WIDTH / 2) + logo.width / 2}486 x2={local(at + FLIP_WIDTH / 2) + logo.width / 2}487 y1={0}488 y2={0}489 >490 <stop offset={0} stopColor={c} stopOpacity={from} />491 <stop offset={1} stopColor={c} stopOpacity={to} />492 </linearGradient>493 ))}494 </defs>495496 <rect width={STAGE_W} height={STAGE_H} fill={`url(#${uid}w)`} />497498 {m &&499 letters.map((ch, i) => {500 const fade = sample(LETTER_FADE, s - (off[i] ?? 0));501 const k = s - (on[i] ?? 0);502 return (503 <Word504 // biome-ignore lint/suspicious/noArrayIndexKey: letters of a fixed string505 key={i}506 x={507 markX +508 LOCKUP_MARK / 2 +509 wordmarkGap +510 (m.letters[i] ?? 0) * wordmarkSize511 }512 y={LOCKUP_Y + sample(LETTER_RISE, k)}513 scale={1}514 opacity={k < 0 ? 0 : fade}515 px={px}516 >517 <text518 fill={lockupColor}519 style={{520 fontFamily: markFace,521 fontWeight: wordmarkWeight,522 fontSize: wordmarkSize,523 textRendering: "geometricPrecision",524 }}525 >526 {ch}527 </text>528 </Word>529 );530 })}531532 <g transform={`translate(${markX} ${markY})`}>533 <rect534 x={-tile / 2}535 y={-tile / 2}536 width={tile}537 height={tile}538 rx={(tile / 2) * TILE_RADIUS}539 fill={t.card}540 stroke={mixOklch(t.border, t.card, TILE_LINE)}541 strokeWidth={TILE_STROKE}542 opacity={sample(TILE_FADE, s - FLIP_FROM)}543 />544 <g545 transform={`scale(${markScale * logoScale}) translate(${-logo.width / 2} ${-logo.height / 2})`}546 >547 {logo.shapes.map((d) => (548 <path key={d} d={d} fillRule="evenodd" fill={`url(#${uid}p)`} />549 ))}550 {logo.shapes.map((d) => (551 <path key={d} d={d} fillRule="evenodd" fill={`url(#${uid}i)`} />552 ))}553 </g>554 </g>555556 {words.map(({ w, x, at }, i) => {557 const k = s - at;558 const gone = s - LEAVE.from - i * LEAVE.stagger;559 return (560 <Word561 key={w + at}562 x={563 LINE_PIVOT +564 lineScale *565 (sample(MARK_X, LAYOUT_FRAME) +566 lineShift +567 x +568 (wordNudge?.[i]?.[0] ?? 0) -569 LINE_PIVOT) +570 lineDrift571 }572 y={573 LINE_Y +574 (wordNudge?.[i]?.[1] ?? 0) +575 sample(WORD_RISE, k) +576 sample(LEAVE_Y, gone) +577 (lineScale - 1) * (LINE_Y - sample(MARK_Y, LAYOUT_FRAME))578 }579 scale={lineScale * fit}580 opacity={581 k < 0 ? 0 : sample(WORD_FADE, k) * sample(LEAVE_FADE, gone)582 }583 px={px}584 >585 <text586 fill={t.foreground}587 style={{588 fontFamily: face,589 fontWeight,590 fontSize: fontSize,591 letterSpacing: `${tracks[i] ?? TYPE_TRACKING}em`,592 textRendering: "geometricPrecision",593 }}594 >595 {w}596 </text>597 </Word>598 );599 })}600 </svg>601 </AbsoluteFill>602 );603};604605export const SkyLockup: React.FC<SkyLockupProps> = ({606 speed = 1,607 ...props608}) => {609 const frame = useCurrentFrame() * speed;610 return <SkyLockupScene {...props} source={sourceFrame(frame)} />;611};612613export default SkyLockup;
components/kuchi/sky-lockup/data.ts
1/**2 * Every number here was measured off a screen recording, one sample per frame, then3 * scaled up from its 712x400 to a 1920x1080 stage. Tables are indexed by source4 * frame: 0 is the logo on the sky, 77 is the finished sentence. The scene plays them5 * backwards, see `CUT`.6 */78/** Out frame to source frame. Everything that moves plays one to one; only the held line is squeezed. */9export const CUT = [10 [0, 77],11 [27, 50],12 [30, 41],13 [46, 25],14 [57, 14],15] as const;1617/** Source frames each word and letter is keyed to. */18export const LINE_ON = {19 first: [32, 36],20 second: [57, 61, 65],21 step: 4,22} as const;23export const LETTERS_ON = { from: 2, to: 6 } as const;24export const LETTERS_OFF = { from: 24, to: 28 } as const;2526/** The rest position of the type, in stage px. */27export const LINE_Y = 569.9;28export const LINE_PIVOT = 942.5;29export const LINE_CENTER = 941.5;30export const LOCKUP_CENTER = 964.5;31export const LOCKUP_MARK = 74.4;32export const LOCKUP_GAP = 20;33export const LOCKUP_Y = 577.9;34export const TYPE_SIZE = 90.5;35export const TYPE_TRACKING = -0.02;36export const WORD_GAP = 18.5;37export const LOCKUP_SIZE = 105;3839/** The card the mark sits on: its edge per source frame, then its corner as a share of half that. */40export const TILE_SIZE = [41 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3,42 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3,43 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 100.3, 99.8, 96.5,44 94.7, 94.5, 93.7, 92.3, 90.9, 90, 89.6, 89.3, 89.2, 89.2, 89.2, 89.2, 89.2,45 89.2, 89.2, 89.3, 89.3, 89.3, 89.3, 89.3, 89.4, 89.5, 89.9, 90.9, 92.6, 93.7,46 94.2, 94.3, 94.4, 94.5, 94.5, 94.6, 94.6, 94.7, 94.7, 94.8, 94.8, 94.7, 94.7,47 94.7, 94.7, 94.7, 94.7, 94.7, 94.7,48] as const;49export const TILE_RADIUS = 0.52;50export const TILE_STROKE = 1.5;51/** The hairline is the border token, walked this far toward the card: it is lighter than a control's. */52export const TILE_LINE = 0.55;53/** Card opacity per source frame, from `FLIP_FROM`. */54export const TILE_FADE = [0, 0, 0, 0.24, 0.88, 1] as const;5556/** The sky settles from a slightly tighter crop, at this much over its resting scale. */57export const SKY_ZOOM = { from: 0.00715, tau: 5.68 } as const;5859/** The white band that wipes the sky swings as it crosses, like a wiper: its lean per source frame. */60export const WIPE_LEAN = [61 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03,62 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03, 0.03,63 0.035, 0.039, 0.06, 0.059, 0.082, 0.12, 0.162, 0.179, 0.194, 0.198, 0.209,64 0.215, 0.224, 0.231, 0.228, 0.239, 0.238, 0.254, 0.249, 0.241, 0.24, 0.231,65 0.229, 0.222, 0.223, 0.222, 0.225, 0.225, 0.226, 0.226, 0.227, 0.227, 0.227,66 0.227, 0.227, 0.24, 0.241, 0.241, 0.241, 0.241, 0.241, 0.241, 0.241, 0.241,67 0.241, 0.241, 0.241, 0.241, 0.241, 0.241, 0.241, 0.241,68] as const;69/** Band opacity by distance from its centre, stage px. A smoothstep, near enough. */70export const WIPE_STOPS = [71 -647.2, 0, -566.3, 0.015, -485.4, 0.045, -404.5, 0.084, -323.6, 0.141, -242.7,72 0.22, -161.8, 0.312, -80.9, 0.42, 0, 0.537, 80.9, 0.654, 161.8, 0.757, 242.7,73 0.847, 323.6, 0.913, 404.5, 0.963, 485.4, 0.986, 566.3, 0.999, 647.2, 1,74] as const;75/** Band centre per source frame, stage px. It parks at the left edge and leaves on 63. */76export const WIPE = [77 2967.6, 2967.6, 2967.6, 2967.6, 2967.6, 2967.6, 2967.6, 2967.6, 2967.6,78 2967.6, 2967.6, 2967.6, 2967.6, 2967.6, 2967.6, 2967.6, 2967.6, 2967.6,79 2967.6, 2967.6, 2967.6, 2967.6, 2967.6, 2967.6, 2722.2, 2427.9, 2327.9,80 2265.8, 2130.9, 1958.8, 1678.9, 1169, 657.2, 378.2, 205.5, 82, -11.1, -85,81 -145.5, -193.3, -232.9, -269.4, -293.5, -322.2, -337.5, -353.6, -358, -367.8,82 -368.4, -367.8, -368, -368, -367.5, -367.5, -367.3, -367.4, -367.2, -367.2,83 -367.2, -367.2, -367.2, -372.2, -372.5, -1131.2, -1131.2, -1131.2, -1131.2,84 -1131.2, -1131.2, -1131.2, -1131.2, -1131.2, -1131.2, -1131.2, -1131.2,85 -1131.2, -1131.2, -1131.2,86] as const;8788/** Mark centre and scale per source frame. Scale 1 is the logo on the sky. */89export const MARK_X = [90 881.04, 880.96, 880.96, 880.91, 880.96, 880.99, 880.99, 880.97, 880.98,91 880.97, 880.95, 880.98, 880.97, 880.97, 880.96, 880.95, 880.95, 880.96,92 881.05, 881.05, 881.17, 881.3, 881.83, 882.48, 883.14, 884.45, 886.15, 888.68,93 891.84, 896.58, 902.18, 920.66, 939.13, 949.21, 955.76, 959.13, 961.43,94 962.95, 964.13, 964.72, 965.29, 965.64, 965.75, 965.81, 965.83, 965.79, 965.8,95 965.8, 965.82, 965.85, 965.91, 965.98, 966.03, 966.1, 966.21, 966.37, 966.53,96 966.73, 966.92, 967.01, 967.11, 967.18, 967.25, 967.31, 967.36, 967.38,97 967.41, 967.44, 967.48, 967.49, 967.5, 967.55, 967.56, 967.56, 967.56, 967.58,98 967.6, 967.61,99] as const;100export const MARK_Y = [101 561.09, 557.32, 555.61, 554.2, 553.17, 552.32, 551.59, 551.01, 550.41, 549.95,102 549.51, 549.05, 548.77, 548.5, 548.25, 548.02, 547.77, 547.55, 547.41, 547.33,103 547.2, 547.08, 546.95, 546.86, 546.85, 546.81, 546.78, 546.73, 546.79, 546.94,104 546.75, 546.75, 546.73, 546.76, 546.75, 546.77, 546.78, 546.77, 546.78,105 546.79, 546.78, 546.8, 546.81, 546.79, 546.79, 546.79, 546.8, 546.8, 546.8,106 546.81, 546.8, 546.8, 546.8, 546.8, 546.8, 546.79, 546.78, 546.77, 546.77,107 546.77, 546.76, 546.76, 546.75, 546.75, 546.76, 546.76, 546.75, 546.75,108 546.75, 546.75, 546.76, 546.75, 546.76, 546.76, 546.76, 546.76, 546.76,109 546.76,110] as const;111export const MARK_SCALE = [112 0.8113, 0.9106, 0.9483, 0.972, 0.9876, 0.9987, 1.0062, 1.0073, 1.0075, 1.0086,113 1.0096, 1.01, 1.0098, 1.009, 1.0096, 1.0092, 1.0094, 1.0087, 1.0074, 1.004,114 1.0018, 0.9981, 0.9926, 0.9898, 0.9846, 0.9776, 0.9693, 0.9601, 0.9456,115 0.9177, 0.88, 0.83, 0.7752, 0.7462, 0.7278, 0.7136, 0.7035, 0.6973, 0.6874,116 0.6825, 0.681, 0.6764, 0.6747, 0.6735, 0.6717, 0.6712, 0.671, 0.671, 0.6712,117 0.6719, 0.6731, 0.6745, 0.6759, 0.6777, 0.6805, 0.685, 0.69, 0.6963, 0.7024,118 0.7058, 0.7093, 0.7114, 0.7137, 0.7154, 0.7171, 0.718, 0.7188, 0.7198, 0.7211,119 0.7212, 0.7216, 0.7225, 0.7228, 0.723, 0.7233, 0.724, 0.7248, 0.7248,120] as const;121122/** A short soft edge crosses the mark and swaps its colour: its x per frame from 28, off until it reaches the mark. */123export const FLIP_FROM = 28;124export const FLIP_WIDTH = 65;125export const FLIP_PAPER = [2698.0, 947.9, 933.3, 919.0, 897.2, 810.3] as const;126export const FLIP_INK = [2698.0, 1004.5, 943.6, 922.8, 903.4, 877.8] as const;127128/** The whole line drifts and pushes in around `LINE_PIVOT`. */129export const LINE_SCALE = [130 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163,131 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163,132 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163,133 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163, 0.9163,134 0.9159, 0.9168, 0.9172, 0.9176, 0.9183, 0.9192, 0.9196, 0.9204, 0.9212, 0.922,135 0.9233, 0.9245, 0.9258, 0.9275, 0.9294, 0.9314, 0.9339, 0.9371, 0.9412, 0.947,136 0.9545, 0.9627, 0.9705, 0.9769, 0.9813, 0.9842, 0.9868, 0.989, 0.991, 0.9927,137 0.9942, 0.9953, 0.9967, 0.9978, 0.9987, 0.9995, 1.0001, 1.0007, 1.0011,138 1.0017, 1.0022, 1.0025,139] as const;140export const LINE_X = [141 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2,142 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2,143 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 10.2, 9.05, 8.21, 6.95, 6.01, 5.17,144 4.42, 3.85, 3.24, 2.63, 2.02, 1.56, 1.22, 0.79, 0.42, 0.27, 0.14, 0.07, 0.1,145 0.07, 0.02, 0.16, 0.16, 0.04, -0.08, -0.02, 0.06, 0.07, 0.01, -0.08, -0.05,146 -0.04, -0.01, -0.01, 0.02, 0.02, 0.02, 0, -0.01, 0.01, 0.02, 0, 0, -0.03,147 -0.06,148] as const;149150/** Each word, by frames since it started: px below rest, and opacity. */151export const WORD_RISE = [152 7.91, 5.66, 4.07, 2.82, 2.05, 1.4, 0.91, 0.59, 0.31, 0.1, -0.02, -0.06, -0.07,153] as const;154export const WORD_FADE = [155 0.437, 0.603, 0.71, 0.795, 0.855, 0.896, 0.929, 0.955, 0.973, 0.991, 1.003,156] as const;157158/** The line starts to leave from source frame 65, one word after another. */159export const LEAVE = { from: 65, stagger: 0.7 } as const;160export const LEAVE_Y = [161 -0.2, -0.33, -0.5, -0.72, -1.07, -1.44, -1.88, -2.42, -3.04, -3.82, -4.64,162 -5.61, -6.9,163] as const;164export const LEAVE_FADE = [165 1, 1, 1, 1, 0.983, 0.98, 0.975, 0.971, 0.953, 0.943, 0.919, 0.904, 0.883,166] as const;167168/** Each letter by frames since it cut in, and frames since it started to go. */169export const LETTER_RISE = [170 16.2, 12.15, 10.26, 8.64, 7.29, 5.94, 5, 4.19, 3.51, 2.84, 2.29, 1.89, 1.49,171 1.13, 0.81, 0.54, 0.32, 0.14, 0,172] as const;173export const LETTER_FADE = [1, 0.7, 0.34, 0] as const;174175/** The kuchi mark, outlined. */176export const KUCHI_MARK = {177 width: 723,178 height: 632,179 shapes: [180 "M139.04 0H583.96Q723 0 723 139.04V492.96000000000004Q723 632 583.96 632H139.04Q0 632 0 492.96000000000004V139.04Q0 0 139.04 0Z",181 ],182} as const;183184/** The picture behind the logo, shared with Portal Intro. */185export const SKY = "https://kuchi-media.kalarislabs.com/components/art/art-03.svg";









