:root {
  --bg: #07050d;
  --bg-soft: #0d0818;
  --purple: #8b5cf6;
  --purple-soft: #a78bfa;
  --text: #f5f3ff;
  --muted: #c4b5fd;
  --dim: #9ca3af;
  --line: rgba(167, 139, 250, 0.20);
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.65;
  overflow-x: hidden;
  background: #05040a;
}

#mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 0%, transparent 48%, rgba(0, 0, 0, 0.48) 100%),
    linear-gradient(90deg, rgba(7, 5, 13, 0.30), transparent 28%, transparent 72%, rgba(7, 5, 13, 0.30));
}

.page {
  position: relative;
  z-index: 2;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-content: center;
}

.hero-inner {
  max-width: 900px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 16px 0 0;
}

.nav a,
.inline-link {
  color: var(--text);
  text-decoration-color: var(--purple-soft);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.nav a:hover,
.inline-link:hover {
  color: var(--purple-soft);
}

.kicker {
  color: var(--muted);
  margin: 0 0 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5.5vw, 4.65rem);
  line-height: 1;
  letter-spacing: -0.075em;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 1.05rem;
}

p {
  margin: 0 0 18px;
  max-width: 86ch;
}

.lead {
  margin-top: 34px;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  color: #ede9fe;
}

.hero .lead {
  max-width: 860px;
  font-size: clamp(0.95rem, 1.05vw, 1.04rem);
}

.muted {
  color: var(--dim);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}

.pill {
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(13, 8, 24, 0.62);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.9rem;
}

.section {
  margin: 42px 0;
}

.project-list {
  max-width: 980px;
}

.project {
  margin: 0 0 34px;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--line);
}

.project:last-child {
  border-bottom: 0;
}

.project-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 6px;
}

.project-title h3 {
  margin: 0;
}

.entry {
  margin: 0 0 34px;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--line);
}

.entry:last-child {
  border-bottom: 0;
}

.entry-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 6px;
}

.entry-title h3 {
  margin: 0;
}

.date,
.status {
  color: var(--purple-soft);
  font-size: 0.92rem;
}

.cert-list-clean {
  max-width: 880px;
  margin-top: 24px;
}

.cert-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.cert-row:first-child {
  border-top: 1px solid var(--line);
}

.cert-status {
  color: var(--purple-soft);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 2px;
}

.cert-content h3 {
  margin: 0 0 6px;
}

.cert-content p {
  margin: 0;
  color: var(--dim);
}

.cert-content {
  margin-top: 10px;
}

.cert-stack {
  display: grid;
  gap: 14px;
}

.cert-mini {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(167, 139, 250, 0.12);
}

.cert-mini:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cert-mini h3 {
  margin: 0 0 4px;
}

ul {
  margin: 8px 0 0 20px;
  padding: 0;
}

li {
  margin-bottom: 8px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.card {
  border: 1px solid var(--line);
  background: rgba(7, 5, 13, 0.70);
  padding: 18px;
  border-radius: 14px;
}

.card p {
  margin-bottom: 12px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.footer {
  margin-top: 70px;
  color: var(--dim);
  font-size: 0.9rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 28px, var(--max-width));
    padding-top: 34px;
  }

  .hero {
    align-content: start;
    padding-top: 20vh;
  }

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

  .cert-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  h1 {
    font-size: clamp(2.2rem, 13vw, 3.8rem);
  }
}
