:root {
	--bg-dark: #000000;
	--text-light: #f5f5f7;
	--text-dark: #1d1d1f;
	--secondary-text-light: #86868b;
	--secondary-text-dark: #86868b;
	--accent-color: #2997ff;
	--card-bg: rgba(255, 255, 255, 0.05);
	--card-border: rgba(255, 255, 255, 0.1);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', 'Noto Serif SC', -apple-system, BlinkMacSystemFont, sans-serif;
	background-color: var(--bg-dark);
	color: var(--text-light);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

body.single-page {
	overflow-y: auto;
	overflow-x: hidden;
	min-height: 100vh;
	width: 100%;
}

a {
	text-decoration: none;
	color: inherit;
}

button {
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	color: inherit;
}

/* Language Toggle Logic */
.lang-zh .lang-en,
.lang-en .lang-zh {
	display: none !important;
}

/* Header */
.main-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 1.2rem 4rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 100;
	background: rgba(10, 10, 10, 0.75);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
}

.header-logo {
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: #ffffff;
}

.header-logo a {
	color: #ffffff;
	text-decoration: none;
}

.lang-btn {
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	color: rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 0.35rem 0.9rem;
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.lang-btn:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.25);
	color: #ffffff;
}

/* Main Hub Container (Fully Fluid & Auto-Adapting) */
.hub-container {
	position: relative;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	padding: clamp(4.5rem, 8vh, 6rem) 1.5rem clamp(1rem, 2.5vh, 2rem) 1.5rem;
	box-sizing: border-box;
}

/* Background Orb */
.hero-bg-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 0;
}

.hero-bg-orb {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 65vw;
	height: 65vw;
	background: radial-gradient(circle, rgba(90, 41, 255, 0.25) 0%, rgba(41, 151, 255, 0.15) 35%, rgba(10, 10, 40, 0.4) 60%, transparent 80%);
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.8;
	pointer-events: none;
}

/* Deep Space Stars */
.stars-container {
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	z-index: 1;
	pointer-events: none;
	will-change: transform;
}

#stars, #stars2, #stars3, #stars4, #stars5 {
	position: absolute;
	top: 0;
	left: 0;
}

@keyframes twinkle {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.1; }
}

@keyframes twinkleFast {
	0%, 100% { opacity: 1; }
	50% { opacity: 0; }
}

#stars { animation: twinkle 4s infinite ease-in-out; }
#stars2 { animation: twinkle 6s infinite ease-in-out 1s; }
#stars3 { animation: twinkle 8s infinite ease-in-out 2s; }
#stars4 { animation: twinkleFast 2.5s infinite ease-in-out 0.5s; }
#stars5 { animation: twinkleFast 3s infinite ease-in-out 1.5s; }

.hero-bg-overlay {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%);
	pointer-events: none;
}

/* Center Content */
.hub-content {
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(1.4rem, 3vh, 2.4rem);
	margin: auto 0;
	width: 100%;
	max-width: 1240px;
}

.hero-lead {
	display: grid;
	grid-template-columns: minmax(300px, 0.85fr) minmax(520px, 1.15fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 6rem);
	width: 100%;
}

.hero-copy {
	min-width: 0;
}

.hero-eyebrow {
	margin-bottom: clamp(0.8rem, 1.8vh, 1.25rem);
	color: rgba(255, 255, 255, 0.48);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.22em;
}

.hero-title {
	font-size: clamp(3rem, 5.6vw, 5.6rem);
	line-height: 0.92;
	font-weight: 800;
	letter-spacing: -0.055em;
	display: flex;
	flex-direction: column;
}

.title-line {
	display: block;
}

.hero-subtitle {
	font-size: clamp(0.78rem, 1.35vw, 1rem);
	font-weight: 300;
	color: var(--secondary-text-light);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin-top: 1.5rem;
}

.hero-intro {
	max-width: 430px;
	margin-top: 1.15rem;
	color: rgba(255, 255, 255, 0.54);
	font-size: clamp(0.78rem, 1vw, 0.9rem);
	line-height: 1.8;
}

/* Nav Cards */
.nav-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
	perspective: 1000px;
	width: 100%;
}

.nav-card {
	position: relative;
	width: 100%;
	min-height: 104px;
	padding: 1.25rem 1.35rem;
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	border-radius: clamp(16px, 2vh, 24px);
	text-align: left;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	transition: border-color 0.4s ease;
	overflow: hidden;
	transform-style: preserve-3d;
	box-sizing: border-box;
}

.nav-card:hover {
	border-color: rgba(255,255,255,0.3);
}

