/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg:         #000000;
  --text:       #ffffff;
  --text-muted: #888888;
  --text-dim:   #4a4a4a;
  --border:     #2a2a2a;
  --surface:    #111111;

  --font-title: 'Akira Expanded', 'Arial Black', sans-serif;
  --font-body: 'Pretendard', -apple-system, sans-serif;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ── WORK/ABOUT 공유 좌측 기준선 ── */
  --sidebar-w:    240px;
  --page-pad:     clamp(24px, 4vw, 64px);
  --content-left: calc(var(--sidebar-w) + var(--page-pad));
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, video { display: block; width: 100%; }

::selection {
  background: var(--text);
  color: var(--bg);
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 48px;
  mix-blend-mode: normal;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease);
}

/* 히어로 영상 위: 반투명 다크 배경, 흰색 텍스트 */
.nav.on-hero {
  background: transparent;
}

.nav.on-hero .nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.nav.on-hero .nav-link::after,
.nav.on-hero .nav-burger span {
  background: #ffffff;
}

/* 히어로 벗어난 후 */
.nav.scrolled {
  padding: 20px 48px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.nav-logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color 0.3s;
  cursor: pointer;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.4s var(--ease-out), background 0.4s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.35s;
}

.nav-burger.open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-burger.open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav { padding: 24px 28px; }
  .nav.scrolled { padding: 16px 28px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-logo-img { height: 36px; }
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: center;
}

.mobile-link {
  font-family: var(--font-title);
  font-size: 32px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color 0.3s;
}

.mobile-link:hover { color: var(--text); }

/* ============================================================
   PAGE SYSTEM (SPA)
   ============================================================ */
.page {
  display: none;
  min-height: 100vh;
  background: var(--bg);
}

.page[data-active="true"] {
  display: block;
  animation: pageFadeIn 0.4s var(--ease-out);
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 160px 48px 120px;
}

@media (max-width: 768px) {
  .page-inner { padding: 120px 28px 80px; }
}

/* ============================================================
   HOME
   ============================================================ */
.page--home {
  display: none;
  min-height: 100vh;
}

.page--home[data-active="true"] {
  display: block;
  animation: pageFadeInHome 0.4s var(--ease-out);
}

@keyframes pageFadeInHome {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* HERO — sticky layer */
.home-hero {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* 영상 배경 */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}

/* 어두운 오버레이 */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* centered text block */
.home-hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 48px;
}

.hero-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-eyebrow {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 6px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.2s forwards;
}

.home-title {
  font-family: var(--font-title);
  font-size: clamp(56px, 9vw, 150px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  opacity: 0;
  animation: fadeUp 1.1s var(--ease-out) 0.35s forwards;
}


@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SCROLL INDICATOR
   ============================================================ */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: fit-content;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.1s forwards;
  transition: opacity 0.3s;
}

.scroll-indicator:hover {
  opacity: 0.8 !important;
}

.scroll-indicator-text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
  user-select: none;
}

.scroll-indicator-line {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.scroll-indicator-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: lineFlow 2s ease-in-out infinite;
}

@keyframes lineFlow {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

.scroll-indicator-chevron {
  animation: chevronBounce 1.6s ease-in-out infinite;
  display: flex;
  align-items: center;
}

@keyframes chevronBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}



/* ============================================================
   HOME — WORK SHOWCASE (covers hero as user scrolls)
   ============================================================ */
.home-work-showcase {
  position: relative;
  z-index: 2;
  background: var(--bg);
  margin-top: -1px;
}

.home-category {
  padding: clamp(60px, 8vh, 100px) 0;
}

.home-cat-header {
  padding: 0 48px 32px;
}

.home-cat-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-cat-index {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.home-cat-title {
  font-family: var(--font-title);
  font-size: clamp(32px, 3.5vw, 56px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text);
}

.home-cat-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.75;
  text-align: left;
  margin-top: 12px;
}

/* HORIZONTAL SNAP GALLERY */
.h-gallery-wrap {
  position: relative;
}

.h-gallery {
  display: flex;
  gap: 24px;
  padding: 0 48px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 48px;
  scrollbar-width: none;
  cursor: grab;
  align-items: center;
}

