*, *::before, *::after {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

body {
	background: linear-gradient(
		160deg,
		#000305 0%,
		#00080f 20%,
		#010e1c 40%,
		#011428 60%,
		#000a18 80%,
		#000205 100%
	);
	color: #fff;
	font-family: 'Dosis', system-ui, sans-serif;
	font-size: 13px;
	line-height: 24px;
	overscroll-behavior: none;
}

/* ── Scene wrapper (always in DOM, fades in after load) ─────── */
#scene-wrap {
	position: fixed;
	inset: 0;
	opacity: 0;
	pointer-events: none;
}

#scene-wrap.ready {
	/* pointer-events intentionally left on none — canvas uses body-level listeners */
}

canvas {
	display: block;
	width: 100% !important;
	height: 100% !important;
	pointer-events: none;
}

/* ── Loading Screen ─────────────────────────────────────────── */
#loading-screen {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(
		160deg,
		#000305 0%,
		#00080f 20%,
		#010e1c 40%,
		#011428 60%,
		#000a18 80%,
		#000205 100%
	);
	pointer-events: none;
}

#loading-stage {
	position: relative;
	width: 300px;
	height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
}

#loading-body {
	position: relative;
	z-index: 2;
	width: 260px;
	height: 260px;
	object-fit: contain;
	opacity: 0;
}

.loading-cube {
	position: absolute;
	object-fit: contain;
	opacity: 0;
	will-change: transform, opacity;
}

/* Individual cube sizes */
#cube-1 { width: 57px; height: 57px; }
#cube-2 { width: 67px; height: 67px; }
#cube-3 { width: 43px; height: 43px; }
#cube-4 { width: 49px; height: 49px; }

/* ── Progress bar ───────────────────────────────────────────── */
#loading-bar-wrap {
	margin-top: 16px;
	width: 220px;
	height: 3px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
	opacity: 0;
}

#loading-bar {
	height: 100%;
	width: 0%;
	border-radius: 2px;
	background: linear-gradient(
		90deg,
		#000305,
		#012a50,
		#9dd8f5,
		#d6f0ff,
		#9dd8f5,
		#012a50,
		#000305
	);
	background-size: 300% 100%;
	animation: barShimmer 2.2s linear infinite;
}

@keyframes barShimmer {
	0%   { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}

/* ── Navigation Bar ─────────────────────────────────────────── */
#main-nav {
	position: fixed;
	top: 16px;
	left: 50%;
	z-index: 200;
	width: max-content;
	border-radius: 100px;
	background: rgba(255, 255, 255, 0.04);
	backdrop-filter: blur(3px) saturate(160%);
	-webkit-backdrop-filter: blur(3px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.09);
	box-shadow: 0 4px 40px rgba(0, 8, 20, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	overflow: visible;
	opacity: 0;
	pointer-events: none;
}

#main-nav.nav-ready {
	pointer-events: auto;
}

.nav-inner {
	display: flex;
	align-items: center;
	gap: 40px;
	padding: 0 28px;
	height: 46px;
}

.nav-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.nav-logo img {
	height: 64px;
	width: auto;
	display: block;
	position: relative;
	z-index: 1;
	opacity: 0;
	transform: translateY(16px);
	filter: drop-shadow(0 4px 18px rgba(120, 200, 255, 0.245)) drop-shadow(0 2px 6px rgba(0, 10, 30, 0.7));
}

.nav-links {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 40px;
}

.nav-links a {
	display: inline-block;
	color: rgba(180, 210, 240, 0.8);
	text-decoration: none;
	font-family: 'Dosis', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.05em;
	transition: color 0.2s ease, transform 0.4s , text-shadow 0.4s;
}

.nav-links a:hover {
	/* color is handled by GSAP after the flip animation completes */
}

