/**
 * Homepage — wireframe layout with storefront tokens.
 */

.cp-home {
	--cp-home-radius: var(--cp-btn-radius);
	--cp-home-surface-alt: var(--cp-surface-elevated);
	color: var(--cp-text);
}

.cp-main:has(> .cp-home) {
	padding-top: 0;
}

.cp-home-wrap {
	width: min(calc(100% - (2 * var(--cp-container-gutter, 1rem))), var(--cp-container));
	margin-inline: auto;
}

.cp-home-section-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--cp-text);
}

.cp-home-section-desc {
	margin: 0.75rem 0 0;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--cp-text-muted);
}

.cp-home-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

/* Hero — 10×4 square mosaic; content = 4×2 cells */
.cp-home-hero {
	--cp-hero-cols: 10;
	--cp-hero-rows: 4;
	--cp-hero-gap: 0.5rem;
	--cp-hero-pad: 0.75rem;
	--cp-hero-col-gaps: calc(var(--cp-hero-cols) - 1);
	--cp-hero-row-gaps: calc(var(--cp-hero-rows) - 1);
	/* Chrome is in normal flow; hero fills the rest of the viewport */
	--cp-hero-avail-h: calc(100dvh - var(--cp-chrome-offset));
	--cp-hero-tile: min(
		calc((100vw - (2 * var(--cp-hero-pad)) - (var(--cp-hero-col-gaps) * var(--cp-hero-gap))) / var(--cp-hero-cols)),
		calc((var(--cp-hero-avail-h) - (2 * var(--cp-hero-pad)) - (var(--cp-hero-row-gaps) * var(--cp-hero-gap))) / var(--cp-hero-rows))
	);
	background: var(--cp-surface);
	height: var(--cp-hero-avail-h);
	min-height: var(--cp-hero-avail-h);
	overflow: hidden;
}

.cp-home-hero__stage {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	height: 100%;
	min-height: 0;
	padding: var(--cp-hero-pad);
	box-sizing: border-box;
}

.cp-home-hero__mosaic {
	display: grid;
	grid-template-columns: repeat(var(--cp-hero-cols), var(--cp-hero-tile));
	grid-template-rows: repeat(var(--cp-hero-rows), var(--cp-hero-tile));
	gap: var(--cp-hero-gap);
	width: calc((var(--cp-hero-cols) * var(--cp-hero-tile)) + (var(--cp-hero-col-gaps) * var(--cp-hero-gap)));
	height: calc((var(--cp-hero-rows) * var(--cp-hero-tile)) + (var(--cp-hero-row-gaps) * var(--cp-hero-gap)));
	box-sizing: border-box;
}

.cp-home-hero__tiles {
	display: contents;
}

.cp-home-hero__tile {
	position: relative;
	width: var(--cp-hero-tile);
	height: var(--cp-hero-tile);
	overflow: hidden;
	border: 1px solid var(--cp-border);
	border-radius: var(--cp-home-radius);
	background: var(--cp-home-surface-alt);
	opacity: 1;
	filter: none;
	transition: opacity 900ms ease;
}

.cp-home-hero__mosaic.is-twinkling .cp-home-hero__tile {
	opacity: 0.1;
	filter: grayscale(1);
}

.cp-home-hero__mosaic.is-twinkling .cp-home-hero__tile.is-visible {
	opacity: 1;
	filter: none;
}

.cp-home-hero__art {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 900ms ease;
	pointer-events: none;
}

.cp-home-hero__art.is-active {
	opacity: 1;
}

.cp-home-hero__art:not([src]),
.cp-home-hero__art[src=''] {
	visibility: hidden;
}

