:root {
  --bg: #000;
  --fg: #ededed;
  --dim: #8f8f8f;
  --faint: #555;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --panel: rgba(6, 6, 6, .7);
  --beat: 0;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: Geist, ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.55 var(--sans);
  letter-spacing: -.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body:not(.is-in) { overflow: hidden; }
body.has-cursor, body.has-cursor * { cursor: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; -webkit-user-drag: none; }
[hidden] { display: none !important; }
::selection { background: var(--fg); color: #000; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { display: none; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--a1); }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; }
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: -1;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(5) infinite;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 26px;
  background: #000;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.2s var(--ease) .1s;
}
.loader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader-name {
  position: relative;
  font: 600 clamp(40px, 9vw, 112px)/1 var(--sans);
  letter-spacing: -.055em;
  color: #fff;
  white-space: nowrap;
}
.loader-name .ghost { visibility: hidden; }
.loader-name .typed { position: absolute; inset: 0; display: flex; align-items: center; }
.loader-name .typed span {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(.14em);
  animation: letter .6s var(--ease) forwards;
}
.loader-name .typed::after {
  content: "";
  width: .07em;
  height: .82em;
  margin-left: .06em;
  align-self: center;
  background: #fff;
  animation: blink 1s steps(1) infinite;
}
.loader.is-done .loader-name { transform: translateY(-30px); opacity: 0; transition: transform .9s var(--ease), opacity .6s; }
.loader-video {
  width: min(880px, 94vw, 89vh);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  margin-bottom: -2vh;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent), linear-gradient(transparent, #000 14%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent), linear-gradient(transparent, #000 14%, #000 84%, transparent);
  mask-composite: intersect;
  animation: fade-in 1.4s ease both;
}
.loader.is-done .loader-video { opacity: 0; transform: scale(1.06); transition: opacity .7s, transform 1.2s var(--ease); }
.loader-name { font-size: clamp(36px, 7vw, 92px); }
.loader-skip {
  position: absolute;
  right: 26px;
  bottom: 24px;
  font: 400 12px var(--mono);
  letter-spacing: .08em;
  color: var(--faint);
  transition: color .2s;
  animation: fade-in 1s ease 2.5s both;
}
.loader-skip:hover { color: #fff; }
.loader-bar { width: min(220px, 50vw); height: 1px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }

.nope {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  background: #000;
  color: #fff;
  font: 400 14px var(--mono);
}
.nope b { font: 600 34px var(--sans); letter-spacing: -.04em; }
.nope span { color: var(--dim); }

.stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 560px);
  justify-content: center;
  align-items: start;
  gap: 16px;
  padding: 0 20px 150px;
}
.col-left { position: sticky; top: 20px; }
.col-right { display: grid; gap: 14px; }

.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s var(--ease), transform 1.3s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms + .45s);
}
body.is-in .rv { opacity: 1; transform: none; }

.card, .sheet {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
}
.card::after, .sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.card { overflow: hidden; }
.banner { position: relative; height: 140px; background: #050505; overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.02 + var(--beat) * .03)); }
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 35%, rgba(6, 6, 6, .9));
}

.card-in { padding: 0 24px 20px; }