.card-glow {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 150px;
	height: 150px;
	background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
	transform: translate(-50%, -50%);
	border-radius: 50%;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.nav-card:hover .card-glow {
	opacity: 1;
}

.nav-card-title {
	padding-right: 1.2rem;
	font-size: clamp(0.92rem, 1.25vw, 1.15rem);
	font-weight: 600;
	margin-bottom: 0.3rem;
	transform: translateZ(30px);
}

.nav-card-desc {
	font-size: clamp(0.78rem, 1.5vh, 0.9rem);
	color: var(--secondary-text-light);
	font-weight: 400;
	transform: translateZ(20px);
}

.nav-card-arrow {
	position: absolute;
	top: 1.2rem;
	right: 1.2rem;
	font-size: 1.1rem;
	opacity: 0;
	transform: translate(-10px, 10px);
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-card:hover .nav-card-arrow {
	opacity: 1;
	transform: translate(0, 0);
}

/* Hub Footer */
.hub-footer {
	position: relative;
	width: 100%;
	max-width: 1200px;
	padding: 1rem 1.5rem 0.5rem 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 10;
	box-sizing: border-box;
}

.social-links {
	display: flex;
	gap: 1.8rem;
}

.social-btn {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0.6;
	transition: opacity 0.3s ease;
	position: relative;
}

.social-btn:hover {
	opacity: 1;
}

.footer-copyright {
	color: var(--secondary-text-light);
	font-size: 0.8rem;
	letter-spacing: 0.05em;
}

@media (max-width: 980px) {
	.hub-container {
		padding-top: 6rem;
	}
	.hero-lead {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		text-align: center;
	}
	.hero-copy {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.nav-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Mobile & Small Height Adjustments */
@media (max-width: 768px) {
	.main-header {
		padding: 1rem 1.25rem;
	}
	.nav-cards {
		grid-template-columns: 1fr;
		gap: 0.6rem;
	}
	.nav-card {
		width: 100%;
		min-height: 86px;
		padding: clamp(0.85rem, 1.6vh, 1.2rem) clamp(1.2rem, 3vw, 1.5rem);
		border-radius: 16px;
	}
	.nav-card-title {
		font-size: clamp(1.1rem, 2vh, 1.3rem);
		margin-bottom: 0.2rem;
	}
	.nav-card-desc {
		font-size: clamp(0.78rem, 1.4vh, 0.85rem);
	}
	.nav-card-arrow {
		top: 1rem;
		right: 1.2rem;
		font-size: 1rem;
	}
	.hub-footer {
		flex-direction: column;
		align-items: center;
		gap: 0.6rem;
		padding: 0.75rem 1rem 0.5rem 1rem;
		mix-blend-mode: normal;
	}
	.social-links {
		gap: 1.2rem;
		flex-wrap: wrap;
		justify-content: center;
	}
	.hero-bg-orb {
		width: 120vw;
		height: 120vw;
	}
	.hero-title {
		font-size: clamp(2.7rem, 14vw, 4.5rem);
	}
	.hero-intro {
		max-width: 34rem;
	}
}

/* ==========================================================================
   HOME / PERSONAL ATLAS
   ========================================================================== */
body.single-page {
	background:
		radial-gradient(circle at 72% 28%, rgba(28, 78, 126, 0.16), transparent 32rem),
		#030507;
}

.single-page .main-header {
	padding: 0.95rem clamp(1.25rem, 4vw, 4rem);
	background: linear-gradient(to bottom, rgba(3, 5, 7, 0.88), rgba(3, 5, 7, 0.35));
	border-bottom-color: rgba(255, 255, 255, 0.055);
}

.header-nav,
.header-site-links {
	display: flex;
	align-items: center;
}

.header-nav {
	gap: clamp(1rem, 3vw, 2.6rem);
}

.header-site-links {
	gap: clamp(1rem, 2.5vw, 2rem);
}

.header-site-links a {
	position: relative;
	color: rgba(255, 255, 255, 0.52);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	transition: color 0.25s ease;
}

.single-page .lang-btn {
	padding: 0.35rem 0.2rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-size: 0.68rem;
	letter-spacing: 0.12em;
}

.single-page .lang-btn:hover {
	background: transparent;
	color: #fff;
}

.header-site-links a::after {
	content: '';
	position: absolute;
	right: 0;
	bottom: -0.45rem;
	left: 0;
	height: 1px;
	background: #fff;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s ease;
}

.header-site-links a:hover {
	color: #fff;
}

.header-site-links a:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

.single-page .hub-container {
	display: block;
	overflow-x: clip; /* the mobile globe intentionally bleeds past the viewport */
	min-height: 100vh;
	padding: 0;
}

.single-page .hero-bg-container {
	z-index: 0;
	top: 0;
	height: 100vh;
	opacity: 0.62;
}

.single-page .hero-bg-orb {
	top: 34%;
	left: 73%;
	width: min(58vw, 760px);
	height: min(58vw, 760px);
	background: radial-gradient(circle, rgba(48, 141, 214, 0.18) 0%, rgba(21, 72, 118, 0.12) 38%, transparent 72%);
	filter: blur(68px);
}

.single-page .hero-bg-overlay {
	background:
		linear-gradient(to bottom, transparent 56%, #030507 100%),
		radial-gradient(circle at 72% 35%, transparent 0%, rgba(3, 5, 7, 0.92) 76%);
}

.world-hero {
	position: relative;
	z-index: 5;
	display: grid;
	grid-template-areas: 'copy globe';
	grid-template-columns: minmax(520px, 1fr) minmax(460px, 0.9fr);
	grid-template-rows: auto;
	align-items: center;
	column-gap: clamp(2.5rem, 5vw, 6rem);
	row-gap: clamp(1.5rem, 3vh, 2.4rem);
	width: min(1380px, 100%);
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0 auto;
	padding: clamp(6rem, 9vh, 7.5rem) clamp(1.5rem, 4.5vw, 4.5rem) clamp(2.2rem, 4vh, 3.5rem);
}

.world-copy {
	grid-area: copy;
	position: relative;
	z-index: 3;
	max-width: 630px;
}

.world-copy .hero-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin-bottom: 1.2rem;
	color: rgba(187, 218, 239, 0.58);
}

.world-copy .hero-eyebrow::before {
	content: '';
	width: 2.4rem;
	height: 1px;
	background: currentColor;
}

.world-copy .hero-title {
	font-family: 'Inter', 'Noto Serif SC', sans-serif;
	font-size: clamp(3.8rem, 5vw, 4.9rem);
	line-height: 0.9;
	font-weight: 600;
	letter-spacing: -0.065em;
}

.world-copy .title-line {
	display: block;
	overflow: hidden;
	white-space: nowrap;
}

.title-char {
	display: inline-block;
	will-change: transform, opacity;
}

.title-line-accent .title-char {
	background: linear-gradient(92deg, #f5f5f7 2%, #acd8ef 52%, #bea8f7 100%);
	-webkit-background-clip: text;
	background-clip: text;
}

.title-line-accent {
	color: transparent;
	background: linear-gradient(92deg, #f5f5f7 2%, #acd8ef 52%, #bea8f7 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-stroke: 0;
}

.world-copy .hero-intro {
	max-width: 500px;
	margin-top: clamp(1.5rem, 3vh, 2.2rem);
	color: rgba(255, 255, 255, 0.6);
	font-size: clamp(0.88rem, 1.15vw, 1rem);
	line-height: 1.9;
}

.hero-actions {
	display: flex;
	align-items: center;
	gap: 1.35rem;
	margin-top: 1.7rem;
}

.primary-action {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.8rem;
	min-width: 205px;
	padding: 0.78rem 0.95rem;
	color: rgba(236, 247, 255, 0.9);
	background: linear-gradient(135deg, rgba(67, 141, 188, 0.18), rgba(123, 87, 180, 0.12));
	border: 1px solid rgba(174, 221, 248, 0.28);
	border-radius: 12px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.11em;
	transition: background 0.25s ease, transform 0.25s ease;
}

.primary-action:hover {
	color: #fff;
	background: linear-gradient(135deg, rgba(67, 141, 188, 0.3), rgba(123, 87, 180, 0.22));
	border-color: rgba(202, 235, 255, 0.5);
}

.text-action {
	padding: 0.55rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.12em;
}

/* CardNav — native implementation adapted from React Bits. */
.card-nav-container {
	position: fixed;
	top: 1.25rem;
	left: 50%;
	z-index: 400;
	width: min(980px, calc(100% - 3rem));
	transform: translateX(-50%);
}

.card-nav {
	position: relative;
	display: block;
	height: 60px;
	padding: 0;
	overflow: hidden;
	color: #f5f5f7;
	background: rgba(9, 9, 12, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 0.8rem;
	box-shadow: 0 18px 55px rgba(0, 0, 0, 0.48);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	will-change: height;
}

.card-nav-top {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 2;
	display: flex;
	height: 60px;
	align-items: center;
	justify-content: space-between;
	padding: 0.45rem 0.45rem 0.5rem 1rem;
}

.hamburger-menu {
	display: flex;
	width: 42px;
	height: 100%;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 6px;
	color: rgba(255, 255, 255, 0.88);
	border-radius: 8px;
}

.hamburger-menu:hover {
	background: rgba(255, 255, 255, 0.07);
}

.hamburger-line {
	display: block;
	width: 27px;
	height: 2px;
	background: currentColor;
	transform-origin: 50% 50%;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger-menu.open .hamburger-line:first-child {
	transform: translateY(4px) rotate(45deg);
}

.hamburger-menu.open .hamburger-line:last-child {
	transform: translateY(-4px) rotate(-45deg);
}

.card-nav-logo {
	position: absolute;
	top: 50%;
	left: 50%;
	color: #f5f5f7;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	transform: translate(-50%, -50%);
}

.card-nav-cta-button {
	display: inline-flex;
	height: 100%;
	align-items: center;
	padding: 0 1rem;
	color: rgba(255, 255, 255, 0.86);
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 0.45rem;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	transition: background 0.25s ease;
}

.card-nav-cta-button:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.14);
}

.card-nav-content {
	position: absolute;
	top: 60px;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	display: flex;
	align-items: stretch;
	gap: 10px;
	padding: 0.55rem;
	visibility: hidden;
	pointer-events: none;
}

.card-nav.open .card-nav-content {
	visibility: visible;
	pointer-events: auto;
}

.card-nav-card {
	--pointer-x: 50%;
	--pointer-y: 50%;
	--nav-card-bg: #141219;
	display: flex;
	position: relative;
	min-width: 0;
	flex: 1 1 0;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1rem 1.05rem;
	color: #fff;
	background: var(--nav-card-bg);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.62rem;
	isolation: isolate;
	user-select: none;
}

.card-nav-card::before,
.card-nav-card::after {
	content: '';
	position: absolute;
	pointer-events: none;
	border-radius: inherit;
	opacity: 0;
	transition: opacity 0.28s ease;
}

.card-nav-card::before {
	z-index: 0;
	inset: -1px;
	padding: 1px;
	background: radial-gradient(
		150px circle at var(--pointer-x) var(--pointer-y),
		#c084fc 0%,
		#f472b6 34%,
		#38bdf8 68%,
		transparent 100%
	);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
}

.card-nav-card::after {
	z-index: -1;
	inset: -5px;
	padding: 5px;
	background: radial-gradient(
		165px circle at var(--pointer-x) var(--pointer-y),
		rgba(192, 132, 252, 0.72),
		rgba(244, 114, 182, 0.42) 38%,
		rgba(56, 189, 248, 0.32) 68%,
		transparent 100%
	);
	filter: blur(8px);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
}

.card-nav-card:hover::before,
.card-nav-card:focus-within::before {
	opacity: 1;
}

.card-nav-card:hover::after,
.card-nav-card:focus-within::after {
	opacity: 0.72;
}

.card-nav-card > * {
	position: relative;
	z-index: 1;
}

.card-nav-voyage { --nav-card-bg: #141119; }
.card-nav-daily { --nav-card-bg: #16131b; }
.card-nav-journal { --nav-card-bg: #11171c; }
.card-nav-pylab { --nav-card-bg: #17141c; }

.card-nav-label {
	display: flex;
	align-items: baseline;
	gap: 0.65rem;
	font-size: 1.25rem;
	font-weight: 400;
	letter-spacing: -0.025em;
}

.card-nav-label > span:first-child {
	color: rgba(255, 255, 255, 0.42);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.58rem;
	letter-spacing: 0;
}

.card-nav-link {
	display: inline-flex;
	align-items: center;
	gap: 0.42rem;
	margin-top: auto;
	color: rgba(255, 255, 255, 0.74);
	font-size: 0.72rem;
	line-height: 1.4;
	transition: color 0.25s ease, transform 0.25s ease;
}

.card-nav-link:hover,
.card-nav-link:focus-visible {
	color: #fff;
	transform: translateX(3px);
	outline: none;
}

.globe-shell {
	grid-area: globe;
	position: relative;
	justify-self: center;
	width: min(560px, 42vw);
	aspect-ratio: 1;
	min-width: 420px;
	filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.58));
}

.globe-canvas,
.globe-markers {
	position: absolute;
	inset: 0;
}

.globe-canvas {
	z-index: 2;
	cursor: grab;
	/* Vertical swipes scroll the page; home-globe.js switches this to none in full screen.
	   Must live on this container: touch-action intersects with every ancestor. */
	touch-action: pan-y;
}

.globe-canvas:active {
	cursor: grabbing;
}

.globe-canvas canvas {
	display: block;
	width: 100% !important;
	height: 100% !important;
}

.globe-markers {
	z-index: 4;
	pointer-events: none;
}

.globe-marker {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 0.42rem;
	padding: 0.28rem 0.5rem 0.28rem 0.28rem;
	color: rgba(255, 255, 255, 0.84);
	background: rgba(4, 9, 14, 0.7);
	border: 1px solid rgba(172, 222, 251, 0.26);
	border-radius: 999px;
	backdrop-filter: blur(9px);
	-webkit-backdrop-filter: blur(9px);
	box-shadow: 0 7px 24px rgba(0, 0, 0, 0.34);
	font-size: 0.58rem;
	letter-spacing: 0.08em;
	white-space: nowrap;
	pointer-events: auto;
	transform: translate(-50%, -50%);
	transition: opacity 0.16s ease, scale 0.2s ease, border-color 0.2s ease;
}

.globe-marker img {
	width: 19px;
	height: 19px;
	object-fit: cover;
	border-radius: 50%;
	filter: saturate(0.76) contrast(1.08);
}

.globe-marker:hover,
.globe-marker:focus-visible {
	z-index: 20;
	border-color: rgba(214, 241, 255, 0.72);
	outline: none;
	scale: 1.16;
}

.globe-marker.is-hidden {
	opacity: 0;
	pointer-events: none;
}

/* Globe → detail hand-off: a single card morphs from the marker thumbnail into
   exactly the geometry of the voyage detail hero (.detail-arrival). */
.atlas-transition {
	position: fixed;
	z-index: 10000;
	inset: 0;
	pointer-events: auto;
}

.atlas-transition[hidden] {
	display: none;
}

.atlas-transition-card {
	position: fixed;
	overflow: hidden;
	background: #0b0c10;
	will-change: clip-path;
	view-transition-name: voyage-hero;
}

.atlas-transition-image,
.atlas-transition-wash {
	position: absolute;
	inset: 0;
}

.atlas-transition-image {
	background-position: center;
	background-size: cover;
	transform-origin: 50% 50%;
	will-change: transform;
}

.atlas-transition-hires {
	position: absolute;
	inset: 0;
	background-position: center;
	background-size: cover;
}

/* Same wash as .voyage-page #detail-view .detail-hero-wash */
.atlas-transition-wash {
	background:
		linear-gradient(to top, rgba(3, 4, 6, 0.82) 0%, rgba(3, 4, 6, 0.16) 48%, transparent 72%),
		linear-gradient(to bottom, rgba(3, 4, 6, 0.4), transparent 24%);
	opacity: 0;
}

.globe-orbit {
	position: absolute;
	z-index: 1;
	top: 50%;
	left: 50%;
	width: 88%;
	height: 32%;
	border: 1px solid rgba(142, 205, 239, 0.13);
	border-radius: 50%;
	pointer-events: none;
}

.globe-orbit-one {
	transform: translate(-50%, -50%) rotate(-17deg);
}

.globe-orbit-two {
	transform: translate(-50%, -50%) rotate(61deg);
}

.globe-meta {
	position: absolute;
	z-index: 6;
	color: rgba(197, 226, 243, 0.54);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.58rem;
	letter-spacing: 0.12em;
	pointer-events: none;
}

.globe-meta-top {
	top: 7%;
	left: 5%;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.globe-meta-bottom {
	right: 5%;
	bottom: 7%;
}

.live-dot {
	width: 5px;
	height: 5px;
	background: #a9e2ff;
	border-radius: 50%;
	box-shadow: 0 0 10px #8dd9ff;
	animation: atlasPulse 2s ease-in-out infinite;
}

@keyframes atlasPulse {
	50% { opacity: 0.35; transform: scale(0.72); }
}

.globe-fallback {
	position: absolute;
	z-index: 3;
	inset: 16%;
	display: grid;
	place-items: center;
	border: 1px solid rgba(171, 222, 250, 0.25);
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.46);
	background: radial-gradient(circle at 34% 30%, #143652, #071018 58%, #020305);
	font-size: 0.58rem;
	letter-spacing: 0.12em;
}

.globe-fallback[hidden] {
	display: none;
}

.globe-shell.is-fallback .globe-orbit {
	display: none;
}












.single-page .hub-footer {
	width: min(1240px, calc(100% - 3rem));
	max-width: none;
	margin: 0 auto;
	padding: 1.5rem 0 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1080px) {
	.world-hero {
		grid-template-areas:
			'copy'
			'globe';
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto auto;
		padding-top: 8rem;
	}
	.world-copy {
		max-width: 760px;
	}
	.globe-shell {
		width: min(600px, 78vw);
		min-width: 0;
	}
}

@media (max-width: 768px) {
	.card-nav-container {
		top: max(1rem, env(safe-area-inset-top));
		width: calc(100% - 2rem);
	}
	.card-nav-content {
		align-items: stretch;
		flex-direction: column;
		justify-content: flex-start;
		gap: 8px;
		overflow-y: auto;
	}
	.card-nav-card {
		min-height: 78px;
		flex: 1 1 auto;
		padding: 0.85rem 1rem;
	}
	.card-nav-label {
		font-size: 1rem;
	}
	.card-nav-link {
		font-size: 0.68rem;
	}
}

@media (max-width: 700px) {
	.world-hero {
		gap: 2rem;
		padding:
			calc(7rem + env(safe-area-inset-top))
			max(1.25rem, env(safe-area-inset-right))
			calc(3.5rem + env(safe-area-inset-bottom))
			max(1.25rem, env(safe-area-inset-left));
	}
	.world-copy .hero-title {
		font-size: clamp(2.45rem, 11.5vw, 4.2rem);
	}
	.world-copy .hero-intro {
		font-size: 0.84rem;
	}
	.hero-actions {
		align-items: stretch;
		flex-direction: column;
		gap: 0.75rem;
	}
	.primary-action {
		width: 100%;
	}
	.text-action {
		align-self: flex-start;
	}
	.globe-shell {
		width: min(108vw, 520px);
		margin-left: -4vw;
	}
	.globe-meta-bottom {
		display: none;
	}
	.globe-meta-top {
		top: 3%;
		left: 10%;
	}
	.globe-marker {
		padding-right: 0.28rem;
	}
	.globe-marker span {
		display: none;
	}
	.single-page .hub-footer {
		width: calc(100% - 2.5rem);
		padding-bottom: max(2rem, calc(env(safe-area-inset-bottom) + 1rem));
	}
}

@media (max-width: 760px), (pointer: coarse) {
	.hero-bg-container,
	.single-page .hero-bg-container,
	.voyage-page > .hero-bg-container {
		inset: 0;
		width: 100vw;
		height: 100vh;
		height: 100lvh;
	}

	.globe-shell.is-immersive,
	.atlas-transition,
	.atlas-story-frame {
		min-height: 100vh;
		min-height: 100lvh;
	}
}

@media (prefers-reduced-motion: reduce) {
	.live-dot {
		animation: none;
	}
}

/* Markdown journal reader */
.markdown-page {
	position: relative;
	z-index: 5;
	width: min(860px, calc(100% - 2.5rem));
	min-height: calc(100vh - 90px);
	margin: 0 auto;
	padding: clamp(7rem, 12vw, 10rem) 0 5rem;
}

.markdown-back {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 3.5rem;
	color: var(--atlas-faint);
	font-family: var(--atlas-mono);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	transition: color 0.2s ease, transform 0.2s ease;
}

.markdown-back:hover { color: #fff; transform: translateX(-3px); }

.markdown-header {
	padding-bottom: 2.4rem;
	border-bottom: 1px solid var(--atlas-line);
}

.markdown-header h1 {
	max-width: 780px;
	margin-top: 1.2rem;
	font-family: 'Noto Serif SC', serif;
	font-size: clamp(2.4rem, 7vw, 5rem);
	font-weight: 500;
	letter-spacing: -0.045em;
	line-height: 1.12;
}

.markdown-meta, .markdown-status {
	margin-top: 1.4rem;
	color: var(--atlas-faint);
	font-family: var(--atlas-mono);
	font-size: 0.68rem;
	letter-spacing: 0.1em;
}

.markdown-status { padding: 3rem 0; line-height: 1.8; }

.markdown-body {
	padding-top: clamp(2.4rem, 6vw, 4rem);
	color: rgba(255, 255, 255, 0.82);
	font-family: 'Noto Serif SC', serif;
	font-size: clamp(1rem, 1.8vw, 1.12rem);
	line-height: 2;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3,
.markdown-body h4, .markdown-body h5, .markdown-body h6 {
	margin: 2.4em 0 0.8em;
	color: #fff;
	font-family: 'Inter', 'Noto Serif SC', sans-serif;
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.3;
}

.markdown-body h1 { font-size: 2.1em; }
.markdown-body h2 { font-size: 1.65em; }
.markdown-body h3 { font-size: 1.28em; }
.markdown-body p, .markdown-body ul, .markdown-body ol,
.markdown-body blockquote, .markdown-body pre, .markdown-body .md-table-wrap { margin: 1.35em 0; }
.markdown-body ul, .markdown-body ol { padding-left: 1.5em; }
.markdown-body li + li { margin-top: 0.45em; }
.markdown-body a { color: #b8e2f7; text-decoration: underline; text-underline-offset: 0.2em; }
.markdown-body blockquote { padding: 0.3em 0 0.3em 1.4em; border-left: 2px solid var(--atlas-accent); color: rgba(255,255,255,.62); }
.markdown-body code { padding: 0.15em 0.38em; border: 1px solid var(--atlas-line); border-radius: 5px; background: rgba(255,255,255,.06); font-family: 'JetBrains Mono', monospace; font-size: .84em; }
.markdown-body pre { overflow-x: auto; padding: 1.3rem; border: 1px solid var(--atlas-line); border-radius: 12px; background: rgba(2,5,9,.78); line-height: 1.65; }
.markdown-body pre code { padding: 0; border: 0; background: none; }
.markdown-body img { display: block; max-width: 100%; height: auto; margin: 2.2rem auto; border-radius: 12px; }
.markdown-body hr { height: 1px; margin: 3rem 0; border: 0; background: var(--atlas-line); }
.md-table-wrap { overflow-x: auto; }
.markdown-body table { width: 100%; border-collapse: collapse; font-family: 'Inter', sans-serif; font-size: .86em; }
.markdown-body th, .markdown-body td { padding: .8rem; border-bottom: 1px solid var(--atlas-line); text-align: left; }
.markdown-body th { color: #fff; font-weight: 500; }

body:has(.markdown-page) .site-global-footer {
	position: relative;
	z-index: 5;
	width: min(860px, calc(100% - 2.5rem));
	margin: 0 auto !important;
}

/* --- Sub-page Styles --- */
.subpage-container {
	position: relative;
	width: 100%;
	min-height: 100vh;
	z-index: 10;
	padding: 8rem 4rem 4rem 4rem;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.subpage-header {
	text-align: center;
	margin-bottom: 4rem;
}

.subpage-title {
	font-size: clamp(2.5rem, 6vw, 4rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin-bottom: 1rem;
}

.glass-panel {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 24px;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	padding: 3rem;
	width: 100%;
	max-width: 1200px;
	margin-bottom: 2rem;
}

/* Gallery Grid */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
	width: 100%;
	max-width: 1400px;
}

.gallery-item {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 3/4;
	background: rgba(255, 255, 255, 0.05);
	cursor: pointer;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
	transform: scale(1.05);
}

.gallery-item-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 2rem 1.5rem 1.5rem;
	background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
	color: white;
	opacity: 0;
	transform: translateY(10px);
	transition: all 0.4s ease;
}

.gallery-item:hover .gallery-item-overlay {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 768px) {
	.subpage-container {
		padding: 6rem 1.5rem 2rem 1.5rem;
	}
	.gallery-grid {
		grid-template-columns: 1fr;
	}
	.glass-panel {
		padding: 1.5rem;
	}
}



/* ==========================================================================
   SHARE MODAL (NEW GLASSMORPHIC DESIGN)
   ========================================================================== */

.share-popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.share-popup-modal.show {
    display: flex;
    opacity: 1;
}

.share-popup-content {
    transform: translateY(40px) scale(0.95);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.share-popup-modal.show .share-popup-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Glass Pill Buttons (Language / Style) */
.glass-pill-group {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-pill-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.05em;
}

.glass-pill-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.glass-pill-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Glass Action Buttons */
.share-action-btn.glass-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.05em;
}

.share-action-btn.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.share-action-btn.glass-btn-primary {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border-color: rgba(255, 255, 255, 1);
}

.share-action-btn.glass-btn-primary:hover {
    background: #fff;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* Toast Message */
.share-toast {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translate(-50%, 20px);
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.share-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Language display toggle */
.share-popup-modal.modal-lang-zh .lang-en { display: none !important; }
.share-popup-modal.modal-lang-zh .lang-zh { display: inline-block !important; }
.share-popup-modal.modal-lang-en .lang-zh { display: none !important; }
.share-popup-modal.modal-lang-en .lang-en { display: inline-block !important; }

/* ==========================================================================
   COMPLETE SERIES (MASONRY / GALLERY) STYLES
   ========================================================================== */
.location-section {
  margin-bottom: 3rem;
}

.section-eyebrow {
  margin-bottom: 1.2rem;
  color: var(--secondary-text-light);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.location-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(180px, 0.48fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  overflow: hidden;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
}

.location-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.location-pin-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  color: #a9d4ff;
  background: rgba(41, 151, 255, 0.12);
  border: 1px solid rgba(83, 170, 255, 0.24);
  border-radius: 50%;
}

.location-kicker,
.coordinate-label {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.location-name {
  overflow: hidden;
  color: #fff;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-country {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.location-coordinates {
  padding-left: clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.location-coordinates strong {
  color: rgba(255, 255, 255, 0.88);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.location-plot {
  position: relative;
  height: 82px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.16);
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.location-plot-axis {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
}

.axis-horizontal {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.axis-vertical {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.location-plot-pin {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #8bc5ff;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(41, 151, 255, 0.14), 0 0 18px rgba(41, 151, 255, 0.7);
  transform: translate(-50%, -50%);
}

.location-disclaimer {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.72rem;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .location-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .location-plot {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .location-card {
    grid-template-columns: 1fr;
  }

  .location-coordinates {
    padding-top: 1rem;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }

  .location-plot {
    grid-column: auto;
  }
}

.masonry-grid {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.masonry-grid::-webkit-scrollbar {
  display: none;
}

.masonry-item {
  height: 240px;
  flex: 0 0 auto;
  cursor: default !important;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.masonry-item:hover {
  transform: none !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

.masonry-item img {
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  user-select: none;
  -webkit-user-drag: none;
  cursor: default !important;
}

.masonry-item:hover img {
  transform: none !important;
}

/* Breadcrumb & Navigation Bar Styles */
.detail-nav-bar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap !important;
  max-width: 100%;
}

.breadcrumb-link,
.breadcrumb-link-btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.breadcrumb-separator {
  flex-shrink: 0 !important;
  opacity: 0.4;
}

.breadcrumb-current {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 220px;
  flex-shrink: 1 !important;
  color: var(--accent, #d4c4a8);
}

.breadcrumb-link:hover,
.breadcrumb-link-btn:hover {
  color: #ffffff !important;
  opacity: 1 !important;
}

.glass-btn-prominent {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.glass-btn-prominent:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .detail-nav-bar {
    padding: 0.65rem 1rem !important;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important;
  }
  .breadcrumb-separator.hide-mobile,
  .breadcrumb-current {
    display: none !important;
  }
  .breadcrumb-trail {
    font-size: 0.8rem;
    gap: 0.3rem;
  }
  .detail-actions {
    flex-shrink: 0;
  }
  .glass-btn-prominent {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.75rem !important;
  }
}

/* Unified Detail View Container Widths & Compact Spacing */
#detail-view {
  min-height: auto !important;
  padding-bottom: 0 !important;
}

#detail-view .detail-nav-bar,
#detail-view .hero-section,
#detail-view .detail-content {
  width: 100% !important;
  max-width: 1200px !important;
  box-sizing: border-box !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#detail-view .detail-content {
  padding: 3rem 3rem 1.2rem 3rem !important;
  margin-bottom: 0 !important;
}

.scroll-hint-container {
  margin-top: 0.6rem !important;
  margin-bottom: 0 !important;
}

/* Smooth Page View Transitions */
#gallery-view,
#detail-view {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

#gallery-view.active,
#detail-view.active {
  opacity: 1;
  transform: translateY(0);
}

/* Site Global Footer */
.site-global-footer {
	width: 100%;
	padding: 1.2rem 1.5rem 1.8rem 1.5rem !important;
	text-align: center;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.4);
	text-transform: uppercase;
	margin-top: 0.5rem !important;
	box-sizing: border-box;
	z-index: 10;
	position: relative;
}

.site-global-footer p {
	margin: 0;
}

.lightbox[hidden] {
	display: none;
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
	background: rgba(0, 0, 0, 0);
	backdrop-filter: blur(0);
	-webkit-backdrop-filter: blur(0);
	opacity: 0;
	transition: opacity 0.28s ease, background-color 0.28s ease, backdrop-filter 0.28s ease;
}

.lightbox.show {
	opacity: 1;
	background: rgba(0, 0, 0, 0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.lightbox-content {
	max-width: min(92vw, 1500px);
	max-height: 86vh;
	border-radius: 10px;
	object-fit: contain;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
	opacity: 0;
	transform: translateY(18px) scale(0.96);
	transition: opacity 0.24s ease 0.04s, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) 0.04s;
}

.lightbox.show.image-ready .lightbox-content {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.lightbox.is-morphing .lightbox-content {
	visibility: hidden;
}

.atlas-transition.is-lightbox-morph {
	z-index: 2001;
	pointer-events: none;
}

.atlas-transition.is-lightbox-morph .atlas-transition-card::after {
	display: none;
}

.voyage-page #detail-view .masonry-item {
	background-position: center;
	background-size: cover;
}

.voyage-page #detail-view .masonry-item picture {
	display: block;
	width: 100%;
	height: 100%;
}

.close-lightbox {
	position: absolute;
	top: max(1rem, env(safe-area-inset-top));
	right: max(1rem, env(safe-area-inset-right));
	z-index: 1;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	font-size: 2rem;
	line-height: 1;
	opacity: 0;
	transform: scale(0.86);
	transition: opacity 0.2s ease 0.12s, transform 0.24s ease 0.12s, background-color 0.2s ease;
}

.lightbox.show .close-lightbox {
	opacity: 1;
	transform: scale(1);
}

.close-lightbox:hover {
	background: rgba(255, 255, 255, 0.18);
}

/* Interaction, accessibility, and responsive refinements */
html {
	color-scheme: dark;
	scroll-behavior: smooth;
	min-height: 100%;
	background: #030507;
}

body {
	min-height: 100%;
	min-height: 100dvh;
	background-color: #030507;
}

body.modal-open {
	overflow: hidden;
	padding-right: var(--scrollbar-compensation, 0px);
}

.header-logo {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.title-line-mask {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
}

:where(a, button, [role="button"], [tabindex]):focus-visible {
	outline: 2px solid rgba(119, 190, 255, 0.95);
	outline-offset: 4px;
}

.lang-btn,
.social-btn,
.filter-list li {
	min-height: 44px;
}

.social-btn {
	display: inline-flex;
	align-items: center;
}

.nav-card:focus-visible,
.analog-card:focus-visible {
	border-color: rgba(119, 190, 255, 0.8);
	box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.14), 0 20px 55px rgba(0, 0, 0, 0.35);
}

.nav-card:focus-visible .nav-card-arrow,
.analog-card:focus-visible .nav-card-arrow {
	opacity: 1;
	transform: translate(0, 0);
}

.filter-list li {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.75rem;
	margin: -0.45rem -0.25rem;
	border-radius: 999px;
}

.filter-list li.active {
	background: rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.home-modal[hidden] {
	display: none;
}

.home-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
	background: rgba(0, 0, 0, 0.74);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	opacity: 0;
	transition: opacity 0.28s ease;
}

.home-modal.is-open {
	opacity: 1;
}

.home-modal-content {
	position: relative;
	width: min(620px, 100%);
	max-height: min(78vh, 720px);
	overflow: auto;
	padding: clamp(1.5rem, 5vw, 3rem);
	background: rgba(18, 18, 28, 0.88);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 24px;
	box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
	transform: translateY(18px) scale(0.98);
	transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-modal.is-open .home-modal-content {
	transform: translateY(0) scale(1);
}

.close-modal {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 1.6rem;
	line-height: 1;
	background: rgba(255, 255, 255, 0.07);
	transition: background 0.2s ease, opacity 0.2s ease;
}

.close-modal:hover {
	background: rgba(255, 255, 255, 0.14);
}

.modal-title {
	padding-right: 3rem;
	margin-bottom: 1.5rem;
	font-size: clamp(1.5rem, 4vw, 1.8rem);
}

.modal-body {
	color: #b7b7bd;
	font-weight: 300;
	line-height: 1.85;
}

.modal-body p + p {
	margin-top: 1rem;
}

@media (hover: none) {
	.nav-card-arrow,
	.gallery-item-overlay {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 768px) {
	.hub-container {
		padding-right: max(1rem, env(safe-area-inset-right));
		padding-left: max(1rem, env(safe-area-inset-left));
	}

	.gallery-grid {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 1rem;
	}

	.subpage-header {
		margin-bottom: 2.25rem;
	}

	.header-logo > span {
		display: none;
	}

	.home-modal-content {
		border-radius: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	#gallery-view,
	#detail-view {
		transform: none;
	}
}

@media (prefers-reduced-transparency: reduce) {
	.main-header,
	.nav-card,
	.glass-panel,
	.home-modal-content {
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		background-color: #111118;
	}
}

/* Share composer: desktop split view with a compact mobile flow */
.share-popup-modal {
	display: flex;
	inset: 0;
	width: auto;
	height: auto;
	padding: clamp(1rem, 3vw, 2rem);
	background: rgba(2, 3, 8, 0.76);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.28s ease, visibility 0.28s ease;
}

.share-popup-modal[hidden] {
	display: none;
}

.share-popup-modal.show {
	opacity: 1;
	visibility: visible;
}

.share-popup-content.glass-panel {
	display: flex;
	flex-direction: column;
	width: min(920px, 100%);
	max-width: 920px;
	max-height: min(760px, calc(100dvh - 3rem));
	padding: 0;
	margin: 0;
	overflow: hidden;
	background: rgba(12, 14, 22, 0.94);
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 26px;
	box-shadow: 0 40px 120px rgba(0, 0, 0, 0.66);
	transform: translateY(22px) scale(0.985);
	opacity: 0;
	transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
}

.share-popup-modal.show .share-popup-content {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.share-modal-header {
	display: flex;
	flex: 0 0 auto;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2rem;
	padding: 1.5rem 1.75rem 1.35rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.share-modal-eyebrow {
	margin-bottom: 0.35rem;
	color: #9cafff;
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.share-modal-title {
	margin: 0;
	color: var(--text-light);
	font-size: 1.35rem;
	font-weight: 550;
	letter-spacing: 0.06em;
}

.share-modal-desc {
	margin-top: 0.4rem;
	color: rgba(255, 255, 255, 0.46);
	font-size: 0.8rem;
	line-height: 1.5;
}

.share-close-btn {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	margin: -0.25rem -0.25rem 0 0;
	color: rgba(255, 255, 255, 0.66);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 50%;
	font-size: 1.55rem;
	line-height: 1;
	transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.share-close-btn:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	transform: rotate(4deg);
}

.share-layout {
	display: grid;
	grid-template-columns: minmax(330px, 0.9fr) minmax(360px, 1.1fr);
	min-height: 0;
	overflow: hidden;
}

.share-preview-column {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 1.25rem 1.5rem 1.5rem;
	overflow: auto;
	background: radial-gradient(circle at 50% 34%, rgba(67, 79, 158, 0.18), transparent 54%), rgba(0, 0, 0, 0.16);
	border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.share-preview-toolbar {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.85rem;
	color: rgba(255, 255, 255, 0.38);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.12em;
}

.share-preview-container {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 0.5rem;
}

.share-card-preview {
	width: 100%;
	max-width: 260px;
	transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.share-card-preview:hover {
	transform: translateY(-3px) scale(1.01);
}

.share-controls-column {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.35rem;
	min-width: 0;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	overflow: auto;
}

.share-control-section {
	display: grid;
	gap: 0.65rem;
}

.share-control-label {
	color: rgba(255, 255, 255, 0.46);
	font-size: 0.67rem;
	font-weight: 600;
	letter-spacing: 0.12em;
}

.share-controls-column .glass-pill-group {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 100%;
	padding: 5px;
	border-radius: 14px;
}

.share-controls-column .glass-pill-btn {
	min-height: 42px;
	padding: 0.65rem 0.75rem;
	border-radius: 10px;
}

.share-controls-column .share-option-group-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.share-card-preview {
	display: flex;
	justify-content: center;
}

.share-card-preview[data-format="story"] {
	max-width: 210px;
}

.share-poster-canvas {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
	transition: opacity 0.2s ease;
}

.share-card-preview.is-rendering .share-poster-canvas {
	opacity: 0.55;
}

.share-poster-canvas[width="0"],
.share-poster-canvas:not([width]) {
	aspect-ratio: 4 / 5;
	background: rgba(255, 255, 255, 0.04);
}

.btn-spinner {
	animation: share-spin 0.8s linear infinite;
}

@keyframes share-spin {
	to { transform: rotate(360deg); }
}

.share-link-preview {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
	padding: 0.75rem 0.85rem;
	color: rgba(255, 255, 255, 0.48);
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 11px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.68rem;
}

.share-link-preview svg {
	flex: 0 0 auto;
}

.share-link-preview span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.share-action-buttons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.share-action-btn.glass-btn {
	min-height: 48px;
	padding: 0.8rem 1rem;
}

.share-action-btn:disabled {
	cursor: wait;
	opacity: 0.65;
	transform: none;
}

.share-privacy-note {
	color: rgba(255, 255, 255, 0.34);
	font-size: 0.68rem;
	line-height: 1.55;
}

@media (max-width: 720px) {
	.share-popup-modal {
		align-items: flex-start;
		padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
		overflow-y: auto;
	}

	.share-popup-content.glass-panel {
		width: 100%;
		max-height: none;
		border-radius: 20px;
		overflow: hidden;
	}

	.share-modal-header {
		padding: 1.2rem 1.2rem 1rem;
	}

	.share-layout {
		display: flex;
		flex-direction: column;
		overflow: visible;
	}

	.share-preview-column {
		padding: 1rem 1rem 1.25rem;
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	.share-card-preview {
		max-width: 220px;
	}

	.share-controls-column {
		gap: 1.15rem;
		padding: 1.25rem;
		overflow: visible;
	}
}

@media (max-width: 420px) {
	.share-action-buttons {
		grid-template-columns: 1fr;
	}

	.share-modal-desc {
		display: none;
	}
}

/* ==========================================================================
   VOYAGE — CINEMATIC ARRIVAL & EDITORIAL ARCHIVE
   ========================================================================== */
.voyage-page {
	background: #050608;
}

.direct-detail-load .voyage-page .card-nav-container,
.direct-detail-load .voyage-page > .hero-bg-container,
.direct-detail-load .voyage-page #gallery-view {
	opacity: 0 !important;
	pointer-events: none;
}

.voyage-page.showing-detail .card-nav-container {
	opacity: 0;
	pointer-events: none;
	transform: translateY(-140%);
}

.voyage-page.showing-detail > .hero-bg-container {
	opacity: 0;
}

.voyage-page > .hero-bg-container {
	transition: opacity 0.7s ease;
}

/* Full-bleed detail arrival */
.voyage-page #detail-view {
	display: none;
	width: 100%;
	min-height: 100vh !important;
	padding: 0 !important;
	opacity: 1;
	transform: none;
	transition: none;
}

.voyage-page #detail-view.active {
	display: block !important;
	transform: none;
}

.detail-arrival {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100svh;
	min-height: 640px;
	overflow: hidden;
	background: #050608;
}

.detail-hero-media,
.detail-hero-wash,
.detail-hero-media .hero-bg-image {
	position: absolute;
	inset: 0;
}

.detail-hero-media {
	overflow: hidden;
}

.detail-hero-media .hero-bg-image {
	width: 100%;
	height: 100%;
	background-position: center;
	background-size: cover;
	transform-origin: center;
}

.detail-hero-wash {
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(2, 4, 7, 0.82) 0%, rgba(2, 4, 7, 0.24) 54%, rgba(2, 4, 7, 0.08) 100%),
		linear-gradient(to top, rgba(2, 4, 7, 0.82), transparent 58%),
		linear-gradient(to bottom, rgba(2, 4, 7, 0.52), transparent 24%);
	pointer-events: none;
}

.voyage-page #detail-view .detail-nav-bar {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 5;
	display: grid;
	width: 100% !important;
	max-width: none !important;
	height: 86px;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	margin: 0 !important;
	padding: max(1.1rem, env(safe-area-inset-top)) clamp(1.25rem, 4vw, 4rem) 1rem !important;
	background: transparent;
	border: 0;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.detail-back-btn,
.detail-wordmark,
.voyage-page #detail-view .share-btn {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.63rem;
	font-weight: 600;
	letter-spacing: 0.13em;
}

.detail-back-btn {
	justify-self: start;
	gap: 0.75rem;
}

.detail-back-btn > span:first-child {
	font-size: 1rem;
	transition: transform 0.25s ease;
}

.detail-back-btn:hover > span:first-child {
	transform: translateX(-4px);
}

.detail-wordmark {
	justify-self: center;
	color: #fff;
	font-size: 0.72rem;
	letter-spacing: 0.18em;
}

.voyage-page #detail-view .detail-actions {
	display: flex;
	justify-self: end;
}

.voyage-page #detail-view .share-btn {
	gap: 0.5rem;
	padding: 0.5rem 0.8rem;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	transition: background 0.25s ease, border-color 0.25s ease;
}

.voyage-page #detail-view .share-btn:hover {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.32);
}

.voyage-page #detail-view .detail-hero-copy {
	position: absolute;
	z-index: 3;
	right: auto;
	bottom: clamp(4.5rem, 10vh, 8rem);
	left: clamp(1.5rem, 8vw, 8rem);
	width: min(850px, calc(100% - 3rem));
	padding: 0;
	background: none;
	color: #fff;
}

.detail-archive-index {
	position: absolute;
	top: 0.3rem;
	left: clamp(-5rem, -6vw, -2.2rem);
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	color: rgba(255, 255, 255, 0.44);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.53rem;
	letter-spacing: 0.13em;
	writing-mode: vertical-rl;
}

.detail-archive-index strong {
	color: rgba(205, 235, 251, 0.78);
	font-weight: 500;
}

.detail-coordinate-label {
	margin-bottom: 1rem;
	color: rgba(201, 231, 249, 0.68);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.6rem;
	font-weight: 600;
	letter-spacing: 0.2em;
}

.voyage-page #detail-view .hero-title {
	max-width: 1000px;
	margin: 0;
	font-family: 'Inter', 'Noto Serif SC', sans-serif;
	font-size: clamp(3.7rem, 10vw, 9.5rem);
	font-weight: 500;
	line-height: 0.82;
	letter-spacing: -0.075em;
	text-wrap: balance;
}

.voyage-page #detail-view .hero-subtitle {
	margin-top: 1.25rem;
	color: rgba(255, 255, 255, 0.64);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.66rem;
	letter-spacing: 0.15em;
}

.detail-story-lead {
	max-width: 640px;
	margin-top: 1rem;
	color: rgba(255, 255, 255, 0.84);
	font-family: 'Playfair Display', 'Noto Serif SC', serif;
	font-size: clamp(1rem, 1.5vw, 1.3rem);
	line-height: 1.5;
}

.detail-scroll-cue {
	position: absolute;
	right: clamp(1.25rem, 4vw, 4rem);
	bottom: 2rem;
	z-index: 4;
	display: flex;
	align-items: center;
	gap: 1rem;
	color: rgba(255, 255, 255, 0.48);
	font-size: 0.55rem;
	letter-spacing: 0.14em;
}

.detail-scroll-cue i {
	position: relative;
	display: block;
	width: 56px;
	height: 1px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.18);
}

.detail-scroll-cue i::after {
	content: '';
	position: absolute;
	inset: 0;
	background: #d9f2ff;
	animation: voyageScrollLine 2s ease-in-out infinite;
	transform-origin: left;
}

@keyframes voyageScrollLine {
	0% { transform: translateX(-105%); }
	55%, 100% { transform: translateX(105%); }
}

/* Editorial body */
.voyage-page #detail-view .detail-content {
	width: min(1240px, calc(100% - 3rem)) !important;
	max-width: none !important;
	margin: 0 auto !important;
	padding: clamp(5rem, 11vh, 9rem) 0 7rem !important;
}

.story-section,
.voyage-page #detail-view .location-section,
.series-section {
	display: grid;
	grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1.66fr);
	gap: clamp(2rem, 7vw, 8rem);
	padding: clamp(4rem, 8vh, 7rem) 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.story-section {
	padding-top: 0;
	border-top: 0;
}

.detail-section-label {
	display: flex;
	align-items: baseline;
	gap: 0.8rem;
	color: rgba(183, 222, 244, 0.52);
}

.detail-section-label > span {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.58rem;
}

.detail-section-label :is(h2, h3) {
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	font-family: 'Inter', 'Noto Serif SC', sans-serif;
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.16em;
}

.story-body {
	max-width: 820px;
}

.story-text {
	color: rgba(255, 255, 255, 0.82);
	font-family: 'Playfair Display', 'Noto Serif SC', serif;
	font-size: clamp(1.25rem, 2.3vw, 2rem);
	line-height: 1.8;
}

.story-text i {
	font-style: normal;
}

.capture-data {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 2rem;
	margin-top: 3rem;
	padding-top: 1.2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.6rem;
	letter-spacing: 0.08em;
}

.capture-data span {
	color: rgba(255, 255, 255, 0.34);
}

.capture-data strong {
	color: rgba(255, 255, 255, 0.68);
	font-weight: 400;
	text-align: right;
}

.voyage-page #detail-view .location-card {
	grid-template-columns: minmax(0, 1fr) auto minmax(200px, 0.52fr);
	background: #0a0d11;
	border-color: rgba(155, 210, 241, 0.12);
	border-radius: 2px;
}

.voyage-page #detail-view .location-disclaimer {
	grid-column: 2;
}

.series-section .detail-section-label {
	grid-column: 1;
}

.voyage-page #detail-view .masonry-grid {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(0.7rem, 1.5vw, 1.4rem);
	overflow: visible;
	padding: 0;
}

.voyage-page #detail-view .masonry-item {
	grid-column: span 4;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	border-radius: 2px;
	box-shadow: none;
	cursor: zoom-in !important;
	transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.voyage-page #detail-view .masonry-item:first-child {
	grid-column: span 8;
	aspect-ratio: 16 / 10;
}

.voyage-page #detail-view .masonry-item:nth-child(4n) {
	grid-column: span 8;
	aspect-ratio: 16 / 9;
}

.voyage-page #detail-view .masonry-item:hover {
	transform: translateY(-6px) !important;
	opacity: 0.9;
}

.voyage-page #detail-view .masonry-item img {
	width: 100%;
	height: 100%;
	border-radius: 2px;
	object-fit: cover;
	cursor: zoom-in !important;
}

.voyage-page #detail-view .scroll-hint-container {
	grid-column: 1 / -1;
	margin-top: 1.2rem !important;
	text-align: right;
}

.voyage-page #detail-view .scroll-hint {
	color: rgba(255, 255, 255, 0.32);
	font-size: 0.62rem;
	letter-spacing: 0.1em;
}

.voyage-page.showing-detail .site-global-footer {
	background: #050608;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
	.voyage-page #gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.story-section,
	.voyage-page #detail-view .location-section,
	.series-section {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.voyage-page #detail-view .location-disclaimer {
		grid-column: auto;
	}

	.voyage-page #detail-view .location-card {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.voyage-page #detail-view .location-plot {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.voyage-page #gallery-grid {
		grid-template-columns: 1fr;
	}

	.detail-arrival {
		min-height: 560px;
	}

	.voyage-page #detail-view .detail-nav-bar {
		height: 72px;
		grid-template-columns: 1fr auto;
		padding-inline: 1rem !important;
	}

	.detail-wordmark {
		display: none;
	}

	.detail-back-btn {
		font-size: 0.56rem;
	}

	.voyage-page #detail-view .detail-hero-copy {
		bottom: 4.5rem;
		left: 1.25rem;
		width: calc(100% - 2.5rem);
	}

	.detail-archive-index {
		display: none;
	}

	.voyage-page #detail-view .hero-title {
		font-size: clamp(3rem, 16vw, 5.3rem);
		line-height: 0.88;
	}

	.detail-scroll-cue {
		right: 1.25rem;
		bottom: 1.4rem;
	}

	.detail-scroll-cue > span {
		display: none;
	}

	.voyage-page #detail-view .detail-content {
		width: calc(100% - 2.5rem) !important;
		padding-top: 4.5rem !important;
	}

	.story-section,
	.voyage-page #detail-view .location-section,
	.series-section {
		padding: 4rem 0;
	}

	.story-section {
		padding-top: 0;
	}

	.story-text {
		font-size: 1.15rem;
		line-height: 1.85;
	}

	.capture-data {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.55rem;
	}

	.capture-data strong {
		text-align: left;
	}

	.voyage-page #detail-view .location-card {
		grid-template-columns: 1fr;
	}

	.voyage-page #detail-view .location-coordinates {
		padding-top: 1rem;
		padding-left: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
		border-left: 0;
	}

	.voyage-page #detail-view .location-plot {
		grid-column: auto;
	}

	.voyage-page #detail-view .masonry-grid {
		grid-template-columns: 1fr;
	}

	.voyage-page #detail-view .masonry-item,
	.voyage-page #detail-view .masonry-item:first-child,
	.voyage-page #detail-view .masonry-item:nth-child(4n) {
		grid-column: auto;
		aspect-ratio: 4 / 5;
	}
}

