:root {
  --bg: #0a0a0a;
  --bg-card: #101016;
  --text: #e0e0e0;
  --text-muted: #777;
  --accent: #3b5ec9;
  --accent-dim: rgba(59, 94, 201, 0.12);
  --border: #1e1e2a;
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── ascii banner ── */
.ascii-banner {
  text-align: center;
  font-size: clamp(0.32rem, 1.1vw, 0.6rem);
  color: var(--accent);
  padding: 2rem 0 0.5rem;
  line-height: 1.15;
  overflow-x: auto;
  white-space: pre;
  opacity: 0.85;
}

/* ── nav ── */
.nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.75rem 0 1rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

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

/* ── divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

/* ── about ── */
.about {
  padding: 2.5rem 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.about-photo {
  flex-shrink: 0;
}

.about-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.about-text h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.tagline {
  color: var(--accent);
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}

.bio {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 480px;
}

.social-links {
  display: flex;
  gap: 0.6rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s;
}

.social-links a:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

/* ── section heading ── */
.section-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text);
}

/* ── project grid ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #080810;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.project-card:hover .project-thumb img {
  transform: scale(1.04);
}

.project-info {
  padding: 1rem 1.1rem 1.2rem;
}

.project-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.project-tags span {
  background: var(--accent-dim);
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 0.4rem;
}

.link-pill {
  font-size: 0.7rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.link-pill:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* ── contact ── */
.contact {
  padding: 2rem 0;
  text-align: center;
}

.contact-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.contact-row {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.contact-chip {
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.contact-chip:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ── footer ── */
footer {
  padding: 1.5rem 0;
}

footer p {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  padding-top: 1rem;
}

/* ── responsive ── */
@media (max-width: 640px) {
  .ascii-banner {
    font-size: 0.28rem;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-text h1 {
    font-size: 1.5rem;
  }

  .social-links {
    justify-content: center;
  }

  .bio {
    margin-left: auto;
    margin-right: auto;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 1.2rem;
  }
}
