﻿/* C6 — 2D 로고 포트폴리오 + 적용 사례 rolling showcases: slow, same direction, name under each card. */
.pf { padding-bottom: clamp(40px, 6vw, 72px); overflow: hidden; }
.pf + .pf { padding-top: clamp(24px, 4vw, 48px); }
.pf-head { display: grid; gap: 12px 40px; align-items: end; margin-bottom: clamp(18px, 2.4vw, 28px); }
@media (min-width: 900px) { .pf-head { grid-template-columns: 1fr minmax(260px, 420px); } }
.pf-side { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between; }
.pf-note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--mute); max-width: 40ch; }
.pf-pause { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.pf-pause:hover, .pf-pause:focus-visible { background: var(--ink); color: #fff; }
.pf-pause .ic { font-size: 11px; letter-spacing: -2px; }

.pf-rows { display: grid; gap: 22px; --cw: clamp(200px, 21vw, 340px); }
.pf-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.pf-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pf-track { display: flex; gap: 16px; width: max-content; animation: pfRoll var(--dur, 50s) linear infinite; will-change: transform; }
.pf-row[data-dir="r"] .pf-track { animation-direction: reverse; }
@keyframes pfRoll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 8px)); } }
.pf-row:hover .pf-track, .pf-row:focus-within .pf-track, .pf.paused .pf-track, .pf.off .pf-track { animation-play-state: paused; }

/* card: image on top, name + industry always below (calm, readable) */
.pf-c { flex: none; width: var(--cw); margin: 0; display: block; color: inherit; text-decoration: none; }
.pf-c img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: #e9e6e0; transition: transform .6s var(--ease); }
.pf-c { overflow: hidden; }
.pf-c .pf-cap { display: flex; align-items: baseline; gap: 8px; padding: 9px 2px 0; min-width: 0; }
.pf-c .pf-cap b { font-size: 14px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-c .pf-cap span { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-c:hover img { transform: scale(1.03); }
/* logo-only tiles: same white tile for every brand, logo centred with generous margins */
.pf-lg { position: relative; aspect-ratio: 16 / 10; background: #fff; border: 1px solid var(--line); box-sizing: border-box; }
/* fixed logo box (same for every brand) so tall and wide logos never change the tile size */
.pf-c.pf-logo .pf-lg img { position: absolute; left: 15%; top: 18%; width: 70%; height: 64%; aspect-ratio: auto; object-fit: contain; background: none; }
.pf-c.pf-logo:hover .pf-lg img { transform: scale(1.04); } /* class name avoids the existing .lg (tech rows) */

/* reduced motion: still rows the visitor can swipe */
.pf.still .pf-row { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scroll-snap-type: x proximity; }
.pf.still .pf-track { animation: none; }
.pf.still .pf-c[aria-hidden="true"] { display: none; }
.pf.still .pf-c { scroll-snap-align: start; }
@media (prefers-reduced-motion: reduce) { .pf-track { animation: none; } }

/* cards are links to the project page */
.pf-c:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pf-c.pf-logo .pf-lg { display: block; }

/* 펼쳐보기: every card in an orderly grid (2 phone / 3 tablet / 4–5 desktop); 접기 returns to the rolling rows */
.pf-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
.pf-grid[hidden], .pf-rows[hidden] { display: none; }
.pf-grid .pf-c { width: auto; }
@media (min-width: 560px) { .pf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .pf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; } }
@media (min-width: 1400px) { .pf-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pf-open[aria-expanded="true"] { background: var(--ink); color: #fff; }
/* 적용 사례 open grid: two rows first (2/3/4/5 columns → 4/6/8/10 cards), 펼치기 shows the rest */
.pf-gw[hidden] { display: none; }
.pf-grid.clip .pf-c:nth-child(n+5) { display: none; }
@media (min-width: 560px) { .pf-grid.clip .pf-c:nth-child(n+5) { display: block; } .pf-grid.clip .pf-c:nth-child(n+7) { display: none; } }
@media (min-width: 900px) { .pf-grid.clip .pf-c:nth-child(n+7) { display: block; } .pf-grid.clip .pf-c:nth-child(n+9) { display: none; } }
@media (min-width: 1400px) { .pf-grid.clip .pf-c:nth-child(n+9) { display: block; } .pf-grid.clip .pf-c:nth-child(n+11) { display: none; } }
.pf-more { display: flex; justify-content: center; margin-top: 24px; }