@media (prefers-reduced-motion: reduce) {
	.detail-scroll-cue i::after {
		animation: none;
	}
}

/* Voyage detail refinement — a quieter, photo-first composition. */
.voyage-page.showing-detail {
	background: #0b0c0e;
}

.voyage-page #detail-view {
	background: #0b0c0e;
}

.voyage-page #detail-view .detail-arrival {
	width: min(1480px, calc(100% - 3rem));
	height: min(820px, calc(100svh - 3rem));
	min-height: 620px;
	margin: 1.5rem auto 0;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.voyage-page #detail-view .detail-hero-wash {
	background:
		linear-gradient(to top, rgba(3, 4, 6, 0.82) 0%, rgba(3, 4, 6, 0.16) 48%, transparent 72%),
		linear-gradient(to bottom, rgba(3, 4, 6, 0.4), transparent 24%);
}

.voyage-page #detail-view .detail-nav-bar {
	height: 74px;
	padding: 0.9rem 1.4rem !important;
}

.voyage-page #detail-view .detail-back-btn,
.voyage-page #detail-view .detail-wordmark,
.voyage-page #detail-view .share-btn {
	font-size: 0.58rem;
	letter-spacing: 0.12em;
}

.voyage-page #detail-view .share-btn {
	padding: 0.42rem 0.72rem;
	background: rgba(7, 8, 10, 0.34);
}