.h-gallery::-webkit-scrollbar { display: none; }

.h-gallery.dragging { cursor: grabbing; }

/* 카드 외부 래퍼: scroll-snap + width 담당 */
.h-gallery-card {
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  scroll-snap-align: start;
  /* 3장이 화면 가로를 채우는 width: (100vw - 패딩96px - gap2개48px) / 3 */
  width: calc((100vw - 144px) / 3);
  transition: transform 0.4s var(--ease-out), opacity 0.4s ease;
}

/* 갤러리에 hover 상태일 때 hovered 카드 외 나머지 dim */
.h-gallery:hover .h-gallery-card:not(:hover) {
  opacity: 0.5;
}

/* hovered 카드 확대 */
.h-gallery-card:hover {
  transform: scale(1.03);
}

/* 썸네일 영역 */
.h-gallery-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--border);
}
.h-gallery-thumb--video { aspect-ratio: 16 / 9; }
.h-gallery-thumb--image { aspect-ratio: 4 / 5; }

.h-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-drag: none;
  display: block;
  transition: transform 0.7s var(--ease-out), opacity 0.4s ease;
}

.h-gallery-card:hover .h-gallery-thumb img {
  transform: scale(1.05);
  opacity: 1;
}

.h-gallery-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface);
}

.h-gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: background 0.35s, opacity 0.35s;
}

.h-gallery-card:hover .h-gallery-item-overlay {
  background: rgba(0, 0, 0, 0.45);
  opacity: 1;
}

.h-gallery-item-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* 카드 하단 텍스트 정보 */
.h-gallery-info {
  padding: 14px 0 4px;
}

.h-gallery-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h-gallery-meta {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Gallery prev/next buttons */
.h-gallery-nav {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 16px 48px 0;
}

.h-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.25s, color 0.25s, border-color 0.25s, opacity 0.25s;
  flex-shrink: 0;
}

.h-nav-btn:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.h-nav-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.h-nav-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

@media (max-width: 768px) {
  .home-category { padding: clamp(40px, 6vh, 60px) 0; }
  .home-cat-header { padding: 0 28px 32px; }
  .h-gallery {
    padding: 0 28px;
    scroll-padding-left: 28px;
  }
  .h-gallery-nav { padding: 12px 28px 0; }
  .h-gallery-card { width: calc((100vw - 80px) / 2); }
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 80px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.page--news .page-header {
  border-bottom: none;
  padding-bottom: 0;
}

.page-title {
  font-family: var(--font-title);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
}

.page-count {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ============================================================
   WORK LAYOUT — 사이드바 + 본문
   ============================================================ */
.work-layout {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
}

.work-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--border);
  padding: 130px 28px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
}

.work-sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sidebar-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  padding: 20px 0;
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
}

.sidebar-item:first-child {
  border-top: 1px solid var(--border);
}

.sidebar-item:hover {
  color: var(--text-muted);
}

.sidebar-item.active {
  color: var(--text);
}

.sidebar-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sidebar-label {
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
}

.sidebar-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  transition: background 0.3s, color 0.3s;
  flex-shrink: 0;
}

.sidebar-item.active .sidebar-badge {
  background: var(--text);
  color: var(--bg);
}

.sidebar-desc {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  color: inherit;
  letter-spacing: 0.03em;
  line-height: 1.5;
  opacity: 0.7;
}

.work-main {
  flex: 1;
  min-width: 0;
}

/* ============================================================
   WORK GRID
   ============================================================ */
.page--work .page-inner {
  max-width: none;
  margin: 0;
  padding: 130px clamp(24px, 4vw, 64px) 160px;
}

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.work-section-title {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

.work-section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-section-grid--visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-thumb--visual {
  aspect-ratio: 4 / 5 !important;
  overflow: hidden !important;
  height: auto !important;
}

.work-thumb--visual img,
.work-thumb--visual .work-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-card--visual.active .work-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

/* ── Visual Expand Panel ── */
.visual-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16,1,0.3,1);
  margin-top: 2px;
}

.visual-expand.open {
  max-height: 45vh;
}

