*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

:root {
  --bg:           #080808;
  --card-bg:      rgba(14, 14, 14, 0.82);
  --card-border:  rgba(255,255,255,0.08);
  --text-hi:      #f2f2f2;
  --text-mid:     #888;
  --text-lo:      #444;
  --white:        #fff;
  --font:         'Inter', -apple-system, sans-serif;
  --radius:       18px;
}

html, body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-hi);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

#cursor-dot {
  pointer-events: none;
  position: fixed;
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%,-50%);
  z-index: 9999;
  transition: transform 0.08s ease, opacity 0.2s;
  mix-blend-mode: difference;
}

#cursor-ring {
  pointer-events: none;
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  z-index: 9998;
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s, transform 0.12s ease;
}

body.hovering #cursor-dot  { 
  transform: translate(-50%,-50%) scale(1.8); 
}

body.hovering #cursor-ring { 
  width: 56px; 
  height: 56px; 
  border-color: rgba(255,255,255,0.7); 
}

.video-bg {
  position: fixed; 
  inset: 0; 
  z-index: 0; 
  overflow: hidden;
}

.video-bg video {
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  filter: blur(22px) brightness(0.22) grayscale(1);
  transform: scale(1.1);
}

.video-overlay {
  position: absolute; 
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,8,.5) 0%, rgba(8,8,8,.75) 60%, rgba(8,8,8,.97) 100%);
}

.grain {
  position: fixed; 
  inset: 0; 
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: grain-shift 0.12s steps(1) infinite;
}

@keyframes grain-shift {
  0%  { transform: translate(0,0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(2px,-3px); }
  60% { transform: translate(-1px, 3px); }
  80% { transform: translate(3px,-1px); }
  100%{ transform: translate(0,0); }
}

#particle-canvas {
  position: fixed; 
  inset: 0; 
  z-index: 2;
  pointer-events: none;
}

.profile-wrapper {
  position: relative; 
  z-index: 10;
  min-height: 100vh;
  display: flex; 
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  padding: 40px 16px 80px;
}

.card-scene {
  perspective: 900px;
  width: 100%; 
  max-width: 420px;
  cursor: pointer;
}

.profile-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(28px) saturate(1.1);
  -webkit-backdrop-filter: blur(28px) saturate(1.1);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 32px 100px rgba(0,0,0,.75),
    0 4px 20px rgba(0,0,0,.45);
  animation: card-in 0.6s cubic-bezier(0.22,1,0.36,1) both;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.profile-card:active {
  transform: scale(0.96) !important;
  transition: transform 0.1s ease;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.card-shine {
  position: absolute; 
  inset: 0; 
  z-index: 20;
  pointer-events: none;
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.06) 0%, transparent 65%);
  transition: background 0.05s;
  mix-blend-mode: overlay;
}

.card-video-bg {
  position: absolute; 
  inset: 0; 
  z-index: 0;
  border-radius: var(--radius); 
  overflow: hidden;
}

.card-video-bg video {
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  opacity: 0.08; 
  filter: brightness(0.5) grayscale(1);
}

.card-video-overlay {
  position: absolute; 
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.3) 0%, rgba(10,10,10,.88) 55%, rgba(10,10,10,.99) 100%);
}

.profile-card > *:not(.card-video-bg):not(.card-shine) {
  position: relative; 
  z-index: 5;
}

.quote-bar {
  width: 100%;
  padding: 10px 18px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--card-border);
  font-size: 11px;
  color: var(--text-mid);
  font-style: italic;
  letter-spacing: 0.01em;
}

.badge-m1 {
  display: inline-flex; 
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #ccc;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 9.5px; 
  font-style: normal; 
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-left: 4px;
}

.avatar-section {
  display: flex; 
  justify-content: center;
  padding: 28px 0 14px;
}

.avatar-ring {
  width: 90px; 
  height: 90px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, #fff 0%, #666 50%, #fff 100%);
  box-shadow:
    0 0 0 3px rgba(8,8,8,.85),
    0 0 30px rgba(255,255,255,.18),
    0 6px 20px rgba(0,0,0,.55);
  animation: ring-breathe 4s ease-in-out infinite;
}

@keyframes ring-breathe {
  0%,100% { box-shadow: 0 0 0 3px rgba(8,8,8,.85), 0 0 24px rgba(255,255,255,.12), 0 6px 20px rgba(0,0,0,.55); }
  50%      { box-shadow: 0 0 0 3px rgba(8,8,8,.85), 0 0 44px rgba(255,255,255,.28), 0 6px 20px rgba(0,0,0,.55); }
}

.avatar-img {
  width: 100%; 
  height: 100%;
  border-radius: 50%; 
  object-fit: cover; 
  display: block;
  background: #1a1a1a;
  filter: grayscale(0.3);
  transition: filter 0.4s;
}

