/* ============================================================
   responsive.css — Mobile-first responsive breakpoints
   ============================================================ */

/* ── TABLET: ≥ 768px ── */
@media (max-width: 1024px) {
  .systems__layout {
    grid-template-columns: 1fr;
  }

  .sys-list {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-lg);
  }

  .sys-panels { padding-left: 0; }

  .sys-panel__specs {
    grid-template-columns: 1fr 1fr;
  }

  .about__layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  /* About animation: show it, centered below the text.
     Fluid square that caps by width and by viewport height
     so it fits portrait and landscape without clipping. */
  .about__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    order: 2;                       /* text first, animation after */
    width: 100%;
    margin-top: var(--space-xl);
  }

  .about__visual .about__anim-wrap {
    width: min(72vw, 340px);
    width: min(72vw, 340px, 55svh);
    height: auto;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
  }

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

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

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

  .hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;        /* vertical centering inside its zone */
    flex: 1;                    /* claim all vertical space left below the text */
    position: static;
    transform: none;
    opacity: 1;
    animation: none;
    width: 100%;
    max-width: 560px;
    margin: var(--space-xl) auto;   /* symmetric spacing, top and bottom */
    padding: 0 var(--container-pad);
  }
  .hero__visual canvas,
  .hero__visual img,
  .hero__visual svg {
    width: 100% !important;
    height: auto !important;
  }
  /* Radar: perfect circle, capped by width AND height so it centers
     cleanly in portrait and landscape without overflowing */
  .hero__visual .radar {
    margin-inline: auto;
    width: min(76vw, 420px);
    width: min(76vw, 420px, 52svh);
    height: auto;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
  }
  /* Hero layout: fill the screen so the visual has space to center in */
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 100vh;
    min-height: 100svh;
    padding-bottom: var(--space-2xl);
    overflow: visible;
  }
  .hero__content {
    max-width: 100%;
    width: 100%;
  }
}

/* ── MOBILE: < 768px ── */
@media (max-width: 768px) {

  /* Nav */
  .nav__links,
  .nav__actions {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 72px;
    padding-bottom: var(--space-xl);
  }

  .hero__content {
    padding: var(--space-2xl) var(--container-pad);
    margin-left: 0;
  }

  .hero__heading {
    font-size: clamp(3.5rem, 14vw, 6rem);
  }

  .hero__metrics {
    gap: var(--space-lg);
  }

  .metric__divider { display: none; }

  /* Capabilities */
  .capabilities__grid {
    grid-template-columns: 1fr;
  }

  /* Intelligence */
  .intel__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Systems */
  .sys-tab {
    padding: var(--space-sm) var(--space-md);
  }

  .sys-tab__name {
    font-size: 0.8rem;
  }

  .sys-panel__specs {
    grid-template-columns: 1fr;
  }

  /* Form */
  .form__row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__nav {
    grid-template-columns: 1fr 1fr;
  }

  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}

/* ── SMALL MOBILE: < 480px ── */
@media (max-width: 480px) {
  .intel__grid {
    grid-template-columns: 1fr;
  }

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

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }

  .about__badges {
    flex-direction: column;
  }

  /* About animation: slightly larger relative presence on narrow screens */
  .about__visual .about__anim-wrap {
    width: min(80vw, 300px);
    width: min(80vw, 300px, 55svh);
  }

  /* Radar: slightly larger relative size on narrow portrait screens,
     capped so rings never clip against screen edges */
  .hero__visual { padding: 0 var(--space-lg); }
  .hero__visual .radar {
    width: min(82vw, 340px);
    width: min(82vw, 340px, 52svh);
    height: auto;
  }
}

/* ── PRINT STYLES ── */
@media print {
  .site-header,
  .ticker,
  .hero__grid,
  .hero__scanlines,
  .radar,
  .about__visual,
  .contact__form,
  .site-footer { display: none; }

  body { background: white; color: black; }
}