/* ==========================================================
   The Brand Dealer — Plot x People × Erik Bankston
   Premium dark UI · orange glow · corporate sharp
   ========================================================== */

:root {
  --bg: #0a0908;
  --bg-2: #110f0d;
  --bg-elev: #181513;
  --bg-hover: #221d19;
  --border: #2a2520;
  --border-strong: #3a3530;

  --text: #f5f2ec;
  --text-strong: #ffffff;
  --text-muted: #8a8680;
  --text-dim: #55504a;

  --accent: #ff6d29;
  --accent-hi: #ff8a4c;
  --accent-dim: rgba(255, 109, 41, 0.12);
  --accent-dim-2: rgba(255, 109, 41, 0.22);
  --accent-glow: rgba(255, 109, 41, 0.35);

  --warm: #453027;
  --cream: #e8e2d5;
  --line: #bababa;

  --success: #7fd491;
  --warning: #f2b94e;
  --danger: #ef6a6a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
  background: var(--bg);
}
body {
  font-family: "General Sans", "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ambient background glow */
.backdrop-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      700px circle at 85% 0%,
      rgba(255, 109, 41, 0.08),
      transparent 60%
    ),
    radial-gradient(
      600px circle at 15% 100%,
      rgba(255, 109, 41, 0.06),
      transparent 55%
    );
}

.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
  background: rgba(17, 15, 13, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  padding: 28px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 6px 8px;
  margin-bottom: 4px;
  position: relative;
}
.brand-logo-wrap {
  position: relative;
  width: 46px;
  height: 72px;
  color: var(--text-strong);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}
.brand-logo-wrap:hover {
  transform: translateY(-2px);
}
.brand-logo-glow {
  position: absolute;
  inset: -6px;
  background: radial-gradient(circle, rgba(255, 109, 41, 0.35), transparent 65%);
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.8;
  z-index: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.brand-logo-wrap:hover .brand-logo-glow {
  opacity: 1;
}
.logo-erik {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  object-fit: contain;
  /* image has black background; screen blend makes black transparent → only white logo shows */
  mix-blend-mode: screen;
  display: block;
}
.brand-text {
  min-width: 0;
  flex: 1;
}
.brand-title {
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-strong);
  line-height: 1.1;
}
.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.01em;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
}

/* ---- PLOT × PEOPLE wordmark ---- */
.logo-plot {
  height: 24px;
  width: auto;
  transition: transform 0.25s, opacity 0.25s;
  object-fit: contain;
  display: block;
}
.logo-plot:hover {
  transform: scale(1.04);
}
.logo-plot-sm {
  height: 18px;
  opacity: 0.8;
}
.logo-plot-sm:hover {
  opacity: 1;
}
.topbar-plot {
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-right: 1px solid var(--border);
  padding-right: 14px;
  margin-right: 4px;
  height: 22px;
}
@media (max-width: 760px) {
  .topbar-plot { display: none; }
}

.nav-label {
  display: none;
}

.sidebar-close {
  display: none;
  position: absolute;
  top: 22px;
  right: 18px;
  background: transparent;
  border: 0;
  padding: 6px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
}
.sidebar-close:hover {
  background: var(--bg-hover);
  color: var(--text-strong);
}

.sidebar-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.25s;
}
.sidebar-scrim.visible {
  display: block;
  opacity: 1;
}

.menu-toggle {
  display: none;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.18s;
}
.menu-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.nav-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-group-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  padding: 8px 12px 4px;
  margin-top: 4px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}
.nav-link i[data-lucide] {
  width: 17px;
  height: 17px;
  stroke-width: 1.75;
  color: var(--text-dim);
  transition: color 0.18s;
}
.nav-link:hover {
  background: var(--bg-hover);
  color: var(--text);
}
.nav-link:hover i[data-lucide] {
  color: var(--text-muted);
}
.nav-link.active {
  background: linear-gradient(
    90deg,
    var(--accent-dim) 0%,
    transparent 100%
  );
  color: var(--text-strong);
  font-weight: 600;
}
.nav-link.active i[data-lucide] {
  color: var(--accent);
}
.nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 2px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* status card */
.status-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.status-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    300px circle at 100% 0%,
    var(--accent-dim),
    transparent 60%
  );
  pointer-events: none;
}
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  position: relative;
}
.status-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.status-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
  font-family: "Satoshi", "General Sans", sans-serif;
}
.progress-wrap {
  margin-top: 4px;
  position: relative;
}
.progress-bar {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  border-radius: 999px;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.countdown {
  font-size: 11px;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  text-align: center;
  padding-top: 8px;
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* ==================== MAIN ==================== */
.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 9, 8, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 16px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.phase-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  color: var(--text-strong);
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.phase-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.85); }
}
.topbar-date {
  font-size: 13px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.01em;
}

#reload-btn {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#reload-btn i[data-lucide] {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}
#reload-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-strong);
}
#reload-btn:active {
  transform: scale(0.97);
}

.content {
  padding: 48px 64px 80px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== CONTENT RENDER ==================== */
.content h1 {
  font-family: "General Sans", sans-serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--text-strong);
}
.content h2 {
  font-family: "General Sans", sans-serif;
  font-size: 26px;
  font-weight: 600;
  margin-top: 56px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-strong);
}
.content h3 {
  font-family: "General Sans", sans-serif;
  font-size: 19px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  letter-spacing: -0.012em;
  color: var(--accent-hi);
}
.content h4 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 22px;
  margin-bottom: 8px;
  color: var(--text-strong);
  letter-spacing: -0.005em;
}
.content p {
  margin-bottom: 14px;
  color: var(--text);
}
.content ul,
.content ol {
  margin-left: 22px;
  margin-bottom: 18px;
}
.content li {
  margin-bottom: 6px;
}
.content li::marker {
  color: var(--accent);
}

/* blockquote (used as intro/lead) */
.content blockquote {
  border-left: 2px solid var(--accent);
  padding: 16px 22px;
  margin: 24px 0;
  background: linear-gradient(
    90deg,
    var(--accent-dim) 0%,
    transparent 85%
  );
  border-radius: 0 10px 10px 0;
  color: var(--text);
  font-family: "General Sans", sans-serif;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.008em;
}
.content blockquote p {
  margin-bottom: 8px;
}
.content blockquote p:last-child {
  margin-bottom: 0;
}
.content blockquote strong {
  color: var(--text-strong);
}

/* callout */
.callout {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  padding: 18px 22px;
  border-radius: 12px;
  margin: 24px 0;
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at 100% 0,
    var(--accent-dim),
    transparent 50%
  );
  pointer-events: none;
}
.callout-title {
  font-weight: 600;
  color: var(--accent-hi);
  font-size: 14px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
}
.callout > *:not(.callout-title) {
  position: relative;
}
.callout p:last-child {
  margin-bottom: 0;
}

/* code */
.content code {
  background: var(--bg-elev);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--accent-hi);
  border: 1px solid var(--border);
}
.content pre {
  background: var(--bg-2);
  padding: 20px 22px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--border);
  position: relative;
}
.content pre::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-dim-2),
    transparent
  );
}
.content pre code {
  padding: 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.7;
}

/* tables */
.content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 22px 0;
  font-size: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.content th,
.content td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.content th {
  background: var(--bg-2);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.content tr:last-child td {
  border-bottom: none;
}
.content tr:hover td {
  background: var(--bg-hover);
}

/* links */
.content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.15s;
}
.content a:hover {
  color: var(--accent-hi);
  border-bottom-color: var(--accent-hi);
}

.content hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-strong),
    transparent
  );
  margin: 44px 0;
}

.content strong {
  color: var(--text-strong);
  font-weight: 700;
}
.content em {
  color: var(--text-muted);
  font-style: italic;
}

/* wikilinks */
.wikilink {
  color: var(--accent-hi) !important;
  background: var(--accent-dim);
  padding: 2px 8px;
  border-radius: 6px;
  border-bottom: none !important;
  font-size: 0.94em;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.wikilink:hover {
  background: var(--accent-dim-2);
  border-bottom: none !important;
}
.wikilink-external {
  color: var(--text-muted) !important;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.wikilink-external:hover {
  background: var(--bg-hover);
  color: var(--text) !important;
}

/* checkboxes */
.content input[type="checkbox"] {
  margin-right: 10px;
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  vertical-align: middle;
  cursor: pointer;
}
.content ul li:has(> input[type="checkbox"]) {
  list-style: none;
  margin-left: -22px;
}

/* loading + error */
.loading {
  color: var(--text-muted);
  text-align: center;
  padding: 120px 0;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.loading i[data-lucide] {
  width: 22px;
  height: 22px;
  animation: spin 1.2s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

.error-box {
  background: rgba(239, 106, 106, 0.06);
  border: 1px solid rgba(239, 106, 106, 0.25);
  border-radius: 12px;
  padding: 22px;
  color: var(--danger);
}
.error-box code {
  background: rgba(239, 106, 106, 0.12);
  color: var(--danger);
  border-color: rgba(239, 106, 106, 0.3);
}
.error-box p:last-child {
  margin-bottom: 0;
}

/* footer */
.footer {
  padding: 28px 48px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: "JetBrains Mono", monospace;
  flex-wrap: wrap;
}
.footer-sep {
  width: 3px;
  height: 3px;
  background: var(--border-strong);
  border-radius: 50%;
}
.footer-built {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-built-label {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
}

/* ==================== COSMIC STARFIELD ==================== */
.cosmic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}
/* keep body dark as base */
body { background: #050403; }

/* ==================== AMBIENT ORBS (persistent, all views) ==================== */
.ambient-orbs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  min-height: 2400px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.35;
}
.ambient-orb.orb-a {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255, 109, 41, 0.4), transparent 70%);
  top: 40px;
  right: -160px;
  animation: orbFloatA 20s ease-in-out infinite;
}
.ambient-orb.orb-b {
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(255, 138, 76, 0.22), transparent 70%);
  top: 900px;
  left: -200px;
  animation: orbFloatB 24s ease-in-out infinite;
}
.ambient-orb.orb-c {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(201, 152, 120, 0.18), transparent 70%);
  top: 1900px;
  right: -120px;
  animation: orbFloatC 28s ease-in-out infinite;
}
/* cool nebula — depth + interstellar feel */
.ambient-orb.orb-d {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(140, 110, 220, 0.14), transparent 70%);
  top: 500px;
  left: 40%;
  animation: orbFloatD 34s ease-in-out infinite;
  filter: blur(110px);
}
@keyframes orbFloatD {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-60px, 60px); }
  66% { transform: translate(40px, -30px); }
}
@keyframes orbFloatA {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-40px, 40px); }
  66% { transform: translate(20px, -30px); }
}
@keyframes orbFloatB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, -50px); }
}
@keyframes orbFloatC {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-50px, -40px); }
}
.main { position: relative; z-index: 1; }
.topbar, .content, .footer { position: relative; z-index: 1; }

/* ==================== SHARED SCROLL REVEAL ==================== */
/* Motion-driven: initial state hidden; Motion animates to visible.
   CSS fallback via .reveal-in if Motion fails to load. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
}
.reveal.reveal-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.85s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ==================== MARKDOWN DOC PREMIUM TREATMENT ==================== */

/* Wrap the first h1 as a hero block */
.md-hero {
  position: relative;
  margin-bottom: 40px;
  padding-top: 4px;
}

/* ---- PERSONA HERO (Erik photo injected) ---- */
.persona-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
  padding-top: 8px;
}
.persona-hero-text {
  min-width: 0;
}
.persona-hero-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: photoRise 1s cubic-bezier(0.2, 0.85, 0.2, 1) 0.3s backwards;
}
@keyframes photoRise {
  from { opacity: 0; transform: translateY(40px); filter: blur(12px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.persona-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 684 / 1024;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 109, 41, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translateZ(0);
  transition: all 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}
.persona-photo-frame:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 109, 41, 0.5),
    0 0 60px rgba(255, 109, 41, 0.25);
}

.persona-photo-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(255, 109, 41, 0.4),
    rgba(255, 138, 76, 0.18) 40%,
    transparent 70%
  );
  filter: blur(50px);
  z-index: -1;
  animation: photoBreathe 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes photoBreathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

.persona-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(0.88) brightness(0.95);
  transition: filter 0.5s, transform 8s ease-out;
  position: relative;
  z-index: 1;
}
.persona-photo-frame:hover .persona-photo {
  filter: contrast(1.1) saturate(1) brightness(1);
  transform: scale(1.03);
}

