/* =========================================================
   디자인 토큰 (색상 / 폰트 / 간격)
   ========================================================= */
:root {
  --bg: #FAFAFA;          /* 화이트 대체 */
  --ink: #222222;         /* 블랙 대체 */
  --ink-soft: #6B6B6B;    /* 보조 텍스트 */
  --accent: #0E7AFE;      /* 블루 포인트 */
  --accent-soft: #E8F1FF; /* 옅은 블루 배경 (hover 등) */
  --gray-1: #F0F0F0;      /* 연한 회색 1 — 카드/태그 표면 */
  --gray-2: #E4E4E4;      /* 연한 회색 2 — 구분선/테두리/hover */
  --line: var(--gray-2);
  --paper: var(--gray-1);
  --header-h: 48px;       /* 헤더 높이 */

  --font-display: 'IBM Plex Sans', 'IBM Plex Sans KR', 'IBM Plex Sans JP', sans-serif;
  --font-body: 'IBM Plex Sans', 'IBM Plex Sans KR', 'IBM Plex Sans JP', sans-serif;
  --font-mono: 'IBM Plex Sans', 'IBM Plex Sans KR', 'IBM Plex Sans JP', sans-serif;

  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { width: 100%; min-height: 0; overflow-x: hidden; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* =========================================================
   헤더
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 clamp(20px, 5vw, 56px);
  background: rgba(250, 250, 250, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-col {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-swap {
  justify-self: center;
  display: grid;
  height: 22px;
  max-width: 70vw;
  overflow: hidden;
  color: var(--ink);
}
.brand-swap:hover { color: var(--accent); }
.brand-welcome,
.brand-logo {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.brand-welcome {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transform: translateY(0);
}
.brand-logo { transform: translateY(-130%); }
.brand-logo svg { display: block; width: auto; height: 18px; }

/* 스크롤하면 Welcome 문구는 아래로 슬라이드 아웃, 로고는 위에서 슬라이드 인 */
.site-header.is-scrolled .brand-welcome { transform: translateY(130%); }
.site-header.is-scrolled .brand-logo { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .brand-welcome, .brand-logo { transition: none; }
}

.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-size: 13px;
  font-weight: 400;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--accent); }
.main-nav a.is-active { color: var(--ink-soft); }

.header-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  padding: 4px;
}
.icon-btn:hover { color: var(--accent); }

.menu-toggle { display: none; }

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--font-mono);
}
.lang-btn {
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 5px 11px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-btn:hover { color: var(--accent); }
.lang-btn.is-active {
  background: var(--gray-2);
  color: var(--ink);
}
.lang-btn.is-active:hover { color: var(--ink); }

/* =========================================================
   검색 — 우측 인라인 (텍스트 → 입력창 전환)
   ========================================================= */
.search-inline {
  position: relative;
}
.search-trigger {
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  color: var(--ink);
  transition: color 0.2s ease;
  user-select: none;
}
.search-trigger:hover { color: var(--accent); }

.search-input-inline {
  width: 160px;
  border: none;
  border-bottom: 1px solid var(--accent);
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  text-align: right;
  padding: 2px 0;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 240px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--gray-1);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(34, 34, 34, 0.1);
  z-index: 60;
}
.search-dropdown li a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.search-dropdown li a:hover { background: var(--gray-2); color: var(--accent); }
.search-dropdown .no-match {
  padding: 9px 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* (검색 오버레이는 헤더 인라인 검색으로 대체되었습니다) */

/* =========================================================
   HOME — 화면을 꽉 채우는 이미지/영상 영역
   ========================================================= */
.home-media {
  position: relative;
  max-width: none;
  width: 100vw;
  margin: 0 0 0 calc(50% - 50vw);
  padding: 0;
  border-top: none;
  height: calc(100dvh - var(--header-h));
  overflow: hidden;
  background: var(--gray-1);
  cursor: pointer;
}
.home-media-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}
.home-cta-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  transition: left 0.18s ease-out, top 0.18s ease-out, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.home-cta-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #FFFFFF;
  transform: translate(-50%, -50%) scale(1.04);
}

.home-note {
  position: absolute;
  top: 24px;
  right: 24px;
  width: max-content;
  max-width: min(480px, calc(100vw - 48px));
  padding: 16px 30px 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  z-index: 5;
}
.home-note[hidden] { display: none; }
.home-note p {
  margin: 0;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.6;
}
.home-note a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.15s ease;
}
.home-note a:hover { opacity: 0.75; }
.home-note-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: #FFFFFF;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.home-note-close:hover { opacity: 1; }

