/*
 * KHwan.works
 * 흑백, 가는 그로테스크, 넓은 여백, 가는 선. 라벨(왼쪽 좁은 칸) / 내용(오른쪽 넓은 칸) 편집 격자.
 * 모션은 느리고 조용하게: 글줄이 가림막에서 올라오고, 이미지는 아래에서 천천히 열립니다.
 */
/* Timeless Sans · Serif · Text — Timeless Free Font License (licenses/Timeless-LICENSE.pdf): 웹사이트에 넣어 쓰는 것만 허용, 파일을 따로 내려받게 하거나 이름을 바꾸면 안 됨.
   쓰는 페이지에서만 내려받아집니다. 한글 글자는 없어서 한글은 Pretendard로 보입니다. */
@font-face { font-family: "Timeless Sans"; src: url("../fonts/TimelessSans-W661.woff2") format("woff2"); font-weight: 661; font-style: normal; font-display: swap; }
@font-face { font-family: "Timeless Serif"; src: url("../fonts/TimelessSerif-W483.woff2") format("woff2"); font-weight: 483; font-style: normal; font-display: swap; }
@font-face { font-family: "Timeless Text"; src: url("../fonts/TimelessText-W380.woff2") format("woff2"); font-weight: 380; font-style: normal; font-display: swap; }

:root {
  --paper: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #5f5f5f;       /* 보조 글자 */
  --ink-3: #9a9a9a;       /* 라벨 */
  --hair: #e4e4e4;        /* 가는 선 */
  --night: #050505;       /* 검정 무대 */
  --night-ink: #f2f2f2;
  --night-2: rgba(242, 242, 242, .58);
  --night-hair: rgba(242, 242, 242, .16);

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--ink-2);
  --line: var(--hair);
  --accent: var(--ink);
  --bg-soft: #f3f3f3;

  --sans: "Pretendard Variable", Pretendard, "Helvetica Neue", Helvetica, Arial, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  /* 글꼴·두께·크기는 관리자 '디자인' 탭에서 바꾸며, 페이지가 아래 변수를 덮어씁니다 (blocks.js의 designVars) */
  --serif: "Timeless Serif", "Pretendard Variable", Pretendard, Georgia, serif;
  /* 제목용: 영문 글자는 Timeless Serif, 한글은 이 글꼴에 없으므로 Pretendard로 자동 대체 → 한 줄 안에서 혼용 */
  --display: "Timeless Serif", "Pretendard Variable", Pretendard, Georgia, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", serif;
  /* 레이아웃 그리드 (편집 화면 오른쪽 '레이아웃 그리드'에서 px로 바꿈. blocks.js의 layoutCss가 덮어씀) */
  --max: 1440px;
  --margin: 40px;       /* 좌우 마진 */
  --gutter: 40px;       /* 칸 사이 */
  --section-y: 168px;   /* 영역 위아래 여백 */
  --title-gap: 104px;   /* 영역 제목 아래 */
  --nav-h: 64px;
  --ease: cubic-bezier(.22, .61, .21, 1);   /* 부드러운 감속 */
}
@media (max-width: 1024px) { :root { --margin: 24px; --gutter: 24px; --section-y: 120px; --title-gap: 72px; } }
@media (max-width: 600px) { :root { --margin: 16px; --gutter: 16px; --section-y: 88px; --title-gap: 48px; } }
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0b0b;
    --ink: #ededed;
    --ink-2: #a3a3a3;
    --ink-3: #6f6f6f;
    --hair: #242424;
    --bg-soft: #151515;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* 위치를 옮긴 글자가 화면 밖으로 나가도 가로 스크롤이 생기지 않게 */