/* Gradient scrim over the bottom of the photo so the badge is readable */
.persona-photo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 55%,
    rgba(5, 4, 3, 0.7) 90%,
    rgba(5, 4, 3, 0.92) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.persona-photo-badge {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  color: var(--text-strong);
}
.persona-photo-badge-eyebrow {
  font-size: 10px;
  color: var(--accent-hi);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-bottom: 5px;
  font-family: "JetBrains Mono", monospace;
}
.persona-photo-badge-line {
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.persona-photo-caption {
  width: 100%;
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.persona-photo-name {
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-strong);
}
.persona-photo-role {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .persona-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .persona-hero-photo {
    max-width: 300px;
    width: 100%;
  }
}
.md-hero-title {
  font-family: "General Sans", sans-serif;
  font-size: 64px !important;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 20px !important;
  padding: 0 !important;
  border: none !important;
  background: linear-gradient(135deg, #ffffff 0%, #ffa86e 60%, #ff6d29 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255, 109, 41, 0.15));
}
.md-hero-quote {
  font-family: "General Sans", sans-serif;
  font-size: 19px !important;
  font-weight: 500;
  color: var(--text-muted) !important;
  line-height: 1.55 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 0 12px !important;
  max-width: 720px;
  letter-spacing: -0.01em;
}
.md-hero-quote strong {
  color: var(--text-strong) !important;
  font-weight: 700;
}
.md-hero-quote p {
  margin-bottom: 8px;
}
.md-hero-quote p:last-child {
  margin-bottom: 0;
}

/* H2 sections in md render — with a small eyebrow mark before the text */
.md-h2 {
  font-family: "General Sans", sans-serif !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  letter-spacing: -0.022em !important;
  line-height: 1.1 !important;
  margin-top: 72px !important;
  margin-bottom: 20px !important;
  padding: 0 0 16px 0 !important;
  border: none !important;
  border-bottom: 1px solid var(--border) !important;
  position: relative;
  color: var(--text-strong) !important;
}
.md-h2::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* H3 styling refined */
.content h3 {
  font-family: "General Sans", sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--accent-hi);
}

/* Upgrade big body paragraphs right after h2 (lead paragraphs) */
.md-h2 + p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  max-width: 720px;
  margin-bottom: 20px;
}

/* Tables with premium styling */
.content table {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.content th {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-elev));
}

/* Blockquotes outside the hero */
.content blockquote:not(.md-hero-quote) {
  background: linear-gradient(90deg, var(--accent-dim) 0%, transparent 90%);
  border-left: 3px solid var(--accent);
  padding: 18px 24px;
  margin: 28px 0;
  border-radius: 0 12px 12px 0;
  font-family: "General Sans", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.008em;
  font-weight: 500;
  color: var(--text);
  position: relative;
}
.content blockquote:not(.md-hero-quote)::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* "Sources" / "Related" lists rendered as chips */
.md-chip-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 28px 0 !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
}
.md-chip-list li {
  margin: 0 !important;
  padding: 0 !important;
  background: none;
}
.md-chip-list li::marker {
  display: none;
  content: "";
}
.md-chip-list li a {
  display: inline-block;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12.5px;
  color: var(--text) !important;
  text-decoration: none !important;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}
.md-chip-list li a:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent-hi) !important;
  transform: translateY(-1px);
}

/* ==================== RESEARCH VIEW ==================== */
.research-view {
  position: relative;
  animation: fadeIn 0.6s ease;
}

/* floating orbs in the background */
.research-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.research-orb.orb-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 109, 41, 0.4), transparent 70%);
  top: -100px;
  right: -120px;
  animation: orbFloat1 18s ease-in-out infinite;
}
.research-orb.orb-2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 138, 76, 0.2), transparent 70%);
  top: 1200px;
  left: -180px;
  animation: orbFloat2 22s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, 50px); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, -40px); }
}

/* scroll reveal — Motion-driven, CSS fallback below */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.reveal-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* HERO */
.research-hero {
  position: relative;
  z-index: 1;
  padding: 20px 0 40px;
  max-width: 920px;
}
.research-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-bottom: 28px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border-radius: 999px;
  border: 1px solid rgba(255, 109, 41, 0.25);
}
.research-eyebrow .bullet { color: var(--text-dim); }
.research-title {
  font-family: "General Sans", sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.title-line {
  display: inline-block;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s;
}
.title-line-1 {
  font-size: 56px;
  color: var(--text-strong);
}
.title-line-2 {
  font-size: 72px;
  color: var(--text);
  opacity: 0.9;
}
.title-line-3 {
  font-size: 96px;
  background: linear-gradient(135deg, #ffffff 0%, #ffa86e 50%, #ff6d29 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(255, 109, 41, 0.3));
}
.research-lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0;
  font-family: "General Sans", sans-serif;
  font-weight: 400;
}

/* TICKER */
.ticker-wrap {
  position: relative;
  z-index: 1;
  margin: 40px 0 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  overflow: hidden;
}
.ticker {
  display: flex;
  overflow: hidden;
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: tickerMove 50s linear infinite;
  flex-shrink: 0;
}
@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item {
  font-size: 15px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ticker-item::before {
  content: "●";
  color: var(--accent);
  font-size: 6px;
  margin-right: 10px;
}
.ticker-item strong {
  color: var(--accent-hi);
  font-weight: 700;
  font-family: "General Sans", sans-serif;
  font-size: 18px;
}

/* SECTIONS (generic) */
.research-section {
  position: relative;
  z-index: 1;
  margin-bottom: 80px;
}
.research-section-tight { margin-bottom: 64px; }
.research-section-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-bottom: 14px;
}
.research-section-h {
  font-family: "General Sans", sans-serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.05;
  color: var(--text-strong);
  margin: 0 0 14px;
  padding: 0;
  border: none;
  max-width: 820px;
}
.research-section-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 0 32px;
}

/* STAT HERO CARDS */
.stat-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.stat-hero {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 28px 28px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: statIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: var(--delay, 0ms);
}
@keyframes statIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.stat-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px circle at 100% 0%,
    rgba(255, 109, 41, 0.15),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.stat-hero:hover .stat-hero-glow { opacity: 1; }
.stat-hero:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 109, 41, 0.35);
}
.stat-hero-source {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  position: relative;
}
.stat-hero-value {
  font-family: "General Sans", sans-serif;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-strong);
  margin-bottom: 14px;
  position: relative;
  background: linear-gradient(135deg, #ffffff 10%, #ffa86e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}
.stat-hero-label {
  font-family: "General Sans", sans-serif;
  font-size: 15px;
  color: var(--text-strong);
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
  position: relative;
}
.stat-hero-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  position: relative;
}

/* MARKET CARDS */
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.market-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px 26px;
  overflow: hidden;
  transition: all 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: marketIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: var(--delay, 0ms);
  min-height: 360px;
  display: flex;
  flex-direction: column;
}
@keyframes marketIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.market-bg {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  transition: opacity 0.35s;
  pointer-events: none;
}
.market-m1 .market-bg { background: radial-gradient(600px circle at 90% 10%, rgba(255, 109, 41, 0.18), transparent 60%); }
.market-m2 .market-bg { background: radial-gradient(600px circle at 90% 10%, rgba(138, 180, 255, 0.12), transparent 60%); }
.market-m3 .market-bg { background: radial-gradient(600px circle at 90% 10%, rgba(127, 212, 145, 0.15), transparent 60%); }
.market-m4 .market-bg { background: radial-gradient(600px circle at 90% 10%, rgba(255, 168, 110, 0.18), transparent 60%); }

.market-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 109, 41, 0.3);
}
.market-card:hover .market-bg { opacity: 1; }

.market-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 18px;
}
.market-tag {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
}
.market-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  font-weight: 700;
}
.market-name {
  font-family: "General Sans", sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--text-strong);
  position: relative;
}
.market-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  position: relative;
  font-style: italic;
}
.market-stat-wrap {
  padding: 14px 0 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
  position: relative;
}
.market-stat {
  font-family: "General Sans", sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent-hi);
  line-height: 1;
  margin-bottom: 6px;
}
.market-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
}
.market-body {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.6;
  position: relative;
  flex: 1;
}

/* PERSONA CARDS */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.persona-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 26px 26px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: personaIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: var(--delay, 0ms);
  min-height: 420px;
  display: flex;
  flex-direction: column;
}
@keyframes personaIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.persona-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at 100% 0%, var(--persona-glow, rgba(255, 109, 41, 0.12)), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.3s;
}
.persona-card:hover .persona-glow { opacity: 1; }
.persona-card:hover {
  transform: translateY(-4px);
  border-color: var(--persona-accent, rgba(255, 109, 41, 0.35));
}

.persona-p1 { --persona-accent: rgba(255, 109, 41, 0.35); --persona-glow: rgba(255, 109, 41, 0.14); }
.persona-p2 { --persona-accent: rgba(255, 138, 76, 0.35); --persona-glow: rgba(255, 138, 76, 0.12); }
.persona-p3 { --persona-accent: rgba(232, 194, 138, 0.35); --persona-glow: rgba(232, 194, 138, 0.12); }
.persona-p4 { --persona-accent: rgba(127, 212, 145, 0.35); --persona-glow: rgba(127, 212, 145, 0.12); }
.persona-p5 { --persona-accent: rgba(255, 168, 110, 0.35); --persona-glow: rgba(255, 168, 110, 0.12); }

.persona-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
}
.persona-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 4px 9px;
  background: var(--bg);
  border-radius: 6px;
}
.persona-market {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.persona-name {
  font-family: "General Sans", sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--text-strong);
  position: relative;
}
.persona-role {
  font-size: 14px;
  color: var(--accent-hi);
  margin-bottom: 14px;
  position: relative;
  font-weight: 500;
}
.persona-meta {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  position: relative;
}
.persona-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.persona-meta i[data-lucide] {
  width: 12px;
  height: 12px;
  stroke-width: 2;
  color: var(--text-dim);
}
.persona-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0 14px;
  position: relative;
}
.persona-row {
  margin-bottom: 12px;
  position: relative;
}
.persona-row:last-child { margin-bottom: 0; }
.persona-row-label {
  font-size: 10.5px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 5px;
  font-family: "JetBrains Mono", monospace;
}
.persona-row-text {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.55;
}

/* PRICING LADDER */
.pricing-ladder {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: end;
  padding: 40px 0 0;
}
.price-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: priceIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: var(--delay, 0ms);
}
@keyframes priceIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.price-label-top {
  font-family: "General Sans", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.price-bar-wrap {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.price-bar {
  width: 100%;
  height: var(--h, 20%);
  background: linear-gradient(180deg, var(--bar-color, rgba(85, 80, 74, 0.6)) 0%, var(--bar-color-2, rgba(42, 37, 32, 0.4)) 100%);
  border-radius: 10px 10px 0 0;
  border: 1px solid var(--border-strong);
  border-bottom: none;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.price-highlight .price-bar {
  --bar-color: #ff6d29;
  --bar-color-2: rgba(255, 109, 41, 0.3);
  border-color: rgba(255, 109, 41, 0.5);
  box-shadow: 0 0 30px rgba(255, 109, 41, 0.25);
}
.price-highlight .price-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.12));
}
.price-col:hover .price-bar {
  transform: scaleY(1.04);
  transform-origin: bottom;
}
.price-tier {
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  margin-top: 12px;
  text-align: center;
  letter-spacing: -0.005em;
}
.price-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 3px;
  text-align: center;
}
.price-examples {
  font-size: 10.5px;
  color: var(--text-dim);
  margin-top: 6px;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
}

/* COMPETITIVE TABLE */
.comp-table {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.comp-head {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr 2fr;
  gap: 20px;
  padding: 14px 22px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
}
.comp-row {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr 2fr;
  gap: 20px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 0.15s;
}
.comp-row:last-child { border-bottom: none; }
.comp-row:hover { background: var(--bg-hover); }
.comp-name {
  font-family: "General Sans", sans-serif;
  font-weight: 600;
  color: var(--text-strong);
  font-size: 14px;
}
.comp-niche {
  font-size: 13px;
  color: var(--text);
}
.comp-audience {
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
}
.comp-gap {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.comp-row-erik {
  background: linear-gradient(135deg, rgba(255, 109, 41, 0.08), rgba(255, 109, 41, 0.03));
}
.comp-row-erik .comp-name {
  color: var(--accent-hi);
  font-weight: 700;
}
.comp-gap-win {
  color: var(--accent-hi) !important;
  font-weight: 600;
}

/* THE GAP MOMENT */
.research-moment {
  position: relative;
  z-index: 1;
  margin: 72px 0 80px;
  padding: 64px 56px;
  background: linear-gradient(135deg, #0a0908 0%, rgba(255, 109, 41, 0.06) 60%, rgba(255, 109, 41, 0.15) 100%);
  border: 1px solid rgba(255, 109, 41, 0.35);
  border-radius: 28px;
  overflow: hidden;
}
.research-moment::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 109, 41, 0.25), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}
.research-moment::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 138, 76, 0.15), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(30px);
}
.moment-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
}
.moment-quote {
  font-family: "General Sans", sans-serif;
  font-size: 36px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  font-weight: 500;
  margin: 0 0 20px;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  position: relative;
  max-width: 820px;
}
.moment-quote strong {
  background: linear-gradient(135deg, #ff8a4c, #ff6d29);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
.moment-sub {
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
  position: relative;
}

/* VALIDATION GRID */
.validation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.val-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  transition: all 0.22s;
  position: relative;
  overflow: hidden;
}
.val-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0.5;
  transition: opacity 0.25s;
}
.val-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.val-card:hover::before { opacity: 1; }
.val-head {
  font-family: "General Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.008em;
  margin-bottom: 10px;
  line-height: 1.3;
}
.val-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* SOURCES */
.research-sources {
  position: relative;
  z-index: 1;
  margin-bottom: 64px;
}
.sources-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.source-chip {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 12.5px;
  color: var(--text);
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}
.source-chip:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent-hi);
  transform: translateY(-1px);
}

