/**
 * File: assets/css/pages/shared/inner-page-unity.css
 * Description: Global inner-page hero, breadcrumb, heading, and atmosphere contract.
 *
 * MAGIDA PASS 24.1.24 — Global Header and Inner Hero System Reset:
 * - Replaces accumulated page-by-page hero overrides with one shared contract.
 * - Keeps Home separate and keeps lower page sections untouched.
 * - Makes About, Services, Projects, Pricing, Quote, Contact, Commissioned Art, News,
 *   Careers, Project singles, News singles, and Career singles use the same hero shell.
 * - Page personality now belongs inside template-parts/global/hero-visual-universal.php only.
 *
 * MAGIDA PASS 24.1.24d — News/Career Visual Frame Tightening:
 * - Tightens only the right-side visual frame height for News, News single, and Career single.
 * - Fixes the oversized top/bottom breathing room around the already-correct inner artwork.
 * - Leaves About and the other approved page heroes untouched.
 */

.magida-template--about,
.magida-template--services,
.magida-template--projects,
.magida-template--project-case-study,
.magida-template--pricing,
.magida-template--quote,
.magida-template--commissioned-art,
.magida-template--contact,
.magida-template--careers,
.magida-template--single-career,
.magida-template--single-news,
.magida-template--news {
	--magida-inner-page-bg: #06070d;
	--magida-inner-page-hero-top: clamp(42px, 4vw, 62px);
	--magida-inner-page-hero-bottom: clamp(48px, 4.4vw, 72px);
	--magida-inner-page-breadcrumb-space: clamp(24px, 2.5vw, 38px);
	--magida-inner-page-grid-gap: clamp(34px, 4.5vw, 72px);
	--magida-inner-page-title-size: clamp(3.95rem, 7.15vw, 7.35rem);
	--magida-inner-page-title-size-long: clamp(3.25rem, 5.45vw, 5.9rem);
	--magida-inner-page-title-size-single: clamp(3.25rem, 5.35vw, 5.9rem);
	--magida-inner-page-description-size: clamp(1.08rem, 1.48vw, 1.34rem);
	--magida-inner-page-visual-height: clamp(350px, 25vw, 430px);
	--magida-inner-page-visual-max-width: 760px;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: var(--magida-inner-page-bg);
	background-image:
		radial-gradient(
			circle at 8% 10%,
			rgba(5, 223, 254, 0.14),
			transparent 31rem
		),
		radial-gradient(
			circle at 92% 8%,
			rgba(124, 106, 251, 0.15),
			transparent 34rem
		),
		linear-gradient(
			180deg,
			rgba(9, 32, 48, 0.94) 0%,
			rgba(8, 14, 28, 0.98) 38rem,
			var(--magida-inner-page-bg) 86rem
		);
}

.magida-template--commissioned-art {
	--magida-inner-page-title-size: clamp(3.2rem, 5.8vw, 6.25rem);
}

/*
 * PASS 24.1.24d:
 * These three contexts use shorter controlled visual copy than About/Services/Projects,
 * so the shared outer visual frame was leaving too much top/bottom space around the panel.
 * Keep their shell unified, but tighten only the visual frame height.
 */
.magida-template--news,
.magida-template--single-news,
.magida-template--single-career {
	--magida-inner-page-visual-height: clamp(300px, 21.6vw, 365px);
}

.magida-template--careers,
.magida-template--single-career,
.magida-template--project-case-study,
.magida-template--single-news {
	--magida-inner-page-title-size: var(--magida-inner-page-title-size-single);
}

.magida-template--about::before,
.magida-template--services::before,
.magida-template--projects::before,
.magida-template--project-case-study::before,
.magida-template--pricing::before,
.magida-template--quote::before,
.magida-template--commissioned-art::before,
.magida-template--contact::before,
.magida-template--careers::before,
.magida-template--single-career::before,
.magida-template--single-news::before,
.magida-template--news::before,
.magida-template--about::after,
.magida-template--services::after,
.magida-template--projects::after,
.magida-template--project-case-study::after,
.magida-template--pricing::after,
.magida-template--quote::after,
.magida-template--commissioned-art::after,
.magida-template--contact::after,
.magida-template--careers::after,
.magida-template--single-career::after,
.magida-template--single-news::after,
.magida-template--news::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.magida-template--about::before,
.magida-template--services::before,
.magida-template--projects::before,
.magida-template--project-case-study::before,
.magida-template--pricing::before,
.magida-template--quote::before,
.magida-template--commissioned-art::before,
.magida-template--contact::before,
.magida-template--careers::before,
.magida-template--single-career::before,
.magida-template--single-news::before,
.magida-template--news::before {
	background:
		radial-gradient(
			circle at 0% 8%,
			rgba(5, 223, 254, 0.14),
			transparent 32rem
		),
		radial-gradient(
			circle at 82% 16%,
			rgba(124, 106, 251, 0.16),
			transparent 38rem
		),
		linear-gradient(
			180deg,
			rgba(3, 14, 24, 0.1),
			rgba(3, 6, 12, 0.76) 68%,
			rgba(6, 7, 13, 0.98)
		);
}

