/* =================================================================
   PORTFOLIO-GRID.CSS
   Draggable momentum-physics circular brand carousel.
   Uses global :root vars from global.css — no local :root block,
   no body{} background (handled globally).
================================================================= */


.pw-services-label {
	position: absolute;
	top: calc(var(--nav-height) - 14px);
	left: 36px;
	z-index: 120;
	background: transparent;
	color: #888888;
	font-family: var(--font-primary);
	font-size: 25px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	pointer-events: none;
}

@media (min-width: 769px) and (max-width: 991px) {
	.pw-services-label {
		top: calc(var(--nav-height) - 10px);
		left: 36px;
		font-size: 25px;
		letter-spacing: 0.2em;
	}
}

@media (max-width: 768px) {
	.pw-services-label {
		top: calc(var(--nav-height) - 6px);
		left: 18px;
		font-size: 16px;
		letter-spacing: 0.15em;
	}
}

.pw-grain {
	position: fixed;
	inset: -50%;
	width: 200%;
	height: 200%;
	pointer-events: none;
	z-index: 999;
	opacity: 0.022;
	transform: translateZ(0);
}


.pw-section {
	position: relative;
	width: 100%;
	background: #050505;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding-top: calc(var(--nav-height, 80px) + 30px);
	padding-bottom: 10vh;
	overflow: hidden;
}

.pw-stage {
	position: relative;
	width: 100%;
	height: clamp(200px, 40vh, 470px);
	overflow: visible;
	cursor: grab;
	touch-action: pan-y;
}

.pw-stage::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: clamp(180px, 40vmin, 420px);
	height: clamp(180px, 40vmin, 420px);
	pointer-events: none;
	z-index: 50;
	background: radial-gradient(circle,
		rgba(255, 255, 255, .28) 0%,
		rgba(255, 255, 255, .12) 30%,
		rgba(255, 255, 255, .05) 50%,
		transparent 70%);
	filter: blur(30px);
}

.pw-stage.is-dragging {
	cursor: grabbing;
}

.pw-track {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 0;
	overflow: visible;
}

.pw-item {
	position: absolute;
	top: 0;
	pointer-events: auto;
}

.pw-item a {
	display: block;
	text-decoration: none;
}

.pw-circle {
	border-radius: 50%;
	overflow: hidden;
	display: block;
	position: relative;
	background: #c7c8cc;
	box-shadow:
		inset 0 8px 20px rgba(255, 255, 255, .7),
		inset 0 -18px 35px rgba(0, 0, 0, .12),
		0 15px 40px rgba(0, 0, 0, .15);
}

.pw-circle::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(circle at 32% 24%,
		rgba(255, 255, 255, .42) 0%,
		rgba(255, 255, 255, .22) 18%,
		rgba(255, 255, 255, .08) 34%,
		transparent 52%);
	filter: none;
	z-index: 3;
	pointer-events: none;
}

.pw-circle::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background:
		radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .35), transparent 35%),
		radial-gradient(circle at 70% 80%, rgba(0, 0, 0, .15), transparent 45%);
	pointer-events: none;
	z-index: 2;
}

.pw-circle img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 12%;
	background: #c7c8cc;
	filter: contrast(1.08) saturate(1.08);
	position: relative;
	z-index: 1;
}

.pw-label {
	position: absolute;
	left: 50%;
	top: 100%;
	transform: translateX(-50%) translateY(14px);
	white-space: nowrap;
	text-align: center;
	opacity: 1;
	pointer-events: none;
	margin-top: 10px;
}

.pw-lname {
	display: block;
	font-family: var(--font-primary);
	font-size: 9px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--ink);
	opacity: 0.7;
}

.pw-hint {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: min(92vw, 760px);
	margin: clamp(42px, 6vh, 72px) auto 0;
	padding: 0 18px;
	position: relative;
	z-index: 200;
	text-align: center;
	animation: pwFadeUp 1s var(--ease) 0.6s both;
}

.pw-hint-text {
	font-family: var(--font-primary);
	font-style: italic;
	font-size: clamp(13px, 1.6vw, 17px);
	color: var(--muted);
	letter-spacing: 0.04em;
}

.pw-hint-icon {
	font-size: 11px;
	color: var(--muted);
	opacity: 0.8;
	animation: pwNudge 2s ease-in-out infinite;
}

@keyframes pwNudge {
	0%, 100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-4px);
	}
}

@keyframes pwFadeUp {
	from {
		opacity: 0;
		transform: translateY(14px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ── RESPONSIVE ─────────────────────────────────────────────
   clamp() handles fluid scaling. Only 2 overrides needed.
──────────────────────────────────────────────────────────── */
/* All non-desktop screens */
@media (max-width: 1199px) {
	.pw-section {
		padding-top: calc(var(--nav-height, 80px) + 42px);
	}


	.pw-stage {
		height: clamp(280px, 45vh, 560px);
	}

	.pw-hint {
		margin-top: clamp(34px, 5vh, 56px);
	}

	.pw-hint-text {
		font-size: clamp(11px, 3vw, 15px);
	}
}

@media (max-width: 768px) {
	.pw-section {
		padding-top: calc(var(--nav-height, 80px) + 28px);
	}

	.pw-stage {
		height: clamp(250px, 38vh, 430px);
	}

	.pw-hint {
		margin-top: clamp(72px, 9vh, 104px);
	}
}

@media (min-width: 1200px) {
	.pw-stage {
		height: 420px;
	}

	.pw-label {
		display: block;
	}
}
