:root {
  --c-bg:      #0A0910;
  --c-surface: #111019;
  --c-border:  rgba(255,255,255,0.06);
  --c-primary: #C4B0FF;
  --c-accent:  #EDB4C4;
  --c-muted:   #7B7591;
  --c-text:    #E2DCF0;
  --c-ton:     #0098EA;
  --c-spotify: #1DB954;

  --font-main: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { background: var(--c-bg); color: var(--c-text); font-family: var(--font-main); min-height: 100vh; overflow-x: hidden; }
::selection { background: var(--c-primary); color: #1a1030; }
a { color: inherit; text-decoration: none; }

body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.04) 2px, rgba(0,0,0,0.04) 4px),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: auto, 200px; mix-blend-mode: overlay;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: #2e2b3a; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-primary); }

#bgCanvas {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; display: block;
}

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 9999; pointer-events: none; }
.progress-bar { height: 100%; width: 0; background: var(--c-primary); box-shadow: 0 0 10px var(--c-primary); transition: width 0.1s; }

header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px;
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
header.stuck {
  background: rgba(10,9,16,0.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--c-border); padding: 14px 48px;
}
.logo { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.12em; color: var(--c-primary); display: flex; align-items: center; gap: 8px; }
.logo::before { content: '//'; opacity: 0.35; }
nav { display: flex; gap: 4px; }
.nav-a { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.03em; text-transform: none; color: var(--c-muted); padding: 8px 18px; border-radius: 4px; transition: color 0.2s, background 0.2s; opacity: 0.6; }
.nav-a:hover { color: var(--c-text); background: rgba(255,255,255,0.05); opacity: 1; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--c-text); border-radius: 2px; transition: transform 0.4s var(--ease-spring), opacity 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { position: fixed; inset: 0; background: rgba(10,9,16,0.97); backdrop-filter: blur(24px); z-index: 99; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease-expo); }
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav a { font-size: 2.2rem; font-weight: 900; color: var(--c-muted); padding: 14px 40px; letter-spacing: -0.03em; transition: color 0.3s, transform 0.4s var(--ease-spring); }
.mobile-nav a:hover { color: var(--c-primary); transform: translateX(14px); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 48px; position: relative; z-index: 1; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s var(--ease-expo), transform 0.65s var(--ease-expo); }
.reveal.visible { opacity: 1; transform: none; }

.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 120px; padding-bottom: 80px; }

.eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-primary); margin-bottom: 28px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ''; display: block; width: 36px; height: 1px; background: var(--c-primary); flex-shrink: 0; }

.hero-name {
  font-size: clamp(4.5rem, 13vw, 12rem); font-weight: 900; line-height: 0.92;
  letter-spacing: -0.06em; margin-bottom: 56px;
}
.hero-name .solid { color: var(--c-text); }
.hero-name .outline { color: transparent; -webkit-text-stroke: 1.5px var(--c-primary); }
.hero-name .italic { font-style: italic; color: var(--c-accent); }

.hero-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; border-top: 1px solid var(--c-border); padding-top: 40px; }
.hero-desc { font-size: 1.05rem; color: var(--c-muted); line-height: 1.8; max-width: 420px; }
.hero-desc strong { color: var(--c-text); font-weight: 700; }
.hero-cta { display: flex; gap: 14px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }

.hero-scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--c-muted); opacity: 0.4; animation: bob 2.2s ease-in-out infinite; }
.hero-scroll::after { content: '↓'; }
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(7px); } }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 30px; font-family: var(--font-main); font-weight: 800; font-size: 0.88rem; letter-spacing: 0.03em; border: none; cursor: pointer; border-radius: 5px; position: relative; overflow: hidden; transition: transform 0.3s var(--ease-spring), box-shadow 0.3s; }
.btn-primary { background: var(--c-primary); color: #1a1030; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(196,176,255,0.28); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--c-text); border: 1px solid rgba(255,255,255,0.14); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); transform: translateY(-3px); border-color: rgba(255,255,255,0.28); }
.btn-spotify { background: var(--c-spotify); color: #052e10; }
.btn-spotify:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(29,185,84,0.22); }
.btn-ton { background: var(--c-ton); color: #031a2e; }
.btn-ton:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,152,234,0.22); }

