/* ================================================================
   INNOV-NE V2.9.2 — Mobile image/text separation and responsive flow
   Loaded AFTER responsive-system.css on all 24 HTML pages.
   Scope: <= 760px. Desktop/tablet-large styles remain unchanged.
   ================================================================ */

@media (max-width: 760px) {
  /* Prevent children with intrinsic image/grid widths from widening the viewport. */
  html, body { max-width: 100%; }
  main, main section, main article, main div, main a { min-width: 0; }
  main img { max-width: 100%; }
  .detail-copy, .detail-visual, .detail-content-grid > *, .service-story-copy,
  .service-story-art, .home-service-story-copy, .home-service-picture,
  .catalog-card, .solution-card, .partner-card, .contact-page-copy,
  .contact-form-page, .footer-col { min-width: 0; }

  /* Every editorial split becomes a true vertical sequence on portrait screens. */
  .detail-layout,
  .detail-content-grid,
  .partner-focus-grid,
  .about-grid,
  .contact-page-grid,
  .contact-layout,
  .intro-layout,
  .tech-layout,
  .catalog-intro,
  .service-story-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 22px !important;
  }

  .detail-hero {
    min-height: 0 !important;
    overflow: hidden;
  }
  .detail-copy,
  .detail-content-grid > div,
  .partner-focus-grid > div,
  .about-grid > div,
  .contact-page-grid > div,
  .contact-layout > div,
  .tech-layout > div {
    width: 100%;
    max-width: none !important;
  }
  .detail-copy h1,
  .listing-hero h1 {
    max-width: 100%;
    overflow-wrap: break-word;
    hyphens: auto;
    text-wrap: balance;
  }
  .detail-tagline, .detail-intro, .listing-hero p,
  .detail-content-grid p, .partner-focus-grid p,
  .about-grid p, .contact-page-grid p, .service-story-copy p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .detail-copy .hero-actions,
  .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .hero-actions .btn { max-width: 100%; white-space: normal; }

  /* Hero artwork: it has its own row, height and breathing room after the copy. */
  .detail-visual {
    position: relative !important;
    display: block !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: 620px !important;
    margin: 10px auto 0 !important;
    clear: both;
  }
  .detail-visual-frame {
    position: relative !important;
    display: grid !important;
    width: 100% !important;
    height: clamp(225px, 68vw, 330px) !important;
    min-height: 225px !important;
    max-height: 360px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
  }
  .detail-illustration-img {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 auto !important;
    object-fit: contain !important;
  }
  .detail-float {
    right: 8px !important;
    bottom: 8px !important;
    max-width: calc(100% - 16px) !important;
    padding: 9px 11px !important;
    font-size: 9px !important;
    line-height: 1.35 !important;
  }

  /* Partner and product hero marks stay inside their visual area, never clipped. */
  .partner-art-panel,
  .solution-art-panel,
  .solution-brand-panel {
    width: 100% !important;
    height: clamp(230px, 70vw, 330px) !important;
    min-height: 230px !important;
    max-height: 350px !important;
    overflow: hidden !important;
  }
  .partner-art-logo {
    width: 100% !important;
    max-width: 100% !important;
    height: 70% !important;
    max-height: 220px !important;
    padding: 10px 16px !important;
    display: grid !important;
    place-items: center !important;
  }
  .partner-art-logo img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 88% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    margin: auto !important;
  }
  .solution-detail-hero .solution-brand-panel {
    height: clamp(235px, 72vw, 330px) !important;
    min-height: 235px !important;
  }
  .solution-detail-hero .solution-brand-stage {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 44px 18px 42px !important;
    display: grid !important;
    place-items: center !important;
  }
  .solution-detail-hero .solution-brand-stage img {
    display: block !important;
    max-width: 88% !important;
    max-height: 100% !important;
    height: auto !important;
    margin: auto !important;
    object-fit: contain !important;
  }
  .solution-art-top, .solution-art-bottom,
  .partner-art-panel .solution-art-top,
  .partner-art-panel .solution-art-bottom {
    font-size: 8px !important;
    letter-spacing: .1em !important;
    max-width: calc(100% - 24px);
  }

  /* Home expertise: artwork is a separate block, then copy and its four points. */
  .home-service-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    padding: 34px 0 42px !important;
    align-items: start !important;
  }
  .home-service-row--reverse .home-service-picture,
  .home-service-row--reverse .home-service-story-copy {
    order: initial !important;
  }
  .home-service-picture {
    display: flex !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 1.18 / 1;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
  }
  .home-picture-frame {
    display: flex !important;
    width: min(100%, 440px) !important;
    height: 100% !important;
    max-height: 310px !important;
    margin: 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .home-picture-frame img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    margin: auto !important;
  }
  .home-service-story-copy {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 6px 0 0 !important;
  }
  .home-service-story-copy h3 { text-wrap: balance; }
  .home-feature-list { grid-template-columns: minmax(0, 1fr) !important; }
  .home-feature-item { grid-template-columns: 30px minmax(0, 1fr) !important; }

  /* Detailed service stories: always image first, text second, with a dedicated image stage. */
  .service-story-list { width: 100%; }
  .service-story-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 12px !important;
    padding: 26px 0 34px !important;
  }
  .service-story-row--reverse .service-story-art,
  .service-story-row--reverse .service-story-copy { order: initial !important; }
  .service-story-art {
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1.28 / 1;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 8px !important;
  }
  .service-story-art-inner {
    position: relative !important;
    display: grid !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    place-items: center !important;
    overflow: visible !important;
  }
  .service-story-art-inner img {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    margin: auto !important;
  }
  .service-story-copy {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 8px 0 0 !important;
  }
  .service-story-copy h3,
  .service-story-copy h4 { text-wrap: balance; }
  .service-story-copy p { font-size: 13px !important; line-height: 1.8 !important; }

  /* Catalog pages: move decorative illustrations into a real image row to stop text overlap. */
  .catalog-grid,
  .solution-grid,
  .partner-grid,
  .partner-grid-large,
  .related-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }
  .catalog-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 20px !important;
    overflow: hidden !important;
  }
  .catalog-card-art {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    width: 100% !important;
    height: clamp(135px, 42vw, 180px) !important;
    margin: 4px auto 14px !important;
    opacity: 1 !important;
    transform: none !important;
    order: 0 !important;
  }
  .catalog-card-art img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }
  .catalog-card:hover .catalog-card-art { transform: none !important; }
  .catalog-icon { flex: 0 0 auto; margin: 4px 0 12px !important; }
  .catalog-card h3, .catalog-card p { max-width: 100% !important; }
  .catalog-card p { margin-bottom: 4px !important; }
  .catalog-link {
    position: static !important;
    display: inline-flex !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 16px 0 0 !important;
    overflow-wrap: anywhere;
  }
  .catalog-number { z-index: 2; }

  .solution-card {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 18px !important;
  }
  .solution-card-visual {
    display: grid !important;
    width: 100% !important;
    height: clamp(165px, 48vw, 205px) !important;
    min-height: 0 !important;
    margin: 14px 0 18px !important;
    overflow: hidden !important;
  }
  .solution-card-visual img,
  .solution-logo-stage img {
    display: block !important;
    max-width: 88% !important;
    max-height: 88% !important;
    object-fit: contain !important;
    margin: auto !important;
  }
  .solution-card p { margin-bottom: 12px !important; }

  .partner-card {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 20px !important;
  }
  .partner-logo-wrap {
    display: flex !important;
    width: 100% !important;
    height: 125px !important;
    min-height: 0 !important;
    margin: 0 0 16px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .partner-logo-wrap img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 90% !important;
    max-height: 112px !important;
    object-fit: contain !important;
  }
  .partner-card > svg { top: 20px !important; right: 18px !important; }

  /* About, contact, technologies and legal blocks. */
  .about-values { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .legal-strip { grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; }
  .tech-cloud, .tech-logo-cloud {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .tech-chip, .tech-logo-chip {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .contact-page-grid, .contact-layout { gap: 26px !important; }
  .form-row { grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; }
  .map-frame { height: 300px !important; min-height: 260px; }
  .map-label { left: 10px !important; right: 10px !important; bottom: 10px !important; max-width: calc(100% - 20px) !important; }
  .map-heading { align-items: flex-start !important; flex-direction: column !important; gap: 12px !important; }

  /* Keep float labels and decorative indices inside the image area. */
  .detail-float, .partner-art-panel .detail-float { max-width: calc(100% - 18px) !important; }
  .service-story-art-caption, .service-story-art-index { display: none !important; }
  .partner-focus-points article { gap: 14px !important; }
  .partner-focus-points article > div { min-width: 0; }

  /* Footer: avoid narrow columns and long strings colliding on phone. */
  .footer-enterprise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .footer-brand, .footer-contact-col { grid-column: 1 / -1 !important; }
  .footer-col, .footer-col a, .footer-col span { min-width: 0 !important; overflow-wrap: anywhere; }
  .footer-bottom { display: flex !important; flex-wrap: wrap !important; gap: 8px 14px !important; }
  .footer-bottom > span { max-width: 100%; overflow-wrap: anywhere; }
}

@media (max-width: 430px) {
  .home-service-picture { aspect-ratio: 1.08 / 1; }
  .home-picture-frame { max-height: 260px !important; }
  .service-story-art { aspect-ratio: 1.15 / 1; }
  .service-story-copy h3 { font-size: clamp(25px, 8vw, 33px) !important; }
  .detail-visual-frame { height: clamp(215px, 66vw, 285px) !important; min-height: 215px !important; }
  .partner-art-panel, .solution-art-panel, .solution-brand-panel { height: clamp(220px, 68vw, 285px) !important; min-height: 220px !important; }
  .catalog-card { padding: 18px !important; }
  .catalog-card-art { height: 145px !important; }
  .solution-card-visual { height: 175px !important; }
  .partner-logo-wrap { height: 112px !important; }
  .about-values { grid-template-columns: minmax(0, 1fr) !important; }
  .tech-cloud, .tech-logo-cloud { grid-template-columns: minmax(0, 1fr) !important; }
  .footer-enterprise-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 22px !important; }
  .footer-brand, .footer-contact-col { grid-column: auto !important; }
  .hero-actions { align-items: stretch !important; flex-direction: column !important; }
  .hero-actions .btn { width: 100% !important; justify-content: center !important; }
}

@media (max-width: 360px) {
  .detail-copy h1, .listing-hero h1 { font-size: clamp(34px, 10.5vw, 43px) !important; letter-spacing: -.055em !important; }
  .detail-tagline { font-size: 16px !important; }
  .detail-intro { font-size: 12px !important; }
  .home-service-story-copy h3 { font-size: 29px !important; }
  .section-label { gap: 7px !important; letter-spacing: .08em !important; }
  .section-label > span { min-width: 0; }
  .tech-chip, .tech-logo-chip { padding-left: 10px !important; padding-right: 10px !important; }
  .footer-bottom { font-size: 9px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .home-service-picture, .catalog-card-art, .partner-card,
  .solution-card, .detail-visual, .service-story-art {
    transition: none !important;
    transform: none !important;
  }
}

@media (max-width: 430px) {
  .service-note-inner {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 12px !important;
  }
  .service-note-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }
  .detail-features { width: 100% !important; padding: 20px 17px !important; }
  .detail-features .btn { width: 100% !important; justify-content: center !important; }
  .partner-focus-points article { padding: 16px 0 !important; }
  .partner-focus-points b { font-size: 15px !important; }
  .partner-focus-points p { font-size: 12px !important; line-height: 1.7 !important; }
}
