@property --beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  
  --c-bg:        #06030f;
  --c-bg2:       #0e0620;
  --c-bg3:       #160b30;
  --c-surface:   rgba(22,11,48,.6);
  --c-border:    rgba(139,92,246,.18);
  --c-border-h:  rgba(167,139,250,.35);
  --c-text:      #e2d9f3;
  --c-text2:     #a594c0;
  --c-text3:     #6b5a8a;

  --p-700: #5b21b6;
  --p-600: #7c3aed;
  --p-500: #8b5cf6;
  --p-400: #a78bfa;
  --p-300: #c4b5fd;
  --p-200: #ddd6fe;

  --blue:   #3b82f6;
  --pink:   #ec4899;
  --orange: #f97316;
  --green:  #22c55e;

  --grad-main:  linear-gradient(135deg, var(--p-600) 0%, var(--p-400) 100%);
  --grad-text:  linear-gradient(90deg, var(--p-500) 0%, var(--p-300) 50%, var(--blue) 100%);
  --grad-card:  linear-gradient(145deg, rgba(139,92,246,.08) 0%, rgba(59,130,246,.04) 100%);

  --sh-card:    0 4px 24px rgba(6,3,15,.5), 0 1px 4px rgba(0,0,0,.3);
  --sh-glow:    0 0 26px rgba(139,92,246,.18);
  --sh-hover:   0 6px 24px rgba(139,92,246,.18), 0 2px 8px rgba(0,0,0,.3);

  --r-sm: .5rem;
  --r-md: 1rem;
  --r-lg: 1.5rem;
  --r-xl: 2rem;

  --transition: .25s cubic-bezier(.4,0,.2,1);
  --transition-bounce: .4s cubic-bezier(.34,1.56,.64,1);
}

[data-theme="light"] {
  --c-bg:        #fafafa;
  --c-bg2:       #f1ecff;
  --c-bg3:       #e9e0ff;
  --c-surface:   rgba(255,255,255,.85);
  --c-border:    rgba(139,92,246,.2);
  --c-border-h:  rgba(139,92,246,.45);
  --c-text:      #1a1033;
  --c-text2:     #4a3878;
  --c-text3:     #6d28d9;

  --sh-card:    0 4px 24px rgba(139,92,246,.1), 0 1px 4px rgba(100,60,200,.06);
  --sh-glow:    0 0 40px rgba(139,92,246,.15);
  --sh-hover:   0 8px 40px rgba(139,92,246,.2), 0 2px 8px rgba(0,0,0,.08);

  
  --grad-text: linear-gradient(90deg, #5b21b6 0%, #7c3aed 50%, #1d4ed8 100%);
}

[data-theme="light"] .hero-badge { color: var(--p-700); border-color: rgba(109,40,217,.35); background: rgba(109,40,217,.1); }
[data-theme="light"] .acard-tags span { color: var(--p-700); background: rgba(109,40,217,.12); border-color: rgba(109,40,217,.3); }
[data-theme="light"] .tl-tag { color: var(--p-700); background: rgba(109,40,217,.1); border-color: rgba(109,40,217,.25); }
[data-theme="light"] .tl-card-highlight { color: var(--p-700); }
[data-theme="light"] .sec-eyebrow { color: var(--p-700); }
[data-theme="light"] .hstat-label { color: var(--p-700); }
[data-theme="light"] .hstat-num { color: var(--c-text); }
[data-theme="light"] .np-track { color: var(--p-700); }
[data-theme="light"] .badge-dot { box-shadow: 0 0 0 3px rgba(34,197,94,.3); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html.no-transition *, html.no-transition *::before, html.no-transition *::after {
  transition: none !important;
  animation-duration: 0.001ms !important;
}

::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 80px; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

.noise-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  opacity:.35;
  contain: strict;
}

::selection { background: var(--p-600); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.cursor-glow {
  position: fixed; left: 0; top: 0;
  width: 320px; height: 320px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(139,92,246,.10) 0%, transparent 70%);
  will-change: transform;
  transition: opacity .3s;
  contain: layout style;
}
@media (hover: none) { .cursor-glow { display: none; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.4,0,.2,1); transition-delay: var(--delay, 0s); }
.reveal.visible { opacity: 1; transform: none; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.65rem; border-radius: 999px;
  font-weight: 600; font-size: .88rem; letter-spacing: .02em;
  border: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-main); color: #fff;
  box-shadow: 0 4px 20px rgba(139,92,246,.3);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(139,92,246,.5); }

.btn-ghost {
  background: rgba(255,255,255,.04); color: var(--c-text2);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { border-color: rgba(139,92,246,.45); color: var(--p-300); background: rgba(139,92,246,.07); }

.btn-block { width: 100%; justify-content: center; border-radius: 999px; padding: 1rem; }

.gradient-text {
  background: linear-gradient(90deg, var(--p-500) 0%, var(--p-300) 25%, var(--blue) 50%, var(--p-300) 75%, var(--p-500) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradShift 8s linear infinite;
}
@keyframes gradShift { to { background-position: 200% center; } }

.section { padding: 7rem 0; position: relative; content-visibility: auto; contain-intrinsic-size: 0 700px; contain: layout style; }

.sec-header {
  text-align: center;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sec-eyebrow {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .76rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--p-300);
  padding: 0;
  margin: 0 0 .9rem;
  line-height: 1;
  position: relative;
  isolation: isolate;
  background: none;
  border: none;
  box-shadow: none;
}
.sec-eyebrow::before,
.sec-eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: clamp(32px, 7vw, 68px);
  height: 1px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: .9;
  filter: drop-shadow(0 0 8px rgba(167,139,250,.5));
}
.sec-eyebrow::before {
  right: calc(100% + 10px);
  background: linear-gradient(90deg, transparent 0%, rgba(167,139,250,.75) 100%);
}
.sec-eyebrow::after {
  left: calc(100% + 10px);
  background: linear-gradient(90deg, rgba(167,139,250,.75) 0%, transparent 100%);
}
.sec-title { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; line-height: 1.2; margin-bottom: .75rem; }
.sec-sub { color: var(--c-text2); max-width: 540px; margin: 0 auto; font-size: 1.05rem; }

.sec-header .sec-title {
  position: relative;
  display: block;
}
.sec-header .sec-title::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -10px;
  height: 2px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent 0%, rgba(139,92,246,.55) 50%, transparent 100%);
  opacity: .55;
  animation: titleGlow 4.6s ease-in-out infinite;
}
@keyframes titleGlow {
  0%, 100% { opacity: .35; transform: scaleX(.92); }
  50%      { opacity: .8;  transform: scaleX(1); }
}

.card-beam {
  position: absolute; top: 0; left: -100%; width: 60%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--p-400), transparent);
  border-radius: 999px; animation: beamSlide 5s ease-in-out infinite;
  contain: layout style;
}
@keyframes beamSlide { 0%,100%{left:-100%} 50%{left:140%} }

/* ═══════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1rem 0;
  overflow: visible;
  transition: background var(--transition), border-color var(--transition), padding var(--transition);
}
.navbar.scrolled {
  background: rgba(6,3,15,.75);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-bottom: 1px solid rgba(139,92,246,.12);
  padding: .65rem 0;
}
[data-theme="light"] .navbar.scrolled { background: rgba(250,250,250,.82); }

/* ── Layout ─────────────────────────────────────── */
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center;
  gap: 1.5rem; overflow: visible;
}

/* ── Logo ────────────────────────────────────────── */
.nav-logo { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; text-decoration: none; }
.nav-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover;
  outline: 1.5px solid rgba(139,92,246,.5);
  outline-offset: 2px;
}
.logo-text { font-weight: 900; font-size: 1.05rem; letter-spacing: .15em; color: var(--c-text); }
.logo-gem  { color: var(--p-400); margin-left: .04rem; }

/* ═══════════════════════════════════════════════════════
   NAV DOCK  —  minimal pill, icon-only
   ═══════════════════════════════════════════════════════ */
