:root {
  --bg: #050505;
  --panel: rgba(255,255,255,.022);
  --panel-b: rgba(255,255,255,.007);
  --line: rgba(255,255,255,.09);
  --line-2: rgba(255,255,255,.15);
  --text: #f5f5f3;
  --muted: #b0b0aa;
  --muted-2: #666660;
  --max: 1380px;
  --nav-h: 72px;
  --r: 28px;
  --t: 0.22s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  user-select: none;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ── SHELL ── */
.site-shell { position: relative; min-height: 100vh; overflow: hidden; }

/* Subtle top glow ONLY — no grid lines */
.glow-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 65% 30% at 50% -4%, rgba(255,255,255,.065), transparent),
    linear-gradient(to bottom, rgba(255,255,255,.018), transparent 22%);
}

/* Mouse-following halo */
.halo {
  position: fixed; z-index: 0; pointer-events: none;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,255,255,.055) 0%,
    rgba(255,255,255,.022) 30%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  left: 50%; top: 30%;
  transition: left .9s cubic-bezier(.25,1,.5,1), top .9s cubic-bezier(.25,1,.5,1);
  mix-blend-mode: screen;
}

/* Plexus canvas — stays z:0 */
.plexus-layer {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .28;
}

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

/* ── CONTAINER ── */
.container { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }

/* ════════════════════════════════════════════
   TOPBAR  — your original design
════════════════════════════════════════════ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 48px;
  background: rgba(5,5,5,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-wordmark { font-size: .94rem; font-weight: 700; letter-spacing: .015em; }

/* nav list */
.topbar-nav {
  display: flex; align-items: center; gap: 0;
  list-style: none; margin-left: auto;
}
.nav-item { position: relative; }

.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  height: var(--nav-h); padding: 0 17px;
  font: inherit; font-size: .89rem; font-weight: 500;
  color: var(--muted);
  background: transparent; border: none; cursor: pointer;
  white-space: nowrap;
  transition: color var(--t);
}
.nav-link:hover, .nav-link.active,
.nav-trigger:hover, .nav-trigger.active { color: var(--text); }

.chevron {
  display: inline-block; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform var(--t); flex-shrink: 0;
}
.nav-item:hover .chevron, .nav-item.open .chevron {
  transform: rotate(-135deg) translateY(2px);
}

/* dropdown */
.nav-dropdown {
  position: absolute; top: calc(var(--nav-h) - 1px); left: 0;
  min-width: 252px; list-style: none;
  background: rgba(5,5,5,.97);
  border: 1px solid var(--line); border-top: none;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity var(--t), transform var(--t);
}
.nav-item:hover > .nav-dropdown, .nav-item.open > .nav-dropdown {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.nav-dropdown li a {
  display: block; padding: 12px 18px;
  font-size: .87rem; color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: color var(--t), background var(--t);
}
.nav-dropdown li:last-child a { border-bottom: none; }
.nav-dropdown li a span {
  display: block; color: var(--muted-2);
  font-size: .75rem; margin-top: 2px; line-height: 1.3;
}
.nav-dropdown li a:hover { color: var(--text); background: rgba(255,255,255,.04); }

/* right actions */
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 14px; }

.locations-pill {
  display: inline-flex; align-items: center; height: 34px; padding: 0 13px;
  border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); font-size: .79rem; white-space: nowrap;
}

.btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--text);
  font: inherit; font-size: .87rem; font-weight: 600; cursor: pointer;
  transition: background var(--t), border-color var(--t);
}
.btn-cta:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.24); }

/* mobile toggle */
.mobile-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; margin-left: auto;
  flex-shrink: 0;
}
.mobile-toggle span {
  display: block; width: 17px; height: 1.5px; margin: 0 auto;
  background: var(--text); border-radius: 2px;
  transition: all var(--t);
}
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px,4.5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px,-4.5px); }

/* ════════════════════════════════════════════
   SLIDE MAIN — business-card layout
════════════════════════════════════════════ */
.slide-main {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
  padding: 24px 0 28px;
}

.slide-frame {
  width: 100%;
  min-height: min(720px, calc(100vh - var(--nav-h) - 52px));
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(150deg, var(--panel), var(--panel-b));
  box-shadow: 0 20px 68px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.04);
  padding: 52px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
  align-items: center;
}

