:root {
  --bg: #0e0f12;
  --fg: #e8e8ec;
  --muted: #9aa0aa;
  --btn: #1a1c22;
  --btn-hover: #23262e;
  --btn-border: #2a2d36;
  --focus: #6aa9ff;
  --avatar-size: 340px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.avatar {
  width: var(--avatar-size);
  height: var(--avatar-size);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  margin-bottom: 20px;
}

.avatar canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
  z-index: 0;
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: none;
}

.name {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 500ms ease 0ms, transform 500ms ease 0ms;
}

.tagline {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 28px 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 500ms ease 120ms, transform 500ms ease 120ms;
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--btn);
  border: 1px solid var(--btn-border);
  border-radius: 12px;
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease,
              opacity 500ms ease, translate 500ms ease;
  opacity: 0;
  translate: 0 6px;
}

.links a:hover {
  background: var(--btn-hover);
  border-color: #353944;
}

.links a:active {
  transform: scale(0.99);
}

.links a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.links a svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--fg);
}

.links a span {
  flex: 1;
  text-align: left;
}

body.ready .name,
body.ready .tagline {
  opacity: 1;
  transform: translateY(0);
}

body.ready .links a {
  opacity: 1;
  translate: 0 0;
}

body.ready .links a:nth-child(1) { transition-delay: 240ms, 240ms, 0ms, 240ms, 240ms; }
body.ready .links a:nth-child(2) { transition-delay: 320ms, 320ms, 0ms, 320ms, 320ms; }
body.ready .links a:nth-child(3) { transition-delay: 400ms, 400ms, 0ms, 400ms, 400ms; }
body.ready .links a:nth-child(4) { transition-delay: 480ms, 480ms, 0ms, 480ms, 480ms; }
body.ready .links a:nth-child(5) { transition-delay: 560ms, 560ms, 0ms, 560ms, 560ms; }
body.ready .links a:nth-child(6) { transition-delay: 640ms, 640ms, 0ms, 640ms, 640ms; }

@media (max-width: 420px) {
  :root { --avatar-size: 280px; }
  .name { font-size: 24px; }
  .tagline { font-size: 14px; margin-bottom: 22px; }
  .links a { padding: 13px 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .avatar canvas { display: none; }
  .avatar-fallback { display: block; }
  .name, .tagline, .links a {
    opacity: 1;
    transform: none;
    translate: 0 0;
    transition: none;
  }
}
