/* ==========================================================================
   XZEON TECHNOLOGIES — GLOBAL RESPONSIVE STYLESHEET v2.1
   Desktop (1440px+) is untouched — all rules apply below 1440px only.
   FIXED: Mobile overflow issues, CONTACT text overflow hidden
   ========================================================================== */

/* Shared tokens for pages that omit spacing variables in inline CSS */
:root {
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --touch-target: 48px;
}

/* ──────────────────────────────────────────────────────────────────────────
   LOGO STYLING - Applied globally across all pages
   ────────────────────────────────────────────────────────────────────────── */
.nav-logo {
  transition: transform 0.3s ease-out;
  cursor: pointer;
}

.nav-logo:hover {
  transform: scale(1.03);
}

.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.foot-logo-img {
  height: 60px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

.foot-contact-info {
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(28,18,8,.75);
}

.foot-contact-info p {
  margin: 6px 0;
}

.foot-contact-info strong {
  font-weight: 700;
  color: var(--dark);
  margin-right: 6px;
}

.foot-contact-info a {
  text-decoration: none;
  transition: color 0.2s;
}

.foot-contact-info a:hover {
  color: var(--orange);
}

/* Keep injected mobile menu hidden on laptop & desktop */
@media (min-width: 1024px) {
  .mobile-menu-toggle,
  .mobile-menu-overlay,
  .mobile-menu {
    display: none !important;
  }
}

body.menu-open {
  overflow: hidden !important;
}

html.menu-open {
  overflow: hidden !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   1. GLOBAL FIXES (≤1439px)
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1439px) {
  html {
    max-width: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden !important;
  }

  body {
    max-width: 100%;
    padding-bottom: 40px; /* fixed ticker clearance */
    overflow-x: hidden !important;
    position: relative;
  }

  /* Clip any content that overflows */
  section, div, nav, header, footer, main, article {
    max-width: 100% !important;
  }

  img,
  video,
  svg:not(.nav-logo-mark svg):not(.foot-socials svg):not(.info-icon svg):not(.success-icon svg) {
    max-width: 100%;
    height: auto;
  }

  /* Fix 100vw horizontal scroll */
  #hero,
  .hero,
  .contact-hero {
    width: 100% !important;
    max-width: 100% !important;
  }

  #mouse-light {
    width: min(700px, 100vw);
    height: min(700px, 100vw);
  }

  .ticker-bar {
    width: 100%;
    max-width: 100%;
  }

  .cta-banner,
  .mission-quote {
    max-width: calc(100% - var(--space-lg) * 2);
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   2. LAPTOP (1024px – 1439px)
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1439px) and (min-width: 1024px) {
  nav {
    padding: 0 var(--space-xl) !important;
  }

  .left-panel,
  .hero-left,
  .contact-left {
    padding: var(--space-xl) !important;
  }

  .right-panel,
  .hero-right,
  .contact-right {
    padding: var(--space-lg) !important;
  }

  .services-section,
  .process-section,
  .projects-section,
  .mission-section,
  .stats-section,
  .team-section,
  .values-section,
  .timeline-section,
  .faq-section {
    padding: var(--space-2xl) var(--space-xl) !important;
  }

  footer {
    padding: var(--space-2xl) var(--space-xl) !important;
    gap: var(--space-2xl) !important;
  }

  .foot-right {
    gap: var(--space-2xl) !important;
  }

  /* 4-column → 2-column on laptop */
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .process-steps,
  .stats-grid,
  .team-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .mission-section {
    grid-template-columns: 1fr 1fr !important;
    gap: var(--space-2xl) !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   3. TABLET & MOBILE NAV (≤1023px)
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  html,
  body {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative !important;
  }

  body {
    width: 100% !important;
  }

  * {
    max-width: 100% !important;
  }

  h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    max-width: 100% !important;
  }

  /* Hide any large decorative text elements that overflow */
  [style*="font-size: 20"],
  [style*="font-size: 30"],
  [style*="font-size: 40"],
  [style*="font-size: 50"] {
    display: none !important;
  }

  /* Hide any absolute positioned elements that might be decorative background text */
  nav::before,
  nav::after,
  body::before,
  body::after,
  #hero::before,
  #hero::after,
  .hero::before,
  .hero::after {
    display: none !important;
  }

  nav {
    padding: 0 var(--space-lg) !important;
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    overflow: hidden !important;
    clip-path: inset(0) !important;
  }

  .nav-links {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    flex-shrink: 0;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--dark);
    transition: all 0.3s ease;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  .mobile-menu-overlay {
    display: block !important;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 18, 8, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-menu-overlay.active {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .mobile-menu {
    display: block !important;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 3px solid var(--dark);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
    z-index: 1000;
    pointer-events: none;
    visibility: hidden;
  }

  .mobile-menu.active {
    transform: translateY(0) !important;
    pointer-events: auto !important;
    visibility: visible;
  }

  .mobile-menu ul {
    list-style: none;
    padding: var(--space-md) 0;
    margin: 0;
  }

  .mobile-menu ul li {
    border-bottom: 2px solid rgba(28, 18, 8, 0.1);
  }

  .mobile-menu ul li:last-child {
    border-bottom: none;
  }

  .mobile-menu ul li a {
    display: flex;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    min-height: var(--touch-target);
  }

  .mobile-menu ul li a:active {
    background: var(--yellow);
    transform: translateX(8px);
  }

  .mobile-menu ul li a.active {
    background: var(--orange);
    color: var(--cream);
  }

  /* Hero — stack columns */
  #hero,
  .hero,
  .contact-hero {
    height: auto !important;
    min-height: auto !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    overflow: visible !important;
  }

  .hero-body {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
  }

  #hero {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
    height: auto !important;
  }

  .hero-body {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    width: 100% !important;
  }

  .left-panel,
  .hero-left,
  .contact-left {
    border-right: none !important;
    border-bottom: 3px solid var(--dark) !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: calc(100vh - 68px) !important;
    box-sizing: border-box !important;
    padding: var(--space-lg) var(--space-md) !important;
  }

  .right-panel,
  .hero-right,
  .contact-right {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    padding: var(--space-xl) var(--space-md) !important;
    background: var(--orange) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border-top: none !important;
    border-bottom: 3px solid var(--dark) !important;
  }

  .float-pills {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 90% !important;
    margin-bottom: 24px !important;
    height: auto !important;
  }

  .fpill {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    animation: none !important;
    margin: 0 !important;
  }

  .dash-card {
    width: 90% !important;
    max-width: 400px !important;
    margin: 0 auto 24px auto !important;
    position: relative !important;
    animation: none !important;
  }

  .corner-stamp {
    position: relative !important;
    margin-top: 16px !important;
    inset: auto !important;
    align-self: center !important;
  }

  .hero h1,
  .contact-left h1 {
    font-size: clamp(32px, 6vw, 54px) !important;
    max-width: 100% !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .hero-sub,
  .contact-sub,
  .subtitle {
    max-width: 100% !important;
  }

  .hero-left,
  .hero-right {
    max-width: 100% !important;
  }

  /* Grids: 4-col → 2-col */
  .services-grid,
  .team-grid,
  .values-grid,
  .stats-grid,
  .process-steps,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-md) !important;
  }

  .mission-section {
    grid-template-columns: 1fr !important;
    gap: var(--space-xl) !important;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-sm) !important;
    width: 100% !important;
  }

  /* Cards — equal height, full width */
  .svc-card,
  .team-card,
  .val-card,
  .proj-card,
  .process-step,
  .stat-block {
    width: 100% !important;
    min-height: auto !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  /* CTA banner */
  .cta-banner {
    margin: var(--space-xl) var(--space-lg) !important;
    padding: var(--space-xl) !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: var(--space-md) !important;
    max-width: calc(100% - var(--space-lg) * 2) !important;
  }

  .cta-actions {
    width: 100% !important;
    justify-content: flex-start !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: var(--space-sm) !important;
  }

  .cta-actions .magnetic-wrap {
    flex: 1 1 auto !important;
    min-width: 0;
  }

  .cta-actions a {
    width: 100% !important;
    text-align: center !important;
  }

  /* Footer */
  footer {
    grid-template-columns: 1fr !important;
    gap: var(--space-2xl) !important;
    padding: var(--space-2xl) var(--space-lg) !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .foot-right {
    justify-content: flex-start !important;
    gap: var(--space-2xl) !important;
    flex-wrap: wrap !important;
  }

  /* Section spacing */
  .services-section,
  .process-section,
  .projects-section,
  .mission-section,
  .stats-section,
  .team-section,
  .values-section,
  .timeline-section,
  .faq-section {
    padding: var(--space-2xl) var(--space-lg) !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Contact form */
  .form-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .form-row {
    grid-template-columns: 1fr 1fr !important;
    gap: var(--space-sm) !important;
  }

  .field-wrap input,
  .field-wrap select,
  .field-wrap textarea {
    width: 100% !important;
    min-height: var(--touch-target) !important;
  }

  .btn-submit {
    width: 100% !important;
    min-height: var(--touch-target) !important;
  }

  .contact-info {
    width: 100% !important;
    max-width: 100% !important;
  }

  .info-card {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   4. TABLET PORTRAIT (≤767px)
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  nav {
    padding: 0 var(--space-md) !important;
    height: 64px !important;
  }

  /* Hide any page title or section title that says CONTACT */
  .page-title,
  .section-heading {
    display: none !important;
  }

  /* Logo responsive sizing */
  .nav-logo-img {
    height: 42px !important;
  }

  .foot-logo-img {
    height: 52px !important;
  }

  .mobile-menu,
  .mobile-menu-overlay {
    top: 64px !important;
  }

  .mobile-menu {
    max-height: calc(100vh - 64px) !important;
  }

  .nav-actions .btn-outline {
    display: none !important;
  }

  .nav-actions {
    gap: var(--space-xs) !important;
  }

  /* Hero — center content */
  .left-panel,
  .hero-left,
  .contact-left {
    min-height: calc(100vh - 64px) !important;
    padding: var(--space-md) var(--space-sm) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .bottom-left,
  .hero-sub,
  .contact-sub,
  .contact-info {
    text-align: center !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 90% !important;
    width: 90% !important;
  }

  .info-card {
    justify-content: center !important;
  }

  .vintage-badge {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: var(--space-md) !important;
    padding: 4px 10px !important;
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
    max-width: 90% !important;
    width: fit-content !important;
    box-shadow: 3px 3px 0 var(--dark) !important;
  }

  .hero-heading br,
  .hero h1 br,
  .contact-left h1 br {
    display: none !important;
  }

  .hero-heading,
  .hero h1,
  .contact-left h1 {
    font-size: clamp(28px, 6.5vw, 42px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    text-align: center !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
    overflow: hidden;
    margin-top: 16px !important;
    margin-bottom: 16px !important;
  }

  .hero-heading .last-line,
  .hero h1 em,
  .contact-left h1 em {
    font-size: clamp(18px, 4.5vw, 24px) !important;
    display: block !important;
    margin-top: 6px !important;
  }

  .cta-row {
    flex-direction: column !important;
    align-items: center !important;
    width: 90% !important;
    max-width: 90% !important;
    margin: 0 auto !important;
    gap: var(--space-sm) !important;
  }

  .cta-row .magnetic-wrap {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 20px !important;
    min-height: 40px !important;
    font-size: 13px !important;
    text-align: center !important;
    justify-content: center !important;
    box-shadow: 4px 4px 0 var(--dark) !important;
  }

  /* Grids: 2-col → 1-col */
  .services-grid,
  .team-grid,
  .values-grid,
  .stats-grid,
  .process-steps,
  .projects-grid {
    grid-template-columns: 1fr !important;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .faq-section {
    padding: var(--space-xl) var(--space-md) !important;
  }

  .faq-q {
    font-size: 15px !important;
    padding: var(--space-md) 0 !important;
  }

  .faq-a-inner {
    font-size: 13px !important;
  }

  /* Footer — centered single column */
  footer {
    padding: var(--space-xl) var(--space-md) !important;
    text-align: center !important;
  }

  .foot-left,
  .foot-right {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  .foot-logo {
    justify-content: center !important;
  }

  .foot-tagline {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
  
  .foot-contact-info {
    text-align: center !important;
    width: 100% !important;
  }

  .foot-socials {
    justify-content: center !important;
  }

  .foot-right {
    flex-direction: column !important;
    gap: var(--space-xl) !important;
  }

  .foot-col {
    width: 100% !important;
    text-align: center !important;
  }

  .foot-col ul {
    align-items: center !important;
  }

  /* Floating badges — prevent overlap */
  .float-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    position: relative !important;
    inset: auto !important;
    padding: var(--space-md) 0 !important;
    z-index: 15 !important;
    pointer-events: none !important;
  }

  .fpill {
    position: static !important;
    font-size: 11px !important;
    padding: 6px 12px !important;
    box-shadow: 2px 2px 0 var(--dark) !important;
  }

  .right-panel,
  .hero-right {
    flex-direction: column !important;
    min-height: auto !important;
    padding: var(--space-xl) var(--space-md) !important;
  }

  .dash-card,
  .retro-tv,
  .polaroid-frame,
  .film-frame {
    width: 100% !important;
    max-width: 380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .polaroid-frame {
    transform: none !important;
  }

  .corner-stamp {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin: var(--space-md) auto 0 !important;
    transform: rotate(-12deg) !important;
  }

  /* Stats in hero */
  .stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .stat {
    padding: var(--space-sm) !important;
  }

  .stat-num {
    font-size: 28px !important;
  }

  .stat-lbl {
    font-size: 9px !important;
  }

  /* Timeline */
  .timeline {
    padding-left: 40px !important;
    margin-top: 40px !important;
  }

  .timeline::before {
    left: 10px !important;
  }

  .tl-dot {
    left: -39px !important;
    width: 16px !important;
    height: 16px !important;
  }

  .tl-year {
    font-size: 11px !important;
  }

  .tl-title {
    font-size: 17px !important;
  }

  .tl-desc {
    font-size: 13px !important;
  }

  .section-title {
    font-size: clamp(26px, 6vw, 36px) !important;
    overflow-wrap: break-word;
  }

  .mission-quote {
    padding: var(--space-lg) !important;
    max-width: 100% !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   5. MOBILE (≤479px)
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 479px) {
  nav {
    height: 56px !important;
  }

  .mobile-menu,
  .mobile-menu-overlay {
    top: 56px !important;
  }

  .mobile-menu {
    max-height: calc(100vh - 56px) !important;
  }

  .mobile-menu ul li a {
    font-size: 16px !important;
    padding: var(--space-sm) var(--space-md) !important;
  }

  .nav-brand {
    font-size: 15px !important;
  }

  .nav-logo-mark {
    width: 28px !important;
    height: 28px !important;
  }

  .nav-logo-mark svg {
    width: 18px !important;
    height: 18px !important;
  }

  .btn-solid {
    padding: 8px 16px !important;
    font-size: 11px !important;
    min-height: 40px !important;
  }

  /* Typography clamp */
  .hero-heading,
  .hero h1,
  .contact-left h1 {
    font-size: clamp(26px, 8.5vw, 34px) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.03em !important;
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .hero-heading .last-line,
  .hero h1 em,
  .contact-left h1 em {
    font-size: clamp(18px, 6vw, 22px) !important;
    margin-top: 6px !important;
  }

  .hero-sub,
  .subtitle,
  .contact-sub {
    font-size: 13px !important;
  }

  .section-title {
    font-size: 26px !important;
  }

  /* Spacing */
  .left-panel,
  .hero-left,
  .contact-left {
    min-height: calc(100vh - 56px) !important;
    padding: var(--space-md) var(--space-sm) !important;
  }

  .right-panel,
  .hero-right,
  .contact-right {
    min-height: auto !important;
    padding: var(--space-xl) var(--space-sm) !important;
  }

  .services-section,
  .process-section,
  .projects-section,
  .mission-section,
  .stats-section,
  .team-section,
  .values-section,
  .timeline-section,
  .faq-section {
    padding: var(--space-xl) var(--space-sm) !important;
  }

  /* Cards */
  .svc-card {
    padding: var(--space-lg) var(--space-md) !important;
  }

  .team-card {
    padding: var(--space-md) !important;
  }

  .proj-card,
  .proj-info {
    padding: var(--space-md) !important;
  }

  /* Contact form — full width touch targets */
  .form-card {
    padding: var(--space-lg) var(--space-sm) !important;
  }

  .field-wrap {
    margin-bottom: var(--space-md) !important;
  }

  .field-wrap input,
  .field-wrap select,
  .field-wrap textarea {
    font-size: 13px !important;
    padding: 18px 12px 6px !important;
    min-height: 48px !important;
    width: 100% !important;
  }

  .btn-submit {
    padding: var(--space-sm) !important;
    font-size: 13px !important;
    width: 100% !important;
    min-height: 48px !important;
  }

  /* Banners */
  .cta-banner {
    margin: var(--space-lg) var(--space-sm) !important;
    padding: var(--space-lg) var(--space-sm) !important;
  }

  .cta-text h2 {
    font-size: 22px !important;
  }

  .cta-text p {
    font-size: 13px !important;
  }

  .cta-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: var(--space-sm) !important;
  }

  .btn-lime,
  .cta-banner .btn-outline {
    padding: 12px 24px !important;
    font-size: 13px !important;
    width: 100% !important;
    text-align: center !important;
    min-height: var(--touch-target) !important;
  }

  /* Stats */
  .stats-row {
    grid-template-columns: 1fr !important;
  }

  .corner-stamp {
    width: 52px !important;
    height: 52px !important;
  }

  .stamp-text {
    font-size: 7px !important;
  }

  .fpill {
    font-size: 10px !important;
    padding: 5px 10px !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   6. SMALL MOBILE (≤320px)
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 320px) {
  nav {
    padding: 0 var(--space-xs) !important;
  }

  .hero-heading,
  .hero h1,
  .contact-left h1 {
    font-size: 24px !important;
    max-width: 100%;
    overflow: hidden;
  }

  .svc-card,
  .team-card,
  .val-card,
  .proj-card {
    padding: var(--space-md) var(--space-xs) !important;
  }

  .field-wrap input,
  .field-wrap select,
  .field-wrap textarea {
    padding: 16px 8px 4px !important;
  }

  .nav-brand {
    font-size: 13px !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   7. REDUCED MOTION PREFERENCES
   ────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: scroll !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    transform: none !important;
  }
}
