/* =========================================
   KAJA DESIGNS - HOME.CSS
   Homepage-specific sections
========================================= */

/* =========================================
   HOME HERO
========================================= */

.hero{
	position:relative;
	min-height:100vh;
	padding:0 24px 180px;
	overflow:hidden;
	background:
		linear-gradient(90deg, rgba(5,5,10,.96) 0%, rgba(5,5,10,.88) 22%, rgba(5,5,10,.50) 50%, rgba(5,5,10,.15) 100%),
		linear-gradient(180deg, rgba(5,5,10,.05) 0%, rgba(5,5,10,.28) 62%, var(--bg) 100%),
		var(--bg) url("../images/hero-wide.jpg") center center / cover no-repeat;
}

.hero-video{
	position:absolute;
	inset:0;
	z-index:0;
	width:100%;
	height:100%;
	object-fit:cover;
	object-position:center center;
	pointer-events:none;
}

.hero-overlay{
	position:absolute;
	inset:0;
	z-index:1;
	background:
		linear-gradient(90deg, rgba(5,5,10,.96) 0%, rgba(5,5,10,.88) 22%, rgba(5,5,10,.50) 50%, rgba(5,5,10,.15) 100%),
		linear-gradient(180deg, rgba(5,5,10,.05) 0%, rgba(5,5,10,.28) 62%, var(--bg) 100%);
}

.hero-content{
	position:relative;
	z-index:5;
	display:grid;
	align-items:start;

	width:var(--container);
	margin:0 auto;
	padding-top:160px;
}

.eyebrow{
	display:flex;
	align-items:center;
	gap:12px;
	margin-bottom:28px;

	font-size:.78rem;
	font-weight:500;
	letter-spacing:.18em;
	color:#d2c6ff;
}

.eyebrow span{
	width:8px;
	height:8px;
	border-radius:999px;
	background:var(--purple);
	box-shadow:0 0 20px var(--purple);
}

.hero-left h1{
	margin-bottom:36px;
	font-size:clamp(4.5rem, 8vw, 8rem);
	line-height:.95;
	font-weight:300;
	letter-spacing:-.07em;
	text-shadow:0 10px 40px rgba(0,0,0,.4);
}

.hero-left h1 em{
	font-weight:400;
}

.hero-text{
	max-width:640px;
	margin-bottom:44px;
	color:var(--muted-strong);
	font-size:1.28rem;
	line-height:1.8;
}

@media(max-width:760px){
	.hero-video{
		display:none;
	}
}

/* =========================================
   FEATURED PROJECT
========================================= */

.featured-project{
	padding:0 0 140px;
	background:transparent;
}

.project-header{
	max-width:760px;
	margin-bottom:34px;
}

.project-header h2{
	margin-bottom:20px;
	font-size:clamp(3rem, 4vw, 4.5rem);
}

.project-intro{
	max-width:700px;
	margin-bottom:28px;
	color:var(--muted);
	font-size:1.15rem;
	line-height:1.9;
}

.project-showcase{
	display:grid;
	grid-template-columns:1.45fr .55fr;
	gap:72px;
	align-items:start;
}

.project-image{
	position:relative;
	overflow:hidden;
	max-height:560px;
	padding-top:40px;
	border:1px solid var(--line);
	border-radius:24px;
	background:var(--surface);
}

.project-image::before{
	content:"";
	position:absolute;
	top:0;
	left:0;
	right:0;
	height:40px;
	background:#111118;
	border-bottom:1px solid rgba(255,255,255,.06);
}

.project-image::after{
	content:"●  ●  ●";
	position:absolute;
	top:11px;
	left:18px;
	font-size:12px;
	color:rgba(255,255,255,.25);
}

.project-image img{
	width:100%;
	height:440px;
	object-fit:cover;
	object-position:top center;
	transition:transform .5s ease;
}

.project-image:hover img{
	transform:scale(1.02);
}

.project-side{
	padding-top:4px;
}

.project-details{
	margin-bottom:28px;
}

