/* ============================================================
   MONSTERS OF TYPE — Main Stylesheet
   Child theme of Kadence
   ============================================================ */

/* ─── Self-hosted display fonts ──────────────────────────────
   MoT Sandman Retrogram  → eyebrow / mono utility
   Bruphy                 → display headings
   UI sans (Archivo)      → loaded via Google Fonts in functions.php
   ─────────────────────────────────────────────────────────── */

@font-face {
	font-family: 'MoT Sandman Retrogram';
	src: url('../fonts/MoTSandman-Retrogram.woff2') format('woff2'),
	     url('../fonts/MoTSandman-Retrogram.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Bruphy';
	src: url('../fonts/Bruphy-Bold.woff2') format('woff2'),
	     url('../fonts/Bruphy-Bold.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}


/* ─── Design Tokens ───────────────────────────────────────── */
:root {
	/* Brand colors */
	--mot-neon-green:      #56FF00;
	--mot-hot-pink:        #FF33CC;
	--mot-vibrant-orange:  #ff8C00;
	--mot-bright-yellow:   #FFEA00;

	/* Neutrals */
	--mot-black:       #0d0d0d;
	--mot-off-black:   #0d0d0d;
	--mot-dark:        #1a1a1a;
	--mot-mid:         #2e2e2e;
	--mot-border:      #434343;
	--mot-muted:       #888888;
	--mot-light-gray:  #c8c8c8;
	--mot-off-white:   #f0ede8;
	--mot-white:       #f0ede8;

	/* Pillar + brand accents — see mot_site_spec.md "Pillar color system" */
	--mot-pillar-community: var(--mot-neon-green);
	--mot-pillar-foundry:   var(--mot-vibrant-orange);
	--mot-pillar-studio:    var(--mot-hot-pink);
	--mot-brand-accent:     var(--mot-neon-green);
	--mot-accent:           var(--mot-vibrant-orange); /* foundry / shop UI */
	--mot-accent-2:         var(--mot-hot-pink);
	--mot-accent-3:         var(--mot-neon-green);
	--mot-error:            #e05252;

	/* Typography */
	--mot-display: 	   'Bruphy', Georgia, serif;
	--mot-sans:        'Archivo', system-ui, sans-serif;
	--mot-eyebrow:     'MoT Sandman Retrogram', system-ui, sans-serif;
	/* MoT Sandman doubles as our "mono-style" face — used for utility numerics,
	   labels, codes, counters, etc. Not a true fixed-width font; pair with
	   `font-variant-numeric: tabular-nums` where stable digit widths matter. */
	--mot-mono:        'MoT Sandman Retrogram', ui-monospace, 'SF Mono', Menlo, monospace;

	/* Spacing */
	--mot-section:     clamp(4rem, 8vw, 8rem);
	--mot-pillar-pad-top:    clamp(2.5rem, 3.5vw, 4rem);
	--mot-pillar-pad-bottom: clamp(6rem, 12vw, 10rem);
	--mot-gutter:      clamp(1.25rem, 3vw, 2rem);
	--mot-max:         1320px;

	/* 12-column layout grid */
	--mot-grid-columns: 12;
	--mot-grid-gap:     clamp(1rem, 2vw, 1.5rem);

	/* Motion */
	--mot-ease:        cubic-bezier(0.16, 1, 0.3, 1);
	--mot-dur:         0.35s;

	/* Nav — solid black at top, transparent at bottom */
	--mot-nav-gradient: linear-gradient(
		to bottom,
		var(--mot-black) 0%,
		transparent 100%
	);
	--mot-nav-logo-size:  100px;
	--mot-nav-padding-y:  3rem;
	--mot-nav-height:     calc(var(--mot-nav-padding-y) * 2 + var(--mot-nav-logo-size));

	/* Top-of-page clearance that templates apply to their first section.
	   Defaults to the full nav height for the floating (out-of-flow) variant.
	   The solid (sticky, in-flow) variant overrides this to 0 below. */
	--mot-nav-space:      var(--mot-nav-height);
}

/* Solid nav participates in normal flow, so the first page section doesn't
   need to budget extra space for it. */
html:has(.mot-nav--solid) {
	--mot-nav-space: 0px;
}


/* ─── Reset / Base ────────────────────────────────────────── */
*, *::before, *::after {
	box-sizing: border-box;
}

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html.mot-template {
	scroll-padding-top: var(--mot-nav-scroll-offset, var(--mot-nav-height));
}

html.mot-template main {
	margin: 0;
	padding: 0;
}

html.mot-template:has(.mot-nav--home) {
	--mot-nav-scroll-offset: clamp(5.5rem, 12vw, 9rem);
}

/* Mobile: the standard nav collapses to logo + hamburger, so the real nav
   height is much smaller than the desktop-derived --mot-nav-height. Match it
   here so the sticky pillar strip pins flush against the nav (not pushed down
   to the desktop offset). Formula mirrors the mobile nav: logo + padding. */
@media (max-width: 680px) {
	html.mot-template:has(.mot-nav--home:not(.mot-nav--portal-slim)) {
		--mot-nav-height: calc(3.5rem + 2 * clamp(0.6rem, 2.5vw, 1rem));
	}
}

body {
	background-color: var(--mot-black);
	color: var(--mot-off-white);
	font-family: var(--mot-sans);
	/* Default body copy: 16px floor, 18px ceiling, fluid in between */
	font-size: clamp(1rem, 1.4vw, 1.125rem);
	line-height: 1.6;
	letter-spacing: 0.02em;
	margin: 0;
}

/* Beat Kadence body.page / customizer backgrounds on MoT templates */
html.mot-template body,
body.page.mot-community-page,
body.page.mot-homepage,
body.page.mot-contact-page,
body.page.mot-legal-page,
body.mot-legal-page,
body.mot-cart-page,
body.page.mot-cart-page,
body.mot-checkout-page,
body.page.mot-checkout-page,
body.mot-account-page,
body.page.mot-account-page,
body.page.mot-studio-page,
body.page.mot-studio,
body.mot-merch-product-page,
body.single-product.mot-merch-product-page {
	background-color: var(--mot-black);
}

/* Override Kadence body background */
.site {
	background-color: var(--mot-black);
}

img, video {
	max-width: 100%;
	display: block;
}

/* Beat Kadence: a { --global-palette-highlight }; :hover/:focus/:active { -alt } */
.mot-template a,
.mot-template a:visited {
	/* color: inherit; */
	text-decoration: none;
}

.mot-template a:focus,
.mot-template a:focus-visible,
.mot-template a:active {
	color: inherit;
}

.mot-template a:hover {
	color: inherit;
}

/* Pillar-tinted links (nav quicklinks, etc.) */
.mot-template a.mot-text--green,
.mot-template a.mot-text--green:visited,
.mot-template a.mot-text--green:hover,
.mot-template a.mot-text--green:focus,
.mot-template a.mot-text--green:focus-visible,
.mot-template a.mot-text--green:active {
	color: var(--mot-neon-green);
}

.mot-template a.mot-text--orange,
.mot-template a.mot-text--orange:visited,
.mot-template a.mot-text--orange:hover,
.mot-template a.mot-text--orange:focus,
.mot-template a.mot-text--orange:focus-visible,
.mot-template a.mot-text--orange:active {
	color: var(--mot-vibrant-orange);
}

.mot-template a.mot-text--pink,
.mot-template a.mot-text--pink:visited,
.mot-template a.mot-text--pink:hover,
.mot-template a.mot-text--pink:focus,
.mot-template a.mot-text--pink:focus-visible,
.mot-template a.mot-text--pink:active {
	color: var(--mot-hot-pink);
}

.mot-template a.mot-text--yellow,
.mot-template a.mot-text--yellow:visited,
.mot-template a.mot-text--yellow:hover,
.mot-template a.mot-text--yellow:focus,
.mot-template a.mot-text--yellow:focus-visible,
.mot-template a.mot-text--yellow:active {
	color: var(--mot-bright-yellow);
}


/* ─── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--mot-display);
	font-weight: 400;
	letter-spacing: -0.02em;
	color: var(--mot-white);
	margin-top: 0;
	line-height: .95 !important;
}

h1 {
	font-size: clamp(2.5rem, 6vw, 5rem);
	letter-spacing: -0.03em;
	margin-bottom: 1rem;
}

h2 {
	font-size: clamp(1.75rem, 3vw, 3rem);
	margin-bottom: 0.75rem;
}

h3 {
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	line-height: 1.1;
	margin-bottom: 0.5rem;
}

.mot-display {
	font-family: var(--mot-display);
	font-size: clamp(3.5rem, 9vw, 9rem);
	line-height: 0.95;
	letter-spacing: -0.03em;
	color: var(--mot-white);
}

/* Optional utilities — same scale as h1/h2 when you need a different element */
.mot-heading-xl {
	font-family: var(--mot-display);
	font-size: clamp(2.5rem, 6vw, 5rem);
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.mot-heading-lg {
	font-family: var(--mot-display);
	font-size: clamp(1.75rem, 3vw, 3rem);
	line-height: 0.95;
}

.mot-label,
.mot-section-label {
	font-family: var(--mot-eyebrow);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mot-muted);
}

.mot-section-label {
	letter-spacing: 0.2em;
	margin: 0 0 1rem;
	border-bottom: 1px solid var(--mot-border);
	padding-bottom: 1.5rem;
}
.mot-text--green {
	color: var(--mot-neon-green);
}
.mot-text--pink {
	color: var(--mot-hot-pink);
}
.mot-text--orange {
	color: var(--mot-vibrant-orange);
}
.mot-text--yellow {
	color: var(--mot-bright-yellow);
}

/* ─── Pillar page hero (Foundry, Community, Studio) ───────── */
/* Nav + one accent bar (::after) stick together as a single unit. */
.mot-pillar-chrome {
	position: sticky;
	top: 0;
	z-index: 100;
}

.mot-pillar-chrome::after {
	content: '';
	display: block;
	height: 30px;
	width: 100%;
	background: var(--mot-border);
}

.mot-pillar-chrome--community::after { background: var(--mot-pillar-community); }
.mot-pillar-chrome--foundry::after   { background: var(--mot-vibrant-orange); }
.mot-pillar-chrome--studio::after    { background: var(--mot-pillar-studio); }

.mot-pillar-chrome > .mot-nav--solid {
	position: static;
	top: auto;
	border-bottom: none;
}

/* Legacy strip markup (old hero partial) — hide if still present */
main .mot-pillar-strip {
	display: none !important;
}

.mot-pillar-hero {
	padding-top: var(--mot-pillar-pad-top);
	padding-bottom: clamp(3.5rem, 4.5vw, 5rem);
	background: var(--mot-black);
	border-top: none;
}

.mot-pillar-hero__inner {
	width: 100%;
	max-width: var(--mot-max);
	margin-inline: auto;
	padding-inline: var(--mot-gutter);
}

.mot-pillar-hero--foundry {
	border-top: none;
}

.mot-pillar-hero--foundry .mot-section-label {
	color: var(--mot-vibrant-orange);
}

.mot-pillar-hero--community {
	border-top: none;
}

.mot-pillar-hero--community.mot-pillar-hero--has-bg,
.mot-pillar-hero--studio.mot-pillar-hero--has-bg,
.mot-pillar-hero--foundry.mot-pillar-hero--has-bg {
	position: relative;
	background: var(--mot-pillar-hero-bg) no-repeat center var(--mot-pillar-hero-bg-position, center) / cover;
}

.mot-pillar-hero--community.mot-pillar-hero--has-bg::before,
.mot-pillar-hero--studio.mot-pillar-hero--has-bg::before,
.mot-pillar-hero--foundry.mot-pillar-hero--has-bg::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, var(--mot-pillar-hero-overlay, 0.85));
	pointer-events: none;
	z-index: 0;
}

.mot-pillar-hero--community.mot-pillar-hero--has-bg .mot-pillar-hero__inner,
.mot-pillar-hero--studio.mot-pillar-hero--has-bg .mot-pillar-hero__inner,
.mot-pillar-hero--foundry.mot-pillar-hero--has-bg .mot-pillar-hero__inner {
	position: relative;
	z-index: 1;
}

.mot-pillar-hero--community,
.mot-pillar-hero--foundry,
.mot-pillar-hero--studio {
	padding-bottom: var(--mot-pillar-pad-bottom);
}

.mot-pillar-hero--community .mot-section-label {
	color: var(--mot-pillar-community);
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0.75rem;
}

.mot-pillar-hero--studio {
	border-top: none;
}

.mot-pillar-hero--studio .mot-section-label {
	color: var(--mot-pillar-studio);
}

.mot-pillar-hero .mot-section-label {
	margin: 0 0 0.75rem;
	border-bottom-color: var(--mot-border);
}

/* Pillar hero headline = plain h1; copy column uses global h2/p (no hero typography overrides) */
.mot-pillar-hero__sub,
.mot-pillar-hero__band-copy {
	margin: 0;
}

/* Headline sits full-width above; copy + aside columns align at the text (all pillar pages) */
.mot-pillar-hero__columns {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(var(--mot-grid-columns), minmax(0, 1fr));
	column-gap: var(--mot-grid-gap);
	align-items: start;
}

.mot-pillar-hero__main {
	grid-column: 1 / span 7;
	min-width: 0;
}

.mot-pillar-hero__columns > .mot-pillar-hero__proof {
	grid-column: 9 / span 4;
	align-self: start;
}

.mot-pillar-hero__main .mot-pillar-hero__lead {
	display: block;
	margin-top: 0;
}

.mot-pillar-hero__main .mot-pillar-hero__sub-col {
	grid-column: unset;
	min-width: 0;
}

.mot-pillar-hero__lead {
	display: grid;
	grid-template-columns: repeat(var(--mot-grid-columns), minmax(0, 1fr));
	column-gap: var(--mot-grid-gap);
	align-items: start;
}

.mot-pillar-hero__lead .mot-pillar-hero__sub-col {
	grid-column: 1 / span 6;
	min-width: 0;
}

/* Foundry structured hero — spacing between sub / band / CTA (editor copy uses global p) */
.mot-pillar-hero__sub-col .mot-pillar-hero__sub,
.mot-pillar-hero__sub-col .mot-pillar-hero__band-copy {
	margin: 0;
}

.mot-pillar-hero__sub-col .mot-pillar-hero__sub + .mot-pillar-hero__band-copy,
.mot-pillar-hero__sub-col .mot-pillar-hero__band-copy + .mot-pillar-hero__cta,
.mot-pillar-hero__sub-col .mot-pillar-hero__sub + .mot-pillar-hero__cta {
	margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

.mot-pillar-hero__sub-col strong {
	font-weight: 600;
	color: var(--mot-white);
}

.mot-pillar-hero__sub-col h2 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
}

.mot-pillar-hero__sub-col h2 .mot-btn,
.mot-pillar-gallery-cta .mot-pillar-hero__cta .mot-btn {
	position: relative;
	top: 0.125rem;
}

.mot-pillar-hero__sub-col .mot-pillar-hero__cta {
	margin-top: clamp(0.75rem, 2vw, 1.25rem);
}

.mot-pillar-hero__proof {
	display: flex;
	flex-direction: column;
	border-left: 1px solid var(--mot-border);
	padding-left: var(--mot-grid-gap);
}

.mot-pillar-hero__proof-stat {
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--mot-border);
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.85rem;
}

