/* Separate small-screen artboard so the desktop composition stays untouched. */
.project-banner__responsive { display: none; }
.project-banner__subtitle-mobile { display: none; }

@media (max-width: 1199px) {
  html body section.project-banner.project-banner.project-banner {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1800 / 1054 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border: 0 !important;
    background: #080d20 !important;
  }
  html body section.project-banner > :not(.project-banner__responsive) {
    display: none !important;
  }
  html body section.project-banner > .project-banner__responsive {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
  }
  html body section.project-banner .project-banner__picture,
  html body section.project-banner .project-banner__image {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center bottom !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
  html body section.project-banner .project-banner__copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.3vw, 16px);
    width: 100%;
    padding: clamp(28px, 4vw, 48px) 4.2vw 0;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(0,0,0,.58), rgba(0,0,0,.18) 78%, transparent);
  }
  html body section.project-banner .project-banner__label {
    font: 700 clamp(13px, 1.65vw, 18px)/1.25 'Manrope', sans-serif !important;
    color: #fff !important;
    letter-spacing: .06em !important;
    margin: 0 !important;
  }
  /* Both the longest wording and widest rendered title fit at 768px. */
  html body section.project-banner .project-banner__title {
    font-family: 'Manrope', sans-serif !important;
    font-size: 5.8vw !important;
    font-weight: 400 !important;
    line-height: 1.12 !important;
    letter-spacing: -.035em !important;
    white-space: nowrap !important;
    color: #fff !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
  html body section.project-banner .project-banner__subtitle {
    font-family: 'Manrope', sans-serif !important;
    font-size: clamp(15px, 1.95vw, 23.4px) !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    color: #fff !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
}

@media (max-width: 1199px) {
  html body section.project-banner:has(.project-banner__image[src*="product-"]) .project-banner__copy {
    background: none;
  }
}

@media (max-width: 359px) {
  /* Keep the existing tall mobile artwork readable on very narrow screens. */
  html body section.project-banner .project-banner__picture:has(img[src*="product-"])::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: var(--banner-art) center bottom / cover;
    filter: blur(28px);
  }
  html body section.project-banner .project-banner__picture:has(img[src*="product-"]) .project-banner__image {
    object-fit: contain !important;
    mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  }
}

@media (max-width: 767px) {
  html body section.project-banner.project-banner.project-banner { aspect-ratio: 4 / 5 !important; }
  html body section.project-banner .project-banner__copy {
    padding: 24px 6vw 12px;
    gap: 10px;
  }
  html body section.project-banner .project-banner__label { font-size: 12px !important; }
  html body section.project-banner .project-banner__title {
    font-size: 5.6vw !important;
    white-space: nowrap !important;
    text-wrap: nowrap;
  }
  html body section.project-banner .project-banner__subtitle {
    font-size: clamp(12px, 3.59vw, 16px) !important;
  }
  html body section.project-banner .project-banner__subtitle-full { display: none; }
  html body section.project-banner .project-banner__subtitle-mobile { display: inline; }
}

@media (max-width: 359px) {
  html body section.project-banner .project-banner__copy { padding-top: 16px; gap: 8px; }
  .project-banner__picture:has(img[src*="product-pointer-"]) { --banner-art: url('uploads/product-pointer-mobile.jpg'); }
  .project-banner__picture:has(img[src*="product-soundpath-"]) { --banner-art: url('uploads/product-soundpath-mobile.jpg'); }
  .project-banner__picture:has(img[src*="product-truemix-"]) { --banner-art: url('uploads/product-truemix-mobile.jpg'); }
  .project-banner__picture:has(img[src*="product-control-"]) { --banner-art: url('uploads/product-control-mobile.jpg'); }
}
