/* ─────────────────────────────────────────
   Wildfish Design Studio — main.css
   v1.0.0
───────────────────────────────────────── */

/* ─── 디자인 토큰 ─── */
:root {
  --color-black:       #111111;
  --color-dark:        #444444;
  --color-mid:         #888888;
  --color-light:       #cccccc;
  --color-offwhite:    #f5f4f0;
  --color-white:       #ffffff;
  --color-border:      #e8e8e8;

  --font-en:           'Montserrat', sans-serif;
  --font-ko:           'PretendardVariable', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans:         var(--font-ko);

  --fw-light:          300;
  --fw-regular:        400;
  --fw-medium:         500;
  --fw-semibold:       600;
  --fw-bold:           700;

  --ease-out:          cubic-bezier(0.4, 0, 0.2, 1);

  --section-pad-v:     96px;
  --section-pad-h:     48px;
}

/* ─── 리셋 ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ko);
  font-size: 15px;
  line-height: 1.76;
  letter-spacing: -0.03em;
  color: var(--color-black);
  background: var(--color-offwhite);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
/* 영문 전용 요소 — Montserrat */
.nav-link, .nav-lang-desktop, .mm-link,
.work-archive-title, .work-filter-btn,
.single-work-back, .single-work-cat,
.meta-label, .meta-link,
.work-nav-label, .work-nav-all,
.footer-copy, .footer-social-link, .footer-link,
.hero-num, .hero-progress,
.loader-logo, #loader-num,
.sec-label, .sec-sm, .sec-link,
.about-link, .rw-all-link,
.cb-label, .cb-title, .cb-btn,
.work-item-cat, .work-num,
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-en);
  letter-spacing: 0;
}
/* h1~h3 한글 fallback */
h1, h2, h3 {
  font-family: var(--font-en), var(--font-ko);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }


/* ══════════════════════════════════════
   LOADING SCREEN
══════════════════════════════════════ */
#wf-loader {
  position: fixed; inset: 0;
  background: var(--color-black);
  z-index: 500;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  /* 기본: 완전 숨김 — JS가 .show 추가해야만 표시됨 */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s var(--ease-out);
}
#wf-loader.show {
  opacity: 1;
  pointer-events: all;
}
#wf-loader.show.hide {
  opacity: 0;
  pointer-events: none;
}

.loader-logo { margin-bottom: 32px; width: 160px; }

/* 페이지명 + Loading 텍스트 */
.loader-page-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.loader-page-label {
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}
.loader-page-sep {
  color: rgba(255,255,255,0.25);
}
/* 그라데이션 애니메이션: 흰색 → 회색 → 흰색 반복 */
.loader-page-loading {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.9) 0%,
    rgba(255,255,255,0.25) 40%,
    rgba(255,255,255,0.9) 80%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: loader-shimmer 1.8s linear infinite;
}
@keyframes loader-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.loader-bar-wrap {
  width: 200px; height: 1px;
  background: rgba(255,255,255,0.12);
}
.loader-bar { height: 1px; background: var(--color-white); width: 0%; transition: width 0.1s linear; }
.loader-num {
  font-size: 11px; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-top: 14px;
}

/* 서브페이지 로더 — 빠르게 사라짐 */
#wf-loader.subpage {
  transition: opacity 0.5s var(--ease-out);
}
/* 페이지 전환 로더 — 아래에서 올라오는 등장 */
#wf-loader.transition-enter {
  opacity: 0;
  animation: loader-enter 0.35s var(--ease-out) forwards;
}
@keyframes loader-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
.wf-nav {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--section-pad-h);
  height: 68px;
  background: transparent;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* 스크롤 시 배경 생김 (JS에서 .scrolled 클래스 추가) */