.cp-home-hero__content {
	/* 4×2 = 8 square cells, centered in 10×4 */
	grid-column: 4 / span 4;
	grid-row: 2 / span 2;
	z-index: 1;
	container-type: size;
	display: grid;
	align-content: center;
	justify-items: center;
	gap: clamp(0.25rem, 4cqh, 0.75rem);
	width: auto;
	height: auto;
	min-width: 0;
	min-height: 0;
	padding: clamp(0.5rem, 6cqh, 1rem) clamp(0.5rem, 4cqw, 1rem);
	overflow: hidden;
	text-align: center;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.cp-home-hero__title {
	margin: 0;
	font-size: clamp(1rem, min(12cqh, 7cqw), 2.5rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--cp-text);
}

.cp-home-hero__range {
	width: 80%;
	min-width: 0;
}

.cp-home-hero__range .cp-home-studio__range {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
}

.cp-home-hero__range .cp-home-studio__range-label {
	flex-shrink: 0;
}

.cp-home-hero__range .cp-home-studio__marquee {
	flex: 1;
	min-width: 0;
}

.cp-home-hero__search {
	display: grid;
	width: min(100%, 34rem);
	gap: 0.5rem;
}

.cp-home-hero__search-label {
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.7;
}

.cp-home-hero__search .cp-header-search__frame {
	display: flex;
	align-items: stretch;
	height: 3.25rem;
	padding-inline-start: 1rem;
	border: 1px solid var(--cp-ink-200);
	background: var(--cp-surface-elevated);
	animation: none;
}

.cp-home-hero__search .cp-header-search__frame::before {
	content: none;
}

.cp-home-hero__search .cp-header-search__frame:focus-within {
	border-color: var(--cp-primary);
	box-shadow: 0 0 0 2px var(--cp-hero-glow);
}

.cp-home-hero__search .cp-header-search__control {
	height: auto;
	margin-inline-end: 0.75rem;
}

.cp-home-hero__search .cp-header-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: auto;
	height: auto;
	padding-inline: 1rem;
	border-inline-start: 1px solid var(--cp-border);
	border-radius: 0;
	border-start-end-radius: inherit;
	border-end-end-radius: inherit;
	background: color-mix(in srgb, var(--cp-primary) 8%, var(--cp-surface-elevated));
	color: color-mix(in srgb, var(--cp-primary) 48%, var(--cp-text));
	font: inherit;
	font-size: 0.875rem;
	font-weight: 700;
}

.cp-home-hero__search .cp-header-search__submit:hover,
.cp-home-hero__search .cp-header-search__submit:active {
	background: color-mix(in srgb, var(--cp-primary) 16%, var(--cp-surface-elevated));
}

.cp-home-hero__search .cp-header-search__submit:focus-visible {
	outline: 2px solid var(--cp-primary);
	outline-offset: -3px;
}

.cp-home-hero__search .cp-header-search__submit svg {
	width: 1.125rem;
	height: 1.125rem;
}

