html[data-theme="light"] {
	--bg: #faf9f7;
	--text: #1c1917;
	--muted: #78716c;
	--line: rgba(28, 25, 23, 0.08);
	--surface: #ffffff;
	--shadow: 0 20px 50px rgba(28, 25, 23, 0.08);
	--mesh-1: rgba(251, 207, 232, 0.35);
	--mesh-2: rgba(153, 246, 228, 0.28);
	--entry: #db2777;
	--entry-soft: #fdf2f8;
	--portfolio: #0d9488;
	--portfolio-soft: #f0fdfa;
	--admin: #7c3aed;
	--admin-soft: #f5f3ff;
}

html[data-theme="dark"] {
	--bg: #0c0c0e;
	--text: #fafaf9;
	--muted: rgba(250, 250, 249, 0.45);
	--line: rgba(255, 255, 255, 0.08);
	--surface: rgba(255, 255, 255, 0.04);
	--shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	--mesh-1: rgba(219, 39, 119, 0.08);
	--mesh-2: rgba(13, 148, 136, 0.07);
	--entry: #f472b6;
	--entry-soft: rgba(219, 39, 119, 0.12);
	--portfolio: #2dd4bf;
	--portfolio-soft: rgba(13, 148, 136, 0.12);
	--admin: #a78bfa;
	--admin-soft: rgba(124, 58, 237, 0.12);
}

* { box-sizing: border-box; }

body {
	margin: 0;
	min-height: 100dvh;
	font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
	background: var(--bg);
	color: var(--text);
}

.scene { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.mesh {
	position: absolute; inset: -20%;
	background:
		radial-gradient(circle at 20% 20%, var(--mesh-1), transparent 42%),
		radial-gradient(circle at 80% 10%, var(--mesh-2), transparent 38%);
}
.grid-bg {
	position: absolute; inset: 0;
	background-image: linear-gradient(rgba(128,128,128,.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(128,128,128,.06) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(circle at center, black, transparent 78%);
}
.grain {
	position: absolute; inset: 0; opacity: .028;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; }
.orb-1 { width: 280px; height: 280px; background: var(--entry); top: 8%; left: -4%; }
.orb-2 { width: 240px; height: 240px; background: var(--portfolio); bottom: 10%; right: -2%; }

.hub {
	position: relative;
	z-index: 1;
	max-width: 720px;
	margin: 0 auto;
	padding: 56px 20px 40px;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 28px;
}

.hub-eyebrow {
	margin: 0 0 10px;
	color: var(--muted);
	font-size: .92rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.hub-title {
	margin: 0;
	font-family: "Instrument Serif", "Noto Serif SC", serif;
	font-size: clamp(2.4rem, 7vw, 3.6rem);
	line-height: 1.05;
	font-weight: 400;
}

.hub-title em { font-style: italic; color: var(--entry); }

.hub-sub {
	margin: 12px 0 0;
	color: var(--muted);
	font-size: 1.05rem;
}

.hub-choices {
	display: grid;
	gap: 14px;
}

.choice {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 22px 20px;
	border-radius: 20px;
	border: 1px solid var(--line);
	background: var(--surface);
	box-shadow: var(--shadow);
	text-decoration: none;
	color: inherit;
	transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease;
}

.choice:hover {
	transform: translateY(-3px);
	box-shadow: 0 24px 60px rgba(0,0,0,.1);
}

.choice-entry { background: linear-gradient(135deg, var(--surface), var(--entry-soft)); }
.choice-portfolio { background: linear-gradient(135deg, var(--surface), var(--portfolio-soft)); }
.choice-admin { background: linear-gradient(135deg, var(--surface), var(--admin-soft)); }

.choice-icon {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	font-size: 1.2rem;
	background: rgba(255,255,255,.6);
	border: 1px solid var(--line);
	flex-shrink: 0;
}

.choice-body {
	display: grid;
	gap: 4px;
	flex: 1;
}

.choice-body strong { font-size: 1.08rem; }
.choice-body span { color: var(--muted); font-size: .92rem; }

.choice-arrow {
	font-size: 1.2rem;
	color: var(--muted);
	transition: transform .2s ease;
}

.choice:hover .choice-arrow { transform: translate(3px, -3px); }

.hub-foot {
	margin-top: 8px;
	text-align: center;
	color: var(--muted);
	font-size: .88rem;
}

.reveal { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.16,1,.3,1) forwards; }
.reveal-d1 { animation-delay: .08s; }
.reveal-d2 { animation-delay: .16s; }

@keyframes rise {
	to { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
	.hub {
		padding: 48px clamp(16px, 4vw, 20px) 36px;
	}

	.choice {
		padding: 20px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.reveal { animation: none; opacity: 1; transform: none; }
	.choice { transition: none; }
}
