/* ===================================================================
   TRAINQUANTS BLOG & TEAM DOSSIER STYLESHEET
   Anti-Slop Institutional Design System (Apple / Stripe Craft)
   Compatible with Dark Mode (Default) & Light Mode
   =================================================================== */

.blog-hero-section {
  position: relative;
  padding-top: 130px;
  padding-bottom: 50px;
  text-align: center;
  z-index: 2;
}

.blog-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--apple-blue-subtle, rgba(41, 151, 255, 0.08));
  border: 1px solid var(--apple-blue-border, rgba(41, 151, 255, 0.32));
  border-radius: var(--radius-full, 9999px);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  color: var(--apple-blue, #2997ff);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.blog-headline {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(34px, 4.8vw, 62px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-pure, #ffffff);
  max-width: 980px;
  margin: 0 auto 20px auto;
  text-transform: uppercase;
}

.blog-subheadline {
  font-family: var(--font-body, sans-serif);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--text-secondary, #86868b);
  max-width: 760px;
  margin: 0 auto 36px auto;
}

/* ===================================================================
   SEARCH & FILTER BAR
   =================================================================== */
.blog-controls-wrapper {
  max-width: 1120px;
  margin: 0 auto 40px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
  position: relative;
}

.blog-search-box {
  position: relative;
  width: 100%;
}

.blog-search-input {
  width: 100%;
  padding: 14px 20px 14px 46px;
  background: var(--bg-card, rgba(16, 16, 18, 0.7));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 14px);
  color: var(--text-pure, #ffffff);
  font-family: var(--font-body, sans-serif);
  font-size: 14px;
  transition: all 0.2s ease;
  outline: none;
}

.blog-search-input:focus {
  border-color: var(--apple-blue, #2997ff);
  background: var(--bg-surface-elevated, rgba(28, 28, 30, 0.88));
  box-shadow: 0 0 20px var(--apple-blue-glow, rgba(41, 151, 255, 0.2));
}

.blog-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted, #6e6e73);
  font-size: 14px;
  pointer-events: none;
}

.blog-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.blog-filter-tabs::-webkit-scrollbar {
  display: none;
}

