/* ==========================================================================
   NINEVISIONS — dark editorial 3D experience
   Restrained palette · hairlines · serif accents · generous whitespace
   ========================================================================== */

:root {
	--bg: #070c18;
	--bg-2: #0c1426;
	--ink: #f2f0ea;
	--muted: rgba(242, 240, 234, 0.624);
	--faint: rgba(242, 240, 234, 0.32);
	--accent: #8b93ff;
	--accent-dim: rgba(139, 147, 255, 0.55);
	--accent-2: #CBE68C;
	--accent-2-dim: rgba(203, 230, 140, 0.55);
	--line: rgba(242, 240, 234, 0.12);
	--ok: #9fe0b8;
	--danger: #f291a4;
	--font-sans: "Space Grotesk", sans-serif;
	--font-serif: "Instrument Serif", Georgia, serif;
	--font-mono: "IBM Plex Mono", monospace;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--header-h: 90px;
}

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

html {
	scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
	height: auto;
}

.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}

body {
	background: #05070d;
	background: linear-gradient(160deg, #101d38 0%, #0a1226 38%, #05070d 78%);
	background-attachment: fixed;
	color: var(--ink);
	font-family: var(--font-sans);
	font-weight: 300;
	line-height: 1.65;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: var(--accent);
	color: #060a14;
}

::-webkit-scrollbar {
	width: 9px;
}

::-webkit-scrollbar-track {
	background: var(--bg);
}

::-webkit-scrollbar-thumb {
	background: rgba(242, 240, 234, 0.16);
	border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--accent-dim);
}

img,
svg {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

ul {
	list-style: none;
}

.container {
	width: min(1320px, 92vw);
	margin-inline: auto;
	position: relative;
	z-index: 2;
}

/* ---------- fixed layers ---------- */
#webgl {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}

.bg-vignette {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: radial-gradient(130% 100% at 50% 0%, transparent 45%, rgba(6, 6, 9, 0.5) 100%);
}

.noise {
	position: fixed;
	inset: -50%;
	z-index: 3;
	pointer-events: none;
	opacity: 0.04;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
	animation: grain 9s steps(10) infinite;
}

@keyframes grain {

	0%,
	100% {
		transform: translate(0, 0);
	}

	10% {
		transform: translate(-5%, -8%);
	}

	20% {
		transform: translate(-13%, 3%);
	}

	30% {
		transform: translate(6%, -10%);
	}

	40% {
		transform: translate(-4%, 12%);
	}

	50% {
		transform: translate(-12%, 7%);
	}

	60% {
		transform: translate(11%, 0%);
	}

	70% {
		transform: translate(0%, 10%);
	}

	80% {
		transform: translate(3%, 13%);
	}

	90% {
		transform: translate(-9%, 8%);
	}
}

.scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	z-index: 120;
	background: rgba(242, 240, 234, 0.07);
}

.scroll-progress span {
	display: block;
	height: 100%;
	width: 0%;
	background: var(--ink);
}

/* ---------- custom cursor ---------- */
.cursor-dot,
.cursor-ring {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 200;
	pointer-events: none;
	border-radius: 50%;
}

.cursor-dot {
	width: 5px;
	height: 5px;
	background: var(--ink);
	transition: background 0.35s;
}

.cursor-dot.is-hover {
	background: var(--accent-2);
}

.cursor-ring {
	width: 34px;
	height: 34px;
	border: 1px solid rgba(242, 240, 234, 0.35);
	transition: width 0.35s var(--ease), height 0.35s var(--ease), border-color 0.35s, background 0.35s;
}

.cursor-ring.is-hover {
	width: 58px;
	height: 58px;
	border-color: var(--accent-2);
	background: rgba(203, 230, 140, 0.08);
}

@media (hover: none),
(pointer: coarse) {

	.cursor-dot,
	.cursor-ring {
		display: none;
	}
}

