/* ── CUSTOM CURSOR ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; cursor: none !important; }

#cursor {
  position: fixed;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #ffffff;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.15s ease, mix-blend-mode 0.15s ease;
  mix-blend-mode: difference;
  top: 0; left: 0;
}
#cursor.hover {
  width: 25px; height: 25px;
}
#m-intro-overlay, #m-intro-logo, #m-intro-dot {
  position: fixed;
  opacity: 0;
  visibility: hidden;
  z-index: 9000;
}

/* 모바일 미디어 쿼리 */
@media (max-width: 800px) {
  #cursor { display: none; }

  /* 배경: 100vh로 높이 강제 고정 */
  #m-intro-overlay {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #ffffff;
    z-index: 9000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
  }
  #m-intro-overlay.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* 뒤에 있는 메뉴 클릭 가능하게 함 */
  }

  /* 로고: 중앙 좌표를 수치로 직접 계산 (사파리 찢어짐 방지) */
  #m-intro-logo {
    display: block !important;
    opacity: 1;
    visibility: visible;
    position: fixed;
    /* translate(-50%) 대신 margin-left를 써서 사파리 레이아웃 고정 */
    top: 50vh; 
    left: 50vw;
    width: 120px; /* 로고 가로폭에 맞춰 수정하세요 */
    margin-top: -30px; /* 로고 높이의 절반 */
    margin-left: -60px; /* 로고 넓이의 절반 */
    transform: scale(1.2); 
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
                top 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
                left 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9001;
    will-change: transform, top, left;
  }

  /* 로고 이동 후 */
  #m-intro-logo.moved {
    top: 25px !important;
    left: 20px !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    transform: scale(0.9) !important;
  }

  /* 로고 고정 (사파리 필수) */
  #m-intro-logo.settled {
    transition: none !important;
  }

  /* 4. 가운데 작은 점 */
  #m-intro-dot {
    display: inline-block !important;
    position: fixed;
    top: 50vh; left: 50vw;
    width: 6px; height: 6px;
    margin-left: -3px; margin-top: -3px;
    background: #000; border-radius: 50%;
    opacity: 0; visibility: visible;
    z-index: 9001;
  }
  #m-intro-dot.blink {
    animation: m-blink 0.8s infinite alternate;
  }
}

@keyframes m-blink {
  from { opacity: 0; } to { opacity: 1; }
}

:root {
  --white: #ffffff;
  --black: #111111;
  --mid:   #999999;
  --light: #e8e8e8;
  --f: 'Inter', sans-serif;
}

html, body {
  width: 100%; height: 100%;
  background: var(--white);
  color: var(--black);
  font-family: var(--f);
  font-size: 15px;
  line-height: 1.5;
  user-select: none;
}

a { color: inherit; text-decoration: none; }
button { background: none; border: none; padding: 0; cursor: pointer; font: inherit; color: inherit; }

.page { display: none; min-height: 100vh; position: relative; }
.page.active { display: block; }

/* ── LOGO ── */
.site-logo {
  position: fixed;
  top: 28px; left: 32px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  z-index: 100; cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

/* ── LEFT NAV ── */
.nav-left {
  position: fixed;
  bottom: 60px; left: 32px;
  display: flex; flex-direction: column;
  gap: 0; z-index: 100;
}

.nav-left a {
  font-size: 16px; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--black); padding: 12px 0;
  opacity: 1; transition: opacity 0.2s; display: block;
}

.nav-left a.active {
  opacity: 1;
  text-decoration: line-through;
}
.nav-left a:hover  { opacity: 0.5; }

/* sub nav under PROJECT */
.nav-sub {
  display: none;
  flex-direction: column;
  padding-left: 14px;
}
.nav-sub.open { display: flex; }

