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

:root {
  --bg: #000;
  --fg: #fff;
  --dim: #666;
}

html, body {
  background: var(--bg);
  color: var(--fg);
  min-height: 100%;
}

body {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 48px 20px;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

.grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.6;
  z-index: 5;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  z-index: 2;
}

.logo {
  width: 150px;
  height: 150px;
  display: block;
  border-radius: 30px;
  opacity: 0;
  transform: scale(0.7) rotate(-10deg);
  animation: reveal 1.1s cubic-bezier(.16,1,.3,1) forwards;
}

@keyframes reveal {
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.handle {
  font-size: 22px;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.55s forwards;
}

.tag {
  font-size: 16px;
  color: var(--dim);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.7s forwards;
}

.about {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.6;
  max-width: 300px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.85s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.links {
  display: flex;
  gap: 30px;
  margin-top: 8px;
  opacity: 0;
  animation: fadeUp 0.6s ease 1s forwards;
}

.links a {
  display: block;
  width: 27px;
  height: 27px;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.links a:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.links svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--fg);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 420px;
  opacity: 0;
  animation: fadeUp 0.6s ease 1.15s forwards;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  text-align: left;
  min-width: 140px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-3px);
}

.project-name {
  font-size: 14px;
  font-weight: 600;
}

.project-desc {
  font-size: 11px;
  color: var(--dim);
}

.term {
  margin-top: 12px;
  font-size: 15px;
  color: var(--dim);
  min-height: 18px;
  opacity: 0;
  animation: fadeUp 0.6s ease 1.35s forwards;
}

.term-cursor {
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (max-width: 480px) {
  .logo { width: 110px; height: 110px; }
}
