:root {
	--bg: #030714;
	--bg-soft: #07111f;
	--ink: #f4f8ff;
	--muted: #9fb1c8;
	--muted-strong: #c5d4e7;
	--line: rgba(155, 185, 230, 0.18);
	--glass: rgba(9, 20, 37, 0.64);
	--glass-strong: rgba(13, 30, 55, 0.78);
	--blue: #39a7ff;
	--blue-strong: #0f7dff;
	--cyan: #66f3ff;
	--radius: 8px;
	--shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
	--container: min(1180px, calc(100vw - 40px));
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background:
		radial-gradient(circle at 18% 12%, rgba(57, 167, 255, 0.18), transparent 32rem),
		radial-gradient(circle at 80% 8%, rgba(102, 243, 255, 0.1), transparent 28rem),
		linear-gradient(180deg, #020510 0%, #050a16 45%, #030714 100%);
	color: var(--ink);
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.6;
	overflow-x: hidden;
}

body.nav-open {
	overflow: hidden;
}

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

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

p {
	margin: 0;
	color: var(--muted);
}

h1,
h2,
h3 {
	margin: 0;
	line-height: 0.95;
	letter-spacing: 0;
}

h1 {
	font-size: clamp(2.625rem, 6.75vw, 6.45rem);
	font-weight: 900;
}

h2 {
	font-size: clamp(1.7625rem, 4.2vw, 4.05rem);
	font-weight: 850;
}

h3 {
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	font-weight: 750;
}

.screen-reader-text,
.skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	top: 16px;
	left: 16px;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 16px;
	clip: auto;
	z-index: 1000;
	background: var(--ink);
	color: var(--bg);
	border-radius: var(--radius);
}

.container {
	width: var(--container);
	margin-inline: auto;
}

.site-shell {
	position: relative;
	min-height: 100vh;
	isolation: isolate;
}

.webgl-bg {
	position: fixed;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	opacity: 0.55;
	pointer-events: none;
}

.site-shell::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
	background-size: 72px 72px;
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 85%);
	pointer-events: none;
}

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	padding: 18px 0;
	transition: background 220ms ease, border-color 220ms ease, padding 220ms ease;
	border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
	padding: 12px 0;
	background: rgba(3, 7, 20, 0.72);
	backdrop-filter: blur(20px);
	border-color: var(--line);
}

.site-header__inner,
.primary-nav,
.primary-nav__list,
.site-logo__text,
.hero__actions,
.site-footer__meta,
.footer-nav__list {
	display: flex;
	align-items: center;
}

.site-header__inner {
	justify-content: space-between;
	gap: 24px;
}

.site-logo__text {
	gap: 10px;
	font-weight: 800;
	font-size: 1rem;
}

.site-logo__mark {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--blue), var(--cyan));
	color: #001428;
	box-shadow: 0 0 30px rgba(57, 167, 255, 0.5);
}

.custom-logo {
	max-width: 180px;
	height: auto;
}

.primary-nav {
	gap: 18px;
}

.primary-nav__list,
.footer-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 22px;
}

.primary-nav a,
.footer-nav a {
	color: var(--muted-strong);
	font-size: 0.92rem;
	font-weight: 600;
}

.primary-nav a:hover,
.footer-nav a:hover {
	color: var(--ink);
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.05);
	color: var(--ink);
}

.nav-toggle__line,
.nav-toggle__line::before,
.nav-toggle__line::after {
	display: block;
	width: 18px;
	height: 2px;
	margin-inline: auto;
	background: currentColor;
	border-radius: 4px;
	transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle__line::before,
.nav-toggle__line::after {
	content: "";
	position: relative;
}

.nav-toggle__line::before {
	top: -7px;
}

.nav-toggle__line::after {
	top: 5px;
}

.nav-open .nav-toggle__line {
	transform: rotate(45deg);
}

.nav-open .nav-toggle__line::before {
	transform: translateY(7px) rotate(90deg);
}

.nav-open .nav-toggle__line::after {
	opacity: 0;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 22px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	font-weight: 800;
	color: var(--ink);
	transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
	transform: translateY(-2px);
	border-color: rgba(102, 243, 255, 0.54);
}

.button--primary {
	background: linear-gradient(135deg, var(--blue-strong), var(--cyan));
	color: #001428;
	box-shadow: 0 20px 58px rgba(15, 125, 255, 0.28);
	border-color: transparent;
}

.button--ghost,
.button--glass {
	background: rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(14px);
}

.button--small {
	min-height: 42px;
	padding-inline: 16px;
	font-size: 0.88rem;
}

.section-pad {
	padding: clamp(86px, 12vw, 156px) 0;
}

.section-pad--topless {
	padding-top: 0;
}

.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding-top: 140px;
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.58fr);
	gap: clamp(36px, 7vw, 86px);
	align-items: center;
}

