/* ═══════════════════════════════════════════
   ANBU — Apple-clean, frosted glass, scroll-scrubbed video
   ═══════════════════════════════════════════ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  --bg:        #000;
  --ink:       #fff;
  --ink-mute:  rgba(255, 255, 255, 0.72);
  --ink-soft:  rgba(255, 255, 255, 0.55);
  --line:      rgba(255, 255, 255, 0.22);

  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
  height: 100%;
  background: #14110D;            /* 워밍 다크 — 메인/상세 양쪽 페이지 끝색과 호환 */
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  line-height: 1.5;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol, li { list-style: none; }
em, i { font-style: normal; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--bg);
  padding: 12px 18px; z-index: 9999;
}
.skip:focus { left: 12px; top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ═══════════════════════════════════════════
   영상 fixed 배경 — 스크롤하면 video.currentTime 진행
   ═══════════════════════════════════════════ */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg);
  pointer-events: none;
}
.bg-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 스크롤 진행에 따라 회색 오버레이 짙어짐 (JS가 opacity 조정) */
.bg-tint {
  position: absolute;
  inset: 0;
  background: rgba(60, 60, 60, 0.0);
  pointer-events: none;
  transition: background 0.15s linear;
}

/* ═══════════════════════════════════════════
   좌측 상단 로고 (fixed)
   ═══════════════════════════════════════════ */
.logo {
  position: fixed;
  top: clamp(20px, 2.5vw, 36px);
  left: clamp(20px, 2.5vw, 40px);
  z-index: 100;
  display: inline-flex;
  align-items: center;
}
.logo img {
  height: clamp(28px, 3vw, 40px);
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ═══════════════════════════════════════════
   가운데 카테고리 — frosted glass 박스 + hover 드롭다운
   ═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: clamp(20px, 2.5vw, 36px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: inline-flex;
  gap: clamp(4px, 0.6vw, 10px);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.72);     /* 라이트 톤 — 검정 글씨 가독성 */
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(22px) saturate(180%);
          backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.nav-item {
  position: relative;
  z-index: 1;
}
/* hover 중인 카테고리의 z-index를 올려 드롭다운이 다른 카테고리 위로 떠오름 */
.nav-item:hover,
.nav-item:focus-within {
  z-index: 10;
}
.nav-link {
  display: inline-block;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #5A5249;                            /* 회색 */
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s;
  white-space: nowrap;
}
.nav-item:hover .nav-link,
.nav-item:focus-within .nav-link {
  background: rgba(20, 17, 13, 0.06);
  color: #2A2520;                            /* hover 시 살짝 진하게 */
}

/* hover 드롭다운 — 카드 그리드 (sub-item마다 번호 + 제목 + 부제) */
.nav-drop {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 280px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(22px) saturate(180%);
          backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0.3s;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* hover 영역 끊김 방지 */
.nav-item::after {
  content: "";
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 14px;
}
.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 드롭다운 카드 — 번호 + 제목 + 부제 */
.drop-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 2px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #5A5249;                           /* 회색 */
  text-decoration: none;
  transition: background 0.25s, padding-left 0.25s var(--ease), color 0.25s;
}
.drop-card:hover {
  background: rgba(20, 17, 13, 0.06);
  padding-left: 20px;
  color: #2A2520;
}
.drop-card__no {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #8C8276;
  font-variant-numeric: tabular-nums;
}
.drop-card__title {
  grid-column: 2;
  grid-row: 1;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  color: #3A3530;                           /* 제목은 조금 더 진한 회색 */
}
.drop-card__desc {
  grid-column: 2;
  grid-row: 2;
  font-size: 11px;
  color: #8C8276;
  letter-spacing: 0.01em;
}

@media (max-width: 600px) {
  .nav-link { padding: 6px 12px; font-size: 11px; letter-spacing: 0.12em; }
  .nav-drop { min-width: 240px; }
  .drop-card { padding: 10px 12px; }
  .drop-card__title { font-size: 13px; }
  .drop-card__desc { font-size: 10px; }
}

/* ═══════════════════════════════════════════
   스크롤 트리거 브랜드 카피 — 박스 X, 순수 폰트
   ═══════════════════════════════════════════ */
.scenes {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}
.scene {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 90vw;
  text-align: center;
  font-family: var(--font);
  font-size: clamp(28px, 4.4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #fff;
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.4),
    0 0 2px rgba(0, 0, 0, 0.2);
  opacity: 0;
  will-change: opacity, transform;
}

/* ═══════════════════════════════════════════
   스크롤 트랙 — 빈 영역. 페이지 길이 = 영상 scrub 거리
   영상 8초 → viewport 4배 정도 스크롤
   ═══════════════════════════════════════════ */
.track {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 400vh;   /* 영상이 정해지면 JS가 video.duration 기반으로 다시 잡음 */
  pointer-events: none;
}

/* ═══════════════════════════════════════════
   하단 정보 — 페이지 끝에만 보임. 박스 없이 텍스트만.
   ═══════════════════════════════════════════ */
.info {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 8vh, 80px) clamp(24px, 5vw, 64px);
  color: var(--ink);
  text-align: center;
}
.info ul {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
}
.info li {
  position: relative;
}
.info li + li::before {
  content: "·";
  position: absolute;
  left: -16px; top: 0;
  color: var(--ink-soft);
}
.info a {
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
  padding-bottom: 2px;
}
.info a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.info-copy {
  margin-top: clamp(20px, 3vh, 32px);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .nav { padding: 6px 8px; gap: 4px; }
  .nav a { padding: 6px 12px; font-size: 11px; letter-spacing: 0.12em; }
  .info ul { flex-direction: column; gap: 8px; }
  .info li + li::before { display: none; }
}

