@font-face{font-family:'Freesentation';font-weight:100;font-style:normal;font-display:swap;src:url('/fonts/Freesentation-1-Thin.woff2') format('woff2')}
@font-face{font-family:'Freesentation';font-weight:300;font-style:normal;font-display:swap;src:url('/fonts/Freesentation-3-Light.woff2') format('woff2')}
@font-face{font-family:'Freesentation';font-weight:400;font-style:normal;font-display:swap;src:url('/fonts/Freesentation-4-Regular.woff2') format('woff2')}
@font-face{font-family:'Freesentation';font-weight:500;font-style:normal;font-display:swap;src:url('/fonts/Freesentation-5-Medium.woff2') format('woff2')}
@font-face{font-family:'Freesentation';font-weight:600;font-style:normal;font-display:swap;src:url('/fonts/Freesentation-6-SemiBold.woff2') format('woff2')}
@font-face{font-family:'Freesentation';font-weight:700;font-style:normal;font-display:swap;src:url('/fonts/Freesentation-7-Bold.woff2') format('woff2')}
@font-face{font-family:'Freesentation';font-weight:800;font-style:normal;font-display:swap;src:url('/fonts/Freesentation-8-ExtraBold.woff2') format('woff2')}
/* heejeankim.com — 원본 Wix 사이트(데스크톱 1440px 기준) 수치를 따라 맞춤 */
:root {
  --ink: #2d2d2d;
  --sub: #626262;
  --bg: #fff;
  --helv: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --kr: "Freesentation", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --wrap: 962px;
  --header-h: 121px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--kr); font-weight: 400;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: 100%; max-width: calc(var(--wrap) + 32px); margin: 0 auto; padding: 0 16px; }
.w100 { font-weight: 100 } .w300 { font-weight: 300 } .w400 { font-weight: 400 } .w500 { font-weight: 500 }
.w600 { font-weight: 600 } .w700 { font-weight: 700 } .w800 { font-weight: 800 }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); height: var(--header-h); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--helv); font-weight: 700; font-size: 44px; letter-spacing: -0.01em; text-decoration: none; }
.nav { display: flex; gap: 14px; margin-right: -2px; }
.pill { display: inline-flex; align-items: center; justify-content: center; width: 104px; height: 50px;
  border: 1px solid var(--ink); border-radius: 17px; font-family: var(--helv); font-size: 19px; text-decoration: none;
  transition: background .2s, color .2s; }
.pill:hover, .pill.is-active { background: var(--ink); color: #fff; }
.menu-btn { display: none; }

/* ---------- footer ---------- */
.site-footer { font-family: var(--helv); font-size: 16px; padding: 110px 0 54px; }
.site-footer .wrap { padding-left: 10px; }

/* ---------- common ---------- */
.label { font-family: var(--helv); font-weight: 700; font-size: 24px; line-height: 1.15; }

/* ---------- home ---------- */
.home { padding-top: 105px; padding-left: 21px; }
.intro { font-weight: 500; font-size: 28px; line-height: 1.3; }
.clients { margin-top: 181px; }
.clients.inhouse { margin-top: 93px; }
.client-list { margin-top: 29px; }
.client-list li { display: flex; align-items: center; flex-wrap: wrap; column-gap: 11px; }
.client-list li + li { margin-top: 17px; }
.client-name { font-family: var(--helv); font-weight: 700; font-size: 44px; line-height: 44px; letter-spacing: -0.01em; }
.client-desc { font-weight: 500; font-size: 20px; line-height: 20px; color: var(--sub); }
.works { margin-top: 181px; }
.categories { margin-top: 20px; font-weight: 500; font-size: 28px; line-height: 1.3; }
.categories .sep { font-weight: 100; }
.collage { position: relative; margin: 36px 0 0 -16px; width: 980px; aspect-ratio: var(--ratio); }
.tile { display: block; position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); overflow: hidden;
  color: #fff; text-decoration: none; background: #ddd; }
.tile img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .35s; }
.tile::after { content: ""; position: absolute; inset: 0; background: rgba(100, 100, 100, .575); }
a.tile:hover img { filter: none; }
.tile-cap { position: absolute; z-index: 1; left: 30px; right: 30px; bottom: 32px; display: flex; flex-direction: column; }
.tile-cap strong { font-weight: 800; font-size: 24px; line-height: 30px; }
.tile-cap span { font-weight: 400; font-size: 17px; line-height: 21px; }