.nav-links a.active {
	color: #b8e8ff !important;
	transform: scale(1.1) translateY(4px) !important;
	text-shadow: 0 0 18px rgba(120, 200, 255, 0.6), 0 0 6px rgba(180, 230, 255, 0.3);
}

.nav-links a .letter {
	display: inline-block;
	will-change: transform;
}

/* ── The Stack Section ──────────────────────────────────────── */
#stack-section {
	position: fixed;
	top: 80px;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10;
	padding: 64px 140px 0px 140px;
	display: flex;
	flex-direction: column;
	opacity: 0;
	pointer-events: none;
	isolation: isolate;
}

/* ── Tab Navigation ─────────────────────────────────────────── */
.stack-tabs-nav {
	display: flex;
	justify-content: center;
	gap: 36px;
	margin-bottom: 0px;
}

.stack-tab-btn {
	position: relative;
	padding: 6px 0 8px;
	background: none;
	border: none;
	color: rgba(180, 210, 240, 0.35);
	font-family: 'Dosis', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.35s ease;
}

.stack-tab-btn::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, #38bdf8, #7dd3fc, transparent);
	transform: scaleX(0);
	transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.stack-tab-btn.active {
	color: #b8e8ff;
}

.stack-tab-btn.active::after {
	transform: scaleX(1);
}

.stack-tab-btn:hover:not(.active) {
	color: rgba(180, 210, 240, 0.7);
}

/* ── Panels Wrapper ─────────────────────────────────────────── */
.stack-panels-wrap {
	flex: 1;
	position: relative;
	/*overflow: hidden;*/
}

/* ── Individual Panel ───────────────────────────────────────── */
.stack-panel {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	gap: 60px;
	pointer-events: none;
}

.stack-panel.active {
	pointer-events: auto;
}

/* Hide all animatable children by default; GSAP reveals them */
.stack-panel .stack-img,
.stack-panel .stack-label,
.stack-panel .stack-slogan,
.stack-panel .stack-desc,
.stack-panel .badge {
	opacity: 0;
}

/* ── Left (Content) ─────────────────────────────────────────── */
.stack-panel-left {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ── Right (Image) ──────────────────────────────────────────── */
.stack-panel-right {
	flex: 0 0 44%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.stack-img {
	width: 100%;
	max-height: 420px;
	object-fit: contain;
	filter: drop-shadow(0 10px 50px rgba(30, 120, 220, 0.22)) drop-shadow(0 2px 10px rgba(0, 8, 30, 0.55));
}

.stack-label {
	display: inline-block;
	align-self: flex-start;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: #22d3ee;
	/* Transparent background that covers exactly the label's own box, blocking canvas
	   GPU compositing bleed without any visible fill */
	background: transparent;
	/* A 1px inset shadow trick that covers the element's own box with the page bg:
	   this fills the GPU composited layer opaquely so snowflakes can't show through */
	-webkit-text-fill-color: #22d3ee;
}

.stack-label::before {
	content: '—\00A0';
	color: #22d3ee;
	-webkit-text-fill-color: #22d3ee;
}

.stack-slogan {
	font-size: clamp(26px, 3.2vw, 46px);
	font-weight: 700;
	line-height: 1.15;
	color: #eaf5ff;
	margin: 0;
	letter-spacing: -0.01em;
}

.stack-desc {
	font-size: 15px;
	font-weight: 300;
	line-height: 1.85;
	color: rgba(180, 210, 240, 0.62);
	max-width: 500px;
	margin: 0;

    background: rgba(38, 144, 158, 0.015);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 12px;
    border-radius: 10px;
}

/* ── Badges ─────────────────────────────────────────────────── */
.stack-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 6px;
}

.badge {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 14px;
	border-radius: 100px;
	/* Solid glass pill — avoiding backdrop-filter which conflicts with GSAP opacity animation */
	border: 1px solid rgba(120, 200, 255, 0.18);
	background: rgba(29, 125, 170, 0.14);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.05),
		0 2px 10px rgba(0, 8, 30, 0.3);
	color: rgba(180, 210, 240, 0.72);
	font-family: 'Dosis', system-ui, sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.04em;
	cursor: default;
	transition: color 0.5s ease, border-color 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
}

