Prompt specification
Build or customize the Three.js 3D scene "Four Role Stations for One Project" inside the active workspace.
Engineering Constraints:
1. Runtime & Orbit: Use Three.js r160 with OrbitControls (damping enabled) and ACESFilmicToneMapping.
2. Frame Timing: Drive all motion strictly with clock.getDelta() so animation speed is FPS-independent.
3. Viewport Hygiene: Handle window resize cleanly, cap DPR at Math.min(window.devicePixelRatio, 2), and dispose geometries/materials/renderer on unmount.
Scene Metadata:
Scene: Four Role Stations for One Project
Category: Art & Culture · Style: Procedural Solid / Shader 3D
License: MIT · Reference: https://three3d.app/scene/four-role-stations-for-one-project-x3229
Scene Description Prompt:
Create a single self-contained HTML file using Three.js from cdnjs that shows institutional roles, approval steps, and oversight. Arrange proposal, review, execution, and inspection stations around a project token. Give each station distinct tools and prevent the token from skipping required stages. Low-poly.
Working Three.js Starter (four-role-stations-for-one-project-x3229):
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="color-scheme" content="dark">
<title>Governance Pipeline — Controlled Project Delivery</title>
<style>
:root {
--bg: #07111d;
--panel: rgba(9, 22, 36, 0.88);
--panel-edge: rgba(139, 181, 211, 0.17);
--text: #eef7ff;
--muted: #8da4b8;
--gold: #ffd166;
--cyan: #58d8e8;
--purple: #a78bfa;
--orange: #ffad5c;
--green: #66df9a;
}
* {
box-sizing: border-box;
}
html,
body {
width: 100%;
height: 100%;
margin: 0;
overflow: hidden;
background: var(--bg);
color: var(--text);
font-family:
Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
"Segoe UI", sans-serif;
}
body {
background:
radial-gradient(circle at 50% 38%, #142b40 0%, #091522 45%, #050b13 100%);
}
button,
input {
font: inherit;
}
#viewport {
position: fixed;
inset: 0;
}
#viewport canvas {
display: block;
width: 100%;
height: 100%;
cursor: grab;
outline: none;
}
#viewport canvas:active {
cursor: grabbing;
}
.topbar {
position: fixed;
z-index: 10;
top: 0;
left: 0;
right: 0;
min-height: 76px;
padding: 16px 22px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
pointer-events: none;
background: linear-gradient(
180deg,
rgba(4, 11, 19, 0.88),
rgba(4, 11, 19, 0)
);
}
.brand {
display: flex;
align-items: center;
gap: 12px;
}
.brand-mark {
position: relative;
width: 38px;
height: 38px;
border: 1px solid rgba(255, 209, 102, 0.55);
border-radius: 9px;
background: rgba(255, 209, 102, 0.07);
transform: rotate(45deg);
flex: 0 0 auto;
}
.brand-mark::before,
.brand-mark::after {
content: "";
position: absolute;
inset: 8px;
border: 1px solid var(--gold);
border-radius: 3px;
}
.brand-mark::after {
inset: 14px;
background: var(--gold);
box-shadow: 0 0 18px rgba(255, 209, 102, 0.55);
}
.brand-copy {
min-width: 0;
}
.eyebrow {
color: var(--muted);
font-size: 10px;
font-weight: 800;
letter-spacing: 0.18em;
text-transform: uppercase;
}
.brand h1 {
margin: 3px 0 0;
font-size: clamp(16px, 2vw, 23px);
line-height: 1.1;
font-weight: 720;
letter-spacing: -0.025em;
}
.header-status {
min-width: 245px;
display: grid;
grid-template-columns: 1fr auto;
align-items: center;
gap: 8px 12px;
padding: 11px 13px;
border: 1px solid var(--panel-edge);
border-radius: 12px;
background: rgba(8, 19, 31, 0.68);
backdrop-filter: blur(12px);
}
.header-status .eyebrow {
grid-column: 1 / -1;
color: #a9c0d2;
}
.progress-track {
height: 5px;
overflow: hidden;
border-radius: 99px;
background: rgba(255, 255, 255, 0.08);
}
#progressFill {
display: block;
width: 0%;
height: 100%;
border-radius: inherit;
background: linear-gradient(90deg, var(--cyan), var(--purple), var(--orange), var(--green));
transition: width 500ms ease;
box-shadow: 0 0 12px rgba(102, 223, 154, 0.35);
}
#progressText {
color: var(--green);
font-size: 12px;
font-weight: 800;
font-variant-numeric: tabular-nums;
}
.panel {
position: fixed;
z-index: 10;
border: 1px solid var(--panel-edge);
border-radius: 16px;
background: var(--panel);
backdrop-filter: blur(18px);
box-shadow:
0 20px 60px rgba(0, 0, 0, 0.28),
inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.workflow-panel {
top: 92px;
left: 18px;
width: 292px;
padding: 17px;
}
.panel-heading {
margin: 0 0 13px;
font-size: 16px;
letter-spacing: -0.015em;
}
.stage-list {
display: grid;
gap: 7px;
}
.stage-item {
position: relative;
display: grid;
grid-template-columns: 34px 1fr auto;
align-items: center;
gap: 10px;
min-height: 53px;
padding: 8px 9px;
border: 1px solid rgba(142, 175, 201, 0.11);
border-radius: 10px;
background: rgba(255, 255, 255, 0.022);
transition: 250ms ease;
}
.stage-item::before {
content: "";
position: absolute;
left: -1px;
top: 12px;
bottom: 12px;
width: 2px;
border-radius: 3px;
background: transparent;
}
.stage-number {
display: grid;
place-items: center;
width: 30px;
height: 30px;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 8px;
color: #738b9f;
font-size: 11px;
font-weight: 800;
font-variant-numeric: tabular-nums;
}
.stage-name {
font-size: 12px;
font-weight: 750;
}
.stage-role {
margin-top: 2px;
color: #71889b;
font-size: 9px;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.stage-state {
color: #60788b;
font-size: 8px;
font-weight: 850;
letter-spacing: 0.1em;
}
.stage-item.active {
border-color: color-mix(in srgb, var(--stage-color) 58%, transparent);
background: color-mix(in srgb, var(--stage-color) 8%, transparent);
transform: translateX(3px);
}
.stage-item.active::before {
background: var(--stage-color);
box-shadow: 0 0 12px var(--stage-color);
}
.stage-item.active .stage-number {
color: #07111d;
border-color: var(--stage-color);
background: var(--stage-color);
}
.stage-item.active .stage-name,
.stage-item.active .stage-state {
color: var(--stage-color);
}
.stage-item.complete {
border-color: rgba(102, 223, 154, 0.22);
}
.stage-item.complete .stage-number {
color: var(--green);
border-color: rgba(102, 223, 154, 0.45);
background: rgba(102, 223, 154, 0.08);
}
.stage-item.complete .stage-state {
color: var(--green);
}
.audit {
margin-top: 15px;
padding-top: 13px;
border-top: 1px solid rgba(142, 175, 201, 0.11);
}
.audit-title {
display: flex;
justify-content: space-between;
margin-bottom: 8px;
}
#auditCount {
color: var(--green);
font-size: 9px;
font-weight: 800;
}
.audit-entry {
display: grid;
grid-template-columns: 53px 1fr;
gap: 8px;
padding: 5px 0;
color: #8399ab;
font-size: 10px;
line-height: 1.35;
}
.audit-entry time {
color: #536c80;
font-variant-numeric: tabular-nums;
}
.action-panel {
top: 92px;
right: 18px;
width: 340px;
padding: 19px;
}
.action-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
#stageCounter {
color: var(--cyan);
font-size: 10px;
font-weight: 850;
letter-spacing: 0.13em;
text-transform: uppercase;
}
#stateBadge {
padding: 5px 7px;
border: 1px solid rgba(255, 209, 102, 0.25);
border-radius: 6px;
color: var(--gold);
background: rgba(255, 209, 102, 0.06);
font-size: 8px;
font-weight: 850;
letter-spacing: 0.09em;
text-transform: uppercase;
}
.action-panel h2 {
margin: 12px 0 7px;
font-size: 24px;
letter-spacing: -0.035em;
}
#stageDescription {
min-height: 51px;
margin: 0;
color: #9bb0c2;
font-size: 12px;
line-height: 1.55;
}
.tool-chip {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin: 16px 0 12px;
padding: 10px 11px;
border: 1px solid rgba(142, 175, 201, 0.12);
border-radius: 9px;
background: rgba(255, 255, 255, 0.025);
}
.tool-chip span {
color: #60788c;
font-size: 8px;
font-weight: 850;
letter-spacing: 0.13em;
}
.tool-chip strong {
color: #cbd9e5;
font-size: 10px;
font-weight: 700;
text-align: right;
}
.evidence {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 15px;
}
.evidence-chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 8px;
border: 1px solid rgba(142, 175, 201, 0.13);
border-radius: 6px;
color: #8299ac;
background: rgba(255, 255, 255, 0.018);
font-size: 9px;
}
.evidence-chip::before {
content: "";
width: 5px;
height: 5px;
border: 1px solid #5d7488;
border-radius: 50%;
}
.evidence-chip.done {
color: #a8e9c2;
border-color: rgba(102, 223, 154, 0.2);
background: rgba(102, 223, 154, 0.045);
}
.evidence-chip.done::before {
border-color: var(--green);
background: var(--green);
}
#advanceButton {
width: 100%;
min-height: 48px;
padding: 0 15px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
border: 1px solid rgba(255, 209, 102, 0.52);
border-radius: 10px;
color: #101923;
background: var(--gold);
box-shadow: 0 8px 25px rgba(255, 209, 102, 0.13);
cursor: pointer;
font-size: 12px;
font-weight: 850;
transition: 180ms ease;
}
#advanceButton:hover:not(:disabled) {
transform: translateY(-1px);
background: #ffdc8c;
box-shadow: 0 10px 30px rgba(255, 209, 102, 0.21);
}
#advanceButton:focus-visible {
outline: 2px solid white;
outline-offset: 3px;
}
#advanceButton:disabled {
color: #6e8191;
border-color: rgba(142, 175, 201, 0.12);
background: rgba(142, 175, 201, 0.08);
box-shadow: none;
cursor: not-allowed;
}
#advanceButton svg {
width: 17px;
height: 17px;
flex: 0 0 auto;
}
.guardrail {
display: flex;
gap: 8px;
margin: 12px 0 0;
color: #61798d;
font-size: 9px;
line-height: 1.45;
}
.guardrail svg {
width: 12px;
height: 12px;
flex: 0 0 auto;
margin-top: 1px;
}
.controls-help {
position: fixed;
z-index: 8;
left: 50%;
bottom: 15px;
transform: translateX(-50%);
padding: 7px 10px;
border: 1px solid rgba(142, 175, 201, 0.11);
border-radius: 99px;
color: #61798d;
background: rgba(5, 13, 22, 0.68);
font-size: 9px;
letter-spacing: 0.04em;
pointer-events: none;
white-space: nowrap;
}
#toast {
position: fixed;
z-index: 30;
left: 50%;
top: 82px;
transform: translate(-50%, -10px);
padding: 10px 14px;
border: 1px solid rgba(102, 223, 154, 0.3);
border-radius: 9px;
color: #c9f8dc;
background: rgba(10, 30, 37, 0.94);
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
font-size: 11px;
opacity: 0;
pointer-events: none;
transition: 220ms ease;
}
#toast.show {
transform: translate(-50%, 0);
opacity: 1;
}
#loading {
position: fixed;
z-index: 100;
inset: 0;
display: grid;
place-items: center;
color: #b8cad8;
background: #07111d;
font-size: 12px;
letter-spacing: 0.12em;
text-transform: uppercase;
transition: opacity 350ms ease;
}
#loading.hidden {
opacity: 0;
pointer-events: none;
}
@media (max-width: 900px) {
.header-status {
min-width: 205px;
}
.workflow-panel {
width: 262px;
}
.action-panel {
width: 304px;
}
}
@media (max-width: 720px) {
.topbar {
min-height: 67px;
padding: 12px;
}
.brand h1 {
font-size: 15px;
}
.brand .eyebrow {
font-size: 8px;
}
.brand-mark {
width: 30px;
height: 30px;
}
.header-status {
min-width: 135px;
padding: 9px 10px;
}
.header-status .eyebrow {
display: none;
}
.workflow-panel {
top: 74px;
left: 10px;
right: 10px;
width: auto;
padding: 11px;
}
.workflow-panel > .eyebrow,
.workflow-panel > h2,
.audit {
display: none;
}
.stage-list {
grid-template-columns: repeat(4, 1fr);
gap: 5px;
}
.stage-item {
display: block;
min-height: 54px;
padding: 7px;
text-align: center;
}
.stage-item::before,
.stage-role,
.stage-state {
display: none;
}
.stage-number {
margin: 0 auto 5px;
width: 24px;
height: 24px;
font-size: 9px;
}
.stage-name {
font-size: 9px;
}
.action-panel {
top: auto;
right: 10px;
bottom: 10px;
left: 10px;
width: auto;
max-height: 47vh;
overflow-y: auto;
padding: 14px;
}
.action-panel h2 {
margin-top: 8px;
font-size: 20px;
}
#stageDescription {
min-height: 0;
}
.tool-chip {
margin: 10px 0;
}
.controls-help {
display: none;
}
#toast {
top: 137px;
}
}
@media (max-height: 680px) and (min-width: 721px) {
.workflow-panel,
.action-panel {
top: 82px;
max-height: calc(100vh - 98px);
overflow-y: auto;
}
.audit {
display: none;
}
}
</style>
</head>
<body>
<div id="viewport"></div>
<header class="topbar">
<div class="brand">
<div class="brand-mark" aria-hidden="true"></div>
<div class="brand-copy">
<div class="eyebrow">Civic governance / controlled delivery</div>
<h1>Project Authorization Pipeline</h1>
</div>
</div>
<div class="header-status">
<div class="eyebrow">Enforced sequence · live oversight</div>
<div class="progress-track"><i id="progressFill"></i></div>
<div id="progressText">0 / 4 signed</div>
</div>
</header>
<aside class="panel workflow-panel" aria-label="Required workflow stages">
<div class="eyebrow">Gated workflow</div>
<h2 class="panel-heading">Required chain of authority</h2>
<div id="stageList" class="stage-list"></div>
<div class="audit">
<div class="audit-title">
<span class="eyebrow">Oversight trail</span>
<span id="auditCount">0 events</span>
</div>
<div id="auditEntries"></div>
</div>
</aside>
<section class="panel action-panel" aria-live="polite">
<div class="action-top">
<span id="stageCounter">Stage 01 / 04</span>
<span id="stateBadge">Token in transit</span>
</div>
<h2 id="stageTitle">Proposal</h2>
<p id="stageDescription"></p>
<div class="tool-chip">
<span>Station tool kit</span>
<strong id="toolName"></strong>
</div>
<div id="evidence" class="evidence"></div>
<button id="advanceButton" type="button" disabled>
<span id="buttonText">Moving token…</span>
<svg viewBox="0 0 24 24" fill="none" aria-hidden="true">
<path d="M5 12h13M13 6l6 6-6 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</button>
<p class="guardrail">
<svg viewBox="0 0 24 24" fill="none" aria-hidden="true">
<rect x="5" y="10" width="14" height="10" rx="2" stroke="currentColor" stroke-width="1.8"/>
<path d="M8 10V7a4 4 0 0 1 8 0v3" stroke="currentColor" stroke-width="1.8"/>
</svg>
<span id="guardrailText">Only the current station may release the project token. Later stages remain locked.</span>
</p>
</section>
<div class="controls-help">Drag to orbit · Scroll to zoom · Double-click to reset</div>
<div id="toast" role="status"></div>
<div id="loading">Constructing governance floor…</div>
<script type="module">
import * as THREE from
"https://cdnjs.cloudflare.com/ajax/libs/three.js/0.160.0/three.module.min.js";
// ------------------------------------------------------------
// Workflow definition and enforced state machine
// ------------------------------------------------------------
const STAGES = [
{
title: "Proposal",
role: "Originating office",
color: "#58d8e8",
description:
"Defines the project mandate, funding envelope, accountable owner and measurable scope.",
action: "Submit proposal",
outcome: "Proposal submitted into independent review.",
tool: "Scope slate + drafting pencil",
evidence: ["Scope charter", "Named owner", "Funding envelope"]
},
{
title: "Review",
role: "Independent assurance",
color: "#a78bfa",
description:
"Tests the proposal against mandate, risk, procurement policy and control requirements.",
action: "Approve review",
outcome: "Review approved and escalated for release authority.",
tool: "Assurance shield + seal stamp",
evidence: ["Risk assessment", "Compliance check", "Assurance seal"]
},
{
title: "Execution",
role: "Delivery authority",
color: "#ffad5c",
description:
"Authorizes resources, contracts and operational delivery only after independent approval.",
action: "Release execution",
outcome: "Execution authority granted. Delivery may begin.",
tool: "Release wrench + drive gear",
evidence: ["Release order", "Resource authority", "Delivery plan"]
},
{
title: "Inspection",
role: "Oversight office",
color: "#66df9a",
description:
"Verifies delivered outcomes against the approved scope and records final oversight evidence.",
action: "Accept inspection",
outcome: "Inspection accepted and project closure authorized.",
tool: "Field lens + inspection checklist",
evidence: ["Outcome verification", "Evidence archive", "Oversight sign-off"]
}
];
const stagePositions = [
new THREE.Vector3(-4.15, 1.18, 3.15),
new THREE.Vector3( 4.15, 1.18, 3.15),
new THREE.Vector3( 4.15, 1.18,-3.15),
new THREE.Vector3(-4.15, 1.18,-3.15)
];
const centerPosition = new THREE.Vector3(0, 1.18, 0);
let currentStage = 0;
let busy = true;
let tokenTween = null;
let toastTimer = 0;
const auditEvents = [
{
time: "--:--:--",
text: "Workflow initialized. Four controls armed."
}
];
const stageListElement = document.querySelector("#stageList");
const auditEntriesElement = document.querySelector("#auditEntries");
const auditCountElement = document.querySelector("#auditCount");
const progressFillElement = document.querySelector("#progressFill");
const progressTextElement = document.querySelector("#progressText");
const stageCounterElement = document.querySelector("#stageCounter");
const stateBadgeElement = document.querySelector("#stateBadge");
const stageTitleElement = document.querySelector("#stageTitle");
const stageDescriptionElement = document.querySelector("#stageDescription");
const toolNameElement = document.querySelector("#toolName");
const evidenceElement = document.querySelector("#evidence");
const advanceButton = document.querySelector("#advanceButton");
const buttonTextElement = document.querySelector("#buttonText");
const guardrailTextElement = document.querySelector("#guardrailText");
const toastElement = document.querySelector("#toast");
function timeStamp() {
return new Date().toLocaleTimeString([], {
hour: "2-digit",
minute: "2-digit",
second: "2-digit",
hour12: false
});
}
function showToast(message) {
toastElement.textContent = message;
toastElement.classList.add("show");
clearTimeout(toastTimer);
toastTimer = setTimeout(() => {
toastElement.classList.remove("show");
}, 2800);
}
function renderAudit() {
auditCountElement.textContent = `${auditEvents.length} event${auditEvents.length === 1 ? "" : "s"}`;
auditEntriesElement.innerHTML = auditEvents
.slice(-3)
.reverse()
.map(
event => `
<div class="audit-entry">
<time>${event.time}</time>
<span>${event.text}</span>
</div>
`
)
.join("");
}
function renderUI() {
const completed = Math.min(currentStage, 4);
progressFillElement.style.width = `${completed * 25}%`;
progressTextElement.textContent = `${completed} / 4 signed`;
stageListElement.innerHTML = STAGES.map((stage, index) => {
const isComplete = index < currentStage;
const isCurrent = index === currentStage && currentStage < 4;
const state = isComplete ? "SIGNED" : isCurrent ? "CURRENT" : "LOCKED";
return `
<div
class="stage-item ${isComplete ? "complete" : ""} ${isCurrent ? "active" : ""}"
style="--stage-color: ${stage.color}"
${isCurrent ? 'aria-current="step"' : ""}
>
<div class="stage-number">${isComplete ? "✓" : String(index + 1).padStart(2, "0")}</div>
<div>
<div class="stage-name">${stage.title}</div>
<div class="stage-role">${stage.role}</div>
</div>
<div class="stage-state">${state}</div>
</div>
`;
}).join("");
if (currentStage < 4) {
const stage = STAGES[currentStage];
stageCounterElement.textContent = `Stage ${String(currentStage + 1).padStart(2, "0")} / 04`;
stageTitleElement.textContent = stage.title;
stageDescriptionElement.textContent = stage.description;
toolNameElement.textContent = stage.tool;
evidenceElement.innerHTML = stage.evidence.map((item, index) => {
const isDone = index < currentStage - 1;
return `<span class="evidence-chip ${isDone ? "done" : ""}">${item}</span>`;
}).join("");
if (busy) {
stateBadgeElement.textContent = "Token in transit";
buttonTextElement.textContent = "Moving token…";
advanceButton.disabled = true;
} else {
stateBadgeElement.textContent = "Action required";
buttonTextElement.textContent = stage.action;
advanceButton.disabled = false;
}
guardrailTextElement.textContent =
"Only the current station may release the project token. Later stages remain locked.";
} else {
stageCounterElement.textContent = "All controls / 04";
stageTitleElement.textContent = "Oversight complete";
stageDescriptionElement.textContent =
"The authorized project token has returned to the central registry. Scope, approval, execution and inspection evidence form a complete oversight record.";
toolNameElement.textContent = "Central registry + sealed audit archive";
evidenceElement.innerHTML = STAGES.flatMap(stage => stage.evidence)
.map(item => `<span class="evidence-chip done">${item}</span>`)
.join("");
stateBadgeElement.textContent = "Certified";
buttonTextElement.textContent = "Workflow complete";
advanceButton.disabled = true;
guardrailTextElement.textContent =
"The chain is closed. The token cannot be released again without reopening governance.";
}
renderAudit();
updateStationVisuals();
}
function advanceWorkflow() {
// Hard guard: only one exact stage may release the token.
if (busy || currentStage < 0 || currentStage >= STAGES.length) return;
const signedStage = STAGES[currentStage];
auditEvents.push({
time: timeStamp(),
text: `${signedStage.title} signed by ${signedStage.role}.`
});
currentStage += 1;
busy = true;
renderUI();
const destination =
currentStage < STAGES.length
? stagePositions[currentStage].clone()
: centerPosition.clone();
moveToken(destination, () => {
busy = false;
if (currentStage === STAGES.length) {
auditEvents.push({
time: timeStamp(),
text: "Project token archived. Oversight chain certified."
});
showToast("Governance chain certified. Project token archived.");
} else {
showToast(`${signedStage.outcome}`);
}
renderUI();
});
}
advanceButton.addEventListener("click", advanceWorkflow);
// ------------------------------------------------------------
// Renderer, scene and camera
// ------------------------------------------------------------
const viewport = document.querySelector("#viewport");
const scene = new THREE.Scene();
scene.fog = new THREE.FogExp2(0x07111d, 0.026);
const camera = new THREE.PerspectiveCamera(
42,
window.innerWidth / window.innerHeight,
0.1,
100
);
const renderer = new THREE.WebGLRenderer({
antialias: true,
alpha: true,
powerPreference: "high-performance"
});
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.shadowMap.enabled = true;
renderer.shadowMap.type = THREE.PCFSoftShadowMap;
renderer.outputColorSpace = THREE.SRGBColorSpace;
renderer.toneMapping = THREE.ACESFilmicToneMapping;
renderer.toneMappingExposure = 1.08;
renderer.domElement.tabIndex = 0;
renderer.domElement.setAttribute(
"aria-label",
"Interactive low-poly governance pipeline. Drag to orbit and scroll to zoom."
);
viewport.appendChild(renderer.domElement);
const hemisphere = new THREE.HemisphereLight(0xaed8ff, 0x07101a, 2.0);
scene.add(hemisphere);
const keyLight = new THREE.DirectionalLight(0xfff2d5, 3.0);
keyLight.position.set(6, 12, 8);
keyLight.castShadow = true;
keyLight.shadow.mapSize.set(2048, 2048);
keyLight.shadow.camera.left = -13;
keyLight.shadow.camera.right = 13;
keyLight.shadow.camera.top = 13;
keyLight.shadow.camera.bottom = -13;
keyLight.shadow.camera.near = 1;
keyLight.shadow.camera.far = 35;
keyLight.shadow.bias = -0.0008;
scene.add(keyLight);
const rimLight = new THREE.DirectionalLight(0x4e9dff, 1.2);
rimLight.position.set(-9, 6, -7);
scene.add(rimLight);
const world = new THREE.Group();
scene.add(world);
// ------------------------------------------------------------
// Materials and helpers
// ------------------------------------------------------------
const material = (color, options = {}) =>
new THREE.MeshStandardMaterial({
color,
roughness: 0.78,
metalness: 0.06,
flatShading: true,
...options
});
const MAT = {
board: material(0x12283a),
boardEdge: material(0x0b1926),
desk: material(0x294153),
deskDark: material(0x142838),
metal: material(0x8ea4b3, { metalness: 0.65, roughness: 0.34 }),
paper: material(0xe6dfca),
ink: material(0x293949),
gold: material(0xffc95d, {
metalness: 0.42,
roughness: 0.3,
emissive: 0x5d3900,
emissiveIntensity: 0.25
})
};
function addMesh(geometry, meshMaterial, parent, position, rotation) {
const mesh = new THREE.Mesh(geometry, meshMaterial);
if (position) mesh.position.set(...position);
if (rotation) mesh.rotation.set(...rotation);
mesh.castShadow = true;
mesh.receiveShadow = true;
parent.add(mesh);
return mesh;
}
function addBox(parent, size, meshMaterial, position, rotation) {
return addMesh(
new THREE.BoxGeometry(size[0], size[1], size[2]),
meshMaterial,
parent,
position,
rotation
);
}
function roundedRect(ctx, x, y, width, height, radius) {
const r = Math.min(radius, width / 2, height / 2);
ctx.beginPath();
ctx.moveTo(x + r, y);
ctx.arcTo(x + width, y, x + width, y + height, r);
ctx.arcTo(x + width, y + height, x, y + height, r);
ctx.arcTo(x, y + height, x, y, r);
ctx.arcTo(x, y, x + width, y, r);
ctx.closePath();
}
function makeLabelSprite(title, subtitle, accent, options = {}) {
const canvas = document.createElement("canvas");
canvas.width = 512;
canvas.height = 160;
const ctx = canvas.getContext("2d");
ctx.clearRect(0, 0, canvas.width, canvas.height);
roundedRect(ctx, 8, 8, 496, 144, 22);
ctx.fillStyle = options.background || "rgba(7, 19, 31, 0.94)";
ctx.fill();
ctx.lineWidth = 4;
ctx.strokeStyle = accent;
ctx.stroke();
roundedRect(ctx, 25, 31, 78, 78, 14);
ctx.fillStyle = accent;
ctx.fill();
ctx.fillStyle = "#08131e";
ctx.font = "800 30px system-ui, sans-serif";
ctx.textAlign = "center";
ctx.textBaseline = "middle";
ctx.fillText(options.number || "", 64, 71);
ctx.textAlign = "left";
ctx.fillStyle = "#eff8ff";
ctx.font = "800 37px system-ui, sans-serif";
ctx.fillText(title, 125, 62);
ctx.fillStyle = accent;
ctx.font = "700 20px system-ui, sans-serif";
ctx.fillText(subtitle, 126, 105);
const texture = new THREE.CanvasTexture(canvas);
texture.colorSpace = THREE.SRGBColorSpace;
texture.minFilter = THREE.LinearFilter;
const spriteMaterial = new THREE.SpriteMaterial({
map: texture,
transparent: true,
depthTest: false,
depthWrite: false
});
const sprite = new THREE.Sprite(spriteMaterial);
sprite.scale.set(options.width || 3.25, options.height || 1.02, 1);
sprite.renderOrder = 20;
return sprite;
}
// ------------------------------------------------------------
// Floor, central registry and process route
// ------------------------------------------------------------
addMesh(
new THREE.CylinderGeometry(11.25, 11.6, 0.42, 24),
MAT.board,
world,
[0, -0.23, 0]
);
addMesh(
new THREE.CylinderGeometry(10.95, 11.05, 0.08, 24),
MAT.boardEdge,
world,
[0, 0.015, 0]
);
const grid = new THREE.GridHelper(19.5, 26, 0x31506a, 0x1a3449);
grid.position.y = 0.07;
grid.material.transparent = true;
grid.material.opacity = 0.28;
world.add(grid);
addMesh(
new THREE.CylinderGeometry(1.72, 1.92, 0.24, 12),
material(0x1b3448),
world,
[0, 0.16, 0]
);
addMesh(
new THREE.CylinderGeometry(1.42, 1.55, 0.11, 12),
material(0x0e2232),
world,
[0, 0.33, 0]
);
const centralRing = addMesh(
new THREE.TorusGeometry(1.28, 0.045, 4, 32),
material(0xffd166, {
emissive: 0x7c5200,
emissiveIntensity: 0.8
}),
world,
[0, 0.41, 0],
[Math.PI / 2, 0, 0]
);
const routePoints = [
new THREE.Vector3(-4.15, 0.10, 3.15),
new THREE.Vector3(-2.25, 0.10, 3.85),
new THREE.Vector3( 0.00, 0.10, 4.10),
new THREE.Vector3( 2.25, 0.10, 3.85),
new THREE.Vector3( 4.15, 0.10, 3.15),
new THREE.Vector3( 4.82, 0.10, 1.60),
new THREE.Vector3( 4.82, 0.10, 0.00),
new THREE.Vector3( 4.15, 0.10,-3.15),
new THREE.Vector3( 2.25, 0.10,-3.85),
new THREE.Vector3( 0.00, 0.10,-4.10),
new THREE.Vector3(-2.25, 0.10,-3.85),
new THREE.Vector3(-4.15, 0.10,-3.15),
new THREE.Vector3(-4.82, 0.10,-1.60),
new THREE.Vector3(-4.82, 0.10, 0.00)
];
const routeCurve = new THREE.CatmullRomCurve3(
routePoints,
true,
"catmullrom",
0.16
);
const routeMesh = addMesh(
new THREE.TubeGeometry(routeCurve, 96, 0.055, 4, true),
material(0x48677f, {
emissive: 0x183349,
emissiveIntensity: 0.55
}),
world
);
routeMesh.castShadow = false;
const arrowMaterial = material(0x7095af, {
emissive: 0x24465c,
emissiveIntensity: 0.65
});
[0.125, 0.375, 0.625, 0.875].forEach(t => {
const point = routeCurve.getPointAt(t);
const tangent = routeCurve.getTangentAt(t).normalize();
const arrow = addMesh(
new THREE.ConeGeometry(0.18, 0.48, 3),
arrowMaterial,
world,
[point.x, 0.19, point.z]
);
arrow.quaternion.setFromUnitVectors(
new THREE.Vector3(0, 1, 0),
tangent
);
arrow.castShadow = false;
});
// Decorative perimeter pylons.
for (let i = 0; i < 10; i++) {
const angle = (i / 10) * Math.PI * 2 + 0.12;
const radius = 9.35;
const x = Math.cos(angle) * radius;
const z = Math.sin(angle) * radius;
addBox(
world,
[0.18, 0.52, 0.18],
MAT.deskDark,
[x, 0.32, z]
);
addMesh(
new THREE.OctahedronGeometry(0.10, 0),
material(0x6e9db8, {
emissive: 0x24485e,
emissiveIntensity: 0.65
}),
world,
[x, 0.67, z]
);
}
// ------------------------------------------------------------
// Station-specific low-poly tools
// ------------------------------------------------------------
function addClipboard(parent, x, z, accent, checked = false) {
const group = new THREE.Group();
group.position.set(x, 1.22, z);
parent.add(group);
addBox(group, [0.50, 0.055, 0.67], MAT.deskDark, [0, 0, 0]);
addBox(group, [0.42, 0.025, 0.58], MAT.paper, [0, 0.045, -0.015]);
addBox(group, [0.23, 0.07, 0.12], MAT.metal, [0, 0.09, 0.27]);
if (checked) {
for (let i = 0; i < 3; i++) {
addBox(
group,
[0.07, 0.025, 0.07],
material(0x66df9a),
[-0.12, 0.075, -0.17 + i * 0.15]
);
addBox(
group,
[0.18, 0.018, 0.025],
MAT.ink,
[0.04, 0.078, -0.17 + i * 0.15]
);
}
} else {
for (let i = 0; i < 3; i++) {
addBox(
group,
[0.27, 0.018, 0.025],
MAT.ink,
[0.025, 0.075, -0.13 + i * 0.13]
);
}
}
addBox(
group,
[0.50, 0.065, 0.07],
material(accent),
[0, 0.015, 0.32]
);
}
function addPencil(parent, x, z, accent) {
const pencil = new THREE.Group();
pencil.position.set(x, 1.29, z);
pencil.rotation.y = -0.28;
parent.add(pencil);
const body = addMesh(
new THREE.CylinderGeometry(0.035, 0.035, 0.70, 6),
material(accent),
pencil,
[0, 0, 0],
[0, 0, Math.PI / 2]
);
addMesh(
new THREE.ConeGeometry(0.036, 0.14, 6),
MAT.paper,
pencil,
[0.42, 0, 0],
[0, 0, -Math.PI / 2]
);
addMesh(
new THREE.ConeGeometry(0.016, 0.07, 6),
MAT.ink,
pencil,
[0.52, 0, 0],
[0, 0, -Math.PI / 2]
);
}
function addStamp(parent, x, z, accent) {
const group = new THREE.Group();
group.position.set(x, 1.21, z);
parent.add(group);
addMesh(
new THREE.CylinderGeometry(0.21, 0.24, 0.13, 8),
MAT.metal,
group,
[0, 0.08, 0]
);
addMesh(
new THREE.CylinderGeometry(0.07, 0.10, 0.38, 8),
MAT.deskDark,
group,
[0, 0.31, 0]
);
addMesh(
new THREE.CylinderGeometry(0.18, 0.18, 0.12, 8),
material(accent),
group,
[0, 0.53, 0]
);
}
function addShield(parent, x, z, accent) {
const group = new THREE.Group();
group.position.set(x, 1.42, z);
group.rotation.y = -0.15;
parent.add(group);
const shape = new THREE.Shape();
shape.moveTo(0, 0.34);
shape.lineTo(0.31, 0.22);
shape.lineTo(0.27, -0.10);
shape.lineTo(0.15, -0.27);
shape.lineTo(0, -0.37);
shape.lineTo(-0.15, -0.27);
shape.lineTo(-0.27, -0.10);
shape.lineTo(-0.31, 0.22);
shape.closePath();
const geometry = new THREE.ExtrudeGeometry(shape, {
depth: 0.075,
bevelEnabled: false,
curveSegments: 1
});
addMesh(
geometry,
material(accent, {
emissive: new THREE.Color(accent).multiplyScalar(0.13),
emissiveIntensity: 0.45
}),
group
);
const checkA = addBox(
group,
[0.09, 0.19, 0.055],
MAT.paper,
[-0.035, 0.025, 0.105],
[0, 0, -0.72]
);
const checkB = addBox(
group,
[0.09, 0.29, 0.055],
MAT.paper,
[0.075, 0.075, 0.105],
[0, 0, 0.72]
);
checkA.castShadow = false;
checkB.castShadow = false;
}
function addGear(parent, x, z, accent) {
const group = new THREE.Group();
group.position.set(x, 1.24, z);
parent.add(group);
addMesh(
new THREE.CylinderGeometry(0.25, 0.25, 0.16, 10),
material(accent, { metalness: 0.38, roughness: 0.45 }),
group,
[0, 0.04, 0]
);
for (let i = 0; i < 8; i++) {
const angle = (i / 8) * Math.PI * 2;
addBox(
group,
[0.16, 0.14, 0.13],
MAT.metal,
[Math.cos(angle) * 0.29, 0.04, Math.sin(angle) * 0.29],
[0, -angle, 0]
);
}
addMesh(
new THREE.CylinderGeometry(0.09, 0.09, 0.19, 8),
MAT.deskDark,
group,
[0, 0.05, 0]
);
}
function addWrench(parent, x, z, accent) {
const group = new THREE.Group();
group.position.set(x, 1.28, z);
group.rotation.y = 0.35;
parent.add(group);
addBox(
group,
[0.13, 0.09, 0.78],
MAT.metal,
[0, 0, 0]
);
const jaw = addMesh(
new THREE.TorusGeometry(0.20, 0.065, 4, 12, Math.PI * 1.48),
material(accent, { metalness: 0.55, roughness: 0.34 }),
group,
[0, 0, 0.40],
[Math.PI / 2, 0, 0]
);
jaw.rotation.z = 0.28;
addMesh(
new THREE.CylinderGeometry(0.09, 0.09, 0.08, 8),
MAT.deskDark,
group,
[0, 0, -0.38],
[Math.PI / 2, 0, 0]
);
}
function addMagnifier(parent, x, z, accent) {
const group = new THREE.Group();
group.position.set(x, 1.27, z);
group.rotation.y = -0.45;
parent.add(group);
addMesh(
new THREE.TorusGeometry(0.22, 0.045, 4, 16),
material(accent, { metalness: 0.45, roughness: 0.35 }),
group,
[0, 0, 0],
[Math.PI / 2, 0, 0]
);
addMesh(
new THREE.CylinderGeometry(0.045, 0.045, 0.48, 6),
MAT.deskDark,
group,
[0.36, 0, 0],
[0, 0, Math.PI / 2]
);
}
// ------------------------------------------------------------
// Four institutional stations
// ------------------------------------------------------------
const stationVisuals = [];
function buildStation(stage, index, position) {
const group = new THREE.Group();
group.position.set(position.x, 0, position.z);
group.rotation.y = Math.atan2(-position.x, -position.z);
world.add(group);
const stageColor = new THREE.Color(stage.color);
addMesh(
new THREE.CylinderGeometry(1.58, 1.77, 0.30, 8),
material(0x173044),
group,
[0, 0.19, 0]
);
const ringMaterial = material(stage.color, {
emissive: stage.color,
emissiveIntensity: 0.18
});
const ring = addMesh(
new THREE.TorusGeometry(1.37, 0.045, 4, 24),
ringMaterial,
group,
[0, 0.37, 0],
[Math.PI / 2, 0, 0]
);
// Desk.
addBox(group, [1.66, 0.16, 0.90], MAT.desk, [0, 1.08, 0]);
addBox(group, [1.52, 0.54, 0.10], MAT.deskDark, [0, 1.43, -0.40]);
[-0.67, 0.67].forEach(x => {
[-0.32, 0.32].forEach(z => {
addBox(group, [0.12, 0.86, 0.12], MAT.deskDark, [x, 0.64, z]);
});
});
// Colored station fascia.
addBox(
group,
[1.67, 0.09, 0.91],
material(stage.color, {
emissive: stage.color,
emissiveIntensity: 0.18
}),
[0, 0.99, 0]
);
// Small role markers around the pad.
for (let i = 0; i < 6; i++) {
const angle = (i / 6) * Math.PI * 2;
addMesh(
new THREE.OctahedronGeometry(0.07, 0),
material(stage.color, {
emissive: stage.color,
emissiveIntensity: 0.35
}),
group,
[Math.cos(angle) * 1.52, 0.41, Math.sin(angle) * 1.52]
);
}
// Sign.
const sign = makeLabelSprite(
stage.title.toUpperCase(),
stage.role.toUpperCase(),
stage.color,
{
number: String(index + 1).padStart(2, "0"),
width: 3.22,
height: 1.01
}
);
sign.position.set(0, 2.63, -0.22);
group.add(sign);
const statusMaterial = material(stage.color, {
emissive: stage.color,
emissiveIntensity: 0.45
});
const statusMarker = addMesh(
new THREE.OctahedronGeometry(0.13, 0),
statusMaterial,
group,
[1.35, 2.31, -0.17]
);
// Station-local lighting.
const stationLight = new THREE.PointLight(stage.color, 0.55, 5.0, 2);
stationLight.position.set(0, 2.0, 0.25);
group.add(stationLight);
// Distinct tools by institutional function.
if (index === 0) {
addClipboard(group, -0.22, 0.10, stage.color, false);
addPencil(group, 0.48, 0.10, stage.color);
} else if (index === 1) {
addStamp(group, -0.42, 0.08, stage.color);
addShield(group, 0.35, -0.03, stage.color);
} else if (index === 2) {
addGear(group, -0.37, 0.08, stage.color);
addWrench(group, 0.42, 0.08, stage.color);
} else {
addClipboard(group, -0.43, 0.10, stage.color, true);
addMagnifier(group, 0.40, 0.10, stage.color);
}
stationVisuals.push({
group,
ring,
ringMaterial,
statusMarker,
statusMaterial,
stationLight,
color: stageColor
});
}
STAGES.forEach((stage, index) => {
buildStation(stage, index, stagePositions[index]);
});
function updateStationVisuals() {
stationVisuals.forEach((visual, index) => {
const complete = index < currentStage;
const active = index === currentStage && currentStage < 4;
visual.ringMaterial.color.set(complete ? 0x66df9a : visual.color);
visual.ringMaterial.emissive.set(complete ? 0x66df9a : visual.color);
visual.ringMaterial.emissiveIntensity = complete ? 0.45 : active ? 0.95 : 0.12;
visual.statusMaterial.color.set(complete ? 0x66df9a : visual.color);
visual.statusMaterial.emissive.set(complete ? 0x66df9a : visual.color);
visual.statusMaterial.emissiveIntensity = complete ? 0.55 : active ? 0.9 : 0.18;
visual.statusMarker.rotation.y += 0.01;
visual.stationLight.intensity = complete ? 0.70 : active ? 1.05 : 0.35;
});
}
// ------------------------------------------------------------
// Low-poly project token
// ------------------------------------------------------------
const tokenRoot = new THREE.Group();
tokenRoot.position.copy(centerPosition);
scene.add(tokenRoot);
const tokenBody = new THREE.Group();
tokenRoot.add(tokenBody);
const tokenMesh = addMesh(
new THREE.DodecahedronGeometry(0.72, 0),
MAT.gold,
tokenBody,
[0, 0, 0]
);
const tokenEdges = new THREE.LineSegments(
new THREE.EdgesGeometry(tokenMesh.geometry, 18),
new THREE.LineBasicMaterial({
color: 0xfff0b3,
transparent: true,
opacity: 0.72
})
);
tokenBody.add(tokenEdges);
addMesh(
new THREE.TorusGeometry(0.89, 0.035, 4, 24),
material(0xffd166, {
emissive: 0x8d5900,
emissiveIntensity: 0.75
}),
tokenBody,
[0, -0.27, 0],
[Math.PI / 2, 0, 0]
);
const tokenLabel = makeLabelSprite(
"PROJECT TOKEN",
"CONTROLLED RELEASE",
"#ffd166",
{
width: 2.85,
height: 0.89,
background: "rgba(12, 22, 29, 0.92)"
}
);
tokenLabel.position.set(0, 1.43, 0);
tokenBody.add(tokenLabel);
const tokenLight = new THREE.PointLight(0xffc95d, 1.0, 4.5, 2);
tokenLight.position.set(0, 0.35, 0);
tokenRoot.add(tokenLight);
const reducedMotion = window.matchMedia(
"(prefers-reduced-motion: reduce)"
).matches;
function moveToken(destination, onComplete) {
const start = tokenRoot.position.clone();
const midpoint = start.clone().lerp(destination, 0.5);
midpoint.y = 2.15;
const curve = new THREE.QuadraticBezierCurve3(
start,
midpoint,
destination
);
tokenTween = {
curve,
elapsed: 0,
duration: reducedMotion
? 0.18
: THREE.MathUtils.clamp(start.distanceTo(destination) * 0.32, 0.9, 1.65),
onComplete
};
}
// ------------------------------------------------------------
// Manual camera controls — no external controls addon
// ------------------------------------------------------------
const cameraTarget = new THREE.Vector3(0, 0.72, 0);
let cameraYaw = 0.72;
let cameraPitch = 0.72;
let cameraRadius = 18.8;
let dragging = false;
let pointerX = 0;
let pointerY = 0;
function updateCamera() {
const horizontal = Math.cos(cameraPitch) * cameraRadius;
camera.position.set(
cameraTarget.x + Math.sin(cameraYaw) * horizontal,
cameraTarget.y + Math.sin(cameraPitch) * cameraRadius,
cameraTarget.z + Math.cos(cameraYaw) * horizontal
);
camera.lookAt(cameraTarget);
}
function resetCamera() {
cameraYaw = 0.72;
cameraPitch = 0.72;
cameraRadius = 18.8;
updateCamera();
}
renderer.domElement.addEventListener("pointerdown", event => {
dragging = true;
pointerX = event.clientX;
pointerY = event.clientY;
renderer.domElement.setPointerCapture(event.pointerId);
});
renderer.domElement.addEventListener("pointermove", event => {
if (!dragging) return;
const deltaX = event.clientX - pointerX;
const deltaY = event.clientY - pointerY;
cameraYaw -= deltaX * 0.006;
cameraPitch = THREE.MathUtils.clamp(
cameraPitch + deltaY * 0.005,
0.34,
1.16
);
pointerX = event.clientX;
pointerY = event.clientY;
updateCamera();
});
function stopDragging(event) {
dragging = false;
if (renderer.domElement.hasPointerCapture(event.pointerId)) {
renderer.domElement.releasePointerCapture(event.pointerId);
}
}
renderer.domElement.addEventListener("pointerup", stopDragging);
renderer.domElement.addEventListener("pointercancel", stopDragging);
renderer.domElement.addEventListener(
"wheel",
event => {
event.preventDefault();
cameraRadius = THREE.MathUtils.clamp(
cameraRadius + event.deltaY * 0.012,
11.5,
25
);
updateCamera();
},
{ passive: false }
);
renderer.domElement.addEventListener("dblclick", resetCamera);
window.addEventListener("keydown", event => {
let handled = true;
switch (event.key) {
case "ArrowLeft":
cameraYaw += 0.08;
break;
case "ArrowRight":
cameraYaw -= 0.08;
break;
case "ArrowUp":
cameraPitch = THREE.MathUtils.clamp(cameraPitch + 0.06, 0.34, 1.16);
break;
case "ArrowDown":
cameraPitch = THREE.MathUtils.clamp(cameraPitch - 0.06, 0.34, 1.16);
break;
case "+":
case "=":
cameraRadius = Math.max(11.5, cameraRadius - 0.8);
break;
case "-":
cameraRadius = Math.min(25, cameraRadius + 0.8);
break;
default:
handled = false;
}
if (handled) {
event.preventDefault();
updateCamera();
}
});
function onResize() {
const width = window.innerWidth;
const height = window.innerHeight;
camera.aspect = width / height;
camera.updateProjectionMatrix();
renderer.setSize(width, height);
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
}
window.addEventListener("resize", onResize);
// ------------------------------------------------------------
// Render loop
// ------------------------------------------------------------
const clock = new THREE.Clock();
function animate() {
const delta = Math.min(clock.getDelta(), 0.05);
if (tokenTween) {
tokenTween.elapsed += delta;
const progress = Math.min(tokenTween.elapsed / tokenTween.duration, 1);
const eased =
progress < 0.5
? 4 * progress * progress * progress
: 1 - Math.pow(-2 * progress + 2, 3) / 2;
tokenRoot.position.copy(tokenTween.curve.getPoint(eased));
if (progress >= 1) {
const completion = tokenTween.onComplete;
tokenTween = null;
if (completion) completion();
}
}
tokenBody.rotation.y += delta * 0.52;
tokenBody.position.y = Math.sin(clock.elapsedTime * 1.9) * 0.055;
centralRing.rotation.z += delta * 0.12;
stationVisuals.forEach((visual, index) => {
if (index === currentStage && currentStage < 4) {
const pulse = 0.85 + Math.sin(clock.elapsedTime * 2.6) * 0.22;
visual.ringMaterial.emissiveIntensity = pulse;
visual.statusMarker.rotation.y += delta * 1.2;
visual.statusMarker.position.y = 2.31 + Math.sin(clock.elapsedTime * 2.2) * 0.035;
}
});
renderer.render(scene, camera);
}
updateCamera();
renderUI();
updateStationVisuals();
renderer.setAnimationLoop(animate);
// Initial token movement to the proposal station.
moveToken(stagePositions[0].clone(), () => {
busy = false;
renderUI();
showToast("Proposal station active. The token is ready for submission.");
});
requestAnimationFrame(() => {
document.querySelector("#loading").classList.add("hidden");
});
</script>
</body>
</html>
```