.wf-nav.scrolled {
  position: fixed;
  background: rgba(17,17,17,0.92) !important;
  backdrop-filter: blur(8px);
  border-bottom: none !important;
}
/* 서브페이지 nav — 고정 + 밝은 배경 (스크롤 전) */
body:not(.home) .wf-nav {
  position: fixed;
  background: var(--color-offwhite);
  border-bottom: 0.5px solid var(--color-border);
}
/* 서브페이지 로고 — 검은색 (white SVG를 invert) */
body:not(.home) .wf-nav:not(.scrolled) .nav-logo-img {
  filter: invert(1) brightness(0);
}
body:not(.home) .wf-nav .nav-link {
  color: var(--color-dark);
}
body:not(.home) .wf-nav .nav-link:hover,
body:not(.home) .wf-nav .nav-link.active {
  color: var(--color-black);
}
body:not(.home) .wf-nav .nav-lang-desktop {
  color: var(--color-mid);
  border-color: var(--color-border);
}
body:not(.home) .wf-nav .hamburger span {
  background: var(--color-black);
}
/* 서브페이지 스크롤 시 → 검은 배경 + 흰 로고/링크 */
body:not(.home) .wf-nav.scrolled .nav-logo-img {
  filter: none;
}
body:not(.home) .wf-nav.scrolled .nav-link {
  color: rgba(255,255,255,0.75);
}
body:not(.home) .wf-nav.scrolled .nav-link:hover {
  color: var(--color-white);
}
body:not(.home) .wf-nav.scrolled .nav-lang-desktop {
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.25);
}
body:not(.home) .wf-nav.scrolled .hamburger span {
  background: var(--color-white);
}

.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 30px; width: auto; }

.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-links-desktop { display: flex; gap: 36px; align-items: center; }

.nav-link {
  font-size: 12px; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 0.5px; background: var(--color-white);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav-link:hover,
.nav-link.active { color: var(--color-white); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* Shop 메뉴 — 테두리 버튼 형태 */
.nav-shop {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.8);
  border: 0.5px solid rgba(255,255,255,0.35);
  padding: 5px 14px;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nav-shop:hover,
.nav-shop.active {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.07);
}
/* 서브페이지에서 Shop 버튼 */
body:not(.home) .wf-nav:not(.scrolled) .nav-shop {
  color: var(--color-dark);
  border-color: var(--color-border);
}
body:not(.home) .wf-nav:not(.scrolled) .nav-shop:hover {
  color: var(--color-black);
  border-color: var(--color-black);
}
body:not(.home) .wf-nav.scrolled .nav-shop {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.35);
}

/* 모바일 메뉴 Shop */
.mm-link--shop {
  color: var(--color-black);
  font-weight: var(--fw-medium);
}
.mm-link--shop::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--color-black);
  border-radius: 50%;
  margin-left: 10px;
  vertical-align: middle;
}

.nav-lang-desktop {
  font-size: 11px; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  border: 0.5px solid rgba(255,255,255,0.25);
  padding: 4px 10px; border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.nav-lang-desktop:hover {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.55);
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center;
  gap: 5.5px;
  width: 36px; height: 36px; padding: 5px;
  position: relative; z-index: 200;
  transition: opacity 0.2s;
}
.hamburger span {
  display: block; height: 1px; width: 100%;
  background: var(--color-white);
  transition: opacity 0.2s ease;
}
.hamburger.open { opacity: 0; pointer-events: none; }


/* ══════════════════════════════════════
   MOBILE MENU OVERLAY
══════════════════════════════════════ */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--color-white);
  z-index: 300;
  display: flex; flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0; pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.mobile-menu.open { opacity: 1; pointer-events: all; transform: none; }

.mm-header {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 12px; flex-shrink: 0;
  padding: 0 24px; height: 68px;
  border-bottom: 0.5px solid #f0f0f0;
  position: sticky; top: 0;
  background: var(--color-white);
  z-index: 10;
}

.mm-lang-top { display: flex; gap: 6px; }
.mm-lang-btn {
  font-size: 11px; letter-spacing: 0.06em;
  border: 0.5px solid #ddd; padding: 4px 12px;
  border-radius: 2px; color: var(--color-mid);
  background: var(--color-white);
  transition: all 0.2s;
}
.mm-lang-btn.active { border-color: var(--color-black); color: var(--color-black); }
.mm-lang-btn:hover { border-color: var(--color-black); }

