/* ==========================================================================
   Realforma+ showcase (Nov 2026, v2) -- see inc/realforma-showcase.php.

   An editorial feature on the page itself (no panel; follows light / dark
   mode, Nov 12): the Realforma+ logo, a headline
   with the brand's bronze serif italic, three numbered points, and a mosaic
   of real Realforma+ project photography that drifts slightly as the page
   scrolls and opens up on hover. No grid, glow or mock-up: the work sells it.
   ========================================================================== */

.rfp-showcase {
	--rfp-ink: #111312;
	--rfp-ink-2: #1a1d1b;
	--rfp-cream: #f2ede3;
	/* No panel of its own: sits on the page and follows light / dark mode. */
	--rfp-text: #161a18;
	--rfp-mute: rgba(22, 26, 24, 0.68);
	--rfp-line: rgba(22, 26, 24, 0.13);
	--rfp-accent: #94703c;
	--rfp-bronze: #c9a066;
	--rfp-bronze-deep: #a6824a;
	--rfp-ease: cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	align-items: center;
	gap: clamp(2.5rem, 5vw, 5rem);
	width: min(1280px, calc(100% - 2 * clamp(16px, 4vw, 48px)));
	margin: clamp(4rem, 8vw, 7rem) auto !important;
	padding: 0;
	color: var(--rfp-text);
	background: none;
}
[data-theme="dark"] .rfp-showcase {
	--rfp-text: #f2ede3;
	--rfp-mute: rgba(242, 237, 227, 0.68);
	--rfp-line: rgba(242, 237, 227, 0.14);
	--rfp-accent: #c9a066;
}
/* Inside "How It Supports Your Business": directly under the cards, same width. */
.business-support-section .rfp-showcase {
	width: 100%;
	margin: clamp(3rem, 5vw, 4.5rem) 0 0 !important;
}
/* Logo: dark wordmark in light mode, cream in dark mode. */
.rfp-showcase .rfp-logo-dark { display: none !important; }
html:not([data-theme="dark"]) .rfp-showcase .rfp-logo:not(.rfp-logo-dark):has(+ .rfp-logo-dark) { display: none !important; }
html:not([data-theme="dark"]) .rfp-showcase .rfp-logo-dark { display: block !important; }
.rfp-showcase > .wp-block-group__inner-container { display: contents; }

/* ---- copy */
.rfp-showcase .rfp-copy > .wp-block-group__inner-container > *,
.rfp-showcase .rfp-copy > * { margin: 0; }
.rfp-showcase .rfp-brand { margin: 0 0 clamp(1.6rem, 3vw, 2.4rem) !important; line-height: 0; }
.rfp-showcase .rfp-logo {
	display: block;
	width: clamp(170px, 18vw, 220px);
	height: auto;
	border-radius: 0;
	box-shadow: none;
	filter: none !important;
}
.rfp-showcase .rfp-title {
	margin: 0 0 1.3rem !important;
	padding: 0 !important;
	font-size: clamp(2.3rem, 4.4vw, 3.9rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.045em;
	color: var(--rfp-text) !important;
	-webkit-text-fill-color: currentColor;
	background: none;
}
.rfp-showcase .rfp-title::before { content: none !important; }
.rfp-showcase .rfp-title em {
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
	font-style: italic;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--rfp-accent);
}
.rfp-showcase .rfp-lede {
	max-width: 44ch;
	margin: 0 0 2rem !important;
	font-size: clamp(1rem, 1.15vw, 1.1rem);
	line-height: 1.7;
	color: var(--rfp-mute) !important;
}
/* three numbered points, like an architect's schedule */
.rfp-showcase .rfp-points {
	list-style: none;
	counter-reset: rfp;
	margin: 0 0 2.4rem !important;
	padding: 0 !important;
	border-top: 1px solid var(--rfp-line);
}
.rfp-showcase .rfp-points li {
	counter-increment: rfp;
	display: grid;
	grid-template-columns: 3rem 1fr;
	align-items: baseline;
	margin: 0;
	padding: 0.95rem 0;
	border-bottom: 1px solid var(--rfp-line);
	font-size: 0.98rem;
	line-height: 1.45;
	color: var(--rfp-text);
	transition: padding-left 0.5s var(--rfp-ease), color 0.4s;
}
.rfp-showcase .rfp-points li::before {
	content: counter(rfp, decimal-leading-zero);
	font: 500 0.74rem/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	letter-spacing: 0.12em;
	color: var(--rfp-accent);
}
.rfp-showcase .rfp-points li:hover { padding-left: 0.5rem; }

