/* =========================================================================
   Rehome Platform Site — dark editorial-futurism design system
   Scoped under .rps-page so nothing leaks into the surrounding theme.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Self-hosted fonts (Open Font License) — no third-party (Google) request.
   Variable fonts: Fraunces (opsz + wght, roman + italic) and Hanken Grotesk.
   ---------------------------------------------------------------------- */
@font-face{font-family:'Fraunces';font-style:normal;font-weight:300 900;font-display:swap;src:url('../fonts/fraunces-latin-normal.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:300 900;font-display:swap;src:url('../fonts/fraunces-latin-italic.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:300 800;font-display:swap;src:url('../fonts/hanken-grotesk-latin-normal.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* -------------------------------------------------------------------------
   Theme chrome reset.
   Applied ONLY on pages carrying a Rehome shortcode (body.rps-shortcode-page,
   added by the plugin). Hides the active theme's header, footer, page title
   and content padding so the plugin renders full-bleed. Covers block themes
   (Twenty Twenty-*), classic themes (#header / #footer / #colophon) and
   Elementor header/footer locations. The plugin's own nav/footer use classes
   (.rps-nav / .rps-footer), so they are never matched by these id selectors.
   ---------------------------------------------------------------------- */
/* Hide theme header / footer / title chrome */
body.rps-shortcode-page .wp-site-blocks > header,
body.rps-shortcode-page .wp-site-blocks > footer,
body.rps-shortcode-page header.wp-block-template-part,
body.rps-shortcode-page footer.wp-block-template-part,
body.rps-shortcode-page .wp-block-post-title,
body.rps-shortcode-page .wp-block-site-title,
body.rps-shortcode-page .wp-block-site-tagline,
body.rps-shortcode-page .entry-header,
body.rps-shortcode-page #header,
body.rps-shortcode-page #headerimg,
body.rps-shortcode-page #masthead,
body.rps-shortcode-page .site-header,
body.rps-shortcode-page #footer,
body.rps-shortcode-page #colophon,
body.rps-shortcode-page .site-footer,
body.rps-shortcode-page .elementor-location-header,
body.rps-shortcode-page .elementor-location-footer {
	display: none !important;
}
/* Strip the theme's content wrappers back to full-bleed, no padding */
body.rps-shortcode-page .wp-site-blocks,
body.rps-shortcode-page main,
body.rps-shortcode-page .wp-block-group.is-layout-constrained,
body.rps-shortcode-page .entry-content,
body.rps-shortcode-page #page,
body.rps-shortcode-page #content,
body.rps-shortcode-page #main,
body.rps-shortcode-page .site-content,
body.rps-shortcode-page .elementor-location-single {
	margin-block: 0 !important;
	padding: 0 !important;
	max-width: none !important;
}
body.rps-shortcode-page { margin: 0 !important; }
/* Make the page canvas dark so any residual wrapper margin at the very top
   (common with Elementor/WPBakery widget wrappers) shows as ink, not a white
   bar. :has() scopes the html rule to our pages only. */
html:has(body.rps-shortcode-page),
body.rps-shortcode-page,
body.rps-shortcode-page #page,
body.rps-shortcode-page #content,
body.rps-shortcode-page .elementor,
body.rps-shortcode-page .elementor-widget-shortcode,
body.rps-shortcode-page .elementor-widget-container {
	background: #0b1410 !important;
}
/* Remove default spacing on the Elementor/WPBakery wrappers around our shortcode. */
body.rps-shortcode-page .elementor-widget-shortcode,
body.rps-shortcode-page .elementor-widget-container,
body.rps-shortcode-page .wpb_text_column,
body.rps-shortcode-page .wpb_wrapper {
	margin: 0 !important;
	padding: 0 !important;
}
/* Kill any stray theme <hr> / top border that shows as a thin line at the top.
   Our own templates contain no <hr>, so this only affects theme markup. The
   border resets target the theme wrappers only (never elements inside
   .rps-page, so the plugin's own card/section borders are untouched). */
body.rps-shortcode-page hr { display: none !important; }
/* The full-bleed technique uses width:100vw, which can push the layout wider
   than the viewport (scrollbar width on desktop; oversized layout viewport =
   zoomed-in render on mobile). Clip it at BOTH html and body.
   Use overflow-x:clip, NOT hidden: clip never creates a scroll container, so
   overflow-y stays visible and vertical/native scrolling + mobile momentum are
   untouched. hidden would force overflow-y to auto, adding a second scrollport
   (the "scroll twice" jank). Must be on html too, since the overflow the 100vw
   creates lives at the root/viewport level, not just inside body. */
html:has(body.rps-shortcode-page),
body.rps-shortcode-page {
	overflow-x: clip !important;
}
body.rps-shortcode-page,
body.rps-shortcode-page #page,
body.rps-shortcode-page #content,
body.rps-shortcode-page #main,
body.rps-shortcode-page .site-content {
	border-top: 0 !important;
	border-bottom: 0 !important;
}

.rps-page {
	--ink:        #0b1410;   /* deep forest-black canvas         */
	--ink-2:      #0f1c16;   /* raised panels                    */
	--ink-3:      #14261e;   /* cards                            */
	--line:       rgba(244, 241, 233, 0.10);
	--line-soft:  rgba(244, 241, 233, 0.055);

	--paper:      #f4f1e9;   /* warm off-white text              */
	--paper-dim:  rgba(244, 241, 233, 0.66);
	--paper-faint:rgba(244, 241, 233, 0.40);

	--leaf:       #63d9a1;   /* living sustainability green       */
	--leaf-deep:  #1f6e52;
	--leaf-glow:  rgba(99, 217, 161, 0.30);

	/* Venture accents */
	--sofa:       #ff7a56;   /* Sofalistic — warm coral           */
	--repurch-y:  #ffcf4a;   /* Repurch Clearance — yellow         */
	--repurch-p:  #ff6bb0;   /* Repurch Exchange — pink            */

	--accent:     var(--leaf);          /* per-page overridable    */
	--accent-glow:var(--leaf-glow);

	--display: "Fraunces", Georgia, "Times New Roman", serif;
	--body:    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;

	--edge: clamp(1.25rem, 5vw, 6rem);
	--maxw: 1240px;

	position: relative;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--body);
	font-weight: 400;
	line-height: 1.6;
	font-size: clamp(1rem, 0.55vw + 0.9rem, 1.1rem);
	letter-spacing: 0.005em;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

/* Let the plugin own the full viewport width even inside constrained themes. */
.rps-page {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.rps-page *,
.rps-page *::before,
.rps-page *::after {
	box-sizing: border-box;
}

.rps-page a { color: inherit; text-decoration: none; }
.rps-page img { max-width: 100%; display: block; }

/* Ambient grain + a soft top-glow so the black never reads flat. */
.rps-page::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(120% 60% at 50% -10%, rgba(99, 217, 161, 0.10), transparent 60%),
		radial-gradient(80% 50% at 100% 110%, rgba(31, 110, 82, 0.14), transparent 70%);
}
.rps-page::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: 0.5;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
	mix-blend-mode: overlay;
}

.rps-page > * { position: relative; z-index: 2; }

/* -------------------------------------------------------------------------
   Typography
   ---------------------------------------------------------------------- */
.rps-page h1, .rps-page h2, .rps-page h3, .rps-page h4 {
	font-family: var(--display);
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.02em;
	margin: 0;
	font-optical-sizing: auto;
}
.rps-h1 { font-size: clamp(2.9rem, 8.5vw, 7rem); font-weight: 460; }
.rps-h2 { font-size: clamp(2.1rem, 5vw, 4rem); }
.rps-h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }

.rps-page p { margin: 0; }
.rps-lead {
	font-size: clamp(1.1rem, 1.4vw, 1.45rem);
	line-height: 1.5;
	color: var(--paper-dim);
	max-width: 46ch;
}

.rps-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--accent);
	white-space: nowrap;
}
.rps-eyebrow::before {
	content: "";
	width: 2rem;
	height: 1px;
	background: currentColor;
	opacity: 0.7;
}