.badge:hover {
	color: #22d3ee;
	border-color: rgba(34, 211, 238, 0.45);
	background: rgba(29, 125, 170, 0.14);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.08),
		0 2px 18px rgba(34, 211, 238, 0.12);
}

.badge i {
	font-size: 14px;
	color: rgba(180, 210, 240, 0.8);
	transition: color 0.5s ease;
}

.badge:hover i {
	color: #22d3ee;
}

.badge-icon {
	font-size: 10px;
	color: rgba(180, 210, 240, 0.5);
	transition: color 0.5s ease;
}

.badge:hover .badge-icon {
	color: #22d3ee;
}

/* ══════════════════════════════════════════════════════════════
   ── The Work Section
   ══════════════════════════════════════════════════════════════ */
#work-section {
	position: fixed;
	top: 80px;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10;
	padding: 40px 60px 40px 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	opacity: 0;
	pointer-events: none;
	isolation: isolate;
}

/* ── Left: Scrollable project list ─────────────────────────── */
#work-list-wrap {
	position: relative;
	
	padding-right: 10px;
	width: 210px;
	flex-shrink: 0;
	height: calc(100vh - 180px);
	max-height: 450px;
	display: flex;
	gap: 6px;
}

#work-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	overflow-y: scroll;
	padding-right: 10px;
	padding-left: 30px;
	flex: 1;
	height: 100%;
	/* hide native scrollbar in all browsers */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

#work-list::-webkit-scrollbar { display: none; }

/* custom scrollbar track */
#work-scrollbar-track {
	width: 1px;
	height: 100%;
	border-radius: 2px;
	background: rgba(78, 159, 173, 0.06);
	position: relative;
	flex-shrink: 0;
}

/* custom scrollbar thumb */
#work-scrollbar-thumb {
	width: 100%;
	border-radius: 2px;
	background: rgba(78, 159, 173, 0.19);
	position: absolute;
	top: 0;
	transition: background 0.2s ease;
}

#work-scrollbar-track:hover #work-scrollbar-thumb {
	background: rgba(120, 200, 255, 0.6);
}

.work-list-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: 10px;
	cursor: pointer;
	border: 1px solid transparent;
	color: rgba(180, 210, 240, 0.45);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.03em;
	transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
	user-select: none;
}

.work-list-item:hover {
	color: rgba(180, 210, 240, 0.8);
	background: rgba(120, 200, 255, 0.05);
	border-color: rgba(120, 200, 255, 0.1);
}

.work-list-item.active {
	color: #b8e8ff;
	background: rgba(34, 211, 238, 0.07);
	border-color: rgba(34, 211, 238, 0.22);
}

.work-item-icon {
	font-size: 11px;
	color: #22d3ee;
	flex-shrink: 0;
	opacity: 0.7;
	transition: opacity 0.3s ease;
}

.work-list-item.active .work-item-icon,
.work-list-item:hover .work-item-icon {
	opacity: 1;
}

/* ── Center: Project card ───────────────────────────────────── */
#work-card-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
	width: 400px;
	height: calc(100vh - 220px);
}

.work-card {
	position: absolute;
	width: 100%;
	display: flex;
	flex-direction: column;
	border-radius: 18px;
	border: 1px solid rgba(120, 200, 255, 0.14);
	background: rgba(1, 13, 36, 0.017);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 8px 48px rgba(0, 8, 30, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.005);
	/*overflow: hidden;*/
	/* hidden by default — JS/GSAP controls opacity & y */
	opacity: 0;
	pointer-events: none;
}

.work-card.active {
	pointer-events: auto;
}

