/* ============================================================
   메인 포트폴리오 리스트 (Figma 925:2167)
   · 기본: 분류 | 제목 | Website 타입
   · 호버: 흰 패널이 아래에서 올라오고 내용이 가로 마키 (myz Works)
   · renewal-fix.css 의 body:has(.pf__stage) .pf 보다 특이도를 높인다
   ============================================================ */

body:has(.pf--list) .pf.pf--list,
body:has(.pf--list) .pf.pf--list.is-scrubbed {
	position: relative;
	height: auto;
	min-height: 0;
	background: #000;
	color: #fff;
	overflow: visible;
	border-radius: 0;
}

body:has(.pf--list) .pf.pf--list .pf__stage {
	position: relative;
	height: auto;
	min-height: 0;
	overflow: hidden;
	background: #000;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	box-sizing: border-box;
	/* 시안 1080 · 제목 top 141 · 하단 여백 */
	padding: clamp(80px, 7.34vw, 141px) 0 clamp(48px, 5vw, 96px);
}

body:has(.pf--list) .pf.pf--list .pf__bg,
body:has(.pf--list) .pf.pf--list .pf__works,
body:has(.pf--list) .pf.pf--list .pf__dots,
body:has(.pf--list) .pf.pf--list .pf__reel,
body:has(.pf--list) .pf.pf--list .pf__step { display: none !important; }

body:has(.pf--list) .pf.pf--list .pf__title {
	position: static;
	left: auto;
	right: auto;
	top: auto;
	z-index: 2;
	margin: 0 0 clamp(24px, 2.4vw, 46px);
	font-size: clamp(28px, 3.229vw, 62px);
	font-weight: 800;
	line-height: 1.6;
	text-align: center;
	color: #fff;
}

/* ---- 리스트 ---- */
.pf-list {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgba(255, 255, 255, .2);
	width: 100%;
}

.pf-row {
	position: relative;
	z-index: 1;
	border-bottom: 1px solid rgba(255, 255, 255, .2);
	list-style: none;
}
.pf-row__link {
	position: relative;
	display: block;
	height: clamp(96px, 14vw, 120px);
	color: inherit;
	text-decoration: none;
	overflow: hidden;
}

/* 흰 배경 — 진입/퇴장 방향 (JS: is-from-* / is-exit-* / is-show) */
.pf-row__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: #fff;
	pointer-events: none;
	transform: translate(0, 101%);
	transition: transform .5s cubic-bezier(.22, .8, .24, 1);
	will-change: transform;
}
/* 대기(숨김) 위치 */
.pf-row.is-from-top .pf-row__bg { transform: translate(0, -101%); }
.pf-row.is-from-bottom .pf-row__bg { transform: translate(0, 101%); }
/* 펼침 */
.pf-row.is-show .pf-row__bg { transform: translate(0, 0); }
/* 퇴장 — is-show 보다 우선 */
.pf-row.is-exit-up .pf-row__bg { transform: translate(0, -101%); }
.pf-row.is-exit-down .pf-row__bg { transform: translate(0, 101%); }

/* 기본 행 — absolute 제거 · max-width 1300 가운데 */
.pf-row__base {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(80px, 1fr) minmax(0, 2.4fr) minmax(160px, 1.2fr);
	align-items: center;
	gap: clamp(12px, 2vw, 40px);
	width: 100%;
	max-width: 1400px;
	height: 100%;
	margin: 0 auto;
	padding: 0 clamp(16px, 2vw, 24px);
	box-sizing: border-box;
	transition: opacity .35s ease;
}
.pf-row__cat {
	justify-self: start;
	font-size: clamp(12px, 1.1vw, 14px);
	font-weight: 600;
	line-height: 1.6;
	color: rgba(255, 255, 255, .85);
	white-space: nowrap;
	transition: color .3s ease;
}
.pf-row__name {
	justify-self: center;
	margin: 0;
	/* 28 → 24 : 한 치수 작게 */
	font-size: clamp(18px, 2vw, 24px);
	font-weight: 600;
	line-height: 1.6;
	text-align: center;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
	transition: color .3s ease;
}
.pf-row__type {
	justify-self: end;
	text-align: center;
	font-size: clamp(12px, 1.2vw, 14px);
	font-weight: 600;
	line-height: 1.4em;
	color: rgba(255, 255, 255, .9);

	transition: color .3s ease;
}
 
