/* =========================================================
   HYEYA. — style.css
   기준 시안: 1671 × 941 (16:9). --u = 시안 1px 이 화면에서 차지하는 크기
   ========================================================= */

@font-face { font-family: 'Pretendard'; font-weight: 400; font-display: swap; src: url('fonts/Pretendard-Regular.subset.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 500; font-display: swap; src: url('fonts/Pretendard-Medium.subset.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 600; font-display: swap; src: url('fonts/Pretendard-SemiBold.subset.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 700; font-display: swap; src: url('fonts/Pretendard-Bold.subset.woff2') format('woff2'); }

:root {
  --bg: #000000;
  --fg: #FFFFFF;
  --dim: rgba(255, 255, 255, 0.45);
  --line: rgba(255, 255, 255, 0.22);
  --slot: #0d0d0d;

  --u: clamp(0.6px, calc(100vw / 1671), 1.15px);
  --pad: calc(48 * var(--u));          /* 좌우 여백 */
  --gap: calc(13 * var(--u));          /* 이미지 간격 */
  --radius: 0px;
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- Header ---------------- */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: calc(95 * var(--u));
  padding: 0 calc(67 * var(--u)) 0 calc(65 * var(--u));
}
.logo {
  justify-self: start;
  font-weight: 700;
  font-size: max(20px, calc(37 * var(--u)));
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav { display: flex; gap: calc(61 * var(--u)); }
.nav a {
  font-weight: 500;
  font-size: max(11px, calc(16 * var(--u)));
  letter-spacing: 0.05em;
  line-height: 1;
  transition: opacity .2s;
}
.nav a:hover { opacity: .55; }
.tagline {
  justify-self: end;
  margin: 0;
  padding: calc(4 * var(--u)) 0 calc(4 * var(--u)) calc(31 * var(--u));
  border-left: 1px solid var(--line);
  font-weight: 500;
  font-size: max(9px, calc(14 * var(--u)));
  letter-spacing: 0.08em;
  line-height: 1.22;
}

/* ---------------- Hero ---------------- */
.hero { padding: 0 var(--pad); }
.hero-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-images li {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a0a0a;
}
.hero-images img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: calc(27 * var(--u)) calc(20 * var(--u)) calc(52 * var(--u)) calc(17 * var(--u));
}
.eyebrow {
  margin: 0 0 calc(14 * var(--u));
  font-weight: 500;
  font-size: max(10px, calc(15 * var(--u)));
  letter-spacing: 0.062em;
  line-height: 1;
}
.headline {
  margin: 0;
  font-weight: 700;
  font-size: max(30px, calc(62 * var(--u)));
  letter-spacing: -0.025em;
  line-height: 0.9;
}
.scroll-cue {
  display: flex;
  align-items: center;
  gap: calc(32 * var(--u));
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  margin-bottom: calc(-6 * var(--u));
}
.scroll-cue .rule { width: calc(111 * var(--u)); height: 1px; background: rgba(255,255,255,.45); }
.scroll-cue .label {
  font-weight: 500;
  font-size: max(9px, calc(13.5 * var(--u)));
  letter-spacing: 0.075em;
}
.scroll-cue .circle {
  display: grid;
  place-items: center;
  width: max(40px, calc(58 * var(--u)));
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  transition: background .2s, color .2s;
}
.scroll-cue .circle svg { width: 36%; height: auto; }
.scroll-cue:hover .circle { background: var(--fg); color: var(--bg); }

/* ---------------- Sections common ---------------- */
.section { padding: calc(150 * var(--u)) var(--pad) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 calc(20 * var(--u)) calc(28 * var(--u)) calc(17 * var(--u));
  margin-bottom: calc(28 * var(--u));
  border-bottom: 1px solid var(--line);
}
.section-title {
  margin: 0;
  font-weight: 700;
  font-size: max(26px, calc(48 * var(--u)));
  letter-spacing: -0.02em;
  line-height: 1;
}
.section-meta {
  font-weight: 500;
  font-size: max(10px, calc(13.5 * var(--u)));
  letter-spacing: 0.075em;
  color: var(--dim);
}

/* ---------------- Works grid ---------------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: calc(32 * var(--u)) var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.works-page .works-grid { grid-template-columns: repeat(4, 1fr); }
.card { display: block; }
.card-thumb {
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--slot);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: opacity .3s; }
a.card:hover .card-thumb img { opacity: 1; }
.card-info {
  display: flex;
  gap: 10px;
  padding: 14px calc(4 * var(--u)) 0;
  font-size: max(11px, calc(13.5 * var(--u)));
  letter-spacing: 0.08em;
  line-height: 1.4;
}
.card-no { color: var(--dim); font-variant-numeric: tabular-nums; }
.card-title { font-weight: 600; }
.card-cat { display: block; color: var(--dim); font-weight: 400; letter-spacing: 0.04em; }
.card.is-slot .card-thumb {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.card.is-slot .slot-label { font-size: 11px; letter-spacing: 0.08em; color: rgba(255,255,255,.3); }
.card.is-slot .card-title { color: rgba(255,255,255,.3); font-weight: 500; }

.view-all-wrap { display: flex; justify-content: center; padding-top: calc(72 * var(--u)); }
.view-all {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 34px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  font-weight: 500;
  font-size: max(11px, calc(14 * var(--u)));
  letter-spacing: 0.07em;
  transition: background .2s, color .2s;
}
.view-all:hover { background: var(--fg); color: var(--bg); }

/* ---------------- About / Contact ---------------- */
.text-block {
  padding: 0 calc(17 * var(--u));
  max-width: 900px;
  font-size: max(14px, calc(17 * var(--u)));
  line-height: 1.75;
}
.is-empty { color: rgba(255,255,255,.3); }
.contact-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: calc(150 * var(--u));
  padding: 28px calc(var(--pad) + 17 * var(--u)) 36px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--dim);
}

/* ---------------- Project detail ---------------- */
.project { padding: calc(60 * var(--u)) var(--pad) 0; }
.back-link {
  display: inline-block;
  margin: 0 0 calc(48 * var(--u)) calc(17 * var(--u));
  font-size: max(11px, calc(13.5 * var(--u)));
  letter-spacing: 0.075em;
  color: var(--dim);
}
.back-link:hover { color: var(--fg); }
.project-head { padding: 0 calc(17 * var(--u)); }
.project-brand { margin: 0 0 14px; font-size: max(11px, calc(15 * var(--u))); letter-spacing: 0.07em; font-weight: 500; }
.project-title { margin: 0; font-weight: 700; font-size: max(34px, calc(84 * var(--u))); letter-spacing: -0.03em; line-height: 0.95; }
.project-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: calc(56 * var(--u)) 0 0;
  padding: calc(28 * var(--u)) calc(17 * var(--u));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.project-meta dt { margin-bottom: 8px; font-size: 11px; letter-spacing: 0.08em; color: var(--dim); }
.project-meta dd { margin: 0; font-size: max(13px, calc(16 * var(--u))); line-height: 1.6; }
.project-desc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(48 * var(--u));
  padding: calc(64 * var(--u)) calc(17 * var(--u));
}
.project-desc h2 { margin: 0 0 16px; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; color: var(--dim); }
.project-desc p { margin: 0; font-size: max(14px, calc(17 * var(--u))); line-height: 1.8; white-space: pre-line; word-break: keep-all; }
.gallery { display: grid; gap: var(--gap); max-width: 1000px; margin: 0 auto; padding: 0; list-style: none; }
.gallery li { border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: auto; }
.project-nav {
  display: flex;
  justify-content: space-between;
  padding: calc(56 * var(--u)) calc(17 * var(--u)) 0;
  font-size: max(11px, calc(13.5 * var(--u)));
  letter-spacing: 0.075em;
}
.project-nav a { color: var(--dim); }
.project-nav a:hover { color: var(--fg); }

/* =========================================================
   Tablet (≤1024)
   ========================================================= */
@media (max-width: 1024px) {
  .works-grid,
  .works-page .works-grid { grid-template-columns: repeat(3, 1fr); }
  .project-desc { grid-template-columns: 1fr; }
}

