/*
 * Layout polish: logo in the header and footer, flat list rows, lighter
 * cards and buttons. Literal colors mirror theme.json: ink #101018,
 * ivory #f7f3e9, mist #a9a7b8, lilac #c9b6f7, violet #7a3fd6.
 */

body {
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
	text-wrap: balance;
}

h1.wp-block-heading {
	font-size: clamp(2.4rem, 5.2vw, 3.9rem);
	line-height: 1.08;
	letter-spacing: -0.01em;
}

/* Logo mark before the site title */
.atlas-header .wp-block-site-title a,
footer .wp-block-site-title a {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	color: #f7f3e9;
	text-decoration: none;
}

.atlas-header .wp-block-site-title a::before,
footer .wp-block-site-title a::before {
	content: "";
	flex: none;
	width: 2.75rem;
	height: 2.75rem;
	background: url("../img/logo.png") center / contain no-repeat;
	border-radius: 4px;
}

/* Navigation */
.atlas-header .wp-block-navigation a {
	color: #a9a7b8;
	text-decoration: none;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	text-transform: none;
}

.atlas-header .wp-block-navigation a:hover,
.atlas-header .wp-block-navigation .current-menu-item > a {
	color: #f7f3e9;
}

.atlas-header .wp-block-button__link {
	padding: 0.7rem 1.3rem;
}

/* Buttons */
.wp-block-button__link {
	border-radius: 4px;
	letter-spacing: 0.03em;
	text-transform: none;
	font-weight: 500;
	font-size: 0.95rem;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1px solid rgba(169, 167, 184, 0.35);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: #c9b6f7;
}

/* Flat list rows (home hero store list) */
.atlas-list .atlas-row {
	padding: 1.1rem 0;
	border-bottom: 1px solid rgba(169, 167, 184, 0.18);
}

.atlas-list .atlas-row:first-of-type {
	border-top: 1px solid rgba(169, 167, 184, 0.18);
}

.atlas-row-head {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
}

.atlas-row-head a {
	color: #f7f3e9;
	text-decoration: none;
}

.atlas-row-head a:hover {
	color: #c9b6f7;
}

.atlas-num {
	color: #c9b6f7;
	font-size: 0.8rem;
	letter-spacing: 0.1em;
}

.atlas-price {
	margin-left: auto;
	color: #a9a7b8;
	font-size: 0.95rem;
}

/* Cards: soft panels instead of outlined boxes */
.wp-block-group.has-plum-700-background-color.has-border-color {
	background: rgba(255, 255, 255, 0.025) !important;
	border-color: rgba(169, 167, 184, 0.2) !important;
	border-radius: 6px !important;
}

@media (max-width: 781px) {
	.atlas-header .wp-block-navigation__responsive-container-open {
		color: #f7f3e9;
	}
}

