:root {
  --bg: #0b0f1c;
  --bg-2: #0c1327;
  --ink: #e8edf8;
  --muted: #a2acc7;
  --accent: #5ae8ff;
  --accent-2: #ff5f9e;
  --stroke: rgba(255, 255, 255, 0.14);
  --card: rgba(255, 255, 255, 0.06);
  --shadow: 0 30px 70px rgba(4, 8, 20, 0.7);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Sora", "Avenir Next", sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 800px at 10% -10%, rgba(90, 232, 255, 0.2), transparent 60%),
    radial-gradient(900px 700px at 90% 0%, rgba(255, 95, 158, 0.18), transparent 55%),
    linear-gradient(180deg, #0b0f1c 0%, #0d1426 40%, #0b0f1c 100%);
}

a {
  color: var(--ink);
  text-decoration: none;
}

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

.binary-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

#binary-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 28, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 6vw;
}

.brand {
  font-family: "Syne", "Space Grotesk", sans-serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 6rem 6vw 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  margin: 0.6rem 0 1rem;
}

.hero-copy p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 40rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  font-size: 0.85rem;
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, rgba(90, 232, 255, 0.35), rgba(255, 95, 158, 0.45));
  border-color: rgba(90, 232, 255, 0.6);
  box-shadow: 0 12px 30px rgba(90, 232, 255, 0.25);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 1.2rem;
}

.hero-card img {
  width: 100%;
  border-radius: 18px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.8rem;
}

.hero-meta div {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.8rem;
  text-align: center;
}

.hero-meta span {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
}

.hero-meta small {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--muted);
}

.hero-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.pixel-strip {
  margin-top: 3rem;
  padding: 1rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(120deg, rgba(90, 232, 255, 0.08), rgba(255, 95, 158, 0.08));
  position: relative;
  overflow: hidden;
}

.pixel-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.2;
  animation: drift 6s linear infinite;
}

.pixel-strip span {
  position: relative;
  z-index: 1;
  color: var(--muted);
}

section {
  padding: 4rem 6vw;
}

h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 1.2rem;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.impact-grid article,
.research-grid article {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.binary-mark {
  margin-top: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(90, 232, 255, 0.7);
  word-break: break-word;
}

.section-head {
  max-width: 46rem;
}

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

.project-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-card div {
  padding: 1.2rem;
}

.project-card span {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.timeline {
  display: grid;
  gap: 1.4rem;
}

.timeline div {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.4rem;
}

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

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.contact {
  text-align: center;
}

.contact-cta {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

footer {
  padding: 2rem 6vw 4rem;
  text-align: center;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

@keyframes drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(14px);
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