.blog-filter-btn {
  background: var(--bg-card, rgba(16, 16, 18, 0.7));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  color: var(--text-secondary, #86868b);
  padding: 8px 16px;
  border-radius: var(--radius-full, 9999px);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-filter-btn:hover {
  background: var(--bg-card-hover, rgba(24, 24, 27, 0.9));
  color: var(--text-pure, #ffffff);
  border-color: var(--border-medium, rgba(255, 255, 255, 0.14));
}

.blog-filter-btn.active {
  background: var(--apple-blue, #2997ff);
  border-color: var(--apple-blue, #2997ff);
  color: #000000;
  font-weight: 700;
  box-shadow: 0 4px 16px var(--apple-blue-glow, rgba(41, 151, 255, 0.25));
}

/* ===================================================================
   FEATURED LEAD STORY CARD
   =================================================================== */
.featured-dispatch-card {
  max-width: 1120px;
  margin: 0 auto 60px auto;
  background: var(--bg-card, rgba(16, 16, 18, 0.7));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 22px);
  padding: clamp(28px, 4vw, 44px);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-subtle, 0 4px 20px rgba(0, 0, 0, 0.5));
  z-index: 2;
}

.featured-dispatch-card:hover {
  border-color: var(--apple-blue-border, rgba(41, 151, 255, 0.35));
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6), 0 0 25px var(--apple-blue-glow, rgba(41, 151, 255, 0.15));
}

.featured-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.featured-badge-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--apple-blue, #2997ff);
  color: #000000;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-xs, 4px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dispatch-tag {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--text-muted, #6e6e73);
  font-weight: 600;
}

.featured-dispatch-title {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text-pure, #ffffff);
  margin-bottom: 16px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.featured-dispatch-title:hover {
  color: var(--apple-blue, #2997ff);
}

.featured-dispatch-excerpt {
  font-family: var(--font-body, sans-serif);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-secondary, #86868b);
  margin-bottom: 24px;
  max-width: 900px;
}

.dispatch-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.author-meta-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1c1c1e, #2c2c2e);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  flex-shrink: 0;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-pure, #ffffff);
}

.author-role {
  font-size: 12px;
  color: var(--text-muted, #6e6e73);
}

.dispatch-read-telemetry {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  color: var(--text-muted, #6e6e73);
}

.btn-read-dispatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--apple-blue-subtle, rgba(41, 151, 255, 0.1));
  border: 1px solid var(--apple-blue-border, rgba(41, 151, 255, 0.35));
  color: var(--apple-blue, #2997ff);
  padding: 8px 18px;
  border-radius: var(--radius-full, 9999px);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-read-dispatch:hover {
  background: var(--apple-blue, #2997ff);
  color: #000000;
  box-shadow: 0 4px 18px var(--apple-blue-glow, rgba(41, 151, 255, 0.3));
}

/* ===================================================================
   MEET THE TEAM DOSSIER SECTION
   =================================================================== */
.team-section {
  position: relative;
  padding: 60px 0 80px 0;
  z-index: 2;
}

.team-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.single-founder-grid {
  display: block;
}

.founder-featured-card {
  background: rgba(14, 16, 20, 0.78);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(41, 151, 255, 0.22);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(41, 151, 255, 0.12);
  padding: clamp(30px, 4vw, 48px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.founder-featured-card:hover {
  border-color: rgba(41, 151, 255, 0.45);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.75), 0 0 40px rgba(41, 151, 255, 0.2);
  transform: translateY(-3px);
}

.founder-featured-card .team-avatar-box {
  width: 72px;
  height: 72px;
  font-size: 26px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(41, 151, 255, 0.2), rgba(41, 151, 255, 0.05));
  border: 1.5px solid rgba(41, 151, 255, 0.45);
  color: var(--apple-blue, #2997ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-display, sans-serif);
  flex-shrink: 0;
}

.founder-featured-card .team-member-name {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  color: var(--text-pure, #ffffff);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.founder-featured-card .team-member-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary, #a1a1aa);
  margin-top: 4px;
}

.founder-featured-card .team-member-focus {
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  color: var(--apple-blue, #2997ff);
  letter-spacing: 0.08em;
  margin-top: 4px;
  display: inline-block;
}

.founder-featured-card .team-member-bio {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-primary, #d4d4d8);
  margin: 18px 0 22px 0;
}

.founder-featured-card .team-member-quote {
  font-size: 14px;
  line-height: 1.65;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--apple-blue, #2997ff);
  border-radius: 0 12px 12px 0;
  color: var(--text-pure, #f5f5f7);
  font-style: italic;
}

html.light-mode .founder-featured-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 113, 227, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06), 0 0 25px rgba(0, 113, 227, 0.08);
}

html.light-mode .founder-featured-card:hover {
  border-color: rgba(0, 113, 227, 0.45);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1), 0 0 30px rgba(0, 113, 227, 0.12);
}

html.light-mode .founder-featured-card .team-avatar-box {
  background: rgba(0, 113, 227, 0.1);
  border-color: rgba(0, 113, 227, 0.35);
  color: #0071e3;
}

html.light-mode .founder-featured-card .team-member-name {
  color: #111113;
}

html.light-mode .founder-featured-card .team-member-title {
  color: #515154;
}

html.light-mode .founder-featured-card .team-member-focus {
  color: #0071e3;
}

html.light-mode .founder-featured-card .team-member-bio {
  color: #333336;
}

html.light-mode .founder-featured-card .team-member-quote {
  background: rgba(0, 0, 0, 0.03);
  border-left-color: #0071e3;
  color: #1d1d1f;
}

.team-card {
  background: var(--bg-card, rgba(16, 16, 18, 0.7));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 22px);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  box-shadow: var(--shadow-subtle, 0 4px 20px rgba(0, 0, 0, 0.4));
}

.team-card:hover {
  border-color: var(--apple-blue-border, rgba(41, 151, 255, 0.35));
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px var(--apple-blue-glow, rgba(41, 151, 255, 0.12));
}

.team-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.team-avatar-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(41, 151, 255, 0.15), rgba(41, 151, 255, 0.04));
  border: 1px solid rgba(41, 151, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--apple-blue, #2997ff);
  flex-shrink: 0;
}

.team-meta-info {
  display: flex;
  flex-direction: column;
}

.team-member-name {
  font-family: var(--font-display, sans-serif);
  font-size: 19px;
  font-weight: 800;
  color: var(--text-pure, #ffffff);
  letter-spacing: -0.015em;
}

.team-member-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--apple-blue, #2997ff);
  margin-top: 2px;
}

.team-member-focus {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--text-muted, #6e6e73);
  margin-top: 2px;
}

.team-member-bio {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary, #86868b);
  margin-bottom: 18px;
  flex-grow: 1;
}

.team-member-quote {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--apple-blue, #2997ff);
  border-radius: 0 var(--radius-sm, 8px) var(--radius-sm, 8px) 0;
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-primary, #f5f5f7);
  margin-bottom: 18px;
}

.team-skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-skill-chip {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  color: var(--text-secondary, #86868b);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ===================================================================
   RESEARCH DISPATCHES GRID
   =================================================================== */
.dispatches-section {
  position: relative;
  padding: 40px 0 80px 0;
  z-index: 2;
}

.dispatches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.dispatch-card {
  background: var(--bg-card, rgba(16, 16, 18, 0.7));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 22px);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-subtle, 0 4px 20px rgba(0, 0, 0, 0.4));
}

.dispatch-card:hover {
  border-color: var(--apple-blue-border, rgba(41, 151, 255, 0.35));
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px var(--apple-blue-glow, rgba(41, 151, 255, 0.12));
}

.dispatch-card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dispatch-category-chip {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 700;
  background: var(--apple-blue-subtle, rgba(41, 151, 255, 0.08));
  color: var(--apple-blue, #2997ff);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--apple-blue-border, rgba(41, 151, 255, 0.2));
}

.dispatch-time-estimate {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--text-muted, #6e6e73);
}

.dispatch-card-title {
  font-family: var(--font-display, sans-serif);
  font-size: 18.5px;
  font-weight: 800;
  line-height: 1.28;
  color: var(--text-pure, #ffffff);
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.dispatch-card:hover .dispatch-card-title {
  color: var(--apple-blue, #2997ff);
}

.dispatch-card-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary, #86868b);
  margin-bottom: 20px;
  flex-grow: 1;
}

.dispatch-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  padding-top: 16px;
  font-size: 12px;
  color: var(--text-muted, #6e6e73);
}

.dispatch-footer-author {
  font-weight: 600;
  color: var(--text-primary, #f5f5f7);
}

.dispatch-read-arrow {
  color: var(--apple-blue, #2997ff);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 12px;
}

/* ===================================================================
   INTERACTIVE ARTICLE READER MODAL
   =================================================================== */
.article-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.article-modal-overlay.active {
  display: flex;
}

.article-modal-container {
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  background: var(--bg-card, rgba(16, 16, 18, 0.95));
  border: 1px solid var(--border-medium, rgba(255, 255, 255, 0.14));
  border-radius: var(--radius-lg, 22px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  position: relative;
}

.article-modal-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.article-modal-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  color: var(--text-muted, #6e6e73);
}

.article-modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  color: var(--text-primary, #f5f5f7);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.article-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.article-modal-content-body {
  padding: 32px 36px;
  overflow-y: auto;
  font-family: var(--font-body, sans-serif);
  color: var(--text-primary, #f5f5f7);
  line-height: 1.75;
}

.article-modal-content-body h1 {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--text-pure, #ffffff);
  line-height: 1.2;
  margin-bottom: 16px;
}

.article-modal-content-body h2 {
  font-family: var(--font-display, sans-serif);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-pure, #ffffff);
  margin: 32px 0 14px 0;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  padding-bottom: 8px;
}

.article-modal-content-body p {
  margin-bottom: 18px;
  font-size: 15.5px;
  color: var(--text-secondary, #86868b);
}

.article-modal-content-body code {
  font-family: var(--font-mono, monospace);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--apple-blue-light, #70b4ff);
}

.article-modal-content-body pre {
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm, 8px);
  padding: 16px;
  overflow-x: auto;
  margin: 20px 0;
}

.article-modal-content-body pre code {
  background: transparent;
  padding: 0;
  color: #f5f5f7;
  font-size: 13px;
  line-height: 1.5;
}

.article-callout-box {
  background: rgba(41, 151, 255, 0.05);
  border-left: 3px solid var(--apple-blue, #2997ff);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14.5px;
}

/* ===================================================================
   LIGHT MODE OVERRIDES FOR BLOG & TEAM
   =================================================================== */
html.light-mode,
:root[data-theme="light"],
html.light-mode body,
:root[data-theme="light"] body,
html.light-mode .blog-body,
:root[data-theme="light"] .blog-body {
  background-color: #fbfbfd !important;
  color: #1d1d1f !important;
}

html.light-mode .blog-headline {
  color: #1d1d1f;
}

html.light-mode .blog-subheadline {
  color: #515154;
}

html.light-mode .blog-search-input {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #1d1d1f;
}

html.light-mode .blog-search-input:focus {
  background: #ffffff;
  border-color: #0071e3;
  box-shadow: 0 0 20px rgba(0, 113, 227, 0.15);
}

html.light-mode .blog-filter-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #515154;
}

html.light-mode .blog-filter-btn:hover {
  background: #f5f5f7;
  color: #000000;
}

html.light-mode .blog-filter-btn.active {
  background: #0071e3;
  border-color: #0071e3;
  color: #ffffff;
}

html.light-mode .featured-dispatch-card,
html.light-mode .team-card,
html.light-mode .dispatch-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

html.light-mode .featured-dispatch-card:hover,
html.light-mode .team-card:hover,
html.light-mode .dispatch-card:hover {
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

html.light-mode .featured-dispatch-title,
html.light-mode .team-member-name,
html.light-mode .dispatch-card-title,
html.light-mode .author-name {
  color: #1d1d1f;
}

html.light-mode .featured-dispatch-excerpt,
html.light-mode .team-member-bio,
html.light-mode .dispatch-card-desc {
  color: #515154;
}

html.light-mode .team-member-quote {
  background: #f5f5f7;
  color: #1d1d1f;
  border-left-color: #0071e3;
}

html.light-mode .team-skill-chip {
  background: #f5f5f7;
  border-color: rgba(0, 0, 0, 0.08);
  color: #515154;
}

html.light-mode .dispatch-card-footer,
html.light-mode .dispatch-author-row {
  border-top-color: rgba(0, 0, 0, 0.08);
}

html.light-mode .dispatch-footer-author {
  color: #1d1d1f;
}

html.light-mode .article-modal-container {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

html.light-mode .article-modal-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

html.light-mode .article-modal-close-btn {
  background: #f5f5f7;
  border-color: rgba(0, 0, 0, 0.1);
  color: #1d1d1f;
}

html.light-mode .article-modal-content-body {
  color: #1d1d1f;
}

html.light-mode .article-modal-content-body h1,
html.light-mode .article-modal-content-body h2 {
  color: #1d1d1f;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

html.light-mode .article-modal-content-body p {
  color: #515154;
}

html.light-mode .article-modal-content-body code {
  background: #f5f5f7;
  color: #0071e3;
}

html.light-mode .article-callout-box {
  background: #f5f5f7;
  border-left-color: #0071e3;
}

/* ===================================================================
   FULL-PAGE REACT BITS <DITHER /> BACKGROUND (BLOG ONLY)
   Seamless WebGL2 Interactive Canvas Across Entire Page
   Exact specifications from @react-bits/Dither-JS-CSS
   =================================================================== */
.dither-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  contain: strict;
}

.dither-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

.blog-fullpage-dither-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  contain: strict;
  will-change: transform;
}

.blog-fullpage-dither-bg .dither-container {
  width: 100%;
  height: 100%;
}

body.blog-body {
  background-color: #000000 !important;
  color: var(--text-pure, #ffffff);
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* Ensure all page sections float seamlessly above the dither background */
.blog-hero-section,
#blogContentArea,
.team-section,
.blog-cta-banner,
.landing-footer {
  position: relative;
  z-index: 2;
  background: transparent !important;
}

/* Frosted glass cards allowing dither waves to breathe seamlessly underneath */
.featured-dispatch-card {
  background: rgba(12, 14, 18, 0.72) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(40, 135, 151, 0.3) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6) !important;
}

.team-card,
.founder-featured-card {
  background: rgba(12, 14, 18, 0.72) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(40, 135, 151, 0.28) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

.dispatch-mini-card {
  background: rgba(12, 14, 18, 0.68) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45) !important;
}

.blog-search-input {
  background: rgba(12, 14, 18, 0.75) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(40, 135, 151, 0.35) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.blog-filter-btn {
  background: rgba(12, 14, 18, 0.7) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.blog-filter-btn.active {
  background: rgba(40, 135, 151, 0.25) !important;
  border-color: rgba(40, 135, 151, 0.65) !important;
  color: #5ce1e6 !important;
}

.blog-cta-banner {
  background: rgba(12, 14, 18, 0.75) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(40, 135, 151, 0.3) !important;
}

.landing-footer {
  background: rgba(4, 5, 8, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Light Mode Harmonization */
html.light-mode body.blog-body {
  background-color: #fbfbfd !important;
}

html.light-mode .blog-fullpage-dither-bg {
  opacity: 0.85;
}

html.light-mode .featured-dispatch-card,
html.light-mode .team-card,
html.light-mode .founder-featured-card,
html.light-mode .dispatch-mini-card,
html.light-mode .blog-cta-banner {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06) !important;
}

html.light-mode .blog-search-input {
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #1d1d1f !important;
}

html.light-mode .blog-filter-btn {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #515154 !important;
}

html.light-mode .blog-filter-btn.active {
  background: rgba(0, 113, 227, 0.12) !important;
  border-color: rgba(0, 113, 227, 0.45) !important;
  color: #0071e3 !important;
}

html.light-mode .landing-footer {
  background: rgba(245, 245, 247, 0.85) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* ===================================================================
   REACT BITS <SPECULARBUTTON /> COMPONENT STYLES
   =================================================================== */
.specular-button {
  --sb-radius: 9999px;
  --sb-tint: #ffffff;
  --sb-tint-opacity: 0.06;
  --sb-blur: 12px;
  --sb-text-color: #f5f5f5;

  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  margin: 0;
  border: 0;
  border-radius: var(--sb-radius);
  font: inherit;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--sb-text-color);
  background: color-mix(in srgb, var(--sb-tint) calc(var(--sb-tint-opacity) * 100%), transparent);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(var(--sb-blur));
  backdrop-filter: blur(var(--sb-blur));
  cursor: pointer;
  outline: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
}

.specular-button:hover {
  box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.15);
}

.specular-button:active {
  transform: scale(0.97);
}

.specular-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--sb-text-color) 55%, transparent);
  outline-offset: 3px;
}

.specular-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.specular-button:disabled:active {
  transform: none;
}

.specular-button--sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.specular-button--md {
  padding: 14px 28px;
  font-size: 1rem;
}

.specular-button--lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.specular-button__light {
  position: absolute;
  inset: -24px;
  z-index: 1;
  display: block;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  pointer-events: none;
}

.specular-button__label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: inherit;
}

/* Light mode overrides for SpecularButton */
html.light-mode .specular-button {
  --sb-tint: #000000;
  --sb-tint-opacity: 0.04;
  --sb-text-color: #111113;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.12);
}

html.light-mode .specular-button:hover {
  box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.16), 0 0 20px rgba(0, 113, 227, 0.15);
}

/* ===================================================================
   REACT BITS <SLIDECOMMIT /> COMPONENT STYLES
   =================================================================== */
.slide-commit {
  --sc-track: #14161b;
  --sc-ink: #ffffff;
  --sc-ok: #22c55e;
  --sc-no: #e5484d;
  --sc-on-ink: #0a0a0c;
  --sc-on-ok: #ffffff;
  --sc-on-no: #ffffff;
  --sc-radius: 28px;
  --sc-grip-r: 24px;
  --sc-pad: 4px;
  --sc-font: 14px;

  position: relative;
  display: inline-block;
  vertical-align: middle;
  font-family: inherit;
  width: 100%;
  max-width: 340px;
}

.slide-commit[data-disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.slide-commit__track {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--sc-radius);
  background: var(--sc-track);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.slide-commit[data-held] .slide-commit__track {
  cursor: grabbing;
}

.slide-commit[data-phase='pending'] .slide-commit__track,
.slide-commit[data-phase='done'] .slide-commit__track {
  cursor: default;
}

.slide-commit__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  font-size: var(--sc-font);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.slide-commit__text {
  grid-area: 1 / 1;
  color: rgba(255, 255, 255, 0.65);
  transition: opacity 200ms ease, filter 200ms ease;
  font-family: var(--font-display, sans-serif);
}

.slide-commit__text--error {
  color: var(--sc-no);
  opacity: 0;
  filter: blur(2px);
}

.slide-commit[data-phase='error'] .slide-commit__text--plain {
  opacity: 0;
  filter: blur(2px);
}

.slide-commit[data-phase='error'] .slide-commit__text--error {
  opacity: 1;
  filter: none;
}

.slide-commit__capsule {
  position: absolute;
  top: var(--sc-pad);
  left: var(--sc-pad);
  width: calc(100% - var(--sc-pad) * 2);
  height: calc(100% - var(--sc-pad) * 2);
  background: var(--sc-ink);
  color: var(--sc-on-ink);
  outline: none;
  transition: background-color 200ms ease, color 200ms ease;
}

.slide-commit[data-phase='done'] .slide-commit__capsule {
  background: var(--sc-ok);
  color: var(--sc-on-ok);
}

.slide-commit[data-phase='error'] .slide-commit__capsule {
  background: var(--sc-no);
  color: var(--sc-on-no);
}

.slide-commit__capsule:focus-visible {
  box-shadow: inset 0 0 0 2px var(--sc-track);
}

.slide-commit__content {
  position: absolute;
  inset: 0;
}

.slide-commit__arrow,
.slide-commit__spin,
.slide-commit__done {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  font-size: var(--sc-font);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.slide-commit__arrow svg,
.slide-commit__done svg,
.slide-commit__spinner {
  display: block;
}

.slide-commit__arrow,
.slide-commit__spin {
  transition: filter 200ms ease, opacity 200ms ease;
}

.slide-commit[data-phase='pending'] .slide-commit__arrow {
  opacity: 0 !important;
  filter: blur(2px);
}

.slide-commit:not([data-phase='pending']) .slide-commit__spin {
  opacity: 0 !important;
  filter: blur(2px);
}

.slide-commit:not([data-phase='done']) .slide-commit__done {
  opacity: 0 !important;
  filter: blur(2px);
}

.slide-commit__spinner {
  animation: slide-commit-spin 1s linear infinite;
}

@keyframes slide-commit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slide-commit-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.slide-commit__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Light mode for SlideCommit */
html.light-mode .slide-commit {
  --sc-track: #e5e5ea;
  --sc-ink: #111113;
  --sc-on-ink: #ffffff;
}

html.light-mode .slide-commit__track {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.06);
}

html.light-mode .slide-commit__text {
  color: rgba(0, 0, 0, 0.6);
}

/* ===================================================================
   TEAM CONTACT APPLICATION MODAL STYLES
   =================================================================== */
.team-contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  visibility: hidden;
}

.team-contact-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.team-contact-modal-card {
  position: relative;
  background: rgba(15, 17, 23, 0.94);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  border: 1px solid rgba(41, 151, 255, 0.28);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(41, 151, 255, 0.12);
  border-radius: 26px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(26px, 3.5vw, 38px);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-contact-modal-overlay.active .team-contact-modal-card {
  transform: scale(1) translateY(0);
}

.contact-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
}

.contact-modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary, #a1a1aa);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
}

.contact-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: rotate(90deg);
}

.contact-form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-form-label {
  font-family: var(--font-display, sans-serif);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-pure, #ffffff);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-form-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text-pure, #ffffff);
  font-family: var(--font-body, sans-serif);
  font-size: 14.5px;
  transition: all 0.2s ease;
  outline: none;
}

.contact-form-input:focus {
  border-color: var(--apple-blue, #2997ff);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 16px rgba(41, 151, 255, 0.2);
}

.contact-form-textarea {
  min-height: 90px;
  max-height: 180px;
  resize: vertical;
  line-height: 1.55;
  font-family: inherit;
}

.contact-resume-dropzone {
  border: 1.5px dashed rgba(41, 151, 255, 0.38);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
  background: rgba(41, 151, 255, 0.03);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.contact-resume-dropzone:hover,
.contact-resume-dropzone.drag-over {
  border-color: var(--apple-blue, #2997ff);
  background: rgba(41, 151, 255, 0.08);
}

.contact-resume-file-info {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(41, 151, 255, 0.1);
  border: 1px solid rgba(41, 151, 255, 0.3);
  border-radius: 10px;
  margin-top: 10px;
}

.contact-resume-file-info.has-file {
  display: flex;
}

.contact-commit-wrapper {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.contact-commit-hint {
  font-size: 12px;
  color: var(--text-muted, #71717a);
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.02em;
}

/* Success Confirmation State */
.contact-confirmation-state {
  display: none;
  text-align: center;
  padding: 30px 10px 16px 10px;
  animation: fadeIn 0.35s ease;
}

.contact-confirmation-state.active {
  display: block;
}

.ceo-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 9999px;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  font-weight: 700;
  color: #22c55e;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.ceo-active-pill .ticker-pulse {
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

/* Light mode overrides for Contact Modal */
html.light-mode .team-contact-modal-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 113, 227, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

html.light-mode .contact-form-label {
  color: #111113;
}

html.light-mode .contact-form-input {
  background: #f5f5f7;
  border-color: rgba(0, 0, 0, 0.1);
  color: #1d1d1f;
}

html.light-mode .contact-form-input:focus {
  background: #ffffff;
  border-color: #0071e3;
  box-shadow: 0 0 12px rgba(0, 113, 227, 0.2);
}

html.light-mode .contact-resume-dropzone {
  background: rgba(0, 113, 227, 0.03);
  border-color: rgba(0, 113, 227, 0.3);
}

html.light-mode .contact-modal-close-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #515154;
}

html.light-mode .contact-modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #111113;
}



