:root {
  --bg: #0c0c0f;
  --card: #141419;
  --text: #e8e8ed;
  --muted: #a3a3ad;
  --accent: #8ec5ff;
  --accent-2: #f4bfff;
  --border: #1f1f27;
  --pill: #1b1b22;
  --brand: 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --copy: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1100px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--copy);
  background: radial-gradient(circle at 20% 20%, rgba(142, 197, 255, 0.08), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(244, 191, 255, 0.05), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

main {
  width: min(100%, calc(var(--max-width) + 80px));
  margin: 0 auto;
  padding: 40px 24px 120px;
}

.page-header,
.section {
  margin: 80px auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.page-header h1,
.hero h1 {
  font-family: var(--brand);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(32px, 6vw, 56px);
  margin: 12px 0 16px;
}

h2 {
  font-size: clamp(24px, 4vw, 38px);
  margin: 12px 0;
  font-family: var(--brand);
}

h3 {
  font-size: 22px;
  margin: 10px 0;
  font-family: var(--brand);
}

p {
  margin: 0 0 12px;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
  color: var(--accent);
  margin: 0;
}

.lede {
  font-size: 18px;
  max-width: 640px;
}

.site-header,
.site-footer {
  width: min(100%, calc(var(--max-width) + 80px));
  margin: 0 auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(12, 12, 15, 0.9), rgba(12, 12, 15, 0.65));
  backdrop-filter: blur(16px);
}

.site-footer {
  position: static;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 32px 24px 48px;
}

.brand {
  font-family: var(--brand);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  position: relative;
}

.nav-toggle {
  display: none;
  background: var(--pill);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: var(--pill);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  margin-top: 60px;
}

.hero-visual {
  position: relative;
  min-height: 320px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: radial-gradient(circle at 30% 30%, rgba(142, 197, 255, 0.2), transparent 40%),
    radial-gradient(circle at 70% 20%, rgba(244, 191, 255, 0.15), transparent 36%),
    #0f0f14;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.75;
}

.orb-large {
  width: 260px;
  height: 260px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  top: 18%;
  left: 14%;
}

.orb-small {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, #7cf7c1, #70a2ff);
  bottom: 8%;
  right: 10%;
}

.grid-lines::before,
.grid-lines::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}

.section.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.column.highlight {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card,
.project-card,
.writing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.card-meta,
.project-card__meta,
.meta {
  color: var(--muted);
  font-size: 14px;
}

.project-card {
  margin-bottom: 20px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text);
}

.list.inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.list.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item .meta {
  color: var(--muted);
}

.inline-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--pill);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0d1021;
  border: none;
}

.button.ghost {
  background: transparent;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.pill {
  background: var(--pill);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
}

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.filter-button {
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.filter-button.is-active {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(142, 197, 255, 0.2), rgba(244, 191, 255, 0.2));
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-date {
  color: var(--muted);
}

.writing-card {
  margin-bottom: 16px;
}

.writing-card.is-focused {
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f0f14;
  color: var(--text);
}

.contact-form label {
  font-weight: 600;
  color: var(--text);
}

.site-footer {
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

@media (max-width: 900px) {
  .site-header {
    position: sticky;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    flex-direction: column;
    background: #0f0f14;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-list.is-open {
    display: flex;
  }
}

@media (max-width: 640px) {
  main {
    padding: 32px 20px 80px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}
