* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #000;
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: auto;
  padding: 5px 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
nav > * { pointer-events: all; }

.nav-logo {
  display: flex;
  align-items: center;
  height: 120px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}
.nav-logo svg {
  height: 120px;
  width: auto;
}
.nav-logo.hidden {
  transform: translateY(-140px);
  opacity: 0;
}

/* ─── LANG TOGGLE ─── */
.nav-lang {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-lang button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
  padding: 4px 6px;
}
.nav-lang button:hover { color: rgba(255,255,255,0.7); }
.nav-lang button.active { color: #fff; }

/* ─── PAGES ─── */
#page-grid   { display: block; }
#page-detail { display: none; }

/* ─── GRID ─── */
.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.item {
  position: relative;
  overflow: hidden;
  background: #0d0d0d;
  cursor: pointer;
  grid-column: span 2;
}

/* 셀 비율 — 반드시 padding-bottom이 grid-column보다 우선 적용되게 */
.item:not(.w2):not(.w3):not(.w-half) { padding-bottom: 56.25%; }
.item.w-half { grid-column: span 3; padding-bottom: 48%; }
.item.w2 { grid-column: span 4; padding-bottom: 40%; }
.item.w3 { grid-column: span 6; padding-bottom: 27%; }

/* thumb: item 전체를 absolute로 덮음 */
.thumb {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.4s;
}
.item:hover .thumb img { transform: scale(1.05); opacity: 0; }

.hover-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.item:hover .hover-video { opacity: 1; }

/* Vimeo hover iframe — cover 효과 (크기는 JS가 계산) */
.thumb iframe.hover-vimeo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: none; opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.item:hover .thumb iframe.hover-vimeo { opacity: 1; }

/* 호버 화이트 실선 */
.item::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.25s;
  pointer-events: none;
  z-index: 3;
}
.item:hover::after { border-color: #fff; }

/* 캡션 */
.cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 48px 20px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.72), transparent);
  opacity: 0; transition: opacity 0.28s;
  z-index: 2;
}
.item:hover .cap { opacity: 1; }
.cap-client {
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.5; margin-bottom: 5px;
}
.cap-title {
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  line-height: 1.3;
}

/* ─── DETAIL PAGE ─── */
#page-detail {
  position: fixed; inset: 0;
  z-index: 250;
  background: #000;
  overflow-y: auto;
}

.detail-topbar {
  position: sticky;
  top: 0; z-index: 10;
  height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.detail-topbar button {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 10px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff; opacity: 0.35; transition: opacity 0.2s; padding: 0;
}
.detail-topbar button:hover { opacity: 1; }
.detail-topbar-nav { display: flex; gap: 24px; }

.detail-video-wrap {
  position: relative;
  width: 100%;
  max-width: 864px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #080808;
}
.detail-video-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: none;
}

.detail-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 28px 100px;
}

.detail-meta {
  margin-bottom: 32px;
}
.detail-meta .d-client {
  display: none;
}
.detail-meta .d-title {
  font-size: 18px; font-weight: 400;
  letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1.25; color: #fff;
}

.detail-credits {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0 24px;
}
.cr-row { display: contents; }
.cr-label, .cr-value {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 11px; line-height: 1.55;
}
.cr-label {
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); padding-right: 20px;
  white-space: nowrap;
}
.cr-value { letter-spacing: 0.04em; color: rgba(255,255,255,0.8); }

/* ─── BOTTOM NAV ─── */
.bottom-nav {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(20,20,20,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  border-radius: 100px;
  padding: 10px 22px;
  pointer-events: all;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.3);
}

.bottom-nav a {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  opacity: 0.4;
  transition: opacity 0.2s;
  padding: 0 14px;
}
.bottom-nav a:hover  { opacity: 0.65; }
.bottom-nav a.active { opacity: 0.65; }

.bottom-nav .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 24px;
}
.f-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.f-bottom p { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.f-links { display: flex; gap: 20px; list-style: none; }
.f-links a {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; text-decoration: none; transition: opacity 0.2s;
}
.f-links a:hover { opacity: 0.6; }

/* ─── ABOUT PAGE ─── */
#page-about {
  position: fixed; inset: 0;
  z-index: 260;
  background: #000;
  overflow-y: auto;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
#page-about.visible {
  transform: translateX(0);
  pointer-events: all;
}

.about-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 64px 140px;
}

.about-intro {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 80px;
}

.about-wordmark {
  position: sticky;
  top: 72px;
}
.about-wordmark svg {
  width: 100%;
  height: auto;
  display: block;
}

.about-desc p {
  font-size: 15px;
  line-height: 1.95;
  color: rgba(255,255,255,0.65);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
.about-desc p:last-child { margin-bottom: 0; }

/* desc 영/한 같은 공간에 겹치기 — 언어 전환 시 레이아웃 고정 */
.about-desc {
  display: grid;
}
.about-desc-en,
.about-desc-ko {
  grid-area: 1 / 1;
  transition: opacity 0.3s;
}
html[lang="ko"] .about-desc-en { opacity: 0; visibility: hidden; pointer-events: none; }
html[lang="en"] .about-desc-ko { opacity: 0; visibility: hidden; pointer-events: none; }

.about-team {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 40px;
}

.about-team-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 36px;
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.about-member {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-member-tag {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  height: 18px;
  display: flex;
  align-items: flex-end;
}

.about-member-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #111;
  overflow: hidden;
}
.about-member-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
  transform: scale(1.04);
}

.about-member-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.about-member-name {
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.02em;
  color: #fff;
}
.about-member-name-ko {
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.02em;
  color: #fff;
}

html[lang="ko"] .about-member-name    { display: none; }
html[lang="en"] .about-member-name-ko { display: none; }
.about-member-role {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-top: 2px;
}

/* ─── CONTACT PAGE ─── */
#page-contact {
  position: fixed; inset: 0;
  z-index: 260;
  background: #000;
  overflow-y: auto;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
#page-contact.visible {
  transform: translateX(0);
  pointer-events: all;
}

.contact-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 64px 140px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.contact-block {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.contact-block:first-child { border-top: 1px solid rgba(255,255,255,0.07); }

.contact-block-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 10px;
}

.contact-link {
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1.4;
  display: inline-block;
  transition: opacity 0.2s;
}
a.contact-link:hover { opacity: 0.5; }

.contact-map-wrap {
  position: static;
}

.contact-map {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
  filter: invert(90%) hue-rotate(180deg);
  opacity: 0.85;
}

/* ─── 젠틀몬스터 높이 조정 ─── */
@media (min-width: 769px) {
  .grid > .item:nth-child(1) { padding-bottom: 57.6%; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
}
@media (max-width: 1100px) {
  .about-intro { grid-template-columns: 260px 1fr; gap: 56px; }
  .about-team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .grid { grid-template-columns: 1fr; }
  .item, .item.w2, .item.w3, .item.w-half { grid-column: span 1; padding-bottom: 56.25%; }
  .f-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .detail-credits { grid-template-columns: 1fr; }
  .cr-label { border-bottom: none; padding-bottom: 2px; }
  .about-body { padding: 40px 28px 80px; }
  .about-intro { grid-template-columns: 1fr; gap: 36px; }
  .about-wordmark { position: static; }
  .about-team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .contact-body { padding: 40px 28px 80px; }
}