.nav-dock {
  display: flex;
  align-items: center;          /* vertically centered — no more floating up */
  gap: 2px;
  margin: 0 auto;
  padding: 6px 10px;
  border-radius: 999px;         /* full pill */
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  overflow: visible !important;
  isolation: isolate;
  /* subtle top sheen */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    0 4px 24px rgba(0,0,0,.25);
}
[data-theme="light"] .nav-dock {
  background: rgba(255,255,255,.72);
  border-color: rgba(139,92,246,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 4px 20px rgba(139,92,246,.1);
}

/* ── Each nav item ────────────────────────────────── */
.dock-item {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  text-decoration: none;
  color: var(--c-text3);
  transition: color .22s ease;
  z-index: 0;
  flex-shrink: 0;
}
.dock-item:hover { z-index: 10; color: var(--c-text); }
.dock-item.active { color: var(--p-400); }

/* Icon — just the FA icon, no box */
.dock-icon {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-size: 1rem;
  position: relative; z-index: 1;
  transition: transform .28s cubic-bezier(.34,1.46,.64,1);
}
.dock-item:hover .dock-icon { transform: scale(1.18); }
.dock-item.active .dock-icon { transform: scale(1.05); }

/* Hover highlight bubble behind icon */
.dock-item::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(139,92,246,.14);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .22s ease, transform .28s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.dock-item:hover::before {
  opacity: 1;
  transform: scale(1);
}
.dock-item.active::before {
  opacity: .75;
  transform: scale(1);
  background: rgba(139,92,246,.18);
}

/* Active dot — centered below icon */
.dock-dot {
  position: absolute;
  bottom: 2px;
  left: 50%; transform: translateX(-50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--p-400);
  box-shadow: 0 0 5px rgba(139,92,246,.7);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.dock-item.active .dock-dot { opacity: 1; }

/* Tooltip label — appears below on hover */
.dock-label {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background: rgba(14,6,32,.92);
  border: 1px solid rgba(139,92,246,.22);
  border-radius: 10px;
  padding: 5px 12px;
  font-size: .71rem; font-weight: 600; letter-spacing: .03em;
  color: var(--c-text);
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .16s ease, transform .18s ease;
  backdrop-filter: blur(16px);
  box-shadow: 0 6px 20px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
  z-index: 1050;
}
[data-theme="light"] .dock-label {
  background: rgba(255,255,255,.95);
  border-color: rgba(139,92,246,.25);
  color: var(--c-text);
}
/* tiny arrow */
.dock-label::before {
  content: '';
  position: absolute;
  bottom: 100%; left: 50%; transform: translateX(-50%);
  border: 4px solid transparent;
  border-bottom-color: rgba(139,92,246,.22);
}
.dock-label::after {
  content: '';
  position: absolute;
  bottom: calc(100% - 1px); left: 50%; transform: translateX(-50%);
  border: 4px solid transparent;
  border-bottom-color: rgba(14,6,32,.92);
}
[data-theme="light"] .dock-label::after { border-bottom-color: rgba(255,255,255,.95); }
.dock-item:hover .dock-label { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Separator between groups */
.dock-sep {
  width: 1px; height: 22px; flex-shrink: 0;
  background: rgba(255,255,255,.1);
  border-radius: 1px; margin: 0 4px;
  align-self: center;
}

/* ── Nav controls (right side) ────────────────────── */
.nav-controls { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

/* pill-style control buttons */
.ctrl-btn {
  display: flex; align-items: center; justify-content: center; gap: .28rem;
  height: 34px;
  padding: 0 .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: var(--c-text2);
  cursor: pointer;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  transition: all var(--transition);
  white-space: nowrap;
  backdrop-filter: blur(12px);
}
.ctrl-btn:hover {
  border-color: rgba(139,92,246,.45);
  color: var(--p-300);
  background: rgba(139,92,246,.12);
  box-shadow: 0 0 14px rgba(139,92,246,.2);
}
[data-theme="light"] .ctrl-btn {
  background: rgba(255,255,255,.75);
  border-color: rgba(139,92,246,.22);
  color: var(--c-text2);
}
[data-theme="light"] .ctrl-btn:hover {
  background: rgba(139,92,246,.1);
  border-color: rgba(139,92,246,.45);
  color: var(--p-700);
}

/* Lang toggle — highlight active language only */
.lang-sep   { opacity: .35; margin: 0 .05rem; }

[data-lang="tr"] .lang-tr { color: var(--p-400); }
[data-lang="tr"] .lang-en { color: var(--c-text3); }
[data-lang="en"] .lang-en { color: var(--p-400); }
[data-lang="en"] .lang-tr { color: var(--c-text3); }

/* Theme icon toggle */
.theme-light-icon { display: none; }
.theme-dark-icon  { display: block; }
[data-theme="light"] .theme-light-icon { display: block; }
[data-theme="light"] .theme-dark-icon  { display: none; }

/* ── Hamburger (mobile) ──────────────────────────── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: .45rem .6rem;
  cursor: pointer;
}
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--c-text); border-radius: 1px; transition: transform var(--transition), opacity var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 90px;
}

.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; contain: strict; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px); animation: orbFloat 8s ease-in-out infinite;
  will-change: transform;
  contain: layout style;
}
.orb-1 {
  width: 700px; height: 700px; top: -20%; left: -15%;
  background: radial-gradient(circle, rgba(124,58,237,.3) 0%, rgba(109,40,217,.1) 50%, transparent 70%);
  animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px; top: 10%; right: -10%;
  background: radial-gradient(circle, rgba(59,130,246,.25) 0%, rgba(37,99,235,.08) 50%, transparent 70%);
  animation-delay: -3s; animation-duration: 10s;
}
.orb-3 {
  width: 400px; height: 400px; bottom: -10%; left: 40%;
  background: radial-gradient(circle, rgba(236,72,153,.2) 0%, rgba(217,39,119,.06) 50%, transparent 70%);
  animation-delay: -5s; animation-duration: 12s;
}
/* Mobile: orbs scaled down — previously 700/500/400px blobs overwhelmed small screens */
@media(max-width:768px) {
  .orb-1 { width: 320px; height: 320px; top: -10%; left: -20%; filter: blur(55px); }
  .orb-2 { width: 240px; height: 240px; top: 5%; right: -15%; filter: blur(50px); }
  .orb-3 { width: 200px; height: 200px; filter: blur(45px); opacity: .6; }
}
@media(max-width:480px) {
  .orb-1 { width: 200px; height: 200px; left: -10%; filter: blur(45px); opacity: .7; }
  .orb-2 { width: 160px; height: 160px; filter: blur(40px); opacity: .6; }
  .orb-3 { display: none; }
}
@keyframes orbFloat {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50%      { transform: translate3d(40px,-30px,0) scale(1.08); }
}

.dot-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(139,92,246,.18) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-container {
  max-width: 1200px; margin: 0 auto; padding: 4rem 2rem;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 4rem; position: relative; z-index: 2;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.22);
  border-radius: 999px; padding: .42rem 1rem; margin-bottom: 1.25rem;
  font-size: .8rem; font-weight: 600; color: var(--p-300);
  line-height: 1;
  position: relative; overflow: hidden;
}
.hero-badge::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(196,181,253,.18) 50%, transparent 75%);
  border-radius: inherit;
  pointer-events: none;
  animation: badgeShimmer 3.2s ease-in-out infinite;
}
@keyframes badgeShimmer {
  0%, 100% { transform: translateX(-160%); }
  45%, 55% { transform: translateX(160%); }
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(34,197,94,.25);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0; align-self: center;
}
@keyframes pulse { 0%,100%{box-shadow:0 0 0 3px rgba(34,197,94,.25)} 50%{box-shadow:0 0 0 7px rgba(34,197,94,.05)} }

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -.03em; margin-bottom: 1.2rem;
}
.aurora-text {
  background: linear-gradient(90deg, var(--p-500) 0%, var(--p-300) 20%, var(--blue) 45%, var(--p-400) 65%, var(--p-300) 80%, var(--p-500) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradShift 8s linear infinite;
}
.tw-cursor {
  display: inline;
  font-weight: 200;
  -webkit-text-fill-color: var(--p-300);
  color: var(--p-300);
  animation: twBlink .75s step-end infinite;
  margin-left: 2px;
}
@keyframes twBlink { 0%,100%{opacity:1} 50%{opacity:0} }

.lang-switching [data-tr][data-en] {
  animation: langFlash .32s ease forwards;
}
@keyframes langFlash {
  0%   { opacity: 1; transform: translateY(0); }
  35%  { opacity: 0; transform: translateY(-6px); }
  65%  { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.lang-pop {
  animation: langBtnPop .28s cubic-bezier(.22,1,.36,1) !important;
}
@keyframes langBtnPop {
  0%,100% { transform: scale(1); }
  45%     { transform: scale(.78) rotate(-10deg); }
}

.hero-desc { font-size: 1.1rem; color: var(--c-text2); margin-bottom: 2rem; max-width: 500px; }

.hero-stats {
  display: flex; align-items: center; gap: 1.5rem;
  margin-bottom: 2.25rem; flex-wrap: wrap;
}
.hstat { text-align: center; }
.hstat-num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--c-text); font-variant-numeric: tabular-nums; }
.hstat-label { font-size: .78rem; color: var(--c-text3); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.hstat-divider { width: 1px; height: 36px; background: var(--c-border); }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 460px; }

.avatar-wrap { position: relative; width: 260px; height: 260px; flex-shrink: 0; overflow: visible; }
.avatar-rings { position: absolute; inset: -50px; }
.ring {
  position: absolute; border-radius: 50%;
  border: 1px solid transparent;
}
.ring-1 {
  inset: 0; border-color: rgba(139,92,246,.3);
  animation: ringRotate 12s linear infinite;
}
.ring-2 {
  inset: -24px; border-color: rgba(167,139,250,.15);
  animation: ringRotate 18s linear infinite reverse;
}
.ring-3 {
  inset: -50px; border-color: rgba(124,58,237,.08);
  animation: ringRotate 26s linear infinite;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

.avatar-core {
  position: absolute; inset: 0; border-radius: 50%;
  overflow: hidden;
  background: var(--grad-main);
  box-shadow: var(--sh-glow), inset 0 0 40px rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center;
}
.avatar-img { width: 100%; height: 100%; object-fit: cover; }
.avatar-fb-icon { font-size: 5rem; color: rgba(255,255,255,.6); display: none; }

.avatar-decoration {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 5;
  object-fit: contain;
  transform-origin: center center;
  transform: scale(1.23);
  opacity: 0; transition: opacity .4s ease;
}
.avatar-decoration.loaded { opacity: 1; }
.avatar-fallback .avatar-img  { display: none; }
.avatar-fallback .avatar-fb-icon { display: block; }

.avatar-beam {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(139,92,246,.5) 20%, transparent 40%);
  animation: beamSpin 4.5s linear infinite; z-index: -1;
  contain: layout style;
}
@keyframes beamSpin { to { transform: rotate(360deg); } }

.chip {
  position: absolute;
  display: flex; align-items: center; gap: .4rem;
  padding: .45rem 1rem; border-radius: 12px;
  background: color-mix(in srgb, var(--c-surface) 95%, transparent);
  border: 1px solid var(--c-border);
  font-size: .8rem; font-weight: 600; color: var(--c-text);
  box-shadow: 0 2px 12px rgba(6,3,15,.28);
  animation: none;
  will-change: transform;
}
.chip i { color: var(--p-400); font-size: .9rem; }
.chip-1 { top: 5%;  left: -10%; animation-delay: 0s; }
.chip-2 { top: 25%; right: -5%; animation-delay: -.8s; }
.chip-3 { bottom: 25%; left: -12%; animation-delay: -1.6s; }
.chip-4 { bottom: 5%; right: -8%; animation-delay: -2.4s; }
@keyframes chipFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  z-index: 2; color: var(--c-text3); font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase;
  animation: fadeUp 2.4s ease-in-out infinite;
  text-align: center; line-height: 1.2; pointer-events: none;
}
.mouse {
  width: 20px; height: 32px;
  border: 1.5px solid rgba(139,92,246,.4); border-radius: 999px;
  display: flex; justify-content: center; align-items: flex-start; padding-top: 5px;
  box-shadow: 0 0 10px rgba(139,92,246,.12), inset 0 0 6px rgba(139,92,246,.06);
}
.wheel {
  width: 2px; height: 6px; border-radius: 999px;
  background: linear-gradient(to bottom, var(--p-400), transparent);
  animation: wheelScroll 2s ease-in-out infinite;
}
@keyframes wheelScroll { 0%,100%{transform:translateY(0);opacity:1} 55%{transform:translateY(8px);opacity:0} }
@keyframes fadeUp { 0%,100%{transform:translateX(-50%) translateY(0);opacity:.55} 50%{transform:translateX(-50%) translateY(-5px);opacity:1} }

.about { background: var(--c-bg2); }

.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; align-items: stretch; }
@media(max-width:1000px){ .about-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:600px){ .about-grid { grid-template-columns: 1fr; } }

.about-card {
  background: rgba(255,255,255,.018);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 1.75rem; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.about-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139,92,246,.28);
  box-shadow: 0 16px 48px rgba(6,3,15,.45), 0 1px 0 rgba(139,92,246,.12) inset;
}

.acard-icon {
  width: auto; height: auto;
  background: none; border: none; border-radius: 0;
  font-size: 1.35rem; color: var(--p-400);
  margin-bottom: 1rem; opacity: .85;
}
.about-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.about-card p { font-size: .88rem; color: var(--c-text2); line-height: 1.6; margin-bottom: .9rem; }
.acard-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.acard-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: .67rem; font-weight: 500; letter-spacing: .02em;
  padding: .18rem .46rem; border-radius: 4px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--c-text2);
  transition: border-color var(--transition), color var(--transition);
}
.acard-tags span:hover { border-color: rgba(139,92,246,.35); color: var(--p-300); }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: 1.25rem;
}
.bento-wide { grid-column: span 2; }
.bento-mini { grid-column: span 1; }

@media(max-width:900px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-wide { grid-column: span 2; }
  .bento-mini { grid-column: span 1; }
}
@media(max-width:520px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide, .bento-mini { grid-column: span 1; }
}

