/* ==========================================================================
   AURELIUS & CO. — V5 RESPONSIVE ARCHITECTURE
   Comprehensive fluid breakpoints: 1440px+, 1200px, 1024px, 768px, 430px, 360px
   ========================================================================== */

/* Large Desktop (1600px+) */
@media (min-width: 1600px) {
  .telemetry-editorial {
    min-height: 620px;
  }

  .telemetry-svg-viewport {
    min-height: 500px;
  }
}

/* Laptops & Tablets Landscape (1024px to 1200px) */
@media (max-width: 1199px) {
  .services-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
    gap: 3rem;
  }

  .telemetry-editorial {
    min-height: 480px;
    padding: 20px;
  }

  .telemetry-svg-viewport {
    min-height: 360px;
  }

  .stats-grid-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem;
  }

  .stat-item:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }

  .timeline-horizontal-track {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

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

  .footer-newsletter-col {
    grid-column: span 3;
  }
}

/* Tablets (768px to 1023px) */
@media (max-width: 1023px) {
  .site-header {
    height: 76px;
  }

  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero-headline {
    font-size: clamp(3.2rem, 7.5vw, 5.5rem);
  }

  .services-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    gap: 2rem;
  }

  .telemetry-editorial {
    top: 90px;
    min-height: 420px;
    padding: 16px;
  }

  .telemetry-svg-viewport {
    min-height: 300px;
  }

  .about-preview-grid,
  .founder-profile-grid,
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .timeline-horizontal-track {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .timeline-horizontal-track::before {
    display: none;
  }

  .timeline-milestone {
    padding-top: 0;
    padding-left: 2.5rem;
  }

  .timeline-marker-dot {
    top: 4px;
    left: 0;
  }

  .values-editorial-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .footer-newsletter-col {
    grid-column: span 2;
  }

  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }
}

/* Mobile Devices (max-width: 767px) */
@media (max-width: 767px) {
  :root {
    --header-height: 70px;
  }

  .site-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .section-pad {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 4rem;
    min-height: 92vh;
  }

  .hero-top-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .hero-headline {
    font-size: clamp(3rem, 11vw, 4.2rem);
    line-height: 1.04;
    margin-bottom: 1.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .editorial-intro-statement {
    font-size: clamp(2rem, 8vw, 3.2rem);
  }

  /* Mobile Services Accordion + Inline Telemetry */
  .services-layout {
    display: block;
  }

  .services-visual-panel-desktop {
    display: none !important;
  }

  .service-item {
    padding: 1.75rem 0;
  }

  .service-item::before {
    left: -12px;
  }

  .service-title {
    font-size: 1.65rem;
  }

  .service-item-body {
    padding-left: 0;
  }

  /* Mobile Telemetry Slot — Editorial Inline */
  .service-telemetry-mobile-slot {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
  }

  .service-telemetry-mobile-slot .telemetry-editorial {
    position: static;
    top: auto;
    width: 100%;
    min-height: auto;
    padding: 16px;
    border-radius: 2px;
    border: 1px solid rgba(199, 167, 101, 0.06);
  }

  .service-telemetry-mobile-slot .telemetry-svg-viewport {
    min-height: 220px;
    aspect-ratio: 1 / 1;
  }

  .service-telemetry-mobile-slot .telemetry-meta-top {
    margin-bottom: 12px;
    font-size: 0.65rem;
  }

  .service-telemetry-mobile-slot .telemetry-meta-system {
    font-size: 0.58rem;
    top: 16px;
    right: 16px;
  }

  .service-telemetry-mobile-slot .telemetry-meta-bottom {
    margin-top: 12px;
    gap: 12px;
  }

  .service-telemetry-mobile-slot .telemetry-bottom-tag {
    font-size: 0.6rem;
  }

  /* Data Numbers Mobile */
  .stats-grid-row {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .stat-item:first-child {
    border-top: none;
    padding-top: 0;
  }

  .stat-huge-number {
    font-size: 4.5rem;
  }

  .marquee-track {
    gap: 2.5rem;
  }

  .marquee-item {
    font-size: 1.5rem;
    gap: 2.5rem;
  }

  .philosophy-huge-quote {
    font-size: clamp(2.2rem, 8.5vw, 3.4rem);
  }

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

  .footer-newsletter-col {
    grid-column: span 1;
  }

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

/* Small Screens (max-width: 380px) */
@media (max-width: 380px) {
  .hero-headline {
    font-size: 2.6rem;
  }

  .brand-text {
    font-size: 0.75rem;
  }

  .service-telemetry-mobile-slot .telemetry-svg-viewport {
    min-height: 180px;
  }
}
