Source identity
| Field | Recorded value |
|---|---|
| Source type | archive member |
| Original record | ch07-compression.html |
| Date | Not specified in source |
| Path or archive member | archives/libsrc-1c3f88063121/NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__megamind-258b-neurons__d5baa307-3c60-4504-827c-c9c4449caf31/originals/deploy_698104b5fbe3d9e6d8e3f3e0/ch07-compression.html |
| Original SHA-256 | 5e3dfcdb5bf0eb58ba22acf3b30fd580cb575cff544cb0b38768adc9af8d9426 |
| Reading-copy SHA-256 | 5e3dfcdb5bf0eb58ba22acf3b30fd580cb575cff544cb0b38768adc9af8d9426 |
| Archive source | {"sourceId": "libsrc-1c3f88063121", "member": "NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__megamind-258b-neurons__d5baa307-3c60-4504-827c-c9c4449caf31/originals/deploy_698104b5fbe3d9e6d8e3f3e0/ch07-compression.html"} |
Every recorded occurrence
These 4 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| ch07-compression.html | {"sourceId": "libsrc-1c3f88063121", "member": "NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__megamind-258b-neurons__d5baa307-3c60-4504-827c-c9c4449caf31/originals/deploy_698104b5fbe3d9e6d8e3f3e0/ch07-compression.html"} | libsrc-478529beec72 | archives/libsrc-1c3f88063121/NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__megamind-258b-neurons__d5baa307-3c60-4504-827c-c9c4449caf31/originals/deploy_698104b5fbe3d9e6d8e3f3e0/ch07-compression.html |
| ch07-compression.html | {"sourceId": "libsrc-1c3f88063121", "member": "NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__feed-the-joe__8de87f1b-a5a4-4d10-9d82-4e8f27729768/originals/deploy_6980fcb4ca86308cf2464bcd/ch07-compression.html"} | libsrc-d67040649ff7 | archives/libsrc-1c3f88063121/NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__feed-the-joe__8de87f1b-a5a4-4d10-9d82-4e8f27729768/originals/deploy_6980fcb4ca86308cf2464bcd/ch07-compression.html |
| 2a0d24a81a31686f4e1641e6a59b2294af1b6c05 | {"sourceId": "libsrc-1c3f88063121", "member": "NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__megamind-258b-neurons__d5baa307-3c60-4504-827c-c9c4449caf31/originals/.content_store/2a/2a0d24a81a31686f4e1641e6a59b2294af1b6c05"} | libsrc-03e8d0728b63 | archives/libsrc-1c3f88063121/NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__megamind-258b-neurons__d5baa307-3c60-4504-827c-c9c4449caf31/originals/.content_store/2a/2a0d24a81a31686f4e1641e6a59b2294af1b6c05 |
| 2a0d24a81a31686f4e1641e6a59b2294af1b6c05 | {"sourceId": "libsrc-1c3f88063121", "member": "NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__feed-the-joe__8de87f1b-a5a4-4d10-9d82-4e8f27729768/originals/.content_store/2a/2a0d24a81a31686f4e1641e6a59b2294af1b6c05"} | libsrc-28b89d8ad94c | archives/libsrc-1c3f88063121/NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/sites/janady13__feed-the-joe__8de87f1b-a5a4-4d10-9d82-4e8f27729768/originals/.content_store/2a/2a0d24a81a31686f4e1641e6a59b2294af1b6c05 |
Recovered source transcript
Download complete source text ↓1,579 lines · 42.3 KB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MEGAMIND | BrainDNA Compression</title>
<link href="https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
:root {
--bg: #030308;
--bg-secondary: #0a0a12;
--text: #e8eaf0;
--text-dim: #6b7280;
--green: #00ff88;
--green-dim: rgba(0, 255, 136, 0.15);
--cyan: #00d4ff;
--cyan-dim: rgba(0, 212, 255, 0.15);
--purple: #b388ff;
--red: #ff4757;
--mono: 'JetBrains Mono', 'Space Mono', monospace;
--sans: 'Inter', -apple-system, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
scroll-behavior: smooth;
}
body {
font-family: var(--sans);
background: var(--bg);
color: var(--text);
overflow-x: hidden;
cursor: none;
}
/* Custom Cursor */
.cursor {
position: fixed;
width: 20px;
height: 20px;
border: 2px solid var(--green);
border-radius: 50%;
pointer-events: none;
z-index: 10000;
transition: transform 0.15s ease, background 0.15s ease;
mix-blend-mode: difference;
}
.cursor-dot {
position: fixed;
width: 6px;
height: 6px;
background: var(--cyan);
border-radius: 50%;
pointer-events: none;
z-index: 10001;
}
.cursor.hover {
transform: scale(2);
background: rgba(0, 255, 136, 0.2);
}
/* Noise overlay */
.noise {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 9999;
opacity: 0.03;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
/* Navigation */
.nav {
position: fixed;
top: 0;
left: 0;
right: 0;
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem 3rem;
z-index: 100;
background: linear-gradient(180deg, rgba(3,3,8,0.98) 0%, rgba(3,3,8,0.8) 50%, transparent 100%);
}
.nav-logo {
font-family: var(--mono);
font-size: 0.65rem;
letter-spacing: 0.3em;
color: var(--text-dim);
}
.nav-chapter {
font-family: var(--mono);
font-size: 0.55rem;
letter-spacing: 0.2em;
color: var(--green);
padding: 0.5rem 1rem;
border: 1px solid rgba(0, 255, 136, 0.3);
border-radius: 20px;
}
/* Hero Section */
.hero {
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 6rem 2rem;
position: relative;
overflow: hidden;
}
.hero-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background:
radial-gradient(ellipse 80% 50% at 50% 50%, rgba(0, 255, 136, 0.08) 0%, transparent 60%),
radial-gradient(ellipse 60% 40% at 30% 70%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
z-index: -1;
}
.hero-particles {
position: absolute;
width: 100%;
height: 100%;
overflow: hidden;
z-index: -1;
}
.particle {
position: absolute;
width: 2px;
height: 2px;
background: var(--green);
border-radius: 50%;
animation: float 20s infinite linear;
opacity: 0.4;
}
@keyframes float {
0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
10% { opacity: 0.6; }
90% { opacity: 0.6; }
100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}
.hero-label {
font-family: var(--mono);
font-size: 0.6rem;
letter-spacing: 0.8em;
color: var(--cyan);
margin-bottom: 3rem;
opacity: 0;
animation: fadeSlideUp 1s 0.5s forwards;
}
@keyframes fadeSlideUp {
to { opacity: 1; transform: translateY(0); }
from { opacity: 0; transform: translateY(20px); }
}
.hero-number-container {
margin-bottom: 2rem;
}
.hero-number {
font-family: var(--mono);
font-size: clamp(2.5rem, 8vw, 6rem);
font-weight: 700;
line-height: 1.1;
margin-bottom: 0.5rem;
position: relative;
}
.hero-number.neurons {
color: var(--red);
opacity: 0;
animation: fadeSlideUp 1s 0.8s forwards;
}
.hero-number.neurons .value {
display: inline-block;
}
.hero-arrow {
font-size: 3rem;
color: var(--text-dim);
margin: 1rem 0;
opacity: 0;
animation: fadeSlideUp 0.8s 1.5s forwards, pulse 2s 2.5s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 0.5; transform: translateY(0); }
50% { opacity: 1; transform: translateY(5px); }
}
.hero-number.bytes {
background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
opacity: 0;
animation: fadeSlideUp 1s 2s forwards, glow 3s 3s infinite;
}
@keyframes glow {
0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.5)); }
50% { filter: drop-shadow(0 0 40px rgba(0, 255, 136, 0.8)); }
}
.hero-unit {
font-size: 0.4em;
opacity: 0.7;
margin-left: 0.5rem;
}
.hero-subtitle {
font-size: 1.1rem;
color: var(--text-dim);
max-width: 500px;
line-height: 1.8;
opacity: 0;
animation: fadeSlideUp 1s 2.5s forwards;
}
.scroll-indicator {
position: absolute;
bottom: 3rem;
left: 50%;
transform: translateX(-50%);
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5rem;
opacity: 0;
animation: fadeSlideUp 1s 3s forwards;
}
.scroll-indicator span {
font-family: var(--mono);
font-size: 0.5rem;
letter-spacing: 0.3em;
color: var(--text-dim);
}
.scroll-line {
width: 1px;
height: 40px;
background: linear-gradient(180deg, var(--green), transparent);
animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
50% { opacity: 1; transform: scaleY(1); }
}
/* Ratio Section */
.ratio-section {
padding: 8rem 2rem;
display: flex;
flex-direction: column;
align-items: center;
position: relative;
background: linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 50%, var(--bg) 100%);
}
.ratio-label {
font-family: var(--mono);
font-size: 0.55rem;
letter-spacing: 0.5em;
color: var(--cyan);
margin-bottom: 2rem;
}
.ratio-display {
position: relative;
text-align: center;
}
.ratio-number {
font-family: var(--mono);
font-size: clamp(4rem, 15vw, 12rem);
font-weight: 800;
background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 50%, var(--purple) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
line-height: 1;
letter-spacing: -0.02em;
}
.ratio-suffix {
font-family: var(--mono);
font-size: clamp(1.5rem, 5vw, 3rem);
color: var(--text);
margin-left: 0.5rem;
opacity: 0.8;
}
.ratio-description {
font-size: 1rem;
color: var(--text-dim);
margin-top: 2rem;
max-width: 400px;
text-align: center;
line-height: 1.8;
}
/* Visual Compression Demo */
.compression-demo {
padding: 8rem 2rem;
max-width: 1200px;
margin: 0 auto;
}
.section-header {
text-align: center;
margin-bottom: 4rem;
}
.section-tag {
font-family: var(--mono);
font-size: 0.55rem;
letter-spacing: 0.5em;
color: var(--green);
margin-bottom: 1rem;
display: block;
}
.section-title {
font-size: clamp(2rem, 5vw, 3.5rem);
font-weight: 700;
line-height: 1.2;
}
.demo-container {
display: grid;
grid-template-columns: 1fr auto 1fr;
gap: 2rem;
align-items: center;
margin-bottom: 4rem;
}
.demo-box {
padding: 3rem 2rem;
border-radius: 20px;
text-align: center;
position: relative;
overflow: hidden;
}
.demo-box.before {
background: linear-gradient(135deg, rgba(255, 71, 87, 0.1) 0%, rgba(255, 71, 87, 0.02) 100%);
border: 1px solid rgba(255, 71, 87, 0.3);
}
.demo-box.after {
background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 212, 255, 0.02) 100%);
border: 1px solid rgba(0, 255, 136, 0.3);
}
.demo-label {
font-family: var(--mono);
font-size: 0.55rem;
letter-spacing: 0.3em;
color: var(--text-dim);
margin-bottom: 1.5rem;
}
.demo-value {
font-family: var(--mono);
font-size: clamp(2rem, 5vw, 3.5rem);
font-weight: 700;
margin-bottom: 0.5rem;
}
.demo-box.before .demo-value {
color: var(--red);
}
.demo-box.after .demo-value {
color: var(--green);
}
.demo-description {
font-size: 0.85rem;
color: var(--text-dim);
}
.demo-arrow {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
}
.demo-arrow-icon {
font-size: 2rem;
color: var(--cyan);
animation: arrowPulse 1.5s infinite;
}
@keyframes arrowPulse {
0%, 100% { transform: translateX(0); opacity: 0.5; }
50% { transform: translateX(10px); opacity: 1; }
}
.demo-arrow span {
font-family: var(--mono);
font-size: 0.5rem;
letter-spacing: 0.2em;
color: var(--text-dim);
writing-mode: vertical-rl;
text-orientation: mixed;
}
/* Neuron Grid Animation */
.neuron-grid {
display: grid;
grid-template-columns: repeat(20, 1fr);
gap: 3px;
padding: 2rem;
background: rgba(255, 255, 255, 0.02);
border-radius: 12px;
margin: 2rem 0;
}
.neuron-dot {
aspect-ratio: 1;
background: var(--red);
border-radius: 50%;
opacity: 0.8;
transition: all 0.5s ease;
}
.neuron-dot.compressed {
background: var(--green);
transform: scale(0);
opacity: 0;
}
.compression-progress {
margin-top: 2rem;
}
.progress-bar {
height: 4px;
background: rgba(255, 255, 255, 0.1);
border-radius: 2px;
overflow: hidden;
margin-bottom: 1rem;
}
.progress-fill {
height: 100%;
width: 0%;
background: linear-gradient(90deg, var(--red), var(--green));
border-radius: 2px;
transition: width 3s ease-out;
}
.progress-stats {
display: flex;
justify-content: space-between;
font-family: var(--mono);
font-size: 0.7rem;
}
.progress-stats .remaining {
color: var(--red);
}
.progress-stats .compressed {
color: var(--green);
}
/* DNA Helix Visualization */
.dna-section {
padding: 8rem 2rem;
position: relative;
overflow: hidden;
background: var(--bg-secondary);
}
.dna-container {
max-width: 1000px;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4rem;
align-items: center;
}
.dna-helix {
height: 500px;
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.helix-strand {
position: absolute;
width: 200px;
height: 100%;
}
.helix-node {
position: absolute;
width: 12px;
height: 12px;
border-radius: 50%;
left: 50%;
transform: translateX(-50%);
}
.helix-node.left {
background: var(--green);
box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}
.helix-node.right {
background: var(--cyan);
box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}
.helix-connector {
position: absolute;
height: 2px;
background: linear-gradient(90deg, var(--green), var(--cyan));
left: 50%;
transform: translateX(-50%);
opacity: 0.3;
}
.dna-info h3 {
font-size: 2rem;
font-weight: 600;
margin-bottom: 1.5rem;
}
.dna-info p {
color: var(--text-dim);
line-height: 1.8;
margin-bottom: 2rem;
}
.dna-code {
background: rgba(0, 0, 0, 0.4);
border: 1px solid rgba(0, 255, 136, 0.2);
border-radius: 12px;
padding: 1.5rem;
font-family: var(--mono);
font-size: 0.75rem;
overflow-x: auto;
}
.dna-code .comment {
color: var(--text-dim);
}
.dna-code .keyword {
color: var(--purple);
}
.dna-code .type {
color: var(--cyan);
}
.dna-code .value {
color: var(--green);
}
/* BrainDNA Structure */
.structure-section {
padding: 8rem 2rem;
max-width: 1000px;
margin: 0 auto;
}
.structure-card {
background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, rgba(0, 212, 255, 0.02) 100%);
border: 1px solid rgba(0, 255, 136, 0.2);
border-radius: 20px;
padding: 3rem;
margin-top: 3rem;
}
.structure-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
padding-bottom: 1.5rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.structure-header h4 {
font-family: var(--mono);
font-size: 0.7rem;
letter-spacing: 0.2em;
color: var(--green);
}
.structure-total {
font-family: var(--mono);
font-size: 1.5rem;
font-weight: 700;
color: var(--cyan);
}
.struct-row {
display: grid;
grid-template-columns: 2fr 1fr 1fr 2fr;
gap: 1rem;
padding: 1rem 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
font-family: var(--mono);
font-size: 0.8rem;
align-items: center;
}
.struct-row:last-child {
border-bottom: none;
}
.struct-field {
color: var(--text);
}
.struct-type {
color: var(--purple);
}
.struct-size {
color: var(--green);
text-align: right;
}
.struct-value {
color: var(--text-dim);
font-size: 0.7rem;
}
.size-bar {
height: 4px;
background: rgba(255, 255, 255, 0.1);
border-radius: 2px;
margin-top: 0.5rem;
overflow: hidden;
}
.size-bar-fill {
height: 100%;
background: linear-gradient(90deg, var(--green), var(--cyan));
border-radius: 2px;
transition: width 1s ease-out;
}
/* Animated Counters Section */
.counters-section {
padding: 8rem 2rem;
background: linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
}
.counters-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
max-width: 1200px;
margin: 3rem auto 0;
}
.counter-card {
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 16px;
padding: 2rem;
text-align: center;
position: relative;
overflow: hidden;
transition: transform 0.3s ease, border-color 0.3s ease;
}
.counter-card:hover {
transform: translateY(-5px);
border-color: rgba(0, 255, 136, 0.3);
}
.counter-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(90deg, var(--green), var(--cyan));
opacity: 0;
transition: opacity 0.3s ease;
}
.counter-card:hover::before {
opacity: 1;
}
.counter-icon {
font-size: 2rem;
margin-bottom: 1rem;
}
.counter-value {
font-family: var(--mono);
font-size: 2.5rem;
font-weight: 700;
background: linear-gradient(135deg, var(--green), var(--cyan));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 0.5rem;
}
.counter-label {
font-size: 0.85rem;
color: var(--text-dim);
margin-bottom: 0.5rem;
}
.counter-sublabel {
font-family: var(--mono);
font-size: 0.65rem;
color: var(--text-dim);
opacity: 0.6;
}
/* Technical Explanation */
.tech-section {
padding: 8rem 2rem;
max-width: 900px;
margin: 0 auto;
}
.tech-content {
margin-top: 4rem;
}
.tech-block {
margin-bottom: 4rem;
opacity: 0;
transform: translateY(30px);
transition: all 0.8s ease;
}
.tech-block.visible {
opacity: 1;
transform: translateY(0);
}
.tech-block h3 {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 1.5rem;
display: flex;
align-items: center;
gap: 1rem;
}
.tech-block h3::before {
content: '';
width: 30px;
height: 2px;
background: linear-gradient(90deg, var(--green), var(--cyan));
}
.tech-block p {
color: var(--text-dim);
line-height: 2;
font-size: 1.05rem;
}
.tech-highlight {
color: var(--green);
font-weight: 500;
}
.tech-formula {
background: rgba(0, 0, 0, 0.3);
border-left: 3px solid var(--cyan);
padding: 1.5rem 2rem;
margin: 1.5rem 0;
font-family: var(--mono);
font-size: 0.9rem;
border-radius: 0 8px 8px 0;
}
/* Comparison Timeline */
.timeline-section {
padding: 8rem 2rem;
background: var(--bg-secondary);
}
.timeline {
max-width: 800px;
margin: 4rem auto 0;
position: relative;
}
.timeline::before {
content: '';
position: absolute;
left: 50%;
top: 0;
bottom: 0;
width: 2px;
background: linear-gradient(180deg, var(--green), var(--cyan), var(--purple));
transform: translateX(-50%);
}
.timeline-item {
display: flex;
justify-content: flex-end;
padding-right: calc(50% + 30px);
position: relative;
margin-bottom: 3rem;
}
.timeline-item:nth-child(even) {
justify-content: flex-start;
padding-right: 0;
padding-left: calc(50% + 30px);
}
.timeline-dot {
position: absolute;
left: 50%;
top: 1rem;
width: 16px;
height: 16px;
background: var(--bg);
border: 3px solid var(--green);
border-radius: 50%;
transform: translateX(-50%);
z-index: 1;
}
.timeline-content {
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
padding: 1.5rem;
max-width: 300px;
}
.timeline-content h4 {
font-family: var(--mono);
font-size: 0.65rem;
letter-spacing: 0.2em;
color: var(--cyan);
margin-bottom: 0.5rem;
}
.timeline-content .value {
font-family: var(--mono);
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 0.5rem;
}
.timeline-content p {
font-size: 0.85rem;
color: var(--text-dim);
}
/* Chapter Navigation */
.chapter-nav {
display: flex;
justify-content: space-between;
padding: 3rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
max-width: 1200px;
margin: 0 auto;
}
.chapter-nav a {
font-family: var(--mono);
font-size: 0.65rem;
letter-spacing: 0.1em;
color: var(--text-dim);
text-decoration: none;
padding: 1rem 2rem;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
transition: all 0.3s ease;
}
.chapter-nav a:hover {
color: var(--green);
border-color: rgba(0, 255, 136, 0.3);
background: rgba(0, 255, 136, 0.05);
}
/* Footer */
.footer {
text-align: center;
padding: 2rem;
font-family: var(--mono);
font-size: 0.55rem;
letter-spacing: 0.2em;
color: var(--text-dim);
}
/* Responsive */
@media (max-width: 768px) {
.nav {
padding: 1rem 1.5rem;
}
.demo-container {
grid-template-columns: 1fr;
gap: 1rem;
}
.demo-arrow {
transform: rotate(90deg);
}
.dna-container {
grid-template-columns: 1fr;
}
.dna-helix {
height: 300px;
}
.struct-row {
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
}
.struct-value {
grid-column: span 2;
}
.timeline::before {
left: 20px;
}
.timeline-item,
.timeline-item:nth-child(even) {
justify-content: flex-start;
padding-left: 50px;
padding-right: 0;
}
.timeline-dot {
left: 20px;
}
.timeline-content {
max-width: none;
}
}
/* Scroll animations */
.reveal {
opacity: 0;
transform: translateY(40px);
transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
opacity: 1;
transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
</style>
</head>
<body>
<div class="cursor"></div>
<div class="cursor-dot"></div>
<div class="noise"></div>
<nav class="nav">
<span class="nav-logo">MEGAMIND</span>
<span class="nav-chapter">07 / THE COMPRESSION</span>
</nav>
<!-- Hero Section -->
<section class="hero">
<div class="hero-bg"></div>
<div class="hero-particles" id="particles"></div>
<div class="hero-label">BRAINDNA COMPRESSION TECHNOLOGY</div>
<div class="hero-number-container">
<div class="hero-number neurons">
<span class="value" id="neuronCounter">86,000,000,000</span>
<span class="hero-unit">neurons</span>
</div>
<div class="hero-arrow">↓</div>
<div class="hero-number bytes">
<span class="value" id="byteCounter">35</span>
<span class="hero-unit">bytes</span>
</div>
</div>
<p class="hero-subtitle">
The most extreme compression ratio ever achieved. 86 billion neurons deterministically regenerated from a 35-byte seed.
</p>
<div class="scroll-indicator">
<span>SCROLL TO EXPLORE</span>
<div class="scroll-line"></div>
</div>
</section>
<!-- Ratio Display Section -->
<section class="ratio-section">
<span class="ratio-label">COMPRESSION RATIO</span>
<div class="ratio-display reveal">
<span class="ratio-number" id="ratioCounter">170,000,000</span>
<span class="ratio-suffix">: 1</span>
</div>
<p class="ratio-description reveal reveal-delay-1">
One hundred seventy million to one. The entire neural topology encoded in less space than a tweet.
</p>
</section>
<!-- Visual Compression Demo -->
<section class="compression-demo">
<div class="section-header reveal">
<span class="section-tag">VISUAL DEMONSTRATION</span>
<h2 class="section-title">Before & After Compression</h2>
</div>
<div class="demo-container reveal reveal-delay-1">
<div class="demo-box before">
<div class="demo-label">BEFORE COMPRESSION</div>
<div class="demo-value" id="beforeSize">6,000,000,000,000</div>
<div class="demo-description">bytes (6 TB naive storage)</div>
</div>
<div class="demo-arrow">
<span>BRAINDNA</span>
<div class="demo-arrow-icon">→</div>
<span>ENCODING</span>
</div>
<div class="demo-box after">
<div class="demo-label">AFTER COMPRESSION</div>
<div class="demo-value">35</div>
<div class="demo-description">bytes (seed + parameters)</div>
</div>
</div>
<!-- Neuron Grid Animation -->
<div class="reveal reveal-delay-2">
<div class="section-tag" style="text-align: center; margin-bottom: 1rem;">NEURON COLLAPSE SIMULATION</div>
<div class="neuron-grid" id="neuronGrid"></div>
<div class="compression-progress">
<div class="progress-bar">
<div class="progress-fill" id="progressFill"></div>
</div>
<div class="progress-stats">
<span class="remaining">Neurons: <span id="remainingCount">400</span></span>
<span class="compressed">Compressed to: <span id="compressedBytes">35 bytes</span></span>
</div>
</div>
</div>
</section>
<!-- DNA Helix Visualization -->
<section class="dna-section">
<div class="dna-container">
<div class="dna-helix reveal" id="dnaHelix">
<div class="helix-strand" id="helixStrand"></div>
</div>
<div class="dna-info">
<div class="section-tag reveal">BRAINDNA ENCODING</div>
<h3 class="reveal reveal-delay-1">Deterministic Topology Generation</h3>
<p class="reveal reveal-delay-2">
BrainDNA doesn't store neurons. Instead, it encodes the mathematical rules that generate them. A single 64-bit seed, combined with a few parameters, deterministically produces the exact same 86 billion neuron network every time.
</p>
<div class="dna-code reveal reveal-delay-3">
<span class="comment">// The entire brain in 35 bytes</span><br>
<span class="keyword">struct</span> <span class="type">BrainDNA</span> {<br>
seed: <span class="type">u64</span>, <span class="comment">// 8 bytes</span><br>
neurons: <span class="type">u64</span>, <span class="comment">// 8 bytes</span><br>
regions: <span class="type">u8</span>, <span class="comment">// 1 byte</span><br>
params: <span class="type">[f32; 4]</span> <span class="comment">// 16 bytes</span><br>
} <span class="comment">// Total: 35 bytes</span>
</div>
</div>
</div>
</section>
<!-- BrainDNA Structure -->
<section class="structure-section">
<div class="section-header reveal">
<span class="section-tag">DATA STRUCTURE</span>
<h2 class="section-title">The 35-Byte Blueprint</h2>
</div>
<div class="structure-card reveal reveal-delay-1">
<div class="structure-header">
<h4>BRAINDNA SPECIFICATION</h4>
<span class="structure-total">35 bytes total</span>
</div>
<div class="struct-row" data-bytes="8">
<span class="struct-field">Seed</span>
<span class="struct-type">uint64</span>
<span class="struct-size">8 bytes</span>
<span class="struct-value">0xDEADBEEF_CAFEBABE</span>
</div>
<div class="size-bar"><div class="size-bar-fill" style="width: 0%"></div></div>
<div class="struct-row" data-bytes="8">
<span class="struct-field">NumNeurons</span>
<span class="struct-type">uint64</span>
<span class="struct-size">8 bytes</span>
<span class="struct-value">86,000,000,000</span>
</div>
<div class="size-bar"><div class="size-bar-fill" style="width: 0%"></div></div>
<div class="struct-row" data-bytes="1">
<span class="struct-field">NumRegions</span>
<span class="struct-type">uint8</span>
<span class="struct-size">1 byte</span>
<span class="struct-value">7 (Sefer regions)</span>
</div>
<div class="size-bar"><div class="size-bar-fill" style="width: 0%"></div></div>
<div class="struct-row" data-bytes="1">
<span class="struct-field">LocalConns</span>
<span class="struct-type">uint8</span>
<span class="struct-size">1 byte</span>
<span class="struct-value">6 (small-world radius)</span>
</div>
<div class="size-bar"><div class="size-bar-fill" style="width: 0%"></div></div>
<div class="struct-row" data-bytes="4">
<span class="struct-field">LongRangeProb</span>
<span class="struct-type">float32</span>
<span class="struct-size">4 bytes</span>
<span class="struct-value">0.01 (hub probability)</span>
</div>
<div class="size-bar"><div class="size-bar-fill" style="width: 0%"></div></div>
<div class="struct-row" data-bytes="4">
<span class="struct-field">InhibRatio</span>
<span class="struct-type">float32</span>
<span class="struct-size">4 bytes</span>
<span class="struct-value">0.2 (inhibitory ratio)</span>
</div>
<div class="size-bar"><div class="size-bar-fill" style="width: 0%"></div></div>
<div class="struct-row" data-bytes="8">
<span class="struct-field">PhaseOffset</span>
<span class="struct-type">float64</span>
<span class="struct-size">8 bytes</span>
<span class="struct-value">φ = 1.618033988749895</span>
</div>
<div class="size-bar"><div class="size-bar-fill" style="width: 0%"></div></div>
</div>
</section>
<!-- Animated Counters -->
<section class="counters-section">
<div class="section-header reveal">
<span class="section-tag">COMPRESSION ACHIEVEMENTS</span>
<h2 class="section-title">By The Numbers</h2>
</div>
<div class="counters-grid">
<div class="counter-card reveal reveal-delay-1">
<div class="counter-icon">🧠</div>
<div class="counter-value"><span class="counter" data-target="86000000000">0</span></div>
<div class="counter-label">Neurons Encoded</div>
<div class="counter-sublabel">86 BILLION</div>
</div>
<div class="counter-card reveal reveal-delay-2">
<div class="counter-icon">💾</div>
<div class="counter-value"><span class="counter" data-target="35">0</span></div>
<div class="counter-label">Bytes Required</div>
<div class="counter-sublabel">LESS THAN A TWEET</div>
</div>
<div class="counter-card reveal reveal-delay-3">
<div class="counter-icon">📈</div>
<div class="counter-value"><span class="counter" data-target="170000000">0</span>:1</div>
<div class="counter-label">Compression Ratio</div>
<div class="counter-sublabel">170 MILLION TO ONE</div>
</div>
<div class="counter-card reveal reveal-delay-4">
<div class="counter-icon">🤖</div>
<div class="counter-value"><span class="counter" data-target="39">0</span>+</div>
<div class="counter-label">Models Compressed</div>
<div class="counter-sublabel">HUGGINGFACE MODELS</div>
</div>
</div>
</section>
<!-- Technical Explanation -->
<section class="tech-section">
<div class="section-header reveal">
<span class="section-tag">HOW IT WORKS</span>
<h2 class="section-title">The Science of Extreme Compression</h2>
</div>
<div class="tech-content">
<div class="tech-block">
<h3>Deterministic Generation</h3>
<p>
Traditional storage would require <span class="tech-highlight">~6 terabytes</span> to store 86 billion neurons with their connections. BrainDNA instead stores the <span class="tech-highlight">algorithm</span> that generates them. Given the same seed, the same neural network is produced every time, bit for bit.
</p>
<div class="tech-formula">
neuron[i] = hash(seed, i) % topology_space
</div>
</div>
<div class="tech-block">
<h3>Small-World Networks</h3>
<p>
The brain uses a <span class="tech-highlight">small-world topology</span> - most connections are local, with rare long-range hubs. This pattern is mathematically regular and can be generated from just two parameters: local connection radius and long-range probability.
</p>
<div class="tech-formula">
P(long_range) = 0.01 | local_radius = 6
</div>
</div>
<div class="tech-block">
<h3>Golden Ratio Phase</h3>
<p>
The <span class="tech-highlight">golden ratio (φ = 1.618...)</span> provides optimal phase distribution across neural oscillations, maximizing information flow while minimizing interference. One 8-byte float encodes this universal constant.
</p>
<div class="tech-formula">
phase[i] = (i * φ) mod 2π
</div>
</div>
</div>
</section>
<!-- Comparison Timeline -->
<section class="timeline-section">
<div class="section-header reveal">
<span class="section-tag">CONTEXT</span>
<h2 class="section-title">Compression in Perspective</h2>
</div>
<div class="timeline">
<div class="timeline-item reveal">
<div class="timeline-dot"></div>
<div class="timeline-content">
<h4>NAIVE STORAGE</h4>
<div class="value" style="color: var(--red);">6 TB</div>
<p>Storing each neuron and connection directly</p>
</div>
</div>
<div class="timeline-item reveal reveal-delay-1">
<div class="timeline-dot"></div>
<div class="timeline-content">
<h4>TRADITIONAL COMPRESSION</h4>
<div class="value" style="color: #ffa502;">~600 GB</div>
<p>ZIP/GZIP achieves roughly 10x compression</p>
</div>
</div>
<div class="timeline-item reveal reveal-delay-2">
<div class="timeline-dot"></div>
<div class="timeline-content">
<h4>NEURAL NETWORK PRUNING</h4>
<div class="value" style="color: #f9ca24;">~60 GB</div>
<p>Aggressive pruning achieves 100x</p>
</div>
</div>
<div class="timeline-item reveal reveal-delay-3">
<div class="timeline-dot"></div>
<div class="timeline-content">
<h4>KNOWLEDGE DISTILLATION</h4>
<div class="value" style="color: var(--cyan);">~6 MB</div>
<p>State-of-the-art achieves 1M:1</p>
</div>
</div>
<div class="timeline-item reveal reveal-delay-4">
<div class="timeline-dot"></div>
<div class="timeline-content">
<h4>BRAINDNA</h4>
<div class="value" style="color: var(--green);">35 bytes</div>
<p>170,000,000:1 - a new paradigm</p>
</div>
</div>
</div>
</section>
<!-- Chapter Navigation -->
<nav class="chapter-nav">
<a href="ch06-golden-ratio.html">← Previous: The Golden Ratio</a>
<a href="ch08-maddie.html">Next: MADDIE →</a>
</nav>
<footer class="footer">
MEGAMIND / CHAPTER 07 / THE COMPRESSION
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/ScrollTrigger.min.js"></script>
<script>
// Custom Cursor
const cursor = document.querySelector('.cursor');
const cursorDot = document.querySelector('.cursor-dot');
let mouseX = 0, mouseY = 0;
let cursorX = 0, cursorY = 0;
document.addEventListener('mousemove', (e) => {
mouseX = e.clientX;
mouseY = e.clientY;
cursorDot.style.left = mouseX - 3 + 'px';
cursorDot.style.top = mouseY - 3 + 'px';
});
function animateCursor() {
cursorX += (mouseX - cursorX) * 0.15;
cursorY += (mouseY - cursorY) * 0.15;
cursor.style.left = cursorX - 10 + 'px';
cursor.style.top = cursorY - 10 + 'px';
requestAnimationFrame(animateCursor);
}
animateCursor();
document.querySelectorAll('a, button, .counter-card').forEach(el => {
el.addEventListener('mouseenter', () => cursor.classList.add('hover'));
el.addEventListener('mouseleave', () => cursor.classList.remove('hover'));
});
// Generate Particles
const particlesContainer = document.getElementById('particles');
for (let i = 0; i < 50; i++) {
const particle = document.createElement('div');
particle.className = 'particle';
particle.style.left = Math.random() * 100 + '%';
particle.style.animationDelay = Math.random() * 20 + 's';
particle.style.animationDuration = (15 + Math.random() * 10) + 's';
particlesContainer.appendChild(particle);
}
// GSAP ScrollTrigger
gsap.registerPlugin(ScrollTrigger);
// Reveal animations
const reveals = document.querySelectorAll('.reveal');
reveals.forEach(el => {
ScrollTrigger.create({
trigger: el,
start: 'top 85%',
onEnter: () => el.classList.add('visible'),
once: true
});
});
// Tech blocks
document.querySelectorAll('.tech-block').forEach(block => {
ScrollTrigger.create({
trigger: block,
start: 'top 80%',
onEnter: () => block.classList.add('visible'),
once: true
});
});
// Animated number counters
function animateCounter(el, target, duration = 2000, format = true) {
const start = 0;
const startTime = performance.now();
function update(currentTime) {
const elapsed = currentTime - startTime;
const progress = Math.min(elapsed / duration, 1);
const easeProgress = 1 - Math.pow(1 - progress, 4);
const current = Math.floor(start + (target - start) * easeProgress);
if (format && target >= 1000) {
el.textContent = current.toLocaleString();
} else {
el.textContent = current;
}
if (progress < 1) {
requestAnimationFrame(update);
}
}
requestAnimationFrame(update);
}
// Counter cards animation
document.querySelectorAll('.counter').forEach(counter => {
const target = parseInt(counter.dataset.target);
ScrollTrigger.create({
trigger: counter,
start: 'top 85%',
onEnter: () => animateCounter(counter, target, 2500),
once: true
});
});
// Hero number animation on load
setTimeout(() => {
const neuronCounter = document.getElementById('neuronCounter');
const byteCounter = document.getElementById('byteCounter');
// Neurons count down effect
let neuronValue = 86000000000;
neuronCounter.textContent = neuronValue.toLocaleString();
}, 1000);
// Ratio counter
const ratioCounter = document.getElementById('ratioCounter');
ScrollTrigger.create({
trigger: ratioCounter,
start: 'top 80%',
onEnter: () => animateCounter(ratioCounter, 170000000, 3000),
once: true
});
// Generate neuron grid
const neuronGrid = document.getElementById('neuronGrid');
for (let i = 0; i < 400; i++) {
const dot = document.createElement('div');
dot.className = 'neuron-dot';
neuronGrid.appendChild(dot);
}
// Neuron compression animation
const neuronDots = document.querySelectorAll('.neuron-dot');
const progressFill = document.getElementById('progressFill');
const remainingCount = document.getElementById('remainingCount');
let compressionStarted = false;
ScrollTrigger.create({
trigger: neuronGrid,
start: 'top 70%',
onEnter: () => {
if (compressionStarted) return;
compressionStarted = true;
progressFill.style.width = '100%';
let remaining = 400;
const interval = setInterval(() => {
const randomIndex = Math.floor(Math.random() * neuronDots.length);
if (!neuronDots[randomIndex].classList.contains('compressed')) {
neuronDots[randomIndex].classList.add('compressed');
remaining--;
remainingCount.textContent = remaining;
}
if (remaining <= 0) {
clearInterval(interval);
}
}, 15);
},
once: true
});
// DNA Helix animation
const helixStrand = document.getElementById('helixStrand');
const numNodes = 20;
for (let i = 0; i < numNodes; i++) {