.mot-pillar-hero__proof-stat:first-child {
	padding-top: 0;
}

.mot-pillar-hero__proof-stat:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.mot-pillar-hero__proof-stat .mot-pillar-hero__proof-number {
	margin: 0;
	font-size: clamp(1.75rem, 3vw, 3rem);
}

.mot-pillar-hero--community .mot-pillar-hero__proof-number {
	color: var(--mot-pillar-community);
}

.mot-pillar-hero--foundry .mot-pillar-hero__proof-number {
	color: var(--mot-vibrant-orange);
}

.mot-pillar-hero--studio .mot-pillar-hero__proof-number {
	color: var(--mot-pillar-studio);
}

.mot-pillar-hero__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
}

.mot-pillar-hero__cta h2 {
	margin: 0;
}

.mot-pillar-hero__cta .mot-btn {
	flex-shrink: 0;
}

.mot-pillar-hero--community .mot-pillar-hero__cta .mot-btn:visited,
.mot-pillar-hero--community .mot-pillar-hero__cta .mot-btn:focus,
.mot-pillar-hero--community .mot-pillar-hero__cta .mot-btn:active {
	color: var(--mot-black);
	background: var(--mot-neon-green);
}

/* Studio hero — CTA buttons pink (overrides mot-btn--green from migrated editor HTML) */
.mot-pillar-hero--studio .mot-pillar-hero__sub-col .mot-btn,
.mot-pillar-hero--studio .mot-pillar-hero__cta .mot-btn {
	--mot-btn-color: var(--mot-pillar-studio);
}

