/* ──────────────────────────────────────────
   Kunst Insignia — Premium Animated Theme
   ────────────────────────────────────────── */

/* ── Reset & Base ── */
*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--ki-black: #0a0a0a;
	--ki-dark: #111111;
	--ki-gray-900: #1a1a1a;
	--ki-gray-700: #333333;
	--ki-gray-500: #666666;
	--ki-gray-300: #999999;
	--ki-gray-100: #e0e0e0;
	--ki-white: #f5f5f5;
	--ki-accent: #b0b0b0;
	--ki-font-heading: 'Jost', sans-serif;
	--ki-font-body: 'Jost', sans-serif;
	--ki-container: 100%;
	--ki-header-h: 72px;
	--ki-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
	--ki-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Lenis */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background: #000000;
}

body {
	font-family: var(--ki-font-body);
	font-size: 18px;
	line-height: 1.6;
	color: var(--ki-white);
	background-color: var(--ki-black);
	overflow-x: hidden;
}

body.ki-no-scroll {
	overflow: hidden;
}

a {
	color: inherit;
	text-decoration: none;
}

ul {
	list-style: none;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ── Film Grain Overlay ── */
body::after {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
	opacity: 0.025;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
	background-repeat: repeat;
	background-size: 128px 128px;
}

/* ── Container ── */
.ki-container {
	width: 100%;
	padding: 0 clamp(24px, 5vw, 80px);
}


/* ── Button ── */
.ki-btn {
	display: inline-block;
	padding: 14px 36px;
	border: 1px solid var(--ki-white);
	border-radius: 100px;
	font-family: var(--ki-font-heading);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ki-white);
	background: transparent;
	transform: scale(1);
	transition: background 1.2s cubic-bezier(0.16, 1, 0.3, 1), color 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ki-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	transform: scale(1.06);
}

.ki-btn--large {
	padding: 18px 48px;
	font-size: 16px;
}

/* ── Header ── */
/* ── Page Fade-in ── */
.ki-header,
.ki-main,
.ki-footer {
	opacity: 0;
	transition: opacity 2.5s ease;
}

body.is-loaded .ki-header,
body.is-loaded .ki-main,
body.is-loaded .ki-footer {
	opacity: 1;
}

/* ── Header ── */
.ki-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: var(--ki-header-h);
	transition: opacity 2.5s ease, transform 0.4s var(--ki-ease), background 0.4s var(--ki-ease);
}

.ki-header--solid {
	background: rgba(10, 10, 10, 0.88);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.ki-header--hidden {
	transform: translateY(-100%);
}

.ki-header__inner {
	width: 100%;
	padding: 0 clamp(24px, 5vw, 80px);
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.ki-header__logo {
	display: flex;
	align-items: center;
	will-change: transform;
}

.ki-header__logo img,
.ki-header__logo-img {
	height: 48px;
	width: auto;
}

.ki-header__site-name {
	font-family: var(--ki-font-heading);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.ki-header__menu {
	display: flex;
	gap: 36px;
}

.ki-header__menu li a {
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	opacity: 0.5;
	transition: opacity 0.4s var(--ki-ease);
	position: relative;
}

.ki-header__menu li a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--ki-white);
	transition: width 0.4s var(--ki-ease-out);
}

.ki-header__menu li a:hover,
.ki-header__menu li a.is-active {
	opacity: 1;
}

.ki-header__menu li a.is-active::after {
	width: 100%;
}

/* Burger */
.ki-header__burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 32px;
	height: 32px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 101;
}

.ki-header__burger span {
	display: block;
	height: 1.5px;
	background: var(--ki-white);
	border-radius: 1px;
	transition: transform 0.4s var(--ki-ease-out), opacity 0.3s ease;
}

.ki-header__burger.is-active span:first-child {
	transform: translateY(3.75px) rotate(45deg);
}

.ki-header__burger.is-active span:last-child {
	transform: translateY(-3.75px) rotate(-45deg);
}

/* ── Hero (Sticky) ── */
.ki-hero {
	position: sticky;
	top: 0;
	z-index: 0;
	height: 100vh;
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
}

.ki-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	will-change: transform;
}

.ki-hero__wallpaper {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(0px);
	transform: scale(1.02);
	opacity: 0;
	transition: opacity 3s ease;
}

