/*
 * Canvas scenes lifted from drop_zone/KC_Consolidated_Concept.html:
 * the knowledge-graph hero and the "capture a room" walkthrough.
 *
 * The concept file is a standalone prototype with its own palette
 * (--accent:#2A7A8C, --ink:#0E1B2C, …). Those values are close to the design
 * system's but not identical, so nothing is copied across: every colour here
 * resolves through the same --wp--preset--* / --wp--custom--* variables the
 * rest of the theme uses. The layout — sizes, radii, the two-up grid — is the
 * prototype's, because that is what was being asked for.
 */

/* ── Hero: the live knowledge graph ───────────────────────────────────────── */

.kc-stage {
	position: relative;
	margin: var(--wp--preset--spacing--40) auto 0;
	max-width: 1000px;
	height: 520px;
}

.kc-stage canvas {
	display: block;
	width: 100%;
	height: 100%;
}

/* The rotating caption under the graph. Absolutely positioned so the three
   lines it cycles through cannot change the height of the stage — otherwise
   the whole page below it jumps every 2.9 seconds. */
.kc-stage-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	text-align: center;
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(1rem, 2.2vw, 1.3rem);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--tight);
	color: var(--wp--preset--color--contrast);
	transition: opacity 0.6s ease;
}

.kc-stage-caption .q {
	color: var(--wp--preset--color--accent-1);
}

@media (max-width: 640px) {
	.kc-stage {
		height: 400px;
	}
}

/* ── Capture section: two modes, then the room walkthrough ────────────────── */

.kc-modes {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--40);
	margin: var(--wp--preset--spacing--60) auto 0;
	text-align: left;
}

.kc-mode {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: var(--wp--custom--radius--xl);
	padding: var(--wp--preset--spacing--50);
}

.kc-mode .kc-micon {
	width: 32px;
	height: 32px;
	color: var(--wp--preset--color--accent-1);
	margin-bottom: 14px;
}

.kc-mode .kc-micon svg {
	width: 100%;
	height: 100%;
}

/* Mode titles are h3s and pick up the theme's uppercase display face from
   theme.json, exactly like every other h3 on the site. */
.kc-mode p {
	margin-top: 10px;
	color: var(--wp--custom--color--fg-2);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.kc-mode .kc-badges {
	margin-top: 16px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.kc-mode .kc-badges span {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent-1);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 980px;
	padding: 5px 12px;
}

.kc-mode .kc-go {
	margin-top: 16px;
	display: inline-block;
	color: var(--wp--preset--color--accent-1);
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
}

.kc-mode .kc-go:hover {
	text-decoration: underline;
}

@media (max-width: 720px) {
	.kc-modes {
		grid-template-columns: 1fr;
	}
}

.kc-stage-room {
	margin: var(--wp--preset--spacing--60) auto 0;
	max-width: 960px;
	height: 440px;
	border-radius: var(--wp--custom--radius--xl);
	overflow: hidden;
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--accent-6);
}

.kc-stage-room canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.kc-scene-cap {
	margin: var(--wp--preset--spacing--30) auto 0;
	text-align: center;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--custom--color--fg-3);
}

@media (max-width: 640px) {
	.kc-stage-room {
		height: 360px;
	}
}

/* Both scenes animate continuously. Anyone who has asked their system not to
   gets a single painted frame instead — the scripts check the same query and
   stop after one draw, so this only removes the caption's fade. */
@media (prefers-reduced-motion: reduce) {
	.kc-stage-caption {
		transition: none;
	}
}
