/* ============================================================
   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));

  /* ── 카드 UI 공유 타이포 토큰 (메인·WORK 공통) ── */
  --ui-cat-desc-size:   16px;
  --ui-cat-desc-weight: 500;
  --ui-cat-desc-color:  rgba(255, 255, 255, 0.75);
  --ui-card-title-weight: 600;
  --ui-card-meta-weight:  500;
  --ui-card-meta-color:   rgba(255, 255, 255, 0.72);
}

/* ============================================================
   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: 700;
}

.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: 500;
  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: var(--ui-cat-desc-weight);
  font-size: var(--ui-cat-desc-size);
  color: var(--ui-cat-desc-color);
  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;
  overscroll-behavior-x: contain;
  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장이 보이되 약 15% 축소: (100vw - 패딩96px - gap48px) / 3 * 0.85 */
  width: calc((100vw - 144px) / 3 * 0.85);
  transition: opacity 0.4s ease;
}

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

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

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

/* 썸네일 영역 */
.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.4s cubic-bezier(0.16, 1, 0.3, 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;
  pointer-events: none;
  transition: background 0.35s, opacity 0.35s;
}

.h-gallery-item-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

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

.h-gallery-name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--ui-card-title-weight);
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 5px;
  white-space: normal;
  line-height: 1.4;
  overflow: visible;
}

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

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

.h-nav-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  transition: transform 0.3s, opacity 0.3s;
  flex-shrink: 0;
}

@media (hover: hover) {
  .h-nav-btn:hover {
    transform: scale(1.08);
  }
}

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

.h-nav-btn svg {
  width: 18px;
  height: 18px;
  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;
  }
  .h-gallery-nav { padding: 16px 28px 0; }
  .h-gallery-card { width: calc((100vw - 80px) / 2); }
}

.home-more-wrap {
  display: flex;
  justify-content: center;
  padding: 48px 0 0;
}

.home-more-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 14px 40px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}

@media (hover: hover) {
  .home-more-btn:hover {
    border-color: rgba(255, 255, 255, 0.9);
    color: rgba(255, 255, 255, 0.95);
  }
}

/* ============================================================
   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--work .page-header {
  margin-bottom: 32px;
}

.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 FILTER BAR
   ============================================================ */
.work-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 48px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.filter-btn:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: rgba(255, 255, 255, 0.8);
}

.filter-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  font-weight: 700;
}

/* ============================================================
   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: 48px;
}

.work-sub-group {
  display: flex;
  flex-direction: column;
  padding-bottom: 48px;
}

.work-sub-group:last-of-type {
  padding-bottom: 0;
}

.work-group-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 24px;
}

.wgt-main {
  font-family: 'Akira Expanded', 'Arial Black', sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--text);
}

.wgt-sep {
  font-family: 'Akira Expanded', 'Arial Black', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.35);
}

.wgt-sub {
  font-family: 'Akira Expanded', 'Arial Black', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.5);
}

.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 {
  position: relative;
  display: flex;
  flex-direction: column;
}

.work-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  cursor: pointer;
}

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

.card-credit--award {
  color: #E8C547;
}

.card-credit--entry {
  color: var(--ui-card-meta-color);
}

.work-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s;
}

.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: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.work-hover-title {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-align: center;
  padding: 0 28px;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

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

.work-info {
  flex: 1;
  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: var(--ui-card-title-weight);
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

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


.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: 768px) {
  .work-filter-bar {
    gap: 6px;
    margin: 20px 0 32px;
  }

  .filter-btn {
    font-size: 10px;
    padding: 7px 14px;
  }

  .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: none;
  z-index: 1;
}

.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);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 40;
  opacity: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.about-card {
  position: absolute;
  left: var(--xe, 80px);
  transform: rotate(var(--re, 0deg));
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 8px 32px rgba(0,0,0,0.65);
  cursor: pointer;
  pointer-events: auto;
  transition: box-shadow 0.4s ease;
}

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

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


.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);
  margin-bottom: 14px;
}

.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.62;
  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-career-portrait {
  display: block;
  width: 300px;
  height: auto;
  border-radius: 4px;
}

.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.62;
  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: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  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: 13px;
  font-weight: 500;
  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(28px, 4vw, 51px);
  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;
}

#detailLocalVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  z-index: 2;
}

.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;
}

/* ── Editorial layout ── */
.detail-gallery--editorial {
  display: flex !important;
  flex-direction: column;
  gap: 160px;
  padding: 0 8%;
}

