:root {
  --bg: #07090d;
  --bg-2: #0d1218;
  --ink: #e8edf3;
  --muted: #9aa6b4;
  --line: rgba(232, 237, 243, 0.12);
  --cyan: #7ee0ff;
  --amber: #ffb25b;
  --emerald: #5ce1a6;
  --violet: #b69cff;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Instrument Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  background-image: radial-gradient(rgba(255,255,255,0.06) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

.nav, main, footer { position: relative; z-index: 1; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 6vw;
  background: rgba(7, 9, 13, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.mark {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--cyan) 40%, #1a6a80);
  box-shadow: 0 0 12px var(--cyan);
}

.nav nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav nav a { color: var(--muted); font-size: 0.92rem; text-decoration: none; }
.nav nav a:hover { color: var(--ink); }

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem 6vw 4rem;
}

.kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.85rem;
}

h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 20ch;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.7rem;
}

h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
h3 a { color: var(--ink); text-decoration: none; }
h3 a:hover { color: var(--cyan); text-decoration: none; }

.lede {
  margin-top: 1.25rem;
  max-width: 66ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.lede.short { margin-top: 0.6rem; }

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn.primary {
  background: var(--ink);
  color: var(--bg);
}

.btn.ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn:hover { text-decoration: none; opacity: 0.9; }

.byline {
  margin-top: 2.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 6vw;
  border-top: 1px solid var(--line);
}

.section-head { max-width: 66ch; margin-bottom: 1.8rem; }
.section-head.subhead { margin-top: 2.5rem; margin-bottom: 1.2rem; }
.section-head p:not(.kicker) { color: var(--muted); }

.cards {
  display: grid;
  gap: 1.15rem;
}

.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.project-grid { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }

.cards article {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.3rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
}

.cards article p { color: var(--muted); font-size: 0.95rem; flex-grow: 1; }

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.badge.live { color: var(--emerald); border-color: rgba(92, 225, 166, 0.35); background: rgba(92, 225, 166, 0.08); }
.badge.pilot { color: var(--cyan); border-color: rgba(126, 224, 255, 0.35); background: rgba(126, 224, 255, 0.08); }
.badge.rd { color: var(--amber); border-color: rgba(255, 178, 91, 0.35); background: rgba(255, 178, 91, 0.08); }
.badge.beta { color: var(--violet); border-color: rgba(182, 156, 255, 0.35); background: rgba(182, 156, 255, 0.08); }

.category {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
}

.project-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
}

.project-link.secondary { color: var(--muted); }
.project-link.secondary:hover { color: var(--ink); }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.spec {
  background: linear-gradient(180deg, #111821, #0c1016);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.2rem 1.25rem;
}

.spec.wide { grid-column: span 4; }

.spec .label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec .value {
  display: inline-block;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 0.45rem;
}

.spec .value-text {
  display: block;
  font-size: 0.98rem;
  color: var(--ink);
  margin-top: 0.45rem;
}

.spec .unit {
  color: var(--muted);
  margin-left: 0.25rem;
  font-size: 0.95rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.status-cols { margin-top: 2.5rem; }

.timeline, .steps { list-style: none; margin-top: 1rem; }

.timeline li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.timeline span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  padding-top: 0.15rem;
}

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

.steps { counter-reset: step; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--cyan);
}

.contact .contact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.8rem;
}

.contact .label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact p { margin-top: 0.3rem; }

footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 6vw 2.2rem;
  color: var(--muted);
  font-size: 0.85rem;
  max-width: var(--max);
  margin: 0 auto;
}

@media (max-width: 900px) {
  .cards.three, .spec-grid, .two-col, .contact .contact-row {
    grid-template-columns: 1fr;
  }
  .spec.wide { grid-column: auto; }
  .nav nav { display: none; }
  .hero { padding-top: 3.5rem; }
}