@container (max-height: 180px) {
	.cp-home-hero__search {
		gap: 0.25rem;
	}

	.cp-home-hero__search-label {
		justify-self: center;
		font-size: 0.875rem;
		line-height: 1.25;
	}

	.cp-home-hero__search .cp-header-search__frame {
		height: 3rem;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.cp-home-hero__content {
		gap: 0.25rem;
		padding: 0.5rem;
	}
}

@media (max-width: 767px) {
	.cp-home-hero {
		--cp-hero-cols: 5;
		--cp-hero-pad: 0.5rem;
		/* The small viewport stays stable as the browser toolbar retracts on scroll. */
		--cp-hero-upper-space: calc(50svh - var(--cp-chrome-offset) - 2 * var(--cp-hero-pad));
		margin-block-start: calc(-1 * var(--cp-chrome-offset));
		height: 100vh;
		height: 100svh;
		min-height: 0;
	}

	.cp-home-hero__stage {
		display: block;
		height: 100%;
		padding-block: 0;
	}

	.cp-home-hero__mosaic {
		width: 100%;
		height: 100%;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: repeat(4, minmax(0, 1fr));
		gap: 0;
	}

	.cp-home-hero__tiles {
		grid-row: 1 / span 2;
		display: grid;
		/* Fit every square row between the header and the midpoint. */
		width: min(100%, calc((var(--cp-hero-upper-space) + var(--cp-hero-gap)) / var(--cp-hero-rows) * var(--cp-hero-cols) - var(--cp-hero-gap)));
		margin-block: calc(var(--cp-chrome-offset) + var(--cp-hero-pad)) var(--cp-hero-pad);
		place-self: stretch center;
		align-content: space-between;
		grid-template-columns: repeat(var(--cp-hero-cols), minmax(0, 1fr));
		gap: var(--cp-hero-gap);
		overflow: hidden;
		pointer-events: none;
		mask-image: linear-gradient(to bottom, black 8%, transparent 100%);
	}

	.cp-home-hero__tile {
		width: 100%;
		height: auto;
		aspect-ratio: 1;
		align-self: start;
	}

	.cp-home-hero__tile--desktop-only {
		display: none;
	}

	.cp-home-hero__content {
		grid-column: 1;
		grid-row: 3;
		align-self: center;
		container-type: inline-size;
		gap: clamp(0.25rem, 1.25svh, 0.75rem);
		padding: 0 0.5rem;
		overflow: visible;
	}

	.cp-home-hero__title {
		font-size: min(1.625rem, 5.2cqw);
		line-height: 1.4;
		white-space: nowrap;
	}

	.cp-home-hero__title-lead,
	.cp-home-hero__title-rest {
		display: block;
	}

	.cp-home-hero__title-lead {
		color: var(--cp-primary);
		font-size: clamp(1.5rem, min(10cqw, 5svh), 2.75rem);
		font-weight: 800;
		line-height: 1.18;
	}

	.cp-home-hero__title-rest {
		color: var(--cp-text);
		font-size: clamp(1rem, min(5.6cqw, 2.8svh), 1.5rem);
		font-weight: 500;
		line-height: 1.35;
	}

	.cp-home-hero__range,
	.cp-home-hero__search {
		width: 100%;
	}

	.cp-home-hero__search-label {
		font-size: 0.875rem;
	}
}

@media (max-width: 767px) and (orientation: portrait) {
	.cp-home-hero__mosaic {
		grid-template-rows: minmax(0, 1fr) auto max(18%, var(--cp-bottom-nav-clearance));
		row-gap: 0.75rem;
	}

	.cp-home-hero__tiles {
		grid-row: 1;
		width: 100%;
		grid-template-rows: repeat(4, minmax(0, 1fr));
		container-type: size;
	}

	.cp-home-hero__tile {
		width: min(100%, calc((100cqh - 3 * var(--cp-hero-gap)) / 4));
		place-self: start center;
	}

	.cp-home-hero__content { grid-row: 2; gap: 1rem; }
	.cp-home-hero__title { white-space: normal; }
	.cp-home-hero__search { gap: 0.5rem; }
}

@media (max-width: 767px) and (max-height: 760px) and (orientation: landscape) {
	.cp-home-hero__content, .cp-home-hero__search { gap: 0.125rem; }
	.cp-home-hero__title-lead { font-size: clamp(1.5rem, 4.5svh, 2rem); line-height: 1.08; }
	.cp-home-hero__title-rest { line-height: 1.15; }
	.cp-home-hero__search-label { font-size: 0.8125rem; line-height: 1.2; }
	.cp-home-hero__search .cp-header-search__frame { height: 2.75rem; }
}

@media (max-width: 767px) and (max-height: 480px) and (orientation: landscape) {
	.cp-home-hero {
		--cp-hero-cols: 10;
		--cp-hero-rows: 2;
		--cp-hero-gap: 0.25rem;
	}

	.cp-home-hero__content {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 1rem;
		align-items: center;
	}

	.cp-home-hero__title {
		font-size: 1rem;
		white-space: normal;
	}

	.cp-home-hero__range { grid-area: 2 / 1; }
	.cp-home-hero__search { grid-area: 1 / 2 / span 2; }
}

/* Product lines — horizontal carousel → shop ?line= */
.cp-home-lines {
	padding: 3rem 0;
	overflow-x: clip;
}

.cp-home-lines__carousel {
	overflow-x: auto;
	overflow-y: hidden;
	width: 100%;
	min-width: 0;
	scroll-snap-type: x mandatory;
	scroll-behavior: auto;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	cursor: grab;
	outline: none;
}

.cp-home-lines__carousel:focus-visible {
	outline: 2px solid var(--cp-primary);
	outline-offset: 2px;
}

.cp-home-lines__carousel.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
}

.cp-home-lines__carousel.is-dragging a {
	pointer-events: none;
}

.cp-home-lines__carousel::-webkit-scrollbar {
	display: none;
}

.cp-home-lines__track {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.75rem;
	width: max-content;
	min-width: 100%;
	margin: 0;
	padding: 0.25rem 0 0.5rem;
	list-style: none;
}

