*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--k-bg: #ffffff;
	--k-dark: #291b25;
	--k-dark-hover: #170e15;
	--k-orange: #ed5b2d;
	--k-orange-hover: #d84c1f;
	--k-card-bg: #f5f5f5;
	--k-border: rgba(41, 27, 37, 0.1);
	--k-border-subtle: rgba(41, 27, 37, 0.06);
	--k-text-main: #291b25;
	--k-text-muted: #5e5359;
	--k-text-light: #8c7e86;
}

body.works-page {
	background-color: var(--k-bg);
	color: var(--k-text-main);
	font-family: "Inter", "Sora", -apple-system, sans-serif;
	margin: 0;
	padding: 0;
	min-height: 100vh;
}

/* Titles: Bebas Neue */
.works-intro-title,
.works-section-title,
.project-title,
.callout-title {
	font-family: "Bebas Neue", "Bebas Neue Placeholder", sans-serif;
	letter-spacing: 0.02em;
}

/* Paragraphs and Spans: Inter */
p,
span,
li,
a,
button,
input,
select,
textarea,
.works-intro-desc,
.project-desc,
.callout-subtitle,
.tech-tag,
.filter-btn,
.works-badge,
.works-availability {
	font-family: "Inter", "Inter Placeholder", sans-serif;
}

/* Header Active state */
.karta-col-works.active {
	background-color: #fafafa;
}

.karta-col-works.active .karta-col-title {
	color: #ed5b2d;
}

/* Works Main Container */
.works-main {
	max-width: 1500px;
	margin: 0 auto;
	padding: 40px 24px 100px;
}

/* Top Intro Banner (Exact Framerpod Style from Reference) */
.works-intro-banner {
	background: #f5f5f5;
	border-radius: 12px;
	padding: 34px 44px;
	margin-bottom: 40px;
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 48px;
	align-items: flex-start;
	box-sizing: border-box;
}

.works-intro-brand-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.works-intro-logo-wrap {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.works-intro-logo {
	height: 34px;
	width: auto;
	max-width: 175px;
	object-fit: contain;
	display: block;
	mix-blend-mode: multiply;
}

.works-intro-tag {
	border: 1px solid #c4c8ce;
	border-radius: 4px;
	padding: 4px 8px;
	font-family: "Inter", "Sora", sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	color: #5c6674;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1.2;
	display: inline-block;
	background: transparent;
	user-select: none;
}

.works-intro-content-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.works-intro-lead {
	font-family: "Inter", "Sora", -apple-system, sans-serif;
	font-weight: 600;
	font-size: 1.22rem;
	line-height: 1.45;
	color: #2b3545;
	margin: 0;
	letter-spacing: -0.01em;
}

.works-intro-link {
	font-family: "Inter", "Sora", -apple-system, sans-serif;
	font-weight: 600;
	font-size: 1.15rem;
	color: #ff552e;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.works-intro-link:hover {
	opacity: 0.85;
	transform: translateX(2px);
}

.works-intro-status {
	font-family: "Inter", "Sora", -apple-system, sans-serif;
	font-weight: 600;
	font-size: 1.15rem;
	color: #2b3545;
	margin: 0;
}

@media (max-width: 860px) {
	.works-intro-banner {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 28px 24px;
	}

	.works-intro-lead {
		font-size: 1.1rem;
		line-height: 1.4;
	}

	.works-intro-link,
	.works-intro-status {
		font-size: 1.05rem;
	}
}

/* Category Filter Bar */
.works-filters {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 40px;
	overflow-x: auto;
	padding-bottom: 8px;
	scrollbar-width: none;
}

.works-filters::-webkit-scrollbar {
	display: none;
}

.filter-btn {
	background: var(--k-card-bg);
	border: none;
	color: var(--k-text-main);
	padding: 10px 20px;
	border-radius: 5px;
	font-family: "Inter", "Sora", -apple-system, sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s ease;
}

.filter-btn:hover {
	background: rgba(41, 27, 37, 0.05);
	border-color: rgba(41, 27, 37, 0.2);
}

.filter-btn.active {
	background: var(--k-dark);
	color: #ffffff;
	border-color: var(--k-dark);
	box-shadow: 0 4px 12px rgba(41, 27, 37, 0.15);
}

.filter-count {
	display: inline-block;
	background: rgba(255, 255, 255, 0.2);
	padding: 2px 7px;
	border-radius: 10px;
	font-size: 0.75rem;
	margin-left: 6px;
}

.filter-btn.active .filter-count {
	background: rgba(255, 255, 255, 0);
}

/* Section Headings */
.works-section-header {
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.works-section-title {
	font-family: "Bebas Neue", "Bebas Neue Placeholder", sans-serif;
	font-size: 1.4rem;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--k-dark);
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.works-section-title::after {
	content: '';
	display: block;
	width: 40px;
	height: 2px;
	background-color: var(--k-orange);
}

/* Project Cards Feed */
.works-grid {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin-bottom: 48px;
}

.project-card {
	background: var(--k-card-bg);
	border-radius: 20px;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	align-items: center;
	box-shadow: 0 4px 20px rgba(41, 27, 37, 0.03);
	transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
}

.project-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(41, 27, 37, 0.08);
}

.project-card-media {
	position: relative;
	overflow: hidden;
	margin: 24px;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	cursor: zoom-in;
}

.project-card-media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
	background: #ffffff;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card-media img {
	transform: scale(1.025);
}