.magida-template--about::after,
.magida-template--services::after,
.magida-template--projects::after,
.magida-template--project-case-study::after,
.magida-template--pricing::after,
.magida-template--quote::after,
.magida-template--commissioned-art::after,
.magida-template--contact::after,
.magida-template--careers::after,
.magida-template--single-career::after,
.magida-template--single-news::after,
.magida-template--news::after {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
	background-size: 128px 128px;
	mask-image: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.84),
		rgba(0, 0, 0, 0.42) 52%,
		transparent 100%
	);
	opacity: 0.4;
}

.magida-template--about > *,
.magida-template--services > *,
.magida-template--projects > *,
.magida-template--project-case-study > *,
.magida-template--pricing > *,
.magida-template--quote > *,
.magida-template--commissioned-art > *,
.magida-template--contact > *,
.magida-template--careers > *,
.magida-template--single-career > *,
.magida-template--single-news > *,
.magida-template--news > * {
	position: relative;
	z-index: 1;
}

.magida-inner-hero,
.magida-template .magida-inner-hero {
	position: relative;
	min-height: min(630px, calc(100vh - var(--magida-header-height, 82px)));
	padding: var(--magida-inner-page-hero-top) 0
		var(--magida-inner-page-hero-bottom);
	border-bottom: 1px solid rgba(5, 223, 254, 0.12);
	overflow: hidden;
	isolation: isolate;
}

.magida-template .magida-inner-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(
			circle at 12% 34%,
			rgba(5, 223, 254, 0.14),
			transparent 30rem
		),
		radial-gradient(
			circle at 80% 28%,
			rgba(124, 106, 251, 0.14),
			transparent 34rem
		),
		linear-gradient(
			180deg,
			rgba(11, 33, 51, 0.58),
			rgba(5, 7, 14, 0.2) 64%,
			transparent
		);
}

.magida-template .magida-inner-hero .magida-container {
	position: relative;
	z-index: 2;
	width: min(100% - 48px, 1600px);
}

.magida-inner-breadcrumb,
.magida-template .magida-inner-breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	width: fit-content;
	max-width: 100%;
	min-height: 56px;
	margin: 0 0 var(--magida-inner-page-breadcrumb-space);
	padding: 0 20px;
	border: 1px solid rgba(185, 189, 229, 0.14);
	border-radius: 999px;
	background: rgba(10, 16, 30, 0.48);
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.025),
		0 20px 50px rgba(0, 0, 0, 0.18);
	backdrop-filter: blur(18px);
	color: var(--magida-text-muted);
	font-family: var(--magida-font-heading);
	font-size: 0.76rem;
	font-weight: 900;
	letter-spacing: 0.18em;
	line-height: 1;
	text-transform: uppercase;
}

.magida-template .magida-inner-breadcrumb a,
.magida-template .magida-inner-breadcrumb span,
.magida-template .magida-inner-breadcrumb strong {
	color: inherit;
	font-weight: inherit;
	line-height: 1;
	text-decoration: none;
}

.magida-template .magida-inner-breadcrumb a:hover,
.magida-template .magida-inner-breadcrumb strong,
.magida-template .magida-inner-breadcrumb span:last-child {
	color: var(--magida-cyan);
}

.magida-template .magida-inner-breadcrumb span[aria-hidden="true"] {
	color: rgba(185, 189, 229, 0.62);
}

.magida-inner-hero__inner,
.magida-template .magida-inner-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.98fr) minmax(480px, 0.88fr);
	gap: var(--magida-inner-page-grid-gap);
	align-items: start;
}

.magida-inner-hero__content,
.magida-template .magida-inner-hero__content {
	position: relative;
	z-index: 3;
	max-width: 900px;
	padding-top: 6px;
}

.magida-inner-hero__eyebrow,
.magida-template .magida-inner-hero__eyebrow {
	margin-bottom: clamp(22px, 2.2vw, 30px);
}