.mm-close {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 2px;
  color: var(--color-black);
  transition: background 0.15s;
  position: relative; z-index: 20;
}
.mm-close:hover { background: #f5f5f5; }

/* 메뉴 링크 */
.mm-links {
  display: flex; flex-direction: column;
  padding: 0 24px;
  border-bottom: 0.5px solid var(--color-border);
  flex-shrink: 0;
}
.mm-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; border-bottom: 0.5px solid #f0f0f0;
  font-size: 32px; font-weight: var(--fw-light);
  color: var(--color-black); letter-spacing: -0.02em;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s;
}
.mm-link:last-child { border-bottom: none; }
.mm-link:hover { color: var(--color-mid); }

.mm-arrow { font-size: 16px; color: var(--color-light); transition: transform 0.2s; }
.mm-link:hover .mm-arrow { transform: translate(3px, -3px); }

.mobile-menu.open .mm-link:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.mobile-menu.open .mm-link:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.10s; }
.mobile-menu.open .mm-link:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.15s; }
.mobile-menu.open .mm-link:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.20s; }

/* 주소 + SNS */
.mm-bottom {
  padding: 28px 24px 48px; flex-shrink: 0;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s ease 0.24s, transform 0.35s ease 0.24s;
}
.mobile-menu.open .mm-bottom { opacity: 1; transform: none; }

.mm-addresses { display: flex; gap: 32px; margin-bottom: 24px; flex-wrap: wrap; }
.mm-addr-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-light); margin-bottom: 6px; }
.mm-addr-line { font-size: 12px; color: #777; line-height: 1.7; }

.mm-divider { height: 0.5px; background: #ebebeb; margin-bottom: 20px; }

.mm-socials { display: flex; gap: 16px; align-items: center; }
.mm-social-link { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mm-social-icon {
  width: 38px; height: 38px;
  border: 0.5px solid #e0e0e0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #555;
  transition: border-color 0.2s, background 0.2s;
}
.mm-social-link:hover .mm-social-icon { border-color: var(--color-black); background: #f7f7f7; }
.mm-social-name { font-size: 10px; letter-spacing: 0.05em; color: var(--color-light); }


/* ══════════════════════════════════════
   HERO SLIDER
══════════════════════════════════════ */
.wf-hero {
  position: relative;
  width: 100%; height: 100vh; min-height: 600px;
  overflow: hidden; background: #1a1a1a;
}

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease-out);
}
.hero-slide.active { opacity: 1; }

.hero-slide-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-slide-placeholder { width: 100%; height: 100%; background: #2a2724; }

/* 그라데이션 오버레이 */
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.05) 55%, rgba(0,0,0,0.3) 100%);
}
.hero-slide::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 130px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 100%);
  z-index: 1;
}

.hero-caption {
  position: absolute; bottom: 108px; left: var(--section-pad-h); right: 160px; z-index: 2;
}
.hero-caption-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 14px;
}
.hero-caption-title {
  font-family: 'Montserrat', 'PretendardVariable', sans-serif;
  font-size: 48px; font-weight: var(--fw-light);
  color: var(--color-white); line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.hero-caption-body {
  font-family: 'PretendardVariable', 'Pretendard', sans-serif;
  font-size: 14px; font-weight: var(--fw-light);
  color: rgba(255,255,255,0.65); line-height: 1.76;
  letter-spacing: -0.02em;
  max-width: 480px;
  margin-bottom: 20px;
}
.hero-caption-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.8);
  border-bottom: 0.5px solid rgba(255,255,255,0.4);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.hero-caption-link:hover {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.8);
}

.hero-slide-num {
  position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; align-items: center; gap: 12px;
}
.hero-sn-txt { font-size: 11px; letter-spacing: 0.14em; color: rgba(255,255,255,0.45); }
.hero-sn-div { width: 32px; height: 0.5px; background: rgba(255,255,255,0.3); }

