/* Homepage content only: preserve the Header, Hero and carousel geometry. */
/* New source-preserving images fit the existing card slots without cropping. */
.six-category-grid .supply-card > img[src*="/product-studio-20261029/"] { object-fit: contain; background: #f3f5f8; }
.hero-studio-picture { position: absolute; inset: 0; display: block; }
.hero-studio-picture > .hero-image { width: 100%; height: 100%; object-fit: cover; }
/* Six categories extend the measured asymmetric grid; never scale the page. */
/* More slides share the existing control row; keep all controls inside narrow screens. */
@media (max-width: 767px) {
  .hero .carousel-controls { max-width: 100%; min-width: 0; }
  .hero .carousel-selectors { flex: 1 1 auto; min-width: 0; }
  .hero .carousel-selectors .carousel-control { flex: 1 1 44px; min-width: 0; }
}
.six-category-grid > .supply-card { order: initial !important; }
.six-category-grid .supply-title { overflow-wrap: normal; }
@media (min-width: 1024px) {
  .supply-grid.six-category-grid { grid-template-rows: repeat(3, auto); }
  .six-category-grid > .supply-card-0 { grid-column: span 2; grid-row: span 3; }
  .six-category-grid > .supply-card-5 { grid-column: span 2; }
  .six-category-grid > .supply-card-5::before { aspect-ratio: 592 / 280; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .six-category-grid > .supply-card-5 { grid-column: 1 / -1; }
  .six-category-grid > .supply-card-5::before { aspect-ratio: 2 / 1; }
  .six-category-grid > .supply-card.supply-card-5::before { aspect-ratio: 2 / 1; }
}
main > .section > .container,
.home .site-footer > .container {
  /* Keep the reference's 1280px frame; grow moderately on wider monitors. */
  max-width: clamp(1280px, 88vw, 1440px);
}

main > .section {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.segment-grid,
.trust-grid,
.split,
.footer-grid {
  min-width: 0;
}

.segment-card,
.trust-card {
  height: auto;
  min-width: 0;
  padding: clamp(24px, 2.25vw, 32px);
  overflow-wrap: anywhere;
}

.segment-card h3,
.segment-card p,
.trust-card h3,
.trust-card p,
.split-copy,
.brand-empty,
.footer-grid > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.split-copy h2,
.split-description {
  min-height: 0;
}

.split-media {
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
}

.split-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Put text in normal flow over the image so longer copy grows the tile. */
.supply-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: stretch;
  isolation: isolate;
  height: auto;
  min-height: min-content;
  aspect-ratio: auto;
}

.supply-card::before {
  content: "";
  grid-area: 1 / 1;
  width: 100%;
  aspect-ratio: 280 / 322;
  pointer-events: none;
}

.supply-card > img,
.supply-card > .card-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.supply-copy {
  grid-area: 1 / 1;
  align-self: end;
  position: relative;
  inset: auto;
  padding: 24px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.supply-card .asset-note {
  max-width: calc(100% - 24px);
}

.article-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: auto;
}

.article-media {
  width: 100%;
  flex: none;
  aspect-ratio: 8 / 5;
  overflow: hidden;
}

.article-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-copy {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.article-title {
  height: auto;
  overflow: visible;
}

.article-excerpt {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  line-height: 24px;
  color: #64748b;
}

.brand-list {
  width: 100%;
  min-width: 0;
}

.certificate-image {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

@media (min-width: 768px) {
  .segment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .trust-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    align-items: stretch;
  }

  .supply-grid {
    grid-template-rows: repeat(2, auto);
    align-items: stretch;
  }

  .supply-card {
    height: auto;
  }

  .supply-card-0 {
    height: auto;
    aspect-ratio: auto;
  }

  .supply-card-0::before {
    display: none;
  }

  .supply-copy {
    padding: clamp(24px, 2.25vw, 32px);
  }

  .article-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    align-items: stretch;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  /* A full-width lead tile and two generous category columns on tablet. */
  .supply-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .supply-card-0 {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: auto;
  }

  .supply-card-0::before {
    display: block;
    aspect-ratio: 8 / 5;
  }

  .supply-card:not(.supply-card-0)::before {
    aspect-ratio: 1 / 1;
  }
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(40px, 3.5vw, 64px);
  }

  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(32px, 2.5vw, 48px);
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .segment-grid {
    margin-inline: 0;
    padding: 0;
    gap: 16px;
  }

  .segment-card {
    flex: 0 0 100%;
  }

  .supply-card,
  .article-card {
    flex-basis: min(86vw, 360px);
  }

  .split {
    gap: 32px;
  }

  .trust-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom,
  .articles-heading {
    flex-wrap: wrap;
  }
}