/* ═══════════════════════════════════════════
   상세 페이지 — 라이트 베이지 톤
   메인은 다크/영상이고 상세는 콘텐츠 친화 라이트
   ═══════════════════════════════════════════ */
body.page {
  height: auto;
  min-height: 100vh;
  /* 베이지 → 카멜 → 워밍 다크 그라데이션. 다크 영역은 페이지 끝 부분에만 (본문은 베이지 유지) */
  background: linear-gradient(180deg,
    #F4EFE3   0%,
    #ECE7DB  35%,
    #E0D5BE  70%,
    #8A7560  92%,
    #14110D 100%
  );
  color: #2A2520;
}
body.page .logo img {
  filter: none;                  /* 라이트 배경이라 invert 해제 */
}

/* 하단 회사 정보 — 그라데이션 다크 영역 위 → 순백 글씨 + 그림자로 가독성 확보 */
body.page .info {
  color: #FFFFFF;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55), 0 0 2px rgba(0, 0, 0, 0.4);
}
body.page .info ul { color: #FFFFFF; }
body.page .info li + li::before { color: rgba(255, 255, 255, 0.6); }
body.page .info a {
  color: #FFFFFF;
}
body.page .info a:hover {
  color: #E8D9BD;
  border-bottom-color: #E8D9BD;
}
body.page .info-copy {
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.page-main {
  position: relative;
  padding: clamp(120px, 18vh, 200px) clamp(24px, 6vw, 96px) clamp(60px, 10vh, 120px);
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero {
  margin-bottom: clamp(72px, 12vh, 140px);
  max-width: 900px;
}
.page-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: #6B5A4A;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.page-title {
  font-family: var(--font);
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: #14110D;
  margin-bottom: 24px;
  max-width: 18ch;
}
.page-sub {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
  color: #5A5249;
  max-width: 56ch;
}

.page-section {
  border-top: 1px solid rgba(20, 17, 13, 0.14);
  padding: clamp(48px, 8vh, 96px) 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.page-section .ps-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #6B5A4A;
  text-transform: uppercase;
  position: sticky;
  top: 100px;
}
.page-section .ps-body { max-width: 780px; }
.page-section h2 {
  font-family: var(--font);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #14110D;
  margin-bottom: 20px;
  max-width: 22ch;
}
.page-section p {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.75;
  color: #4F4A42;
  max-width: 60ch;
}
.page-section p + p { margin-top: 14px; }

/* SCENT 같은 리스트형 sub-section에 사용 */
.ps-list { display: flex; flex-direction: column; gap: 18px; }
.ps-list-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(20, 17, 13, 0.1);
}
.ps-list-row span:first-child {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #6B5A4A;
  font-variant-numeric: tabular-nums;
}
.ps-list-row span:last-child {
  font-size: 15px;
  color: #4F4A42;
}

/* ═══════════════════════════════════════════
   COLLAB 페이지 전용 — 영상이 페이지 전체 fixed로 깔림
   첫 화면부터 스크롤 끝까지 영상이 viewport에 고정.
   ═══════════════════════════════════════════ */

/* 그라데이션 무효 + 다크 베이스 */
body.page.page-collab {
  background: #0E0C08;
  min-height: 100vh;
}

/* fixed 영상 — 페이지 어디서나 보임 */
.collab-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.collab-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collab-bg .veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.2) 35%, rgba(0,0,0,0.6) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 55%);
}