/* ---------- about ---------- */
.about { padding-top: 98px; }
.about-head { font-weight: 600; font-size: 28px; line-height: 1.3; }
.about-body { margin-top: 98px; margin-bottom: 16px; max-width: 430px; font-size: 17px; line-height: 1.6; }
.about-body p + p { margin-top: 27px; }

/* ---------- contact ---------- */
.contact { padding-top: 46px; min-height: 480px; }
.mail { display: flex; align-items: center; font-family: var(--helv); font-weight: 700; font-size: 34px; }
.mail a { text-decoration: none; }
.mail a:hover { text-decoration: underline; }
.mail-icon { width: 60px; display: inline-flex; }
.mail-icon svg { width: 22px; height: 22px; }

/* ---------- work detail ---------- */
.work { padding-top: 120px; }
.work-title { font-size: 44px; line-height: 1; font-weight: 400; }
.work-title .bar { font-weight: 400; }
.work-meta { display: flex; margin-top: 30px; }
.work-meta > div { width: 319px; }
.work-meta dt { font-family: var(--helv); font-weight: 700; font-size: 16px; }
.work-meta dd { margin-top: 10px; font-weight: 600; font-size: 24px; }
.work-body { margin-top: 0; }
.sec { display: grid; grid-template-columns: 444px 444px; column-gap: 52px; align-items: start; }
.sec, .col > *, .masonry-wrap { margin-top: var(--g, 0); }
.col { min-width: 0; }
.col p { max-width: 395px; font-size: 17px; line-height: 1.6; }
.col .work-link { font-size: 16px; line-height: 1.2; }
.col .work-link a { text-decoration: underline; text-underline-offset: 3px; }
.col .work-img { width: 444px; object-fit: cover; }

.masonry-wrap { width: 729px; margin-left: auto; margin-right: auto; }
.masonry { margin-top: 12px; display: flex; gap: 15px; align-items: flex-start; }
.m-col { flex: 1; display: flex; flex-direction: column; gap: 15px; min-width: 0; }
.masonry:not(.is-ready) { display: block; columns: 3; column-gap: 15px; }
.masonry:not(.is-ready) .m-item { break-inside: avoid; margin-bottom: 15px; }
.m-item { position: relative; display: block; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .33);
  text-decoration: none; color: #000; cursor: zoom-in; }
.m-item img { width: 100%; transition: opacity .25s; }
.m-item:hover img { opacity: .6; }
.m-item .desc { display: block; padding: 18px 14px 20px; text-align: center; font-size: 15px; line-height: 1.35; }

.prevnext { display: flex; justify-content: space-between; margin: 113px 0 54px; }
.pn { display: inline-flex; align-items: center; gap: 12px; font-family: var(--helv); font-weight: 700;
  font-size: 20px; text-decoration: none; }
.pn svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.3; }
.pn:hover span { text-decoration: underline; text-underline-offset: 4px; }

.notfound { padding-top: 98px; min-height: 400px; }
.notfound p { margin-top: 40px; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(24, 24, 24, .94); display: none;
  align-items: center; justify-content: center; flex-direction: column; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: calc(100vw - 240px); max-height: calc(100vh - 160px); width: auto; height: auto; }
