/* V14 responsive layout: same content and assets, reflowed for smaller screens. */
@media (max-width: 1100px) {
  .nav { gap: 16px; }
  .links { gap: 14px; }
}

/* Homepage positioning block: clarify audiences and delivery capabilities below the hero. */
.home-positioning{background:#0d1218;color:#fff}
.home-positioning .wrap{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1.35fr);gap:38px;align-items:end}
.home-positioning-copy h2{max-width:620px;margin:10px 0 14px;color:#fff;font-size:clamp(2rem,4vw,3.45rem);line-height:1.02}
.home-positioning-copy>p{max-width:620px;color:#aeb7c4;font-size:1.02rem;line-height:1.65}
.home-positioning .actions{margin-top:24px}
.home-positioning-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.home-positioning-item{padding:18px;border:1px solid #2a313b;border-radius:16px;background:#111820}
.home-positioning-item strong{display:block;color:var(--amber);font-size:1rem;letter-spacing:.02em}
.home-positioning-item p{margin:8px 0 0;color:#aeb7c4;font-size:.88rem;line-height:1.45}
@media (max-width:900px){.home-positioning .wrap{grid-template-columns:1fr;gap:24px}}
@media (max-width:600px){.home-positioning{padding-block:38px}.home-positioning-copy h2{font-size:clamp(1.9rem,8vw,2.6rem)}.home-positioning-copy>p{font-size:.92rem;line-height:1.55}.home-positioning-grid{gap:8px}.home-positioning-item{padding:12px}.home-positioning-item strong{font-size:.88rem}.home-positioning-item p{font-size:.78rem;line-height:1.4}}
@media (max-width: 900px) {
  .wrap > *, .section-head > *, .split > *, .contact-grid > *,
  .opd-top > *, .product-page-grid > *, .footer-grid > *,
  .about-two-col > *, .about-service-grid > *, .project-article-layout > * {
    min-width: 0;
  }
  .section-head h2, .page-hero h1, .product-page-intro h1,
  .project-article-hero h1, .about-two-col h2 { overflow-wrap: anywhere; }
  .grid-products, .product-catalog .grid-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .specs span, .product-catalog .specs span {
    max-width: 100%; white-space: normal; overflow-wrap: anywhere;
    overflow: visible; text-overflow: clip;
  }
  .product-catalog .product-body > p {
    display: block; -webkit-line-clamp: unset; overflow: visible;
  }
  .topbar .wrap { flex-wrap: wrap; gap: 4px 16px; padding-block: 8px; }
  .topbar span { white-space: normal; }
  .nav { position: relative; height: auto; min-height: 76px; flex-wrap: wrap; }
  .menu { width: 44px; min-height: 44px; flex-shrink: 0; }
  .links {
    position: static; flex: 0 0 100%; width: 100%; padding: 12px 0 20px;
    gap: 4px; max-height: none;
  }
  .links a { width: 100%; min-height: 44px; padding: 10px 14px; }
  .links .lang { width: auto; }
  .links .mobile-quote { display: inline-flex; width: auto; color: #090b0f; }
  .links.open { display: flex; }
  .header { position: relative; }
  .product-group { scroll-margin-top: 20px; }
  .filters, .secondary-nav { max-width: 100%; flex-wrap: wrap; }
  .filter { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .opd-thumbs, .product-page-thumbs { max-width: 100%; }
  .opd-content table { min-width: 0; table-layout: fixed; }
  .opd-content th, .opd-content td { overflow-wrap: anywhere; }
  .form input, .form select, .form textarea { min-width: 0; font-size: 16px; }
  .contact-card a, .footer a, .opd-summary dd { overflow-wrap: anywhere; }
  .detail-panel { overflow-y: auto; overscroll-behavior: contain; }
  .project-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-gallery-card span { font-size: .75rem; }
  .project-gallery-card h3 { font-size: 1.15rem; line-height: 1.3; }
  .project-gallery-card p { font-size: .9rem; line-height: 1.55; }
  .products-banner {
    height: auto; min-height: 0; max-height: none; aspect-ratio: 1983 / 793;
  }
  .products-banner-inner > .products-banner-image {
    width: 100% !important; height: auto !important;
  }
  .products-banner-hotspot-products { left: 4.5%; top: 73%; width: 16%; height: 11%; }
  .products-banner-hotspot-contact { left: 20%; top: 73%; width: 13%; height: 11%; }
  .about-hero-image-only { min-height: 0; aspect-ratio: 2048 / 682; }
  .about-hero-image-only .about-hero-content { display: none; }
  .contact-page .contact-hero-image-only {
    height: auto; min-height: 0; aspect-ratio: 2048 / 682;
  }
  .contact-page .contact-hero-image-only .contact-hero-image { width: 100%; height: auto; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .topbar { display: block; font-size: .72rem; }
  .topbar .wrap { display: grid; gap: 2px; }
  .nav { min-height: 68px; gap: 8px; }
  .logo { font-size: clamp(1rem, 4.6vw, 1.25rem); }
  .logo small { font-size: .52rem; letter-spacing: .16em; }
  .section { padding-block: 48px; }
  .section-head { gap: 18px; margin-bottom: 26px; }
  .section-head h2 { font-size: clamp(1.85rem, 7.5vw, 2.4rem); line-height: 1.1; }
  .page-hero h1 { font-size: clamp(2rem, 9vw, 3.1rem); }
  .grid-products, .product-catalog .grid-products,
  .projects-grid, .project-gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .product-card, .product-body { min-width: 0; }
  .product-catalog .product-body { height: auto; }
  .product-card .link-arrow { display: inline-flex; align-items: center; min-height: 44px; }
  .product-catalog { padding-block: 32px 56px; }
  .project-gallery-card div { padding: 18px; }
  .project-gallery-card img { height: auto; aspect-ratio: 4 / 3; }
  .project-gallery-placeholder { height: auto; aspect-ratio: 4 / 3; }
  .project-article-layout { gap: 28px; }
  .about-process .work-carousel { padding: 0 0 46px; }
  .work-image { height: 220px; }
  .work-card-copy { min-height: 150px; padding: 18px; }
  .work-card-copy h3 { font-size: 1.1rem; }
  .work-card-copy p { font-size: .9rem; line-height: 1.55; }
  .work-pause { right: 0; bottom: 6px; font-size: .85rem; min-height: 36px; }
  .opd-content table { font-size: .85rem; }
  .opd-content th, .opd-content td { padding: 8px; }
  .product-page-intro h1 { font-size: clamp(2.3rem, 11vw, 4.2rem); }
  .product-breadcrumb { flex-wrap: wrap; white-space: normal; overflow-wrap: anywhere; }
  .contact-card, .contact-form { padding: 20px; }
  .cta-band .btn, .actions .btn { max-width: 100%; white-space: normal; text-align: center; }
  .wa-float {
    width: 48px; height: 48px; right: var(--floating-control-right);
    bottom: var(--floating-control-bottom); z-index: 31;
  }
  .footer { padding-bottom: 80px; }
}

/* Projects gallery on phones: two cards per row. */
@media (max-width: 600px) {
  .projects-gallery-section .project-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .projects-gallery-section .project-gallery-card {
    min-width: 0;
    border-radius: 8px;
  }
  .projects-gallery-section .project-gallery-card img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .projects-gallery-section .project-gallery-card div { padding: 10px; }
  .projects-gallery-section .project-gallery-card span {
    display: block; font-size: .6rem; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .projects-gallery-section .project-gallery-card h3 {
    margin: 5px 0 0; font-size: .82rem; line-height: 1.3;
    display: -webkit-box; overflow: hidden;
    -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  }
}

/* Click target for the embedded homepage banner button artwork. */
.home-banner-image-only { position: relative; }
.home-banner-hotspot-plan {
  position: absolute; z-index: 2; left: 18.2%; top: 67.8%;
  width: 8%; height: 6.2%; border-radius: 999px;
}
.home-banner-hotspot-plan:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 3px;
}
@media (min-width: 901px) { .mobile-quote { display: none; } }

/* Homepage phone product grid: three products per row. */
@media (max-width: 600px) {
  .featured-home .grid-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .featured-home .product-card { border-radius: 10px; }
  .featured-home .product-card .product-body { padding: 8px 6px; }
  .featured-home .specs { gap: 5px; margin: 0 0 8px; }
  .featured-home .specs span {
    padding: 5px; border-radius: 8px; font-size: .68rem; line-height: 1.4;
  }
  .featured-home .product-card .link-arrow {
    font-size: .68rem; line-height: 1.25; overflow-wrap: anywhere;
  }
  .featured-home .product-card .product-body {
    display: flex; flex-direction: column; min-height: 196px;
  }
  .featured-home .product-card h3 {
    min-height: 2.5em; margin: 5px 0 7px; font-size: .92rem; line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .featured-home .product-card .specs { min-height: 68px; align-content: flex-start; }
  .featured-home .product-card-actions {
    display: grid; grid-template-columns: 1fr; gap: 5px; width: 100%;
    margin-top: auto; padding-top: 8px;
  }
  .featured-home .product-card-actions .link-arrow,
  .featured-home .product-card-actions .compare-card-button {
    width: 100%; min-width: 0; min-height: 31px; height: 31px; margin: 0;
    padding: 4px 3px; justify-content: center; text-align: center;
    font-size: .68rem; line-height: 1; white-space: nowrap; overflow: hidden;
  }
  .featured-home .product-card-actions .compare-card-button {
    border-width: 1px !important; border-radius: 999px; font-weight: 850;
    width: max-content; max-width: 100%; min-height: 18px; height: 18px;
    padding: 3px 6px; font-size: 10px; line-height: 1.2;
    justify-self: center; overflow: visible;
  }
}

/* Product catalogue on small screens: four columns, as on desktop. */
@media (max-width: 900px) {
  .product-catalog .grid-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .product-catalog .product-card { border-radius: 10px; }
  .product-catalog .product-card .product-body { padding: 8px 5px; }
  .product-catalog .specs { gap: 4px; min-height: 0; margin: 0 0 8px; }
  .product-catalog .specs span {
    min-width: 0; max-width: 100%; display: block;
    padding: 4px; border-radius: 8px; font-size: .65rem; line-height: 1.4;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    overflow-wrap: normal;
  }
  .product-catalog .product-card .link-arrow {
    min-width: 0; max-width: 100%; padding-top: 8px;
    font-size: .7rem; line-height: 1.4; overflow-wrap: anywhere;
  }
}

/* Compact phone footer, retaining all navigation and contact information. */
@media (max-width: 600px) {
  .footer { padding: 28px 0 64px; font-size: .8125rem; line-height: 1.5; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer h4 { margin: 0 0 6px; font-size: .875rem; }
  .footer a { margin: 0; padding: 5px 0; }
  .footer .logo { padding: 0; font-size: 1.05rem; }
  .footer .logo small { font-size: .48rem; }
  .footer p { margin: 6px 0; }
  .footer .copyright { margin-top: 18px; padding-top: 12px; gap: 4px; font-size: .72rem; }
  .footer .copyright a { display: inline; padding: 0; }
}

/* Compact phone catalogue search and category controls. */
@media (max-width: 600px) {
  .product-catalog { padding-top: 18px; }
  .product-catalog .catalog-tools { gap: 6px; margin-bottom: 10px; }
  .product-catalog .catalog-search { gap: 4px; }
  .product-catalog .catalog-search label { font-size: .65rem; letter-spacing: .08em; }
  .product-catalog .search {
    height: 38px; padding: 7px 12px; font-size: 16px;
    box-shadow: none;
  }
  .product-catalog .catalog-count { margin: 0; font-size: .72rem; }
  .product-catalog .filters {
    gap: 5px; margin: 0 0 14px; padding: 0 0 12px;
  }
  .product-catalog .filter {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 30px; padding: 5px 8px; font-size: .72rem; line-height: 1.3;
  }
  .product-catalog .secondary-nav { gap: 5px; margin-bottom: 14px; }
  .product-catalog .secondary-nav a { padding: 5px 8px; font-size: .72rem; line-height: 1.3; }
}

/* Product-page phase 2 polish: keep the four-column mobile catalogue readable and compact. */
@media (max-width: 600px) {
  .product-catalog .product-img { min-height: 0; }
  .product-catalog .product-body .type { font-size: .52rem; line-height: 1.2; letter-spacing: .02em; }
  .product-catalog .product-body h3 { margin: 3px 0 5px; font-size: .74rem; line-height: 1.15; overflow-wrap: anywhere; }
  .product-catalog .specs span { margin: 0; min-height: 0; padding: 3px 4px; font-size: .58rem; line-height: 1.25; }
  .product-catalog .specs span:nth-child(n+2) { display: block; }
  .product-catalog .product-card .link-arrow { display: block; min-height: 0; padding: 6px 0 0; border-top: 1px solid rgba(77,88,101,.18); font-size: .62rem; }
  .product-catalog .product-group { margin-bottom: 22px; }
  .product-catalog .subcategory-banner { margin-bottom: 8px; padding: 12px 0; }
  .product-catalog .subcategory-banner-copy h2 { margin: 3px 0; font-size: 1.25rem; }
  .product-catalog .subcategory-banner-copy p { font-size: .68rem; }
}

@media(max-width:900px){.compare-head{display:block}.compare-actions{margin-top:20px}.compare-product-picker{grid-template-columns:repeat(3,minmax(0,1fr))}.compare-bar-inner{align-items:flex-start;flex-wrap:wrap;padding:12px 0}.compare-bar-actions{margin-left:auto}}
@media(max-width:600px){.compare-page{padding-top:42px}.compare-product-picker{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.compare-picker-card{padding:10px}.compare-picker-card h3{font-size:1rem}.compare-bar-inner{width:calc(100% - 24px);gap:8px}.compare-bar-inner>strong{width:100%}.compare-bar-actions{width:100%;display:flex;justify-content:space-between}.compare-head h1{font-size:2.7rem}}
