/*!
 * Cognivex theme styles, v1.1
 * Colours come from the Cognivex logo (abyss navy, signal blue, pixel cyan) plus the
 * violet of the banner's light trails. Archivo is set wide for headings to echo the
 * COGNIVEX wordmark. Glass panels, soft light and eased motion give the smooth feel;
 * the logo's pixel square stays the ornament.
 */

/* 1. Tokens ----------------------------------------------------------------- */

:root {
	--abyss: #030a1c;
	--deep: #071433;
	--line: rgba(130, 170, 255, 0.14);
	--line-strong: rgba(140, 190, 255, 0.3);
	--blue: #0b5cf5;
	--blue-bright: #2f76ff;
	--cyan: #00d2fc;
	--violet: #7b5cff;
	--frost: #eaf2ff;
	--mist: #a0b2d6;
	--dim: #7488b1;
	--ok: #4ee6b5;
	--danger: #ff8f8f;
	--grad: linear-gradient(120deg, #00d2fc 0%, #2f76ff 50%, #7b5cff 100%);
	--tc0: #00d2fc;
	--tc1: #2f76ff;
	--tc2: #9a7dff;
	--tc3: #3ee8d0;

	--font: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--wide: 125%;
	--semi: 112%;
	--narrow: 80%;

	--text-sm: 0.9375rem;
	--text-base: 1.0625rem;
	--text-lg: 1.3125rem;
	--text-xl: 1.75rem;
	--text-2xl: clamp(1.875rem, 1.4rem + 1.6vw, 2.625rem);
	--text-3xl: clamp(2.125rem, 1.3rem + 2.9vw, 3.375rem);

	--container: 1240px;
	--gutter: clamp(20px, 4vw, 40px);
	--header-h: 64px;
	--header-top: 14px;
	--r-s: 6px;
	--r-m: 14px;
	--r-l: 22px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

	color-scheme: dark;
}

/* 2. Base ------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + var(--header-top) + env(safe-area-inset-top, 0px) + 20px);
	background: var(--abyss);
}

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

body {
	margin: 0;
	min-height: 100vh;
	background: transparent;
	color: var(--frost);
	font-family: var(--font);
	font-size: var(--text-base);
	font-stretch: 100%;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

@supports (overflow-x: clip) {
	body {
		overflow-x: clip;
	}
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-weight: 700;
	line-height: 1.15;
}

p {
	margin: 0 0 1em;
}

address {
	font-style: normal;
}

::selection {
	background: var(--blue);
	color: #fff;
}

:focus-visible {
	outline: 2px solid var(--cyan);
	outline-offset: 3px;
}

body.cx-lock {
	overflow: hidden;
}

/* Lenis smooth scrolling */
html.lenis,
html.lenis body {
	height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
	overflow: clip;
}

.lenis [data-lenis-prevent] {
	overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
	pointer-events: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	top: 12px;
	left: 12px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 14px 22px;
	clip: auto !important;
	clip-path: none;
	border-radius: var(--r-s);
	background: var(--frost);
	color: var(--abyss);
	font-weight: 700;
	text-decoration: none;
}

/* WordPress core classes */
.alignleft {
	float: left;
	margin: 0.35em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.35em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
	margin-top: 8px;
	color: var(--dim);
	font-size: var(--text-sm);
}

.sticky .cx-post__title::after {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-left: 10px;
	border-radius: 2px;
	background: var(--cyan);
	vertical-align: middle;
}

.bypostauthor > .comment-body .fn {
	color: var(--cyan);
}

/* 3. Atmosphere: drifting light, cursor glow, scroll progress -------------- */

.cx-atmos {
	position: fixed;
	inset: 0;
	z-index: -2;
	overflow: hidden;
	background: radial-gradient(120% 70% at 50% -10%, #0b1e4f 0%, rgba(3, 10, 28, 0) 60%);
	pointer-events: none;
}

.cx-atmos__blob {
	position: absolute;
	width: 70vmax;
	height: 70vmax;
	border-radius: 50%;
	opacity: 0.3;
	will-change: transform;
}

.cx-atmos__blob--a {
	top: -32vmax;
	left: -26vmax;
	background: radial-gradient(circle, rgba(11, 92, 245, 0.9), rgba(11, 92, 245, 0) 62%);
	animation: cx-drift-a 36s ease-in-out infinite alternate;
}

.cx-atmos__blob--b {
	top: 20vh;
	right: -38vmax;
	background: radial-gradient(circle, rgba(0, 210, 252, 0.6), rgba(0, 210, 252, 0) 62%);
	animation: cx-drift-b 44s ease-in-out infinite alternate;
}

.cx-atmos__blob--c {
	bottom: -42vmax;
	left: 8vw;
	background: radial-gradient(circle, rgba(123, 92, 255, 0.6), rgba(123, 92, 255, 0) 62%);
	animation: cx-drift-c 52s ease-in-out infinite alternate;
}

.cx-atmos__noise {
	position: absolute;
	inset: 0;
	opacity: 0.05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes cx-drift-a {
	to {
		transform: translate3d(18vw, 22vh, 0) scale(1.15);
	}
}

@keyframes cx-drift-b {
	to {
		transform: translate3d(-22vw, 16vh, 0) scale(0.9);
	}
}

@keyframes cx-drift-c {
	to {
		transform: translate3d(14vw, -24vh, 0) scale(1.1);
	}
}

.cx-cursor-glow {
	position: fixed;
	top: 0;
	left: 0;
	z-index: -1;
	width: 680px;
	height: 680px;
	margin: -340px 0 0 -340px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 210, 252, 0.09), rgba(11, 92, 245, 0.05) 35%, rgba(11, 92, 245, 0) 65%);
	opacity: 0;
	transition: opacity 0.8s var(--ease);
	pointer-events: none;
	will-change: transform;
}

.cx-cursor-glow.is-on {
	opacity: 1;
}

.cx-progress {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 101;
	height: 2px;
	pointer-events: none;
}

.cx-progress span {
	display: block;
	height: 100%;
	background: var(--grad);
	box-shadow: 0 0 12px rgba(0, 210, 252, 0.8);
	transform: scaleX(var(--p, 0));
	transform-origin: left center;
}

/* 4. Layout ----------------------------------------------------------------- */

.cx-container {
	width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
}

.cx-section {
	position: relative;
	padding-block: clamp(88px, 11vw, 148px);
}

/* A seam of light between sections. */
.cx-section + .cx-section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: min(80%, 900px);
	height: 1px;
	background: linear-gradient(90deg, rgba(0, 210, 252, 0), rgba(0, 210, 252, 0.4), rgba(123, 92, 255, 0.3), rgba(123, 92, 255, 0));
	transform: translateX(-50%);
}

.cx-section-head {
	max-width: 46rem;
	margin-bottom: clamp(40px, 6vw, 72px);
}

