:root {
  --bg: #0d1117;
  --fg: #f0f6fc;
  --fg-muted: #9198a1;
  --border: #3d444d;
  --accent: #4493f8;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 15% 15%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 15% 15%, #000, transparent 75%);
  pointer-events: none;
}

.intro {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1.5rem, 6vw, 5rem) clamp(1.5rem, 10vw, 9rem);
}

.name {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.role {
  margin: 0.5rem 0 0;
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.125rem);
  color: var(--fg-muted);
}

.links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.links a {
  display: inline-flex;
  padding: 2px;
  border-radius: 6px;
  color: var(--fg-muted);
  transition: color 0.15s ease;
}

.links a:hover { color: var(--fg); }
.links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.links svg { display: block; fill: currentColor; }

.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.js .name:not(.started) { visibility: hidden; }

.js .role,
.js .links {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.ready .role,
.ready .links { opacity: 1; transform: none; }
.ready .links { transition-delay: 0.2s; }