/* 상세 패널 — 배경과 별도로 페이드인 */
.pf-row__panel {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: transparent;
	color: #000;
	overflow: hidden;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;

}
.pf-row.is-show .pf-row__panel {
	opacity: 1;
	visibility: visible;
	transition: opacity .3s ease .12s, visibility 0s linear 0s;
}
.pf-row.is-show .pf-row__base {
	opacity: 0;
}

.pf-row__marquee {
	display: flex;
	align-items: center;
	height: 100%;
	width: max-content;
	will-change: transform;
}
.pf-row.is-show .pf-row__marquee {
	animation: pfMarquee 22s linear infinite;
}
@keyframes pfMarquee {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.pf-row__bg { transition: none; }
	.pf-row.is-show .pf-row__bg { transform: none; }
	.pf-row__panel { transition: none; }
	.pf-row.is-show .pf-row__marquee { animation: none; }
}

/* 마키 한 칸 — 썸네일 · 분류 · 제목 · 타입 · 기능 · 기술 */
.pf-row__pane {
	display: flex;
	align-items: center;
	gap: clamp(20px, 1.67vw, 32px);
	height: 100%;
	padding: 0 clamp(24px, 2.5vw, 48px);
	box-sizing: border-box;
	flex: none;
}
.pf-row__thumb {
	flex: none;
	width: clamp(80px, 6.35vw, 122px);
	height: clamp(76px, 6vw, 115px);
	object-fit: cover;
	border-radius: 0;
}
.pf-row__pane-cat {
	flex: none;
	font-size: clamp(14px, 1.8vw, 24px);
	font-weight: 400;
	line-height: 1.6;
	white-space: nowrap;
}
.pf-row__pane-name {
	flex: none;
	margin: 0;
	font-size: clamp(16px, 2vw, 24px);
	font-weight: 800;
	line-height: 1.6;
	white-space: nowrap;
}
.pf-row__pane-type {
	flex: none;
	/* 24 → 18 : 두 치수 작게 */
	font-size: clamp(11px, 1.35vw, 18px);
	font-weight: 400;
	line-height: 1.6;
	white-space: nowrap;
}

.pf-row__feats {
	display: flex;
	align-items: center;
	gap: clamp(16px, 1.25vw, 24px);
	flex: none;
	margin-left: clamp(8px, 1.5vw, 28px);
}
.pf-row__feat {
	display: flex;
	align-items: center;
	justify-content: center;
	gap:0.5em;
}
.pf-row__feat-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	min-width: 45px;
	height: 45px;
	border: 1px solid #938eff;
	border-radius: 4px;
	color: #000;
	box-sizing: border-box;
}
.pf-row__feat-ico svg {
	width: 32px;
	height: 32px;
}
.pf-row__feat-lb {
	font-size: 14px;
	font-weight: 500;
	text-align: center;
	line-height: 1.2;
}

.pf-row__techs {
	display: flex;
	align-items: center;
	gap: clamp(16px, 1.25vw, 24px);
	flex: none;
	margin-left: clamp(4px, 2vw, 26px);
}
.pf-row__tech {
	display: flex;
	
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
}
.pf-row__tech img {
	box-sizing: border-box;
	width: 45px;
	height: 45px;
	padding: 7px;
	border: 1px solid #938eff;
	border-radius: 4px;
	object-fit: contain;
}

body:has(.pf--list) .pf.pf--list .pf__more {
	position: static;
	left: auto;
	bottom: auto;
	display: flex;
	justify-content: center;
	margin-top: clamp(40px, 4.5vh, 72px);
	transform: none;
}
body:has(.pf--list) .pf.pf--list .pf__more .btn-gradient {
	width: 250px;
	justify-content: center;
}

