@font-face { font-family: "Paperozi"; font-weight: 300; font-display: swap; src: url("/static/Paperlogy-3Light.woff2") format("woff2"); }
@font-face { font-family: "Paperozi"; font-weight: 400; font-display: swap; src: url("/static/Paperlogy-4Regular.woff2") format("woff2"); }
@font-face { font-family: "Paperozi"; font-weight: 500; font-display: swap; src: url("/static/Paperlogy-5Medium.woff2") format("woff2"); }
@font-face { font-family: "Paperozi"; font-weight: 600; font-display: swap; src: url("/static/Paperlogy-6SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Paperozi"; font-weight: 700; font-display: swap; src: url("/static/Paperlogy-7Bold.woff2") format("woff2"); }
/* 공개 포트폴리오. 검은 배경 + 큰 타이포 + 스크롤 등장 애니메이션 (레퍼런스: introck.studio) */
:root { --bg: #000; --fg: #f2f2f2; --muted: #8b8b8b; --line: rgba(255,255,255,.18); --chip: #141414; --accent: #f3c7ad; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: "Paperozi", "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.spark { display: inline-block; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.top { position: fixed; inset: 0 0 auto; z-index: 10; display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 1rem; padding: 18px 38px; font-size: 11px; letter-spacing: .02em; text-transform: uppercase; mix-blend-mode: difference; }
.top nav { display: flex; flex-direction: column; gap: 2px; }
.top nav a, .foot-row a { position: relative; width: fit-content; }
.top nav a::after, .foot-row a::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s ease; }
.top nav a:hover::after, .foot-row a:hover::after { transform: scaleX(1); transform-origin: left; }
.clock { color: var(--muted); }

.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 120px 38px 60px; position: relative; }
.hero-title { margin: 0; font-weight: 700; font-size: clamp(64px, 15vw, 240px); line-height: .86; letter-spacing: -.06em; text-transform: lowercase; }
.hero-title .line { display: block; overflow: hidden; padding: 0 .05em .16em 0; margin-bottom: -.16em; }
.hero-title .line span { display: inline-block; transform: translateY(105%); animation: rise 1.1s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-title .line:nth-child(2) { text-align: right; color: transparent; -webkit-text-stroke: 1px var(--fg); }
.hero-title .line:nth-child(2) span { animation-delay: .15s; }
@keyframes rise { to { transform: none; } }
.hero-copy { margin: 48px 0 0 auto; width: min(420px, 100%); font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; color: var(--muted); text-transform: uppercase; }
.hero-cta { position: absolute; left: 38px; bottom: 60px; display: flex; justify-content: space-between; width: min(340px, 60vw); padding-bottom: 8px; border-bottom: 2px solid var(--accent); color: var(--accent); font-size: clamp(18px, 1.8vw, 26px); }

.section-title { margin: 0 0 80px; font-weight: 500; font-size: clamp(40px, 7vw, 110px); line-height: .92; letter-spacing: -.04em; }
.section-title sup { font-size: .25em; vertical-align: top; color: var(--muted); letter-spacing: 0; }
.works { padding: 140px 38px; }
.work { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; margin-bottom: 160px; }
.work:nth-of-type(even) { grid-template-columns: 5fr 7fr; }
.work:nth-of-type(even) .work-media { order: 2; }
.work-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #0d0d0d; clip-path: inset(12% 12% 12% 12%); transition: clip-path 1.2s cubic-bezier(.2,.8,.2,1); }
.work.in .work-media { clip-path: inset(0 0 0 0); }
.work-media img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; display: block; transform: translateY(var(--py, 0px)) scale(1.05); transition: transform .6s ease-out, filter .6s; filter: grayscale(.35); will-change: transform; }
.work-media:hover img { filter: none; }
.work-media-label { display: none; }
.work-media.no-thumb { display: grid; place-items: center; background: linear-gradient(135deg, #111, #1d1d1d); }
.work-media.no-thumb .work-media-label { display: block; padding: 0 2rem; font-size: clamp(24px, 3vw, 44px); letter-spacing: -.03em; color: #3a3a3a; text-align: center; }
.work-num { display: block; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.work-info h3 { margin: 0 0 22px; font-weight: 500; font-size: clamp(28px, 3.2vw, 48px); line-height: 1; letter-spacing: -.03em; text-transform: uppercase; word-break: keep-all; }
.work-note { margin: 22px 0 0; max-width: 34ch; color: var(--muted); line-height: 1.5; white-space: pre-line; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { background: var(--chip); color: #9a9a9a; padding: 8px 18px; font-size: 14px; }

.empty { color: var(--muted); font-size: 20px; }

.foot { padding: 160px 38px 30px; border-top: 1px solid var(--line); }
.foot-big { margin: 0 0 120px; font-size: clamp(48px, 10vw, 170px); line-height: .9; letter-spacing: -.05em; font-weight: 700; }
.foot-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); text-transform: uppercase; }

/* 스크롤 등장 */
.reveal { opacity: 0; transform: translateY(48px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .top { grid-template-columns: 1fr auto; padding: 16px 20px; }
  .top .clock, .top .year { display: none; }
  .hero, .works { padding-left: 20px; padding-right: 20px; }
  .hero-cta { left: 20px; }
  .work, .work:nth-of-type(even) { grid-template-columns: 1fr; gap: 24px; margin-bottom: 100px; }
  .work:nth-of-type(even) .work-media { order: 0; }
  .about { padding-left: 20px; padding-right: 20px; }
  .about-row, .entries li > div { grid-template-columns: 1fr; gap: 24px; }
  .about-text, .entries li > div > *, .entries .work-num { grid-column: auto; grid-row: auto; }
  .foot { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-title .line span, .reveal { transform: none; opacity: 1; }
  .work-media { clip-path: none; }
}

/* 소개, 사진 없는 항목, 항목의 다른 파일 */
.about { padding: 140px 38px 0; }
.about-row { display: grid; grid-template-columns: minmax(0, 4fr) 7fr; gap: 48px; align-items: start; }
.about-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.35); }
.about-text { grid-column: 2; margin: 0; font-size: clamp(18px, 1.8vw, 26px); line-height: 1.5; white-space: pre-line; word-break: keep-all; }
.about-photo + .about-text { grid-column: auto; }
.work-summary { margin: 22px 0 0; max-width: 40ch; font-size: 18px; line-height: 1.45; word-break: keep-all; }
.work-link, .extra-file { display: inline-block; margin-top: 22px; padding-bottom: 4px; border-bottom: 1px solid var(--accent); color: var(--accent); font-size: 14px; }
.extras { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.extras .extra-file { margin: 0 14px 0 0; }
.extra-img img { display: block; width: 96px; height: 72px; object-fit: cover; filter: grayscale(.35); }
.extra-img:hover img { filter: none; }
.entries { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.entries li { padding: 34px 0; border-bottom: 1px solid var(--line); transition: background .4s, padding .4s; }
.entries li:hover { background: #0b0b0b; padding-left: 12px; }
.entries li > div { display: grid; grid-template-columns: 1fr 4fr; column-gap: 24px; }
.entries li > div > * { grid-column: 2; }
.entries .work-num { grid-column: 1; grid-row: 1 / span 6; }
.entries h3 { margin: 0 0 14px; font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; word-break: keep-all; }
.entries .work-note { max-width: 60ch; }
.works + .works { padding-top: 0; }

/* 내 포트폴리오(/admin/portfolio): 나만 보는 화면이라는 띠 */
.mine-bar { position: fixed; inset: auto 0 0; z-index: 20; margin: 0; padding: 10px 38px; background: var(--accent); color: #000; font-size: 13px; }
.mine-bar a { text-decoration: underline; margin-left: 8px; }