.voyage-page #detail-view .detail-hero-copy {
	bottom: clamp(2rem, 5vh, 3.5rem);
	left: clamp(1.5rem, 4vw, 4rem);
	width: min(680px, calc(100% - 3rem));
}

.voyage-page #detail-view .detail-archive-index {
	position: static;
	display: flex;
	margin-bottom: 1rem;
	flex-direction: row;
	gap: 0.65rem;
	writing-mode: horizontal-tb;
	font-size: 0.52rem;
}

.voyage-page #detail-view .detail-coordinate-label {
	display: none;
}

.voyage-page #detail-view .hero-title {
	max-width: 680px;
	font-size: clamp(2.7rem, 5.6vw, 5.4rem);
	font-weight: 500;
	line-height: 0.94;
	letter-spacing: -0.055em;
}

.voyage-page #detail-view .hero-subtitle {
	margin-top: 0.85rem;
	font-size: 0.58rem;
	letter-spacing: 0.12em;
}

.voyage-page #detail-view .detail-story-lead {
	max-width: 560px;
	margin-top: 0.75rem;
	color: rgba(255, 255, 255, 0.68);
	font-family: 'Noto Serif SC', 'Playfair Display', serif;
	font-size: clamp(0.88rem, 1.15vw, 1.05rem);
	line-height: 1.65;
}