body.is-loaded .ki-hero__wallpaper {
	opacity: 1;
}

.ki-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.8);
}

.ki-hero__content {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	max-width: 860px;
	padding: 0 clamp(24px, 5vw, 40px);
	pointer-events: none;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ki-hero__content .ki-btn {
	pointer-events: auto;
}

.ki-hero__logo {
	max-width: min(90vw, 1200px);
	height: auto;
	margin-bottom: 70px;
}

.ki-hero__subtitle {
	font-size: clamp(16px, 2.5vw, 28px);
	font-weight: 300;
	letter-spacing: 0.1em;
	color: #868484;
	margin-bottom: 28px;
}

.ki-hero__subsubtitle {
	position: relative;
	padding-top: 28px;
	font-size: clamp(16px, 2.5vw, 28px);
	font-weight: 300;
	letter-spacing: 0.1em;
	opacity: 0.5;
	margin-bottom: 40px;
}

.ki-hero__subsubtitle::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80%;
	height: 2px;
	background: rgba(134, 132, 132, 0.8);
}


.ki-hero__scroll {
	position: fixed;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	z-index: 1;
}

.ki-hero__scroll span {
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	opacity: 0.5;
}

.ki-hero__scroll-line {
	width: 1px;
	height: 40px;
	background: var(--ki-white);
	opacity: 0.3;
	animation: ki-scroll-pulse 2s ease-in-out infinite;
}

@keyframes ki-scroll-pulse {
	0%, 100% { opacity: 0.1; transform: scaleY(0.5); }
	50% { opacity: 0.5; transform: scaleY(1); }
}

/* ── Content (scrolls over hero) ── */
.ki-content {
	position: relative;
	z-index: 1;
	background: var(--ki-black);
}

.ki-content__first {
	border-radius: 40px 40px 0 0;
	overflow: hidden;
}

/* ── Sections ── */
.ki-section {
	padding: clamp(80px, 10vw, 140px) 0;
}

.ki-section__title {
	font-family: var(--ki-font-heading);
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

/* ── Split Text Reveal ── */
[data-ki-split] .ki-word {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
}

[data-ki-split] .ki-word-inner {
	display: inline-block;
	transform: translateY(105%);
	transition: transform 0.7s var(--ki-ease-out);
	will-change: transform;
}

[data-ki-split].is-revealed .ki-word-inner {
	transform: translateY(0);
}

/* ── About ── */
.ki-about__content--center {
	text-align: center;
	max-width: 800px;
	margin: 0 auto 80px;
}


.ki-about__label {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	opacity: 0.4;
	padding-top: 12px;
}

.ki-about__content .ki-section__title {
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-weight: 400;
	margin-bottom: 24px;
}

.ki-about__text {
	font-size: clamp(18px, 2vw, 22px);
	line-height: 1.7;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.8s ease, transform 0.8s var(--ki-ease-out);
}

.ki-about__text.is-visible {
	opacity: 0.7;
	transform: translateY(0);
}

.ki-about__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	border-top: 1px solid var(--ki-gray-700);
	padding-top: 40px;
	text-align: center;
	justify-items: center;
}

.ki-about__stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s var(--ki-ease-out);
}

.ki-about__stat.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.ki-about__stat-number {
	font-family: var(--ki-font-heading);
	font-size: clamp(42px, 6vw, 72px);
	font-weight: 700;
	letter-spacing: -0.03em;
}

.ki-about__stat-label {
	font-size: clamp(15px, 1.5vw, 18px);
	text-transform: uppercase;
	opacity: 0.5;
}

/* ── Marquee ── */
.ki-marquee {
	padding: 28px 0;
	border-top: 1px solid var(--ki-gray-700);
	border-bottom: 1px solid var(--ki-gray-700);
	overflow: hidden;
	white-space: nowrap;
}

.ki-marquee__track {
	display: inline-flex;
	animation: ki-marquee 30s linear infinite;
}

.ki-marquee__track span {
	font-family: var(--ki-font-heading);
	font-size: clamp(14px, 2vw, 18px);
	font-weight: 400;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	opacity: 0.35;
	flex-shrink: 0;
}