.bento-card {
  background: rgba(255,255,255,.018);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 1.75rem; position: relative; overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.bento-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139,92,246,.28);
  box-shadow: 0 16px 48px rgba(6,3,15,.4);
}

.bento-glow {
  position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.12) 0%, transparent 70%);
  bottom: -60px; right: -60px; pointer-events: none;
  transition: transform .4s;
}
.bento-card:hover .bento-glow { transform: scale(1.4); }

.bento-inner { position: relative; z-index: 1; }
.bento-icon { width: auto; height: auto; background: none; border: none; border-radius: 0; display: inline-flex; align-items: center; font-size: 1.3rem; color: var(--p-400); margin-bottom: .9rem; opacity: .85; }
.bento-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .35rem; }
.bento-card p { font-size: .88rem; color: var(--c-text2); margin-bottom: 1rem; }

.skill-bars { display: flex; flex-direction: column; gap: .6rem; }
.sbar-row { display: flex; align-items: center; gap: .75rem; }
.sbar-row > span:first-child { min-width: 110px; font-size: .8rem; color: var(--c-text2); }
.sbar { flex: 1; height: 6px; background: rgba(139,92,246,.12); border-radius: 999px; overflow: hidden; }
.sbar-fill { height: 100%; width: 0; border-radius: 999px; background: var(--grad-main); transition: width 1.2s cubic-bezier(.4,0,.2,1); }
.sbar-pct { font-size: .75rem; color: var(--p-400); font-weight: 700; min-width: 36px; text-align: right; }

.lang-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .5rem; }
.lchip {
  display: flex; align-items: center; gap: .35rem;
  padding: .28rem .72rem; border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  font-size: .8rem; font-weight: 500; color: var(--c-text2);
  transition: border-color var(--transition), color var(--transition);
}
.lchip:hover { border-color: rgba(139,92,246,.4); color: var(--p-300); }

.mini-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 160px; text-align: center; gap: .5rem; }
.mini-num { font-size: 2.2rem; font-weight: 900; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mini-label { font-size: .8rem; color: var(--c-text2); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.mini-icon { font-size: 1.4rem; color: var(--p-500); opacity: .4; }

.games { background: var(--c-bg2); }

.single-game-layout {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem;
  align-items: start;
}
@media(max-width:900px){ .single-game-layout { grid-template-columns: 1fr; } }

.sg-media { display: flex; flex-direction: column; gap: 1rem; }
.sg-thumb {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 16/9; background: var(--c-bg3);
  border: 1px solid var(--c-border);
}
.sg-img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.sg-thumb-fallback .sg-img { display: none; }
.sg-thumb-fallback-inner { display: none; }
.sg-thumb-fallback .sg-thumb-fallback-inner { display: block; position: absolute; inset: 0; }
.game-thumb-bg { position: absolute; inset: 0; }
.game-bg-1 {
  background: radial-gradient(ellipse at 40% 50%, #3b0764 0%, #1e1b4b 50%, #06030f 100%);
}

.sg-play-overlay {
  position: absolute; inset: 0; background: rgba(6,3,15,.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.sg-thumb:hover .sg-play-overlay { opacity: 1; }
.play-btn {
  width: 68px; height: 68px; border-radius: 50%; border: none;
  background: rgba(139,92,246,.85); color: #fff; font-size: 1.5rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition-bounce), box-shadow var(--transition);
}
.play-btn:hover { transform: scale(1.12); box-shadow: 0 0 30px rgba(139,92,246,.7); }

.sg-badge-featured {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(139,92,246,.2); color: var(--p-200);
  border: 1px solid rgba(139,92,246,.35);
  border-radius: 999px; backdrop-filter: blur(8px);
  padding: .25rem .85rem; font-size: .71rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}

.sg-screenshots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.sg-ss {
  aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden;
  background: var(--c-bg3); border: 1px solid var(--c-border);
}
.sg-ss img { width: 100%; height: 100%; object-fit: cover; }

.sg-info { padding-top: .5rem; }
.game-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.gtag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem; padding: .2rem .6rem; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  color: var(--c-text2); font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  transition: border-color var(--transition), color var(--transition);
}
.gtag:hover { border-color: rgba(139,92,246,.3); color: var(--p-300); }
.gtag.gtag-active { background: rgba(34,197,94,.07); border-color: rgba(34,197,94,.2); color: var(--green); }

.sg-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; margin: .75rem 0; }
.sg-desc { color: var(--c-text2); line-height: 1.7; margin-bottom: 1.75rem; }

.sg-stats-row { display: flex; gap: 2rem; margin-bottom: 1.75rem; flex-wrap: wrap; align-items: stretch; }
.sg-stat { display: flex; align-items: center; gap: .7rem; min-width: 80px; }
.sg-stat i { font-size: 1.2rem; color: var(--p-400); }
.sg-stat-num { display: block; font-size: 1.1rem; font-weight: 800; color: var(--c-text); }
.sg-stat-label { font-size: .75rem; color: var(--c-text3); text-transform: uppercase; letter-spacing: .06em; }

.sg-features { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 2rem; }
.sg-feature { display: flex; align-items: center; gap: .65rem; font-size: .9rem; color: var(--c-text2); }
.sg-feature i { color: var(--green); font-size: .9rem; }
.sg-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════
   MY TEAM  —  Apple-style clean dark cards
   ═══════════════════════════════════════════════════════ */
.team-wrap {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-border);
}

/* ── Header ──────────────────────────────────────── */
.team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .85rem;
}
.team-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-text3);
}
.team-eyebrow i {
  font-size: .7rem;
  color: var(--p-500);
}
.team-count-pill {
  font-size: .68rem;
  font-weight: 700;
  color: var(--c-text3);
  background: rgba(139,92,246,.09);
  border: 1px solid rgba(139,92,246,.16);
  border-radius: 999px;
  padding: .15rem .6rem;
  letter-spacing: .03em;
}

/* ── Grid ────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: .6rem;
  contain: layout style;
}

/* ── Card ────────────────────────────────────────── */
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1rem .65rem .85rem;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  cursor: default;
  /* Glassmorphism base — lighter blur for performance */
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.068);
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  transition: transform .32s cubic-bezier(.34,1.46,.64,1),
              box-shadow .32s ease,
              border-color .28s ease;
  /* Role-color ambient drawn via z:-1 pseudo */
}

/* Top-edge glass sheen */
.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.22),
    transparent
  );
  pointer-events: none;
}

/* Role-color ambient glow underneath */
.team-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 90% 60% at 50% 110%,
    color-mix(in srgb, var(--role-color, var(--p-500)) 18%, transparent) 0%,
    transparent 70%
  );
  pointer-events: none;
  opacity: .6;
  transition: opacity .32s ease;
}

.team-card:hover {
  transform: translateY(-5px) scale(1.025);
  border-color: color-mix(in srgb, var(--role-color, var(--p-500)) 35%, transparent);
  box-shadow:
    0 16px 40px -10px color-mix(in srgb, var(--role-color, var(--p-500)) 30%, rgba(0,0,0,.5)),
    0 4px 16px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.1);
}
.team-card:hover::after { opacity: 1; }

/* All children above ::after */
.team-card > * { position: relative; z-index: 1; }

/* Skeleton */
.team-card-skeleton {
  min-height: 148px;
  background: linear-gradient(
    100deg,
    rgba(255,255,255,.02) 25%,
    rgba(255,255,255,.055) 50%,
    rgba(255,255,255,.02) 75%
  );
  background-size: 200% 100%;
  animation: team-shimmer 1.5s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,.06);
  backdrop-filter: none;
}
@keyframes team-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Avatar ──────────────────────────────────────── */
.team-avatar-wrap {
  position: relative;
  width: 58px; height: 58px;
  flex-shrink: 0;
}
/* Colored ring */
.team-avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -2.5px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--role-color, var(--p-500)),
    color-mix(in srgb, var(--role-color, var(--p-500)) 40%, transparent) 60%,
    var(--role-color, var(--p-500)) 100%
  );
  opacity: .85;
  animation: team-ring-spin 5s linear infinite paused;
  transition: opacity .3s;
}
.team-card:hover .team-avatar-wrap::before {
  opacity: 1;
  animation-play-state: running;
}
@keyframes team-ring-spin { to { transform: rotate(360deg); } }

.team-avatar {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid var(--c-bg);
  background: var(--c-bg3);
}

/* ── Name ────────────────────────────────────────── */
.team-name {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--c-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* ── Role label ──────────────────────────────────── */
.team-role-pill {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--role-color, var(--p-400));
  opacity: .82;
  transition: opacity .25s;
  white-space: nowrap;
}
/* Colored dot before text */
.team-role-pill::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--role-color, var(--p-400));
  flex-shrink: 0;
  box-shadow: 0 0 5px var(--role-color, var(--p-400));
}
.team-card:hover .team-role-pill { opacity: 1; }

/* ── Empty state ─────────────────────────────────── */
.team-empty {
  width: 100%;
  text-align: center;
  padding: 2rem;
  color: var(--c-text3);
  font-size: .9rem;
}
@media(max-width:600px) {
  .team-card { max-width: 110px; padding: 1rem .6rem .85rem; }
  .team-avatar-wrap { width: 60px; height: 60px; }
}

.single-group-layout { max-width: 800px; margin: 0 auto; }

.group-hero-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--r-xl);
  padding: 2.5rem 2.5rem 2.5rem 2rem;
  display: flex; align-items: flex-start; gap: 2rem;
  position: relative; overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.group-hero-card:hover { border-color: var(--c-border-h); box-shadow: var(--sh-hover); }

.ghc-left { display: flex; flex-direction: column; align-items: center; gap: .75rem; flex-shrink: 0; }
.ghc-icon {
  width: 96px; height: 96px; border-radius: var(--r-lg);
  background: var(--grad-main); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-glow);
}
.ghc-img { width: 100%; height: 100%; object-fit: cover; }
.ghc-icon-fallback .ghc-img  { display: none; }
.ghc-icon-fallback .ghc-fb   { display: block !important; }
.ghc-fb { font-size: 2.5rem; color: rgba(255,255,255,.8); display: none; }

.ghc-owner-badge {
  display: flex; align-items: center; gap: .3rem;
  background: rgba(250,204,21,.12); border: 1px solid rgba(250,204,21,.3);
  border-radius: 6px; padding: .2rem .7rem; font-size: .72rem; font-weight: 700; color: #facc15;
}

.ghc-right { flex: 1; }
.ghc-name { font-size: 1.6rem; font-weight: 900; margin-bottom: .6rem; }
.ghc-desc { color: var(--c-text2); line-height: 1.7; margin-bottom: 1.5rem; }