.work-card-img-wrap {
	position: relative;
	top:-30px;
	width: 300px;
	height: 200px;
	border-radius: 15px;
	box-shadow: 0px 0px 20px rgba(0,0,0,0.5);
	margin:auto;
	margin-top:15px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.work-card-img {
	width: 100%;
	height: 100%;
	margin: auto;
	object-fit: cover;
	display: block;
	opacity:0.8;
	border-radius: 15px;
	transition: transform 0.6s ease;
}

.work-card:hover .work-card-img {
	transform: scale(1.04);
}

.work-card-body {
	padding: 20px 22px 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.work-card-name {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #eaf5ff;
	letter-spacing: -0.01em;
}

.work-card-desc {
	margin: 0;
	font-size: 13px;
	font-weight: 300;
	line-height: 1.75;
	color: rgba(180, 210, 240, 0.6);
}

.work-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 4px;
}

.work-card-link {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-decoration: none;
	color: #22d3ee;
	transition: color 0.25s ease;
}

.work-card-link:hover {
	color: #b8e8ff;
}

.work-card-link.unavailable {
	color: rgba(180, 210, 240, 0.35);
	cursor: default;
	font-style: italic;
}

/* ── Right: Auto-scrolling skills ticker ────────────────────── */
#work-skills-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
	position: relative;
	width: 170px;
	flex-shrink: 0;
	height: calc(100vh - 180px);
	max-height: 450px;
	/* fade top and bottom */
	mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}

.work-skills-ticker {
	/* layout controlled entirely by GSAP — per-badge absolute positioning */
}

.work-skill-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 100px;
	border: 1px solid rgba(120, 200, 255, 0.16);
	background: rgba(8, 28, 60, 0.52);
	color: rgba(180, 210, 240, 0.65);
	font-family: 'Dosis', system-ui, sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.04em;
	white-space: nowrap;
	flex-shrink: 0;
}

.work-skill-badge i {
	font-size: 14px;
	color: rgba(180, 210, 240, 0.75);
}

/* ══════════════════════════════════════════════════════════════
   ── Gallery Modal
   ══════════════════════════════════════════════════════════════ */

/* ── Gallery trigger button on card ────────────────────────── */
.work-card-gallery-btn {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 7px;
	background: rgba(120, 200, 255, 0.06);
	border: 1px solid rgba(120, 200, 255, 0.14);
	color: rgba(180, 210, 240, 0.55);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.work-card-gallery-btn:hover {
	background: rgba(34, 211, 238, 0.13);
	border-color: rgba(34, 211, 238, 0.42);
	color: #22d3ee;
}

/* ── Modal overlay ──────────────────────────────────────────── */
#gallery-modal {
	position: fixed;
	inset: 0;
	z-index: 500;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
}

#gallery-modal.open {
	pointer-events: auto;
}

#gallery-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 4, 16, 0.0);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

/* ── Glass container ────────────────────────────────────────── */
#gallery-container {
	position: relative;
	z-index: 1;
	width: min(820px, 90vw);
	background: rgba(56, 56, 56, 0);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 1px solid rgba(120, 200, 255, 0.13);
	border-radius: 22px;
	box-shadow:
		0 24px 90px rgba(0, 6, 24, 0.75),
		inset 0 1px 0 rgba(255, 255, 255, 0.06),
		inset 0 -1px 0 rgba(0, 0, 0, 0.2);
	padding: 28px 28px 22px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ── Header ─────────────────────────────────────────────────── */
#gallery-header {
	display: flex;
	width: 0;
	min-width: 83%;
	max-width: 83%;
	margin: 0 auto;
	align-items: center;
	justify-content: space-between;
}

#gallery-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #eaf5ff;
	letter-spacing: -0.01em;
}

#gallery-counter {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	color: rgba(120, 180, 220, 0.45);
}

