Skip to contentSIFAT
Next.js 16 Motion Architecture

Chorma — Bespoke Micro-Interaction Design

An engineering deep dive into building ultra-smooth, GPU-accelerated agency platforms without layout thrashing, bloated component libraries, or generic AI templates.

Explore Live Platform
Engineer Sifat Rahman
Location Chandpur, BD
Framework Next.js / Tailwind
chorma.netlify.app
Chorma Agency Site — Interactive Magnetic Cursor & WCAG Contrast Matrix
Design system: Chorma-Core-v2Render time: 16.6ms (60 FPS)
60 FPS
Target Frame Rate
Hardware GPU accelerated
0.00
CLS Overhead
Zero runtime layout shift
AAA
Theme Contrast
WCAG 2.1 compliant
< 12kb
CSS Weight
Purged utility tokens

01 // Executive Overview

The Problem with Modern Agency Portfolios

Most agency websites rely heavily on off-the-shelf component templates, bloated WebGL shaders, or heavy video embeds that cripple mobile responsiveness and load speed.

Chorma was engineered to demonstrate that high-end motion design and instantaneous page speeds can coexist. By writing bespoke CSS keyframes and math-bound cursor calculations instead of importing massive libraries, the entire platform delivers fluid interactivity with zero bloat.

02 // Design System & Color Math

One Scale, Two First-Class Themes

Dark mode sits on a deep void, light mode on ghost white. Both share one semantic token scale, so a theme toggle swaps surface values without moving type, spacing, or borders.

Void Dark#080511
Aa 20.2:1
Ghost ink on void surface
Ghost Light#FCFBFE
Aa 19.7:1
Void ink on ghost surface
WCAG AAABody 7:1+ / Large type 4.5:1+ / Both modes

03 // Motion Engineering & Physics

GPU Physics & Smooth Orbital Keyframes

Magnetic Cursor Delta Math

Rather than attaching heavy scroll/move event listeners directly to the window, Chorma uses relative offset bounds (getBoundingClientRect) with dampening factors to pull controls seamlessly toward the user cursor without triggering main-thread layout recalculations.

Dual First-Class Theme Engineering

Instead of treating Light Mode as a quick inverted CSS filter, Chorma defines separate high-contrast semantic design tokens. Dark Mode sits on a deep void (#080511), while Light Mode utilizes a ghost white surface (#FCFBFE).

Orbital Motion Without Payloads

Custom orbital loaders run on transform-only rotation with independent durations per ring. No GIF, Lottie, or canvas — just compositor-friendly motion that never shifts layout.

04 // Code & Architecture Sandbox

The Motion Primitives, Unfiltered

Production patterns from the Chorma build. Switch tabs to compare the orbital motion engine against the semantic theme contract.

// OrbitalLoader — transform-only rotation, zero layout shift
import { motion } from "motion/react";

export function OrbitalLoader({ duration = 2.4 }: { duration?: number }) {
  return (
    <div className="relative h-28 w-28">
      <div className="absolute inset-0 rounded-full border border-white/10" />
      <motion.div
        className="absolute inset-0"
        animate={{ rotate: 360 }}
        transition={{ duration, repeat: Infinity, ease: "linear" }}
      >
        <span className="absolute left-1/2 top-0 h-2.5 w-2.5 -translate-x-1/2 rounded-full bg-white" />
      </motion.div>
      <motion.div
        className="absolute inset-4"
        animate={{ rotate: -360 }}
        transition={{ duration: duration * 1.6, repeat: Infinity, ease: "linear" }}
      >
        <span className="absolute bottom-0 left-1/2 h-2 w-2 -translate-x-1/2 rounded-full bg-zinc-500" />
      </motion.div>
      <span className="absolute inset-0 m-auto h-2 w-2 rounded-full bg-white/80" />
    </div>
  );
}
Live Cursor Delta Sandbox
INTERACTIVE
Offset X: 0pxOffset Y: 0px
Theme Token Matrix
Current Background: #080511

Contrast Preservation

Notice how the typographic scale and legibility remain identical regardless of the current theme state. No rushed secondary modes.

≈ 20.2 : 1 · WCAG AAA
Orbital Loader Telemetry
GPU
Speed1.6s
Frames60 fps

1.6s loop / 0 KB assets / transform-only

05 // Framework & Tooling Stack

Next.js App RouterTailwind CSSFramer MotionLucide ReactGPU LayeringNetlify CI/CDKilo Code AI WorkflowsTypeScript 5.0