/* RESEARCH CTA */
.research-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.research-cta-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  text-decoration: none;
  color: inherit;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}
.research-cta-card:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-elev), rgba(255, 109, 41, 0.06));
  transform: translateY(-2px);
}
.research-cta-label {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: 8px;
}
.research-cta-title {
  font-family: "General Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.012em;
}
.research-cta-card:hover .research-cta-title {
  color: var(--accent-hi);
}

/* ==================== VISION VIEW — MAXIMUM IMPACT ==================== */
.vision-view {
  animation: fadeIn 0.5s ease;
  position: relative;
}

/* scroll progress bar — fixed at top */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 100;
  pointer-events: none;
}
.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-hi), #fff 70%, var(--accent-hi), var(--accent));
  background-size: 200% 100%;
  box-shadow: 0 0 14px var(--accent-glow), 0 0 30px var(--accent-glow);
  animation: scrollShine 3s linear infinite;
  transition: width 0.12s linear;
}
@keyframes scrollShine {
  0% { background-position: 200% 50%; }
  100% { background-position: -100% 50%; }
}

/* cursor-follow glow — subtle 300px blur orb */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 109, 41, 0.18), transparent 60%);
  pointer-events: none;
  z-index: 1;
  filter: blur(40px);
  will-change: transform;
  transform: translate(-500px, -500px);
  transition: transform 0.18s ease-out;
  mix-blend-mode: screen;
}
@media (pointer: coarse) { .cursor-glow { display: none; } }

.vision-hero {
  margin-bottom: 48px;
  padding-top: 12px;
  position: relative;
  z-index: 2;
}
.vision-hero-logo {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 168px;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.35;
  pointer-events: none;
  animation: logoBreath 6s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 109, 41, 0.15));
}
@keyframes logoBreath {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.03); }
}
@media (max-width: 760px) {
  .vision-hero-logo { display: none; }
}
.vision-eyebrow {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: "JetBrains Mono", monospace;
}
.vision-title {
  font-family: "General Sans", sans-serif;
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 22px;
  max-width: 900px;
  overflow: hidden;
}
.title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px);
  filter: blur(12px);
  animation: wordRise 1s cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
  animation-delay: calc(var(--i) * 0.08s + 0.1s);
  background: linear-gradient(135deg, #ffffff 0%, #ffe0cc 40%, #ffa86e 70%, #ff6d29 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation-name: wordRise, gradientDrift;
  animation-duration: 1s, 8s;
  animation-timing-function: cubic-bezier(0.2, 0.9, 0.25, 1), ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards, both;
  will-change: opacity, transform, filter;
}
@keyframes wordRise {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
@keyframes gradientDrift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.vision-subtitle {
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 680px;
  margin: 0;
  opacity: 0;
  animation: subRise 0.9s cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
  animation-delay: 0.8s;
}
.vision-subtitle em {
  color: var(--accent-hi);
  font-style: normal;
  font-weight: 600;
  background: linear-gradient(135deg, #ffa86e, #ff6d29);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes subRise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ecosystem diagram */
.vision-ecosystem {
  margin-bottom: 56px;
}
.ecosystem-diagram {
  background: radial-gradient(circle at center, rgba(255, 109, 41, 0.06), transparent 65%);
  border-radius: 20px;
  padding: 24px;
  margin: 24px 0 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ecosystem-diagram svg {
  width: 100%;
  max-width: 460px;
  height: auto;
}
.eco-core {
  filter: drop-shadow(0 0 32px rgba(255, 109, 41, 0.75));
}
/* line drawing animation */
.eco-line {
  animation: drawLine 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--i) * 0.08s + 0.6s);
}
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}
/* node pop-in with bounce */
.eco-node {
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
  transform-box: fill-box;
  animation: nodePop 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: calc(var(--i) * 0.09s + 1.3s);
  transition: filter 0.3s, transform 0.3s;
  cursor: pointer;
}
@keyframes nodePop {
  from { opacity: 0; transform: scale(0) translateY(10px); }
  60% { opacity: 1; transform: scale(1.18) translateY(0); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.eco-node:hover,
.eco-node.eco-hot {
  filter: drop-shadow(0 0 18px rgba(255, 138, 76, 0.9));
}
.eco-node:hover .eco-node-bg,
.eco-node.eco-hot .eco-node-bg {
  fill: var(--accent-dim-2);
  stroke: var(--accent-hi);
  stroke-width: 2;
}
.eco-node:hover .eco-node-num,
.eco-node.eco-hot .eco-node-num {
  fill: var(--accent-hi);
}
.eco-core-label {
  font-family: "General Sans", sans-serif;
  font-size: 11px;
  fill: #fff;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}
.eco-core-label-bold {
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  fill: #fff;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.eco-node-bg {
  fill: var(--bg-elev);
  stroke: var(--border-strong);
  stroke-width: 1.5;
  transition: all 0.3s;
}
.eco-node:hover .eco-node-bg {
  stroke: var(--accent);
  fill: var(--accent-dim);
  filter: drop-shadow(0 0 12px var(--accent-glow));
}
.eco-node-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  fill: var(--text-muted);
  font-weight: 600;
  transition: fill 0.3s;
}
.eco-node:hover .eco-node-num {
  fill: var(--accent);
}

/* pillar grid */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.pillar-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 22px 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  transform-style: preserve-3d;
  will-change: transform;
  animation: pillarIn 0.75s cubic-bezier(0.2, 0.9, 0.25, 1) backwards;
  animation-delay: var(--delay, 0ms);
}
@keyframes pillarIn {
  from { opacity: 0; transform: translateY(30px) rotateX(-10deg); }
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}
.tilt-glare {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  border-radius: inherit;
  transition: opacity 0.25s;
  z-index: 1;
}
.pillar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at 100% 0%,
    var(--p-glow, rgba(255, 109, 41, 0.08)),
    transparent 60%
  );
  pointer-events: none;
  opacity: 0.7;
}
.pillar-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--p-accent, var(--accent));
}
.pillar-card:hover {
  border-color: var(--p-accent, var(--accent));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--p-glow, rgba(255, 109, 41, 0.15));
}
.pillar-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}
.pillar-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.pillar-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--p-tag, var(--accent-dim));
  display: grid;
  place-items: center;
  color: var(--p-accent, var(--accent));
}
.pillar-icon i[data-lucide] {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}
/* Brand-logo variant — bigger box, transparent bg, no background color */
.pillar-icon-brand {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  padding: 7px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.has-brand-logo:hover .pillar-icon-brand {
  border-color: var(--p-accent, var(--accent));
  background: rgba(255, 255, 255, 0.04);
  transform: scale(1.06);
  box-shadow: 0 0 22px var(--p-glow, rgba(255, 109, 41, 0.3));
}
.pillar-icon-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: filter 0.25s;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}
.pillar-meta {
  display: flex;
  gap: 6px;
  position: relative;
  margin-top: 4px;
}
.pillar-tag {
  font-size: 10px;
  color: var(--p-accent, var(--accent-hi));
  background: var(--p-tag, var(--accent-dim));
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.pillar-year {
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.pillar-title {
  font-family: "General Sans", sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.018em;
  line-height: 1.18;
  position: relative;
  margin-top: 4px;
}
.pillar-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  position: relative;
  flex: 1;
}

/* pillar color variants */
.pillar-v1 { --p-accent: #ff6d29; --p-tag: rgba(255, 109, 41, 0.14); --p-glow: rgba(255, 109, 41, 0.15); }
.pillar-v2 { --p-accent: #ff8a4c; --p-tag: rgba(255, 138, 76, 0.14); --p-glow: rgba(255, 138, 76, 0.12); }
.pillar-v3 { --p-accent: #ffa86e; --p-tag: rgba(255, 168, 110, 0.14); --p-glow: rgba(255, 168, 110, 0.12); }
.pillar-v4 { --p-accent: #e8c28a; --p-tag: rgba(232, 194, 138, 0.14); --p-glow: rgba(232, 194, 138, 0.12); }
.pillar-v5 { --p-accent: #d4a574; --p-tag: rgba(212, 165, 116, 0.14); --p-glow: rgba(212, 165, 116, 0.12); }
.pillar-v6 { --p-accent: #c99878; --p-tag: rgba(201, 152, 120, 0.14); --p-glow: rgba(201, 152, 120, 0.12); }
.pillar-v7 { --p-accent: #a87254; --p-tag: rgba(168, 114, 84, 0.14); --p-glow: rgba(168, 114, 84, 0.12); }
.pillar-v8 { --p-accent: #7fd491; --p-tag: rgba(127, 212, 145, 0.14); --p-glow: rgba(127, 212, 145, 0.12); }

/* year timeline */
.vision-timeline {
  margin-bottom: 56px;
}
.year-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  position: relative;
  margin-top: 12px;
}
.year-timeline::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi), #ffa86e, #e8c28a, #7fd491);
  z-index: 0;
  opacity: 0.45;
}
.year-block {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 14px 16px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: yearPop 0.7s cubic-bezier(0.2, 0.9, 0.25, 1) backwards;
  animation-delay: var(--delay, 0ms);
}
@keyframes yearPop {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.year-block:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 109, 41, 0.2);
  transform: translateY(-4px);
}
.year-block:hover::before {
  transform: translateX(-50%) scale(1.5);
  box-shadow: 0 0 20px currentColor;
}
.year-block:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.year-block::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--accent-glow);
}
.year-block.y2::before { background: var(--accent-hi); }
.year-block.y3::before { background: #ffa86e; }
.year-block.y4::before { background: #e8c28a; }
.year-block.y5::before { background: #7fd491; box-shadow: 0 0 12px rgba(127, 212, 145, 0.5); }
.year-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 10px;
}
.year-label {
  font-family: "General Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.012em;
  margin-bottom: 4px;
}
.year-detail {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* revenue trajectory */
.vision-revenue {
  margin-bottom: 56px;
}
.revenue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.revenue-card {
  background: linear-gradient(135deg, var(--bg-elev), rgba(255, 109, 41, 0.06));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
  animation: pillarIn 0.8s cubic-bezier(0.2, 0.9, 0.25, 1) backwards;
  animation-delay: var(--delay, 0ms);
}
.revenue-card:hover {
  border-color: rgba(255, 109, 41, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 40px rgba(255, 109, 41, 0.2);
}
.revenue-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at 100% 100%, var(--accent-dim), transparent 60%);
  pointer-events: none;
}
.revenue-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: "JetBrains Mono", monospace;
  position: relative;
}
.revenue-value {
  font-family: "General Sans", sans-serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 10px;
  position: relative;
  background: linear-gradient(135deg, #ffffff 10%, #ffa86e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}
.revenue-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  position: relative;
}
.revenue-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
}

/* moats */
.vision-moats {
  margin-bottom: 56px;
}
.moat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.moat-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px 16px;
  transition: all 0.2s;
}
.moat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.moat-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-dim);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 12px;
}
.moat-icon i[data-lucide] {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}
.moat-title {
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.moat-body {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* the question */
.vision-question {
  background: linear-gradient(135deg, var(--bg-elev), rgba(255, 109, 41, 0.08), rgba(255, 138, 76, 0.05));
  background-size: 300% 300%;
  animation: questionShift 10s ease-in-out infinite;
  border: 1px solid rgba(255, 109, 41, 0.35);
  border-radius: 20px;
  padding: 36px 42px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.vision-question:hover {
  border-color: rgba(255, 109, 41, 0.6);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 0 80px rgba(255, 109, 41, 0.15);
}
@keyframes questionShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.vision-question::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at 100% 50%, rgba(255, 109, 41, 0.12), transparent 60%);
  pointer-events: none;
  animation: questionPulse 6s ease-in-out infinite;
}
@keyframes questionPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.vision-question-tag {
  font-size: 10.5px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: "JetBrains Mono", monospace;
  position: relative;
}
.vision-question-quote {
  font-family: "General Sans", sans-serif;
  font-size: 24px;
  color: var(--text-strong);
  line-height: 1.35;
  letter-spacing: -0.018em;
  font-weight: 500;
  margin: 0 0 18px;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  position: relative;
  max-width: 720px;
}
.vision-question-quote strong {
  color: var(--accent-hi);
  font-weight: 700;
}
.vision-question-answer {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  position: relative;
}

/* final CTA */
.vision-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}
.vision-cta-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  text-decoration: none;
  color: inherit;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}