.cx-h2 {
	margin: 0 0 0.45em;
	font-size: var(--text-3xl);
	font-stretch: var(--wide);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.cx-lead {
	max-width: 38rem;
	margin: 0;
	color: var(--mist);
	font-size: var(--text-lg);
	line-height: 1.5;
}

/* 5. Glass panels ----------------------------------------------------------- */

.cx-glass {
	position: relative;
	isolation: isolate;
	border-radius: var(--r-l);
	background: linear-gradient(160deg, rgba(22, 48, 108, 0.42), rgba(8, 20, 52, 0.3) 60%);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 60px -30px rgba(0, 0, 0, 0.7);
}

/* 1px gradient border */
.cx-glass::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(150deg, rgba(0, 210, 252, 0.5), rgba(120, 165, 255, 0.12) 32%, rgba(120, 165, 255, 0.06) 62%, rgba(123, 92, 255, 0.4));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

/* Light that follows the pointer (position set by the script on [data-spot]) */
.cx-glass::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: radial-gradient(480px circle at var(--mx, 50%) var(--my, -20%), rgba(0, 210, 252, 0.13), rgba(0, 210, 252, 0) 60%);
	opacity: 0;
	transition: opacity 0.6s var(--ease);
	pointer-events: none;
}

.cx-glass:hover::after {
	opacity: 1;
}

@property --cx-angle {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}

/* A border of light that slowly travels around the panel */
.cx-glass--live::before {
	background: conic-gradient(from var(--cx-angle), rgba(0, 210, 252, 0.06), rgba(0, 210, 252, 0.85) 12%, rgba(47, 118, 255, 0.25) 25%, rgba(123, 92, 255, 0.06) 45%, rgba(123, 92, 255, 0.6) 62%, rgba(0, 210, 252, 0.06) 80%);
	animation: cx-angle 9s linear infinite;
}

@keyframes cx-angle {
	to {
		--cx-angle: 360deg;
	}
}

/* 6. Buttons and links ------------------------------------------------------ */

.cx-btn {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 52px;
	padding: 0 26px;
	overflow: hidden;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--blue);
	color: #fff;
	font-size: 1rem;
	font-stretch: var(--semi);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: box-shadow 0.4s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

/* Light sweep on hover */
.cx-btn::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(110deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 70%);
	transform: translateX(-120%);
	transition: transform 0.9s var(--ease-out);
}

.cx-btn:hover::after {
	transform: translateX(120%);
}

.cx-btn:active {
	transform: scale(0.98);
}

.cx-btn--primary {
	background: linear-gradient(120deg, #0b5cf5 0%, #2f76ff 55%, #1aa8f5 100%);
	box-shadow: 0 12px 30px -12px rgba(11, 92, 245, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.cx-btn--primary:hover {
	box-shadow: 0 16px 40px -12px rgba(0, 170, 255, 0.95), 0 0 0 1px rgba(0, 210, 252, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* The logo's pixel, carried on every main action. */
.cx-btn--primary::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: #bff4ff;
	box-shadow: 0 0 10px rgba(0, 210, 252, 0.9);
	transition: transform 0.5s var(--ease-spring);
}

.cx-btn--primary:hover::before {
	transform: rotate(90deg) scale(1.25);
}

.cx-btn--ghost {
	border-color: rgba(140, 190, 255, 0.3);
	background: rgba(10, 26, 64, 0.35);
	color: var(--frost);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.cx-btn--ghost:hover {
	border-color: rgba(0, 210, 252, 0.6);
	box-shadow: 0 0 30px -8px rgba(0, 210, 252, 0.6);
}

.cx-btn--sm {
	min-height: 44px;
	padding: 0 20px;
	font-size: var(--text-sm);
}

.cx-btn[disabled] {
	opacity: 0.7;
	cursor: progress;
}

.cx-link {
	color: var(--frost);
	text-decoration: underline;
	text-decoration-color: var(--line-strong);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	transition: color 0.25s, text-decoration-color 0.25s;
}

.cx-link:hover {
	color: var(--cyan);
	text-decoration-color: currentColor;
}

/* 7. Header: a floating glass bar ------------------------------------------- */

.cx-header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 100;
	padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-top));
	pointer-events: none;
}

.admin-bar .cx-header {
	top: 32px;
}

.cx-header .cx-header__inner {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: min(100% - 2 * var(--gutter) + 24px, var(--container) + 24px);
	height: var(--header-h);
	padding: 0 8px 0 14px;
	pointer-events: auto;
}

.cx-header__inner::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: 20px;
	background: rgba(6, 16, 42, 0.62);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	backdrop-filter: blur(18px) saturate(160%);
	box-shadow: inset 0 0 0 1px rgba(140, 190, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 50px -24px rgba(0, 0, 0, 0.8);
	opacity: 0;
	transform: scale(0.98);
	transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out);
	pointer-events: none;
}

.cx-header.is-scrolled .cx-header__inner::before,
.cx-header.is-solid .cx-header__inner::before,
.cx-header.menu-open .cx-header__inner::before {
	opacity: 1;
	transform: none;
}

.cx-brand {
	position: relative;
	z-index: 2;
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.cx-brand__mark {
	display: block;
	width: 36px;
	height: auto;
	transition: transform 0.8s var(--ease-spring);
}

.cx-brand:hover .cx-brand__mark {
	transform: rotate(-14deg) scale(1.06);
}

.cx-brand__word {
	display: block;
	width: auto;
	height: 16px;
}

.cx-brand__custom {
	display: block;
	width: auto;
	max-height: 44px;
}

.cx-nav {
	display: flex;
	align-items: center;
}

.cx-nav__list {
	position: relative;
	z-index: 0;
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cx-nav__list a {
	position: relative;
	display: block;
	padding: 8px 15px;
	border-radius: 999px;
	color: var(--mist);
	font-size: var(--text-sm);
	font-stretch: var(--semi);
	font-weight: 500;
	text-decoration: none;
	transition: color 0.3s var(--ease);
}

.cx-nav__list a::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 50%;
	width: 6px;
	height: 6px;
	margin-left: -3px;
	border-radius: 1.5px;
	background: var(--cyan);
	box-shadow: 0 0 8px rgba(0, 210, 252, 0.8);
	transform: scale(0);
	transition: transform 0.35s var(--ease-spring);
}

.cx-nav__list a:hover,
.cx-nav__list a.is-active,
.cx-nav__list .current-menu-item > a {
	color: var(--frost);
}

.cx-nav__list a.is-active::after {
	transform: scale(1);
}

.cx-nav__list.has-glider a::after {
	display: none;
}

/* The highlight that glides between menu links */
.cx-nav__glider {
	position: absolute;
	top: 50%;
	left: 0;
	z-index: -1;
	width: 0;
	height: 36px;
	margin-top: -18px;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(0, 210, 252, 0.14), rgba(47, 118, 255, 0.14));
	box-shadow: inset 0 0 0 1px rgba(0, 210, 252, 0.3), 0 0 22px -4px rgba(0, 210, 252, 0.4);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.55s var(--ease-out), width 0.55s var(--ease-out), opacity 0.35s var(--ease);
}

.cx-nav__cta {
	display: none;
}

.cx-header__actions {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 10px;
}

.cx-toggle {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--line-strong);
	border-radius: 14px;
	background: rgba(10, 26, 64, 0.4);
	cursor: pointer;
}