/* eyebrow tag */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  height: 27px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted-2); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 5px; height: 5px;
  border-radius: 50%; background: rgba(255,255,255,.4); flex-shrink: 0;
}

h1 {
  margin: 14px 0 0;
  font-size: clamp(2.9rem, 5.4vw, 5.2rem);
  line-height: .93; letter-spacing: -.05em; font-weight: 700;
}
.lead {
  max-width: 660px; margin: 18px 0 0;
  font-size: clamp(1.02rem, 1.28vw, 1.32rem);
  line-height: 1.5; color: var(--muted);
}
.mini-line { margin-top: 12px; color: var(--muted-2); font-size: .87rem; line-height: 1.5; }
.cta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

.page-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.page-links a {
  display: inline-flex; align-items: center; height: 34px; padding: 0 13px;
  border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); font-size: .84rem;
  transition: background var(--t), color var(--t);
}
.page-links a:hover { background: rgba(255,255,255,.05); color: var(--text); }

/* buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 22px; border-radius: 14px;
  border: 1px solid var(--line-2); background: #fff; color: #050505;
  font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer;
  transition: transform var(--t), opacity var(--t);
}
.button:hover { transform: translateY(-1px); opacity: .9; }
.button.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.button.ghost:hover { background: rgba(255,255,255,.05); }

.brand-logo-img {
  height: 36px; width: auto;
  display: block; flex-shrink: 0;
}
.brand-mark { display: none; }

/* ── Home: logo side ── */
.logo-side { display: grid; gap: 13px; align-content: center; }
.logo-stage {
  min-height: 360px; border-radius: 20px;
  border: 1px solid var(--line); background: rgba(255,255,255,.014);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 0;
}
#lottie { width: 150%; margin-left: -5%; }

.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.stat-card {
  border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255,255,255,.018); padding: 14px 14px 12px;
}
.stat-value { font-size: 1.8rem; font-weight: 800; letter-spacing: -.04em; }
.stat-label { margin-top: 4px; color: var(--muted); font-size: .8rem; line-height: 1.4; }

/* ── Shared cards ── */
.info-card, .story-card, .article-card, .location-card, .contact-card {
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(255,255,255,.02);
  transition: border-color var(--t), background var(--t);
}
.info-card:hover, .story-card:hover, .article-card:hover, .location-card:hover {
  border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.03);
}
.info-card h3, .story-card h3, .article-card h3, .location-card h3, .contact-card h3 {
  font-size: 1.15rem; font-weight: 700; letter-spacing: -.03em;
}
.info-card p, .story-card p, .article-card p, .location-card p, .contact-card p {
  margin: 8px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.55;
}

.info-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.info-card { padding: 22px; min-height: 152px; }
.info-card .sub { margin-top: 10px; color: var(--muted-2); font-size: .84rem; }

.story-side { display: grid; gap: 10px; }
.story-card { padding: 22px; }
.story-card .small { margin-top: 8px; color: var(--muted-2); font-size: .84rem; }

.article-list { display: grid; gap: 10px; }
.article-card { padding: 20px; }
.article-card .tag {
  display: inline-block; padding: 3px 9px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted-2); font-size: .69rem; letter-spacing: .07em; text-transform: uppercase;
}
.article-card h3 { margin-top: 10px; }

.location-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.location-card { padding: 22px; min-height: 140px; }
.location-card .meta { margin-top: 8px; color: var(--muted-2); font-size: .84rem; }