.mot-pillar-hero--studio .mot-pillar-hero__sub-col a.mot-btn--solid,
.mot-pillar-hero--studio .mot-pillar-hero__sub-col a.mot-btn--solid:visited,
.mot-pillar-hero--studio .mot-pillar-hero__sub-col a.mot-btn--solid:focus,
.mot-pillar-hero--studio .mot-pillar-hero__sub-col a.mot-btn--solid:focus-visible,
.mot-pillar-hero--studio .mot-pillar-hero__sub-col a.mot-btn--solid:active,
.mot-pillar-hero--studio .mot-pillar-hero__cta a.mot-btn--solid,
.mot-pillar-hero--studio .mot-pillar-hero__cta a.mot-btn--solid:visited,
.mot-pillar-hero--studio .mot-pillar-hero__cta a.mot-btn--solid:focus,
.mot-pillar-hero--studio .mot-pillar-hero__cta a.mot-btn--solid:focus-visible,
.mot-pillar-hero--studio .mot-pillar-hero__cta a.mot-btn--solid:active {
	color: var(--mot-black);
	background: var(--mot-pillar-studio);
	border-color: var(--mot-pillar-studio);
}

/* Foundry hero — CTA buttons orange */
.mot-pillar-hero--foundry .mot-pillar-hero__sub-col .mot-btn,
.mot-pillar-hero--foundry .mot-pillar-hero__cta .mot-btn {
	--mot-btn-color: var(--mot-pillar-foundry);
}

.mot-pillar-hero--foundry .mot-pillar-hero__sub-col a.mot-btn--solid,
.mot-pillar-hero--foundry .mot-pillar-hero__sub-col a.mot-btn--solid:visited,
.mot-pillar-hero--foundry .mot-pillar-hero__sub-col a.mot-btn--solid:focus,
.mot-pillar-hero--foundry .mot-pillar-hero__sub-col a.mot-btn--solid:focus-visible,
.mot-pillar-hero--foundry .mot-pillar-hero__sub-col a.mot-btn--solid:active,
.mot-pillar-hero--foundry .mot-pillar-hero__cta a.mot-btn--solid,
.mot-pillar-hero--foundry .mot-pillar-hero__cta a.mot-btn--solid:visited,
.mot-pillar-hero--foundry .mot-pillar-hero__cta a.mot-btn--solid:focus,
.mot-pillar-hero--foundry .mot-pillar-hero__cta a.mot-btn--solid:focus-visible,
.mot-pillar-hero--foundry .mot-pillar-hero__cta a.mot-btn--solid:active {
	color: var(--mot-black);
	background: var(--mot-pillar-foundry);
	border-color: var(--mot-pillar-foundry);
}

