* {
  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;
  background: radial-gradient(ellipse at 50% 35%, #0e0e0e 0%, #000 65%);
}

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;
}

.corner {
  position: fixed;
  width: 22px;
  height: 22px;
  border-color: rgba(255,255,255,0.25);
  z-index: 4;
  pointer-events: none;
}

.corner-tl { top: 22px; left: 22px; border-top: 1px solid; border-left: 1px solid; }
.corner-tr { top: 22px; right: 22px; border-top: 1px solid; border-right: 1px solid; }
.corner-bl { bottom: 22px; left: 22px; border-bottom: 1px solid; border-left: 1px solid; }
.corner-br { bottom: 22px; right: 22px; border-bottom: 1px solid; border-right: 1px solid; }

@media (max-width: 480px) {
  .corner { width: 14px; height: 14px; top: 12px; bottom: 12px; left: 12px; right: 12px; }
}

.label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.label-socials { animation-delay: 1.0s; margin-top: -8px; }
.label-projects { animation-delay: 1.24s; }

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;
}

.status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--dim);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 5px 12px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.78s forwards;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg);
  flex-shrink: 0;
}

.about {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.6;
  max-width: 300px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.92s 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 1.06s 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;
}

.divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  animation: fadeUp 0.6s ease 1.2s forwards;
}

.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 420px;
  opacity: 0;
  animation: fadeUp 0.6s ease 1.3s 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.5s forwards;
}

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

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

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