/* ==========================================================================
   Atlas Multiverse — theme styles
   Tokens follow the design language: true black, double neon, Manrope +
   Space Mono, 4px rhythm, 120/220/340ms motion.
   Accent values are injected as CSS custom properties from the Customizer;
   the fallbacks below are the design language defaults.
   ========================================================================== */

:root {
	--amv-bg: #000;
	--amv-surface-1: #0A0C14;
	--amv-surface-2: #141826;
	--amv-surface-3: #1D2333;

	--amv-border: rgba(255, 255, 255, .16);
	--amv-border-strong: rgba(255, 255, 255, .26);

	--amv-text: #F5F7FF;
	--amv-text-muted: #8A93B8;
	--amv-text-faint: #525C80;

	--amv-g: #26FF57;
	--amv-g-rgb: 38, 255, 87;
	--amv-b: #1E7CFF;
	--amv-b-rgb: 30, 124, 255;
	--amv-illustrative: #E84FA8;

	--amv-warning: #E8B04C;
	--amv-error: #FF4D6D;

	--amv-font: 'Manrope', system-ui, -apple-system, sans-serif;
	--amv-mono: 'Space Mono', ui-monospace, monospace;

	--amv-r-sm: 4px;
	--amv-r-md: 8px;
	--amv-r-lg: 16px;
	--amv-r-pill: 999px;

	--amv-s1: 4px;
	--amv-s2: 8px;
	--amv-s3: 12px;
	--amv-s4: 16px;
	--amv-s5: 24px;
	--amv-s6: 32px;
	--amv-s7: 48px;
	--amv-s8: 64px;
	--amv-s9: 96px;

	--amv-ease: cubic-bezier(.2, .8, .2, 1);
	--amv-t-micro: 120ms;
	--amv-t-standard: 220ms;
	--amv-t-entrance: 340ms;

	--amv-container: 1180px;
	--amv-nav-h: 60px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
	scroll-behavior: smooth;
}

body.amv {
	margin: 0;
	background: var(--amv-bg);
	color: var(--amv-text);
	font-family: var(--amv-font);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: var(--amv-g) var(--amv-surface-1);
}

body.amv *::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

body.amv *::-webkit-scrollbar-track {
	background: var(--amv-surface-1);
}

body.amv *::-webkit-scrollbar-thumb {
	background: var(--amv-g);
	border: 1.5px solid var(--amv-surface-1);
	border-radius: var(--amv-r-pill);
	background-clip: padding-box;
}

/* :where() keeps the base link colour at element specificity, so component
   rules below (nav, footer, buttons) win without needing !important. */
:where(body.amv) a {
	color: var(--amv-b);
}

:where(body.amv) a:hover,
:where(body.amv) a:focus-visible {
	color: var(--amv-g);
}

:where(body.amv) h1,
:where(body.amv) h2,
:where(body.amv) h3,
:where(body.amv) h4,
:where(body.amv) h5,
:where(body.amv) h6,
:where(body.amv) p,
:where(body.amv) figure,
:where(body.amv) ul,
:where(body.amv) ol {
	margin: 0;
}

.amv-wrap {
	max-width: var(--amv-container);
	margin: 0 auto;
	padding: 0 var(--amv-s5);
}

.amv-center {
	text-align: center;
}

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

.amv-skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 200;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 16px;
	background: var(--amv-g);
	color: #031309;
	font-family: var(--amv-mono);
	font-size: 12px;
	text-decoration: none;
	border-radius: var(--amv-r-sm);
}

/* --------------------------------------------------------------------------
   Ambient backdrop
   -------------------------------------------------------------------------- */

.amv-bg-canvas {
	position: fixed;
	pointer-events: none;
}

#amv-deep {
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -3;
}