@media (max-width: 760px) {
  .home-note { top: 16px; right: 16px; left: 16px; width: auto; max-width: none; }
}

/* =========================================================
   섹션 공통
   ========================================================= */
section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px clamp(20px, 5vw, 56px) 90px;
  border-top: 1px solid var(--line);
}

.section-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 48px;
}
.section-num { color: var(--accent); }

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  min-height: calc(100dvh - var(--header-h));
  box-sizing: border-box;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.about-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.about-name {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 20px;
}
.about-statement {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0;
}
.about-details {
  margin: 0;
  padding-top: 4px;
}
.about-detail-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.about-detail-row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 3px;
}
.about-detail-row dd {
  margin: 0;
  line-height: 1.7;
}
.about-awards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-awards li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.about-award-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
}
.about-award-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.about-award-note {
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--gray-1);
  border-radius: 6px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* =========================================================
   POLICY 문서 (쿠키 정책 등 법적 문서용)
   ========================================================= */
.policy-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin: -8px 0 32px;
}
.policy-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
}
.policy-toc {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.policy-toc-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.policy-toc a {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.policy-toc a:hover { color: var(--accent); }
.policy-text { max-width: 74ch; color: var(--ink-soft); }
.policy-text p { margin: 0 0 20px; }
.policy-text h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: 40px 0 14px;
}
.policy-text ul {
  margin: 0 0 20px;
  padding-left: 20px;
}
.policy-text li { margin: 0 0 8px; }
.policy-text a { color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.policy-text a:hover { color: var(--ink); border-color: var(--ink); }
.policy-footnote {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}

/* =========================================================
   WORKS — 이미지 카드 그리드
   ========================================================= */
.work-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px 24px;
}
.work-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-thumb {
  position: relative;
  aspect-ratio: 461 / 326;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-1);
  transition: box-shadow 0.3s ease;
}
.work-item:hover .work-thumb {
  box-shadow:
    0 0 0 1px var(--bg),
    0 2px 6px rgba(34, 34, 34, 0.07),
    0 6px 16px rgba(34, 34, 34, 0.09);
}
.work-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.work-item:hover .work-thumb-img { transform: scale(1.03); }
.work-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.work-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.work-item:hover .work-tag { color: var(--bg); background: var(--accent); }

.work-no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}
.work-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.work-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-left: auto;
}
.no-results { color: var(--ink-soft); font-family: var(--font-mono); font-size: 14px; }

/* =========================================================
   WORK DETAIL (works/project-0X.html)
   ========================================================= */
.back-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.back-link:hover { color: var(--accent); }

.work-detail-hero {
  position: relative;
  min-height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-1);
  margin-bottom: 48px;
}
.work-detail-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.work-detail-hero .work-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.work-detail-top {
  display: grid;
  grid-template-columns: minmax(240px, 461px) 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}

.work-detail-thumb {
  position: relative;
  aspect-ratio: 461 / 326;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-1);
}
.work-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-detail-thumb .work-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.work-detail-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.work-detail-no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}
.work-detail-title {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 500;
  margin: 0;
  flex: 1 1 0%;
  min-width: 0;
}
.work-detail-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.work-detail-info #wdDesc,
.work-detail-info #wdDesc2 {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 28px;
  white-space: pre-line;
}

.work-award {
  margin: -8px 0 28px;
  padding: 16px 20px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
}
.work-award[hidden] { display: none; }
.work-award-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 4px;
}
.work-award-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

.work-detail-meta {
  list-style: none;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 24px 28px;
}
.work-detail-meta li { display: flex; flex-direction: column; gap: 4px; font-size: 13px; max-width: 160px; }
.work-detail-meta li[hidden] { display: none; }
.work-detail-meta li.meta-wide { max-width: none; }
.work-detail-meta li span { color: var(--ink-soft); font-size: 11px; }
.work-detail-meta li strong { font-weight: 500; }
.responsibilities-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.responsibilities-list li { font-weight: 500; font-size: 13px; white-space: nowrap; }

.work-gallery {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 56px;
}
.gallery-image {
  position: relative;
  cursor: zoom-in;
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
}
.gallery-image:hover {
  box-shadow:
    0 0 0 1px var(--bg),
    0 2px 6px rgba(34, 34, 34, 0.07),
    0 6px 16px rgba(34, 34, 34, 0.09);
}
.gallery-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.gallery-image.is-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--gray-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.gallery-caption {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid #fff;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.gallery-caption--light {
  color: #fff;
}
.gallery-image.is-placeholder .gallery-caption {
  position: static;
  background: none;
  padding: 0;
}

