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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8"/>
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
| 6 |
+
<title>Nyx AI — Children of the Night. Architects of the Future.</title>
|
| 7 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 8 |
+
<link href="https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;900&family=DM+Sans:wght@300;400;500&family=JetBrains+Mono:wght@300;400&display=swap" rel="stylesheet">
|
| 9 |
+
<style>
|
| 10 |
+
:root {
|
| 11 |
+
--gold: #c8a84b;
|
| 12 |
+
--violet: #a78bfa;
|
| 13 |
+
--cyan: #67e8f9;
|
| 14 |
+
--text: #e8e4f0;
|
| 15 |
+
--muted: rgba(232,228,240,0.55);
|
| 16 |
+
--faint: rgba(232,228,240,0.32);
|
| 17 |
+
--border: rgba(255,255,255,0.08);
|
| 18 |
+
--glass-bg: rgba(255,255,255,0.03);
|
| 19 |
+
--glass-border: rgba(255,255,255,0.1);
|
| 20 |
+
--glass-highlight: rgba(255,255,255,0.06);
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
| 24 |
+
|
| 25 |
+
html { scroll-behavior: smooth; }
|
| 26 |
+
|
| 27 |
+
body {
|
| 28 |
+
background: linear-gradient(180deg, #050510 0%, #0a0a1a 30%, #080815 70%, #020208 100%);
|
| 29 |
+
color: var(--text);
|
| 30 |
+
font-family: 'DM Sans', sans-serif;
|
| 31 |
+
font-weight: 300;
|
| 32 |
+
overflow-x: hidden;
|
| 33 |
+
line-height: 1.7;
|
| 34 |
+
cursor: none;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
/* ── CUSTOM CURSOR ── */
|
| 38 |
+
.cursor {
|
| 39 |
+
position: fixed;
|
| 40 |
+
width: 8px;
|
| 41 |
+
height: 8px;
|
| 42 |
+
background: radial-gradient(circle, rgba(200,168,75,0.95) 0%, rgba(167,139,250,0.8) 100%);
|
| 43 |
+
border-radius: 50%;
|
| 44 |
+
pointer-events: none;
|
| 45 |
+
z-index: 10000;
|
| 46 |
+
transform: translate(-50%, -50%);
|
| 47 |
+
transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
|
| 48 |
+
mix-blend-mode: screen;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
.cursor-halo {
|
| 52 |
+
position: fixed;
|
| 53 |
+
width: 40px;
|
| 54 |
+
height: 40px;
|
| 55 |
+
background: radial-gradient(circle, rgba(167,139,250,0.15) 0%, transparent 70%);
|
| 56 |
+
border-radius: 50%;
|
| 57 |
+
pointer-events: none;
|
| 58 |
+
z-index: 9999;
|
| 59 |
+
transform: translate(-50%, -50%);
|
| 60 |
+
transition: width 0.3s ease, height 0.3s ease;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
.cursor-trail {
|
| 64 |
+
position: fixed;
|
| 65 |
+
width: 20px;
|
| 66 |
+
height: 20px;
|
| 67 |
+
background: radial-gradient(circle, rgba(200,168,75,0.08) 0%, transparent 70%);
|
| 68 |
+
border-radius: 50%;
|
| 69 |
+
pointer-events: none;
|
| 70 |
+
z-index: 9998;
|
| 71 |
+
transform: translate(-50%, -50%);
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
body:active .cursor {
|
| 75 |
+
transform: translate(-50%, -50%) scale(0.8);
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
/* ── NIGHT SKY BACKGROUND ── */
|
| 79 |
+
#night-sky {
|
| 80 |
+
position: fixed;
|
| 81 |
+
inset: 0;
|
| 82 |
+
z-index: 0;
|
| 83 |
+
overflow: hidden;
|
| 84 |
+
pointer-events: none;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
.star {
|
| 88 |
+
position: absolute;
|
| 89 |
+
background: #fff;
|
| 90 |
+
border-radius: 50%;
|
| 91 |
+
animation: twinkle var(--duration, 3s) ease-in-out infinite;
|
| 92 |
+
animation-delay: var(--delay, 0s);
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
.star.small {
|
| 96 |
+
width: 1px;
|
| 97 |
+
height: 1px;
|
| 98 |
+
opacity: 0.4;
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
.star.medium {
|
| 102 |
+
width: 2px;
|
| 103 |
+
height: 2px;
|
| 104 |
+
opacity: 0.6;
|
| 105 |
+
box-shadow: 0 0 3px rgba(255,255,255,0.5);
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
.star.large {
|
| 109 |
+
width: 3px;
|
| 110 |
+
height: 3px;
|
| 111 |
+
opacity: 0.8;
|
| 112 |
+
box-shadow: 0 0 6px rgba(255,255,255,0.6), 0 0 12px rgba(167,139,250,0.3);
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
.star.colored {
|
| 116 |
+
background: linear-gradient(135deg, var(--violet), var(--cyan));
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
@keyframes twinkle {
|
| 120 |
+
0%, 100% { opacity: var(--base-opacity, 0.4); transform: scale(1); }
|
| 121 |
+
50% { opacity: var(--peak-opacity, 1); transform: scale(1.2); }
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
.shooting-star {
|
| 125 |
+
position: absolute;
|
| 126 |
+
width: 100px;
|
| 127 |
+
height: 1px;
|
| 128 |
+
background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.8), rgba(200,168,75,0.6));
|
| 129 |
+
opacity: 0;
|
| 130 |
+
animation: shoot 4s ease-in-out infinite;
|
| 131 |
+
transform-origin: right center;
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
@keyframes shoot {
|
| 135 |
+
0% { opacity: 0; transform: translateX(0) translateY(0); }
|
| 136 |
+
5% { opacity: 1; }
|
| 137 |
+
15% { opacity: 0; transform: translateX(-300px) translateY(150px); }
|
| 138 |
+
100% { opacity: 0; }
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
/* Nebula effects */
|
| 142 |
+
.nebula {
|
| 143 |
+
position: absolute;
|
| 144 |
+
border-radius: 50%;
|
| 145 |
+
filter: blur(80px);
|
| 146 |
+
opacity: 0.15;
|
| 147 |
+
animation: nebulaDrift 20s ease-in-out infinite;
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
+
@keyframes nebulaDrift {
|
| 151 |
+
0%, 100% { transform: translate(0, 0) scale(1); }
|
| 152 |
+
50% { transform: translate(20px, -10px) scale(1.05); }
|
| 153 |
+
}
|
| 154 |
+
|
| 155 |
+
/* ── VIGNETTE ── */
|
| 156 |
+
#vignette {
|
| 157 |
+
position: fixed;
|
| 158 |
+
inset: 0;
|
| 159 |
+
z-index: 1;
|
| 160 |
+
pointer-events: none;
|
| 161 |
+
background:
|
| 162 |
+
radial-gradient(ellipse at 50% 0%, transparent 50%, rgba(2,2,8,0.5) 100%),
|
| 163 |
+
radial-gradient(ellipse at 50% 100%, transparent 50%, rgba(2,2,8,0.6) 100%),
|
| 164 |
+
radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(2,2,8,0.4) 100%);
|
| 165 |
+
}
|
| 166 |
+
|
| 167 |
+
/* ── NAVIGATION ── */
|
| 168 |
+
nav {
|
| 169 |
+
position: fixed;
|
| 170 |
+
top: 0; left: 0; right: 0;
|
| 171 |
+
z-index: 100;
|
| 172 |
+
padding: 1rem 2.5rem;
|
| 173 |
+
display: flex;
|
| 174 |
+
align-items: center;
|
| 175 |
+
justify-content: space-between;
|
| 176 |
+
background: linear-gradient(180deg, rgba(5,5,16,0.95) 0%, rgba(5,5,16,0.8) 100%);
|
| 177 |
+
backdrop-filter: blur(40px) saturate(180%);
|
| 178 |
+
-webkit-backdrop-filter: blur(40px) saturate(180%);
|
| 179 |
+
border-bottom: 1px solid rgba(255,255,255,0.06);
|
| 180 |
+
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
+
nav::before {
|
| 184 |
+
content: '';
|
| 185 |
+
position: absolute;
|
| 186 |
+
inset: 0;
|
| 187 |
+
background: linear-gradient(180deg,
|
| 188 |
+
rgba(255,255,255,0.03) 0%,
|
| 189 |
+
transparent 50%
|
| 190 |
+
);
|
| 191 |
+
pointer-events: none;
|
| 192 |
+
}
|
| 193 |
+
|
| 194 |
+
nav.scrolled {
|
| 195 |
+
background: rgba(5,5,16,0.98);
|
| 196 |
+
box-shadow: 0 1px 0 rgba(255,255,255,0.05);
|
| 197 |
+
}
|
| 198 |
+
|
| 199 |
+
.nav-logo {
|
| 200 |
+
font-family: 'Cinzel', serif;
|
| 201 |
+
font-weight: 900;
|
| 202 |
+
font-size: 1.1rem;
|
| 203 |
+
letter-spacing: 0.25em;
|
| 204 |
+
background: linear-gradient(135deg, #fff 0%, var(--violet) 50%, var(--gold) 100%);
|
| 205 |
+
-webkit-background-clip: text;
|
| 206 |
+
-webkit-text-fill-color: transparent;
|
| 207 |
+
background-clip: text;
|
| 208 |
+
transition: transform 0.3s ease;
|
| 209 |
+
}
|
| 210 |
+
|
| 211 |
+
.nav-logo:hover {
|
| 212 |
+
transform: scale(1.02);
|
| 213 |
+
}
|
| 214 |
+
|
| 215 |
+
.nav-links {
|
| 216 |
+
display: flex;
|
| 217 |
+
gap: 2rem;
|
| 218 |
+
list-style: none;
|
| 219 |
+
}
|
| 220 |
+
|
| 221 |
+
.nav-links a {
|
| 222 |
+
font-family: 'JetBrains Mono', monospace;
|
| 223 |
+
font-size: 0.7rem;
|
| 224 |
+
letter-spacing: 0.15em;
|
| 225 |
+
color: var(--muted);
|
| 226 |
+
text-decoration: none;
|
| 227 |
+
text-transform: uppercase;
|
| 228 |
+
position: relative;
|
| 229 |
+
padding: 0.5rem 0;
|
| 230 |
+
transition: color 0.3s ease;
|
| 231 |
+
}
|
| 232 |
+
|
| 233 |
+
.nav-links a::after {
|
| 234 |
+
content: '';
|
| 235 |
+
position: absolute;
|
| 236 |
+
bottom: 0;
|
| 237 |
+
left: 50%;
|
| 238 |
+
width: 0;
|
| 239 |
+
height: 1px;
|
| 240 |
+
background: linear-gradient(90deg, transparent, var(--gold), transparent);
|
| 241 |
+
transition: all 0.3s ease;
|
| 242 |
+
transform: translateX(-50%);
|
| 243 |
+
}
|
| 244 |
+
|
| 245 |
+
.nav-links a:hover {
|
| 246 |
+
color: var(--gold);
|
| 247 |
+
}
|
| 248 |
+
|
| 249 |
+
.nav-links a:hover::after {
|
| 250 |
+
width: 100%;
|
| 251 |
+
}
|
| 252 |
+
|
| 253 |
+
/* ── SCROLL CHAPTERS ── */
|
| 254 |
+
#scroll-root { position: relative; z-index: 2; }
|
| 255 |
+
|
| 256 |
+
.chapter { position: relative; }
|
| 257 |
+
|
| 258 |
+
.chapter-sticky {
|
| 259 |
+
position: sticky;
|
| 260 |
+
top: 0;
|
| 261 |
+
height: 100vh;
|
| 262 |
+
display: flex;
|
| 263 |
+
align-items: center;
|
| 264 |
+
justify-content: center;
|
| 265 |
+
overflow: hidden;
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
.chapter-content {
|
| 269 |
+
position: relative;
|
| 270 |
+
z-index: 3;
|
| 271 |
+
width: 100%;
|
| 272 |
+
max-width: 1100px;
|
| 273 |
+
margin: 0 auto;
|
| 274 |
+
padding: 0 2rem;
|
| 275 |
+
will-change: opacity, transform;
|
| 276 |
+
opacity: 1;
|
| 277 |
+
}
|
| 278 |
+
|
| 279 |
+
/* ── TYPE UTILITIES ── */
|
| 280 |
+
.section-tag {
|
| 281 |
+
font-family: 'JetBrains Mono', monospace;
|
| 282 |
+
font-size: 0.65rem;
|
| 283 |
+
letter-spacing: 0.42em;
|
| 284 |
+
color: var(--gold);
|
| 285 |
+
text-transform: uppercase;
|
| 286 |
+
margin-bottom: 1rem;
|
| 287 |
+
display: flex;
|
| 288 |
+
align-items: center;
|
| 289 |
+
gap: 0.8rem;
|
| 290 |
+
}
|
| 291 |
+
|
| 292 |
+
.section-tag::before {
|
| 293 |
+
content: '';
|
| 294 |
+
display: inline-block;
|
| 295 |
+
width: 22px; height: 1px;
|
| 296 |
+
background: var(--gold); opacity: 0.6;
|
| 297 |
+
}
|
| 298 |
+
|
| 299 |
+
.section-heading {
|
| 300 |
+
font-family: 'Cinzel', serif;
|
| 301 |
+
font-size: clamp(1.8rem, 4vw, 2.75rem);
|
| 302 |
+
font-weight: 600;
|
| 303 |
+
letter-spacing: 0.05em;
|
| 304 |
+
line-height: 1.15;
|
| 305 |
+
color: #fff;
|
| 306 |
+
margin-bottom: 1.1rem;
|
| 307 |
+
}
|
| 308 |
+
|
| 309 |
+
.section-sub {
|
| 310 |
+
font-size: 0.95rem;
|
| 311 |
+
color: var(--muted);
|
| 312 |
+
max-width: 500px;
|
| 313 |
+
line-height: 1.85;
|
| 314 |
+
margin-bottom: 2.5rem;
|
| 315 |
+
}
|
| 316 |
+
|
| 317 |
+
/* ══════════════ APPLE GLASS MORPHISM ══════════════ */
|
| 318 |
+
.glass-card {
|
| 319 |
+
position: relative;
|
| 320 |
+
background: linear-gradient(
|
| 321 |
+
135deg,
|
| 322 |
+
rgba(255,255,255,0.05) 0%,
|
| 323 |
+
rgba(255,255,255,0.02) 50%,
|
| 324 |
+
rgba(255,255,255,0.04) 100%
|
| 325 |
+
);
|
| 326 |
+
border-radius: 16px;
|
| 327 |
+
border: 1px solid rgba(255,255,255,0.08);
|
| 328 |
+
backdrop-filter: blur(40px) saturate(180%);
|
| 329 |
+
-webkit-backdrop-filter: blur(40px) saturate(180%);
|
| 330 |
+
overflow: hidden;
|
| 331 |
+
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
| 332 |
+
}
|
| 333 |
+
|
| 334 |
+
/* Glass highlight effect - top edge */
|
| 335 |
+
.glass-card::before {
|
| 336 |
+
content: '';
|
| 337 |
+
position: absolute;
|
| 338 |
+
top: 0;
|
| 339 |
+
left: 0;
|
| 340 |
+
right: 0;
|
| 341 |
+
height: 1px;
|
| 342 |
+
background: linear-gradient(
|
| 343 |
+
90deg,
|
| 344 |
+
transparent 0%,
|
| 345 |
+
rgba(255,255,255,0.3) 20%,
|
| 346 |
+
rgba(255,255,255,0.5) 50%,
|
| 347 |
+
rgba(255,255,255,0.3) 80%,
|
| 348 |
+
transparent 100%
|
| 349 |
+
);
|
| 350 |
+
}
|
| 351 |
+
|
| 352 |
+
/* Glass inner glow */
|
| 353 |
+
.glass-card::after {
|
| 354 |
+
content: '';
|
| 355 |
+
position: absolute;
|
| 356 |
+
top: 0;
|
| 357 |
+
left: 0;
|
| 358 |
+
right: 0;
|
| 359 |
+
height: 50%;
|
| 360 |
+
background: linear-gradient(
|
| 361 |
+
180deg,
|
| 362 |
+
rgba(255,255,255,0.03) 0%,
|
| 363 |
+
transparent 100%
|
| 364 |
+
);
|
| 365 |
+
pointer-events: none;
|
| 366 |
+
}
|
| 367 |
+
|
| 368 |
+
.glass-card:hover {
|
| 369 |
+
border-color: rgba(167,139,250,0.25);
|
| 370 |
+
transform: translateY(-4px);
|
| 371 |
+
box-shadow:
|
| 372 |
+
0 20px 40px rgba(0,0,0,0.4),
|
| 373 |
+
0 0 0 1px rgba(255,255,255,0.05) inset,
|
| 374 |
+
0 1px 0 rgba(255,255,255,0.1) inset;
|
| 375 |
+
}
|
| 376 |
+
|
| 377 |
+
/* ══════════════ HERO ══════════════ */
|
| 378 |
+
#c-hero { text-align: center; padding-top: 2rem; }
|
| 379 |
+
|
| 380 |
+
.hero-eyebrow {
|
| 381 |
+
font-family: 'JetBrains Mono', monospace;
|
| 382 |
+
font-size: 0.7rem;
|
| 383 |
+
letter-spacing: 0.4em;
|
| 384 |
+
color: var(--gold);
|
| 385 |
+
text-transform: uppercase;
|
| 386 |
+
margin-bottom: 1.5rem;
|
| 387 |
+
opacity: 0.9;
|
| 388 |
+
}
|
| 389 |
+
|
| 390 |
+
.hero-title {
|
| 391 |
+
font-family: 'Cinzel', serif;
|
| 392 |
+
font-weight: 900;
|
| 393 |
+
font-size: clamp(5rem, 14vw, 11rem);
|
| 394 |
+
letter-spacing: 0.15em;
|
| 395 |
+
line-height: 0.9;
|
| 396 |
+
background: linear-gradient(150deg, #ffffff 0%, rgba(167,139,250,0.9) 45%, var(--gold) 100%);
|
| 397 |
+
-webkit-background-clip: text;
|
| 398 |
+
-webkit-text-fill-color: transparent;
|
| 399 |
+
background-clip: text;
|
| 400 |
+
filter: drop-shadow(0 0 60px rgba(130,80,220,0.4));
|
| 401 |
+
animation: heroGlow 4s ease-in-out infinite alternate;
|
| 402 |
+
}
|
| 403 |
+
|
| 404 |
+
@keyframes heroGlow {
|
| 405 |
+
0% { filter: drop-shadow(0 0 60px rgba(130,80,220,0.3)); }
|
| 406 |
+
100% { filter: drop-shadow(0 0 80px rgba(130,80,220,0.5)); }
|
| 407 |
+
}
|
| 408 |
+
|
| 409 |
+
.hero-rule {
|
| 410 |
+
margin: 2rem auto;
|
| 411 |
+
width: 1px; height: 50px;
|
| 412 |
+
background: linear-gradient(to bottom, transparent, var(--gold), transparent);
|
| 413 |
+
}
|
| 414 |
+
|
| 415 |
+
.hero-tagline {
|
| 416 |
+
font-family: 'Cinzel', serif;
|
| 417 |
+
font-size: clamp(0.72rem, 1.8vw, 0.92rem);
|
| 418 |
+
letter-spacing: 0.28em;
|
| 419 |
+
color: var(--muted);
|
| 420 |
+
text-transform: uppercase;
|
| 421 |
+
}
|
| 422 |
+
|
| 423 |
+
.hero-desc {
|
| 424 |
+
max-width: 540px;
|
| 425 |
+
margin: 2rem auto 0;
|
| 426 |
+
font-size: 0.98rem;
|
| 427 |
+
color: var(--muted);
|
| 428 |
+
line-height: 1.9;
|
| 429 |
+
}
|
| 430 |
+
|
| 431 |
+
.hero-cue {
|
| 432 |
+
margin-top: 3rem;
|
| 433 |
+
display: flex; flex-direction: column;
|
| 434 |
+
align-items: center; gap: 0.6rem;
|
| 435 |
+
}
|
| 436 |
+
|
| 437 |
+
.hero-cue span {
|
| 438 |
+
font-family: 'JetBrains Mono', monospace;
|
| 439 |
+
font-size: 0.62rem; letter-spacing: 0.35em;
|
| 440 |
+
color: var(--faint); text-transform: uppercase;
|
| 441 |
+
}
|
| 442 |
+
|
| 443 |
+
.scroll-line {
|
| 444 |
+
width: 1px; height: 40px;
|
| 445 |
+
background: linear-gradient(to bottom, var(--gold), transparent);
|
| 446 |
+
animation: scrollPulse 2s ease-in-out infinite;
|
| 447 |
+
}
|
| 448 |
+
|
| 449 |
+
@keyframes scrollPulse {
|
| 450 |
+
0%, 100% { opacity: 1; transform: scaleY(1); }
|
| 451 |
+
50% { opacity: 0.4; transform: scaleY(0.7); }
|
| 452 |
+
}
|
| 453 |
+
|
| 454 |
+
/* ══════════════ ABOUT ══════════════ */
|
| 455 |
+
.about-layout {
|
| 456 |
+
display: grid;
|
| 457 |
+
grid-template-columns: 1fr 1.2fr;
|
| 458 |
+
gap: 4rem;
|
| 459 |
+
align-items: center;
|
| 460 |
+
}
|
| 461 |
+
|
| 462 |
+
.about-big {
|
| 463 |
+
font-family: 'Cinzel', serif;
|
| 464 |
+
font-size: clamp(2.6rem, 6vw, 4.8rem);
|
| 465 |
+
font-weight: 900;
|
| 466 |
+
line-height: 1;
|
| 467 |
+
background: linear-gradient(135deg, #fff 0%, var(--violet) 100%);
|
| 468 |
+
-webkit-background-clip: text;
|
| 469 |
+
-webkit-text-fill-color: transparent;
|
| 470 |
+
background-clip: text;
|
| 471 |
+
margin-bottom: 1.5rem;
|
| 472 |
+
}
|
| 473 |
+
|
| 474 |
+
.about-body {
|
| 475 |
+
font-size: 0.95rem;
|
| 476 |
+
color: var(--muted);
|
| 477 |
+
line-height: 1.9;
|
| 478 |
+
}
|
| 479 |
+
|
| 480 |
+
.about-body + .about-body { margin-top: 1rem; }
|
| 481 |
+
|
| 482 |
+
.about-cards {
|
| 483 |
+
display: flex;
|
| 484 |
+
flex-direction: column;
|
| 485 |
+
gap: 1rem;
|
| 486 |
+
}
|
| 487 |
+
|
| 488 |
+
.hi-card {
|
| 489 |
+
padding: 1.4rem 1.6rem;
|
| 490 |
+
display: flex;
|
| 491 |
+
align-items: flex-start;
|
| 492 |
+
gap: 1.2rem;
|
| 493 |
+
position: relative;
|
| 494 |
+
z-index: 1;
|
| 495 |
+
}
|
| 496 |
+
|
| 497 |
+
.hi-icon {
|
| 498 |
+
font-size: 1.1rem;
|
| 499 |
+
flex-shrink: 0;
|
| 500 |
+
margin-top: 0.1rem;
|
| 501 |
+
filter: drop-shadow(0 0 8px rgba(200,168,75,0.3));
|
| 502 |
+
}
|
| 503 |
+
|
| 504 |
+
.hi-label {
|
| 505 |
+
font-size: 0.9rem;
|
| 506 |
+
font-weight: 500;
|
| 507 |
+
color: rgba(232,228,240,0.9);
|
| 508 |
+
margin-bottom: 0.3rem;
|
| 509 |
+
}
|
| 510 |
+
|
| 511 |
+
.hi-body {
|
| 512 |
+
font-size: 0.82rem;
|
| 513 |
+
color: var(--muted);
|
| 514 |
+
line-height: 1.65;
|
| 515 |
+
}
|
| 516 |
+
|
| 517 |
+
.chips {
|
| 518 |
+
display: flex;
|
| 519 |
+
flex-wrap: wrap;
|
| 520 |
+
gap: 0.4rem;
|
| 521 |
+
margin-top: 0.6rem;
|
| 522 |
+
}
|
| 523 |
+
|
| 524 |
+
.chip {
|
| 525 |
+
font-family: 'JetBrains Mono', monospace;
|
| 526 |
+
font-size: 0.58rem;
|
| 527 |
+
letter-spacing: 0.05em;
|
| 528 |
+
padding: 0.25rem 0.65rem;
|
| 529 |
+
border: 1px solid rgba(103,232,249,0.25);
|
| 530 |
+
border-radius: 2px;
|
| 531 |
+
color: var(--cyan);
|
| 532 |
+
background: rgba(103,232,249,0.05);
|
| 533 |
+
transition: all 0.2s ease;
|
| 534 |
+
}
|
| 535 |
+
|
| 536 |
+
.chip:hover {
|
| 537 |
+
background: rgba(103,232,249,0.1);
|
| 538 |
+
border-color: rgba(103,232,249,0.4);
|
| 539 |
+
}
|
| 540 |
+
|
| 541 |
+
/* ══════════════ RESEARCH ══════════════ */
|
| 542 |
+
.pillars-grid {
|
| 543 |
+
display: grid;
|
| 544 |
+
grid-template-columns: repeat(3, 1fr);
|
| 545 |
+
gap: 1.25rem;
|
| 546 |
+
}
|
| 547 |
+
|
| 548 |
+
.pillar-card {
|
| 549 |
+
padding: 2rem 1.8rem;
|
| 550 |
+
position: relative;
|
| 551 |
+
overflow: hidden;
|
| 552 |
+
z-index: 1;
|
| 553 |
+
}
|
| 554 |
+
|
| 555 |
+
.pillar-num {
|
| 556 |
+
font-family: 'JetBrains Mono', monospace;
|
| 557 |
+
font-size: 0.6rem;
|
| 558 |
+
letter-spacing: 0.2em;
|
| 559 |
+
color: var(--gold);
|
| 560 |
+
opacity: 0.7;
|
| 561 |
+
margin-bottom: 1.2rem;
|
| 562 |
+
}
|
| 563 |
+
|
| 564 |
+
.pillar-title {
|
| 565 |
+
font-family: 'Cinzel', serif;
|
| 566 |
+
font-size: 1rem;
|
| 567 |
+
font-weight: 600;
|
| 568 |
+
color: #fff;
|
| 569 |
+
margin-bottom: 0.9rem;
|
| 570 |
+
line-height: 1.35;
|
| 571 |
+
}
|
| 572 |
+
|
| 573 |
+
.pillar-body {
|
| 574 |
+
font-size: 0.86rem;
|
| 575 |
+
color: var(--muted);
|
| 576 |
+
line-height: 1.8;
|
| 577 |
+
margin-bottom: 1.4rem;
|
| 578 |
+
}
|
| 579 |
+
|
| 580 |
+
/* ══════════════ PANTHEON ══════════════ */
|
| 581 |
+
.pantheon-grid {
|
| 582 |
+
display: grid;
|
| 583 |
+
grid-template-columns: repeat(3, 1fr);
|
| 584 |
+
gap: 1.25rem;
|
| 585 |
+
}
|
| 586 |
+
|
| 587 |
+
.deity-card {
|
| 588 |
+
padding: 1.8rem 1.6rem;
|
| 589 |
+
position: relative;
|
| 590 |
+
z-index: 1;
|
| 591 |
+
}
|
| 592 |
+
|
| 593 |
+
.deity-name {
|
| 594 |
+
font-family: 'Cinzel', serif;
|
| 595 |
+
font-size: 1.35rem;
|
| 596 |
+
font-weight: 900;
|
| 597 |
+
letter-spacing: 0.1em;
|
| 598 |
+
color: #fff;
|
| 599 |
+
margin-bottom: 0.3rem;
|
| 600 |
+
}
|
| 601 |
+
|
| 602 |
+
.deity-domain {
|
| 603 |
+
font-family: 'JetBrains Mono', monospace;
|
| 604 |
+
font-size: 0.62rem;
|
| 605 |
+
letter-spacing: 0.2em;
|
| 606 |
+
color: var(--cyan);
|
| 607 |
+
text-transform: uppercase;
|
| 608 |
+
margin-bottom: 1rem;
|
| 609 |
+
opacity: 0.85;
|
| 610 |
+
}
|
| 611 |
+
|
| 612 |
+
.deity-line {
|
| 613 |
+
width: 28px;
|
| 614 |
+
height: 1px;
|
| 615 |
+
background: var(--gold);
|
| 616 |
+
opacity: 0.5;
|
| 617 |
+
margin-bottom: 1rem;
|
| 618 |
+
}
|
| 619 |
+
|
| 620 |
+
.deity-epithet {
|
| 621 |
+
font-family: 'Cinzel', serif;
|
| 622 |
+
font-size: 0.76rem;
|
| 623 |
+
font-style: italic;
|
| 624 |
+
color: var(--gold);
|
| 625 |
+
margin-bottom: 0.8rem;
|
| 626 |
+
opacity: 0.9;
|
| 627 |
+
}
|
| 628 |
+
|
| 629 |
+
.deity-desc {
|
| 630 |
+
font-size: 0.83rem;
|
| 631 |
+
color: var(--faint);
|
| 632 |
+
line-height: 1.75;
|
| 633 |
+
}
|
| 634 |
+
|
| 635 |
+
/* ══════════════ FOOTER ══════════════ */
|
| 636 |
+
footer {
|
| 637 |
+
position: relative;
|
| 638 |
+
z-index: 2;
|
| 639 |
+
padding: 4rem 2rem;
|
| 640 |
+
text-align: center;
|
| 641 |
+
border-top: 1px solid rgba(255,255,255,0.06);
|
| 642 |
+
background: linear-gradient(180deg, transparent 0%, rgba(2,2,8,0.8) 100%);
|
| 643 |
+
}
|
| 644 |
+
|
| 645 |
+
.footer-logo {
|
| 646 |
+
font-family: 'Cinzel', serif;
|
| 647 |
+
font-size: 1.5rem;
|
| 648 |
+
font-weight: 900;
|
| 649 |
+
letter-spacing: 0.25em;
|
| 650 |
+
background: linear-gradient(135deg, #fff 0%, var(--violet) 50%, var(--gold) 100%);
|
| 651 |
+
-webkit-background-clip: text;
|
| 652 |
+
-webkit-text-fill-color: transparent;
|
| 653 |
+
background-clip: text;
|
| 654 |
+
margin-bottom: 0.6rem;
|
| 655 |
+
}
|
| 656 |
+
|
| 657 |
+
.footer-tag {
|
| 658 |
+
font-family: 'JetBrains Mono', monospace;
|
| 659 |
+
font-size: 0.65rem;
|
| 660 |
+
letter-spacing: 0.35em;
|
| 661 |
+
color: var(--gold);
|
| 662 |
+
opacity: 0.6;
|
| 663 |
+
margin-bottom: 1.5rem;
|
| 664 |
+
}
|
| 665 |
+
|
| 666 |
+
.footer-founders {
|
| 667 |
+
font-family: 'JetBrains Mono', monospace;
|
| 668 |
+
font-size: 0.68rem;
|
| 669 |
+
letter-spacing: 0.08em;
|
| 670 |
+
color: var(--faint);
|
| 671 |
+
}
|
| 672 |
+
|
| 673 |
+
.footer-founders em {
|
| 674 |
+
color: var(--muted);
|
| 675 |
+
font-style: normal;
|
| 676 |
+
}
|
| 677 |
+
|
| 678 |
+
/* ── RESPONSIVE ── */
|
| 679 |
+
@media (max-width: 900px) {
|
| 680 |
+
.about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
|
| 681 |
+
.pillars-grid { grid-template-columns: 1fr; }
|
| 682 |
+
.pantheon-grid { grid-template-columns: 1fr 1fr; }
|
| 683 |
+
nav .nav-links { display: none; }
|
| 684 |
+
nav { padding: 1rem 1.5rem; }
|
| 685 |
+
}
|
| 686 |
+
|
| 687 |
+
@media (max-width: 550px) {
|
| 688 |
+
.pantheon-grid { grid-template-columns: 1fr; }
|
| 689 |
+
.chapter-content { padding: 0 1.25rem; }
|
| 690 |
+
}
|
| 691 |
+
|
| 692 |
+
/* Hide custom cursor on touch devices */
|
| 693 |
+
@media (hover: none) {
|
| 694 |
+
.cursor, .cursor-halo, .cursor-trail { display: none; }
|
| 695 |
+
body { cursor: auto; }
|
| 696 |
+
}
|
| 697 |
+
</style>
|
| 698 |
+
</head>
|
| 699 |
+
<body>
|
| 700 |
+
|
| 701 |
+
<!-- Custom Cursor -->
|
| 702 |
+
<div class="cursor" id="cursor"></div>
|
| 703 |
+
<div class="cursor-halo" id="cursor-halo"></div>
|
| 704 |
+
<div class="cursor-trail" id="cursor-trail"></div>
|
| 705 |
+
|
| 706 |
+
<!-- Night Sky Background -->
|
| 707 |
+
<div id="night-sky">
|
| 708 |
+
<!-- Nebula effects -->
|
| 709 |
+
<div class="nebula" style="width: 500px; height: 500px; background: radial-gradient(circle, rgba(167,139,250,0.3), transparent); top: 10%; left: -10%;"></div>
|
| 710 |
+
<div class="nebula" style="width: 400px; height: 400px; background: radial-gradient(circle, rgba(200,168,75,0.2), transparent); top: 50%; right: -5%; animation-delay: -10s;"></div>
|
| 711 |
+
<div class="nebula" style="width: 350px; height: 350px; background: radial-gradient(circle, rgba(103,232,249,0.15), transparent); bottom: 20%; left: 30%; animation-delay: -5s;"></div>
|
| 712 |
+
</div>
|
| 713 |
+
|
| 714 |
+
<!-- Vignette Overlay -->
|
| 715 |
+
<div id="vignette"></div>
|
| 716 |
+
|
| 717 |
+
<!-- ── NAVIGATION ── -->
|
| 718 |
+
<nav id="nav">
|
| 719 |
+
<div class="nav-logo">NYX AI</div>
|
| 720 |
+
<ul class="nav-links">
|
| 721 |
+
<li><a href="#s-hero">Home</a></li>
|
| 722 |
+
<li><a href="#s-about">About</a></li>
|
| 723 |
+
<li><a href="#s-research">Research</a></li>
|
| 724 |
+
<li><a href="#s-pantheon">Pantheon</a></li>
|
| 725 |
+
</ul>
|
| 726 |
+
</nav>
|
| 727 |
+
|
| 728 |
+
<!-- ════════════════════════════════════════════
|
| 729 |
+
SCROLL CHAPTERS
|
| 730 |
+
═════════════════════════════════════════════ -->
|
| 731 |
+
<main id="scroll-root">
|
| 732 |
+
|
| 733 |
+
<!-- HERO -->
|
| 734 |
+
<div id="s-hero" class="chapter" style="height:130vh">
|
| 735 |
+
<div class="chapter-sticky">
|
| 736 |
+
<div class="chapter-content" id="c-hero">
|
| 737 |
+
<p class="hero-eyebrow">Research Collective · Open Source AI</p>
|
| 738 |
+
<h1 class="hero-title">NYX</h1>
|
| 739 |
+
<div class="hero-rule"></div>
|
| 740 |
+
<p class="hero-tagline">Children of the Night · Architects of the Future</p>
|
| 741 |
+
<p class="hero-desc">
|
| 742 |
+
Exploring the full lifecycle of Large Language Models — from custom training
|
| 743 |
+
and fine-tuning to high-performance deployment and next-generation agent frameworks.
|
| 744 |
+
</p>
|
| 745 |
+
<div class="hero-cue">
|
| 746 |
+
<span>Scroll to explore</span>
|
| 747 |
+
<div class="scroll-line"></div>
|
| 748 |
+
</div>
|
| 749 |
+
</div>
|
| 750 |
+
</div>
|
| 751 |
+
</div>
|
| 752 |
+
|
| 753 |
+
<!-- ABOUT -->
|
| 754 |
+
<div id="s-about" class="chapter" style="height:120vh">
|
| 755 |
+
<div class="chapter-sticky">
|
| 756 |
+
<div class="chapter-content" id="c-about">
|
| 757 |
+
<div class="about-layout">
|
| 758 |
+
<div>
|
| 759 |
+
<p class="section-tag">About</p>
|
| 760 |
+
<div class="about-big">Who<br>We Are</div>
|
| 761 |
+
<p class="about-body">A collective operating where open-source culture meets rigorous AI engineering. We build, fine-tune, and deploy — end to end.</p>
|
| 762 |
+
<p class="about-body">Our work spans custom architectures, inference optimization, and agentic frameworks built to operate at the frontier of what's possible.</p>
|
| 763 |
+
</div>
|
| 764 |
+
<div class="about-cards">
|
| 765 |
+
<div class="glass-card hi-card">
|
| 766 |
+
<span class="hi-icon">⚡</span>
|
| 767 |
+
<div>
|
| 768 |
+
<div class="hi-label">Training & Architecture</div>
|
| 769 |
+
<div class="hi-body">Custom model development with NVIDIA NeMo and parameter-efficient fine-tuning.</div>
|
| 770 |
+
<div class="chips"><span class="chip">NVIDIA NeMo</span><span class="chip">PEFT</span><span class="chip">LoRA</span></div>
|
| 771 |
+
</div>
|
| 772 |
+
</div>
|
| 773 |
+
<div class="glass-card hi-card">
|
| 774 |
+
<span class="hi-icon">🔮</span>
|
| 775 |
+
<div>
|
| 776 |
+
<div class="hi-label">Inference & Deployment</div>
|
| 777 |
+
<div class="hi-body">High-performance serving via NVIDIA NIM, local execution with Ollama & MLX.</div>
|
| 778 |
+
<div class="chips"><span class="chip">NVIDIA NIM</span><span class="chip">Ollama</span><span class="chip">MLX</span><span class="chip">vLLM</span></div>
|
| 779 |
+
</div>
|
| 780 |
+
</div>
|
| 781 |
+
<div class="glass-card hi-card">
|
| 782 |
+
<span class="hi-icon">🕸</span>
|
| 783 |
+
<div>
|
| 784 |
+
<div class="hi-label">Agent Frameworks</div>
|
| 785 |
+
<div class="hi-body">NemoClaw — our flagship agentic framework for autonomous, multi-modal workflows.</div>
|
| 786 |
+
<div class="chips"><span class="chip">NemoClaw</span><span class="chip">Multi-Agent</span><span class="chip">RAG</span></div>
|
| 787 |
+
</div>
|
| 788 |
+
</div>
|
| 789 |
+
</div>
|
| 790 |
+
</div>
|
| 791 |
+
</div>
|
| 792 |
+
</div>
|
| 793 |
+
</div>
|
| 794 |
+
|
| 795 |
+
<!-- RESEARCH -->
|
| 796 |
+
<div id="s-research" class="chapter" style="height:120vh">
|
| 797 |
+
<div class="chapter-sticky">
|
| 798 |
+
<div class="chapter-content" id="c-research">
|
| 799 |
+
<p class="section-tag">Research Focus</p>
|
| 800 |
+
<h2 class="section-heading">What We Build</h2>
|
| 801 |
+
<p class="section-sub">Three core domains. One unified mission.</p>
|
| 802 |
+
<div class="pillars-grid">
|
| 803 |
+
<div class="glass-card pillar-card">
|
| 804 |
+
<div class="pillar-num">01 / TRAINING</div>
|
| 805 |
+
<div class="pillar-title">Architecture & Fine-Tuning</div>
|
| 806 |
+
<p class="pillar-body">Custom model development with a focus on efficient fine-tuning and novel architectures engineered for real-world scale.</p>
|
| 807 |
+
<div class="chips"><span class="chip">NVIDIA NeMo</span><span class="chip">PEFT</span><span class="chip">LoRA</span></div>
|
| 808 |
+
</div>
|
| 809 |
+
<div class="glass-card pillar-card">
|
| 810 |
+
<div class="pillar-num">02 / INFERENCE</div>
|
| 811 |
+
<div class="pillar-title">Deployment & Optimization</div>
|
| 812 |
+
<p class="pillar-body">High-performance model serving from cloud infrastructure to local-first execution, optimized at every layer.</p>
|
| 813 |
+
<div class="chips"><span class="chip">NVIDIA NIM</span><span class="chip">Ollama</span><span class="chip">MLX</span></div>
|
| 814 |
+
</div>
|
| 815 |
+
<div class="glass-card pillar-card">
|
| 816 |
+
<div class="pillar-num">03 / AGENTS</div>
|
| 817 |
+
<div class="pillar-title">Agentic Frameworks</div>
|
| 818 |
+
<p class="pillar-body">NemoClaw — our flagship framework for next-generation autonomous, multi-modal agents with composable toolchains.</p>
|
| 819 |
+
<div class="chips"><span class="chip">NemoClaw</span><span class="chip">Multi-Agent</span><span class="chip">Tool Use</span></div>
|
| 820 |
+
</div>
|
| 821 |
+
</div>
|
| 822 |
+
</div>
|
| 823 |
+
</div>
|
| 824 |
+
</div>
|
| 825 |
+
|
| 826 |
+
<!-- PANTHEON -->
|
| 827 |
+
<div id="s-pantheon" class="chapter" style="height:140vh">
|
| 828 |
+
<div class="chapter-sticky">
|
| 829 |
+
<div class="chapter-content" id="c-pantheon">
|
| 830 |
+
<p class="section-tag">Projects</p>
|
| 831 |
+
<h2 class="section-heading">The Pantheon</h2>
|
| 832 |
+
<p class="section-sub">Each project bears the name of a primordial force born of Nyx — inevitabilities of the Greek cosmos, now domains of research.</p>
|
| 833 |
+
<div class="pantheon-grid">
|
| 834 |
+
<div class="glass-card deity-card">
|
| 835 |
+
<div class="deity-name">Moros</div>
|
| 836 |
+
<div class="deity-domain">Predictive AI</div>
|
| 837 |
+
<div class="deity-line"></div>
|
| 838 |
+
<div class="deity-epithet">Inevitable Intelligence</div>
|
| 839 |
+
<p class="deity-desc">Forecasting, destiny modeling, and temporal prediction architectures.</p>
|
| 840 |
+
</div>
|
| 841 |
+
<div class="glass-card deity-card">
|
| 842 |
+
<div class="deity-name">Oneiros</div>
|
| 843 |
+
<div class="deity-domain">Generative AI</div>
|
| 844 |
+
<div class="deity-line"></div>
|
| 845 |
+
<div class="deity-epithet">Computing the Subconscious</div>
|
| 846 |
+
<p class="deity-desc">Dream synthesis, creative generation, and multimodal content systems.</p>
|
| 847 |
+
</div>
|
| 848 |
+
<div class="glass-card deity-card">
|
| 849 |
+
<div class="deity-name">Nemesis</div>
|
| 850 |
+
<div class="deity-domain">Safety & Alignment</div>
|
| 851 |
+
<div class="deity-line"></div>
|
| 852 |
+
<div class="deity-epithet">The Great Equalizer</div>
|
| 853 |
+
<p class="deity-desc">Evaluation frameworks, RLHF pipelines, and ethical guardrails.</p>
|
| 854 |
+
</div>
|
| 855 |
+
<div class="glass-card deity-card">
|
| 856 |
+
<div class="deity-name">Thanatos</div>
|
| 857 |
+
<div class="deity-domain">Optimization</div>
|
| 858 |
+
<div class="deity-line"></div>
|
| 859 |
+
<div class="deity-epithet">The Final Layer</div>
|
| 860 |
+
<p class="deity-desc">Pruning, quantization, distillation — model efficiency at every edge.</p>
|
| 861 |
+
</div>
|
| 862 |
+
<div class="glass-card deity-card">
|
| 863 |
+
<div class="deity-name">Eris</div>
|
| 864 |
+
<div class="deity-domain">Adversarial AI</div>
|
| 865 |
+
<div class="deity-line"></div>
|
| 866 |
+
<div class="deity-epithet">Embrace the Chaos</div>
|
| 867 |
+
<p class="deity-desc">Red teaming, robustness testing, and adversarial attack research.</p>
|
| 868 |
+
</div>
|
| 869 |
+
<div class="glass-card deity-card">
|
| 870 |
+
<div class="deity-name">Charon</div>
|
| 871 |
+
<div class="deity-domain">Data Pipelines</div>
|
| 872 |
+
<div class="deity-line"></div>
|
| 873 |
+
<div class="deity-epithet">The Ferryman</div>
|
| 874 |
+
<p class="deity-desc">High-throughput data transport, transformation, and curation systems.</p>
|
| 875 |
+
</div>
|
| 876 |
+
</div>
|
| 877 |
+
</div>
|
| 878 |
+
</div>
|
| 879 |
+
</div>
|
| 880 |
+
|
| 881 |
+
</main>
|
| 882 |
+
|
| 883 |
+
<footer>
|
| 884 |
+
<div class="footer-logo">NYX AI</div>
|
| 885 |
+
<p class="footer-tag">Children of the Night · Architects of the Future</p>
|
| 886 |
+
<p class="footer-founders">Founded by <em>Italian Seasoning</em> & <em>Friend</em></p>
|
| 887 |
+
</footer>
|
| 888 |
+
|
| 889 |
+
<script>
|
| 890 |
+
'use strict';
|
| 891 |
+
|
| 892 |
+
// ═════════════════════════════════════════════════════
|
| 893 |
+
// NIGHT SKY - Stars and Shooting Stars
|
| 894 |
+
// ═════════════════════════════════════════════════════
|
| 895 |
+
const nightSky = document.getElementById('night-sky');
|
| 896 |
+
|
| 897 |
+
// Create stars
|
| 898 |
+
function createStars() {
|
| 899 |
+
const starCount = 200;
|
| 900 |
+
|
| 901 |
+
for (let i = 0; i < starCount; i++) {
|
| 902 |
+
const star = document.createElement('div');
|
| 903 |
+
star.className = 'star';
|
| 904 |
+
|
| 905 |
+
// Random size category
|
| 906 |
+
const rand = Math.random();
|
| 907 |
+
if (rand < 0.6) {
|
| 908 |
+
star.classList.add('small');
|
| 909 |
+
star.style.setProperty('--base-opacity', '0.2');
|
| 910 |
+
star.style.setProperty('--peak-opacity', '0.6');
|
| 911 |
+
} else if (rand < 0.9) {
|
| 912 |
+
star.classList.add('medium');
|
| 913 |
+
star.style.setProperty('--base-opacity', '0.4');
|
| 914 |
+
star.style.setProperty('--peak-opacity', '0.9');
|
| 915 |
+
} else {
|
| 916 |
+
star.classList.add('large');
|
| 917 |
+
if (Math.random() > 0.5) star.classList.add('colored');
|
| 918 |
+
star.style.setProperty('--base-opacity', '0.5');
|
| 919 |
+
star.style.setProperty('--peak-opacity', '1');
|
| 920 |
+
}
|
| 921 |
+
|
| 922 |
+
// Position
|
| 923 |
+
star.style.left = Math.random() * 100 + '%';
|
| 924 |
+
star.style.top = Math.random() * 100 + '%';
|
| 925 |
+
|
| 926 |
+
// Animation timing
|
| 927 |
+
star.style.setProperty('--duration', (2 + Math.random() * 4) + 's');
|
| 928 |
+
star.style.setProperty('--delay', (Math.random() * 5) + 's');
|
| 929 |
+
|
| 930 |
+
nightSky.appendChild(star);
|
| 931 |
+
}
|
| 932 |
+
}
|
| 933 |
+
|
| 934 |
+
// Create shooting stars
|
| 935 |
+
function createShootingStar() {
|
| 936 |
+
const shootingStar = document.createElement('div');
|
| 937 |
+
shootingStar.className = 'shooting-star';
|
| 938 |
+
|
| 939 |
+
// Random position
|
| 940 |
+
shootingStar.style.left = (Math.random() * 80 + 10) + '%';
|
| 941 |
+
shootingStar.style.top = (Math.random() * 40) + '%';
|
| 942 |
+
shootingStar.style.transform = `rotate(${30 + Math.random() * 30}deg)`;
|
| 943 |
+
|
| 944 |
+
nightSky.appendChild(shootingStar);
|
| 945 |
+
|
| 946 |
+
// Remove after animation
|
| 947 |
+
setTimeout(() => shootingStar.remove(), 4000);
|
| 948 |
+
}
|
| 949 |
+
|
| 950 |
+
// Initialize stars
|
| 951 |
+
createStars();
|
| 952 |
+
|
| 953 |
+
// Spawn shooting stars randomly
|
| 954 |
+
setInterval(() => {
|
| 955 |
+
if (Math.random() > 0.7) {
|
| 956 |
+
createShootingStar();
|
| 957 |
+
}
|
| 958 |
+
}, 3000);
|
| 959 |
+
|
| 960 |
+
// ═════════════════════════════════════════════════════
|
| 961 |
+
// CUSTOM CURSOR
|
| 962 |
+
// ═════════════════════════════════════════════════════
|
| 963 |
+
const cursor = document.getElementById('cursor');
|
| 964 |
+
const cursorHalo = document.getElementById('cursor-halo');
|
| 965 |
+
const cursorTrail = document.getElementById('cursor-trail');
|
| 966 |
+
|
| 967 |
+
let mouseX = 0, mouseY = 0;
|
| 968 |
+
let cursorX = 0, cursorY = 0;
|
| 969 |
+
let haloX = 0, haloY = 0;
|
| 970 |
+
let trailX = 0, trailY = 0;
|
| 971 |
+
|
| 972 |
+
document.addEventListener('mousemove', e => {
|
| 973 |
+
mouseX = e.clientX;
|
| 974 |
+
mouseY = e.clientY;
|
| 975 |
+
});
|
| 976 |
+
|
| 977 |
+
function animateCursor() {
|
| 978 |
+
// Smooth follow for cursor
|
| 979 |
+
cursorX += (mouseX - cursorX) * 0.2;
|
| 980 |
+
cursorY += (mouseY - cursorY) * 0.2;
|
| 981 |
+
cursor.style.left = cursorX + 'px';
|
| 982 |
+
cursor.style.top = cursorY + 'px';
|
| 983 |
+
|
| 984 |
+
// Slower follow for halo
|
| 985 |
+
haloX += (mouseX - haloX) * 0.08;
|
| 986 |
+
haloY += (mouseY - haloY) * 0.08;
|
| 987 |
+
cursorHalo.style.left = haloX + 'px';
|
| 988 |
+
cursorHalo.style.top = haloY + 'px';
|
| 989 |
+
|
| 990 |
+
// Even slower for trail
|
| 991 |
+
trailX += (mouseX - trailX) * 0.04;
|
| 992 |
+
trailY += (mouseY - trailY) * 0.04;
|
| 993 |
+
cursorTrail.style.left = trailX + 'px';
|
| 994 |
+
cursorTrail.style.top = trailY + 'px';
|
| 995 |
+
|
| 996 |
+
requestAnimationFrame(animateCursor);
|
| 997 |
+
}
|
| 998 |
+
|
| 999 |
+
animateCursor();
|
| 1000 |
+
|
| 1001 |
+
// Cursor grow on hover over interactive elements
|
| 1002 |
+
const interactiveElements = document.querySelectorAll('a, button, .glass-card');
|
| 1003 |
+
|
| 1004 |
+
interactiveElements.forEach(el => {
|
| 1005 |
+
el.addEventListener('mouseenter', () => {
|
| 1006 |
+
cursor.style.width = '12px';
|
| 1007 |
+
cursor.style.height = '12px';
|
| 1008 |
+
cursorHalo.style.width = '60px';
|
| 1009 |
+
cursorHalo.style.height = '60px';
|
| 1010 |
+
});
|
| 1011 |
+
|
| 1012 |
+
el.addEventListener('mouseleave', () => {
|
| 1013 |
+
cursor.style.width = '8px';
|
| 1014 |
+
cursor.style.height = '8px';
|
| 1015 |
+
cursorHalo.style.width = '40px';
|
| 1016 |
+
cursorHalo.style.height = '40px';
|
| 1017 |
+
});
|
| 1018 |
+
});
|
| 1019 |
+
|
| 1020 |
+
// ═════════════════════════════════════════════════════
|
| 1021 |
+
// SCROLL ANIMATIONS
|
| 1022 |
+
// ═════════════════════════════════════════════════════
|
| 1023 |
+
const chapters = ['s-hero','s-about','s-research','s-pantheon']
|
| 1024 |
+
.map(id => document.getElementById(id));
|
| 1025 |
+
const contents = ['c-hero','c-about','c-research','c-pantheon']
|
| 1026 |
+
.map(id => document.getElementById(id));
|
| 1027 |
+
|
| 1028 |
+
function updateContentFade() {
|
| 1029 |
+
const sy = window.scrollY;
|
| 1030 |
+
const vh = window.innerHeight;
|
| 1031 |
+
|
| 1032 |
+
chapters.forEach((el, i) => {
|
| 1033 |
+
const rect = el.getBoundingClientRect();
|
| 1034 |
+
const start = rect.top;
|
| 1035 |
+
const height = rect.height;
|
| 1036 |
+
|
| 1037 |
+
// Calculate progress through this chapter
|
| 1038 |
+
const p = Math.max(0, Math.min(1, -start / Math.max(1, height - vh)));
|
| 1039 |
+
|
| 1040 |
+
let opacity, translateY;
|
| 1041 |
+
|
| 1042 |
+
// Fade in during first 15% of scroll
|
| 1043 |
+
if (p < 0.15) {
|
| 1044 |
+
opacity = p / 0.15;
|
| 1045 |
+
translateY = (1 - opacity) * 20;
|
| 1046 |
+
}
|
| 1047 |
+
// Stay fully visible from 15% to 85%
|
| 1048 |
+
else if (p < 0.85) {
|
| 1049 |
+
opacity = 1;
|
| 1050 |
+
translateY = 0;
|
| 1051 |
+
}
|
| 1052 |
+
// Fade out during last 15%
|
| 1053 |
+
else {
|
| 1054 |
+
opacity = 1 - (p - 0.85) / 0.15;
|
| 1055 |
+
translateY = -(1 - opacity) * 15;
|
| 1056 |
+
}
|
| 1057 |
+
|
| 1058 |
+
contents[i].style.opacity = Math.max(0, Math.min(1, opacity));
|
| 1059 |
+
contents[i].style.transform = `translateY(${translateY}px)`;
|
| 1060 |
+
});
|
| 1061 |
+
}
|
| 1062 |
+
|
| 1063 |
+
window.addEventListener('scroll', updateContentFade, { passive: true });
|
| 1064 |
+
updateContentFade();
|
| 1065 |
+
|
| 1066 |
+
// ═════════════════════════════════════════════════════
|
| 1067 |
+
// NAVIGATION
|
| 1068 |
+
// ═════════════════════════════════════════════════════
|
| 1069 |
+
const nav = document.getElementById('nav');
|
| 1070 |
+
|
| 1071 |
+
window.addEventListener('scroll', () => {
|
| 1072 |
+
if (window.scrollY > 50) {
|
| 1073 |
+
nav.classList.add('scrolled');
|
| 1074 |
+
} else {
|
| 1075 |
+
nav.classList.remove('scrolled');
|
| 1076 |
+
}
|
| 1077 |
+
}, { passive: true });
|
| 1078 |
+
|
| 1079 |
+
// Smooth scroll for nav links
|
| 1080 |
+
document.querySelectorAll('a[href^="#"]').forEach(a => {
|
| 1081 |
+
a.addEventListener('click', e => {
|
| 1082 |
+
e.preventDefault();
|
| 1083 |
+
const target = document.querySelector(a.getAttribute('href'));
|
| 1084 |
+
if (!target) return;
|
| 1085 |
+
|
| 1086 |
+
const startY = window.scrollY;
|
| 1087 |
+
const endY = target.offsetTop;
|
| 1088 |
+
const dist = endY - startY;
|
| 1089 |
+
const dur = 800;
|
| 1090 |
+
let startTime = null;
|
| 1091 |
+
|
| 1092 |
+
function easeInOutCubic(t) {
|
| 1093 |
+
return t < 0.5 ? 4*t*t*t : 1 - Math.pow(-2*t+2, 3)/2;
|
| 1094 |
+
}
|
| 1095 |
+
|
| 1096 |
+
function step(ts) {
|
| 1097 |
+
if (!startTime) startTime = ts;
|
| 1098 |
+
const elapsed = ts - startTime;
|
| 1099 |
+
const t = Math.min(1, elapsed / dur);
|
| 1100 |
+
window.scrollTo(0, startY + dist * easeInOutCubic(t));
|
| 1101 |
+
if (t < 1) requestAnimationFrame(step);
|
| 1102 |
+
}
|
| 1103 |
+
|
| 1104 |
+
requestAnimationFrame(step);
|
| 1105 |
+
});
|
| 1106 |
+
});
|
| 1107 |
+
</script>
|
| 1108 |
+
</body>
|
| 1109 |
+
</html>
|