.visual-expand-track {
  display: flex;
  gap: 8px;
  padding: 16px 0;
  overflow-x: auto;
  overflow-y: hidden;
  height: 40vh;
  scroll-behavior: smooth;
  cursor: grab;
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.visual-expand-track.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.visual-expand-track::-webkit-scrollbar {
  height: 3px;
}
.visual-expand-track::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.visual-expand-img {
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  border-radius: 2px;
}

.visual-expand-img:first-child { margin-left: 2px; }
.visual-expand-img:last-child  { margin-right: 2px; }

.visual-expand-placeholder {
  width: calc(40vh * 4 / 3);
  background: var(--border);
  border-radius: 2px;
  flex-shrink: 0;
}


.work-card-link {
  display: block;
}

.work-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface);
}

.work-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.7s var(--ease-out), filter 0.5s;
}

.work-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.work-hover-cat {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.work-hover-title {
  font-family: var(--font-title);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-align: center;
  padding: 0 24px;
}

.work-hover-year {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.4);
}

.work-card-link:hover .work-thumb-img {
  transform: scale(1.04);
  filter: brightness(0.8);
}

.work-card-link:hover .work-hover {
  opacity: 1;
}

.work-info {
  padding: 20px 0 32px;
  border-bottom: 1px solid var(--border);
}

.work-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.work-name {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

.work-meta {
  display: flex;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.work-meta span:first-child::after {
  content: ' /';
}

.work-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.70);
  padding: 1px 6px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}

.work-section-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  border: 1px dashed var(--border);
  border-top: none;
}

.work-section-empty-text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
}

@media (max-width: 1200px) {
  :root { --sidebar-w: 200px; }
  .work-sidebar {
    width: 200px;
    padding: 130px 20px 40px;
  }
}

@media (max-width: 768px) {
  .work-layout {
    flex-direction: column;
  }

  .work-sidebar {
    width: 100%;
    height: auto;
    position: static;
    padding: 100px 28px 0;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    overflow-y: visible;
  }

  .sidebar-nav {
    flex-direction: row;
    gap: 0;
    width: 100%;
  }

  .sidebar-item {
    min-width: 130px;
    flex: 1;
    padding: 16px 12px 16px 0;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }

  .sidebar-item:first-child {
    border-top: none;
  }

  .sidebar-item:last-child {
    border-right: none;
  }

  .work-main {
    width: 100%;
  }

  .work-section-grid,
  .work-section-grid--visual {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-header { margin-bottom: 48px; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.page--about {
  position: relative;
}

.page-inner--about {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: none;
  margin: 0;
  padding-left: var(--content-left);
  padding-right: var(--page-pad);
  padding-top: clamp(340px, 50vh, 480px);
  padding-bottom: 80px;
  pointer-events: none;
}
.page-inner--about > * {
  pointer-events: auto;
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; --page-pad: 28px; }
  .page-inner--about {
    padding-top: clamp(300px, 52vh, 390px);
    padding-bottom: 40px;
  }
}

/* ── 클러스터 영역 ── */
.about-cards {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50vh;
  overflow: visible;
  pointer-events: auto;
  z-index: 1;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-cards.is-expanded {
  cursor: default;
}

/* 접힌 상태 hover: 컨테이너 전체 살짝 들썩 */
.about-cards:not(.is-expanded):hover {
  transform: translateY(-8px);
}

/* hover reveal text — 컨테이너 정중앙 */
.about-hover-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-title);
  font-size: clamp(13px, 1.5vw, 20px);
  font-weight: 400;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 40;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.about-cards.is-expanded .about-hover-text {
  opacity: 1;
  transition: opacity 0.5s ease 0.3s;
}

/* 카드 — 클릭 시 가로 일렬 펼침 */
.about-card {
  position: absolute;
  left: var(--xs, 80px);
  /* top은 JS에서 고정값으로 설정 (애니메이션 없음) */
  transform: rotate(var(--rc, 0deg));
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0,0,0,0.55);
  cursor: pointer;
  will-change: left, transform;
  pointer-events: auto;
  transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
}

/* 펼쳐진 상태: left만 변경, top은 그대로 */
.about-cards.is-expanded .about-card {
  left: var(--xe, 80px);
  transform: rotate(var(--re, 0deg));
  box-shadow: 0 8px 32px rgba(0,0,0,0.65);
}

.about-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.about-card:hover { z-index: 20 !important; }

.about-identity {
  text-align: left;
  line-height: 1.6;
  margin-bottom: 14px;
}

.about-identity-name {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.95);
}