/* =========================================================
   Mobile (≤768) — 이미지가 작아지지 않도록 손으로 넘기는 가로 배치
   (자동 슬라이드 없음, 순서 1→2→3 고정)
   ========================================================= */
@media (max-width: 768px) {
  :root { --pad: 16px; --gap: 8px; --radius: 0px; }

  .site-header {
    grid-template-columns: auto 1fr;
    height: 64px;
    padding: 0 20px;
  }
  .nav { justify-self: end; gap: 22px; }
  .tagline { display: none; }

  .hero-images {
    display: flex;
    gap: var(--gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--pad));
    padding: 0 var(--pad);
    scroll-padding: 0 var(--pad);
  }
  .hero-images::-webkit-scrollbar { display: none; }
  .hero-images li { flex: 0 0 min(76%, calc((100svh - 300px) * 0.75)); min-width: 240px; scroll-snap-align: start; }

  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 24px 4px 40px;
  }
  .eyebrow { font-size: 10px; letter-spacing: 0.06em; margin-bottom: 10px; }
  .headline { font-size: min(10.4vw, 64px); white-space: nowrap; }
  .scroll-cue { align-self: stretch; justify-content: flex-end; gap: 16px; margin: 0; }
  .scroll-cue .rule { flex: 1; width: auto; }

  .section { padding-top: 88px; }
  .section-head { padding: 0 4px 20px; margin-bottom: 20px; }
  .works-grid,
  .works-page .works-grid { grid-template-columns: repeat(2, 1fr); gap: 28px var(--gap); }
  .card-info { padding: 12px 2px 0; font-size: 11px; }
  .view-all-wrap { padding-top: 48px; }
  .text-block, .project-head, .project-desc, .project-nav { padding-left: 4px; padding-right: 4px; }
  .back-link { margin: 0 0 32px 4px; }
  .project-meta { grid-template-columns: 1fr; gap: 18px; padding: 24px 4px; margin-top: 36px; }
  .project-desc { padding-top: 40px; padding-bottom: 40px; gap: 36px; }
  .site-footer { margin-top: 96px; padding: 24px 20px 32px; flex-direction: column; }
}

@media (max-width: 400px) {
  .nav { gap: 16px; }
  .nav a { font-size: 11px; letter-spacing: 0.05em; }
}

/* =========================================================
   v2 — SPA / 상세페이지 이어보기 / 관리자
   ========================================================= */
