:root {
  --bg: #0F1720;
  --bg-card: #141D27;
  --bg-card-hover: #182231;
  --line: #24303D;
  --text: #EDEAE3;
  --text-muted: #8B99A8;
  --accent: #E8A33D;
  --accent-dim: #6B5730;
  --slate: #3E5C6E;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- Nav ---- */

header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(15, 23, 32, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10;
}

nav.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -26px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

/* ---- Status strip ---- */

.status-strip {
  border-bottom: 1px solid var(--line);
  background: var(--bg-card);
}

.status-strip .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 40px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  overflow-x: auto;
}

.status-strip .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5FD08A;
  display: inline-block;
  margin-right: 8px;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(95, 208, 138, 0.5);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 4px rgba(95, 208, 138, 0);
  }
}

.status-strip span.sep {
  color: var(--line);
}

/* ---- Hero ---- */

.hero {
  padding: 88px 0 96px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 24px;
}

h1 .accent-line {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.5em;
  display: block;
  margin-top: 10px;
  letter-spacing: 0;
}

#bio-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 36px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #17120A;
}

.btn-primary:hover {
  background: #f0b256;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--slate);
  background: var(--bg-card);
}

/* ---- Avatar frame ---- */

.avatar-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(15, 23, 32, 0.75);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 20px;
}

.avatar-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--accent);
  opacity: 0.7;
}

.avatar-corner.tl {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.avatar-corner.br {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

/* ---- Section: what I build ---- */

.section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-head .see-all {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
}

.section-head .see-all:hover {
  color: var(--accent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  border-color: var(--slate);
  background: var(--bg-card-hover);
}

.card .card-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  display: block;
}

.card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ---- Footer ---- */

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 18px;
}

.social-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

@media (max-width: 780px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 56px 0 64px;
  }
}

@media (max-width: 780px) {
  .avatar-frame {
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 780px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .nav-links {
    gap: 20px;
    font-size: 0.82rem;
  }
}

@media (max-width: 780px) {
  footer .wrap {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-strip .pulse {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