.about-identity-role {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
}

.about-body {
  max-width: 620px;
  margin: 0 0 28px;
}

.about-body p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
  text-align: left;
}

.about-body p + p { margin-top: 14px; }

.about-body-en {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.45);
}

.about-body p:last-child { margin-bottom: 0; }

.about-credits-footer {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
  display: flex;
  align-items: center;
  margin-top: 0;
}

.about-credits {
  display: flex;
  justify-content: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}

.about-credit {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.credit-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #808080;
}

.credit-value {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: #ededed;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .about-credits-footer { padding: 44px 0; }
  .about-credits { gap: 40px; }
}

/* ── 약력(Career) 섹션 ── */
.about-career {
  margin-top: 64px;
}

.about-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0 44px;
  padding: 44px 0;
  border-top: 1px solid var(--border);
}

.about-section-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ededed;
  padding-top: 3px;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-section-label-en {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #8a8a8a;
}

.about-section-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.about-row-period {
  font-size: 14px;
  font-weight: 400;
  color: #9a9a9a;
  min-width: 152px;
  flex-shrink: 0;
  padding-top: 2px;
  line-height: 1.75;
  letter-spacing: 0.02em;
}

.about-row-desc-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.about-row-desc {
  font-size: 17px;
  font-weight: 400;
  color: #ededed;
  line-height: 1.9;
  margin: 0;
}

.about-row-sub {
  font-size: 15px;
  font-weight: 300;
  color: #9a9a9a;
  line-height: 1.7;
  margin: 0;
}

.about-portrait-placeholder {
  width: 190px;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .about-section {
    grid-template-columns: 1fr;
    gap: 10px 0;
  }
  .about-section-label { margin-bottom: 4px; gap: 4px; }
  .about-row { flex-direction: column; gap: 4px; }
  .about-row-period { min-width: unset; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.page-inner--contact {
  max-width: 900px;
  padding-top: 140px;
}

.contact-title {
  font-family: var(--font-title);
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: 100px;
}

.contact-links {
  display: flex;
  flex-direction: column;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: padding 0.35s var(--ease-out);
}

.contact-item:first-child {
  border-top: 1px solid var(--border);
}

.contact-item:hover {
  padding-left: 8px;
}

.contact-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  min-width: 100px;
}

.contact-value {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: gap 0.35s var(--ease-out);
}

.contact-value svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-out);
}

.contact-item:hover .contact-value svg {
  transform: translate(4px, -4px);
}

@media (max-width: 768px) {
  .contact-title { margin-bottom: 64px; }
  .contact-value { font-size: 15px; }
  .contact-label { min-width: 80px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  pointer-events: none;
}

.footer-copy,
.footer-tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .footer { padding: 14px 28px; }
}

/* ============================================================
   VIDEO MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.modal.open {
  opacity: 1;
  pointer-events: all;
}

/* Semi-transparent backdrop */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

/* Modal box */
.modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s var(--ease-out);
}

.modal.open .modal-box {
  transform: translateY(0) scale(1);
}

/* Modal header */
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid #1e1e1e;
  gap: 16px;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.modal-cat {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #666;
}

.modal-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.modal-year {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: #444;
}

.modal-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid #2a2a2a;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.modal-close:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: #1a1a1a;
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

/* Player — 16:9 responsive iframe */
.modal-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 600px) {
  .modal { padding: 16px; }
  .modal-header { padding: 18px 20px 16px; }
}

