/* LPD — Living Pitch Deck shell */
:root {
  --lpd-bg: #05080f;
  --lpd-panel: rgba(15, 23, 42, 0.72);
  --lpd-border: rgba(148, 163, 184, 0.18);
  --lpd-text: #e2e8f0;
  --lpd-muted: #94a3b8;
  --lpd-accent: #34d399;
  --lpd-accent-2: #38bdf8;
  --lpd-warn: #fbbf24;
  --lpd-danger: #f87171;
  --lpd-font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

html.lpd-root {
  scroll-behavior: auto;
}

.lpd-body {
  margin: 0;
  font-family: var(--lpd-font);
  color: var(--lpd-text);
  background: var(--lpd-bg);
  overflow-x: hidden;
}

#lpd-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.lpd-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 60;
  background: linear-gradient(90deg, var(--lpd-accent), var(--lpd-accent-2));
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
  transition: width 0.08s linear;
}

.lpd-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5, 8, 15, 0.65);
  border-bottom: 1px solid var(--lpd-border);
}

.lpd-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.lpd-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
}

.lpd-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #059669, #0ea5e9);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.lpd-brand strong {
  display: block;
  font-size: 0.95rem;
}

.lpd-brand span {
  display: block;
  font-size: 0.7rem;
  color: var(--lpd-muted);
}

.lpd-nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.lpd-btn {
  border: 1px solid var(--lpd-border);
  background: rgba(30, 41, 59, 0.8);
  color: var(--lpd-text);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.lpd-btn:hover {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(15, 23, 42, 0.95);
}

.lpd-btn-primary {
  background: linear-gradient(135deg, #059669, #0d9488);
  border-color: transparent;
  color: #fff;
}

.lpd-btn-primary:hover {
  transform: translateY(-1px);
}

.lpd-main {
  position: relative;
  z-index: 2;
  padding-top: 4.5rem;
}

.lpd-chapter {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 1rem 5rem;
  position: relative;
  opacity: 0.35;
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.lpd-chapter.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lpd-chapter-inner {
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.lpd-chapter-wide .lpd-chapter-inner {
  max-width: 1040px;
}

.lpd-eyebrow {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lpd-accent);
  margin: 0 0 0.75rem;
}

.lpd-chapter h1,
.lpd-chapter h2 {
  margin: 0 0 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 750;
}

.lpd-chapter h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.lpd-chapter h2 {
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
}

.lpd-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--lpd-muted);
  max-width: 48rem;
  margin: 0 0 1.5rem;
}

.lpd-grid {
  display: grid;
  gap: 0.85rem;
}

.lpd-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.lpd-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.lpd-card {
  background: var(--lpd-panel);
  border: 1px solid var(--lpd-border);
  border-radius: 1.15rem;
  padding: 1.1rem 1.15rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform: translateZ(0);
}

.lpd-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.lpd-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--lpd-muted);
  line-height: 1.5;
}

.lpd-metric {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.lpd-metric span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lpd-muted);
  margin-top: 0.25rem;
  letter-spacing: 0;
}

.lpd-trap {
  border-color: rgba(248, 113, 113, 0.35);
}

.lpd-good {
  border-color: rgba(52, 211, 153, 0.4);
}

.lpd-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--lpd-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.lpd-list li {
  margin-bottom: 0.4rem;
}

.lpd-commentary {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  width: min(280px, calc(100vw - 2rem));
  z-index: 40;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid var(--lpd-border);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--lpd-muted);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.lpd-commentary strong {
  display: block;
  color: var(--lpd-warn);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.lpd-rail {
  position: fixed;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.lpd-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.lpd-dot.is-active {
  background: var(--lpd-accent);
  border-color: var(--lpd-accent);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
  height: 22px;
}

.lpd-footer-nav {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--lpd-border);
  border-radius: 999px;
  padding: 0.4rem 0.5rem;
  backdrop-filter: blur(12px);
}

.lpd-footer-nav button {
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.lpd-footer-nav button:hover {
  background: rgba(52, 211, 153, 0.2);
}

.lpd-footer-nav .lpd-chapter-label {
  font-size: 0.72rem;
  color: var(--lpd-muted);
  min-width: 7rem;
  text-align: center;
}

.lpd-scroll-hint {
  position: fixed;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
  color: var(--lpd-muted);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  animation: lpd-bounce 1.6s ease-in-out infinite;
  pointer-events: none;
}

.lpd-scroll-hint.is-hidden {
  opacity: 0;
  transition: opacity 0.4s;
}

@keyframes lpd-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

.lpd-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.15);
  color: var(--lpd-accent);
  border: 1px solid rgba(52, 211, 153, 0.35);
  margin-bottom: 0.75rem;
}

.lpd-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.lpd-fine {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 1rem;
  line-height: 1.45;
}

@media (max-width: 800px) {
  .lpd-commentary {
    display: none;
  }
  .lpd-rail {
    left: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lpd-chapter {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .lpd-scroll-hint {
    animation: none;
  }
}

/* Shared portfolio thesis: three-pronged solution */
.lpd-three-intro {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lpd-accent);
  margin: 0 0 0.75rem;
}

.lpd-prongs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.15rem 0;
}

@media (max-width: 800px) {
  .lpd-prongs {
    grid-template-columns: 1fr;
  }
}

.lpd-prong {
  border-radius: 1.15rem;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--lpd-border);
  background: var(--lpd-panel);
  backdrop-filter: blur(10px);
  position: relative;
}

.lpd-prong.is-focus {
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.25), 0 16px 40px rgba(0, 0, 0, 0.25);
}

.lpd-prong-num {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lpd-muted);
  margin-bottom: 0.35rem;
}

.lpd-prong h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: #fff;
}

.lpd-prong p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--lpd-muted);
  line-height: 1.45;
}

.lpd-prong-crisis {
  margin-top: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fca5a5;
}

.lpd-prong-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--lpd-accent);
  text-decoration: none;
}

.lpd-prong-link:hover {
  text-decoration: underline;
}

.lpd-secondary-note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px dashed var(--lpd-border);
  font-size: 0.8rem;
  color: var(--lpd-muted);
  line-height: 1.45;
}

.lpd-simult-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  margin-bottom: 1rem;
}

@media print {
  #lpd-canvas,
  .lpd-nav,
  .lpd-rail,
  .lpd-footer-nav,
  .lpd-commentary,
  .lpd-progress,
  .lpd-scroll-hint {
    display: none !important;
  }
  .lpd-body {
    background: #fff;
    color: #0f172a;
  }
  .lpd-chapter {
    min-height: auto;
    opacity: 1;
    transform: none;
    page-break-after: always;
    padding: 1rem;
  }
  .lpd-card {
    background: #f8fafc;
    color: #0f172a;
    box-shadow: none;
  }
  .lpd-lead,
  .lpd-card p,
  .lpd-list {
    color: #334155;
  }
}