.avatar-ring:hover .avatar-img { 
  filter: grayscale(0); 
}

.username-section { 
  text-align: center; 
  padding: 0 20px 12px; 
}

.username {
  font-size: 24px; 
  font-weight: 700; 
  letter-spacing: -0.025em;
  color: var(--text-hi);
  margin-bottom: 10px;
  position: relative; 
  display: inline-block;
}

.username::before,
.username::after {
  content: attr(data-text);
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%;
  pointer-events: none;
}

.username::before {
  color: rgba(255,255,255,0.7);
  animation: glitch-1 4.5s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.username::after {
  color: rgba(255,255,255,0.5);
  animation: glitch-2 4.5s infinite;
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
  0%,94%,100% { transform: none; opacity: 0; }
  95%          { transform: translate(-2px,0); opacity: 0.6; }
  96%          { transform: translate(2px,0);  opacity: 0.6; }
  97%          { transform: translate(-1px,1px);opacity: 0.6; }
  98%,99%      { transform: none; opacity: 0; }
}

@keyframes glitch-2 {
  0%,96%,100% { transform: none; opacity: 0; }
  97%          { transform: translate(2px,-1px); opacity: 0.5; }
  98%          { transform: translate(-2px,1px); opacity: 0.5; }
  99%          { transform: none; opacity: 0; }
}

.badge-row {
  display: flex; 
  flex-wrap: wrap;
  justify-content: center; 
  gap: 5px;
}

.badge {
  display: inline-flex; 
  align-items: center; 
  gap: 4px;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 10px; 
  font-weight: 600; 
  letter-spacing: 0.03em;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-mid);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
  cursor: default;
}

.badge:hover {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color: var(--text-hi);
  transform: translateY(-1px);
}

.badge svg { 
  flex-shrink: 0; 
}

.badge-premium   { 
  border-color: rgba(255,255,255,0.18); 
  color: #e0e0e0; 
}

.badge-verified  { 
  border-color: rgba(200,200,255,0.2);  
  color: #b0b8e8; 
}

.badge-trendsetter { 
  border-color: rgba(255,255,255,0.12); 
}

.badge-pioneer   { 
  border-color: rgba(255,255,255,0.12); 
}

.badge-discoverer { 
  border-color: rgba(255,255,255,0.12); 
}

.badge { 
  animation: badge-in 0.4s cubic-bezier(0.22,1,0.36,1) both; 
}

.badge:nth-child(1){ animation-delay:.55s; }
.badge:nth-child(2){ animation-delay:.65s; }
.badge:nth-child(3){ animation-delay:.72s; }
.badge:nth-child(4){ animation-delay:.79s; }
.badge:nth-child(5){ animation-delay:.86s; }

@keyframes badge-in {
  from { opacity:0; transform:translateY(6px) scale(0.9); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

.bio-section {
  text-align: center; 
  padding: 4px 24px 18px;
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 5px;
}

.bio-italic { 
  font-size: 12px; 
  color: var(--text-mid); 
  letter-spacing: 0.07em; 
}

.bio-line   { 
  font-size: 12px; 
  color: var(--text-lo); 
  font-weight: 500; 
}

.bio-company {
  display: flex; 
  align-items: center; 
  gap: 6px;
  font-size: 11.5px; 
  color: var(--text-lo); 
  font-weight: 500; 
  margin-top: 2px;
}

.company-icon { 
  width: 14px; 
  height: 14px; 
  object-fit: contain; 
  opacity: 0.6; 
}

.links-section { 
  padding: 0 18px 16px; 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
}

.link-btn {
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px;
  width: 100%; 
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text-hi);
  font-size: 13px; 
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, transform 0.12s, box-shadow 0.18s;
  position: relative; 
  overflow: hidden;
}

.link-btn::after {
  content: '';
  position: absolute; 
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.06) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.45s ease;
}

.link-btn:hover::after { 
  transform: translateX(100%); 
}

.link-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.link-btn:active { 
  transform: translateY(0); 
  box-shadow: none; 
}

.link-icon { 
  width: 15px; 
  height: 15px; 
  flex-shrink: 0; 
  opacity: 0.8; 
}

.link-btn-loading { 
  cursor: default; 
  opacity: 0.4; 
}

.link-btn-loading:hover { 
  transform: none; 
  background: rgba(255,255,255,0.04); 
  box-shadow: none; 
  border-color: rgba(255,255,255,0.07); 
}

.link-btn-loading:hover::after { 
  transform: none; 
}

.loading-dots { 
  display: flex; 
  align-items: center; 
  gap: 3px; 
}

.loading-dots span {
  display: block; 
  width: 4px; 
  height: 4px; 
  border-radius: 50%;
  background: var(--text-lo);
  animation: dot-pulse 1.3s ease-in-out infinite;
}

