/* aieo/shop-the-room (AIEO_Shop_The_Room; Brief C's proposal 10, the multi-look demo's Hearth, 21 Nov 2026). The room
 * (the block's inner blocks, then its picture with the points) and the points' product cards. A phone and a narrow
 * window: the room, then the cards, nothing sticky, the picture whole and still. From 1,024 px: two columns, the room
 * sticky under the theme's header while the cards pass, far apart; under the theme's behaviour gate the picture is 1.2
 * times larger and moves to each point as its card's top crosses from 55 % to 45 % of the window (each card's view
 * timeline, the room's timeline-scope; registered properties so the move eases). No colour of its own: the cards on
 * the palette's neutral-50, the points on the page's ground with a line of its text. */
.aieo-room {
	display: grid;
	gap: var(--wp--preset--spacing--5, 1.5rem);
}
.aieo-room__stage {
	display: grid;
	gap: var(--wp--preset--spacing--3, 0.75rem);
	align-content: start;
	min-width: 0;
}
.aieo-room__frame {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--wp--custom--rooster--shape--card, 0);
}
.aieo-room__zoom {
	position: absolute;
	inset: 0;
	transform-origin: 0 0;
}
.aieo-room__picture {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--aieo-room-fx, 50%) var(--aieo-room-fy, 50%);
}
/* A point: a 22 px ring on the page's ground, in a 44 px target (FE-O1). */
.aieo-room__point {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.aieo-room__point::before {
	content: "";
	position: absolute;
	inset: 11px;
	box-sizing: border-box;
	border: 3px solid var(--wp--preset--color--fg, currentColor);
	border-radius: 50%;
	background: var(--wp--preset--color--bg, Canvas);
}
.aieo-room__point[aria-current="true"]::before {
	box-shadow: 0 0 0 3px var(--wp--preset--color--bg, Canvas);
}
.aieo-room__cards {
	display: grid;
	gap: var(--wp--preset--spacing--5, 1.5rem);
	min-width: 0;
}
.aieo-room__card {
	display: grid;
	gap: 0.625rem;
	padding: var(--wp--preset--spacing--5, 1.5rem);
	border-radius: var(--wp--custom--rooster--shape--card, 0);
	background: var(--wp--preset--color--neutral-50, var(--wp--preset--color--bg));
	color: var(--wp--preset--color--fg, currentColor);
	scroll-margin-block: 20vh;
}
.aieo-room__card-picture {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--wp--custom--rooster--shape--media, 0);
}
.aieo-room__card-title {
	margin: 0;
	font-size: var(--wp--preset--font-size--xl, 1.375rem);
	font-weight: 400;
}
.aieo-room__card-title a {
	color: inherit;
	text-decoration: none;
}
.aieo-room__card-title a:hover {
	text-decoration: underline;
}
.aieo-room__card-note {
	margin: 0;
	color: var(--wp--preset--color--muted, currentColor);
	font-size: var(--wp--preset--font-size--sm, 0.875rem);
}
.aieo-room__card-price {
	margin: 0;
	font-size: var(--wp--preset--font-size--md, 1rem);
	font-weight: 600;
}
@media (min-width: 1024px) {
	.aieo-room {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--wp--preset--spacing--7, 3rem);
		align-items: start;
	}
	.aieo-room__stage {
		position: sticky;
		top: calc(var(--rooster-sticky-top, 0px) + 20px);
	}
	.aieo-room__cards {
		gap: 46vh;
		padding-block: 24vh 20vh;
	}
}
@property --aieo-room-x {
	syntax: "<percentage>";
	inherits: false;
	initial-value: 0%;
}
@property --aieo-room-y {
	syntax: "<percentage>";
	inherits: false;
	initial-value: 0%;
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) and (timeline-scope: none) {
		@container style(--wp--custom--track--scroll: 1) {
			.aieo-room {
				timeline-scope: --aieo-room-2, --aieo-room-3, --aieo-room-4, --aieo-room-5, --aieo-room-6;
			}
			.aieo-room__card:nth-child(2) { view-timeline: --aieo-room-2 block; }
			.aieo-room__card:nth-child(3) { view-timeline: --aieo-room-3 block; }
			.aieo-room__card:nth-child(4) { view-timeline: --aieo-room-4 block; }
			.aieo-room__card:nth-child(5) { view-timeline: --aieo-room-5 block; }
			.aieo-room__card:nth-child(6) { view-timeline: --aieo-room-6 block; }
			.aieo-room__zoom {
				--aieo-room-x: var(--x1);
				--aieo-room-y: var(--y1);
				transform: translate(calc(var(--aieo-room-x) * -0.2), calc(var(--aieo-room-y) * -0.2)) scale(1.2);
				animation-name: aieo-room-2, aieo-room-3, aieo-room-4, aieo-room-5, aieo-room-6;
				animation-duration: auto;
				animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
				animation-fill-mode: forwards;
				animation-timeline: --aieo-room-2, --aieo-room-3, --aieo-room-4, --aieo-room-5, --aieo-room-6;
				animation-range: cover 45vh cover 55vh;
			}
		}
	}
}
@keyframes aieo-room-2 { from { --aieo-room-x: var(--x1); --aieo-room-y: var(--y1); } to { --aieo-room-x: var(--x2); --aieo-room-y: var(--y2); } }
@keyframes aieo-room-3 { from { --aieo-room-x: var(--x2); --aieo-room-y: var(--y2); } to { --aieo-room-x: var(--x3); --aieo-room-y: var(--y3); } }
@keyframes aieo-room-4 { from { --aieo-room-x: var(--x3); --aieo-room-y: var(--y3); } to { --aieo-room-x: var(--x4); --aieo-room-y: var(--y4); } }
@keyframes aieo-room-5 { from { --aieo-room-x: var(--x4); --aieo-room-y: var(--y4); } to { --aieo-room-x: var(--x5); --aieo-room-y: var(--y5); } }
@keyframes aieo-room-6 { from { --aieo-room-x: var(--x5); --aieo-room-y: var(--y5); } to { --aieo-room-x: var(--x6); --aieo-room-y: var(--y6); } }
