@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --accent: #00d46a;
  --accent-rgb: 0, 212, 106;
  --bg: #040506;
  --ink: #eef2f0;
  --ink-2: #b9c1bd;
  --muted: #7c8581;
  --glass: rgba(14, 18, 17, .52);
  --glass-2: rgba(255, 255, 255, .04);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --font: "Manrope", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Background */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}
body.no-webgl #scene { display: none; }
body.no-webgl {
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(var(--accent-rgb), .18), transparent 70%),
    radial-gradient(40% 40% at 80% 90%, rgba(var(--accent-rgb), .08), transparent 70%),
    var(--bg);
}
.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -2%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .75) 100%);
}

/* Custom cursor (mouse only) */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 60;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border: 1px solid rgba(var(--accent-rgb), .55);
    border-radius: 50%;
    pointer-events: none;
    transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s, border-color .25s, opacity .3s;
    opacity: 0;
  }
  .cursor span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 4px;
    margin: -2px 0 0 -2px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
  }
  .cursor.on { opacity: 1; }
  .cursor.hot {
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    background: rgba(var(--accent-rgb), .08);
    border-color: rgba(var(--accent-rgb), .9);
  }
}

/* Splash */
.enter {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: radial-gradient(60% 50% at 50% 50%, rgba(4, 5, 6, .1), rgba(4, 5, 6, .6));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity .9s var(--ease), visibility .9s, backdrop-filter .9s;
}
.enter-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .38em;
  text-transform: lowercase;
  color: var(--ink-2);
  padding: 14px 22px 14px 28px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  animation: breathe 2.6s ease-in-out infinite;
}
.enter:hover .enter-label { color: var(--ink); border-color: rgba(var(--accent-rgb), .6); box-shadow: 0 0 40px -6px rgba(var(--accent-rgb), .5); }
@keyframes breathe {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
body.entered .enter { opacity: 0; visibility: hidden; pointer-events: none; }

/* Layout */
.page {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: max(12vh, 56px) 16px 48px;
  opacity: 0;
  transform: translateY(24px) scale(.98);
  transition: opacity 1s var(--ease) .15s, transform 1.2s var(--ease) .15s;
}
body.entered .page { opacity: 1; transform: none; }

/* Profile card */
.card {
  position: relative;
  padding: 34px 28px 24px;
  border-radius: 28px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .06) inset,
    0 40px 120px -40px rgba(0, 0, 0, .9),
    0 0 0 1px rgba(0, 0, 0, .4);
  transform-style: preserve-3d;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease);
  will-change: transform;
  overflow: hidden;
}
.card.tilting { transition: transform .08s linear; }
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(var(--accent-rgb), .55), transparent 35%, transparent 65%, rgba(var(--accent-rgb), .25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.card-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .07), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
}
.card:hover .card-shine { opacity: 1; }