.project-details h3,
.project-outcomes h3{
	margin-bottom:28px;
	color:var(--purple-light);
	font-size:1rem;
	font-weight:600;
	text-transform:uppercase;
	letter-spacing:.18em;
}

.detail-item,
.outcome-item{
	padding:12px 0;
	border-bottom:1px solid var(--line);
}

.detail-item:first-of-type,
.outcome-item:first-of-type{
	border-top:1px solid var(--line);
}

.detail-item span{
	display:block;
	margin-bottom:6px;
	color:rgba(255,255,255,.35);
	font-size:.75rem;
	letter-spacing:.12em;
	text-transform:uppercase;
}

.detail-item p,
.outcome-item p{
	color:rgba(255,255,255,.84);
	line-height:1.7;
}

/* =========================================
   WHAT WE BUILD
========================================= */

.build-section{
	position:relative;
	overflow:hidden;
	padding:0 0 140px;
	background:transparent;
}

.build-header{
	max-width:820px;
	margin-bottom:68px;
}

.build-header h2{
	margin-top:22px;
	font-size:clamp(3rem, 4.5vw, 5.25rem);
	font-weight:300;
	line-height:.95;
	letter-spacing:-.065em;
	color:var(--text);
}

.build-grid{
	display:grid;
	grid-template-columns:repeat(4, 1fr);
	gap:24px;
}

.build-card-content{
	position:relative;
	z-index:3;
}

.build-card h3{
	margin:1.8rem 0 1.1rem;
	color:var(--text);
	font-size:clamp(1.85rem, 2vw, 2.4rem);
	line-height:1;
	font-weight:300;
	letter-spacing:-.045em;
}

.build-card p{
	max-width:520px;
	color:rgba(255,255,255,.6);
	font-size:1rem;
	line-height:1.75;
}

.build-card-featured{
	grid-column:span 2;
	min-height:320px;
	padding:40px;
}

.build-card-featured::after{
	content:"";
	position:absolute;
	right:-120px;
	bottom:-120px;
	width:320px;
	height:320px;
	border-radius:50%;
	background:radial-gradient(circle, rgba(157,92,255,.12), transparent 70%);
	opacity:0;
	transition:opacity var(--ease);
}

.build-card-featured:hover::after{
	opacity:1;
}

.build-card-small{
	min-height:260px;
	padding:32px;
}

.build-card-small h3{
	font-size:1.75rem;
}

.build-card-small p{
	font-size:.96rem;
	line-height:1.7;
}

.build-screenshot{
	position:absolute;
	right:18px;
	bottom:-85px;
	width:54%;
	min-width:300px;

	overflow:hidden;
	border:1px solid rgba(255,255,255,.12);
	border-radius:18px;
	background:var(--surface);
	box-shadow:0 30px 80px rgba(0,0,0,.35);

	opacity:.14;
	transform:rotate(-4deg);
	transition:
		opacity var(--ease),
		transform var(--ease);
}

.build-screenshot::before{
	content:"";
	position:absolute;
	top:0;
	left:0;
	right:0;
	z-index:2;
	height:34px;
	background:rgba(12,12,18,.92);
	border-bottom:1px solid rgba(255,255,255,.08);
}

.build-screenshot::after{
	content:"●  ●  ●";
	position:absolute;
	top:9px;
	left:16px;
	z-index:3;
	font-size:11px;
	letter-spacing:3px;
	color:rgba(255,255,255,.25);
}

.build-screenshot img{
	width:100%;
	height:auto;
	padding-top:34px;
	filter:brightness(.7) saturate(.8) contrast(1.05) blur(.3px);
}

.build-card:hover .build-screenshot{
	opacity:.25;
	transform:rotate(-2deg) translateY(-8px);
}

.build-ghost-icon{
	position:absolute;
	right:-1.2rem;
	bottom:-1.4rem;
	z-index:1;
	width:11rem;
	height:11rem;
	stroke:var(--purple-light);
	fill:none;
	stroke-width:1.4;
	opacity:.04;
	transition:
		opacity var(--ease),
		transform var(--ease);
}

