/* A shared studio treatment for the existing product portfolio. */
.product-visual:not(.photo) {
  background: radial-gradient(ellipse at 48% 35%, #fff 0%, #f0f4f8 62%, #e4ebf2 100%);
  padding: 44px 22px 19px;
}
.product-visual:not(.photo)::after {
  content: ''; position: absolute; pointer-events: none;
  left: 19%; right: 19%; bottom: 12px; height: 12px;
  background: radial-gradient(ellipse, #0d294d16, transparent 68%);
}
.product-visual:not(.photo) > img {
  position: relative; z-index: 1;
  filter: drop-shadow(0 9px 6px #17324c14);
}
.product-visual.photo > img { filter: contrast(1.035) saturate(.92); }
.product-visual.photo::after {
  content: ''; pointer-events: none; position: absolute; inset: 0;
  background: linear-gradient(180deg, #081e3118, transparent 42%, #081e3126);
}
.product-card { transition: border-color .25s, box-shadow .25s, transform .3s; }
.product-open span, .text-link span, .button span { transition: transform .25s; }
.product-open:hover span, .text-link:hover span, .button:hover span { transform: translate(3px, -2px); }
.dialog-image { background: radial-gradient(ellipse at center, #fff, #e8eef5); }
.dialog-image > img { mix-blend-mode: normal; filter: drop-shadow(0 12px 10px #17324c19); }
.header { transition: box-shadow .3s, border-color .3s; }
.header.is-scrolled { box-shadow: 0 5px 22px #0927440d; border-bottom-color: #d9e3ed; }
.reading-progress {
  pointer-events: none; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px; background: #1689ed; transform: scaleX(0); transform-origin: left;
}
.filters button, .language-switch a { transition: background .2s, color .2s, border-color .2s; }
.brand-filter select:focus-visible { outline: 3px solid #087cec; outline-offset: 3px; }
.motion-enabled .hero-copy > * { animation: intro-rise .75s both cubic-bezier(.2,.7,.2,1); }
.motion-enabled .hero-copy > :nth-child(2) { animation-delay: .08s; }
.motion-enabled .hero-copy > :nth-child(3) { animation-delay: .16s; }
.motion-enabled .hero-copy > :nth-child(4) { animation-delay: .24s; }
.motion-enabled .hero-copy > :nth-child(5) { animation-delay: .32s; }
.motion-enabled .hero-image > img { animation: hero-settle 1.15s both cubic-bezier(.2,.7,.2,1); }
.motion-enabled .hero-image figcaption { animation: intro-rise .7s .3s both; }
.motion-enabled .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .65s var(--reveal-delay, 0ms) cubic-bezier(.2,.7,.2,1),
    transform .65s var(--reveal-delay, 0ms) cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .25s;
}
.motion-enabled .reveal.is-visible { opacity: 1; transform: translateY(0); }
.motion-enabled dialog[open] { animation: dialog-enter .28s cubic-bezier(.2,.7,.2,1); }
.motion-enabled dialog[open]::backdrop { animation: backdrop-enter .25s; }
.motion-enabled .card-diagram.is-visible .lens-mark { animation: lens-reveal 1.2s .3s both; }
.motion-enabled .card-diagram.is-visible .card-inner::after {
  content: ''; pointer-events: none; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: #a8d5ff; box-shadow: 0 0 15px 3px #5baaff44;
  animation: scan-once 1.8s .5s both;
}
@keyframes intro-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-settle { from { opacity: .6; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes lens-reveal { from { opacity: .3; } to { opacity: 1; } }
@keyframes scan-once { 0% { top: 6%; opacity: 0; } 15%,80% { opacity: .8; } 100% { top: 94%; opacity: 0; } }
@media (hover: hover) and (pointer: fine) {
  .product-card:hover, .motion-enabled .product-card.is-visible:hover {
    transform: translateY(-3px); border-color: #a9c4dd; box-shadow: 0 13px 30px #193d5d0b;
  }
  .product-card:hover .product-visual:not(.photo) > img { transform: translateY(-2px) scale(1.035); }
}
@media (max-width: 780px) {
  .motion-enabled .header nav.open { animation: intro-rise .22s both; }
  .motion-enabled .reveal { transform: translateY(10px); transition-delay: 0ms; }
  .motion-enabled .reveal.is-visible { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .product-card:hover, .product-card:hover .product-visual > img { transform: none !important; }
}
.motion-disabled *, .motion-disabled *::before, .motion-disabled *::after { animation: none !important; transition: none !important; }
.motion-disabled .reveal { opacity: 1 !important; transform: none !important; }
@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-enabled .reveal { opacity: 1 !important; transform: none !important; }
  .reading-progress { display: none; }
}

/* Vector arrows stay monochrome on mobile, independent of emoji fonts. */
.arrow-icon{display:inline-block;vertical-align:-.13em;flex-shrink:0;overflow:visible}

/* Official product photography for Hexagon ZG catalogue cards. */
#hexagon-products .compact-card,#mech-products .compact-card{flex-direction:column}
.compact-product-image{height:250px;display:flex;align-items:center;justify-content:center;background:#f4f7fa;border-bottom:1px solid #e1e8ef;padding:22px}
.compact-product-image img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
#hexagon-products .compact-copy,#mech-products .compact-copy{flex:1}
@media(max-width:780px){.compact-product-image{height:230px;padding:18px}}
.dialog-image>img[src*="/assets/hexagon-"]{width:100%;height:320px;object-fit:contain}
@media(max-width:780px){.dialog-image>img[src*="/assets/hexagon-"]{height:200px}}

/* Use full official application photos without stretching small catalogue thumbnails. */
.compact-product-image.product-photo{padding:0;overflow:hidden;background:#edf1f5}
.compact-product-image.product-photo img{object-fit:contain;mix-blend-mode:normal}
.dialog-image:has(>.product-photo){padding:16px}
.dialog-image>img.product-photo[src*="/assets/hexagon-"]{height:auto;max-height:430px;filter:none}
@media(max-width:780px){.dialog-image:has(>.product-photo){height:auto;min-height:180px}.dialog-image>img.product-photo[src*="/assets/hexagon-"]{max-height:260px}}

.dialog-image>img[src*="/assets/mech-"]{width:100%;height:320px;object-fit:contain}
@media(max-width:780px){.dialog-image>img[src*="/assets/mech-"]{height:200px}}
