.reference-home .has-product-model .ref-hero-media {
  inset: 0;
  width: 100%;
  height: 100%;
  mask-image: none;
}
.reference-home .has-product-model .ref-hero-media img {
  object-fit: cover;
  object-position: center bottom;
  mask-image: none;
}
.reference-home .has-product-model .ref-hero-copy {
  height: 100%;
  justify-content: center;
  padding-block: 28px;
  color: #103f60;
  pointer-events: none;
  z-index: 2;
}
.has-product-model .ref-hero-copy a { pointer-events: auto; }
.reference-home .has-product-model .ref-hero-copy > :is(p, h1, h2) { max-width: 46%; }
.hero-product {
  position: absolute;
  inset: 3% 2% 3% 48%;
  z-index: 3;
  scroll-margin-top: calc(var(--header-height) + 20px);
}
.hero-product model-viewer,
.hero-product-fallback {
  position: absolute;
  inset: 0 0 52px;
  width: 100%;
  height: calc(100% - 52px);
  background: transparent;
  transform: translateY(12%);
}
.hero-product model-viewer {
  --poster-color: transparent;
  --progress-bar-color: #0068b7;
  --progress-bar-height: 2px;
  touch-action: pan-y;
  opacity: 0;
  transition: opacity 250ms ease;
}
.hero-product model-viewer::part(default-progress-bar) { display: none; }
.hero-product-fallback { object-fit: contain; pointer-events: none; opacity: 1; transition: opacity 250ms ease; }
.hero-product.is-model-ready model-viewer { opacity: 1; }
.hero-product.is-model-ready .hero-product-fallback { opacity: 0; }
.hero-product.is-model-error model-viewer { visibility: hidden; }
.hero-product.is-model-error .hero-product-fallback { opacity: 1; }
@media (max-width: 980px) {
  .reference-home > .has-product-model { min-height: 540px; }
  .hero-product { inset: 6% 1% 4% 47%; }
}
@media (min-width: 701px) and (max-width: 980px) {
  .reference-home .has-product-model .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 44%;
    max-width: 44%;
  }
  .reference-home .has-product-model .hero-actions .button {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding-inline: 16px;
  }
}
@media (max-width: 700px) {
  .reference-home > .has-product-model {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(240px, 1fr);
    height: auto;
    min-height: calc(100svh - var(--header-height) - var(--contact-bar-height));
    max-height: none;
    padding-bottom: 12px;
  }
  .reference-home .has-product-model .ref-hero-copy {
    position: relative;
    inset: auto;
    height: auto;
    justify-content: flex-start;
    padding-block: 24px 8px;
  }
  .reference-home .has-product-model .ref-hero-copy > :is(p, h1, h2) { max-width: 100%; }
  .reference-home .has-product-model .hero-actions {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
    margin-top: 16px;
  }
  .reference-home .has-product-model .hero-actions .button {
    flex: 1 1 190px;
    width: auto;
    min-width: 0;
    min-height: 48px;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.4;
  }
  .hero-product {
    position: relative;
    inset: auto;
    width: min(100%, 560px);
    min-height: clamp(240px, 65vw, 360px);
    margin-inline: auto;
  }
  .hero-product model-viewer, .hero-product-fallback { transform: translateY(4%); }
  .reference-home .has-product-model .ref-hero-media img { object-position: 70% bottom; }
}
@media (max-width: 980px) and (max-height: 540px) and (orientation: landscape) {
  .reference-home > .has-product-model { display: block; height: auto; min-height: 320px; padding-bottom: 0; }
  .reference-home .has-product-model .ref-hero-copy { position: relative; inset: auto; height: auto; min-height: 320px; justify-content: center; padding-block: 20px; }
  .reference-home .has-product-model .ref-hero-copy > :is(p, h1, h2) { max-width: 54%; }
  .reference-home .has-product-model .hero-actions { flex-direction: row; flex-wrap: wrap; width: 54%; max-width: 54%; gap: 8px; margin-top: 12px; }
  .reference-home .has-product-model .hero-actions .button { flex: 1 1 150px; width: auto; min-height: 44px; padding: 10px 12px; font-size: 13px; line-height: 1.35; }
  .hero-product { position: absolute; inset: 12px 1% 16px 56%; width: auto; min-height: 0; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-product model-viewer, .hero-product-fallback { transition: none; }
}
