:root {
	color-scheme: dark;
	--bg: #09070d;
	--bg-raised: #0e0a14;
	--ink: #f7f2f8;
	--muted: #a89eac;
	--pink: #ff52bf;
	--purple: #9d6cff;
	--line: rgba(255, 255, 255, .13);
	--max: 1280px;
	--ticker-duration: 24s;
}

html[data-accent="purple"] { --pink: #b172ff; --purple: #7757ff; }
html[data-accent="rose"] { --pink: #ff668f; --purple: #c65cff; }
html[data-text="large"] { font-size: 17.5px; }
html[data-contrast="high"] { --ink: #fffaff; --muted: #d2c9d5; --line: rgba(255,255,255,.28); --bg: #060408; }
html[data-texture="off"] .grain { display: none; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; overflow-y: auto; }

body {
	margin: 0;
	min-width: 320px;
	position: relative;
	background:
		radial-gradient(ellipse at 85% 12%, rgba(157, 108, 255, .08), transparent 32rem),
		var(--bg);
	color: var(--ink);
	font-family: "Manrope", sans-serif;
	font-synthesis: none;
	overflow-x: hidden;
	overflow-y: visible;
	touch-action: pan-y;
}

img, svg { max-width: 100%; }

::selection { background: var(--pink); color: #170b15; }
a { color: inherit; text-decoration: none; }

.scroll-progress {
	position: fixed;
	inset: 0 auto auto 0;
	z-index: 100;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, var(--pink), var(--purple), var(--pink));
	background-size: 200% 100%;
	animation: progress-shimmer 3s linear infinite;
	transform: scaleX(0);
	transform-origin: left;
	will-change: transform;
}
@keyframes progress-shimmer { to { background-position: 200% 0; } }

.grain {
	position: fixed;
	inset: 0;
	z-index: 90;
	pointer-events: none;
	opacity: .035;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.pointer-glow {
	position: fixed;
	z-index: -1;
	left: 0;
	top: 0;
	width: 26rem;
	height: 26rem;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255,82,191,.085), rgba(157,108,255,.035) 40%, transparent 70%);
	transform: translate3d(calc(var(--mouse-x, -30rem) - 50%), calc(var(--mouse-y, -30rem) - 50%), 0);
	pointer-events: none;
	will-change: transform;
}

.runner-character {
	position: absolute;
	z-index: 80;
	left: 0;
	top: 0;
	width: 32px;
	height: 32px;
	perspective: 130px;
	cursor: grab;
	touch-action: none;
	user-select: none;
	will-change: transform;
}
.runner-character.is-grabbed { cursor: grabbing; }
.cube-speech { position: absolute; z-index: 12; left: 50%; bottom: calc(100% + 14px); width: max-content; max-width: 210px; padding: .6rem .72rem; border: 1px solid rgba(255,82,191,.42); border-radius: 10px 10px 10px 2px; background: rgba(11,8,15,.94); color: #eee5f1; font: .65rem/1.45 "DM Mono",monospace; letter-spacing: .02em; box-shadow: 0 8px 24px rgba(0,0,0,.35); opacity: 0; transform: translate(-50%,7px) scale(.94); transition: opacity .2s,transform .25s; pointer-events: none; }
.cube-speech::after { content: ""; position: absolute; left: 17px; bottom: -6px; width: 10px; height: 10px; border-right: 1px solid rgba(255,82,191,.42); border-bottom: 1px solid rgba(255,82,191,.42); background: rgba(11,8,15,.94); transform: rotate(45deg); }
.cube-speech.is-speaking { opacity: 1; transform: translate(-50%,0) scale(1); }
.runner-character.is-teleporting .runner-cube { animation: cube-vanish .7s ease-in-out infinite alternate; }
.runner-character.is-phasing .runner-cube { opacity: .35; filter: saturate(2) brightness(1.8); animation: cube-phase .16s steps(2) infinite; }
.runner-character.is-fleeing { pointer-events: none; }
.runner-character.cube-hit .runner-cube { animation: cube-flash .2s ease; }
@keyframes cube-flash { 0%,100% { filter: none; } 40% { filter: brightness(1.9) saturate(1.7) drop-shadow(0 0 6px var(--pink)); } }
.runner-character.damage-mid .runner-cube { filter: saturate(.9) contrast(1.05); }
.runner-character.damage-low .runner-cube { filter: saturate(.74) brightness(.9); }
@keyframes cube-vanish { to { transform: rotateX(210deg) rotateY(280deg) scale(.18); filter: brightness(2); opacity: .2; } }
@keyframes cube-phase { 50% { opacity: .12; transform: translateX(3px); } }
.grapple-line { position: absolute; z-index: -1; left: 16px; top: 16px; width: var(--rope-length, 0px); height: 2px; border-radius: 2px; background: repeating-linear-gradient(90deg,#d8cce0 0 5px,#73597e 5px 8px); transform: rotate(var(--rope-angle, 0deg)); transform-origin: left center; opacity: 0; filter: drop-shadow(0 0 3px rgba(255,82,191,.45)); }
.grapple-line.is-active { opacity: 1; }
.grapple-line i { position: absolute; right: -5px; top: -4px; width: 8px; height: 8px; border: 2px solid var(--pink); border-left-color: transparent; border-bottom-color: transparent; transform: rotate(45deg); }
.runner-cube { position: absolute; inset: 5px; transform-style: preserve-3d; will-change: transform; transition: opacity .35s; }
/* a 3x3x3 lattice of mini-cubes: knocking voxels out leaves real gaps */
.vx { position: absolute; width: 6.4px; height: 6.4px; left: calc(50% - 3.2px); top: calc(50% - 3.2px); transform-style: preserve-3d; transform: translate3d(var(--vx,0), var(--vy,0), var(--vz,0)); }
.vx .vf { position: absolute; inset: 0; border: .5px solid rgba(255,255,255,.46); background: linear-gradient(145deg, rgba(255,82,191,calc(.84 * var(--vx-shade,1))), rgba(112,50,177,calc(.7 * var(--vx-shade,1)))); box-shadow: inset 0 0 4px rgba(255,255,255,.12); backface-visibility: hidden; }
.vx.vx-edge .vf { border-color: rgba(255,255,255,.8); box-shadow: inset 0 0 4px rgba(255,255,255,.2); }
.vf-front { transform: translateZ(3.2px); }
.vf-back { transform: rotateY(180deg) translateZ(3.2px); filter: brightness(.82); }
.vf-right { transform: rotateY(90deg) translateZ(3.2px); filter: brightness(.92); }
.vf-left { transform: rotateY(-90deg) translateZ(3.2px); filter: brightness(.88); }
.vf-top { transform: rotateX(90deg) translateZ(3.2px); background: linear-gradient(145deg,#d7a4ff,#8a55ff); }
.vf-bottom { transform: rotateX(-90deg) translateZ(3.2px); filter: brightness(.66); }
.vx-eyes { position: absolute; left: .9px; top: 1.7px; width: 1px; height: 1.1px; border-radius: 50%; background: #0c0710; box-shadow: 3.4px 0 0 #0c0710; transform-origin: center; animation: vx-blink 5.2s steps(1) infinite; }
.vx-eyes::after { content: ""; position: absolute; left: 1.3px; top: 2px; width: 1.9px; height: .8px; border-radius: 0 0 2px 2px; background: #0c0710; }
@keyframes vx-blink { 0%,45%,48%,100% { transform: scaleY(1); } 46%,47% { transform: scaleY(.12); } }
.runner-character.mood-happy .vx-eyes::after { width: 2.4px; height: 1px; left: 1px; border-radius: 0 0 3px 3px; }
.runner-character.mood-worried .vx-eyes::after { top: 2.3px; border-radius: 3px 3px 0 0; }
.runner-character.mood-angry .vx-eyes { filter: drop-shadow(0 0 1px #ff317f); }
.runner-character.mood-hurt .vx-eyes::after { width: 1.3px; left: 1.6px; border-radius: 50%; }
.cube-dust { position: absolute; z-index: 76; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,82,191,.55); pointer-events: none; animation: cube-dust .55s ease-out forwards; }
@keyframes cube-dust { to { opacity: 0; transform: translate(var(--dust-x,0),var(--dust-y,-10px)) scale(.2); } }
.vx-grow { animation: vx-grow .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes vx-grow { from { transform: translate3d(var(--vx,0),var(--vy,0),var(--vz,0)) scale(.05); filter: brightness(2.6); } to { transform: translate3d(var(--vx,0),var(--vy,0),var(--vz,0)) scale(1); } }
.runner-shadow { position: absolute; z-index: -1; left: 5px; bottom: -7px; width: 22px; height: 6px; border-radius: 50%; background: rgba(255,82,191,.28); filter: blur(3px); transform: translateX(var(--shadow-skew, 0)) scaleX(var(--shadow-scale, 1)); transition: transform .08s linear; }
.temp-platform { position: absolute; z-index: 65; height: 7px; border: 1px solid rgba(255,255,255,.4); border-radius: 7px; background: linear-gradient(90deg,rgba(255,82,191,.3),rgba(157,108,255,.7)); box-shadow: 0 0 18px rgba(157,108,255,.28); transform: rotate(var(--platform-angle,0deg)) scaleX(0); transform-origin: center; animation: platform-build .45s cubic-bezier(.2,.9,.2,1) forwards, platform-flicker 2s 1s ease-in-out infinite; pointer-events: none; }
.temp-platform::after { content: ""; position: absolute; inset: 1px 6px; background: repeating-linear-gradient(90deg,transparent 0 7px,rgba(255,255,255,.28) 8px 9px); }
@keyframes platform-build { to { transform: rotate(var(--platform-angle,0deg)) scaleX(1); } }
@keyframes platform-flicker { 50% { opacity: .72; filter: brightness(1.3); } }
.cube-portal { position: absolute; z-index: 64; width: 70px; height: 18px; border: 4px solid currentColor; border-radius: 50%; transform: translate(-50%,-50%) scale(0); box-shadow: 0 0 14px currentColor, inset 0 0 12px currentColor; animation: portal-open .42s cubic-bezier(.2,1.5,.3,1) forwards, portal-pulse 1.2s .42s ease-in-out infinite; pointer-events: none; }
.cube-portal::before { content: ""; position: absolute; inset: 2px; border-radius: inherit; background: rgba(8,6,12,.82); }
.cube-portal.orange { color: #ff8b2b; } .cube-portal.blue { color: #55a7ff; }
@keyframes portal-open { to { transform: translate(-50%,-50%) scale(1); } }
@keyframes portal-pulse { 50% { filter: brightness(1.6); box-shadow: 0 0 25px currentColor,inset 0 0 16px currentColor; } }
/* debris — real falling chunks you can pick up and throw back */
.cube-shard { position: absolute; z-index: 79; left: 0; top: 0; width: var(--shard-size,8px); height: var(--shard-size,8px); border-radius: 1.5px; border: 1px solid rgba(255,255,255,.5); background: linear-gradient(150deg, hsl(calc(305 + var(--shard-tint,0) * 35), 82%, 64%), hsl(calc(264 + var(--shard-tint,0) * 28), 58%, 40%)); box-shadow: inset 0 0 4px rgba(255,255,255,.22), 0 2px 5px rgba(0,0,0,.45), 0 0 8px rgba(255,82,191,.18); cursor: grab; touch-action: none; will-change: transform; }
.cube-shard::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 38%; border-radius: 1.5px 1.5px 0 0; background: linear-gradient(180deg, rgba(255,255,255,.42), transparent); }
.cube-shard:hover { box-shadow: inset 0 0 4px rgba(255,255,255,.32), 0 3px 8px rgba(0,0,0,.5), 0 0 12px rgba(255,82,191,.4); }
.cube-shard.is-held { cursor: grabbing; box-shadow: inset 0 0 5px rgba(255,255,255,.45), 0 5px 14px rgba(0,0,0,.55), 0 0 16px rgba(255,82,191,.55); }

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 50;
	width: 100%;
	height: 86px;
	display: flex;
	justify-content: center;
	align-items: center;
	pointer-events: none;
	opacity: 0;
	transform: translateY(-100%);
	transition: height .4s cubic-bezier(.2,.8,.2,1), transform .45s cubic-bezier(.3,.9,.2,1), opacity .35s ease;
}
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(9,7,13,.86), rgba(9,7,13,.42) 68%, transparent);
	backdrop-filter: blur(15px) saturate(1.25);
	-webkit-backdrop-filter: blur(15px) saturate(1.25);
	border-bottom: 1px solid transparent;
	opacity: 0;
	transition: opacity .45s ease, border-color .45s ease;
}
.site-header.is-scrolled { height: 66px; }
.site-header.is-scrolled::before { opacity: 1; border-bottom-color: var(--line); }
.site-header.is-visible { opacity: 1; transform: translateY(0); }
.header-inner {
	position: relative;
	pointer-events: auto;
	width: min(calc(100% - 64px), var(--max));
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	animation: header-rise .85s .1s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes header-rise { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }

.wordmark { position: relative; display: inline-flex; align-items: baseline; isolation: isolate; font: 800 .98rem/1 "Syne", sans-serif; letter-spacing: .12em; perspective: 140px; }
.wordmark::before { content: ""; position: absolute; left: 0; right: 14%; bottom: -.42rem; height: 1px; background: linear-gradient(90deg,var(--pink),transparent); opacity: 0; transform: scaleX(.2); transform-origin: left; }
.wordmark::after { content: attr(data-wordmark); position: absolute; left: 0; top: 0; z-index: -1; color: var(--purple); opacity: 0; pointer-events: none; }
.wordmark-text { display: inline-flex; color: var(--ink); transition: background-position .7s ease; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.wordmark-text { background: linear-gradient(100deg, var(--ink) 28%, var(--pink) 50%, var(--ink) 72%); background-size: 230% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
}
.wordmark-letter { display: inline-block; transform-origin: center 70%; will-change: transform,filter,opacity; }
.wordmark:hover .wordmark-text { background-position: 100% 0; }
.wordmark-dot { color: var(--pink); animation: wordmark-pulse 2.6s ease-in-out infinite; }
@keyframes wordmark-pulse { 50% { opacity: .35; text-shadow: 0 0 14px var(--pink); } }

.wordmark.wm-wave .wordmark-letter { animation: wm-wave .72s cubic-bezier(.2,.85,.3,1) both; animation-delay: calc(var(--letter-index) * 55ms); }
@keyframes wm-wave { 0%,100% { transform: translateY(0) rotate(0); } 42% { transform: translateY(-7px) rotate(-5deg); color: var(--pink); } 72% { transform: translateY(2px) rotate(3deg); } }
.wordmark.wm-glitch { animation: wm-glitch-body .48s steps(2,end) 2; }
.wordmark.wm-glitch::after { opacity: .75; animation: wm-glitch-copy .62s steps(3,end) both; }
.wordmark.wm-glitch .wordmark-text { filter: drop-shadow(-2px 0 var(--pink)) drop-shadow(2px 0 var(--purple)); }
@keyframes wm-glitch-body { 25% { transform: translateX(2px) skewX(-8deg); } 50% { transform: translateX(-2px) skewX(5deg); } 75% { transform: translate(1px,-1px); } }
@keyframes wm-glitch-copy { 0% { clip-path: inset(0 0 68% 0); transform: translate(4px,-2px); } 35% { clip-path: inset(45% 0 24% 0); transform: translate(-5px,1px); } 70% { clip-path: inset(76% 0 0 0); transform: translate(3px,2px); } 100% { opacity: 0; } }
.wordmark.wm-outline .wordmark-letter { animation: wm-outline .95s ease both; }
.wordmark.wm-outline::before { animation: wm-line .9s ease both; }
@keyframes wm-outline { 35%,72% { color: transparent; -webkit-text-fill-color: transparent; -webkit-text-stroke: 1px var(--pink); transform: scale(1.08); } }
@keyframes wm-line { 35%,70% { opacity: 1; transform: scaleX(1); } }
.wordmark.wm-flip .wordmark-letter { animation: wm-flip .85s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--letter-index) * 48ms); }
@keyframes wm-flip { 0% { transform: rotateX(0); } 45% { transform: rotateX(100deg) translateY(-3px); opacity: .1; } 100% { transform: rotateX(360deg); opacity: 1; } }
.wordmark.wm-scatter .wordmark-letter { animation: wm-scatter 1.05s cubic-bezier(.18,.8,.24,1) both; animation-delay: calc(var(--letter-index) * 28ms); }
@keyframes wm-scatter { 0%,100% { transform: none; filter: blur(0); } 36% { transform: translate(var(--wm-x),var(--wm-y)) rotate(var(--wm-r)); filter: blur(1px); opacity: .55; } 72% { transform: translate(1px,-1px) rotate(-2deg); } }
.wordmark.wm-neon { animation: wm-neon .95s ease both; }
.wordmark.wm-neon .wordmark-dot { animation: wm-dot-orbit .95s ease both; }
@keyframes wm-neon { 25%,70% { filter: drop-shadow(0 0 4px var(--pink)) drop-shadow(0 0 12px var(--purple)); letter-spacing: .2em; } }
@keyframes wm-dot-orbit { 45% { transform: translate(7px,-5px) scale(1.8); text-shadow: 0 0 12px var(--pink); } }
.wordmark.wm-scan .wordmark-text { animation: wm-scan .9s linear both; }
.wordmark.wm-scan::before { animation: wm-line .9s ease both; }
@keyframes wm-scan { 0% { background-position: 0 0; } 45% { background-position: 100% 0; filter: brightness(1.8); } 100% { background-position: 0 0; } }
.wordmark.wm-crush .wordmark-letter:nth-child(odd) { animation: wm-crush-top .8s ease both; }
.wordmark.wm-crush .wordmark-letter:nth-child(even) { animation: wm-crush-bottom .8s ease both; }
@keyframes wm-crush-top { 45% { transform: translateY(4px) scaleY(.45); color: var(--pink); } }
@keyframes wm-crush-bottom { 45% { transform: translateY(-4px) scaleY(1.45); } }

.site-nav { display: flex; gap: clamp(1.1rem, 3vw, 2.8rem); justify-content: center; }
.nav-link { position: relative; padding: .4rem 0; color: var(--muted); font-size: .69rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: color .3s; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; border-radius: 2px; background: linear-gradient(90deg, var(--pink), var(--purple)); transition: right .4s cubic-bezier(.2,.85,.2,1); }
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }
.nav-link.is-active { color: var(--ink); }

.online { justify-self: end; margin: 0; display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .69rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.online-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.online-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--pink); opacity: .6; animation: online-ping 2.4s ease-out infinite; }
.online-text { color: inherit; white-space: nowrap; }
@keyframes online-ping { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(2.3); opacity: 0; } }

main { overflow: visible; }
.overline, .section-label { font: 500 .67rem/1.4 "DM Mono", monospace; letter-spacing: .18em; text-transform: uppercase; }
.overline { margin: 0; color: var(--pink); }
.section-label { display: flex; align-self: start; align-items: center; height: max-content; gap: 1rem; color: var(--muted); }
.section-label span { color: var(--pink); }
.section-label::after { content: ""; align-self: center; width: 3rem; height: 1px; background: linear-gradient(90deg, var(--pink), transparent); transform: scaleX(0); transform-origin: left; transition: transform .8s .15s ease; }
.section-label.is-visible::after { transform: scaleX(1); }
h1, h2, p { margin-top: 0; }

.hero {
	position: relative;
	min-height: max(680px, 100svh);
	width: min(calc(100% - 64px), var(--max));
	margin: 0 auto;
	padding: clamp(125px, 17vh, 170px) clamp(1.5rem, 5vw, 5rem) 54px;
	display: flex;
	align-items: center;
	border-inline: 1px solid var(--line);
	isolation: isolate;
}

.hero-copy { position: relative; z-index: 2; width: 100%; }
.hero h1 {
	width: 100%;
	margin: 2.5rem 0 4rem;
	padding: 0 0 .14em;
	font: 800 clamp(4.8rem, 13.5vw, 11rem)/.92 "Syne", sans-serif;
	letter-spacing: -.09em;
	text-transform: uppercase;
	overflow: visible;
}
.hero-name { display: flex; width: 100%; align-items: baseline; white-space: nowrap; }
.hero-name i { display: block; color: var(--ink); font-style: normal; transform: translateY(1em) rotate(5deg); opacity: 0; animation: letter-in .85s cubic-bezier(.16,.8,.25,1) forwards; animation-delay: calc(.12s + var(--letter) * .055s); }
.hero-name i:nth-child(1) { --letter: 0; }
.hero-name i:nth-child(2) { --letter: 1; }
.hero-name i:nth-child(3) { --letter: 2; }
.hero-name i:nth-child(4) { --letter: 3; }
.hero-name i:nth-child(5) { --letter: 4; }
.hero-name i:nth-child(6) { --letter: 5; }
.hero-name i:nth-child(7) { --letter: 6; }
.hero-name .dot { color: var(--pink); }
@keyframes letter-in { to { opacity: 1; transform: translateY(0) rotate(0); } }
.hero-intro { max-width: 760px; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.hero-intro p { margin: 0; color: #d4cbd7; font-size: clamp(1.05rem, 1.8vw, 1.45rem); }
.hero-intro a { padding-bottom: .45rem; border-bottom: 1px solid var(--ink); font-size: .67rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.hero-intro a span { display: inline-block; color: var(--pink); margin-left: .65rem; animation: arrow-bob 1.8s ease-in-out infinite; }
@keyframes arrow-bob { 50% { transform: translateY(4px); } }
.hero-intro a:hover span { animation-play-state: paused; transform: translateY(2px); }
.hero-meta { position: absolute; right: clamp(1.5rem, 5vw, 5rem); bottom: 54px; margin: 0; color: var(--muted); font: .62rem "DM Mono", monospace; letter-spacing: .15em; text-transform: uppercase; }
.hero-meta span { color: var(--pink); }
.hero-tags { position: absolute; right: clamp(1.5rem,5vw,5rem); top: 126px; display: flex; gap: .45rem; }
.hero-tags span { padding: .45rem .72rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font: .56rem "DM Mono",monospace; letter-spacing: .12em; text-transform: uppercase; animation: tag-float 4s ease-in-out infinite; }
.hero-tags span:nth-child(2) { animation-delay: -.9s; } .hero-tags span:nth-child(3) { animation-delay: -1.8s; }
@keyframes tag-float { 50% { transform: translateY(-4px); border-color: rgba(255,82,191,.38); color: var(--ink); } }
.hero-edition { position: absolute; left: 1.25rem; bottom: 42px; margin: 0; color: rgba(255,255,255,.32); writing-mode: vertical-rl; font: .55rem "DM Mono",monospace; letter-spacing: .18em; }

.hero-lines { position: absolute; z-index: -1; inset: 11% -12% 4% 38%; transform: skewX(-14deg); opacity: .55; }
.hero-lines i { position: absolute; right: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,82,191,.4), transparent); transform: translateX(var(--line-shift, 0)); }
.hero-lines i:nth-child(1) { top: 12%; }
.hero-lines i:nth-child(2) { top: 38%; width: 78%; }
.hero-lines i:nth-child(3) { top: 64%; width: 92%; }
.hero-lines i:nth-child(4) { top: 88%; width: 64%; }
.hero-lines i:nth-child(odd) { animation: line-drift 7s ease-in-out infinite alternate; }
.hero-lines i:nth-child(even) { animation: line-drift 9s ease-in-out -3s infinite alternate-reverse; }
@keyframes line-drift { to { margin-right: 7%; opacity: .35; } }

.flow-section {
	position: relative;
	width: min(calc(100% - 64px), var(--max));
	margin: 0 auto;
	padding: clamp(7rem, 11vw, 10rem) 0;
	border-top: 1px solid var(--line);
}

.about { display: grid; grid-template-columns: 20% 1fr; gap: 4%; }
.about-main h2 {
	max-width: 1000px;
	margin: 0 0 clamp(3rem, 6vw, 5rem);
	padding: 0 0 .28em;
	font: 600 clamp(2.4rem, 5vw, 5rem)/1.2 "Syne", sans-serif;
	letter-spacing: -.055em;
	overflow: visible;
}
.about-notes { max-width: 540px; margin-left: 18%; }
.about-notes > p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.85; }
.people-head { margin-top: 4.5rem; display: flex; align-items: center; gap: 1.1rem; }
.people-head .overline { color: var(--muted); white-space: nowrap; }
.people-head .overline::before { content: "✦ "; color: var(--pink); }
.people-count { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

/* a flexible card grid — flows from 1 to N people without ever looking empty */
.people-grid { margin-top: 1.7rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 1rem; }
.person-card {
	position: relative;
	min-width: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	padding: 1.5rem 1.4rem 1.7rem;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.008));
	isolation: isolate;
	transition: transform .5s cubic-bezier(.2,.8,.2,1), border-color .4s, box-shadow .5s;
}
.person-card[data-wallpaper] {
	background:
		linear-gradient(165deg, rgba(8,6,12,.82), rgba(8,6,12,.64) 42%, rgba(8,6,12,.9)),
		radial-gradient(circle at 82% 14%, hsla(var(--card-accent), 90%, 62%, .18), transparent 34%),
		linear-gradient(160deg, rgba(255,255,255,.03), rgba(255,255,255,.008));
}
.person-card[data-wallpaper]::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: inherit;
	background-image:
		linear-gradient(180deg, rgba(6,4,10,.18), rgba(6,4,10,.72)),
		var(--card-wallpaper);
	background-position: center, var(--card-wallpaper-position, center);
	background-size: cover, cover;
	background-repeat: no-repeat;
	opacity: .55;
	transform: scale(var(--card-zoom-rest, 1.02));
	filter: saturate(.92) contrast(1.02) brightness(.7);
	transition: opacity .45s ease, transform .6s cubic-bezier(.2,.8,.2,1), filter .45s ease;
	pointer-events: none;
}
.person-card[data-wallpaper]:hover::after {
	opacity: .68;
	transform: scale(var(--card-zoom-hover, 1.06));
	filter: saturate(1) contrast(1.06) brightness(.76);
}
.person-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(140deg, hsl(var(--card-accent), 90%, 66%), transparent 58%);
	-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;
	opacity: 0;
	transition: opacity .45s;
	pointer-events: none;
}
.person-card:hover { transform: translateY(-7px); border-color: transparent; box-shadow: 0 26px 55px -24px hsla(var(--card-accent), 80%, 55%, .6); }
.person-card:hover::before { opacity: 1; }
.person-card-glow { position: absolute; z-index: 1; top: var(--glow-y, -38%); left: var(--glow-x, 70%); width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, hsla(var(--card-accent), 85%, 62%, .26), transparent 70%); transform: translate(-50%, -50%); opacity: .45; transition: opacity .4s; pointer-events: none; }
.person-card:hover .person-card-glow { opacity: 1; }
.person-card-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.person-avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(150deg, hsl(var(--card-accent), 86%, 63%), hsl(calc(var(--card-accent) - 38), 70%, 46%)); box-shadow: 0 7px 18px -7px hsla(var(--card-accent), 80%, 55%, .75), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.person-avatar b { font: 700 1.28rem "Syne", sans-serif; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.35); }
.person-avatar img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.person-card:hover .person-avatar { transform: rotate(-7deg) scale(1.09); }
.person-role { padding: .35rem .68rem; border: 1px solid hsla(var(--card-accent), 70%, 62%, .42); border-radius: 999px; color: hsl(var(--card-accent), 82%, 74%); font: .54rem "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.person-name { position: relative; z-index: 2; margin-top: .45rem; font: 600 1.55rem "Syne", sans-serif; letter-spacing: -.02em; }
.person-note { position: relative; z-index: 2; color: #dad1de; text-shadow: 0 1px 12px rgba(0,0,0,.36); font-size: .82rem; }
.person-sigil {
	position: absolute;
	right: 1.15rem;
	bottom: .98rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	line-height: 1;
	color: hsla(var(--card-accent), 80%, 70%, .5);
	font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
	transition: transform .55s cubic-bezier(.2,.8,.2,1), color .4s, opacity .3s;
}
.person-card:hover .person-sigil { transform: scale(1.3) rotate(9deg); color: hsl(var(--card-accent), 86%, 72%); }

.ticker { width: calc(100% + 4rem); margin: 0 -2rem; padding: 1.45rem 0; background: var(--pink); color: #170b15; transform: rotate(-1deg); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: marquee var(--ticker-duration) linear infinite; will-change: transform; }
.ticker-group { display: flex; flex-shrink: 0; align-items: center; gap: clamp(1.5rem, 3vw, 3.2rem); padding-right: clamp(1.5rem, 3vw, 3.2rem); }
.ticker p { margin: 0; font: 700 clamp(1.25rem, 2.2vw, 2rem)/1 "Syne", sans-serif; text-transform: uppercase; white-space: nowrap; }
.ticker span { font-size: 1rem; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.facts-layout { margin-top: 4.5rem; display: grid; grid-template-columns: .75fr 1.25fr; gap: 8vw; }
.facts h2 { margin: 0; padding-bottom: .1em; font: 600 clamp(3rem, 6vw, 6rem)/.98 "Syne", sans-serif; letter-spacing: -.06em; }
.fact-list { margin: 0; border-top: 1px solid var(--line); }
.fact-list div { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.fact-list dt { font-weight: 600; }
.fact-list dd { margin: 0; color: var(--muted); font-size: .9rem; }

.things-intro { margin: 4.5rem 0 5rem 20%; }
.things h2 { max-width: 1000px; margin: 0; padding-bottom: .18em; font: 700 clamp(3.6rem, 8vw, 8rem)/.95 "Syne", sans-serif; letter-spacing: -.07em; text-transform: uppercase; overflow: visible; }
.hobby-layout { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hobby { position: relative; min-width: 0; min-height: 430px; padding: clamp(1.5rem,3vw,3rem); overflow: hidden; }
.hobby + .hobby { border-left: 1px solid var(--line); }
.hobby-head { display: flex; align-items: baseline; justify-content: space-between; }
.hobby-head span { color: var(--pink); font: .62rem "DM Mono", monospace; }
.hobby h3 { margin: 0; font: 600 clamp(2.5rem,4vw,4rem) "Syne", sans-serif; letter-spacing: -.05em; }
.piano { position: absolute; left: clamp(1.5rem,3vw,3rem); right: clamp(1.5rem,3vw,3rem); bottom: 2.5rem; height: 238px; padding: 14px 14px 16px; border: 1px solid rgba(255,255,255,.17); border-radius: 9px 9px 18px 18px; background: linear-gradient(165deg,#25202b,#0c0910 62%); box-shadow: 0 24px 55px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.12); transform: perspective(850px) rotateX(4deg); }
.piano::before, .piano::after { content: ""; position: absolute; bottom: -18px; width: 10px; height: 20px; border-radius: 0 0 5px 5px; background: #0a080d; }
.piano::before { left: 8%; } .piano::after { right: 8%; }
.piano-panel { height: 49px; display: flex; align-items: center; gap: 7px; padding: 0 10px; color: rgba(255,255,255,.45); }
.piano-panel span { margin-right: auto; font: 700 .52rem "Syne",sans-serif; letter-spacing: .18em; }
.piano-panel i { width: 5px; height: 5px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px var(--pink); animation: piano-led 1.8s infinite alternate; }
.piano-panel i:nth-of-type(2) { background: var(--purple); animation-delay: -.6s; } .piano-panel i:nth-of-type(3) { animation-delay: -1.2s; }
.piano-panel b { width: 18px; height: 7px; border-radius: 4px; border: 1px solid rgba(255,255,255,.12); }
@keyframes piano-led { to { opacity: .25; } }
.piano-keys { position: relative; height: 158px; border: 5px solid #08070a; border-top-width: 7px; border-radius: 3px 3px 9px 9px; overflow: hidden; perspective: 650px; }
.white-keys { height: 100%; display: grid; grid-template-columns: repeat(12,1fr); gap: 2px; background: #09070b; }
.white-keys i { min-width: 0; border-radius: 0 0 4px 4px; background: linear-gradient(100deg,#d5cfd7 0%,#fffaff 18%,#d3ccd5 88%,#aba3ae 100%); box-shadow: inset 0 -12px 15px rgba(0,0,0,.12); transform-origin: top; }
.white-keys i:nth-child(2), .white-keys i:nth-child(6), .white-keys i:nth-child(9) { animation: white-key-press 4.2s ease-in-out infinite; }
.white-keys i:nth-child(6) { animation-delay: -.7s; } .white-keys i:nth-child(9) { animation-delay: -1.4s; }
.black-keys { position: absolute; inset: 0; pointer-events: none; }
.black-keys b { position: absolute; left: var(--x); top: 0; width: 5.4%; height: 61%; border-radius: 0 0 4px 4px; background: linear-gradient(90deg,#050406,#28222d 56%,#070509); box-shadow: 0 7px 7px rgba(0,0,0,.48), inset 0 -5px 3px rgba(255,255,255,.05); transform: translateX(-50%); transform-origin: top; }
.black-keys b:nth-child(2), .black-keys b:nth-child(5), .black-keys b:nth-child(7) { animation: black-key-press 4.2s ease-in-out infinite -.35s; }
@keyframes white-key-press { 0%,82%,100% { transform: rotateX(0); filter: brightness(1); } 86%,90% { transform: rotateX(-7deg); filter: brightness(.76); } }
@keyframes black-key-press { 0%,79%,100% { transform: translateX(-50%) rotateX(0); } 84%,89% { transform: translateX(-50%) rotateX(-9deg); filter: brightness(1.5); } }
.controller { --controller-scale: 1; position: absolute; top: 42%; left: 50%; width: 330px; height: 190px; transform: translate(-50%,-50%) rotate(-3deg) scale(var(--controller-scale)); filter: drop-shadow(0 28px 28px rgba(0,0,0,.48)); animation: controller-float 4.8s ease-in-out infinite; }
@keyframes controller-float { 50% { transform: translate(-50%,calc(-50% - 9px)) rotate(2deg) scale(var(--controller-scale)); filter: drop-shadow(0 38px 34px rgba(255,82,191,.12)); } }
.controller-shell { position: absolute; inset: 26px 24px 28px; border: 1px solid rgba(255,255,255,.2); border-radius: 44% 44% 38% 38% / 42% 42% 54% 54%; background: linear-gradient(145deg,#292330,#120e17 64%); box-shadow: inset 0 2px 2px rgba(255,255,255,.12), inset 0 -14px 22px rgba(0,0,0,.32); }
.controller-shell::before, .controller-shell::after { content: ""; position: absolute; z-index: -1; bottom: -31px; width: 92px; height: 94px; border: 1px solid rgba(255,255,255,.17); background: linear-gradient(155deg,#211b27,#0d0a10); }
.controller-shell::before { left: 7px; border-radius: 38% 22% 65% 38%; transform: rotate(16deg); }
.controller-shell::after { right: 7px; border-radius: 22% 38% 38% 65%; transform: rotate(-16deg); }
.controller-seam { position: absolute; left: 47px; right: 47px; top: 43px; height: 88px; border-bottom: 1px solid rgba(255,255,255,.07); border-radius: 50%; }
.touchpad { position: absolute; left: 50%; top: 38px; width: 78px; height: 48px; border: 1px solid rgba(255,255,255,.15); border-radius: 8px 8px 14px 14px; background: linear-gradient(140deg,#151019,#27202c); transform: translateX(-50%); box-shadow: inset 0 0 12px rgba(0,0,0,.35); }
.touchpad i { position: absolute; left: 50%; top: 9px; width: 30px; height: 2px; background: var(--pink); transform: translateX(-50%); box-shadow: 0 0 8px var(--pink); animation: touch-light 2.2s ease-in-out infinite; }
@keyframes touch-light { 50% { width: 50px; opacity: .4; } }
.speaker { position: absolute; left: 50%; top: 91px; display: flex; gap: 4px; transform: translateX(-50%); }
.speaker i { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.22); }
.stick { position: absolute; width: 38px; height: 38px; border: 5px solid #0a080c; border-radius: 50%; background: radial-gradient(circle,#3b3342 0 32%,#17121b 35% 60%,#08070a 62%); box-shadow: 0 3px 5px rgba(0,0,0,.5); }
.stick i { position: absolute; inset: 7px; border: 1px dotted rgba(255,255,255,.15); border-radius: 50%; }
.stick-left { left: 91px; top: 101px; } .stick-right { right: 91px; top: 101px; }
.dpad { position: absolute; left: 54px; top: 67px; width: 54px; height: 20px; border-radius: 5px; background: linear-gradient(#26202b,#09070c); box-shadow: 0 2px 4px rgba(0,0,0,.5); }
.dpad::after { content: ""; position: absolute; left: 17px; top: -17px; width: 20px; height: 54px; border-radius: 5px; background: inherit; }
.dpad i { position: absolute; z-index: 2; left: 23px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #09070c; }
.button { position: absolute; width: 25px; height: 25px; display: grid; place-items: center; border: 2px solid #0a080d; border-radius: 50%; color: rgba(255,255,255,.7); font: 600 .52rem "DM Mono",monospace; box-shadow: inset 0 2px 2px rgba(255,255,255,.18),0 3px 5px rgba(0,0,0,.5); animation: button-pulse 2.4s ease-in-out infinite; }
.button-y { right: 65px; top: 48px; background: #c09b43; } .button-x { right: 91px; top: 73px; background: #456fc0; animation-delay: -.4s; } .button-a { right: 65px; top: 98px; background: #47a96a; animation-delay: -.8s; } .button-b { right: 39px; top: 73px; background: #c24c72; animation-delay: -1.2s; }
@keyframes button-pulse { 50% { filter: brightness(1.35); box-shadow: inset 0 2px 2px rgba(255,255,255,.25),0 0 12px currentColor; } }
.menu { position: absolute; top: 84px; width: 13px; height: 5px; border-radius: 4px; background: rgba(255,255,255,.17); }
.menu-left { left: 118px; } .menu-right { right: 118px; }
.controller-light { position: absolute; left: 50%; bottom: 43px; width: 26px; height: 3px; border-radius: 3px; background: var(--pink); transform: translateX(-50%); box-shadow: 0 0 12px var(--pink); }
.game-strip { position: absolute; left: clamp(1.5rem,3vw,3rem); right: clamp(1.5rem,3vw,3rem); bottom: 2.75rem; display: flex; flex-wrap: wrap; gap: .65rem; }
.game-strip span { padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: #c9bfcc; font-size: .78rem; transition: color .25s, border-color .25s, transform .25s; }
.game-strip span:hover { color: var(--ink); border-color: var(--pink); transform: translateY(-3px); }
.motion-ready .game-strip span { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.75,.25,1), color .25s, border-color .25s; transition-delay: var(--pill-delay, 0ms); }
.motion-ready .game-strip.is-visible span { opacity: 1; transform: translateY(0); }
.motion-ready .game-strip.is-visible span:hover { transform: translateY(-3px); }

.corner { isolation: isolate; }
.corner-glow { position: absolute; z-index: -1; inset: 8% -30vw 8% 40%; background: linear-gradient(105deg, transparent, rgba(157,108,255,.12), rgba(255,82,191,.12), transparent); filter: blur(45px); transform: skewX(-18deg); animation: corner-breathe 9s ease-in-out infinite; }
@keyframes corner-breathe { 0%, 100% { opacity: .85; filter: blur(45px); } 50% { opacity: .55; filter: blur(62px); } }
.corner-layout { margin-top: 4.5rem; display: grid; grid-template-columns: 1.2fr .8fr; gap: 8vw; align-items: end; }
.corner h2 { margin: 1rem 0 0; padding: .05em 0 .1em; font: 700 clamp(5rem, 11vw, 10.5rem)/.78 "Syne", sans-serif; letter-spacing: -.08em; text-transform: uppercase; overflow: visible; }
.corner-copy { padding-bottom: .6rem; }
.corner-copy > p:not(.corner-name) { max-width: 480px; margin-bottom: 1.3rem; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.discord-link { display: inline-flex; align-items: center; gap: 1.2rem; margin-top: 1rem; padding: .9rem 1.15rem; border: 1px solid rgba(255,82,191,.5); color: var(--ink); font: 600 .7rem "DM Mono", monospace; letter-spacing: .1em; text-transform: uppercase; transition: color .3s, background .3s, transform .3s; }
.discord-link span { color: var(--pink); transition: transform .3s; }
.discord-link:hover { color: #160b14; background: var(--pink); transform: translateY(-3px); }
.discord-link:hover span { color: #160b14; transform: translate(3px,-3px); }
.corner-name { margin: 3.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--pink); font: .68rem "DM Mono", monospace; letter-spacing: .16em; text-transform: uppercase; }

.warning-layout { margin-top: 4.5rem; display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; }
.warning h2 { max-width: 560px; margin: 0; padding-bottom: .1em; font: 600 clamp(3rem, 6vw, 6rem)/.98 "Syne", sans-serif; letter-spacing: -.06em; }
.warning ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.warning li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.45rem 0; border-bottom: 1px solid var(--line); }
.warning li > span { padding-top: .35rem; color: var(--pink); font: .62rem "DM Mono", monospace; }
.warning li p { margin: 0; color: #ccc3cf; line-height: 1.65; }

.ending {
	position: relative;
	width: min(calc(100% - 64px), var(--max));
	min-height: 75vh;
	margin: 0 auto;
	padding: clamp(7rem, 12vw, 11rem) clamp(1.5rem, 7vw, 7rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
	border-top: 1px solid var(--line);
	border-inline: 1px solid var(--line);
	background: linear-gradient(135deg, rgba(157,108,255,.045), transparent 45%, rgba(255,82,191,.045));
}
.ending h2 { max-width: 1040px; margin: 3rem 0 2rem; padding-bottom: .1em; font: 600 clamp(2.8rem, 6vw, 6rem)/1.04 "Syne", sans-serif; letter-spacing: -.06em; }
.ending > p:last-child { margin: 0; color: var(--muted); font: .68rem "DM Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }

.cube-home { position: relative; width: min(calc(100% - 64px),var(--max)); min-height: 100vh; margin: clamp(9rem,14vw,14rem) auto 0; padding: clamp(7rem,11vw,10rem) clamp(1.5rem,4vw,4rem); border: 1px solid var(--line); background: radial-gradient(circle at 53% 48%,rgba(157,108,255,.14),transparent 28rem),linear-gradient(180deg,rgba(255,255,255,.018),transparent); }
.cube-home::before { content: "RESIDENT AREA"; position: absolute; left: 50%; top: -4.4rem; color: rgba(255,255,255,.24); font: .58rem "DM Mono",monospace; letter-spacing: .3em; transform: translateX(-50%); }
.cube-home-layout { margin-top: 5rem; display: grid; grid-template-columns: 1.05fr .9fr .75fr; gap: clamp(2.5rem,5vw,6rem); align-items: center; }
.cube-home-copy h2 { max-width: 620px; margin: 1.4rem 0 2.2rem; padding-bottom: .12em; font: 700 clamp(4rem,6.5vw,7rem)/.92 "Syne",sans-serif; letter-spacing: -.065em; }
.cube-home-copy > p:not(.overline) { max-width: 520px; color: var(--muted); font-size: 1rem; line-height: 1.85; }
.resident-rules { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .55rem; }
.resident-rules span { padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 999px; color: #c8bdcc; font: .58rem "DM Mono",monospace; letter-spacing: .1em; text-transform: uppercase; }
.resident-stage { position: relative; min-height: 430px; display: grid; place-items: center; perspective: 700px; }
.resident-orbit { position: absolute; width: 310px; aspect-ratio: 1; border: 1px solid rgba(255,82,191,.2); border-radius: 50%; transform: rotateX(68deg); box-shadow: 0 0 0 34px rgba(157,108,255,.025),0 0 0 70px rgba(255,82,191,.018); animation: resident-orbit 7s linear infinite; }
.resident-orbit::before { content: ""; position: absolute; left: 20px; top: 31px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 14px var(--pink); }
@keyframes resident-orbit { to { transform: rotateX(68deg) rotateZ(360deg); } }
.resident-cube { position: relative; z-index: 2; width: 156px; height: 156px; transform-style: preserve-3d; transform: rotateX(-18deg) rotateY(31deg); animation: resident-float 5s ease-in-out infinite; }
@keyframes resident-float { 50% { transform: translateY(-18px) rotateX(-9deg) rotateY(52deg); } }
.resident-cube i { position: absolute; inset: 0; border: 2px solid rgba(255,255,255,.48); background: linear-gradient(145deg,rgba(255,82,191,.84),rgba(101,49,175,.72)); box-shadow: inset 0 0 45px rgba(255,255,255,.1),0 0 34px rgba(255,82,191,.12); backface-visibility: hidden; }
.resident-front { transform: translateZ(78px); }
.resident-back { transform: rotateY(180deg) translateZ(78px); }
.resident-left { transform: rotateY(-90deg) translateZ(78px); }
.resident-right { transform: rotateY(90deg) translateZ(78px); }
.resident-top { transform: rotateX(90deg) translateZ(78px); background: linear-gradient(145deg,#d3a3ff,#8450ff) !important; }
.resident-bottom { transform: rotateX(-90deg) translateZ(78px); }
.resident-front b { position: absolute; left: 36px; top: 48px; width: 16px; height: 16px; border-radius: 50%; background: #110a16; box-shadow: 67px 0 0 #110a16; }
.resident-front b::after { content: ""; position: absolute; left: 23px; top: 49px; width: 47px; height: 12px; border: 5px solid #110a16; border-top: 0; border-radius: 0 0 30px 30px; }
.resident-shadow { position: absolute; left: 50%; bottom: 70px; width: 155px; height: 25px; border-radius: 50%; background: rgba(255,82,191,.2); filter: blur(13px); transform: translateX(-50%); animation: resident-shadow 5s ease-in-out infinite; }
@keyframes resident-shadow { 50% { transform: translateX(-50%) scale(.72); opacity: .5; } }
.resident-file { align-self: center; min-width: 0; padding: 1.4rem; border: 1px solid var(--line); background: rgba(10,7,14,.66); }
.resident-file dl { margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.resident-file dl div { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.resident-file dt { color: var(--muted); font: .56rem "DM Mono",monospace; letter-spacing: .11em; text-transform: uppercase; }
.resident-file dd { margin: 0; color: #ddd2e1; font-size: .74rem; line-height: 1.45; }
.resident-note { margin: 1.3rem 0 0; color: var(--muted); font-size: .72rem; line-height: 1.65; }
.cube-chat { align-self: center; min-width: 0; border: 1px solid var(--line); background: rgba(10,7,14,.78); backdrop-filter: blur(12px); }
.chat-head { min-height: 48px; padding: 0 1rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font: .61rem "DM Mono",monospace; letter-spacing: .08em; text-transform: uppercase; }
.chat-head span { display: flex; align-items: center; gap: .55rem; }
.chat-head i { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 9px var(--pink); }
.chat-head small { color: var(--muted); font: inherit; }
.chat-messages { height: 230px; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; overflow-y: auto; scrollbar-width: thin; }
.chat-messages p { width: fit-content; max-width: 88%; margin: 0; padding: .65rem .75rem; border-radius: 2px 12px 12px 12px; font-size: .75rem; line-height: 1.5; }
.cube-message { color: #d7cbdc; background: rgba(157,108,255,.12); }
.user-message { align-self: flex-end; color: #170b15; background: var(--pink); border-radius: 12px 2px 12px 12px !important; }
.cube-chat-form { display: grid; grid-template-columns: 1fr auto; border-top: 1px solid var(--line); }
.cube-chat-form input { min-width: 0; height: 48px; padding: 0 .85rem; border: 0; outline: 0; background: transparent; color: var(--ink); font: .72rem "Manrope",sans-serif; }
.cube-chat-form input::placeholder { color: #716777; }
.cube-chat-form button { padding: 0 1rem; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--pink); font: 600 .6rem "DM Mono",monospace; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: color .2s,background .2s; }
.cube-chat-form button:hover { color: #170b15; background: var(--pink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

footer { width: min(calc(100% - 64px), var(--max)); min-height: 120px; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: var(--muted); font: .63rem "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
footer p { margin: 0; }
footer p:nth-child(2) { text-align: center; }
footer strong { color: var(--pink); font-weight: 500; }
footer a { justify-self: end; }
.footer-credit { opacity: .82; }

.motion-ready .reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .8s cubic-bezier(.2,.75,.25,1); transition-delay: var(--delay, 0ms); }
.motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
.motion-ready .reveal-line { opacity: 0; transform: translateX(-18px); transition: opacity .6s ease, transform .75s cubic-bezier(.2,.75,.25,1); transition-delay: var(--delay, 0ms); }
.motion-ready .reveal-line.is-visible { opacity: 1; transform: translateX(0); }

[data-parallax] { transform: translate3d(var(--title-shift, 0), 0, 0); will-change: transform; }

@media (min-width: 1600px) {
	:root { --max: 1540px; }
	.site-header { height: 104px; }
	.hero { min-height: 900px; }
	.hero h1 { font-size: clamp(11rem,12vw,15.5rem); }
	.flow-section { padding-block: 11rem; }
	.about-main h2 { max-width: 1200px; }
	.hobby { min-height: 500px; }
}

@media (min-width: 2100px) {
	:root { --max: 1840px; }
	.hero { min-height: min(1050px,100svh); }
	.hero h1 { font-size: 17rem; }
	.about { grid-template-columns: 18% 1fr; }
	.things-intro { margin-left: 18%; }
}

@media (max-width: 900px) {
	.runner-character { display: none; }
	.cube-home { display: none; }
	.header-inner { width: calc(100% - 40px); grid-template-columns: 1fr 1fr; }
	.site-nav { display: none; }
	.hero, .flow-section, .ending { width: calc(100% - 40px); }
	.about { grid-template-columns: 1fr; gap: 2.5rem; }
	.about-notes, .facts-layout, .corner-layout, .warning-layout { grid-template-columns: 1fr; }
	.facts-layout, .corner-layout, .warning-layout { gap: 3.5rem; }
	.things-intro { margin-left: 0; }
	.corner-copy { max-width: 620px; }
}

@media (max-width: 600px) {
	html { scroll-behavior: auto; overflow-x: hidden; overflow-y: auto; }
	body { min-height: 100%; background: radial-gradient(ellipse at 90% 5%, rgba(157,108,255,.075), transparent 20rem), var(--bg); overflow-x: hidden; overflow-y: visible; touch-action: pan-y; }
	.site-header { height: 66px; }
	.header-inner { width: calc(100% - 28px); }
	.wordmark { font-size: .82rem; }
	.wordmark-text { color: var(--ink); background: none; -webkit-text-fill-color: currentColor; }
	.online-text { font-size: .62rem; }
	.hero, .flow-section, .ending { width: calc(100% - 28px); }
	.hero { min-height: 640px; padding: 100px .45rem max(36px, env(safe-area-inset-bottom)); border-inline: 0; display: grid; align-content: center; }
	.hero-copy { min-width: 0; }
	.hero h1 { max-width: 100%; margin: 2rem 0 2.75rem; padding-bottom: .22em; font-size: clamp(2.9rem, 14.2vw, 5.3rem); line-height: 1; letter-spacing: -.08em; }
	.hero-name { width: 100%; justify-content: space-between; }
	.hero-intro { display: grid; gap: 2.5rem; }
	.hero-intro p { max-width: 18rem; font-size: 1rem; line-height: 1.6; }
	.hero-intro a { justify-self: start; }
	.hero-meta { position: static; display: flex; flex-wrap: wrap; gap: .65rem; margin: 2.75rem 0 0; writing-mode: horizontal-tb; font-size: .56rem; }
	.hero-tags { position: static; margin-top: 1.4rem; flex-wrap: wrap; }
	.hero-edition { display: none; }
	.hero-lines { inset: 10% -35% 8% 18%; opacity: .24; }
	.hero-lines i { animation: none; transform: none; }
	.flow-section { padding-block: 5.5rem; }
	.section-label { font-size: .6rem; }
	.about-main h2 { margin-bottom: 2.75rem; padding-bottom: .35em; font-size: clamp(2rem, 9.2vw, 3rem); line-height: 1.24; letter-spacing: -.045em; overflow-wrap: anywhere; }
	.about-notes { max-width: none; margin-left: 0; }
	.about-notes > p { font-size: .94rem; line-height: 1.75; }
	.people-head { margin-top: 3rem; }
	.people-grid { grid-template-columns: 1fr; gap: .85rem; }
	.person-card { padding: 1.3rem 1.25rem 1.45rem; }
	.ticker { width: 100%; margin-inline: 0; padding-block: 1.2rem; transform: none; }
	.ticker-track { animation-duration: var(--ticker-duration); }
	.facts-layout, .corner-layout, .warning-layout { margin-top: 3rem; gap: 2.75rem; }
	.facts h2, .warning h2 { font-size: clamp(2.65rem, 13vw, 4rem); line-height: 1.02; }
	.fact-list div { padding: 1.05rem 0; }
	.things-intro { margin: 3rem 0 3.5rem; }
	.things h2 { padding-bottom: .22em; font-size: clamp(2.75rem, 13.5vw, 4.4rem); line-height: 1.04; }
	.hobby-layout { grid-template-columns: 1fr; }
	.hobby { min-height: 350px; padding: 1.25rem 0; }
	.hobby + .hobby { min-height: 460px; border-left: 0; border-top: 1px solid var(--line); }
	.hobby h3 { font-size: 2.4rem; }
	.piano { left: 0; right: 0; bottom: 1.5rem; height: 215px; padding: 10px 10px 12px; }
	.piano-panel { height: 43px; }
	.piano-keys { height: 148px; }
	.controller { --controller-scale: .72; top: 43%; }
	.game-strip { position: static; width: calc(100% + 14px); margin: 245px -14px 0 0; padding: 0 14px 10px 0; display: grid; grid-auto-flow: column; grid-auto-columns: max-content; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline proximity; scrollbar-width: none; touch-action: pan-x pan-y; }
	.game-strip::-webkit-scrollbar { display: none; }
	.game-strip span { padding: .7rem .9rem; font-size: .72rem; scroll-snap-align: start; }
	.corner h2 { padding-bottom: .2em; font-size: clamp(3.85rem, 20vw, 6rem); line-height: .94; }
	.warning li { grid-template-columns: 2rem 1fr; padding: 1.25rem 0; }
	.warning li p { font-size: .92rem; }
	.ending { min-height: 62svh; border-inline: 0; padding: 5.5rem .45rem; }
	.ending h2 { margin: 2.25rem 0 1.75rem; padding-bottom: .25em; font-size: clamp(2.2rem, 10.8vw, 3.4rem); line-height: 1.15; }
	footer { width: calc(100% - 28px); min-height: 100px; grid-template-columns: 1fr 1fr; gap: 1rem; }
	footer p:nth-child(2) { display: none; }

	.mobile-motion .reveal { transform: translateX(18px); transition-duration: .52s, .6s; }
	.mobile-motion .reveal.is-visible { transform: translateX(0); }
	.mobile-motion .reveal-line { transform: translateX(-12px); transition-duration: .48s, .58s; }
	.mobile-motion .reveal-line:nth-child(even) { transform: translateX(12px); }
	.mobile-motion .reveal-line.is-visible { transform: translateX(0); }
	.mobile-motion .hero-name i { transform: none; filter: blur(7px); animation-name: mobile-letter-in; animation-duration: .55s; }
}

@supports (height: 100svh) {
	@media (max-width: 600px) {
		.hero { min-height: 100svh; }
	}
}

@keyframes mobile-letter-in {
	to { opacity: 1; transform: none; filter: blur(0); }
}

@media (max-width: 380px) {
	.hero h1 { font-size: 14vw; }
	.online-text { font-size: .58rem; }
	.fact-list dd { max-width: 8rem; text-align: right; }
}

@media (max-width: 600px) {
	[data-desktop-only="cube-setting"] { display: none; }
}

@media (hover: none), (pointer: coarse) {
	.pointer-glow { display: none; }
	.runner-character { display: none; }
	.game-strip span:hover { color: #c9bfcc; border-color: var(--line); transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
	.motion-ready .reveal, .motion-ready .reveal-line { opacity: 1; transform: none; }
	.hero-name i { opacity: 1; transform: none; animation: none; }
	.pointer-glow { display: none; }
	.runner-character { display: none; }
}

/* ---------------------------------------------------------------------- *
 *  Settings panel — two persisted display toggles                        *
 * ---------------------------------------------------------------------- */
.settings { position: fixed; right: clamp(14px, 2.5vw, 28px); bottom: clamp(14px, 2.5vw, 28px); z-index: 95; width: 46px; height: 46px; font-family: "DM Mono", monospace; }
.settings-toggle { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(14,10,20,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--muted); cursor: pointer; transition: color .25s, border-color .25s, transform .4s cubic-bezier(.2,.8,.2,1), background .25s; }
.settings-toggle:hover { color: var(--ink); border-color: rgba(255,82,191,.5); transform: rotate(35deg); }
.settings.is-open .settings-toggle { color: var(--pink); border-color: rgba(255,82,191,.6); transform: rotate(90deg); }
.settings-toggle svg { width: 21px; height: 21px; }
.settings-panel { position: absolute; right: 0; bottom: calc(100% + .75rem); width: min(300px,calc(100vw - 28px)); max-height: min(660px,calc(100vh - 88px)); overflow-y: auto; padding: 1.05rem 1.1rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(12,9,17,.93); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 20px 55px -22px rgba(0,0,0,.85); opacity: 0; visibility: hidden; transform: translateY(12px) scale(.95); transform-origin: bottom right; pointer-events: none; transition: opacity .3s ease, transform .38s cubic-bezier(.2,.8,.2,1), visibility 0s .38s; scrollbar-width: thin; }
.settings.is-open .settings-panel { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.settings-title { margin: 0 0 .4rem; color: var(--pink); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; }
.setting-field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.setting-field > span { display: flex; flex-direction: column; gap: .2rem; color: var(--ink); font-size: .73rem; }
.setting-field small { color: var(--muted); font-size: .55rem; letter-spacing: .1em; text-transform: uppercase; }
.setting-field select { min-width: 88px; padding: .42rem 1.7rem .42rem .55rem; border: 1px solid var(--line); border-radius: 7px; outline: 0; background: #15101b; color: var(--ink); font: .61rem "DM Mono",monospace; cursor: pointer; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: .85rem; padding: .7rem 0; cursor: pointer; }
.switch + .switch { border-top: 1px solid var(--line); }
.switch-label { display: flex; flex-direction: column; gap: .2rem; color: var(--ink); font-size: .73rem; letter-spacing: .01em; }
.switch-label small { color: var(--muted); font-size: .55rem; letter-spacing: .1em; text-transform: uppercase; }
.switch-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.switch-track { position: relative; flex-shrink: 0; width: 40px; height: 22px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.06); transition: background .3s, border-color .3s; }
.switch-thumb { position: absolute; left: 2px; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transform: translateY(-50%); transition: transform .3s cubic-bezier(.2,.85,.2,1), background .3s; }
.switch-input:checked + .switch-track { background: linear-gradient(90deg, var(--pink), var(--purple)); border-color: transparent; }
.switch-input:checked + .switch-track .switch-thumb { transform: translate(18px, -50%); background: #fff; }
.switch-input:focus-visible + .switch-track { box-shadow: 0 0 0 2px rgba(255,82,191,.55); }
.settings-reset { width: 100%; margin-top: .7rem; padding: .65rem; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); font: .58rem "DM Mono",monospace; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: color .2s,border-color .2s; }
.settings-reset:hover { color: var(--ink); border-color: var(--pink); }

html[data-ticker="calm"] { --ticker-duration: 40s; }
html[data-cube="off"] .runner-character,
html[data-cube="off"] .cube-home,
html[data-cube="off"] .cube-shard,
html[data-cube="off"] .cube-portal,
html[data-cube="off"] .temp-platform,
html[data-cube="off"] .cube-dust { display: none !important; }
html[data-motion="gentle"] { --ticker-duration: 34s; }
html[data-motion="gentle"] .hero-lines i,
html[data-motion="gentle"] .resident-orbit,
html[data-motion="gentle"] .resident-cube,
html[data-motion="gentle"] .controller { animation-duration: 9s; }
html[data-motion="still"] .ticker-track,
html[data-motion="still"] .hero-name i,
html[data-motion="still"] .hero-lines i,
html[data-motion="still"] .hero-tags span,
html[data-motion="still"] .resident-orbit,
html[data-motion="still"] .resident-cube,
html[data-motion="still"] .resident-shadow,
html[data-motion="still"] .piano *,
html[data-motion="still"] .controller { animation-play-state: paused !important; }
html[data-motion="still"] .motion-ready .reveal,
html[data-motion="still"] .motion-ready .reveal-line { opacity: 1; transform: none; transition: none; }

/* ---------------------------------------------------------------------- *
 *  Performance mode — drop the expensive effects and heavy animation     *
 * ---------------------------------------------------------------------- */
.perf-mode .grain,
.perf-mode .pointer-glow,
.perf-mode .corner-glow,
.perf-mode .hero-lines,
.perf-mode .resident-orbit { display: none; }
.perf-mode .site-header::before,
.perf-mode .settings-toggle,
.perf-mode .settings-panel,
.perf-mode .cube-chat { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.perf-mode .site-header::before { background: rgba(9,7,13,.94); }
.perf-mode .wordmark-text { background: none; -webkit-text-fill-color: var(--ink); color: var(--ink); }
.perf-mode .resident-shadow, .perf-mode .piano, .perf-mode .controller { filter: none; }
.perf-mode main *, .perf-mode main *::before, .perf-mode main *::after,
.perf-mode .site-header *, .perf-mode .site-header *::before, .perf-mode .site-header *::after,
.perf-mode footer *, .perf-mode footer *::before, .perf-mode footer *::after {
	animation-duration: .001ms !important;
	animation-iteration-count: 1 !important;
	animation-delay: 0ms !important;
	transition-duration: .12s !important;
}