.cx-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	border-radius: 1px;
	background: var(--frost);
	transition: transform 0.45s var(--ease-out), opacity 0.25s;
}

.menu-open .cx-toggle span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

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

.menu-open .cx-toggle span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

@media screen and (max-width: 782px) {
	.admin-bar .cx-header {
		top: 46px;
	}
}

@media screen and (max-width: 600px) {
	.admin-bar .cx-header {
		top: 0;
	}
}

@media (max-width: 980px) {
	.cx-toggle {
		display: inline-flex;
	}

	.cx-header__cta {
		display: none;
	}

	.cx-nav {
		position: fixed;
		inset: 0;
		z-index: 1;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 36px;
		padding: calc(var(--header-h) + var(--header-top) + env(safe-area-inset-top, 0px) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
		background: rgba(3, 10, 28, 0.94);
		-webkit-backdrop-filter: blur(24px);
		backdrop-filter: blur(24px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.45s var(--ease), visibility 0.45s;
	}

	.menu-open .cx-nav {
		opacity: 1;
		visibility: visible;
	}

	.cx-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.cx-nav__list li {
		opacity: 0;
		transform: translate3d(0, 22px, 0);
		transition: opacity 0.5s var(--ease), transform 0.7s var(--ease-out);
	}

	.menu-open .cx-nav__list li {
		opacity: 1;
		transform: none;
		transition-delay: calc(var(--i, 0) * 60ms + 80ms);
	}

	.cx-nav__list a {
		padding: 4px 0;
		color: var(--frost);
		font-size: clamp(1.75rem, 8vw, 2.5rem);
		font-stretch: var(--wide);
		font-weight: 800;
	}

	.cx-nav__list a::after {
		right: -20px;
		bottom: 50%;
		left: auto;
		margin: 0 0 -3px;
	}

	.cx-nav__glider {
		display: none;
	}

	.cx-nav__cta {
		display: inline-flex;
	}

	.cx-brand__mark {
		width: 32px;
	}

	.cx-brand__word {
		height: 14px;
	}
}

/* 8. Hero ------------------------------------------------------------------- */

.cx-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: calc(var(--header-h) + var(--header-top) + env(safe-area-inset-top, 0px) + 40px) 0 clamp(88px, 12vh, 140px);
	overflow: hidden;
}

.cx-hero__field {
	position: absolute;
	inset: 0;
	z-index: -1;
	display: block;
	width: 100%;
	height: 100%;
}

.cx-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
	opacity: calc(1 - var(--hero-p, 0) * 0.9);
	transform: translate3d(0, calc(var(--hero-p, 0) * -80px), 0);
}

.cx-hero__content {
	container-type: inline-size;
}

.cx-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 26px;
	padding: 7px 16px 7px 11px;
	border-radius: 999px;
	background: rgba(12, 32, 78, 0.5);
	box-shadow: inset 0 0 0 1px rgba(0, 210, 252, 0.25), 0 0 24px -10px rgba(0, 210, 252, 0.6);
	color: #c4ecff;
	font-size: 0.8125rem;
	font-stretch: var(--semi);
	font-weight: 600;
	letter-spacing: 0.02em;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.cx-kicker__dot {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--cyan);
	animation: cx-ping 2.4s var(--ease) infinite;
}

@keyframes cx-ping {
	0% {
		box-shadow: 0 0 0 0 rgba(0, 210, 252, 0.6);
	}

	70%,
	100% {
		box-shadow: 0 0 0 10px rgba(0, 210, 252, 0);
	}
}

.cx-hero__title {
	margin: 0 0 30px;
	font-size: clamp(2.4rem, 6.6vw, 5.75rem);
	font-stretch: var(--wide);
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: -0.02em;
}

/* Fit the longest headline line to the column (set per headline in hero.php). */
@supports (width: 1cqi) {
	.cx-hero__title {
		font-size: clamp(2.4rem, var(--fit, 12cqi), 6.25rem);
	}
}

.cx-line {
	display: block;
	overflow: hidden;
	padding-bottom: 0.14em;
	margin-bottom: -0.14em;
}

.cx-line > span {
	display: inline-block;
}

/* Brushed-light headline with a sweep of light after it appears. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.cx-hero__title .cx-line > span {
		background-image: linear-gradient(105deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0) 58%), linear-gradient(180deg, #ffffff 10%, #d6eaff 58%, #8fdcff 100%);
		background-repeat: no-repeat;
		background-position: 140% 0, 0 0;
		background-size: 260% 100%, 100% 100%;
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
	}

	.cx-hero.is-intro-in .cx-hero__title .cx-line > span {
		animation: cx-sweep 2.6s var(--ease) 1.1s both;
	}
}

@keyframes cx-sweep {
	from {
		background-position: 140% 0, 0 0;
	}

	to {
		background-position: -40% 0, 0 0;
	}
}

.cx-hero__text {
	max-width: 33rem;
	margin: 0 0 36px;
	color: var(--mist);
	font-size: var(--text-lg);
	line-height: 1.5;
}

.cx-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cx-hero__call {
	margin: 24px 0 0;
	color: var(--dim);
	font-size: var(--text-sm);
}

.cx-hero__call a {
	border-bottom: 1px solid var(--line-strong);
	color: var(--frost);
	text-decoration: none;
	transition: color 0.25s, border-color 0.25s;
}

.cx-hero__call a:hover {
	border-color: var(--cyan);
	color: var(--cyan);
}

.cx-hero__mark {
	position: relative;
	justify-self: center;
	width: min(100%, 400px);
}

.cx-hero__mark::before {
	content: "";
	position: absolute;
	inset: -40%;
	z-index: -1;
	background: radial-gradient(closest-side, rgba(11, 92, 245, 0.38), rgba(0, 210, 252, 0.08) 55%, rgba(3, 10, 28, 0) 75%);
	animation: cx-breathe 6s ease-in-out infinite;
	pointer-events: none;
}

@keyframes cx-breathe {
	50% {
		opacity: 0.65;
		transform: scale(0.94);
	}
}

.cx-hero__mark img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 0 30px rgba(0, 140, 255, 0.35));
}

/* Orbiting rings, drawn by the script; the front half passes in front of the logo. */
.cx-orbit {
	position: absolute;
	top: -38%;
	left: -38%;
	width: 176%;
	height: 176%;
	pointer-events: none;
}

.cx-orbit--front {
	z-index: 2;
}

.cx-hud {
	position: absolute;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 13px 6px 10px;
	border-radius: 999px;
	background: rgba(6, 18, 46, 0.62);
	box-shadow: inset 0 0 0 1px rgba(0, 210, 252, 0.28), 0 0 24px -8px rgba(0, 210, 252, 0.5);
	color: #c9ecff;
	font-size: 0.6875rem;
	font-stretch: var(--narrow);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	white-space: nowrap;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	opacity: 0;
	transform: translate3d(0, 10px, 0);
	transition: opacity 0.9s var(--ease), transform 1.1s var(--ease-out);
}