.profile { display: flex; flex-direction: column; align-items: center; text-align: center; }
.avatar {
  position: relative;
  width: 104px;
  height: 104px;
  margin-bottom: 18px;
  transform: translateZ(40px);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #0b0e0d;
  position: relative;
  z-index: 1;
}
.avatar .ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), transparent 30%, transparent 55%, var(--accent) 75%, transparent);
  animation: spin 5s linear infinite;
  filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), .6));
  -webkit-mask: radial-gradient(circle, transparent 54px, #000 55px);
  mask: radial-gradient(circle, transparent 54px, #000 55px);
}
@keyframes spin { to { transform: rotate(360deg); } }

.name {
  position: relative;
  margin: 0;
  font-size: clamp(34px, 8vw, 46px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
  background: linear-gradient(180deg, #fff 20%, rgba(255, 255, 255, .62));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(var(--accent-rgb), .25);
  transform: translateZ(30px);
}
.name::before,
.name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.name::before { color: var(--accent); }
.name::after { color: #7cf5ff; }
.name:hover::before { animation: glitch-a .45s steps(2) 2; }
.name:hover::after { animation: glitch-b .45s steps(2) 2; }
@keyframes glitch-a {
  0% { opacity: .8; transform: translate(-3px, 1px); clip-path: inset(10% 0 60% 0); }
  50% { opacity: .8; transform: translate(3px, -1px); clip-path: inset(55% 0 15% 0); }
  100% { opacity: 0; transform: none; }
}
@keyframes glitch-b {
  0% { opacity: .7; transform: translate(3px, -1px); clip-path: inset(60% 0 8% 0); }
  50% { opacity: .7; transform: translate(-3px, 2px); clip-path: inset(5% 0 70% 0); }
  100% { opacity: 0; transform: none; }
}
.handle {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.bio {
  min-height: 24px;
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px 0 9px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(var(--accent-rgb), .1);
  border: 1px solid rgba(var(--accent-rgb), .28);
}
.badge svg { width: 14px; height: 14px; color: var(--accent); }

.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.meta-item { display: inline-flex; align-items: center; gap: 6px; }
.meta-item svg { width: 14px; height: 14px; }
.meta-item:empty { display: none; }

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.social {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--glass-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: transform .35s var(--ease), color .25s, background .25s, border-color .25s, box-shadow .35s;
}
.social svg { width: 21px; height: 21px; fill: currentColor; }
.social:hover {
  transform: translateY(-4px);
  color: #fff;
  background: rgba(var(--accent-rgb), .14);
  border-color: rgba(var(--accent-rgb), .5);
  box-shadow: 0 14px 30px -12px rgba(var(--accent-rgb), .7);
}
.social::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 4px);
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  background: rgba(10, 12, 12, .92);
  border: 1px solid var(--line-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s var(--ease);
}
.social:hover::after,
.social:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* Sections */
.block { margin-top: 34px; }
.block[hidden] { display: none; }
.block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 4px 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.block-title > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.block-title > span:first-child::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.score { letter-spacing: .04em; text-transform: none; color: var(--ink-2); font-family: var(--font); font-weight: 700; font-size: 13px; }
.score b { color: var(--accent); }

.sites { display: grid; gap: 12px; }
.site {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px 16px 16px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
  opacity: 0;
  transform: translateY(16px);
}
.site.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .3s, box-shadow .4s; }
.site::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(var(--accent-rgb), .16), transparent 65%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.site:hover { border-color: rgba(var(--accent-rgb), .4); box-shadow: 0 20px 50px -25px rgba(var(--accent-rgb), .55); }
.site:hover::before { opacity: 1; }
.site-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  object-fit: cover;
  background: #0b0e0d;
  border: 1px solid var(--line);
}
.site-body { min-width: 0; flex: 1; }
.site-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-name { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.site-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(var(--accent-rgb), .1);
}
.site-tag.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .7); }
  100% { box-shadow: 0 0 0 7px rgba(var(--accent-rgb), 0); }
}
.site-desc { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.site-host { margin-top: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); opacity: .7; }
.site-arrow {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s;
}
.site-arrow svg { width: 16px; height: 16px; }
.site:hover .site-arrow { transform: rotate(-45deg); background: var(--accent); border-color: var(--accent); color: #04140b; }

/* Vouches */
.marquee {
  position: relative;
  overflow: hidden;
  margin: 0 -16px;
  padding: 4px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: scroll var(--duration, 40s) linear infinite;
}
.marquee:hover .track { animation-play-state: paused; }
.track.static { animation: none; margin: 0 auto; padding: 0 16px; flex-wrap: wrap; justify-content: center; width: auto; }
@keyframes scroll { to { transform: translateX(calc(-50% - 6px)); } }
.vouch {
  position: relative;
  flex: none;
  width: 270px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.stars { display: flex; gap: 2px; color: var(--accent); }
.stars svg { width: 14px; height: 14px; }
.stars .off { color: rgba(255, 255, 255, .14); }
.vouch-text { margin: 10px 0 12px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.vouch-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.vouch-author { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-2); min-width: 0; }
.vouch-author i {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: #04140b;
  background: var(--accent);
}
.vouch-author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.example {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffcf66;
  background: rgba(255, 190, 60, .12);
  border: 1px solid rgba(255, 190, 60, .3);
}
.vouch-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 14px auto 0;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  transition: color .2s, border-color .2s, background .2s;
}
.vouch-link:hover { color: #fff; border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .08); }
.vouch-link[hidden] { display: none; }

.foot {
  margin-top: 42px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .28);
}

/* Music */
.music {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  max-width: calc(100vw - 32px);
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(10, 12, 12, .7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s var(--ease) .8s, transform .6s var(--ease) .8s, border-color .2s;
}
.music[hidden] { display: none; }
body.entered .music { opacity: 1; transform: none; }
.music:hover { border-color: rgba(var(--accent-rgb), .6); }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.bars i { width: 3px; height: 100%; border-radius: 2px; background: var(--accent); animation: eq 1s ease-in-out infinite; transform-origin: bottom; }
.bars i:nth-child(2) { animation-delay: -.3s; }
.bars i:nth-child(3) { animation-delay: -.6s; }
.bars i:nth-child(4) { animation-delay: -.15s; }
.music.paused .bars i { animation: none; transform: scaleY(.25); }
@keyframes eq {
  0%, 100% { transform: scaleY(.3); }
  50% { transform: scaleY(1); }
}
.music-title { font-size: 12.5px; font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-title:empty { display: none; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 70;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  background: rgba(10, 12, 12, .92);
  border: 1px solid rgba(var(--accent-rgb), .4);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 520px) {
  .page { padding-top: 56px; }
  .card { padding: 30px 18px 20px; border-radius: 24px; }
  .social { width: 44px; height: 44px; border-radius: 14px; }
  .site { padding: 14px; gap: 12px; }
  .site-icon { width: 44px; height: 44px; border-radius: 13px; }
  .site-arrow { display: none; }
  .vouch { width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .track { animation: none; }
  .grain { animation: none; }
}