.loading-dots span:nth-child(2){ animation-delay:.2s; }
.loading-dots span:nth-child(3){ animation-delay:.4s; }

@keyframes dot-pulse {
  0%,80%,100%{ transform:scale(0.65); opacity:.35; }
  40%         { transform:scale(1);    opacity:1;   }
}

.stats-bar {
  display: flex; 
  align-items: center; 
  justify-content: center;
  padding: 12px 20px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.stat { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  flex: 1; 
  gap: 2px; 
}

.stat-value {
  font-size: 20px; 
  font-weight: 700; 
  letter-spacing: -0.03em;
  color: var(--text-hi);
}

.stat-label {
  font-size: 10px; 
  font-weight: 500; 
  color: var(--text-lo);
  letter-spacing: 0.05em; 
  text-transform: uppercase;
}

.stat-divider { 
  width: 1px; 
  height: 36px; 
  background: rgba(255,255,255,0.07); 
  margin: 0 8px; 
  flex-shrink: 0; 
}

.music-bar {
  display: flex; 
  align-items: center; 
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.music-play-btn {
  width: 30px; 
  height: 30px; 
  flex-shrink: 0;
  display: flex; 
  align-items: center; 
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s;
  color: var(--text-hi);
}

.music-play-btn:hover { 
  background: rgba(255,255,255,0.14); 
  transform: scale(1.08); 
}

.music-play-btn svg { 
  width: 12px; 
  height: 12px; 
}

.music-info { 
  flex: 1; 
  min-width: 0; 
}

.music-title {
  font-size: 11px; 
  font-weight: 600; 
  color: var(--text-hi);
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis;
}

.music-artist { 
  font-size: 10px; 
  color: var(--text-lo); 
}

.music-wave {
  display: flex; 
  align-items: center; 
  gap: 2px; 
  height: 20px;
}

.music-wave span {
  display: block; 
  width: 2.5px; 
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  animation: wave-bar 0.8s ease-in-out infinite;
}

.music-wave span:nth-child(1){ height: 6px;  animation-delay:.0s; }
.music-wave span:nth-child(2){ height: 14px; animation-delay:.1s; }
.music-wave span:nth-child(3){ height: 10px; animation-delay:.2s; }
.music-wave span:nth-child(4){ height: 18px; animation-delay:.05s; }
.music-wave span:nth-child(5){ height: 8px;  animation-delay:.15s; }

@keyframes wave-bar {
  0%,100%{ transform: scaleY(0.5); opacity:.4; }
  50%    { transform: scaleY(1.3); opacity:1;  }
}

.music-wave.paused span { 
  animation-play-state: paused; 
}

#click-gate {
  position: fixed; 
  inset: 0; 
  z-index: 999;
  display: flex; 
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  gap: 18px;
  background: #080808;
  cursor: pointer;
  transition: opacity 0.65s ease;
}

#click-gate.hiding { 
  opacity: 0; 
  pointer-events: none; 
}

.gate-word {
  font-size: clamp(52px, 14vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
  position: relative;
  animation: gate-breathe 2.8s ease-in-out infinite;
}

@keyframes gate-breathe {
  0%,100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.02); }
}

.gate-word::after {
  content: '';
  position: absolute; 
  left: 0; 
  right: 0;
  height: 2px; 
  background: rgba(255,255,255,0.12);
  animation: scanline 3s linear infinite;
  pointer-events: none;
}

@keyframes scanline {
  0%   { top: 0%; }
  100% { top: 105%; }
}

.gate-sub {
  font-size: 11px; 
  letter-spacing: 0.22em;
  text-transform: uppercase; 
  color: rgba(255,255,255,0.22);
  font-weight: 400;
  animation: gate-sub-blink 1.6s ease-in-out infinite;
}

@keyframes gate-sub-blink {
  0%,100% { opacity: 0.22; }
  50%      { opacity: 0.55; }
}

.card-scene { 
  opacity: 0; 
  transform: translateY(14px); 
  transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s; 
}

.card-scene.entered { 
  opacity: 1; 
  transform: none; 
}

.site-footer {
  position: relative; 
  z-index: 10;
  text-align: center; 
  padding: 20px;
  font-size: 10.5px; 
  color: var(--text-lo); 
  letter-spacing: 0.03em;
}

.reveal {
  opacity: 0; 
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible { 
  opacity: 1; 
  transform: none; 
}

@media (max-width: 460px) {
  .profile-card { border-radius: 14px; }
  .username { font-size: 21px; }
  .avatar-ring { width: 78px; height: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  .loading-dots span, 
  .music-wave span,
  .username::before, 
  .username::after,
  .grain, 
  .avatar-ring { 
    animation: none !important; 
  }
  .link-btn { 
    transition: none; 
  }
}