.lightbox .lb-desc { color: #eee; margin-top: 16px; font-size: 16px; min-height: 1.4em; text-align: center; padding: 0 20px; }
.lightbox button { position: absolute; background: none; border: 0; padding: 12px; cursor: pointer; color: #fff; }
.lightbox button svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lb-close { top: 34px; right: 40px; }
.lb-prev { left: 36px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 36px; top: 50%; transform: translateY(-50%); }

/* ---------- 중간 폭 (태블릿) ---------- */
@media (max-width: 1000px) and (min-width: 761px) {
  .sec { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .col .work-img { width: 100%; }
  .collage { margin-left: 0; width: 100%; }
}

/* ---------- 모바일 ---------- */
@media (max-width: 760px) {
  :root { --header-h: 84px; }
  .wrap { padding: 0 28px; }
  .logo { font-size: 30px; }
  .nav { display: none; }
  .menu-btn { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; width: 44px; height: 44px;
    justify-content: center; background: none; border: 0; padding: 0; cursor: pointer; position: relative; z-index: 60; }
  .menu-btn span { display: block; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .25s, width .25s; }
  .menu-btn span:first-child { width: 26px; }
  .menu-btn span:last-child { width: 18px; }
  body.menu-open .menu-btn span:first-child { width: 26px; transform: translateY(5px) rotate(45deg); }
  body.menu-open .menu-btn span:last-child { width: 26px; transform: translateY(-5px) rotate(-45deg); }
  body.menu-open .nav { display: flex; position: fixed; inset: 0; z-index: 55; background: var(--bg);
    flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
  body.menu-open .pill { width: 180px; height: 60px; font-size: 22px; }
  body.menu-open { overflow: hidden; }

  .site-footer { padding: 70px 0 40px; font-size: 13px; }
  .site-footer .wrap { padding-left: 28px; }

  .home { padding-top: 24px; padding-left: 28px; }
  .intro { font-size: 17px; line-height: 1.5; }
  .clients { margin-top: 90px; }
  .clients.inhouse { margin-top: 60px; }
  .label { font-size: 17px; }
  .client-list { margin-top: 10px; }
  .client-list li { flex-direction: column; align-items: flex-start; }
  .client-list li + li { margin-top: 14px; }
  .client-name { font-size: 40px; line-height: 1.15; }
  .client-desc { font-size: 15px; }
  .works { margin-top: 60px; }
  .categories { margin-top: 8px; font-size: 17px; }
  .collage { aspect-ratio: auto; margin: 24px 0 0; width: 100%; }
  .client-list li { align-items: flex-start; }
  .client-desc { line-height: 1.3; }
  .tile { position: relative; left: auto; top: auto; width: 100%; height: auto; aspect-ratio: 16 / 10; margin-bottom: 2px; }
  .tile-cap { left: 22px; bottom: 22px; }
  .tile-cap strong { font-size: 17px; line-height: 1.35; }
  .tile-cap span { font-size: 14px; line-height: 1.35; }

  .about { padding-top: 40px; }
  .about-head { font-size: 22px; }
  .about-body { margin-top: 50px; font-size: 15px; }

  .contact { padding-top: 30px; min-height: 360px; }
  .mail { font-size: 20px; }
  .mail-icon { width: 34px; }
  .mail-icon svg { width: 18px; height: 18px; }

  .work { padding-top: 30px; }
  .work-title { font-size: 26px; line-height: 1.3; }
  .work-meta { flex-direction: column; gap: 22px; margin-top: 30px; }
  .work-meta dt { font-size: 14px; }
  .work-meta dd { margin-top: 4px; font-size: 18px; }
  .sec { display: flex; flex-direction: column; gap: 40px; margin-top: 40px; }
  .sec:first-child { margin-top: 60px; }
  .col > * { margin-top: 27px; }
  .col > :first-child { margin-top: 0; }
  .col .lead + .para { margin-top: 50px; }
  .col .work-link { margin-top: 30px; }
  .col .work-link.follows-link { margin-top: 4px; }
  .col.has-img { order: -1; }
  .col p { max-width: none; font-size: 15px; }
  .col .work-img { width: 100%; }

  .masonry-wrap { width: 100%; margin-top: 60px; }
  .label { font-size: 22px; }
  .masonry { margin-top: 12px; gap: 12px; }
  .m-col { gap: 12px; }
  .masonry:not(.is-ready) { columns: 2; }
  .m-item .desc { font-size: 13px; padding: 12px 8px 14px; }

  .prevnext { margin: 60px 0 0; }
  .pn { font-size: 17px; }

  .lightbox img { max-width: 100vw; max-height: calc(100vh - 180px); }
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
  .lb-close { top: 16px; right: 16px; }
}