.s-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 0; padding-bottom: 20px; border-bottom: 1px solid var(--c-border); margin-bottom: 48px; }
.s-num { font-family: var(--font-mono); font-size: 0.68rem; color: var(--c-primary); letter-spacing: 0.18em; opacity: 0.6; flex-shrink: 0; }
.s-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900; letter-spacing: -0.04em; }

section { padding: 100px 0; }

.bio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.bio-panel { background: var(--c-surface); padding: 44px; position: relative; overflow: hidden; transition: background 0.3s; }
.bio-panel::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--c-primary); transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease-expo); }
.bio-panel:hover { background: #15131f; }
.bio-panel:hover::after { transform: scaleY(1); }
.bio-panel.wide { grid-column: 1 / -1; }
.p-label { font-family: var(--font-mono); font-size: 0.63rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-primary); margin-bottom: 16px; display: block; }
.p-title { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 14px; }
.p-body { font-size: 0.97rem; color: var(--c-muted); line-height: 1.8; }
.p-body strong { color: var(--c-primary); font-weight: 700; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 13px; border: 1px solid rgba(196,176,255,0.18); border-radius: 3px; color: var(--c-primary); background: rgba(196,176,255,0.04); transition: all 0.22s; }
.tag:hover { background: rgba(196,176,255,0.1); border-color: var(--c-primary); transform: translateY(-2px); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.contact-block { padding: 44px; background: var(--c-surface); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; position: relative; overflow: hidden; transition: background 0.3s; }
.contact-block::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-expo); }
.contact-block:hover { background: #15131f; }
.contact-block:hover::before { transform: scaleX(1); }
.c-label { font-family: var(--font-mono); font-size: 0.63rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-muted); }
.c-handle { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 900; letter-spacing: -0.04em; }
.c-handle small { display: block; font-size: 0.88rem; font-weight: 500; color: var(--c-muted); letter-spacing: 0; margin-top: 4px; }

.channel-list { display: flex; flex-direction: column; gap: 2px; }
.channel-row { display: flex; align-items: center; justify-content: space-between; padding: 28px 44px; background: var(--c-surface); transition: background 0.3s, padding-left 0.4s var(--ease-expo); position: relative; overflow: hidden; }
.channel-row::before { content: '→'; position: absolute; left: 18px; opacity: 0; color: var(--c-primary); font-weight: 900; transition: opacity 0.3s, left 0.4s var(--ease-expo); }
.channel-row:hover { background: #15131f; padding-left: 60px; }
.channel-row:hover::before { opacity: 1; left: 24px; }
.ch-name { font-size: 1.1rem; font-weight: 900; letter-spacing: -0.02em; }
.ch-handle { font-family: var(--font-mono); font-size: 0.82rem; color: var(--c-muted); transition: color 0.3s; }
.channel-row:hover .ch-handle { color: var(--c-primary); }
.ch-arr { color: var(--c-muted); transition: transform 0.4s var(--ease-spring), color 0.3s; font-size: 1.1rem; }
.channel-row:hover .ch-arr { transform: translateX(8px); color: var(--c-primary); }

.marquee-wrap { overflow: hidden; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); padding: 14px 0; opacity: 0.18; }
.marquee-inner { display: flex; gap: 48px; animation: marquee 20s linear infinite; white-space: nowrap; }
.marquee-inner span { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-primary); flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.spotify-block { padding: 44px; background: var(--c-surface); display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; position: relative; overflow: hidden; border-bottom: 2px solid var(--c-spotify); transition: background 0.3s; }
.spotify-block::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 100% 100%, rgba(29,185,84,0.06), transparent 55%); pointer-events: none; }
.spotify-block:hover { background: #15131f; }
.sp-left { flex: 1; min-width: 260px; }
.sp-label { font-family: var(--font-mono); font-size: 0.63rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-spotify); margin-bottom: 12px; display: block; }
.sp-title { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 900; letter-spacing: -0.04em; margin-bottom: 8px; }
.sp-sub { color: var(--c-muted); font-size: 0.93rem; line-height: 1.6; }