/* ── Close button ───────────────────────────────────────────── */
#gallery-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(120, 200, 255, 0.06);
	border: 1px solid rgba(120, 200, 255, 0.14);
	color: rgba(180, 210, 240, 0.6);
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#gallery-close:hover {
	background: rgba(34, 211, 238, 0.12);
	border-color: rgba(34, 211, 238, 0.4);
	color: #22d3ee;
}

/* ── Stage (arrows + image) ─────────────────────────────────── */
#gallery-stage {
	display: flex;
	align-items: center;
	gap: 14px;
}

.gallery-nav-btn {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border-radius: 11px;
	background: rgba(120, 200, 255, 0.06);
	border: 1px solid rgba(120, 200, 255, 0.13);
	color: rgba(180, 210, 240, 0.6);
	font-size: 26px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.gallery-nav-btn:hover:not(:disabled) {
	background: rgba(34, 211, 238, 0.12);
	border-color: rgba(34, 211, 238, 0.38);
	color: #22d3ee;
}

.gallery-nav-btn:disabled {
	opacity: 0.18;
	cursor: default;
}

/* ── Image ──────────────────────────────────────────────────── */
#gallery-img-wrap {
	flex: 1;
	border-radius: 13px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: rgba(4, 12, 30, 0.6);
	border: 1px solid rgba(120, 200, 255, 0.08);
	box-shadow: 0 6px 30px rgba(0, 6, 24, 0.4);
}

#gallery-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── Dot indicators ─────────────────────────────────────────── */
#gallery-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.gallery-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(120, 200, 255, 0.2);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background 0.25s ease, transform 0.25s ease;
}

.gallery-dot.active {
	background: #22d3ee;
	transform: scale(1.4);
}

.gallery-dot:hover:not(.active) {
	background: rgba(120, 200, 255, 0.45);
}

/* ═══════════════════════════════════════════════════════════════
   THE JOURNEY SECTION
   ═══════════════════════════════════════════════════════════════ */

#journey-section {
	position: fixed;
	top: 80px;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10;
	padding: 40px 80px;
	display: flex;
	justify-content: center;
	gap: 32px;
	opacity: 0;
	pointer-events: none;
	isolation: isolate;
}

/* ── Left column ────────────────────────────────────────────── */
#journey-left {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	max-width: 680px;
}

/* ── Header card ────────────────────────────────────────────── */
#journey-header {
	flex-shrink: 0;
	padding: 16px 20px;
	margin-bottom: 16px;
	background: rgba(255, 255, 255, 0.028);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 1px solid rgba(78, 159, 173, 0.13);
	border-radius: 14px;
}

#journey-name {
	font-size: 26px;
	font-weight: 700;
	color: #e2f4f8;
	letter-spacing: -0.02em;
	margin: 0 0 7px;
}

#journey-slogan {
	font-size: 11px;
	font-weight: 700;
	color: rgba(78, 159, 173, 0.85);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0 0 10px;
}

#journey-desc {
	font-size: 12.5px;
	color: rgba(180, 220, 230, 0.55);
	line-height: 1.7;
	margin: 0;
}

/* ── Scroll stage outer: flex container holding path panel + feed ── */
#jn-stage-outer {
	flex: 1 1 0;
	min-height: 0;
	display: flex;
	position: relative;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.018);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 1px solid rgba(78, 159, 173, 0.11);
	border-radius: 18px;
}

/* ── Left path panel: holds scroll-capture + visual canvas ──────── */
#jn-path-panel {
	flex: 0 0 52%;
	position: relative;
	overflow: hidden;
}

/* ── Vertical divider between path panel and feed ─────────── */
#jn-divider {
	flex: 0 0 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	border-left:  1px solid rgba(78, 159, 173, 0.08);
	border-right: 1px solid rgba(78, 159, 173, 0.08);
	background: linear-gradient(
		to bottom,
		transparent 0%,
		rgba(34, 211, 238, 0.03) 40%,
		rgba(34, 211, 238, 0.03) 60%,
		transparent 100%
	);
	transform-origin: center center;
	transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1),
	            border-color 0.4s ease,
	            background 0.4s ease;
	cursor: default;
	z-index: 2;
}