@keyframes ki-marquee {
	0% { transform: translateX(0); }
	100% { transform: translateX(-25%); }
}

/* ── Clients Carousel ── */
.ki-clients {
	padding-top: clamp(60px, 8vw, 100px);
	padding-bottom: clamp(60px, 8vw, 100px);
	background: #000000;
}

.ki-clients__header {
	margin-bottom: 40px;
}

.ki-clients__carousel {
	overflow: hidden;
}

.ki-clients__track {
	display: flex;
	align-items: center;
	gap: 60px;
	width: max-content;
	animation: ki-clients-scroll 40s linear infinite;
	will-change: transform;
}

.ki-clients__logo {
	flex-shrink: 0;
	height: 48px;
	width: auto;
	opacity: 0.35;
}

@keyframes ki-clients-scroll {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-50%, 0, 0); }
}

/* ── Services ── */
.ki-services {
	background: var(--ki-dark);
}

.ki-services__header {
	margin-bottom: 60px;
}

.ki-services__header .ki-about__label {
	margin-bottom: 16px;
}

.ki-services__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	background: var(--ki-gray-700);
}

.ki-services__item {
	background: var(--ki-dark);
	padding: 48px 40px;
	position: relative;
	overflow: hidden;
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s var(--ki-ease-out);
}

.ki-services__item.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.ki-services__item::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--ki-accent);
	transition: width 0.5s var(--ki-ease-out);
}

.ki-services__item:hover::after {
	width: 100%;
}

.ki-services__icon {
	width: 36px;
	height: 36px;
	color: var(--ki-accent);
	margin-bottom: 20px;
}

.ki-services__title {
	font-family: var(--ki-font-heading);
	font-size: 28px;
	font-weight: 500;
	text-transform: uppercase;
	margin-bottom: 16px;
	transition: color 0.4s var(--ki-ease);
}

.ki-services__item:hover .ki-services__title {
	color: var(--ki-accent);
}

.ki-services__item p {
	font-size: 17px;
	line-height: 1.7;
	opacity: 0.6;
}

/* ── Work ── */
.ki-work {
	padding-bottom: 0;
}

.ki-work__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	margin-left: calc(-1 * clamp(24px, 5vw, 80px));
	margin-right: calc(-1 * clamp(24px, 5vw, 80px));
}

.ki-work__item {
	position: relative;
	display: block;
	border-radius: 0;
	overflow: hidden;
	aspect-ratio: 16 / 4;
	background: var(--ki-dark);
	clip-path: inset(8% round 0);
	opacity: 0;
	transition: clip-path 0.8s var(--ki-ease-out), opacity 0.8s ease;
	will-change: clip-path;
}

.ki-work__item.is-visible {
	clip-path: inset(0% round 0);
	opacity: 1;
}

.ki-work__preview {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.ki-work__preview iframe {
	position: absolute;
	top: 50%;
	left: 0;
	width: 300%;
	height: 56.25vw;
	min-height: 100%;
	margin-left: -100%;
	transform: translateY(-50%);
	border: 0;
	pointer-events: none;
	transition: transform 0.6s var(--ki-ease-out);
}

.ki-work__item:hover .ki-work__preview iframe {
	transform: translateY(-50%) scale(1.08);
}

.ki-work__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	background: rgba(0, 0, 0, 0.25);
	transition: background 0.4s ease;
	cursor: pointer;
}

.ki-work__item:hover .ki-work__overlay {
	background: rgba(0, 0, 0, 0.15);
}

.ki-work__info {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 16px 28px;
	background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.ki-work__info h3 {
	font-family: var(--ki-font-heading);
	font-size: clamp(18px, 2.5vw, 28px);
	font-weight: 600;
	margin-bottom: 6px;
}

.ki-work__info span {
	font-size: clamp(12px, 1.2vw, 16px);
	opacity: 0.6;
}

.ki-work__item.is-playing .ki-work__overlay {
	display: none;
}

.ki-work__item.is-playing .ki-work__preview {
	display: none;
}

.ki-work__item iframe.ki-work__full {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	z-index: 5;
}

/* ── CTA ── */
.ki-cta {
	text-align: center;
	padding: clamp(100px, 14vw, 200px) 0;
	background: var(--ki-dark);
	position: relative;
	z-index: 1;
	overflow: hidden;
}

.ki-cta__title {
	font-family: var(--ki-font-heading);
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-bottom: 32px;
}

.ki-cta__icon {
	height: clamp(48px, 6vw, 80px);
	width: auto;
	margin: 0 auto 40px;
	opacity: 0.8;
}


/* ── Footer ── */
.ki-footer {
	background: #000000;
	min-height: 100vh;
	padding: 40px 0;
}

.ki-footer > .ki-container {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - 80px);
}