.hero__title {
	max-width: 10.6ch;
}

.hero__text {
	max-width: 690px;
	margin-top: 28px;
	font-size: clamp(1.08rem, 1.7vw, 1.38rem);
	color: var(--muted-strong);
}

.hero__actions {
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}

.eyebrow {
	margin-bottom: 16px;
	color: var(--cyan);
	font-size: 0.78rem;
	font-weight: 850;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.glass-card {
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
		var(--glass);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	backdrop-filter: blur(22px);
}

.hero-panel {
	padding: 24px;
	min-height: 500px;
	position: relative;
	overflow: hidden;
}

.hero-panel::before {
	content: "";
	position: absolute;
	inset: -30%;
	background: conic-gradient(from 180deg, transparent, rgba(57, 167, 255, 0.4), transparent, rgba(102, 243, 255, 0.26), transparent);
	animation: rotateGlow 12s linear infinite;
	opacity: 0.45;
}

.hero-panel > * {
	position: relative;
	z-index: 1;
}

.hero-panel__top {
	display: flex;
	gap: 8px;
	margin-bottom: 58px;
}

.hero-panel__top span {
	width: 10px;
	height: 10px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.35);
}

.hero-panel__metric {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 20px;
	padding-bottom: 26px;
	border-bottom: 1px solid var(--line);
}

.hero-panel__metric span {
	color: var(--muted);
	font-weight: 700;
}

.hero-panel__metric strong {
	font-size: clamp(4rem, 8vw, 6rem);
	line-height: 0.82;
	background: linear-gradient(135deg, var(--ink), var(--cyan));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-panel__flow {
	display: grid;
	gap: 12px;
	margin: 30px 0;
}

.hero-panel__flow div {
	padding: 14px 16px;
	border-radius: var(--radius);
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--muted-strong);
	font-weight: 700;
}

.hero-panel__signal {
	display: grid;
	grid-template-columns: 10px 1fr;
	gap: 14px;
	align-items: start;
}

.hero-panel__signal span {
	width: 10px;
	height: 10px;
	margin-top: 8px;
	border-radius: 99px;
	background: var(--cyan);
	box-shadow: 0 0 30px var(--cyan);
}

.section-heading {
	max-width: 850px;
	margin-bottom: 42px;
}

.section-heading h2 {
	color: var(--ink);
}

.section-band {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
	border-block: 1px solid rgba(255, 255, 255, 0.05);
}

.card-grid {
	display: grid;
	gap: 18px;
}

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

.service-card,
.work-card,
.post-card,
.empty-state {
	padding: 26px;
}