.ghc-stats { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.ghc-stat { text-align: center; }
.ghc-stat-num { display: block; font-size: 1.3rem; font-weight: 800; color: var(--p-300); }
.ghc-stat-label { font-size: .75rem; color: var(--c-text3); text-transform: uppercase; letter-spacing: .06em; }
.ghc-stat-div { width: 1px; height: 30px; background: var(--c-border); }

@media(max-width:700px) {
  .group-hero-card { flex-direction: column; align-items: center; text-align: center; padding: 2rem 1.5rem; }
  .ghc-right { width: 100%; }
  .ghc-stats { justify-content: center; }
}

.community { background: var(--c-bg2); }

.community-layout {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: stretch;
}
@media(max-width:900px){ .community-layout { grid-template-columns: 1fr; } }

.servers-col { display: flex; flex-direction: column; gap: 1.25rem; }

.server-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--r-lg);
  padding: 1.75rem; position: relative; overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.server-card:hover { transform: translateY(-4px); border-color: var(--c-border-h); box-shadow: var(--sh-hover); }

.sc-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.sc-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
}
.sc-purple { color: var(--p-400); }
.sc-blue   { color: var(--blue); }

.sc-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: .2rem; }
.sc-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .67rem; font-weight: 500; letter-spacing: .03em;
  padding: .16rem .46rem; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: var(--c-text2);
}
.sc-tag-blue {
  color: rgba(147,197,253,.7); border-color: rgba(59,130,246,.2); background: rgba(59,130,246,.06);
}

.server-card > p { font-size: .88rem; color: var(--c-text2); line-height: 1.6; margin-bottom: 1rem; }

.sc-features { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.25rem; }
.sc-features span { font-size: .83rem; color: var(--c-text2); display: flex; align-items: center; gap: .5rem; }
.sc-features .fa-circle-dot { font-size: .5rem; color: var(--p-500); }

.sc-btn       { width: 100%; justify-content: center; }
.sc-btn-blue  { border-color: rgba(59,130,246,.3); }
.sc-btn-blue:hover { border-color: var(--blue); color: var(--blue); background: rgba(59,130,246,.08); }

.widget-wrap {
  background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--r-lg);
  overflow: hidden; position: relative;
  box-shadow: var(--sh-card);
  display: flex; flex-direction: column;
}
.widget-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--c-border);
  background: rgba(139,92,246,.06); flex-shrink: 0;
}
.widget-header-icon {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: rgba(88,101,242,.2); border: 1px solid rgba(88,101,242,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #5865f2; flex-shrink: 0;
}
.widget-header h4 { font-size: .95rem; font-weight: 700; }
.widget-online-indicator { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--c-text2); }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px rgba(34,197,94,.25); animation: pulse 2s infinite; }

.widget-frame-wrap { flex: 1; }
.dw-member-list {
  padding: .75rem;
  display: flex; flex-direction: column; gap: .35rem;
  max-height: 480px; overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
}
.dw-member-list::-webkit-scrollbar { width: 4px; }
.dw-member-list::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 2px; }

.dw-server-banner {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem .75rem .4rem;
  font-size: .82rem; font-weight: 700; color: var(--c-text2);
}
.dw-banner-icon { color: #5865f2; font-size: 1rem; }
.dw-banner-name { letter-spacing: .02em; }

.dw-section {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .67rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-text3); padding: .45rem .75rem .3rem; margin-top: .1rem;
}
.dw-section-count {
  background: rgba(139,92,246,.15); border: 1px solid rgba(139,92,246,.2);
  color: var(--p-400); border-radius: 6px; padding: .05rem .45rem; font-size: .68rem;
}

.dw-member {
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem .75rem; border-radius: var(--r-sm);
  transition: background var(--transition);
  cursor: default;
}
.dw-member:hover { background: rgba(139,92,246,.08); }

.dw-avatar {
  position: relative; width: 38px; height: 38px; flex-shrink: 0;
}
.dw-avatar img {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  background: rgba(139,92,246,.15);
}
.dw-avatar-fb {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad-main);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 800; color: #fff;
}
.dw-status {
  position: absolute; bottom: -1px; right: -1px;
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--c-surface);
}
.dw-status-online  { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.2); }
.dw-status-idle    { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,.2); }
.dw-status-dnd     { background: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,.2); }
.dw-status-offline { background: #6b7280; }

.dw-info { flex: 1; min-width: 0; }
.dw-name-row { display: flex; align-items: center; gap: .45rem; }
.dw-name {
  font-size: .88rem; font-weight: 600; color: var(--c-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dw-status-badge {
  font-size: .62rem; font-weight: 700; padding: .05rem .4rem; border-radius: 6px;
  white-space: nowrap; flex-shrink: 0; letter-spacing: .03em;
}
.dw-badge-online  { background: rgba(34,197,94,.12);  color: #22c55e; }
.dw-badge-idle    { background: rgba(245,158,11,.12); color: #f59e0b; }
.dw-badge-dnd     { background: rgba(239,68,68,.12);  color: #ef4444; }
.dw-badge-offline { background: rgba(107,114,128,.12); color: #9ca3af; }
.dw-activity {
  display: flex; align-items: center; gap: .3rem;
  font-size: .73rem; color: var(--c-text3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: .15rem;
}
.dw-activity i { font-size: .65rem; color: var(--p-500); flex-shrink: 0; }

.dw-loading, .dw-empty, .dw-error {
  display: flex; align-items: center; justify-content: center;
  gap: .6rem; padding: 2.5rem 1rem;
  font-size: .85rem; color: var(--c-text3);
  flex-direction: column; text-align: center;
}
.dw-spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--c-border);
  border-top-color: var(--p-400);
  animation: spin .8s linear infinite; display: block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.dw-empty i, .dw-error i { font-size: 1.5rem; color: var(--p-500); }

.dw-more {
  font-size: .78rem; color: var(--c-text3); text-align: center;
  padding: .5rem; border-top: 1px solid var(--c-border); margin-top: .25rem;
  letter-spacing: .04em;
}

.widget-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--c-border); flex-shrink: 0; }
.widget-join-btn { width: 100%; justify-content: center; }

.portfolio { background: var(--c-bg); }

.design-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  contain: layout style;
}
@media(max-width:600px){ .design-gallery { grid-template-columns: repeat(2,1fr); gap: .75rem; } }
@media(max-width:360px){ .design-gallery { grid-template-columns: 1fr; } }

@keyframes dgCardIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.dg-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--c-surface); border: 1px solid var(--c-border);
  cursor: pointer;
  aspect-ratio: 16/9;
  animation: dgCardIn .55s cubic-bezier(.22,1,.36,1) both;
  animation-delay: var(--delay, 0s);
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color var(--transition), box-shadow var(--transition);
}
.dg-card:hover { transform: translateY(-8px) scale(1.02); border-color: var(--c-border-h); box-shadow: var(--sh-hover); }

.dg-img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform .5s ease;
}
.dg-card:hover .dg-img { transform: scale(1.06); }

.dg-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(135deg, rgba(139,92,246,.07), rgba(59,130,246,.04));
  color: var(--p-500);
}
.dg-placeholder i { font-size: 2.2rem; opacity: .4; }
.dg-placeholder span { font-size: .72rem; color: var(--c-text3); text-align: center; padding: 0 1rem; }

.dg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,3,15,.95) 0%, rgba(6,3,15,.55) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.1rem; opacity: 0;
  transition: opacity .3s ease;
}
.dg-card:hover .dg-overlay { opacity: 1; }
.dg-overlay-title {
  font-size: .9rem; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: .3rem;
}
.dg-overlay-desc {
  font-size: .73rem; color: rgba(255,255,255,.65); margin-bottom: .6rem;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
}
.dg-view-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  color: #fff; background: rgba(109,40,217,.85); border: 1px solid rgba(196,181,253,.35);
  padding: .4rem .9rem; border-radius: 8px; cursor: pointer;
  box-shadow: 0 4px 12px rgba(109,40,217,.3);
  transition: transform .2s ease, box-shadow .2s ease;
  align-self: flex-start;
}
.dg-view-btn:hover { transform: scale(1.03); box-shadow: 0 6px 18px rgba(109,40,217,.38); }

.dg-empty {
  grid-column: 1/-1; text-align: center; padding: 4rem 1rem;
  color: var(--c-text3); display: flex; flex-direction: column; align-items: center; gap: .8rem;
}
.dg-empty i { font-size: 3rem; opacity: .2; }
.dg-empty h4 { font-size: 1rem; font-weight: 700; color: var(--c-text2); }
.dg-empty p { font-size: .85rem; max-width: 380px; line-height: 1.6; }
.dg-empty code { font-family: 'JetBrains Mono', monospace; font-size: .78rem; color: var(--p-400); background: rgba(139,92,246,.1); padding: .15rem .45rem; border-radius: 4px; }

.glb {
  position: fixed; inset: 0; z-index: 8000;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0;
  transition: opacity .35s ease;
}
.glb.glb-open { opacity: 1; pointer-events: auto; }

.glb-backdrop {
  position: absolute; inset: 0;
  background: rgba(10,4,28,.38);
  backdrop-filter: blur(28px) saturate(1.4) brightness(.72);
  -webkit-backdrop-filter: blur(28px) saturate(1.4) brightness(.72);
}

body.glb-active > *:not(#galleryLightbox):not(#introScreen):not(#musicPlayer):not(script) {
  opacity: .35;
  transition: opacity .35s ease;
  pointer-events: none;
}

.glb-close {
  position: absolute; top: 1.5rem; right: 1.75rem; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: #fff; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.glb-close:hover { background: rgba(255,255,255,.18); transform: rotate(90deg); }

.glb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: #fff; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.glb-nav:hover { background: rgba(139,92,246,.35); border-color: var(--p-500); }
.glb-prev { left: 1.5rem; }
.glb-next { right: 1.5rem; }
.glb-nav:disabled { opacity: .25; pointer-events: none; }

.glb-stage {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: min(80vw, 900px); max-height: 80vh;
  perspective: 1200px;
}
.glb-card {
  position: relative; border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(139,92,246,.25);
  transform-style: preserve-3d;
  transition: transform .12s ease-out;
  will-change: transform;
  max-width: 100%; max-height: 80vh;
  display: flex; align-items: center; justify-content: center;
}
.glb-img {
  display: block;
  max-width: min(80vw, 900px); max-height: 76vh;
  width: auto; height: auto;
  border-radius: var(--r-xl);
  user-select: none; -webkit-user-drag: none;
}

.glb-shine {
  display: none;
}

.glb-footer {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 1; display: flex; align-items: flex-end; justify-content: space-between;
  width: min(80vw, 900px); pointer-events: none;
}
.glb-info { display: flex; flex-direction: column; }
.glb-title {
  font-size: 1rem; font-weight: 700; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}
.glb-desc { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: .15rem; }
.glb-counter {
  font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.45);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}

@keyframes glbImgIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}
.glb-img.glb-animating { animation: glbImgIn .3s cubic-bezier(.22,1,.36,1) forwards; }

@media(max-width:640px) {
  .glb-nav { display: none; }
  .glb-stage { width: 95vw; }
  .glb-img { max-width: 95vw; }
  .glb-footer { width: 95vw; bottom: 1rem; }
}

.contact { background: var(--c-bg2); }

.contact-layout { display: flex; justify-content: center; }
.contact-info-col, .ci-card { width: 100%; max-width: 660px; }