.copyright-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  color: #000;
  background: #fff;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.gallery-video {
  position: relative;
  cursor: default;
  overflow: hidden;
  border-radius: 8px;
}
.gallery-video-el {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.gallery-sound-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.15s ease;
}
.gallery-video:hover .gallery-sound-btn,
.gallery-sound-btn:focus-visible {
  opacity: 1;
}
.gallery-sound-btn:hover { background: rgba(255, 255, 255, 0.75); }

/* =========================================================
   라이트박스 — 갤러리 이미지 클릭 시 확대
   ========================================================= */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  z-index: 200;
  cursor: zoom-out;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(34, 34, 34, 0.18);
  object-fit: contain;
  cursor: default;
}

.work-detail-secondary {
  border-top: 1px solid var(--line);
  padding-top: 56px;
  margin-bottom: 56px;
}
.work-detail-secondary .work-gallery { margin-bottom: 0; }

.work-detail-nav {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.work-detail-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}
.work-detail-link:hover { color: var(--accent); }

.work-disclaimer {
  margin: 24px 0 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-soft);
  white-space: pre-line;
}

/* (quick-links 카드 스타일은 전체 화면 미디어 섹션으로 대체되었습니다) */

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.contact-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 64px;
  align-items: stretch;
}
.contact-form {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
}
.contact-info { align-self: end; text-align: right; }
.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row-grow {
  flex: 1;
  min-height: 0;
}
.form-row label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  background: var(--gray-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s ease;
  width: 100%;
}
.contact-form textarea {
  resize: none;
  flex: 1;
  min-height: 140px;
  font-family: var(--font-body);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.form-phone-group { display: flex; gap: 8px; }
.form-country-select { flex: 0 0 108px; cursor: pointer; }
.form-phone-input { flex: 1; }
.cf-submit {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.cf-submit:hover { opacity: 0.88; }
.cf-submit:disabled { opacity: 0.6; cursor: default; }
.cf-status { font-size: 13px; margin: -6px 0 0; }
.cf-status.is-success { color: var(--accent); }
.cf-status.is-error { color: #D64545; }

.contact-lead {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-soft);
  white-space: nowrap;
  margin: 0 0 2px;
  margin-left: auto;
}
.contact-email {
  display: inline-block;
  font-size: clamp(18px, 2.4vw, 22px);
  font-family: var(--font-display);
  border-bottom: 1px solid var(--ink);
}
.contact-email:hover { color: var(--accent); border-color: var(--accent); }

/* =========================================================
   FOOTER
   ========================================================= */
/* =========================================================
   404
   ========================================================= */
.notfound {
  max-width: 560px;
  margin: 0 auto;
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
  text-align: center;
}
.notfound-code {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 500;
  color: var(--gray-2);
  line-height: 1;
  margin: 0 0 20px;
}
.notfound-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 12px;
}
.notfound-body {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 32px;
  white-space: nowrap;
}
.notfound-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.notfound-link:hover { color: var(--accent); border-color: var(--accent); }

.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px clamp(20px, 5vw, 56px) 60px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 12px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}
.footer-cookie-link {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  border-bottom: 1px solid var(--ink-soft);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-cookie-link:hover { color: var(--accent); border-color: var(--accent); }

/* =========================================================
   쿠키 배너
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 640px;
  margin: 0 auto;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(10px);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  box-shadow: 0 10px 40px rgba(34, 34, 34, 0.12);
  z-index: 80;
  transform: translateY(140%);
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-info {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cookie-banner p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.cookie-policy-link {
  align-self: flex-start;
  font-size: 12px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--ink-soft);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.cookie-policy-link:hover { color: var(--accent); border-color: var(--accent); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: var(--bg);
}
.cookie-btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.cookie-btn.ghost:hover { border-color: var(--ink-soft); }

/* =========================================================
   반응형
   ========================================================= */
/* =========================================================
   반응형 — 태블릿 (761px ~ 1024px)
   ========================================================= */
@media (max-width: 1024px) {
  section { padding: 70px clamp(20px, 5vw, 56px); }
  .work-detail-meta { gap: 24px; }
  .work-detail-top { grid-template-columns: minmax(200px, 340px) 1fr; gap: 32px; }
}

/* =========================================================
   반응형 — 모바일 (~760px)
   ========================================================= */
@media (max-width: 760px) {
  .main-nav { display: none; }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 20px clamp(20px, 5vw, 56px) 24px;
    gap: 16px;
  }
  .menu-toggle { display: flex; }
  .icon-btn { padding: 8px; min-width: 40px; min-height: 40px; justify-content: center; }
  .search-inline { display: none; }
  section { padding-top: 40px; padding-bottom: 70px; }
  .notfound-body { white-space: normal; }
  .work-detail-top { grid-template-columns: 1fr; gap: 24px; }
  .work-detail-hero {
    width: auto;
    margin-left: calc(-1 * clamp(20px, 5vw, 56px));
    margin-right: calc(-1 * clamp(20px, 5vw, 56px));
    margin-bottom: 32px;
    border-radius: 0;
  }
  .policy-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-detail-row { grid-template-columns: 1fr; gap: 6px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-lead { white-space: normal; }
  .policy-toc { position: static; flex-direction: column; gap: 8px; }
  .policy-toc-label { width: 100%; }
  .policy-toc a {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 14px;
  }

  /* 언어 선택을 드롭다운 형태로: 평소엔 현재 언어 버튼만 보이고, 탭하면 나머지가 펼쳐짐 */
  .header-tools { position: relative; }
  .lang-switch { position: static; }
  .lang-switch .lang-btn { display: none; }
  .lang-switch .lang-btn.is-active { display: block; }
  .lang-switch .lang-btn.is-active::after {
    content: "▾";
    margin-left: 4px;
    font-size: 8px;
  }
  .lang-switch.is-open {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    flex-direction: column;
    background: var(--bg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 60;
  }
  .lang-switch.is-open .lang-btn { display: block; }
  .lang-switch.is-open .lang-btn.is-active::after { content: "▴"; }
}

/* =========================================================
   반응형 — 작은 폰 (~380px)
   ========================================================= */
@media (max-width: 380px) {
  .header-tools { gap: 12px; }
  .lang-btn { padding: 6px 9px; }
  .contact-lead { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   CV 다운로드 페이지 전용 (cv/index.html)
   ========================================================= */
.cv-section {
  position: relative;
  min-height: calc(100dvh - var(--header-h));
  box-sizing: border-box;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cv-section .section-label {
  position: absolute;
  top: 64px;
  left: clamp(20px, 5vw, 56px);
  right: clamp(20px, 5vw, 56px);
  justify-content: center;
  margin-bottom: 0;
}
.cv-content {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}
.cv-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 28px;
}
.cv-download-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  width: 100%;
}
.cv-download-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  min-width: 240px;
}
.cv-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 46px 40px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--gray-1);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.cv-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.cv-btn-icon {
  width: 32px;
  height: 32px;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.cv-btn:hover .cv-btn-icon {
  color: var(--accent);
}
.cv-btn-lang {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
}
.cv-btn-caption {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.cv-btn-updated {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  opacity: 0.55;
  white-space: nowrap;
  margin-top: 10px;
}
.cv-warning {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: 240px;
  margin: 0;
  background: var(--gray-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: left;
  box-shadow: 0 6px 20px rgba(34, 34, 34, 0.08);
  opacity: 0;
  transform: translate(-50%, -4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
}
@media (hover: hover) and (pointer: fine) {
  .cv-download-item:hover .cv-warning { opacity: 1; transform: translate(-50%, 0); }
}
@media (hover: none), (pointer: coarse) {
  .cv-warning { display: none; }
}
@media (max-width: 760px) {
  .cv-download-grid { flex-direction: column; align-items: stretch; gap: 16px; width: 100%; }
  .cv-download-item { flex: 0 0 auto; min-width: 0; width: 100%; }
  .cv-btn { width: 100%; box-sizing: border-box; padding: 26px 32px; border-radius: 14px; }
  .cv-btn-icon { width: 22px; height: 22px; }
  .cv-btn-lang { font-size: 17px; }
}
@media (max-width: 760px) {
  .cv-section {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    padding-bottom: 70px;
  }
  .cv-section .section-label {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    margin-bottom: 36px;
  }
  .cv-content { width: 100%; }
  html[lang="ja"] .cv-lead { letter-spacing: -0.04em; }
}
.cv-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(34, 34, 34, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.cv-modal-overlay.is-visible { opacity: 1; pointer-events: auto; }
.cv-modal {
  background: var(--gray-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  max-width: 340px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(34, 34, 34, 0.15);
}
.cv-modal-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.cv-modal-text {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.cv-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
@media (max-width: 380px) {
  .cv-modal { padding: 20px; }
}