@media (max-width: 900px) {
	.mot-pillar-hero__lead {
		--mot-grid-columns: 6;
	}

	.mot-pillar-hero__columns {
		--mot-grid-columns: 6;
	}

	.mot-pillar-hero__main,
	.mot-pillar-hero__columns > .mot-pillar-hero__proof,
	.mot-pillar-hero__sub-col {
		grid-column: 1 / -1;
	}

	/* Full-width trust band — one stat per row, centered (not desktop sidebar) */
	.mot-pillar-hero__proof {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		text-align: center;
		width: calc(100% + 2 * var(--mot-gutter));
		margin-inline: calc(-1 * var(--mot-gutter));
		margin-top: clamp(2rem, 6vw, 3.5rem);
		padding-inline: var(--mot-gutter);
		padding-block: clamp(1.5rem, 4vw, 2rem);
		border-left: none;
		border-top: 1px solid var(--mot-border);
		border-bottom: 1px solid var(--mot-border);
	}

	.mot-pillar-hero__proof-stat {
		flex-direction: column;
		align-items: center;
		gap: 0.35rem;
		padding: clamp(1.25rem, 4vw, 1.75rem) 0;
		border-bottom: 1px solid var(--mot-border);
	}

	.mot-pillar-hero__proof-stat:first-child {
		padding-top: 0;
	}

	.mot-pillar-hero__proof-stat:last-child {
		padding-bottom: 0;
		border-bottom: none;
	}

	.mot-pillar-hero__proof-stat .mot-pillar-hero__proof-number {
		font-size: clamp(2rem, 8vw, 2.75rem);
		line-height: 1.05;
	}

	.mot-pillar-hero__proof-stat .mot-pillar-hero__proof-label {
		font-size: 0.75rem;
		letter-spacing: 0.12em;
		line-height: 1.35;
	}
}

@media (max-width: 600px) {
	.mot-pillar-hero__lead {
		--mot-grid-columns: 1;
	}

	/* CTA heading (e.g. "Come hang.") sits well below the h1 on mobile.
	   Covers whatever heading level the admin copy uses (h1/h2/h3). */
	.mot-pillar-hero__sub-col h1,
	.mot-pillar-hero__sub-col h2,
	.mot-pillar-hero__sub-col h3 {
		font-size: clamp(1.75rem, 7vw, 2.25rem);
	}
}

p {
	font-family: var(--mot-sans);
	font-size: clamp(1rem, 1.4vw, 1.125rem);
	line-height: 1.7;
	margin-top: 0;
	margin-bottom: 1.25em;
	color: var(--mot-light-gray);
}

p:last-child {
	margin-bottom: 0;
}

.mot-text-sm {
	font-size: 0.875rem;
	line-height: 1.5;
}

.mot-text-muted {
	color: var(--mot-muted);
}

.mot-stat-number {
	font-family: var(--mot-display);
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--mot-neon-green);
	margin: 0 0 0.25rem;
}


/* ─── Layout: 12-column grid ─────────────────────────────────
   .mot-container     — capped content width, 12 columns
   .mot-grid-bleed    — full viewport width, same column rhythm
   .mot-col-{1–12}    — span columns; .mot-col-start-{1–12} to offset
   Unmarked children default to full width (span 12).
   ─────────────────────────────────────────────────────────── */
.mot-container,
.mot-grid-bleed,
.mot-pillar-hero__inner {
	display: grid;
	grid-template-columns: repeat(var(--mot-grid-columns), minmax(0, 1fr));
	column-gap: var(--mot-grid-gap);
	row-gap: var(--mot-grid-gap);
}

.mot-container {
	width: 100%;
	max-width: var(--mot-max);
	margin-inline: auto;
	padding-inline: var(--mot-gutter);
	padding-block: var(--mot-gutter);
}

.mot-grid-bleed {
	width: 100%;
	padding-inline: var(--mot-gutter);
}

.mot-container > :not([class*="mot-col-"]),
.mot-grid-bleed > :not([class*="mot-col-"]),
.mot-pillar-hero__inner > :not([class*="mot-col-"]) {
	grid-column: 1 / -1;
}

/* Use longhand span so .mot-col-start-* is not reset by the grid-column shorthand */
.mot-col-1  { grid-column-end: span 1; }
.mot-col-2  { grid-column-end: span 2; }
.mot-col-3  { grid-column-end: span 3; }
.mot-col-4  { grid-column-end: span 4; }
.mot-col-5  { grid-column-end: span 5; }
.mot-col-6  { grid-column-end: span 6; }
.mot-col-7  { grid-column-end: span 7; }
.mot-col-8  { grid-column-end: span 8; }
.mot-col-9  { grid-column-end: span 9; }
.mot-col-10 { grid-column-end: span 10; }
.mot-col-11 { grid-column-end: span 11; }
.mot-col-12 { grid-column-end: span 12; }

.mot-col-start-1  { grid-column-start: 1; }
.mot-col-start-2  { grid-column-start: 2; }
.mot-col-start-3  { grid-column-start: 3; }
.mot-col-start-4  { grid-column-start: 4; }
.mot-col-start-5  { grid-column-start: 5; }
.mot-col-start-6  { grid-column-start: 6; }
.mot-col-start-7  { grid-column-start: 7; }
.mot-col-start-8  { grid-column-start: 8; }
.mot-col-start-9  { grid-column-start: 9; }
.mot-col-start-10 { grid-column-start: 10; }
.mot-col-start-11 { grid-column-start: 11; }
.mot-col-start-12 { grid-column-start: 12; }

.mot-section {
	padding-block: 0;
}

/* Tablet: 6-column grid */
@media (max-width: 900px) {
	.mot-container,
	.mot-grid-bleed,
	.mot-pillar-hero__inner {
		--mot-grid-columns: 6;
	}

	.mot-col-3 { grid-column-end: span 3; }
	.mot-col-4,
	.mot-col-5,
	.mot-col-6,
	.mot-col-7,
	.mot-col-8,
	.mot-col-9,
	.mot-col-10,
	.mot-col-11,
	.mot-col-12 { grid-column-end: span 6; }
}

/* Mobile: single column */
@media (max-width: 600px) {
	.mot-container,
	.mot-grid-bleed,
	.mot-pillar-hero__inner {
		--mot-grid-columns: 1;
	}

	.mot-container [class*="mot-col-"],
	.mot-grid-bleed [class*="mot-col-"],
	.mot-pillar-hero__inner [class*="mot-col-"] {
		grid-column: 1 / -1;
		grid-column-start: auto;
	}
}

