:root {
  --bg: #0a0c10;
  --bg-soft: #10131a;
  --bg-card: #12151d;
  --border: #232a36;
  --border-soft: #1a2029;
  --text: #e8ecf2;
  --text-dim: #9aa6b5;
  --text-mute: #66707f;
  --accent: #8ab4f8;
  --accent-soft: #1f2a3d;
  --good: #7fd8a8;
  --research: #d8b36a;
  --upcoming: #8a93a5;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Fira Code", ui-monospace, Menlo,
    Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(138, 180, 248, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 180, 248, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
}

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

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

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 4px; }

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
}
.site-nav a { color: var(--text-dim); }
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  padding: 6.5rem 2rem 4rem;
  max-width: 1080px;
  margin: 0 auto;
}
.hero-inner { max-width: 760px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 2rem;
}

.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #0a0c10;
}
.btn-primary:hover { background: #a6c6fb; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.hero-meta {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  max-width: 640px;
}
.hero-meta > div {
  background: var(--bg-soft);
  padding: 0.85rem 1.1rem;
}
.hero-meta dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.3rem;
}
.hero-meta dd { font-size: 0.92rem; color: var(--text); }

/* ---------- sections ---------- */
.section {
  padding: 4.5rem 2rem;
  max-width: 1080px;
  margin: 0 auto;
  border-top: 1px solid var(--border-soft);
}
.section-head { margin-bottom: 2.2rem; max-width: 700px; }
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.section-sub { color: var(--text-dim); margin-top: 0.5rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.grid.cards.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1.5rem 1.5rem 1.6rem;
}
.card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.6rem;
  font-weight: 650;
}
.card p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 1rem; }
.card .text-link { font-size: 0.88rem; }

/* ---------- feature card (Meridian) ---------- */
.feature-card {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}
.feature-main h3 { font-size: 1.6rem; font-weight: 650; margin-bottom: 0.7rem; }
.feature-main > p { color: var(--text-dim); max-width: 460px; }

.metric-row {
  display: flex;
  gap: 2rem;
  margin: 1.6rem 0;
}
.metric dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.metric dd { font-size: 1.6rem; font-weight: 650; font-family: var(--mono); color: var(--accent); }

.formats { font-size: 0.9rem; }
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  margin-right: 0.4rem;
}

.feature-links { display: flex; flex-direction: column; gap: 0.8rem; align-items: flex-start; }
.text-link { font-size: 0.9rem; }

/* ---------- research directions ---------- */
.dir-list { list-style: none; }
.dir-list li {
  display: grid;
  grid-template-columns: 110px 200px 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.dir-list li:first-child { border-top: 1px solid var(--border-soft); }
.dir-name { font-weight: 650; }
.dir-desc { color: var(--text-dim); font-size: 0.92rem; }

.status {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
}
.status-published { background: rgba(127, 216, 168, 0.12); color: var(--good); border: 1px solid rgba(127, 216, 168, 0.3); }
.status-research { background: rgba(216, 179, 106, 0.12); color: var(--research); border: 1px solid rgba(216, 179, 106, 0.3); }
.status-upcoming { background: rgba(138, 147, 165, 0.12); color: var(--upcoming); border: 1px solid rgba(138, 147, 165, 0.3); }

/* ---------- callout ---------- */
.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.callout h2 { font-size: 1.6rem; margin-bottom: 0.7rem; }
.callout p { color: var(--text-dim); margin-bottom: 1.6rem; }
.callout .cta-row { justify-content: center; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 3rem 2rem 2rem;
  background: var(--bg-soft);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-brand img { border-radius: 4px; }
.footer-title { font-weight: 700; letter-spacing: 0.1em; font-size: 0.95rem; }
.footer-tagline { color: var(--text-mute); font-size: 0.85rem; }

.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-nav a { color: var(--text-dim); font-size: 0.88rem; }

.footer-copy {
  max-width: 1080px;
  margin: 2rem auto 0;
  color: var(--text-mute);
  font-size: 0.8rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 1.5rem;
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .site-header { padding: 1rem 1.25rem; flex-direction: column; gap: 0.8rem; }
  .site-nav { gap: 1rem; }
  .hero { padding: 4rem 1.25rem 3rem; }
  .section { padding: 3.5rem 1.25rem; }
  .feature-card { grid-template-columns: 1fr; padding: 1.5rem; }
  .dir-list li { grid-template-columns: 1fr; gap: 0.3rem; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .site-nav { font-size: 0.78rem; flex-wrap: wrap; justify-content: center; }
  h1 { font-size: 2rem; }
  .hero-meta { grid-template-columns: 1fr; }
  .metric-row { flex-direction: column; gap: 1rem; }
  .cta-row .btn { width: 100%; text-align: center; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}