/* Cards: courses, strip, essays */
.atlas-card {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(169, 167, 184, 0.2);
	border-radius: 8px;
	padding: 1.75rem;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.atlas-card:hover {
	border-color: rgba(201, 182, 247, 0.55);
	background: rgba(122, 63, 214, 0.08);
}

.atlas-course-cols {
	gap: 1.5rem;
	margin: 2.25rem 0 1.5rem;
}

.atlas-card-course {
	height: 100%;
	padding: 2.25rem;
	background: linear-gradient(160deg, rgba(122, 63, 214, 0.18) 0%, rgba(255, 255, 255, 0.03) 70%);
	border-color: rgba(201, 182, 247, 0.35);
}

.atlas-card-course h3 {
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	line-height: 1.15;
	margin: 0.4rem 0 0.9rem;
}

.atlas-strip {
	align-items: center;
	margin-bottom: 1.25rem;
}

.atlas-strip .atlas-muted {
	color: #a9a7b8;
	font-size: 0.95rem;
	margin-left: 0.5rem;
}

.atlas-essay-grid {
	gap: 1.25rem;
	margin: 2rem 0;
}

.atlas-card-link {
	position: relative;
}

.atlas-card-link h3 {
	margin: 0.35rem 0 0.9rem;
	line-height: 1.25;
}

.atlas-card-link a {
	text-decoration: none;
}

.atlas-card-link a::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* Headings: larger, tighter, more present */
main h2.wp-block-heading {
	font-size: clamp(1.9rem, 3.8vw, 3rem);
	line-height: 1.1;
	letter-spacing: -0.015em;
}

main h2.wp-block-heading.atlas-display {
	font-size: clamp(2.4rem, 6vw, 4.75rem);
	line-height: 1.04;
	letter-spacing: -0.02em;
	max-width: 16ch;
	margin-left: auto;
	margin-right: auto;
}

/* Hero: an aperture opening behind the headline */
.atlas-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.atlas-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	width: 120vmax;
	height: 120vmax;
	left: 72%;
	top: 38%;
	translate: -50% -50%;
	pointer-events: none;
	background:
		radial-gradient(circle, rgba(122, 63, 214, 0.38) 0%, rgba(122, 63, 214, 0) 22%),
		repeating-radial-gradient(circle, rgba(201, 182, 247, 0.13) 0 1px, transparent 1px 64px);
	-webkit-mask-image: radial-gradient(circle, #000 0%, transparent 34%);
	mask-image: radial-gradient(circle, #000 0%, transparent 34%);
	animation: atlas-breathe 16s ease-in-out infinite;
}

.atlas-hero h1 {
	font-size: clamp(2.5rem, 5.4vw, 4.6rem);
	line-height: 1.03;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

/* One orchestrated entrance, on load only */
.atlas-hero .wp-block-column:first-child > * {
	animation: atlas-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.atlas-hero .wp-block-column:first-child > :nth-child(2) { animation-delay: 0.08s; }
.atlas-hero .wp-block-column:first-child > :nth-child(3) { animation-delay: 0.16s; }
.atlas-hero .wp-block-column:first-child > :nth-child(4) { animation-delay: 0.24s; }

.atlas-hero .atlas-list .atlas-row {
	animation: atlas-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.atlas-hero .atlas-list .atlas-row:nth-of-type(1) { animation-delay: 0.3s; }
.atlas-hero .atlas-list .atlas-row:nth-of-type(2) { animation-delay: 0.38s; }
.atlas-hero .atlas-list .atlas-row:nth-of-type(3) { animation-delay: 0.46s; }
.atlas-hero .atlas-list .atlas-row:nth-of-type(4) { animation-delay: 0.54s; }
.atlas-hero .atlas-list .atlas-row:nth-of-type(5) { animation-delay: 0.62s; }

@keyframes atlas-rise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

@keyframes atlas-breathe {
	0%, 100% { scale: 1; opacity: 0.9; }
	50% { scale: 1.06; opacity: 1; }
}

/* Interlude: one statement, set large */
.atlas-interlude {
	position: relative;
	isolation: isolate;
	text-align: center;
}

.atlas-interlude::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: radial-gradient(60% 70% at 50% 50%, rgba(122, 63, 214, 0.2) 0%, rgba(16, 16, 24, 0) 70%);
	pointer-events: none;
}

.atlas-facts {
	gap: 0.5rem 0;
	margin: 2.25rem 0 2.5rem;
}

.atlas-facts p {
	margin: 0;
	padding: 0 1.5rem;
	color: #a9a7b8;
	font-size: 1rem;
	letter-spacing: 0.02em;
}

.atlas-facts p + p {
	border-left: 1px solid rgba(169, 167, 184, 0.3);
}

/* Course cards: a lit edge */
.atlas-card-course {
	position: relative;
	overflow: hidden;
}

.atlas-card-course::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 2px;
	background: linear-gradient(90deg, #7a3fd6, #c9b6f7 60%, transparent);
}

.atlas-card-course:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 50px -20px rgba(122, 63, 214, 0.6);
}

.atlas-card-course {
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}

.wp-block-button__link {
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

@media (max-width: 781px) {
	.atlas-hero::before { left: 50%; top: 22%; }
	.atlas-facts p + p { border-left: 0; }
	.atlas-facts { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
	.atlas-hero::before,
	.atlas-hero .wp-block-column:first-child > *,
	.atlas-hero .atlas-list .atlas-row {
		animation: none;
	}
	.atlas-card-course,
	.wp-block-button__link { transition: none; }
	.atlas-card-course:hover,
	.wp-block-button__link:hover { transform: none; }
}

/* Centered pages */
.atlas-center { text-align: center; }
.atlas-center h1,
.atlas-center .wp-block-buttons { margin-left: auto; margin-right: auto; }

.atlas-embed {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
}

.atlas-embed iframe {
	display: block;
	width: 100%;
	height: 85vh;
	min-height: 640px;
	border: 1px solid rgba(201, 182, 247, 0.35);
	border-radius: 8px;
	background: #110812;
}

/* Vedic promo on home */
main h2.wp-block-heading.atlas-display-left {
	font-size: clamp(2.2rem, 4.6vw, 3.6rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.atlas-wheel-link { display: block; text-decoration: none; }

.atlas-wheel {
	position: relative;
	width: min(100%, 420px);
	aspect-ratio: 1;
	margin: 0 auto;
	border-radius: 50%;
	border: 1px solid rgba(201, 182, 247, 0.4);
	background:
		radial-gradient(circle, #14101d 0 17%, transparent 17.4%),
		repeating-conic-gradient(rgba(201, 182, 247, 0.38) 0 0.5deg, transparent 0.5deg 30deg),
		radial-gradient(circle, rgba(122, 63, 214, 0.4) 0%, rgba(122, 63, 214, 0) 72%);
	box-shadow: 0 0 90px -20px rgba(122, 63, 214, 0.7);
	animation: atlas-turn 120s linear infinite;
	transition: box-shadow 0.3s ease;
}

.atlas-wheel::before,
.atlas-wheel::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	border: 1px solid rgba(201, 182, 247, 0.3);
}

.atlas-wheel::before { inset: 13%; }
.atlas-wheel::after { inset: 32%; }

.atlas-wheel-link:hover .atlas-wheel { box-shadow: 0 0 110px -10px rgba(122, 63, 214, 0.95); }

@keyframes atlas-turn { to { rotate: 360deg; } }

@media (max-width: 781px) {
	.atlas-promo-cols { gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
	.atlas-wheel { animation: none; transition: none; }
}

/* Books */
.atlas-book-grid { gap: 2.5rem; margin-top: 2.25rem; }

.atlas-cover {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	overflow: hidden;
	aspect-ratio: 2 / 3;
	padding: 1.75rem 1.5rem;
	border-radius: 4px;
	color: #f7f3e9;
	text-decoration: none;
	box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8), inset 6px 0 10px -6px rgba(0, 0, 0, 0.5);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.atlas-cover:hover {
	transform: translateY(-5px) rotate(-0.4deg);
	box-shadow: 0 34px 60px -24px rgba(122, 63, 214, 0.65), inset 6px 0 10px -6px rgba(0, 0, 0, 0.5);
}

.atlas-cover h3 {
	position: relative;
	margin: 0;
	font-size: clamp(1.7rem, 2.6vw, 2.25rem);
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: #f7f3e9;
}

.atlas-cover-author {
	position: relative;
	font-size: 0.8rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(247, 243, 233, 0.75);
}

.atlas-cover-mark {
	position: absolute;
	right: -18%;
	bottom: -8%;
	width: 85%;
	aspect-ratio: 1;
	border-radius: 50%;
	pointer-events: none;
}

.atlas-cover--a { background: linear-gradient(165deg, #2b1745 0%, #171120 70%); }
.atlas-cover--a .atlas-cover-mark {
	background: radial-gradient(circle, rgba(201, 182, 247, 0.5) 0 6%, transparent 7%), radial-gradient(circle, transparent 0 40%, rgba(201, 182, 247, 0.35) 40.5% 41.5%, transparent 42%);
}

.atlas-cover--b { background: linear-gradient(165deg, #171120 0%, #231a30 100%); }
.atlas-cover--b .atlas-cover-mark {
	background: repeating-conic-gradient(rgba(201, 182, 247, 0.4) 0 0.6deg, transparent 0.6deg 30deg);
	-webkit-mask-image: radial-gradient(circle, transparent 0 18%, #000 19%, transparent 70%);
	mask-image: radial-gradient(circle, transparent 0 18%, #000 19%, transparent 70%);
}

.atlas-cover--c { background: linear-gradient(165deg, #6330b8 0%, #171120 85%); }
.atlas-cover--c .atlas-cover-mark {
	background: repeating-radial-gradient(circle, rgba(247, 243, 233, 0.28) 0 1px, transparent 1px 22px);
	-webkit-mask-image: radial-gradient(circle, #000 0%, transparent 70%);
	mask-image: radial-gradient(circle, #000 0%, transparent 70%);
}

.atlas-book .atlas-book-price {
	margin: 1.25rem 0 0.4rem;
	font-size: 1.15rem;
}

@media (prefers-reduced-motion: reduce) {
	.atlas-cover { transition: none; }
	.atlas-cover:hover { transform: none; }
}

/* Header: no account or cart icons */
.atlas-header .wp-block-woocommerce-customer-account,
.atlas-header .wp-block-woocommerce-mini-cart {
	display: none;
}

/* Books: three even columns, covers at a book's proportions */
.atlas-books .atlas-book-grid.wp-block-group {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	align-items: start;
	gap: 2.5rem;
}

.atlas-books .atlas-cover {
	width: 100%;
	max-width: 300px;
	margin: 0 auto;
}

.atlas-books .atlas-book > * {
	max-width: 300px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 900px) {
	.atlas-books .atlas-book-grid.wp-block-group {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 3rem;
	}
}

/* About */
.atlas-social-grid.wp-block-group {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
	gap: 1.25rem;
	margin-top: 2rem;
}

.atlas-principles { gap: 1.25rem; margin-top: 2rem; }
.atlas-principles .atlas-card { height: 100%; }

/* Hero v2: night sky, ribbons, descent line */
.atlas-hero--v2 {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	min-height: min(88vh, 860px);
	display: flex;
	align-items: center;
	background:
		radial-gradient(50% 60% at 18% 40%, rgba(122, 63, 214, 0.14) 0%, rgba(122, 63, 214, 0) 70%),
		linear-gradient(180deg, #07060c 0%, #0b0814 55%, #101018 100%);
}

.atlas-hero--v2::before { display: none; }

.atlas-hero--v2 > .atlas-hero-body {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1200px;
	margin-left: auto !important;
	margin-right: auto !important;
}

.atlas-hero--v2 .atlas-hero-text {
	max-width: 780px;
	margin-left: 0 !important;
}

.atlas-hero--v2 h1 {
	font-weight: 400;
	font-size: clamp(2.6rem, 5.2vw, 4.6rem);
	line-height: 1.02;
	letter-spacing: -0.02em;
	margin: 1.1rem 0 1.5rem;
}

.atlas-hero--v2 .atlas-hero-text > p:nth-of-type(2) {
	max-width: 30rem;
	line-height: 1.6;
}

.atlas-hero--v2 .atlas-hero-text .wp-block-buttons {
	margin-top: 2.25rem;
	align-items: center;
	gap: 1.75rem;
}

.atlas-sky {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	max-width: none !important;
	margin: 0 !important;
	width: 100%;
	--px: 0;
	--py: 0;
}

.atlas-sky canvas { position: absolute; inset: 0; opacity: 0.85; }

.atlas-haze {
	position: absolute;
	left: 8%;
	top: 22%;
	width: 52%;
	height: 56%;
	background: radial-gradient(closest-side, rgba(122, 63, 214, 0.22), rgba(122, 63, 214, 0));
	filter: blur(30px);
	animation: atlas-glow 9s ease-in-out infinite;
}

.atlas-descent {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 1px;
	height: 110px;
	background: linear-gradient(180deg, rgba(201, 182, 247, 0), rgba(201, 182, 247, 0.85));
	transform-origin: 0 0;
	animation: atlas-fall 2.4s cubic-bezier(0.3, 0.6, 0.2, 1) 1.1s both;
}

@keyframes atlas-glow { 0%, 100% { opacity: 0.6; scale: 1; } 50% { opacity: 1; scale: 1.08; } }
@keyframes atlas-fall { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

/* Headline and copy arrive once */
.atlas-hero--v2 .atlas-hero-text > * {
	animation: atlas-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.atlas-hero--v2 .atlas-hero-text > :nth-child(2) { animation-delay: 0.08s; }
.atlas-hero--v2 .atlas-hero-text > :nth-child(3) { animation-delay: 0.18s; }
.atlas-hero--v2 .atlas-hero-text > :nth-child(4) { animation-delay: 0.3s; }

/* Buttons: glow and an arrow on the main one, an underline on the second */
.atlas-hero--v2 .wp-block-button:not(.atlas-btn-text) .wp-block-button__link {
	border-radius: 8px;
	padding: 0.95rem 1.5rem;
	box-shadow: 0 0 26px -4px rgba(122, 63, 214, 0.7);
	transition: box-shadow 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}

.atlas-hero--v2 .wp-block-button:not(.atlas-btn-text) .wp-block-button__link::after {
	content: "\2192";
	margin-left: 0.7rem;
	display: inline-block;
	transition: transform 0.25s ease;
}

.atlas-hero--v2 .wp-block-button:not(.atlas-btn-text) .wp-block-button__link:hover {
	box-shadow: 0 0 44px 2px rgba(150, 100, 235, 0.85);
}

.atlas-hero--v2 .wp-block-button:not(.atlas-btn-text) .wp-block-button__link:hover::after { transform: translateX(4px); }

.atlas-btn-text .wp-block-button__link {
	background: transparent !important;
	border: 0 !important;
	border-bottom: 1px solid #7a3fd6 !important;
	border-radius: 0 !important;
	padding: 0.35rem 0 !important;
	box-shadow: none !important;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.atlas-btn-text .wp-block-button__link:hover {
	border-bottom-color: #c9b6f7 !important;
	color: #c9b6f7 !important;
	transform: none;
}

/* The five doors below the hero */
.atlas-doors .atlas-list { margin-top: 2rem; }

@media (max-width: 781px) {
	.atlas-hero--v2 { min-height: 0; padding-top: 4rem; padding-bottom: 5.5rem; }
	.atlas-portal { left: 62%; top: 84%; width: 120vw; }
	.atlas-haze { width: 90%; left: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.atlas-haze,
	.atlas-descent,
	.atlas-hero--v2 .atlas-hero-text > * { animation: none; }
}

/* Wow layer: portal, shimmer, cursor light */
.atlas-sky canvas.flow { opacity: 1; mix-blend-mode: screen; }

.atlas-cursor {
	position: absolute;
	left: 0;
	top: 0;
	width: 520px;
	height: 520px;
	margin: -260px 0 0 -260px;
	background: radial-gradient(closest-side, rgba(150, 100, 235, 0.16), rgba(150, 100, 235, 0));
	transform: translate3d(var(--mx, 70vw), var(--my, 40%), 0);
	transition: opacity 0.4s ease;
}

.atlas-portal {
	position: absolute;
	left: 74%;
	top: 50%;
	width: min(46vw, 700px);
	aspect-ratio: 1;
	transform: translate3d(calc(-50% + var(--px) * -26px), calc(-50% + var(--py) * -16px), 0);
}

.atlas-portal i {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1px solid rgba(201, 182, 247, 0.55);
	box-shadow: 0 0 24px rgba(122, 63, 214, 0.5), inset 0 0 24px rgba(122, 63, 214, 0.35);
	opacity: 0;
	animation: atlas-ring 9s cubic-bezier(0.25, 0.6, 0.35, 1) infinite;
}
.atlas-portal i:nth-child(2) { animation-delay: 1.5s; }
.atlas-portal i:nth-child(3) { animation-delay: 3s; }
.atlas-portal i:nth-child(4) { animation-delay: 4.5s; }
.atlas-portal i:nth-child(5) { animation-delay: 6s; }
.atlas-portal i:nth-child(6) { animation-delay: 7.5s; }

.atlas-portal .disc {
	position: absolute;
	inset: 29%;
	border-radius: 50%;
	background: conic-gradient(from 0deg, rgba(122, 63, 214, 0), rgba(201, 182, 247, 0.95), rgba(122, 63, 214, 0.1), rgba(150, 100, 235, 0.8), rgba(122, 63, 214, 0));
	-webkit-mask: radial-gradient(closest-side, transparent 80%, #000 86%, transparent 100%);
	mask: radial-gradient(closest-side, transparent 80%, #000 86%, transparent 100%);
	filter: blur(1.5px) drop-shadow(0 0 18px rgba(150, 100, 235, 0.9));
	animation: atlas-spin 11s linear infinite;
}

.atlas-portal .core {
	position: absolute;
	inset: 36%;
	border-radius: 50%;
	background: radial-gradient(closest-side, #030208 62%, rgba(3, 2, 8, 0) 100%);
	box-shadow: 0 0 90px 24px rgba(122, 63, 214, 0.55), 0 0 200px 60px rgba(90, 40, 180, 0.35);
	animation: atlas-core 6s ease-in-out infinite;
}

.atlas-shimmer {
	background: linear-gradient(100deg, #c9b6f7 0%, #ffffff 30%, #9a6cf0 55%, #c9b6f7 80%);
	background-size: 220% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	filter: drop-shadow(0 0 18px rgba(150, 100, 235, 0.55));
	animation: atlas-shine 6s ease-in-out infinite;
}

@keyframes atlas-ring {
	0% { transform: scale(0.16); opacity: 0; }
	15% { opacity: 0.9; }
	100% { transform: scale(1.25); opacity: 0; }
}
@keyframes atlas-spin { to { transform: rotate(360deg); } }
@keyframes atlas-core { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes atlas-shine { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }

@media (prefers-reduced-motion: reduce) {
	.atlas-portal i, .atlas-portal .disc, .atlas-portal .core, .atlas-shimmer { animation: none; }
	.atlas-portal i:nth-child(n+3) { display: none; }
	.atlas-portal i:first-child { opacity: 0.5; transform: scale(0.7); }
	.atlas-portal i:nth-child(2) { opacity: 0.3; transform: scale(1); }
	.atlas-portal { transform: translate(-50%, -50%); }
}

/* Sub-page heroes */
section.atlas-subhero.atlas-subhero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(60% 80% at 50% 0%, rgba(122, 63, 214, 0.16) 0%, rgba(122, 63, 214, 0) 70%),
		linear-gradient(180deg, #07060c 0%, #0d0916 60%, #110812 100%) !important;
}

.atlas-subhero > :not(.atlas-sky) { position: relative; z-index: 1; }

.atlas-sky--sub canvas { opacity: 1; }

.atlas-orb {
	position: absolute;
	left: 50%;
	top: 38%;
	width: min(70vw, 760px);
	aspect-ratio: 1;
	margin: calc(min(70vw, 760px) / -2) 0 0 calc(min(70vw, 760px) / -2);
	background: radial-gradient(closest-side, rgba(122, 63, 214, 0.26), rgba(122, 63, 214, 0));
	filter: blur(24px);
	animation: atlas-orb 14s ease-in-out infinite alternate;
}

.atlas-m-fall .atlas-orb { top: 100%; background: radial-gradient(closest-side, rgba(122, 63, 214, 0.4), rgba(122, 63, 214, 0)); }
.atlas-m-rise .atlas-orb { top: 105%; }
.atlas-m-link .atlas-orb { top: 50%; }

@keyframes atlas-orb {
	from { transform: translate3d(-8%, -4%, 0) scale(0.94); opacity: 0.7; }
	to { transform: translate3d(8%, 5%, 0) scale(1.08); opacity: 1; }
}
@keyframes atlas-line { to { width: 84px; } }

.atlas-subhero h1 {
	animation: atlas-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	text-shadow: 0 0 60px rgba(122, 63, 214, 0.45);
}
.atlas-subhero h1::after {
	content: "";
	display: block;
	height: 2px;
	width: 0;
	margin-top: 1.4rem;
	background: linear-gradient(90deg, #7a3fd6, #c9b6f7);
	box-shadow: 0 0 14px rgba(150, 100, 235, 0.9);
	animation: atlas-line 1.1s cubic-bezier(0.3, 0.6, 0.2, 1) 0.5s forwards;
}
.atlas-center.atlas-subhero h1::after { margin-left: auto; margin-right: auto; }
.atlas-subhero h1 ~ * { animation: atlas-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }

/* Scroll reveal */
.js-reveal .atlas-rv {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js-reveal .atlas-rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.atlas-orb, .atlas-subhero h1, .atlas-subhero h1 ~ * { animation: none; }
	.atlas-subhero h1::after { animation: none; width: 84px; }
}