.voyage-page #detail-view .detail-scroll-cue {
	display: none;
}

.voyage-page #detail-view .detail-content {
	width: min(1120px, calc(100% - 3rem)) !important;
	padding: clamp(4rem, 8vh, 6rem) 0 6rem !important;
}

.voyage-page #detail-view .story-section,
.voyage-page #detail-view .location-section,
.voyage-page #detail-view .series-section {
	grid-template-columns: 150px minmax(0, 1fr);
	gap: clamp(2rem, 6vw, 5rem);
	padding: clamp(3.5rem, 6vh, 5rem) 0;
}

.voyage-page #detail-view .story-section {
	padding-top: 0;
}

.voyage-page #detail-view .detail-section-label {
	align-items: center;
	gap: 0.65rem;
}

.voyage-page #detail-view .detail-section-label :is(h2, h3) {
	font-size: 0.6rem;
	letter-spacing: 0.13em;
}

.voyage-page #detail-view .story-body {
	max-width: 720px;
}

.voyage-page #detail-view .story-text {
	color: rgba(255, 255, 255, 0.74);
	font-family: 'Noto Serif SC', 'Playfair Display', serif;
	font-size: clamp(1rem, 1.35vw, 1.18rem);
	line-height: 2;
}

.voyage-page #detail-view .capture-data {
	margin-top: 2.2rem;
	font-size: 0.56rem;
}