/* ---------- preloader ---------- */
.preloader {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: grid;
	place-items: center;
	background: linear-gradient(160deg, #101d38 0%, #0a1226 38%, #05070d 78%);
	transition: opacity 0.9s var(--ease), visibility 0.9s;
}

.preloader.is-done {
	opacity: 0;
	visibility: hidden;
}

.preloader__inner {
	text-align: center;
}

.preloader__mark {
	width: 92px;
	height: auto;
	display: block;
	object-fit: contain;
	margin: 0 auto 30px;
	animation: markFloat 2.6s ease-in-out infinite;
}

@keyframes markFloat {
	50% {
		transform: translateY(-10px);
	}
}

.preloader__count {
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(3.4rem, 9vw, 5.6rem);
	line-height: 1;
	color: var(--ink);
}

.preloader__label {
	margin-top: 12px;
	font-family: var(--font-mono);
	font-size: 0.62rem;
	letter-spacing: 0.4em;
	text-transform: uppercase;
	color: var(--faint);
}

.preloader__bar {
	width: 180px;
	height: 1px;
	margin: 26px auto 0;
	background: var(--line);
	overflow: hidden;
}

.preloader__bar span {
	display: block;
	height: 100%;
	width: 0%;
	background: var(--ink);
}

/* ---------- header ---------- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 110;
	transform: translateY(-110%);
	transition: transform 0.55s var(--ease), background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
	border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
	background: rgba(8, 13, 26, 0.66);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom-color: var(--line);
	transform: translateY(0);
}

.site-header.is-hidden {
	transform: translateY(-110%);
}

.header-inner {
	width: min(1320px, 92vw);
	margin-inline: auto;
	height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 13px;
}

.brand__logo {
	height: 30px;
	width: auto;
	object-fit: contain;
}

.brand__mark {
	width: 46px;
}

.brand__word {
	font-family: var(--font-sans);
	font-weight: 500;
	font-size: 0.92rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.brand__word em {
	font-style: italic;
	font-family: var(--font-serif);
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0.06em;
	color: var(--accent);
	margin-left: 2px;
}

.custom-logo-link img {
	max-height: 42px;
	width: auto;
}

.main-nav {
	display: flex;
	gap: 2px;
}

.nav-link {
	position: relative;
	padding: 10px 15px;
	font-family: var(--font-mono);
	font-size: 0.66rem;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
	transition: color 0.3s;
}

.nav-link:hover,
.nav-link.is-active {
	color: var(--ink);
}

.nav-link.is-active::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--accent-2);
	transform: translateX(-50%);
}

.nav-toggle {
	display: none;
}

/* ---------- mobile menu ---------- */
.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 105;
	background: rgba(8, 13, 26, 0.95);
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 44px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.mobile-menu.is-open {
	opacity: 1;
	visibility: visible;
}

.mobile-menu__nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.mobile-link {
	position: relative;
	padding: 8px 20px;
	font-family: var(--font-sans);
	font-weight: 400;
	font-size: clamp(2rem, 8vw, 2.8rem);
	letter-spacing: -0.02em;
	color: var(--ink);
	transition: color 0.3s, transform 0.5s var(--ease), opacity 0.5s;
	transform: translateY(26px);
	opacity: 0;
}

.mobile-menu.is-open .mobile-link {
	transform: translateY(0);
	opacity: 1;
}

.mobile-link::before {
	content: attr(data-index);
	position: absolute;
	left: -10px;
	top: 16px;
	font-family: var(--font-mono);
	font-size: 0.58rem;
	color: var(--accent);
}

.mobile-link:hover {
	color: var(--accent);
	font-style: italic;
	font-family: var(--font-serif);
}

.mobile-menu__foot {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--muted);
}

.mobile-menu__foot a:hover {
	color: var(--ink);
}

/* ---------- side dots ---------- */
.side-dots {
	position: fixed;
	right: 28px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 100;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.side-dot {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-direction: row-reverse;
}

.side-dot i {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(242, 240, 234, 0.28);
	transition: background 0.3s, transform 0.3s;
}

.side-dot span {
	font-family: var(--font-mono);
	font-size: 0.56rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ink);
	opacity: 0;
	transform: translateX(8px);
	transition: opacity 0.3s, transform 0.3s var(--ease);
}

.side-dot:hover span,
.side-dot.is-active span {
	opacity: 1;
	transform: translateX(0);
}

.side-dot.is-active i {
	background: var(--accent-2);
	transform: scale(1.5);
}

/* ---------- buttons ---------- */
.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 11px;
	padding: 17px 32px;
	border-radius: 100px;
	font-weight: 400;
	font-size: 0.84rem;
	letter-spacing: 0.06em;
	overflow: hidden;
	white-space: nowrap;
	border: 1px solid transparent;
	transition: color 0.4s var(--ease), background 0.4s, border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.btn svg {
	position: relative;
	z-index: 1;
	width: 15px;
	height: 15px;
	transition: transform 0.45s var(--ease);
}