#amv-neb {
	left: 0;
	bottom: 0;
	width: 100%;
	height: 62vh;
	z-index: -2;
	-webkit-mask-image: linear-gradient(to top, #000 34%, rgba(0, 0, 0, .55) 68%, transparent);
	mask-image: linear-gradient(to top, #000 34%, rgba(0, 0, 0, .55) 68%, transparent);
}

/* Radial brand glow — disabled from PHP when the option is off. */
body.amv::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(ellipse 900px 520px at 50% -8%, rgba(var(--amv-g-rgb), .07), transparent 62%),
		radial-gradient(ellipse 760px 520px at 88% 34%, rgba(var(--amv-b-rgb), .06), transparent 62%);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.amv-nav {
	position: sticky;
	top: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	height: var(--amv-nav-h);
	background: rgba(3, 4, 9, .72);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--amv-border);
	transition: height var(--amv-t-entrance) var(--amv-ease), background var(--amv-t-entrance) var(--amv-ease);
}

.amv-nav .amv-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.amv-brand {
	display: flex;
	align-items: center;
	gap: 11px;
	text-decoration: none;
	color: inherit;
}

.amv-brand:hover,
.amv-brand:focus-visible {
	color: inherit;
}

.amv-mark {
	display: block;
	line-height: 0;
	color: var(--amv-g);
}

.amv-mark svg,
.amv-mark img {
	display: block;
	width: 100%;
	height: auto;
}

.amv-brand-mark {
	width: 19px;
	flex-shrink: 0;
	transition: width var(--amv-t-entrance) var(--amv-ease);
}

.amv-brand-name {
	font-family: var(--amv-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	transition: font-size var(--amv-t-entrance) var(--amv-ease), letter-spacing var(--amv-t-entrance) var(--amv-ease);
}

.amv-navlinks {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.amv-navlinks a {
	display: block;
	padding: 7px 13px;
	color: var(--amv-text-muted);
	font-family: var(--amv-mono);
	font-size: 10.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: var(--amv-r-pill);
	white-space: nowrap;
	transition: color var(--amv-t-micro) var(--amv-ease), background var(--amv-t-micro) var(--amv-ease);
}

.amv-navlinks a:hover,
.amv-navlinks a:focus-visible {
	color: var(--amv-g);
	background: rgba(var(--amv-g-rgb), .09);
}

.amv-navlinks .current-menu-item > a,
.amv-navlinks .current_page_item > a {
	color: var(--amv-g);
}

/* Condensed state, toggled by amv-ui.js */
.amv-nav.is-tight {
	height: 48px;
	background: rgba(3, 4, 9, .94);
	border-bottom-color: rgba(var(--amv-g-rgb), .28);
}

.amv-nav.is-tight .amv-brand-name {
	font-size: 10px;
	letter-spacing: .2em;
}

.amv-nav.is-tight .amv-brand-mark {
	width: 16px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

/* The hero owns the full viewport height, minus the sticky nav when one is
   shown. svh keeps mobile browser chrome honest; the plain vh line is the
   fallback for browsers without svh/max(). The 540px floor stops it collapsing
   on short screens. */
.amv-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--amv-s7) 0;
	text-align: center;
	min-height: calc(100vh - var(--amv-nav-h));
	min-height: max(540px, calc(100svh - var(--amv-nav-h)));
}

/* No nav bar printed at all — take the whole window. */
body.amv-no-primary-menu .amv-hero {
	min-height: 100vh;
	min-height: max(540px, 100svh);
}

#amv-herofield {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.amv-hero .amv-wrap {
	position: relative;
	width: 100%;
}

.amv-hero-mark {
	width: 96px;
	margin: 0 auto var(--amv-s5);
	line-height: 0;
}

.amv-hero-mark .amv-mark {
	color: var(--amv-g);
}

.amv-hero-title {
	font-size: clamp(30px, 6vw, 54px);
	font-weight: 200;
	letter-spacing: 0;
	line-height: 1.06;
	text-transform: uppercase;
}

.amv-hero-title .amv-w2 {
	font-weight: 800;
}

.amv-hero-title .amv-sc {
	color: var(--amv-g);
}