.rps-serif-accent { font-family: var(--display); font-style: italic; font-weight: 400; color: var(--accent); }

/* -------------------------------------------------------------------------
   Layout primitives
   ---------------------------------------------------------------------- */
.rps-wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--edge); }
.rps-section { padding-block: clamp(5rem, 12vh, 10rem); }
.rps-section--tight { padding-block: clamp(3.5rem, 8vh, 6rem); }

.rps-grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
@media (min-width: 860px) {
	.rps-grid--2 { grid-template-columns: 1fr 1fr; align-items: center; }
	.rps-grid--split { grid-template-columns: 0.9fr 1.1fr; }
}

/* -------------------------------------------------------------------------
   Navigation
   ---------------------------------------------------------------------- */
.rps-nav {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem var(--edge);
	transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
	border-bottom: 1px solid transparent;
}
.rps-nav.is-stuck {
	background: rgba(9, 17, 13, 0.72);
	backdrop-filter: blur(16px) saturate(140%);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	border-bottom-color: var(--line-soft);
	padding-block: 0.7rem;
}
.rps-nav__brand img { width: clamp(140px, 16vw, 184px); height: auto; }
.rps-nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); align-items: center; }
.rps-nav__link {
	position: relative;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--paper-dim);
	padding: 0.3rem 0;
	transition: color 0.25s ease;
}
.rps-nav__link::after {
	content: "";
	position: absolute;
	left: 0; bottom: -2px;
	width: 100%; height: 1px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.1, 1);
}
.rps-nav__link:hover { color: var(--paper); }
.rps-nav__link:hover::after,
.rps-nav__link.is-active::after { transform: scaleX(1); }
.rps-nav__link.is-active { color: var(--paper); }

