/* =========================================
   HOME (index.html) — Minimal Museum Style
   common.css 를 건드리지 않고
   home.css 에서만 홈 전용 스타일을 오버라이드합니다.
   ========================================= */

/* ── 홈은 헤더가 투명하게 올라타므로 main top-padding 제거 ── */
main {
  padding-top: 0 !important;
}

/* =========================================
   01. HERO — main-visual
   ========================================= */
.main-visual {
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* 타이틀을 하단에 */
  align-items: stretch;
  text-align: left;
  padding: 0 48px 60px;
  position: relative;
  overflow: hidden;
  background: var(--bg-color);
}

/* 배경 로고 — 중앙에 희미하게 */
.hero-bg-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(280px, 46vw, 640px);
  height: auto;
  opacity: 0.055;
  filter: grayscale(1);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* 우상단 세로 레이블 */
.hero-corner {
  position: absolute;
  top: calc(var(--header-h) + 24px);
  right: 48px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--text-sub);
  writing-mode: vertical-rl;
  z-index: 1;
}

/* 하단 두-컬럼 레이아웃 */
.hero-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
}

/* 메인 타이틀 */
.hero-title {
  font-size: clamp(68px, 11.5vw, 152px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.05em;
  color: var(--text-main);
  /* common.css 의 .main-visual h2 를 덮어씀 */
  margin-bottom: 0;
}

/* common.css h2 기본값 리셋 (main-visual 안에서만) */
.main-visual h2.hero-title {
  font-size: clamp(68px, 11.5vw, 152px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.05em;
  margin-bottom: 0;
}

/* 우측 서브 */
.hero-sub {
  padding-bottom: 8px;
  text-align: right;
  max-width: 220px;
}
.hero-sub p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-sub);
  margin-bottom: 28px;
}

/* 링크 버튼 */
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
  border-bottom: 1px solid rgba(29, 29, 31, 0.25);
  padding-bottom: 4px;
  transition: gap 0.3s ease, border-color 0.3s ease;
}
.hero-link:hover {
  gap: 14px;
  border-color: var(--text-main);
  color: var(--text-main);
}
.hero-link svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

/* 하단 메타 — 중앙 */
.hero-meta {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(29, 29, 31, 0.28);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}
.hero-meta span {
  padding: 0 16px;
  position: relative;
}
.hero-meta span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 10px;
  background: rgba(29, 29, 31, 0.1);
  transform: translateY(-50%);
}

/* 스크롤 힌트 — 우하단 */
.scroll-guide {
  position: absolute;
  bottom: 32px;
  right: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: none; /* common.css bounce 제거 */
  z-index: 1;
}
.scroll-line {
  width: 28px;
  height: 1px;
  background: var(--text-sub);
  opacity: 0.35;
}
.scroll-guide span {
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-sub);
  opacity: 0.55;
}

/* =========================================
   02. STICKY SCENES — sticky-container
   ========================================= */
.sticky-container {
  height: 500vh;
  background-color: var(--bg-color);
}

.sticky-frame {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: center;
  background-color: var(--bg-color);
}
.scene.active {
  opacity: 1;
  z-index: 10;
}

/* 배경 이미지 */
.scene .bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
/* 하단 그라데이션 오버레이 */
.scene .bg-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.04) 50%,
    transparent 100%
  );
}

/* scene-2~4 플레이스홀더 배경색 */
.scene-2 .bg-img {
  background-color: #181510;
}
.scene-3 .bg-img {
  background-color: #0d1118;
}
.scene-4 .bg-img {
  background-color: #0e1310;
}

/* 씬 번호 */
.scene-num {
  position: absolute;
  top: 40px;
  left: 48px;
  z-index: 20;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.3);
}

/* 인트로 텍스트 (scene-1) */
.scene .content-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  text-align: center;
  width: 100%;
}
.scene .content-text .scene-eyebrow {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 24px;
}
.scene .content-text h3 {
  font-size: clamp(32px, 5vw, 62px);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 0;
}
.scene .content-text h3 strong {
  font-weight: 700;
}

