/*
 * Grafixyy Global Shell
 *
 * Universal presentation foundation for every
 * Grafixyy public surface carrying:
 *
 * body.grafixyy-site
 *
 * Header / Footer must not require per-page CSS.
 */


/* ========================================
   UNIVERSAL FOUNDATION
   ======================================== */

body.grafixyy-site {
	margin: 0;
	padding: 0;

	width: 100%;
	min-width: 0;
	min-height: 100vh;

	overflow-x: hidden;

	background: #050816;
	color: #f8fafc;

	direction: rtl;

	font-family:
		"Alexandria",
		Arial,
		Tahoma,
		sans-serif;
}


body.grafixyy-site *,
body.grafixyy-site *::before,
body.grafixyy-site *::after {
	box-sizing: border-box;
}


/* Astra remnants. */

body.grafixyy-site #ast-scroll-top,
body.grafixyy-site .ast-scroll-top-icon,
body.grafixyy-site .ast-scroll-to-top-right,
body.grafixyy-site .ast-scroll-to-top-left {
	display: none !important;
}


/* ========================================
   GLOBAL HEADER
   ======================================== */

body.grafixyy-site .grafixyy-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;

	display: block;

	width: 100%;

	margin: 0;
	padding: 0;

	border-bottom:
		1px solid rgba(148, 163, 184, 0.16);

	background:
		rgba(3, 6, 17, 0.94);

	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}


body.grafixyy-site .grafixyy-header-inner {
	display: flex;

	align-items: center;
	justify-content: space-between;

	gap: 24px;

	width:
		min(
			1240px,
			calc(100% - 48px)
		);

	min-width: 0;
	min-height: 92px;

	margin: 0 auto;
	padding: 0;
}


/* ========================================
   BRAND
   ======================================== */

body.grafixyy-site .grafixyy-brand {
	display: inline-flex;

	align-items: center;

	min-width: 0;

	gap: 13px;

	margin: 0;
	padding: 0;

	color: #ffffff;
	text-decoration: none;
}


body.grafixyy-site .grafixyy-brand:visited,
body.grafixyy-site .grafixyy-brand:hover,
body.grafixyy-site .grafixyy-brand:focus {
	color: #ffffff;
	text-decoration: none;
}


body.grafixyy-site .grafixyy-brand-mark {
	display: inline-flex;

	align-items: center;
	justify-content: center;

	width: 48px;
	height: 48px;

	flex: 0 0 48px;

	border-radius: 14px;

	background:
		linear-gradient(
			135deg,
			#8b5cf6,
			#22d3ee
		);

	color: #ffffff;

	font-size: 24px;
	font-weight: 900;
	line-height: 1;

	box-shadow:
		0 10px 32px rgba(139, 92, 246, 0.36);
}


body.grafixyy-site .grafixyy-brand-name {
	margin: 0;

	color: #ffffff;

	font-size: 30px;
	font-weight: 800;
	line-height: 1;

	letter-spacing: -0.5px;

	white-space: nowrap;
}


/* ========================================
   NAVIGATION
   ======================================== */

body.grafixyy-site .grafixyy-nav {
	display: flex;

	align-items: center;

	min-width: 0;

	gap: 10px;

	margin: 0;
	padding: 0;
}


body.grafixyy-site .grafixyy-nav a {
	display: inline-flex;

	align-items: center;
	justify-content: center;

	gap: 7px;

	min-height: 50px;

	padding:
		10px
		18px;

	border-radius: 13px;

	color: #e0e7f1;
	text-decoration: none;

	font-size: 18px;
	font-weight: 700;
	line-height: 1;

	white-space: nowrap;

	transition:
		color 160ms ease,
		background-color 160ms ease,
		transform 160ms ease;
}


body.grafixyy-site .grafixyy-nav a:visited {
	color: #e0e7f1;
}


body.grafixyy-site .grafixyy-nav a:hover {
	background:
		rgba(255, 255, 255, 0.07);

	color: #ffffff;
}


body.grafixyy-site
.grafixyy-nav
.grafixyy-random-link {
	border:
		1px solid rgba(139, 92, 246, 0.34);

	background:
		rgba(139, 92, 246, 0.14);

	color: #f1ebff;
}


body.grafixyy-site
.grafixyy-nav
.grafixyy-random-link:hover {
	transform: translateY(-1px);

	background:
		rgba(139, 92, 246, 0.23);

	color: #ffffff;
}


/* ========================================
   GLOBAL FOOTER
   ======================================== */