.profile {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: -48px;
}
.avatar-wrap { position: relative; width: 96px; height: 96px; flex: none; }
.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
  outline: 5px solid #060606;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .05), 0 0 calc(var(--beat) * 50px) color-mix(in srgb, var(--a1) 55%, transparent);
  transform: scale(calc(1 + var(--beat) * .035));
  transition: transform .5s var(--ease);
}
.avatar-wrap:hover .avatar { transform: scale(1.04) rotate(-3deg); }
.deco { position: absolute; z-index: 2; inset: -10%; width: 120%; height: 120%; pointer-events: none; }
.status {
  position: absolute;
  z-index: 3;
  right: 3px;
  bottom: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 4px solid #060606;
  background: #80848e;
}
.status[data-status=online] { background: #23a55a; }
.status[data-status=online]::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #23a55a;
  animation: ping 2.4s var(--ease) infinite;
}
.status[data-status=idle] { background: #f0b232; }
.status[data-status=dnd] { background: #f23f43; }

.badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1px; padding-bottom: 4px; max-width: 220px; }
.badges a, .badges span { display: block; padding: 3px; border-radius: 6px; transition: background .2s, transform .3s var(--ease); }
.badges a:hover, .badges span:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.badges img { width: 21px; height: 21px; }
body.is-in .badges > * { animation: rise .6s var(--ease) both; animation-delay: calc(.9s + var(--n, 0) * 60ms); }

.who { margin-top: 12px; }
.name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.name { font: 600 28px/1.1 var(--sans); letter-spacing: -.045em; color: #fff; }
.clan {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  font: 500 12px var(--mono);
  letter-spacing: .04em;
}
.clan img { width: 14px; height: 14px; }
.handle-row { display: flex; align-items: center; gap: 10px; margin-top: 3px; font: 400 13px var(--mono); color: var(--dim); }
.handle { transition: color .2s; }
.handle:hover { color: #fff; }
.pronouns:not(:empty)::before { content: "·"; margin-right: 10px; color: var(--faint); }

.bio { display: grid; gap: 2px; margin-top: 14px; color: #d6d6d6; font-size: 14.5px; }
.bio span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 9px 2px 1px; border-radius: 50%; background: var(--a1); vertical-align: middle; }
.bio:empty { display: none; }

.mood { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: #cfcfcf; font-size: 14px; }
.mood img { width: 18px; height: 18px; }

.acts { display: grid; gap: 8px; margin-top: 14px; }
.acts:empty { display: none; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts > div { padding: 11px 0; }
.facts > div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.facts dt { font: 400 10.5px var(--mono); color: var(--faint); letter-spacing: .04em; margin-bottom: 2px; }
.facts dd { font-size: 13px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#presence::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: 2px;
  background: var(--presence, #80848e);
}
.colon { animation: blink 2s steps(1) infinite; }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font: 400 12px var(--mono);
  color: var(--dim);
}
.like, .views { display: inline-flex; align-items: center; gap: 7px; font: inherit; color: var(--dim); transition: color .2s; }
.like:hover { color: #fff; }
.like svg, .views svg { width: 15px; height: 15px; }
.like svg { fill: transparent; stroke: currentColor; stroke-width: 1.8; transition: fill .25s, stroke .25s; }
.like.is-on { color: #fff; }
.like.is-on svg { fill: var(--a1); stroke: var(--a1); }
.like.pop svg { animation: pop .5s cubic-bezier(.3, 1.8, .5, 1); }
.like-say { color: var(--faint); transition: color .2s; }
.like:hover .like-say { color: var(--dim); }

[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 4px);
  padding: 5px 8px;
  border-radius: 6px;
  background: #fff;
  color: #000;
  font: 500 11.5px/1.2 var(--sans);
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .2s var(--ease);
  z-index: 20;
}
[data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 6px 4px 0; color: var(--faint); font: 400 11.5px var(--mono); }
.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
kbd { padding: 1px 5px; border: 1px solid var(--line-2); border-radius: 4px; font: inherit; color: var(--dim); }
kbd + kbd, .keys kbd:not(:first-child) { margin-left: 6px; }

@keyframes letter { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes breathe { 50% { opacity: .4; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes pop { 40% { transform: scale(1.5); } }
@keyframes ping { 0% { transform: scale(.8); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes hue { to { filter: hue-rotate(360deg); } }
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5%, 3%); }
  40% { transform: translate(4%, -6%); }
  60% { transform: translate(-3%, 7%); }
  80% { transform: translate(6%, 2%); }
}

@media (max-width: 1000px) {
  .stage { grid-template-columns: minmax(0, 560px); }
  .col-left { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
