/* Trusha Neogi — 포트폴리오 클론(정적 재구축). 원본: Framer 사이트. 사진/문구는 교체용 플레이스홀더. */
:root {
  --bg: #fbfbf9;
  --ink: #1a1a1a;
  --ink-2: #5b5b5b;
  --muted: #9a9a9a;
  --faint: #cfcfcf;
  --dark: #1b1b1b;
  --dark-2: #262626;
  --hairline: #ececec;
  --blue: #2f7fff;
  --accent: #6c4cff;
  --pill: #141414;
  --maxw: 1080px;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --hand: "Caveat", cursive;
  --script: "Dancing Script", cursive;
  --dict: "Lora", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x는 html에 clip으로 — body에 hidden을 주면 body가 세로 스크롤 컨테이너가 돼 문서 스크롤이 막힘 */
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }

/* ── 커스텀 커서(점 → Open 알약) ── */
.cursor { position: fixed; top: 0; left: 0; width: 0; height: 0; z-index: 9999; pointer-events: none; }
.cursor .dot {
  position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference; transform: translate(-50%, -50%) scale(1);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .2s;
}
.cursor .pill {
  position: absolute; top: 0; left: 0; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; color: #1a1a1a; padding: 13px 24px; border-radius: 999px;
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 21px;
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
  transform: translate(-50%, -50%) scale(.5); opacity: 0;
  transition: transform .32s cubic-bezier(.2,.85,.25,1), opacity .22s ease;
}
.cursor .pill b { font-style: normal; font-family: var(--sans); font-weight: 700; }
.cursor.open .dot { transform: translate(-50%, -50%) scale(0); opacity: 0; }
.cursor.open .pill { transform: translate(-50%, -50%) scale(1); opacity: 1; }
/* 터치/커서 없는 기기에선 숨김 */
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* 도트 그리드 배경 */
.dotgrid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, #d9d9d3 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 55%, transparent 100%);
  opacity: 0.7;
}
main { position: relative; z-index: 1; }

