.mattock-study {
	// Custom colors based on the HTML demo - adapted for Tailwind v4
	:root {
		--primary: #1e3a8a;
		--primary-dark: #1e293b;
		--primary-light: #3b82f6;
		--secondary: #10b981;
		--secondary-dark: #059669;
		--secondary-light: #34d399;
		--accent: #f59e0b;
		--accent-light: #fbbf24;
	}
	
	// Custom gradient text
	.gradient-text {
		background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
	}
	
	// Gradient backgrounds
	.gradient-bg-primary {
		background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
	}
	
	.gradient-bg-primary-dark {
		background: linear-gradient(135deg, #1e293b 0%, #1e3a8a 100%);
	}
	
	.gradient-bg-secondary {
		background: linear-gradient(135deg, #059669 0%, #34d399 100%);
	}
	
	.gradient-bg-gold {
		background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fde68a 100%);
	}
	
	.gradient-bg-accent {
		background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
	}
	
	// Grid background for sections
	.grid-bg::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background-image: linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
		background-size: 40px 40px;
		opacity: 1;
	}
	
	// Scroll animations
	.animate-on-scroll {
		opacity: 0;
		transform: translateY(30px);
		transition: all 0.8s ease-out;
		
		&.visible {
			opacity: 1;
			transform: translateY(0);
		}
	}
	
	// Custom animations for Tailwind v4
	@keyframes fadeIn {
		0% {
			opacity: 0;
		}
		100% {
			opacity: 1;
		}
	}
	
	@keyframes fadeInUp {
		0% {
			opacity: 0;
			transform: translateY(30px);
		}
		100% {
			opacity: 1;
			transform: translateY(0);
		}
	}
	
	@keyframes fadeInDown {
		0% {
			opacity: 0;
			transform: translateY(-30px);
		}
		100% {
			opacity: 1;
			transform: translateY(0);
		}
	}
	
	@keyframes slideInRight {
		0% {
			opacity: 0;
			transform: translateX(-30px);
		}
		100% {
			opacity: 1;
			transform: translateX(0);
		}
	}
	
	@keyframes float {
		0%, 100% {
			transform: translate(0, 0) scale(1);
		}
		50% {
			transform: translate(-20px, -30px) scale(1.1);
		}
	}
	
	@keyframes counter {
		0% {
			transform: translateY(100%);
		}
		100% {
			transform: translateY(0);
		}
	}
	
	// Animation classes
	.animate-fade-in {
		animation: fadeIn 0.8s ease-out;
	}
	
	.animate-fade-in-up {
		animation: fadeInUp 0.8s ease-out;
	}
	
	.animate-fade-in-down {
		animation: fadeInDown 0.8s ease-out;
	}
	
	.animate-slide-in-right {
		animation: slideInRight 0.8s ease-out;
	}
	
	.animate-float {
		animation: float 20s infinite ease-in-out;
	}
	
	.animate-pulse-slow {
		animation: pulse 2s infinite;
	}
	
	.animate-counter {
		animation: counter 2s ease-out;
	}
	
	// Custom shadows
	.shadow-glow {
		box-shadow: 0 0 40px rgba(59, 130, 246, 0.5);
	}
	
	// Scrollbar hide utilities
	.scrollbar-hide {
		-ms-overflow-style: none;
		scrollbar-width: none;
		
		&::-webkit-scrollbar {
			display: none;
		}
	}
	
	// Enhanced drop shadow for text
	.drop-shadow-md {
		text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	}
	
	.drop-shadow-lg {
		text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
	}
	
	// Case study card styles
	.case-card-header {
		position: relative;
		padding-bottom: 5.5rem;
		min-height: 140px;
		
		&::after {
			content: '';
			position: absolute;
			bottom: 0;
			left: 0;
			right: 0;
			height: 4rem;
			background: white;
			border-radius: 50% 50% 0 0 / 100% 100% 0 0;
		}
	}
	
	// Progress steps
	.step-connector {
		position: absolute;
		top: 50%;
		left: 50%;
		width: 100%;
		height: 2px;
		background: #e5e7eb;
		transform: translateY(-50%);
		z-index: 0;
		
		&.active {
			background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
		}
	}
	
	// Sticky sidebar
	.sticky-sidebar {
		position: sticky;
		top: 100px;
		height: fit-content;
	}
	
	// Filter tags
	.filter-tag {
		transition: all 0.3s ease;
		
		&:hover {
			transform: translateY(-2px);
			box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
		}
		
		&.active {
			background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
			color: white;
			border-color: transparent;
		}
	}
	
	// Case study impact metrics
	.impact-metric {
		position: relative;
		overflow: hidden;
		
		&::before {
			content: '';
			position: absolute;
			top: -50%;
			left: -50%;
			width: 200%;
			height: 200%;
			background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
			transform: rotate(45deg) translateX(-100%);
			transition: transform 0.6s;
		}
		
		&:hover::before {
			transform: rotate(45deg) translateX(100%);
		}
	}
	
	// Story timeline
	.timeline-dot {
		position: relative;
		z-index: 10;
		
		&::after {
			content: '';
			position: absolute;
			top: 50%;
			left: 50%;
			width: 24px;
			height: 24px;
			background: rgba(59, 130, 246, 0.2);
			border-radius: 50%;
			transform: translate(-50%, -50%);
			animation: pulse 2s infinite;
		}
	}
	
	// CTA pulse effect
	@keyframes ctaPulse {
		0%, 100% {
			box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
		}
		50% {
			box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
		}
	}
	
	.cta-pulse {
		animation: ctaPulse 2s infinite;
	}
	
	// Custom colors for theme integration
	.text-primary {
		color: var(--primary);
	}
	
	.text-primary-dark {
		color: var(--primary-dark);
	}
	
	.text-primary-light {
		color: var(--primary-light);
	}
	
	.text-secondary {
		color: var(--secondary);
	}
	
	.text-secondary-dark {
		color: var(--secondary-dark);
	}
	
	.text-secondary-light {
		color: var(--secondary-light);
	}
	
	.text-accent {
		color: var(--accent);
	}
	
	.text-accent-light {
		color: var(--accent-light);
	}
	
	// Background color utilities
	.bg-primary {
		background-color: var(--primary);
	}
	
	.bg-primary-dark {
		background-color: var(--primary-dark);
	}
	
	.bg-primary-light {
		background-color: var(--primary-light);
	}
	
	.bg-secondary {
		background-color: var(--secondary);
	}
	
	.bg-secondary-dark {
		background-color: var(--secondary-dark);
	}
	
	.bg-secondary-light {
		background-color: var(--secondary-light);
	}
	
	.bg-accent {
		background-color: var(--accent);
	}
	
	.bg-accent-light {
		background-color: var(--accent-light);
	}
	
	// Border color utilities
	.border-primary {
		border-color: var(--primary);
	}
	
	.border-secondary {
		border-color: var(--secondary);
	}
	
	.border-accent {
		border-color: var(--accent);
	}
	
	// Hover states
	.hover\:border-primary:hover {
		border-color: var(--primary);
	}
	
	.hover\:text-primary:hover {
		color: var(--primary);
	}
	
	.hover\:bg-primary:hover {
		background-color: var(--primary);
	}
	
	// Focus states
	.focus\:border-primary:focus {
		border-color: var(--primary);
	}
	
	.focus\:ring-primary:focus {
		--tw-ring-color: var(--primary);
	}
	
	// Line clamp utility for text truncation
	.line-clamp-3 {
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	
	.hero-section.bg-gradient-to-br {
		background-image: linear-gradient(to bottom right, #1e293b, #1e3a8a, #3b82f6);
	}
}