.btn:hover svg {
	transform: translateX(5px);
}

/* primary: ink pill with a circle that blooms outward from the left */
.btn--primary {
	color: #060a14;
	background: var(--ink);
}

.btn--primary::before {
	content: "";
	position: absolute;
	z-index: 0;
	left: 26px;
	top: 50%;
	width: 300%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--accent-2);
	transform: translate(-50%, -50%) scale(0);
	transition: transform 0.65s var(--ease);
}

.btn--primary:hover::before {
	transform: translate(-50%, -50%) scale(1);
}

.btn--primary:hover {
	border-color: var(--accent-2);
}

/* ghost: hairline with an underline that sweeps beneath the label */
.btn--ghost {
	color: var(--ink);
	border-color: rgba(242, 240, 234, 0.22);
	background: transparent;
}

.btn--ghost .btn__label {
	position: relative;
	padding-bottom: 3px;
}

.btn--ghost .btn__label::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--ink);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.5s var(--ease);
}

.btn--ghost:hover {
	border-color: rgba(242, 240, 234, 0.45);
}

.btn--ghost:hover .btn__label::after {
	transform: scaleX(1);
	transform-origin: left;
}

.btn__glow {
	display: none;
}

.btn--small {
	padding: 12px 22px;
	font-size: 0.74rem;
}

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

.btn__label {
	position: relative;
	z-index: 1;
}

.pulse-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ok);
	box-shadow: 0 0 0 0 rgba(159, 224, 184, 0.5);
	animation: pulse 2.2s infinite;
}

@keyframes pulse {
	70% {
		box-shadow: 0 0 0 10px rgba(159, 224, 184, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(159, 224, 184, 0);
	}
}

/* ---------- sections base ---------- */
.section {
	position: relative;
	padding: clamp(120px, 16vh, 190px) 0;
}

.section-head {
	max-width: 860px;
	margin-bottom: clamp(56px, 8vw, 96px);
}

.section-head--center {
	margin-inline: auto;
	text-align: center;
}

.section-label {
	display: inline-flex;
	align-items: baseline;
	gap: 14px;
	font-family: var(--font-mono);
	font-size: 0.64rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 26px;
}

.section-label::before {
	content: "";
	width: 34px;
	height: 1px;
	background: var(--accent-2);
	align-self: center;
}

.section-title {
	font-weight: 400;
	font-size: clamp(2.6rem, 6.4vw, 5.2rem);
	line-height: 1.04;
	letter-spacing: -0.03em;
}

.section-title em {
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.01em;
	color: var(--accent-2);
}

.section-sub {
	margin-top: 22px;
	color: var(--muted);
	font-size: 1.02rem;
	max-width: 520px;
}

.section-head--center .section-sub {
	margin-inline: auto;
}

/* ---------- hero ---------- */
.hero {
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding-top: 0;
	padding-bottom: 0;
}

.hero__top {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding-top: 34px;
	padding-bottom: 20px;
	font-family: var(--font-mono);
	font-size: 0.62rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--faint);
	border-bottom: 1px solid var(--line);
}

.hero__container {
	padding-top: clamp(30px, 7vh, 80px);
}

.hero__header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(30px, 4vw, 60px);
}

.hero__logo-side {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-shrink: 0;
}

.hero__logo-img {
	width: clamp(240px, 26vw, 360px);
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 0 35px rgba(203, 230, 140, 0.25));
	animation: heroLogoFloat 4.2s ease-in-out infinite;
	will-change: transform, opacity;
}

@keyframes heroLogoFloat {

	0%,
	100% {
		transform: translateY(-18px);
		opacity: 1;
	}

	50% {
		transform: translateY(16px);
		opacity: 0.6;
	}
}

.hero__title {
	font-weight: 400;
	font-size: clamp(3.2rem, 11vw, 9.4rem);
	line-height: 0.99;
	letter-spacing: -0.035em;
}

.hero__line {
	display: block;
	overflow: hidden;
	padding-bottom: 0.08em;
	margin-bottom: -0.08em;
}

.hero__word {
	display: inline-block;
}