.voyage-page #detail-view .location-card {
	grid-template-columns: minmax(0, 1fr) auto 190px;
	padding: 1.2rem;
	background: rgba(255, 255, 255, 0.025);
	border-color: rgba(255, 255, 255, 0.08);
	border-radius: 12px;
}

.voyage-page #detail-view .location-pin-icon {
	width: 42px;
	height: 42px;
}

.voyage-page #detail-view .location-plot {
	height: 70px;
	border-radius: 8px;
}

.voyage-page #detail-view .location-disclaimer {
	grid-column: 2;
}

.voyage-page #detail-view .masonry-grid {
	display: grid;
	grid-column: 2;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.voyage-page #detail-view .masonry-item,
.voyage-page #detail-view .masonry-item:first-child,
.voyage-page #detail-view .masonry-item:nth-child(4n) {
	grid-column: auto;
	aspect-ratio: 4 / 3;
	border-radius: 10px;
}

.voyage-page #detail-view .masonry-item img {
	border-radius: 10px;
}

.voyage-page #detail-view .scroll-hint-container {
	grid-column: 2;
	margin-top: 0.8rem !important;
	text-align: left;
}

@media (max-width: 900px) {
	.voyage-page #detail-view .detail-arrival {
		height: min(760px, calc(100svh - 2rem));
		min-height: 580px;
		margin-top: 1rem;
	}

	.voyage-page #detail-view .story-section,
	.voyage-page #detail-view .location-section,
	.voyage-page #detail-view .series-section {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.voyage-page #detail-view .location-disclaimer,
	.voyage-page #detail-view .masonry-grid,
	.voyage-page #detail-view .scroll-hint-container {
		grid-column: auto;
	}
}