.rps-nav__toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none; border: 0; cursor: pointer; padding: 0.4rem;
}
.rps-nav__toggle span { width: 26px; height: 2px; background: var(--paper); transition: transform 0.3s ease, opacity 0.3s ease; }

@media (max-width: 760px) {
	.rps-nav__links {
		position: fixed;
		top: 0;
		right: 0;
		bottom: auto;
		left: auto;
		height: 100vh;
		height: 100dvh;
		width: min(80vw, 340px);
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 1.6rem;
		padding: calc(var(--edge) + 3rem) var(--edge) var(--edge);
		background: #0a1712;
		box-shadow: -24px 0 60px -20px rgba(0, 0, 0, 0.6);
		transform: translateX(100%);
		transition: transform 0.45s cubic-bezier(0.5, 0, 0.1, 1);
	}
	.rps-nav__links.is-open { transform: translateX(0); }
	.rps-nav__link { font-size: 1.4rem; font-family: var(--display); }
	.rps-nav__toggle { display: flex; z-index: 101; }
	.rps-nav.is-menu-open .rps-nav__toggle span:first-child { transform: translateY(7px) rotate(45deg); }
	.rps-nav.is-menu-open .rps-nav__toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }

	/* When the menu is open, drop the nav's backdrop-filter. A backdrop-filter
	   makes the nav a containing block for its position:fixed children, which
	   would anchor the slide-in panel to the short nav bar instead of the
	   viewport (menu appears clipped off-screen when scrolled). */
	.rps-nav.is-menu-open,
	.rps-nav.is-stuck.is-menu-open {
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		background: transparent;
	}
}

/* -------------------------------------------------------------------------
   Hero
   ---------------------------------------------------------------------- */