.hero__word .char {
	display: inline-block;
	transform: translateY(115%);
	will-change: transform;
}

.hero__word--serif {
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.015em;
	color: var(--accent-2);
	text-transform: none;
}

.hero__row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	margin-top: clamp(34px, 5vh, 56px);
	flex-wrap: wrap;
}

.hero__sub {
	max-width: 400px;
	color: var(--muted);
	font-size: 1rem;
}

.hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.hero__bottom {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	padding-top: 26px;
	padding-bottom: 30px;
	margin-top: clamp(40px, 6vh, 70px);
	border-top: 1px solid var(--line);
}

.hero__meta {
	display: flex;
	gap: clamp(30px, 5vw, 72px);
}

.hero__meta-item {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.hero__meta-item strong {
	font-weight: 500;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	letter-spacing: -0.02em;
}

.hero__meta-item span {
	font-family: var(--font-mono);
	font-size: 0.56rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--faint);
}

.hero__scroll {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.hero__scroll-label {
	font-family: var(--font-mono);
	font-size: 0.56rem;
	letter-spacing: 0.36em;
	text-transform: uppercase;
	color: var(--faint);
}

.hero__scroll-track {
	position: relative;
	width: 1px;
	height: 46px;
	background: var(--line);
	overflow: hidden;
}

.hero__scroll-thumb {
	position: absolute;
	top: -40%;
	left: 0;
	width: 100%;
	height: 40%;
	background: var(--ink);
	animation: scrollLine 2s var(--ease) infinite;
}

@keyframes scrollLine {
	to {
		top: 110%;
	}
}

/* ---------- marquee ---------- */
.marquee {
	position: relative;
	z-index: 2;
	overflow: hidden;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	padding: 26px 0;
}

.marquee__track {
	display: flex;
	width: max-content;
	animation: marquee 32s linear infinite;
}

.marquee:hover .marquee__track {
	animation-play-state: paused;
}

.marquee__group {
	display: flex;
	align-items: baseline;
	gap: 46px;
	padding-right: 46px;
}

.marquee__group span {
	font-weight: 400;
	font-size: 1.5rem;
	letter-spacing: -0.02em;
	white-space: nowrap;
	color: var(--ink);
}

.marquee__group span.is-serif {
	font-family: var(--font-serif);
	font-style: italic;
	color: var(--muted);
}

.marquee__group i {
	font-style: normal;
	color: var(--accent);
	font-size: 1rem;
}

@keyframes marquee {
	to {
		transform: translateX(-50%);
	}
}

/* ---------- services (editorial index rows) ---------- */
.services__list {
	border-top: 1px solid var(--line);
}

.service-row {
	position: relative;
	display: grid;
	grid-template-columns: 70px 1fr 1.1fr 60px;
	align-items: center;
	gap: clamp(20px, 4vw, 56px);
	padding: clamp(30px, 4.5vw, 48px) 0;
	border-bottom: 1px solid var(--line);
	transition: padding 0.5s var(--ease), background 0.5s;
}

.service-row::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	height: 1px;
	width: 0%;
	background: var(--accent-2);
	transition: width 0.7s var(--ease);
}

.service-row:hover::after {
	width: 100%;
}

.service-row:hover {
	background: linear-gradient(90deg, rgba(139, 147, 255, 0.045), transparent 60%);
}

.service-row__num {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	color: var(--faint);
	transition: color 0.4s;
}

.service-row:hover .service-row__num {
	color: var(--accent);
}

.service-row__title {
	font-weight: 400;
	font-size: clamp(1.5rem, 3.4vw, 2.6rem);
	letter-spacing: -0.025em;
	line-height: 1.1;
	transition: transform 0.5s var(--ease);
}

.service-row:hover .service-row__title {
	transform: translateX(14px);
}

.service-row__desc {
	color: var(--muted);
	font-size: 0.92rem;
	max-width: 460px;
	margin-bottom: 14px;
}

.service-row__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.service-row__tags li {
	font-family: var(--font-mono);
	font-size: 0.6rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--faint);
}

.service-row__tags li::before {
	content: "·";
	color: var(--accent);
	margin-right: 8px;
}

.service-row__arrow {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	justify-self: end;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	color: var(--muted);
	transition: all 0.45s var(--ease);
}

.service-row__arrow svg {
	width: 16px;
	height: 16px;
}