.nav-sub a {
  font-size: 14px;
  padding: 10px 0;
  opacity: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-sub a.active {
  opacity: 0.3;
  text-decoration: line-through;
}
.nav-sub a:hover  { opacity: 0.5; }

/* ── FOOTER ── */
.site-footer {
  position: fixed;
  bottom: 22px; left: 0; right: 0;
  text-align: center; font-size: 14px;
  letter-spacing: 0.05em; color: var(--black); z-index: 500;
  font-weight: 300; pointer-events: auto;
}

/* ════════ HOME ════════ */
#page-home.active { display: flex; align-items: flex-start; }

.home-inner {
  margin-left: 200px;
  padding: 60px 80px 100px 0;
  display: flex; align-items: flex-start;
  gap: 60px; min-height: 100vh; width: 100%;
  justify-content: flex-end;
}

.home-image { width: 43vw; max-width: 560px; flex-shrink: 0; margin-top: 20px; }
.home-image svg, .home-image img { width: 100%; display: block; }

.home-body { max-width: 310px; padding-top: 24px; }
.home-body p { font-size: 14px; line-height: 1.85; margin-bottom: 1.3em; }
.home-body p:last-child { margin-bottom: 0; }
/* ── ABOUT 한국어 호버 ── */
.about-p {
  position: relative;
  cursor: default;
}
.about-p .p-en,
.about-p .p-ko {
  transition: opacity 0.25s ease;
  display: block;
}
.about-p .p-ko {
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
  pointer-events: none;
  color: var(--mid);
}
.about-p:hover .p-en { opacity: 0; }
.about-p:hover .p-ko { opacity: 1; }


/* ════════ ABOUT ════════ */
.about-inner { margin-left: 200px; padding: 80px 80px 100px 0; max-width: 100%; }
.about-inner h1 { font-size: clamp(1.8rem,2.6vw,2.5rem); font-weight:400; font-style:italic; line-height:1.2; margin-bottom:2.4rem; }
.about-inner p { font-size:14px; line-height:1.9; margin-bottom:1.3em; max-width:480px; }

.about-home-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 3rem;
}
  
.about-home-wrap .home-image { width: 40vw; max-width: 500px; }
.about-home-wrap .home-image svg { width: 100%; display: block; }
.about-home-wrap .home-body { width: 40vw; max-width: 500px; padding-top: 0; }
.about-home-wrap .home-body p { font-size: 13.5px; line-height: 1.32; margin-bottom: 1.3em; letter-spacing: -0.03em;}
.about-meta { margin-top:2.8rem; padding-top:2rem; border-top:1px solid var(--light); display:grid; grid-template-columns:1fr 1fr; gap:1.6rem 2rem; }
.about-meta-item label { display:block; font-size:10px; letter-spacing:0.2em; text-transform:uppercase; color:var(--mid); margin-bottom:0.35rem; }
.about-meta-item span { font-size:13.5px; }

/* ════════ PROJECT (scroll list) ════════ */
#page-project.active { display: block; }