.service-card {
	min-height: 265px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.service-card h3,
.work-card h3,
.post-card h2 {
	margin-bottom: 16px;
}

.card-index {
	color: rgba(102, 243, 255, 0.72);
	font-weight: 900;
}

.split-layout {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: clamp(34px, 6vw, 84px);
	align-items: start;
}

.section-heading--sticky {
	position: sticky;
	top: 110px;
}

.capability-list {
	display: grid;
	gap: 14px;
}

.capability-item {
	display: grid;
	grid-template-columns: 18px 1fr;
	gap: 18px;
	align-items: center;
	padding: 26px 0;
	border-bottom: 1px solid var(--line);
}

.capability-item span {
	width: 12px;
	height: 12px;
	border-radius: 99px;
	background: linear-gradient(135deg, var(--blue), var(--cyan));
	box-shadow: 0 0 28px rgba(102, 243, 255, 0.55);
}

.process-track {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: rgba(255, 255, 255, 0.035);
}

.process-step {
	min-height: 220px;
	padding: 24px;
	border-right: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.process-step:last-child {
	border-right: 0;
}

.process-step span {
	color: var(--cyan);
	font-weight: 900;
}

.card-grid--work,
.post-grid {
	grid-template-columns: repeat(3, 1fr);
}

.work-card__visual {
	height: 180px;
	margin: -10px -10px 24px;
	border-radius: var(--radius);
	background:
		linear-gradient(135deg, rgba(57, 167, 255, 0.1), rgba(102, 243, 255, 0.18)),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 44px),
		radial-gradient(circle at 72% 34%, rgba(102, 243, 255, 0.6), transparent 4px),
		radial-gradient(circle at 28% 68%, rgba(57, 167, 255, 0.7), transparent 5px),
		#071427;
}

.cta__inner {
	padding: clamp(34px, 7vw, 74px);
	text-align: center;
	max-width: 1020px;
}

.cta h2 {
	max-width: 900px;
	margin-inline: auto;
}

.cta p:not(.eyebrow) {
	max-width: 650px;
	margin: 24px auto 32px;
	color: var(--muted-strong);
	font-size: 1.08rem;
}

.site-footer {
	padding: 48px 0;
	border-top: 1px solid var(--line);
	background: rgba(0, 0, 0, 0.18);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 1.2fr auto;
	gap: 32px;
}

.site-footer__brand {
	margin-bottom: 10px;
	font-weight: 900;
	font-size: 1.2rem;
}

.site-footer__meta {
	grid-column: 1 / -1;
	justify-content: space-between;
	gap: 20px;
	padding-top: 26px;
	border-top: 1px solid var(--line);
	color: var(--muted);
}

.page-hero {
	padding-top: 160px;
	padding-bottom: 60px;
}

.page-hero h1 {
	max-width: 12ch;
}

.content-area {
	padding: clamp(24px, 5vw, 54px);
	margin-bottom: clamp(80px, 10vw, 140px);
}

.entry-content {
	color: var(--muted-strong);
	font-size: 1.05rem;
}

.entry-content :where(h1, h2, h3, h4, h5, h6, th, strong, b) {
	color: var(--ink);
}

.entry-content :where(p, li, td, dd, figcaption, blockquote, label, small, span) {
	color: var(--muted-strong);
}

.entry-content :where(table) {
	width: 100%;
	border-collapse: collapse;
	color: var(--muted-strong);
}

.entry-content :where(th, td) {
	padding: 0.75rem;
	border-bottom: 1px solid rgba(197, 212, 231, 0.48);
	text-align: left;
}

.entry-content :where(hr) {
	border: 0;
	border-top: 1px solid rgba(197, 212, 231, 0.62);
}

.entry-content :where([style*="color"]) {
	color: inherit !important;
}

.entry-content :where(h1, h2, h3, h4, h5, h6, th, strong, b)[style*="color"] {
	color: var(--ink) !important;
}

.entry-content > * + * {
	margin-top: 1.2em;
}

.entry-content a {
	color: var(--cyan);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.featured-media {
	margin: 0 0 32px;
	overflow: hidden;
	border-radius: var(--radius);
}

.post-grid {
	display: grid;
	gap: 18px;
}

.post-card__image {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--radius);
	margin-bottom: 22px;
}

.post-card__image--fallback {
	background:
		linear-gradient(135deg, rgba(57, 167, 255, 0.14), rgba(102, 243, 255, 0.1)),
		#071427;
}

.post-card__image--fallback span {
	display: block;
	width: 100%;
	height: 100%;
	background-image: linear-gradient(90deg, transparent 0 45%, rgba(102, 243, 255, 0.5) 45% 46%, transparent 46%);
}

.post-card h2 {
	font-size: 1.35rem;
	line-height: 1.1;
}

.pagination {
	grid-column: 1 / -1;
}

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

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--muted-strong);
}

.page-numbers.current {
	background: var(--blue);
	color: #001428;
}

.reveal {
	opacity: 1;
	transform: none;
}

.js .reveal {
	opacity: 0;
	transform: translateY(28px);
}

@keyframes rotateGlow {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 980px) {
	.card-grid--services,
	.card-grid--work,
	.post-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hero__grid,
	.split-layout {
		grid-template-columns: 1fr;
	}

	.hero__title {
		max-width: 11ch;
	}

	.hero-panel {
		min-height: 430px;
	}

	.process-track {
		grid-template-columns: 1fr;
	}

	.process-step {
		min-height: 150px;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.process-step:last-child {
		border-bottom: 0;
	}

	.section-heading--sticky {
		position: static;
	}
}

@media (max-width: 760px) {
	:root {
		--container: min(100vw - 28px, 1180px);
	}

	body {
		background-color: var(--bg);
	}

	h1 {
		font-size: clamp(2.25rem, 11.25vw, 3.525rem);
	}

	h2 {
		font-size: clamp(1.6125rem, 8.25vw, 2.5125rem);
	}

	.site-header {
		padding: 12px 0;
	}

	.nav-toggle {
		display: block;
	}

	.primary-nav {
		position: fixed;
		inset: 70px 14px auto;
		display: grid;
		gap: 20px;
		padding: 22px;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		background: rgba(3, 7, 20, 0.94);
		backdrop-filter: blur(22px);
		box-shadow: var(--shadow);
		opacity: 0;
		pointer-events: none;
		transform: translateY(-10px);
		transition: opacity 180ms ease, transform 180ms ease;
	}

	.nav-open .primary-nav {
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0);
	}

	.primary-nav__list {
		display: grid;
		gap: 16px;
	}

	.primary-nav__cta {
		width: 100%;
	}

	.hero {
		padding-top: 110px;
	}

	.hero__actions,
	.site-footer__meta {
		align-items: stretch;
		flex-direction: column;
	}

	.hero__actions .button {
		width: 100%;
	}

	.hero-panel {
		min-height: auto;
	}

	.card-grid--services,
	.card-grid--work,
	.post-grid,
	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.footer-nav__list {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