/* ---- 반응형 (레이아웃만) ---- */
@media (max-width: 1024px) {
	body:has(.pf--list) .pf.pf--list .pf__stage {
		padding: 64px 0 48px;
		background: #000 !important;
		position: relative !important;
		overflow: hidden !important;
	}
	.pf-row__link { height: auto; min-height: 72px; }
	.pf-row__base {
		grid-template-columns: 1fr;
		justify-items: start;
		gap: 4px;
		max-width: none;
		height: auto;
		padding: 18px 20px;
	}
	.pf-row__name {
		justify-self: start;
		font-size: clamp(18px, 5vw, 24px);
		text-align: left;
	}
	.pf-row__type {
		justify-self: start;
		text-align: left;
		opacity: .75;
	}
}

/* 호버 불가(터치 등) — 흰 배경·마키 패널 숨김 */
@media (hover: none) {
	.pf-row__bg,
	.pf-row__panel { display: none; }
	.pf-row.is-show .pf-row__base { opacity: 1; }
}

@media (min-width: 1025px) {
	body:has(.pf--list) .pf.pf--list,
	body:has(.pf--list) .pf.pf--list.is-scrubbed {
		min-height: 100vh;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
	body:has(.pf--list) .pf.pf--list .pf__stage {
		flex: 1 1 auto;
		justify-content: center;
	}
}

/* ============================================================
   스무 건을 「다섯 줄짜리 창」에서 위로 굴린다 (1025 이상)
   ------------------------------------------------------------
   줄 키 120 → 110 → 108 → 98 로 줄여 왔다(한 줄 10px 씩 = 다섯 줄 50px).
   ============================================================ */
.pf-reelwrap { position: relative; }

@media (min-width: 1025px) {
	.pf-row__link { height: clamp(76px, 11.13vw, 98px); }
	.pf-reelwrap {
		overflow: hidden;
		/* 다섯 줄 + 줄마다 아래 테두리 1px */
		height: calc((clamp(76px, 11.13vw, 98px) + 1px) * 5);
	}
	.pf-reelwrap .pf-list { will-change: transform; }
}

/* 좁은 화면은 예전 그대로 — 다섯 줄만 보이고 굴리지 않는다 */
@media (max-width: 1024px) {
	.pf-row:nth-child(n+6) { display: none; }
}

/* ---- 호버판 : Key features · Tech stack 은 아이콘만 ---- */
.pf-row__pane-svc {
	flex: none;
	font-size: clamp(14px, 1.8vw, 24px);
	font-weight: 400;
	line-height: 1.6;
	white-space: nowrap;
}

/* ============================================================
   기본 줄 오른쪽 칸 — Key features 아이콘만, 가운데
   ------------------------------------------------------------
   검은 바탕 위라 테두리·글자색을 흰 쪽으로 돌린다.
   ============================================================ */
.pf-row__keys {
	justify-self: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(6px, 0.6vw, 10px);
}
.pf-row__key-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	flex: none;
	width: clamp(28px, 2.3vw, 38px);
	height: clamp(28px, 2.3vw, 38px);
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 4px;
	color: #fff;
	transition: color .3s ease, border-color .3s ease;
}
.pf-row__key-ico svg {
	width: 60%;
	height: 60%;
}


/* ============================================================
   끌어서 위아래로 — 저절로 굴리지 않고 손으로 옮긴다
   ============================================================ */
@media (min-width: 1025px) {
	.pf-reelwrap { cursor: grab; }
	.pf-reelwrap.is-drag { cursor: grabbing; }
	/* 끄는 동안 글자가 선택되지 않게 */
	.pf-reelwrap.is-drag,
	.pf-reelwrap.is-drag * { user-select: none; }
}


/* ============================================================
   아래쪽 흐림 — 「밑에 더 있다」
   ------------------------------------------------------------
   오른쪽 막대는 스크롤바처럼 보여 어색했다(사용자 지적).
   마지막 줄이 검게 잦아들게 두어 더 있다는 것만 넌지시 알린다.
   끝까지 끌면 사라져서, 다 봤다는 것도 같이 알려 준다.
   ============================================================ */
