/* [2026-11-15 depth] 실제 캡처 그대로 — 색·3D 원근·움직임만 입힌다.
   그림 내용은 바꾸지 않는다. 화면 밖에서는 멈추고(depth.js), 움직임 줄이기 설정이면 평면 그대로. */

/* 색·선명도만 살짝 */
.product-frame img,.compare .frames img,.shot img{filter:contrast(1.08) saturate(1.25)}

/* ── 첫 화면: 카드가 비스듬히 서고, 화면은 같은 사진을 9칸으로 나눠 깊이를 준다 ── */
.hero-product{perspective:1600px;perspective-origin:40% 45%}
.product-frame{transform-origin:60% 50%;transform:rotateY(-13deg) rotateX(5deg);
  animation:dp-drift 16s ease-in-out infinite alternate;animation-play-state:paused;
  box-shadow:-28px 34px 60px rgba(20,32,26,.22)!important}
@keyframes dp-drift{to{transform:rotateY(-6deg) rotateX(2deg)}}
.dp-host{position:relative;display:block;perspective:1100px;background:#05070c}
.dp-host>img{opacity:0}
.dp-wall{position:absolute;inset:0}
.dp-wall i{position:absolute;width:calc(33.333% - 4px);height:calc(33.333% - 4px);margin:2px;
  background-image:var(--src);background-size:300% 300%;background-repeat:no-repeat;border-radius:4px;
  filter:contrast(1.08) saturate(1.25);box-shadow:0 10px 24px rgba(0,0,0,.45);
  animation:dp-pop 10s cubic-bezier(.4,0,.2,1) infinite;animation-play-state:paused}
.dp-wall i::after{content:"";position:absolute;inset:0;border-radius:4px;pointer-events:none;mix-blend-mode:screen;
  background:linear-gradient(110deg,transparent 38%,rgba(255,240,200,.28) 50%,transparent 62%);background-size:260% 100%;
  animation:dp-shine 10s linear infinite;animation-delay:inherit;animation-play-state:inherit}
@keyframes dp-pop{0%,100%{transform:translateZ(0)}10%{transform:translateZ(46px)}28%{transform:translateZ(10px)}}
@keyframes dp-shine{0%{background-position:170% 0}30%,100%{background-position:-70% 0}}

/* ── 기능 화면: 글 쪽으로 비스듬히, 빛이 과거(왼쪽)에서 오늘(오른쪽)으로 지나감 ── */
.feat>div:last-child{perspective:1700px;perspective-origin:30% 50%}
.compare .frames,.feat .shot{transform-origin:20% 50%;transform:rotateY(-9deg) rotateX(3deg);
  transition:transform .6s cubic-bezier(.2,.7,.2,1),box-shadow .6s;
  animation:dp-sway 14s ease-in-out infinite alternate;animation-play-state:paused;
  box-shadow:-22px 28px 50px rgba(20,32,26,.24)!important}
@keyframes dp-sway{to{transform:rotateY(-4deg) rotateX(1.5deg)}}
.compare .frames::after,.feat .shot::after{content:"";position:absolute;inset:0;z-index:50;pointer-events:none;mix-blend-mode:screen;
  background:linear-gradient(100deg,transparent 40%,rgba(255,236,190,.22) 50%,transparent 60%);background-size:280% 100%;
  animation:dp-shine 7s linear infinite;animation-play-state:paused}
.feat .shot{position:relative}
/* 도깨비 라인: 더 깊게 — 먼 쪽이 과거, 가까운 쪽이 오늘 */
#dok .frames{transform:rotateY(-18deg) rotateX(4deg);animation-name:dp-sway-deep}
@keyframes dp-sway-deep{to{transform:rotateY(-11deg) rotateX(2deg)}}
/* 읽을 때는 평평하게 */
.compare .frames:hover,.feat .shot:hover,.compare:focus-within .frames{transform:none!important;animation:none}

/* 화면 안에 들어왔을 때만 움직임 */
.dp-on .product-frame,.dp-on .dp-wall i,.dp-on.compare .frames,.dp-on.compare .frames::after,
.dp-on.shot,.dp-on.shot::after{animation-play-state:running}

@media (max-width:860px){
  .product-frame{transform:rotateY(-6deg) rotateX(3deg)}
  .compare .frames,.feat .shot,#dok .frames{transform:rotateY(-5deg) rotateX(2deg)}
  @keyframes dp-drift{to{transform:rotateY(-3deg) rotateX(1deg)}}
}
@media (prefers-reduced-motion:reduce){
  .product-frame,.compare .frames,.feat .shot,#dok .frames{transform:none!important;animation:none!important}
  .compare .frames::after,.feat .shot::after{display:none}
}