:root { color-scheme: dark; --paper: #ffffff; --ok: #9fe0b0; --warn: #ffb4a8; }
html, body { background: var(--bg); color: var(--fg); }
.view[hidden] { display: none !important; }
.works-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-thumb img { background: var(--slot); }
.view-head { padding: calc(60 * var(--u)) var(--pad) 0; }

/* ---- 상세: 메타 ---- */
.detail-top { padding: calc(56 * var(--u)) var(--pad) calc(48 * var(--u)); }
.detail-no { display: block; margin-bottom: 12px; font-size: max(11px, calc(14 * var(--u))); letter-spacing: 0.08em; color: var(--dim); font-variant-numeric: tabular-nums; }
.detail-title { margin: 0; font-weight: 700; font-size: max(32px, calc(76 * var(--u))); letter-spacing: -0.03em; line-height: 1; text-wrap: balance; word-break: keep-all; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px 40px; margin: calc(36 * var(--u)) 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.detail-meta div { display: flex; gap: 14px; align-items: baseline; }
.detail-meta dt { font-size: 11px; letter-spacing: 0.08em; color: var(--dim); }
.detail-meta dd { margin: 0; font-size: max(13px, calc(15 * var(--u))); }

/* ---- 상세: 이어 붙인 페이지 (스마트스토어처럼 간격 0) ---- */
.page-col { max-width: 860px; margin: 0 auto; background: var(--paper); }
.page-col > img, .page-col > video { display: block; width: 100%; height: auto; margin: 0; border: 0; }
.page-col > video { background: var(--paper); }
.extra { max-width: 1200px; margin: 0 auto; padding: calc(96 * var(--u)) var(--pad) 0; }
.extra-label { margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 500; letter-spacing: 0.09em; color: var(--dim); }
.extra-items { display: grid; gap: 12px; }
.extra-items.single { max-width: 640px; }
.extra-items.grid3 { grid-template-columns: repeat(3, 1fr); }
.extra-items.grid4 { grid-template-columns: repeat(4, 1fr); }
.extra-items img { width: 100%; height: auto; display: block; border-radius: 6px; }
.extra-items.stack-wide img { border-radius: 0; background: var(--paper); }
.detail-nav { display: flex; justify-content: space-between; gap: 16px; max-width: 1200px; margin: 0 auto; padding: calc(64 * var(--u)) var(--pad) 0; font-size: max(11px, calc(13.5 * var(--u))); letter-spacing: 0.075em; }
.detail-nav a { color: var(--dim); }
.detail-nav a:hover { color: var(--fg); }
.to-top { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: rgba(0,0,0,.6); color: var(--fg); cursor: pointer; display: grid; place-items: center; }
.to-top svg { width: 16px; }

/* ---- 푸터 관리자 링크 ---- */
.site-footer a { color: var(--dim); }
.site-footer a:hover { color: var(--fg); }
.admin-link { border: 0; background: none; padding: 0; color: var(--dim); font: inherit; letter-spacing: inherit; cursor: pointer; }

/* ---- 관리자 ---- */
.admin { max-width: 980px; margin: 0 auto; padding: calc(60 * var(--u)) var(--pad) 0; }
.admin-bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; justify-content: space-between; padding: 16px 0; margin-bottom: 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
.admin-status { font-size: 13px; color: var(--dim); }
.admin-status.dirty { color: var(--warn); }
.admin-status.ok { color: var(--ok); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.85); background: none; color: var(--fg); font: 500 13px var(--font); letter-spacing: .08em; cursor: pointer; }
.btn:hover:not(:disabled) { background: var(--fg); color: var(--bg); }
.btn.primary { background: var(--fg); color: var(--bg); }
.btn.primary:hover:not(:disabled) { opacity: .85; }
.btn:disabled { opacity: .35; cursor: default; }
.btn.small { padding: 7px 12px; font-size: 12px; }
.admin-help { margin: 14px 0 24px; font-size: 13px; line-height: 1.7; color: var(--dim); }
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.admin-row { display: grid; grid-template-columns: 34px 30px 72px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px 10px 8px; border: 1px solid var(--line); border-radius: 12px; background: #0b0b0b; touch-action: pan-y; }
.admin-row.dragging { opacity: .92; border-color: var(--fg); box-shadow: 0 12px 30px rgba(0,0,0,.6); position: relative; z-index: 3; }
.admin-row.drop-gap { border-style: dashed; }
.grip { width: 34px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--dim); cursor: grab; touch-action: none; }
.grip:active { cursor: grabbing; }
.grip svg { width: 14px; }
.admin-no { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; text-align: center; }
.admin-thumb { width: 72px; aspect-ratio: 9/16; border-radius: 6px; overflow: hidden; background: var(--slot); }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-fields { display: grid; gap: 6px; min-width: 0; }
.admin-fields label { font-size: 11px; letter-spacing: 0.07em; color: var(--dim); }
.admin-fields input[type=text] { width: 100%; min-width: 0; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: #000; color: var(--fg); font: 500 15px var(--font); }
.admin-fields input[type=text]:focus { outline: 1px solid var(--fg); border-color: var(--fg); }
.admin-sub { font-size: 12px; color: var(--dim); }
.admin-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.admin-move { display: flex; gap: 6px; }
.admin-move .btn { flex: 1; justify-content: center; padding: 6px 10px; }
.home-divider { list-style: none; margin: 6px 0; padding: 8px 4px; font-size: 11px; letter-spacing: 0.08em; color: var(--dim); border-top: 1px dashed var(--line); }
.notice { max-width: 640px; margin: 40px auto; padding: 0 var(--pad); line-height: 1.8; }
.notice h1 { font-size: 28px; margin: 0 0 12px; }
.notice p { color: var(--dim); margin: 0 0 20px; }

@media (max-width: 1024px) {
  .works-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .extra-items.grid4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .works-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .page-col { max-width: none; }
  .detail-top { padding: 32px 20px 28px; }
  .extra { padding: 64px 16px 0; }
  .extra-items.grid3, .extra-items.grid4 { grid-template-columns: repeat(2, 1fr); }
  .detail-nav { padding: 48px 20px 0; }
  .admin-row { grid-template-columns: 30px 56px minmax(0, 1fr); grid-template-areas: "grip thumb fields" "grip thumb actions"; gap: 8px 12px; }
  .admin-row .grip { grid-area: grip; }
  .admin-row .admin-no { display: none; }
  .admin-row .admin-thumb { grid-area: thumb; width: 56px; }
  .admin-row .admin-fields { grid-area: fields; }
  .admin-row .admin-actions { grid-area: actions; flex-direction: row; flex-wrap: wrap; }
}
.to-top[hidden] { display: none; }
.extra-items.col { max-width: 860px; margin: 0 auto; gap: 24px; }
.extra-items.col img { border-radius: 0; }

/* ---- v3: 상세페이지 구간 썸네일 ---- */
.card-thumb, .admin-thumb { container-type: inline-size; position: relative; }
.thumb-win { position: absolute; inset: 0; overflow: hidden; background: var(--paper); }
.thumb-region { position: absolute; left: 0; width: 100%; overflow: hidden; }
.card-thumb .thumb-region > img, .card-thumb .thumb-region > video,
.admin-thumb .thumb-region > img, .admin-thumb .thumb-region > video { position: absolute; left: 0; width: 100%; max-width: none; display: block; object-fit: fill; background: transparent; }
.card-thumb img.thumb-img, .admin-thumb img.thumb-img { width: 100%; height: 100%; object-fit: cover; }
a.card:hover .card-thumb .thumb-win { opacity: 1; }
.admin-actions .btn.small { justify-content: center; }

/* ---- 로그인 ---- */
.login-form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.login-form input { flex: 1 1 220px; min-width: 0; padding: 12px 14px; border-radius: 999px; border: 1px solid var(--line); background: #000; color: var(--fg); font: 500 15px var(--font); letter-spacing: .04em; }
.login-form input:focus { outline: 1px solid var(--fg); border-color: var(--fg); }
.login-err { min-height: 1.6em; color: var(--warn) !important; font-size: 14px; }

/* ---- 썸네일 구간 선택기 ---- */
html.no-scroll, html.no-scroll body { overflow: hidden; }
.cropper { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.82); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.cropper-panel { width: min(980px, 100%); height: min(860px, 100%); display: flex; flex-direction: column; background: #0b0b0b; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.cropper-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cropper-head h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: .02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cropper-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
.crop-pane { overflow-y: auto; overscroll-behavior: contain; background: #1a1a1a; padding: 20px 0; }
.crop-page { position: relative; width: min(340px, 100% - 40px); margin: 0 auto; background: var(--paper); }
.crop-page > img, .crop-page > video { display: block; width: 100%; height: auto; max-width: none; }
.crop-box { position: absolute; left: -6px; right: -6px; border: 2px solid #4da3ff; border-radius: 4px; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); cursor: grab; touch-action: none; }
.crop-box:active { cursor: grabbing; }
.crop-box:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.crop-box.short { border-style: dashed; }
.crop-handle { position: absolute; left: 50%; bottom: -9px; width: 46px; height: 16px; margin-left: -23px; border-radius: 8px; background: #4da3ff; cursor: ns-resize; touch-action: none; }
.crop-side { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-left: 1px solid var(--line); overflow-y: auto; }
.crop-preview { width: 170px; margin: 0 auto; }
.crop-preview .card-thumb { border-radius: 10px; }
.crop-info { margin: 0; font-size: 13px; line-height: 1.6; color: var(--fg); font-variant-numeric: tabular-nums; }
.crop-side .admin-help { margin: 0; }
.crop-actions { display: flex; gap: 8px; margin-top: auto; }
.crop-actions .btn { flex: 1; justify-content: center; }
@media (max-width: 768px) {
  .cropper-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .crop-side { border-left: 0; border-top: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; align-items: center; }
  .crop-preview { width: 84px; margin: 0; }
  .crop-side .admin-help { display: none; }
  .crop-info { flex: 1 1 140px; }
  .crop-actions { flex-basis: 100%; }
}
.thumb-win > video.thumb-media { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.admin-pair { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 8px; margin-top: 4px; }
.admin-pair > span { display: grid; gap: 6px; min-width: 0; }
.admin-fields select, .admin-pair input[type=text] { width: 100%; min-width: 0; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); background: #000; color: var(--fg); font: 500 14px var(--font); }
.admin-fields select:focus { outline: 1px solid var(--fg); border-color: var(--fg); }
@media (max-width: 768px) { .admin-pair { grid-template-columns: 1fr; } }
/* 와디즈 펀딩 표시 (와디즈 민트) */
.wadiz-badge { display: inline-flex; align-items: center; margin-left: 8px; padding: 3px 8px 3px; border-radius: 999px; background: #00c4c4; color: #000; font-size: 0.82em; font-weight: 700; letter-spacing: 0.04em; line-height: 1.2; vertical-align: 1px; white-space: nowrap; }
.card-info .card-title { display: inline-flex; align-items: center; flex-wrap: wrap; row-gap: 4px; }
.detail-meta .wadiz-badge { font-size: 11px; }
.admin-pair { grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto; align-items: end; }
.wadiz-check { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; border: 1px solid #00c4c4; color: #00c4c4; font-size: 13px; font-weight: 600; letter-spacing: 0 !important; cursor: pointer; white-space: nowrap; }
.wadiz-check input { accent-color: #00c4c4; width: 16px; height: 16px; margin: 0; }
@media (max-width: 768px) { .admin-pair { grid-template-columns: 1fr; } .wadiz-check { justify-self: start; } }
/* 관리자 선택 버튼 (드롭다운 대체) */
.chip-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.chip-label { flex-basis: 100%; font-size: 11px; letter-spacing: 0.07em; color: var(--dim); }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #000; color: rgba(255,255,255,.75); font: 500 13px var(--font); cursor: pointer; line-height: 1.2; }
.chip:hover { border-color: rgba(255,255,255,.6); color: var(--fg); }
.chip.on { background: var(--fg); border-color: var(--fg); color: var(--bg); font-weight: 600; }
.chip.wadiz { border-color: #00c4c4; color: #00c4c4; }
.chip.wadiz.on { background: #00c4c4; color: #000; }

/* 썸네일 속 영상: 브라우저가 영상 레이어를 정수 픽셀로 맞추면서 가장자리에 생기는 얇은 빈 줄 방지 — 좌우 1px 넘치게 */
.card-thumb .thumb-region > video, .admin-thumb .thumb-region > video { left: -1px; width: calc(100% + 2px); }
.thumb-win > video.thumb-media { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }

/* 메인 배너 3장: 직각 모서리 + 이미지 사이 여백 조금 넓게 */
.hero-images { gap: calc(28 * var(--u)); }
@media (max-width: 768px) { .hero-images { gap: 14px; } }
.crop-preview .card-thumb { border-radius: 0; }

/* ABOUT — 배너와 포트폴리오 사이 숨 쉬는 구간 */
.about-intro { padding-top: calc(190 * var(--u)); padding-bottom: calc(40 * var(--u)); padding-left: calc(var(--pad) + 17 * var(--u)); }
.about-label { margin: 0 0 calc(34 * var(--u)); font-weight: 500; font-size: max(11px, calc(13.5 * var(--u))); letter-spacing: 0.1em; color: var(--dim); }
.about-statement { margin: 0; max-width: 22em; font-weight: 600; font-size: max(22px, calc(44 * var(--u))); line-height: 1.5; letter-spacing: -0.025em; word-break: keep-all; }
.about-services { margin: calc(40 * var(--u)) 0 0; font-weight: 500; font-size: max(11px, calc(13.5 * var(--u))); letter-spacing: 0.075em; color: var(--dim); }
@media (max-width: 768px) { .about-intro { padding: 96px 20px 8px; } .about-statement { font-size: 18.5px; } .br-pc { display: none; } }

/* ---------------- CONTACT ---------------- */
.contact { padding-bottom: calc(60 * var(--u)); }
.contact-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: calc(48 * var(--u)); align-items: stretch; padding-left: calc(17 * var(--u)); }
.contact-intro { display: flex; flex-direction: column; }
.contact-title { margin: 0; font-weight: 700; font-size: max(40px, calc(84 * var(--u))); line-height: 1; letter-spacing: -0.03em; }
.contact-desc { margin: calc(30 * var(--u)) 0 0; font-size: max(15px, calc(19 * var(--u))); line-height: 1.7; color: rgba(255,255,255,.85); word-break: keep-all; }
.contact-mail { margin: auto 0 0; padding-top: calc(60 * var(--u)); display: grid; gap: 8px; }
.contact-mail span { font-size: max(11px, calc(13 * var(--u))); letter-spacing: 0.05em; color: var(--dim); }
.contact-mail a { color: var(--fg); text-decoration: none; font-weight: 600; font-size: max(17px, calc(24 * var(--u))); letter-spacing: -0.01em; }
.contact-mail a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-media { justify-self: end; width: 100%; max-width: calc(520 * var(--u)); aspect-ratio: 9 / 16; background: #0d0d0d; overflow: hidden; }
.contact-media video { width: 100%; height: 100%; object-fit: cover; display: block; }

.contact-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(48 * var(--u)); margin-top: calc(110 * var(--u)); padding: calc(56 * var(--u)) 0 0 calc(17 * var(--u)); border-top: 1px solid var(--line); }
.cf-label { display: block; margin-bottom: 10px; font-size: max(13px, calc(15 * var(--u))); font-weight: 500; color: rgba(255,255,255,.85); line-height: 1.45; }
.cf-label small { display: block; font-size: .85em; color: var(--dim); font-weight: 400; }
.cf-pkgs { margin: 0; padding: 0; border: 0; min-width: 0; }
.cf-pkgs legend { padding: 0; margin-bottom: 14px; }
.cf-pkgs ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 520px; }
.pkg { width: 100%; text-align: left; padding: 16px 18px; border: 1px solid var(--line); background: #111; color: var(--fg); font: 500 max(14px, calc(15.5 * var(--u))) var(--font); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.pkg:hover { border-color: rgba(255,255,255,.6); }
.pkg.is-wadiz { border-color: rgba(0,196,196,.55); }
.pkg[aria-pressed="true"] { background: var(--fg); color: #000; border-color: var(--fg); }
.pkg.is-wadiz[aria-pressed="true"] { background: #00c4c4; border-color: #00c4c4; }
.cf-fields { display: grid; gap: 22px; max-width: 520px; }
.cf-field input { width: 100%; padding: 15px 16px; border: 1px solid transparent; border-radius: 0; background: #141414; color: var(--fg); font: 500 15px var(--font); }
.cf-field input::placeholder { color: rgba(255,255,255,.35); }
.cf-field input:focus { outline: none; border-color: rgba(255,255,255,.7); }
.cf-field.is-bad input, .cf-agree.is-bad span { border-color: var(--warn); color: var(--warn); }
.cf-agree { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-weight: 600; font-size: max(15px, calc(18 * var(--u))); cursor: pointer; }
.cf-agree input { width: 18px; height: 18px; accent-color: #fff; margin: 0; }
.cf-note { margin: -10px 0 0; font-size: 12px; color: var(--dim); }
.cf-submit { justify-self: start; margin-top: 6px; padding: 14px 26px; }
.cf-msg { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ok); min-height: 1em; word-break: keep-all; }
.cf-msg.is-bad { color: var(--warn); }

@media (max-width: 768px) {
  .contact-top, .contact-form { grid-template-columns: 1fr; padding-left: 4px; padding-right: 4px; }
  .contact-media { justify-self: start; max-width: 72%; }
  .contact-mail { padding-top: 32px; }
  .contact-form { margin-top: 64px; padding-top: 36px; gap: 40px; }
}
.about-statement { font-weight: 400; }
.about-statement strong { font-weight: 700; }

/* ---------------- SELECTED WORKS 가로 레일 (홈) ---------------- */
#home-works.works-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: calc((100% - 4 * var(--gap)) / 5);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
#home-works.works-grid::-webkit-scrollbar { display: none; }
@media (max-width: 1024px) { #home-works.works-grid { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3.3); } }
@media (max-width: 768px) {
  #home-works.works-grid { grid-auto-columns: 42%; scroll-snap-type: x proximity; margin-right: calc(-1 * var(--pad)); padding-right: var(--pad); }
  #home-works.works-grid > li { scroll-snap-align: start; }
}

/* 문의하기 버튼 + 팝업 */
.contact-open { align-self: flex-start; margin-top: calc(40 * var(--u)); padding: calc(18 * var(--u)) calc(34 * var(--u)); min-height: 52px; border-radius: 14px; border: 0; background: var(--fg); color: #000; font-size: max(14px, calc(16 * var(--u))); font-weight: 600; letter-spacing: 0.02em; gap: 12px; transition: transform .2s, background .2s; }
.contact-open:hover { background: #d9d9d9; transform: translateY(-1px); }
.contact-dialog { width: min(1080px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #0a0a0a; color: var(--fg); overflow: auto; overscroll-behavior: contain; }
.contact-dialog::backdrop { background: rgba(0,0,0,.72); }
.contact-dialog[open] { animation: cf-in .28s ease-out; }
@keyframes cf-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.contact-dialog .contact-form { margin: 0; padding: 0 44px 44px; border: 0; gap: 48px; }
.cf-head { grid-column: 1 / -1; position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; margin: 0 -44px; padding: 26px 44px 20px; background: #0a0a0a; border-bottom: 1px solid var(--line); }
.cf-title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.cf-close { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--fg); cursor: pointer; }
.cf-close svg { width: 16px; height: 16px; }
.cf-close:hover { background: var(--fg); color: #000; }
html.cf-lock { overflow: hidden; }
@media (max-width: 768px) {
  .contact-open { width: 100%; justify-content: center; margin-top: 28px; }
  .contact-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
  .contact-dialog .contact-form { padding: 0 20px 40px; gap: 36px; }
  .cf-head { margin: 0 -20px; padding: 16px 20px; }
}

/* ---- 레일 v2: 부드러운 흐름 + 화살표 ---- */
.works-rail { position: relative; }
.works-rail.is-hover-mode { overflow: hidden; }
.works-rail.is-hover-mode #home-works.works-grid { overflow: visible; }
.rail-arrow { display: none; }
.works-rail.is-hover-mode .rail-arrow {
  display: grid; place-items: center; position: absolute; z-index: 3;
  top: calc((100% - 52px) / 2 - 24px); width: 52px; height: 52px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.75); background: rgba(0,0,0,.55); color: #fff;

  cursor: pointer; opacity: 0; transition: opacity .35s ease, background .2s, color .2s, transform .35s ease;
}
.works-rail.is-hover-mode .rail-arrow svg { width: 12px; height: 20px; }
.works-rail .rail-arrow.prev { left: 16px; transform: translateX(-6px); }
.works-rail .rail-arrow.next { right: 16px; transform: translateX(6px); }
.works-rail.is-hover-mode:hover .rail-arrow { opacity: 1; transform: none; }
.works-rail.is-hover-mode:hover .rail-arrow.is-off { opacity: 0; pointer-events: none; }
.works-rail .rail-arrow:hover { background: #fff; color: #000; }

/* 썸네일 마우스 오버: 색이 빠지지 않고 살짝 어두운 블랙톤으로 */
.card-thumb::after { content: ""; position: absolute; inset: 0; z-index: 2; background: #000; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
a.card:hover .card-thumb::after, a.card:focus-visible .card-thumb::after { opacity: .28; }

/* 문의 폼: 제품 카테고리 */
.cf-left { display: grid; gap: 36px; align-content: start; min-width: 0; }
.cf-cats { margin: 0; padding: 0; border: 0; min-width: 0; }
.cf-cats legend { padding: 0; margin-bottom: 14px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 520px; }
.cat-chip { position: relative; cursor: pointer; }
.cat-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cat-chip span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #111; font-size: 14px; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.cat-chip:hover span { border-color: rgba(255,255,255,.6); }
.cat-chip input:checked + span { background: var(--fg); color: #000; border-color: var(--fg); }
.cat-chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.cf-other { margin-top: 12px; max-width: 520px; }
.cf-other[hidden] { display: none; }
.cf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-submit:disabled { opacity: .5; cursor: wait; }

/* 관리자: 문의 */
.admin-inq { margin-top: 72px; }
.inq-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.inq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.inq-item { border: 1px solid var(--line); border-radius: 12px; background: #0b0b0b; padding: 18px 20px; }
.inq-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; font-size: 17px; }
.inq-state { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: rgba(255,255,255,.75); }
.inq-state.is-new { background: #fff; color: #000; border-color: #fff; font-weight: 700; }
.inq-date { margin-left: auto; font-size: 13px; color: var(--dim); }
.inq-item dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 14px; line-height: 1.5; }
.inq-item dt { color: var(--dim); }
.inq-item dd { margin: 0; word-break: break-all; }
.inq-item a { color: var(--fg); }
@media (max-width: 768px) { .inq-item dl { grid-template-columns: 1fr; gap: 2px; } .inq-item dd { margin-bottom: 8px; } }
.cf-fallback { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.cf-fallback .btn { color: var(--fg); text-decoration: none; padding: 10px 18px; }
.cf-msg span:first-child { color: rgba(255,255,255,.85); }

/* 영상: 16배수로 늘려 인코딩한 가장자리는 잘라내고 원래 크기만 보이게 */
.vbox { position: relative; overflow: hidden; display: block; width: 100%; background: var(--paper); }
.vbox > video { position: absolute; left: 0; top: 0; display: block; max-width: none; object-fit: fill; margin: 0; border: 0; }
.page-col > .vbox { margin: 0; }
.crop-page > .vbox > video { max-width: none; }

.cf-field textarea { width: 100%; min-height: 120px; padding: 14px 16px; border: 1px solid transparent; border-radius: 0; background: #141414; color: var(--fg); font: 500 15px/1.6 var(--font); resize: vertical; }
.cf-field textarea::placeholder { color: rgba(255,255,255,.35); }
.cf-field textarea:focus { outline: none; border-color: rgba(255,255,255,.7); }
.inq-item dd { white-space: pre-wrap; }

/* =========================================================
   모바일 최적화 (≤768) — PC 화면은 그대로
   ========================================================= */
main { overflow-x: clip; }
@media (max-width: 768px) {
  /* 홈 포트폴리오: 2×2, 4개만 (나머지는 VIEW ALL 에서) */
  #home-works.works-grid {
    grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto;
    overflow: visible; margin-right: 0; padding-right: 0; scroll-snap-type: none; gap: 26px 10px; transform: none !important;
  }
  #home-works.works-grid > li:nth-child(n+5) { display: none; }
  .works-rail .rail-arrow { display: none !important; }

  /* 전체 보기: 한 줄 3개 */
  #all-works-grid.works-grid, .works-grid.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 8px; }
  #all-works-grid .card-info { padding: 8px 1px 0; font-size: 10px; line-height: 1.4; display: block; }
  #all-works-grid .card-no { display: none; }
  #all-works-grid .card-cat { font-size: 9.5px; letter-spacing: 0; word-break: keep-all; }
  #all-works-grid .wadiz-badge { margin-left: 4px; padding: 2px 5px; font-size: 8.5px; }

  /* CONTACT: 제목 → 설명 → 문의하기 → 영상 → 이메일 */
  .contact-top { display: flex; flex-direction: column; gap: 0; padding: 0 4px; }
  .contact-intro { display: contents; }
  .contact-intro > .about-label { order: 1; margin-bottom: 18px; }
  .contact-title { order: 2; font-size: 44px; }
  .contact-desc { order: 3; margin-top: 18px; font-size: 15px; }
  .contact-open { order: 4; width: 100%; justify-content: center; margin-top: 26px; min-height: 54px; }
  .contact-media { order: 5; justify-self: auto; width: 100%; max-width: none; aspect-ratio: 4 / 5; margin-top: 36px; }
  .contact-mail { order: 6; margin: 0; padding-top: 28px; }
  .contact { padding-bottom: 24px; }

  /* 문의 팝업 */
  .cat-chip span { padding: 9px 14px; font-size: 13px; }
  .pkg { padding: 15px 16px; font-size: 14px; }
  .cf-submit { width: 100%; justify-content: center; }
}

/* ---- 모바일 v2 ---- */
@media (max-width: 768px) {
  /* 배너: 3장 모두 한 화면에 나란히 */
  .hero-images { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; overflow: visible; margin: 0; padding: 0; scroll-snap-type: none; }
  .hero-images li { flex: none; min-width: 0; width: auto; }

  /* 홈 포트폴리오: 4개를 가로로 이어서 (손가락으로 밀기 + 화살표) */
  #home-works.works-grid {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 46%;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    gap: 10px; margin-right: 0; padding-right: 0; scrollbar-width: none;
  }
  #home-works.works-grid > li { scroll-snap-align: start; }
  #home-works.works-grid > li:nth-child(n+5) { display: none; }
  .works-rail .rail-arrow.m-arrow {
    display: grid !important; place-items: center; position: absolute; z-index: 3;
    top: 30%;
    width: 40px; height: 40px; padding: 0; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.8); background: rgba(0,0,0,.55); color: #fff;
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
  }
  .works-rail .rail-arrow.m-arrow svg { width: 10px; height: 16px; }
  .works-rail .rail-arrow.prev.m-arrow { left: 6px; }
  .works-rail .rail-arrow.next.m-arrow { right: 6px; }
  .works-rail.is-touched .rail-arrow.m-arrow { opacity: 1; pointer-events: auto; }
  .works-rail.is-touched .rail-arrow.m-arrow.is-off { opacity: 0; pointer-events: none; }
  #selected .view-all-wrap { padding-top: 28px; }

  /* CONTACT 문의하기: 흰 글씨 + 얇은 흰 선 */
  .contact-open { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.9); }
  .contact-open:hover, .contact-open:active { background: rgba(255,255,255,.08); transform: none; }

  /* 상세페이지 프로젝트명 50% */
  .detail-title { font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; }
}

/* ---- 모바일 v3 ---- */
@media (max-width: 768px) {
  /* 홈 포트폴리오: 2개가 한 화면, 2초마다 자동으로 다음 2개 */
  #home-works.works-grid { grid-auto-columns: calc((100% - 10px) / 2); }
  #home-works.works-grid > li:nth-child(odd) { scroll-snap-align: start; }
  #home-works.works-grid > li:nth-child(even) { scroll-snap-align: none; }
  .works-rail .rail-arrow, .works-rail .rail-arrow.m-arrow { display: none !important; }

  /* 전체 보기: 한 줄 2개 */
  #all-works-grid.works-grid, .works-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 10px; }
  #all-works-grid .card-info { padding: 10px 2px 0; font-size: 11px; display: flex; gap: 8px; }
  #all-works-grid .card-no { display: inline; }
  #all-works-grid .card-cat { font-size: 11px; letter-spacing: 0.04em; }
  #all-works-grid .wadiz-badge { margin-left: 6px; padding: 3px 7px; font-size: 0.82em; }
}

/* 렉 방지: 화살표 뒤 흐림 효과 제거 (영상 위에서 매 프레임 계산돼 무거움) */
.rail-arrow { background: rgba(0,0,0,.7) !important; }

/* ---- 모바일 v4: 전체 프로젝트를 2개씩 짝지어 손으로 넘기기 (자동 넘김 없음) ---- */
.rail-pad { display: none; }
@media (max-width: 768px) {
  #home-works.works-grid > li:nth-child(n+5) { display: list-item; }
  #home-works.works-grid > li.rail-pad { display: block; }
}

/* 미리 구운 썸네일: 포스터 이미지 위에 가벼운 영상 */
.thumb-bake { background: #0d0d0d; }
.thumb-bake > img, .thumb-bake > video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; display: block; }

/* =========================================================
   모바일 첫 화면: 배너 1장 꽉 찬 화면 + 이미지 위 텍스트 (황금비 배치)
   ========================================================= */
.hero-m { display: none; }
@media (max-width: 768px) {
  body.is-home .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 6; background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0)); }
  .hero { position: relative; padding: 0; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
  .hero-images { display: block !important; height: 100%; margin: 0; padding: 0; gap: 0; }
  .hero-images li { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
  .hero-images li:not(:first-child) { display: none; }
  .hero-images img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
  .hero-foot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }

  .hero-m { display: block; position: absolute; inset: 0; z-index: 4; pointer-events: none; }
  .hm { position: absolute; color: #fff; font-weight: 600; letter-spacing: 0.07em; font-size: 12px; line-height: 1; padding: 7px 9px; background: rgba(0,0,0,.42); white-space: nowrap; }
  /* 세로 위치: 38.2% · 61.8% 황금비 기준, 가로: 좌 8% / 우 8% */
  .hm-title { top: 30.9%; right: 8%; font-size: 17px; letter-spacing: -0.005em; font-weight: 700; padding: 8px 10px; }
  .hm-brand { top: 38.2%; right: 8%; }
  .hm-visual { top: 47.2%; left: 7%; }
  .hm-direction { top: calc(47.2% + 30px); left: calc(7% + 22px); }
  .hm-design { top: 52.8%; right: 18%; }
  .hm-scroll { pointer-events: auto; position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 12px; border: 0; background: none; color: rgba(255,255,255,.85); font: 600 9px var(--font); letter-spacing: .3em; cursor: pointer; }
  .hm-scroll i { display: block; width: 1px; height: 26px; background: linear-gradient(to bottom, rgba(255,255,255,.9), rgba(255,255,255,0)); animation: hm-drip 1.8s ease-in-out infinite; transform-origin: top; }
  @keyframes hm-drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
  .about-intro { padding-top: 72px; }
}
@media (max-width: 768px) and (prefers-reduced-motion: reduce) { .hm-scroll i { animation: none; } }

/* ---- 모바일 첫 화면 v2: 보내주신 레이아웃 비율 그대로 + 순서대로 서서히 나타남 ---- */
@media (max-width: 768px) {
  .hm { background: none; padding: 0; text-shadow: 0 1px 10px rgba(0,0,0,.35); font-size: 12px; letter-spacing: 0.07em; }
  .hm-title  { top: 35%;   left: 49.5%; right: auto; font-size: 16px; font-weight: 700; letter-spacing: -0.005em; padding: 0; }
  .hm-brand  { top: 44.8%; left: 63%;   right: auto; }
  .hm-visual { top: 51.6%; left: 7.5%; }
  .hm-direction { top: 56.7%; left: 11.9%; }
  .hm-design { top: 55.3%; left: 69.6%; right: auto; }
  /* 비주얼 디렉션 → 디자인 → 브랜드 스트레티지 순서로 투명도 0→100 */
  .hm-visual, .hm-direction, .hm-design, .hm-brand { opacity: 0; animation: hm-fade 1.1s ease forwards; }
  .hm-visual, .hm-direction { animation-delay: .4s; }
  .hm-design { animation-delay: 1.3s; }
  .hm-brand { animation-delay: 2.2s; }
  @keyframes hm-fade { from { opacity: 0; } to { opacity: 1; } }
}
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .hm-visual, .hm-direction, .hm-design, .hm-brand { animation: none; opacity: 1; }
}

/* ---- 모바일 첫 화면 v3: 두 번째 레이아웃 (제품과 거리 두기, 크기·배치 동일) ---- */
@media (max-width: 768px) {
  .hm { text-shadow: none; font-weight: 600; font-size: 10px; letter-spacing: 0.06em; }
  .hm-visual    { top: 48.2%; left: 7.2%; }
  .hm-direction { top: 53.5%; left: 10.9%; }
  .hm-title     { top: 50.1%; left: 64.9%; font-size: 14px; font-weight: 700; letter-spacing: -0.005em; }
  .hm-brand     { top: 82%;   left: 57.2%; font-size: 11px; letter-spacing: 0.07em; }
  .hm-design    { top: 93.4%; left: 78.7%; font-size: 11px; letter-spacing: 0.07em; }
  .hm-scroll    { left: 7.2%; transform: none; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); align-items: flex-start; padding: 6px 0; }
}

/* ---- 모바일 첫 화면 v4: 이미지를 화면 폭에 맞춰 아래에 두고(위는 이미지와 같은 남색-검정으로 이어짐),
        텍스트는 이미지 기준 좌표로 → 어떤 폰에서도 보내주신 레이아웃과 같은 구도 ---- */
@media (max-width: 768px) {
  .hero { background: #01030a; }
  .hero-images li:first-child { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; aspect-ratio: 3 / 4; max-height: 100%; }
  .hero-images li:first-child::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18%; background: linear-gradient(#01030a, rgba(1,3,10,0)); pointer-events: none; }
  .hero-images img { object-position: 50% 100%; }
  .hero-m { inset: auto 0 0 0; width: 100%; aspect-ratio: 3 / 4; max-height: 100%; }
  .hm-scroll { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}

/* ---- 모바일 첫 화면 v5: 세 번째 레이아웃 좌표 ---- */
@media (max-width: 768px) {
  .hm-title     { top: 32.6%; left: 55.6%; }
  .hm-visual    { top: 47.4%; left: 7.4%; }
  .hm-direction { top: 52.8%; left: 10.6%; }
  .hm-brand     { top: 81.4%; left: 57.2%; }
  .hm-design    { top: 93.4%; left: 78.7%; }
}

/* PORTFOLIO 소제목: 마우스 올리면 한국어로 부드럽게 바뀜 */
.title-stack { display: flex; flex-direction: column; gap: max(8px, calc(12 * var(--u))); }
.section-sub { margin: 0; font-weight: 400; font-size: max(13px, calc(17 * var(--u))); letter-spacing: 0.01em; color: rgba(255,255,255,.72); line-height: 1.3; }
.swap-sub { display: inline-grid; justify-self: start; align-self: flex-start; cursor: default; outline: none; }
.swap-sub > span { grid-area: 1 / 1; transition: opacity .45s ease, filter .45s ease, letter-spacing .45s ease; }
.swap-sub .ko { opacity: 0; filter: blur(4px); letter-spacing: 0.08em; }
.section:hover .swap-sub .en, .swap-sub:focus .en, .swap-sub.is-ko .en { opacity: 0; filter: blur(4px); letter-spacing: 0.06em; }
.section:hover .swap-sub .ko, .swap-sub:focus .ko, .swap-sub.is-ko .ko { opacity: 1; filter: none; letter-spacing: 0.01em; }
@media (hover: none) { .section:hover .swap-sub .en { opacity: 1; filter: none; letter-spacing: 0.01em; } .section:hover .swap-sub .ko { opacity: 0; filter: blur(4px); } .swap-sub.is-ko .en { opacity: 0; } .swap-sub.is-ko .ko { opacity: 1; filter: none; } }
@media (prefers-reduced-motion: reduce) { .swap-sub > span { transition: none; } }

/* 문의 폼: 레퍼런스 파일 첨부 */
.cf-files { display: grid; gap: 0; }
.cf-file-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; justify-self: start; padding: 12px 20px; border: 1px solid rgba(255,255,255,.6); color: #fff; font: 500 14px var(--font); cursor: pointer; }
.cf-file-btn:hover { background: rgba(255,255,255,.08); }
.cf-file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.cf-file-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.cf-file-list:empty { display: none; }
.cf-file-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; background: #141414; font-size: 13px; color: rgba(255,255,255,.85); }
.cf-file-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-file-list button { flex: none; border: 0; background: none; color: rgba(255,255,255,.6); font: 500 12px var(--font); cursor: pointer; text-decoration: underline; }
.inq-item dd a { word-break: break-all; }

/* footer business info */
.site-footer { flex-direction: column; gap: 14px; }
.site-footer .foot-row { display: flex; justify-content: space-between; gap: 16px; }
.site-footer .foot-biz { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; letter-spacing: 0.04em; line-height: 1.6; }
.site-footer .foot-biz > span + span::before { content: "|"; margin: 0 10px; opacity: .45; }
@media (max-width: 768px) {
  .site-footer .foot-row { flex-direction: column; gap: 6px; }
  .site-footer .foot-biz { flex-direction: column; gap: 2px; }
  .site-footer .foot-biz > span + span::before { content: none; }
}

/* ALL PROJECTS · What We Do */
.wwd { display: grid; grid-template-columns: 1.35fr 1fr; margin: calc(-28 * var(--u)) 0 calc(56 * var(--u)); border-bottom: 1px solid var(--line); }
.wwd-col { padding: calc(56 * var(--u)) calc(20 * var(--u)) calc(60 * var(--u)) calc(17 * var(--u)); }
.wwd-partner { border-left: 1px solid var(--line); padding-left: calc(56 * var(--u)); }
.wwd-eyebrow { margin: 0 0 calc(26 * var(--u)); font-size: max(11px, calc(13 * var(--u))); font-weight: 600; letter-spacing: 0.08em; color: var(--dim); }
.wwd-lead { margin: 0 0 calc(18 * var(--u)); font-size: max(19px, calc(27 * var(--u))); font-weight: 400; line-height: 1.5; letter-spacing: -0.02em; color: rgba(255,255,255,.82); word-break: keep-all; }
.wwd-body { margin: 0; font-size: max(14px, calc(16.5 * var(--u))); font-weight: 400; line-height: 1.85; letter-spacing: -0.01em; color: rgba(255,255,255,.6); word-break: keep-all; }
.wwd b { font-weight: 700; color: #fff; }
.wwd-steps { list-style: none; display: flex; gap: calc(10 * var(--u)); margin: calc(34 * var(--u)) 0 0; padding: 0; }
.wwd-steps li { display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border: 1px solid var(--line); font-size: max(12px, calc(14 * var(--u))); font-weight: 600; letter-spacing: 0.02em; }
.wwd-steps span { font-size: 10px; font-weight: 500; letter-spacing: 0.05em; color: var(--dim); }
@media (max-width: 768px) {
  .wwd { grid-template-columns: 1fr; margin: -20px 0 28px; }
  .wwd-col { padding: 28px 4px 30px; }
  .wwd-partner { border-left: 0; border-top: 1px solid var(--line); padding-left: 4px; }
  .wwd-eyebrow { margin-bottom: 14px; font-size: 10px; }
  .wwd-lead { font-size: 17px; margin-bottom: 12px; }
  .wwd-body { font-size: 13px; line-height: 1.8; }
  .wwd-body br, .wwd-lead br { display: none; }
  .wwd-steps { margin-top: 20px; gap: 6px; }
  .wwd-steps li { padding: 7px 11px 7px 9px; font-size: 12px; gap: 7px; }
}

.wwd-main .wwd-eyebrow { margin-bottom: calc(16 * var(--u)); }
.wwd-steps { margin: 0 0 calc(30 * var(--u)); }
.wwd-lead, .wwd-body { font-weight: 500; }
.wwd-body { color: rgba(255,255,255,.68); }
@media (max-width: 768px) { .wwd-main .wwd-eyebrow { margin-bottom: 12px; } .wwd-steps { margin: 0 0 18px; } }

.wwd-partner .wwd-eyebrow { margin-bottom: calc(16 * var(--u)); }
.wwd-ghost { visibility: hidden; }
@media (max-width: 768px) { .wwd-ghost { display: none; } .wwd-partner .wwd-eyebrow { margin-bottom: 14px; } }

/* WHAT WE DO tag sequence */
.wwd-steps li { transition: none; }
.wwd-main .wwd-steps li { animation: 4s ease infinite both; }
.wwd-main .wwd-steps li:nth-child(1) { animation-name: wwdF1; }
.wwd-main .wwd-steps li:nth-child(2) { animation-name: wwdF2; }
.wwd-main .wwd-steps li:nth-child(3) { animation-name: wwdF3; }
@keyframes wwdF1 { 0%{background:transparent;color:#fff;border-color:var(--line)} 6%,86%{background:#fff;color:#000;border-color:#fff} 94%,100%{background:transparent;color:#fff;border-color:var(--line)} }
@keyframes wwdF2 { 0%,25%{background:transparent;color:#fff;border-color:var(--line)} 31%,86%{background:#fff;color:#000;border-color:#fff} 94%,100%{background:transparent;color:#fff;border-color:var(--line)} }
@keyframes wwdF3 { 0%,50%{background:transparent;color:#fff;border-color:var(--line)} 56%,86%{background:#fff;color:#000;border-color:#fff} 94%,100%{background:transparent;color:#fff;border-color:var(--line)} }
.wwd-main .wwd-steps li span { color: inherit; opacity: .55; }
@media (prefers-reduced-motion: reduce) { .wwd-main .wwd-steps li { animation: none; } }
/* Wadiz partner badge */
.wwd-badge { display: inline-block; padding: 7px 14px 6px; border-radius: 999px; background: #00C4C4; color: #fff; font-weight: 700; }
.wwd-badge { margin: -8px 0 -7px; vertical-align: middle; }

/* spacing +10% */
.wwd-steps { margin-bottom: calc(33 * var(--u)); }
.wwd-lead { margin-bottom: calc(19.8 * var(--u)); }
.wwd-dots { display: none; }
/* mobile: WHAT WE DO slider */
@media (max-width: 768px) {
  .wwd { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-bottom: 0; border-bottom: 0; }
  .wwd::-webkit-scrollbar { display: none; }
  .wwd-col { flex: 0 0 100%; scroll-snap-align: start; box-sizing: border-box; }
  .wwd-partner { border-top: 0; }
  .wwd-steps { margin-bottom: 20px; }
  .wwd-lead { margin-bottom: 13px; }
  .wwd-main .wwd-steps li { animation: none; background: transparent; color: #fff; border-color: var(--line); }
  .wwd-dots { display: flex; justify-content: center; gap: 6px; padding: 4px 0 22px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
  .wwd-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.25); transition: background .3s, width .3s; }
  .wwd-dots i.on { width: 16px; border-radius: 3px; background: #fff; }
}

/* floating CONTACT US (detail pages, after 5s) */
.float-cta { position: fixed; z-index: 40; right: calc(78px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); height: 48px; display: flex; align-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; background: rgba(0,0,0,.72); color: #fff;
  opacity: 0; filter: blur(8px); clip-path: inset(0 0 0 100% round 999px); pointer-events: none;
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), filter 1.1s cubic-bezier(.2,.7,.2,1), clip-path 1.2s cubic-bezier(.65,0,.25,1); }
.float-cta[hidden] { display: none; }
.float-cta.is-on { opacity: 1; filter: none; clip-path: inset(0 0 0 0 round 999px); pointer-events: auto; }
.fc-main { display: flex; align-items: center; gap: 10px; height: 100%; padding: 0 6px 0 20px; border: 0; background: none; color: inherit; font: 600 12px var(--font); letter-spacing: .08em; cursor: pointer; }
.fc-txt { transition: letter-spacing 1.4s cubic-bezier(.2,.7,.2,1); letter-spacing: .3em; }
.float-cta.is-on .fc-txt { letter-spacing: .08em; }
.fc-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: fcPulse 2.4s ease-in-out infinite; }
@keyframes fcPulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.fc-x { width: 36px; height: 100%; display: grid; place-items: center; padding: 0 14px 0 6px; border: 0; background: none; color: rgba(255,255,255,.5); cursor: pointer; }
.fc-x svg { width: 9px; height: 9px; }
.fc-x:hover { color: #fff; }
.float-cta:hover { background: #fff; color: #000; border-color: #fff; }
.float-cta:hover .fc-dot { background: #000; }
.float-cta:hover .fc-x { color: rgba(0,0,0,.5); }
@media (max-width: 768px) {
  .float-cta { height: 40px; right: calc(76px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .fc-main { font-size: 11px; padding-left: 16px; gap: 8px; }
  .fc-x { padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) { .float-cta, .fc-txt { transition: opacity .3s; } .fc-dot { animation: none; } }

.fc-main { font-size: 13px; font-weight: 600; }
.fc-txt { letter-spacing: 0.07em; }
.float-cta.is-on .fc-txt { letter-spacing: -.01em; }
@media (max-width: 768px) { .fc-main { font-size: 12px; } }

/* segmented: 포트폴리오 더보기 | 프로젝트 문의하기 × */
.fc-more { display: flex; align-items: center; height: 100%; padding: 0 16px 0 20px; color: rgba(255,255,255,.75); font: 500 13px var(--font); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transition: color .3s; }
.fc-sep { width: 1px; height: 14px; background: rgba(255,255,255,.3); }
.fc-main { padding-left: 16px; white-space: nowrap; }
.float-cta:hover { background: rgba(0,0,0,.72); color: #fff; border-color: rgba(255,255,255,.7); }
.float-cta:hover .fc-dot { background: #fff; }
.float-cta:hover .fc-x { color: rgba(255,255,255,.5); }
.fc-more:hover { color: #fff; }
.fc-main .fc-txt { transition: letter-spacing 1.4s cubic-bezier(.2,.7,.2,1), opacity .3s; }
@media (hover: hover) { .float-cta:hover .fc-main:not(:hover) .fc-txt { opacity: .9; } .fc-main:hover .fc-txt { text-decoration: underline; text-underline-offset: 4px; } .fc-more:hover { text-decoration: underline; text-underline-offset: 4px; } }
.fc-x:hover { color: #fff !important; }
@media (max-width: 768px) {
  .float-cta { right: calc(68px + env(safe-area-inset-right, 0px)); }
  .fc-more { font-size: 12px; padding: 0 12px 0 14px; }
  .fc-main { padding-left: 12px; gap: 7px; }
  .fc-x { width: 30px; padding: 0 10px 0 4px; }
}
@media (max-width: 360px) { .fc-dot { display: none; } }

/* float buttons: EN default, KO on hover (PC) / KO always (mobile) */
.fc-sw { display: inline-grid; }
.fc-sw > span { grid-area: 1 / 1; text-align: center; transition: opacity .35s ease, filter .35s ease; }
.fc-sw .en { opacity: 0; }
.fc-sw .ko { opacity: 1; }
@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
  .fc-sw .en { opacity: 1; letter-spacing: .06em; font-size: 12px; }
  .fc-sw .ko { opacity: 0; filter: blur(3px); }
  .fc-more:hover .fc-sw .en, .fc-main:hover .fc-sw .en { opacity: 0; filter: blur(3px); }
  .fc-more:hover .fc-sw .ko, .fc-main:hover .fc-sw .ko { opacity: 1; filter: none; }
  .fc-main:hover .fc-txt, .fc-more:hover { text-decoration: none; }
}

/* WADIZ 펀딩 성과 박스 (벨라·카티·필즈) */
.fund { max-width: 1100px; margin: calc(44 * var(--u)) auto calc(56 * var(--u)); padding: 28px; border: 1px solid var(--line); display: grid; grid-template-columns: 1.12fr 1fr; gap: 40px; align-items: stretch; }
.fund-img { aspect-ratio: 860 / 500; overflow: hidden; background: #111; }
.fund-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fund-info { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 4px 0; }
.fund-maker { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.75); }
.fund-maker em { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 9px; border: 1px solid rgba(255,255,255,.3); color: #fff; }
.fund-title { margin: 14px 0 0; font-size: clamp(20px, 1.9vw, 27px); font-weight: 700; line-height: 1.4; letter-spacing: -.02em; word-break: keep-all; }
.fund-desc { margin: 12px 0 0; font-size: 14px; font-weight: 500; line-height: 1.7; color: rgba(255,255,255,.62); word-break: keep-all; }
.fund-nums { margin-top: 22px; }
.fund-nums p { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.fund-rate b { font-size: clamp(28px, 2.6vw, 38px); font-weight: 700; color: #00C4C4; letter-spacing: -.01em; line-height: 1.1; }
.fund-rate span { font-size: 15px; font-weight: 600; color: #00C4C4; }
.fund-rate i { font-style: normal; align-self: center; font-size: 12px; font-weight: 700; padding: 3px 8px; background: #00C4C4; color: #fff; }
.fund-amount { margin-top: 6px !important; }
.fund-amount b { font-size: clamp(38px, 3.9vw, 58px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.fund-amount span { font-size: 17px; font-weight: 600; color: rgba(255,255,255,.85); }
.fund-people { margin-top: 12px !important; display: inline-flex !important; font-size: 14px; font-weight: 600; padding: 5px 11px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
@media (max-width: 768px) {
  .fund { grid-template-columns: 1fr; gap: 20px; padding: 16px; margin: 24px 16px 32px; }
  .fund-maker { font-size: 13px; }
  .fund-title { font-size: 18px; margin-top: 10px; }
  .fund-desc { font-size: 13px; }
  .fund-nums { margin-top: 16px; }
  .fund-rate b { font-size: 26px; } .fund-rate span { font-size: 13px; }
  .fund-amount b { font-size: 36px; } .fund-amount span { font-size: 14px; }
  .fund-people { font-size: 12px; }
}
.fund { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
.fund-img { aspect-ratio: auto; position: relative; }
.fund-img::before { content: ""; display: block; padding-top: 58.14%; }
.fund-img img { position: absolute; inset: 0; }

.fund-img::before { padding-top: var(--ar, 58.14%); }
.fund-img img, .fund-img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 768px) {
  /* 모바일: 사진 원본 비율 그대로(안 잘림) + 아래에 텍스트 */
  .fund-img { position: relative; }
  .fund-img::before { padding-top: var(--ar, 58.14%); }
  .fund-img img, .fund-img video { object-fit: contain; background: #000; }
}
@media (max-width: 768px) { .fund { grid-template-columns: minmax(0, 1fr); } }

/* WHAT WE DO 모바일 줄바꿈 / 간격 */
.wwd-m { display: none; }
@media (max-width: 768px) {
  .wwd-pc { display: none; }
  .wwd-m { display: block; }
  .wwd .wwd-lead br, .wwd .wwd-body br { display: inline; }
  .wwd-m .wwd-last { margin-top: 14px; }
  .wwd-partner .wwd-eyebrow { margin-bottom: 26px; }
}
/* 모바일: PORTFOLIO 부제는 항상 한국어 */
@media (max-width: 768px) {
  .section .swap-sub .en, .section:hover .swap-sub .en, .swap-sub.is-ko .en { opacity: 0 !important; }
  .section .swap-sub .ko, .section:hover .swap-sub .ko { opacity: 1 !important; filter: none !important; letter-spacing: 0.01em; }
}
/* 모바일 CONTACT 영상: 병 아래쪽까지 보이게 확대 크롭 (원본 720x1280 중 x82~617, y320~1190) */
@media (max-width: 768px) {
  .contact-media { position: relative; aspect-ratio: 535 / 870; }
  .contact-media video { position: absolute; width: 134.58%; height: 147.13%; left: -15.33%; top: -36.78%; max-width: none; object-fit: fill; }
}
/* PC 화면 축소(Ctrl -)할수록 ALL PROJECTS 한 줄 개수 늘리기: 기본 4 → 5 → 6 → 7 → 8 */
@media (min-width: 2050px) { #all-works-grid.works-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 2350px) { #all-works-grid.works-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 2750px) { #all-works-grid.works-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (min-width: 3300px) { #all-works-grid.works-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
/* 관리자: 공개/비공개 + 칸 드래그 */
@media (hover: hover) and (pointer: fine) { .admin-row { cursor: grab; } .admin-row.dragging { cursor: grabbing; } .admin-row input, .admin-row button, .admin-row label { cursor: auto; } .admin-row button, .admin-row label.btn { cursor: pointer; } }
.admin-row.is-hidden { opacity: .45; border-style: dashed; }
.admin-row.is-hidden:hover { opacity: .75; }
.chip.vis.off.on { background: #3a1414; border-color: #ff6b6b; color: #ffb3b3; }