.amv-hero-tag {
	max-width: 46ch;
	margin: var(--amv-s5) auto 0;
	color: var(--amv-text-muted);
	font-size: clamp(15px, 2vw, 17px);
}

.amv-hero-tag em {
	color: var(--amv-text);
	font-style: normal;
}

.amv-pill {
	display: inline-flex;
	align-items: center;
	margin: 0 auto var(--amv-s4);
	padding: 5px 12px;
	background: rgba(var(--amv-g-rgb), .12);
	border: 1px solid rgba(var(--amv-g-rgb), .3);
	border-radius: var(--amv-r-pill);
	color: var(--amv-g);
	font-family: var(--amv-mono);
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.amv-hero-cta {
	display: flex;
	gap: var(--amv-s3);
	flex-wrap: wrap;
	justify-content: center;
	margin-top: var(--amv-s6);
}

/* Animated gradient on the mark */
@keyframes amv-s1 {
	0% { stop-color: var(--amv-g); }
	33% { stop-color: var(--amv-b); }
	66% { stop-color: var(--amv-illustrative); }
	100% { stop-color: var(--amv-g); }
}

@keyframes amv-s2 {
	0% { stop-color: var(--amv-b); }
	33% { stop-color: var(--amv-illustrative); }
	66% { stop-color: var(--amv-g); }
	100% { stop-color: var(--amv-b); }
}

@keyframes amv-s3 {
	0% { stop-color: var(--amv-illustrative); }
	33% { stop-color: var(--amv-g); }
	66% { stop-color: var(--amv-b); }
	100% { stop-color: var(--amv-illustrative); }
}

.amv-hero-mark.is-animated .amv-st1 { animation: amv-s1 9s linear infinite; }
.amv-hero-mark.is-animated .amv-st2 { animation: amv-s2 9s linear infinite; }
.amv-hero-mark.is-animated .amv-st3 { animation: amv-s3 9s linear infinite; }

/* --------------------------------------------------------------------------
   Section furniture
   -------------------------------------------------------------------------- */

.amv-main {
	padding: var(--amv-s8) 0;
}

.amv-heading {
	margin-bottom: var(--amv-s6);
	text-align: center;
}

.amv-eyebrow {
	margin-bottom: 10px;
	color: var(--amv-text-faint);
	font-family: var(--amv-mono);
	font-size: 11px;
	letter-spacing: .2em;
	line-height: 1;
	text-transform: uppercase;
}

.amv-frame {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--amv-s4) var(--amv-s5);
}

.amv-frame h1,
.amv-frame h2,
.amv-frame h3 {
	font-size: clamp(20px, 3.4vw, 32px);
	font-weight: 300;
	letter-spacing: .03em;
	line-height: 1.05;
	text-transform: uppercase;
	text-align: center;
}

.amv-cnr {
	position: absolute;
	width: 12px;
	height: 12px;
	color: var(--amv-g);
}

.amv-cnr svg {
	display: block;
	width: 100%;
	height: 100%;
}

.amv-cnr--tl { top: 0; left: 0; }
.amv-cnr--tr { top: 0; right: 0; transform: scaleX(-1); }
.amv-cnr--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.amv-cnr--br { bottom: 0; right: 0; transform: scale(-1, -1); }

.amv-rule {
	width: min(420px, 80%);
	height: 1.5px;
	margin: 0 auto;
	background: linear-gradient(90deg, transparent, var(--amv-g) 8%, var(--amv-g) 92%, transparent);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.amv-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: var(--amv-r-sm);
	font-family: var(--amv-font);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: transform var(--amv-t-standard) var(--amv-ease), background var(--amv-t-standard) var(--amv-ease), color var(--amv-t-standard) var(--amv-ease), border-color var(--amv-t-standard) var(--amv-ease);
}

.amv-btn--primary {
	background: var(--amv-g);
	color: #031309;
}

.amv-btn--primary:hover,
.amv-btn--primary:focus-visible {
	color: #031309;
}