.rps-hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding-top: 8rem;
	padding-bottom: 6rem;
	overflow: hidden;
}
.rps-hero__inner { position: relative; z-index: 3; max-width: 960px; margin-left: 0; margin-right: auto; }
.rps-hero .rps-h1 { margin-top: 2rem; }
.rps-page .rps-hero__lead { margin-top: 3rem; }
.rps-hero__cta { margin-top: 2.6rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* Rotating recycling motif — big, ghosted, parallaxed behind the headline. */
.rps-hero__motif {
	position: absolute;
	z-index: 1;
	top: 50%; right: -8%;
	width: min(60vw, 760px);
	aspect-ratio: 1;
	transform: translateY(-50%);
	opacity: 0.9;
	pointer-events: none;
}
.rps-hero__motif svg { width: 100%; height: 100%; }
.rps-hero__ring { animation: rps-spin 60s linear infinite; transform-origin: 50% 50%; }
@keyframes rps-spin { to { transform: rotate(360deg); } }

/* Floating orbs */
.rps-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(40px);
	opacity: 0.5;
	pointer-events: none;
	z-index: 0;
}
.rps-orb--1 { width: 320px; height: 320px; left: -6%; top: 20%; background: radial-gradient(circle, var(--accent-glow), transparent 70%); }
.rps-orb--2 { width: 240px; height: 240px; right: 20%; bottom: 8%; background: radial-gradient(circle, rgba(31,110,82,0.4), transparent 70%); }

/* On mobile the hero motif would sit behind the body copy / buttons — drop it
   to the bottom of the hero and soften it so it reads as a background accent
   below the text rather than crossing through it. */
@media (max-width: 760px) {
	.rps-hero__motif {
		top: auto;
		bottom: -14%;
		right: -24%;
		transform: none;
		width: min(90vw, 400px);
		opacity: 0.4;
	}
}

.rps-scrollcue {
	position: absolute;
	left: var(--edge); bottom: 2rem;
	z-index: 3;
	display: flex; align-items: center; gap: 0.7rem;
	font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
	color: var(--paper-faint);
}
.rps-scrollcue__line { width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); animation: rps-cue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes rps-cue { 0%,100% { transform: scaleY(0.3); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* -------------------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------------- */
.rps-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	padding: 0.95em 1.7em;
	border-radius: 100px;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	transition: transform 0.25s ease, box-shadow 0.35s ease, background 0.3s ease, color 0.3s ease;
	will-change: transform;
}
.rps-btn svg { width: 1em; height: 1em; transition: transform 0.3s ease; }
.rps-btn:hover svg { transform: translateX(3px); }
.rps-page .rps-btn--primary {
	background: var(--accent);
	color: #06120c;
	box-shadow: 0 10px 40px -10px var(--accent-glow);
}
.rps-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px var(--accent-glow); }
.rps-page .rps-btn--ghost {
	border: 1px solid var(--line);
	color: var(--paper);
	background: rgba(255,255,255,0.02);
}
.rps-btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* -------------------------------------------------------------------------
   Stats
   ---------------------------------------------------------------------- */
.rps-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	background: var(--line-soft);
	border: 1px solid var(--line-soft);
	border-radius: 20px;
	overflow: hidden;
}
@media (min-width: 820px) { .rps-stats { grid-template-columns: repeat(4, 1fr); } }
.rps-stat { background: var(--ink-2); padding: clamp(1.8rem, 3vw, 2.8rem); }
.rps-stat__num {
	font-family: var(--display);
	font-size: clamp(2.4rem, 4.4vw, 3.6rem);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--paper);
}
.rps-stat__num .rps-unit { color: var(--accent); }
.rps-stat__label { margin-top: 0.7rem; font-size: 0.82rem; color: var(--paper-dim); letter-spacing: 0.02em; }
.rps-stats__note { margin-top: 1.3rem; font-size: 0.78rem; line-height: 1.5; color: var(--paper-faint); max-width: 70ch; }

/* -------------------------------------------------------------------------
   Cards / feature grid
   ---------------------------------------------------------------------- */