.hero-scroll {
  position: absolute; bottom: 48px; right: var(--section-pad-h); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll-line { width: 1px; height: 52px; background: rgba(255,255,255,0.25); }
.hero-scroll-txt { font-size: 9px; letter-spacing: 0.14em; color: rgba(255,255,255,0.35); writing-mode: vertical-rl; }

.hero-dots {
  position: absolute; right: var(--section-pad-h); top: 50%; transform: translateY(-50%);
  z-index: 2; display: flex; flex-direction: column; gap: 10px;
}
.hero-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,0.3); cursor: pointer;
  transition: all 0.25s; border: none;
}
.hero-dot.active { background: var(--color-white); transform: scale(1.5); }

.hero-progress {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: rgba(255,255,255,0.1); z-index: 2;
}
.hero-progress-bar { height: 100%; background: rgba(255,255,255,0.5); width: 0%; }


/* ══════════════════════════════════════
   WORK LIST
══════════════════════════════════════ */
.wf-worklist {
  padding: var(--section-pad-v) var(--section-pad-h) 0;
  background: var(--color-offwhite);
}

.worklist-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 40px; padding-bottom: 20px;
  border-bottom: 0.5px solid var(--color-border);
}
.sec-sm { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-mid); }
.sec-link { font-size: 11px; color: var(--color-mid); transition: color 0.2s; }
.sec-link:hover { color: var(--color-black); }

.work-item {
  display: flex; align-items: flex-start;
  padding: 24px 0; border-bottom: 0.5px solid #f0f0f0;
  transition: opacity 0.2s;
}
.work-item:hover { opacity: 0.6; }

.work-num { font-size: 11px; color: var(--color-light); width: 48px; margin-top: 4px; flex-shrink: 0; }
.work-item-main { flex: 1; }
.work-item-cat { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-light); margin-bottom: 6px; }
.work-item-title { font-size: 20px; font-weight: var(--fw-regular); color: var(--color-black); letter-spacing: -0.01em; line-height: 1.2; }

.work-item-right { display: flex; align-items: center; gap: 16px; }
.work-thumb { width: 76px; height: 54px; border-radius: 2px; overflow: hidden; background: #e8e5e0; flex-shrink: 0; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-thumb--empty { background: #e8e5e0; }
.work-arrow { font-size: 16px; color: var(--color-light); }

.no-works { color: var(--color-mid); font-size: 14px; padding: 40px 0; }


/* ══════════════════════════════════════
   PICKUP
══════════════════════════════════════ */
.wf-pickup {
  padding: var(--section-pad-v) var(--section-pad-h);
  background: var(--color-offwhite);
}
.sec-label {
  font-family: var(--font-en), var(--font-ko);
  font-size: 48px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-black);
  margin-bottom: 40px;
  text-transform: none;
}

.pickup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.pickup-card { display: block; }
.pickup-card--large { grid-column: span 2; }

.pickup-card-img { overflow: hidden; background: #e8e5e0; }
.pickup-card--large .pickup-card-img { aspect-ratio: 16/9; }
.pickup-card .pickup-card-img { aspect-ratio: 4/3; }
.pickup-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.pickup-card:hover .pickup-card-img img { transform: scale(1.03); }

.pickup-card-info { padding: 14px 0; }
.pickup-card-cat { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-light); margin-bottom: 4px; }
.pickup-card-title { font-size: 14px; font-weight: var(--fw-regular); color: var(--color-black); }


/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
.wf-about {
  padding: var(--section-pad-v) var(--section-pad-h);
  border-top: 0.5px solid var(--color-border);
  background: var(--color-offwhite);
}
/* 중앙 콘텐츠 섹션 공통 래퍼 */
.section-inner {
  max-width: 1440px;
  margin: 0 auto;
}
.wf-about .section-inner {
  display: flex;
  flex-direction: column;
}
.about-text {
  font-size: 15px; font-weight: var(--fw-light);
  line-height: 1.75; color: #333;
  max-width: 680px; margin-bottom: 32px;
}
.about-link { font-size: 12px; color: var(--color-black); transition: opacity 0.2s; }
.about-link:hover { opacity: 0.55; }


