:root{
  --bg: #070a12;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.55);
  --stroke: rgba(255,255,255,.10);
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 26px;
  --max: 1100px;
  --gap: 18px;
  --accent: #8ea2ff;
  --accent2: #9cf6e6;
  --focus: 0 0 0 3px rgba(142,162,255,.35);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

[data-theme="light"]{
  --bg: #f6f7fb;
  --panel: rgba(10,18,34,.05);
  --panel2: rgba(10,18,34,.07);
  --text: rgba(10,18,34,.92);
  --muted: rgba(10,18,34,.70);
  --muted2: rgba(10,18,34,.55);
  --stroke: rgba(10,18,34,.12);
  --shadow: 0 18px 45px rgba(10,18,34,.12);
  --accent: #3c50ff;
  --accent2: #00b2a0;
  --focus: 0 0 0 3px rgba(60,80,255,.22);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--sans);
  background: radial-gradient(1200px 700px at 20% 0%, rgba(142,162,255,.16), transparent 60%),
              radial-gradient(900px 520px at 85% 10%, rgba(156,246,230,.10), transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.container{
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

a{ color: inherit; text-decoration: none; }
a:hover{ opacity: .92; }
:focus-visible{ outline: none; box-shadow: var(--focus); border-radius: 10px; }

.skip{
  position:absolute; left:-9999px; top:12px;
  background: var(--panel2);
  padding: 10px 14px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
}
.skip:focus{ left: 14px; z-index: 9999; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0;
}

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.05));
  border-bottom: 1px solid var(--stroke);
}
[data-theme="light"] .topbar{
  background: linear-gradient(to bottom, rgba(246,247,251,.78), rgba(246,247,251,.50));
}

.topbar__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

.brand{
  display:flex; align-items:center; gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
}
.brand__dot{
  width: 12px; height: 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 4px rgba(142,162,255,.12);
}
.brand__text{ font-family: var(--mono); font-size: 14px; opacity: .9; }

.nav{ display:flex; align-items:center; gap: 10px; }
.nav__toggle{
  display:none;
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
}
.nav__toggleIcon{
  display:block;
  width: 18px; height: 2px;
  background: currentColor;
  position: relative;
}
.nav__toggleIcon::before,
.nav__toggleIcon::after{
  content:"";
  position:absolute; left:0;
  width:18px; height:2px; background: currentColor;
}
.nav__toggleIcon::before{ top:-6px; }
.nav__toggleIcon::after{ top:6px; }

.nav__menu{
  display:flex;
  gap: 10px;
  align-items:center;
}
.nav__link{
  font-size: 13px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
}
.nav__link:hover{
  border-color: var(--stroke);
  background: var(--panel);
  color: var(--text);
}

.topbar__actions{ display:flex; align-items:center; gap: 10px; }

.btn{
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 650;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.btn:hover{ transform: translateY(-1px); transition: .15s ease; }
.btn--ghost{
  background: transparent;
  box-shadow: none;
}
.icon{ font-family: var(--mono); }

/* Hero */
.hero{ position: relative; padding: 46px 0 22px; }
.hero__inner{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
  align-items: start;
}
.kicker{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted2);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.hero__title{
  font-size: clamp(34px, 4vw, 52px);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.hero__subtitle{
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 60ch;
}
.hero__cta{ display:flex; gap: 10px; margin: 16px 0 10px; flex-wrap: wrap; }
.meta{
  margin-top: 10px;
  display:flex; flex-wrap: wrap; gap: 10px; align-items:center;
  color: var(--muted2);
  font-size: 13px;
}
.meta__item{ color: var(--muted); border-bottom: 1px dashed transparent; }
.meta__item:hover{ border-bottom-color: var(--stroke); }
.meta__dot{ opacity: .6; }

.hero__card .card{ position: sticky; top: 86px; }

.hero__fade{
  position:absolute; inset:auto 0 0 0; height: 70px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events:none;
}

/* Sections */
.section{ padding: 26px 0; }
.section__head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section__head h2{
  margin:0;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.section__head p{ margin:0; color: var(--muted); max-width: 70ch; }

.grid{
  display:grid;
  gap: var(--gap);
}
.grid--2{ grid-template-columns: 1fr 1fr; }

.card{
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card__title{ margin: 0 0 10px; font-size: 15px; }
.card__actions{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.card__row{
  display:flex; justify-content: space-between; align-items: center; gap: 10px;
}
.muted{ color: var(--muted); }
.tag{
  display:inline-block;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--muted);
  border: 1px solid var(--stroke);
  padding: 3px 8px;
  border-radius: 999px;
  margin-right: 8px;
  background: rgba(255,255,255,.03);
}

.chips{ display:flex; gap: 8px; flex-wrap: wrap; }
.chip{
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  padding: 7px 10px;
  border-radius: 999px;
}

.pillRow{ display:flex; flex-wrap: wrap; gap: 10px; }
.pill{
  padding: 8px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(142,162,255,.14), rgba(156,246,230,.08));
  border: 1px solid var(--stroke);
  font-size: 13px;
  color: var(--text);
}

.badge{
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted);
  border: 1px solid var(--stroke);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  white-space: nowrap;
}

.list{ margin: 0; padding: 0; list-style: none; }
.list li{ padding: 8px 0; border-bottom: 1px solid var(--stroke); color: var(--muted); }
.list li:last-child{ border-bottom: none; padding-bottom: 0; }
.list--spaced li{ padding: 10px 0; }

.timeline{ display:flex; flex-direction: column; gap: 14px; }
.item__top h3{ margin: 0 0 6px; font-size: 16px; }
.item__meta{ color: var(--muted2); font-size: 13px; }
.bullets{ margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.bullets li{ margin: 6px 0; }

.pub__title{ font-weight: 750; margin-bottom: 4px; }
.pub__meta{ color: var(--muted2); font-size: 13px; margin-bottom: 8px; }

.contactRow{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* Footer */
.footer{
  padding: 26px 0 40px;
  border-top: 1px solid var(--stroke);
  margin-top: 12px;
}
.footer__inner{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.backTop{ color: var(--muted); padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; }
.backTop:hover{ border-color: var(--stroke); background: var(--panel); }

/* Responsive */
@media (max-width: 980px){
  .hero__inner{ grid-template-columns: 1fr; }
  .hero__card .card{ position: static; }
}
@media (max-width: 860px){
  .nav__toggle{ display:inline-flex; align-items:center; justify-content:center; }
  .nav__menu{
    position:absolute;
    right: 20px;
    top: 62px;
    display:none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    min-width: 220px;
    background: var(--panel2);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .nav__menu.is-open{ display:flex; }
  .nav__link{ width: 100%; }
  .grid--2{ grid-template-columns: 1fr; }
}

/* Print */
@media print{
  .topbar, .hero__fade, .backTop, .btn, .nav, .skip { display:none !important; }
  body{ background: #fff !important; color: #111 !important; }
  .card{ box-shadow: none !important; background: #fff !important; border-color: #ddd !important; }
  .muted, .list li, .bullets{ color: #333 !important; }
  a{ text-decoration: none !important; }
  .section{ padding: 10px 0 !important; }
}
/* Fade-in on scroll with stagger */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Dynamic blackhole canvas background */
#bhCanvas{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

/* Optional: a soft dark overlay so text stays super readable */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events:none;
  background: radial-gradient(900px 600px at 50% 30%, rgba(0,0,0,0.10), rgba(0,0,0,0.55) 65%, rgba(0,0,0,0.78));
}
