/* 1-base.css — 색·글꼴·간격 값(토큰), 기본 요소, 상단 바, 메뉴, 버튼, 하단. 모든 페이지가 함께 쓴다.
   방향: 밤의 제품 촬영 스튜디오. 따뜻한 흑연색 바탕 + MOVK 주홍 한 가지. 화면 너비에 비례해 커진다. */
:root {
  --bg: #121110; --bg-2: #1B1A18; --ink: #F1EEE8; --ink-2: #A9A49B; --ink-3: #726D65; --line: rgba(241, 238, 232, .14);
  --paper: #ECE9E3; --paper-ink: #141312; --paper-ink-2: #55514A; --paper-line: rgba(20, 19, 18, .16);
  --accent: #C43219;        /* MOVK 로고 색. 흰 글자를 올리거나 밝은 바탕 위 표시용 */
  --accent-hi: #E4492F;     /* 어두운 바탕 위에서 쓰는 밝은 주홍 */
  --gut: clamp(20px, 2.6vw, 56px);          /* 화면 좌우 여백 */
  --sec: clamp(72px, 9.4vw, 184px);         /* 구역 위아래 여백 */
  --top: clamp(64px, 6vw, 104px);           /* 상단 바 높이 */
  /* 글자 크기 단계. 사이트의 모든 글자는 이 열 가지 중 하나를 쓴다 (작은 것 → 큰 것) */
  --t-1: 13px;                               /* 숫자·보조 표시 */
  --t-2: clamp(14px, 1vw, 17px);             /* 라벨, 캡션, 목록 */
  --t-3: clamp(16px, 1.15vw, 20px);          /* 본문, 버튼, 입력 칸 */
  --t-4: clamp(17px, 1.3vw, 24px);           /* 소개 문단 */
  --t-5: clamp(19px, 1.7vw, 32px);           /* 작은 제목 (카드·단계 이름) */
  --t-6: clamp(23px, 2.6vw, 50px);           /* 중간 제목, 큰 문장 */
  --t-7: clamp(28px, 3.4vw, 64px);           /* 구역 제목 */
  --t-8: clamp(30px, 4.3vw, 88px);           /* 첫 화면 제목 */
  --t-9: clamp(36px, 5.6vw, 112px);          /* 페이지 제목 */
  --t-10: clamp(48px, 9.6vw, 192px);         /* 화면을 채우는 윤곽선 글자 (메뉴, 필터, 소개 단어) */
  --cjk: "Noto Sans KR";
  --f: "Archivo", var(--cjk), system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
html:lang(ja) { --cjk: "Noto Sans JP"; }
html:not(:lang(en)) { --t-8: clamp(28px, 3.9vw, 80px); --t-9: clamp(32px, 4.8vw, 96px); --t-10: clamp(44px, 8.2vw, 164px); }   /* 한글·일본어는 획이 많아 큰 글자를 한 단계 작게 */
html:lang(ko) { word-break: keep-all; }
html:lang(ja) { line-break: strict; }
html:lang(ja) :is(h1, h2, h3, p, li) { word-break: auto-phrase; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* 글자 크기 */
.display { font-size: var(--t-9); font-weight: 500; font-stretch: 108%; line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
.display-s { font-size: var(--t-7); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.body-l { font-size: var(--t-4); line-height: 1.6; color: var(--ink-2); max-width: 34em; }
.kicker { font-size: var(--t-2); font-weight: 500; color: var(--ink-2); display: flex; align-items: center; gap: 12px; }
html:not(:lang(en)) .display { line-height: 1.22; letter-spacing: -.03em; font-weight: 600; }
html:not(:lang(en)) .display-s { line-height: 1.28; font-weight: 600; }
.pad { padding: var(--sec) var(--gut); }
.paper { background: var(--paper); color: var(--paper-ink); color-scheme: light; }
.paper .kicker, .paper .body-l { color: var(--paper-ink-2); }

/* MOVK 도형 표시 */
.mk { width: 14px; height: 14px; fill: var(--accent-hi); flex: none; }
.paper .mk { fill: var(--accent); }
.arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; transition: transform .16s var(--ease); }

/* 버튼 · 링크 */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 28px; background: var(--ink); color: var(--bg); font-weight: 500; font-size: var(--t-3); border-radius: 2px; transition: background-color .16s var(--ease); }
.btn:hover { background: #fff; }
.btn:hover .arrow, .link:hover .arrow { transform: translateX(4px); }
.paper .btn { background: var(--paper-ink); color: var(--paper); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: var(--t-3); min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.chip { border: 1px solid var(--line); border-radius: 2px; padding: 8px 12px; font-size: var(--t-2); transition: border-color .16s var(--ease); }
.chip:hover { border-color: var(--ink-2); }
.sq { width: 44px; height: 44px; border: 1.5px solid currentColor; border-radius: 2px; display: grid; place-items: center; transition: background-color .16s var(--ease), color .16s var(--ease); }
.sq svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.sq:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* 상단 바: 어느 배경 위에서도 보이도록 색을 반전해 겹친다 */
.top { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--top); padding: 0 var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; mix-blend-mode: difference; pointer-events: none; }
.top > * { pointer-events: auto; }
.logo { display: flex; align-items: center; gap: clamp(8px, .8vw, 14px); min-height: 48px; }
.logo-mark { height: clamp(18px, 1.5vw, 28px); width: auto; fill: currentColor; }
.logo-word { font-size: var(--t-4); font-weight: 500; font-stretch: 112%; letter-spacing: -.01em; line-height: 1; }
.top-line { flex: 1 1 0; min-width: 0; max-width: 34vw; overflow: hidden; font-size: var(--t-2); font-weight: 500; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.top-line-track { display: inline-flex; animation: line 48s linear infinite; }
.top-line-track span::after { content: "+"; margin: 0 1.2em; opacity: .6; }
.top-line-track span:nth-child(even)::after { content: "x"; }
@keyframes line { to { transform: translateX(-50%); } }
/* 오른쪽: 바로 가기 메뉴(넓은 화면) · 언어 · 메뉴 버튼. 누르는 곳은 모두 높이 48px 이상 */
.top-right { display: flex; align-items: center; gap: clamp(8px, 1.2vw, 24px); }
.top-nav { display: flex; }
.top-nav a { display: grid; place-items: center; min-height: 48px; padding: 0 clamp(10px, 1vw, 18px); font-size: var(--t-3); font-weight: 500; white-space: nowrap; }
.top-nav a span { padding: 4px 0; border-bottom: 1.5px solid transparent; transition: border-color .16s var(--ease); }
.top-nav a:hover span, .top-nav a[aria-current] span { border-color: currentColor; }
.lang { display: flex; }
.lang button { display: grid; place-items: center; font-size: var(--t-2); font-weight: 500; min-width: 44px; min-height: 48px; opacity: .55; transition: opacity .16s var(--ease); }
.lang button[aria-pressed="true"], .lang button:hover { opacity: 1; }
.lang button[aria-pressed="true"] { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.menu-btn { width: 48px; height: 48px; border: 1.5px solid currentColor; border-radius: 2px; display: grid; place-content: center; gap: 7px; flex: none; }
.menu-btn i { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform .32s var(--ease); }
.menu-btn[aria-expanded="true"] i:first-of-type { transform: translateY(4.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-of-type { transform: translateY(-4.25px) rotate(-45deg); }
@media (max-width: 1180px) { .top-line { display: none; } }
@media (max-width: 860px) { .top-nav { display: none; } }
@media (max-width: 420px) { .lang button { min-width: 38px; } .top { gap: 8px; } }

/* 전체 화면 메뉴 */
.menu { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--top) + 4vh) var(--gut) var(--gut); overflow: auto; }
.menu-links { display: grid; gap: clamp(4px, 1vh, 16px); }
.menu-links a { display: flex; align-items: center; gap: clamp(16px, 2vw, 40px); font-size: var(--t-10); font-weight: 500; font-stretch: 108%; line-height: 1.02; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); transition: color .16s var(--ease); }
.menu-links a:hover, .menu-links a[aria-current] { color: var(--ink); }
.menu-links .mk { width: clamp(20px, 2.6vw, 52px); height: clamp(20px, 2.6vw, 52px); }
html:not(:lang(en)) .menu-links a { font-weight: 600; line-height: 1.2; }
.menu-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: var(--t-3); padding-top: 32px; }
.mail { text-decoration: underline; text-decoration-color: var(--accent-hi); text-underline-offset: 4px; user-select: all; }

/* 하단 */
.foot { border-top: 1px solid var(--line); }
.foot-cta { padding: var(--sec) var(--gut); display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-row { padding: 32px var(--gut); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot .logo-mark { fill: var(--accent-hi); }
.foot-nav { display: flex; gap: 8px; font-weight: 500; font-size: var(--t-3); }
.foot-nav a { display: grid; place-items: center; min-height: 44px; padding: 0 10px; }
.foot-nav a:hover { color: var(--accent-hi); }
.foot-meta { display: grid; gap: 4px; justify-items: end; font-size: var(--t-2); color: var(--ink-2); }
@media (max-width: 760px) { .foot-meta { justify-items: start; } }

/* 2-home.css — 메인 페이지: 전면 슬라이드, 소개, 하는 일, 사진 비교, 주요 작업, 진행 방식 */

/* 첫 화면 슬라이드 */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #0b0a09; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-slide.on { opacity: 1; }
.hero-media { width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; transform: scale(1.01); }   /* 사진(img) 또는 영상(video) */
.hero-slide.on img.hero-media { animation: push 9s ease-out forwards; }
@keyframes push { to { transform: scale(1.07); } }
/* 글자가 놓이는 왼쪽·아래, 그리고 상단 바가 놓이는 위쪽을 어둡게 눌러 준다 (색이 아닌 명암만) */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(11, 10, 9, .78) 0%, rgba(11, 10, 9, .28) 46%, rgba(11, 10, 9, 0) 70%), linear-gradient(0deg, rgba(11, 10, 9, .7) 0%, rgba(11, 10, 9, 0) 38%), linear-gradient(180deg, rgba(11, 10, 9, .8) 0%, rgba(11, 10, 9, .5) 12%, rgba(11, 10, 9, 0) 28%); }
.hero-copy { position: absolute; z-index: 2; left: var(--gut); bottom: clamp(88px, 13vh, 168px); display: grid; gap: clamp(16px, 2vh, 28px); max-width: min(92vw, 60em); }
.hero-title { font-size: var(--t-8); font-weight: 500; font-stretch: 108%; line-height: 1.06; letter-spacing: -.025em; }
html:not(:lang(en)) .hero-title { font-weight: 600; line-height: 1.24; letter-spacing: -.03em; }
.hero-meta { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
@media (max-width: 760px) { .hero-meta { padding-right: 60px; } .hero-cap { flex-wrap: wrap; gap: 2px 10px; } .hero-cap > * { white-space: nowrap; } .hero-cap .arrow { display: none; } }   /* 오른쪽 아래 넘김 버튼과 겹치지 않게 */
.count { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--accent); color: #fff; border-radius: 999px; font-size: var(--t-2); font-weight: 500; line-height: 1; white-space: nowrap; transition: background-color .16s var(--ease); }
.count:hover { background: var(--accent-hi); }
.count b { font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-cap { display: inline-flex; align-items: center; gap: 10px; overflow: hidden; font-size: var(--t-3); color: var(--ink-2); transition: color .16s var(--ease); }
.hero-cap b { color: var(--ink); font-weight: 500; }
.hero-cap:hover { color: var(--ink); }
.hero-nav { position: absolute; z-index: 2; right: var(--gut); bottom: clamp(24px, 4vh, 48px); display: grid; gap: 8px; justify-items: center; }
.hero-num { display: grid; justify-items: center; gap: 8px; font-size: var(--t-1); font-variant-numeric: tabular-nums; color: var(--ink-2); margin-bottom: 8px; }
.hero-num b { color: var(--ink); font-weight: 500; }
.hero-num i { width: 1px; height: 28px; background: var(--line); }

/* 소개 문장 */
.statement { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 120px); align-items: end; }
@media (max-width: 900px) { .statement { grid-template-columns: 1fr; } }

/* 하는 일 (밝은 구역) */
.services .kicker { margin-bottom: clamp(24px, 3vw, 56px); }
.sv { display: grid; grid-template-columns: clamp(28px, 4vw, 72px) 4fr 5fr 3fr; gap: clamp(16px, 2.4vw, 48px); padding: clamp(28px, 3.2vw, 60px) 0; border-top: 1px solid var(--paper-line); align-items: start; }
.sv:last-child { border-bottom: 1px solid var(--paper-line); }
.sv .mk { width: clamp(16px, 1.6vw, 30px); height: clamp(16px, 1.6vw, 30px); margin-top: .5em; }
.sv h3 { font-size: var(--t-6); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
html:not(:lang(en)) .sv h3 { font-weight: 600; line-height: 1.3; }
.sv p { font-size: var(--t-3); line-height: 1.6; color: var(--paper-ink-2); }
.sv ul { display: grid; gap: 8px; font-size: var(--t-2); color: var(--paper-ink-2); }
.sv li { padding-bottom: 8px; border-bottom: 1px solid var(--paper-line); }
@media (max-width: 900px) { .sv { grid-template-columns: 28px 1fr; } .sv p, .sv ul { grid-column: 2; } }

/* 받은 사진 → 다시 만든 컷 (비교). 칸마다 가운데 선의 위치 --p 하나로 움직인다: 선 왼쪽이 Before, 오른쪽이 After */
.look-copy { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 120px); align-items: end; padding-bottom: clamp(40px, 5vw, 96px); }
.ba-grid { display: grid; grid-template-columns: .75fr 1.028fr .75fr; gap: 4px; }   /* 윗줄: 가로 + 세로, 아랫줄: 세로 + 가로. 세로 칸(3:4)이 줄 높이를 정한다 */
.ba { position: relative; overflow: hidden; background: var(--bg-2); --p: 50%; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.ba:nth-child(1) { grid-column: 1 / 3; }
.ba:nth-child(4) { grid-column: 2 / 4; }
.ba:nth-child(2), .ba:nth-child(3) { aspect-ratio: 3 / 4; }
.ba-layer { position: absolute; inset: 0; }
.ba-layer img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-b { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.ba-tag, .ba-name { position: absolute; display: flex; gap: 8px; padding: 8px 10px; background: rgba(18, 17, 16, .72); color: var(--ink); font-size: var(--t-1); font-weight: 500; line-height: 1; border-radius: 2px; white-space: nowrap; }
.ba-tag { bottom: 12px; }
.ba-b .ba-tag { left: 12px; }
.ba-a .ba-tag { right: 12px; }
.ba-name { z-index: 3; pointer-events: none; top: 12px; left: 12px; max-width: calc(100% - 24px); overflow: hidden; }
.ba-name span { color: var(--ink-2); font-weight: 400; }
.ba-handle { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--p); width: 44px; margin-left: -22px; display: grid; place-items: center; cursor: ew-resize; }
.ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1.5px; margin-left: -.75px; background: var(--ink); }
.ba-handle span { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; transition: transform .16s var(--ease); }
.ba:hover .ba-handle span, .ba-handle:focus-visible span { transform: scale(1.1); }
.ba-handle:focus-visible { outline: none; }
.ba-handle:focus-visible span { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
.ba-handle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.look-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 48px); padding: clamp(40px, 5vw, 96px) var(--gut) 0; }
.look-points li { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 1px solid var(--line); }
.look-points h3 { font-size: var(--t-5); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; margin-top: 12px; }
.look-points p { color: var(--ink-2); font-size: var(--t-3); max-width: 26em; }
@media (max-width: 900px) { .look-copy { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .ba-grid { grid-template-columns: 1fr 1fr; }
  .ba:nth-child(1), .ba:nth-child(4) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .ba-name span { display: none; }
  .ba-tag, .ba-name { padding: 6px 8px; }
  .ba-tag { bottom: 8px; } .ba-b .ba-tag, .ba-name { left: 8px; } .ba-a .ba-tag { right: 8px; } .ba-name { top: 8px; }
  .look-points { grid-template-columns: 1fr; }
}

/* 주요 작업: 세 장을 계단처럼 어긋나게 */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 72px); }
.sel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 32px); align-items: start; }
.sel-grid > :nth-child(2) { margin-top: 6vw; }
.sel-grid > :nth-child(3) { margin-top: 12vw; }
.card { display: grid; gap: 16px; }
.card-media { aspect-ratio: 5 / 8; overflow: hidden; background: var(--bg-2); }
.card-media :is(img, video) { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media :is(img, video) { transform: scale(1.03); }
.card-name { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.card-name b { font-size: var(--t-5); font-weight: 500; letter-spacing: -.01em; }
.card-name span { font-size: var(--t-2); color: var(--ink-2); }
@media (max-width: 760px) { .sel-grid { grid-template-columns: 1fr; } .sel-grid > :nth-child(n) { margin-top: 0; } .card-media { aspect-ratio: 4 / 5; } }

/* 진행 방식 */
.process { border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 48px); margin-top: clamp(32px, 4vw, 72px); }
.steps li { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 1px solid var(--line); }
.steps h3 { font-size: var(--t-5); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; margin-top: 12px; }
.steps p { color: var(--ink-2); font-size: var(--t-3); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* 3-pages.css — 작업 페이지(큰 글자 필터 + 썸네일 3열 + 상세 화면), 소개 페이지, 문의 페이지 */

/* ── 작업 ─────────────────────────────── */
.works { position: relative; padding: calc(var(--top) + 8px) 0 var(--sec); min-height: 100svh; }
.filters { position: sticky; top: var(--top); z-index: 5; width: max-content; display: grid; justify-items: start; padding-left: var(--gut); pointer-events: none; margin-bottom: -100svh; height: 100svh; align-content: start; }
.filters > * { pointer-events: auto; }
.works-count { font-size: var(--t-2); color: var(--ink-2); margin: 8px 0 clamp(12px, 2vh, 28px); }
.works-count b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.filters button { font-size: var(--t-10); font-weight: 600; font-stretch: 100%; line-height: .96; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); text-align: left; transition: color .16s var(--ease); }
.filters button:hover { color: rgba(241, 238, 232, .25); }
.filters button[aria-selected="true"] { color: var(--ink); }
.work-grid { margin-left: 30vw; padding-right: var(--gut); display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tile { position: relative; aspect-ratio: 5 / 8; overflow: hidden; background: var(--bg-2); display: block; text-align: left; width: 100%; }
.tile :is(img, video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .32s var(--ease); }
.tile:hover :is(img, video) { transform: scale(1.03); }
.tile-cap { position: absolute; inset: auto 0 0; padding: 48px 16px 16px; display: grid; gap: 2px; background: linear-gradient(0deg, rgba(11, 10, 9, .82), rgba(11, 10, 9, 0)); opacity: 0; transition: opacity .32s var(--ease); }
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; }
.tile-cap b { font-weight: 500; font-size: var(--t-3); }
.tile-cap span { font-size: var(--t-2); color: var(--ink-2); }
.tile[hidden] { display: none; }
@media (hover: none) { .tile-cap { opacity: 1; } }
@media (max-width: 900px) {
  .filters { position: static; width: auto; height: auto; margin: 0 0 16px; padding-right: var(--gut); display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
  .works-count { width: 100%; margin-bottom: 4px; }
  .filters button { font-size: clamp(40px, 12vw, 72px); -webkit-text-stroke-width: 1px; }
  .work-grid { margin-left: 0; padding: 0 var(--gut); grid-template-columns: repeat(2, 1fr); }
}

/* 상세 화면 */
.detail { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
.detail-bar { position: sticky; top: 0; z-index: 2; height: 0; display: flex; justify-content: flex-end; padding: 0 var(--gut); }
.detail-bar .sq { margin-top: calc((var(--top) - 44px) / 2); background: var(--bg); }
.detail-in { display: grid; grid-template-columns: 34vw 1fr; }
.detail-info { position: sticky; top: 0; align-self: start; height: 100svh; padding: var(--top) var(--gut) var(--gut); display: grid; gap: 20px; align-content: center; overflow: auto; }
.detail-info .display { font-size: var(--t-8); }
.detail-info .body-l { font-size: var(--t-3); }
.detail-info dl { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; font-size: var(--t-3); padding-top: 20px; border-top: 1px solid var(--line); }
.detail-info dt { color: var(--ink-3); }
.detail-info dd ul { display: grid; gap: 4px; }
.detail-info .link { justify-self: start; gap: 12px; }
#detail-next-name { color: var(--ink-2); font-weight: 400; }
.detail-media { display: grid; gap: 4px; align-content: start; }
.detail-media > * { background: var(--bg-2); }
.detail-media :is(img, video) { width: 100%; height: auto; }
.detail-media .fit-phone { display: grid; place-items: center; padding: 6vh 0; }
.detail-media .fit-phone video { width: auto; height: 76vh; max-width: 80%; border-radius: 24px; }
.detail-media .fit-page { display: grid; place-items: center; padding: 6vh 0; }
.detail-media .fit-page img { width: min(520px, 86%); }
@media (max-width: 900px) { .detail-in { grid-template-columns: 1fr; } .detail-info { position: static; height: auto; padding-bottom: 32px; } }

/* ── 소개 ─────────────────────────────── */
.ab-hero { padding-top: calc(var(--top) + 8vh); display: grid; gap: clamp(40px, 6vw, 112px); }
.ab-words li { font-size: var(--t-10); font-weight: 300; font-stretch: 100%; line-height: .98; letter-spacing: -.035em; }
.ab-words li:nth-child(n+2) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.ab-lead { font-size: var(--t-6); line-height: 1.3; letter-spacing: -.015em; max-width: 26em; justify-self: end; }
html:not(:lang(en)) .ab-lead { line-height: 1.5; }
.ab-photo img { width: 100%; height: auto; }
.ab-rows { display: grid; }
.ab-rows article { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(20px, 4vw, 80px); padding: clamp(32px, 4.4vw, 84px) 0; border-top: 1px solid var(--line); }
.ab-big { font-size: var(--t-6); line-height: 1.32; letter-spacing: -.015em; }
html:not(:lang(en)) .ab-big { line-height: 1.55; }
.ab-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 80px); border-top: 1px solid var(--line); }
.ab-nums > div { display: grid; gap: 4px; }
.ab-nums b { font-size: clamp(88px, 14vw, 280px); font-weight: 300; line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.n-word { color: var(--ink-2); font-size: var(--t-3); }
.n-label { color: var(--ink-2); font-size: var(--t-3); max-width: 16em; margin-top: 12px; }
.ab-caps ul { display: flex; flex-wrap: wrap; gap: 0 .5em; margin-top: clamp(24px, 3vw, 56px); font-size: var(--t-7); font-weight: 500; line-height: 1.22; letter-spacing: -.025em; }
html:not(:lang(en)) .ab-caps ul { font-weight: 600; line-height: 1.4; }
.ab-caps li:not(:last-child)::after { content: "/"; margin-left: .5em; color: var(--accent); font-weight: 300; }
.ab-co { display: grid; grid-template-columns: 5fr 7fr; align-items: center; }
.ab-co figure { height: 100%; }
.ab-co img { width: 100%; height: 100%; object-fit: cover; }
.ab-co > div { display: grid; gap: clamp(20px, 2.4vw, 44px); }
@media (max-width: 900px) { .ab-lead { justify-self: start; } .ab-rows article, .ab-nums, .ab-co { grid-template-columns: 1fr; } }

/* ── 문의 ─────────────────────────────── */
.contact { padding-top: calc(var(--top) + 8vh); display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 136px); align-items: start; min-height: 100svh; }
.ct-head { display: grid; gap: clamp(20px, 2.4vw, 44px); position: sticky; top: calc(var(--top) + 4vh); }
.mailbox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--t-3); }
.mailbox .mail { color: var(--ink); font-size: var(--t-5); font-weight: 500; overflow-wrap: anywhere; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.field { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: var(--t-2); color: var(--ink-2); padding: 0; }
.field :is(input, select, textarea) { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; font-size: var(--t-3); color: var(--ink); transition: border-color .16s var(--ease); }
.field select option { background: var(--bg-2); color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.field :is(input, select, textarea):focus { outline: none; border-bottom-color: var(--accent-hi); }
.field ::placeholder { color: var(--ink-3); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.checks label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 2px; padding: 10px 16px; color: var(--ink); font-size: var(--t-3); cursor: pointer; }
.checks input { width: 16px; height: 16px; accent-color: var(--accent-hi); }
.form > .btn { grid-column: 1 / -1; justify-self: start; }
.err { grid-column: 1 / -1; color: var(--accent-hi); font-size: var(--t-2); min-height: 1.6em; }
.brief { grid-column: 1 / -1; display: grid; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 2px; }
.brief h2 { font-size: var(--t-5); font-weight: 500; }
.brief p { color: var(--ink-2); font-size: var(--t-3); }
.brief textarea { width: 100%; background: var(--bg-2); border: 0; border-radius: 2px; padding: 16px; font: 14px/1.7 ui-monospace, Consolas, monospace; color: var(--ink); resize: vertical; }
.brief .chip { justify-self: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .ct-head { position: static; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* 4-motion.css — 움직임에 필요한 화면 요소: 로딩 화면, 페이지 전환 막, 마우스 원, 썸네일 색 가림막.
   실제 움직임은 src/scripts/9-motion.js (GSAP)가 만든다. 스크립트가 없거나 '움직임 줄이기' 설정이면 전부 숨는다. */

/* 로딩 화면 */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; animation: loader-failsafe 0s linear 9s forwards; }
@keyframes loader-failsafe { to { visibility: hidden; } }   /* 스크립트가 멈춰도 9초 뒤에는 사라진다 */
html:not(.js) .loader, html.no-motion .loader, html.seen .loader { display: none; }
.loader-mark { display: flex; align-items: center; gap: clamp(8px, 1vw, 18px); }
.loader-mark svg { height: clamp(40px, 6vw, 104px); width: auto; fill: var(--accent-hi); transform: scale(0); }
.loader-row { position: absolute; left: var(--gut); right: var(--gut); bottom: var(--gut); display: flex; justify-content: space-between; align-items: flex-end; font-size: var(--t-2); font-weight: 500; color: var(--ink-2); }
.loader-row b { font-size: var(--t-10); font-weight: 300; line-height: .8; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* 페이지 전환 막: 주홍 한 겹, 그 위에 바탕색 한 겹 */
.wipe { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.wipe i { position: absolute; inset: 0; transform: translateY(101%); }
.wipe i:first-child { background: var(--accent); }
.wipe i:last-child { background: var(--bg); }
html.js.seen:not(.no-motion) .wipe i:last-child { transform: none; animation: loader-failsafe 0s linear 4s forwards; }   /* 다음 페이지는 덮인 채로 시작해 걷힌다 (스크립트가 멈춰도 4초 뒤 사라짐) */
html:not(.js) .wipe, html.no-motion .wipe { display: none; }

/* 마우스를 따라다니는 원 (마우스가 있는 기기만) */
.cursor { position: fixed; left: 0; top: 0; z-index: 60; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; pointer-events: none; transform: scale(0); }
.cursor svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
html.no-motion .cursor { display: none; }

/* 썸네일 색 가림막: 작업마다 정한 색 블록이 먼저 뜨고, 아래로 미끄러지며 사진이 드러난다 */
.veil { position: absolute; inset: 0; z-index: 2; background: var(--tone, var(--bg-2)); transform: translateY(101%); pointer-events: none; }

/* 글자 줄 단위 가림 (SplitText의 mask) */
.split-mask { overflow: hidden; }

/* 움직임을 쓸 때는 CSS의 단순 전환을 끄고 GSAP에 맡긴다 */
html.js:not(.no-motion) { scroll-behavior: auto; }
html.js:not(.no-motion) .hero-slide { opacity: 1; visibility: hidden; transition: none; }
html.js:not(.no-motion) .hero-slide.on, html.js:not(.no-motion) .hero-slide.leaving { visibility: visible; }
html.js:not(.no-motion) .hero-slide img.hero-media { animation: none; }
html.js:not(.no-motion) .hero-num i { position: relative; overflow: hidden; }
.hero-num i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(var(--p, 0)); transform-origin: top; }

/* Lenis 부드러운 스크롤 */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