.contact-grid { display: grid; grid-template-columns: 1fr .95fr; gap: 10px; }
.contact-card { padding: 24px; min-height: 210px; }
.contact-card .contact-link {
  display: block; margin-top: 6px;
  color: var(--muted); font-weight: 400; font-size: .93rem;
  transition: color var(--t);
}
.contact-card .contact-link:hover { color: var(--text); }
.contact-card .contact-link--book {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text); font-weight: 700;
}
.contact-card .contact-link--book:hover { opacity: .7; }
.contact-card p { margin-bottom: 10px; }
.inline-points { display: grid; gap: 8px; margin-top: 14px; }
.inline-points div { display: flex; gap: 9px; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.inline-points div::before { content: "·"; color: rgba(255,255,255,.28); flex-shrink: 0; }

.story-card .labs-link {
  display: inline-block; margin-top: 12px;
  font-size: .88rem; font-weight: 600; color: var(--text);
  transition: opacity var(--t);
}
.story-card .labs-link:hover { opacity: .6; }

/* Muted/disabled card (Fund I) */
.story-card--muted {
  opacity: .45; pointer-events: none; user-select: none;
}
.story-card--muted h3 { color: var(--muted); }

.mini-muted { color: var(--muted-2); }

.founder-card { padding: 18px 20px 0 20px; overflow: hidden; }
.founder-inner { display: flex; gap: 18px; align-items: flex-end; }
.founder-portrait {
  width: 88px; height: auto; flex-shrink: 0;
  opacity: .9;
  filter: contrast(1.05);
  display: block;
}
.founder-link {
  display: inline-block; margin-top: 10px;
  font-size: .86rem; font-weight: 600; color: var(--muted);
  transition: color var(--t);
}
.founder-link:hover { color: var(--text); }

.team-img {
  width: 100%; height: auto;
  margin: 12px 0 10px;
  opacity: .85;
}

.book-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 0 18px;
  height: 38px;
  border-radius: 12px;
  background: #ffffff !important;
  color: #050505 !important;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}
.book-btn:hover { opacity: .85; }

.contact-right { display: flex; flex-direction: column; gap: 10px; }

.company-card {
  padding: 20px 24px;
  min-height: auto !important;
}
.company-details {
  display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 8px;
}
.company-details span { color: var(--muted); font-size: .88rem; }

/* Allow text selection on contact page */
body.contact-page { user-select: text; -webkit-user-select: text; }

/* ── About page ── */
.about-stats {
  display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap;
}
.about-stat-value {
  font-size: 2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1;
}
.about-stat-label {
  margin-top: 4px; color: var(--muted); font-size: .8rem; line-height: 1.4;
}

.location-mini-row {
  display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px;
}
.loc-tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px;
  border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted-2); font-size: .76rem; letter-spacing: .03em;
}
.loc-tag--active {
  border-color: rgba(255,255,255,.22); color: var(--text);
}
.loc-tag--planned {
  border-style: dashed; opacity: .65;
}

/* ── RESPONSIVE ── */
@media (max-width: 1260px) {
  .locations-pill { display: none; }
  .topbar { padding: 0 32px; }
  .slide-frame { padding: 40px; }
}

@media (max-width: 1060px) {
  .topbar { padding: 0 20px; }
  .topbar-nav {
    display: none;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; margin-left: 0;
    background: rgba(4,4,4,.98);
    border-top: 1px solid var(--line);
    padding: 12px 20px 24px;
    height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  body.menu-open .topbar-nav { display: flex; }
  .nav-link, .nav-trigger {
    height: auto; padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
    width: 100%; justify-content: flex-start;
  }
  .nav-dropdown {
    position: static; transform: none; opacity: 0;
    border: none; backdrop-filter: none;
    background: rgba(255,255,255,.03); border-radius: 10px;
    display: none; margin: 4px 0 8px;
  }
  .nav-item.open > .nav-dropdown { display: block; opacity: 1; }
  .nav-actions { display: none; }
  .mobile-toggle { display: inline-flex; }

  .slide-main { padding: 14px 0 18px; align-items: flex-start; }
  .slide-frame {
    grid-template-columns: 1fr; min-height: auto;
    padding: 28px; border-radius: 20px;
  }
  .slide-frame .logo-side { order: -1; }
  .info-grid, .stat-row, .contact-grid, .location-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { width: calc(100% - 24px); }
  :root { --nav-h: 64px; --r: 18px; }
  .slide-frame { padding: 20px; }
  h1 { font-size: clamp(2.3rem, 10vw, 3.4rem); }
  .lead { font-size: .96rem; }
  .cta-row { flex-direction: column; align-items: flex-start; }
  .button { width: 100%; justify-content: center; }
  .logo-stage { min-height: 190px; }
}
