/* Main product lineup: one studio background and four actual products. */
.s4-products {
  background: #f4f7fa;
}

.s4-products .s3-products__pin {
  grid-template-columns: minmax(250px, 300px) minmax(560px, 1fr) minmax(270px, 320px);
  gap: clamp(22px, 2.4vw, 42px);
}

.s4-products__menu h2 {
  white-space: nowrap;
}

@media (min-width: 1351px) {
  .s4-products .s3-products__pin {
    grid-template-columns: minmax(320px, 360px) minmax(500px, 1fr) minmax(270px, 300px);
  }
  .s4-products__menu h2 { font-size: clamp(42px, 2.8vw, 54px); line-height: 1.25; }
}

.s4-products .s3-products__stage {
  height: min(74vh, 700px);
}

.s4-products .s3-products__image {
  isolation: isolate;
  border: 1px solid #dce9f2;
  border-radius: 22px;
  background: radial-gradient(ellipse 83% 75% at 88% 42%, #dcecf9 0%, transparent 84%), linear-gradient(122deg, #fbfdff 0%, #f4f8fd 43%, #e2eef9 100%);
  box-shadow: 0 30px 70px rgba(15, 51, 88, .12);
}

.s4-products__backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.s4-products .s3-products__image::after {
  z-index: 8;
  border-color: rgba(255, 255, 255, .58);
  pointer-events: none;
}

.s4-products__scene {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  color: #173d67;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition: opacity .45s ease, visibility .45s ease, transform .7s cubic-bezier(.16, 1, .3, 1);
}

.s4-products__scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.s4-products__scene-heading {
  position: absolute;
  z-index: 3;
  top: clamp(29px, 4vh, 42px);
  left: clamp(27px, 3vw, 46px);
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  word-break: keep-all;
}

.s4-products__scene-heading small {
  color: #215d92;
  font: 700 10px/1.4 Pretendard, "Noto Sans KR", sans-serif;
  letter-spacing: .14em;
  opacity: .72;
}

.s4-products__scene-heading strong {
  margin-top: 12px;
  color: #173d67;
  font: 700 clamp(31px, 2.6vw, 43px)/1.12 "Albert Sans", Pretendard, sans-serif;
  letter-spacing: -.055em;
}

.s4-products__scene-heading span {
  margin-top: 9px;
  color: #536f80;
  font: 500 13px/1.45 Pretendard, "Noto Sans KR", sans-serif;
}

.s4-products__scene .s4-products__hero-image {
  position: absolute;
  z-index: 2;
  top: auto;
  bottom: 8%;
  left: 54%;
  width: 94%;
  height: 64%;
  display: block;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 24px 20px rgba(28, 66, 96, .17));
  transform: translate(-50%, 18px) scale(.98);
  transition: transform .75s cubic-bezier(.16, 1, .3, 1);
}

.s4-products__scene.is-active .s4-products__hero-image {
  transform: translateX(-50%);
}

.s4-products__scene--dualmiracle .s4-products__hero-image {
  bottom: 6%;
  left: 56.5%;
  height: 75%;
}

.s4-products__scene--cellulabate .s4-products__hero-image {
  bottom: 8%;
  left: 76%;
  width: 39%;
  height: 66%;
}

.s4-products__cellulabate-detail {
  position: absolute;
  z-index: 1;
  left: 4%;
  top: 24%;
  width: 53%;
  height: 55%;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
}

.s4-products__cellulabate-detail img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 25px 26px rgba(28, 66, 96, .13));
}

.s4-products__scene--alpha .s4-products__hero-image {
  bottom: 8%;
  left: 50%;
  width: 48%;
  height: 66%;
  filter: drop-shadow(0 22px 16px rgba(81, 78, 63, .16));
}

.s4-products__scene-number {
  position: absolute;
  z-index: 4;
  right: clamp(26px, 3vw, 42px);
  bottom: clamp(28px, 4vh, 43px);
  color: #416785;
  font: 700 11px/1 "Albert Sans", sans-serif;
  letter-spacing: .12em;
  opacity: .62;
}

@media (max-width: 1350px) and (min-width: 761px) {
  .s4-products .s3-products__pin {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 18px 28px;
  }
  .s4-products__menu h2 { margin: 16px 0 18px; font-size: clamp(32px, 3vw, 40px); line-height: 1.2; }
  .s4-products .s3-products__names button { padding: 10px 0; }
  .s4-products .s3-products__names button small { margin-bottom: 4px; }
  .s4-products .s3-products__names button b { font-size: 21px; }
  .s4-products__copy {
    grid-column: 2;
    height: 170px;
    margin-left: 0;
  }
  .s4-products__copy article h3 { margin: 12px 0 8px; font-size: 32px; }
  .s4-products__copy article p { max-width: 580px; font-size: 14px; line-height: 1.55; }
  .s4-products .s4-products__copy article a { max-width: 280px; margin-top: 12px; padding: 10px 2px; }
  .s4-products .s3-products__stage { height: min(54vh, 530px); }
  .s4-products__cellulabate-detail { top: 26%; height: 54%; }
  .s4-products__scene--cellulabate .s4-products__hero-image { bottom: 7%; height: 60%; }
}

@media (max-width: 760px) {
  .s4-products .s3-products__pin { display: flex; gap: 0; }
  .s4-products .s3-products__stage {
    order: 2;
    height: clamp(455px, 120vw, 520px);
    margin-top: 32px;
  }
  .s4-products .s3-products__image { border-radius: 18px; }
  .s4-products__scene-heading { top: 24px; left: 22px; right: 18px; }
  .s4-products__scene-heading strong { font-size: clamp(27px, 8vw, 34px); }
  .s4-products__scene-heading span { font-size: 12px; }
  .s4-products__scene .s4-products__hero-image { top: auto; bottom: 5%; left: 55%; width: 96%; height: 58%; }
  .s4-products__scene--dualmiracle .s4-products__hero-image { bottom: 5%; left: 58%; height: 67%; }
  .s4-products__scene--cellulabate .s4-products__hero-image { bottom: 12%; left: 75%; width: 42%; height: 60%; }
  .s4-products__cellulabate-detail { left: 2%; top: 27%; width: 57%; height: 52%; }
  .s4-products__scene--alpha .s4-products__hero-image { bottom: 13%; left: 50%; width: 50%; height: 55%; }
  .s4-products__scene-number { display: none; }
  .s4-products__copy { order: 3; width: 100%; margin: 30px 0 0; text-align: left; }
  .s4-products__copy article h3 { font-size: clamp(29px, 8.5vw, 38px); overflow-wrap: break-word; }
}

@media (max-width: 355px) {
  .s4-products__menu h2 { font-size: 32px; }
  .s4-products__scene-heading { left: 18px; }
  .s4-products__scene-heading strong { font-size: 27px; }
  .s4-products__scene-heading span { max-width: 225px; }
  .s4-products .s3-products__stage { height: 450px; }
}

@media (prefers-reduced-motion: reduce) {
  .s4-products__scene,
  .s4-products__hero-image { transition: none !important; }
}