.amv-btn--ghost {
	background: transparent;
	color: var(--amv-g);
	border-color: var(--amv-border-strong);
}

.amv-btn--ghost:hover,
.amv-btn--ghost:focus-visible {
	color: var(--amv-g);
	border-color: var(--amv-g);
}

.amv-btn:hover {
	transform: translateY(-1px);
}

.amv-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(var(--amv-g-rgb), .3);
}

/* --------------------------------------------------------------------------
   Editor content
   -------------------------------------------------------------------------- */

.amv-prose {
	max-width: 68ch;
	margin: 0 auto;
	color: var(--amv-text-muted);
	font-size: 15px;
	line-height: 1.75;
}

.amv-prose > * + * {
	margin-top: var(--amv-s4);
}

.amv-prose h2,
.amv-prose h3,
.amv-prose h4 {
	margin-top: var(--amv-s7);
	color: var(--amv-text);
	text-transform: uppercase;
	line-height: 1.15;
}

.amv-prose h2 { font-size: 24px; font-weight: 600; }
.amv-prose h3 { font-size: 20px; font-weight: 400; }
.amv-prose h4 { font-size: 17px; font-weight: 600; }

.amv-prose strong {
	color: var(--amv-text);
	font-weight: 600;
}

.amv-prose blockquote {
	margin: var(--amv-s5) 0;
	padding-left: var(--amv-s4);
	border-left: 2px solid var(--amv-g);
	color: var(--amv-text);
	font-size: 17px;
	font-style: italic;
}

.amv-prose code,
.amv-prose pre {
	font-family: var(--amv-mono);
	font-size: 13px;
}

.amv-prose pre {
	overflow-x: auto;
	padding: var(--amv-s4);
	background: var(--amv-surface-1);
	border: 1px solid var(--amv-border);
	border-radius: var(--amv-r-md);
}

.amv-prose img {
	max-width: 100%;
	height: auto;
	border-radius: var(--amv-r-md);
}

.amv-prose ul,
.amv-prose ol {
	padding-left: var(--amv-s5);
}

