:root {
  --bg: #18191b;
  --text: #f4f4f6;
  --text-muted: #9a9ca4;
  --accent-violet: #b38cff;
  --accent-coral: #ff6f61;
  --accent-ascii-yellow: #ffe45c;

  --intro-max: 960px;
  --intro-pad-x: 28px;
  --mindmap-h: clamp(280px, 42vw, 420px);
}

/* ====================================
   GLOBAL RESET + BASE LAYOUT
   ==================================== */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Karla', sans-serif;
  background: var(--bg);          /* ⬅️ flat background everywhere */
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ====================================
   NAVBAR
   ==================================== */
/* ====================================
   NAVBAR
   ==================================== */
   .navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(3px);
  }
  
  /* layout */
  .navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 56px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;   /* allows wrapping on small screens */
  }
  
  /* links */
  .navbar a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.2s ease;
  }
  
  .navbar a.active,
  .navbar a:hover {
    color: var(--accent-violet);
  }
  
  /* ------------------------------------
     Responsive tweaks for mobile
     ------------------------------------ */
  @media (max-width: 700px) {
    .navbar {
      padding: 14px 0;
      background: rgba(0, 0, 0, 0.25);
      backdrop-filter: blur(6px);
    }
  
    .navbar ul {
      gap: 28px;               /* tighter spacing */
    }
  
    .navbar a {
      font-size: 0.9rem;       /* slightly smaller text */
      letter-spacing: 0.8px;
    }
  }
  
  @media (max-width: 480px) {
    .navbar ul {
      gap: 20px;
    }
    .navbar a {
      font-size: 0.85rem;
    }
  }
  
/* ====================================
   INTRO SECTION
   ==================================== */
.intro {
  display: grid;
  grid-template-columns: minmax(560px, 640px) minmax(600px, 1fr);
  gap: 96px;
  align-items: center;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 140px 40px 110px;
  position: relative;
}

.intro-text {
  text-align: left;
}

.intro-text .name,
.intro-text .tagline,
#research-title {
  max-width: 760px;
}

#mindmap-container {
  width: 100%;
  height: clamp(480px, 58vh, 620px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

#mindmap-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ====================================
   RESPONSIVE (intro)
   ==================================== */
@media (max-width: 980px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 110px 20px 80px;
  }

  #mindmap-container {
    order: 2;
    height: clamp(280px, 50vw, 380px);
  }

  .intro-text {
    order: 1;
    text-align: left;
  }
}

/* ====================================
   TYPOGRAPHY
   ==================================== */
.tagline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.06rem;
  line-height: 1.85;
  margin-bottom: 24px;
  max-width: 720px;
}

.highlight {
  background: linear-gradient(90deg, var(--accent-coral), var(--accent-violet));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

#research-title {
  margin-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: none;
  opacity: 0.85;
}

/* ====================================
   MINDMAP
   ==================================== */
#mindmap-container {
  width: 100%;
  height: var(--mindmap-h);
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

#mindmap-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ====================================
   FOOTER
   ==================================== */
/* --- Footer (shared style for all pages) --- */
footer {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  opacity: 0.6;
  color: var(--text-muted);
  margin-top: 40px;           /* smaller gap above */
  padding: 24px 0 40px;       /* balanced vertical spacing */
}

footer span {
  opacity: 0.6;
  font-size: 0.65rem;
}

@media (max-width: 700px) {
  footer {
    font-size: 0.8rem;
    margin-top: 28px;
    padding-bottom: 28px;
  }
}
/* ====================================
   HEADERS
   ==================================== */
.name,
#research-title {
  font-family: 'Karla', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

.name {
  font-size: 0.1rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.site-name {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(1rem, 1.65vw, 1.35rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.14em;
  color: var(--accent-ascii-yellow);
  text-transform: uppercase;
  position: relative;
  z-index: 0;
  width: fit-content;
}

.site-name::before {
  content: "";
  position: absolute;
  left: -0.28em;
  right: -0.28em;
  bottom: 0;
  height: 0.72em;
  background: rgba(255, 228, 92, 0.22);
  z-index: -1;
}
