@font-face { font-family: Unbounded; src: url("fonts/unbounded-latin.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: Manrope; src: url("fonts/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Unbounded Fallback"; src: local("Arial Black"), local("Arial"); size-adjust: 118%; ascent-override: 80%; descent-override: 20%; }

:root {
  color-scheme: dark;
  --bg: #070514;
  --surface: rgba(20, 12, 50, 0.62);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2eeff;
  --text-muted: #b3abd6;
  --magenta: #ff3dcb;
  --cyan: #3df5ff;
  --violet: #8c7bff;
  --ease-out: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --px: 0;
  --py: 0;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { overflow-x: clip; background: var(--bg); color: var(--text); font: 400 1rem/1.5 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }
a { color: inherit; }
ul { list-style: none; padding: 0; }

#aurora { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scene { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; pointer-events: none; border-radius: 50%; transform: translate3d(calc(var(--px) * var(--z) * -1), calc(var(--py) * var(--z) * -1), 0); }
.o1 { width: 220px; height: 220px; right: -70px; top: 14%; border: 18px solid rgba(61, 245, 255, 0.16); border-top-color: rgba(61, 245, 255, 0.5); box-shadow: 0 0 28px rgba(61, 245, 255, 0.35), inset 0 0 24px rgba(61, 245, 255, 0.25); --z: 60px; animation: drift 14s ease-in-out infinite alternate, turn 18s linear infinite; }
.o2 { width: 88px; height: 88px; left: 44%; bottom: 7%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), rgba(255, 61, 203, 0.32) 42%, rgba(40, 10, 60, 0.15)); box-shadow: 0 0 36px rgba(255, 61, 203, 0.45); --z: 110px; animation: drift 9s ease-in-out -3s infinite alternate-reverse; }
.o3 { width: 38px; height: 38px; left: 5%; top: 72%; background: radial-gradient(circle at 30% 30%, #fff, rgba(140, 123, 255, 0.6) 45%, transparent 70%); box-shadow: 0 0 22px rgba(140, 123, 255, 0.75); --z: 160px; animation: drift 7s ease-in-out -5s infinite alternate; }
@keyframes drift { 0% { translate: 0 0; } 50% { translate: -18px 24px; } 100% { translate: 14px -20px; } }
@keyframes turn { to { rotate: 360deg; } }
.spark { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px var(--g), 0 0 16px 3px var(--g); opacity: 0; animation: twinkle var(--t) ease-in-out var(--d) infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: translateY(0) scale(0.4); } 45% { opacity: 0.95; transform: translateY(-14px) scale(1); } 70% { opacity: 0.4; } }

main {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px;
  max-width: 1160px; min-height: 100vh; margin: 0 auto; padding: 48px 20px 40px; align-content: start;
  perspective: 1400px;
  transform-style: preserve-3d;
  pointer-events: none;
}
main > * { pointer-events: auto; }

/* identity */
.id { transform-style: preserve-3d; }
.ava { width: 88px; height: 88px; border-radius: 50%; padding: 3px; background: conic-gradient(from var(--a), var(--magenta), var(--cyan), var(--violet), var(--magenta)); animation: spin 6s linear infinite, halo 3.2s ease-in-out infinite alternate;
  box-shadow: 0 0 22px rgba(255, 61, 203, 0.45), 0 0 48px rgba(61, 245, 255, 0.25); }
@keyframes halo { to { box-shadow: 0 0 30px rgba(255, 61, 203, 0.7), 0 0 72px rgba(61, 245, 255, 0.45); } }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.ava img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); }