.amv-prose li + li {
	margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Listings
   -------------------------------------------------------------------------- */

.amv-list {
	display: grid;
	gap: var(--amv-s5);
	max-width: 68ch;
	margin: 0 auto;
}

.amv-list-item {
	padding: var(--amv-s5);
	background: var(--amv-surface-1);
	border: 1px solid var(--amv-border);
	border-left: 3px solid var(--amv-g);
	border-radius: var(--amv-r-md);
	transition: border-color var(--amv-t-standard) var(--amv-ease);
}

.amv-list-title {
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
}

.amv-list-title a {
	color: var(--amv-text);
	text-decoration: none;
}

.amv-list-title a:hover,
.amv-list-title a:focus-visible {
	color: var(--amv-g);
}

.amv-list-meta {
	margin-top: 4px;
	color: var(--amv-text-faint);
	font-family: var(--amv-mono);
	font-size: 11px;
	letter-spacing: .06em;
}

.amv-list-excerpt {
	margin-top: var(--amv-s3);
	color: var(--amv-text-muted);
	font-size: 14px;
}

.amv-empty {
	color: var(--amv-text-muted);
	text-align: center;
}

.amv-main .navigation.pagination {
	margin-top: var(--amv-s7);
	text-align: center;
}

.amv-main .nav-links .page-numbers {
	display: inline-block;
	padding: 6px 12px;
	color: var(--amv-text-muted);
	font-family: var(--amv-mono);
	font-size: 12px;
	text-decoration: none;
}

.amv-main .nav-links .page-numbers.current {
	color: var(--amv-g);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.amv-footer {
	position: relative;
	margin-top: var(--amv-s6);
	padding: var(--amv-s8) 0 76px;
	text-align: center;
	border-top: 1px solid var(--amv-border);
}

/* Translucent plate so copy stays legible while the nebula still shows through. */
.amv-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: linear-gradient(to bottom, rgba(2, 3, 8, .55), rgba(2, 3, 8, .82) 45%, rgba(2, 3, 8, .9));
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.amv-footer .amv-wrap {
	position: relative;
	z-index: 1;
}

.amv-footer-widgets {
	margin-bottom: var(--amv-s6);
	color: var(--amv-text-muted);
	font-size: 14px;
}

.amv-widget-title {
	margin-bottom: var(--amv-s2);
	color: var(--amv-text-faint);
	font-family: var(--amv-mono);
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.amv-footer-mark {
	width: 52px;
	margin: 0 auto var(--amv-s4);
	line-height: 0;
	perspective: 520px;
	perspective-origin: 50% 50%;
}

.amv-footer-mark-3d {
	transform-style: preserve-3d;
}

.amv-footer-mark-3d.is-spinning {
	animation: amv-spin3d 14s linear infinite;
	filter: drop-shadow(0 0 14px rgba(var(--amv-g-rgb), .35));
}

@keyframes amv-spin3d {
	0% { transform: rotateY(0deg) rotateX(6deg); }
	50% { transform: rotateY(180deg) rotateX(-6deg); }
	100% { transform: rotateY(360deg) rotateX(6deg); }
}

.amv-footer-wordmark {
	font-size: 16px;
	font-weight: 200;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.amv-footer-wordmark .amv-w2 {
	font-weight: 800;
}

.amv-footer-tagline {
	max-width: 60ch;
	margin: var(--amv-s3) auto 0;
	color: var(--amv-text-faint);
	font-family: var(--amv-mono);
	font-size: 12px;
	letter-spacing: .04em;
}

.amv-footer-tagline em {
	color: var(--amv-text-muted);
	font-style: normal;
}

.amv-footer-links {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;
	margin: var(--amv-s4) 0 0;
	padding: 0;
}

.amv-footer-links a {
	color: var(--amv-text-muted);
	font-family: var(--amv-mono);
	font-size: 10.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color var(--amv-t-micro) var(--amv-ease);
}

.amv-footer-links a:hover,
.amv-footer-links a:focus-visible {
	color: var(--amv-g);
}

.amv-copyright {
	margin-top: var(--amv-s5);
	color: var(--amv-text-muted);
	font-family: var(--amv-mono);
	font-size: 10px;
	letter-spacing: .06em;
	opacity: .8;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

/* Content is visible by default and only hidden once JS has confirmed it can
   reveal it again — .amv-js is set by an inline script in the head. Without
   this guard, a failed script or a disabled effect leaves the page blank. */
.amv-js .amv-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s var(--amv-ease), transform .7s var(--amv-ease);
}

.amv-js .amv-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* Once revealed, drop the transition so hover transforms stay snappy. */
.amv-js .amv-reveal.is-settled {
	opacity: 1;
	transform: none;
	transition: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 820px) {
	.amv-nav .amv-wrap {
		flex-wrap: wrap;
		gap: 6px;
		padding-top: 6px;
		padding-bottom: 6px;
	}

	.amv-nav {
		height: auto;
		position: relative;
	}

	.amv-nav.is-tight {
		height: auto;
	}

	.amv-navlinks {
		width: 100%;
		justify-content: center;
	}

	.amv-navlinks a {
		padding: 7px 9px;
		font-size: 9.5px;
	}

	.amv-hero {
		padding: var(--amv-s6) 0;
	}
}

@media (max-width: 480px) {
	.amv-hero-mark {
		width: 72px;
	}
}

/* --------------------------------------------------------------------------
   Reduced motion — the scripts also bail out, this covers the CSS half
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	body.amv *,
	body.amv *::before,
	body.amv *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}

	.amv-js .amv-reveal {
		opacity: 1;
		transform: none;
	}

	.amv-footer-mark-3d.is-spinning {
		animation: none !important;
	}

	#amv-deep,
	#amv-neb {
		opacity: .6;
	}
}