.ci-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--r-lg);
  padding: 2rem;
}
.ci-card h3 { font-size: 1.8rem; font-weight: 900; margin-bottom: .75rem; }
.ci-card > p { color: var(--c-text2); line-height: 1.7; margin-bottom: 1.75rem; }

.ci-methods { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.75rem; }
.ci-method {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem; border-radius: var(--r-md);
  background: rgba(139,92,246,.06); border: 1px solid var(--c-border);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.ci-method:hover { border-color: var(--p-500); background: rgba(139,92,246,.09); transform: translateX(2px); }
.ci-icon {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: rgba(139,92,246,.15); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--p-400); flex-shrink: 0;
}
.ci-icon-purple { background: rgba(88,101,242,.15); color: #5865f2; }
.ci-method h4 { font-size: .9rem; font-weight: 700; margin-bottom: .1rem; }
.ci-method span { font-family: 'JetBrains Mono', monospace; font-size: .87rem; color: var(--p-300); display: block; }
.ci-method p { font-size: .78rem; color: var(--c-text3); margin-top: .1rem; }
.ci-method > div { flex: 1; }
.ci-arrow { color: var(--c-text3); font-size: .85rem; }

.roblox-profile-btn {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: var(--r-md);
  background: rgba(255,55,55,.06); border: 1px solid rgba(255,55,55,.2);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  width: 100%;
}
.roblox-profile-btn:hover { border-color: #ff3737; background: rgba(255,55,55,.08); transform: translateX(2px); }
.rpb-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,55,55,.15); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #ff7070; flex-shrink: 0;
}
.rpb-icon img { width: 100%; height: 100%; object-fit: cover; }
.rpb-info { flex: 1; }
.rpb-name { display: block; font-weight: 700; font-size: .95rem; }
.rpb-sub { font-size: .78rem; color: var(--c-text3); display: block; }
.rpb-badge { font-size: 1.2rem; color: #ff7070; }

.contact-form {
  background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--r-lg);
  padding: 2rem; display: flex; flex-direction: column; gap: 1.1rem;
}
.form-header h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .2rem; }
.form-header p { font-size: .85rem; color: var(--c-text2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width:480px){ .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field label { font-size: .82rem; font-weight: 600; color: var(--c-text2); }
.req { color: var(--p-500); }
.form-field input, .form-field select, .form-field textarea {
  background: rgba(139,92,246,.06); border: 1px solid var(--c-border);
  border-radius: var(--r-sm); padding: .75rem 1rem;
  color: var(--c-text); font-family: 'Inter', sans-serif; font-size: .9rem;
  outline: none; resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
}
[data-theme="light"] .form-field input, [data-theme="light"] .form-field select, [data-theme="light"] .form-field textarea {
  background: rgba(255,255,255,.8);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--p-500); box-shadow: 0 0 0 3px rgba(139,92,246,.15);
}
.form-field select { cursor: pointer; -webkit-appearance: none; appearance: none; }
.form-note { font-size: .85rem; text-align: center; min-height: 1.2em; }
.form-note.success { color: var(--green); }
.form-note.error   { color: #f87171; }

.footer {
  position: relative; padding: 5rem 0 2rem;
  border-top: 1px solid var(--c-border);
  background: var(--c-bg);
}
.footer-glow {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--p-500), var(--blue), var(--p-500), transparent);
  opacity: .6;
}
.footer-top { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; margin-bottom: 3rem; }
@media(max-width:760px){ .footer-top { grid-template-columns: 1fr; } }

.footer-logo {
  font-size: 1.4rem; font-weight: 900; letter-spacing: .12em;
  display: inline-flex; align-items: center; line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  transition: opacity var(--transition);
}
.footer-logo:hover { opacity: .8; }
.footer-brand p { color: var(--c-text2); margin: .5rem 0 1rem; }
.footer-contact-mini { display: flex; flex-direction: column; gap: .4rem; }
.footer-contact-mini a { font-size: .85rem; color: var(--c-text3); display: flex; align-items: center; gap: .5rem; transition: color var(--transition); }
.footer-contact-mini a:hover { color: var(--p-400); }
@media(max-width:760px){ .footer-brand { text-align: center; } }
@media(max-width:760px){ .footer-contact-mini a { justify-content: center; } }

.footer-links-wrap { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
@media(max-width:500px){ .footer-links-wrap { grid-template-columns: repeat(2,1fr); } }
.footer-col h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9rem; color: var(--c-text2); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { font-size: .88rem; color: var(--c-text3); transition: color var(--transition); }
.footer-col a:hover { color: var(--p-400); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.5rem; border-top: 1px solid var(--c-border);
  font-size: .82rem; color: var(--c-text3); flex-wrap: wrap; gap: .5rem;
}
.footer-bottom-links { display: flex; gap: 1rem; }
.footer-bottom-links a { color: var(--c-text3); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--p-400); }

.intro-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: #050212;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.intro-screen.intro-exit { animation: introFade .85s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes introFade {
  0%   { opacity: 1; transform: scale(1);    filter: blur(0); }
  100% { opacity: 0; transform: scale(1.06); filter: blur(4px); pointer-events: none; }
}
.intro-aurora { position: absolute; inset: 0; pointer-events: none; }
.intro-orb { position: absolute; border-radius: 50%; filter: blur(70px); animation: orbFloat 8s ease-in-out infinite; contain: layout style; }
.intro-orb-1 {
  width: 700px; height: 700px; top: -20%; left: -15%;
  background: radial-gradient(circle, rgba(124,58,237,.4) 0%, transparent 70%);
}
.intro-orb-2 {
  width: 500px; height: 500px; bottom: -15%; right: -10%;
  background: radial-gradient(circle, rgba(59,130,246,.28) 0%, transparent 70%);
  animation-direction: reverse; animation-duration: 10s;
}
.intro-orb-3 {
  width: 350px; height: 350px; top: 35%; left: 50%;
  background: radial-gradient(circle, rgba(236,72,153,.2) 0%, transparent 70%);
  animation-delay: -4s; animation-duration: 12s;
}
.intro-noise {
  position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}
.intro-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .65rem;
  text-align: center; padding: 2rem;
}
.intro-line { overflow: hidden; display: block; margin-bottom: clamp(.3rem, 1.5vw, .8rem); }
.intro-main-line {
  overflow: visible; display: flex; align-items: baseline;
  gap: clamp(.3rem, 2vw, .8rem);
}
.intro-word-group { overflow: hidden; display: flex; }
.intro-word-gap { width: clamp(.4rem, 2.5vw, 1rem); }
.intro-tagline {
  font-size: clamp(.72rem, 1.6vw, .88rem); font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(167,139,250,.35);
  margin-top: -.2rem;
}
.intro-word {
  display: inline-block;
  transform: translateY(110%); opacity: 0;
  transition: transform .65s cubic-bezier(.22,1,.36,1), opacity .5s ease;
}
.intro-word.iv { transform: translateY(0); opacity: 1; }
.intro-sub {
  font-size: clamp(.9rem, 2.2vw, 1.15rem); font-weight: 700;
  letter-spacing: .6em; text-transform: uppercase;
  color: rgba(167,139,250,.6);
  text-shadow: 0 0 30px rgba(139,92,246,.4);
}
.intro-letter {
  display: inline-block;
  font-size: clamp(4rem, 13vw, 9.5rem); font-weight: 900; letter-spacing: -.04em;
  background: linear-gradient(160deg, #ffffff 0%, #ede9fe 20%, #c4b5fd 45%, #a78bfa 65%, #7c3aed 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px rgba(139,92,246,.25));
  transform: translateY(120%) rotate(8deg) scale(.9); opacity: 0;
  transition: transform .55s cubic-bezier(.22,1,.36,1), opacity .4s ease, filter .5s ease;
}
.intro-letter.iv { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; filter: drop-shadow(0 0 20px rgba(139,92,246,.15)); }
.intro-space { display: inline-block; width: .28em; }
.intro-period {
  display: inline-block;
  font-size: clamp(4rem, 13vw, 9.5rem); font-weight: 900; letter-spacing: -.04em;
  -webkit-text-fill-color: #a78bfa; color: #a78bfa;
  filter: drop-shadow(0 0 20px rgba(167,139,250,.5));
  transform: translateY(120%) scale(.9); opacity: 0;
  transition: transform .55s cubic-bezier(.22,1,.36,1), opacity .4s ease;
}
.intro-period.iv { transform: translateY(0) scale(1); opacity: 1; }
.intro-progress-wrap {
  width: 200px; height: 2px;
  background: rgba(139,92,246,.12); border-radius: 999px; overflow: hidden;
  margin-top: .6rem;
  box-shadow: 0 0 16px rgba(139,92,246,.08);
}
.intro-progress {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #6d28d9, #a78bfa, #e9d5ff);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(139,92,246,.9), 0 0 24px rgba(139,92,246,.35);
}

.intro-click-hint {
  display: flex; align-items: center; gap: .55rem;
  margin-top: 1.6rem;
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
  cursor: pointer;
}
.intro-click-hint.visible {
  opacity: 1; transform: translateY(0);
  pointer-events: auto;
}
.ich-text {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(167,139,250,.85); font-weight: 500;
}
.ich-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 8px rgba(167,139,250,.9);
  animation: ichPulse 1.1s ease-in-out infinite;
}
@keyframes ichPulse {
  0%,100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.7); opacity: .5; }
}

/* ─── Music Player — Dynamic Island ─── */
.music-player {
  position: fixed; bottom: 1.5rem; left: 50%; z-index: 800;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
}

/* The morphing island */
.mp-island {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--c-surface); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border: 1.5px solid var(--c-border);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0,0,0,.45), 0 0 24px rgba(139,92,246,.18);
  overflow: hidden;
  width: 210px;
  transform: scale(1);
  transition:
    width .5s cubic-bezier(.175,.885,.32,1.275),
    border-radius .5s cubic-bezier(.175,.885,.32,1.275),
    box-shadow .5s cubic-bezier(.4,0,.2,1),
    border-color .4s ease,
    transform .5s cubic-bezier(.175,.885,.32,1.275);
  will-change: width, border-radius, transform;
}

/* Ambient glow ring — GPU composited, only visible when playing */
.mp-island::before {
  content: ''; position: absolute; inset: -3px;
  border-radius: inherit; z-index: -1;
  background: conic-gradient(from 0deg, var(--p-600), var(--p-400), var(--p-300), var(--p-600));
  opacity: 0;
  filter: blur(12px);
  transition: opacity .6s ease;
  pointer-events: none;
}
.music-player.mp-playing .mp-island::before {
  opacity: .2;
  animation: islandGlowSpin 6s linear infinite;
}
@keyframes islandGlowSpin {
  to { transform: rotate(360deg); }
}

.mp-island:hover {
  border-color: rgba(139,92,246,.35);
  box-shadow: 0 8px 40px rgba(0,0,0,.5), 0 0 32px rgba(139,92,246,.25);
  transform: scale(1.02);
}
.mp-island:active {
  transform: scale(.985);
  transition-duration: .1s;
}
.music-player.mp-playing .mp-island {
  border-color: rgba(139,92,246,.38);
  box-shadow: 0 8px 32px rgba(0,0,0,.45), 0 0 28px rgba(139,92,246,.3);
}