.project-card-media::after {
	content: 'View Full Screenshot ↗';
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: rgba(41, 27, 37, 0.88);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #ffffff;
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	padding: 6px 14px;
	border-radius: 20px;
	opacity: 0;
	transform: translateY(6px);
	transition: all 0.25s ease;
	pointer-events: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-card:hover .project-card-media::after {
	opacity: 1;
	transform: translateY(0);
}

.project-card-body {
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.project-card-top {
	margin-bottom: 24px;
}

.project-category-tag {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--k-orange);
	margin-bottom: 10px;
}

.project-title {
	font-family: "Bebas Neue", "Bebas Neue Placeholder", sans-serif;
	font-size: 2.2rem;
	font-weight: 400;
	line-height: 1.1;
	color: var(--k-dark);
	letter-spacing: 0.02em;
	margin: 0 0 10px 0;
}

.project-desc {
	font-size: 0.98rem;
	line-height: 1.6;
	color: var(--k-text-muted);
	margin: 0 0 20px 0;
}

.project-tech-stack {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.tech-tag {
	background: rgba(41, 27, 37, 0.04);
	border: 1px solid rgba(41, 27, 37, 0.08);
	color: var(--k-dark);
	font-size: 0.78rem;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 6px;
	letter-spacing: 0.02em;
}

.project-card-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding-top: 20px;
	border-top: 1px solid var(--k-border-subtle);
}

.btn-project-preview {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--k-dark);
	color: #ffffff;
	padding: 10px 20px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.86rem;
	letter-spacing: 0.03em;
	transition: all 0.2s ease;
}

.btn-project-preview:hover {
	background: var(--k-dark-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(41, 27, 37, 0.2);
}



.project-meta-info {
	margin-left: auto;
	font-size: 0.8rem;
	color: var(--k-text-light);
	font-weight: 500;
}

/* Mid-Page Callout Banner */
.works-callout-banner {
	background: #f5f5f5;
	border-radius: 20px;
	padding: 36px 44px;
	margin: 40px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	box-shadow: 0 4px 20px rgba(41, 27, 37, 0.03);
}

.callout-content-left {
	display: flex;
	align-items: center;
	gap: 24px;
}

.callout-icon {
	font-size: 2.5rem;
}

.callout-title {
	font-family: "Bebas Neue", "Bebas Neue Placeholder", sans-serif;
	font-size: 1.8rem;
	font-weight: 400;
	color: var(--k-dark);
	margin: 0 0 6px 0;
	letter-spacing: 0.02em;
}

.callout-subtitle {
	font-size: 0.95rem;
	color: var(--k-text-muted);
	margin: 0;
}

.callout-action-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--k-dark);
	color: #ffffff;
	padding: 12px 28px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.92rem;
	white-space: nowrap;
	transition: all 0.25s ease;
}

.callout-action-btn:hover {
	background: var(--k-orange);
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(237, 91, 45, 0.3);
}



/* Responsive adjustments */
@media (max-width: 968px) {
	.works-intro-banner {
		flex-direction: column;
		align-items: flex-start;
		padding: 28px;
		gap: 24px;
	}

	.works-intro-right {
		align-items: flex-start;
		width: 100%;
		flex-direction: row;
		justify-content: space-between;
	}

	.project-card {
		grid-template-columns: 1fr;
	}

	.project-card-media {
		margin: 16px 16px 0;
		aspect-ratio: 16 / 10;
	}

	.project-card-body {
		padding: 28px;
	}

	.project-meta-info {
		margin-left: 0;
		width: 100%;
	}

	.works-callout-banner {
		flex-direction: column;
		align-items: flex-start;
		padding: 28px;
	}

	.callout-action-btn {
		width: 100%;
		justify-content: center;
	}
}

/* Lightbox modal for full screenshot preview */
.works-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.works-lightbox.is-open {
	display: flex;
	animation: lightboxFadeIn 0.25s ease;
}

@keyframes lightboxFadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.lightbox-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(17, 10, 15, 0.88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	cursor: pointer;
}

.lightbox-container {
	position: relative;
	max-width: 94vw;
	max-height: 90vh;
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	display: flex;
	flex-direction: column;
	z-index: 2;
	animation: lightboxPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxPopIn {
	from {
		opacity: 0;
		transform: scale(0.95);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

.lightbox-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(41, 27, 37, 0.85);
	color: #ffffff;
	border: none;
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.2s ease;
}

.lightbox-close:hover {
	background: var(--k-orange);
	transform: scale(1.1);
}

.lightbox-img {
	max-width: 100%;
	max-height: calc(90vh - 60px);
	object-fit: contain;
	display: block;
	margin: 0 auto;
	background: #ffffff;
}

.lightbox-caption {
	padding: 14px 22px;
	background: #ffffff;
	border-top: 1px solid rgba(41, 27, 37, 0.08);
	font-family: "Inter", sans-serif;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--k-dark);
	display: flex;
	align-items: center;
	justify-content: space-between;
}