.service-row:hover .service-row__arrow {
	background: var(--ink);
	color: #060a14;
	border-color: var(--ink);
	transform: rotate(45deg);
}

/* ---------- portfolio ---------- */
.portfolio__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 56px;
}

.filter-btn {
	padding: 10px 20px;
	border-radius: 100px;
	border: 1px solid var(--line);
	font-family: var(--font-mono);
	font-size: 0.64rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
	transition: all 0.35s var(--ease);
}

.filter-btn:hover {
	color: var(--ink);
	border-color: rgba(242, 240, 234, 0.4);
}

.filter-btn.is-active {
	color: #060a14;
	background: var(--ink);
	border-color: var(--ink);
}

.portfolio__grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 34px 26px;
	perspective: 1600px;
}

.project-card {
	grid-column: span 6;
	position: relative;
	transform-style: preserve-3d;
	transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
	cursor: pointer;
}

.project-card:nth-child(6n + 2),
.project-card:nth-child(6n + 5) {
	margin-top: 56px;
}

.project-card.is-hidden {
	opacity: 0;
	transform: scale(0.92);
	pointer-events: none;
	position: absolute;
	visibility: hidden;
}

.project-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 4px;
	border: 1px solid var(--line);
}

.project-card__art {
	width: 100%;
	height: 100%;
	transition: transform 0.9s var(--ease), filter 0.6s;
	filter: saturate(0.75) brightness(0.92);
}

.project-card:hover .project-card__art {
	transform: scale(1.05);
	filter: saturate(1) brightness(1.02);
}

.project-card__shine {
	position: absolute;
	top: 0;
	left: -90%;
	width: 55%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(242, 240, 234, 0.08), transparent);
	transform: skewX(-20deg);
	transition: left 0.9s var(--ease);
}

.project-card:hover .project-card__shine {
	left: 140%;
}

.project-card__body {
	display: grid;
	grid-template-columns: 1fr auto;
	column-gap: 20px;
	padding: 18px 4px 0;
}

.project-card__label {
	grid-column: 1;
	margin-bottom: 5px;
	font-family: var(--font-mono);
	font-size: 0.58rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--faint);
}

.project-card__row {
	display: contents;
}

.project-card__title {
	grid-column: 1;
	font-weight: 400;
	font-size: 1.42rem;
	letter-spacing: -0.02em;
}

.project-card__arrow {
	grid-column: 2;
	grid-row: 1 / 3;
	align-self: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	color: var(--muted);
	transition: all 0.45s var(--ease);
}

.project-card__arrow svg {
	width: 15px;
	height: 15px;
}

.project-card:hover .project-card__arrow {
	background: var(--ink);
	color: #060a14;
	border-color: var(--ink);
	transform: rotate(45deg);
}

/* ---------- about ---------- */
.about__grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(48px, 7vw, 110px);
	align-items: start;
}

.about__lead {
	font-size: clamp(1.15rem, 1.8vw, 1.4rem);
	font-weight: 400;
	line-height: 1.5;
	margin-bottom: 22px;
}

.about__lead em {
	font-family: var(--font-serif);
	font-style: italic;
	color: var(--accent-2);
}

.about__text {
	color: var(--muted);
	margin-bottom: 46px;
	max-width: 540px;
}

.about__values {
	display: flex;
	flex-direction: column;
}

.value-item {
	display: flex;
	gap: 22px;
	padding: 22px 0;
	border-top: 1px solid var(--line);
	transition: padding-left 0.45s var(--ease);
}

.value-item:last-child {
	border-bottom: 1px solid var(--line);
}

.value-item:hover {
	padding-left: 14px;
}

.value-item__tick {
	flex-shrink: 0;
	margin-top: 5px;
	font-family: var(--font-mono);
	font-size: 0.6rem;
	letter-spacing: 0.2em;
	color: var(--accent);
}

.value-item__tick svg {
	width: 14px;
	height: 14px;
}

.value-item h3 {
	font-weight: 500;
	font-size: 1.04rem;
	letter-spacing: -0.01em;
	margin-bottom: 5px;
}

.value-item p {
	color: var(--muted);
	font-size: 0.88rem;
}

.about__visual {
	position: relative;
	height: 420px;
	margin-bottom: 40px;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: radial-gradient(55% 55% at 50% 50%, rgba(139, 147, 255, 0.08), transparent 75%);
	overflow: hidden;
}