.vision-cta-card:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-elev), rgba(255, 109, 41, 0.06));
  transform: translateY(-2px);
}
.vision-cta-label {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: 8px;
}
.vision-cta-title {
  font-family: "General Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.012em;
}
.vision-cta-card:hover .vision-cta-title {
  color: var(--accent-hi);
}

/* ==================== DASHBOARD VIEW ==================== */
.dashboard-view {
  animation: fadeIn 0.4s ease;
}
.dash-hero {
  margin-bottom: 36px;
  position: relative;
}
.dash-hero-logo {
  position: absolute;
  top: -8px;
  right: 0;
  width: 90px;
  height: 152px;
  object-fit: contain;
  mix-blend-mode: screen;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 0 30px rgba(255, 109, 41, 0.35));
}
.dash-hero-logo:hover {
  transform: translateY(-4px) scale(1.05);
  filter: drop-shadow(0 0 50px rgba(255, 109, 41, 0.5));
}
@media (max-width: 760px) {
  .dash-hero-logo {
    position: relative;
    top: 0;
    right: 0;
    width: 52px;
    height: 86px;
    margin-bottom: 16px;
  }
}
.dash-eyebrow {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-bottom: 14px;
  font-family: "JetBrains Mono", monospace;
}
.dash-title {
  font-family: "General Sans", sans-serif;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--text-strong);
  background: linear-gradient(135deg, #ffffff 20%, #ffa86e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dash-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0;
}

/* stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at 100% 0%, rgba(255, 109, 41, 0.08), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.stat-card.stat-accent {
  border-color: rgba(255, 109, 41, 0.35);
  background: linear-gradient(135deg, var(--bg-elev), rgba(255, 109, 41, 0.08));
}
.stat-card.stat-accent::before { opacity: 1; }
.stat-label {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}
.stat-value {
  font-family: "General Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  position: relative;
}
.stat-big {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-of {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
  position: relative;
}

/* two-col layout */
.dash-two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-bottom: 36px;
}
.dash-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.dash-section-head h2 {
  font-family: "General Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  margin: 0;
  padding: 0;
  border: none;
}
.dash-section-cta {
  font-size: 12.5px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
  cursor: pointer;
}
.dash-section-cta:hover { color: var(--accent-hi); }

/* up next list */
.next-list {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.next-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.next-item:last-child { border-bottom: none; }
.next-item:hover { background: var(--bg-hover); }
.next-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.next-icon i[data-lucide] {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}
.next-body { flex: 1; min-width: 0; }
.next-date {
  font-size: 11px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
  margin-bottom: 3px;
}
.next-label {
  font-size: 14px;
  color: var(--text-strong);
  font-weight: 500;
  line-height: 1.35;
}
.next-kind {
  font-size: 10px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.next-empty {
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* quick access cards */
.dash-quick {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-quick .dash-section-head { margin-bottom: 16px; }
.quick-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}
.quick-card:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-elev), rgba(255, 109, 41, 0.06));
  transform: translateX(4px);
}
.quick-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.quick-icon i[data-lucide] {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}
.quick-card > div {
  flex: 1;
  min-width: 0;
}
.quick-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.005em;
  margin-bottom: 2px;
}
.quick-desc {
  font-size: 12px;
  color: var(--text-muted);
}
.quick-arrow {
  color: var(--text-dim);
  width: 16px !important;
  height: 16px !important;
  stroke-width: 2;
  transition: all 0.2s;
  flex-shrink: 0;
}
.quick-card:hover .quick-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ---- ECOSYSTEM · brand family strip ---- */
.brand-family {
  margin-top: 40px;
  padding: 28px 32px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 109, 41, 0.04) 100%
  );
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.brand-family::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at 80% 50%, rgba(255, 109, 41, 0.08), transparent 60%);
  pointer-events: none;
}
.brand-family-label {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-bottom: 22px;
  font-family: "JetBrains Mono", monospace;
  position: relative;
}
.brand-family-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
}
.brand-chip {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0.85;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  flex-shrink: 0;
}
.brand-chip:hover {
  opacity: 1;
  transform: translateY(-2px) scale(1.04);
  filter: drop-shadow(0 8px 20px rgba(255, 109, 41, 0.3));
}
.brand-chip img {
  height: 100%;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
.brand-chip-erik img {
  mix-blend-mode: screen;
}
.brand-chip-sep {
  width: 1px;
  height: 28px;
  background: var(--border-strong);
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .brand-family {
    padding: 22px 20px;
  }
  .brand-family-row {
    gap: 16px;
    justify-content: space-around;
  }
  .brand-chip {
    height: 44px;
  }
  .brand-chip-sep {
    display: none;
  }
}

/* operating principle */
.dash-principle {
  background: linear-gradient(135deg, var(--bg-elev), rgba(255, 109, 41, 0.05));
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 24px 28px;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}
.dash-principle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at 100% 50%, rgba(255, 109, 41, 0.1), transparent 60%);
  pointer-events: none;
}
.principle-tag {
  font-size: 10.5px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: "JetBrains Mono", monospace;
  position: relative;
}
.principle-quote {
  font-family: "General Sans", sans-serif;
  font-size: 17px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.008em;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  position: relative;
}
.principle-quote strong {
  color: var(--text-strong);
}

/* ==================== DOC NAV (prev/next) ==================== */
.doc-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.doc-nav-prev,
.doc-nav-next {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}
.doc-nav-next {
  justify-content: flex-end;
  text-align: right;
}
.doc-nav-prev:hover,
.doc-nav-next:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-elev), rgba(255, 109, 41, 0.05));
  transform: translateY(-1px);
}
.doc-nav-label {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 3px;
}
.doc-nav-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.005em;
}
.doc-nav svg {
  color: var(--text-muted);
  transition: color 0.15s;
  flex-shrink: 0;
}
.doc-nav-prev:hover svg,
.doc-nav-next:hover svg {
  color: var(--accent);
}
.doc-nav-spacer {
  display: block;
}

/* ==================== SCROLLBARS ==================== */
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
  background-clip: padding-box;
}

/* ==================== TIMELINE VIEW ==================== */
.timeline-view {
  animation: fadeIn 0.4s ease;
}

/* ---------- PROGRESS HERO ---------- */
.progress-hero {
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 28px;
  margin: 36px 0 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.progress-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px circle at 95% 10%, rgba(255, 109, 41, 0.15), transparent 55%),
    radial-gradient(300px circle at 5% 100%, rgba(255, 109, 41, 0.08), transparent 50%);
  pointer-events: none;
}
.progress-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  margin-bottom: 16px;
}
.progress-hero-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: 6px;
}
.progress-hero-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: "General Sans", sans-serif;
}
.progress-big {
  font-size: 56px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.035em;
  line-height: 1;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.progress-of {
  font-size: 24px;
  color: var(--text-muted);
  font-weight: 500;
}
.progress-hero-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.progress-hero-pct {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  background: var(--accent-dim);
  border-radius: 999px;
}
.progress-reset {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.18s;
}
.progress-reset:hover {
  color: var(--text-strong);
  border-color: var(--border-strong);
  background: var(--bg-hover);
  transform: rotate(-30deg);
}
.progress-reset i[data-lucide] {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}
.progress-hero-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
}
.progress-hero-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  border-radius: 999px;
  box-shadow: 0 0 16px var(--accent-glow);
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}
.progress-hero-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: shimmer 2.5s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.progress-hero-breakdown {
  display: flex;
  gap: 22px;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  position: relative;
}
.progress-hero-breakdown span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.progress-hero-breakdown i[data-lucide] {
  width: 13px;
  height: 13px;
  stroke-width: 2;
  color: var(--accent);
}
.progress-hero-breakdown strong {
  color: var(--text-strong);
  font-weight: 600;
  font-family: "JetBrains Mono", monospace;
}