/* ─── Pillar photo grid (Community + Studio) ──────────────── */
.mot-community-grid,
.mot-studio-grid {
	background: var(--mot-dark);
	border-top: 2px solid var(--mot-border);
	border-bottom: 2px solid var(--mot-border);
	padding-block: var(--mot-grid-gap);
}

.mot-community-grid__item,
.mot-studio-grid__item {
	overflow: hidden;
	background: var(--mot-dark);
}

.mot-community-grid__item {
	aspect-ratio: 3 / 2;
}

.mot-studio-grid__item {
	aspect-ratio: 2 / 3;
}

.mot-community-grid__item img,
.mot-community-grid__item a,
.mot-studio-grid__item img,
.mot-studio-grid__item video,
.mot-studio-grid__item a {
	width: 100%;
	height: 100%;
	display: block;
}

.mot-community-grid__item a,
.mot-community-grid__item a:visited,
.mot-community-grid__item a:hover,
.mot-community-grid__item a:focus,
.mot-community-grid__item a:active,
.mot-studio-grid__item a,
.mot-studio-grid__item a:visited,
.mot-studio-grid__item a:hover,
.mot-studio-grid__item a:focus,
.mot-studio-grid__item a:active {
	color: inherit;
}

.mot-community-grid__item img,
.mot-studio-grid__item img,
.mot-studio-grid__item video {
	object-fit: cover;
	transition: transform 0.6s var(--mot-ease);
}

.mot-community-grid__item:hover img,
.mot-studio-grid__item:hover img,
.mot-studio-grid__item:hover video {
	transform: scale(1.04);
}

.mot-studio-grid__item--video {
	background: var(--mot-dark);
}

.mot-community-grid__item--placeholder,
.mot-studio-grid__item--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--mot-dark);
}

.mot-community-grid__item--placeholder span,
.mot-studio-grid__item--placeholder span {
	font-family: var(--mot-sans);
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mot-border);
}

@media (max-width: 900px) {
	.mot-community-grid__item,
	.mot-studio-grid__item {
		grid-column: span 3 !important;
	}
}

@media (max-width: 600px) {
	.mot-community-grid__item,
	.mot-studio-grid__item {
		grid-column: 1 / -1 !important;
	}
}

/* Post-gallery CTA (Community + Studio) */
.mot-pillar-gallery-cta {
	padding-block: clamp(2.5rem, 6vw, 4rem);
	border-top: 1px solid var(--mot-border);
}

.mot-pillar-gallery-cta .mot-pillar-hero__cta h2 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
	margin: 0;
	font-size: clamp(1.75rem, 3vw, 3rem);
}

.mot-pillar-gallery-cta--community .mot-pillar-hero__cta a.mot-btn--solid,
.mot-pillar-gallery-cta--community .mot-pillar-hero__cta a.mot-btn--solid:visited,
.mot-pillar-gallery-cta--community .mot-pillar-hero__cta a.mot-btn--solid:focus,
.mot-pillar-gallery-cta--community .mot-pillar-hero__cta a.mot-btn--solid:focus-visible,
.mot-pillar-gallery-cta--community .mot-pillar-hero__cta a.mot-btn--solid:active {
	color: var(--mot-black);
	background: var(--mot-neon-green);
	border-color: var(--mot-neon-green);
}

.mot-pillar-gallery-cta--studio .mot-pillar-hero__cta a.mot-btn--solid,
.mot-pillar-gallery-cta--studio .mot-pillar-hero__cta a.mot-btn--solid:visited,
.mot-pillar-gallery-cta--studio .mot-pillar-hero__cta a.mot-btn--solid:focus,
.mot-pillar-gallery-cta--studio .mot-pillar-hero__cta a.mot-btn--solid:focus-visible,
.mot-pillar-gallery-cta--studio .mot-pillar-hero__cta a.mot-btn--solid:active {
	color: var(--mot-black);
	background: var(--mot-pillar-studio);
	border-color: var(--mot-pillar-studio);
}

/* Legacy helpers — prefer .mot-col-* on .mot-container */
.mot-grid-2,
.mot-grid-3 {
	display: grid;
	gap: var(--mot-grid-gap);
}

.mot-grid-2 {
	grid-template-columns: repeat(2, 1fr);
}

.mot-grid-3 {
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
	.mot-grid-2,
	.mot-grid-3 {
		grid-template-columns: 1fr;
	}
}


/* ─── Buttons ─────────────────────────────────────────────────
   Color is driven by --mot-btn-color (defaults to brand green).
   Modifiers --orange / --pink / --green retint for pillar context.
   Modifier --solid swaps to filled style; hover always inverts.
   ─────────────────────────────────────────────────────────── */
.mot-btn {
	--mot-btn-color: var(--mot-brand-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.8125rem 1.75rem 0.6875rem;
	font-family: var(--mot-sans);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border: 1px solid var(--mot-btn-color);
	color: var(--mot-btn-color);
	background: transparent;
	cursor: pointer;
	transition: background var(--mot-dur) var(--mot-ease),
	            color var(--mot-dur) var(--mot-ease),
	            border-color var(--mot-dur) var(--mot-ease);
	text-decoration: none;
}

.mot-btn:hover,
a.mot-btn:hover {
	background: var(--mot-btn-color);
	color: var(--mot-black);
}

/* <a class="mot-btn"> — Kadence paints :focus/:active/:visited blue */
a.mot-btn,
a.mot-btn:visited {
	color: var(--mot-btn-color);
	background: transparent;
}

a.mot-btn:focus,
a.mot-btn:focus-visible,
a.mot-btn:active {
	color: var(--mot-btn-color);
	background: transparent;
}

/* Color modifiers — retint the shared color token */
.mot-btn--orange { --mot-btn-color: var(--mot-vibrant-orange); }
.mot-btn--pink   { --mot-btn-color: var(--mot-hot-pink); }
.mot-btn--green  { --mot-btn-color: var(--mot-neon-green); }

/* Solid modifier — filled, inverts on hover */
.mot-btn--solid {
	background: var(--mot-btn-color);
	color: var(--mot-black);
}

.mot-btn--solid:hover,
a.mot-btn--solid:hover,
a.mot-btn--solid:focus,
a.mot-btn--solid:focus-visible,
a.mot-btn--solid:active {
	background: transparent;
	color: var(--mot-btn-color);
}

a.mot-btn--solid,
a.mot-btn--solid:visited {
	color: var(--mot-black);
	background: var(--mot-btn-color);
}

a.mot-btn--solid:focus,
a.mot-btn--solid:focus-visible,
a.mot-btn--solid:active {
	color: var(--mot-black);
	background: var(--mot-btn-color);
}

/* Arrow suffix (non-emoji) */
.mot-btn::after {
	content: '→';
	line-height: 1;
	transition: transform var(--mot-dur) var(--mot-ease);
}

.mot-btn:hover::after {
	transform: translateX(4px);
}


/* ─── Navigation ──────────────────────────────────────────── */
/* Intro quicklinks bar (template-parts/nav.php, .mot-nav--home).
   Legacy logo + pillar link styles below are unused but kept for revert. */

/* Shared chrome — inner grid + z-index/isolation common to both looks. */
.mot-nav {
	z-index: 100;
	isolation: isolate;
}


/* Variant A — Floating (snapshot) ────────────────────────────
   The gradient + scroll blur live on a ::before layer so they can be
   masked to fade out at the bottom without affecting the crispness
   of the logo / links above. */
.mot-nav--floating {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
}

.mot-nav--floating::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: var(--mot-nav-gradient);
	-webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
	        mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
	transition: backdrop-filter var(--mot-dur) var(--mot-ease);
}