#jn-divider:hover {
	transform: rotate(90deg);
	border-color: rgba(34, 211, 238, 0.18);
	background: linear-gradient(
		to bottom,
		transparent 0%,
		rgba(34, 211, 238, 0.07) 40%,
		rgba(34, 211, 238, 0.07) 60%,
		transparent 100%
	);
}

#jn-divider-text {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(78, 159, 173, 0.68);
	user-select: none;
	white-space: nowrap;
	pointer-events: none;
}

#jn-divider-text strong {
	font-weight: 800;
	color: rgba(34, 211, 238, 0.65);
	animation: jn-freelance-glow 5s ease-in-out infinite;
	text-shadow: 0 0 8px rgba(34, 211, 238, 0.2);
}

@keyframes jn-freelance-glow {
	0%, 100% {
		color: rgba(34, 211, 238, 0.5);
		text-shadow: 0 0 6px rgba(34, 211, 238, 0.15);
	}
	50% {
		color: rgba(34, 211, 238, 1);
		text-shadow: 0 0 12px rgba(34, 211, 238, 0.8), 0 0 24px rgba(34, 211, 238, 0.35);
	}
}

/* ── Scroller: transparent scroll-capture surface (z above canvas) ── */
#jn-scroller {
	position: absolute;
	inset: 0;
	overflow-y: scroll;
	z-index: 5;
	scrollbar-width: none;
	background: transparent;
}
#jn-scroller::-webkit-scrollbar { display: none; }

/* Spacer inside scroller — height set by JS to make area scrollable */
#jn-spacer {
	width: 100%;
}

/* ── Canvas: stationary visual overlay behind the scroll surface ──── */
#jn-canvas {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

/* ── "Scroll to Explore" CTA ────────────────────────────────── */
#jn-cta {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	z-index: 4;
	pointer-events: none;
	will-change: opacity;
}

#jn-cta-text {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(78, 159, 173, 0.72);
}

#jn-cta-arrow {
	animation: jn-bounce 1.6s ease-in-out infinite;
}

@keyframes jn-bounce {
	0%, 100% { transform: translateY(0); }
	50%       { transform: translateY(5px); }
}

/* ── SVG path fills the full canvas ─────────────────────────── */
#jn-path-svg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
}

/* ── Actor: centered via xPercent/yPercent -50 in GSAP ──────── */
#jn-actor {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 3;
	will-change: transform;
	pointer-events: none;
}

/* Particle trail dots */
.jn-trail {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: rgba(34, 211, 238, 0.55);
	transform: translate(-50%, -50%) scale(0);
	animation: jn-trail-pulse 1.2s ease-out infinite;
	animation-delay: calc(var(--d) * 0.18s);
	pointer-events: none;
}
#jn-actor.jn-stopped .jn-trail { animation-play-state: paused; }

@keyframes jn-trail-pulse {
	0%   { transform: translate(-50%, -50%) scale(1);   opacity: 0.6; }
	100% { transform: translate(-50%, -50%) scale(2.8); opacity: 0; }
}

/* ── Milestone markers: HTML divs, always perfect circles ────── */
.jn-milestone-wrap {
	position: absolute;
	width: 0;
	height: 0;
	pointer-events: none;
	z-index: 2;
}

.jn-dot {
	position: absolute;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(34, 211, 238, 0);
	transform: translate(-50%, -50%);
	will-change: background;
}

.jn-ring {
	position: absolute;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 1.5px solid rgba(34, 211, 238, 0);
	transform: translate(-50%, -50%);
	will-change: border-color;
}

