/* work.css — Work page (layers on top of amp.css) */

/* project showcase grid — image-forward cards, caption over photo */
#work-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.proj-card {
	position: relative;
	margin: 0;
	border-radius: 18px;
	overflow: hidden;
	aspect-ratio: 1536 / 1024;
	/* branded fallback "cover art" when no photo is set yet */
	background: linear-gradient(150deg, #16307a 0%, #0a1020 74%);
	isolation: isolate;
}

.proj-card:nth-child(3n + 2) {
	background: linear-gradient(150deg, #0e1118 0%, #1b2b57 100%);
}

.proj-card:nth-child(3n) {
	background: linear-gradient(150deg, #1a2340 0%, #070d1e 100%);
}

.proj-img {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.proj-card:hover .proj-img {
	transform: scale(1.05);
}

.proj-scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to top,
		rgba(7, 13, 30, 0.88) 0%,
		rgba(7, 13, 30, 0.45) 34%,
		rgba(7, 13, 30, 0.05) 62%,
		transparent 100%
	);
}

.proj-cap {
	position: absolute;
	z-index: 2;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.proj-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.proj-chips span {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.92);
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	border-radius: 999px;
	padding: 4px 10px;
}

.proj-client {
	font-family: var(--sans);
	font-size: clamp(20px, 1.5vw, 24px);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.05;
	color: #fff;
	margin: 0;
}

@media (max-width: 980px) {
	#work-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	#work-grid {
		grid-template-columns: 1fr;
	}
}

/* testimonial slider */
.quote-slider {
	position: relative;
}

.q-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.6s ease;
	pointer-events: none;
}

.q-slide.on {
	position: relative;
	opacity: 1;
	pointer-events: auto;
}

.q-text {
	font-family: var(--sans);
	font-size: clamp(26px, 3vw, 48px);
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.16;
	max-width: 24ch;
	margin: 0;
}

.q-text .it {
	color: var(--blue);
}

.q-attr {
	margin-top: 36px;
	display: flex;
	gap: 16px;
	align-items: center;
}

.q-badge {
	width: 48px;
	height: 48px;
	flex: 0 0 auto;
	background: var(--blue-deep);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--mono);
	font-size: 13px;
	letter-spacing: 0.05em;
	border-radius: 10px;
}

.q-controls {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 48px;
}

.q-dots {
	display: flex;
	gap: 8px;
}

.q-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(14, 14, 16, 0.18);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}

.q-dot.on {
	background: var(--blue);
	transform: scale(1.3);
}

.q-arrow {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--rule);
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ink);
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.q-arrow:hover {
	background: var(--ink);
	color: #fff;
	border-color: var(--ink);
}

@media (max-width: 560px) {
	/* hide scroll cue on mobile */
	.amp-cue {
		display: none;
	}
}
