:root {
  --bg: #0b1216;
  --bg-2: #0f1a20;
  --panel: #12202a;
  --panel-hover: #16283a;
  --line: #1f3340;
  --text: #e6ecec;
  --text-2: #9fb3b8;
  --text-3: #6f858c;
  --green: #5ee27a;
  --cyan: #4fd3e6;
  --magenta: #e64fa0;
  --red: #e63946;
  --amber: #f2b543;
  --radius: 14px;
  --max: 1100px;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(60vw 40vh at 85% 0%, rgba(79,211,230,.08), transparent 60%),
    radial-gradient(40vw 40vh at 0% 100%, rgba(230,79,160,.06), transparent 60%);
  background-attachment: fixed;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -0.01em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #000; padding: .5rem 1rem; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }

.top {
  max-width: var(--max); margin: 0 auto; padding: 1.25rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.brand img { border-radius: 50%; border: 2px solid var(--line); }
.brand:hover { text-decoration: none; }
.top nav { display: flex; gap: 1.25rem; font-family: var(--font-mono); font-size: .85rem; }
.top nav a { color: var(--text-2); }
.top nav a:hover { color: var(--green); text-decoration: none; }

main { max-width: var(--max); margin: 0 auto; padding: 0 1rem 4rem; }

.hero {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center;
  padding: 3rem 0 4rem;
}
.eyebrow { font-family: var(--font-mono); color: var(--green); font-size: .85rem; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; margin-bottom: 1rem; }
.lede { font-size: 1.15rem; color: var(--text-2); max-width: 34rem; margin-bottom: 1.75rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-block; padding: .65rem 1.1rem; border-radius: 10px;
  border: 1px solid var(--line); color: var(--text); font-family: var(--font-mono); font-size: .9rem;
  background: var(--panel); transition: border-color .15s, background .15s, transform .15s;
}
.btn:hover { border-color: var(--cyan); background: var(--panel-hover); text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--green); color: #06120a; border-color: var(--green); font-weight: 600; }
.btn.primary:hover { background: #7cf094; border-color: #7cf094; }

.hero-art { position: relative; }
.hero-art img {
  border-radius: 24px; border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(79,211,230,.1), 0 30px 80px -30px rgba(79,211,230,.35), 0 20px 60px -30px rgba(230,57,70,.35);
}

.section-head { margin: 3rem 0 1.5rem; display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.section-head h2 { font-size: 1.8rem; }
.section-head h2::before { content: '# '; color: var(--magenta); font-family: var(--font-mono); font-weight: 400; }
.section-head p { color: var(--text-3); font-family: var(--font-mono); font-size: .85rem; }

.grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.card a {
  display: flex; flex-direction: column; height: 100%; padding: 1.25rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); transition: border-color .15s, background .15s, transform .15s;
}
.card a:hover { text-decoration: none; border-color: var(--cyan); background: var(--panel-hover); transform: translateY(-2px); }
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { color: var(--text-2); font-size: .95rem; flex: 1; }
.card .meta { margin-top: 1rem; font-family: var(--font-mono); font-size: .75rem; color: var(--text-3); display: flex; align-items: center; gap: .5rem; }
.card .tag { align-self: flex-start; font-family: var(--font-mono); font-size: .7rem; color: var(--amber); border: 1px solid rgba(242,181,67,.35); padding: .1rem .5rem; border-radius: 999px; margin-bottom: .6rem; }
.card.featured { grid-column: span 2; }
.card.featured a { border-color: rgba(94,226,122,.35); background: linear-gradient(135deg, var(--panel), #0f2a22); }
.card.featured a:hover { border-color: var(--green); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--text-3); }
.dot.go { background: var(--cyan); } .dot.py { background: var(--amber); } .dot.cpp { background: var(--magenta); } .dot.js { background: var(--green); }

.lab-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.lab-list { list-style: none; display: grid; gap: 1.25rem; }
.lab-list li { padding-left: 1.25rem; border-left: 2px solid var(--red); }
.lab-list h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.lab-list h3::after { content: ' · soon'; font-family: var(--font-mono); font-size: .7rem; color: var(--red); font-weight: 400; vertical-align: middle; }
.lab-list p { color: var(--text-2); font-size: .95rem; }
.lab-art img { border-radius: 18px; border: 1px solid var(--line); max-height: 520px; width: auto; margin: 0 auto; object-fit: cover; }

.links { list-style: none; display: grid; gap: .75rem; }
.links li { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.links a { font-family: var(--font-mono); font-size: .95rem; }
.links span { color: var(--text-3); font-size: .9rem; }

footer { max-width: var(--max); margin: 0 auto; padding: 2rem 1rem 3rem; color: var(--text-3); font-family: var(--font-mono); font-size: .8rem; border-top: 1px solid var(--line); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 1.5rem; }
  .hero-art { order: -1; max-width: 360px; }
  .lab-body { grid-template-columns: 1fr; }
  .lab-art { max-width: 320px; }
  .card.featured { grid-column: span 1; }
}
@media (max-width: 480px) {
  .top { flex-direction: column; align-items: flex-start; }
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .card a { transition: none; } }
