:root {
  --bg: #070b12;
  --ink: #e7edf8;
  --muted: #9aa8bd;
  --panel: rgba(15, 23, 42, 0.78);
  --line: rgba(149, 164, 190, 0.28);
  --green: #62d394;
  --gold: #e1b15a;
  --blue: #7aa7ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #070b12;
  background-size: 44px 44px;
  animation: drift-grid 18s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(98, 211, 148, 0.10), transparent 28%),
    linear-gradient(240deg, rgba(122, 167, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(7, 11, 18, 0.10), rgba(7, 11, 18, 0.96));
  pointer-events: none;
}

.page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 40px;
}

.hero {
  min-height: 52vh;
  display: grid;
  align-content: center;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.hero::after {
  content: "";
  width: 148px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  position: absolute;
  bottom: -1px;
  left: 0;
  animation: scan 4.8s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(3.5rem, 12vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 0 32px rgba(98, 211, 148, 0.22);
}

.lede {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.6;
}

.note {
  max-width: 680px;
  margin-top: 18px;
  color: var(--gold);
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 32px 0;
}

article,
.manifesto,
.bio,
.split > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  transform: translateY(0);
  transition: border-color 180ms ease, transform 180ms ease;
}

article:hover,
.artifact:hover,
.split > div:hover {
  border-color: rgba(98, 211, 148, 0.5);
  transform: translateY(-3px);
}

h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}

.bio,
.manifesto {
  margin-top: 8px;
}

.bio {
  display: grid;
  gap: 12px;
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.artifact {
  display: grid;
  gap: 12px;
  min-height: 100%;
  background: rgba(10, 17, 28, 0.72);
}

.artifact-topline,
.artifact-links,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.artifact-topline {
  justify-content: space-between;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tags {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li,
.artifact-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 0.82rem;
}

.artifact-links {
  margin-top: auto;
}

.artifact-links a {
  color: var(--green);
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.8;
}

footer {
  padding-top: 28px;
}

footer p {
  font-size: 0.95rem;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.sky span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 18px rgba(231, 237, 248, 0.8);
  opacity: 0.72;
  animation: pulse-star 3s ease-in-out infinite;
}

.sky span:nth-child(1) { top: 12%; left: 12%; animation-delay: 0s; }
.sky span:nth-child(2) { top: 22%; right: 18%; animation-delay: 0.7s; }
.sky span:nth-child(3) { top: 46%; left: 7%; animation-delay: 1.1s; }
.sky span:nth-child(4) { top: 58%; right: 11%; animation-delay: 1.8s; }
.sky span:nth-child(5) { bottom: 18%; left: 30%; animation-delay: 2.2s; }
.sky span:nth-child(6) { bottom: 12%; right: 34%; animation-delay: 2.7s; }

@keyframes drift-grid {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 44px 44px, 44px 44px, 0 0; }
}

@keyframes scan {
  0%, 100% { transform: translateX(0); opacity: 0.35; }
  50% { transform: translateX(min(720px, 70vw)); opacity: 1; }
}

@keyframes pulse-star {
  0%, 100% { transform: scale(1); opacity: 0.42; }
  50% { transform: scale(1.9); opacity: 0.95; }
}

@media (max-width: 760px) {
  .page {
    padding-top: 36px;
  }

  .hero {
    min-height: 45vh;
  }

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

  .artifact-grid {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .hero::after {
    width: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