/* ---------- DONE CHECK BUTTON ---------- */
.done-check {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: transparent;
  border: 1.5px solid var(--border-strong);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: transparent;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  flex-shrink: 0;
  position: relative;
  padding: 0;
  -webkit-appearance: none;
  z-index: 3;
  font: inherit;
}
/* kill pointer events on the inner SVG/i so the button always receives the click */
.done-check * {
  pointer-events: none;
}
.done-check:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: scale(1.08);
}
.done-check:active {
  transform: scale(0.92);
}
.done-check .check-icon {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.18s, transform 0.18s;
  color: var(--text-strong);
}
.done-check.done {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-strong);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: popIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.done-check.done .check-icon {
  opacity: 1;
  transform: scale(1);
}
@keyframes popIn {
  0% { transform: scale(1); box-shadow: 0 0 0 0 var(--accent-glow); }
  40% { transform: scale(1.25); box-shadow: 0 0 0 8px var(--accent-glow); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}

/* ---------- DELIVERED STATE (cards + milestones) ---------- */

/* "Delivered" floating badge — hidden by default, shown when card is done */
.done-badge {
  position: absolute;
  top: -10px;
  left: 14px;
  background: var(--accent);
  color: var(--text-strong);
  padding: 4px 11px 4px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: none;
  align-items: center;
  gap: 5px;
  z-index: 4;
  box-shadow: 0 4px 16px var(--accent-glow), 0 0 0 2px var(--bg);
  font-family: "General Sans", sans-serif;
}
.done-badge svg {
  stroke-width: 4;
}
.is-done > .done-badge {
  display: inline-flex;
  animation: badgeIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes badgeIn {
  0% { transform: translateY(-14px) scale(0.6); opacity: 0; }
  60% { transform: translateY(2px) scale(1.1); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Video card DONE state — very clear */
.video-card.is-done {
  background: linear-gradient(135deg, var(--bg-elev), rgba(255, 109, 41, 0.1));
  border-color: rgba(255, 109, 41, 0.45);
}
.video-card.is-done::after {
  width: 3px;
  box-shadow: 0 0 10px var(--accent-glow);
}
.video-card.is-done .video-num {
  color: var(--accent-hi);
}
.video-card.is-done .video-title {
  color: var(--text);
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-decoration-skip-ink: none;
}

/* Build card DONE state */
.build-card.is-done {
  background: linear-gradient(135deg, var(--bg-elev), rgba(255, 109, 41, 0.08));
  border-color: rgba(255, 109, 41, 0.4);
}
.build-card.is-done .build-title {
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-decoration-skip-ink: none;
  color: var(--text);
}

/* Milestone DONE state */
.gantt-milestone.is-done .gantt-ms-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-strong);
  box-shadow: 0 0 16px var(--accent-glow);
}
.gantt-milestone.is-done .gantt-ms-text {
  color: var(--accent-hi);
  font-weight: 600;
}
.gantt-milestone.is-done .gantt-ms-text::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

/* ---------- TOAST ---------- */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text-strong);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  transform: translateX(400px);
  animation: toastIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
             toastOut 0.3s 2.7s cubic-bezier(0.4, 0, 0.8, 1) forwards;
}
.toast i[data-lucide] {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
  color: var(--accent);
  flex-shrink: 0;
}
.toast-strong {
  color: var(--text-strong);
}
.toast-light {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 12.5px;
}
@keyframes toastIn {
  from { transform: translateX(400px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(400px); opacity: 0; }
}

/* ---------- CONFETTI BURST ---------- */
.done-check.burst::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: burstRing 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
@keyframes burstRing {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.timeline-hero {
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.timeline-eyebrow {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  margin-bottom: 14px;
}
.timeline-hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 18px;
  color: var(--text-strong);
}
.timeline-lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 620px;
  margin-bottom: 0;
}

.gantt-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 48px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.gantt-section-title i[data-lucide] {
  width: 15px;
  height: 15px;
  color: var(--accent);
  stroke-width: 2;
}
.gantt-section-badge {
  margin-left: auto;
  background: var(--accent-dim);
  color: var(--accent-hi);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ---------- GANTT ---------- */
.gantt {
  margin-bottom: 24px;
}
.gantt-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}
.gantt-inner {
  min-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.gantt-header {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 4px;
}
.gantt-wk {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 6px 0 10px;
  border-bottom: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
}
.gantt-wk-now {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 700;
}

.gantt-phases {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 4px;
  position: relative;
  min-height: 64px;
}
.gantt-phase-bar {
  border-radius: 10px;
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
  border: 1px solid transparent;
  cursor: default;
}
.gantt-phase-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 100% 0%,
    rgba(255, 255, 255, 0.08),
    transparent 60%
  );
  pointer-events: none;
}
.gantt-phase-bar:hover {
  transform: translateY(-1px);
}
.gantt-phase-bar.p0 {
  background: linear-gradient(135deg, #453027, #2a1d17);
  border-color: #5a3e30;
}
.gantt-phase-bar.p1 {
  background: linear-gradient(135deg, #ff6d29, #c04f1d);
  border-color: #ff8a4c;
}
.gantt-phase-bar.p2 {
  background: linear-gradient(135deg, #ff8a4c, #ff6d29);
  border-color: #ffa86e;
}
.gantt-phase-bar.p3 {
  background: linear-gradient(135deg, #ffa86e, #ff8a4c);
  border-color: #ffc08e;
}
.gantt-phase-bar.pg {
  background: linear-gradient(135deg, #7fd491, #4e9962);
  border-color: #9de0ab;
}
.gantt-phase-name {
  font-family: "General Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.005em;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.gantt-phase-dates {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 2px;
  font-weight: 500;
  position: relative;
}

/* now line */
.gantt-now-line {
  position: relative;
  align-self: stretch;
  pointer-events: none;
}
.gantt-now-line::before {
  content: "";
  position: absolute;
  top: -26px;
  bottom: -8px;
  left: 50%;
  width: 2px;
  background: var(--text-strong);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
  transform: translateX(-50%);
  border-radius: 2px;
}
.gantt-now-dot {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: var(--text-strong);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--text-strong);
  z-index: 5;
}
.gantt-now-label {
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  white-space: nowrap;
}

/* milestones */
.gantt-ms-row {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 8px;
  margin-top: 14px;
  position: relative;
  align-items: start;
}
.gantt-ms-cell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}
.gantt-milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 4px 12px;
  border-radius: 10px;
  transition: background 0.18s;
}
.gantt-milestone:hover {
  background: var(--bg-elev);
}
.gantt-ms-dot {
  width: 30px;
  height: 30px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: all 0.2s;
}
.gantt-ms-dot i[data-lucide] {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}
.gantt-milestone:hover .gantt-ms-dot {
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  transform: scale(1.05);
}
.gantt-ms-label {
  text-align: center;
  padding: 0 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.gantt-ms-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.gantt-ms-text {
  font-size: 11px;
  color: var(--text);
  line-height: 1.35;
  font-weight: 500;
  max-width: 110px;
  margin: 0 auto;
}

/* legend */
.gantt-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}
.legend-swatch.p0 { background: linear-gradient(135deg, #453027, #2a1d17); }
.legend-swatch.p1 { background: linear-gradient(135deg, #ff6d29, #c04f1d); }
.legend-swatch.p2 { background: linear-gradient(135deg, #ff8a4c, #ff6d29); }
.legend-swatch.p3 { background: linear-gradient(135deg, #ffa86e, #ff8a4c); }
.legend-swatch.pg { background: linear-gradient(135deg, #7fd491, #4e9962); }

/* ---------- VIDEO SCHEDULE ---------- */
.video-schedule {
  margin-top: 12px;
}
.video-intro {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 640px;
}

.video-month {
  margin-bottom: 40px;
}
.video-month-head {
  margin-bottom: 18px;
}
.video-month-head h3 {
  font-family: "General Sans", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.015em;
  margin: 0 0 4px;
}
.video-month-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
}

.video-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.video-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px 18px;
  position: relative;
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 170px;
}
.video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    transparent 70%,
    var(--card-glow, var(--accent-dim)) 100%
  );
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.22s;
}
.video-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--card-accent, var(--accent));
  opacity: 0.9;
}
.video-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.video-card:hover::before {
  opacity: 0.8;
}

.video-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.video-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.video-pillar {
  font-size: 10px;
  font-weight: 700;
  color: var(--card-accent, var(--accent-hi));
  background: var(--card-pill, var(--accent-dim));
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.video-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  position: relative;
}
.video-date i[data-lucide] {
  width: 13px;
  height: 13px;
  stroke-width: 1.75;
  color: var(--text-dim);
}

.video-title {
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.3;
  letter-spacing: -0.012em;
  position: relative;
  flex: 1;
}

.video-platform {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  padding-top: 10px;
  border-top: 1px solid var(--border);
  position: relative;
}
.video-platform i[data-lucide] {
  width: 12px;
  height: 12px;
  stroke-width: 2;
  color: var(--text-dim);
}
.video-sep {
  width: 3px;
  height: 3px;
  background: var(--border-strong);
  border-radius: 50%;
  margin: 0 4px;
}

/* pillar colors */
.pillar-deal    { --card-accent: #ff6d29; --card-pill: rgba(255, 109, 41, 0.14); --card-glow: rgba(255, 109, 41, 0.14); }
.pillar-culture { --card-accent: #ffa86e; --card-pill: rgba(255, 168, 110, 0.14); --card-glow: rgba(255, 168, 110, 0.14); }
.pillar-lens    { --card-accent: #e8c28a; --card-pill: rgba(232, 194, 138, 0.14); --card-glow: rgba(232, 194, 138, 0.14); }
.pillar-legacy  { --card-accent: #ff8a4c; --card-pill: rgba(255, 138, 76, 0.14); --card-glow: rgba(255, 138, 76, 0.14); }
.pillar-origin  { --card-accent: #a87254; --card-pill: rgba(168, 114, 84, 0.14); --card-glow: rgba(168, 114, 84, 0.14); }
.pillar-mindset { --card-accent: #8a8680; --card-pill: rgba(138, 134, 128, 0.14); --card-glow: rgba(138, 134, 128, 0.14); }

/* ---------- WHAT PLOT X PEOPLE BUILDS ---------- */
.builds-section {
  margin-top: 16px;
}
.builds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.build-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.build-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    transparent 75%,
    var(--build-glow, var(--accent-dim)) 100%
  );
  opacity: 0.5;
  pointer-events: none;
}
.build-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.build-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  position: relative;
}
.build-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--build-accent, var(--accent));
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  background: var(--build-tag-bg, var(--accent-dim));
  border-radius: 999px;
  display: inline-block;
  position: relative;
}
.build-title {
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.build-title i[data-lucide] {
  width: 17px;
  height: 17px;
  stroke-width: 2;
  color: var(--build-accent, var(--accent));
  flex-shrink: 0;
}
.build-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  position: relative;
}

/* build card phase tags */
.tag-phase0 { --build-accent: #c99878; --build-tag-bg: rgba(201, 152, 120, 0.12); --build-glow: rgba(201, 152, 120, 0.1); }
.tag-phase3 { --build-accent: #ff8a4c; --build-tag-bg: rgba(255, 138, 76, 0.14); --build-glow: rgba(255, 138, 76, 0.14); }

/* ---------- CHANNEL SPLIT ---------- */
.split-section {
  margin-top: 48px;
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 8px;
}
.split-col {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.split-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--split-accent, var(--accent));
}
.split-col-erik { --split-accent: #ff6d29; }
.split-col-erik::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at 100% 0,
    rgba(255, 109, 41, 0.1),
    transparent 60%
  );
  pointer-events: none;
}
.split-col-company { --split-accent: #c99878; }
.split-col-company::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at 100% 0,
    rgba(201, 152, 120, 0.08),
    transparent 60%
  );
  pointer-events: none;
}
.split-col-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.split-col-title {
  font-family: "General Sans", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 4px;
  letter-spacing: -0.012em;
}
.split-col-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
}
.split-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.split-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
  border-bottom: 1px solid rgba(42, 37, 32, 0.5);
}
.split-list li:last-child {
  border-bottom: none;
}
.split-list i[data-lucide] {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
  color: var(--split-accent);
  flex-shrink: 0;
  margin-top: 4px;
}
.split-list .split-no {
  color: var(--text-muted);
  font-style: italic;
}
.split-list li:has(i[data-lucide="x"]) i[data-lucide] {
  color: var(--danger);
}

/* ---------- TWO SERVICES · ENGAGEMENT SCOPE ---------- */
.engagement-section {
  margin-top: 48px;
}
.engagement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 8px;
}
.engagement-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 26px 26px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.engagement-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--eng-accent);
  z-index: 2;
}
.engagement-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at 100% 0%,
    var(--eng-glow),
    transparent 60%
  );
  pointer-events: none;
}
.engagement-included {
  --eng-accent: #ff6d29;
  --eng-glow: rgba(255, 109, 41, 0.1);
  --eng-badge-bg: rgba(255, 109, 41, 0.14);
  --eng-badge-color: #ff8a4c;
}
.engagement-excluded {
  --eng-accent: #55504a;
  --eng-glow: rgba(138, 134, 128, 0.06);
  --eng-badge-bg: rgba(138, 134, 128, 0.1);
  --eng-badge-color: #8a8680;
}
.engagement-badge {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--eng-badge-color);
  background: var(--eng-badge-bg);
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-self: flex-start;
  position: relative;
}
.engagement-title {
  font-family: "General Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  line-height: 1.15;
  position: relative;
}
.engagement-window {
  font-size: 12px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.engagement-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.engagement-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
}
.engagement-list i[data-lucide] {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
  color: var(--eng-accent);
  flex-shrink: 0;
  margin-top: 4px;
}
.engagement-excluded .engagement-list li {
  color: var(--text-muted);
}
.engagement-excluded .engagement-list i[data-lucide] {
  color: var(--text-dim);
}

.engagement-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.engagement-note i[data-lucide] {
  width: 15px;
  height: 15px;
  stroke-width: 2;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}
.engagement-note strong {
  color: var(--text-strong);
}

/* ---------- WHAT ERIK DELIVERS ---------- */
.what-erik-delivers {
  margin-top: 48px;
}
.commit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.commit-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.2s;
}
.commit-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.commit-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 14px;
}
.commit-icon i[data-lucide] {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}
.commit-title {
  font-family: "General Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.commit-body {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* responsive */
@media (max-width: 960px) {
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    z-index: 45;
    border-right: 1px solid var(--border);
    transition: left 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.4);
  }
  .sidebar.open {
    left: 0;
  }
  .sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .menu-toggle {
    display: flex;
  }
  .content {
    padding: 32px 24px 60px;
  }
  .topbar {
    padding: 14px 20px;
  }
  .reload-label {
    display: none;
  }
  #reload-btn {
    width: 36px;
    padding: 0;
    justify-content: center;
  }
  .content h1 {
    font-size: 32px;
  }
  .content h2 {
    font-size: 22px;
  }
  .dash-title {
    font-size: 38px;
  }
  .dash-two-col {
    grid-template-columns: 1fr;
  }
  .doc-nav {
    grid-template-columns: 1fr;
  }
  .vision-title {
    font-size: 36px;
  }
  .vision-subtitle {
    font-size: 15px;
  }
  .year-timeline {
    grid-template-columns: 1fr 1fr;
  }
  .year-timeline::before {
    display: none;
  }
  .revenue-grid {
    grid-template-columns: 1fr;
  }
  .vision-cta {
    grid-template-columns: 1fr;
  }
  .vision-question {
    padding: 26px 24px;
  }
  .vision-question-quote {
    font-size: 19px;
  }
  .title-line-1 { font-size: 38px; }
  .title-line-2 { font-size: 48px; }
  .title-line-3 { font-size: 60px; }
  .research-section-h { font-size: 30px; }
  .research-lead { font-size: 16px; }
  .pricing-ladder { grid-template-columns: 1fr 1fr; gap: 14px; }
  .price-bar-wrap { height: 180px; }
  .comp-head, .comp-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 16px;
  }
  .comp-head { display: none; }
  .comp-row { border-bottom: 1px solid var(--border); }
  .comp-name { font-size: 16px; }
  .moment-quote { font-size: 24px; }
  .research-moment { padding: 36px 24px; }
  .research-cta { grid-template-columns: 1fr; }
  .persona-name { font-size: 28px; }
  .market-name { font-size: 32px; }
  .stat-hero-value { font-size: 44px; }
  .timeline-hero h1 {
    font-size: 34px;
  }
  .timeline-lead {
    font-size: 15px;
  }
  .gantt-section-title {
    margin: 36px 0 16px;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .video-month-head h3 {
    font-size: 19px;
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
  .builds-grid {
    grid-template-columns: 1fr;
  }
  .engagement-grid {
    grid-template-columns: 1fr;
  }
  .engagement-title {
    font-size: 19px;
  }
}

/* ================================================================
   MOBILE GANTT — vertical stack (for narrow screens & preview panel)
   ================================================================ */
@media (max-width: 820px) {
  .gantt-scroll {
    overflow-x: visible;
  }
  .gantt-inner {
    min-width: 0;
    gap: 14px;
  }
  /* Hide the week-number header on mobile — phase bars carry dates */
  .gantt-header {
    display: none;
  }
  /* Stack phase bars vertically, full width */
  .gantt-phases {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
  }
  .gantt-phase-bar {
    grid-column: unset !important;
    width: 100%;
    padding: 14px 16px;
  }
  .gantt-now-line {
    display: none;
  }

  /* Turn milestones into a vertical list — each is tappable */
  .gantt-ms-row {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
  }
  .gantt-ms-cell {
    grid-column: unset !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
  }
  .gantt-milestone {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
  }
  .gantt-milestone:hover,
  .gantt-milestone.is-done {
    border-color: var(--border-strong);
  }
  .gantt-ms-dot {
    flex-shrink: 0;
  }
  .gantt-ms-label {
    flex: 1;
    text-align: left;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .gantt-ms-date {
    font-size: 10.5px;
    text-align: left;
  }
  .gantt-ms-text {
    font-size: 14px;
    text-align: left;
    max-width: none;
    margin: 0;
    color: var(--text-strong);
    font-weight: 500;
  }
  /* Position the done-check at the far right of the row */
  .gantt-milestone .done-check {
    margin-left: auto;
    flex-shrink: 0;
  }

  /* Legend stays fine */
  .gantt-legend {
    gap: 10px 16px;
  }
}

/* ==================== CONTENT CALENDAR — PREMIUM ==================== */
.cal-view {
  --c1: #ffb457;  /* Deal Table — amber/gold */
  --c2: #e56a6a;  /* Origin — maroon/red */
  --c3: #6fd4e0;  /* Dealer's Lens — cyan */
  --c4: #e87ac6;  /* Culture Capital — magenta */
  --c5: #57d29c;  /* Legacy — emerald */
  --c6: #a98bff;  /* Mindset — violet */
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0;
}

/* Hero */
.cal-hero {
  position: relative;
  margin: 8px 0 44px;
  padding: 40px 0 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cal-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,180,87,0.85);
  margin-bottom: 20px;
}
.cal-title {
  font-family: "Anton", "General Sans", sans-serif;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: #f5f1ea;
  font-weight: 400;
}
.cal-title .title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: calTitleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
  margin-right: 0.18em;
}
.cal-title .title-word:nth-child(2n) { color: rgba(255,180,87,0.9); }
@keyframes calTitleIn {
  to { opacity: 1; transform: translateY(0); }
}
.cal-subtitle {
  font-family: "General Sans", sans-serif;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: rgba(245,241,234,0.72);
  max-width: 760px;
  margin: 0 0 22px;
}
.cal-subtitle em {
  color: #ffb457;
  font-style: normal;
  font-weight: 600;
}
.cal-pullquote {
  position: relative;
  margin: 0;
  padding: 18px 22px 18px 44px;
  background: linear-gradient(100deg, rgba(255,180,87,0.08), rgba(255,180,87,0.02));
  border-left: 3px solid rgba(255,180,87,0.65);
  border-radius: 6px;
  font-family: "General Sans", sans-serif;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.45;
  color: #f5f1ea;
  font-style: italic;
  max-width: 680px;
}
.cal-pullquote-mark {
  position: absolute;
  left: 12px;
  top: 4px;
  font-family: "Anton", serif;
  font-size: 48px;
  color: rgba(255,180,87,0.5);
  font-style: normal;
  line-height: 1;
}