@media (max-width: 640px) {
	.voyage-page #detail-view .detail-arrival {
		width: 100%;
		height: 76svh;
		min-height: 520px;
		margin-top: 0;
		border: 0;
		border-radius: 0 0 18px 18px;
	}

	.voyage-page #detail-view .detail-hero-copy {
		bottom: 2rem;
	}

	.voyage-page #detail-view .hero-title {
		font-size: clamp(2.6rem, 13vw, 4.2rem);
	}

	.voyage-page #detail-view .detail-story-lead {
		display: none;
	}

	.voyage-page #detail-view .detail-content {
		width: calc(100% - 2.5rem) !important;
	}

	.voyage-page #detail-view .masonry-grid {
		grid-template-columns: 1fr;
	}

	.voyage-page #detail-view .masonry-item,
	.voyage-page #detail-view .masonry-item:first-child,
	.voyage-page #detail-view .masonry-item:nth-child(4n) {
		aspect-ratio: 4 / 3;
	}
}

/* ==========================================================================
   SUB PAGES — shared archive shell (voyage list, diary, journal, 404)
   Mirrors the home "Personal Atlas" language: CardNav, left-aligned Inter
   display type, cool-blue → lilac accent, thin hairlines.
   ========================================================================== */
:root {
	--atlas-bg: #030507;
	--atlas-surface: rgba(12, 14, 19, 0.78);
	--atlas-line: rgba(255, 255, 255, 0.09);
	--atlas-line-strong: rgba(255, 255, 255, 0.16);
	--atlas-muted: rgba(255, 255, 255, 0.52);
	--atlas-faint: rgba(255, 255, 255, 0.36);
	--atlas-accent: #acd8ef;
	--atlas-accent-soft: rgba(172, 216, 239, 0.14);
	--atlas-gradient: linear-gradient(92deg, #f5f5f7 2%, #acd8ef 52%, #bea8f7 100%);
	--atlas-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
	--atlas-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body:has(.archive-page),
body:has(.not-found-container) {
	background:
		radial-gradient(circle at 78% 12%, rgba(28, 78, 126, 0.16), transparent 34rem),
		var(--atlas-bg);
}

.card-nav-card.is-current {
	border-color: rgba(172, 216, 239, 0.34);
	box-shadow: inset 0 0 0 1px rgba(172, 216, 239, 0.08);
}

.card-nav-card.is-current .card-nav-label > span:first-child {
	color: var(--atlas-accent);
}

.card-nav-card.is-current .card-nav-label::after {
	content: '';
	width: 6px;
	height: 6px;
	margin-left: auto;
	align-self: center;
	border-radius: 50%;
	background: var(--atlas-accent);
	box-shadow: 0 0 10px rgba(172, 216, 239, 0.8);
}

.archive-page {
	position: relative;
	z-index: 5;
	display: block;
	width: min(1380px, 100%);
	min-height: 100vh;
	margin: 0 auto;
	padding: clamp(8rem, 15vh, 10.5rem) clamp(1.25rem, 4.5vw, 4.5rem) clamp(4rem, 8vh, 6rem);
}

/* app.js toggles #gallery-view with an inline display:flex */
#gallery-view.archive-page {
	flex-direction: column;
	align-items: stretch;
}

/* Hero */
.archive-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 2.5rem clamp(2rem, 6vw, 6rem);
	padding-bottom: clamp(2rem, 4vh, 3rem);
	margin-bottom: 1.5rem;
	border-bottom: 1px solid var(--atlas-line);
}

.archive-hero > *,
.archive-toolbar,
.archive-empty {
	animation: archive-rise 0.9s var(--atlas-ease) both;
}

.archive-hero > :nth-child(2) { animation-delay: 0.12s; }
.archive-toolbar { animation-delay: 0.2s; }
.archive-empty { animation-delay: 0.28s; }

.archive-kicker {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin-bottom: 1.35rem;
	color: rgba(187, 218, 239, 0.62);
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.2em;
}

.archive-kicker > span:first-child {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	font-family: var(--atlas-mono);
	letter-spacing: 0;
}

.archive-kicker > span:first-child::after {
	content: '';
	width: 2.4rem;
	height: 1px;
	background: currentColor;
	opacity: 0.7;
}

.archive-title {
	font-family: 'Inter', 'Noto Serif SC', sans-serif;
	font-size: clamp(3rem, 7.2vw, 6.6rem);
	font-weight: 600;
	line-height: 0.94;
	letter-spacing: -0.06em;
}

.lang-zh .archive-title {
	letter-spacing: -0.02em;
}

.archive-title em {
	font-style: normal;
	color: transparent;
	background: var(--atlas-gradient);
	-webkit-background-clip: text;
	background-clip: text;
}

.archive-intro {
	max-width: 540px;
	margin-top: clamp(1.25rem, 2.6vh, 1.9rem);
	color: rgba(255, 255, 255, 0.6);
	font-size: clamp(0.88rem, 1.1vw, 1rem);
	line-height: 1.9;
}

.archive-stats {
	display: grid;
	grid-auto-flow: column;
	gap: clamp(1.5rem, 3vw, 3rem);
	padding-bottom: 0.35rem;
}

.archive-stats div {
	min-width: 4.5rem;
	padding-left: 1rem;
	border-left: 1px solid var(--atlas-line-strong);
}

.archive-stats dt {
	margin-bottom: 0.55rem;
	color: var(--atlas-faint);
	font-family: var(--atlas-mono);
	font-size: 0.6rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.archive-stats dd {
	font-size: clamp(1.6rem, 2.6vw, 2.3rem);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.04em;
	line-height: 1;
	white-space: nowrap;
}

/* Filter toolbar — stays in place in the page flow (not sticky) */
.archive-toolbar {
	position: relative;
	z-index: 30;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 2.25rem;
	margin-bottom: clamp(2.5rem, 5vh, 3.75rem);
	padding: 0.5rem 0.6rem 0.5rem 1rem;
	background: var(--atlas-surface);
	border: 1px solid var(--atlas-line);
	border-radius: 0.8rem;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

.archive-toolbar[hidden],
.archive-toolbar .filter-group[hidden],
.archive-empty[hidden],
.archive-grid[hidden],
.journal-grid[hidden] {
	display: none !important;
}

.archive-toolbar .filter-group {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	min-width: 0;
}

.archive-toolbar .filter-group h4 {
	margin: 0;
	color: var(--atlas-faint);
	font-family: var(--atlas-mono);
	font-size: 0.6rem;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
}

.archive-toolbar .filter-list {
	display: flex;
	gap: 0.3rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.archive-toolbar .filter-list li {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	margin: 0;
	padding: 0 0.85rem;
	color: var(--atlas-muted);
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 0.76rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	white-space: nowrap;
	opacity: 1;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.archive-toolbar .filter-list li:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.05);
}

.archive-toolbar .filter-list li.active {
	color: #fff;
	background: var(--atlas-accent-soft);
	border-color: rgba(172, 216, 239, 0.32);
	box-shadow: none;
	font-weight: 500;
}

.archive-result {
	margin-left: auto;
	padding-right: 0.5rem;
	color: var(--atlas-faint);
	font-family: var(--atlas-mono);
	font-size: 0.62rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
}

.archive-no-result {
	grid-column: 1 / -1;
	padding: 5rem 0;
	color: var(--atlas-faint);
	text-align: center;
	font-size: 0.9rem;
}

/* Frame grid (voyage + diary) — aligned rows */
.archive-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 2.4vw, 2.4rem);
	width: 100%;
}


.frame-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	cursor: pointer;
	animation: archive-rise 0.85s var(--atlas-ease) both;
}

.frame-card-text,
.frame-card:not([role="button"]) {
	cursor: default;
}

.frame-media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	margin-bottom: 1.15rem;
	background: #0b0d12;
	border-radius: 4px;
	isolation: isolate;
}

.frame-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.88) brightness(0.92);
	transform: scale(1.001);
	transition: transform 1.1s var(--atlas-ease), filter 0.6s ease;
}

.frame-media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(3, 5, 7, 0.55), transparent 42%);
	pointer-events: none;
}

.frame-index,
.frame-count {
	position: absolute;
	z-index: 1;
	color: rgba(255, 255, 255, 0.82);
	font-family: var(--atlas-mono);
	font-size: 0.62rem;
	letter-spacing: 0.1em;
}

.frame-index {
	top: 0.9rem;
	left: 0.95rem;
}

.frame-count {
	bottom: 0.9rem;
	left: 0.95rem;
}

.frame-open {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 1;
	display: grid;
	width: 2.4rem;
	height: 2.4rem;
	place-items: center;
	color: #fff;
	background: rgba(3, 5, 7, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 50%;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	opacity: 0;
	transform: translate(-4px, 4px);
	transition: opacity 0.3s ease, transform 0.4s var(--atlas-ease);
}

.frame-card[role="button"]:hover .frame-media img,
.frame-card[role="button"]:focus-visible .frame-media img {
	filter: saturate(1) brightness(1);
	transform: scale(1.045);
}

.frame-card:hover .frame-open,
.frame-card:focus-visible .frame-open {
	opacity: 1;
	transform: none;
}

.frame-card:focus-visible {
	outline: none;
}

.frame-card:focus-visible .frame-media {
	outline: 2px solid rgba(119, 190, 255, 0.95);
	outline-offset: 4px;
}

.frame-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid var(--atlas-line);
}

.frame-title {
	font-size: 1.15rem;
	font-weight: 500;
	letter-spacing: -0.01em;
}

.frame-country {
	color: var(--atlas-faint);
	font-family: var(--atlas-mono);
	font-size: 0.6rem;
	letter-spacing: 0.12em;
	white-space: nowrap;
}