/* ── Small milestone labels (on left canvas, appear at each arrival) ─ */
.jn-label {
	position: absolute;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(34, 211, 238, 0.68);
	opacity: 0;
	pointer-events: none;
	z-index: 2;
	white-space: nowrap;
	will-change: opacity, transform;
	transition: color 0.18s ease;
}
.jn-label.jn-lbl-hovered {
	color: #22d3ee;
}

/* ── Right feed panel: scrollable detail log ────────────────── */
#jn-feed {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 14px 14px 14px 16px;
	scrollbar-width: none;
	mask-image: linear-gradient(to bottom, transparent 0%, black 9%, black 100%);
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 9%, black 100%);
}
#jn-feed::-webkit-scrollbar { display: none; }

/* Feed entry */
.jf-entry {
	opacity: 0;
	will-change: opacity, transform;
	padding-bottom: 0;
	cursor: default;
	text-align: center;
}
.jf-entry:hover .jf-etitle {
	color: rgba(34, 211, 238, 0.9);
	transition: color 0.18s;
}

.jf-etitle {
	font-size: 11.5px;
	font-weight: 700;
	color: #e2f4f8;
	margin-bottom: 5px;
	letter-spacing: -0.01em;
	transition: color 0.18s ease;
}

.jf-detail {
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 3px;
}

.jf-line {
	font-size: 10.5px;
	color: rgba(180, 220, 230, 0.52);
	line-height: 1.5;
}

.jf-role {
	color: rgba(34, 211, 238, 0.78);
	font-weight: 600;
}

.jf-period {
	color: rgba(78, 159, 173, 0.65);
	font-weight: 600;
	font-size: 10px;
	letter-spacing: 0.04em;
}

.jf-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 6px;
}

.jf-badges span {
	font-size: 9px;
	font-weight: 600;
	color: rgba(34, 211, 238, 0.72);
	background: rgba(34, 211, 238, 0.07);
	border: 1px solid rgba(34, 211, 238, 0.18);
	border-radius: 3px;
	padding: 1px 5px;
}

/* Separator between feed entries */
.jf-sep {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 0;
	opacity: 0;
	will-change: opacity;
}

.jf-sep-line {
	flex: 1;
	height: 1px;
	background: rgba(78, 159, 173, 0.18);
	display: block;
	transform: scaleX(0);
}

/* Left line grows from the dot outward to the left */
.jf-sep > .jf-sep-line:first-child {
	transform-origin: right;
}

/* Right line grows from the dot outward to the right */
.jf-sep > .jf-sep-line:last-child {
	transform-origin: left;
}

.jf-sep-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(34, 211, 238, 0.35);
	flex-shrink: 0;
	display: block;
	transform: scale(0);
}

/* ── Right column: sticky profile card ─────────────────────── */
#journey-right {
	flex: 0 0 280px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding-top: 2px;
}

#journey-card {
	background: rgba(255, 255, 255, 0.022);
	border: 1px solid rgba(78, 159, 173, 0.11);
	border-radius: 18px;
	padding: 24px 18px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

#journey-avatar-wrap {
	width: 92px;
	height: 92px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid rgba(78, 159, 173, 0.28);
	box-shadow: 0 0 28px rgba(34, 211, 238, 0.1);
	flex-shrink: 0;
}

#journey-avatar {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#journey-card-name {
	font-size: 14px;
	font-weight: 700;
	color: #e2f4f8;
	letter-spacing: -0.01em;
	text-align: center;
	margin-top: 2px;
}

#journey-card-title {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: rgba(78, 159, 173, 0.72);
	text-align: center;
}

#journey-card-body {
	font-size: 11.5px;
	color: rgba(180, 220, 230, 0.5);
	line-height: 1.68;
	text-align: center;
	margin: 0;
}

/* ── Badges ─────────────────────────────────────────────────── */
#journey-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin-top: 6px;
}

