:root {
  --bg-outer: #05080c;
  --bg-inner: #0f1720;
  --text-main: #e6edf3;
  --text-soft: #a6b0bb;
  --text-dim: #7b8692;
  --accent: #4fc3ff;
  --accent-glow: rgba(79, 195, 255, 0.45);
  --max-width: 900px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(circle at center, var(--bg-inner) 0%, var(--bg-outer) 100%);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

/* Splash */

body.splash-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  padding: 2rem;
  text-align: center;
}

h1 {
  font-size: 3.5rem;
  margin: 0;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.ai {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(79, 195, 255, 0.6);
}

.tagline {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-soft);
  letter-spacing: 0.08em;
}

.init-btn {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid rgba(79, 195, 255, 0.28);
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.init-btn:hover {
  color: var(--text-main);
  border-color: rgba(79, 195, 255, 0.55);
}

.init-btn.loading {
  cursor: default;
  border-color: rgba(79, 195, 255, 0.12);
}

/* Main Content */

.content-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

/* Text sections (no boxes) */

.content-section {
  margin-bottom: 2.2rem;
}

.content-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.content-section p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0 0 0.9rem;
}

.content-section p:last-child {
  margin-bottom: 0;
}

/* Make the first descriptive block feel more important */
.content-section:first-of-type p {
  font-size: 1.05rem;
  color: var(--text-main);
}

.section-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
}

/* Projects */

.projects-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(79, 195, 255, 0.15);
}

.projects-section h2 {
  margin: 0 0 2rem;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.project-category + .project-category {
  margin-top: 2.5rem;
}

.project-category h3 {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* Project Cards */

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(10, 14, 20, 0.7);
  border: 1px solid rgba(79, 195, 255, 0.12);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.project-card:hover,
.project-card:focus-visible,
.project-card.is-open {
  transform: translateY(-2px);
  border-color: rgba(79, 195, 255, 0.35);
  background: rgba(12, 18, 26, 0.9);
}

.project-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.project-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-main);
}

.project-codename {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Hover reveal */

.project-mission {
  margin: 0.7rem 0 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.project-card:hover .project-mission,
.project-card:focus-visible .project-mission,
.project-card.is-open .project-mission {
  max-height: 240px;
  opacity: 1;
}

.concept-card {
  opacity: 0.9;
  border-style: dashed;
}

/* Mobile */

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 3rem;
  }

  .content-shell {
    padding: 2rem 1rem 4rem;
  }

  .content-section h2,
  .projects-section h2 {
    font-size: 1.45rem;
  }

  .content-section p {
    font-size: 0.9rem;
  }

  .content-section:first-of-type p {
    font-size: 1rem;
  }

  .project-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .project-card:hover .project-mission {
    max-height: 0;
    opacity: 0;
  }

  .project-card.is-open .project-mission {
    max-height: 260px;
    opacity: 1;
  }
}