New
Sketchbook PortfolioPortfolios
A 3D developer studio portfolio you can look around: a Blender-rendered room with live Three.js skill sculptures, project cards, certificates, desk monitors, a terminal and a desk robot. One config file makes it yours.
import type { Metadata } from "next"
import "./developer-room.css"
/**
* A 3D developer studio you can look around: a Blender-rendered room with live
* Three.js objects on its walls — skill sculptures, project cards, certificates,
* desk monitors, a terminal and a small desk robot.
*
* The room is a buildless HTML/JS document in `public/developer-room/`, and this
* route frames it, the same way Cinematic Supercar is framed. It runs its own
* render loop, pointer handling and dialogs against its own document, so it is
* kept out of React rather than re-rendered around.
*
* To make it yours, edit one file: `public/developer-room/config.js` (name, bio,
* links, projects, skills, certificates). Put your images in
* `public/developer-room/assets/placeholders/` and point the config at them.
* Refresh to see changes; there is no build step.
*/
export const metadata: Metadata = {
title: "Developer Room — 3D Portfolio",
description: "A 3D developer studio portfolio: projects, skills, certificates and contact, inside a room you can look around.",
}
export default function DeveloperRoomPage() {
return (
<div className="developer-room-shell">
<iframe
className="developer-room-frame"
src="/developer-room/index.html"
title="3D developer studio portfolio"
allow="autoplay; fullscreen; clipboard-write"
/>
</div>
)
}/*
* The shell the room is framed in. Fixed to the viewport so a host layout's
* header, padding or max-width cannot inset it, and scoped so nothing leaks
* into the rest of the app.
*/
.developer-room-shell {
position: fixed;
inset: 0;
z-index: 0;
overflow: hidden;
background: #101114;
/* Dark before the frame loads, so there is no white flash. */
color-scheme: dark;
}
.developer-room-frame {
display: block;
width: 100%;
height: 100%;
border: 0;
background: #101114;
}<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover" />
<meta name="theme-color" content="#080b12" />
<meta name="description" content="A 3D developer studio portfolio. Projects, skills, certificates, and contact." />
<meta property="og:title" content="Developer Studio" />
<meta property="og:type" content="website" />
<!-- Add og:url, og:image and a canonical link for your own domain. -->
<title>Developer Studio</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap" rel="stylesheet" />
<link rel="icon" type="image/svg+xml" href="./favicon.svg" />
<link rel="stylesheet" href="./site.css" />
</head>
<body>
<main class="experience" id="main" aria-label="3D developer portfolio">
<div class="stage" id="stage">
<img class="stage-poster" src="./assets/room-working-poster.jpg" alt="" aria-hidden="true" />
<canvas id="room-canvas" aria-label="Interactive 3D developer room. Drag to look around; use the room stations to explore the portfolio." role="img"></canvas>
<div class="stage-vignette" aria-hidden="true"></div>
<section class="load-status" id="load-status" aria-label="Loading the developer room">
<div class="loader-card">
<p class="loader-name"></p>
<h1>Loading room</h1>
<p id="load-label" role="status" aria-live="polite">Loading</p>
<progress id="load-progress" max="100" value="0" aria-label="Room loading progress"></progress>
<p id="load-amount" class="load-amount"></p>
<div class="loader-actions"><button type="button" id="enter-room" disabled>Enter room</button><button type="button" id="retry-room" hidden>Retry</button></div>
</div>
</section>
</div>
<header class="top-hud">
<a class="identity" href="#main" aria-label="Home"><b></b><small></small></a>
<div class="hud-actions"><button id="view-toggle" class="hud-button" type="button" aria-pressed="false">Simple view</button></div>
</header>
<div class="simple-portfolio" id="simple-portfolio" hidden></div>
<aside class="info-panel minimized" id="info-panel" aria-live="polite" aria-label="Portfolio details">
<div class="panel-top"><button id="panel-close" class="panel-close" type="button" aria-label="Minimize details">Close</button></div>
<div class="panel-content" id="panel-content" tabindex="-1"></div>
</aside>
<nav class="room-dock" id="room-dock" aria-label="Portfolio sections">
<button type="button" data-room="about" class="dock-item active">About</button>
<button type="button" data-room="work" class="dock-item">Projects</button>
<button type="button" data-room="skills" class="dock-item">Skills</button>
<button type="button" data-room="credentials" class="dock-item">Certificates</button>
<button type="button" data-room="contact" class="dock-item">Contact</button>
</nav>
<details class="room-tools" id="room-tools"><summary>Room controls</summary><div class="control-options">
<button type="button" id="music-toggle" aria-pressed="false">Sound off</button>
<button type="button" id="video-toggle">Pause screens</button>
<button type="button" id="dance-toggle">Pause pet</button>
<button type="button" id="tour-toggle">Tour the room</button>
<button type="button" id="terminal-toggle">Open terminal</button>
<button type="button" id="ambience-toggle" aria-pressed="false">Night mode</button>
<button type="button" id="spin-toggle">Reset view</button>
</div></details>
<noscript><div class="no-script"><h1>Developer Studio</h1><p>Enable JavaScript to explore the studio.</p></div></noscript>
</main>
<dialog class="certificate-viewer" id="certificate-viewer" aria-label="Certificate image">
<button class="viewer-close" id="viewer-close" type="button" aria-label="Close certificate">Close</button>
<button class="viewer-prev" id="viewer-prev" type="button" aria-label="Previous certificate">Previous</button>
<img id="viewer-image" alt="" />
<button class="viewer-next" id="viewer-next" type="button" aria-label="Next certificate">Next</button>
<p id="viewer-caption"></p>
</dialog>
<dialog class="room-terminal" id="room-terminal" aria-label="Portfolio terminal">
<header><span>workspace</span><button type="button" id="terminal-close">Close</button></header>
<div class="terminal-output" id="terminal-output" role="log" aria-live="polite"></div>
<form id="terminal-form"><label for="terminal-input">$</label><input id="terminal-input" autocomplete="off" spellcheck="false" placeholder="Type help" aria-label="Terminal command"><button type="submit">Run</button></form>
</dialog>
<div class="toast" id="toast" role="status" aria-live="polite"></div>
<script type="module" src="./app.js"></script>
</body>
</html>import {createLoadingScreen} from './room-loader.js';
import {profile,projects,featuredIds,skillGroups,shelf,certificates} from './config.js';
// Relative, so the room works wherever its folder is served from.
const ASSETS='./assets/';
const stations={
about:{label:'About me',spot:[-1.55,-.4,-7.68]},
work:{label:'Projects',spot:[2.425,-.36,-3.5]},
skills:{label:'Skills',spot:[2.55,.73,-3.5]},
credentials:{label:'Certificates',spot:[-2.27,.95,-8.525]},
contact:{label:'Say hello',spot:[-.75,-.76,-7.2]}
};
const $=s=>document.querySelector(s);
const esc=s=>String(s).replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));
const stage=$('#stage'),canvas=$('#room-canvas'),panel=$('#info-panel'),panelContent=$('#panel-content');
const preference={get(key){try{return localStorage.getItem(key)}catch{return null}},set(key,value){try{localStorage.setItem(key,value)}catch{}}};
let activeRoom='about',activeProject=null,threeReady=false,viewer,viewerLoading=false,returnFocus=null;
let simpleView=new URLSearchParams(location.search).get('view')==='simple'||(!new URLSearchParams(location.search).has('view')&&preference.get('studio-view')==='simple');
const roomLoading=createLoadingScreen();
roomLoading.enter(()=>{if(threeReady){canvas.focus({preventScroll:true});}else setView(true);});
const linkMarkup=cls=>profile.links.map(l=>`<a class="${cls}" href="${esc(l.url)}" target="_blank" rel="noreferrer">${esc(l.label)}</a>`).join('');
function aboutMarkup(){return `<h2 class="panel-title">About</h2><div class="about-card"><img src="${ASSETS+profile.avatar}" alt="Portrait of ${esc(profile.name)}" loading="lazy"><p>${esc(profile.bio)}</p></div><div class="panel-links">${linkMarkup('panel-link')}</div>`}
function projectEntry(p,featured=false){return `<button class="project-entry ${featured?'featured-project':''}" type="button" data-project="${p.id}"><img src="${ASSETS+p.image}" alt="" loading="lazy"><span><strong>${esc(p.title)}</strong><small>${esc(p.kind)}</small></span></button>`}
function workMarkup(){return `<h2 class="panel-title">Projects</h2><div class="project-list featured-list">${featuredIds.map(id=>projectEntry(projects.find(p=>p.id===id),true)).join('')}</div><div class="project-list other-projects">${projects.filter(p=>!featuredIds.includes(p.id)).map(p=>projectEntry(p)).join('')}</div>`}
function projectMarkup(p){return `<article class="project-detail"><button class="back-button" type="button" data-back>All projects</button><img class="project-hero" src="${ASSETS+p.image}" alt="${esc(p.title)} preview"><h2 class="panel-title">${esc(p.title)}</h2><p>${esc(p.description)}</p><a class="primary-button project-visit" href="${esc(p.url)}" target="_blank" rel="noreferrer">${esc(p.action)}</a><div class="stack-list">${p.stack.map(x=>`<span>${esc(x)}</span>`).join('')}</div><ul>${p.highlights.map(x=>`<li>${esc(x)}</li>`).join('')}</ul></article>`}
function skillsMarkup(){return `<h2 class="panel-title">Skills</h2>${skillGroups.map(g=>`<div class="skill-category"><h3>${esc(g.title)}</h3><div class="fact-pills">${g.skills.map(s=>`<span>${esc(s)}</span>`).join('')}</div></div>`).join('')}`}
function certificatesMarkup(){return `<h2 class="panel-title">Certificates</h2><div class="certificate-list">${certificates.map((c,i)=>`<div class="certificate-entry"><img src="${ASSETS+c.image}" alt="" loading="lazy"><span><strong>${esc(c.title)}</strong><small>${esc(c.issuer)}</small></span>${c.verify?`<a class="panel-link" href="${esc(c.verify)}" target="_blank" rel="noreferrer" aria-label="Verify ${esc(c.title)}">Verify </a>`:''}<button type="button" data-cert="${i}" aria-label="View ${esc(c.title)} certificate">View</button></div>`).join('')}</div>`}
function contactMarkup(){return `<h2 class="panel-title">Contact</h2><div class="contact-block"><a href="mailto:${esc(profile.email)}">${esc(profile.email)}</a><p>${esc(profile.location)} · ${esc(profile.availability)}</p></div><div class="contact-socials">${linkMarkup('')}<button type="button" data-copy-email>Copy email</button></div>`}
const sections={about:aboutMarkup,work:workMarkup,skills:skillsMarkup,credentials:certificatesMarkup,contact:contactMarkup};
function updateNavigation(){document.querySelectorAll('.dock-item').forEach(b=>{const active=b.dataset.room===activeRoom;b.classList.toggle('active',active);if(active)b.setAttribute('aria-current','true');else b.removeAttribute('aria-current')})}
function renderPanel(){panelContent.innerHTML=activeProject?projectMarkup(activeProject):sections[activeRoom]();panelContent.scrollTop=0;updateNavigation()}
function openPanel(){if(!panel.contains(document.activeElement))returnFocus=document.activeElement;panel.classList.remove('minimized');syncPanelState();panelContent.focus({preventScroll:true});$('#room-tools')?.removeAttribute('open')}
function closePanel(restore=true){panel.classList.add('minimized');syncPanelState();if(restore){const target=returnFocus?.isConnected&&!returnFocus.closest('[hidden]')?returnFocus:$('#room-dock [aria-current]')||$('#view-toggle');target?.focus({preventScroll:true})}}
function selectRoom(key){if(!sections[key])return;activeRoom=key;activeProject=null;renderPanel();if(simpleView){closePanel(false);$('#simple-'+key).scrollIntoView({behavior:matchMedia('(prefers-reduced-motion: reduce)').matches?'instant':'smooth',block:'start'});$('#simple-'+key).focus({preventScroll:true});return}openPanel();if(threeReady)viewer.focus(key)}
function showProject(id){const p=projects.find(x=>x.id===id);if(!p)return;activeRoom='work';activeProject=p;renderPanel();openPanel();if(threeReady&&!simpleView)viewer.focus('work')}
function showSkill(name){activeRoom='skills';activeProject=null;const group=skillGroups.find(g=>g.skills.some(s=>s.toLowerCase().includes(name.toLowerCase())));panelContent.innerHTML=`<h2 class="panel-title">${esc(name)}</h2><p class="eyebrow">${esc(group?.title||'DEVELOPMENT & AI')}</p><div class="fact-pills">${(group?.skills||[name]).map(s=>`<span>${esc(s)}</span>`).join('')}</div><button class="text-button" type="button" data-room="skills">All skills </button>`;panelContent.scrollTop=0;updateNavigation();openPanel()}
function showCertificate(index){const c=certificates[index=((index%certificates.length)+certificates.length)%certificates.length];$('#viewer-image').src=ASSETS+c.image;$('#viewer-image').alt=`${c.title} certificate issued by ${c.issuer}`;$('#viewer-caption').textContent=`${c.title} · ${c.issuer} · ${String(index+1).padStart(2,'0')} / ${String(certificates.length).padStart(2,'0')}`;if(!$('#certificate-viewer').open)$('#certificate-viewer').showModal();$('#viewer-image').dataset.index=String(index)}
function syncPanelState(){const closed=panel.classList.contains('minimized');panel.inert=closed;panel.setAttribute('aria-hidden',String(closed));document.body.classList.toggle('panel-open',!closed)}
function toast(message){const t=$('#toast');t.textContent=message;t.classList.add('show');setTimeout(()=>t.classList.remove('show'),2200)}
// Shared content keeps the room and the simple, scrollable portfolio in sync.
$('#simple-portfolio').innerHTML=`<div class="simple-intro"><h1>${esc(profile.name)}</h1><p>${esc(profile.role)} · ${esc(profile.location)}</p></div>${['work','about','skills','credentials','contact'].map(key=>`<section class="simple-section" id="simple-${key}" tabindex="-1">${sections[key]()}</section>`).join('')}<footer class="simple-footer"><button class="text-button" type="button" data-enter-room>Room view</button></footer>`;
document.addEventListener('click',async e=>{const b=e.target.closest('button');if(!b)return;if(b.dataset.room){selectRoom(b.dataset.room);return}if(b.dataset.project){showProject(b.dataset.project);return}if(b.hasAttribute('data-back')){activeProject=null;renderPanel();panelContent.focus();return}if(b.dataset.cert){showCertificate(Number(b.dataset.cert));return}if(b.hasAttribute('data-copy-email')){try{await navigator.clipboard.writeText(profile.email);toast('Email copied')}catch{toast('Email: '+profile.email)}}if(b.hasAttribute('data-enter-room'))setView(false)});
$('.identity').addEventListener('click',e=>{e.preventDefault();closePanel(false);if(simpleView){$('#simple-portfolio').scrollTop=0;return}viewer?.reset()});
$('#panel-close').addEventListener('click',()=>closePanel());
$('#viewer-close').addEventListener('click',()=>$('#certificate-viewer').close());
$('#viewer-prev').addEventListener('click',()=>showCertificate(Number($('#viewer-image').dataset.index)-1));
$('#viewer-next').addEventListener('click',()=>showCertificate(Number($('#viewer-image').dataset.index)+1));
$('#certificate-viewer').addEventListener('click',e=>{if(e.target.id==='certificate-viewer')e.currentTarget.close()});
document.addEventListener('keydown',e=>{if($('#certificate-viewer').open||$('#room-terminal').open)return;if(e.key==='Escape'){if(!panel.classList.contains('minimized'))closePanel();return}if(e.altKey||e.ctrlKey||e.metaKey||e.target.matches('input,textarea,select,[contenteditable]'))return;const key=({'1':'about','2':'work','3':'skills','4':'credentials','5':'contact'})[e.key];if(key)selectRoom(key)});
function roomUnavailable(error){console.warn('Room unavailable',error);roomLoading.fail();toast('Your portfolio is available in Simple view.');}
async function startViewer(){if(viewer||viewerLoading)return;viewerLoading=true;try{const {createRoomViewer}=await import('./room-view.js');viewer=createRoomViewer({canvas,stage,stations,projects,certificates,shelf,onProject:showProject,onSkill:showSkill,onCertificate:showCertificate,onContact:()=>selectRoom('contact'),onNotes:()=>showCollection('work'),onMessage:toast,onTerminal:openTerminal,onBooks:()=>showCollection('skills'),onNightMode:toggleNightMode,onMusicState:syncMusic,onTourState:active=>$('#tour-toggle').textContent=active?'Stop tour':'Tour the room',onProgress:(loaded,total)=>roomLoading.progress(loaded,total),onLoad(){threeReady=true;roomLoading.ready();if(!panel.classList.contains('minimized'))viewer?.focus(activeRoom)},onError:roomUnavailable});viewer.setActive(!simpleView)}catch(error){roomUnavailable(error)}finally{viewerLoading=false}}
function setView(simple,initial=false){simpleView=simple;roomLoading.setVisible(!simple);document.body.classList.toggle('simple-view',simple);$('#simple-portfolio').hidden=!simple;stage.inert=simple;$('#view-toggle').textContent=simple?'Room view':'Simple view';$('#view-toggle').setAttribute('aria-pressed',String(simple));closePanel(false);viewer?.setActive(!simple);if(!simple)startViewer();if(!initial){preference.set('studio-view',simple?'simple':'room');const url=new URL(location.href);url.searchParams.set('view',simple?'simple':'room');history.replaceState(null,'',url);$('#view-toggle').focus()}}
$('#view-toggle').addEventListener('click',()=>setView(!simpleView));
$('#spin-toggle').addEventListener('click',()=>{viewer?.reset();closePanel(false);$('#room-tools').open=false});
const reducedMotion=matchMedia('(prefers-reduced-motion: reduce)').matches;
$('#dance-toggle').textContent=reducedMotion?'Resume pet':'Pause pet';
$('#video-toggle').textContent=reducedMotion?'Play screens':'Pause screens';
$('#video-toggle').addEventListener('click',e=>{if(viewer)e.currentTarget.textContent=viewer.toggleVideos()?'Pause screens':'Play screens'});
$('#dance-toggle').addEventListener('click',e=>{if(viewer)e.currentTarget.textContent=viewer.toggleMotion()?'Pause pet':'Resume pet'});
$('#music-toggle').addEventListener('click',e=>{if(!viewer)return;const audible=viewer.toggleMusic();e.currentTarget.textContent=audible?'Sound on':'Sound off';e.currentTarget.setAttribute('aria-pressed',String(audible))});
function syncMusic(active){$('#music-toggle').textContent=active?'Sound on':'Sound off';$('#music-toggle').setAttribute('aria-pressed',String(active));}
let nightMode=false;
function toggleNightMode(){nightMode=!nightMode;stage.classList.toggle('room-dimmed',nightMode);$('#ambience-toggle').textContent=nightMode?'Restore lighting':'Night mode';$('#ambience-toggle').setAttribute('aria-pressed',String(nightMode));return nightMode;}
$('#ambience-toggle').addEventListener('click',toggleNightMode);
$('#tour-toggle').addEventListener('click',()=>{closePanel(false);viewer?.tour();document.querySelector('.room-tools').open=false;});
function showCollection(key){activeRoom=key;activeProject=null;renderPanel();openPanel();}
const terminal=$('#room-terminal'),terminalOutput=$('#terminal-output'),terminalInput=$('#terminal-input');
function terminalLine(text){const p=document.createElement('p');p.textContent=text;terminalOutput.append(p);terminalOutput.scrollTop=terminalOutput.scrollHeight;}
function openTerminal(){$('#room-tools').open=false;if(!terminalOutput.children.length){terminalLine('about · projects · skills · certificates · contact · clear');}if(!terminal.open)terminal.showModal();terminalInput.focus();}
$('#terminal-toggle').addEventListener('click',openTerminal);$('#terminal-close').addEventListener('click',()=>terminal.close());
terminal.addEventListener('click',e=>{if(e.target===terminal)terminal.close();});
$('#terminal-form').addEventListener('submit',e=>{e.preventDefault();const raw=terminalInput.value.trim(),command=raw.toLowerCase();terminalInput.value='';if(!command)return;terminalLine('$ '+raw);
if(command==='clear'){terminalOutput.replaceChildren();return;}
if(command==='help'){terminalLine('about · projects · skills · certificates · contact · clear');return;}
if(command==='about'){terminalLine(`${profile.name} — ${profile.role}, ${profile.location}. ${profile.bio}`);return;}
if(command==='projects'){projects.forEach(p=>{const b=document.createElement('button');b.textContent=p.title;b.addEventListener('click',()=>{terminal.close();showProject(p.id);});terminalOutput.append(b);});return;}
if(command==='skills'){skillGroups.forEach(g=>terminalLine(g.title+': '+g.skills.join(', ')));return;}
if(command==='certificates'){certificates.forEach((c,i)=>{const b=document.createElement('button');b.textContent=c.title;b.addEventListener('click',()=>{terminal.close();showCertificate(i);});terminalOutput.append(b);});return;}
if(command==='contact'){const a=document.createElement('a');a.href='mailto:'+profile.email;a.textContent=profile.email;terminalOutput.append(a);return;}
terminalLine('Unknown command. Type help for the list.');
});
// Identity text in the static HTML comes from config, so index.html stays generic.
document.title=`${profile.name} — Developer Studio`;
document.querySelector('meta[name=description]')?.setAttribute('content',`${profile.name} — ${profile.role}.`);
$('.identity b').textContent=profile.name;$('.identity small').textContent=profile.role;$('.identity').setAttribute('aria-label',`${profile.name}, home`);
$('.loader-name').textContent=profile.name;
$('#main').setAttribute('aria-label',`${profile.name}’s 3D developer portfolio`);
$('#room-terminal header span').textContent=profile.terminalUser;
renderPanel();setView(simpleView,true);/**
* Everything personal in the room lives in this file. Edit it and refresh: the
* 3D room, the simple scrollable view and the terminal all read from here.
*
* Images are paths below ./assets/. Replace the placeholder SVGs in
* assets/placeholders/ with your own screenshots, certificates and portrait
* (any aspect ratio works; they are letterboxed to fit).
*
* Fixed slots, because they are physical places in the room:
* - projects: up to 5 cards on the right-wall console
* - certificates: up to 5 frames on the wall behind the desk
* - shelf: up to 24 sculptures on the skill shelves (3 rows of 8)
*/
export const profile = {
name: 'Mira Okafor',
role: 'Creative technologist',
location: 'Lagos · Remote',
bio: 'I build interactive web experiences, developer tools and small machine-learning products, and I care about the last 10% of polish.',
avatar: 'placeholders/avatar.svg',
email: 'hello@example.com',
availability: 'Available for freelance and remote work',
// Shown in About and Contact. Any number of links.
links: [
{ label: 'GitHub', url: 'https://github.com/' },
{ label: 'LinkedIn', url: 'https://www.linkedin.com/' },
],
// The prompt in the room terminal, e.g. "mira@workspace".
terminalUser: 'mira@workspace',
};
export const projects = [
{
id: 'orbit',
title: 'Orbit',
kind: 'DEVELOPER TOOL · OPEN SOURCE',
stack: ['TypeScript', 'Node.js', 'SQLite'],
description: 'A local-first dashboard that watches your repositories and tells you which pull requests are waiting on you.',
image: 'placeholders/project-1.svg',
url: 'https://example.com/',
action: 'VISIT LIVE SITE',
highlights: ['Runs entirely on your machine', 'Zero-config GitHub sync'],
},
{
id: 'tidepool',
title: 'Tidepool',
kind: 'WEBGL · INTERACTIVE',
stack: ['Three.js', 'GLSL'],
description: 'A shallow-water simulation you can stir with your cursor, rendered in a single fragment shader.',
image: 'placeholders/project-2.svg',
url: 'https://example.com/',
action: 'OPEN DEMO',
highlights: ['Shallow-water equations on the GPU', '60fps on integrated graphics'],
},
{
id: 'sift',
title: 'Sift',
kind: 'AI · SEARCH',
stack: ['Python', 'Embeddings', 'FastAPI'],
description: 'Semantic search over your own notes, with answers that cite the paragraph they came from.',
image: 'placeholders/project-3.svg',
url: 'https://example.com/',
action: 'VIEW ON GITHUB',
highlights: ['Every answer links its source', 'Indexes 10k notes in under a minute'],
},
{
id: 'ledger',
title: 'Ledger',
kind: 'FINTECH · DASHBOARD',
stack: ['Next.js', 'Postgres'],
description: 'A calm, keyboard-first budgeting app for freelancers with irregular income.',
image: 'placeholders/project-4.svg',
url: 'https://example.com/',
action: 'VISIT LIVE SITE',
highlights: ['Plans around income, not months', 'Full keyboard navigation'],
},
{
id: 'open-source',
title: 'Open source',
kind: 'CONTRIBUTIONS',
stack: ['React', 'Accessibility'],
description: 'Fixes and features contributed to libraries I use every day.',
image: 'placeholders/project-5.svg',
url: 'https://github.com/',
action: 'VIEW ON GITHUB',
highlights: ['Accessibility fixes in UI libraries', 'Docs and examples'],
},
];
// Projects shown first, as large cards, in the Projects panel.
export const featuredIds = ['orbit', 'tidepool', 'sift'];
export const skillGroups = [
{ title: 'Web & interfaces', skills: ['React', 'Next.js', 'Tailwind CSS', 'Node.js', 'JavaScript / TypeScript', 'UI / UX design'] },
{ title: 'AI & machine learning', skills: ['Machine learning', 'Deep learning', 'PyTorch', 'TensorFlow', 'scikit-learn', 'Generative AI'] },
{ title: 'Data & automation', skills: ['Python', 'Data analysis', 'Data engineering', 'pandas / NumPy', 'Workflow automation', 'LLM APIs'] },
{ title: 'Emerging systems', skills: ['Prompt engineering', 'RAG pipelines', 'AI agents', 'AI development'] },
];
/**
* The 3D skill shelves. Each entry: [name, logo, colour, monogram, shelf label].
* - logo: a file name in assets/logos/ without .svg (Simple Icons slugs work:
* https://simpleicons.org), or null to extrude the monogram instead.
* - name should match a skill above, so clicking it opens the right group.
* - shelf label is optional; it defaults to the name.
*/
export const shelf = [
['React', 'react', '#61dafb'], ['Next.js', 'nextdotjs', '#f4f4f4'], ['Tailwind CSS', 'tailwindcss', '#38bdf8', null, 'Tailwind'], ['Node.js', 'nodedotjs', '#75b45f'],
['JavaScript', 'javascript', '#f7df1e'], ['TypeScript', 'typescript', '#3178c6'], ['Python', 'python', '#ffd343'], ['UI / UX design', null, '#d6a3ff', 'UI/UX', 'UI / UX'],
['PyTorch', 'pytorch', '#ee4c2c'], ['TensorFlow', 'tensorflow', '#ff9200'], ['scikit-learn', 'scikitlearn', '#f89939'], ['pandas', 'pandas', '#c7b3ff'],
['NumPy', 'numpy', '#4dabcf'], ['Machine learning', null, '#77daca', 'ML', 'ML'], ['Deep learning', null, '#ab95ff', 'DL'], ['Generative AI', null, '#e7a8df', 'AI', 'Gen AI'],
['Workflow automation', 'n8n', '#ea4b71', null, 'n8n'], ['Data analysis', null, '#5bd6e5', 'DATA', 'Analytics'], ['Data engineering', null, '#82c6ff', 'ETL', 'Data eng.'], ['LLM APIs', null, '#eec184', 'API'],
['Prompt engineering', null, '#b6c5ef', '>_', 'Prompts'], ['RAG pipelines', null, '#77e3b0', 'RAG', 'RAG'], ['AI agents', null, '#edae7d', 'AI', 'AI agents'], ['AI development', null, '#92baf5', 'DEV', 'AI dev.'],
];
export const certificates = [
{ title: 'Web Performance', issuer: 'Example Academy', image: 'placeholders/certificate-1.svg', verify: 'https://example.com/' },
{ title: 'Machine Learning', issuer: 'Example University', image: 'placeholders/certificate-2.svg' },
{ title: 'Accessible Design', issuer: 'Example Academy', image: 'placeholders/certificate-3.svg' },
{ title: 'Cloud Fundamentals', issuer: 'Example Institute', image: 'placeholders/certificate-4.svg' },
{ title: 'Data Engineering', issuer: 'Example University', image: 'placeholders/certificate-5.svg' },
];export function createLoadingScreen(){
const screen=document.querySelector('#load-status'),bar=document.querySelector('#load-progress'),label=document.querySelector('#load-label'),amount=document.querySelector('#load-amount'),enter=document.querySelector('#enter-room'),retry=document.querySelector('#retry-room');
const controls=[...document.querySelectorAll('.top-hud,.room-dock,.room-tools,#room-canvas')];
controls.forEach(node=>node.inert=true);
let complete=false,progress=0,visible=true,entered=false;
retry.addEventListener('click',()=>location.reload());
return {
setVisible(value){visible=value;screen.hidden=!value||entered;screen.inert=!value||entered;controls.forEach(node=>node.inert=value&&!entered);},
progress(loaded,total){if(complete)return;progress=Math.max(progress,total?Math.round(loaded/total*94):0);bar.value=progress;amount.textContent=progress+'%';label.textContent='Loading';},
ready(){complete=true;bar.value=100;label.textContent='Ready';amount.textContent='100%';enter.disabled=false;enter.classList.add('ready');if(visible)enter.focus({preventScroll:true});
// Framed (the ui.artbloom preview, or the Next.js page that hosts this room): go straight in once loaded.
if(window.self!==window.top)queueMicrotask(()=>enter.click());},
fail(){complete=true;label.textContent='The 3D room could not finish loading';amount.textContent='You can still browse the portfolio details.';retry.hidden=false;enter.disabled=false;enter.textContent='Browse portfolio';},
enter(callback){enter.addEventListener('click',()=>{if(!complete)return;entered=true;screen.classList.add('done');screen.setAttribute('aria-hidden','true');screen.inert=true;controls.forEach(node=>node.inert=false);callback();});}
};
}import * as THREE from './assets/three.module.js';
import {addRoomObjects} from './room-objects.js';
// A Cycles-rendered spherical interior preserves the Substance materials and
// indirect lighting on mobile as well as desktop. The editable source is Blender.
export function createRoomViewer({canvas,stage,stations,projects,certificates,shelf,onProject,onSkill,onCertificate,onContact,onMessage,onLoad,onError,onProgress,onTerminal,onBooks,onNotes,onNightMode,onMusicState,onTourState}) {
const renderer=new THREE.WebGLRenderer({canvas,antialias:true,powerPreference:'low-power'});
renderer.setPixelRatio(Math.min(devicePixelRatio||1,2));
renderer.outputColorSpace=THREE.SRGBColorSpace;
renderer.toneMapping=THREE.NoToneMapping;
const scene=new THREE.Scene();
const camera=new THREE.PerspectiveCamera(64,1,.1,20);
const initial={yaw:-.19,pitch:innerWidth<600?-.10:-.04};
let yaw=initial.yaw,pitch=initial.pitch,targetYaw=yaw,targetPitch=pitch;
let fov=innerWidth<600?56:62,targetFov=fov,drag=null,ready=false,active=true,frameId=null;
const reduced=matchMedia('(prefers-reduced-motion: reduce)').matches;
let panoramaReady=false,assetsReady=false,completed=false,tour=null;
const manager=new THREE.LoadingManager();
function complete(){if(!completed&&panoramaReady&&assetsReady){completed=true;ready=true;stage.classList.add('loaded');onLoad();}}
manager.onProgress=(url,loaded,total)=>onProgress?.(loaded,total);
manager.onLoad=()=>{assetsReady=true;complete();};
const useHighResolution=innerWidth>=900&&renderer.capabilities.maxTextureSize>=8192;
const texture=new THREE.TextureLoader(manager).load('./assets/room-working-4k.jpg',()=>{
const envCanvas=document.createElement('canvas');envCanvas.width=1024;envCanvas.height=512;envCanvas.getContext('2d').drawImage(texture.image,0,0,1024,512);
const environment=new THREE.CanvasTexture(envCanvas);environment.colorSpace=THREE.SRGBColorSpace;environment.mapping=THREE.EquirectangularReflectionMapping;
const pmrem=new THREE.PMREMGenerator(renderer);scene.environment=pmrem.fromEquirectangular(environment).texture;scene.environmentIntensity=.6;environment.dispose();pmrem.dispose();
panoramaReady=true;complete();
if(useHighResolution)new THREE.TextureLoader().load('./assets/room-working-8k.jpg',high=>{high.colorSpace=THREE.SRGBColorSpace;material.uniforms.panorama.value=high;texture.dispose();},undefined,()=>{});
},undefined,onError);
texture.colorSpace=THREE.SRGBColorSpace;
const material=new THREE.ShaderMaterial({
uniforms:{panorama:{value:texture}},side:THREE.BackSide,depthWrite:false,depthTest:false,
vertexShader:`varying vec3 roomDirection;
void main(){roomDirection=position;gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.0);}`,
fragmentShader:`uniform sampler2D panorama;varying vec3 roomDirection;
void main(){vec3 d=normalize(roomDirection);
vec2 uv=vec2(0.5+atan(d.x,-d.z)/6.28318530718,0.5+asin(clamp(d.y,-1.0,1.0))/3.14159265359);
gl_FragColor=texture2D(panorama,uv);
#include <colorspace_fragment>
}`
});
const panorama=new THREE.Mesh(new THREE.SphereGeometry(10,64,32),material);panorama.renderOrder=-100;scene.add(panorama);
const objects=addRoomObjects(scene,{projects,certificates,shelf,onProject,onSkill,onCertificate,onContact,onMessage,onTerminal,onBooks,onNotes,onNightMode,onMusicState,manager,anisotropy:renderer.capabilities.getMaxAnisotropy()});
const raycaster=new THREE.Raycaster(),pointer=new THREE.Vector2();
function pick(e){const r=canvas.getBoundingClientRect();pointer.set((e.clientX-r.left)/r.width*2-1,-(e.clientY-r.top)/r.height*2+1);raycaster.setFromCamera(pointer,camera);return raycaster.intersectObjects(objects.picks,false)[0]?.object;}
function fit(){const w=stage.clientWidth,h=stage.clientHeight;if(!w||!h)return;renderer.setSize(w,h,false);camera.aspect=w/h;camera.updateProjectionMatrix();}
new ResizeObserver(fit).observe(stage);fit();
function stopTour(){if(tour){tour=null;onTourState?.(false);}}
canvas.addEventListener('pointerdown',e=>{stopTour();drag={x:e.clientX,y:e.clientY,distance:0};canvas.setPointerCapture(e.pointerId);});
canvas.addEventListener('pointermove',e=>{if(!drag){const hit=pick(e);objects.hover(hit);canvas.style.cursor=hit?'pointer':'grab';return;}const dx=e.clientX-drag.x,dy=e.clientY-drag.y;drag.distance+=Math.abs(dx)+Math.abs(dy);targetYaw-=dx*.003;targetPitch=Math.max(-.65,Math.min(.55,targetPitch+dy*.003));drag.x=e.clientX;drag.y=e.clientY;canvas.classList.add('dragging');});
canvas.addEventListener('pointerup',e=>{if(drag&&drag.distance<8)pick(e)?.userData.action?.();drag=null;canvas.classList.remove('dragging');});
canvas.addEventListener('pointercancel',()=>{drag=null;canvas.classList.remove('dragging');});
canvas.addEventListener('pointerleave',()=>{objects.hover(null);});
canvas.addEventListener('wheel',e=>{stopTour();e.preventDefault();targetFov=Math.max(14,Math.min(innerWidth<600?105:80,targetFov+e.deltaY*.035));},{passive:false});
canvas.tabIndex=0;
canvas.addEventListener('keydown',e=>{if(e.key.startsWith('Arrow')){stopTour();e.preventDefault();}if(e.key==='ArrowLeft')targetYaw-=.12;if(e.key==='ArrowRight')targetYaw+=.12;if(e.key==='ArrowUp')targetPitch+=.08;if(e.key==='ArrowDown')targetPitch-=.08;targetPitch=Math.max(-.65,Math.min(.55,targetPitch));});
function goFocus(key){const v=new THREE.Vector3(...stations[key].spot).normalize(),angle=Math.atan2(v.x,-v.z)+(innerWidth>=900?.14:0);targetYaw=yaw+Math.atan2(Math.sin(angle-yaw),Math.cos(angle-yaw));targetPitch=Math.asin(v.y)-(innerWidth<600?.22:0);targetFov=({skills:innerWidth<600?70:38,work:innerWidth<600?60:29,credentials:innerWidth<600?39:19})[key]||(innerWidth<600?58:53);}
const forward=new THREE.Vector3(),tourStops=['about','skills','work','credentials','contact'];
function frame(time=0){frameId=null;if(!active||document.hidden)return;frameId=requestAnimationFrame(frame);if(tour&&time>=tour.next){tour.index++;if(tour.index>=tourStops.length)stopTour();else{goFocus(tourStops[tour.index]);tour.next=time+4300;}}objects.update(time/1000);const speed=reduced?1:.075;yaw+=(targetYaw-yaw)*speed;pitch+=(targetPitch-pitch)*speed;fov+=(targetFov-fov)*speed;
camera.fov=fov;camera.updateProjectionMatrix();forward.set(Math.sin(yaw)*Math.cos(pitch),Math.sin(pitch),-Math.cos(yaw)*Math.cos(pitch));camera.lookAt(forward);camera.updateMatrixWorld();
renderer.render(scene,camera);
}
function setActive(value){if(!value)stopTour();active=value;if(frameId!==null){cancelAnimationFrame(frameId);frameId=null;}objects.setActive(active&&!document.hidden);if(active&&!document.hidden){fit();frame();}}
document.addEventListener('visibilitychange',()=>setActive(active));
frame();
return {
setActive,
focus(key){stopTour();goFocus(key);},
reset(){stopTour();targetYaw=initial.yaw;targetPitch=initial.pitch;targetFov=innerWidth<600?56:62;},
tour(){if(tour){stopTour();return false;}tour={index:0,next:performance.now()+4300};goFocus(tourStops[0]);onTourState?.(true);return true;},
toggleVideos:objects.toggleVideos,
toggleMotion:objects.toggleMotion
,toggleMusic:objects.toggleMusic
};
}import * as THREE from './assets/three.module.js';
import {SVGLoader} from './assets/SVGLoader.js';
import {FontLoader} from './assets/FontLoader.js';
import {createDeskPet} from './desk-pet.js';
const EYE=new THREE.Vector3(1.15,-5.2,1.7);
export const roomPoint=(x,y,z)=>new THREE.Vector3(x-EYE.x,z-EYE.z,-(y-EYE.y));
// The shelf's 24 slots are filled from config.js (`shelf`).
export function addRoomObjects(scene,{projects,certificates,shelf,onProject,onSkill,onCertificate,onContact,onMessage,onTerminal,onBooks,onNotes,onNightMode,onMusicState,manager,anisotropy=8}) {
const technologies=shelf.slice(0,24);
const picks=[],videos=[],sculptures=[],loader=new SVGLoader(manager);
const reducedMotion=matchMedia('(prefers-reduced-motion: reduce)').matches;
let mediaActive=true,resumeVideos=[];
const group=new THREE.Group();scene.add(group);
const fontPromise=new Promise(resolve=>new FontLoader(manager).load('./assets/helvetiker-bold.json',resolve));
const metal=new THREE.MeshStandardMaterial({color:0x111820,metalness:.65,roughness:.34});
const rim=new THREE.MeshStandardMaterial({color:0x29313d,metalness:.7,roughness:.28});
scene.add(new THREE.HemisphereLight(0xd9e8ff,0x262038,2.0));
const key=new THREE.DirectionalLight(0xffead4,2.5);key.position.set(-2,3,3);scene.add(key);
const fill=new THREE.DirectionalLight(0x7a8dff,.9);fill.position.set(3,.5,-2);scene.add(fill);
function box(w,h,d,material=metal){return new THREE.Mesh(new THREE.BoxGeometry(w,h,d),material);}
function roundedBox(w,h,d,material=metal,r=.015){
const s=new THREE.Shape(),x=-w/2,y=-h/2;
s.moveTo(x+r,y);s.lineTo(x+w-r,y);s.quadraticCurveTo(x+w,y,x+w,y+r);s.lineTo(x+w,y+h-r);s.quadraticCurveTo(x+w,y+h,x+w-r,y+h);s.lineTo(x+r,y+h);s.quadraticCurveTo(x,y+h,x,y+h-r);s.lineTo(x,y+r);s.quadraticCurveTo(x,y,x+r,y);
const g=new THREE.ExtrudeGeometry(s,{depth:d,bevelEnabled:true,bevelThickness:.002,bevelSize:.002,bevelSegments:3,curveSegments:12});g.translate(0,0,-d/2);return new THREE.Mesh(g,material);
}
function canvasTexture(draw,w=512,h=256){const c=document.createElement('canvas');c.width=w;c.height=h;draw(c.getContext('2d'),w,h);const t=new THREE.CanvasTexture(c);t.colorSpace=THREE.SRGBColorSpace;return t;}
function plate(text,w,h,color='#d9e1ed',background='#111820'){
const t=canvasTexture((c,cw,ch)=>{c.fillStyle=background;c.fillRect(0,0,cw,ch);c.fillStyle=color;c.textAlign='center';c.textBaseline='middle';c.font=`600 ${text.length>15?68:90}px Arial`;c.fillText(text,cw/2,ch/2,cw-32);},1024,160);t.anisotropy=anisotropy;
return new THREE.Mesh(new THREE.PlaneGeometry(w,h),new THREE.MeshBasicMaterial({map:t,toneMapped:false}));
}
function interactive(root,label,action){root.traverse(o=>{if(o.isMesh){o.userData={label,action};picks.push(o);}});}
function framedImage(path,w,h){
const mesh=new THREE.Mesh(new THREE.PlaneGeometry(w,h),new THREE.MeshBasicMaterial({toneMapped:false}));
const texture=new THREE.TextureLoader(manager).load('./assets/'+path,t=>{const ratio=t.image.width/t.image.height,target=w/h;mesh.scale.set(Math.min(1,ratio/target),Math.min(1,target/ratio),1);});
texture.colorSpace=THREE.SRGBColorSpace;texture.anisotropy=anisotropy;mesh.material.map=texture;return mesh;
}
function logo(slug,color,size){
const root=new THREE.Group();
loader.load(`./assets/logos/${slug}.svg`,data=>{
const m=new THREE.MeshPhysicalMaterial({color,metalness:.5,roughness:.22,clearcoat:1,clearcoatRoughness:.16,envMapIntensity:1.4,emissive:color,emissiveIntensity:.025,side:THREE.DoubleSide});
const side=new THREE.MeshStandardMaterial({color:new THREE.Color(color).multiplyScalar(.45),metalness:.8,roughness:.25,side:THREE.DoubleSide});
for(const path of data.paths)for(const shape of SVGLoader.createShapes(path)){
const geometry=new THREE.ExtrudeGeometry(shape,{depth:5.8,bevelEnabled:true,bevelThickness:.38,bevelSize:.30,bevelSegments:4,curveSegments:24,steps:1});
geometry.translate(-12,-12,-2.9);geometry.scale(size/24,-size/24,-size/24);
const front=slug==='python'&&root.children.length===0?m.clone():m;if(slug==='python'&&root.children.length===0)front.color.set('#4288b8');
root.add(new THREE.Mesh(geometry,[front,side]));
}
});return root;
}
function monogram(text,color){
const root=new THREE.Group();
const m=new THREE.MeshPhysicalMaterial({color,metalness:.58,roughness:.22,clearcoat:1,envMapIntensity:1.3});
const ring=new THREE.Mesh(new THREE.TorusGeometry(.116,.006,10,64),new THREE.MeshStandardMaterial({color,metalness:.8,roughness:.28}));ring.position.z=-.035;root.add(ring);
fontPromise.then(font=>{const shapes=font.generateShapes(text,1);const g=new THREE.ExtrudeGeometry(shapes,{depth:.30,bevelEnabled:true,bevelThickness:.018,bevelSize:.014,bevelSegments:3,curveSegments:16});g.computeBoundingBox();const b=g.boundingBox,scale=Math.min(.218/(b.max.x-b.min.x),.135/(b.max.y-b.min.y));g.translate(-(b.max.x+b.min.x)/2,-(b.max.y+b.min.y)/2,-.15);g.scale(scale,scale,scale);root.add(new THREE.Mesh(g,m));});return root;
}
technologies.forEach(([name,slug,color,abbreviation,shelfLabel],i)=>{
const row=Math.floor(i/8),column=i%8,z=1.85+row*.4;
const stand=new THREE.Group();stand.position.copy(roomPoint(3.70,-2.95+column*.357,z+.033));stand.rotation.y=-Math.PI/2;
const base=roundedBox(.30,.032,.23);base.position.y=.016;stand.add(base);
const sculpture=slug?logo(slug,color,.245):monogram(abbreviation||name.slice(0,3).toUpperCase(),color);sculpture.position.set(0,.175,.015);sculpture.rotation.y=.5;
stand.add(sculpture);
const shortName=shelfLabel||name;
const label=plate(shortName,.30,.054,'#e5eef7');label.position.set(0,.043,.116);stand.add(label);
const hit=box(.32,.33,.25,new THREE.MeshBasicMaterial({visible:false}));hit.position.y=.17;stand.add(hit);
interactive(stand,name,()=>onSkill(name));
// The invisible hit box is stable while the SVG geometry loads asynchronously.
sculptures.push({root:sculpture,stand,index:i,baseY:.175});group.add(stand);
});
const shelfTitle=plate('Skills',1.2,.075,'#a6e8ee','#10151b');
shelfTitle.position.copy(roomPoint(3.58,-1.70,3.04));shelfTitle.rotation.y=-Math.PI/2;group.add(shelfTitle);
const board=new THREE.Group();board.position.copy(roomPoint(3.575,-1.70,1.34));board.rotation.y=-Math.PI/2;group.add(board);
const title=plate('Projects',1.3,.09,'#8fe7ed');title.position.set(0,.24,.006);board.add(title);
projects.slice(0,5).forEach((project,i)=>{
const card=new THREE.Group();card.position.set((i-2)*.55,0,.018);
const foot=box(.30,.025,.16);foot.position.set(0,-.235,-.01);card.add(foot);
const post=box(.025,.14,.025);post.position.set(0,-.17,-.01);card.add(post);
card.add(box(.51,.285,.026,rim));
const image=framedImage(project.image,.476,.205);image.position.set(0,.025,.015);card.add(image);
const label=plate(project.title,.476,.055,'#edf5ff');label.position.set(0,-.104,.016);card.add(label);
board.add(card);interactive(card,project.title,()=>onProject(project.id));
});
certificates.slice(0,5).forEach((certificate,i)=>{
const frame=new THREE.Group();frame.position.copy(roomPoint(-2.10+(i%3)*.98+(i>2?.49:0),3.325,2.71-Math.floor(i/3)*.61));
frame.add(roundedBox(.85,.50,.035,rim,.01));
const face=framedImage(certificate.image,.80,.45);face.position.z=.021;frame.add(face);group.add(frame);
interactive(frame,certificate.title,()=>onCertificate(i));
});
function videoScreen(file,position,w,h){
const video=document.createElement('video');video.src='./assets/videos/'+file+'.mp4';video.muted=true;video.loop=true;video.playsInline=true;video.preload='auto';video.setAttribute('aria-hidden','true');
const texture=new THREE.VideoTexture(video);texture.colorSpace=THREE.SRGBColorSpace;texture.anisotropy=anisotropy;
const screen=new THREE.Mesh(new THREE.PlaneGeometry(w,h),new THREE.MeshBasicMaterial({map:texture,toneMapped:false}));screen.position.copy(roomPoint(position[0],position[1]+.93,position[2]));group.add(screen);videos.push(video);
video.addEventListener('loadedmetadata',()=>{const ratio=video.videoWidth/video.videoHeight,target=w/h;screen.scale.set(Math.min(1,ratio/target),Math.min(1,target/ratio),1);});
interactive(screen,file==='nightshift-music'?'Laptop · music':'Open the project on this monitor',()=>{if(file==='nightshift-music')toggleMusic();else{const count=file==='ai-showcase'?2:projects.length;onProject(projects[Math.floor(video.currentTime/4)%count].id);}});
if(!reducedMotion)video.play().catch(()=>{});return video;
}
const slides=[],imageLoader=new THREE.ImageLoader(manager);
const projectImages=projects.map(p=>{const entry={image:null};imageLoader.load('./assets/'+p.image,img=>{entry.image=img;slides.forEach(s=>s.dirty=true);});return entry;});
let screensPlaying=!reducedMotion;
function slideScreen(position,w,h,offset){
const c=document.createElement('canvas');c.width=1024;c.height=Math.round(1024*h/w);
const texture=new THREE.CanvasTexture(c);texture.colorSpace=THREE.SRGBColorSpace;texture.anisotropy=anisotropy;
const screen=new THREE.Mesh(new THREE.PlaneGeometry(w,h),new THREE.MeshBasicMaterial({map:texture,toneMapped:false}));screen.position.copy(roomPoint(position[0],position[1]+.93,position[2]));group.add(screen);
const slide={index:offset%Math.max(1,projects.length),dirty:true,next:0,draw(){
const g=c.getContext('2d'),p=projects[slide.index],img=projectImages[slide.index]?.image;
g.fillStyle='#0b0f15';g.fillRect(0,0,c.width,c.height);
if(img){const bar=Math.round(c.height*.14),ih=c.height-bar,scale=Math.min(c.width/img.width,ih/img.height),dw=img.width*scale,dh=img.height*scale;g.drawImage(img,(c.width-dw)/2,(ih-dh)/2,dw,dh);
g.fillStyle='#111820';g.fillRect(0,ih,c.width,bar);g.fillStyle='#e5eef7';g.font=`600 ${Math.round(bar*.42)}px Arial`;g.textBaseline='middle';g.fillText(p?.title||'',24,ih+bar/2,c.width-48);}
texture.needsUpdate=true;slide.dirty=false;}};
slides.push(slide);
interactive(screen,'Open the project on this monitor',()=>{const p=projects[slide.index];if(p)onProject(p.id);});
}
slideScreen([-.83,1.761,1.40],1.425,.646,0);
slideScreen([.44,1.761,1.43],.815,.736,1);
const musicVideo=videoScreen('nightshift-music',[-1.73,1.531,1.14],.536,.316);
function toggleMusic(){musicVideo.muted=!musicVideo.muted;if(!musicVideo.muted){musicVideo.volume=.4;musicVideo.play().catch(()=>{});}onMusicState?.(!musicVideo.muted);return !musicVideo.muted;}
function hitBox(label,position,size,action){const hit=box(...size,new THREE.MeshBasicMaterial({visible:false}));hit.position.copy(roomPoint(...position));group.add(hit);interactive(hit,label,action);return hit;}
hitBox('Keyboard · open terminal',[-.67,2.22,.97],[.58,.11,.24],onTerminal);
hitBox('Notes · projects',[.02,2.09,.93],[.56,.06,.18],onNotes);
hitBox('Bookcase · toolkit',[-3.59,2.69,1.91],[.35,1.70,1.25],onBooks);
hitBox('Headphones · music',[-1.32,2.16,.98],[.38,.12,.26],()=>{const playing=toggleMusic();onMessage?.(playing?'Music on':'Music off');});
hitBox('Lamp · change the mood',[3.35,.87,2.10],[.43,.32,.43],onNightMode);
let steamUntil=0,clockTime=0;
hitBox('Coffee', [.94,2.61,1.01],[.19,.21,.20],()=>{steamUntil=clockTime+8;});
const steamTexture=canvasTexture((c,w,h)=>{const g=c.createRadialGradient(w/2,h/2,0,w/2,h/2,w/2);g.addColorStop(0,'rgba(255,248,235,.35)');g.addColorStop(1,'rgba(255,248,235,0)');c.fillStyle=g;c.fillRect(0,0,w,h);},64,64);
const steam=Array.from({length:6},()=>{const s=new THREE.Sprite(new THREE.SpriteMaterial({map:steamTexture,transparent:true,opacity:0,depthWrite:false}));group.add(s);return s;});
let fanMotion=!matchMedia('(prefers-reduced-motion: reduce)').matches;
const rotors=[.33,.50,.67].map(z=>{const rotor=new THREE.Group();rotor.position.copy(roomPoint(3.18,2.335,z));for(let i=0;i<5;i++){const blade=box(.026,.063,.004,new THREE.MeshStandardMaterial({color:0x303947,roughness:.48,metalness:.55}));const angle=i*Math.PI*2/5;blade.position.set(Math.sin(angle)*.036,Math.cos(angle)*.036,0);blade.rotation.z=-angle+.35;rotor.add(blade);}group.add(rotor);return rotor;});
hitBox('PC · pause or resume cooling fans',[3.18,2.34,.51],[.42,.63,.12],()=>{fanMotion=!fanMotion;onMessage?.(fanMotion?'Cooling fans running':'Cooling fans paused');});
// Depth-only chair silhouette keeps video behind the real chair in the panorama.
const depthMaterial=new THREE.MeshBasicMaterial({colorWrite:false});
const headrest=roundedBox(.40,.20,.15,depthMaterial,.065);headrest.position.copy(roomPoint(-.42,.77,1.43));headrest.renderOrder=-1;scene.add(headrest);
function depthThread(points,r){const curve=new THREE.CatmullRomCurve3(points.map(p=>roomPoint(p[0],p[1]+.93,p[2])));const mesh=new THREE.Mesh(new THREE.TubeGeometry(curve,12,r,5,false),depthMaterial);mesh.renderOrder=-1;scene.add(mesh);}
for(let i=0;i<65;i++){const z=.67+i*.0098;depthThread([[-.70,-.17,z],[-.42,-.11,z],[-.14,-.17,z]],.0012);}
for(let i=0;i<49;i++){const x=-.696+i*.0115;depthThread([[x,-.14,.67],[x,-.11,.99],[x,-.18,1.29]],.0012);}
depthThread([[-.71,-.13,.64],[-.74,-.16,.75],[-.72,-.19,1.25],[-.63,-.19,1.32],[-.21,-.19,1.32],[-.12,-.19,1.25],[-.10,-.16,.75],[-.13,-.13,.64]],.019);
// A small, real notebook makes the studio notes discoverable in the scene.
const notebook=new THREE.Group();notebook.position.copy(roomPoint(-2.30,2.0,.94));notebook.rotation.y=-.15;
const pages=box(.37,.035,.27,new THREE.MeshStandardMaterial({color:0xe7ddc7,roughness:.9}));notebook.add(pages);
const cover=box(.40,.012,.30,new THREE.MeshStandardMaterial({color:0x95674d,roughness:.7}));cover.position.y=.025;notebook.add(cover);
const noteTitle=plate('PROJECTS',.30,.10,'#f4e8d5','#95674d');noteTitle.rotation.x=-Math.PI/2;noteTitle.position.set(0,.032,0);notebook.add(noteTitle);
const noteHit=box(.45,.13,.36,new THREE.MeshBasicMaterial({visible:false}));notebook.add(noteHit);group.add(notebook);interactive(notebook,'Projects',onNotes);
const letter=plate('CONTACT',.36,.18,'#29313d','#e7ddc7');letter.rotation.x=-Math.PI/2;letter.position.copy(roomPoint(.40,2.0,.94));group.add(letter);interactive(letter,'Say hello',onContact);
const pet=createDeskPet();pet.root.position.copy(roomPoint(1.20,2.33,.911));pet.root.scale.setScalar(1.15);group.add(pet.root);
let motion=!matchMedia('(prefers-reduced-motion: reduce)').matches;
interactive(pet.hit,'Desk bot',()=>pet.react());
let hovered=null;
return {
picks,
setActive(active){if(active===mediaActive)return;mediaActive=active;if(!active){resumeVideos=videos.filter(v=>!v.paused);videos.forEach(v=>v.pause());}else{resumeVideos.forEach(v=>v.play().catch(()=>{}));resumeVideos=[];}},
hover(mesh){hovered=mesh?.userData?.label;},
update(time){
clockTime=time;
steam.forEach((s,i)=>{const t=(time*.22+i/6)%1;s.position.copy(roomPoint(.94+Math.sin(time+i)*.018,2.61,1.07+t*.24));s.scale.setScalar(.035+t*.055);s.material.opacity=time<steamUntil?(1-t)*.45:0;});
if(fanMotion)rotors.forEach((r,i)=>r.rotation.z=time*(11+i));
sculptures.forEach(s=>{const active=hovered===technologies[s.index][0];s.root.rotation.y=.5+(active?Math.sin(time*1.8)*.28:0);s.root.position.y=s.baseY+(active?.018:0);});
pet.update(time,motion,hovered==='Desk bot');
slides.forEach(s=>{if(screensPlaying&&projects.length>1&&time>=s.next){if(s.next)s.index=(s.index+1)%projects.length;s.next=time+4;s.dirty=true;}if(s.dirty)s.draw();});
},
toggleVideos(){const play=!screensPlaying;screensPlaying=play;return play;},
toggleMotion(){motion=!motion;return motion;},
toggleMusic,
dispose(){videos.forEach(v=>{v.pause();v.removeAttribute('src');v.load();});}
};
}import * as THREE from './assets/three.module.js';
/**
* A small desk robot: a rounded body with a screen face, two eyes on the screen,
* an antenna with a glowing tip, and two stubby wheels. It idles with a gentle
* sway, blinks, and does a happy hop with a spinning antenna when clicked.
*
* Same interface as any pet the room accepts: { root, hit, react(), update() }.
* Swap it for your own character by returning that shape.
*/
export function createDeskPet() {
const root = new THREE.Group(), body = new THREE.Group();
root.add(body); body.position.y = .17;
const shell = new THREE.MeshStandardMaterial({ color: 0xdfe6ee, roughness: .38, metalness: .15 });
const trim = new THREE.MeshStandardMaterial({ color: 0x5b6878, roughness: .5, metalness: .4 });
const screen = new THREE.MeshStandardMaterial({ color: 0x0c1a22, roughness: .25, metalness: .1 });
const glow = new THREE.MeshStandardMaterial({ color: 0x7ff0e6, emissive: 0x3fd8cc, emissiveIntensity: 1.4, roughness: .3 });
// Body: a capsule lying on its side reads as a friendly rounded box.
const torso = new THREE.Mesh(new THREE.CapsuleGeometry(.11, .14, 8, 20), shell);
torso.rotation.z = Math.PI / 2; body.add(torso);
const face = new THREE.Mesh(new THREE.PlaneGeometry(.22, .13), screen);
face.position.set(0, .01, .112); body.add(face);
const eyes = [-.05, .05].map(x => {
const eye = new THREE.Mesh(new THREE.CircleGeometry(.018, 20), glow);
eye.position.set(x, .018, .114); body.add(eye); return eye;
});
const antenna = new THREE.Group(); antenna.position.set(0, .11, 0); body.add(antenna);
const stalk = new THREE.Mesh(new THREE.CylinderGeometry(.006, .006, .07, 8), trim);
stalk.position.y = .035; antenna.add(stalk);
const tip = new THREE.Mesh(new THREE.SphereGeometry(.018, 16, 12), glow);
tip.position.y = .075; antenna.add(tip);
const wheels = [-.11, .11].map(x => {
const wheel = new THREE.Mesh(new THREE.CylinderGeometry(.045, .045, .03, 20), trim);
wheel.rotation.z = Math.PI / 2; wheel.position.set(x, .045, 0); root.add(wheel); return wheel;
});
const shadowCanvas = document.createElement('canvas'); shadowCanvas.width = 128; shadowCanvas.height = 128;
const c = shadowCanvas.getContext('2d'), gradient = c.createRadialGradient(64, 64, 8, 64, 64, 62);
gradient.addColorStop(0, 'rgba(0,0,0,.45)'); gradient.addColorStop(1, 'rgba(0,0,0,0)');
c.fillStyle = gradient; c.fillRect(0, 0, 128, 128);
const shadow = new THREE.Mesh(new THREE.PlaneGeometry(.5, .3), new THREE.MeshBasicMaterial({ map: new THREE.CanvasTexture(shadowCanvas), transparent: true, depthWrite: false }));
shadow.rotation.x = -Math.PI / 2; shadow.position.y = .002; root.add(shadow);
// Invisible, stable click target: the visible parts move.
const hit = new THREE.Mesh(new THREE.BoxGeometry(.4, .4, .26), new THREE.MeshBasicMaterial({ visible: false }));
hit.position.y = .18; root.add(hit);
let reactionUntil = 0, lastTime = 0;
return {
root, hit,
react() { reactionUntil = lastTime + 2.3; },
update(time, motion, hovered) {
lastTime = time; const happy = motion && time < reactionUntil;
const phase = time * 7, hop = happy ? Math.abs(Math.sin(phase)) * .05 : 0;
body.position.y = .17 + hop + (motion ? Math.sin(time * 2) * .003 : 0);
body.rotation.z = motion ? Math.sin(time * (happy ? 7 : 1.2)) * (happy ? .1 : .015) : 0;
body.rotation.y = hovered ? .15 : (motion ? Math.sin(time * .6) * .08 : 0);
antenna.rotation.y = happy ? time * 9 : 0;
tip.material.emissiveIntensity = 1.1 + (motion ? Math.sin(time * 3) * .4 : 0);
const blink = motion && (time % 5.2 > 5.04); eyes.forEach(eye => eye.scale.y = blink ? .15 : 1);
wheels.forEach(w => w.rotation.x = happy ? time * 8 : 0);
shadow.material.opacity = 1 - hop * 7;
}
};
}:root{color-scheme:dark;font-family:Manrope,system-ui,sans-serif;color:#eeeae5;background:#101114;font-synthesis:none;--muted:#aaa8a5;--line:#ffffff20;--surface:#151719f2}
*{box-sizing:border-box}
html,body{width:100%;height:100%;margin:0;overflow:hidden}
body{min-width:320px}
button,a,summary{font:inherit;color:inherit}
button,summary{cursor:pointer}
a{text-decoration:none}
button{background:transparent;border:0}
button:focus-visible,a:focus-visible,summary:focus-visible,canvas:focus-visible{outline:2px solid #d6b69b;outline-offset:4px}
button:hover,a:hover{color:#fff}
.experience{position:relative;height:100dvh;min-height:440px;isolation:isolate}
.stage{position:absolute;inset:0;overflow:hidden;background:#111418}
.stage-poster,#room-canvas{position:absolute;inset:0;width:100%;height:100%}
.stage-poster{object-fit:cover;opacity:.7;transition:opacity .5s}
.stage.loaded .stage-poster{opacity:0}
#room-canvas{display:block;touch-action:none;cursor:grab}
#room-canvas.dragging{cursor:grabbing}
.stage-vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(#0006,transparent 18%,transparent 82%,#0005)}
.load-status{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:12px;background:#151719da;padding:12px 18px;border-radius:5px;pointer-events:none}
.load-status.done,.load-status i{display:none}
.top-hud{position:absolute;z-index:5;left:32px;right:32px;top:26px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}
.top-hud>*{pointer-events:auto}
.identity{display:block;text-shadow:0 2px 8px #0009}
.identity b{font-size:14px;font-weight:600}
.identity small{display:block;font-size:10px;color:#c0bdb9;margin-top:4px}
.hud-button,.room-tools summary{font-size:11px;padding:9px 13px;border:1px solid var(--line);border-radius:5px;background:#141618b8;backdrop-filter:blur(10px)}
.room-dock{position:absolute;z-index:5;bottom:24px;left:50%;transform:translateX(-50%);display:flex;gap:3px;padding:5px;background:#111416c7;border:1px solid var(--line);border-radius:7px;backdrop-filter:blur(14px)}
.dock-item{font-size:12px;padding:10px 16px;white-space:nowrap;border-radius:4px;color:#b8b6b2}
.dock-item:hover{background:#ffffff0b}
.dock-item.active{color:#f3ede6;background:#ffffff12}
.room-tools{position:absolute;z-index:7;right:156px;top:28px}
.room-tools summary{list-style:none;user-select:none}
.room-tools summary::-webkit-details-marker{display:none}
.control-options{position:absolute;right:0;top:42px;width:156px;background:var(--surface);border:1px solid var(--line);padding:7px;border-radius:6px;box-shadow:0 12px 40px #0005}
.control-options button{display:block;width:100%;font-size:11px;text-align:left;padding:11px;border-radius:3px}
.control-options button:hover{background:#ffffff0b}
.info-panel{position:absolute;z-index:6;right:28px;top:91px;bottom:96px;width:min(420px,38vw);background:var(--surface);border:1px solid var(--line);border-radius:8px;backdrop-filter:blur(18px);box-shadow:0 16px 64px #0004;display:flex;flex-direction:column;transition:opacity .2s,transform .2s}
.info-panel.minimized{opacity:0;transform:translateX(12px);pointer-events:none;visibility:hidden}
.panel-top{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--line)}
.panel-close{font-size:11px;color:var(--muted)}
.panel-content{padding:23px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.panel-title{font-size:25px;line-height:1.2;margin:0 0 14px;font-weight:600}
.panel-lede,.about-card p,.project-detail p,.contact-block p,.skill-category p{font-size:13px;line-height:1.8;color:#c4c1bc;margin:0 0 20px}
.about-card img{width:76px;height:90px;object-fit:cover;border-radius:5px;margin-bottom:16px}
.eyebrow{font-size:10px!important;letter-spacing:.045em;color:var(--muted)!important}
.fact-pills,.stack-list{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0 24px}
.fact-pills span,.stack-list span{font-size:10px;padding:7px 9px;border:1px solid var(--line);border-radius:4px;color:#ccc7c0}
.panel-links,.contact-socials{display:flex;flex-wrap:wrap;gap:16px;margin-top:22px}
.panel-link,.contact-socials a,.contact-socials button{font-size:11px;text-decoration:underline;text-underline-offset:4px}
.skill-category{padding:17px 0;border-bottom:1px solid var(--line)}
.skill-category h3{font-size:14px;margin:0 0 8px;font-weight:600}
.skill-category p{font-size:12px;margin:0}
.skill-category .fact-pills{margin-bottom:0}
.project-list{display:grid;gap:7px}
.project-entry{display:grid;grid-template-columns:68px 1fr;gap:13px;align-items:center;width:100%;padding:11px 0;text-align:left;border-bottom:1px solid var(--line)}
.project-entry img{width:68px;height:49px;object-fit:contain;background:#0d1013;border-radius:3px}
.project-entry strong{display:block;font-size:13px;font-weight:600}
.project-entry small{display:block;font-size:9px;line-height:1.6;margin-top:5px;color:var(--muted)}
.back-button{font-size:10px;color:var(--muted);padding:0;margin-bottom:20px}
.project-hero{width:100%;max-height:240px;object-fit:contain;background:#0d1013;border-radius:5px;margin-bottom:18px}
.project-detail h3{font-size:24px;font-weight:600;margin:0 0 10px}
.project-detail ul{padding-left:18px;margin-bottom:24px;font-size:12px;line-height:1.9;color:#c4c1bc}
.certificate-list{display:grid;gap:15px}
.certificate-entry{display:grid;grid-template-columns:70px 1fr;gap:10px;align-items:center;padding-bottom:16px;border-bottom:1px solid var(--line)}
.certificate-entry img{width:70px;height:52px;object-fit:contain;background:#0e1012}
.certificate-entry strong{display:block;font-size:12px;line-height:1.5;font-weight:600}
.certificate-entry small{font-size:10px;color:var(--muted);display:block;margin-top:4px}
.certificate-entry button,.certificate-entry .panel-link{font-size:10px;text-align:left;padding:0;text-decoration:underline;text-underline-offset:3px}
.contact-block{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0}
.contact-block>a{display:block;font-size:16px;margin:18px 0;text-decoration:underline;text-underline-offset:5px;overflow-wrap:anywhere}
.contact-block p{font-size:12px;margin:0}
.certificate-viewer{max-width:94vw;width:1000px;height:auto;max-height:92dvh;border:1px solid var(--line);border-radius:8px;background:#17191b;padding:62px 24px 58px;overflow:auto}
.certificate-viewer::backdrop{background:#080a0de8}
.certificate-viewer img{width:100%;height:auto;max-height:70dvh;object-fit:contain;display:block}
.viewer-close{position:absolute;top:20px;right:24px;font-size:12px}
.viewer-prev,.viewer-next{position:absolute;bottom:22px;font-size:11px}
.viewer-prev{left:24px}
.viewer-next{right:24px}
#viewer-caption{text-align:center;font-size:10px;color:var(--muted);padding:0 65px;margin:15px 0 0}
.toast{position:absolute;left:50%;bottom:98px;transform:translateX(-50%);z-index:20;background:var(--surface);border:1px solid var(--line);border-radius:5px;padding:10px 16px;font-size:12px;opacity:0;pointer-events:none}
.toast.show{opacity:1}
@media(max-width:900px){.dock-item{padding:10px 13px}
.info-panel{width:390px;max-width:calc(100vw - 40px)}}
@media(max-width:600px){.top-hud{left:17px;right:17px;top:18px;align-items:flex-start}
.identity b{font-size:12px}
.identity small{font-size:8px;max-width:145px;line-height:1.5}
.hud-button{font-size:10px;padding:8px 10px}
.room-tools{top:65px;right:17px}
.room-tools summary{font-size:10px;padding:8px 10px}
.room-dock{bottom:19px;max-width:calc(100vw - 24px);gap:0;padding:4px}
.dock-item{font-size:10px;padding:10px 11px}
.info-panel{left:12px;right:12px;top:114px;bottom:87px;width:auto;max-width:none}
.panel-content{padding:20px}
.panel-top{padding:13px 20px}
.panel-title{font-size:23px}
.certificate-viewer{padding:55px 14px 68px}
#viewer-caption{padding:0;font-size:9px;line-height:1.6}
.viewer-prev,.viewer-next{bottom:16px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
[hidden]{display:none!important}
:root{--accent:#b7e2dd;--warm:#d8af90}
.hud-actions{display:flex;gap:8px;pointer-events:auto}
.hud-button,.room-tools summary{min-height:44px;display:flex;align-items:center;justify-content:center;font-size:12px}
.room-tools{right:150px;top:26px}
.control-options{top:51px;width:190px}
.control-options button{min-height:44px;font-size:12px}
.simple-intro h1>span{color:var(--warm)}
.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;padding:12px 15px;border-radius:7px;font-size:12px;font-weight:600;line-height:1.5}
.primary-button{background:var(--accent);color:#152321;border:1px solid var(--accent)}
.primary-button:hover{background:#cfefeb;color:#152321}
.secondary-button{border:1px solid #ffffff30;background:#ffffff05}
.secondary-button:hover{background:#ffffff10}
.info-panel{top:94px;bottom:102px;width:min(460px,42vw);border-radius:14px}
.panel-top{padding:12px 20px}
.panel-close{min-height:44px;min-width:44px;font-size:12px}
.panel-content{padding:25px;outline:none}
.panel-content:focus-visible{outline:none}
.panel-title{font-size:28px;letter-spacing:-.7px}
.panel-lede,.about-card p,.project-detail p,.contact-block p,.skill-category p{font-size:14px;line-height:1.8}
.panel-link,.contact-socials a,.contact-socials button,.text-button{display:inline-flex;align-items:center;min-height:44px;font-size:12px;text-decoration:underline;text-underline-offset:5px}
.text-button{color:var(--accent);padding:0;text-align:left}
.fact-pills span,.stack-list span{font-size:11px}
.eyebrow{font-size:11px!important;line-height:1.7}
.project-list{gap:10px}
.featured-project{display:block;padding:0 0 20px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#ffffff03}
.featured-project>img{display:block;width:100%;height:150px;object-fit:cover;object-position:top;border-radius:0;background:#101315}
.featured-project>span{display:block;padding:15px 18px 0}
.project-entry strong{font-size:16px}
.project-entry small{font-size:10px}
.project-entry:hover{background:#ffffff08}
.section-subtitle{font-size:14px;font-weight:500;margin:27px 0 12px}
.back-button{min-height:44px;font-size:11px;margin-bottom:12px}
.project-visit{margin:0 0 6px}
.project-detail ul{font-size:13px}
.certificate-entry button,.certificate-entry .panel-link{min-height:44px;font-size:11px}
.certificate-entry strong{font-size:13px}
.certificate-entry small{font-size:11px}
.dock-item{font-size:13px;min-height:44px}
.room-dock{bottom:max(20px,env(safe-area-inset-bottom));border-radius:10px}
.simple-view .stage,.simple-view .room-tools{display:none}
.simple-view .experience{background:radial-gradient(ellipse at 0 0,#223332 0,transparent 45%),#101718}
.simple-view .top-hud{top:0;left:0;right:0;padding:20px 5vw;background:#101718ed;border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}
.simple-portfolio{height:100%;overflow:auto;scroll-padding-top:110px;padding:120px max(24px,8vw) 130px}
.simple-intro,.simple-section,.simple-footer{max-width:1080px;margin:0 auto}
.simple-intro{padding:45px 0 65px}
.simple-intro h1{font-size:clamp(38px,6vw,72px);line-height:1.1;letter-spacing:-2.5px;font-weight:500;margin:20px 0}
.simple-intro>p{color:#bdcac6;line-height:1.8}
.simple-section{padding:48px 0;border-top:1px solid var(--line);outline:none}
.simple-section>.panel-lede{max-width:650px}
.simple-section .featured-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.simple-section .featured-project{height:100%}
.simple-section .project-list:not(.featured-list){grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.simple-section .about-card{display:flex;gap:24px;align-items:center;max-width:650px}
.simple-section .about-card img{flex-shrink:0;margin:0}
.simple-section .about-card p{margin:0}
.simple-section .certificate-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.simple-footer{padding-top:36px;font-size:13px;color:#bdcac6}
.simple-footer button{margin-left:12px}
.simple-view .info-panel{position:fixed;box-shadow:0 0 0 100vmax #0008,0 16px 64px #0006;z-index:8;max-height:calc(100dvh - 120px)}
.no-script{position:absolute;z-index:30;inset:0;padding:15vh 10vw;background:#101718}
.no-script a{text-decoration:underline}
@media(min-width:901px){.simple-view .info-panel{width:520px}
.simple-section .skill-category{display:inline-block;width:48%;vertical-align:top;margin-right:1%}}
@media(max-width:900px){.room-tools{right:150px}
.info-panel{width:410px;max-width:calc(100vw - 32px)}
.simple-section .featured-list{grid-template-columns:1fr}
.simple-section .featured-project{display:grid;grid-template-columns:40% 1fr;padding:0}
.simple-section .featured-project>img{height:100%;min-height:200px}
.simple-section .featured-project>span{padding:20px}
.simple-view .info-panel{width:min(520px,calc(100vw - 32px))}}
@media(max-width:600px){.top-hud{left:16px;right:16px;top:max(16px,env(safe-area-inset-top));align-items:center}
.identity b{font-size:13px}
.identity small{font-size:10px;max-width:180px}
.hud-actions{gap:6px}
.hud-button{padding:8px 10px;font-size:11px}
.room-tools{top:77px;right:16px}
.room-tools summary{font-size:11px;min-height:44px}
.control-options{top:50px}
.room-dock{left:12px;right:12px;transform:none;max-width:none;justify-content:space-between;bottom:calc(12px + env(safe-area-inset-bottom));padding:5px;gap:0}
.dock-item{font-size:11px;padding:10px 8px;flex:1}
.info-panel{left:8px;right:8px;top:auto;bottom:calc(77px + env(safe-area-inset-bottom));width:auto;max-width:none;height:59dvh;max-height:calc(100dvh - 155px);border-radius:20px 20px 12px 12px}
.info-panel::before{content:'';display:block;flex-shrink:0;width:32px;height:3px;border-radius:5px;background:#65746f;margin:9px auto 0}
.info-panel.minimized{transform:translateY(24px)}
.panel-top{padding:0 18px 4px;flex-shrink:0}
.panel-content{padding:20px;min-height:0}
.panel-title{font-size:25px}
.panel-close{min-width:55px}
.panel-lede,.about-card p,.project-detail p{font-size:14px}
.panel-open .room-tools{display:none}
.featured-project>img{height:145px}
.simple-view .top-hud{padding:16px}
.simple-portfolio{padding:100px 22px 110px;scroll-padding-top:95px}
.simple-intro{padding:25px 0 40px}
.simple-intro h1{font-size:39px;letter-spacing:-1.6px}
.simple-section{padding:35px 0}
.simple-section .featured-project{display:block}
.simple-section .featured-project>img{height:180px;min-height:0}
.simple-section .project-list:not(.featured-list),.simple-section .certificate-list{grid-template-columns:1fr}
.simple-section .about-card{gap:16px;align-items:flex-start}
.simple-section .about-card img{width:60px;height:76px}
.simple-view .info-panel{width:auto;max-height:calc(100dvh - 155px)}
.simple-footer button{margin-left:0;display:flex}}
@media(max-width:360px){.dock-item{padding:10px 5px;font-size:10px}}
@media(max-height:600px) and (min-width:601px){.room-dock{bottom:10px}
.info-panel{top:80px;bottom:80px}}
.load-status{position:fixed;inset:0;left:0;top:0;transform:none;z-index:50;width:100%;height:100%;display:grid;place-items:center;padding:28px;background:radial-gradient(ellipse at 50% 38%,#252321 0%,#131618 48%,#0c0f12 100%);border-radius:0;pointer-events:auto;transition:opacity .45s,visibility .45s}
.load-status.done{display:grid;opacity:0;visibility:hidden;pointer-events:none}
.loader-card{width:min(360px,100%);text-align:center}
.loader-name{font-size:12px;color:#c9c1b6;letter-spacing:.035em;margin:0 0 25px}
.loader-card h1{font-size:23px;font-weight:500;margin:0 0 12px;letter-spacing:-.025em}
#load-label{font-size:11px;color:#b5afa6;min-height:18px;margin:0 0 18px}
#load-progress{display:block;width:100%;height:3px;border:0;border-radius:2px;overflow:hidden;background:#ffffff15;accent-color:#d6b493}
#load-progress::-webkit-progress-bar{background:#ffffff15}
#load-progress::-webkit-progress-value{background:#d6b493;transition:width .2s}
.load-amount{font-size:10px;color:#8e918e;min-height:28px;margin:12px 0 0;line-height:1.6}
.loader-actions{display:flex;justify-content:center;gap:12px;min-height:44px;margin-top:12px}
.loader-actions button{font-size:12px;padding:12px 24px;border-radius:5px;border:1px solid #d5b99866;background:#d5b99814}
.loader-actions button:disabled{opacity:.3;cursor:wait}
.loader-actions button.ready:hover{background:#d5b99829}
.room-dimmed #room-canvas{filter:brightness(.64) saturate(.85)}
#room-canvas{transition:filter 1s}
.room-terminal{width:min(660px,calc(100vw - 30px));border:1px solid #ffffff25;border-radius:9px;padding:0;background:#101518;color:#c2d1c4;box-shadow:0 24px 100px #0008}
.room-terminal::backdrop{background:#080c12a6;backdrop-filter:blur(5px)}
.room-terminal header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff16;padding:16px 20px;font-size:11px;color:#9daca1}
.room-terminal header button{font-size:11px}
.terminal-output{height:min(340px,48dvh);overflow:auto;padding:20px;font:12px/1.85 Consolas,monospace;scrollbar-width:thin}
.terminal-output p{margin:0 0 9px;white-space:pre-wrap}
.terminal-output button,.terminal-output a{display:block;width:100%;text-align:left;padding:6px 0;font:inherit;color:#dec6a5;text-decoration:underline;text-underline-offset:4px}
.room-terminal form{display:flex;align-items:center;gap:12px;border-top:1px solid #ffffff16;padding:16px 20px}
.room-terminal input{flex:1;min-width:0;font:12px Consolas,monospace;background:transparent;border:0;outline:0;color:#eff4e9}
.room-terminal form button{font-size:11px;color:#dec6a5}
.room-terminal label{font:14px Consolas,monospace;color:#d5b493}
.other-projects{margin-top:24px}.panel-top{justify-content:flex-end;border-bottom:0;padding:8px 16px 0}.skill-category,.project-entry,.certificate-entry,.contact-block,.simple-section{border:0}.fact-pills span,.stack-list span{border:0;background:#ffffff06}.simple-footer button{margin-left:0}<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect x="3" y="3" width="58" height="58" rx="16" fill="#0e141e" stroke="#334151" stroke-width="2"/><path d="M16 20h31v7H24v7h19v7H24v9h-8z" fill="#e9f5f6"/><circle cx="48" cy="48" r="4" fill="#79dbe8"/></svg># Developer Room — what is in this folder
Everything here is MIT (ui.artbloom), except the files below, which carry their own terms.
| File(s) | Source | Terms |
| --- | --- | --- |
| `assets/room-working-*.jpg` | Rendered in Blender Cycles for ui.artbloom by @Iitian001. Surface materials come from Adobe Substance 3D Painter's starter materials; only the rendered image ships, not the materials. | MIT, as part of this template |
| `assets/videos/nightshift-music.mp4` | Original instrumental, generated procedurally for this room by @Iitian001 | MIT, as part of this template |
| `assets/three.module.js`, `assets/three.core.js`, `assets/SVGLoader.js`, `assets/FontLoader.js` | [three.js](https://github.com/mrdoob/three.js) 0.180.0 | MIT, © three.js authors |
| `assets/helvetiker-bold.json` | Helvetiker Bold typeface, as distributed with three.js | The licence text is embedded in the file itself (`licenseDescription`) |
| `assets/logos/*.svg` | [Simple Icons](https://github.com/simple-icons/simple-icons) 16.0.0 | CC0. The brand names and marks belong to their owners; use them only to refer to the technology. |
| `assets/placeholders/*.svg` | Made for this template | MIT. Replace them with your own images. |
When you put your own screenshots, certificates and portrait in `assets/placeholders/`, make sure you have the right to publish them.