.journey-badge {
	font-size: 10px;
	font-weight: 500;
	text-transform: uppercase;
	padding: 2px 12px;
	border-radius: 20px;
	background: rgba(78, 159, 173, 0.09);
	border: 1px solid rgba(78, 159, 173, 0.2);
	color: rgba(78, 159, 173, 0.88);
	cursor: default;
	white-space: nowrap;
	text-decoration: none;
}

/* ── Resume download card ────────────────────────────────────── */
#journey-resume-card {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
	padding: 11px 14px;
	background: rgba(255, 255, 255, 0.022);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 1px solid rgba(78, 159, 173, 0.11);
	border-radius: 12px;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

#journey-resume-card:hover {
	background: rgba(34, 211, 238, 0.09);
	border-color: rgba(34, 211, 238, 0.38);
	transform: translateY(-1px);
}

#journey-resume-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

#journey-resume-label {
	font-size: 12px;
	font-weight: 600;
	color: #e2f4f8;
	letter-spacing: -0.01em;
}

#journey-resume-sub {
	font-size: 10px;
	color: rgba(78, 159, 173, 0.65);
	letter-spacing: 0.04em;
}

#journey-resume-arrow {
	flex-shrink: 0;
	opacity: 0.55;
	transition: opacity 0.22s ease, transform 0.22s ease;
}

#journey-resume-card:hover #journey-resume-arrow {
	opacity: 1;
	transform: translateY(2px);
}

/* ── Hire CTA card ───────────────────────────────────────────── */
@keyframes jt-hire-glow {
	0%, 100% {
		box-shadow: 0 0 18px rgba(34, 211, 238, 0.08), inset 0 0 0 1px rgba(78, 159, 173, 0.13);
		border-color: rgba(78, 159, 173, 0.16);
	}
	50% {
		box-shadow: 0 0 36px rgba(34, 211, 238, 0.22), inset 0 0 0 1px rgba(34, 211, 238, 0.28);
		border-color: rgba(34, 211, 238, 0.46);
	}
}

@keyframes jt-hire-float {
	0%, 100% { transform: translateY(0px) rotate(-1deg); }
	50%       { transform: translateY(-9px) rotate(1deg); }
}

#journey-hire-card {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	margin-top: 38px;
	padding: 12px 10px 12px 14px;
	background: rgba(255, 255, 255, 0.018);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(78, 159, 173, 0.16);
	border-radius: 18px;
	text-decoration: none;
	cursor: pointer;
	position: relative;
	animation: jt-hire-glow 3s ease-in-out infinite;
	transition: transform 0.28s ease, background 0.28s ease;
}

#journey-hire-card:hover {
	transform: translateY(-3px) scale(1.012);
	background: rgba(34, 211, 238, 0.06);
}

#journey-hire-char {
	position:absolute;
	left: 70%;
	width: 120px;
	height: 120px;
	object-fit: contain;
	flex-shrink: 0;
	order: 2;  /* image on the right */
	filter: drop-shadow(0 4px 14px rgba(34, 211, 238, 0.35));
	animation: jt-hire-float 3.6s ease-in-out infinite;
	pointer-events: none;
}

#journey-hire-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
	flex: 1;
	order: 1;  /* text on the left */
	text-align: left;
}

#journey-hire-heading {
	font-size: 12.5px;
	font-weight: 700;
	color: #e2f4f8;
	letter-spacing: -0.01em;
}

#journey-hire-sub {
	font-size: 10.5px;
	color: rgba(78, 159, 173, 0.65);
	line-height: 1.45;
}

#journey-hire-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 6px;
	padding: 4px 12px;
	background: rgba(34, 211, 238, 0.1);
	border: 1px solid rgba(34, 211, 238, 0.32);
	border-radius: 30px;
	font-size: 10.5px;
	font-weight: 500;
	color: #22d3ee;
	letter-spacing: 0.04em;
	transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

#journey-hire-card:hover #journey-hire-btn {
	background: rgba(34, 211, 238, 0.18);
	border-color: rgba(34, 211, 238, 0.60);
	color: #fff;
}