.ton-block { padding: 44px; background: var(--c-surface); position: relative; overflow: hidden; border-bottom: 2px solid var(--c-ton); transition: background 0.3s; }
.ton-block::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 0% 100%, rgba(0,152,234,0.06), transparent 55%); pointer-events: none; }
.ton-block:hover { background: #15131f; }
.ton-label { font-family: var(--font-mono); font-size: 0.63rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-ton); margin-bottom: 12px; display: block; }
.ton-title { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 900; letter-spacing: -0.04em; margin-bottom: 8px; }
.ton-sub { color: var(--c-muted); font-size: 0.93rem; margin-bottom: 28px; }
.ton-addr { font-family: var(--font-mono); font-size: 0.82rem; color: var(--c-muted); background: rgba(0,0,0,0.4); border: 1px dashed rgba(0,152,234,0.22); border-radius: 5px; padding: 18px 22px; word-break: break-all; cursor: pointer; transition: all 0.3s; margin-bottom: 24px; display: block; letter-spacing: 0.03em; }
.ton-addr:hover { background: rgba(0,152,234,0.07); border-color: var(--c-ton); color: var(--c-text); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }

footer { border-top: 1px solid var(--c-border); padding: 44px 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.ft-l { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--c-muted); }
.ft-r { font-family: var(--font-mono); font-size: 0.68rem; color: var(--c-muted); opacity: 0.35; }

body { cursor: none; }
a, button, .tag, .ton-addr, [onclick] { cursor: none; }
.cur-dot {
  position: fixed; z-index: 99999; pointer-events: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-primary); top: 0; left: 0;
  transform: translate(-50%,-50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s, background 0.2s;
  mix-blend-mode: difference; will-change: transform;
}
.cur-ring {
  position: fixed; z-index: 99998; pointer-events: none;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(196,176,255,0.5); top: 0; left: 0;
  transform: translate(-50%,-50%);
  transition: width 0.35s var(--ease-expo), height 0.35s var(--ease-expo), opacity 0.3s, border-color 0.3s;
  will-change: transform;
}
body:has(a:hover) .cur-dot, body:has(button:hover) .cur-dot, body:has([onclick]:hover) .cur-dot { width: 16px; height: 16px; }
body:has(a:hover) .cur-ring, body:has(button:hover) .cur-ring, body:has([onclick]:hover) .cur-ring { width: 56px; height: 56px; border-color: rgba(196,176,255,0.25); }
@media (hover: none) { .cur-dot, .cur-ring { display: none; } body { cursor: auto; } a,button,.tag,.ton-addr,[onclick] { cursor: auto; } }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--c-muted);
  padding: 5px 12px; border: 1px solid var(--c-border); border-radius: 99px;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-primary); flex-shrink: 0;
  animation: status-pulse 2.4s ease-in-out infinite;
}
@keyframes status-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(196,176,255,0.5); opacity: 1; }
  50%      { box-shadow: 0 0 0 5px rgba(196,176,255,0); opacity: 0.7; }
}

.hero-name .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) rotate(var(--r, 0deg)) scaleY(0.6);
  animation: char-in 0.7s var(--ease-spring) forwards;
  animation-delay: var(--d, 0s);
  transform-origin: bottom center;
}
@keyframes char-in {
  to { opacity: 1; transform: translateY(0) rotate(0deg) scaleY(1); }
}