/* 모든 콘텐츠를 영상 위로 */
.page-collab .page-main,
.page-collab .info { position: relative; z-index: 2; }

/* page-collab 안 모든 섹션 — 영상 위 가독성 위해 라이트 톤 */
.page-collab .page-eyebrow,
.page-collab .ps-label { color: #E8D9BD; }
.page-collab .page-title {
  color: #FFFFFF;
  text-shadow: 0 2px 24px rgba(0,0,0,0.55);
}
.page-collab .page-sub {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 14px rgba(0,0,0,0.45);
}
.page-collab .page-section { border-top-color: rgba(255, 255, 255, 0.18); }
.page-collab .page-section h2 {
  color: #FFFFFF;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.page-collab .page-section h3 { color: #FFFFFF; }
.page-collab .page-section p {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.page-collab .ps-list-row { border-bottom-color: rgba(255, 255, 255, 0.18); }
.page-collab .ps-list-row span:first-child { color: rgba(255, 255, 255, 0.7); }
.page-collab .ps-list-row span:last-child { color: #FFFFFF; }

/* footer 라이트 톤 */
.page-collab .info { color: #FFFFFF; }
.page-collab .info ul { color: rgba(255,255,255,0.92); }
.page-collab .info li + li::before { color: rgba(255,255,255,0.55); }
.page-collab .info a { color: #FFFFFF; }
.page-collab .info a:hover { color: #E8D9BD; border-bottom-color: #E8D9BD; }
.page-collab .info-copy { color: rgba(255,255,255,0.62); }

/* Mendini 본문 — 사진 + 텍스트 2단 grid */
.mendini-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.mendini-photo {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  display: block;
}
.mendini-text > * + * { margin-top: 16px; }

/* Mendini 명언 박스 */
.mendini-quote {
  margin-top: clamp(40px, 6vh, 64px);
  padding: clamp(20px, 3vw, 32px) clamp(24px, 4vw, 40px);
  border-left: 2px solid #C9B8A1;
  font-family: var(--font);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.5;
  color: #FFFFFF;
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
  background: rgba(0,0,0,0.18);
}
.mendini-quote cite {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: #C9B8A1;
  font-style: normal;
}

/* Mendini 대표작 리스트 */
.mendini-works {
  margin-top: clamp(40px, 6vh, 64px);
}
.mendini-works h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 600;
  margin-bottom: clamp(16px, 2vh, 24px);
  color: #FFFFFF;
}

@media (max-width: 880px) {
  .mendini-layout { grid-template-columns: 1fr; gap: 20px; }
  .mendini-photo { max-width: 280px; }
}
.page-section--video .ps-label,
.page-section--video > .ps-label {
  color: #E8D9BD;
}
.page-section--video h2 {
  color: #FFFFFF;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}
.page-section--video p {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.page-section--video .ps-list-row {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}
.page-section--video .ps-list-row span:first-child {
  color: rgba(255, 255, 255, 0.7);
}
.page-section--video .ps-list-row span:last-child {
  color: #FFFFFF;
}

/* 인덱스 페이지 — 클릭 가능한 row (sub-item으로 이동) */
a.ps-list-row {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: padding-left 0.3s var(--ease), background 0.3s, color 0.25s;
}
a.ps-list-row:hover {
  padding-left: 18px;
  background: rgba(20, 17, 13, 0.05);
}
a.ps-list-row strong {
  font-weight: 600;
  color: #14110D;
}
a.ps-list-row .row-arrow {
  margin-left: 6px;
  color: #6B5A4A;
  transition: margin-left 0.25s var(--ease);
}
a.ps-list-row:hover .row-arrow {
  margin-left: 14px;
  color: #14110D;
}

/* 매장 카드 */
.ps-stores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 8px;
}
.ps-store h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #14110D;
}
.ps-store p {
  font-size: 13px;
  color: #6B6256;
  line-height: 1.6;
}

/* 문의 폼 */
.ps-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 520px;
}
.ps-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #6B5A4A;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.ps-field input,
.ps-field textarea {
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(20, 17, 13, 0.18);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  color: #2A2520;
  transition: border-color 0.25s;
}
.ps-field input:focus,
.ps-field textarea:focus {
  outline: none;
  border-color: #6B5A4A;
}
.ps-field textarea { min-height: 140px; resize: vertical; }
.ps-submit {
  align-self: flex-start;
  padding: 14px 32px;
  background: #14110D;
  color: #ECE7DB;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s var(--ease);
}
.ps-submit:hover {
  background: #2A2520;
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .page-section {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .page-section .ps-label { position: static; }
}