.rfp-showcase .wp-block-buttons { gap: 0.9rem; margin: 0 !important; }
.rfp-showcase :is(.rfp-cta, .rfp-cta-ghost) .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	padding: 1rem 1.6rem 1rem 1.8rem;
	border-radius: 999px;
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transition: transform 0.45s var(--rfp-ease), background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.45s var(--rfp-ease);
}
.rfp-showcase :is(.rfp-cta, .rfp-cta-ghost) .wp-block-button__link::after {
	content: "\2197";
	font-size: 1.05em;
	transition: transform 0.45s var(--rfp-ease);
}
.rfp-showcase .rfp-cta .wp-block-button__link {
	border: 1px solid var(--rfp-bronze);
	color: var(--rfp-ink);
	background: var(--rfp-bronze);
	box-shadow: 0 18px 36px -20px rgba(166, 130, 74, 0.75);
}
.rfp-showcase .rfp-cta-ghost .wp-block-button__link {
	border: 1px solid var(--rfp-line);
	color: var(--rfp-text);
	background: transparent;
}
.rfp-showcase .rfp-cta .wp-block-button__link:hover { color: var(--rfp-ink); background: #d8b47e; transform: translateY(-3px); }
.rfp-showcase .rfp-cta-ghost .wp-block-button__link:hover { color: var(--rfp-text); border-color: var(--rfp-bronze); transform: translateY(-3px); }
.rfp-showcase :is(.rfp-cta, .rfp-cta-ghost) .wp-block-button__link:hover::after { transform: translate(3px, -3px); }

/* ---- photo mosaic: one tall, two stacked */
.rfp-showcase .rfp-visual > .wp-block-group__inner-container,
.rfp-showcase .rfp-visual:not(:has(> .wp-block-group__inner-container)) {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: clamp(0.75rem, 1.4vw, 1.1rem);
	height: clamp(420px, 40vw, 560px);
}
.rfp-showcase .rfp-shot {
	position: relative;
	margin: 0 !important;
	overflow: hidden;
	border-radius: 18px;
	background: #222;
	box-shadow: 0 30px 60px -38px rgba(17, 19, 18, 0.55);
	transform: translateY(calc(var(--py, 0) * 1px));
}
.rfp-showcase .rfp-shot:first-child { grid-row: 1 / span 2; }
/* Sharp at rest: no resting zoom or filter (both resample the photo); the
   drift uses whole pixels (js). Each photo opens the Realforma+ Work page. */
.rfp-showcase .rfp-shot a { display: block; height: 100%; }
.rfp-showcase .rfp-shot img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	border-radius: 0;
	box-shadow: none;
	transition: transform 1.2s var(--rfp-ease);
}
.rfp-showcase .rfp-shot:hover img { transform: scale(1.04); }
.rfp-showcase .rfp-shot a::after {
	content: "View work 97";
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 0.45rem 0.75rem;
	border-radius: 999px;
	font: 600 0.66rem/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rfp-ink);
	background: var(--rfp-bronze);
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 0.35s, transform 0.45s var(--rfp-ease);
}
.rfp-showcase .rfp-shot:hover a::after,
.rfp-showcase .rfp-shot a:focus-visible::after { opacity: 1; transform: none; }

.rfp-showcase .rfp-shot figcaption {
	position: absolute;
	left: 12px;
	bottom: 12px;
	margin: 0;
	padding: 0.45rem 0.75rem;
	border-radius: 999px;
	border: 0;
	font: 600 0.68rem/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rfp-cream);
	background: rgba(17, 19, 18, 0.55);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	text-align: left;
}
.rfp-showcase .rfp-shot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
	pointer-events: none;
}

/* ---- entrance (js/rfp-showcase.js adds the classes; nothing hides without it) */
.rfp-js .rfp-showcase .rfp-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.9s var(--rfp-ease), transform 0.9s var(--rfp-ease);
	transition-delay: calc(var(--i, 0) * 80ms);
}
.rfp-js .rfp-showcase.is-in .rfp-reveal { opacity: 1; transform: none; }
/* photos open like a curtain, bottom to top */
.rfp-js .rfp-showcase .rfp-shot {
	clip-path: inset(100% 0 0 0 round 18px);
	transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.18, 1);
	transition-delay: calc(0.2s + var(--i, 0) * 150ms);
}
.rfp-js .rfp-showcase.is-in .rfp-shot { clip-path: inset(0 0 0 0 round 18px); }

/* ---- tablets and phones */
@media (max-width: 900px) {
	.rfp-showcase { grid-template-columns: minmax(0, 1fr); }
	.rfp-showcase .rfp-visual > .wp-block-group__inner-container,
	.rfp-showcase .rfp-visual:not(:has(> .wp-block-group__inner-container)) { height: clamp(360px, 70vw, 520px); }
}
@media (max-width: 520px) {
	.rfp-showcase .rfp-visual > .wp-block-group__inner-container,
	.rfp-showcase .rfp-visual:not(:has(> .wp-block-group__inner-container)) {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-rows: 1.3fr 1fr;
		height: 440px;
	}
	.rfp-showcase .rfp-shot:first-child { grid-row: auto; grid-column: 1 / -1; }
	.rfp-showcase .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.rfp-showcase :is(.rfp-cta, .rfp-cta-ghost) .wp-block-button__link { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.rfp-showcase *, .rfp-showcase *::before, .rfp-showcase *::after { animation: none !important; transition: none !important; }
	.rfp-js .rfp-showcase .rfp-reveal { opacity: 1; transform: none; }
	.rfp-js .rfp-showcase .rfp-shot { clip-path: none; }
	.rfp-showcase .rfp-shot { transform: none; }
}