h1 { font: 800 clamp(3.5rem, 15vw, 7.75rem)/0.88 Unbounded, "Unbounded Fallback", system-ui, sans-serif; letter-spacing: -0.04em; margin: 28px 0 18px; }
h1 span { display: block; overflow: hidden; padding: 0 44px 44px 0; margin-bottom: -44px; }
h1 i { display: inline-block; font-style: normal; color: #fff; transform: translateY(110%); animation: rise 0.9s var(--ease-out) forwards;
  text-shadow: 1px 1px 0 #2a1f5c, 2px 2px 0 #241a52, 3px 3px 0 #1e1647, 4px 4px 0 #18123c, 5px 5px 0 #130e32, 6px 6px 0 #0e0a28, 10px 18px 30px rgba(0, 0, 0, 0.55); }
h1 span + span { filter: drop-shadow(0 0 16px rgba(61, 245, 255, 0.45)); }
h1 span + span i { color: var(--cyan); animation-delay: 0.12s;
  text-shadow: 1px 1px 0 #1b8f99, 2px 2px 0 #187f88, 3px 3px 0 #156f77, 4px 4px 0 #125f66, 5px 5px 0 #0f4f55, 6px 6px 0 #0c3f44, 10px 18px 30px rgba(0, 0, 0, 0.55); }
@keyframes rise { to { transform: none; } }

.bio { font: 500 1.375rem/1.3 Unbounded, "Unbounded Fallback", system-ui, sans-serif; opacity: 0; animation: fade 0.8s 0.5s forwards; }
@keyframes fade { to { opacity: 1; } }

.now { margin-top: 36px; opacity: 0; animation: fade 0.6s 0.4s forwards; }
#activity { display: grid; gap: 24px; }
.act { --c: var(--cyan); border-left: 2px solid var(--c); padding-left: 16px; }
.act.music { --c: var(--magenta); }
.act.read { --c: #ffd23d; }
.now .gh li:nth-child(n+2) { display: none; }
.ph { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.ph a, .ph img { display: block; }
.ph img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.ph a:hover img, .ph a:focus-visible img { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.ava { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.burst { position: fixed; pointer-events: none; z-index: 10; }
.burst i { position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--k); box-shadow: 0 0 12px var(--k), 0 0 4px #fff; animation: burst-move 1.2s cubic-bezier(0.2, 0.8, 0.3, 1) forwards, burst-fade 1.2s linear forwards; }
@keyframes burst-move { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.4); } }
@keyframes burst-fade { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; margin-left: 2px; }
.eq i { width: 3px; height: 100%; background: var(--c); border-radius: 1px; transform-origin: bottom; transform: scaleY(0.35); }
.eq i { animation: eq 0.9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-duration: 0.7s; animation-delay: -0.3s; }
.eq i:nth-child(3) { animation-duration: 1.1s; animation-delay: -0.6s; }
@keyframes eq { 0% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0.5); } }
.now h2 { font: 700 0.8125rem/1 Manrope, sans-serif; color: var(--c); margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.now h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.now a { display: flex; gap: 12px; align-items: center; padding: 8px 0; min-height: 44px; text-decoration: none; }
.now .tx { min-width: 0; }
.now .cv { flex: none; width: 48px; height: 48px; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 1px var(--border), 0 0 18px rgba(255, 61, 203, 0.35); }
.now .ds { display: block; color: var(--text); opacity: 0.8; font-size: 0.875rem; margin-top: 2px; overflow-wrap: anywhere; }
.now a:hover .at { color: var(--c); }
.now .at { font-weight: 700; overflow-wrap: anywhere; transition: color 0.1s; }
.now .at { display: block; }
.now small { display: block; color: var(--text-muted); font-size: 0.8125rem; }

/* links */
#links { transform-style: preserve-3d; }
.grp { margin-bottom: 30px; }
.grp h2 { font: 500 0.9375rem/1 Unbounded, "Unbounded Fallback", system-ui, sans-serif; color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.grp .bar { width: 22px; height: 2px; background: var(--c); }
.grp li + li { margin-top: 8px; }

a.lk {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; min-height: 68px; border-radius: 14px;
  text-decoration: none; background: var(--surface);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 30px -12px rgba(0, 0, 0, 0.7);
  transform-style: preserve-3d;
  opacity: 0; transform: translateY(14px);
  animation: enter 0.6s var(--ease-out) forwards; animation-delay: calc(0.35s + var(--d) * 0.05s);
  transition: transform 0.35s var(--ease-out), border-color 0.2s;
}
a.lk.in { opacity: 1; transform: none; animation: none; }
@keyframes enter { to { opacity: 1; transform: none; } }
a.lk::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--c), transparent 70%); opacity: 0; transform: translateX(-40%); transition: transform 0.45s var(--ease-out), opacity 0.3s; pointer-events: none; }
a.lk::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.12), transparent 60%); opacity: 0; transition: opacity 0.2s; }
a.lk:hover { border-color: var(--c); box-shadow: 0 0 24px -6px var(--c), 0 0 0 1px var(--c); }
a.lk:hover::before { opacity: 0.2; transform: none; }
a.lk.on { transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(24px); transition: transform 0.12s linear, border-color 0.2s; }
a.lk.on::after { opacity: 1; }
a.lk:active { transform: scale(0.98); transition-duration: 0.08s; }
a.lk:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }

.ic { position: relative; flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in oklab, var(--c) 24%, transparent); transition: transform 0.3s var(--ease-out); }
.glyph { width: 20px; height: 20px; background: #fff; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.letter { font: 800 1rem/1 Unbounded, sans-serif; }
a.lk.on .ic { transform: translateZ(36px) scale(1.06); }
.t { position: relative; flex: 1; min-width: 0; font-weight: 700; font-size: 1.0625rem; transition: transform 0.3s var(--ease-out); }
.t small { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--text-muted); }
a.lk.on .t { transform: translateZ(18px); }
.ar { position: relative; flex: none; width: 10px; height: 10px; border-top: 2px solid var(--c); border-right: 2px solid var(--c); transform: rotate(45deg); opacity: 0.6; transition: transform 0.25s var(--ease-out), opacity 0.2s; }
a.lk:hover .ar { opacity: 1; transform: translateX(4px) rotate(45deg); }

.err, .nojs { position: relative; z-index: 2; padding: 16px; color: var(--text); }

footer { position: relative; z-index: 2; text-align: center; color: var(--text-muted); font-size: 0.8125rem; padding: 8px 20px 32px; }
footer a { display: inline-block; padding: 12px 4px; }

@media (max-width: 959px) {
  .o2 { width: 60px; height: 60px; left: auto; right: 8%; bottom: 12%; }
  .o3 { width: 28px; height: 28px; left: 6%; top: 46%; }
  .o1 { width: 150px; height: 150px; border-width: 12px; right: -80px; top: 6%; }
}

@media (min-width: 960px) {
  main { grid-template-columns: 1.05fr 1fr; gap: 72px; padding: 72px 48px 48px; }
  .id { position: sticky; top: 72px; align-self: start; transform: rotateY(calc(var(--px) * 10deg)) rotateX(calc(var(--py) * -8deg)); }
  .id .ava { transform: translateZ(80px); }
  .id h1 { transform: translateZ(50px); }
  .id .bio { transform: translateZ(30px); }
  .id .now { transform: translateZ(15px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .id, .orb { transform: none !important; animation: none !important; }
  .spark { display: none; }
  .eq i { animation: none !important; }
}