/* ══════════════════════════════════════
   SERVICES
══════════════════════════════════════ */
.wf-services {
  padding: 0 var(--section-pad-h) var(--section-pad-v);
  border-top: 0.5px solid var(--color-border);
  background: var(--color-offwhite);
}
.wf-services .sec-label { padding-top: 48px; display: block; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
.service-item { padding: 28px 28px 28px 0; border-right: 0.5px solid #f0f0f0; }
.service-item:last-child { border-right: none; padding-right: 0; }
.service-num { font-size: 10px; color: var(--color-light); margin-bottom: 12px; }
.service-name { font-size: 14px; font-weight: var(--fw-medium); color: var(--color-black); margin-bottom: 8px; }
.service-desc { font-size: 12px; color: var(--color-mid); line-height: 1.65; }


/* ══════════════════════════════════════
   CONTACT BAND
══════════════════════════════════════ */
.wf-contact-band {
  padding: 112px var(--section-pad-h);
  background: var(--color-black);
  text-align: center;
}
.cb-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 24px; }
.cb-title { font-size: 44px; font-weight: var(--fw-light); color: var(--color-white); letter-spacing: -0.02em; margin-bottom: 40px; }
.cb-btn {
  display: inline-block;
  border: 0.5px solid rgba(255,255,255,0.3); color: var(--color-white);
  font-size: 12px; letter-spacing: 0.1em;
  padding: 14px 44px; border-radius: 2px;
  transition: background 0.25s, border-color 0.25s;
}
.cb-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.55); }


/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.wf-footer {
  padding: 28px var(--section-pad-h);
  border-top: 0.5px solid var(--color-border);
  background: var(--color-offwhite);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo img { height: 30px; width: auto; }
.footer-copy { font-size: 11px; color: var(--color-light); }
.footer-links { display: flex; gap: 20px; }
.footer-link { font-size: 11px; color: var(--color-mid); transition: color 0.2s; }
.footer-link:hover { color: var(--color-black); }


/* ══════════════════════════════════════
   RESPONSIVE — 768px 이하
══════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --section-pad-v: 64px;
    --section-pad-h: 24px;
  }

  /* Nav */
  .nav-links-desktop, .nav-lang-desktop { display: none; }
  .hamburger { display: flex; }
  .wf-nav { padding: 0 24px; }

  /* Hero */
  .hero-caption { left: 24px; right: 80px; bottom: 96px; }
  .hero-caption-title { font-size: 30px; }
  .hero-scroll { display: none; }
  .hero-dots { right: 20px; }

  /* Work */
  .work-thumb { display: none; }
  .work-item-title { font-size: 17px; }

  /* Pickup */
  .pickup-grid { grid-template-columns: 1fr; }
  .pickup-card--large { grid-column: span 1; }

  /* About */
  .about-text { font-size: 14px; }
  .sec-label { font-size: 30px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .service-item { border-right: none; border-bottom: 0.5px solid #f0f0f0; padding: 20px 0; }
  .service-item:last-child { border-bottom: none; }

  /* Contact */
  .cb-title { font-size: 28px; }
  .cb-btn { padding: 12px 32px; }

  /* Footer */
  .wf-footer { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  .hero-caption-title { font-size: 26px; }
  .sec-label { font-size: 26px; }
  .mm-link { font-size: 28px; }
}


/* ══════════════════════════════════════
   커스텀 커서 (프론트엔드 전용, 관리자 제외)
══════════════════════════════════════ */
body:not(.wp-admin) * { cursor: none !important; }

.cursor-dot {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--color-black);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: background 0.2s, transform 0.15s;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(17,17,17,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, border-color 0.2s, background 0.2s;
}
.cursor-ring.hover {
  width: 56px; height: 56px;
  border-color: rgba(17,17,17,0.25);
}

/* 밝은 배경 위 (기본) */
.cursor-dot.light { background: var(--color-white); }
.cursor-ring.light { border-color: rgba(255,255,255,0.6); }
.cursor-ring.light.hover { border-color: rgba(255,255,255,0.3); }

/* 라이트박스 위 */
.cursor-dot.lightbox { background: rgba(255,255,255,0.9); }
.cursor-ring.lightbox { border-color: rgba(255,255,255,0.4); }

/* 관리자 바 위에서도 커서 복구 */
#wpadminbar, #wpadminbar * { cursor: auto !important; }

@media (max-width: 768px) {
  * { cursor: auto !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
}
/* 리사이즈 후 데스크탑 복귀 시 JS가 show() 호출 전까지 숨김 유지 */
.cursor-dot, .cursor-ring { will-change: left, top; }


/* ══════════════════════════════════════
   스크롤 페이드인 애니메이션
══════════════════════════════════════ */
.wf-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.0s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 1.0s cubic-bezier(0.25, 0.1, 0.25, 1);
  transition-delay: 0.15s;
}
.wf-reveal--in {
  opacity: 1;
  transform: translateY(0);
}
.wf-reveal--out {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease,
              transform 0.5s ease;
}
/* 카드들 순서별 딜레이 */
.work-grid .work-card:nth-child(1) { transition-delay: 0.1s; }
.work-grid .work-card:nth-child(2) { transition-delay: 0.2s; }
.work-grid .work-card:nth-child(3) { transition-delay: 0.3s; }
.work-grid .work-card:nth-child(n+4) { transition-delay: 0.15s; }
/* 섹션별 딜레이 */
.wf-about.wf-reveal        { transition-delay: 0.2s; }
.wf-services.wf-reveal     { transition-delay: 0.2s; }
.wf-contact-band.wf-reveal { transition-delay: 0.2s; }
.work-archive-header.wf-reveal { transition-delay: 0.1s; }


/* ══════════════════════════════════════
   RECENT WORKS 섹션 (메인페이지)
══════════════════════════════════════ */
.wf-recent-works {
  padding: var(--section-pad-v) var(--section-pad-h);
  border-top: 0.5px solid var(--color-border);
  background: var(--color-offwhite);
}
.rw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
}
.rw-all-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-mid);
  transition: color 0.2s;
}
.rw-all-link:hover { color: var(--color-black); }