/* Stats bar */
.cal-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.4fr;
  gap: 12px;
  margin: 0 0 36px;
}
.cal-stat {
  position: relative;
  padding: 18px 18px 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
}
.cal-stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,180,87,0.5), transparent);
}
.cal-stat-num {
  font-family: "Anton", sans-serif;
  font-size: 38px;
  line-height: 1;
  color: #f5f1ea;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.cal-stat-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.55);
}
.cal-stat-wide {
  background: linear-gradient(160deg, rgba(255,180,87,0.12), rgba(255,180,87,0.03));
  border-color: rgba(255,180,87,0.2);
}
.cal-stat-wide .cal-stat-num { color: #ffb457; }

/* Legend */
.cal-legend {
  margin: 0 0 32px;
  padding: 20px 22px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
}
.cal-legend-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.5);
  margin-bottom: 14px;
}
.cal-legend-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cal-pillar-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #f5f1ea;
  transition: all 0.25s ease;
}
.cal-pillar-chip:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}
.cal-pillar-chip i[data-lucide] {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}
.cal-pillar-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 10px currentColor;
}
.cal-pillar-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 2px 7px;
  background: rgba(0,0,0,0.3);
  border-radius: 999px;
  color: rgba(245,241,234,0.7);
  margin-left: 2px;
}

/* Per-pillar colors */
.cal-pillar-c1 { color: var(--c1); }
.cal-pillar-c1 .cal-pillar-dot { background: var(--c1); }
.cal-pillar-c2 { color: var(--c2); }
.cal-pillar-c2 .cal-pillar-dot { background: var(--c2); }
.cal-pillar-c3 { color: var(--c3); }
.cal-pillar-c3 .cal-pillar-dot { background: var(--c3); }
.cal-pillar-c4 { color: var(--c4); }
.cal-pillar-c4 .cal-pillar-dot { background: var(--c4); }
.cal-pillar-c5 { color: var(--c5); }
.cal-pillar-c5 .cal-pillar-dot { background: var(--c5); }
.cal-pillar-c6 { color: var(--c6); }
.cal-pillar-c6 .cal-pillar-dot { background: var(--c6); }
.cal-pillar-chip .cal-pillar-name { color: #f5f1ea; }

/* Month sections */
.cal-months { display: flex; flex-direction: column; gap: 56px; }

.cal-month {
  position: relative;
  padding: 28px 26px 30px;
  background: linear-gradient(175deg, rgba(255,255,255,0.035), rgba(255,255,255,0.005));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
}
.cal-month::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,180,87,0.7), transparent);
}
.cal-month-1::before { background: linear-gradient(90deg, transparent, var(--c1), transparent); }
.cal-month-2::before { background: linear-gradient(90deg, transparent, var(--c3), transparent); }
.cal-month-3::before { background: linear-gradient(90deg, transparent, var(--c5), transparent); }

.cal-month-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.cal-month-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 18px;
  background: rgba(255,180,87,0.07);
  border: 1px solid rgba(255,180,87,0.2);
  border-radius: 14px;
  min-width: 88px;
}
.cal-month-1 .cal-month-mark { background: rgba(255,180,87,0.07); border-color: rgba(255,180,87,0.22); }
.cal-month-2 .cal-month-mark { background: rgba(111,212,224,0.07); border-color: rgba(111,212,224,0.22); }
.cal-month-3 .cal-month-mark { background: rgba(87,210,156,0.07); border-color: rgba(87,210,156,0.22); }

.cal-month-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.6);
}
.cal-month-num {
  font-family: "Anton", sans-serif;
  font-size: 52px;
  line-height: 1;
  color: #f5f1ea;
}
.cal-month-1 .cal-month-num { color: var(--c1); }
.cal-month-2 .cal-month-num { color: var(--c3); }
.cal-month-3 .cal-month-num { color: var(--c5); }

.cal-month-info { flex: 1; }
.cal-month-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(245,241,234,0.55);
}
.cal-phase-chip {
  padding: 4px 10px;
  background: rgba(255,180,87,0.12);
  border: 1px solid rgba(255,180,87,0.2);
  border-radius: 4px;
  color: #ffb457;
  text-transform: uppercase;
}
.cal-month-eyebrow > span:not(.cal-phase-chip) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cal-month-eyebrow i[data-lucide] {
  width: 13px;
  height: 13px;
}
.cal-month-title {
  font-family: "General Sans", sans-serif;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  color: #f5f1ea;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.cal-month-goal {
  font-family: "General Sans", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(245,241,234,0.75);
  margin: 0 0 12px;
  max-width: 720px;
}
.cal-month-arc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.2);
  border-radius: 999px;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  font-style: italic;
  color: rgba(245,241,234,0.85);
}
.cal-arc-arrow {
  font-family: "JetBrains Mono", monospace;
  color: #ffb457;
  font-style: normal;
}
.cal-month-count {
  text-align: center;
  padding: 10px 18px;
  background: rgba(0,0,0,0.25);
  border-radius: 12px;
}
.cal-month-count-num {
  display: block;
  font-family: "Anton", sans-serif;
  font-size: 34px;
  line-height: 1;
  color: #f5f1ea;
}
.cal-month-count-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.5);
}

/* Video cards */
.cal-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
}
.cal-video {
  position: relative;
  padding: 20px 20px 20px 22px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.cal-video:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.45);
}
.cal-video-rail {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--pillar-color, rgba(255,255,255,0.2));
  box-shadow: 0 0 14px var(--pillar-color);
  opacity: 0.9;
}
.cal-video.cal-pillar-c1 { --pillar-color: var(--c1); }
.cal-video.cal-pillar-c2 { --pillar-color: var(--c2); }
.cal-video.cal-pillar-c3 { --pillar-color: var(--c3); }
.cal-video.cal-pillar-c4 { --pillar-color: var(--c4); }
.cal-video.cal-pillar-c5 { --pillar-color: var(--c5); }
.cal-video.cal-pillar-c6 { --pillar-color: var(--c6); }
.cal-video .cal-video-rail { background: var(--pillar-color); box-shadow: 0 0 14px var(--pillar-color); }

.cal-video-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
.cal-video-num {
  font-family: "Anton", sans-serif;
  font-size: 30px;
  line-height: 1;
  color: var(--pillar-color);
  min-width: 44px;
  padding-top: 2px;
}
.cal-video-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  flex: 1;
  min-width: 0;
}
.cal-video-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(245,241,234,0.85);
  letter-spacing: 0.04em;
}
.cal-video-pillar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pillar-color);
  letter-spacing: 0.04em;
}
.cal-video-date i[data-lucide],
.cal-video-pillar i[data-lucide] {
  width: 12px;
  height: 12px;
}

.cal-video-title {
  font-family: "General Sans", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.28;
  color: #f5f1ea;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}
.cal-video-hook {
  position: relative;
  padding: 10px 14px 10px 34px;
  background: rgba(0,0,0,0.24);
  border-radius: 8px;
  margin-bottom: 10px;
  font-family: "General Sans", sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(245,241,234,0.88);
  font-style: italic;
}
.cal-hook-mark {
  position: absolute;
  top: 8px;
  left: 10px;
  width: 16px;
  height: 16px;
  color: var(--pillar-color);
  opacity: 0.85;
}
.cal-video-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.45;
}
.cal-row-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.5);
  padding-top: 2px;
}
.cal-row-text { color: rgba(245,241,234,0.78); }
.cal-video-tag {
  margin-top: 12px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(100deg, rgba(255,180,87,0.12), rgba(255,180,87,0.03));
  border: 1px solid rgba(255,180,87,0.25);
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #ffb457;
  letter-spacing: 0.04em;
}
.cal-video-tag i[data-lucide] {
  width: 12px;
  height: 12px;
}

/* Shorts section */
.cal-shorts {
  margin-top: 48px;
  padding: 30px 28px;
  background: linear-gradient(160deg, rgba(168,139,255,0.06), rgba(255,255,255,0.015));
  border: 1px solid rgba(168,139,255,0.18);
  border-radius: 18px;
}
.cal-shorts-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.cal-shorts-header i[data-lucide] {
  width: 20px;
  height: 20px;
  color: #a98bff;
}
.cal-shorts-header h3 {
  font-family: "Anton", sans-serif;
  font-size: 26px;
  color: #f5f1ea;
  margin: 0;
  letter-spacing: -0.01em;
}
.cal-shorts-sub {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(245,241,234,0.55);
  letter-spacing: 0.05em;
}
.cal-shorts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.cal-short-card {
  padding: 18px 18px 16px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(168,139,255,0.18);
  border-radius: 12px;
  transition: all 0.3s ease;
}
.cal-short-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168,139,255,0.35);
}
.cal-short-dur {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(168,139,255,0.12);
  border: 1px solid rgba(168,139,255,0.25);
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #a98bff;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.cal-short-type {
  font-family: "General Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #f5f1ea;
  margin-bottom: 6px;
}
.cal-short-body {
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(245,241,234,0.72);
}
.cal-shorts-footer {
  padding: 14px 16px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  color: rgba(245,241,234,0.82);
}
.cal-shorts-footer i[data-lucide] {
  width: 16px;
  height: 16px;
  color: #ffb457;
}
.cal-shorts-footer strong {
  color: #ffb457;
  font-weight: 700;
}

/* Checkpoints */
.cal-checkpoints {
  margin-top: 32px;
  padding: 26px 28px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
}
.cal-check-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.cal-check-header i[data-lucide] {
  width: 20px;
  height: 20px;
  color: #ffb457;
}
.cal-check-header h3 {
  font-family: "Anton", sans-serif;
  font-size: 26px;
  color: #f5f1ea;
  margin: 0;
  letter-spacing: -0.01em;
}
.cal-check-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  position: relative;
}
.cal-check-rail::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,180,87,0.3), rgba(255,180,87,0.6), rgba(255,180,87,0.3));
}
.cal-check {
  position: relative;
  padding: 24px 14px 14px;
  text-align: center;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}