.editorial-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.editorial-row .editorial-img:first-child { width: 55%; }
.editorial-row .editorial-img:last-child  { width: 38%; margin-top: 120px; }
.editorial-row--flip .editorial-img:first-child { width: 38%; }
.editorial-row--flip .editorial-img:last-child  { width: 55%; }

.editorial-img {
  display: block;
  height: auto;
  cursor: zoom-in;
  object-fit: contain;
  transition: opacity 0.2s;
}
.editorial-img:hover { opacity: 0.88; }

.editorial-img--solo { width: 55%; }

@media (max-width: 768px) {
  .detail-gallery--editorial {
    padding: 0 4%;
    gap: 60px;
  }
  .editorial-row {
    flex-direction: column;
    gap: 60px;
  }
  .editorial-row .editorial-img:first-child,
  .editorial-row .editorial-img:last-child,
  .editorial-row--flip .editorial-img:first-child,
  .editorial-row--flip .editorial-img:last-child {
    width: 100%;
    margin-top: 0;
  }
  .editorial-img--solo { width: 100%; }
}

/* ── Product grid block (inside editorial gallery) ── */
.product-grid-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.product-grid-img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  object-fit: contain;
  transition: opacity 0.2s;
}
.product-grid-img:hover { opacity: 0.88; }

@media (max-width: 768px) {
  .product-grid-block {
    gap: 12px;
    margin: 20px 0;
  }
}

/* ── Scatter gallery ── */
.scatter-gallery {
  width: 82%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 100px;
  padding-bottom: 80px;
}

.sg-row {
  display: flex;
  align-items: flex-start;
}

.sg-img {
  display: block;
  height: auto;
  flex-shrink: 0;
  cursor: zoom-in;
  object-fit: contain;
  transition: opacity 0.2s;
}
.sg-img:hover { opacity: 0.88; }

/* Row 1: molt1(60%, @1%) + molt2(35%, gap 3%, -40px) — 그룹 중앙 정렬 */
.sg-row--1 .sg-img:nth-child(1) { width: 60%; margin-left: 1%; }
.sg-row--1 .sg-img:nth-child(2) { width: 35%; margin-left: 3%; transform: translateY(-40px); }

/* Row 2: molt3(91%, 중앙) */
.sg-row--2 .sg-img { width: 91%; margin-left: 4.5%; }

/* Row 3: molt4(120%, 중앙) */
.sg-row--3 .sg-img { width: 120%; margin-left: -10%; }

/* Row 4: molt5(55%, @2%) + molt6(40%, @60%, +60px) */
.sg-row--4 .sg-img:nth-child(1) { width: 55%; margin-left: 2%; }
.sg-row--4 .sg-img:nth-child(2) { width: 40%; margin-left: 3%; transform: translateY(60px); }

/* molt13 단독 이미지 — 위아래 160px (gap 100px + margin 60px) */
.sg-row--product { margin: 60px 0; }
.sg-row--product .sg-img { width: 96%; margin-left: 2%; }

/* Row 5: molt7(82%, @9%, 가운데) */
.sg-row--5 .sg-img { width: 82%; margin-left: 9%; }

/* Row 6: molt8(49%, @3%) + molt9(37%, @55%, -50px) */
.sg-row--6 .sg-img:nth-child(1) { width: 49%; margin-left: 3%; }
.sg-row--6 .sg-img:nth-child(2) { width: 37%; margin-left: 3%; transform: translateY(-50px); }

@media (max-width: 768px) {
  .scatter-gallery { width: 92%; gap: 40px; }
  .sg-row { flex-direction: column; gap: 40px; }
  .sg-row .sg-img {
    width: 100% !important;
    margin-left: 0 !important;
    transform: none !important;
  }
  .sg-row--product .sg-img { width: 100%; margin-left: 0; }
}

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

.detail-disclaimer {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.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 {
  display: flex;
  gap: 0.5em;
  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;
  flex-shrink: 0;
}

/* ── 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: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  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(23px, 7vw, 37px);
  }
}
