/*! JUST MAKE · © 2008-2026 (주)에이치디그룹 HD GROUP · justmake.co.kr · 무단 복제·재배포·도용 금지 · All rights reserved · hdgjm-8e3cd6a19661 */
/* portfolio.css - 포트폴리오 목록 페이지 (/portfolio/). 값은 tokens.css, 공통(헤더·버튼·푸터)은 style.css */

.pf { padding: calc(64px + clamp(48px, 6vw, 100px)) var(--pad) clamp(72px, 7vw, 120px); }

/* 머리: 아주 큰 WORK + 작은 개수 + 오른쪽 소개 (메인 섹션 머리와 같은 크기 대비) */
.pf__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px var(--gap); align-items: end; margin-bottom: clamp(36px, 4vw, 64px); }
.pf__head .sec__kr { grid-column: 1 / -1; }
.pf__title { grid-column: 1 / span 7; font: 700 clamp(88px, 17vw, 300px)/.8 var(--f-display); letter-spacing: -.065em; }
.pf__count { display: inline-block; vertical-align: top; margin: .35em 0 0 .12em; padding: 3px 7px; background: var(--lime); color: var(--ink); font-size: 14px; letter-spacing: 0; transform: translateZ(0); }
.pf__intro { grid-column: 8 / -1; color: var(--fg-dim); font-size: 15px; line-height: 1.75; }
.pf__intro a { color: var(--fg); font-weight: 600; }

/* 분류 칩: 제자리에선 평범하게. 지나가면 화면 아래 가운데 유리 캡슐(.is-stuck), 상담 띠·푸터가 보이면 숨김(.is-away) (JS)
   바깥 wrap 이 높이를 지켜 모양이 바뀌어도 목록이 밀리지 않음. 오른쪽 아래 주사위 자리는 비워 둠 */
.pf__fwrap { position: relative; height: 68px; margin-bottom: 8px; }
.pf__filter { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--grey-2); }
.pf__fwrap.is-stuck .pf__filter { position: fixed; z-index: 30; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: auto; max-width: calc(100vw - 2 * var(--pad) - 140px); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 4px; padding: 5px; border-bottom: 0; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), 0 12px 34px rgba(17,17,17,.16);
  animation: pf-dock-in .5s var(--ease-out); transition: transform .45s var(--ease-out), opacity .3s; }
@keyframes pf-dock-in { from { transform: translate(-50%, 140%); opacity: 0; } }
.pf__fwrap.is-stuck .pf__filter::-webkit-scrollbar { display: none; }
.pf__fwrap.is-stuck .pf-chip { flex: none; height: 34px; padding: 0 11px; gap: 5px; font-size: 14px; background: rgba(255,255,255,.7); border-color: transparent; }
/* 넘칠 때만 끝을 부드럽게 흐림(왼쪽은 넘겨 본 뒤에만) — 잘린 게 아니라 더 있다는 표시 */
.pf__fwrap.is-stuck .pf__filter.is-more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.pf__fwrap.is-stuck .pf__filter.is-more-l.is-more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.pf__fwrap.is-stuck .pf__filter.is-more-l:not(.is-more-r) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
.pf__fwrap.is-stuck .pf-chip[aria-pressed="true"] { background: var(--ink); }
.pf__fwrap.is-away .pf__filter { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
.pf-chip { flex: none; height: 36px; padding: 0 14px; background: rgba(255,255,255,.7); border-color: transparent; }
.pf__fwrap.is-stuck .pf-chip[aria-pressed="true"] { background: var(--ink); }
.pf__fwrap.is-away .pf__filter { transform: translateY(-26px); opacity: 0; pointer-events: none; }
.pf-chip { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--grey-2); background: var(--white);
  font: 600 14.5px/1 var(--f-body); color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.pf-chip:hover { border-color: var(--ink); }
.pf-chip__n { color: var(--grey-3); font-size: 12px; transform: translateZ(0); }
.pf-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pf-chip[aria-pressed="true"] .pf-chip__n { color: var(--lime); }
.pf__status { margin: 18px 0 22px; color: var(--grey-3); transform: translateZ(0); }

/* 카드 격자 */
.pf__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3vw, 52px) var(--gap); }
.pf-card { min-width: 0; opacity: 0; transform: translateY(42px); transition: opacity .7s var(--ease-out), transform 1s var(--ease-out); }
.pf-card.is-in { opacity: 1; transform: none; }
.pf-card__link { display: grid; gap: 14px; color: inherit; text-decoration: none; }
.pf-card__media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--grey-1); }
.pf-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
/* 올리면 라임 직각 태그가 계단식으로 칠해짐 */
.pf-card__view { position: absolute; left: 14px; top: 14px; padding: 5px 9px; background: var(--lime); color: var(--ink); clip-path: inset(0 100% 0 0); transition: clip-path .4s steps(6); }
.pf-card__link:hover .pf-card__media img, .pf-card__link:focus-visible .pf-card__media img { transform: scale(1.04); }
.pf-card__link:hover .pf-card__view, .pf-card__link:focus-visible .pf-card__view { clip-path: inset(0 0 0 0); }
.pf-card__meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: baseline; }
.pf-card__no { color: var(--grey-3); transform: translateZ(0); }
.pf-card__name { font: 700 clamp(17px, 1.3vw, 20px)/1.35 var(--f-body); letter-spacing: -.02em; }
.pf-card__tags { grid-column: 2; color: var(--grey-3); font: 500 13px/1.4 var(--f-body); letter-spacing: -.01em; }   /* 한글 분류명은 본문 서체(픽셀 서체 서브셋에 없는 글자가 섞여 크기가 들쭉날쭉했음) */
.pf-card__tags span + span::before { content: " / "; }
.pf__more { height: 1px; margin-top: clamp(40px, 4vw, 64px); }   /* 무한 스크롤 감지용 */
.pf__noscript { padding: 40px 0; color: var(--fg-dim); }

