/**
 * File: assets/css/pages/projects/graphics.css
 * Description: Coded graphics polish for Projects archive and Project case-study pages.
 *
 * MAGIDA PROJECTS MOTION/GRAPHICS PASS 10.1:
 * - Keeps decorative project visuals separate from layout CSS.
 * - Uses CSS-only orbs, scan lines, shine layers and panel glows.
 *
 * MAGIDA PROJECTS FIX PASS 10.1.1:
 * - Keeps .magida-projects-hero__feature-card absolutely positioned from base.css.
 *
 * MAGIDA HUMAN MEDIA PROJECTS PASS 23.5.5:
 * - Keeps the existing shimmer/scan overlays visible above approved flagship screenshots.
 */

.magida-template--projects,
.magida-template--project-case-study {
	position: relative;
	isolation: isolate;
}

.magida-template--projects::after,
.magida-template--project-case-study::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background:
		radial-gradient(
			circle at 18% 22%,
			rgba(88, 101, 242, 0.18),
			transparent 34%
		),
		radial-gradient(
			circle at 82% 14%,
			rgba(172, 92, 255, 0.14),
			transparent 30%
		),
		linear-gradient(
			135deg,
			rgba(255, 255, 255, 0.035) 0 1px,
			transparent 1px 34px
		);
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
}

.magida-projects-hero__visual,
.magida-projects-flagship__media,
.magida-case-hero__summary,
.magida-case-screenshot__frame {
	transform-style: preserve-3d;
}

.magida-projects-flagship__media::before,
.magida-case-screenshot__frame::before,
.magida-case-hero__summary::before {
	content: "";
	position: absolute;
	inset: 1px;
	border-radius: inherit;
	pointer-events: none;
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.14),
		transparent 28%,
		rgba(119, 92, 255, 0.12)
	);
	mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	mask-composite: exclude;
	padding: 1px;
}

.magida-projects-hero__orb,
.magida-projects-hero__flow,
.magida-projects-flagship__sheen,
.magida-projects-flagship__scan,
.magida-case-hero__summary-glow,
.magida-case-screenshot__shine {
	position: absolute;
	pointer-events: none;
}

.magida-projects-hero__orb {
	width: 150px;
	height: 150px;
	border-radius: 999px;
	filter: blur(18px);
	opacity: 0.72;
}

.magida-projects-hero__orb--one {
	right: 4%;
	top: 4%;
	background: rgba(91, 141, 255, 0.32);
}

.magida-projects-hero__orb--two {
	left: 2%;
	bottom: 2%;
	background: rgba(168, 89, 255, 0.28);
}

.magida-projects-hero__flow {
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(124, 226, 255, 0.7),
		rgba(156, 109, 255, 0.65),
		transparent
	);
	box-shadow: 0 0 24px rgba(124, 226, 255, 0.24);
	transform: rotate(-12deg);
}

.magida-projects-hero__flow--one {
	top: 34%;
}

.magida-projects-hero__flow--two {
	bottom: 28%;
	transform: rotate(10deg);
	opacity: 0.62;
}

/* MAGIDA PROJECTS FIX PASS 10.1.1: feature card keeps absolute positioning from base.css. */
.magida-projects-flagship__content,
.magida-case-hero__summary {
	position: relative;
	z-index: 2;
}

.magida-projects-flagship__media {
	position: relative;
	overflow: hidden;
}

.magida-projects-flagship__sheen {
	/* MAGIDA HUMAN MEDIA PROJECTS PASS 23.5.5: Keep motion sheen above real project screenshots. */
	z-index: 3;
	inset: -30% auto -30% -45%;
	width: 42%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.18),
		transparent
	);
	transform: rotate(12deg);
	mix-blend-mode: screen;
}

.magida-projects-flagship__scan {
	z-index: 3;
	left: 8%;
	right: 8%;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(124, 226, 255, 0.55),
		transparent
	);
	box-shadow: 0 0 22px rgba(124, 226, 255, 0.2);
}

.magida-projects-flagship__scan--one {
	top: 24%;
}

.magida-projects-flagship__scan--two {
	bottom: 24%;
	opacity: 0.55;
}

.magida-projects-flagship__placeholder,
.magida-case-screenshot__placeholder {
	position: relative;
	overflow: hidden;
}

.magida-projects-flagship__placeholder::after,
.magida-case-screenshot__placeholder::after {
	content: "";
	position: absolute;
	inset: 18px;
	border-radius: 22px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background:
		linear-gradient(
				90deg,
				rgba(255, 255, 255, 0.08) 0 10%,
				transparent 10% 100%
			)
			0 0 / 100% 22px,
		linear-gradient(
			135deg,
			rgba(92, 132, 255, 0.16),
			rgba(172, 92, 255, 0.1)
		);
	opacity: 0.7;
}

.magida-projects-preview__card,
.magida-projects-categories__card,
.magida-projects-facts,
.magida-projects-services,
.magida-case-csr-card,
.magida-case-highlight,
.magida-case-info__panel {
	position: relative;
	overflow: hidden;
}

.magida-projects-preview__card::after,
.magida-projects-categories__card::after,
.magida-projects-facts::after,
.magida-projects-services::after,
.magida-case-csr-card::after,
.magida-case-highlight::after,
.magida-case-info__panel::after {
	content: "";
	position: absolute;
	inset: auto -20% -45% auto;
	width: 160px;
	height: 160px;
	border-radius: 999px;
	background: radial-gradient(
		circle,
		rgba(111, 202, 255, 0.18),
		transparent 68%
	);
	pointer-events: none;
}

.magida-case-hero__summary {
	position: relative;
	overflow: hidden;
}

.magida-case-hero__summary-glow {
	border-radius: 999px;
	filter: blur(18px);
	opacity: 0.72;
}

.magida-case-hero__summary-glow--one {
	width: 140px;
	height: 140px;
	right: -56px;
	top: -48px;
	background: rgba(92, 132, 255, 0.26);
}

.magida-case-hero__summary-glow--two {
	width: 120px;
	height: 120px;
	left: -50px;
	bottom: -52px;
	background: rgba(172, 92, 255, 0.22);
}

.magida-case-screenshot__frame {
	position: relative;
	overflow: hidden;
}

.magida-case-screenshot__shine {
	inset: -38% auto -38% -48%;
	width: 42%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.16),
		transparent
	);
	transform: rotate(14deg);
	z-index: 3;
}

.magida-case-screenshot__image,
.magida-case-screenshot__placeholder {
	position: relative;
	z-index: 2;
}

@media (max-width: 760px) {
	.magida-projects-hero__orb,
	.magida-projects-hero__flow,
	.magida-projects-flagship__scan,
	.magida-projects-flagship__sheen,
	.magida-case-screenshot__shine {
		display: none;
	}
}
