@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #090909;
  --panel: #111;
  --panel-2: #161616;
  --text: #f5f3ef;
  --muted: #aaa59d;
  --line: #292929;
  --acid: #d8ff52;
  --cyan: #6ee7ff;
  --pink: #ff8fd8;
  --orange: #ffb35c;
  --mono: "DM Mono", monospace;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(9,9,9,.84);
  backdrop-filter: blur(16px);
}
.brand {
  text-decoration: none;
  font: 500 13px var(--mono);
  letter-spacing: .12em;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 20px var(--acid);
}
nav { display: flex; gap: 24px; }
nav a {
  text-decoration: none;
  color: var(--muted);
  font: 400 12px var(--mono);
}
nav a:hover { color: var(--text); }

.hero {
  min-height: 84vh;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 6vw;
  align-items: center;
  padding: 80px clamp(20px, 5vw, 80px);
  max-width: 1440px;
  margin: auto;
}
.eyebrow, .section-kicker {
  color: var(--acid);
  font: 500 12px var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero h1, h2, h3 { margin-top: 0; }
.hero h1 {
  margin: 20px 0 26px;
  font-size: clamp(64px, 9vw, 148px);
  line-height: .84;
  letter-spacing: -.075em;
}
.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(245,243,239,.7);
}
.lead {
  max-width: 720px;
  color: #d4d0ca;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
}
.hero-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

.button {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 18px;
  font: 600 13px var(--mono);
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--acid); color: #0a0a0a; border-color: var(--acid); }
.button.ghost { background: transparent; color: var(--text); }

.specimen-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #141414, #0d0d0d);
  border-radius: 26px;
  padding: 24px;
  min-height: 470px;
  position: relative;
  overflow: hidden;
}
.specimen-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font: 400 11px var(--mono);
}
.pulse-orb {
  width: 180px;
  height: 180px;
  margin: 55px auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216,255,82,.35);
  box-shadow: 0 0 70px rgba(216,255,82,.08);
  animation: breathe 4s ease-in-out infinite;
}
.orb-core {
  width: 75px;
  height: 75px;
  border-radius: 48% 52% 58% 42% / 52% 44% 56% 48%;
  background: var(--acid);
  filter: blur(1px);
  animation: mutate 8s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); box-shadow: 0 0 100px rgba(216,255,82,.12); } }
@keyframes mutate {
  0%,100% { border-radius: 48% 52% 58% 42% / 52% 44% 56% 48%; transform: rotate(0deg); }
  50% { border-radius: 60% 40% 46% 54% / 42% 59% 41% 58%; transform: rotate(160deg); }
}
.specimen-card dl { margin: 0; }
.specimen-card dl div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font: 400 12px var(--mono);
}
.specimen-card dt { color: var(--muted); }

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.ticker div {
  display: inline-flex;
  gap: 50px;
  padding: 14px 0;
  animation: marquee 24s linear infinite;
  font: 400 12px var(--mono);
  color: var(--muted);
}
.ticker span::before { content: "●"; color: var(--acid); margin-right: 16px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section {
  max-width: 1320px;
  margin: auto;
  padding: 110px clamp(20px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
}
.two-col {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 8vw;
  margin-top: 28px;
}
h2 {
  font-size: clamp(40px, 5.5vw, 82px);
  letter-spacing: -.055em;
  line-height: .98;
}
h2 span { color: var(--acid); }
.body-copy {
  font-size: 18px;
  line-height: 1.7;
  color: #d4d0ca;
}
.callout {
  margin-top: 30px;
  border-left: 2px solid var(--acid);
  padding: 18px 20px;
  background: var(--panel);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
}
.facts-grid, .lore-grid, .records-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 70px;
}
.fact, .lore-card, .record-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 20px;
  padding: 24px;
}
.fact h3, .lore-card h3, .record-card h3 {
  font-size: 21px;
  margin: 20px 0 12px;
}
.fact p, .lore-card p, .record-card p {
  color: var(--muted);
  line-height: 1.6;
}
.tag {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  font: 500 10px var(--mono);
  letter-spacing: .06em;
}
.fact-tag { background: rgba(216,255,82,.12); color: var(--acid); }
.unknown-tag { background: rgba(110,231,255,.11); color: var(--cyan); }
.lore-tag { background: rgba(255,143,216,.12); color: var(--pink); }

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
}
.legend { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font: 400 11px var(--mono); }
.legend-dot { width: 7px; height: 7px; display:inline-block; border-radius:50%; margin-right: 7px; }
.recorded { background: var(--acid); }
.context { background: var(--cyan); }
.community { background: var(--pink); }

.timeline { margin-top: 70px; }
.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 30px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.timeline-id { color: var(--muted); font: 400 12px var(--mono); }
.timeline-title { font-size: 23px; margin-bottom: 8px; }
.timeline-desc { color: var(--muted); line-height: 1.5; }
.timeline-date { font: 400 12px var(--mono); color: var(--muted); white-space: nowrap; }

.filter-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 36px; }
.filter {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  font: 400 11px var(--mono);
  cursor: pointer;
}
.filter.active { color: #0a0a0a; background: var(--acid); border-color: var(--acid); }
.lore-card { transition: transform .18s ease, border-color .18s ease; }
.lore-card:hover { transform: translateY(-4px); border-color: #444; }

.record-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.record-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font: 400 11px var(--mono);
}
.record-card a {
  margin-top: auto;
  color: var(--acid);
  font: 500 12px var(--mono);
  text-decoration: none;
}
.record-card a:hover { text-decoration: underline; }

.bridge { border-bottom: 0; }
.bridge-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(28px, 5vw, 60px);
  background: radial-gradient(circle at 20% 0%, rgba(216,255,82,.12), transparent 36%), var(--panel);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 6vw;
}
.bridge-card h2 { margin-top: 20px; }
.bridge-card p { color: #c9c4bd; line-height: 1.65; font-size: 17px; }
.bridge-side { align-self: end; }
.bridge-side .button { display: inline-flex; margin-top: 16px; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
}
.faq details p {
  color: var(--muted);
  max-width: 760px;
  line-height: 1.65;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 30px clamp(20px, 5vw, 80px);
  color: var(--muted);
  font: 400 11px var(--mono);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal.hidden { display: none; }
.modal-card {
  width: min(600px, 100%);
  border-radius: 24px;
  padding: 34px;
  background: #121212;
  border: 1px solid #333;
  position: relative;
}
.modal-card h3 { font-size: 30px; margin: 18px 0 12px; }
.modal-card p { color: var(--muted); line-height: 1.6; }
.modal-close {
  position: absolute;
  top: 15px;
  right: 17px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 30px;
  cursor: pointer;
}

@media (max-width: 900px) {
  nav { display: none; }
  .hero, .two-col, .bridge-card { grid-template-columns: 1fr; }
  .hero { padding-top: 55px; }
  .specimen-card { min-height: 430px; }
  .facts-grid, .lore-grid, .records-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 90px 1fr; }
  .timeline-date { grid-column: 2; }
  .section-heading { align-items: start; flex-direction: column; }
}