.rps-cards { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
@media (min-width: 720px) { .rps-cards--3 { grid-template-columns: repeat(3, 1fr); } .rps-cards--2 { grid-template-columns: repeat(2,1fr);} }

.rps-card {
	position: relative;
	padding: clamp(1.6rem, 2.4vw, 2.2rem);
	border-radius: 20px;
	background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
	border: 1px solid var(--line-soft);
	overflow: hidden;
	transition: transform 0.4s cubic-bezier(0.2,0.7,0.2,1), border-color 0.4s ease;
}
.rps-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(120% 100% at 0% 0%, var(--accent-glow), transparent 55%);
	opacity: 0;
	transition: opacity 0.4s ease;
}
.rps-card:hover { transform: translateY(-6px); border-color: var(--line); }
.rps-card:hover::before { opacity: 0.5; }
.rps-card > * { position: relative; }
.rps-card__icon {
	width: 46px; height: 46px;
	display: grid; place-items: center;
	border-radius: 12px;
	background: rgba(99,217,161,0.12);
	color: var(--accent);
	margin-bottom: 1.2rem;
}
.rps-card__icon svg { width: 22px; height: 22px; }
.rps-card h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.rps-card p { color: var(--paper-dim); font-size: 0.96rem; }

/* Big venture gateway cards (home page) */
.rps-venture {
	position: relative;
	display: block;
	padding: clamp(2rem, 4vw, 3.4rem);
	border-radius: 26px;
	border: 1px solid var(--line);
	background: var(--ink-2);
	overflow: hidden;
	min-height: 340px;
	transition: transform 0.5s cubic-bezier(0.2,0.7,0.2,1);
}
.rps-venture:hover { transform: translateY(-8px); }
.rps-venture__glow {
	position: absolute; inset: 0; z-index: 0;
	background: radial-gradient(90% 80% at 100% 0%, var(--v-color, var(--leaf)), transparent 60%);
	opacity: 0.16;
	transition: opacity 0.5s ease;
}
.rps-venture:hover .rps-venture__glow { opacity: 0.30; }
.rps-venture > * { position: relative; z-index: 1; }
.rps-venture__kicker { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--v-color, var(--leaf)); font-weight: 600; }
.rps-venture__name { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 0.8rem 0 1rem; }
.rps-venture p { color: var(--paper-dim); max-width: 40ch; }
.rps-venture__arrow {
	margin-top: 2rem;
	display: inline-flex; align-items: center; gap: 0.5em;
	font-weight: 600; color: var(--v-color, var(--leaf));
}
.rps-venture__arrow svg { width: 1.1em; height: 1.1em; transition: transform 0.3s ease; }
.rps-venture:hover .rps-venture__arrow svg { transform: translateX(5px); }

/* -------------------------------------------------------------------------
   Split feature block (image/visual + text)
   ---------------------------------------------------------------------- */
.rps-media {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	border: 1px solid var(--line);
	background: linear-gradient(160deg, var(--ink-3), var(--ink));
	min-height: 380px;
	display: grid;
	place-items: center;
	padding: 2rem;
}
.rps-media__badge {
	font-family: var(--display);
	font-size: clamp(3rem, 8vw, 6rem);
	line-height: 0.9;
	color: var(--accent);
	opacity: 0.9;
	text-align: center;
}
.rps-media__sub { display: block; font-family: var(--body); font-size: 0.9rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-faint); margin-top: 1rem; }

/* -------------------------------------------------------------------------
   Timeline (About)
   ---------------------------------------------------------------------- */