.cp-home-line-card {
	flex: 0 0 auto;
	width: min(10.5rem, 42vw);
	scroll-snap-align: start;
}

.cp-home-line-card__link {
	display: grid;
	gap: 0.5rem;
	color: inherit;
	text-decoration: none;
}

.cp-home-line-card__media {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border: 1px solid var(--cp-border);
	border-radius: var(--cp-home-radius);
	background: var(--cp-home-surface-alt);
}

.cp-home-line-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cp-home-line-card__name {
	display: block;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--cp-border);
	border-radius: var(--cp-home-radius);
	background: var(--cp-home-surface-alt);
	font-size: 0.875rem;
	font-weight: 600;
	text-align: center;
	color: var(--cp-text);
}

.cp-home-line-card__link:hover .cp-home-line-card__name,
.cp-home-line-card__link:hover .cp-home-line-card__media {
	border-color: var(--cp-primary);
}

.cp-home-line-card__link:focus-visible {
	outline: 2px solid var(--cp-primary);
	outline-offset: 2px;
}

@media (min-width: 768px) {
	.cp-home-lines__track {
		gap: 1rem;
	}

	.cp-home-line-card {
		width: 12rem;
	}
}

@media (min-width: 992px) {
	.cp-home-lines {
		padding: 4rem 0;
	}

	.cp-home-line-card {
		width: 13.5rem;
	}
}

/* Merch / products — one carousel row per product line */
.cp-home-products {
	padding: 2rem 0 3rem;
	overflow-x: clip;
}

.cp-home-products__row + .cp-home-products__row {
	margin-top: 3rem;
}

.cp-home-products__heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.cp-home-products__count {
	padding: 0.125rem 0.5rem;
	border-radius: var(--cp-radius-sm);
	background: var(--cp-ink-100);
	color: var(--cp-text-muted);
	font-size: 0.75rem;
	font-weight: 500;
	white-space: nowrap;
}

.cp-home-products .cp-category-carousel__title {
	font-size: 1.5rem;
}

.cp-home-products .cp-category-carousel__all {
	font-size: 0.875rem;
	color: var(--cp-primary);
}

.cp-home-products .cp-category-carousel__all:hover {
	color: var(--cp-text);
}

/* Reuse the real card geometry while each nearby row receives its products. */
.cp-home-products .cp-home-product-placeholder {
	pointer-events: none;
}
.cp-home-products .cp-home-product-placeholder .cp-product-card__media {
	background: var(--cp-border);
}
.cp-home-products .cp-home-product-placeholder .cp-card-name::before,
.cp-home-products .cp-home-product-placeholder .price {
	content: '';
	display: block;
	width: 75%;
	height: 1rem;
	background: var(--cp-border);
	border-radius: var(--cp-radius-sm);
}
.cp-home-products .cp-home-product-placeholder .price {
	width: 50%;
	min-height: 1rem;
}
.cp-home-products__feedback {
	padding: 1rem 0;
	color: var(--cp-text-muted);
	font-size: 0.875rem;
}
.cp-home-products__feedback p {
	margin: 0 0 0.75rem;
}
.cp-home-products__feedback[hidden],
.cp-home-products__feedback [hidden] {
	display: none !important;
}

@media (min-width: 768px) {
	.cp-home-products {
		padding-block: 3rem 4rem;
	}

	.cp-home-products__row + .cp-home-products__row {
		margin-top: 4rem;
	}
}

/* Worlds mosaic — 2 rows × 6 domains on desktop */
.cp-home-worlds {
	padding: 3rem 0;
	border-block: 1px solid var(--cp-border);
	background: var(--cp-home-surface-alt);
}

.cp-home-worlds__head {
	justify-content: center;
	text-align: center;
	margin-bottom: 2rem;
}

.cp-home-worlds__head .cp-home-section-title {
	max-width: 36rem;
	line-height: 1.7;
}

.cp-home-worlds__title-intro,
.cp-home-worlds__title-main { display: block; }
.cp-home-worlds__title-intro { color: var(--cp-primary); font-weight: 400; }
.cp-home-worlds__title-main { color: var(--cp-text); font-weight: 700; }