html, body { overflow-x: clip; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-weight: var(--w-body, 400); font-size: var(--fs-body, 16px); line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
/* 강조: **굵게** → 두께 차이, *기울임* → 세리프 이탤릭 */
strong { font-weight: var(--w-strong, 600); }
/* *강조* → Timeless Serif (기울임 컷이 없어 바로 세운 세리프로) */
em { font-family: var(--serif); font-style: normal; letter-spacing: -0.01em; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--margin); padding-right: var(--margin); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sep { color: var(--ink-3); margin: 0 6px; }

/* 편집 격자: 라벨 칸 + 내용 칸 */
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px var(--gutter); }
@media (max-width: 800px) { .row { grid-template-columns: 1fr; gap: 16px; } }
.label { font-size: 14px; font-weight: 500; color: var(--fg); letter-spacing: 0; }

/* ---------- 메뉴 ---------- */
.nav {
  position: sticky; top: 0; z-index: 10; min-height: var(--nav-h);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 0 max(var(--margin), calc((100% - var(--max)) / 2 + var(--margin)));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: background-color .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease);
}
.nav nav { display: flex; gap: clamp(14px, 2vw, 28px); font-size: 14px; white-space: nowrap; }
.nav nav a { color: var(--muted); transition: color .3s var(--ease); }
.nav nav a:hover { color: var(--fg); }
.nav.on-night { background: transparent; border-bottom-color: transparent; backdrop-filter: none; color: var(--night-ink); }
.nav.on-night nav a { color: var(--night-2); }
.nav.on-night nav a:hover { color: var(--night-ink); }
/* 국문 / 영문 전환 */
.lang { font: inherit; font-size: 13px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; cursor: pointer;
  color: var(--muted); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; transition: border-color .3s var(--ease), color .3s var(--ease); }
.lang .on { color: var(--fg); font-weight: 600; }
.lang .slash { opacity: .5; }
.lang:hover { border-color: var(--fg); }
.lang:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
.nav.on-night .lang { border-color: var(--night-hair); color: var(--night-2); }
.nav.on-night .lang .on { color: var(--night-ink); }
.nav nav { margin-left: auto; }
@media (max-width: 560px) { .nav nav { gap: 12px; font-size: 13px; } .nav { gap: 12px; } .nav nav a[href="#documents"] { display: none; } .lang { padding: 3px 9px; font-size: 12px; } }

/* ---------- 첫 화면 (검정) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: calc(-1 * var(--nav-h));
  min-height: max(640px, 100svh);
  background: var(--night); color: var(--night-ink);
  display: grid; grid-template-rows: auto 1fr auto;
  padding-block: calc(var(--nav-h) + clamp(32px, 6vh, 72px)) clamp(16px, 3vh, 32px);
}
/* 배경: 직접 작업한 제품 이미지를 어둡게. 아래쪽은 글자가 읽히도록 더 어둡게 */
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .42; filter: grayscale(.35); }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,.72) 0%, rgba(5,5,5,.25) 38%, rgba(5,5,5,.35) 62%, var(--night) 100%); }
.hero-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px var(--gutter); align-items: start; }
@media (max-width: 800px) { .hero-top { grid-template-columns: 1fr; } }
.hero-title { font-family: var(--display); font-size: var(--fs-hero, clamp(26px, 3.2vw, 46px)); font-weight: var(--w-display, 300); line-height: 1.25; letter-spacing: var(--tr-display, -0.03em); }
.hero-intro { margin-top: 24px; max-width: 620px; display: grid; gap: 6px; font-size: 15px; font-weight: 300; color: var(--night-2); }
.hero-side { display: grid; gap: 2px; font-size: 15px; font-weight: 300; justify-self: end; text-align: left; }
.hero-side li { white-space: nowrap; }
@media (max-width: 800px) { .hero-side { justify-self: start; } }
.wordmark { align-self: end; overflow: hidden; }
.wordmark span { display: block; font-family: var(--display); font-size: var(--fs-name, clamp(48px, 11.4vw, 184px)); font-weight: var(--w-name, 200); line-height: 1.02; padding-bottom: .1em; letter-spacing: -0.05em; white-space: nowrap; margin-left: -.04em; } /* 아래 여유: g, p 등의 꼬리가 잘리지 않게 */
@media (max-width: 560px) { .wordmark span { white-space: normal; font-size: 19vw; line-height: 1; } }