/* ── 내비게이션 ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
  transition: padding .3s ease, background .3s ease, box-shadow .3s ease;
}
/* 스크롤하면 내비가 살짝 줄고 배경/블러가 생김 */
.nav.scrolled {
  padding-top: 13px; padding-bottom: 13px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--hairline);
}
.logo { font-weight: 800; font-size: 22px; letter-spacing: -0.03em; transition: opacity .2s; }
.logo:hover { opacity: .6; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { position: relative; font-size: 16px; font-weight: 500; color: #2a2a2a; transition: color .2s; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px;
  background: currentColor; border-radius: 2px; transition: right .28s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover { color: #000; }
.nav-links a:hover::after { right: 0; }
.btn-pill {
  background: var(--pill); color: #fff; font-weight: 600; font-size: 15px;
  padding: 12px 26px; border-radius: 999px; transition: transform .2s, opacity .2s;
}
.btn-pill:hover { transform: translateY(-1px); opacity: .9; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ── 히어로 ── */
.hero {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(60px, 12vh, 150px) 20px 40px; text-align: center;
}
.hero-title { position: relative; z-index: 2; line-height: 1.08; letter-spacing: -0.03em; }
.hero-title .sans { display: block; font-weight: 700; font-size: clamp(30px, 6vw, 58px); }
/* 배너 글자 단위(커서 근접 시 볼드·팝) — 두 줄 모두 적용 */
.hero-title .ch {
  display: inline-block;
  font-variation-settings: 'wght' var(--w);
  transform: translateY(var(--y, 0)) scale(var(--s, 1));
  transition: font-variation-settings .22s ease, transform .22s cubic-bezier(.2,.8,.2,1);
  will-change: transform, font-variation-settings;
}
.hero-title .sans .ch { --w: 700; }
.hero-title .serif .ch { --w: 500; }
.hero-title .sp { display: inline-block; }
.hero-title .sans .sp { width: 0.26em; }
.hero-title .serif .sp { width: 0.22em; }
/* 커서를 따라다니는 원(부드러운 글로우) */
.hero-orb {
  position: fixed; left: 0; top: 0; width: 300px; height: 300px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(108, 76, 255, 0.18), rgba(255, 92, 122, 0.10) 45%, transparent 70%);
  pointer-events: none; z-index: 1; opacity: 0; transition: opacity .35s ease;
  filter: blur(6px);
}
.hero-orb.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-orb { display: none; } }
.hero-title .serif {
  display: block; font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(28px, 5.4vw, 54px); letter-spacing: -0.01em; margin-top: 6px;
}
.prev {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  color: var(--muted); font-size: 19px; font-weight: 500; margin-top: 34px;
}
.prev b { font-weight: 800; color: var(--ink); }
.prev-logo { width: 26px; height: 26px; border-radius: 7px; box-shadow: var(--shadow-sm); }

/* 부채꼴 카드 클러스터 */
.fan {
  position: relative; height: 300px; margin: 56px auto 0; max-width: 720px;
}
.fan-card {
  position: absolute; left: 50%; top: 30px; width: 190px; min-height: 210px;
  transform: translateX(calc(-50% + var(--x))) translateY(var(--y)) rotate(var(--rot));
  border-radius: 16px; padding: 16px 15px; box-shadow: 0 18px 40px rgba(0,0,0,.14);
  transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .5s ease, box-shadow .3s ease;
}
/* 등장 전(부채꼴 아래에서 날아오름) — .fan.ready가 붙으면 제자리로 */
.fan:not(.ready) .fan-card {
  opacity: 0;
  transform: translateX(calc(-50% + var(--x) * 0.4)) translateY(90px) rotate(0deg) scale(.9);
}
.fan.ready .fan-card:nth-child(1) { transition-delay: .05s; }
.fan.ready .fan-card:nth-child(2) { transition-delay: .13s; }
.fan.ready .fan-card:nth-child(3) { transition-delay: .21s; }
.fan.ready .fan-card:nth-child(4) { transition-delay: .29s; }
.fan-card:hover {
  transform: translateX(calc(-50% + var(--x))) translateY(calc(var(--y) - 16px)) rotate(0deg) scale(1.03);
  box-shadow: 0 28px 56px rgba(0,0,0,.22); z-index: 5; transition-delay: 0s;
}
.fan-card.sticky { background: #f6e79c; }
.sticky-title { font-family: var(--hand); font-size: 17px; color: #6b5e1e; margin-bottom: 10px; }
.sticky-list { font-family: var(--hand); font-size: 15px; color: #4a431a; line-height: 1.9; }
.sticky-list li { counter-increment: s; }
.sticky-list li::before { content: counter(s) ". "; }
.sticky-list { counter-reset: s; }
.fan-card.dark { background: #1e1e1e; color: #fff; display: flex; flex-direction: column; }
.me-mark { font-family: var(--dict); font-size: 26px; font-weight: 600; }
.me-mark .serif-i { font-style: italic; }
.dark-copy { font-size: 13.5px; font-weight: 600; line-height: 1.4; margin-top: auto; }
.read-btn {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: #2f2f2f; color: #fff; font-size: 13px; padding: 8px 14px;
  border-radius: 999px; margin-top: 14px; font-style: italic; font-family: var(--dict);
}
.fan-card.photo { padding: 0; overflow: hidden; background: #eae7f0; }
.fan-shot { width: 100%; height: 100%; min-height: 210px; object-fit: cover; object-position: top center; display: block; }
.fan-card.def { background: #fdfdfd; }
.def-word { font-family: var(--dict); font-weight: 600; font-size: 17px; }
.def-ipa { font-family: var(--dict); font-size: 10.5px; color: #777; margin: 4px 0 12px; }
.def-list { font-size: 13.5px; line-height: 1.85; color: #222; }
@media (max-width: 620px) {
  .fan { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 380px; }
  .fan-card { position: static; transform: none !important; width: auto; }
}

/* 공통: 플레이스홀더 라벨 */
[data-ph] { position: relative; }
[data-ph]::after {
  content: attr(data-ph); position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.7); font-size: 12px; font-weight: 600; letter-spacing: .02em;
  text-shadow: 0 1px 3px rgba(0,0,0,.35); pointer-events: none;
}

/* ── WHAT'S A GODLIFE (설명) ── */
.explain { max-width: 860px; margin: 0 auto; padding: clamp(96px, 16vw, 200px) clamp(20px, 5vw, 40px) clamp(56px, 10vw, 116px); text-align: center; }
.explain-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.explain-body { font-size: clamp(20px, 2.8vw, 31px); line-height: 1.5; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); text-wrap: balance; }
.explain-body .nb { white-space: nowrap; }
/* 갓/God 발음 말장난 각주 (작게·muted) */
.explain-note { max-width: 60ch; margin: 26px auto 0; font-size: clamp(13px, 1.5vw, 15px); line-height: 1.7; color: var(--muted); }
.explain-note b { color: var(--ink-2); font-weight: 700; }
.explain-note i { font-style: italic; }
.explain-body b { color: var(--ink); font-weight: 800; }
.explain-body b[lang='ko'] { font-weight: 800; }
.explain-body em { font-style: normal; font-weight: 800; color: var(--accent); }
.explain-body .rom { color: var(--ink-3); font-weight: 500; }

/* ── 다크 밴드 공통 ── */
.band-head {
  text-align: center; font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(40px, 8vw, 86px); color: #2a2a2a;
}
.band-head.light { color: #efefef; }

/* ── LATEST WORK ── */
.work {
  background: var(--dark); border-radius: 26px; margin: 40px 12px;
  padding: clamp(60px, 10vw, 130px) clamp(16px, 4vw, 40px);
}
.work .band-head { color: #3a3a3a; margin-bottom: clamp(40px, 6vw, 80px); }
.work-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.proj {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 340px;
  border-radius: 18px; overflow: hidden; background: var(--dark-2);
  /* 스크롤 스택: 각 카드가 상단에 붙고 다음 카드가 올라와 덮음 */
  position: sticky; top: 92px;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.34);
  transition: box-shadow .4s ease;
}
.proj:hover { box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.34), 0 24px 56px rgba(0, 0, 0, 0.4); }
.proj-text { padding: 34px 36px; display: flex; flex-direction: column; }
.proj-meta { color: #8f8f8f; font-size: 14.5px; font-weight: 500; }
.proj-title { color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -0.02em; margin: 22px 0 14px; transition: opacity .3s; }
.proj-desc { color: #a3a3a3; font-size: 15px; line-height: 1.55; max-width: 30ch; }
.proj-tag { color: #cfcfcf; font-size: 14px; margin-top: auto; padding-top: 26px; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.proj:hover .proj-tag { transform: translateX(5px); }
.proj-visual { min-height: 200px; display: grid; place-items: center; overflow: hidden; }
.proj-shot { width: 58%; max-width: 230px; border-radius: 20px; box-shadow: 0 22px 46px rgba(0,0,0,.42); transform: translateY(9%); transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.proj:hover .proj-shot { transform: translateY(5%) scale(1.05); }
@media (max-width: 680px) {
  .proj { grid-template-columns: 1fr; }
  .proj-visual { min-height: 200px; order: 2; }
}

/* ── ABOUT ── */
.about { max-width: 900px; margin: 0 auto; padding: clamp(80px, 14vw, 170px) 20px 60px; }
.about-statement {
  font-size: clamp(24px, 3.6vw, 40px); font-weight: 600; line-height: 1.3; letter-spacing: -0.02em;
}
/* 단어 단위 스크롤 강조(JS가 .w로 분해) */
.about-statement .w { color: var(--faint); transition: color .3s ease; }
.about-statement .w.lit { color: var(--ink); }
.collage {
  position: relative; height: 560px; margin: 50px auto 0; max-width: 680px;
}
/* 중심 기준 배치 — 스크롤 진행에 따라 JS가 흩뿌린다(spread). */
.col-photo {
  position: absolute; left: 50%; top: 50%; width: 210px; height: 250px; margin: -125px 0 0 -105px;
  border-radius: 18px; background: #cbcbcb; box-shadow: 0 20px 44px rgba(0,0,0,.16);
  background-size: cover; background-position: top center;
  will-change: transform, opacity;
}
.col-photo.lead { width: 220px; height: 268px; margin: -134px 0 0 -110px; z-index: 3; }
@media (max-width: 620px) {
  .collage { height: 430px; max-width: 340px; }
  .col-photo { width: 150px; height: 185px; margin: -92px 0 0 -75px; }
  .col-photo.lead { width: 158px; height: 196px; margin: -98px 0 0 -79px; }
}

/* ── WHAT OTHERS SAID ── */
.quotes {
  background: #1f1f1f; border-radius: 26px; margin: 40px 12px;
  padding: clamp(50px, 8vw, 100px) 0 clamp(50px, 7vw, 90px);
}
.quotes .band-head { margin-bottom: clamp(40px, 6vw, 72px); color: #333; }
.carousel { max-width: 1000px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 30px); }
.track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 6px; cursor: grab;
}
.track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.track.dragging * { user-select: none; pointer-events: none; }
.track::-webkit-scrollbar { display: none; }
.quote {
  flex: 0 0 100%; scroll-snap-align: center; background: #2a2a2a; border-radius: 20px;
  padding: clamp(28px, 4vw, 52px); min-height: 300px; display: flex; flex-direction: column; justify-content: space-between;
}
.quote blockquote { color: #e7e7e7; font-size: clamp(16px, 1.9vw, 21px); line-height: 1.6; font-weight: 500; }
.quote figcaption { margin-top: 30px; display: flex; flex-direction: column; gap: 3px; }
.q-name { color: #fff; font-weight: 700; font-size: 17px; }
.q-role, .q-org { color: #9a9a9a; font-size: 14px; }
.dots { display: flex; gap: 9px; justify-content: center; margin-top: 30px; }
.dots button {
  width: 8px; height: 8px; border-radius: 999px; border: 0; background: #555; cursor: pointer; padding: 0;
  transition: background .2s, width .2s;
}
.dots button.on { background: #e6e6e6; width: 22px; }

/* ── DOWNLOAD ── */
.download { max-width: 720px; margin: 0 auto; padding: clamp(80px, 13vw, 150px) clamp(20px, 5vw, 40px) clamp(24px, 5vw, 48px); text-align: center; }
.dl-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.dl-title { font-size: clamp(34px, 6vw, 58px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.03; color: var(--ink); margin-bottom: 18px; }
.dl-sub { font-size: clamp(16px, 2vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 48ch; margin: 0 auto 34px; }
.dl-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.dl-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; transition: transform .2s ease, opacity .2s ease; }
.dl-btn svg { width: 19px; height: 19px; fill: currentColor; }
.dl-btn:hover { transform: translateY(-2px); }
.dl-btn.primary { background: var(--pill); color: #fff; border-color: var(--pill); }
.dl-btn.primary:hover { opacity: .9; }
.dl-btn.disabled { opacity: .38; pointer-events: none; }
@media (max-width: 480px) { .dl-actions { flex-direction: column; } .dl-btn { justify-content: center; } }

/* ── FOOTER ── */
.footer { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px, 9vw, 120px) clamp(20px, 5vw, 56px) 0; }
.foot-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-links { display: flex; flex-direction: column; gap: 16px; }
.foot-links a { font-size: 17px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.foot-links a span { color: var(--muted); }
.foot-links a:hover { opacity: .6; }
.foot-mail { color: var(--ink-2) !important; }
.foot-right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.signature { width: 188px; height: auto; display: block; margin-bottom: 6px; overflow: visible; }
/* 서명 잉크 — 스크롤 진행에 따라 stroke-dashoffset가 줄며 그려진다(script.js) */
.sig-ink { fill: none; stroke: var(--ink); stroke-width: 5.6; stroke-linecap: round; stroke-linejoin: round; }
#as1 { stroke-dasharray: 2049.8; stroke-dashoffset: 2049.8; }
#as2 { stroke-dasharray: 705.1; stroke-dashoffset: 705.1; }
@media (prefers-reduced-motion: reduce) { #as1, #as2 { stroke-dashoffset: 0; } }
.avail { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.dot-blue { width: 9px; height: 9px; border-radius: 999px; background: var(--blue); box-shadow: 0 0 0 4px rgba(47,127,255,.16); }
.loc { color: var(--ink-2); font-size: 16px; }
.clock { color: var(--ink-2); font-size: 16px; font-variant-numeric: tabular-nums; }
.foot-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 20px; }
.bigmark {
  font-weight: 800; letter-spacing: -0.04em; line-height: .8; color: var(--ink);
  font-size: clamp(90px, 20vw, 260px); margin-left: -0.04em;
}
.thanks {
  flex: 0 0 auto; width: min(300px, 40vw); aspect-ratio: 16/13; border-radius: 20px;
  background: linear-gradient(160deg, #f6f3ed, #efebf3 55%, #f8eeef);
  align-self: flex-end; margin-bottom: 10px; display: grid; place-items: center;
}
.app-icon { width: 42%; max-width: 148px; border-radius: 24%; box-shadow: 0 20px 44px rgba(40, 20, 60, 0.22); }
@media (max-width: 620px) {
  .foot-top { flex-direction: column; }
  .foot-right { text-align: left; align-items: flex-start; }
  .foot-bottom { flex-direction: column-reverse; align-items: flex-start; }
}

/* ── 스크롤 리빌 ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .fan-card, .proj, .col-photo { transition: none; }
}
