/* Hero */
.hero {
	position: relative;
	padding-top: 80px;
	padding-bottom: 96px;
	overflow: hidden;
}

@media ( min-width: 768px ) {
	.hero {
		padding-top: 112px;
		padding-bottom: 96px;
	}
}

.hero .container {
	position: relative;
}

/* Background layers */
.hero-bg-grain {
	position: absolute;
	inset: 0;
	opacity: 0.045;
	mix-blend-mode: overlay;
	pointer-events: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hero-bg-ambient {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	pointer-events: none;
}

.hero-bg-ambient-1 {
	top: -20%;
	right: -8%;
	width: 55vw;
	height: 55vw;
	max-width: 700px;
	max-height: 700px;
	background: radial-gradient( circle, rgba(0, 140, 200, 0.20), transparent 65% );
	animation: hero-ambient-drift 18s ease-in-out infinite;
}

.hero-bg-ambient-2 {
	bottom: -30%;
	left: -10%;
	width: 42vw;
	height: 42vw;
	max-width: 520px;
	max-height: 520px;
	background: radial-gradient( circle, rgba(0, 200, 180, 0.14), transparent 65% );
	animation: hero-ambient-drift 22s ease-in-out infinite reverse;
}

@keyframes hero-ambient-drift {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(-4%, 5%) scale(1.08); }
}

.hero-bg-spotlight-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient( rgba(255, 255, 255, 0.05) 1px, transparent 1px ),
		linear-gradient( 90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px );
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient( 600px circle at var(--hero-mx, 30%) var(--hero-my, 25%), #000 0%, transparent 75% );
	        mask-image: radial-gradient( 600px circle at var(--hero-mx, 30%) var(--hero-my, 25%), #000 0%, transparent 75% );
	pointer-events: none;
}

.hero-bg-spotlight-glow {
	position: absolute;
	inset: 0;
	background: radial-gradient( 500px circle at var(--hero-mx, 30%) var(--hero-my, 25%), rgba(0, 200, 180, 0.16), transparent 70% );
	pointer-events: none;
}

/* Badge beam ring */
@property --hero-beam-angle {
	syntax: '<angle>';
	initial-value: 0deg;
	inherits: false;
}

.hero-badge-beam {
	position: relative;
	display: inline-block;
	border-radius: 999px;
}

.hero-badge-beam::before {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: 999px;
	padding: 1px;
	background: conic-gradient( from var(--hero-beam-angle, 0deg), transparent 0%, var(--color-teal-bright) 15%, transparent 30% );
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	        mask-composite: exclude;
	animation: hero-beam-rotate 3.5s linear infinite;
	pointer-events: none;
}

@keyframes hero-beam-rotate {
	to { --hero-beam-angle: 360deg; }
}

/* Title */
.hero-title {
	font-size: 40px;
	font-weight: 700;
	letter-spacing: -0.03em;
	max-width: 12ch;
	line-height: 1.02;
	margin-top: 26px;
}

@media ( min-width: 768px ) {
	.hero-title {
		font-size: clamp(2.75rem, 4.4vw, 4.2rem);
	}
}

.hero-shimmer {
	background: linear-gradient( 100deg, var(--color-teal-bright) 20%, var(--color-ocean) 40%, var(--color-teal-bright) 60%, var(--color-ocean) 80% );
	background-size: 250% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	animation: hero-shimmer-move 6s linear infinite;
}

@keyframes hero-shimmer-move {
	to { background-position: -250% 0; }
}

.hero-lead {
	margin-top: 22px;
	max-width: 46ch;
}

.hero-ctas {
	margin-top: 32px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hero-capabilities {
	margin-top: 48px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 28px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-text-dimmer);
	font-weight: 500;
}

.hero-capability {
	display: inline-flex;
	align-items: center;
	gap: 18px;
}

.hero-capability-dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--color-text-muted);
}

.hero-quicklinks {
	margin-top: 28px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hero-quicklink {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 12px;
	color: var(--color-text-dim);
	transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-quicklink svg {
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-quicklink:hover {
	border-color: var(--color-border-teal);
	color: var(--color-teal);
}

.hero-quicklink:hover svg {
	opacity: 1;
	transform: translateX(0);
}

/* Split layout + floating cards */
.hero-grid {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	align-items: center;
}

@media ( min-width: 1024px ) {
	.hero-grid {
		grid-template-columns: 1.15fr 0.85fr;
	}
}

.hero-float-stage {
	position: relative;
	height: 500px;
	perspective: 1200px;
	display: none;
}

@media ( min-width: 1024px ) {
	.hero-float-stage {
		display: block;
	}
}

.hero-float-card {
	position: absolute;
	width: 240px;
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-border);
	background: rgba(16, 31, 51, 0.6);
	backdrop-filter: blur(14px);
	box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
	padding: 18px;
	will-change: transform;
	display: block;
	text-decoration: none;
	transition: transform 0.15s ease-out;
}

.hero-float-card-a {
	top: 0;
	left: 2%;
	z-index: 3;
}

.hero-float-card-b {
	top: 290px;
	left: 36%;
	z-index: 2;
}

.hero-float-card-tilt {
	animation: hero-float-bob 7s ease-in-out infinite;
}

.hero-float-card-a .hero-float-card-tilt {
	animation-delay: 0s;
}

.hero-float-card-b .hero-float-card-tilt {
	animation-delay: 1.4s;
	animation-duration: 8.5s;
}

@keyframes hero-float-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}

.hero-card-eyebrow {
	font-family: var(--font-jetbrains);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-teal-bright);
}

.hero-card-title {
	font-family: var(--font-sora);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	margin: 8px 0 0;
	color: var(--color-text);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.hero-float-card .portfolio-card-results {
	margin-top: 14px;
}

.hero-float-card .portfolio-result-label {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

@media ( prefers-reduced-motion: reduce ) {
	.hero-bg-ambient,
	.hero-badge-beam::before,
	.hero-shimmer,
	.hero-float-card-tilt {
		animation: none !important;
	}
}