.cp-home-worlds__mosaic {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.75rem;
	margin: 0;
	padding: 0.25rem;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--cp-border) transparent;
}

@media (max-width: 767px) {
	.cp-home-worlds__mosaic { scrollbar-width: none; }
	.cp-home-worlds__mosaic::-webkit-scrollbar { display: none; }
}

.cp-home-worlds__mosaic > .cp-home-world {
	flex: 0 0 44%;
	min-width: 0;
	scroll-snap-align: start;
}

.cp-home-worlds__mosaic:focus-visible { outline: 2px solid var(--cp-primary); outline-offset: 2px; }
.cp-home-worlds__mosaic.is-dragging { scroll-snap-type: none; }
.cp-home-worlds__mosaic.is-dragging a { pointer-events: none; }

.cp-home-world__link {
	position: relative;
	display: grid;
	gap: 0.75rem;
	color: inherit;
	text-decoration: none;
}

.cp-home-world__stage {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1 / 1;
}

.cp-home-world__glow {
	pointer-events: none;
}

.cp-home-world__media {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}

.cp-home-world__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.cp-home-world__title {
	display: block;
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--cp-text);
	text-align: center;
}

.cp-home-world__link:hover .cp-home-world__media img {
	transform: translateY(-0.2rem) scale(1.03);
}

.cp-home-world__link:focus-visible {
	outline: 2px solid var(--cp-primary);
	outline-offset: 2px;
	border-radius: var(--cp-radius-md);
}

/* Object style: floating 3D asset over a soft gradient circle (no card). */
.cp-home-world--object .cp-home-world__link {
	gap: 0.25rem;
}