.frame-story {
	margin-top: 0.75rem;
	color: rgba(255, 255, 255, 0.66);
	font-size: 0.84rem;
	line-height: 1.65;
}

.lang-en .frame-story {
	font-size: 0.7rem;
	letter-spacing: 0.06em;
}

.frame-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.35rem 1rem;
	margin-top: 0.7rem;
	color: var(--atlas-faint);
	font-family: var(--atlas-mono);
	font-size: 0.6rem;
	letter-spacing: 0.04em;
}

.frame-card-text .frame-caption {
	padding: 1.5rem;
	background: var(--atlas-surface);
	border: 1px solid var(--atlas-line);
	border-radius: 0.8rem;
}

/* Empty state — a blank contact sheet */
.archive-empty {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(2rem, 6vw, 6rem);
	padding: clamp(1rem, 3vh, 2rem) 0;
}

.archive-empty:not(:has(.empty-sheet)) {
	grid-template-columns: 1fr;
	justify-items: start;
}

.empty-sheet {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	padding: 0.9rem;
	background: rgba(255, 255, 255, 0.015);
	border: 1px solid var(--atlas-line);
	border-radius: 6px;
}

.empty-sheet span {
	position: relative;
	aspect-ratio: 4 / 5;
	padding: 0.6rem;
	color: rgba(255, 255, 255, 0.24);
	background: linear-gradient(160deg, rgba(172, 216, 239, 0.06), rgba(190, 168, 247, 0.03) 60%, transparent);
	border: 1px dashed rgba(255, 255, 255, 0.12);
	border-radius: 3px;
	font-family: var(--atlas-mono);
	font-size: 0.58rem;
	animation: sheet-develop 4.8s ease-in-out infinite;
}

.empty-sheet span:nth-child(2) { animation-delay: 0.6s; }
.empty-sheet span:nth-child(3) { animation-delay: 1.2s; }
.empty-sheet span:nth-child(4) { animation-delay: 1.8s; }
.empty-sheet span:nth-child(5) { animation-delay: 2.4s; }
.empty-sheet span:nth-child(6) { animation-delay: 3s; }

.empty-copy h2 {
	max-width: 22ch;
	margin-bottom: 1rem;
	font-size: clamp(1.6rem, 2.8vw, 2.4rem);
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.empty-copy > p:not(.archive-kicker) {
	max-width: 440px;
	margin-bottom: 2rem;
	color: rgba(255, 255, 255, 0.58);
	font-size: 0.92rem;
	line-height: 1.85;
}

/* Journal cards */
.journal-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
	width: 100%;
}

.journal-grid.is-single {
	grid-template-columns: minmax(0, 1fr);
}

.journal-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
	min-height: 340px;
	overflow: hidden;
	color: inherit;
	background: linear-gradient(135deg, rgba(14, 18, 26, 0.94), rgba(6, 8, 12, 0.94));
	border: 1px solid var(--atlas-line-strong);
	border-radius: 0.9rem;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
	animation: archive-rise 0.85s var(--atlas-ease) both;
	transition: transform 0.4s var(--atlas-ease), border-color 0.35s ease, box-shadow 0.35s ease;
}

.journal-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 80% 20%, rgba(172, 216, 239, 0.1), transparent 42%);
	pointer-events: none;
}

.journal-card:hover {
	transform: translateY(-4px);
	border-color: rgba(172, 216, 239, 0.36);
	box-shadow: 0 34px 95px rgba(0, 0, 0, 0.46);
}

.journal-card-content,
.journal-project-visual {
	position: relative;
	z-index: 1;
}

.journal-card-content {
	display: flex;
	flex-direction: column;
	padding: clamp(1.6rem, 3.2vw, 2.6rem);
}

.journal-card-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
	color: var(--atlas-accent);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.16em;
}

.journal-card-number {
	color: var(--atlas-faint);
	font-family: var(--atlas-mono);
	letter-spacing: 0;
}

.journal-card-title {
	max-width: 640px;
	margin-bottom: 0.8rem;
	font-family: 'Inter', 'Noto Serif SC', sans-serif;
	font-size: clamp(1.7rem, 3vw, 2.5rem);
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 1.15;
}

.journal-inline-math {
	display: inline-flex;
	margin: 0 0.08em;
	font-size: 0.92em;
	vertical-align: -0.06em;
}

.journal-inline-math .katex,
.project-equation .katex {
	font-size: 1em;
}

.journal-card-meta {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin-bottom: 1.1rem;
	color: var(--atlas-faint);
	font-family: var(--atlas-mono);
	font-size: 0.66rem;
	letter-spacing: 0.1em;
}

.journal-card-excerpt {
	max-width: 620px;
	margin-bottom: 1.6rem;
	color: rgba(255, 255, 255, 0.68);
	font-size: 0.9rem;
	line-height: 1.85;
}

.journal-card-action {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 1.4rem;
	margin-top: auto;
	padding: 0.75rem 0.95rem;
	color: rgba(236, 247, 255, 0.92);
	background: linear-gradient(135deg, rgba(67, 141, 188, 0.18), rgba(123, 87, 180, 0.12));
	border: 1px solid rgba(174, 221, 248, 0.28);
	border-radius: 12px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.11em;
	transition: border-color 0.25s ease;
}

.journal-card:hover .journal-card-action {
	border-color: rgba(202, 235, 255, 0.5);
}

.journal-card-action-arrow {
	font-size: 0.95rem;
	transition: transform 0.25s ease;
}

.journal-card:hover .journal-card-action-arrow {
	transform: translate(3px, -3px);
}

.journal-project-visual {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
	padding: clamp(1.5rem, 3vw, 2.2rem);
	background:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 100% 28px,
		linear-gradient(145deg, rgba(67, 141, 188, 0.14), rgba(123, 87, 180, 0.08));
	border-left: 1px solid var(--atlas-line);
}

.project-visual-label,
.project-visual-note {
	color: var(--atlas-faint);
	font-family: var(--atlas-mono);
	font-size: 0.6rem;
	letter-spacing: 0.12em;
}

.project-equation {
	display: grid;
	place-items: center;
	min-height: 130px;
	padding: 1rem 0;
	color: #fff;
	font-family: 'STIX Two Math', 'Cambria Math', 'Times New Roman', serif;
	font-size: clamp(1.4rem, 2.4vw, 2rem);
	line-height: 1.2;
	text-align: center;
	text-shadow: 0 0 34px rgba(172, 216, 239, 0.4);
}

.project-equation .katex-display {
	margin: 0;
}

/* 404 */
.not-found-container {
	position: relative;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	width: min(1380px, 100%);
	min-height: 100vh;
	margin: 0 auto;
	padding: 8rem clamp(1.25rem, 4.5vw, 4.5rem) 4rem;
}

.not-found-container > * {
	animation: archive-rise 0.9s var(--atlas-ease) both;
}

.not-found-container > :nth-child(2) { animation-delay: 0.08s; }
.not-found-container > :nth-child(3) { animation-delay: 0.16s; }
.not-found-container > :nth-child(4) { animation-delay: 0.24s; }

.error-code {
	margin-bottom: 1.25rem;
	font-size: clamp(6rem, 18vw, 14rem);
	font-weight: 600;
	letter-spacing: -0.07em;
	line-height: 0.85;
	color: transparent;
	background: var(--atlas-gradient);
	-webkit-background-clip: text;
	background-clip: text;
}

.error-title {
	margin-bottom: 1rem;
	font-size: clamp(1.5rem, 3vw, 2.4rem);
	font-weight: 500;
	letter-spacing: -0.03em;
}

.error-desc {
	max-width: 460px;
	margin-bottom: 2.2rem;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.95rem;
	line-height: 1.85;
}

/* Footer on archive pages */
body:has(.archive-page) .site-global-footer,
body:has(.not-found-container) .site-global-footer {
	width: min(1380px, calc(100% - 2.5rem));
	margin: 0 auto !important;
	padding: 1.6rem 0 2rem !important;
	border-top: 1px solid var(--atlas-line);
	color: var(--atlas-faint);
	font-family: var(--atlas-mono);
	font-size: 0.6rem;
	text-align: left;
}

@keyframes archive-rise {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: none; }
}

@keyframes sheet-develop {
	0%, 100% { border-color: rgba(255, 255, 255, 0.1); background-color: transparent; }
	50% { border-color: rgba(172, 216, 239, 0.28); background-color: rgba(172, 216, 239, 0.04); }
}

@media (max-width: 1024px) {
	.archive-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.archive-hero {
		grid-template-columns: 1fr;
		align-items: start;
	}

	.archive-stats {
		justify-content: start;
	}

	.journal-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.archive-page {
		padding-top: calc(7.5rem + env(safe-area-inset-top));
		padding-right: max(1.25rem, env(safe-area-inset-right));
		padding-bottom: calc(4rem + env(safe-area-inset-bottom));
		padding-left: max(1.25rem, env(safe-area-inset-left));
	}

	body:has(.archive-page) .site-global-footer,
	body:has(.not-found-container) .site-global-footer,
	body:has(.markdown-page) .site-global-footer {
		padding-bottom: max(2rem, calc(env(safe-area-inset-bottom) + 1rem)) !important;
	}

	.markdown-page {
		padding-top: calc(7rem + env(safe-area-inset-top));
		padding-bottom: calc(5rem + env(safe-area-inset-bottom));
	}

	.archive-stats {
		grid-auto-flow: row;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.25rem;
	}

	.archive-toolbar {
		flex-direction: column;
		align-items: stretch;
		gap: 0.6rem;
		padding: 0.75rem;
	}

	.archive-toolbar .filter-group {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.45rem;
	}

	.archive-toolbar .filter-list {
		width: 100%;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.archive-toolbar .filter-list::-webkit-scrollbar {
		display: none;
	}

	.archive-toolbar .filter-list li {
		min-height: 40px;
	}

	.archive-result {
		margin-left: 0;
	}

	.archive-grid {
		grid-template-columns: 1fr;
	}

	.archive-empty {
		grid-template-columns: 1fr;
	}

	.journal-card {
		grid-template-columns: 1fr;
	}

	.journal-project-visual {
		min-height: 180px;
		border-top: 1px solid var(--atlas-line);
		border-left: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.archive-hero > *,
	.archive-toolbar,
	.archive-empty,
	.frame-card,
	.journal-card,
	.not-found-container > *,
	.empty-sheet span {
		animation: none;
	}
}