.cx-hud i {
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 1.5px;
	background: var(--cyan);
	box-shadow: 0 0 8px var(--cyan);
	animation: cx-blink 1.8s ease-in-out infinite;
}

.cx-hud--a {
	top: 2%;
	left: -10%;
}

.cx-hud--b {
	right: -8%;
	bottom: 4%;
	transition-delay: 0.25s;
}

.cx-hud--b i {
	animation-delay: 0.9s;
}

.cx-hero.is-assembled .cx-hud,
.cx-hero:not([data-intro]) .cx-hud {
	opacity: 1;
	transform: none;
}

@keyframes cx-blink {
	50% {
		opacity: 0.25;
	}
}

.cx-scrollcue {
	position: absolute;
	bottom: 30px;
	left: 50%;
	width: 26px;
	height: 42px;
	margin-left: -13px;
	border-radius: 13px;
	box-shadow: inset 0 0 0 1.5px rgba(140, 190, 255, 0.35);
	opacity: calc(1 - var(--hero-p, 0) * 4);
}

.cx-scrollcue span {
	position: absolute;
	top: 8px;
	left: 50%;
	width: 4px;
	height: 8px;
	margin-left: -2px;
	border-radius: 2px;
	background: var(--cyan);
	box-shadow: 0 0 10px var(--cyan);
	animation: cx-wheel 2.2s var(--ease) infinite;
}

@keyframes cx-wheel {
	0% {
		opacity: 0;
		transform: translateY(-2px);
	}

	30% {
		opacity: 1;
	}

	80%,
	100% {
		opacity: 0;
		transform: translateY(14px);
	}
}

/* Intro: the page-load sequence. Without JavaScript everything is simply visible. */
@media (prefers-reduced-motion: no-preference) {
	.js .cx-hero[data-intro] .cx-line > span {
		transform: translate3d(0, 110%, 0);
		transition: transform 1.1s var(--ease-out);
		transition-delay: calc(80ms + var(--i, 0) * 120ms);
	}

	.js .cx-hero[data-intro] .cx-kicker,
	.js .cx-hero[data-intro] .cx-hero__text,
	.js .cx-hero[data-intro] .cx-hero__actions,
	.js .cx-hero[data-intro] .cx-hero__call {
		opacity: 0;
		filter: blur(8px);
		transform: translate3d(0, 18px, 0);
		transition: opacity 0.9s var(--ease), transform 1.1s var(--ease-out), filter 0.9s var(--ease);
	}

	.js .cx-hero[data-intro] .cx-hero__text {
		transition-delay: 0.4s;
	}

	.js .cx-hero[data-intro] .cx-hero__actions {
		transition-delay: 0.52s;
	}

	.js .cx-hero[data-intro] .cx-hero__call {
		transition-delay: 0.64s;
	}

	.js .cx-hero[data-intro] .cx-hero__mark img {
		opacity: 0;
		transform: scale(0.94);
		transition: opacity 0.9s var(--ease), transform 1.4s var(--ease-out);
	}

	.js .cx-hero[data-intro].is-intro-in .cx-line > span,
	.js .cx-hero[data-intro].is-intro-in .cx-kicker,
	.js .cx-hero[data-intro].is-intro-in .cx-hero__text,
	.js .cx-hero[data-intro].is-intro-in .cx-hero__actions,
	.js .cx-hero[data-intro].is-intro-in .cx-hero__call {
		opacity: 1;
		filter: none;
		transform: none;
	}

	.js .cx-hero[data-intro].is-assembled .cx-hero__mark img {
		opacity: 1;
		transform: none;
	}

	/* Safety net: if the script never runs, reveal everything anyway. */
	.js .cx-hero[data-intro]:not(.is-intro-in) .cx-line > span,
	.js .cx-hero[data-intro]:not(.is-intro-in) .cx-kicker,
	.js .cx-hero[data-intro]:not(.is-intro-in) .cx-hero__text,
	.js .cx-hero[data-intro]:not(.is-intro-in) .cx-hero__actions,
	.js .cx-hero[data-intro]:not(.is-intro-in) .cx-hero__call,
	.js .cx-hero[data-intro]:not(.is-assembled) .cx-hero__mark img {
		animation: cx-unhide 0.6s ease 4s forwards;
	}
}

@keyframes cx-unhide {
	to {
		opacity: 1;
		filter: none;
		transform: none;
	}
}

@media (max-width: 980px) {
	.cx-hero {
		min-height: 0;
		padding-top: calc(var(--header-h) + var(--header-top) + env(safe-area-inset-top, 0px) + 36px);
		padding-bottom: 72px;
	}

	.cx-hero__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 44px;
		text-align: center;
	}

	.cx-hero__content {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.cx-hero__text {
		margin-inline: auto;
	}

	.cx-hero__actions {
		justify-content: center;
	}

	.cx-hero__mark {
		order: -1;
		justify-self: center;
		width: min(44vw, 220px);
		margin-top: 30px;
	}

	.cx-hud {
		padding: 5px 10px 5px 8px;
		font-size: 0.625rem;
	}

	.cx-hud--a {
		left: -30%;
	}

	.cx-hud--b {
		right: -30%;
	}

	.cx-scrollcue {
		display: none;
	}
}

/* 9. Ticker ----------------------------------------------------------------- */

.cx-ticker {
	position: relative;
	overflow: hidden;
	padding: 22px 0;
	border-block: 1px solid rgba(140, 190, 255, 0.12);
	background: linear-gradient(90deg, rgba(11, 92, 245, 0.1), rgba(0, 210, 252, 0.05), rgba(123, 92, 255, 0.1));
	-webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0), #000 8%, #000 92%, rgba(0, 0, 0, 0));
	mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0), #000 8%, #000 92%, rgba(0, 0, 0, 0));
}

.cx-ticker__track,
.cx-marquee__track {
	display: flex;
	width: max-content;
	animation: cx-marquee var(--dur, 70s) linear infinite;
}

.cx-ticker__group {
	display: flex;
	flex: none;
	align-items: center;
	gap: 36px;
	padding-right: 36px;
}

.cx-ticker__item {
	color: var(--frost);
	font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem);
	font-stretch: var(--wide);
	font-weight: 800;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.cx-ticker__item.is-outline {
	color: transparent;
	-webkit-text-stroke: 1px rgba(150, 200, 255, 0.6);
}

.cx-ticker__px {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 2px;
	background: var(--grad);
	box-shadow: 0 0 12px rgba(0, 210, 252, 0.7);
}

.cx-ticker:hover .cx-ticker__track,
.cx-marquee:hover .cx-marquee__track {
	animation-play-state: paused;
}

@keyframes cx-marquee {
	to {
		transform: translate3d(-50%, 0, 0);
	}
}

/* 10. About ----------------------------------------------------------------- */

.cx-about {
	padding-top: clamp(80px, 10vw, 140px);
}

.cx-about__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	align-items: center;
	gap: clamp(36px, 6vw, 96px);
}