/* Expanded island — spring overshoot morph */
.mp-island.mp-expanded {
  width: 370px;
  border-radius: 24px;
  transform: scale(1);
  box-shadow: 0 28px 64px rgba(0,0,0,.5), 0 0 48px rgba(139,92,246,.22);
}
.mp-island.mp-expanded:hover { transform: scale(1.01); }
.mp-island.mp-expanded:active { transform: scale(.995); }

/* ─── Island header (always visible pill row) ─── */
.mp-island-header {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem 1rem .55rem .85rem;
  cursor: pointer;
  transition: padding .45s cubic-bezier(.175,.885,.32,1.275);
  user-select: none;
  -webkit-user-select: none;
}
.mp-island.mp-expanded .mp-island-header {
  padding: .65rem 1.2rem .45rem 1rem;
}

/* EQ bars */
.mp-eq-bars {
  display: none;
  align-items: flex-end; gap: 2px;
  width: 20px; height: 16px; flex-shrink: 0;
}
.mp-eq-bars span {
  flex: 1; border-radius: 2px 2px 1px 1px;
  background: linear-gradient(to top, var(--p-600), var(--p-300));
  height: 4px; will-change: height;
  transition: height 55ms linear;
  box-shadow: 0 0 4px rgba(139,92,246,.5);
}
.music-player.mp-playing .mp-eq-bars { display: flex; }

/* FAB inner text */
.mp-fab-inner { flex: 1; min-width: 0; text-align: left; }
.mp-fab-title {
  display: block; font-size: .77rem; font-weight: 700; color: var(--c-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px;
}
.mp-fab-sub {
  display: block; font-size: .63rem; margin-top: .05rem; letter-spacing: .04em;
  color: var(--p-400);
}
.music-player:not(.mp-playing) .mp-fab-sub { color: var(--c-text3); }

/* Small inline play button on collapsed pill */
.mp-island-play-sm {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad-main); border: none; color: #fff;
  font-size: .62rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(139,92,246,.45);
  transition: transform .25s cubic-bezier(.175,.885,.32,1.275), opacity .35s ease, width .35s ease;
}
.mp-island-play-sm:hover { transform: scale(1.18); box-shadow: 0 2px 14px rgba(139,92,246,.6); }
.mp-island-play-sm:active { transform: scale(.92); }
.mp-island.mp-expanded .mp-island-play-sm { opacity: 0; width: 0; padding: 0; overflow: hidden; pointer-events: none; }

/* Chevron */
.mp-fab-chevron {
  font-size: .63rem; color: var(--c-text3); flex-shrink: 0;
  transition: transform .5s cubic-bezier(.175,.885,.32,1.275), color .3s ease;
}
.mp-island:hover .mp-fab-chevron { color: var(--p-400); }
.mp-island.mp-expanded .mp-fab-chevron { transform: rotate(180deg); color: var(--p-300); }

/* ─── Expandable body ─── */
.mp-island-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1.2rem;
  transition:
    max-height .5s cubic-bezier(.175,.885,.32,1.275),
    opacity .4s ease,
    padding .4s cubic-bezier(.175,.885,.32,1.275);
}
.mp-island.mp-expanded .mp-island-body {
  max-height: 360px;
  opacity: 1;
  padding: .1rem 1.2rem 1.1rem;
}

/* Divider line — animated width on expand */
.mp-island-body::before {
  content: '';
  display: block;
  height: 1px;
  margin-bottom: .85rem;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,.3), transparent);
  transform: scaleX(0);
  transition: transform .4s cubic-bezier(.175,.885,.32,1.275) .15s;
}
.mp-island.mp-expanded .mp-island-body::before {
  transform: scaleX(1);
}

/* Staggered reveal for body children */
.mp-island-body > .mp-panel-header,
.mp-island-body > .mp-prog-row,
.mp-island-body > .mp-controls {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .4s cubic-bezier(.175,.885,.32,1.275);
}
.mp-island-body > .mp-visualizer {
  transform: translateY(8px);
  transition: height .35s cubic-bezier(.22,1,.36,1), opacity .35s ease, margin-bottom .35s ease, transform .4s cubic-bezier(.175,.885,.32,1.275);
}
.mp-island.mp-expanded .mp-island-body > .mp-panel-header {
  opacity: 1; transform: translateY(0); transition-delay: .08s;
}
.mp-island.mp-expanded .mp-island-body > .mp-visualizer {
  transform: translateY(0); transition-delay: .14s;
}
.mp-island.mp-expanded .mp-island-body > .mp-prog-row {
  opacity: 1; transform: translateY(0); transition-delay: .2s;
}
.mp-island.mp-expanded .mp-island-body > .mp-controls {
  opacity: 1; transform: translateY(0); transition-delay: .26s;
}

/* ─── Panel internals (unchanged styles reused) ─── */
.mp-panel-header { display: flex; align-items: center; gap: .8rem; margin-bottom: .9rem; }

/* Spinning vinyl disc */
.mp-disc-sm {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 50% 50%,
    #2a1050 0%, #2a1050 14%,
    #5b21b6 15%, #5b21b6 25%,
    #1e0840 26%, #1e0840 34%,
    #7c3aed 35%, #7c3aed 44%,
    #160830 45%, #160830 52%,
    #8b5cf6 53%, #8b5cf6 61%,
    #0d051a 62%, #0d051a 100%);
  box-shadow: 0 0 0 2px rgba(139,92,246,.4), 0 4px 18px rgba(139,92,246,.5);
  position: relative; will-change: transform;
}
.mp-disc-sm::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: #c4b5fd; box-shadow: 0 0 7px rgba(196,181,253,.9);
}
@keyframes discSpin { to { transform: rotate(360deg); } }
.music-player.mp-playing .mp-disc-sm { animation: discSpin 2.4s linear infinite; }

/* Track info */
.mp-track-info { flex: 1; min-width: 0; }
.mp-title { display: block; font-weight: 700; font-size: .9rem; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-artist { display: block; font-size: .72rem; color: var(--c-text3); margin-top: .12rem; }

/* Icon buttons (shuffle / repeat) */
.mp-header-btns { display: flex; align-items: center; gap: .3rem; flex-shrink: 0; }
.mp-icon-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(139,92,246,.08); border: 1px solid rgba(139,92,246,.15);
  color: var(--c-text3); cursor: pointer; font-size: .68rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.mp-icon-btn:hover { background: rgba(139,92,246,.18); color: var(--p-300); border-color: rgba(139,92,246,.35); }
.mp-icon-btn.active { color: var(--p-400); background: rgba(139,92,246,.15); border-color: rgba(139,92,246,.3); }

/* Visualizer */
.mp-visualizer {
  width: 100%; height: 0; display: block;
  border-radius: 8px; background: transparent; opacity: 0;
  overflow: hidden; margin-bottom: 0;
  transition: height .35s cubic-bezier(.22,1,.36,1), opacity .35s ease, margin-bottom .35s ease;
  pointer-events: none;
}
.music-player.mp-playing .mp-visualizer,
.mp-visualizer.viz-active { height: 52px; opacity: 1; margin-bottom: .75rem; }

/* Progress bar */
.mp-prog-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem; }
.mp-time { font-size: .67rem; color: var(--c-text3); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.mp-prog-track {
  flex: 1; height: 5px; border-radius: 999px;
  background: rgba(139,92,246,.15); cursor: pointer; overflow: visible; position: relative;
}
.mp-prog-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--p-600), var(--p-400));
  pointer-events: none; position: relative;
}
/* Glowing knob */
.mp-prog-fill::after {
  content: ''; position: absolute; right: -6px; top: -5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--p-300);
  box-shadow: 0 0 10px rgba(139,92,246,.7), 0 0 20px rgba(139,92,246,.3);
  opacity: 0; transform: scale(.6);
  transition: opacity .2s ease, transform .25s cubic-bezier(.175,.885,.32,1.275);
}
.mp-prog-track:hover .mp-prog-fill::after { opacity: 1; transform: scale(1); }
/* Glow trail under progress */
.mp-prog-fill::before {
  content: ''; position: absolute; inset: -2px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 60%, rgba(139,92,246,.35));
  filter: blur(3px);
  pointer-events: none;
}

/* Controls */
.mp-controls { display: flex; align-items: center; gap: .5rem; }
.mp-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.18);
  color: var(--p-300); cursor: pointer; font-size: .78rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.mp-btn:hover { background: rgba(139,92,246,.22); border-color: var(--p-500); }
.mp-play-btn {
  width: 44px; height: 44px; font-size: .9rem;
  background: var(--grad-main); border-color: transparent; color: #fff;
  box-shadow: 0 4px 16px rgba(139,92,246,.5);
  transition: all var(--transition), transform .3s cubic-bezier(.175,.885,.32,1.275);
}
.mp-play-btn:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(139,92,246,.65); }
.mp-play-btn:active { transform: scale(.93); transition-duration: .1s; }
.mp-vol-wrap { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.mp-vol-icon { font-size: .72rem; color: var(--c-text3); }
.mp-vol-track { display: flex; flex-direction: column; gap: 2px; position: relative; }
.mp-vol {
  -webkit-appearance: none; appearance: none;
  width: 80px; height: 4px; border-radius: 999px;
  background: rgba(139,92,246,.18); cursor: pointer; outline: none;
}
.mp-vol::-webkit-slider-thumb {
  -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%;
  background: var(--p-300);
  box-shadow: 0 0 0 2px rgba(139,92,246,.3), 0 0 6px rgba(139,92,246,.5);
  cursor: grab;
}
.mp-vol::-webkit-slider-thumb:active { cursor: grabbing; }
.mp-vol::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%; border: none;
  background: var(--p-300); box-shadow: 0 0 6px rgba(139,92,246,.5);
}
.mp-vol-ticks {
  display: flex; justify-content: space-between;
  width: 80px; padding: 0 6px;
}
.mp-vol-ticks span {
  width: 1.5px; height: 4px; border-radius: 1px;
  background: rgba(139,92,246,.28); flex-shrink: 0;
}
.mp-vol-ticks span.tick-lit { background: rgba(139,92,246,.55); }
.mp-vol-badge {
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) scale(.85);
  background: var(--c-surface); backdrop-filter: blur(12px);
  border: 1px solid var(--c-border); border-radius: 6px;
  padding: .18rem .45rem; font-size: .68rem; font-weight: 700;
  color: var(--p-300); white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .15s, transform .15s;
  z-index: 10;
}
.mp-vol-track:hover .mp-vol-badge,
.mp-vol-track.show-badge .mp-vol-badge { opacity: 1; transform: translateX(-50%) scale(1); }