/* 하단 상담 띠: 브랜드 파랑 + 뒤에 흐르는 큰 외곽선 글자 + 큰 라임 버튼·전화번호 */
.pf-cta { position: relative; isolation: isolate; overflow: hidden; padding: clamp(80px, 9vw, 150px) var(--pad); background: #2a1bff; color: var(--white); }
.pf-cta :focus-visible { outline-color: var(--lime); }
.pf-cta__flow { position: absolute; inset: 0; z-index: -1; display: grid; align-content: center; gap: .02em; pointer-events: none;
  font: 700 clamp(90px, 13vw, 230px)/.9 var(--f-display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.22); white-space: nowrap; }
.pf-cta__flow span { display: block; width: max-content; animation: pf-flow 60s linear infinite; }
.pf-cta__flow span:nth-child(2) { animation-direction: reverse; animation-duration: 75s; margin-left: -30vw; }
/* 지지직(JS 가 줄마다 시간차로 .is-gl): 핑크·시안 외곽선 복사본이 갈라지며 가로 띠로 찢어졌다 돌아옴 */
.pf-cta__flow span { position: relative; }
.pf-cta__flow span::before, .pf-cta__flow span::after { content: attr(data-t); position: absolute; left: 0; top: 0; color: transparent; opacity: 0; pointer-events: none; }
.pf-cta__flow span::before { -webkit-text-stroke: 1.5px rgba(255,61,213,.95); }
.pf-cta__flow span::after { -webkit-text-stroke: 1.5px rgba(0,229,255,.95); }
.pf-cta__flow span.is-gl { -webkit-text-stroke-color: rgba(255,255,255,.55); }
.pf-cta__flow span.is-gl::before { opacity: 1; animation: cta-gl-a .42s steps(1) 1 both; }
.pf-cta__flow span.is-gl::after { opacity: 1; animation: cta-gl-b .42s steps(1) 1 both; }
@keyframes cta-gl-a { 0% { transform: translate(-.05em, 0); clip-path: inset(8% 0 62% 0); } 20% { transform: translate(.07em, 0); clip-path: inset(52% 0 22% 0); }
  40% { transform: translate(-.03em, 0); clip-path: inset(28% 0 44% 0); } 60% { transform: translate(.05em, 0); clip-path: inset(70% 0 6% 0); }
  80% { transform: translate(-.06em, 0); clip-path: inset(0 0 76% 0); } 100% { transform: none; clip-path: inset(0 0 100% 0); } }
@keyframes cta-gl-b { 0% { transform: translate(.05em, 0); clip-path: inset(40% 0 30% 0); } 20% { transform: translate(-.06em, 0); clip-path: inset(6% 0 70% 0); }
  40% { transform: translate(.04em, 0); clip-path: inset(62% 0 14% 0); } 60% { transform: translate(-.05em, 0); clip-path: inset(18% 0 56% 0); }
  80% { transform: translate(.03em, 0); clip-path: inset(80% 0 0 0); } 100% { transform: none; clip-path: inset(0 0 100% 0); } }
@media (prefers-reduced-motion: reduce) { .pf-cta__flow span::before, .pf-cta__flow span::after { display: none; } }
.pf-cta__in { display: grid; justify-items: start; gap: 22px; }
.pf-cta__kr { font: 600 15px/1.4 var(--f-body); color: rgba(255,255,255,.7); }
.pf-cta__big { font: 700 clamp(46px, 6.6vw, 120px)/1.02 var(--f-body); letter-spacing: -.055em; }
.pf-cta__row { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; margin-top: 10px; }
.pf-cta__go { display: inline-flex; align-items: center; gap: 12px; height: 68px; padding: 0 34px; border-radius: var(--radius-pill); background: var(--lime); color: var(--ink);
  font: 700 19px/1 var(--f-body); text-decoration: none; transition: transform .3s var(--ease-out), background-color .25s, color .25s; }
.pf-cta__go:hover { background: var(--white); transform: translateY(-2px); }
.pf-cta__go span { transition: transform .3s var(--ease-out); }
.pf-cta__go:hover span { transform: translateX(4px); }
.pf-cta__tel { font: 700 clamp(34px, 3.4vw, 56px)/1 var(--f-display); letter-spacing: -.04em; color: var(--white); text-decoration: none; border-bottom: 2px solid rgba(255,255,255,.35); padding-bottom: 4px; }
.pf-cta__tel:hover { border-bottom-color: var(--lime); }
.pf-cta__meta { font-size: 15px; color: rgba(255,255,255,.72); }
@media (prefers-reduced-motion: reduce) { .pf-cta__flow span { animation: none; } }

@media (max-width: 1024px) {
  .pf__title, .pf__intro { grid-column: 1 / -1; }
  .pf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .pf__fwrap.is-stuck .pf__filter { left: 10px; right: 84px; max-width: none; transform: none; bottom: 14px; margin: 0; }   /* 모바일: 왼쪽부터, 주사위 자리 비움 */
  .pf__fwrap.is-away .pf__filter { transform: translateY(140%); }
  @keyframes pf-dock-in { from { transform: translateY(140%); opacity: 0; } }
  .pf__filter { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 12px var(--pad); scrollbar-width: none; }
  .pf__filter::-webkit-scrollbar { display: none; }
  .pf-chip { flex: none; height: 38px; }
  .pf__grid { gap: 28px 12px; }
  .pf-card__meta { grid-template-columns: minmax(0, 1fr); }
  .pf-card__no, .pf-card__tags { display: none; }
  .pf-card__name { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) { .pf-card { opacity: 1; transform: none; transition: none; } }

/* ---------- 첫 부분 (2026-10-12): 메인 첫 화면과 같은 남색·파랑 + 작업물 썸네일 벽 ---------- */
.pf-hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(88svh, 900px); display: grid; align-items: end;
  padding: calc(64px + clamp(40px, 6vw, 90px)) var(--pad) clamp(36px, 4vw, 64px); background: #0a0838; color: var(--white); }
.pf-hero :focus-visible { outline-color: var(--lime); }
/* 썸네일 벽: 세 줄이 기울어진 채 서로 반대로 천천히 흐름. 흑백 → 파랑 곱하기(히어로 영상과 같은 듀오톤) */
.pf-hero__wall { position: absolute; inset: -12% -10%; z-index: -2; display: grid; align-content: center; gap: 14px; transform: rotate(-7deg);
  filter: grayscale(1) contrast(1.15) brightness(1.05); }
.pf-row { display: flex; gap: 14px; width: max-content; animation: pf-flow var(--dur, 90s) linear infinite; }
.pf-row:nth-child(2) { animation-direction: reverse; --dur: 110s; }
.pf-row:nth-child(3) { --dur: 75s; }
.pf-wall__cell { position: relative; display: block; flex: none; width: clamp(220px, 22vw, 360px); aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; }
.pf-wall__cell img { display: block; width: 100%; height: 100%; object-fit: cover; }
@keyframes pf-flow { to { transform: translateX(-50%); } }   /* 줄을 두 번 이어 붙였으므로 절반 이동 = 이음매 없음 */
.pf-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #2a1bff; mix-blend-mode: multiply; }
.pf-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,6,48,.72) 0%, rgba(8,6,48,.3) 35%, rgba(8,6,48,.55) 65%, rgba(6,4,32,.95) 100%); }
.pf-hero__in { display: grid; gap: clamp(18px, 2vw, 28px); }
.pf-hero__kr { font: 600 15px/1.4 var(--f-body); color: #b4b4af; }
.pf-hero__title { font: 700 clamp(110px, 24vw, 420px)/.78 var(--f-display); letter-spacing: -.07em; margin-left: -.04em; }
.pf-hero__count { display: inline-block; vertical-align: top; margin: .32em 0 0 .1em; padding: 4px 8px; background: var(--lime); color: var(--ink); font-size: 15px; letter-spacing: 0; transform: translateZ(0); }
.pf-hero__bottom { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px var(--gap); align-items: end; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); }
.pf-hero__intro { grid-column: 1 / span 7; color: #c9c9c4; font-size: 15px; line-height: 1.75; }
.pf-hero__intro a { color: var(--white); font-weight: 600; }
.pf-hero__stats { grid-column: 9 / -1; list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; gap: 22px; color: #a3a39e; transform: translateZ(0); }
.pf-hero__stats b { display: block; font: 700 clamp(28px, 2.6vw, 44px)/1 var(--f-display); letter-spacing: -.04em; color: var(--white); margin-bottom: 6px; }
.pf { padding-top: clamp(40px, 4vw, 64px); }
@media (max-width: 1024px) { .pf-hero__intro, .pf-hero__stats { grid-column: 1 / -1; } .pf-hero__stats { justify-content: flex-start; } }
@media (max-width: 767px) { .pf-hero { min-height: 78svh; } .pf-hero__title { font-size: 31vw; } .pf-row img { width: 46vw; } }
@media (prefers-reduced-motion: reduce) { .pf-row { animation: none; } }