.cx-about__visual {
	position: relative;
	margin: 0 0 0 calc(-1 * min(4vw, 56px));
}

.cx-about__halo {
	position: absolute;
	inset: 8% 4% 8% 18%;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(11, 92, 245, 0.4), rgba(0, 210, 252, 0.08) 60%, rgba(3, 10, 28, 0) 80%);
	animation: cx-breathe 7s ease-in-out infinite;
}

.cx-about__visual img {
	display: block;
	width: 100%;
	height: auto;
	animation: cx-float 9s ease-in-out infinite alternate;
}

@keyframes cx-float {
	from {
		transform: translate3d(0, -8px, 0);
	}

	to {
		transform: translate3d(0, 10px, 0);
	}
}

.cx-about__copy > p {
	max-width: 36rem;
	color: var(--mist);
	font-size: var(--text-lg);
	line-height: 1.55;
}

.cx-about__copy > p:last-child {
	margin-bottom: 0;
}

.cx-principles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: clamp(56px, 8vw, 96px) 0 0;
	padding: 0;
	list-style: none;
}

.cx-principle {
	padding: 28px 28px 30px;
}

.cx-principle h3 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 10px;
	font-size: var(--text-lg);
	font-stretch: var(--semi);
	font-weight: 700;
}

.cx-principle h3::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--cyan);
	box-shadow: 0 0 10px rgba(0, 210, 252, 0.8);
}

.cx-principle p {
	margin: 0;
	color: var(--mist);
}

@media (max-width: 900px) {
	.cx-about__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.cx-about__visual {
		order: 2;
		max-width: 560px;
		margin-left: calc(-1 * var(--gutter));
	}

	.cx-principles {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}
}

/* 11. Services -------------------------------------------------------------- */

.cx-services__layout {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: start;
	gap: clamp(24px, 4vw, 56px);
}

.cx-tabs {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px;
}

/* The highlight that glides to the chosen service */
.cx-tabs__glow {
	position: absolute;
	top: 0;
	right: 10px;
	left: 10px;
	z-index: 0;
	height: var(--th, 0);
	border-radius: 14px;
	background: linear-gradient(90deg, rgba(0, 210, 252, 0.16), rgba(47, 118, 255, 0.05));
	box-shadow: inset 0 0 0 1px rgba(0, 210, 252, 0.3), 0 0 30px -8px rgba(0, 210, 252, 0.45);
	transform: translate3d(0, var(--ty, 0), 0);
	transition: transform 0.6s var(--ease-out), height 0.6s var(--ease-out);
	pointer-events: none;
}

.cx-tab {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 17px 18px;
	border: 0;
	border-radius: 14px;
	background: none;
	color: var(--dim);
	font-size: clamp(1.125rem, 0.95rem + 0.6vw, 1.4rem);
	font-stretch: var(--semi);
	font-weight: 700;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
	transition: color 0.35s var(--ease);
}

.cx-tab > span {
	transition: transform 0.5s var(--ease-out);
}

.cx-tab:hover {
	color: var(--frost);
}

.cx-tab:hover > span {
	transform: translateX(4px);
}

.cx-tab[aria-selected="true"] {
	color: var(--frost);
}

.cx-tab__px {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 2px;
	background: var(--cyan);
	box-shadow: 0 0 12px rgba(0, 210, 252, 0.85);
	opacity: 0;
	transform: scale(0.3) rotate(45deg);
	transition: opacity 0.35s var(--ease), transform 0.6s var(--ease-spring);
}

.cx-tab[aria-selected="true"] .cx-tab__px {
	opacity: 1;
	transform: none;
}

.cx-tab:focus-visible {
	outline-offset: -2px;
}

.cx-panel {
	overflow: hidden;
	padding: clamp(28px, 4vw, 52px);
}

.cx-panel__scan {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 45%;
	background: linear-gradient(180deg, rgba(0, 210, 252, 0), rgba(0, 210, 252, 0.1), rgba(0, 210, 252, 0));
	transform: translateY(-110%);
	pointer-events: none;
}

.cx-panel__icon {
	width: clamp(84px, 9vw, 112px);
	height: clamp(84px, 9vw, 112px);
	margin-bottom: 28px;
	filter: drop-shadow(0 0 14px rgba(0, 210, 252, 0.35));
}

.cx-panel h3 {
	margin: 0 0 14px;
	font-size: var(--text-2xl);
	font-stretch: var(--wide);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.01em;
}

.cx-panel > p {
	max-width: 34rem;
	margin: 0;
	color: var(--mist);
	font-size: var(--text-lg);
	line-height: 1.5;
}

.cx-panel ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 28px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.cx-panel li {
	position: relative;
	padding: 14px 0 14px 20px;
	border-top: 1px solid var(--line);
}

.cx-panel li::before {
	content: "";
	position: absolute;
	top: 28px;
	left: 0;
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-radius: 1.5px;
	background: var(--cyan);
	box-shadow: 0 0 8px rgba(0, 210, 252, 0.8);
}

