@media (max-width: 991px) {
  .top-trust-bar { font-size: .75rem; }
  .top-trust-inner span:nth-child(2) { display: none; }
  .header-inner { min-height: 64px; gap: 10px; }
  .brand { min-width: 0; max-width: calc(100% - 90px); }
  .brand-logo {
    height: 44px;
    max-width: min(190px, 52vw);
  }
  .footer-logo { height: 56px; }
  .primary-nav {
    position: fixed;
    inset: 110px 0 auto 0;
    background: rgba(11, 18, 32, 0.99);
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    transform: translateY(-130%);
    transition: transform .25s ease;
    border-bottom: 1px solid rgba(255,255,255,.08);
    max-height: calc(100vh - 110px);
    overflow: auto;
    z-index: 220;
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav a, .primary-nav .nav-cta {
    padding: 13px 14px; border-radius: 14px; background: rgba(255,255,255,.04); min-height: 48px;
    display: flex; align-items: center;
  }
  .menu-toggle { min-width: 72px; min-height: 44px; }

  .hero { min-height: auto; }
  .hero-grid { padding: 48px 0 40px; gap: 20px; }
  .hero h1 { max-width: none; font-size: clamp(1.9rem, 8vw, 2.7rem); line-height: 1.08; word-break: break-word; }
  .hero p { font-size: 1rem; }
  .hero-proof { grid-template-columns: 1fr 1fr; }
  .command-panel { order: 2; width: 100%; }
  .command-panel-inner { padding: 16px; }
  .command-meta { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cards-grid, .pricing-grid, .team-grid, .blog-grid, .industry-grid,
  .testimonial-grid, .case-grid, .workflow-grid, .process-track,
  .mode-cards, .founder-band, .founder-spotlight, .career-grid,
  .career-apply-wrap { grid-template-columns: 1fr; }

  .cta-band .container { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .detail-grid, .feature-split { grid-template-columns: 1fr; }
  .form-grid.two-col { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions a, .hero-actions button { width: 100%; text-align: center; min-height: 48px; }

  .section { padding: 48px 0; }
  .page-hero { padding: 48px 0; }
  .page-hero h1 { font-size: clamp(1.8rem, 7.5vw, 2.6rem); word-break: break-word; }
  .newsletter-form { grid-template-columns: 1fr; }
  .feature-media img { min-height: 200px; }
  .exam-panel { padding: 18px; }
  .exam-tabs, .career-tabs { justify-content: stretch; }
  .exam-tab, .career-tab { flex: 1 1 calc(50% - 8px); text-align: center; }
  .founder-band, .founder-spotlight { padding: 18px; }
  .career-card .btn-dark { width: 100%; }
  .float-cta { left: 12px; right: 12px; bottom: 12px; justify-content: center; }
  .admin-content, .admin-topbar { padding-left: 14px; padding-right: 14px; }

  /* Prevent horizontal overflow from long words / tables */
  .service-card, .price-card, .case-card, .blog-card, .testimonial-card,
  .form-card, .career-card, .workflow-item, .process-step {
    min-width: 0; overflow-wrap: anywhere;
  }
  .section-heading h2, .display-title, .cta-title { overflow-wrap: anywhere; }
}

@media (max-width: 575px) {
  .container { width: min(100% - 20px, 100%); }
  .hero-proof { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 12px; }
  .stat-card strong { font-size: 1.45rem; }
  .mode-chip-row { gap: 6px; }
  .mode-chip { padding: 6px 10px; font-size: .72rem; }
  .exam-tab, .career-tab { flex: 1 1 100%; }
  .process-track { gap: 10px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; }
}

@media (min-width: 768px) and (max-width: 991px) {
  .cards-grid, .case-grid, .blog-grid, .testimonial-grid,
  .career-grid, .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-grid, .process-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-split, .founder-band, .founder-spotlight,
  .career-apply-wrap { grid-template-columns: 1fr 1fr; align-items: start; }
  .exam-panel.active { grid-template-columns: 1.1fr .9fr; }
  .exam-tab, .career-tab { flex: 1 1 auto; }
}
