/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   ========================================================================== */

/* Large Desktops (Above 1400px) */
@media (min-width: 1400px) {
  .hero-headline {
    font-size: 5.25rem;
  }
}

/* Laptops & Standard Monitors (Under 1100px) */
@media (max-width: 1100px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero-media-col {
    max-width: 680px;
    margin: 0 auto;
  }

  .credibility-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .credibility-item:nth-child(4),
  .credibility-item:nth-child(5) {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1rem;
  }

  .performance-capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .anatomy-timeline-stepper {
    grid-template-columns: repeat(3, 1fr);
  }

  .anatomy-stage-detail {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-portrait-card {
    max-width: 440px;
    margin: 0 auto;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablets (Under 860px) */
@media (max-width: 860px) {
  .nav-links, .nav-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Mobile Navigation Drawer */
  .mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 8, 10, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 6rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
  }

  .mobile-menu-drawer.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .mobile-nav-link {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
  }

  .mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--accent);
  }

  /* Project Grid Mobile Spans */
  .project-card.span-8,
  .project-card.span-4,
  .project-card.span-6 {
    grid-column: span 12;
  }

  .card-media-wrap.ratio-9-16 {
    max-height: 400px;
  }

  .ai-featured-split {
    grid-template-columns: 1fr;
  }

  .btf-content-display {
    grid-template-columns: 1fr;
  }

  .performance-capabilities-grid {
    grid-template-columns: 1fr;
  }

  .anatomy-timeline-stepper {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .credibility-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .credibility-item {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding: 0.75rem 0.25rem;
  }

  .credibility-item:first-child,
  .credibility-item:nth-child(2) {
    border-top: none;
  }
}

/* Mobile Phones (Under 560px) */
@media (max-width: 560px) {
  :root {
    --space-section: 4rem;
  }

  .hero-headline {
    font-size: 2.85rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-metadata-bar {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .credibility-grid {
    grid-template-columns: 1fr;
  }

  .credibility-item {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding: 0.75rem 0;
  }

  .credibility-item:first-child {
    border-top: none;
  }

  .anatomy-timeline-stepper {
    grid-template-columns: 1fr;
  }

  .cs-metrics-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .lightbox-modal {
    padding: 0.75rem;
  }

  .lightbox-panel {
    border-radius: var(--radius-md);
  }

  .casestudy-drawer {
    padding: 1.5rem 1.25rem;
  }
}