.about__mark {
	width: 110px;
	opacity: 0.95;
	animation: markFloat 4s ease-in-out infinite;
}

.orbit {
	position: absolute;
	top: 50%;
	left: 50%;
	border: 1px solid rgba(242, 240, 234, 0.09);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	animation: spin linear infinite;
}

.orbit i {
	position: absolute;
	top: -2px;
	left: 50%;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--ink);
}

.orbit--1 {
	width: 200px;
	height: 200px;
	animation-duration: 18s;
}

.orbit--2 {
	width: 290px;
	height: 290px;
	animation-duration: 28s;
	animation-direction: reverse;
}

.orbit--2 i {
	background: var(--accent);
}

.orbit--3 {
	width: 370px;
	height: 370px;
	animation-duration: 40s;
	border-style: dashed;
	border-color: rgba(242, 240, 234, 0.06);
}

.orbit--3 i {
	width: 3px;
	height: 3px;
	background: var(--faint);
}

@keyframes spin {
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

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

.stat-card {
	padding: 26px 0;
	border-top: 1px solid var(--line);
}

.stat-card:nth-child(odd) {
	border-right: 1px solid var(--line);
	padding-right: 26px;
}

.stat-card:nth-child(even) {
	padding-left: 26px;
}

.stat-card strong {
	display: block;
	font-weight: 400;
	font-size: clamp(2rem, 3.4vw, 2.8rem);
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin-bottom: 4px;
}

.stat-card strong::first-letter {
	font-family: var(--font-serif);
	font-style: italic;
}

.stat-card span {
	font-family: var(--font-mono);
	font-size: 0.58rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--faint);
}

/* ---------- contact ---------- */
.contact__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(44px, 6vw, 90px);
	max-width: 1160px;
	margin-inline: auto;
}

.contact__info {
	display: flex;
	flex-direction: column;
}

.contact__bigmail {
	display: block;
	margin-bottom: 44px;
}

.contact__bigmail span {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.6rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--faint);
	margin-bottom: 10px;
}

.contact__bigmail strong {
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(1.7rem, 3.4vw, 2.6rem);
	line-height: 1.12;
	letter-spacing: 0;
	background-image: linear-gradient(var(--accent-2), var(--accent-2));
	background-repeat: no-repeat;
	background-size: 0% 1px;
	background-position: 0 96%;
	transition: background-size 0.7s var(--ease), color 0.4s;
}

.contact__bigmail:hover strong {
	background-size: 100% 1px;
	color: var(--accent-2);
}

.contact__line {
	display: block;
	padding: 16px 0;
	border-top: 1px solid var(--line);
	transition: padding-left 0.4s var(--ease);
}

.contact__line:hover {
	padding-left: 10px;
}

.contact__line span {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.58rem;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--faint);
	margin-bottom: 4px;
}

.contact__line strong {
	font-weight: 400;
	font-size: 1.02rem;
}

a.contact__line:hover strong {
	color: var(--accent);
}

.contact__socials {
	display: flex;
	gap: 10px;
	margin-top: 34px;
}

.contact__socials a {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	color: var(--muted);
	transition: all 0.4s var(--ease);
}

.contact__socials a svg {
	width: 17px;
	height: 17px;
}

.contact__socials a:hover {
	color: #060a14;
	background: var(--ink);
	border-color: var(--ink);
	transform: translateY(-4px);
}

.contact__status {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 40px;
	font-family: var(--font-mono);
	font-size: 0.64rem;
	letter-spacing: 0.18em;
	color: var(--ok);
	text-transform: uppercase;
}

.contact__form {
	padding: clamp(30px, 4vw, 48px);
	border: 1px solid var(--line);
	border-radius: 4px;
	background: rgba(16, 16, 20, 0.5);
	backdrop-filter: blur(14px);
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.field {
	position: relative;
}

.field input,
.field textarea,
.field select {
	width: 100%;
	padding: 14px 2px;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 0.98rem;
	font-weight: 300;
	outline: none;
	resize: vertical;
	transition: border-color 0.35s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
	border-bottom-color: var(--accent-2);
}

.field label {
	position: absolute;
	top: 14px;
	left: 2px;
	color: var(--faint);
	font-size: 0.95rem;
	pointer-events: none;
	transition: all 0.3s var(--ease);
}

.field input:focus+label,
.field input:not(:placeholder-shown)+label,
.field textarea:focus+label,
.field textarea:not(:placeholder-shown)+label,
.field label.field__static {
	top: -10px;
	left: 2px;
	font-family: var(--font-mono);
	font-size: 0.56rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--accent-2);
}