.magida-inner-hero__title,
.magida-template .magida-inner-hero__title {
	max-width: 940px;
	margin: 0;
	color: var(--magida-white);
	font-family: var(--magida-font-heading);
	font-size: var(--magida-inner-page-title-size);
	font-weight: 950;
	line-height: 0.86;
	letter-spacing: -0.09em;
	text-wrap: balance;
}

.magida-inner-hero__description,
.magida-template .magida-inner-hero__description {
	max-width: 790px;
	margin: 22px 0 0;
	color: var(--magida-text-soft);
	font-size: var(--magida-inner-page-description-size);
	line-height: 1.62;
}

.magida-inner-hero__meta,
.magida-template .magida-inner-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.magida-inner-hero__meta span,
.magida-inner-hero__meta time,
.magida-template .magida-inner-hero__meta span,
.magida-template .magida-inner-hero__meta time {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 12px;
	border: 1px solid rgba(185, 189, 229, 0.13);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.055);
	color: var(--magida-text-soft);
	font-family: var(--magida-font-heading);
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.magida-inner-hero__actions,
.magida-template .magida-inner-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 26px;
}

.magida-inner-hero__visual,
.magida-template .magida-inner-hero__visual {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	justify-self: end;
	width: 100%;
	max-width: var(--magida-inner-page-visual-max-width);
	min-height: var(--magida-inner-page-visual-height);
	margin: 0;
	padding: 0;
	border: 1px solid rgba(5, 223, 254, 0.2);
	border-radius: clamp(30px, 2.3vw, 42px);
	background:
		linear-gradient(135deg, rgba(12, 15, 26, 0.92), rgba(12, 15, 26, 0.62)),
		radial-gradient(
			circle at 16% 14%,
			rgba(5, 223, 254, 0.18),
			transparent 32%
		),
		radial-gradient(
			circle at 90% 24%,
			rgba(124, 106, 251, 0.18),
			transparent 34%
		);
	box-shadow:
		0 34px 100px rgba(0, 0, 0, 0.34),
		var(--magida-glow-soft);
	overflow: hidden;
	isolation: isolate;
	transform: none;
}

@media (max-width: 1180px) {
	.magida-template--about,
	.magida-template--services,
	.magida-template--projects,
	.magida-template--project-case-study,
	.magida-template--pricing,
	.magida-template--quote,
	.magida-template--commissioned-art,
	.magida-template--contact,
	.magida-template--careers,
	.magida-template--single-career,
	.magida-template--single-news,
	.magida-template--news {
		--magida-inner-page-title-size: clamp(3.55rem, 10vw, 6.4rem);
		--magida-inner-page-visual-height: clamp(330px, 48vw, 440px);
		--magida-inner-page-visual-max-width: min(820px, 100%);
	}

	.magida-template--careers,
	.magida-template--single-career,
	.magida-template--project-case-study,
	.magida-template--single-news {
		--magida-inner-page-title-size: clamp(3.1rem, 8vw, 5.35rem);
	}

	.magida-template--news,
	.magida-template--single-news,
	.magida-template--single-career {
		--magida-inner-page-visual-height: clamp(300px, 44vw, 390px);
	}

	.magida-template .magida-inner-hero__inner {
		grid-template-columns: 1fr;
		gap: clamp(30px, 5vw, 48px);
	}

	.magida-template .magida-inner-hero__content {
		max-width: 960px;
	}

	.magida-template .magida-inner-hero__visual {
		justify-self: start;
		max-width: var(--magida-inner-page-visual-max-width);
	}
}

@media (max-width: 760px) {
	.magida-template--about,
	.magida-template--services,
	.magida-template--projects,
	.magida-template--project-case-study,
	.magida-template--pricing,
	.magida-template--quote,
	.magida-template--commissioned-art,
	.magida-template--contact,
	.magida-template--careers,
	.magida-template--single-career,
	.magida-template--single-news,
	.magida-template--news {
		--magida-inner-page-hero-top: 46px;
		--magida-inner-page-hero-bottom: 56px;
		--magida-inner-page-breadcrumb-space: 28px;
		--magida-inner-page-title-size: clamp(2.85rem, 15vw, 4.65rem);
		--magida-inner-page-visual-height: clamp(320px, 90vw, 410px);
	}

	.magida-template--commissioned-art,
	.magida-template--single-career,
	.magida-template--project-case-study,
	.magida-template--single-news {
		--magida-inner-page-title-size: clamp(2.45rem, 11vw, 3.95rem);
	}

	.magida-template--news,
	.magida-template--single-news,
	.magida-template--single-career {
		--magida-inner-page-visual-height: clamp(300px, 84vw, 370px);
	}

	.magida-template .magida-inner-hero {
		min-height: auto;
	}

	.magida-template .magida-inner-hero .magida-container {
		width: min(100% - 32px, 1600px);
	}

	.magida-template .magida-inner-breadcrumb {
		min-height: 50px;
		padding: 0 15px;
		gap: 10px;
		font-size: 0.66rem;
		letter-spacing: 0.14em;
	}

	.magida-template .magida-inner-hero__inner {
		gap: 26px;
	}

	.magida-template .magida-inner-hero__title {
		line-height: 0.9;
		letter-spacing: -0.075em;
	}

	.magida-template .magida-inner-hero__description {
		margin-top: 18px;
		font-size: 1.02rem;
		line-height: 1.68;
	}

	.magida-template .magida-inner-hero__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.magida-template .magida-inner-hero__actions .magida-button {
		width: 100%;
	}

	.magida-template .magida-inner-hero__visual {
		justify-self: stretch;
		max-width: 100%;
		min-height: var(--magida-inner-page-visual-height);
		border-radius: 26px;
	}
}

