/* ════════════════════════════════════
   05_roomC.css — Room C (디자인) 전체
   1) 공통 헤더
   2) 앱 디자인 — 폰 회전 + 좌측 이동 + 상세박스, 아크릴 캡션
   3) 상세 페이지 리디자인 — 좌측 캡션 + 우측 이미지 (Room C 반전 레이아웃)
   ════════════════════════════════════ */

/* ── 1) Room C 공통 헤더 ── */
.room-c {
  background: var(--bg);
  padding: 0;
}
.room-c-hdr {
  padding: 3.5rem 2.5rem 2.5rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: flex-end;
  gap: 3rem;
}
.rc-info {
  flex: 1;
}

.rc-name {
  font-size: clamp(2.4rem, 7vw, 7rem);
  font-weight: 700;
  color: var(--ink);
}

/* ── 2) 앱 디자인 — 폰 쇼케이스 + 통합 캡션 + 상세박스 ── */
.app-showcase {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10vh 2.5rem 25vh;
  background: var(--bg);
}
.app-phone-group {
  display: flex;
  align-items: center;
  gap: 8rem;
  position: relative;
  z-index: 2;
  /* 평소: 중앙, 옆면 보이게 살짝 회전 */
  transform: perspective(1200px) rotateY(-18deg) translateX(0);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.app-showcase.lit .app-phone-group {
  /* lit: 정면 + 좌측 이동 */
  transform: perspective(1200px) rotateY(0deg) translateX(-150px);
}
.app-phone-wrap {
  position: relative;
  z-index: 2;
  transform: scale(0.96);
  transition:
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.8s ease;
}
.app-showcase.lit .app-phone-wrap {
  transform: scale(1);
  filter: drop-shadow(0 24px 50px rgba(26, 23, 20, 0.25));
}
.app-phone-img {
  height: 95vh;
  width: auto;
  display: block;
}

/* 앱 캡션 — 아크릴 액자 */
.app-cap {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2.5rem;
  height: 40vh;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  outline: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 15px 45px rgba(0, 0, 0, 0.15),
    inset 0 2px 2px rgba(255, 255, 255, 0.6),
    inset 0 -2px 3px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s ease 0.3s,
    transform 0.5s ease 0.3s;
  overflow: hidden;
}
.app-showcase.lit .app-cap {
  opacity: 1;
  transform: none;
}

.app-cap-screw-tl,
.app-cap-screw-tr,
.app-cap-screw-bl,
.app-cap-screw-br {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #cfcfcf 55%, #8b8b8b);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 2;
}
.app-cap-screw-tl {
  top: 0.8rem;
  left: 0.8rem;
}
.app-cap-screw-tr {
  top: 0.8rem;
  right: 0.8rem;
}
.app-cap-screw-bl {
  bottom: 0.8rem;
  left: 0.8rem;
}
.app-cap-screw-br {
  bottom: 0.8rem;
  right: 0.8rem;
}
.ac-no {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a88bf8;
  margin-bottom: 1rem;
}
.ac-title {
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 0.3rem;
}
.ac-period {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.ac-type {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink2);
  margin-top: 1.5rem;
}
.ac-project {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: var(--ink2);
}
.ac-divider {
  height: 1px;
  background: var(--rule);
  margin-bottom: 1rem;
}
.ac-tools {
  font-size: 1rem;
  color: var(--ink2);
  line-height: 1.5;
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}
/* 우측 상세 설명 박스 — 페이드인 */
.app-detail-box {
  position: relative;
  z-index: 2;
  max-width: 500px;
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 0.7s ease 0.5s,
    transform 0.7s ease 0.5s;
  pointer-events: none;
}
.app-showcase.lit .app-detail-box {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.adb-no {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a88bd8;
  margin-bottom: 0.8rem;
}
.adb-divider {
  width: 40px;
  height: 2px;
  background: #a88bd8;
  margin-bottom: 1.2rem;
}
.adb-desc {
  white-space: nowrap;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}
.ac-btns {
  display: flex;
  gap: 2rem;
}
.ac-btn {
  padding: 0.65rem 1.5rem;
  border: 1px solid rgba(141, 141, 141, 0.5);
  border-radius: 5px;
  color: var(--ink);
  background: var(--bg2);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
.ac-btns a:hover {
  background: var(--ink);
  color: #f5f5f5;
}

/* ── 3) 상세 페이지 리디자인 — 좌측 캡션 + 우측 이미지 ── */
/* margin-top 음수로 위 app-showcase 쪽으로 당겨서 여백/겹침 조절 */
.rc-showcase {
  position: relative;
  z-index: 10;
  min-height: 90vh;
  margin-top: -45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6rem;
  padding: 6vh 2.5rem;
  background: transparent;
}

.rc-cap {
  position: relative;
  max-width: 340px;
  padding: 2.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  outline: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 15px 45px rgba(0, 0, 0, 0.15),
    inset 0 2px 2px rgba(255, 255, 255, 0.6),
    inset 0 -2px 3px rgba(0, 0, 0, 0.08);
}
.rc-cap-screw-tl,
.rc-cap-screw-tr,
.rc-cap-screw-bl,
.rc-cap-screw-br {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #cfcfcf 55%, #8b8b8b);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.rc-cap-screw-tl {
  top: 0.8rem;
  left: 0.8rem;
}
.rc-cap-screw-tr {
  top: 0.8rem;
  right: 0.8rem;
}
.rc-cap-screw-bl {
  bottom: 0.8rem;
  left: 0.8rem;
}
.rc-cap-screw-br {
  bottom: 0.8rem;
  right: 0.8rem;
}

.rc-no {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a88bf8;
  margin-bottom: 1rem;
}
.rc-title {
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 0.3rem;
}
.rc-period {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.rc-type {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink2);
  margin-top: 1.5rem;
}
.rc-project {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: var(--ink2);
}
.rc-divider {
  height: 1px;
  background: var(--rule);
  margin: 1rem 0;
}
.rc-tools {
  font-size: 1rem;
  color: var(--ink2);
  line-height: 1.5;
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

/* 상세페이지 작업물 이미지 — 평소 회색 테두리 → 홀로그램 hover */
.rc-artwork-wrap {
  position: relative;
  isolation: isolate;
  width: 30vw;
  padding: 10px;
  border-radius: 6px;
  background: rgba(26, 23, 20, 0.15);
  opacity: 0;
  transform: translateY(80px); /* 시작: 아래쪽에 위치 */
  transition:
    transform 0.9s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.7s ease,
    background 0.4s ease,
    box-shadow 0.4s ease;
}
.rc-showcase.lit .rc-artwork-wrap {
  transform: translateY(0); /* 스크롤 도달 시 제자리로 */
  opacity: 1;
}
.rc-artwork-wrap:hover {
  transform: translateY(-12px); /* 기존 hover 들뜨는 효과 유지 */
  background: linear-gradient(
    135deg,
    #e8d5ff,
    #c8e8ff,
    #c8f5e8,
    #fff5c8,
    #ffd5e8,
    #e8d5ff
  );
  background-size: 300% 300%;
  animation: holoFlow 3s ease infinite;
  box-shadow:
    0 36px 90px rgba(26, 23, 20, 0.38),
    0 12px 32px rgba(26, 23, 20, 0.28);
}

.rc-img {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg2);
}
.rc-img img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease;
}
.rc-artwork-wrap:hover .rc-img img {
  transform: scale(1.02);
}

.rc-img-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(26, 23, 20, 0.55);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.rc-artwork-wrap:hover .rc-img-overlay {
  opacity: 1;
  pointer-events: auto;
}
.rc-ov-btn {
  padding: 0.65rem 1.5rem;
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
  border-radius: 5px;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
.rc-ov-btn:hover {
  background: #fff;
  color: var(--ink);
}

/* 반응형 */
@media (max-width: 1300px) {
  .room-c-hdr {
    padding: 2.5rem 1.8rem 1.8rem;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  .app-showcase {
    flex-direction: column;
    min-height: auto;
    padding: 4rem 1.8rem;
    gap: 3rem;
  }
  .app-phone-group {
    flex-direction: column;
    gap: 2rem;
    transform: none !important;
    width: 100%; /* 추가 — 폰 이미지 폭과 무관하게 부모 폭 확보 */
    max-width: 500px; /* 추가 — 캡션과 동일한 최대 너비로 통일 */
    align-items: center; /* 폰 이미지는 가운데 정렬 유지 */
  }
  .app-showcase.lit .app-phone-group {
    transform: none !important;
  }
  .app-phone-img {
    height: 60vh;
    max-width: 100%;
  }

  /* 두 캡션(올티켓, 오니스트) 크기 완전히 통일 */
  .app-cap,
  .rc-cap {
    height: auto;
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
  }

  .app-detail-box {
    max-width: 100%;
    width: 100%;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  .adb-desc {
    white-space: normal;
  }

  .rc-showcase {
    flex-direction: column;
    margin-top: 0;
    gap: 2.5rem;
    padding: 4rem 1.8rem;
  }
  .rc-artwork-wrap {
    order: 1;
    width: 100%;
    max-width: 500px;
  }
  .rc-cap {
    order: 2;
  }
}

@media (max-width: 640px) {
  .room-c-hdr {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .app-phone-img {
    height: 50vh;
  }
  .ac-title,
  .rc-title {
    font-size: 1.4rem;
  }
  .adb-desc {
    font-size: 1rem;
    line-height: 1.7;
  }
}