/* 줄 단위 가림막: 글줄이 아래에서 올라옴 */
.mask { display: block; overflow: hidden; }
.mask > .line { display: block; }

/* ---------- 섹션 공통 ---------- */
.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--line); }
.section-title { font-family: var(--display); font-size: var(--fs-section, clamp(40px, 6vw, 96px)); font-weight: var(--w-display, 300); letter-spacing: calc(var(--tr-display, -0.03em) - 0.015em); line-height: 1; margin-bottom: var(--title-gap); }

/* 요약 숫자 */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr; gap: 40px; } }
.stat { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--fg); }
.stat-num { font-family: var(--display); font-size: clamp(64px, 9vw, 140px); font-weight: 200; line-height: .95; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: .2em; font-weight: 400; letter-spacing: 0; margin-left: .3em; vertical-align: .2em; color: var(--muted); }
.stat-label { font-size: 14px; color: var(--muted); }
.stats.as-text .stat { gap: 0; }
.stat-text { font-family: var(--display); font-size: clamp(20px, 2vw, 28px); font-weight: var(--w-display, 300); line-height: 1.35; letter-spacing: -0.02em; }

/* ---------- 작품 ---------- */
.filters { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 14px; }
.chip { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-3); transition: color .3s var(--ease); }
.chip:hover, .chip.on { color: var(--fg); }
.chip.on { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.works-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: var(--title-gap); }
.works-head .section-title { margin-bottom: 0; }
/* 작품 목록: 3열 격자, 4:3 커버 (비핸스식). 태블릿 2열, 휴대폰 1열 */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 5vw, 80px) var(--gutter); }
@media (max-width: 1024px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .works { grid-template-columns: 1fr; gap: 48px; } }
.work { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.work .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.work .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.work:hover .thumb img { transform: scale(1.025); }
.work-meta { display: grid; gap: 6px; }
.work-no { display: flex; gap: 12px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.work-cat { color: var(--ink-3); }
.work-title { font-family: var(--display); font-size: clamp(19px, 1.55vw, 24px); font-weight: var(--w-display, 300); letter-spacing: -0.025em; line-height: 1.3; }
.work-sub { font-size: 13px; color: var(--muted); }

/* ---------- 소개 ---------- */
.about-rows { display: grid; }
.about-rows > .row { padding-block: 32px; border-top: 1px solid var(--line); }
.about-rows > .row:last-child { border-bottom: 1px solid var(--line); }
.career { display: grid; gap: 28px; }
.career li { display: grid; gap: 2px; }
.career strong { font-size: 18px; font-weight: 500; }
.career p { color: var(--muted); font-size: 15px; }
.tools { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 16px; }
.expertise { display: grid; gap: 22px; }
.expertise strong { display: block; font-size: 17px; font-weight: 500; }
.expertise p { color: var(--muted); font-size: 15px; }

/* ---------- 문서 ---------- */
.docs li > * {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 300;
}
.docs li:first-child > * { border-top: 1px solid var(--line); }
.docs a { transition: padding .5s var(--ease); }
.docs a:hover { padding-left: 8px; }
.doc-off { color: var(--ink-3); }

/* ---------- 마무리 (검정) ---------- */
.contact { background: var(--night); color: var(--night-ink); padding-block: var(--section-y); }
.contact .label { color: var(--night-ink); }
.closing { font-family: var(--display); font-size: clamp(28px, 4.2vw, 64px); font-weight: 200; line-height: 1.22; letter-spacing: -0.035em; max-width: 20em; margin-bottom: clamp(72px, 10vw, 144px); }
.contact-row { padding-top: 32px; border-top: 1px solid var(--night-hair); }
.contact-mail { display: inline-block; font-family: var(--display); font-size: clamp(28px, 4.4vw, 64px); font-weight: 200; letter-spacing: -0.04em; line-height: 1.1;
  border-bottom: 1px solid var(--night-hair); transition: border-color .5s var(--ease); }
.contact-mail:hover { border-bottom-color: var(--night-ink); }
.contact-name { margin-top: 20px; font-size: 14px; color: var(--night-2); }

.footer { padding-block: 28px; color: var(--ink-3); font-size: 13px; }

/* ---------- 작품 상세 ---------- */
.p-head { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(48px, 6vw, 88px); }
.p-label { display: flex; align-items: baseline; gap: 16px; font-size: 14px; color: var(--ink-3); margin-bottom: clamp(32px, 5vw, 64px); flex-wrap: wrap; }
.p-label .serif { color: var(--fg); font-weight: 500; }
.p-head-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px var(--gutter); }
@media (max-width: 800px) { .p-head-grid { grid-template-columns: 1fr; } }
.p-product { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.p-head h1 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 52px); font-weight: 300; line-height: 1.22; letter-spacing: -0.035em; }
.p-info { display: grid; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.p-info div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.p-info dt { color: var(--ink-3); }
.p-desc { color: var(--muted); font-size: 16px; font-weight: 300; }
.p-figure { max-width: var(--max); margin: 0 auto; padding-inline: var(--margin); }
.p-figure img { width: 100%; background: var(--bg-soft); }
.p-section { padding-top: clamp(80px, 10vw, 144px); }
.p-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px var(--gutter); margin-bottom: 40px; }
@media (max-width: 800px) { .p-text { grid-template-columns: 1fr; } }
.p-text h2 { font-size: 15px; font-weight: 500; letter-spacing: 0; }
.p-text p { color: var(--muted); font-size: 17px; font-weight: 300; }
.models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px var(--gutter); }
@media (max-width: 1000px) { .models { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .models { grid-template-columns: 1fr; } }
.model img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--bg-soft); }
.model figcaption { display: grid; gap: 4px; padding-top: 14px; font-size: 15px; }
.model figcaption strong { font-weight: 500; }
.model figcaption span { color: var(--muted); font-size: 14px; }
.next { font-family: var(--display); display: grid; gap: 6px; text-align: right; font-size: clamp(24px, 3vw, 44px); font-weight: 200; letter-spacing: -0.035em;
  margin-top: clamp(96px, 12vw, 176px); padding: 32px 0 16px; border-top: 1px solid var(--line); }
