/* ============================================================
   LSP Consulting — Shared Stylesheet
   ============================================================ */

/* ── TOKENS ── */
:root {
  --ink:          #0f1117;
  --ink-soft:     #3a3d4a;
  --ink-muted:    #7a7d8a;
  --paper:        #f7f5f0;
  --paper-warm:   #edeae2;
  --accent:       #1a4f8a;
  --accent-light: #2d6db5;
  --accent-pale:  #e8f0fa;
  --gold:         #c9a84c;
  --gold-pale:    #faf5e8;
  --rule:         rgba(15,17,23,0.12);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 4rem;
  background: rgba(247,245,240,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-logo {
  font-size: 1.3rem; color: var(--ink);
  text-decoration: none; letter-spacing: 0.01em;
  font-weight: 500;
  display: flex; align-items: center; gap: 0.6rem;
}
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.875rem; font-weight: 400; color: var(--ink-soft);
  text-decoration: none; letter-spacing: 0.03em; transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; background: var(--accent); color: white;
  text-decoration: none; font-size: 0.9rem; font-weight: 500;
  padding: 0.875rem 2rem; border-radius: 2px; letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }

/* ── SHARED SECTION PRIMITIVES ── */
section { padding: 6rem 4rem; }

.section-label {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 500;
  color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem;
}
.section-label::before {
  content: ''; display: block; width: 1.5rem; height: 1px; background: var(--accent);
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  line-height: 1.15; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 1rem;
}

/* ── PROBLEM / GAP SECTION ── */
.problem { background: var(--ink); color: white; padding: 6rem 4rem 4rem; }
.problem .section-label { color: var(--gold); }
.problem .section-label::before { background: var(--gold); }
.problem .section-title { color: white; max-width: 28ch; margin-bottom: 1.5rem; }
.gap-primer {
  font-size: 1rem; color: rgba(255,255,255,0.78);
  line-height: 1.85; max-width: 62ch; font-weight: 300;
}
.gap-primer strong { color: white; font-weight: 500; }
.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 2px; margin-top: 3rem; background: rgba(255,255,255,0.06);
}
.problem-card { background: var(--ink); padding: 2.5rem; }
.card-accent { width: 2rem; height: 2px; background: var(--gold); margin-bottom: 1.25rem; }
.problem-card h3 {
  font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: white;
  margin-bottom: 0.75rem; font-weight: 400; line-height: 1.3;
}
.problem-card p { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.75; }

/* ── LSP-MD INTRO (parallel to .problem) ── */
.lsp-intro {
  background: var(--ink); color: white;
  padding: 4rem 4rem 5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.lsp-intro .section-label { color: var(--gold); }
.lsp-intro .section-label::before { background: var(--gold); }
.lsp-intro .section-title { color: white; max-width: 28ch; margin-bottom: 1.5rem; }
.lsp-primer {
  font-size: 1rem; color: rgba(255,255,255,0.78);
  line-height: 1.85; max-width: 62ch; font-weight: 300;
}

/* ── CE term highlight (gold on dark sections only) ── */
.ce-term { color: var(--gold); font-weight: 400; }

/* ── CONCEPT STRIP — overview / table of contents ── */
.concept-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--ink); border-top: 3px solid var(--gold);
}
.concept-card {
  padding: 2.25rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: background 0.2s;
  text-decoration: none;
  display: block;
}
.concept-card:last-child { border-right: none; }
.concept-card:hover { background: rgba(255,255,255,0.06); }
.concept-label {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 500;
  color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 1rem; display: block;
}
.concept-term {
  font-family: 'DM Serif Display', serif; font-size: 1.1rem;
  color: white; margin-bottom: 0.65rem; font-weight: 400; line-height: 1.3;
}
.concept-def {
  font-size: 0.8rem; color: rgba(255,255,255,0.55);
  line-height: 1.7; font-weight: 300;
}

/* ── SCIENCE SECTIONS (long-form expanded content) ── */
.science-section {
  background: var(--paper);
  padding: 5rem 4rem 4.5rem;
  border-top: 1px solid var(--rule);
}
.science-section--alt { background: white; }

.science-inner { max-width: 72ch; margin: 0 auto; }

.science-header { margin-bottom: 2.75rem; }
.science-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; font-weight: 500;
  color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 1.25rem; display: inline-block;
  padding-bottom: 0.4rem; border-bottom: 2px solid var(--gold);
}
.science-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.1; letter-spacing: -0.025em;
  color: var(--ink); margin-bottom: 1.5rem; font-weight: 400;
}
.science-lede {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem; line-height: 1.5;
  color: var(--ink-soft); font-style: italic; font-weight: 400;
  max-width: 60ch;
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
}

.science-body p {
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  max-width: 68ch;
}
.science-body p:last-child { margin-bottom: 0; }
.science-body strong { color: var(--ink); font-weight: 500; }
.science-body em { font-style: italic; }

.science-figure {
  margin: 2.5rem 0;
  text-align: center;
}
.science-figure img {
  max-width: 100%; height: auto; display: block; margin: 0 auto;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: white;
}

.back-to-overview {
  display: inline-block;
  margin-top: 3rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; font-weight: 500;
  color: var(--ink-muted); text-decoration: none;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule);
  width: 100%;
  transition: color 0.2s;
}
.back-to-overview:hover { color: var(--accent); }

/* ── ABOUT ── */
.about { background: var(--paper-warm); border-top: 1px solid var(--rule); padding: 5rem 4rem; }
.about-inner { display: grid; grid-template-columns: 280px 1fr; gap: 4rem; align-items: start; }
.about-image-wrap {
  position: sticky; top: 6rem; overflow: hidden;
  border-radius: 3px; width: 280px; height: 350px;
}
.about-image { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.about-content { display: flex; flex-direction: column; }
.about-name {
  font-family: 'DM Serif Display', serif; font-size: 2.25rem; color: var(--ink);
  letter-spacing: -0.02em; margin-bottom: 0.25rem; line-height: 1.1;
}
.about-title-line {
  font-size: 0.875rem; color: var(--accent); font-weight: 500;
  margin-bottom: 2rem; letter-spacing: 0.02em;
}
.about-bio {
  font-size: 0.95rem; color: var(--ink-soft); line-height: 1.85;
  margin-bottom: 1.25rem; max-width: 58ch;
}
.credential-list {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.5rem; margin-bottom: 1.5rem;
}
.credential {
  background: white; border: 1px solid var(--rule); border-radius: 2px;
  font-size: 0.78rem; color: var(--ink-soft); padding: 0.35rem 0.8rem;
}
.about-closer {
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem; color: var(--ink-soft); line-height: 1.85;
  margin-bottom: 1.5rem; max-width: 58ch;
}

/* ── FOOTER ── */
footer {
  background: var(--ink); color: rgba(255,255,255,0.4);
  padding: 2.5rem 4rem; display: flex;
  justify-content: space-between; align-items: center; font-size: 0.8rem;
}
.footer-logo {
  font-weight: 500; color: rgba(255,255,255,0.7); font-size: 1rem;
  text-decoration: none; display: flex; align-items: center; gap: 0.5rem;
}
.footer-logo img { height: 20px; width: auto; filter: invert(1); opacity: 0.7; }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-copy { color: rgba(255,255,255,0.3); font-size: 0.75rem; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .concept-strip { grid-template-columns: 1fr 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  section { padding: 4rem 1.5rem; }
  .science-section { padding: 3rem 1.5rem; }
  .science-inner { max-width: 100%; }
  .about { padding: 3rem 1.5rem; }
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-image-wrap { position: static; max-width: 240px; height: auto; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}