.build-card-small:hover .build-ghost-icon{
	opacity:.1;
	transform:scale(1.08) translate(-.5rem, -.5rem);
}

/* =========================================
   WHY KAJA
========================================= */

.why-section{
	padding:0 0 140px;
}

.why-header{
	max-width:820px;
	margin-bottom:64px;
}

.why-header h2{
	margin-bottom:28px;
	font-size:clamp(2.6rem, 4vw, 4.5rem);
}

.why-text{
	max-width:640px;
	color:var(--muted);
	font-size:1.15rem;
	line-height:1.9;
}

.why-card-grid{
	display:grid;
	grid-template-columns:repeat(4, 1fr);
	gap:24px;
}

.why-card{
	min-height:320px;
	padding:36px;
}

.why-icon{
	position:absolute;
	inset:0;
	padding:20px;
	pointer-events:none;
}

.why-icon svg{
	position:absolute;
	top:24px;
	right:24px;
	width:160px;
	height:160px;
	opacity:.045;
	pointer-events:none;
	stroke:var(--purple-light);
	fill:none;
	stroke-width:1.4;
	stroke-linecap:round;
	stroke-linejoin:round;
	transition:
		opacity var(--ease),
		transform var(--ease);
}

.why-card:hover .why-icon svg{
	opacity:.08;
	transform:scale(1.1) rotate(-4deg);
}

.why-label{
	margin-bottom:48px;
	font-size:.72rem;
	letter-spacing:.18em;
}

.why-card h3,
.why-card p{
	position:relative;
	z-index:2;
}

.why-card h3{
	margin-top:110px;
	margin-bottom:16px;
	font-size:1.85rem;
	font-weight:300;
	line-height:1.1;
	letter-spacing:-.03em;
}

.why-card p{
	color:rgba(255,255,255,.6);
	line-height:1.75;
}

/* =========================================
   HOME RESPONSIVE
========================================= */

@media(max-width:1200px){
	.project-showcase,
	.build-grid{
		grid-template-columns:1fr;
	}

	.project-side{
		display:grid;
		grid-template-columns:1fr 1fr;
		gap:40px;
	}

	.build-card-featured{
		grid-column:span 1;
	}

	.why-card-grid{
		grid-template-columns:repeat(2, 1fr);
	}
}

@media(max-width:800px){
	.hero{
		padding:0 14px 90px;
	}

	.hero-content{
		padding-top:140px;
		align-items:start;
	}

	.hero-left h1{
		font-size:clamp(3.4rem, 15vw, 5rem);
		letter-spacing:-.065em;
	}

	.hero-text{
		font-size:1.05rem;
	}

	.featured-project,
	.build-section,
	.why-section{
		padding-bottom:90px;
	}

	.project-showcase{
		gap:42px;
	}

	.project-side{
		grid-template-columns:1fr;
		gap:0;
	}

	.project-details{
		margin-bottom:42px;
	}

	.project-image{
		max-height:none;
	}

	.project-image img{
		height:auto;
		object-fit:contain;
		object-position:top center;
	}

	.build-header,
	.why-header{
		margin-bottom:52px;
	}

	.build-grid,
	.why-card-grid{
		grid-template-columns:1fr;
		gap:18px;
	}

	.build-card-featured,
	.build-card-small{
		min-height:320px;
		padding:28px;
	}

	.build-screenshot{
		right:14px;
		bottom:-70px;
		width:72%;
		min-width:220px;
		opacity:.14;
	}

	.build-card:hover .build-screenshot{
		opacity:.22;
	}

	.build-ghost-icon{
		width:11rem;
		height:11rem;
	}

	.project-outcomes h3{
		margin-bottom:20px;
	}

	.why-card{
		min-height:260px;
		padding:30px;
	}

	.why-card h3{
		margin-top:90px;
	}
}

@media(max-width:520px){
	.build-header h2{
		font-size:clamp(2.8rem, 13vw, 4.5rem);
	}

	.project-header h2{
		font-size:clamp(2.9rem, 13vw, 4.2rem);
	}

	.build-card h3{
		font-size:1.8rem;
	}
}