body.grafixyy-site .grafixyy-site-footer {
	position: relative;

	display: block;

	width: 100%;
	min-width: 0;

	margin: 0;
	padding: 0;

	overflow: hidden;

	border-top:
		1px solid rgba(148, 163, 184, 0.16);

	background:
		linear-gradient(
			180deg,
			#040715,
			#02040d
		);
}


body.grafixyy-site .grafixyy-site-footer::before {
	content: "";

	position: absolute;

	top: -180px;
	right: -100px;

	width: 420px;
	height: 420px;

	border-radius: 50%;

	background:
		radial-gradient(
			circle,
			rgba(139, 92, 246, 0.09),
			transparent 68%
		);

	pointer-events: none;
}


body.grafixyy-site .grafixyy-footer-inner {
	position: relative;
	z-index: 1;

	width:
		min(
			1180px,
			calc(100% - 48px)
		);

	min-width: 0;

	margin: 0 auto;

	padding:
		64px
		0
		32px;
}


body.grafixyy-site .grafixyy-footer-grid {
	display: grid;

	grid-template-columns:
		minmax(0, 1.5fr)
		minmax(150px, 0.7fr)
		minmax(190px, 0.8fr);

	gap:
		clamp(42px, 6vw, 90px);

	align-items: start;

	width: 100%;
	min-width: 0;
}


body.grafixyy-site .grafixyy-footer-intro,
body.grafixyy-site .grafixyy-footer-coming {
	min-width: 0;
}


body.grafixyy-site .grafixyy-footer-logo {
	display: inline-flex;

	align-items: center;

	gap: 12px;

	color: #ffffff;
	text-decoration: none;

	font-size: 25px;
	font-weight: 800;
	line-height: 1;
}


body.grafixyy-site .grafixyy-footer-logo:visited,
body.grafixyy-site .grafixyy-footer-logo:hover {
	color: #ffffff;
	text-decoration: none;
}


body.grafixyy-site
.grafixyy-footer-logo
.grafixyy-brand-mark {
	width: 42px;
	height: 42px;

	flex-basis: 42px;

	border-radius: 12px;

	font-size: 20px;
}


body.grafixyy-site .grafixyy-footer-intro p {
	max-width: 440px;

	margin:
		20px
		0
		12px;

	color: #c4ccda;

	font-size: 17px;
	font-weight: 500;
	line-height: 1.9;
}


body.grafixyy-site .grafixyy-footer-intro small {
	display: block;

	color: #707a8d;

	font-size: 13px;
	font-weight: 500;
	line-height: 1.8;
}


body.grafixyy-site .grafixyy-footer-nav {
	display: flex;

	min-width: 0;

	flex-direction: column;
	align-items: flex-start;

	gap: 12px;
}


body.grafixyy-site .grafixyy-footer-nav strong {
	display: block;

	margin:
		0
		0
		5px;

	color: #ffffff;

	font-size: 15px;
	font-weight: 750;
}


body.grafixyy-site .grafixyy-footer-nav a {
	display: inline-flex;

	align-items: center;

	gap: 6px;

	width: fit-content;

	margin-inline-start: -10px;

	padding:
		7px
		10px;

	border-radius: 9px;

	color: #c5cddd;

	background:
		rgba(255, 255, 255, 0.025);

	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;

	text-decoration: none;

	transition:
		color 160ms ease,
		background-color 160ms ease,
		transform 160ms ease;
}


body.grafixyy-site .grafixyy-footer-nav a:visited {
	color: #c5cddd;
}


body.grafixyy-site .grafixyy-footer-nav a::after {
	content: "←";

	margin-inline-start: 3px;

	color: #69758a;

	font-size: 12px;
}


body.grafixyy-site .grafixyy-footer-nav a:hover {
	background:
		rgba(255, 255, 255, 0.06);

	color: #ffffff;

	transform: translateX(-2px);
}


body.grafixyy-site .grafixyy-footer-bottom {
	display: flex;

	align-items: center;
	justify-content: space-between;

	gap: 24px;

	width: 100%;
	min-width: 0;

	margin:
		48px
		0
		0;

	padding:
		24px
		0
		0;

	border-top:
		1px solid rgba(148, 163, 184, 0.12);

	color: #626d80;

	font-size: 12px;
	font-weight: 500;
	line-height: 1.7;
}


/* ========================================
   FOCUS
   ======================================== */