.rps-timeline { position: relative; margin-top: 3rem; }
.rps-timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--accent), var(--line-soft)); }
.rps-tl { position: relative; padding: 0 0 2.6rem 2.6rem; }
.rps-tl::before { content: ""; position: absolute; left: 2px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); border: 2px solid var(--accent); }
.rps-tl__when { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.rps-tl__what { font-family: var(--display); font-size: 1.5rem; margin: 0.4rem 0 0.5rem; }
.rps-tl p { color: var(--paper-dim); max-width: 52ch; }

/* -------------------------------------------------------------------------
   Structure diagram (About) — group over two ventures
   ---------------------------------------------------------------------- */
.rps-structure { display: grid; gap: 1.4rem; justify-items: center; text-align: center; margin-top: 1rem; }
.rps-node {
	padding: 1.2rem 2rem;
	border-radius: 16px;
	border: 1px solid var(--line);
	background: var(--ink-2);
	min-width: 220px;
}
.rps-node--parent { border-color: var(--leaf); box-shadow: 0 12px 40px -16px var(--leaf-glow); }
.rps-node__name { font-family: var(--display); font-size: 1.4rem; }
.rps-node__role { font-size: 0.8rem; color: var(--paper-dim); letter-spacing: 0.04em; }
.rps-branch { width: 1px; height: 34px; background: var(--line); }
.rps-node-row { display: grid; gap: 1.4rem; grid-template-columns: 1fr; width: 100%; }
@media (min-width: 640px) { .rps-node-row { grid-template-columns: 1fr 1fr; max-width: 640px; } }
.rps-node--sofa { border-color: var(--sofa); }
.rps-node--sofa .rps-node__name { color: var(--sofa); }
.rps-node--repurch { border-color: var(--repurch-y); }
.rps-node--repurch .rps-node__name { color: var(--repurch-y); }

/* -------------------------------------------------------------------------
   Duo panel (Repurch: Exchange vs Clearance)
   ---------------------------------------------------------------------- */
.rps-duo { display: grid; gap: 1.4rem; }
@media (min-width: 780px) { .rps-duo { grid-template-columns: 1fr 1fr; } }
.rps-duo__panel {
	position: relative;
	padding: clamp(1.8rem, 3vw, 2.6rem);
	border-radius: 22px;
	border: 1px solid var(--line);
	background: var(--ink-2);
	overflow: hidden;
}
.rps-duo__panel::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--p-color); }
.rps-duo__panel--exchange { --p-color: var(--repurch-p); }
.rps-duo__panel--clearance { --p-color: var(--repurch-y); }
.rps-duo__tag { display: inline-block; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--p-color); }
.rps-duo__panel h3 { font-size: 1.8rem; margin: 0.6rem 0 0.8rem; }
.rps-duo__panel p { color: var(--paper-dim); }
.rps-duo__list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.7rem; }
.rps-duo__list li { position: relative; padding-left: 1.5rem; color: var(--paper-dim); font-size: 0.95rem; }
.rps-duo__list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--p-color); }

/* -------------------------------------------------------------------------
   Pull quote / manifesto
   ---------------------------------------------------------------------- */
.rps-manifesto { text-align: center; max-width: 760px; margin-inline: auto; }
.rps-manifesto .rps-h2 { line-height: 1.08; }
.rps-manifesto .rps-h2 em { font-style: italic; color: var(--accent); }

/* -------------------------------------------------------------------------
   CTA band
   ---------------------------------------------------------------------- */
.rps-cta-band {
	position: relative;
	border-radius: 28px;
	padding: clamp(2.6rem, 6vw, 5rem);
	text-align: center;
	overflow: hidden;
	border: 1px solid var(--line);
	background:
		radial-gradient(100% 120% at 50% 0%, rgba(99,217,161,0.14), transparent 60%),
		var(--ink-2);
}
.rps-cta-band .rps-h2 { max-width: 18ch; margin-inline: auto; }
.rps-cta-band p { color: var(--paper-dim); margin: 1.2rem auto 2rem; max-width: 46ch; }

/* -------------------------------------------------------------------------
   Footer
   ---------------------------------------------------------------------- */