@media (min-width: 1025px) {
	.pf-reelwrap::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		height: clamp(48px, 5vw, 86px);
		background: linear-gradient(180deg,
			rgba(0, 0, 0, 0) 0%,
			rgba(0, 0, 0, .75) 55%,
			rgba(0, 0, 0, .96) 88%,
			#000 100%);
		pointer-events: none;
		z-index: 3;
		transition: opacity .35s ease;
	}
	/* 맨 아래까지 끌었으면 걷는다 */
	.pf-reelwrap.is-end::after { opacity: 0; }
}

/* ============================================================
   호버판 — 아이콘 이름 말풍선 · Key insights
   ------------------------------------------------------------
   · 메인이미지는 뺐다.
   · 아이콘에 마우스를 올리면 이름이 뜬다. 판 전체는 pointer-events:none 이라
     아이콘에만 되살려 준다. 글자를 읽는 동안 마키가 흘러가지 않게 잠깐 멈춘다.
   ============================================================ */
.pf-row__feat-ico,
.pf-row__tech-ico { position: relative; pointer-events: auto; }

.pf-row__feat-ico::after,
.pf-row__tech-ico::after {
	content: attr(data-label);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	z-index: 4;
	padding: 5px 10px;
	border-radius: 4px;
	background: #111;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	transform: translate(-50%, 4px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.pf-row__feat-ico:hover::after,
.pf-row__tech-ico:hover::after {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear 0s;
}

/* 이름을 읽는 동안 마키를 세운다 */
.pf-row.is-show .pf-row__marquee:has(.pf-row__feat-ico:hover),
.pf-row.is-show .pf-row__marquee:has(.pf-row__tech-ico:hover) { animation-play-state: paused; }

/* 기술 아이콘 — 겉을 span 으로 한 겹 감쌌다 */
.pf-row__tech-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	flex: none;
	width: 45px;
	height: 45px;
	padding: 7px;
	border: 1px solid #938eff;
	border-radius: 4px;
}
.pf-row__tech-ico img { width: 100%; height: 100%; object-fit: contain; }

/* Key insights — 기술 아이콘 옆 */
.pf-row__insight {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex: none;
	margin-left: clamp(8px, 1.2vw, 24px);
}
.pf-row__insight b {
	flex: none;
	font-size: clamp(10px, 0.75vw, 12px);
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #6f6ad6;
}
.pf-row__insight em {
	font-style: normal;
	/* Scale 과 같은 크기 */
	font-size: clamp(11px, 1.05vw, 15px);
	font-weight: 500;
	line-height: 1.5;
	color: #222;
	/* 자르지 않고 끝까지 보여 준다 */
	white-space: nowrap;
}

/* Scale — Type 자리를 대신한다. 글자 크기는 Key insights 와 같게. */
.pf-row__pane-scale {
	flex: none;
	font-size: clamp(11px, 1.05vw, 15px);
	font-weight: 500;
	line-height: 1.5;
	color: #222;
	white-space: nowrap;
}

/* 좁은 화면 — 기본 줄 아이콘도 왼쪽에 붙인다(이름·분류와 같은 줄맞춤) */
@media (max-width: 1024px) {
	.pf-row__keys {
		justify-self: start;
		justify-content: flex-start;
	}
}

/* ============================================================
   손가락으로 보는 목록 (1024 이하)
   ------------------------------------------------------------
   마우스가 없으면 오버판(마키)을 볼 길이 없다. 줄을 누르면 같은 내용을
   그 줄 밑에 세로로 편다. 아이콘 이름은 말풍선 대신 옆에 적는다.
   그리고 다섯 줄씩 더 펴는 「더보기」 단추를 둔다.
   ============================================================ */
.pf-more-m { display: none; }