.next .small { font-size: 13px; letter-spacing: 0; font-weight: 400; }

/* ---------- 콘텐츠 블록 (작품 본문·추가 영역) ---------- */
/* 12칸 격자: 블록마다 시작 칸(--col)과 폭(--span)을 정함 */
.blocks { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--blk-gap, clamp(40px, 6vw, 96px)); max-width: var(--max); margin: 0 auto; padding-inline: var(--margin); padding-top: clamp(48px, 7vw, 112px); }
.wrap .blocks { padding-inline: 0; padding-top: 0; }
.blk { width: 100%; min-width: 0; grid-column: var(--col, 1) / span var(--span, 12); }
@media (max-width: 800px) { .blk { grid-column: 1 / -1; } }
.blk-media { overflow: hidden; background: var(--bg-soft); }
.blk-media img { width: 100%; }
.blk figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.blk-grid { display: grid; gap: 40px 16px; align-items: start; }
.blk-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blk-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blk-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 800px) { .blk-grid.cols-3, .blk-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .blk-grid { grid-template-columns: 1fr !important; } }
.blk-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px var(--gutter); }
.blk-text.layout-stack { grid-template-columns: 1fr; }
.blk-text.layout-stack > span:empty { display: none; }
.blk-text.align-center { text-align: center; } .blk-text.align-right { text-align: right; }
@media (max-width: 800px) { .blk-text { grid-template-columns: 1fr; } }
.blk-text h2 { font-family: var(--display); font-size: clamp(22px, 2.4vw, 34px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.25; }
.blk-text p { color: var(--muted); font-size: 17px; font-weight: 300; }
.blk-text.size-l p { font-family: var(--display); color: var(--fg); font-size: clamp(22px, 2.6vw, 36px); line-height: 1.35; letter-spacing: -0.025em; }
/* 자유 배치: 대지 폭에 비례하는 단위(cqw)로 글자 크기를 정해 어떤 화면에서도 같은 구도 */
.cv { position: relative; width: 100%; container-type: inline-size; overflow: hidden; }
.cv.bg-paper { background: var(--bg-soft); }
.cv.bg-night { background: var(--night); color: var(--night-ink); }
.cv .layer { position: absolute; transform-origin: 50% 50%; }
.cv .l-image img { width: 100%; height: auto; }
.cv .l-text { white-space: normal; overflow-wrap: break-word; }
.cv .l-empty { display: block; color: var(--ink-3); font-size: 14px; }
.blk-spacer.s-s { height: 0; } .blk-spacer.s-m { height: 48px; } .blk-spacer.s-l { height: 128px; }
.custom-section .section-title { margin-bottom: var(--title-gap); }

/* 작품 페이지 배경 (편집기의 '스타일') */
body[data-bg="paper"] { --bg: var(--bg-soft); --bg-soft: #e9e9e9; }
body[data-bg="night"] { --bg: var(--night); --fg: var(--night-ink); --muted: var(--night-2); --line: var(--night-hair); --ink-3: rgba(242, 242, 242, .42); --bg-soft: #141414; }

.load-error { padding: 160px 16px; color: var(--muted); text-align: center; }

/* ---------- 직접 추가한 글 상자 ---------- */
/* 영역의 왼쪽 위(콘텐츠 마진 안쪽)가 기준점이고, 편집 화면의 X·Y(translate)로 자리를 정함 */
main > [data-section] { position: relative; }
.free-text { position: absolute; z-index: 3; top: 0; left: max(var(--margin), calc((100% - var(--max)) / 2 + var(--margin)));
  width: max-content; max-width: calc(100% - 2 * var(--margin)); white-space: pre-wrap; font-size: var(--fs-body, 16px); line-height: 1.5; }

/* ---------- 표지 (첫 방문 때 로딩처럼 짧게) ---------- */
/* 사진 상자가 가운데 선에서 위로 열렸다가(선 = 로딩 진행) 다시 선 속으로 닫히고, 표지 전체가 위로 걷힘 */
.cover { display: none; }
html.cover-pending { overflow: hidden; }
.cover-pending .cover {
  display: block; position: fixed; inset: 0; z-index: 60; overflow: hidden;
  background: #0c0a09; color: #f2f2f2; clip-path: inset(0 0 0 0);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif; letter-spacing: -0.01em;
}
.cover .cv-photo { position: absolute; left: 0; right: 0; top: 0; height: 50%; overflow: hidden; clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease) .1s; }
.cover .cv-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.55) brightness(.62) contrast(1.05); transform: scale(1.08); transform-origin: 70% 100%; transition: transform 2.6s var(--ease); }
.cover .cv-photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #0c0a09 0%, rgba(12,10,9,.55) 45%, rgba(12,10,9,.1) 100%), linear-gradient(90deg, rgba(12,10,9,.85) 0%, rgba(12,10,9,.2) 70%, rgba(12,10,9,0) 100%); }
.cover .cv-line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(242,242,242,.55); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .35s linear; }
.cover .cv-top { position: absolute; top: clamp(24px, 3vw, 44px); left: var(--margin); right: var(--margin); display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; }
.cover .cv-text { max-width: 46em; font-size: clamp(12px, 1.05vw, 16px); line-height: 1.5; font-weight: 300; color: rgba(242,242,242,.6); }
.cover .cv-text p + p { margin-top: 1.5em; }
.cover .cv-side { flex: none; font-size: clamp(12px, 1.05vw, 16px); line-height: 1.5; font-weight: 300; }
.cover .cv-side li { white-space: nowrap; }
.cover .cv-name { position: absolute; left: calc(var(--margin) - .055em); right: 0; bottom: clamp(4px, 1.2vw, 20px); overflow: hidden;
  font-family: "Pretendard Variable", Pretendard, sans-serif; font-weight: 100; font-size: 12.4vw; line-height: 1.08; letter-spacing: -0.045em; white-space: nowrap; }