.mot-nav--floating.is-scrolled::before {
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}


/* Variant B — Solid (default) ────────────────────────────────
   Sticky bar with a translucent fill + bottom border. Blur is always
   on so content scrolling under it stays softened. */
.mot-nav--solid {
	position: sticky;
	top: 0;
	background-color: rgba(0, 0, 0, 0.6);
	border-bottom: 1px solid var(--mot-border);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

/* Three-track grid keeps the logo dead-centered regardless of how
   wide the links group becomes. */
.mot-nav__inner {
	width: 100%;
	max-width: var(--mot-max);
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: var(--mot-nav-padding-y) var(--mot-gutter);
}

.mot-nav__logo:not(.mot-home-nav__logo) {
	grid-column: 2;
}

.mot-nav__logo {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.mot-nav__logo img {
	width: var(--mot-nav-logo-size);
	height: var(--mot-nav-logo-size);
	display: block;
}

.mot-nav__links {
	display: flex;
	align-items: center;
	gap: 2.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mot-nav__links--start {
	grid-column: 1;
	justify-self: start;
}

.mot-nav__links--end {
	grid-column: 3;
	justify-self: end;
}

.mot-nav__links a {
	font-family: var(--mot-sans);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mot-light-gray);
	text-decoration: none;
	transition: color var(--mot-dur) var(--mot-ease);
}

.mot-nav__link--community:hover,
.mot-nav__link--community.is-active {
	color: var(--mot-pillar-community);
}

.mot-nav__link--studio:hover,
.mot-nav__link--studio.is-active {
	color: var(--mot-pillar-studio);
}

.mot-nav__link--foundry:hover,
.mot-nav__link--foundry.is-active {
	color: var(--mot-pillar-foundry);
}

.mot-nav__link--brand:hover,
.mot-nav__link--brand.is-active {
	color: var(--mot-brand-accent);
}

/* Discord — Community pillar */
.mot-nav__links .nav-discord a {
	border: 1px solid var(--mot-border);
	padding: 0.35rem 0.85rem;
	color: var(--mot-pillar-community);
}

.mot-nav__links .nav-discord a:hover,
.mot-nav__links .nav-discord a.is-active {
	border-color: var(--mot-pillar-community);
	color: var(--mot-pillar-community);
}

@media (max-width: 680px) {
	.mot-nav__links {
		gap: 1.5rem;
	}
	.mot-nav__links .nav-discord {
		display: none; /* show in mobile menu instead */
	}
}


/* v1 home nav: brand wrapper is transparent to the grid */
.mot-nav--home:not(.mot-nav--portal) .mot-home-nav__brand {
	display: contents;
}

/* Intro nav — logo left, intro + pillar links center, Discord right */
.mot-nav--home .mot-nav__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.25rem 2.5rem;
	padding-block: clamp(2rem, 3.5vw, 2.75rem);
}

.mot-home-nav__logo {
	grid-column: auto;
	flex-shrink: 0;
}

.mot-home-nav__logo img {
	width: clamp(3.5rem, 7vw, var(--mot-nav-logo-size));
	height: auto;
	display: block;
}

.mot-nav--home .mot-home-nav__headline {
	margin: 0;
	min-width: 0;
	text-align: left;
	text-wrap: balance;
	color: var(--mot-white);
	font-size: clamp(1.5rem, 3vw, 3rem);
	line-height: 1.1;
}

.mot-home-nav__link {
	text-decoration: none;
	transition: opacity var(--mot-dur) var(--mot-ease);
}

.mot-home-nav__link:hover,
.mot-home-nav__link:focus-visible {
	opacity: 0.85;
}

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

.mot-home-nav__link:visited,
.mot-home-nav__link:focus,
.mot-home-nav__link:active {
	opacity: 1;
}

.mot-home-nav__sep {
	display: inline-block;
	vertical-align: middle;
	margin-inline: 0.25em;
	color: var(--mot-border);
	line-height: 0;
}

.mot-home-nav__sep svg {
	display: block;
	width: auto;
	height: 0.75em;
}

/* Discord on top; account + cart stacked underneath — right column */
.mot-home-nav__utilities {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 0.35rem;
	justify-self: end;
	align-self: center;
	text-align: right;
}

.mot-home-nav__commerce {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.65rem 1rem;
}

.mot-home-nav__commerce .mot-label {
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
}

.mot-nav__account,
.mot-nav__account:visited,
.mot-nav__account:focus,
.mot-nav__account:focus-visible,
.mot-nav__account:active {
	color: var(--mot-off-white) !important;
	text-decoration: none;
	white-space: nowrap;
}

.mot-nav__account:hover {
	color: var(--mot-white) !important;
	opacity: 0.85;
}

.mot-nav__cart,
.mot-nav__cart:visited {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--mot-vibrant-orange) !important;
	text-decoration: none;
	white-space: nowrap;
}

.mot-nav__cart:hover,
.mot-nav__cart:focus-visible {
	color: var(--mot-white) !important;
	opacity: 0.9;
}

.mot-nav__cart-icon {
	display: block;
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
}

.mot-nav__cart-text {
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.mot-nav__cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.0625rem;
	height: 1.0625rem;
	padding: 0 0.3rem;
	font-family: var(--mot-mono);
	font-size: 0.5625rem;
	font-weight: 600;
	line-height: 1;
	color: var(--mot-black) !important;
	background: var(--mot-vibrant-orange);
	border-radius: 999px;
}

.mot-nav__cart-count[hidden] {
	display: none !important;
}