.field select {
	appearance: none;
	cursor: pointer;
}

.field select:invalid {
	color: var(--faint);
}

.field--select::after {
	content: "";
	position: absolute;
	right: 4px;
	top: 50%;
	width: 7px;
	height: 7px;
	pointer-events: none;
	border-right: 1px solid var(--muted);
	border-bottom: 1px solid var(--muted);
	transform: translateY(-70%) rotate(45deg);
}

.form-feedback {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	min-height: 1.2em;
}

.form-feedback.is-ok {
	color: var(--ok);
}

.form-feedback.is-error {
	color: var(--danger);
}

.contact__form.is-sending .btn {
	opacity: 0.6;
	pointer-events: none;
}

/* ---------- footer ---------- */
.site-footer {
	position: relative;
	z-index: 2;
	overflow: hidden;
	border-top: 1px solid var(--line);
	padding-top: 90px;
}

.footer-glow {
	display: none;
}

.footer-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	margin-bottom: 64px;
}

.footer-brand__logo {
	width: 85px;
	height: auto;
	object-fit: contain;
}

.footer-brand__mark {
	width: 58px;
}

.footer-tag {
	font-family: var(--font-mono);
	font-size: 0.62rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--faint);
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(160px, 240px));
	justify-content: space-between;
	gap: 34px;
	margin-bottom: 90px;
}

.footer-col {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.footer-col h4 {
	font-family: var(--font-mono);
	font-size: 0.58rem;
	font-weight: 500;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--faint);
	margin-bottom: 10px;
}

.footer-col a,
.footer-col span {
	color: var(--muted);
	font-size: 0.9rem;
	transition: color 0.3s, padding-left 0.3s var(--ease);
}

.footer-col a:hover {
	color: var(--ink);
	padding-left: 5px;
}

.footer-word {
	overflow: hidden;
	line-height: 1;
	user-select: none;
	margin-bottom: 60px;
}

.footer-word span {
	display: block;
	text-align: center;
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(3.4rem, 12vw, 10.4rem);
	letter-spacing: -0.01em;
	white-space: nowrap;
	color: rgba(242, 240, 234, 0.09);
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	padding: 24px 0 28px;
	border-top: 1px solid var(--line);
	font-family: var(--font-mono);
	font-size: 0.62rem;
	letter-spacing: 0.14em;
	color: var(--faint);
}

/* ---------- back to top ---------- */
.to-top {
	position: fixed;
	right: 28px;
	bottom: 28px;
	z-index: 100;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: var(--ink);
	border: 1px solid var(--line);
	background: rgba(8, 13, 26, 0.7);
	backdrop-filter: blur(10px);
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px);
	transition: all 0.45s var(--ease);
}