.cover .cv-name span { display: block; padding-bottom: .04em; transform: translateY(105%); transition: transform 1.4s var(--ease) .5s; }
.cover [data-fx] { opacity: 0; transform: translateY(12px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d, 0ms) + 250ms); }
.cover.in .cv-photo { clip-path: inset(0 0 0 0); }
.cover.in .cv-photo img { transform: none; }
.cover.in [data-fx] { opacity: 1; transform: none; }
.cover.in .cv-name span { transform: none; }
.cover.out .cv-photo { clip-path: inset(100% 0 0 0); transition: clip-path .95s cubic-bezier(.7, 0, .25, 1) 0s; }
.cover.out [data-fx] { opacity: 0; transform: translateY(-8px); transition: opacity .55s var(--ease), transform .7s var(--ease); transition-delay: 0s; }
.cover.out .cv-name span { transform: translateY(105%); transition: transform .8s cubic-bezier(.7, 0, .25, 1) 0s; }
.cover.out .cv-line { transform-origin: 100% 50%; transform: scaleX(0); transition: transform .6s cubic-bezier(.7, 0, .25, 1) .45s; }
.cover-pending .cover.gone { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1); }
@media (max-width: 760px) {
  .cover .cv-top { flex-direction: column; gap: 28px; }
  .cover .cv-name { font-size: 18vw; white-space: normal; line-height: 1; }
}