@media (max-width: 1024px) {
	/* ---- 더보기 ---- */
	.pf-row.is-on { display: block !important; }
	.pf-more-m {
		display: block;
		width: calc(100% - 40px);
		margin: 14px 20px 0;
		padding: 13px 0;
		border: 1px solid rgba(255, 255, 255, .28);
		border-radius: 8px;
		background: rgba(255, 255, 255, .05);
		color: #fff;
		font-family: inherit;
		font-size: 14px;
		font-weight: 600;
		cursor: pointer;
	}
	.pf-more-m[hidden] { display: none; }
	.pf-more-m__n { opacity: .6; font-weight: 500; }

	/* ---- 눌러서 펴기 ---- */
	.pf-row.is-open .pf-row__panel {
		display: block;
		position: static;
		inset: auto;
		opacity: 1;
		visibility: visible;
		overflow: visible;
		pointer-events: auto;
		padding: 0 20px 18px;
		color: rgba(255, 255, 255, .88);
	}
	.pf-row.is-open .pf-row__marquee {
		display: block;
		width: auto;
		height: auto;
		animation: none;
		transform: none;
	}
	/* 굴리려고 두 벌 붙여 두었다 — 여기서는 한 벌만 */
	.pf-row.is-open .pf-row__pane + .pf-row__pane { display: none; }
	.pf-row.is-open .pf-row__pane {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		height: auto;
		padding: 0;
	}
	.pf-row.is-open .pf-row__pane-name { display: none; }   /* 윗줄에 이미 있다 */
	.pf-row.is-open .pf-row__feats,
	.pf-row.is-open .pf-row__techs {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		margin: 0;
	}
	/* 아이콘 옆에 이름 — 말풍선은 손가락으로 못 띄운다 */
	.pf-row.is-open .pf-row__feat-ico,
	.pf-row.is-open .pf-row__tech-ico {
		width: auto;
		min-width: 0;
		height: 30px;
		gap: 6px;
		padding: 0 10px;
		border-radius: 15px;
		border-color: rgba(147, 142, 255, .6);
		color: rgba(255, 255, 255, .9);
	}
	.pf-row.is-open .pf-row__feat-ico::after,
	.pf-row.is-open .pf-row__tech-ico::after {
		position: static;
		padding: 0;
		border-radius: 0;
		background: none;
		color: inherit;
		font-size: 12px;
		font-weight: 500;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
	}
	.pf-row.is-open .pf-row__feat-ico svg { width: 17px; height: 17px; }
	.pf-row.is-open .pf-row__tech-ico     { padding: 0 10px; }
	.pf-row.is-open .pf-row__tech-ico img { width: 17px; height: 17px; }
	.pf-row.is-open .pf-row__pane-scale,
	.pf-row.is-open .pf-row__insight em { color: rgba(255, 255, 255, .8); white-space: normal; }
	.pf-row.is-open .pf-row__insight {
		display: block;
		margin: 0;
	}
	.pf-row.is-open .pf-row__insight b { display: block; margin-bottom: 3px; color: #a7a2ff; }
}

@media (max-width: 1024px) {
	/* 좁은 화면에서는 마우스가 있어도 오버판(절대자리 마키)을 띄우지 않는다 —
	   줄 높이가 유동이라 겹쳐 보인다. 펴기(is-open)로만 보여 준다. */
	.pf-row.is-show:not(.is-open) .pf-row__panel { display: none; }
	.pf-row.is-show .pf-row__base { opacity: 1; }

	/* 누를 수 있다는 표시 — 펴면 뒤집힌다 */
	.pf-row__link { position: relative; }
	.pf-row__link::after {
		content: "";
		position: absolute;
		right: 20px;
		top: 30px;
		width: 8px;
		height: 8px;
		border-right: 2px solid rgba(255, 255, 255, .45);
		border-bottom: 2px solid rgba(255, 255, 255, .45);
		transform: rotate(45deg);
		transition: transform .22s ease;
		pointer-events: none;
	}
	.pf-row.is-open .pf-row__link::after { transform: rotate(-135deg); }
	.pf-row.is-open { background: rgba(255, 255, 255, .04); }
	.pf-row__base { padding-right: 44px; }
}
