/* Home page: let the showroom media begin at the very top of the viewport. */
.showroom-copy .button:focus-visible,
.showroom-controls button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.showroom-hero {
  --showroom-height: clamp(650px, 88svh, 900px);
  --showroom-fade: cubic-bezier(.22, 1, .36, 1);
  background: #102033;
}

.showroom-slide {
  background: #102033;
  transition: opacity 1050ms var(--showroom-fade), visibility 0s linear 1050ms;
}

.showroom-slide.is-active { transition-delay: 0s; }

.showroom-copy {
  transform: translateY(10px);
  transition: opacity 760ms var(--showroom-fade), transform 850ms var(--showroom-fade);
}

.showroom-slide.is-active .showroom-copy { transition-delay: 170ms; }

/* The gradient sits above each image and video, keeping navigation and copy readable. */
.showroom-slide::after,
.showroom-slide-freezer::after,
.showroom-slide-centrifuge::after,
.showroom-slide-euromex::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 16, 31, .83) 0%, rgba(5, 16, 31, .65) 30%, rgba(5, 16, 31, .13) 77%),
              linear-gradient(180deg, rgba(5, 16, 31, .36), transparent 32%, transparent 70%, rgba(5, 16, 31, .29));
}

.showroom-product,
.showroom-slide-freezer .showroom-product,
.showroom-slide-euromex {
  background: #102033;
}

.showroom-slide:not(.showroom-slide-euromex) .showroom-product > :is(img, video),
.showroom-slide-freezer .showroom-product-video,
.showroom-slide-euromex .showroom-product .showroom-product-video {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: none;
  mask-image: none;
}

.showroom-slide-freezer .showroom-product-video { object-position: 58% center; }
.showroom-slide-euromex .showroom-product .showroom-product-video { object-position: 62% center; }

.showroom-slide-inner { align-items: center; }

.showroom-copy,
.showroom-slide-euromex .showroom-copy {
  width: min(52%, 630px);
  padding: calc(var(--header-height) + 24px) 24px 110px 0;
}

.showroom-slide .showroom-brand,
.showroom-slide .showroom-copy h1,
.showroom-slide .showroom-copy h2,
.showroom-slide .showroom-copy > p:not(.showroom-brand) {
  color: #fff;
  text-shadow: 0 2px 24px rgba(3, 12, 25, .35);
}

.showroom-slide .showroom-copy h1,
.showroom-slide .showroom-copy h2 {
  max-width: 13ch;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: clamp(44px, 5.1vw, 72px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.04;
}

.showroom-slide .showroom-copy > p:not(.showroom-brand) {
  max-width: 38ch;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-weight: 500;
  letter-spacing: -.018em;
  line-height: 1.58;
}

.showroom-copy .button-primary,
.showroom-copy .button-primary:hover {
  min-height: 46px;
  margin-top: 26px;
  padding: 11px 19px;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  color: #102b4d;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .005em;
  line-height: 1.25;
  box-shadow: 0 7px 20px rgba(3, 12, 25, .16);
  transition: transform 220ms var(--ease), background-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.showroom-copy .button-primary::after { content: none; }

.showroom-copy .button-primary:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 10px 24px rgba(3, 12, 25, .22);
}

.showroom-copy .button-primary:active { transform: translateY(0); }

.showroom-controls { bottom: 36px; }

.showroom-dots,
.showroom-controls > button,
.showroom-playback {
  border-color: rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(7, 20, 39, .5);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.showroom-playback {
  position: absolute;
  z-index: 4;
  bottom: 36px;
  left: max(24px, calc((100vw - var(--container)) / 2 + 24px));
  display: grid;
  place-items: center;
  width: var(--control-size);
  height: var(--control-size);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease);
}

.showroom-playback-progress {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  max-width: none;
  overflow: visible;
  transform: rotate(-90deg);
  pointer-events: none;
}

.showroom-playback-progress circle {
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 113.1;
  stroke-dashoffset: 113.1;
}

.showroom-playback:hover,
.showroom-playback:focus-visible {
  transform: translateY(-3px);
  background: rgba(7, 20, 39, .85);
}

.showroom-playback:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.showroom-playback[aria-pressed="true"] span { padding-left: 2px; }

@media (max-width: 760px) {
  .showroom-hero { --showroom-height: max(690px, 100svh); }

  .showroom-hero,
  .showroom-track,
  .showroom-slide,
  .showroom-slide-inner { min-height: var(--showroom-height); }

  .showroom-slide::after,
  .showroom-slide-freezer::after,
  .showroom-slide-centrifuge::after,
  .showroom-slide-euromex::after {
    background: linear-gradient(180deg, rgba(5, 16, 31, .8) 0%, rgba(5, 16, 31, .72) 42%, rgba(5, 16, 31, .2) 78%, rgba(5, 16, 31, .46) 100%);
  }

  .showroom-product,
  .showroom-slide-freezer .showroom-product,
  .showroom-euromex-media { inset: 0; }

  .showroom-slide:not(.showroom-slide-euromex) .showroom-product > :is(img, video),
  .showroom-slide-freezer .showroom-product-video,
  .showroom-slide-euromex .showroom-product .showroom-product-video {
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 62% center;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .showroom-slide-inner { align-items: flex-start; }

  .showroom-copy,
  .showroom-slide-euromex .showroom-copy {
    width: 100%;
    padding: calc(var(--header-height) + 52px) 0 116px;
  }

  .showroom-slide .showroom-copy h1,
  .showroom-slide .showroom-copy h2 {
    max-width: 12ch;
    font-size: clamp(35px, 10vw, 46px);
  }

  .showroom-slide .showroom-copy > p:not(.showroom-brand) {
    max-width: 32ch;
    font-size: 15px;
  }

  .showroom-controls {
    right: 16px;
    bottom: max(22px, env(safe-area-inset-bottom));
  }

  .showroom-playback {
    left: 16px;
    bottom: max(84px, calc(env(safe-area-inset-bottom) + 62px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .showroom-slide,
  .showroom-copy,
  .showroom-copy .button-primary,
  .showroom-copy .button-primary::after,
  .showroom-playback,
  .showroom-playback-progress circle,
  .showroom-product img,
  .showroom-product-video { transition-duration: 0.01ms; }
}