/* ---------- 모션 ---------- */
/* 첫 화면: 재생 전에 내용이 먼저 보였다 사라지지 않도록 숨김 */
.intro-pending .hero-top, .intro-pending .wordmark, .intro-pending .nav nav, .intro-pending .nav .lang { visibility: hidden; }
.intro-pending .hero-media img { opacity: 0; }

/* 스크롤 효과: JS가 html에 fx-ready를 붙였을 때만 숨김 (JS 없음·동작 줄이기면 그대로 보임) */
.fx-ready .fx-up { opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); transition-delay: var(--d, 0ms); }
.fx-ready .fx-up.in { opacity: 1; transform: none; }
.fx-ready .fx-lines .line { transform: translateY(105%); transition: transform 1.3s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + var(--d, 0ms)); }
.fx-ready .fx-lines.in .line { transform: none; }
.fx-ready .fx-open { clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease); transition-delay: var(--d, 0ms); }
.fx-ready .fx-open.in { clip-path: inset(0 0 0 0); }
.fx-ready .fx-open img { transform: scale(1.08); transition: transform 2.2s var(--ease); }
.fx-ready .fx-open.in img { transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.fx-ready .work:hover .fx-open.in img { transform: scale(1.025); transition-duration: 1.6s; }

/* 안내 창 (예: 영문 준비 중) */
.kh-dialog { margin: auto; border: 1px solid var(--line); border-radius: 14px; padding: 28px 28px 22px; width: min(360px, calc(100% - 32px)); background: var(--bg); color: var(--fg); text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .18); }
.kh-dialog::backdrop { background: rgba(10, 10, 10, .42); }
.kh-dialog[open] { animation: kh-pop .3s var(--ease); }
.kh-dialog-t { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.kh-dialog-s { margin-top: 6px; font-size: 14px; color: var(--muted); }
.kh-dialog form { margin-top: 20px; }
.kh-dialog-b { font: inherit; font-size: 14px; padding: 8px 24px; border-radius: 999px; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); cursor: pointer; }
.kh-dialog-b:hover { opacity: .85; }
.kh-dialog-b:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
@keyframes kh-pop { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .kh-dialog[open] { animation: none; } }
