/* Portrait cube slider (1:2 demos). Neutral card frame; device mockups live inside the video. */
.cube-portrait-test {
  position: relative;
  min-height: min(100vh, 100dvh);
  background: #f5f1ea;
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(5rem, 3vw + 4rem, 6.5rem) clamp(1.25rem, 4vw, 2.5rem)
    clamp(2.5rem, 6vw, 4rem);
  box-sizing: border-box;
}

.cube-portrait-test__copy {
  max-width: 32rem;
  justify-self: center;
}

.cube-portrait-test__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b8578;
}

.cube-portrait-test__title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.85rem, 2.5vw + 1rem, 2.5rem);
  font-weight: 600;
  line-height: 1.12;
  color: #1c1917;
  max-width: 20ch;
}

.cube-portrait-test__body {
  margin: 0.9rem 0 0;
  font-size: clamp(0.92rem, 0.3vw + 0.85rem, 1.02rem);
  line-height: 1.55;
  color: #5c564e;
  max-width: 38ch;
}

.cube-portrait-test__note {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  background: rgba(42, 69, 57, 0.06);
  border: 1px solid rgba(42, 69, 57, 0.1);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #5c564e;
}

.cube-portrait-slider__media {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.cube-portrait-swiper-wrap {
  position: relative;
  width: min(100%, 17rem);
  max-width: 17rem;
  max-height: min(68vh, 34rem);
  aspect-ratio: 1 / 2;
  padding-bottom: 2.25rem;
  box-sizing: content-box;
}

.home-cube-portrait-swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
}

.home-cube-portrait-swiper.swiper-initialized {
  visibility: visible;
}

.home-cube-portrait-swiper .swiper-slide {
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
  border: none;
  box-shadow:
    0 4px 6px rgba(28, 25, 23, 0.04),
    0 18px 42px rgba(28, 25, 23, 0.08);
}

.home-cube-portrait-swiper .swiper-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: transparent;
}

.cube-portrait-slider__pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
}

.cube-portrait-slider__pagination .swiper-pagination-bullet {
  width: 0.5rem;
  height: 0.5rem;
  background: #2a4539;
  opacity: 0.28;
  transition: opacity 0.2s, transform 0.2s;
}

.cube-portrait-slider__pagination .swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.15);
}

.cube-portrait-test__nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem clamp(1.25rem, 4vw, 2rem);
  box-sizing: border-box;
}

.cube-portrait-test__nav .site-nav__logo-img {
  height: 3.5rem;
  width: auto;
}

.cube-portrait-test__back {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2a4539;
  text-decoration: none;
}

.cube-portrait-test__back:hover {
  text-decoration: underline;
}

.cube-portrait-test__banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: #1c1917;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.cube-portrait-test__banner a {
  color: #a3d9c5;
  margin-left: 0.5rem;
}

@media (max-width: 900px) {
  .cube-portrait-test {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    text-align: center;
    padding-top: clamp(5rem, 3vw + 4rem, 6rem);
  }

  .cube-portrait-test__copy {
    order: 2;
  }

  .cube-portrait-slider__media {
    order: 1;
  }

  .cube-portrait-test__title,
  .cube-portrait-test__body,
  .cube-portrait-test__note {
    margin-left: auto;
    margin-right: auto;
  }

  .cube-portrait-swiper-wrap {
    width: min(88%, 15rem);
    max-width: 15rem;
    max-height: min(52vh, 30rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-cube-portrait-swiper .swiper-slide {
    box-shadow: 0 4px 12px rgba(28, 25, 23, 0.08);
  }
}