/* 리스트 아이템 */
.rw-list { display: flex; flex-direction: column; }

.rw-item {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 0 64px;
  align-items: center;
  padding: 56px 0;
  border-top: 0.5px solid var(--color-border);
  transition: opacity 0.2s;
}
.rw-item:last-child { border-bottom: 0.5px solid var(--color-border); }
.rw-item:hover { opacity: 0.75; }

.rw-item-text {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.rw-item-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--color-light);
  padding-top: 4px;
  flex-shrink: 0;
}
.rw-item-cat {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-mid);
  margin-bottom: 10px;
}
.rw-item-title {
  font-family: 'Montserrat', 'PretendardVariable', sans-serif;
  font-size: 22px;
  font-weight: var(--fw-light);
  color: var(--color-black);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 10px;
}
.rw-item-client {
  font-size: 12px;
  color: var(--color-mid);
  letter-spacing: -0.01em;
}
.rw-item-img {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e8e5e0;
}
.rw-item-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.rw-item:hover .rw-item-img img { transform: scale(1.03); }
.rw-item-placeholder { width: 100%; height: 100%; background: #dedad5; }

@media (max-width: 768px) {
  .wf-recent-works { padding: 64px 24px; }
  .rw-header { margin-bottom: 40px; }
  .rw-item {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 0;
  }
  .rw-item-title { font-size: 18px; }
  /* 모바일: 텍스트 위, 이미지 아래 */
  .rw-item-text { order: 1; }
  .rw-item-img  { order: 2; aspect-ratio: 4/3; }
}

/* ══════════════════════════════════════
   맨위로 버튼
══════════════════════════════════════ */
#wf-totop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
#wf-totop.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
#wf-totop:hover {
  background: #333;
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  #wf-totop { bottom: 24px; right: 20px; width: 42px; height: 42px; }
}