.cp-home-world--object .cp-home-world__stage {
	overflow: visible;
	aspect-ratio: 1 / 1;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.cp-home-world--object {
	--cp-world-accent: var(--cp-primary);
}

.cp-home-world--object[data-world="sp"] { --cp-world-accent: #f97316; }
.cp-home-world--object[data-world="sc"] { --cp-world-accent: #7c3aed; }
.cp-home-world--object[data-world="gm"] { --cp-world-accent: #a855f7; }
.cp-home-world--object[data-world="mu"] { --cp-world-accent: #db2777; }
.cp-home-world--object[data-world="mm"] { --cp-world-accent: #eab308; }
.cp-home-world--object[data-world="lf"] { --cp-world-accent: #65a30d; }
.cp-home-world--object[data-world="pc"] { --cp-world-accent: #0ea5e9; }
.cp-home-world--object[data-world="cu"] { --cp-world-accent: #b45309; }
.cp-home-world--object[data-world="fg"] { --cp-world-accent: #a8a29e; }
.cp-home-world--object[data-world="ar"] { --cp-world-accent: #f43f5e; }
.cp-home-world--object[data-world="ca"] { --cp-world-accent: #ef4444; }
.cp-home-world--object[data-world="jb"] { --cp-world-accent: #1d4ed8; }

.cp-home-world--object .cp-home-world__glow {
	position: absolute;
	inset: 8%;
	z-index: 0;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--cp-world-accent) 28%, var(--cp-border));
	border-radius: 50%;
	background:
		radial-gradient(
			circle at 50% 45%,
			color-mix(in srgb, var(--cp-world-accent) 42%, var(--cp-surface-elevated)) 0%,
			color-mix(in srgb, var(--cp-world-accent) 18%, var(--cp-surface)) 48%,
			color-mix(in srgb, var(--cp-world-accent) 6%, transparent) 72%,
			transparent 82%
		);
	filter: none;
	opacity: 1;
}

.cp-home-world--object .cp-home-world__glow::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: color-mix(in srgb, var(--cp-world-accent) 34%, var(--cp-surface-elevated));
	transform: scaleY(0);
	transform-origin: center bottom;
	transition: transform 0.35s ease;
	pointer-events: none;
}

.cp-home-world--object .cp-home-world__media {
	padding: 0;
}

.cp-home-world--object .cp-home-world__media img {
	width: 96%;
	height: auto;
	max-height: 96%;
	object-fit: contain;
	filter: none;
}

.cp-home-world--object .cp-home-world__link:hover .cp-home-world__glow {
	border-color: color-mix(in srgb, var(--cp-world-accent) 45%, var(--cp-border));
}

.cp-home-world--object .cp-home-world__link:hover .cp-home-world__glow::before {
	transform: scaleY(1);
}

/* Legacy photo tiles keep cover fill until their 3D assets land. */
.cp-home-world:not(.cp-home-world--object) .cp-home-world__stage {
	overflow: hidden;
	border: 1px solid var(--cp-border);
	border-radius: var(--cp-radius-lg);
	background: var(--cp-surface);
}

.cp-home-world:not(.cp-home-world--object) .cp-home-world__media {
	padding: 0;
}

.cp-home-world:not(.cp-home-world--object) .cp-home-world__glow {
	display: none;
}

.cp-home-world:not(.cp-home-world--object) .cp-home-world__title {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 1;
	padding: 2rem 0.75rem 0.75rem;
	background: linear-gradient(to top, color-mix(in srgb, #000 68%, transparent), transparent);
	color: var(--cp-on-primary);
}

.cp-home-world:not(.cp-home-world--object) .cp-home-world__link:hover .cp-home-world__stage {
	border-color: color-mix(in srgb, var(--cp-primary) 55%, var(--cp-border));
}

@media (prefers-reduced-motion: reduce) {
	.cp-home-world__media img,
	.cp-home-world--object .cp-home-world__glow::before {
		transition: none;
	}

	.cp-home-world__link:hover .cp-home-world__media img {
		transform: none;
	}

	.cp-home-world--object .cp-home-world__link:hover .cp-home-world__glow::before {
		transform: none;
		opacity: 1;
	}

	.cp-home-world--object .cp-home-world__glow::before {
		opacity: 0;
		transform: none;
	}
}

@media (min-width: 768px) {
	.cp-home-worlds {
		padding: 4rem 0;
	}

	.cp-home-worlds__mosaic {
		flex-wrap: wrap;
		justify-content: center;
		overflow: visible;
		scroll-snap-type: none;
		gap: 1rem;
	}

	.cp-home-worlds__mosaic > .cp-home-world { flex-basis: calc((100% - 2rem) / 3); }
}

@media (min-width: 992px) {
	.cp-home-worlds__mosaic > .cp-home-world { flex-basis: calc((100% - 5rem) / 6); }
}

.cp-home-fandoms .cp-home-section-head {
	display: block;
	text-align: center;
}

.cp-home-fandoms .cp-home-line-card {
	width: clamp(13rem, 67vw, 21rem);
}

@media (min-width: 768px) {
	.cp-home-fandoms .cp-home-line-card { width: 23rem; }
}

.cp-home-fandoms__card {
	display: grid;
	gap: 0.25rem;
	color: var(--cp-text);
	text-decoration: none;
}

.cp-home-fandoms__card--all {
	aspect-ratio: 8 / 9;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 1rem;
	border: 1px solid var(--cp-border);
	border-radius: var(--cp-radius-lg);
	background: var(--cp-surface-elevated);
	font-size: 1.125rem;
	font-weight: 700;
}

.cp-home-fandoms__card--all .cp-icon { color: var(--cp-primary); }
.cp-home-fandoms__card--all:is(:hover, :focus-visible) { border-color: var(--cp-primary); }

.cp-home-fandoms__card img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	border-radius: var(--cp-radius-lg);
}

.cp-home-fandoms__name {
	margin: 0.5rem 0 0;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 700;
	line-height: 1.35;
	color: inherit;
}

.cp-home-fandoms__count {
	color: var(--cp-text-muted);
	font-size: 0.875rem;
	font-weight: 500;
}

.cp-home-fandoms__card:hover .cp-home-fandoms__name { color: var(--cp-primary); }

.cp-home-fandoms__card--cover {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	box-sizing: border-box;
	aspect-ratio: 8 / 9;
	grid-template-rows: 1fr auto auto;
	justify-items: center;
	gap: 0.25rem;
	padding: 0 1rem 1rem;
	border-radius: var(--cp-radius-lg);
	background: var(--cp-ink-950);
	color: var(--cp-on-primary);
	text-align: center;
}

.cp-home-fandoms__card--cover img,
.cp-home-fandoms__card--cover::before {
	position: absolute;
	inset: 0;
	width: 100%;
}

.cp-home-fandoms__card--cover img {
	z-index: -2;
	inset-block-end: auto;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}

.cp-home-fandoms__card--cover::before {
	content: '';
	z-index: -1;
	background: linear-gradient(to bottom, transparent 55%, color-mix(in srgb, var(--cp-ink-950) 20%, transparent) 68%, var(--cp-ink-950) 89%);
}

.cp-home-fandoms__card--cover .cp-home-fandoms__name {
	grid-row: 2;
	margin: 0;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.cp-home-fandoms__card--cover:is(:hover, :focus-visible) .cp-home-fandoms__name { color: var(--cp-on-primary); }

.cp-home-fandoms__card--cover .cp-home-fandoms__count {
	grid-row: 3;
	padding: 0.125rem 0.75rem;
	border-radius: var(--cp-radius-full);
	background: var(--cp-surface-elevated);
	color: var(--cp-text);
	line-height: 1.6;
	font-weight: 600;
}

.cp-home-fandoms__card--cover:is(:hover, :focus-visible) .cp-home-fandoms__count {
	background: var(--cp-primary);
}

/* Studio — design-studio introduction */
.cp-home-studio {
	padding: 1.5rem 0;
	border-block: 1px solid var(--cp-border);
	background:
		radial-gradient(
			120% 80% at 100% 0%,
			color-mix(in srgb, var(--cp-primary) 10%, transparent),
			transparent 55%
		),
		var(--cp-home-surface-alt);
}

.cp-home-studio__box {
	display: grid;
	gap: 1rem;
	align-items: center;
}

.cp-home-studio__copy {
	display: grid;
	gap: 0.75rem;
	min-width: 0;
	max-width: 36rem;
}

.cp-home-studio__eyebrow {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--cp-primary);
}

.cp-home-studio__copy .cp-home-section-title,
.cp-home-studio__copy .cp-home-section-desc {
	margin: 0;
}

.cp-home-studio__steps {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cp-home-studio__step {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.75rem;
	align-items: start;
}

.cp-home-studio__step-index {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border: 1px solid color-mix(in srgb, var(--cp-primary) 35%, var(--cp-border));
	border-radius: var(--cp-btn-radius);
	background: color-mix(in srgb, var(--cp-primary) 12%, var(--cp-surface));
	color: var(--cp-primary);
	font-size: 0.875rem;
	font-weight: 700;
}

.cp-home-studio__step-body {
	display: grid;
	gap: 0.25rem;
}

.cp-home-studio__step-title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--cp-text);
}

.cp-home-studio__step-text {
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.5;
	color: var(--cp-text-muted);
}

.cp-home-studio__range {
	display: grid;
	gap: 0.5rem;
	margin: 0.5rem 0 0;
	min-width: 0;
}

.cp-home-studio__range-label {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--cp-text-muted);
}

.cp-home-studio__marquee {
	position: relative;
	overflow: hidden;
	direction: ltr;
	mask-image: linear-gradient(
		90deg,
		transparent 0,
		#000 1.5rem,
		#000 calc(100% - 1.5rem),
		transparent 100%
	);
}

.cp-home-studio__marquee-track {
	display: flex;
	width: max-content;
	animation: cp-home-studio-marquee 28s linear infinite;
}

.cp-home-studio__tags {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	padding-inline-end: 0.5rem;
	list-style: none;
}

.cp-home-studio__tag {
	flex-shrink: 0;
	padding: 0.25rem 0.75rem;
	border: 1px solid var(--cp-border);
	border-radius: var(--cp-btn-radius);
	background: var(--cp-surface-elevated);
	color: var(--cp-text);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
	direction: rtl;
}

@keyframes cp-home-studio-marquee {
	from {
		transform: translateX(-50%);
	}

	to {
		transform: translateX(0);
	}
}

.cp-home-studio__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0.25rem;
}

.cp-home-studio__visual {
	position: relative;
	display: grid;
	place-items: center;
	justify-self: center;
	width: min(52vw, 12rem);
	margin: 0;
}

.cp-home-studio__glow {
	position: absolute;
	inset: 10%;
	z-index: 0;
	border: 1px solid color-mix(in srgb, var(--cp-primary) 28%, var(--cp-border));
	border-radius: 50%;
	background:
		radial-gradient(
			circle at 50% 45%,
			color-mix(in srgb, var(--cp-primary) 42%, var(--cp-surface-elevated)) 0%,
			color-mix(in srgb, var(--cp-primary) 18%, var(--cp-surface)) 48%,
			color-mix(in srgb, var(--cp-primary) 6%, transparent) 72%,
			transparent 82%
		);
	pointer-events: none;
}

.cp-home-studio__visual img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

@media (max-width: 767px) {
	.cp-home-studio { scroll-margin-block-start: var(--cp-chrome-offset); }

	.cp-home-studio__copy {
		width: 100%;
		justify-self: center;
		justify-items: center;
		text-align: center;
	}

	.cp-home-studio__copy .cp-home-section-title {
		max-width: 24ch;
		line-height: 1.4;
		text-wrap: balance;
	}

	.cp-home-studio__copy .cp-home-section-desc,
	.cp-home-studio__copy .cp-home-studio__range,
	.cp-home-studio__visual {
		display: none;
	}

	.cp-home-studio__step-text {
		text-wrap: balance;
	}

	.cp-home-studio__steps {
		width: 100%;
		gap: 1rem;
		margin-block: 0.5rem;
	}

	.cp-home-studio__step {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		gap: 0.25rem 0.5rem;
	}

	.cp-home-studio__step-body { display: contents; }
	.cp-home-studio__step-text { flex-basis: 100%; }
	.cp-home-studio__step-index { width: 1.5rem; height: 1.5rem; }

	.cp-home-studio__actions { justify-content: center; }
}

@media (min-width: 768px) {
	.cp-home-studio {
		padding: 2rem 0;
	}

	.cp-home-studio__box {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		gap: 2rem;
	}

	.cp-home-studio__visual {
		width: min(100%, clamp(12rem, 24vw, 21rem));
	}
}

/* FAQ */
.cp-home-faq {
	padding-bottom: 3rem;
}

.cp-home-faq__wrap {
	max-width: 52.5rem;
}

.cp-home-faq__wrap .cp-home-section-title {
	margin-bottom: 1.5rem;
}

.cp-home-faq__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.cp-home-faq__item {
	overflow: hidden;
	border: 1px solid var(--cp-border);
	border-radius: var(--cp-home-radius);
	background: var(--cp-home-surface-alt);
}

.cp-home-faq__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	min-height: 3rem;
	padding: 1rem 1.5rem;
	border: 0;
	background: transparent;
	color: var(--cp-text);
	font: inherit;
	text-align: right;
	cursor: pointer;
}

.cp-home-faq__trigger:focus-visible {
	outline: 2px solid var(--cp-primary);
	outline-offset: -2px;
}

.cp-home-faq__question {
	font-size: 0.875rem;
	font-weight: 600;
}

.cp-home-faq__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--cp-primary);
	transition: transform var(--cp-transition);
}

.cp-home-faq__icon .cp-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.cp-home-faq__item.is-open .cp-home-faq__icon {
	transform: rotate(45deg);
}

.cp-home-faq__answer {
	padding: 0 1.5rem 1.5rem;
}

.cp-home-faq__answer[hidden] {
	display: none;
}

.cp-home-faq__answer p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--cp-text-muted);
}

@media (min-width: 768px) {
	.cp-home-faq {
		padding-bottom: 4rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cp-home-faq__icon,
	.cp-home-hero__art,
	.cp-home-hero__tile {
		transition: none;
	}

	.cp-home-hero__mosaic.is-twinkling .cp-home-hero__tile {
		opacity: 1;
		filter: none;
	}

	.cp-home-studio__marquee {
		mask-image: none;
	}

	.cp-home-studio__marquee-track {
		animation: none;
		flex-wrap: wrap;
		width: auto;
	}

	.cp-home-studio__marquee-track .cp-home-studio__tags:last-child {
		display: none;
	}

	.cp-home-studio__tags {
		flex-wrap: wrap;
	}

	.cp-home-hero__range .cp-home-studio__marquee {
		overflow-x: auto;
	}

	.cp-home-hero__range .cp-home-studio__marquee-track {
		width: max-content;
	}

	.cp-home-hero__range .cp-home-studio__tags {
		flex-wrap: nowrap;
	}
}