/* ─── Site progress bar ─── */
.site-prog-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 850;
  height: 3px; background: rgba(139,92,246,.08);
  pointer-events: none;
  opacity: 0; transition: opacity .4s ease;
}
.site-prog-bar.sp-active { opacity: 1; }
.site-prog-fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 0; background: linear-gradient(90deg, var(--p-700), var(--p-500), var(--p-300));
  transition: width .08s linear;
  border-radius: 0 999px 999px 0;
}
.site-prog-glow {
  position: absolute; right: -1px; top: -3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--p-400);
  box-shadow: 0 0 10px 3px rgba(139,92,246,.7), 0 0 20px 6px rgba(139,92,246,.35);
  opacity: 0; transition: opacity .3s;
}
.site-prog-bar.sp-active .site-prog-glow { opacity: 1; }

@media(max-width:600px) {
  .music-player { bottom: 1rem; left: 50%; transform: translateX(-50%); }
  .mp-island { width: 190px; }
  .mp-island.mp-expanded { width: calc(100vw - 2rem); }
  .mp-visualizer { width: 100%; }
  .intro-letter, .intro-period { font-size: clamp(2.8rem, 14vw, 5rem) !important; }
}

.back-top {
  position: fixed; bottom: 2.5rem; right: 2rem; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--c-border);
  background: var(--c-surface); backdrop-filter: blur(12px);
  color: var(--c-text); font-size: .9rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--sh-card);
}
.back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { box-shadow: var(--sh-glow); color: var(--p-400); border-color: var(--p-500); }

@media(max-width:1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-stats { justify-content: center; }
  .hero-cta { justify-content: center; }
  
  .hero-visual { order: -1; min-height: 240px; }
  .hero-content { order: 1; }
  
  .chip-1 { top: 5%;  left: 0; }
  .chip-2 { top: 20%; right: 0; }
  .chip-3 { bottom: 20%; left: 0; }
  .chip-4 { bottom: 5%; right: 0; }
}
@media(max-width:900px) {
  .nav-dock {
    display: none;
    
    overflow: visible;
  }
  .hamburger { display: flex; }
  .nav-dock.open {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 2px;
    position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(6,3,15,.97);
    backdrop-filter: blur(28px);
    border: none;
    border-bottom: 1px solid var(--c-border);
    border-radius: 0;
    padding: .75rem 1.25rem;
    z-index: 999;
    overflow: hidden;
  }
  /* vertical nav: separators become full-width horizontal lines */
  .nav-dock.open .dock-sep {
    width: 100%; height: 1px; margin: .3rem 0;
    background: rgba(255,255,255,.07);
  }
  [data-theme="light"] .nav-dock.open {
    background: rgba(250,250,250,.97);
  }
  
  .nav-dock.open .dock-item {
    flex-direction: row;
    align-items: center;
    gap: .85rem;
    padding: .65rem .75rem;
    border-radius: 10px;
    width: 100%;
    z-index: auto;
  }
  .nav-dock.open .dock-item:hover {
    background: rgba(139,92,246,.1);
  }
  .nav-dock.open .dock-dot { display: none; }
  
  .nav-dock.open .dock-icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    font-size: .85rem;
    transform: none !important;
    flex-shrink: 0;
  }
  
  .nav-dock.open .dock-label {
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
    font-size: .9rem;
    font-weight: 600;
    color: var(--c-text2) !important;
    pointer-events: auto;
    z-index: auto;
    bottom: auto;
    left: auto;
  }
  .nav-dock.open .dock-label::after { display: none !important; }
  
  .nav-dock.open .dock-item:hover .dock-label {
    opacity: 1 !important;
    transform: none !important;
  }
}
@media(max-width:600px) {
  .meteors-wrap { display: none; }       /* meteors laggy/jarring on small screens */
  .dot-grid { opacity: .4; }            /* soften dot grid on mobile */
  .section { padding: 5rem 0; }
  .container { padding: 0 1.25rem; }
  .hero-container { padding: 2rem 1.25rem; gap: 1.5rem; }
  .chip { display: none; }
  .scroll-hint { display: none; }
  .hero-visual { min-height: 180px; }
  .avatar-wrap { width: 160px; height: 160px; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-badge { font-size: .75rem; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem .5rem; justify-items: center; }
  .hstat-divider { display: none; }
  .hstat-num { font-size: 1.3rem; }
  .back-top { bottom: 1.25rem; right: 1.25rem; }
}
@media(max-width:380px) {
  .nav-controls { gap: .3rem; }
  .ctrl-btn { padding: .35rem .65rem; font-size: .72rem; }
}

@media print {
  .cursor-glow, .noise-overlay, .back-top, .navbar,
  .aurora, .dot-grid, .scroll-hint { display: none !important; }
  .hero { min-height: auto; padding-top: 2rem; }
}

.now-playing-strip {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(139,92,246,.08); border: 1px solid rgba(139,92,246,.18);
  border-radius: 999px; padding: .38rem .9rem .38rem .65rem;
  font-size: .78rem; color: var(--p-300); white-space: nowrap;
  overflow: hidden; max-width: 100%;
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
  margin-top: 1rem;
}
.now-playing-strip.np-visible { opacity: 1; pointer-events: auto; }
.now-playing-strip i { animation: npPulse 1.4s ease-in-out infinite; font-size: .8rem; }
@keyframes npPulse { 0%,100%{opacity:.6} 50%{opacity:1; transform:scale(1.15)} }
.np-track { overflow: hidden; max-width: 220px; white-space: nowrap; }
.np-eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; margin-left: .3rem; }
.np-eq-bar {
  width: 3px; background: var(--p-400); border-radius: 2px;
  animation: eqBounce 1s ease-in-out infinite;
}
.np-eq-bar:nth-child(1) { height: 6px;  animation-delay: 0s;    animation-duration: .9s; }
.np-eq-bar:nth-child(2) { height: 12px; animation-delay: .15s;  animation-duration: 1.1s; }
.np-eq-bar:nth-child(3) { height: 8px;  animation-delay: .3s;   animation-duration: .85s; }
.np-eq-bar:nth-child(4) { height: 10px; animation-delay: .05s;  animation-duration: 1.2s; }
@keyframes eqBounce {
  0%,100% { transform: scaleY(1); }
  50%     { transform: scaleY(.3); }
}

.hero-typewriter {
  display: inline-block; color: var(--p-300); font-weight: 600;
  border-right: 2px solid var(--p-400); padding-right: 3px;
  animation: caretBlink .75s step-end infinite;
  white-space: nowrap; overflow: hidden;
}
@keyframes caretBlink { 0%,100%{border-color:var(--p-400)} 50%{border-color:transparent} }

.journey { background: linear-gradient(180deg, transparent 0%, rgba(139,92,246,.03) 50%, transparent 100%); }

.timeline {
  position: relative;
  max-width: 780px; margin: 0 auto;
  padding: 2rem 0;
}
.timeline::before {
  content: '';
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, transparent, var(--p-500), var(--p-400), transparent);
  transform: translateX(-50%);
}
.tl-item {
  display: flex; align-items: flex-start; gap: 2rem;
  margin-bottom: 3.5rem; position: relative;
}
.tl-item:last-child { margin-bottom: 0; }

.tl-side {
  flex: 1; display: flex;
}

.tl-item:nth-child(odd)  .tl-side:first-child  { justify-content: flex-end; }
.tl-item:nth-child(odd)  .tl-side:last-child   { justify-content: flex-start; }

.tl-item:nth-child(even) .tl-side:first-child  { justify-content: flex-end; }
.tl-item:nth-child(even) .tl-side:last-child   { justify-content: flex-start; }

.tl-center {
  display: flex; align-items: center;
  flex-shrink: 0; position: relative;
}
.tl-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad-main);
  box-shadow: 0 0 0 4px rgba(139,92,246,.14), 0 0 10px rgba(139,92,246,.28);
  z-index: 1; flex-shrink: 0; position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.tl-dot::after {
  content: ''; position: absolute; inset: -6px;
  border-radius: 50%; border: 1.5px solid rgba(139,92,246,.3);
  animation: none;
  opacity: .45;
}
@keyframes dotPulse {
  0%,100% { transform: scale(1);   opacity: .7; }
  50%     { transform: scale(1.5); opacity: 0; }
}
.tl-item:hover .tl-dot {
  transform: scale(1.08);
  box-shadow: 0 0 0 5px rgba(139,92,246,.2), 0 0 16px rgba(139,92,246,.42);
}

.tl-year {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem; font-weight: 800; letter-spacing: .05em;
  color: var(--p-300); white-space: nowrap;
  background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.22);
  border-radius: 5px; padding: .22rem .62rem;
  z-index: 2;
}

.tl-item:nth-child(odd)  .tl-year { right: auto; left:  calc(100% + 14px); }

.tl-item:nth-child(even) .tl-year { left:  auto; right: calc(100% + 14px); }
.tl-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 1.35rem 1.55rem;
  max-width: 360px; width: 100%; position: relative;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.tl-card:hover { border-color: var(--c-border-h); box-shadow: 0 8px 20px rgba(6,3,15,.3); transform: translateY(-2px); }
.tl-card-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg,rgba(139,92,246,.18),rgba(139,92,246,.06));
  border: 1px solid rgba(139,92,246,.2);
  color: var(--p-300);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; margin-bottom: .85rem;
  box-shadow: 0 4px 12px rgba(139,92,246,.15);
}
.tl-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: .4rem; }
.tl-card p  { font-size: .82rem; color: var(--c-text2); line-height: 1.65; }
.tl-card-highlight {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 700; color: var(--p-300);
  background: rgba(139,92,246,.08); border: 1px solid rgba(139,92,246,.18);
  border-radius: 8px; padding: .3rem .65rem; margin-bottom: .7rem;
}
.tl-card-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .85rem; }
.tl-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem; font-weight: 500; letter-spacing: .04em;
  padding: .18rem .48rem; border-radius: 5px;
  background: rgba(139,92,246,.07); color: var(--p-300);
  border: 1px solid rgba(139,92,246,.18);
  transition: border-color var(--transition), background var(--transition);
}
.tl-tag:hover { background: rgba(139,92,246,.13); border-color: rgba(139,92,246,.3); }