.hero-name .outline {
  position: relative;
  animation: glitch-trigger 8s ease-in-out infinite;
}
.hero-name .outline::before,
.hero-name .outline::after {
  content: attr(data-txt);
  position: absolute; top: 0; left: 0;
  color: transparent; -webkit-text-stroke: 1.5px var(--c-primary);
  pointer-events: none;
}
.hero-name .outline::before {
  animation: glitch-before 8s ease-in-out infinite;
  clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
  color: rgba(237,180,196,0.6); -webkit-text-stroke: 0;
}
.hero-name .outline::after {
  animation: glitch-after 8s ease-in-out infinite;
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
  color: rgba(196,176,255,0.5); -webkit-text-stroke: 0;
}
@keyframes glitch-before {
  0%,88%,91%,100% { transform: none; opacity: 0; }
  89%   { transform: translate(-3px, 1px); opacity: 1; }
  90%   { transform: translate(3px, -1px); opacity: 1; }
}
@keyframes glitch-after {
  0%,88%,91%,100% { transform: none; opacity: 0; }
  89%   { transform: translate(3px, -2px); opacity: 1; }
  90%   { transform: translate(-2px, 2px); opacity: 1; }
}
@keyframes glitch-trigger {
  0%,88%,91%,100% { transform: none; }
  89%   { transform: skewX(-2deg); }
  90%   { transform: skewX(1deg); }
}

.orb-1 { animation: orb-drift 20s ease-in-out infinite alternate, orb-breathe 5s ease-in-out infinite; }
.orb-2 { animation: orb-drift 26s ease-in-out infinite alternate, orb-breathe 7s ease-in-out infinite; animation-delay: -10s, -3s; }
@keyframes orb-breathe { 0%,100% { opacity: 0.11; filter: blur(120px); } 50% { opacity: 0.2; filter: blur(100px); } }

.bio-panel::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(196,176,255,0.04) 50%, transparent 60%);
  transform: translateX(-100%); pointer-events: none;
}
.bio-panel:hover::before { transform: translateX(100%); transition: transform 0.7s ease; }

.btn-primary { animation: btn-breathe 3.5s ease-in-out infinite; }
.btn-primary:hover { animation: none; }
@keyframes btn-breathe {
  0%,100% { box-shadow: 0 0 0 0 rgba(196,176,255,0); }
  50%      { box-shadow: 0 0 18px 3px rgba(196,176,255,0.18); }
}

.marquee-wrap:hover .marquee-inner { animation-play-state: paused; }

.s-num {
  display: inline-block;
  transition: color 0.3s, transform 0.4s var(--ease-spring);
}
.s-head:hover .s-num { color: var(--c-primary); opacity: 1; transform: scale(1.2); }

.eyebrow::before {
  animation: line-grow 1.2s var(--ease-expo) 0.3s both;
}
@keyframes line-grow { from { width: 0; opacity: 0; } to { width: 36px; opacity: 1; } }

.hero-bottom {
  border-top-color: transparent;
  animation: border-in 0.8s var(--ease-expo) 0.8s forwards;
}
@keyframes border-in { to { border-top-color: var(--c-border); } }

.channel-row { counter-increment: channels; }
.channel-row::after {
  content: counter(channels, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--c-muted);
  opacity: 0.3; position: absolute; top: 12px; right: 12px;
}
.channel-list { counter-reset: channels; }

.ton-addr::after {
  content: '▮';
  animation: blink 1.1s step-end infinite;
  color: var(--c-ton); margin-left: 4px; font-size: 0.7em;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.explode-char {
  position: fixed; pointer-events: none; z-index: 99990;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem;
  color: var(--c-primary); letter-spacing: 0.12em;
  animation: explode-fly var(--dur, 1.4s) var(--ease-expo) forwards;
}
@keyframes explode-fly {
  0%   { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1); }
  60%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(var(--sc)); }
}

@media (min-width: 769px) { .burger { display: none; } }
@media (max-width: 768px) {
  header, header.stuck { padding: 14px 24px; }
  nav { display: none; }
  .burger { display: flex; }
  .wrap { padding: 0 24px; }
  footer { padding: 32px 24px; flex-direction: column; gap: 8px; }
  .bio-grid, .contact-grid, .two-col { grid-template-columns: 1fr; }
  .bio-panel.wide { grid-column: auto; }
  .hero-bottom { grid-template-columns: 1fr; gap: 28px; }
  .hero-cta { justify-content: flex-start; }
  .hero-name { font-size: clamp(3.5rem, 16vw, 7rem); }
  .hero-scroll { display: none; }
  .bio-panel, .contact-block, .channel-row, .spotify-block, .ton-block { padding: 28px 22px; }
  .channel-row:hover { padding-left: 44px; }
  section { padding: 72px 0; }
}