/* 하단 플로팅 캡슐 (scene-2~4) */
.scene .content-box {
  position: absolute;
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 22px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
  width: auto;
}

/* 캡슐 타이틀 */
.scene .content-box h3 {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0;
}

/* 캡슐 버튼 */
.btn-view {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-main);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  transition: background 0.2s ease;
}
.btn-view:hover {
  background: #fff;
  color: var(--text-main);
  transform: none;
}
.btn-view svg {
  width: 9px;
  height: 9px;
}

/* 인디케이터 */
.indicators {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.indicators .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.3s, transform 0.3s;
  box-shadow: none;
}
.indicators .dot.active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.5);
}
/* scene-1 에서는 어두운 점 */
.indicators.dots-light .dot {
  background: rgba(29, 29, 31, 0.15);
}
.indicators.dots-light .dot.active {
  background: var(--text-main);
}

/* =========================================
   03. CONTACT CTA — bottom-contact
   ========================================= */
.bottom-contact {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--bg-color);
  text-align: center;
  padding: 80px 48px;
  border-top: 1px solid rgba(29, 29, 31, 0.08);
}
.bottom-contact h2 {
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 40px;
  color: var(--text-main);
}
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-main);
  border-bottom: 1px solid var(--text-main);
  padding-bottom: 4px;
  transition: gap 0.3s ease;
}
.btn-contact:hover {
  gap: 16px;
  color: var(--text-main);
}
.btn-contact svg {
  width: 12px;
  height: 12px;
}

/* =========================================
   04. INDIVIDUAL WORKS MARQUEE
   ========================================= */
.individual-works {
  padding: 120px 0;
  background-color: #fff;
  overflow: hidden;
  border-top: 1px solid rgba(29, 29, 31, 0.08);
}
.individual-works .section-title {
  text-align: left;
  margin-bottom: 56px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.individual-works .section-title span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-sub);
  order: 2;
}
.individual-works .section-title h3 {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  order: 1;
}

.marquee-container {
  width: 100%;
  display: flex;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scrollMarquee 40s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes scrollMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 8px));
  }
}

.work-card {
  width: 420px;
  height: 290px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  /* 이미지 없을 때 폴백 색상 */
  background: #1c1710;
}
.work-card:nth-child(2n) {
  background: #0d1320;
}
.work-card:nth-child(3n) {
  background: #16100f;
}
.work-card:nth-child(4n) {
  background: #0f1610;
}
.work-card:nth-child(5n) {
  background: #1a1414;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.work-card:hover img {
  transform: scale(1.04);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .individual-works {
    padding: 80px 0;
  }
  .work-card {
    width: 360px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  /* Hero */
  .main-visual {
    padding: 0 24px 52px;
  }
  .hero-corner {
    display: none;
  }
  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .hero-sub {
    text-align: left;
    max-width: none;
  }
  .hero-meta {
    display: none;
  }
  .scroll-guide {
    right: 24px;
  }

  /* Scenes */
  .scene-num {
    left: 24px;
  }
  .scene .content-box {
    padding: 8px 16px;
    gap: 12px;
  }
  .scene .content-box h3 {
    font-size: 14px;
  }
  .btn-view {
    padding: 5px 12px;
    font-size: 10px;
  }
  .scene .content-text h3 {
    font-size: 32px;
  }
  .indicators {
    right: 16px;
  }

  /* Contact */
  .bottom-contact {
    padding: 60px 24px;
  }

  /* Works */
  .individual-works .section-title {
    flex-direction: column;
    gap: 6px;
  }
  .individual-works .section-title span {
    order: 1;
  }
  .individual-works .section-title h3 {
    order: 2;
  }
  .work-card {
    width: 280px;
    height: 195px;
    border-radius: 10px;
  }
  .marquee-track {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .main-visual {
    padding: 0 20px 48px;
  }
  .work-card {
    width: 240px;
    height: 168px;
  }
}