@media(max-width:700px) {
  .timeline { padding: 1rem 0; }
  
  .timeline::before { left: 19px; top: 0; bottom: 0; }

  
  .tl-item,
  .tl-item:nth-child(odd),
  .tl-item:nth-child(even) {
    flex-direction: column;
    gap: .65rem;
    padding-left: 54px;
    position: relative;
    margin-bottom: 2rem;
    align-items: flex-start;
  }

  
  .tl-item:nth-child(odd)  .tl-side:last-child,
  .tl-item:nth-child(even) .tl-side:first-child { display: none !important; }

  
  .tl-item:nth-child(odd)  .tl-side:first-child,
  .tl-item:nth-child(even) .tl-side:last-child {
    display: flex; justify-content: flex-start !important;
    width: 100%; flex: none; order: 2;
  }

  
  .tl-center {
    position: absolute; left: 0; top: 0;
    width: 38px;
    flex-direction: column; align-items: center;
    gap: 5px;
    margin-top: 0; order: 1;
  }

  
  .tl-dot {
    width: 38px; height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(139,92,246,.22) 0%, rgba(109,40,217,.1) 100%);
    border: 1.5px solid rgba(139,92,246,.4);
    box-shadow: 0 2px 12px rgba(139,92,246,.25);
    display: flex; align-items: center; justify-content: center;
    
    animation: none;
  }
  
  .tl-dot::after {
    content: '';
    animation: none;
    position: absolute;
    inset: auto;
    width: 9px; height: 9px;
    border-top: 2.5px solid var(--p-300);
    border-right: 2.5px solid var(--p-300);
    border-radius: 1px;
    transform: rotate(45deg) translate(-1px, 1px);
    top: 50%; left: 50%;
    margin-top: -4px; margin-left: -6px;
    
    border-left: none; border-bottom: none;
    background: none; border-radius: 1px;
    box-shadow: none;
  }
  .tl-item:hover .tl-dot {
    transform: none;
    box-shadow: 0 2px 18px rgba(139,92,246,.45);
  }

  
  .tl-year {
    position: static !important;
    transform: none !important;
    margin-top: 0;
    width: 38px;
    text-align: center;
    font-size: .58rem;
    letter-spacing: .03em;
    padding: .22rem .2rem;
    border-radius: 7px;       
    background: linear-gradient(135deg, rgba(139,92,246,.2), rgba(109,40,217,.1));
    border: 1px solid rgba(139,92,246,.35);
    color: var(--p-300);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  
  .tl-card {
    max-width: 100%;
    width: 100%;
    margin-top: 0;
  }
}

.numbers-strip {
  padding: 4rem 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.numstrip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-border);
  border-radius: var(--r-lg); overflow: hidden;
}
.ns-item {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: 2rem 1rem; background: var(--c-bg);
  position: relative; overflow: hidden; text-align: center;
  transition: background var(--transition);
}
.ns-item:hover { background: var(--c-surface); }
.ns-item::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 80%, rgba(139,92,246,.08), transparent 65%);
  pointer-events: none;
}
.ns-num {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900;
  background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
}
.ns-label { font-size: .78rem; color: var(--c-text3); font-weight: 500; letter-spacing: .04em; }
.ns-icon { font-size: 1.1rem; color: var(--p-500); margin-bottom: .15rem; }
@media(max-width:650px) {
  .numstrip-grid { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:380px) {
  .numstrip-grid { grid-template-columns: 1fr; }
}

.animated-grid-svg {
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 40%, transparent 100%);
}
@keyframes agpCellFade {
  0%   { opacity: 0; }
  30%  { opacity: 1; }
  100% { opacity: 0; }
}

.about-card, .bento-card, .server-card, .tl-card, .sg-info, .group-hero-card, .ci-card { isolation: isolate; }

.about-card::before,
.bento-card::before,
.server-card::before,
.tl-card::before,
.group-hero-card::before,
.ci-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0%,
    transparent 73%,
    rgba(109,40,217,.35)  76%,
    rgba(139,92,246,.75)  79%,
    rgba(167,139,250,1)   81%,
    rgba(220,205,255,1)   83%,
    rgba(167,139,250,1)   85%,
    rgba(139,92,246,.75)  88%,
    rgba(109,40,217,.35)  91%,
    transparent 94%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  animation: beamRotate 6s linear infinite paused;
}
.about-card:hover::before,
.bento-card:hover::before,
.server-card:hover::before,
.tl-card:hover::before,
.group-hero-card:hover::before,
.ci-card:hover::before { opacity: .45; animation-play-state: running; }

@keyframes beamRotate { to { --beam-angle: 360deg; } }

.global-section { background: var(--c-bg); position: relative; }

.global-map-wrap {
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border);
  background: var(--c-bg2);
  padding: 2rem 2rem 1.5rem;
  position: relative; overflow: visible;
}
.global-map-wrap::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(139,92,246,.06), transparent);
  pointer-events: none;
}
.global-map-container {
  position: relative; width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 0 1rem;
}
.globe-wrap {
  width: min(520px, 100%);
  aspect-ratio: 1;
  position: relative;
}
.globe-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  cursor: grab;
  opacity: 0;
  transition: opacity 1.2s ease;
  filter: drop-shadow(0 0 48px rgba(139,92,246,.5)) drop-shadow(0 0 100px rgba(88,28,220,.25));
}
[data-theme="light"] .globe-canvas {
  filter: drop-shadow(0 0 32px rgba(109,40,217,.3)) drop-shadow(0 0 64px rgba(109,40,217,.15));
}
[data-theme="light"] .global-map-wrap {
  background: rgba(245,243,255,0.6);
  border-color: rgba(109,40,217,.15);
}
[data-theme="light"] .global-map-wrap::before {
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(109,40,217,.07), transparent);
}
.global-markers {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .5rem; padding-top: 1.5rem;
}
.gm-chip {
  display: flex; align-items: center; gap: .45rem;
  padding: .32rem .78rem .32rem .6rem; border-radius: 999px;
  background: rgba(139,92,246,.07);
  border: 1px solid rgba(139,92,246,.22);
  font-size: .73rem; font-weight: 600;
  color: var(--c-text2); letter-spacing: .02em;
  transition: all var(--transition);
  cursor: default;
}
.gm-chip:hover {
  background: rgba(139,92,246,.14); border-color: rgba(139,92,246,.38);
  color: var(--p-300);
  box-shadow: 0 0 12px rgba(139,92,246,.12);
}
.gm-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--p-400);
  box-shadow: 0 0 0 2px rgba(139,92,246,.2), 0 0 6px rgba(139,92,246,.4);
  animation: pulse 2.2s ease-in-out infinite;
}
.global-map-loading {
  display: flex; align-items: center; justify-content: center;
  gap: .75rem; padding: 5rem 2rem; color: var(--c-text3); font-size: .9rem;
}
.gml-spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(139,92,246,.2); border-top-color: var(--p-500);
  animation: spinnerRotate .8s linear infinite;
}
@keyframes spinnerRotate { to { transform: rotate(360deg); } }
@media(max-width:600px) {
  .global-map-wrap { padding: 1rem 1rem 1.25rem; }
}

/* ─── Stats Counter Strip ─── */
.stats-strip {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--c-bg2) 0%, var(--c-bg) 100%);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center; text-align: center;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center; gap: .38rem;
  padding: 1.25rem 1rem;
}
.stat-icon { font-size: 1.1rem; color: var(--p-500); margin-bottom: .15rem; }
.stat-num {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -.03em; line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: .7rem; color: var(--c-text3); font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
}
.stat-div { width: 1px; height: 52px; background: var(--c-border); flex-shrink: 0; }
@media(max-width:700px) {
  .stat-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stat-div { display: none; }
}
@media(max-width:380px) {
  .stat-row { grid-template-columns: 1fr; }
}

/* ─── Toolbox ─── */
.toolbox { background: var(--c-bg2); }
.tool-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
  margin-top: 2.5rem;
}
@media(max-width:900px){ .tool-grid { grid-template-columns: repeat(4,1fr); } }
@media(max-width:640px){ .tool-grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width:400px){ .tool-grid { grid-template-columns: repeat(2,1fr); } }
.tool-card {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 1.4rem 1rem;
  background: rgba(255,255,255,.018); border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; text-align: center; cursor: default;
  transition: all var(--transition);
}
.tool-card:hover {
  background: rgba(139,92,246,.06); border-color: rgba(139,92,246,.25);
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(139,92,246,.12);
}
.tool-icon {
  font-size: 1.75rem; color: var(--p-400);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
}
.tool-name { font-size: .83rem; font-weight: 700; color: var(--c-text); }
.tool-cat { font-size: .64rem; color: var(--c-text3); text-transform: uppercase; letter-spacing: .07em; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: color-mix(in srgb, var(--c-bg) 85%, transparent); }
::-webkit-scrollbar-thumb { background: rgba(139,92,246,.35); border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c-bg) 90%, transparent); }
::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,.48); }

/* ============================================================
   METEORS (MagicUI-style)
   ============================================================ */
.meteors-wrap {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none; z-index: 1;
}
.meteor {
  position: absolute;
  top: var(--mt, -5%);
  left: var(--ml, 50%);
  width: 2px;
  height: var(--mh, 120px);
  transform: rotate(215deg);
  transform-origin: top center;
  opacity: 0;
  animation: meteorFall var(--md, 8s) var(--del, 0s) linear infinite;
  contain: layout style;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(196,181,253,.0) 5%,
    rgba(196,181,253,.85) 40%,
    rgba(255,255,255,.98) 65%,
    rgba(196,181,253,.75) 82%,
    transparent 100%
  );
  border-radius: 999px;
  filter: drop-shadow(0 0 5px rgba(167,139,250,.85)) drop-shadow(0 0 10px rgba(139,92,246,.4));
}
@keyframes meteorFall {
  0%   { opacity: 0;   transform: rotate(215deg) translateY(0px); }
  5%   { opacity: 1; }
  85%  { opacity: .85; }
  100% { opacity: 0;   transform: rotate(215deg) translateY(-1400px); }
}

/* ============================================================
   SPOTLIGHT cursor follow (hero)
   ============================================================ */
.hero-spotlight {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 1;
  background: radial-gradient(
    circle 340px at var(--sx, 50%) var(--sy, 50%),
    rgba(139,92,246,.06) 0%,
    transparent 70%
  );
  contain: layout style;
}

/* ============================================================
   PERFORMANCE — content-visibility, will-change, reduced-motion
   ============================================================ */

/* Off-screen sections: skip rendering until near viewport */
#journey, #skills, #games, #portfolio, #team, #toolbox, #global, #contact {
  content-visibility: auto;
  contain-intrinsic-size: 0 800px;
}

/* Promote only continuously-animated elements — hover-only items don't need permanent layers */
.mp-panel       { will-change: transform, opacity; }
.globe-canvas   { will-change: transform; }

/* Adaptive perf mode for low-power devices (set by script.js) */
html.perf-lite .navbar.scrolled {
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}
html.perf-lite .nav-dock {
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
}
html.perf-lite .orb,
html.perf-lite .intro-orb {
  filter: blur(48px);
}
html.perf-lite .meteors-wrap .meteor {
  opacity: .62;
}
html.perf-lite .mp-island {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html.perf-ultra .orb,
html.perf-ultra .intro-orb {
  filter: blur(36px);
}
html.perf-ultra .meteors-wrap .meteor {
  opacity: .45;
}
html.perf-ultra .site-prog-glow,
html.perf-ultra .noise-overlay {
  opacity: .35;
}

/* Reduce painting on mobile — drop expensive filters on low-end touch devices */
@media (pointer: coarse) {
  .intro-orb              { filter: blur(40px); animation-duration: 12s; }
  .hero-glow              { filter: blur(60px); }
  .hero-spotlight         { display: none; } /* no cursor on touch */
  .mp-island::before, .mp-island::after { display: none; } /* island glow rings */
  .globe-canvas           { filter: none !important; } /* drop expensive drop-shadow */
  [class*="glow"]         { filter: none !important; }
  .animated-grid-svg      { display: none; } /* static dot grid only on mobile */
}

/* Respect user's reduced-motion preference — kill all decorative animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .meteors-wrap, .animated-grid-svg { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
