.home-showcase__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.home-showcase__category {
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid #e3dfd9;
  border-radius: 22px;
}

.home-showcase__category--wardrobe {
  background: #eeeae4;
}

.home-showcase__category--kitchen {
  background: #eceeea;
}

.home-showcase__content {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 49%;
  padding: 32px 30px 32px 36px;
}

.home-showcase__eyebrow {
  margin-bottom: 16px;
  color: #a3413d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.home-showcase__title {
  margin-bottom: 16px;
  color: #152f50;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.15;
}

.home-showcase__text {
  max-width: 28ch;
  margin-bottom: 24px;
  color: #455568;
  font-size: 15px;
  line-height: 1.5;
}

.home-showcase__button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 100%;
  min-height: 46px;
  padding: 10px 15px;
  border-radius: 10px;
  background: #152f50;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}

.home-showcase__button:hover {
  background: #bd4848;
  color: #fff;
  transform: translateY(-2px);
}

.home-showcase__button:focus-visible {
  outline: 2px solid #152f50;
  outline-offset: 3px;
}

.home-showcase__visual {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 49%;
  overflow: hidden;
  perspective: 900px;
  pointer-events: none;
}

.home-showcase__visual--wardrobe {
  --door-left: 34.4%;
  --door-top: 7.8%;
  --door-width: 12.8%;
  --door-height: 84%;
  --door-origin: center;
  --door-open-transform: translateX(98%);
  background: #e8e5df;
}

.home-showcase__visual--kitchen {
  --door-left: 58%;
  --door-top: 23%;
  --door-width: 10%;
  --door-height: 26%;
  --door-origin: center bottom;
  --door-open-transform: translateX(90%) scaleY(0.93);
  --door-clip: polygon(0 20%, 100% 29%, 100% 100%, 0 100%);
  background: #f2f2f2;
}

.home-showcase__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-showcase__scene {
  position: absolute;
  z-index: 1;
  visibility: hidden;
  transform-style: preserve-3d;
  pointer-events: none;
}

.home-showcase__scene--ready {
  visibility: visible;
}

.home-showcase__aperture {
  position: absolute;
  z-index: 1;
  top: var(--door-top);
  left: var(--door-left);
  width: var(--door-width);
  height: var(--door-height);
  overflow: hidden;
  clip-path: var(--door-clip, none);
}

.home-showcase__door {
  position: absolute;
  z-index: 2;
  top: var(--door-top);
  left: var(--door-left);
  width: var(--door-width);
  height: var(--door-height);
  overflow: hidden;
  clip-path: var(--door-clip, none);
  backface-visibility: hidden;
  transform-origin: var(--door-origin);
  transition: transform 0.68s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.home-showcase__door--open {
  transform: var(--door-open-transform);
}

.home-showcase__reveal {
  position: absolute;
  display: block;
  max-width: none;
}

.home-showcase__door-photo {
  position: absolute;
  display: block;
  max-width: none;
}

@media (max-width: 1199px) {
  .home-showcase__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 991px) {
  .home-showcase__category {
    min-height: 280px;
  }

  .home-showcase__content {
    width: 61%;
    padding: 28px;
  }

  .home-showcase__visual {
    inset: 0;
  }

  .home-showcase__visual--wardrobe {
    background: #eeeae4;
  }

  .home-showcase__visual--kitchen {
    background: #eceeea;
  }

  .home-showcase__visual::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(90deg, var(--showcase-fade) 0%, var(--showcase-fade) 34%, transparent 72%);
    content: '';
  }

  .home-showcase__visual--wardrobe::after {
    --showcase-fade: #eeeae4;
  }

  .home-showcase__visual--kitchen::after {
    --showcase-fade: #eceeea;
  }

  .home-showcase__pan {
    transform: translateX(40px) scale(1.08);
  }
}

@media (max-width: 560px) {
  .home-showcase__category {
    min-height: 290px;
  }

  .home-showcase__content {
    width: 66%;
    padding: 20px;
  }

  .home-showcase__eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .home-showcase__title {
    margin-bottom: 10px;
    font-size: 23px;
  }

  .home-showcase__text {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .home-showcase__button {
    min-height: 42px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-showcase__door {
    transition: none;
  }

  .home-showcase__door--open {
    transform: none;
  }
}