.rps-footer { border-top: 1px solid var(--line-soft); padding: clamp(3rem, 6vw, 5rem) var(--edge) 2.5rem; }
.rps-footer__grid { max-width: var(--maxw); margin-inline: auto; display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .rps-footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (min-width: 900px) { .rps-footer__grid { grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; gap: 2.6rem; } }
.rps-footer__brand img { width: 200px; margin-bottom: 1.2rem; }
.rps-footer__brand p { color: var(--paper-dim); max-width: 34ch; font-size: 0.95rem; }
.rps-footer__col h4 { font-family: var(--body); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper-faint); margin-bottom: 1rem; font-weight: 600; }
.rps-footer__col a { display: block; color: var(--paper-dim); padding: 0.35rem 0; transition: color 0.2s ease; }
.rps-footer__col a:hover { color: var(--accent); }
.rps-footer__base {
	max-width: var(--maxw); margin: 3rem auto 0; padding-top: 1.6rem;
	border-top: 1px solid var(--line-soft);
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
	font-size: 0.82rem; color: var(--paper-faint);
}
.rps-footer__mark { font-family: var(--display); font-style: italic; color: var(--paper-dim); }

/* -------------------------------------------------------------------------
   Legal pages (Privacy / Terms)
   ---------------------------------------------------------------------- */
.rps-hero--legal { min-height: auto; padding-top: clamp(8rem, 16vh, 11rem); padding-bottom: clamp(1.5rem, 4vh, 3rem); }
.rps-h1--legal { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.rps-legal__updated { margin-top: 1.4rem; font-size: 0.85rem; color: var(--paper-faint); letter-spacing: 0.02em; }
/* Align the legal prose to the same left gutter as the page heading. */
.rps-page--legal .rps-section .rps-wrap { margin-left: 0; margin-right: auto; }
.rps-legal { max-width: 760px; }
.rps-legal > p:first-child { font-size: 1.1rem; color: var(--paper); }
.rps-legal h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); margin: 2.8rem 0 0.9rem; }
.rps-legal h3 { font-family: var(--body); font-weight: 700; font-size: 1.1rem; color: var(--paper); margin: 1.6rem 0 0.5rem; }
.rps-legal p { color: var(--paper-dim); line-height: 1.75; margin-bottom: 1rem; }
.rps-legal strong { color: var(--paper); }
.rps-legal ul { margin: 0 0 1.2rem; padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.rps-legal li { color: var(--paper-dim); line-height: 1.7; }
.rps-legal li::marker { color: var(--accent); }
.rps-legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.rps-legal a:hover { text-decoration: none; }

/* -------------------------------------------------------------------------
   Scroll-reveal
   ---------------------------------------------------------------------- */
[data-rps-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s cubic-bezier(0.2,0.7,0.2,1), transform 0.9s cubic-bezier(0.2,0.7,0.2,1);
	transition-delay: var(--rps-delay, 0s);
}
[data-rps-reveal].is-in { opacity: 1; transform: none; }

/* Hero load-in stagger */
.rps-hero [data-rps-load] { opacity: 0; transform: translateY(24px); }
.rps-page.is-loaded .rps-hero [data-rps-load] {
	opacity: 1; transform: none;
	transition: opacity 1s cubic-bezier(0.2,0.7,0.2,1), transform 1s cubic-bezier(0.2,0.7,0.2,1);
	transition-delay: var(--d, 0s);
}

/* -------------------------------------------------------------------------
   Accent theming per page
   ---------------------------------------------------------------------- */
.rps-page--sofalistic { --accent: var(--sofa); --accent-glow: rgba(255,122,86,0.28); }
.rps-page--sofalistic .rps-card__icon { background: rgba(255,122,86,0.14); }
.rps-page--repurch { --accent: var(--repurch-y); --accent-glow: rgba(255,207,74,0.24); }
.rps-page--repurch .rps-card__icon { background: rgba(255,207,74,0.14); }

/* -------------------------------------------------------------------------
   Reduced motion
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.rps-page *, .rps-page *::before, .rps-page *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
	[data-rps-reveal], .rps-hero [data-rps-load] { opacity: 1 !important; transform: none !important; }
	.rps-hero__ring { animation: none !important; }
}
