/* ============================================================
   MONSTERS OF TYPE — Homepage v2 Styles
   Template: template-homepage-v2.php
   ============================================================ */


/* ─── Fixed page background (does not scroll) ──────────────── */
.mot-portal-page-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	background-color: var(--mot-black);
	background-image: var(--mot-portal-page-bg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.45;
	pointer-events: none;
}

.mot-portal-page-veil {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.5) 0%,
		rgba(0, 0, 0, 0.65) 40%,
		rgba(0, 0, 0, 0.82) 100%
	);
}

.mot-homepage-v2 .mot-nav,
.mot-homepage-v2 .mot-portal-main,
.mot-homepage-v2 .mot-footer {
	position: relative;
	z-index: 1;
}


/* ─── Slim sticky nav (logo + Discord) ─────────────────────── */
.mot-homepage-v2 .mot-nav--portal-slim {
	background: transparent;
	border-bottom: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.mot-homepage-v2 .mot-nav--portal-slim::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.82) 0%,
		rgba(0, 0, 0, 0.45) 45%,
		transparent 100%
	);
}

.mot-nav--portal-slim .mot-nav__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	padding-block: clamp(0.85rem, 2vw, 1.25rem);
}

.mot-nav--portal-slim .mot-home-nav__logo img {
	width: clamp(3rem, 6vw, var(--mot-nav-logo-size));
}

.mot-nav--portal-slim .mot-home-nav__discord {
	justify-self: end;
}


/* ─── Statement hero (faded image + nav text) ────────────────
   Breakpoint: 680px
   Desktop/tablet — vertically centered, two-line headline, pillars + bolts inline
   Mobile — top-aligned, stacked headline, one pillar per line
   ─────────────────────────────────────────────────────────── */
.mot-portal-statement {
	position: relative;
	display: flex;
	justify-content: center;
	min-height: 100vh;
	min-height: 100dvh;
	padding-block: clamp(3rem, 8vh, 5rem);
	background: transparent;
}

.mot-portal-statement__content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: none;
	padding-inline: clamp(0.75rem, 3vw, 2.5rem);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(0.6rem, 1.5vh, 1rem);
}

.mot-portal-statement__logo img {
	height: auto;
	display: block;
}

.mot-portal-statement__headline {
	width: 100%;
	margin: 0;
	color: var(--mot-white);
	line-height: 1.05;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.mot-br-mobile {
	display: none;
}

html.mot-template .mot-portal-statement .mot-home-nav__link.mot-text--green:hover,
html.mot-template .mot-portal-statement .mot-home-nav__link.mot-text--orange:hover,
html.mot-template .mot-portal-statement .mot-home-nav__link.mot-text--pink:hover,
html.mot-template .mot-portal-statement .mot-home-nav__link.mot-text--green:focus-visible,
html.mot-template .mot-portal-statement .mot-home-nav__link.mot-text--orange:focus-visible,
html.mot-template .mot-portal-statement .mot-home-nav__link.mot-text--pink:focus-visible {
	color: var(--mot-white);
	opacity: 1;
}

.mot-portal-statement__discord {
	color: var(--mot-neon-green);
	text-decoration: none;
	border: 1px solid var(--mot-neon-green);
}

/* Desktop + tablet */
@media (min-width: 681px) {
	.mot-portal-statement {
		align-items: center;
	}

	.mot-portal-statement__logo img {
		width: clamp(4rem, 9vw, 7rem);
		margin-bottom: clamp(2rem, 6vh, 3rem);
	}

	.mot-portal-statement__headline {
		font-size: clamp(2rem, 5vw, 3.5rem);
	}

	.mot-portal-statement .mot-home-nav__pillars {
		display: block;
		white-space: nowrap;
	}

	.mot-portal-statement__discord {
		font-size: 1rem;
		padding: 1rem;
		margin-top: clamp(4rem, 12vh, 6rem);
	}
}

/* Mobile */
@media (max-width: 680px) {
	.mot-portal-statement {
		align-items: flex-start;
	}

	.mot-portal-statement__logo img {
		width: clamp(6rem, 24vw, 8rem);
		margin-bottom: clamp(1rem, 6vh, 2rem);
	}

	.mot-portal-statement__headline {
		font-size: clamp(2.25rem, 12vw, 4rem);
	}

	.mot-br-mobile {
		display: block;
	}

	.mot-portal-statement .mot-home-nav__pillars {
		display: block;
		white-space: normal;
	}

	.mot-portal-statement .mot-home-nav__pillars .mot-home-nav__link {
		display: block;
	}

	.mot-portal-statement .mot-home-nav__pillars .mot-home-nav__sep {
		display: none;
	}

	.mot-portal-statement__discord {
		font-size: 0.75rem;
		letter-spacing: 0.08em;
		padding: 0.45rem 0.7rem;
		margin-top: clamp(3rem, 8vh, 5rem);
		align-self: center;
		width: auto;
		max-width: max-content;
	}
}


/* ─── Doors (placeholder — scroll testing) ───────────────── */
.mot-homepage-v2 .mot-footer {
	background: rgba(0, 0, 0, 0.88);
}

.mot-home-doors--test {
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

.mot-home-doors--test .mot-home-doors__grid {
	align-items: stretch;
}

.mot-home-doors__intro {
	margin: 0 0 1rem;
	text-align: center;
	color: var(--mot-white);
}

.mot-home-doors__block {
	aspect-ratio: 1 / 1;
	width: min(100%, 320px);
	margin-inline: auto;
	padding: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--mot-black);
	border: none;
	border-radius: 50%;
}

.mot-home-doors__name {
	margin: 0;
	line-height: 1;
	color: var(--mot-black);
}

.mot-home-doors__block--community {
	background: var(--mot-neon-green);
}

.mot-home-doors__block--foundry {
	background: var(--mot-vibrant-orange);
}

.mot-home-doors__block--studio {
	background: var(--mot-hot-pink);
}
