/* ═══════════════════════════════════════════
   RESPONSIVE — Media queries & breakpoints
   ═══════════════════════════════════════════ */

/* ─── Small Phones ≤ 375px ─── */
@media (max-width: 375px) {
  :root {
    --space-section: 4rem;
  }

  .section-hero__headline {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .hero-headline-fixed {
    font-size: clamp(0.75rem, 3vw, 1rem);
  }

  .hero-interact {
    width: 90vw;
    max-width: 100%;
    bottom: var(--space-4);
  }

  .hero-chat__input-wrap {
    max-width: 100%;
  }

  .section-numbers__grid {
    grid-template-columns: 1fr;
  }

  .section-contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .section-contact__card {
    padding: var(--space-6) var(--space-4);
  }
}

/* ─── Phones ≤ 480px ─── */
@media (max-width: 480px) {
  .section-hero__headline {
    font-size: clamp(2.8rem, 11vw, 4rem);
  }

  .section-hero__tags {
    gap: var(--space-1);
  }

  .hero-interact {
    width: 90vw;
    max-width: 100%;
  }

  .card-work {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .card-work--reversed {
    direction: ltr;
  }

  .card-work__image {
    aspect-ratio: 16 / 10;
  }

  .footer__inner {
    gap: var(--space-4);
  }

  .footer__socials {
    justify-content: center;
  }
}

/* ─── Tablets & Below ≤ 768px ─── */
@media (max-width: 768px) {
  :root {
    --space-section: 5rem;
  }

  /* ── Navigation ── */
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  /* ── Hero ── */
  .section-hero__headline {
    font-size: clamp(3rem, 10vw, 5rem);
  }

  .hero-headline-fixed {
    font-size: clamp(0.85rem, 2.5vw, 1.2rem);
  }

  .hero-interact {
    width: 80vw;
    max-width: 400px;
    bottom: var(--space-4);
  }

  .hero-chat__input-wrap {
    max-width: 100%;
  }

  /* ── Services Accordion — Mobile ── */
  .svc-row__trigger {
    gap: var(--space-3);
    padding: var(--space-6) 0;
  }

  .svc-row__title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  .svc-row__tagline-peek {
    display: none;
  }

  .svc-row__content {
    padding-left: 0;
  }

  .svc-row__bites-stats {
    flex-wrap: wrap;
  }

  /* ── Numbers — 2-column ── */
  .section-numbers__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .section-numbers__value {
    font-size: var(--text-4xl);
  }

  /* ── Work — Single column ── */
  .card-work {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .card-work--reversed {
    direction: ltr;
  }

  /* ── Team — Stack vertically on mobile ── */
  .section-team {
    height: auto;
    overflow: visible;
  }

  .team-person {
    position: relative;
    inset: auto;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
  }

  .team-person__image {
    flex: none;
    min-height: 50vh;
    width: 100%;
  }

  .team-person__image::after {
    top: auto;
    bottom: 0;
    right: auto;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(180deg, transparent, var(--surface-bg, #0A0618));
  }

  .team-person__info {
    padding: var(--space-8) var(--gutter);
  }

  .team-person__project {
    flex: 0 0 240px;
    min-width: 240px;
  }

  /* ── Tech — Simple Grid ── */
  .section-tech__orbit {
    min-height: auto;
  }

  .section-tech__pearl {
    display: none;
  }

  .section-tech__items {
    padding: var(--space-8);
  }

  .tech-pill {
    position: static !important;
    transform: none !important;
  }

  /* ── Testimonials ── */
  .section-testimonials {
    min-height: auto;
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
  }

  .section-testimonials__slider {
    min-height: auto;
  }

  .card-testimonial {
    position: relative;
    opacity: 1;
    padding: var(--space-8) var(--space-4);
  }

  .card-testimonial__text {
    font-size: var(--text-xl);
  }

  /* ── Contact ── */
  .section-contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .section-contact__content {
    text-align: center;
  }

  .section-contact__details {
    align-items: center;
  }

  .section-contact__submit-row {
    justify-content: center;
  }

  /* ── Footer ── */
  .footer__inner {
    gap: var(--space-4);
  }

  .footer__socials {
    justify-content: center;
  }
}

/* ─── Small Laptops ≤ 1024px ─── */
@media (max-width: 1024px) {
  .section-hero__headline {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
  }

  .svc-row__title {
    font-size: clamp(1.6rem, 3vw, 2.8rem);
  }

  .card-work {
    gap: var(--space-8);
  }

  .section-numbers__grid {
    gap: var(--space-6);
  }
}

/* ─── Desktop ≤ 1280px ─── */
@media (max-width: 1280px) {
  .container {
    max-width: 100%;
    padding-inline: var(--gutter);
  }

  .section-services__container {
    max-width: 1000px;
  }
}

/* ─── Large Desktop ≥ 1536px ─── */
@media (min-width: 1536px) {
  .container {
    max-width: var(--container-max);
  }

  .section-hero__headline {
    font-size: 7rem;
  }

  .section-numbers__grid {
    gap: var(--space-12);
  }

  .card-work {
    gap: var(--space-16);
  }
}

/* ─── Height queries — Short Viewports ─── */
@media (max-height: 600px) {
  .section-hero {
    min-height: auto;
    padding: 6rem 0 3rem;
  }

  .hero-interact {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: var(--space-4);
  }
}

/* ─── Print ─── */
@media print {
  .nav,
  .preloader,
  .morph-svg,
  .particles,
  .cursor-dot,
  .cursor-ring,
  .hero__bg-waves,
  .hero__bg-droplets,
  .marquee {
    display: none !important;
  }

  * {
    color: #000 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  body {
    overflow: visible !important;
    font-size: 12pt;
  }

  section {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* ─── Reduced Motion — Global Overrides ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .marquee {
    animation: none !important;
  }

  .services__track {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .services__card {
    width: 100%;
    min-width: unset;
  }
}