/* Work card — show cursor pointer */
.work-card-link[data-youtube] {
  cursor: pointer;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.work-card:nth-child(1) .reveal { transition-delay: 0.05s; }
.work-card:nth-child(2) .reveal { transition-delay: 0.12s; }
.work-card:nth-child(3) .reveal { transition-delay: 0.19s; }
.work-card:nth-child(4) .reveal { transition-delay: 0.26s; }
.work-card:nth-child(5) .reveal { transition-delay: 0.33s; }
.work-card:nth-child(6) .reveal { transition-delay: 0.40s; }

/* ============================================================
   DETAIL PAGE
   ============================================================ */
.detail-back {
  position: fixed;
  top: 112px;
  left: 48px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  padding: 0;
}
.detail-back:hover { color: var(--text); }

.page-inner--detail {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 48px 120px;
}

.detail-header {
  margin-bottom: 48px;
}

.detail-cat {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.detail-title {
  font-family: 'Pretendard', -apple-system, sans-serif !important;
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 900 !important;
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 16px;
}

.detail-year {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.detail-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  margin-bottom: 56px;
  border-radius: 4px;
  overflow: hidden;
}

.detail-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  z-index: 2;
}

.detail-video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.detail-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.2s;
}

.detail-video:hover .detail-video-overlay {
  background: rgba(0, 0, 0, 0.45);
}

.detail-video-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  transition: transform 0.2s var(--ease-out);
}

.detail-video-btn:hover {
  transform: scale(1.06);
}

.detail-video-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.detail-video-play svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}

.detail-desc {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 64px;
  white-space: pre-line;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.detail-gallery-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  background: var(--surface);
  cursor: zoom-in;
  transition: opacity 0.2s;
}
.detail-gallery-img:hover { opacity: 0.88; }

.detail-gallery-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--surface);
  border-radius: 2px;
  cursor: default;
}

.detail-body {
  margin-top: 80px;
}

.detail-body-ko {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 2;
  color: var(--text);
  white-space: pre-line;
  margin-bottom: 28px;
}

.detail-body-en {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: #b8b8b8;
  white-space: pre-line;
  margin-bottom: 0;
}

/* ── Detail Credits ── */
.detail-credits {
  margin-top: 40px;
  padding-top: 48px;
  padding-bottom: 48px;
  border-top: 1px solid var(--border);
}

.detail-credits p {
  font-size: 14px;
  font-weight: 500;
  color: #c8c8c8;
  letter-spacing: 0.05em;
  line-height: 1.6;
  margin: 0;
  text-transform: uppercase;
  word-break: break-word;
}

.detail-credits p + p {
  margin-top: 4px;
}

.credit-tag {
  color: #7a7a7a;
  font-weight: 400;
}

/* ── Detail Prev/Next Nav ── */
.detail-nav {
  display: flex;
  width: 100%;
  align-items: center;
  margin-top: 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.detail-nav-btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 0.2s;
  padding: 0;
}
.detail-nav-btn:hover { color: var(--text); }

.detail-nav-prev { justify-content: flex-start; text-align: left; }
.detail-nav-next { justify-content: flex-end;  text-align: right; }

.detail-nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.detail-nav-arrow {
  flex-shrink: 0;
  font-size: 16px;
}

.detail-nav-cat {
  flex: 1 1 0;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-align: center;
  white-space: nowrap;
}

/* ── News Page ── */
.page-inner--news {
  max-width: 900px;
  margin: 0 auto;
  padding: 140px 48px 120px;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: padding 0.35s var(--ease-out);
}

.news-item:first-child {
  border-top: 1px solid var(--border);
}

.news-item:hover {
  padding-left: 8px;
}

.news-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  min-width: 100px;
  flex-shrink: 0;
}

.news-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: gap 0.35s var(--ease-out);
}

.news-title svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.35s var(--ease-out);
}

.news-item:hover .news-title svg {
  transform: translate(4px, -4px);
}

@media (max-width: 768px) {
  .page-inner--news { padding: 100px 28px 80px; }
  .news-item { flex-direction: column; gap: 8px; }
  .news-label { min-width: unset; }
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  border-radius: 2px;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}
.lightbox-close:hover { color: #ffffff; }
.lightbox-close svg { width: 22px; height: 22px; display: block; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.18); color: #ffffff; }
.lightbox-nav svg { width: 18px; height: 18px; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

@media (max-width: 768px) {
  .detail-back {
    top: 88px;
    left: 24px;
  }
  .page-inner--detail {
    padding: 24px 28px 80px;
  }
}

@media (max-width: 600px) {
  .detail-gallery {
    grid-template-columns: 1fr;
  }
  .detail-title {
    font-size: clamp(20px, 6vw, 32px);
  }
}