.cx-px {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.cx-px .c {
	fill: var(--cyan);
}

.cx-px .b {
	fill: var(--blue-bright);
}

.cx-px rect {
	transform-box: fill-box;
	transform-origin: center;
}

/* Choosing a service: light scans the panel and the icon assembles from pixels. */
@media (prefers-reduced-motion: no-preference) {
	.js .cx-panel {
		animation: cx-panel-in 0.6s var(--ease-out) both;
	}

	.js .cx-panel:not([hidden]) .cx-panel__scan {
		animation: cx-scan 1.3s var(--ease) 0.05s both;
	}

	.js .cx-panel .cx-px rect {
		animation: cx-px-in 0.5s var(--ease-out) both;
		animation-delay: calc(var(--d, 0) * 1ms);
	}

	.js .cx-panel li {
		animation: cx-rise 0.7s var(--ease-out) both;
		animation-delay: calc(0.18s + var(--li, 0) * 70ms);
	}
}

@keyframes cx-panel-in {
	from {
		opacity: 0;
		transform: translate3d(0, 10px, 0);
	}
}

@keyframes cx-scan {
	from {
		transform: translateY(-110%);
	}

	to {
		transform: translateY(260%);
	}
}

@keyframes cx-px-in {
	from {
		opacity: 0;
		transform: scale(0.2);
	}
}

@keyframes cx-rise {
	from {
		opacity: 0;
		transform: translate3d(0, 12px, 0);
	}
}

@media (max-width: 900px) {
	.cx-services__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.cx-tabs {
		display: none;
	}

	.cx-panels {
		display: grid;
		gap: 16px;
	}

	.cx-panel[hidden] {
		display: block;
	}
}

@media (max-width: 560px) {
	.cx-panel ul {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* 12. Process --------------------------------------------------------------- */

.cx-steps {
	--gap: clamp(16px, 2.2vw, 28px);
	position: relative;
}

.cx-steps__list {
	display: grid;
	grid-template-columns: repeat(var(--count, 4), minmax(0, 1fr));
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* A beam from the first node to the last; it fills as you scroll. */
.cx-steps__rail {
	position: absolute;
	top: 6px;
	right: calc((100% - (var(--count, 4) - 1) * var(--gap)) / var(--count, 4) - 7px);
	left: 7px;
	height: 2px;
	border-radius: 2px;
	background: rgba(140, 190, 255, 0.18);
}

.cx-steps__rail span {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--grad);
	box-shadow: 0 0 12px rgba(0, 210, 252, 0.6);
	transform: scaleX(var(--progress, 0));
	transform-origin: left center;
}

.cx-steps__head {
	position: absolute;
	top: 50%;
	left: calc(var(--progress, 0) * 100%);
	width: 10px;
	height: 10px;
	border-radius: 2px;
	background: #e9fbff;
	box-shadow: 0 0 10px var(--cyan), 0 0 26px var(--cyan);
	opacity: calc(var(--progress, 0) * 20);
	transform: translate(-50%, -50%) rotate(45deg);
}

.cx-step {
	position: relative;
	padding-top: 34px;
}

.cx-step::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(140, 190, 255, 0.35);
	border-radius: 3px;
	background: var(--abyss);
	transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.cx-step.is-active::before {
	border-color: var(--cyan);
	background: var(--cyan);
	box-shadow: 0 0 0 6px rgba(0, 210, 252, 0.12), 0 0 20px rgba(0, 210, 252, 0.7);
}

.cx-step__card {
	height: 100%;
	padding: 26px 24px 28px;
}

.cx-step__num {
	display: block;
	margin-bottom: 12px;
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: var(--text-sm);
	font-stretch: var(--semi);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.cx-step h3 {
	margin: 0 0 12px;
	font-size: var(--text-lg);
	font-stretch: var(--wide);
	font-weight: 800;
	line-height: 1.2;
}

.cx-step p {
	margin: 0;
	color: var(--mist);
	font-size: 1rem;
}

@media (max-width: 760px) {
	.cx-steps__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

	.cx-steps__rail {
		top: 7px;
		right: auto;
		bottom: 0;
		left: 6px;
		width: 2px;
		height: auto;
	}

	.cx-steps__rail span {
		transform: scaleY(var(--progress, 0));
		transform-origin: center top;
	}

	.cx-steps__head {
		top: calc(var(--progress, 0) * 100%);
		left: 50%;
	}

	.cx-step {
		padding: 0 0 0 36px;
	}
}

/* 13. Technologies ---------------------------------------------------------- */

.cx-tech__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 26px;
	margin-bottom: 30px;
}

.cx-tech__key {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--mist);
	font-size: var(--text-sm);
	font-weight: 600;
}

.cx-tech__key i {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--c);
	box-shadow: 0 0 10px var(--c);
}

.cx-tech__rows {
	display: grid;
	gap: 14px;
	-webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0), #000 10%, #000 90%, rgba(0, 0, 0, 0));
	mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0), #000 10%, #000 90%, rgba(0, 0, 0, 0));
}

.cx-marquee {
	overflow: hidden;
}

.cx-marquee__track {
	--dur: 60s;
}

.cx-marquee--reverse .cx-marquee__track {
	--dur: 72s;
	animation-direction: reverse;
}

.cx-marquee__group {
	display: flex;
	flex: none;
	gap: 14px;
	padding: 6px 14px 6px 0;
}

.cx-chip {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 14px 24px;
	border-radius: 999px;
	background: linear-gradient(160deg, rgba(22, 48, 108, 0.5), rgba(8, 20, 52, 0.45));
	box-shadow: inset 0 0 0 1px rgba(140, 190, 255, 0.16);
	color: var(--frost);
	font-stretch: var(--semi);
	font-weight: 600;
	white-space: nowrap;
	transition: box-shadow 0.35s var(--ease);
}

.cx-chip i {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--c);
	box-shadow: 0 0 10px var(--c);
}

.cx-chip:hover {
	box-shadow: inset 0 0 0 1px var(--c), 0 0 26px -8px var(--c);
}

/* 14. Contact --------------------------------------------------------------- */

.cx-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: start;
	gap: clamp(24px, 4vw, 56px);
}

.cx-details {
	display: grid;
	gap: 14px;
}

.cx-detail {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 20px 22px;
}

.cx-detail__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(0, 210, 252, 0.2), rgba(47, 118, 255, 0.12));
	box-shadow: inset 0 0 0 1px rgba(0, 210, 252, 0.32), 0 0 26px -8px rgba(0, 210, 252, 0.65);
	color: var(--cyan);
}

.cx-detail__icon svg {
	width: 22px;
	height: 22px;
}

.cx-detail__body {
	min-width: 0;
}

.cx-detail__label {
	display: block;
	margin-bottom: 4px;
	color: var(--dim);
	font-size: 0.75rem;
	font-stretch: var(--narrow);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.cx-detail__value {
	display: block;
	width: fit-content;
	max-width: 100%;
	color: var(--frost);
	font-size: var(--text-lg);
	font-stretch: var(--semi);
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	overflow-wrap: break-word;
	transition: color 0.25s var(--ease);
}

a.cx-detail__value:hover {
	color: var(--cyan);
}

.cx-detail__value + .cx-detail__value {
	margin-top: 2px;
}

.cx-detail__more {
	display: inline-block;
	margin-top: 8px;
	font-size: var(--text-sm);
}

.cx-form {
	padding: clamp(24px, 4vw, 44px);
}

.cx-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.cx-field {
	position: relative;
}

.cx-field--full {
	grid-column: 1 / -1;
}

.cx-input {
	width: 100%;
	min-height: 60px;
	padding: 26px 18px 9px;
	border: 1px solid rgba(140, 190, 255, 0.2);
	border-radius: 14px;
	background: rgba(3, 10, 28, 0.55);
	color: var(--frost);
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
	-webkit-appearance: none;
	appearance: none;
}

.cx-input:hover {
	border-color: rgba(150, 195, 255, 0.4);
}

.cx-input:focus {
	border-color: rgba(0, 210, 252, 0.75);
	outline: none;
	background: rgba(5, 16, 42, 0.75);
	box-shadow: 0 0 0 4px rgba(0, 210, 252, 0.12), 0 0 30px -8px rgba(0, 210, 252, 0.55);
}

/* Floating labels */
.cx-field label {
	position: absolute;
	top: 19px;
	left: 19px;
	right: 19px;
	overflow: hidden;
	color: var(--dim);
	font-size: 1rem;
	white-space: nowrap;
	text-overflow: ellipsis;
	pointer-events: none;
	transform-origin: left top;
	transition: transform 0.4s var(--ease-out), color 0.3s var(--ease);
}

.cx-field label span {
	color: var(--dim);
}

.cx-input:focus + label,
.cx-input:not(:placeholder-shown) + label,
.cx-field--select label {
	transform: translate3d(0, -10px, 0) scale(0.76);
}

.cx-input:focus + label {
	color: var(--cyan);
}

textarea.cx-input {
	min-height: 160px;
	padding-top: 30px;
	resize: vertical;
}

select.cx-input {
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23a0b2d6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-position: right 18px center;
	background-repeat: no-repeat;
	background-size: 12px 8px;
}

select.cx-input option {
	background: var(--deep);
	color: var(--frost);
}

.cx-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cx-form__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	margin-top: 22px;
}