body.grafixyy-site
.grafixyy-brand:focus-visible,
body.grafixyy-site
.grafixyy-nav a:focus-visible,
body.grafixyy-site
.grafixyy-footer-logo:focus-visible,
body.grafixyy-site
.grafixyy-footer-nav a:focus-visible {
	outline:
		3px solid #22d3ee;

	outline-offset: 4px;
}


/* ========================================
   TABLET FOOTER
   ======================================== */

@media (max-width: 900px) {

	body.grafixyy-site .grafixyy-footer-grid {
		grid-template-columns:
			minmax(0, 1.4fr)
			minmax(140px, 0.6fr);

		gap:
			40px
			55px;
	}
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 700px) {

	body.grafixyy-site .grafixyy-header-inner {
		width:
			calc(100% - 16px);

		min-height: 76px;

		gap: 4px;
	}


	body.grafixyy-site .grafixyy-brand {
		gap: 9px;

		flex: 0 1 auto;

		min-width: 0;
	}


	body.grafixyy-site .grafixyy-brand-mark {
		width: 40px;
		height: 40px;

		flex:
			0
			0
			40px;

		border-radius: 12px;

		font-size: 20px;
	}


	body.grafixyy-site .grafixyy-brand-name {
		font-size: 22px;
	}


	body.grafixyy-site .grafixyy-nav {
		flex:
			0
			0
			auto;

		gap: 4px;
	}


	body.grafixyy-site .grafixyy-nav a,
	body.grafixyy-site
	.grafixyy-nav
	.grafixyy-random-link {
		display: inline-flex !important;

		min-height: 38px;

		padding:
			7px
			9px;

		border-radius: 9px;

		font-size: 12px;
	}
}


/* ========================================
   MOBILE FOOTER
   ======================================== */

@media (max-width: 600px) {

	body.grafixyy-site .grafixyy-footer-inner {
		width:
			calc(100% - 30px);

		padding:
			32px
			0
			calc(
				22px +
				env(safe-area-inset-bottom)
			);
	}


	body.grafixyy-site .grafixyy-footer-grid {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));

		gap:
			25px
			14px;
	}


	body.grafixyy-site .grafixyy-footer-intro {
		grid-column:
			1 / -1;

		padding-bottom: 20px;

		border-bottom:
			1px solid rgba(148, 163, 184, 0.1);
	}


	body.grafixyy-site .grafixyy-footer-logo {
		font-size: 20px;
	}


	body.grafixyy-site .grafixyy-footer-intro p {
		max-width: none;

		margin:
			14px
			0
			7px;

		font-size: 13px;
		line-height: 1.7;
	}


	body.grafixyy-site .grafixyy-footer-intro small {
		font-size: 10px;
		line-height: 1.6;
	}


	body.grafixyy-site .grafixyy-footer-nav {
		width: 100%;

		gap: 7px;
	}


	body.grafixyy-site .grafixyy-footer-nav strong {
		margin-bottom: 3px;

		font-size: 12px;
	}


	body.grafixyy-site .grafixyy-footer-nav a {
		max-width: 100%;

		margin-inline-start: 0;

		padding:
			5px
			7px;

		font-size: 10px;
		line-height: 1.5;

		white-space: normal;
	}


	body.grafixyy-site .grafixyy-footer-bottom {
		flex-direction: row;

		align-items: center;
		justify-content: space-between;

		gap: 12px;

		margin-top: 26px;

		padding-top: 16px;

		font-size: 9px;
	}
}


/* ========================================
   NARROW MOBILE
   ======================================== */

@media (max-width: 430px) {

	body.grafixyy-site .grafixyy-header-inner {
		width:
			calc(100% - 16px);

		gap: 4px;
	}


	body.grafixyy-site .grafixyy-nav {
		gap: 3px;
	}


	body.grafixyy-site .grafixyy-nav a,
	body.grafixyy-site
	.grafixyy-nav
	.grafixyy-random-link {
		min-height: 36px;

		padding:
			6px
			7px;

		font-size: 11px;
	}
}


/* ========================================
   VERY NARROW MOBILE
   ======================================== */

@media (max-width: 380px) {

	body.grafixyy-site .grafixyy-brand-name {
		display: none;
	}


	body.grafixyy-site .grafixyy-nav a,
	body.grafixyy-site
	.grafixyy-nav
	.grafixyy-random-link {
		padding:
			6px;

		font-size: 10.5px;
	}
}


/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {

	body.grafixyy-site .grafixyy-nav a,
	body.grafixyy-site .grafixyy-footer-nav a {
		transition: none;
	}
}