.ki-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	justify-content: center;
	flex: 1;
	margin-bottom: 40px;
}

.ki-footer__cta {
	margin-bottom: clamp(60px, 8vw, 100px);
}

.ki-footer__title {
	font-family: var(--ki-font-heading);
	font-size: clamp(28px, 4.5vw, 56px);
	font-weight: 400;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1.25;
	color: #868484;
	margin-bottom: 40px;
	max-width: 1000px;
}

.ki-footer__cta .ki-btn {
	margin-top: 8px;
}

.ki-footer__links {
	display: flex;
	gap: 80px;
}

.ki-footer__heading {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	opacity: 0.3;
	margin-bottom: 20px;
}

.ki-footer__col ul li {
	margin-bottom: 10px;
}

.ki-footer__col ul li a {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.5;
	transition: opacity 0.4s var(--ki-ease);
}

.ki-footer__col ul li a:hover {
	opacity: 1;
}

.ki-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding-top: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.ki-footer__logo {
	height: 22px;
	width: auto;
	opacity: 0.25;
}

.ki-footer__bottom p {
	font-size: 12px;
	opacity: 0.25;
	letter-spacing: 0.05em;
}

/* ── Responsive ── */
@media (max-width: 900px) {
	.ki-header__logo img,
	.ki-header__logo-img {
		height: 36px;
	}

	.ki-header__menu {
		display: none;
	}

	.ki-header__burger {
		display: flex;
	}

	/* Full-screen mobile nav */
	.ki-header__nav.is-open {
		display: block;
		position: fixed;
		inset: 0;
		background: var(--ki-black);
		z-index: 99;
		padding: calc(var(--ki-header-h) + 40px) 40px 40px;
	}

	.ki-header__nav.is-open .ki-header__menu {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.ki-header__nav.is-open .ki-header__menu li {
		overflow: hidden;
	}

	.ki-header__nav.is-open .ki-header__menu li a {
		display: block;
		font-size: 32px;
		font-weight: 600;
		opacity: 0;
		transform: translateY(100%);
		transition: transform 0.5s var(--ki-ease-out), opacity 0.5s ease;
		padding: 12px 0;
	}

	.ki-header__nav.is-open .ki-header__menu li a::after {
		display: none;
	}

	/* Stagger: each item delays by 60ms */
	.ki-header__nav.is-open.is-animating .ki-header__menu li:nth-child(1) a { transition-delay: 0.05s; }
	.ki-header__nav.is-open.is-animating .ki-header__menu li:nth-child(2) a { transition-delay: 0.11s; }
	.ki-header__nav.is-open.is-animating .ki-header__menu li:nth-child(3) a { transition-delay: 0.17s; }
	.ki-header__nav.is-open.is-animating .ki-header__menu li:nth-child(4) a { transition-delay: 0.23s; }
	.ki-header__nav.is-open.is-animating .ki-header__menu li:nth-child(5) a { transition-delay: 0.29s; }

	.ki-header__nav.is-open.is-animating .ki-header__menu li a {
		opacity: 1;
		transform: translateY(0);
	}

	.ki-content__first {
		border-radius: 24px 24px 0 0;
	}

	.ki-about__label {
		padding-top: 0;
	}

	.ki-about__stats {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.ki-services__grid {
		grid-template-columns: 1fr;
	}

	.ki-work__item {
		aspect-ratio: 16 / 6;
	}


	.ki-clients__track {
		gap: 40px;
	}

	.ki-clients__logo {
		height: 32px;
	}

	.ki-footer__links {
		gap: 48px;
	}

	.ki-footer__bottom {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 12px;
		text-align: center;
	}

	body, body a, body button {
		cursor: auto !important;
	}
}