.cal-check-dot {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,180,87,0.9);
  box-shadow: 0 0 16px rgba(255,180,87,0.7);
}
.cal-check-gate .cal-check-dot {
  background: #ffb457;
  width: 18px;
  height: 18px;
  box-shadow: 0 0 24px rgba(255,180,87,1);
}
.cal-check-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.6);
  margin-bottom: 6px;
}
.cal-check-label {
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #f5f1ea;
  margin-bottom: 4px;
}
.cal-check-sub {
  font-family: "General Sans", sans-serif;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(245,241,234,0.65);
}
.cal-check-gate { border-color: rgba(255,180,87,0.4); background: rgba(255,180,87,0.05); }
.cal-check-gate .cal-check-label { color: #ffb457; }

/* Related */
.cal-related {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cal-related h3 {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.55);
  margin: 0 0 14px;
  font-weight: 500;
}
.cal-related-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cal-related-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: #f5f1ea;
  text-decoration: none;
  font-family: "General Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.cal-related-chip:hover {
  background: rgba(255,180,87,0.08);
  border-color: rgba(255,180,87,0.35);
  color: #ffb457;
  transform: translateY(-1px);
}
.cal-related-chip i[data-lucide] {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

/* Mobile */
@media (max-width: 820px) {
  .cal-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .cal-stat-wide {
    grid-column: 1 / -1;
  }
  .cal-month-header {
    grid-template-columns: 1fr;
  }
  .cal-month-count {
    justify-self: start;
  }
  .cal-videos {
    grid-template-columns: 1fr;
  }
  .cal-check-rail {
    grid-template-columns: 1fr;
  }
  .cal-check-rail::before { display: none; }
  .cal-shorts-sub {
    display: none;
  }
}

/* ==================== UPGRADED MARKDOWN DOCS ==================== */
/* Applied to ALL markdown-rendered sections: engine, schedule, split,
   infrastructure, engagement, scope, academy, deliverables, persona, etc. */

/* H3 → styled section card */
.md-section-card {
  position: relative;
  margin: 22px 0;
  padding: 26px 28px 24px;
  background: linear-gradient(170deg, rgba(255,255,255,0.035), rgba(255,255,255,0.008));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.md-section-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,180,87,0.8), rgba(255,180,87,0.2));
  border-radius: 0 0 2px 2px;
}
.md-section-card:hover {
  border-color: rgba(255,255,255,0.1);
  background: linear-gradient(170deg, rgba(255,255,255,0.045), rgba(255,255,255,0.01));
}
.md-section-card-title {
  font-family: "General Sans", sans-serif;
  font-size: clamp(19px, 1.8vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  color: #f5f1ea;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.md-section-card > p {
  font-family: "General Sans", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(245,241,234,0.82);
  margin: 0 0 12px;
}
.md-section-card > p:last-child {
  margin-bottom: 0;
}

/* Label-value rows inside section cards */
.md-kv-row {
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 10px 14px;
  margin: 8px 0 !important;
  background: rgba(0,0,0,0.2);
  border-left: 2px solid rgba(255,180,87,0.4);
  border-radius: 0 8px 8px 0;
}
.md-kv-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffb457;
  font-weight: 500;
  padding-top: 2px;
}
.md-kv-value {
  font-family: "General Sans", sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(245,241,234,0.88);
}
.md-kv-value em { color: #ffb457; font-style: normal; }

/* Rich lists inside section cards */
.md-section-card ul.md-rich-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.md-section-card ul.md-rich-list > li {
  position: relative;
  padding: 8px 0 8px 26px;
  font-family: "General Sans", sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(245,241,234,0.82);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.md-section-card ul.md-rich-list > li:last-child { border-bottom: none; }
.md-section-card ul.md-rich-list > li::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,180,87,0.7);
  box-shadow: 0 0 10px rgba(255,180,87,0.5);
}
.md-section-card ul.md-rich-list > li strong {
  color: #f5f1ea;
  font-weight: 700;
}
.md-section-card ul.md-rich-list ul {
  margin-top: 6px;
  padding-left: 18px;
  border-left: 1px dashed rgba(255,255,255,0.08);
}

/* Quote blocks outside hero */
.md-quote {
  position: relative;
  margin: 22px 0;
  padding: 18px 22px 18px 44px;
  background: linear-gradient(100deg, rgba(255,180,87,0.06), rgba(255,180,87,0.01));
  border-left: 3px solid rgba(255,180,87,0.5);
  border-radius: 8px;
  font-family: "General Sans", sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(245,241,234,0.9);
  font-style: italic;
}
.md-quote::before {
  content: "\201C";
  position: absolute;
  top: -4px;
  left: 12px;
  font-family: "Anton", serif;
  font-size: 56px;
  color: rgba(255,180,87,0.35);
  font-style: normal;
  line-height: 1;
}
.md-quote p { margin: 0; }

/* Metric highlights — $, %, K/M numbers inside strong */
.md-metric {
  display: inline-block;
  padding: 1px 8px;
  background: linear-gradient(100deg, rgba(255,180,87,0.14), rgba(255,180,87,0.05));
  border: 1px solid rgba(255,180,87,0.25);
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95em;
  color: #ffb457 !important;
  letter-spacing: 0.02em;
}

/* Divider */
hr.md-divider {
  position: relative;
  border: none;
  height: 1px;
  margin: 36px 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}
hr.md-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,180,87,0.6);
  box-shadow: 0 0 16px rgba(255,180,87,0.5);
}

/* Table wrapper for horizontal scroll on mobile */
.md-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0;
  -webkit-overflow-scrolling: touch;
}
.md-table-wrap::-webkit-scrollbar { height: 6px; }
.md-table-wrap::-webkit-scrollbar-thumb { background: rgba(255,180,87,0.3); border-radius: 3px; }

table.md-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  min-width: 560px;
}
table.md-table thead th {
  background: linear-gradient(180deg, rgba(255,180,87,0.12), rgba(255,180,87,0.04));
  color: #ffb457;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,180,87,0.25);
  text-align: left;
}
table.md-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(245,241,234,0.85);
  line-height: 1.5;
}
table.md-table tbody tr:hover td {
  background: rgba(255,255,255,0.025);
}
table.md-table tbody tr:last-child td {
  border-bottom: none;
}

/* Mobile tweaks for upgraded markdown */
@media (max-width: 720px) {
  .md-section-card {
    padding: 20px 18px 18px;
  }
  .md-kv-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .md-kv-label {
    padding-top: 0;
  }
}

/* ==================== FLAGSHIP NAV LINK ==================== */
.nav-link-flagship {
  position: relative;
  background: linear-gradient(100deg, rgba(255,180,87,0.1), rgba(255,180,87,0.02));
  border: 1px solid rgba(255,180,87,0.22);
  border-radius: 8px;
  overflow: hidden;
}
.nav-link-flagship::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,180,87,0.08) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.nav-link-flagship:hover::before {
  transform: translateX(100%);
}
.nav-link-flagship:hover {
  background: linear-gradient(100deg, rgba(255,180,87,0.18), rgba(255,180,87,0.05));
  border-color: rgba(255,180,87,0.4);
}
.nav-link-flagship span { color: #ffb457; font-weight: 600; }
.nav-link-flagship i[data-lucide] { color: #ffb457; }
.nav-link-flagship.active { background: rgba(255,180,87,0.18); border-color: rgba(255,180,87,0.55); }
.nav-badge {
  margin-left: auto;
  padding: 2px 8px;
  background: #ffb457;
  color: #0a0908 !important;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  line-height: 1.4;
  box-shadow: 0 0 16px rgba(255,180,87,0.5);
  animation: flagshipPulse 2.6s ease-in-out infinite;
}
@keyframes flagshipPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255,180,87,0.4); }
  50%      { box-shadow: 0 0 22px rgba(255,180,87,0.9); }
}

/* ==================== THE ART OF THE MEETING ==================== */
.mtg-view {
  --mtg-gold: #ffb457;
  --mtg-gold-soft: rgba(255,180,87,0.18);
  --mtg-ink: #f5f1ea;
  --mtg-muted: rgba(245,241,234,0.7);
  --m1: #ffb457;
  --m2: #6fd4e0;
  --m3: #e87ac6;
  --m4: #a98bff;
  --m5: #57d29c;
  --m6: #e56a6a;
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
}

/* Hero */
.mtg-hero {
  position: relative;
  margin: 8px 0 60px;
  padding: 60px 36px 70px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(155deg, rgba(255,180,87,0.07) 0%, rgba(30,20,10,0.3) 50%, rgba(255,180,87,0.04) 100%);
  border: 1px solid rgba(255,180,87,0.2);
}
.mtg-hero-bg {
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255,180,87,0.22), transparent 45%),
    radial-gradient(ellipse at 80% 70%, rgba(168,139,255,0.14), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(111,212,224,0.12), transparent 50%);
  filter: blur(30px);
  animation: mtgHeroBg 22s ease-in-out infinite alternate;
}
@keyframes mtgHeroBg {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.08); }
}
.mtg-hero-inner {
  position: relative;
  max-width: 900px;
  z-index: 1;
}
.mtg-flagship-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  background: linear-gradient(100deg, rgba(255,180,87,0.18), rgba(255,180,87,0.06));
  border: 1px solid rgba(255,180,87,0.45);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mtg-gold);
  margin-bottom: 24px;
}
.mtg-flagship-chip i[data-lucide] {
  width: 14px;
  height: 14px;
  fill: var(--mtg-gold);
}
.mtg-hero-title {
  font-family: "Anton", "General Sans", sans-serif;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  color: var(--mtg-ink);
  font-weight: 400;
}
.mtg-hero-title .title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: mtgTitleIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 85ms);
  margin-right: 0.14em;
}
.mtg-hero-title .title-word:nth-child(4) {
  background: linear-gradient(100deg, var(--mtg-gold), #ffd29a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes mtgTitleIn {
  to { opacity: 1; transform: translateY(0); }
}
.mtg-hero-kicker {
  font-family: "General Sans", sans-serif;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.4;
  color: var(--mtg-gold);
  font-weight: 600;
  margin: 0 0 18px;
  max-width: 720px;
}
.mtg-hero-subtitle {
  font-family: "General Sans", sans-serif;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.65;
  color: var(--mtg-muted);
  max-width: 720px;
  margin: 0 0 34px;
}
.mtg-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
.mtg-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: "General Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid transparent;
}
.mtg-btn i[data-lucide] {
  width: 16px;
  height: 16px;
}
.mtg-btn-primary {
  background: linear-gradient(100deg, #ffb457, #ffd29a);
  color: #0a0908;
  box-shadow: 0 10px 28px -8px rgba(255,180,87,0.55);
}
.mtg-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(255,180,87,0.7);
}
.mtg-btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--mtg-ink);
  border-color: rgba(255,255,255,0.14);
}
.mtg-btn-ghost:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.24);
  transform: translateY(-2px);
}
.mtg-btn-lg {
  padding: 18px 30px;
  font-size: 17px;
}
.mtg-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: "General Sans", sans-serif;
  font-size: 13.5px;
  color: var(--mtg-muted);
}
.mtg-hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mtg-hero-meta-item i[data-lucide] {
  width: 15px;
  height: 15px;
  color: var(--mtg-gold);
}
.mtg-hero-meta-item strong { color: var(--mtg-ink); font-weight: 700; }

/* Promise */
.mtg-promise {
  margin: 0 0 56px;
  padding: 40px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  position: relative;
}
.mtg-promise-quote {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 56px;
}
.mtg-promise-mark {
  position: absolute;
  top: 4px;
  left: 0;
  width: 36px;
  height: 36px;
  color: var(--mtg-gold);
  opacity: 0.7;
}
.mtg-promise-quote p {
  font-family: "General Sans", sans-serif;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--mtg-ink);
  margin: 0 0 18px;
  font-style: italic;
}
.mtg-promise-quote em {
  color: var(--mtg-gold);
  font-style: italic;
  font-weight: 600;
}
.mtg-promise-sig {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--mtg-gold);
  letter-spacing: 0.04em;
}

/* Proof bar */
.mtg-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 70px;
  padding: 28px 22px;
  background: linear-gradient(180deg, rgba(255,180,87,0.05), rgba(0,0,0,0.1));
  border: 1px solid rgba(255,180,87,0.18);
  border-radius: 16px;
}
.mtg-proof-stat {
  text-align: center;
  padding: 8px 4px;
  border-right: 1px dashed rgba(255,255,255,0.08);
}
.mtg-proof-stat:last-child { border-right: none; }
.mtg-proof-big {
  font-family: "Anton", sans-serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  color: var(--mtg-gold);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.mtg-proof-small {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mtg-muted);
}

