:root {
  --bg: #050505;
  --card: rgba(5, 5, 5, 0.72);
  --edge: rgba(3, 3, 3, 0.07);
  --text: #ecebee;
  --muted: #635e75;
  --dim: #38373f;
  --purple: #5d35d6;
  --mono: "Geist Mono", ui-monospace, monospace;
  --sans: "Archivo", system-ui, sans-serif;
  --accent-font: "Space Mono", ui-monospace, monospace;
}

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

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--purple); color: #000; }
a, button { color: inherit; text-decoration: none; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(3, 3, 3, .55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: backdrop-filter 1s ease, -webkit-backdrop-filter 1s ease, background 1s ease, opacity .6s ease .5s, visibility 0s 1.1s;
}
.loader.done {
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  background: rgba(3, 3, 3, 0);
  opacity: 0;
  visibility: hidden;
}
.loader-inner { display: grid; justify-items: center; gap: 14px; transition: opacity .4s ease, transform .5s ease; }
.loader.done .loader-inner { opacity: 0; transform: scale(.96); }
.loader-name {
  font-family: var(--accent-font);
  font-size: 13px;
  letter-spacing: .25em;
  color: var(--muted);
  text-transform: lowercase;
}
.loader-bar { width: 140px; height: 2px; background: #1a1a1e; border-radius: 2px; overflow: hidden; }
.loader-bar b {
  display: block; height: 100%; width: 0;
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple);
  transition: width .25s ease;
}

.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.slides { position: absolute; inset: 0; overflow: hidden; }
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(.55) contrast(1.05);
  transform: scale(1.04);
  transition: opacity 1.2s ease, transform 0s linear 1.2s;
}
.slide.on {
  opacity: .17;
  transform: scale(1);
  transition: opacity 1.4s ease .9s, transform 9s linear .9s;
}
.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, var(--bg) 95%);
}
.glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 720px; height: 720px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(143, 107, 255, .11) 0%, transparent 62%);
  filter: blur(20px);
}
#dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.grain {
  position: absolute; inset: -50%;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain {
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
}

.stage {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 16px;
  perspective: 1000px;
}

.card {
  position: relative;
  width: min(440px, 100%);
  padding: 44px 36px 32px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, .9),
    0 0 0 1px rgba(0, 0, 0, .6),
    0 0 60px -30px var(--purple);
  transform-style: preserve-3d;
  transform: rotateX(0) rotateY(0);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
  opacity: 0;
}
.card.live { animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.card.tracking { transition: transform .08s linear; }
@keyframes rise {
  from { opacity: 0; translate: 0 18px; }
  to   { opacity: 1; translate: 0 0; }
}

.glare {
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), color-mix(in srgb, var(--purple) 28%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.card:hover .glare { opacity: 1; }

.avatar, h1, .handle, .bio, .skills, .stats, .links { transform: translateZ(30px); }

.avatar {
  display: inline-grid;
  place-items: center;
  width: 116px; height: 116px;
  border-radius: 50%;
  margin-bottom: 20px;
  background: #0d0d0f;
  border: 2px solid #1c1c20;
  overflow: hidden;
  box-shadow: 0 0 0 4px #050506, 0 0 34px -8px var(--purple);
  transition: border-color .3s;
}
.avatar:hover { border-color: var(--purple); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.monogram { font-family: var(--mono); font-size: 34px; color: var(--dim); }

h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  text-shadow: 0 0 18px rgba(143, 107, 255, .35);
}

.handle {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
}
.role { font-family: var(--accent-font); font-size: 12px; color: var(--purple); display: inline-block; min-width: 17ch; text-align: left; }
.caret {
  display: inline-block;
  width: 1px; height: 1.05em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--purple);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.bio {
  font-size: 14.5px;
  line-height: 1.6;
  color: #a9a7ae;
  margin: 20px auto 0;
  max-width: 340px;
}

.skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.skills li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  padding: 6px 10px;
  border: 1px solid #1d1d21;
  border-radius: 8px;
  background: rgba(255, 255, 255, .015);
  position: relative;
  overflow: hidden;
}
.skills .fill {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
  transition: width 1.4s cubic-bezier(.25, .8, .25, 1);
}
.skills em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--purple);
}

.stats {
  margin-top: 22px;
  padding: 14px 16px 0;
  border: 1px solid #1d1d21;
  border-radius: 10px;
  background: rgba(255, 255, 255, .015);
  text-align: left;
  overflow: hidden;
}
.stats-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.stats-head strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stats-head > span { font-size: 12.5px; color: var(--muted); }
.graph { display: block; width: calc(100% + 32px); height: 64px; margin: 8px -16px 0; }
.graph .line {
  fill: none;
  stroke: var(--purple);
  stroke-width: 1.6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(143, 107, 255, .7));
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.graph .area { opacity: 0; transition: opacity 1s ease .9s; }
.stats.go .line { animation: draw 1.8s cubic-bezier(.4, .1, .2, 1) forwards; }
.stats.go .area { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}
.links a, .links button {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: none;
  border: 1px solid #1d1d21;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.links a:hover, .links button:hover {
  color: var(--text);
  border-color: #3a3448;
  box-shadow: 0 0 18px -6px var(--purple);
}

.toast {
  position: absolute;
  left: 50%; bottom: -38px;
  translate: -50% 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.toast.show { opacity: 1; }

.status {
  background: none;
  border: none;
  cursor: pointer;
  transition: color .2s;
  position: fixed;
  z-index: 1;
  bottom: 18px; left: 50%;
  translate: -50% 0;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--accent-font);
  font-size: 11.5px;
  color: var(--dim);
}
.status:hover { color: var(--muted); }
.status i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
}

@media (max-width: 480px) {
  .card { padding: 36px 22px 28px; }
  h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .slide, .slide.on { transform: none; }
  .card { transition: none; }
}

