/* Brand polish guided by unslop, by Damir Sokolovsky (@heydamir), CC BY 4.0. */
:root {
  --ui-ease: cubic-bezier(.22, 1, .36, 1);
  --ui-feedback: 180ms;
  --ui-enter: 400ms;
  --ui-line: rgba(24, 23, 21, .12);
  --footer-logo-width: 208px;
}

.ui-icon { display: block; width: 18px; height: 18px; flex: 0 0 18px; }
.button, .text-link { gap: 24px; }
.button {
  min-height: 48px;
  padding: 12px 20px;
  font-size: 17px;
  font-weight: 500;
  transition: background-color var(--ui-feedback) var(--ui-ease), color var(--ui-feedback) var(--ui-ease), transform var(--ui-feedback) var(--ui-ease);
}
.button:hover, .text-link:hover { transform: none; }
.button:active { transform: scale(.98); }
.button.accent { color: var(--ink); }
.button.compact { min-height: 44px; padding: 12px 16px; font-size: 16px; }
.text-link { min-height: 44px; align-items: center; }
.button .ui-icon, .text-link .ui-icon { width: 18px; height: 18px; }
.header { height: 88px; }
.header .nav { gap: 32px; }
.menu-button { width: 44px; height: 44px; padding: 12px; }
.menu-button .ui-icon { margin-inline: auto; }
.languages button { min-height: 44px; letter-spacing: 0; }
.solutions-menu {
  padding: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
  backdrop-filter: blur(20px) saturate(115%);
  transform: translateY(-6px);
  transition: opacity var(--ui-feedback) var(--ui-ease), transform var(--ui-feedback) var(--ui-ease);
}
.solutions-menu.is-open { transform: none; transition-duration: var(--ui-feedback); }
.solutions-menu a { min-height: 48px; padding: 12px; font-size: 16px; }
.solutions-menu a .ui-icon { opacity: .65; }
.solutions-toggle>span { transition: transform var(--ui-feedback) var(--ui-ease); }

.footer {
  max-width: 1500px;
  margin: 0 auto;
  padding: 40px var(--gutter) 32px;
}
.footer .footer-brand { width: var(--footer-logo-width); max-width: 100%; }
.footer .footer-logo { width: 100%; height: auto; }
.footer .footer-bottom { margin-top: 24px; gap: 16px 32px; }
.footer-positioning, .footer-copyright { font-size: 14px; line-height: 1.5; letter-spacing: 0; }

.product-detail .detail-intro h1 { font-size: clamp(32px, 3.5vw, 52px); max-width: none; letter-spacing: -.025em; }
.product-info h2 { letter-spacing: -.02em; }
.product-actions { gap: 24px; }
.product-actions .button { font-size: 16px; }
.page-intro>p, .product-info p { line-height: 1.55; }
.small-note { font-size: 14px; letter-spacing: 0; }
.product-gallery { display: flex; flex-direction: column; align-self: center; height: auto; min-height: 0; }
.gallery-viewport { position: relative; flex: none; aspect-ratio: 16/9; overflow: hidden; background: #17221c; }
.product-gallery .gallery-image { display: block; opacity: 0; transition: opacity 200ms var(--ui-ease); }
.product-gallery .gallery-navigation {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 16px;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
}
.product-gallery .gallery-controls {
  position: static;
  display: flex;
  align-items: center;
  background: transparent;
  color: var(--ink);
  margin-left: auto;
}
.product-gallery .gallery-image.is-active { opacity: 1; }
.gallery-controls button, .gallery-controls a {
  width: 44px;
  height: 44px;
  transition: background-color var(--ui-feedback) var(--ui-ease);
}
.gallery-controls button:hover, .gallery-controls a:hover { background: var(--surface); }
.gallery-counter { min-width: 40px; text-align: center; font-size: 13px; letter-spacing: 0; }
.product-gallery .gallery-dots { position: static; display: flex; flex-wrap: nowrap; gap: 0; max-width: none; }
.product-gallery .gallery-dots button { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; background: transparent; }
.product-gallery .gallery-dots button::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: .25; transition: opacity var(--ui-feedback) var(--ui-ease); }
.product-gallery .gallery-dots button[aria-current=true] { background: transparent; }
.product-gallery .gallery-dots button[aria-current=true]::before { opacity: 1; }
.related-row { gap: 24px; padding: 24px; }
.related-row .button { flex: 0 0 auto; }
.related .section-heading p { max-width: 46ch; }

.unslop-enter { animation: unslop-enter var(--ui-enter) var(--ui-ease) both; }
@keyframes unslop-enter { from { opacity: .3; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .header .nav { gap: 20px 32px; }
  .nav.is-open { padding: 24px var(--gutter); }
  .solutions-menu { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .product-actions { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 760px) {
  :root { --footer-logo-width: 184px; }
  .header { height: 80px; }
  .footer { padding-top: 32px; padding-bottom: 24px; }
  .footer .footer-bottom { margin-top: 24px; align-items: flex-start; flex-wrap: wrap; gap: 12px 24px; }
  .product-gallery { width: 100%; }
  .product-gallery .gallery-navigation { justify-content: center; gap: 0 12px; padding: 4px 12px; }
  .product-gallery .gallery-controls { margin-left: 0; }
  .product-gallery .gallery-dots { justify-content: center; }
  .related-row { padding: 24px 20px; }
  .related-row .button { margin-top: 16px; }
}

@media (max-width: 520px) {
  .product-gallery .gallery-navigation { flex-direction: column; }
  .product-gallery .gallery-dots, .product-gallery .gallery-controls { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .unslop-enter { animation: none; }
  .button, .text-link, .solutions-menu, .solutions-toggle>span, .product-gallery .gallery-image { transition: none; }
}
