From d2bdec9a1a03b4875162a63d750feb94459345ac Mon Sep 17 00:00:00 2001 From: Olen Latham Date: Fri, 2 Oct 2026 18:07:20 -0500 Subject: [PATCH 1/2] Replace project cards with an interactive observatory --- cinematic/gallery.js | 24 - cinematic/observatory.js | 225 ++++++ cinematic/scene.js | 1 + src/lib/components/ProjectObservatory.svelte | 436 ++++++++++++ src/lib/styles/portfolio-home.css | 512 +------------- src/lib/styles/project-observatory.css | 692 +++++++++++++++++++ src/routes/+page.svelte | 154 +---- 7 files changed, 1358 insertions(+), 686 deletions(-) create mode 100644 cinematic/observatory.js create mode 100644 src/lib/components/ProjectObservatory.svelte create mode 100644 src/lib/styles/project-observatory.css diff --git a/cinematic/gallery.js b/cinematic/gallery.js index cb998c8..2803ccb 100644 --- a/cinematic/gallery.js +++ b/cinematic/gallery.js @@ -40,23 +40,6 @@ export function mountPortfolioSpace(canvas) { }); const stars = new THREE.Points(geometry, material); scene.add(stars); - const orbitGeometry = new THREE.RingGeometry(4.2, 4.217, 180); - const orbitMaterial = new THREE.MeshBasicMaterial({ - color: '#dfa57a', - side: THREE.DoubleSide, - transparent: true, - opacity: 0.075, - depthWrite: false - }); - const orbits = new THREE.Group(); - for (let i = 0; i < 3; i++) { - const ring = new THREE.Mesh(orbitGeometry, orbitMaterial); - ring.scale.setScalar(1 + i * 0.19); - ring.rotation.set(0.7 + i * 0.16, 0.25, -0.4); - orbits.add(ring); - } - orbits.position.set(4, 0, -1); - scene.add(orbits); let frame = 0, last = 0, visible = false, @@ -66,8 +49,6 @@ export function mountPortfolioSpace(canvas) { let renderWidth = 0, renderHeight = 0; let enabled = document.body.dataset.motion !== 'off' && !reduced.matches; - const warm = new THREE.Color('#dfa57a'), - cool = new THREE.Color('#85c4e4'); function draw(now = 0) { frame = 0; if (disposed || lost || document.hidden || !visible) return; @@ -76,9 +57,6 @@ export function mountPortfolioSpace(canvas) { last = now; if (enabled) stars.rotation.y += delta * 0.008; stars.position.y = enabled ? progress * 2 : 0; - orbits.rotation.z = enabled ? -progress * 0.7 : -0.2; - orbits.position.x = enabled ? 4 - Math.sin(progress * Math.PI) * 7 : 2; - orbitMaterial.color.copy(warm).lerp(cool, Math.sin(progress * Math.PI)); renderer.render(scene, camera); } if (enabled) frame = requestAnimationFrame(draw); @@ -155,8 +133,6 @@ export function mountPortfolioSpace(canvas) { canvas.removeEventListener('webglcontextlost', contextLost); geometry.dispose(); material.dispose(); - orbitGeometry.dispose(); - orbitMaterial.dispose(); renderer.dispose(); }; } diff --git a/cinematic/observatory.js b/cinematic/observatory.js new file mode 100644 index 0000000..0382a98 --- /dev/null +++ b/cinematic/observatory.js @@ -0,0 +1,225 @@ +import * as THREE from 'three'; + +const vertexShader = ` +varying vec2 vUv; +void main() { + vUv = uv; + gl_Position = vec4(position.xy, 0.0, 1.0); +}`; + +const fragmentShader = ` +varying vec2 vUv; +uniform float uTime; +uniform float uAspect; +uniform vec3 uColor; +uniform vec2 uPointer; +float hash(vec3 p) { + p = fract(p * .3183099 + vec3(.11, .27, .43)); + p *= 17.0; + return fract(p.x * p.y * p.z * (p.x + p.y + p.z)); +} +float noise(vec3 p) { + vec3 i = floor(p), f = fract(p); + f = f * f * (3.0 - 2.0 * f); + return mix(mix(mix(hash(i), hash(i + vec3(1,0,0)), f.x), + mix(hash(i + vec3(0,1,0)), hash(i + vec3(1,1,0)), f.x), f.y), + mix(mix(hash(i + vec3(0,0,1)), hash(i + vec3(1,0,1)), f.x), + mix(hash(i + vec3(0,1,1)), hash(i + vec3(1,1,1)), f.x), f.y), f.z); +} +float cloud(vec3 p) { + float value = 0.0, amplitude = .5; + for (int i = 0; i < 4; i++) { + value += amplitude * noise(p); + p = p * 2.03 + vec3(13.1, 7.7, 2.9); + amplitude *= .5; + } + return value; +} +void main() { + vec2 uv = vUv; + vec2 p = (uv - vec2(.7, .80)) * vec2(uAspect, 1.0); + p += uPointer * .025; + float t = uTime * .028; + float dust = cloud(vec3(p * 3.2, t)); + float filament = p.y + p.x * .26 - sin(p.x * 1.7 + .5) * .16; + float body = exp(-abs(filament + (dust - .5) * .42) * 16.0); + float rift = smoothstep(.38, .75, cloud(vec3(p * 6.0 + dust * 2.0, t * .6 + 4.0))); + float wisps = pow(max(dust, 0.0), 2.3) * body; + float light = wisps * (1.0 - rift * .9); + vec3 color = uColor * light * 4.0; + color += vec3(.23, .36, .48) * dust * exp(-abs(filament + .24) * 5.0) * .17; + float edge = smoothstep(0.0, .18, uv.y) * smoothstep(0.0, .2, 1.0 - uv.y); + float leftShade = smoothstep(.05, .6, uv.x); + gl_FragColor = vec4(pow(max(color, vec3(0.0)), vec3(.8)) * edge * leftShade, 1.0); +}`; + +export function mountObservatory(canvas, initialProject = 0) { + const root = canvas.closest('.observatory'); + const reduced = matchMedia('(prefers-reduced-motion: reduce)'); + let renderer; + try { + renderer = new THREE.WebGLRenderer({ + canvas, + alpha: true, + antialias: false, + powerPreference: 'low-power' + }); + } catch { + return { select() {}, dispose() {} }; + } + renderer.setPixelRatio(Math.min(devicePixelRatio, 1.25)); + const scene = new THREE.Scene(); + const camera = new THREE.PerspectiveCamera(55, 1, 0.1, 70); + camera.position.z = 10; + const colors = ['#d89d68', '#64b2d2', '#79c4a5'].map((color) => new THREE.Color(color)); + const targetColor = colors[initialProject].clone(); + const pointer = new THREE.Vector2(); + const material = new THREE.ShaderMaterial({ + vertexShader, + fragmentShader, + depthWrite: false, + depthTest: false, + uniforms: { + uTime: { value: 0 }, + uAspect: { value: 1 }, + uColor: { value: targetColor.clone() }, + uPointer: { value: new THREE.Vector2() } + } + }); + const planeGeometry = new THREE.PlaneGeometry(2, 2); + const nebula = new THREE.Mesh(planeGeometry, material); + nebula.frustumCulled = false; + nebula.renderOrder = -1; + scene.add(nebula); + const positions = new Float32Array(1200 * 3); + let seed = 827; + const random = () => { + seed = (seed * 16807) % 2147483647; + return seed / 2147483647; + }; + for (let i = 0; i < positions.length; i += 3) { + positions[i] = (random() - 0.5) * 40; + positions[i + 1] = (random() - 0.5) * 22; + positions[i + 2] = -random() * 24; + } + const starGeometry = new THREE.BufferGeometry(); + starGeometry.setAttribute('position', new THREE.BufferAttribute(positions, 3)); + const starMaterial = new THREE.PointsMaterial({ + color: '#d2e1ed', + size: 0.022, + transparent: true, + opacity: 0.7, + depthWrite: false + }); + const stars = new THREE.Points(starGeometry, starMaterial); + scene.add(stars); + let disposed = false, + lost = false, + visible = false, + frame = 0, + last = 0; + let width = 0, + height = 0; + let motionEnabled = !reduced.matches && document.body.dataset.motion !== 'off'; + function draw(now = 0) { + frame = 0; + if (disposed || lost || !visible || document.hidden) return; + if (now - last >= 32 || !motionEnabled) { + const delta = Math.min(Math.max((now - last) / 1000, 0), 0.05); + last = now; + if (motionEnabled) { + material.uniforms.uTime.value += delta; + material.uniforms.uColor.value.lerp(targetColor, 1 - Math.exp(-delta * 3)); + material.uniforms.uPointer.value.lerp(pointer, 1 - Math.exp(-delta * 3)); + stars.rotation.y += delta * 0.003; + stars.position.x = material.uniforms.uPointer.value.x * 0.1; + } else { + material.uniforms.uColor.value.copy(targetColor); + material.uniforms.uPointer.value.set(0, 0); + } + renderer.render(scene, camera); + } + if (motionEnabled) frame = requestAnimationFrame(draw); + } + function schedule() { + if (!frame && visible && !disposed && !lost && !document.hidden) + frame = requestAnimationFrame(draw); + } + function resize() { + const nextWidth = canvas.clientWidth, + nextHeight = canvas.clientHeight; + if (!nextWidth || !nextHeight || (nextWidth === width && nextHeight === height)) return; + width = nextWidth; + height = nextHeight; + renderer.setSize(width, height, false); + material.uniforms.uAspect.value = width / height; + camera.aspect = width / height; + camera.updateProjectionMatrix(); + schedule(); + } + function pause() { + motionEnabled = !reduced.matches && document.body.dataset.motion !== 'off'; + cancelAnimationFrame(frame); + frame = 0; + last = 0; + schedule(); + } + function point(event) { + if (!motionEnabled || event.pointerType === 'touch') return; + const rect = root.getBoundingClientRect(); + pointer.set( + (event.clientX - rect.left) / rect.width - 0.5, + (event.clientY - rect.top) / rect.height - 0.5 + ); + } + function leave() { + pointer.set(0, 0); + } + function contextLost(event) { + event.preventDefault(); + lost = true; + canvas.style.opacity = '0'; + cancelAnimationFrame(frame); + frame = 0; + } + const observer = new IntersectionObserver(([entry]) => { + visible = entry.isIntersecting; + cancelAnimationFrame(frame); + frame = 0; + last = 0; + schedule(); + }); + observer.observe(root); + const sizing = new ResizeObserver(resize); + sizing.observe(canvas); + root.addEventListener('pointermove', point, { passive: true }); + root.addEventListener('pointerleave', leave); + document.addEventListener('orbit-motion', pause); + document.addEventListener('visibilitychange', pause); + reduced.addEventListener('change', pause); + canvas.addEventListener('webglcontextlost', contextLost); + resize(); + return { + select(index) { + targetColor.copy(colors[index] ?? colors[0]); + schedule(); + }, + dispose() { + disposed = true; + cancelAnimationFrame(frame); + observer.disconnect(); + sizing.disconnect(); + root.removeEventListener('pointermove', point); + root.removeEventListener('pointerleave', leave); + document.removeEventListener('orbit-motion', pause); + document.removeEventListener('visibilitychange', pause); + reduced.removeEventListener('change', pause); + canvas.removeEventListener('webglcontextlost', contextLost); + planeGeometry.dispose(); + material.dispose(); + starGeometry.dispose(); + starMaterial.dispose(); + renderer.dispose(); + } + }; +} diff --git a/cinematic/scene.js b/cinematic/scene.js index cf9896f..4fbc67f 100644 --- a/cinematic/scene.js +++ b/cinematic/scene.js @@ -7,6 +7,7 @@ import { OutputPass } from 'three/addons/postprocessing/OutputPass.js'; import { ShaderPass } from 'three/addons/postprocessing/ShaderPass.js'; import { createVoyage } from './voyage.js'; export { mountPortfolioSpace } from './gallery.js'; +export { mountObservatory } from './observatory.js'; export function mountOrbit(hero) { const body = document.body; diff --git a/src/lib/components/ProjectObservatory.svelte b/src/lib/components/ProjectObservatory.svelte new file mode 100644 index 0000000..e5dff5f --- /dev/null +++ b/src/lib/components/ProjectObservatory.svelte @@ -0,0 +1,436 @@ + + +
+
+

The work,
up close.

+

Tools I wanted to exist.
Now you can look inside.

+
+ +
+ +
+ {#each projects as project, index (project.id)} + + {/each} +
+ + + +
+ Three projects. Still building.Select a project. Explore what it does. +
+
+
diff --git a/src/lib/styles/portfolio-home.css b/src/lib/styles/portfolio-home.css index 3db58ef..c7f51be 100644 --- a/src/lib/styles/portfolio-home.css +++ b/src/lib/styles/portfolio-home.css @@ -22,292 +22,22 @@ height: 100svh; opacity: 0.8; } -.selected-work { - padding-top: 130px; -} -.selected-work > header, .usage-section, .human-section { width: min(90%, 1200px); margin: auto; } -.selected-work > header { - position: relative; - padding-bottom: 80px; - display: grid; - grid-template-columns: 1.2fr 0.8fr; - column-gap: 100px; - align-items: end; -} -.section-label, -.project-kind { +.section-label { font-size: 12px; color: var(--faint); margin: 0 0 22px; } -.selected-work > header .section-label { - grid-column: 1/-1; -} -.selected-work h2, .human-section h2, .closing h2 { font: 400 clamp(50px, 6.5vw, 92px)/1.02 var(--display); letter-spacing: -0.035em; margin: 0; } -.selected-work > header > p:not(.section-label) { - max-width: 39ch; - color: var(--muted); - line-height: 1.8; - font-size: 15px; - margin: 0 0 8px; -} -.project-index { - grid-column: 1/-1; - display: flex; - gap: 55px; - margin-top: 55px; - padding-top: 24px; - border-top: 1px solid var(--line); -} -.project-index a { - color: var(--ink); - font: 400 21px var(--display); - text-decoration: none; - padding: 8px 0; -} -.project-index span { - display: block; - font: - 11px/1.5 'Geist Variable', - sans-serif; - margin-top: 8px; - color: var(--faint); -} -.project { - position: relative; - isolation: isolate; - display: grid; - grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); - align-items: center; - gap: 70px; - min-height: 740px; - padding: 100px max(5%, calc((100vw - 1280px) / 2)); - overflow: clip; - scroll-margin-top: 0; -} -.project::before { - content: ''; - position: absolute; - inset: 0; - z-index: -2; - pointer-events: none; -} -.project-omg { - --project-accent: var(--copper); -} -.project-omg::before { - background: - radial-gradient(ellipse at 21% 57%, #9c54262e, transparent 55%), - linear-gradient(180deg, transparent, #1b0d062b 50%, transparent); -} -.project-deploylint { - --project-accent: var(--ice); - grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr); -} -.project-deploylint::before { - background: radial-gradient(ellipse at 76% 54%, #15598735, transparent 58%); -} -.project-visual { - min-width: 0; - position: relative; - padding: 80px 0 60px; -} -.project-deploylint .project-visual { - order: 2; -} -.project-world { - position: absolute; - inset: -80px -100px; - pointer-events: none; - z-index: -1; -} -.world-core { - position: absolute; - width: 78%; - aspect-ratio: 1; - top: 6%; - left: 5%; - border-radius: 50%; - background: radial-gradient(circle at 33% 22%, #dba27914, #47261122 39%, #030509 69%); - border-top: 1px solid #db9a6355; - box-shadow: 0 -12px 80px #b45d2522; - transform: rotate(-24deg); -} -.world-orbit { - position: absolute; - inset: 20% -5%; - border: 1px solid #d9a57f38; - border-radius: 50%; - transform: rotate(-27deg); -} -.project-deploylint .world-core { - background: radial-gradient(circle at 60% 22%, #7dbdec17, #152d4122 40%, #030509 72%); - border-color: #85d1ff55; - box-shadow: 0 -12px 70px #397cb422; -} -.project-deploylint .world-orbit { - border-color: #81c9e644; - transform: rotate(28deg); -} -.project-watermark { - position: absolute; - font: 700 clamp(170px, 22vw, 330px)/1 var(--display); - letter-spacing: -0.06em; - color: #eaaa6518; - left: -4%; - top: -80px; - pointer-events: none; -} -.project-image { - display: block; - position: relative; - overflow: hidden; - border: 1px solid #f9c89c35; - border-radius: 9px; - background: #07090d; - box-shadow: - 0 40px 70px #0009, - 0 0 80px #e1843110; - transform: perspective(1500px) rotateY(11deg) rotateX(4deg) rotateZ(-3deg); - transition: - transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), - box-shadow 0.6s; -} -.project-deploylint .project-image { - transform: perspective(1500px) rotateY(-11deg) rotateX(4deg) rotateZ(3deg); - border-color: #a6def548; - box-shadow: - 0 40px 70px #0009, - 0 0 80px #78ccff14; -} -.project-image:hover, -.project-image:focus-visible { - transform: perspective(1500px) rotateY(0) rotateX(0); - box-shadow: - 0 45px 90px #000b, - 0 0 90px #a6def518; -} -.project-image img { - display: block; - width: 100%; - height: auto; - aspect-ratio: 16/10; - object-fit: cover; - object-position: top; -} -.command-strip, -.pipeline-strip { - position: relative; - display: flex; - align-items: center; - gap: 14px; - width: 88%; - margin: -10px auto 0; - padding: 21px 24px; - border: 1px solid #f0bd8340; - background: #120e0bf5; - box-shadow: 0 20px 45px #0009; - transform: rotate(-3deg); - color: #e5cbb2; - font-size: 12px; -} -.command-strip > span:first-child { - color: #cb8e61; -} -.command-strip code { - font-size: 17px; -} -.command-strip > span:last-child { - margin-left: auto; - color: #b3a79b; - font-size: 10px; -} -.pipeline-strip { - border-color: #95ddff40; - background: #080f18f5; - color: #c2d9e8; - font-size: 10px; - transform: rotate(3deg); -} -.pipeline-strip i { - height: 1px; - flex: 1; - background: #7cbbd966; - position: relative; -} -.pipeline-strip i::after { - content: ''; - width: 5px; - height: 5px; - border-top: 1px solid #a6def5; - border-right: 1px solid #a6def5; - position: absolute; - right: 0; - top: -2px; - transform: rotate(45deg); -} -.project-copy { - position: relative; -} -.project-kind { - color: var(--project-accent); - display: flex; - align-items: center; - gap: 9px; -} -.project-kind > span { - width: 5px; - height: 5px; - border-radius: 50%; - background: currentColor; - box-shadow: 0 0 14px currentColor; -} -.project-copy h3 { - font: 400 clamp(57px, 6vw, 88px)/1 var(--display); - letter-spacing: -0.03em; - margin: 0 0 26px; -} -.project-copy h4 { - font: 400 clamp(25px, 2.6vw, 35px)/1.15 var(--display); - margin: 0 0 22px; - color: #e4e8ec; -} -.project-copy > p:not(.project-kind) { - font-size: 14px; - color: var(--muted); - line-height: 1.85; - max-width: 45ch; -} -.project-tech { - display: flex; - flex-wrap: wrap; - list-style: none; - padding: 0; - margin: 25px 0; - gap: 20px; - color: #8998aa; - font-size: 11px; -} -.project-links { - display: flex; - flex-wrap: wrap; - column-gap: 23px; - row-gap: 10px; - margin-top: 30px; -} -.project-links a, -.side-project a, .human-section a, .closing a { color: var(--accent); @@ -319,109 +49,10 @@ text-decoration: none; padding: 12px 0; } -.project-links a { - color: var(--project-accent); -} -.project-links a:first-child { - flex-basis: 100%; - color: var(--ink); - font-size: 14px; -} -.project-links a:hover, -.side-project a:hover, .human-section a:hover { text-decoration: underline; text-underline-offset: 5px; } -.side-project { - display: grid; - grid-template-columns: 1fr 1fr; - align-items: center; - gap: 90px; - width: min(90%, 1080px); - margin: 80px auto 30px; - padding: 30px 0; -} -.side-project h3 { - font: 400 clamp(44px, 5vw, 70px)/1 var(--display); - letter-spacing: -0.025em; - margin: 0 0 24px; -} -.side-project p:not(.section-label) { - color: var(--muted); - font-size: 14px; - line-height: 1.85; - max-width: 46ch; -} -.token-instrument { - position: relative; - width: 100%; - aspect-ratio: 1; - max-width: 460px; - border-radius: 50%; - background: radial-gradient(circle, #287e8920 0, #13322b10 35%, transparent 67%); -} -.instrument-ring { - position: absolute; - border: 1px solid #97ddcb39; - border-radius: 50%; -} -.instrument-ring.outer { - inset: 6%; - border-left-color: #b7e8d2; - transform: rotate(-40deg); -} -.instrument-ring.inner { - inset: 16%; - border-style: dashed; - opacity: 0.6; -} -.instrument-ring.outer::before, -.instrument-ring.outer::after { - content: ''; - position: absolute; - inset: -10%; - border-radius: 50%; - border: 1px solid #97ddcb10; -} -.instrument-ring.outer::after { - inset: 4%; - border-color: #97ddcb21; -} -.instrument-core { - position: absolute; - inset: 0; - display: flex; - align-items: center; - justify-content: center; - flex-direction: column; - gap: 14px; -} -.instrument-core > span, -.instrument-core small { - font-size: 11px; - color: #a7c5bc; -} -.instrument-core strong { - font: 400 clamp(70px, 8vw, 108px)/1 var(--display); - letter-spacing: -0.05em; - color: #e5fff7; -} -.instrument-core strong span { - font-size: 0.55em; - color: #99d2ba; - margin-left: 6px; -} -.instrument-core small { - color: #78978e; - font-size: 10px; -} -.instrument-satellite { - position: absolute; - inset: 6%; - border-radius: 50%; - animation: telemetry-orbit 70s linear infinite; -} .usage-section { padding: 25px 0 120px; display: grid; @@ -644,24 +275,6 @@ body:has(.portfolio-content) .public-universe { background: #030509; } @media (max-width: 1000px) { - .selected-work > header { - column-gap: 50px; - } - .project { - gap: 35px; - min-height: 640px; - padding-top: 65px; - padding-bottom: 65px; - } - .project-copy h3 { - font-size: 60px; - } - .project-tech { - gap: 13px; - } - .side-project { - gap: 45px; - } .human-section { gap: 45px; } @@ -670,98 +283,10 @@ body:has(.portfolio-content) .public-universe { } } @media (max-width: 700px) { - .selected-work { - padding-top: 80px; - } - .selected-work > header, .usage-section, .human-section { width: calc(100% - 40px); } - .selected-work > header { - display: block; - padding-bottom: 30px; - } - .selected-work h2 { - font-size: 61px; - } - .selected-work > header > p:not(.section-label) { - margin-top: 25px; - font-size: 14px; - } - .project-index { - gap: 0; - justify-content: space-between; - margin-top: 34px; - } - .project-index a { - font-size: 18px; - } - .project-index span { - font-size: 9px; - } - .project, - .project-deploylint { - grid-template-columns: 1fr; - gap: 20px; - min-height: auto; - padding: 70px 20px 85px; - } - .project-visual, - .project-deploylint .project-visual { - order: 0; - padding: 30px 9px 20px; - } - .project-world { - inset: -40px -20px; - } - .project-watermark { - top: -30px; - font-size: 150px; - } - .project-copy { - padding-top: 18px; - } - .project-copy h3 { - font-size: 64px; - margin-bottom: 22px; - } - .project-copy h4 { - font-size: 31px; - } - .project-image, - .project-deploylint .project-image { - transform: perspective(1000px) rotateY(0) rotateZ(-2deg); - } - .project-deploylint .project-image { - transform: perspective(1000px) rotateY(0) rotateZ(2deg); - } - .command-strip, - .pipeline-strip { - padding: 16px; - } - .command-strip > span:last-child { - font-size: 9px; - } - .project-links { - margin-top: 23px; - } - .side-project { - grid-template-columns: 1fr; - width: calc(100% - 40px); - gap: 25px; - margin: 0 auto; - } - .token-instrument { - max-width: 340px; - justify-self: center; - } - .instrument-core strong { - font-size: 84px; - } - .side-project h3 { - font-size: 52px; - } .usage-section { display: block; padding: 35px 0 70px; @@ -812,38 +337,3 @@ body:has(.portfolio-content) .public-universe { left: -55%; } } -@media (prefers-reduced-motion: reduce) { - .project-image, - .project-deploylint .project-image { - transition: none; - transform: none; - } -} -.instrument-satellite::after { - content: ''; - position: absolute; - left: -4px; - top: 50%; - width: 8px; - height: 8px; - background: #dafff1; - border-radius: 50%; - box-shadow: 0 0 20px #98e9c8; -} -@keyframes telemetry-orbit { - from { - transform: rotate(35deg); - } - to { - transform: rotate(395deg); - } -} -body[data-motion='off'] .instrument-satellite { - animation-play-state: paused; -} -@media (prefers-reduced-motion: reduce) { - .instrument-satellite { - animation: none; - transform: rotate(35deg); - } -} diff --git a/src/lib/styles/project-observatory.css b/src/lib/styles/project-observatory.css new file mode 100644 index 0000000..0dc7fdc --- /dev/null +++ b/src/lib/styles/project-observatory.css @@ -0,0 +1,692 @@ +.observatory { + --project-light: #f2bc8b; + position: relative; + isolation: isolate; + padding: 110px 0 95px; + color: #f0f1ef; + scroll-margin-top: 24px; +} +.observatory[data-project='deploylint'] { + --project-light: #99d7ef; +} +.observatory[data-project='tokens'] { + --project-light: #a7e4ce; +} +.observatory-heading, +.observatory-stage { + width: min(90%, 1360px); + margin: auto; +} +.observatory-heading { + display: flex; + align-items: end; + justify-content: space-between; + padding-bottom: 50px; +} +.observatory-heading h2 { + font: 400 clamp(55px, 6.3vw, 86px)/0.98 var(--display); + letter-spacing: -0.035em; + margin: 0; +} +.observatory-heading h2 span { + color: #a6b1c0; +} +.observatory-heading p { + color: #a6b1c0; + font-size: 14px; + line-height: 1.8; + margin: 0 0 6px; +} +.observatory-stage { + position: relative; +} +.observatory-sky { + position: absolute; + z-index: -1; + inset: -240px -5vw -60px; + pointer-events: none; + overflow: hidden; + background: radial-gradient(ellipse at 80% 42%, #91634129, transparent 65%); + mask-image: linear-gradient(transparent, #000 20%, #000 75%, transparent); +} +[data-project='deploylint'] .observatory-sky { + background: radial-gradient(ellipse at 80% 42%, #326d872c, transparent 65%); +} +[data-project='tokens'] .observatory-sky { + background: radial-gradient(ellipse at 80% 42%, #326d5a2c, transparent 65%); +} +.observatory-sky canvas { + display: block; + width: 100%; + height: 100%; +} +.project-selector { + display: grid; + grid-template-columns: repeat(3, 1fr); + border-bottom: 1px solid #b2c3d42b; +} +.project-selector button { + position: relative; + display: flex; + align-items: center; + gap: 16px; + color: #97a5b6; + background: transparent; + border: 0; + padding: 25px 28px 26px; + text-align: left; + cursor: pointer; + font-family: inherit; +} +.project-selector button:first-child { + padding-left: 0; +} +.project-selector button::after { + content: ''; + position: absolute; + height: 2px; + bottom: -1px; + left: 0; + right: 0; + background: var(--project-light); + transform: scaleX(0); + transform-origin: left; + transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1); +} +.project-selector button[aria-selected='true'] { + color: var(--project-light); +} +.project-selector button[aria-selected='true']::after { + transform: scaleX(1); +} +.project-selector strong { + display: block; + font: 400 25px/1 var(--display); + color: #ecefee; +} +.project-selector small { + display: block; + font-size: 11px; + margin-top: 9px; + color: #9ba9b9; +} +.project-selected-mark { + margin-left: auto; + opacity: 0; + transform: translateX(-8px); + transition: + opacity 0.3s, + transform 0.3s; +} +[aria-selected='true'] .project-selected-mark { + opacity: 1; + transform: none; +} +.observatory-panel { + display: grid; + grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr); + gap: clamp(35px, 5vw, 85px); + align-items: center; + min-height: 550px; + padding: 58px 0 48px; + animation: observatory-reveal 650ms cubic-bezier(0.16, 1, 0.3, 1) both; +} +.observatory-panel[hidden] { + display: none; +} +.observatory-story h3 { + font: 400 clamp(34px, 3.6vw, 52px)/1.07 var(--display); + letter-spacing: -0.025em; + margin: 0 0 24px; + text-wrap: balance; +} +.observatory-story > p { + max-width: 40ch; + color: #b0bdcd; + font-size: 14px; + line-height: 1.8; + margin: 0 0 26px; +} +.observatory-story .project-materials { + font-size: 10px; + color: #acb8c8; + display: flex; + gap: 10px; + flex-wrap: wrap; + margin: 0 0 33px; +} +.project-materials span { + color: #66788b; +} +.observatory a { + text-decoration: none; +} +.observatory a:hover { + text-decoration: underline; + text-underline-offset: 5px; +} +.observatory-primary-link { + display: inline-flex; + align-items: center; + justify-content: space-between; + gap: 26px; + padding: 14px 19px; + background: var(--project-light); + color: #0b1115; + font-size: 13px; + border-radius: 3px; + min-height: 46px; +} +.observatory-evidence { + display: flex; + align-items: center; + gap: 28px; + margin-top: 17px; +} +.observatory-evidence a { + display: inline-flex; + align-items: center; + gap: 7px; + color: #c1cbd7; + font-size: 11px; + padding: 10px 0; +} +.observatory-story .observatory-smallprint { + font-size: 11px; + margin: 22px 0 0; + color: #a0b2ba; +} +.project-experience { + position: relative; + min-width: 0; + background: linear-gradient(140deg, #111a21f7, #050a0ff5 75%); + border: 1px solid #d5e4ef28; + border-radius: 12px; + overflow: hidden; +} +.experience-topline, +.experience-bottomline { + display: flex; + justify-content: space-between; + align-items: center; + gap: 12px; + padding: 20px 25px; + font-size: 11px; + color: #aebdcc; +} +.experience-topline { + border-bottom: 1px solid #ccdde917; +} +.experience-topline > span { + display: flex; + align-items: center; + gap: 8px; + color: #d8e1e7; +} +.experience-topline small { + font-size: 10px; + color: #98a6b7; +} +.experience-bottomline { + border-top: 1px solid #ccdde917; + font-size: 10px; + padding-top: 15px; + padding-bottom: 15px; +} +.experience-bottomline > span:first-child { + color: var(--project-light); +} +.command-options, +.metric-options { + display: flex; + gap: 5px; + padding: 22px 23px 0; +} +.command-options button, +.metric-options button { + appearance: none; + font-family: inherit; + font-size: 10px; + color: #a9b5c2; + background: transparent; + padding: 10px 12px; + border: 1px solid transparent; + border-radius: 5px; + cursor: pointer; +} +.command-options button[aria-pressed='true'], +.metric-options button[aria-pressed='true'] { + color: var(--project-light); + background: #fff1; + border-color: #e6eef11a; +} +.command-display { + display: flex; + gap: 12px; + align-items: start; + margin: 36px 28px 32px; +} +.command-display code { + font: + 400 clamp(16px, 1.7vw, 26px)/1.55 'JetBrains Mono Variable', + monospace; + color: #f5cca8; + overflow-wrap: anywhere; +} +.shell-prompt { + color: #ad7f59; + font: 400 23px/1.6 monospace; +} +.copy-command { + background: transparent; + border: 0; + color: #a8b5c0; + margin: 6px -6px 0 auto; + padding: 6px; + cursor: pointer; +} +.command-explanation { + padding: 0 28px 19px; +} +.project-experience h4 { + margin: 0 0 10px; + font-size: 16px; + font-weight: 450; + color: #edf2f3; +} +.project-experience p { + color: #a8b6c5; + font-size: 12px; + line-height: 1.8; + margin: 0; +} +.command-path { + display: flex; + padding: 26px 0; + list-style: none; + margin: 0; +} +.command-path li { + display: flex; + flex: 1; + align-items: center; + justify-content: space-between; + gap: 10px; + font-size: 10px; + color: #d3c6b8; +} +.command-path li span { + padding: 10px 0; + border-bottom: 1px solid #f1bb893b; +} +.command-path li svg { + color: #9e8974; + margin: 0 13px; + flex-shrink: 0; +} +.project-experience .experience-note { + min-height: 39px; + font-size: 10px; + line-height: 1.7; + color: #95a5b6; +} +.workflow-options { + display: flex; + justify-content: space-between; + position: relative; + margin: 25px 28px 28px; +} +.workflow-options::before { + content: ''; + position: absolute; + top: 17px; + left: 30px; + right: 30px; + background: #7fb7ca30; + height: 1px; +} +.workflow-options button { + position: relative; + display: flex; + flex-direction: column; + align-items: center; + gap: 10px; + border: 0; + background: none; + padding: 0 10px; + color: #99adbd; + font: inherit; + font-size: 11px; + cursor: pointer; +} +.workflow-node { + width: 34px; + height: 34px; + border-radius: 50%; + display: grid; + place-items: center; + background: #0b151e; + border: 1px solid #628296; + color: #bfd5e5; + font-size: 12px; + transition: background 0.25s; +} +.workflow-options [aria-pressed='true'] { + color: #d7effb; +} +.workflow-options [aria-pressed='true'] .workflow-node { + background: #a5dced; + border-color: #a5dced; + color: #081018; +} +.workflow-detail { + padding: 0 28px 24px; +} +.workflow-detail > p { + min-height: 65px; +} +.workflow-files { + font-family: 'JetBrains Mono Variable', monospace; + margin-top: 20px; + padding: 17px 20px; + background: #06111b; + border-left: 1px solid #81b3cc; +} +.workflow-files > span { + display: block; + font-size: 10px; + color: #bcd6e7; + margin-bottom: 15px; +} +.workflow-files code { + display: block; + color: #92b1c7; + font-size: 10px; + line-height: 1.9; + overflow-wrap: anywhere; +} +.metric-reading { + padding: 26px 28px 25px; +} +.metric-reading strong { + font: 400 clamp(64px, 7.7vw, 106px)/1.1 var(--display); + font-variant-numeric: tabular-nums; + letter-spacing: -0.035em; + display: block; + color: #dafff0; + margin-bottom: 9px; +} +.metric-reading strong span { + color: #8ac6ad; + font-size: 0.5em; + padding-left: 7px; +} +.telemetry-scale { + display: flex; + justify-content: space-between; + align-items: end; + height: 38px; + margin: 8px 0 22px; + mask-image: linear-gradient(90deg, #000, #0006); +} +.telemetry-scale i { + width: 1px; + height: 9px; + background: #8fc4b0; +} +.telemetry-scale i.major { + height: 18px; +} +.observatory-footnote { + display: flex; + justify-content: space-between; + padding: 19px 0; + color: #8293a6; + font-size: 10px; + border-top: 1px solid #b2c3d429; +} +.observatory button:hover { + color: #fff; +} +.observatory button:focus-visible, +.observatory a:focus-visible, +.observatory-panel:focus-visible { + outline: 2px solid var(--project-light); + outline-offset: 5px; +} +.observatory ::selection { + background: #e6bc85; + color: #071018; +} +@keyframes observatory-reveal { + from { + opacity: 0.65; + transform: translateY(12px); + } + to { + opacity: 1; + transform: none; + } +} +body[data-motion='off'] .observatory-panel { + animation: none; +} +body[data-motion='off'] .observatory * { + transition: none; +} +@media (min-width: 1600px) { + .observatory-panel { + min-height: 610px; + } +} +@media (max-width: 1000px) { + .observatory-panel { + grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); + gap: 32px; + } + .project-selector button { + padding-right: 10px; + padding-left: 15px; + } + .project-selector strong { + font-size: 22px; + } + .project-selected-mark { + display: none; + } + .command-options { + flex-wrap: wrap; + padding: 17px 16px 0; + gap: 1px; + } + .command-options button { + padding: 8px; + } + .command-path { + flex-wrap: wrap; + gap: 4px; + } + .command-path li svg { + margin: 0 6px; + } + .experience-topline { + flex-wrap: wrap; + } + .experience-bottomline { + flex-wrap: wrap; + gap: 7px; + } +} +@media (max-width: 760px) { + .observatory { + padding: 70px 0 55px; + } + .observatory-heading { + align-items: start; + flex-direction: column; + gap: 20px; + padding-bottom: 24px; + } + .observatory-heading h2 { + font-size: 54px; + } + .observatory-heading p { + font-size: 11px; + padding-top: 0; + max-width: none; + } + .observatory-heading p br { + display: none; + } + .observatory-heading p br::after { + content: ' '; + } + .project-selector { + gap: 12px; + } + .project-selector button, + .project-selector button:first-child { + padding: 22px 0; + gap: 9px; + flex-direction: column; + align-items: start; + } + .project-selector strong { + font-size: 20px; + } + .project-selector small { + font-size: 10px; + line-height: 1.5; + margin-top: 6px; + } + .project-selector button > svg { + width: 18px; + } + .observatory-panel { + grid-template-columns: 1fr; + gap: 31px; + padding-top: 35px; + padding-bottom: 28px; + min-height: 0; + } + .observatory-story { + display: grid; + grid-template-columns: 1fr auto; + column-gap: 16px; + } + .observatory-story h3 { + font-size: 39px; + grid-column: 1/-1; + margin-bottom: 17px; + } + .observatory-story > p { + grid-column: 1/-1; + font-size: 13px; + margin-bottom: 20px; + max-width: 51ch; + } + .observatory-story .project-materials { + margin-bottom: 23px; + gap: 9px; + } + .observatory-primary-link { + justify-self: start; + font-size: 12px; + padding: 11px 14px; + gap: 16px; + } + .observatory-evidence { + margin: 0; + gap: 12px; + flex-wrap: wrap; + justify-content: end; + } + .observatory-evidence a { + font-size: 10px; + } + .observatory-story .observatory-smallprint { + grid-column: 1/-1; + margin-top: 18px; + } + .project-experience { + border-radius: 10px; + } + .experience-topline, + .experience-bottomline { + padding-left: 19px; + padding-right: 19px; + } + .command-display { + margin: 29px 19px; + gap: 9px; + } + .command-display code { + font-size: 17px; + } + .command-explanation, + .workflow-detail { + padding-left: 19px; + padding-right: 19px; + } + .project-experience h4 { + font-size: 15px; + } + .command-path li { + font-size: 10px; + } + .command-path li svg { + width: 13px; + margin: 0 4px; + } + .observatory-footnote { + font-size: 10px; + gap: 30px; + line-height: 1.6; + } + .observatory-footnote span:last-child { + text-align: right; + max-width: 19ch; + } + .metric-reading strong { + font-size: 77px; + } + .workflow-detail > p { + min-height: 85px; + } + .workflow-files { + padding: 15px; + } +} +@media (max-width: 360px) { + .observatory-heading { + display: block; + } + .observatory-heading p { + max-width: none; + margin-top: 18px; + } + .project-selector strong { + font-size: 18px; + } + .project-selector small { + font-size: 10px; + } + .observatory-evidence { + grid-column: 1/-1; + justify-content: start; + margin-top: 9px; + } + .command-options button, + .metric-options button { + font-size: 10px; + padding: 9px 7px; + } +} +@media (prefers-reduced-motion: reduce) { + .observatory-panel { + animation: none; + } + .observatory * { + transition: none !important; + } +} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 6c3ba89..15219cc 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -2,16 +2,16 @@ import PublicShell from '$lib/components/PublicShell.svelte'; import CinematicHero from '$lib/components/CinematicHero.svelte'; import PortfolioSpace from '$lib/components/PortfolioSpace.svelte'; + import ProjectObservatory from '$lib/components/ProjectObservatory.svelte'; import '$lib/styles/portfolio-home.css'; import { asset, resolve } from '$app/paths'; import { ArrowUpRightIcon as ArrowUpRight, EnvelopeSimpleIcon as EnvelopeSimple, - GithubLogoIcon as GithubLogo, LinkedinLogoIcon as LinkedinLogo } from 'phosphor-svelte'; import PublicSeoHead from '$lib/components/PublicSeoHead.svelte'; - import { DEPLOYLINT_PROJECT, OMG_PROJECT, TOKEN_CONTROL_URL } from '$lib/domain/showcase'; + import { TOKEN_CONTROL_URL } from '$lib/domain/showcase'; import { homeSeo, PUBLIC_AVAILABILITY_LINE, @@ -26,8 +26,6 @@ let clientTelemetry = $state(null); loadClientTelemetry().then((loaded) => (clientTelemetry = loaded)); - const omgImage = asset('/portfolio/omg-landing.webp'); - const deploylintImage = asset('/portfolio/deploylint-preview.png'); const resumeUrl = asset('/olen-latham-resume.pdf'); @@ -38,153 +36,7 @@
-
-
- -

From the terminal
to production.

-

- A command line. A deployment pipeline. A way to see where the tokens went. Each started - with something I wanted to work better. -

- -
- -
- -
-

Rust CLI / Public alpha

-

OMG

-

Less tool juggling.
More building.

-

{OMG_PROJECT.tagline} One place to work with the tools a project depends on.

-
    -
  • Rust
  • -
  • Linux
  • -
  • macOS
  • -
- -
-
- -
- -
-

TypeScript / CI/CD

-

DeployLint

-

A clearer path
to production.

-

{DEPLOYLINT_PROJECT.tagline}

-
    -
  • SvelteKit
  • -
  • GitHub Apps
  • -
  • Cloudflare
  • -
- -
-
- - -
+
From a1f9326184b2e25066303f00859d1eb9f69b99cc Mon Sep 17 00:00:00 2001 From: Olen Latham Date: Sat, 3 Oct 2026 09:05:53 -0500 Subject: [PATCH 2/2] Keep the cinematic homepage stable while its scene loads --- cinematic/scene.js | 13 ++------ cinematic/voyage.js | 38 +++++------------------- docs/cinematic-portfolio.md | 4 +-- src/lib/components/CinematicHero.svelte | 22 ++++++++------ src/lib/styles/orbit.css | 31 +++++-------------- static/orbit/earth-poster-desktop.jpg | Bin 0 -> 195913 bytes static/orbit/earth-poster-mobile.jpg | Bin 0 -> 58853 bytes static/orbit/earth-poster-tablet.jpg | Bin 0 -> 83787 bytes 8 files changed, 32 insertions(+), 76 deletions(-) create mode 100644 static/orbit/earth-poster-desktop.jpg create mode 100644 static/orbit/earth-poster-mobile.jpg create mode 100644 static/orbit/earth-poster-tablet.jpg diff --git a/cinematic/scene.js b/cinematic/scene.js index 4fbc67f..6dc6fe7 100644 --- a/cinematic/scene.js +++ b/cinematic/scene.js @@ -42,7 +42,6 @@ export function mountOrbit(hero) { balanced = false; let nebula = 0, paletteTarget = body.dataset.lighting === 'nebula' ? 1 : 0; - let arrival = body.dataset.motion === 'on' && !reduced.matches ? 1 : 0; let previous = { dt: 0, elapsed: 0, boost: false, pointer: { x: 0, y: 0 } }; const center = new THREE.Vector3(); const projected = new THREE.Vector3(); @@ -280,14 +279,8 @@ export function mountOrbit(hero) { jump = moving ? THREE.MathUtils.lerp(jump, jumpTarget, 1 - Math.exp(-step * (jumpTarget ? 3 : 2))) : 0; - arrival = moving ? Math.max(0, arrival - step / 3.6) : 0; travel += step * (0.55 + jump * 48); - const entry = arrival * arrival * arrival; - camera.position.set( - frame.pointer.x * 0.24 + entry * 0.6, - frame.pointer.y * 0.13 + entry * 0.25, - 18 + entry * 5 + jump * 1.6 - ); + camera.position.set(frame.pointer.x * 0.24, frame.pointer.y * 0.13, 18 + jump * 1.6); camera.rotation.set(0, 0, 0); camera.fov = 42 + jump * 14; camera.updateProjectionMatrix(); @@ -497,9 +490,7 @@ export function mountOrbit(hero) { resizeObserver = new ResizeObserver(resize); resizeObserver.observe(hero); window.addEventListener('resize', resize, { passive: true }); - const playing = await voyage?.start(); - if (disposed) return; - if (!playing) body.dataset.scene = 'ready'; + body.dataset.scene = 'ready'; canvas.addEventListener('webglcontextlost', (event) => { event.preventDefault(); lost = true; diff --git a/cinematic/voyage.js b/cinematic/voyage.js index 8d8e79e..2dd6211 100644 --- a/cinematic/voyage.js +++ b/cinematic/voyage.js @@ -3,8 +3,6 @@ import { gsap } from 'gsap'; import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js'; import { RoomEnvironment } from 'three/addons/environments/RoomEnvironment.js'; -const PLAYBACK_HISTORY_KEY = 'latham-voyage-seen'; - export async function createVoyage({ scene, camera, world, renderer, keep, resize, isDisposed }) { const body = document.body; const panel = document.querySelector('.film-overlay'); @@ -208,32 +206,26 @@ export async function createVoyage({ scene, camera, world, renderer, keep, resiz if (restoreFocus || panel.contains(document.activeElement)) (returnFocus || replay).focus({ preventScroll: true }); } - async function start(manual = false) { + async function start() { if ( disposed || active || pending || reduce.matches || body.dataset.motion !== 'on' || - (manual && body.dataset.scene !== 'ready') + body.dataset.scene !== 'ready' ) return false; pending = true; curtain.style.opacity = '1'; await new Promise((resolve) => setTimeout(resolve, 420)); - if ( - disposed || - !pending || - reduce.matches || - body.dataset.motion !== 'on' || - (!manual && (scrollY > 150 || document.hidden)) - ) { + if (disposed || !pending || reduce.matches || body.dataset.motion !== 'on' || document.hidden) { pending = false; curtain.style.opacity = '0'; return false; } pending = false; - returnFocus = manual ? replay : null; + returnFocus = replay; active = true; time = 0; timeline.seek(0); @@ -244,18 +236,11 @@ export async function createVoyage({ scene, camera, world, renderer, keep, resiz priorInert.set(element, element.inert); element.inert = true; }); - if (manual) { - window.scrollTo({ top: 0, behavior: 'instant' }); - skip.focus({ preventScroll: true }); - } + window.scrollTo({ top: 0, behavior: 'instant' }); + skip.focus({ preventScroll: true }); volume(soundOn); resize(); uncover(); - try { - sessionStorage.setItem(PLAYBACK_HISTORY_KEY, '1'); - } catch { - /* Playback history is optional. */ - } return true; } function update(dt, elapsed, center, globeScale) { @@ -317,7 +302,7 @@ export async function createVoyage({ scene, camera, world, renderer, keep, resiz function scrollExit() { if (active && scrollY > 150) end(); } - const replayClick = () => start(true), + const replayClick = () => start(), skipClick = () => end(true); replay.hidden = false; availability(); @@ -329,17 +314,8 @@ export async function createVoyage({ scene, camera, world, renderer, keep, resiz document.addEventListener('visibilitychange', visibility); document.addEventListener('keydown', keyboard); window.addEventListener('scroll', scrollExit, { passive: true }); - let seen = false; - try { - seen = sessionStorage.getItem(PLAYBACK_HISTORY_KEY) === '1'; - } catch { - /* Playback history is optional. */ - } return { update, - start: () => { - return !seen && scrollY < 100 && !document.hidden ? start() : false; - }, get active() { return active; }, diff --git a/docs/cinematic-portfolio.md b/docs/cinematic-portfolio.md index 36bd87c..76bb462 100644 --- a/docs/cinematic-portfolio.md +++ b/docs/cinematic-portfolio.md @@ -1,9 +1,9 @@ # Olen / In Orbit -The public portfolio presents Olen's real software projects through a cinematic Earth arrival. Keep the homepage, About and both case study URLs prerendered and immediately readable. The film is a progressive enhancement with an explicit skip and a once-per-session introduction; ordinary route changes do not replay it. Retain the protected owner workspace, project evidence and contact telemetry. +The public portfolio presents Olen's real software projects through a cinematic Earth scene. Keep the homepage, About and both case study URLs prerendered and immediately readable. The opening film plays only when the visitor chooses Watch the opening, with an explicit skip. Loading, refreshing and route changes never start the film. Retain the protected owner workspace, project evidence and contact telemetry. Palette: midnight #040710, deep space #0c1224, starlight #eff4ff, ice #9ae7ff, ion #aca2ff. D-DIN carries film titles and major headings; Geist carries prose and controls. The homepage is wide and cinematic; supporting pages use an editorial reading grid with the same navigation and tokens. -Three.js and GSAP are built into a separate static module; the Svelte component loads it after initial content has rendered and disposes the scene on navigation. Do not move meaningful content into canvas. Assets remain local, with NASA and Solar System Scope provenance retained. Motion respects user preference, pauses in the background, and has an illustrated fallback. +Three.js and GSAP are built into a separate static module; the Svelte component loads it after initial content has rendered and disposes the scene on navigation. Responsive Earth posters are captured from the actual scene with motion paused, keeping the loading view consistent with the rendered desktop, tablet and phone composition. Reserve the scene controls' height while loading and start the camera in its resting position. Do not move meaningful content into canvas. Assets remain local, with NASA and Solar System Scope provenance retained. Motion respects user preference and pauses in the background. Acceptance: desktop and phone visual inspection, full opening and skip/replay/pause, repeated Svelte navigation without duplicate render loops, reduced motion and WebGL fallback, prerendered headings/project links/schema, and all existing quality/deploy gates. diff --git a/src/lib/components/CinematicHero.svelte b/src/lib/components/CinematicHero.svelte index 511a69e..732cc54 100644 --- a/src/lib/components/CinematicHero.svelte +++ b/src/lib/components/CinematicHero.svelte @@ -27,14 +27,18 @@
- + + + + +
Watch the opening