/* Original Music for Games: static visual phase, scoped to this section. */
.rb-projects {
	--projects-paper: #e7e2d8;
	--projects-ink: #181916;
	--projects-card: #252624;
	--projects-copper: #b35133;
	--projects-card-width: 760px;
	--projects-accent-text: #cc7956;
	padding: 44px 24px 64px;
	background: var(--projects-paper);
	color: var(--projects-ink);
	text-align: center;
}
.rb-projects-heading { margin-inline: auto; }
.rb-projects-eyebrow { margin: 0 0 36px; color: var(--projects-copper); font-size: 9px; letter-spacing: 3px; text-transform: uppercase; }
.rb-projects-heading h2 { margin: 0; font-family: var(--rb-sans); font-size: clamp(48px, 5vw, 96px); font-weight: 700; letter-spacing: -.065em; line-height: .9; }
.rb-projects-intro { max-width: 650px; margin: 30px auto 0; color: #55554e; font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.6; }
.rb-projects-stage { position: relative; isolation: isolate; max-width: 1520px; margin: 80px auto 0; }
.rb-projects-preview { position: absolute; top: 110px; z-index: -1; width: 430px; height: 430px; margin: 0; overflow: hidden; box-shadow: 0 22px 48px rgba(24, 25, 22, .18); }
.rb-projects-preview--left { right: calc(50% + 315px); }
.rb-projects-preview--right { left: calc(50% + 315px); }
.rb-projects-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rb-projects-preview::after { content: ""; position: absolute; inset: 0; background: rgba(212, 207, 196, .68); }
.rb-projects-preview figcaption { position: absolute; bottom: 16px; left: 20px; z-index: 1; color: rgba(255, 255, 255, .65); font-size: 18px; font-weight: 700; }
.rb-project-card { position: relative; width: min(100%, var(--projects-card-width)); margin-inline: auto; padding: 30px 38px 34px; background: var(--projects-card); color: var(--projects-paper); box-shadow: 0 30px 72px rgba(24, 25, 22, .28); }
.rb-project-card-artwork { display: block; width: min(100%, 550px); height: auto; aspect-ratio: 1; object-fit: cover; object-position: center; margin-inline: auto; box-shadow: 0 14px 38px rgba(0, 0, 0, .36); }
.rb-project-card-category { margin: 26px 0 18px; color: var(--projects-accent-text); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; }
.rb-project-card-heading { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; gap: 20px; }
.rb-project-card h3 { margin: 0; font-family: var(--rb-sans); font-size: 28px; font-weight: 700; letter-spacing: -.06em; line-height: 1.05; overflow-wrap: anywhere; }
.rb-project-card h3 span { display: block; }
.rb-project-card-credit { margin: 12px 0 0; color: #a7a69c; font-size: 9px; letter-spacing: 1.8px; text-transform: uppercase; }
.rb-projects button { font-family: inherit; cursor: not-allowed; opacity: 1; }
.rb-project-card-arrow { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid #555650; border-radius: 7px; background: #1c1d1b; color: #c5c5bb; font-size: 24px; line-height: 1; box-shadow: 0 7px 18px rgba(0, 0, 0, .15); }
.rb-project-card-divider { width: 24px; height: 1px; margin: 32px auto 16px; background: var(--projects-copper); }
.rb-project-card-description { min-height: 48px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.6; color: #d3cfc5; }
.rb-project-card-tracks { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 48px; }
.rb-project-card-tracks button { position: relative; padding: 8px 0 10px; border: 0; border-bottom: 1px solid transparent; background: transparent; color: #929187; font-family: Georgia, "Times New Roman", serif; font-size: 13px; transition: color 180ms ease; }
.rb-project-card-tracks button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--projects-copper); transform: scaleX(0); transform-origin: left; transition: transform 220ms ease; }
.rb-project-card-tracks button.is-current { color: var(--projects-accent-text); }
.rb-project-card-tracks button.is-current::after { transform: scaleX(1); }
.rb-project-card-player { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.rb-project-card-play { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; padding: 0; border: 1px solid var(--projects-accent-text); border-radius: 50%; background: var(--projects-copper); color: #fff; font-size: 12px; }
.rb-project-card-play span { display: block; line-height: 1; transform: translateX(1px); }
.rb-project-card-time { flex-shrink: 0; color: #bcb9ae; font-size: 10px; font-variant-numeric: tabular-nums; }
.rb-project-card-progress { position: relative; flex: 1; min-width: 0; height: 2px; background: linear-gradient(to right, var(--projects-copper) 0%, var(--projects-copper) var(--project-progress, 0%), #555650 var(--project-progress, 0%), #555650 100%); }
.rb-project-card-progress span { position: absolute; left: var(--project-progress, 0%); top: 50%; width: 11px; height: 11px; border: 2px solid var(--projects-card); border-radius: 50%; background: var(--projects-copper); box-shadow: 0 0 0 1px var(--projects-accent-text); transform: translateY(-50%); }
.rb-project-card-progress input { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 100%; height: 32px; margin: 0; opacity: 0; cursor: pointer; }
.rb-project-card-progress:has(input:focus-visible) { outline: 2px solid var(--projects-copper); outline-offset: 6px; }
html[data-rb-input="pointer"] .rb-project-card-progress:focus-within { outline: none; }
.rb-projects-audio-status { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.rb-projects-audio-status.is-error { position: static; width: auto; height: auto; margin: 24px auto 0; clip-path: none; color: #873d26; font-size: 13px; }
.rb-projects-pagination { display: grid; grid-template-columns: 38px repeat(3, 20px) 38px; align-items: center; justify-content: center; justify-items: center; gap: 22px; width: min(100%, var(--projects-card-width)); margin: 36px auto 0; padding: 0; }
.rb-projects-pagination button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #a5a59b; border-radius: 50%; background: transparent; color: #55594f; font-size: 25px; }
.rb-projects-dot { width: 3px; height: 3px; border-radius: 50%; background: #a5a59b; }
.rb-projects-dot.is-current { width: 20px; height: 2px; border-radius: 0; background: var(--projects-copper); }
.rb-projects-preview-note { margin: 24px auto 0; max-width: 600px; color: #65645b; font-size: 12px; line-height: 1.5; }
@media (max-width: 1538px) {
	.rb-projects-stage { max-width: 100%; }
	.rb-projects-preview { width: 31%; height: auto; aspect-ratio: 1; }
	.rb-projects-preview--left { left: 0; right: auto; }
	.rb-projects-preview--right { left: auto; right: 0; }
}
/* Provisional narrow-screen layout pending mobile references. */
@media (max-width: 800px) {
	.rb-projects { padding: 56px 20px; }
	.rb-projects-eyebrow { margin-bottom: 24px; }
	.rb-projects-intro { font-size: 16px; }
	.rb-projects-stage { margin-top: 44px; }
	.rb-projects-preview { display: none; }
	.rb-project-card { padding: 24px 20px; }
	.rb-project-card h3 { font-size: 23px; }
	.rb-project-card-heading { grid-template-columns: 32px 1fr 32px; gap: 8px; }
	.rb-project-card-arrow { width: 32px; height: 36px; }
	.rb-project-card-tracks { gap: 12px; margin-top: 30px; }
	.rb-project-card-player { gap: 10px; }
}

.rb-projects-chevron { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }

/* Interactive states preserve the validated card and preview geometry. */
.rb-projects-stage { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.rb-projects { overflow-x: clip; }
.rb-project-slide { grid-area: 1 / 1; min-width: 0; z-index: 1; opacity: 1; visibility: hidden; pointer-events: none; }
.rb-project-slide.is-active { z-index: 2; visibility: visible; pointer-events: auto; }
/* One surface per project: the same artwork travels between both presentations. */
.is-interactive .rb-projects-stage { height: var(--stage-height); }
.is-interactive .rb-projects-preview { display: none; }
.is-interactive .rb-project-slide {
	z-index: var(--card-layer, 0);
	isolation: isolate;
	visibility: visible;
	height: var(--full-height);
	overflow: hidden;
	transform-origin: center top;
	transform: translate(0, 0) scale(1);
	transition: transform 400ms ease, height 400ms ease, box-shadow 400ms ease;
}
.is-interactive .rb-project-slide:not(.is-active) {
	height: var(--surface-width);
	transform: translate(var(--side-x), 110px) scale(var(--side-scale));
	background: transparent;
	box-shadow: none;
	overflow: visible;
}
.is-interactive .rb-project-slide.is-previous { --side-x: calc(-1 * var(--side-distance)); }
.is-interactive .rb-project-slide.is-next { --side-x: var(--side-distance); }
.rb-project-artwork-surface { position: relative; width: min(100%, 550px); margin-inline: auto; aspect-ratio: 1; transform-origin: center top; }
.rb-project-artwork-surface .rb-project-card-artwork { width: 100%; margin: 0; }
.is-interactive .rb-project-artwork-surface { transition: transform 400ms ease; }
.is-interactive .rb-project-slide:not(.is-active) .rb-project-artwork-surface { transform: translateY(calc(-1 * var(--surface-padding))) scale(var(--artwork-scale)); box-shadow: 0 calc(22px / var(--preview-factor)) calc(48px / var(--preview-factor)) rgba(24, 25, 22, .18); }
.is-interactive .rb-project-slide:not(.is-active) .rb-project-card-artwork { box-shadow: none; }
/* Presentation changes are exclusive: no outgoing details or duplicate title. */
.is-interactive .rb-project-slide:not(.is-active) > :not(.rb-project-artwork-surface) { visibility: hidden; }
.is-interactive .rb-project-artwork-surface::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: rgba(212, 207, 196, .68); opacity: 0; transition: opacity 400ms ease; }
.is-interactive .rb-project-slide:not(.is-active) .rb-project-artwork-surface::before { opacity: 1; }
.is-interactive .rb-project-artwork-surface::after { content: attr(data-project-title); position: absolute; z-index: 2; bottom: calc(16px / var(--preview-factor)); left: calc(20px / var(--preview-factor)); color: rgba(255, 255, 255, .65); font-size: calc(18px / var(--preview-factor)); font-weight: 700; text-align: left; visibility: hidden; pointer-events: none; }
.is-interactive .rb-project-slide:not(.is-active) .rb-project-artwork-surface::after { visibility: visible; }
.rb-projects.is-measuring .rb-project-slide { height: auto; transition: none; }
.rb-projects-preview { left: 50%; right: auto; pointer-events: none; }
.rb-projects-preview--left { transform: translateX(calc(-100% - 315px)); }
.rb-projects-preview--right { transform: translateX(315px); }
.rb-projects-preview--center { transform: translateX(-50%) scale(1.2); visibility: hidden; }
.rb-project-card h3 a { color: inherit; text-decoration: none; transition: color 180ms ease; }
.rb-project-card h3 a:focus-visible { color: var(--projects-accent-text); }
.rb-projects button:not(:disabled) { cursor: pointer; }
.rb-projects button:focus-visible { outline: 2px solid var(--projects-copper); outline-offset: 4px; }
.rb-project-card-arrow,
.rb-projects-pagination button[data-project-step] { transition: transform 180ms ease, border-color 180ms ease; }
.rb-projects .rb-projects-indicator { width: 20px; height: 38px; border: 0; border-radius: 0; background: transparent; padding: 0; }
.rb-projects-dot { display: block; width: 20px; height: 3px; border-radius: 2px; transform: scaleX(.15); transform-origin: center; transition: transform 400ms ease, height 400ms ease, background-color 400ms ease; }
.rb-projects-dot.is-current { height: 2px; border-radius: 2px; transform: scaleX(1); }
.rb-projects-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
	.rb-project-card h3 a:hover { color: var(--projects-accent-text); }
	.rb-project-card-arrow:not(:disabled):hover,
	.rb-projects-pagination button[data-project-step]:not(:disabled):hover { transform: scale(1.05); border-color: var(--projects-copper); }
}
.rb-project-card-arrow:focus-visible,
.rb-projects-pagination button[data-project-step]:focus-visible { border-color: var(--projects-copper); }
.rb-project-card-arrow:not(:disabled):active,
.rb-projects-pagination button[data-project-step]:not(:disabled):active { transform: scale(.98); }
@media (max-width: 1538px) {
	.rb-projects-preview--left { left: 0; right: auto; transform: none; }
	.rb-projects-preview--right { left: 100%; right: auto; transform: translateX(-100%); }
	.rb-projects-preview--center { left: 50%; transform: translateX(-50%) scale(1.2); }
}
@media (max-width: 800px) {
	/* Equal layout boxes keep scene height stable; centered scaling supplies mobile depth. */
	.is-interactive .rb-project-slide {
		height: var(--stage-height);
		transform-origin: center;
		transform: translateX(0) scale(1);
		opacity: 1;
		transition: transform 400ms ease, box-shadow 400ms ease;
	}
	.is-interactive .rb-project-slide:not(.is-active) {
		height: var(--stage-height);
		visibility: visible;
		transform: translateX(var(--mobile-x)) scale(.68);
		background: var(--projects-card);
		box-shadow: 0 30px 72px rgba(24, 25, 22, .28);
		overflow: hidden;
	}
	.is-interactive .rb-project-slide.is-previous { --mobile-x: calc(-1 * var(--mobile-distance)); }
	.is-interactive .rb-project-slide.is-next { --mobile-x: var(--mobile-distance); }
	.is-interactive .rb-project-slide:not(.is-active) .rb-project-artwork-surface { transform: none; box-shadow: none; }
	.is-interactive .rb-project-slide:not(.is-active) .rb-project-card-artwork { box-shadow: 0 14px 38px rgba(0, 0, 0, .36); }
	.is-interactive .rb-project-slide:not(.is-active) > :not(.rb-project-artwork-surface) { visibility: visible; }
	.is-interactive .rb-project-slide:not(.is-active) .rb-project-artwork-surface::after { visibility: hidden; }
	/* Tint the opaque surface rather than cross-fading complete cards and their text. */
	.is-interactive .rb-project-artwork-surface::before { opacity: 0; }
	.is-interactive .rb-project-slide:not(.is-active) .rb-project-artwork-surface::before { opacity: 0; }
	.is-interactive .rb-project-slide::before {
		content: "";
		position: absolute;
		z-index: 3;
		inset: 0;
		background: rgba(212, 207, 196, .3);
		opacity: 0;
		pointer-events: none;
		transition: opacity 400ms ease;
	}
	.is-interactive .rb-project-slide:not(.is-active)::before { opacity: 1; }
}
.rb-projects-stage { touch-action: auto; }
@media (hover: none) and (pointer: coarse) {
 .rb-project-card h3 a:active { color: var(--projects-accent-text); }
 .rb-project-card-arrow:not(:disabled):active,
 .rb-projects-pagination button[data-project-step]:not(:disabled):active { border-color: var(--projects-copper); }
}

@media (prefers-reduced-motion: reduce) {
	.rb-project-card-tracks button,
	.rb-project-card-tracks button::after { transition: none; }
	.is-interactive .rb-project-slide,
	.is-interactive .rb-project-slide.is-active,
	.is-interactive .rb-projects-preview,
	.rb-projects-dot,
	.rb-project-card-arrow,
	.rb-projects-pagination button[data-project-step],
	.rb-project-card h3 a { transition: none; }
	.is-interactive .rb-project-artwork-surface,
	.is-interactive .rb-project-slide::before,
	.is-interactive .rb-project-artwork-surface::before { transition: none; }
	.rb-project-card-arrow:not(:disabled):hover,
	.rb-projects-pagination button[data-project-step]:not(:disabled):hover,
	.rb-project-card-arrow:not(:disabled):active,
	.rb-projects-pagination button[data-project-step]:not(:disabled):active { transform: none; }
}
