/* Targeted UI enhancements for the patent and report sections. */
#patents .patent-art.sq-patent-rotator .patent-sheet {
  display: flex;
  align-items: center;
  justify-content: center;
  height: min(62vh, 560px);
  overflow: hidden;
}

#patents .patent-art.sq-patent-rotator .patent-sheet img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 180ms ease;
}

#patents .patent-art.sq-patent-rotator .patent-sheet img.sq-changing {
  opacity: 0;
}

#reports .report-controls {
  display: none !important;
}

#reports .report-deck.report-deck-full {
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  will-change: transform;
}

#reports .report-deck.report-deck-full.sq-dragging {
  cursor: grabbing;
}

/* Restore hierarchy lost when translated headings are split into spans. */
#technical-approach .tech-band-grid > div:first-child h2 {
  color: #75def0;
  white-space: pre-line;
  margin: 0 0 28px;
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

#technical-approach .tech-band-grid > div:first-child h2 span {
  display: block;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

#technical-approach .tech-band-grid > div:first-child p,
#technical-approach .tech-band-grid > div:first-child p span {
  color: #b9dce2;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.85;
  letter-spacing: 0;
}

#technical-approach .tech-principles b {
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.45;
}

/* The supplied footwear campaign is portrait artwork and must remain uncropped. */
#products .product-tile .tile-image.sq-campaign-image {
  height: auto;
  aspect-ratio: 3 / 4;
  background: #07192b;
}

#products .product-tile .tile-image.sq-campaign-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

img.sq-series-campaign {
  object-fit: contain !important;
  filter: none !important;
}

/* Related-series cards are image windows: fill them edge-to-edge, cropping as needed. */
.related-carousel .related-image img.sq-series-campaign {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center center;
  transform: scale(1.025);
}

.related-carousel .related-image:hover img.sq-series-campaign {
  transform: scale(1.065);
}

.sq-patent-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 25, 20, 0.9);
  backdrop-filter: blur(8px);
}

.sq-patent-lightbox[hidden] {
  display: none;
}

.sq-patent-lightbox__figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(92vw, 920px);
  max-height: 92vh;
  margin: 0;
}

.sq-patent-lightbox__figure img {
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.sq-patent-lightbox__figure figcaption {
  margin-top: 10px;
  color: #eef6ef;
  font-size: 14px;
}

.sq-patent-lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 680px) {
  #patents .patent-art.sq-patent-rotator .patent-sheet {
    height: min(66vh, 430px);
    padding: 10px;
  }

  .sq-patent-lightbox {
    padding: 14px;
  }

  #technical-approach {
    padding: 76px 0 64px;
  }

  #technical-approach .tech-band-grid {
    gap: 42px;
  }

  #technical-approach .tech-band-grid > div:first-child h2 {
    margin-bottom: 24px;
    font-size: clamp(40px, 11vw, 54px);
    line-height: 1.12;
  }

  #technical-approach .tech-band-grid > div:first-child p,
  #technical-approach .tech-band-grid > div:first-child p span {
    font-size: 17px;
    line-height: 1.9;
  }

  #technical-approach .tech-principles > div {
    padding: 24px 0;
  }

  #technical-approach .tech-principles b {
    font-size: 21px;
  }
}