.mot-home-nav__discord {
	white-space: nowrap;
	color: var(--mot-pillar-community);
	text-decoration: none;
	transition: opacity var(--mot-dur) var(--mot-ease);
}

.mot-home-nav__discord:hover,
.mot-home-nav__discord:focus-visible {
	opacity: 0.8;
}

.mot-home-nav__discord:visited,
.mot-home-nav__discord:focus,
.mot-home-nav__discord:active {
	color: var(--mot-pillar-community);
	opacity: 1;
}

/* ─── Mobile hamburger toggle + menu (standard nav) ───────── */
.mot-nav__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	justify-self: end;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	background: transparent;
	border: 1px solid var(--mot-neon-green) !important;
	border-radius: 50%;
	color: var(--mot-hot-pink) !important;
	cursor: pointer;
}

/* Kill Kadence's blue button fill/shadow in every interaction state.
   :focus-visible alone isn't enough — touch/click gives plain :focus. */
html.mot-template .mot-nav__toggle,
html.mot-template .mot-nav__toggle:hover,
html.mot-template .mot-nav__toggle:focus,
html.mot-template .mot-nav__toggle:focus-visible,
html.mot-template .mot-nav__toggle:active {
	background: transparent !important;
	box-shadow: none !important;
}

html.mot-template .mot-nav__toggle:hover,
html.mot-template .mot-nav__toggle[aria-expanded="true"] {
	border-color: var(--mot-white);
}

html.mot-template .mot-nav__toggle:focus-visible {
	outline: 2px solid var(--mot-neon-green);
	outline-offset: 2px;
}

/* Three horizontal dots (kebab); collapse into one larger dot when open. */
.mot-nav__toggle-bars,
.mot-nav__toggle-bars::before,
.mot-nav__toggle-bars::after {
	content: "";
	display: block;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
	transition: transform var(--mot-dur) var(--mot-ease),
		opacity var(--mot-dur) var(--mot-ease);
}

.mot-nav__toggle-bars {
	position: relative;
}

.mot-nav__toggle-bars::before {
	position: absolute;
	top: 0;
	left: -9px;
}

.mot-nav__toggle-bars::after {
	position: absolute;
	top: 0;
	left: 9px;
}

/* Open → side dots slide to center + fade, center dot grows */
.mot-nav__toggle[aria-expanded="true"] .mot-nav__toggle-bars {
	transform: scale(2.2);
}

.mot-nav__toggle[aria-expanded="true"] .mot-nav__toggle-bars::before {
	transform: translateX(9px);
	opacity: 0;
}

.mot-nav__toggle[aria-expanded="true"] .mot-nav__toggle-bars::after {
	transform: translateX(-9px);
	opacity: 0;
}

.mot-nav__mobile {
	display: none;
	border-top: 1px solid var(--mot-border);
}

.mot-nav__mobile-intro {
	margin: 0;
	padding: 0.75rem var(--mot-gutter) 0.5rem;
	font-family: var(--mot-display);
	font-size: 1.75rem;
	line-height: 1.1;
	letter-spacing: 0.01em;
	color: var(--mot-white);
}

.mot-nav__mobile-list {
	list-style: none;
	margin: 0;
	padding: 0 var(--mot-gutter) 1rem;
}

.mot-nav__mobile-link {
	display: block;
	padding: 0.9rem 0;
	font-family: var(--mot-display);
	font-size: 1.75rem;
	line-height: 1.1;
	letter-spacing: 0.01em;
	text-decoration: none;
	border-bottom: 1px solid var(--mot-border);
	transition: opacity var(--mot-dur) var(--mot-ease);
}

.mot-nav__mobile-item:last-child .mot-nav__mobile-link {
	border-bottom: none;
}

/* Discord keeps the Sandman label face (matches the CTA elsewhere). */
.mot-nav__mobile-link--discord {
	font-family: var(--mot-eyebrow);
	font-size: 1rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.mot-nav__mobile-link:hover,
.mot-nav__mobile-link:focus-visible {
	opacity: 0.8;
}

/* Link colors — prefixed with html.mot-template + all states to beat Kadence's
   global anchor color (a / a:visited / a:hover use --global-palette-highlight). */
html.mot-template .mot-nav__mobile-link,
html.mot-template .mot-nav__mobile-link:visited,
html.mot-template .mot-nav__mobile-link:hover,
html.mot-template .mot-nav__mobile-link:focus,
html.mot-template .mot-nav__mobile-link:focus-visible,
html.mot-template .mot-nav__mobile-link:active {
	color: var(--mot-white);
}

html.mot-template .mot-nav__mobile-link--community,
html.mot-template .mot-nav__mobile-link--community:visited,
html.mot-template .mot-nav__mobile-link--community:hover,
html.mot-template .mot-nav__mobile-link--community:focus,
html.mot-template .mot-nav__mobile-link--community:focus-visible,
html.mot-template .mot-nav__mobile-link--community:active,
html.mot-template .mot-nav__mobile-link--discord,
html.mot-template .mot-nav__mobile-link--discord:visited,
html.mot-template .mot-nav__mobile-link--discord:hover,
html.mot-template .mot-nav__mobile-link--discord:focus,
html.mot-template .mot-nav__mobile-link--discord:focus-visible,
html.mot-template .mot-nav__mobile-link--discord:active {
	color: var(--mot-pillar-community);
}

html.mot-template .mot-nav__mobile-link--foundry,
html.mot-template .mot-nav__mobile-link--foundry:visited,
html.mot-template .mot-nav__mobile-link--foundry:hover,
html.mot-template .mot-nav__mobile-link--foundry:focus,
html.mot-template .mot-nav__mobile-link--foundry:focus-visible,
html.mot-template .mot-nav__mobile-link--foundry:active {
	color: var(--mot-pillar-foundry);
}

html.mot-template .mot-nav__mobile-link--studio,
html.mot-template .mot-nav__mobile-link--studio:visited,
html.mot-template .mot-nav__mobile-link--studio:hover,
html.mot-template .mot-nav__mobile-link--studio:focus,
html.mot-template .mot-nav__mobile-link--studio:focus-visible,
html.mot-template .mot-nav__mobile-link--studio:active {
	color: var(--mot-pillar-studio);
}

html.mot-template .mot-nav__mobile-link--account,
html.mot-template .mot-nav__mobile-link--account:visited,
html.mot-template .mot-nav__mobile-link--account:hover,
html.mot-template .mot-nav__mobile-link--account:focus,
html.mot-template .mot-nav__mobile-link--account:focus-visible,
html.mot-template .mot-nav__mobile-link--account:active {
	color: var(--mot-off-white);
}

html.mot-template .mot-nav__mobile-link--cart,
html.mot-template .mot-nav__mobile-link--cart:visited,
html.mot-template .mot-nav__mobile-link--cart:hover,
html.mot-template .mot-nav__mobile-link--cart:focus,
html.mot-template .mot-nav__mobile-link--cart:focus-visible,
html.mot-template .mot-nav__mobile-link--cart:active {
	color: var(--mot-vibrant-orange);
}

@media (max-width: 680px) {
	/* Homepage v2 portal nav — logo top, Discord full-width below */
	.mot-nav--portal-slim .mot-nav__inner {
		grid-template-areas:
			"logo menu"
			"discord discord";
		row-gap: 1rem;
	}

	.mot-nav--portal-slim .mot-home-nav__logo {
		grid-area: logo;
	}

	.mot-nav--portal-slim .mot-home-nav__utilities {
		grid-area: discord;
		justify-self: end;
	}

	/* Standard nav — collapse pillar links + utilities into a hamburger */
	.mot-nav--home:not(.mot-nav--portal-slim) .mot-nav__inner {
		grid-template-columns: auto 1fr;
		grid-template-areas: "logo toggle";
		align-items: center;
		padding-block: clamp(0.6rem, 2.5vw, 1rem);
	}

	.mot-nav--home:not(.mot-nav--portal-slim) .mot-home-nav__logo {
		grid-area: logo;
	}

	.mot-nav--home:not(.mot-nav--portal-slim) .mot-home-nav__headline {
		display: none;
	}

	.mot-nav--home:not(.mot-nav--portal-slim) .mot-nav__inner > .mot-home-nav__utilities {
		display: none;
	}

	.mot-nav--home:not(.mot-nav--portal-slim) .mot-nav__toggle {
		display: inline-flex;
		grid-area: toggle;
	}

	.mot-nav__mobile:not([hidden]) {
		display: block;
	}
}


/* ─── Footer ──────────────────────────────────────────────── */
.mot-footer {
	border-top: 1px solid var(--mot-border);
	padding-block: clamp(3rem, 5vw, 5rem);
	background: var(--mot-off-black);
}

/* Children participate in .mot-container 12-column grid */
.mot-footer__band {
	display: contents;
}

/* Left — wordmark + about */
.mot-footer__wordmark {
	display: block;
	font-family: var(--mot-display);
	font-size: 1.6rem;
	letter-spacing: -0.01em;
	color: var(--mot-neon-green);
	text-decoration: none;
	/* margin-bottom: 1rem; */
}

.mot-footer__about-text {
	font-family: var(--mot-display);
	font-size: clamp(1.1rem, 1.8vw, 1.6rem);
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: var(--mot-off-white);
	margin: 0;
	max-width: 52ch;
}

/* Right — nav + email; column starts after a skipped grid track (see footer.php) */
.mot-footer__right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-start;
	gap: 1.75rem;
	width: 100%;
}