.to-top svg {
	width: 16px;
	height: 16px;
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.to-top:hover {
	background: var(--ink);
	color: #060a14;
}

/* ---------- reveals & intro ---------- */
[data-reveal] {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 1s var(--ease), transform 1s var(--ease);
	transition-delay: var(--reveal-delay, 0s);
	will-change: opacity, transform;
}

[data-reveal].is-revealed {
	opacity: 1;
	transform: translateY(0);
}

.hero [data-intro] {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.hero.is-live [data-intro] {
	opacity: 1;
	transform: translateY(0);
}

.hero.is-live [data-intro="0"] {
	transition-delay: 0.1s;
}

.hero.is-live [data-intro="4"] {
	transition-delay: 0.9s;
}

.hero.is-live [data-intro="5"] {
	transition-delay: 1s;
}

.hero.is-live [data-intro="6"] {
	transition-delay: 1.15s;
}

body.no-webgl #webgl {
	display: none;
}

body.no-webgl .bg-vignette {
	background:
		radial-gradient(55% 45% at 78% 10%, rgba(139, 147, 255, 0.1), transparent 70%),
		radial-gradient(45% 40% at 12% 80%, rgba(139, 147, 255, 0.06), transparent 70%);
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
	.about__grid {
		grid-template-columns: 1fr;
	}

	.side-dots {
		display: none;
	}
}

@media (max-width: 900px) {

	.main-nav,
	.header-cta {
		display: none;
	}

	.nav-toggle {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 6px;
		width: 44px;
		height: 44px;
		border-radius: 50%;
		border: 1px solid var(--line);
		align-items: center;
		transition: border-color 0.3s;
	}

	.nav-toggle span {
		display: block;
		width: 18px;
		height: 1.4px;
		background: var(--ink);
		transition: transform 0.4s var(--ease), opacity 0.3s;
	}

	.nav-toggle.is-open span:nth-child(1) {
		transform: translateY(7.2px) rotate(45deg);
	}

	.nav-toggle.is-open span:nth-child(2) {
		opacity: 0;
	}

	.nav-toggle.is-open span:nth-child(3) {
		transform: translateY(-7.2px) rotate(-45deg);
	}

	.service-row {
		grid-template-columns: 36px 1fr 40px;
		grid-template-rows: auto auto;
		gap: 12px 14px;
		padding: 28px 0;
	}

	.service-row__num {
		grid-column: 1;
		grid-row: 1;
		align-self: start;
		margin-top: 4px;
	}

	.service-row__title {
		grid-column: 2;
		grid-row: 1;
		font-size: clamp(1.35rem, 4.5vw, 1.8rem);
	}

	.service-row__arrow {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
		align-self: start;
		width: 38px;
		height: 38px;
	}

	.service-row__meta {
		grid-column: 2 / 4;
		grid-row: 2;
	}

	.contact__grid {
		grid-template-columns: 1fr;
	}

	.hero__top-mid {
		display: none;
	}

	.hero__logo-side {
		display: none;
	}

	.hero__header-row {
		width: 100%;
		display: block;
	}

	.hero__title {
		font-size: clamp(3.4rem, 13vw, 6.5rem);
		width: 100%;
	}

	.hero__sub {
		max-width: 100%;
		font-size: clamp(1.05rem, 4vw, 1.25rem);
	}
}

@media (max-width: 640px) {
	.section-title {
		font-size: clamp(1.85rem, 7.5vw, 2.5rem);
	}

	.project-card {
		grid-column: span 12;
	}

	.project-card:nth-child(6n + 2),
	.project-card:nth-child(6n + 5) {
		margin-top: 0;
	}

	.service-row {
		grid-template-columns: 1fr 36px;
		gap: 10px 10px;
		padding: 22px 0;
	}

	.service-row__num {
		display: none;
	}

	.service-row__title {
		grid-column: 1;
		grid-row: 1;
		font-size: clamp(1.2rem, 5.2vw, 1.45rem);
	}

	.service-row:hover .service-row__title {
		transform: none;
	}

	.service-row__arrow {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
		align-self: start;
		width: 36px;
		height: 36px;
	}

	.service-row__meta {
		grid-column: 1 / 3;
		grid-row: 2;
	}

	.service-row__desc {
		font-size: 0.88rem;
		line-height: 1.55;
		margin-bottom: 10px;
	}

	.hero__cta .btn {
		flex: 1;
		justify-content: center;
	}

	.hero__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 26px;
	}

	.hero__scroll {
		flex-direction: row;
		align-self: flex-end;
		margin-top: -70px;
	}

	.hero__scroll-track {
		width: 46px;
		height: 1px;
	}

	.hero__scroll-thumb {
		top: 0;
		left: -40%;
		width: 40%;
		height: 100%;
		animation: scrollLineX 2s var(--ease) infinite;
	}

	@keyframes scrollLineX {
		to {
			left: 110%;
		}
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.about__visual {
		height: 320px;
	}

	.about__stats .stat-card:nth-child(odd) {
		border-right: 0;
		padding-right: 0;
	}

	.about__stats {
		grid-template-columns: 1fr;
	}

	.stat-card:nth-child(even) {
		padding-left: 0;
	}

	.to-top {
		right: 16px;
		bottom: 16px;
	}

	.marquee__group span {
		font-size: 1.15rem;
	}
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	html {
		scroll-behavior: auto;
	}

	[data-reveal],
	.hero [data-intro] {
		opacity: 1 !important;
		transform: none !important;
	}

	.hero__word .char {
		transform: none !important;
	}
}

/* ---------- focus ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 1.5px solid var(--accent-2);
	outline-offset: 3px;
}