/* Section head */
.mtg-section-head {
  margin-bottom: 30px;
  max-width: 760px;
}
.mtg-section-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mtg-gold);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mtg-section-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--mtg-gold);
}
.mtg-eyebrow-green { color: #57d29c; }
.mtg-eyebrow-green::before { background: #57d29c; }
.mtg-eyebrow-red { color: #e56a6a; }
.mtg-eyebrow-red::before { background: #e56a6a; }
.mtg-section-title {
  font-family: "Anton", sans-serif;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--mtg-ink);
  margin: 0 0 14px;
  font-weight: 400;
}
.mtg-section-sub {
  font-family: "General Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--mtg-muted);
  margin: 0;
}

/* Curriculum */
.mtg-curriculum { margin: 0 0 72px; }
.mtg-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.mtg-module {
  position: relative;
  padding: 26px 24px 24px;
  background: linear-gradient(175deg, rgba(255,255,255,0.04), rgba(255,255,255,0.008));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mtg-module:hover {
  transform: translateY(-4px);
  border-color: rgba(255,180,87,0.2);
  background: linear-gradient(175deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012));
  box-shadow: 0 22px 50px -18px rgba(0,0,0,0.5);
}
.mtg-module-rail {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--mod-color, var(--mtg-gold));
  opacity: 0.8;
}
.mtg-m1 { --mod-color: var(--m1); }
.mtg-m2 { --mod-color: var(--m2); }
.mtg-m3 { --mod-color: var(--m3); }
.mtg-m4 { --mod-color: var(--m4); }
.mtg-m5 { --mod-color: var(--m5); }
.mtg-m6 { --mod-color: var(--m6); }
.mtg-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.mtg-module-num {
  font-family: "Anton", sans-serif;
  font-size: 44px;
  line-height: 1;
  color: var(--mod-color);
  letter-spacing: -0.02em;
}
.mtg-module-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--mod-color);
  border-radius: 10px;
}
.mtg-module-icon i[data-lucide] {
  width: 19px;
  height: 19px;
  color: var(--mod-color);
}
.mtg-module-title {
  font-family: "General Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.18;
  color: var(--mtg-ink);
  margin: 0 0 6px;
  letter-spacing: -0.008em;
}
.mtg-module-tagline {
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: var(--mod-color);
  font-style: italic;
  margin-bottom: 12px;
  font-weight: 500;
}
.mtg-module-body {
  font-family: "General Sans", sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--mtg-muted);
  margin: 0;
}

/* Outcomes */
.mtg-outcomes-section { margin: 0 0 72px; }
.mtg-outcomes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.mtg-outcome {
  padding: 24px 20px 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  text-align: left;
  transition: all 0.3s ease;
}
.mtg-outcome:hover {
  border-color: rgba(87,210,156,0.35);
  background: rgba(87,210,156,0.04);
  transform: translateY(-2px);
}
.mtg-outcome-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(87,210,156,0.1);
  border: 1px solid rgba(87,210,156,0.3);
  border-radius: 10px;
  margin-bottom: 16px;
}
.mtg-outcome-icon i[data-lucide] {
  width: 20px;
  height: 20px;
  color: #57d29c;
}
.mtg-outcome-metric {
  font-family: "Anton", sans-serif;
  font-size: 26px;
  line-height: 1.05;
  color: #57d29c;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.mtg-outcome-label {
  font-family: "General Sans", sans-serif;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--mtg-muted);
}

/* For / Not For */
.mtg-for-notfor {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  margin: 0 0 72px;
}
.mtg-for, .mtg-notfor {
  padding: 28px 26px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.07);
}
.mtg-for {
  background: linear-gradient(160deg, rgba(87,210,156,0.06), rgba(255,255,255,0.015));
  border-color: rgba(87,210,156,0.22);
}
.mtg-notfor {
  background: linear-gradient(160deg, rgba(229,106,106,0.05), rgba(255,255,255,0.01));
  border-color: rgba(229,106,106,0.2);
}
.mtg-for-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.mtg-for-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  padding: 14px;
  background: rgba(0,0,0,0.22);
  border-radius: 10px;
  align-items: baseline;
}
.mtg-for-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #57d29c;
  padding-top: 3px;
}
.mtg-for-text {
  font-family: "General Sans", sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--mtg-ink);
}
.mtg-notfor-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mtg-notfor-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(245,241,234,0.82);
}
.mtg-notfor-list i[data-lucide] {
  width: 14px;
  height: 14px;
  color: #e56a6a;
  flex-shrink: 0;
  margin-top: 4px;
}

/* Pricing */
.mtg-pricing { margin: 0 0 72px; }
.mtg-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: stretch;
}
.mtg-tier {
  position: relative;
  padding: 30px 26px 26px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.mtg-tier:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.15);
}
.mtg-tier-featured {
  background: linear-gradient(165deg, rgba(255,180,87,0.1), rgba(255,180,87,0.02));
  border-color: rgba(255,180,87,0.42);
  box-shadow: 0 24px 52px -18px rgba(255,180,87,0.25);
  transform: translateY(-6px);
}
.mtg-tier-featured:hover {
  transform: translateY(-9px);
}
.mtg-tier-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  background: var(--mtg-gold);
  color: #0a0908;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mtg-tier-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mtg-muted);
  margin-bottom: 14px;
}
.mtg-tier-featured .mtg-tier-name { color: var(--mtg-gold); }
.mtg-tier-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.mtg-tier-price-main {
  font-family: "Anton", sans-serif;
  font-size: clamp(38px, 4.5vw, 54px);
  line-height: 1;
  color: var(--mtg-ink);
  letter-spacing: -0.02em;
}
.mtg-tier-featured .mtg-tier-price-main { color: var(--mtg-gold); }
.mtg-tier-price-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mtg-muted);
}
.mtg-tier-lead {
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--mtg-muted);
  margin: 0 0 20px;
  min-height: 48px;
}
.mtg-tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.mtg-tier-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: "General Sans", sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--mtg-ink);
}
.mtg-tier-features i[data-lucide] {
  width: 14px;
  height: 14px;
  color: #57d29c;
  flex-shrink: 0;
  margin-top: 4px;
}
.mtg-tier-featured .mtg-tier-features i[data-lucide] { color: var(--mtg-gold); }
.mtg-tier-cta {
  width: 100%;
  padding: 13px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  color: var(--mtg-ink);
  font-family: "General Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mtg-tier-cta i[data-lucide] {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}
.mtg-tier-cta:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
}
.mtg-tier-cta:hover i[data-lucide] {
  transform: translateX(3px);
}
.mtg-tier-featured .mtg-tier-cta {
  background: linear-gradient(100deg, var(--mtg-gold), #ffd29a);
  color: #0a0908;
  border-color: transparent;
}
.mtg-tier-featured .mtg-tier-cta:hover {
  box-shadow: 0 14px 30px -10px rgba(255,180,87,0.55);
}

/* Corporate / Enterprise tier — purple accent */
.mtg-tier-enterprise {
  background: linear-gradient(165deg, rgba(168,139,255,0.09), rgba(168,139,255,0.01));
  border-color: rgba(168,139,255,0.32);
}
.mtg-tier-enterprise:hover {
  border-color: rgba(168,139,255,0.55);
  box-shadow: 0 24px 50px -18px rgba(168,139,255,0.3);
}
.mtg-tier-ribbon-enterprise {
  background: linear-gradient(100deg, #a98bff, #c7b1ff) !important;
  color: #fff !important;
}
.mtg-tier-enterprise .mtg-tier-name { color: #c7b1ff; }
.mtg-tier-enterprise .mtg-tier-price-main { color: #c7b1ff; }
.mtg-tier-enterprise .mtg-tier-features i[data-lucide] { color: #a98bff; }
.mtg-tier-enterprise .mtg-tier-cta {
  background: rgba(168,139,255,0.15);
  border-color: rgba(168,139,255,0.4);
  color: #fff;
}
.mtg-tier-enterprise .mtg-tier-cta:hover {
  background: linear-gradient(100deg, #a98bff, #c7b1ff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(168,139,255,0.55);
}
.mtg-pricing-note {
  margin-top: 24px;
  padding: 14px 18px;
  background: rgba(0,0,0,0.24);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--mtg-muted);
}
.mtg-pricing-note i[data-lucide] {
  width: 16px;
  height: 16px;
  color: var(--mtg-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Final CTA */
.mtg-final-cta {
  margin: 0 0 64px;
  padding: 60px 40px;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(255,180,87,0.16), transparent 65%),
    linear-gradient(160deg, rgba(255,180,87,0.08), rgba(0,0,0,0.2));
  border: 1px solid rgba(255,180,87,0.32);
  border-radius: 22px;
}
.mtg-final-title {
  font-family: "Anton", sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--mtg-gold);
  margin: 0 0 14px;
  font-weight: 400;
}
.mtg-final-sub {
  font-family: "General Sans", sans-serif;
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--mtg-ink);
  margin: 0 0 28px;
}
.mtg-final-fine {
  margin-top: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--mtg-muted);
}

/* Related */
.mtg-related {
  margin-top: 32px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mtg-related h3 {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mtg-muted);
  margin: 0 0 14px;
  font-weight: 500;
}
.mtg-related-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mtg-related-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: var(--mtg-ink);
  text-decoration: none;
  font-family: "General Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.mtg-related-chip:hover {
  background: rgba(255,180,87,0.08);
  border-color: rgba(255,180,87,0.35);
  color: var(--mtg-gold);
  transform: translateY(-1px);
}
.mtg-related-chip i[data-lucide] {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

/* Mobile tweaks */
@media (max-width: 1180px) {
  .mtg-tiers {
    grid-template-columns: repeat(2, 1fr);
  }
  .mtg-tier-featured {
    transform: none;
  }
}
@media (max-width: 960px) {
  .mtg-for-notfor {
    grid-template-columns: 1fr;
  }
  .mtg-proof {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .mtg-proof-stat:nth-child(2) { border-right: none; }
  .mtg-hero { padding: 44px 24px 50px; }
  .mtg-promise { padding: 28px 22px; }
  .mtg-promise-quote { padding-left: 40px; }
}
@media (max-width: 700px) {
  .mtg-tiers {
    grid-template-columns: 1fr;
  }
}

/* ==================== AUTH GATE ==================== */
body.auth-locked {
  overflow: hidden;
}
body.auth-locked .app,
body.auth-locked .cosmic-bg,
body.auth-locked .backdrop-glow {
  visibility: hidden;
  pointer-events: none;
}
.auth-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #0a0908;
  opacity: 1;
  transition: opacity 0.5s ease;
  place-items: center;
  padding: 24px;
}
body.auth-locked .auth-gate {
  display: grid;
}
.auth-gate.auth-authorized {
  opacity: 0;
  pointer-events: none;
}
.auth-gate-bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255,180,87,0.14), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(168,139,255,0.1), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(111,212,224,0.07), transparent 55%);
  filter: blur(40px);
  animation: authBg 24s ease-in-out infinite alternate;
}
@keyframes authBg {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(20px,-20px) scale(1.05); }
}
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 36px 32px 28px;
  background: linear-gradient(170deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,180,87,0.08) inset;
  animation: authCardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes authCardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,180,87,0.8), transparent);
  border-radius: 20px 20px 0 0;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.auth-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.auth-brand-text { line-height: 1.2; }
.auth-title {
  font-family: "General Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #f5f1ea;
  letter-spacing: -0.01em;
}
.auth-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,180,87,0.85);
  margin-top: 4px;
}
.auth-lead {
  font-family: "General Sans", sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(245,241,234,0.72);
  margin: 0 0 22px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.auth-field label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.55);
}
.auth-field input {
  width: 100%;
  padding: 13px 14px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #f5f1ea;
  font-family: "General Sans", sans-serif;
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
}
.auth-field input::placeholder {
  color: rgba(245,241,234,0.3);
}
.auth-field input:focus {
  border-color: rgba(255,180,87,0.5);
  background: rgba(0,0,0,0.5);
  box-shadow: 0 0 0 3px rgba(255,180,87,0.12);
}
.auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 18px;
  background: linear-gradient(100deg, #ffb457, #ffd29a);
  border: none;
  border-radius: 999px;
  color: #0a0908;
  font-family: "General Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 26px -8px rgba(255,180,87,0.5);
  transition: all 0.25s ease;
}
.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(255,180,87,0.65);
}
.auth-submit:active { transform: translateY(0); }
.auth-submit i[data-lucide] { width: 16px; height: 16px; }
.auth-error {
  margin-top: 12px;
  min-height: 18px;
  font-family: "General Sans", sans-serif;
  font-size: 13px;
  color: #e56a6a;
  text-align: center;
}
.auth-foot {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: "General Sans", sans-serif;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(245,241,234,0.4);
  text-align: center;
}

@media (max-width: 520px) {
  .auth-card { padding: 28px 22px 22px; }
  .auth-brand { gap: 10px; }
  .auth-logo { width: 36px; height: 36px; }
}
@media (max-width: 600px) {
  .mtg-hero { padding: 36px 18px 40px; border-radius: 16px; }
  .mtg-hero-cta .mtg-btn { flex: 1; justify-content: center; }
  .mtg-proof { padding: 20px 12px; }
  .mtg-modules, .mtg-outcomes { grid-template-columns: 1fr; }
}
