/* ─────────────────────────────────────────────────────────
   YEKUN — 목재 소개 (js/wood.js)
   검은 무대 + 왼쪽 목록. 목록의 칸을 누르면 그 칸이 설명으로 펼쳐지고 3D가 결 가까이 다가감
   (apple.com 제품 페이지 "디자인" 구역의 짜임을 따름. 상자 모서리는 사이트 규칙대로 각지게)
   ───────────────────────────────────────────────────────── */
.wd-head { padding-bottom: clamp(20px, 3vw, 44px); }
.wd-stage { position: relative; height: clamp(560px, 86svh, 880px); background: #000; color: #f5f5f7; overflow: hidden; }
.wd-view { position: absolute; inset: 0; }
.wd-canvas { position: absolute; inset: 0; }
.wd-canvas canvas { display: block; width: 100% !important; height: 100% !important; touch-action: pan-y; }
.wd-canvas .viewer-load { color: #86868b; }
.wd-stage.is-hover .wd-canvas canvas { cursor: pointer; }

/* 왼쪽 목록 — 높이 56 의 칸, 누르면 설명 상자로 펼쳐짐 */
.wd-list { position: absolute; z-index: 2; left: var(--pad); top: 50%; transform: translateY(-50%); display: grid; justify-items: start; gap: 12px; width: min(423px, 40%); max-height: calc(100% - 48px); overflow-y: auto; scrollbar-width: none; pointer-events: none; }
.wd-list::-webkit-scrollbar { display: none; }
.wd-item { pointer-events: auto; }
.wd-item.is-on { width: 100%; }
.wd-pill { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px 0 16px; background: rgba(42, 42, 45, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: #f5f5f7; white-space: nowrap; transition: background .3s; }
.wd-pill:hover, .wd-item.is-hover .wd-pill { background: rgba(72, 72, 76, .86); }
.wd-pill i { display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid currentColor; border-radius: 50%; }
.wd-pill i svg { width: 12px; height: 12px; stroke-width: 2.2; }
.wd-pill em { font: 400 13px var(--font-en); font-style: normal; color: #86868b; }
.wd-card { display: none; padding: 28px; background: rgba(42, 42, 45, .78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); font-size: 17px; line-height: 1.47; letter-spacing: -.01em; animation: wdCard .5s cubic-bezier(.2, .8, .2, 1); }
.wd-item.is-on .wd-pill { display: none; }
.wd-item.is-on .wd-card { display: block; }
.wd-card p b { font-weight: 600; }
.wd-facts { margin: 18px 0 0; }
.wd-facts div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; line-height: 1.4; }
.wd-facts dt { color: #86868b; } .wd-facts dd { margin: 0; }
@keyframes wdCard { from { opacity: 0; transform: translateY(8px) scale(.97); } }

/* 무대 위의 버튼 · 안내 */
.wd-close, .wd-step button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(66, 66, 69, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #f5f5f7; transition: background .3s; }
.wd-close:hover, .wd-step button:hover { background: rgba(96, 96, 100, .9); }
.wd-close svg, .wd-step svg { width: 18px; height: 18px; }
.wd-close { position: absolute; z-index: 3; top: 22px; right: var(--pad); }
.wd-step { position: absolute; z-index: 3; right: var(--pad); bottom: 22px; display: flex; gap: 8px; }
.wd-close, .wd-step { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.wd-stage:not([data-on=""]) .wd-close, .wd-stage:not([data-on=""]) .wd-step { opacity: 1; visibility: visible; transition: opacity .3s .5s, visibility 0s; }
.wd-hint { position: absolute; z-index: 1; left: 0; right: 0; bottom: 26px; text-align: center; font-size: 14px; color: #86868b; pointer-events: none; transition: opacity .3s; }
.wd-stage:not([data-on=""]) .wd-hint { opacity: 0; }
.wd-tip { position: absolute; z-index: 1; left: 0; top: 0; padding: 6px 12px; background: rgba(245, 245, 247, .94); color: #1d1d1f; font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s; }
.wd-tip.is-on { opacity: 1; }

/* 무대 아래: 그 목재를 쓴 제품 · 안내 글 */
.wd-related { padding-top: clamp(40px, 5vw, 80px); }
.wd-rel { position: relative; display: none; padding-bottom: clamp(40px, 5vw, 80px); }
.wd-rel.is-on { display: block; }
.wd-rel-empty { padding: 28px 0; border-top: 1px solid var(--line); color: var(--ink-3); }
.wd-note { display: grid; gap: 8px; max-width: 62em; padding-bottom: clamp(56px, 8vw, 120px); font-size: 14px; line-height: 1.7; color: var(--ink-3); }

/* 메인 페이지의 소개 칸 */
.wd-home { padding-top: clamp(48px, 6vw, 96px); }
/* 상자는 첫 화면의 브랜드 막대와 같은 반투명 유리 — 3D는 바탕 없이 덩어리와 그림자만 그 위에 놓임 */
.wd-home-card { position: relative; display: grid; grid-template-columns: 1fr 1.25fr; min-height: clamp(280px, 30vw, 460px); background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)); -webkit-backdrop-filter: blur(28px) saturate(190%); backdrop-filter: blur(28px) saturate(190%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 -1px 0 rgba(0, 0, 0, .3), 0 24px 60px -20px rgba(0, 0, 0, .7); overflow: hidden; }
.wd-home-card::after { content: ""; position: absolute; inset: 0; padding: 1px; background: linear-gradient(140deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .08) 36%, rgba(255, 255, 255, .04) 64%, rgba(255, 255, 255, .32)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; pointer-events: none; }
.wd-home-t { display: grid; align-content: center; justify-items: start; gap: 14px; padding: clamp(28px, 4.4vw, 72px); }
.wd-home-t b { font-size: clamp(30px, 3.8vw, 56px); font-weight: 600; line-height: 1.1; letter-spacing: -.025em; }
.wd-home-t > span { max-width: 24em; font-size: clamp(16px, 1.45vw, 21px); font-weight: 600; line-height: 1.5; letter-spacing: -.01em; color: var(--ink-2); }
.wd-home-t i { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-style: normal; font-size: 17px; color: var(--lime-2); }
.wd-home-t i svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.wd-home-card:hover .wd-home-t i svg { transform: translateX(4px); }
/* 그림 자리: 목재 페이지와 같은 3D 덩어리들 (검은 무대가 칸의 검은색과 이어짐). 아래 img 규칙은 3D를 못 쓰는 기기에서 대신 보이는 사진용 */
.wd-home-img { position: relative; overflow: hidden; }
.wd-home-3d { position: absolute; inset: 0; }
.wd-home-3d canvas { display: block; width: 100% !important; height: 100% !important; pointer-events: none; }
.wd-home-img img { position: absolute; left: 4%; top: 8%; width: 104%; max-width: none; height: auto; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .7)); transition: transform 1.4s cubic-bezier(.16, 1, .3, 1); }
.wd-home-card:hover .wd-home-img img { transform: scale(1.04) translateY(-1%); }

/* 좁은 화면: 3D 가 위, 목록은 그 아래에 줄지어 놓임 */
@media (max-width: 760px) {
  .wd-stage { height: auto; overflow: visible; }
  .wd-view { position: relative; inset: auto; height: max(320px, 88vw); }
  .wd-list { position: static; transform: none; display: flex; flex-wrap: wrap; gap: 8px; width: auto; max-height: none; padding: 14px var(--pad) 24px; }
  .wd-item.is-on { order: -1; }
  .wd-pill { height: 46px; gap: 9px; padding: 0 16px 0 11px; font-size: 15px; }
  .wd-pill i { width: 20px; height: 20px; } .wd-pill em { display: none; }
  .wd-card { padding: 20px; font-size: 16px; }
  .wd-close { top: 12px; right: 12px; } .wd-step { right: 12px; bottom: 12px; }
  .wd-hint { bottom: 12px; font-size: 13px; }
  .wd-home-card { grid-template-columns: 1fr; }
  .wd-home-img { order: -1; aspect-ratio: 16 / 10; }
  .wd-home-img img { left: 6%; top: 6%; width: 92%; }
}
