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

:root {
  --bg: #0d0d0d;
  --text: #f0f0f0;
  --muted: #999;
  --dim: #888;
  --font: 'DM Mono', monospace;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* ── Canvas ─────────────────────────────────────────────────── */
#bg {
  position: fixed;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ── Bottom-left vignette so text stays legible ─────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 0% 100%, rgba(13,13,13,0.72) 0%, transparent 100%);
}

/* ── Overlay ─────────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 0 52px 52px;
  pointer-events: none;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  pointer-events: all;

  opacity: 0;
  transform: translateY(10px);
  animation: fadein 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

/* ── Identity ────────────────────────────────────────────────── */
.name {
  font-size: clamp(26px, 3.6vw, 48px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text);
}

.role {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #aaa;
}

.role .muted {
  color: var(--muted);
}

/* ── Bio ─────────────────────────────────────────────────────── */
.bio {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.75;
  color: #888;
  max-width: 380px;
}

/* ── Links ───────────────────────────────────────────────────── */
.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  list-style: none;
}

.links a {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.links a:hover {
  color: var(--text);
}

.links a.email {
  color: #888;
  border-bottom: 1px solid #444;
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.links a.email:hover {
  color: #bbb;
  border-color: #777;
}

/* ── Fade-in animation ───────────────────────────────────────── */
@keyframes fadein {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Credit ──────────────────────────────────────────────────── */
.credit {
  position: fixed;
  bottom: 28px;
  right: 36px;
  z-index: 2;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #555;
  text-decoration: none;
  text-transform: lowercase;
  transition: color 0.3s ease;
  opacity: 0;
  animation: fadein 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
}

.credit:hover {
  color: #888;
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .overlay {
    padding: 0 28px 40px;
  }

  .bio {
    max-width: 100%;
  }

  .links {
    gap: 6px 16px;
  }
}