.cx-form__status {
	margin: 0;
	color: var(--mist);
	font-size: var(--text-sm);
}

.cx-form__status.is-success {
	color: var(--ok);
}

.cx-form__status.is-error {
	color: var(--danger);
}

.cx-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: cx-spin 0.8s linear infinite;
}

.cx-form.is-loading .cx-spinner {
	display: inline-block;
}

.cx-form.is-loading .cx-btn--primary::before {
	display: none;
}

@keyframes cx-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 900px) {
	.cx-contact__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {
	.cx-form__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.cx-detail {
		gap: 14px;
		padding: 18px;
	}

	.cx-detail__icon {
		width: 42px;
		height: 42px;
		border-radius: 12px;
	}

	.cx-detail__value {
		font-size: 1.0625rem;
	}
}

/* 15. Footer ---------------------------------------------------------------- */

.cx-footer {
	position: relative;
	overflow: hidden;
	padding: clamp(64px, 8vw, 100px) 0 calc(28px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--line);
	background: linear-gradient(180deg, rgba(3, 10, 28, 0), rgba(3, 10, 28, 0.6));
}

.cx-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr));
	gap: 40px;
}

.cx-brand--footer .cx-brand__lockup {
	display: block;
	width: 190px;
	height: auto;
}

.cx-brand--footer .cx-brand__custom {
	max-height: 90px;
}

.cx-footer__about p {
	max-width: 22rem;
	margin: 24px 0 0;
	color: var(--mist);
}

.cx-footer h2 {
	margin: 0 0 16px;
	font-size: var(--text-sm);
	font-stretch: var(--semi);
	font-weight: 600;
}

.cx-footer__list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--mist);
	font-size: var(--text-sm);
}

.cx-footer a {
	color: var(--mist);
	text-decoration: none;
	transition: color 0.25s;
}

.cx-footer a:hover {
	color: var(--cyan);
}

.cx-footer__address {
	line-height: 1.5;
}

.cx-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.cx-social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	color: var(--frost);
	transition: border-color 0.3s, box-shadow 0.3s;
}

.cx-social a:hover {
	border-color: var(--cyan);
	box-shadow: 0 0 20px -6px var(--cyan);
}

.cx-social svg {
	width: 18px;
	height: 18px;
}

/* The wordmark set huge, fading into the floor */
.cx-footer__mega {
	margin: clamp(40px, 6vw, 72px) 0 0;
	overflow: hidden;
	background: linear-gradient(180deg, rgba(130, 180, 255, 0.4), rgba(0, 210, 252, 0.08) 70%, rgba(0, 210, 252, 0));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: clamp(3rem, 12.5vw, 11.5rem);
	font-stretch: var(--wide);
	font-weight: 800;
	line-height: 0.85;
	letter-spacing: -0.03em;
	text-align: center;
	white-space: nowrap;
	-webkit-user-select: none;
	user-select: none;
}

.cx-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	color: var(--dim);
	font-size: 0.875rem;
}

.cx-footer__bottom p {
	margin: 0;
}

@media (max-width: 900px) {
	.cx-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cx-footer__about {
		grid-column: 1 / -1;
	}
}