@media (max-width: 480px) {
	.magida-template--about,
	.magida-template--services,
	.magida-template--projects,
	.magida-template--project-case-study,
	.magida-template--pricing,
	.magida-template--quote,
	.magida-template--commissioned-art,
	.magida-template--contact,
	.magida-template--careers,
	.magida-template--single-career,
	.magida-template--single-news,
	.magida-template--news {
		--magida-inner-page-title-size: clamp(2.65rem, 15vw, 4.2rem);
		--magida-inner-page-visual-height: clamp(310px, 92vw, 390px);
	}

	.magida-template--commissioned-art,
	.magida-template--single-career,
	.magida-template--project-case-study,
	.magida-template--single-news {
		--magida-inner-page-title-size: clamp(2.25rem, 10.6vw, 3.45rem);
	}

	.magida-template--news,
	.magida-template--single-news,
	.magida-template--single-career {
		--magida-inner-page-visual-height: clamp(292px, 86vw, 350px);
	}

	.magida-template .magida-inner-breadcrumb {
		min-height: 46px;
		padding: 0 13px;
		font-size: 0.6rem;
	}
}

/*
 * MAGIDA PASS 24.1.35 — Inner Page Post-Hero Spacing Standard
 * Standardizes only the handoff gap between the locked universal hero and the first content section.
 * Hero sizing, hero visuals, header, templates, and page structure remain untouched.
 */
.magida-template--about,
.magida-template--services,
.magida-template--projects,
.magida-template--project-case-study,
.magida-template--pricing,
.magida-template--quote,
.magida-template--commissioned-art,
.magida-template--contact,
.magida-template--careers,
.magida-template--single-career,
.magida-template--single-news,
.magida-template--news {
	--magida-post-hero-gap: clamp(4.25rem, 6vw, 6rem);
}

.magida-template--about > .magida-inner-hero + section,
.magida-template--services > .magida-inner-hero + section,
.magida-template--projects > .magida-inner-hero + section,
.magida-template--project-case-study > .magida-inner-hero + section,
.magida-template--pricing > .magida-inner-hero + section,
.magida-template--quote > .magida-inner-hero + section,
.magida-template--commissioned-art > .magida-inner-hero + section,
.magida-template--contact > .magida-inner-hero + section,
.magida-template--careers > .magida-inner-hero + section,
.magida-template--single-career > .magida-inner-hero + section,
.magida-template--single-news > .magida-inner-hero + section,
.magida-template--news > .magida-inner-hero + section {
	padding-top: var(--magida-post-hero-gap);
}

@media (max-width: 980px) {
	.magida-template--about,
	.magida-template--services,
	.magida-template--projects,
	.magida-template--project-case-study,
	.magida-template--pricing,
	.magida-template--quote,
	.magida-template--commissioned-art,
	.magida-template--contact,
	.magida-template--careers,
	.magida-template--single-career,
	.magida-template--single-news,
	.magida-template--news {
		--magida-post-hero-gap: clamp(3.75rem, 8vw, 5.25rem);
	}
}

@media (max-width: 640px) {
	.magida-template--about,
	.magida-template--services,
	.magida-template--projects,
	.magida-template--project-case-study,
	.magida-template--pricing,
	.magida-template--quote,
	.magida-template--commissioned-art,
	.magida-template--contact,
	.magida-template--careers,
	.magida-template--single-career,
	.magida-template--single-news,
	.magida-template--news {
		--magida-post-hero-gap: 3.25rem;
	}
}
