:root {
  color-scheme: dark;
  --bg: #03050b;
  --bg-2: #0b121c;
  --card: #111824;
  --accent: #6ee7ff;
  --accent-strong: #3dd2ff;
  --border: rgba(255, 255, 255, 0.07);
  --text-muted: #a5b4fc;
  --metallic: linear-gradient(135deg, rgba(94, 94, 112, 0.6), rgba(10, 10, 20, 0.6));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  background: radial-gradient(circle at top, rgba(94, 94, 112, 0.25), transparent 55%),
    var(--bg);
  color: #f8fafc;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.orbital-grid,
.stripe-layers {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orbital-grid {
  background: radial-gradient(circle at 20% 20%, rgba(125, 211, 252, 0.12), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(16, 185, 129, 0.08), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.08), transparent 40%);
  opacity: 0.9;
}

.stripe-layers {
  background-image: repeating-linear-gradient(
    115deg,
    rgba(248, 250, 252, 0.02),
    rgba(248, 250, 252, 0.02) 1px,
    transparent 1px,
    transparent 80px
  );
  mix-blend-mode: screen;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.brand-mark {
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.3em;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-links {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
}

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

.hero {
  margin-bottom: 1.5rem;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 0.75rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.1;
}

.lede {
  margin-top: 1rem;
  color: var(--text-muted);
  max-width: 640px;
}

.hero-meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.section {
  margin-top: 3rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-head p {
  margin-top: 0.35rem;
  color: var(--text-muted);
}

.card-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.card-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tag {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.card ul li {
  margin: 0;
  list-style: disc;
}

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

.card-foot a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--accent);
  color: #020617;
  text-decoration: none;
}

.card-foot a:hover {
  background: var(--accent-strong);
}

.lock-icon {
  margin-left: 0.4rem;
  font-size: 0.8em;
}

.projects-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.project-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.project-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.project-card h3 {
  margin: 0;
}

.project-card p {
  margin: 0;
  color: var(--text-muted);
}

.project-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.note-section {
  margin-bottom: 2rem;
}

.timeline {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.timeline div {
  background: rgba(15, 23, 42, 0.75);
  border-left: 2px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
}

.timeline dt {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-family: 'Share Tech Mono', monospace;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.timeline dd {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.4;
}

.footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding: 2rem 1rem 3rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer a:hover {
  border-color: var(--accent);
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .top-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-shell {
    padding: 2rem 1rem;
  }

  .card-foot {
    flex-direction: column;
    gap: 0.5rem;
  }
}