@media (max-width: 520px) {
	.cx-footer__top {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* 16. Posts, pages, comments ------------------------------------------------ */

.cx-page-head {
	padding: calc(var(--header-h) + var(--header-top) + env(safe-area-inset-top, 0px) + clamp(48px, 8vw, 96px)) 0 clamp(32px, 5vw, 56px);
	border-bottom: 1px solid var(--line);
}

.cx-page-head h1 {
	max-width: 22ch;
	font-size: var(--text-3xl);
	font-stretch: var(--wide);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.015em;
}

.cx-page-head__meta {
	margin: 0 0 16px;
	color: var(--mist);
	font-size: var(--text-sm);
}

.cx-page-head__desc {
	max-width: 40rem;
	margin-top: 16px;
	color: var(--mist);
}

.cx-page-body {
	padding-block: clamp(40px, 6vw, 72px) clamp(80px, 10vw, 128px);
}

.cx-featured {
	max-width: 1040px;
	margin: 0 auto 48px;
}

.cx-featured img {
	display: block;
	width: 100%;
	border-radius: var(--r-l);
}

.cx-prose,
.cx-page-body > .cx-tags,
.cx-page-body > .post-navigation,
.cx-page-body > .cx-comments {
	max-width: 720px;
	margin-inline: auto;
}

.cx-prose {
	color: #cfdaf0;
	font-size: 1.125rem;
	line-height: 1.75;
}

.cx-prose h2,
.cx-prose h3,
.cx-prose h4 {
	margin: 2em 0 0.6em;
	color: var(--frost);
	font-stretch: var(--semi);
	line-height: 1.25;
}

.cx-prose h2 {
	font-size: var(--text-xl);
}

.cx-prose h3 {
	font-size: var(--text-lg);
}

.cx-prose h4 {
	font-size: 1.125rem;
}

.cx-prose a {
	color: var(--cyan);
	text-underline-offset: 3px;
}

.cx-prose img {
	border-radius: var(--r-m);
}

.cx-prose figure {
	margin: 2em 0;
}

.cx-prose figcaption {
	margin-top: 8px;
	color: var(--dim);
	font-size: var(--text-sm);
}

.cx-prose blockquote {
	margin: 2em 0;
	padding: 4px 0 4px 24px;
	border-left: 3px solid var(--cyan);
	color: var(--frost);
	font-size: 1.25rem;
}

.cx-prose ul,
.cx-prose ol {
	padding-left: 1.4em;
}

.cx-prose li + li {
	margin-top: 0.4em;
}

.cx-prose code {
	padding: 0.15em 0.4em;
	border-radius: var(--r-s);
	background: rgba(47, 118, 255, 0.14);
	font-size: 0.9em;
}

.cx-prose pre {
	overflow-x: auto;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: var(--r-m);
	background: var(--deep);
	font-size: 0.9375rem;
}

.cx-prose pre code {
	padding: 0;
	background: none;
}

.cx-prose table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.cx-prose th,
.cx-prose td {
	padding: 10px 14px;
	border: 1px solid var(--line);
	text-align: left;
}

.cx-prose hr {
	margin: 2.5em 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.cx-prose .alignwide,
.cx-prose .alignfull {
	position: relative;
	left: 50%;
	max-width: none;
	transform: translateX(-50%);
}

.cx-prose .alignwide {
	width: min(1040px, 100vw - 2 * var(--gutter));
}

.cx-prose .alignfull {
	width: 100vw;
}

.cx-page-links {
	margin-top: 32px;
}

.cx-posts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 48px 32px;
}

.cx-post {
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.cx-post__thumb {
	display: block;
	margin-bottom: 18px;
	overflow: hidden;
	border-radius: var(--r-m);
}

.cx-post__thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 0.8s var(--ease-out);
}

.cx-post__thumb:hover img {
	transform: scale(1.04);
}

.cx-post__meta {
	margin: 0 0 8px;
	color: var(--dim);
	font-size: var(--text-sm);
}

.cx-post__title {
	margin: 0 0 10px;
	font-size: var(--text-lg);
	font-stretch: var(--semi);
	line-height: 1.3;
}

.cx-post__title a {
	text-decoration: none;
	transition: color 0.25s;
}

.cx-post__title a:hover {
	color: var(--cyan);
}

.cx-post__excerpt {
	margin: 0;
	color: var(--mist);
}

.cx-empty p {
	color: var(--mist);
}

.pagination,
.post-navigation {
	margin-top: 64px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	color: var(--frost);
	text-decoration: none;
}

.page-numbers.current,
a.page-numbers:hover {
	border-color: var(--cyan);
	color: var(--cyan);
}

.post-navigation .nav-links {
	justify-content: space-between;
	gap: 24px;
}

.post-navigation a {
	display: block;
	max-width: 22rem;
	font-weight: 600;
	text-decoration: none;
}

.post-navigation a:hover {
	color: var(--cyan);
}

.post-navigation span {
	display: block;
	margin-bottom: 4px;
	color: var(--dim);
	font-size: var(--text-sm);
	font-weight: 400;
}

.post-navigation .nav-next {
	margin-left: auto;
	text-align: right;
}

.cx-tags {
	margin-top: 40px;
}

.cx-tags a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 4px 12px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	font-size: var(--text-sm);
	text-decoration: none;
}

.search-form {
	display: flex;
	gap: 10px;
	max-width: 480px;
}

.search-form label {
	flex: 1;
}

.search-field {
	width: 100%;
	min-height: 50px;
	padding: 10px 18px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: rgba(3, 10, 28, 0.6);
	color: var(--frost);
}

.search-field:focus {
	border-color: var(--cyan);
	outline: none;
	box-shadow: 0 0 0 4px rgba(0, 210, 252, 0.15);
}

.search-submit {
	min-height: 50px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--blue);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.search-submit:hover {
	background: var(--blue-bright);
}

.cx-404 {
	display: flex;
	align-items: center;
	min-height: 80vh;
	padding: calc(var(--header-h) + var(--header-top) + 60px) 0 100px;
}

.cx-404__code {
	margin: 0 0 8px;
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: clamp(5rem, 18vw, 11rem);
	font-stretch: var(--wide);
	font-weight: 800;
	line-height: 0.9;
	letter-spacing: -0.03em;
	filter: drop-shadow(0 0 30px rgba(0, 210, 252, 0.35));
}

.cx-404 h1 {
	margin-bottom: 16px;
	font-size: var(--text-3xl);
	font-stretch: var(--wide);
	font-weight: 800;
}

.cx-404 p {
	max-width: 36rem;
	color: var(--mist);
}

.cx-404__actions {
	margin: 28px 0 36px;
}

.cx-comments {
	margin-top: 64px;
	padding-top: 40px;
	border-top: 1px solid var(--line);
}

.cx-comments h2 {
	margin-bottom: 24px;
	font-size: var(--text-xl);
	font-stretch: var(--semi);
}

.cx-comment-list,
.cx-comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cx-comment-list .children {
	padding-left: 28px;
	border-left: 1px solid var(--line);
}

.cx-comment-list .comment-body {
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}

.cx-comment-list .avatar {
	float: left;
	margin-right: 14px;
	border-radius: 50%;
}

.comment-meta {
	color: var(--mist);
	font-size: var(--text-sm);
}

.comment-meta a {
	color: inherit;
	text-decoration: none;
}

.comment-reply-link {
	color: var(--cyan);
	font-size: var(--text-sm);
}

.comment-form p {
	margin-bottom: 18px;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: var(--text-sm);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-m);
	background: rgba(3, 10, 28, 0.6);
	color: var(--frost);
}

/* 17. Floating buttons ------------------------------------------------------ */

.cx-top {
	position: fixed;
	right: calc(18px + env(safe-area-inset-right, 0px));
	bottom: calc(18px + env(safe-area-inset-bottom, 0px));
	z-index: 90;
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(8, 23, 58, 0.8);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	color: var(--frost);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translate3d(0, 14px, 0) scale(0.9);
	transition: opacity 0.4s var(--ease), transform 0.6s var(--ease-out), visibility 0.4s;
}

.cx-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.cx-top__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.cx-top__ring circle {
	fill: none;
	stroke: var(--cyan);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-dasharray: 144.5;
	stroke-dashoffset: calc(144.5 * (1 - var(--p, 0)));
	filter: drop-shadow(0 0 3px rgba(0, 210, 252, 0.9));
}

.cx-top .cx-icon {
	position: relative;
	transition: transform 0.4s var(--ease-out);
}

.cx-top:hover .cx-icon {
	transform: translateY(-3px);
}

.cx-wa {
	position: fixed;
	right: calc(20px + env(safe-area-inset-right, 0px));
	bottom: calc(80px + env(safe-area-inset-bottom, 0px));
	z-index: 90;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #1fa855;
	color: #fff;
	box-shadow: 0 10px 26px -8px rgba(31, 168, 85, 0.8);
	transition: transform 0.4s var(--ease-spring);
}

.cx-wa:hover {
	transform: translateY(-3px) scale(1.05);
}

.cx-top svg.cx-icon,
.cx-wa svg {
	width: 20px;
	height: 20px;
}

/* 18. Reveal on scroll (class added by the script, so nothing hides without it) */

.cx-motion [data-reveal]:not([data-split]) {
	opacity: 0;
	filter: blur(10px);
	transform: translate3d(0, 40px, 0) scale(0.985);
	transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out), filter 1.1s var(--ease-out);
	transition-delay: var(--d, 0s);
}

.cx-motion [data-reveal].is-in:not([data-split]) {
	opacity: 1;
	filter: none;
	transform: none;
}

.cx-w {
	display: inline-block;
	overflow: hidden;
	padding-bottom: 0.12em;
	margin-bottom: -0.12em;
	vertical-align: top;
}

.cx-w > span {
	display: inline-block;
}

.cx-motion [data-split] .cx-w > span {
	opacity: 0;
	filter: blur(8px);
	transform: translate3d(0, 100%, 0);
	transition: transform 1s var(--ease-out), opacity 0.9s var(--ease-out), filter 0.9s var(--ease-out);
	transition-delay: calc(var(--d, 0s) + var(--wi, 0) * 55ms);
}

.cx-motion [data-split].is-in .cx-w > span {
	opacity: 1;
	filter: none;
	transform: none;
}

/* 19. Small screens and reduced motion -------------------------------------- */

@media (max-width: 760px) {
	.cx-glass {
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
	}

	.cx-motion [data-reveal]:not([data-split]),
	.cx-motion [data-split] .cx-w > span {
		filter: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

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