:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #0c0c0f;
  --ink: #fff;
  --body: rgba(255, 255, 255, .74);
  --muted: rgba(255, 255, 255, .55);
  --muted-2: rgba(255, 255, 255, .42);
  --line: rgba(255, 255, 255, .13);
  --wrap: 1250px;
  --gutter: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
::selection { background: rgba(255, 255, 255, .85); color: #000; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.main { animation: fade-in .8s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hd-drop { from { opacity: 0; transform: translateY(-100%); } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(60px); } }

/* ---------- 반짝이는 별 ---------- */
.star {
  position: relative; display: inline-block; flex: none; width: 14px; height: 14px;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 7px rgba(170, 190, 255, .85));
  animation: twinkle 2.8s ease-in-out infinite;
}
.star::before {
  content: ''; position: absolute; inset: 0; background: #fff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.star::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: radial-gradient(circle, #fff, rgba(255, 255, 255, 0) 70%); }
@keyframes twinkle {
  0%, 100% { opacity: .5; transform: scale(.78) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.06) rotate(18deg); }
}

/* ---------- 헤더 (위에서 내려옴) ---------- */
.hd {
  position: relative; z-index: 30; animation: hd-drop 1s var(--ease) both;
  background: rgba(0, 0, 0, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hd-in { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.logo { font-size: 22px; font-weight: 400; letter-spacing: .28em; white-space: nowrap; color: #fff; }
.gnb { display: flex; align-items: center; gap: 4px; margin-right: -18px; }
.gi { position: relative; }
.gl { display: block; padding: 14px 18px; font-size: 12px; letter-spacing: .14em; color: var(--muted); transition: color .25s; }
.gl:hover, .gl.on { color: #fff; }
.gnb .sub {
  position: absolute; left: 50%; top: calc(100% - 4px); width: max-content; padding: 6px;
  background: rgba(14, 14, 18, .92); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: .25s;
}
.gi:hover .sub, .gi:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnb .sub a { display: block; padding: 7px 16px; border-radius: 8px; text-align: center; font-size: 11px; letter-spacing: .14em; color: rgba(255, 255, 255, .6); text-transform: uppercase; transition: background .2s, color .2s; }
.gnb .sub a:hover { background: rgba(255, 255, 255, .07); color: #fff; }

.menu-btn { display: none; position: relative; width: 40px; height: 40px; margin-right: -8px; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 1px; background: #fff; transition: transform .3s, top .3s; }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 23px; }
.menu-open .menu-btn span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 20px; transform: rotate(-45deg); }

.m-nav {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto;
  padding: 110px 28px 40px; background: #000;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.menu-open { overflow: hidden; }
.menu-open .m-nav { opacity: 1; visibility: visible; }
.m-nav > a { display: block; padding: 14px 0; font-size: 20px; letter-spacing: .22em; color: #fff; }
.m-sub { display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 0 0 10px; }
.m-sub a { font-size: 13px; letter-spacing: .16em; color: var(--muted); padding: 6px 0; text-transform: uppercase; }

/* ---------- 홈 ---------- */
.hero { padding: 150px 0 170px; text-align: center; }
.hero-logo { width: auto; max-width: min(360px, 72vw); max-height: 220px; margin: 0 auto 64px; }
.hero-mark { font-size: clamp(42px, 7.6vw, 96px); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.hero-name { font-size: 19px; font-weight: 400; letter-spacing: .32em; padding-left: .32em; }
.hero-tag { margin-top: 14px; font-size: 10px; letter-spacing: .34em; padding-left: .34em; color: rgba(255, 255, 255, .85); text-transform: uppercase; }
.hero-mark + .hero-tag { margin-top: 30px; }

/* 첨부 이미지의 윗부분을 깔고, 가장자리부터 검게. 첫 화면을 꽉 채워서 프로젝트는 스크롤해야 나타나게 */
.home .hd { position: absolute; top: 0; left: 0; right: 0; }
.home .hero {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  min-height: 100vh; min-height: 100svh; padding: 92px 0;
  background: #000 var(--hero-bg) center top / max(100%, 1100px) auto no-repeat;
}
.home .hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 72% 90% at 50% 40%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .55) 72%, #000 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 60%, #000 100%);
}
.home .hero-in { position: relative; }
/* 제목 뒤: 가운데가 가장 진하고 바깥으로 옅어지는 가로로 긴 타원 */
.home .hero-copy { position: relative; display: inline-block; isolation: isolate; }
.home .hero-copy::before {
  content: ''; position: absolute; inset: -65% -32%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .78), rgba(0, 0, 0, .55) 42%, rgba(0, 0, 0, .2) 74%, rgba(0, 0, 0, 0));
  animation: fade-in 1.2s ease .2s both;
}
.home .hero-mark, .home .hero-name { text-shadow: 0 6px 40px rgba(0, 0, 0, .35); }
.home .hero-mark, .home .hero-name, .home .hero-logo { animation: hero-rise 1.2s var(--ease) .35s both; }
.home .hero-tag { animation: hero-rise 1.2s var(--ease) .55s both; }

.band { padding: 110px 0; }
.split { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.split.center { align-items: center; }
.sec-title { font-size: 20px; font-weight: 400; letter-spacing: .3em; }
.sec-sub { margin-top: 14px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.sec-more { display: inline-block; margin-top: 30px; padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: 11px; letter-spacing: .16em; }

/* 프로젝트: 왼쪽 카테고리 세로 목록 + 오른쪽 작품 슬라이드 */
.wk-cats { max-width: 340px; margin-top: 44px; border-top: 1px solid var(--line); }
.wk-cat { display: flex; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); color: rgba(255, 255, 255, .4); transition: color .3s; }
.wk-cat:hover, .wk-cat.on { color: #fff; }
.wk-star { display: inline-grid; place-items: center; width: 0; margin-right: 0; opacity: 0; scale: .2; transition: width .45s var(--ease), margin-right .45s var(--ease), opacity .4s, scale .5s var(--ease); }
.wk-cat.on .wk-star { width: 16px; margin-right: 16px; opacity: 1; scale: 1; }
.wk-name { flex: 1; font-size: 18px; letter-spacing: .26em; text-transform: uppercase; }
.wk-count { font-size: 11px; letter-spacing: .1em; color: rgba(255, 255, 255, .4); }
.wk-cats + .sec-more { margin-top: 28px; }

.slider { position: relative; overflow: hidden; background: #000; }
.slider[hidden] { display: none; }
.slides { display: flex; transition: transform .7s cubic-bezier(.4, 0, .2, 1); touch-action: pan-y; }
.slide { flex: 0 0 100%; display: block; user-select: none; }
.slide-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); }
.slide-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 1.4s ease; }
.slide:hover .slide-img img { transform: scale(1.03); }
.slide-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; letter-spacing: .5em; padding-left: .5em; color: rgba(255, 255, 255, .3); text-transform: uppercase; }
.slide-cap { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 62px; padding: 0 24px; background: var(--panel); border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; }
.slide-n { flex: none; font-size: 10px; letter-spacing: .1em; color: rgba(255, 255, 255, .4); }
.slide-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; letter-spacing: .04em; text-transform: none; }
.slide-t small { margin-left: 12px; font-size: 10px; letter-spacing: .14em; color: rgba(255, 255, 255, .45); text-transform: uppercase; }
.sl-btn {
  position: absolute; top: calc((100% - 62px) / 2); width: 32px; height: 32px; margin-top: -16px;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .75); color: #fff; background: rgba(0, 0, 0, .12);
  transition: background .2s;
}
.sl-btn:hover { background: rgba(0, 0, 0, .35); }
.sl-btn svg { width: 16px; height: 16px; }
.sl-btn.prev { left: 16px; }
.sl-btn.next { right: 16px; }

.profile { align-self: start; }
.pf-name { font-size: 20px; font-weight: 500; }
.pf-handle { margin-top: 2px; font-size: 12px; color: rgba(255, 255, 255, .5); }
.pf-bio { margin-top: 22px; font-size: 13px; line-height: 2; color: rgba(255, 255, 255, .78); }
.career { margin-top: 22px; font-size: 12px; line-height: 1.9; color: rgba(255, 255, 255, .6); }
.career .sub { padding-left: 10px; }
.career .gap { height: 14px; }

/* ---------- 맨 아래 SNS 아이콘 버튼 ---------- */
.sns { display: flex; justify-content: center; gap: 14px; padding: 8px 0 56px; }
.sns-btn { display: grid; place-items: center; width: 40px; height: 40px; color: rgba(255, 255, 255, .55); transition: color .25s, transform .25s; }
.sns-btn svg { width: 26px; height: 26px; }
.sns-btn:hover, .sns-btn:focus-visible { color: #fff; transform: translateY(-2px); }

/* ---------- 목록 / 공통 머리 (제목은 아래에서 올라옴) ---------- */
.page-head { padding-top: 90px; padding-bottom: 60px; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 18px; font-size: 11px; letter-spacing: .24em; color: var(--muted); text-transform: uppercase; animation: hero-rise 1.1s var(--ease) .3s both; }
.eyebrow:hover { color: #fff; }
.page-title { font-size: 22px; font-weight: 400; letter-spacing: .3em; padding-left: .3em; line-height: 1.5; animation: hero-rise 1.2s var(--ease) .35s both; }
.page-title.tight { letter-spacing: .08em; padding-left: .08em; }
.page-sub { margin-top: 12px; font-size: 12px; color: var(--muted); white-space: pre-wrap; animation: hero-rise 1.2s var(--ease) .5s both; }

/* 구분선: 왼쪽에서 그어지며 끝의 별이 지나가듯 */
.page-line { position: relative; display: block; width: min(320px, 64vw); height: 14px; margin: 24px auto 0; }
.page-line .comet {
  position: absolute; left: 0; top: 50%; width: 100%; height: 1px; margin-top: -.5px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, .2) 45%, rgba(255, 255, 255, .8));
  animation: comet-tail 1.6s var(--ease) .75s both;
}
.page-line .star { position: absolute; top: 50%; left: 100%; margin: -7px 0 0 -7px; animation: comet-head 1.6s var(--ease) .75s both, twinkle 2.8s ease-in-out 2.4s infinite; }
@keyframes comet-tail { from { width: 0; } }
@keyframes comet-head { from { left: 0; opacity: 0; } 12% { opacity: 1; } }

.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 30px; animation: hero-rise 1.2s var(--ease) .65s both; }
.tabs a { padding-bottom: 7px; border-bottom: 1px solid transparent; font-size: 11px; letter-spacing: .12em; color: var(--muted-2); text-transform: uppercase; transition: color .2s; }
.tabs a:hover { color: #fff; }
.tabs a.on { color: #fff; border-color: #fff; }
.page-body { padding-bottom: 120px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; }
.card { display: block; }
.card-img { position: relative; aspect-ratio: 1; overflow: hidden; background: #141414; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.card:hover .card-img img { transform: scale(1.035); }
.card-cap { padding: 12px 6px 0; text-align: center; }
.card-cap strong { display: block; font-size: 13px; font-weight: 400; }
.card-cap span { display: block; margin-top: 1px; font-size: 10px; letter-spacing: .06em; color: rgba(255, 255, 255, .45); text-transform: uppercase; }
.band .grid { gap: 22px 12px; }
.empty { padding: 110px 0; text-align: center; font-size: 13px; color: var(--muted-2); }

/* ---------- 작품 상세 ---------- */
.preview-bar { padding: 10px; text-align: center; font-size: 12px; color: #fff; background: rgba(255, 255, 255, .1); }
.narrow { max-width: calc(1000px + var(--gutter) * 2); }
.work-desc { max-width: 720px; margin: 0 auto 64px; text-align: center; font-size: 14px; line-height: 2; color: var(--body); }
.work-desc a, .contact-text a, .pf-bio a { text-decoration: underline; text-underline-offset: 3px; }
.work-videos { display: grid; gap: 20px; margin-bottom: 20px; }
.vid { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-link { text-align: center; }
.work-media { display: grid; gap: 20px; }
.work-media img, .work-media video { width: auto; height: auto; max-width: 100%; margin: 0 auto; }
.work-media video { width: 100%; background: #000; }
.work-media.seamless { gap: 0; }
.work-media.seamless img { width: 100%; }
.work-link { margin-top: 56px; text-align: center; }
.work-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-top: 100px; padding-top: 30px; border-top: 1px solid var(--line); font-size: 13px; }
.work-nav small { display: block; margin-bottom: 2px; font-size: 10px; letter-spacing: .2em; color: var(--muted-2); }
.work-nav span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-nav .prev { justify-self: start; max-width: 100%; }
.work-nav .next { justify-self: end; max-width: 100%; text-align: right; }
.work-nav a:hover span { color: var(--muted); }
.to-list { display: grid; place-items: center; width: 44px; height: 44px; color: var(--muted-2); transition: color .2s; }
.to-list:hover { color: #fff; }
.to-list svg { width: 16px; height: 16px; }

/* ---------- 버튼 / 연락처 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 28px; border: 1px solid #fff;
  background: #fff; color: #000; font-size: 12px; letter-spacing: .06em;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: transparent; color: #fff; }
.btn.line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn.line:hover { border-color: #fff; }
.btn:disabled { opacity: .7; cursor: default; }

.contact { max-width: 680px; margin: 0 auto; text-align: center; }
.contact-text { font-size: 14px; line-height: 2.05; color: var(--body); }
.mail-box { margin-top: 56px; padding: 58px 28px 56px; background: var(--panel); border: 1px solid rgba(255, 255, 255, .08); }
.mail-label { font-size: 10px; letter-spacing: .34em; padding-left: .34em; color: var(--muted); }
.mail { display: block; margin-top: 14px; font-size: clamp(22px, 4.2vw, 34px); font-weight: 300; letter-spacing: .02em; word-break: break-all; }
.mail:hover { color: var(--muted); }
.mail-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }

/* ---------- 스크롤해서 화면에 들어오면 아래에서 위로 ---------- */
.js .rv { opacity: 0; transform: translateY(70px); transition: opacity 1s ease, transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- 작은 화면 ---------- */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .hd { position: sticky; top: 0; transition: background .3s; }
  .hd.scrolled { background: rgba(0, 0, 0, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .home .hd { position: fixed; }
  .hd-in { height: 66px; }
  .logo { font-size: 16px; letter-spacing: .24em; }
  .gnb { display: none; }
  .menu-btn { display: block; }
  .hero { padding-top: 96px; padding-bottom: 116px; }
  .home .hero { padding: 66px 0; }
  .hero-logo { margin-bottom: 44px; }
  .band { padding: 72px 0; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .sec-more { margin-top: 18px; }
  .wk-cats { max-width: none; margin-top: 30px; }
  .wk-cat { padding: 15px 0; }
  .wk-name { font-size: 16px; }
  .page-head { padding-top: 58px; padding-bottom: 44px; }
  .page-title { font-size: 19px; letter-spacing: .24em; padding-left: .24em; }
  .page-title.tight { letter-spacing: .06em; padding-left: .06em; }
  .page-body { padding-bottom: 100px; }
  .grid { gap: 22px 8px; }
  .work-desc { margin-bottom: 44px; text-align: left; }
  .work-media { gap: 12px; }
  .work-nav { margin-top: 70px; }
  .sns { padding-bottom: 44px; }
}
@media (max-width: 520px) {
  .slide-cap { height: 52px; padding: 0 16px; }
  .sl-btn { top: calc((100% - 52px) / 2); }
  .card-cap strong { font-size: 12px; }
  .mail-box { padding: 44px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .main, .hd, .home .hero-copy::before, .home .hero-mark, .home .hero-name, .home .hero-logo, .home .hero-tag,
  .eyebrow, .page-title, .page-sub, .tabs, .page-line .comet, .page-line .star, .star { animation: none; }
  .slides, .slide-img img, .card-img img { transition: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
}