.project-scroll {
  margin-left: 320px;
  margin-right: auto;
  padding: 200px 0 120px 0;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.proj-entry {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  transition: all 2.0s cubic-bezier(0.4, 0, 0.2, 1);
}

.proj-entry-img {
  width: 55vw;
  max-width: 640px;
  flex-shrink: 0;
  position: relative;
}

.proj-entry-img img,
.proj-entry-img svg {
  width: 100%; display: block;
  max-height: 75vh; object-fit: contain;
}

.proj-entry-info {
  padding-top: 0;
}

.proj-entry-name {
  font-size: 18px; font-weight: 500;
  letter-spacing: 0.02em; margin-bottom: 6px;
}

.proj-entry-meta {
  font-size: 15px; color: var(--black);
  line-height: 1.8;
}

/* ════════ ARCHIVE ════════ */
.archive-inner { margin-left: 200px; padding: 200px 40px 100px 40px; }
.archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px 24px; }
/* 아이템 전체 래퍼 */
.archive-item {
  cursor: pointer;
  position: relative;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.archive-item > .archive-label { display: contents; }
/* 이미지 영역 */
.archive-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f4f4f2;
  flex-shrink: 0;
}
.archive-img-wrap img,
.archive-img-wrap svg {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(.25,.46,.45,.94);
}
/* 호버: 이미지 프레임 자체 확대, 그림자 없음, 텍스트 고정 */
.archive-img-wrap {
  transition: transform 0.5s cubic-bezier(.23,1,.32,1);
  will-change: transform;
}
.archive-item:hover .archive-img-wrap { transform: scale(1.04); }
.archive-item:hover .archive-img-wrap img,
.archive-item:hover .archive-img-wrap svg { transform: scale(1.02); }
/* 텍스트는 절대 안 움직임 */
.archive-label {
  position: static;
  padding: 0;
  background: none;
  opacity: 1;
  transition: none;
}
.archive-label .al-name { display:block; font-size:11px; letter-spacing:0.08em; text-transform:uppercase; font-weight:400; line-height:1.4; color:var(--black); }
.archive-label .al-year { display:block; font-size:10px; letter-spacing:0.05em; color:var(--mid); margin-top:2px; }
.archive-name-top { display:block; font-size:12.5px; letter-spacing:0.03em; text-transform:uppercase; font-weight:400; line-height:1.4; color:var(--black); margin-bottom:2px; }
.archive-year-bot { display:block; font-size:10px; letter-spacing:0.05em; color:var(--mid); margin-top:2px; }
/* 포스트 텍스트 아이템 */
.archive-item.post-text { background: transparent; }
.archive-item.post-text .archive-img-wrap { background:#f0eeea; display:flex; flex-direction:column; justify-content:flex-end; padding:14px; }
.archive-item.post-text .post-tag { font-size:9px; letter-spacing:0.15em; text-transform:uppercase; color:var(--mid); margin-bottom:6px; }
.archive-item.post-text .post-title { font-size:13px; font-weight:400; line-height:1.4; color:var(--black); }
.archive-item.post-text .post-date { font-size:9px; color:var(--mid); margin-top:6px; letter-spacing:0.05em; }
.archive-item.post-sketch { background: transparent; }
.archive-item.post-sketch .archive-img-wrap img { width:100%; height:100%; object-fit:cover; display:block; }
.archive-item:hover.post-sketch .archive-img-wrap img { transform:scale(1.05); }


/* ════════ POST VIEWER ════════ */
.post-viewer-overlay {
  position: fixed; inset: 0;
  background: transparent;
  z-index: 800; opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.post-viewer-overlay.open { opacity: 1; pointer-events: auto; }

.post-viewer {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 801;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.post-viewer.open { opacity: 1; pointer-events: auto; }

.post-viewer-img {
  max-width: 90vw;
  max-height: 80vh;
  flex-shrink: 0;
  overflow: visible;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-viewer-img img {
  max-width: 90vw;
  max-height: 80vh;
  width: auto; height: auto;
  object-fit: contain; display: block;
}
.post-viewer-img.no-img {
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  width: 200px; height: 200px;
}
.post-viewer-img.no-img .pv-tag-big {
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.pv-wrap {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
}
.post-viewer-body {
  position: absolute;
  top: 0;
  left: calc(100% + 20px);
  width: 140px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.pv-tag { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid); }
.pv-title { font-size: 15px; font-weight: 400; line-height: 1.2; color: var(--black); }
.pv-date { font-size: 11px; color: var(--mid); letter-spacing: 0.06em; }
.pv-divider { display: none; }
.pv-body { font-size: 13px; line-height: 1.85; color: var(--black); white-space: pre-wrap; margin-top: 10px; }
.pv-close {
  position: fixed; top: 24px; right: 32px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mid); cursor: pointer; background: none; border: none;
  font-family: var(--f); z-index: 10;
}
.pv-close:hover { color: var(--black); }

@media (max-width: 800px) {
  .post-viewer { justify-content: center; padding: 60px 20px 40px; }
  .post-viewer-img { max-width: 100%; max-height: 65vh; }
  .post-viewer-img img { max-width: 100%; max-height: 65vh; }
  .pv-wrap { flex-direction: column; position: static; }
  .post-viewer-body {
    position: static;
    width: 100%;
    padding: 14px 0 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
  }
  .pv-tag { color: var(--mid); }
  .pv-title { color: var(--black); font-size: 13px; }
  .pv-date { color: var(--mid); }
  .pv-close { top: 16px; right: 20px; }
}
/* ════════ CONTACT ════════ */
.contact-inner { margin-left: 200px; padding: 160px 80px 100px 0; max-width: 560px; }
.contact-inner h2 { font-size:clamp(1.8rem,2.6vw,2.5rem); font-weight:400; font-style:italic; line-height:1.2; margin-bottom:3rem; }
.contact-list { display:flex; flex-direction:column; gap:18px; }
.contact-item { display:flex; gap:20px; align-items:baseline; }
.c-label { font-size:12px; letter-spacing:0.08em; text-transform:uppercase; color:var(--mid); flex-shrink:0; width:100px; }
.c-val { font-size:13.5px; color:var(--black); }

/* ── GET IN TOUCH BUTTON ── */
.inquiry-btn {
  position: fixed;
  top: 50%; right: 32px;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  z-index: 300;
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.inquiry-btn.show { display: flex; opacity: 1; pointer-events: auto; }

.slide-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500; font-family: var(--f);
  color: var(--black);
  cursor: pointer;
  background: transparent;
  border: none;
  transition: color 0.25s;
}
.slide-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  border-radius: 999px;
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.25s;
}
.slide-wrap:hover::before { transform: scale(1); opacity: 1; }
.slide-wrap:hover .slide-label-box { color: #fff; }
.slide-label-box {
  position: relative; z-index: 1;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500; font-family: var(--f);
  color: var(--black);
  transition: color 0.25s;
  white-space: nowrap;
}
/* 밑줄 애니메이션 */
.slide-label-box::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1px;
  background: var(--black);
  transform-origin: left;
  animation: underline-loop 2.8s ease-in-out infinite;
}
.slide-wrap:hover .slide-label-box::after {
  animation: none;
  opacity: 0;
}
@keyframes underline-loop {
  0%   { transform: scaleX(0); transform-origin: left;  opacity: 1; }
  40%  { transform: scaleX(1); transform-origin: left;  opacity: 1; }
  41%  { transform: scaleX(1); transform-origin: right; opacity: 1; }
  80%  { transform: scaleX(0); transform-origin: right; opacity: 1; }
  100% { transform: scaleX(0); transform-origin: left;  opacity: 0; }
}
.slide-handle { display: none; }
.slide-fill {
  position: absolute;
  top: 0; left: 0; height: 100%;
  width: 0; background: rgba(255,255,255,0.06);
  pointer-events: none;
  transition: width 0.05s linear;
}

/* 의뢰하기 패널 */
.inquiry-panel {
  position: fixed;
  top: 0; right: 0;
  width: min(480px, 100vw);
  height: 100vh;
  background: #f2f2f2;
  z-index: 400;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
  overflow-y: auto;
  padding: 56px 44px 80px;
}
.inquiry-panel.open { transform: translateX(0); }
.inquiry-panel-close {
  position: absolute; top: 20px; right: 20px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer;
  background: var(--black); color: #fff;
  border: none; font-family: var(--f);
}
.inquiry-panel h3 { font-size: clamp(1.6rem,2.2vw,2rem); font-weight:400; margin-bottom: 0.5rem; line-height:1.2; }
.inquiry-panel .inquiry-sub { font-size:13px; color:var(--mid); margin-bottom: 2.5rem; line-height:1.7; }
.inquiry-divider { border:none; border-top:1px solid #ddd9d2; margin-bottom: 2rem; }
.inquiry-section-label { font-size:9px; letter-spacing:0.2em; text-transform:uppercase; color:var(--mid); margin-bottom:12px; display:block; }
.inquiry-chips { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:2rem; }
.inquiry-chip {
  font-size:10px; letter-spacing:0.1em; text-transform:uppercase;
  padding: 8px 14px; border:1px solid #ccc8c0;
  background:transparent; cursor:pointer; font-family:var(--f);
  color:var(--black); transition: background 0.15s, border-color 0.15s;
}
.inquiry-chip.on, .inquiry-chip:hover { background: var(--black); color:#fff; border-color:var(--black); }
.inquiry-textarea {
  width:100%; border:1px solid #ccc8c0; background:transparent;
  padding:12px 14px; font-size:13px; font-family:var(--f);
  resize:none; height:120px; outline:none; margin-bottom:2rem;
  color:var(--black); line-height:1.6;
}
.inquiry-textarea:focus { border-color: var(--black); }
.inquiry-input {
  width:100%; border:none; border-bottom:1px solid #ccc8c0; background:transparent;
  padding:10px 0; font-size:13px; font-family:var(--f); outline:none;
  color:var(--black); margin-bottom:1.4rem; display:block;
}
.inquiry-input:focus { border-color: var(--black); }
.inquiry-input::placeholder { color:var(--mid); }
.inquiry-submit {
  width:100%; padding:14px; background:var(--black); color:#fff;
  border:none; font-size:11px; letter-spacing:0.15em; text-transform:uppercase;
  font-family:var(--f); cursor:pointer; margin-top:0.5rem;
  transition: opacity 0.2s;
}
.inquiry-submit:hover { opacity:0.75; }
.inquiry-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,0.2);
  z-index:399; opacity:0; pointer-events:none;
  transition:opacity 0.4s;
}
.inquiry-overlay.open { opacity:1; pointer-events:auto; }
/* ── EASTER EGG ── */
@media (max-width: 800px) { .easter-overlay { display: none !important; } }
.easter-overlay {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 9000; pointer-events: none; opacity: 0;
  transition: opacity 0.4s ease;
  background: rgba(0,0,0,0);
}
.easter-overlay.show { opacity: 1; pointer-events: auto; animation: easter-bg-flash 0.6s ease forwards; }
@keyframes easter-bg-flash {
  0%   { background: rgba(0,0,0,0); }
  30%  { background: rgba(255,255,255,0.12); }
  60%  { background: rgba(0,0,0,0.05); }
  100% { background: rgba(0,0,0,0); }
}
.easter-box {
  background: var(--black); color: #fff;
  padding: 40px 48px; max-width: 380px; width: 90%;
  text-align: center; position: relative;
}
.easter-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none; color: #fff;
  font-size: 18px; cursor: pointer; opacity: 0.6;
}
.easter-close:hover { opacity: 1; }
.easter-emoji { font-size: 40px; display: block; margin-bottom: 16px; }
.easter-msg { font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
.easter-msg em { display: block; font-size: 12px; opacity: 0.5; font-style: normal; margin-top: 6px; }
.easter-link {
  display: inline-block; font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
}
.easter-link:hover { border-color: #fff; }

/* ── UPLOAD ZONE ── */
.inquiry-upload-zone {
  border: 1px dashed #ccc8c0;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.inquiry-upload-zone:hover { border-color: var(--black); }
.upload-icon { font-size: 20px; margin-bottom: 6px; }
.upload-text { font-size: 12px; letter-spacing: 0.05em; margin-bottom: 4px; }
.upload-hint { font-size: 11px; color: var(--mid); }
.file-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.file-item { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--light); }
.file-item-remove { cursor: pointer; color: var(--mid); font-size: 14px; }
.file-item-remove:hover { color: var(--black); }

/* ── MOBILE ── */
.m-home-menu {
  display: none;
  flex-direction: column;
  z-index: 50;
}
@media (max-width: 800px) {
  .m-home-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin-top: -52px;
    padding: 0 28px;
    gap: 0;
  }
  .m-home-menu-item { width: 100%; text-align: center; }
  .m-home-menu-item .m-home-menu-content { overflow: hidden; max-height: 0; transition: max-height 1.0s cubic-bezier(0.4, 0, 0.2, 1); padding: 0; }
  .m-home-menu-item.open .m-home-menu-content { max-height: 2000px; }
  .m-home-menu-content { text-align: left; overflow: hidden; }
  .m-home-menu-label {
    font-size: 16px; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 7px 0;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.2s;
  }
  .m-home-menu-label:hover { opacity: 0.5; }
  .m-home-menu-label.active { opacity: 0.3; text-decoration: line-through; }
  .m-home-menu-arrow { display: none; }
  .m-home-menu-item.open .m-home-menu-arrow { transform: rotate(180deg); }
  .m-home-menu-item.open .m-home-menu-content { padding: 4px 0 12px; }
  .m-home-sub-label {
    font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 6px 0; color: var(--mid); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .m-home-sub-content { text-align: left; }
  .m-home-sub-label.active { opacity: 0.3; text-decoration: line-through; }
  .m-home-sub-item { width: 100%; text-align: center; }
  .m-home-sub-item > div:not(.m-home-sub-label) { overflow: hidden; max-height: 0; transition: max-height 1.0s cubic-bezier(0.4, 0, 0.2, 1); }
  .m-home-sub-item.open > div:not(.m-home-sub-label) { max-height: 2000px; }
  .m-home-sub-item.open .m-home-menu-arrow { transform: rotate(180deg); }
  .m-home-sub-content { padding: 16px 0; }
}
.m-header { display:none; position:fixed; top:0; left:0; right:0; height:52px; align-items:center; justify-content:space-between; padding:0 20px; z-index:200; background:var(--white); }
.m-logo { font-size:12px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; }
.burger { display:flex; flex-direction:column; gap:5px; cursor:pointer; }
.burger span { display:block; width:20px; height:1px; background:var(--black); }
.m-nav { display:none; position:fixed; inset:0; background:var(--white); z-index:190; flex-direction:column; justify-content:center; align-items:flex-start; padding:0 32px; gap:0; }
.m-nav.open { display:flex; }
.m-nav a { font-size:14px; letter-spacing:0.1em; text-transform:uppercase; font-weight:500; padding:12px 0; color:var(--black); opacity:1; transition:opacity 0.2s; display:block; }
.m-nav a.sub { font-size:12px; padding:8px 0 8px 16px; }
.m-nav a.active { opacity: 0.3; text-decoration: line-through; }
.m-nav a:hover { opacity:0.5; }

@media (max-width: 800px) {
  .site-logo, .nav-left { display:none; }
    .site-footer {
    position: fixed;
    top: 50%;
    bottom: auto;
    left: auto !important;
    right: -30px !important;
    transform: translateY(-50%) rotate(-90deg);
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--mid);
    z-index: 50;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
  }
  .m-header { display:flex; }
  /* 모바일에서 기존 page들 숨기기 */
  .page { display:none !important; }
  .m-home-menu { display:flex !important; }
  .home-inner, .about-inner, .archive-inner, .contact-inner { margin-left:0; padding:72px 20px 80px; }
  .project-scroll { margin-left:0; padding:72px 20px 80px; gap:60px; }
  .home-inner { flex-direction:column; gap:24px; justify-content:flex-start; }
  .home-image { width:100%; max-width:100%; margin-top:0; }
  .home-body { max-width:100%; padding-top:0; }
  .archive-grid { grid-template-columns:repeat(2,1fr); gap:24px 12px; }
  .about-meta { grid-template-columns:1fr; }

  /* 모바일 기본: 세로 배치 */
  .proj-entry { flex-direction:column; gap:12px; }
  /* 모바일 전용 제목: 사진 바로 위 */
  .proj-mobile-title {
    display: flex; align-items: baseline; gap: 10px;
    font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
    padding: 0 0 8px 0;
  }
}
/* 데스크톱에서 모바일 제목 완전 숨김 */
.proj-mobile-title { display: none !important; }
@media (max-width: 800px) {
  .proj-mobile-meta { font-size: 11px; color: var(--mid); font-weight: 400; }
  /* 비확장 슬라이더: 반드시 1장만 */
  .proj-slider-track img { width: 100%; flex-shrink: 0; }
  .proj-entry-img { width:100% !important; max-width:100% !important; flex-shrink:1; }
  /* 모바일 비확장: 슬라이더 overflow 차단 */
  .proj-slider { overflow:hidden !important; }
  /* 모바일 title: 확장 전만 보임, 확장 후 detail-bar가 담당 */
  .proj-entry .proj-mobile-title { display: flex; }
  .proj-entry.expanded .proj-mobile-title { display: none; }

  .proj-entry-info { padding-top:0; }

  /* 모바일 expanded: 강제 full width */
  .proj-entry.expanded .proj-entry-img { width:100vw !important; max-width:100vw !important; margin-left:-20px; overflow:visible; position:relative; }
  .proj-entry.expanded .proj-slider-wrap { position:relative; }
  .proj-entry.expanded .proj-slider { overflow:hidden; position:relative; width:100%; }
  .proj-entry.expanded .proj-slider-track img { width:90%; margin-right:2%; max-height:65vh; flex-shrink:0; }
  /* 모바일 화살표 숨기기 — 터치 스와이프로 대체 */
  .proj-entry.expanded .proj-slider-arrows { display:none !important; }
  /* 모바일 proj-detail-bar: 로고 하단 고정, expanded일 때만 */
  .proj-detail-bar { display: none !important; }
  .proj-entry.expanded .proj-detail-bar {
    display: flex !important;
    position: fixed;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 0 16px;
    z-index: 150;
    background: transparent;
  }
  .proj-entry.expanded .proj-detail-bar .proj-detail-name { font-size:13px; font-weight:500; text-align:right; }
  .proj-entry.expanded .proj-detail-bar .proj-detail-meta { font-size:11px; text-align:right; color:var(--mid); }
  .proj-entry.expanded .proj-detail-bar .proj-detail-close { font-size:10px; letter-spacing:0.03em; text-align:right; margin-bottom:2px; }
  .s-arrow { width:32px; height:32px; font-size:22px; }
}
  /* ── PROJECT DETAIL VIEW ── */
/* 확장 상태: flex → 세로 스택, 이미지가 거의 전체 너비 */
.proj-entry.expanded {
  flex-direction: column;
  gap: 0;
}
.proj-entry.expanded .proj-entry-img {
  width: calc(100vw - 200px - 80px);
  max-width: none;
}
/* 확장 시 오른쪽 정보 숨기기 */
.proj-entry.expanded .proj-entry-info {
  display: none;
}
/* 확장 시 상단에 이름+메타 한 줄로 */
.proj-detail-bar {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  position: fixed;
  top: 18px; right: 32px;
  z-index: 150;
}
.proj-entry.expanded .proj-detail-bar {
  display: flex;
}
.proj-detail-name { font-size:20px; font-weight:500; letter-spacing:0.06em; text-transform:uppercase; }
.proj-detail-meta { font-size:15px; color:var(--mid); letter-spacing:0.05em; }
.proj-detail-close {
  font-size:11px; letter-spacing:0.03em; text-transform:uppercase; color:var(--mid); cursor:pointer;
  margin-bottom: 6px;
}
.proj-detail-close:hover { color:var(--black); }

/* 슬라이더 */
.proj-slider { position:relative; overflow:hidden; width:100%; cursor:pointer; }
.proj-slider-track {
  display:flex;
  transition: transform 1.0s cubic-bezier(0.25,0.46,0.45,0.94);
}
.proj-slider-track img {
  flex-shrink:0; width:100%;
  max-height:75vh; object-fit:contain; background:transparent; display:block;
}
/* 확장 전: 이미지 1장만 보임 */
/* 확장 후: 이미지가 살짝 좁아지고 옆 사진이 슬쩍 보임 */
.proj-entry.expanded .proj-slider-track img {
  width: 88%;
  margin-right: 2%;
}

/* 좌우 화살표 — 확장 시에만 */
.proj-slider-wrap {
  position: relative;
  width: 100%;
}
.proj-slider-arrows {
  display:none;
  position:absolute;
  top:50%; transform:translateY(-50%);
  width:100%; padding:0 14px;
  left:0;
  justify-content:space-between; pointer-events:none;
  z-index: 10;
  box-sizing:border-box;
}
.proj-entry.expanded .proj-slider-arrows {
  display:flex;
}
@media (max-width: 800px) {
  .proj-slider-arrows { padding: 0 8px; }
}
.s-arrow {
  width:32px; height:32px; background:rgba(255,255,255,0.75);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:18px; cursor:pointer; pointer-events:auto;
  transition:background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.s-arrow:hover { background:rgba(180,180,180,0.92); transform:scale(1.08); }

/* 하단 dot */
.proj-slider-dots { display:flex; gap:6px; margin-top:10px; }
.proj-slider-dot { width:5px; height:5px; border-radius:50%; background:var(--light); cursor:pointer; transition:background 0.3s; }
.proj-slider-dot.on { background:var(--black); }