@media (max-width: 900px) {
	.mot-footer__right.mot-col-start-8 {
		grid-column-start: auto;
	}
}

@media (max-width: 700px) {
	.mot-footer__right {
		align-items: flex-start;
	}
}

.mot-footer__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	width: 100%;
	gap: 0.5rem 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 700px) {
	.mot-footer__nav {
		justify-content: flex-start;
	}
}

.mot-footer__nav a,
.mot-footer__nav a:visited,
.mot-footer__nav a:focus,
.mot-footer__nav a:focus-visible,
.mot-footer__nav a:active {
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mot-muted);
	transition: color var(--mot-dur) var(--mot-ease);
}

.mot-footer__link--community:hover {
	color: var(--mot-pillar-community);
}

.mot-footer__link--studio:hover {
	color: var(--mot-pillar-studio);
}

.mot-footer__link--foundry:hover {
	color: var(--mot-pillar-foundry);
}

.mot-footer__link--brand:hover {
	color: var(--mot-brand-accent);
}

/* Full width of the right column; input flexes beside the button. Parent
   align-items: flex-end keeps the block flush to the column's right edge. */
.mot-footer__email-signup {
	display: flex;
	width: 100%;
	max-width: 100%;
	gap: 0;
}

.mot-footer__email-signup input[type="email"] {
	flex: 1;
	min-width: 0;
	background: var(--mot-dark);
	border: 1px solid var(--mot-border);
	border-right: none;
	color: var(--mot-white);
	font-family: var(--mot-sans);
	font-size: 0.9375rem;
	padding: 0.6rem 1rem;
	outline: none;
	transition: border-color var(--mot-dur) var(--mot-ease);
}

.mot-footer__email-signup input[type="email"]:focus {
	border-color: var(--mot-brand-accent);
}

.mot-footer__email-signup input[type="email"]::placeholder {
	color: var(--mot-muted);
}

.mot-footer__email-signup button {
	background: var(--mot-brand-accent) !important;
	border: 1px solid var(--mot-brand-accent) !important;
	color: var(--mot-black) !important;
	font-family: var(--mot-sans);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.6rem 1rem;
	cursor: pointer;
	transition: background var(--mot-dur) var(--mot-ease),
	            color var(--mot-dur) var(--mot-ease),
	            border-color var(--mot-dur) var(--mot-ease);
	white-space: nowrap;
}

.mot-footer__email-signup button:hover {
	background: transparent !important;
	color: var(--mot-brand-accent) !important;
	border-color: var(--mot-brand-accent) !important;
}

.mot-footer__copy {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	width: 100%;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--mot-border);
	font-size: 0.75rem;
	color: var(--mot-muted);
}

.mot-footer__legal-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mot-footer__legal a.mot-footer__link--legal,
.mot-footer__legal a.mot-footer__link--legal:visited {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--mot-muted);
}

.mot-footer__legal a.mot-footer__link--legal:hover,
.mot-footer__legal a.mot-footer__link--legal:focus-visible {
	color: var(--mot-vibrant-orange);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.mot-footer__copyright {
	margin: 0;
}


/* ─── Divider ─────────────────────────────────────────────── */
.mot-divider {
	height: 1px;
	background: var(--mot-border);
	border: none;
	margin: 0;
}


/* ─── Kadence Overrides ───────────────────────────────────── */
/* Strip default Kadence header — we use our own */
.site-header,
.header-wrap {
	display: none !important;
}

/* Strip default Kadence footer */
.site-footer-wrap,
.site-footer {
	display: none !important;
}

/* Full-width layout for all MoT templates */
.mot-template .content-area,
.mot-template .site-main {
	padding: 0;
	max-width: none;
}

.mot-template .kadence-inner-column-inner,
.mot-template .wp-block-group {
	padding: 0;
}
